Skip to content
Snippets Groups Projects
Commit d202c026 authored by boyska's avatar boyska
Browse files

Localized menu, finally

parent 102fde39
Branches
No related tags found
No related merge requests found
......@@ -211,16 +211,14 @@
</div>
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav">
{% for title, link in MENUITEMS %}
{% if page %}
{% set menu = LOCALMENUITEMS[page.lang] %}
{% else %}
{% set menu = MENUITEMS %}
{% endif %}
{% for title, link in menu %}
<li><a href="{{ link }}">{{ title }}</a></li>
{% endfor %}
{% if DISPLAY_PAGES_ON_MENU %}
{% for p in PAGES %}
<li{% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">
{{ p.menulabel|default(p.title) }}
</a></li>
{% endfor %}
{% endif %}
{% if DISPLAY_CATEGORIES_ON_MENU %}
{% for cat, null in categories %}
<li {% if cat == category %}class="active"{% endif %}>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment