WordPress Landing Pages - Version 1.4.0

Version Description

  • Added feature request form to all plugin admin pages. Submit your feature requests today! =)
Download this release

Release Info

Developer DavidWells
Plugin Icon 128x128 WordPress Landing Pages
Version 1.4.0
Comparing to
See all releases

Code changes from version 1.3.9 to 1.4.0

css/admin-global-settings.css CHANGED
@@ -16,7 +16,7 @@
16
  }
17
 
18
  .nav-tab-special-active{
19
- border-color: #DFDFDF #DFDFDF #FFFFFF !important;
20
  border-top-left-radius: 3px;
21
  border-top-right-radius: 3px;
22
  border-width: 1px 1px 1px;
16
  }
17
 
18
  .nav-tab-special-active{
19
+ border-color: #DFDFDF #DFDFDF transparent !important;
20
  border-top-left-radius: 3px;
21
  border-top-right-radius: 3px;
22
  border-width: 1px 1px 1px;
css/admin-landing-page-list.css CHANGED
@@ -83,7 +83,7 @@ margin-right: 8px;
83
  }
84
 
85
  .lp-pop-controls {
86
- display: inline-block;
87
  margin-top: 8px;
88
  }
89
 
@@ -107,18 +107,18 @@ margin-right: 8px;
107
  }
108
 
109
  .lp-pop-preview a, .lp-pop-edit a {
110
- text-decoration: none;
111
  }
112
 
113
- .qtip-titlebar
114
  {
115
  position: relative;
116
  padding: 0px;
117
  }
118
 
119
- .qtip-jtools
120
  {
121
- border: 2px solid rgba(172, 172, 172, 1);
122
  }
123
 
124
  .qtip-title {
@@ -146,7 +146,7 @@ margin-right: 8px;
146
  padding-right: 5px;
147
  }
148
 
149
- .stats li:hover
150
  {
151
  background:#e0e0e0;
152
  }
