mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
d5a3bdb7aa
- Moved "common" template partials, that are only used in layouts, to layouts/parts folder. - Simplified HTML structure of header template. - Extracted logo and links from header template to simplify. - Added header-links-start template for easier extension/customization without needing to override full list of links. - Added test to cover usage of this. For #4564
26 lines
919 B
PHP
26 lines
919 B
PHP
<header id="header" component="header-mobile-toggle" class="primary-background px-xl grid">
|
|
<div>
|
|
@include('layouts.parts.header-logo')
|
|
<button type="button"
|
|
refs="header-mobile-toggle@toggle"
|
|
title="{{ trans('common.header_menu_expand') }}"
|
|
aria-expanded="false"
|
|
class="mobile-menu-toggle hide-over-l">@icon('more')</button>
|
|
</div>
|
|
|
|
<div class="flex-container-column items-center justify-center hide-under-l">
|
|
@if(user()->hasAppAccess())
|
|
@include('layouts.parts.header-search')
|
|
@endif
|
|
</div>
|
|
|
|
<nav refs="header-mobile-toggle@menu" class="header-links">
|
|
<div class="links text-center">
|
|
@include('layouts.parts.header-links')
|
|
</div>
|
|
@if(!user()->isGuest())
|
|
@include('layouts.parts.header-user-menu', ['user' => user()])
|
|
@endif
|
|
</nav>
|
|
</header>
|