CoreFiles by mySites.guru
emptystate.php32 lines, 1,016 bytes, from Joomla_6.3.0-alpha1-Alpha-Full_Package.zip
Raw History Compare with 6.2.0-alpha3
md5
f4adb1b8e200d1b0814b4888989e0817
sha1
a71fc25b12bdd3a003390a0aeec5d29aa404ce2f
sha256
d89e697ffa8d083efd76c3f40f273992d9bc4844ae653b0446cb6676e8592e2c
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  com_banners
 *
 * @copyright   (C) 2021 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

use Joomla\CMS\Layout\LayoutHelper;

/** @var \Joomla\Component\Banners\Administrator\View\Banners\HtmlView $this */

$displayData = [
    'textPrefix' => 'COM_BANNERS',
    'formURL'    => 'index.php?option=com_banners&view=banners',
    'helpURL'    => 'https://guide.joomla.org/user-manual/banners/banners-banners',
    'icon'       => 'icon-bookmark banners',

    'controlFields' => $this->filterForm->renderControlFields(),
];

$user = $this->getCurrentUser();

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);

The same content is in 30 releases, Joomla 6.1.0-beta1 to 6.3.0-alpha1. See them all, or every version of this file.