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
d17fa88d
Commit
d17fa88d
authored
Jun 13, 2017
by
Phil Höfer
Browse files
Fix: Werbefreie Suche
parent
52da2217
Changes
3
Hide whitespace changes
Inline
Side-by-side
app/MetaGer.php
View file @
d17fa88d
...
...
@@ -108,6 +108,7 @@ class MetaGer
->
with
(
'mobile'
,
$this
->
mobile
)
->
with
(
'warnings'
,
$this
->
warnings
)
->
with
(
'errors'
,
$this
->
errors
)
->
with
(
'apiAuthorized'
,
$this
->
apiAuthorized
)
->
with
(
'metager'
,
$this
)
->
with
(
'browser'
,
(
new
Agent
())
->
browser
());
default
:
...
...
@@ -117,6 +118,7 @@ class MetaGer
->
with
(
'mobile'
,
$this
->
mobile
)
->
with
(
'warnings'
,
$this
->
warnings
)
->
with
(
'errors'
,
$this
->
errors
)
->
with
(
'apiAuthorized'
,
$this
->
apiAuthorized
)
->
with
(
'metager'
,
$this
)
->
with
(
'browser'
,
(
new
Agent
())
->
browser
());
}
...
...
@@ -129,6 +131,7 @@ class MetaGer
->
with
(
'mobile'
,
$this
->
mobile
)
->
with
(
'warnings'
,
$this
->
warnings
)
->
with
(
'errors'
,
$this
->
errors
)
->
with
(
'apiAuthorized'
,
$this
->
apiAuthorized
)
->
with
(
'metager'
,
$this
)
->
with
(
'browser'
,
(
new
Agent
())
->
browser
());
break
;
...
...
@@ -139,6 +142,7 @@ class MetaGer
->
with
(
'mobile'
,
$this
->
mobile
)
->
with
(
'warnings'
,
$this
->
warnings
)
->
with
(
'errors'
,
$this
->
errors
)
->
with
(
'apiAuthorized'
,
$this
->
apiAuthorized
)
->
with
(
'metager'
,
$this
)
->
with
(
'suspendheader'
,
"yes"
)
->
with
(
'browser'
,
(
new
Agent
())
->
browser
());
...
...
@@ -172,6 +176,7 @@ class MetaGer
->
with
(
'mobile'
,
$this
->
mobile
)
->
with
(
'warnings'
,
$this
->
warnings
)
->
with
(
'errors'
,
$this
->
errors
)
->
with
(
'apiAuthorized'
,
$this
->
apiAuthorized
)
->
with
(
'metager'
,
$this
)
->
with
(
'browser'
,
(
new
Agent
())
->
browser
());
break
;
...
...
resources/views/layouts/ad.blade.php
View file @
d17fa88d
@
if
(
isset
(
$ad
)
&&
!
$metager
->
apiAuthorized
)
@
if
(
isset
(
$ad
)
&&
!
apiAuthorized
)
<
div
class
=
"result ad row"
>
<
div
class
=
"number col-sm-1"
></
div
>
<
div
class
=
"resultInformation col-sm-10"
>
...
...
resources/views/layouts/rich/ad.blade.php
View file @
d17fa88d
@
if
(
isset
(
$result
)
&&
!
$
metager
->
apiAuthorized
)
@
if
(
isset
(
$result
)
&&
!
$apiAuthorized
)
<
article
class
=
"search-result ad card elevation-1"
>
<
div
class
=
"result-content"
>
<
h1
class
=
"result-title"
>
{{
$result
->
titel
}}
</
h1
>
...
...
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