PluginProbe
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor / 3.14.8
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor v3.14.8
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 2.0.7 2.0.8 All 339 releases
profile-builder / admin / basic-info.php

basic-info.php in User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor 3.14.8, at admin/basic-info.php

305 lines 22.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3 /**
4 * Function that creates the "Basic Information" submenu page
5 *
6 * @since v.2.0
7 *
8 * @return void
9 */
10 function wppb_register_basic_info_submenu_page() {
11 add_submenu_page( 'profile-builder', __( 'Basic Information', 'profile-builder' ), __( 'Basic Information', 'profile-builder' ), 'manage_options', 'profile-builder-basic-info', 'wppb_basic_info_content' );
12 }
13 add_action( 'admin_menu', 'wppb_register_basic_info_submenu_page', 2 );
14
15 /**
16 * Function that adds content to the "Basic Information" submenu page
17 *
18 * @since v.2.0
19 *
20 * @return string
21 */
22 function wppb_basic_info_content() {
23
24 $version = 'Free';
25 $version = ( ( PROFILE_BUILDER == 'Profile Builder Pro' ) ? 'Pro' : $version );
26 $version = ( ( PROFILE_BUILDER == 'Profile Builder Agency' ) ? 'Agency' : $version );
27 $version = ( ( PROFILE_BUILDER == 'Profile Builder Unlimited' ) ? 'Unlimited' : $version );
28 $version = ( ( PROFILE_BUILDER == 'Profile Builder Basic' ) ? 'Basic' : $version );
29
30 ?>
31 <div class="wrap wppb-wrap wppb-info-wrap cozmoslabs-wrap">
32
33 <h1></h1>
34 <!-- WordPress Notices are added after the h1 tag -->
35
36 <div class="cozmoslabs-page-header">
37 <div>
38 <h1 class="cozmoslabs-page-title"><?php echo wp_kses_post( sprintf( __( '<strong>Profile Builder </strong> %s', 'profile-builder' ), esc_html( $version ) ) ); ?></h1>
39 <p class="cozmoslabs-description"><?php esc_html_e( 'The best way to add front-end registration, edit profile and login forms.', 'profile-builder' ); ?></p>
40 </div>
41 <div class="wppb-badge <?php echo esc_attr( $version ); ?>"><span><?php printf( esc_html__( 'Version %s', 'profile-builder' ), esc_html( PROFILE_BUILDER_VERSION ) ); ?></span></div>
42 </div>
43
44
45 <div class="cozmoslabs-form-subsection-wrapper" id="basic-info-shortcodes">
46 <h2 class="cozmoslabs-subsection-title"><?php esc_html_e( 'Shortcodes', 'profile-builder' ); ?></h2>
47
48 <div class="cozmoslabs-form-field-wrapper">
49 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Login Form', 'profile-builder' ); ?></label>
50 <strong>[wppb-login]</strong>
51 <p class="cozmoslabs-description cozmoslabs-description-space-left">
52 <?php esc_html_e( 'Friction-less login using this shortcode or a widget.', 'profile-builder' ); ?>
53 </p>
54 </div>
55
56 <div class="cozmoslabs-form-field-wrapper">
57 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Registration Form', 'profile-builder' ); ?></label>
58 <strong>[wppb-register]</strong>
59 <p class="cozmoslabs-description cozmoslabs-description-space-left">
60 <?php esc_html_e( 'Beautiful and fully customizable Registration Forms.', 'profile-builder' ); ?>
61 </p>
62 </div>
63
64 <div class="cozmoslabs-form-field-wrapper">
65 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Edit Profile Form', 'profile-builder' ); ?></label>
66 <strong>[wppb-edit-profile]</strong>
67 <p class="cozmoslabs-description cozmoslabs-description-space-left">
68 <?php esc_html_e( 'Straight forward Edit Profile Forms.', 'profile-builder' ); ?>
69 </p>
70 </div>
71
72 <?php
73 $wppb_pages_created = get_option( 'wppb_pages_created' );
74 $shortcode_pages_query = new WP_Query( array( 'post_type' => 'page', 's' => '[wppb-' ) );
75 if( empty( $wppb_pages_created ) && !$shortcode_pages_query->have_posts() ){
76 ?>
77 <div class="cozmoslabs-form-field-wrapper">
78 <p class="cozmoslabs-description cozmoslabs-notice-message"><?php esc_html_e( 'Speed up the setup process by automatically creating the form pages:', 'profile-builder' ); ?></p>
79 <a href="<?php echo esc_url( wp_nonce_url( admin_url( 'admin.php?page=profile-builder-basic-info&wppb_create_pages=true' ), 'wppb_create_pages' ) ) ?>" class="button button-primary"><?php esc_html_e( 'Create Form Pages', 'profile-builder' ); ?></a>
80 </div>
81 <?php }else{ ?>
82 <div class="cozmoslabs-form-field-wrapper">
83 <p class="cozmoslabs-description cozmoslabs-notice-message"><?php esc_html_e( 'You can see all the pages with Profile Builder form shortcodes here:', 'profile-builder' ); ?></p>
84 <a href="<?php echo esc_url( admin_url( 'edit.php?s=%5Bwppb-&post_status=all&post_type=page&action=-1&m=0&paged=1&action2=-1' ) ) ?>" class="button button-secondary"><?php esc_html_e( 'View Form Pages', 'profile-builder' ); ?></a>
85 </div>
86 <?php } ?>
87
88 </div>
89
90
91 <?php ob_start(); ?>
92
93 <div class="cozmoslabs-form-subsection-wrapper" id="basic-info-extra-features">
94 <h2 class="cozmoslabs-subsection-title"><?php esc_html_e( 'Extra Features', 'profile-builder' );?></h2>
95 <p class="cozmoslabs-description"><?php esc_html_e( 'Features that give you more control over your users, increased security and help you fight user registration spam.', 'profile-builder' ); ?></p>
96 <a href="admin.php?page=profile-builder-general-settings" class="button button-secondary"><?php esc_html_e( 'Enable extra features', 'profile-builder' ); ?></a>
97
98 <div id="basic-info-extra-features-list">
99 <div class="cozmoslabs-form-field-wrapper">
100 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Recover Password', 'profile-builder' ); ?></label>
101 <p class="cozmoslabs-description cozmoslabs-description-align-right"><?php printf( esc_html__( 'Allow users to recover their password in the front-end using the %s.', 'profile-builder' ), '<strong class="nowrap">[wppb-recover-password]</strong>' ); ?></p>
102 </div>
103
104 <div class="cozmoslabs-form-field-wrapper" id="basic-info-admin-approval">
105 <label class="cozmoslabs-form-field-label">
106 <?php esc_html_e( 'Admin Approval', 'profile-builder' ); ?>
107
108 <?php if ($version == 'Free'){ ?>
109 <span class="cozmoslabs-version-notice cozmoslabs-description-upsell"><?php printf( esc_html__( 'Only available in %1$s BASIC & PRO %2$s versions', 'profile-builder' ) ,'<a href="https://www.cozmoslabs.com/wordpress-profile-builder/?utm_source=pb-basic-info&utm_medium=client-site&utm_campaign=pb-admin-approval#pricing" target="_blank">', '</a>' );?></span>
110 <?php } ?>
111 </label>
112 <p class="cozmoslabs-description cozmoslabs-description-align-right"><?php esc_html_e( 'You decide who is a user on your website. Get notified via email or approve multiple users at once from the WordPress UI.', 'profile-builder' ); ?></p>
113 </div>
114
115 <div class="cozmoslabs-form-field-wrapper">
116 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Email Confirmation', 'profile-builder' ); ?></label>
117 <p class="cozmoslabs-description cozmoslabs-description-align-right"><?php esc_html_e( 'Make sure users sign up with genuine emails. On registration users will receive a notification to confirm their email address.', 'profile-builder' ); ?></p>
118 </div>
119
120 <div class="cozmoslabs-form-field-wrapper">
121 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Content Restriction', 'profile-builder' ); ?></label>
122 <p class="cozmoslabs-description cozmoslabs-description-align-right"><?php esc_html_e( 'Restrict users from accessing certain pages, posts or custom post types based on user role or logged-in status.', 'profile-builder' ); ?></p>
123 </div>
124
125 <div class="cozmoslabs-form-field-wrapper">
126 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Email Customizer', 'profile-builder' ); ?></label>
127 <p class="cozmoslabs-description cozmoslabs-description-align-right"><?php esc_html_e( 'Personalize all emails sent to your users or admins. On registration, email confirmation, admin approval / un-approval.', 'profile-builder' ); ?></p>
128 </div>
129
130 <div class="cozmoslabs-form-field-wrapper">
131 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Minimum Password Length and Strength Meter', 'profile-builder' ); ?></label>
132 <p class="cozmoslabs-description cozmoslabs-description-align-right"><?php esc_html_e( 'Eliminate weak passwords altogether by setting a minimum password length and enforcing a certain password strength.', 'profile-builder' ); ?></p>
133 </div>
134
135 <div class="cozmoslabs-form-field-wrapper">
136 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Login with Email or Username', 'profile-builder' ); ?></label>
137 <p class="cozmoslabs-description cozmoslabs-description-align-right"><?php esc_html_e( 'Allow users to log in with their email or username when accessing your site.', 'profile-builder' ); ?></p>
138 </div>
139
140 <div class="cozmoslabs-form-field-wrapper">
141 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Roles Editor', 'profile-builder' ); ?></label>
142 <p class="cozmoslabs-description cozmoslabs-description-align-right"><?php esc_html_e( 'Add, remove, clone and edit roles and also capabilities for these roles.', 'profile-builder' ); ?></p>
143 </div>
144 </div>
145 </div>
146
147 <?php
148 // Output here the Extra Features html for the Free version
149 $extra_features_html = ob_get_contents();
150 ob_end_clean();
151 if ( $version == 'Free' ) echo $extra_features_html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
152
153
154 <div class="cozmoslabs-form-subsection-wrapper" id="basic-info-customize-forms">
155 <h2 class="cozmoslabs-subsection-title">
156 <?php esc_html_e( 'Customize Your Forms The Way You Want', 'profile-builder' ); ?>
157
158 <?php if ($version == 'Free'){ ?>
159 <span class="cozmoslabs-version-notice cozmoslabs-description-upsell"><?php printf( esc_html__( 'Only available in %1$s BASIC & PRO %2$s versions', 'profile-builder' ) ,'<a href="https://www.cozmoslabs.com/wordpress-profile-builder/?utm_source=pb-basic-info&utm_medium=client-site&utm_campaign=pb-extra-fields#pricing" target="_blank">', '</a>' );?></span>
160 <?php } ?>
161 </h2>
162 <p class="cozmoslabs-description"><?php esc_html_e( 'With Extra Profile Fields you can create the exact Registration Form your project needs.', 'profile-builder' ); ?></p>
163
164 <?php if ($version == 'Free'){ ?>
165 <a href="https://www.cozmoslabs.com/wordpress-profile-builder/?utm_source=pb-basic-info&utm_medium=client-site&utm_campaign=pb-extra-fields#pricing" target="_blank" class="button button-primary wppb-button-free"><?php esc_html_e( 'Extra Profile Fields are available in Basic or PRO versions', 'profile-builder' ); ?></a>
166 <?php } else {?>
167 <a href="admin.php?page=manage-fields" class="button button-secondary"><?php esc_html_e( 'Get started with extra fields', 'profile-builder' ); ?></a>
168 <?php } ?>
169
170 <div class="cozmoslabs-form-field-wrapper" id="basic-info-extra-fields-list">
171 <ul>
172 <li><?php esc_html_e( 'Generic Uploads', 'profile-builder' ); ?></li>
173 <li><?php esc_html_e( 'Agree To Terms', 'profile-builder' ); ?></li>
174 <li><?php esc_html_e( 'Datepicker', 'profile-builder' ); ?> </li>
175 <li><?php esc_html_e( 'Timepicker', 'profile-builder' ); ?> </li>
176 <li><?php esc_html_e( 'Colorpicker', 'profile-builder' ); ?> </li>
177 <li><?php esc_html_e( 'Country Select', 'profile-builder' ); ?></li>
178 <li><?php esc_html_e( 'Currency Select', 'profile-builder' ); ?></li>
179 <li><?php esc_html_e( 'Timezone Select', 'profile-builder' ); ?></li>
180 <li><?php esc_html_e( 'Map', 'profile-builder' ); ?></li>
181 <li><?php esc_html_e( 'Select 2 (Multiple)', 'profile-builder' ); ?></li>
182 <li><?php esc_html_e( 'Phone', 'profile-builder' ); ?></li>
183 <li><?php esc_html_e( 'Hidden Input', 'profile-builder' ); ?></li>
184 <li><?php esc_html_e( 'Number', 'profile-builder' ); ?></li>
185 <li><?php esc_html_e( 'Validation', 'profile-builder' ); ?></li>
186 <li><?php esc_html_e( 'Select CPT', 'profile-builder' ); ?></li>
187 <li><?php esc_html_e( 'HTML', 'profile-builder' ); ?></li>
188 </ul>
189
190 <img src="<?php echo esc_url( WPPB_PLUGIN_URL ); ?>assets/images/pb_fields.png" alt="Profile Builder Extra Fields" class="wppb-fields-image" />
191 </div>
192 </div>
193
194 <div class="cozmoslabs-form-subsection-wrapper" id="basic-info-add-ons">
195 <h2 class="cozmoslabs-subsection-title">
196 <?php esc_html_e( 'Powerful Add-ons', 'profile-builder' );?>
197
198 <?php if ($version == 'Free'){ ?>
199 <span class="cozmoslabs-version-notice cozmoslabs-description-upsell"><?php printf( esc_html__( 'Only available in %1$s PRO %2$s version', 'profile-builder' ), '<a href="https://www.cozmoslabs.com/wordpress-profile-builder/?utm_source=pb-basic-info&utm_medium=client-site&utm_campaign=pb-pro-addons-upsell#pricing" target="_blank">', '</a>' );?></span>
200 <?php } ?>
201 </h2>
202 <p class="cozmoslabs-description"><?php esc_html_e( 'Everything you will need to manage your users is probably already available using the Pro Add-ons.', 'profile-builder' ); ?></p>
203
204 <?php if( defined('WPPB_PAID_PLUGIN_DIR') && file_exists ( WPPB_PAID_PLUGIN_DIR.'/add-ons/add-ons.php' ) ): ?>
205 <a href="admin.php?page=profile-builder-add-ons" class="button button-secondary"><?php esc_html_e( 'Enable your add-ons', 'profile-builder' ); ?></a>
206 <?php endif; ?>
207 <?php if ($version == 'Free'){ ?>
208 <a href="https://www.cozmoslabs.com/wordpress-profile-builder/?utm_source=pb-basic-info&utm_medium=client-site&utm_campaign=pb-pro-addons-upsell#pricing" target="_blank" class="button button-primary wppb-button-free"><?php esc_html_e( 'Find out more about PRO Modules', 'profile-builder' ); ?></a>
209 <?php }?>
210
211 <div id="basic-info-addons-list">
212 <div class="cozmoslabs-form-field-wrapper">
213 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'User Listing', 'profile-builder' ); ?></label>
214
215 <?php if ($version == 'Free'): ?>
216 <p class="cozmoslabs-description cozmoslabs-description-align-right"><?php esc_html_e( 'Easy to edit templates for listing your website users as well as creating single user pages. Shortcode based, offering many options to customize your listings.', 'profile-builder' ); ?></p>
217 <?php else : ?>
218 <p class="cozmoslabs-description cozmoslabs-description-align-right"><?php esc_html_e( 'Display your users in the frontend of your website, and customize how they are presented according to your preferences.', 'profile-builder' ); ?></p>
219 <?php endif;?>
220 </div>
221
222 <div class="cozmoslabs-form-field-wrapper">
223 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Custom Redirects', 'profile-builder' ); ?></label>
224 <p class="cozmoslabs-description cozmoslabs-description-align-right"><?php esc_html_e( 'Keep your users out of the WordPress dashboard, redirect them to the front-page after login or registration, everything is just a few clicks away.', 'profile-builder' ); ?></p>
225 </div>
226
227 <div class="cozmoslabs-form-field-wrapper">
228 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Multiple Registration Forms', 'profile-builder' ); ?></label>
229 <p class="cozmoslabs-description cozmoslabs-description-align-right"><?php esc_html_e( 'Set up multiple registration forms with different fields for certain user roles. Capture different information from different types of users.', 'profile-builder' ); ?></p>
230 </div>
231
232 <div class="cozmoslabs-form-field-wrapper">
233 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Multiple Edit-profile Forms', 'profile-builder' ); ?></label>
234 <p class="cozmoslabs-description cozmoslabs-description-align-right"><?php esc_html_e( 'Allow different user roles to edit their specific information. Set up multiple edit-profile forms with different fields for certain user roles.', 'profile-builder' ); ?></p>
235 </div>
236
237 <div class="cozmoslabs-form-field-wrapper">
238 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Repeater Fields', 'profile-builder' ); ?></label>
239 <p class="cozmoslabs-description cozmoslabs-description-align-right"><?php esc_html_e( 'Set up a repeating group of fields on register and edit profile forms. Limit the number of repeated groups for each user role.', 'profile-builder' ); ?></p>
240 </div>
241 </div>
242 </div>
243
244 <?php
245 //Output here Extra Features html for Hobbyist or Pro versions
246 if ( $version != 'Free' ) echo $extra_features_html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
247
248
249
250 <div class="cozmoslabs-form-subsection-wrapper" id="basic-info-recommended-plugins">
251 <h2 class="cozmoslabs-subsection-title"><?php esc_html_e( 'Recommended Plugins', 'profile-builder' );?></h2>
252
253 <div class="cozmoslabs-basic-info-recommended" id="wppb-recommended-pms">
254 <div class="cozmoslabs-basic-info-recommended-img">
255 <a href="<?php echo esc_url( admin_url( 'page=profile-builder-pms-promo' ) ); ?>" target="_blank"><img src="<?php echo esc_url( plugins_url( '../assets/images/pb-pms-cross-promotion.png', __FILE__ ) ); ?>" alt="paid member subscriptions"/></a>
256 </div>
257
258 <div class="cozmoslabs-basic-info-recommended-info">
259 <div class="cozmoslabs-form-field-wrapper">
260 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Paid user profiles with Profile Builder and Paid Member Subscriptions', 'profile-builder' ); ?></label>
261 </div>
262
263 <p class="cozmoslabs-description"><?php esc_html_e( 'One of the most requested features in Profile Builder was for users to be able to pay for an account.', 'profile-builder' ); ?></p>
264 <p class="cozmoslabs-description"><?php esc_html_e( 'Now that is possible using the free WordPress plugin - ', 'profile-builder' ); ?> <a href="https://wordpress.org/plugins/paid-member-subscriptions/" target="_blank">Paid Member Subscriptions</a></p>
265 <a href="<?php echo esc_url( admin_url( 'page=profile-builder-pms-promo' ) ); ?>" class="button button-secondary" target="_blank">Find out how</a>
266 </div>
267 </div>
268
269 <div class="cozmoslabs-basic-info-recommended" id="wppb-recommended-translate-press">
270 <div class="cozmoslabs-basic-info-recommended-img">
271 <a href="https://translatepress.com/?utm_source=pb-basic-info&utm_medium=client-site&utm_campaign=pb-tp-upsell" target="_blank"><img src="<?php echo esc_url( plugins_url( '../assets/images/pb-trp-cross-promotion.svg', __FILE__ ) ); ?>" alt="TranslatePress Logo"/></a>
272 </div>
273
274 <div class="cozmoslabs-basic-info-recommended-info">
275 <div class="cozmoslabs-form-field-wrapper">
276 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Easily translate your entire WordPress website', 'profile-builder' ); ?></label>
277 </div>
278
279 <p class="cozmoslabs-description"><?php esc_html_e( 'Translate your Profile Builder forms with a WordPress translation plugin that anyone can use.', 'profile-builder' ); ?></p>
280 <p class="cozmoslabs-description"><?php esc_html_e( 'It offers a simpler way to translate WordPress sites, with full support for WooCommerce and site builders.', 'profile-builder' ); ?></p>
281 <a href="https://translatepress.com/?utm_source=pb-basic-info&utm_medium=client-site&utm_campaign=pb-tp-upsell" class="button button-secondary" target="_blank">Find out how</a>
282 </div>
283 </div>
284
285 <div class="cozmoslabs-basic-info-recommended" id="wppb-recommended-wp-webhooks">
286 <div class="cozmoslabs-basic-info-recommended-img">
287 <a href="https://wp-webhooks.com/?utm_source=pb-basic-info&utm_medium=client-site&utm_campaign=pb-wpwh-upsell" target="_blank"><img src="<?php echo esc_url( plugins_url( '../assets/images/wp-webhooks-banner.svg', __FILE__ ) ); ?>" alt="TranslatePress Logo"/></a>
288 </div>
289
290 <div class="cozmoslabs-basic-info-recommended-info">
291 <div class="cozmoslabs-form-field-wrapper">
292 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Save time and money using automations', 'profile-builder' ); ?></label>
293 </div>
294
295 <p class="cozmoslabs-description"><?php esc_html_e( 'Create no-code automations and workflows on your WordPress site.', 'profile-builder' ); ?></p>
296 <p class="cozmoslabs-description"><?php esc_html_e( 'Integrates with both Profile Builder and Paid Member Subscriptions.', 'profile-builder' ); ?></p>
297 <a href="https://wp-webhooks.com/?utm_source=pb-basic-info&utm_medium=client-site&utm_campaign=pb-wpwh-upsell" class="button button-secondary" target="_blank">Find out how</a>
298 </div>
299 </div>
300
301 </div>
302
303 </div>
304 <?php
305 }