grav-lecampus/user/themes/lecampus/templates/calendrier.html.twig

38 lines
1.4 KiB
Twig
Raw Normal View History

2019-04-02 19:54:29 +02:00
{% extends 'partials/base.html.twig' %}
{% set blog_image = page.media.images[page.header.hero_image] ?: page.media.images|first %}
{% set collection = page.collection() %}
{% set blog = page.find(header_var('blog_url')|defined(theme_var('blog-page'))) %}
{% set show_breadcrumbs = header_var('show_breadcrumbs', [page, blog])|defined(true) %}
{% set show_sidebar = header_var('show_sidebar', [page, blog])|defined(true) %}
{% set show_pagination = header_var('show_pagination', [page, blog])|defined(true) %}
{% block body %}
2019-05-09 00:26:27 +02:00
<section class="header-wrapper">
<div class="title">
{{page.title}}
</div>
<div class="cat">
{% include 'partials/taxonomylist.html.twig' with {base_url: my_url, taxonomy: 'tag'} %}
</div>
</section>
<section class="body-wrapper" class="section blog-listing">
2019-04-05 00:19:26 +02:00
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
{% include 'partials/breadcrumbs.html.twig' %}
{% endif %}
2019-04-02 19:54:29 +02:00
2019-04-05 00:19:26 +02:00
{% embed 'partials/layout.html.twig' with {blog: page} %}
2019-04-02 19:54:29 +02:00
2019-04-05 00:19:26 +02:00
{% block item %}
2019-04-08 18:00:38 +02:00
{% for child in collection %}
{% if child.header.date_end|date("d/m/y") >= "now"|date("d/m/y") %}
{% include 'partials/cal-list-event.html.twig' with {blog: page, page: child} %}
{% endif %}
2019-04-02 19:54:29 +02:00
2019-04-08 18:00:38 +02:00
{% endfor %}
2019-04-05 00:19:26 +02:00
{% endblock %}
2019-04-08 18:00:38 +02:00
2019-04-05 00:19:26 +02:00
{% endembed %}
</section>
2019-04-02 19:54:29 +02:00
{% endblock %}