-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsettings.php
136 lines (117 loc) · 6.46 KB
/
settings.php
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<?php
if (defined('ALLOW_INCLUDE') === false)
die('no direct access');
?>
<div class="wrap">
<a name="recaptcha"></a>
<h2><?php _e('reCAPTCHA Options', 'recaptcha'); ?></h2>
<p><?php _e('reCAPTCHA is a free, accessible CAPTCHA service that helps to digitize books while blocking spam on your blog.', 'recaptcha'); ?></p>
<form method="post" action="options.php">
<?php settings_fields('recaptcha_options_group'); ?>
<h3><?php _e('Authentication', 'recaptcha'); ?></h3>
<p><?php _e('These keys are required before you are able to do anything else.', 'recaptcha'); ?> <?php _e('You can get the keys', 'recaptcha'); ?> <a href="<?php echo recaptcha_get_signup_url($this->blog_domain(), 'wordpress');?>" title="<?php _e('Get your reCAPTCHA API Keys', 'recaptcha'); ?>"><?php _e('here', 'recaptcha'); ?></a>.</p>
<p><?php _e('Be sure not to mix them up! The public and private keys are not interchangeable!'); ?></p>
<table class="form-table">
<tr valign="top">
<th scope="row"><?php _e('Public Key', 'recaptcha'); ?></th>
<td>
<input type="text" name="recaptcha_options[public_key]" size="40" value="<?php echo $this->options['public_key']; ?>" />
</td>
</tr>
<tr valign="top">
<th scope="row"><?php _e('Private Key', 'recaptcha'); ?></th>
<td>
<input type="text" name="recaptcha_options[private_key]" size="40" value="<?php echo $this->options['private_key']; ?>" />
</td>
</tr>
</table>
<h3><?php _e('Comment Options', 'recaptcha'); ?></h3>
<table class="form-table">
<tr valign="top">
<th scope="row"><?php _e('Activation', 'recaptcha'); ?></th>
<td>
<input type="checkbox" id ="recaptcha_options[show_in_comments]" name="recaptcha_options[show_in_comments]" value="1" <?php checked('1', $this->options['show_in_comments']); ?> />
<label for="recaptcha_options[show_in_comments]"><?php _e('Enable for comments form', 'recaptcha'); ?></label>
</td>
</tr>
<tr valign="top">
<th scope="row"><?php _e('Target', 'recaptcha'); ?></th>
<td>
<input type="checkbox" id="recaptcha_options[bypass_for_registered_users]" name="recaptcha_options[bypass_for_registered_users]" value="1" <?php checked('1', $this->options['bypass_for_registered_users']); ?> />
<label for="recaptcha_options[bypass_for_registered_users]"><?php _e('Hide for Registered Users who can', 'recaptcha'); ?></label>
<?php $this->capabilities_dropdown(); ?>
</td>
</tr>
<tr valign="top">
<th scope="row"><?php _e('Presentation', 'recaptcha'); ?></th>
<td>
<label for="recaptcha_options[comments_theme]"><?php _e('Theme:', 'recaptcha'); ?></label>
<?php $this->theme_dropdown('comments'); ?>
</td>
</tr>
<tr valign="top">
<th scope="row"><?php _e('Tab Index', 'recaptcha'); ?></th>
<td>
<input type="text" name="recaptcha_options[comments_tab_index]" size="10" value="<?php echo $this->options['comments_tab_index']; ?>" />
</td>
</tr>
</table>
<h3><?php _e('Registration Options', 'recaptcha'); ?></h3>
<table class="form-table">
<tr valign="top">
<th scope="row"><?php _e('Activation', 'recaptcha'); ?></th>
<td>
<input type="checkbox" id ="recaptcha_options[show_in_registration]" name="recaptcha_options[show_in_registration]" value="1" <?php checked('1', $this->options['show_in_registration']); ?> />
<label for="recaptcha_options[show_in_registration]"><?php _e('Enable for registration form', 'recaptcha'); ?></label>
</td>
</tr>
<tr valign="top">
<th scope="row"><?php _e('Presentation', 'recaptcha'); ?></th>
<td>
<label for="recaptcha_options[registration_theme]"><?php _e('Theme:', 'recaptcha'); ?></label>
<?php $this->theme_dropdown('registration'); ?>
</td>
</tr>
<tr valign="top">
<th scope="row"><?php _e('Tab Index', 'recaptcha'); ?></th>
<td>
<input type="text" name="recaptcha_options[registration_tab_index]" size="10" value="<?php echo $this->options['registration_tab_index']; ?>" />
</td>
</tr>
</table>
<h3><?php _e('General Options', 'recaptcha'); ?></h3>
<table class="form-table">
<tr valign="top">
<th scope="row"><?php _e('reCAPTCHA Form', 'recaptcha'); ?></th>
<td>
<label for="recaptcha_options[recaptcha_language]"><?php _e('Language:', 'recaptcha'); ?></label>
<?php $this->recaptcha_language_dropdown(); ?>
</td>
</tr>
<tr valign="top">
<th scope="row"><?php _e('Standards Compliance', 'recaptcha'); ?></th>
<td>
<input type="checkbox" id ="recaptcha_options[xhtml_compliance]" name="recaptcha_options[xhtml_compliance]" value="1" <?php checked('1', $this->options['xhtml_compliance']); ?> />
<label for="recaptcha_options[xhtml_compliance]"><?php _e('Produce XHTML 1.0 Strict Compliant Code', 'recaptcha'); ?></label>
</td>
</tr>
</table>
<h3><?php _e('Error Messages', 'recaptcha'); ?></h3>
<table class="form-table">
<tr valign="top">
<th scope="row"><?php _e('reCAPTCHA Ignored', 'recaptcha'); ?></th>
<td>
<input type="text" name="recaptcha_options[no_response_error]" size="70" value="<?php echo $this->options['no_response_error']; ?>" />
</td>
</tr>
<tr valign="top">
<th scope="row"><?php _e('Incorrect Guess', 'recaptcha'); ?></th>
<td>
<input type="text" name="recaptcha_options[incorrect_response_error]" size="70" value="<?php echo $this->options['incorrect_response_error']; ?>" />
</td>
</tr>
</table>
<p class="submit"><input type="submit" class="button-primary" title="<?php _e('Save reCAPTCHA Options') ?>" value="<?php _e('Save reCAPTCHA Changes') ?> »" /></p>
</form>
<?php do_settings_sections('recaptcha_options_page'); ?>
</div>