<!-- Block tags module -->
{capture name=id}
	id="tags_block_left"
{/capture}

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

{capture name=title}
	{l s='Tags' mod='blocktags'}
{/capture}

{capture name=content}
	{if $tags}
		{foreach from=$tags item=tag name=myLoop}
			<a href="{$link->getPageLink('search', true, NULL, "tag={$tag.name|urlencode}")}" title="{l s='More about' mod='blocktags'} {$tag.name|escape:html:'UTF-8'}" class="{$tag.class} {if $smarty.foreach.myLoop.last}last_item{elseif $smarty.foreach.myLoop.first}first_item{else}item{/if}">{$tag.name|escape:html:'UTF-8'}</a>
		{/foreach}
	{else}
		{l s='No tags specified yet' mod='blocktags'}
	{/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}
<!-- /Block tags module -->
