MailChimp Forms by MailMunch - Version 3.0.9

Version Description

Download this release

Release Info

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

Code changes from version 3.0.8 to 3.0.9

admin/class-mailchimp-mailmunch-admin.php CHANGED
@@ -324,12 +324,15 @@ class Mailchimp_Mailmunch_Admin {
324
  * @since 3.0.0
325
  */
326
  public function dashboard_widget() {
 
327
  $html = '<div class="mailmunch-dash-widget">';
328
  $html .= '<div class="mailmunch-dash-widget-inner">';
329
  $html .= '<p>Welcome to MailChimp Forms by MailMunch! The #1 plugin to grow your MailChimp email list.</p>';
330
  $html .= '<div>';
331
  $html .= '<a class="mailmunch-dash-option" href="'. admin_url('admin.php?page='.MAILCHIMP_MAILMUNCH_SLUG) .'"><span class="dashicons dashicons-editor-table"></span><span class="mailmunch-dash-text">Forms & Popups</span></a>';
332
- $html .= '<a class="mailmunch-dash-option" href="'. admin_url('edit.php?post_type='.MAILCHIMP_MAILMUNCH_POST_TYPE) .'"><span class="dashicons dashicons-admin-page"></span><span class="mailmunch-dash-text">Landing Pages</span></a>';
 
 
333
  $html .= '<a class="mailmunch-dash-option" href="'. admin_url('admin.php?page='.MAILCHIMP_MAILMUNCH_SLUG.'-autoresponders') .'"><span class="dashicons dashicons-email-alt"></span><span class="mailmunch-dash-text">Autoresponders</span></a>';
334
  $html .= '</div>';
335
  $html .= '</div>';
324
  * @since 3.0.0
325
  */
326
  public function dashboard_widget() {
327
+ $landingPagesEnabled = get_option(MAILCHIMP_MAILMUNCH_PREFIX. '_landing_pages_enabled');
328
  $html = '<div class="mailmunch-dash-widget">';
329
  $html .= '<div class="mailmunch-dash-widget-inner">';
330
  $html .= '<p>Welcome to MailChimp Forms by MailMunch! The #1 plugin to grow your MailChimp email list.</p>';
331
  $html .= '<div>';
332
  $html .= '<a class="mailmunch-dash-option" href="'. admin_url('admin.php?page='.MAILCHIMP_MAILMUNCH_SLUG) .'"><span class="dashicons dashicons-editor-table"></span><span class="mailmunch-dash-text">Forms & Popups</span></a>';
333
+ if (empty($landingPagesEnabled) || $landingPagesEnabled == 'yes') {
334
+ $html .= '<a class="mailmunch-dash-option" href="'. admin_url('edit.php?post_type='.MAILCHIMP_MAILMUNCH_POST_TYPE) .'"><span class="dashicons dashicons-admin-page"></span><span class="mailmunch-dash-text">Landing Pages</span></a>';
335
+ }
336
  $html .= '<a class="mailmunch-dash-option" href="'. admin_url('admin.php?page='.MAILCHIMP_MAILMUNCH_SLUG.'-autoresponders') .'"><span class="dashicons dashicons-email-alt"></span><span class="mailmunch-dash-text">Autoresponders</span></a>';
337
  $html .= '</div>';
338
  $html .= '</div>';
admin/partials/mailchimp-mailmunch-tabs.php CHANGED
@@ -1,7 +1,10 @@
1
- <?php if ($currentStep == 'landingpages') { ?><br /><?php } ?>
 
2
  <h2 class="nav-tab-wrapper">
3
  <a href="<?php echo admin_url('admin.php?page='.MAILCHIMP_MAILMUNCH_SLUG) ?>" class="nav-tab<?php if ($currentStep == 'forms') { echo " nav-tab-active"; } ?>">Forms & Popups</a>
 
4
  <a href="<?php echo admin_url('edit.php?post_type='.MAILCHIMP_MAILMUNCH_POST_TYPE) ?>" class="nav-tab<?php if ($currentStep == 'landingpages') { echo " nav-tab-active"; } ?>">Landing Pages</a>
 
5
  <a href="<?php echo admin_url('admin.php?page='.MAILCHIMP_MAILMUNCH_SLUG.'-autoresponders') ?>" class="nav-tab<?php if ($currentStep == 'autoresponders') { echo " nav-tab-active"; } ?>">Autoresponders</a>
6
  </h2>
7
  <?php if ($currentStep == 'landingpages') { ?><br /><?php } ?>
1
+ <?php $landingPagesEnabled = get_option(MAILCHIMP_MAILMUNCH_PREFIX. '_landing_pages_enabled'); ?>
2
+ <br />
3
  <h2 class="nav-tab-wrapper">
4
  <a href="<?php echo admin_url('admin.php?page='.MAILCHIMP_MAILMUNCH_SLUG) ?>" class="nav-tab<?php if ($currentStep == 'forms') { echo " nav-tab-active"; } ?>">Forms & Popups</a>
5
+ <?php if (empty($landingPagesEnabled) || $landingPagesEnabled == 'yes') { ?>
6
  <a href="<?php echo admin_url('edit.php?post_type='.MAILCHIMP_MAILMUNCH_POST_TYPE) ?>" class="nav-tab<?php if ($currentStep == 'landingpages') { echo " nav-tab-active"; } ?>">Landing Pages</a>
7
+ <?php } ?>
8
  <a href="<?php echo admin_url('admin.php?page='.MAILCHIMP_MAILMUNCH_SLUG.'-autoresponders') ?>" class="nav-tab<?php if ($currentStep == 'autoresponders') { echo " nav-tab-active"; } ?>">Autoresponders</a>
9
  </h2>
10
  <?php if ($currentStep == 'landingpages') { ?><br /><?php } ?>
includes/class-mailchimp-mailmunch.php CHANGED
@@ -22,7 +22,7 @@ define( 'MAILCHIMP_MAILMUNCH_SLUG', "mailchimp-mailmunch" );
22
  define( 'MAILCHIMP_MAILMUNCH_PREFIX', 'mc_mm' );
23
  define( 'MAILCHIMP_MAILMUNCH_POST_TYPE', 'mailmunch_page' );
24
  define( 'MAILCHIMP_MAILMUNCH_PLUGIN_DIRECTORY', 'mailchimp-forms-by-mailmunch' );
25
- define( 'MAILCHIMP_MAILMUNCH_VERSION', '3.0.8' );
26
 
27
  /**
28
  * The core plugin class.
22
  define( 'MAILCHIMP_MAILMUNCH_PREFIX', 'mc_mm' );
23
  define( 'MAILCHIMP_MAILMUNCH_POST_TYPE', 'mailmunch_page' );
24
  define( 'MAILCHIMP_MAILMUNCH_PLUGIN_DIRECTORY', 'mailchimp-forms-by-mailmunch' );
25
+ define( 'MAILCHIMP_MAILMUNCH_VERSION', '3.0.9' );
26
 
27
  /**
28
  * 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: 3.0.8
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: 3.0.9
20
  * Author: MailMunch
21
  * Author URI: http://www.mailmunch.co
22
  * License: GPL-2.0+
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.mailmunch.co/pricing/?utm_source=wp-plugin-repo&utm_med
4
  Tags: MailChimp, MailChimp forms, MailChimp lists, opt-in forms, sign up form, MailChimp, email, forms, mailing lists, marketing, newsletter, sign up
5
  Requires at least: 4.0
6
  Tested up to: 4.9
7
- Stable tag: 3.0.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
4
  Tags: MailChimp, MailChimp forms, MailChimp lists, opt-in forms, sign up form, MailChimp, email, forms, mailing lists, marketing, newsletter, sign up
5
  Requires at least: 4.0
6
  Tested up to: 4.9
7
+ Stable tag: 3.0.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10