{if $root}
{foreach array_slice($sections, 0, 6) as $subCat}
{if $subCat.photo} {$subCat.name} {else} {$subCat.name} {/if} {$title = explode(" ", $subCat.name_short|default:$subCat.name)} {if $title|count == 2 and $subCat@index < 3}

{$title[0]}{$title[1]}

{elseif $title|count == 3 and $subCat@index < 3}

{$title[0]} {$title[1]}{$title[2]}

{else}

{$subCat.name_short|default:$subCat.name}

{/if}
{/foreach}
{if $sections|count > 6}

{t}Nebo vybírejte podle ceny{/t}

{foreach array_slice($sections, 6) as $subCat}
{$subCat.name}
{/foreach}
{/if} {else}
{foreach $sections as $subCat}
{/foreach}
{/if}