custom/plugins/TcinnThemeWareModern/src/Resources/views/storefront/themeware/product-detail/twt-product-detail-tab-properties.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/utilities/offcanvas.html.twig' %}
  2. {# ThemeWare: "Properties tab" on product pages #}
  3. {#
  4.     Create container and add properties
  5.     @Storefront/storefront/themeware/product-detail/twt-product-detail-tab-properties.html.twig
  6. #}
  7. {# ---------------- START: SET TEMPLATE VARS ---------------- #}
  8. {# ThemeWare: Set theme variables #}
  9. {% set twtProductDetailTabPropertiesInfoShow = theme_config('twt-product-detail-tab-properties-info-show') %}
  10. {% set twtProductDetailTabPropertiesTitleShow = theme_config('twt-product-detail-tab-properties-title-show') %}
  11. {# ---------------- END: SET TEMPLATE VARS ---------------- #}
  12. {# ThemeWare: Adjustments on offcanvas tab-content #}
  13. {% block utilities_offcanvas_content %}
  14.     {# ThemeWare: Show properties in individuell tab if configured (see. tabs.html.twig) #}
  15.     {% block twt_product_detail_properties %}
  16.         {% block twt_product_detail_properties_container %}
  17.             <div class="twt-product-detail-properties tab-pane-container">
  18.                 {% block twt_product_detail_properties_content %}
  19.                     {# ThemeWare: Add properties headline #}
  20.                     {% block twt_product_detail_properties_title %}
  21.                         {% if twtProductDetailTabPropertiesTitleShow != 1 %}
  22.                                 <div class="h3 twt-product-properties-description-title">
  23.                                     {% if twtProductDetailTabPropertiesTitleShow == 2 %}
  24.                                         {# ThemeWare: Show snippet + product name #}
  25.                                         {{ "twt.detail.headlineProperties"|trans|sw_sanitize }} "{{ page.product.translated.name }}"
  26.                                     {% elseif twtProductDetailTabPropertiesTitleShow == 3 %}
  27.                                         {# ThemeWare: Show product name only #}
  28.                                         <div class="h3 product-detail-description-title">
  29.                                             {{ page.product.translated.name }}
  30.                                         </div>
  31.                                     {% elseif twtProductDetailTabPropertiesTitleShow == 4 %}
  32.                                         {# ThemeWare: Show snippet only #}
  33.                                         <div class="h3 product-detail-description-title">
  34.                                             {{ "twt.detail.headlineProperties"|trans|sw_sanitize }}
  35.                                         </div>
  36.                                     {% endif %}
  37.                                 </div>
  38.                         {% endif %}
  39.                     {% endblock %}
  40.                     {# ThemeWare: Add properties content #}
  41.                     {% block twt_product_detail_properties_text %}
  42.                         <div class="twt-product-detail-properties-text">
  43.                             {% block twt_product_detail_properties_text_include %}
  44.                                 {% if page.product.sortedProperties|length > 0 %}
  45.                                     {% sw_include '@Storefront/storefront/page/product-detail/properties.html.twig' %}
  46.                                 {% endif %}
  47.                             {% endblock %}
  48.                         </div>
  49.                     {% endblock %}
  50.                     {# ThemeWare: Add properties to offcanvas content #}
  51.                     {% block twt_product_detail_properties_info %}
  52.                         {% if twtProductDetailTabPropertiesInfoShow == 2 %}
  53.                             <div class="twt-product-detail-properties-info">
  54.                                 {{ "twt.detail.infoProperties"|trans|sw_sanitize }}
  55.                             </div>
  56.                         {% endif %}
  57.                     {% endblock %}
  58.                 {% endblock %}
  59.             </div>
  60.         {% endblock %}
  61.     {% endblock %}
  62. {% endblock %}