{foreach from=$topItems item='item' name='topItem'} {if $smarty.foreach.topItem.index == 0} {include file=$item->tpl item=$item} {else}
{include file=$item->tpl item=$item}
{/if} {/foreach}