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

{foreach from=$orderedBlocks item=block}


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