{php}remove_event_handler('loc_end_index', 'hide_main_block');{/php} {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}