2018-12-03 13:56:48 +01:00
< ? php if ( ! defined ( 'ABSPATH' ) ) exit ;
return apply_filters ( 'ninja_forms_plugin_settings_recaptcha' , array (
/*
|--------------------------------------------------------------------------
| Site Key
|--------------------------------------------------------------------------
*/
'recaptcha_site_key' => array (
'id' => 'recaptcha_site_key' ,
'type' => 'textbox' ,
2021-08-04 17:09:29 +02:00
'label' => esc_html__ ( 'reCAPTCHA v2 Site Key' , 'ninja-forms' ),
'desc' => sprintf ( esc_html__ ( 'Get a site key for your domain by registering %shere%s' , 'ninja-forms' ), '<a href="https://www.google.com/recaptcha/intro/index.html" target="_blank">' , '</a>' )
2018-12-03 13:56:48 +01:00
),
/*
|--------------------------------------------------------------------------
| Secret Key
|--------------------------------------------------------------------------
*/
'recaptcha_secret_key' => array (
'id' => 'recaptcha_secret_key' ,
'type' => 'textbox' ,
2021-08-04 17:09:29 +02:00
'label' => esc_html__ ( 'reCAPTCHA v2 Secret Key' , 'ninja-forms' ),
2018-12-03 13:56:48 +01:00
'desc' => '' ,
),
/*
|--------------------------------------------------------------------------
| Theme
|--------------------------------------------------------------------------
*/
'recaptcha_theme' => array (
'id' => 'recaptcha_theme' ,
'type' => 'select' ,
'options' => array (
2021-08-04 17:09:29 +02:00
array ( 'label' => esc_html__ ( 'Light' , 'ninja-forms' ), 'value' => 'light' ),
array ( 'label' => esc_html__ ( 'Dark' , 'ninja-forms' ), 'value' => 'dark' ),
2018-12-03 13:56:48 +01:00
),
2021-08-04 17:09:29 +02:00
'label' => esc_html__ ( 'reCAPTCHA Theme' , 'ninja-forms' ),
2018-12-03 13:56:48 +01:00
'desc' => '' ,
),
2021-08-04 17:09:29 +02:00
/*
|--------------------------------------------------------------------------
| Language
|--------------------------------------------------------------------------
*/
'recaptcha_lang' => array (
'id' => 'recaptcha_lang' ,
'type' => 'textbox' ,
'label' => esc_html__ ( 'reCAPTCHA Language' , 'ninja-forms' ),
'desc' => 'e.g. en, da - ' . sprintf ( esc_html__ ( 'Language used by reCAPTCHA. To get the code for your language click %shere%s' , 'ninja-forms' ), '<a href="https://developers.google.com/recaptcha/docs/language" target="_blank">' , '</a>' )
),
/*
|--------------------------------------------------------------------------
| Site Key v3
|--------------------------------------------------------------------------
*/
'recaptcha_site_key_3' => array (
'id' => 'recaptcha_site_key_3' ,
'type' => 'textbox' ,
'label' => esc_html__ ( 'reCAPTCHA v3 Site Key' , 'ninja-forms' ),
'desc' => sprintf ( esc_html__ ( 'Get a site key for your domain by registering %shere%s' , 'ninja-forms' ), '<a href="https://www.google.com/recaptcha/intro/index.html" target="_blank">' , '</a>' )
),
/*
|--------------------------------------------------------------------------
| Secret Key v3
|--------------------------------------------------------------------------
*/
'recaptcha_secret_key_3' => array (
'id' => 'recaptcha_secret_key_3' ,
'type' => 'textbox' ,
'label' => esc_html__ ( 'reCAPTCHA v3 Secret Key' , 'ninja-forms' ),
'desc' => '' ,
),
2018-12-03 13:56:48 +01:00
));