esc_html__( 'User Listing', 'profile-builder' ),
'slug' => 'wppb_userListing',
'image' => 'pb-add-on-userlisting-logo.png',
'description' => esc_html__( 'Easy to edit templates for listing your users as well as creating single user pages.', 'profile-builder' ),
'notice' => esc_html__( 'Available in the Pro version', 'profile-builder' ),
),
array(
'name' => esc_html__( 'Custom Redirects', 'profile-builder' ),
'slug' => 'wppb_customRedirect',
'image' => 'pb-add-on-custom-redirects-logo.png',
'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' ),
'notice' => esc_html__( 'Available in the Pro version', 'profile-builder' ),
),
);
$basic_addons = array(
array(
'name' => esc_html__( 'Multi Step Forms', 'profile-builder' ),
'slug' => 'multi-step-forms',
'image' => 'pb-add-on-multi-step-forms-logo.png',
'description' => esc_html__( 'Extends the functionality of Profile Builder by adding the possibility of having multi-page registration and edit-profile forms.', 'profile-builder' ),
'notice' => esc_html__( 'Available in the Basic and Pro versions', 'profile-builder' ),
),
array(
'name' => esc_html__( 'Social Connect', 'profile-builder' ),
'slug' => 'social-connect',
'image' => 'pb-add-on-social-connect-logo.png',
'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' ),
'notice' => esc_html__( 'Available in the Basic and Pro versions', 'profile-builder' ),
),
);
$paid_version_addons = array_merge( $pro_addons, $basic_addons );
foreach ( $paid_version_addons as $addon ) {
$is_active = wppb_check_if_add_on_is_active( $addon['slug'] );
$is_disabled = ( !defined( 'WPPB_PAID_PLUGIN_DIR' ) ) ? 'disabled' : '';
$is_checked = ( $is_active && !$is_disabled ) ? 'checked' : '';
$addon_slug = ( !$is_disabled ) ? $addon['slug'] : '';
$addon_title = ( $is_disabled ) ? $addon['notice'] : '';
?>