{include file='index@common/header' /}
{include file='common/left' /}
{notempty name='channel.sub_ids'}
{php} $data = \app\content\model\Channel::where(['pid'=>$channel['id'],'status'=>1,'type'=>'channel']) -> order('sort desc,id asc') -> select(); {/php} {foreach name='data' item='vo'}
{php} $lists = $vo -> lists() -> order('sort desc,id desc') -> limit(5) -> select(); {/php} {foreach name='lists' item='vs'} {$key+1}. {$vs.shorttitle|mb_substr=0,24} {/foreach}
{/foreach}
{else/} {php} $lists = \app\content\model\Content::where(['channel_id' => $channel['id'], 'status' => 1]) -> order('sort desc, id desc') -> paginate(5); {/php}
{foreach name='lists' item='vs'} {$key+1}. {$vs.shorttitle|mb_substr=0,24} {/foreach}
{$lists -> render()} {/notempty}
{include file='index@common/footer' /}