result.blade.php 3.82 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<div class="result" data-count="{{ $result->number }}">
	<h2 class="result-title">
		<a href="{{ $result->link }}" target="{{ $metager->getNewtab() }}" data-hoster="{{ strip_tags($result->gefVon) }}" data-count="{{ $result->number }}"  rel="noopener">
			{!! $result->titel !!}
		</a>
	</h2>
	<div class="result-header">
		<div class="result-link">
			<a href="{{ $result->link }}" target="{{ $metager->getNewtab() }}" data-hoster="{{ strip_tags($result->gefVon) }}" data-count="{{ $result->number }}" rel="noopener">
				{{ $result->anzeigeLink }}
			</a>
		</div>
		<div class="result-options">
			<a class="dropdown-opener" href="javascript:void(0);">
				<i class="fa fa-caret-down option-opener-icon" aria-hidden="true"></i>
			</a>
			<div class="dropdown-content option-content">
				<ul class="option-list list-unstyled small">
					<li class="option-title">
						<i class="fa fa-cog"></i> {!! trans('result.options.headline') !!}
					</li>
					<hr>
					<li class="js-only">
						<a href="javascript:resultSaver({{ $result->number }});" class="saver" data-counter="{{ $result->number }}">
							<i class="fa fa-floppy-disk"></i> {!! trans('result.options.savetab') !!}
Dominik Hebeler's avatar
Dominik Hebeler committed
26
						</a>
27
28
29
30
31
					</li>
					@if(strlen($metager->getSite()) === 0)
						<li>
							<a href="{{ $metager->generateSiteSearchLink($result->strippedHost) }}">
								{!! trans('result.options.1') !!}
32
							</a>
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
						</li>
					@endif
					<li>
						<a href="{{ $metager->generateRemovedHostLink($result->strippedHost) }}">
							{!! trans('result.options.2', ['host' => $result->strippedHost]) !!}
						</a>
					</li>
					@if( $result->strippedHost !== $result->strippedDomain )
						<li>
							<a href="{{ $metager->generateRemovedDomainLink($result->strippedDomain) }}">
								{!! trans('result.options.3', ['domain' => $result->strippedDomain]) !!}
							</a>
						</li>
					@endif
				</ul>
48
			</div>
49
		</div>
50
51
52
53
54
		<span class="result-hoster">
			<span>von {!! $result->gefVon !!}</span>
		</span>
		@if( isset($result->partnershop) && $result->partnershop === TRUE )
			<span class="partnershop-info">
55
56
				<img src="/img/boosticon.png" height="13" alt="">
				<a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/partnershops") }}" target="_blank" rel="noopener">{!! trans('result.options.4') !!}</a>
57
58
59
60
61
62
63
			</span>
		@endif
		<a class="result-proxy" onmouseover="$(this).popover('show');" onmouseout="$(this).popover('hide');" data-toggle="popover" data-placement="auto right" data-container="body" data-content="@lang('result.proxytext')" href="{{ $result->proxyLink }}" target="{{ $metager->getNewtab() }}" rel="noopener">
			<img src="/img/proxyicon.png" alt="" />
			<span>{!! trans('result.options.5') !!}</span>
		</a>
	</div>
64
	<div class="result-body">
65
		@if( isset($result->logo) )
66
			<div class="result-logo">
67
				<a href="{{ $result->link }}" target="{{ $metager->getNewtab() }}" data-hoster="{{ strip_tags($result->gefVon) }}" data-count="{{ $result->number }}">
68
					<img src="{{ $metager->getImageProxyLink($result->logo) }}" alt="" />
69
70
				</a>
			</div>
71
72
		@endif
		@if( $result->image !== "" )
73
			<div class="result-image result-description">
74
75
				<a href="{{ $result->link }}" target="{{ $metager->getNewtab() }}" data-hoster="{{ strip_tags($result->gefVon) }}" data-count="{{ $result->number }}"  rel="noopener">
					<img src="{{ $metager->getImageProxyLink($result->image) }}" align="left" width="120px" height="60px" alt="" />
Dominik Hebeler's avatar
Dominik Hebeler committed
76
				</a>
77
				{!! $result->descr !!}
Dominik Hebeler's avatar
Dominik Hebeler committed
78
			</div>
79
		@else
80
			@if( $metager->getFokus() == "nachrichten" )
81
82
83
				<div class="result-description">
					<span class="date">{{ isset($result->additionalInformation["date"])?date("Y-m-d H:i:s", $result->additionalInformation["date"]):"" }}</span> {{ $result->descr }}
				</div>
84
			@else
85
86
87
				<div class="result-description">
					{{ $result->descr }}
				</div>
88
			@endif
89
90
		@endif
	</div>
91
</div>