调取资讯分类及列表示例
最后更新于:2022-04-01 05:44:48
~~~
{php $child = get_maincat(20, 21, 1);}
{loop $child $k $v}
<div class="m-box">
<h4><span class="icon icon-{$v[catdir]}"></span> {$v[catname]}</h4>
<ul class="f-p10">
<!--{php $tags=tag("moduleid=21&condition=status=3 and catid=".$v[catid]."&order=addtime asc&pagesize=10&template=null")}-->
{loop $tags $k $v}
<li><a href="{$v[linkurl]}" title="">{$v[title]}</a></li>
{/loop}
</ul><!-- / -->
</div>
{/loop}
~~~