Blame view

frontend/widgets/views/rubrics.php 478 Bytes
4253cbec   root   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  <?php
  use yii\widgets\Menu;
  ?>
  <?php if(!empty($wrapper)) :?>
  <div class="<?= $wrapper?>">
  <?php endif?>
  <ul>
  <?php foreach($items as $i => $category) :?>
      <li class="item_<?= $category->alias?><?= (!empty($active) && $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?>