{foreach from=$lblocks item=lblock name=lblocks} {capture name=lblock} {if $lblock.type eq 'B'} {include file="_system_/blocks/banner.html" id=$lblock.elem_id column=$lblock.column} {elseif not $lblock.name} {include file="_system_/side_block.html" title=$lblock.caption content=$lblock.content} {else} {include file="_system_/blocks/`$lblock.name`.html"} {/if} {/capture} {$smarty.capture.lblock} {assign var=block_content value=$smarty.capture.lblock|trim} {if not $smarty.foreach.lblocks.last and $block_content}