{if $slider.images}
   <div class="slider">
      {$image = $slider.images[0]}
      {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>
{/if}
