CoreFiles by mySites.guru
emptystate.php28 lines, 841 bytes, from Joomla_5.1.0-Stable-Full_Package.zip
Raw History Compare with 5.0.3
md5
b3f71da6a9522e1daa27cd1631e9c307
sha1
e6fe40cc6020e14c7aeda29fb705c3ce075922ba
sha256
c478558964ffd82f5f158b5b6653b2434afc726c776a24f4708cd064dbde0226
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  com_users
 *
 * @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\Users\Administrator\View\Notes\HtmlView $this */

$displayData = [
    'textPrefix' => 'COM_USERS_NOTES',
    'formURL'    => 'index.php?option=com_users&view=notes',
    'helpURL'    => 'https://docs.joomla.org/Special:MyLanguage/Help40:User_Notes',
    'icon'       => 'icon-users user',
];

if ($this->getCurrentUser()->authorise('core.create', 'com_users')) {
    $displayData['createURL'] = 'index.php?option=com_users&task=note.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.