vendor/gourmops/theme/src/Resources/views/storefront/page/product-detail/index.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/product-detail/index.html.twig' %}
  2. {% block page_product_detail_content %}
  3.     <div class="product-detail-content">
  4.         {% set mediaItems = page.product.media.media %}
  5.         {% block page_product_detail_main %}
  6.             <div class="row product-detail-main">
  7.                 {% block page_product_detail_media %}
  8.                     <div class="col-lg-7 product-detail-media">
  9.                         {% if page.product.media %}
  10.                             {% sw_include '@Storefront/storefront/element/cms-element-image-gallery.html.twig' with {
  11.                                 'mediaItems': mediaItems,
  12.                                 'zoom': true,
  13.                                 'zoomModal': true,
  14.                                 'displayMode': 'contain',
  15.                                 'gutter': 5,
  16.                                 'minHeight': '430px',
  17.                                 'navigationArrows': 'inside',
  18.                                 'navigationDots': 'inside',
  19.                                 'galleryPosition': 'left',
  20.                                 'isProduct': true,
  21.                                 'fallbackImageTitle': page.product.translated.name,
  22.                                 'startIndexThumbnails': page.product.cover.position + 1,
  23.                                 'startIndexSlider': page.product.cover.position + 1,
  24.                                 'keepAspectRatioOnZoom': false
  25.                             } %}
  26.                         {% endif %}
  27.                     </div>
  28.                 {% endblock %}
  29.                 {% block page_product_detail_buy %}
  30.                     <div class="col-lg-5 product-detail-buy my-auto"
  31.                          data-aos="fade-left">
  32.                         {% block page_product_detail_headline %}
  33.                             <div class="product-detail-headline">
  34.                                 {% sw_include '@Storefront/storefront/page/product-detail/headline.html.twig' %}
  35.                             </div>
  36.                         {% endblock %}
  37.                         {% sw_include '@Storefront/storefront/page/product-detail/buy-widget.html.twig' %}
  38.                     </div>
  39.                 {% endblock %}
  40.             </div>
  41.         {% endblock %}
  42.     </div>
  43. {% endblock %}
  44. {% block page_product_detail_tabs %}
  45.     <div class="row product-detail-tabs"
  46.          data-aos="fade-up">
  47.         <div class="col-lg-7 pr-lg-0">
  48.             {% sw_include '@Storefront/storefront/page/product-detail/tabs.html.twig' %}
  49.         </div>
  50.     </div>
  51. {% endblock %}
  52. {% block page_product_detail_cross_selling %}
  53.     {% if page.crossSellings.elements is defined and page.crossSellings.elements|filter(item => item.total > 0)|length > 0 %}
  54.         <div class="product-detail-tabs product-detail-cross-selling"
  55.              data-aos="fade-up">
  56.             {% sw_include '@Storefront/storefront/page/product-detail/cross-selling/tabs.html.twig' with {
  57.                 crossSellings: page.crossSellings
  58.             } %}
  59.         </div>
  60.     {% endif %}
  61. {% endblock %}
  62. {% block page_product_detail_inner %}
  63.     {{ parent() }}
  64.     {% block page_product_detail_additional_description %}
  65.         <div class="product-detail-additional-description">
  66.             {% block page_product_detail_additional_description_main %}
  67.                 <div class="row product-detail-additional-description-main">
  68.                     {% sw_include '@Storefront/storefront/page/product-detail/additional-description.html.twig' %}
  69.                 </div>
  70.             {% endblock %}
  71.         </div>
  72.     {% endblock %}
  73. {% endblock %}