{if isset($productsViewedObj) AND $productsViewedObj}

{capture name=id}
	id="viewed-products_block_left"
{/capture}

{capture name=class}
	block products_block
{/capture}

{capture name=title}
	{l s='Viewed products' mod='blockviewed'}
{/capture}

{capture name=content}
	{if	file_exists("$tpl_dir./modules/slider.tpl")}
		{include file="$tpl_dir./modules/slider.tpl" id="viewed_slider" products=$productsViewedObj link=$link isViewedProduct=true}
	{/if}
{/capture}

{if isset($blockId)}
	{include file='../block.tpl' id=$smarty.capture.id class=$smarty.capture.class title=$smarty.capture.title content=$smarty.capture.content blockId=$blockId}
{/if}
{/if}