Localized menu, finally

This commit is contained in:
boyska 2015-06-25 13:38:08 +02:00
parent 102fde3931
commit d202c0260c

View file

@ -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 %}>