Changeset View
Changeset View
Standalone View
Standalone View
src/view/phui/PHUIIconView.php
Show First 20 Lines • Show All 100 Lines • ▼ Show 20 Lines | return array( | ||||
'class' => $classes, | 'class' => $classes, | ||||
); | ); | ||||
} | } | ||||
public static function getSheetManifest($sheet) { | public static function getSheetManifest($sheet) { | ||||
$root = dirname(phutil_get_library_root('phabricator')); | $root = dirname(phutil_get_library_root('phabricator')); | ||||
$path = $root.'/resources/sprite/manifest/'.$sheet.'.json'; | $path = $root.'/resources/sprite/manifest/'.$sheet.'.json'; | ||||
$data = Filesystem::readFile($path); | $data = Filesystem::readFile($path); | ||||
return idx(json_decode($data, true), 'sprites'); | return idx(phutil_json_decode($data), 'sprites'); | ||||
} | } | ||||
public static function getFontIcons() { | public static function getFontIcons() { | ||||
return array( | return array( | ||||
'fa-glass', | 'fa-glass', | ||||
'fa-music', | 'fa-music', | ||||
'fa-search', | 'fa-search', | ||||
'fa-envelope-o', | 'fa-envelope-o', | ||||
▲ Show 20 Lines • Show All 554 Lines • Show Last 20 Lines |