custom/plugins/CogiThemeTulip/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_breadcrumb %}
  3.     {% if app.request.attributes.get('theme-name') != 'CogiThemeTulip' %}
  4.         {{ parent() }}
  5.     {% else %}
  6.         {% set padT = shopware.config.CogiThemeTulip.config.productBreadcrumbPaddingTop ?: '0px' %}
  7.         {% set padB = shopware.config.CogiThemeTulip.config.productBreadcrumbPaddingBottom ?: '0px' %}
  8.         {% set padL = shopware.config.CogiThemeTulip.config.productBreadcrumbPaddingLeft ?: '0px' %}
  9.         {% set padR = shopware.config.CogiThemeTulip.config.productBreadcrumbPaddingRight ?: '0px' %}
  10.         <div class="breadcrumb product-breadcrumb container mb-4"
  11.              style="padding-top:{{ padT }};padding-bottom:{{ padB }};padding-left:{{ padL }};padding-right:{{ padR }};">
  12.             {% if shopware.config.CogiThemeTulip.config.showBreadcrumbLabel %}
  13.                 <span class="breadcrumb-label">{{ "cogi.theme.tulip.navigation.youAreHere"|trans }}&nbsp;</span>
  14.             {% endif %}
  15.             {% sw_include '@Storefront/storefront/component/product/breadcrumb.html.twig' with {
  16.                 navigationTree: page.header.navigation.tree,
  17.                 categoryTree: page.product.categoryTree|last,
  18.                 product: page.product,
  19.                 initCall: true
  20.             } only %}
  21.         </div>
  22.     {% endif %}
  23. {% endblock %}
  24. {% block page_product_detail_headline %}
  25. {% endblock %}
  26. {% block page_product_detail_media %}
  27.     {% if app.request.attributes.get('theme-name') != 'CogiThemeTulip' %}
  28.         {{ parent() }}
  29.     {% else %}
  30.         <div class="col-lg-5 product-detail-media">
  31.             {% if page.product.media %}
  32.                 {% sw_include 'storefront/element/cms-element-image-gallery.html.twig' with {
  33.                     'mediaItems': mediaItems,
  34.                     'zoom': true,
  35.                     'zoomModal': true,
  36.                     'displayMode': 'cover',
  37.                     'minHeight': '430px',
  38.                     'navigationArrows': 'inside',
  39.                     'navigationDots': 'inside',
  40.                     'galleryPosition': 'left',
  41.                     'isProduct': true,
  42.                     'fallbackImageTitle': page.product.translated.name,
  43.                     'startIndexThumbnails': page.product.cover.position + 1,
  44.                     'startIndexSlider': page.product.cover.position + 1,
  45.                     'showDisclaimer': true
  46.                 } %}
  47.             {% endif %}
  48.         </div>
  49.     {% endif %}
  50. {% endblock %}
  51. {% block page_product_detail_buy %}
  52.     {% if app.request.attributes.get('theme-name') != 'CogiThemeTulip' %}
  53.         {{ parent() }}
  54.     {% else %}
  55.         <div class="col-lg-6 offset-lg-1 product-detail-buy js-magnifier-zoom-image-container">
  56.             <div class="row align-items-center product-detail-headline">
  57.                 {% sw_include '@Storefront/storefront/page/product-detail/headline.html.twig' %}
  58.             </div>
  59.             {% set custom = page.product.getCustomFields() %}
  60.             {% if custom.cogi_theme_tulip_product_bullet_area %}
  61.                 {% set bulletIcon = custom.cogi_theme_tulip_product_bullet_area_bullet_icon ?: shopware.config.CogiThemeTulip.config.bulletAreaDefaultBulletIcon %}
  62.                 <div class="bullet-area {% if bulletIcon %}bullet-icon-{{ bulletIcon }}{% endif %} mb-3">
  63.                     {{ custom.cogi_theme_tulip_product_bullet_area|raw }}
  64.                 </div>
  65.             {% endif %}
  66.             <hr>
  67.             {% sw_include 'storefront/page/product-detail/additional-infos.html.twig' %}
  68.             {% sw_include 'storefront/page/product-detail/buy-widget.html.twig' %}
  69.         </div>
  70.     {% endif %}
  71. {% endblock %}
  72. {% block page_product_detail_cross_selling %}
  73.     {% if page.crossSellings|length %}
  74.         {{ parent() }}
  75.     {% endif %}
  76. {% endblock %}