其他分享
首页 > 其他分享> > zblog调取置顶文章

zblog调取置顶文章

作者:互联网

{$topArray = GetList(8, null, null, null, null, null, array("only_ontop"  => true));}
{if $topArray}
<section class="catebox home_top">
<h3 class="title">置顶推荐</h3>
<ul>
{foreach $topArray as $istop}
<li>
<div class="thumbnail">
<a href="{$istop.Url}" target="_blank" title="{$istop.Title}">{zblogcms_thumbnail($istop)}</a>
</div>
<h4><a href="{$istop.Url}" target="_blank" title="{$istop.Title}">{$istop.Title}</a></h4>
</li>
{/foreach}
</ul>
</section>
{/if}

标签:zblog,topArray,istop,foreach,null,调取,置顶
来源: https://www.cnblogs.com/xinlvtian/p/14454030.html