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
91d0ac0a
Commit
91d0ac0a
authored
Nov 29, 2016
by
Dominik Hebeler
Browse files
Die Setting für die Maps wird nun auch korrekt von der Startseite zur Ergebnisseite übertragen.
Karten werden für die Uni Mainz nicht mehr angezeigt
parent
c62c8727
Changes
3
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/StartpageController.php
View file @
91d0ac0a
...
...
@@ -28,7 +28,7 @@ class StartpageController extends Controller
$focusPages
=
[];
$theme
=
"default"
;
foreach
(
$request
->
all
()
as
$key
=>
$value
)
{
if
(
$value
===
'on'
&&
$key
!=
'param_sprueche'
&&
$key
!=
'param_tab'
)
{
if
(
$value
===
'on'
&&
$key
!=
'param_sprueche'
&&
$key
!=
'param_tab'
&&
$key
!==
'param_maps'
)
{
$focusPages
[]
=
str_replace
(
'param_'
,
''
,
$key
);
}
if
(
$key
===
'param_theme'
)
{
...
...
@@ -36,6 +36,8 @@ class StartpageController extends Controller
}
}
$maps
=
$request
->
input
(
'param_maps'
,
'on'
);
$agent
=
new
Agent
();
$browser
=
$agent
->
browser
();
...
...
@@ -51,7 +53,8 @@ class StartpageController extends Controller
->
with
(
'focusPages'
,
$focusPages
)
->
with
(
'browser'
,
$browser
)
->
with
(
'navbarFocus'
,
'suche'
)
->
with
(
'theme'
,
$theme
);
->
with
(
'theme'
,
$theme
)
->
with
(
'maps'
,
$maps
);
}
public
function
loadPage
(
$subpage
)
...
...
app/MetaGer.php
View file @
91d0ac0a
...
...
@@ -245,6 +245,7 @@ class MetaGer
$this
->
ads
=
[];
$this
->
products
=
[];
$this
->
validated
=
true
;
$this
->
maps
=
false
;
}
}
...
...
resources/views/index.blade.php
View file @
91d0ac0a
...
...
@@ -188,6 +188,7 @@
<
input
type
=
"hidden"
name
=
"time"
value
=
{{
$time
}}
>
<
input
type
=
"hidden"
name
=
"sprueche"
value
=
{{
$sprueche
}}
>
<
input
type
=
"hidden"
name
=
"tab"
value
=
{{
$tab
}}
>
<
input
type
=
"hidden"
name
=
"maps"
value
=
{{
$maps
}}
>
@
foreach
(
$focusPages
as
$fp
)
<
input
type
=
"hidden"
name
=
{{
$fp
}}
value
=
"on"
>
@
endforeach
...
...
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