MailMunch – Grow your Email List - Version 3.0.9

Version Description

Download this release

Release Info

Developer mailmunch
Plugin Icon 128x128 MailMunch – Grow your Email List
Version 3.0.9
Comparing to
See all releases

Code changes from version 3.0.8 to 3.0.9

admin/class-mailmunch-admin.php CHANGED
@@ -287,6 +287,8 @@ class Mailmunch_Admin {
287
  */
288
  public function autoresponders_page() {
289
  $this->initiate_api();
 
 
290
  require_once(plugin_dir_path(__FILE__) . 'partials/mailmunch-autoresponders.php');
291
  }
292
 
@@ -328,6 +330,8 @@ class Mailmunch_Admin {
328
  */
329
  public function get_dashboard_html() {
330
  $this->initiate_api();
 
 
331
  require_once(plugin_dir_path( __FILE__ ) . 'partials/mailmunch-admin-display.php');
332
  require_once(plugin_dir_path( __FILE__ ) . 'partials/mailmunch-modals.php');
333
  }
287
  */
288
  public function autoresponders_page() {
289
  $this->initiate_api();
290
+ $currentStep = 'autoresponders';
291
+ require_once(plugin_dir_path( __FILE__ ) . 'partials/mailmunch-tabs.php');
292
  require_once(plugin_dir_path(__FILE__) . 'partials/mailmunch-autoresponders.php');
293
  }
294
 
330
  */
331
  public function get_dashboard_html() {
332
  $this->initiate_api();
333
+ $currentStep = 'forms';
334
+ require_once(plugin_dir_path( __FILE__ ) . 'partials/mailmunch-tabs.php');
335
  require_once(plugin_dir_path( __FILE__ ) . 'partials/mailmunch-admin-display.php');
336
  require_once(plugin_dir_path( __FILE__ ) . 'partials/mailmunch-modals.php');
337
  }
admin/partials/mailmunch-tabs.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php if ($currentStep == 'landingpages') { ?><br /><?php } ?>
2
+ <h2 class="nav-tab-wrapper">
3
+ <a href="<?php echo admin_url('admin.php?page='.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='.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='.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 } ?>
includes/class-mailmunch-post-type.php CHANGED
@@ -61,6 +61,12 @@ class Mailmunch_Post_Type {
61
  }
62
  return $template;
63
  }
 
 
 
 
 
 
64
 
65
  public function post_meta_box($postType, $post) {
66
  if ($postType == MAILMUNCH_POST_TYPE) {
61
  }
62
  return $template;
63
  }
64
+
65
+ public function post_type_desc( $views ) {
66
+ $currentStep = 'landingpages';
67
+ require_once(plugin_dir_path( dirname( __FILE__ ) ) . 'admin/partials/mailmunch-tabs.php');
68
+ return $views;
69
+ }
70
 
71
  public function post_meta_box($postType, $post) {
72
  if ($postType == MAILMUNCH_POST_TYPE) {
includes/class-mailmunch.php CHANGED
@@ -22,7 +22,7 @@ define( 'MAILMUNCH_SLUG', "mailmunch" );
22
  define( 'MAILMUNCH_PREFIX', 'mailmunch' );
23
  define( 'MAILMUNCH_POST_TYPE', 'mailmunch_page' );
24
  define( 'MAILMUNCH_PLUGIN_DIRECTORY', 'mailmunch' );
25
- define( 'MAILMUNCH_VERSION', '3.0.8' );
26
 
27
  /**
28
  * The core plugin class.
@@ -267,6 +267,7 @@ class Mailmunch {
267
  $this->loader->add_action('init', $plugin_post_type, 'create_post_type');
268
  $this->loader->add_filter('template_include', $plugin_post_type, 'post_type_template');
269
  $this->loader->add_filter('get_pages', $plugin_post_type, 'add_pages_to_dropdown', 10, 2);
 
270
  $this->loader->add_action('add_meta_boxes', $plugin_post_type, 'post_meta_box', 10, 2);
271
  $this->loader->add_action('save_post', $plugin_post_type, 'landing_page_save_meta', 10, 2 );
272
 
22
  define( 'MAILMUNCH_PREFIX', 'mailmunch' );
23
  define( 'MAILMUNCH_POST_TYPE', 'mailmunch_page' );
24
  define( 'MAILMUNCH_PLUGIN_DIRECTORY', 'mailmunch' );
25
+ define( 'MAILMUNCH_VERSION', '3.0.9' );
26
 
27
  /**
28
  * The core plugin class.
267
  $this->loader->add_action('init', $plugin_post_type, 'create_post_type');
268
  $this->loader->add_filter('template_include', $plugin_post_type, 'post_type_template');
269
  $this->loader->add_filter('get_pages', $plugin_post_type, 'add_pages_to_dropdown', 10, 2);
270
+ $this->loader->add_filter('views_edit-'. MAILMUNCH_POST_TYPE, $plugin_post_type, 'post_type_desc');
271
  $this->loader->add_action('add_meta_boxes', $plugin_post_type, 'post_meta_box', 10, 2);
272
  $this->loader->add_action('save_post', $plugin_post_type, 'landing_page_save_meta', 10, 2 );
273
 
mailmunch.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: MailMunch - Grow Your Email List
17
  * Plugin URI: http://www.mailmunch.co
18
  * Description: The best free plugin to get more email subscribers. Beautiful signup forms and landing pages that integrate with MailChimp, Constant Contact, AWeber, Campaign Monitor and more.
19
- * Version: 3.0.8
20
  * Author: MailMunch
21
  * Author URI: http://www.mailmunch.co
22
  * License: GPL-2.0+
16
  * Plugin Name: MailMunch - Grow Your Email List
17
  * Plugin URI: http://www.mailmunch.co
18
  * Description: The best free plugin to get more email subscribers. Beautiful signup forms and landing pages that integrate with MailChimp, Constant Contact, AWeber, Campaign Monitor and more.
19
+ * Version: 3.0.9
20
  * Author: MailMunch
21
  * Author URI: http://www.mailmunch.co
22
  * License: GPL-2.0+
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: mailmunch, lizgannes
3
  Tags: signup form, newsletter, newsletters, subscribe, popup, exit popup, exit intent, subscribers, subscription, popover, lightbox, analytics, collect email, optin, optin form, optin forms, double optin, list builder, email form, lead, leads, mailchimp, mailchimp form, mailchimp newsletter, mailchimp plugin, mailchimp signup, mailchimp signup forms, mailchimp signup form, mailchimp widget, mailchimp subscribe, constant contact, contact contact form, constant contact newsletter, constant contact plugin, constant contact signup, constant contact signup forms, constant contact signup form, constant contact widget, constant contact subscribe, aweber, aweber form, aweber forms, aweber signup form, aweber plugin
4
  Requires at least: 3.0.1
5
  Tested up to: 4.9
6
- Stable tag: 3.0.8
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
3
  Tags: signup form, newsletter, newsletters, subscribe, popup, exit popup, exit intent, subscribers, subscription, popover, lightbox, analytics, collect email, optin, optin form, optin forms, double optin, list builder, email form, lead, leads, mailchimp, mailchimp form, mailchimp newsletter, mailchimp plugin, mailchimp signup, mailchimp signup forms, mailchimp signup form, mailchimp widget, mailchimp subscribe, constant contact, contact contact form, constant contact newsletter, constant contact plugin, constant contact signup, constant contact signup forms, constant contact signup form, constant contact widget, constant contact subscribe, aweber, aweber form, aweber forms, aweber signup form, aweber plugin
4
  Requires at least: 3.0.1
5
  Tested up to: 4.9
6
+ Stable tag: 3.0.9
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9