{if $c['child']}
{if $c['child']}
{$c['catname']}({$c['items']})
{else}{$c['catname']}({$c['items']})
{/if}-
{loop $cats $t}
{if $t['parentid']==$c['catid']}
- {$t['catname']}({$t['items']}) {/if} {/loop}