templates/public-navbar.twig line 1
{% set route_name = app.request.attributes.get('_route') %}{% if app.request.attributes.get('_route_params').slug is defined %}{% set route_slug = app.request.attributes.get('_route_params').slug %}{% else %}{% set route_slug = '' %}{% endif %}<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"><symbol id="check2" viewBox="0 0 16 16"><path d="M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z"/></symbol><symbol id="circle-half" viewBox="0 0 16 16"><path d="M8 15A7 7 0 1 0 8 1v14zm0 1A8 8 0 1 1 8 0a8 8 0 0 1 0 16z"/></symbol><symbol id="moon-stars-fill" viewBox="0 0 16 16"><path d="M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278z"/><path d="M10.794 3.148a.217.217 0 0 1 .412 0l.387 1.162c.173.518.579.924 1.097 1.097l1.162.387a.217.217 0 0 1 0 .412l-1.162.387a1.734 1.734 0 0 0-1.097 1.097l-.387 1.162a.217.217 0 0 1-.412 0l-.387-1.162A1.734 1.734 0 0 0 9.31 6.593l-1.162-.387a.217.217 0 0 1 0-.412l1.162-.387a1.734 1.734 0 0 0 1.097-1.097l.387-1.162zM13.863.099a.145.145 0 0 1 .274 0l.258.774c.115.346.386.617.732.732l.774.258a.145.145 0 0 1 0 .274l-.774.258a1.156 1.156 0 0 0-.732.732l-.258.774a.145.145 0 0 1-.274 0l-.258-.774a1.156 1.156 0 0 0-.732-.732l-.774-.258a.145.145 0 0 1 0-.274l.774-.258c.346-.115.617-.386.732-.732L13.863.1z"/></symbol><symbol id="sun-fill" viewBox="0 0 16 16"><path d="M8 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0zm0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13zm8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5zM3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8zm10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0zm-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707zM4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708z"/></symbol><symbol id="lightbulb-fill" fill="currentColor" viewBox="0 0 16 16"><path d="M2 6a6 6 0 1 1 10.174 4.31c-.203.196-.359.4-.453.619l-.762 1.769A.5.5 0 0 1 10.5 13h-5a.5.5 0 0 1-.46-.302l-.761-1.77a1.964 1.964 0 0 0-.453-.618A5.984 5.984 0 0 1 2 6zm3 8.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1l-.224.447a1 1 0 0 1-.894.553H6.618a1 1 0 0 1-.894-.553L5.5 15a.5.5 0 0 1-.5-.5z"/></symbol><symbol id="paint-bucket" fill="currentColor" viewBox="0 0 16 16"><path d="M6.192 2.78c-.458-.677-.927-1.248-1.35-1.643a2.972 2.972 0 0 0-.71-.515c-.217-.104-.56-.205-.882-.02-.367.213-.427.63-.43.896-.003.304.064.664.173 1.044.196.687.556 1.528 1.035 2.402L.752 8.22c-.277.277-.269.656-.218.918.055.283.187.593.36.903.348.627.92 1.361 1.626 2.068.707.707 1.441 1.278 2.068 1.626.31.173.62.305.903.36.262.05.64.059.918-.218l5.615-5.615c.118.257.092.512.05.939-.03.292-.068.665-.073 1.176v.123h.003a1 1 0 0 0 1.993 0H14v-.057a1.01 1.01 0 0 0-.004-.117c-.055-1.25-.7-2.738-1.86-3.494a4.322 4.322 0 0 0-.211-.434c-.349-.626-.92-1.36-1.627-2.067-.707-.707-1.441-1.279-2.068-1.627-.31-.172-.62-.304-.903-.36-.262-.05-.64-.058-.918.219l-.217.216zM4.16 1.867c.381.356.844.922 1.311 1.632l-.704.705c-.382-.727-.66-1.402-.813-1.938a3.283 3.283 0 0 1-.131-.673c.091.061.204.15.337.274zm.394 3.965c.54.852 1.107 1.567 1.607 2.033a.5.5 0 1 0 .682-.732c-.453-.422-1.017-1.136-1.564-2.027l1.088-1.088c.054.12.115.243.183.365.349.627.92 1.361 1.627 2.068.706.707 1.44 1.278 2.068 1.626.122.068.244.13.365.183l-4.861 4.862a.571.571 0 0 1-.068-.01c-.137-.027-.342-.104-.608-.252-.524-.292-1.186-.8-1.846-1.46-.66-.66-1.168-1.32-1.46-1.846-.147-.265-.225-.47-.251-.607a.573.573 0 0 1-.01-.068l3.048-3.047zm2.87-1.935a2.44 2.44 0 0 1-.241-.561c.135.033.324.11.562.241.524.292 1.186.8 1.846 1.46.45.45.83.901 1.118 1.31a3.497 3.497 0 0 0-1.066.091 11.27 11.27 0 0 1-.76-.694c-.66-.66-1.167-1.322-1.458-1.847z"/></symbol></svg><nav id="nav-main-public-menu" class="navbar navbar-expand-lg bg-body-tertiary py-3 fixed-top"><div class="container"><a class="navbar-brand" href="{{ path('app_main') }}">{{ 'site_title'|site_settings }}</a><button class="navbar-toggler" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasNavbar"aria-controls="offcanvasNavbar"><span class="navbar-toggler-icon"></span></button><div class="offcanvas offcanvas-end" tabindex="-1" id="offcanvasNavbar" aria-labelledby="offcanvasNavbarLabel"><div class="offcanvas-header"><h5 class="offcanvas-title" id="offcanvasNavbarLabel">Offcanvas</h5><button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button></div><div class="offcanvas-body"><ul class="navbar-nav justify-content-start flex-grow-1 ps-3">{# <li class="nav-item"><a class="nav-link {% if route_name == 'app_main' %}active{% endif %}" aria-current="page"href="{{ path('app_main') }}">Home</a></li><li class="nav-item py-2 py-lg-1 col-12 col-lg-auto"><div class="vr d-none d-lg-flex h-100 mx-lg-2 "></div><hr class="d-lg-none my-2 text-white-50"></li><li class="nav-item"><a class="nav-link {% if route_slug == 'datenschutz' %}active{% endif %}"href="{{ path('site_slug', {'slug': 'datenschutz' }) }}">Datenschutz</a></li><li class="nav-item"><a class="nav-link {% if route_slug == 'impressum' %}active{% endif %}"href="{{ path('site_slug', {'slug': 'impressum' }) }}">Impressum</a></li><li class="nav-item"><a class="nav-link {% if route_slug == 'agb' %}active{% endif %}"href="{{ path('site_slug', {'slug': 'agb' }) }}">AGB</a></li>#}{# <li class="nav-item"><a class="nav-link {% if route_name == 'app_impressum' %}active{% endif %}" href="{{ path('app_impressum') }}">Impressum</a></li><li class="nav-item"><a class="nav-link {% if route_name == 'app_datenschutz' %}active{% endif %}" href="{{ path('app_datenschutz') }}">Datenschutz</a></li><li class="nav-item"><a class="nav-link {% if route_name == 'app_agb' %}active{% endif %}" href="{{ path('app_agb') }}">AGB</a></li> #}{% if is_granted('IS_AUTHENTICATED_FULLY') %}<li class="nav-item py-2 py-lg-1 col-12 col-lg-auto"><div class="vr d-none d-lg-flex h-100 mx-lg-2 "></div><hr class="d-lg-none my-2 text-white-50"></li><li class="nav-item"><a class="nav-link text-green" href="{{ path('dashboard_app_dashboard') }}">Dashboard</a></li>{% endif %}<li class="nav-item dropdown ms-lg-auto"><a class="nav-link dropdown-toggle {% if route_name matches '{.+?_account}' %}active{% endif %}"href="#" role="button" data-bs-toggle="dropdown"aria-expanded="false">Account</a><ul class="dropdown-menu dropdown-menu-start dropdown-menu-lg-end m-0">{% if is_granted('IS_AUTHENTICATED_FULLY') %}<li><a class="dropdown-item"href="{{ path('app_logout') }}">{% trans %}Logout{% endtrans %}</a></li>{% else %}<li><a class="dropdown-item {% if route_name == 'app_login' %}active{% endif %}"href="{{ path('app_login') }}"><i class="bi bi-box-arrow-in-right me-2"></i> {% trans %}Login{% endtrans %}</a></li>{% if 'registrierung_aktiv'|site_settings %}<li><a class="dropdown-item {% if route_name == 'app_register_account_register' %}active{% endif %}"href="{{ path('app_register_account_register') }}"><i class="bi bi-person-add me-2"></i> {% trans %}registrierung.Register{% endtrans %}</a></li>{% endif %}{% if 'show_pw_vergessen'|site_settings %}<li><hr class="dropdown-divider"></li><li><a class="dropdown-item {% if route_name == 'app_register_passwort_vergessen' %}active{% endif %}"href="{{ path('app_register_passwort_vergessen') }}"><i class="bi bi-incognito me-2"></i>{% trans %}Password forgotten{% endtrans %}</a></li>{% endif %}{% endif %}</ul></li>{# <li class="nav-item "><a class="nav-link d-flex align-items-center" href="{{ path('app_login') }}"><i class="bi bi-box-arrow-in-right me-2"></i>Login</a></li> #}{# <li class="nav-item py-2 py-lg-1 col-12 col-lg-auto"><div class="vr d-none d-lg-flex h-100 mx-lg-2 "></div><hr class="d-lg-none my-2 text-white-50"></li> #}<li class="nav-item dropdown "><a id="dropDownDark" class="nav-link dropdown-toggle" href="#" role="button"data-bs-toggle="dropdown"aria-expanded="false"><svg width="16" height="16" class="bi my-1 theme-icon-active" fill="currentColor"><use href="#circle-half" fill="currentColor"></use></svg></a><ul class="dropdown-menu dropdown-menu-start dropdown-menu-lg-end m-0"><li><button type="button" class="dropdown-item color-mode d-flex align-items-center"data-bs-theme-value="auto"><svg width="16" height="16" class="bi me-2 opacity-50 theme-icon"fill="currentColor"><use href="#circle-half"></use></svg>Auto<svg width="16" height="16" fill="currentColor" class="bi ms-auto d-none"><use href="#check2"></use></svg></button></li><li><button type="button" class="dropdown-item color-mode d-flex align-items-center"data-bs-theme-value="light"><svg width="16" height="16" class="bi me-2 opacity-50 theme-icon"fill="currentColor"><use href="#sun-fill"></use></svg>Light<svg width="16" height="16" fill="currentColor" class="bi ms-auto d-none"><use href="#check2"></use></svg></button></li><li><button type="button" class="dropdown-item color-mode d-flex align-items-center"data-bs-theme-value="dark"><svg width="16" height="16" class="bi me-2 opacity-50 theme-icon"fill="currentColor"><use href="#moon-stars-fill"></use></svg>Dark<svg width="16" height="16" fill="currentColor" class="bi ms-auto d-none"><use href="#check2"></use></svg></button></li><li><button type="button" class="dropdown-item color-mode d-flex align-items-center"data-bs-theme-value="blue"><svg width="16" height="16" class="bi me-2 opacity-50 theme-icon"fill="currentColor"><use href="#lightbulb-fill"></use></svg><span>Blue</span><svg width="16" height="16" fill="currentColor" class="bi ms-auto d-none"><use href="#check2"></use></svg></button></li><li><button type="button" class="dropdown-item color-mode d-flex align-items-center"data-bs-theme-value="green"><svg width="16" height="16" class="bi me-2 opacity-50 theme-icon"fill="currentColor"><use href="#paint-bucket"></use></svg><span>Green</span><svg width="16" height="16" fill="currentColor" class="bi ms-auto d-none"><use href="#check2"></use></svg></button></li></ul></li></ul></div></div></div></nav>