{assign var='thumbnails' value=$block.thumbnails} {if !empty($thumbnails)} {foreach from=$thumbnails item=thumbnail}