<{foreach item=main key=key from=$block.menus name=mainloop}> <{if $smarty.foreach.mainloop.first}><{/if}> <{/foreach}>