public function AddSideMenu($CurrentUrl = '')
 {
     if ($this->_DeliveryType == DELIVERY_TYPE_ALL) {
         $SideMenu = new SideMenuModule($this);
         //$SideMenu->HtmlId = 'CandySideMenu';
         $SideMenu->CssClass = 'CandySideMenu';
         $SideMenu->HighlightRoute($CurrentUrl);
         $SideMenu->Sort = C('Garden.DashboardMenu.Sort');
         $this->EventArguments['SideMenu'] =& $SideMenu;
         $this->FireEvent('GetAppSettingsMenuItems');
         $this->AddModule($SideMenu, 'Panel');
     }
 }
 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 = 'ContentSideMenu';
         $SideMenu->HighlightRoute($CurrentUrl);
         //$SideMenu->Sort = C('Garden.DashboardMenu.Sort');
         $this->EventArguments['SideMenu'] =& $SideMenu;
         $this->FireEvent('AfterAddSideMenu');
         $this->AddModule($SideMenu, 'Panel');
     }
 }
 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) {
         $SideMenu = new SideMenuModule($this);
         $SideMenu->HtmlId = '';
         $SideMenu->HighlightRoute($CurrentUrl);
         $this->EventArguments['SideMenu'] =& $SideMenu;
         $this->FireEvent('GetAppSettingsMenuItems');
         $this->AddModule($SideMenu, 'Panel');
     }
 }
 /**
  * Configures navigation sidebar in Dashboard.
  *
  * @param $CurrentUrl ; Path to current location in dashboard.
  */
 private 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 = '';
         if ($CurrentUrl != '') {
             $SideMenu->HighlightRoute($CurrentUrl);
         }
         $SideMenu->Sort = C('Garden.DashboardMenu.Sort');
         $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->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');
     }
 }