WordPress Landing Pages - Version 2.1.2

Version Description

  • Call to action updates
Download this release

Release Info

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

Code changes from version 2.1.1 to 2.1.2

assets/js/admin/admin.store.js DELETED
@@ -1,5 +0,0 @@
1
- jQuery(document).ready(function()
2
- {
3
- // Store page jquery not in use
4
- });
5
-
 
 
 
 
 
classes/class.admin-menus.php CHANGED
@@ -37,7 +37,12 @@ class Landing_Pages_Admin_Menus {
37
  //}
38
 
39
  add_submenu_page('edit.php?post_type=landing-page', __('Settings', 'landing-pages'), __('Settings', 'landing-pages'), 'manage_options', 'lp_global_settings', array('Landing_Pages_Settings' , 'display_settings'));
40
- add_submenu_page('edit.php?post_type=landing-page', __('Upload', 'landing-pages'), __('Upload', 'landing-pages'), 'manage_options', 'lp_manage_templates', 'lp_manage_templates', 100);
 
 
 
 
 
41
 
42
  }
43
  }
37
  //}
38
 
39
  add_submenu_page('edit.php?post_type=landing-page', __('Settings', 'landing-pages'), __('Settings', 'landing-pages'), 'manage_options', 'lp_global_settings', array('Landing_Pages_Settings' , 'display_settings'));
40
+
41
+ if ( !class_exists('Inbound_Pro_Plugin') ) {
42
+ add_submenu_page('edit.php?post_type=landing-page', __('Upgrade to Pro' , 'landing-pages'),__('Upgrade to Pro' , 'landing-pages'), 'manage_options', 'lp_store', array( 'Inbound_Now_Store' , 'store_display' ),100);
43
+ }
44
+
45
+ add_submenu_page('edit.php?post_type=landing-page', __('Upload Templates', 'landing-pages'), __('Upload Templates', 'landing-pages'), 'manage_options', 'lp_manage_templates', 'lp_manage_templates', 100);
46
 
47
  }
48
  }
