/** * Display the view */ public function display($tpl = null) { // get the data $this->form = $this->get('Form'); $this->item = $this->get('Item'); $this->state = $this->get('State'); $this->params = JComponentHelper::getParams('com_jkit'); // lists $this->lists = new stdClass(); $this->lists->langs = JKitHelperLangs::getLangs(); $this->lists->translations = array(); // get tag translations if (isset($this->item->id)) { $translations = JKitHelperLangs::getTranslations(array($this->item), 'tags'); if (count($translations)) { foreach ($translations as $translation) { $this->lists->translations[$translation->lang] = new stdClass(); $this->lists->translations[$translation->lang]->title = $translation->title; $this->lists->translations[$translation->lang]->alias = $translation->alias; } } } // create the toolbar JKitHelper::getToolbar(false, $this->item->id, $this->item->title); // display the view template parent::display($tpl); }
/** * Display the view */ public function display($tpl = null) { // get the data from the model $this->item = $this->get('Item'); $this->translation = $this->get('Translation'); $this->language = JKitHelperLangs::getLangTitle(JRequest::getCmd('lang')); $this->params = JComponentHelper::getParams('com_jkit'); // create the toolbar JKitHelper::getToolbar(false, true, $this->item->title . ' (' . JText::sprintf('COM_JKIT_TRANSLATION_TITLE', $this->language) . ')'); // display the view template parent::display($tpl); }
/** * Display the view */ public function display($tpl = null) { // get the data from the model $this->form = $this->get('Form'); $this->item = $this->get('Item'); $this->state = $this->get('State'); // get params $this->params = JComponentHelper::getParams('com_jkit'); // create the toolbar JKitHelper::getToolbar(false, $this->item->id, $this->item->title); // display the view template parent::display($tpl); }
/** * Display the view */ public function display($tpl = null) { // get the data from the model $this->items = $this->get('Items'); $this->pagination = $this->get('Pagination'); $this->state = $this->get('State'); // filters $this->filterForm = $this->get('FilterForm'); $this->activeFilters = $this->get('ActiveFilters'); // create the toolbar JKitHelper::getToolbar('users', $this->state->get('filter.state') == -2); $this->sidebar = JHtmlSidebar::render(); // display the view template parent::display($tpl); }
/** * Display the view */ public function display($tpl = null) { // get the data from the model $this->form = $this->get('Form'); $this->item = $this->get('Item'); $this->state = $this->get('State'); // get the image $imageHelper = new JKitHelperImage(JComponentHelper::getParams('com_jkit')); $this->image = $imageHelper->getImage($this->item->id, 'users'); // get params $this->params = JComponentHelper::getParams('com_jkit'); // create the toolbar JKitHelper::getToolbar(); // display the view template parent::display($tpl); }
/** * Display the view */ public function display($tpl = null) { // get data $this->categories = $this->get('Categories'); $this->langs = $this->get('Langs'); $this->edited = $this->get('Edited'); $this->added = $this->get('Added'); $this->images = $this->get('Images'); $this->translations = $this->get('Translations'); // create the toolbar JKitHelper::getToolbar('panel'); // sidebar $this->sidebar = JHtmlSidebar::render(); // display the view layout parent::display($tpl); }
/** * Display the view */ public function display($tpl = null) { // get the data from the model $this->items = $this->get('Items'); $this->pagination = $this->get('Pagination'); $this->state = $this->get('State'); // filters $this->filterForm = $this->get('FilterForm'); $this->activeFilters = $this->get('ActiveFilters'); // lists $this->lists = new stdClass(); $this->lists->langs = JKitHelperLangs::getLangs(); $this->lists->translations = JKitHelperLangs::getTranslations($this->items, 'tags'); // toolbar and sidbar JKitHelper::getToolbar(false, $this->state->get('filter.state') == -2); $this->sidebar = JHtmlSidebar::render(); // display the view template parent::display($tpl); }
/** * Display the view */ public function display($tpl = null) { // get the data from the model $this->form = $this->get('Form'); $this->item = $this->get('Item'); $this->state = $this->get('State'); // get the tags $this->tags = $this->get('Tags'); $this->tag_list = $this->get('TagList'); $this->item_tags = $this->get('ItemTags'); $this->item_tag_list = $this->get('ItemTagList'); // get the types $this->types = $this->get('Types'); $this->item_type = $this->get('ItemType'); // get params $this->params = JComponentHelper::getParams('com_jkit'); // get the image $imageHelper = new JKitHelperImage(JComponentHelper::getParams('com_jkit')); $this->image = $imageHelper->getImage($this->item->id, 'items'); // create the toolbar JKitHelper::getToolbar(false, $this->item->id, $this->item->title); // display the view template parent::display($tpl); }