CoreFiles by mySites.guru
emptystate.php30 lines, 942 bytes, from Joomla_5.3.4-Stable-Full_Package.zip
Raw History Compare with 5.3.3
md5
fe68a6e7708a75b22587718ff84d34c3
sha1
52615287f117f6d19e36347f8de3129782ff990e
sha256
6261a1be38b4291a27f227718294bc6c2a2491c1cf9f94949385582dd893ffda
<?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',
];

$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 82 releases, Joomla 5.1.1-rc1 to 6.0.0-alpha3. See them all, or every version of this file.