classes/class.store.php CHANGED
@@ -7,17 +7,18 @@ if ( ! class_exists( 'Inbound_Now_Store' ) ) {
7
  class Inbound_Now_Store {
8
 
9
  static function init() {
10
- self::load_hooks();
 
 
11
  }
12
 
13
  /**
14
  * Loads hooks and filters
15
  */
16
  public static function load_hooks() {
17
- add_action('admin_menu', array( __CLASS__ , 'add_sub_menus' ) );
18
- add_action('admin_init', array( __CLASS__ , 'inbound_store_template_redirect'));
19
  add_action( 'wp_ajax_show_store_ajax' , array( __CLASS__ , 'show_store_ajax' ) );
20
  add_action( 'admin_enqueue_scripts' , array( __CLASS__ , 'enqueue_scripts' ) );
 
21
  }
22
 
23
  /**
@@ -26,25 +27,21 @@ if ( ! class_exists( 'Inbound_Now_Store' ) ) {
26
  public static function enqueue_scripts() {
27
  global $plugin_page;
28
 
29
- if ( !in_array( $plugin_page, array( 'lp_store', 'lp_addons' ) ) ) {
30
- return;
31
- }
32
-
33
- wp_dequeue_script('easyXDM');
34
- wp_enqueue_script('easyXDM', LANDINGPAGES_URLPATH . 'assets/libraries/easyXDM.debug.js');
35
- wp_enqueue_script('lp-js-store', LANDINGPAGES_URLPATH . 'assets/js/admin/admin.store.js');
36
 
37
  }
38
 
39
- public static function add_sub_menus() {
40
- if ( !current_user_can('manage_options')) {
41
- return;
42
- }
43
-
44
- if ( !class_exists('Inbound_Pro_Plugin') || Inbound_Pro_Plugin::get_customer_status() < 2 ) {
45
- add_submenu_page('edit.php?post_type=landing-page', __('Extensions' , 'landing-pages'),'<span style="color:#f18500">'.__('Extensions' , 'landing-pages').'</span>', 'manage_options', 'lp_store', array( __CLASS__ , 'store_display' ),100);
46
- add_submenu_page('edit.php?post_type=landing-page', __('Download Templates' , 'landing-pages'),'<span style="color:#fff">'.__('Download Templates' , 'landing-pages').'</span>', 'manage_options', 'inbound-templates-redirect', array( __CLASS__ , 'inbound_store_template_redirect' ),100);
47
- }
 
 
48
  }
49
 
50
  public static function show_store_ajax() {
@@ -58,7 +55,10 @@ if ( ! class_exists( 'Inbound_Now_Store' ) ) {
58
  }
59
 
60
  }
61
- /* main display function */
 
 
 
62
  public static function store_display(){
63
  global $current_user;
64
 
@@ -70,7 +70,7 @@ if ( ! class_exists( 'Inbound_Now_Store' ) ) {
70
  self::inbound_store_notice();
71
  } else {
72
  /* normal display here */
73
- self::display_store();
74
  }
75
 
76
  }
@@ -83,9 +83,8 @@ if ( ! class_exists( 'Inbound_Now_Store' ) ) {
83
  <h3>To ensure complaince with <a href="https://wordpress.org/plugins/about/guidelines/">WordPress.orgs Plugin Guidelines</a>, we need your express permission to load our <a target="_blank" href="http://www.inboundnow.com/market">marketplace</a>.
84
 
85
  <div class="details">
86
- <h4 style="margin-bottom:0px;"><u>What is happening?</u></h4>
87
- <p>To streamline your experience, We are loading in our marketplace from <a target="_blank" href="http://www.inboundnow.com/market">http://www.inboundnow.com/market</a> into this page.</p>
88
- <p>Don\'t worry. We do not access <u>ANY</u> of your private/personal information contained within your site</p>
89
  <a href="#" id="accept-agreement" class="button button-primary">I accept this agreement, show me the goods!</a>
90
  </div>
91
 
@@ -120,14 +119,19 @@ if ( ! class_exists( 'Inbound_Now_Store' ) ) {
120
  </script>
121
 
122
  <?php }
123
- /* loads when user_meta opt in is found */
124
- public static function display_store() { ?>
 
 
 
125
  <script>
126
- jQuery(document).ready(function($) {
127
- showInboundStore();
128
- });
129
  </script>
130
- <?php }
 
 
131
  /* Always loads on store pages */
132
  public static function dom_output(){
133
 
@@ -171,16 +175,6 @@ if ( ! class_exists( 'Inbound_Now_Store' ) ) {
171
 
172
  <div id="inbound-store-container"></div>
173
  <?php }
174
- /* redirect for additional menu item */
175
- public static function inbound_store_template_redirect($value){
176
- global $pagenow;
177
- $page = (isset($_REQUEST['page']) ? $_REQUEST['page'] : false);
178
- if($pagenow=='edit.php' && $page=='inbound-templates-redirect'){
179
- $link = admin_url( 'edit.php?post_type=landing-page&page=lp_store&inbound-store=templates');
180
- wp_redirect($link);
181
- exit;
182
- }
183
- }
184
 
185
  }
186
 
7
  class Inbound_Now_Store {
8
 
9
  static function init() {
10
+ if ( !class_exists('Inbound_Pro_Plugin') ) {
11
+ self::load_hooks();
12
+ }
13
  }
14
 
15
  /**
16
  * Loads hooks and filters
17
  */
18
  public static function load_hooks() {
 
 
19
  add_action( 'wp_ajax_show_store_ajax' , array( __CLASS__ , 'show_store_ajax' ) );
20
  add_action( 'admin_enqueue_scripts' , array( __CLASS__ , 'enqueue_scripts' ) );
21
+ add_action( 'admin_print_footer_scripts' , array( __CLASS__ , 'print_scripts' ) );
22
  }
23
 
24
  /**
27
  public static function enqueue_scripts() {
28
  global $plugin_page;
29
 
30
+ wp_enqueue_script('jquery');
 
 
 
 
 
 
31
 
32
  }
33
 
34
+ public static function print_scripts() {
35
+ ?>
36
+ <script type="text/javascript">
37
+ jQuery(document).ready(function($) {
38
+ jQuery('#menu-posts-landing-page a[href*="lp_store"]').each(function() {
39
+ jQuery(this).attr('target','_blank');
40
+ jQuery(this).attr('href','http://www.inboundnow.com/upgrade');
41
+ });
42
+ });
43
+ </script>
44
+ <?php
45
  }
46
 
47
  public static function show_store_ajax() {
55
  }
56
 
57
  }
58
+
59
+ /**
60
+ *
61
+ */
62
  public static function store_display(){
63
  global $current_user;
64
 
70
  self::inbound_store_notice();
71
  } else {
72
  /* normal display here */
73
+ self::store_redirect();
74
  }
75
 
76
  }
83
  <h3>To ensure complaince with <a href="https://wordpress.org/plugins/about/guidelines/">WordPress.orgs Plugin Guidelines</a>, we need your express permission to load our <a target="_blank" href="http://www.inboundnow.com/market">marketplace</a>.
84
 
85
  <div class="details">
86
+ <br>
87
+ <br>
 
88
  <a href="#" id="accept-agreement" class="button button-primary">I accept this agreement, show me the goods!</a>
89
  </div>
90
 
119
  </script>
120
 
121
  <?php }
122
+
123
+ /**
124
+ *
125
+ */
126
+ public static function store_redirect() { ?>
127
  <script>
128
+
129
+ window.location = "http://www.inboundnow.com/market";
130
+
131
  </script>
132
+ <?php
133
+ }
134
+
135
  /* Always loads on store pages */
136
  public static function dom_output(){
137
 
175
 
176
  <div id="inbound-store-container"></div>
177
  <?php }
 
 
 
 
 
 
 
 
 
 
178
 
179
  }
180
 
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.1
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.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__) ) );
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.2
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.2' );
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__) ) );
modules/module.store.php DELETED
@@ -1 +0,0 @@
1
- <?php
2
  * Inbound Now Store
