<?
global $lang;
?>
<ul class="product-category-<?= $this -> _step;?>">
  <?php
    if ( is_array( $this -> _categories ) ) foreach ( $this -> _categories as $category )
    {
      ?>
        <li>
          <a href="./kategoria,<?= $category -> get_id();?>,<?= \System::seo( $category -> get_name() );?>">
            <?= $category -> get_name();?>
          </a>
          <?
          if ( is_array( $category -> get_subcategories() ) )
            echo \product\VCategory::drawCategories( $category -> get_subcategories(), $this -> _step + 1 );
          ?>
        </li>
      <?
    }
  ?>
</ul>