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

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