Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/option/PhabricatorUIConfigOptions.php
<?php | <?php | ||||
final class PhabricatorUIConfigOptions | final class PhabricatorUIConfigOptions | ||||
extends PhabricatorApplicationConfigOptions { | extends PhabricatorApplicationConfigOptions { | ||||
public function getName() { | public function getName() { | ||||
return pht('User Interface'); | return pht('User Interface'); | ||||
} | } | ||||
public function getDescription() { | public function getDescription() { | ||||
return pht('Configure the Phabricator UI, including colors.'); | return pht('Configure the UI, including colors.'); | ||||
} | } | ||||
public function getIcon() { | public function getIcon() { | ||||
return 'fa-magnet'; | return 'fa-magnet'; | ||||
} | } | ||||
public function getGroup() { | public function getGroup() { | ||||
return 'core'; | return 'core'; | ||||
Show All 26 Lines | |||||
EOJSON; | EOJSON; | ||||
$logo_type = 'custom:PhabricatorCustomLogoConfigType'; | $logo_type = 'custom:PhabricatorCustomLogoConfigType'; | ||||
$footer_type = 'custom:PhabricatorCustomUIFooterConfigType'; | $footer_type = 'custom:PhabricatorCustomUIFooterConfigType'; | ||||
return array( | return array( | ||||
$this->newOption('ui.header-color', 'enum', 'blindigo') | $this->newOption('ui.header-color', 'enum', 'blindigo') | ||||
->setDescription( | ->setDescription( | ||||
pht('Sets the default color scheme of Phabricator.')) | pht('Sets the default color scheme.')) | ||||
->setEnumOptions($options), | ->setEnumOptions($options), | ||||
$this->newOption('ui.logo', $logo_type, array()) | $this->newOption('ui.logo', $logo_type, array()) | ||||
->setSummary( | ->setSummary( | ||||
pht('Customize the logo and wordmark text in the header.')) | pht('Customize the logo and wordmark text in the header.')) | ||||
->setDescription( | ->setDescription( | ||||
pht( | pht( | ||||
"Customize the logo image and text which appears in the main ". | "Customize the logo image and text which appears in the main ". | ||||
"site header:\n\n". | "site header:\n\n". | ||||
" - **Logo Image**: Upload a new 80 x 80px image to replace the ". | " - **Logo Image**: Upload a new 80 x 80px image to replace the ". | ||||
"Phabricator logo in the site header.\n\n". | "logo in the site header.\n\n". | ||||
" - **Wordmark**: Choose new text to display next to the logo. ". | " - **Wordmark**: Choose new text to display next to the logo. ". | ||||
"By default, the header displays //Phabricator//.\n\n")), | "By default, the header displays //%s//.\n\n", | ||||
PlatformSymbols::getPlatformServerName())), | |||||
$this->newOption('ui.favicons', 'wild', array()) | $this->newOption('ui.favicons', 'wild', array()) | ||||
->setSummary(pht('Customize favicons.')) | ->setSummary(pht('Customize favicons.')) | ||||
->setDescription(pht('Customize favicons.')) | ->setDescription(pht('Customize favicons.')) | ||||
->setLocked(true), | ->setLocked(true), | ||||
$this->newOption('ui.footer-items', $footer_type, array()) | $this->newOption('ui.footer-items', $footer_type, array()) | ||||
->setSummary( | ->setSummary( | ||||
pht( | pht( | ||||
'Allows you to add footer links on most pages.')) | 'Allows you to add footer links on most pages.')) | ||||
Show All 16 Lines |