{if $slider.images}
   <div id="{$slider_id|default:'home-slider'}" class="{$slider_class}">
      {foreach $slider.images as $image}
         <div class="slider-item">
            {if $image.link}
               <a href="{$image.link}"><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>
{/if}
