{if $slider.images|count}
   {foreach $slider.images|array_slice:0:1 as $image}
      <div class="home-slider-carousel" data-tracking-view='{get_gtm_data type='ecommerce' method='PromotionImpression' encode=true data=['slider' => $slider, 'position' => $image@iteration]}'
           data-pos="{$image@iteration}">
         <a href="{$image.link}" class="img" style="background-image: url('{get_photo photo=$image.photo size='slider'}');"
            data-tracking-click='{get_gtm_data encode=true type='ecommerce' method='PromotionClick' data=['slider' => $slider, 'slide' => $image, 'position' => $image@iteration]}'>
            <div class="text">
               {if $image.custom_data.title}
                  <h3 class="slider-title">{$image.custom_data.title}</h3>
               {/if}
               {if $image.description}
                  <h2>{$image.description|nl2br nofilter}</h2>
               {/if}
               <span class="btn btn-slider" data-tracking-click='{get_gtm_data encode=true type='ecommerce' method='PromotionClick' data=['slider' => $slider, 'slide' => $image, 'position' => $image@iteration]}'>{$image.custom_data.btn|default:"{t}Prozkoumat{/t}"}</span>
            </div>
         </a>
      </div>
      <a href="{$image.link}" class="btn btn-primary btn-resp" data-tracking-click='{get_gtm_data encode=true type='ecommerce' method='PromotionClick' data=['slider' => $slider, 'slide' => $image, 'position' => $image@iteration]}'>{$image.custom_data.btn|default:"{t}Prozkoumat{/t}"}</a>
   {/foreach}
{/if}
