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

193 lines 11.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Function that creates the "Basic Information" submenu page
4 *
5 * @since v.2.0
6 *
7 * @return void
8 */
9 function wppb_register_basic_info_submenu_page() {
10 add_submenu_page( 'profile-builder', __( 'Basic Information', 'profile-builder' ), __( 'Basic Information', 'profile-builder' ), 'manage_options', 'profile-builder-basic-info', 'wppb_basic_info_content' );
11 }
12 add_action( 'admin_menu', 'wppb_register_basic_info_submenu_page', 2 );
13
14 /**
15 * Function that adds content to the "Basic Information" submenu page
16 *
17 * @since v.2.0
18 *
19 * @return string
20 */
21 function wppb_basic_info_content() {
22
23 $version = 'Free';
24 $version = ( ( PROFILE_BUILDER == 'Profile Builder Pro' ) ? 'Pro' : $version );
25 $version = ( ( PROFILE_BUILDER == 'Profile Builder Hobbyist' ) ? 'Hobbyist' : $version );
26
27 ?>
28 <div class="wrap wppb-wrap wppb-info-wrap">
29 <div class="wppb-badge <?php echo $version; ?>"><span><?php printf( __( 'Version %s' ), PROFILE_BUILDER_VERSION ); ?></span></div>
30 <h1><?php echo __( '<strong>Profile Builder </strong>' . $version, 'profile-builder' ); ?></h1>
31 <p class="wppb-info-text"><?php printf( __( 'The best way to add front-end registration, edit profile and login forms.', 'profile-builder' ) ); ?></p>
32 <hr />
33 <h2 class="wppb-callout"><?php _e( 'For Modern User Interaction', 'profile-builder' ); ?></h2>
34 <div class="wppb-row wppb-3-col">
35 <div>
36 <h3><?php _e( 'Login', 'profile-builder' ); ?></h3>
37 <p><?php printf( __( 'Friction-less login using %s shortcode or a widget.', 'profile-builder' ), '<strong class="nowrap">[wppb-login]</strong>' ); ?></p>
38 </div>
39 <div>
40 <h3><?php _e( 'Registration', 'profile-builder' ); ?></h3>
41 <p><?php printf( __( 'Beautiful registration forms fully customizable using the %s shortcode.', 'profile-builder' ), '<strong class="nowrap">[wppb-register]</strong>' ); ?></p>
42 </div>
43 <div>
44 <h3><?php _e( 'Edit Profile', 'profile-builder' ); ?></h3>
45 <p><?php printf( __( 'Straight forward edit profile forms using %s shortcode.', 'profile-builder' ), '<strong class="nowrap">[wppb-edit-profile]</strong>' ); ?></p>
46 </div>
47 </div>
48 <?php ob_start(); ?>
49 <hr/>
50 <div>
51 <h3><?php _e( 'Extra Features', 'profile-builder' );?></h3>
52 <p><?php _e( 'Features that give you more control over your users, increased security and help you fight user registration spam.', 'profile-builder' ); ?></p>
53 <p><a href="admin.php?page=profile-builder-general-settings" class="button"><?php _e( 'Enable extra features', 'profile-builder' ); ?></a></p>
54 </div>
55 <div class="wppb-row wppb-3-col">
56 <div>
57 <h3><?php _e( 'Recover Password', 'profile-builder' ); ?></h3>
58 <p><?php printf( __( 'Allow users to recover their password in the front-end using the %s.', 'profile-builder' ), '<strong class="nowrap">[wppb-recover-password]</strong>' ); ?></p>
59 </div>
60 <div>
61 <h3><?php _e( 'Admin Approval (*)', 'profile-builder' ); ?></h3>
62 <p><?php _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>
63 </div>
64 <div>
65 <h3><?php _e( 'Email Confirmation', 'profile-builder' ); ?></h3>
66 <p><?php _e( 'Make sure users sign up with genuine emails. On registration users will receive a notification to confirm their email address.', 'profile-builder' ); ?></p>
67 </div>
68 <div>
69 <h3><?php _e( 'Minimum Password Length and Strength Meter', 'profile-builder' ); ?></h3>
70 <p><?php _e( 'Eliminate weak passwords altogether by setting a minimum password length and enforcing a certain password strength.', 'profile-builder' ); ?></p>
71 </div>
72 <div>
73 <h3><?php _e( 'Login with Email or Username', 'profile-builder' ); ?></h3>
74 <p><?php _e( 'Allow users to log in with their email or username when accessing your site.', 'profile-builder' ); ?></p>
75 </div>
76 </div>
77
78 <?php
79 // Output here the Extra Features html for the Free version
80 $extra_features_html = ob_get_contents();
81 ob_end_clean();
82 if ( $version == 'Free' ) echo $extra_features_html; ?>
83
84 <hr/>
85 <div class="wppb-row wppb-2-col">
86 <div>
87 <h3><?php _e( 'Customize Your Forms The Way You Want (*)', 'profile-builder' ); ?></h3>
88 <p><?php _e( 'With Extra Profile Fields you can create the exact registration form your project needs.', 'profile-builder' ); ?></p>
89 <?php if ($version == 'Free'){ ?>
90 <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 _e( 'Extra Profile Fields are available in Hobbyist or PRO versions', 'profile-builder' ); ?></a></p>
91 <?php } else {?>
92 <p><a href="admin.php?page=manage-fields" class="button"><?php _e( 'Get started with extra fields', 'profile-builder' ); ?></a></p>
93 <?php } ?>
94 <ul style="float: left; margin-right: 50px;">
95 <li><?php _e( 'Avatar Upload', 'profile-builder' ); ?></li>
96 <li><?php _e( 'Generic Uploads', 'profile-builder' ); ?></li>
97 <li><?php _e( 'Agree To Terms Checkbox', 'profile-builder' ); ?></li>
98 <li><?php _e( 'Datepicker', 'profile-builder' ); ?> </li>
99 <li><?php _e( 'Timepicker', 'profile-builder' ); ?> </li>
100 <li><?php _e( 'Colorpicker', 'profile-builder' ); ?> </li>
101 <li><?php _e( 'reCAPTCHA', 'profile-builder' ); ?></li>
102 <li><?php _e( 'Country Select', 'profile-builder' ); ?></li>
103 <li><?php _e( 'Currency Select', 'profile-builder' ); ?></li>
104 <li><?php _e( 'Timezone Select', 'profile-builder' ); ?></li>
105 </ul>
106
107 <ul style="float: left;">
108 <li><?php _e( 'Input / Hidden Input', 'profile-builder' ); ?></li>
109 <li><?php _e( 'Number', 'profile-builder' ); ?></li>
110 <li><?php _e( 'Checkbox', 'profile-builder' ); ?></li>
111 <li><?php _e( 'Select', 'profile-builder' ); ?></li>
112 <li><?php _e( 'Radio Buttons', 'profile-builder' ); ?></li>
113 <li><?php _e( 'Textarea', 'profile-builder' ); ?></li>
114 <li><?php _e( 'Validation', 'profile-builder' ); ?></li>
115 <li><?php _e( 'Map', 'profile-builder' ); ?></li>
116 <li><?php _e( 'HTML', 'profile-builder' ); ?></li>
117 </ul>
118 </div>
119 <div>
120 <img src="<?php echo WPPB_PLUGIN_URL; ?>assets/images/pb_fields.png" alt="Profile Builder Extra Fields" class="wppb-fields-image" />
121 </div>
122 </div>
123 <hr/>
124 <div>
125 <h3><?php _e( 'Powerful Modules (**)', 'profile-builder' );?></h3>
126 <p><?php _e( 'Everything you will need to manage your users is probably already available using the Pro Modules.', 'profile-builder' ); ?></p>
127 <?php if( file_exists ( WPPB_PLUGIN_DIR.'/modules/modules.php' ) ): ?>
128 <p><a href="admin.php?page=profile-builder-modules" class="button"><?php _e( 'Enable your modules', 'profile-builder' ); ?></a></p>
129 <?php endif; ?>
130 <?php if ($version == 'Free'){ ?>
131 <p><a href="https://www.cozmoslabs.com/wordpress-profile-builder/?utm_source=wpbackend&utm_medium=clientsite&utm_content=basicinfo-modules&utm_campaign=PBFree" class="wppb-button-free"><?php _e( 'Find out more about PRO Modules', 'profile-builder' ); ?></a></p>
132 <?php }?>
133 </div>
134 <div class="wppb-row wppb-3-col">
135 <div>
136 <h3><?php _e( 'User Listing', 'profile-builder' ); ?></h3>
137 <?php if ($version == 'Free'): ?>
138 <p><?php _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>
139 <?php else : ?>
140 <p><?php printf( __( '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>
141 <?php endif;?>
142 </div>
143 <div>
144 <h3><?php _e( 'Email Customizer', 'profile-builder' ); ?></h3>
145 <p><?php _e( 'Personalize all emails sent to your users or admins. On registration, email confirmation, admin approval / un-approval.', 'profile-builder' ); ?></p>
146 </div>
147 <div>
148 <h3><?php _e( 'Custom Redirects', 'profile-builder' ); ?></h3>
149 <p><?php _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>
150 </div>
151 </div>
152 <div class="wppb-row wppb-3-col">
153 <div>
154 <h3><?php _e( 'Multiple Registration Forms', 'profile-builder' ); ?></h3>
155 <p><?php _e( 'Set up multiple registration forms with different fields for certain user roles. Capture different information from different types of users.', 'profile-builder' ); ?></p>
156 </div>
157 <div>
158 <h3><?php _e( 'Multiple Edit-profile Forms', 'profile-builder' ); ?></h3>
159 <p><?php _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>
160 </div>
161 <div>
162 <h3><?php _e( 'Repeater Fields', 'profile-builder' ); ?></h3>
163 <p><?php _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>
164 </div>
165 </div>
166
167 <?php
168 //Output here Extra Features html for Hobbyist or Pro versions
169 if ( $version != 'Free' ) echo $extra_features_html; ?>
170 <hr/>
171 <div class="wrap wppb-wrap wppb-1-3-col">
172 <div>
173 <a href="<?php echo admin_url('options.php?page=profile-builder-pms-promo'); ?>"><img src="<?php echo plugins_url( '../assets/images/pb-pms-cross-promotion.png', __FILE__ ); ?>" alt="paid member subscriptions"/></a>
174 </div>
175 <div>
176 <h3>Paid user profiles with Profile Builder and Paid Member Subscriptions</h3>
177 <p>One of the most requested features in Profile Builder was for users to be able to pay for an account.</p>
178 <p>Now that's possible using the free WordPress plugin - <a href="<?php echo admin_url('options.php?page=profile-builder-pms-promo'); ?>">Paid Member Subscriptions</a>.</p>
179 <p><a href="<?php echo admin_url('options.php?page=profile-builder-pms-promo'); ?>" class="button">Find out how</a></p>
180
181 </div>
182 </div>
183 <hr/>
184 <div>
185 <h3>Extra Notes</h3>
186 <ul>
187 <li><?php printf( __( ' * 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'.$version.'" target="_blank">', '</a>' );?></li>
188 <li><?php printf( __( '** 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'.$version.'" target="_blank">', '</a>' );?></li>
189 </ul>
190 </div>
191 </div>
192 <?php
193 }