Creative Mail – Easier WordPress & WooCommerce Email Marketing - Version 1.3.8

Version Description

Download this release

Release Info

Developer constantcontact
Plugin Icon 128x128 Creative Mail – Easier WordPress & WooCommerce Email Marketing
Version 1.3.8
Comparing to
See all releases

Code changes from version 1.3.7 to 1.3.8

CHANGELOG.md CHANGED
@@ -1,6 +1,9 @@
1
  Changelog
2
  =========
3
 
 
 
 
4
  #### 1.3.7 - May 18 2021
5
  - Fixes an issue specific to PHP 7.4
6
 
1
  Changelog
2
  =========
3
 
4
+ #### 1.3.8 - May 18 2021
5
+ - Fixes an issue with WooCommerce recommendations.
6
+
7
  #### 1.3.7 - May 18 2021
8
  - Fixes an issue specific to PHP 7.4
9
 
README.md CHANGED
@@ -3,7 +3,7 @@ Contributors: Constant Contact
3
  Tags: email, marketing, newsletter, subscribe, contact form, constant contact, crm, automations, ecommerce, promotion, offers, retargeting
4
  Requires at least: 4.6
5
  Tested up to: 5.7
6
- Stable tag: 1.3.7
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Requires PHP: 5.6
@@ -90,6 +90,7 @@ Creative Mail by Constant Contact [Privacy Notice](https://www.endurance.com/pri
90
  6. Enhance your brand with logomaker
91
 
92
  == Changelog ==
 
93
  * 1.3.7 - Fixes an issue specific to PHP 7.4
94
  * 1.3.6 - Improved integrations with WooCommerce to support features like Abandoned Cart emails.
95
  * 1.3.5 - Addresses two small issues where some relative URLs would not work for WP installs in subdirectories.
3
  Tags: email, marketing, newsletter, subscribe, contact form, constant contact, crm, automations, ecommerce, promotion, offers, retargeting
4
  Requires at least: 4.6
5
  Tested up to: 5.7
6
+ Stable tag: 1.3.8
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Requires PHP: 5.6
90
  6. Enhance your brand with logomaker
91
 
92
  == Changelog ==
93
+ * 1.3.8 - Fixes an issue with WooCommerce recommendations.
94
  * 1.3.7 - Fixes an issue specific to PHP 7.4
95
  * 1.3.6 - Improved integrations with WooCommerce to support features like Abandoned Cart emails.
96
  * 1.3.5 - Addresses two small issues where some relative URLs would not work for WP installs in subdirectories.
assets/js/woocommerce_notice.js DELETED
@@ -1,31 +0,0 @@
1
- /**
2
- * WooCommerce notice javascript.
3
- *
4
- * @package CreativeMail
5
- */
6
-
7
- jQuery(function($){
8
-
9
- window.addEventListener('load', () => {
10
- const parent = document.getElementById('woocommerce-layout__primary')
11
- const wooNoticeList = document.getElementById('woocommerce-layout__notice-list')
12
-
13
- const notice = document.getElementById('ce4wp-wc-dashboard-notice')
14
-
15
- if ([parent, wooNoticeList, notice].some(element => element == null)) {
16
- return
17
- }
18
-
19
- parent.insertBefore(notice, wooNoticeList);
20
- });
21
-
22
- });
23
-
24
- function hideAdminWooCommerceNotice (banner) {
25
- const el = document.querySelector('#ce4wp-wc-dashboard-notice')
26
- el.hidden = true;
27
- el.style.display = "none";
28
-
29
- const { hide_banner_url } = ce4wp_data
30
- fetch(`${hide_banner_url}${banner}`, { method: 'POST' })
31
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
creative-mail-plugin.php CHANGED
@@ -9,7 +9,7 @@
9
  * Plugin URI: https://wordpress.org/plugins/creative-mail-by-constant-contact/
10
  * Description: Free email marketing designed specifically for WordPress, Jetpack and WooCommerce. Send newsletters, promotions, updates and transactional e-commerce emails. Simple and easy, powered by Constant Contact’s rock solid reliability.
11
  * Author: Constant Contact
12
- * Version: 1.3.7
13
  * Author URI: https://www.constantcontact.com
14
  * WC requires at least: 3.0.0
15
  * WC tested up to: 5.1.0
@@ -26,7 +26,7 @@ function _load_ce4wp_plugin()
26
  define('CE4WP_PLUGIN_DIR', __DIR__ . '/');
27
  define('CE4WP_PLUGIN_URL', plugin_dir_url(__FILE__) . '/');
28
  define('CE4WP_PLUGIN_FILE', __FILE__);
29
- define('CE4WP_PLUGIN_VERSION', '1.3.7');
30
  define('CE4WP_INSTANCE_UUID_KEY', 'ce4wp_instance_uuid');
31
  define('CE4WP_INSTANCE_HANDSHAKE_TOKEN', 'ce4wp_handshake_token');
32
  define('CE4WP_INSTANCE_HANDSHAKE_EXPIRATION', 'ce4wp_handshake_expiration');
@@ -43,7 +43,7 @@ function _load_ce4wp_plugin()
43
  define('CE4WP_APP_GATEWAY_URL', 'https://app-gateway.creativemail.com/');
44
  define('CE4WP_APP_URL', 'https://app.creativemail.com/');
45
  define('CE4WP_ENVIRONMENT', 'PRODUCTION');
46
- define('CE4WP_BUILD_NUMBER', '1132');
47
  define('CE4WP_RAYGUN_PHP_KEY', 'Z85xL3mkgnW13Ri9DajGUg');
48
  define('CE4WP_BATCH_SIZE', 500);
49
  define('CE4WP_WC_API_KEY_ID', 'ce4wp_woocommerce_api_key_id');
9
  * Plugin URI: https://wordpress.org/plugins/creative-mail-by-constant-contact/
10
  * Description: Free email marketing designed specifically for WordPress, Jetpack and WooCommerce. Send newsletters, promotions, updates and transactional e-commerce emails. Simple and easy, powered by Constant Contact’s rock solid reliability.
11
  * Author: Constant Contact
12
+ * Version: 1.3.8
13
  * Author URI: https://www.constantcontact.com
14
  * WC requires at least: 3.0.0
15
  * WC tested up to: 5.1.0
26
  define('CE4WP_PLUGIN_DIR', __DIR__ . '/');
27
  define('CE4WP_PLUGIN_URL', plugin_dir_url(__FILE__) . '/');
28
  define('CE4WP_PLUGIN_FILE', __FILE__);
29
+ define('CE4WP_PLUGIN_VERSION', '1.3.8');
30
  define('CE4WP_INSTANCE_UUID_KEY', 'ce4wp_instance_uuid');
31
  define('CE4WP_INSTANCE_HANDSHAKE_TOKEN', 'ce4wp_handshake_token');
32
  define('CE4WP_INSTANCE_HANDSHAKE_EXPIRATION', 'ce4wp_handshake_expiration');
43
  define('CE4WP_APP_GATEWAY_URL', 'https://app-gateway.creativemail.com/');
44
  define('CE4WP_APP_URL', 'https://app.creativemail.com/');
45
  define('CE4WP_ENVIRONMENT', 'PRODUCTION');
46
+ define('CE4WP_BUILD_NUMBER', '1138');
47
  define('CE4WP_RAYGUN_PHP_KEY', 'Z85xL3mkgnW13Ri9DajGUg');
48
  define('CE4WP_BATCH_SIZE', 500);
49
  define('CE4WP_WC_API_KEY_ID', 'ce4wp_woocommerce_api_key_id');
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Constant Contact
3
  Tags: email, marketing, newsletter, subscribe, contact form, constant contact, crm, automations, ecommerce, promotion, offers, retargeting
4
  Requires at least: 4.6
5
  Tested up to: 5.7
6
- Stable tag: 1.3.7
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Requires PHP: 5.6
@@ -25,6 +25,14 @@ It’s perfect for automatic blog post syndication, newsletters and announcement
25
 
26
  Create awesome email marketing campaigns right from your WordPress Admin Dashboard that are all powered by the award-winning & rock-solid reliability of Constant Contact.
27
 
 
 
 
 
 
 
 
 
28
  ### [VIEW OUR DETAILED FEATURES](https://www.creativemail.com/plans)
29
 
30
  ### [WOOCOMMERCE & WORDPRESS INTEGRATION](https://www.creativemail.com):
@@ -39,13 +47,16 @@ Turn your WooCommerce store and your WordPress site into efficient marketing eng
39
  - **Live Support:** With our paid plans (Awesome & Ultimate) you get access to phone and chat support to help you get answers from real live, helpful humans. Imagine that!
40
 
41
  ### [OPT-IN EMAIL FORMS](https://www.creativemail.com):
42
- - **Jetpack & WordPress Website Forms:** Creative Mail detects the current website forms used on your site, and automatically adds contacts to your email marketing lists. Automagically awesome!
43
- - **JMML Newsletter Form:** Creative Mail and Jetpack now include a JMML (join my mailing list) Newsletter Signup form. When activated, contacts who sign up for your Newsletter through the JMML form are brought right into your Newsletter email marketing list. Easy peasy.
 
 
44
 
45
  ### [EMAIL AUTOMATIONS](https://www.creativemail.com):
46
  - **Scheduled Sends:** Schedule the time and date of outgoing email marketing campaigns based on your business or organization's preferences.
47
- - **Single-Step Triggered Emails:** Replace your non-branded triggered emails with on-brand Creative Mail emails for deeper customer engagement.
48
- - **Multi-Step Marketing Journeys:** Develop sophisticated CLM (that’s marketing speak for - customer lifecycle marketing) campaigns by leveraging our “if this, then that” campaign automation engine that responds to a customer's actions or purchases. (Coming Soon)
 
49
 
50
  ### [ANALYTICS & INSIGHTS](https://www.creativemail.com):
51
  - **Realtime Email Marketing Statistics:** Bounces, opens, clicks, forwards, complaints, unsubscribes and more are easily tracked and managed. Be a control freak, it’s OK.
@@ -58,27 +69,25 @@ Turn your WooCommerce store and your WordPress site into efficient marketing eng
58
  - **Custom Labels:** Further refine your marketing by adding custom labels to subscribers or customers (ex. Truck Buyers, Concert Attendee, Dog Owners, etc.).
59
 
60
  ### [IMPORT & EXPORT](https://www.creativemail.com):
61
- - **Contacts Sync & Import:** Forget adding complex integrations between your WordPress site and your email marketing provider. With Creative Mail it all simply works with WordPress out of the box. We do the heavy lifting to sync and import your Jetpack, WordPress or WooCommerce contacts automatically.
62
- - **Import & Export Via CSV:** From our Creative Mail Contacts CRM you can import bulk email marketing lists (limits may apply), add subscribers one by one, or export your contacts into a CSV file.
63
 
64
  ### [CAMPAIGNS](https://www.creativemail.com):
65
  - **AI Emails:** Forget templates, let our A.I. build your email marketing campaigns for you. Pull in WordPress posts or WooCommerce products for sale and you’re good to go. Let our robots do your bidding!
66
  - **Email Campaign Creation:** Build your email marketing campaigns in seconds from your WordPress admin dashboard.
67
  - **Awesome Deliverability:** All email marketing campaigns are sent and delivered by the award-winning power of Constant Contact technology. We got you.
68
- - **Automated Email Marketing:** Send multi-step email campaigns automatically, with triggers you define, whether that’s based on time or behavioral actions. (Coming Soon)
69
 
70
  ### [EMAIL LIST MANAGEMENT](https://www.creativemail.com):
71
  - **Contact List Growth:** Creative Mail collects leads from Jetpack forms or the top WordPress lead capture forms and adds them directly to your email lists.
72
- - **Automate Emails:** With our “Welcome” email trigger you can send a Creative Mail welcome message to new subscribers and blog readers. (Coming Soon)
73
- - **Auto List Updater:** Creative Mail automatically updates your contact lists for email bounces or unsubscribes.
74
 
75
- ## CREATIVE MAIL IS:
76
- 1. Incredibly easy WordPress email marketing
77
- 1. Deeply connected to your website & WooCommerce store
78
- 1. Accessed from within your WP Admin Dashboard
79
- 1. Automatically syncing your contacts and building your marketing lists
80
- 1. Powered by the reliability superior deliverability of Constant Contact
81
- 1. Fun, which makes life way better
82
 
83
  ## TERMS OF SERVICE & PRIVACY NOTICE
84
  On behalf of our lawyers (seriously, they’re nice people), please feel free to review our:
@@ -95,11 +104,56 @@ Creative Mail by Constant Contact [Privacy Notice](https://www.endurance.com/pri
95
  6. Enhance your brand with logomaker
96
 
97
  == Changelog ==
98
- * 3.1.7 - Fixes an issue specific to PHP 7.4
 
99
  * 1.3.6 - Improved integrations with WooCommerce to support features like Abandoned Cart emails.
100
  * 1.3.5 - Addresses two small issues where some relative URLs would not work for WP installs in subdirectories.
101
  * 1.3.4 - Improved initial contact sync: we can now import all your contacts without any limits!
102
  * 1.3.3 - Direct access to Creative Mail features from the left side nav in WP Admin.
103
  * 1.3.2 - Fixes an issue where the contact sync might cause a critical error.
104
  * 1.3.1 - Add the ability to show the amount of recovered revenue via abandoned carts.
105
- * 1.3.0 - Support for abandoned cart emails
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  Tags: email, marketing, newsletter, subscribe, contact form, constant contact, crm, automations, ecommerce, promotion, offers, retargeting
4
  Requires at least: 4.6
5
  Tested up to: 5.7
6
+ Stable tag: 1.3.8
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Requires PHP: 5.6
25
 
26
  Create awesome email marketing campaigns right from your WordPress Admin Dashboard that are all powered by the award-winning & rock-solid reliability of Constant Contact.
27
 
28
+ ## CREATIVE MAIL IS:
29
+ 1. Incredibly easy WordPress email marketing
30
+ 1. Deeply connected to your website & WooCommerce store
31
+ 1. Accessed from within your WP Admin Dashboard
32
+ 1. Automatically syncing your contacts and building your marketing lists
33
+ 1. Powered by the reliability superior deliverability of Constant Contact
34
+ 1. Fun, which makes life way better
35
+
36
  ### [VIEW OUR DETAILED FEATURES](https://www.creativemail.com/plans)
37
 
38
  ### [WOOCOMMERCE & WORDPRESS INTEGRATION](https://www.creativemail.com):
47
  - **Live Support:** With our paid plans (Awesome & Ultimate) you get access to phone and chat support to help you get answers from real live, helpful humans. Imagine that!
48
 
49
  ### [OPT-IN EMAIL FORMS](https://www.creativemail.com):
50
+ - **Jetpack Newsletter Form:** Jetpack has a JMML (join my mailing list) Newsletter Signup form. When activated, contacts who sign up for your Newsletter through the Jetpack form are brought right into your Newsletter email marketing list. Easy peasy.
51
+ - **Other WordPress Website Forms:** Creative Mail detects the current website forms used on your site, and automatically adds contacts to your email marketing lists. Automagically awesome!
52
+ - **Creative Mail Form:** If you are not using a form on your site, you can easily add your Creative Mail Gutenberg form to start collecting email addresses of your site visitors
53
+
54
 
55
  ### [EMAIL AUTOMATIONS](https://www.creativemail.com):
56
  - **Scheduled Sends:** Schedule the time and date of outgoing email marketing campaigns based on your business or organization's preferences.
57
+ - **Single-Step Triggered Emails:** Replace your non-branded WooCommerce order notification triggered emails with on-brand Creative Mail emails for deeper customer engagement.
58
+ - **Abandoned Cart:** With Creative Mail and a WooCommerce store you can send emails to customers who abandon their WooCommerce shopping cart. They'll get an email that reminds them of the items they were considering before they left.
59
+ - **Multi-Step Marketing Journeys:** Develop sophisticated CLM (that’s marketing speak for - customer lifecycle marketing) campaigns by leveraging our “if this, then that” campaign automation engine that responds to a customer's actions, birthdays or purchases. Welcome your customers with email automation.
60
 
61
  ### [ANALYTICS & INSIGHTS](https://www.creativemail.com):
62
  - **Realtime Email Marketing Statistics:** Bounces, opens, clicks, forwards, complaints, unsubscribes and more are easily tracked and managed. Be a control freak, it’s OK.
69
  - **Custom Labels:** Further refine your marketing by adding custom labels to subscribers or customers (ex. Truck Buyers, Concert Attendee, Dog Owners, etc.).
70
 
71
  ### [IMPORT & EXPORT](https://www.creativemail.com):
72
+ - **Contacts Sync & Import:** No need anymore for complex integrations between your WordPress site and your email marketing provider. With Creative Mail it all simply works with WordPress out of the box. We do the heavy lifting to sync and import your Jetpack, WordPress, WooCommerce and most used Contact form plugins contacts automatically.
73
+ - **Import & Export Via CSV:** Import bulk email marketing lists (limits may apply), add subscribers one by one, or export your contacts into a CSV file.
74
 
75
  ### [CAMPAIGNS](https://www.creativemail.com):
76
  - **AI Emails:** Forget templates, let our A.I. build your email marketing campaigns for you. Pull in WordPress posts or WooCommerce products for sale and you’re good to go. Let our robots do your bidding!
77
  - **Email Campaign Creation:** Build your email marketing campaigns in seconds from your WordPress admin dashboard.
78
  - **Awesome Deliverability:** All email marketing campaigns are sent and delivered by the award-winning power of Constant Contact technology. We got you.
79
+ - **Automated Email Marketing:** Send multi-step email campaigns automatically, with triggers you define, whether that’s based on time, a customer birthday or behavioral actions. Create a flow to welcome your customers and send a special discount and reminder on their birthday.
80
 
81
  ### [EMAIL LIST MANAGEMENT](https://www.creativemail.com):
82
  - **Contact List Growth:** Creative Mail collects leads from Jetpack forms or the top WordPress lead capture forms and adds them directly to your email lists.
83
+ - **Automate Emails:** With our “Welcome” email trigger you can send a Creative Mail welcome email series to new subscribers and blog readers.
84
+ - **Auto List Updater:** Creative Mail automatically updates your contact lists for unsubscribes.
85
 
86
+ ### ADD ONS
87
+ - **Social Campaigns:** Connect your social media accounts with your Creative Mail account to share your newsletters with your followers on social.
88
+ - **Marketing Calendar:** With your socials connected we give you an overview of all the newsletters and posts that you’ve sent and scheduled. An easy overview to engage with your audience.
89
+ - **Booking:** Set up Bookings for your business with the Bookingstool. Give clients and customers an easy, quick way to set up appointments with you.
90
+ - **Logomaker:** Create an amazing logo for your business or social with Logomaker and add it to your email campaigns.
 
 
91
 
92
  ## TERMS OF SERVICE & PRIVACY NOTICE
93
  On behalf of our lawyers (seriously, they’re nice people), please feel free to review our:
104
  6. Enhance your brand with logomaker
105
 
106
  == Changelog ==
107
+ * 1.3.8 - Fixes an issue with WooCommerce recommendations.
108
+ * 1.3.7 - Fixes an issue specific to PHP 7.4
109
  * 1.3.6 - Improved integrations with WooCommerce to support features like Abandoned Cart emails.
110
  * 1.3.5 - Addresses two small issues where some relative URLs would not work for WP installs in subdirectories.
111
  * 1.3.4 - Improved initial contact sync: we can now import all your contacts without any limits!
112
  * 1.3.3 - Direct access to Creative Mail features from the left side nav in WP Admin.
113
  * 1.3.2 - Fixes an issue where the contact sync might cause a critical error.
114
  * 1.3.1 - Add the ability to show the amount of recovered revenue via abandoned carts.
115
+ * 1.3.0 - Support for abandoned cart emails
116
+
117
+ == Installation ==
118
+
119
+ - Go to your admin dashboard
120
+ - Click the “Plugins” menu in the left side navigation bar
121
+ - Click on “Add New”
122
+ - Search for “Creative”
123
+ - Click “Install Now”
124
+ - Click “Activate”
125
+ - You will be redirected to Creative Mail where you can setup your account
126
+
127
+ == Frequently Asked Questions ==
128
+
129
+ = Requirements =
130
+ - Your website or blog must be using WordPress.org version 4.6 or higher on your server.
131
+ - The plugin can be installed on regular Wordpress environments and also on WordPress.com sites.
132
+
133
+ = What does the Creative Mail plugin do? =
134
+ The Creative mail plugin allows you to create awesome email marketing campaigns right from your WordPress Admin Dashboard that are all powered by the award-winning & rock-solid reliability of Constant Contact.
135
+ Our intelligent (and super fun) email editor simplifies email marketing campaign creation and pulls your WordPress blog posts, website images and WooCommerce products right into your email content. Leads from your WordPress website, ecommerce store and contact forms are automatically captured and routed into our included Contacts CRM and synced with your email marketing lists.
136
+ It’s perfect for automatic blog post syndication, newsletters and announcements, event promotion, WooCommerce product specials, retargeting ecommerce shoppers, sending postcards, providing updates and more.
137
+
138
+ = Are coding skills needed to use Creative Mail? =
139
+ Creative Mail is built for non-developers, you don't even need to fill in API keys. If you know how to install a plugin on your website, you are good to go! You will have your images, blog posts and products from your WordPress site available to make campaigns without having to lift a finger.
140
+
141
+ = What is available for free with CreativeMail? =
142
+ With Creative Mail you can send campaigns to your contacts for free. Promote your blog articles, WooCommerce products, events and much more with your followers. Advanced functionality like sending Welcome series Automations and WooCommerce order notifications are part of a paid plan.
143
+ You can see the overview of all the features per plan [on our plans page](https://www.creativemail.com/plans/).
144
+
145
+ = What forms can I use in combination with Creative mail? =
146
+ You can add the Creative Mail Form to your site to gather contacts and add contacts automatically to a specific list.
147
+ Creative Mail also integrated with one of the form builders below. For those you can easily activate Contact Synchronization:
148
+ - Jetpack forms
149
+ - Contact form 7
150
+ - WPForms lite and WPForms
151
+ - Newsletter
152
+ - Gravity forms
153
+ - Elementor
154
+ - Ninja forms
155
+ - Caldera Forms
156
+ - Formidable
157
+
158
+ = Does Creative Mail support ecommerce stores? =
159
+ Creative mail is fully integrated with WooCommerce, which enables you to share your WooCommerce products via email campaigns. You can also replace your non-branded WooCommerce order notification triggered emails with on-brand Creative Mail emails for deeper customer engagement. Build one, and then all your other WooCommerce emails managed by Creative Mail will inherit the same branded look. Hey, style matters.
src/managers/AdminManager.php CHANGED
@@ -72,7 +72,6 @@ class AdminManager
72
  add_action(self::ADMIN_NOTICES_HOOK, array($this, 'add_admin_notice_review' ));
73
  add_action(self::ADMIN_NOTICES_HOOK, array($this, 'add_admin_get_started_banner' ));
74
  add_action(self::ADMIN_NOTICES_HOOK, array($this, 'add_admin_feedback_notice' ));
75
- add_action(self::ADMIN_NOTICES_HOOK, array($this, 'add_admin_woocommerce_banner' ));
76
  add_action(self::ADMIN_INIT_HOOK, array($this, 'activation_redirect' ));
77
  add_action(self::ADMIN_INIT_HOOK, array($this, 'ignore_review_notice' ));
78
 
@@ -329,43 +328,6 @@ class AdminManager
329
  return $footer_text;
330
  }
331
 
332
- function add_admin_woocommerce_banner() {
333
- $screen = get_current_screen();
334
- if ($screen->id === 'woocommerce_page_wc-admin') {
335
- wp_enqueue_script('ce4wp_woocommerce_notice', CE4WP_PLUGIN_URL.'assets/js/woocommerce_notice.js', null,CE4WP_PLUGIN_VERSION,true);
336
- wp_localize_script('ce4wp_woocommerce_notice', self::ADMIN_CE4WP_DATA_VAR, array(
337
- 'url' => admin_url('admin-ajax.php'),
338
- 'nonce' => wp_create_nonce('ajax-nonce'),
339
- 'hide_banner_url' => get_rest_url( null, 'creativemail/v1/hide_banner?banner=' ),
340
- ));
341
-
342
- $ce_has_account = OptionsHelper::get_instance_id() != null;
343
- if ( !$ce_has_account ) {
344
- if (OptionsHelper::get_hide_banner('woocommerce_dashboard_setup_notice')) {
345
- return;
346
- }
347
-
348
- include CE4WP_PLUGIN_DIR . 'src/views/admin-wc-notice/setup.php';
349
- return;
350
- }
351
- if (OptionsHelper::get_hide_banner('woocommerce_abandoned_cart_notice')) {
352
- return;
353
- }
354
-
355
- $email_manager = CreativeMail::get_instance()->get_email_manager();
356
- $supported_email_notifications = $email_manager->get_managed_email_notifications();
357
- $active_email_notifications = array_filter($supported_email_notifications, function ($email_notification) {
358
- return $email_notification->active === true;
359
- });
360
- // if number of active template is zero then show banner
361
- $number_of_active_notifications = count($active_email_notifications);
362
- if ($number_of_active_notifications === 0) {
363
- include CE4WP_PLUGIN_DIR . 'src/views/admin-wc-notice/recovercart.php';
364
- }
365
- }
366
- }
367
-
368
-
369
  function is_cm_screen_and_show_footer() {
370
  $screen = get_current_screen();
371
 
72
  add_action(self::ADMIN_NOTICES_HOOK, array($this, 'add_admin_notice_review' ));
73
  add_action(self::ADMIN_NOTICES_HOOK, array($this, 'add_admin_get_started_banner' ));
74
  add_action(self::ADMIN_NOTICES_HOOK, array($this, 'add_admin_feedback_notice' ));
 
75
  add_action(self::ADMIN_INIT_HOOK, array($this, 'activation_redirect' ));
76
  add_action(self::ADMIN_INIT_HOOK, array($this, 'ignore_review_notice' ));
77
 
328
  return $footer_text;
329
  }
330
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
331
  function is_cm_screen_and_show_footer() {
332
  $screen = get_current_screen();
333
 
src/views/admin-wc-notice/recovercart.php DELETED
@@ -1,13 +0,0 @@
1
- <div id="ce4wp-wc-dashboard-notice" class="ce4wp-notice ce4wp-notice-secondary">
2
- <img class="icon" src="<?= CE4WP_PLUGIN_URL . 'assets/images/woocommerce-banners/active-cm-wc.png'; ?>" alt="Abandoned cart"/>
3
- <section class="content">
4
- <h1>
5
- <strong><?= __( 'Reclaim your profits. Increase store conversion by 10%*', 'ce4wp' ); ?></strong>
6
- </h1>
7
- <p>
8
- <?= __( '3 out of 4 people add something to their shopping cart, but leave before the actual purchase.', 'ce4wp' ); ?>
9
- </p>
10
- <button class="button button-primary" onclick="ce4wpNavigateToDashboard(this, '1fabdbe2-95ed-4e1e-a2f3-ba0278f5096f', { source: 'woocommerce_abandoned_cart_notice' }, ce4wpWidgetStartCallback, ce4wpWidgetFinishCallback)"><?= __( 'Recover abandoned carts with Creative Mail', 'ce4wp' ); ?></button>
11
- </section>
12
- <span id="close" onclick="hideAdminWooCommerceNotice('woocommerce_abandoned_cart_notice')"></span>
13
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
src/views/admin-wc-notice/setup.php DELETED
@@ -1,13 +0,0 @@
1
- <div id="ce4wp-wc-dashboard-notice" class="ce4wp-notice ce4wp-notice-primary">
2
- <img class="icon" src="<?= CE4WP_PLUGIN_URL . 'assets/images/woocommerce-banners/setup-cm-wc.png'; ?>" alt="Setup"/>
3
- <section class="content">
4
- <h1>
5
- <strong><?= __( 'Supercharge your WooCommerce store', 'ce4wp' ); ?></strong>
6
- </h1>
7
- <p>
8
- <?= __( 'Salvage abandoned carts, and make your WooCommerce order emails look amazing with the flip of a switch.', 'ce4wp' ); ?>
9
- </p>
10
- <button class="button button-primary" onclick="ce4wpNavigateToDashboard(this, 'd25f690a-217a-4d68-9c58-8693965d4673', { source: 'woocommerce_setup_notice' }, ce4wpWidgetStartCallback, ce4wpWidgetFinishCallback)"><?= __( 'Setup Creative Mail now', 'ce4wp' ); ?></button>
11
- </section>
12
- <span id="close" onclick="hideAdminWooCommerceNotice('woocommerce_dashboard_setup_notice')"></span>
13
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit60340af979b34d07cc238e0d9b6d0972::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit204d404df41fe1719a6cd0bb839f55cd::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit60340af979b34d07cc238e0d9b6d0972
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit60340af979b34d07cc238e0d9b6d0972
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit60340af979b34d07cc238e0d9b6d0972', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
- spl_autoload_unregister(array('ComposerAutoloaderInit60340af979b34d07cc238e0d9b6d0972', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInit60340af979b34d07cc238e0d9b6d0972::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit204d404df41fe1719a6cd0bb839f55cd
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInit204d404df41fe1719a6cd0bb839f55cd', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit204d404df41fe1719a6cd0bb839f55cd', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInit204d404df41fe1719a6cd0bb839f55cd::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit60340af979b34d07cc238e0d9b6d0972
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'F' =>
@@ -159,10 +159,10 @@ class ComposerStaticInit60340af979b34d07cc238e0d9b6d0972
159
  public static function getInitializer(ClassLoader $loader)
160
  {
161
  return \Closure::bind(function () use ($loader) {
162
- $loader->prefixLengthsPsr4 = ComposerStaticInit60340af979b34d07cc238e0d9b6d0972::$prefixLengthsPsr4;
163
- $loader->prefixDirsPsr4 = ComposerStaticInit60340af979b34d07cc238e0d9b6d0972::$prefixDirsPsr4;
164
- $loader->prefixesPsr0 = ComposerStaticInit60340af979b34d07cc238e0d9b6d0972::$prefixesPsr0;
165
- $loader->classMap = ComposerStaticInit60340af979b34d07cc238e0d9b6d0972::$classMap;
166
 
167
  }, null, ClassLoader::class);
168
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit204d404df41fe1719a6cd0bb839f55cd
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'F' =>
159
  public static function getInitializer(ClassLoader $loader)
160
  {
161
  return \Closure::bind(function () use ($loader) {
162
+ $loader->prefixLengthsPsr4 = ComposerStaticInit204d404df41fe1719a6cd0bb839f55cd::$prefixLengthsPsr4;
163
+ $loader->prefixDirsPsr4 = ComposerStaticInit204d404df41fe1719a6cd0bb839f55cd::$prefixDirsPsr4;
164
+ $loader->prefixesPsr0 = ComposerStaticInit204d404df41fe1719a6cd0bb839f55cd::$prefixesPsr0;
165
+ $loader->classMap = ComposerStaticInit204d404df41fe1719a6cd0bb839f55cd::$classMap;
166
 
167
  }, null, ClassLoader::class);
168
  }