Version Description
- Captcha in WooCommerce added (WooCommerce Login, Registration, Lost password, Reset password forms).
- Allow multiple captcha in same page.
- Text domain changed.
- Some minor bug fixed.
Download this release
Release Info
Developer | shamim51 |
Plugin | Advanced noCaptcha & invisible Captcha |
Version | 2.1 |
Comparing to | |
See all releases |
Code changes from version 1.3 to 2.1
- admin/anr-admin-class.php +94 -89
- advanced-nocaptcha-recaptcha.php +3 -4
- anr-captcha-class.php +139 -49
- functions.php +14 -55
- languages/advanced-nocaptcha-recaptcha-en_US.mo +0 -0
- languages/{anr.pot → advanced-nocaptcha-recaptcha-en_US.po} +132 -115
- readme.txt +31 -12
admin/anr-admin-class.php
CHANGED
@@ -22,12 +22,12 @@ if (!class_exists('anr_admin_class'))
|
|
22 |
$same_settings = false;
|
23 |
}
|
24 |
if ( $same_settings ) {
|
25 |
-
add_action('network_admin_menu', array(
|
26 |
} else {
|
27 |
-
add_action('admin_menu', array(
|
28 |
}
|
29 |
|
30 |
-
add_filter('plugin_action_links', array(
|
31 |
}
|
32 |
|
33 |
|
@@ -36,11 +36,11 @@ if (!class_exists('anr_admin_class'))
|
|
36 |
|
37 |
function MenuPage()
|
38 |
{
|
39 |
-
add_menu_page('Advanced noCaptcha reCaptcha', 'Advanced noCaptcha', 'manage_options', 'anr-admin-settings', array(
|
40 |
|
41 |
-
add_submenu_page('anr-admin-settings', 'Advanced noCaptcha reCaptcha - ' .__('Settings','
|
42 |
|
43 |
-
add_submenu_page('anr-admin-settings', 'Advanced noCaptcha reCaptcha - ' .__('Instruction','fepcf'), __('Instruction','fepcf'), 'manage_options', 'anr-instruction', array(
|
44 |
|
45 |
}
|
46 |
|
@@ -56,65 +56,65 @@ if (!class_exists('anr_admin_class'))
|
|
56 |
}
|
57 |
</style>";
|
58 |
$languages = array(
|
59 |
-
__( 'Auto Detect', '
|
60 |
-
__( 'Arabic', '
|
61 |
-
__( 'Bulgarian', '
|
62 |
-
__( 'Catalan', '
|
63 |
-
__( 'Chinese (Simplified)', '
|
64 |
-
__( 'Chinese (Traditional)', '
|
65 |
-
__( 'Croatian', '
|
66 |
-
__( 'Czech', '
|
67 |
-
__( 'Danish', '
|
68 |
-
__( 'Dutch', '
|
69 |
-
__( 'English (UK)', '
|
70 |
-
__( 'English (US)', '
|
71 |
-
__( 'Filipino', '
|
72 |
-
__( 'Finnish', '
|
73 |
-
__( 'French', '
|
74 |
-
__( 'French (Canadian)', '
|
75 |
-
__( 'German', '
|
76 |
-
__( 'German (Austria)', '
|
77 |
-
__( 'German (Switzerland)', '
|
78 |
-
__( 'Greek', '
|
79 |
-
__( 'Hebrew', '
|
80 |
-
__( 'Hindi', '
|
81 |
-
__( 'Hungarain', '
|
82 |
-
__( 'Indonesian', '
|
83 |
-
__( 'Italian', '
|
84 |
-
__( 'Japanese', '
|
85 |
-
__( 'Korean', '
|
86 |
-
__( 'Latvian', '
|
87 |
-
__( 'Lithuanian', '
|
88 |
-
__( 'Norwegian', '
|
89 |
-
__( 'Persian', '
|
90 |
-
__( 'Polish', '
|
91 |
-
__( 'Portuguese', '
|
92 |
-
__( 'Portuguese (Brazil)', '
|
93 |
-
__( 'Portuguese (Portugal)', '
|
94 |
-
__( 'Romanian', '
|
95 |
-
__( 'Russian', '
|
96 |
-
__( 'Serbian', '
|
97 |
-
__( 'Slovak', '
|
98 |
-
__( 'Slovenian', '
|
99 |
-
__( 'Spanish', '
|
100 |
-
__( 'Spanish (Latin America)', '
|
101 |
-
__( 'Swedish', '
|
102 |
-
__( 'Thai', '
|
103 |
-
__( 'Turkish', '
|
104 |
-
__( 'Ukrainian', '
|
105 |
-
__( 'Vietnamese', '
|
106 |
|
107 |
);
|
108 |
|
109 |
$locations = array(
|
110 |
-
__( 'Login Form', '
|
111 |
-
__( 'Registration Form', '
|
112 |
-
__( 'Multisite User Signup Form', '
|
113 |
-
__( 'Lost Password Form', '
|
114 |
-
__( 'Reset Password Form', '
|
115 |
-
__( 'Comment Form', '
|
116 |
-
__( 'bbPress New topic', '
|
117 |
-
__( 'bbPress reply to topic', '
|
118 |
|
119 |
);
|
120 |
|
@@ -125,7 +125,7 @@ if (!class_exists('anr_admin_class'))
|
|
125 |
echo anr_error($errors);
|
126 |
}
|
127 |
else{
|
128 |
-
echo'<div id="message" class="updated fade">' .__("Options successfully saved.", '
|
129 |
echo "<div id='poststuff'>
|
130 |
|
131 |
<div id='post-body' class='metabox-holder columns-2'>
|
@@ -133,17 +133,17 @@ if (!class_exists('anr_admin_class'))
|
|
133 |
<!-- main content -->
|
134 |
<div id='post-body-content'>
|
135 |
<div class='postbox'><div class='inside'>
|
136 |
-
<h2>".__("Advanced noCaptcha reCaptcha Settings", '
|
137 |
-
<h5>".sprintf(__("If you like this plugin please <a href='%s' target='_blank'>Review in Wordpress.org</a> and give 5 star", '
|
138 |
<form method='post' action=''>
|
139 |
<table>
|
140 |
<thead>
|
141 |
-
<tr><th width = '50%'>".__("Setting", '
|
142 |
</thead>
|
143 |
-
<tr><td>".__("Site Key", '
|
144 |
-
<tr><td>".__("Secret key", '
|
145 |
|
146 |
-
<tr><td>".__("Language", '
|
147 |
|
148 |
foreach ( $languages as $language => $code ) {
|
149 |
|
@@ -152,21 +152,21 @@ if (!class_exists('anr_admin_class'))
|
|
152 |
}
|
153 |
|
154 |
echo "</select></td></tr>
|
155 |
-
<tr><td>".__("Theme", '
|
156 |
|
157 |
<option value='light' ".selected(anr_get_option('theme'), 'light',false).">Light</option>
|
158 |
<option value='dark' ".selected(anr_get_option('theme'), 'dark',false).">Dark</option>
|
159 |
|
160 |
</select></td></tr>
|
161 |
-
<tr><td>".__("Size", '
|
162 |
|
163 |
<option value='normal' ".selected(anr_get_option('size'), 'normal',false).">Normal</option>
|
164 |
<option value='compact' ".selected(anr_get_option('size'), 'compact',false).">Compact</option>
|
165 |
|
166 |
</select></td></tr>
|
167 |
-
<tr><td>".__("Error Message", '
|
168 |
|
169 |
-
<tr><td>".__("Show Captcha on", '
|
170 |
|
171 |
foreach ( $locations as $location => $slug ) {
|
172 |
|
@@ -183,13 +183,13 @@ if (!class_exists('anr_admin_class'))
|
|
183 |
|
184 |
do_action('anr_admin_setting_form');
|
185 |
|
186 |
-
echo "<tr><td colspan='2'><label><input type='checkbox' name='loggedin_hide' value='1' ".checked(anr_get_option('loggedin_hide'), '1', false)." /> ".__("Hide Captcha for logged in users?", '
|
187 |
-
<tr><td colspan='2'><label><input type='checkbox' name='remove_css' value='1' ".checked(anr_get_option('remove_css'), '1', false)." /> ".__("Remove this plugin's css from login page?", '
|
188 |
-
<tr><td colspan='2'><label><input type='checkbox' name='no_js' value='1' ".checked(anr_get_option('no_js'), '1', false)." /> ".__("Show captcha if javascript disabled?", '
|
189 |
-
<tr><td colspan='2'><span><input class='button-primary' type='submit' name='anr-admin-settings-submit' value='".__("Save Options", '
|
190 |
</table>
|
191 |
</form>
|
192 |
-
<ul>".sprintf(__("For paid support pleasse visit <a href='%s' target='_blank'>Advanced noCaptcha reCaptcha</a>", '
|
193 |
</div></div></div>
|
194 |
". $this->anr_admin_sidebar(). "
|
195 |
</div></div>";
|
@@ -227,11 +227,11 @@ function anr_admin_sidebar()
|
|
227 |
$options = $_POST;
|
228 |
|
229 |
if( !current_user_can('manage_options'))
|
230 |
-
$errors->add('noPermission', __('No Permission!', '
|
231 |
|
232 |
|
233 |
if ( !wp_verify_nonce($options['token'], 'anr-admin-settings'))
|
234 |
-
$errors->add('invalidToken', __('Sorry, your nonce did not verify!', '
|
235 |
|
236 |
$options = apply_filters('anr_filter_admin_setting_before_save', $options, $errors);
|
237 |
//var_dump($options);
|
@@ -264,16 +264,21 @@ function anr_admin_sidebar()
|
|
264 |
<div id="post-body-content">';
|
265 |
|
266 |
echo "<div class='postbox'><div class='inside'>
|
267 |
-
<h2>".__("Advanced noCaptcha reCaptcha Setup Instruction", '
|
268 |
<p><ul>
|
269 |
-
<li>".sprintf(__("Get your site key and secret key from <a href='%s' target='_blank'>GOOGLE</a> if you do not have already.", '
|
270 |
-
<li>".__("Goto SETTINGS page of this plugin and set up as you need. and ENJOY...", '
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
<
|
276 |
-
|
|
|
|
|
|
|
|
|
|
|
277 |
</ul></p></div></div></div>
|
278 |
". $this->anr_admin_sidebar(). "
|
279 |
</div></div>";
|
@@ -284,7 +289,7 @@ function add_settings_link( $links, $file ) {
|
|
284 |
//add settings link in plugins page
|
285 |
$plugin_file = 'advanced-nocaptcha-recaptcha/advanced-nocaptcha-recaptcha.php';
|
286 |
if ( $file == $plugin_file ) {
|
287 |
-
$settings_link = '<a href="' . admin_url( 'admin.php?page=anr-admin-settings' ) . '">' .__( 'Settings', '
|
288 |
array_unshift( $links, $settings_link );
|
289 |
}
|
290 |
return $links;
|
22 |
$same_settings = false;
|
23 |
}
|
24 |
if ( $same_settings ) {
|
25 |
+
add_action('network_admin_menu', array($this, 'MenuPage'));
|
26 |
} else {
|
27 |
+
add_action('admin_menu', array($this, 'MenuPage'));
|
28 |
}
|
29 |
|
30 |
+
add_filter('plugin_action_links', array($this, 'add_settings_link'), 10, 2 );
|
31 |
}
|
32 |
|
33 |
|
36 |
|
37 |
function MenuPage()
|
38 |
{
|
39 |
+
add_menu_page('Advanced noCaptcha reCaptcha', 'Advanced noCaptcha', 'manage_options', 'anr-admin-settings', array($this, 'admin_settings'),plugins_url( 'advanced-nocaptcha-recaptcha/images/advanced-nocaptcha-recaptcha.jpg' ));
|
40 |
|
41 |
+
add_submenu_page('anr-admin-settings', 'Advanced noCaptcha reCaptcha - ' .__('Settings','advanced-nocaptcha-recaptcha'), __('Settings','advanced-nocaptcha-recaptcha'), 'manage_options', 'anr-admin-settings', array($this, 'admin_settings'));
|
42 |
|
43 |
+
add_submenu_page('anr-admin-settings', 'Advanced noCaptcha reCaptcha - ' .__('Instruction','fepcf'), __('Instruction','fepcf'), 'manage_options', 'anr-instruction', array($this, "InstructionPage"));
|
44 |
|
45 |
}
|
46 |
|
56 |
}
|
57 |
</style>";
|
58 |
$languages = array(
|
59 |
+
__( 'Auto Detect', 'advanced-nocaptcha-recaptcha' ) => '',
|
60 |
+
__( 'Arabic', 'advanced-nocaptcha-recaptcha' ) => 'ar',
|
61 |
+
__( 'Bulgarian', 'advanced-nocaptcha-recaptcha' ) => 'bg',
|
62 |
+
__( 'Catalan', 'advanced-nocaptcha-recaptcha' ) => 'ca',
|
63 |
+
__( 'Chinese (Simplified)', 'advanced-nocaptcha-recaptcha' ) => 'zh-CN',
|
64 |
+
__( 'Chinese (Traditional)', 'advanced-nocaptcha-recaptcha' ) => 'zh-TW',
|
65 |
+
__( 'Croatian', 'advanced-nocaptcha-recaptcha' ) => 'hr',
|
66 |
+
__( 'Czech', 'advanced-nocaptcha-recaptcha' ) => 'cs',
|
67 |
+
__( 'Danish', 'advanced-nocaptcha-recaptcha' ) => 'da',
|
68 |
+
__( 'Dutch', 'advanced-nocaptcha-recaptcha' ) => 'nl',
|
69 |
+
__( 'English (UK)', 'advanced-nocaptcha-recaptcha' ) => 'en-GB',
|
70 |
+
__( 'English (US)', 'advanced-nocaptcha-recaptcha' ) => 'en',
|
71 |
+
__( 'Filipino', 'advanced-nocaptcha-recaptcha' ) => 'fil',
|
72 |
+
__( 'Finnish', 'advanced-nocaptcha-recaptcha' ) => 'fi',
|
73 |
+
__( 'French', 'advanced-nocaptcha-recaptcha' ) => 'fr',
|
74 |
+
__( 'French (Canadian)', 'advanced-nocaptcha-recaptcha' ) => 'fr-CA',
|
75 |
+
__( 'German', 'advanced-nocaptcha-recaptcha' ) => 'de',
|
76 |
+
__( 'German (Austria)', 'advanced-nocaptcha-recaptcha' ) => 'de-AT',
|
77 |
+
__( 'German (Switzerland)', 'advanced-nocaptcha-recaptcha' ) => 'de-CH',
|
78 |
+
__( 'Greek', 'advanced-nocaptcha-recaptcha' ) => 'el',
|
79 |
+
__( 'Hebrew', 'advanced-nocaptcha-recaptcha' ) => 'iw',
|
80 |
+
__( 'Hindi', 'advanced-nocaptcha-recaptcha' ) => 'hi',
|
81 |
+
__( 'Hungarain', 'advanced-nocaptcha-recaptcha' ) => 'hu',
|
82 |
+
__( 'Indonesian', 'advanced-nocaptcha-recaptcha' ) => 'id',
|
83 |
+
__( 'Italian', 'advanced-nocaptcha-recaptcha' ) => 'it',
|
84 |
+
__( 'Japanese', 'advanced-nocaptcha-recaptcha' ) => 'ja',
|
85 |
+
__( 'Korean', 'advanced-nocaptcha-recaptcha' ) => 'ko',
|
86 |
+
__( 'Latvian', 'advanced-nocaptcha-recaptcha' ) => 'lv',
|
87 |
+
__( 'Lithuanian', 'advanced-nocaptcha-recaptcha' ) => 'lt',
|
88 |
+
__( 'Norwegian', 'advanced-nocaptcha-recaptcha' ) => 'no',
|
89 |
+
__( 'Persian', 'advanced-nocaptcha-recaptcha' ) => 'fa',
|
90 |
+
__( 'Polish', 'advanced-nocaptcha-recaptcha' ) => 'pl',
|
91 |
+
__( 'Portuguese', 'advanced-nocaptcha-recaptcha' ) => 'pt',
|
92 |
+
__( 'Portuguese (Brazil)', 'advanced-nocaptcha-recaptcha' ) => 'pt-BR',
|
93 |
+
__( 'Portuguese (Portugal)', 'advanced-nocaptcha-recaptcha' )=> 'pt-PT',
|
94 |
+
__( 'Romanian', 'advanced-nocaptcha-recaptcha' ) => 'ro',
|
95 |
+
__( 'Russian', 'advanced-nocaptcha-recaptcha' ) => 'ru',
|
96 |
+
__( 'Serbian', 'advanced-nocaptcha-recaptcha' ) => 'sr',
|
97 |
+
__( 'Slovak', 'advanced-nocaptcha-recaptcha' ) => 'sk',
|
98 |
+
__( 'Slovenian', 'advanced-nocaptcha-recaptcha' ) => 'sl',
|
99 |
+
__( 'Spanish', 'advanced-nocaptcha-recaptcha' ) => 'es',
|
100 |
+
__( 'Spanish (Latin America)', 'advanced-nocaptcha-recaptcha' )=> 'es-419',
|
101 |
+
__( 'Swedish', 'advanced-nocaptcha-recaptcha' ) => 'sv',
|
102 |
+
__( 'Thai', 'advanced-nocaptcha-recaptcha' ) => 'th',
|
103 |
+
__( 'Turkish', 'advanced-nocaptcha-recaptcha' ) => 'tr',
|
104 |
+
__( 'Ukrainian', 'advanced-nocaptcha-recaptcha' ) => 'uk',
|
105 |
+
__( 'Vietnamese', 'advanced-nocaptcha-recaptcha' ) => 'vi'
|
106 |
|
107 |
);
|
108 |
|
109 |
$locations = array(
|
110 |
+
__( 'Login Form', 'advanced-nocaptcha-recaptcha' ) => 'login',
|
111 |
+
__( 'Registration Form', 'advanced-nocaptcha-recaptcha' ) => 'registration',
|
112 |
+
__( 'Multisite User Signup Form', 'advanced-nocaptcha-recaptcha' ) => 'ms_user_signup',
|
113 |
+
__( 'Lost Password Form', 'advanced-nocaptcha-recaptcha' ) => 'lost_password',
|
114 |
+
__( 'Reset Password Form', 'advanced-nocaptcha-recaptcha' ) => 'reset_password',
|
115 |
+
__( 'Comment Form', 'advanced-nocaptcha-recaptcha' ) => 'comment',
|
116 |
+
__( 'bbPress New topic', 'advanced-nocaptcha-recaptcha' ) => 'bb_new',
|
117 |
+
__( 'bbPress reply to topic', 'advanced-nocaptcha-recaptcha' ) => 'bb_reply',
|
118 |
|
119 |
);
|
120 |
|
125 |
echo anr_error($errors);
|
126 |
}
|
127 |
else{
|
128 |
+
echo'<div id="message" class="updated fade">' .__("Options successfully saved.", 'advanced-nocaptcha-recaptcha'). ' </div>';}}
|
129 |
echo "<div id='poststuff'>
|
130 |
|
131 |
<div id='post-body' class='metabox-holder columns-2'>
|
133 |
<!-- main content -->
|
134 |
<div id='post-body-content'>
|
135 |
<div class='postbox'><div class='inside'>
|
136 |
+
<h2>".__("Advanced noCaptcha reCaptcha Settings", 'advanced-nocaptcha-recaptcha')."</h2>
|
137 |
+
<h5>".sprintf(__("If you like this plugin please <a href='%s' target='_blank'>Review in Wordpress.org</a> and give 5 star", 'advanced-nocaptcha-recaptcha'),esc_url($ReviewURL))."</h5>
|
138 |
<form method='post' action=''>
|
139 |
<table>
|
140 |
<thead>
|
141 |
+
<tr><th width = '50%'>".__("Setting", 'advanced-nocaptcha-recaptcha')."</th><th width = '50%'>".__("Value", 'advanced-nocaptcha-recaptcha')."</th></tr>
|
142 |
</thead>
|
143 |
+
<tr><td>".__("Site Key", 'advanced-nocaptcha-recaptcha')."<br/><small><a href='https://www.google.com/recaptcha/admin' target='_blank'>Get From Google</a></small></td><td><input type='text' size = '40' name='site_key' value='".anr_get_option('site_key')."' /></td></tr>
|
144 |
+
<tr><td>".__("Secret key", 'advanced-nocaptcha-recaptcha')."<br/><small><a href='https://www.google.com/recaptcha/admin' target='_blank'>Get From Google</a></small></td><td><input type='text' size = '40' name='secret_key' value='".anr_get_option('secret_key')."' /></td></tr>
|
145 |
|
146 |
+
<tr><td>".__("Language", 'advanced-nocaptcha-recaptcha')."</td><td><select name='language'>";
|
147 |
|
148 |
foreach ( $languages as $language => $code ) {
|
149 |
|
152 |
}
|
153 |
|
154 |
echo "</select></td></tr>
|
155 |
+
<tr><td>".__("Theme", 'advanced-nocaptcha-recaptcha')."</td><td><select name='theme'>
|
156 |
|
157 |
<option value='light' ".selected(anr_get_option('theme'), 'light',false).">Light</option>
|
158 |
<option value='dark' ".selected(anr_get_option('theme'), 'dark',false).">Dark</option>
|
159 |
|
160 |
</select></td></tr>
|
161 |
+
<tr><td>".__("Size", 'advanced-nocaptcha-recaptcha')."</td><td><select name='size'>
|
162 |
|
163 |
<option value='normal' ".selected(anr_get_option('size'), 'normal',false).">Normal</option>
|
164 |
<option value='compact' ".selected(anr_get_option('size'), 'compact',false).">Compact</option>
|
165 |
|
166 |
</select></td></tr>
|
167 |
+
<tr><td>".__("Error Message", 'advanced-nocaptcha-recaptcha')."</td><td><input type='text' size = '40' name='error_message' value='".anr_get_option('error_message', '<strong>ERROR</strong>: Please solve Captcha correctly.')."' /></td></tr>
|
168 |
|
169 |
+
<tr><td>".__("Show Captcha on", 'advanced-nocaptcha-recaptcha')."</td><td>";
|
170 |
|
171 |
foreach ( $locations as $location => $slug ) {
|
172 |
|
183 |
|
184 |
do_action('anr_admin_setting_form');
|
185 |
|
186 |
+
echo "<tr><td colspan='2'><label><input type='checkbox' name='loggedin_hide' value='1' ".checked(anr_get_option('loggedin_hide'), '1', false)." /> ".__("Hide Captcha for logged in users?", 'advanced-nocaptcha-recaptcha')."</label></td></tr>
|
187 |
+
<tr><td colspan='2'><label><input type='checkbox' name='remove_css' value='1' ".checked(anr_get_option('remove_css'), '1', false)." /> ".__("Remove this plugin's css from login page?", 'advanced-nocaptcha-recaptcha')."<br/><small>".__("This css increase login page width to adjust with Captcha width.", 'advanced-nocaptcha-recaptcha')."</small></label></td></tr>
|
188 |
+
<tr><td colspan='2'><label><input type='checkbox' name='no_js' value='1' ".checked(anr_get_option('no_js'), '1', false)." /> ".__("Show captcha if javascript disabled?", 'advanced-nocaptcha-recaptcha')."<br/><small>".__("If JavaScript is a requirement for your site, we advise that you do NOT check this.", 'advanced-nocaptcha-recaptcha')."</small></label></td></tr>
|
189 |
+
<tr><td colspan='2'><span><input class='button-primary' type='submit' name='anr-admin-settings-submit' value='".__("Save Options", 'advanced-nocaptcha-recaptcha')."' /></span></td><td><input type='hidden' name='token' value='$token' /></td></tr>
|
190 |
</table>
|
191 |
</form>
|
192 |
+
<ul>".sprintf(__("For paid support pleasse visit <a href='%s' target='_blank'>Advanced noCaptcha reCaptcha</a>", 'advanced-nocaptcha-recaptcha'),esc_url($url))."</ul>
|
193 |
</div></div></div>
|
194 |
". $this->anr_admin_sidebar(). "
|
195 |
</div></div>";
|
227 |
$options = $_POST;
|
228 |
|
229 |
if( !current_user_can('manage_options'))
|
230 |
+
$errors->add('noPermission', __('No Permission!', 'advanced-nocaptcha-recaptcha'));
|
231 |
|
232 |
|
233 |
if ( !wp_verify_nonce($options['token'], 'anr-admin-settings'))
|
234 |
+
$errors->add('invalidToken', __('Sorry, your nonce did not verify!', 'advanced-nocaptcha-recaptcha'));
|
235 |
|
236 |
$options = apply_filters('anr_filter_admin_setting_before_save', $options, $errors);
|
237 |
//var_dump($options);
|
264 |
<div id="post-body-content">';
|
265 |
|
266 |
echo "<div class='postbox'><div class='inside'>
|
267 |
+
<h2>".__("Advanced noCaptcha reCaptcha Setup Instruction", 'advanced-nocaptcha-recaptcha')."</h2>
|
268 |
<p><ul>
|
269 |
+
<li>".sprintf(__("Get your site key and secret key from <a href='%s' target='_blank'>GOOGLE</a> if you do not have already.", 'advanced-nocaptcha-recaptcha'),esc_url('https://www.google.com/recaptcha/admin'))."</li>
|
270 |
+
<li>".__("Goto SETTINGS page of this plugin and set up as you need. and ENJOY...", 'advanced-nocaptcha-recaptcha')."</li><br/>
|
271 |
+
|
272 |
+
<h3>".__("Implement noCaptcha in Contact Form 7", 'advanced-nocaptcha-recaptcha')."</h3><br />
|
273 |
+
<li>".__("To show noCaptcha use ", 'advanced-nocaptcha-recaptcha')."<code>[anr_nocaptcha g-recaptcha-response]</code></li><br />
|
274 |
+
|
275 |
+
<h3>".__("Implement noCaptcha in WooCommerce", 'advanced-nocaptcha-recaptcha')."</h3><br />
|
276 |
+
<li>".__("If Login Form, Registration Form, Lost Password Form, Reset Password Form is selected in SETTINGS page of this plugin they will show and verify Captcha in WooCommerce respective forms also.", 'advanced-nocaptcha-recaptcha')."</li><br />
|
277 |
+
|
278 |
+
<h3>".__("If you want to implement noCaptcha in any other custom form", 'advanced-nocaptcha-recaptcha')."</h3><br />
|
279 |
+
<li>".__("To show form field use ", 'advanced-nocaptcha-recaptcha')."<code>do_action( 'anr_captcha_form_field' )</code></li>
|
280 |
+
<li>".__("To verify use ", 'advanced-nocaptcha-recaptcha')."<code>anr_verify_captcha()</code> it will return true on success otherwise false</li><br />
|
281 |
+
<li>".sprintf(__("For paid support pleasse visit <a href='%s' target='_blank'>Advanced noCaptcha reCaptcha</a>", 'advanced-nocaptcha-recaptcha'),esc_url($url))."</li>
|
282 |
</ul></p></div></div></div>
|
283 |
". $this->anr_admin_sidebar(). "
|
284 |
</div></div>";
|
289 |
//add settings link in plugins page
|
290 |
$plugin_file = 'advanced-nocaptcha-recaptcha/advanced-nocaptcha-recaptcha.php';
|
291 |
if ( $file == $plugin_file ) {
|
292 |
+
$settings_link = '<a href="' . admin_url( 'admin.php?page=anr-admin-settings' ) . '">' .__( 'Settings', 'advanced-nocaptcha-recaptcha' ) . '</a>';
|
293 |
array_unshift( $links, $settings_link );
|
294 |
}
|
295 |
return $links;
|
advanced-nocaptcha-recaptcha.php
CHANGED
@@ -3,10 +3,10 @@
|
|
3 |
Plugin Name: Advanced noCaptcha reCaptcha
|
4 |
Plugin URI: https://shamimbiplob.wordpress.com/contact-us/
|
5 |
Description: Show noCaptcha in Comment Form (after Comment textarea before submit button), Contact Form 7, bbPress, Login, Register, Lost Password, Reset Password. Also can implement in any other form easily.
|
6 |
-
Version: 1
|
7 |
Author: Shamim
|
8 |
Author URI: https://shamimbiplob.wordpress.com/contact-us/
|
9 |
-
Text Domain:
|
10 |
License: GPLv2 or later
|
11 |
*/
|
12 |
//DEFINE
|
@@ -20,7 +20,6 @@ require_once('functions.php');
|
|
20 |
|
21 |
add_action('after_setup_theme', 'anr_include_require_files');
|
22 |
add_action('plugins_loaded', 'anr_translation');
|
23 |
-
add_action('wp_enqueue_scripts', 'anr_enqueue_scripts');
|
24 |
add_action('login_enqueue_scripts', 'anr_login_enqueue_scripts');
|
25 |
|
26 |
-
|
3 |
Plugin Name: Advanced noCaptcha reCaptcha
|
4 |
Plugin URI: https://shamimbiplob.wordpress.com/contact-us/
|
5 |
Description: Show noCaptcha in Comment Form (after Comment textarea before submit button), Contact Form 7, bbPress, Login, Register, Lost Password, Reset Password. Also can implement in any other form easily.
|
6 |
+
Version: 2.1
|
7 |
Author: Shamim
|
8 |
Author URI: https://shamimbiplob.wordpress.com/contact-us/
|
9 |
+
Text Domain: advanced-nocaptcha-recaptcha
|
10 |
License: GPLv2 or later
|
11 |
*/
|
12 |
//DEFINE
|
20 |
|
21 |
add_action('after_setup_theme', 'anr_include_require_files');
|
22 |
add_action('plugins_loaded', 'anr_translation');
|
23 |
+
//add_action('wp_enqueue_scripts', 'anr_enqueue_scripts');
|
24 |
add_action('login_enqueue_scripts', 'anr_login_enqueue_scripts');
|
25 |
|
|
anr-captcha-class.php
CHANGED
@@ -6,6 +6,8 @@ if (!class_exists('anr_captcha_class'))
|
|
6 |
{
|
7 |
private static $instance;
|
8 |
|
|
|
|
|
9 |
public static function init()
|
10 |
{
|
11 |
if(!self::$instance instanceof self) {
|
@@ -17,56 +19,144 @@ if (!class_exists('anr_captcha_class'))
|
|
17 |
function actions_filters()
|
18 |
{
|
19 |
if ( '1' == anr_get_option( 'fep_contact_form' )) {
|
20 |
-
add_action ('fepcf_message_form_after_content', array(
|
21 |
-
add_action ('fepcf_action_message_before_send', array(
|
22 |
}
|
23 |
|
24 |
if ( '1' == anr_get_option( 'login' ) && !defined('XMLRPC_REQUEST')) {
|
25 |
-
add_action ('login_form', array(
|
26 |
-
|
|
|
27 |
}
|
28 |
|
29 |
if ( '1' == anr_get_option( 'registration' )) {
|
30 |
-
add_action ('register_form', array(
|
31 |
-
add_filter ('registration_errors', array(
|
|
|
32 |
}
|
33 |
|
34 |
if ( '1' == anr_get_option( 'ms_user_signup' )) {
|
35 |
-
add_action ('signup_extra_fields', array(
|
36 |
-
add_filter ('wpmu_validate_user_signup', array(
|
37 |
}
|
38 |
|
39 |
if ( '1' == anr_get_option( 'lost_password' )) {
|
40 |
-
add_action ('lostpassword_form', array(
|
41 |
-
add_action ('
|
|
|
42 |
}
|
43 |
|
44 |
if ( '1' == anr_get_option( 'reset_password' )) {
|
45 |
-
add_action ('resetpass_form', array(
|
46 |
-
|
|
|
47 |
}
|
48 |
|
49 |
if ( '1' == anr_get_option( 'comment' )) {
|
50 |
-
add_filter ('comment_form_field_comment', array(
|
51 |
-
add_filter ('preprocess_comment', array(
|
52 |
}
|
53 |
|
54 |
if ( function_exists( 'wpcf7_add_shortcode' )) {
|
55 |
-
wpcf7_add_shortcode('anr_nocaptcha', array(
|
56 |
-
add_filter('wpcf7_validate_anr_nocaptcha', array(
|
57 |
}
|
58 |
|
59 |
if ( '1' == anr_get_option( 'bb_new' )) {
|
60 |
-
add_action ('bbp_theme_before_topic_form_submit_wrapper', array(
|
61 |
-
add_action ('bbp_new_topic_pre_extras', array(
|
62 |
}
|
63 |
|
64 |
if ( '1' == anr_get_option( 'bb_reply' )) {
|
65 |
-
add_action ('bbp_theme_before_reply_form_submit_wrapper', array(
|
66 |
-
add_action ('bbp_new_reply_pre_extras', array(
|
67 |
}
|
68 |
}
|
69 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
|
71 |
function form_field()
|
72 |
{
|
@@ -102,7 +192,7 @@ if (!class_exists('anr_captcha_class'))
|
|
102 |
if ( is_user_logged_in() && $loggedin_hide )
|
103 |
return $defaults;
|
104 |
|
105 |
-
$defaults = $defaults. '<
|
106 |
return $defaults;
|
107 |
|
108 |
|
@@ -122,18 +212,18 @@ if (!class_exists('anr_captcha_class'))
|
|
122 |
|
123 |
function fepcf_verify ( $errors )
|
124 |
{
|
125 |
-
$error_message = str_replace(__('<strong>ERROR</strong>: ', '
|
126 |
-
|
127 |
-
if ( ! $this->verify() )
|
128 |
|
129 |
-
$
|
|
|
|
|
130 |
}
|
131 |
|
132 |
function login_verify ( $user )
|
133 |
{
|
134 |
if ( ! $this->verify() ) {
|
135 |
-
|
136 |
-
|
137 |
}
|
138 |
|
139 |
return $user;
|
@@ -142,8 +232,8 @@ if (!class_exists('anr_captcha_class'))
|
|
142 |
function registration_verify ( $errors, $sanitized_user_login, $user_email )
|
143 |
{
|
144 |
if ( ! $this->verify() ) {
|
145 |
-
|
146 |
-
|
147 |
}
|
148 |
|
149 |
return $errors;
|
@@ -153,8 +243,8 @@ if (!class_exists('anr_captcha_class'))
|
|
153 |
|
154 |
{
|
155 |
if ( ! $this->verify() ) {
|
156 |
-
|
157 |
-
|
158 |
}
|
159 |
|
160 |
return $result;
|
@@ -163,8 +253,8 @@ if (!class_exists('anr_captcha_class'))
|
|
163 |
function lostpassword_verify( $result, $user_id )
|
164 |
{
|
165 |
if ( ! $this->verify() ) {
|
166 |
-
|
167 |
-
|
168 |
}
|
169 |
|
170 |
return $result;
|
@@ -175,9 +265,9 @@ if (!class_exists('anr_captcha_class'))
|
|
175 |
{
|
176 |
|
177 |
if ( ! $this->verify() ) {
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
}
|
182 |
|
183 |
function comment_verify( $commentdata )
|
@@ -213,32 +303,32 @@ if (!class_exists('anr_captcha_class'))
|
|
213 |
$error_message = anr_get_option( 'error_message' ).'<button onclick="javascript:location.reload();">Reload Captcha</button>';
|
214 |
|
215 |
if ( method_exists($result, 'invalidate' ) ) { // wpcf7 4.1
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
}
|
221 |
}
|
|
|
222 |
|
223 |
return $result;
|
224 |
-
|
225 |
|
226 |
function bb_new_verify( $forum_id )
|
227 |
{
|
228 |
|
229 |
if ( ! $this->verify() ) {
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
}
|
234 |
|
235 |
function bb_reply_verify( $topic_id, $forum_id )
|
236 |
{
|
237 |
|
238 |
if ( ! $this->verify() ) {
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
}
|
243 |
|
244 |
|
@@ -247,4 +337,4 @@ if (!class_exists('anr_captcha_class'))
|
|
247 |
} //ENDIF
|
248 |
|
249 |
add_action('init', array(anr_captcha_class::init(), 'actions_filters'));
|
250 |
-
|
6 |
{
|
7 |
private static $instance;
|
8 |
|
9 |
+
private static $captcha_count = 0;
|
10 |
+
|
11 |
public static function init()
|
12 |
{
|
13 |
if(!self::$instance instanceof self) {
|
19 |
function actions_filters()
|
20 |
{
|
21 |
if ( '1' == anr_get_option( 'fep_contact_form' )) {
|
22 |
+
add_action ('fepcf_message_form_after_content', array($this, 'form_field'), 99);
|
23 |
+
add_action ('fepcf_action_message_before_send', array($this, 'fepcf_verify'));
|
24 |
}
|
25 |
|
26 |
if ( '1' == anr_get_option( 'login' ) && !defined('XMLRPC_REQUEST')) {
|
27 |
+
add_action ('login_form', array($this, 'form_field'), 99);
|
28 |
+
add_action ('woocommerce_login_form', array($this, 'form_field'), 99);
|
29 |
+
add_filter ('authenticate', array($this, 'login_verify'), 999 );
|
30 |
}
|
31 |
|
32 |
if ( '1' == anr_get_option( 'registration' )) {
|
33 |
+
add_action ('register_form', array($this, 'form_field'), 99);
|
34 |
+
add_filter ('registration_errors', array($this, 'registration_verify'), 10, 3 );
|
35 |
+
add_filter ('woocommerce_registration_errors', array($this, 'registration_verify'), 10, 3 );
|
36 |
}
|
37 |
|
38 |
if ( '1' == anr_get_option( 'ms_user_signup' )) {
|
39 |
+
add_action ('signup_extra_fields', array($this, 'ms_form_field'), 99);
|
40 |
+
add_filter ('wpmu_validate_user_signup', array($this, 'ms_form_field_verify'));
|
41 |
}
|
42 |
|
43 |
if ( '1' == anr_get_option( 'lost_password' )) {
|
44 |
+
add_action ('lostpassword_form', array($this, 'form_field'), 99);
|
45 |
+
add_action ('woocommerce_lostpassword_form', array($this, 'form_field'), 99);
|
46 |
+
add_action ('allow_password_reset', array($this, 'lostpassword_verify'), 10, 2); //lostpassword_post does not return wp_error
|
47 |
}
|
48 |
|
49 |
if ( '1' == anr_get_option( 'reset_password' )) {
|
50 |
+
add_action ('resetpass_form', array($this, 'form_field'), 99);
|
51 |
+
add_action ('woocommerce_lostpassword_form', array($this, 'form_field'), 99);
|
52 |
+
add_filter ('validate_password_reset', array($this, 'reset_password_verify'), 10, 2 );
|
53 |
}
|
54 |
|
55 |
if ( '1' == anr_get_option( 'comment' )) {
|
56 |
+
add_filter ('comment_form_field_comment', array($this, 'comment_form_field') );
|
57 |
+
add_filter ('preprocess_comment', array($this, 'comment_verify') );
|
58 |
}
|
59 |
|
60 |
if ( function_exists( 'wpcf7_add_shortcode' )) {
|
61 |
+
wpcf7_add_shortcode('anr_nocaptcha', array($this, 'wpcf7_form_field'), true);
|
62 |
+
add_filter('wpcf7_validate_anr_nocaptcha', array($this, 'wpcf7_verify'), 10, 2);
|
63 |
}
|
64 |
|
65 |
if ( '1' == anr_get_option( 'bb_new' )) {
|
66 |
+
add_action ('bbp_theme_before_topic_form_submit_wrapper', array($this, 'form_field'), 99);
|
67 |
+
add_action ('bbp_new_topic_pre_extras', array($this, 'bb_new_verify') );
|
68 |
}
|
69 |
|
70 |
if ( '1' == anr_get_option( 'bb_reply' )) {
|
71 |
+
add_action ('bbp_theme_before_reply_form_submit_wrapper', array($this, 'form_field'), 99);
|
72 |
+
add_action ('bbp_new_reply_pre_extras', array($this, 'bb_reply_verify'), 10, 2 );
|
73 |
}
|
74 |
}
|
75 |
|
76 |
+
function total_captcha()
|
77 |
+
{
|
78 |
+
return self::$captcha_count;
|
79 |
+
}
|
80 |
+
|
81 |
+
function captcha_form_field()
|
82 |
+
{
|
83 |
+
self::$captcha_count++;
|
84 |
+
$no_js = anr_get_option( 'no_js' );
|
85 |
+
$site_key = trim(anr_get_option( 'site_key' ));
|
86 |
+
$number = $this->total_captcha();
|
87 |
+
|
88 |
+
$field = '<div id="anr_captcha_field_' . $number . '"></div>';
|
89 |
+
|
90 |
+
if ( 1 == $no_js )
|
91 |
+
{
|
92 |
+
$field .='<noscript>
|
93 |
+
<div>
|
94 |
+
<div style="width: 302px; height: 422px; position: relative;">
|
95 |
+
<div style="width: 302px; height: 422px; position: absolute;">
|
96 |
+
<iframe src="https://www.google.com/recaptcha/api/fallback?k='. $site_key .'"
|
97 |
+
frameborder="0" scrolling="no"
|
98 |
+
style="width: 302px; height:422px; border-style: none;">
|
99 |
+
</iframe>
|
100 |
+
</div>
|
101 |
+
</div>
|
102 |
+
<div style="width: 300px; height: 60px; border-style: none;
|
103 |
+
bottom: 12px; left: 25px; margin: 0px; padding: 0px; right: 25px;
|
104 |
+
background: #f9f9f9; border: 1px solid #c1c1c1; border-radius: 3px;">
|
105 |
+
<textarea id="g-recaptcha-response-'.$number.'" name="g-recaptcha-response"
|
106 |
+
class="g-recaptcha-response"
|
107 |
+
style="width: 250px; height: 40px; border: 1px solid #c1c1c1;
|
108 |
+
margin: 10px 25px; padding: 0px; resize: none;" ></textarea>
|
109 |
+
</div>
|
110 |
+
</div>
|
111 |
+
</noscript>';
|
112 |
+
}
|
113 |
+
|
114 |
+
return $field;
|
115 |
+
}
|
116 |
+
|
117 |
+
function footer_script()
|
118 |
+
{
|
119 |
+
$number = $this->total_captcha();
|
120 |
+
static $included = false;
|
121 |
+
|
122 |
+
if ( !$number )
|
123 |
+
return;
|
124 |
+
|
125 |
+
if ( $included )
|
126 |
+
return;
|
127 |
+
|
128 |
+
$included = true;
|
129 |
+
|
130 |
+
$site_key = trim(anr_get_option( 'site_key' ));
|
131 |
+
$theme = anr_get_option( 'theme', 'light' );
|
132 |
+
$size = anr_get_option( 'size', 'normal' );
|
133 |
+
$language = trim(anr_get_option( 'language' ));
|
134 |
+
|
135 |
+
$lang = "";
|
136 |
+
if ( $language )
|
137 |
+
$lang = "&hl=$language";
|
138 |
+
|
139 |
+
?>
|
140 |
+
<script type="text/javascript">
|
141 |
+
var anr_onloadCallback = function() {
|
142 |
+
<?php for ( $num = 1; $num <= $number; $num++ ) { ?>
|
143 |
+
var anr_captcha_<?php echo $num; ?>;
|
144 |
+
anr_captcha_<?php echo $num; ?> = grecaptcha.render('anr_captcha_field_<?php echo $num; ?>', {
|
145 |
+
'sitekey' : '<?php echo esc_js( $site_key ); ?>',
|
146 |
+
'theme' : '<?php echo esc_js( $theme ); ?>',
|
147 |
+
'size' : '<?php echo esc_js( $size ); ?>'
|
148 |
+
});
|
149 |
+
<?php } ?>
|
150 |
+
};
|
151 |
+
</script>
|
152 |
+
<script src="https://www.google.com/recaptcha/api.js?onload=anr_onloadCallback&render=explicit<?php echo esc_js( $lang ); ?>"
|
153 |
+
async defer>
|
154 |
+
</script>
|
155 |
+
|
156 |
+
<?php
|
157 |
+
|
158 |
+
}
|
159 |
+
|
160 |
|
161 |
function form_field()
|
162 |
{
|
192 |
if ( is_user_logged_in() && $loggedin_hide )
|
193 |
return $defaults;
|
194 |
|
195 |
+
$defaults = $defaults. '<p>' .anr_captcha_form_field( false ). '</p>';
|
196 |
return $defaults;
|
197 |
|
198 |
|
212 |
|
213 |
function fepcf_verify ( $errors )
|
214 |
{
|
215 |
+
$error_message = str_replace(__('<strong>ERROR</strong>: ', 'advanced-nocaptcha-recaptcha'), '', anr_get_option( 'error_message' ));
|
|
|
|
|
216 |
|
217 |
+
if ( ! $this->verify() ){
|
218 |
+
$errors->add('anr_error', $error_message);
|
219 |
+
}
|
220 |
}
|
221 |
|
222 |
function login_verify ( $user )
|
223 |
{
|
224 |
if ( ! $this->verify() ) {
|
225 |
+
$error_message = anr_get_option( 'error_message' );
|
226 |
+
return new WP_Error( 'anr_error', $error_message );
|
227 |
}
|
228 |
|
229 |
return $user;
|
232 |
function registration_verify ( $errors, $sanitized_user_login, $user_email )
|
233 |
{
|
234 |
if ( ! $this->verify() ) {
|
235 |
+
$error_message = anr_get_option( 'error_message' );
|
236 |
+
$errors->add( 'anr_error', $error_message );
|
237 |
}
|
238 |
|
239 |
return $errors;
|
243 |
|
244 |
{
|
245 |
if ( ! $this->verify() ) {
|
246 |
+
$error_message = str_replace(__('<strong>ERROR</strong>: ', 'advanced-nocaptcha-recaptcha'), '', anr_get_option( 'error_message' ));
|
247 |
+
$result['errors']->add( 'anr_error', $error_message );
|
248 |
}
|
249 |
|
250 |
return $result;
|
253 |
function lostpassword_verify( $result, $user_id )
|
254 |
{
|
255 |
if ( ! $this->verify() ) {
|
256 |
+
$error_message = anr_get_option( 'error_message' );
|
257 |
+
return new WP_Error( 'anr_error', $error_message );
|
258 |
}
|
259 |
|
260 |
return $result;
|
265 |
{
|
266 |
|
267 |
if ( ! $this->verify() ) {
|
268 |
+
$error_message = anr_get_option( 'error_message' );
|
269 |
+
$errors->add('anr_error', $error_message);
|
270 |
+
}
|
271 |
}
|
272 |
|
273 |
function comment_verify( $commentdata )
|
303 |
$error_message = anr_get_option( 'error_message' ).'<button onclick="javascript:location.reload();">Reload Captcha</button>';
|
304 |
|
305 |
if ( method_exists($result, 'invalidate' ) ) { // wpcf7 4.1
|
306 |
+
$result->invalidate( $tag, $error_message );
|
307 |
+
} else {
|
308 |
+
$result['valid'] = false;
|
309 |
+
$result['reason'][$name] = $error_message;
|
|
|
310 |
}
|
311 |
+
}
|
312 |
|
313 |
return $result;
|
314 |
+
}
|
315 |
|
316 |
function bb_new_verify( $forum_id )
|
317 |
{
|
318 |
|
319 |
if ( ! $this->verify() ) {
|
320 |
+
$error_message = anr_get_option( 'error_message' );
|
321 |
+
bbp_add_error('anr_error', $error_message);
|
322 |
+
}
|
323 |
}
|
324 |
|
325 |
function bb_reply_verify( $topic_id, $forum_id )
|
326 |
{
|
327 |
|
328 |
if ( ! $this->verify() ) {
|
329 |
+
$error_message = anr_get_option( 'error_message' );
|
330 |
+
bbp_add_error('anr_error', $error_message);
|
331 |
+
}
|
332 |
}
|
333 |
|
334 |
|
337 |
} //ENDIF
|
338 |
|
339 |
add_action('init', array(anr_captcha_class::init(), 'actions_filters'));
|
340 |
+
|
functions.php
CHANGED
@@ -24,9 +24,10 @@ function anr_get_option( $option, $default = '', $section = 'anr_admin_options'
|
|
24 |
function anr_translation()
|
25 |
{
|
26 |
//SETUP TEXT DOMAIN FOR TRANSLATIONS
|
27 |
-
load_plugin_textdomain('
|
28 |
}
|
29 |
-
|
|
|
30 |
function anr_enqueue_scripts()
|
31 |
{
|
32 |
$language = trim(anr_get_option( 'language' ));
|
@@ -41,15 +42,8 @@ function anr_enqueue_scripts()
|
|
41 |
|
42 |
function anr_login_enqueue_scripts()
|
43 |
{
|
44 |
-
$language = trim(anr_get_option( 'language' ));
|
45 |
$remove_css = trim(anr_get_option( 'remove_css' ));
|
46 |
|
47 |
-
$lang = "";
|
48 |
-
if ( $language )
|
49 |
-
$lang = "?hl=$language";
|
50 |
-
|
51 |
-
wp_register_script( 'anr-google-recaptcha-script', "https://www.google.com/recaptcha/api.js$lang", array(), '2.0', true );
|
52 |
-
|
53 |
if ( !$remove_css )
|
54 |
wp_enqueue_style( 'anr-login-style', ANR_PLUGIN_URL . 'style/style.css' );
|
55 |
|
@@ -75,58 +69,23 @@ function anr_include_require_files()
|
|
75 |
require_once ( $fep_file );
|
76 |
}
|
77 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
|
79 |
function anr_captcha_form_field( $echo = true )
|
80 |
{
|
81 |
-
$site_key = trim(anr_get_option( 'site_key' ));
|
82 |
-
$theme = anr_get_option( 'theme', 'light' );
|
83 |
-
$size = anr_get_option( 'size', 'normal' );
|
84 |
-
$no_js = anr_get_option( 'no_js' );
|
85 |
-
|
86 |
-
if ( !wp_script_is( 'anr-google-recaptcha-script', 'registered' ) )
|
87 |
-
{
|
88 |
-
$language = trim(anr_get_option( 'language' ));
|
89 |
-
|
90 |
-
$lang = "";
|
91 |
-
if ( $language )
|
92 |
-
$lang = "?hl=$language";
|
93 |
-
|
94 |
-
wp_register_script( 'anr-google-recaptcha-script', "https://www.google.com/recaptcha/api.js$lang", array(), '2.0', true );
|
95 |
-
|
96 |
-
}
|
97 |
-
|
98 |
-
wp_enqueue_script('anr-google-recaptcha-script');
|
99 |
-
|
100 |
-
$field = "<div class='g-recaptcha' data-sitekey='$site_key' data-theme='$theme' data-size='$size'></div>";
|
101 |
-
|
102 |
-
if ( $no_js == 1 )
|
103 |
-
{
|
104 |
-
$field .="<noscript>
|
105 |
-
<div style='width: 302px; height: 352px;'>
|
106 |
-
<div style='width: 302px; height: 352px; position: relative;'>
|
107 |
-
<div style='width: 302px; height: 352px; position: absolute;'>
|
108 |
-
<iframe src='https://www.google.com/recaptcha/api/fallback?k=$site_key'
|
109 |
-
frameborder='0' scrolling='no'
|
110 |
-
style='width: 302px; height:352px; border-style: none;'>
|
111 |
-
</iframe>
|
112 |
-
</div>
|
113 |
-
<div style='width: 250px; height: 80px; position: absolute; border-style: none;
|
114 |
-
bottom: 21px; left: 25px; margin: 0px; padding: 0px; right: 25px;'>
|
115 |
-
<textarea id='g-recaptcha-response' name='g-recaptcha-response'
|
116 |
-
class='g-recaptcha-response'
|
117 |
-
style='width: 250px; height: 80px; border: 1px solid #c1c1c1;
|
118 |
-
margin: 0px; padding: 0px; resize: none;' value=''>
|
119 |
-
</textarea>
|
120 |
-
</div>
|
121 |
-
</div>
|
122 |
-
</div>
|
123 |
-
</noscript>";
|
124 |
-
}
|
125 |
|
126 |
if ( $echo ) {
|
127 |
-
echo
|
128 |
} else {
|
129 |
-
return
|
130 |
}
|
131 |
|
132 |
}
|
24 |
function anr_translation()
|
25 |
{
|
26 |
//SETUP TEXT DOMAIN FOR TRANSLATIONS
|
27 |
+
load_plugin_textdomain('advanced-nocaptcha-recaptcha', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
|
28 |
}
|
29 |
+
|
30 |
+
//Not used since version 2.1
|
31 |
function anr_enqueue_scripts()
|
32 |
{
|
33 |
$language = trim(anr_get_option( 'language' ));
|
42 |
|
43 |
function anr_login_enqueue_scripts()
|
44 |
{
|
|
|
45 |
$remove_css = trim(anr_get_option( 'remove_css' ));
|
46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
if ( !$remove_css )
|
48 |
wp_enqueue_style( 'anr-login-style', ANR_PLUGIN_URL . 'style/style.css' );
|
49 |
|
69 |
require_once ( $fep_file );
|
70 |
}
|
71 |
}
|
72 |
+
add_action('wp_footer', 'anr_wp_footer');
|
73 |
+
add_action('login_footer', 'anr_wp_footer');
|
74 |
+
|
75 |
+
function anr_wp_footer()
|
76 |
+
{
|
77 |
+
anr_captcha_class::init()->footer_script();
|
78 |
+
}
|
79 |
+
|
80 |
+
add_action( 'anr_captcha_form_field', 'anr_captcha_form_field' );
|
81 |
|
82 |
function anr_captcha_form_field( $echo = true )
|
83 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
|
85 |
if ( $echo ) {
|
86 |
+
echo anr_captcha_class::init()->captcha_form_field();
|
87 |
} else {
|
88 |
+
return anr_captcha_class::init()->captcha_form_field();
|
89 |
}
|
90 |
|
91 |
}
|
languages/advanced-nocaptcha-recaptcha-en_US.mo
ADDED
Binary file
|
languages/{anr.pot → advanced-nocaptcha-recaptcha-en_US.po}
RENAMED
@@ -1,373 +1,390 @@
|
|
1 |
-
# Copyright (C) 2015 Advanced noCaptcha reCaptcha
|
2 |
-
# This file is distributed under the same license as the Advanced noCaptcha reCaptcha package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Advanced noCaptcha reCaptcha
|
6 |
-
"
|
7 |
-
"
|
8 |
-
"
|
|
|
|
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"
|
13 |
-
"
|
14 |
-
"
|
|
|
|
|
15 |
|
16 |
-
#: admin/anr-admin-class.php:
|
17 |
msgid "Settings"
|
18 |
msgstr ""
|
19 |
|
20 |
-
#: admin/anr-admin-class.php:
|
21 |
msgid "Instruction"
|
22 |
msgstr ""
|
23 |
|
24 |
-
#: admin/anr-admin-class.php:
|
25 |
msgid "Auto Detect"
|
26 |
msgstr ""
|
27 |
|
28 |
-
#: admin/anr-admin-class.php:
|
29 |
msgid "Arabic"
|
30 |
msgstr ""
|
31 |
|
32 |
-
#: admin/anr-admin-class.php:
|
33 |
msgid "Bulgarian"
|
34 |
msgstr ""
|
35 |
|
36 |
-
#: admin/anr-admin-class.php:
|
37 |
msgid "Catalan"
|
38 |
msgstr ""
|
39 |
|
40 |
-
#: admin/anr-admin-class.php:
|
41 |
msgid "Chinese (Simplified)"
|
42 |
msgstr ""
|
43 |
|
44 |
-
#: admin/anr-admin-class.php:
|
45 |
msgid "Chinese (Traditional)"
|
46 |
msgstr ""
|
47 |
|
48 |
-
#: admin/anr-admin-class.php:
|
49 |
msgid "Croatian"
|
50 |
msgstr ""
|
51 |
|
52 |
-
#: admin/anr-admin-class.php:
|
53 |
msgid "Czech"
|
54 |
msgstr ""
|
55 |
|
56 |
-
#: admin/anr-admin-class.php:
|
57 |
msgid "Danish"
|
58 |
msgstr ""
|
59 |
|
60 |
-
#: admin/anr-admin-class.php:
|
61 |
msgid "Dutch"
|
62 |
msgstr ""
|
63 |
|
64 |
-
#: admin/anr-admin-class.php:
|
65 |
msgid "English (UK)"
|
66 |
msgstr ""
|
67 |
|
68 |
-
#: admin/anr-admin-class.php:
|
69 |
msgid "English (US)"
|
70 |
msgstr ""
|
71 |
|
72 |
-
#: admin/anr-admin-class.php:
|
73 |
msgid "Filipino"
|
74 |
msgstr ""
|
75 |
|
76 |
-
#: admin/anr-admin-class.php:
|
77 |
msgid "Finnish"
|
78 |
msgstr ""
|
79 |
|
80 |
-
#: admin/anr-admin-class.php:
|
81 |
msgid "French"
|
82 |
msgstr ""
|
83 |
|
84 |
-
#: admin/anr-admin-class.php:
|
85 |
msgid "French (Canadian)"
|
86 |
msgstr ""
|
87 |
|
88 |
-
#: admin/anr-admin-class.php:
|
89 |
msgid "German"
|
90 |
msgstr ""
|
91 |
|
92 |
-
#: admin/anr-admin-class.php:
|
93 |
msgid "German (Austria)"
|
94 |
msgstr ""
|
95 |
|
96 |
-
#: admin/anr-admin-class.php:
|
97 |
msgid "German (Switzerland)"
|
98 |
msgstr ""
|
99 |
|
100 |
-
#: admin/anr-admin-class.php:
|
101 |
msgid "Greek"
|
102 |
msgstr ""
|
103 |
|
104 |
-
#: admin/anr-admin-class.php:
|
105 |
msgid "Hebrew"
|
106 |
msgstr ""
|
107 |
|
108 |
-
#: admin/anr-admin-class.php:
|
109 |
msgid "Hindi"
|
110 |
msgstr ""
|
111 |
|
112 |
-
#: admin/anr-admin-class.php:
|
113 |
msgid "Hungarain"
|
114 |
msgstr ""
|
115 |
|
116 |
-
#: admin/anr-admin-class.php:
|
117 |
msgid "Indonesian"
|
118 |
msgstr ""
|
119 |
|
120 |
-
#: admin/anr-admin-class.php:
|
121 |
msgid "Italian"
|
122 |
msgstr ""
|
123 |
|
124 |
-
#: admin/anr-admin-class.php:
|
125 |
msgid "Japanese"
|
126 |
msgstr ""
|
127 |
|
128 |
-
#: admin/anr-admin-class.php:
|
129 |
msgid "Korean"
|
130 |
msgstr ""
|
131 |
|
132 |
-
#: admin/anr-admin-class.php:
|
133 |
msgid "Latvian"
|
134 |
msgstr ""
|
135 |
|
136 |
-
#: admin/anr-admin-class.php:
|
137 |
msgid "Lithuanian"
|
138 |
msgstr ""
|
139 |
|
140 |
-
#: admin/anr-admin-class.php:
|
141 |
msgid "Norwegian"
|
142 |
msgstr ""
|
143 |
|
144 |
-
#: admin/anr-admin-class.php:
|
145 |
msgid "Persian"
|
146 |
msgstr ""
|
147 |
|
148 |
-
#: admin/anr-admin-class.php:
|
149 |
msgid "Polish"
|
150 |
msgstr ""
|
151 |
|
152 |
-
#: admin/anr-admin-class.php:
|
153 |
msgid "Portuguese"
|
154 |
msgstr ""
|
155 |
|
156 |
-
#: admin/anr-admin-class.php:
|
157 |
msgid "Portuguese (Brazil)"
|
158 |
msgstr ""
|
159 |
|
160 |
-
#: admin/anr-admin-class.php:
|
161 |
msgid "Portuguese (Portugal)"
|
162 |
msgstr ""
|
163 |
|
164 |
-
#: admin/anr-admin-class.php:
|
165 |
msgid "Romanian"
|
166 |
msgstr ""
|
167 |
|
168 |
-
#: admin/anr-admin-class.php:
|
169 |
msgid "Russian"
|
170 |
msgstr ""
|
171 |
|
172 |
-
#: admin/anr-admin-class.php:
|
173 |
msgid "Serbian"
|
174 |
msgstr ""
|
175 |
|
176 |
-
#: admin/anr-admin-class.php:
|
177 |
msgid "Slovak"
|
178 |
msgstr ""
|
179 |
|
180 |
-
#: admin/anr-admin-class.php:
|
181 |
msgid "Slovenian"
|
182 |
msgstr ""
|
183 |
|
184 |
-
#: admin/anr-admin-class.php:
|
185 |
msgid "Spanish"
|
186 |
msgstr ""
|
187 |
|
188 |
-
#: admin/anr-admin-class.php:
|
189 |
msgid "Spanish (Latin America)"
|
190 |
msgstr ""
|
191 |
|
192 |
-
#: admin/anr-admin-class.php:
|
193 |
msgid "Swedish"
|
194 |
msgstr ""
|
195 |
|
196 |
-
#: admin/anr-admin-class.php:
|
197 |
msgid "Thai"
|
198 |
msgstr ""
|
199 |
|
200 |
-
#: admin/anr-admin-class.php:
|
201 |
msgid "Turkish"
|
202 |
msgstr ""
|
203 |
|
204 |
-
#: admin/anr-admin-class.php:
|
205 |
msgid "Ukrainian"
|
206 |
msgstr ""
|
207 |
|
208 |
-
#: admin/anr-admin-class.php:
|
209 |
msgid "Vietnamese"
|
210 |
msgstr ""
|
211 |
|
212 |
-
#: admin/anr-admin-class.php:
|
213 |
msgid "Login Form"
|
214 |
msgstr ""
|
215 |
|
216 |
-
#: admin/anr-admin-class.php:
|
217 |
msgid "Registration Form"
|
218 |
msgstr ""
|
219 |
|
220 |
-
#: admin/anr-admin-class.php:
|
|
|
|
|
|
|
|
|
221 |
msgid "Lost Password Form"
|
222 |
msgstr ""
|
223 |
|
224 |
-
#: admin/anr-admin-class.php:
|
225 |
msgid "Reset Password Form"
|
226 |
msgstr ""
|
227 |
|
228 |
-
#: admin/anr-admin-class.php:
|
229 |
msgid "Comment Form"
|
230 |
msgstr ""
|
231 |
|
232 |
#: admin/anr-admin-class.php:116
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
msgid "Options successfully saved."
|
234 |
msgstr ""
|
235 |
|
236 |
-
#: admin/anr-admin-class.php:
|
237 |
msgid "Advanced noCaptcha reCaptcha Settings"
|
238 |
msgstr ""
|
239 |
|
240 |
-
#: admin/anr-admin-class.php:
|
|
|
241 |
msgid ""
|
242 |
"If you like this plugin please <a href='%s' target='_blank'>Review in "
|
243 |
"Wordpress.org</a> and give 5 star"
|
244 |
msgstr ""
|
245 |
|
246 |
-
#: admin/anr-admin-class.php:
|
247 |
msgid "Setting"
|
248 |
msgstr ""
|
249 |
|
250 |
-
#: admin/anr-admin-class.php:
|
251 |
msgid "Value"
|
252 |
msgstr ""
|
253 |
|
254 |
-
#: admin/anr-admin-class.php:
|
255 |
msgid "Site Key"
|
256 |
msgstr ""
|
257 |
|
258 |
-
#: admin/anr-admin-class.php:
|
259 |
msgid "Secret key"
|
260 |
msgstr ""
|
261 |
|
262 |
-
#: admin/anr-admin-class.php:
|
263 |
msgid "Language"
|
264 |
msgstr ""
|
265 |
|
266 |
-
#: admin/anr-admin-class.php:
|
267 |
msgid "Theme"
|
268 |
msgstr ""
|
269 |
|
270 |
-
#: admin/anr-admin-class.php:
|
|
|
|
|
|
|
|
|
271 |
msgid "Error Message"
|
272 |
msgstr ""
|
273 |
|
274 |
-
#: admin/anr-admin-class.php:
|
275 |
msgid "Show Captcha on"
|
276 |
msgstr ""
|
277 |
|
278 |
-
#: admin/anr-admin-class.php:
|
279 |
msgid "Hide Captcha for logged in users?"
|
280 |
msgstr ""
|
281 |
|
282 |
-
#: admin/anr-admin-class.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
283 |
msgid "Show captcha if javascript disabled?"
|
284 |
msgstr ""
|
285 |
|
286 |
-
#: admin/anr-admin-class.php:
|
287 |
msgid ""
|
288 |
"If JavaScript is a requirement for your site, we advise that you do NOT "
|
289 |
-
"check this"
|
290 |
msgstr ""
|
291 |
|
292 |
-
#: admin/anr-admin-class.php:
|
293 |
msgid "Save Options"
|
294 |
msgstr ""
|
295 |
|
296 |
-
#: admin/anr-admin-class.php:
|
|
|
297 |
msgid ""
|
298 |
"For paid support pleasse visit <a href='%s' target='_blank'>Advanced "
|
299 |
"noCaptcha reCaptcha</a>"
|
300 |
msgstr ""
|
301 |
|
302 |
-
#: admin/anr-admin-class.php:
|
303 |
msgid "Plugin Author"
|
304 |
msgstr ""
|
305 |
|
306 |
-
#: admin/anr-admin-class.php:
|
307 |
msgid "No Permission!"
|
308 |
msgstr ""
|
309 |
|
310 |
-
#: admin/anr-admin-class.php:
|
311 |
msgid "Sorry, your nonce did not verify!"
|
312 |
msgstr ""
|
313 |
|
314 |
-
#: admin/anr-admin-class.php:
|
315 |
msgid "Advanced noCaptcha reCaptcha Setup Instruction"
|
316 |
msgstr ""
|
317 |
|
318 |
-
#: admin/anr-admin-class.php:
|
|
|
319 |
msgid ""
|
320 |
"Get your site key and secret key from <a href='%s' target='_blank'>GOOGLE</"
|
321 |
"a> if you do not have already."
|
322 |
msgstr ""
|
323 |
|
324 |
-
#: admin/anr-admin-class.php:
|
325 |
-
msgid ""
|
326 |
-
"Goto <a href='%s'>SETTINGS</a> page and set up as you need. and ENJOY..."
|
327 |
msgstr ""
|
328 |
|
329 |
-
#: admin/anr-admin-class.php:
|
330 |
msgid "Implement noCaptcha in Contact Form 7"
|
331 |
msgstr ""
|
332 |
|
333 |
-
#: admin/anr-admin-class.php:
|
334 |
msgid "To show noCaptcha use "
|
335 |
msgstr ""
|
336 |
|
337 |
-
#: admin/anr-admin-class.php:
|
338 |
-
msgid "
|
339 |
-
msgstr ""
|
340 |
-
|
341 |
-
#: admin/anr-admin-class.php:248
|
342 |
-
msgid "To show form field use "
|
343 |
-
msgstr ""
|
344 |
-
|
345 |
-
#: admin/anr-admin-class.php:249
|
346 |
-
msgid "To verify use "
|
347 |
msgstr ""
|
348 |
|
349 |
-
#: anr-
|
350 |
-
msgid "
|
|
|
|
|
|
|
351 |
msgstr ""
|
352 |
|
353 |
-
|
354 |
-
msgid "
|
355 |
msgstr ""
|
356 |
|
357 |
-
|
358 |
-
|
359 |
-
#. #-#-#-#-# plugin.pot (Advanced noCaptcha reCaptcha 1.1) #-#-#-#-#
|
360 |
-
#. Author URI of the plugin/theme
|
361 |
-
msgid "https://shamimbiplob.wordpress.com/contact-us/"
|
362 |
msgstr ""
|
363 |
|
364 |
-
|
365 |
-
msgid ""
|
366 |
-
"Show noCaptcha in Login, Register, Lost Password, Reset Password, Comment "
|
367 |
-
"Form (after Comment textarea before submit button). Also can implement in "
|
368 |
-
"any other form easily."
|
369 |
msgstr ""
|
370 |
|
371 |
-
|
372 |
-
msgid "
|
373 |
msgstr ""
|
|
|
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
+
"Project-Id-Version: Advanced noCaptcha reCaptcha 2.1\n"
|
4 |
+
"POT-Creation-Date: 2016-05-18 14:36+0600\n"
|
5 |
+
"PO-Revision-Date: 2016-05-18 14:36+0600\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: Shamim\n"
|
8 |
+
"Language: en_US\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 1.8.7\n"
|
13 |
+
"X-Poedit-Basepath: ..\n"
|
14 |
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
15 |
+
"X-Poedit-KeywordsList: __;_e\n"
|
16 |
+
"X-Poedit-SearchPath-0: .\n"
|
17 |
|
18 |
+
#: admin/anr-admin-class.php:41 admin/anr-admin-class.php:292
|
19 |
msgid "Settings"
|
20 |
msgstr ""
|
21 |
|
22 |
+
#: admin/anr-admin-class.php:43
|
23 |
msgid "Instruction"
|
24 |
msgstr ""
|
25 |
|
26 |
+
#: admin/anr-admin-class.php:59
|
27 |
msgid "Auto Detect"
|
28 |
msgstr ""
|
29 |
|
30 |
+
#: admin/anr-admin-class.php:60
|
31 |
msgid "Arabic"
|
32 |
msgstr ""
|
33 |
|
34 |
+
#: admin/anr-admin-class.php:61
|
35 |
msgid "Bulgarian"
|
36 |
msgstr ""
|
37 |
|
38 |
+
#: admin/anr-admin-class.php:62
|
39 |
msgid "Catalan"
|
40 |
msgstr ""
|
41 |
|
42 |
+
#: admin/anr-admin-class.php:63
|
43 |
msgid "Chinese (Simplified)"
|
44 |
msgstr ""
|
45 |
|
46 |
+
#: admin/anr-admin-class.php:64
|
47 |
msgid "Chinese (Traditional)"
|
48 |
msgstr ""
|
49 |
|
50 |
+
#: admin/anr-admin-class.php:65
|
51 |
msgid "Croatian"
|
52 |
msgstr ""
|
53 |
|
54 |
+
#: admin/anr-admin-class.php:66
|
55 |
msgid "Czech"
|
56 |
msgstr ""
|
57 |
|
58 |
+
#: admin/anr-admin-class.php:67
|
59 |
msgid "Danish"
|
60 |
msgstr ""
|
61 |
|
62 |
+
#: admin/anr-admin-class.php:68
|
63 |
msgid "Dutch"
|
64 |
msgstr ""
|
65 |
|
66 |
+
#: admin/anr-admin-class.php:69
|
67 |
msgid "English (UK)"
|
68 |
msgstr ""
|
69 |
|
70 |
+
#: admin/anr-admin-class.php:70
|
71 |
msgid "English (US)"
|
72 |
msgstr ""
|
73 |
|
74 |
+
#: admin/anr-admin-class.php:71
|
75 |
msgid "Filipino"
|
76 |
msgstr ""
|
77 |
|
78 |
+
#: admin/anr-admin-class.php:72
|
79 |
msgid "Finnish"
|
80 |
msgstr ""
|
81 |
|
82 |
+
#: admin/anr-admin-class.php:73
|
83 |
msgid "French"
|
84 |
msgstr ""
|
85 |
|
86 |
+
#: admin/anr-admin-class.php:74
|
87 |
msgid "French (Canadian)"
|
88 |
msgstr ""
|
89 |
|
90 |
+
#: admin/anr-admin-class.php:75
|
91 |
msgid "German"
|
92 |
msgstr ""
|
93 |
|
94 |
+
#: admin/anr-admin-class.php:76
|
95 |
msgid "German (Austria)"
|
96 |
msgstr ""
|
97 |
|
98 |
+
#: admin/anr-admin-class.php:77
|
99 |
msgid "German (Switzerland)"
|
100 |
msgstr ""
|
101 |
|
102 |
+
#: admin/anr-admin-class.php:78
|
103 |
msgid "Greek"
|
104 |
msgstr ""
|
105 |
|
106 |
+
#: admin/anr-admin-class.php:79
|
107 |
msgid "Hebrew"
|
108 |
msgstr ""
|
109 |
|
110 |
+
#: admin/anr-admin-class.php:80
|
111 |
msgid "Hindi"
|
112 |
msgstr ""
|
113 |
|
114 |
+
#: admin/anr-admin-class.php:81
|
115 |
msgid "Hungarain"
|
116 |
msgstr ""
|
117 |
|
118 |
+
#: admin/anr-admin-class.php:82
|
119 |
msgid "Indonesian"
|
120 |
msgstr ""
|
121 |
|
122 |
+
#: admin/anr-admin-class.php:83
|
123 |
msgid "Italian"
|
124 |
msgstr ""
|
125 |
|
126 |
+
#: admin/anr-admin-class.php:84
|
127 |
msgid "Japanese"
|
128 |
msgstr ""
|
129 |
|
130 |
+
#: admin/anr-admin-class.php:85
|
131 |
msgid "Korean"
|
132 |
msgstr ""
|
133 |
|
134 |
+
#: admin/anr-admin-class.php:86
|
135 |
msgid "Latvian"
|
136 |
msgstr ""
|
137 |
|
138 |
+
#: admin/anr-admin-class.php:87
|
139 |
msgid "Lithuanian"
|
140 |
msgstr ""
|
141 |
|
142 |
+
#: admin/anr-admin-class.php:88
|
143 |
msgid "Norwegian"
|
144 |
msgstr ""
|
145 |
|
146 |
+
#: admin/anr-admin-class.php:89
|
147 |
msgid "Persian"
|
148 |
msgstr ""
|
149 |
|
150 |
+
#: admin/anr-admin-class.php:90
|
151 |
msgid "Polish"
|
152 |
msgstr ""
|
153 |
|
154 |
+
#: admin/anr-admin-class.php:91
|
155 |
msgid "Portuguese"
|
156 |
msgstr ""
|
157 |
|
158 |
+
#: admin/anr-admin-class.php:92
|
159 |
msgid "Portuguese (Brazil)"
|
160 |
msgstr ""
|
161 |
|
162 |
+
#: admin/anr-admin-class.php:93
|
163 |
msgid "Portuguese (Portugal)"
|
164 |
msgstr ""
|
165 |
|
166 |
+
#: admin/anr-admin-class.php:94
|
167 |
msgid "Romanian"
|
168 |
msgstr ""
|
169 |
|
170 |
+
#: admin/anr-admin-class.php:95
|
171 |
msgid "Russian"
|
172 |
msgstr ""
|
173 |
|
174 |
+
#: admin/anr-admin-class.php:96
|
175 |
msgid "Serbian"
|
176 |
msgstr ""
|
177 |
|
178 |
+
#: admin/anr-admin-class.php:97
|
179 |
msgid "Slovak"
|
180 |
msgstr ""
|
181 |
|
182 |
+
#: admin/anr-admin-class.php:98
|
183 |
msgid "Slovenian"
|
184 |
msgstr ""
|
185 |
|
186 |
+
#: admin/anr-admin-class.php:99
|
187 |
msgid "Spanish"
|
188 |
msgstr ""
|
189 |
|
190 |
+
#: admin/anr-admin-class.php:100
|
191 |
msgid "Spanish (Latin America)"
|
192 |
msgstr ""
|
193 |
|
194 |
+
#: admin/anr-admin-class.php:101
|
195 |
msgid "Swedish"
|
196 |
msgstr ""
|
197 |
|
198 |
+
#: admin/anr-admin-class.php:102
|
199 |
msgid "Thai"
|
200 |
msgstr ""
|
201 |
|
202 |
+
#: admin/anr-admin-class.php:103
|
203 |
msgid "Turkish"
|
204 |
msgstr ""
|
205 |
|
206 |
+
#: admin/anr-admin-class.php:104
|
207 |
msgid "Ukrainian"
|
208 |
msgstr ""
|
209 |
|
210 |
+
#: admin/anr-admin-class.php:105
|
211 |
msgid "Vietnamese"
|
212 |
msgstr ""
|
213 |
|
214 |
+
#: admin/anr-admin-class.php:110
|
215 |
msgid "Login Form"
|
216 |
msgstr ""
|
217 |
|
218 |
+
#: admin/anr-admin-class.php:111
|
219 |
msgid "Registration Form"
|
220 |
msgstr ""
|
221 |
|
222 |
+
#: admin/anr-admin-class.php:112
|
223 |
+
msgid "Multisite User Signup Form"
|
224 |
+
msgstr ""
|
225 |
+
|
226 |
+
#: admin/anr-admin-class.php:113
|
227 |
msgid "Lost Password Form"
|
228 |
msgstr ""
|
229 |
|
230 |
+
#: admin/anr-admin-class.php:114
|
231 |
msgid "Reset Password Form"
|
232 |
msgstr ""
|
233 |
|
234 |
+
#: admin/anr-admin-class.php:115
|
235 |
msgid "Comment Form"
|
236 |
msgstr ""
|
237 |
|
238 |
#: admin/anr-admin-class.php:116
|
239 |
+
msgid "bbPress New topic"
|
240 |
+
msgstr ""
|
241 |
+
|
242 |
+
#: admin/anr-admin-class.php:117
|
243 |
+
msgid "bbPress reply to topic"
|
244 |
+
msgstr ""
|
245 |
+
|
246 |
+
#: admin/anr-admin-class.php:128
|
247 |
msgid "Options successfully saved."
|
248 |
msgstr ""
|
249 |
|
250 |
+
#: admin/anr-admin-class.php:136
|
251 |
msgid "Advanced noCaptcha reCaptcha Settings"
|
252 |
msgstr ""
|
253 |
|
254 |
+
#: admin/anr-admin-class.php:137
|
255 |
+
#, php-format
|
256 |
msgid ""
|
257 |
"If you like this plugin please <a href='%s' target='_blank'>Review in "
|
258 |
"Wordpress.org</a> and give 5 star"
|
259 |
msgstr ""
|
260 |
|
261 |
+
#: admin/anr-admin-class.php:141
|
262 |
msgid "Setting"
|
263 |
msgstr ""
|
264 |
|
265 |
+
#: admin/anr-admin-class.php:141
|
266 |
msgid "Value"
|
267 |
msgstr ""
|
268 |
|
269 |
+
#: admin/anr-admin-class.php:143
|
270 |
msgid "Site Key"
|
271 |
msgstr ""
|
272 |
|
273 |
+
#: admin/anr-admin-class.php:144
|
274 |
msgid "Secret key"
|
275 |
msgstr ""
|
276 |
|
277 |
+
#: admin/anr-admin-class.php:146
|
278 |
msgid "Language"
|
279 |
msgstr ""
|
280 |
|
281 |
+
#: admin/anr-admin-class.php:155
|
282 |
msgid "Theme"
|
283 |
msgstr ""
|
284 |
|
285 |
+
#: admin/anr-admin-class.php:161
|
286 |
+
msgid "Size"
|
287 |
+
msgstr ""
|
288 |
+
|
289 |
+
#: admin/anr-admin-class.php:167
|
290 |
msgid "Error Message"
|
291 |
msgstr ""
|
292 |
|
293 |
+
#: admin/anr-admin-class.php:169
|
294 |
msgid "Show Captcha on"
|
295 |
msgstr ""
|
296 |
|
297 |
+
#: admin/anr-admin-class.php:186
|
298 |
msgid "Hide Captcha for logged in users?"
|
299 |
msgstr ""
|
300 |
|
301 |
+
#: admin/anr-admin-class.php:187
|
302 |
+
msgid "Remove this plugin's css from login page?"
|
303 |
+
msgstr ""
|
304 |
+
|
305 |
+
#: admin/anr-admin-class.php:187
|
306 |
+
msgid "This css increase login page width to adjust with Captcha width."
|
307 |
+
msgstr ""
|
308 |
+
|
309 |
+
#: admin/anr-admin-class.php:188
|
310 |
msgid "Show captcha if javascript disabled?"
|
311 |
msgstr ""
|
312 |
|
313 |
+
#: admin/anr-admin-class.php:188
|
314 |
msgid ""
|
315 |
"If JavaScript is a requirement for your site, we advise that you do NOT "
|
316 |
+
"check this."
|
317 |
msgstr ""
|
318 |
|
319 |
+
#: admin/anr-admin-class.php:189
|
320 |
msgid "Save Options"
|
321 |
msgstr ""
|
322 |
|
323 |
+
#: admin/anr-admin-class.php:192 admin/anr-admin-class.php:281
|
324 |
+
#, php-format
|
325 |
msgid ""
|
326 |
"For paid support pleasse visit <a href='%s' target='_blank'>Advanced "
|
327 |
"noCaptcha reCaptcha</a>"
|
328 |
msgstr ""
|
329 |
|
330 |
+
#: admin/anr-admin-class.php:205
|
331 |
msgid "Plugin Author"
|
332 |
msgstr ""
|
333 |
|
334 |
+
#: admin/anr-admin-class.php:230
|
335 |
msgid "No Permission!"
|
336 |
msgstr ""
|
337 |
|
338 |
+
#: admin/anr-admin-class.php:234
|
339 |
msgid "Sorry, your nonce did not verify!"
|
340 |
msgstr ""
|
341 |
|
342 |
+
#: admin/anr-admin-class.php:267
|
343 |
msgid "Advanced noCaptcha reCaptcha Setup Instruction"
|
344 |
msgstr ""
|
345 |
|
346 |
+
#: admin/anr-admin-class.php:269
|
347 |
+
#, php-format
|
348 |
msgid ""
|
349 |
"Get your site key and secret key from <a href='%s' target='_blank'>GOOGLE</"
|
350 |
"a> if you do not have already."
|
351 |
msgstr ""
|
352 |
|
353 |
+
#: admin/anr-admin-class.php:270
|
354 |
+
msgid "Goto SETTINGS page of this plugin and set up as you need. and ENJOY..."
|
|
|
355 |
msgstr ""
|
356 |
|
357 |
+
#: admin/anr-admin-class.php:272
|
358 |
msgid "Implement noCaptcha in Contact Form 7"
|
359 |
msgstr ""
|
360 |
|
361 |
+
#: admin/anr-admin-class.php:273
|
362 |
msgid "To show noCaptcha use "
|
363 |
msgstr ""
|
364 |
|
365 |
+
#: admin/anr-admin-class.php:275
|
366 |
+
msgid "Implement noCaptcha in WooCommerce"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
367 |
msgstr ""
|
368 |
|
369 |
+
#: admin/anr-admin-class.php:276
|
370 |
+
msgid ""
|
371 |
+
"If Login Form, Registration Form, Lost Password Form, Reset Password Form is "
|
372 |
+
"selected in SETTINGS page of this plugin they will show and varify Captcha "
|
373 |
+
"in WooCommerce respective forms also."
|
374 |
msgstr ""
|
375 |
|
376 |
+
#: admin/anr-admin-class.php:278
|
377 |
+
msgid "If you want to implement noCaptcha in any other custom form"
|
378 |
msgstr ""
|
379 |
|
380 |
+
#: admin/anr-admin-class.php:279
|
381 |
+
msgid "To show form field use "
|
|
|
|
|
|
|
382 |
msgstr ""
|
383 |
|
384 |
+
#: admin/anr-admin-class.php:280
|
385 |
+
msgid "To verify use "
|
|
|
|
|
|
|
386 |
msgstr ""
|
387 |
|
388 |
+
#: anr-captcha-class.php:215 anr-captcha-class.php:246
|
389 |
+
msgid "<strong>ERROR</strong>: "
|
390 |
msgstr ""
|
readme.txt
CHANGED
@@ -1,23 +1,24 @@
|
|
1 |
=== Advanced noCaptcha reCaptcha ===
|
2 |
Contributors: shamim51
|
3 |
-
Tags: recaptcha,nocaptcha,no captcha,bot,spam,captcha,contact form 7 captcha,widget,plugin,sidebar,shortcode,page,posts,comments,google,bbpress,multisite
|
4 |
-
Donate link: https://www.paypal.
|
5 |
Requires at least: 2.8
|
6 |
-
Tested up to: 4.
|
7 |
Stable tag: trunk
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
-
Show noCaptcha in Comment
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
Show noCaptcha in Comment Form (after Comment textarea before submit button), Contact Form 7, bbPress, Login, Register, Lost Password, Reset Password. Also can implement in any other form easily.
|
16 |
|
17 |
= Show noCaptcha on =
|
18 |
|
19 |
* Comment Form (after Comment textarea before submit button)
|
20 |
* Contact Form 7
|
|
|
21 |
* Login
|
22 |
* Register
|
23 |
* Multisite User Signup
|
@@ -48,24 +49,35 @@ Show noCaptcha in Comment Form (after Comment textarea before submit button), Co
|
|
48 |
= Can i use this plugin to my language? =
|
49 |
Yes. this plugin is translate ready. But If your language is not available you can make one. If you want to help us to translate this plugin to your language you are welcome.
|
50 |
|
|
|
|
|
|
|
51 |
|
52 |
== Screenshots ==
|
53 |
|
54 |
1. Captcha in comment form
|
55 |
2. Captcha in Contact Form 7
|
56 |
-
3. Captcha in
|
57 |
-
4. Captcha in
|
58 |
-
5. Captcha in
|
59 |
-
6.
|
60 |
-
7. Advanced noCaptcha reCaptcha
|
|
|
61 |
|
62 |
== Changelog ==
|
63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
= 1.3 =
|
65 |
|
66 |
* New filter 'anr_same_settings_for_all_sites' added, Now same settings can be used for all sites in Multisite.
|
67 |
* Multisite User Signup Form added.
|
68 |
-
* Some bug
|
69 |
|
70 |
= 1.2 =
|
71 |
|
@@ -73,7 +85,7 @@ Yes. this plugin is translate ready. But If your language is not available you c
|
|
73 |
* bbPress New topic added
|
74 |
* bbPress reply to topic added
|
75 |
* XMLRPC_REQUEST Check
|
76 |
-
* Some bug
|
77 |
|
78 |
= 1.1 =
|
79 |
|
@@ -81,6 +93,13 @@ Yes. this plugin is translate ready. But If your language is not available you c
|
|
81 |
|
82 |
== Upgrade Notice ==
|
83 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
= 1.3 =
|
85 |
|
86 |
* New filter 'anr_same_settings_for_all_sites' added, Now same settings can be used for all sites in Multisite.
|
1 |
=== Advanced noCaptcha reCaptcha ===
|
2 |
Contributors: shamim51
|
3 |
+
Tags: recaptcha,nocaptcha,no captcha,bot,spam,captcha,contact form 7 captcha,woocommerce captcha,woocommerce nocaptcha, woocommerce,widget,plugin,sidebar,shortcode,page,posts,comments,google,bbpress,multisite,multiple
|
4 |
+
Donate link: https://www.paypal.me/hasanshamim
|
5 |
Requires at least: 2.8
|
6 |
+
Tested up to: 4.5.2
|
7 |
Stable tag: trunk
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
+
Show noCaptcha in Comment (after Comment textarea before submit button), Contact Form 7, bbpress, woocommerce, Login, Register, Lost & Reset Password.
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
Show noCaptcha in Comment Form (after Comment textarea before submit button), Contact Form 7, bbPress, woocommerce, Login, Register, Lost Password, Reset Password. Also can implement in any other form easily. **Allow multiple captcha in same page.**
|
16 |
|
17 |
= Show noCaptcha on =
|
18 |
|
19 |
* Comment Form (after Comment textarea before submit button)
|
20 |
* Contact Form 7
|
21 |
+
* WooCommerce
|
22 |
* Login
|
23 |
* Register
|
24 |
* Multisite User Signup
|
49 |
= Can i use this plugin to my language? =
|
50 |
Yes. this plugin is translate ready. But If your language is not available you can make one. If you want to help us to translate this plugin to your language you are welcome.
|
51 |
|
52 |
+
= Can i show multiple captcha in same page? =
|
53 |
+
Yes. You can show unlimited number of captcha in same page.
|
54 |
+
|
55 |
|
56 |
== Screenshots ==
|
57 |
|
58 |
1. Captcha in comment form
|
59 |
2. Captcha in Contact Form 7
|
60 |
+
3. Captcha in WooCommerce (multiple in same page)
|
61 |
+
4. Captcha in Login Form
|
62 |
+
5. Captcha in Register Form
|
63 |
+
6. Captcha in Lost Password Form
|
64 |
+
7. Advanced noCaptcha reCaptcha Settings
|
65 |
+
8. Advanced noCaptcha reCaptcha Setup Instruction
|
66 |
|
67 |
== Changelog ==
|
68 |
|
69 |
+
= 2.1 =
|
70 |
+
|
71 |
+
* Captcha in WooCommerce added (WooCommerce Login, Registration, Lost password, Reset password forms).
|
72 |
+
* Allow multiple captcha in same page.
|
73 |
+
* Text domain changed.
|
74 |
+
* Some minor bug fixed.
|
75 |
+
|
76 |
= 1.3 =
|
77 |
|
78 |
* New filter 'anr_same_settings_for_all_sites' added, Now same settings can be used for all sites in Multisite.
|
79 |
* Multisite User Signup Form added.
|
80 |
+
* Some bug fixed.
|
81 |
|
82 |
= 1.2 =
|
83 |
|
85 |
* bbPress New topic added
|
86 |
* bbPress reply to topic added
|
87 |
* XMLRPC_REQUEST Check
|
88 |
+
* Some bug fixed.
|
89 |
|
90 |
= 1.1 =
|
91 |
|
93 |
|
94 |
== Upgrade Notice ==
|
95 |
|
96 |
+
= 2.1 =
|
97 |
+
|
98 |
+
* Captcha in WooCommerce added (WooCommerce Login, Registration, Lost password, Reset password forms).
|
99 |
+
* Allow multiple captcha in same page.
|
100 |
+
* Text domain changed.
|
101 |
+
* Some minor bug fixed.
|
102 |
+
|
103 |
= 1.3 =
|
104 |
|
105 |
* New filter 'anr_same_settings_for_all_sites' added, Now same settings can be used for all sites in Multisite.
|