fix agenda archive && thumbnails
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{% extends "base.twig" %}
|
||||
{% block content %}
|
||||
{% include 'components/title_page.twig' %}
|
||||
{% set now = 'now'|date('Ydj') %}
|
||||
{% set now = 'now'|date('Ymd') %}
|
||||
<section class="row filter">
|
||||
<ul class="d-flex col flex-wrap">
|
||||
<li><a href="/archive">Archive</a></li>
|
||||
@@ -10,10 +10,10 @@
|
||||
<li data-filter="*" >
|
||||
Tous
|
||||
</li>
|
||||
|
||||
{% set newArray = [] %}
|
||||
{% for cat in posts %}
|
||||
{% set end = cat.informations_fin_event|date("Ydj") %}
|
||||
|
||||
{% set end = cat.informations_fin_event|date("Ymd") %}
|
||||
{% set term = cat.categories|last.slug %}
|
||||
{% if term not in newArray and now <= end %}
|
||||
<li data-filter=".{{cat.categories|last.slug}}">
|
||||
@@ -21,13 +21,13 @@
|
||||
</li>
|
||||
{% set newArray = newArray|merge([term]) %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</section>
|
||||
<section class="grid">
|
||||
<section class="grid">
|
||||
{% for item in posts %}
|
||||
{% set end = item.informations_fin_event|date("Ydj") %}
|
||||
{% set end = item.informations_fin_event|date("Ymd") %}
|
||||
{% if now <= end %}
|
||||
{% include 'components/thumbnails/thumbnails.twig'%}
|
||||
{% endif %}
|
||||
@@ -36,7 +36,7 @@
|
||||
<div class="paralax" data-rellax-speed="-5">
|
||||
<img src="{{theme.link}}/asset/images/objet_4.svg" alt="objet 4">
|
||||
</div>
|
||||
|
||||
|
||||
</section>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user