<?php /** * @name Accordeon Menu CK params * @package com_accordeonmenuck * @copyright Copyright (C) 2016. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt * @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr */ // No direct access defined('_JEXEC') or die; jimport('joomla.application.component.view'); class AccordeonmenuckViewModuleselect extends JViewLegacy { /** * About view display method * @return void * */ function display($tpl = null) { $input = JFactory::getApplication()->input; $user = JFactory::getUser(); $authorised = ($user->authorise('core.create', 'com_accordeonmenuck') || (count($user->getAuthorisedCategories('com_accordeonmenuck', 'core.create')))); if ($authorised !== true) { JError::raiseError(403, JText::_('JERROR_ALERTNOAUTHOR')); return false; } $this->modules = $this->get('Items'); // Check for errors. if (! empty($errors = $this->get('Errors'))) { JError::raiseWarning(500, implode("\n", $errors)); return false; } parent::display($tpl); exit(); } }