{loop subcat(0,0,0,$siteid) $r} 
		{php $num++}
		<strong><a href="{$r[url]}">{$r[catname]}</a></strong>
		<font>
		{pc:content action="category" catid="$r[arrchildid]" siteid="$siteid" order="listorder ASC"}
		{php $c= count($data)} 
		{loop $data $r}
		<a href="{$r[url]}">{$r[catname]}</a>
		{if $n==$c/2}
 			<br />
		{elseif $n!=$c}
			|
		{/if}
		{/loop}
		{/pc} 
		</font> 
	{/loop}
原文:http://www.cnblogs.com/wangchuang/p/4337830.html