Version Description
- Support for Avada theme
Download this release
Release Info
Developer | adbox |
Plugin | WordPress Landing Pages |
Version | 2.5.2 |
Comparing to | |
See all releases |
Code changes from version 2.5.1 to 2.5.2
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.5.
|
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.5.
|
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.5.2
|
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.5.2' );
|
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.4
|
10 |
-
Stable Tag: 2.5.
|
11 |
|
12 |
|
13 |
Create landing pages for your WordPress site. Monitor and improve conversion rates, run A/B split tests, customize your own templates and more.
|
@@ -85,6 +85,9 @@ We also offer a guide for using <a href="https://github.com/inboundnow/landing-p
|
|
85 |
|
86 |
== Changelog ==
|
87 |
|
|
|
|
|
|
|
88 |
= 2.5.1 =
|
89 |
* Increasing use of nonces for extra security.
|
90 |
|
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.4
|
10 |
+
Stable Tag: 2.5.2
|
11 |
|
12 |
|
13 |
Create landing pages for your WordPress site. Monitor and improve conversion rates, run A/B split tests, customize your own templates and more.
|
85 |
|
86 |
== Changelog ==
|
87 |
|
88 |
+
= 2.5.2 =
|
89 |
+
* Support for Avada theme
|
90 |
+
|
91 |
= 2.5.1 =
|
92 |
* Increasing use of nonces for extra security.
|
93 |
|
shared/classes/class.database-routines.php
CHANGED
@@ -115,10 +115,7 @@ if ( !class_exists('Inbound_Upgrade_Routines') ) {
|
|
115 |
|
116 |
/* add ip field if does not exist */
|
117 |
$row = $wpdb->get_results( "SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = '{$table_name}' AND column_name = 'ip'" );
|
118 |
-
|
119 |
-
$wpdb->get_results( "ALTER TABLE {$table_name} ADD `ip` VARCHAR(45) NOT NULL" );
|
120 |
-
}
|
121 |
-
|
122 |
/* alter ip field to fix bad field types */
|
123 |
$wpdb->get_results( "ALTER TABLE {$table_name} MODIFY COLUMN `ip` VARCHAR(45)" );
|
124 |
|
@@ -135,19 +132,10 @@ if ( !class_exists('Inbound_Upgrade_Routines') ) {
|
|
135 |
require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
|
136 |
$table_name = $wpdb->prefix . "inbound_events";
|
137 |
|
138 |
-
|
139 |
-
$
|
140 |
-
|
141 |
-
// do your stuff
|
142 |
-
$wpdb->get_results( "ALTER TABLE {$table_name} ADD `funnel` text NOT NULL" );
|
143 |
-
$wpdb->get_results( "ALTER TABLE {$table_name} ADD `source` text NOT NULL" );
|
144 |
-
}
|
145 |
|
146 |
-
/* add columns list_id inbound events table */
|
147 |
-
$row = $wpdb->get_results( "SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = '{$table_name}' AND column_name = 'list_id'" );
|
148 |
-
if(empty($row)){
|
149 |
-
$wpdb->get_results( "ALTER TABLE {$table_name} ADD `list_id` varchar(255) NOT NULL" );
|
150 |
-
}
|
151 |
}
|
152 |
|
153 |
|
@@ -162,12 +150,8 @@ if ( !class_exists('Inbound_Upgrade_Routines') ) {
|
|
162 |
require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
|
163 |
$table_name = $wpdb->prefix . "inbound_automation_queue";
|
164 |
|
165 |
-
|
166 |
-
|
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 |
|
115 |
|
116 |
/* add ip field if does not exist */
|
117 |
$row = $wpdb->get_results( "SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = '{$table_name}' AND column_name = 'ip'" );
|
118 |
+
$wpdb->get_results( "ALTER TABLE {$table_name} ADD `ip` VARCHAR(45) NOT NULL" );
|
|
|
|
|
|
|
119 |
/* alter ip field to fix bad field types */
|
120 |
$wpdb->get_results( "ALTER TABLE {$table_name} MODIFY COLUMN `ip` VARCHAR(45)" );
|
121 |
|
132 |
require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
|
133 |
$table_name = $wpdb->prefix . "inbound_events";
|
134 |
|
135 |
+
$wpdb->get_results( "ALTER TABLE {$table_name} ADD `funnel` text NOT NULL" );
|
136 |
+
$wpdb->get_results( "ALTER TABLE {$table_name} ADD `source` text NOT NULL" );
|
137 |
+
$wpdb->get_results( "ALTER TABLE {$table_name} ADD `list_id` varchar(255) NOT NULL" );
|
|
|
|
|
|
|
|
|
138 |
|
|
|
|
|
|
|
|
|
|
|
139 |
}
|
140 |
|
141 |
|
150 |
require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
|
151 |
$table_name = $wpdb->prefix . "inbound_automation_queue";
|
152 |
|
153 |
+
$wpdb->get_results( "ALTER TABLE {$table_name} ADD `lead_id` varchar(255) NOT NULL" );
|
154 |
+
|
|
|
|
|
|
|
|
|
155 |
}
|
156 |
}
|
157 |
|
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.
|
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.4' );
|
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
@@ -459,6 +459,29 @@ if ( !class_exists('Inbound_Leads') ) {
|
|
459 |
return $array;
|
460 |
}
|
461 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
462 |
/**
|
463 |
* Get lead list infomration
|
464 |
*
|
@@ -632,6 +655,23 @@ if ( !class_exists('Inbound_Leads') ) {
|
|
632 |
|
633 |
}
|
634 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
635 |
/**
|
636 |
* Creates the "Confirm Double Optin Page" if the double optin page id is empty
|
637 |
*/
|
459 |
return $array;
|
460 |
}
|
461 |
|
462 |
+
/**
|
463 |
+
* Search lead by email
|
464 |
+
* @param STRING email
|
465 |
+
*/
|
466 |
+
static function get_lead_id_by_email($email){
|
467 |
+
global $wpdb;
|
468 |
+
$query = $wpdb->prepare(
|
469 |
+
'SELECT ID FROM ' . $wpdb->posts . '
|
470 |
+
WHERE post_title = %s
|
471 |
+
AND post_type = \'wp-lead\'',
|
472 |
+
$email
|
473 |
+
);
|
474 |
+
$wpdb->query( $query );
|
475 |
+
if ( $wpdb->num_rows ) {
|
476 |
+
$lead_id = $wpdb->get_var( $query );
|
477 |
+
return $lead_id;
|
478 |
+
} else {
|
479 |
+
return false;
|
480 |
+
}
|
481 |
+
|
482 |
+
}
|
483 |
+
|
484 |
+
|
485 |
/**
|
486 |
* Get lead list infomration
|
487 |
*
|
655 |
|
656 |
}
|
657 |
|
658 |
+
|
659 |
+
/**
|
660 |
+
* Get User Object from lead id
|
661 |
+
* @param $lead_id
|
662 |
+
*/
|
663 |
+
public static function get_user_by_lead_id( $lead_id ) {
|
664 |
+
|
665 |
+
}
|
666 |
+
|
667 |
+
/**
|
668 |
+
* Get User Object from lead email
|
669 |
+
* @param $lead_id
|
670 |
+
*/
|
671 |
+
public static function get_user_by_lead_email( $lead_id ) {
|
672 |
+
|
673 |
+
}
|
674 |
+
|
675 |
/**
|
676 |
* Creates the "Confirm Double Optin Page" if the double optin page id is empty
|
677 |
*/
|
shared/shortcodes/inbound-shortcodes.php
CHANGED
@@ -75,7 +75,7 @@ class Inbound_Shortcodes {
|
|
75 |
wp_dequeue_script('selectjs');
|
76 |
wp_dequeue_script('select2');
|
77 |
wp_dequeue_script('jquery-select2');
|
78 |
-
wp_enqueue_script('select2', INBOUNDNOW_SHARED_URLPATH . 'assets/includes/Select2/select2.min.js', array( 'jquery' ) , false , false );
|
79 |
wp_enqueue_style('select2', INBOUNDNOW_SHARED_URLPATH . 'assets/includes/Select2/select2.min.css' , array() , false , false);
|
80 |
|
81 |
}
|
75 |
wp_dequeue_script('selectjs');
|
76 |
wp_dequeue_script('select2');
|
77 |
wp_dequeue_script('jquery-select2');
|
78 |
+
wp_enqueue_script('select2', INBOUNDNOW_SHARED_URLPATH . 'assets/includes/Select2/select2.full.min.js', array( 'jquery' ) , false , false );
|
79 |
wp_enqueue_style('select2', INBOUNDNOW_SHARED_URLPATH . 'assets/includes/Select2/select2.min.css' , array() , false , false);
|
80 |
|
81 |
}
|