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

## {get_catname($catid)}

{m:lists field="id,catid,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 $tag_data = content_list_tag($v['catid'], $v['id']);} {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" catid="$catid" limit="30"} {loop $data $v}
- {$v[tag]}({$v[total]})
{/loop}

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