Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/option/PhabricatorUIConfigOptions.php
| Show All 14 Lines | public function getFontIcon() { | ||||
| return 'fa-magnet'; | return 'fa-magnet'; | ||||
| } | } | ||||
| public function getGroup() { | public function getGroup() { | ||||
| return 'core'; | return 'core'; | ||||
| } | } | ||||
| public function getOptions() { | public function getOptions() { | ||||
| $manifest = PHUIIconView::getSheetManifest('main-header'); | |||||
| $custom_header_example = | $custom_header_example = | ||||
| PhabricatorCustomHeaderConfigType::getExampleConfig(); | PhabricatorCustomHeaderConfigType::getExampleConfig(); | ||||
| $experimental_link = 'https://secure.phabricator.com/T4214'; | $experimental_link = 'https://secure.phabricator.com/T4214'; | ||||
| $options = array(); | |||||
| $options = array( | foreach (array_keys($manifest) as $sprite_name) { | ||||
| 'blindigo' => 'blindigo', | $key = substr($sprite_name, strlen('main-header-')); | ||||
| 'blue' => 'blue', | $options[$key] = $key; | ||||
| 'dark' => 'dark', | } | ||||
| 'indigo' => 'indigo', | |||||
| 'red' => 'red', | |||||
| 'rainbow' => 'rainbow', | |||||
| ); | |||||
| $example = <<<EOJSON | $example = <<<EOJSON | ||||
| [ | [ | ||||
| { | { | ||||
| "name" : "Copyright 2199 Examplecorp" | "name" : "Copyright 2199 Examplecorp" | ||||
| }, | }, | ||||
| { | { | ||||
| "name" : "Privacy Policy", | "name" : "Privacy Policy", | ||||
| ▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines | |||||