modules/XC/CrispWhiteSkin/templates/web/customer/product/details/parts/gallery.twig line 1

Open in your IDE?
  1. {##
  2.  # Gallery widget
  3. #}
  4. <div class="product-image-gallery{{ this.getCSSClasses() }}"{% if this.isVisibleAsHidden() %} style="display:none;"{% endif %}>
  5.   <div class="product-image-gallery-navigation product-image-gallery-prev" id='product-image-gallery-prev-{{ this.getProductId() }}' style="display: none"></div>
  6.   <div class="slides">
  7.     <ul
  8.             class="cycle-cloak cycle-slideshow"
  9.             data-cycle-carousel-vertical=false
  10.             data-cycle-carousel-visible={{ this.getMinCountForSlider() }}
  11.             data-cycle-next="#product-image-gallery-next-{{ this.getProductId() }}"
  12.             data-cycle-prev="#product-image-gallery-prev-{{ this.getProductId() }}"
  13.             data-cycle-slides="> li"
  14.             data-cycle-auto-init="false"
  15.     >
  16.       {{ this.displayCommentedData(this.getDefaultCycleData()) }}
  17.       {% for i, image in this.get('product').getPublicImages() %}
  18.         <li {{ this.printTagAttributes(this.getListItemClassAttribute(i, image))|raw }}>
  19.           <a href="{{ image.getFrontURL() }}" rel="lightbox"
  20.              rev="width: {{ image.getWidth() }}, height: {{ image.getHeight() }}"
  21.              title="{{ image.getAlt() }}">{{ widget('\\XLite\\View\\Image', image=image, alt=this.getAlt(image, i), imageSizeType='MSThumbnail') }}</a>
  22.           {{ widget('\\XLite\\View\\Image', className='middle', style='display: none;', image=image, maxWidth=this.getWidgetMaxWidth(), maxHeight=this.getWidgetMaxHeight(), alt=this.getAlt(image, i)) }}
  23.         </li>
  24.       {% endfor %}
  25.     </ul>
  26.   </div>
  27.   <div class="product-image-gallery-navigation product-image-gallery-next" id='product-image-gallery-next-{{ this.getProductId() }}' style="display: none"></div>
  28. </div>
  29. <script>
  30.   var lightBoxImagesDir = '{{ this.getLightBoxImagesDir() }}';
  31. </script>