Version Description
Download this release
Release Info
Developer | mailmunch |
Plugin | MailMunch – Grow your Email List |
Version | 3.0.6 |
Comparing to | |
See all releases |
Code changes from version 3.0.5 to 3.0.6
- includes/class-mailmunch.php +1 -1
- mailmunch.php +1 -1
- public/mailmunch-landing-page.php +18 -1
- readme.txt +2 -2
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.
|
26 |
|
27 |
/**
|
28 |
* The core plugin class.
|
22 |
define( 'MAILMUNCH_PREFIX', 'mailmunch' );
|
23 |
define( 'MAILMUNCH_POST_TYPE', 'mailmunch_page' );
|
24 |
define( 'MAILMUNCH_PLUGIN_DIRECTORY', 'mailmunch' );
|
25 |
+
define( 'MAILMUNCH_VERSION', '3.0.6' );
|
26 |
|
27 |
/**
|
28 |
* The core plugin class.
|
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.
|
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.6
|
20 |
* Author: MailMunch
|
21 |
* Author URI: http://www.mailmunch.co
|
22 |
* License: GPL-2.0+
|
public/mailmunch-landing-page.php
CHANGED
@@ -17,6 +17,23 @@ if ( is_array( $response ) && ! is_wp_error( $response ) ) {
|
|
17 |
include( get_query_template( '404' ) );
|
18 |
die();
|
19 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
?>
|
21 |
<!DOCTYPE html>
|
22 |
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
|
@@ -39,7 +56,7 @@ if ( is_array( $response ) && ! is_wp_error( $response ) ) {
|
|
39 |
<?php echo $pageHead; ?>
|
40 |
</head>
|
41 |
<body>
|
42 |
-
<?php echo
|
43 |
|
44 |
<?php wp_footer(); ?>
|
45 |
</body>
|
17 |
include( get_query_template( '404' ) );
|
18 |
die();
|
19 |
}
|
20 |
+
|
21 |
+
function parse_shortcodes($html) {
|
22 |
+
$pattern = get_shortcode_regex();
|
23 |
+
if (preg_match_all( '/'. $pattern .'/s', $html, $matches )
|
24 |
+
&& array_key_exists( 2, $matches ))
|
25 |
+
{
|
26 |
+
$shortcodes = array_unique($matches[0]);
|
27 |
+
foreach ($shortcodes as $shortcode) {
|
28 |
+
$parsedShortcodeHtml = do_shortcode($shortcode);
|
29 |
+
if (!empty($parsedShortcodeHtml)) {
|
30 |
+
$jsonEncodedShortcodeHtml = json_encode($parsedShortcodeHtml);
|
31 |
+
$html = str_replace($shortcode, substr($jsonEncodedShortcodeHtml, 1, -1), $html);
|
32 |
+
}
|
33 |
+
}
|
34 |
+
}
|
35 |
+
return $html;
|
36 |
+
}
|
37 |
?>
|
38 |
<!DOCTYPE html>
|
39 |
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
|
56 |
<?php echo $pageHead; ?>
|
57 |
</head>
|
58 |
<body>
|
59 |
+
<?php echo parse_shortcodes($pageBody); ?>
|
60 |
|
61 |
<?php wp_footer(); ?>
|
62 |
</body>
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
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.
|
6 |
-
Stable tag: 3.0.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
2 |
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.8
|
6 |
+
Stable tag: 3.0.6
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|