custom/apps/AtlKatanaTheme/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_headline %}{% endblock %}
  3. {% block page_product_detail_main %}
  4.     {% if theme_config('atl-product-detail-layout') == '75' %}
  5.         {% set colGallery = 'col-lg-7' %}
  6.         {% set colBuyBox = 'col-lg-5' %}
  7.     {% elseif theme_config('atl-product-detail-layout') == '66' %}
  8.         {% set colGallery = 'col-lg-6' %}
  9.         {% set colBuyBox = 'col-lg-6' %}
  10.     {% endif %}
  11.     <div class="row product-detail-main">
  12.         {% block page_product_detail_media %}
  13.             <div class="{{ colGallery }} product-detail-media">
  14.                 {% if page.product.media %}
  15.                     {% sw_include '@Storefront/storefront/element/cms-element-image-gallery.html.twig' with {
  16.                         'mediaItems': mediaItems,
  17.                         'zoom': true,
  18.                         'zoomModal': true,
  19.                         'displayMode': 'contain',
  20.                         'gutter': 5,
  21.                         'minHeight': '600px',
  22.                         'galleryPosition': 'left',
  23.                         'isProduct': true,
  24.                         'fallbackImageTitle': page.product.translated.name,
  25.                         'startIndexThumbnails': 1,
  26.                         'startIndexSlider': 1,
  27.                         'keepAspectRatioOnZoom': false
  28.                     } %}
  29.                 {% endif %}
  30.             </div>
  31.         {% endblock %}
  32.         {% block page_product_detail_buy %}
  33.             <div class="{{ colBuyBox }} product-detail-buy">
  34.                 {% sw_include '@Storefront/storefront/page/product-detail/buy-widget.html.twig' %}
  35.             </div>
  36.         {% endblock %}
  37.     </div>
  38. {% endblock %}
  39. {% block page_product_detail_tabs %}
  40.     <div class="product-detail-tabs">
  41.         {% if theme_config('atl-product-detail-tab-position') == 'below' %}
  42.             {% sw_include '@Storefront/storefront/page/product-detail/tabs.html.twig' %}
  43.         {# @deprecated tag:v2.0.0 - reviews will be moved to buy widget #}
  44.         {% elseif config('core.listing.showReview') %}
  45.             <div id="review-tab">
  46.                 {% sw_include '@Storefront/storefront/page/product-detail/review/review.html.twig' with { 'reviews': page.reviews } %}
  47.             </div>
  48.         {% endif %}
  49.     </div>
  50. {% endblock %}