← All changes
|
assets/misc/elementor/widgets/class-pb-widget-l.php
+17
-2
3.9.8
→
4.0.3
View file →
| @@ -83,8 +83,22 @@ | ||
| 83 | 83 | ) |
| 84 | 84 | ); |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | + if( defined( 'WPPB_PAID_PLUGIN_DIR' ) ) { | |
| 88 | + $this->add_control( | |
| 89 | + 'pb_ajax', | |
| 90 | + array( | |
| 91 | + 'label' => __( 'AJAX Validation', 'profile-builder' ), | |
| 92 | + 'type' => \Elementor\Controls_Manager::SWITCHER, | |
| 93 | + 'label_on' => __( 'Yes', 'profile-builder' ), | |
| 94 | + 'label_off' => __( 'No', 'profile-builder' ), | |
| 95 | + 'return_value' => 'true', | |
| 96 | + 'default' => 'false', | |
| 97 | + ) | |
| 98 | + ); | |
| 99 | + } | |
| 100 | + | |
| 87 | 101 | $this->end_controls_section(); |
| 88 | 102 | |
| 89 | 103 | $this->start_controls_section( |
| 90 | 104 | 'pb_login_redirects', |
| @@ -123,9 +137,9 @@ | ||
| 123 | 137 | 'section_name' => 'Label', |
| 124 | 138 | ]; |
| 125 | 139 | } |
| 126 | 140 | $sections['input'] = [ |
| 127 | - 'selector' => '#wppb-login-wrap .login-username input#user_login', | |
| 141 | + 'selector' => '#wppb-login-wrap .login-username input#wppb_user_login', | |
| 128 | 142 | 'section_name' => 'Input', |
| 129 | 143 | ]; |
| 130 | 144 | $this->add_styling_control_group( |
| 131 | 145 | 'User Login', |
| @@ -142,9 +156,9 @@ | ||
| 142 | 156 | 'section_name' => 'Label', |
| 143 | 157 | ]; |
| 144 | 158 | } |
| 145 | 159 | $sections['input'] = [ |
| 146 | - 'selector' => '#wppb-login-wrap .login-password input#user_pass', | |
| 160 | + 'selector' => '#wppb-login-wrap .login-password input#wppb_user_pass', | |
| 147 | 161 | 'section_name' => 'Input', |
| 148 | 162 | ]; |
| 149 | 163 | $this->add_styling_control_group( |
| 150 | 164 | 'Password', |
| @@ -177,8 +191,9 @@ | ||
| 177 | 191 | |
| 178 | 192 | // reCAPTCHA Style tab |
| 179 | 193 | if( !$this->is_placeholder_labels_active() ) { |
| 180 | 194 | include_once(WPPB_PLUGIN_DIR . '/front-end/default-fields/recaptcha/recaptcha.php'); |
| 195 | + include_once(WPPB_PLUGIN_DIR . '/front-end/default-fields/turnstile/turnstile.php'); | |
| 181 | 196 | $field = wppb_get_recaptcha_field(); |
| 182 | 197 | if (!empty($field) && isset($field['captcha-pb-forms']) && (strpos($field['captcha-pb-forms'], 'pb_recover_password') !== false)) { |
| 183 | 198 | $this->add_styling_control_group( |
| 184 | 199 | 'reCAPTCHA', |