calendrier.html.twig 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. {% extends 'partials/base.html.twig' %}
  2. {% set blog_image = page.media.images[page.header.hero_image] ?: page.media.images|first %}
  3. {% set collection = page.collection() %}
  4. {% set blog = page.find(header_var('blog_url')|defined(theme_var('blog-page'))) %}
  5. {% set show_breadcrumbs = header_var('show_breadcrumbs', [page, blog])|defined(true) %}
  6. {% set show_sidebar = header_var('show_sidebar', [page, blog])|defined(true) %}
  7. {% set show_pagination = header_var('show_pagination', [page, blog])|defined(true) %}
  8. {% block body %}
  9. <section class="header-wrapper">
  10. <div class="title">
  11. <h1>{{page.title}}</h1>
  12. </div>
  13. <div class="cat">
  14. {% include 'partials/taxonomylist.html.twig' with {base_url: my_url, taxonomy: 'tag'} %}
  15. </div>
  16. </section>
  17. <section class="body-wrapper">
  18. {% block item %}
  19. {% for child in collection %}
  20. {% if child.header.date_end|date("d/m/y") >= "now"|date("d/m/y") %}
  21. {% include 'partials/cal-list-event.html.twig' with {blog: page, page: child} %}
  22. {% endif %}
  23. {% endfor %}
  24. {% endblock %}
  25. </section>
  26. {% endblock %}
  27. {% block newsletter %}
  28. {% include 'partials/newsletters.html.twig' %}
  29. {% endblock %}