mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-03 14:23:42 +08: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
8 lines
374 B
PHP
8 lines
374 B
PHP
<a href="{{ url('/') }}" data-shortcut="home_view" class="logo">
|
|
@if(setting('app-logo', '') !== 'none')
|
|
<img class="logo-image" src="{{ setting('app-logo', '') === '' ? url('/logo.png') : url(setting('app-logo', '')) }}" alt="Logo">
|
|
@endif
|
|
@if (setting('app-name-header'))
|
|
<span class="logo-text">{{ setting('app-name') }}</span>
|
|
@endif
|
|
</a> |