phpcms怎么获取栏目名称和链接呢,代码如下
{pc:content action="lists" catid="9" num="15" order="updatetime DESC" moreinfo="1"} {loop $data $r} <p class="items"> <p class="content-box"> <p class="posts-gallery-img"><a href="{$r[url]}"> <img class="thumbnail" src="{thumb($r[thumb], 232, 175,0)}" alt="{$r[title]}"></a> </p> <p class="posts-gallery-content"> <h2><a href="{$r[url]}" target="_blank">{$r[title]}</a></h2> <p class="posts-gallery-text">{str_cut($r[description],340,'...')}</p> <p class="posts-default-info posts-gallery-info"> <ul> <li class="ico-cat"><i class="iconfont icon-liebiao"></i> <a href="{$CATEGORYS[$r[catid]][url]}" target="_blank">{$CATEGORYS[$r[catid]][catname]}</a></li> <li class="ico-time"><i class="iconfont icon-iconfontshijian"></i> {date('Y-m-d',$r[inputtime])}</li> <li class="ico-eye"><i class="iconfont icon-yanjing1"></i>{$views}</li> </ul> </p> </p> </p> </p> {/loop} {/pc}
版权声明: 本站资源均来自互联网或会员发布,如果侵犯了您的权益请与我们联系,我们将在24小时内删除!谢谢!
转载请注明: phpcms怎么获取栏目名称和链接