CoreFiles by mySites.guru
emptystate.php32 lines, 994 bytes, from Joomla_6.1.0-beta1-Beta-Full_Package.zip
Raw History Compare with 6.0.0-beta3
md5
75e1041e4737f42a6e2eb67839e97c9a
sha1
d8064ce41fe9d3de91b36d80aa583deacaf3dd18
sha256
d9583f21407b038f0e4e40623dd4dc62e1c90881240bd2c256bc87e6622e70e8
<?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://guide.joomla.org/user-manual/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 30 releases, Joomla 6.1.0-beta1 to 6.3.0-alpha1. See them all, or every version of this file.