staticPages.blade.php 3.08 KB
Newer Older
1
<!DOCTYPE html>
Phil Höfer's avatar
Phil Höfer committed
2
<html lang="{!! trans('staticPages.meta.language') !!}">
3 4
	<head>
		<meta charset="utf-8" />
5
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
Phil Höfer's avatar
Phil Höfer committed
6
		<title>@yield('title')</title>
7 8
		<meta name="description" content="{!! trans('staticPages.meta.Description') !!}" />
		<meta name="keywords" content="{!! trans('staticPages.meta.Keywords') !!}" />
9 10 11 12 13 14 15
		<meta name="page-topic" content="Dienstleistung" />
		<meta name="robots" content="index,follow" />
		<meta name="revisit-after" content="7 days" />
		<meta name="audience" content="all" />
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
		<meta rel="icon" type="image/x-icon" href="/favicon.ico" />
		<meta rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
16
		<link rel="search" type="application/opensearchdescription+xml" title="{{ trans('staticPages.opensearch') }}" href="{{  LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), action('StartpageController@loadPlugin', ['params' => base64_encode(serialize(Request::all()))])) }}">
17
		<link type="text/css" rel="stylesheet" href="/font-awesome/css/font-awesome.min.css" />
18
		<link type="text/css" rel="stylesheet" href="/fonts/liberation-fonts/liberation-fonts.css" />
Dominik Hebeler's avatar
Dominik Hebeler committed
19 20
		<link type="text/css" rel="stylesheet" href="{{ mix('css/themes/default.css') }}" />
		<link type="text/css" rel="stylesheet" href="{{ mix('css/utility.css') }}" />
Dominik Hebeler's avatar
Dominik Hebeler committed
21
		<link id="theme" type="text/css" rel="stylesheet" href="/css/theme.css.php" />
Dominik Hebeler's avatar
Dominik Hebeler committed
22 23
		<script src="{{ mix('js/lib.js') }}"></script>
		<script src="{{ mix('js/utility.js') }}"></script>
24
		@if (isset($css))
25 26 27 28 29 30 31
			@if(is_array($css))
				@foreach($css as $el)
					<link href="/css/{{ $el }}" rel="stylesheet" />
				@endforeach
			@else
				<link href="/css/{{ $css }}" rel="stylesheet" />
			@endif
32
		@endif
33 34
	</head>
	<body>
35 36 37 38 39 40
		@if(Request::getHttpHost() === "metager3.de")
		<div class="alert alert-info" style="text-align: center;">
		Sie befinden sich auf einer MetaGer Testversion. Hier werden Features vor der Veröffentlichung getestet. Unter Umständen funktioniert hier nicht alles wie gewohnt.
		Unsere stabile Version finden Sie <a href="https://metager.de" target="_self">hier</a>.
		</div>
		@endif
41
		<header>
42
			@yield('homeIcon')
43
		</header>
44
		@include('parts.sidebar', ['id' => 'staticPagesSideBar'])
45
		<div class="wrapper">
46
			<main class="mg-panel">
47 48 49
				@if (isset($success))
					<div class="alert alert-success" role="alert">{{ $success }}</div>
				@endif
50 51 52 53 54 55
				@if (isset($info))
					<div class="alert alert-info" role="alert">{{ $info }}</div>
				@endif
				@if (isset($warning))
					<div class="alert alert-warning" role="alert">{{ $warning }}</div>
				@endif
56 57 58 59 60 61
				@if (isset($error))
					<div class="alert alert-danger" role="alert">{{ $error }}</div>
				@endif
				@yield('content')
			</main>
			@yield('optionalContent')
62
		</div>
63
		@if (isset($page) && $page === 'startpage')
64
			@include('parts.footer', ['type' => 'startpage', 'id' => 'startPageFooter'])
65
		@else
66
			@include('parts.footer', ['type' => 'subpage', 'id' => 'subPageFooter'])
67
		@endif
68
	</body>
69
</html>