/** * Add a menu on the sidebar of page */ protected function addSidebar() { // Add submenu GamificationHelper::addSubmenu($this->getName()); JHtmlSidebar::setAction('index.php?option=' . $this->option . '&view=' . $this->getName()); $this->sidebar = JHtmlSidebar::render(); }
public function display($tpl = null) { $this->version = new Gamification\Version(); // Load Prism library version if (!class_exists("Prism\\Version")) { $this->prismVersion = JText::_("COM_GAMIFICATION_PRISM_LIBRARY_DOWNLOAD"); } else { $prismVersion = new Prism\Version(); $this->prismVersion = $prismVersion->getShortVersion(); if (version_compare($this->prismVersion, $this->version->requiredPrismVersion, "<")) { $this->prismVersionLowerMessage = JText::_("COM_GAMIFICATION_PRISM_LIBRARY_LOWER_VERSION"); } } // Add submenu GamificationHelper::addSubmenu($this->getName()); $this->addToolbar(); $this->addSidebar(); $this->setDocument(); parent::display($tpl); }
/** * Add a menu on the sidebar of page. */ protected function addSidebar() { GamificationHelper::addSubmenu($this->getName()); $this->sidebar = JHtmlSidebar::render(); }