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 flex-wrap">
|
||||
@@ -15,7 +15,7 @@
|
||||
{% set newArray = [] %}
|
||||
{% for cat in posts %}
|
||||
{% set term = cat.categories|last.slug %}
|
||||
{% set end = cat.informations_fin_event|date("Ydj") %}
|
||||
{% set end = cat.informations_fin_event|date("Ymd") %}
|
||||
|
||||
{% if term not in newArray and now >= end %}
|
||||
<li data-filter=".{{cat.categories|last.slug}}" >
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
<section class="row 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 %}
|
||||
|
||||
Reference in New Issue
Block a user