MailChimp Forms by MailMunch - Version 1.0.5

Version Description

  • More MailChimp features
Download this release

Release Info

Developer mailmunch
Plugin Icon 128x128 MailChimp Forms by MailMunch
Version 1.0.5
Comparing to
See all releases

Code changes from version 1.0.4 to 1.0.5

Files changed (3) hide show
  1. inc/common.php +1 -1
  2. mailchimp-mailmunch.php +11 -16
  3. readme.txt +27 -48
inc/common.php CHANGED
@@ -30,7 +30,7 @@ class MailchimpMailmunchHelpers {
30
  }
31
  }
32
 
33
- return $site;
34
  }
35
 
36
  function createAndGetSites($mm) {
30
  }
31
  }
32
 
33
+ return (isset($site) ? $site : false);
34
  }
35
 
36
  function createAndGetSites($mm) {
mailchimp-mailmunch.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: MailChimp Forms by MailMunch
4
  Plugin URI: http://connect.mailchimp.com/integrations/mailmunch-email-list-builder
5
  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.
6
- Version: 1.0.4
7
  Author: MailMunch
8
  Author URI: http://www.mailmunch.co
9
  License: GPL2
@@ -14,7 +14,7 @@
14
  require_once( plugin_dir_path( __FILE__ ) . 'inc/sidebar_widget.php' );
15
 
16
  define( 'MAILCHIMP_MAILMUNCH_SLUG', "mailchimp-mailmunch");
17
- define( 'MAILCHIMP_MAILMUNCH_VER', "1.0.4");
18
  define( 'MAILCHIMP_MAILMUNCH_URL', "www.mailmunch.co");
19
 
20
  // Create unique WordPress instance ID
@@ -32,8 +32,7 @@
32
  if ($menu_page) add_action('load-' . $menu_page, 'mc_mm_load_plugin_assets');
33
  }
34
 
35
- function mc_mm_plugin_settings_link($links)
36
- {
37
  $settings_link = '<a href="options-general.php?page='.MAILCHIMP_MAILMUNCH_SLUG.'">Settings</a>';
38
  array_unshift($links, $settings_link);
39
  return $links;
@@ -87,14 +86,10 @@
87
  if (count($mc_mm_data) == 0) return;
88
 
89
  if (function_exists('wp_footer')) {
90
- if (!$_POST['mc_mm_data']) {
91
- add_action( 'wp_footer', 'mc_mm_load_asset_code' );
92
- }
93
  }
94
  elseif (function_exists('wp_head')) {
95
- if (!$_POST['mc_mm_data']) {
96
- add_action( 'wp_head', 'mc_mm_load_asset_code' );
97
- }
98
  }
99
  }
100
 
@@ -148,7 +143,7 @@
148
 
149
  // This is a POST request. Let's save data first.
150
  if ($_POST) {
151
- $post_data = $_POST["mc_mm_data"];
152
  $post_action = $_POST["action"];
153
 
154
  if ($post_action == "save_settings") {
@@ -276,7 +271,7 @@
276
  $sites = $mm_helpers->createAndGetSites($mm);
277
  }
278
 
279
- if ($mc_mm_data["site_id"]) {
280
  // If there's a site already chosen, we need to get and save it's script_src in WordPress
281
  $site = $mm_helpers->getSite($sites, $mc_mm_data["site_id"]);
282
 
@@ -293,7 +288,7 @@
293
  }
294
  }
295
 
