コード例 #1
0
 /**
  * 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();
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 /**
  * Add a menu on the sidebar of page.
  */
 protected function addSidebar()
 {
     GamificationHelper::addSubmenu($this->getName());
     $this->sidebar = JHtmlSidebar::render();
 }