{% extends "base.html.twig" %}
{% set currentPage = "navbar.publications"|trans %}
{% block metaTags %}
<meta name="description" content="{{ category.metaDescriptionPublication }}">
<title>{{ category.metaTitlePublication }}</title>
<meta property="og:title" content="{{ category.metaTitlePublication }}">
<meta property="og:description" content="{{ category.metaDescriptionPublication }}">
{% endblock %}
{% block body %}
<section class="position-relative">
<div class="container container-publications position-relative zi-9 pab-100 pat-65">
{% include "front/menu.html.twig" with {'menu':{("menu.publications"|trans):"#", (category.title) : "#"}, "isBold":true} %}
<h2 data-aos="fade-in" data-aos-duration="800" class="text-center titleh1 mab-80">{{"publications.title"|trans}}</h2>
{# {{ category.title }}#}
<div data-aos="fade-in" data-aos-delay="200" data-aos-duration="800" >
{% include "form/publicationsFilterForm.html.twig" %}
</div>
<div class="publications mat-15">
{% for key, publicationClean in publicationCleans %}
{% set publicationCategory = publicationClean.publicationCategory %}
<div>
{# <div data-aos="fade-up" data-aos-duration="800" data-aos-delay="200" class="">#}
<a role="button" class='d-flex align-items-center justify-content-between pointer togglePublications pay-30 '>
<h3 class='c-204A9A pax-15 fs-22 my-0 fw-600 text-left'>
{{ publicationCategory.title }}
</h3>
<div class="col-auto">
<i class="fa-light fs-33 fa-circle-plus c-9DC771"></i>
</div>
</a>
<div class="content-publications pab-60 text-left">
<div class="row align-items-stretch">
{% for key, publication in publicationClean.publications %}
<div class="col-md-4 col-sm-6 mab-28">
{% include "front/publicationDetail.html.twig" with {
"categoryTitle":(publicationCategory ? publicationCategory.title : null),
"phaseEvolutions":publication.phaseEvolutions,
"phaseEvolutionsIcon":true,
"revue":publication.revue,
"title":publication.title,
"date":publication.date,
"author":publication.author,
"link":publication.link,
} %}
</div>
{% endfor %}
</div>
{% if publicationCategory.link %}
<div class='text-center'>
<a class='btn btn1 pay-15 pax-25' href="{{ publicationCategory.link }}" target="_blank">{{ "publications.see_other_publications"|trans }}</a>
</div>
{% endif %}
</div>
<hr class='btw-2 bc-CFDEE4 may-0' />
</div>
{% endfor %}
</div>
</div>
<img src="{{ asset('assets/img/Motif.png') }}" alt="background motif" class="uexpmv w-100 b-0 l-0 img-fit position-absolute"/>
</section>
{% endblock %}