forked from renventura/edd-mail-chimp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathedd-mailchimp.php
executable file
·52 lines (42 loc) · 1.68 KB
/
edd-mailchimp.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/*
Plugin Name: Easy Digital Downloads - MailChimp
Plugin URL: http://easydigitaldownloads.com/extension/mail-chimp
Description: Include a MailChimp signup option with your Easy Digital Downloads checkout
Version: 2.5.3
Author: Pippin Williamson
Author URI: http://pippinsplugins.com
Contributors: Pippin Williamson, Dave Kiss
*/
define( 'EDD_MAILCHIMP_PRODUCT_NAME', 'Mail Chimp' );
define( 'EDD_MAILCHIMP_PATH', dirname( __FILE__ ) );
/*
|--------------------------------------------------------------------------
| LICENSING / UPDATES
|--------------------------------------------------------------------------
*/
if ( class_exists( 'EDD_License' ) && is_admin() ) {
$eddmc_license = new EDD_License( __FILE__, EDD_MAILCHIMP_PRODUCT_NAME, '2.5.3', 'Pippin Williamson' );
}
if( ! class_exists( 'EDD_MailChimp_API' ) ) {
include( EDD_MAILCHIMP_PATH . '/includes/class-edd-mailchimp-api.php' );
}
if( ! class_exists( 'EDD_Newsletter' ) ) {
include( EDD_MAILCHIMP_PATH . '/includes/class-edd-newsletter.php' );
}
if( ! class_exists( 'EDD_MailChimp' ) ) {
include( EDD_MAILCHIMP_PATH . '/includes/class-edd-mailchimp.php' );
}
if( ! class_exists( 'EDD_MC_Ecommerce_360' ) ) {
include( EDD_MAILCHIMP_PATH . '/includes/class-edd-ecommerce360.php' );
}
if ( ! class_exists( 'EDD_MC_Tools' ) && class_exists( 'Easy_Digital_Downloads' ) ) {
if ( ( defined ( 'EDD_VERSION' ) && version_compare( EDD_VERSION, '2.4.2', '>=' ) ) && is_admin() ) {
include( EDD_MAILCHIMP_PATH . '/includes/class-edd-mailchimp-tools.php' );
}
}
$edd_mc = new EDD_MailChimp( 'mailchimp', 'MailChimp' );
$edd_mc360 = new EDD_MC_Ecommerce_360;
if ( class_exists( 'EDD_MC_Tools' ) ) {
$edd_mc_tools = new EDD_MC_Tools();
}