Zblog调用栏目文章的方法

zblog教程 2020-09-01
{foreach Getlist(10,2,null,null,null,null,array('has_subcate'=>true)) as $key=>$related } {$i=$key} {if $i==0}

{$related.Title}
{php} $intro= preg_replace('/[\r\n\s]+/', '', trim(SubStrUTF8(TransferHTML($related->Intro,'[nohtml]'),50)).'...'); {/php}

{$intro}

{else}

{$related.Time('m月d日')} {$related.Title}

{/if} {/foreach}

评论 (0)
    Top