CoreFiles by mySites.guru
emptystate.php32 lines, 1,008 bytes, from Joomla_6.1.0-alpha3-Alpha-Full_Package.zip
Raw History Compare with 6.1.0-alpha2
md5
d0d02eb25aee0512bd82af2c2015acc6
sha1
3946bc24123175ddea3171dd0b02450f2ac29cc6
sha256
a3de8f89e9e93d6ebf73f74fb5cda5dd5fe200f921e5a3150518f30dc398c6c6
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  com_contact
 *
 * @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\Contact\Administrator\View\Contacts\HtmlView $this */

$displayData = [
    'textPrefix' => 'COM_CONTACT',
    'formURL'    => 'index.php?option=com_contact',
    'helpURL'    => 'https://docs.joomla.org/Special:MyLanguage/Help5.x:Contacts',
    'icon'       => 'icon-address-book contact',

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

$user = $this->getCurrentUser();

if ($user->authorise('core.create', 'com_contact') || count($user->getAuthorisedCategories('com_contact', 'core.create')) > 0) {
    $displayData['createURL'] = 'index.php?option=com_contact&task=contact.add';
}

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

The same content is in 19 releases, Joomla 6.0.0-beta1 to 6.1.0-alpha3. See them all, or every version of this file.