CoreFiles by mySites.guru
emptystate.php29 lines, 860 bytes, from Joomla_4.4.0-Stable-Full_Package.zip
Raw History Compare with 4.3.4
md5
bde1d0b271836b2233698a8882a268dd
sha1
173bb66e90673c1340d964df604facf88f8fdbaf
sha256
e71da50f6c05569b1a496a3ce2228942996fd7ffdb145ae53e70f20dcf2042ba
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  com_guidedtours
 *
 * @copyright   (C) 2023 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\Factory;
use Joomla\CMS\Layout\LayoutHelper;

$displayData = [
    'textPrefix' => 'COM_GUIDEDTOURS_STEPS',
    'formURL'    => 'index.php?option=com_guidedtours&view=steps',
    'helpURL'    => 'https://docs.joomla.org/Special:MyLanguage/Help4.x:Guided_Tours:_Steps',
    'icon'       => 'icon-map-signs',
];

$user = Factory::getApplication()->getIdentity();

if ($user->authorise('core.create', 'com_guidedtours')) {
    $displayData['createURL'] = 'index.php?option=com_guidedtours&task=step.add';
}

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

The same content is in 53 releases, Joomla 4.3.0-beta4 to 5.0.0-alpha3. See them all, or every version of this file.