features.html.twig 1.2 KB

123456789101112131415161718192021222324252627282930
  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 class="section modular-features {{ page.header.class}}">
  4. <section class="container {{ grid_size }}">
  5. <div class="frame-box">
  6. {{ content|raw }}
  7. <div class="columns">
  8. {% for feature in page.header.features %}
  9. <div class="column {{ columns }}">
  10. {% if feature.url %}<a href="{{feature.url}}">{% endif %}
  11. <div class="feature-icon">
  12. <i class="fa fa-fw {{ feature.icon }}"></i>
  13. {% if feature.header %}
  14. <h6>{{ feature.header }}</h6>
  15. {% endif %}
  16. </div>
  17. {% if feature.url %}</a>{% endif %}
  18. <div class="feature-content">
  19. {% if feature.text %}
  20. <p>{{ feature.text }}</p>
  21. {% endif %}
  22. </div>
  23. </div>
  24. {% endfor %}
  25. </div>
  26. </div>
  27. </section>
  28. </section>