Changeset View
Changeset View
Standalone View
Standalone View
src/view/page/menu/PhabricatorMainMenuView.php
Show First 20 Lines • Show All 232 Lines • ▼ Show 20 Lines | private function renderPhabricatorSearchMenu() { | ||||
if ($search) { | if ($search) { | ||||
$view->addMenuItem($search); | $view->addMenuItem($search); | ||||
} | } | ||||
return $view; | return $view; | ||||
} | } | ||||
private function renderPhabricatorLogo() { | private function renderPhabricatorLogo() { | ||||
$class = 'phabricator-main-menu-logo-image'; | |||||
return phutil_tag( | return phutil_tag( | ||||
'a', | 'a', | ||||
array( | array( | ||||
'class' => 'phabricator-main-menu-logo', | '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 menu-logo-image '.$class, | 'class' => 'sprite-menu phabricator-main-menu-eye', | ||||
), | |||||
''), | |||||
phutil_tag( | |||||
'span', | |||||
array( | |||||
'class' => 'sprite-menu phabricator-main-menu-logo', | |||||
), | ), | ||||
''), | ''), | ||||
)); | )); | ||||
} | } | ||||
private function renderNotificationMenu() { | private function renderNotificationMenu() { | ||||
$user = $this->user; | $user = $this->user; | ||||
▲ Show 20 Lines • Show All 213 Lines • Show Last 20 Lines |