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
c526621c
Commit
c526621c
authored
Aug 01, 2017
by
Karl Hasselbring
Browse files
Maps als Fokus leitet jetzt auf die entsprechende maps.metager suche
parent
4b63c5c8
Changes
2
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/MetaGerSearch.php
View file @
c526621c
...
...
@@ -12,6 +12,12 @@ class MetaGerSearch extends Controller
public
function
search
(
Request
$request
,
MetaGer
$metager
)
{
$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_"
))
{
$metager
->
parseFormData
(
$request
);
if
(
$metager
->
doBotProtection
(
$request
->
input
(
'bot'
,
""
)))
{
...
...
resources/views/index.blade.php
View file @
c526621c
...
...
@@ -241,9 +241,6 @@
<
span
class
=
"content"
>
{{
trans
(
'index.foki.produkte'
)
}}
</
span
>
</
label
>
</
div
>
https
://
maps
.
metager
.
de
/
map
/
hannover
/
1240908.5493525574
,
6638783.2192695495
,
6
<
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"
>
...
...
@@ -251,7 +248,6 @@
<
span
class
=
"content"
>
{{
trans
(
'index.foki.maps'
)
}}
</
span
>
</
label
>
</
div
>
{{
--
Fix
for
older
Versions
--
}}
@
if
(
$focus
===
'angepasst'
)
<
div
class
=
"focus"
>
...
...
Write
Preview
Markdown
is supported
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