navigation.html.twig 722 B

123456789101112131415161718192021
  1. <div id="nav-container">
  2. <h1 onclick="titleScrollTop()">
  3. {{ page.title }}
  4. </h1>
  5. <div class="picto" id="burger" onclick="toggleMobileNav()" data-src="{{ url('theme://images/pictos/burger.svg') }}" aria-hidden="true"></div>
  6. </div>
  7. <nav>
  8. <div class="picto" id="crossMenu" onclick="toggleMobileNav()" data-src="{{ url('theme://images/pictos/cross.svg') }}" aria-hidden="true"></div>
  9. <ul>
  10. {% for page in pages.children.visible %}
  11. {% set current_page = (page.active or page.activeChild) ? 'selected' : '' %}
  12. <li class="{{ current_page|e }}" onclick="changeMenuSelected(this)">
  13. <a href="{{ page.url|e }}">
  14. {{ page.menu|e }}
  15. </a>
  16. </li>
  17. {% endfor %}
  18. </ul>
  19. </nav>