{foreach from=$root_categories item=_cat name=_fr} {if $smarty.foreach.index is div by 2}{/if} {assign var=_cat_url value="?categoryID=`$_cat.categoryID`&category_slug=`$_cat.slug`"|set_query_html} {if ($smarty.foreach.index+1) is div by 2}{/if} {/foreach}
{if $_cat.picture ne ""}{$_cat.name|escape:'html'}{/if} {$_cat.name} [{$_cat.products_count}]:
{* show sub categories *} {foreach from=$root_categories_subs[$_cat.categoryID] item=_subcat} {$_subcat.name} {/foreach}