{if $slider.images}
   <div class="category-slider-wrapper">
      <div class="{$sliderClass}" data-tracking-click="{['event'=>'catalogue_bannerClick']|json_encode}"{if $slider.images|count > 1} data-category-slider{/if}>
         {foreach $slider.images as $image}
            <div class="category-slider-item" data-tracking-view='{get_gtm_data type='ecommerce' method='PromotionImpression' encode=true data=['slider' => $slider, 'position' => $image@iteration]}'>
               {if $image.link}
                  <a href="{$image.link}"
                          {if $dbcfg.analytics.google_tag_manager.gtm_dl_version == '2'}
                             data-tracking-click='{get_gtm_data encode=true type='ecommerce' method='PromotionClick' data=['slider' => $slider, 'slide' => $image, 'position' => $image@iteration]}'
                          {else}
                             data-tracking-click="{['id'=>$image.id]|json_encode}"
                          {/if}
                  >
                     <img src="{get_photo photo=$image.photo size='slider'}" alt="{$image.description}" class="img-responsive">
                  </a>
               {else}
                  <img src="{get_photo photo=$image.photo size='slider'}" alt="{$image.description}" class="img-responsive">
               {/if}
            </div>
         {/foreach}
      </div>
   </div>
{/if}
