WordPress Landing Pages - Version 2.1.1

Version Description

  • Removing old admin notification
Download this release

Release Info

Developer adbox
Plugin Icon 128x128 WordPress Landing Pages
Version 2.1.1
Comparing to
See all releases

Code changes from version 2.1.0 to 2.1.1

.gitignore CHANGED
@@ -56,3 +56,4 @@ bin
56
  /shared/assets/plugins/advanced-custom-fields/lang/**.pot
57
  /shared/assets/plugins/advanced-custom-fields/lang/**.po
58
  /shared/assets/plugins/advanced-custom-fields/lang/**.mo
 
56
  /shared/assets/plugins/advanced-custom-fields/lang/**.pot
57
  /shared/assets/plugins/advanced-custom-fields/lang/**.po
58
  /shared/assets/plugins/advanced-custom-fields/lang/**.mo
59
+ /svn
landing-pages.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Landing Pages
4
  Plugin URI: http://www.inboundnow.com/landing-pages/
5
  Description: The first true all-in-one Landing Page solution for WordPress, including ongoing conversion metrics, a/b split testing, unlimited design options and so much more!
6
- Version: 2.1.0
7
  Author: Inbound Now
8
  Author URI: http://www.inboundnow.com/
9
  Text Domain: landing-pages
@@ -38,7 +38,7 @@ if (!class_exists('Inbound_Landing_Pages_Plugin')) {
38
  */
