Client Portal Custom Inclusions

This commit is contained in:
Benjamin Beganović 2020-11-12 12:29:16 +01:00
parent 0be452e144
commit 8324724df0

View File

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