{assign var=idAttr value="{if isset($id)}{$id}{else}''{/if}"}
{assign var=blockClass value="{if isset($class)}{$class}{else}''{/if}"}
{assign var=blockTitle value="{if isset($title)}{$title}{else}''{/if}"}
{assign var=blockContent value="{if isset($content)}{$content}{else}''{/if}"}

{if isset($blockId) && file_exists("$tpl_dir./includes/block_for_layout_position_{$blockId}.tpl")}
	{include file="$tpl_dir./includes/block_for_layout_position_{$blockId}.tpl" id=$idAttr cssClass=$blockClass title=$blockTitle content=$blockContent}
{/if}