CoreFiles by mySites.guru
emptystate.php30 lines, 900 bytes, from Joomla_5.1.0-beta1-Beta-Full_Package.zip
Raw History Compare with 5.0.0-beta3
md5
aa0aa886a8c6a4df54ae831a6299507b
sha1
b1d441dd60a3d3bef43b5289950f4075078af902
sha256
b81336d3fdb9e7b7c5ff1b7224dfd7a1ff86a5a8dcb14b0ea5ea13dc688840bf
<?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\Layout\LayoutHelper;

/** @var \Joomla\Component\Guidedtours\Administrator\View\Tours\HtmlView $this */

$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 = $this->getCurrentUser();

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 5 releases, Joomla 5.1.0-beta1 to 5.1.0. See them all, or every version of this file.