{foreach from=$root_categories item=_cat name=_fr} {if $smarty.foreach._fr.index%$columnCount ==0}{/if} {assign var=_cat_url value="?categoryID=`$_cat.categoryID`&category_slug=`$_cat.slug`"|set_query_html} {if $_cat.picture ne "" && $PAGE_VIEW ne 'mobile'} {else} {/if} {if ($smarty.foreach._fr.index+1)%$columnCount ==0}{/if} {/foreach}
{$_cat.name|escape:'html'} {$_cat.name|escape:'html'|default:'(no name)'} [{$_cat.products_count}]
{* show sub categories *} {foreach name=sub_cat_list from=$root_categories_subs[$_cat.categoryID] item=_subcat} {if $subcategories_numberlimit&&(!$smarty.foreach.sub_cat_list.first)&&($smarty.foreach.sub_cat_list.iteration==$subcategories_numberlimit)}  ... {elseif !$subcategories_numberlimit||$subcategories_numberlimit&&($smarty.foreach.sub_cat_list.iteration<$subcategories_numberlimit)} {if !$smarty.foreach.sub_cat_list.first}{$subcategories_delimiter|escape:'html'}{/if} {$_subcat.name|escape:'html'} {/if} {/foreach}