芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/administrator.7/components/com_banners/tmpl/banners/emptystate.php
* @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\Layout\LayoutHelper; $displayData = [ 'textPrefix' => 'COM_BANNERS', 'formURL' => 'index.php?option=com_banners&view=banners', 'helpURL' => 'https://docs.joomla.org/Special:MyLanguage/Help40:Banners', 'icon' => 'icon-bookmark banners', ]; $user = Factory::getApplication()->getIdentity(); if ($user->authorise('core.create', 'com_banners') || count($user->getAuthorisedCategories('com_banners', 'core.create')) > 0) { $displayData['createURL'] = 'index.php?option=com_banners&task=banner.add'; } echo LayoutHelper::render('joomla.content.emptystate', $displayData);