phpcms怎么获取栏目名称和链接

phpcms怎么获取栏目名称和链接呢,代码如下{pc:content action="lists" catid="9" num="15" order="updatetime DESC" moreinfo="1"}

{loop $data $r}

<div class="items">
<div class="cont

[时间:09-29]    [浏览:]    [放入收藏夹]    [查看详情]

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}


  本文转载自:精准像素:11px.cn ,感谢作者分享实用知识


标签: