<{foreach from=$data item=parent key=parentId name=name}>
- <{if $setting.showCatDepth == '1'}> <{$parent.label}><{if !$smarty.foreach.name.last}> |<{/if}> <{else}> <{$parent.label}>
  <{foreach from=$parent.sub item=child key=childId}> <{if $child.sub}>
  - <{$child.label}><{if $setting.showCatDepth == '3'}> 6 7<{/if}> <{if $setting.showCatDepth == '3'}>
    <{foreach from=$child.sub item=gChild key=gChildId}>
    - <{$gChild.label}>
    <{/foreach}>
    <{/if}>
  <{else}>
  - <{$child.label}>
  <{/if}> <{/foreach}>
  <{/if}>
<{/foreach}>