CoreFiles by mySites.guru
emptystate.php30 lines, 957 bytes, from Joomla_6.1.0-beta1-Beta-Full_Package.zip
Raw History Compare with 6.0.0-beta3
md5
cd12ef1cbc551eef72889918b1397c15
sha1
1ea4d8c6b06cf9452e2c0cf535aafa5e929aeec7
sha256
9a241651817693fbadb0a865d9f7d88e646bbcd91b561488cfaba3448d59898f
<?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\Clients\HtmlView $this */

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

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

if (count($this->getCurrentUser()->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 30 releases, Joomla 6.1.0-beta1 to 6.3.0-alpha1. See them all, or every version of this file.