CoreFiles by mySites.guru
default.php50 lines, 1,488 bytes, from Joomla_4.0.0-beta7-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta6
md5
4e847b499d0cda515edad5a7296165ed
sha1
641efac7b8f0475874399b1cd3dd7b8bbb3618b9
sha256
d62412c4bd98ed4f5128071cc1dc14c5fcc1528584a9889b79bb5250aa2da38a
<?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\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;

if (!$multilanguageEnabled)
{
	return;
}

$modalHTML = HTMLHelper::_(
	'bootstrap.renderModal',
	'multiLangModal',
	array(
		'title'      => Text::_('MOD_MULTILANGSTATUS'),
		'url'        => Route::_('index.php?option=com_languages&view=multilangstatus&tmpl=component'),
		'height'     => '400px',
		'width'      => '800px',
		'bodyHeight' => 70,
		'modalWidth' => 80,
		'footer'     => '<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">' . Text::_('JTOOLBAR_CLOSE') . '</button>',
	)
);

$app->getDocument()->getWebAssetManager()
	->registerAndUseScript('mod_multilangstatus.admin', 'mod_multilangstatus/admin-multilangstatus.min.js', [], ['defer' => true]);

?>
<div class="header-item-content multilanguage">
	<a class="d-flex align-items-stretch" href="#multiLangModal" title="<?php echo Text::_('MOD_MULTILANGSTATUS'); ?>" data-bs-toggle="modal" role="button">
		<div class="d-flex align-items-end mx-auto">
			<span class="icon-language" aria-hidden="true"></span>
		</div>
		<div class="tiny">
			<?php echo Text::_('MOD_MULTILANGSTATUS'); ?>
		</div>
	</a>

	<?php echo $modalHTML; ?>
</div>

No other release has this exact content. See every version of this file.