<{foreach item=photo key=count from=$block.photo name=photoloop}> <{if $count is div by $block.cols && ! $smarty.foreach.photoloop.last }> <{/if}> <{/foreach}>
alt="<{$photo.title}>" title="<{$photo.title}>" />