CoreFiles by mySites.guru
empty_state.php26 lines, 785 bytes, from Joomla_5.0.2-Stable-Full_Package.zip
Raw History Compare with 5.0.1
md5
85e13f30a466570d48f6acc356421f49
sha1
8cff59cb06d4d52e700cdccc1763ff787907b867
sha256
f98ff9723b3c6194a3cb791d19ebe6eb25c67cabd10952578c2f9ab808285fe3
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  com_scheduler
 *
 * @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;

$displayData = [
    'textPrefix' => 'COM_SCHEDULER',
    'formURL' => 'index.php?option=com_scheduler&task=task.add',
    'helpURL' => 'https://docs.joomla.org/Special:MyLanguage/J4.x:Task_Scheduler',
    'icon' => 'icon-clock clock',
];

if ($this->getCurrentUser()->authorise('core.create', 'com_scheduler')) {
    $displayData['createURL'] = 'index.php?option=com_scheduler&view=select&layout=default';
}

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

The same content is in 19 releases, Joomla 5.0.0-alpha4 to 5.1.0-alpha4. See them all, or every version of this file.