templates/frontend-eforum/_partials/modules/modules.html.twig line 1

Open in your IDE?
  1. <section class="product-section product-modules" id="{{ moduleKey }}">
  2.     <div class="container">
  3.         <h2 class="product-section__title">
  4.             {% if module.title is defined and module.title is not empty %}
  5.                 {{ module.title }}
  6.             {% else %}
  7.                 ModuĊ‚y
  8.             {% endif %}
  9.         </h2>
  10.         <div class="product-modules__list">
  11.             {% if module.list is defined %}
  12.                 <nav class="nav nav-tabs" id="module-nav" role="tablist">
  13.                     {% for item in module.list %}
  14.                         <a style="margin-right:120px;" class="nav-link {{ loop.first ? 'active' : '' }}"
  15.                            id="module-nav-{{ loop.index }}"
  16.                            href="#module-tab-{{ loop.index }}"
  17.                            role="tab"
  18.                            aria-controls="module-tab-{{ loop.index }}"
  19.                            aria-selected="{{ loop.first ? 'true' : 'false' }}"
  20.                         >
  21.                             {% if item.title is defined %}
  22.                                 {{ item.title }}
  23.                             {% endif %}
  24.                         </a>
  25.                     {% endfor %}
  26.                 </nav>
  27.                 <div class="tab-content" id="module-tab">
  28.                     {% for item in module.list %}
  29.                         <div class="tab-pane show {{ loop.first ? 'active' : '' }}"
  30.                              id="module-tab-{{ loop.index }}"
  31.                              role="tabpanel"
  32.                              aria-labelledby="module-nav-{{ loop.index }}">
  33.                             {% if item.points is defined %}
  34.                                 <ul>
  35.                                     {% for point in item.points %}
  36.                                         <li>{{ point.text }}</li>
  37.                                     {% endfor %}
  38.                                 </ul>
  39.                             {% endif %}
  40.                         </div>
  41.                     {% endfor %}
  42.                 </div>
  43.             {% endif %}
  44.         </div>
  45.     </div>
  46. </section>