Skip to content
Snippets Groups Projects
Commit b9298318 authored by Phil Höfer's avatar Phil Höfer
Browse files

Apply Newtab Setting

parent 35ae0b5f
No related branches found
No related tags found
3 merge requests!1895Development,!1747Development,!1742Resolve "Opening in New Tab"
...@@ -1146,7 +1146,7 @@ class MetaGer ...@@ -1146,7 +1146,7 @@ class MetaGer
$this->newtab = "_self"; $this->newtab = "_self";
} }
if ($request->filled("key") && $request->input('key') === getenv("mainz_key")) { if ($request->filled("key") && $request->input('key') === getenv("mainz_key")) {
$this->newtab = "_blank"; $this->newtab = "_top";
} }
# Theme # Theme
$this->theme = preg_replace("/[^[:alnum:][:space:]]/u", '', $request->input('theme', 'default')); $this->theme = preg_replace("/[^[:alnum:][:space:]]/u", '', $request->input('theme', 'default'));
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
@if( isset($result->price) && $result->price != 0) @if( isset($result->price) && $result->price != 0)
<span class="result-price">{!! $result->price_text !!}</span> <span class="result-price">{!! $result->price_text !!}</span>
@endif @endif
<a href="{{ $result->link }}" @if($metager->isFramed())target="_top"@endif rel="noopener"> <a href="{{ $result->link }}" target="{{ $metager->newtab }}" rel="noopener">
{!! $result->titel !!} {!! $result->titel !!}
</a> </a>
</h2> </h2>
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
@endif @endif
</div> </div>
<div class="result-subheadline"> <div class="result-subheadline">
<a class="result-link" href="{{ $result->link }}" title="{{ $result->anzeigeLink }}" rel="noopener" @if($metager->isFramed())target="_top"@endif tabindex="-1"> <a class="result-link" href="{{ $result->link }}" title="{{ $result->anzeigeLink }}" rel="noopener" target="{{ $metager->newtab }}" tabindex="-1">
{{ $result->anzeigeLink }} {{ $result->anzeigeLink }}
</a> </a>
@if( isset($result->partnershop) && $result->partnershop === TRUE) @if( isset($result->partnershop) && $result->partnershop === TRUE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment