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