{config_load file="lang/$language/lang_$language.conf" section="index"}
{$MODULE_error}

{foreach from=$SORTING item=box}
	{if $box=='text1'}
		{if $title}<h1>{$title}</h1>{/if}
		<div class="product_info_name">{$text}</div>
		<br class="clearfix">
	{elseif $box=='promo'}
		{$MODULE_products_promotion}
	{elseif $box=='cat'}	
		{if $CATEGORIES_LIST}
			{$CATEGORIES_LIST}
			<br class="clearfix">
		{/if}
	{elseif $box=='upc'}
		{if $MODULE_upcoming_products}
			{$MODULE_upcoming_products}
			<br class="clearfix">
		{/if}
	{elseif $box=='newp'}
		{if $MODULE_new_products}
			{$MODULE_new_products}
			<br class="clearfix">
		{/if}
	{elseif $box=='randp'}
		{if $MODULE_random_products}
			{$MODULE_random_products}
			<br class="clearfix">
		{/if}
	{elseif $box=='rands'}
		{if $MODULE_random_specials}
			{$MODULE_random_specials}
			<br class="clearfix">
		{/if}
	{elseif $box=='best'}
		{if $MODULE_main_bestseller}
			{$MODULE_main_bestseller}
			<br class="clearfix">
		{/if}
	{elseif $box=='blog'}
		{if $MODULE_main_blog}
			{$MODULE_main_blog}
			<br class="clearfix">
		{/if}
	{elseif $box=='text2'}
		{if $text_footer}
			{if $title_footer}<h2>{$title_footer}</h2>{/if}
			<div class="product_info_name">{$text_footer}</div>
		{/if}
	{/if}
{/foreach}

		{if $MODULE_main_feed}
			{$MODULE_main_feed}
			<br class="clearfix">
		{/if}


