CoreFiles by mySites.guru
emptystate.php31 lines, 1,038 bytes, from Joomla_5.1.0-Stable-Full_Package.zip
Raw History Compare with 5.0.3
md5
b33dfa775d3e22f5c9fd14bd21773d11
sha1
c281768623d4e9356911ba269dd2c74c0d90b737
sha256
3f0885996d14fcd570edf38e0d3a7f4544be6e2a86d3e2f7218d3ad5500b7a5a
<?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;

/** @var \Joomla\Component\Installer\Administrator\View\Update\HtmlView $this */

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