WordPress Landing Pages - Version 2.3.5

Version Description

Download this release

Release Info

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

Code changes from version 2.3.4 to 2.3.5

classes/class.activation.upgrade-routines.php CHANGED
@@ -288,39 +288,6 @@ if ( !class_exists('Landing_Pages_Activation_Update_Routines') ) {
288
  }
289
 
290
 
291
- /*
292
- * @introduced: 2.3.1
293
- * @migration-type: Inbound Pro Setting Migration
294
- * @migration: mirgrates option lp-main-landing-page-permalink-prefix to $inbound_settings['landing-pages']['landing-page-permalink-prefix']
295
- * @migration: mirgrates option lp-main-landing-page-rotation-halt to $inbound_settings['landing-pages']['landing-page-rotation-halt']
296
- * @migration: mirgrates option lp-main-landing-page-disable-turn-off-ab to $inbound_settings['landing-pages']['landing-page-disable-turn-off-ab']
297
- */
298
- public static function migrate_landing_page_settings_to_pro_settings() {
299
-
300
- /* ignore if not applicable */
301
- $previous_installed_version = get_transient('lp_current_version');
302
-
303
- if ( version_compare($previous_installed_version , "2.3.1") === 1 ) {
304
- return;
305
- }
306
-
307
- if (!defined('INBOUND_PRO_CURRENT_VERSION')) {
308
- return;
309
- }
310
-
311
- global $inbound_settings;
312
-
313
- $landing_page_permalink_prefix = get_option( 'lp-main-landing-page-permalink-prefix', 'go' );
314
- $sticky_variations = get_option( 'lp-main-landing-page-rotation-halt', '0' );
315
- $disable_variant_testing = get_option( 'lp-main-landing-page-disable-turn-off-ab', '0' );
316
-
317
- $inbound_settings['landing-pages']['landing-page-permalink-prefix'] = $landing_page_permalink_prefix;
318
- $inbound_settings['landing-pages']['landing-page-rotation-halt'] = $sticky_variations;
319
- $inbound_settings['landing-pages']['landing-page-disable-turn-off-ab'] = $disable_variant_testing;
320
-
321
- Inbound_Options_API::update_option( 'inbound-pro' , 'settings' , $inbound_settings );
322
- }
323
-
324
  }
325
 
326
  }
288
  }
289
 
290
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
291
  }
292
 
293
  }
