templates/Includes/tabs.html.twig line 1

Open in your IDE?
  1. {% if isTabbing is not defined %}
  2.     {% set isTabbing = true %}
  3. {% endif %}
  4. <div class="nav-tabs-container d-flex justify-content-center">
  5.     <ul class="nav nav-tabs scrolling-area js-center-active-tab {{ styleModifierTabs|default('') }}"
  6.         {% if isTabbing %}
  7.         role="tablist"
  8.         {% endif %}>
  9.         {% for tab in items %}
  10.             <li class="nav-item js-center-active-tab__tab">
  11.                 <a class="nav-link text-uppercase {{ tab.isActive ? 'active': '' }}"
  12.                    href="{{ tab.href }}"
  13.                     {% if tab.id %}
  14.                         id="{{ tab.id }}"
  15.                     {% endif %}
  16.                     {% if isTabbing %}
  17.                     data-toggle="tab"
  18.                     role="tab"
  19.                     aria-controls="home"
  20.                     data-height="false"
  21.                     aria-selected="{{ tab.isActive ? 'true': 'false' }}"
  22.                     {% endif %}>
  23.                     {{ tab.text }}
  24.                 </a>
  25.             </li>
  26.         {% endfor %}
  27.     </ul>
  28. </div>