PluginProbe
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor / 3.16.3
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor v3.16.3
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-addons.php

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

97 lines 5.4 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( 'Create the user experience you need for your project', 'profile-builder' ); ?></h3>
4 <p class="cozmoslabs-description"><?php esc_html_e( 'Enable addons and add extra features to your website', 'profile-builder' ); ?></p>
5
6 <form class="wppb-setup-form wppb-setup-form-addons" method="post">
7
8 <?php $images_folder = WPPB_PLUGIN_URL . 'assets/images/add-ons/'; ?>
9
10 <div class="wppb-setup-addons-list">
11
12 <?php
13 $pro_addons = array(
14 array(
15 'name' => esc_html__( 'User Listing', 'profile-builder' ),
16 'slug' => 'wppb_userListing',
17 'image' => 'pb-add-on-userlisting-logo.png',
18 'description' => esc_html__( 'Easy to edit templates for listing your users as well as creating single user pages.', 'profile-builder' ),
19 'notice' => esc_html__( 'Available in the Pro version', 'profile-builder' ),
20 ),
21 array(
22 'name' => esc_html__( 'Custom Redirects', 'profile-builder' ),
23 'slug' => 'wppb_customRedirect',
24 'image' => 'pb-add-on-custom-redirects-logo.png',
25 'description' => esc_html__( 'Redirect users after login, after they first register or when they try to access the default WordPress dashboard, login and registration forms.', 'profile-builder' ),
26 'notice' => esc_html__( 'Available in the Pro version', 'profile-builder' ),
27 ),
28 );
29
30 $basic_addons = array(
31 array(
32 'name' => esc_html__( 'Multi Step Forms', 'profile-builder' ),
33 'slug' => 'multi-step-forms',
34 'image' => 'pb-add-on-multi-step-forms-logo.png',
35 'description' => esc_html__( 'Extends the functionality of Profile Builder by adding the possibility of having multi-page registration and edit-profile forms.', 'profile-builder' ),
36 'notice' => esc_html__( 'Available in the Basic and Pro versions', 'profile-builder' ),
37 ),
38 array(
39 'name' => esc_html__( 'Social Connect', 'profile-builder' ),
40 'slug' => 'social-connect',
41 'image' => 'pb-add-on-social-connect-logo.png',
42 'description' => esc_html__( 'Easily configure and enable social login on your website. Users can login with social platforms like Facebook, Google or X.', 'profile-builder' ),
43 'notice' => esc_html__( 'Available in the Basic and Pro versions', 'profile-builder' ),
44 ),
45 );
46
47 $paid_version_addons = array_merge( $pro_addons, $basic_addons );
48
49 foreach ( $paid_version_addons as $addon ) {
50 $is_active = wppb_check_if_add_on_is_active( $addon['slug'] );
51 $is_disabled = ( !defined( 'WPPB_PAID_PLUGIN_DIR' ) ) ? 'disabled' : '';
52 $is_checked = ( $is_active && !$is_disabled ) ? 'checked' : '';
53 $addon_slug = ( !$is_disabled ) ? $addon['slug'] : '';
54 $addon_title = ( $is_disabled ) ? $addon['notice'] : '';
55
56 ?>
57 <div class="wppb-setup-addon <?php echo esc_html( $is_disabled ); ?>" title="<?php echo esc_html( $addon_title ); ?>">
58 <div class="wppb-setup-addon__content">
59 <img class="wppb-setup-addon__logo" src="<?php echo esc_url( $images_folder . $addon['image'] ); ?>" alt="<?php echo esc_html( $addon['name'] ); ?>" />
60
61 <div class="wppb-setup-addon__details">
62 <h3><?php echo esc_html( $addon['name'] ); ?></h3>
63 <p><?php echo esc_html( $addon['description'] ); ?></p>
64 </div>
65 </div>
66
67 <div class="wppb-setup-addon__selector">
68 <div class="cozmoslabs-toggle-switch">
69 <div class="cozmoslabs-toggle-container">
70 <input type="checkbox" name="<?php echo esc_html( $addon_slug ); ?>" id="<?php echo esc_html( $addon_slug ); ?>" value="yes" <?php echo esc_html( $is_checked ); ?> >
71 <label class="cozmoslabs-toggle-track" for="<?php echo esc_html( $addon_slug ); ?>"></label>
72 </div>
73 </div>
74 </div>
75 </div>
76 <?php
77 }
78 ?>
79
80 </div>
81
82 <?php if( defined( 'WPPB_PAID_PLUGIN_DIR' ) ) : ?>
83 <p class="wppb-setup-addons-info">
84 <?php printf( esc_html__( 'Explore 20+ free and PRO addons from %1$s the Profile Builder admin page %2$s once the onboarding is complete.', 'profile-builder' ), '<strong>', '</strong>' ); ?>
85 </p>
86 <?php else: ?>
87 <p class="wppb-setup-form-styles__upsell" style="padding-top: 14px; padding-bottom: 14px; font-size: 110%;">
88 <?php printf( esc_html__( 'Get access to 20+ add-ons with a %sPro%s license. %sBuy Now%s', 'profile-builder' ), '<strong>', '</strong>', '<a href="https://www.cozmoslabs.com/wordpress-profile-builder/?utm_source=pb-setup-wizard&utm_medium=client-site&utm_campaign=pb-pro-addons-upsell#pricing" target="_blank">', '</a>' ); ?>
89 </p>
90 <?php endif; ?>
91
92 <div class="wppb-setup-form-button">
93 <input type="submit" class="button primary button-primary button-hero" value="<?php esc_html_e( 'Continue', 'profile-builder' ); ?>" />
94 </div>
95
96 <?php wp_nonce_field( 'wppb-setup-wizard-nonce', 'wppb_setup_wizard_nonce' ); ?>
97 </form>