pc标签之首页
推荐位
{pc:content action="position" posid="2" order="listorder DESC" num="4"} {loop $data $r} <h4 class="blue"><a href="{$r[url]}" title="{$r[title]}">{str_cut($r[title],36,'')}</a></h4> <p>{if $n==1}<img src="{thumb($r[thumb],90,60)}" width="90" height="60"/>{/if}{str_cut($r[description],112)}</p> <div class="bk20 hr"><hr /></div> {/loop} {/pc}
公告
{pc:announce action="lists" siteid="$siteid" num="2"} <ul class="list lh24 f14"> {loop $data $r} <li> <a href="{APP_PATH}index.php?m=announce&c=index&a=show&aid={$r['aid']}">{$r['title']}</a></li> {/loop} </ul> {/pc}
热点
{pc:content action="hits" catid="6" num="10" order="views DESC"} {loop $data $r} <li><a href="{$r[url]}" target="_blank" title="{$r[title]}"{title_style($r[style])}>{$r[title]}</a></li> {/loop} {/pc}
评论
{pc:comment action="bang" num="10" cache="3600"} {loop $data $r} <li><a href="{$r[url]}" target="_blank">{$r[title]}</a></li> {/loop} {/pc}
关注
{pc:content action="hits" catid="6" num="10" order="views DESC"} {loop $data $r} <li><a href="{$r[url]}" target="_blank">{$r[title]}</a></li> {/loop} {/pc}
友情链接
{pc:link action="type_list" siteid="$siteid" linktype="1" order="listorder DESC" num="8" return="pic_link"}
{loop $pic_link $v}
<li><a href="{$v['url']}" title="{$v["name']}" target="_blank"><img src="{$v[logo]}" width="88" height="31" /></a></li>
{/loop}
{/pc}
文章列表
面包屑:
<div class="crumbs"><a href="{siteurl($siteid)}">首页</a><span> > </span>{catpos($catid)} 列表</div>
文章列表调用
{pc:content action="lists" catid="$catid" num="25" order="id DESC" page="$page"} <ul class="list lh24 f14"> {loop $data $r} <li><span class="rt">{date('Y-m-d H:i:s',$r[inputtime])}</span>·<a href="{$r[url]}" target="_blank"{title_style($r[style])}>{$r[title]}</a></li> {if $n%5==0}<li class="bk20 hr"></li>{/if} {/loop} </ul> <div id="pages" class="text-c">{$pages}</div> {/pc}
列表分页
<div id="pages" class="text-c">{$pages}</div>
文章频道总排行
{pc:content action="hits" catid="$catid" num="10" order="views DESC" cache="3600"} <ul class="content digg"> {loop $data $r} <li><a href="{$r[url]}" target="_blank">{$r[title]}</a></li> {/loop} </ul> {/pc}
文章频道月总排行
{pc:content action="hits" catid="$catid" num="8" order="monthviews DESC" cache="3600"} <ul class="content rank"> {loop $data $r} <li><span>{number_format($r[monthviews])}</span><a href="{$r[url]}"{title_style($r[style])} class="title" title="{$r[title]}">{str_cut($r[title],56,'...')}</a></li> {/loop} </ul> {/pc}
文章详情页
相关文章
{pc:content action="relation" relation="$relation" id="$id" catid="$catid" num="5" keywords="$rs[keywords]"} {if $data} <div class="related"> <h5 class="blue">延伸阅读:</h5> <ul class="list blue lh24 f14"> {loop $data $r} <li>·<a href="{$r[url]}" target="_blank">{$r[title]}</a><span>({date('Y-m-d',$r[inputtime])})</span></li> {/loop} </ul> </div> {/if} {/pc}
评论排行
<h5>评论排行</h5> {pc:comment action="bang" siteid="$siteid" cache="3600"} <ul class="content list blue f14 row-2"> {loop $data $r} <li>·<a href="{$r[url]}" target="_blank">{str_cut($r[title], 40)}</a><span>({$r[total]})</span></li> {/loop} </ul> {/pc}
图片列表
{pc:content action="lists" catid="$catid" num="10" order="id DESC" page="$page"} <ul class="photo-list picbig"> {loop $data $r} <li> <div class="img-wrap"> <a href="{$r[url]}"><img src="{thumb($r[thumb],150,112)}" width="150" height="112" alt="{$r[title]}"/></a> </div> <span style="color:{$r[style]}">{str_cut($r[title],28)}</span> </li> {/loop} </ul> <div id="pages" class="text-c">{$pages}</div> {/pc}
图片详情页调用组图列表
{loop $pictureurls $pic_k $r} <li><div class="img-wrap"><a href="javascript:;" hidefocus="true"><img src="{thumb($r[url], 100, 137, 0)}" alt="{$r[alt]}" rel="{$r[url]}"/></a></div></li> {/loop}