{if $albums}> <{assign var="i" value=0}> <{assign var="total" value=1}> <{foreach item=album from=$albums}> <{if $i==0}>