Changeset View
Changeset View
Standalone View
Standalone View
src/view/page/PhabricatorStandardPageView.php
Show First 20 Lines • Show All 345 Lines • ▼ Show 20 Lines | protected function getBody() { | ||||
$header_chrome = null; | $header_chrome = null; | ||||
if ($this->getShowChrome()) { | if ($this->getShowChrome()) { | ||||
$header_chrome = $this->menuContent; | $header_chrome = $this->menuContent; | ||||
} | } | ||||
$classes = array(); | $classes = array(); | ||||
$classes[] = 'main-page-frame'; | $classes[] = 'main-page-frame'; | ||||
$classes[] = 'phui-theme-'.PhabricatorEnv::getEnvConfig('ui.header-color'); | |||||
$developer_warning = null; | $developer_warning = null; | ||||
if (PhabricatorEnv::getEnvConfig('phabricator.developer-mode') && | if (PhabricatorEnv::getEnvConfig('phabricator.developer-mode') && | ||||
DarkConsoleErrorLogPluginAPI::getErrors()) { | DarkConsoleErrorLogPluginAPI::getErrors()) { | ||||
$developer_warning = phutil_tag_div( | $developer_warning = phutil_tag_div( | ||||
'aphront-developer-error-callout', | 'aphront-developer-error-callout', | ||||
pht( | pht( | ||||
'This page raised PHP errors. Find them in DarkConsole '. | 'This page raised PHP errors. Find them in DarkConsole '. | ||||
'or the error log.')); | 'or the error log.')); | ||||
▲ Show 20 Lines • Show All 143 Lines • ▼ Show 20 Lines | protected function getBodyClasses() { | ||||
if ($this->getRequest()->getStr('__print__')) { | if ($this->getRequest()->getStr('__print__')) { | ||||
$classes[] = 'printable'; | $classes[] = 'printable'; | ||||
} | } | ||||
if ($this->getRequest()->getStr('__aural__')) { | if ($this->getRequest()->getStr('__aural__')) { | ||||
$classes[] = 'audible'; | $classes[] = 'audible'; | ||||
} | } | ||||
$classes[] = 'phui-theme-'.PhabricatorEnv::getEnvConfig('ui.header-color'); | |||||
return implode(' ', $classes); | return implode(' ', $classes); | ||||
} | } | ||||
private function getConsole() { | private function getConsole() { | ||||
if ($this->disableConsole) { | if ($this->disableConsole) { | ||||
return null; | return null; | ||||
} | } | ||||
return $this->getRequest()->getApplicationConfiguration()->getConsole(); | return $this->getRequest()->getApplicationConfiguration()->getConsole(); | ||||
▲ Show 20 Lines • Show All 204 Lines • Show Last 20 Lines |