custom/plugins/BettenABC/src/Resources/views/storefront/page/product-detail/index.html.twig line 1

Open in your IDE?
  1. {#
  2. # Project:      www.betten-abc.de
  3. # Company:      arboro GmbH
  4. # Created by:   Daniel Geike
  5. # Created on:   10.05.22
  6. # Description:
  7. #}
  8. {% sw_extends "@Storefront/storefront/page/product-detail/index.html.twig" %}
  9. {% block base_main_inner %}
  10.     {% block page_product_detail_breadcrumb %}
  11.         <div class="container breadcrumb-container">
  12.             {{ block("cms_breadcrumb", "@Storefront/storefront/page/content/index.html.twig") }}
  13.         </div>
  14.     {% endblock %}
  15.     <div class="container container-product-detail">
  16.         {{ block("base_main_container") }}
  17.     </div>
  18. {% endblock %}
  19. {% block page_product_detail_media %}
  20.     <div class="col-lg-7 product-detail-media">
  21.         {% if page.product.media %}
  22.             {% sw_include '@Storefront/storefront/element/cms-element-image-gallery.html.twig' with {
  23.                 'mediaItems': mediaItems,
  24.                 'zoom': true,
  25.                 'zoomModal': true,
  26.                 'displayMode': 'contain',
  27.                 'gutter': 5,
  28.                 'minHeight': '270px',
  29.                 'navigationArrows': 'inside',
  30.                 'navigationDots': 'inside',
  31.                 'galleryPosition': 'none',
  32.                 'isProduct': true,
  33.                 'fallbackImageTitle': page.product.translated.name,
  34.                 'startIndexThumbnails': page.product.cover.position + 1,
  35.                 'startIndexSlider': page.product.cover.position + 1,
  36.                 'keepAspectRatioOnZoom': false,
  37.                 'slideBy': 1,
  38.                 'responsive': {
  39.                     'minHeight': '430px',
  40.                 },
  41.                 'thumbnailSlider': {
  42.                     enabled: true,
  43.                     gutter: 20,
  44.                     rewind: true,
  45.                     axis: "horizontal",
  46.                     items: 4,
  47.                     slideBy: 1,
  48.                     controls: false,
  49.                     responsive: {
  50.                         "xs": {
  51.                             enabled: true,
  52.                             gutter: 6,
  53.                             rewind: true,
  54.                             axis: "horizontal",
  55.                             items: 3,
  56.                             controls: false
  57.                         },
  58.                         "sm": {
  59.                             enabled: true,
  60.                             gutter: 16,
  61.                             rewind: true,
  62.                             axis: "horizontal",
  63.                             items: 4,
  64.                             controls: false
  65.                         },
  66.                         "md": {
  67.                             gutter: 16,
  68.                             rewind: true,
  69.                             axis: "horizontal",
  70.                             items: 4,
  71.                             controls: false
  72.                         },
  73.                         "lg": {
  74.                             gutter: 20,
  75.                             rewind: true,
  76.                             axis: "horizontal",
  77.                             items: 4,
  78.                             controls: false
  79.                         },
  80.                         "xl": {
  81.                             gutter: 20,
  82.                             rewind: true,
  83.                             axis: "horizontal",
  84.                             items: 4,
  85.                             controls: false
  86.                         }
  87.                     }
  88.                 }
  89.             } %}
  90.         {% endif %}
  91.     </div>
  92. {% endblock %}