{php $BIG = explode('|', $DT[page_bigcat]);} {php $BIGNUM = count($BIG)+1;}

{if $ishotcat}
- 热门分类
{/if} {if $DT[page_bigcat]} {loop $BIG $k $v} {php $kk=$ishotcat?$k+2:$k+1;}
- {$v}
{/loop} {/if}

{if $ishotcat}
{loop $hotcats $i $c} {if $i>5}
{/if} {php $hotcat = get_maincat($c[catid],5,1);}
小类 {count($hotcat)} 个{set_style($c[catname], $c[style])}
{loop $hotcat $j $s}
  {set_style($s[catname], $s[style])}
{/loop} {if $i>5}
{/if} {/loop} {if count($hotcats)>6}
查看更多分类
{else}
子类已全部显示
{/if}
{/if} {if $DT[page_bigcat]} {loop $BIG $k $v} {php $kk=$ishotcat?$k+2:$k+1;}
{php $child = get_maincat(0,5,$k+1);} {php $childnum=count($child);} {loop $child $i $c} {if $i==6}
{/if} {php $sub = get_maincat($c[catid], 5, 1);}
小类 {count($sub)} 个{set_style($c[catname], $c[style])}
{loop $sub $j $s}
  {set_style($s[catname], $s[style])}
{/loop} {if $i==$childnum-1 && $i>5}
{/if} {/loop} {if count($child)>6}
查看更多分类
{else}
子类已全部显示
{/if}
{/loop} {/if}