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}
版權(quán)聲明: 本站資源均來自互聯(lián)網(wǎng)或會員發(fā)布,如果侵犯了您的權(quán)益請與我們聯(lián)系,我們將在24小時內(nèi)刪除!謝謝!
轉(zhuǎn)載請注明: phpcms怎么獲取欄目名稱和鏈接