点击排行{m:hits field="title,url,color,inputtime" catid="$catid" limit="10" cache="3600"} {loop $data $k=>$v} {php $k=$k+1;} <li><em>{$k}</em><span class="date"......
相关内容(TAG相同的内容为相关内容){m:relation field="title,url,color,updatetime" modelid="$modelid" id="$id" limit="5"} {loop $data $v} <li> <span class="yzm......
评论调用<div class="yzm-comment-list-box"> {m:comment_list modelid="$modelid" catid="$catid" id="$id" limit="20"} <div class="yzm-comment-list-top">共 {count($......
评论表单<form action="{U('comment/index/init')}" method="post" onsubmit="return check_comm(this)"> <input type="hidden" name="modelid" value="{$modelid}......
内容TAG标签{m:centent_tag modelid="$modelid" id="$id" limit="10"} {loop $data $v} <a href="{tag_url($v['id'])}" target="_blank">{$v[tag]}</a> {/loop}......
短标签(为了排版需要,长短标签分开展示)当前位置{get_location($catid)}当前URL{$url}标题{$title}来源:{$copyfrom}发布日期{date('Y-m-d H:i:s',$inputtime)}更......
TAG标签<ul class="yzm-tag-list"> {m:tag field="id,tag,total" limit="30"} {loop $data $v} <li><a href="{tag_url($v['id'])}" target="_blank">{$v[tag]}({$v......
最新评论{m:comment_newest limit="5"} <ul class="yzm-comment-list"> {loop $data $v} <li> <span class="comment_article"><a href="{$v[url]}" title="{$v[title]}">......
文章归档{m:content_archives modelid="1" type="2" limit="10"} {loop $data $v} <li><a href="{U('search/index/archives',array('pubtime'=>$v['in......
本栏目点击排行榜{m:hits field="title,url,color" catid="$catid" limit="10" cache="3600"} {loop $data $v} <li><a href="{$v[url]}" title="{$v[title]}">{title_color......
调用此栏目下所有内容并分页{m:lists field="title,updatetime,url,color,flag" catid="$catid" limit="20" page="page"} {loop $data $v} <li> <span class="yzm-date">......
短标签(为了排版需要,长短标签分开展示)当前位置{get_location($catid)}分页代码{$pages}调用缩略图{get_thumb($v['thumb'])}自定义缩略图大小{thumb($v['thum......
调用频道下所有栏目及最新文章{php $data = get_childcat($catid);} {loop $data $v} <div class="yzm-content-box yzm-img-list"> <div class="yzm-title"> <h......
栏目表(category)字段说明catid栏目idcatname栏目名称modelid模型idparentid父级idarrparentid父级路径,例如:(0,1)arrchildid子栏目id集合,例如:(1,2,3)catdir栏目目录c......
因为时间关系,暂时只列举出一些常用标签当前位置{get_location($catid)}根据栏目ID获取栏目信息{get_category(栏目ID, 获取的键)} 例如获取栏目ID为2的URL地址:{get_......
调用栏目ID为1的栏目下的二级栏目{php $data = get_childcat(1);} {loop $data $k=>$v} <a href="{$v[pclink]}" title="{$v[catname]}"> {$v[catname]}</a> {/loop}......
友情链接标签<a href="{U('link/index/init')}">申请友链</a> {m:link field="url,logo,name" limit="20"} {loop $data $v} <li><a href="{$v[url]}" target="_blank"......
全站TAG标签{m:tag field="id,tag,total" limit="20"} {loop $data $v} <li><a href="{tag_url($v['id'])}" target="_blank">{$v[tag]}</a></li> {/loop}catid此属性......