result.blade.php 3.78 KB
Newer Older
Dominik Hebeler's avatar
Dominik Hebeler committed
1
<div class="result row">
2
3
4
5
6
	<div class="number col-sm-1 hidden-xs" style="color:{{ $result->color }}">
		{{ $result->number }})
	</div>
	<div class="resultInformation col-xs-12 col-sm-11">
		<div class="col-xs-10 col-sm-11" style="padding:0; ">
Dominik Hebeler's avatar
Dominik Hebeler committed
7
			<p class="title">
8
				<a class="title" href="{{ $result->link }}" target="{{ $metager->getNewtab() }}" data-hoster="{{ strip_tags($result->gefVon) }}" data-count="{{ $result->number }}"  rel="noopener">
9
					{{ $result->titel }}
Dominik Hebeler's avatar
Dominik Hebeler committed
10
11
12
13
14
				</a>
			</p>
			<div class="link">
				<div>
					<div class="link-link">
15
						<a href="{{ $result->link }}" target="{{ $metager->getNewtab() }}" data-hoster="{{ strip_tags($result->gefVon) }}" data-count="{{ $result->number }}" rel="noopener">
16
							{{ $result->anzeigeLink }}
Dominik Hebeler's avatar
Dominik Hebeler committed
17
18
						</a>
					</div>
19
					<div class="options hide">
Dominik Hebeler's avatar
Dominik Hebeler committed
20
21
						<a tabindex="0" data-toggle="popover" data-trigger="focus" data-placement="auto bottom" data-container="body" data-html="true" data-title="<span class='glyphicon glyphicon-cog'></span> Optionen">
							@if(strlen($metager->getSite()) === 0)
22
								<span class="glyphicon glyphicon-triangle-bottom"></span>
23
							@endif
Dominik Hebeler's avatar
Dominik Hebeler committed
24
25
						</a>
						<div class="content hidden">
Phil Höfer's avatar
Phil Höfer committed
26
							<ul class="options-list list-unstyled small">
Dominik Hebeler's avatar
Dominik Hebeler committed
27
28
								<li>
									<a href="{{ $metager->generateSiteSearchLink($result->strippedHost) }}">
29
										{!! trans('result.options.1') !!}
Dominik Hebeler's avatar
Dominik Hebeler committed
30
31
32
33
									</a>
								</li>
								<li>
									<a href="{{ $metager->generateRemovedHostLink($result->strippedHost) }}">
34
										{!! trans('result.options.2', ['host' => $result->strippedHost]) !!}
Dominik Hebeler's avatar
Dominik Hebeler committed
35
36
37
									</a>
								</li>
								@if( $result->strippedHost !== $result->strippedDomain )
38
39
40
41
42
									<li>
										<a href="{{ $metager->generateRemovedDomainLink($result->strippedDomain) }}">
											{!! trans('result.options.3', ['domain' => $result->strippedDomain]) !!}
										</a>
									</li>
Dominik Hebeler's avatar
Dominik Hebeler committed
43
44
45
								@endif
							</ul>
						</div>
46
47
					</div>
				</div>
Dominik Hebeler's avatar
Dominik Hebeler committed
48
				<span class="hoster">
49
					von {!! $result->gefVon !!}
Dominik Hebeler's avatar
Dominik Hebeler committed
50
				</span>
51
				@if( isset($result->partnershop) && $result->partnershop === TRUE )
52
53
54
55
					<span class="partnershop-info">
					<img src="/img/boosticon.png" height="13" alt="">
					<a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/partnershops") }}" target="_blank" rel="noopener">{!! trans('result.options.4') !!}</a>
					</span>
Dominik Hebeler's avatar
Dominik Hebeler committed
56
				@endif
57
				<a class="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">
58
					<img src="/img/proxyicon.png" alt="" />
59
					{!! trans('result.options.5') !!}
Dominik Hebeler's avatar
Dominik Hebeler committed
60
				</a>
61
			</div>
62
63
		</div>
		@if( isset($result->logo) )
64
			<div class="col-xs-2 col-sm-1" style="padding: 0;">
65
				<a href="{{ $result->link }}" target="{{ $metager->getNewtab() }}" data-hoster="{{ strip_tags($result->gefVon) }}" data-count="{{ $result->number }}">
66
					<img src="{{ $metager->getImageProxyLink($result->logo) }}" alt="" />
67
68
				</a>
			</div>
69
70
		@endif
		@if( $result->image !== "" )
Dominik Hebeler's avatar
Dominik Hebeler committed
71
			<div class="description">
72
73
				<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
74
				</a>
75
				{!! $result->descr !!}
Dominik Hebeler's avatar
Dominik Hebeler committed
76
			</div>
77
		@else
78
			@if( $metager->getFokus() == "nachrichten" )
Phil Höfer's avatar
Phil Höfer committed
79
			<div class="description">{{ isset($result->additionalInformation["date"])?date("Y-m-d H:i:s", $result->additionalInformation["date"]):"" }} {{ $result->descr }}</div>
80
			@else
Dominik Hebeler's avatar
Dominik Hebeler committed
81
			<div class="description">{{ $result->descr }}</div>
82
			@endif
83
84
		@endif
	</div>
85
</div>