PluginProbe ʕ •ᴥ•ʔ
reCaptcha by BestWebSoft / 1.73
reCaptcha by BestWebSoft v1.73
1.79 1.80 1.82 1.83 1.84 1.85 1.86 1.87 trunk 1.01 1.02 1.03 1.04 1.05 1.06 1.07 1.08 1.09 1.10 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.18 1.19 1.20 1.21 1.22 1.23 1.24 1.25 1.26 1.27 1.28 1.29 1.30 1.31 1.32 1.33 1.34 1.35 1.36 1.37 1.38 1.39 1.40 1.41 1.42 1.43 1.44 1.45 1.46 1.47 1.48 1.49 1.50 1.51 1.52 1.53 1.54 1.55 1.56 1.57 1.58 1.59 1.60 1.61 1.62 1.63 1.64 1.65 1.66 1.67 1.68 1.70 1.71 1.72 1.73 1.74 1.75 1.78
google-captcha / includes / pro_banners.php
google-captcha / includes Last commit date
allowlist.php 2 years ago class-gglcptch-settings-tabs.php 2 years ago forms.php 2 years ago pro_banners.php 2 years ago
pro_banners.php
280 lines
1 <?php
2 /**
3 * Display banners on settings page
4 *
5 * @package reCaptcha by BestWebSoft
6 * @since 1.27
7 */
8
9 /**
10 * Show ads for PRO
11 *
12 * @param string $func function to call
13 * @return void
14 */
15 if ( ! function_exists( 'gglcptch_pro_block' ) ) {
16 function gglcptch_pro_block( $func, $show_cross = true, $display_always = false ) {
17 global $gglcptch_plugin_info, $wp_version, $gglcptch_options;
18 if ( $display_always || ! bws_hide_premium_options_check( $gglcptch_options ) ) { ?>
19 <div class="bws_pro_version_bloc gglcptch_pro_block <?php echo esc_attr( $func ); ?>" title="<?php esc_html_e( 'This options is available in Pro version of plugin', 'google-captcha' ); ?>">
20 <div class="bws_pro_version_table_bloc">
21 <?php if ( $show_cross ) { ?>
22 <button type="submit" name="bws_hide_premium_options" class="notice-dismiss bws_hide_premium_options" title="<?php esc_html_e( 'Close', 'google-captcha' ); ?>" value="1"></button>
23 <?php } ?>
24 <div class="bws_table_bg"></div>
25 <div class="bws_pro_version">
26 <?php call_user_func( $func ); ?>
27 </div>
28 </div>
29 <div class="bws_pro_version_tooltip">
30 <a class="bws_button" href="https://bestwebsoft.com/products/wordpress/plugins/google-captcha/?k=b850d949ccc1239cab0da315c3c822ab&pn=109&v=<?php echo esc_attr( $gglcptch_plugin_info['Version'] ); ?>&wp_v=<?php echo esc_attr( $wp_version ); ?>" target="_blank" title="reCaptcha Pro">
31 <?php esc_html_e( 'Upgrade to Pro', 'google-captcha' ); ?>
32 </a>
33 <div class="clear"></div>
34 </div>
35 </div>
36 <?php
37 }
38 }
39 }
40
41 if ( ! function_exists( 'gglcptch_allowlist_banner' ) ) {
42 function gglcptch_allowlist_banner() {
43 ?>
44 <div class="bws_info" style="line-height: 2;"><?php esc_html_e( 'Allowed formats', 'google-captcha' ); ?>:&nbsp;<code>192.168.0.1, 192.168.0., 192.168., 192., 192.168.0.1/8, 123.126.12.243-185.239.34.54</code></div>
45 <div class="bws_info" style="line-height: 2;"><?php esc_html_e( 'Allowed separators for IPs: a comma', 'google-captcha' ); ?> (<code>,</code>), <?php esc_html_e( 'semicolon', 'google-captcha' ); ?> (<code>;</code>), <?php esc_html_e( 'ordinary space, tab, new line or carriage return.', 'google-captcha' ); ?></div>
46 <?php esc_html_e( 'Reason', 'google-captcha' ); ?><br>
47 <textarea disabled></textarea>
48 <div class="bws_info" style="line-height: 2;"><?php esc_html_e( 'Allowed separators for reasons: a comma', 'google-captcha' ); ?> (<code>,</code>), <?php esc_html_e( 'semicolon', 'google-captcha' ); ?> (<code>;</code>), <?php esc_html_e( 'tab, new line or carriage return.', 'google-captcha' ); ?></div>
49 <?php
50 }
51 }
52
53 if ( ! function_exists( 'gglcptch_supported_plugins_banner' ) ) {
54 function gglcptch_supported_plugins_banner() {
55 $pro_forms = array(
56 'cf7' => array( 'form_name' => 'Contact Form 7' ),
57 'si_contact_form' => array( 'form_name' => 'Fast Secure Contact Form' ),
58 'jetpack_contact_form' => array( 'form_name' => __( 'Jetpack Contact Form', 'google-captcha' ) ),
59 'sbscrbr' => array( 'form_name' => 'Subscriber' ),
60 'mailchimp' => array( 'form_name' => 'MailChimp for Wordpress' ),
61 'bbpress_new_topic_form' => array( 'form_name' => __( 'bbPress New Topic form', 'google-captcha' ) ),
62 'bbpress_reply_form' => array( 'form_name' => __( 'bbPress Reply form', 'google-captcha' ) ),
63 'buddypress_register' => array( 'form_name' => __( 'BuddyPress Registration form', 'google-captcha' ) ),
64 'buddypress_comments' => array( 'form_name' => __( 'BuddyPress Comments form', 'google-captcha' ) ),
65 'buddypress_group' => array( 'form_name' => __( 'BuddyPress Add New Group form', 'google-captcha' ) ),
66 'woocommerce_login' => array( 'form_name' => __( 'WooCommerce Login form', 'google-captcha' ) ),
67 'woocommerce_register' => array( 'form_name' => __( 'WooCommerce Registration form', 'google-captcha' ) ),
68 'woocommerce_lost_password' => array( 'form_name' => __( 'WooCommerce Reset password form', 'google-captcha' ) ),
69 'woocommerce_checkout' => array( 'form_name' => __( 'WooCommerce Checkout form', 'google-captcha' ) ),
70 'wpforo_login_form' => array( 'form_name' => __( 'wpForo Login form', 'google-captcha' ) ),
71 'wpforo_register_form' => array( 'form_name' => __( 'wpForo Registration form', 'google-captcha' ) ),
72 'wpforo_new_topic_form' => array( 'form_name' => __( 'wpForo New Topic form', 'google-captcha' ) ),
73 'wpforo_reply_form' => array( 'form_name' => __( 'wpForo Reply form', 'google-captcha' ) ),
74 'ninja_form' => array( 'form_name' => __( 'Ninja Forms', 'google-captcha' ) ),
75 'divi_contact_form' => array( 'form_name' => __( 'Divi Contact Form', 'google-captcha' ) ),
76 'divi_login' => array( 'form_name' => __( 'Divi Login Form', 'google-captcha' ) ),
77 'gravity_forms' => array( 'form_name' => __( 'Gravity Forms', 'google-captcha' ) ),
78 'wpforms' => array( 'form_name' => __( 'WPForms', 'google-captcha' ) ),
79 'ultimate_member_login' => array( 'form_name' => __( 'Ultimate Member Login form', 'google-captcha' ) ),
80 'ultimate_member_register' => array( 'form_name' => __( 'Ultimate Member Registration form', 'google-captcha' ) ),
81 'ultimate_member_profile' => array( 'form_name' => __( 'Ultimate Member Profile form', 'google-captcha' ) ),
82 'caldera_forms' => array( 'form_name' => 'Caldera Forms' ),
83 'elementor_contact_form' => array( 'form_name' => __( 'Elementor Contact Form', 'google-captcha' ) ),
84 'memberpress_checkout' => array( 'form_name' => __( 'MemberPress checkout form', 'google-captcha' ) ),
85 'memberpress_login' => array( 'form_name' => __( 'MemberPress login form', 'google-captcha' ) ),
86 'memberpress_forgot_password' => array( 'form_name' => __( 'MemberPress forgot password form', 'google-captcha' ) ),
87 'learndash_login_form' => array( 'form_name' => __( 'LearnDash login form', 'google-captcha' ) ),
88 'learndash_registration_form' => array( 'form_name' => __( 'LearnDash registration form', 'google-captcha' ) ),
89 'bboss_registration_form' => array( 'form_name' => __( 'BuddyBoss registration form', 'google-captcha' ) ),
90 );
91 $pro_sections = array(
92 'external' => array(
93 'name' => __( 'External Plugins', 'google-captcha' ),
94 'forms' => array(
95 'gravity_forms',
96 'ninja_form',
97 'jetpack_contact_form',
98 'mailchimp',
99 'sbscrbr',
100 'wpforms',
101 'cf7',
102 'si_contact_form',
103 'caldera_forms',
104 'elementor_contact_form',
105 ),
106 ),
107 'woocommerce' => array(
108 'name' => 'WooCommerce',
109 'forms' => array(
110 'woocommerce_login',
111 'woocommerce_register',
112 'woocommerce_lost_password',
113 'woocommerce_checkout',
114 ),
115 ),
116 'buddypress' => array(
117 'name' => 'BuddyPress',
118 'forms' => array(
119 'buddypress_register',
120 'buddypress_comments',
121 'buddypress_group',
122 ),
123 ),
124 'divi' => array(
125 'name' => 'Divi',
126 'forms' => array(
127 'divi_contact_form',
128 'divi_login',
129 ),
130 ),
131 'bbpress' => array(
132 'name' => 'bbPress',
133 'forms' => array(
134 'bbpress_new_topic_form',
135 'bbpress_reply_form',
136 ),
137 ),
138 'wpforo' => array(
139 'name' => 'Forums - wpForo',
140 'forms' => array(
141 'wpforo_login_form',
142 'wpforo_register_form',
143 'wpforo_new_topic_form',
144 'wpforo_reply_form',
145 ),
146 ),
147 'ultimate_member' => array(
148 'name' => 'Ultimate Member',
149 'forms' => array(
150 'ultimate_member_login',
151 'ultimate_member_register',
152 'ultimate_member_profile',
153 ),
154 ),
155 'memberpress' => array(
156 'name' => 'MemberPress',
157 'forms' => array(
158 'memberpress_checkout',
159 'memberpress_login',
160 'memberpress_forgot_password',
161 ),
162 ),
163 'learndash' => array(
164 'name' => 'LearnDash',
165 'forms' => array(
166 'learndash_login_form',
167 'learndash_registration_form',
168 ),
169 ),
170 'buddyboss' => array(
171 'name' => 'BuddyBoss',
172 'forms' => array(
173 'bboss_registration_form',
174 ),
175 ),
176 );
177 ?>
178 <table class="form-table bws_pro_version" style="margin-right: 10px; width: calc( 100% - 10px );">
179 <tbody style="display: table-row-group;">
180 <tr valign="top">
181 <th scope="row"></th>
182 <td style="padding-top: 30px;">
183 <?php
184 foreach ( $pro_sections as $section_slug => $section ) {
185
186 if ( empty( $section['name'] ) || empty( $section['forms'] ) || ! is_array( $section['forms'] ) ) {
187 continue;
188 }
189 ?>
190 <!--[if !IE]> -->
191 <div class="gglcptch-settings-accordion">
192 <!-- <![endif]-->
193 <p class="gglcptch_section_header">
194 <i><?php echo esc_html( $section['name'] ); ?></i><br />
195 </p>
196 <fieldset class="gglcptch_section_forms">
197 <?php foreach ( $section['forms'] as $form_slug ) { ?>
198 <label>
199 <input type="checkbox" <?php disabled( true ); ?> /> <?php echo esc_html( $pro_forms[ $form_slug ]['form_name'] ); ?>
200 </label>
201 <br />
202 <?php } ?>
203 <hr />
204 </fieldset>
205 <!--[if !IE]> -->
206 </div> <!-- .gglcptch-settings-accordion -->
207 <!-- <![endif]-->
208 <?php } ?>
209 </td>
210 </tr>
211 </tbody>
212 </table>
213 <?php
214 }
215 }
216
217 if ( ! function_exists( 'gglcptch_additional_settings_banner_general' ) ) {
218 function gglcptch_additional_settings_banner_general() {
219 ?>
220 <table class="form-table bws_pro_version">
221 <tr valign="top">
222 <th scope="row"><?php esc_html_e( 'Language', 'google-captcha' ); ?></th>
223 <td>
224 <select disabled="disabled">
225 <option selected="selected">English</option>
226 </select>
227 </td>
228 </tr>
229 <tr valign="top">
230 <th scope="row"><?php esc_html_e( 'Multilanguage', 'google-captcha' ); ?></th>
231 <td>
232 <input disabled="disabled" type="checkbox" />
233 <span class="bws_info"><?php esc_html_e( 'Enable to switch language automatically on multilingual website using the Multilanguage plugin.', 'google-captcha' ); ?></span>
234 </td>
235 </tr>
236 </table>
237 <?php
238 }
239 }
240
241 if ( ! function_exists( 'gglcptch_additional_settings_banner_appearance' ) ) {
242 function gglcptch_additional_settings_banner_appearance() {
243 ?>
244 <table class="form-table bws_pro_version">
245 <tr class="" valign="top">
246 <th scope="row">
247 <?php esc_html_e( 'Size', 'google-captcha' ); ?>
248 </th>
249 <td>
250 <fieldset>
251 <label><input disabled="disabled" type="radio" checked><?php esc_html_e( 'Normal', 'google-captcha' ); ?></label><br />
252 <label><input disabled="disabled" type="radio"><?php esc_html_e( 'Compact', 'google-captcha' ); ?></label>
253 </fieldset>
254 </td>
255 </tr>
256 </table>
257 <?php
258 }
259 }
260
261 if ( ! function_exists( 'gglcptch_additional_settings_banner_display' ) ) {
262 function gglcptch_additional_settings_banner_display() {
263 ?>
264 <table class="form-table bws_pro_version">
265 <tr class="gglcptch_score_v3" valign="top">
266 <th scope="row">
267 <?php esc_html_e( 'Display for', 'google-captcha' ); ?>
268 </th>
269 <td>
270 <fieldset>
271 <label><input disabled="disabled" type="radio" checked><?php esc_html_e( 'Only form', 'google-captcha' ); ?></label><br />
272 <label><input disabled="disabled" type="radio"><?php esc_html_e( 'All pages', 'google-captcha' ); ?></label>
273 </fieldset>
274 </td>
275 </tr>
276 </table>
277 <?php
278 }
279 }
280