{m:include "index","header"}

## {get_catname($catid)}

{m:lists field="id,title,description,url,flag,color,thumb" catid="$catid" limit="10" page="page"} {loop $data $v}
{if strstr($v['flag'],'1')}顶{/if} {title_color($v['title'], $v['color'])}

{$v[description]}

{php $aid = $v['id'];} {m:get sql="SELECT id,tag FROM yzmcms_tag_content AS a LEFT JOIN yzmcms_tag AS b ON a.tagid=b.id WHERE aid=$aid" limit="5" return="tag_data"} {loop $tag_data $val} {$val[tag]} {/loop}
{/loop}
{$pages}

## 点击排行

{m:hits field="title,url,color,inputtime" catid="$catid" limit="10" cache="3600"} {loop $data $k=>$v} {php $k=$k+1;}
- {$k}{date('m-d',$v['inputtime'])}{title_color($v['title'], $v['color'])}
{/loop}

## 随机推荐

{m:lists field="title,url,color,inputtime" catid="$catid" order="RAND()" limit="10"} {loop $data $v}
- {date('m-d',$v['inputtime'])}{title_color($v['title'], $v['color'])}
{/loop}

PC+WAP+微信三站合一

YzmCMS开源CMS

## 最新评论

{m:comment_newest limit="10"}

{loop $data $v}
- {$v[title]}

  {if $v['userid']}{$v[username]}{else}网友评论{/if}：{$v[content]}

{/loop}

## 热门标签

{m:tag field="id,tag,total,remarks" catid="$catid" limit="30"} {loop $data $v}
- {$v[tag]}({$v[total]})
{/loop}

{m:include "index","footer"}