Navbar: add subblocks

This commit is contained in:
Benjamin Renard 2023-03-05 13:41:55 +01:00
parent b1c8185eab
commit 18eb258849
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC

View file

@ -34,9 +34,11 @@
<header class="p-3 mb-3 border-bottom">
<div class="container">
<div class="d-flex flex-wrap align-items-center justify-content-center justify-content-lg-start">
{block name="navbar-brand"}
<a href="/" class="d-flex align-items-center mb-2 mb-lg-0 text-dark text-decoration-none">
<img id="logo" src="{static_url path="images/logo.svg"}" alt="Logo" title="Logo"/>
</a>
{/block}
<ul class="pr-2 nav col-12 col-lg-auto me-lg-auto mb-2 justify-content-center mb-md-0">
{block name="navbar-menu"}
@ -45,6 +47,7 @@
{block name="navbar-extra-content"}{/block}
{block name="navbar-user"}
{if isset($auth_user) && $auth_user}
<div class="dropdown text-end">
<a href="#" class="d-block link-dark text-decoration-none dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
@ -61,6 +64,7 @@
</ul>
</div>
{/if}
{/block}
</div>
</div>
</header>