classes/class.settings.php CHANGED
@@ -77,7 +77,7 @@ class Landing_Pages_Settings {
77
  /**
78
  * Loads default global settings & extends them
79
  */
80
- public static function get_settings() {
81
  global $lp_global_settings;
82
 
83
  /* Setup Main Navigation Tab and Settings */
@@ -163,6 +163,12 @@ class Landing_Pages_Settings {
163
  return $lp_global_settings;
164
  }
165
 
 
 
 
 
 
 
166
  public static function get_setting( $field_id , $default ) {
167
  global $inbound_settings;
168
  $value = $default;
@@ -217,7 +223,7 @@ class Landing_Pages_Settings {
217
  global $wpdb;
218
 
219
 
220
- $lp_global_settings = Landing_Pages_Settings::get_settings();
221
 
222
  $htaccess = "";
223
  if ((isset($_SERVER['SERVER_SOFTWARE']) && stristr($_SERVER['SERVER_SOFTWARE'], 'nginx') === false) && file_exists(get_home_path() . ".htaccess")) {
@@ -242,7 +248,7 @@ class Landing_Pages_Settings {
242
 
243
  do_action('lp_pre_display_global_settings');
244
 
245
- self::save_settings();
246
 
247
  echo '<h2 class="nav-tab-wrapper">';
248
 
@@ -270,7 +276,7 @@ class Landing_Pages_Settings {
270
 
271
 
272
  foreach ($lp_global_settings as $key => $data) {
273
- self::render_settings($key, $data['settings'], $active_tab);
274
  }
275
 
276
  echo '<div style="float:left;padding-left:9px;padding-top:20px;">
@@ -282,14 +288,14 @@ class Landing_Pages_Settings {
282
  <hr>
283
  <div id="more-templates">
284
  <center>
285
- <a href="http://www.inboundnow.com/products/landing-pages/templates/" target="_blank"><img
286
  src="<?php echo LANDINGPAGES_URLPATH; ?>assets/images/templates-image.png"></a>
287
 
288
  </center>
289
  </div>
290
  <div id="more-addons">
291
  <center>
292
- <a href="http://www.inboundnow.com/products/landing-pages/extensions/" target="_blank"><img
293
  src="<?php echo LANDINGPAGES_URLPATH; ?>assets/images/add-on-image.png"></a>
294
  </center>
295
  </div>
@@ -570,9 +576,9 @@ class Landing_Pages_Settings {
570
  /**
571
  * Saves global settings
572
  */
573
- public static function save_settings() {
574
 
575
- $lp_global_settings = Landing_Pages_Settings::get_settings();
576
 
577
  if (!isset($_POST['nature'])) {
578
  return;
@@ -639,7 +645,7 @@ class Landing_Pages_Settings {
639
  * @param $custom_fields
640
  * @param $active_tab
641
  */
642
- public static function render_settings($key, $custom_fields, $active_tab) {
643
  if (!$custom_fields) {
644
  return;
645
  }
77
  /**
78
  * Loads default global settings & extends them
79
  */
80
+ public static function get_stand_alone_settings() {
81
  global $lp_global_settings;
82
 
83
  /* Setup Main Navigation Tab and Settings */
163
  return $lp_global_settings;
164
  }
165
 
166
+ /**
167
+ * Get setting value from DB. Handles stand alone landing pages plugin differently from Inbound Pro included landing pages plugin
168
+ * @param $field_id
169
+ * @param $default
170
+ * @return mixed
171
+ */
172
  public static function get_setting( $field_id , $default ) {
173
  global $inbound_settings;
174
  $value = $default;
223
  global $wpdb;
224
 
225
 
226
+ $lp_global_settings = self::get_stand_alone_settings();
227
 
228
  $htaccess = "";
229
  if ((isset($_SERVER['SERVER_SOFTWARE']) && stristr($_SERVER['SERVER_SOFTWARE'], 'nginx') === false) && file_exists(get_home_path() . ".htaccess")) {
248
 
249
  do_action('lp_pre_display_global_settings');
250
 
251
+ self::save_stand_alone_settings();
252
 
253
  echo '<h2 class="nav-tab-wrapper">';
254
 
276
 
277
 
278
  foreach ($lp_global_settings as $key => $data) {
279
+ self::render_stand_alone_settings($key, $data['settings'], $active_tab);
280
  }
281
 
282
  echo '<div style="float:left;padding-left:9px;padding-top:20px;">
288
  <hr>
289
  <div id="more-templates">
290
  <center>
291
+ <a href="http://www.inboundnow.com/marketplace/?show=landing-pages" target="_blank"><img
292
  src="<?php echo LANDINGPAGES_URLPATH; ?>assets/images/templates-image.png"></a>
293
 
294
  </center>
295
  </div>
296
  <div id="more-addons">
297
  <center>
298
+ <a href="http://www.inboundnow.com/marketplace/?show=extensions" target="_blank"><img
299
  src="<?php echo LANDINGPAGES_URLPATH; ?>assets/images/add-on-image.png"></a>
300
  </center>
301
  </div>
576
  /**
577
  * Saves global settings
578
  */
579
+ public static function save_stand_alone_settings() {
580
 
581
+ $lp_global_settings = self::get_stand_alone_settings();
582
 
583
  if (!isset($_POST['nature'])) {
584
  return;
645
  * @param $custom_fields
646
  * @param $active_tab
647
  */
648
+ public static function render_stand_alone_settings($key, $custom_fields, $active_tab) {
649
  if (!$custom_fields) {
650
  return;
651
  }
classes/class.wp-list-table.templates.php CHANGED
@@ -78,6 +78,7 @@ class Landing_Pages_Templates_List_Table extends WP_List_Table {
78
 
79
  $this->_args = $args;
80
  $this->api_key = get_option('inboundnow_master_license_key', '');
 
81
  }
82
 
83
  function get_columns() {
78
 
79
  $this->_args = $args;
80
  $this->api_key = get_option('inboundnow_master_license_key', '');
81
+
82
  }
83
 
84
  function get_columns() {
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.3.4
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.3.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' );
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.3.5
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.3.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' );
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.6.0
10
- Stable Tag: 2.3.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,6 +70,9 @@ The plugin is also fully extendable and has a number of actions, filters, and ho
70
 
71
  == Changelog ==
72
 
 
 
 
73
  = 2.3.4 =
74
  * Fixing double admin notifications
75
  * Fixing settings issue with Simple Solid Lite template
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.6.0
10
+ Stable Tag: 2.3.5
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.3.4 =
74
+ * [fix] fixing broken include file for Inbound Forms when wp-config.php is outside of it's normal location.
75
+
76
  = 2.3.4 =
77
  * Fixing double admin notifications
78
  * Fixing settings issue with Simple Solid Lite template
shared/classes/class.master-license.php CHANGED
@@ -14,30 +14,27 @@ if (!function_exists('inboundnow_add_master_license') && !defined('INBOUND_ACCES
14
  {
15
  case 'lp_define_global_settings':
16
  $key = 'lp-license-keys';
17
- $text_domain = 'landing-pages';
18
  break;
19
  case 'wpleads_define_global_settings':
20
  $key = 'wpleads-license-keys';
21
- $text_domain = 'leads';
22
  break;
23
  case 'wp_cta_define_global_settings':
24
  $key = 'wp-cta-license-keys';
25
- $text_domain = 'cta';
26
  break;
27
  }
28
 
29
  $global_settings[$key]['settings']['master-key'] = array(
30
  'id' => 'extensions-license-keys-master-key-header',
31
- 'description' => __( "Head to http://www.inboundnow.com/ to retrieve your extension-ready license key.", $text_domain ),
32
  'type' => 'header',
33
- 'default' => '<h3 class="lp_global_settings_header">'. __( 'InboundNow Master Key', $text_domain ) .'</h3>'
34
  );
35
 
36
  $global_settings[$key]['settings']['master-key'] = array(
37
  'id' => 'inboundnow_master_license_key',
38
  'option_name' => 'inboundnow_master_license_key',
39
- 'label' => __('Inbound Now API Key', $text_domain ),
40
- 'description' => __( "Head to http://www.inboundnow.com/account to retrieve your extension-ready license key.", $text_domain ),
41
  'type' => 'text',
42
  'default' => ''
43
  );
14
  {
15
  case 'lp_define_global_settings':
16
  $key = 'lp-license-keys';
 
17
  break;
18
  case 'wpleads_define_global_settings':
19
  $key = 'wpleads-license-keys';
 
20
  break;
21
  case 'wp_cta_define_global_settings':
22
  $key = 'wp-cta-license-keys';
 
23
  break;
24
  }
25
 
26
  $global_settings[$key]['settings']['master-key'] = array(
27
  'id' => 'extensions-license-keys-master-key-header',
28
+ 'description' => __( "Head to http://www.inboundnow.com/ to retrieve your extension-ready license key.", 'inbound-pro' ),
29
  'type' => 'header',
30
+ 'default' => '<h3 class="lp_global_settings_header">'. __( 'InboundNow Master Key', 'inbound-pro' ) .'</h3>'
31
  );
32
 
33
  $global_settings[$key]['settings']['master-key'] = array(
34
  'id' => 'inboundnow_master_license_key',
35
  'option_name' => 'inboundnow_master_license_key',
36
+ 'label' => __('Inbound Now API Key', 'inbound-pro' ),
37
+ 'description' => __( "Head to http://www.inboundnow.com/account to retrieve your extension-ready license key.", 'inbound-pro' ),
38
  'type' => 'text',
39
  'default' => ''
40
  );
shared/shortcodes/shortcodes-fields.php CHANGED
@@ -4,12 +4,16 @@ if ( !class_exists('Inbound_Shortcodes_Fields') ) {
4
 
5
  /* Include wp-load
6
  * ----------------------------------------------------- */
 
7
  if (function_exists('get_home_path')) {
8
  $path_to_wp = get_home_path();
9
- } else {
 
10
  $path_to_file = explode( 'wp-content', __FILE__ );
11
  $path_to_wp = $path_to_file[0];
12
- }
 
 
13
  require_once( $path_to_wp . '/wp-load.php' );
14
 
15
  /* The Class
4
 
5
  /* Include wp-load
6
  * ----------------------------------------------------- */
7
+ /* get_home_path causes problems
8
  if (function_exists('get_home_path')) {
9
  $path_to_wp = get_home_path();
10
+ if ( ! file_exists( $path_to_wp . '/wp-load.php' ) ) {
11
+ } else {*/
12
  $path_to_file = explode( 'wp-content', __FILE__ );
13
  $path_to_wp = $path_to_file[0];
14
+ /*}*/
15
+
16
+
17
  require_once( $path_to_wp . '/wp-load.php' );
18
 
19
  /* The Class