{* Шаблон левых блоков *} {assign var="countlblocks" value=0} {section name=r loop=$left_blocks} {assign var="enabledblock" value=1} {assign var="block_info" value=$left_blocks[r]} {if $block_info[4] eq 1} {if !in_array($main_content_template, $block_info[9]) && !in_array($show_aux_page, $block_info[10]) && !in_array($categoryID, $block_info[11]) && !in_array($product_info.productID, $block_info[12])}{assign var="enabledblock" value=0}{/if} {else}{if $block_info[4] eq 2} {if in_array($main_content_template, $block_info[9]) || in_array($show_aux_page, $block_info[10]) || in_array($categoryID, $block_info[11]) || in_array($product_info.productID, $block_info[12])}{assign var="enabledblock" value=0}{/if} {/if}{/if} {if $block_info[8] eq 1}{if !$admlink}{assign var="enabledblock" value=0}{/if}{/if} {if $enabledblock eq 1} {if $block_info[7] eq "filter.tpl.html"} {if $main_content_template eq "category.tpl.html" or $main_content_template eq "category_search_result.tpl.html"} {if $categories_to_select}{assign var="enabledblock" value=0}{/if} {if !$categoryID}{assign var="enabledblock" value=0}{/if} {if !$allow_products_search}{assign var="enabledblock" value=0}{/if} {else}{assign var="enabledblock" value=0}{/if}{/if}{/if} {if $enabledblock eq 1} {assign var="countlblocks" value="`$countlblocks+1`"} {assign var="preheader" value="+"} {if $admlink && $left_blocks[r][1] ne ""}{assign var="postheader" value=`$preheader``$left_blocks[r][1]`}{else}{assign var="postheader" value=$left_blocks[r][1]}{/if} {include file="header.tpl.html" header=$postheader nopad=1}

{if $left_blocks[r][6] eq 1}{include file="blocks/$left_blocks[r][7]" blocknum=$smarty.section.r.index}{else}{$left_blocks[r][2]}{/if}

{/if} {/section} {if $countlblocks < 1}
{/if}