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() }}"/>
@if((bool) Ninja::isSelfHost())
<style> <style>
{!! $client->getSetting('portal_custom_css') !!} {!! $client->getSetting('portal_custom_css') !!}
</style> </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')
@if((bool) Ninja::isSelfHost())
{!! $client->getSetting('portal_custom_head') !!} {!! $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')
@if((bool) Ninja::isSelfHost())
{!! $client->getSetting('portal_custom_footer') !!} {!! $client->getSetting('portal_custom_footer') !!}
@endif
</footer> </footer>
@if((bool) Ninja::isSelfHost())
<script> <script>
{!! $client->getSetting('portal_custom_js') !!} {!! $client->getSetting('portal_custom_js') !!}
</script> </script>
@endif
</html> </html>