programmes.html.twig 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <div class="modular-row programmes{{ page.header.class}}">
  2. {{ content|raw }}
  3. {{ dump(page.header) }}
  4. <div class="feature-items">
  5. {% for programme in page.header.programmes %}
  6. <div class="feature">
  7. {% if programme.icon %}
  8. <i class="fa fa-fw fa-{{ programme.icon }}"></i>
  9. <div class="feature-content icon-offset">
  10. {% else %}
  11. <div class="feature-content">
  12. {% endif %}
  13. {% if programme.nom_du_programme %}
  14. <h4>{{ programme.nom_du_programme }}</h4>
  15. {% endif %}
  16. {% if programme.texte_de_presentation %}
  17. <p>{{ programme.texte_de_presentation }}</p>
  18. {% endif %}
  19. {% if programme.logo %}
  20. <img src="{{ page.media[page.header.programmes.logo].html() }}" alt=logo_programme />
  21. {% endif %}
  22. </div>
  23. </div>
  24. {% endfor %}
  25. </div>
  26. </div>
  27. {# ça, ça marche mais maintenant faut créer un variable qui va chercher les images
  28. {% if programme.logo %}
  29. <img src="{{ page.media['popsu.png'].url|e }}" alt=“logo_programme” />
  30. {% endif %}
  31. #}