Commit fa1fea9b authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Merge branch '555-metager-maps-fokus-auf-startseite' into 'development'

Resolve "MetaGer-Maps-Fokus auf Startseite"

Closes #555

See merge request !993
parents f8797460 469151b6
...@@ -12,6 +12,12 @@ class MetaGerSearch extends Controller ...@@ -12,6 +12,12 @@ class MetaGerSearch extends Controller
public function search(Request $request, MetaGer $metager) public function search(Request $request, MetaGer $metager)
{ {
$focus = $request->input("focus", "web"); $focus = $request->input("focus", "web");
if ($focus === "maps") {
$searchinput = $request->input('eingabe', '');
return redirect()->to('https://maps.metager.de/map/' . $searchinput . '/1240908.5493525574,6638783.2192695495,6');
}
if ($focus !== "angepasst" && $this->startsWith($focus, "focus_")) { if ($focus !== "angepasst" && $this->startsWith($focus, "focus_")) {
$metager->parseFormData($request); $metager->parseFormData($request);
if ($metager->doBotProtection($request->input('bot', ""))) { if ($metager->doBotProtection($request->input('bot', ""))) {
......
...@@ -241,6 +241,13 @@ ...@@ -241,6 +241,13 @@
<span class="content">{{ trans('index.foki.produkte') }}</span> <span class="content">{{ trans('index.foki.produkte') }}</span>
</label> </label>
</div> </div>
<div class="focus">
<input id="maps" class="focus-radio hide" type="radio" name="focus" value="maps" form="searchForm" @if ($focus === 'maps') checked @endif required="">
<label id="maps-label" class="focus-label" for="maps">
<i class="fa fa-map" aria-hidden="true"></i>
<span class="content">{{ trans('index.foki.maps') }}</span>
</label>
</div>
{{-- Fix for older Versions --}} {{-- Fix for older Versions --}}
@if ($focus === 'angepasst') @if ($focus === 'angepasst')
<div class="focus"> <div class="focus">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment