FEATURE: move recaptcha config into core application
This commit is contained in:
@@ -122,6 +122,7 @@ class AppServiceProvider extends ServiceProvider
|
|||||||
$registrator->register('basic', 'admin/settings.basic', 'admin.settings.parts.basic');
|
$registrator->register('basic', 'admin/settings.basic', 'admin.settings.parts.basic');
|
||||||
$registrator->register('meta', 'admin/settings.meta', 'admin.settings.parts.meta');
|
$registrator->register('meta', 'admin/settings.meta', 'admin.settings.parts.meta');
|
||||||
$registrator->register('social', 'admin/settings.socialSites', 'admin.settings.parts.social');
|
$registrator->register('social', 'admin/settings.socialSites', 'admin.settings.parts.social');
|
||||||
|
$registrator->register('recaptcha', 'admin/settings.recaptcha', 'admin.settings.parts.recaptcha');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -28,8 +28,6 @@ class ContactFormServiceProvider extends ModuleServiceProvider
|
|||||||
*/
|
*/
|
||||||
public function register()
|
public function register()
|
||||||
{
|
{
|
||||||
$registrator = $this->app->make('registerSettingsExtension');
|
|
||||||
$registrator->register('contactForm', 'contactform::module.name', 'contactform::admin.settings.form');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function registerWidgets()
|
private function registerWidgets()
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
<?php
|
|
||||||
return [
|
|
||||||
"recaptchaSecret" => "Application secret kez pro reCaptcha",
|
|
||||||
"recaptchaSiteKey" => "Site key pro reCaptcha",
|
|
||||||
];
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<?php
|
|
||||||
return [
|
|
||||||
'recaptchaSiteKey' => 'reCAPTCHA site key',
|
|
||||||
'recaptchaSecret' => 'reCAPTCHA application secret key',
|
|
||||||
];
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<?php
|
|
||||||
return [
|
|
||||||
"recaptchaSecret" => "Application secret key pre reCaptcha",
|
|
||||||
"recaptchaSiteKey" => "Site key pre reCaptcha",
|
|
||||||
];
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
<label class="control-label">
|
|
||||||
@lang('contactform::admin/settings.recaptchaSiteKey')
|
|
||||||
</label>
|
|
||||||
|
|
||||||
<input class="form-control" type="text" name="recaptchaSiteKey" value="{{old('recaptchaSiteKey', isset($settings->recaptchaSiteKey) ? $settings->recaptchaSiteKey['val'] : '')}}" />
|
|
||||||
|
|
||||||
<label class="control-label">
|
|
||||||
@lang('contactform::admin/settings.recaptchaSecret')
|
|
||||||
</label>
|
|
||||||
|
|
||||||
<input class="form-control" type="text" name="recaptchaSecret" value="{{old('recaptchaSecret', isset($settings->recaptchaSecret) ? $settings->recaptchaSecret['val'] : '')}}" />
|
|
||||||
|
|
||||||
<em><a href="https://www.google.com/recaptcha/admin#list" target="_blank">reCAPTCHA</a></em>
|
|
||||||
@@ -21,4 +21,8 @@ return [
|
|||||||
],
|
],
|
||||||
"socialSites" => "Sociální sítě",
|
"socialSites" => "Sociální sítě",
|
||||||
"successfullySaved" => "Nastavení úspěšně změněno",
|
"successfullySaved" => "Nastavení úspěšně změněno",
|
||||||
|
'recaptcha' => 'reCaptcha',
|
||||||
|
"recaptchaSecret" => "Application secret key",
|
||||||
|
"recaptchaSiteKey" => "Site key",
|
||||||
|
'useInvisibleRecaptcha' => 'Neviditelná reCAPTCHA'
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
<label class="control-label">
|
||||||
|
@lang('admin/settings.recaptchaSiteKey')
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<input class="form-control" type="text" name="recaptchaSiteKey" value="{{old('recaptchaSiteKey', isset($settings->recaptchaSiteKey) ? $settings->recaptchaSiteKey['val'] : '')}}" />
|
||||||
|
|
||||||
|
<label class="control-label">
|
||||||
|
@lang('admin/settings.recaptchaSecret')
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<input class="form-control" type="text" name="recaptchaSecret" value="{{old('recaptchaSecret', isset($settings->recaptchaSecret) ? $settings->recaptchaSecret['val'] : '')}}" />
|
||||||
|
|
||||||
|
<label>
|
||||||
|
<input class="checkbox" value="1"
|
||||||
|
@if(old('useInvisibleRecaptcha', setting('useInvisibleRecaptcha'))) checked @endif name="useInvisibleRecaptcha" type="checkbox">
|
||||||
|
<span>@lang('admin/settings.useInvisibleRecaptcha')</span>
|
||||||
|
</label>
|
||||||
|
|
||||||
Reference in New Issue
Block a user