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

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/product-detail/index.html.twig' %}
  2. {% block base_content %}
  3.     <div class="cms-section-sidebar cms-section-sidebar-mobile-hidden full-width row">
  4.         {# orig:
  5.         <div class="cms-section-sidebar-sidebar-content col-md-3 col-lg-2 col-xl-2">
  6.             <div class="cms-element-{{ element.type }}">
  7.                 {% set navigationResult1 = page.header.navigation.tree %}
  8.                 {% set activeResult1 = page.header.navigation.active %}
  9.                 <div class="category-navigation-box">
  10.                     {% sw_include '@Storefront/storefront/layout/sidebar/category-navigation.html.twig' with {
  11.                         navigationTree: page.header.navigation.tree,
  12.                         activeResult: page.header.navigation.active
  13.                     } only %}
  14.                 </div>
  15.             </div>
  16.         </div>
  17.         #}
  18.         {% sw_include '@Storefront/storefront/layout/sidebar/overlay-categories.html.twig' %}
  19.         {% block page_product_detail %}
  20.             {# Albert: breadcrumb uit product-detail-content gehaald, zodat hij centreert t.o.v. de pagina #}
  21.             <div class="cms-section-sidebar-main-content col-12">
  22.                 {% block page_product_detail_breadcrumb_ideabooks %}
  23.                     {% deprecated '@deprecated tag:v6.4.0 - Breadcrumb will be handled by "base_breadcrumb" in "storefront/base.html.twig"' %}
  24.                     <div class="breadcrumb product-breadcrumb container">
  25.                         {# @deprecated tag:v6.4.0 parameter `navigationTree`, `categoryTree` and `product` will be removed #}
  26.                         {% sw_include '@Storefront/storefront/component/product/breadcrumb.html.twig' with {
  27.                             context: context,
  28.                             category: page.product.seoCategory,
  29.                             navigationTree: page.header.navigation.tree,
  30.                             categoryTree: page.product.categoryTree|last,
  31.                             product: page.product
  32.                         } only %}
  33.                     </div>
  34.                 {% endblock %}
  35.             </div>
  36.             <div class="cms-section-sidebar-main-content col-12">
  37.                 {# row toegevoegd om bootstrap cols te laten werken #}
  38.                 <div class="product-detail row"
  39.                      itemscope
  40.                      itemtype="https://schema.org/Product">
  41.                     {% block page_product_detail_inner %}
  42.                         {% block page_product_detail_content %}
  43.                             <div class="product-detail-content col-sm-12 col-md-7 col-lg-9 offset-md-1">{# extra linkermarge op md en lg met offset-md-1 #}
  44.                                 {% block page_product_detail_breadcrumb %}
  45.                                     {# Albert: breadcrumb uit product-detail-content gehaald, zodat hij centreert t.o.v. de pagina #}
  46.                                     {# {{ parent() }} #}
  47.                                 {% endblock %}
  48.                                 {% block page_product_detail_headline %}
  49.                                     {{ parent() }}
  50.                                 {% endblock %}
  51.                                 {% set mediaItems = page.product.media.media %}
  52.                                 {% block page_product_detail_main %}
  53.                                     <div class="row product-detail-main">
  54.                                         {% block page_product_detail_media %}
  55.                                             <div class="col-lg-11 product-detail-media">
  56.                                                 {% if page.product.media %}
  57.                                                     {# Albert: zoom uit #}
  58.                                                     {% sw_include '@Storefront/storefront/element/cms-element-image-gallery.html.twig' with {
  59.                                                         'mediaItems': mediaItems,
  60.                                                         'zoom': false,
  61.                                                         'zoomModal': true,
  62.                                                         'displayMode': 'contain',
  63.                                                         'gutter': 5,
  64.                                                         'minHeight': '430px',
  65.                                                         'navigationArrows': 'inside',
  66.                                                         'navigationDots': 'inside',
  67.                                                         'galleryPosition': 'left',
  68.                                                         'isProduct': true,
  69.                                                         'fallbackImageTitle': page.product.translated.name,
  70.                                                         'startIndexThumbnails': page.product.cover.position + 1,
  71.                                                         'startIndexSlider': page.product.cover.position + 1
  72.                                                     } %}
  73.                                                 {% endif %}
  74.                                             </div>
  75.                                         {% endblock %}
  76.                                     </div>
  77.                                     <div class="row product-detail-main">
  78.                                         {% block page_product_detail_buy %}
  79.                                             <div class="col-lg-11 product-detail-buy">
  80.                                                 {% sw_include '@Storefront/storefront/page/product-detail/buy-widget.html.twig' %}
  81.                                             </div>
  82.                                         {% endblock %}
  83.                                     </div>
  84.                                 {% endblock %}
  85.                             </div>
  86.                         {% endblock %}
  87.                         {% block page_product_detail_tabs %}
  88.                             {#
  89.                             <div class="product-detail-tabs">
  90.                                 {% sw_include '@Storefront/storefront/page/product-detail/tabs.html.twig' %}
  91.                             </div>
  92.                             #}
  93.                         {% endblock %}
  94.                         {% block page_product_detail_cross_selling %}
  95.                             <div class="product-detail-tabs product-detail-cross-selling col-sm-12 col-md-4 col-lg-2">
  96.                                 {{ parent() }}
  97.                             </div>
  98.                         {% endblock %}
  99.                     {% endblock %}
  100.                 </div>
  101.             </div>
  102.         {% endblock %}
  103.     </div>
  104. {% endblock %}