Merge pull request #4299 from beganovich/v5-cp-custom-includes

(v5) Custom client portal inclusions
This commit is contained in:
David Bomba 2020-11-13 07:18:24 +11:00 committed by GitHub
commit 91a565a733
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,16 +56,20 @@
<link rel="canonical" href="{{ config('ninja.site_url') }}/{{ request()->path() }}"/>
<style>
{!! $client->getSetting('portal_custom_css') !!}
</style>
@if((bool) Ninja::isSelfHost())
<style>
{!! $client->getSetting('portal_custom_css') !!}
</style>
@endif
@livewireStyles
{{-- Feel free to push anything to header using @push('header') --}}
@stack('head')
{!! $client->getSetting('portal_custom_head') !!}
@if((bool) Ninja::isSelfHost())
{!! $client->getSetting('portal_custom_head') !!}
@endif
</head>
@include('portal.ninja2020.components.primary-color')
@ -88,11 +92,14 @@
@yield('footer')
@stack('footer')
{!! $client->getSetting('portal_custom_footer') !!}
@if((bool) Ninja::isSelfHost())
{!! $client->getSetting('portal_custom_footer') !!}
@endif
</footer>
<script>
{!! $client->getSetting('portal_custom_js') !!}
</script>
@if((bool) Ninja::isSelfHost())
<script>
{!! $client->getSetting('portal_custom_js') !!}
</script>
@endif
</html>