function display($tpl = null) { $params = JComponentHelper::getParams('com_joomdle'); $this->sidebar = JHtmlSidebar::render(); if ($params->get('shop_integration') == 'no') { JToolbarHelper::title(JText::_('COM_JOOMDLE_VIEW_SHOP_TITLE'), 'shop'); $this->message = JText::_('COM_JOOMDLE_SHOP_INTEGRATION_NOT_ENABLED'); $tpl = "disabled"; parent::display($tpl); return; } $this->addToolbar(); $this->bundles = JoomdleHelperShop::get_bundles(); $this->courses = JoomdleHelperShop::getShopCourses(); parent::display($tpl); }