custom/plugins/TcinnCustomizing/src/Resources/views/storefront/page/product-detail/tabs.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/product-detail/tabs.html.twig' %}
  2. {% block page_product_detail_tabs_navigation_review %}
  3.     {# standard content #}
  4.     {% if config('core.listing.showReview') %}
  5.         <li class="nav-item">
  6.             <a class="nav-link {% if (ratingSuccess == 1) or (ratingSuccess == -1) %}active{% endif %} product-detail-tab-navigation-link"
  7.                id="review-tab"
  8.                data-toggle="tab"
  9.                data-offcanvas-tabs="true"
  10.                href="#review-tab-pane"
  11.                role="tab"
  12.                aria-controls="review-tab-pane"
  13.                aria-selected="true">
  14.                 {{ "detail.tabsReview"|trans|sw_sanitize }}
  15.                 <span class="product-detail-tab-navigation-icon">
  16.                                             {% sw_icon 'arrow-medium-right' style {'pack':'solid'} %}
  17.                                         </span>
  18.             </a>
  19.         </li>
  20.     {% endif %}
  21.     {#  extension for product equipment section #}
  22.     {% for item in page.crossSellings %}
  23.         {% set id = item.crossSelling.id %}
  24.         {% if item.crossSelling.active and item.getProducts().elements %}
  25.             <li class="nav-item">
  26.                 <a class="nav-link product-detail-tab-navigation-link"
  27.                    id="cs-{{ id }}-tab"
  28.                    data-toggle="tab"
  29.                    href="#cs-{{ id }}-tab-pane"
  30.                    role="tab"
  31.                    aria-controls="cs-{{ id }}-tab-pane"
  32.                    aria-selected="true">
  33.                     {{ item.crossSelling.translated.name }}
  34.                     <span class="product-detail-tab-navigation-icon">
  35.                                             {% sw_icon 'arrow-medium-right' style {'pack':'solid'} %}
  36.                                         </span>
  37.                 </a>
  38.             </li>
  39.         {% endif %}
  40.     {% endfor %}
  41. {% endblock %}
  42. {% block page_product_detail_tabs_content_review %}
  43.     {# standard content #}
  44.     {% if config('core.listing.showReview') %}
  45.         <div class="tab-pane fade show {% if (ratingSuccess == 1) or (ratingSuccess == -1) %}active{% endif %}"
  46.              id="review-tab-pane"
  47.              role="tabpanel"
  48.              aria-labelledby="review-tab">
  49.             {% sw_include '@Storefront/storefront/page/product-detail/review/review.html.twig' with {'reviews': page.reviews} %}
  50.         </div>
  51.     {% endif %}
  52.     {#  extension for product equipment section #}
  53.     {% for item in page.crossSellings %}
  54.         {% set id = item.crossSelling.id %}
  55.         {% if item.crossSelling.active and item.getProducts().elements %}
  56.             <div class="tab-pane fade show"
  57.                  id="cs-{{ id }}-tab-pane"
  58.                  role="tabpanel"
  59.                  aria-labelledby="cs-{{ id }}-tab">
  60.                 {% set config = {
  61.                     'title': {
  62.                         'value': item.crossSelling.name
  63.                     },
  64.                     'border': {
  65.                         'value': false
  66.                     },
  67.                     'rotate': {
  68.                         'value': false
  69.                     },
  70.                     'products': {
  71.                         'value': item.getProducts()
  72.                     },
  73.                     'boxLayout': {
  74.                         'value': 'standard'
  75.                     },
  76.                     'elMinWidth': {
  77.                         'value': '300px'
  78.                     },
  79.                     'navigation': {
  80.                         'value': true
  81.                     },
  82.                     'displayMode': {
  83.                         'value': 'minimal'
  84.                     },
  85.                     'verticalAlign': {
  86.                         'value': 'top'
  87.                     },
  88.                 } %}
  89.                 {% sw_include "@Storefront/storefront/element/cms-element-product-slider.html.twig" with {
  90.                     sliderConfig: config,
  91.                     element: {
  92.                         'data': {
  93.                             'products': {
  94.                                 elements: item.getProducts()
  95.                             }
  96.                         },
  97.                         type: 'product-slider'
  98.                     }
  99.                 } only %}
  100.             </div>
  101.         {% endif %}
  102.     {% endfor %}
  103. {% endblock %}