{* front-end homepage*} {$smarty.const.STRING_GREETINGS}

{section name=i loop=$root_categories} {if $smarty.section.i.index is div by 2}{/if} {if ($smarty.section.i.index+1) is div by 2}{/if} {/section}
{if $root_categories[i][3] ne ""}{$root_categories[i][1]}{/if} {$root_categories[i][1]} [{$root_categories[i][2]}]:
{* show sub categories *} {assign var="tmp" value=0} {section name=j loop=$root_categories_subs} {if $root_categories_subs[j][3] == $root_categories[i][0]} {if $tmp == 1}| {else} {assign var="tmp" value=1} {/if} {$root_categories_subs[j][1]} {/if} {/section}
{* now show special offers *}

{section name=i loop=$special_offers} {if $smarty.section.i.index is div by 2}{/if} {if ($smarty.section.i.index+1) is div by 2}{/if} {/section}
{$special_offers[i][1]} {$special_offers[i][3]}