{* Шаблон блока развернутого дерева категорий *} {if $big_categories_tree && $big_categories_tree_count>0} {assign var="oldnumber" value=0}
{section name=h loop=$big_categories_tree} {if $big_categories_tree[h].categoryID != 1} {if $big_categories_tree[h].level > $oldnumber}
{/if} {if $big_categories_tree[h].level < $oldnumber}{section name=w loop=$oldnumber-$big_categories_tree[h].level}
{/section}{/if}

{section name=j loop=$big_categories_tree max=$big_categories_tree[h].level} {if $smarty.section.j.index==$big_categories_tree[h].level-1} {else} {/if} {/section} | 0}onclick="flip('{$big_categories_tree[h].categoryID}')" id="p_s_{$big_categories_tree[h].categoryID}"{/if}> | {if $smarty.const.CONF_SHOW_COUNTPROD eq 1} {$big_categories_tree[h].products_count}{/if}{$big_categories_tree[h].name}

{if $categoryID == $big_categories_tree[h].categoryID}
{/if} {assign var="oldnumber" value=$big_categories_tree[h].level} {assign var="oldcat" value=$big_categories_tree[h].categoryID} {/if} {/section} {if $oldnumber > 0}{section name=w loop=$oldnumber}
{/section}{/if} {else}
{$smarty.const.STRING_NO_CATEGORIES}
{/if}