array( 'title' => __( 'WooCommerce (light)', 'affiliates' ), 'plugin_title' => __( 'Affiliates WooCommerce Integration Light', 'affiliates' ), 'plugin_url' => 'http://wordpress.org/plugins/affiliates-woocommerce-light/', 'description' => sprintf( __( 'This plugin integrates Affiliates with WooCommerce. With this integration plugin, referrals are created automatically for your affiliates when sales are made.', 'affiliates' ), 'https://wordpress.org/plugins/affiliates/', 'https://woocommerce.com/?aff=7223&cid=1656523' ), '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' => 'http://wordpress.org/plugins/affiliates-contact-form-7/', 'description' => __( 'This plugin integrates Affiliates, Affiliates Pro and Affiliates Enterprise with Contact Form 7. This integration stores data from submitted forms and tracks form submissions to the referring affiliate.', 'affiliates' ), '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' => 'http://wordpress.org/plugins/affiliates-events-manager/', 'description' => __( 'This plugin integrates Affiliates, Affiliates Pro and Affiliates Enterprise with Events Manager. This integration allows to record referrals to grant affiliates commissions on referred bookings.', 'affiliates' ), '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' => 'http://wordpress.org/plugins/affiliates-formidable/', 'description' => __( 'This plugin integrates Affiliates, Affiliates Pro and Affiliates Enterprise 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' ), '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' => 'http://wordpress.org/plugins/affiliates-ninja-forms/', 'description' => __( 'This plugin integrates Affiliates, Affiliates Pro and Affiliates Enterprise 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' ), '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' ) ), // 'affiliates-jigoshop-light' => array( // 'title' => __( 'Jigoshop (light)', 'affiliates' ), // 'plugin_title' => __( 'Affiliates Jigoshop Integration Light', 'affiliates' ), // 'plugin_url' => 'http://wordpress.org/plugins/affiliates-jigoshop-light/', // 'description' => __( 'This plugin integrates Affiliates with Jigoshop. With this integration plugin, referrals are created automatically for your affiliates when sales are made.', 'affiliates' ), // 'plugin_file' => 'affiliates-jigoshop-light/affiliates-jigoshop-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( 'jigoshop' ) // ), // 'affiliates-wp-e-commerce' => array( // 'title' => __( 'WP e-Commerce', 'affiliates' ), // 'plugin_title' => __( 'Affiliates WP e-Commerce Integration', 'affiliates' ), // 'plugin_url' => 'http://wordpress.org/plugins/affiliates-wp-e-commerce/', // 'description' => __( 'This plugin integrates Affiliates, Affiliates Pro and Affiliates Enterprise with WP e-Commerce. With this integration plugin, referrals are created automatically for your affiliates when sales are made.', 'affiliates' ), // 'plugin_file' => 'affiliates-wp-e-commerce/affiliates-wp-e-commerce.php', // 'notes' => '', // 'repository' => 'wordpress', // 'access' => 'free', // 'targets' => array( 'affiliates', 'affiliates-pro', 'affiliates-enterprise' ), // 'platforms' => array( 'wp-e-commerce' ) // ), // 'affiliates-eshop-light' => array( // 'title' => __( 'eShop (light)', 'affiliates' ), // 'plugin_title' => __( 'Affiliates eShop Integration Light', 'affiliates' ), // 'plugin_url' => 'https://wordpress.org/plugins/affiliates-eshop-light/', // 'description' => __( 'This plugin integrates Affiliates with eShop. With this integration plugin, referrals are created automatically for your affiliates when sales are made through eShop.', 'affiliates' ), // 'plugin_file' => 'affiliates-eshop-light/affiliates-eshop-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( 'eshop' ) // ), // 'affiliates-ecwid-light' => array( // 'title' => __( 'Ecwid (light)', 'affiliates' ), // 'plugin_title' => __( 'Affiliates Ecwid Light', 'affiliates' ), // 'plugin_url' => 'http://wordpress.org/plugins/affiliates-ecwid-light/', // 'description' => __( 'This plugin integrates Affiliates with Ecwid. With this integration plugin, affiliates are credited with referrals automatically after a customer has made a purchase through the online store powered by Ecwid.', 'affiliates' ), // 'plugin_file' => 'affiliates-ecwid-light/affiliates-ecwid-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( 'ecwid' ) // ) ); self::$integrations = apply_filters( 'affiliates_settings_integrations', self::$integrations ); self::$premium_integrations = array( 'affiliates-woocommerce' => array( 'title' => __( 'WooCommerce', 'affiliates' ), 'description' => sprintf( __( 'This plugin integrates Affiliates Pro and Affiliates Enterprise 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' ), 'https://www.itthinx.com/shop/affiliates-pro/', 'http://www.itthinx.com/shop/affiliates-enterprise/', 'https://woocommerce.com/?aff=7223&cid=1656523' ), 'notes' => __( 'This integration is suitable to be used with Affiliates Pro or Affiliates Enterprise.', 'affiliates' ), 'class' => 'ext', ), 'affiliates-addtoany' => array( 'title' => __( 'AddToAny', 'affiliates' ), 'description' => __( 'This plugin integrates Affiliates Pro and Affiliates Enterprise with AddToAny … “The Universal Sharing Platform”. The Share Buttons by AddToAny are required.', 'affiliates' ), 'notes' => __( 'Makes it even easier to share using affiliate links automatically.', 'affiliates' ) . ' ' . __( 'This integration is suitable to be used with Affiliates Pro or Affiliates Enterprise.', 'affiliates' ), 'class' => 'ext' ), 'affiliates-addthis' => array( 'title' => __( 'AddThis', 'affiliates' ), 'description' => __( 'This plugin integrates Affiliates Pro and Affiliates Enterprise with AddThis … “Website tools that drive more shares, follows and conversions”. The Smart Website Tools by AddThis are required.', 'affiliates' ), 'notes' => __( 'Makes it even easier to share using affiliate links automatically.', 'affiliates' ) . ' ' . __( 'This integration is suitable to be used with Affiliates Pro or Affiliates Enterprise.', 'affiliates' ), 'class' => 'ext' ), 'affiliates-ppc' => array( 'title' => __( 'Pay per Click', 'affiliates' ), 'description' => __( '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 Affiliates Pro and Affiliates Enterprise.', 'affiliates' ), 'notes' => __( 'This integration is suitable to be used with Affiliates Pro or Affiliates Enterprise.', 'affiliates' ), 'class' => 'ext' ), 'affiliates-gravityforms' => array( 'title' => __( 'Gravity Forms', 'affiliates' ), 'description' => __( 'This plugin integrates Affiliates Pro and Affiliates Enterprise with Gravity Forms.', 'affiliates' ), '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' ) . ' ' . __( 'This integration is suitable to be used with Affiliates Pro or Affiliates Enterprise.', 'affiliates' ), 'class' => 'ext' ), 'affiliates-paypal' => array( 'title' => __( 'PayPal', 'affiliates' ), 'description' => __( 'This plugin integrates Affiliates Pro and Affiliates Enterprise with PayPal Payments Standard. With this advanced integration plugin, referrals are created and synchronized automatically for your affiliates when sales are made.', 'affiliates' ), 'notes' => __( 'This integration is suitable to be used with Affiliates Pro or Affiliates Enterprise. Note that this integration is not intended to be used for e-commerce systems that provide their own PayPal Payments Standard gateway.', 'affiliates' ), '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( __( 'Please also refer to the Add-Ons for additional extensions.', 'affiliates' ), esc_url( admin_url( 'admin.php?page=affiliates-admin-add-ons' ) ) ); $output .= '
'; $output .= ''; $output .= __( 'Integrations link the affiliate system to e-commerce plugins and other platforms.', 'affiliates' ); $output .= ' '; $output .= __( '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 .= __( '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( __( 'You can install available integrations in the Plugins section.', 'affiliates' ), 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 .= __( 'User registrations do not require a specific integration to be installed.', 'affiliates' ); $output .= ' '; $output .= sprintf( __( 'Enable the built-in integration if the options provided under User Registration are sufficient.', 'affiliates' ), 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 = ''; $list .= $integration['description']; $list .= '
'; if ( !empty( $integration['notes'] ) ) { $list .= ''; $list .= $integration['notes']; $list .= '
'; } if ( !empty( $explanation ) ) { $list .= ''; $list .= $explanation; $list .= '
'; } if ( !empty( $button ) ) { $list .= ''; $list .= $button; $list .= '
'; } $list .= ''; $output .= sprintf( __( 'These integrations are available with Affiliates Pro and Affiliates Enterprise.', 'affiliates' ), esc_url( 'https://www.itthinx.com/shop/affiliates-pro/' ), esc_url( 'https://www.itthinx.com/shop/affiliates-enterprise/' ) ); $output .= '
'; $list = ''; $list .= $integration['description']; $list .= '
'; if ( !empty( $integration['notes'] ) ) { $list .= ''; $list .= $integration['notes']; $list .= '
'; } $list .= '