templates/menu/navCategSmall.html.twig line 1
<div class="navCategSmall-box">
<a onclick="afficheNavigationMobile()">
<div><i class="fas fa-stream"></i> <b>Toutes les catégories</b> <i style="font-size:18px;" class="fas fa-chevron-down"></i></div>
</a>
<div id="navigationsmall" class="navigation">
{% if categorie.categories|length > 0 %}
<ul>
{% for child1 in categorie.categories|sort((a, b) => a.titre <=> b.titre) %}
<li>
<a href="{{ path('categoriefiltre_page', {'type': type, 'code':child1.id, 'coche':coche}) }}" >
{% if child1.id == code %} <span class="navactive{{ type }}" style="font-weight:bold;"> {% else %} {% if child1.id == 34 %} <span style="color:red; font-weight:bold;"> {% endif %} {% endif %}{{ child1.titre }}</span>
</a>
{% if child1.categories|length > 0 %} <a nohref class="filtre-down" onclick="afficheSousCategories('scatsm_{{ child1.id }}')"> <i class="fas fa-angle-double-down"></i> </a> {% endif %}
{% if child1.categories|length > 0 %}
<ul id="scatsm_{{ child1.id }}" {% if child1.id != parentid %} class="ul-hidden" {% endif %} >
{% for child2 in child1.categories|sort((a, b) => a.titre <=> b.titre) %}
<li>
<a href="{{ path('categoriefiltre_page', {'type': type, 'code':child2.id, 'coche':coche}) }}">{% if child2.id == code %} <span class="navactive{{ type }}"> {% endif %}{{ child2.titre }}</span>
{% if child2.categories|length > 0 %} <a nohref class="filtre-down" onclick="afficheSousCategories('scatsm_{{ child2.id }}')"> <i class="fas fa-angle-double-down"></i> </a> {% endif %}
</a>
{% if child2.categories|length > 0 %}
<ul id="scatsm_{{ child2.id }}">
{% for child3 in child2.categories|sort((a, b) => a.titre <=> b.titre) %}
<li>
<a href="{{ path('categoriefiltre_page', {'type': type, 'code':child3.id, 'coche':coche}) }}">{% if child3.id == code %} <span class="navactive{{ type }}"> {% endif %}{{ child3.titre }}</span>
{% if child3.categories|length > 0 %} <a nohref class="filtre-down" onclick="afficheSousCategories('scatsm_{{ child3.id }}')"> <i class="fas fa-angle-double-down"></i> </a> {% endif %}
</a>
{% if child3.categories|length > 0 %}
<ul id="scatsm_{{ child3.id }}">
{% for child4 in child2.categories|sort((a, b) => a.titre <=> b.titre) %}
<li>
<a href="{{ path('categoriefiltre_page', {'type': type, 'code':child4.id, 'coche':coche}) }}">{% if child4.id == code %} <span class="navactive{{ type }}"> {% endif %}{{ child4.titre }}</span></a>
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
{% if type==2 %}
{# <h2>Types</h2> #}
<div style="margin-top:15px; margin-left:15px;">
{% if coche == 'S' %}
<input type="checkbox" value="S" checked onclick="filtreCoche('')" ><span style="font-size:13px;"> Stérilisable</span></input><br/>
{% else %}
<input type="checkbox" value="S" onclick="filtreCoche('S')" ><span style="font-size:13px;"> Stérilisable</span></input><br/>
{% endif %}
{% if coche == 'C' %}
<input type="checkbox" value="C" checked onclick="filtreCoche('')" ><span style="font-size:13px;"> Consommable</span></input><br/>
{% else %}
<input type="checkbox" value="C" onclick="filtreCoche('C')" ><span style="font-size:13px;"> Consommable</span></input><br/>
{% endif %}
{% if coche == 'E' %}
<input type="checkbox" value="E" checked onclick="filtreCoche('')" ><span style="font-size:13px;"> Equipement</span></input><br/>
{% else %}
<input type="checkbox" value="E" onclick="filtreCoche('E')" ><span style="font-size:13px;"> Equipement</span></input><br/>
{% endif %}
<input type="hidden" id="urlFiltre" value="{{ path('categoriefiltre_page', {'type': type, 'code':code, 'coche':''}) }}" />
</div>
{% endif %}
</div>
</div>