Skip to content
Snippets Groups Projects
Commit e7724c1d authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-4199: updating menu structure to allow for parenting to be displayed correctly

parent e08eb487
No related branches found
No related tags found
1 merge request!9Istwcms 4199 theme menus
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
{% macro menu_links(items, attributes, menu_level, menu_name, menu_class, item_class, link_class, parent) %} {% macro menu_links(items, attributes, menu_level, menu_name, menu_class, item_class, link_class, parent) %}
{% import _self as menus %} {% import _self as menus %}
{% if items %} {% if items %}
{% if menu_level == 0 %} {% if menu_level == 0 %}
...@@ -89,7 +90,7 @@ ...@@ -89,7 +90,7 @@
{% if menu_level == 1 and parent and not menu_parent_hide %} {% if menu_level == 1 and parent %}
<li {{ add_attributes(additional_item_attributes) }}> <li {{ add_attributes(additional_item_attributes) }}>
...@@ -103,18 +104,22 @@ ...@@ -103,18 +104,22 @@
</span> </span>
</a> </a>
</li> </li>
{% endif %}
<li {{ add_attributes(additional_item_attributes) }}>
{% endif %}
<li {{ add_attributes(additional_item_attributes) }}>
<a <a
{% if item.submenu %} {% if item.submenu and menu_level == 0 %}
tabindex="0"
aria-haspopup="true"
role="button"
{% elseif item.submenu %}
tabindex="0" tabindex="0"
aria-haspopup="true" aria-haspopup="true"
role="button" role="button"
href="{{ item.url }}"
{% else %} {% else %}
href="{{ item.url }}" href="{{ item.url }}"
{% endif %} {% endif %}
{{ add_attributes(link_attributes) }} {{ add_attributes(link_attributes) }}
> >
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment