CoreFiles by mySites.guru
default.php39 lines, 1,215 bytes, from Joomla_5.3.4-Stable-Full_Package.zip
Raw History Compare with 5.3.3
md5
97f2a173f2bb6c9ee186b5e68878a037
sha1
99ba6b6ade74f48e6d2fb8995d7564bbe0fc0462
sha256
dff462c1dfd0786144e0d796224b828fb9b210a6c884c3fcdfbfb12d52c0c651
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  mod_multilangstatus
 *
 * @copyright   (C) 2011 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\Router\Route;

$hideLinks = $app->getInput()->getBool('hidemainmenu');

if (!$multilanguageEnabled || $hideLinks) {
    return;
}

$app->getDocument()->getWebAssetManager()->useScript('joomla.dialog-autocreate');

$popupOptions = [
    'popupType'  => 'iframe',
    'src'        => Route::_('index.php?option=com_languages&view=multilangstatus&tmpl=component', false),
    'textHeader' => Text::_('MOD_MULTILANGSTATUS'),
];

?>
<button type="button" class="header-item-content multilanguage" title="<?php echo htmlspecialchars(Text::_('MOD_MULTILANGSTATUS')); ?>"
        data-joomla-dialog="<?php echo htmlspecialchars(json_encode($popupOptions, JSON_UNESCAPED_SLASHES)) ?>">
    <div class="header-item-icon">
        <span class="icon-language" aria-hidden="true"></span>
    </div>
    <div class="header-item-text">
        <?php echo Text::_('MOD_MULTILANGSTATUS'); ?>
    </div>
</button>

The same content is in 136 releases, Joomla 5.1.0-alpha2 to 6.2.1-rc1. See them all, or every version of this file.