CoreFiles by mySites.guru
default.php44 lines, 1,496 bytes, from Joomla_4.0.0-alpha10-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha9
md5
b198f2c5eaeb0956622b16caba9d27a6
sha1
f68ceecba1fa0db609034d431dddbb14575b3945
sha256
ab8b54420dbb989e5d47382ec1dfdf7227f1d5236eb4745b58a3f32dd2617ae4
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  mod_stats_admin
 *
 * @copyright   Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

use Joomla\CMS\Factory;
use Joomla\CMS\HTML\HTMLHelper;

HTMLHelper::_('jquery.framework');
Factory::getDocument()->addScriptDeclaration('
	jQuery(document).ready(function($) {
		$("a.js-revert").on("click", function(e) {
			e.preventDefault();
			e.stopPropagation();

			var activeTab = [];
			activeTab.push("#" + e.target.href.split("#")[1]);
			var path = window.location.pathname;
			localStorage.removeItem(e.target.href.replace(/&return=[a-zA-Z0-9%]+/, "").replace(/&[a-zA-Z-_]+=[0-9]+/, ""));
			localStorage.setItem(path + e.target.href.split("index.php")[1].split("#")[0], JSON.stringify(activeTab));
			return window.location.href = e.target.href.split("#")[0];
		});
	});
');
?>
<ul class="list-group list-group-flush stats-module <?php echo $moduleclass_sfx ?>">
	<?php foreach ($list as $item) : ?>
		<li class="list-group-item">
			<span class="mr-2 fa-fw fa fa-<?php echo $item->icon; ?>" aria-hidden="true"></span> <?php echo $item->title; ?>

			<?php if(isset($item->link)) : ?>
				<a class="btn btn-info btn-sm js-revert" href="<?php echo $item->link; ?>"><?php echo $item->data; ?></a>
			<?php else : ?>
				<?php echo $item->data; ?>
			<?php endif; ?>
		</li>
	<?php endforeach; ?>
</ul>

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