{foreach from=$blocks item=block key=key}
{if isset($block.TITLE)}
{if !empty($block.U_EDIT)} {/if} {if isset($block.TITLE_URL)}

{$block.TITLE}

{else}

{$block.TITLE}

{/if}
{/if} {include file=$block.TEMPLATE}
{/foreach}