PluginProbe
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor / 3.16.4
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor v3.16.4
4.0.3 4.0.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 All 341 releases
profile-builder / admin / setup-wizard / view-tab-general.php

view-tab-general.php in User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor 3.16.4, at admin/setup-wizard/view-tab-general.php

110 lines 6.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
2
3 <h3><?php esc_html_e( 'Design & User Experience Settings', 'profile-builder' ); ?></h3>
4 <p class="cozmoslabs-description"><?php esc_html_e( 'Customize the way your users interact with the website!', 'profile-builder' ); ?></p>
5
6 <form class="wppb-setup-form wppb-setup-form-general" method="post">
7
8 <div class="wppb-setup-form-styles">
9 <?php
10 if ( defined( 'WPPB_PAID_PLUGIN_DIR' ) && file_exists( WPPB_PAID_PLUGIN_DIR.'/features/form-designs/form-designs.php' ) ) {
11 echo wppb_render_forms_design_selector(); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
12
13 ?>
14 <p class="info">
15 <?php esc_html_e( 'Choose a style that better suits your website.', 'profile-builder' ); ?>
16 <br>
17 <?php esc_html_e( 'The default style is there to let you customize the CSS and in general will receive the look and feel from your own themes styling. ', 'profile-builder' ); ?>
18 <br>
19 <?php esc_html_e( 'The extra styles can be customized to your liking through extra settings. ', 'profile-builder' ); ?>
20 </p>
21 <?php
22 }
23 elseif ( PROFILE_BUILDER == 'Profile Builder Free' ) {
24 echo wppb_display_form_designs_preview(); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
25
26 printf( esc_html__( '%3$sYou can now beautify your forms using pre-made templates. Enable Form Designs by upgrading to %1$sBasic or PRO versions%2$s.%4$s', 'profile-builder' ),'<a href="https://www.cozmoslabs.com/wordpress-profile-builder/?utm_source=pb-setup-wizard&utm_medium=client-site&utm_campaign=pb-form-design-templates#pricing" target="_blank">', '</a>', '<p class="wppb-setup-form-styles__upsell">', '</p>' );
27 }
28 ?>
29 </div>
30
31 <strong class="wppb-setup-general-settings__heading"><?php esc_html_e( 'Optimize the login and registration flow for your members!', 'profile-builder' ); ?></strong>
32
33 <div class="wppb-setup-general-settings">
34 <div class="wppb-setup-general-settings__item">
35 <div class="cozmoslabs-toggle-switch">
36 <div class="cozmoslabs-toggle-container">
37 <input type="checkbox" name="automaticallyLogIn" id="wppb_settings_automatically_log_in" value="Yes" <?php echo ( !empty( $this->general_settings['automaticallyLogIn'] ) && $this->general_settings['automaticallyLogIn'] === 'Yes' ) ? 'checked' : ''; ?> >
38 <label class="cozmoslabs-toggle-track" for="wppb_settings_automatically_log_in"></label>
39 </div>
40 </div>
41
42 <label for="wppb_settings_automatically_log_in"><?php esc_html_e( 'Automatically log users in after registration', 'profile-builder' ); ?></label>
43 </div>
44
45 <div class="wppb-setup-general-settings__item">
46 <div class="cozmoslabs-toggle-switch">
47 <div class="cozmoslabs-toggle-container">
48 <input type="checkbox" name="hide_admin_bar_for_subscriber" id="hide_admin_bar_for_subscriber" value="Yes" <?php echo ( !empty( $this->general_settings['hide_admin_bar_for']) && in_array( 'Subscriber', $this->general_settings['hide_admin_bar_for'] )) ? 'checked' : ''; ?> >
49 <label class="cozmoslabs-toggle-track" for="hide_admin_bar_for_subscriber"></label>
50 </div>
51 </div>
52
53 <label for="hide_admin_bar_for_subscriber" title="<?php esc_html_e( 'You can modify each role individually in the settings', 'profile-builder' ); ?>">
54 <?php esc_html_e( 'Hide the admin bar for the subscriber role', 'profile-builder' ); ?>
55 </label>
56 </div>
57
58 <div class="wppb-setup-general-settings__item">
59 <div class="cozmoslabs-toggle-switch">
60 <div class="cozmoslabs-toggle-container">
61 <input type="checkbox" name="emailConfirmation" id="emailConfirmation" value="yes" <?php echo ( !empty( $this->general_settings['emailConfirmation'] ) && $this->general_settings['emailConfirmation'] === 'yes' ) ? 'checked' : ''; ?> >
62 <label class="cozmoslabs-toggle-track" for="emailConfirmation"></label>
63 </div>
64 </div>
65
66 <label for="emailConfirmation"><?php esc_html_e( 'Email Confirmation after registration', 'profile-builder' ); ?></label>
67 </div>
68
69 <div class="wppb-setup-general-settings__item">
70
71 <?php
72 if ( defined( 'WPPB_PAID_PLUGIN_DIR' ) ) {
73 ?>
74 <div class="cozmoslabs-toggle-switch">
75 <div class="cozmoslabs-toggle-container">
76 <input type="checkbox" name="adminApproval" id="adminApproval" value="yes" <?php echo ( !empty( $this->general_settings['adminApproval'] ) && $this->general_settings['adminApproval'] === 'yes' ) ? 'checked' : ''; ?> >
77 <label class="cozmoslabs-toggle-track" for="adminApproval"></label>
78 </div>
79 </div>
80
81 <label for="adminApproval"><?php esc_html_e( 'Admin Approval for new users', 'profile-builder' ); ?></label>
82 <?php
83 }
84 elseif ( PROFILE_BUILDER == 'Profile Builder Free' ) {
85 ?>
86 <div class="cozmoslabs-toggle-switch" title="<?php esc_html_e( 'Available in the Pro version', 'profile-builder' ); ?>">
87 <div class="cozmoslabs-toggle-container">
88 <input type="checkbox" id="adminApproval" disabled >
89 <label class="cozmoslabs-toggle-track" for="adminApproval"></label>
90 </div>
91 </div>
92
93 <span title="<?php esc_html_e( 'Available in the Pro version', 'profile-builder' ); ?>">
94 <?php esc_html_e( 'Admin Approval for new users', 'profile-builder' ); ?>
95 </span>
96 <?php
97 }
98 ?>
99
100 </div>
101
102 </div>
103
104
105 <div class="wppb-setup-form-button">
106 <input type="submit" class="button primary button-primary button-hero" value="<?php esc_html_e( 'Continue', 'profile-builder' ); ?>" />
107 </div>
108
109 <?php wp_nonce_field( 'wppb-setup-wizard-nonce', 'wppb_setup_wizard_nonce' ); ?>
110 </form>