Commit 55c3be3a by Manzar Hussain

add level check

parent cf2004d8
......@@ -47,12 +47,13 @@
]
%}
<li{{ item.attributes.addClass(classes) }}>
{% if item.below %}
{% if menu_level == 0 %}
<a href="javascript:void(0);">{{ item.title }}
<span>
<i class="fa fa-plus" aria-hidden="true"></i>
<i class="fa fa-minus" aria-hidden="true"></i>
</span>
</a>
{{ menus.menu_links(item.below, attributes, menu_level + 1) }}
{% else %}
{{ link(item.title, item.url) }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment