PluginSettingsReCaptcha.php
3.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?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',
'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>' )
),
/*
|--------------------------------------------------------------------------
| Secret Key
|--------------------------------------------------------------------------
*/
'recaptcha_secret_key' => array(
'id' => 'recaptcha_secret_key',
'type' => 'textbox',
'label' => esc_html__( 'reCAPTCHA v2 Secret Key', 'ninja-forms' ),
'desc' => '',
),
/*
|--------------------------------------------------------------------------
| Theme
|--------------------------------------------------------------------------
*/
'recaptcha_theme' => array(
'id' => 'recaptcha_theme',
'type' => 'select',
'options' => array(
array( 'label' => esc_html__( 'Light', 'ninja-forms' ), 'value' => 'light' ),
array( 'label' => esc_html__( 'Dark', 'ninja-forms' ), 'value' => 'dark' ),
),
'label' => esc_html__( 'reCAPTCHA Theme', 'ninja-forms' ),
'desc' => '',
),
/*
|--------------------------------------------------------------------------
| 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' => '',
),
));