{% if titleTag is not defined %}
{% set titleTag = 'div' %}
{% endif %}
{% if showFilter is not defined %}
{% set showFilter = true %}
{% endif %}
{% set filterForm = (productCount is defined) or (filters is defined and filters) %}
<div class="product-list-ctn {%if listClass is defined%}{{ listClass }}{% endif %}">
{% if showFilter %}
<div class="product-list-header">
{% if filterForm %}
<form class="product-selection collapse" {% if filterUrl is defined %}action="{{ filterUrl }}"{% endif %}>
{% endif %}
{% if productCount is defined %}
<div class="sort">
{# <label for="list-sort">{% trans %}trier par :{% endtrans %}</label>#}
{% if sort is not defined %}
{% set sort = '' %}
{% endif %}
<select name="sort" id="list-sort" class="select2" data-placeholder="{% trans %}Trier par {% endtrans %}">
<option value="" {% if sort == '' %}selected{% endif %}>{% trans %}Trier par {% endtrans %} :</option>
<option value="name-asc" {% if sort == 'name-asc' %}selected{% endif %}>{% trans %}Nom{% endtrans %}</option>
<option value="price-asc" {% if sort == 'price-asc' %}selected{% endif %}>{% trans %}Prix croissant{% endtrans %}</option>
<option value="price-desc" {% if sort == 'price-desc' %}selected{% endif %}>{% trans %}Prix décroissant{% endtrans %}</option>
</select>
</div>
{% endif %}
{% if filters is defined and filters %}
{% include 'front/catalog/category/filter.html.twig' %}
{% endif %}
{% if filterForm %}
</form>
{% endif %}
</div>
{% endif %}
{% if title is defined and title %}
<div class="title-ctn">
<{{ titleTag }} class="title">{{ title }}</{{ titleTag }}>
<hr>
</div>
{% endif %}
{% include 'front/catalog/product/view/list.html.twig' with {products:products} %}
{% if nbPages is defined %}
<div class="pagination-ctn">
{% include 'front/catalog/product/pagination.html.twig' with {nbPages:nbPages, page:page} %}
</div>
{% endif %}
</div>