|
1234567891011121314151617 |
- <ul id="menu">
- <li class="elm-menu">
- <a class="{{ app.request.attributes.get('_route') == '_homepage' ? 'selected' : '' }}" href="{{ path('_homepage') }}">{{ 'menu.home'|trans }}</a>
- </li>
- {% for page in getPagesNav() %}
- <li class="elm-menu">
- <a class="{{ app.request.get('pageSlug') == page.slug ? 'selected' : '' }}" href="{{ path('_page', {'pageSlug' : page.slug}) }}">{{ page.title }}</a>
- </li>
- {% endfor %}
- </ul>
-
- {% for lg, url in translated_urls() %}
- <a class="{{ app.request.locale == lg ? 'selected' : '' }}" title="{{ "misc.switch"|trans({"%lang%": lg}) }}" href="{{ url }}">{{ lg }}</a>
- {% if lg == 'fr' %}
- <span class="slash">/</span>
- {% endif %}
- {% endfor %}
|