add twig agenda

This commit is contained in:
2020-05-26 12:30:49 +02:00
parent bb8f308ff9
commit 75fdf97b01
2 changed files with 52 additions and 27 deletions
+39 -11
View File
@@ -1,16 +1,44 @@
{% extends "base.twig" %}
{% block content %}
{{dump(post)}}
<div class="content-wrapper">
<article class="post-type-{{post.post_type}}" id="post-{{post.ID}}">
<section class="article-content">
<h1 class="article-h1">{{post.title}}</h1>
<div class="article-body">
{{post.content}}
<section>
<div>
{% for item in posts %}
<div class="item thumbnails">
<div class="__cat">
<div class="img__cat">
<img src="" alt="">
</div>
</div>
</section>
</article>
</div><!-- /content-wrapper -->
<div class="__images">
<div class="__img">
<img src="" alt="">
</div>
</div>
<div class="wrap__content">
<div class="__title">{{posts.title}}</div>
<div class="__content">
<div class="__date">
<div class="__day">
<time>{{item.date_de_levenement}}</time>
</div>
<div class="__hour">
<span class="start">
<time>{{item.horaires_horaire_de_debut}}</time>
</span>
<span class="end">
<time>{{item.horaires_horaire_de_fin}}</time>
</span>
</div>
</div>
<div class="lieu">{{item.lieu}}</div>
</div>
</div>
</div>
{% endfor %}
</div>
</section>
{% endblock %}