kreuzberg-theme/content/header.blade.php

119 lines
4.4 KiB
PHP
Raw Permalink Normal View History

2020-09-24 10:04:46 +00:00
<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no">
<meta name="csrf-token" content="{{ csrf_token() }}" />
<link rel="stylesheet" href="{{asset('template/css/app.css')}}">
@yield('stylesheet')
@if(isset($title))
<title>{{$title}}</title>
@else
2022-12-13 14:21:10 +00:00
<title>{{config('settings.name')}}</title>
2020-09-24 10:04:46 +00:00
@endif
@if(isset($description))
<meta name="description" content="{{$description}}">
@else
<meta name="description" content="">
@endif
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#603cba">
<meta name="theme-color" content="#6c23d7">
@if (\Route::currentRouteName() == 'nachrichten.get')
<meta name="description" content="{{ strip_tags(\Str::limit($nach->nachrichten, 285, ' ...')) }}">
<meta property="article:published_time" content="{{ $nach->created_at->format('c') }}">
<meta property="og:title" content="{{ $nach->title }}" />
<meta property="og:description" content="{{ strip_tags(\Str::limit($nach->nachrichten, 285, ' ...')) }}" />
<meta property="og:url" content="{{ \Request::url() }}" />
<meta property="og:type" content="article" />
2022-12-13 14:21:10 +00:00
<meta property="og:site_name" content="{{ isset($title) ? $title : config('settings.name') }}" />
2020-09-24 10:04:46 +00:00
@if ($nach->image)
<meta property="og:image" content="{{ asset('uploads/' . $nach->image) }}" />
<meta property="twitter:image" content="{{ asset('uploads/' . $nach->image) }}" />
@else
@if ($nach->category->image)
<meta property="og:image" content="{{ asset('uploads/categories/' . $nach->category->image) }}" />
<meta property="twitter:image" content="{{ asset('uploads/categories/' . $nach->category->image) }}" />
@else
2022-12-13 14:21:10 +00:00
<meta property="og:image" content="{{ config('settings.image') }}" />
<meta property="twitter:image" content="{{ config('settings.image') }}" />
2020-09-24 10:04:46 +00:00
@endif
@endif
@endif
2022-12-13 14:21:10 +00:00
@switch(config('settings.css'))
2020-09-24 10:04:46 +00:00
@case(1)
<!-- Default -->
@break
@case(2)
<!-- Blue -->
@break
@case(3)
<!-- Green -->
@break
@case(4)
<!-- Dark -->
@break
@endswitch
@if(App::environment('production'))
2022-12-13 14:21:10 +00:00
@if (!empty(config('settings.facebook')))
2020-09-24 10:04:46 +00:00
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
2022-12-13 14:21:10 +00:00
fbq('init', "{{config('settings.facebook')}}");
2020-09-24 10:04:46 +00:00
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
2022-12-13 14:21:10 +00:00
src="https://www.facebook.com/tr?id={{config('settings.facebook')}}&ev=PageView&noscript=1"
2020-09-24 10:04:46 +00:00
/></noscript>
@endif
2022-12-13 14:21:10 +00:00
@if (!empty(config('settings.analytics')))
2020-09-24 10:04:46 +00:00
2022-12-13 14:21:10 +00:00
<script async src="https://www.googletagmanager.com/gtag/js?id={{config('settings.analytics')}}"></script>
2020-09-24 10:04:46 +00:00
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
2022-12-13 14:21:10 +00:00
gtag('config', "{{config('settings.analytics')}}");
2020-09-24 10:04:46 +00:00
</script>
@endif
@endif
<link href="{{asset('template/css/toastr.min.css')}}" rel="stylesheet"/>
2022-12-13 14:21:10 +00:00
@if (!empty(config('settings.favicon_image')))
<link rel="apple-touch-icon" sizes="180x180" href="{{ asset('uploads/' . config('settings.favicon_image')) }}">
<link rel="icon" type="image/png" sizes="32x32" href="{{ asset('uploads/' . config('settings.favicon_image')) }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ asset('uploads/' . config('settings.favicon_image')) }}">
2020-09-24 10:04:46 +00:00
@endif
@yield('styles')
</head>
<body>