Navbar: add subblocks
This commit is contained in:
parent
b1c8185eab
commit
275f2b6c18
1 changed files with 9 additions and 1 deletions
|
@ -34,9 +34,11 @@
|
||||||
<header class="p-3 mb-3 border-bottom">
|
<header class="p-3 mb-3 border-bottom">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="d-flex flex-wrap align-items-center justify-content-center justify-content-lg-start">
|
<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">
|
<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"/>
|
<img id="logo" src="{static_url path="images/logo.svg"}" alt="Logo" title="Logo"/>
|
||||||
</a>
|
</a>
|
||||||
|
{/block}
|
||||||
|
|
||||||
<ul class="pr-2 nav col-12 col-lg-auto me-lg-auto mb-2 justify-content-center mb-md-0">
|
<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"}
|
{block name="navbar-menu"}
|
||||||
|
@ -45,22 +47,28 @@
|
||||||
|
|
||||||
{block name="navbar-extra-content"}{/block}
|
{block name="navbar-extra-content"}{/block}
|
||||||
|
|
||||||
|
{block name="navbar-user"}
|
||||||
{if isset($auth_user) && $auth_user}
|
{if isset($auth_user) && $auth_user}
|
||||||
<div class="dropdown text-end">
|
<div class="dropdown text-end">
|
||||||
|
{block name="navbar-user-name"}
|
||||||
<a href="#" class="d-block link-dark text-decoration-none dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
|
<a href="#" class="d-block link-dark text-decoration-none dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
|
||||||
<i class="fa fa-user-circle" aria-hidden="true"></i>
|
<i class="fa fa-user-circle" aria-hidden="true"></i>
|
||||||
{$auth_user->name|escape:"htmlall"}
|
{$auth_user->name|escape:"htmlall"}
|
||||||
</a>
|
</a>
|
||||||
|
{/block}
|
||||||
|
{block name="navbar-user-menu"}
|
||||||
<ul class="dropdown-menu text-small">
|
<ul class="dropdown-menu text-small">
|
||||||
{block name="navbar-user-menu"}{/block}
|
{block name="navbar-user-menu-content"}{/block}
|
||||||
<li>
|
<li>
|
||||||
<a class="dropdown-item" href="logout">
|
<a class="dropdown-item" href="logout">
|
||||||
<i class="fas fa-sign-out-alt"></i> {t domain=$CORE_TEXT_DOMAIN}Sign out{/t}
|
<i class="fas fa-sign-out-alt"></i> {t domain=$CORE_TEXT_DOMAIN}Sign out{/t}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
{/block}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
{/block}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
Loading…
Reference in a new issue