| 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; ?>"><?php printf( __( 'Version %s' ), PROFILE_BUILDER_VERSION ); ?></div> |
| 30 |
<h1><?php printf( __( '<strong>Profile Builder </strong>' . $version . ' <small>v.</small>%s', 'profile-builder' ), PROFILE_BUILDER_VERSION ); ?></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="http://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> |
| 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( 'reCAPTCHA', 'profile-builder' ); ?></li> |
| 100 |
<li><?php _e( 'Country Select', 'profile-builder' ); ?></li> |
| 101 |
<li><?php _e( 'Timezone Select', 'profile-builder' ); ?></li> |
| 102 |
<li><?php _e( 'Input / Hidden Input', 'profile-builder' ); ?></li> |
| 103 |
<li><?php _e( 'Checkbox', 'profile-builder' ); ?></li> |
| 104 |
<li><?php _e( 'Select', 'profile-builder' ); ?></li> |
| 105 |
<li><?php _e( 'Radio Buttons', 'profile-builder' ); ?></li> |
| 106 |
<li><?php _e( 'Textarea', 'profile-builder' ); ?></li> |
| 107 |
</ul> |
| 108 |
</div> |
| 109 |
<div> |
| 110 |
<img src="<?php echo WPPB_PLUGIN_URL; ?>assets/images/pb_fields.png" alt="Profile Builder Extra Fields" class="wppb-fields-image" /> |
| 111 |
</div> |
| 112 |
</div> |
| 113 |
<hr/> |
| 114 |
<div> |
| 115 |
<h3><?php _e( 'Powerful Modules (**)', 'profile-builder' );?></h3> |
| 116 |
<p><?php _e( 'Everything you will need to manage your users is probably already available using the Pro Modules.', 'profile-builder' ); ?></p> |
| 117 |
<?php if( file_exists ( WPPB_PLUGIN_DIR.'/modules/modules.php' ) ): ?> |
| 118 |
<p><a href="admin.php?page=profile-builder-modules" class="button"><?php _e( 'Enable your modules', 'profile-builder' ); ?></a></p> |
| 119 |
<?php endif; ?> |
| 120 |
<?php if ($version == 'Free'){ ?> |
| 121 |
<p><a href="http://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> |
| 122 |
<?php }?> |
| 123 |
</div> |
| 124 |
<div class="wppb-row wppb-3-col"> |
| 125 |
<div> |
| 126 |
<h3><?php _e( 'User Listing', 'profile-builder' ); ?></h3> |
| 127 |
<?php if ($version == 'Free'): ?> |
| 128 |
<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> |
| 129 |
<?php else : ?> |
| 130 |
<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> |
| 131 |
<?php endif;?> |
| 132 |
</div> |
| 133 |
<div> |
| 134 |
<h3><?php _e( 'Email Customizer', 'profile-builder' ); ?></h3> |
| 135 |
<p><?php _e( 'Personalize all emails sent to your users or admins. On registration, email confirmation, admin approval / un-approval.', 'profile-builder' ); ?></p> |
| 136 |
</div> |
| 137 |
<div> |
| 138 |
<h3><?php _e( 'Custom Redirects', 'profile-builder' ); ?></h3> |
| 139 |
<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> |
| 140 |
</div> |
| 141 |
</div> |
| 142 |
<div class="wppb-row wppb-3-col"> |
| 143 |
<div> |
| 144 |
<h3><?php _e( 'Multiple Registration Forms', 'profile-builder' ); ?></h3> |
| 145 |
<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> |
| 146 |
</div> |
| 147 |
<div> |
| 148 |
<h3><?php _e( 'Multiple Edit-profile Forms', 'profile-builder' ); ?></h3> |
| 149 |
<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> |
| 150 |
</div> |
| 151 |
</div> |
| 152 |
|
| 153 |
<?php |
| 154 |
//Output here Extra Features html for Hobbyist or Pro versions |
| 155 |
if ( $version != 'Free' ) echo $extra_features_html; ?> |
| 156 |
<hr/> |
| 157 |
<div class="wrap wppb-wrap wppb-1-3-col"> |
| 158 |
<div> |
| 159 |
<a href="<?php echo admin_url('options.php?page=profile-builder-pms-promo'); ?>"><img src="<?php echo plugins_url( '../assets/images/basic_info_pms_cross_promo.png', __FILE__ ); ?>" alt="paid member subscriptions"/></a> |
| 160 |
</div> |
| 161 |
<div> |
| 162 |
<h3>Paid user profiles with Profile Builder and Paid Member Subscriptions</h3> |
| 163 |
<p>One of the most requested features in Profile Builder was for users to be able to pay for an account.</p> |
| 164 |
<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> |
| 165 |
<p><a href="<?php echo admin_url('options.php?page=profile-builder-pms-promo'); ?>" class="button">Find out how</a></p> |
| 166 |
|
| 167 |
</div> |
| 168 |
</div> |
| 169 |
<hr/> |
| 170 |
<div> |
| 171 |
<h3>Extra Notes</h3> |
| 172 |
<ul> |
| 173 |
<li><?php printf( __( ' * only available in the %1$sHobbyist and Pro versions%2$s.', 'profile-builder' ) ,'<a href="http://www.cozmoslabs.com/wordpress-profile-builder/?utm_source=wpbackend&utm_medium=clientsite&utm_content=basicinfo-extranotes&utm_campaign=PB'.$version.'" target="_blank">', '</a>' );?></li> |
| 174 |
<li><?php printf( __( '** only available in the %1$sPro version%2$s.', 'profile-builder' ), '<a href="http://www.cozmoslabs.com/wordpress-profile-builder/?utm_source=wpbackend&utm_medium=clientsite&utm_content=basicinfo-extranotes&utm_campaign=PB'.$version.'" target="_blank">', '</a>' );?></li> |
| 175 |
</ul> |
| 176 |
</div> |
| 177 |
</div> |
| 178 |
<?php |
| 179 |
} |