Browse Source
Merge pull request #172 from CHBMB/master
Add StartPage support
pull/177/head
1.4.10
KodeStar
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
5 additions and
0 deletions
-
app/Setting.php
-
database/seeds/SettingsSeeder.php
-
resources/lang/en/app.php
|
|
@ -202,6 +202,9 @@ class Setting extends Model |
|
|
|
$url = 'https://www.bing.com/search'; |
|
|
|
$var = 'q'; |
|
|
|
break; |
|
|
|
case 'startpage': |
|
|
|
$url = 'https://www.startpage.com/'; |
|
|
|
$var = 'q'; |
|
|
|
} |
|
|
|
$output .= '<div class="searchform">'; |
|
|
|
$output .= Form::open(['url' => $url, 'method' => 'get']); |
|
|
|
|
|
@ -91,6 +91,7 @@ class SettingsSeeder extends Seeder |
|
|
|
'google' => 'app.options.google', |
|
|
|
'ddg' => 'app.options.ddg', |
|
|
|
'bing' => 'app.options.bing' |
|
|
|
'startpage' => 'app.options.startpage' |
|
|
|
]); |
|
|
|
|
|
|
|
if(!$setting = Setting::find(4)) { |
|
|
|
|
|
@ -33,6 +33,7 @@ return [ |
|
|
|
'options.google' => 'Google', |
|
|
|
'options.ddg' => 'DuckDuckGo', |
|
|
|
'options.bing' => 'Bing', |
|
|
|
'options.startpage' => 'StartPage', |
|
|
|
'options.yes' => 'Yes', |
|
|
|
'options.no' => 'No', |
|
|
|
|
|
|
|