{* $Id: view.tpl 7924 2009-09-01 09:19:29Z alexions $ *}

{if $addons.tags.tags_for_products == "Y" && $products}

	{include file="common_templates/subheader.tpl" title=$lang.products}
	
	{assign var="layouts" value=""|fn_get_products_views:false:0}
	
	{if $layouts.$selected_layout.template}
		{include file="`$layouts.$selected_layout.template`" columns=$settings.Appearance.columns_in_products_list}
	{/if}
{/if}

{if $addons.tags.tags_for_pages == "Y" && $pages}
	{include file="common_templates/subheader.tpl" title=$lang.pages}

	<ul>
		{foreach from=$pages item="page"}
		<li><a href="{$index_script}?dispatch=pages.view&amp;page_id={$page.page_id}">{$page.page}</a></li>
		{/foreach}
	</ul>
{/if}

{hook name="tags:view"}{/hook}

{if !$tag_objects_exist}
<p class="no-items">{$lang.no_data}</p>
{/if}

{capture name="mainbox_title"}{$page_title}{/capture}
