{if !empty($sliderParameter) && $sliderParameter[0]->isVisible && !$sliderParameter[0]->width}
    {include file="module:polarisprestatheme/views/templates/hook/slider.tpl"}
{/if}

{foreach from=$orderedBlocks item=block}


    {if $block == 'category'}
        {if !empty($categorieParameter) && $categorieParameter[0]->isVisible && $categories}
            {include file="module:polarisprestatheme/views/templates/hook/category.tpl"}
        {/if}
    {elseif $block == 'new_products'}
        {if $newProducts && $newActive}
            {include file="module:polarisprestatheme/views/templates/hook/product_new.tpl"}
        {/if}
    {elseif $block == 'about'}
        {if $about[0]->isVisible}
            {include file="module:polarisprestatheme/views/templates/hook/about.tpl"}
        {/if}
    {elseif $block == 'sale_products'}
        {if $saleProducts && $saleActive}
            {include file="module:polarisprestatheme/views/templates/hook/product_sale.tpl"}
        {/if}
    {elseif $block == 'highlight'}
        {if !empty($highlights)}
            {include file="module:polarisprestatheme/views/templates/hook/highlight.tpl"}
        {/if}
    {elseif $block == 'brand'}
        {if !empty($brands) && $brands[0]->isVisible}
            {include file="module:polarisprestatheme/views/templates/hook/brand.tpl"}
        {/if}
    {/if}
  {/foreach}
