{if empty($category_level)} {assign var="category_level" value=1} {else} {math equation="x + 1" x=$category_level assign="category_level"} {/if} {foreach from=$categories item="category"} {if $category.level == $category_level && $category.is_visible == "Yes"} {if $category.cid != 39 and $category.cid != 2}
  • {if $current_page == 'catalog' and $category.cid == $parent}{/if} {$category.name|htmlspecialchars} {* 2010-07-10 pkolas display number of products *} ({$category.pk_num_products}) {* 2010-07-10 end *} {if $current_page == 'catalog' and $category.cid == $parent}{/if} {if !empty($category.children)} {/if}
  • {/if} {/if} {/foreach} {math equation="x - 1" x=$category_level assign="category_level"} {assign var="category" value=0}