CoreFiles by mySites.guru
emptystate.php29 lines, 858 bytes, from Joomla_4.3.2-Stable-Full_Package.zip
Raw History Compare with 4.3.1
md5
c7a04092ea77445a4f55d14b6cd03b28
sha1
e570c4438d7707a2602659c237da0b25688f8ff8
sha256
cab368d441aecfe633224466616dd0733151e10f62541405a05dee695a0a4358
<?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_TOURS_LIST',
    'formURL'    => 'index.php?option=com_guidedtours&view=tours',
    'helpURL'    => 'https://docs.joomla.org/Special:MyLanguage/Help4.x:Guided_Tours',
    'icon'       => 'icon-map-signs',
];

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

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

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

The same content is in 46 releases, Joomla 4.3.2-rc1 to 5.0.0-alpha3. See them all, or every version of this file.