Merge pull request #172 from CHBMB/master

Add StartPage support
This commit is contained in:
KodeStar 2018-04-25 22:46:50 +01:00 committed by GitHub
commit 28501944c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 0 deletions

View file

@ -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']);

View file

@ -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)) {

View file

@ -33,6 +33,7 @@ return [
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.startpage' => 'StartPage',
'options.yes' => 'Yes',
'options.no' => 'No',