CoreFiles by mySites.guru
emptystate.php33 lines, 1,227 bytes, from Joomla_6.1.2-Stable-Full_Package.zip
Raw History Compare with 6.1.1
md5
1933e40e445706713acc0fa1c66afb48
sha1
5508faff2091312ff1fbaf810b4bc684e14b630b
sha256
333debde7a60db50c9644b6fc29bce43529458367eab0198655970f82a2c388b
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  com_modules
 *
 * @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\Language\Text;
use Joomla\CMS\Layout\LayoutHelper;

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

$displayData = [
    'textPrefix' => 'COM_MODULES',
    'formURL'    => 'index.php?option=com_modules&view=select&client_id=' . $this->clientId,
    'helpURL'    => 'https://guide.joomla.org/user-manual/modules',
    'icon'       => 'icon-cube module',
    // Although it is (almost) impossible to get to this page with no created Administrator Modules, we add this for completeness.
    'title'      => Text::_('COM_MODULES_EMPTYSTATE_TITLE_' . ($this->clientId ? 'ADMINISTRATOR' : 'SITE')),

    'controlFields' => $this->filterForm->renderControlFields(),
];

if ($this->getCurrentUser()->authorise('core.create', 'com_modules')) {
    $displayData['createURL'] = 'index.php?option=com_modules&view=select&client_id=' . $this->clientId;
}

echo LayoutHelper::render('joomla.content.emptystate', $displayData);

The same content is in 28 releases, Joomla 6.1.0-beta1 to 6.2.1-rc1. See them all, or every version of this file.