PluginProbe
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor / 4.0.3
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor v4.0.3
4.0.3 4.0.2 4.0.1 4.0.0 3.16.6 3.16.5 3.16.4 3.16.3 3.16.2 3.16.1 3.16.0 3.15.9 3.9.9 3.9.5 3.9.6 3.9.7 3.9.8 1.1.7 1.1.8 1.1.9 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 All 341 releases
← All changes | assets/misc/elementor/widgets/class-pb-widget-rp.php +28 -12 3.9.8 → 4.0.3 View file →
@@ -47,15 +47,30 @@
47 47 'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
48 48 )
49 49 );
50 50
51 - $this->add_control(
52 - 'pb_recovery_no_controls_text',
53 - array(
54 - 'type' => \Elementor\Controls_Manager::RAW_HTML,
55 - 'raw' => __( 'There are no available controls for the Password Recovery form', 'profile-builder' ),
56 - )
57 - );
51 + if( defined( 'WPPB_PAID_PLUGIN_DIR' ) ) {
52 + $this->add_control(
53 + 'pb_ajax',
54 + array(
55 + 'label' => __( 'AJAX Validation', 'profile-builder' ),
56 + 'type' => \Elementor\Controls_Manager::SWITCHER,
57 + 'label_on' => __( 'Yes', 'profile-builder' ),
58 + 'label_off' => __( 'No', 'profile-builder' ),
59 + 'return_value' => 'true',
60 + 'default' => 'false',
61 + )
62 + );
63 + }
64 + else {
65 + $this->add_control(
66 + 'pb_recovery_no_controls_text',
67 + array(
68 + 'type' => \Elementor\Controls_Manager::RAW_HTML,
69 + 'raw' => __( 'There are no available controls for the Password Recovery form', 'profile-builder' ),
70 + )
71 + );
72 + }
58 73
59 74 $this->end_controls_section();
60 75
61 76 // Instructions Paragraph tab
@@ -73,14 +88,14 @@
73 88
74 89 // User Login Style tab
75 90 if( !$this->is_placeholder_labels_active() ) {
76 91 $sections['label'] = [
77 - 'selector' => '.wppb-username-email label',
92 + 'selector' => '#wppb-recover-password .wppb-username-email label',
78 93 'section_name' => 'Label',
79 94 ];
80 95 }
81 96 $sections['input'] = [
82 - 'selector' => '.wppb-username-email input',
97 + 'selector' => '#wppb-recover-password .wppb-username-email input',
83 98 'section_name' => 'Input',
84 99 ];
85 100 $this->add_styling_control_group(
86 101 'User Login',
@@ -91,9 +106,10 @@
91 106 unset($sections);
92 107
93 108 // reCAPTCHA Style tab
94 109 if( !$this->is_placeholder_labels_active() ) {
95 - include_once(WPPB_PLUGIN_DIR . '/front-end/default-fields/recaptcha/recaptcha.php');
110 + include_once(WPPB_PLUGIN_DIR . '/front-end/default-fields/recaptcha/recaptcha.php');
111 + include_once(WPPB_PLUGIN_DIR . '/front-end/default-fields/turnstile/turnstile.php');
96 112 $field = wppb_get_recaptcha_field();
97 113 if (!empty($field) && isset($field['captcha-pb-forms']) && (strpos($field['captcha-pb-forms'], 'pb_recover_password') !== false)) {
98 114 $this->add_styling_control_group(
99 115 'reCAPTCHA',
@@ -100,9 +116,9 @@
100 116 '',
101 117 'pb_recover_password_recaptcha',
102 118 [
103 119 'label' => [
104 - 'selector' => '.wppb-form-field.wppb-recaptcha label',
120 + 'selector' => '#wppb-recover-password .wppb-form-field.wppb-recaptcha label',
105 121 'section_name' => 'Label',
106 122 ]
107 123 ]
108 124 );
@@ -115,9 +131,9 @@
115 131 '',
116 132 'pb_recover_password_button',
117 133 [
118 134 'input' => [
119 - 'selector' => '.form-submit input#wppb-recover-password-button',
135 + 'selector' => '#wppb-recover-password .form-submit input#wppb-recover-password-button',
120 136 'section_name' => 'Input',
121 137 ]
122 138 ]
123 139 );