diff --git a/app/Http/Controllers/StartpageController.php b/app/Http/Controllers/StartpageController.php index c85cb7baa4dc3e0690290d3ca930f4f3f29777af..3d019ab6cb8bc0e8913f536cbf42f5bb96ff1715 100644 --- a/app/Http/Controllers/StartpageController.php +++ b/app/Http/Controllers/StartpageController.php @@ -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) diff --git a/app/MetaGer.php b/app/MetaGer.php index 31ff71d1de4b81275dd1bb00db100b817c06db0c..1afb4ed05bb43d017cc336346ff17bd7836f9884 100644 --- a/app/MetaGer.php +++ b/app/MetaGer.php @@ -245,6 +245,7 @@ class MetaGer $this->ads = []; $this->products = []; $this->validated = true; + $this->maps = false; } } diff --git a/resources/views/index.blade.php b/resources/views/index.blade.php index 8249a5f3dd0ac7e2c5ba1ffbb6dcd0008be4bead..988376a2926c6bb5cf84520ec1b98d60086bd000 100644 --- a/resources/views/index.blade.php +++ b/resources/views/index.blade.php @@ -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