CoreFiles by mySites.guru
emptystate_module.php33 lines, 1,161 bytes, from Joomla_5.2.6-Stable-Full_Package.zip
Raw History Compare with 5.2.5
md5
102dd3ad7949525fbe647a1ecd013102
sha1
d9d801baa623667e264311ded13b69165357ca6c
sha256
d0d365912599503c824ee5b1f4a0e04e40425e460052ef2af9a4e8727a3de791
<?php

/**
 * @package     Joomla.Site
 * @subpackage  Layout
 *
 * @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\Language\Text;

$icon = $displayData['icon'] ?? 'icon-copy article';
$textPrefix = $displayData['textPrefix'] ?? '';
$textSuffix = $displayData['textSuffix'] ?? '';
$title = $displayData['title'] ?? '';
$componentLangString = $textPrefix . '_EMPTYSTATE_TITLE' . $textSuffix;
$moduleLangString = $textPrefix . '_EMPTYSTATE_MODULE_TITLE' . $textSuffix;

// Did we have a definitive title provided to the view? If not, let's find one!
if (!$title) {
    // Can we find a *_EMPTYSTATE_MODULE_TITLE translation, Else use the components *_EMPTYSTATE_TITLE string
    $title = Factory::getApplication()->getLanguage()->hasKey($moduleLangString) ? $moduleLangString : $componentLangString;
}
?>
<div class="mb-4">
    <p class="fw-bold text-center text-muted">
        <span class="<?php echo $icon; ?>" aria-hidden="true"></span> <?php echo Text::_($title); ?>
    </p>
</div>

The same content is in 233 releases, Joomla 4.2.0-beta3 to 6.3.0-alpha1. See them all, or every version of this file.