summaryrefslogtreecommitdiff
path: root/templates/partials/navigation2.html.twig
diff options
context:
space:
mode:
Diffstat (limited to 'templates/partials/navigation2.html.twig')
-rw-r--r--templates/partials/navigation2.html.twig53
1 files changed, 0 insertions, 53 deletions
diff --git a/templates/partials/navigation2.html.twig b/templates/partials/navigation2.html.twig
deleted file mode 100644
index 2e865bd..0000000
--- a/templates/partials/navigation2.html.twig
+++ /dev/null
@@ -1,53 +0,0 @@
-{% macro loop(page) %}
- {% for p in page.children.visible %}
- {% set current_page = (p.active or p.activeChild) ? 'selected' : '' %}
- {% if p.children.visible.count > 0 %}
-
- <li class="has-children {{ current_page|e }}">
- <a href="{{ p.url|e }}">
- {% if p.header.icon %}<i class="fa fa-{{ p.header.icon|e }}"></i>{% endif %}
- {{ p.menu|e }}
- </a>
- <ul>
- {{ _self.loop(p) }}
- </ul>
- </li>
- {% else %}
-
- <li class="{{ current_page|e }}">
- <a href="{{ p.url|e }}">
- {% if p.header.icon %}<i class="fa fa-{{ p.header.icon|e }}"></i>{% endif %}
- {{ p.menu|e }}
- </a>
- </li>
- {% endif %}
- {% endfor %}
-{% endmacro %}
-
-<ul>
- {% if config.theme.dropdown.enabled %}
- {{ _self.loop(pages) }}
-
- {% else %}
-
- {% for page in pages.children.visible %}
- {% set current_page = (page.active or page.activeChild) ? 'selected' : '' %}
- {% if page.menu|e != 'Home' %}
- <li class="{{ current_page|e }}">
- <a href="{{ page.url|e }}">
- {% if page.header.icon %}<i class="fa fa-{{ page.header.icon|e }}"></i>{% endif %}
- {{ page.menu|e }}
- </a>
- </li>
- {% endif %}
- {% endfor %}
- {% endif %}
- {% for mitem in site.menu %}
- <li>
- <a href="{{ mitem.url|e }}">
- {% if mitem.icon %}<i class="fa fa-{{ mitem.icon|e }}"></i>{% endif %}
- {{ mitem.text|e }}
- </a>
- </li>
- {% endfor %}
-</ul>