{include file='index@common/header' /}
{php} $content = new \app\content\model\Content(); $data = $content -> attrlist('头条',3); {/php} {foreach name="data" item="vo" } {lt name='key' value='1'}

{$vo.title|mb_substr=0,14}

{$vo.description|mb_substr=0,100}

{else /}

{$vo.title}

{$vo.description|mb_substr=0,120}

{/lt} {/foreach}
{if condition="check_app('mbzs')"}

{/if} {php} $data = \app\content\model\Channel::where(['pid'=>0,'status'=>1,'eb_url'=>'']) -> order('sort desc,id asc') -> select(); {/php} {foreach name='data' item='vo'}
{empty name='vo.subs'}
{eq name='vo.eb_url' value=''} {php} $lists = $vo -> lists() -> limit(5) -> order('id desc') -> select(); {/php} {foreach name='lists' item='vs'} {$key+1}. {$vs.shorttitle|mb_substr=0,24} {/foreach} {/eq}
{else/}
{foreach name='vo.subs' item='subcate'} {eq name='subcate.eb_url' value=''} {$subcate.title} {/eq} {/foreach}
{$vo.title}
{foreach name='vo.subs' item='subcate'} {eq name='subcate.eb_url' value=''} {/eq} {/foreach}
{/empty}
{/foreach}
滚动新闻
{php} $data = \app\content\model\Content::where(['status'=>1]) -> order('id desc') -> limit(4) -> select(); {/php} {foreach name='data' item='vo'} {$vo.shorttitle} {/foreach}
{if condition="check_app('mbzs')"}

{/if}
推荐标签
{php} $data = \app\content\model\Tag::order('recommend desc,count desc,id desc') -> limit(20) -> select(); {/php} {foreach name='data' item='vo'} {$vo.tag}({$vo.count})   {/foreach}
{include file='index@common/footer' /}