custom/plugins/digi1Moretabsforproductdetailpage/src/Resources/views/storefront/element/cms-element-product-description-reviews.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/element/cms-element-product-description-reviews.html.twig' %}
  2. {% block element_product_desciption_reviews %}
  3.     {% set config = element.fieldConfig.elements %}
  4.     {% set product = element.data.product %}
  5.     {% set descriptionTabId = "description-tab-" ~ product.id %}
  6.     {% set descriptionTabHref = "#description-tab-" ~ product.id ~ "-pane" %}
  7.     {% set descriptionTabContent = "description-tab-" ~ product.id ~ "-pane" %}
  8.     {% set reviewTabId = "review-tab-" ~ product.id %}
  9.     {% set reviewTabHref = "#review-tab-" ~ product.id ~ "-pane" %}
  10.     {% set reviewTabContent = "review-tab-" ~ product.id ~ "-pane" %}
  11.     {% set separatetabproperties = config('digi1Moretabsforproductdetailpage').config.separatetabproperties %}
  12.     {% set separatetabpropertiesposition = config('digi1Moretabsforproductdetailpage').config.separatetabpropertiesposition %}
  13.     {% set productSortedProperties = page.product.sortedProperties %}
  14.     {% set separatetabmanufacturer = config('digi1Moretabsforproductdetailpage').config.separatetabmanufacturer %}
  15.     {% set separatetabmanufacturerposition = config('digi1Moretabsforproductdetailpage').config.separatetabmanufacturerposition %}
  16.     {% set productManufacturer = page.product.manufacturer %}
  17.     {% set productManufacturerDescription = page.product.manufacturer.translated.description %}
  18.     {% set tab1position = config('digi1Moretabsforproductdetailpage').config.tab1position %}
  19.     {% set digi1_owntabs_tab1content = page.product.customFields.digi1_owntabs_tab1content %}
  20.     {% set tab1fillviasnippet = config('digi1Moretabsforproductdetailpage').config.tab1fillviasnippet %}
  21.     {% set tab2position = config('digi1Moretabsforproductdetailpage').config.tab2position %}
  22.     {% set digi1_owntabs_tab2content = page.product.customFields.digi1_owntabs_tab2content %}
  23.     {% set tab2fillviasnippet = config('digi1Moretabsforproductdetailpage').config.tab2fillviasnippet %}
  24.     {% set tab3position = config('digi1Moretabsforproductdetailpage').config.tab3position %}
  25.     {% set digi1_owntabs_tab3content = page.product.customFields.digi1_owntabs_tab3content %}
  26.     {% set tab3fillviasnippet = config('digi1Moretabsforproductdetailpage').config.tab3fillviasnippet %}
  27.     {% set tab4position = config('digi1Moretabsforproductdetailpage').config.tab4position %}
  28.     {% set digi1_owntabs_tab4content = page.product.customFields.digi1_owntabs_tab4content %}
  29.     {% set tab4fillviasnippet = config('digi1Moretabsforproductdetailpage').config.tab4fillviasnippet %}
  30.     {% set tab5position = config('digi1Moretabsforproductdetailpage').config.tab5position %}
  31.     {% set digi1_owntabs_tab5content = page.product.customFields.digi1_owntabs_tab5content %}
  32.     {% set tab5fillviasnippet = config('digi1Moretabsforproductdetailpage').config.tab5fillviasnippet %}
  33.     {% if element.data.product %}
  34.         <div class="cms-element-{{ element.type }}{% if config.alignment.value %} has-vertical-alignment{% endif %}">
  35.             {% if config.alignment.value %}
  36.             <div class="cms-element-alignment{% if config.alignment.value == "center" %} align-self-center{% elseif config.alignment.value == "flex-end" %} align-self-end{% else %} align-self-start{% endif %}">
  37.                 {% endif %}
  38.                 <div class="card card-tabs">
  39.                     {% block element_product_desciption_reviews_tabs_navigation %}
  40.                         <div class="cms-card-header card-header product-detail-tab-navigation product-description-reviews-tab-navigation">
  41.                             {% block element_product_desciption_reviews_tabs_navigation_container %}
  42.                                 <ul class="nav nav-tabs product-detail-tab-navigation-list"
  43.                                     id="product-detail-tabs"
  44.                                     role="tablist">
  45.                                     {% block element_product_desciption_reviews_tabs_navigation_description %}
  46.                                         <li class="nav-item">
  47.                                             <a class="nav-link {% if (ratingSuccess != 1) and (ratingSuccess != -1) %}active{% endif %} product-detail-tab-navigation-link"
  48.                                                id="{{ descriptionTabId }}"
  49.                                                data-toggle="tab"
  50.                                                data-offcanvas-tabs="true"
  51.                                                href="{{ descriptionTabHref }}"
  52.                                                role="tab"
  53.                                                aria-controls="{{ descriptionTabContent }}"
  54.                                                aria-selected="true">
  55.                                                 <span>{{ "detail.tabsDescription"|trans|sw_sanitize }}</span>
  56.                                                 <span class="product-detail-tab-navigation-icon">
  57.                                                     {% sw_icon 'arrow-medium-right' style {'pack':'solid'} %}
  58.                                                 </span>
  59.                                                 {% if element.data.product.translated.description|length > 0 %}
  60.                                                     <span class="product-detail-tab-preview">
  61.                                                         {{ page.product.translated.description|raw|striptags|sw_sanitize|u.truncate(125, '…') }}
  62.                                                         {# truncate always cuts down the length to 125 characters.
  63.                                                                So it will only shorten the string if it exceeds 125 chars.
  64.                                                                Therefor, only show the button when the length of the text is
  65.                                                                greater or equal then 126 characters. #}
  66.                                                         {% if element.data.product.translated.description|length >= 126 %}
  67.                                                             <span class="product-detail-tab-preview-more">{{ "detail.tabsPreviewMore"|trans|sw_sanitize }}</span>
  68.                                                         {% endif %}
  69.                                                         </span>
  70.                                                 {% endif %}
  71.                                             </a>
  72.                                         </li>
  73.                                     {% endblock %}
  74.                                     {% if separatetabproperties == "yes" and separatetabpropertiesposition == "before_rating_tab1" %}
  75.                                         {% if productSortedProperties|length > 0 %}
  76.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabpropertiesheadline_beforeratingtab1 %}
  77.                                                 {% sw_include '@Storefront/storefront/page/product-detail/properties-headline.html.twig' %}
  78.                                             {% endblock %}
  79.                                         {% endif %}
  80.                                     {% endif %}
  81.                                     {% if separatetabmanufacturer == "yes" and separatetabmanufacturerposition == "before_rating_tab1" %}
  82.                                         {% if productManufacturer and productManufacturerDescription %}
  83.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabmanufacturerheadline_beforeratingtab1 %}
  84.                                                 {% sw_include '@Storefront/storefront/page/product-detail/manufacturer-headline.html.twig' %}
  85.                                             {% endblock %}
  86.                                         {% endif %}
  87.                                     {% endif %}
  88.                                     {% if tab1position == "before_rating_tab" %}
  89.                                         {% if ( digi1_owntabs_tab1content and tab1fillviasnippet == "no" ) or ( tab1fillviasnippet == "yes" ) %}
  90.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tab1headline_beforeratingtab %}
  91.                                                 {% sw_include '@Storefront/storefront/page/product-detail/owntabs-tab1-headline.html.twig' %}
  92.                                             {% endblock %}
  93.                                         {% endif %}
  94.                                     {% endif %}
  95.                                     {% if separatetabproperties == "yes" and separatetabpropertiesposition == "before_rating_tab2" %}
  96.                                         {% if productSortedProperties|length > 0 %}
  97.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabpropertiesheadline_beforeratingtab2 %}
  98.                                                 {% sw_include '@Storefront/storefront/page/product-detail/properties-headline.html.twig' %}
  99.                                             {% endblock %}
  100.                                         {% endif %}
  101.                                     {% endif %}
  102.                                     {% if separatetabmanufacturer == "yes" and separatetabmanufacturerposition == "before_rating_tab2" %}
  103.                                         {% if productManufacturer and productManufacturerDescription %}
  104.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabmanufacturerheadline_beforeratingtab2 %}
  105.                                                 {% sw_include '@Storefront/storefront/page/product-detail/manufacturer-headline.html.twig' %}
  106.                                             {% endblock %}
  107.                                         {% endif %}
  108.                                     {% endif %}
  109.                                     {% if tab2position == "before_rating_tab" %}
  110.                                         {% if ( digi1_owntabs_tab2content and tab2fillviasnippet == "no" ) or ( tab2fillviasnippet == "yes" ) %}
  111.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tab2headline_beforeratingtab %}
  112.                                                 {% sw_include '@Storefront/storefront/page/product-detail/owntabs-tab2-headline.html.twig' %}
  113.                                             {% endblock %}
  114.                                         {% endif %}
  115.                                     {% endif %}
  116.                                     {% if separatetabproperties == "yes" and separatetabpropertiesposition == "before_rating_tab3" %}
  117.                                         {% if productSortedProperties|length > 0 %}
  118.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabpropertiesheadline_beforeratingtab3 %}
  119.                                                 {% sw_include '@Storefront/storefront/page/product-detail/properties-headline.html.twig' %}
  120.                                             {% endblock %}
  121.                                         {% endif %}
  122.                                     {% endif %}
  123.                                     {% if separatetabmanufacturer == "yes" and separatetabmanufacturerposition == "before_rating_tab3" %}
  124.                                         {% if productManufacturer and productManufacturerDescription %}
  125.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabmanufacturerheadline_beforeratingtab3 %}
  126.                                                 {% sw_include '@Storefront/storefront/page/product-detail/manufacturer-headline.html.twig' %}
  127.                                             {% endblock %}
  128.                                         {% endif %}
  129.                                     {% endif %}
  130.                                     {% if tab3position == "before_rating_tab" %}
  131.                                         {% if ( digi1_owntabs_tab3content and tab3fillviasnippet == "no" ) or ( tab3fillviasnippet == "yes" ) %}
  132.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tab3headline_beforeratingtab %}
  133.                                                 {% sw_include '@Storefront/storefront/page/product-detail/owntabs-tab3-headline.html.twig' %}
  134.                                             {% endblock %}
  135.                                         {% endif %}
  136.                                     {% endif %}
  137.                                     {% if separatetabproperties == "yes" and separatetabpropertiesposition == "before_rating_tab4" %}
  138.                                         {% if productSortedProperties|length > 0 %}
  139.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabpropertiesheadline_beforeratingtab4 %}
  140.                                                 {% sw_include '@Storefront/storefront/page/product-detail/properties-headline.html.twig' %}
  141.                                             {% endblock %}
  142.                                         {% endif %}
  143.                                     {% endif %}
  144.                                     {% if separatetabmanufacturer == "yes" and separatetabmanufacturerposition == "before_rating_tab4" %}
  145.                                         {% if productManufacturer and productManufacturerDescription %}
  146.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabmanufacturerheadline_beforeratingtab4 %}
  147.                                                 {% sw_include '@Storefront/storefront/page/product-detail/manufacturer-headline.html.twig' %}
  148.                                             {% endblock %}
  149.                                         {% endif %}
  150.                                     {% endif %}
  151.                                     {% if tab4position == "before_rating_tab" %}
  152.                                         {% if ( digi1_owntabs_tab4content and tab4fillviasnippet == "no" ) or ( tab4fillviasnippet == "yes" ) %}
  153.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tab4headline_beforeratingtab %}
  154.                                                 {% sw_include '@Storefront/storefront/page/product-detail/owntabs-tab4-headline.html.twig' %}
  155.                                             {% endblock %}
  156.                                         {% endif %}
  157.                                     {% endif %}
  158.                                     {% if separatetabproperties == "yes" and separatetabpropertiesposition == "before_rating_tab5" %}
  159.                                         {% if productSortedProperties|length > 0 %}
  160.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabpropertiesheadline_beforeratingtab5 %}
  161.                                                 {% sw_include '@Storefront/storefront/page/product-detail/properties-headline.html.twig' %}
  162.                                             {% endblock %}
  163.                                         {% endif %}
  164.                                     {% endif %}
  165.                                     {% if separatetabmanufacturer == "yes" and separatetabmanufacturerposition == "before_rating_tab5" %}
  166.                                         {% if productManufacturer and productManufacturerDescription %}
  167.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabmanufacturerheadline_beforeratingtab5 %}
  168.                                                 {% sw_include '@Storefront/storefront/page/product-detail/manufacturer-headline.html.twig' %}
  169.                                             {% endblock %}
  170.                                         {% endif %}
  171.                                     {% endif %}
  172.                                     {% if tab5position == "before_rating_tab" %}
  173.                                         {% if ( digi1_owntabs_tab5content and tab5fillviasnippet == "no" ) or ( tab5fillviasnippet == "yes" ) %}
  174.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tab5headline_beforeratingtab %}
  175.                                                 {% sw_include '@Storefront/storefront/page/product-detail/owntabs-tab5-headline.html.twig' %}
  176.                                             {% endblock %}
  177.                                         {% endif %}
  178.                                     {% endif %}
  179.                                     {% if separatetabproperties == "yes" and separatetabpropertiesposition == "before_rating_tab6" %}
  180.                                         {% if productSortedProperties|length > 0 %}
  181.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabpropertiesheadline_beforeratingtab6 %}
  182.                                                 {% sw_include '@Storefront/storefront/page/product-detail/properties-headline.html.twig' %}
  183.                                             {% endblock %}
  184.                                         {% endif %}
  185.                                     {% endif %}
  186.                                     {% if separatetabmanufacturer == "yes" and separatetabmanufacturerposition == "before_rating_tab6" %}
  187.                                         {% if productManufacturer and productManufacturerDescription %}
  188.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabmanufacturerheadline_beforeratingtab6 %}
  189.                                                 {% sw_include '@Storefront/storefront/page/product-detail/manufacturer-headline.html.twig' %}
  190.                                             {% endblock %}
  191.                                         {% endif %}
  192.                                     {% endif %}
  193.                                     {% block element_product_desciption_reviews_tabs_navigation_review %}
  194.                                         {% if config('core.listing.showReview') %}
  195.                                             <li class="nav-item">
  196.                                                 <a class="nav-link {% if (ratingSuccess == 1) or (ratingSuccess == -1) %}active{% endif %} product-detail-tab-navigation-link review-tab"
  197.                                                    id="{{ reviewTabId }}"
  198.                                                    data-toggle="tab"
  199.                                                    data-offcanvas-tabs="true"
  200.                                                    href="{{ reviewTabHref }}"
  201.                                                    role="tab"
  202.                                                    aria-controls="{{ reviewTabContent }}"
  203.                                                    aria-selected="true">
  204.                                                     {{ "detail.tabsReview"|trans|sw_sanitize }}
  205.                                                     <span class="product-detail-tab-navigation-icon">
  206.                                                         {% sw_icon 'arrow-medium-right' style {'pack':'solid'} %}
  207.                                                     </span>
  208.                                                 </a>
  209.                                             </li>
  210.                                         {% endif %}
  211.                                     {% endblock %}
  212.                                     {% if separatetabproperties == "yes" and separatetabpropertiesposition == "after_rating_tab1" %}
  213.                                         {% if productSortedProperties|length > 0 %}
  214.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabpropertiesheadline_afterratingtab1 %}
  215.                                                 {% sw_include '@Storefront/storefront/page/product-detail/properties-headline.html.twig' %}
  216.                                             {% endblock %}
  217.                                         {% endif %}
  218.                                     {% endif %}
  219.                                     {% if separatetabmanufacturer == "yes" and separatetabmanufacturerposition == "after_rating_tab1" %}
  220.                                         {% if productManufacturer and productManufacturerDescription %}
  221.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabmanufacturerheadline_afterratingtab1 %}
  222.                                                 {% sw_include '@Storefront/storefront/page/product-detail/manufacturer-headline.html.twig' %}
  223.                                             {% endblock %}
  224.                                         {% endif %}
  225.                                     {% endif %}
  226.                                     {% if tab1position == "after_rating_tab" %}
  227.                                         {% if ( digi1_owntabs_tab1content and tab1fillviasnippet == "no" ) or ( tab1fillviasnippet == "yes" ) %}
  228.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tab1headline_afterratingtab %}
  229.                                                 {% sw_include '@Storefront/storefront/page/product-detail/owntabs-tab1-headline.html.twig' %}
  230.                                             {% endblock %}
  231.                                         {% endif %}
  232.                                     {% endif %}
  233.                                     {% if separatetabproperties == "yes" and separatetabpropertiesposition == "after_rating_tab2" %}
  234.                                         {% if productSortedProperties|length > 0 %}
  235.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabpropertiesheadline_afterratingtab2 %}
  236.                                                 {% sw_include '@Storefront/storefront/page/product-detail/properties-headline.html.twig' %}
  237.                                             {% endblock %}
  238.                                         {% endif %}
  239.                                     {% endif %}
  240.                                     {% if separatetabmanufacturer == "yes" and separatetabmanufacturerposition == "after_rating_tab2" %}
  241.                                         {% if productManufacturer and productManufacturerDescription %}
  242.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabmanufacturerheadline_afterratingtab2 %}
  243.                                                 {% sw_include '@Storefront/storefront/page/product-detail/manufacturer-headline.html.twig' %}
  244.                                             {% endblock %}
  245.                                         {% endif %}
  246.                                     {% endif %}
  247.                                     {% if tab2position == "after_rating_tab" %}
  248.                                         {% if ( digi1_owntabs_tab2content and tab2fillviasnippet == "no" ) or ( tab2fillviasnippet == "yes" ) %}
  249.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tab2headline_afterratingtab %}
  250.                                                 {% sw_include '@Storefront/storefront/page/product-detail/owntabs-tab2-headline.html.twig' %}
  251.                                             {% endblock %}
  252.                                         {% endif %}
  253.                                     {% endif %}
  254.                                     {% if separatetabproperties == "yes" and separatetabpropertiesposition == "after_rating_tab3" %}
  255.                                         {% if productSortedProperties|length > 0 %}
  256.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabpropertiesheadline_afterratingtab3 %}
  257.                                                 {% sw_include '@Storefront/storefront/page/product-detail/properties-headline.html.twig' %}
  258.                                             {% endblock %}
  259.                                         {% endif %}
  260.                                     {% endif %}
  261.                                     {% if separatetabmanufacturer == "yes" and separatetabmanufacturerposition == "after_rating_tab3" %}
  262.                                         {% if productManufacturer and productManufacturerDescription %}
  263.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabmanufacturerheadline_afterratingtab3 %}
  264.                                                 {% sw_include '@Storefront/storefront/page/product-detail/manufacturer-headline.html.twig' %}
  265.                                             {% endblock %}
  266.                                         {% endif %}
  267.                                     {% endif %}
  268.                                     {% if tab3position == "after_rating_tab" %}
  269.                                         {% if ( digi1_owntabs_tab3content and tab3fillviasnippet == "no" ) or ( tab3fillviasnippet == "yes" ) %}
  270.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tab3headline_afterratingtab %}
  271.                                                 {% sw_include '@Storefront/storefront/page/product-detail/owntabs-tab3-headline.html.twig' %}
  272.                                             {% endblock %}
  273.                                         {% endif %}
  274.                                     {% endif %}
  275.                                     {% if separatetabproperties == "yes" and separatetabpropertiesposition == "after_rating_tab4" %}
  276.                                         {% if productSortedProperties|length > 0 %}
  277.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabpropertiesheadline_afterratingtab4 %}
  278.                                                 {% sw_include '@Storefront/storefront/page/product-detail/properties-headline.html.twig' %}
  279.                                             {% endblock %}
  280.                                         {% endif %}
  281.                                     {% endif %}
  282.                                     {% if separatetabmanufacturer == "yes" and separatetabmanufacturerposition == "after_rating_tab4" %}
  283.                                         {% if productManufacturer and productManufacturerDescription %}
  284.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabmanufacturerheadline_afterratingtab4 %}
  285.                                                 {% sw_include '@Storefront/storefront/page/product-detail/manufacturer-headline.html.twig' %}
  286.                                             {% endblock %}
  287.                                         {% endif %}
  288.                                     {% endif %}
  289.                                     {% if tab4position == "after_rating_tab" %}
  290.                                         {% if ( digi1_owntabs_tab4content and tab4fillviasnippet == "no" ) or ( tab4fillviasnippet == "yes" ) %}
  291.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tab4headline_afterratingtab %}
  292.                                                 {% sw_include '@Storefront/storefront/page/product-detail/owntabs-tab4-headline.html.twig' %}
  293.                                             {% endblock %}
  294.                                         {% endif %}
  295.                                     {% endif %}
  296.                                     {% if separatetabproperties == "yes" and separatetabpropertiesposition == "after_rating_tab5" %}
  297.                                         {% if productSortedProperties|length > 0 %}
  298.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabpropertiesheadline_afteratingtab5 %}
  299.                                                 {% sw_include '@Storefront/storefront/page/product-detail/properties-headline.html.twig' %}
  300.                                             {% endblock %}
  301.                                         {% endif %}
  302.                                     {% endif %}
  303.                                     {% if separatetabmanufacturer == "yes" and separatetabmanufacturerposition == "after_rating_tab5" %}
  304.                                         {% if productManufacturer and productManufacturerDescription %}
  305.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabmanufacturerheadline_afterratingtab5 %}
  306.                                                 {% sw_include '@Storefront/storefront/page/product-detail/manufacturer-headline.html.twig' %}
  307.                                             {% endblock %}
  308.                                         {% endif %}
  309.                                     {% endif %}
  310.                                     {% if tab5position == "after_rating_tab" %}
  311.                                         {% if ( digi1_owntabs_tab5content and tab5fillviasnippet == "no" ) or ( tab5fillviasnippet == "yes" ) %}
  312.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tab5headline_afterratingtab %}
  313.                                                 {% sw_include '@Storefront/storefront/page/product-detail/owntabs-tab5-headline.html.twig' %}
  314.                                             {% endblock %}
  315.                                         {% endif %}
  316.                                     {% endif %}
  317.                                     {% if separatetabproperties == "yes" and separatetabpropertiesposition == "after_rating_tab6" %}
  318.                                         {% if productSortedProperties|length > 0 %}
  319.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabpropertiesheadline_afterratingtab6 %}
  320.                                                 {% sw_include '@Storefront/storefront/page/product-detail/properties-headline.html.twig' %}
  321.                                             {% endblock %}
  322.                                         {% endif %}
  323.                                     {% endif %}
  324.                                     {% if separatetabmanufacturer == "yes" and separatetabmanufacturerposition == "after_rating_tab6" %}
  325.                                         {% if productManufacturer and productManufacturerDescription %}
  326.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabmanufacturerheadline_afterratingtab6 %}
  327.                                                 {% sw_include '@Storefront/storefront/page/product-detail/manufacturer-headline.html.twig' %}
  328.                                             {% endblock %}
  329.                                         {% endif %}
  330.                                     {% endif %}
  331.                                 </ul>
  332.                             {% endblock %}
  333.                         </div>
  334.                     {% endblock %}
  335.                     {% block element_product_desciption_reviews_tabs_content %}
  336.                         {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabcontent_beforeratingtab_begin %}{% endblock %}
  337.                         {% set separatetabproperties = config('digi1Moretabsforproductdetailpage').config.separatetabproperties %}
  338.                         {% set separatetabpropertiesposition = config('digi1Moretabsforproductdetailpage').config.separatetabpropertiesposition %}
  339.                         {% set productSortedProperties = page.product.sortedProperties %}
  340.                         {% set separatetabmanufacturer = config('digi1Moretabsforproductdetailpage').config.separatetabmanufacturer %}
  341.                         {% set separatetabmanufacturerposition = config('digi1Moretabsforproductdetailpage').config.separatetabmanufacturerposition %}
  342.                         {% set productManufacturer = page.product.manufacturer %}
  343.                         {% set productManufacturerDescription = page.product.manufacturer.translated.description %}
  344.                         {% set tab1position = config('digi1Moretabsforproductdetailpage').config.tab1position %}
  345.                         {% set digi1_owntabs_tab1content = page.product.customFields.digi1_owntabs_tab1content %}
  346.                         {% set tab1fillviasnippet = config('digi1Moretabsforproductdetailpage').config.tab1fillviasnippet %}
  347.                         {% set tab2position = config('digi1Moretabsforproductdetailpage').config.tab2position %}
  348.                         {% set digi1_owntabs_tab2content = page.product.customFields.digi1_owntabs_tab2content %}
  349.                         {% set tab2fillviasnippet = config('digi1Moretabsforproductdetailpage').config.tab2fillviasnippet %}
  350.                         {% set tab3position = config('digi1Moretabsforproductdetailpage').config.tab3position %}
  351.                         {% set digi1_owntabs_tab3content = page.product.customFields.digi1_owntabs_tab3content %}
  352.                         {% set tab3fillviasnippet = config('digi1Moretabsforproductdetailpage').config.tab3fillviasnippet %}
  353.                         {% set tab4position = config('digi1Moretabsforproductdetailpage').config.tab4position %}
  354.                         {% set digi1_owntabs_tab4content = page.product.customFields.digi1_owntabs_tab4content %}
  355.                         {% set tab4fillviasnippet = config('digi1Moretabsforproductdetailpage').config.tab4fillviasnippet %}
  356.                         {% set tab5position = config('digi1Moretabsforproductdetailpage').config.tab5position %}
  357.                         {% set digi1_owntabs_tab5content = page.product.customFields.digi1_owntabs_tab5content %}
  358.                         {% set tab5fillviasnippet = config('digi1Moretabsforproductdetailpage').config.tab5fillviasnippet %}
  359.                         <div class="product-detail-tabs-content card-body">
  360.                             {% block element_product_desciption_reviews_tabs_content_container %}
  361.                                 <div class="tab-content">
  362.                                     {% block element_product_desciption_reviews_tabs_content_description %}
  363.                                         <div class="tab-pane fade show {% if (element.data.ratingSuccess != 1) and (element.data.ratingSuccess != -1) %}active{% endif %}"
  364.                                              id="{{ descriptionTabContent }}"
  365.                                              role="tabpanel"
  366.                                              aria-labelledby="{{ descriptionTabId }}">
  367.                                             {% sw_include '@Plugin/storefront/component/product/description.html.twig' with {
  368.                                                 product: element.data.product
  369.                                             } %}
  370.                                         </div>
  371.                                     {% endblock %}
  372.                                     {% if separatetabproperties == "yes" and separatetabpropertiesposition == "before_rating_tab1" %}
  373.                                         {% if productSortedProperties|length > 0 %}
  374.                                             {% block page_product_detail_tabs_content_review_digi1_owntabs_tabpropertiescontent_beforeratingtab1 %}
  375.                                                 {% sw_include '@Storefront/storefront/page/product-detail/properties-content.html.twig' %}
  376.                                             {% endblock %}
  377.                                         {% endif %}
  378.                                     {% endif %}
  379.                                     {% if separatetabmanufacturer == "yes" and separatetabmanufacturerposition == "before_rating_tab1" %}
  380.                                         {% if productManufacturer and productManufacturerDescription %}
  381.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabmanufacturercontent_beforeratingtab1 %}
  382.                                                 {% sw_include '@Storefront/storefront/page/product-detail/manufacturer-content.html.twig' %}
  383.                                             {% endblock %}
  384.                                         {% endif %}
  385.                                     {% endif %}
  386.                                     {% if tab1position == "before_rating_tab" %}
  387.                                         {% if ( digi1_owntabs_tab1content and tab1fillviasnippet == "no" ) or ( tab1fillviasnippet == "yes" ) %}
  388.                                             {% block page_product_detail_tabs_content_review_digi1_owntabs_tab1content_beforeratingtab %}
  389.                                                 {% sw_include '@Storefront/storefront/page/product-detail/owntabs-tab1-content.html.twig' %}
  390.                                             {% endblock %}
  391.                                         {% endif %}
  392.                                     {% endif %}
  393.                                     {% if separatetabproperties == "yes" and separatetabpropertiesposition == "before_rating_tab2" %}
  394.                                         {% if productSortedProperties|length > 0 %}
  395.                                             {% block page_product_detail_tabs_content_review_digi1_owntabs_tabpropertiescontent_beforeratingtab2 %}
  396.                                                 {% sw_include '@Storefront/storefront/page/product-detail/properties-content.html.twig' %}
  397.                                             {% endblock %}
  398.                                         {% endif %}
  399.                                     {% endif %}
  400.                                     {% if separatetabmanufacturer == "yes" and separatetabmanufacturerposition == "before_rating_tab2" %}
  401.                                         {% if productManufacturer and productManufacturerDescription %}
  402.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabmanufacturercontent_beforeratingtab2 %}
  403.                                                 {% sw_include '@Storefront/storefront/page/product-detail/manufacturer-content.html.twig' %}
  404.                                             {% endblock %}
  405.                                         {% endif %}
  406.                                     {% endif %}
  407.                                     {% if tab2position == "before_rating_tab" %}
  408.                                         {% if ( digi1_owntabs_tab2content and tab2fillviasnippet == "no" ) or ( tab2fillviasnippet == "yes" ) %}
  409.                                             {% block page_product_detail_tabs_content_review_digi1_owntabs_tab2content_beforeratingtab %}
  410.                                                 {% sw_include '@Storefront/storefront/page/product-detail/owntabs-tab2-content.html.twig' %}
  411.                                             {% endblock %}
  412.                                         {% endif %}
  413.                                     {% endif %}
  414.                                     {% if separatetabproperties == "yes" and separatetabpropertiesposition == "before_rating_tab3" %}
  415.                                         {% if productSortedProperties|length > 0 %}
  416.                                             {% block page_product_detail_tabs_content_review_digi1_owntabs_tabpropertiescontent_beforeratingtab3 %}
  417.                                                 {% sw_include '@Storefront/storefront/page/product-detail/properties-content.html.twig' %}
  418.                                             {% endblock %}
  419.                                         {% endif %}
  420.                                     {% endif %}
  421.                                     {% if separatetabmanufacturer == "yes" and separatetabmanufacturerposition == "before_rating_tab3" %}
  422.                                         {% if productManufacturer and productManufacturerDescription %}
  423.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabmanufacturercontent_beforeratingtab3 %}
  424.                                                 {% sw_include '@Storefront/storefront/page/product-detail/manufacturer-content.html.twig' %}
  425.                                             {% endblock %}
  426.                                         {% endif %}
  427.                                     {% endif %}
  428.                                     {% if tab3position == "before_rating_tab" %}
  429.                                         {% if ( digi1_owntabs_tab3content and tab3fillviasnippet == "no" ) or ( tab3fillviasnippet == "yes" ) %}
  430.                                             {% block page_product_detail_tabs_content_review_digi1_owntabs_tab3content_beforeratingtab %}
  431.                                                 {% sw_include '@Storefront/storefront/page/product-detail/owntabs-tab3-content.html.twig' %}
  432.                                             {% endblock %}
  433.                                         {% endif %}
  434.                                     {% endif %}
  435.                                     {% if separatetabproperties == "yes" and separatetabpropertiesposition == "before_rating_tab4" %}
  436.                                         {% if productSortedProperties|length > 0 %}
  437.                                             {% block page_product_detail_tabs_content_review_digi1_owntabs_tabpropertiescontent_beforeratingtab4 %}
  438.                                                 {% sw_include '@Storefront/storefront/page/product-detail/properties-content.html.twig' %}
  439.                                             {% endblock %}
  440.                                         {% endif %}
  441.                                     {% endif %}
  442.                                     {% if separatetabmanufacturer == "yes" and separatetabmanufacturerposition == "before_rating_tab4" %}
  443.                                         {% if productManufacturer and productManufacturerDescription %}
  444.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabmanufacturercontent_beforeratingtab4 %}
  445.                                                 {% sw_include '@Storefront/storefront/page/product-detail/manufacturer-content.html.twig' %}
  446.                                             {% endblock %}
  447.                                         {% endif %}
  448.                                     {% endif %}
  449.                                     {% if tab4position == "before_rating_tab" %}
  450.                                         {% if ( digi1_owntabs_tab4content and tab4fillviasnippet == "no" ) or ( tab4fillviasnippet == "yes" ) %}
  451.                                             {% block page_product_detail_tabs_content_review_digi1_owntabs_tab4content_beforeratingtab %}
  452.                                                 {% sw_include '@Storefront/storefront/page/product-detail/owntabs-tab4-content.html.twig' %}
  453.                                             {% endblock %}
  454.                                         {% endif %}
  455.                                     {% endif %}
  456.                                     {% if separatetabproperties == "yes" and separatetabpropertiesposition == "before_rating_tab5" %}
  457.                                         {% if productSortedProperties|length > 0 %}
  458.                                             {% block page_product_detail_tabs_content_review_digi1_owntabs_tabpropertiescontent_beforeratingtab5 %}
  459.                                                 {% sw_include '@Storefront/storefront/page/product-detail/properties-content.html.twig' %}
  460.                                             {% endblock %}
  461.                                         {% endif %}
  462.                                     {% endif %}
  463.                                     {% if separatetabmanufacturer == "yes" and separatetabmanufacturerposition == "before_rating_tab5" %}
  464.                                         {% if productManufacturer and productManufacturerDescription %}
  465.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabmanufacturercontent_beforeratingtab5 %}
  466.                                                 {% sw_include '@Storefront/storefront/page/product-detail/manufacturer-content.html.twig' %}
  467.                                             {% endblock %}
  468.                                         {% endif %}
  469.                                     {% endif %}
  470.                                     {% if tab5position == "before_rating_tab" %}
  471.                                         {% if ( digi1_owntabs_tab5content and tab5fillviasnippet == "no" ) or ( tab5fillviasnippet == "yes" ) %}
  472.                                             {% block page_product_detail_tabs_content_review_digi1_owntabs_tab5content_beforeratingtab %}
  473.                                                 {% sw_include '@Storefront/storefront/page/product-detail/owntabs-tab5-content.html.twig' %}
  474.                                             {% endblock %}
  475.                                         {% endif %}
  476.                                     {% endif %}
  477.                                     {% if separatetabproperties == "yes" and separatetabpropertiesposition == "before_rating_tab6" %}
  478.                                         {% if productSortedProperties|length > 0 %}
  479.                                             {% block page_product_detail_tabs_content_review_digi1_owntabs_tabpropertiescontent_beforeratingtab6 %}
  480.                                                 {% sw_include '@Storefront/storefront/page/product-detail/properties-content.html.twig' %}
  481.                                             {% endblock %}
  482.                                         {% endif %}
  483.                                     {% endif %}
  484.                                     {% if separatetabmanufacturer == "yes" and separatetabmanufacturerposition == "before_rating_tab6" %}
  485.                                         {% if productManufacturer and productManufacturerDescription %}
  486.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabmanufacturercontent_beforeratingtab6 %}
  487.                                                 {% sw_include '@Storefront/storefront/page/product-detail/manufacturer-content.html.twig' %}
  488.                                             {% endblock %}
  489.                                         {% endif %}
  490.                                     {% endif %}
  491.                                     {% block element_product_desciption_reviews_tabs_content_review %}
  492.                                         {% if config('core.listing.showReview') %}
  493.                                             <div class="tab-pane fade show {% if (element.data.ratingSuccess == 1) or (element.data.ratingSuccess == -1) %}active{% endif %}"
  494.                                                  id="{{ reviewTabContent }}"
  495.                                                  role="tabpanel"
  496.                                                  aria-labelledby="{{ reviewTabId }}">
  497.                                                 {% sw_include '@Storefront/storefront/component/review/review.html.twig' with {
  498.                                                     reviews: element.data.reviews,
  499.                                                     product: element.data.product
  500.                                                 } %}
  501.                                             </div>
  502.                                         {% endif %}
  503.                                     {% endblock %}
  504.                                     {% if separatetabproperties == "yes" and separatetabpropertiesposition == "after_rating_tab1" %}
  505.                                         {% if productSortedProperties|length > 0 %}
  506.                                             {% block page_product_detail_tabs_content_review_digi1_owntabs_tabpropertiescontent_afterratingtab1 %}
  507.                                                 {% sw_include '@Storefront/storefront/page/product-detail/properties-content.html.twig' %}
  508.                                             {% endblock %}
  509.                                         {% endif %}
  510.                                     {% endif %}
  511.                                     {% if separatetabmanufacturer == "yes" and separatetabmanufacturerposition == "after_rating_tab1" %}
  512.                                         {% if productManufacturer and productManufacturerDescription %}
  513.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabmanufacturercontent_afterratingtab1 %}
  514.                                                 {% sw_include '@Storefront/storefront/page/product-detail/manufacturer-content.html.twig' %}
  515.                                             {% endblock %}
  516.                                         {% endif %}
  517.                                     {% endif %}
  518.                                     {% if tab1position == "after_rating_tab" %}
  519.                                         {% if ( digi1_owntabs_tab1content and tab1fillviasnippet == "no" ) or ( tab1fillviasnippet == "yes" ) %}
  520.                                             {% block page_product_detail_tabs_content_review_digi1_owntabs_tab1content_afterratingtab %}
  521.                                                 {% sw_include '@Storefront/storefront/page/product-detail/owntabs-tab1-content.html.twig' %}
  522.                                             {% endblock %}
  523.                                         {% endif %}
  524.                                     {% endif %}
  525.                                     {% if separatetabproperties == "yes" and separatetabpropertiesposition == "after_rating_tab2" %}
  526.                                         {% if productSortedProperties|length > 0 %}
  527.                                             {% block page_product_detail_tabs_content_review_digi1_owntabs_tabpropertiescontent_afterratingtab2 %}
  528.                                                 {% sw_include '@Storefront/storefront/page/product-detail/properties-content.html.twig' %}
  529.                                             {% endblock %}
  530.                                         {% endif %}
  531.                                     {% endif %}
  532.                                     {% if separatetabmanufacturer == "yes" and separatetabmanufacturerposition == "after_rating_tab2" %}
  533.                                         {% if productManufacturer and productManufacturerDescription %}
  534.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabmanufacturercontent_afterratingtab2 %}
  535.                                                 {% sw_include '@Storefront/storefront/page/product-detail/manufacturer-content.html.twig' %}
  536.                                             {% endblock %}
  537.                                         {% endif %}
  538.                                     {% endif %}
  539.                                     {% if tab2position == "after_rating_tab" %}
  540.                                         {% if ( digi1_owntabs_tab2content and tab2fillviasnippet == "no" ) or ( tab2fillviasnippet == "yes" ) %}
  541.                                             {% block page_product_detail_tabs_content_review_digi1_owntabs_tab2content_afterratingtab %}
  542.                                                 {% sw_include '@Storefront/storefront/page/product-detail/owntabs-tab2-content.html.twig' %}
  543.                                             {% endblock %}
  544.                                         {% endif %}
  545.                                     {% endif %}
  546.                                     {% if separatetabproperties == "yes" and separatetabpropertiesposition == "after_rating_tab3" %}
  547.                                         {% if productSortedProperties|length > 0 %}
  548.                                             {% block page_product_detail_tabs_content_review_digi1_owntabs_tabpropertiescontent_afterratingtab3 %}
  549.                                                 {% sw_include '@Storefront/storefront/page/product-detail/properties-content.html.twig' %}
  550.                                             {% endblock %}
  551.                                         {% endif %}
  552.                                     {% endif %}
  553.                                     {% if separatetabmanufacturer == "yes" and separatetabmanufacturerposition == "after_rating_tab3" %}
  554.                                         {% if productManufacturer and productManufacturerDescription %}
  555.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabmanufacturercontent_afterratingtab3 %}
  556.                                                 {% sw_include '@Storefront/storefront/page/product-detail/manufacturer-content.html.twig' %}
  557.                                             {% endblock %}
  558.                                         {% endif %}
  559.                                     {% endif %}
  560.                                     {% if tab3position == "after_rating_tab" %}
  561.                                         {% if ( digi1_owntabs_tab3content and tab3fillviasnippet == "no" ) or ( tab3fillviasnippet == "yes" ) %}
  562.                                             {% block page_product_detail_tabs_content_review_digi1_owntabs_tab3content_afterratingtab %}
  563.                                                 {% sw_include '@Storefront/storefront/page/product-detail/owntabs-tab3-content.html.twig' %}
  564.                                             {% endblock %}
  565.                                         {% endif %}
  566.                                     {% endif %}
  567.                                     {% if separatetabproperties == "yes" and separatetabpropertiesposition == "after_rating_tab4" %}
  568.                                         {% if productSortedProperties|length > 0 %}
  569.                                             {% block page_product_detail_tabs_content_review_digi1_owntabs_tabpropertiescontent_afterratingtab4 %}
  570.                                                 {% sw_include '@Storefront/storefront/page/product-detail/properties-content.html.twig' %}
  571.                                             {% endblock %}
  572.                                         {% endif %}
  573.                                     {% endif %}
  574.                                     {% if separatetabmanufacturer == "yes" and separatetabmanufacturerposition == "after_rating_tab4" %}
  575.                                         {% if productManufacturer and productManufacturerDescription %}
  576.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabmanufacturercontent_afterratingtab4 %}
  577.                                                 {% sw_include '@Storefront/storefront/page/product-detail/manufacturer-content.html.twig' %}
  578.                                             {% endblock %}
  579.                                         {% endif %}
  580.                                     {% endif %}
  581.                                     {% if tab4position == "after_rating_tab" %}
  582.                                         {% if ( digi1_owntabs_tab4content and tab4fillviasnippet == "no" ) or ( tab4fillviasnippet == "yes" ) %}
  583.                                             {% block page_product_detail_tabs_content_review_digi1_owntabs_tab4content_afterratingtab %}
  584.                                                 {% sw_include '@Storefront/storefront/page/product-detail/owntabs-tab4-content.html.twig' %}
  585.                                             {% endblock %}
  586.                                         {% endif %}
  587.                                     {% endif %}
  588.                                     {% if separatetabproperties == "yes" and separatetabpropertiesposition == "after_rating_tab5" %}
  589.                                         {% if productSortedProperties|length > 0 %}
  590.                                             {% block page_product_detail_tabs_content_review_digi1_owntabs_tabpropertiescontent_afterratingtab5 %}
  591.                                                 {% sw_include '@Storefront/storefront/page/product-detail/properties-content.html.twig' %}
  592.                                             {% endblock %}
  593.                                         {% endif %}
  594.                                     {% endif %}
  595.                                     {% if separatetabmanufacturer == "yes" and separatetabmanufacturerposition == "after_rating_tab5" %}
  596.                                         {% if productManufacturer and productManufacturerDescription %}
  597.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabmanufacturercontent_afterratingtab5 %}
  598.                                                 {% sw_include '@Storefront/storefront/page/product-detail/manufacturer-content.html.twig' %}
  599.                                             {% endblock %}
  600.                                         {% endif %}
  601.                                     {% endif %}
  602.                                     {% if tab5position == "after_rating_tab" %}
  603.                                         {% if ( digi1_owntabs_tab5content and tab5fillviasnippet == "no" ) or ( tab5fillviasnippet == "yes" ) %}
  604.                                             {% block page_product_detail_tabs_content_review_digi1_owntabs_tab5content_afterratingtab %}
  605.                                                 {% sw_include '@Storefront/storefront/page/product-detail/owntabs-tab5-content.html.twig' %}
  606.                                             {% endblock %}
  607.                                         {% endif %}
  608.                                     {% endif %}
  609.                                     {% if separatetabproperties == "yes" and separatetabpropertiesposition == "after_rating_tab6" %}
  610.                                         {% if productSortedProperties|length > 0 %}
  611.                                             {% block page_product_detail_tabs_content_review_digi1_owntabs_tabpropertiescontent_afterratingtab6 %}
  612.                                                 {% sw_include '@Storefront/storefront/page/product-detail/properties-content.html.twig' %}
  613.                                             {% endblock %}
  614.                                         {% endif %}
  615.                                     {% endif %}
  616.                                     {% if separatetabmanufacturer == "yes" and separatetabmanufacturerposition == "after_rating_tab6" %}
  617.                                         {% if productManufacturer and productManufacturerDescription %}
  618.                                             {% block page_product_detail_tabs_navigation_review_digi1_owntabs_tabmanufacturercontent_afterratingtab6 %}
  619.                                                 {% sw_include '@Storefront/storefront/page/product-detail/manufacturer-content.html.twig' %}
  620.                                             {% endblock %}
  621.                                         {% endif %}
  622.                                     {% endif %}
  623.                                 </div>
  624.                             {% endblock %}
  625.                         </div>
  626.                     {% endblock %}
  627.                 </div>
  628.                 {% if config.verticalAlign.value %}
  629.             </div>
  630.             {% endif %}
  631.         </div>
  632.         <div id="moretabsforproductdetailpage-configcontainer"
  633.              data-youtubecontrols="{{ config('digi1Moretabsforproductdetailpage').config.youtubecontrols }}"
  634.              data-youtuberel="{{ config('digi1Moretabsforproductdetailpage').config.youtuberel }}"
  635.              data-youtubemodestbranding="{{ config('digi1Moretabsforproductdetailpage').config.youtubemodestbranding }}"
  636.              data-vimeoportrait="{{ config('digi1Moretabsforproductdetailpage').config.vimeoportrait }}"
  637.              data-vimeotitle="{{ config('digi1Moretabsforproductdetailpage').config.vimeotitle }}"
  638.              data-vimeobyline="{{ config('digi1Moretabsforproductdetailpage').config.vimeobyline }}"
  639.              data-embeddedpdf="{{ config('digi1Moretabsforproductdetailpage').config.embeddedpdf }}"></div>
  640.     {% endif %}
  641. {% endblock %}