{* Шаблон блока дерева категорий по центру *} {if $big_categories_tree && $big_categories_tree_count>0}

{counter name='s1' start=-1 skip=1 print=false assign='select_counter_var'} {section name=h1 loop=$big_categories_tree}{if $big_categories_tree[h1].categoryID != 1 && $big_categories_tree[h1].parent == 1} {assign var="tmp" value=0} {counter name='s1'} {if ($select_counter_var) is div by 2}
{/if}
{if $big_categories_tree[h1].picture != ""} {/if} | {$big_categories_tree[h1].name}{if $smarty.const.CONF_SHOW_COUNTPROD eq 1} ({$big_categories_tree[h1].products_count}){/if} {section name=h2 loop=$big_categories_tree}{if $big_categories_tree[h2].parent == $big_categories_tree[h1].categoryID && $big_categories_tree[h1].parent == 1} {if $tmp == 1} | {else}{assign var="tmp" value=1}{/if} {$big_categories_tree[h2].name}{if $smarty.const.CONF_SHOW_COUNTPROD eq 1} ({$big_categories_tree[h2].products_count}){/if} {/if} {/section}
{if ($select_counter_var+1) is div by 2}
{else} |  | {/if}{/if} {/section}

{else}
{$smarty.const.STRING_NO_CATEGORIES}
{/if}