array( 'title' => __( 'WooCommerce (light)', 'affiliates' ), 'plugin_title' => __( 'Affiliates WooCommerce Integration Light', 'affiliates' ), 'plugin_url' => 'https://wordpress.org/plugins/affiliates-woocommerce-light/', 'description' => __( 'This plugin integrates Affiliates with WooCommerce. With this integration plugin, referrals are created automatically for your affiliates when sales are made.', 'affiliates' ), 'plugin_file' => 'affiliates-woocommerce-light/affiliates-woocommerce-light.php', 'notes' => __( 'This light integration is suitable to be used with the Affiliates plugin.', 'affiliates' ), 'repository' => 'wordpress', 'access' => 'free', 'targets' => array( 'affiliates' ), 'platforms' => array( 'woocommerce' ) ), 'affiliates-contact-form-7' => array( 'title' => __( 'Contact Form 7', 'affiliates' ), 'plugin_title' => __( 'Affiliates Contact Form 7 Integration', 'affiliates' ), 'plugin_url' => 'https://wordpress.org/plugins/affiliates-contact-form-7/', 'description' => sprintf( __( 'This plugin integrates Affiliates, %1$s and %2$s with Contact Form 7. This integration stores data from submitted forms and tracks form submissions to the referring affiliate.', 'affiliates' ), 'Affiliates Pro', 'Affiliates Enterprise' ), 'plugin_file' => 'affiliates-contact-form-7/affiliates-contact-form-7.php', 'notes' => '', 'repository' => 'wordpress', 'access' => 'free', 'targets' => array( 'affiliates', 'affiliates-pro', 'affiliates-enterprise' ), 'platforms' => array( 'contact-form-7' ) ), 'affiliates-events-manager' => array( 'title' => __( 'Events Manager', 'affiliates' ), 'plugin_title' => __( 'Affiliates Events Manager Integration', 'affiliates' ), 'plugin_url' => 'https://wordpress.org/plugins/affiliates-events-manager/', 'description' => sprintf( __( 'This plugin integrates Affiliates, %1$s and %2$s with Events Manager. This integration allows to record referrals to grant affiliates commissions on referred bookings.', 'affiliates' ), 'Affiliates Pro', 'Affiliates Enterprise' ), 'plugin_file' => 'affiliates-events-manager/affiliates-events-manager.php', 'notes' => '', 'repository' => 'wordpress', 'access' => 'free', 'targets' => array( 'affiliates', 'affiliates-pro', 'affiliates-enterprise' ), 'platforms' => array( 'events-manager' ) ), 'affiliates-formidable' => array( 'title' => __( 'Formidable Forms', 'affiliates' ), 'plugin_title' => __( 'Affiliates Formidable Forms Integration', 'affiliates' ), 'plugin_url' => 'https://wordpress.org/plugins/affiliates-formidable/', 'description' => sprintf( __( 'This plugin integrates Affiliates, %1$s and %2$s with Formidable Forms. Affiliates can sign up through forms handled with Formidable Forms. Form submissions that are referred through affiliates, can grant commissions to affiliates and record referral details.', 'affiliates' ), 'Affiliates Pro', 'Affiliates Enterprise' ), 'plugin_file' => 'affiliates-formidable/affiliates-formidable.php', 'notes' => '', 'repository' => 'wordpress', 'access' => 'free', 'targets' => array( 'affiliates', 'affiliates-pro', 'affiliates-enterprise' ), 'platforms' => array( 'formidable' ) ), 'affiliates-ninja-forms' => array( 'title' => __( 'Ninja Forms', 'affiliates' ), 'plugin_title' => __( 'Affiliates Ninja Forms Integration', 'affiliates' ), 'plugin_url' => 'https://wordpress.org/plugins/affiliates-ninja-forms/', 'description' => sprintf( __( 'This plugin integrates Affiliates, %1$s and %2$s with Ninja Forms. Affiliates can sign up through forms handled with Ninja Forms. Form submissions that are referred through affiliates, can grant commissions to affiliates and record referral details.', 'affiliates' ), 'Affiliates Pro', 'Affiliates Enterprise' ), 'plugin_file' => 'affiliates-ninja-forms/affiliates-ninja-forms.php', 'notes' => '', 'repository' => 'wordpress', 'access' => 'free', 'targets' => array( 'affiliates', 'affiliates-pro', 'affiliates-enterprise' ), 'platforms' => array( 'ninja-forms' ) ), ); self::$integrations = apply_filters( 'affiliates_settings_integrations', self::$integrations ); self::$premium_integrations = array( 'affiliates-woocommerce' => array( 'title' => __( 'WooCommerce', 'affiliates' ), 'description' => sprintf( __( 'This plugin integrates %1$s and %2$s with WooCommerce. With this advanced integration plugin, referrals are created and synchronized automatically for your affiliates when sales are made. This integration also supports referrals on recurring payments related to subscriptions and coupons related to affiliates to grant referrals when customers use them to credit the corresponding affiliate.', 'affiliates' ), 'Affiliates Pro', 'Affiliates Enterprise' ), 'notes' => sprintf( __( 'This integration is suitable to be used with %1$s or %2$s.', 'affiliates' ), 'Affiliates Pro', 'Affiliates Enterprise' ), 'class' => 'ext', ), 'affiliates-addtoany' => array( 'title' => __( 'AddToAny', 'affiliates' ), 'description' => sprintf( __( 'This plugin integrates %1$s and %2$s with %3$s. The %4$s are required.', 'affiliates' ), 'Affiliates Pro', 'Affiliates Enterprise', 'AddToAny', 'Share Buttons by AddToAny' ), 'notes' => __( 'Makes it even easier to share using affiliate links automatically.', 'affiliates' ) . ' ' . sprintf( __( 'This integration is suitable to be used with %1$s or %2$s.', 'affiliates' ), 'Affiliates Pro', 'Affiliates Enterprise' ), 'class' => 'ext' ), 'affiliates-ppc' => array( 'title' => __( 'Pay per Click', 'affiliates' ), 'description' => sprintf( __( 'Pay affiliate commissions based on clicks or visits to affiliate links. This plugin adds the possibility to grant commissions based on Pay per Click, Pay per Visit and Pay per Daily Visit with %1$s and %2$s.', 'affiliates' ), 'Affiliates Pro', 'Affiliates Enterprise', ), 'notes' => sprintf( __( 'This integration is suitable to be used with %1$s or %2$s.', 'affiliates' ), 'Affiliates Pro', 'Affiliates Enterprise', ), 'class' => 'ext' ), 'affiliates-gravityforms' => array( 'title' => __( 'Gravity Forms', 'affiliates' ), 'description' => sprintf( __( 'This plugin integrates %1$s and %2$s with %3$s.', 'affiliates' ), 'Affiliates Pro', 'Affiliates Enterprise', 'Gravity Forms' ), 'notes' => __( 'This extension allows to record referrals for form submissions and to create affiliate accounts (requires the Gravity Forms User Registation Add-On) for new users based on Gravity Forms.', 'affiliates' ) . ' ' . sprintf( __( 'This integration is suitable to be used with %1$s or %2$s.', 'affiliates' ), 'Affiliates Pro', 'Affiliates Enterprise', ), 'class' => 'ext' ) ); } /** * Returns the registered integrations. * * @return array */ public static function get_integrations() { return self::$integrations; } /** * Renders the integrations section. */ public static function section() { $output = ''; $output .= '

'; $output .= sprintf( esc_html__( 'Please also refer to the %s for additional extensions.', 'affiliates' ), sprintf( 'Add-Ons', esc_url( admin_url( 'admin.php?page=affiliates-admin-add-ons' ) ) ) ); $output .= '

'; $output .= '

'; $output .= esc_html__( 'Integrations link the affiliate system to e-commerce plugins and other platforms.', 'affiliates' ); $output .= ' '; $output .= esc_html__( 'The integrations are required to record referrals, as these award affiliates with commissions based on referred purchases or platform-specific actions.', 'affiliates' ); $output .= '

'; if ( AFFILIATES_PLUGIN_NAME != 'affiliates' ) { $output .= '

'; $output .= esc_html__( 'You can manage available integrations here, this includes the installation and activation of integrations with e-commerce and other systems.', 'affiliates' ); $output .= '

'; } else { $output .= '

'; $output .= sprintf( esc_html__( 'You can install available integrations in the %s section.', 'affiliates' ), sprintf( 'Plugins', esc_url( admin_url( 'plugin-install.php?tab=search&type=author&s=itthinx' ) ) ) ); $output .= '

'; } $output .= '

'; $output .= __( 'You only need to install integrations with plugins that are actually used on the site.', 'affiliates' ); $output .= '

'; $output .= '

'; $output .= esc_html__( 'User registrations do not require a specific integration to be installed.', 'affiliates' ); $output .= ' '; $output .= sprintf( esc_html__( 'Enable the built-in integration if the options provided under %s are sufficient.', 'affiliates' ), sprintf( 'User Registration', esc_url( admin_url( 'admin.php?page=affiliates-admin-user-registration' ) ) ) ); $output .= '

'; $active_plugins = apply_filters( 'active_plugins', get_option( 'active_plugins' ) ); $all_plugins = get_plugins(); $list = ''; $output .= $list; if ( AFFILIATES_PLUGIN_NAME === 'affiliates' ) { $output .= '

'; $output .= esc_html__( 'Premium Integrations', 'affiliates' ); $output .= '

'; $output .= '

'; $output .= sprintf( esc_html__( 'These integrations are available with %1$s and %2$s.', 'affiliates' ), 'Affiliates Pro', 'Affiliates Enterprise', ); $output .= '

'; $list = ''; $output .= $list; } echo $output; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped affiliates_footer(); } } Affiliates_Settings_Integrations::init();