Changeset View
Changeset View
Standalone View
Standalone View
src/view/page/menu/PhabricatorMainMenuView.php
| Show First 20 Lines • Show All 269 Lines • ▼ Show 20 Lines | if ($custom_header) { | ||||
| if ($logo_uri) { | if ($logo_uri) { | ||||
| $style_logo = | $style_logo = | ||||
| 'background-size: 96px 40px; '. | 'background-size: 96px 40px; '. | ||||
| 'background-position: 0px 0px; '. | 'background-position: 0px 0px; '. | ||||
| 'background-image: url('.$logo_uri.');'; | 'background-image: url('.$logo_uri.');'; | ||||
| } | } | ||||
| } | } | ||||
| $color = PhabricatorEnv::getEnvConfig('ui.header-color'); | |||||
| return phutil_tag( | return phutil_tag( | ||||
| 'a', | 'a', | ||||
| array( | array( | ||||
| 'class' => 'phabricator-main-menu-brand', | 'class' => 'phabricator-main-menu-brand', | ||||
| 'href' => '/', | 'href' => '/', | ||||
| ), | ), | ||||
| array( | array( | ||||
| javelin_tag( | javelin_tag( | ||||
| 'span', | 'span', | ||||
| array( | array( | ||||
| 'aural' => true, | 'aural' => true, | ||||
| ), | ), | ||||
| pht('Home')), | pht('Home')), | ||||
| phutil_tag( | phutil_tag( | ||||
| 'span', | 'span', | ||||
| array( | array( | ||||
| 'class' => 'sprite-menu phabricator-main-menu-eye', | 'class' => 'sprite-menu phabricator-main-menu-eye '.$color.'-eye', | ||||
| ), | ), | ||||
| ''), | ''), | ||||
| phutil_tag( | phutil_tag( | ||||
| 'span', | 'span', | ||||
| array( | array( | ||||
| 'class' => 'sprite-menu phabricator-main-menu-logo', | 'class' => 'sprite-menu phabricator-main-menu-logo '.$color.'-logo', | ||||
| 'style' => $style_logo, | 'style' => $style_logo, | ||||
| ), | ), | ||||
| ''), | ''), | ||||
| )); | )); | ||||
| } | } | ||||
| private function renderNotificationMenu() { | private function renderNotificationMenu() { | ||||
| $user = $this->user; | $user = $this->user; | ||||
| ▲ Show 20 Lines • Show All 186 Lines • Show Last 20 Lines | |||||