You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
744B

  1. <ul id="menu">
  2. <li class="elm-menu">
  3. <a class="{{ app.request.attributes.get('_route') == '_homepage' ? 'selected' : '' }}" href="{{ path('_homepage') }}">{{ 'menu.home'|trans }}</a>
  4. </li>
  5. {% for page in getPagesNav() %}
  6. <li class="elm-menu">
  7. <a class="{{ app.request.get('pageSlug') == page.slug ? 'selected' : '' }}" href="{{ path('_page', {'pageSlug' : page.slug}) }}">{{ page.title }}</a>
  8. </li>
  9. {% endfor %}
  10. </ul>
  11. {% for lg, url in translated_urls() %}
  12. <a class="{{ app.request.locale == lg ? 'selected' : '' }}" title="{{ "misc.switch"|trans({"%lang%": lg}) }}" href="{{ url }}">{{ lg }}</a>
  13. {% if lg == 'fr' %}
  14. <span class="slash">/</span>
  15. {% endif %}
  16. {% endfor %}