PluginProbe ʕ •ᴥ•ʔ
reCaptcha by BestWebSoft / 1.65
reCaptcha by BestWebSoft v1.65
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 4 years ago class-gglcptch-settings-tabs.php 4 years ago forms.php 4 years ago pro_banners.php 4 years ago
pro_banners.php
220 lines
1 <?php
2 /**
3 * Display banners on settings page
4 * @package reCaptcha by BestWebSoft
5 * @since 1.27
6 */
7
8 /**
9 * Show ads for PRO
10 * @param string $func function to call
11 * @return void
12 */
13 if ( ! function_exists( 'gglcptch_pro_block' ) ) {
14 function gglcptch_pro_block( $func, $show_cross = true, $display_always = false ) {
15 global $gglcptch_plugin_info, $wp_version, $gglcptch_options;
16 if ( $display_always || ! bws_hide_premium_options_check( $gglcptch_options ) ) { ?>
17 <div class="bws_pro_version_bloc gglcptch_pro_block <?php echo $func;?>" title="<?php _e( 'This options is available in Pro version of plugin', 'google-captcha' ); ?>">
18 <div class="bws_pro_version_table_bloc">
19 <?php if ( $show_cross ) { ?>
20 <button type="submit" name="bws_hide_premium_options" class="notice-dismiss bws_hide_premium_options" title="<?php _e( 'Close', 'google-captcha' ); ?>" value="1"></button>
21 <?php } ?>
22 <div class="bws_table_bg"></div>
23 <div class="bws_pro_version">
24 <?php call_user_func( $func ); ?>
25 </div>
26 </div>
27 <div class="bws_pro_version_tooltip">
28 <a class="bws_button" href="https://bestwebsoft.com/products/wordpress/plugins/google-captcha/?k=b850d949ccc1239cab0da315c3c822ab&pn=109&v=<?php echo $gglcptch_plugin_info["Version"]; ?>&wp_v=<?php echo $wp_version; ?>" target="_blank" title="reCaptcha Pro">
29 <?php _e( 'Upgrade to Pro', 'google-captcha' ); ?>
30 </a>
31 <div class="clear"></div>
32 </div>
33 </div>
34 <?php }
35 }
36 }
37
38 if ( ! function_exists( 'gglcptch_allowlist_banner' ) ) {
39 function gglcptch_allowlist_banner() { ?>
40 <div class="bws_info" style="line-height: 2;"><?php _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>
41 <div class="bws_info" style="line-height: 2;"><?php _e( "Allowed separators for IPs: a comma", 'google-captcha' ); ?> (<code>,</code>), <?php _e( 'semicolon', 'google-captcha' ); ?> (<code>;</code>), <?php _e( 'ordinary space, tab, new line or carriage return.', 'google-captcha' ); ?></div>
42 <?php _e( 'Reason', 'google-captcha' ); ?><br>
43 <textarea disabled></textarea>
44 <div class="bws_info" style="line-height: 2;"><?php _e( "Allowed separators for reasons: a comma", 'google-captcha' ); ?> (<code>,</code>), <?php _e( 'semicolon', 'google-captcha' ); ?> (<code>;</code>), <?php _e( 'tab, new line or carriage return.', 'google-captcha' ); ?></div>
45 <?php }
46 }
47
48 if ( ! function_exists( 'gglcptch_supported_plugins_banner' ) ) {
49 function gglcptch_supported_plugins_banner() {
50 $pro_forms = array(
51 'cf7' => array( 'form_name' => 'Contact Form 7' ),
52 'si_contact_form' => array( 'form_name' => 'Fast Secure Contact Form' ),
53 'jetpack_contact_form' => array( 'form_name' => __( 'Jetpack Contact Form', 'google-captcha' ) ),
54 'sbscrbr' => array( 'form_name' => 'Subscriber' ),
55 'mailchimp' => array( 'form_name' => 'MailChimp for Wordpress' ),
56 'bbpress_new_topic_form' => array( 'form_name' => __( 'bbPress New Topic form', 'google-captcha' ) ),
57 'bbpress_reply_form' => array( 'form_name' => __( 'bbPress Reply form', 'google-captcha' ) ),
58 'buddypress_register' => array( 'form_name' => __( 'BuddyPress Registration form', 'google-captcha' ) ),
59 'buddypress_comments' => array( 'form_name' => __( 'BuddyPress Comments form', 'google-captcha' ) ),
60 'buddypress_group' => array( 'form_name' => __( 'BuddyPress Add New Group form', 'google-captcha' ) ),
61 'woocommerce_login' => array( 'form_name' => __( 'WooCommerce Login form', 'google-captcha' ) ),
62 'woocommerce_register' => array( 'form_name' => __( 'WooCommerce Registration form', 'google-captcha' ) ),
63 'woocommerce_lost_password' => array( 'form_name' => __( 'WooCommerce Reset password form', 'google-captcha' ) ),
64 'woocommerce_checkout' => array( 'form_name' => __( 'WooCommerce Checkout form', 'google-captcha' ) ),
65 'wpforo_login_form' => array( 'form_name' => __( 'wpForo Login form', 'google-captcha' ) ),
66 'wpforo_register_form' => array( 'form_name' => __( 'wpForo Registration form', 'google-captcha' ) ),
67 'wpforo_new_topic_form' => array( 'form_name' => __( 'wpForo New Topic form', 'google-captcha' ) ),
68 'wpforo_reply_form' => array( 'form_name' => __( 'wpForo Reply form', 'google-captcha') ),
69 'ninja_form' => array( 'form_name' => __( 'Ninja Forms', 'google-captcha' ) ),
70 'divi_contact_form' => array( 'form_name' => __( 'Divi Contact Form', 'google-captcha' ) ),
71 'divi_login' => array( 'form_name' => __( 'Divi Login Form', 'google-captcha' ) ),
72 'gravity_forms' => array( 'form_name' => __( 'Gravity Forms', 'google-captcha' ) ),
73 'wpforms' => array( 'form_name' => __( 'WPForms', 'google-captcha' ) ),
74 'ultimate_member_login' => array( 'form_name' => __( 'Ultimate Member Login form', 'google-captcha' ) ),
75 'ultimate_member_register' => array( 'form_name' => __( 'Ultimate Member Registration form', 'google-captcha' ) ),
76 'ultimate_member_profile' => array( 'form_name' => __( 'Ultimate Member Profile form', 'google-captcha' ) ),
77 'caldera_forms' => array( 'form_name' => 'Caldera Forms' ),
78 'elementor_contact_form' => array( 'form_name' => __( 'Elementor Contact Form', 'google-captcha' ) ),
79 );
80 $pro_sections = array(
81 'external' => array(
82 'name' => __( 'External Plugins', 'google-captcha' ),
83 'forms' => array(
84 'cf7',
85 'gravity_forms',
86 'si_contact_form',
87 'jetpack_contact_form',
88 'sbscrbr',
89 'mailchimp',
90 'ninja_form',
91 'wpforms',
92 'caldera_forms',
93 'elementor_contact_form'
94 )
95 ),
96 'woocommerce' => array(
97 'name' => 'WooCommerce',
98 'forms' => array(
99 'woocommerce_login',
100 'woocommerce_register',
101 'woocommerce_lost_password',
102 'woocommerce_checkout'
103 )
104 ),
105 'buddypress' => array(
106 'name' => 'BuddyPress',
107 'forms' => array(
108 'buddypress_register',
109 'buddypress_comments',
110 'buddypress_group'
111 )
112 ),
113 'divi' => array(
114 'name' => 'Divi',
115 'forms' => array(
116 'divi_contact_form',
117 'divi_login',
118 )
119 ),
120 'bbpress' => array(
121 'name' => 'bbPress',
122 'forms' => array(
123 'bbpress_new_topic_form',
124 'bbpress_reply_form'
125 )
126 ),
127 'wpforo' => array(
128 'name' => 'Forums - wpForo',
129 'forms' => array(
130 'wpforo_login_form',
131 'wpforo_register_form',
132 'wpforo_new_topic_form',
133 'wpforo_reply_form'
134 )
135 ),
136 'ultimate_member' => array(
137 'name' => 'Ultimate Member',
138 'forms' => array(
139 'ultimate_member_login',
140 'ultimate_member_register',
141 'ultimate_member_profile'
142 )
143 )
144 ); ?>
145 <table class="form-table bws_pro_version" style="margin-right: 10px; width: calc( 100% - 10px );">
146 <tbody style="display: table-row-group;">
147 <tr valign="top">
148 <th scope="row"></th>
149 <td style="padding-top: 30px;">
150 <?php foreach ( $pro_sections as $section_slug => $section ) {
151
152 if ( empty( $section['name'] ) || empty( $section['forms'] ) || ! is_array( $section['forms'] ) ) {
153 continue;
154 } ?>
155 <!--[if !IE]> -->
156 <div class="gglcptch-settings-accordion">
157 <!-- <![endif]-->
158 <p class="gglcptch_section_header">
159 <i><?php echo $section['name']; ?></i><br />
160 </p>
161 <fieldset class="gglcptch_section_forms">
162 <?php foreach ( $section['forms'] as $form_slug ) { ?>
163 <label>
164 <input type="checkbox"<?php disabled( true ); ?> /> <?php echo $pro_forms[ $form_slug ]['form_name']; ?>
165 </label>
166 <br />
167 <?php } ?>
168 <hr />
169 </fieldset>
170 <!--[if !IE]> -->
171 </div> <!-- .gglcptch-settings-accordion -->
172 <!-- <![endif]-->
173 <?php } ?>
174 </td>
175 </tr>
176 </tbody>
177 </table>
178 <?php }
179 }
180
181 if ( ! function_exists( 'gglcptch_additional_settings_banner_general' ) ) {
182 function gglcptch_additional_settings_banner_general() { ?>
183 <table class="form-table bws_pro_version">
184 <tr valign="top">
185 <th scope="row"><?php _e( 'Language', 'google-captcha' ); ?></th>
186 <td>
187 <select disabled="disabled">
188 <option selected="selected">English</option>
189 </select>
190 </td>
191 </tr>
192 <tr valign="top">
193 <th scope="row"><?php _e( 'Multilanguage', 'google-captcha' ); ?></th>
194 <td>
195 <input disabled="disabled" type="checkbox" />
196 <span class="bws_info"><?php _e( 'Enable to switch language automatically on multilingual website using the Multilanguage plugin.', 'google-captcha' ); ?></span>
197 </td>
198 </tr>
199 </table>
200 <?php }
201 }
202
203 if ( ! function_exists( 'gglcptch_additional_settings_banner_appearance' ) ) {
204 function gglcptch_additional_settings_banner_appearance() { ?>
205 <table class="form-table bws_pro_version">
206 <tr class="gglcptch_theme_v2" valign="top">
207 <th scope="row">
208 <?php _e( 'Size', 'google-captcha' ); ?>
209 </th>
210 <td>
211 <fieldset>
212 <label><input disabled="disabled" type="radio" checked><?php _e( 'Normal', 'google-captcha' ); ?></label><br />
213 <label><input disabled="disabled" type="radio"><?php _e( 'Compact', 'google-captcha' ); ?></label>
214 </fieldset>
215 </td>
216 </tr>
217 </table>
218 <?php }
219 }
220