CoreFiles by mySites.guru
empty_state.php28 lines, 866 bytes, from Joomla_5.2.3-Stable-Full_Package.zip
Raw History Compare with 5.2.2
md5
8fbe8cce048d4fc80ae73df62dc64d43
sha1
cc7cfe4074dafd4aaa0ace909b717239e364a808
sha256
30b4ccec4db5e5622e4f1dcac07fb9e7dda5d961dc7a345bb2236197f52fabc1
<?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;

/** @var \Joomla\Component\Scheduler\Administrator\View\Tasks\HtmlView $this */

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