139 lines
4.1 KiB
Twig
139 lines
4.1 KiB
Twig
{% extends "base.twig" %}
|
|
{% block content %}
|
|
{% set group = post.meta('informations') %}
|
|
|
|
<section class="content-wrapper">
|
|
|
|
<div class="Btn retour">
|
|
<a href="/agenda">Retour</a>
|
|
<div class="fleche"></div>
|
|
</div>
|
|
|
|
<article class="row">
|
|
<header class="mobile col-12 d-lg-none d-block">
|
|
<h3 class="titre_event">{{ post.title }}</h3>
|
|
</header>
|
|
|
|
<figure class="__img_event col-lg-6 col-12">
|
|
<img src="{{Image(post.image_event).src|resize(600,500)}}" alt="{{Image(post.image_event).alt}}" title="{{Image(post.image_event).title}}">
|
|
</figure>
|
|
|
|
<div class="article-content col-lg-6 col-12 my-3 my-lg-0">
|
|
<header class="header d-none d-lg-block">
|
|
<h3 class="titre_event">{{ post.title }}</h3>
|
|
</header>
|
|
|
|
<div class="cat {{post.category.slug}}">
|
|
| {{post.category.name}} |
|
|
</div>
|
|
|
|
<div class="data">
|
|
<div class="__date">
|
|
<div class="__day">
|
|
{% set start = post.informations_debut_event|date("Ydj") %}
|
|
{% set end = post.informations_fin_event|date("Ydj") %}
|
|
|
|
{% if start == end %}
|
|
<span class="start">
|
|
Le <time>{{post.informations_debut_event|date("j F Y") }}</time>
|
|
de <time>{{post.informations_debut_event|date("G:i")}}</time>
|
|
</span>
|
|
<span class="end">
|
|
à <time>{{post.informations_fin_event|date("G:i")}}</time>
|
|
</span>
|
|
{% else %}
|
|
<span class="start">
|
|
Du <time>{{post.informations_debut_event|date("j F Y") }}</time>
|
|
à <time>{{post.informations_debut_event|date("G:i")}}</time>
|
|
</span>
|
|
<span class="end">
|
|
<br>Au <time>{{post.informations_fin_event|date("j F Y") }}</time>
|
|
à <time>{{post.informations_fin_event|date("G:i")}}</time></br>
|
|
</span>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
<div class="lieu">{{group.lieu}}</div>
|
|
</div>
|
|
|
|
<div class="wrapper__content">
|
|
{{ post.meta('description') }}
|
|
</div>
|
|
<footer>
|
|
|
|
{% if group.piece_jointe %}
|
|
<div class="pj">
|
|
<h3>Pièce-jointe</h3>
|
|
<div>
|
|
<a download target="_blank" href="{{group.piece_jointe}}">Télécharger la pièce jointe</a>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div class="tarif">
|
|
<h3>Tarif</h3>
|
|
<p>{{group.type_tarif}}</p>
|
|
</div>
|
|
|
|
<div class="inscription">
|
|
|
|
{% if group.inscription %}
|
|
<h3>Inscription</h3>
|
|
{% for Items in group.inscription %}
|
|
{% for detail in Items %}
|
|
{% if detail.acf_fc_layout == 'en_libre_acces' %}
|
|
<p class="texte_details">{{ detail.texte }}</p>
|
|
{% endif %}
|
|
{% if detail.acf_fc_layout == 'lien_dinscription' %}
|
|
<div class="Btn group_link">
|
|
<a target="_blank" href="{{detail.url}}">{{detail.texte}}</a>
|
|
</div>
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% for detail in Items.type_dinscription %}
|
|
{% endfor %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
</div>
|
|
<div class="Btn voir_event">
|
|
<a href="{{post.meta('voir_evenement_facebook').lien_facebook}}">{{post.meta('voir_evenement_facebook').texte}}</a>
|
|
</div>
|
|
|
|
<div class="partager">
|
|
<h3>Partager</h3>
|
|
<figure class="d-flex">
|
|
<a rel="noreferrer" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u={{post.link}}">
|
|
<img alt="share_fb" src="{{theme.link}}/dist/assets/images/fb.svg" />
|
|
</a>
|
|
<a rel="noreferrer" target="_blank" href="https://twitter.com/share?url={{post.link}}&text={{post.title}}&via=Ress_LaMine">
|
|
<img alt="share_twitter" src="{{theme.link}}/dist/assets/images/twitter.svg" />
|
|
</a>
|
|
<a rel="noreferrer" target="_blank" href="mailto:?subject={{post.link}}" title="Share by Email">
|
|
<img alt="share_mail" src="{{theme.link}}/dist/assets/images/mail.svg" />
|
|
</a>
|
|
</figure>
|
|
</div>
|
|
</footer>
|
|
</div>
|
|
</article>
|
|
</section>
|
|
|
|
|
|
{% if other %}
|
|
<section class="other">
|
|
|
|
<div class="header_other">
|
|
<h3 class="voir_aussi">Voir aussi</h3>
|
|
</div>
|
|
|
|
<div class="other-posts row">
|
|
{% for item in other %}
|
|
{% include 'components/thumbnails/thumbnails.twig' with { name : 'other'} %}
|
|
{% endfor %}
|
|
</div>
|
|
|
|
</section>
|
|
{% endif %}
|
|
|
|
{% endblock %}
|