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

Open in your IDE?
  1. <section class="product-section product-divisions" id="{{ moduleKey }}">
  2.     {% if module.header is defined %}
  3.     <div class="product-section__title-mobile-wrapper d-block d-md-none">
  4.         <div class="container">
  5.             <span class="product-section__title d-block d-md-none">{{ module.header }}</span>
  6.         </div>
  7.     </div>
  8.     {% endif %}
  9.     <div class="container">
  10.         {% if module.header is defined %}
  11.             <h2 class="product-section__title d-none d-md-block">{{ module.header }}</h2>
  12.         {% endif %}
  13.         {% if module.list is defined %}
  14.             <div class="icon-list icon-list--app-mobile">
  15.                 {% for item in module.list %}
  16.                     {#{{ dump(loop.index) }}#}
  17.                     <div class="icon-list__item">
  18.                         {% if item.icon is defined %}
  19.                             <i class="icon icon--{{ item.icon }} d-none d-md-block"></i>
  20.                         {% endif %}
  21.                         {% if item.title is defined  %}
  22.                             <strong>{{ item.title }}</strong> -
  23.                         {% endif %}
  24.                         {% if item.description is defined %}
  25.                             {{ item.description }}
  26.                         {% endif %}
  27.                     </div>
  28.                     {% if loop.index == 3 %}
  29.                         <button class="btn-mobile-read-more d-block d-md-none">Zobacz wiÄ™cej</button>
  30.                         <div class="icon-list-inner">
  31.                     {% endif %}
  32.                     {% if loop.last %}
  33.                         </div>
  34.                     {% endif %}
  35.                 {% endfor %}
  36.             </div>
  37.         {% endif %}
  38.     </div>
  39. </section>