public function render() { $id = HeaderLinksView::USER_GAME_DASHBOARD_LINK_ID; $content = ZurmoHtml::openTag('div', array('class' => 'default-button')); $label = ZurmoHtml::tag('i', array('class' => $this->params['iconClass']), null); $label .= ZurmoHtml::tag('span', array('class' => 'button-label'), $this->getLabel()); $content .= $ajaxLink = ZurmoHtml::ajaxLink($label, $this->getDefaultRoute(), HeaderLinksView::resolveAjaxOptionsForGameDashboardModel($id), $this->getHtmlOptions()); $content .= ZurmoHtml::closeTag('div'); return $content; }
protected function renderUserActionsContent() { $headerLinksView = new HeaderLinksView($this->settingsMenuItems, $this->userMenuItems); $content = $headerLinksView->render(); $content .= $this->resolveAndRenderShortcutsContent(); return $content; }