result.blade.php 4.1 KB
Newer Older
1
<div class="result" data-count="{{ $result->hash }}">
2
	<div class="result-header">
3
		<div class="result-headline">
4
			<h2 class="result-title" title="{{ $result->titel }}">
5
6
7
				@if( isset($result->price) && $result->price != 0)
					<span class="result-price">{!! $result->price_text !!}</span>
				@endif
8
				<a href="{{ $result->link }}" target="{{ $metager->getNewtab() }}" rel="noopener">
9
					{!! $result->titel !!}
10
11
				</a>
			</h2>
12
			<a class="result-hoster" href="{{ $result->gefVonLink }}" target="{{ $metager->getNewtab() }}" rel="noopener">{{ trans('result.gefVon') . " " . $result->gefVon }}</a>
13
		</div>
14
		<div class="result-subheadline">
15
			<a class="result-link" href="{{ $result->link }}" target="{{ $metager->getNewtab() }}" title="{{ $result->anzeigeLink }}" rel="noopener">
16
17
18
19
20
21
22
23
				{{ $result->anzeigeLink }}
			</a>
			@if( isset($result->partnershop) && $result->partnershop === TRUE)
				<a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/partnershops") }}" target="_blank" rel="noopener">
					<span class="partnershop-info">{!! trans('result.options.4') !!}</span>
				</a>
			@endif
		</div>
24
	</div>
Karl Hasselbring's avatar
Karl Hasselbring committed
25
	<div class="result-body">
26
27
		@if( isset($result->logo) )
			<div class="result-logo">
28
				<a href="{{ $result->link }}" target="{{ $metager->getNewtab() }}" rel="noopener">
29
30
31
32
33
					<img src="{{ $metager->getImageProxyLink($result->logo) }}" alt="" />
				</a>
			</div>
		@endif
		@if( $result->image !== "" )
Karl Hasselbring's avatar
Karl Hasselbring committed
34
			<div class="result-image">
35
				<a href="{{ $result->link }}" target="{{ $metager->getNewtab() }}" rel="noopener">
36
					<img src="{{ $metager->getImageProxyLink($result->image) }}" align="left" width="120px" height="60px" alt="" />
37
				</a>
Karl Hasselbring's avatar
Karl Hasselbring committed
38
39
40
41
42
			</div>
		@endif
		@if( $metager->getFokus() == "nachrichten" )
			<div class="result-description">
				<span class="date">{{ isset($result->additionalInformation["date"])?date("Y-m-d H:i:s", $result->additionalInformation["date"]):"" }}</span> {{ $result->descr }}
43
44
			</div>
		@else
Karl Hasselbring's avatar
Karl Hasselbring committed
45
46
47
			<div class="result-description">
				{!! $result->descr !!}
			</div>
48
49
		@endif
	</div>
50
	<input type="checkbox" id="result-toggle-{{$result->hash}}" class="result-toggle" style="display: none">
51
	<div class="result-footer">
52
		<a class="result-open" href="{{ $result->link }}" target="_self" rel="noopener">
53
			{!! trans('result.options.7') !!}
54
55
		</a>
		<a class="result-open-newtab" href="{{ $result->link }}" target="_blank" rel="noopener">
56
			{!! trans('result.options.6') !!}
57
58
		</a>
		<a class="result-open-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">
59
			{!! trans('result.options.5') !!}
60
		</a>
61
		<label class="open-result-options navigation-element" for="result-toggle-{{$result->hash}}">
Dominik Hebeler's avatar
Dominik Hebeler committed
62
			{{ trans('result.options.more')}}
63
		</label>
64
		<label class="close-result-options navigation-element" for="result-toggle-{{$result->hash}}">
65
66
			{{ trans('result.options.less')}}
		</label>
67
68
69
	</div>
	<div class="result-options">
		<div class="options">
70
71
				<ul class="option-list list-unstyled small">
					<li class="js-only">
72
						<a href="javascript:resultSaver("{{ $result->hash }}");" class="saver">
73
							<nobr><i class="fa fa-floppy-o"></i> {!! trans('result.options.savetab') !!}</nobr>
Dominik Hebeler's avatar
Dominik Hebeler committed
74
						</a>
75
76
77
78
					</li>
					@if(strlen($metager->getSite()) === 0)
						<li>
							<a href="{{ $metager->generateSiteSearchLink($result->strippedHost) }}">
79
								<nobr>{!! trans('result.options.1') !!}</nobr>
80
							</a>
81
82
83
84
						</li>
					@endif
					<li>
						<a href="{{ $metager->generateRemovedHostLink($result->strippedHost) }}">
85
							<nobr>{!! trans('result.options.2', ['host' => $result->strippedHost]) !!}</nobr>
86
87
88
89
90
						</a>
					</li>
					@if( $result->strippedHost !== $result->strippedDomain )
						<li>
							<a href="{{ $metager->generateRemovedDomainLink($result->strippedDomain) }}">
91
								<nobr>{!! trans('result.options.3', ['domain' => $result->strippedDomain]) !!}</nobr>
92
93
94
95
							</a>
						</li>
					@endif
				</ul>
96
97
		</div>
	</div>
98
</div>