Files
idpan.poznan.pl/administrator/modules/mod_cachecleaner/tmpl/default.php
2026-02-08 21:16:11 +01:00

33 lines
993 B
PHP

<?php
/**
* @package Cache Cleaner
* @version 8.2.2
*
* @author Peter van Westen <info@regularlabs.com>
* @link http://regularlabs.com
* @copyright Copyright © 2022 Regular Labs All Rights Reserved
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*/
defined('_JEXEC') or die;
use RegularLabs\Module\CacheCleaner\Administrator\Helper\CacheCleaner as CacheCleanerHelper;
/* @var object $params */
$text = CacheCleanerHelper::getText();
$class = 'header-item-content' . ($params->add_button_text ? '' : ' rl-button-no-text');
?>
<a href="javascript:" onclick="RegularLabs.CacheCleaner.purge();" class="<?php echo $class; ?>" title="<?php echo $text; ?>">
<div class="header-item-icon">
<span class="icon-trash" aria-hidden="true"></span>
</div>
<?php if ($params->add_button_text) : ?>
<div class="header-item-text">
<?php echo $text; ?>
</div>
<?php endif; ?>
</a>