CoreFiles by mySites.guru
emptystate.php30 lines, 900 bytes, from Joomla_5.3.4-Stable-Full_Package.zip
Raw History Compare with 5.3.3
md5
ad69936f3284b2b6f8f17ccc13f4beb2
sha1
62eefecde2a97aa79502eb62921b4e246116d0ed
sha256
92411e1882211c7fc8f9ff4d6083adc6592de5551b6d68eff66e5d7fae842628
<?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/Help5.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 82 releases, Joomla 5.1.1-rc1 to 6.0.0-alpha3. See them all, or every version of this file.