1
0
Fork 0

FIX localized menu

This commit is contained in:
boyska 2017-03-01 11:31:56 +01:00
parent 318157be36
commit c1f9d58bf9
No known key found for this signature in database
GPG key ID: 7395DCAE58289CA9

View file

@ -115,16 +115,15 @@
</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 %}>
@ -132,6 +131,7 @@
</li>
{% endfor %}
{% endif %}
</ul>
<ul class="nav navbar-nav navbar-right">
{% if 'tipue_search' in PLUGINS %}