public function display() { $this->assign('date', KFactory::get('lib.joomla.utilities.date')); $this->_createToolbar()->reset(); //->append(KFactory::get('admin::com.ninja.toolbar.button.install')) //->append('uninstall'); $this->setLayout('admin::com.ninja.view.templates.default'); return parent::display(); }
public function display() { //Load the js message box plugin KFactory::get('admin::com.ninja.helper.default')->js('/Roar.js'); KFactory::get('admin::com.ninja.helper.default')->css('/Roar.css'); // Display the toolbar $toolbar = $this->_createToolbar(); $path = KFactory::get($this->getModel())->getIdentifier()->path; if (KInflector::isPlural(KFactory::get($this->getModel())->getIdentifier()->name) && $this->getName() != 'dashboard') { $this->_mixinMenubar(); } if ($this->getName() == 'dashboard') { $toolbar->reset(); $this->_document->setBuffer(false, 'modules', 'submenu'); } else { $toolbar->append('spacer'); } $toolbar->append(KFactory::get('admin::com.ninja.toolbar.button.about')); //@TODO finish this //$this->lang(); return '<div class="nf template-' . JFactory::getApplication()->getTemplate() . '">' . parent::display() . '</div>'; //Add tooltips? //if(KInflector::isPlural($this->getName()) && (KFactory::get($this->getModel())->getTotal() > 1)) KTemplate::loadHelper('admin::com.ninja.helper.behavior.tooltip', 'th.hasHint', array('showOnce' => true, 'showOnLoad' => true, 'fixed' => true)); }