result.blade.php 4.15 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
<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>
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
		@if( isset($result->partnershop) && $result->partnershop === TRUE )
			<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>
		@endif
	</div>
	<div class="result-body">
		@if( isset($result->logo) )
			<div class="result-logo">
				<a href="{{ $result->link }}" target="{{ $metager->getNewtab() }}" data-hoster="{{ strip_tags($result->gefVon) }}" data-count="{{ $result->number }}">
					<img src="{{ $metager->getImageProxyLink($result->logo) }}" alt="" />
				</a>
			</div>
		@endif
		@if( $result->image !== "" )
			<div class="result-image result-description">
				<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="" />
				</a>
				{!! $result->descr !!}
			</div>
		@else
			@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 }}
				</div>
			@else
				<div class="result-description">
					{{ $result->descr }}
				</div>
			@endif
		@endif
	</div>
	<div class="result-footer">
		<div class="result-open">
			<a href="{{ $result->link }}" target="_self" data-hoster="{{ strip_tags($result->gefVon) }}" rel="noopener">
				<span>ÖFFNEN</span>
			</a>
		</div>
		<div class="result-open-newtab">
			<a href="{{ $result->link }}" target="_blank" data-hoster="{{ strip_tags($result->gefVon) }}" rel="noopener">
				<span>IN NEUEM TAB</span>
			</a>
		</div>
		<div class="result-open-proxy">
			<a 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>ANONYM ÖFFNEN</span>
			</a>
		</div>
64 65
		<div class="result-options">
			<a class="dropdown-opener" href="javascript:void(0);">
66
				<i class="fa fa-chevron-down option-opener-icon" aria-hidden="true"></i>
67 68 69 70 71 72 73 74 75
			</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 }}">
76
							<i class="fa fa-floppy-o"></i> {!! trans('result.options.savetab') !!}
Dominik Hebeler's avatar
Dominik Hebeler committed
77
						</a>
78 79 80 81 82
					</li>
					@if(strlen($metager->getSite()) === 0)
						<li>
							<a href="{{ $metager->generateSiteSearchLink($result->strippedHost) }}">
								{!! trans('result.options.1') !!}
83
							</a>
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
						</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>
99
			</div>
100 101
		</div>
	</div>
102
</div>