/** * Display the view * * @return void */ public function display($tpl = null) { $app = JFactory::getApplication(); JalangHelper::addSubmenu('items'); $this->items = $this->get('Items'); $this->pagination = $this->get('Pagination'); $this->state = $this->get('State'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } $this->addToolbar(); if (JalangHelper::isJoomla3x()) { $this->sidebar = JHtmlSidebar::render(); } $fields = array(); $adapter = JalangHelper::getHelperContent(); $this->adapter = $adapter; if ($adapter) { $fields = $adapter->getDisplayFields(); } $this->fields = $fields; $this->languages = JalangHelper::getListContentLanguages(); $this->mainlanguage = $app->getUserState('com_jalang.mainlanguage', '*'); parent::display($tpl); }
/** * Display the view * * @return void */ public function display($tpl = null) { $app = JFactory::getApplication(); JalangHelper::addSubmenu('tool', $this->getLayout()); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } $this->addToolbar(); if (JalangHelper::isJoomla3x()) { $this->sidebar = JHtmlSidebar::render(); } // $this->adapters = JalangHelperContent::getListAdapters(); parent::display($tpl); }