" . __( 'The Affiliates WooCommerce Integration Light plugin requires the Affiliates plugin.', 'affiliates-woocommerce-light' ) . "";
}
if ( !$woocommerce_is_active ) {
self::$admin_messages[] = "
" . __( 'The Affiliates WooCommerce Integration Light plugin requires the WooCommerce plugin to be activated.', 'affiliates-woocommerce-light' ) . "
";
}
if ( $affiliates_woocommerce_is_active ) {
self::$admin_messages[] = "
" . __( 'You do not need to use the Affiliates WooCommerce Integration Light plugin because you are already using the advanced Affiliates WooCommerce Integration plugin. Please deactivate the Affiliates WooCommerce Integration Light plugin now.', 'affiliates-woocommerce-light' ) . "
';
$output .= __( 'You can support the development of the Affiliates plugin and get additional features with Affiliates Pro and Affiliates Enterprise.', 'affiliates-woocommerce-light' );
$output .= '
';
$output .= '
';
$output .= '';
$output .= '
';
echo $output;
affiliates_footer();
}
/**
* Add a notice to the footer that the integration is active.
* @param string $footer
*/
public static function affiliates_footer( $footer ) {
$options = get_option( self::PLUGIN_OPTIONS , array() );
$usage_stats = isset( $options[self::USAGE_STATS] ) ? $options[self::USAGE_STATS] : self::USAGE_STATS_DEFAULT;
return
'