39
  private static function load_constants() {
40
 
41
- define('LANDINGPAGES_CURRENT_VERSION', '2.1.0' );
42
  define('LANDINGPAGES_URLPATH', plugins_url( '/' , __FILE__ ) );
43
  define('LANDINGPAGES_PATH', WP_PLUGIN_DIR.'/'.plugin_basename( dirname(__FILE__) ).'/' );
44
  define('LANDINGPAGES_PLUGIN_SLUG', plugin_basename( dirname(__FILE__) ) );
3
  Plugin Name: Landing Pages
4
  Plugin URI: http://www.inboundnow.com/landing-pages/
5
  Description: The first true all-in-one Landing Page solution for WordPress, including ongoing conversion metrics, a/b split testing, unlimited design options and so much more!
6
+ Version: 2.1.1
7
  Author: Inbound Now
8
  Author URI: http://www.inboundnow.com/
9
  Text Domain: landing-pages
38
  */
39
  private static function load_constants() {
40
 
41
+ define('LANDINGPAGES_CURRENT_VERSION', '2.1.1' );
42
  define('LANDINGPAGES_URLPATH', plugins_url( '/' , __FILE__ ) );
43
  define('LANDINGPAGES_PATH', WP_PLUGIN_DIR.'/'.plugin_basename( dirname(__FILE__) ).'/' );
44
  define('LANDINGPAGES_PLUGIN_SLUG', plugin_basename( dirname(__FILE__) ) );
readme.txt CHANGED
@@ -1,13 +1,13 @@
1
  === WordPress Landing Pages ===
2
 
3
- Contributors: Hudson Atwell, David Wells, Giulio Dapreala
4
  Donate link: mailto:hudson@inboundnow.com
5
  License: GPLv2 or later
6
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
  Tags: landing pages, inbound marketing, conversion pages, split testing, a b test, a b testing, a/b test, a/b testing, coming soon page, email list, landing page, list building, maintenance page, squeeze page, inbound now, landing-pages, splash pages, cpa, click tracking, goal tracking, analytics, free landing page templates
8
  Requires at least: 3.8
9
  Tested up to: 4.4.2
10
- Stable Tag: 2.1.0
11
 
12
  Create landing pages for your WordPress site. Monitor and improve conversion rates, run A/B split tests, customize your own templates and more.
13
 
@@ -73,6 +73,9 @@ The plugin is also fully extendable and has a number of actions, filters, and ho
73
 
74
  == Changelog ==
75
 
 
 
 
76
  = 2.1.0 =
77
  * Preparing for Inbound Pro
78
 
1
  === WordPress Landing Pages ===
2
 
3
+ Contributors: Hudson Atwell, David Wells, Giulio Daprela
4
  Donate link: mailto:hudson@inboundnow.com
5
  License: GPLv2 or later
6
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
  Tags: landing pages, inbound marketing, conversion pages, split testing, a b test, a b testing, a/b test, a/b testing, coming soon page, email list, landing page, list building, maintenance page, squeeze page, inbound now, landing-pages, splash pages, cpa, click tracking, goal tracking, analytics, free landing page templates
8
  Requires at least: 3.8
9
  Tested up to: 4.4.2
10
+ Stable Tag: 2.1.1
11
 
12
  Create landing pages for your WordPress site. Monitor and improve conversion rates, run A/B split tests, customize your own templates and more.
13
 
73
 
74
  == Changelog ==
75
 
76
+ = 2.1.1 =
77
+ * Removing old admin notification
78
+
79
  = 2.1.0 =
80
  * Preparing for Inbound Pro
81
 
shared/assets/assets.loader.class.php CHANGED
@@ -162,7 +162,7 @@ if (!class_exists('Inbound_Asset_Loader')) {
162
  if (!$lead_comment_tracking) {
163
  $comment_tracking = 'off';
164
  }
165
- if (!$lead_page_view_tracking) {
166
  $page_tracking = 'off';
167
  }
168
 
162
  if (!$lead_comment_tracking) {
163
  $comment_tracking = 'off';
164
  }
165
+ if (!$lead_page_view_tracking || isset($_GET['inbound-do-not-track']) ) {
166
  $page_tracking = 'off';
167
  }
168
 
shared/classes/class.form.php CHANGED
@@ -836,7 +836,7 @@ if (!class_exists('Inbound_Forms')) {
836
 
837
  $headers = 'From: '. $from_name .' <'. $from_email .'>' . "\r\n";
838
  $headers .= "Reply-To: ".$reply_to_email . "\r\n";
839
- $headers = apply_filters( 'inbound_lead_notification_email_headers', $headers );
840
 
841
  foreach ($to_address as $key => $recipient) {
842
  $result = wp_mail( $recipient, $subject, $body, $headers, apply_filters('inbound_lead_notification_attachments', false) );
@@ -908,8 +908,8 @@ if (!class_exists('Inbound_Forms')) {
908
 
909
 
910
 
911
- $confirm_subject = apply_filters( 'inbound_email_response/subject', $confirm_subject, $form_meta_data, $form_post_data );
912
- $confirm_email_message = apply_filters( 'inbound_email_response/body', $confirm_email_message, $form_meta_data, $form_post_data );
913
 
914
  $confirm_subject = $Inbound_Templating_Engine->replace_tokens( $confirm_subject, array($form_post_data, $form_meta_data ));
915
 
@@ -926,7 +926,7 @@ if (!class_exists('Inbound_Forms')) {
926
 
927
  $headers = "From: " . $from_name . " <" . $from_email . ">\n";
928
  $headers .= 'Content-type: text/html';
929
- $headers = apply_filters( 'inbound_email_response/headers' , $headers);
930
 
931
  wp_mail( $lead_email, $confirm_subject, $confirm_email_message, $headers );
932
 
836
 
837
  $headers = 'From: '. $from_name .' <'. $from_email .'>' . "\r\n";
838
  $headers .= "Reply-To: ".$reply_to_email . "\r\n";
839
+ $headers = apply_filters( 'inbound_email_response/headers', $headers );
840
 
841
  foreach ($to_address as $key => $recipient) {
842
  $result = wp_mail( $recipient, $subject, $body, $headers, apply_filters('inbound_lead_notification_attachments', false) );
908
 
909
 
910
 
911
+ $confirm_subject = apply_filters( 'inbound_lead_conversion/subject', $confirm_subject, $form_meta_data, $form_post_data );
912
+ $confirm_email_message = apply_filters( 'inbound_lead_conversion/body', $confirm_email_message, $form_meta_data, $form_post_data );
913
 
914
  $confirm_subject = $Inbound_Templating_Engine->replace_tokens( $confirm_subject, array($form_post_data, $form_meta_data ));
915
 
926
 
927
  $headers = "From: " . $from_name . " <" . $from_email . ">\n";
928
  $headers .= 'Content-type: text/html';
929
+ $headers = apply_filters( 'inbound_lead_conversion/headers' , $headers);
930
 
931
  wp_mail( $lead_email, $confirm_subject, $confirm_email_message, $headers );
932
 
shared/classes/class.promote.php CHANGED
@@ -62,7 +62,7 @@ class Inbound_Promote {
62
  if ( in_array( $file , $plugins ) ) {
63
  return array_merge(
64
  $links,
65
- array( '<a href="http://inboundsite.wpengine.com/upgrade">'.__( 'UPGRADE TO PRO (FREE)' , INBOUNDNOW_TEXT_DOMAIN ) .'</a>' )
66
  );
67
  }
68
  return $links;
@@ -134,7 +134,7 @@ class Inbound_Promote {
134
  ' . __('It\'s free, and we invite you to try it.' , INBOUNDNOW_TEXT_DOMAIN ) .'
135
  </p>
136
  <br>
137
- <a class="button button-primary button-large" href="http://inboundsite.wpengine.com/upgrade/" target="_blank">' . __('Upgrade', INBOUNDNOW_TEXT_DOMAIN) . '</a>
138
  <a class="button button-default button-large inbound_dismiss" href="#" id="'.$message_id.'" data-notification-id="'.$message_id.'" >' . __('Dismiss this message', INBOUNDNOW_TEXT_DOMAIN) . '</a>
139
  <br>
140
  <br>
62
  if ( in_array( $file , $plugins ) ) {
63
  return array_merge(
64
  $links,
65
+ array( '<a href="http://www.inboundnow.com/upgrade">'.__( 'UPGRADE TO PRO (FREE)' , INBOUNDNOW_TEXT_DOMAIN ) .'</a>' )
66
  );
67
  }
68
  return $links;
134
  ' . __('It\'s free, and we invite you to try it.' , INBOUNDNOW_TEXT_DOMAIN ) .'
135
  </p>
136
  <br>
137
+ <a class="button button-primary button-large" href="http://www.inboundnow.com/upgrade/" target="_blank">' . __('Upgrade', INBOUNDNOW_TEXT_DOMAIN) . '</a>
138
  <a class="button button-default button-large inbound_dismiss" href="#" id="'.$message_id.'" data-notification-id="'.$message_id.'" >' . __('Dismiss this message', INBOUNDNOW_TEXT_DOMAIN) . '</a>
139
  <br>
140
  <br>
shared/classes/class.shortcodes.email-template.php CHANGED
@@ -56,6 +56,15 @@ class Inbound_Email_Template_Shortcodes {
56
  /*print_r($post_params); exit; */
57
  }
58
 
 
 
 
 
 
 
 
 
 
59
  foreach ($post_params as $key => $value ) {
60
 
61
  $name = str_replace(array('-','_'),' ', $key);
@@ -76,6 +85,7 @@ class Inbound_Email_Template_Shortcodes {
76
  /* Rewrite UTM params */
77
  if (preg_match( '/utm_/i', $key)) {
78
  $name = ucfirst(str_replace("utm_", "", $key));
 
79
  }
80
 
81
  if ($key == "inbound_form_id" ) {
56
  /*print_r($post_params); exit; */
57
  }
58
 
59
+ /* unset google recaptcha */
60
+ unset($post_params['g_recaptcha_response']);
61
+
62
+ /* unset others */
63
+ unset($post_params['page_id']);
64
+
65
+ /* filter params */
66
+ $post_params = apply_filters('inbound_email_response/post_params' , $post_params);
67
+
68
  foreach ($post_params as $key => $value ) {
69
 
70
  $name = str_replace(array('-','_'),' ', $key);
85
  /* Rewrite UTM params */
86
  if (preg_match( '/utm_/i', $key)) {
87
  $name = ucfirst(str_replace("utm_", "", $key));
88
+ $name = str_replace('Wpleads ' , '' , $name);
89
  }
90
 
91
  if ($key == "inbound_form_id" ) {
shared/classes/class.templating-engine.php CHANGED
@@ -75,6 +75,7 @@ class Inbound_Templating_Engine {
75
 
76
  /* prepare/re-map keys */
77
  $key = str_replace( 'inbound_current_page_url', 'source', $key );
 
78
  $key = str_replace( 'inbound_', '', $key );
79
  $key = str_replace( 'wpleads_', 'lead_', $key );
80
  $key = str_replace( '_', '-', $key );
75
 
76
  /* prepare/re-map keys */
77
  $key = str_replace( 'inbound_current_page_url', 'source', $key );
78
+ $key = str_replace( 'inbound_form_n', 'form_name', $key );
79
  $key = str_replace( 'inbound_', '', $key );
80
  $key = str_replace( 'wpleads_', 'lead_', $key );
81
  $key = str_replace( '_', '-', $key );
shared/docs/install-premium-landing-page-templates.md CHANGED
@@ -1,5 +1,5 @@
1
  #How To Install Premium Landing Page Templates For InboundNow
2
- This guide is meant for people that use the free version of the plugin Landing Pages by InboundNow. The free Landing Pages plugin comes with a number of free landing pages included. They usually are basic pages with limited customization options. Users of the plugin can access our marketplace and buy any premium template which must be downloaded and installed using the procedure in this documentation. Subscribers to any of our [paid plans](http://inboundsite.wpengine.com/pricing/) have already access to all the premium templates for all of our plugins, so they don't need this guide. If you need more than one of our premium templates, or one-click easy installations of premium templatesm, please consider subscribing to one of our [paid plans](http://inboundsite.wpengine.com/pricing/). With an active premium membership you will have immediate access to all of Inbound Now's feature extensions and premium templates.
3
 
4
  ##Difference Between Landing Pages Free And Premium
5
  Our templating system uses the plugin [Advanced Custom Fields](http://www.advancedcustomfields.com/) to manage all the template's customization options. It is important to note that the free version of the Landing Pages plugin that we serve from the [WordPress Repo](http://wordpress.org/extend/plugins/landing-pages/) comes with the ACF Lite bundled while the premium version comes with ACF PRO version 5. The big difference between the two versions of ACF is that ACF free does not support the flexible and repeater fields that are required for most premium templates.
1
  #How To Install Premium Landing Page Templates For InboundNow
2
+ This guide is meant for people that use the free version of the plugin Landing Pages by InboundNow. The free Landing Pages plugin comes with a number of free landing pages included. They usually are basic pages with limited customization options. Users of the plugin can access our marketplace and buy any premium template which must be downloaded and installed using the procedure in this documentation. Subscribers to any of our [paid plans](http://www.inboundnow.com/pricing/) have already access to all the premium templates for all of our plugins, so they don't need this guide. If you need more than one of our premium templates, or one-click easy installations of premium templatesm, please consider subscribing to one of our [paid plans](http://www.inboundnow.com/pricing/). With an active premium membership you will have immediate access to all of Inbound Now's feature extensions and premium templates.
3
 
4
  ##Difference Between Landing Pages Free And Premium
5
  Our templating system uses the plugin [Advanced Custom Fields](http://www.advancedcustomfields.com/) to manage all the template's customization options. It is important to note that the free version of the Landing Pages plugin that we serve from the [WordPress Repo](http://wordpress.org/extend/plugins/landing-pages/) comes with the ACF Lite bundled while the premium version comes with ACF PRO version 5. The big difference between the two versions of ACF is that ACF free does not support the flexible and repeater fields that are required for most premium templates.