{% extends 'Nordinfo/Main/base.html.twig' %}
{% block title %}Vos lieux de vie - Nord Info
{% endblock %}
{% block body_class %}bodyVosLieux
{% endblock %}
{% block header_epingles %}
{{ include('Lenord/Main/parts/epingles.html.twig') }}
{% endblock %}
{% block header_breadcrumb %}
{{ include('Nordinfo/Main/parts/breadcrumb.html.twig') }}
{% endblock %}
{% block body %}
<main role="main" id="mainContent" tabindex="-1">
{% if referer is not null %}
{% set url_back = referer %}
{% else %}
{% set url_back = path('info') %}
{% endif %}
{% include 'Nordinfo/Main/parts/back_btn.html.twig' with {'back_btn_class':'_list-page'} %}
<div class="container">
<div class="pb-5"></div>
<div class="containerPageHeader">
<h1>Plan du site</h1>
</div>
</div>
<div class="pb-4"></div>
<div class="container mBXL">
<ul class="sitemap not-diamond">
{% for item in urls %}
<li>
{% if item.parent.name == 'Actus' or item.parent.name == 'Personnalisation' or item.parent.name == 'Pages légales' or item.parent.name == 'Support' %}
<p>{{ item.parent.name }}</p>
{% else %}
<a href="{{ item.parent.url }}">{{ item.parent.name }}</a>
{% endif %}
{% if item.children is defined %}
<ul class="not-diamond">
{% for child in item.children %}
{% if (child.url is defined and child.url is not empty) and (child.name is defined and child.name is not empty) %}
<li>
<a href="{{ child.url }}">{{ child.name|striptags }}</a>
</li>
{% endif %}
{% if child.children is defined %}
<ul class="not-diamond">
{% for schild in child.children %}
<li>
<a href="{{ schild.url }}">{{ schild.name|striptags }}</a>
</li>
{% endfor %}
</ul>
{% endif %}
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
</main>
{% endblock %}