PluginProbe
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor / 3.9.9
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor v3.9.9
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
profile-builder / admin / advanced-settings / includes / views / view-fields.php

view-fields.php in User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor 3.9.9, at admin/advanced-settings/includes/views/view-fields.php

260 lines 20.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
2
3 <?php
4 $settings = get_option( 'wppb_toolbox_fields_settings' );
5 ?>
6
7 <form method="post" action="options.php">
8
9 <?php settings_fields( 'wppb_toolbox_fields_settings' ); ?>
10
11 <div class="cozmoslabs-form-subsection-wrapper cozmoslabs-no-title-section">
12 <div class="cozmoslabs-form-field-wrapper cozmoslabs-toggle-switch">
13 <label class="cozmoslabs-form-field-label" for="toolbox-automatically-generate-password"><?php esc_html_e('Auto Generate Password', 'profile-builder'); ?></label>
14
15 <div class="cozmoslabs-toggle-container">
16 <input type="checkbox" id="toolbox-automatically-generate-password" name="wppb_toolbox_fields_settings[automatically-generate-password]"<?php echo ( ( isset( $settings['automatically-generate-password'] ) && ( $settings['automatically-generate-password'] == 'yes' ) ) ? ' checked' : '' ); ?> value="yes">
17 <label class="cozmoslabs-toggle-track" for="toolbox-automatically-generate-password"></label>
18 </div>
19
20 <div class="cozmoslabs-toggle-description">
21 <p class="cozmoslabs-description"><?php esc_html_e( 'Automatically generate password for users.', 'profile-builder' ); ?></p>
22 </div>
23
24 <p class="cozmoslabs-description cozmoslabs-description-space-left"><?php esc_html_e( 'By enabling this option, the password will be automatically generated and emailed to the user.', 'profile-builder' ); ?></p>
25 </div>
26
27 <div class="cozmoslabs-form-field-wrapper cozmoslabs-toggle-switch">
28 <label class="cozmoslabs-form-field-label" for="toolbox-send-credentials-hide"><?php esc_html_e('Send Credentials Checkbox', 'profile-builder'); ?></label>
29
30 <div class="cozmoslabs-toggle-container">
31 <input type="checkbox" id="toolbox-send-credentials-hide" name="wppb_toolbox_fields_settings[send-credentials-hide]"<?php echo ( ( isset( $settings['send-credentials-hide'] ) && ( $settings['send-credentials-hide'] == 'yes' ) ) ? ' checked' : '' ); ?> value="yes">
32 <label class="cozmoslabs-toggle-track" for="toolbox-send-credentials-hide"></label>
33 </div>
34
35 <div class="cozmoslabs-toggle-description">
36 <p class="cozmoslabs-description"><?php esc_html_e( 'Hidden and checked "Send Credentials" checkbox.', 'profile-builder' ); ?></p>
37 </div>
38
39 <p class="cozmoslabs-description cozmoslabs-description-space-left"><?php esc_html_e( 'By default, the user needs to choose if he wants to receive a registration email.', 'profile-builder' ); ?></p>
40 <p class="cozmoslabs-description cozmoslabs-description-space-left"><?php esc_html_e( 'By enabling this option, the field won\'t be shown and the message will always be sent to the user.', 'profile-builder' ); ?></p>
41 </div>
42
43 <div class="cozmoslabs-form-field-wrapper" id="wppb-toolbox-send-credentials-text">
44 <label class="cozmoslabs-form-field-label" for="toolbox-send-credentials-text"><?php esc_html_e('Send Credentials Text', 'profile-builder'); ?></label>
45 <input type="text" id="toolbox-send-credentials-text" name="wppb_toolbox_fields_settings[send-credentials-text]" value="<?php echo ( !empty( $settings['send-credentials-text']) ? esc_attr( $settings['send-credentials-text'] ) : '' ); ?>">
46
47 <p class="cozmoslabs-description cozmoslabs-description-space-left"><?php esc_html_e( 'You can modify the default "Send Credentials" field text by entering something in the field above.', 'profile-builder' ); ?></p>
48 </div>
49
50 <div class="cozmoslabs-form-field-wrapper cozmoslabs-toggle-switch">
51 <label class="cozmoslabs-form-field-label" for="toolbox-redirect-if-empty-required"><?php esc_html_e('Empty Required Fields Redirect', 'profile-builder'); ?></label>
52
53 <div class="cozmoslabs-toggle-container">
54 <input type="checkbox" id="toolbox-redirect-if-empty-required" name="wppb_toolbox_fields_settings[redirect-if-empty-required]"<?php echo ( ( isset( $settings['redirect-if-empty-required'] ) && ( $settings['redirect-if-empty-required'] == 'yes' ) ) ? ' checked' : '' ); ?> value="yes">
55 <label class="cozmoslabs-toggle-track" for="toolbox-redirect-if-empty-required"></label>
56 </div>
57
58 <div class="cozmoslabs-toggle-description">
59 <p class="cozmoslabs-description"><?php esc_html_e( 'Redirect users to a page if they have empty required fields.', 'profile-builder' ); ?></p>
60 </div>
61
62 <p class="cozmoslabs-description cozmoslabs-description-space-left"><?php esc_html_e( 'By enabling this option, logged in users which have empty required fields on their profile will be redirected to a selected page.', 'profile-builder' ); ?></p>
63 </div>
64
65 <div class="cozmoslabs-form-field-wrapper" id="wppb-toolbox-redirect-if-empty-required-url">
66 <label class="cozmoslabs-form-field-label" for="toolbox-redirect-if-empty-required-url"><?php esc_html_e('Redirect Page', 'profile-builder'); ?></label>
67
68 <select id="toolbox-redirect-if-empty-required-url" name="wppb_toolbox_fields_settings[redirect-if-empty-required-url]">
69 <option value="-1"><?php esc_html_e( 'Choose...', 'profile-builder' ) ?></option>
70
71 <?php
72 foreach( get_pages() as $page )
73 echo '<option value="' . esc_attr( $page->ID ) . '"' . ( isset( $settings['redirect-if-empty-required-url'] ) ? selected( $settings['redirect-if-empty-required-url'], $page->ID, false ) : '') . '>' . esc_html( $page->post_title ) . ' ( ID: ' . esc_attr( $page->ID ) . ')' . '</option>';
74 ?>
75 </select>
76
77 <p class="cozmoslabs-description cozmoslabs-description-space-left"><?php esc_html_e( 'Select the page where you want to redirect the users which have empty required fields on their profile.', 'profile-builder' ); ?></p>
78 <p class="cozmoslabs-description cozmoslabs-description-space-left"><?php esc_html_e( 'For example, you can redirect these users to the Edit Profile form so they can add the missing info.', 'profile-builder' ); ?></p>
79 <p class="cozmoslabs-description cozmoslabs-description-space-left"><strong><?php esc_html_e( 'NOTE:', 'profile-builder' ); ?></strong> <?php esc_html_e( 'This option will not work if you have conditional logic implemented in the form.', 'profile-builder' ); ?></p>
80 </div>
81
82 <div class="cozmoslabs-form-field-wrapper cozmoslabs-toggle-switch">
83 <label class="cozmoslabs-form-field-label" for="toolbox-restricted-words"><?php esc_html_e('Restrict Words', 'profile-builder'); ?></label>
84
85 <div class="cozmoslabs-toggle-container">
86 <input type="checkbox" id="toolbox-restricted-words" name="wppb_toolbox_fields_settings[restricted-words]"<?php echo ( ( isset( $settings['restricted-words'] ) && ( $settings['restricted-words'] == 'on' ) ) ? ' checked' : '' ); ?> value="on" class="wppb-toolbox-switch">
87 <label class="cozmoslabs-toggle-track" for="toolbox-restricted-words"></label>
88 </div>
89
90 <div class="cozmoslabs-toggle-description">
91 <p class="cozmoslabs-description"><?php esc_html_e( 'Restrict certain words from being used in fields.', 'profile-builder' ); ?></p>
92 </div>
93
94 <p class="cozmoslabs-description cozmoslabs-description-space-left"><?php esc_html_e( 'Allows you to define some words which users cannot use in their Username, First Name or Last Name when registering.', 'profile-builder' ); ?></p>
95 </div>
96
97 <div class="cozmoslabs-form-field-wrapper cozmoslabs-checkbox-list-wrapper wppb-toolbox-accordion">
98 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Affected fields', 'profile-builder' ); ?></label>
99
100 <div class="cozmoslabs-checkbox-list cozmoslabs-checkbox-4-col-list">
101 <div class="cozmoslabs-chckbox-container">
102 <input type="checkbox" id="toolbox-ban-username-words" name="wppb_toolbox_fields_settings[restricted-words-fields][]"<?php echo ( ( isset( $settings['restricted-words-fields'] ) && in_array( 'username', $settings['restricted-words-fields'] ) ) ? ' checked' : '' ); ?> value="username">
103 <label class="pms-meta-box-checkbox-label" for="toolbox-ban-username-words"><?php esc_html_e( 'Username', 'profile-builder' ); ?></label>
104 </div>
105
106 <div class="cozmoslabs-chckbox-container">
107 <input type="checkbox" id="toolbox-ban-first-name-words" name="wppb_toolbox_fields_settings[restricted-words-fields][]"<?php echo ( ( isset( $settings['restricted-words-fields'] ) && in_array( 'first-name', $settings['restricted-words-fields'] ) ) ? ' checked' : '' ); ?> value="first-name">
108 <label class="pms-meta-box-checkbox-label" for="toolbox-ban-first-name-words"><?php esc_html_e( 'First Name', 'profile-builder' ); ?></label>
109 </div>
110
111 <div class="cozmoslabs-chckbox-container">
112 <input type="checkbox" id="toolbox-ban-last-name-words" name="wppb_toolbox_fields_settings[restricted-words-fields][]"<?php echo ( ( isset( $settings['restricted-words-fields'] ) && in_array( 'last-name', $settings['restricted-words-fields'] ) ) ? ' checked' : '' ); ?> value="last-name">
113 <label class="pms-meta-box-checkbox-label" for="toolbox-ban-last-name-words"><?php esc_html_e( 'Last Name', 'profile-builder' ); ?></label>
114 </div>
115 </div>
116
117 <p class="cozmoslabs-description cozmoslabs-description-space-left"><?php esc_html_e( 'Chose which fields will be affected by the "Restrict Words" option.', 'profile-builder' ); ?></p>
118 </div>
119
120 <div class="cozmoslabs-form-field-wrapper wppb-toolbox-accordion">
121 <label class="cozmoslabs-form-field-label" for="toolbox-restricted-words-data"><?php esc_html_e( 'Restricted Words', 'profile-builder' ); ?></label>
122
123 <select id="toolbox-restricted-words-data" class="wppb-select wppb-select2" name="wppb_toolbox_fields_settings[restricted-words-data][]" multiple="multiple">
124 <?php
125 if ( !empty( $settings['restricted-words-data'] ) ) {
126 foreach( $settings['restricted-words-data'] as $domain ) {
127 echo '<option value="'.esc_attr( $domain ).'" selected>'.esc_html( $domain ).'</option>';
128 }
129 }
130 ?>
131 </select>
132
133 <p class="cozmoslabs-description cozmoslabs-description-space-left"><?php esc_html_e( 'Select the words which you want to ban with the "Restrict Words" option.', 'profile-builder' ); ?></p>
134 </div>
135
136 <div class="cozmoslabs-form-field-wrapper wppb-toolbox-accordion">
137 <label class="cozmoslabs-form-field-label" for="toolbox-restricted-words-message"><?php esc_html_e( 'Word Restriction Message', 'profile-builder' ); ?></label>
138 <input type="text" id="toolbox-restricted-words-message" name="wppb_toolbox_fields_settings[restricted-words-message]" value="<?php echo ( !empty( $settings['restricted-words-message']) ? esc_attr( $settings['restricted-words-message'] ) : '' ); ?>">
139 <p class="cozmoslabs-description cozmoslabs-description-space-left"><?php esc_html_e( 'Add a message to notify the user when a restricted word is used.', 'profile-builder' ); ?></p>
140 </div>
141
142 <div class="cozmoslabs-form-field-wrapper cozmoslabs-toggle-switch">
143 <label class="cozmoslabs-form-field-label" for="toolbox-unique-display-name"><?php esc_html_e('Unique Display Name', 'profile-builder'); ?></label>
144
145 <div class="cozmoslabs-toggle-container">
146 <input type="checkbox" id="toolbox-unique-display-name" name="wppb_toolbox_fields_settings[unique-display-name]"<?php echo ( ( isset( $settings['unique-display-name'] ) && ( $settings['unique-display-name'] == 'yes' ) ) ? ' checked' : '' ); ?> value="yes">
147 <label class="cozmoslabs-toggle-track" for="toolbox-unique-display-name"></label>
148 </div>
149
150 <div class="cozmoslabs-toggle-description">
151 <p class="cozmoslabs-description"><?php esc_html_e( 'Unique "Display Name" for users.', 'profile-builder' ); ?></p>
152 </div>
153
154 <p class="cozmoslabs-description cozmoslabs-description-space-left"><?php esc_html_e( 'By enabling this option, users will not be able to choose a "Display Name" that is already used by another account.', 'profile-builder' ); ?></p>
155 </div>
156
157 <div class="cozmoslabs-form-field-wrapper cozmoslabs-toggle-switch">
158 <label class="cozmoslabs-form-field-label" for="toolbox-capitalize-first-last"><?php esc_html_e('Capitalize Name Fields', 'profile-builder'); ?></label>
159
160 <div class="cozmoslabs-toggle-container">
161 <input type="checkbox" id="toolbox-capitalize-first-last" name="wppb_toolbox_fields_settings[capitalize-first-last]"<?php echo ( ( isset( $settings['capitalize-first-last'] ) && ( $settings['capitalize-first-last'] == 'yes' ) ) ? ' checked' : '' ); ?> value="yes">
162 <label class="cozmoslabs-toggle-track" for="toolbox-capitalize-first-last"></label>
163 </div>
164
165 <div class="cozmoslabs-toggle-description">
166 <p class="cozmoslabs-description"><?php esc_html_e( 'Always capitalize "First Name" and "Last Name" default fields.', 'profile-builder' ); ?></p>
167 </div>
168
169 <p class="cozmoslabs-description cozmoslabs-description-space-left"><?php esc_html_e( 'If you have these fields in your forms, they will be always saved with the first letter as uppercase.', 'profile-builder' ); ?></p>
170 <p class="cozmoslabs-description cozmoslabs-description-space-left"><?php esc_html_e( 'eg.: "John Doe" instead of "john doe"', 'profile-builder' ); ?></p>
171 </div>
172
173 <?php if ( defined( 'WPPB_PAID_PLUGIN_DIR' ) && file_exists( WPPB_PAID_PLUGIN_DIR . '/front-end/extra-fields/extra-fields.php' ) ) : ?>
174 <div class="cozmoslabs-form-field-wrapper cozmoslabs-toggle-switch">
175 <label class="cozmoslabs-form-field-label" for="toolbox-datepicker-starts-monday"><?php esc_html_e('Datepicker Starts Monday', 'profile-builder'); ?></label>
176
177 <div class="cozmoslabs-toggle-container">
178 <input type="checkbox" id="toolbox-datepicker-starts-monday" name="wppb_toolbox_fields_settings[datepicker-starts-monday]"<?php echo ( ( isset( $settings['datepicker-starts-monday'] ) && ( $settings['datepicker-starts-monday'] == 'yes' ) ) ? ' checked' : '' ); ?> value="yes">
179 <label class="cozmoslabs-toggle-track" for="toolbox-datepicker-starts-monday"></label>
180 </div>
181
182 <div class="cozmoslabs-toggle-description">
183 <p class="cozmoslabs-description"><?php esc_html_e( 'Make all Datepickers use Monday as the first day of the week.', 'profile-builder' ); ?></p>
184 </div>
185 </div>
186 <?php endif; ?>
187
188 <?php
189 $wppb_module_settings = get_option( 'wppb_module_settings' );
190
191 if ( $wppb_module_settings != false && isset( $wppb_module_settings['wppb_repeaterFields']) && $wppb_module_settings['wppb_repeaterFields'] == 'show' ) :
192 ?>
193 <div class="cozmoslabs-form-field-wrapper cozmoslabs-toggle-switch">
194 <label class="cozmoslabs-form-field-label" for="toolbox-remove-repeater-fields"><?php esc_html_e('Hide Repeater Fields', 'profile-builder'); ?></label>
195
196 <div class="cozmoslabs-toggle-container">
197 <input type="checkbox" id="toolbox-remove-repeater-fields" name="wppb_toolbox_fields_settings[remove-repeater-fields]"<?php echo ( ( isset( $settings['remove-repeater-fields'] ) && ( $settings['remove-repeater-fields'] == 'yes' ) ) ? ' checked' : '' ); ?> value="yes">
198 <label class="cozmoslabs-toggle-track" for="toolbox-remove-repeater-fields"></label>
199 </div>
200
201 <div class="cozmoslabs-toggle-description">
202 <p class="cozmoslabs-description"><?php esc_html_e( 'Hide Repeater Fields from the back-end Profile page.', 'profile-builder' ); ?></p>
203 </div>
204
205 <p class="cozmoslabs-description cozmoslabs-description-space-left"><?php esc_html_e( 'Repeater Fields from Profile Builder do not work on the back-end User Profile page, they are just displayed. If you want to remove them completely, you can use this option.', 'profile-builder' ); ?></p>
206 <p class="cozmoslabs-description cozmoslabs-description-space-left"><?php esc_html_e( 'You will still be able to use them from a front-end Edit Profile Form.', 'profile-builder' ); ?></p>
207 </div>
208 <?php endif; ?>
209
210 <div class="cozmoslabs-form-field-wrapper cozmoslabs-toggle-switch">
211 <label class="cozmoslabs-form-field-label" for="toolbox-password-visibility-hide"><?php esc_html_e('Password Visibility Toggle', 'profile-builder'); ?></label>
212
213 <div class="cozmoslabs-toggle-container">
214 <input type="checkbox" id="toolbox-password-visibility-hide" name="wppb_toolbox_fields_settings[password-visibility-hide]"<?php echo ( ( isset( $settings['password-visibility-hide'] ) && ( $settings['password-visibility-hide'] == 'yes' ) ) ? ' checked' : '' ); ?> value="yes">
215 <label class="cozmoslabs-toggle-track" for="toolbox-password-visibility-hide"></label>
216 </div>
217
218 <div class="cozmoslabs-toggle-description">
219 <p class="cozmoslabs-description"><?php esc_html_e( 'Show the Password field visibility toggle.', 'profile-builder' ); ?></p>
220 </div>
221
222 <p class="cozmoslabs-description cozmoslabs-description-space-left"><?php esc_html_e( 'Enabling this option will show a visibility toggle button for all Password fields..', 'profile-builder' ); ?></p>
223 </div>
224
225 <div class="cozmoslabs-form-field-wrapper cozmoslabs-toggle-switch">
226 <label class="cozmoslabs-form-field-label" for="toolbox-remove-all-fields-from-backend"><?php esc_html_e('Remove Extra Fields', 'profile-builder'); ?></label>
227
228 <div class="cozmoslabs-toggle-container">
229 <input type="checkbox" id="toolbox-remove-all-fields-from-backend" name="wppb_toolbox_fields_settings[remove-all-fields-from-backend]"<?php echo ( ( isset( $settings['remove-all-fields-from-backend'] ) && ( $settings['remove-all-fields-from-backend'] == 'yes' ) ) ? ' checked' : '' ); ?> value="yes">
230 <label class="cozmoslabs-toggle-track" for="toolbox-remove-all-fields-from-backend"></label>
231 </div>
232
233 <div class="cozmoslabs-toggle-description">
234 <p class="cozmoslabs-description"><?php esc_html_e( 'Remove all Extra Fields from back-end Edit Profile page.', 'profile-builder' ); ?></p>
235 </div>
236
237 <p class="cozmoslabs-description cozmoslabs-description-space-left"><?php esc_html_e( 'Enabling this option will remove all Custom Fields from the backend Profile page created with Profile Builder.', 'profile-builder' ); ?></p>
238 </div>
239
240 <div class="cozmoslabs-form-field-wrapper cozmoslabs-toggle-switch">
241 <label class="cozmoslabs-form-field-label" for="toolbox-update-db-meta-keys"><?php esc_html_e('Update Database Entries', 'profile-builder'); ?></label>
242
243 <div class="cozmoslabs-toggle-container">
244 <input type="checkbox" id="toolbox-update-db-meta-keys" name="wppb_toolbox_fields_settings[update-db-meta-keys]"<?php echo ( ( isset( $settings['update-db-meta-keys'] ) && ( $settings['update-db-meta-keys'] == 'yes' ) ) ? ' checked' : '' ); ?> value="yes">
245 <label class="cozmoslabs-toggle-track" for="toolbox-update-db-meta-keys"></label>
246 </div>
247
248 <div class="cozmoslabs-toggle-description">
249 <p class="cozmoslabs-description"><?php esc_html_e( 'Update database entries when changing meta key.', 'profile-builder' ); ?></p>
250 </div>
251
252 <p class="cozmoslabs-description cozmoslabs-description-space-left"><?php esc_html_e( 'Enabling this option, when changing the meta key of a field, existing entries from the database will be updated as well.', 'profile-builder' ); ?></p>
253 </div>
254
255 </div>
256
257 <?php submit_button( __( 'Save Changes', 'profile-builder' ) ); ?>
258
259 </form>
260