Merge pull request #4723 from beganovich/v5-1901-cp-messages

(v5) Client portal: Set a background & center a header message
This commit is contained in:
Benjamin Beganović 2021-01-20 09:54:29 +01:00 committed by GitHub
commit 52d4911042
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,8 +72,10 @@
{{-- Feel free to push anything to header using @push('header') --}} {{-- Feel free to push anything to header using @push('header') --}}
@stack('head') @stack('head')
@if((bool) \App\Utils\Ninja::isSelfHost()) @if((bool) \App\Utils\Ninja::isSelfHost() && !empty($client->getSetting('portal_custom_head')))
{!! $client->getSetting('portal_custom_head') !!} <div class="py-1 text-sm text-center text-white bg-primary">
{!! $client->getSetting('portal_custom_head') !!}
</div>
@endif @endif
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.css" /> <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.css" />
@ -125,7 +127,9 @@
@stack('footer') @stack('footer')
@if((bool) \App\Utils\Ninja::isSelfHost()) @if((bool) \App\Utils\Ninja::isSelfHost())
{!! $client->getSetting('portal_custom_footer') !!} <div class="py-1 text-sm text-center text-white bg-primary">
{!! $client->getSetting('portal_custom_footer') !!}
</div>
@endif @endif
</footer> </footer>