phpcms怎样获取栏目称号和链接呢,代码如下

{pc:contentaction="lists"catid="9"num="15"order="updatetimeDESC"moreinfo="1"}
	
{loop$data$r}
	
<pclass="items">
<pclass="content-box">
<pclass="posts-gallery-img"><ahref="{$r[url]}">
<imgclass="thumbnail"src="{thumb($r[thumb],232,175,0)}"alt="{$r[title]}"></a></p>
<pclass="posts-gallery-content">
	<h2><ahref="{$r[url]}"target="_blank">{$r[title]}</a></h2>
	<pclass="posts-gallery-text">{str_cut($r[description],340,'...')}</p>
	<pclass="posts-default-infoposts-gallery-info">
	<ul>
	
		<liclass="ico-cat"><iclass="iconfonticon-liebiao"></i>
		<ahref="{$CATEGORYS[$r[catid]][url]}"target="_blank">{$CATEGORYS[$r[catid]][catname]}</a></li>
		<liclass="ico-time"><iclass="iconfonticon-iconfontshijian"></i>{date('Y-m-d',$r[inputtime])}</li>
		<liclass="ico-eye"><iclass="iconfonticon-yanjing1"></i>{$views}</li>
	
	</ul>
	</p>
</p>
</p>
</p>
{/loop}
{/pc}


声明:有的资源均来自网络转载,版权归原作者所有,如有侵犯到您的权益 请联系邮箱:123456@qq.com 我们将配合处理!

原文地址:phpcms怎么获取栏目名称和链接发布于2022-05-22 07:43:35

相关推荐