features.html.twig 1.1 KB

12345678910111213141516171819202122232425262728
  1. {% set grid_size = theme_var('grid-size') %}
  2. {% set columns = page.header.class == 'small' ? 'col-3 col-md-4 col-sm-6' : 'col-4 col-md-6 col-sm-12' %}
  3. <section id="modular-features" class="section {{ page.header.class}}">
  4. <section class="container {{ grid_size }}">
  5. <div class="frame-box">
  6. {{ content }}
  7. <div class="columns">
  8. {% for feature in page.header.features %}
  9. <div class="column {{ columns }}">
  10. <div class="feature-icon">
  11. <i class="fa fa-fw {{ feature.icon }}"></i>
  12. {% if feature.header %}
  13. <h6>{{ feature.header }}</h6>
  14. {% endif %}
  15. </div>
  16. <div class="feature-content">
  17. {% if feature.text %}
  18. <p>{{ feature.text }}</p>
  19. {% endif %}
  20. </div>
  21. </div>
  22. {% endfor %}
  23. </div>
  24. </div>
  25. </section>
  26. </section>