metager3rich.blade.php 3.32 KB
Newer Older
Phil Höfer's avatar
Phil Höfer committed
1
2
3
4
5
6
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<title>{{ $eingabe }} - MetaGer</title>
Phil Höfer's avatar
Phil Höfer committed
7
8
		<link @if(app('request')->input('theme', 'default')!=='default'&&app('request')->input('theme', 'default')!=='material')rel="alternate stylesheet" @else rel="stylesheet" @endif title="Material" href="/css/material-default.css" />
		<link @if(app('request')->input('theme', 'default')!=='material-inverse')rel="alternate stylesheet" @else rel="stylesheet" @endif  title="Material-Invers" href="/css/material-inverse.css" />
Phil Höfer's avatar
Phil Höfer committed
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
		<link href="/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
		<link href="/favicon.ico" rel="icon" type="image/x-icon" />
		<link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />
		<meta content="width=device-width, initial-scale=1.0, user-scalable=no" name="viewport" />
		<meta HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE" />
		<link rel="search" type="application/opensearchdescription+xml" title="{!! trans('resultPage.opensearch') !!}" href="{{  LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), action('StartpageController@loadPlugin', ['params' => base64_encode(serialize(Request::all()))])) }}">
	</head>
	<body>
	<header class="persistent-search">
			<form class="search-card card elevation-2">
				<a href="/" class="back">
					<img src="/img/Logo-square-inverted.svg" alt="MetaGer" title="MetaGer, die sichere Suchmaschine" />
				</a>
				<input type="text" name="eingabe" placeholder="MetaGer-Suche" value="{{ $eingabe }}" class="query-input"/>
				<button type="submit" class="search-button fa"></button>
				@foreach( $metager->request->all() as $key => $value)
					@if($key !== "eingabe" && $key !== "page" && $key !== "next")
26
						<input type="hidden" name="{{ $key }}" value="{{ $value }}"/>
Phil Höfer's avatar
Phil Höfer committed
27
28
29
30
31
32
33
34
35
36
					@endif
				@endforeach
			</form>
			</header>
			<details class="focus-card card elevation-1">
				<summary class="focus-cell"><div class="focus-cell-label"><span class="icon fa" aria-hidden="true"></span> <b>Web</b></div></summary>
			</details>
		<main class="results-container">
		@foreach($metager->getResults() as $result)
			@if($result->number % 7 === 0)
37
				@include('layouts.rich.ad', ['result' => $metager->popAd()])
Phil Höfer's avatar
Phil Höfer committed
38
			@endif
39
				@include('layouts.rich.result', ['result' => $result])
Phil Höfer's avatar
Phil Höfer committed
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
		@endforeach
		</main>
		@if($metager->getPage() === 1)
		<nav class="pagenav-first">
			<a class="pagenav-button-next card elevation-1" href="{{ $metager->nextSearchLink() }}"><span class="card-button-text">Weitersuchen</span><span class="icon-right"></span></a>
		</nav>
		@else
		<nav class="pagenav-following">
			<div>
			<a class="pagenav-button-first card-inline elevation-1" href="javascript:history.back()"></a>
			</div>
			<div class="pagenav-current"><span class="pagenav-current-annotation">Seite </span>{{ $metager->getPage() }}</div>
			<a class="pagenav-button-next card-inline elevation-1" href="{{ $metager->nextSearchLink() }}"><span class="card-button-text">Weitersuchen</span><span class="icon-right"></span></a>
		</nav>
		@endif
		<footer class="footer-text">
		<a href="https://metager.de/impressum" target="_blank">Impressum</a>
		</footer>
		<img src="{{ action('ImageController@generateImage')}}?site={{ urlencode(url()->current()) }}" class="hidden" />
	</body>
</html>