template/wordpress/views/layout.twig in edge_framework-2.0.0.a vs template/wordpress/views/layout.twig in edge_framework-2.0.0
- old
+ new
@@ -8,25 +8,27 @@
<div id="main-wrapper">
<!-- Main Navigation Menu -->
<nav class="main-menu">
{% for item in menu.get_items %}
- <a href="{{ item.get_link }}"
- {% if "current-menu-item" in item.classes %}
- class="active"
- {% endif %}>
+ <div class="item">
+ <a href="{{ item.get_link }}"
+ {% if "current-menu-item" in item.classes %}
+ class="active"
+ {% endif %}>
- {{ item.title }}
- </a>
- {% if item.get_children %}
- <ul>
- {% for child in item.get_children %}
- <li>
+ {{ item.title }}
+ </a>
+
+ {% if item.get_children %}
+ <div class="dropdown">
+ {% for child in item.get_children %}
<a href="{{ child.get_link }}">{{ child.title }}</a>
- </li>
- {% endfor %}
- </ul>
- {% endif %}
+ {% endfor %}
+ </div>
+ {% endif %}
+
+ </div>
{% endfor %}
</nav>
<!-- Search -->
<form method="get" action="{{ home }}" role="search">
\ No newline at end of file