3
  */
4
  echo '<div id="agreement" style="margin-top:30px;">
 
0
  * Inbound Now Store
1
  */
2
  echo '<div id="agreement" style="margin-top:30px;">
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.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,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.1 =
77
  * Removing old admin notification
78
 
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.2
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.2 =
77
+ * Call to action updates
78
+
79
  = 2.1.1 =
80
  * Removing old admin notification
81
 
shared/classes/class.load-shared.php CHANGED
@@ -79,7 +79,6 @@ if (!class_exists('Inbound_Load_Shared')) {
79
  include_once( INBOUNDNOW_SHARED_PATH . 'classes/class.branching.php');
80
  include_once( INBOUNDNOW_SHARED_PATH . 'classes/class.promote.php');
81
  /* include_once( INBOUNDNOW_SHARED_PATH . 'classes/class.feedback.php'); */
82
- include_once( INBOUNDNOW_SHARED_PATH . 'classes/class.notifications.php');
83
  require_once( INBOUNDNOW_SHARED_PATH . 'classes/class.inbound-api.api-key-generation.php');
84
  require_once( INBOUNDNOW_SHARED_PATH . 'classes/class.inbound-api.api-keys-table.php');
85
  require_once( INBOUNDNOW_SHARED_PATH . 'classes/class.marketing-button.php');
79
  include_once( INBOUNDNOW_SHARED_PATH . 'classes/class.branching.php');
80
  include_once( INBOUNDNOW_SHARED_PATH . 'classes/class.promote.php');
81
  /* include_once( INBOUNDNOW_SHARED_PATH . 'classes/class.feedback.php'); */
 
82
  require_once( INBOUNDNOW_SHARED_PATH . 'classes/class.inbound-api.api-key-generation.php');
83
  require_once( INBOUNDNOW_SHARED_PATH . 'classes/class.inbound-api.api-keys-table.php');
84
  require_once( INBOUNDNOW_SHARED_PATH . 'classes/class.marketing-button.php');
shared/classes/class.menus.adminbar.php CHANGED
@@ -130,7 +130,7 @@ if (!class_exists('Inbound_Menus_Adminbar')) {
130
  }
131
 
132
  /* add lead search */
133
- if (class_exists('Inbound_Pro_Plugin')) {
134
  $args = array(
135
  'id' => 'lead_search',
136
  'title' => '<i class="fa fa-search"></i>',
130
  }
131
 
132
  /* add lead search */
133
+ if (class_exists('Inbound_Pro_Plugin') && is_admin() ) {
134
  $args = array(
135
  'id' => 'lead_search',
136
  'title' => '<i class="fa fa-search"></i>',
shared/classes/class.shortcodes.email-template.php CHANGED
@@ -64,7 +64,7 @@ class Inbound_Email_Template_Shortcodes {
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);
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);