CoreFiles by mySites.guru
emptystate.php30 lines, 942 bytes, from Joomla_5.1.0-beta1-Beta-Full_Package.zip
Raw History Compare with 5.0.0-beta3
md5
eb8f93423f15db5a708ecd235473948e
sha1
c27399e418652cd67a8504b2a88372a6bb2053bf
sha256
e7a22e67d3ae14fb5fca6c67b4bdc0b218bc792ea1f59e1f244c18d797d4e2cd
<?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/Help4.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 5 releases, Joomla 5.1.0-beta1 to 5.1.0. See them all, or every version of this file.