templates/Nordinfo/Main/sitemap.html.twig line 1

Open in your IDE?
  1. {% extends 'Nordinfo/Main/base.html.twig' %}
  2. {% block title %}Vos lieux de vie - Nord Info
  3. {% endblock %}
  4. {% block body_class %}bodyVosLieux
  5. {% endblock %}
  6. {% block header_epingles %}
  7.   {{ include('Lenord/Main/parts/epingles.html.twig') }}
  8. {% endblock %}
  9. {% block header_breadcrumb %}
  10.   {{ include('Nordinfo/Main/parts/breadcrumb.html.twig') }}
  11. {% endblock %}
  12. {% block body %}
  13.   <main role="main" id="mainContent" tabindex="-1">
  14.     {% if referer is not null %}
  15.       {% set url_back = referer %}
  16.     {% else %}
  17.       {% set url_back = path('info') %}
  18.     {% endif %}
  19.     {% include 'Nordinfo/Main/parts/back_btn.html.twig' with {'back_btn_class':'_list-page'} %}
  20.     <div class="container">
  21.       <div class="pb-5"></div>
  22.       <div class="containerPageHeader">
  23.         <h1>Plan du site</h1>
  24.       </div>
  25.     </div>
  26.     <div class="pb-4"></div>
  27.     <div class="container mBXL">
  28.       <ul class="sitemap not-diamond">
  29.         {% for item in urls %}
  30.           <li>
  31.             {% if item.parent.name == 'Actus' or item.parent.name == 'Personnalisation' or item.parent.name == 'Pages légales' or item.parent.name == 'Support' %}
  32.               <p>{{ item.parent.name }}</p>
  33.             {% else %}
  34.               <a href="{{ item.parent.url }}">{{ item.parent.name }}</a>
  35.             {% endif %}
  36.             {% if item.children is defined %}
  37.               <ul class="not-diamond">
  38.                 {% for child in item.children %}
  39.                   {% if (child.url is defined and child.url is not empty) and (child.name is defined and child.name is not empty) %}
  40.                     <li>
  41.                       <a href="{{ child.url }}">{{ child.name|striptags }}</a>
  42.                     </li>
  43.                   {% endif %}
  44.                   {% if child.children is defined %}
  45.                     <ul class="not-diamond">
  46.                       {% for schild in child.children %}
  47.                         <li>
  48.                           <a href="{{ schild.url }}">{{ schild.name|striptags }}</a>
  49.                         </li>
  50.                       {% endfor %}
  51.                     </ul>
  52.                   {% endif %}
  53.                 {% endfor %}
  54.               </ul>
  55.             {% endif %}
  56.           </li>
  57.         {% endfor %}
  58.       </ul>
  59.     </div>
  60.   </main>
  61. {% endblock %}