Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
b9298318
Commit
b9298318
authored
Nov 06, 2020
by
Phil Höfer
Browse files
Apply Newtab Setting
parent
35ae0b5f
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/MetaGer.php
View file @
b9298318
...
...
@@ -1146,7 +1146,7 @@ class MetaGer
$this
->
newtab
=
"_self"
;
}
if
(
$request
->
filled
(
"key"
)
&&
$request
->
input
(
'key'
)
===
getenv
(
"mainz_key"
))
{
$this
->
newtab
=
"_
blank
"
;
$this
->
newtab
=
"_
top
"
;
}
# Theme
$this
->
theme
=
preg_replace
(
"/[^[:alnum:][:space:]]/u"
,
''
,
$request
->
input
(
'theme'
,
'default'
));
...
...
resources/views/layouts/result.blade.php
View file @
b9298318
...
...
@@ -5,7 +5,7 @@
@if( isset($result->price)
&&
$result->price != 0)
<span
class=
"result-price"
>
{!! $result->price_text !!}
</span>
@endif
<a
href=
"{{ $result->link }}"
@
if
($
metager-
>
isFramed())target="_top"@endif
rel="noopener">
<a
href=
"{{ $result->link }}"
target=
"{{ $metager->newtab }}"
rel=
"noopener"
>
{!! $result->titel !!}
</a>
</h2>
...
...
@@ -16,7 +16,7 @@
@endif
</div>
<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 }}
</a>
@if( isset($result->partnershop)
&&
$result->partnershop === TRUE)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment