result.blade.php 4.04 KB
Newer Older
1
<div class="result row" data-count="{{ $result->number }}">
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">
20
						<a tabindex="0" data-toggle="popover" data-trigger="focus" data-placement="auto bottom" data-container="body" data-html="true" data-title="<i class='fa fa-cog' aria-hidden='true'></i> Optionen">
Dominik Hebeler's avatar
Dominik Hebeler committed
21
							@if(strlen($metager->getSite()) === 0)
22
								<i class="fa fa-caret-down" aria-hidden="true"></i>
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">
27 28
								<li>
									<a href="javascript:resultSaver({{ $result->number }});" class="saver" data-counter="{{ $result->number }}">
29
										<i class="glyphicon glyphicon-floppy-disk"></i> Ergebnis in Tab speichern.
30 31
									</a>
								</li>
Dominik Hebeler's avatar
Dominik Hebeler committed
32 33
								<li>
									<a href="{{ $metager->generateSiteSearchLink($result->strippedHost) }}">
34
										{!! trans('result.options.1') !!}
Dominik Hebeler's avatar
Dominik Hebeler committed
35 36 37 38
									</a>
								</li>
								<li>
									<a href="{{ $metager->generateRemovedHostLink($result->strippedHost) }}">
39
										{!! trans('result.options.2', ['host' => $result->strippedHost]) !!}
Dominik Hebeler's avatar
Dominik Hebeler committed
40 41 42
									</a>
								</li>
								@if( $result->strippedHost !== $result->strippedDomain )
43 44 45 46 47
									<li>
										<a href="{{ $metager->generateRemovedDomainLink($result->strippedDomain) }}">
											{!! trans('result.options.3', ['domain' => $result->strippedDomain]) !!}
										</a>
									</li>
Dominik Hebeler's avatar
Dominik Hebeler committed
48 49 50
								@endif
							</ul>
						</div>
51 52
					</div>
				</div>
Dominik Hebeler's avatar
Dominik Hebeler committed
53
				<span class="hoster">
54
					von {!! $result->gefVon !!}
Dominik Hebeler's avatar
Dominik Hebeler committed
55
				</span>
56
				@if( isset($result->partnershop) && $result->partnershop === TRUE )
57 58 59 60
					<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
61
				@endif
62
				<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">
63
					<img src="/img/proxyicon.png" alt="" />
64
					{!! trans('result.options.5') !!}
Dominik Hebeler's avatar
Dominik Hebeler committed
65
				</a>
66
			</div>
67 68
		</div>
		@if( isset($result->logo) )
69
			<div class="col-xs-2 col-sm-1" style="padding: 0;">
70
				<a href="{{ $result->link }}" target="{{ $metager->getNewtab() }}" data-hoster="{{ strip_tags($result->gefVon) }}" data-count="{{ $result->number }}">
71
					<img src="{{ $metager->getImageProxyLink($result->logo) }}" alt="" />
72 73
				</a>
			</div>
74 75
		@endif
		@if( $result->image !== "" )
Dominik Hebeler's avatar
Dominik Hebeler committed
76
			<div class="description">
77 78
				<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
79
				</a>
80
				{!! $result->descr !!}
Dominik Hebeler's avatar
Dominik Hebeler committed
81
			</div>
82
		@else
83
			@if( $metager->getFokus() == "nachrichten" )
Phil Höfer's avatar
Phil Höfer committed
84
			<div class="description">{{ isset($result->additionalInformation["date"])?date("Y-m-d H:i:s", $result->additionalInformation["date"]):"" }} {{ $result->descr }}</div>
85
			@else
Dominik Hebeler's avatar
Dominik Hebeler committed
86
			<div class="description">{{ $result->descr }}</div>
87
			@endif
88 89
		@endif
	</div>
90

91
</div>