phpcms怎么获取栏目名称和链接呢,代码如下
{pc:content action="lists" catid="9" num="15" order="updatetime DESC" moreinfo="1"} {loop $data $r} <div class="items"> <div class="content-box"> <div class="posts-gallery-img"><a href="{$r[url]}"> <img class="thumbnail" src="{thumb($r[thumb], 232, 175,0)}" alt="{$r[title]}"></a> </div> <div class="posts-gallery-content"> <h2><a href="{$r[url]}" target="_blank">{$r[title]}</a></h2> <div class="posts-gallery-text">{str_cut($r[description],340,'...')}</div> <div 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> </div> </div> </div> </div> {/loop} {/pc}
资源均来自第三方,谨慎下载,前往第三方网站下载