{if !empty($blocks) }
{foreach from=$blocks key=id item=block}
{if not empty($block->template)} {include file=$block->template assign=the_block|@get_extent:$id} {$the_block|replace:'dt':'h3'|replace:'
':''|replace:'
':''} {else} {$block->raw_content|replace:'dt':'h3'|replace:'
':''|replace:'
':''} {/if}
{/foreach}
{/if}