Version Description
Download this release
Release Info
Developer | mailmunch |
Plugin | MailChimp Forms by MailMunch |
Version | 2.1.0 |
Comparing to | |
See all releases |
Code changes from version 2.0.9 to 2.1.0
- admin/js/mailchimp-mailmunch-admin.js +18 -15
- includes/class-mailchimp-mailmunch.php +1 -1
- mailchimp-mailmunch.php +1 -1
- readme.txt +1 -1
admin/js/mailchimp-mailmunch-admin.js
CHANGED
@@ -37,21 +37,24 @@
|
|
37 |
return false;
|
38 |
});
|
39 |
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
|
|
|
|
|
|
55 |
|
56 |
$('.delete-widget').click(function() {
|
57 |
if (!confirm('Are you sure you want to delete this optin form?')) return false;
|
37 |
return false;
|
38 |
});
|
39 |
|
40 |
+
window.addEventListener("message", function(event) {
|
41 |
+
if (typeof(event.origin) == 'undefined' || event.origin.indexOf('mailmunch') == -1) return;
|
42 |
+
if (typeof(event.data) != 'undefined') {
|
43 |
+
var access_token = '';
|
44 |
+
if (typeof(event.data) == 'string') {
|
45 |
+
access_token = event.data;
|
46 |
+
} else {
|
47 |
+
access_token = event.data.access_token;
|
48 |
+
}
|
49 |
+
if (access_token) {
|
50 |
+
$("#connect-mailchimp").hide();
|
51 |
+
$("#loader").show();
|
52 |
+
var form = $('#mailchimp-access-token-form');
|
53 |
+
form.find('input[name=access_token]').val(access_token);
|
54 |
+
form.submit();
|
55 |
+
}
|
56 |
+
}
|
57 |
+
}, false);
|
58 |
|
59 |
$('.delete-widget').click(function() {
|
60 |
if (!confirm('Are you sure you want to delete this optin form?')) return false;
|
includes/class-mailchimp-mailmunch.php
CHANGED
@@ -18,7 +18,7 @@ define( 'MAILCHIMP_MAILMUNCH_URL', "http://wordpress.mailmunch.co" );
|
|
18 |
define( 'MAILCHIMP_MAILMUNCH_HOME_URL', "http://app.mailmunch.co" );
|
19 |
define( 'MAILCHIMP_MAILMUNCH_SLUG', "mailchimp-mailmunch" );
|
20 |
define( 'MAILCHIMP_MAILMUNCH_PREFIX', 'mc_mm' );
|
21 |
-
define( 'MAILCHIMP_MAILMUNCH_VERSION', '2.0
|
22 |
|
23 |
/**
|
24 |
* The core plugin class.
|
18 |
define( 'MAILCHIMP_MAILMUNCH_HOME_URL', "http://app.mailmunch.co" );
|
19 |
define( 'MAILCHIMP_MAILMUNCH_SLUG', "mailchimp-mailmunch" );
|
20 |
define( 'MAILCHIMP_MAILMUNCH_PREFIX', 'mc_mm' );
|
21 |
+
define( 'MAILCHIMP_MAILMUNCH_VERSION', '2.1.0' );
|
22 |
|
23 |
/**
|
24 |
* The core plugin class.
|
mailchimp-mailmunch.php
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
* Plugin Name: MailChimp Forms by MailMunch
|
17 |
* Plugin URI: http://connect.mailchimp.com/integrations/mailmunch-email-list-builder
|
18 |
* Description: The MailChimp plugin allows you to quickly and easily add signup forms for your MailChimp lists. Popup, Embedded, Top Bar and a variety of different options available.
|
19 |
-
* Version: 2.0
|
20 |
* Author: MailMunch
|
21 |
* Author URI: http://www.mailmunch.co
|
22 |
* License: GPL-2.0+
|
16 |
* Plugin Name: MailChimp Forms by MailMunch
|
17 |
* Plugin URI: http://connect.mailchimp.com/integrations/mailmunch-email-list-builder
|
18 |
* Description: The MailChimp plugin allows you to quickly and easily add signup forms for your MailChimp lists. Popup, Embedded, Top Bar and a variety of different options available.
|
19 |
+
* Version: 2.1.0
|
20 |
* Author: MailMunch
|
21 |
* Author URI: http://www.mailmunch.co
|
22 |
* License: GPL-2.0+
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: mailchimp,mailchimp form,mailchimp newsletter,mailchimp plugin,newsletter,
|
|
4 |
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 4.2
|
7 |
-
Stable tag: 2.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
4 |
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 4.2
|
7 |
+
Stable tag: 2.1.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|