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
7 lines
331 B
PHP
7 lines
331 B
PHP
@if(count(setting('app-footer-links', [])) > 0)
|
|
<footer>
|
|
@foreach(setting('app-footer-links', []) as $link)
|
|
<a href="{{ $link['url'] }}" target="_blank" rel="noopener">{{ strpos($link['label'], 'trans::') === 0 ? trans(str_replace('trans::', '', $link['label'])) : $link['label'] }}</a>
|
|
@endforeach
|
|
</footer>
|
|
@endif |