Initial commit
This commit is contained in:
34
templates/partials/navigation.twig
Normal file
34
templates/partials/navigation.twig
Normal file
@@ -0,0 +1,34 @@
|
||||
<nav class="main-menu">
|
||||
<div class="{{ current_language == 'en' ? 'menu-navigation-en-container' : 'menu-navigation-container' }}">
|
||||
<ul>
|
||||
{% for item in menu.items %}
|
||||
{% set is_first_col = loop.index == 1 %}
|
||||
<li class="{{ item.classes|join(' ') }}">
|
||||
<a href="{{ item.url }}">{{ item.title | bilingual(current_language) }}</a>
|
||||
{% if item.children %}
|
||||
<ul class="sub-menu">
|
||||
{% for child in item.children %}
|
||||
<li class="{{ child.classes|join(' ') }}">
|
||||
<a href="{{ child.url }}">{{ child.title | bilingual(current_language) }}</a>
|
||||
</li>
|
||||
{% if is_first_col and loop.index == 2 and axes_courants %}
|
||||
<li class="nav-axes-item">
|
||||
<div class="nav-axes-trigger" aria-expanded="false">
|
||||
{{ current_language == 'en' ? 'Thematic axes' : 'Axes thématiques' }}
|
||||
<i class="iconoir-nav-arrow-down"></i>
|
||||
</div>
|
||||
<ul class="nav-axes-list">
|
||||
{% for axe in axes_courants %}
|
||||
<li><a href="{{ axe.link }}">{{ axe.name }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
Reference in New Issue
Block a user