Path: blob/master/src/applications/config/option/PhabricatorUIConfigOptions.php
12256 views
<?php12final class PhabricatorUIConfigOptions3extends PhabricatorApplicationConfigOptions {45public function getName() {6return pht('User Interface');7}89public function getDescription() {10return pht('Configure the UI, including colors.');11}1213public function getIcon() {14return 'fa-magnet';15}1617public function getGroup() {18return 'core';19}2021public function getOptions() {22$options = array(23'blindigo' => pht('Blindigo'),24'red' => pht('Red'),25'blue' => pht('Blue'),26'green' => pht('Green'),27'indigo' => pht('Indigo'),28'dark' => pht('Dark'),29);3031$example = <<<EOJSON32[33{34"name" : "Copyright 2199 Examplecorp"35},36{37"name" : "Privacy Policy",38"href" : "http://www.example.org/privacy/"39},40{41"name" : "Terms and Conditions",42"href" : "http://www.example.org/terms/"43}44]45EOJSON;4647$logo_type = 'custom:PhabricatorCustomLogoConfigType';48$footer_type = 'custom:PhabricatorCustomUIFooterConfigType';4950return array(51$this->newOption('ui.header-color', 'enum', 'blindigo')52->setDescription(53pht('Sets the default color scheme.'))54->setEnumOptions($options),55$this->newOption('ui.logo', $logo_type, array())56->setSummary(57pht('Customize the logo and wordmark text in the header.'))58->setDescription(59pht(60"Customize the logo image and text which appears in the main ".61"site header:\n\n".62" - **Logo Image**: Upload a new 80 x 80px image to replace the ".63"logo in the site header.\n\n".64" - **Wordmark**: Choose new text to display next to the logo. ".65"By default, the header displays //%s//.\n\n",66PlatformSymbols::getPlatformServerName())),67$this->newOption('ui.favicons', 'wild', array())68->setSummary(pht('Customize favicons.'))69->setDescription(pht('Customize favicons.'))70->setLocked(true),71$this->newOption('ui.footer-items', $footer_type, array())72->setSummary(73pht(74'Allows you to add footer links on most pages.'))75->setDescription(76pht(77"Allows you to add a footer with links in it to most ".78"pages. You might want to use these links to point at legal ".79"information or an about page.\n\n".80"Specify a list of dictionaries. Each dictionary describes ".81"a footer item. These keys are supported:\n\n".82" - `name` The name of the item.\n".83" - `href` Optionally, the link target of the item. You can ".84" omit this if you just want a piece of text, like a copyright ".85" notice."))86->addExample($example, pht('Basic Example')),87);88}8990}919293