Server : LiteSpeed System : Linux server 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : alsaif ( 1057) PHP Version : 7.4.33 Disable Function : show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/alsaif/public_html/administrator/modules/mod_stats_admin/tmpl/ |
<?php
/**
* @package Joomla.Administrator
* @subpackage mod_stats_admin
*
* @copyright (C) 2012 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
JHtml::_('jquery.framework');
JFactory::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];
});
});
');
?>
<div class="row-striped">
<?php foreach ($list as $item) : ?>
<div class="row-fluid">
<div class="span4">
<span class="icon-<?php echo $item->icon; ?>" aria-hidden="true"></span> <?php echo $item->title; ?>
</div>
<div class="span8">
<?php if (isset($item->link)) : ?>
<a class="btn btn-info btn-small js-revert" href="<?php echo $item->link; ?>"><?php echo $item->data; ?></a>
<?php else : ?>
<?php echo $item->data; ?>
<?php endif; ?>
</div>
</div>
<?php endforeach; ?>
</div>