programmes.html.twig 980 B

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