PluginProbe
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor / 3.12.2
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor v3.12.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 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.12.2, at admin/basic-info.php

302 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 <div class="cozmoslabs-page-header">
34 <div>
35 <h1 class="cozmoslabs-page-title"><?php echo wp_kses_post( sprintf( __( '<strong>Profile Builder </strong> %s', 'profile-builder' ), esc_html( $version ) ) ); ?></h1>
36 <p class="cozmoslabs-description"><?php esc_html_e( 'The best way to add front-end registration, edit profile and login forms.', 'profile-builder' ); ?></p>
37 </div>
38 <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>
39 </div>
40
41
42 <div class="cozmoslabs-form-subsection-wrapper" id="basic-info-shortcodes">
43 <h2 class="cozmoslabs-subsection-title"><?php esc_html_e( 'Shortcodes', 'profile-builder' ); ?></h2>
44
45 <div class="cozmoslabs-form-field-wrapper">
46 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Login Form', 'profile-builder' ); ?></label>
47 <strong>[wppb-login]</strong>
48 <p class="cozmoslabs-description cozmoslabs-description-space-left">
49 <?php esc_html_e( 'Friction-less login using this shortcode or a widget.', 'profile-builder' ); ?>
50 </p>
51 </div>
52
53 <div class="cozmoslabs-form-field-wrapper">
54 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Registration Form', 'profile-builder' ); ?></label>
55 <strong>[wppb-register]</strong>
56 <p class="cozmoslabs-description cozmoslabs-description-space-left">
57 <?php esc_html_e( 'Beautiful and fully customizable Registration Forms.', 'profile-builder' ); ?>
58 </p>
59 </div>
60
61 <div class="cozmoslabs-form-field-wrapper">
62 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Edit Profile Form', 'profile-builder' ); ?></label>
63 <strong>[wppb-edit-profile]</strong>
64 <p class="cozmoslabs-description cozmoslabs-description-space-left">
65 <?php esc_html_e( 'Straight forward Edit Profile Forms.', 'profile-builder' ); ?>
66 </p>
67 </div>
68
69 <?php
70 $wppb_pages_created = get_option( 'wppb_pages_created' );
71 $shortcode_pages_query = new WP_Query( array( 'post_type' => 'page', 's' => '[wppb-' ) );
72 if( empty( $wppb_pages_created ) && !$shortcode_pages_query->have_posts() ){
73 ?>
74 <div class="cozmoslabs-form-field-wrapper">
75 <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>
76 <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>
77 </div>
78 <?php }else{ ?>
79 <div class="cozmoslabs-form-field-wrapper">
80 <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>
81 <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>
82 </div>
83 <?php } ?>
84
85 </div>
86
87
88 <?php ob_start(); ?>
89
90 <div class="cozmoslabs-form-subsection-wrapper" id="basic-info-extra-features">
91 <h2 class="cozmoslabs-subsection-title"><?php esc_html_e( 'Extra Features', 'profile-builder' );?></h2>
92 <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>
93 <a href="admin.php?page=profile-builder-general-settings" class="button button-secondary"><?php esc_html_e( 'Enable extra features', 'profile-builder' ); ?></a>
94
95 <div id="basic-info-extra-features-list">
96 <div class="cozmoslabs-form-field-wrapper">
97 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Recover Password', 'profile-builder' ); ?></label>
98 <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>
99 </div>
100
101 <div class="cozmoslabs-form-field-wrapper" id="basic-info-admin-approval">
102 <label class="cozmoslabs-form-field-label">
103 <?php esc_html_e( 'Admin Approval', 'profile-builder' ); ?>
104
105 <?php if ($version == 'Free'){ ?>
106 <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=wpbackend&utm_medium=clientsite&utm_content=basicinfo-extranotes&utm_campaign=PB'.esc_attr( $version ).'#pricing" target="_blank">', '</a>' );?></span>
107 <?php } ?>
108 </label>
109 <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>
110 </div>
111
112 <div class="cozmoslabs-form-field-wrapper">
113 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Email Confirmation', 'profile-builder' ); ?></label>
114 <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>
115 </div>
116
117 <div class="cozmoslabs-form-field-wrapper">
118 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Content Restriction', 'profile-builder' ); ?></label>
119 <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>
120 </div>
121
122 <div class="cozmoslabs-form-field-wrapper">
123 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Email Customizer', 'profile-builder' ); ?></label>
124 <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>
125 </div>
126
127 <div class="cozmoslabs-form-field-wrapper">
128 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Minimum Password Length and Strength Meter', 'profile-builder' ); ?></label>
129 <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>
130 </div>
131
132 <div class="cozmoslabs-form-field-wrapper">
133 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Login with Email or Username', 'profile-builder' ); ?></label>
134 <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>
135 </div>
136
137 <div class="cozmoslabs-form-field-wrapper">
138 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Roles Editor', 'profile-builder' ); ?></label>
139 <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>
140 </div>
141 </div>
142 </div>
143
144 <?php
145 // Output here the Extra Features html for the Free version
146 $extra_features_html = ob_get_contents();
147 ob_end_clean();
148 if ( $version == 'Free' ) echo $extra_features_html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
149
150
151 <div class="cozmoslabs-form-subsection-wrapper" id="basic-info-customize-forms">
152 <h2 class="cozmoslabs-subsection-title">
153 <?php esc_html_e( 'Customize Your Forms The Way You Want', 'profile-builder' ); ?>
154
155 <?php if ($version == 'Free'){ ?>
156 <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=wpbackend&utm_medium=clientsite&utm_content=basicinfo-extranotes&utm_campaign=PB'.esc_attr( $version ).'#pricing" target="_blank">', '</a>' );?></span>
157 <?php } ?>
158 </h2>
159 <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>
160
161 <?php if ($version == 'Free'){ ?>
162 <a href="https://www.cozmoslabs.com/wordpress-profile-builder/?utm_source=wpbackend&utm_medium=clientsite&utm_content=basicinfo-extrafields&utm_campaign=PBFree#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>
163 <?php } else {?>
164 <a href="admin.php?page=manage-fields" class="button button-secondary"><?php esc_html_e( 'Get started with extra fields', 'profile-builder' ); ?></a>
165 <?php } ?>
166
167 <div class="cozmoslabs-form-field-wrapper" id="basic-info-extra-fields-list">
168 <ul>
169 <li><?php esc_html_e( 'Generic Uploads', 'profile-builder' ); ?></li>
170 <li><?php esc_html_e( 'Agree To Terms', 'profile-builder' ); ?></li>
171 <li><?php esc_html_e( 'Datepicker', 'profile-builder' ); ?> </li>
172 <li><?php esc_html_e( 'Timepicker', 'profile-builder' ); ?> </li>
173 <li><?php esc_html_e( 'Colorpicker', 'profile-builder' ); ?> </li>
174 <li><?php esc_html_e( 'Country Select', 'profile-builder' ); ?></li>
175 <li><?php esc_html_e( 'Currency Select', 'profile-builder' ); ?></li>
176 <li><?php esc_html_e( 'Timezone Select', 'profile-builder' ); ?></li>
177 <li><?php esc_html_e( 'Map', 'profile-builder' ); ?></li>
178 <li><?php esc_html_e( 'Select 2 (Multiple)', 'profile-builder' ); ?></li>
179 <li><?php esc_html_e( 'Phone', 'profile-builder' ); ?></li>
180 <li><?php esc_html_e( 'Hidden Input', 'profile-builder' ); ?></li>
181 <li><?php esc_html_e( 'Number', 'profile-builder' ); ?></li>
182 <li><?php esc_html_e( 'Validation', 'profile-builder' ); ?></li>
183 <li><?php esc_html_e( 'Select CPT', 'profile-builder' ); ?></li>
184 <li><?php esc_html_e( 'HTML', 'profile-builder' ); ?></li>
185 </ul>
186
187 <img src="<?php echo esc_url( WPPB_PLUGIN_URL ); ?>assets/images/pb_fields.png" alt="Profile Builder Extra Fields" class="wppb-fields-image" />
188 </div>
189 </div>
190
191 <div class="cozmoslabs-form-subsection-wrapper" id="basic-info-add-ons">
192 <h2 class="cozmoslabs-subsection-title">
193 <?php esc_html_e( 'Powerful Add-ons', 'profile-builder' );?>
194
195 <?php if ($version == 'Free'){ ?>
196 <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=wpbackend&utm_medium=clientsite&utm_content=basicinfo-extranotes&utm_campaign=PB'.esc_attr( $version ).'#pricing" target="_blank">', '</a>' );?></span>
197 <?php } ?>
198 </h2>
199 <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>
200
201 <?php if( defined('WPPB_PAID_PLUGIN_DIR') && file_exists ( WPPB_PAID_PLUGIN_DIR.'/add-ons/add-ons.php' ) ): ?>
202 <a href="admin.php?page=profile-builder-add-ons" class="button button-secondary"><?php esc_html_e( 'Enable your add-ons', 'profile-builder' ); ?></a>
203 <?php endif; ?>
204 <?php if ($version == 'Free'){ ?>
205 <a href="https://www.cozmoslabs.com/wordpress-profile-builder/?utm_source=wpbackend&utm_medium=clientsite&utm_content=basicinfo-add-ons&utm_campaign=PBFree#pricing" target="_blank" class="button button-primary wppb-button-free"><?php esc_html_e( 'Find out more about PRO Modules', 'profile-builder' ); ?></a>
206 <?php }?>
207
208 <div id="basic-info-addons-list">
209 <div class="cozmoslabs-form-field-wrapper">
210 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'User Listing', 'profile-builder' ); ?></label>
211
212 <?php if ($version == 'Free'): ?>
213 <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>
214 <?php else : ?>
215 <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>
216 <?php endif;?>
217 </div>
218
219 <div class="cozmoslabs-form-field-wrapper">
220 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Custom Redirects', 'profile-builder' ); ?></label>
221 <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>
222 </div>
223
224 <div class="cozmoslabs-form-field-wrapper">
225 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Multiple Registration Forms', 'profile-builder' ); ?></label>
226 <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>
227 </div>
228
229 <div class="cozmoslabs-form-field-wrapper">
230 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Multiple Edit-profile Forms', 'profile-builder' ); ?></label>
231 <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>
232 </div>
233
234 <div class="cozmoslabs-form-field-wrapper">
235 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Repeater Fields', 'profile-builder' ); ?></label>
236 <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>
237 </div>
238 </div>
239 </div>
240
241 <?php
242 //Output here Extra Features html for Hobbyist or Pro versions
243 if ( $version != 'Free' ) echo $extra_features_html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
244
245
246
247 <div class="cozmoslabs-form-subsection-wrapper" id="basic-info-recommended-plugins">
248 <h2 class="cozmoslabs-subsection-title"><?php esc_html_e( 'Recommended Plugins', 'profile-builder' );?></h2>
249
250 <div class="cozmoslabs-basic-info-recommended" id="wppb-recommended-pms">
251 <div class="cozmoslabs-basic-info-recommended-img">
252 <a href="https://wordpress.org/plugins/paid-member-subscriptions/" target="_blank"><img src="<?php echo esc_url( plugins_url( '../assets/images/pb-pms-cross-promotion.png', __FILE__ ) ); ?>" alt="paid member subscriptions"/></a>
253 </div>
254
255 <div class="cozmoslabs-basic-info-recommended-info">
256 <div class="cozmoslabs-form-field-wrapper">
257 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Paid user profiles with Profile Builder and Paid Member Subscriptions', 'profile-builder' ); ?></label>
258 </div>
259
260 <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>
261 <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>
262 <a href="https://wordpress.org/plugins/paid-member-subscriptions/" class="button button-secondary" target="_blank">Find out how</a>
263 </div>
264 </div>
265
266 <div class="cozmoslabs-basic-info-recommended" id="wppb-recommended-translate-press">
267 <div class="cozmoslabs-basic-info-recommended-img">
268 <a href="https://wordpress.org/plugins/translatepress-multilingual/" target="_blank"><img src="<?php echo esc_url( plugins_url( '../assets/images/pb-trp-cross-promotion.svg', __FILE__ ) ); ?>" alt="TranslatePress Logo"/></a>
269 </div>
270
271 <div class="cozmoslabs-basic-info-recommended-info">
272 <div class="cozmoslabs-form-field-wrapper">
273 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Easily translate your entire WordPress website', 'profile-builder' ); ?></label>
274 </div>
275
276 <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>
277 <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>
278 <a href="https://wordpress.org/plugins/translatepress-multilingual/" class="button button-secondary" target="_blank">Find out how</a>
279 </div>
280 </div>
281
282 <div class="cozmoslabs-basic-info-recommended" id="wppb-recommended-wp-webhooks">
283 <div class="cozmoslabs-basic-info-recommended-img">
284 <a href="https://wordpress.org/plugins/translatepress-multilingual/" target="_blank"><img src="<?php echo esc_url( plugins_url( '../assets/images/wp-webhooks-banner.svg', __FILE__ ) ); ?>" alt="TranslatePress Logo"/></a>
285 </div>
286
287 <div class="cozmoslabs-basic-info-recommended-info">
288 <div class="cozmoslabs-form-field-wrapper">
289 <label class="cozmoslabs-form-field-label"><?php esc_html_e( 'Save time and money using automations', 'profile-builder' ); ?></label>
290 </div>
291
292 <p class="cozmoslabs-description"><?php esc_html_e( 'Create no-code automations and workflows on your WordPress site.', 'profile-builder' ); ?></p>
293 <p class="cozmoslabs-description"><?php esc_html_e( 'Integrates with Profile Builder or Paid Member Subscriptions, depending on which plugin it\'s for.', 'profile-builder' ); ?></p>
294 <a href="https://www.wp-webhooks.com/?utm_source=wpbackend&utm_medium=clientsite&utm_content=add-on-page&utm_campaign=PBPro" class="button button-secondary" target="_blank">Find out how</a>
295 </div>
296 </div>
297
298 </div>
299
300 </div>
301 <?php
302 }