<div class="row {$row_class|default:'catalog-row'}"{if $row_id} id="{$row_id}"{/if} {if $body.pager}data-page="{$body.pager.number}"
   data-products-row{/if} data-tracking-view='{get_gtm_data encode=true type='ecommerce' method='ProductsImpressions' data=['products' => $products, 'listType' => $listType, 'listId' => $listId]}'>

   {foreach $smarty.get.dynamic_filter.variations as $var_filter}
      {if $var_filter.value|count == 1}
         {$var_filter_active = true}
      {/if}
   {/foreach}

   {$collectionProducts = $products->fetchCollections()}
   {$tmp = $products->fetchVariations(true)}
   {$products->fetchPhotos(2)}

   {foreach $products as $product}
      {if $body.filter_active and $product.matched_id_variation and $var_filter_active}
         {$hash = "#`$product.matched_id_variation`"}
      {else}
         {$hash = ''}
      {/if}

      {if $product.banner}
         <div class="{$catalog_class|default:'col-lg-2 col-xxs-4'}">
            <div class="catalog-banner" data-tracking-view='{get_gtm_data type='ecommerce' method='PromotionImpression' encode=true data=['slider' => $product.banner.slider, 'position' => 1]}'>
               <a href="{$product.banner.link}" style="background-image: url('{get_photo photo=$product.banner.photo size='slider'}');" data-tracking-click='{get_gtm_data encode=true type='ecommerce' method='PromotionClick' data=['slider' => $product.banner.slider, 'slide' => $product.banner, 'position' => 1]}'>
                  <div class="catalog-banner-content">
                     {if $product.banner.custom_data.title}
                        <p class="descr">{$product.banner.custom_data.title|nl2br nofilter}</p>
                     {/if}
                     {if $product.banner.description}
                        <h2 class="title">{$product.banner.description|nl2br nofilter}</h2>
                     {/if}
                     {if $product.banner.link}
                        <span href="{$product.banner.link}" class="btn btn-secondary">{$product.banner.custom_data.btn|default:"{t}Prohlédnout{/t}"}</span>
                     {/if}
                  </div>
               </a>
            </div>
         </div>
         {if $product.id < 0}{break}{/if}
      {/if}

      {include 'components/block.products.item.tpl'}
   {/foreach}
</div>
