mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-15 07:33:04 +01:00
136 lines
5.3 KiB
PHP
136 lines
5.3 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
|
|
|
<head>
|
|
<!-- Error: {{ session('error') }} -->
|
|
@if (isset($company) && $company->matomo_url && $company->matomo_id)
|
|
<script>
|
|
var _paq = window._paq = window._paq || [];
|
|
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
|
_paq.push(['trackPageView']);
|
|
_paq.push(['enableLinkTracking']);
|
|
(function() {
|
|
var u="{{ $company->matomo_url }}";
|
|
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
|
_paq.push(['setSiteId', '{{ $company->matomo_id }}']);
|
|
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
|
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
|
|
})();
|
|
</script>
|
|
<noscript><p><img src="{{ $company->matomo_url }}/matomo.php?idsite={{ $company->matomo_id }}&rec=1" style="border:0;" alt="" /></p></noscript>
|
|
@elseif (config('services.analytics.tracking_id'))
|
|
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-122229484-1"></script>
|
|
<script>
|
|
window.dataLayer = window.dataLayer || [];
|
|
|
|
function gtag() {
|
|
dataLayer.push(arguments);
|
|
}
|
|
|
|
gtag('js', new Date());
|
|
gtag('config', '{{ config('services.analytics.tracking_id') }}', {'anonymize_ip': true});
|
|
|
|
function trackEvent(category, action) {
|
|
ga('send', 'event', category, action, this.src);
|
|
}
|
|
</script>
|
|
@else
|
|
<script>
|
|
function gtag() {
|
|
}
|
|
</script>
|
|
@endif
|
|
|
|
<!-- Title -->
|
|
<title>@yield('meta_title', '') — {{ config('app.name') }}</title>
|
|
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="description" content="@yield('meta_description')"/>
|
|
|
|
<!-- CSRF Token -->
|
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
|
|
|
<!-- Scripts -->
|
|
@if(strpos(Request::url(),'setup') === false)
|
|
@vite('resources/js/app.js')
|
|
@else
|
|
<script src="{{ str_replace("setup", "", Request::url())}}js/app.js" defer></script>
|
|
@endif
|
|
|
|
<!-- Fonts -->
|
|
{{-- <link rel="dns-prefetch" href="https://fonts.gstatic.com"> --}}
|
|
{{-- <link href="https://fonts.googleapis.com/css?family=Open+Sans&display=swap" rel="stylesheet" type="text/css" defer> --}}
|
|
<style>
|
|
@font-face {
|
|
font-family: 'Open Sans';
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
font-stretch: 100%;
|
|
font-display: swap;
|
|
src: url( {{asset('css/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsjZ0B4gaVI.woff2')}}) format('woff2');
|
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
}
|
|
</style>
|
|
|
|
<!-- Styles -->
|
|
@if(strpos(Request::url(),'setup') === false)
|
|
@vite('resources/sass/app.scss')
|
|
@else
|
|
<link href="{{ str_replace("setup", "", Request::url())}}css/app.css" rel="stylesheet">
|
|
@endif
|
|
|
|
<link rel="canonical" href="{{ config('ninja.app_url') }}/{{ request()->path() }}"/>
|
|
|
|
{{-- Feel free to push anything to header using @push('header') --}}
|
|
@stack('head')
|
|
|
|
@if(strpos(Request::url(),'setup'))
|
|
<meta name="setup-db-check" content="{{ str_replace("setup", "", Request::url())}}setup/check_db">
|
|
@endif
|
|
|
|
<link rel="stylesheet" type="text/css" href="{{ asset('vendor/cookieconsent@3/cookieconsent.min.css') }}" />
|
|
</head>
|
|
|
|
<body class="antialiased {{ $custom_body_class ?? '' }}">
|
|
@if(session()->has('message'))
|
|
<div class="py-1 text-sm text-center text-white bg-primary disposable-alert">
|
|
{{ session('message') }}
|
|
</div>
|
|
@endif
|
|
|
|
@yield('body')
|
|
|
|
<script src="{{ asset('vendor/cookieconsent@3/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": "{{ config('ninja.privacy_policy_url.hosted') }}",
|
|
"message": "{{ ctrans('texts.cookie_message')}}",
|
|
"dismiss": "{{ ctrans('texts.got_it')}}",
|
|
"link": "{{ ctrans('texts.learn_more')}}",
|
|
}
|
|
})}
|
|
);
|
|
</script>
|
|
</body>
|
|
|
|
<footer>
|
|
@yield('footer')
|
|
@stack('footer')
|
|
</footer>
|
|
|
|
</html>
|