CoreFiles by mySites.guru
empty_state.php27 lines, 810 bytes, from Joomla_4.2.0-beta2-Beta-Full_Package.zip
Raw History Compare with 4.2.0-beta1
md5
1bbff730f7bf8af734d7a338c89ad82e
sha1
26dc51e508e53765d41b703f98b7737e780524df
sha256
25fe35b5f659151cdf43abbad49ce6f1388d3dcc95d3a03a238f1ee8a581d7c5
<?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 20 releases, Joomla 4.1.0-rc2 to 4.2.0-beta2. See them all, or every version of this file.