Changeset View
Changeset View
Standalone View
Standalone View
src/view/page/menu/PhabricatorMainMenuView.php
| Show All 21 Lines | final class PhabricatorMainMenuView extends AphrontView { | ||||
| public function getController() { | public function getController() { | ||||
| return $this->controller; | return $this->controller; | ||||
| } | } | ||||
| public function render() { | public function render() { | ||||
| $user = $this->user; | $user = $this->user; | ||||
| require_celerity_resource('phabricator-main-menu-view'); | require_celerity_resource('phabricator-main-menu-view'); | ||||
| require_celerity_resource('sprite-main-header-css'); | |||||
| $header_id = celerity_generate_unique_node_id(); | $header_id = celerity_generate_unique_node_id(); | ||||
| $menu_bar = array(); | $menu_bar = array(); | ||||
| $alerts = array(); | $alerts = array(); | ||||
| $search_button = ''; | $search_button = ''; | ||||
| $app_button = ''; | $app_button = ''; | ||||
| $aural = null; | $aural = null; | ||||
| ▲ Show 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | foreach ($menus as $menu) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| $bar_items[] = $item; | $bar_items[] = $item; | ||||
| } | } | ||||
| $application_menu = $this->renderApplicationMenu($bar_items); | $application_menu = $this->renderApplicationMenu($bar_items); | ||||
| $classes = array(); | $classes = array(); | ||||
| $classes[] = 'phabricator-main-menu sprite-main-header'; | $classes[] = 'phabricator-main-menu'; | ||||
| $classes[] = 'phabricator-main-menu-background'; | $classes[] = 'phabricator-main-menu-background'; | ||||
| return phutil_tag( | return phutil_tag( | ||||
| 'div', | 'div', | ||||
| array( | array( | ||||
| 'class' => implode(' ', $classes), | 'class' => implode(' ', $classes), | ||||
| 'id' => $header_id, | 'id' => $header_id, | ||||
| ), | ), | ||||
| ▲ Show 20 Lines • Show All 397 Lines • Show Last 20 Lines | |||||