| @@ -1,167 +1,305 @@ | ||
| 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', 'profilebuilder' ), __( 'Basic Information', 'profilebuilder' ), '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', 'profilebuilder' ), 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.', 'profilebuilder' ) ); ?></p> | |
| 32 | - <hr /> | |
| 33 | - <h2 class="wppb-callout"><?php _e( 'For Modern User Interaction', 'profilebuilder' ); ?></h2> | |
| 34 | - <div class="wppb-row wppb-3-col"> | |
| 35 | - <div> | |
| 36 | - <h3><?php _e( 'Login', 'profilebuilder' ); ?></h3> | |
| 37 | - <p><?php _e( 'Friction-less login using <strong class="nowrap">[wppb-login]</strong> shortcode or a widget.', 'profilebuilder' ); ?></p> | |
| 38 | - </div> | |
| 39 | - <div> | |
| 40 | - <h3><?php _e( 'Registration', 'profilebuilder' ); ?></h3> | |
| 41 | - <p><?php _e( 'Beautiful registration forms fully customizable using the <strong class="nowrap">[wppb-register]</strong> shortcode.', 'profilebuilder' ); ?></p> | |
| 42 | - </div> | |
| 43 | - <div> | |
| 44 | - <h3><?php _e( 'Edit Profile', 'profilebuilder' ); ?></h3> | |
| 45 | - <p><?php _e( 'Straight forward edit profile forms using <strong class="nowrap">[wppb-edit-profile]</strong> shortcode.', 'profilebuilder' ); ?></p> | |
| 46 | - </div> | |
| 47 | - </div> | |
| 48 | - <?php ob_start(); ?> | |
| 49 | - <hr/> | |
| 50 | - <div> | |
| 51 | - <h3><?php _e( 'Extra Features', 'profilebuilder' );?></h3> | |
| 52 | - <p><?php _e( 'Features that give you more control over your users, increased security and help you fight user registration spam.', 'profilebuilder' ); ?></p> | |
| 53 | - <p><a href="admin.php?page=profile-builder-general-settings" class="button"><?php _e( 'Enable extra features', 'profilebuilder' ); ?></a></p> | |
| 54 | - </div> | |
| 55 | - <div class="wppb-row wppb-3-col"> | |
| 56 | - <div> | |
| 57 | - <h3><?php _e( 'Recover Password', 'profilebuilder' ); ?></h3> | |
| 58 | - <p><?php _e( 'Allow users to recover their password in the front-end using the [wppb-recover-password].', 'profilebuilder' ); ?></p> | |
| 59 | - </div> | |
| 60 | - <div> | |
| 61 | - <h3><?php _e( 'Admin Approval (*)', 'profilebuilder' ); ?></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.', 'profilebuilder' ); ?></p> | |
| 63 | - </div> | |
| 64 | - <div> | |
| 65 | - <h3><?php _e( 'Email Confirmation', 'profilebuilder' ); ?></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.', 'profilebuilder' ); ?></p> | |
| 67 | - </div> | |
| 68 | - <div> | |
| 69 | - <h3><?php _e( 'Minimum Password Length and Strength Meter', 'profilebuilder' ); ?></h3> | |
| 70 | - <p><?php _e( 'Eliminate weak passwords altogether by setting a minimum password length and enforcing a certain password strength.', 'profilebuilder' ); ?></p> | |
| 71 | - </div> | |
| 72 | - <div> | |
| 73 | - <h3><?php _e( 'Login with Email or Username', 'profilebuilder' ); ?></h3> | |
| 74 | - <p><?php _e( 'Allow users to log in with their email or username when accessing your site.', 'profilebuilder' ); ?></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 (*)', 'profilebuilder' ); ?></h3> | |
| 88 | - <p><?php _e( 'With Extra Profile Fields you can create the exact registration form your project needs.', 'profilebuilder' ); ?></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="button-free"><?php _e( 'Extra Profile Fields are available in Hobbyist or PRO versions', 'profilebuilder' ); ?></a></p> | |
| 91 | - <?php } else {?> | |
| 92 | - <p><a href="admin.php?page=manage-fields" class="button"><?php _e( 'Get started with extra fields', 'profilebuilder' ); ?></a></p> | |
| 93 | - <?php } ?> | |
| 94 | - <ul> | |
| 95 | - <li><?php _e( 'Avatar Upload', 'profilebuilder' ); ?></li> | |
| 96 | - <li><?php _e( 'Generic Uploads', 'profilebuilder' ); ?></li> | |
| 97 | - <li><?php _e( 'Agree To Terms Checkbox', 'profilebuilder' ); ?></li> | |
| 98 | - <li><?php _e( 'Datepicker', 'profilebuilder' ); ?> </li> | |
| 99 | - <li><?php _e( 'reCAPTCHA', 'profilebuilder' ); ?></li> | |
| 100 | - <li><?php _e( 'Country Select', 'profilebuilder' ); ?></li> | |
| 101 | - <li><?php _e( 'Timezone Select', 'profilebuilder' ); ?></li> | |
| 102 | - <li><?php _e( 'Input / Hidden Input', 'profilebuilder' ); ?></li> | |
| 103 | - <li><?php _e( 'Checkbox', 'profilebuilder' ); ?></li> | |
| 104 | - <li><?php _e( 'Select', 'profilebuilder' ); ?></li> | |
| 105 | - <li><?php _e( 'Radio Buttons', 'profilebuilder' ); ?></li> | |
| 106 | - <li><?php _e( 'Textarea', 'profilebuilder' ); ?></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 (**)', 'profilebuilder' );?></h3> | |
| 116 | - <p><?php _e( 'Everything you will need to manage your users is probably already available using the Pro Modules.', 'profilebuilder' ); ?></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', 'profilebuilder' ); ?></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="button-free"><?php _e( 'Find out more about PRO Modules', 'profilebuilder' ); ?></a></p> | |
| 122 | - <?php }?> | |
| 123 | - </div> | |
| 124 | - <div class="wppb-row wppb-3-col"> | |
| 125 | - <div> | |
| 126 | - <h3><?php _e( 'User Listing', 'profilebuilder' ); ?></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.', 'profilebuilder' ); ?></p> | |
| 129 | - <?php else : ?> | |
| 130 | - <p><?php _e( 'To create a page containing the users registered to this current site/blog, insert the following shortcode in a page of your chosing: <strong class="nowrap">[wppb-list-users]</strong>.', 'profilebuilder' ); ?></p> | |
| 131 | - <?php endif;?> | |
| 132 | - </div> | |
| 133 | - <div> | |
| 134 | - <h3><?php _e( 'Email Customizer', 'profilebuilder' ); ?></h3> | |
| 135 | - <p><?php _e( 'Personalize all emails sent to your users or admins. On registration, email confirmation, admin approval / un-approval.', 'profilebuilder' ); ?></p> | |
| 136 | - </div> | |
| 137 | - <div> | |
| 138 | - <h3><?php _e( 'Custom Redirects', 'profilebuilder' ); ?></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.', 'profilebuilder' ); ?></p> | |
| 140 | - </div> | |
| 141 | - </div> | |
| 142 | - <div class="wppb-row wppb-3-col"> | |
| 143 | - <div> | |
| 144 | - <h3><?php _e( 'Multiple Registration Forms', 'profilebuilder' ); ?></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.', 'profilebuilder' ); ?></p> | |
| 146 | - </div> | |
| 147 | - <div> | |
| 148 | - <h3><?php _e( 'Multiple Edit-profile Forms', 'profilebuilder' ); ?></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.', 'profilebuilder' ); ?></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 | - | |
| 157 | - <hr/> | |
| 158 | - <div> | |
| 159 | - <h3>Extra Notes</h3> | |
| 160 | - <ul> | |
| 161 | - <li><?php printf( __( ' * only available in the %1$sHobbyist and Pro versions%2$s.', 'profilebuilder' ) ,'<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> | |
| 162 | - <li><?php printf( __( '** only available in the %1$sPro version%2$s.', 'profilebuilder' ), '<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> | |
| 163 | - </ul> | |
| 164 | - </div> | |
| 165 | - </div> | |
| 166 | -<?php | |
| 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="<?php echo esc_url( admin_url( 'edit.php?post_type=wppb-rf-cpt' ) ); ?>" 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 | |
| 167 | 305 | } |