/** * Setup the Dashboard menu. * * @param $CurrentUrl * @throws Exception */ public function addSideMenu($CurrentUrl) { // Only add to the assets if this is not a view-only request if ($this->_DeliveryType == DELIVERY_TYPE_ALL) { $SideMenu = new SideMenuModule($this); $SideMenu->HtmlId = ''; $SideMenu->highlightRoute($CurrentUrl); $this->EventArguments['SideMenu'] =& $SideMenu; $this->fireEvent('GetAppSettingsMenuItems'); $this->addModule($SideMenu, 'Panel'); } }
/** * Build and add the Dashboard's side navigation menu. * * @since 2.0.0 * @access public * * @param string $CurrentUrl Used to highlight correct route in menu. */ public function addSideMenu($CurrentUrl = false) { if (!$CurrentUrl) { $CurrentUrl = strtolower($this->SelfUrl); } // Only add to the assets if this is not a view-only request if ($this->_DeliveryType == DELIVERY_TYPE_ALL) { // Configure SideMenu module $SideMenu = new SideMenuModule($this); $SideMenu->EventName = 'GetAppSettingsMenuItems'; $SideMenu->HtmlId = ''; $SideMenu->highlightRoute($CurrentUrl); $SideMenu->Sort = c('Garden.DashboardMenu.Sort'); // Hook for adding to menu // $this->EventArguments['SideMenu'] = &$SideMenu; // $this->fireEvent('GetAppSettingsMenuItems'); // Add the module $this->addModule($SideMenu, 'Panel'); } }