{if !$DT[page_bigcat]}

{php $child = get_maincat(0, $mid, 1);} {loop $child $i $c} {if $i%2==0}{/if} {set_style($c[catname], $c[style])} {if $c[child]} {php $sub = get_maincat($c[catid], $mid, 2);} {loop $sub $j $s}{if $j < 5} {set_style($s[catname], $s[style])}{/if}{/loop} {/if} {if $c[child]} {php $sub = get_maincat($c[catid], $mid, 1);} {loop $sub $j $s} {set_style($s[catname], $s[style])} {/loop} {if $j>8} 更多 {/if} {/if} {if $i%2==1}{/if} {/loop}

{else} {php $BIG = explode('|', $DT[page_bigcat]);} {loop $BIG $kkk $vvv} {if $kkk}
{/if}

{$vvv} | {php $child = get_maincat(0, $mid, $kkk+1);} {loop $child $i $c} {if $i%2==0}
{/if} {set_style($c[catname], $c[style])} {if $c[child]} {php $sub = get_maincat($c[catid], $mid, 2);} {loop $sub $j $s}{if $j < 5} {set_style($s[catname], $s[style])}{/if}{/loop} {/if} {if $c[child]} {php $sub = get_maincat($c[catid], $mid, 1);} {loop $sub $j $s} {set_style($s[catname], $s[style])} {/loop} {if $j>8} 更多 {/if} {/if} {if $i%2==1}
{/if} {/loop}

{/loop} {/if}