add header & footer

This commit is contained in:
2025-07-17 09:34:11 +00:00
parent 21988a9666
commit cf288d8ad4
6 changed files with 160 additions and 11 deletions

View File

@ -1,12 +1,26 @@
{% if menu %}
<ul>
{% for item in items %}
<li class="{{ item.classes|join(' ') }}">
<a target="{{ item.target }}" href="{{ item.link }}">{{ item.title }}</a>
{% include 'partials/menu.twig' with {
items: item.children
} %}
</li>
{% endfor %}
</ul>
<ul class="navbar-nav container">
{% for item in items %}
{% if (item.children) %}
<li class="nav-item dropdown effect-nav">
{#<a class="nav-link dropdown-toggle" href="{{ item.link }}" role="button" data-bs-toggle="dropdown" aria-expanded="false">#}
<a class="nav-link dropdown-toggle" href="{{ item.link }}" role="button" aria-expanded="false">
{{item.title}}</a>
<ul class="dropdown-menu">
{% for subitem in item.children %}
<li><a class="dropdown-item" href="{{ subitem.link }}">{{subitem.title}}</a></li>
{% endfor %}
</ul>
</li>
{% else %}
<li class="{{item.classes | join(' ')}} nav-item effect-nav">
<a class="nav-link" href="{{ item.link }}">
{{ item.title }}
</a>
{% include 'partials/menu.twig' with {items: item.children} %}
</li>
{% endif %}
{% endfor %}
</ul>
{% endif %}