Version Description
Download this release
Release Info
Developer | mailmunch |
Plugin | MailChimp Forms by MailMunch |
Version | 3.0.8 |
Comparing to | |
See all releases |
Code changes from version 3.0.7 to 3.0.8
admin/class-mailchimp-mailmunch-admin.php
CHANGED
@@ -304,7 +304,9 @@ class Mailchimp_Mailmunch_Admin {
|
|
304 |
*/
|
305 |
public function autoresponders_page() {
|
306 |
$this->initiate_api();
|
307 |
-
|
|
|
|
|
308 |
}
|
309 |
|
310 |
/**
|
@@ -373,6 +375,8 @@ class Mailchimp_Mailmunch_Admin {
|
|
373 |
|
374 |
$this->mailmunch_api->createIntegration($accessToken, $_POST['list_id']);
|
375 |
}
|
|
|
|
|
376 |
require_once(plugin_dir_path( __FILE__ ) . 'partials/mailchimp-mailmunch-admin-display.php');
|
377 |
}
|
378 |
|
304 |
*/
|
305 |
public function autoresponders_page() {
|
306 |
$this->initiate_api();
|
307 |
+
$currentStep = 'autoresponders';
|
308 |
+
require_once(plugin_dir_path( __FILE__ ) . 'partials/mailchimp-mailmunch-tabs.php');
|
309 |
+
require_once(plugin_dir_path( __FILE__ ) . 'partials/mailchimp-mailmunch-autoresponders.php');
|
310 |
}
|
311 |
|
312 |
/**
|
375 |
|
376 |
$this->mailmunch_api->createIntegration($accessToken, $_POST['list_id']);
|
377 |
}
|
378 |
+
$currentStep = 'forms';
|
379 |
+
require_once(plugin_dir_path( __FILE__ ) . 'partials/mailchimp-mailmunch-tabs.php');
|
380 |
require_once(plugin_dir_path( __FILE__ ) . 'partials/mailchimp-mailmunch-admin-display.php');
|
381 |
}
|
382 |
|
admin/partials/mailchimp-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='.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 } ?>
|
includes/class-mailchimp-mailmunch-post-type.php
CHANGED
@@ -61,6 +61,12 @@ class Mailchimp_Mailmunch_Post_Type {
|
|
61 |
}
|
62 |
return $template;
|
63 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
|
65 |
public function post_meta_box($postType, $post) {
|
66 |
if ($postType == MAILCHIMP_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/mailchimp-mailmunch-tabs.php');
|
68 |
+
return $views;
|
69 |
+
}
|
70 |
|
71 |
public function post_meta_box($postType, $post) {
|
72 |
if ($postType == MAILCHIMP_MAILMUNCH_POST_TYPE) {
|
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.
|
26 |
|
27 |
/**
|
28 |
* The core plugin class.
|
@@ -267,6 +267,7 @@ class Mailchimp_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( '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.
|
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-'. MAILCHIMP_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 |
|
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.
|
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.8
|
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 |
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.8
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|