CoreFiles by mySites.guru
empty_state.php27 lines, 826 bytes, from Joomla_4.3.4-Stable-Full_Package.zip
Raw History Compare with 4.3.3
md5
85306c696dd8ad900330e8a15014629c
sha1
3208564d2a3a677533727064d76c6bd4e17d72af
sha256
113d8ebc58964720f3a6f65c08d853a5af0ac49f59c787621e0e4a5bd52bf24c
<?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\Factory;
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 (Factory::getApplication()->getIdentity()->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 78 releases, Joomla 4.2.0-beta3 to 5.0.0-alpha3. See them all, or every version of this file.