{* Шаблон блока дерева категорий *}
{if $categories_tree && $categories_tree_count>1}
{section name=h loop=$categories_tree}
{if $categories_tree[h].categoryID != 1}
{assign var=maxmmm value=$smarty.section.h.index+1}
{section name=j loop=$categories_tree max=$categories_tree[h].level-1}
 |
{/section}
{if $smarty.const.CONF_SHOW_COUNTPROD eq 1} {$categories_tree[h].products_count}{/if}{$categories_tree[h].name} |
{if $smarty.section.h.index ne $categories_tree_count-1}
{/if}
{/if}
{/section}
{else}{$smarty.const.STRING_NO_CATEGORIES}
{/if}
{* Ниже закомментирован альтернативный блок категорий с картинками *}
{*
{if $categories_tree && $categories_tree_count>1}
{section name=h loop=$categories_tree}
{if $categories_tree[h].categoryID != 1}
{section name=j loop=$categories_tree max=$categories_tree[h].level-1}
{if $smarty.section.j.index==$categories_tree[h].level-2}
{else}
{/if}
|
{/section}
 |
{if $smarty.const.CONF_SHOW_COUNTPROD eq 1} {$categories_tree[h].products_count}{/if}{$categories_tree[h].name} |
{/if}
{/section}
{else}{$smarty.const.STRING_NO_CATEGORIES}
{/if}
*}