CoreFiles by mySites.guru
emptystate.php37 lines, 1,348 bytes, from Joomla_6.3.0-alpha1-Alpha-Full_Package.zip
Raw History Compare with 6.2.0-alpha3
md5
189c86cd580e76833c6fd33c5822b986
sha1
f080db3250e7988d32c7194e76d111acdd1eff78
sha256
1446693b712c59f77fc82986daf0827aeb3176691d633103908a046599f1e69c
<?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\Language\Text;
use Joomla\CMS\Layout\LayoutHelper;
use Joomla\CMS\Session\Session;

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

$displayData = [
    'textPrefix' => 'COM_INSTALLER',
    'formURL'    => 'index.php?option=com_installer&task=discover.refresh',
    'helpURL'    => 'https://docs.joomla.org/Special:MyLanguage/Help5.x:Extensions:_Discover',
    'icon'       => 'icon-puzzle-piece install',
    'createURL'  => 'index.php?option=com_installer&task=discover.refresh&' . Session::getFormToken() . '=1',
    'content'    => Text::_('COM_INSTALLER_MSG_DISCOVER_DESCRIPTION'),
    'title'      => Text::_('COM_INSTALLER_EMPTYSTATE_DISCOVER_TITLE'),
    'btnadd'     => Text::_('COM_INSTALLER_EMPTYSTATE_DISCOVER_BUTTON_ADD'),

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

/** @var \Joomla\Component\Installer\Administrator\View\Discover\HtmlView $this */
if ($this->showMessage) {
    echo $this->loadTemplate('message');
}

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

The same content is in 49 releases, Joomla 6.0.0-beta1 to 6.3.0-alpha1. See them all, or every version of this file.