CoreFiles by mySites.guru
emptystate.php29 lines, 956 bytes, from Joomla_5.0.0-alpha4-Alpha-Full_Package.zip
Raw History Compare with 5.0.0-alpha3
md5
a11a37a9e981751eba1ccbf65fb5d566
sha1
f3c6204a0b18a90c48755e388e6249e2f3a3b109
sha256
46d1088a5de9c0114d491a643ad63794e2429b51ea2fcb700b65b92ed14a09c8
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  com_installer
 *
 * @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;
use Joomla\CMS\Session\Session;

$displayData = [
    'textPrefix' => 'COM_INSTALLER',
    'formURL'    => 'index.php?option=com_installer&view=update',
    'helpURL'    => 'https://docs.joomla.org/Special:MyLanguage/Help4.x:Extensions:_Update',
    'icon'       => 'icon-puzzle-piece install',
];

$user = $this->getCurrentUser();

if ($user->authorise('core.create', 'com_content') || count($user->getAuthorisedCategories('com_content', 'core.create')) > 0) {
    $displayData['createURL'] = 'index.php?option=com_installer&task=update.find&' . Session::getFormToken() . '=1';
}

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.