CoreFiles by mySites.guru
emptystate.php27 lines, 857 bytes, from Joomla_4.4.13-Stable-Full_Package.zip
Raw History Compare with 4.4.12
md5
5029d9e8df8e365af3f63aebc8ea049d
sha1
066b9cb5859731ae84c243da0b1de37f68742a62
sha256
34f4a53093865762798f47bc35e0ed6ab1f7095cf674bb8e910970103fcf609b
<?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\Factory;
use Joomla\CMS\Layout\LayoutHelper;

$displayData = [
    'textPrefix' => 'COM_BANNERS_CLIENT',
    'formURL'    => 'index.php?option=com_banners&view=clients',
    'helpURL'    => 'https://docs.joomla.org/Special:MyLanguage/Help40:Banners:_Clients',
    'icon'       => 'icon-bookmark banners',
];

if (count(Factory::getApplication()->getIdentity()->getAuthorisedCategories('com_banners', 'core.create')) > 0) {
    $displayData['createURL'] = 'index.php?option=com_banners&task=client.add';
}

echo LayoutHelper::render('joomla.content.emptystate', $displayData);

The same content is in 78 releases, Joomla 4.2.0-beta3 to 5.0.0-alpha3. See them all, or every version of this file.