getDocument(); $user = JemFactory::getUser(); // Get data from the model $events = $this->get('EventsData'); $venue = $this->get('VenuesData'); $category = $this->get('CategoriesData'); // Load css // HTMLHelper::_('stylesheet', 'com_jem/backend.css', array(), true); $wa = Factory::getApplication()->getDocument()->getWebAssetManager(); $wa->registerStyle('jem.backend', 'com_jem/backend.css')->useStyle('jem.backend'); //assign vars to the template $this->events = $events; $this->venue = $venue; $this->category = $category; $this->user = $user; // add toolbar $this->addToolbar(); parent::display($tpl); } /** * Add Toolbar */ protected function addToolbar() { ToolbarHelper::title(Text::_('COM_JEM_MAIN_TITLE'), 'home'); if (JemFactory::getUser()->authorise('core.manage', 'com_jem')) { ToolbarHelper::preferences('com_jem'); } ToolBarHelper::divider(); ToolBarHelper::help('listevents', true, 'https://www.joomlaeventmanager.net/documentation/manual/backend/control-panel'); } /** * Creates the buttons view * * @param string $link targeturl * @param string $image path to image * @param string $text image description * @param boolean $modal 1 for loading in modal */ protected function quickiconButton($link, $image, $text, $modal = 0) { // Initialise variables $lang = Factory::getApplication()->getLanguage(); ?>