| @@ -166,8 +166,9 @@ | ||
| 166 | 166 | <?php settings_fields( 'wppb_general_settings' ); ?> |
| 167 | 167 | |
| 168 | 168 | <div class="cozmoslabs-settings"> |
| 169 | 169 | |
| 170 | + <?php if ( defined( 'WPPB_PAID_PLUGIN_DIR' ) && file_exists( WPPB_PAID_PLUGIN_DIR . '/features/form-designs/form-designs.php' ) ) : ?> | |
| 170 | 171 | <div class="cozmoslabs-form-subsection-wrapper" id="wppb-form_desings"> |
| 171 | 172 | <h4 class="cozmoslabs-subsection-title"><?php esc_html_e( 'Design & User Experience', 'profile-builder' ); ?></h4> |
| 172 | 173 | <p class="cozmoslabs-description" style="margin-bottom: 5px;"><?php esc_html_e( 'Choose a style that better suits your website.', 'profile-builder' ); ?></p> |
| 173 | 174 | <p class="cozmoslabs-description"><?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 theme’s styling.', 'profile-builder' ); ?></p> |
| @@ -172,18 +173,12 @@ | ||
| 172 | 173 | <p class="cozmoslabs-description" style="margin-bottom: 5px;"><?php esc_html_e( 'Choose a style that better suits your website.', 'profile-builder' ); ?></p> |
| 173 | 174 | <p class="cozmoslabs-description"><?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 theme’s styling.', 'profile-builder' ); ?></p> |
| 174 | 175 | |
| 175 | 176 | <div class="cozmoslabs-form-field-wrapper"> |
| 176 | - <?php | |
| 177 | - if ( defined( 'WPPB_PAID_PLUGIN_DIR' ) && file_exists( WPPB_PAID_PLUGIN_DIR.'/features/form-designs/form-designs.php' ) ) { | |
| 178 | - echo wppb_render_forms_design_selector(); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 179 | - } | |
| 180 | - elseif ( PROFILE_BUILDER == 'Profile Builder Free' ) { | |
| 181 | - echo wppb_display_form_designs_preview(); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 182 | - } | |
| 183 | - ?> | |
| 177 | + <?php echo wppb_render_forms_design_selector(); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> | |
| 184 | 178 | </div> |
| 185 | 179 | </div> |
| 180 | + <?php endif; ?> | |
| 186 | 181 | |
| 187 | 182 | <div class="cozmoslabs-form-subsection-wrapper"> |
| 188 | 183 | <h4 class="cozmoslabs-subsection-title"><?php esc_html_e( 'Optimize The login and Registration flow for your members', 'profile-builder' ); ?></h4> |
| 189 | 184 | |
| @@ -363,13 +358,12 @@ | ||
| 363 | 358 | <p class="cozmoslabs-description cozmoslabs-description-space-left"><?php esc_html_e( 'Select the page which contains the "[wppb-recover-password]" shortcode.', 'profile-builder' ); ?></p> |
| 364 | 359 | </div> |
| 365 | 360 | </div> |
| 366 | 361 | |
| 362 | + <?php if ( defined( 'WPPB_PAID_PLUGIN_DIR' ) && file_exists( WPPB_PAID_PLUGIN_DIR . '/features/two-factor-authentication/class-two-factor-authentication.php' ) ) : ?> | |
| 367 | 363 | <div class="cozmoslabs-form-subsection-wrapper"> |
| 368 | 364 | <h4 class="cozmoslabs-subsection-title"><?php esc_html_e( 'Two-Factor Authentication', 'profile-builder' ); ?></h4> |
| 369 | 365 | |
| 370 | - <?php if( defined( 'WPPB_PAID_PLUGIN_DIR' ) && file_exists( WPPB_PAID_PLUGIN_DIR . '/features/two-factor-authentication/class-two-factor-authentication.php' ) ) : ?> | |
| 371 | - | |
| 372 | 366 | <div class="cozmoslabs-form-field-wrapper cozmoslabs-toggle-switch"> |
| 373 | 367 | <?php |
| 374 | 368 | $wppb_two_factor_authentication_settings = get_option( 'wppb_two_factor_authentication_settings', 'not_found' ); |
| 375 | 369 | |
| @@ -766,31 +760,10 @@ | ||
| 766 | 760 | </div> |
| 767 | 761 | |
| 768 | 762 | |
| 769 | 763 | |
| 770 | - <?php else : ?> | |
| 771 | - | |
| 772 | - <div class="cozmoslabs-form-field-wrapper cozmoslabs-toggle-switch"> | |
| 773 | - | |
| 774 | - <label class="cozmoslabs-form-field-label" for="wppb-2fa-enable"><?php esc_html_e('Two-Factor Authentication', 'profile-builder'); ?></label> | |
| 775 | - | |
| 776 | - <div class="cozmoslabs-toggle-container"> | |
| 777 | - <input type="checkbox" name="wppb_two_factor_authentication_free" id="wppb-2fa-enable" value="yes"> | |
| 778 | - <label class="cozmoslabs-toggle-track" for="wppb-2fa-enable"></label> | |
| 779 | - </div> | |
| 780 | - | |
| 781 | - <div class="cozmoslabs-toggle-description"> | |
| 782 | - <label for="wppb-2fa-enable" class="cozmoslabs-description"><?php esc_html_e( 'Enable the Google Authenticator functionality.', 'profile-builder' ); ?></label> | |
| 783 | - </div> | |
| 784 | - | |
| 785 | - <p class="cozmoslabs-description cozmoslabs-description-upsell" id="wppb-2fa-upgrade-notice" style="display: none;"> | |
| 786 | - <?php printf( esc_html__( 'Increase the security of your user accounts with 2 Factor Authentication by upgrading to %1$sBasic or Pro%2$s versions.', 'profile-builder' ), '<a href="https://www.cozmoslabs.com/wordpress-profile-builder/?utm_source=wpbackend&utm_medium=clientsite&utm_content=settings-2fa&utm_campaign=PBFree#pricing" target="_blank">', '</a>' );?> | |
| 787 | - </p> | |
| 788 | - | |
| 789 | - </div> | |
| 790 | - | |
| 791 | - <?php endif; ?> | |
| 792 | 764 | </div> |
| 765 | + <?php endif; ?> | |
| 793 | 766 | |
| 794 | 767 | <div class="cozmoslabs-form-subsection-wrapper"> |
| 795 | 768 | <h4 class="cozmoslabs-subsection-title"><?php esc_html_e( 'Other features', 'profile-builder' ); ?></h4> |
| 796 | 769 | |