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

229 lines 14.0 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 Hobbyist' ) ? 'Hobbyist' : $version );
27
28 ?>
29 <div class="wrap wppb-wrap wppb-info-wrap">
30 <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>
31 <h1><?php printf( esc_html__( '<strong>Profile Builder </strong> %s', 'profile-builder' ), esc_html( $version ) ); ?></h1>
32 <p class="wppb-info-text"><?php printf( esc_html__( 'The best way to add front-end registration, edit profile and login forms.', 'profile-builder' ) ); ?></p>
33 <hr />
34 <?php
35 $wppb_pages_created = get_option( 'wppb_pages_created' );
36 $shortcode_pages_query = new WP_Query( array( 'post_type' => 'page', 's' => '[wppb-' ) );
37 if( empty( $wppb_pages_created ) && !$shortcode_pages_query->have_posts() ){
38 ?>
39 <div class="wppb-auto-form-creation wppb-2-1-col">
40 <div><h3><?php esc_html_e( 'Speed up the setup process by automatically creating the form pages:', 'profile-builder' ); ?></h3></div>
41 <div><a href="<?php echo esc_url( admin_url('admin.php?page=profile-builder-basic-info&wppb_create_pages=true') ) ?>" class="button primary button-primary button-hero"><?php esc_html_e( 'Create Form Pages', 'profile-builder' ); ?></a></div>
42 </div>
43 <?php }else{ ?>
44 <div class="wppb-auto-form-creation wppb-forms-created wppb-2-1-col">
45 <div><h3><?php esc_html_e( 'You can see all the pages with Profile Builder form shortcodes here:', 'profile-builder' ); ?></h3></div>
46 <div><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 primary button-primary button-hero"><?php esc_html_e( 'View Form Pages', 'profile-builder' ); ?></a></div>
47 </div>
48 <?php } ?>
49
50 <div class="wppb-row wppb-3-col">
51 <div>
52 <h3><?php esc_html_e( 'Login Form', 'profile-builder' ); ?></h3>
53 <p><?php printf( esc_html__( 'Friction-less login using %s shortcode or a widget.', 'profile-builder' ), '<strong class="nowrap">[wppb-login]</strong>' ); ?></p>
54 </div>
55 <div>
56 <h3><?php esc_html_e( 'Registration Form', 'profile-builder' ); ?></h3>
57 <p><?php printf( esc_html__( 'Beautiful registration forms fully customizable using the %s shortcode.', 'profile-builder' ), '<strong class="nowrap">[wppb-register]</strong>' ); ?></p>
58 </div>
59 <div>
60 <h3><?php esc_html_e( 'Edit Profile Form', 'profile-builder' ); ?></h3>
61 <p><?php printf( esc_html__( 'Straight forward edit profile forms using %s shortcode.', 'profile-builder' ), '<strong class="nowrap">[wppb-edit-profile]</strong>' ); ?></p>
62 </div>
63 </div>
64 <?php ob_start(); ?>
65 <hr/>
66 <div>
67 <h3><?php esc_html_e( 'Extra Features', 'profile-builder' );?></h3>
68 <p><?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>
69 <p><a href="admin.php?page=profile-builder-general-settings" class="button"><?php esc_html_e( 'Enable extra features', 'profile-builder' ); ?></a></p>
70 </div>
71 <div class="wppb-row wppb-3-col">
72 <div>
73 <h3><?php esc_html_e( 'Recover Password', 'profile-builder' ); ?></h3>
74 <p><?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>
75 </div>
76 <div>
77 <h3><?php esc_html_e( 'Admin Approval (*)', 'profile-builder' ); ?></h3>
78 <p><?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>
79 </div>
80 <div>
81 <h3><?php esc_html_e( 'Email Confirmation', 'profile-builder' ); ?></h3>
82 <p><?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>
83 </div>
84 <div>
85 <h3><?php esc_html_e( 'Content Restriction', 'profile-builder' ); ?></h3>
86 <p><?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>
87 </div>
88 <div>
89 <h3><?php esc_html_e( 'Minimum Password Length and Strength Meter', 'profile-builder' ); ?></h3>
90 <p><?php esc_html_e( 'Eliminate weak passwords altogether by setting a minimum password length and enforcing a certain password strength.', 'profile-builder' ); ?></p>
91 </div>
92 <div>
93 <h3><?php esc_html_e( 'Login with Email or Username', 'profile-builder' ); ?></h3>
94 <p><?php esc_html_e( 'Allow users to log in with their email or username when accessing your site.', 'profile-builder' ); ?></p>
95 </div>
96 <div style="clear:left;">
97 <h3><?php esc_html_e( 'Roles Editor', 'profile-builder' ); ?></h3>
98 <p><?php esc_html_e( 'Add, remove, clone and edit roles and also capabilities for these roles.', 'profile-builder' ); ?></p>
99 </div>
100 </div>
101
102 <?php
103 // Output here the Extra Features html for the Free version
104 $extra_features_html = ob_get_contents();
105 ob_end_clean();
106 if ( $version == 'Free' ) echo $extra_features_html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
107
108 <hr/>
109 <div class="wppb-row wppb-2-col">
110 <div>
111 <h3><?php esc_html_e( 'Customize Your Forms The Way You Want (*)', 'profile-builder' ); ?></h3>
112 <p><?php esc_html_e( 'With Extra Profile Fields you can create the exact registration form your project needs.', 'profile-builder' ); ?></p>
113 <?php if ($version == 'Free'){ ?>
114 <p><a href="https://www.cozmoslabs.com/wordpress-profile-builder/?utm_source=wpbackend&utm_medium=clientsite&utm_content=basicinfo-extrafields&utm_campaign=PBFree" class="wppb-button-free"><?php esc_html_e( 'Extra Profile Fields are available in Hobbyist or PRO versions', 'profile-builder' ); ?></a></p>
115 <?php } else {?>
116 <p><a href="admin.php?page=manage-fields" class="button"><?php esc_html_e( 'Get started with extra fields', 'profile-builder' ); ?></a></p>
117 <?php } ?>
118 <ul style="float: left; margin-right: 50px;">
119 <li><?php esc_html_e( 'Avatar Upload', 'profile-builder' ); ?></li>
120 <li><?php esc_html_e( 'Generic Uploads', 'profile-builder' ); ?></li>
121 <li><?php esc_html_e( 'Agree To Terms Checkbox', 'profile-builder' ); ?></li>
122 <li><?php esc_html_e( 'Datepicker', 'profile-builder' ); ?> </li>
123 <li><?php esc_html_e( 'Timepicker', 'profile-builder' ); ?> </li>
124 <li><?php esc_html_e( 'Colorpicker', 'profile-builder' ); ?> </li>
125 <li><?php esc_html_e( 'reCAPTCHA', 'profile-builder' ); ?></li>
126 <li><?php esc_html_e( 'Country Select', 'profile-builder' ); ?></li>
127 <li><?php esc_html_e( 'Currency Select', 'profile-builder' ); ?></li>
128 <li><?php esc_html_e( 'Timezone Select', 'profile-builder' ); ?></li>
129 </ul>
130
131 <ul style="float: left;">
132 <li><?php esc_html_e( 'Input / Hidden Input', 'profile-builder' ); ?></li>
133 <li><?php esc_html_e( 'Number', 'profile-builder' ); ?></li>
134 <li><?php esc_html_e( 'Checkbox', 'profile-builder' ); ?></li>
135 <li><?php esc_html_e( 'Select', 'profile-builder' ); ?></li>
136 <li><?php esc_html_e( 'Radio Buttons', 'profile-builder' ); ?></li>
137 <li><?php esc_html_e( 'Textarea', 'profile-builder' ); ?></li>
138 <li><?php esc_html_e( 'Validation', 'profile-builder' ); ?></li>
139 <li><?php esc_html_e( 'Map', 'profile-builder' ); ?></li>
140 <li><?php esc_html_e( 'HTML', 'profile-builder' ); ?></li>
141 </ul>
142 </div>
143 <div>
144 <img src="<?php echo esc_url( WPPB_PLUGIN_URL ); ?>assets/images/pb_fields.png" alt="Profile Builder Extra Fields" class="wppb-fields-image" />
145 </div>
146 </div>
147 <hr/>
148 <div>
149 <h3><?php esc_html_e( 'Powerful Add-ons (**)', 'profile-builder' );?></h3>
150 <p><?php esc_html_e( 'Everything you will need to manage your users is probably already available using the Pro Add-ons.', 'profile-builder' ); ?></p>
151 <?php if( file_exists ( WPPB_PLUGIN_DIR.'/add-ons/add-ons.php' ) ): ?>
152 <p><a href="admin.php?page=profile-builder-add-ons" class="button"><?php esc_html_e( 'Enable your add-ons', 'profile-builder' ); ?></a></p>
153 <?php endif; ?>
154 <?php if ($version == 'Free'){ ?>
155 <p><a href="https://www.cozmoslabs.com/wordpress-profile-builder/?utm_source=wpbackend&utm_medium=clientsite&utm_content=basicinfo-add-ons&utm_campaign=PBFree" class="wppb-button-free"><?php esc_html_e( 'Find out more about PRO Modules', 'profile-builder' ); ?></a></p>
156 <?php }?>
157 </div>
158 <div class="wppb-row wppb-3-col">
159 <div>
160 <h3><?php esc_html_e( 'User Listing', 'profile-builder' ); ?></h3>
161 <?php if ($version == 'Free'): ?>
162 <p><?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>
163 <?php else : ?>
164 <p><?php printf( esc_html__( 'To create a page containing the users registered to this current site/blog, insert the following shortcode in a page of your chosing: %s.', 'profile-builder' ), '<strong class="nowrap">[wppb-list-users]</strong>' ); ?></p>
165 <?php endif;?>
166 </div>
167 <div>
168 <h3><?php esc_html_e( 'Email Customizer', 'profile-builder' ); ?></h3>
169 <p><?php esc_html_e( 'Personalize all emails sent to your users or admins. On registration, email confirmation, admin approval / un-approval.', 'profile-builder' ); ?></p>
170 </div>
171 <div>
172 <h3><?php esc_html_e( 'Custom Redirects', 'profile-builder' ); ?></h3>
173 <p><?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>
174 </div>
175 </div>
176 <div class="wppb-row wppb-3-col">
177 <div>
178 <h3><?php esc_html_e( 'Multiple Registration Forms', 'profile-builder' ); ?></h3>
179 <p><?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>
180 </div>
181 <div>
182 <h3><?php esc_html_e( 'Multiple Edit-profile Forms', 'profile-builder' ); ?></h3>
183 <p><?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>
184 </div>
185 <div>
186 <h3><?php esc_html_e( 'Repeater Fields', 'profile-builder' ); ?></h3>
187 <p><?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>
188 </div>
189 </div>
190
191 <?php
192 //Output here Extra Features html for Hobbyist or Pro versions
193 if ( $version != 'Free' ) echo $extra_features_html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
194 <hr/>
195 <div class="wrap wppb-wrap wppb-1-3-col">
196 <div>
197 <a href="<?php echo esc_url( admin_url('options.php?page=profile-builder-pms-promo') ); ?>"><img src="<?php echo esc_url( plugins_url( '../assets/images/pb-pms-cross-promotion.png', __FILE__ ) ); ?>" alt="paid member subscriptions"/></a>
198 </div>
199 <div>
200 <h3>Paid user profiles with Profile Builder and Paid Member Subscriptions</h3>
201 <p>One of the most requested features in Profile Builder was for users to be able to pay for an account.</p>
202 <p>Now that's possible using the free WordPress plugin - <a href="<?php echo esc_url( admin_url('options.php?page=profile-builder-pms-promo') ); ?>">Paid Member Subscriptions</a>.</p>
203 <p><a href="<?php echo esc_url( admin_url('options.php?page=profile-builder-pms-promo') ); ?>" class="button">Find out how</a></p>
204
205 </div>
206 </div>
207 <div class="wrap wppb-wrap wppb-1-3-col">
208 <div>
209 <a href="https://wordpress.org/plugins/translatepress-multilingual/" target="_blank"><img src="<?php echo esc_url( plugins_url( '../assets/images/pb-trp-cross-promotion.png', __FILE__ ) ); ?>" alt="TranslatePress Logo"/></a>
210 </div>
211 <div>
212 <h3>Easily translate your entire WordPress website</h3>
213 <p>Translate your Profile Builder forms with a WordPress translation plugin that anyone can use.</p>
214 <p>It offers a simpler way to translate WordPress sites, with full support for WooCommerce and site builders.</p>
215 <p><a href="https://wordpress.org/plugins/translatepress-multilingual/" class="button" target="_blank">Find out how</a></p>
216
217 </div>
218 </div>
219 <hr/>
220 <div>
221 <h3>Extra Notes</h3>
222 <ul>
223 <li><?php printf( esc_html__( ' * only available in the %1$sHobbyist and Pro versions%2$s.', '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 ).'" target="_blank">', '</a>' );?></li>
224 <li><?php printf( esc_html__( '** only available in the %1$sPro version%2$s.', '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 ).'" target="_blank">', '</a>' );?></li>
225 </ul>
226 </div>
227 </div>
228 <?php
229 }