mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
cookies 👨🍳🍪
This commit is contained in:
parent
d5dfab6a73
commit
014652cf1c
@ -70,13 +70,15 @@
|
|||||||
@if((bool) \App\Utils\Ninja::isSelfHost())
|
@if((bool) \App\Utils\Ninja::isSelfHost())
|
||||||
{!! $client->getSetting('portal_custom_head') !!}
|
{!! $client->getSetting('portal_custom_head') !!}
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.css" />
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
@include('portal.ninja2020.components.primary-color')
|
@include('portal.ninja2020.components.primary-color')
|
||||||
|
|
||||||
<body class="antialiased">
|
<body class="antialiased">
|
||||||
@if(session()->has('message'))
|
@if(session()->has('message'))
|
||||||
<div class="bg-primary text-sm py-1 text-white text-center disposable-alert">
|
<div class="py-1 text-sm text-center text-white bg-primary disposable-alert">
|
||||||
{{ session('message') }}
|
{{ session('message') }}
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
@ -86,6 +88,31 @@
|
|||||||
@endcomponent
|
@endcomponent
|
||||||
|
|
||||||
@livewireScripts
|
@livewireScripts
|
||||||
|
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.js" data-cfasync="false"></script>
|
||||||
|
<script>
|
||||||
|
window.addEventListener("load", function(){
|
||||||
|
if (! window.cookieconsent) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
window.cookieconsent.initialise({
|
||||||
|
"palette": {
|
||||||
|
"popup": {
|
||||||
|
"background": "#000"
|
||||||
|
},
|
||||||
|
"button": {
|
||||||
|
"background": "#f1d600"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"content": {
|
||||||
|
"href": "https://www.invoiceninja.com/privacy-policy/",
|
||||||
|
"message": "This website uses cookies to ensure you get the best experience on our website.",
|
||||||
|
"dismiss": "Got it!",
|
||||||
|
"link": "Learn more",
|
||||||
|
}
|
||||||
|
})}
|
||||||
|
);
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
|
@ -59,10 +59,36 @@
|
|||||||
{{-- Feel free to push anything to header using @push('header') --}}
|
{{-- Feel free to push anything to header using @push('header') --}}
|
||||||
@stack('head')
|
@stack('head')
|
||||||
|
|
||||||
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.css" />
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="antialiased {{ $custom_body_class ?? '' }}">
|
<body class="antialiased {{ $custom_body_class ?? '' }}">
|
||||||
@yield('body')
|
@yield('body')
|
||||||
|
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.js" data-cfasync="false"></script>
|
||||||
|
<script>
|
||||||
|
window.addEventListener("load", function(){
|
||||||
|
if (! window.cookieconsent) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
window.cookieconsent.initialise({
|
||||||
|
"palette": {
|
||||||
|
"popup": {
|
||||||
|
"background": "#000"
|
||||||
|
},
|
||||||
|
"button": {
|
||||||
|
"background": "#f1d600"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"content": {
|
||||||
|
"href": "https://www.invoiceninja.com/privacy-policy/",
|
||||||
|
"message": "This website uses cookies to ensure you get the best experience on our website.",
|
||||||
|
"dismiss": "Got it!",
|
||||||
|
"link": "Learn more",
|
||||||
|
}
|
||||||
|
})}
|
||||||
|
);
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user