Commit cdf244bc by Manzar Hussain

add condition

parent 3065be01
...@@ -47,10 +47,6 @@ ...@@ -47,10 +47,6 @@
] ]
%} %}
<li {% if item.below %} class="dd_sub_menu" {% endif %}> <li {% if item.below %} class="dd_sub_menu" {% endif %}>
{% if ! item.below %}
{{ link(item.title, item.url) }}
{% endif %}
{% if item.below %} {% if item.below %}
<a href="{{ item.url }}">{{ item.title }} <a href="{{ item.url }}">{{ item.title }}
<span> <span>
...@@ -58,6 +54,8 @@ ...@@ -58,6 +54,8 @@
<i class="fa fa-minus" aria-hidden="true"></i> <i class="fa fa-minus" aria-hidden="true"></i>
</span> </span>
{{ menus.menu_links(item.below, attributes, menu_level + 1) }} {{ menus.menu_links(item.below, attributes, menu_level + 1) }}
{% else %}
{{ link(item.title, item.url) }}
{% endif %} {% endif %}
</li> </li>
{% endfor %} {% endfor %}
......
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