{% set navmobilepages = build_main_nav(document).pages|filter(page => page.visible) %}{% set topbarpages = build_property_nav(document, 'navigationTopbar').pages|filter(page => page.visible) %}{% set userpages = build_property_nav(document, 'navigationUser').pages|filter(page => page.visible) %}<div class="flex flex-col content-between h-full max-h-[100vh]"><div class="flex flex-col flex-1 w-full overflow-y-scroll"> {# Header Menue #} {% if localized_links(document, app.request.locale)|length > 1 or app.user %} <div class="flex items-center justify-between p-10 pb-0 lg:hidden"> {# LOGO #} <div class="flex items-center justify-around "> {% include 'layout/navigation/language.html.twig' %} </div> <div class="flex items-center space-x-4"> {# Mobile Menu Button #} <div class="w-16 h-16 pt-1"> {% if app.user %} <a class="flex justify-end gap-4 my-2 mb-3 text-xl text-black uppercase" href="{{ pimcore_url({ object: app.user }) }}"> {% include 'component/avatar.html.twig' with { avatar: app.user.avatar, initials: app.user.name|initials, size: 'tiny' } only %} </a> {% endif %} </div> </div> </div>{% endif %} {# Menu Mobile #} <div class="flex flex-col px-10 "> {# Navigation #} <ul class="flex flex-col flex-1 py-6 "> {% for page in navmobilepages %} <li class="p-2 text-lg text-white border-b border-neutral-800"> <a class="{{ page.active ? 'font-medium' : '' }}" href="{{ page.href }}" target="{{ page.target }}"> {{ page.label|capitalize }} </a> </li> {% endfor %} {# Topbar Nav Elements #} {% for page in topbarpages %} <li class="p-2 text-lg text-white border-b border-neutral-800"> <a class="{{ page.active ? 'font-medium' : '' }}" href="{{ page.href }}" target="{{ page.target }}"> {{ page.label|capitalize }} </a> </li> {% endfor %} {% for page in userpages %} <li class="p-2 text-lg text-white border-b border-neutral-800"> <a class="{{ page.active ? 'font-medium' : '' }}" href="{{ page.href }}" target="{{ page.target }}"> {{ page.label|capitalize }} </a> </li> {% endfor %} </ul> </div></div> {% if app.user %} <div class="px-8 py-3 bg-primary"> {# <a class="flex gap-4 my-2 mb-3 text-xl text-black uppercase" href="{{ pimcore_url({ object: app.user }) }}"> {% include 'component/avatar.html.twig' with { avatar: app.user.avatar, initials: app.user.name|initials, size: 'tiny' } only %} {{ app.user.name }} </a> #} <ul class="flex justify-between gap-8 mx-auto text-xl text-black "> {# <li> <a href="{{ path('profile_messages_index') }}"> {{ 'navigation.messages'|trans }} </a> </li> #} <li> <a class="font-headline text-xs gap-2 grid justify-center items-center justify-items-center {{ app.request.get('_route') == 'network_activity' ? 'font-medium' : '' }}" href="{{ path('network_activity') }}"> <div>{% include "icons/network.svg.twig" with {class: 'w-6 h-6 mt-2'} %}</div> <div>{{ 'navigation.my-network'|trans }}</div> </a> </li> {# <li> <a href="{{ pimcore_url({ object: app.user }) }}"> {{ 'navigation.my-profile'|trans }} </a> </li> #} <li> <a class=" text-xs gap-2 grid justify-center items-center justify-items-center {{ app.request.get('_route') == 'profile_admin_index' ? 'font-medium' : '' }}" href="{{ path('profile_admin_index') }}"> <div>{% include "icons/edit.svg.twig" with {class: 'w-6 h-6 mt-2'} %}</div> <div>{{ 'navigation.manage-profile'|trans }}</div> </a> </li> <li> <a class="font-headline text-xs gap-2 grid justify-center items-center justify-items-center {{ app.request.get('_route') == 'auth_logout' ? 'font-medium' : '' }}" href="{{ path('auth_logout') }}"> <div>{% include "icons/logout.svg.twig" with {class: 'w-6 h-6 mt-2'} %}</div> <div>{{ 'navigation.logout'|trans }}</div> </a> </li> </ul> </div> {% else %} {# <ul class="pb-6 my-5 mb-6 text-white border-b-2 border-white"> <li> <a class="flex gap-4 my-2 mb-6 text-xl text-black uppercase btn btn-sm btn-white place-items-center" href="{{ path('auth_login') }}"> {% include 'icons/myprofile.svg.twig' with { class: 'h-6 w-6 text-primary -mt-1' } %} {{ 'navigation.login'|trans }} </a> </li> <li> <a class="font-headline mx-auto text-xl {{ app.request.get('_route') == 'auth_register' ? 'font-medium' : '' }}" href="{{ path('auth_register') }}"> {{ 'navigation.register'|trans }} </a> </li> </ul> #} <div class="flex-none px-16 py-3 bg-primary"> {# <a class="flex gap-4 my-2 mb-3 text-xl text-black uppercase" href="{{ pimcore_url({ object: app.user }) }}"> {% include 'component/avatar.html.twig' with { avatar: app.user.avatar, initials: app.user.name|initials, size: 'tiny' } only %} {{ app.user.name }} </a> #} <ul class="flex justify-center gap-8 mx-auto text-xl text-black"> <li> <a class="grid items-center justify-center gap-2 text-xs justify-items-center" href="{{ path('auth_login') }}"> {% include 'icons/user.svg.twig' with { class: 'h-6 w-6 text-black -mt-1' } %} {{ 'navigation.login'|trans }} </a> </li> <li> <a class="grid items-center justify-center gap-2 text-xs justify-items-center{{ app.request.get('_route') == 'auth_register' ? 'font-medium' : '' }}" href="{{ path('auth_register') }}"> {% include 'icons/arrow-right.svg.twig' with { class: 'h-6 w-6 text-black -mt-1' } %} {{ 'navigation.register'|trans }} </a> </li> </ul> </div> {% endif %} <div class="h-16"> </div></div>