rubrics.php
476 Bytes
<?php
use yii\widgets\Menu;
?>
<?php if(!empty($wrapper)) :?>
<div class="<?= $wrapper?>">
<?php endif?>
<ul>
<?= $active?>
<?php foreach($items as $i => $category) :?>
<li class="item<?= $category->alias?><?= ($active == $category->category_id ? ' active' : '')?>"><?= \yii\helpers\Html::a($category->name, ['catalog/category', 'category' => $category])?></li>
<?php endforeach;?>
</ul>
<?php if(!empty($wrapper)) :?>
<div class="both"></div>
</div>
<?php endif?>