@@ -170,7 +170,7 @@ td.stats.column-stats {
170
  .wp-list-table td.stats {
171
  padding-left: 0px;
172
  padding-right: 0px;
173
- }
174
 
175
  .lp-current-winner{
176
  background-color: rgb(226, 255, 201);
@@ -253,6 +253,7 @@ display: none;
253
  margin-bottom: -2px;
254
  padding-bottom: 0px;
255
  display: inline-block;
 
256
  }
257
  .lp-numbers {
258
  font-size: 13px;
@@ -344,7 +345,7 @@ color: #ccc;
344
  box-shadow: none;
345
  -webkit-box-shadow: none;
346
  }
347
- a.cr-number:hover {
348
  background-color: #278ab7;
349
  background-image: -webkit-gradient(linear,left top,left bottom,from(#2e9fd2),to(#21759b));
350
  background-image: -webkit-linear-gradient(top,#2e9fd2,#21759b);
83
  }
84
 
85
  .lp-pop-controls {
86
+ display: inline-block;
87
  margin-top: 8px;
88
  }
89
 
107
  }
108
 
109
  .lp-pop-preview a, .lp-pop-edit a {
110
+ text-decoration: none;
111
  }
112
 
113
+ .qtip-titlebar
114
  {
115
  position: relative;
116
  padding: 0px;
117
  }
118
 
119
+ .qtip-jtools
120
  {
121
+ border: 2px solid rgba(172, 172, 172, 1);
122
  }
123
 
124
  .qtip-title {
146
  padding-right: 5px;
147
  }
148
 
149
+ .stats li:hover
150
  {
151
  background:#e0e0e0;
152
  }
170
  .wp-list-table td.stats {
171
  padding-left: 0px;
172
  padding-right: 0px;
173
+ }
174
 
175
  .lp-current-winner{
176
  background-color: rgb(226, 255, 201);
253
  margin-bottom: -2px;
254
  padding-bottom: 0px;
255
  display: inline-block;
256
+ margin-top: 0px;
257
  }
258
  .lp-numbers {
259
  font-size: 13px;
345
  box-shadow: none;
346
  -webkit-box-shadow: none;
347
  }
348
+ a.cr-number:hover {
349
  background-color: #278ab7;
350
  background-image: -webkit-gradient(linear,left top,left bottom,from(#2e9fd2),to(#21759b));
351
  background-image: -webkit-linear-gradient(top,#2e9fd2,#21759b);
landing-pages.php CHANGED
@@ -3,14 +3,14 @@
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: 1.3.9
7
  Author: David Wells, Hudson Atwell
8
  Author URI: http://www.inboundnow.com/
9
  Text Domain: landing-pages
10
  Domain Path: shared/languages/landing-pages/
11
  */
12
 
13
- define('LANDINGPAGES_CURRENT_VERSION', '1.3.9' );
14
  define('LANDINGPAGES_URLPATH', WP_PLUGIN_URL.'/'.plugin_basename( dirname(__FILE__) ).'/' );
15
  define('LANDINGPAGES_PATH', WP_PLUGIN_DIR.'/'.plugin_basename( dirname(__FILE__) ).'/' );
16
  define('LANDINGPAGES_PLUGIN_SLUG', plugin_basename( dirname(__FILE__) ) );
@@ -84,6 +84,8 @@ endswitch;
84
 
85
  /* Singleton Shared Class Loads */
86
  include_once('shared/inbound-shortcodes/inbound-shortcodes.php'); // Shared Shortcodes
 
 
87
 
88
  /* Inbound Core Shared Files. Lead files take presidence */
89
  add_action( 'plugins_loaded', 'inbound_load_shared_landing_pages' );
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: 1.4.0
7
  Author: David Wells, Hudson Atwell
8
  Author URI: http://www.inboundnow.com/
9
  Text Domain: landing-pages
10
  Domain Path: shared/languages/landing-pages/
11
  */
12
 
13
+ define('LANDINGPAGES_CURRENT_VERSION', '1.4.0' );
14
  define('LANDINGPAGES_URLPATH', WP_PLUGIN_URL.'/'.plugin_basename( dirname(__FILE__) ).'/' );
15
  define('LANDINGPAGES_PATH', WP_PLUGIN_DIR.'/'.plugin_basename( dirname(__FILE__) ).'/' );
16
  define('LANDINGPAGES_PLUGIN_SLUG', plugin_basename( dirname(__FILE__) ) );
84
 
85
  /* Singleton Shared Class Loads */
86
  include_once('shared/inbound-shortcodes/inbound-shortcodes.php'); // Shared Shortcodes
87
+ include_once('shared/classes/menu.class.php'); // Inbound Marketing Menu
88
+ include_once('shared/classes/feedback.class.php'); // Inbound Feedback Form
89
 
90
  /* Inbound Core Shared Files. Lead files take presidence */
91
  add_action( 'plugins_loaded', 'inbound_load_shared_landing_pages' );
modules/module.metaboxes.php CHANGED
@@ -134,6 +134,7 @@ function lp_wysiwyg_save_meta(){
134
  }
135
  }
136
 
 
137
  // Add in Main Headline
138
  add_action( 'edit_form_after_title', 'lp_landing_page_header_area' );
139
  add_action( 'save_post', 'lp_save_header_area' );
@@ -164,7 +165,9 @@ function lp_landing_page_header_area()
164
  echo "<div id='lp-notes-area'>";
165
  echo "<span id='add-lp-notes'>". __('Notes' , LANDINGPAGES_TEXT_DOMAIN) .":</span><input placeholder='". __('Add Notes to your variation. Example: This version is testing a green submit button ' , LANDINGPAGES_TEXT_DOMAIN) ."' type='text' class='lp-notes' name='{$variation_id}' id='{$variation_id}' value='{$variation_notes}' size='30'>";
166
  echo '</div><div id="main-title-area"><input type="text" name="lp-main-headline" placeholder="'. __('Primary Headline Goes here. This will be visible on the page' , LANDINGPAGES_TEXT_DOMAIN) .'" id="lp-main-headline" value="'.$main_title.'" title="'. __('This headline will appear in the landing page template.' , LANDINGPAGES_TEXT_DOMAIN) .'"></div><div id="lp-current-view">'.$lp_variation.'</div><div id="switch-lp">0</div>';
 
167
 
 
168
  // Frontend params
169
  if(isset($_REQUEST['frontend']) && $_REQUEST['frontend'] == 'true') {
170
  echo('<input type="hidden" name="frontend" id="frontend-on" value="true" />');
134
  }
135
  }
136
 
137
+
138
  // Add in Main Headline
139
  add_action( 'edit_form_after_title', 'lp_landing_page_header_area' );
140
  add_action( 'save_post', 'lp_save_header_area' );
165
  echo "<div id='lp-notes-area'>";
166
  echo "<span id='add-lp-notes'>". __('Notes' , LANDINGPAGES_TEXT_DOMAIN) .":</span><input placeholder='". __('Add Notes to your variation. Example: This version is testing a green submit button ' , LANDINGPAGES_TEXT_DOMAIN) ."' type='text' class='lp-notes' name='{$variation_id}' id='{$variation_id}' value='{$variation_notes}' size='30'>";
167
  echo '</div><div id="main-title-area"><input type="text" name="lp-main-headline" placeholder="'. __('Primary Headline Goes here. This will be visible on the page' , LANDINGPAGES_TEXT_DOMAIN) .'" id="lp-main-headline" value="'.$main_title.'" title="'. __('This headline will appear in the landing page template.' , LANDINGPAGES_TEXT_DOMAIN) .'"></div><div id="lp-current-view">'.$lp_variation.'</div><div id="switch-lp">0</div>';
168
+ echo ""; ?>
169
 
170
+ <?php
171
  // Frontend params
172
  if(isset($_REQUEST['frontend']) && $_REQUEST['frontend'] == 'true') {
173
  echo('<input type="hidden" name="frontend" id="frontend-on" value="true" />');
modules/module.store.php CHANGED
@@ -1 +1 @@
1
- <?php
2
  </div>
 
3
  </div>
 
1
  </div>
2
+ <?php
3
  </div>
readme.txt CHANGED
@@ -5,9 +5,9 @@ Donate link: mailto:marketplace@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.6
9
- Tested up to: 3.7.1
10
- Stable Tag: 1.3.9
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
 
@@ -68,6 +68,8 @@ The plugin is also fully extendable and has a number of <a href='http://docs.inb
68
  4. Choose from a ton of pre-made templates, use your existing design, or design your own theme!
69
 
70
  == Changelog ==
 
 
71
 
72
  = 1.3.9 =
73
  * Bug fixes for form creation issues
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.7
9
+ Tested up to: 3.8
10
+ Stable Tag: 1.4.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
 
68
  4. Choose from a ton of pre-made templates, use your existing design, or design your own theme!
69
 
70
  == Changelog ==
71
+ = 1.4.0 =
72
+ * Added feature request form to all plugin admin pages. Submit your feature requests today! =)
73
 
74
  = 1.3.9 =
75
  * Bug fixes for form creation issues
shared/classes/feedback.class.php ADDED
@@ -0,0 +1,378 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /* Inbound Now Menu Class */
3
+
4
+ if (!class_exists('InboundFeedback')) {
5
+ class InboundFeedback {
6
+ static $add_feedback;
7
+
8
+ /* Contruct
9
+ * --------------------------------------------------------- */
10
+ static function init() {
11
+ self::$add_feedback = true;
12
+ // add_action('admin_bar_menu', array( __CLASS__, 'loads' ), 98);
13
+ //add_action( 'wp_head', array(__CLASS__, 'menu_admin_head'));
14
+ add_action( 'admin_footer', array(__CLASS__, 'show_feedback'));
15
+ add_action('wp_ajax_send_inbound_feedback', array(__CLASS__, 'send_inbound_feedback'));
16
+ add_action('wp_ajax_send_inbound_feedback', array(__CLASS__, 'send_inbound_feedback'));
17
+ }
18
+
19
+ /* Loads
20
+ * --------------------------------------------------------- */
21
+ static function loads($hook) {
22
+ if ( ! self::$add_feedback )
23
+ return;
24
+ global $wp_admin_bar;
25
+ // CHECK FOR ACTIVE PLUGINS
26
+ $leads_status = FALSE; $landing_page_status = FALSE; $cta_status = FALSE;
27
+ if (function_exists( 'is_plugin_active' ) && is_plugin_active('leads/wordpress-leads.php')) {
28
+ $leads_status = TRUE;
29
+ $leads_version_number = defined( 'LEADS_CURRENT_VERSION' ) ? 'v' . LEADS_CURRENT_VERSION : '';
30
+ }
31
+ if (function_exists( 'is_plugin_active' ) && is_plugin_active('landing-pages/landing-pages.php')) {
32
+ $landing_page_status = TRUE;
33
+ $landing_page_version_number = defined( 'LANDINGPAGES_CURRENT_VERSION' ) ? 'v' . LANDINGPAGES_CURRENT_VERSION : '';
34
+
35
+ }
36
+ if (function_exists( 'is_plugin_active' ) && is_plugin_active('cta/wordpress-cta.php')) {
37
+ $cta_status = TRUE;
38
+ $cta_number = defined( 'WP_CTA_CURRENT_VERSION' ) ? 'v' . WP_CTA_CURRENT_VERSION : '';
39
+ }
40
+
41
+ if ( $leads_status == FALSE && $landing_page_status == FALSE && $cta_status == FALSE ) {
42
+
43
+ return; // end plugin is
44
+
45
+ }
46
+
47
+
48
+ // Exit if admin bar not there
49
+ if ( ! is_user_logged_in() || ! is_admin_bar_showing() ) {
50
+ return;
51
+ }
52
+
53
+ /** Show these items only if Inbound Now plugin is actually installed */
54
+ if ( $leads_status == TRUE || $landing_page_status == TRUE || $cta_status == TRUE ) {
55
+
56
+ }
57
+
58
+ }
59
+ static function send_inbound_feedback(){
60
+ // process feedback
61
+ if (isset($_POST['feedback'])) {
62
+ $firstname= 'anonymous';
63
+ $lastname= 'anonymous';
64
+ $email = (isset($_POST['email'])) ? $_POST['email'] : 'anonymous';
65
+ $feedback= $_POST['feedback'];
66
+ $page = $_POST['page'];
67
+ $plugin = (isset($_POST['plugin'])) ? $_POST['plugin'] : 'na';
68
+
69
+ $context = array(
70
+ 'hutk' => 'anonymous',
71
+ 'ipAddress' => 'anonymous',
72
+ 'pageUrl' => 'anonymous',
73
+ 'pageTitle' => $page
74
+ );
75
+ $context_json = json_encode($context);
76
+ //Need to populate these varilables with values from the form.
77
+ $str_post2 = "message=" . urlencode($feedback)
78
+ . "&email=" . urlencode($email)
79
+ . "&plugin=" . urlencode($plugin)
80
+ . "&page=" . urlencode($page)
81
+ . "&hs_context=" . urlencode($context_json);
82
+ $endpoint2 = 'https://forms.hubspot.com/uploads/form/v2/24784/4c6efedd-40b4-438e-bb4c-050a1944c974';
83
+
84
+ $ch2 = @curl_init();
85
+ @curl_setopt($ch2, CURLOPT_POST, true);
86
+ @curl_setopt($ch2, CURLOPT_POSTFIELDS, $str_post2);
87
+ @curl_setopt($ch2, CURLOPT_URL, $endpoint2);
88
+ @curl_setopt($ch2, CURLOPT_HTTPHEADER, array('application/x-www-form-urlencoded'));
89
+ @curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
90
+ $response2 = @curl_exec($ch2); //Log the response from HubSpot as needed.
91
+ @curl_close($ch2);
92
+ echo $response2;
93
+
94
+ }
95
+ }
96
+ static function show_feedback() {
97
+ if ( ! self::$add_feedback || ! is_admin())
98
+ return;
99
+ $screen = get_current_screen();
100
+
101
+ $show_array = array("edit-landing-page",
102
+ "landing-page_page_lp_global_settings",
103
+ "landing-page",
104
+ "landing-page_page_lp_manage_templates",
105
+ "edit-landing_page_category",
106
+ "edit-inbound-forms",
107
+ "wp-lead",
108
+ "edit-wp-lead",
109
+ "edit-list",
110
+ "wp-lead_page_wpleads_global_settings",
111
+ "edit-wp-call-to-action",
112
+ "wp-call-to-action",
113
+ "edit-wp_call_to_action_category",
114
+ "wp-call-to-action_page_wp_cta_manage_templates",
115
+ "wp-call-to-action_page_wp_cta_global_settings"
116
+ );
117
+ $lp_page_array = array("edit-landing-page",
118
+ "landing-page_page_lp_global_settings",
119
+ "landing-page",
120
+ "landing-page_page_lp_manage_templates",
121
+ "edit-landing_page_category"
122
+ );
123
+ $leads_page_array = array("wp-lead",
124
+ "edit-wp-lead",
125
+ "edit-list",
126
+ "wp-lead_page_wpleads_global_settings",
127
+ );
128
+ $cta_page_array = array(
129
+ "edit-wp-call-to-action",
130
+ "wp-call-to-action",
131
+ "edit-wp_call_to_action_category",
132
+ "wp-call-to-action_page_wp_cta_manage_templates",
133
+ "wp-call-to-action_page_wp_cta_global_settings"
134
+ );
135
+ if (!in_array($screen->id, $show_array))
136
+ return; // exit if not an inbound now plugin screen
137
+ if ( defined( 'WPL_URL' )) {
138
+ $final_path = WPL_URL . "/";
139
+ } else if (defined( 'LANDINGPAGES_URLPATH' )){
140
+ $final_path = LANDINGPAGES_URLPATH;
141
+ } else if (defined( 'WP_CTA_URLPATH' )){
142
+ $final_path = WP_CTA_URLPATH;
143
+ } else {
144
+ $final_path = preg_replace("/\/shared\/inbound-shortcodes\//", "/", INBOUND_FORMS);
145
+ }
146
+ $plugin_name = "Inbound Now Marketing Plugins"; // default
147
+ if (in_array($screen->id, $lp_page_array)) {
148
+ $plugin_name = "Landing Pages plugin";
149
+ } else if (in_array($screen->id, $cta_page_array)) {
150
+ $plugin_name = "Calls to Action plugin";
151
+ } else if (in_array($screen->id, $leads_page_array)) {
152
+ $plugin_name = "Leads Pages plugin";
153
+ }
154
+
155
+ ?>
156
+ <div id="launch-feedback" style='z-index:9999999999999; background:gray; position:fixed; bottom:0px; right:20px; width:200px; height:30px;'>
157
+ <div id="inbound-fb-request">
158
+ <div class="inbound-close-fb">close</div>
159
+ <div id="lp-slide-toggle">
160
+ <header id="header" class='inbound-customhead'>
161
+ <img src="<?php echo $final_path . 'shared/images/inbound-now-logo.png';?>" width="315px">
162
+ <h3 class="main-feedback-header" >We love hearing from You!</h3>
163
+ <h4>Please leave your <strong>idea/feature request</strong> to make the <?php echo $plugin_name;?> better below!</h4>
164
+ </header>
165
+ <section id="inbound-rules-main">
166
+ <form accept-charset="UTF-8" method="POST" id="inbound-feedback">
167
+ <div class="hs_message field hs-form-field">
168
+ <label placeholder="Enter your Feature Request" for="message-4c6efedd-40b4-438e-bb4c-050a1944c974">Feature Request<span class="hs-form-required"> * </span>
169
+ </label>
170
+ <div class="input">
171
+ <textarea required="required" id="inbound-feedback-message" name="message" value=""></textarea>
172
+ </div>
173
+ <div class="input">
174
+ <input id="inbound-feedback-email-field" name="email" value="" placeholder="Your Email (optional field)"></textarea>
175
+ </div>
176
+ </div>
177
+
178
+ <div class="inbound-feedback-actions">
179
+ <input class="submit-inbound-feedback" type="submit" value="Send Feedback/Feature Request">
180
+ </div>
181
+ <div class="inbound-feedback-desc" style="display: block;"><strong>Please note:</strong> Support requests will not be handled through this form</div>
182
+ </form>
183
+ </section>
184
+ </div>
185
+ <div id="inbound-rule-footer" class="inbound-selectron-foot"><?php //echo $screen->id;?>Submit a Feature Request</div>
186
+ </div>
187
+ <style type="text/css">
188
+ .main-feedback-header {
189
+ font-size: 21px;
190
+ padding-top: 0px;
191
+ margin-top: 14px;
192
+ margin-bottom: 10px;
193
+ padding-bottom: 0px;
194
+ }
195
+ .inbound-close-fb {
196
+ font-size: 10px;
197
+ position: absolute;
198
+ right: 5px;
199
+ top: -17px;
200
+ cursor: pointer;
201
+ }
202
+ .inbound-customhead {
203
+ text-align: center;
204
+ }
205
+ #inbound-fb-request {
206
+ background: #fff;
207
+ background: rgba(255, 255, 255, 1);
208
+ margin: 0px;
209
+ padding: 10px;
210
+ margin-bottom: -1px;
211
+ border: 1px solid #ccc;
212
+ position: relative;
213
+ border-top-left-radius: 2px;
214
+ border-top-right-radius: 2px;
215
+ box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2), 0 25px 50px 0 rgba(0, 0, 0, 0.15);
216
+ }
217
+ #inbound-feedback h1 {
218
+ font-size: 20px;
219
+ color: green;
220
+ }
221
+ #inbound-feedback h3 {
222
+ font-size: 13px;
223
+ padding-bottom: 15px;
224
+ }
225
+ #inbound-fb-request h4{
226
+ padding-right: 5px;
227
+ text-align: left;
228
+ font-weight: 300;
229
+ font-size: 16px;
230
+ line-height: 22px;
231
+ margin-top: 13px;
232
+ margin-bottom: 7px;
233
+ }
234
+ .inbound-feedback-actions {
235
+ text-align: center;
236
+ margin-top: 10px;
237
+ margin-bottom: 5px;
238
+ }
239
+ .inbound-feedback-desc {
240
+ color:#000;
241
+ font-weight: 300;
242
+ padding-bottom: 5px;
243
+ padding-top: 5px;
244
+ }
245
+ #inbound-fb-request {
246
+ position: fixed !important;
247
+ right: 10px;
248
+ bottom: 0px;
249
+ width: 330px;
250
+ }
251
+ #lp-slide-toggle {
252
+ margin-bottom: 30px;
253
+ }
254
+ #lp-slide-toggle {
255
+ display: none;
256
+ }
257
+ #inbound-rule-footer.inbound-selectron-foot {
258
+ color: #777;
259
+ font-size: 20px;
260
+ padding: 0 15px !important;
261
+ cursor: pointer;
262
+ padding-bottom: 0px !important;
263
+ padding-top: 11px !important;
264
+ position: absolute !important;
265
+ right: 0 !important;
266
+ bottom: 0px !important;
267
+ left: 0 !important;
268
+ background: #E9E9E9 !important;
269
+ height: 26px !important;
270
+ z-index: 8 !important;
271
+ text-align: center;
272
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
273
+ }
274
+ .submit-inbound-feedback {
275
+ position: relative;
276
+ display: block;
277
+ line-height: 40px;
278
+ font-size: 18px;
279
+ font-weight: 500;
280
+ color: white;
281
+ cursor: pointer;
282
+ text-align: center;
283
+ text-decoration: none;
284
+ text-shadow: 0 1px rgba(0, 0, 0, 0.1);
285
+ background: #fd935c;
286
+ border-bottom: 2px solid #cf7e3b;
287
+ border-color: rgba(0, 0, 0, 0.15);
288
+ border-radius: 4px;
289
+ width: 95%;
290
+ margin: auto;
291
+ }
292
+ #lp-slide-toggle textarea, #inbound-feedback-email-field {
293
+ width: 100%;
294
+
295
+ padding: 6px 12px;
296
+ font-size: 14px;
297
+ line-height: 1.428571429;
298
+ color: #555;
299
+ vertical-align: middle;
300
+ background-color: #fff;
301
+ background-image: none;
302
+ border: 1px solid #ccc;
303
+ border-radius: 4px;
304
+ -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
305
+ box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
306
+ -webkit-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
307
+ transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
308
+
309
+ }
310
+ #inbound-feedback-email-field {
311
+ margin-top: 5px;
312
+ }
313
+ #lp-slide-toggle textarea {
314
+ min-height: 125px;
315
+ }
316
+
317
+ #lp-slide-toggle textarea:focus, #inbound-feedback-email-field:focus {
318
+ border-color: #66afe9;
319
+ outline: 0;
320
+ -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6);
321
+ box-shadow: inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6);}
322
+ </style>
323
+ <script type="text/javascript">
324
+ jQuery(document).ready(function($) {
325
+ jQuery("body").on('click', '#inbound-rule-footer', function () {
326
+
327
+ jQuery("#lp-slide-toggle").slideToggle();
328
+ jQuery("#lp-open-close").toggleClass("lp-options-up");
329
+
330
+ jQuery("#footer").toggleClass("lp-options-on");
331
+ });
332
+ jQuery("body").on('click', '.inbound-close-fb', function () {
333
+ jQuery("#lp-slide-toggle").slideToggle();
334
+ });
335
+ jQuery("body").on('submit', '#inbound-feedback', function (e) {
336
+ e.preventDefault(); // halt normal form
337
+ var feedback = jQuery('#inbound-feedback-message').val();
338
+ var email = jQuery('#inbound-feedback-email-field').val();
339
+ if (typeof (feedback) != "undefined" && feedback != null && feedback != "") {
340
+ jQuery.ajax({
341
+ type: 'POST',
342
+ url: ajaxurl,
343
+ timeout: 10000,
344
+ data: {
345
+ feedback : feedback,
346
+ email: email,
347
+ page: document.title,
348
+ plugin: "<?php echo $plugin_name;?>",
349
+ action: 'send_inbound_feedback'
350
+ },
351
+ success: function(user_id){
352
+ console.log('feedback sent');
353
+ $(".inbound-customhead").hide();
354
+ $("#inbound-feedback").html('<h1>Thank You for your feedback!</h1><h3>Our team is hard at work to improve things for you!</h3>');
355
+ },
356
+ error: function(MLHttpRequest, textStatus, errorThrown){
357
+ //alert(MLHttpRequest+' '+errorThrown+' '+textStatus); // debug
358
+
359
+ }
360
+ });
361
+ } else {
362
+ $("#lp-slide-toggle textarea").css('border', 'red');
363
+ }
364
+ });
365
+ });
366
+
367
+ </script>
368
+
369
+ <?php }
370
+
371
+ }
372
+ }
373
+ /* Initialize InboundNow Menu
374
+ * --------------------------------------------------------- */
375
+
376
+ InboundFeedback::init();
377
+
378
+ ?>
shared/images/inbound-now-logo.png ADDED
Binary file