WordPress Landing Pages - Version 2.4.4

Version Description

  • Adding wpautop to 'Single Double Column' template.
Download this release

Release Info

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

Code changes from version 2.4.3 to 2.4.4

README.md CHANGED
@@ -1,18 +1,3 @@
1
- ![](https://travis-ci.org/inboundnow/landing-pages.svg?branch=master)
2
-
3
- # WordPress Landing Pages #
4
-
5
- **Contributors:** David Wells, Hudson Atwell
6
- **Donate link:** mailto:marketplace@inboundnow.com
7
- **License:** GPLv2 or later
8
- **License URI:** http://www.gnu.org/licenses/gpl-2.0.html
9
- **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
10
- **Requires at least:** 3.8
11
- **Tested up to:** 4.1
12
- **Stable Tag:** 1.8.0
13
-
14
- Create landing pages for your WordPress site. Monitor and improve conversion rates, run A/B split tests, customize your own templates and more.
15
-
16
  ## Description ##
17
 
18
  > WordPress Landing Pages works as a standalone plugin or hand in hand with [WordPress Calls to Action](http://wordpress.org/plugins/cta/ "Learn more about Calls to Action") & [WordPress Leads](http://wordpress.org/plugins/leads/ "Learn more about WordPress Leads") to create a powerful & free lead generation system for your business.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ## Description ##
2
 
3
  > WordPress Landing Pages works as a standalone plugin or hand in hand with [WordPress Calls to Action](http://wordpress.org/plugins/cta/ "Learn more about Calls to Action") & [WordPress Leads](http://wordpress.org/plugins/leads/ "Learn more about WordPress Leads") to create a powerful & free lead generation system for your business.
landing-pages.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Landing Pages
4
  Plugin URI: http://www.inboundnow.com/landing-pages/
5
  Description: Landing page template framework with variant testing and lead capturing through cooperation with Inbound Now's Leads plugin. This is the stand alone version served through WordPress.org.
6
- Version: 2.4.3
7
  Author: Inbound Now
8
  Author URI: http://www.inboundnow.com/
9
 
@@ -37,7 +37,7 @@ if (!class_exists('Inbound_Landing_Pages_Plugin')) {
37
  */
38
  private static function load_constants() {
39
 
40
- define('LANDINGPAGES_CURRENT_VERSION', '2.4.3' );
41
  define('LANDINGPAGES_URLPATH', plugins_url( '/' , __FILE__ ) );
42
  define('LANDINGPAGES_PATH', WP_PLUGIN_DIR.'/'.plugin_basename( dirname(__FILE__) ).'/' );
43
  define('LANDINGPAGES_PLUGIN_SLUG', 'landing-pages' );
3
  Plugin Name: Landing Pages
4
  Plugin URI: http://www.inboundnow.com/landing-pages/
5
  Description: Landing page template framework with variant testing and lead capturing through cooperation with Inbound Now's Leads plugin. This is the stand alone version served through WordPress.org.
6
+ Version: 2.4.4
7
  Author: Inbound Now
8
  Author URI: http://www.inboundnow.com/
9
 
37
  */
38
  private static function load_constants() {
39
 
40
+ define('LANDINGPAGES_CURRENT_VERSION', '2.4.4' );
41
  define('LANDINGPAGES_URLPATH', plugins_url( '/' , __FILE__ ) );
42
  define('LANDINGPAGES_PATH', WP_PLUGIN_DIR.'/'.plugin_basename( dirname(__FILE__) ).'/' );
43
  define('LANDINGPAGES_PLUGIN_SLUG', 'landing-pages' );
readme.txt CHANGED
@@ -7,7 +7,7 @@ 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.7.2
10
- Stable Tag: 2.4.3
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
 
@@ -70,6 +70,9 @@ The plugin is also fully extendable and has a number of actions, filters, and ho
70
 
71
  == Changelog ==
72
 
 
 
 
73
  = 2.4.3 =
74
  * Fixing database upgrade routine and refacting way we record funnel information.
75
 
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.7.2
10
+ Stable Tag: 2.4.4
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
 
70
 
71
  == Changelog ==
72
 
73
+ = 2.4.4 =
74
+ * Adding wpautop to 'Single Double Column' template.
75
+
76
  = 2.4.3 =
77
  * Fixing database upgrade routine and refacting way we record funnel information.
78
 
shared/classes/class.database-routines.php CHANGED
@@ -38,6 +38,14 @@ if ( !class_exists('Inbound_Upgrade_Routines') ) {
38
  'introduced' => '1.0.2',
39
  'callback' => array( __CLASS__ , 'alter_events_table_1')
40
  );
 
 
 
 
 
 
 
 
41
  }
42
 
43
  /**
@@ -141,6 +149,26 @@ if ( !class_exists('Inbound_Upgrade_Routines') ) {
141
  $wpdb->get_results( "ALTER TABLE {$table_name} ADD `list_id` varchar(255) NOT NULL" );
142
  }
143
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
  }
145
 
146
  /* hook upgrade routines into activation script */
38
  'introduced' => '1.0.2',
39
  'callback' => array( __CLASS__ , 'alter_events_table_1')
40
  );
41
+
42
+ /* alter automation queue table */
43
+ self::$routines['automation-queue-table-1'] = array(
44
+ 'id' => 'automation-queue-table-1',
45
+ 'scope' => 'shared',
46
+ 'introduced' => '1.0.3',
47
+ 'callback' => array( __CLASS__ , 'alter_automation_queue_table_1')
48
+ );
49
  }
50
 
51
  /**
149
  $wpdb->get_results( "ALTER TABLE {$table_name} ADD `list_id` varchar(255) NOT NULL" );
150
  }
151
  }
152
+
153
+
154
+ /**
155
+ * @migration-type: alter inbound_automation_queue table
156
+ * @mirgration: adds columns lead_id
157
+ */
158
+ public static function alter_automation_queue_table_1() {
159
+
160
+ global $wpdb;
161
+
162
+ require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
163
+ $table_name = $wpdb->prefix . "inbound_automation_queue";
164
+
165
+ /* add columns funnel and source to legacy table */
166
+ $row = $wpdb->get_results( "SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = '{$table_name}' AND column_name = 'lead_id'" );
167
+ if(empty($row)){
168
+ // do your stuff
169
+ $wpdb->get_results( "ALTER TABLE {$table_name} ADD `lead_id` varchar(255) NOT NULL" );
170
+ }
171
+ }
172
  }
173
 
174
  /* hook upgrade routines into activation script */
shared/classes/class.load-shared.php CHANGED
@@ -37,7 +37,7 @@ if (!class_exists('Inbound_Load_Shared')) {
37
  */
38
  public static function load_constants() {
39
  define('INBOUNDNOW_SHARED', 'loaded' );
40
- define('INBOUNDNOW_SHARED_DBRV', '1.0.2' );
41
  define('INBOUNDNOW_SHARED_PATH', self::get_shared_path() );
42
  define('INBOUNDNOW_SHARED_URLPATH', self::get_shared_urlpath() );
43
  define('INBOUNDNOW_SHARED_FILE', self::get_shared_file() );
37
  */
38
  public static function load_constants() {
39
  define('INBOUNDNOW_SHARED', 'loaded' );
40
+ define('INBOUNDNOW_SHARED_DBRV', '1.0.3' );
41
  define('INBOUNDNOW_SHARED_PATH', self::get_shared_path() );
42
  define('INBOUNDNOW_SHARED_URLPATH', self::get_shared_urlpath() );
43
  define('INBOUNDNOW_SHARED_FILE', self::get_shared_file() );
shared/classes/class.post-type.wp-lead.php CHANGED
@@ -435,6 +435,30 @@ if ( !class_exists('Inbound_Leads') ) {
435
  return $array;
436
  }
437
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
438
  /**
439
  * Get lead list infomration
440
  *
435
  return $array;
436
  }
437
 
438
+
439
+ /**
440
+ * Get an array of all lead lists
441
+ *
442
+ * @returns ARRAY of lead lists with term id as key and list name as value
443
+ */
444
+ public static function get_lead_tags_as_array() {
445
+ self::register_taxonomies();
446
+
447
+ $array = array();
448
+
449
+ $args = array(
450
+ 'hide_empty' => false,
451
+ );
452
+
453
+ $terms = get_terms('lead-tags', $args);
454
+
455
+ foreach ( $terms as $term ) {
456
+ $array[$term->term_id] = $term->name;
457
+ }
458
+
459
+ return $array;
460
+ }
461
+
462
  /**
463
  * Get lead list infomration
464
  *
templates/simple-solid-lite/config.php CHANGED
@@ -48,6 +48,21 @@ if( function_exists('register_field_group') ):
48
  'readonly' => 0,
49
  'disabled' => 0,
50
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  array (
52
  'key' => 'field_55df73bb3fb9a',
53
  'label' => 'Main Content',
48
  'readonly' => 0,
49
  'disabled' => 0,
50
  ),
51
+ array (
52
+ 'key' => 'field_55df74363ffr3ccd',
53
+ 'label' => 'Main Headline Color',
54
+ 'name' => 'main-headline-color',
55
+ 'type' => 'color_picker',
56
+ 'instructions' => 'Font color of headline',
57
+ 'required' => 0,
58
+ 'conditional_logic' => 0,
59
+ 'wrapper' => array (
60
+ 'width' => '',
61
+ 'class' => '',
62
+ 'id' => '',
63
+ ),
64
+ 'default_value' => '#fff',
65
+ ),
66
  array (
67
  'key' => 'field_55df73bb3fb9a',
68
  'label' => 'Main Content',
templates/simple-solid-lite/index.php CHANGED
@@ -21,6 +21,7 @@ if (have_posts()) : while (have_posts()) :
21
  the_post();
22
 
23
  $headline = get_field( 'lp-main-headline', $post->ID , false );
 
24
  $content = get_field( 'simple-solid-lite-main-content', $post->ID , false );
25
  $conversion_area = get_field( 'simple-solid-lite-conversion-area-content', $post->ID , false );
26
  $header = get_field( 'simple-solid-lite-header-display', $post->ID , false );
@@ -171,6 +172,7 @@ $test = inbound_color_scheme($background_color, 'hex');
171
  font-size: 37px;
172
  text-align: center;
173
  margin-top: 15px;
 
174
  }
175
  </style>
176
  </head>
@@ -189,17 +191,17 @@ $test = inbound_color_scheme($background_color, 'hex');
189
  </div>
190
  </header>
191
  <section class="cf container outline-element">
192
- <h1><?php
193
  if ($headline) {
194
- echo do_shortcode($headline);
195
  } ?>
196
- </h1>
197
  <div class="inbound-template-intro">
198
  <div class="inbound_the_content"><?php echo $content; ?></div>
199
  </div>
200
  <div class="form inbound_the_conversion_area" data-eq-selector=".cf.container .form:eq(0)" data-count-size="1"
201
  data-css-selector=".cf.container .form"
202
- data-js-selector=".cf.container .form"><?php echo $conversion_area; ?></div>
203
 
204
  <div class="cf"></div>
205
 
21
  the_post();
22
 
23
  $headline = get_field( 'lp-main-headline', $post->ID , false );
24
+ $headline_color = get_field( 'main-headline-color', $post->ID , false );
25
  $content = get_field( 'simple-solid-lite-main-content', $post->ID , false );
26
  $conversion_area = get_field( 'simple-solid-lite-conversion-area-content', $post->ID , false );
27
  $header = get_field( 'simple-solid-lite-header-display', $post->ID , false );
172
  font-size: 37px;
173
  text-align: center;
174
  margin-top: 15px;
175
+ color:<?php echo ($headline_color) ? $headline_color : '#fff'; ?>
176
  }
177
  </style>
178
  </head>
191
  </div>
192
  </header>
193
  <section class="cf container outline-element">
194
+ <?php
195
  if ($headline) {
196
+ echo '<h1>'.do_shortcode($headline).'</h1>';
197
  } ?>
198
+
199
  <div class="inbound-template-intro">
200
  <div class="inbound_the_content"><?php echo $content; ?></div>
201
  </div>
202
  <div class="form inbound_the_conversion_area" data-eq-selector=".cf.container .form:eq(0)" data-count-size="1"
203
  data-css-selector=".cf.container .form"
204
+ data-js-selector=".cf.container .form"><?php echo wpautop($conversion_area); ?></div>
205
 
206
  <div class="cf"></div>
207
 
templates/simple-two-column/index.php CHANGED
@@ -157,13 +157,13 @@ if ($social_display==="1" ) { // Show Social Media Icons?>
157
  <div id="left">
158
  <div id="left-content">
159
  <h1><?php echo $main_headline; ?></h1>
160
- <?php echo $content; ?>
161
  </div> <!-- end left-content -->
162
  </div> <!-- end left -->
163
 
164
  <div id="right">
165
  <div id="right-content">
166
- <?php echo $conversion_area; /* Print out form content */ ?>
167
  </div> <!-- end right-content -->
168
  </div> <!-- end left-content -->
169
 
157
  <div id="left">
158
  <div id="left-content">
159
  <h1><?php echo $main_headline; ?></h1>
160
+ <?php echo wpautop($content); ?>
161
  </div> <!-- end left-content -->
162
  </div> <!-- end left -->
163
 
164
  <div id="right">
165
  <div id="right-content">
166
+ <?php echo wpautop($conversion_area); /* Print out form content */ ?>
167
  </div> <!-- end right-content -->
168
  </div> <!-- end left-content -->
169