копируем в templates/шаьлон/html/mod_zootag/list.php
код:
<?php
/**
* @package ZOO Tag
* @author YOOtheme http://www.yootheme.com
* @copyright Copyright (C) YOOtheme GmbH
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
// include css
$zoo->document->addStylesheet('mod_zootag:tmpl/list/style.css');
$count = count($tags);
//print_r($tags);
$app = JFactory::getApplication();
$input = $app->input;
$cur_tag = $input->get('tag', '', 'string'); // втулка
//echo '555tag='.$tag;
$act_class="";
?>
<?php if ($count) : ?>
<ul class="zoo-list">
<?php $i = 0; foreach ($tags as $tag) : ?>
<?php
if(!empty($cur_tag)){
if($cur_tag == $tag->name) $act_class="active_tag";
else $act_class="";
}
?>
<li class="weight<?php echo $tag->weight.' '.$act_class; ?>">
<a href="<?php echo JRoute::_($tag->href); ?>"><?php echo $tag->name; ?></a>
</li>
<?php $i++; endforeach; ?>
</ul>
<?php else : ?>
<?php echo JText::_('COM_ZOO_NO_TAGS_FOUND'); ?>
<?php endif;
Joomla: 3.9.13 JBZoo: 4.10.3 GNU GPL (Community Edition) by SmetDenis Zoo: 3.3.35