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

92
</div>