Files
dev-epau.archi.fr/user/themes/epau-antimatter/templates/modular/programmes.html.twig
T
2021-03-19 16:07:04 +01:00

37 lines
1.1 KiB
Twig

<div class="modular-row programmes{{ page.header.class}}">
{{ content|raw }}
{{ dump(page.header) }}
<div class="feature-items">
{% for programme in page.header.programmes %}
<div class="feature">
{% if programme.icon %}
<i class="fa fa-fw fa-{{ programme.icon }}"></i>
<div class="feature-content icon-offset">
{% else %}
<div class="feature-content">
{% endif %}
{% if programme.nom_du_programme %}
<h4>{{ programme.nom_du_programme }}</h4>
{% endif %}
{% if programme.texte_de_presentation %}
<p>{{ programme.texte_de_presentation }}</p>
{% endif %}
{% if programme.logo %}
<img src="{{ page.media[page.header.programmes.logo].html() }}" alt=logo_programme />
{% endif %}
</div>
</div>
{% endfor %}
</div>
</div>
{# ça, ça marche mais maintenant faut créer un variable qui va chercher les images
{% if programme.logo %}
<img src="{{ page.media['popsu.png'].url|e }}" alt=“logo_programme” />
{% endif %}
#}