{foreach from=$block.pics item=photo}> <{if $block.show_txt}> <{$photo.pic_txt}> <{/if}> <{/foreach}>