templates/home/categories.html.twig line 1
<section class="section2">
<div class="container">
<h2>Les protocoles LODEAO</h2>
<div class="swiper margin-top-30">
<div class="swiper-wrapper">
{% set noimg = 0 %}
{% for proto in categories|sort((a, b) => a.titre <=> b.titre) %}
{% if proto.titre != 'Urgences' %}
{% set noimg = noimg + 1 %}
{% if noimg >6 %} {% set noimg = 1 %} {% endif %}
<div class="swiper-slide">
<div class="swiper-slide-content" onmouseenter="activerimg({{ proto.id }})" onmouseleave="desactiverimg({{ proto.id }})" >
<div style="position:relative;">
<a href="{{ path('categoriefiltre_page', {'type': 1, 'code': proto.id}) }}">
<div class="img-content">
{% if proto.image is empty %}
<img id="img{{ proto.id }}" class="img{{ noimg }}" src="{{ asset('assets/img/categories/') }}categorie.jpg" />
{% else %}
<img id="img{{ proto.id }}" class="img{{ noimg }}" src="{{ proto.image }}" />
{% endif %}
</div>
<h3>{{ proto.titre|replace({' ': '<br/>'})|raw }}</h3>
</a>
</div>
<div>
<a href="{{ path('categoriefiltre_page', {'type': 1, 'code': proto.id}) }}">
<p class="text-center">{{ proto.resume }}</p></a>
<a id="about{{ proto.id }}" class="about" href="{{ path('categoriefiltre_page', {'type': 1, 'code': proto.id}) }}">Plus d'info</a>
</div>
</div>
</div>
{% endif %}
{% endfor %}
</div>
<div class="swiper-button-next"></div>
<div class="swiper-button-prev"></div>
</div>
<div class="acces-protocoles">
Accédez aux protocoles de gestion des <a href="{{ path('categoriefiltre_page', {'type': 1, 'code':'U'}) }}"><button>URGENCES</button></a>
</div>
</div>
</section>