modules/XC/CrispWhiteSkin/templates/web/customer/product/details/parts/page.tabs.twig line 1

Open in your IDE?
  1. {##
  2.  # Product details information block
  3.  #
  4.  # @ListChild (list="product.details.page", weight="40")
  5.  #}
  6. {% if this.getTabs() %}
  7.   <div class="product-details-tabs">
  8.     <div class="tabs">
  9.       <ul class="tabs primary">
  10.         {% for index, tab in this.getTabs() %}
  11.           <li class="{{ this.getTabClass(tab) }}">
  12.             <a data-id="{{ tab.id|raw }}"
  13.                {% if tab.alt_id %}data-alt-id="{{ tab.alt_id }}"{% endif %}
  14.                href="{{ xurl('product', '', {'product_id': this.get('product').productId}) }}#{{ tab.id|raw }}"
  15.                data-toggle="tab">{{ tab.name }}</a>
  16.           </li>
  17.         {% endfor %}
  18.       </ul>
  19.     </div>
  20.     <div class="tabs-container">
  21.       {% for tab in this.getTabs() %}
  22.         {% if tab.alt_id %}
  23.           <div id="{{ tab.alt_id }}"></div>
  24.         {% endif %}
  25.         <div id="{{ tab.id|raw }}" class="tab-container hacky-container">
  26.           <a name="{{ tab.id|raw }}"></a>
  27.           {% if tab.template %}
  28.             {% include tab.template %}
  29.           {% else %}
  30.             {% if tab.widget %}
  31.               {{ widget(tab.widget, product=this.product) }}
  32.             {% else %}
  33.               {% if tab.list %}
  34.                 {{ widget_list(tab.list, product=this.product) }}
  35.               {% else %}
  36.                 {% if tab.widgetObject %}
  37.                   {{ tab.widgetObject.display()|raw }}
  38.                 {% endif %}
  39.               {% endif %}
  40.             {% endif %}
  41.           {% endif %}
  42.         </div>
  43.       {% endfor %}
  44.     </div>
  45.   </div>
  46. {% endif %}