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
48f9c9e1
Commit
48f9c9e1
authored
Jun 20, 2017
by
Karl Hasselbring
Browse files
Added Key input field for ad-free search
parent
0e0589c3
Changes
5
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/StartpageController.php
View file @
48f9c9e1
...
...
@@ -51,7 +51,8 @@ class StartpageController extends Controller
->
with
(
'time'
,
$request
->
input
(
'param_time'
,
'1500'
))
->
with
(
'sprueche'
,
$request
->
input
(
'param_sprueche'
,
'on'
))
->
with
(
'newtab'
,
$request
->
input
(
'param_newtab'
,
'on'
))
->
with
(
'maps'
,
$maps
=
$request
->
input
(
'param_maps'
,
'off'
));
->
with
(
'maps'
,
$maps
=
$request
->
input
(
'param_maps'
,
'off'
))
->
with
(
'key'
,
$request
->
input
(
'param_key'
,
''
));
}
public
function
loadPage
(
$subpage
)
...
...
public/js/settings.js
View file @
48f9c9e1
...
...
@@ -5,10 +5,13 @@ $(document).ready(function () {
$
(
'
#save
'
).
removeClass
(
'
hidden
'
);
$
(
'
#save
'
).
click
(
function
()
{
localStorage
.
setItem
(
'
pers
'
,
true
);
$
(
'
input[type=checkbox]:checked, input[type=hidden]
'
).
each
(
function
(
el
)
{
$
(
'
input[type=checkbox]:checked, input[type=hidden]
'
).
each
(
function
()
{
localStorage
.
setItem
(
$
(
this
).
attr
(
'
name
'
),
$
(
this
).
val
());
});
$
(
'
select
'
).
each
(
function
(
el
)
{
$
(
'
select
'
).
each
(
function
()
{
localStorage
.
setItem
(
$
(
this
).
attr
(
'
name
'
),
$
(
this
).
val
());
});
$
(
'
input[type=text]
'
).
each
(
function
()
{
localStorage
.
setItem
(
$
(
this
).
attr
(
'
name
'
),
$
(
this
).
val
());
});
document
.
location
.
href
=
$
(
'
#save
'
).
attr
(
'
data-href
'
);
...
...
resources/lang/de/settings.php
View file @
48f9c9e1
...
...
@@ -36,10 +36,13 @@ return [
'request'
=>
'Abfragemethode'
,
'autocomplete
'
=>
'Auto-Vervollständigung (Sucheingabe)'
,
'autocomplete
.label'
=>
'Auto-Vervollständigung (Sucheingabe)'
,
'autocomplete.on'
=>
'ein'
,
'autocomplete.off'
=>
'aus'
,
'key.label'
=>
'Schlüssel für Werbefreie Suche'
,
'key.placeholder'
=>
'Schlüssel eingeben'
,
"foki.web"
=>
"Web"
,
"foki.andere"
=>
"Andere"
,
"foki.produktsuche"
=>
"Produktsuche"
,
...
...
resources/views/index.blade.php
View file @
48f9c9e1
...
...
@@ -291,6 +291,7 @@
<
input
type
=
"hidden"
name
=
"sprueche"
value
=
{{
$sprueche
}}
>
<
input
type
=
"hidden"
name
=
"newtab"
value
=
{{
$newtab
}}
>
<
input
type
=
"hidden"
name
=
"maps"
value
=
{{
$maps
}}
>
<
input
type
=
"hidden"
name
=
"key"
value
=
{{
$key
}}
>
@
foreach
(
$focusPages
as
$fp
)
<
input
type
=
"hidden"
name
=
{{
$fp
}}
value
=
"on"
>
@
endforeach
...
...
resources/views/settings.blade.php
View file @
48f9c9e1
...
...
@@ -46,12 +46,16 @@
</
select
>
</
div
>
<
div
class
=
"col-sm-6 col-md-4 col-lg-3"
>
<
label
class
=
"select-label"
>@
lang
(
'settings.autocomplete'
)
:</
label
>
<
label
class
=
"select-label"
>@
lang
(
'settings.autocomplete
.label
'
)
:</
label
>
<
select
class
=
"form-control settings-form-control"
name
=
"param_autocomplete"
>
<
option
value
=
"on"
selected
>@
lang
(
'settings.autocomplete.on'
)
</
option
>
<
option
value
=
"off"
>@
lang
(
'settings.autocomplete.off'
)
</
option
>
</
select
>
</
div
>
<
div
class
=
"col-sm-6 col-md-4 col-lg-3"
>
<
label
class
=
"select-label"
>@
lang
(
'settings.key.label'
)
:</
label
>
<
input
type
=
"text"
class
=
"form-control settings-form-control"
name
=
"param_key"
placeholder
=
"@lang('settings.key.placeholder')"
>
</
div
>
</
div
>
</
container
>
<
div
id
=
"settingsButtons"
>
...
...
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