Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/option/PhabricatorUIConfigOptions.php
| Show All 40 Lines | [ | ||||
| { | { | ||||
| "name" : "Terms and Conditions", | "name" : "Terms and Conditions", | ||||
| "href" : "http://www.example.org/terms/" | "href" : "http://www.example.org/terms/" | ||||
| } | } | ||||
| ] | ] | ||||
| EOJSON; | EOJSON; | ||||
| $logo_type = 'custom:PhabricatorCustomLogoConfigType'; | $logo_type = 'custom:PhabricatorCustomLogoConfigType'; | ||||
| $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 of Phabricator.')) | ||||
| ->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". | "Phabricator 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 //Phabricator//.\n\n")), | ||||
| $this->newOption('ui.footer-items', 'list<wild>', 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.')) | ||||
| ->setDescription( | ->setDescription( | ||||
| pht( | pht( | ||||
| "Allows you to add a footer with links in it to most ". | "Allows you to add a footer with links in it to most ". | ||||
| "pages. You might want to use these links to point at legal ". | "pages. You might want to use these links to point at legal ". | ||||
| "information or an about page.\n\n". | "information or an about page.\n\n". | ||||
| Show All 11 Lines | |||||