WordPress Landing Pages - Version 2.2.4

Version Description

  • Adding custom capabilities to landing-page post type
  • Debugging fatal when checking for Leads plugin
Download this release

Release Info

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

Code changes from version 2.2.3 to 2.2.4

classes/class.activation.php CHANGED
@@ -33,6 +33,7 @@ class Landing_Pages_Activation {
33
 
34
  /* Add listener for uncompleted upgrade routines */
35
  add_action( 'admin_init' , array( 'Landing_Pages_Activation' , 'run_upgrade_routine_checks' ) );
 
36
  }
37
 
38
  public static function activate() {
33
 
34
  /* Add listener for uncompleted upgrade routines */
35
  add_action( 'admin_init' , array( 'Landing_Pages_Activation' , 'run_upgrade_routine_checks' ) );
36
+
37
  }
38
 
39
  public static function activate() {
classes/class.admin-menus.php CHANGED
@@ -25,24 +25,15 @@ class Landing_Pages_Admin_Menus {
25
  */
26
  public static function add_sub_menus() {
27
 
28
- if (!current_user_can('manage_options')) {
29
- remove_menu_page( 'edit.php?post_type=landing-page' );
30
- return;
31
- }
32
-
33
- add_submenu_page('edit.php?post_type=landing-page', __('Forms', 'landing-pages'), __('Forms', 'landing-pages'), 'manage_options', 'inbound-forms-redirect', 100);
34
-
35
- /* Mebership holders can use Inbound Pro to manage templates */
36
- //if ( !class_exists('Inbound_Pro_Plugin') || Inbound_Pro_Plugin::get_customer_status() < 1 ) {
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
  }
25
  */
26
  public static function add_sub_menus() {
27
 
28
+ add_submenu_page('edit.php?post_type=landing-page', __('Forms', 'landing-pages'), __('Forms', 'landing-pages'), 'edit_landing_pages', 'inbound-forms-redirect', 100);
 
 
 
 
 
 
 
 
 
29
 
30
+ add_submenu_page('edit.php?post_type=landing-page', __('Settings', 'landing-pages'), __('Settings', 'landing-pages'), 'edit_landing_pages', 'lp_global_settings', array('Landing_Pages_Settings' , 'display_settings'));
31
 
32
  if ( !class_exists('Inbound_Pro_Plugin') ) {
33
+ add_submenu_page('edit.php?post_type=landing-page', __('Upgrade to Pro' , 'landing-pages'),__('Upgrade to Pro' , 'landing-pages'), 'edit_landing_pages', 'lp_store', array( 'Inbound_Now_Store' , 'store_display' ),100);
34
  }
35
 
36
+ add_submenu_page('edit.php?post_type=landing-page', __('Upload Templates', 'landing-pages'), __('Upload Templates', 'landing-pages'), 'edit_landing_pages', 'lp_manage_templates', 'lp_manage_templates', 100);
37
 
38
  }
39
  }
classes/class.post-type.landing-page.php CHANGED
@@ -13,6 +13,7 @@ if ( !class_exists('Landing_Pages_Post_Type') ) {
13
  */
14
  private function load_hooks() {
15
  add_action('init', array( __CLASS__ , 'register_post_type' ) );
 
16
  add_action('init', array( __CLASS__ , 'register_taxonomies' ) );
17
  add_action('init', array( __CLASS__ , 'add_rewrite_rules') );
18
  add_filter('mod_rewrite_rules', array( __CLASS__ , 'filter_rewrite_rules' ) , 1);
@@ -87,15 +88,45 @@ if ( !class_exists('Landing_Pages_Post_Type') ) {
87
  'query_var' => true,
88
  'menu_icon' => '',
89
  'rewrite' => array("slug" => "$slug",'with_front' => false),
90
- 'capability_type' => 'post',
 
91
  'hierarchical' => false,
92
  'menu_position' => 32,
93
- 'supports' => array('title','custom-fields','editor', 'excerpt')
94
  );
95
 
96
  register_post_type( 'landing-page' , $args );
97
  }
98
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
99
  /**
100
  * Register landing page taxonomies
101
  */
13
  */
14
  private function load_hooks() {
15
  add_action('init', array( __CLASS__ , 'register_post_type' ) );
16
+ add_action( 'admin_init' , array( __CLASS__ , 'register_role_capabilities' ) ,999);
17
  add_action('init', array( __CLASS__ , 'register_taxonomies' ) );
18
  add_action('init', array( __CLASS__ , 'add_rewrite_rules') );
19
  add_filter('mod_rewrite_rules', array( __CLASS__ , 'filter_rewrite_rules' ) , 1);
88
  'query_var' => true,
89
  'menu_icon' => '',
90
  'rewrite' => array("slug" => "$slug",'with_front' => false),
91
+ 'capability_type' => array('landing_page','landing_pages'),
92
+ 'map_meta_cap' => true,
93
  'hierarchical' => false,
94
  'menu_position' => 32,
95
+ 'supports' => array('title','custom-fields','editor', 'revisions')
96
  );
97
 
98
  register_post_type( 'landing-page' , $args );
99
  }
100
 
101
+ /**
102
+ * Register Role Capabilities
103
+ */
104
+ public static function register_role_capabilities() {
105
+ // Add the roles you'd like to administer the custom post types
106
+ $roles = array('inbound_marketer','administrator');
107
+
108
+ // Loop through each role and assign capabilities
109
+ foreach($roles as $the_role) {
110
+
111
+ $role = get_role($the_role);
112
+ if (!$role) {
113
+ continue;
114
+ }
115
+
116
+ $role->add_cap( 'read' );
117
+ $role->add_cap( 'read_landing_page');
118
+ $role->add_cap( 'read_private_landing_pages' );
119
+ $role->add_cap( 'edit_landing_page' );
120
+ $role->add_cap( 'edit_landing_pages' );
121
+ $role->add_cap( 'edit_others_landing_pages' );
122
+ $role->add_cap( 'edit_published_landing_pages' );
123
+ $role->add_cap( 'publish_landing_pages' );
124
+ $role->add_cap( 'delete_others_landing_pages' );
125
+ $role->add_cap( 'delete_private_landing_pages' );
126
+ $role->add_cap( 'delete_published_landing_pages' );
127
+ }
128
+ }
129
+
130
  /**
131
  * Register landing page taxonomies
132
  */
classes/class.settings.php CHANGED
@@ -230,11 +230,6 @@ class Landing_Pages_Settings {
230
  src="<?php echo LANDINGPAGES_URLPATH; ?>assets/images/add-on-image.png"></a>
231
  </center>
232
  </div>
233
- <div id="custom-templates">
234
- <center><a href="http://dev.inboundnow.com/submit-a-work-request/" target=="_blank"><img
235
- src="<?php echo LANDINGPAGES_URLPATH; ?>assets/images/custom-setup-image.png"></a>
236
- </center>
237
- </div>
238
  </div>
239
  <script type="text/javascript">
240
  jQuery(document).ready(function ($) {
230
  src="<?php echo LANDINGPAGES_URLPATH; ?>assets/images/add-on-image.png"></a>
231
  </center>
232
  </div>
 
 
 
 
 
233
  </div>
234
  <script type="text/javascript">
235
  jQuery(document).ready(function ($) {
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.2.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.2.3' );
41
  define('LANDINGPAGES_URLPATH', plugins_url( '/' , __FILE__ ) );
42
  define('LANDINGPAGES_PATH', WP_PLUGIN_DIR.'/'.plugin_basename( dirname(__FILE__) ).'/' );
43
  define('LANDINGPAGES_PLUGIN_SLUG', plugin_basename( dirname(__FILE__) ) );
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.2.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.2.4' );
41
  define('LANDINGPAGES_URLPATH', plugins_url( '/' , __FILE__ ) );
42
  define('LANDINGPAGES_PATH', WP_PLUGIN_DIR.'/'.plugin_basename( dirname(__FILE__) ).'/' );
43
  define('LANDINGPAGES_PLUGIN_SLUG', plugin_basename( dirname(__FILE__) ) );
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.5.2
10
- Stable Tag: 2.2.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
 
@@ -70,6 +70,10 @@ The plugin is also fully extendable and has a number of actions, filters, and ho
70
 
71
  == Changelog ==
72
 
 
 
 
 
73
  = 2.2.3 =
74
  * Debugging impression count
75
  * Removing Inbound Statistics for content in favor of Inbound Google Analytics extension.
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.5.2
10
+ Stable Tag: 2.2.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.2.4 =
74
+ * Adding custom capabilities to landing-page post type
75
+ * Debugging fatal when checking for Leads plugin
76
+
77
  = 2.2.3 =
78
  * Debugging impression count
79
  * Removing Inbound Statistics for content in favor of Inbound Google Analytics extension.
shared/classes/class.branching.php CHANGED
@@ -91,13 +91,13 @@ if ( !class_exists('Inbound_Branching') ) {
91
  if ( self::$branch == 'svn' ) {
92
  $class = "switch-versions";
93
  $switch_to = "git";
94
- $title = __( 'Switch to lastest development release. Warning this should not be performed on a live site.', INBOUNDNOW_TEXT_DOMAIN );
95
- $button_text = __( 'Switch to latest git', INBOUNDNOW_TEXT_DOMAIN );
96
  } else {
97
  $class = "switch-versions";
98
  $switch_to = "svn";
99
- $title = __( 'Switch to latest stable release.', INBOUNDNOW_TEXT_DOMAIN );
100
- $button_text = __( 'Switch to latest svn', INBOUNDNOW_TEXT_DOMAIN );
101
  }
102
  return '<a href="#" class="'.$class.'" id="'.self::$plugin.'-toggle" data-branch="'.$switch_to.'" data-plugin="'.self::$plugin.'" title="'.$title.'">'. $button_text .'</a> <div class="spinner" id="spinner-'.self::$plugin.'-toggle"></span></div>';
103
  }
@@ -143,7 +143,7 @@ if ( !class_exists('Inbound_Branching') ) {
143
  var branch = jQuery( '#' + this.id ).data( 'branch' );
144
  var plugin = jQuery( '#' + this.id ).data( 'plugin' );
145
 
146
- var result = confirm("<?php _e('Switching branches on a live site should be avoided. Are you sure you would like to switch filesets?', INBOUNDNOW_TEXT_DOMAIN ); ?>");
147
 
148
  if (!result) {
149
  return;
91
  if ( self::$branch == 'svn' ) {
92
  $class = "switch-versions";
93
  $switch_to = "git";
94
+ $title = __( 'Switch to lastest development release. Warning this should not be performed on a live site.', 'inbound-pro' );
95
+ $button_text = __( 'Switch to latest git', 'inbound-pro' );
96
  } else {
97
  $class = "switch-versions";
98
  $switch_to = "svn";
99
+ $title = __( 'Switch to latest stable release.', 'inbound-pro' );
100
+ $button_text = __( 'Switch to latest svn', 'inbound-pro' );
101
  }
102
  return '<a href="#" class="'.$class.'" id="'.self::$plugin.'-toggle" data-branch="'.$switch_to.'" data-plugin="'.self::$plugin.'" title="'.$title.'">'. $button_text .'</a> <div class="spinner" id="spinner-'.self::$plugin.'-toggle"></span></div>';
103
  }
143
  var branch = jQuery( '#' + this.id ).data( 'branch' );
144
  var plugin = jQuery( '#' + this.id ).data( 'plugin' );
145
 
146
+ var result = confirm("<?php _e('Switching branches on a live site should be avoided. Are you sure you would like to switch filesets?', 'inbound-pro' ); ?>");
147
 
148
  if (!result) {
149
  return;
shared/classes/class.events.php CHANGED
@@ -222,6 +222,15 @@ class Inbound_Events {
222
  $args
223
  );
224
 
 
 
 
 
 
 
 
 
 
225
  }
226
 
227
  public static function delete_related_events( $post_id ) {
222
  $args
223
  );
224
 
225
+ /* check error messages for broken tables */
226
+ if (isset($wpdb->last_error)) {
227
+ switch ($wpdb->last_error) {
228
+ case "Unknown column 'funnel' in 'field list'":
229
+ self::create_events_table();
230
+ break;
231
+ }
232
+ }
233
+
234
  }
235
 
236
  public static function delete_related_events( $post_id ) {
shared/classes/class.feedback.php CHANGED
@@ -245,46 +245,46 @@ if (!class_exists('Inbound_Feedback')) {
245
  return;
246
  }
247
 
248
- $plugin_name = __( 'Inbound Now Marketing Plugins', INBOUNDNOW_TEXT_DOMAIN ); /* default */
249
  if (in_array($screen->id, $lp_page_array)) {
250
- $plugin_name = __( 'Landing Pages plugin', INBOUNDNOW_TEXT_DOMAIN );
251
  } else if (in_array($screen->id, $cta_page_array)) {
252
- $plugin_name = __( 'Calls to Action plugin', INBOUNDNOW_TEXT_DOMAIN );
253
  } else if (in_array($screen->id, $leads_page_array)) {
254
- $plugin_name = __( 'Leads plugin', INBOUNDNOW_TEXT_DOMAIN );
255
  }
256
 
257
  ?>
258
  <div id="launch-feedback" style='z-index:9999999999999; background:gray; position:fixed; bottom:0px; right:20px; width:200px; height:30px;'>
259
  <div id="inbound-fb-request">
260
- <div class="inbound-close-fb"><?php _e( 'close', INBOUNDNOW_TEXT_DOMAIN ); ?></div>
261
  <div id="lp-slide-toggle">
262
  <header id="header" class='inbound-customhead'>
263
- <a href="http://www.inboundnow.com" target="_blank" title="<?php _e( 'Visit Inbound Now', INBOUNDNOW_TEXT_DOMAIN ); ?>"><img src="<?php echo INBOUNDNOW_SHARED_URLPATH . 'assets/images/admin/inbound-now-logo.png';?>" width="315px"></a>
264
- <h3 class="main-feedback-header" ><?php _e( 'We love hearing from You!', INBOUNDNOW_TEXT_DOMAIN ); ?></h3>
265
  <h4><?php _e( sprintf( 'Please leave your %sidea/feature request%s to make the %s better below! ', '<strong>', '</strong>', $plugin_name ), 'inbound-pro' ); ?></h4>
266
  </header>
267
  <section id="inbound-rules-main">
268
  <form accept-charset="UTF-8" method="POST" id="inbound-feedback">
269
  <div class="hs_message field hs-form-field">
270
- <label placeholder="<?php _e( 'Enter your Feature Request', INBOUNDNOW_TEXT_DOMAIN ); ?>" for="message-4c6efedd-40b4-438e-bb4c-050a1944c974"><?php _e( 'Feature Request', INBOUNDNOW_TEXT_DOMAIN ); ?><span class="hs-form-required"> * </span>
271
  </label>
272
  <div class="input">
273
  <textarea required="required" id="inbound-feedback-message" name="message" value=""></textarea>
274
  </div>
275
  <div class="input">
276
- <input id="inbound-feedback-email-field" name="email" value="" placeholder="<?php _e( 'Your Email (optional field)', INBOUNDNOW_TEXT_DOMAIN ); ?>"></textarea>
277
  </div>
278
  </div>
279
 
280
  <div class="inbound-feedback-actions">
281
- <input class="submit-inbound-feedback" type="submit" value="<?php _e( 'Send Feedback/Feature Request', INBOUNDNOW_TEXT_DOMAIN ); ?>">
282
  </div>
283
- <div class="inbound-feedback-desc" style="display: block;"><strong><?php _e( 'Please note:', INBOUNDNOW_TEXT_DOMAIN ); ?></strong> <?php _e( 'Support requests will not be handled through this form', INBOUNDNOW_TEXT_DOMAIN ); ?></div>
284
  </form>
285
  </section>
286
  </div>
287
- <div id="inbound-automation-footer" class="inbound-selectron-foot"><?php _e( 'Submit a Feature Request', INBOUNDNOW_TEXT_DOMAIN ); ?></div>
288
  </div>
289
 
290
  <script type="text/javascript">
245
  return;
246
  }
247
 
248
+ $plugin_name = __( 'Inbound Now Marketing Plugins', 'inbound-pro' ); /* default */
249
  if (in_array($screen->id, $lp_page_array)) {
250
+ $plugin_name = __( 'Landing Pages plugin', 'inbound-pro' );
251
  } else if (in_array($screen->id, $cta_page_array)) {
252
+ $plugin_name = __( 'Calls to Action plugin', 'inbound-pro' );
253
  } else if (in_array($screen->id, $leads_page_array)) {
254
+ $plugin_name = __( 'Leads plugin', 'inbound-pro' );
255
  }
256
 
257
  ?>
258
  <div id="launch-feedback" style='z-index:9999999999999; background:gray; position:fixed; bottom:0px; right:20px; width:200px; height:30px;'>
259
  <div id="inbound-fb-request">
260
+ <div class="inbound-close-fb"><?php _e( 'close', 'inbound-pro' ); ?></div>
261
  <div id="lp-slide-toggle">
262
  <header id="header" class='inbound-customhead'>
263
+ <a href="http://www.inboundnow.com" target="_blank" title="<?php _e( 'Visit Inbound Now', 'inbound-pro' ); ?>"><img src="<?php echo INBOUNDNOW_SHARED_URLPATH . 'assets/images/admin/inbound-now-logo.png';?>" width="315px"></a>
264
+ <h3 class="main-feedback-header" ><?php _e( 'We love hearing from You!', 'inbound-pro' ); ?></h3>
265
  <h4><?php _e( sprintf( 'Please leave your %sidea/feature request%s to make the %s better below! ', '<strong>', '</strong>', $plugin_name ), 'inbound-pro' ); ?></h4>
266
  </header>
267
  <section id="inbound-rules-main">
268
  <form accept-charset="UTF-8" method="POST" id="inbound-feedback">
269
  <div class="hs_message field hs-form-field">
270
+ <label placeholder="<?php _e( 'Enter your Feature Request', 'inbound-pro' ); ?>" for="message-4c6efedd-40b4-438e-bb4c-050a1944c974"><?php _e( 'Feature Request', 'inbound-pro' ); ?><span class="hs-form-required"> * </span>
271
  </label>
272
  <div class="input">
273
  <textarea required="required" id="inbound-feedback-message" name="message" value=""></textarea>
274
  </div>
275
  <div class="input">
276
+ <input id="inbound-feedback-email-field" name="email" value="" placeholder="<?php _e( 'Your Email (optional field)', 'inbound-pro' ); ?>"></textarea>
277
  </div>
278
  </div>
279
 
280
  <div class="inbound-feedback-actions">
281
+ <input class="submit-inbound-feedback" type="submit" value="<?php _e( 'Send Feedback/Feature Request', 'inbound-pro' ); ?>">
282
  </div>
283
+ <div class="inbound-feedback-desc" style="display: block;"><strong><?php _e( 'Please note:', 'inbound-pro' ); ?></strong> <?php _e( 'Support requests will not be handled through this form', 'inbound-pro' ); ?></div>
284
  </form>
285
  </section>
286
  </div>
287
+ <div id="inbound-automation-footer" class="inbound-selectron-foot"><?php _e( 'Submit a Feature Request', 'inbound-pro' ); ?></div>
288
  </div>
289
 
290
  <script type="text/javascript">
shared/classes/class.form.php CHANGED
@@ -198,9 +198,9 @@ if (!class_exists('Inbound_Forms')) {
198
  $dynamic_value = (isset($_GET[$hidden_param])) ? $_GET[$hidden_param] : '';
199
  $dynamic_value = (!$dynamic_value && isset($_COOKIE[$hidden_param])) ? $_COOKIE[$hidden_param] : $dynamic_value;
200
 
201
-
202
- $form .= '<div class="inbound-field ' . $div_chk_req . $main_layout . ' label-' . $form_labels_class . ' ' . $form_labels_class . ' ' . $field_container_class . '">';
203
-
204
  if ($show_labels && $form_labels != "bottom" || $type === "radio") {
205
  $form .= '<label for="' . $field_name . '" class="inbound-label ' . $formatted_label . ' ' . $form_labels_class . ' inbound-input-' . $type . '" style="' . $font_size . '">' . html_entity_decode($matches[3][$i]['label']) . $req_label . '</label>';
206
  }
@@ -369,7 +369,7 @@ if (!class_exists('Inbound_Forms')) {
369
  /*wp_editor(); /* call wp editor */
370
  } else if ($type === 'honeypot') {
371
 
372
- $form .= '<input type="hidden" name="stop_dirty_subs" class="stop_dirty_subs" value="">';
373
 
374
  } else if ($type === 'datetime-local') {
375
 
@@ -441,8 +441,9 @@ if (!class_exists('Inbound_Forms')) {
441
  if ($description_block != "" && $type != 'hidden') {
442
  $form .= "<div class='inbound-description'>" . $description_block . "</div>";
443
  }
444
-
445
- $form .= '</div>';
 
446
  }
447
  /* End Loop */
448
 
@@ -558,14 +559,14 @@ if (!class_exists('Inbound_Forms')) {
558
  if( jQuery(\'.checkbox-required\')[0] && jQuery(\'.checkbox-required input[type=checkbox]:checked\').length==0)
559
  {
560
  jQuery(\'.checkbox-required input[type=checkbox]:first\').focus();
561
- alert("' . __('Oops! Looks like you have not filled out all of the required fields!', INBOUNDNOW_TEXT_DOMAIN) . '");
562
  e.preventDefault();
563
  e.stopImmediatePropagation();
564
  }
565
  jQuery(this).find("input").each(function(){
566
  if(!jQuery(this).prop("required")){
567
  } else if (!jQuery(this).val()) {
568
- alert("' . __('Oops! Looks like you have not filled out all of the required fields!', INBOUNDNOW_TEXT_DOMAIN) . '");
569
 
570
  e.preventDefault();
571
  e.stopImmediatePropagation();
@@ -684,7 +685,7 @@ if (!class_exists('Inbound_Forms')) {
684
 
685
  if (isset($_POST['inbound_submitted']) && $_POST['inbound_submitted'] === '1') {
686
  $form_post_data = array();
687
- if (isset($_POST['stop_dirty_subs']) && $_POST['stop_dirty_subs'] != "") {
688
  wp_die($message = 'Die You spam bastard');
689
  return false;
690
  }
@@ -912,7 +913,7 @@ if (!class_exists('Inbound_Forms')) {
912
 
913
  /* add default subject if empty */
914
  if (!$confirm_subject) {
915
- $confirm_subject = __('Thank you!', INBOUNDNOW_TEXT_DOMAIN);
916
  }
917
 
918
  $confirm_email_message = $Inbound_Templating_Engine->replace_tokens($confirm_email_message, array($form_post_data, $form_meta_data));
@@ -998,11 +999,11 @@ if (!class_exists('Inbound_Forms')) {
998
  <td align="left" width="600" style="-webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; color: #fff; font-weight: bold; text-decoration: none; font-family: Helvetica, Arial, sans-serif; display: block;">
999
  <h1 style="font-size: 30px; display: inline-block;margin-top: 15px;margin-left: 10px; margin-bottom: 0px; letter-spacing: 0px; word-spacing: 0px; font-weight: 300;">' . __('Lead Information', 'inbound-pro') . '</h1>
1000
  <div style="float:right; margin-top: 5px; margin-right: 15px;"><!--[if mso]>
1001
- <v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{admin-url}}edit.php?post_type=wp-lead&lead-email-redirect={{lead-email-address}}" style="height:40px;v-text-anchor:middle;width:130px;font-size:18px;" arcsize="10%" stroke="f" fillcolor="#ffffff">
1002
  <w:anchorlock/>
1003
  <center>
1004
  <![endif]-->
1005
- <a href="{{admin-url}}edit.php?post_type=wp-lead&lead-email-redirect={{lead-email-address}}"
1006
  style="background-color:#ffffff;border-radius:4px;color:#3A9FD1;display:inline-block;font-family:sans-serif;font-size:18px;font-weight:bold;line-height:40px;text-align:center;text-decoration:none;width:130px;-webkit-text-size-adjust:none;">' . __('View Lead', 'inbound-pro') . '</a>
1007
  <!--[if mso]>
1008
  </center>
@@ -1028,15 +1029,15 @@ if (!class_exists('Inbound_Forms')) {
1028
  <tbody valign="top">
1029
  <tr valign="top" border="0">
1030
  <td width="160" height="50" align="center" valign="top" border="0">
1031
- <h3 style="color:#2e2e2e;font-size:15px;"><a style="text-decoration: none;" href="{{admin-url}}edit.php?post_type=wp-lead&lead-email-redirect={{lead-email-address}}&tab=tabs-wpleads_lead_tab_conversions">' . __('View Lead Activity', 'inbound-pro') . '</a></h3>
1032
  </td>
1033
 
1034
  <td width="160" height="50" align="center" valign="top" border="0">
1035
- <h3 style="color:#2e2e2e;font-size:15px;"><a style="text-decoration: none;" href="{{admin-url}}edit.php?post_type=wp-lead&lead-email-redirect={{lead-email-address}}&scroll-to=wplead_metabox_conversion">' . __('Pages Viewed', 'inbound-pro') . '</a></h3>
1036
  </td>
1037
 
1038
  <td width="160" height="50" align="center" valign="top" border="0">
1039
- <h3 style="color:#2e2e2e;font-size:15px;"><a style="text-decoration: none;" href="{{admin-url}}edit.php?post_type=wp-lead&lead-email-redirect={{lead-email-address}}&tab=tabs-wpleads_lead_tab_raw_form_data">' . __('View Form Data', 'inbound-pro') . '</a></h3>
1040
  </td>
1041
  </tr>
1042
  </tbody></table>
@@ -1046,11 +1047,11 @@ if (!class_exists('Inbound_Forms')) {
1046
  <tbody><tr>
1047
  <td align="center" width="250" height="30" cellpadding="5">
1048
  <div><!--[if mso]>
1049
- <v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{admin-url}}edit.php?post_type=wp-lead&lead-email-redirect={{lead-email-address}}" style="height:40px;v-text-anchor:middle;width:250px;" arcsize="10%" strokecolor="#7490af" fillcolor="#3A9FD1">
1050
  <w:anchorlock/>
1051
  <center style="color:#ffffff;font-family:sans-serif;font-size:13px;font-weight:bold;">' . __('View Lead', 'inbound-pro') . '</center>
1052
  </v:roundrect>
1053
- <![endif]--><a href="{{admin-url}}edit.php?post_type=wp-lead&lead-email-redirect={{lead-email-address}}"
1054
  style="background-color:#3A9FD1;border:1px solid #7490af;border-radius:4px;color:#ffffff;display:inline-block;font-family:sans-serif;font-size:18px;font-weight:bold;line-height:40px;text-align:center;text-decoration:none;width:250px;-webkit-text-size-adjust:none;mso-hide:all;" title="' . __('View the full Lead details in WordPress', 'inbound-pro') . '">' . __('View Full Lead Details', 'inbound-pro') . '</a>
1055
  </div>
1056
  </td>
@@ -1129,18 +1130,18 @@ if (!class_exists('Inbound_Forms')) {
1129
 
1130
  case 'months':
1131
  return array(
1132
- '01' => __('Jan', INBOUNDNOW_TEXT_DOMAIN),
1133
- '02' => __('Feb', INBOUNDNOW_TEXT_DOMAIN),
1134
- '03' => __('Mar', INBOUNDNOW_TEXT_DOMAIN),
1135
- '04' => __('Apr', INBOUNDNOW_TEXT_DOMAIN),
1136
- '05' => __('May', INBOUNDNOW_TEXT_DOMAIN),
1137
- '06' => __('Jun', INBOUNDNOW_TEXT_DOMAIN),
1138
- '07' => __('Jul', INBOUNDNOW_TEXT_DOMAIN),
1139
- '08' => __('Aug', INBOUNDNOW_TEXT_DOMAIN),
1140
- '09' => __('Sep', INBOUNDNOW_TEXT_DOMAIN),
1141
- '10' => __('Oct', INBOUNDNOW_TEXT_DOMAIN),
1142
- '11' => __('Nov', INBOUNDNOW_TEXT_DOMAIN),
1143
- '12' => __('Dec', INBOUNDNOW_TEXT_DOMAIN)
1144
  );
1145
  break;
1146
  case 'days' :
@@ -1170,255 +1171,255 @@ if (!class_exists('Inbound_Forms')) {
1170
  */
1171
  public static function get_countries_array() {
1172
  return array(
1173
- __('AF', 'inbound-pro' ) => __('Afghanistan', INBOUNDNOW_TEXT_DOMAIN),
1174
- __('AX', 'inbound-pro' ) => __('Aland Islands', INBOUNDNOW_TEXT_DOMAIN),
1175
- __('AL', 'inbound-pro' ) => __('Albania', INBOUNDNOW_TEXT_DOMAIN),
1176
- __('DZ', 'inbound-pro' ) => __('Algeria', INBOUNDNOW_TEXT_DOMAIN),
1177
- __('AS', 'inbound-pro' ) => __('American Samoa', INBOUNDNOW_TEXT_DOMAIN),
1178
- __('AD', 'inbound-pro' ) => __('Andorra', INBOUNDNOW_TEXT_DOMAIN),
1179
- __('AO', 'inbound-pro' ) => __('Angola', INBOUNDNOW_TEXT_DOMAIN),
1180
- __('AI', 'inbound-pro' ) => __('Anguilla', INBOUNDNOW_TEXT_DOMAIN),
1181
- __('AQ', 'inbound-pro' ) => __('Antarctica', INBOUNDNOW_TEXT_DOMAIN),
1182
- __('AG', 'inbound-pro' ) => __('Antigua and Barbuda', INBOUNDNOW_TEXT_DOMAIN),
1183
- __('AR', 'inbound-pro' ) => __('Argentina', INBOUNDNOW_TEXT_DOMAIN),
1184
- __('AM', 'inbound-pro' ) => __('Armenia', INBOUNDNOW_TEXT_DOMAIN),
1185
- __('AW', 'inbound-pro' ) => __('Aruba', INBOUNDNOW_TEXT_DOMAIN),
1186
- __('AU', 'inbound-pro' ) => __('Australia', INBOUNDNOW_TEXT_DOMAIN),
1187
- __('AT', 'inbound-pro' ) => __('Austria', INBOUNDNOW_TEXT_DOMAIN),
1188
- __('AZ', 'inbound-pro' ) => __('Azerbaijan', INBOUNDNOW_TEXT_DOMAIN),
1189
- __('BS', 'inbound-pro' ) => __('Bahamas', INBOUNDNOW_TEXT_DOMAIN),
1190
- __('BH', 'inbound-pro' ) => __('Bahrain', INBOUNDNOW_TEXT_DOMAIN),
1191
- __('BD', 'inbound-pro' ) => __('Bangladesh', INBOUNDNOW_TEXT_DOMAIN),
1192
- __('BB', 'inbound-pro' ) => __('Barbados', INBOUNDNOW_TEXT_DOMAIN),
1193
- __('BY', 'inbound-pro' ) => __('Belarus', INBOUNDNOW_TEXT_DOMAIN),
1194
- __('BE', 'inbound-pro' ) => __('Belgium', INBOUNDNOW_TEXT_DOMAIN),
1195
- __('BZ', 'inbound-pro' ) => __('Belize', INBOUNDNOW_TEXT_DOMAIN),
1196
- __('BJ', 'inbound-pro' ) => __('Benin', INBOUNDNOW_TEXT_DOMAIN),
1197
- __('BM', 'inbound-pro' ) => __('Bermuda', INBOUNDNOW_TEXT_DOMAIN),
1198
- __('BT', 'inbound-pro' ) => __('Bhutan', INBOUNDNOW_TEXT_DOMAIN),
1199
- __('BO', 'inbound-pro' ) => __('Bolivia', INBOUNDNOW_TEXT_DOMAIN),
1200
- __('BA', 'inbound-pro' ) => __('Bosnia and Herzegovina', INBOUNDNOW_TEXT_DOMAIN),
1201
- __('BW', 'inbound-pro' ) => __('Botswana', INBOUNDNOW_TEXT_DOMAIN),
1202
- __('BV', 'inbound-pro' ) => __('Bouvet Island', INBOUNDNOW_TEXT_DOMAIN),
1203
- __('BR', 'inbound-pro' ) => __('Brazil', INBOUNDNOW_TEXT_DOMAIN),
1204
- __('IO', 'inbound-pro' ) => __('British Indian Ocean Territory', INBOUNDNOW_TEXT_DOMAIN),
1205
- __('BN', 'inbound-pro' ) => __('Brunei Darussalam', INBOUNDNOW_TEXT_DOMAIN),
1206
- __('BG', 'inbound-pro' ) => __('Bulgaria', INBOUNDNOW_TEXT_DOMAIN),
1207
- __('BF', 'inbound-pro' ) => __('Burkina Faso', INBOUNDNOW_TEXT_DOMAIN),
1208
- __('BI', 'inbound-pro' ) => __('Burundi', INBOUNDNOW_TEXT_DOMAIN),
1209
- __('KH', 'inbound-pro' ) => __('Cambodia', INBOUNDNOW_TEXT_DOMAIN),
1210
- __('CM', 'inbound-pro' ) => __('Cameroon', INBOUNDNOW_TEXT_DOMAIN),
1211
- __('CA', 'inbound-pro' ) => __('Canada', INBOUNDNOW_TEXT_DOMAIN),
1212
- __('CV', 'inbound-pro' ) => __('Cape Verde', INBOUNDNOW_TEXT_DOMAIN),
1213
- __('BQ', 'inbound-pro' ) => __('Caribbean Netherlands ', INBOUNDNOW_TEXT_DOMAIN),
1214
- __('KY', 'inbound-pro' ) => __('Cayman Islands', INBOUNDNOW_TEXT_DOMAIN),
1215
- __('CF', 'inbound-pro' ) => __('Central African Republic', INBOUNDNOW_TEXT_DOMAIN),
1216
- __('TD', 'inbound-pro' ) => __('Chad', INBOUNDNOW_TEXT_DOMAIN),
1217
- __('CL', 'inbound-pro' ) => __('Chile', INBOUNDNOW_TEXT_DOMAIN),
1218
- __('CN', 'inbound-pro' ) => __('China', INBOUNDNOW_TEXT_DOMAIN),
1219
- __('CX', 'inbound-pro' ) => __('Christmas Island', INBOUNDNOW_TEXT_DOMAIN),
1220
- __('CC', 'inbound-pro' ) => __('Cocos (Keeling) Islands', INBOUNDNOW_TEXT_DOMAIN),
1221
- __('CO', 'inbound-pro' ) => __('Colombia', INBOUNDNOW_TEXT_DOMAIN),
1222
- __('KM', 'inbound-pro' ) => __('Comoros', INBOUNDNOW_TEXT_DOMAIN),
1223
- __('CG', 'inbound-pro' ) => __('Congo', INBOUNDNOW_TEXT_DOMAIN),
1224
- __('CD', 'inbound-pro' ) => __('Congo, Democratic Republic of', INBOUNDNOW_TEXT_DOMAIN),
1225
- __('CK', 'inbound-pro' ) => __('Cook Islands', INBOUNDNOW_TEXT_DOMAIN),
1226
- __('CR', 'inbound-pro' ) => __('Costa Rica', INBOUNDNOW_TEXT_DOMAIN),
1227
- __('CI', 'inbound-pro' ) => __('Cote d\'Ivoire', INBOUNDNOW_TEXT_DOMAIN),
1228
- __('HR', 'inbound-pro' ) => __('Croatia', INBOUNDNOW_TEXT_DOMAIN),
1229
- __('CU', 'inbound-pro' ) => __('Cuba', INBOUNDNOW_TEXT_DOMAIN),
1230
- __('CW', 'inbound-pro' ) => __('Curacao', INBOUNDNOW_TEXT_DOMAIN),
1231
- __('CY', 'inbound-pro' ) => __('Cyprus', INBOUNDNOW_TEXT_DOMAIN),
1232
- __('CZ', 'inbound-pro' ) => __('Czech Republic', INBOUNDNOW_TEXT_DOMAIN),
1233
- __('DK', 'inbound-pro' ) => __('Denmark', INBOUNDNOW_TEXT_DOMAIN),
1234
- __('DJ', 'inbound-pro' ) => __('Djibouti', INBOUNDNOW_TEXT_DOMAIN),
1235
- __('DM', 'inbound-pro' ) => __('Dominica', INBOUNDNOW_TEXT_DOMAIN),
1236
- __('DO', 'inbound-pro' ) => __('Dominican Republic', INBOUNDNOW_TEXT_DOMAIN),
1237
- __('EC', 'inbound-pro' ) => __('Ecuador', INBOUNDNOW_TEXT_DOMAIN),
1238
- __('EG', 'inbound-pro' ) => __('Egypt', INBOUNDNOW_TEXT_DOMAIN),
1239
- __('SV', 'inbound-pro' ) => __('El Salvador', INBOUNDNOW_TEXT_DOMAIN),
1240
- __('GQ', 'inbound-pro' ) => __('Equatorial Guinea', INBOUNDNOW_TEXT_DOMAIN),
1241
- __('ER', 'inbound-pro' ) => __('Eritrea', INBOUNDNOW_TEXT_DOMAIN),
1242
- __('EE', 'inbound-pro' ) => __('Estonia', INBOUNDNOW_TEXT_DOMAIN),
1243
- __('ET', 'inbound-pro' ) => __('Ethiopia', INBOUNDNOW_TEXT_DOMAIN),
1244
- __('FK', 'inbound-pro' ) => __('Falkland Islands', INBOUNDNOW_TEXT_DOMAIN),
1245
- __('FO', 'inbound-pro' ) => __('Faroe Islands', INBOUNDNOW_TEXT_DOMAIN),
1246
- __('FJ', 'inbound-pro' ) => __('Fiji', INBOUNDNOW_TEXT_DOMAIN),
1247
- __('FI', 'inbound-pro' ) => __('Finland', INBOUNDNOW_TEXT_DOMAIN),
1248
- __('FR', 'inbound-pro' ) => __('France', INBOUNDNOW_TEXT_DOMAIN),
1249
- __('GF', 'inbound-pro' ) => __('French Guiana', INBOUNDNOW_TEXT_DOMAIN),
1250
- __('PF', 'inbound-pro' ) => __('French Polynesia', INBOUNDNOW_TEXT_DOMAIN),
1251
- __('TF', 'inbound-pro' ) => __('French Southern Territories', INBOUNDNOW_TEXT_DOMAIN),
1252
- __('GA', 'inbound-pro' ) => __('Gabon', INBOUNDNOW_TEXT_DOMAIN),
1253
- __('GM', 'inbound-pro' ) => __('Gambia', INBOUNDNOW_TEXT_DOMAIN),
1254
- __('GE', 'inbound-pro' ) => __('Georgia', INBOUNDNOW_TEXT_DOMAIN),
1255
- __('DE', 'inbound-pro' ) => __('Germany', INBOUNDNOW_TEXT_DOMAIN),
1256
- __('GH', 'inbound-pro' ) => __('Ghana', INBOUNDNOW_TEXT_DOMAIN),
1257
- __('GI', 'inbound-pro' ) => __('Gibraltar', INBOUNDNOW_TEXT_DOMAIN),
1258
- __('GR', 'inbound-pro' ) => __('Greece', INBOUNDNOW_TEXT_DOMAIN),
1259
- __('GL', 'inbound-pro' ) => __('Greenland', INBOUNDNOW_TEXT_DOMAIN),
1260
- __('GD', 'inbound-pro' ) => __('Grenada', INBOUNDNOW_TEXT_DOMAIN),
1261
- __('GP', 'inbound-pro' ) => __('Guadeloupe', INBOUNDNOW_TEXT_DOMAIN),
1262
- __('GU', 'inbound-pro' ) => __('Guam', INBOUNDNOW_TEXT_DOMAIN),
1263
- __('GT', 'inbound-pro' ) => __('Guatemala', INBOUNDNOW_TEXT_DOMAIN),
1264
- __('GG', 'inbound-pro' ) => __('Guernsey', INBOUNDNOW_TEXT_DOMAIN),
1265
- __('GN', 'inbound-pro' ) => __('Guinea', INBOUNDNOW_TEXT_DOMAIN),
1266
- __('GW', 'inbound-pro' ) => __('Guinea-Bissau', INBOUNDNOW_TEXT_DOMAIN),
1267
- __('GY', 'inbound-pro' ) => __('Guyana', INBOUNDNOW_TEXT_DOMAIN),
1268
- __('HT', 'inbound-pro' ) => __('Haiti', INBOUNDNOW_TEXT_DOMAIN),
1269
- __('HM', 'inbound-pro' ) => __('Heard and McDonald Islands', INBOUNDNOW_TEXT_DOMAIN),
1270
- __('HN', 'inbound-pro' ) => __('Honduras', INBOUNDNOW_TEXT_DOMAIN),
1271
- __('HK', 'inbound-pro' ) => __('Hong Kong', INBOUNDNOW_TEXT_DOMAIN),
1272
- __('HU', 'inbound-pro' ) => __('Hungary', INBOUNDNOW_TEXT_DOMAIN),
1273
- __('IS', 'inbound-pro' ) => __('Iceland', INBOUNDNOW_TEXT_DOMAIN),
1274
- __('IN', 'inbound-pro' ) => __('India', INBOUNDNOW_TEXT_DOMAIN),
1275
- __('ID', 'inbound-pro' ) => __('Indonesia', INBOUNDNOW_TEXT_DOMAIN),
1276
- __('IR', 'inbound-pro' ) => __('Iran', INBOUNDNOW_TEXT_DOMAIN),
1277
- __('IQ', 'inbound-pro' ) => __('Iraq', INBOUNDNOW_TEXT_DOMAIN),
1278
- __('IE', 'inbound-pro' ) => __('Ireland', INBOUNDNOW_TEXT_DOMAIN),
1279
- __('IM', 'inbound-pro' ) => __('Isle of Man', INBOUNDNOW_TEXT_DOMAIN),
1280
- __('IL', 'inbound-pro' ) => __('Israel', INBOUNDNOW_TEXT_DOMAIN),
1281
- __('IT', 'inbound-pro' ) => __('Italy', INBOUNDNOW_TEXT_DOMAIN),
1282
- __('JM', 'inbound-pro' ) => __('Jamaica', INBOUNDNOW_TEXT_DOMAIN),
1283
- __('JP', 'inbound-pro' ) => __('Japan', INBOUNDNOW_TEXT_DOMAIN),
1284
- __('JE', 'inbound-pro' ) => __('Jersey', INBOUNDNOW_TEXT_DOMAIN),
1285
- __('JO', 'inbound-pro' ) => __('Jordan', INBOUNDNOW_TEXT_DOMAIN),
1286
- __('KZ', 'inbound-pro' ) => __('Kazakhstan', INBOUNDNOW_TEXT_DOMAIN),
1287
- __('KE', 'inbound-pro' ) => __('Kenya', INBOUNDNOW_TEXT_DOMAIN),
1288
- __('KI', 'inbound-pro' ) => __('Kiribati', INBOUNDNOW_TEXT_DOMAIN),
1289
- __('KW', 'inbound-pro' ) => __('Kuwait', INBOUNDNOW_TEXT_DOMAIN),
1290
- __('KG', 'inbound-pro' ) => __('Kyrgyzstan', INBOUNDNOW_TEXT_DOMAIN),
1291
- __('LA', 'inbound-pro' ) => __('Lao People\'s Democratic Republic', INBOUNDNOW_TEXT_DOMAIN),
1292
- __('LV', 'inbound-pro' ) => __('Latvia', INBOUNDNOW_TEXT_DOMAIN),
1293
- __('LB', 'inbound-pro' ) => __('Lebanon', INBOUNDNOW_TEXT_DOMAIN),
1294
- __('LS', 'inbound-pro' ) => __('Lesotho', INBOUNDNOW_TEXT_DOMAIN),
1295
- __('LR', 'inbound-pro' ) => __('Liberia', INBOUNDNOW_TEXT_DOMAIN),
1296
- __('LY', 'inbound-pro' ) => __('Libya', INBOUNDNOW_TEXT_DOMAIN),
1297
- __('LI', 'inbound-pro' ) => __('Liechtenstein', INBOUNDNOW_TEXT_DOMAIN),
1298
- __('LT', 'inbound-pro' ) => __('Lithuania', INBOUNDNOW_TEXT_DOMAIN),
1299
- __('LU', 'inbound-pro' ) => __('Luxembourg', INBOUNDNOW_TEXT_DOMAIN),
1300
- __('MO', 'inbound-pro' ) => __('Macau', INBOUNDNOW_TEXT_DOMAIN),
1301
- __('MK', 'inbound-pro' ) => __('Macedonia', INBOUNDNOW_TEXT_DOMAIN),
1302
- __('MG', 'inbound-pro' ) => __('Madagascar', INBOUNDNOW_TEXT_DOMAIN),
1303
- __('MW', 'inbound-pro' ) => __('Malawi', INBOUNDNOW_TEXT_DOMAIN),
1304
- __('MY', 'inbound-pro' ) => __('Malaysia', INBOUNDNOW_TEXT_DOMAIN),
1305
- __('MV', 'inbound-pro' ) => __('Maldives', INBOUNDNOW_TEXT_DOMAIN),
1306
- __('ML', 'inbound-pro' ) => __('Mali', INBOUNDNOW_TEXT_DOMAIN),
1307
- __('MT', 'inbound-pro' ) => __('Malta', INBOUNDNOW_TEXT_DOMAIN),
1308
- __('MH', 'inbound-pro' ) => __('Marshall Islands', INBOUNDNOW_TEXT_DOMAIN),
1309
- __('MQ', 'inbound-pro' ) => __('Martinique', INBOUNDNOW_TEXT_DOMAIN),
1310
- __('MR', 'inbound-pro' ) => __('Mauritania', INBOUNDNOW_TEXT_DOMAIN),
1311
- __('MU', 'inbound-pro' ) => __('Mauritius', INBOUNDNOW_TEXT_DOMAIN),
1312
- __('YT', 'inbound-pro' ) => __('Mayotte', INBOUNDNOW_TEXT_DOMAIN),
1313
- __('MX', 'inbound-pro' ) => __('Mexico', INBOUNDNOW_TEXT_DOMAIN),
1314
- __('FM', 'inbound-pro' ) => __('Micronesia, Federated States of', INBOUNDNOW_TEXT_DOMAIN),
1315
- __('MD', 'inbound-pro' ) => __('Moldova', INBOUNDNOW_TEXT_DOMAIN),
1316
- __('MC', 'inbound-pro' ) => __('Monaco', INBOUNDNOW_TEXT_DOMAIN),
1317
- __('MN', 'inbound-pro' ) => __('Mongolia', INBOUNDNOW_TEXT_DOMAIN),
1318
- __('ME', 'inbound-pro' ) => __('Montenegro', INBOUNDNOW_TEXT_DOMAIN),
1319
- __('MS', 'inbound-pro' ) => __('Montserrat', INBOUNDNOW_TEXT_DOMAIN),
1320
- __('MA', 'inbound-pro' ) => __('Morocco', INBOUNDNOW_TEXT_DOMAIN),
1321
- __('MZ', 'inbound-pro' ) => __('Mozambique', INBOUNDNOW_TEXT_DOMAIN),
1322
- __('MM', 'inbound-pro' ) => __('Myanmar', INBOUNDNOW_TEXT_DOMAIN),
1323
- __('NA', 'inbound-pro' ) => __('Namibia', INBOUNDNOW_TEXT_DOMAIN),
1324
- __('NR', 'inbound-pro' ) => __('Nauru', INBOUNDNOW_TEXT_DOMAIN),
1325
- __('NP', 'inbound-pro' ) => __('Nepal', INBOUNDNOW_TEXT_DOMAIN),
1326
- __('NC', 'inbound-pro' ) => __('New Caledonia', INBOUNDNOW_TEXT_DOMAIN),
1327
- __('NZ', 'inbound-pro' ) => __('New Zealand', INBOUNDNOW_TEXT_DOMAIN),
1328
- __('NI', 'inbound-pro' ) => __('Nicaragua', INBOUNDNOW_TEXT_DOMAIN),
1329
- __('NE', 'inbound-pro' ) => __('Niger', INBOUNDNOW_TEXT_DOMAIN),
1330
- __('NG', 'inbound-pro' ) => __('Nigeria', INBOUNDNOW_TEXT_DOMAIN),
1331
- __('NU', 'inbound-pro' ) => __('Niue', INBOUNDNOW_TEXT_DOMAIN),
1332
- __('NF', 'inbound-pro' ) => __('Norfolk Island', INBOUNDNOW_TEXT_DOMAIN),
1333
- __('KP', 'inbound-pro' ) => __('North Korea', INBOUNDNOW_TEXT_DOMAIN),
1334
- __('MP', 'inbound-pro' ) => __('Northern Mariana Islands', INBOUNDNOW_TEXT_DOMAIN),
1335
- __('NO', 'inbound-pro' ) => __('Norway', INBOUNDNOW_TEXT_DOMAIN),
1336
- __('OM', 'inbound-pro' ) => __('Oman', INBOUNDNOW_TEXT_DOMAIN),
1337
- __('PK', 'inbound-pro' ) => __('Pakistan', INBOUNDNOW_TEXT_DOMAIN),
1338
- __('PW', 'inbound-pro' ) => __('Palau', INBOUNDNOW_TEXT_DOMAIN),
1339
- __('PS', 'inbound-pro' ) => __('Palestinian Territory, Occupied', INBOUNDNOW_TEXT_DOMAIN),
1340
- __('PA', 'inbound-pro' ) => __('Panama', INBOUNDNOW_TEXT_DOMAIN),
1341
- __('PG', 'inbound-pro' ) => __('Papua New Guinea', INBOUNDNOW_TEXT_DOMAIN),
1342
- __('PY', 'inbound-pro' ) => __('Paraguay', INBOUNDNOW_TEXT_DOMAIN),
1343
- __('PE', 'inbound-pro' ) => __('Peru', INBOUNDNOW_TEXT_DOMAIN),
1344
- __('PH', 'inbound-pro' ) => __('Philippines', INBOUNDNOW_TEXT_DOMAIN),
1345
- __('PN', 'inbound-pro' ) => __('Pitcairn', INBOUNDNOW_TEXT_DOMAIN),
1346
- __('PL', 'inbound-pro' ) => __('Poland', INBOUNDNOW_TEXT_DOMAIN),
1347
- __('PT', 'inbound-pro' ) => __('Portugal', INBOUNDNOW_TEXT_DOMAIN),
1348
- __('PR', 'inbound-pro' ) => __('Puerto Rico', INBOUNDNOW_TEXT_DOMAIN),
1349
- __('QA', 'inbound-pro' ) => __('Qatar', INBOUNDNOW_TEXT_DOMAIN),
1350
- __('RE', 'inbound-pro' ) => __('Reunion', INBOUNDNOW_TEXT_DOMAIN),
1351
- __('RO', 'inbound-pro' ) => __('Romania', INBOUNDNOW_TEXT_DOMAIN),
1352
- __('RU', 'inbound-pro' ) => __('Russian Federation', INBOUNDNOW_TEXT_DOMAIN),
1353
- __('RW', 'inbound-pro' ) => __('Rwanda', INBOUNDNOW_TEXT_DOMAIN),
1354
- __('BL', 'inbound-pro' ) => __('Saint Barthelemy', INBOUNDNOW_TEXT_DOMAIN),
1355
- __('SH', 'inbound-pro' ) => __('Saint Helena', INBOUNDNOW_TEXT_DOMAIN),
1356
- __('KN', 'inbound-pro' ) => __('Saint Kitts and Nevis', INBOUNDNOW_TEXT_DOMAIN),
1357
- __('LC', 'inbound-pro' ) => __('Saint Lucia', INBOUNDNOW_TEXT_DOMAIN),
1358
- __('VC', 'inbound-pro' ) => __('Saint Vincent and the Grenadines', INBOUNDNOW_TEXT_DOMAIN),
1359
- __('MF', 'inbound-pro' ) => __('Saint-Martin (France)', INBOUNDNOW_TEXT_DOMAIN),
1360
- __('SX', 'inbound-pro' ) => __('Saint-Martin (Pays-Bas)', INBOUNDNOW_TEXT_DOMAIN),
1361
- __('WS', 'inbound-pro' ) => __('Samoa', INBOUNDNOW_TEXT_DOMAIN),
1362
- __('SM', 'inbound-pro' ) => __('San Marino', INBOUNDNOW_TEXT_DOMAIN),
1363
- __('ST', 'inbound-pro' ) => __('Sao Tome and Principe', INBOUNDNOW_TEXT_DOMAIN),
1364
- __('SA', 'inbound-pro' ) => __('Saudi Arabia', INBOUNDNOW_TEXT_DOMAIN),
1365
- __('SN', 'inbound-pro' ) => __('Senegal', INBOUNDNOW_TEXT_DOMAIN),
1366
- __('RS', 'inbound-pro' ) => __('Serbia', INBOUNDNOW_TEXT_DOMAIN),
1367
- __('SC', 'inbound-pro' ) => __('Seychelles', INBOUNDNOW_TEXT_DOMAIN),
1368
- __('SL', 'inbound-pro' ) => __('Sierra Leone', INBOUNDNOW_TEXT_DOMAIN),
1369
- __('SG', 'inbound-pro' ) => __('Singapore', INBOUNDNOW_TEXT_DOMAIN),
1370
- __('SK', 'inbound-pro' ) => __('Slovakia (Slovak Republic)', INBOUNDNOW_TEXT_DOMAIN),
1371
- __('SI', 'inbound-pro' ) => __('Slovenia', INBOUNDNOW_TEXT_DOMAIN),
1372
- __('SB', 'inbound-pro' ) => __('Solomon Islands', INBOUNDNOW_TEXT_DOMAIN),
1373
- __('SO', 'inbound-pro' ) => __('Somalia', INBOUNDNOW_TEXT_DOMAIN),
1374
- __('ZA', 'inbound-pro' ) => __('South Africa', INBOUNDNOW_TEXT_DOMAIN),
1375
- __('GS', 'inbound-pro' ) => __('South Georgia and the South Sandwich Islands', INBOUNDNOW_TEXT_DOMAIN),
1376
- __('KR', 'inbound-pro' ) => __('South Korea', INBOUNDNOW_TEXT_DOMAIN),
1377
- __('SS', 'inbound-pro' ) => __('South Sudan', INBOUNDNOW_TEXT_DOMAIN),
1378
- __('ES', 'inbound-pro' ) => __('Spain', INBOUNDNOW_TEXT_DOMAIN),
1379
- __('LK', 'inbound-pro' ) => __('Sri Lanka', INBOUNDNOW_TEXT_DOMAIN),
1380
- __('PM', 'inbound-pro' ) => __('St. Pierre and Miquelon', INBOUNDNOW_TEXT_DOMAIN),
1381
- __('SD', 'inbound-pro' ) => __('Sudan', INBOUNDNOW_TEXT_DOMAIN),
1382
- __('SR', 'inbound-pro' ) => __('Suriname', INBOUNDNOW_TEXT_DOMAIN),
1383
- __('SJ', 'inbound-pro' ) => __('Svalbard and Jan Mayen Islands', INBOUNDNOW_TEXT_DOMAIN),
1384
- __('SZ', 'inbound-pro' ) => __('Swaziland', INBOUNDNOW_TEXT_DOMAIN),
1385
- __('SE', 'inbound-pro' ) => __('Sweden', INBOUNDNOW_TEXT_DOMAIN),
1386
- __('CH', 'inbound-pro' ) => __('Switzerland', INBOUNDNOW_TEXT_DOMAIN),
1387
- __('SY', 'inbound-pro' ) => __('Syria', INBOUNDNOW_TEXT_DOMAIN),
1388
- __('TW', 'inbound-pro' ) => __('Taiwan', INBOUNDNOW_TEXT_DOMAIN),
1389
- __('TJ', 'inbound-pro' ) => __('Tajikistan', INBOUNDNOW_TEXT_DOMAIN),
1390
- __('TZ', 'inbound-pro' ) => __('Tanzania', INBOUNDNOW_TEXT_DOMAIN),
1391
- __('TH', 'inbound-pro' ) => __('Thailand', INBOUNDNOW_TEXT_DOMAIN),
1392
- __('NL', 'inbound-pro' ) => __('The Netherlands', INBOUNDNOW_TEXT_DOMAIN),
1393
- __('TL', 'inbound-pro' ) => __('Timor-Leste', INBOUNDNOW_TEXT_DOMAIN),
1394
- __('TG', 'inbound-pro' ) => __('Togo', INBOUNDNOW_TEXT_DOMAIN),
1395
- __('TK', 'inbound-pro' ) => __('Tokelau', INBOUNDNOW_TEXT_DOMAIN),
1396
- __('TO', 'inbound-pro' ) => __('Tonga', INBOUNDNOW_TEXT_DOMAIN),
1397
- __('TT', 'inbound-pro' ) => __('Trinidad and Tobago', INBOUNDNOW_TEXT_DOMAIN),
1398
- __('TN', 'inbound-pro' ) => __('Tunisia', INBOUNDNOW_TEXT_DOMAIN),
1399
- __('TR', 'inbound-pro' ) => __('Turkey', INBOUNDNOW_TEXT_DOMAIN),
1400
- __('TM', 'inbound-pro' ) => __('Turkmenistan', INBOUNDNOW_TEXT_DOMAIN),
1401
- __('TC', 'inbound-pro' ) => __('Turks and Caicos Islands', INBOUNDNOW_TEXT_DOMAIN),
1402
- __('TV', 'inbound-pro' ) => __('Tuvalu', INBOUNDNOW_TEXT_DOMAIN),
1403
- __('UG', 'inbound-pro' ) => __('Uganda', INBOUNDNOW_TEXT_DOMAIN),
1404
- __('UA', 'inbound-pro' ) => __('Ukraine', INBOUNDNOW_TEXT_DOMAIN),
1405
- __('AE', 'inbound-pro' ) => __('United Arab Emirates', INBOUNDNOW_TEXT_DOMAIN),
1406
- __('GB', 'inbound-pro' ) => __('United Kingdom', INBOUNDNOW_TEXT_DOMAIN),
1407
- __('US', 'inbound-pro' ) => __('United States', INBOUNDNOW_TEXT_DOMAIN),
1408
- __('UM', 'inbound-pro' ) => __('United States Minor Outlying Islands', INBOUNDNOW_TEXT_DOMAIN),
1409
- __('UY', 'inbound-pro' ) => __('Uruguay', INBOUNDNOW_TEXT_DOMAIN),
1410
- __('UZ', 'inbound-pro' ) => __('Uzbekistan', INBOUNDNOW_TEXT_DOMAIN),
1411
- __('VU', 'inbound-pro' ) => __('Vanuatu', INBOUNDNOW_TEXT_DOMAIN),
1412
- __('VA', 'inbound-pro' ) => __('Vatican', INBOUNDNOW_TEXT_DOMAIN),
1413
- __('VE', 'inbound-pro' ) => __('Venezuela', INBOUNDNOW_TEXT_DOMAIN),
1414
- __('VN', 'inbound-pro' ) => __('Vietnam', INBOUNDNOW_TEXT_DOMAIN),
1415
- __('VG', 'inbound-pro' ) => __('Virgin Islands (British)', INBOUNDNOW_TEXT_DOMAIN),
1416
- __('VI', 'inbound-pro' ) => __('Virgin Islands (U.S.)', INBOUNDNOW_TEXT_DOMAIN),
1417
- __('WF', 'inbound-pro' ) => __('Wallis and Futuna Islands', INBOUNDNOW_TEXT_DOMAIN),
1418
- __('EH', 'inbound-pro' ) => __('Western Sahara', INBOUNDNOW_TEXT_DOMAIN),
1419
- __('YE', 'inbound-pro' ) => __('Yemen', INBOUNDNOW_TEXT_DOMAIN),
1420
- __('ZM', 'inbound-pro' ) => __('Zambia', INBOUNDNOW_TEXT_DOMAIN),
1421
- __('ZW', 'inbound-pro' ) => __('Zimbabwe', INBOUNDNOW_TEXT_DOMAIN)
1422
  );
1423
  }
1424
 
198
  $dynamic_value = (isset($_GET[$hidden_param])) ? $_GET[$hidden_param] : '';
199
  $dynamic_value = (!$dynamic_value && isset($_COOKIE[$hidden_param])) ? $_COOKIE[$hidden_param] : $dynamic_value;
200
 
201
+ if ($type != 'honeypot') {
202
+ $form .= '<div class="inbound-field ' . $div_chk_req . $main_layout . ' label-' . $form_labels_class . ' ' . $form_labels_class . ' ' . $field_container_class . '">';
203
+ }
204
  if ($show_labels && $form_labels != "bottom" || $type === "radio") {
205
  $form .= '<label for="' . $field_name . '" class="inbound-label ' . $formatted_label . ' ' . $form_labels_class . ' inbound-input-' . $type . '" style="' . $font_size . '">' . html_entity_decode($matches[3][$i]['label']) . $req_label . '</label>';
206
  }
369
  /*wp_editor(); /* call wp editor */
370
  } else if ($type === 'honeypot') {
371
 
372
+ $form .= '<input style="display:none" name="phone_xoxo" class="phone_xoxo" value="">';
373
 
374
  } else if ($type === 'datetime-local') {
375
 
441
  if ($description_block != "" && $type != 'hidden') {
442
  $form .= "<div class='inbound-description'>" . $description_block . "</div>";
443
  }
444
+ if ($type != 'honeypot') {
445
+ $form .= '</div>';
446
+ }
447
  }
448
  /* End Loop */
449
 
559
  if( jQuery(\'.checkbox-required\')[0] && jQuery(\'.checkbox-required input[type=checkbox]:checked\').length==0)
560
  {
561
  jQuery(\'.checkbox-required input[type=checkbox]:first\').focus();
562
+ alert("' . __('Oops! Looks like you have not filled out all of the required fields!', 'inbound-pro') . '");
563
  e.preventDefault();
564
  e.stopImmediatePropagation();
565
  }
566
  jQuery(this).find("input").each(function(){
567
  if(!jQuery(this).prop("required")){
568
  } else if (!jQuery(this).val()) {
569
+ alert("' . __('Oops! Looks like you have not filled out all of the required fields!', 'inbound-pro') . '");
570
 
571
  e.preventDefault();
572
  e.stopImmediatePropagation();
685
 
686
  if (isset($_POST['inbound_submitted']) && $_POST['inbound_submitted'] === '1') {
687
  $form_post_data = array();
688
+ if (isset($_POST['phone_xoxo']) && $_POST['phone_xoxo'] != "") {
689
  wp_die($message = 'Die You spam bastard');
690
  return false;
691
  }
913
 
914
  /* add default subject if empty */
915
  if (!$confirm_subject) {
916
+ $confirm_subject = __('Thank you!', 'inbound-pro');
917
  }
918
 
919
  $confirm_email_message = $Inbound_Templating_Engine->replace_tokens($confirm_email_message, array($form_post_data, $form_meta_data));
999
  <td align="left" width="600" style="-webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; color: #fff; font-weight: bold; text-decoration: none; font-family: Helvetica, Arial, sans-serif; display: block;">
1000
  <h1 style="font-size: 30px; display: inline-block;margin-top: 15px;margin-left: 10px; margin-bottom: 0px; letter-spacing: 0px; word-spacing: 0px; font-weight: 300;">' . __('Lead Information', 'inbound-pro') . '</h1>
1001
  <div style="float:right; margin-top: 5px; margin-right: 15px;"><!--[if mso]>
1002
+ <v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{admin-url}}edit.php?post_type=wp-lead&s={{lead-email-address}}" style="height:40px;v-text-anchor:middle;width:130px;font-size:18px;" arcsize="10%" stroke="f" fillcolor="#ffffff">
1003
  <w:anchorlock/>
1004
  <center>
1005
  <![endif]-->
1006
+ <a href="{{admin-url}}edit.php?post_type=wp-lead&s={{lead-email-address}}"
1007
  style="background-color:#ffffff;border-radius:4px;color:#3A9FD1;display:inline-block;font-family:sans-serif;font-size:18px;font-weight:bold;line-height:40px;text-align:center;text-decoration:none;width:130px;-webkit-text-size-adjust:none;">' . __('View Lead', 'inbound-pro') . '</a>
1008
  <!--[if mso]>
1009
  </center>
1029
  <tbody valign="top">
1030
  <tr valign="top" border="0">
1031
  <td width="160" height="50" align="center" valign="top" border="0">
1032
+ <h3 style="color:#2e2e2e;font-size:15px;"><a style="text-decoration: none;" href="{{admin-url}}edit.php?post_type=wp-lead&s={{lead-email-address}}&tab=tabs-wpleads_lead_tab_conversions">' . __('View Lead Activity', 'inbound-pro') . '</a></h3>
1033
  </td>
1034
 
1035
  <td width="160" height="50" align="center" valign="top" border="0">
1036
+ <h3 style="color:#2e2e2e;font-size:15px;"><a style="text-decoration: none;" href="{{admin-url}}edit.php?post_type=wp-lead&s={{lead-email-address}}&scroll-to=wplead_metabox_conversion">' . __('Pages Viewed', 'inbound-pro') . '</a></h3>
1037
  </td>
1038
 
1039
  <td width="160" height="50" align="center" valign="top" border="0">
1040
+ <h3 style="color:#2e2e2e;font-size:15px;"><a style="text-decoration: none;" href="{{admin-url}}edit.php?post_type=wp-lead&s={{lead-email-address}}&tab=tabs-wpleads_lead_tab_raw_form_data">' . __('View Form Data', 'inbound-pro') . '</a></h3>
1041
  </td>
1042
  </tr>
1043
  </tbody></table>
1047
  <tbody><tr>
1048
  <td align="center" width="250" height="30" cellpadding="5">
1049
  <div><!--[if mso]>
1050
+ <v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{admin-url}}edit.php?post_type=wp-lead&s={{lead-email-address}}" style="height:40px;v-text-anchor:middle;width:250px;" arcsize="10%" strokecolor="#7490af" fillcolor="#3A9FD1">
1051
  <w:anchorlock/>
1052
  <center style="color:#ffffff;font-family:sans-serif;font-size:13px;font-weight:bold;">' . __('View Lead', 'inbound-pro') . '</center>
1053
  </v:roundrect>
1054
+ <![endif]--><a href="{{admin-url}}edit.php?post_type=wp-lead&s={{lead-email-address}}"
1055
  style="background-color:#3A9FD1;border:1px solid #7490af;border-radius:4px;color:#ffffff;display:inline-block;font-family:sans-serif;font-size:18px;font-weight:bold;line-height:40px;text-align:center;text-decoration:none;width:250px;-webkit-text-size-adjust:none;mso-hide:all;" title="' . __('View the full Lead details in WordPress', 'inbound-pro') . '">' . __('View Full Lead Details', 'inbound-pro') . '</a>
1056
  </div>
1057
  </td>
1130
 
1131
  case 'months':
1132
  return array(
1133
+ '01' => __('Jan', 'inbound-pro'),
1134
+ '02' => __('Feb', 'inbound-pro'),
1135
+ '03' => __('Mar', 'inbound-pro'),
1136
+ '04' => __('Apr', 'inbound-pro'),
1137
+ '05' => __('May', 'inbound-pro'),
1138
+ '06' => __('Jun', 'inbound-pro'),
1139
+ '07' => __('Jul', 'inbound-pro'),
1140
+ '08' => __('Aug', 'inbound-pro'),
1141
+ '09' => __('Sep', 'inbound-pro'),
1142
+ '10' => __('Oct', 'inbound-pro'),
1143
+ '11' => __('Nov', 'inbound-pro'),
1144
+ '12' => __('Dec', 'inbound-pro')
1145
  );
1146
  break;
1147
  case 'days' :
1171
  */
1172
  public static function get_countries_array() {
1173
  return array(
1174
+ __('AF', 'inbound-pro' ) => __('Afghanistan', 'inbound-pro'),
1175
+ __('AX', 'inbound-pro' ) => __('Aland Islands', 'inbound-pro'),
1176
+ __('AL', 'inbound-pro' ) => __('Albania', 'inbound-pro'),
1177
+ __('DZ', 'inbound-pro' ) => __('Algeria', 'inbound-pro'),
1178
+ __('AS', 'inbound-pro' ) => __('American Samoa', 'inbound-pro'),
1179
+ __('AD', 'inbound-pro' ) => __('Andorra', 'inbound-pro'),
1180
+ __('AO', 'inbound-pro' ) => __('Angola', 'inbound-pro'),
1181
+ __('AI', 'inbound-pro' ) => __('Anguilla', 'inbound-pro'),
1182
+ __('AQ', 'inbound-pro' ) => __('Antarctica', 'inbound-pro'),
1183
+ __('AG', 'inbound-pro' ) => __('Antigua and Barbuda', 'inbound-pro'),
1184
+ __('AR', 'inbound-pro' ) => __('Argentina', 'inbound-pro'),
1185
+ __('AM', 'inbound-pro' ) => __('Armenia', 'inbound-pro'),
1186
+ __('AW', 'inbound-pro' ) => __('Aruba', 'inbound-pro'),
1187
+ __('AU', 'inbound-pro' ) => __('Australia', 'inbound-pro'),
1188
+ __('AT', 'inbound-pro' ) => __('Austria', 'inbound-pro'),
1189
+ __('AZ', 'inbound-pro' ) => __('Azerbaijan', 'inbound-pro'),
1190
+ __('BS', 'inbound-pro' ) => __('Bahamas', 'inbound-pro'),
1191
+ __('BH', 'inbound-pro' ) => __('Bahrain', 'inbound-pro'),
1192
+ __('BD', 'inbound-pro' ) => __('Bangladesh', 'inbound-pro'),
1193
+ __('BB', 'inbound-pro' ) => __('Barbados', 'inbound-pro'),
1194
+ __('BY', 'inbound-pro' ) => __('Belarus', 'inbound-pro'),
1195
+ __('BE', 'inbound-pro' ) => __('Belgium', 'inbound-pro'),
1196
+ __('BZ', 'inbound-pro' ) => __('Belize', 'inbound-pro'),
1197
+ __('BJ', 'inbound-pro' ) => __('Benin', 'inbound-pro'),
1198
+ __('BM', 'inbound-pro' ) => __('Bermuda', 'inbound-pro'),
1199
+ __('BT', 'inbound-pro' ) => __('Bhutan', 'inbound-pro'),
1200
+ __('BO', 'inbound-pro' ) => __('Bolivia', 'inbound-pro'),
1201
+ __('BA', 'inbound-pro' ) => __('Bosnia and Herzegovina', 'inbound-pro'),
1202
+ __('BW', 'inbound-pro' ) => __('Botswana', 'inbound-pro'),
1203
+ __('BV', 'inbound-pro' ) => __('Bouvet Island', 'inbound-pro'),
1204
+ __('BR', 'inbound-pro' ) => __('Brazil', 'inbound-pro'),
1205
+ __('IO', 'inbound-pro' ) => __('British Indian Ocean Territory', 'inbound-pro'),
1206
+ __('BN', 'inbound-pro' ) => __('Brunei Darussalam', 'inbound-pro'),
1207
+ __('BG', 'inbound-pro' ) => __('Bulgaria', 'inbound-pro'),
1208
+ __('BF', 'inbound-pro' ) => __('Burkina Faso', 'inbound-pro'),
1209
+ __('BI', 'inbound-pro' ) => __('Burundi', 'inbound-pro'),
1210
+ __('KH', 'inbound-pro' ) => __('Cambodia', 'inbound-pro'),
1211
+ __('CM', 'inbound-pro' ) => __('Cameroon', 'inbound-pro'),
1212
+ __('CA', 'inbound-pro' ) => __('Canada', 'inbound-pro'),
1213
+ __('CV', 'inbound-pro' ) => __('Cape Verde', 'inbound-pro'),
1214
+ __('BQ', 'inbound-pro' ) => __('Caribbean Netherlands ', 'inbound-pro'),
1215
+ __('KY', 'inbound-pro' ) => __('Cayman Islands', 'inbound-pro'),
1216
+ __('CF', 'inbound-pro' ) => __('Central African Republic', 'inbound-pro'),
1217
+ __('TD', 'inbound-pro' ) => __('Chad', 'inbound-pro'),
1218
+ __('CL', 'inbound-pro' ) => __('Chile', 'inbound-pro'),
1219
+ __('CN', 'inbound-pro' ) => __('China', 'inbound-pro'),
1220
+ __('CX', 'inbound-pro' ) => __('Christmas Island', 'inbound-pro'),
1221
+ __('CC', 'inbound-pro' ) => __('Cocos (Keeling) Islands', 'inbound-pro'),
1222
+ __('CO', 'inbound-pro' ) => __('Colombia', 'inbound-pro'),
1223
+ __('KM', 'inbound-pro' ) => __('Comoros', 'inbound-pro'),
1224
+ __('CG', 'inbound-pro' ) => __('Congo', 'inbound-pro'),
1225
+ __('CD', 'inbound-pro' ) => __('Congo, Democratic Republic of', 'inbound-pro'),
1226
+ __('CK', 'inbound-pro' ) => __('Cook Islands', 'inbound-pro'),
1227
+ __('CR', 'inbound-pro' ) => __('Costa Rica', 'inbound-pro'),
1228
+ __('CI', 'inbound-pro' ) => __('Cote d\'Ivoire', 'inbound-pro'),
1229
+ __('HR', 'inbound-pro' ) => __('Croatia', 'inbound-pro'),
1230
+ __('CU', 'inbound-pro' ) => __('Cuba', 'inbound-pro'),
1231
+ __('CW', 'inbound-pro' ) => __('Curacao', 'inbound-pro'),
1232
+ __('CY', 'inbound-pro' ) => __('Cyprus', 'inbound-pro'),
1233
+ __('CZ', 'inbound-pro' ) => __('Czech Republic', 'inbound-pro'),
1234
+ __('DK', 'inbound-pro' ) => __('Denmark', 'inbound-pro'),
1235
+ __('DJ', 'inbound-pro' ) => __('Djibouti', 'inbound-pro'),
1236
+ __('DM', 'inbound-pro' ) => __('Dominica', 'inbound-pro'),
1237
+ __('DO', 'inbound-pro' ) => __('Dominican Republic', 'inbound-pro'),
1238
+ __('EC', 'inbound-pro' ) => __('Ecuador', 'inbound-pro'),
1239
+ __('EG', 'inbound-pro' ) => __('Egypt', 'inbound-pro'),
1240
+ __('SV', 'inbound-pro' ) => __('El Salvador', 'inbound-pro'),
1241
+ __('GQ', 'inbound-pro' ) => __('Equatorial Guinea', 'inbound-pro'),
1242
+ __('ER', 'inbound-pro' ) => __('Eritrea', 'inbound-pro'),
1243
+ __('EE', 'inbound-pro' ) => __('Estonia', 'inbound-pro'),
1244
+ __('ET', 'inbound-pro' ) => __('Ethiopia', 'inbound-pro'),
1245
+ __('FK', 'inbound-pro' ) => __('Falkland Islands', 'inbound-pro'),
1246
+ __('FO', 'inbound-pro' ) => __('Faroe Islands', 'inbound-pro'),
1247
+ __('FJ', 'inbound-pro' ) => __('Fiji', 'inbound-pro'),
1248
+ __('FI', 'inbound-pro' ) => __('Finland', 'inbound-pro'),
1249
+ __('FR', 'inbound-pro' ) => __('France', 'inbound-pro'),
1250
+ __('GF', 'inbound-pro' ) => __('French Guiana', 'inbound-pro'),
1251
+ __('PF', 'inbound-pro' ) => __('French Polynesia', 'inbound-pro'),
1252
+ __('TF', 'inbound-pro' ) => __('French Southern Territories', 'inbound-pro'),
1253
+ __('GA', 'inbound-pro' ) => __('Gabon', 'inbound-pro'),
1254
+ __('GM', 'inbound-pro' ) => __('Gambia', 'inbound-pro'),
1255
+ __('GE', 'inbound-pro' ) => __('Georgia', 'inbound-pro'),
1256
+ __('DE', 'inbound-pro' ) => __('Germany', 'inbound-pro'),
1257
+ __('GH', 'inbound-pro' ) => __('Ghana', 'inbound-pro'),
1258
+ __('GI', 'inbound-pro' ) => __('Gibraltar', 'inbound-pro'),
1259
+ __('GR', 'inbound-pro' ) => __('Greece', 'inbound-pro'),
1260
+ __('GL', 'inbound-pro' ) => __('Greenland', 'inbound-pro'),
1261
+ __('GD', 'inbound-pro' ) => __('Grenada', 'inbound-pro'),
1262
+ __('GP', 'inbound-pro' ) => __('Guadeloupe', 'inbound-pro'),
1263
+ __('GU', 'inbound-pro' ) => __('Guam', 'inbound-pro'),
1264
+ __('GT', 'inbound-pro' ) => __('Guatemala', 'inbound-pro'),
1265
+ __('GG', 'inbound-pro' ) => __('Guernsey', 'inbound-pro'),
1266
+ __('GN', 'inbound-pro' ) => __('Guinea', 'inbound-pro'),
1267
+ __('GW', 'inbound-pro' ) => __('Guinea-Bissau', 'inbound-pro'),
1268
+ __('GY', 'inbound-pro' ) => __('Guyana', 'inbound-pro'),
1269
+ __('HT', 'inbound-pro' ) => __('Haiti', 'inbound-pro'),
1270
+ __('HM', 'inbound-pro' ) => __('Heard and McDonald Islands', 'inbound-pro'),
1271
+ __('HN', 'inbound-pro' ) => __('Honduras', 'inbound-pro'),
1272
+ __('HK', 'inbound-pro' ) => __('Hong Kong', 'inbound-pro'),
1273
+ __('HU', 'inbound-pro' ) => __('Hungary', 'inbound-pro'),
1274
+ __('IS', 'inbound-pro' ) => __('Iceland', 'inbound-pro'),
1275
+ __('IN', 'inbound-pro' ) => __('India', 'inbound-pro'),
1276
+ __('ID', 'inbound-pro' ) => __('Indonesia', 'inbound-pro'),
1277
+ __('IR', 'inbound-pro' ) => __('Iran', 'inbound-pro'),
1278
+ __('IQ', 'inbound-pro' ) => __('Iraq', 'inbound-pro'),
1279
+ __('IE', 'inbound-pro' ) => __('Ireland', 'inbound-pro'),
1280
+ __('IM', 'inbound-pro' ) => __('Isle of Man', 'inbound-pro'),
1281
+ __('IL', 'inbound-pro' ) => __('Israel', 'inbound-pro'),
1282
+ __('IT', 'inbound-pro' ) => __('Italy', 'inbound-pro'),
1283
+ __('JM', 'inbound-pro' ) => __('Jamaica', 'inbound-pro'),
1284
+ __('JP', 'inbound-pro' ) => __('Japan', 'inbound-pro'),
1285
+ __('JE', 'inbound-pro' ) => __('Jersey', 'inbound-pro'),
1286
+ __('JO', 'inbound-pro' ) => __('Jordan', 'inbound-pro'),
1287
+ __('KZ', 'inbound-pro' ) => __('Kazakhstan', 'inbound-pro'),
1288
+ __('KE', 'inbound-pro' ) => __('Kenya', 'inbound-pro'),
1289
+ __('KI', 'inbound-pro' ) => __('Kiribati', 'inbound-pro'),
1290
+ __('KW', 'inbound-pro' ) => __('Kuwait', 'inbound-pro'),
1291
+ __('KG', 'inbound-pro' ) => __('Kyrgyzstan', 'inbound-pro'),
1292
+ __('LA', 'inbound-pro' ) => __('Lao People\'s Democratic Republic', 'inbound-pro'),
1293
+ __('LV', 'inbound-pro' ) => __('Latvia', 'inbound-pro'),
1294
+ __('LB', 'inbound-pro' ) => __('Lebanon', 'inbound-pro'),
1295
+ __('LS', 'inbound-pro' ) => __('Lesotho', 'inbound-pro'),
1296
+ __('LR', 'inbound-pro' ) => __('Liberia', 'inbound-pro'),
1297
+ __('LY', 'inbound-pro' ) => __('Libya', 'inbound-pro'),
1298
+ __('LI', 'inbound-pro' ) => __('Liechtenstein', 'inbound-pro'),
1299
+ __('LT', 'inbound-pro' ) => __('Lithuania', 'inbound-pro'),
1300
+ __('LU', 'inbound-pro' ) => __('Luxembourg', 'inbound-pro'),
1301
+ __('MO', 'inbound-pro' ) => __('Macau', 'inbound-pro'),
1302
+ __('MK', 'inbound-pro' ) => __('Macedonia', 'inbound-pro'),
1303
+ __('MG', 'inbound-pro' ) => __('Madagascar', 'inbound-pro'),
1304
+ __('MW', 'inbound-pro' ) => __('Malawi', 'inbound-pro'),
1305
+ __('MY', 'inbound-pro' ) => __('Malaysia', 'inbound-pro'),
1306
+ __('MV', 'inbound-pro' ) => __('Maldives', 'inbound-pro'),
1307
+ __('ML', 'inbound-pro' ) => __('Mali', 'inbound-pro'),
1308
+ __('MT', 'inbound-pro' ) => __('Malta', 'inbound-pro'),
1309
+ __('MH', 'inbound-pro' ) => __('Marshall Islands', 'inbound-pro'),
1310
+ __('MQ', 'inbound-pro' ) => __('Martinique', 'inbound-pro'),
1311
+ __('MR', 'inbound-pro' ) => __('Mauritania', 'inbound-pro'),
1312
+ __('MU', 'inbound-pro' ) => __('Mauritius', 'inbound-pro'),
1313
+ __('YT', 'inbound-pro' ) => __('Mayotte', 'inbound-pro'),
1314
+ __('MX', 'inbound-pro' ) => __('Mexico', 'inbound-pro'),
1315
+ __('FM', 'inbound-pro' ) => __('Micronesia, Federated States of', 'inbound-pro'),
1316
+ __('MD', 'inbound-pro' ) => __('Moldova', 'inbound-pro'),
1317
+ __('MC', 'inbound-pro' ) => __('Monaco', 'inbound-pro'),
1318
+ __('MN', 'inbound-pro' ) => __('Mongolia', 'inbound-pro'),
1319
+ __('ME', 'inbound-pro' ) => __('Montenegro', 'inbound-pro'),
1320
+ __('MS', 'inbound-pro' ) => __('Montserrat', 'inbound-pro'),
1321
+ __('MA', 'inbound-pro' ) => __('Morocco', 'inbound-pro'),
1322
+ __('MZ', 'inbound-pro' ) => __('Mozambique', 'inbound-pro'),
1323
+ __('MM', 'inbound-pro' ) => __('Myanmar', 'inbound-pro'),
1324
+ __('NA', 'inbound-pro' ) => __('Namibia', 'inbound-pro'),
1325
+ __('NR', 'inbound-pro' ) => __('Nauru', 'inbound-pro'),
1326
+ __('NP', 'inbound-pro' ) => __('Nepal', 'inbound-pro'),
1327
+ __('NC', 'inbound-pro' ) => __('New Caledonia', 'inbound-pro'),
1328
+ __('NZ', 'inbound-pro' ) => __('New Zealand', 'inbound-pro'),
1329
+ __('NI', 'inbound-pro' ) => __('Nicaragua', 'inbound-pro'),
1330
+ __('NE', 'inbound-pro' ) => __('Niger', 'inbound-pro'),
1331
+ __('NG', 'inbound-pro' ) => __('Nigeria', 'inbound-pro'),
1332
+ __('NU', 'inbound-pro' ) => __('Niue', 'inbound-pro'),
1333
+ __('NF', 'inbound-pro' ) => __('Norfolk Island', 'inbound-pro'),
1334
+ __('KP', 'inbound-pro' ) => __('North Korea', 'inbound-pro'),
1335
+ __('MP', 'inbound-pro' ) => __('Northern Mariana Islands', 'inbound-pro'),
1336
+ __('NO', 'inbound-pro' ) => __('Norway', 'inbound-pro'),
1337
+ __('OM', 'inbound-pro' ) => __('Oman', 'inbound-pro'),
1338
+ __('PK', 'inbound-pro' ) => __('Pakistan', 'inbound-pro'),
1339
+ __('PW', 'inbound-pro' ) => __('Palau', 'inbound-pro'),
1340
+ __('PS', 'inbound-pro' ) => __('Palestinian Territory, Occupied', 'inbound-pro'),
1341
+ __('PA', 'inbound-pro' ) => __('Panama', 'inbound-pro'),
1342
+ __('PG', 'inbound-pro' ) => __('Papua New Guinea', 'inbound-pro'),
1343
+ __('PY', 'inbound-pro' ) => __('Paraguay', 'inbound-pro'),
1344
+ __('PE', 'inbound-pro' ) => __('Peru', 'inbound-pro'),
1345
+ __('PH', 'inbound-pro' ) => __('Philippines', 'inbound-pro'),
1346
+ __('PN', 'inbound-pro' ) => __('Pitcairn', 'inbound-pro'),
1347
+ __('PL', 'inbound-pro' ) => __('Poland', 'inbound-pro'),
1348
+ __('PT', 'inbound-pro' ) => __('Portugal', 'inbound-pro'),
1349
+ __('PR', 'inbound-pro' ) => __('Puerto Rico', 'inbound-pro'),
1350
+ __('QA', 'inbound-pro' ) => __('Qatar', 'inbound-pro'),
1351
+ __('RE', 'inbound-pro' ) => __('Reunion', 'inbound-pro'),
1352
+ __('RO', 'inbound-pro' ) => __('Romania', 'inbound-pro'),
1353
+ __('RU', 'inbound-pro' ) => __('Russian Federation', 'inbound-pro'),
1354
+ __('RW', 'inbound-pro' ) => __('Rwanda', 'inbound-pro'),
1355
+ __('BL', 'inbound-pro' ) => __('Saint Barthelemy', 'inbound-pro'),
1356
+ __('SH', 'inbound-pro' ) => __('Saint Helena', 'inbound-pro'),
1357
+ __('KN', 'inbound-pro' ) => __('Saint Kitts and Nevis', 'inbound-pro'),
1358
+ __('LC', 'inbound-pro' ) => __('Saint Lucia', 'inbound-pro'),
1359
+ __('VC', 'inbound-pro' ) => __('Saint Vincent and the Grenadines', 'inbound-pro'),
1360
+ __('MF', 'inbound-pro' ) => __('Saint-Martin (France)', 'inbound-pro'),
1361
+ __('SX', 'inbound-pro' ) => __('Saint-Martin (Pays-Bas)', 'inbound-pro'),
1362
+ __('WS', 'inbound-pro' ) => __('Samoa', 'inbound-pro'),
1363
+ __('SM', 'inbound-pro' ) => __('San Marino', 'inbound-pro'),
1364
+ __('ST', 'inbound-pro' ) => __('Sao Tome and Principe', 'inbound-pro'),
1365
+ __('SA', 'inbound-pro' ) => __('Saudi Arabia', 'inbound-pro'),
1366
+ __('SN', 'inbound-pro' ) => __('Senegal', 'inbound-pro'),
1367
+ __('RS', 'inbound-pro' ) => __('Serbia', 'inbound-pro'),
1368
+ __('SC', 'inbound-pro' ) => __('Seychelles', 'inbound-pro'),
1369
+ __('SL', 'inbound-pro' ) => __('Sierra Leone', 'inbound-pro'),
1370
+ __('SG', 'inbound-pro' ) => __('Singapore', 'inbound-pro'),
1371
+ __('SK', 'inbound-pro' ) => __('Slovakia (Slovak Republic)', 'inbound-pro'),
1372
+ __('SI', 'inbound-pro' ) => __('Slovenia', 'inbound-pro'),
1373
+ __('SB', 'inbound-pro' ) => __('Solomon Islands', 'inbound-pro'),
1374
+ __('SO', 'inbound-pro' ) => __('Somalia', 'inbound-pro'),
1375
+ __('ZA', 'inbound-pro' ) => __('South Africa', 'inbound-pro'),
1376
+ __('GS', 'inbound-pro' ) => __('South Georgia and the South Sandwich Islands', 'inbound-pro'),
1377
+ __('KR', 'inbound-pro' ) => __('South Korea', 'inbound-pro'),
1378
+ __('SS', 'inbound-pro' ) => __('South Sudan', 'inbound-pro'),
1379
+ __('ES', 'inbound-pro' ) => __('Spain', 'inbound-pro'),
1380
+ __('LK', 'inbound-pro' ) => __('Sri Lanka', 'inbound-pro'),
1381
+ __('PM', 'inbound-pro' ) => __('St. Pierre and Miquelon', 'inbound-pro'),
1382
+ __('SD', 'inbound-pro' ) => __('Sudan', 'inbound-pro'),
1383
+ __('SR', 'inbound-pro' ) => __('Suriname', 'inbound-pro'),
1384
+ __('SJ', 'inbound-pro' ) => __('Svalbard and Jan Mayen Islands', 'inbound-pro'),
1385
+ __('SZ', 'inbound-pro' ) => __('Swaziland', 'inbound-pro'),
1386
+ __('SE', 'inbound-pro' ) => __('Sweden', 'inbound-pro'),
1387
+ __('CH', 'inbound-pro' ) => __('Switzerland', 'inbound-pro'),
1388
+ __('SY', 'inbound-pro' ) => __('Syria', 'inbound-pro'),
1389
+ __('TW', 'inbound-pro' ) => __('Taiwan', 'inbound-pro'),
1390
+ __('TJ', 'inbound-pro' ) => __('Tajikistan', 'inbound-pro'),
1391
+ __('TZ', 'inbound-pro' ) => __('Tanzania', 'inbound-pro'),
1392
+ __('TH', 'inbound-pro' ) => __('Thailand', 'inbound-pro'),
1393
+ __('NL', 'inbound-pro' ) => __('The Netherlands', 'inbound-pro'),
1394
+ __('TL', 'inbound-pro' ) => __('Timor-Leste', 'inbound-pro'),
1395
+ __('TG', 'inbound-pro' ) => __('Togo', 'inbound-pro'),
1396
+ __('TK', 'inbound-pro' ) => __('Tokelau', 'inbound-pro'),
1397
+ __('TO', 'inbound-pro' ) => __('Tonga', 'inbound-pro'),
1398
+ __('TT', 'inbound-pro' ) => __('Trinidad and Tobago', 'inbound-pro'),
1399
+ __('TN', 'inbound-pro' ) => __('Tunisia', 'inbound-pro'),
1400
+ __('TR', 'inbound-pro' ) => __('Turkey', 'inbound-pro'),
1401
+ __('TM', 'inbound-pro' ) => __('Turkmenistan', 'inbound-pro'),
1402
+ __('TC', 'inbound-pro' ) => __('Turks and Caicos Islands', 'inbound-pro'),
1403
+ __('TV', 'inbound-pro' ) => __('Tuvalu', 'inbound-pro'),
1404
+ __('UG', 'inbound-pro' ) => __('Uganda', 'inbound-pro'),
1405
+ __('UA', 'inbound-pro' ) => __('Ukraine', 'inbound-pro'),
1406
+ __('AE', 'inbound-pro' ) => __('United Arab Emirates', 'inbound-pro'),
1407
+ __('GB', 'inbound-pro' ) => __('United Kingdom', 'inbound-pro'),
1408
+ __('US', 'inbound-pro' ) => __('United States', 'inbound-pro'),
1409
+ __('UM', 'inbound-pro' ) => __('United States Minor Outlying Islands', 'inbound-pro'),
1410
+ __('UY', 'inbound-pro' ) => __('Uruguay', 'inbound-pro'),
1411
+ __('UZ', 'inbound-pro' ) => __('Uzbekistan', 'inbound-pro'),
1412
+ __('VU', 'inbound-pro' ) => __('Vanuatu', 'inbound-pro'),
1413
+ __('VA', 'inbound-pro' ) => __('Vatican', 'inbound-pro'),
1414
+ __('VE', 'inbound-pro' ) => __('Venezuela', 'inbound-pro'),
1415
+ __('VN', 'inbound-pro' ) => __('Vietnam', 'inbound-pro'),
1416
+ __('VG', 'inbound-pro' ) => __('Virgin Islands (British)', 'inbound-pro'),
1417
+ __('VI', 'inbound-pro' ) => __('Virgin Islands (U.S.)', 'inbound-pro'),
1418
+ __('WF', 'inbound-pro' ) => __('Wallis and Futuna Islands', 'inbound-pro'),
1419
+ __('EH', 'inbound-pro' ) => __('Western Sahara', 'inbound-pro'),
1420
+ __('YE', 'inbound-pro' ) => __('Yemen', 'inbound-pro'),
1421
+ __('ZM', 'inbound-pro' ) => __('Zambia', 'inbound-pro'),
1422
+ __('ZW', 'inbound-pro' ) => __('Zimbabwe', 'inbound-pro')
1423
  );
1424
  }
1425
 
shared/classes/class.inbound-api.api-keys-table.php CHANGED
@@ -46,8 +46,8 @@ if (!class_exists('Inbound_API_Keys_Table')) {
46
 
47
  /* Set parent defaults */
48
  parent::__construct( array(
49
- 'singular' => __( 'API Key', INBOUNDNOW_TEXT_DOMAIN ), /* Singular name of the listed records */
50
- 'plural' => __( 'API Keys', INBOUNDNOW_TEXT_DOMAIN ), /* Plural name of the listed records */
51
  'ajax' => false /* Does this table support ajax? */
52
  ) );
53
 
@@ -70,12 +70,12 @@ if (!class_exists('Inbound_API_Keys_Table')) {
70
 
71
  revoke_api_key : function() {
72
  jQuery( 'body' ).on( 'click', '.inbound-revoke-api-keys', function( e ) {
73
- return confirm( '<?php _e('Are you sure you want to revoke permissions for this API Key?', INBOUNDNOW_TEXT_DOMAIN ); ?> ');
74
  } );
75
  },
76
  regenerate_api_key : function() {
77
  jQuery( 'body' ).on( 'click', '.inbound-regenerate-api-keys', function( e ) {
78
- return confirm( '<?php _e('Are you sure you want to regenerate API Keys for this user?', INBOUNDNOW_TEXT_DOMAIN ); ?> ');
79
  } );
80
  },
81
  };
@@ -113,7 +113,7 @@ if (!class_exists('Inbound_API_Keys_Table')) {
113
  $actions['view'] = sprintf(
114
  '<a href="%s">%s</a>',
115
  esc_url( add_query_arg( array( 'view' => 'api_requests', 'post_type' => 'download', 'page' => 'inbound-reports', 'tab' => 'logs', 's' => $item['email'] ), 'edit.php' ) ),
116
- __( 'View API Log', INBOUNDNOW_TEXT_DOMAIN )
117
  );
118
  }
119
  */
@@ -121,12 +121,12 @@ if (!class_exists('Inbound_API_Keys_Table')) {
121
  $actions['reissue'] = sprintf(
122
  '<a href="%s" class="inbound-regenerate-api-keys">%s</a>',
123
  esc_url( add_query_arg( array( 'user_id' => $item['id'], 'inbound_action' => 'regenerate-api-keys' ) ) ),
124
- __( 'Reissue', INBOUNDNOW_TEXT_DOMAIN )
125
  );
126
  $actions['revoke'] = sprintf(
127
  '<a href="%s" class="inbound-revoke-api-keys inbound-delete">%s</a>',
128
  esc_url( add_query_arg( array( 'user_id' => $item['id'], 'inbound_action' => 'revoke-api-keys' ) ) ),
129
- __( 'Revoke', INBOUNDNOW_TEXT_DOMAIN )
130
  );
131
 
132
  $actions = apply_filters( 'inbound_api_row_actions', array_filter( $actions ) );
@@ -143,10 +143,10 @@ if (!class_exists('Inbound_API_Keys_Table')) {
143
  */
144
  public function get_columns() {
145
  $columns = array(
146
- 'user' => __( 'Username', INBOUNDNOW_TEXT_DOMAIN ),
147
- 'key' => __( 'Public Key', INBOUNDNOW_TEXT_DOMAIN ),
148
- 'secret' => __( 'Secret Key', INBOUNDNOW_TEXT_DOMAIN ),
149
- 'token' => __( 'Token', INBOUNDNOW_TEXT_DOMAIN )
150
  );
151
 
152
  return $columns;
@@ -183,8 +183,8 @@ if (!class_exists('Inbound_API_Keys_Table')) {
183
  ?>
184
  <form method="post" action="<?php echo admin_url( 'edit.php?post_type=wp-lead&page=wpleads_global_settings&tab=tabs-wpleads-apikeys' ); ?>">
185
  <input type="hidden" name="inbound_action" value="generate-api-keys" />
186
- <input type='text' name="user_id" placeholder="<?php _e( 'Enter User ID', INBOUNDNOW_TEXT_DOMAIN ); ?>" title="Your Current ID is <?php echo $user->ID; ?> ">
187
- <?php submit_button( __( 'Generate New API Keys', INBOUNDNOW_TEXT_DOMAIN ), 'secondary', 'submit', false ); ?>
188
  &nbsp;<a class='button button-primary' href='http://docs.inboundnow.com/guide/lead-api-documentation-v1/' target='_blank'><?php _e('View Documentation', 'inbound-pro' ); ?></a>
189
  </form>
190
  <?php
46
 
47
  /* Set parent defaults */
48
  parent::__construct( array(
49
+ 'singular' => __( 'API Key', 'inbound-pro' ), /* Singular name of the listed records */
50
+ 'plural' => __( 'API Keys', 'inbound-pro' ), /* Plural name of the listed records */
51
  'ajax' => false /* Does this table support ajax? */
52
  ) );
53
 
70
 
71
  revoke_api_key : function() {
72
  jQuery( 'body' ).on( 'click', '.inbound-revoke-api-keys', function( e ) {
73
+ return confirm( '<?php _e('Are you sure you want to revoke permissions for this API Key?', 'inbound-pro' ); ?> ');
74
  } );
75
  },
76
  regenerate_api_key : function() {
77
  jQuery( 'body' ).on( 'click', '.inbound-regenerate-api-keys', function( e ) {
78
+ return confirm( '<?php _e('Are you sure you want to regenerate API Keys for this user?', 'inbound-pro' ); ?> ');
79
  } );
80
  },
81
  };
113
  $actions['view'] = sprintf(
114
  '<a href="%s">%s</a>',
115
  esc_url( add_query_arg( array( 'view' => 'api_requests', 'post_type' => 'download', 'page' => 'inbound-reports', 'tab' => 'logs', 's' => $item['email'] ), 'edit.php' ) ),
116
+ __( 'View API Log', 'inbound-pro' )
117
  );
118
  }
119
  */
121
  $actions['reissue'] = sprintf(
122
  '<a href="%s" class="inbound-regenerate-api-keys">%s</a>',
123
  esc_url( add_query_arg( array( 'user_id' => $item['id'], 'inbound_action' => 'regenerate-api-keys' ) ) ),
124
+ __( 'Reissue', 'inbound-pro' )
125
  );
126
  $actions['revoke'] = sprintf(
127
  '<a href="%s" class="inbound-revoke-api-keys inbound-delete">%s</a>',
128
  esc_url( add_query_arg( array( 'user_id' => $item['id'], 'inbound_action' => 'revoke-api-keys' ) ) ),
129
+ __( 'Revoke', 'inbound-pro' )
130
  );
131
 
132
  $actions = apply_filters( 'inbound_api_row_actions', array_filter( $actions ) );
143
  */
144
  public function get_columns() {
145
  $columns = array(
146
+ 'user' => __( 'Username', 'inbound-pro' ),
147
+ 'key' => __( 'Public Key', 'inbound-pro' ),
148
+ 'secret' => __( 'Secret Key', 'inbound-pro' ),
149
+ 'token' => __( 'Token', 'inbound-pro' )
150
  );
151
 
152
  return $columns;
183
  ?>
184
  <form method="post" action="<?php echo admin_url( 'edit.php?post_type=wp-lead&page=wpleads_global_settings&tab=tabs-wpleads-apikeys' ); ?>">
185
  <input type="hidden" name="inbound_action" value="generate-api-keys" />
186
+ <input type='text' name="user_id" placeholder="<?php _e( 'Enter User ID', 'inbound-pro' ); ?>" title="Your Current ID is <?php echo $user->ID; ?> ">
187
+ <?php submit_button( __( 'Generate New API Keys', 'inbound-pro' ), 'secondary', 'submit', false ); ?>
188
  &nbsp;<a class='button button-primary' href='http://docs.inboundnow.com/guide/lead-api-documentation-v1/' target='_blank'><?php _e('View Documentation', 'inbound-pro' ); ?></a>
189
  </form>
190
  <?php
shared/classes/class.inbound-api.php CHANGED
@@ -223,7 +223,7 @@ if (!class_exists('Inbound_API')) {
223
  * @uses Inbound_API::output()
224
  */
225
  private static function missing_auth() {
226
- $error['error'] = __( 'You must specify both a token and API key!', INBOUNDNOW_TEXT_DOMAIN );
227
 
228
  self::$data = $error;
229
  self::output( 401 );
@@ -238,7 +238,7 @@ if (!class_exists('Inbound_API')) {
238
  * @return void
239
  */
240
  private static function invalid_auth() {
241
- $error['error'] = __( 'Your request could not be authenticated! (check your token)', INBOUNDNOW_TEXT_DOMAIN );
242
 
243
  self::$data = $error;
244
  self::output( 401 );
@@ -253,7 +253,7 @@ if (!class_exists('Inbound_API')) {
253
  * @return void
254
  */
255
  private static function invalid_key() {
256
- $error['error'] = __( 'Invalid API key!', INBOUNDNOW_TEXT_DOMAIN );
257
 
258
  self::$data = $error;
259
  self::output( 401 );
@@ -274,7 +274,7 @@ if (!class_exists('Inbound_API')) {
274
  return $value;
275
  }
276
 
277
- $error['error'] = sprintf( __( 'Invalid parameter provided. Expecting a %1$s for \'%2$s\' while a field type with %3$s was provided', INBOUNDNOW_TEXT_DOMAIN ), $accepted, $key, gettype($value)) ;
278
 
279
  self::$data = $error;
280
  self::output( 401 );
@@ -288,7 +288,7 @@ if (!class_exists('Inbound_API')) {
288
  * @return void
289
  */
290
  private static function invalid_parameter( $key, $accepted, $provided ) {
291
- $error['error'] = sprintf( __( 'Invalid parameter provided. Expecting %1$s for %2$s the %3$s was provided', INBOUNDNOW_TEXT_DOMAIN ), $accepted, $key, $provided) ;
292
 
293
  self::$data = $error;
294
  self::output( 401 );
@@ -430,7 +430,7 @@ if (!class_exists('Inbound_API')) {
430
 
431
  /* Make sure our query is valid */
432
  if ( ! in_array( $query, $accepted ) ) {
433
- $error['error'] = __( 'Invalid endpoint: ' . $query, INBOUNDNOW_TEXT_DOMAIN );
434
 
435
  self::$data = $error;
436
  self::output();
@@ -715,7 +715,7 @@ if (!class_exists('Inbound_API')) {
715
 
716
  /* If no results let them know */
717
  if (!$results) {
718
- $message['message'] = __( 'No leads were found given this query.', INBOUNDNOW_TEXT_DOMAIN ) ;
719
  self::$data = $message;
720
  self::output( 401 );
721
  }
@@ -909,7 +909,7 @@ if (!class_exists('Inbound_API')) {
909
  $already_exists = self::leads_get( array( 'email' => $params['meta_data']['wpleads_email_address'] ) );
910
 
911
  if ( $already_exists ) {
912
- $error['error'] = __( 'Lead already exists.', INBOUNDNOW_TEXT_DOMAIN ) ;
913
 
914
  self::$data = $error;
915
  self::output( 401 );
@@ -973,7 +973,7 @@ if (!class_exists('Inbound_API')) {
973
 
974
  /* ID must be set by this point */
975
  if ( !isset( $params['ID'] ) ) {
976
- $error['error'] = __( 'Valid ID or email address not set.', INBOUNDNOW_TEXT_DOMAIN ) ;
977
  self::$data = $error;
978
  self::output( 401 );
979
  }
@@ -1082,7 +1082,7 @@ if (!class_exists('Inbound_API')) {
1082
 
1083
  /* ID must be set by this point */
1084
  if ( !isset( $params['ID'] ) ) {
1085
- $error['error'] = __( 'Valid ID or email address not set.', INBOUNDNOW_TEXT_DOMAIN ) ;
1086
  self::$data = $error;
1087
  self::output( 401 );
1088
  }
@@ -1091,7 +1091,7 @@ if (!class_exists('Inbound_API')) {
1091
  wp_delete_post( $params['ID'], true );
1092
 
1093
  return array (
1094
- 'message' => __( 'Lead successfully deleted', INBOUNDNOW_TEXT_DOMAIN ),
1095
  'ID' => $params['ID']
1096
  );
1097
  }
@@ -1171,7 +1171,7 @@ if (!class_exists('Inbound_API')) {
1171
  if (isset($params['id'])) {
1172
  self::validate_parameter( intval($params['id']), 'id', 'integer' );
1173
  } else {
1174
- $error['error'] = __( 'This endpoint requires that the \'id\' be set.', INBOUNDNOW_TEXT_DOMAIN ) ;
1175
  self::$data = $error;
1176
  self::output( 401 );
1177
  }
@@ -1213,7 +1213,7 @@ if (!class_exists('Inbound_API')) {
1213
  if (isset($params['id'])) {
1214
  self::validate_parameter( intval($params['id']), 'id', 'integer' );
1215
  } else {
1216
- $error['error'] = __( 'This endpoint requires that the \'id\' be set.', INBOUNDNOW_TEXT_DOMAIN ) ;
1217
  self::$data = $error;
1218
  self::output( 401 );
1219
  }
@@ -1280,21 +1280,21 @@ if (!class_exists('Inbound_API')) {
1280
 
1281
  /* lead email or lead id required */
1282
  if ( !isset( $params['id'] ) && !isset( $params['email_id']) && !isset( $params['cta_id']) ) {
1283
- $error['error'] = __( 'This endpoint requires either the \'id\' or the \'email\' or the \'cta_id\' parameter be set.', INBOUNDNOW_TEXT_DOMAIN ) ;
1284
  self::$data = $error;
1285
  self::output( 401 );
1286
  }
1287
 
1288
  /* a link to mask is required */
1289
  if ( !isset( $params['url'] ) && !isset( $params['url'] ) ) {
1290
- $error['error'] = __( 'This endpoint requires the \'url\' parameter be set.', INBOUNDNOW_TEXT_DOMAIN ) ;
1291
  self::$data = $error;
1292
  self::output( 401 );
1293
  }
1294
 
1295
  /* a tracking_id is required */
1296
  if ( !isset( $params['tracking_id'] ) ) {
1297
- $error['error'] = __( 'This endpoint requires the \'tracking_id\' parameter be set.', INBOUNDNOW_TEXT_DOMAIN ) ;
1298
  self::$data = $error;
1299
  self::output( 401 );
1300
  }
223
  * @uses Inbound_API::output()
224
  */
225
  private static function missing_auth() {
226
+ $error['error'] = __( 'You must specify both a token and API key!', 'inbound-pro' );
227
 
228
  self::$data = $error;
229
  self::output( 401 );
238
  * @return void
239
  */
240
  private static function invalid_auth() {
241
+ $error['error'] = __( 'Your request could not be authenticated! (check your token)', 'inbound-pro' );
242
 
243
  self::$data = $error;
244
  self::output( 401 );
253
  * @return void
254
  */
255
  private static function invalid_key() {
256
+ $error['error'] = __( 'Invalid API key!', 'inbound-pro' );
257
 
258
  self::$data = $error;
259
  self::output( 401 );
274
  return $value;
275
  }
276
 
277
+ $error['error'] = sprintf( __( 'Invalid parameter provided. Expecting a %1$s for \'%2$s\' while a field type with %3$s was provided', 'inbound-pro' ), $accepted, $key, gettype($value)) ;
278
 
279
  self::$data = $error;
280
  self::output( 401 );
288
  * @return void
289
  */
290
  private static function invalid_parameter( $key, $accepted, $provided ) {
291
+ $error['error'] = sprintf( __( 'Invalid parameter provided. Expecting %1$s for %2$s the %3$s was provided', 'inbound-pro' ), $accepted, $key, $provided) ;
292
 
293
  self::$data = $error;
294
  self::output( 401 );
430
 
431
  /* Make sure our query is valid */
432
  if ( ! in_array( $query, $accepted ) ) {
433
+ $error['error'] = __( 'Invalid endpoint: ' . $query, 'inbound-pro' );
434
 
435
  self::$data = $error;
436
  self::output();
715
 
716
  /* If no results let them know */
717
  if (!$results) {
718
+ $message['message'] = __( 'No leads were found given this query.', 'inbound-pro' ) ;
719
  self::$data = $message;
720
  self::output( 401 );
721
  }
909
  $already_exists = self::leads_get( array( 'email' => $params['meta_data']['wpleads_email_address'] ) );
910
 
911
  if ( $already_exists ) {
912
+ $error['error'] = __( 'Lead already exists.', 'inbound-pro' ) ;
913
 
914
  self::$data = $error;
915
  self::output( 401 );
973
 
974
  /* ID must be set by this point */
975
  if ( !isset( $params['ID'] ) ) {
976
+ $error['error'] = __( 'Valid ID or email address not set.', 'inbound-pro' ) ;
977
  self::$data = $error;
978
  self::output( 401 );
979
  }
1082
 
1083
  /* ID must be set by this point */
1084
  if ( !isset( $params['ID'] ) ) {
1085
+ $error['error'] = __( 'Valid ID or email address not set.', 'inbound-pro' ) ;
1086
  self::$data = $error;
1087
  self::output( 401 );
1088
  }
1091
  wp_delete_post( $params['ID'], true );
1092
 
1093
  return array (
1094
+ 'message' => __( 'Lead successfully deleted', 'inbound-pro' ),
1095
  'ID' => $params['ID']
1096
  );
1097
  }
1171
  if (isset($params['id'])) {
1172
  self::validate_parameter( intval($params['id']), 'id', 'integer' );
1173
  } else {
1174
+ $error['error'] = __( 'This endpoint requires that the \'id\' be set.', 'inbound-pro' ) ;
1175
  self::$data = $error;
1176
  self::output( 401 );
1177
  }
1213
  if (isset($params['id'])) {
1214
  self::validate_parameter( intval($params['id']), 'id', 'integer' );
1215
  } else {
1216
+ $error['error'] = __( 'This endpoint requires that the \'id\' be set.', 'inbound-pro' ) ;
1217
  self::$data = $error;
1218
  self::output( 401 );
1219
  }
1280
 
1281
  /* lead email or lead id required */
1282
  if ( !isset( $params['id'] ) && !isset( $params['email_id']) && !isset( $params['cta_id']) ) {
1283
+ $error['error'] = __( 'This endpoint requires either the \'id\' or the \'email\' or the \'cta_id\' parameter be set.', 'inbound-pro' ) ;
1284
  self::$data = $error;
1285
  self::output( 401 );
1286
  }
1287
 
1288
  /* a link to mask is required */
1289
  if ( !isset( $params['url'] ) && !isset( $params['url'] ) ) {
1290
+ $error['error'] = __( 'This endpoint requires the \'url\' parameter be set.', 'inbound-pro' ) ;
1291
  self::$data = $error;
1292
  self::output( 401 );
1293
  }
1294
 
1295
  /* a tracking_id is required */
1296
  if ( !isset( $params['tracking_id'] ) ) {
1297
+ $error['error'] = __( 'This endpoint requires the \'tracking_id\' parameter be set.', 'inbound-pro' ) ;
1298
  self::$data = $error;
1299
  self::output( 401 );
1300
  }
shared/classes/class.inbound-customizer.php CHANGED
@@ -146,7 +146,7 @@ class Inbound_Customizer {
146
  'inbound-customizer-parent-js' ,
147
  'customizer_off',
148
  array(
149
- 'launch_visual_editor' =>__('Launch Visual Editor' , INBOUNDNOW_TEXT_DOMAIN) ,
150
  'url' => add_query_arg( array('inbound-customizer'=> 'on' ) , get_permalink($post->ID))
151
  )
152
  );
146
  'inbound-customizer-parent-js' ,
147
  'customizer_off',
148
  array(
149
+ 'launch_visual_editor' =>__('Launch Visual Editor' , 'inbound-pro') ,
150
  'url' => add_query_arg( array('inbound-customizer'=> 'on' ) , get_permalink($post->ID))
151
  )
152
  );
shared/classes/class.lead-fields.php CHANGED
@@ -11,154 +11,154 @@ if ( !class_exists('Leads_Field_Map') ) {
11
 
12
  $lead_fields = array(
13
  array(
14
- 'label' => __( 'First Name', INBOUNDNOW_TEXT_DOMAIN ) ,
15
  'key' => 'wpleads_first_name',
16
  'priority' => 1,
17
  'type' => 'text',
18
  'nature' => 'core'
19
  ),
20
  array(
21
- 'label' => __( 'Last Name', INBOUNDNOW_TEXT_DOMAIN ) ,
22
  'key' => 'wpleads_last_name',
23
  'priority' => 2,
24
  'type' => 'text',
25
  'nature' => 'core'
26
  ),
27
  array(
28
- 'label' => __( 'Email', INBOUNDNOW_TEXT_DOMAIN ) ,
29
  'key' => 'wpleads_email_address',
30
  'priority' => 3,
31
  'type' => 'text',
32
  'nature' => 'core'
33
  ),
34
  array(
35
- 'label' => __( 'Website', INBOUNDNOW_TEXT_DOMAIN ) ,
36
  'key' => 'wpleads_website',
37
  'priority' => 4,
38
  'type' => 'text',
39
  'nature' => 'core'
40
  ),
41
  array(
42
- 'label' => __( 'Job Title', INBOUNDNOW_TEXT_DOMAIN ) ,
43
  'key' => 'wpleads_job_title',
44
  'priority' => 5,
45
  'type' => 'text',
46
  'nature' => 'core'
47
  ),
48
  array(
49
- 'label' => __( 'Company Name', INBOUNDNOW_TEXT_DOMAIN ) ,
50
  'key' => 'wpleads_company_name',
51
  'priority' => 6,
52
  'type' => 'text',
53
  'nature' => 'core'
54
  ),
55
  array(
56
- 'label' => __( 'Mobile Phone', INBOUNDNOW_TEXT_DOMAIN ) ,
57
  'key' => 'wpleads_mobile_phone',
58
  'priority' => 7,
59
  'type' => 'text',
60
  'nature' => 'core'
61
  ),
62
  array(
63
- 'label' => __( 'Work Phone', INBOUNDNOW_TEXT_DOMAIN ) ,
64
  'key' => 'wpleads_work_phone',
65
  'priority' => 8,
66
  'type' => 'text',
67
  'nature' => 'core'
68
  ),
69
  array(
70
- 'label' => __( 'Address', INBOUNDNOW_TEXT_DOMAIN ) ,
71
  'key' => 'wpleads_address_line_1',
72
  'priority' => 9,
73
  'type' => 'text',
74
  'nature' => 'core'
75
  ),
76
  array(
77
- 'label' => __( 'Address Continued', INBOUNDNOW_TEXT_DOMAIN ) ,
78
  'key' => 'wpleads_address_line_2',
79
  'priority' => 10,
80
  'type' => 'text',
81
  'nature' => 'core'
82
  ),
83
  array(
84
- 'label' => __( 'City', INBOUNDNOW_TEXT_DOMAIN ) ,
85
  'key' => 'wpleads_city',
86
  'priority' => 11,
87
  'type' => 'text',
88
  'nature' => 'core'
89
  ),
90
  array(
91
- 'label' => __( 'State/Region', INBOUNDNOW_TEXT_DOMAIN ) ,
92
  'key' => 'wpleads_region_name',
93
  'priority' => 12,
94
  'type' => 'text',
95
  'nature' => 'core'
96
  ),
97
  array(
98
- 'label' => __( 'Zip-code', INBOUNDNOW_TEXT_DOMAIN ) ,
99
  'key' => 'wpleads_zip',
100
  'priority' => 13,
101
  'type' => 'text',
102
  'nature' => 'core'
103
  ),
104
  array(
105
- 'label' => __( 'Country', INBOUNDNOW_TEXT_DOMAIN ) ,
106
  'key' => 'wpleads_country_code',
107
  'priority' => 14,
108
  'type' => 'text',
109
  'nature' => 'core'
110
  ),
111
  array(
112
- 'label' => __( 'Billing First Name', INBOUNDNOW_TEXT_DOMAIN ) ,
113
  'key' => 'wpleads_billing_first_name',
114
  'priority' => 15,
115
  'type' => 'text',
116
  'nature' => 'core'
117
  ),
118
  array(
119
- 'label' => __( 'Billing Last Name', INBOUNDNOW_TEXT_DOMAIN ) ,
120
  'key' => 'wpleads_billing_last_name',
121
  'priority' => 16,
122
  'type' => 'text',
123
  'nature' => 'core'
124
  ),
125
  array(
126
- 'label' => __( 'Billing Company', INBOUNDNOW_TEXT_DOMAIN ) ,
127
  'key' => 'wpleads_billing_company_name',
128
  'priority' => 17,
129
  'type' => 'text',
130
  'nature' => 'core'
131
  ),
132
  array(
133
- 'label' => __( 'Billing Address', INBOUNDNOW_TEXT_DOMAIN ) ,
134
  'key' => 'wpleads_billing_address_line_1',
135
  'priority' => 18,
136
  'type' => 'text',
137
  'nature' => 'core'
138
  ),
139
  array(
140
- 'label' => __( 'Billing Address Continued', INBOUNDNOW_TEXT_DOMAIN ) ,
141
  'key' => 'wpleads_billing_address_line_2',
142
  'priority' => 19,
143
  'type' => 'text',
144
  'nature' => 'core'
145
  ),
146
  array(
147
- 'label' => __( 'Billing City', INBOUNDNOW_TEXT_DOMAIN ) ,
148
  'key' => 'wpleads_billing_city',
149
  'priority' => 20,
150
  'type' => 'text',
151
  'nature' => 'core'
152
  ),
153
  array(
154
- 'label' => __( 'Billing State/Region', INBOUNDNOW_TEXT_DOMAIN ) ,
155
  'key' => 'wpleads_billing_region_name',
156
  'priority' => 21,
157
  'type' => 'text',
158
  'nature' => 'core'
159
  ),
160
  array(
161
- 'label' => __( 'Billing Zip-code', INBOUNDNOW_TEXT_DOMAIN ) ,
162
  'key' => 'wpleads_billing_zip',
163
  'priority' => 22,
164
  'type' => 'text',
@@ -166,105 +166,105 @@ if ( !class_exists('Leads_Field_Map') ) {
166
  ),
167
 
168
  array(
169
- 'label' => __( 'Billing Country', INBOUNDNOW_TEXT_DOMAIN ) ,
170
  'key' => 'wpleads_billing_country_code',
171
  'priority' => 23,
172
  'type' => 'text',
173
  'nature' => 'core'
174
  ),
175
  array(
176
- 'label' => __( 'Shipping First Name', INBOUNDNOW_TEXT_DOMAIN ) ,
177
  'key' => 'wpleads_shipping_first_name',
178
  'priority' => 24,
179
  'type' => 'text',
180
  'nature' => 'core'
181
  ),
182
  array(
183
- 'label' => __( 'Shipping Last Name', INBOUNDNOW_TEXT_DOMAIN ) ,
184
  'key' => 'wpleads_shipping_last_name',
185
  'priority' => 25,
186
  'type' => 'text',
187
  'nature' => 'core'
188
  ),
189
  array(
190
- 'label' => __( 'Shipping Company Name', INBOUNDNOW_TEXT_DOMAIN ) ,
191
  'key' => 'wpleads_shipping_company_name',
192
  'priority' => 26,
193
  'type' => 'text',
194
  'nature' => 'core'
195
  ),
196
  array(
197
- 'label' => __( 'Shipping Address', INBOUNDNOW_TEXT_DOMAIN ) ,
198
  'key' => 'wpleads_shipping_address_line_1',
199
  'priority' => 27,
200
  'type' => 'text',
201
  'nature' => 'core'
202
  ),
203
  array(
204
- 'label' => __( 'Shipping Address Continued', INBOUNDNOW_TEXT_DOMAIN ) ,
205
  'key' => 'wpleads_shipping_address_line_2',
206
  'priority' => 28,
207
  'type' => 'text',
208
  'nature' => 'core'
209
  ),
210
  array(
211
- 'label' => __( 'Shipping City', INBOUNDNOW_TEXT_DOMAIN ) ,
212
  'key' => 'wpleads_shipping_city',
213
  'priority' => 29,
214
  'type' => 'text',
215
  'nature' => 'core'
216
  ),
217
  array(
218
- 'label' => __( 'Shipping State/Region', INBOUNDNOW_TEXT_DOMAIN ) ,
219
  'key' => 'wpleads_shipping_region_name',
220
  'priority' => 30,
221
  'type' => 'text',
222
  'nature' => 'core'
223
  ),
224
  array(
225
- 'label' => __( 'Shipping Zip-code', INBOUNDNOW_TEXT_DOMAIN ) ,
226
  'key' => 'wpleads_shipping_zip',
227
  'priority' => 31,
228
  'type' => 'text',
229
  'nature' => 'core'
230
  ),
231
  array(
232
- 'label' => __( 'Shipping Country', INBOUNDNOW_TEXT_DOMAIN ) ,
233
  'key' => 'wpleads_shipping_country_code',
234
  'priority' => 32,
235
  'type' => 'text',
236
  'nature' => 'core'
237
  ),
238
  array(
239
- 'label' => __( 'Related Websites', INBOUNDNOW_TEXT_DOMAIN ) ,
240
  'key' => 'wpleads_websites',
241
  'priority' => 33,
242
  'type' => 'links',
243
  'nature' => 'core'
244
  ),
245
  array(
246
- 'label' => __( 'Notes', INBOUNDNOW_TEXT_DOMAIN ) ,
247
  'key' => 'wpleads_notes',
248
  'priority' => 34,
249
  'type' => 'textarea',
250
  'nature' => 'core'
251
  ),
252
  array(
253
- 'label' => __( 'Twitter Account', INBOUNDNOW_TEXT_DOMAIN ) ,
254
  'key' => 'wpleads_social_twitter',
255
  'priority' => 35,
256
  'type' => 'text',
257
  'nature' => 'core'
258
  ),
259
  array(
260
- 'label' => __( 'Youtube Account', INBOUNDNOW_TEXT_DOMAIN ) ,
261
  'key' => 'wpleads_social_youtube',
262
  'priority' => 36,
263
  'type' => 'text',
264
  'nature' => 'core'
265
  ),
266
  array(
267
- 'label' => __( 'Facebook Account', INBOUNDNOW_TEXT_DOMAIN ) ,
268
  'key' => 'wpleads_social_facebook',
269
  'priority' => 37,
270
  'type' => 'text',
@@ -309,15 +309,15 @@ if ( !class_exists('Leads_Field_Map') ) {
309
  public static function build_field_types_array() {
310
 
311
  return apply_filters( 'wp_leads_field_types', array(
312
- 'text' => __( 'text', INBOUNDNOW_TEXT_DOMAIN ),
313
- 'textarea' => __( 'textarea', INBOUNDNOW_TEXT_DOMAIN ),
314
- 'radio' => __( 'radio', INBOUNDNOW_TEXT_DOMAIN ),
315
- 'checkbox' => __( 'chekcbox', INBOUNDNOW_TEXT_DOMAIN ),
316
- 'dropdown' => __( 'dropdown', INBOUNDNOW_TEXT_DOMAIN ),
317
- 'dropdown-country' => __( 'dropdown-country', INBOUNDNOW_TEXT_DOMAIN ),
318
- 'links' => __( 'links', INBOUNDNOW_TEXT_DOMAIN ),
319
- 'wysiwyg' => __( 'wysiwyg', INBOUNDNOW_TEXT_DOMAIN ),
320
- 'media' => __( 'media', INBOUNDNOW_TEXT_DOMAIN )
321
  ) );
322
  }
323
 
11
 
12
  $lead_fields = array(
13
  array(
14
+ 'label' => __( 'First Name', 'inbound-pro' ) ,
15
  'key' => 'wpleads_first_name',
16
  'priority' => 1,
17
  'type' => 'text',
18
  'nature' => 'core'
19
  ),
20
  array(
21
+ 'label' => __( 'Last Name', 'inbound-pro' ) ,
22
  'key' => 'wpleads_last_name',
23
  'priority' => 2,
24
  'type' => 'text',
25
  'nature' => 'core'
26
  ),
27
  array(
28
+ 'label' => __( 'Email', 'inbound-pro' ) ,
29
  'key' => 'wpleads_email_address',
30
  'priority' => 3,
31
  'type' => 'text',
32
  'nature' => 'core'
33
  ),
34
  array(
35
+ 'label' => __( 'Website', 'inbound-pro' ) ,
36
  'key' => 'wpleads_website',
37
  'priority' => 4,
38
  'type' => 'text',
39
  'nature' => 'core'
40
  ),
41
  array(
42
+ 'label' => __( 'Job Title', 'inbound-pro' ) ,
43
  'key' => 'wpleads_job_title',
44
  'priority' => 5,
45
  'type' => 'text',
46
  'nature' => 'core'
47
  ),
48
  array(
49
+ 'label' => __( 'Company Name', 'inbound-pro' ) ,
50
  'key' => 'wpleads_company_name',
51
  'priority' => 6,
52
  'type' => 'text',
53
  'nature' => 'core'
54
  ),
55
  array(
56
+ 'label' => __( 'Mobile Phone', 'inbound-pro' ) ,
57
  'key' => 'wpleads_mobile_phone',
58
  'priority' => 7,
59
  'type' => 'text',
60
  'nature' => 'core'
61
  ),
62
  array(
63
+ 'label' => __( 'Work Phone', 'inbound-pro' ) ,
64
  'key' => 'wpleads_work_phone',
65
  'priority' => 8,
66
  'type' => 'text',
67
  'nature' => 'core'
68
  ),
69
  array(
70
+ 'label' => __( 'Address', 'inbound-pro' ) ,
71
  'key' => 'wpleads_address_line_1',
72
  'priority' => 9,
73
  'type' => 'text',
74
  'nature' => 'core'
75
  ),
76
  array(
77
+ 'label' => __( 'Address Continued', 'inbound-pro' ) ,
78
  'key' => 'wpleads_address_line_2',
79
  'priority' => 10,
80
  'type' => 'text',
81
  'nature' => 'core'
82
  ),
83
  array(
84
+ 'label' => __( 'City', 'inbound-pro' ) ,
85
  'key' => 'wpleads_city',
86
  'priority' => 11,
87
  'type' => 'text',
88
  'nature' => 'core'
89
  ),
90
  array(
91
+ 'label' => __( 'State/Region', 'inbound-pro' ) ,
92
  'key' => 'wpleads_region_name',
93
  'priority' => 12,
94
  'type' => 'text',
95
  'nature' => 'core'
96
  ),
97
  array(
98
+ 'label' => __( 'Zip-code', 'inbound-pro' ) ,
99
  'key' => 'wpleads_zip',
100
  'priority' => 13,
101
  'type' => 'text',
102
  'nature' => 'core'
103
  ),
104
  array(
105
+ 'label' => __( 'Country', 'inbound-pro' ) ,
106
  'key' => 'wpleads_country_code',
107
  'priority' => 14,
108
  'type' => 'text',
109
  'nature' => 'core'
110
  ),
111
  array(
112
+ 'label' => __( 'Billing First Name', 'inbound-pro' ) ,
113
  'key' => 'wpleads_billing_first_name',
114
  'priority' => 15,
115
  'type' => 'text',
116
  'nature' => 'core'
117
  ),
118
  array(
119
+ 'label' => __( 'Billing Last Name', 'inbound-pro' ) ,
120
  'key' => 'wpleads_billing_last_name',
121
  'priority' => 16,
122
  'type' => 'text',
123
  'nature' => 'core'
124
  ),
125
  array(
126
+ 'label' => __( 'Billing Company', 'inbound-pro' ) ,
127
  'key' => 'wpleads_billing_company_name',
128
  'priority' => 17,
129
  'type' => 'text',
130
  'nature' => 'core'
131
  ),
132
  array(
133
+ 'label' => __( 'Billing Address', 'inbound-pro' ) ,
134
  'key' => 'wpleads_billing_address_line_1',
135
  'priority' => 18,
136
  'type' => 'text',
137
  'nature' => 'core'
138
  ),
139
  array(
140
+ 'label' => __( 'Billing Address Continued', 'inbound-pro' ) ,
141
  'key' => 'wpleads_billing_address_line_2',
142
  'priority' => 19,
143
  'type' => 'text',
144
  'nature' => 'core'
145
  ),
146
  array(
147
+ 'label' => __( 'Billing City', 'inbound-pro' ) ,
148
  'key' => 'wpleads_billing_city',
149
  'priority' => 20,
150
  'type' => 'text',
151
  'nature' => 'core'
152
  ),
153
  array(
154
+ 'label' => __( 'Billing State/Region', 'inbound-pro' ) ,
155
  'key' => 'wpleads_billing_region_name',
156
  'priority' => 21,
157
  'type' => 'text',
158
  'nature' => 'core'
159
  ),
160
  array(
161
+ 'label' => __( 'Billing Zip-code', 'inbound-pro' ) ,
162
  'key' => 'wpleads_billing_zip',
163
  'priority' => 22,
164
  'type' => 'text',
166
  ),
167
 
168
  array(
169
+ 'label' => __( 'Billing Country', 'inbound-pro' ) ,
170
  'key' => 'wpleads_billing_country_code',
171
  'priority' => 23,
172
  'type' => 'text',
173
  'nature' => 'core'
174
  ),
175
  array(
176
+ 'label' => __( 'Shipping First Name', 'inbound-pro' ) ,
177
  'key' => 'wpleads_shipping_first_name',
178
  'priority' => 24,
179
  'type' => 'text',
180
  'nature' => 'core'
181
  ),
182
  array(
183
+ 'label' => __( 'Shipping Last Name', 'inbound-pro' ) ,
184
  'key' => 'wpleads_shipping_last_name',
185
  'priority' => 25,
186
  'type' => 'text',
187
  'nature' => 'core'
188
  ),
189
  array(
190
+ 'label' => __( 'Shipping Company Name', 'inbound-pro' ) ,
191
  'key' => 'wpleads_shipping_company_name',
192
  'priority' => 26,
193
  'type' => 'text',
194
  'nature' => 'core'
195
  ),
196
  array(
197
+ 'label' => __( 'Shipping Address', 'inbound-pro' ) ,
198
  'key' => 'wpleads_shipping_address_line_1',
199
  'priority' => 27,
200
  'type' => 'text',
201
  'nature' => 'core'
202
  ),
203
  array(
204
+ 'label' => __( 'Shipping Address Continued', 'inbound-pro' ) ,
205
  'key' => 'wpleads_shipping_address_line_2',
206
  'priority' => 28,
207
  'type' => 'text',
208
  'nature' => 'core'
209
  ),
210
  array(
211
+ 'label' => __( 'Shipping City', 'inbound-pro' ) ,
212
  'key' => 'wpleads_shipping_city',
213
  'priority' => 29,
214
  'type' => 'text',
215
  'nature' => 'core'
216
  ),
217
  array(
218
+ 'label' => __( 'Shipping State/Region', 'inbound-pro' ) ,
219
  'key' => 'wpleads_shipping_region_name',
220
  'priority' => 30,
221
  'type' => 'text',
222
  'nature' => 'core'
223
  ),
224
  array(
225
+ 'label' => __( 'Shipping Zip-code', 'inbound-pro' ) ,
226
  'key' => 'wpleads_shipping_zip',
227
  'priority' => 31,
228
  'type' => 'text',
229
  'nature' => 'core'
230
  ),
231
  array(
232
+ 'label' => __( 'Shipping Country', 'inbound-pro' ) ,
233
  'key' => 'wpleads_shipping_country_code',
234
  'priority' => 32,
235
  'type' => 'text',
236
  'nature' => 'core'
237
  ),
238
  array(
239
+ 'label' => __( 'Related Websites', 'inbound-pro' ) ,
240
  'key' => 'wpleads_websites',
241
  'priority' => 33,
242
  'type' => 'links',
243
  'nature' => 'core'
244
  ),
245
  array(
246
+ 'label' => __( 'Notes', 'inbound-pro' ) ,
247
  'key' => 'wpleads_notes',
248
  'priority' => 34,
249
  'type' => 'textarea',
250
  'nature' => 'core'
251
  ),
252
  array(
253
+ 'label' => __( 'Twitter Account', 'inbound-pro' ) ,
254
  'key' => 'wpleads_social_twitter',
255
  'priority' => 35,
256
  'type' => 'text',
257
  'nature' => 'core'
258
  ),
259
  array(
260
+ 'label' => __( 'Youtube Account', 'inbound-pro' ) ,
261
  'key' => 'wpleads_social_youtube',
262
  'priority' => 36,
263
  'type' => 'text',
264
  'nature' => 'core'
265
  ),
266
  array(
267
+ 'label' => __( 'Facebook Account', 'inbound-pro' ) ,
268
  'key' => 'wpleads_social_facebook',
269
  'priority' => 37,
270
  'type' => 'text',
309
  public static function build_field_types_array() {
310
 
311
  return apply_filters( 'wp_leads_field_types', array(
312
+ 'text' => __( 'text', 'inbound-pro' ),
313
+ 'textarea' => __( 'textarea', 'inbound-pro' ),
314
+ 'radio' => __( 'radio', 'inbound-pro' ),
315
+ 'checkbox' => __( 'chekcbox', 'inbound-pro' ),
316
+ 'dropdown' => __( 'dropdown', 'inbound-pro' ),
317
+ 'dropdown-country' => __( 'dropdown-country', 'inbound-pro' ),
318
+ 'links' => __( 'links', 'inbound-pro' ),
319
+ 'wysiwyg' => __( 'wysiwyg', 'inbound-pro' ),
320
+ 'media' => __( 'media', 'inbound-pro' )
321
  ) );
322
  }
323
 
shared/classes/class.lead-storage.php CHANGED
@@ -261,15 +261,33 @@ if (!class_exists('LeadStorage')) {
261
  $value = strip_tags( $value );
262
  }
263
 
264
- update_post_meta($lead['id'], $key, $value);
265
-
266
  /* Old convention with wpleads_ prefix */
267
  if( !strstr($key,'wpleads_') ) {
268
- update_post_meta($lead['id'], 'wpleads_'.$key, $value);
 
269
  } else {
270
  update_post_meta($lead['id'], $key, $value);
271
  }
272
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
273
  }
274
  }
275
 
261
  $value = strip_tags( $value );
262
  }
263
 
 
 
264
  /* Old convention with wpleads_ prefix */
265
  if( !strstr($key,'wpleads_') ) {
266
+ $key = 'wpleads_'.$key;
267
+ update_post_meta($lead['id'], $key, $value);
268
  } else {
269
  update_post_meta($lead['id'], $key, $value);
270
  }
271
 
272
+ /* update options for custom field type */
273
+ global $inbound_settings;
274
+ $field = ( isset($inbound_settings['leads-custom-fields']['fields'][ $key ]) ) ? $inbound_settings['leads-custom-fields']['fields'][ $key ] : array();
275
+
276
+
277
+ /* update custom field options for dropdown */
278
+ if (isset($field['type']) == 'dropdown' ) {
279
+ $options = $inbound_settings['leads-custom-fields']['fields'][ $key ][ 'options' ];
280
+
281
+ if ( !isset($options[ $value ]) ) {
282
+ $options[$value] = $value;
283
+ $inbound_settings['leads-custom-fields']['fields'][ $key ][ 'options' ] = $options;
284
+ Inbound_Options_API::update_option('inbound-pro', 'settings', $inbound_settings);
285
+ }
286
+
287
+ error_log(print_r($inbound_settings,true));
288
+
289
+ }
290
+
291
  }
292
  }
293
 
shared/classes/class.menus.adminbar.php CHANGED
@@ -164,7 +164,7 @@ if (!class_exists('Inbound_Menus_Adminbar')) {
164
  );
165
 
166
  /* 1.1 - Leads search form */
167
- $leads_search_text = __( 'Search All Leads', INBOUNDNOW_TEXT_DOMAIN );
168
  $menu_items['inbound-leads-search'] = array(
169
  'parent' => $leads_key,
170
  'title' => '<form id="inbound-menu-form" method="get" action="'.admin_url( 'edit.php?post_type=wp-lead' ).'" class=" " target="_blank">
164
  );
165
 
166
  /* 1.1 - Leads search form */
167
+ $leads_search_text = __( 'Search All Leads', 'inbound-pro' );
168
  $menu_items['inbound-leads-search'] = array(
169
  'parent' => $leads_key,
170
  'title' => '<form id="inbound-menu-form" method="get" action="'.admin_url( 'edit.php?post_type=wp-lead' ).'" class=" " target="_blank">
shared/classes/class.post-type.wp-lead.php CHANGED
@@ -18,6 +18,7 @@ if ( !class_exists('Inbound_Leads') ) {
18
  private function load_hooks() {
19
  /* Register Leads Post Type */
20
  add_action( 'init', array(__CLASS__, 'register_post_type' ));
 
21
  add_action( 'init', array(__CLASS__, 'register_taxonomies' ));
22
 
23
  /* Modify columns on lead list creation page */
@@ -59,7 +60,8 @@ if ( !class_exists('Inbound_Leads') ) {
59
  'show_ui' => true,
60
  'query_var' => true,
61
  'menu_icon' => INBOUNDNOW_SHARED_URLPATH . 'assets/images/global/leads.png',
62
- 'capability_type' => 'post',
 
63
  'hierarchical' => false,
64
  'menu_position' => 31,
65
  'supports' => array('custom-fields','thumbnail')
@@ -71,6 +73,35 @@ if ( !class_exists('Inbound_Leads') ) {
71
 
72
  }
73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  /**
75
  * Register Category Taxonomy
76
  */
@@ -85,18 +116,18 @@ if ( !class_exists('Inbound_Leads') ) {
85
  $list_labels = array(
86
  'name' => __( 'Lead Lists', 'inbound-pro' ),
87
  'singular_name' => __( 'Lead List', 'inbound-pro' ),
88
- 'search_items' => __( 'Search Lead Lists', INBOUNDNOW_TEXT_DOMAIN ),
89
- 'popular_items' => __( 'Popular Lead Lists', INBOUNDNOW_TEXT_DOMAIN ),
90
- 'all_items' => __( 'All Lead Lists', INBOUNDNOW_TEXT_DOMAIN ),
91
  'parent_item' => null,
92
  'parent_item_colon' => null,
93
- 'edit_item' => __( 'Edit Lead List', INBOUNDNOW_TEXT_DOMAIN ),
94
  'update_item' => __( 'Update Lead List', 'leads' ),
95
  'add_new_item' => __( 'Add New Lead List', 'leads' ),
96
  'new_item_name' => __( 'New Lead List', 'leads' ),
97
  'separate_items_with_commas' => __( 'Separate Lead Lists with commas', 'leads' ),
98
  'add_or_remove_items' => __( 'Add or remove Lead Lists', 'leads' ),
99
- 'choose_from_most_used' => __( 'Choose from the most used lead List', INBOUNDNOW_TEXT_DOMAIN ),
100
  'not_found' => __( 'No Lead Lists found.', 'leads' ),
101
  'menu_name' => __( 'Lead Lists', 'leads' ),
102
  );
@@ -104,7 +135,7 @@ if ( !class_exists('Inbound_Leads') ) {
104
  $list_args = array(
105
  'hierarchical' => true,
106
  'labels' => $list_labels,
107
- 'singular_label' => __( 'List Management', INBOUNDNOW_TEXT_DOMAIN ),
108
  'show_ui' => true,
109
  'show_in_menu' => true,
110
  'show_in_nav_menus' => false,
@@ -341,12 +372,12 @@ if ( !class_exists('Inbound_Leads') ) {
341
 
342
  /* id is required */
343
  if (!isset($id)) {
344
- return array( 'error' => __( 'must include an id parameter', INBOUNDNOW_TEXT_DOMAIN ) );
345
  }
346
 
347
  wp_delete_term( $id, 'wplead_list_category' );
348
 
349
- return array( 'message' => __( 'lead list deleted', INBOUNDNOW_TEXT_DOMAIN ) );
350
  }
351
 
352
  /**
@@ -491,8 +522,8 @@ if ( !class_exists('Inbound_Leads') ) {
491
  return;
492
  }
493
 
494
- if (!wpleads_check_active()) {
495
- _e( 'WordPress Leads is not currently installed/activated to view and manage leads please turn it on.', INBOUNDNOW_TEXT_DOMAIN );
496
  }
497
  }
498
 
@@ -519,7 +550,7 @@ if ( !class_exists('Inbound_Leads') ) {
519
 
520
  $count = $query->post_count;
521
 
522
- return sprintf( __( '%d leads', INBOUNDNOW_TEXT_DOMAIN ), $count );
523
 
524
  }
525
 
18
  private function load_hooks() {
19
  /* Register Leads Post Type */
20
  add_action( 'init', array(__CLASS__, 'register_post_type' ));
21
+ add_action( 'admin_init' , array( __CLASS__ , 'register_role_capabilities' ) ,999);
22
  add_action( 'init', array(__CLASS__, 'register_taxonomies' ));
23
 
24
  /* Modify columns on lead list creation page */
60
  'show_ui' => true,
61
  'query_var' => true,
62
  'menu_icon' => INBOUNDNOW_SHARED_URLPATH . 'assets/images/global/leads.png',
63
+ 'capability_type' => array('lead','leads'),
64
+ 'map_meta_cap' => true,
65
  'hierarchical' => false,
66
  'menu_position' => 31,
67
  'supports' => array('custom-fields','thumbnail')
73
 
74
  }
75
 
76
+ /**
77
+ * Register Role Capabilities
78
+ */
79
+ public static function register_role_capabilities() {
80
+ // Add the roles you'd like to administer the custom post types
81
+ $roles = array('inbound_marketer','editor','administrator');
82
+
83
+ // Loop through each role and assign capabilities
84
+ foreach($roles as $the_role) {
85
+
86
+ $role = get_role($the_role);
87
+ if (!$role) {
88
+ continue;
89
+ }
90
+
91
+ $role->add_cap( 'read' );
92
+ $role->add_cap( 'read_lead');
93
+ $role->add_cap( 'read_private_leads' );
94
+ $role->add_cap( 'edit_lead' );
95
+ $role->add_cap( 'edit_leads' );
96
+ $role->add_cap( 'edit_others_leads' );
97
+ $role->add_cap( 'edit_published_leads' );
98
+ $role->add_cap( 'publish_leads' );
99
+ $role->add_cap( 'delete_others_leads' );
100
+ $role->add_cap( 'delete_private_leads' );
101
+ $role->add_cap( 'delete_published_leads' );
102
+ }
103
+ }
104
+
105
  /**
106
  * Register Category Taxonomy
107
  */
116
  $list_labels = array(
117
  'name' => __( 'Lead Lists', 'inbound-pro' ),
118
  'singular_name' => __( 'Lead List', 'inbound-pro' ),
119
+ 'search_items' => __( 'Search Lead Lists', 'inbound-pro' ),
120
+ 'popular_items' => __( 'Popular Lead Lists', 'inbound-pro' ),
121
+ 'all_items' => __( 'All Lead Lists', 'inbound-pro' ),
122
  'parent_item' => null,
123
  'parent_item_colon' => null,
124
+ 'edit_item' => __( 'Edit Lead List', 'inbound-pro' ),
125
  'update_item' => __( 'Update Lead List', 'leads' ),
126
  'add_new_item' => __( 'Add New Lead List', 'leads' ),
127
  'new_item_name' => __( 'New Lead List', 'leads' ),
128
  'separate_items_with_commas' => __( 'Separate Lead Lists with commas', 'leads' ),
129
  'add_or_remove_items' => __( 'Add or remove Lead Lists', 'leads' ),
130
+ 'choose_from_most_used' => __( 'Choose from the most used lead List', 'inbound-pro' ),
131
  'not_found' => __( 'No Lead Lists found.', 'leads' ),
132
  'menu_name' => __( 'Lead Lists', 'leads' ),
133
  );
135
  $list_args = array(
136
  'hierarchical' => true,
137
  'labels' => $list_labels,
138
+ 'singular_label' => __( 'List Management', 'inbound-pro' ),
139
  'show_ui' => true,
140
  'show_in_menu' => true,
141
  'show_in_nav_menus' => false,
372
 
373
  /* id is required */
374
  if (!isset($id)) {
375
+ return array( 'error' => __( 'must include an id parameter', 'inbound-pro' ) );
376
  }
377
 
378
  wp_delete_term( $id, 'wplead_list_category' );
379
 
380
+ return array( 'message' => __( 'lead list deleted', 'inbound-pro' ) );
381
  }
382
 
383
  /**
522
  return;
523
  }
524
 
525
+ if (!defined('WPL_CURRENT_VERSION')) {
526
+ _e( 'WordPress Leads is not currently installed/activated to view and manage leads please turn it on.', 'inbound-pro' );
527
  }
528
  }
529
 
550
 
551
  $count = $query->post_count;
552
 
553
+ return sprintf( __( '%d leads', 'inbound-pro' ), $count );
554
 
555
  }
556
 
shared/classes/class.promote.php CHANGED
@@ -56,7 +56,7 @@ class Inbound_Promote {
56
  if ( in_array( $file , $plugins ) ) {
57
  return array_merge(
58
  $links,
59
- array( '<a href="http://www.inboundnow.com/upgrade">'.__( 'UPGRADE TO PRO (FREE)' , INBOUNDNOW_TEXT_DOMAIN ) .'</a>' )
60
  );
61
  }
62
  return $links;
@@ -84,10 +84,10 @@ class Inbound_Promote {
84
  }
85
 
86
  echo '<div class="updated" id="inbound_notice_'.$message_id.'">
87
- <h2>' . __('Help Translate Inbound Now Marketing Plugins', INBOUNDNOW_TEXT_DOMAIN) . '</h2>
88
- <p style="width:80%;">' . sprintf(__('Help translate Inbound Now\'s marketing plugins to your %s native langauge %s!', INBOUNDNOW_TEXT_DOMAIN), '<a href="http://docs.inboundnow.com/guide/inbound-translations-project/" target="_blank">', '</a>') . '</p>
89
- <a class="button button-primary button-large" href="http://www.inboundnow.com/translate-inbound-now/" target="_blank">' . __('Help Translate the plugins', INBOUNDNOW_TEXT_DOMAIN) . '</a>
90
- <a class="button button-large inbound_dismiss" href="#" id="'.$message_id.'" data-notification-id="'.$message_id.'" >' . __('No Thanks', INBOUNDNOW_TEXT_DOMAIN) . '</a>
91
  <br><br>
92
  </div>';
93
 
@@ -119,17 +119,17 @@ class Inbound_Promote {
119
  echo '<div class="updated" id="inbound_notice_'.$message_id.'">
120
  <h1>A friendly message from Inbound Now</h1>
121
  <p style="width:80%;">
122
- '.__('Hello there!' , INBOUNDNOW_TEXT_DOMAIN ) .'
123
  </p>
124
  <p style="width:80%;">
125
- ' . __('We noticed you are using a stand alone version of an Inbound Now plugin. Did you know we provide a more powerful free plugin that includes this one and offers a lot more? ' , INBOUNDNOW_TEXT_DOMAIN ) .'
126
  </p>
127
  <p style="width:80%;">
128
- ' . __('It\'s free, and we invite you to try it.' , INBOUNDNOW_TEXT_DOMAIN ) .'
129
  </p>
130
  <br>
131
- <a class="button button-primary button-large" href="http://www.inboundnow.com/upgrade/" target="_blank">' . __('Upgrade', INBOUNDNOW_TEXT_DOMAIN) . '</a>
132
- <a class="button button-default button-large inbound_dismiss" href="#" id="'.$message_id.'" data-notification-id="'.$message_id.'" >' . __('Dismiss this message', INBOUNDNOW_TEXT_DOMAIN) . '</a>
133
  <br>
134
  <br>
135
  </div>';
@@ -156,18 +156,18 @@ class Inbound_Promote {
156
  }
157
 
158
  echo '<div class="updated" id="inbound_notice_'.$message_id.'">
159
- <h1>'.__('Want to view collected data?' , INBOUNDNOW_TEXT_DOMAIN ) .'</h1>
160
 
161
  <p style="width:80%;">
162
- ' . __('You are collecting data, why not review it? Our Leads plugin helps you mange the data you collect with these forms. Leads plugin is available via the WordPress plugin\'s directory as well as included in our free Inbound Pro plugin. We recommend Inbound Pro because it provides better settings management and additional free features. ' , INBOUNDNOW_TEXT_DOMAIN ) .'
163
  </p>
164
  <p style="width:80%;">
165
- ' . __('Both are free, and we invite you to try them!' , INBOUNDNOW_TEXT_DOMAIN ) .'
166
  </p>
167
  <br>
168
- <a class="button button-primary button-large" href="'.admin_url('plugin-install.php?tab=search&s=leads').'" >' . __('Download Leads Plugin', INBOUNDNOW_TEXT_DOMAIN) . '</a>
169
- <a class="button button-primary button-large" href="http://www.inboundnow.com/upgrade/" target="_blank">' . __('Download Inbound Pro (recommended)', INBOUNDNOW_TEXT_DOMAIN) . '</a>
170
- <a class="button button-default button-large inbound_dismiss" href="#" id="'.$message_id.'" data-notification-id="'.$message_id.'" >' . __('Dismiss this message', INBOUNDNOW_TEXT_DOMAIN) . '</a>
171
  <br>
172
  <br>
173
  </div>';
56
  if ( in_array( $file , $plugins ) ) {
57
  return array_merge(
58
  $links,
59
+ array( '<a href="http://www.inboundnow.com/upgrade">'.__( 'UPGRADE TO PRO (FREE)' , 'inbound-pro' ) .'</a>' )
60
  );
61
  }
62
  return $links;
84
  }
85
 
86
  echo '<div class="updated" id="inbound_notice_'.$message_id.'">
87
+ <h2>' . __('Help Translate Inbound Now Marketing Plugins', 'inbound-pro') . '</h2>
88
+ <p style="width:80%;">' . sprintf(__('Help translate Inbound Now\'s marketing plugins to your %s native langauge %s!', 'inbound-pro'), '<a href="http://docs.inboundnow.com/guide/inbound-translations-project/" target="_blank">', '</a>') . '</p>
89
+ <a class="button button-primary button-large" href="http://www.inboundnow.com/translate-inbound-now/" target="_blank">' . __('Help Translate the plugins', 'inbound-pro') . '</a>
90
+ <a class="button button-large inbound_dismiss" href="#" id="'.$message_id.'" data-notification-id="'.$message_id.'" >' . __('No Thanks', 'inbound-pro') . '</a>
91
  <br><br>
92
  </div>';
93
 
119
  echo '<div class="updated" id="inbound_notice_'.$message_id.'">
120
  <h1>A friendly message from Inbound Now</h1>
121
  <p style="width:80%;">
122
+ '.__('Hello there!' , 'inbound-pro' ) .'
123
  </p>
124
  <p style="width:80%;">
125
+ ' . __('We noticed you are using a stand alone version of an Inbound Now plugin. Did you know we provide a more powerful free plugin that includes this one and offers a lot more? ' , 'inbound-pro' ) .'
126
  </p>
127
  <p style="width:80%;">
128
+ ' . __('It\'s free, and we invite you to try it.' , 'inbound-pro' ) .'
129
  </p>
130
  <br>
131
+ <a class="button button-primary button-large" href="http://www.inboundnow.com/upgrade/" target="_blank">' . __('Upgrade', 'inbound-pro') . '</a>
132
+ <a class="button button-default button-large inbound_dismiss" href="#" id="'.$message_id.'" data-notification-id="'.$message_id.'" >' . __('Dismiss this message', 'inbound-pro') . '</a>
133
  <br>
134
  <br>
135
  </div>';
156
  }
157
 
158
  echo '<div class="updated" id="inbound_notice_'.$message_id.'">
159
+ <h1>'.__('Want to view collected data?' , 'inbound-pro' ) .'</h1>
160
 
161
  <p style="width:80%;">
162
+ ' . __('You are collecting data, why not review it? Our Leads plugin helps you mange the data you collect with these forms. Leads plugin is available via the WordPress plugin\'s directory as well as included in our free Inbound Pro plugin. We recommend Inbound Pro because it provides better settings management and additional free features. ' , 'inbound-pro' ) .'
163
  </p>
164
  <p style="width:80%;">
165
+ ' . __('Both are free, and we invite you to try them!' , 'inbound-pro' ) .'
166
  </p>
167
  <br>
168
+ <a class="button button-primary button-large" href="'.admin_url('plugin-install.php?tab=search&s=leads').'" >' . __('Download Leads Plugin', 'inbound-pro') . '</a>
169
+ <a class="button button-primary button-large" href="http://www.inboundnow.com/upgrade/" target="_blank">' . __('Download Inbound Pro (recommended)', 'inbound-pro') . '</a>
170
+ <a class="button button-default button-large inbound_dismiss" href="#" id="'.$message_id.'" data-notification-id="'.$message_id.'" >' . __('Dismiss this message', 'inbound-pro') . '</a>
171
  <br>
172
  <br>
173
  </div>';
shared/classes/class.shortcodes.email-template.php CHANGED
@@ -33,7 +33,7 @@ class Inbound_Email_Template_Shortcodes {
33
  $html = '';
34
 
35
  $post_params = apply_filters( 'inbound-email-post-params', $_POST);
36
- $blacklist = array('g-recaptcha-response','inbound_submitted', 'inbound_notify', 'inbound_params', 'inbound_furl', 'stop_dirty_subs', 'page_id');
37
 
38
  /* Parse out UTM Params */
39
  if(isset($_POST['inbound_params']) && $_POST['inbound_params'] != "") {
33
  $html = '';
34
 
35
  $post_params = apply_filters( 'inbound-email-post-params', $_POST);
36
+ $blacklist = array('g-recaptcha-response','inbound_submitted', 'inbound_notify', 'inbound_params', 'inbound_furl', 'phone_xoxo', 'page_id');
37
 
38
  /* Parse out UTM Params */
39
  if(isset($_POST['inbound_params']) && $_POST['inbound_params'] != "") {
shared/shortcodes/inbound-shortcodes.php CHANGED
@@ -585,7 +585,7 @@ class Inbound_Shortcodes {
585
  <div id="cpt-form-shortcode"><?php echo $popup;?></div>
586
  <div id="cpt-form-serialize-default"><?php echo $form_serialize;?></div>
587
  <div id="form-leads-list">
588
- <h2><?php _e( 'Form Conversions' , INBOUNDNOW_TEXT_DOMAIN ); ?></h2>
589
  <ol id="form-lead-ul">
590
  <?php
591
 
@@ -594,11 +594,11 @@ class Inbound_Shortcodes {
594
  $lead_conversion_list = json_decode($lead_conversion_list,true);
595
  foreach ($lead_conversion_list as $key => $value) {
596
  $email = $lead_conversion_list[$key]['email'];
597
- echo '<li><a title="'.__( 'View this Lead' , INBOUNDNOW_TEXT_DOMAIN ) .'" href="'.esc_url( admin_url( add_query_arg( array( 'post_type' => 'wp-lead', 'lead-email-redirect' => $email ), 'edit.php' ) ) ).'">'.$lead_conversion_list[$key]['email'].'</a></li>';
598
  }
599
 
600
  } else {
601
- echo '<span id="no-conversions">'. __( 'No Conversions Yet!' , INBOUNDNOW_TEXT_DOMAIN ) .'</span>';
602
  }
603
  ?>
604
  </ol>
@@ -608,17 +608,17 @@ class Inbound_Shortcodes {
608
 
609
  if (defined('INBOUND_PRO_PATH')) {
610
  ?>
611
- <h3><?php _e( 'Inbound Pro Users' , INBOUNDNOW_TEXT_DOMAIN ); ?></h3>
612
  <div class='' style='padding-left:20px;'>
613
 
614
- <?php echo sprintf( __( 'To learn how to creat a follow email series please referrer to %s this document %s. ' , INBOUNDNOW_TEXT_DOMAIN ) , '<a href="http://docs.inboundnow.com/guide/creating-a-follow-up-email-using-inbound-now-as-an-autoresponder-marketing-automation/">', '</a>') ; ?>
615
  </div>
616
  <br>
617
  <?php
618
  }
619
  ?>
620
 
621
- <h2><?php _e( 'Set Email Response to Send to the person filling out the form' , INBOUNDNOW_TEXT_DOMAIN ); ?></h2>
622
  <?php
623
  $values = get_post_custom( $post->ID );
624
  $selected = isset( $values['inbound_email_send_notification'] ) ? esc_attr( $values['inbound_email_send_notification'][0] ) : "";
585
  <div id="cpt-form-shortcode"><?php echo $popup;?></div>
586
  <div id="cpt-form-serialize-default"><?php echo $form_serialize;?></div>
587
  <div id="form-leads-list">
588
+ <h2><?php _e( 'Form Conversions' , 'inbound-pro' ); ?></h2>
589
  <ol id="form-lead-ul">
590
  <?php
591
 
594
  $lead_conversion_list = json_decode($lead_conversion_list,true);
595
  foreach ($lead_conversion_list as $key => $value) {
596
  $email = $lead_conversion_list[$key]['email'];
597
+ echo '<li><a title="'.__( 'View this Lead' , 'inbound-pro' ) .'" href="'.esc_url( admin_url( add_query_arg( array( 'post_type' => 'wp-lead', 'lead-email-redirect' => $email ), 'edit.php' ) ) ).'">'.$lead_conversion_list[$key]['email'].'</a></li>';
598
  }
599
 
600
  } else {
601
+ echo '<span id="no-conversions">'. __( 'No Conversions Yet!' , 'inbound-pro' ) .'</span>';
602
  }
603
  ?>
604
  </ol>
608
 
609
  if (defined('INBOUND_PRO_PATH')) {
610
  ?>
611
+ <h3><?php _e( 'Inbound Pro Users' , 'inbound-pro' ); ?></h3>
612
  <div class='' style='padding-left:20px;'>
613
 
614
+ <?php echo sprintf( __( 'To learn how to creat a follow email series please referrer to %s this document %s. ' , 'inbound-pro' ) , '<a href="http://docs.inboundnow.com/guide/creating-a-follow-up-email-using-inbound-now-as-an-autoresponder-marketing-automation/">', '</a>') ; ?>
615
  </div>
616
  <br>
617
  <?php
618
  }
619
  ?>
620
 
621
+ <h2><?php _e( 'Set Email Response to Send to the person filling out the form' , 'inbound-pro' ); ?></h2>
622
  <?php
623
  $values = get_post_custom( $post->ID );
624
  $selected = isset( $values['inbound_email_send_notification'] ) ? esc_attr( $values['inbound_email_send_notification'][0] ) : "";
shared/shortcodes/js/form-cpt.js CHANGED
@@ -157,17 +157,33 @@ jQuery(document).ready(function ($) {
157
 
158
  jQuery('body').on('change', 'select[data-field-name="map_to"]', function () {
159
  console.log('changed mapping');
160
- var values = [];
161
- jQuery('select[data-field-name="map_to"]').each(function(){
162
- var value = jQuery(this).val();
163
- var a = values.indexOf(value);
164
  if (a != -1) {
165
- alert('Warning You have already mapped the ' + value + ' field. You can only map a field one time.');
166
  }
167
  values.push(value);
168
 
169
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
170
 
171
  });
172
 
 
173
  });
157
 
158
  jQuery('body').on('change', 'select[data-field-name="map_to"]', function () {
159
  console.log('changed mapping');
160
+ var values = [];
161
+ jQuery('select[data-field-name="map_to"]').each(function(){
162
+ var value = jQuery(this).val();
163
+ var a = values.indexOf(value);
164
  if (a != -1) {
165
+ alert('Warning You have already mapped the ' + value + ' field. You can only map a field one time.');
166
  }
167
  values.push(value);
168
 
169
+ });
170
+
171
+ });
172
+
173
+ jQuery('body').on('change', 'select[data-field-name="map_to"]', function () {
174
+ console.log('changed mapping');
175
+ var values = [];
176
+ jQuery('select[data-field-name="map_to"]').each(function(){
177
+ var value = jQuery(this).val();
178
+ var a = values.indexOf(value);
179
+ if (a != -1) {
180
+ alert('Warning You have already mapped the ' + value + ' field. You can only map a field one time.');
181
+ }
182
+ values.push(value);
183
+
184
+ });
185
 
186
  });
187
 
188
+
189
  });
shared/shortcodes/js/shortcodes.js CHANGED
@@ -356,8 +356,12 @@ var InboundShortcodes = {
356
  jQuery('body').trigger("inbound_forms_data_ready");
357
  jQuery.data(this, 'current', jQuery(this).val());
358
 
359
-
360
-
 
 
 
 
361
  },
362
 
363
  error: function (MLHttpRequest, textStatus, errorThrown) {
356
  jQuery('body').trigger("inbound_forms_data_ready");
357
  jQuery.data(this, 'current', jQuery(this).val());
358
 
359
+ /* Make sure field type options are revealed */
360
+ setTimeout(function() {
361
+ jQuery('[data-field-name="field_type"]').each(function () {
362
+ jQuery(this).trigger('change');
363
+ });
364
+ } , 1000 );
365
  },
366
 
367
  error: function (MLHttpRequest, textStatus, errorThrown) {
shared/shortcodes/shortcodes/forms.php CHANGED
@@ -17,24 +17,24 @@ $shortcodes_config['forms'] = array(
17
  'no_preview' => false,
18
  'options' => array(
19
  'insert_default' => array(
20
- 'name' => __('Choose Starting Template', INBOUNDNOW_TEXT_DOMAIN ),
21
- 'desc' => __('Start Building Your Form from premade templates', INBOUNDNOW_TEXT_DOMAIN ),
22
  'type' => 'select',
23
  'options' => $form_names,
24
  'std' => 'none',
25
  'class' => 'main-form-settings',
26
  ),
27
  'form_name' => array(
28
- 'name' => __('Form Name<span class="small-required-text">*</span>', INBOUNDNOW_TEXT_DOMAIN ),
29
- 'desc' => __('This is for internal use and is not shown to visitors', INBOUNDNOW_TEXT_DOMAIN ),
30
  'type' => 'text',
31
  'placeholder' => "Example: XYZ Whitepaper Download",
32
  'std' => '',
33
  'class' => 'main-form-settings',
34
  ),
35
  /*'confirmation' => array(
36
- 'name' => __('Form Layout', INBOUNDNOW_TEXT_DOMAIN ),
37
- 'desc' => __('Choose Your Form Layout', INBOUNDNOW_TEXT_DOMAIN ),
38
  'type' => 'select',
39
  'options' => array(
40
  "redirect" => "Redirect After Form Completion",
@@ -43,8 +43,8 @@ $shortcodes_config['forms'] = array(
43
  'std' => 'redirect'
44
  ),*/
45
  'redirect' => array(
46
- 'name' => __('Redirect URL<span class="small-required-text">*</span>', INBOUNDNOW_TEXT_DOMAIN ),
47
- 'desc' => __('Where do you want to send people after they fill out the form? Please note: http:// is required.', INBOUNDNOW_TEXT_DOMAIN ),
48
  'type' => 'text',
49
  'placeholder' => "http://www.yoursite.com/thank-you",
50
  'std' => '',
@@ -52,61 +52,61 @@ $shortcodes_config['forms'] = array(
52
  'class' => 'main-form-settings',
53
  ),
54
  /*'thank_you_text' => array(
55
- 'name' => __('Field Description <span class="small-optional-text">(optional)</span>', INBOUNDNOW_TEXT_DOMAIN ),
56
- 'desc' => __('Put field description here.', INBOUNDNOW_TEXT_DOMAIN ),
57
  'type' => 'textarea',
58
  'std' => '',
59
  'class' => 'advanced',
60
  'reveal_on' => 'text'
61
  ), */
62
  'notify' => array(
63
- 'name' => __('Notify on Form Completions<span class="small-required-text">*</span>', INBOUNDNOW_TEXT_DOMAIN ),
64
- 'desc' => __('Who should get admin notifications on this form?<br>For multiple notifications separate email addresses with commas', INBOUNDNOW_TEXT_DOMAIN ),
65
  'type' => 'text',
66
  'placeholder' => "youremail@email.com",
67
  'std' => '',
68
  'class' => 'main-form-settings',
69
  ),
70
  'notify_subject' => array(
71
- 'name' => __('Admin Email Subject Line<span class="small-required-text">*</span>', INBOUNDNOW_TEXT_DOMAIN ),
72
- 'desc' => __('Customize the subject line of email notifications arriving from this form. default: {{site-name}} {{form-name}} - New Lead Conversion', INBOUNDNOW_TEXT_DOMAIN ),
73
  'type' => 'text',
74
  'std' => "{{site-name}} {{form-name}} - New Lead Conversion",
75
  'palceholder' => '{{site-name}} {{form-name}} - New Lead Conversion',
76
  'class' => 'main-form-settings',
77
  ),
78
  'lists' => array(
79
- 'name' => __('Add to List(s)', INBOUNDNOW_TEXT_DOMAIN ),
80
- 'desc' => __('Add the converting lead to 1 or more lead lists', INBOUNDNOW_TEXT_DOMAIN ),
81
  'type' => 'leadlists',
82
  'options' => $lead_list_names,
83
  'class' => 'main-form-settings exclude-from-refresh',
84
  ),
85
 
86
  'lists_hidden' => array(
87
- 'name' => __('Hidden List Values', INBOUNDNOW_TEXT_DOMAIN ),
88
- 'desc' => __('Hidden list values', INBOUNDNOW_TEXT_DOMAIN ),
89
  'type' => 'hidden',
90
  'class' => 'main-form-settings exclude-from-refresh',
91
  ),
92
 
93
  'helper-block-one' => array(
94
- 'name' => __('Name Name Name', INBOUNDNOW_TEXT_DOMAIN ),
95
- 'desc' => __('<span class="switch-to-form-insert button">Cancel Form Creation & Insert Existing Form</span>', INBOUNDNOW_TEXT_DOMAIN ),
96
  'type' => 'helper-block',
97
  'std' => '',
98
  'class' => 'main-form-settings',
99
  ),
100
  'heading_design' => array(
101
- 'name' => __('Name Name Name', INBOUNDNOW_TEXT_DOMAIN ),
102
- 'desc' => __('Layout Options', INBOUNDNOW_TEXT_DOMAIN ),
103
  'type' => 'helper-block',
104
  'std' => '',
105
  'class' => 'main-design-settings',
106
  ),
107
  'layout' => array(
108
- 'name' => __('Form Layout', INBOUNDNOW_TEXT_DOMAIN ),
109
- 'desc' => __('Choose Your Form Layout', INBOUNDNOW_TEXT_DOMAIN ),
110
  'type' => 'select',
111
  'options' => array(
112
  "vertical" => "Vertical",
@@ -116,8 +116,8 @@ $shortcodes_config['forms'] = array(
116
  'class' => 'main-design-settings',
117
  ),
118
  'labels' => array(
119
- 'name' => __('Label Alignment', INBOUNDNOW_TEXT_DOMAIN ),
120
- 'desc' => __('Choose Label Layout', INBOUNDNOW_TEXT_DOMAIN ),
121
  'type' => 'select',
122
  'options' => array(
123
  "top" => "Labels on Top",
@@ -129,30 +129,30 @@ $shortcodes_config['forms'] = array(
129
  'class' => 'main-design-settings',
130
  ),
131
  'font-size' => array(
132
- 'name' => __('Form Font Size', INBOUNDNOW_TEXT_DOMAIN ),
133
- 'desc' => __('Size of Label Font. This also determines default submit button size', INBOUNDNOW_TEXT_DOMAIN ),
134
  'type' => 'text',
135
  'std' => '16',
136
  'class' => 'main-design-settings',
137
  ),
138
  'icon' => array(
139
- 'name' => __('Submit Button Icon', INBOUNDNOW_TEXT_DOMAIN ),
140
- 'desc' => __('Select an icon.', INBOUNDNOW_TEXT_DOMAIN ),
141
  'type' => 'select',
142
  'options' => $fontawesome,
143
  'std' => 'none',
144
  'class' => 'main-design-settings'
145
  ),
146
  'submit' => array(
147
- 'name' => __('Submit Button Text', INBOUNDNOW_TEXT_DOMAIN ),
148
- 'desc' => __('Enter the text you want to show on the submit button. (or a link to a custom submit button image)', INBOUNDNOW_TEXT_DOMAIN ),
149
  'type' => 'text',
150
  'std' => 'Submit',
151
  'class' => 'main-design-settings',
152
  ),
153
  'submit-colors' => array(
154
- 'name' => __('Submit Color Options', INBOUNDNOW_TEXT_DOMAIN ),
155
- 'desc' => __('Choose Your Form Layout', INBOUNDNOW_TEXT_DOMAIN ),
156
  'type' => 'select',
157
  'options' => array(
158
  "on" => "Color Options On",
@@ -162,22 +162,22 @@ $shortcodes_config['forms'] = array(
162
  'class' => 'main-design-settings',
163
  ),
164
  'submit-text-color' => array(
165
- 'name' => __('Button Text Color', INBOUNDNOW_TEXT_DOMAIN ),
166
- 'desc' => __('Color of text. Must toggle on "Submit Color Options" on', INBOUNDNOW_TEXT_DOMAIN ),
167
  'type' => 'colorpicker',
168
  'std' => '#434242',
169
  'class' => 'main-design-settings',
170
  ),
171
  'submit-bg-color' => array(
172
- 'name' => __('Button BG Color', INBOUNDNOW_TEXT_DOMAIN ),
173
- 'desc' => __('Background color of button. Must toggle on "Submit Color Options" on', INBOUNDNOW_TEXT_DOMAIN ),
174
  'type' => 'colorpicker',
175
  'std' => '#E9E9E9',
176
  'class' => 'main-design-settings',
177
  ),
178
  'width' => array(
179
- 'name' => __('Custom Width', INBOUNDNOW_TEXT_DOMAIN ),
180
- 'desc' => __('Enter in pixel width or % width. Example: 400 <u>or</u> 100%', INBOUNDNOW_TEXT_DOMAIN ),
181
  'type' => 'text',
182
  'std' => '',
183
  'class' => 'main-design-settings',
@@ -186,161 +186,161 @@ $shortcodes_config['forms'] = array(
186
  'child' => array(
187
  'options' => array(
188
  'label' => array(
189
- 'name' => __('Field Label', INBOUNDNOW_TEXT_DOMAIN ),
190
  'desc' => '',
191
  'type' => 'text',
192
  'std' => '',
193
  'placeholder' => __("Enter the Form Field Label. Example: First Name" , "leads" )
194
  ),
195
  'field_type' => array(
196
- 'name' => __('Field Type', INBOUNDNOW_TEXT_DOMAIN ),
197
- 'desc' => __('Select an form field type', INBOUNDNOW_TEXT_DOMAIN ),
198
  'type' => 'select',
199
  'options' => array(
200
- "text" => __('Single Line Text' , INBOUNDNOW_TEXT_DOMAIN ),
201
- 'textarea' => __('Paragraph Field' , INBOUNDNOW_TEXT_DOMAIN ),
202
- 'dropdown' => __('Dropdown - Custom' , INBOUNDNOW_TEXT_DOMAIN ),
203
- 'dropdown_countries' => __('Dropdown - Countries' , INBOUNDNOW_TEXT_DOMAIN ),
204
- 'radio' => __('Radio Select' , INBOUNDNOW_TEXT_DOMAIN ),
205
- 'checkbox' => __('Checkbox' , INBOUNDNOW_TEXT_DOMAIN ),
206
- 'html-block' => __('HTML Block' , INBOUNDNOW_TEXT_DOMAIN ),
207
- 'divider' => __('Divider' , INBOUNDNOW_TEXT_DOMAIN ),
208
- 'date-selector' => __('Date Dropdown Selection' , INBOUNDNOW_TEXT_DOMAIN ),
209
- 'date' => __('Date Picker Field' , INBOUNDNOW_TEXT_DOMAIN ),
210
- 'range' => __('Range Field' , INBOUNDNOW_TEXT_DOMAIN ),
211
- 'time' => __('Time Pick Field' , INBOUNDNOW_TEXT_DOMAIN ),
212
- 'hidden' => __('Hidden Field' , INBOUNDNOW_TEXT_DOMAIN ),
213
- 'honeypot' => __('Anti Spam Honey Pot' , INBOUNDNOW_TEXT_DOMAIN ),
214
  /*
215
- 'url' => __('URL' , INBOUNDNOW_TEXT_DOMAIN ),
216
- 'email' => __( 'Email' , INBOUNDNOW_TEXT_DOMAIN ),
217
- 'tel' => __( 'Telephone' , INBOUNDNOW_TEXT_DOMAIN ),
218
- 'datetime-local' => __('Date Time Pick Selector Field' , INBOUNDNOW_TEXT_DOMAIN ),
219
- 'file_upload' => __('File Upload' , INBOUNDNOW_TEXT_DOMAIN ),
220
- 'editor' => __('HTML Editor' ,INBOUNDNOW_TEXT_DOMAIN ),
221
- 'multi-select' => __('multi-select' , INBOUNDNOW_TEXT_DOMAIN )
222
  */
223
  ),
224
  'std' => ''
225
  ),
226
 
227
  'dropdown_options' => array(
228
- 'name' => __('Dropdown choices', INBOUNDNOW_TEXT_DOMAIN ),
229
- 'desc' => __('Enter Your Dropdown Options. Separate by commas. You may also use label|value to have a different value than the label stored.', INBOUNDNOW_TEXT_DOMAIN ),
230
  'type' => 'text',
231
  'std' => '',
232
  'placeholder' => __('Choice 1|a, Choice 2, Choice 3' , 'inbound-pro' ),
233
  'reveal_on' => 'dropdown' // on select choice show this
234
  ),
235
  'radio_options' => array(
236
- 'name' => __('Radio Choices', INBOUNDNOW_TEXT_DOMAIN ),
237
- 'desc' => __('Enter Your Radio Options. Separate by commas. You may also use label|value to have a different value than the label stored.', INBOUNDNOW_TEXT_DOMAIN ),
238
  'type' => 'text',
239
  'std' => '',
240
  'placeholder' => 'Choice 1|a, Choice 2',
241
  'reveal_on' => 'radio' // on select choice show this
242
  ),
243
  'checkbox_options' => array(
244
- 'name' => __('Checkbox choices', INBOUNDNOW_TEXT_DOMAIN ),
245
- 'desc' => __('Enter Your Checkbox Options. Separate by commas. You may also use label|value to have a different value than the label stored.', INBOUNDNOW_TEXT_DOMAIN ),
246
  'type' => 'text',
247
  'std' => '',
248
  'placeholder' => __( 'Choice 1|a, Choice 2, Choice 3', 'inbound-pro' ),
249
  'reveal_on' => 'checkbox' // on select choice show this
250
  ),
251
  'html_block_options' => array(
252
- 'name' => __('HTML Block', INBOUNDNOW_TEXT_DOMAIN ),
253
- 'desc' => __('This is a raw HTML block in the form. Insert text/HTML', INBOUNDNOW_TEXT_DOMAIN ),
254
  'type' => 'textarea',
255
  'std' => '',
256
  'reveal_on' => 'html-block' // on select choice show this
257
  ),
258
  'range_options' => array(
259
- 'name' => __('Range Setup', INBOUNDNOW_TEXT_DOMAIN ),
260
- 'desc' => __('Enter the min, max, and steps inside the range input. Separate each with a pipe, eg: min|max|steps', INBOUNDNOW_TEXT_DOMAIN ),
261
  'type' => 'text',
262
  'std' => '',
263
- 'placeholder' => __('0|100|10' , INBOUNDNOW_TEXT_DOMAIN ),
264
  'reveal_on' => 'range' // on select choice show this
265
  ),
266
  'default_value' => array(
267
- 'name' => __('Default Value', INBOUNDNOW_TEXT_DOMAIN ),
268
- 'desc' => __('Enter the Default Value', INBOUNDNOW_TEXT_DOMAIN ),
269
  'type' => 'text',
270
  'std' => '',
271
  'placeholder' => 'Enter Default Value',
272
  'reveal_on' => 'hidden' // on select choice show this
273
  ),
274
  'divider_options' => array(
275
- 'name' => __('Divider Text (optional)', INBOUNDNOW_TEXT_DOMAIN ),
276
- 'desc' => __('This is the text in the divider', INBOUNDNOW_TEXT_DOMAIN ),
277
  'type' => 'text',
278
  'std' => '',
279
  'reveal_on' => 'divider' // on select choice show this
280
  ),
281
  'required' => array(
282
- 'name' => __('Required Field? <span class="small-optional-text">(optional)</span>', INBOUNDNOW_TEXT_DOMAIN ),
283
- 'checkbox_text' => __('Check to make field required', INBOUNDNOW_TEXT_DOMAIN ),
284
  'desc' => '',
285
  'type' => 'checkbox',
286
  'std' => '0',
287
  'class' => '',
288
  ),
289
  'helper' => array(
290
- 'name' => __('Field Description <span class="small-optional-text">(optional)</span>', INBOUNDNOW_TEXT_DOMAIN ),
291
- 'desc' => __('<span class="show-advanced-fields button">Show advanced options</span>', INBOUNDNOW_TEXT_DOMAIN ),
292
  'type' => 'helper-block',
293
  'std' => '',
294
  'class' => '',
295
  ),
296
  'exclude_tracking' => array(
297
- 'name' => __('Exclude Tracking? <span class="small-optional-text">(optional)</span>', INBOUNDNOW_TEXT_DOMAIN ),
298
- 'checkbox_text' => __('Check to exclude this form field from being tracked. Note this will not store in your Database', INBOUNDNOW_TEXT_DOMAIN ),
299
  'desc' => '',
300
  'type' => 'checkbox',
301
  'std' => '0',
302
  'class' => 'advanced',
303
  ),
304
  'map_to' => array(
305
- 'name' => __('Map Field To <span class="small-optional-text">(optional)</span>', INBOUNDNOW_TEXT_DOMAIN ),
306
- 'desc' => __('Map this field to Leads Value', INBOUNDNOW_TEXT_DOMAIN ),
307
  'type' => 'select',
308
  'options' => $lead_mapping_fields,
309
  'std' => 'none',
310
  'class' => 'advanced exclude',
311
  ),
312
  'placeholder' => array(
313
- 'name' => __('Field Placeholder <span class="small-optional-text">(optional)</span>', INBOUNDNOW_TEXT_DOMAIN ),
314
- 'desc' => __('Put field placeholder text here. Only works for normal text inputs', INBOUNDNOW_TEXT_DOMAIN ),
315
  'type' => 'text',
316
  'std' => '',
317
  'class' => 'advanced',
318
  ),
319
  'description' => array(
320
- 'name' => __('Field Description <span class="small-optional-text">(optional)</span>', INBOUNDNOW_TEXT_DOMAIN ),
321
- 'desc' => __('Put field description here.', INBOUNDNOW_TEXT_DOMAIN ),
322
  'type' => 'textarea',
323
  'std' => '',
324
  'class' => 'advanced',
325
  ),
326
  'field_container_class' => array(
327
- 'name' => __('Field Container Classes <span class="small-optional-text">(optional)</span>', INBOUNDNOW_TEXT_DOMAIN ),
328
- 'desc' => __('Add additional class ids to the div that contains this field. Separate classes with spaces.', INBOUNDNOW_TEXT_DOMAIN ),
329
  'type' => 'text',
330
  'std' => '',
331
  'class' => 'advanced',
332
  ),
333
  'field_input_class' => array(
334
- 'name' => __('Field Input Classes <span class="small-optional-text">(optional)</span>', INBOUNDNOW_TEXT_DOMAIN ),
335
- 'desc' => __('Add additional class ids to this input field. Separate classes with spaces.', INBOUNDNOW_TEXT_DOMAIN ),
336
  'type' => 'text',
337
  'std' => '',
338
  'class' => 'advanced',
339
  ),
340
 
341
  'hidden_input_options' => array(
342
- 'name' => __('Dynamic Field Filling <span class="small-optional-text">(optional)</span>', INBOUNDNOW_TEXT_DOMAIN ),
343
- 'desc' => __('Enter Your Dynamic URL parameter', INBOUNDNOW_TEXT_DOMAIN ),
344
  'type' => 'text',
345
  'std' => '',
346
  'placeholder' => 'enter dynamic url parameter example: utm_campaign ',
@@ -349,7 +349,7 @@ $shortcodes_config['forms'] = array(
349
  )
350
  ),
351
  'shortcode' => '[inbound_field label="{{label}}" type="{{field_type}}" description="{{description}}" required="{{required}}" exclude_tracking={{exclude_tracking}} dropdown="{{dropdown_options}}" radio="{{radio_options}}" checkbox="{{checkbox_options}}" range="{{range_options}}" placeholder="{{placeholder}}" field_container_class="{{field_container_class}}" field_input_class="{{field_input_class}}" html="{{html_block_options}}" dynamic="{{hidden_input_options}}" default="{{default_value}}" map_to="{{map_to}}" divider_options="{{divider_options}}"]',
352
- 'clone' => __('Add Another Field', INBOUNDNOW_TEXT_DOMAIN )
353
  ),
354
  'shortcode' => '[inbound_form name="{{form_name}}" lists="{{lists_hidden}}" redirect="{{redirect}}" notify="{{notify}}" notify_subject="{{notify_subject}}" layout="{{layout}}" font_size="{{font-size}}" labels="{{labels}}" icon="{{icon}}" submit="{{submit}}" submit="{{submit}}" submit_colors="{{submit-colors}}" submit_text_color="{{submit-text-color}}" submit_bg_color="{{submit-bg-color}}" width="{{width}}"]{{child}}[/inbound_form]',
355
  'popup_title' => 'Insert Inbound Form Shortcode'
17
  'no_preview' => false,
18
  'options' => array(
19
  'insert_default' => array(
20
+ 'name' => __('Choose Starting Template', 'inbound-pro' ),
21
+ 'desc' => __('Start Building Your Form from premade templates', 'inbound-pro' ),
22
  'type' => 'select',
23
  'options' => $form_names,
24
  'std' => 'none',
25
  'class' => 'main-form-settings',
26
  ),
27
  'form_name' => array(
28
+ 'name' => __('Form Name<span class="small-required-text">*</span>', 'inbound-pro' ),
29
+ 'desc' => __('This is for internal use and is not shown to visitors', 'inbound-pro' ),
30
  'type' => 'text',
31
  'placeholder' => "Example: XYZ Whitepaper Download",
32
  'std' => '',
33
  'class' => 'main-form-settings',
34
  ),
35
  /*'confirmation' => array(
36
+ 'name' => __('Form Layout', 'inbound-pro' ),
37
+ 'desc' => __('Choose Your Form Layout', 'inbound-pro' ),
38
  'type' => 'select',
39
  'options' => array(
40
  "redirect" => "Redirect After Form Completion",
43
  'std' => 'redirect'
44
  ),*/
45
  'redirect' => array(
46
+ 'name' => __('Redirect URL<span class="small-required-text">*</span>', 'inbound-pro' ),
47
+ 'desc' => __('Where do you want to send people after they fill out the form? Please note: http:// is required.', 'inbound-pro' ),
48
  'type' => 'text',
49
  'placeholder' => "http://www.yoursite.com/thank-you",
50
  'std' => '',
52
  'class' => 'main-form-settings',
53
  ),
54
  /*'thank_you_text' => array(
55
+ 'name' => __('Field Description <span class="small-optional-text">(optional)</span>', 'inbound-pro' ),
56
+ 'desc' => __('Put field description here.', 'inbound-pro' ),
57
  'type' => 'textarea',
58
  'std' => '',
59
  'class' => 'advanced',
60
  'reveal_on' => 'text'
61
  ), */
62
  'notify' => array(
63
+ 'name' => __('Notify on Form Completions<span class="small-required-text">*</span>', 'inbound-pro' ),
64
+ 'desc' => __('Who should get admin notifications on this form?<br>For multiple notifications separate email addresses with commas', 'inbound-pro' ),
65
  'type' => 'text',
66
  'placeholder' => "youremail@email.com",
67
  'std' => '',
68
  'class' => 'main-form-settings',
69
  ),
70
  'notify_subject' => array(
71
+ 'name' => __('Admin Email Subject Line<span class="small-required-text">*</span>', 'inbound-pro' ),
72
+ 'desc' => __('Customize the subject line of email notifications arriving from this form. default: {{site-name}} {{form-name}} - New Lead Conversion', 'inbound-pro' ),
73
  'type' => 'text',
74
  'std' => "{{site-name}} {{form-name}} - New Lead Conversion",
75
  'palceholder' => '{{site-name}} {{form-name}} - New Lead Conversion',
76
  'class' => 'main-form-settings',
77
  ),
78
  'lists' => array(
79
+ 'name' => __('Add to List(s)', 'inbound-pro' ),
80
+ 'desc' => __('Add the converting lead to 1 or more lead lists', 'inbound-pro' ),
81
  'type' => 'leadlists',
82
  'options' => $lead_list_names,
83
  'class' => 'main-form-settings exclude-from-refresh',
84
  ),
85
 
86
  'lists_hidden' => array(
87
+ 'name' => __('Hidden List Values', 'inbound-pro' ),
88
+ 'desc' => __('Hidden list values', 'inbound-pro' ),
89
  'type' => 'hidden',
90
  'class' => 'main-form-settings exclude-from-refresh',
91
  ),
92
 
93
  'helper-block-one' => array(
94
+ 'name' => __('Name Name Name', 'inbound-pro' ),
95
+ 'desc' => __('<span class="switch-to-form-insert button">Cancel Form Creation & Insert Existing Form</span>', 'inbound-pro' ),
96
  'type' => 'helper-block',
97
  'std' => '',
98
  'class' => 'main-form-settings',
99
  ),
100
  'heading_design' => array(
101
+ 'name' => __('Name Name Name', 'inbound-pro' ),
102
+ 'desc' => __('Layout Options', 'inbound-pro' ),
103
  'type' => 'helper-block',
104
  'std' => '',
105
  'class' => 'main-design-settings',
106
  ),
107
  'layout' => array(
108
+ 'name' => __('Form Layout', 'inbound-pro' ),
109
+ 'desc' => __('Choose Your Form Layout', 'inbound-pro' ),
110
  'type' => 'select',
111
  'options' => array(
112
  "vertical" => "Vertical",
116
  'class' => 'main-design-settings',
117
  ),
118
  'labels' => array(
119
+ 'name' => __('Label Alignment', 'inbound-pro' ),
120
+ 'desc' => __('Choose Label Layout', 'inbound-pro' ),
121
  'type' => 'select',
122
  'options' => array(
123
  "top" => "Labels on Top",
129
  'class' => 'main-design-settings',
130
  ),
131
  'font-size' => array(
132
+ 'name' => __('Form Font Size', 'inbound-pro' ),
133
+ 'desc' => __('Size of Label Font. This also determines default submit button size', 'inbound-pro' ),
134
  'type' => 'text',
135
  'std' => '16',
136
  'class' => 'main-design-settings',
137
  ),
138
  'icon' => array(
139
+ 'name' => __('Submit Button Icon', 'inbound-pro' ),
140
+ 'desc' => __('Select an icon.', 'inbound-pro' ),
141
  'type' => 'select',
142
  'options' => $fontawesome,
143
  'std' => 'none',
144
  'class' => 'main-design-settings'
145
  ),
146
  'submit' => array(
147
+ 'name' => __('Submit Button Text', 'inbound-pro' ),
148
+ 'desc' => __('Enter the text you want to show on the submit button. (or a link to a custom submit button image)', 'inbound-pro' ),
149
  'type' => 'text',
150
  'std' => 'Submit',
151
  'class' => 'main-design-settings',
152
  ),
153
  'submit-colors' => array(
154
+ 'name' => __('Submit Color Options', 'inbound-pro' ),
155
+ 'desc' => __('Choose Your Form Layout', 'inbound-pro' ),
156
  'type' => 'select',
157
  'options' => array(
158
  "on" => "Color Options On",
162
  'class' => 'main-design-settings',
163
  ),
164
  'submit-text-color' => array(
165
+ 'name' => __('Button Text Color', 'inbound-pro' ),
166
+ 'desc' => __('Color of text. Must toggle on "Submit Color Options" on', 'inbound-pro' ),
167
  'type' => 'colorpicker',
168
  'std' => '#434242',
169
  'class' => 'main-design-settings',
170
  ),
171
  'submit-bg-color' => array(
172
+ 'name' => __('Button BG Color', 'inbound-pro' ),
173
+ 'desc' => __('Background color of button. Must toggle on "Submit Color Options" on', 'inbound-pro' ),
174
  'type' => 'colorpicker',
175
  'std' => '#E9E9E9',
176
  'class' => 'main-design-settings',
177
  ),
178
  'width' => array(
179
+ 'name' => __('Custom Width', 'inbound-pro' ),
180
+ 'desc' => __('Enter in pixel width or % width. Example: 400 <u>or</u> 100%', 'inbound-pro' ),
181
  'type' => 'text',
182
  'std' => '',
183
  'class' => 'main-design-settings',
186
  'child' => array(
187
  'options' => array(
188
  'label' => array(
189
+ 'name' => __('Field Label', 'inbound-pro' ),
190
  'desc' => '',
191
  'type' => 'text',
192
  'std' => '',
193
  'placeholder' => __("Enter the Form Field Label. Example: First Name" , "leads" )
194
  ),
195
  'field_type' => array(
196
+ 'name' => __('Field Type', 'inbound-pro' ),
197
+ 'desc' => __('Select an form field type', 'inbound-pro' ),
198
  'type' => 'select',
199
  'options' => array(
200
+ "text" => __('Single Line Text' , 'inbound-pro' ),
201
+ 'textarea' => __('Paragraph Field' , 'inbound-pro' ),
202
+ 'dropdown' => __('Dropdown - Custom' , 'inbound-pro' ),
203
+ 'dropdown_countries' => __('Dropdown - Countries' , 'inbound-pro' ),
204
+ 'radio' => __('Radio Select' , 'inbound-pro' ),
205
+ 'checkbox' => __('Checkbox' , 'inbound-pro' ),
206
+ 'html-block' => __('HTML Block' , 'inbound-pro' ),
207
+ 'divider' => __('Divider' , 'inbound-pro' ),
208
+ 'date-selector' => __('Date Dropdown Selection' , 'inbound-pro' ),
209
+ 'date' => __('Date Picker Field' , 'inbound-pro' ),
210
+ 'range' => __('Range Field' , 'inbound-pro' ),
211
+ 'time' => __('Time Pick Field' , 'inbound-pro' ),
212
+ 'hidden' => __('Hidden Field' , 'inbound-pro' ),
213
+ 'honeypot' => __('Anti Spam Honey Pot' , 'inbound-pro' ),
214
  /*
215
+ 'url' => __('URL' , 'inbound-pro' ),
216
+ 'email' => __( 'Email' , 'inbound-pro' ),
217
+ 'tel' => __( 'Telephone' , 'inbound-pro' ),
218
+ 'datetime-local' => __('Date Time Pick Selector Field' , 'inbound-pro' ),
219
+ 'file_upload' => __('File Upload' , 'inbound-pro' ),
220
+ 'editor' => __('HTML Editor' ,'inbound-pro' ),
221
+ 'multi-select' => __('multi-select' , 'inbound-pro' )
222
  */
223
  ),
224
  'std' => ''
225
  ),
226
 
227
  'dropdown_options' => array(
228
+ 'name' => __('Dropdown choices', 'inbound-pro' ),
229
+ 'desc' => __('Enter Your Dropdown Options. Separate by commas. You may also use label|value to have a different value than the label stored.', 'inbound-pro' ),
230
  'type' => 'text',
231
  'std' => '',
232
  'placeholder' => __('Choice 1|a, Choice 2, Choice 3' , 'inbound-pro' ),
233
  'reveal_on' => 'dropdown' // on select choice show this
234
  ),
235
  'radio_options' => array(
236
+ 'name' => __('Radio Choices', 'inbound-pro' ),
237
+ 'desc' => __('Enter Your Radio Options. Separate by commas. You may also use label|value to have a different value than the label stored.', 'inbound-pro' ),
238
  'type' => 'text',
239
  'std' => '',
240
  'placeholder' => 'Choice 1|a, Choice 2',
241
  'reveal_on' => 'radio' // on select choice show this
242
  ),
243
  'checkbox_options' => array(
244
+ 'name' => __('Checkbox choices', 'inbound-pro' ),
245
+ 'desc' => __('Enter Your Checkbox Options. Separate by commas. You may also use label|value to have a different value than the label stored.', 'inbound-pro' ),
246
  'type' => 'text',
247
  'std' => '',
248
  'placeholder' => __( 'Choice 1|a, Choice 2, Choice 3', 'inbound-pro' ),
249
  'reveal_on' => 'checkbox' // on select choice show this
250
  ),
251
  'html_block_options' => array(
252
+ 'name' => __('HTML Block', 'inbound-pro' ),
253
+ 'desc' => __('This is a raw HTML block in the form. Insert text/HTML', 'inbound-pro' ),
254
  'type' => 'textarea',
255
  'std' => '',
256
  'reveal_on' => 'html-block' // on select choice show this
257
  ),
258
  'range_options' => array(
259
+ 'name' => __('Range Setup', 'inbound-pro' ),
260
+ 'desc' => __('Enter the min, max, and steps inside the range input. Separate each with a pipe, eg: min|max|steps', 'inbound-pro' ),
261
  'type' => 'text',
262
  'std' => '',
263
+ 'placeholder' => __('0|100|10' , 'inbound-pro' ),
264
  'reveal_on' => 'range' // on select choice show this
265
  ),
266
  'default_value' => array(
267
+ 'name' => __('Default Value', 'inbound-pro' ),
268
+ 'desc' => __('Enter the Default Value', 'inbound-pro' ),
269
  'type' => 'text',
270
  'std' => '',
271
  'placeholder' => 'Enter Default Value',
272
  'reveal_on' => 'hidden' // on select choice show this
273
  ),
274
  'divider_options' => array(
275
+ 'name' => __('Divider Text (optional)', 'inbound-pro' ),
276
+ 'desc' => __('This is the text in the divider', 'inbound-pro' ),
277
  'type' => 'text',
278
  'std' => '',
279
  'reveal_on' => 'divider' // on select choice show this
280
  ),
281
  'required' => array(
282
+ 'name' => __('Required Field? <span class="small-optional-text">(optional)</span>', 'inbound-pro' ),
283
+ 'checkbox_text' => __('Check to make field required', 'inbound-pro' ),
284
  'desc' => '',
285
  'type' => 'checkbox',
286
  'std' => '0',
287
  'class' => '',
288
  ),
289
  'helper' => array(
290
+ 'name' => __('Field Description <span class="small-optional-text">(optional)</span>', 'inbound-pro' ),
291
+ 'desc' => __('<span class="show-advanced-fields button">Show advanced options</span>', 'inbound-pro' ),
292
  'type' => 'helper-block',
293
  'std' => '',
294
  'class' => '',
295
  ),
296
  'exclude_tracking' => array(
297
+ 'name' => __('Exclude Tracking? <span class="small-optional-text">(optional)</span>', 'inbound-pro' ),
298
+ 'checkbox_text' => __('Check to exclude this form field from being tracked. Note this will not store in your Database', 'inbound-pro' ),
299
  'desc' => '',
300
  'type' => 'checkbox',
301
  'std' => '0',
302
  'class' => 'advanced',
303
  ),
304
  'map_to' => array(
305
+ 'name' => __('Map Field To <span class="small-optional-text">(optional)</span>', 'inbound-pro' ),
306
+ 'desc' => __('Map this field to Leads Value', 'inbound-pro' ),
307
  'type' => 'select',
308
  'options' => $lead_mapping_fields,
309
  'std' => 'none',
310
  'class' => 'advanced exclude',
311
  ),
312
  'placeholder' => array(
313
+ 'name' => __('Field Placeholder <span class="small-optional-text">(optional)</span>', 'inbound-pro' ),
314
+ 'desc' => __('Put field placeholder text here. Only works for normal text inputs', 'inbound-pro' ),
315
  'type' => 'text',
316
  'std' => '',
317
  'class' => 'advanced',
318
  ),
319
  'description' => array(
320
+ 'name' => __('Field Description <span class="small-optional-text">(optional)</span>', 'inbound-pro' ),
321
+ 'desc' => __('Put field description here.', 'inbound-pro' ),
322
  'type' => 'textarea',
323
  'std' => '',
324
  'class' => 'advanced',
325
  ),
326
  'field_container_class' => array(
327
+ 'name' => __('Field Container Classes <span class="small-optional-text">(optional)</span>', 'inbound-pro' ),
328
+ 'desc' => __('Add additional class ids to the div that contains this field. Separate classes with spaces.', 'inbound-pro' ),
329
  'type' => 'text',
330
  'std' => '',
331
  'class' => 'advanced',
332
  ),
333
  'field_input_class' => array(
334
+ 'name' => __('Field Input Classes <span class="small-optional-text">(optional)</span>', 'inbound-pro' ),
335
+ 'desc' => __('Add additional class ids to this input field. Separate classes with spaces.', 'inbound-pro' ),
336
  'type' => 'text',
337
  'std' => '',
338
  'class' => 'advanced',
339
  ),
340
 
341
  'hidden_input_options' => array(
342
+ 'name' => __('Dynamic Field Filling <span class="small-optional-text">(optional)</span>', 'inbound-pro' ),
343
+ 'desc' => __('Enter Your Dynamic URL parameter', 'inbound-pro' ),
344
  'type' => 'text',
345
  'std' => '',
346
  'placeholder' => 'enter dynamic url parameter example: utm_campaign ',
349
  )
350
  ),
351
  'shortcode' => '[inbound_field label="{{label}}" type="{{field_type}}" description="{{description}}" required="{{required}}" exclude_tracking={{exclude_tracking}} dropdown="{{dropdown_options}}" radio="{{radio_options}}" checkbox="{{checkbox_options}}" range="{{range_options}}" placeholder="{{placeholder}}" field_container_class="{{field_container_class}}" field_input_class="{{field_input_class}}" html="{{html_block_options}}" dynamic="{{hidden_input_options}}" default="{{default_value}}" map_to="{{map_to}}" divider_options="{{divider_options}}"]',
352
+ 'clone' => __('Add Another Field', 'inbound-pro' )
353
  ),
354
  'shortcode' => '[inbound_form name="{{form_name}}" lists="{{lists_hidden}}" redirect="{{redirect}}" notify="{{notify}}" notify_subject="{{notify_subject}}" layout="{{layout}}" font_size="{{font-size}}" labels="{{labels}}" icon="{{icon}}" submit="{{submit}}" submit="{{submit}}" submit_colors="{{submit-colors}}" submit_text_color="{{submit-text-color}}" submit_bg_color="{{submit-bg-color}}" width="{{width}}"]{{child}}[/inbound_form]',
355
  'popup_title' => 'Insert Inbound Form Shortcode'