296
- if (!$mc_mm_data["site_id"]) {
297
  // If there's NO chosen site yet
298
 
299
  if (sizeof($sites) == 1 && ($sites[0]->name == get_bloginfo() || $sites[0]->name == "WordPress")) {
@@ -363,9 +358,9 @@
363
  </p>
364
  </div>
365
 
366
- <?php if ($user_exists) { ?>
367
  <div id="invalid-alert" class="alert alert-danger" role="alert">Account with this email already exists. Please sign in using your password.</div>
368
- <?php } else if ($invalid_email) { ?>
369
  <div id="invalid-alert" class="alert alert-danger" role="alert">Invalid email. Please enter a valid email below.</div>
370
  <?php } ?>
371
 
@@ -409,7 +404,7 @@
409
 
410
  <div class="form-group">
411
  <label>Email Address</label>
412
- <input type="email" placeholder="Email Address" name="email" class="form-control" value="<?php echo $_POST["email"] ?>" />
413
  </div>
414
  <div class="form-group">
415
  <label>Password</label>
3
  Plugin Name: MailChimp Forms by MailMunch
4
  Plugin URI: http://connect.mailchimp.com/integrations/mailmunch-email-list-builder
5
  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.
6
+ Version: 1.0.5
7
  Author: MailMunch
8
  Author URI: http://www.mailmunch.co
9
  License: GPL2
14
  require_once( plugin_dir_path( __FILE__ ) . 'inc/sidebar_widget.php' );
15
 
16
  define( 'MAILCHIMP_MAILMUNCH_SLUG', "mailchimp-mailmunch");
17
+ define( 'MAILCHIMP_MAILMUNCH_VER', "1.0.5");
18
  define( 'MAILCHIMP_MAILMUNCH_URL', "www.mailmunch.co");
19
 
20
  // Create unique WordPress instance ID
32
  if ($menu_page) add_action('load-' . $menu_page, 'mc_mm_load_plugin_assets');
33
  }
34
 
35
+ function mc_mm_plugin_settings_link($links) {
 
36
  $settings_link = '<a href="options-general.php?page='.MAILCHIMP_MAILMUNCH_SLUG.'">Settings</a>';
37
  array_unshift($links, $settings_link);
38
  return $links;
86
  if (count($mc_mm_data) == 0) return;
87
 
88
  if (function_exists('wp_footer')) {
89
+ add_action( 'wp_footer', 'mc_mm_load_asset_code' );
 
 
90
  }
91
  elseif (function_exists('wp_head')) {
92
+ add_action( 'wp_head', 'mc_mm_load_asset_code' );
 
 
93
  }
94
  }
95
 
143
 
144
  // This is a POST request. Let's save data first.
145
  if ($_POST) {
146
+ $post_data = (isset($_POST["mc_mm_data"]) ? $_POST["mc_mm_data"] : array());
147
  $post_action = $_POST["action"];
148
 
149
  if ($post_action == "save_settings") {
271
  $sites = $mm_helpers->createAndGetSites($mm);
272
  }
273
 
274
+ if (isset($mc_mm_data["site_id"])) {
275
  // If there's a site already chosen, we need to get and save it's script_src in WordPress
276
  $site = $mm_helpers->getSite($sites, $mc_mm_data["site_id"]);
277
 
288
  }
289
  }
290
 
291
+ if (!isset($mc_mm_data["site_id"])) {
292
  // If there's NO chosen site yet
293
 
294
  if (sizeof($sites) == 1 && ($sites[0]->name == get_bloginfo() || $sites[0]->name == "WordPress")) {
358
  </p>
359
  </div>
360
 
361
+ <?php if (isset($user_exists)) { ?>
362
  <div id="invalid-alert" class="alert alert-danger" role="alert">Account with this email already exists. Please sign in using your password.</div>
363
+ <?php } else if (isset($invalid_email)) { ?>
364
  <div id="invalid-alert" class="alert alert-danger" role="alert">Invalid email. Please enter a valid email below.</div>
365
  <?php } ?>
366
 
404
 
405
  <div class="form-group">
406
  <label>Email Address</label>
407
+ <input type="email" placeholder="Email Address" name="email" class="form-control" value="<?php if (isset($_POST["email"])) { echo $_POST["email"]; } ?>" />
408
  </div>
409
  <div class="form-group">
410
  <label>Password</label>
readme.txt CHANGED
@@ -1,13 +1,13 @@
1
- === MailChimp Forms by MailMunch ===
2
  Contributors: mailmunch
3
  Tags: mailchimp, MailChimp form, MailChimp Newsletter form, MailChimp plugin, newsletter, newsletter form, newsletter form plugin, optin form, form, signup, signup forms, signup form, widget, email form, leads
4
  Requires at least: 3.0.1
5
  Tested up to: 4.0
6
- Stable tag: 1.0.4
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
- MailChimp Forms by MailMunch allows you to painlessly add MailChimp sign up forms to your WordPress site as a popup, embedded widget or sticky top bar.
11
 
12
  == Description ==
13
 
@@ -15,13 +15,13 @@ MailChimp Forms by MailMunch allows you to painlessly add MailChimp sign up form
15
 
16
  What is [MailChimp](http://www.mailchimp.com/)? MailChimp is one of the best email marketing tools. Signup up for a [FREE Trial Account](http://www.mailchimp.com/signup/) and see for yourself!
17
 
18
- We have put together our version of an improved signup plugin for MailChimp users to proactively sign-up new subscribers to their newsletter list. Our form offers the same basic features that MailChimp's official plugin offers, but also much more. In addition to the form, analytics will help you track the number of form views and subscriptions.
19
 
20
- Our templates have been carefully designed, so they can be customer-friendly and easy to set-up. You'll have some basic customizations available from within the plugin.
 
21
 
22
- **Features**
23
-
24
- * Mobile optimized form
25
  * Easier sign-ups to your MailChimp newsletter
26
  * Automatic synching with your MailChimp account
27
  * Beautiful templates for your Mailchimp newsletter sign-up form
@@ -30,17 +30,17 @@ Our templates have been carefully designed, so they can be customer-friendly and
30
  * Monitor MailChimp account activity
31
  * Use MailChimp Interest Group/Segments
32
  * Add MailChimp forms to posts, pages, or categories
33
- * Set forms to single or double opt-in
34
- * Customize the success message
35
- * Customize the submit button text
36
  * Redirect users to a page on submission
37
  * Un-subscribe users from MailChimp lists
38
  * View subscriber MailChimp profiles
39
  * View individual form subscriber count
40
  * Display multiple forms on a single page
41
- * Easily add forms to pages and posts with a button in the page/post editor
42
 
43
- After installation and creating your account, the plugin will guide you through connecting with MailChimp, selecting your List from our service, and then adding the form to your site. The time from starting installation to have the form on your site should be less than 5 minutes - absolutely everything can be done via our user friendly GUI - no file editing at all!
44
 
45
  == Installation ==
46
 
@@ -61,6 +61,11 @@ If you are using Wordpress v3.0 or higher, you can use the short-code given duri
61
 
62
  == Frequently Asked Questions ==
63
 
 
 
 
 
 
64
  = Do I need to have a MailChimp Account? =
65
  Yes, you can register for one for free at [MailChimp](https://mailchimp.com/sign up/ "MailChimp Signup").
66
 
@@ -81,38 +86,8 @@ After you connect your MailChimp account, the plugin will fetch all of your Mail
81
  = How do I add the MailChimp sign up forms to my site? =
82
  We offer a variety of forms: Popups, Embedded, Top Bar, etc. You can choose which pages, posts or categories to show it on. You can also use a shortcode to add a form to a specific area in a page or post. Everything is done visually.
83
 
84
- = How can I translate this plugin? =
85
- Easy MailChimp Forms is now translated into multiple languages:
86
-
87
- * Arabic
88
- * Chinese
89
- * English
90
- * French
91
- * German
92
- * Greek
93
- * Hebrew
94
- * Hindi
95
- * Hong Kong
96
- * Italian
97
- * Japanese
98
- * Korean
99
- * Persian
100
- * Portuguese (Brazilian)
101
- * Portuguese (European)
102
- * Romanian
103
- * Russian
104
- * Spanish
105
- * Swedish
106
- * Taiwanese
107
- * Tamil
108
- * Urdu
109
- * Vietnamese
110
- * Welsh
111
-
112
- Read the Codex article [Installing WordPress in Your Language](http://codex.wordpress.org/Installing_WordPress_in_Your_Language) for more information.
113
-
114
  = Does this plugin slow down my site? =
115
- Absolutely not. MailMunch is designed with high performance and scalability in mind. It's completely asynchronous and hosted on Amazon's highly scalable infrastructure. Some of our customers have very high traffic websites.
116
 
117
  = How many more emails will list builder help me get? =
118
  Most people see a 100% to 500% growth in their email subscribers.
@@ -130,6 +105,7 @@ Why people use MailChimp
130
  * MailChimp can send automated drip campaigns (scheduled emails)
131
  * MailChimp has better list management
132
  * MailChimp has great error messaging
 
133
 
134
  == Screenshots ==
135
 
@@ -137,11 +113,14 @@ Why people use MailChimp
137
  2. The second step is configuring your optin form for things like when to show it, how often to show it, and where to go after they subscribe
138
  3. This is the integration step where you can connect your MailChimp account
139
  4. This is the final step where you can publish your optin form to all or selected posts, categories or pages
140
- 5. And finally, we have the optin form working live on your blog - increasing your subscribers :)
141
- 6. An example from a user site
142
- 7. Another example from a user site
143
 
144
  == Changelog ==
145
 
 
 
 
146
  = 1.0.1 =
147
- * The first version of MailChimp Forms WordPress plugin by MailMunch
1
+ === MailChimp Forms by MailMunch ===
2
  Contributors: mailmunch
3
  Tags: mailchimp, MailChimp form, MailChimp Newsletter form, MailChimp plugin, newsletter, newsletter form, newsletter form plugin, optin form, form, signup, signup forms, signup form, widget, email form, leads
4
  Requires at least: 3.0.1
5
  Tested up to: 4.0
6
+ Stable tag: 1.0.5
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
+ The #1 MailChimp plugin to get more email subscribers. Easily add MailChimp sign-up forms as popup, embedded widget or sticky top bar.
11
 
12
  == Description ==
13
 
15
 
16
  What is [MailChimp](http://www.mailchimp.com/)? MailChimp is one of the best email marketing tools. Signup up for a [FREE Trial Account](http://www.mailchimp.com/signup/) and see for yourself!
17
 
18
+ Our improved signup plugin for MailChimp will proactively sign-up new subscribers to your newsletter list. Our forms offer the same basic features that MailChimp's official plugin, but also much more. In addition to the form, analytics will help you track the number of form views and subscriptions.
19
 
20
+ = Sign-Up Forms =
21
+ Easily create sign-up forms for your MailChimp list and display it as a popup, embedded widget or a top bar.
22
 
23
+ = Features =
24
+ * Mobile optimized MailChimp form
 
25
  * Easier sign-ups to your MailChimp newsletter
26
  * Automatic synching with your MailChimp account
27
  * Beautiful templates for your Mailchimp newsletter sign-up form
30
  * Monitor MailChimp account activity
31
  * Use MailChimp Interest Group/Segments
32
  * Add MailChimp forms to posts, pages, or categories
33
+ * Set forms to single or double opt-in for MailChimp
34
+ * Send MailChimp welcome email
35
+ * Customize the success message and submit button text
36
  * Redirect users to a page on submission
37
  * Un-subscribe users from MailChimp lists
38
  * View subscriber MailChimp profiles
39
  * View individual form subscriber count
40
  * Display multiple forms on a single page
41
+ * Easily add MailChimp forms to pages and posts with a button in the page/post editor
42
 
43
+ After installation and creating your account, the plugin will guide you through connecting with MailChimp, selecting your MailChimp List from our service, and then adding the form to your site. The time from starting installation to have the form on your site should be less than 5 minutes - absolutely everything can be done via our user friendly GUI - no file editing at all!
44
 
45
  == Installation ==
46
 
61
 
62
  == Frequently Asked Questions ==
63
 
64
+ = What in the world is MailChimp? =
65
+ [MailChimp](http://mailchimp.com/features/all/) is full of useful, powerful email marketing features that are easy to use whether you're an email marketing expert, or a small business just getting started.
66
+
67
+ To learn more, just check out: [MailChimp](http://mailchimp.com/features/all/)
68
+
69
  = Do I need to have a MailChimp Account? =
70
  Yes, you can register for one for free at [MailChimp](https://mailchimp.com/sign up/ "MailChimp Signup").
71
 
86
  = How do I add the MailChimp sign up forms to my site? =
87
  We offer a variety of forms: Popups, Embedded, Top Bar, etc. You can choose which pages, posts or categories to show it on. You can also use a shortcode to add a form to a specific area in a page or post. Everything is done visually.
88
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
  = Does this plugin slow down my site? =
90
+ Absolutely not. MailChimp by MailMunch is designed with high performance and scalability in mind. It's completely asynchronous and hosted on Amazon's highly scalable infrastructure. Some of our customers have very high traffic websites.
91
 
92
  = How many more emails will list builder help me get? =
93
  Most people see a 100% to 500% growth in their email subscribers.
105
  * MailChimp can send automated drip campaigns (scheduled emails)
106
  * MailChimp has better list management
107
  * MailChimp has great error messaging
108
+ * MailChimp has interest groups/segments
109
 
110
  == Screenshots ==
111
 
113
  2. The second step is configuring your optin form for things like when to show it, how often to show it, and where to go after they subscribe
114
  3. This is the integration step where you can connect your MailChimp account
115
  4. This is the final step where you can publish your optin form to all or selected posts, categories or pages
116
+ 5. And finally, we have the optin form working live on your blog - increasing your MailChimp subscribers :)
117
+ 6. A MailChimp connected form example from a user site
118
+ 7. Another MailChimp connected example from a user site
119
 
120
  == Changelog ==
121
 
122
+ = 1.0.5 =
123
+ * More MailChimp features
124
+
125
  = 1.0.1 =
126
+ * The first version of MailChimp Forms WordPress plugin by MailMunch