{if $cat.child} {category module=share pid=$cat.id}
  • {$t.name}
  • {/category}{else} {if $cat.pid>0} {category module=share pid=$cat.pid}
  • {$t.name}
  • {/category} {/if}{/if}