templates/page/gallery_photos.html.twig line 1

Open in your IDE?
  1. {% for photo in collection %}
  2.     <!--Gallery Two Single Start-->
  3.     <div class="col-md-3">
  4.         <div class="item">
  5.             <div class="gallery-two__img">
  6.                 <a data-fancybox="gallery" data-caption="{{ photo.title }}" href="{{ asset(photo.getThumbnailPath()|imagine_filter('thumbnail_large')) }}">
  7.                     <img src="{{ asset(photo.getThumbnailPath()|imagine_filter('thumbnail_large')) }}" alt="{{ photo.title }}">
  8.                 </a>
  9.             </div>
  10.         </div>
  11.     </div>
  12.     <!--Gallery Two Single End-->  
  13. {% else %}         
  14.     <div class="col-md-12">
  15.         <div class="empty-photos text-center">
  16.             <h3>No photos found in this gallery</h3>
  17.         </div>
  18.     </div>
  19. {% endfor %}