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="bi-flower2" fill="currentColor" viewBox="0 0 16 16"><path d="M8 16a4 4 0 0 0 4-4 4 4 0 0 0 0-8 4 4 0 0 0-8 0 4 4 0 1 0 0 8 4 4 0 0 0 4 4zm3-12c0 .073-.01.155-.03.247-.544.241-1.091.638-1.598 1.084A2.987 2.987 0 0 0 8 5c-.494 0-.96.12-1.372.331-.507-.446-1.054-.843-1.597-1.084A1.117 1.117 0 0 1 5 4a3 3 0 0 1 6 0zm-.812 6.052A2.99 2.99 0 0 0 11 8a2.99 2.99 0 0 0-.812-2.052c.215-.18.432-.346.647-.487C11.34 5.131 11.732 5 12 5a3 3 0 1 1 0 6c-.268 0-.66-.13-1.165-.461a6.833 6.833 0 0 1-.647-.487zm-3.56.617a3.001 3.001 0 0 0 2.744 0c.507.446 1.054.842 1.598 1.084.02.091.03.174.03.247a3 3 0 1 1-6 0c0-.073.01-.155.03-.247.544-.242 1.091-.638 1.598-1.084zm-.816-4.721A2.99 2.99 0 0 0 5 8c0 .794.308 1.516.812 2.052a6.83 6.83 0 0 1-.647.487C4.66 10.869 4.268 11 4 11a3 3 0 0 1 0-6c.268 0 .66.13 1.165.461.215.141.432.306.647.487zM8 9a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"/></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="lucky"><svg width="16" height="16" class="bi me-2 opacity-50 theme-icon"fill="currentColor"><use href="#bi-flower2"></use></svg><span>Lucky</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>