templates/navigation.html.twig line 1

Open in your IDE?
  1. {% block navigation %}
  2.   <div class="container-fluid" style="padding: 0px; min-height:60px">
  3.     <!-- Start Navigation -->
  4.     <nav class="navbar navbar-expand-lg navbar-light" id="navbar">
  5.       <div class="container">
  6.         <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
  7.           <span class="navbar-toggler-icon"></span>
  8.         </button>
  9.         <div class="collapse navbar-collapse" id="navbarCollapse">
  10.           <ul class="navbar-nav mr-auto">
  11.             <li class="nav-item">
  12.               <a class="nav-link" href="{{ path('frontpage') }}">{{ 'Voorpagina'|trans }}</a>
  13.             </li>
  14.             {#<li class="nav-item dropdown">
  15.               <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{{ 'Fossielen'|trans }}</a>
  16.               <div class="dropdown-menu" aria-labelledby="navbarDropdown">
  17.                 <a class="dropdown-item" href="#">[item]</a>
  18.               </div>
  19.             </li>
  20.             <li class="nav-item dropdown">
  21.               <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{{ 'Geologie'|trans }}</a>
  22.               <div class="dropdown-menu" aria-labelledby="navbarDropdown">
  23.                 <a class="dropdown-item" href="#">[item]</a>
  24.               </div>
  25.             </li>#}
  26.             <li class="nav-item dropdown">
  27.               <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{{ 'Informatie'|trans }}</a>
  28.               <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
  29.                 <li><a class="dropdown-item" href="{{ path('article_index') }}">{{ 'Artikelen'|trans }}</a></li>
  30.                 <li><a class="dropdown-item" href="{{ path('glossary_index') }}">{{ 'Glossarium'|trans }}</a></li>
  31.                 <li><a class="dropdown-item" href="{{ path('literature') }}">{{ 'Literatuur'|trans }}</a></li>
  32.                 <li><a class="dropdown-item" href="{{ path('media') }}">{{ 'In de Media'|trans }}</a></li>
  33.                 <li class="dropdown-submenu">
  34.                     <a href="#" class="dropdown-item" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{ 'Voor beginners'|trans }} <span class="feather-18" data-feather="chevrons-right"></a></span>
  35.                     <ul class="dropdown-menu">
  36.                         <li><a class="dropdown-item" href="{{ path('article', { id : '67', url: 'Verzamelcode' }) }}">{{ 'Verzamelcode'|trans }}</a></li>
  37.                         <li><a class="dropdown-item" href="{{ path('article', { id : '528', url: 'Beginnen-met-fossielen-zoeken' }) }}">{{ 'Beginnen met zoeken'|trans }}</a></li>
  38.                         <li><a class="dropdown-item" href="{{ path('article', { id : '370', url: 'Zelf-een-zeef-maken' }) }}">{{ 'Zelf een zeef maken'|trans }}</a></li>
  39.                         <div class="dropdown-divider"></div>
  40.                         <li><a class="dropdown-item" href="{{ path('geologic_timescale') }}">{{ 'Geologische Tijdschaal'|trans }}</a></li>
  41.                         <li><a class="dropdown-item" href="{{ path('geologic_maps') }}">{{ 'Geologische Kaarten'|trans }}</a></li>
  42.                     </ul>
  43.                 </li>
  44.                 <li><a class="dropdown-item" href="{{ path('links') }}">{{ 'Aanverwante websites'|trans }}</a></li>
  45.               </ul>
  46.             </li>
  47.             <li class="nav-item">
  48.               <a class="nav-link" href="{{ path('locations_gis') }}">{{ 'Locaties'|trans }}</a>
  49.             </li>
  50.             <li class="nav-item dropdown">
  51.               <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{{ 'Fossielen'|trans }}</a>
  52.               <div class="dropdown-menu" aria-labelledby="navbarDropdown">
  53.                 <a class="dropdown-item" href="{{ path('fossildb') }}">{{'Fossielendatabase'|trans }}</a>
  54.                 <a class="dropdown-item" href="{{ path('specieslist') }}">{{'Soortenlijsten'|trans }}</a>
  55.               </div>
  56.             </li>
  57.             <li class="nav-item dropdown">
  58.               <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{{ 'Community'|trans }}</a>
  59.               <div class="dropdown-menu" aria-labelledby="navbarDropdown">
  60.                 <a class="nav-link" href="{{ path('calendar') }}">{{ 'Geo Kalender'|trans }}</a>
  61.                 <a class="nav-link" href="{{ forum_uri }}">{{ 'Forum'|trans }}</a>
  62.               </div>
  63.             </li>
  64.             {#<li class="nav-item dropdown">
  65.               <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{{ 'Kids'|trans }}</a>
  66.               <div class="dropdown-menu" aria-labelledby="navbarDropdown">
  67.                 <a class="dropdown-item" href="#">[item]</a>
  68.               </div>
  69.             </li>#}
  70.             <li class="nav-item dropdown">
  71.               <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{{ 'Over ons'|trans }}</a>
  72.               <div class="dropdown-menu" aria-labelledby="navbarDropdown">
  73.                 <a class="dropdown-item" href="{{ path('article', { id : '616', url: 'Stichting-Paleontica' }) }}">{{ 'Stichting Paleontica'|trans }}</a>
  74.                 <a class="dropdown-item" href="{{ path('article', { id : '577', url: 'Over-Fossiel.net' }) }}">{{ 'Over fossiel.net'|trans }}</a>
  75.                 <a class="dropdown-item" href="{{ path('article', { id : '94', url: 'Fossiel.net-Team' }) }}">{{ 'Het team'|trans }}</a>
  76.                 <a class="dropdown-item" href="{{ path('contact') }}">{{ 'Neem contact op'|trans }}</a>
  77.               </div>
  78.             </li>
  79.           </ul>
  80.           <ul class="navbar-nav">
  81.             {{ form_start(searchform) }}
  82.               {{ form_widget(searchform.q) }}
  83.             {{ form_end(searchform) }}
  84.             {% if is_granted('ROLE_USER') %}
  85.             <li class="nav-item dropdown">
  86.               <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  87.                 {{app.user.username}}
  88.               </a>
  89.               <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
  90.                 <a class="dropdown-item" href="{{ path('user') }}#profile/"><span class="feather-18" data-feather="user"></span> {{ 'Profiel'|trans }}</a>
  91.                 {#<a class="dropdown-item" href="/user#settings/"><span class="feather-18" data-feather="sliders"></span> {{ 'Instellingen'|trans }}</a>#}
  92.                 {% if is_granted('ROLE_MOD') %}
  93.                 <div class="dropdown-divider"></div>
  94.                 <a class="dropdown-item" href="{{ path('moderation_index') }}"><span class="feather-18" data-feather="command"></span> {{ 'Beheer'|trans }}</a>
  95.                 {% endif %}
  96.                 {% if is_granted('ROLE_ADMIN') %}
  97.                 {% endif %}
  98.                 <div class="dropdown-divider"></div>
  99.                 {% if is_granted('IS_IMPERSONATOR') %}
  100.                 <a class="dropdown-item" href="{{ path('frontpage', {'_switch_user': '_exit'}) }}"><span class="feather-18" data-feather="log-out"></span> {{ 'Uit nabootsing-modus gaan'|trans }}</a>
  101.                 {% else %}
  102.                 <a class="dropdown-item" href="{{ path('user_logout') }}"><span class="feather-18" data-feather="log-out"></span> {{ 'Uitloggen'|trans }}</a>
  103.                 {% endif %}
  104.               </div>
  105.             </li>
  106.             {% else %}
  107.             <li class="nav-item">
  108.               <a class="nav-link" href="{{ forum_uri }}/ucp.php?mode=register">{{ 'Registreer'|trans }}</a>
  109.             </li>
  110.             <li class="nav-item">
  111.               <a class="nav-link" href="{{ path('user_login') }}">{{ 'Inloggen'|trans }}</a>
  112.             </li>
  113.             {% endif %}
  114.             <li class="nav-item dropdown">
  115.               <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><img src="/images/flags/{{ app.request.locale }}.png" class="img-fluid rounded"></a>
  116.               <div class="dropdown-menu dropdown-menu-right text-right" aria-labelledby="navbarDropdown">
  117.                 {#<a class="dropdown-item" href="{{ path('setlanguage', {iso: 'de'}) }}">Deutsch <img src="/images/flags/de.png" alt="Deutsch"></a>#}
  118.                 <a class="dropdown-item" href="{{ path('setlanguage', {iso: 'en'}) }}">English <img src="/images/flags/en.png" alt="English"></a>
  119.                 {#<a class="dropdown-item" href="{{ path('setlanguage', {iso: 'fr'}) }}r">Français <img src="/images/flags/fr.png" alt="Français"></a>#}
  120.                 <a class="dropdown-item" href="{{ path('setlanguage', {iso: 'nl'}) }}">Nederlands <img src="/images/flags/nl.png" alt="Nederlands"></a>
  121.               </div>
  122.             </li>
  123.           </ul>
  124.         </div>
  125.       </div>
  126.     </nav>
  127.   </div>
  128.     <!-- End Navigation -->
  129. {% endblock %}