WordPress Landing Pages - Version 1.4.9

Version Description

  • Fixed and improved default landing page templates
  • Updates to work with V2 of the CTA plugins
  • Improved form compatibilty with contact form 7, gravity forms, and ninja forms
  • Numerous bug files and code improvements
Download this release

Release Info

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

Code changes from version 1.4.8 to 1.4.9

Files changed (160) hide show
  1. landing-pages.php +7 -6
  2. modules/module.ab-testing.php +33 -31
  3. modules/module.global-settings.php +21 -69
  4. modules/module.landing-page.php +2 -1
  5. modules/module.metaboxes.php +110 -108
  6. modules/module.post-type.php +5 -22
  7. modules/module.sidebar.php +1 -5
  8. modules/module.track.php +1 -1
  9. modules/module.utils.php +14 -5
  10. modules/module.welcome.php +1 -1
  11. readme.txt +8 -7
  12. shared/assets/admin/css/global-inbound-admin.css +21 -21
  13. shared/assets/admin/css/image-picker.css +46 -0
  14. shared/assets/admin/js/image-picker.js +301 -0
  15. shared/assets/assets.loader.class.php +26 -7
  16. shared/assets/frontend/js/form-population.js +1 -0
  17. shared/assets/frontend/js/page-tracking.js +0 -49
  18. shared/assets/frontend/js/store.lead.ajax.js +410 -181
  19. shared/classes/debug.class.php +60 -26
  20. shared/classes/form.class.php +28 -11
  21. shared/classes/menu.class.php +594 -658
  22. shared/extend/inboundnow.extend.php +348 -0
  23. shared/extend/inboundnow.extension-licensing.php +293 -0
  24. shared/extend/inboundnow.extension-updating.php +177 -0
  25. shared/extend/inboundnow.global-settings.php +46 -0
  26. shared/functions/global.leads.cpt.php +56 -56
  27. shared/inbound-shortcodes/inbound-shortcodes.php +41 -9
  28. shared/inbound-shortcodes/inbound-shortcodes.php.orig +7 -7
  29. shared/inbound-shortcodes/js/shortcodes.js +5 -33
  30. shared/inbound-shortcodes/js/tinymce.js +18 -0
  31. shared/inbound-shortcodes/popup.php +4 -4
  32. shared/inbound-shortcodes/shortcodes/alert.php +10 -10
  33. shared/inbound-shortcodes/shortcodes/button.php +21 -21
  34. shared/inbound-shortcodes/shortcodes/call-to-action.php +3 -3
  35. shared/inbound-shortcodes/shortcodes/callout.php +26 -26
  36. shared/inbound-shortcodes/shortcodes/column.php +8 -8
  37. shared/inbound-shortcodes/shortcodes/content-box.php +20 -20
  38. shared/inbound-shortcodes/shortcodes/divider.php +28 -28
  39. shared/inbound-shortcodes/shortcodes/forms.php +118 -78
  40. shared/inbound-shortcodes/shortcodes/gmap.php +21 -21
  41. shared/inbound-shortcodes/shortcodes/icon.php +16 -16
  42. shared/inbound-shortcodes/shortcodes/intro.php +20 -20
  43. shared/inbound-shortcodes/shortcodes/landing-page-list.php +21 -21
  44. shared/inbound-shortcodes/shortcodes/landing_pages.php +34 -34
  45. shared/inbound-shortcodes/shortcodes/leadp.php +5 -5
  46. shared/inbound-shortcodes/shortcodes/list-icon.php +6 -6
  47. shared/inbound-shortcodes/shortcodes/lists.php +13 -13
  48. shared/inbound-shortcodes/shortcodes/pricing.php +43 -43
  49. shared/inbound-shortcodes/shortcodes/profile.php +34 -34
  50. shared/inbound-shortcodes/shortcodes/quick-forms.php +7 -7
  51. shared/inbound-shortcodes/shortcodes/social-share.php +22 -22
  52. shared/inbound-shortcodes/shortcodes/social.php +17 -17
  53. shared/inbound-shortcodes/shortcodes/tabs.php +19 -19
  54. shared/inbound-shortcodes/shortcodes/teaser.php +55 -55
  55. shared/inbound-shortcodes/shortcodes/testimonial.php +34 -34
  56. shared/inbound-shortcodes/shortcodes/video.php +3 -3
  57. shared/languages/leads.mo +0 -0
  58. shared/languages/leads.po +3810 -0
  59. shared/languages/leads/ach.mo +0 -0
  60. shared/languages/leads/af.mo +0 -0
  61. shared/languages/leads/ar.mo +0 -0
  62. shared/languages/leads/az.mo +0 -0
  63. shared/languages/leads/be_BY.mo +0 -0
  64. shared/languages/leads/bg_BG.mo +0 -0
  65. shared/languages/leads/bn_BD.mo +0 -0
  66. shared/languages/leads/br.mo +0 -0
  67. shared/languages/leads/bs_BA.mo +0 -0
  68. shared/languages/leads/ca.mo +0 -0
  69. shared/languages/leads/co.mo +0 -0
  70. shared/languages/leads/cs_CZ.mo +0 -0
  71. shared/languages/leads/cy.mo +0 -0
  72. shared/languages/leads/da_DK.mo +0 -0
  73. shared/languages/leads/de_DE.mo +0 -0
  74. shared/languages/leads/default.mo +0 -0
  75. shared/languages/leads/el.mo +0 -0
  76. shared/languages/leads/en@pirate.mo +0 -0
  77. shared/languages/leads/en_GB.mo +0 -0
  78. shared/languages/leads/eo.mo +0 -0
  79. shared/languages/leads/es_CL.mo +0 -0
  80. shared/languages/leads/es_ES.mo +0 -0
  81. shared/languages/leads/es_MX.mo +0 -0
  82. shared/languages/leads/es_PE.mo +0 -0
  83. shared/languages/leads/es_VE.mo +0 -0
  84. shared/languages/leads/et.mo +0 -0
  85. shared/languages/leads/eu.mo +0 -0
  86. shared/languages/leads/fa.mo +0 -0
  87. shared/languages/leads/fa_IR.mo +0 -0
  88. shared/languages/leads/fi.mo +0 -0
  89. shared/languages/leads/fo.mo +0 -0
  90. shared/languages/leads/fr_FR.mo +0 -0
  91. shared/languages/leads/gl_ES.mo +0 -0
  92. shared/languages/leads/gu_IN.mo +0 -0
  93. shared/languages/leads/he_IL.mo +0 -0
  94. shared/languages/leads/hi_IN.mo +0 -0
  95. shared/languages/leads/hr.mo +0 -0
  96. shared/languages/leads/hu_HU.mo +0 -0
  97. shared/languages/leads/id_ID.mo +0 -0
  98. shared/languages/leads/is_IS.mo +0 -0
  99. shared/languages/leads/it_IT.mo +0 -0
  100. shared/languages/leads/ja.mo +0 -0
  101. shared/languages/leads/jv.mo +0 -0
  102. shared/languages/leads/ka.mo +0 -0
  103. shared/languages/leads/kk.mo +0 -0
  104. shared/languages/leads/ko_KR.mo +0 -0
  105. shared/languages/leads/ku.mo +0 -0
  106. shared/languages/leads/ky.mo +0 -0
  107. shared/languages/leads/lt_LT.mo +0 -0
  108. shared/languages/leads/lv.mo +0 -0
  109. shared/languages/leads/lv_LV.mo +0 -0
  110. shared/languages/leads/mg.mo +0 -0
  111. shared/languages/leads/mk_MK.mo +0 -0
  112. shared/languages/leads/mn.mo +0 -0
  113. shared/languages/leads/my_MM.mo +0 -0
  114. shared/languages/leads/nb_NO.mo +0 -0
  115. shared/languages/leads/ne_NP.mo +0 -0
  116. shared/languages/leads/nl_NL.mo +0 -0
  117. shared/languages/leads/nn_NO.mo +0 -0
  118. shared/languages/leads/oc.mo +0 -0
  119. shared/languages/leads/pap.mo +0 -0
  120. shared/languages/leads/pl_PL.mo +0 -0
  121. shared/languages/leads/pt_BR.mo +0 -0
  122. shared/languages/leads/pt_PT.mo +0 -0
  123. shared/languages/leads/ro_RO.mo +0 -0
  124. shared/languages/leads/ru_RU.mo +0 -0
  125. shared/languages/leads/sah.mo +0 -0
  126. shared/languages/leads/sk_SK.mo +0 -0
  127. shared/languages/leads/sq.mo +0 -0
  128. shared/languages/leads/sr_RS.mo +0 -0
  129. shared/languages/leads/su.mo +0 -0
  130. shared/languages/leads/sv_SE.mo +0 -0
  131. shared/languages/leads/sw.mo +0 -0
  132. shared/languages/leads/te.mo +0 -0
  133. shared/languages/leads/th.mo +0 -0
  134. shared/languages/leads/tk_TM.mo +0 -0
  135. shared/languages/leads/tr_TR.mo +0 -0
  136. shared/languages/leads/ug.mo +0 -0
  137. shared/languages/leads/uk.mo +0 -0
  138. shared/languages/leads/uz.mo +0 -0
  139. shared/languages/leads/vi.mo +0 -0
  140. shared/languages/leads/zh_CN.mo +0 -0
  141. shared/languages/leads/zh_TW.mo +0 -0
  142. shared/metaboxes/inbound-metaboxes.js +0 -0
  143. shared/metaboxes/template.metaboxes.php +27 -33
  144. shared/tracking/store.lead.php +257 -137
  145. templates/countdown-lander/assets/css/styles.css +14 -12
  146. templates/countdown-lander/index.php +49 -43
  147. templates/do-NOT-install-templates-here.txt +18 -0
  148. templates/dropcap/assets/css/form.css +8 -7
  149. templates/dropcap/assets/css/style.css +7 -5
  150. templates/dropcap/assets/images/beach-1.jpg +0 -0
  151. templates/dropcap/index.php +6 -6
  152. templates/half-and-half/assets/css/style.css +20 -16
  153. templates/half-and-half/index.php +40 -30
  154. templates/simple-solid-lite/css/inbound-compiled-style.css +249 -0
  155. templates/simple-solid-lite/css/main.css +249 -0
  156. templates/simple-two-column/assets/css/style.css +9 -12
  157. templates/simple-two-column/config.php +20 -19
  158. templates/simple-two-column/index.php +52 -22
  159. templates/svtle/assets/css/style.css +13 -17
  160. templates/svtle/index.php +33 -27
landing-pages.php CHANGED
@@ -3,14 +3,14 @@
3
  Plugin Name: Landing Pages
4
  Plugin URI: http://www.inboundnow.com/landing-pages/
5
  Description: The first true all-in-one Landing Page solution for WordPress, including ongoing conversion metrics, a/b split testing, unlimited design options and so much more!
6
- Version: 1.4.8
7
  Author: Inbound Now
8
  Author URI: http://www.inboundnow.com/
9
  Text Domain: landing-pages
10
  Domain Path: shared/languages/landing-pages/
11
  */
12
 
13
- define('LANDINGPAGES_CURRENT_VERSION', '1.4.8' );
14
  define('LANDINGPAGES_URLPATH', WP_PLUGIN_URL.'/'.plugin_basename( dirname(__FILE__) ).'/' );
15
  define('LANDINGPAGES_PATH', WP_PLUGIN_DIR.'/'.plugin_basename( dirname(__FILE__) ).'/' );
16
  define('LANDINGPAGES_PLUGIN_SLUG', plugin_basename( dirname(__FILE__) ) );
@@ -107,13 +107,14 @@ function inbound_load_shared_landing_pages(){
107
  include_once('shared/classes/compatibility.class.php'); // Inbound Compatibility Class
108
  include_once('shared/tracking/store.lead.php'); // Lead Storage from landing pages
109
  include_once('shared/classes/form.class.php'); // Mirrored forms
110
- include_once('shared/inboundnow/inboundnow.extend.php'); // Legacy
111
- include_once('shared/inboundnow/inboundnow.extension-licensing.php'); // Inboundnow Package Licensing
112
- include_once('shared/inboundnow/inboundnow.extension-updating.php'); // Inboundnow Package Updating
113
- include_once('shared/inboundnow/inboundnow.global-settings.php'); // Inboundnow Global Settings
114
  include_once('shared/assets/assets.loader.class.php'); // Load Shared CSS and JS Assets
115
  include_once('shared/functions/global.shared.functions.php'); // Global Shared Utility functions
116
  include_once('shared/functions/global.leads.cpt.php'); // Shared Lead functionality
 
117
 
118
  }
119
 
3
  Plugin Name: Landing Pages
4
  Plugin URI: http://www.inboundnow.com/landing-pages/
5
  Description: The first true all-in-one Landing Page solution for WordPress, including ongoing conversion metrics, a/b split testing, unlimited design options and so much more!
6
+ Version: 1.4.9
7
  Author: Inbound Now
8
  Author URI: http://www.inboundnow.com/
9
  Text Domain: landing-pages
10
  Domain Path: shared/languages/landing-pages/
11
  */
12
 
13
+ define('LANDINGPAGES_CURRENT_VERSION', '1.4.9' );
14
  define('LANDINGPAGES_URLPATH', WP_PLUGIN_URL.'/'.plugin_basename( dirname(__FILE__) ).'/' );
15
  define('LANDINGPAGES_PATH', WP_PLUGIN_DIR.'/'.plugin_basename( dirname(__FILE__) ).'/' );
16
  define('LANDINGPAGES_PLUGIN_SLUG', plugin_basename( dirname(__FILE__) ) );
107
  include_once('shared/classes/compatibility.class.php'); // Inbound Compatibility Class
108
  include_once('shared/tracking/store.lead.php'); // Lead Storage from landing pages
109
  include_once('shared/classes/form.class.php'); // Mirrored forms
110
+ include_once('shared/extend/inboundnow.extend.php');
111
+ include_once('shared/extend/inboundnow.extension-licensing.php'); // Legacy - Inboundnow Package Licensing
112
+ include_once('shared/extend/inboundnow.extension-updating.php'); // Legacy -Inboundnow Package Updating
113
+ include_once('shared/extend/inboundnow.global-settings.php'); // Inboundnow Global Settings
114
  include_once('shared/assets/assets.loader.class.php'); // Load Shared CSS and JS Assets
115
  include_once('shared/functions/global.shared.functions.php'); // Global Shared Utility functions
116
  include_once('shared/functions/global.leads.cpt.php'); // Shared Lead functionality
117
+ include_once('shared/metaboxes/template.metaboxes.php'); // Shared Shortcodes
118
 
119
  }
120
 
modules/module.ab-testing.php CHANGED
@@ -339,12 +339,14 @@ if (is_admin())
339
  foreach ($lp_custom_fields as $key=>$field)
340
  {
341
  $default = get_post_meta($post_id, $field['id'], true);
342
- //echo $post_id.'-'.$field['id'].":".$default;
343
- //echo "<br>";
344
  $id = $field['id'];
345
  $field['id'] = $id.'-'.$current_variation_id ;
346
- $field['default'] = $default;
347
-
 
 
 
348
  $lp_custom_fields[$key] = $field;
349
  }
350
  return $lp_custom_fields;
@@ -542,26 +544,6 @@ if (is_admin())
542
  }
543
  }
544
 
545
- //not sure if this is needed
546
- add_filter('lp_content_area','lp_ab_testing_alter_content_area_admin', 10, 2);
547
- function lp_ab_testing_alter_content_area_admin($content)
548
- {
549
- global $post;
550
-
551
- $variation_id = lp_ab_testing_get_current_variation_id();
552
-
553
- if ($variation_id>0)
554
- {
555
- $content = get_post_meta($post->ID,'content-'.$variation_id, true);
556
- if ( !is_admin() )
557
- {
558
- $content = wpautop($content);
559
- $content = do_shortcode($content);
560
- }
561
- }
562
-
563
- return $content;
564
- }
565
  }
566
 
567
  /* PERFORM FRONT-END ONLY ACTIONS */
@@ -606,6 +588,25 @@ else
606
 
607
  /*PERFORM ACTIONS REQUIRED ON BOTH FRONT AND BACKEND */
608
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
609
 
610
  /* RETURN LETTER FROM ARRAY KEY */
611
  function lp_ab_key_to_letter($key) {
@@ -617,27 +618,28 @@ function lp_ab_key_to_letter($key) {
617
  'Z'
618
  );
619
 
620
- if (isset($alphabet[$key]))
621
  return $alphabet[$key];
 
622
  }
623
 
624
  /* GET CURRENT VARIATION ID */
625
  function lp_ab_testing_get_current_variation_id()
626
  {
627
- if (!isset($_GET['lp-variation-id'])&&isset($_SESSION['lp_ab_test_open_variation'])&&is_admin())
628
  {
629
  //$current_variation_id = $_SESSION['lp_ab_test_open_variation'];
630
  }
631
 
632
- if (!isset($_SESSION['lp_ab_test_open_variation'])&&!isset($_GET['lp-variation-id']))
633
  {
634
  $current_variation_id = 0;
635
  }
636
- //echo $_GET['lp-variation-id'];
637
- if (isset($_GET['lp-variation-id']))
638
  {
639
- $_SESSION['lp_ab_test_open_variation'] = $_GET['lp-variation-id'];
640
- $current_variation_id = $_GET['lp-variation-id'];
641
  //echo "setting session $current_variation_id";
642
  }
643
 
339
  foreach ($lp_custom_fields as $key=>$field)
340
  {
341
  $default = get_post_meta($post_id, $field['id'], true);
342
+
 
343
  $id = $field['id'];
344
  $field['id'] = $id.'-'.$current_variation_id ;
345
+
346
+ if ($default) {
347
+ $field['default'] = $default;
348
+ }
349
+
350
  $lp_custom_fields[$key] = $field;
351
  }
352
  return $lp_custom_fields;
544
  }
545
  }
546
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
547
  }
548
 
549
  /* PERFORM FRONT-END ONLY ACTIONS */
588
 
589
  /*PERFORM ACTIONS REQUIRED ON BOTH FRONT AND BACKEND */
590
 
591
+ add_filter('lp_content_area','lp_ab_testing_alter_content_area_admin', 10, 2);
592
+ function lp_ab_testing_alter_content_area_admin($content)
593
+ {
594
+ global $post;
595
+
596
+ $variation_id = lp_ab_testing_get_current_variation_id();
597
+
598
+ if ($variation_id>0)
599
+ {
600
+ $content = get_post_meta($post->ID,'content-'.$variation_id, true);
601
+ if ( !is_admin() )
602
+ {
603
+ $content = wpautop($content);
604
+ $content = do_shortcode($content);
605
+ }
606
+ }
607
+
608
+ return $content;
609
+ }
610
 
611
  /* RETURN LETTER FROM ARRAY KEY */
612
  function lp_ab_key_to_letter($key) {
618
  'Z'
619
  );
620
 
621
+ if (isset($alphabet[$key])) {
622
  return $alphabet[$key];
623
+ }
624
  }
625
 
626
  /* GET CURRENT VARIATION ID */
627
  function lp_ab_testing_get_current_variation_id()
628
  {
629
+ if (!isset($_REQUEST['lp-variation-id'])&&isset($_SESSION['lp_ab_test_open_variation'])&&is_admin())
630
  {
631
  //$current_variation_id = $_SESSION['lp_ab_test_open_variation'];
632
  }
633
 
634
+ if (!isset($_SESSION['lp_ab_test_open_variation'])&&!isset($_REQUEST['lp-variation-id']))
635
  {
636
  $current_variation_id = 0;
637
  }
638
+ //echo $_REQUEST['lp-variation-id'];
639
+ if (isset($_REQUEST['lp-variation-id']))
640
  {
641
+ $_SESSION['lp_ab_test_open_variation'] = $_REQUEST['lp-variation-id'];
642
+ $current_variation_id = $_REQUEST['lp-variation-id'];
643
  //echo "setting session $current_variation_id";
644
  }
645
 
modules/module.global-settings.php CHANGED
@@ -568,9 +568,9 @@ function lp_save_global_settings()
568
 
569
  $lp_global_settings = lp_get_global_settings();
570
 
571
- if (!isset($_POST['nature']))
572
  return;
573
-
574
 
575
  foreach ($lp_global_settings as $key=>$data)
576
  {
@@ -580,16 +580,15 @@ function lp_save_global_settings()
580
  {
581
  $field['id'] = $key."-".$field['id'];
582
 
583
- if (array_key_exists('option_name',$field) && $field['option_name'] )
584
  $field['id'] = $field['option_name'];
 
585
 
586
  $field['old_value'] = get_option($field['id'] );
587
  (isset($_POST[$field['id'] ]))? $field['new_value'] = $_POST[$field['id'] ] : $field['new_value'] = null;
588
 
589
-
590
- if ((!empty($field['new_value']) && ($field['new_value'] !== $field['old_value'] ) ) || !isset($field['old_value']) )
591
  {
592
- //echo $field['id'] ;exit;
593
  update_option($field['id'] ,$field['new_value']);
594
  if ($field['id'] =='main-landing-page-permalink-prefix')
595
  {
@@ -599,102 +598,56 @@ function lp_save_global_settings()
599
  }
600
  if ($field['type']=='license-key')
601
  {
602
-
603
- // data to send in our API request
 
 
 
 
604
  $api_params = array(
605
  'edd_action'=> 'activate_license',
606
  'license' => $field['new_value'],
607
  'item_name' => $field['slug'] ,
608
  'cache_bust'=> substr(md5(rand()),0,7)
609
  );
610
- //print_r($api_params);
611
 
612
- // Call the custom API.
613
  $response = wp_remote_get( add_query_arg( $api_params, LANDINGPAGES_STORE_URL ), array( 'timeout' => 30, 'sslverify' => false ) );
614
 
615
 
616
- // make sure the response came back okay
617
- if ( is_wp_error( $response ) )
618
  break;
 
 
619
 
620
- // decode the license data
621
  $license_data = json_decode( wp_remote_retrieve_body( $response ) );
622
 
623
-
624
- // $license_data->license will be either "active" or "inactive"
625
  $license_status = update_option('lp_license_status-'.$field['slug'], $license_data->license);
626
 
627
- //echo 'lp_license_status-'.$field['slug']." :".$license_data->license;exit;
628
  }
629
  }
630
- else if (!$field['new_value'] && $field['old_value'])
631
  {
632
  if ($field['type']=='license-key')
633
  {
634
- $master_key = get_option('inboundnow_master_license_key' , '');
 
635
  if ($master_key)
636
- {
637
  $bool = update_option($field['id'], $master_key );
638
- $license_status = update_option('lp_license_status-'.$field['slug'], $license_data->license);
639
  }
640
  else
641
  {
642
  update_option($field['id'], '' );
643
- $license_status = update_option('lp_license_status-'.$field['slug'], $license_data->license);
644
  }
645
  }
646
- else
647
- {
648
- $bool = update_option($field['id'],$field['default']);
649
- }
650
  }
651
- else
652
- {
653
-
654
- if ($field['type']=='license-key' && $field['new_value'] )
655
- {
656
- $license_status = get_option('lp_license_status-'.$field['slug']);
657
-
658
- if ($license_status=='valid' && $field['new_value'] == $field['old_value'])
659
- continue;
660
-
661
- //echo 'here:'.$license_status;
662
-
663
- // data to send in our API request
664
- $api_params = array(
665
- 'edd_action'=> 'activate_license',
666
- 'license' => $field['new_value'],
667
- 'item_name' => $field['slug'] ,
668
- 'cache_bust'=> substr(md5(rand()),0,7)
669
- );
670
-
671
- // Call the custom API.
672
- $response = wp_remote_get( add_query_arg( $api_params, LANDINGPAGES_STORE_URL ), array( 'timeout' => 30, 'sslverify' => false ) );
673
 
674
- /*
675
- print_r($field);
676
- echo '<br>';
677
- echo $response['body'];
678
- echo "<hr>";
679
- */
680
-
681
- // make sure the response came back okay
682
- if ( is_wp_error( $response ) )
683
- break;
684
-
685
- // decode the license data
686
- $license_data = json_decode( wp_remote_retrieve_body( $response ) );
687
-
688
- // $license_data->license will be either "active" or "inactive"
689
- $license_status = update_option('lp_license_status-'.$field['slug'], $license_data->license);
690
-
691
- //echo 'lp_license_status-'.$field['slug']." :".$license_data->license;exit;
692
- }
693
- }
694
  //exit;
695
  do_action('lp_save_global_settings',$field);
696
  } // end foreach
697
-
698
  }
699
  }
700
 
@@ -771,7 +724,6 @@ function lp_render_global_settings($key,$custom_fields,$active_tab)
771
  <div class="lp_tooltip tool_date" title="'.$field['description'].'"></div><p class="description">'.$field['description'].'</p>';
772
  continue 2;
773
  case 'license-key':
774
-
775
  if ($master_license_key)
776
  {
777
  $field['value'] = $master_license_key;
568
 
569
  $lp_global_settings = lp_get_global_settings();
570
 
571
+ if (!isset($_POST['nature'])) {
572
  return;
573
+ }
574
 
575
  foreach ($lp_global_settings as $key=>$data)
576
  {
580
  {
581
  $field['id'] = $key."-".$field['id'];
582
 
583
+ if (array_key_exists('option_name',$field) && $field['option_name'] ) {
584
  $field['id'] = $field['option_name'];
585
+ }
586
 
587
  $field['old_value'] = get_option($field['id'] );
588
  (isset($_POST[$field['id'] ]))? $field['new_value'] = $_POST[$field['id'] ] : $field['new_value'] = null;
589
 
590
+ if (( $field['new_value'] !== null) && ( $field['new_value'] !== $field['old_value'] ))
 
591
  {
 
592
  update_option($field['id'] ,$field['new_value']);
593
  if ($field['id'] =='main-landing-page-permalink-prefix')
594
  {
598
  }
599
  if ($field['type']=='license-key')
600
  {
601
+ $master_key = get_option('inboundnow_master_license_key' );
602
+
603
+ if ($master_key) {
604
+ $field['new_value'] = $master_key;
605
+ }
606
+
607
  $api_params = array(
608
  'edd_action'=> 'activate_license',
609
  'license' => $field['new_value'],
610
  'item_name' => $field['slug'] ,
611
  'cache_bust'=> substr(md5(rand()),0,7)
612
  );
 
613
 
 
614
  $response = wp_remote_get( add_query_arg( $api_params, LANDINGPAGES_STORE_URL ), array( 'timeout' => 30, 'sslverify' => false ) );
615
 
616
 
617
+ if ( is_wp_error( $response ) ) {
 
618
  break;
619
+ }
620
+
621
 
 
622
  $license_data = json_decode( wp_remote_retrieve_body( $response ) );
623
 
 
 
624
  $license_status = update_option('lp_license_status-'.$field['slug'], $license_data->license);
625
 
 
626
  }
627
  }
628
+ else if ($field['new_value'] == null)
629
  {
630
  if ($field['type']=='license-key')
631
  {
632
+ $master_key = get_option('inboundnow_master_license_key' );
633
+
634
  if ($master_key)
635
+ {
636
  $bool = update_option($field['id'], $master_key );
637
+ $license_status = update_option('lp_license_status-'.$field['slug'], '');
638
  }
639
  else
640
  {
641
  update_option($field['id'], '' );
642
+ $license_status = update_option('lp_license_status-'.$field['slug'], '');
643
  }
644
  }
 
 
 
 
645
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
646
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
647
  //exit;
648
  do_action('lp_save_global_settings',$field);
649
  } // end foreach
650
+ //exit;
651
  }
652
  }
653
 
724
  <div class="lp_tooltip tool_date" title="'.$field['description'].'"></div><p class="description">'.$field['description'].'</p>';
725
  continue 2;
726
  case 'license-key':
 
727
  if ($master_license_key)
728
  {
729
  $field['value'] = $master_license_key;
modules/module.landing-page.php CHANGED
@@ -278,8 +278,9 @@ function lp_content_area($post = null, $content=null,$return=false )
278
  //var_dump($post);
279
  $content_area = $post->post_content;
280
 
281
- if (!is_admin())
282
  $content_area = apply_filters('the_content', $content_area);
 
283
 
284
  $content_area = apply_filters('lp_content_area',$content_area, $post);
285
 
278
  //var_dump($post);
279
  $content_area = $post->post_content;
280
 
281
+ if (!is_admin()) {
282
  $content_area = apply_filters('the_content', $content_area);
283
+ }
284
 
285
  $content_area = apply_filters('lp_content_area',$content_area, $post);
286
 
modules/module.metaboxes.php CHANGED
@@ -287,7 +287,7 @@ function lp_display_meta_box_select_template_container() {
287
  echo '<a class="button-secondary" style="display:none;" id="lp-cancel-selection">'. __('Cancel Template Change' , LANDINGPAGES_TEXT_DOMAIN) .'</a>';
288
  echo "</div>";
289
  echo '<ul id="template-filter" >';
290
- echo '<li class="button-primary button"><a href="#" data-filter="*">'. __( 'All' , LANDINGPAGES_TEXT_DOMAIN) .'</a></li>';
291
  echo '<li class="button-primary button"><a href="#" data-filter=".theme">'. __( 'Theme' , LANDINGPAGES_TEXT_DOMAIN ) .'</a></li>';
292
  $categories = array('Theme');
293
  foreach ($extension_data_cats as $cat)
@@ -764,6 +764,7 @@ function lp_render_metabox($key,$custom_fields,$post)
764
  echo '<div class="form-table" id="inbound-meta">';
765
 
766
  foreach ($custom_fields as $field) {
 
767
  $field_id = $key . "-" .$field['id'];
768
  $field_name = $field['id'];
769
  $label_class = $field['id'] . "-label";
@@ -792,123 +793,124 @@ function lp_render_metabox($key,$custom_fields,$post)
792
 
793
  // Remove prefixes on global => true template options
794
  if (isset($field['global']) && $field['global'] === true) {
795
- $field_id = $field_name;
796
- $meta = get_post_meta($post->ID, $field_name, true);
797
  }
798
 
799
- // begin a table row with
800
- echo '<div class="'.$field['id'].$type_class_row.' div-'.$option_class.' wp-call-to-action-option-row inbound-meta-box-row">';
801
- if ($field['type'] != "description-block" && $field['type'] != "custom-css" ) {
 
802
  echo '<div id="inbound-'.$field_id.'" data-actual="'.$field_id.'" class="inbound-meta-box-label wp-call-to-action-table-header '.$label_class.$type_class.'"><label for="'.$field_id.'">'.$field['label'].'</label></div>';
803
- }
804
 
805
- echo '<div class="wp-call-to-action-option-td inbound-meta-box-option '.$type_class_option.'" data-field-type="'.$field['type'].'">';
806
- switch($field['type']) {
807
- // default content for the_content
808
- case 'default-content':
809
- echo '<span id="overwrite-content" class="button-secondary">Insert Default Content into main Content area</span><div style="display:none;"><textarea name="'.$field_id.'" id="'.$field_id.'" class="default-content" cols="106" rows="6" style="width: 75%; display:hidden;">'.$meta.'</textarea></div>';
810
- break;
811
- case 'description-block':
812
- echo '<div id="'.$field_id.'" class="description-block">' . $field['description'].'</div>';
813
- break;
814
- case 'custom-css':
815
- echo '<style type="text/css">'.$field['default'].'</style>';
816
- break;
817
- // text
818
- case 'colorpicker':
819
- if (!$meta)
820
- {
821
- $meta = $field['default'];
822
- }
823
- $var_id = (isset($_GET['new_meta_key'])) ? "-" . $_GET['new_meta_key'] : '';
824
- echo '<input type="text" class="jpicker" style="background-color:#'.$meta.'" name="'.$field_id.'" id="'.$field_id.'" value="'.$meta.'" size="5" /><span class="button-primary new-save-lp" data-field-type="text" id="'.$field_id.$var_id.'" style="margin-left:10px; display:none;">Update</span>
825
- <div class="lp_tooltip tool_color" title="'.$field['description'].'"></div>';
826
- break;
827
- case 'datepicker':
828
- echo '<div class="jquery-date-picker inbound-datepicker" id="date-picking" data-field-type="text">
829
- <span class="datepair" data-language="javascript">
830
- Date: <input type="text" id="date-picker-'.$key.'" class="date start" /></span>
831
- Time: <input id="time-picker-'.$key.'" type="text" class="time time-picker" />
832
- <input type="hidden" name="'.$field_id.'" id="'.$field_id.'" value="'.$meta.'" class="new-date" value="" >
833
- <p class="description">'.$field['description'].'</p>
834
- </div>';
835
- break;
836
- case 'text':
837
- echo '<input type="text" name="'.$field_id.'" id="'.$field_id.'" value="'.$meta.'" size="30" />
838
- <div class="lp_tooltip" title="'.$field['description'].'"></div>';
839
- break;
840
- case 'number':
841
-
842
- echo '<input type="number" class="'.$option_class.'" name="'.$field_id.'" id="'.$field_id.'" value="'.$meta.'" size="30" />
843
- <div class="lp_tooltip" title="'.$field['description'].'"></div>';
844
-
845
- break;
846
- // textarea
847
- case 'textarea':
848
- echo '<textarea name="'.$field_id.'" id="'.$field_id.'" cols="106" rows="6" style="width: 75%;">'.$meta.'</textarea>
849
- <div class="lp_tooltip tool_textarea" title="'.$field['description'].'"></div>';
850
- break;
851
- // wysiwyg
852
- case 'wysiwyg':
853
- echo "<div class='iframe-options iframe-options-".$field_id."' id='".$field['id']."'>";
854
- wp_editor( $meta, $field_id, $settings = array( 'editor_class' => $field_name ) );
855
- echo '<p class="description">'.$field['description'].'</p></div>';
856
- break;
857
- // media
858
- case 'media':
859
- //echo 1; exit;
860
- echo '<label for="upload_image" data-field-type="text">';
861
- echo '<input name="'.$field_id.'" id="'.$field_id.'" type="text" size="36" name="upload_image" value="'.$meta.'" />';
862
- echo '<input class="upload_image_button" id="uploader_'.$field_id.'" type="button" value="Upload Image" />';
863
- echo '<p class="description">'.$field['description'].'</p>';
864
- break;
865
- // checkbox
866
- case 'checkbox':
867
- $i = 1;
868
- echo "<table class='lp_check_box_table'>";
869
- if (!isset($meta)){$meta=array();}
870
- elseif (!is_array($meta)){
871
- $meta = array($meta);
872
- }
873
- foreach ($field['options'] as $value=>$label) {
874
- if ($i==5||$i==1)
875
- {
876
- echo "<tr>";
877
- $i=1;
878
- }
879
- echo '<td data-field-type="checkbox"><input type="checkbox" name="'.$field_id.'[]" id="'.$field_id.'" value="'.$value.'" ',in_array($value,$meta) ? ' checked="checked"' : '','/>';
880
- echo '<label for="'.$value.'">&nbsp;&nbsp;'.$label.'</label></td>';
881
- if ($i==4)
882
- {
883
- echo "</tr>";
884
- }
885
- $i++;
886
- }
887
- echo "</table>";
888
- echo '<div class="lp_tooltip tool_checkbox" title="'.$field['description'].'"></div>';
889
  break;
890
- // radio
891
- case 'radio':
892
- foreach ($field['options'] as $value=>$label) {
893
- //echo $meta.":".$field_id;
894
- //echo "<br>";
895
- echo '<input type="radio" name="'.$field_id.'" id="'.$field_id.'" value="'.$value.'" ',$meta==$value ? ' checked="checked"' : '','/>';
896
- echo '<label for="'.$value.'">&nbsp;&nbsp;'.$label.'</label> &nbsp;&nbsp;&nbsp;&nbsp;';
897
- }
898
- echo '<div class="lp_tooltip" title="'.$field['description'].'"></div>';
899
  break;
900
- // select
901
- case 'dropdown':
902
- echo '<select name="'.$field_id.'" id="'.$field_id.'" class="'.$field['id'].'">';
903
- foreach ($field['options'] as $value=>$label) {
904
- echo '<option', $meta == $value ? ' selected="selected"' : '', ' value="'.$value.'">'.$label.'</option>';
905
- }
906
- echo '</select><div class="lp_tooltip" title="'.$field['description'].'"></div>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
907
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
908
 
909
 
910
 
911
- } //end switch
912
  echo '</div></div>';
913
  } // end foreach
914
  echo '</div>'; // end table
287
  echo '<a class="button-secondary" style="display:none;" id="lp-cancel-selection">'. __('Cancel Template Change' , LANDINGPAGES_TEXT_DOMAIN) .'</a>';
288
  echo "</div>";
289
  echo '<ul id="template-filter" >';
290
+ echo '<li class="button-primary button"><a href="#" data-filter=".template-item-boxes">'. __( 'All' , LANDINGPAGES_TEXT_DOMAIN) .'</a></li>';
291
  echo '<li class="button-primary button"><a href="#" data-filter=".theme">'. __( 'Theme' , LANDINGPAGES_TEXT_DOMAIN ) .'</a></li>';
292
  $categories = array('Theme');
293
  foreach ($extension_data_cats as $cat)
764
  echo '<div class="form-table" id="inbound-meta">';
765
 
766
  foreach ($custom_fields as $field) {
767
+
768
  $field_id = $key . "-" .$field['id'];
769
  $field_name = $field['id'];
770
  $label_class = $field['id'] . "-label";
793
 
794
  // Remove prefixes on global => true template options
795
  if (isset($field['global']) && $field['global'] === true) {
796
+ $field_id = $field_name;
797
+ $meta = get_post_meta($post->ID, $field_name, true);
798
  }
799
 
800
+ // begin a table row with
801
+ echo '<div class="'.$field['id'].$type_class_row.' div-'.$option_class.' wp-call-to-action-option-row inbound-meta-box-row">';
802
+
803
+ if ($field['type'] != "description-block" && $field['type'] != "custom-css" ) {
804
  echo '<div id="inbound-'.$field_id.'" data-actual="'.$field_id.'" class="inbound-meta-box-label wp-call-to-action-table-header '.$label_class.$type_class.'"><label for="'.$field_id.'">'.$field['label'].'</label></div>';
805
+ }
806
 
807
+ echo '<div class="wp-call-to-action-option-td inbound-meta-box-option '.$type_class_option.'" data-field-type="'.$field['type'].'">';
808
+ switch($field['type']) {
809
+ // default content for the_content
810
+ case 'default-content':
811
+ echo '<span id="overwrite-content" class="button-secondary">Insert Default Content into main Content area</span><div style="display:none;"><textarea name="'.$field_id.'" id="'.$field_id.'" class="default-content" cols="106" rows="6" style="width: 75%; display:hidden;">'.$meta.'</textarea></div>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
812
  break;
813
+ case 'description-block':
814
+ echo '<div id="'.$field_id.'" class="description-block">' . $field['description'].'</div>';
 
 
 
 
 
 
 
815
  break;
816
+ case 'custom-css':
817
+ echo '<style type="text/css">'.$field['default'].'</style>';
818
+ break;
819
+ // text
820
+ case 'colorpicker':
821
+ if (!$meta)
822
+ {
823
+ $meta = $field['default'];
824
+ }
825
+ $var_id = (isset($_GET['new_meta_key'])) ? "-" . $_GET['new_meta_key'] : '';
826
+ echo '<input type="text" class="jpicker" style="background-color:#'.$meta.'" name="'.$field_id.'" id="'.$field_id.'" value="'.$meta.'" size="5" /><span class="button-primary new-save-lp" data-field-type="text" id="'.$field_id.$var_id.'" style="margin-left:10px; display:none;">Update</span>
827
+ <div class="lp_tooltip tool_color" title="'.$field['description'].'"></div>';
828
+ break;
829
+ case 'datepicker':
830
+ echo '<div class="jquery-date-picker inbound-datepicker" id="date-picking" data-field-type="text">
831
+ <span class="datepair" data-language="javascript">
832
+ Date: <input type="text" id="date-picker-'.$key.'" class="date start" /></span>
833
+ Time: <input id="time-picker-'.$key.'" type="text" class="time time-picker" />
834
+ <input type="hidden" name="'.$field_id.'" id="'.$field_id.'" value="'.$meta.'" class="new-date" value="" >
835
+ <p class="description">'.$field['description'].'</p>
836
+ </div>';
837
+ break;
838
+ case 'text':
839
+ echo '<input type="text" name="'.$field_id.'" id="'.$field_id.'" value="'.$meta.'" size="30" />
840
+ <div class="lp_tooltip" title="'.$field['description'].'"></div>';
841
  break;
842
+ case 'number':
843
+
844
+ echo '<input type="number" class="'.$option_class.'" name="'.$field_id.'" id="'.$field_id.'" value="'.$meta.'" size="30" />
845
+ <div class="lp_tooltip" title="'.$field['description'].'"></div>';
846
+
847
+ break;
848
+ // textarea
849
+ case 'textarea':
850
+ echo '<textarea name="'.$field_id.'" id="'.$field_id.'" cols="106" rows="6" style="width: 75%;">'.$meta.'</textarea>
851
+ <div class="lp_tooltip tool_textarea" title="'.$field['description'].'"></div>';
852
+ break;
853
+ // wysiwyg
854
+ case 'wysiwyg':
855
+ echo "<div class='iframe-options iframe-options-".$field_id."' id='".$field['id']."'>";
856
+ wp_editor( $meta, $field_id, $settings = array( 'editor_class' => $field_name ) );
857
+ echo '<p class="description">'.$field['description'].'</p></div>';
858
+ break;
859
+ // media
860
+ case 'media':
861
+ //echo 1; exit;
862
+ echo '<label for="upload_image" data-field-type="text">';
863
+ echo '<input name="'.$field_id.'" id="'.$field_id.'" type="text" size="36" name="upload_image" value="'.$meta.'" />';
864
+ echo '<input class="upload_image_button" id="uploader_'.$field_id.'" type="button" value="Upload Image" />';
865
+ echo '<p class="description">'.$field['description'].'</p>';
866
+ break;
867
+ // checkbox
868
+ case 'checkbox':
869
+ $i = 1;
870
+ echo "<table class='lp_check_box_table'>";
871
+ if (!isset($meta)){$meta=array();}
872
+ elseif (!is_array($meta)){
873
+ $meta = array($meta);
874
+ }
875
+ foreach ($field['options'] as $value=>$label) {
876
+ if ($i==5||$i==1)
877
+ {
878
+ echo "<tr>";
879
+ $i=1;
880
+ }
881
+ echo '<td data-field-type="checkbox"><input type="checkbox" name="'.$field_id.'[]" id="'.$field_id.'" value="'.$value.'" ',in_array($value,$meta) ? ' checked="checked"' : '','/>';
882
+ echo '<label for="'.$value.'">&nbsp;&nbsp;'.$label.'</label></td>';
883
+ if ($i==4)
884
+ {
885
+ echo "</tr>";
886
+ }
887
+ $i++;
888
+ }
889
+ echo "</table>";
890
+ echo '<div class="lp_tooltip tool_checkbox" title="'.$field['description'].'"></div>';
891
+ break;
892
+ // radio
893
+ case 'radio':
894
+ foreach ($field['options'] as $value=>$label) {
895
+ //echo $meta.":".$field_id;
896
+ //echo "<br>";
897
+ echo '<input type="radio" name="'.$field_id.'" id="'.$field_id.'" value="'.$value.'" ',$meta==$value ? ' checked="checked"' : '','/>';
898
+ echo '<label for="'.$value.'">&nbsp;&nbsp;'.$label.'</label> &nbsp;&nbsp;&nbsp;&nbsp;';
899
+ }
900
+ echo '<div class="lp_tooltip" title="'.$field['description'].'"></div>';
901
+ break;
902
+ // select
903
+ case 'dropdown':
904
+ echo '<select name="'.$field_id.'" id="'.$field_id.'" class="'.$field['id'].'">';
905
+ foreach ($field['options'] as $value=>$label) {
906
+ echo '<option', $meta == $value ? ' selected="selected"' : '', ' value="'.$value.'">'.$label.'</option>';
907
+ }
908
+ echo '</select><div class="lp_tooltip" title="'.$field['description'].'"></div>';
909
+ break;
910
 
911
 
912
 
913
+ } //end switch
914
  echo '</div></div>';
915
  } // end foreach
916
  echo '</div>'; // end table
modules/module.post-type.php CHANGED
@@ -36,8 +36,7 @@ function landing_page_register() {
36
  'show_ui' => true,
37
  'query_var' => true,
38
  'menu_icon' => LANDINGPAGES_URLPATH . '/images/plus.gif',
39
- 'rewrite' => array("slug" => "$slug"),
40
- 'with_front' => false,
41
  'capability_type' => 'post',
42
  'hierarchical' => false,
43
  'menu_position' => null,
@@ -178,12 +177,9 @@ if (is_admin()) {
178
 
179
  $conversions += get_post_meta($post->ID,'lp-ab-variation-conversions-'.$vid, true);
180
 
181
- if ($each_impression != 0)
182
- {
183
  $conversion_rate = $final_conversion / $each_impression;
184
- }
185
- else
186
- {
187
  $conversion_rate = 0;
188
  }
189
 
@@ -220,9 +216,7 @@ if (is_admin()) {
220
  }
221
  //echo "Total Visits: " . $impressions;
222
  //echo "Total Conversions: " . $conversions;
223
- }
224
- else
225
- {
226
  $notes = get_post_meta($post->ID,'lp-variation-notes', true); // Get Notes
227
  $cr = lp_show_aggregated_stats("cr");
228
  (($notes === "")) ? $notes = __( 'No notes' , LANDINGPAGES_TEXT_DOMAIN) : $notes = $notes;
@@ -235,8 +229,7 @@ if (is_admin()) {
235
  }
236
  }
237
 
238
- function lp_show_aggregated_stats($type_of_stat)
239
- {
240
  global $post;
241
 
242
  $variations = get_post_meta($post->ID, 'lp-ab-variations', true);
@@ -308,16 +301,6 @@ if (is_admin()) {
308
  echo "<a title='".__('Click to Preview this variation' , LANDINGPAGES_TEXT_DOMAIN) ."' class='thickbox' href='".$permalink."?lp-variation-id=0&iframe_window=on&post_id=".$post->ID."&TB_iframe=true&width=640&height=703' target='_blank'><img src=".$thumbnail."' style='width:150px;height:110px;' title='Click to Preview'></a>";
309
 
310
  }
311
- else if ('cr' == $column)
312
- {
313
- $lp_impressions = lp_get_page_views($post->ID);
314
- $lp_conversions = lp_get_conversions($post->ID);
315
- if ($lp_conversions>0){
316
- $lp_cr = round(($lp_conversions/$lp_impressions), 2);
317
- } else {
318
- $lp_cr = "0.0";
319
- }
320
- }
321
  else if ("stats" == $column)
322
  {
323
  $lp_impressions = lp_get_page_views($post->ID);
36
  'show_ui' => true,
37
  'query_var' => true,
38
  'menu_icon' => LANDINGPAGES_URLPATH . '/images/plus.gif',
39
+ 'rewrite' => array("slug" => "$slug",'with_front' => false),
 
40
  'capability_type' => 'post',
41
  'hierarchical' => false,
42
  'menu_position' => null,
177
 
178
  $conversions += get_post_meta($post->ID,'lp-ab-variation-conversions-'.$vid, true);
179
 
180
+ if ($each_impression != 0) {
 
181
  $conversion_rate = $final_conversion / $each_impression;
182
+ } else {
 
 
183
  $conversion_rate = 0;
184
  }
185
 
216
  }
217
  //echo "Total Visits: " . $impressions;
218
  //echo "Total Conversions: " . $conversions;
219
+ } else {
 
 
220
  $notes = get_post_meta($post->ID,'lp-variation-notes', true); // Get Notes
221
  $cr = lp_show_aggregated_stats("cr");
222
  (($notes === "")) ? $notes = __( 'No notes' , LANDINGPAGES_TEXT_DOMAIN) : $notes = $notes;
229
  }
230
  }
231
 
232
+ function lp_show_aggregated_stats($type_of_stat){
 
233
  global $post;
234
 
235
  $variations = get_post_meta($post->ID, 'lp-ab-variations', true);
301
  echo "<a title='".__('Click to Preview this variation' , LANDINGPAGES_TEXT_DOMAIN) ."' class='thickbox' href='".$permalink."?lp-variation-id=0&iframe_window=on&post_id=".$post->ID."&TB_iframe=true&width=640&height=703' target='_blank'><img src=".$thumbnail."' style='width:150px;height:110px;' title='Click to Preview'></a>";
302
 
303
  }
 
 
 
 
 
 
 
 
 
 
304
  else if ("stats" == $column)
305
  {
306
  $lp_impressions = lp_get_page_views($post->ID);
modules/module.sidebar.php CHANGED
@@ -63,16 +63,12 @@ function lp_replace_sidebars()
63
  {
64
  unset($_wp_sidebars_widgets[$key]);
65
  }
66
- else
67
  {
68
- //unset($_wp_sidebars_widgets[$key]);
69
  $_wp_sidebars_widgets[$key] = $_wp_sidebars_widgets['lp_sidebar'];
70
  $stop =1;
71
  }
72
- //echo $key;
73
  }
74
-
75
- //print_r($_wp_sidebars_widgets);exit;
76
  }
77
 
78
  }
63
  {
64
  unset($_wp_sidebars_widgets[$key]);
65
  }
66
+ else if (isset($_wp_sidebars_widgets['lp_sidebar']))
67
  {
 
68
  $_wp_sidebars_widgets[$key] = $_wp_sidebars_widgets['lp_sidebar'];
69
  $stop =1;
70
  }
 
71
  }
 
 
72
  }
73
 
74
  }
modules/module.track.php CHANGED
@@ -1 +1 @@
1
- <?php
2
  $count_key = 'lp_page_views_count';
3
  $count = get_post_meta($postID, $count_key, true);
4
  if($count==''){
5
  delete_post_meta($postID, $count_key);
6
  add_post_meta($postID, $count_key, '0');
7
  return;
8
  }
9
  return $count;
10
  $count_key = 'lp_page_views_count';
11
  $count = get_post_meta($postID, $count_key, true);
12
  if($count==''){
13
  $count = 0;
14
  delete_post_meta($postID, $count_key);
15
  add_post_meta($postID, $count_key, '0');
16
  }else{
17
  $count++;
18
  update_post_meta($postID, $count_key, $count);
19
  }
20
  $count_key = 'lp_page_conversions_count';
21
  $count = get_post_meta($postID, $count_key, true);
22
  if($count==''){
23
  delete_post_meta($postID, $count_key);
24
  add_post_meta($postID, $count_key, '0');
25
  return "0";
26
  }
27
  return $count;
28
  $count_key = 'lp_page_conversions_count';
29
  $count = get_post_meta($postID, $count_key, true);
30
  if($count==''){
31
  $count = 0;
32
  delete_post_meta($postID, $count_key);
33
  add_post_meta($postID, $count_key, '0');
34
  }else{
35
  $count++;
36
  update_post_meta($postID, $count_key, $count);
37
  }
 
38
  $count_key = 'lp_page_views_count';
39
  $count = get_post_meta($postID, $count_key, true);
40
  if($count==''){
41
  delete_post_meta($postID, $count_key);
42
  add_post_meta($postID, $count_key, '0');
43
  return;
44
  }
45
  return $count;
46
  $count_key = 'lp_page_views_count';
47
  $count = get_post_meta($postID, $count_key, true);
48
  if($count==''){
49
  $count = 0;
50
  delete_post_meta($postID, $count_key);
51
  add_post_meta($postID, $count_key, '0');
52
  }else{
53
  $count++;
54
  update_post_meta($postID, $count_key, $count);
55
  }
56
  $count_key = 'lp_page_conversions_count';
57
  $count = get_post_meta($postID, $count_key, true);
58
  if($count==''){
59
  delete_post_meta($postID, $count_key);
60
  add_post_meta($postID, $count_key, '0');
61
  return "0";
62
  }
63
  return $count;
64
  $count_key = 'lp_page_conversions_count';
65
  $count = get_post_meta($postID, $count_key, true);
66
  if($count==''){
67
  $count = 0;
68
  delete_post_meta($postID, $count_key);
69
  add_post_meta($postID, $count_key, '0');
70
  }else{
71
  $count++;
72
  update_post_meta($postID, $count_key, $count);
73
  }
 
1
  $count_key = 'lp_page_views_count';
2
  $count = get_post_meta($postID, $count_key, true);
3
  if($count==''){
4
  delete_post_meta($postID, $count_key);
5
  add_post_meta($postID, $count_key, '0');
6
  return;
7
  }
8
  return $count;
9
  $count_key = 'lp_page_views_count';
10
  $count = get_post_meta($postID, $count_key, true);
11
  if($count==''){
12
  $count = 0;
13
  delete_post_meta($postID, $count_key);
14
  add_post_meta($postID, $count_key, '0');
15
  }else{
16
  $count++;
17
  update_post_meta($postID, $count_key, $count);
18
  }
19
  $count_key = 'lp_page_conversions_count';
20
  $count = get_post_meta($postID, $count_key, true);
21
  if($count==''){
22
  delete_post_meta($postID, $count_key);
23
  add_post_meta($postID, $count_key, '0');
24
  return "0";
25
  }
26
  return $count;
27
  $count_key = 'lp_page_conversions_count';
28
  $count = get_post_meta($postID, $count_key, true);
29
  if($count==''){
30
  $count = 0;
31
  delete_post_meta($postID, $count_key);
32
  add_post_meta($postID, $count_key, '0');
33
  }else{
34
  $count++;
35
  update_post_meta($postID, $count_key, $count);
36
  }
37
+ <?php
38
  $count_key = 'lp_page_views_count';
39
  $count = get_post_meta($postID, $count_key, true);
40
  if($count==''){
41
  delete_post_meta($postID, $count_key);
42
  add_post_meta($postID, $count_key, '0');
43
  return;
44
  }
45
  return $count;
46
  $count_key = 'lp_page_views_count';
47
  $count = get_post_meta($postID, $count_key, true);
48
  if($count==''){
49
  $count = 0;
50
  delete_post_meta($postID, $count_key);
51
  add_post_meta($postID, $count_key, '0');
52
  }else{
53
  $count++;
54
  update_post_meta($postID, $count_key, $count);
55
  }
56
  $count_key = 'lp_page_conversions_count';
57
  $count = get_post_meta($postID, $count_key, true);
58
  if($count==''){
59
  delete_post_meta($postID, $count_key);
60
  add_post_meta($postID, $count_key, '0');
61
  return "0";
62
  }
63
  return $count;
64
  $count_key = 'lp_page_conversions_count';
65
  $count = get_post_meta($postID, $count_key, true);
66
  if($count==''){
67
  $count = 0;
68
  delete_post_meta($postID, $count_key);
69
  add_post_meta($postID, $count_key, '0');
70
  }else{
71
  $count++;
72
  update_post_meta($postID, $count_key, $count);
73
  }
modules/module.utils.php CHANGED
@@ -159,14 +159,23 @@ function lp_fix_seo_title()
159
  // Add Custom Class to Landing Page Nav Menu to hide/remove
160
  // remove_filter( 'wp_nav_menu_args', 'lp_wp_nav_menu_args' ); // Removes navigation hide
161
  add_filter( 'wp_nav_menu_args', 'lp_wp_nav_menu_args' );
162
- function lp_wp_nav_menu_args( $args = '' )
163
- {
164
  global $post;
 
 
 
 
 
 
 
 
 
 
165
  if ( 'landing-page' == get_post_type() ) {
166
  $nav_status = get_post_meta($post->ID, 'default-lp_hide_nav', true);
167
- if ($nav_status === 'off' || empty($nav_status)) {
168
- if (isset($args['container_class']))
169
- {
170
  $current_class = " ".$args['container_class'];
171
  }
172
 
159
  // Add Custom Class to Landing Page Nav Menu to hide/remove
160
  // remove_filter( 'wp_nav_menu_args', 'lp_wp_nav_menu_args' ); // Removes navigation hide
161
  add_filter( 'wp_nav_menu_args', 'lp_wp_nav_menu_args' );
162
+ function lp_wp_nav_menu_args( $args = '' ) {
 
163
  global $post;
164
+
165
+ $variations = get_post_meta($post->ID, 'lp-ab-variations', true);
166
+ $var = (isset($_GET['lp-variation-id'])) ? $_GET['lp-variation-id'] : '';
167
+ if ($var === "0"){
168
+ $template_name = 'lp-selected-template';
169
+ } else {
170
+ $template_name = 'lp-selected-template-'.$var;
171
+ }
172
+ $template_name = get_post_meta($post->ID, $template_name, true);
173
+
174
  if ( 'landing-page' == get_post_type() ) {
175
  $nav_status = get_post_meta($post->ID, 'default-lp_hide_nav', true);
176
+
177
+ if ($nav_status === 'off' && $template_name === 'default' || empty($nav_status) && $template_name === 'default') {
178
+ if (isset($args['container_class'])) {
179
  $current_class = " ".$args['container_class'];
180
  }
181
 
modules/module.welcome.php CHANGED
@@ -575,7 +575,7 @@ class LandingPages_Welcome {
575
 
576
  <p class="about-description"><?php _e( 'Infuse your designs with powerful A/B testing functionality and give clients the ability to edit options on the backend with ease.', LANDINGPAGES_TEXT_DOMAIN); ?></p>
577
 
578
- <h1 style="text-decoration: none; text-align: center;"><a target="_blank" id="create-templates" class='button' href="http://docs.inboundnow.com/landing-pages/dev/creating-templates">Create Your Own Templates</a></h1>
579
 
580
  <p class="about-description">WordPress Landing Pages is third party extendable. We have a variety of <a href="http://docs.inboundnow.com/landing-pages/dev/core-hooks-filters/hooks">hooks</a>, actions, and filters to add your own functionality</p>
581
  </div>
575
 
576
  <p class="about-description"><?php _e( 'Infuse your designs with powerful A/B testing functionality and give clients the ability to edit options on the backend with ease.', LANDINGPAGES_TEXT_DOMAIN); ?></p>
577
 
578
+ <h1 style="text-decoration: none; text-align: center;"><a target="_blank" id="create-templates" class='button' href="http://docs.inboundnow.com/guide/creating-landing-page-templates/">Create Your Own Templates</a></h1>
579
 
580
  <p class="about-description">WordPress Landing Pages is third party extendable. We have a variety of <a href="http://docs.inboundnow.com/landing-pages/dev/core-hooks-filters/hooks">hooks</a>, actions, and filters to add your own functionality</p>
581
  </div>
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.7
9
  Tested up to: 3.8
10
- Stable Tag: 1.4.8
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
 
@@ -33,10 +33,6 @@ Landing pages are an ideal way to convert more of your passive website visitors
33
  * Extend functionality with our growing repository of <a href="http://www.inboundnow.com/market/category/landing-pages/extensions/">third party add ons</a>.
34
  * Easily implement your own custom landing page design.
35
 
36
- This plugin is form agnostic meaning it will work with any form system you use.
37
-
38
- Recommended form plugins (Gravity forms, Ninja Forms or Contact form 7)
39
-
40
  = About the Plugin =
41
 
42
  http://www.youtube.com/watch?v=flEd0sRTFUo
@@ -45,9 +41,9 @@ http://www.youtube.com/watch?v=flEd0sRTFUo
45
 
46
  We built the landing page plugin as a framework! Need A/B testing out of the box implemented for your existing designs? Use WordPress Landing Pages to quickly spin up new landing pages that have all the functionality your clients will need.
47
 
48
- You can quickly take your existing designs and implement them using our <a href="http://docs.inboundnow.com/landing-pages/dev">templating framework</a>.
49
 
50
- The plugin is also fully extendable and has a number of <a href='http://docs.inboundnow.com/landing-pages/dev/core-hooks-filters'>actions, filters</a>, and hooks available for use. If a hook doesn't exist, simply ask and we can implement custom changes.
51
 
52
  <b>You can also follow us on <a href="https://github.com/inboundnow/landing-pages/">GitHub</a></b>
53
 
@@ -68,6 +64,11 @@ The plugin is also fully extendable and has a number of <a href='http://docs.inb
68
  4. Choose from a ton of pre-made templates, use your existing design, or design your own theme!
69
 
70
  == Changelog ==
 
 
 
 
 
71
 
72
  = 1.4.8 =
73
  * Added Google Analytics Custom Event Tracking for form submissions
7
  Tags: landing pages, inbound marketing, conversion pages, split testing, a b test, a b testing, a/b test, a/b testing, coming soon page, email list, landing page, list building, maintenance page, squeeze page, inbound now, landing-pages, splash pages, cpa, click tracking, goal tracking, analytics, free landing page templates
8
  Requires at least: 3.7
9
  Tested up to: 3.8
10
+ Stable Tag: 1.4.9
11
 
12
  Create landing pages for your WordPress site. Monitor and improve conversion rates, run A/B split tests, customize your own templates and more.
13
 
33
  * Extend functionality with our growing repository of <a href="http://www.inboundnow.com/market/category/landing-pages/extensions/">third party add ons</a>.
34
  * Easily implement your own custom landing page design.
35
 
 
 
 
 
36
  = About the Plugin =
37
 
38
  http://www.youtube.com/watch?v=flEd0sRTFUo
41
 
42
  We built the landing page plugin as a framework! Need A/B testing out of the box implemented for your existing designs? Use WordPress Landing Pages to quickly spin up new landing pages that have all the functionality your clients will need.
43
 
44
+ You can quickly take your existing designs and implement them using our <a href="http://docs.inboundnow.com/guide/creating-landing-page-templates/">templating framework</a>.
45
 
46
+ The plugin is also fully extendable and has a number of <a href='http://docs.inboundnow.com/section/developer/'>actions, filters</a>, and hooks available for use. If a hook doesn't exist, simply ask and we can implement custom changes.
47
 
48
  <b>You can also follow us on <a href="https://github.com/inboundnow/landing-pages/">GitHub</a></b>
49
 
64
  4. Choose from a ton of pre-made templates, use your existing design, or design your own theme!
65
 
66
  == Changelog ==
67
+ = 1.4.9 =
68
+ * Fixed and improved default landing page templates
69
+ * Updates to work with V2 of the CTA plugins
70
+ * Improved form compatibilty with contact form 7, gravity forms, and ninja forms
71
+ * Numerous bug files and code improvements
72
 
73
  = 1.4.8 =
74
  * Added Google Analytics Custom Event Tracking for form submissions
shared/assets/admin/css/global-inbound-admin.css CHANGED
@@ -1,7 +1,7 @@
1
- #wpadminbar.nojs .ab-top-menu > li.menupop.icon-edd:hover > .ab-item,
2
- #wpadminbar .ab-top-menu > li.menupop.icon-edd.hover > .ab-item,
3
- #wpadminbar.nojs .ab-top-menu > li.menupop.icon-edd > .ab-item,
4
- #wpadminbar .ab-top-menu > li.menupop.icon-edd > .ab-item {
5
 
6
  background-image: url('../../global/images/shortcodes-blue.png');
7
 
@@ -14,25 +14,25 @@
14
  color: #ff9900;
15
  content: '• ';
16
  }
17
- #wpadminbar .eddtb-search-input {
18
  width: 140px;
19
  }
20
  #wp-admin-bar-ddw-edd-inboundsupportsections .ab-item,
21
  #wp-admin-bar-ddw-edd-inbounddocsquick .ab-item,
22
  #wp-admin-bar-ddw-edd-inbounddocssections .ab-item,
23
- #wpadminbar .eddtb-search-input,
24
- #wpadminbar .eddtb-search-go {
25
  color: #21759b !important;
26
  text-shadow: none;
27
  }
28
- #wpadminbar .eddtb-search-input,
29
- #wpadminbar .eddtb-search-go {
30
  background-color: #fff;
31
  height: 18px;
32
  line-height: 18px;
33
  padding: 1px 4px;
34
  }
35
- #wpadminbar .eddtb-search-go {
36
  -webkit-border-radius: 11px;
37
  -moz-border-radius: 11px;
38
  border-radius: 11px;
@@ -62,13 +62,13 @@ display: none;
62
  .branch-3-7 #adminmenu .menu-icon-wp-lead div.wp-menu-image img {
63
  display: block;
64
  }
65
- #wp-admin-bar-inbound-cta a:first-child, #wp-admin-bar-inbound-inboundtemplates .ab-item.ab-empty-item, #wp-admin-bar-inbound-inboundsettings .ab-item.ab-empty-item, #wp-admin-bar-inbound-inboundreports a:first-child {
66
  padding-left: 30px !important;
67
  }
68
- #wp-admin-bar-inbound-inboundtemplates .ab-item.ab-empty-item:hover, #wp-admin-bar-inbound-inboundsettings .ab-item.ab-empty-item:hover {
69
  color: #2ea2cc;
70
  }
71
- #wp-admin-bar-inbound-leads a:first-child, #wp-admin-bar-inbound-inboundseo a:first-child, #wp-admin-bar-inbound-landingpages a:first-child, #wp-admin-bar-inbound-inboundforms a:first-child {
72
  padding-left: 31px !important;
73
  }
74
  #search-inbound-menu {
@@ -78,13 +78,13 @@ display: none;
78
  padding-left: 3px !important;
79
  margin-bottom: 1px !important;
80
  }
81
- #wp-admin-bar-inbound-inbounddocs-searchform, #wp-admin-bar-inbound-leads-search{
82
  margin-bottom: 10px !important;
83
  }
84
- #wp-admin-bar-inbound-cta .ab-submenu a, #wp-admin-bar-inbound-leads .ab-submenu a, #wp-admin-bar-inbound-landingpages .ab-submenu a , #wp-admin-bar-inbound-inboundforms .ab-submenu a, #wp-admin-bar-inbound-inboundtemplates .ab-submenu a, #wp-admin-bar-inbound-inboundreports .ab-submenu a, #wp-admin-bar-inbound-inboundseo .ab-submenu a{
85
  padding-left: 10px !important;
86
  }
87
- #wp-admin-bar-inbound-cta:before, #wp-admin-bar-inbound-leads:before, #wp-admin-bar-inbound-landingpages:before, #wp-admin-bar-inbound-inboundforms:before, #wp-admin-bar-inbound-inboundtemplates:before, #wp-admin-bar-inbound-inboundsettings:before, #wp-admin-bar-inbound-inboundreports:before, #wp-admin-bar-inbound-inboundseo:before {
88
  font-family: "FontAwesome" !important;
89
  content: "\f05b" !important;
90
  font: 100 19px/1 "FontAwesome" !important;
@@ -104,23 +104,23 @@ display: none;
104
  left: 7px;
105
  font-size: 21px !important;
106
  }
107
- #wp-admin-bar-inbound-inboundforms:before {
108
  font: 400 18px/1 dashicons!important;
109
  content: "\f163" !important;
110
  }
111
- #wp-admin-bar-inbound-inboundtemplates:before {
112
  content: "\f0c5" !important;
113
  font-size: 18px !important;
114
  }
115
- #wp-admin-bar-inbound-inboundsettings:before {
116
  content: "\f013" !important;
117
  left: 7px !important;
118
  }
119
- #wp-admin-bar-inbound-inboundreports:before {
120
  content: "\f012" !important;
121
  font-size: 17px !important;
122
  }
123
- #wp-admin-bar-inbound-inboundseo:before {
124
  content: "\f002" !important;
125
  font-size: 17px !important;
126
  }
1
+ #wpadminbar.nojs .ab-top-menu > li.menupop.inbound-nav-marketing:hover > .ab-item,
2
+ #wpadminbar .ab-top-menu > li.menupop.inbound-nav-marketing.hover > .ab-item,
3
+ #wpadminbar.nojs .ab-top-menu > li.menupop.inbound-nav-marketing > .ab-item,
4
+ #wpadminbar .ab-top-menu > li.menupop.inbound-nav-marketing > .ab-item {
5
 
6
  background-image: url('../../global/images/shortcodes-blue.png');
7
 
14
  color: #ff9900;
15
  content: '• ';
16
  }
17
+ #wpadminbar .inbound-search-input {
18
  width: 140px;
19
  }
20
  #wp-admin-bar-ddw-edd-inboundsupportsections .ab-item,
21
  #wp-admin-bar-ddw-edd-inbounddocsquick .ab-item,
22
  #wp-admin-bar-ddw-edd-inbounddocssections .ab-item,
23
+ #wpadminbar .inbound-search-input,
24
+ #wpadminbar .inbound-search-go {
25
  color: #21759b !important;
26
  text-shadow: none;
27
  }
28
+ #wpadminbar .inbound-search-input,
29
+ #wpadminbar .inbound-search-go {
30
  background-color: #fff;
31
  height: 18px;
32
  line-height: 18px;
33
  padding: 1px 4px;
34
  }
35
+ #wpadminbar .inbound-search-go {
36
  -webkit-border-radius: 11px;
37
  -moz-border-radius: 11px;
38
  border-radius: 11px;
62
  .branch-3-7 #adminmenu .menu-icon-wp-lead div.wp-menu-image img {
63
  display: block;
64
  }
65
+ #wp-admin-bar-inbound-cta a:first-child, #wp-admin-bar-inbound-templates .ab-item.ab-empty-item, #wp-admin-bar-inbound-settings .ab-item.ab-empty-item, #wp-admin-bar-inbound-analytics a:first-child {
66
  padding-left: 30px !important;
67
  }
68
+ #wp-admin-bar-inbound-templates .ab-item.ab-empty-item:hover, #wp-admin-bar-inbound-settings .ab-item.ab-empty-item:hover {
69
  color: #2ea2cc;
70
  }
71
+ #wp-admin-bar-inbound-leads a:first-child, #wp-admin-bar-inbound-seo a:first-child, #wp-admin-bar-inbound-landingpages a:first-child, #wp-admin-bar-inbound-forms a:first-child {
72
  padding-left: 31px !important;
73
  }
74
  #search-inbound-menu {
78
  padding-left: 3px !important;
79
  margin-bottom: 1px !important;
80
  }
81
+ #wp-admin-bar-inbound-docs-searchform, #wp-admin-bar-inbound-leads-search{
82
  margin-bottom: 10px !important;
83
  }
84
+ #wp-admin-bar-inbound-cta .ab-submenu a, #wp-admin-bar-inbound-leads .ab-submenu a, #wp-admin-bar-inbound-landingpages .ab-submenu a , #wp-admin-bar-inbound-forms .ab-submenu a, #wp-admin-bar-inbound-templates .ab-submenu a, #wp-admin-bar-inbound-analytics .ab-submenu a, #wp-admin-bar-inbound-seo .ab-submenu a{
85
  padding-left: 10px !important;
86
  }
87
+ #wp-admin-bar-inbound-cta:before, #wp-admin-bar-inbound-leads:before, #wp-admin-bar-inbound-landingpages:before, #wp-admin-bar-inbound-forms:before, #wp-admin-bar-inbound-templates:before, #wp-admin-bar-inbound-settings:before, #wp-admin-bar-inbound-analytics:before, #wp-admin-bar-inbound-seo:before {
88
  font-family: "FontAwesome" !important;
89
  content: "\f05b" !important;
90
  font: 100 19px/1 "FontAwesome" !important;
104
  left: 7px;
105
  font-size: 21px !important;
106
  }
107
+ #wp-admin-bar-inbound-forms:before {
108
  font: 400 18px/1 dashicons!important;
109
  content: "\f163" !important;
110
  }
111
+ #wp-admin-bar-inbound-templates:before {
112
  content: "\f0c5" !important;
113
  font-size: 18px !important;
114
  }
115
+ #wp-admin-bar-inbound-settings:before {
116
  content: "\f013" !important;
117
  left: 7px !important;
118
  }
119
+ #wp-admin-bar-inbound-analytics:before {
120
  content: "\f012" !important;
121
  font-size: 17px !important;
122
  }
123
+ #wp-admin-bar-inbound-seo:before {
124
  content: "\f002" !important;
125
  font-size: 17px !important;
126
  }
shared/assets/admin/css/image-picker.css ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ul.thumbnails.image_picker_selector {
2
+ overflow: auto;
3
+ list-style-image: none;
4
+ list-style-position: outside;
5
+ list-style-type: none;
6
+ padding-top:10px;
7
+ margin: 0px;
8
+ }
9
+ ul.thumbnails.image_picker_selector ul
10
+ {
11
+ overflow: auto;
12
+ list-style-image: none;
13
+ list-style-position: outside;
14
+ list-style-type: none;
15
+ padding: 0px;
16
+ margin: 0px;
17
+ }
18
+
19
+ ul.thumbnails.image_picker_selector li.group_title
20
+ {
21
+ float: none;
22
+ }
23
+ ul.thumbnails.image_picker_selector li
24
+ {
25
+ margin: 0px 12px 12px 0px;
26
+ float: left;
27
+ }
28
+ ul.thumbnails.image_picker_selector li .thumbnail
29
+ {
30
+ padding: 6px;
31
+ border: 1px solid #dddddd;
32
+ -webkit-user-select: none;
33
+ -moz-user-select: none;
34
+ -ms-user-select: none;
35
+ }
36
+
37
+ ul.thumbnails.image_picker_selector li .thumbnail img
38
+ {
39
+ -webkit-user-drag: none;
40
+ max-width:200px;
41
+ max-height:200px;
42
+ }
43
+
44
+ ul.thumbnails.image_picker_selector li .thumbnail.selected {
45
+ background: #0088cc;
46
+ }
shared/assets/admin/js/image-picker.js ADDED
@@ -0,0 +1,301 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Image Picker
2
+ // by Rodrigo Vera
3
+ //
4
+ // Version 0.2.4
5
+ // Full source at https://github.com/rvera/image-picker
6
+ // MIT License, https://github.com/rvera/image-picker/blob/master/LICENSE
7
+ // Generated by CoffeeScript 1.4.0
8
+ (function() {
9
+ var ImagePicker, ImagePickerOption, both_array_are_equal, sanitized_options,
10
+ __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
11
+ __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
12
+
13
+ jQuery.fn.extend({
14
+ imagepicker: function(opts) {
15
+ if (opts == null) {
16
+ opts = {};
17
+ }
18
+ return this.each(function() {
19
+ var select;
20
+ select = jQuery(this);
21
+ if (select.data("picker")) {
22
+ select.data("picker").destroy();
23
+ }
24
+ select.data("picker", new ImagePicker(this, sanitized_options(opts)));
25
+ if (opts.initialized != null) {
26
+ return opts.initialized.call(select.data("picker"));
27
+ }
28
+ });
29
+ }
30
+ });
31
+
32
+ sanitized_options = function(opts) {
33
+ var default_options;
34
+ default_options = {
35
+ hide_select: true,
36
+ show_label: false,
37
+ initialized: void 0,
38
+ changed: void 0,
39
+ clicked: void 0,
40
+ selected: void 0,
41
+ limit: void 0,
42
+ limit_reached: void 0
43
+ };
44
+ return jQuery.extend(default_options, opts);
45
+ };
46
+
47
+ both_array_are_equal = function(a, b) {
48
+ return jQuery(a).not(b).length === 0 && jQuery(b).not(a).length === 0;
49
+ };
50
+
51
+ ImagePicker = (function() {
52
+
53
+ function ImagePicker(select_element, opts) {
54
+ this.opts = opts != null ? opts : {};
55
+ this.sync_picker_with_select = __bind(this.sync_picker_with_select, this);
56
+
57
+ this.select = jQuery(select_element);
58
+ this.multiple = this.select.attr("multiple") === "multiple";
59
+ if (this.select.data("limit") != null) {
60
+ this.opts.limit = parseInt(this.select.data("limit"));
61
+ }
62
+ this.build_and_append_picker();
63
+ }
64
+
65
+ ImagePicker.prototype.destroy = function() {
66
+ var option, _i, _len, _ref;
67
+ _ref = this.picker_options;
68
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
69
+ option = _ref[_i];
70
+ option.destroy();
71
+ }
72
+ this.picker.remove();
73
+ this.select.unbind("change");
74
+ this.select.removeData("picker");
75
+ return this.select.show();
76
+ };
77
+
78
+ ImagePicker.prototype.build_and_append_picker = function() {
79
+ var _this = this;
80
+ if (this.opts.hide_select) {
81
+ this.select.hide();
82
+ }
83
+ this.select.change(function() {
84
+ return _this.sync_picker_with_select();
85
+ });
86
+ if (this.picker != null) {
87
+ this.picker.remove();
88
+ }
89
+ this.create_picker();
90
+ this.select.after(this.picker);
91
+ return this.sync_picker_with_select();
92
+ };
93
+
94
+ ImagePicker.prototype.sync_picker_with_select = function() {
95
+ var option, _i, _len, _ref, _results;
96
+ _ref = this.picker_options;
97
+ _results = [];
98
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
99
+ option = _ref[_i];
100
+ if (option.is_selected()) {
101
+ _results.push(option.mark_as_selected());
102
+ } else {
103
+ _results.push(option.unmark_as_selected());
104
+ }
105
+ }
106
+ return _results;
107
+ };
108
+
109
+ ImagePicker.prototype.create_picker = function() {
110
+ this.picker = jQuery("<ul class='thumbnails image_picker_selector'></ul>");
111
+ this.picker_options = [];
112
+ this.recursively_parse_option_groups(this.select, this.picker);
113
+ return this.picker;
114
+ };
115
+
116
+ ImagePicker.prototype.recursively_parse_option_groups = function(scoped_dom, target_container) {
117
+ var container, option, option_group, _i, _j, _len, _len1, _ref, _ref1, _results;
118
+ _ref = scoped_dom.children("optgroup");
119
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
120
+ option_group = _ref[_i];
121
+ option_group = jQuery(option_group);
122
+ container = jQuery("<ul></ul>");
123
+ container.append(jQuery("<li class='group_title'>" + (option_group.attr("label")) + "</li>"));
124
+ target_container.append(jQuery("<li>").append(container));
125
+ this.recursively_parse_option_groups(option_group, container);
126
+ }
127
+ _ref1 = (function() {
128
+ var _k, _len1, _ref1, _results1;
129
+ _ref1 = scoped_dom.children("option");
130
+ _results1 = [];
131
+ for (_k = 0, _len1 = _ref1.length; _k < _len1; _k++) {
132
+ option = _ref1[_k];
133
+ _results1.push(new ImagePickerOption(option, this, this.opts));
134
+ }
135
+ return _results1;
136
+ }).call(this);
137
+ _results = [];
138
+ for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {
139
+ option = _ref1[_j];
140
+ this.picker_options.push(option);
141
+ if (!option.has_image()) {
142
+ continue;
143
+ }
144
+ _results.push(target_container.append(option.node));
145
+ }
146
+ return _results;
147
+ };
148
+
149
+ ImagePicker.prototype.has_implicit_blanks = function() {
150
+ var option;
151
+ return ((function() {
152
+ var _i, _len, _ref, _results;
153
+ _ref = this.picker_options;
154
+ _results = [];
155
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
156
+ option = _ref[_i];
157
+ if (option.is_blank() && !option.has_image()) {
158
+ _results.push(option);
159
+ }
160
+ }
161
+ return _results;
162
+ }).call(this)).length > 0;
163
+ };
164
+
165
+ ImagePicker.prototype.selected_values = function() {
166
+ if (this.multiple) {
167
+ return this.select.val() || [];
168
+ } else {
169
+ return [this.select.val()];
170
+ }
171
+ };
172
+
173
+ ImagePicker.prototype.toggle = function(imagepicker_option) {
174
+ var new_values, old_values, selected_value;
175
+ old_values = this.selected_values();
176
+ selected_value = imagepicker_option.value().toString();
177
+ if (this.multiple) {
178
+ if (__indexOf.call(this.selected_values(), selected_value) >= 0) {
179
+ new_values = this.selected_values();
180
+ new_values.splice(jQuery.inArray(selected_value, old_values), 1);
181
+ this.select.val([]);
182
+ this.select.val(new_values);
183
+ } else {
184
+ if ((this.opts.limit != null) && this.selected_values().length >= this.opts.limit) {
185
+ if (this.opts.limit_reached != null) {
186
+ this.opts.limit_reached.call(this.select);
187
+ }
188
+ } else {
189
+ this.select.val(this.selected_values().concat(selected_value));
190
+ }
191
+ }
192
+ } else {
193
+ if (this.has_implicit_blanks() && imagepicker_option.is_selected()) {
194
+ this.select.val("");
195
+ } else {
196
+ this.select.val(selected_value);
197
+ }
198
+ }
199
+ if (!both_array_are_equal(old_values, this.selected_values())) {
200
+ this.select.change();
201
+ if (this.opts.changed != null) {
202
+ return this.opts.changed.call(this.select, old_values, this.selected_values());
203
+ }
204
+ }
205
+ };
206
+
207
+ return ImagePicker;
208
+
209
+ })();
210
+
211
+ ImagePickerOption = (function() {
212
+
213
+ function ImagePickerOption(option_element, picker, opts) {
214
+ this.picker = picker;
215
+ this.opts = opts != null ? opts : {};
216
+ this.clicked = __bind(this.clicked, this);
217
+
218
+ this.option = jQuery(option_element);
219
+ this.create_node();
220
+ }
221
+
222
+ ImagePickerOption.prototype.destroy = function() {
223
+ return this.node.find(".thumbnail").unbind();
224
+ };
225
+
226
+ ImagePickerOption.prototype.has_image = function() {
227
+ return this.option.data("img-src") != null;
228
+ };
229
+
230
+ ImagePickerOption.prototype.is_blank = function() {
231
+ return !((this.value() != null) && this.value() !== "");
232
+ };
233
+
234
+ ImagePickerOption.prototype.is_selected = function() {
235
+ var select_value;
236
+ select_value = this.picker.select.val();
237
+ if (this.picker.multiple) {
238
+ return jQuery.inArray(this.value(), select_value) >= 0;
239
+ } else {
240
+ return this.value() === select_value;
241
+ }
242
+ };
243
+
244
+ ImagePickerOption.prototype.mark_as_selected = function() {
245
+ return this.node.find(".thumbnail").addClass("selected");
246
+ };
247
+
248
+ ImagePickerOption.prototype.unmark_as_selected = function() {
249
+ return this.node.find(".thumbnail").removeClass("selected");
250
+ };
251
+
252
+ ImagePickerOption.prototype.value = function() {
253
+ return this.option.val();
254
+ };
255
+
256
+ ImagePickerOption.prototype.label = function() {
257
+ if (this.option.data("img-label")) {
258
+ return this.option.data("img-label");
259
+ } else {
260
+ return this.option.text();
261
+ }
262
+ };
263
+
264
+ ImagePickerOption.prototype.clicked = function() {
265
+ this.picker.toggle(this);
266
+ if (this.opts.clicked != null) {
267
+ this.opts.clicked.call(this.picker.select, this);
268
+ }
269
+ if ((this.opts.selected != null) && this.is_selected()) {
270
+ return this.opts.selected.call(this.picker.select, this);
271
+ }
272
+ };
273
+
274
+ ImagePickerOption.prototype.create_node = function() {
275
+ var image, thumbnail;
276
+ this.node = jQuery("<li/>");
277
+ image = jQuery("<img class='image_picker_image'/>");
278
+ image.attr("src", this.option.data("img-src"));
279
+ thumbnail = jQuery("<div class='thumbnail'>");
280
+ thumbnail.click({
281
+ option: this
282
+ }, function(event) {
283
+ return event.data.option.clicked();
284
+ });
285
+ thumbnail.append(image);
286
+ if (this.opts.show_label) {
287
+ thumbnail.append(jQuery("<p/>").html(this.label()));
288
+ }
289
+ this.node.append(thumbnail);
290
+ return this.node;
291
+ };
292
+
293
+ return ImagePickerOption;
294
+
295
+ })();
296
+
297
+ }).call(this);
298
+
299
+ jQuery(document).ready(function($) {
300
+ jQuery(".image-picker").imagepicker()
301
+ });
shared/assets/assets.loader.class.php CHANGED
@@ -42,11 +42,14 @@ class Inbound_Asset_Loader {
42
 
43
  $inbound_now_screens = InboundCompatibility::return_inbound_now_screens(); // list of inbound now screens
44
  $screen = get_current_screen();
45
- //echo $screen->id;
46
- /* Target Specific screen with // echo $screen->id;
47
- if ( $screen->id != 'landing-page_page_lp_global_settings') {
48
 
49
- } */
 
 
 
 
 
 
50
  //self::load_file('script-test', 'admin/js/test.js');
51
  } else {
52
 
@@ -101,6 +104,8 @@ class Inbound_Asset_Loader {
101
  $post_id = null;
102
  $id_check = false;
103
  $page_tracking = 'on';
 
 
104
  $post_type = isset($post) ? get_post_type( $post ) : null;
105
  $current_page = "http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];
106
  $ip_address = (isset($_SERVER['REMOTE_ADDR'])) ? $_SERVER['REMOTE_ADDR'] : '0.0.0.0.0';
@@ -110,7 +115,13 @@ class Inbound_Asset_Loader {
110
  $custom_map_values = array();
111
  $custom_map_values = apply_filters( 'inboundnow_custom_map_values_filter' , $custom_map_values);
112
  // Get correct post ID
113
- if (!is_archive()){
 
 
 
 
 
 
114
  $post_id = (isset($post)) ? $post->ID : false;
115
  $id_check = ($post_id != null) ? true : false;
116
  }
@@ -124,7 +135,15 @@ class Inbound_Asset_Loader {
124
  }
125
 
126
  // If page tracking on
127
- $lead_page_view_tracking = get_option( 'wpl-main-page-view-tracking');
 
 
 
 
 
 
 
 
128
  if (!$lead_page_view_tracking) {
129
  $page_tracking = 'off';
130
  }
@@ -137,7 +156,7 @@ class Inbound_Asset_Loader {
137
  $time = current_time( 'timestamp', 0 ); // Current wordpress time from settings
138
  $wordpress_date_time = date("Y-m-d G:i:s T", $time);
139
 
140
- $inbound_localized_data = array( 'post_id' => $post_id, 'ip_address' => $ip_address, 'wp_lead_data' => $lead_data_array, 'admin_url' => admin_url( 'admin-ajax.php' ), 'track_time' => $wordpress_date_time, 'post_type' => $post_type, 'page_tracking' => $page_tracking, 'custom_mapping' => $custom_map_values);
141
 
142
  return $inbound_localized_data;
143
  } // end localize lead data
42
 
43
  $inbound_now_screens = InboundCompatibility::return_inbound_now_screens(); // list of inbound now screens
44
  $screen = get_current_screen();
 
 
 
45
 
46
+ /* Target Specific screen with // echo $screen->id; */
47
+
48
+ if ( $screen->id == 'wp-call-to-action') {
49
+ self::load_file('image-picker-js', 'admin/js/image-picker.js');
50
+ self::load_file('image-picker-css', 'admin/css/image-picker.css');
51
+ }
52
+
53
  //self::load_file('script-test', 'admin/js/test.js');
54
  } else {
55
 
104
  $post_id = null;
105
  $id_check = false;
106
  $page_tracking = 'on';
107
+ $search_tracking = 'on';
108
+ $comment_tracking = 'on';
109
  $post_type = isset($post) ? get_post_type( $post ) : null;
110
  $current_page = "http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];
111
  $ip_address = (isset($_SERVER['REMOTE_ADDR'])) ? $_SERVER['REMOTE_ADDR'] : '0.0.0.0.0';
115
  $custom_map_values = array();
116
  $custom_map_values = apply_filters( 'inboundnow_custom_map_values_filter' , $custom_map_values);
117
  // Get correct post ID
118
+ if (is_home()){
119
+ global $wp_query;
120
+ $current_page_id = $wp_query->get_queried_object_id();
121
+ $post_id = $current_page_id;
122
+ $id_check = ($post_id != null) ? true : false;
123
+ }
124
+ if (!is_archive() && !$id_check){
125
  $post_id = (isset($post)) ? $post->ID : false;
126
  $id_check = ($post_id != null) ? true : false;
127
  }
135
  }
136
 
137
  // If page tracking on
138
+ $lead_page_view_tracking = get_option( 'wpl-main-page-view-tracking', 1);
139
+ $lead_search_tracking = get_option( 'wpl-main-search-tracking', 1);
140
+ $lead_comment_tracking = get_option( 'wpl-main-comment-tracking', 1);
141
+ if (!$lead_search_tracking) {
142
+ $search_tracking = 'off';
143
+ }
144
+ if (!$lead_comment_tracking) {
145
+ $comment_tracking = 'off';
146
+ }
147
  if (!$lead_page_view_tracking) {
148
  $page_tracking = 'off';
149
  }
156
  $time = current_time( 'timestamp', 0 ); // Current wordpress time from settings
157
  $wordpress_date_time = date("Y-m-d G:i:s T", $time);
158
 
159
+ $inbound_localized_data = array( 'post_id' => $post_id, 'ip_address' => $ip_address, 'wp_lead_data' => $lead_data_array, 'admin_url' => admin_url( 'admin-ajax.php' ), 'track_time' => $wordpress_date_time, 'post_type' => $post_type, 'page_tracking' => $page_tracking, 'search_tracking' => $search_tracking, 'comment_tracking' => $comment_tracking, 'custom_mapping' => $custom_map_values);
160
 
161
  return $inbound_localized_data;
162
  } // end localize lead data
shared/assets/frontend/js/form-population.js ADDED
@@ -0,0 +1 @@
 
0
  jQuery(selector).each(
1
  function(){
2
  //if this item has been cookied, restore it
3
  var name = jQuery(this).attr('name');
4
  if( jQuery.cookie( name ) ){
5
  jQuery(this).val( jQuery.cookie(name) );
6
  }
7
  //assign a change function to the item to cookie it
8
  jQuery(this).change(
9
  function(){
10
  jQuery.cookie(name, jQuery(this).val(), { path: '/', expires: 365 });
11
  }
12
  );
13
  }
14
  );
15
  jQuery(selector).each(
16
  function(){
17
  var form_name = jQuery(this).attr('name');
18
  var form_id = jQuery(this).attr('id');
19
  var form_class = jQuery(this).attr('class');
20
  if(typeof(form_name) != "undefined" && form_name !== null) {
21
  jQuery.cookie("wp_cta_form_uid", form_name, { path: '/', expires: 365 });
22
  }
23
  else if(typeof(form_id) != "undefined" && form_id !== null) {
24
  jQuery.cookie("wp_cta_form_uid", form_id, { path: '/', expires: 365 });
25
  }
26
  else if (typeof(form_class) != "undefined" && form_class !== null) {
27
  jQuery.cookie("wp_cta_form_uid", form_class, { path: '/', expires: 365 });
28
  } else {
29
  jQuery.cookie("wp_cta_form_uid", 'form_generic', { path: '/', expires: 365 });
30
  }
31
  }
32
  );
33
  // Fill Form Inputs from Cookies
34
  });
1
+ function wpl_remember_inputs( selector ){
2
  jQuery(selector).each(
3
  function(){
4
  //if this item has been cookied, restore it
5
  var name = jQuery(this).attr('name');
6
  if( jQuery.cookie( name ) ){
7
  jQuery(this).val( jQuery.cookie(name) );
8
  }
9
  //assign a change function to the item to cookie it
10
  jQuery(this).change(
11
  function(){
12
  jQuery.cookie(name, jQuery(this).val(), { path: '/', expires: 365 });
13
  }
14
  );
15
  }
16
  );
17
  jQuery(selector).each(
18
  function(){
19
  var form_name = jQuery(this).attr('name');
20
  var form_id = jQuery(this).attr('id');
21
  var form_class = jQuery(this).attr('class');
22
  if(typeof(form_name) != "undefined" && form_name !== null) {
23
  jQuery.cookie("wp_cta_form_uid", form_name, { path: '/', expires: 365 });
24
  }
25
  else if(typeof(form_id) != "undefined" && form_id !== null) {
26
  jQuery.cookie("wp_cta_form_uid", form_id, { path: '/', expires: 365 });
27
  }
28
  else if (typeof(form_class) != "undefined" && form_class !== null) {
29
  jQuery.cookie("wp_cta_form_uid", form_class, { path: '/', expires: 365 });
30
  } else {
31
  jQuery.cookie("wp_cta_form_uid", 'form_generic', { path: '/', expires: 365 });
32
  }
33
  }
34
  );
35
  // Fill Form Inputs from Cookies
36
  });
shared/assets/frontend/js/page-tracking.js CHANGED
@@ -267,55 +267,6 @@ function add_page_timeout(date, minutes) {
267
  Date.prototype.format = function (mask, utc) {
268
  return dateFormat(this, mask, utc);
269
  };
270
- // Query String for utm params
271
- /* Query String Stuff
272
-
273
- var inbound_urlParams = {};
274
-
275
- (function () {
276
- var e,
277
- d = function (s) { return decodeURIComponent(s).replace(/\+/g, " "); },
278
- q = window.location.search.substring(1),
279
- r = /([^&=]+)=?([^&]*)/g;
280
-
281
- while (e = r.exec(q)) {
282
- if (e[1].indexOf("[") == "-1")
283
- inbound_urlParams[d(e[1])] = d(e[2]);
284
- else {
285
- var b1 = e[1].indexOf("["),
286
- aN = e[1].slice(b1+1, e[1].indexOf("]", b1)),
287
- pN = d(e[1].slice(0, b1));
288
-
289
- if (typeof inbound_urlParams[pN] != "object")
290
- inbound_urlParams[d(pN)] = {},
291
- inbound_urlParams[d(pN)].length = 0;
292
-
293
- if (aN)
294
- inbound_urlParams[d(pN)][d(aN)] = d(e[2]);
295
- else
296
- Array.prototype.push.call(inbound_urlParams[d(pN)], d(e[2]));
297
-
298
- }
299
- }
300
- })();
301
-
302
- if (JSON) {
303
- result = JSON.stringify(inbound_urlParams, null, 4);
304
-
305
- for (var k in inbound_urlParams) {
306
- if (typeof inbound_urlParams[k] == "object") {
307
- for (var k2 in inbound_urlParams[k])
308
- jQuery.cookie(k2, inbound_urlParams[k][k2], { expires: 365 });
309
- console.log(k2);
310
- console.log(inbound_urlParams[k][k2]);
311
- } else {
312
- jQuery.cookie(k, inbound_urlParams[k], { expires: 365 }); }
313
- console.log(k);
314
- console.log(inbound_urlParams[k]);
315
- }
316
-
317
- }
318
- */
319
 
320
  /* Set Lead UID */
321
  if(jQuery.cookie("wp_lead_uid") === null) {
267
  Date.prototype.format = function (mask, utc) {
268
  return dateFormat(this, mask, utc);
269
  };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
270
 
271
  /* Set Lead UID */
272
  if(jQuery.cookie("wp_lead_uid") === null) {
shared/assets/frontend/js/store.lead.ajax.js CHANGED
@@ -1,4 +1,4 @@
1
- var inbound_form_data = inbound_form_data || {};
2
  // Ensure global _gaq Google Analytics queue has been initialized.
3
  var _gaq = _gaq || [];
4
 
@@ -8,12 +8,102 @@ function add_inbound_form_class(el, value) {
8
  //el.addClass('inbound_map_value');
9
  //el.attr('data-inbound-form-map', 'inbound_map_' + value);
10
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
 
12
  function get_inbound_form_value(el) {
13
  var value = el.value;
14
  return value;
15
  }
16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  // Build Form Object
18
  function inbound_map_fields(el, value, Obj) {
19
  var formObj = [];
@@ -58,6 +148,8 @@ function run_field_map_function(el, lookingfor) {
58
  var formObj = new Array();
59
  var $this = el;
60
  var body = jQuery("body");
 
 
61
  var this_val = $this.attr("value");
62
  var array = lookingfor.split(",");
63
  var array_length = array.length - 1;
@@ -67,32 +159,32 @@ function run_field_map_function(el, lookingfor) {
67
  var clean_output = trim(array[i]);
68
  var nice_name = clean_output.replace(/^\s+|\s+$/g,'');
69
  var nice_name = nice_name.replace(" ",'_');
70
- var in_object_already = nice_name in inbound_form_data;
71
  //console.log(clean_output);
72
 
73
  // Look for attr name match
74
- if ($this.attr("name").toLowerCase().indexOf(clean_output)>-1) {
75
  var the_map = inbound_map_fields($this, clean_output, formObj);
76
  add_inbound_form_class($this, clean_output);
77
  console.log('match name: ' + clean_output);
78
- console.log(nice_name in inbound_form_data);
79
  if (!in_object_already) {
80
- inbound_form_data[nice_name] = this_val;
81
  }
82
  }
83
  // look for id match
84
- else if ($this.attr("id").toLowerCase().indexOf(clean_output)>-1) {
85
  var the_map = inbound_map_fields($this, clean_output, formObj);
86
  add_inbound_form_class($this, clean_output);
87
  console.log('match id: ' + clean_output);
88
  if (!in_object_already) {
89
- inbound_form_data[nice_name] = this_val;
90
  }
91
  }
92
  // Look for label name match
93
- else if ($this.closest('li').children('label').length>0)
94
- {
95
- if ($this.closest('li').children('label').html().toLowerCase().indexOf(clean_output)>-1)
96
  {
97
  var the_map = inbound_map_fields($this, clean_output, formObj);
98
  add_inbound_form_class($this, clean_output);
@@ -102,43 +194,57 @@ function run_field_map_function(el, lookingfor) {
102
  console.log(exists_in_dom);
103
  console.log('match li: ' + clean_output);
104
  if (!in_object_already) {
105
- inbound_form_data[nice_name] = this_val;
106
  }
107
 
108
  }
109
  }
110
  // Look for closest div label name match
111
- else if ($this.closest('div').children('label').length>0)
112
- {
113
- if ($this.closest('div').children('label').html().toLowerCase().indexOf(clean_output)>-1)
114
  {
115
  var the_map = inbound_map_fields($this, clean_output, formObj);
116
  add_inbound_form_class($this, clean_output);
117
  console.log('match div: ' + clean_output);
118
  if (!in_object_already) {
119
- inbound_form_data[nice_name] = this_val;
 
 
 
 
 
 
 
 
 
 
 
 
 
120
  }
121
  }
122
  } else {
123
- // regex check?
124
- return false;
125
  }
126
  }
127
  return_form = the_map;
128
 
129
- return inbound_form_data;
130
  }
131
 
132
  function return_mapped_values(this_form) {
133
  // Map form fields
134
  jQuery(this_form).find('input[type=text],input[type=email],textarea,select').each(function() {
 
135
  var this_input = jQuery(this);
136
- if (this.value) {
137
- var inbound_form_data = run_field_map_function( this_input, "name, first name, last name, email, e-mail, phone, website, job title, company, tele, address");
 
138
  }
139
- return inbound_form_data;
140
  });
141
- return inbound_form_data;
142
  }
143
 
144
  function merge_form_options(obj1,obj2){
@@ -148,12 +254,20 @@ function merge_form_options(obj1,obj2){
148
  return obj3;
149
  }
150
 
151
- function release_form_sub(this_form, element_type){
 
152
  jQuery('body, button, input, input[type="button"]').css('cursor', 'default');
153
-
154
  if (element_type=='FORM') {
155
  this_form.unbind('submit');
156
  this_form.submit();
 
 
 
 
 
 
 
157
  }
158
 
159
  if (element_type=='A') {
@@ -167,147 +281,293 @@ function release_form_sub(this_form, element_type){
167
  }
168
  }
169
 
170
- jQuery(document).ready(function($) {
171
- /* Core Inbound Form Tracking Script */
172
- jQuery("body").on('submit', '.wpl-track-me', function (e) {
 
 
173
 
174
- this_form = jQuery(this);
175
- element_type = 'FORM';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
176
 
177
- // process form only once
178
- processed = this_form.hasClass('lead_processed');
179
- if (processed === true) {
180
- return;
 
 
 
 
 
 
 
 
181
  }
182
- // halt normal form submission
183
- $('body, button, input[type="button"], input').css('cursor', 'wait');
184
- e.preventDefault();
185
-
186
- // Email Validation Check
187
- var inbound_form_exists = $("#inbound-form-wrapper").length;
188
- var email_validation = $(".inbound-email.invalid-email").length;
189
- if (email_validation > 0 && inbound_form_exists > 0) {
190
- jQuery(".inbound-email.invalid-email").focus();
191
- alert("Please enter a valid email address");
192
- return false;
193
  }
194
-
195
- /* Define Variables */
196
- // Dynamic JS object for passing custom values. This can be hooked into by third parties by using the below syntax.
197
- var inbound_form_data = inbound_form_data || {};
198
- inbound_form_data['page_view_count'] = countProperties(pageviewObj);
199
- inbound_form_data['leads_list'] = jQuery(this_form).find('#inbound_form_lists').val();
200
- inbound_form_data['source'] = jQuery.cookie("wp_lead_referral_site") || "NA";
201
- inbound_form_data['page_id'] = inbound_ajax.post_id;
202
-
203
- // Map form fields
204
- var returned_form_data = return_mapped_values(this_form);
205
- var inbound_form_data = merge_form_options(inbound_form_data,returned_form_data);
206
- //console.log(inbound_form_data);
207
-
208
- // Set variables
209
- var email = inbound_form_data['email'] || false; // back fallback
210
- if (!email) {
211
- var email = this_form.find('.inbound-email').val() || false; // email fallback
212
- inbound_form_data['email'] = email;
213
  }
 
 
 
 
214
 
 
 
 
 
 
 
 
 
 
215
 
216
- var form_name = this_form.find('.inbound_form_name').val() || "Not Found";
217
- inbound_form_data['form_name'] = form_name;
218
- var firstname = inbound_form_data['first_name'] || false;
219
- var lastname = inbound_form_data['last_name'] || false;
220
- var phone = inbound_form_data['phone'] || "";
221
- var company = inbound_form_data['company'] || "";
222
- var address = inbound_form_data['address'] || "";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
223
 
224
- if (firstname && lastname) {
225
- inbound_form_data['name'] = firstname + " " + lastname;
226
- }
227
 
228
- if(!firstname){
229
- var firstname = inbound_form_data['name'] || false;
230
- }
 
 
 
 
 
 
 
 
 
 
231
 
232
- if (!lastname && firstname) {
233
- var parts = firstname.split(" ");
234
- firstname = parts[0];
235
- lastname = parts[1];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
236
  }
 
 
237
 
238
- var form_inputs = jQuery('.wpl-track-me').find('input[type=text],input[type=hidden],textarea,select');
239
- var post_values = {};
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
240
 
241
- // unset values with exclude array
242
- var inbound_exclude = inbound_exclude || [];
243
- inbound_exclude.push('inbound_furl', 'inbound_current_page_url', 'inbound_notify', 'inbound_submitted', 'post_type', 'post_status', 's', 'inbound_form_name', 'inbound_form_id', 'inbound_form_lists');
 
 
 
 
244
 
245
- form_inputs.each(function() {
246
- if (jQuery.inArray(this.name, inbound_exclude) === -1){
247
- post_values[this.name] = jQuery(this).val();
248
- }
249
- if (this.value.indexOf('@')>-1&&!email){
250
- email = jQuery(this).val();
251
- inbound_form_data['email'] = email;
252
- }
253
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
254
 
255
- var all_form_fields = JSON.stringify(post_values);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
256
 
257
- var page_views = JSON.stringify(pageviewObj);
 
 
258
 
259
- if (typeof (landing_path_info) != "undefined" && landing_path_info != null && landing_path_info != "") {
260
- var lp_variation = landing_path_info.variation;
261
- } else if (typeof (cta_path_info) != "undefined" && cta_path_info != null && cta_path_info != "") {
262
- var lp_variation = cta_path_info.variation;
263
  } else {
264
- var lp_variation = 0;
 
 
 
265
  }
266
 
267
- inbound_form_data['variation'] = lp_variation;
268
- inbound_form_data['post_type'] = inbound_ajax.post_type;
269
- inbound_form_data['wp_lead_uid'] = jQuery.cookie("wp_lead_uid") || null;
270
- inbound_form_data['ip_address'] = inbound_ajax.ip_address;
271
 
272
- var lp_check = (inbound_ajax.post_type === 'landing-page') ? 'Landing Page' : "";
273
- var cta_check = (inbound_ajax.post_type === 'wp-call-to-action') ? 'Call to Action' : "";
274
- var page_type = (!cta_check && !lp_check) ? inbound_ajax.post_type : lp_check + cta_check;
 
 
 
 
 
275
 
276
- // jsonify inbound_form_data
277
- var post_form_data = JSON.stringify(inbound_form_data);
278
- console.log(post_form_data);
279
 
280
- jQuery.cookie("wp_lead_email", email, { path: '/', expires: 365 }); // save email
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
281
 
282
  jQuery.ajax({
283
  type: 'POST',
284
  url: inbound_ajax.admin_url,
285
  timeout: 10000,
286
- data: {
287
- action: 'inbound_store_lead',
288
- emailTo: email,
289
- first_name: firstname,
290
- last_name: lastname,
291
- phone: phone,
292
- address: address,
293
- company_name: company,
294
- page_views: page_views,
295
- form_input_values: all_form_fields,
296
- Mapped_Data: post_form_data
297
- /* Replace with jquery hook
298
- do_action('wpl-lead-collection-add-ajax-data');
299
- */
300
- },
301
  success: function(user_id){
302
  jQuery(this_form).trigger("inbound_form_complete"); // Trigger custom hook
303
- jQuery.cookie("wp_lead_id", user_id, { path: '/', expires: 365 });
304
  jQuery.totalStorage('wp_lead_id', user_id);
305
- this_form.addClass('lead_processed');
306
- inbound_ga_log_event('Inbound Form Conversions', 'Conversion', "Conversion on '"+ form_name + "' form on page '" + document.title + "' on url '" + window.location.href + "'"); // GA push
307
- //console.log(_gaq);
308
 
 
 
309
  // Unbind form
310
- release_form_sub(this_form, 'FORM');
 
311
 
312
  $('body, button, input[type="button"], input').css('cursor', 'default');
313
 
@@ -315,34 +575,12 @@ jQuery(document).ready(function($) {
315
  jQuery.totalStorage.deleteItem('tracking_events'); // remove events
316
  //jQuery.totalStorage.deleteItem('cta_clicks'); // remove cta
317
 
318
-
319
  },
320
  error: function(MLHttpRequest, textStatus, errorThrown){
321
- //console.log(MLHttpRequest+' '+errorThrown+' '+textStatus); // debug
322
-
323
- // Create fallback localstorage object
324
- var conversionObj = new Array();
325
- conversionObj.push({
326
- action: 'inbound_store_lead',
327
- emailTo: email,
328
- first_name: firstname,
329
- last_name: lastname,
330
- wp_lead_uid: wp_lead_uid,
331
- page_view_count: page_view_count,
332
- page_views: page_views,
333
- post_type: inbound_ajax.post_type,
334
- lp_variation: lp_variation,
335
- // type: 'form-completion',
336
- form_input_values : all_form_fields,
337
- lp_id: page_id
338
- });
339
-
340
- jQuery.totalStorage('failed_conversion', conversionObj); // store failed data
341
- jQuery.cookie("failed_conversion", true, { path: '/', expires: 365 });
342
-
343
- // If fail, cookie form data and ajax submit on next page load
344
- console.log('ajax fail');
345
- release_form_sub( this_form , element_type );
346
 
347
  }
348
  });
@@ -352,6 +590,14 @@ jQuery(document).ready(function($) {
352
  jQuery("body").on('click', '.wpl-track-me-link', function (e) {
353
 
354
  this_form = jQuery(this);
 
 
 
 
 
 
 
 
355
 
356
  var element_type='A';
357
  var a_href = jQuery(this).attr("href");
@@ -386,7 +632,7 @@ jQuery(document).ready(function($) {
386
  } else {
387
  var lp_variation = null;
388
  }
389
-
390
  jQuery.ajax({
391
  type: 'POST',
392
  url: inbound_ajax.admin_url,
@@ -445,41 +691,24 @@ jQuery(document).ready(function($) {
445
  }
446
  });
447
 
448
-
449
-
450
  });
451
 
452
-
453
  /* Fallback for lead storage if ajax fails */
454
  var failed_conversion = jQuery.cookie("failed_conversion");
455
  var fallback_obj = jQuery.totalStorage('failed_conversion');
456
 
457
  if (typeof (failed_conversion) != "undefined" && failed_conversion == 'true' ) {
458
  if (typeof fallback_obj == 'object' && fallback_obj) {
459
- //console.log('fallback ran');
460
  jQuery.ajax({
461
  type: 'POST',
462
  url: inbound_ajax.admin_url,
463
- data: {
464
- action: fallback_obj[0].action,
465
- emailTo: fallback_obj[0].emailTo,
466
- first_name: fallback_obj[0].first_name,
467
- last_name: fallback_obj[0].last_name,
468
- wp_lead_uid: fallback_obj[0].wp_lead_uid,
469
-
470
- page_views: fallback_obj[0].page_views,
471
- post_type: fallback_obj[0].post_type,
472
- lp_variation: fallback_obj[0].lp_variation,
473
- json: fallback_obj[0].json, // replace with page_view_obj
474
- // type: 'form-completion',
475
- form_input_values: fallback_obj[0].raw_post_values_json,
476
- lp_id: fallback_obj[0].lp_id
477
- /* Replace with jquery hook
478
- do_action('wpl-lead-collection-add-ajax-data');
479
- */
480
- },
481
  success: function(user_id){
482
- //console.log('Fallback fired');
 
 
483
  jQuery.removeCookie("failed_conversion"); // remove failed cookie
484
  jQuery.totalStorage.deleteItem('failed_conversion'); // remove failed data
485
  },
1
+ var inbound_data = inbound_data || {};
2
  // Ensure global _gaq Google Analytics queue has been initialized.
3
  var _gaq = _gaq || [];
4
 
8
  //el.addClass('inbound_map_value');
9
  //el.attr('data-inbound-form-map', 'inbound_map_' + value);
10
  }
11
+ // http://clubmate.fi/setting-and-reading-cookies-with-javascript/
12
+ function createCookie(name, value, days) {
13
+ var expires;
14
+ if (days) {
15
+ var date = new Date();
16
+ date.setTime(date.getTime()+(days*24*60*60*1000));
17
+ expires = "; expires="+date.toGMTString();
18
+ }
19
+ else {
20
+ expires = "";
21
+ }
22
+ document.cookie = name+"="+value+expires+"; path=/";
23
+ }
24
+ // Read cookie
25
+ function readCookie(name) {
26
+ var nameEQ = name + "=";
27
+ var ca = document.cookie.split(';');
28
+ for(var i=0;i < ca.length;i++) {
29
+ var c = ca[i];
30
+ while (c.charAt(0) === ' ') {
31
+ c = c.substring(1,c.length);
32
+ }
33
+ if (c.indexOf(nameEQ) === 0) {
34
+ return c.substring(nameEQ.length,c.length);
35
+ }
36
+ }
37
+ return null;
38
+ }
39
+ // Erase cookie
40
+ function eraseCookie(name) {
41
+ createCookie(name,"",-1);
42
+ }
43
+
44
+ function lead_store_url_params(){
45
+ var urlParams = {};
46
+
47
+ (function () {
48
+ var e,
49
+ d = function (s) { return decodeURIComponent(s).replace(/\+/g, " "); },
50
+ q = window.location.search.substring(1),
51
+ r = /([^&=]+)=?([^&]*)/g;
52
+
53
+ while (e = r.exec(q)) {
54
+ if (e[1].indexOf("[") == "-1")
55
+ urlParams[d(e[1])] = d(e[2]);
56
+ else {
57
+ var b1 = e[1].indexOf("["),
58
+ aN = e[1].slice(b1+1, e[1].indexOf("]", b1)),
59
+ pN = d(e[1].slice(0, b1));
60
+
61
+ if (typeof urlParams[pN] != "object")
62
+ urlParams[d(pN)] = {},
63
+ urlParams[d(pN)].length = 0;
64
+
65
+ if (aN)
66
+ urlParams[d(pN)][d(aN)] = d(e[2]);
67
+ else
68
+ Array.prototype.push.call(urlParams[d(pN)], d(e[2]));
69
+
70
+ }
71
+ }
72
+ })();
73
+
74
+ if (JSON) {
75
+ for (var k in urlParams) {
76
+ if (typeof urlParams[k] == "object") {
77
+ for (var k2 in urlParams[k])
78
+ createCookie(k2, urlParams[k][k2], 30);
79
+ } else {
80
+ createCookie(k, urlParams[k], 30);
81
+ }
82
+ }
83
+ }
84
+ }
85
 
86
  function get_inbound_form_value(el) {
87
  var value = el.value;
88
  return value;
89
  }
90
 
91
+ function lead_get_cookies_array() {
92
+
93
+ var cookies = {};
94
+
95
+ if (document.cookie && document.cookie != '') {
96
+ var split = document.cookie.split(';');
97
+ for (var i = 0; i < split.length; i++) {
98
+ var name_value = split[i].split("=");
99
+ name_value[0] = name_value[0].replace(/^ /, '');
100
+ cookies[decodeURIComponent(name_value[0])] = decodeURIComponent(name_value[1]);
101
+ }
102
+ }
103
+ jQuery.totalStorage('inbound_cookies', cookies); // store cookie data
104
+ return cookies;
105
+ }
106
+
107
  // Build Form Object
108
  function inbound_map_fields(el, value, Obj) {
109
  var formObj = [];
148
  var formObj = new Array();
149
  var $this = el;
150
  var body = jQuery("body");
151
+ var input_id = $this.attr("id") || "NULL";
152
+ var input_name = $this.attr("name") || "NULL";
153
  var this_val = $this.attr("value");
154
  var array = lookingfor.split(",");
155
  var array_length = array.length - 1;
159
  var clean_output = trim(array[i]);
160
  var nice_name = clean_output.replace(/^\s+|\s+$/g,'');
161
  var nice_name = nice_name.replace(" ",'_');
162
+ var in_object_already = nice_name in inbound_data;
163
  //console.log(clean_output);
164
 
165
  // Look for attr name match
166
+ if (input_name.toLowerCase().indexOf(clean_output)>-1) {
167
  var the_map = inbound_map_fields($this, clean_output, formObj);
168
  add_inbound_form_class($this, clean_output);
169
  console.log('match name: ' + clean_output);
170
+ console.log(nice_name in inbound_data);
171
  if (!in_object_already) {
172
+ inbound_data[nice_name] = this_val;
173
  }
174
  }
175
  // look for id match
176
+ else if (input_id.toLowerCase().indexOf(clean_output)>-1) {
177
  var the_map = inbound_map_fields($this, clean_output, formObj);
178
  add_inbound_form_class($this, clean_output);
179
  console.log('match id: ' + clean_output);
180
  if (!in_object_already) {
181
+ inbound_data[nice_name] = this_val;
182
  }
183
  }
184
  // Look for label name match
185
+ else if ($this.closest('li').children('label').length>0){
186
+ var closest_label = $this.closest('li').children('label').html() || "NULL";
187
+ if (closest_label.toLowerCase().indexOf(clean_output)>-1)
188
  {
189
  var the_map = inbound_map_fields($this, clean_output, formObj);
190
  add_inbound_form_class($this, clean_output);
194
  console.log(exists_in_dom);
195
  console.log('match li: ' + clean_output);
196
  if (!in_object_already) {
197
+ inbound_data[nice_name] = this_val;
198
  }
199
 
200
  }
201
  }
202
  // Look for closest div label name match
203
+ else if ($this.closest('div').children('label').length>0) {
204
+ var closest_div = $this.closest('div').children('label').html() || "NULL";
205
+ if (closest_div.toLowerCase().indexOf(clean_output)>-1)
206
  {
207
  var the_map = inbound_map_fields($this, clean_output, formObj);
208
  add_inbound_form_class($this, clean_output);
209
  console.log('match div: ' + clean_output);
210
  if (!in_object_already) {
211
+ inbound_data[nice_name] = this_val;
212
+ }
213
+ }
214
+ }
215
+ // Look for closest p label name match
216
+ else if ($this.closest('p').children('label').length>0) {
217
+ var closest_p = $this.closest('p').children('label').html() || "NULL";
218
+ if (closest_p.toLowerCase().indexOf(clean_output)>-1)
219
+ {
220
+ var the_map = inbound_map_fields($this, clean_output, formObj);
221
+ add_inbound_form_class($this, clean_output);
222
+ console.log('match p: ' + clean_output);
223
+ if (!in_object_already) {
224
+ inbound_data[nice_name] = this_val;
225
  }
226
  }
227
  } else {
228
+ console.log('Need additional mapping data');
 
229
  }
230
  }
231
  return_form = the_map;
232
 
233
+ return inbound_data;
234
  }
235
 
236
  function return_mapped_values(this_form) {
237
  // Map form fields
238
  jQuery(this_form).find('input[type=text],input[type=email],textarea,select').each(function() {
239
+ console.log('run');
240
  var this_input = jQuery(this);
241
+ var this_input_val = this_input.val();
242
+ if (typeof (this_input_val) != "undefined" && this_input_val != null && this_input_val != "") {
243
+ var inbound_data = run_field_map_function( this_input, "name, first name, last name, email, e-mail, phone, website, job title, company, tele, address, comment");
244
  }
245
+ return inbound_data;
246
  });
247
+ return inbound_data;
248
  }
249
 
250
  function merge_form_options(obj1,obj2){
254
  return obj3;
255
  }
256
 
257
+ function release_form_sub(this_form, element_type, form_type){
258
+ form_type = typeof form_type !== 'undefined' ? form_type : "normal";
259
  jQuery('body, button, input, input[type="button"]').css('cursor', 'default');
260
+ jQuery.totalStorage.deleteItem('inbound_search'); // remove search
261
  if (element_type=='FORM') {
262
  this_form.unbind('submit');
263
  this_form.submit();
264
+
265
+ if (form_type === "comment"){
266
+ console.log("RELEASE ME");
267
+ setTimeout(function() {
268
+ jQuery(".wpl-comment-form").find('[type="submit"]').click();
269
+ }, 100);
270
+ }
271
  }
272
 
273
  if (element_type=='A') {
281
  }
282
  }
283
 
284
+ function set_lead_fallback(data){
285
+ jQuery.totalStorage('failed_conversion', data); // store failed data
286
+ jQuery.cookie("failed_conversion", true, { path: '/', expires: 365 });
287
+ console.log('Set backup lead storage');
288
+ }
289
 
290
+ /* Check form type */
291
+ function inbound_form_type(this_form) {
292
+ var inbound_data = inbound_data || {},
293
+ form_type = 'normal';
294
+ if ( this_form.is( ".wpl-comment-form" ) ) {
295
+ inbound_data['form_type'] = 'comment';
296
+ form_type = 'comment';
297
+ } else if ( this_form.is( ".wpl-search-box" ) ) {
298
+ var is_search = true;
299
+ form_type = 'search';
300
+ inbound_data['form_type'] = 'search';
301
+ } else if ( this_form.is( '.wpl-track-me-link' ) ){
302
+ var have_email = readCookie('wp_lead_email');
303
+ console.log(have_email);
304
+ inbound_data['form_type'] = 'link';
305
+ form_type = 'search';
306
+ }
307
+ return form_type;
308
+ }
309
 
310
+ function grab_all_form_input_vals(this_form){
311
+ var post_values = post_values || {},
312
+ inbound_exclude = inbound_exclude || [],
313
+ form_inputs = this_form.find('input[type=text],input[type=hidden],textarea,select');
314
+ inbound_exclude.push('inbound_furl', 'inbound_current_page_url', 'inbound_notify', 'inbound_submitted', 'post_type', 'post_status', 's', 'inbound_form_name', 'inbound_form_id', 'inbound_form_lists');
315
+ var form_type = inbound_form_type(this_form),
316
+ inbound_data = inbound_data || {},
317
+ email = inbound_data['email'] || false;
318
+
319
+ form_inputs.each(function() {
320
+ if (jQuery.inArray(this.name, inbound_exclude) === -1){
321
+ post_values[this.name] = jQuery(this).val();
322
  }
323
+ if (this.value.indexOf('@')>-1&&!email){
324
+ email = jQuery(this).val();
325
+ inbound_data['email'] = email;
 
 
 
 
 
 
 
 
326
  }
327
+ if (form_type === 'search') {
328
+ inbound_data['search_keyword'] = jQuery(this).val().replace('"', "'");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
329
  }
330
+ });
331
+ var all_form_fields = JSON.stringify(post_values);
332
+ return all_form_fields;
333
+ }
334
 
335
+ function inbound_form_submit(this_form, e) {
336
+ /* Define Variables */
337
+ var inbound_data = inbound_data || {};
338
+ // Dynamic JS object for passing custom values. This can be hooked into by third parties by using the below syntax.
339
+ inbound_data['page_view_count'] = countProperties(pageviewObj);
340
+ inbound_data['leads_list'] = jQuery(this_form).find('#inbound_form_lists').val();
341
+ inbound_data['source'] = jQuery.cookie("wp_lead_referral_site") || "NA";
342
+ inbound_data['page_id'] = inbound_ajax.post_id;
343
+ inbound_data['page_views'] = JSON.stringify(pageviewObj);
344
 
345
+ // Map form fields
346
+ var returned_form_data = return_mapped_values(this_form); //console.log(returned_form_data);
347
+ var inbound_data = merge_form_options(inbound_data,returned_form_data); //console.log(inbound_data);
348
+
349
+ // Set variables after mapping
350
+ inbound_data['email'] = (!inbound_data['email']) ? this_form.find('.inbound-email').val() : inbound_data['email'];
351
+ inbound_data['form_name'] = this_form.find('.inbound_form_name').val() || "Not Found";
352
+ inbound_data['first_name'] = (!inbound_data['first_name']) ? inbound_data['name'] : inbound_data['first_name'];
353
+ inbound_data['last_name'] = inbound_data['last_name'] || false;
354
+ inbound_data['phone'] = inbound_data['phone'] || false;
355
+ inbound_data['company'] = inbound_data['company'] || false;
356
+ inbound_data['address'] = inbound_data['address'] || false;
357
+
358
+ // Fallbacks for values
359
+ inbound_data['name'] = (inbound_data['first_name'] && inbound_data['last_name']) ? inbound_data['first_name'] + " " + inbound_data['last_name'] : inbound_data['name'];
360
+
361
+ if (!inbound_data['last_name'] && inbound_data['first_name']) {
362
+ var parts = inbound_data['first_name'].split(" ");
363
+ inbound_data['first_name'] = parts[0];
364
+ inbound_data['last_name'] = parts[1];
365
+ }
366
 
367
+ /* Store form fields & exclude field values */
368
+ var all_form_fields = grab_all_form_input_vals(this_form);
369
+ /* end Store form fields & exclude field values */
370
 
371
+ if(inbound_data['email']){
372
+ createCookie("wp_lead_email", inbound_data['email'], 365); /* set email cookie */
373
+ }
374
+
375
+ //var variation = (typeof (landing_path_info) != "undefined") ? landing_path_info.variation : false;
376
+
377
+ if (typeof (landing_path_info) != "undefined") {
378
+ var variation = landing_path_info.variation;
379
+ } else if (typeof (cta_path_info) != "undefined") {
380
+ var variation = cta_path_info.variation;
381
+ } else {
382
+ var variation = 0;
383
+ }
384
 
385
+ inbound_data['variation'] = variation;
386
+ inbound_data['post_type'] = inbound_ajax.post_type;
387
+ inbound_data['wp_lead_uid'] = jQuery.cookie("wp_lead_uid") || null;
388
+ inbound_data['ip_address'] = inbound_ajax.ip_address;
389
+ inbound_data['search_data'] = JSON.stringify(jQuery.totalStorage('inbound_search')) || {};
390
+
391
+ var lp_check = (inbound_ajax.post_type === 'landing-page') ? 'Landing Page' : "";
392
+ var cta_check = (inbound_ajax.post_type === 'wp-call-to-action') ? 'Call to Action' : "";
393
+ var page_type = (!cta_check && !lp_check) ? inbound_ajax.post_type : lp_check + cta_check;
394
+
395
+ // jsonify inbound_data
396
+ var mapped_form_data = JSON.stringify(inbound_data);
397
+
398
+ var data = {};
399
+ var data = {
400
+ "action": 'inbound_store_lead',
401
+ "emailTo": inbound_data['email'],
402
+ "first_name": inbound_data['first_name'],
403
+ "last_name": inbound_data['last_name'],
404
+ "phone": inbound_data['phone'],
405
+ "address": inbound_data['address'],
406
+ "company_name": inbound_data['company'],
407
+ "page_views": inbound_data['page_views'],
408
+ "form_input_values": all_form_fields,
409
+ "Mapped_Data": mapped_form_data,
410
+ "Search_Data": inbound_data['search_data']
411
  }
412
+ return data;
413
+ }
414
 
415
+ jQuery(document).ready(function($) {
416
+ lead_store_url_params(); // store get params as cookies on page load
417
+ var cookies = lead_get_cookies_array(); // Get ze cookies
418
+
419
+ var inbound_store = jQuery.totalStorage('inbound_cookies');
420
+ // loop through cookies and assign to inbound_data object
421
+ if (typeof inbound_store =='object' && inbound_store) {
422
+ for(var name in inbound_store) {
423
+ if (name.indexOf('utm')>-1) {
424
+ inbound_data[name] = cookies[name];
425
+ //console.log( name + " : " + cookies[name] );
426
+ }
427
+ }
428
+ }
429
+ //console.log(inbound_data);
430
+
431
+ /* Core Inbound Search Tracking Script */
432
+ jQuery("body").on('submit', '.wpl-search-box', function (e) {
433
+ var inbound_search_data = jQuery.totalStorage('inbound_search') || {},
434
+ $this_form = $(this),
435
+ processed = false;
436
+ datetime = wplft.track_time;
437
+ if( $this_form.is(".search-processes") ) {
438
+ console.log('yep');
439
+ processed = true;
440
 
441
+ }
442
+ //return false;
443
+ $('body, button, input[type="button"], input').css('cursor', 'wait');
444
+ e.preventDefault();
445
+ var has_email = readCookie('wp_lead_email');
446
+ var search_count = countProperties(inbound_search_data);
447
+ form_inputs = $this_form.find('input[type=text],input[type=search]');
448
 
449
+ form_inputs.each(function(i) {
450
+ var value = jQuery(this).val().replace('"', "'");
451
+ inbound_search_data[search_count + 1] = {"value" : value, "date" : datetime};
 
 
 
 
 
452
  });
453
+ jQuery.totalStorage('inbound_search', inbound_search_data); // store search history data
454
+ console.log(JSON.stringify(inbound_search_data));
455
+
456
+ // If no data to id the user exit
457
+ if (typeof (has_email) != "undefined" && has_email != null && has_email != "" && processed === false) {
458
+
459
+ // store search data and release
460
+ var data = {};
461
+ var data = {
462
+ "action": 'inbound_store_lead_search',
463
+ "search_data": inbound_search_data,
464
+ "email": has_email,
465
+ "date": datetime
466
+ }
467
 
468
+ //return false;
469
+ jQuery.ajax({
470
+ type: 'POST',
471
+ url: inbound_ajax.admin_url,
472
+ timeout: 10000,
473
+ data: data,
474
+ success: function(user_id){
475
+ $this_form.trigger("inbound_search_form_complete"); // Trigger custom hook
476
+ $this_form.addClass('search-processed');
477
+ $this_form.removeClass('wpl-search-box');
478
+ // Unbind form
479
+ //release_form_sub($this_form, 'FORM', inbound_data['form_type']);
480
+
481
+ $('body, button, input[type="button"], input').css('cursor', 'default');
482
+ jQuery.totalStorage.deleteItem('inbound_search'); // remove search
483
+ console.log("search fired");
484
+ $this_form.unbind('submit');
485
+ $this_form.submit();
486
+ },
487
+ error: function(MLHttpRequest, textStatus, errorThrown){
488
 
489
+ console.log("failwhale fired");
490
+ $this_form.unbind('submit');
491
+ $this_form.submit();
492
 
493
+ }
494
+ });
 
 
495
  } else {
496
+ $this_form.unbind('submit');
497
+ $this_form.submit();
498
+ // storage local storage search history
499
+ jQuery.totalStorage('inbound_search', inbound_search_data); // store search history data
500
  }
501
 
 
 
 
 
502
 
503
+ });
504
+ /* Core Inbound Form Tracking Script */
505
+ jQuery("body").on('submit', '.wpl-track-me', function (e) {
506
+ var inbound_data = inbound_data || {},
507
+ this_form = jQuery(this),
508
+ event_type = e.type,
509
+ is_search = false,
510
+ form_type = 'normal';
511
 
 
 
 
512
 
513
+ inbound_data['form_type'] = inbound_form_type(this_form);
514
+
515
+ element_type = 'FORM';
516
+
517
+ // halt normal form submission
518
+ $('body, button, input[type="button"], input').css('cursor', 'wait');
519
+ e.preventDefault();
520
+
521
+ // Email Validation Check
522
+ var inbound_form_exists = $("#inbound-form-wrapper").length;
523
+ var email_validation = $(".inbound-email.invalid-email").length;
524
+ if (email_validation > 0 && inbound_form_exists > 0) {
525
+ jQuery(".inbound-email.invalid-email").focus();
526
+ alert("Please enter a valid email address");
527
+ return false;
528
+ }
529
+ $(this_form).trigger("inbound_form_custom_data"); // trigger custom hook
530
+ data = inbound_form_submit(this_form, e); // big function for processing
531
+
532
+ ajax_fallback = this_form.is('.wpl-ajax-fallback');
533
+
534
+ if (ajax_fallback === true) {
535
+ console.log('true');
536
+ this_form.removeClass('wpl-track-me'); // release submit
537
+ set_lead_fallback(data);
538
+ console.log('ajax conflict stop process');
539
+ $('body, button, input[type="button"], input').css('cursor', 'default');
540
+ var ninja = this_form.is('.ninja-forms-form');
541
+ var cf7 = this_form.is('.wpcf7-form');
542
+ if (!ninja && !cf7){
543
+ release_form_sub( this_form , element_type );
544
+ }
545
+ return false;
546
+ }
547
+
548
+ var inbound_debug = this_form.is('.inbound-debug');
549
+ if (inbound_debug) {
550
+ //console.log("Inbound Form Data:"); console.log(post_form_data);
551
+ //console.log("Raw Field Data:"); console.log(all_form_fields);
552
+ console.log("Ajax Data:"); console.log(data);
553
+ return false;
554
+ }
555
 
556
  jQuery.ajax({
557
  type: 'POST',
558
  url: inbound_ajax.admin_url,
559
  timeout: 10000,
560
+ data: data,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
561
  success: function(user_id){
562
  jQuery(this_form).trigger("inbound_form_complete"); // Trigger custom hook
563
+ createCookie("wp_lead_id", user_id, 365);
564
  jQuery.totalStorage('wp_lead_id', user_id);
 
 
 
565
 
566
+ inbound_ga_log_event('Inbound Form Conversions', 'Conversion', "Conversion on '"+ inbound_data['form_name'] + "' form on page '" + document.title + "' on url '" + window.location.href + "'"); // GA push
567
+ this_form.removeClass('wpl-track-me');
568
  // Unbind form
569
+
570
+ release_form_sub(this_form, 'FORM', inbound_data['form_type']);
571
 
572
  $('body, button, input[type="button"], input').css('cursor', 'default');
573
 
575
  jQuery.totalStorage.deleteItem('tracking_events'); // remove events
576
  //jQuery.totalStorage.deleteItem('cta_clicks'); // remove cta
577
 
 
578
  },
579
  error: function(MLHttpRequest, textStatus, errorThrown){
580
+ jQuery(this_form).trigger("inbound_form_fail"); // trigger custom hook
581
+ set_lead_fallback(data); // Create fallback localstorage object
582
+ console.log('ajax fail'); console.log(MLHttpRequest+' '+errorThrown+' '+textStatus);
583
+ release_form_sub( this_form , element_type ); // release form
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
584
 
585
  }
586
  });
590
  jQuery("body").on('click', '.wpl-track-me-link', function (e) {
591
 
592
  this_form = jQuery(this);
593
+ var have_email = readCookie('wp_lead_email');
594
+ console.log(have_email);
595
+
596
+ // If no data to id the user exit
597
+ if (typeof (have_email) === "undefined" || have_email === null || have_email === "") {
598
+ // store local object and build out click record
599
+ return false;
600
+ }
601
 
602
  var element_type='A';
603
  var a_href = jQuery(this).attr("href");
632
  } else {
633
  var lp_variation = null;
634
  }
635
+ return false;
636
  jQuery.ajax({
637
  type: 'POST',
638
  url: inbound_ajax.admin_url,
691
  }
692
  });
693
 
 
 
694
  });
695
 
696
+ // gform_confirmation_loaded
697
  /* Fallback for lead storage if ajax fails */
698
  var failed_conversion = jQuery.cookie("failed_conversion");
699
  var fallback_obj = jQuery.totalStorage('failed_conversion');
700
 
701
  if (typeof (failed_conversion) != "undefined" && failed_conversion == 'true' ) {
702
  if (typeof fallback_obj == 'object' && fallback_obj) {
703
+
704
  jQuery.ajax({
705
  type: 'POST',
706
  url: inbound_ajax.admin_url,
707
+ data: fallback_obj,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
708
  success: function(user_id){
709
+ console.log('Fallback fired');
710
+ jQuery.totalStorage.deleteItem('page_views'); // remove pageviews
711
+ jQuery.totalStorage.deleteItem('tracking_events'); // remove events
712
  jQuery.removeCookie("failed_conversion"); // remove failed cookie
713
  jQuery.totalStorage.deleteItem('failed_conversion'); // remove failed data
714
  },
shared/classes/debug.class.php CHANGED
@@ -24,6 +24,7 @@ if (!class_exists('InboundDebugScripts')) {
24
  //add_action('wp_loaded', array(__CLASS__, 'inbound_check_for_error'));
25
  //add_action('wp_footer', array(__CLASS__, 'display_errors'));
26
  //add_action('init', array(__CLASS__, 'admin_display_errors'));
 
27
  add_action('wp_enqueue_scripts', array(__CLASS__, 'inbound_kill_bogus_scripts'), 100);
28
  add_action('wp_enqueue_scripts', array(__CLASS__, 'inbound_compatibilities'), 101);
29
  add_action('admin_enqueue_scripts', array(__CLASS__, 'inbound_compatibilities'), 101);
@@ -35,9 +36,33 @@ if (!class_exists('InboundDebugScripts')) {
35
  if (isset($_GET['inbound_js'])){
36
  add_action('wp_enqueue_scripts', array(__CLASS__, 'run_debug_script'), 102);
37
  add_action('admin_enqueue_scripts', array(__CLASS__, 'run_debug_script'), 102);
 
38
  }
39
  }
40
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  // dequeue all js and set first script, then requeue scripts
42
  static function run_debug_script() {
43
  global $wp_scripts;
@@ -151,18 +176,21 @@ if (!class_exists('InboundDebugScripts')) {
151
  $registered_scripts = $wp_scripts->registered;
152
  $inbound_white_list = array();
153
  foreach ($registered_scripts as $handle) {
154
- if(preg_match("/\/plugins\/leads\//", $handle->src)) {
155
- //echo $handle->handle;
156
- $inbound_white_list[] = $handle->handle;
157
- }
158
- if(preg_match("/\/plugins\/cta\//", $handle->src)) {
159
- //echo $handle->handle;
160
- $inbound_white_list[]= $handle->handle;
161
- }
162
- if(preg_match("/\/plugins\/landing-pages\//", $handle->src)) {
163
- //echo $handle->handle;
164
- $inbound_white_list[]= $handle->handle;
165
- }
 
 
 
166
  }
167
  //print_r($inbound_white_list);
168
  return $inbound_white_list;
@@ -198,19 +226,21 @@ if (!class_exists('InboundDebugScripts')) {
198
  // dequeue admin scripts
199
  $screen = get_current_screen();
200
 
201
- $array = array('load-qtip' => 'wp-call-to-action');
202
- //update_option( 'inbound_global_dequeue', $array );
203
- $global_array = get_option( 'inbound_global_dequeue' );
204
- //print_r($global_array);
205
-
206
-
207
- if (!$global_array){
208
- return;
209
- }
210
-
211
- foreach ($global_array as $key => $value) {
212
- if ( $screen->id === $value) {
213
- wp_dequeue_script( $key );
 
 
214
  }
215
  }
216
  }
@@ -269,7 +299,11 @@ if (!class_exists('InboundDebugScripts')) {
269
  #launch-feedback {
270
  display:none;
271
  }
272
- #group{text-align: left;border-bottom: 1px solid #fff;position:relative;margin:0 auto;padding:6px 10px 10px;background-image:linear-gradient(top,rgba(255,255,255,.1),rgba(0,0,0,.1));background-color:#555;width:300px}#group:after{content:" ";position:absolute;z-index:1;top:0;left:0;right:0;bottom:0;border-radius:5px}.switch{margin: 0px;position:relative;border:0;padding:0;width:245px;font-family:helvetica;font-weight:700;font-size:22px;color:#222;text-shadow:0 1px 0 rgba(255,255,255,.3)}.switch legend{float:left;width: 98px;padding:7px 10% 3px 0;text-align:left;}.switch input{position:absolute;opacity:0}.switch legend:after{content:"";position:absolute;top:0;left:50%;z-index:0;width:50%;height:100%;padding:2px;background-color:#222;border-radius:3px;box-shadow:inset -1px 2px 5px rgba(0,0,0,.8),0 1px 0 rgba(255,255,255,.2)}.switch label{position:relative;z-index:2;float:left;width:25%;margin-top:2px;padding:5px 0 3px;text-align:center;color:#64676b;text-shadow:0 1px 0 #000;cursor:pointer;transition:color 0s ease .1s}.switch input:checked+label{color:#fff}.switch input:focus+label{outline:0}.switch .switch-button{clear:both;position:absolute;top:-1px;left:50%;z-index:1;width:25%;height:100%;margin:2px;background-color:#70c66b;background-image:linear-gradient(top,rgba(255,255,255,.2),rgba(0,0,0,0));border-radius:3px;box-shadow:0 0 0 2px #70c66b,-2px 3px 2px #000;transition:all .3s ease-out}.switch .switch-button:after{content:" ";position:absolute;z-index:1;top:0;left:0;right:0;bottom:0;border-radius:3px;border:1px dashed #fff}#inbound-dequeue-id{display:none}.switch input:last-of-type:checked~.switch-button{left:75%}.switch .switch-button.status-off{background-color:red;box-shadow:0 0 0 3px red,-2px 3px 5px #000}.switch label.turn-on{color:#fff}
 
 
 
 
273
  .script-info {padding-left:5px; position: absolute; z-index:999999999;}
274
  .debug-plugin-name { font-size:13px; color:#fff; text-shadow:none; padding-bottom: 6px;
275
  display: inline-block; }
24
  //add_action('wp_loaded', array(__CLASS__, 'inbound_check_for_error'));
25
  //add_action('wp_footer', array(__CLASS__, 'display_errors'));
26
  //add_action('init', array(__CLASS__, 'admin_display_errors'));
27
+ add_action( 'init', array(__CLASS__, 'inbound_output_meta_debug') );
28
  add_action('wp_enqueue_scripts', array(__CLASS__, 'inbound_kill_bogus_scripts'), 100);
29
  add_action('wp_enqueue_scripts', array(__CLASS__, 'inbound_compatibilities'), 101);
30
  add_action('admin_enqueue_scripts', array(__CLASS__, 'inbound_compatibilities'), 101);
36
  if (isset($_GET['inbound_js'])){
37
  add_action('wp_enqueue_scripts', array(__CLASS__, 'run_debug_script'), 102);
38
  add_action('admin_enqueue_scripts', array(__CLASS__, 'run_debug_script'), 102);
39
+
40
  }
41
  }
42
 
43
+ static function inbound_output_meta_debug() {
44
+ //print all global fields for post
45
+ if (isset($_GET['debug']) && ( isset($_GET['post']) && is_numeric($_GET['post']) ) ) {
46
+ global $wpdb;
47
+ $data = array();
48
+ $wpdb->query("
49
+ SELECT `meta_key`, `meta_value`
50
+ FROM $wpdb->postmeta
51
+ WHERE `post_id` = ".mysql_real_escape_string($_GET['post'])."
52
+ ");
53
+
54
+ foreach($wpdb->last_result as $k => $v){
55
+ $data[$v->meta_key] = $v->meta_value;
56
+ };
57
+ if (isset($_GET['post']))
58
+ {
59
+ echo "<pre>";
60
+ print_r( $data);
61
+ echo "</pre>";
62
+ }
63
+ }
64
+ }
65
+
66
  // dequeue all js and set first script, then requeue scripts
67
  static function run_debug_script() {
68
  global $wp_scripts;
176
  $registered_scripts = $wp_scripts->registered;
177
  $inbound_white_list = array();
178
  foreach ($registered_scripts as $handle) {
179
+ $src = $handle->src;
180
+ if (!is_array($src)) {
181
+ if(preg_match("/\/plugins\/leads\//", $src)) {
182
+ //echo $handle->handle;
183
+ $inbound_white_list[] = $handle->handle;
184
+ }
185
+ if(preg_match("/\/plugins\/cta\//", $handle->src)) {
186
+ //echo $handle->handle;
187
+ $inbound_white_list[]= $handle->handle;
188
+ }
189
+ if(preg_match("/\/plugins\/landing-pages\//", $handle->src)) {
190
+ //echo $handle->handle;
191
+ $inbound_white_list[]= $handle->handle;
192
+ }
193
+ }
194
  }
195
  //print_r($inbound_white_list);
196
  return $inbound_white_list;
226
  // dequeue admin scripts
227
  $screen = get_current_screen();
228
 
229
+ $array = array('load-qtip' => 'wp-call-to-action');
230
+ //update_option( 'inbound_global_dequeue', $array );
231
+ $global_array = get_option( 'inbound_global_dequeue' );
232
+ //print_r($global_array);
233
+
234
+
235
+ if (!$global_array){
236
+ return;
237
+ }
238
+
239
+ if(is_array($global_array)) {
240
+ foreach ($global_array as $key => $value) {
241
+ if ( $screen->id === $value) {
242
+ wp_dequeue_script( $key );
243
+ }
244
  }
245
  }
246
  }
299
  #launch-feedback {
300
  display:none;
301
  }
302
+ #group{text-align: left;border-bottom: 1px solid #fff;position:relative;margin:0 auto;padding:6px 10px 10px;background-image:linear-gradient(top,rgba(255,255,255,.1),rgba(0,0,0,.1));background-color:#555;width:300px}#group:after{content:" ";position:absolute;z-index:1;top:0;left:0;right:0;bottom:0;border-radius:5px}.switch{margin: 0px;position:relative;border:0;padding:0;width:245px;font-family:helvetica;font-weight:700;font-size:22px;color:#222;text-shadow:0 1px 0 rgba(255,255,255,.3)}.switch legend{float:left;width: 98px;padding:7px 10% 3px 0;text-align:left; color:#fff;}
303
+ .switch input{position:absolute;opacity:0}
304
+ .switch legend:after{content:"";position:absolute;top:0;left:50%;z-index:0;width:50%;height:100%;padding:2px;background-color:#222;border-radius:3px;box-shadow:inset -1px 2px 5px rgba(0,0,0,.8),0 1px 0 rgba(255,255,255,.2)}
305
+ .switch label{position:relative;z-index:2;float:left;width:61px;margin-top:2px;padding:5px 0 3px;text-align:center;color:#64676b;text-shadow:0 1px 0 #000;cursor:pointer;transition:color 0s ease .1s}
306
+ .switch input:checked+label{color:#fff}.switch input:focus+label{outline:0}.switch .switch-button{clear:both;position:absolute;top:-1px;left:50%;z-index:1;width:63px; height:100%;margin:2px;background-color:#70c66b;background-image:linear-gradient(top,rgba(255,255,255,.2),rgba(0,0,0,0));border-radius:3px;box-shadow:0 0 0 2px #70c66b,-2px 3px 2px #000;transition:all .3s ease-out}.switch .switch-button:after{content:" ";position:absolute;z-index:1;top:0;left:0;right:0;bottom:0;border-radius:3px;border:1px dashed #fff}#inbound-dequeue-id{display:none}.switch input:last-of-type:checked~.switch-button{left:75%}.switch .switch-button.status-off{background-color:red;box-shadow:0 0 0 3px red,-2px 3px 5px #000}.switch label.turn-on{color:#fff}
307
  .script-info {padding-left:5px; position: absolute; z-index:999999999;}
308
  .debug-plugin-name { font-size:13px; color:#fff; text-shadow:none; padding-bottom: 6px;
309
  display: inline-block; }
shared/classes/form.class.php CHANGED
@@ -40,7 +40,10 @@ class InboundForms {
40
  'redirect' => '',
41
  'icon' => '',
42
  'lists' => '',
43
- 'submit' => 'Submit'
 
 
 
44
  ), $atts));
45
 
46
  if ( !$id && isset($_GET['post']) )
@@ -55,6 +58,16 @@ class InboundForms {
55
  $submit_button = ($submit != "") ? $submit : 'Submit';
56
  $icon_insert = ($icon != "" && $icon != 'none') ? '<i class="fa-'. $icon . '" font-awesome fa"></i>' : '';
57
 
 
 
 
 
 
 
 
 
 
 
58
  if (preg_match("/px/", $font_size)){
59
  $font_size = (isset($font_size)) ? " font-size: $font_size;" : '';
60
  } else if (preg_match("/%/", $font_size)) {
@@ -69,9 +82,14 @@ class InboundForms {
69
 
70
  // Check for image in submit button option
71
  if (preg_match('/\.(jpg|jpeg|png|gif)(?:[\?\#].*)?$/i',$submit_button)) {
72
- $submit_button_type = 'style="background:url('.$submit_button.') no-repeat;color: rgba(0, 0, 0, 0);border: none;box-shadow: none;';
 
 
 
73
  } else {
74
- $submit_button_type = '';
 
 
75
  }
76
 
77
  /* Sanitize width input */
@@ -165,11 +183,10 @@ class InboundForms {
165
 
166
  if ($type != 'hidden' && $form_labels != "bottom" && $type != "html-block" && $type != "divider" || $type === "radio")
167
  {
168
- $form .= '<label class="inbound-label '.$formatted_label.' '.$form_labels_class.' inbound-input-'.$type.'" style="'.$font_size.'">' . $matches[3][$i]['label'] . $req_label . '</label>';
169
  }
170
 
171
- if ($type === 'textarea')
172
- {
173
  $form .= '<textarea class="inbound-input inbound-input-textarea" name="'.$field_name.'" id="in_'.$field_name.' '.$req.'"/></textarea>';
174
  }
175
  else if ($type === 'dropdown')
@@ -242,7 +259,7 @@ class InboundForms {
242
  }
243
  if ($type != 'hidden' && $form_labels === "bottom" && $type != "radio" && $type != "html-block" && $type != "divider")
244
  {
245
- $form .= '<label class="inbound-label '.$formatted_label.' '.$form_labels_class.' inbound-input-'.$type.'" style="'.$font_size.'">' . $matches[3][$i]['label'] . $req_label . '</label>';
246
  }
247
 
248
  if ($description_block != "" && $type != 'hidden'){
@@ -254,12 +271,12 @@ class InboundForms {
254
  // End Loop
255
 
256
  $current_page = get_permalink();
257
- $form .= '<div class="inbound-field '.$main_layout.' inbound-submit-area"><button type="submit" class="inbound-button-submit inbound-submit-action" value="'.$submit_button.'" name="send" id="inbound_form_submit" style="'.$font_size.'">
258
- '.$icon_insert.''.$submit_button.'</button></div><input type="hidden" name="inbound_submitted" value="1">';
259
  // <!--<input type="submit" '.$submit_button_type.' class="button" value="'.$submit_button.'" name="send" id="inbound_form_submit" />-->
260
 
261
  $form .= '<input type="hidden" name="inbound_form_name" class="inbound_form_name" value="'.$form_name.'"><input type="hidden" name="inbound_form_lists" id="inbound_form_lists" value="'.$lists.'"><input type="hidden" name="inbound_form_id" value="'.$id.'"><input type="hidden" name="inbound_current_page_url" value="'.$current_page.'"><input type="hidden" name="inbound_furl" value="'. base64_encode($redirect) .'"><input type="hidden" name="inbound_notify" value="'. base64_encode($notify) .'"></form></div>';
262
-
263
  $form = preg_replace('/<br class="inbr".\/>/', '', $form); // remove editor br tags
264
 
265
  return $form;
@@ -472,7 +489,7 @@ class InboundForms {
472
  <tbody><tr>
473
  <td valign="top" style="font-size:13px;line-height:20px;color:#545454;font-family:Arial,sans-serif;border-radius:0 0 3px 3px;padding-top:3px;padding-right:30px;padding-bottom:15px;padding-left:30px">
474
 
475
- <h1 style="margin-top:20px;margin-right:0;margin-bottom:20px;margin-left:0; font-size:28px; color:#000;">New Lead on '.$form_data['inbound_form_name'].'</h1>
476
  <p style="margin-top:20px;margin-right:0;margin-bottom:20px;margin-left:0">There is a new lead that just converted on <strong>'.$data_time.'</strong> from page: '.$form_data['inbound_current_page_url'].'. '.$redirect_message.' </p>
477
 
478
  <!-- NEW TABLE -->
40
  'redirect' => '',
41
  'icon' => '',
42
  'lists' => '',
43
+ 'submit' => 'Submit',
44
+ 'submit_colors' => '',
45
+ 'submit_text_color' => '',
46
+ 'submit_bg_color' => ''
47
  ), $atts));
48
 
49
  if ( !$id && isset($_GET['post']) )
58
  $submit_button = ($submit != "") ? $submit : 'Submit';
59
  $icon_insert = ($icon != "" && $icon != 'none') ? '<i class="fa-'. $icon . '" font-awesome fa"></i>' : '';
60
 
61
+ // Set submit button colors
62
+ if(isset($submit_colors) && $submit_colors === 'on'){
63
+ $submit_bg = " background:" . $submit_bg_color . "; border: 5px solid ".$submit_bg_color."; border-radius: 3px;";
64
+ $submit_color = " color:" . $submit_text_color . ";";
65
+
66
+ } else {
67
+ $submit_bg = "";
68
+ $submit_color = "";
69
+ }
70
+
71
  if (preg_match("/px/", $font_size)){
72
  $font_size = (isset($font_size)) ? " font-size: $font_size;" : '';
73
  } else if (preg_match("/%/", $font_size)) {
82
 
83
  // Check for image in submit button option
84
  if (preg_match('/\.(jpg|jpeg|png|gif)(?:[\?\#].*)?$/i',$submit_button)) {
85
+ $image_button = ' color: rgba(0, 0, 0, 0);border: none;box-shadow: none;background: transparent; border-radius:0px;padding: 0px;';
86
+ $inner_button = "<img src='$submit_button' width='100%'>";
87
+ $icon_insert = '';
88
+ $submit_button = '';
89
  } else {
90
+ $image_button = '';
91
+ $inner_button = '';
92
+
93
  }
94
 
95
  /* Sanitize width input */
183
 
184
  if ($type != 'hidden' && $form_labels != "bottom" && $type != "html-block" && $type != "divider" || $type === "radio")
185
  {
186
+ $form .= '<label for="'. $field_name .'" class="inbound-label '.$formatted_label.' '.$form_labels_class.' inbound-input-'.$type.'" style="'.$font_size.'">' . $matches[3][$i]['label'] . $req_label . '</label>';
187
  }
188
 
189
+ if ($type === 'textarea') {
 
190
  $form .= '<textarea class="inbound-input inbound-input-textarea" name="'.$field_name.'" id="in_'.$field_name.' '.$req.'"/></textarea>';
191
  }
192
  else if ($type === 'dropdown')
259
  }
260
  if ($type != 'hidden' && $form_labels === "bottom" && $type != "radio" && $type != "html-block" && $type != "divider")
261
  {
262
+ $form .= '<label for="'. $field_name .'" class="inbound-label '.$formatted_label.' '.$form_labels_class.' inbound-input-'.$type.'" style="'.$font_size.'">' . $matches[3][$i]['label'] . $req_label . '</label>';
263
  }
264
 
265
  if ($description_block != "" && $type != 'hidden'){
271
  // End Loop
272
 
273
  $current_page = get_permalink();
274
+ $form .= '<div class="inbound-field '.$main_layout.' inbound-submit-area"><button type="submit" class="inbound-button-submit inbound-submit-action" value="'.$submit_button.'" name="send" id="inbound_form_submit" style="'.$submit_bg.$submit_color.$image_button.'">
275
+ '.$icon_insert.''.$submit_button.$inner_button.'</button></div><input type="hidden" name="inbound_submitted" value="1">';
276
  // <!--<input type="submit" '.$submit_button_type.' class="button" value="'.$submit_button.'" name="send" id="inbound_form_submit" />-->
277
 
278
  $form .= '<input type="hidden" name="inbound_form_name" class="inbound_form_name" value="'.$form_name.'"><input type="hidden" name="inbound_form_lists" id="inbound_form_lists" value="'.$lists.'"><input type="hidden" name="inbound_form_id" value="'.$id.'"><input type="hidden" name="inbound_current_page_url" value="'.$current_page.'"><input type="hidden" name="inbound_furl" value="'. base64_encode($redirect) .'"><input type="hidden" name="inbound_notify" value="'. base64_encode($notify) .'"></form></div>';
279
+ $form .= "<style type='text/css'>.inbound-button-submit{ {$font_size} }</style>";
280
  $form = preg_replace('/<br class="inbr".\/>/', '', $form); // remove editor br tags
281
 
282
  return $form;
489
  <tbody><tr>
490
  <td valign="top" style="font-size:13px;line-height:20px;color:#545454;font-family:Arial,sans-serif;border-radius:0 0 3px 3px;padding-top:3px;padding-right:30px;padding-bottom:15px;padding-left:30px">
491
 
492
+ <h1 style="margin-top:20px;margin-right:0;margin-bottom:20px;margin-left:0; font-size:28px; line-height: 28px; color:#000;">New Lead on '.$form_data['inbound_form_name'].'</h1>
493
  <p style="margin-top:20px;margin-right:0;margin-bottom:20px;margin-left:0">There is a new lead that just converted on <strong>'.$data_time.'</strong> from page: '.$form_data['inbound_current_page_url'].'. '.$redirect_message.' </p>
494
 
495
  <!-- NEW TABLE -->
shared/classes/menu.class.php CHANGED
@@ -1,662 +1,598 @@
1
  <?php
2
  /* Inbound Now Menu Class */
3
- if ( ! defined( 'LANDINGPAGES_TEXT_DOMAIN' ) ) {
4
- define('LANDINGPAGES_TEXT_DOMAIN', 'landing-pages' );
5
- }
6
- if (!class_exists('InboundMenu')) {
7
- class InboundMenu {
8
- static $add_menu;
9
-
10
- /* Contruct
11
- * --------------------------------------------------------- */
12
- static function init() {
13
- self::$add_menu = true;
14
-
15
- add_action('admin_bar_menu', array( __CLASS__, 'loads' ), 98);
16
- add_action( 'wp_head', array(__CLASS__, 'menu_admin_head'));
17
- add_action( 'admin_head', array(__CLASS__, 'menu_admin_head'));
18
- }
19
-
20
- /* Loads
21
- * --------------------------------------------------------- */
22
- static function loads($hook) {
23
- if ( ! self::$add_menu )
24
- return;
25
- global $wp_admin_bar, $locale, $edd_options, $eddtb_edd_name, $eddtb_edd_name_tooltip;
26
-
27
- /** Get the proper 'Download' post type ID/tag */
28
- if ( post_type_exists( 'landing-page' ) ) {
29
- $eddtb_download_cpt = 'landing-page';
30
- } elseif ( post_type_exists( 'landing-page' ) ) {
31
- $eddtb_download_cpt = 'landing-page';
32
- } else {
33
- $eddtb_download_cpt = '';
34
- }
35
-
36
- // CHECK FOR ACTIVE PLUGINS
37
- $leads_status = FALSE; $landing_page_status = FALSE; $cta_status = FALSE;
38
- if (function_exists( 'is_plugin_active' ) && is_plugin_active('leads/wordpress-leads.php')) {
39
- $leads_status = TRUE;
40
- $leads_version_number = defined( 'WPL_CURRENT_VERSION' ) ? 'v' . WPL_CURRENT_VERSION : '';
41
- }
42
- if (function_exists( 'is_plugin_active' ) && is_plugin_active('landing-pages/landing-pages.php')) {
43
- $landing_page_status = TRUE;
44
- $landing_page_version_number = defined( 'LANDINGPAGES_CURRENT_VERSION' ) ? 'v' . LANDINGPAGES_CURRENT_VERSION : '';
45
-
46
- }
47
- if (function_exists( 'is_plugin_active' ) && is_plugin_active('cta/wordpress-cta.php')) {
48
- $cta_status = TRUE;
49
- $cta_number = defined( 'WP_CTA_CURRENT_VERSION' ) ? 'v' . WP_CTA_CURRENT_VERSION : '';
50
- }
51
-
52
- if ( $leads_status == FALSE && $landing_page_status == FALSE && $cta_status == FALSE ) {
53
-
54
- return; // end plugin is
55
-
56
- }
57
- /** EDD version number for later use */
58
- $edd_version_number = defined( 'EDD_VERSION' ) ? 'v' . EDD_VERSION : '';
59
-
60
- /** Resources links EDD settings check*/
61
- $eddtb_resources_check = 'default';
62
-
63
- if ( ( ! isset( $edd_options['eddtb_remove_resources'] ) && ! isset( $edd_options['eddtb_remove_translation_resources'] ) )
64
- || ( isset( $edd_options['eddtb_remove_resources'] ) && ! isset( $edd_options['eddtb_remove_translation_resources'] ) )
65
- || ( ! isset( $edd_options['eddtb_remove_resources'] ) && isset( $edd_options['eddtb_remove_translation_resources'] ) )
66
-
67
- ) {
68
-
69
- $eddtb_resources_check = 'eddtb_resources_yes';
70
-
71
- } // end-if resources settings check
72
-
73
-
74
- /**
75
- * Allows for filtering the general user role/capability to display main & sub-level items
76
- *
77
- * Default capability: 'edit_posts' (we need this for the "Downloads" post type set by EDD itself!)
78
- *
79
- * @since 1.0.0
80
- */
81
- $eddtb_cap_default = class_exists( 'EDD_Roles' ) ? 'edit_products' : 'edit_posts';
82
- $eddtb_filter_capability = apply_filters( 'eddtb_filter_capability_all', $eddtb_cap_default );
83
-
84
- // Exit if admin bar not there
85
- if ( ! is_user_logged_in() || ! is_admin_bar_showing() ) {
86
- return;
87
- }
88
-
89
- /** Set unique prefix */
90
- $prefix = 'inbound-';
91
- /** Create parent menu item references */
92
- $inbounddocs = $prefix . 'inbounddocs'; // sub level: edd docs
93
- $inbounddocsquick = $prefix . 'inbounddocsquick'; // third level: docs quick links
94
- $inbounddocssections = $prefix . 'inbounddocssections'; // third level: docs sections
95
- $inboundreports = $prefix . 'inboundreports'; // sub level: edd reports
96
- $inboundgroup = $prefix . 'inboundgroup'; // sub level: edd group (resources)
97
- $inboundbar = $prefix . 'admin-bar'; // root level
98
- $inboundsupport = $prefix . 'inboundsupport'; // sub level: edd support
99
- $inboundsupportsections = $prefix . 'inboundsupportsections'; // third level: support sections
100
- $inboundsupportaccount = $prefix . 'inboundsupportaccount'; // third level: support user account
101
- $inboundsites = $prefix . 'inboundsites'; // sub level: edd sites
102
- $inbounddebug = $prefix . 'inbounddebug';
103
- $inboundsitesaccount = $prefix . 'inboundsitesaccount';
104
- $inboundsitesextensions = $prefix . 'inboundsitesextensions'; // third level: edd extensions
105
- $landingpages_menu = $prefix . 'landingpages';
106
- $cta_menu = $prefix . 'cta';
107
- $leads_menu = $prefix . 'leads';
108
- $form_menu = $prefix . 'inboundforms';
109
- $settings_menu = $prefix . 'inboundsettings';
110
- $templates_menu = $prefix . 'inboundtemplates';
111
- $landingpagesettings = $prefix . 'landingpagesettings';
112
- $ctasettings = $prefix . 'ctasettings';
113
- $landing_pages_templates = $prefix . 'landingpagetemplates';
114
- $cta_templates = $prefix . 'ctatemplates';
115
-
116
- /** Make the "EDD" name filterable within menu items */
117
- $eddtb_edd_name = apply_filters( 'eddtb_filter_edd_name', __( 'EDD', 'edd-toolbar' ) );
118
-
119
- /** Make the "Easy Digital Downloads" name's tooltip filterable within menu items */
120
- $eddtb_edd_name_tooltip = apply_filters( 'eddtb_filter_edd_name_tooltip', _x( 'Easy Digital Downloads', 'Translators: For the tooltip', 'edd-toolbar' ) );
121
-
122
-
123
- /** "Sub Forum" string */
124
- $eddtb_sub_forum = __( 'Sub Forum', 'edd-toolbar' ) . ': ';
125
-
126
- /** For the Documentation search */
127
- $eddtb_search_docs = __( 'Search Docs', 'edd-toolbar' );
128
- $eddtb_go_button = '<input type="submit" value="' . __( 'GO', 'edd-toolbar' ) . '" class="eddtb-search-go" /></form>';
129
-
130
- /** Show these items only if Inbound Now plugin is actually installed */
131
- if ( $leads_status == TRUE || $landing_page_status == TRUE || $cta_status == TRUE ) {
132
-
133
- /** Set EDD active variable for later user */
134
- $edd_active = 'edd_is_active';
135
-
136
- /** EDD main downloads section */
137
- if ( current_user_can( 'edit_posts' ) && $landing_page_status) {
138
-
139
- $menu_items['landingpages'] = array(
140
- 'parent' => $inboundbar,
141
- 'title' => __( 'Landing Pages', LANDINGPAGES_TEXT_DOMAIN ),
142
- 'href' => admin_url( 'edit.php?post_type=landing-page' ),
143
- 'meta' => array( 'target' => '', 'title' => __( 'View All Landing Pages', 'edd-toolbar' ) )
144
- );
145
- $menu_items['landingpages-view'] = array(
146
- 'parent' => $landingpages_menu,
147
- 'title' => __( 'View Landing Pages List', LANDINGPAGES_TEXT_DOMAIN ),
148
- 'href' => admin_url( 'edit.php?post_type=landing-page' ),
149
- 'meta' => array( 'target' => '', 'title' => __( 'View All Landing Pages', 'edd-toolbar' ) )
150
- );
151
- $menu_items['landingpages-add'] = array(
152
- 'parent' => $landingpages_menu,
153
- 'title' => __( 'Add New Landing Page', LANDINGPAGES_TEXT_DOMAIN ),
154
- 'href' => admin_url( 'post-new.php?post_type=landing-page' ),
155
- 'meta' => array( 'target' => '', 'title' => __( 'Add new Landing Page', 'edd-toolbar' ) )
156
- );
157
-
158
- $menu_items['landingpages-categories'] = array(
159
- 'parent' => $landingpages_menu,
160
- 'title' => __( 'Categories', LANDINGPAGES_TEXT_DOMAIN ),
161
- 'href' => admin_url( 'edit-tags.php?taxonomy=landing_page_category&post_type=landing-page' ),
162
- 'meta' => array( 'target' => '', 'title' => __( 'Landing Page Categories', 'edd-toolbar' ) )
163
- );
164
- if ( current_user_can( 'manage_options' )) {
165
- $menu_items['landingpages-settings'] = array(
166
- 'parent' => $landingpages_menu,
167
- 'title' => __( 'Settings', LANDINGPAGES_TEXT_DOMAIN ),
168
- 'href' => admin_url( 'edit.php?post_type=landing-page&page=lp_global_settings' ),
169
- 'meta' => array( 'target' => '', 'title' => __( 'Manage Landing Page Settings', 'edd-toolbar' ) )
170
- );
171
- }
172
- //
173
- }
174
-
175
- /** EDD main downloads section */
176
- if ( current_user_can( 'edit_posts' ) && $cta_status) {
177
-
178
- $menu_items['cta'] = array(
179
- 'parent' => $inboundbar,
180
- 'title' => __( 'Call to Actions', LANDINGPAGES_TEXT_DOMAIN ),
181
- 'href' => admin_url( 'edit.php?post_type=wp-call-to-action' ),
182
- 'meta' => array( 'target' => '', 'title' => __( 'View All Landing Pages', 'edd-toolbar' ) )
183
- );
184
- $menu_items['cta-view'] = array(
185
- 'parent' => $cta_menu,
186
- 'title' => __( 'View Calls to Action List', LANDINGPAGES_TEXT_DOMAIN ),
187
- 'href' => admin_url( 'post-new.php?post_type=wp-call-to-action' ),
188
- 'meta' => array( 'target' => '', 'title' => __( 'View All Landing Pages', 'edd-toolbar' ) )
189
- );
190
- $menu_items['cta-add'] = array(
191
- 'parent' => $cta_menu,
192
- 'title' => __( 'Add New Call to Action', LANDINGPAGES_TEXT_DOMAIN ),
193
- 'href' => admin_url( 'post-new.php?post_type=wp-call-to-action' ),
194
- 'meta' => array( 'target' => '', 'title' => __( 'Add new call to action', 'edd-toolbar' ) )
195
- );
196
-
197
- $menu_items['cta-categories'] = array(
198
- 'parent' => $cta_menu,
199
- 'title' => __( 'Categories', LANDINGPAGES_TEXT_DOMAIN ),
200
- 'href' => admin_url( 'edit-tags.php?taxonomy=wp_call_to_action_category&post_type=wp-call-to-action' ),
201
- 'meta' => array( 'target' => '', 'title' => __( 'Landing Page Categories', 'edd-toolbar' ) )
202
- );
203
- if ( current_user_can( 'manage_options' )) {
204
- $menu_items['cta-settings'] = array(
205
- 'parent' => $cta_menu,
206
- 'title' => __( 'Settings', LANDINGPAGES_TEXT_DOMAIN ),
207
- 'href' => admin_url( 'edit.php?post_type=wp-call-to-action&page=wp_cta_global_settings' ),
208
- 'meta' => array( 'target' => '', 'title' => __( 'Manage Call to Action Settings', 'edd-toolbar' ) )
209
- );
210
- }
211
-
212
- }
213
-
214
- /** admin settings sections */
215
- if ( current_user_can( 'manage_options' )) {
216
- // Leads Menu
217
- if ($leads_status) {
218
- $menu_items['leads'] = array(
219
- 'parent' => $inboundbar,
220
- 'title' => __( 'Leads', 'edd-toolbar' ),
221
- 'href' => admin_url( 'edit.php?post_type=inbound-forms' ),
222
- 'meta' => array( 'target' => '', 'title' => _x( 'Manage Forms', 'edd-toolbar' ) )
223
- );
224
- /** Leads search form */
225
- $leads_search_text = "Search All Leads";
226
- $menu_items['leads-search'] = array(
227
- 'parent' => $leads_menu,
228
- 'title' => '<form id="inbound-menu-form" method="get" action="'.admin_url( 'edit.php?post_type=wp-lead' ).'" class=" " target="_blank">
229
- <input id="search-inbound-menu" type="text" placeholder="' . $leads_search_text . '" onblur="this.value=(this.value==\'\') ? \'' . $leads_search_text . '\' : this.value;" onfocus="this.value=(this.value==\'' . $leads_search_text . '\') ? \'\' : this.value;" value="' . $leads_search_text . '" name="s" value="' . esc_attr( 'Search Leads', 'edd-toolbar' ) . '" class="text eddtb-search-input" />
230
- <input type="hidden" name="post_type" value="wp-lead" />
231
- <input type="hidden" name="post_status" value="all" />
232
- ' . $eddtb_go_button,
233
- 'href' => false,
234
- 'meta' => array( 'target' => '', 'title' => _x( 'Search Leads', 'Translators: For the tooltip', 'edd-toolbar' ) )
235
- );
236
- $menu_items['leads-view'] = array(
237
- 'parent' => $leads_menu,
238
- 'title' => __( 'View All Leads', LANDINGPAGES_TEXT_DOMAIN ),
239
- 'href' => admin_url( 'edit.php?post_type=wp-lead' ),
240
- 'meta' => array( 'target' => '', 'title' => __( 'View All Forms', 'edd-toolbar' ) )
241
- );
242
- $menu_items['leads-list'] = array(
243
- 'parent' => $leads_menu,
244
- 'title' => __( 'View Lead Lists', LANDINGPAGES_TEXT_DOMAIN ),
245
- 'href' => admin_url( 'edit.php?post_type=list' ),
246
- 'meta' => array( 'target' => '', 'title' => __( 'View Lead Lists', 'edd-toolbar' ) )
247
- );
248
- $menu_items['leads-add'] = array(
249
- 'parent' => $leads_menu,
250
- 'title' => __( 'Create New Lead', LANDINGPAGES_TEXT_DOMAIN ),
251
- 'href' => admin_url( 'post-new.php?post_type=wp-lead' ),
252
- 'meta' => array( 'target' => '', 'title' => __( 'Add new lead', 'edd-toolbar' ) )
253
- );
254
- }
255
-
256
-
257
- $menu_items['inboundforms'] = array(
258
- 'parent' => $inboundbar,
259
- 'title' => __( 'Manage Forms', 'edd-toolbar' ),
260
- 'href' => admin_url( 'edit.php?post_type=inbound-forms' ),
261
- 'meta' => array( 'target' => '', 'title' => _x( 'Manage Forms', 'edd-toolbar' ) )
262
- );
263
- $menu_items['inboundforms-view'] = array(
264
- 'parent' => $form_menu,
265
- 'title' => __( 'View All Forms', LANDINGPAGES_TEXT_DOMAIN ),
266
- 'href' => admin_url( 'edit.php?post_type=inbound-forms' ),
267
- 'meta' => array( 'target' => '', 'title' => __( 'View All Forms', 'edd-toolbar' ) )
268
- );
269
- $menu_items['inboundforms-add'] = array(
270
- 'parent' => $form_menu,
271
- 'title' => __( 'Create New Form', LANDINGPAGES_TEXT_DOMAIN ),
272
- 'href' => admin_url( 'post-new.php?post_type=inbound-forms' ),
273
- 'meta' => array( 'target' => '', 'title' => __( 'Add new call to action', 'edd-toolbar' ) )
274
- );
275
- /** Template Setup */
276
- if ($landing_page_status || $cta_status) {
277
-
278
- $menu_items['inboundtemplates'] = array(
279
- 'parent' => $inboundbar,
280
- 'title' => __( 'Manage Templates', 'edd-toolbar' ),
281
- 'href' => "",
282
- 'meta' => array( 'target' => '', 'title' => _x( 'Manage Templates', 'edd-toolbar' ) )
283
- );
284
- $menu_items['getmoretemplates'] = array(
285
- 'parent' => $templates_menu,
286
- 'title' => __( 'Download More Templates', 'edd-toolbar' ),
287
- 'href' => "http://www.inboundnow.com/market",
288
- 'meta' => array( 'target' => '', 'title' => __( 'Download More Templates', 'edd-toolbar' ) )
289
- );
290
- if ($landing_page_status){
291
- $menu_items['landingpagetemplates'] = array(
292
- 'parent' => $templates_menu,
293
- 'title' => __( 'Landing Page Templates', 'edd-toolbar' ),
294
- 'href' => admin_url( 'edit.php?post_type=landing-page&page=lp_manage_templates' ),
295
- 'meta' => array( 'target' => '', 'title' => __( 'Landing Page Settings', 'edd-toolbar' ) )
296
- );
297
-
298
- $menu_items['landingpagetemplates-main'] = array(
299
- 'parent' => $landing_pages_templates,
300
- 'title' => __( 'Add New Landing Page Templates', 'edd-toolbar' ),
301
- 'href' => admin_url( 'edit.php?post_type=landing-page&page=lp_manage_templates' ),
302
- 'meta' => array( 'target' => '', 'title' => __( 'Global Settings', 'edd-toolbar' ) )
303
- );
304
- }
305
- if ($cta_status){
306
- $menu_items['ctatemplates'] = array(
307
- 'parent' => $templates_menu,
308
- 'title' => __( 'Call to Action Templates', 'edd-toolbar' ),
309
- 'href' => admin_url( 'edit.php?post_type=wp-call-to-action&page=wp_cta_manage_templates' ),
310
- 'meta' => array( 'target' => '', 'title' => __( 'Global Settings', 'edd-toolbar' ) )
311
- );
312
-
313
- $menu_items['ctatemplates-main'] = array(
314
- 'parent' => $cta_templates,
315
- 'title' => __( 'Add New CTA Templates', 'edd-toolbar' ),
316
- 'href' => admin_url( 'edit.php?post_type=wp-call-to-action&page=wp_cta_manage_templates' ),
317
- 'meta' => array( 'target' => '', 'title' => __( 'Global Settings', 'edd-toolbar' ) )
318
- );
319
- }
320
-
321
- }
322
- /** Settings Items */
323
- $menu_items['inboundsettings'] = array(
324
- 'parent' => $inboundbar,
325
- 'title' => __( 'Global Settings', 'edd-toolbar' ),
326
- 'href' => "",
327
- 'meta' => array( 'target' => '', 'title' => _x( 'Manage Settings', 'edd-toolbar' ) )
328
- );
329
- if ($landing_page_status){
330
- $menu_items['landingpagesettings'] = array(
331
- 'parent' => $settings_menu,
332
- 'title' => __( 'Landing Page Settings', 'edd-toolbar' ),
333
- 'href' => admin_url( 'edit.php?post_type=landing-page&page=lp_global_settings' ),
334
- 'meta' => array( 'target' => '', 'title' => __( 'Landing Page Settings', 'edd-toolbar' ) )
335
- );
336
- /*
337
- $menu_items['landingpagesettings-main'] = array(
338
- 'parent' => $landingpagesettings,
339
- 'title' => __( 'Main', 'edd-toolbar' ),
340
- 'href' => admin_url( 'edit.php?post_type=landing-page&page=lp_global_settings' ),
341
- 'meta' => array( 'target' => '', 'title' => __( 'Global Settings', 'edd-toolbar' ) )
342
- ); */
343
- }
344
- if ($cta_status){
345
- $menu_items['ctasettings'] = array(
346
- 'parent' => $settings_menu,
347
- 'title' => __( 'Call to Action Settings', 'edd-toolbar' ),
348
- 'href' => admin_url( 'edit.php?post_type=wp-call-to-action&page=wp_cta_global_settings' ),
349
- 'meta' => array( 'target' => '', 'title' => __( 'Call to Action Settings', 'edd-toolbar' ) )
350
- );
351
- /*
352
- $menu_items['ctasettings-main'] = array(
353
- 'parent' => $ctasettings,
354
- 'title' => __( 'Main', 'edd-toolbar' ),
355
- 'href' => admin_url( 'edit.php?post_type=wp-call-to-action&page=wp_cta_global_settings' ),
356
- 'meta' => array( 'target' => '', 'title' => __( 'Global Settings', 'edd-toolbar' ) )
357
- ); */
358
- }
359
- if ($leads_status){
360
- $menu_items['leadssettings'] = array(
361
- 'parent' => $settings_menu,
362
- 'title' => __( 'Lead Settings', 'edd-toolbar' ),
363
- 'href' => admin_url( 'edit.php?post_type=wp-lead&page=wpleads_global_settings' ),
364
- 'meta' => array( 'target' => '', 'title' => __( 'Lead Settings', 'edd-toolbar' ) )
365
- );
366
- }
367
-
368
- $menu_items['inboundreports'] = array(
369
- 'parent' => $inboundbar,
370
- 'title' => __( 'Analytics (coming soon)', 'edd-toolbar' ),
371
- 'href' => '#',
372
- 'meta' => array( 'target' => '', 'title' => __( 'Analytics (coming soon)', 'edd-toolbar' ) )
373
- );
374
-
375
- if (function_exists( 'is_plugin_active' ) && is_plugin_active('wordpress-seo/wp-seo.php')) {
376
- $menu_items['inboundseo'] = array(
377
- 'parent' => $inboundbar,
378
- 'title' => __( 'SEO by Yoast', 'edd-toolbar' ),
379
- 'href' => admin_url( 'admin.php?page=wpseo_dashboard' ),
380
- 'meta' => array( 'target' => '', 'title' => __( 'Manage SEO Settings', 'edd-toolbar' ) )
381
- );
382
- }
383
-
384
- $inboundsecondary_menu_items['inboundsupport'] = array(
385
- 'parent' => $inboundgroup,
386
- 'title' => __( 'Support Forum', 'edd-toolbar' ),
387
- 'href' => 'https://www.inboundnow.com/support/',
388
- 'meta' => array( 'target' => '_blank' , 'title' => __( 'Support Forum', 'edd-toolbar' ) )
389
- );
390
-
391
- /** Documentation menu items */
392
- $inboundsecondary_menu_items['inbounddocs'] = array(
393
- 'parent' => $inboundgroup,
394
- 'title' => __( 'Documentation', 'edd-toolbar' ),
395
- 'href' => 'http://docs.inboundnow.com/',
396
- 'meta' => array( 'title' => __( 'Documentation', 'edd-toolbar' ) )
397
- );
398
-
399
- /** Docs search form */
400
- $inboundsecondary_menu_items['inbounddocs-searchform'] = array(
401
- 'parent' => $inboundgroup,
402
- 'title' => '<form method="get" id="inbound-menu-form" action="http://www.inboundnow.com/support/search/?action=bbp-search-request" class=" " target="_blank">
403
- <input id="search-inbound-menu" type="text" placeholder="' . $eddtb_search_docs . '" onblur="this.value=(this.value==\'\') ? \'' . $eddtb_search_docs . '\' : this.value;" onfocus="this.value=(this.value==\'' . $eddtb_search_docs . '\') ? \'\' : this.value;" value="' . $eddtb_search_docs . '" name="bbp_search" value="' . esc_attr( 'Search Docs', 'edd-toolbar' ) . '" class="text eddtb-search-input" />
404
- <input type="hidden" name="post_type[]" value="docs" />
405
- <input type="hidden" name="post_type[]" value="page" />' . $eddtb_go_button,
406
- 'href' => false,
407
- 'meta' => array( 'target' => '', 'title' => _x( 'Search Docs', 'Translators: For the tooltip', 'edd-toolbar' ) )
408
- );
409
-
410
- /** Easy Digital Downloads HQ menu items */
411
- $inboundsecondary_menu_items['inboundsites'] = array(
412
- 'parent' => $inboundgroup,
413
- 'title' => __( 'Inbound Now Plugin HQ', 'edd-toolbar' ),
414
- 'href' => 'https://www.inboundnow.com/',
415
- 'meta' => array( 'title' => $eddtb_edd_name_tooltip . ' ' . __( 'Plugin HQ', 'edd-toolbar' ) )
416
- );
417
-
418
- /** Easy Digital Downloads HQ menu items */
419
- $actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
420
-
421
- $param = (preg_match("/\?/", $actual_link)) ? "&" : '?';
422
- if (preg_match("/inbound-dequeue-scripts/", $actual_link)) {
423
- $actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
424
- } else {
425
- $actual_link = $actual_link . $param .'inbound-dequeue-scripts';
426
- }
427
- $actual_link_two = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
428
- $param_two = (preg_match("/\?/", $actual_link_two)) ? "&" : '?';
429
- if (preg_match("/inbound_js/", $actual_link_two)) {
430
- $actual_link_two = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
431
- } else {
432
- $actual_link_two = $actual_link_two . $param_two .'inbound_js';
433
- }
434
- $inboundsecondary_menu_items['inbounddebug'] = array(
435
- 'parent' => $inboundgroup,
436
- 'title' => __( '<span style="color:#fff;font-size: 13px;margin-top: -1px;display: inline-block;">Debug Tools</span>', 'edd-toolbar' ),
437
- 'href' => "#",
438
- 'meta' => ""
439
- );
440
- $inboundsecondary_menu_items['inbounddebug-checkjs'] = array(
441
- 'parent' => $inbounddebug,
442
- 'title' => __( 'Check for Javascript Errors', 'edd-toolbar' ),
443
- 'href' => $actual_link_two,
444
- 'meta' => array( 'title' => __( 'Click here to check javascript errors on this page', 'edd-toolbar' ) )
445
- );
446
-
447
- $inboundsecondary_menu_items['inbounddebug-turnoffscripts'] = array(
448
- 'parent' => $inbounddebug,
449
- 'title' => __( 'Remove Javascript Errors', 'edd-toolbar' ),
450
- 'href' => $actual_link,
451
- 'meta' => array( 'title' => __( 'Click here to remove broken javascript to fix issues', 'edd-toolbar' ) )
452
- );
453
-
454
- /** HQ: GitHub */
455
- $inboundsecondary_menu_items['inboundsites-dev'] = array(
456
- 'parent' => $inboundsites,
457
- 'title' => __( 'GitHub Repository Developer Center', 'edd-toolbar' ),
458
- 'href' => 'https://github.com/inboundnow',
459
- 'meta' => array( 'title' => __( 'GitHub Repository Developer Center', 'edd-toolbar' ) )
460
- );
461
-
462
- /** HQ: Blog */
463
- $inboundsecondary_menu_items['inboundsites-blog'] = array(
464
- 'parent' => $inboundsites,
465
- 'title' => __( 'Official Blog', 'edd-toolbar' ),
466
- 'href' => 'https://www.inboundnow.com/blog/',
467
- 'meta' => array( 'title' => __( 'Official Blog', 'edd-toolbar' ) )
468
- );
469
-
470
- /** HQ: Site Account */
471
- $inboundsecondary_menu_items['inboundsitesaccount'] = array(
472
- 'parent' => $inboundsites,
473
- 'title' => __( 'My Account', 'edd-toolbar' ),
474
- 'href' => 'https://www.inboundnow.com/marketplace/account/',
475
- 'meta' => array( 'title' => __( 'My Account', 'edd-toolbar' ) )
476
- );
477
-
478
- $inboundsecondary_menu_items['inboundsitesaccount-history'] = array(
479
- 'parent' => $inboundsitesaccount,
480
- 'title' => __( 'Purchase History', 'edd-toolbar' ),
481
- 'href' => 'https://www.inboundnow.com/marketplace/account/purchase-history/',
482
- 'meta' => array( 'title' => __( 'Purchase History', 'edd-toolbar' ) )
483
- );
484
- /*
485
- $menu_items['edd-systeminfo'] = array(
486
- 'parent' => $inboundgroup,
487
- 'title' => __( 'System Info (Debug)', 'edd-toolbar' ),
488
- 'href' => admin_url( 'edit.php?post_type=landing-page&page=edd-system-info' ),
489
- 'meta' => array( 'target' => '', 'title' => __( 'System Info (Debug)', 'edd-toolbar' ) )
490
- );
491
- */
492
-
493
-
494
- } // end-if global settings/options cap checks (including backward compatibility)
495
-
496
- } else {
497
-
498
- /** If Easy Digital Downloads is not active, to avoid PHP notices */
499
- if ( 'eddtb_resources_yes' == $eddtb_resources_check && $inboundsecondary_menu_items ) {
500
- $menu_items = $inboundsecondary_menu_items;
501
- }
502
-
503
- /** If Easy Digital Downloads is not active and no icon filter is active, then display no icon */
504
- if ( ! has_filter( 'eddtb_filter_main_icon' ) ) {
505
- add_filter( 'eddtb_filter_main_item_icon_display', '__eddtb_no_icon_display' );
506
- }
507
-
508
- }
509
-
510
-
511
-
512
- /** Allow menu items to be filtered, but pass in parent menu item IDs */
513
- $menu_items = (array) apply_filters( 'ddw_eddtb_menu_items', $menu_items, ( 'eddtb_resources_yes' == $eddtb_resources_check ) ? $inboundsecondary_menu_items : '',
514
- $prefix,
515
- $inboundbar,
516
- $inboundsupport,
517
- $inboundsupportsections,
518
- $inboundsupportaccount,
519
- $inbounddocs,
520
- $inbounddocsquick,
521
- $inbounddocssections,
522
- $inboundsites,
523
- $inboundsitesaccount,
524
- $inboundsitesextensions,
525
- $inboundreports,
526
- $inboundgroup,
527
- // NEW PREFIXES
528
- $landingpages_menu,
529
- $cta_menu,
530
- $form_menu,
531
- $settings_menu,
532
- $templates_menu,
533
- $landingpagesettings,
534
- $ctasettings,
535
- $landing_pages_templates,
536
- $cta_templates
537
- ); // end of array
538
-
539
-
540
- /** Filter the main item icon's class/display */
541
- $eddtb_main_item_icon_display = apply_filters( 'eddtb_filter_main_item_icon_display', 'icon-edd' );
542
-
543
- $wp_admin_bar->add_menu( array(
544
- 'id' => $inboundbar,
545
- 'title' => __( ' Marketing', 'edd-toolbar' ),
546
- 'href' => "",
547
- 'meta' => array( 'class' => $eddtb_main_item_icon_display, 'title' => 'Inbound Marketing Admin' )
548
- ) );
549
-
550
-
551
- /** Loop through the menu items */
552
- foreach ( $menu_items as $id => $menu_item ) {
553
-
554
- /** Add in the item ID */
555
- $menu_item['id'] = $prefix . $id;
556
-
557
- /** Add meta target to each item where it's not already set, so links open in new window/tab */
558
- if ( ! isset( $menu_item['meta']['target'] ) )
559
- $menu_item['meta']['target'] = '_blank';
560
-
561
- /** Add class to links that open up in a new window/tab */
562
- if ( '_blank' === $menu_item['meta']['target'] ) {
563
- if ( ! isset( $menu_item['meta']['class'] ) )
564
- $menu_item['meta']['class'] = '';
565
- $menu_item['meta']['class'] .= $prefix . 'eddtb-new-tab';
566
- }
567
-
568
- /** Add menu items */
569
- $wp_admin_bar->add_menu( $menu_item );
570
-
571
- } // end foreach menu items
572
-
573
-
574
- /**
575
- * Action Hook 'eddtb_custom_main_items'
576
- * allows for hooking other main items in
577
- *
578
- * @since 1.2.0
579
- */
580
- do_action( 'eddtb_custom_main_items' );
581
-
582
-
583
- /** add special blue links
584
- $wp_admin_bar->add_group( array(
585
- 'parent' => $eddsettings,
586
- 'id' => $eddspecials
587
- ) );
588
- */
589
-
590
- /** Adds search box and sub */
591
- $wp_admin_bar->add_group( array(
592
- 'parent' => $inboundbar,
593
- 'id' => $inboundgroup,
594
- 'meta' => array( 'class' => 'ab-sub-secondary' )
595
- ) );
596
-
597
- if (is_array($inboundsecondary_menu_items)) {
598
- // Load grey secondary items
599
- foreach ( $inboundsecondary_menu_items as $id => $inboundgroup_menu_item ) {
600
-
601
- /** EDD Group: Add in the item ID */
602
- $inboundgroup_menu_item['id'] = $prefix . $id;
603
-
604
- /** EDD Group: Add meta target to each item where it's not already set, so links open in new window/tab */
605
- if ( ! isset( $inboundgroup_menu_item['meta']['target'] ) )
606
- $inboundgroup_menu_item['meta']['target'] = '_blank';
607
-
608
- /** EDD Group: Add class to links that open up in a new window/tab */
609
- if ( '_blank' === $inboundgroup_menu_item['meta']['target'] ) {
610
-
611
- if ( ! isset( $inboundgroup_menu_item['meta']['class'] ) ) {
612
- $inboundgroup_menu_item['meta']['class'] = '';
613
- }
614
-
615
- $inboundgroup_menu_item['meta']['class'] .= $prefix . 'eddtb-new-tab';
616
-
617
- }
618
-
619
- /** EDD Group: Add menu items */
620
- $wp_admin_bar->add_menu( $inboundgroup_menu_item );
621
-
622
- } // end foreach EDD Group
623
- }
624
-
625
- /**
626
- * Action Hook 'eddtb_custom_group_items'
627
- * allows for hooking other EDD Group items in
628
- *
629
- * @since 1.2.0
630
- */
631
- // do_action( 'eddtb_custom_group_items' );
632
-
633
- }
634
-
635
- static function menu_admin_head() {
636
- /** No styles if admin bar is disabled or user is not logged in or items are disabled via constant */
637
- if ( ! is_admin_bar_showing() || ! is_user_logged_in() ) {
638
- return;
639
- }
640
- if ( defined( 'WPL_URL' )) {
641
- $final_path = WPL_URL . "/";
642
- } else if (defined( 'LANDINGPAGES_URLPATH' )){
643
- $final_path = LANDINGPAGES_URLPATH;
644
- } else if (defined( 'WP_CTA_URLPATH' )){
645
- $final_path = WP_CTA_URLPATH;
646
- } else {
647
- $final_path = preg_replace("/\/shared\/inbound-shortcodes\//", "/", INBOUND_FORMS);
648
- }
649
-
650
- ?>
651
- <?php }
652
 
653
-
654
-
655
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
656
  }
657
- /* Initialize InboundNow Menu
658
- * --------------------------------------------------------- */
659
-
660
- InboundMenu::init();
661
-
662
- ?>
1
  <?php
2
  /* Inbound Now Menu Class */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
+ if (!class_exists('InboundMenu')) {
5
+ class InboundMenu {
6
+
7
+ static $add_menu;
8
+ static $go_button;
9
+ static $inboundnow_menu_key;
10
+ static $inboundnow_menu_secondary_group_key;
11
+ static $load_forms;
12
+ static $load_landingpages;
13
+ static $load_callstoaction;
14
+ static $load_leads;
15
+
16
+ function __construct()
17
+ {
18
+ // Exit if admin bar not there
19
+ if ( ! is_user_logged_in() || ! is_admin_bar_showing() ) {
20
+ return;
21
+ }
22
+
23
+ self::$add_menu = true;
24
+ self::$go_button = '<input type="submit" value="' . __( 'GO', 'leads' ) . '" class="inbound-search-go" /></form>';
25
+ self::$inboundnow_menu_key = 'inbound-admin-bar';
26
+ self::$inboundnow_menu_secondary_group_key = 'inbound-secondary';
27
+ self::hooks();
28
+ add_action( 'admin_bar_menu', array( $this , 'load_inboundnow_menu' ), 98);
29
+ }
30
+
31
+ public static function load_inboundnow_menu()
32
+ {
33
+ global $wp_admin_bar;
34
+
35
+ $primary_menu_items = apply_filters( 'inboundnow_menu_primary' , array() );
36
+ $secondary_menu_items = apply_filters( 'inboundnow_menu_secondary' , array() );
37
+
38
+ /* Add Parent Nav Menu - Inbound Marketing*/
39
+ $wp_admin_bar->add_menu( array(
40
+ 'id' => self::$inboundnow_menu_key,
41
+ 'title' => __( ' Marketing', 'leads' ),
42
+ 'href' => "",
43
+ 'meta' => array( 'class' => 'inbound-nav-marketing', 'title' => 'Inbound Marketing Admin' )
44
+ ) );
45
+
46
+ //print_r($primary_menu_items);exit;
47
+
48
+ /** Add Primary Menu Items */
49
+ foreach ( $primary_menu_items as $id => $menu_item )
50
+ {
51
+ /** Add in the item ID */
52
+ $menu_item['id'] = $id;
53
+
54
+ /** Add meta target to each item where it's not already set, so links open in new window/tab */
55
+ if ( ! isset( $menu_item['meta']['target'] ) ) {
56
+ $menu_item['meta']['target'] = '_blank';
57
+ }
58
+
59
+ /** Add class to links that open up in a new window/tab */
60
+ if ( '_blank' === $menu_item['meta']['target'] ) {
61
+
62
+ if ( ! isset( $menu_item['meta']['class'] ) ) {
63
+ $menu_item['meta']['class'] = '';
64
+ }
65
+
66
+ $menu_item['meta']['class'] .= 'inbound-new-tab';
67
+ }
68
+
69
+ /** Add menu items */
70
+ $wp_admin_bar->add_node( $menu_item );
71
+ }
72
+
73
+ //var_dump($wp_admin_bar);exit;
74
+
75
+ /* Add Secondary Menu Item Group */
76
+ $wp_admin_bar->add_group( array(
77
+ 'parent' => self::$inboundnow_menu_key,
78
+ 'id' => self::$inboundnow_menu_secondary_group_key,
79
+ 'meta' => array( 'class' => 'ab-sub-secondary' )
80
+ ) );
81
+
82
+ foreach ( $secondary_menu_items as $id => $menu_item )
83
+ {
84
+ $menu_item['id'] = $id;
85
+
86
+ if ( ! isset( $menu_item['meta']['target'] ) ) {
87
+ $menu_item['meta']['target'] = '_blank';
88
+ }
89
+
90
+ if ( '_blank' === $menu_item['meta']['target'] )
91
+ {
92
+ if ( ! isset( $menu_item['meta']['class'] ) ) {
93
+ $menu_item['meta']['class'] = '';
94
+ }
95
+
96
+ $menu_item['meta']['class'] .= ' inbound-new-tab';
97
+ }
98
+
99
+ $wp_admin_bar->add_node( $menu_item );
100
+ }
101
+
102
+ }
103
+
104
+ public function hooks()
105
+ {
106
+ /* add filters here */
107
+ add_filter('inboundnow_menu_primary' , array( $this , 'load_callstoaction') , 10 );
108
+ add_filter('inboundnow_menu_primary' , array( $this , 'load_landingpages') , 10 );
109
+ add_filter('inboundnow_menu_primary' , array( $this , 'load_leads') , 10 );
110
+ add_filter('inboundnow_menu_primary' , array( $this , 'load_forms') , 10 );
111
+ add_filter('inboundnow_menu_primary' , array( $this , 'load_manage_templates') , 10 );
112
+ add_filter('inboundnow_menu_primary' , array( $this , 'load_settings') , 10 );
113
+ add_filter('inboundnow_menu_primary' , array( $this , 'load_analytics') , 10 );
114
+ add_filter('inboundnow_menu_primary' , array( $this , 'load_seo') , 10 );
115
+
116
+
117
+ add_filter('inboundnow_menu_secondary' , array( $this , 'load_support') , 10 );
118
+ add_filter('inboundnow_menu_secondary' , array( $this , 'load_inbound_hq') , 10 );
119
+ add_filter('inboundnow_menu_secondary' , array( $this , 'load_debug') , 10 );
120
+ }
121
+
122
+
123
+ function load_leads( $menu_items )
124
+ {
125
+ /* Check if Leads Active */
126
+ if (function_exists( 'is_plugin_active' ) && !is_plugin_active('leads/wordpress-leads.php')) {
127
+ return $menu_items;
128
+ }
129
+
130
+ $leads_key = 'inbound-leads';
131
+ self::$load_forms = true;
132
+ self::$load_leads = true;
133
+
134
+ /* 1 - Lead Parent */
135
+ $menu_items[ $leads_key ] = array(
136
+ 'parent' => self::$inboundnow_menu_key,
137
+ 'title' => __( 'Leads', 'leads' ),
138
+ 'href' => admin_url( 'edit.php?post_type=inbound-forms' ),
139
+ 'meta' => array( 'target' => '', 'title' => _x( 'Manage Forms', 'leads' ) )
140
+ );
141
+
142
+ /* 1.1 - Leads search form */
143
+ $leads_search_text = __( 'Search All Leads' , 'leads' );
144
+ $menu_items['inbound-leads-search'] = array(
145
+ 'parent' => $leads_key,
146
+ 'title' => '<form id="inbound-menu-form" method="get" action="'.admin_url( 'edit.php?post_type=wp-lead' ).'" class=" " target="_blank">
147
+ <input id="search-inbound-menu" type="text" placeholder="' . $leads_search_text . '" onblur="this.value=(this.value==\'\') ? \'' . $leads_search_text . '\' : this.value;" onfocus="this.value=(this.value==\'' . $leads_search_text . '\') ? \'\' : this.value;" value="' . $leads_search_text . '" name="s" value="' . esc_attr( 'Search Leads', 'leads' ) . '" class="text inbound-search-input" />
148
+ <input type="hidden" name="post_type" value="wp-lead" />
149
+ <input type="hidden" name="post_status" value="all" />
150
+ ' . self::$go_button ,
151
+ 'href' => false,
152
+ 'meta' => array( 'target' => '', 'title' => _x( 'Search Leads', 'Translators: For the tooltip', 'leads' ) )
153
+ );
154
+
155
+ /* 1.2 - View All Leads */
156
+ $menu_items['inbound-leads-view'] = array(
157
+ 'parent' => $leads_key,
158
+ 'title' => __( 'View All Leads', 'leads' ),
159
+ 'href' => admin_url( 'edit.php?post_type=wp-lead' ),
160
+ 'meta' => array( 'target' => '', 'title' => __( 'View All Forms', 'leads' ) )
161
+ );
162
+
163
+ /* 1.3 - View Lead Lists */
164
+ $menu_items['inbound-leads-list'] = array(
165
+ 'parent' => $leads_key,
166
+ 'title' => __( 'View Lead Lists', 'leads' ),
167
+ 'href' => admin_url( 'edit-tags.php?taxonomy=wplead_list_category&post_type=wp-lead' ),
168
+ 'meta' => array( 'target' => '', 'title' => __( 'View Lead Lists', 'leads' ) )
169
+ );
170
+
171
+ /* 1.4 - Create New Lead */
172
+ $menu_items['inbound-leads-add'] = array(
173
+ 'parent' => $leads_key,
174
+ 'title' => __( 'Create New Lead', 'leads' ),
175
+ 'href' => admin_url( 'post-new.php?post_type=wp-lead' ),
176
+ 'meta' => array( 'target' => '', 'title' => __( 'Add new lead', 'leads' ) )
177
+ );
178
+
179
+ return $menu_items;
180
+ }
181
+
182
+ function load_callstoaction( $menu_items )
183
+ {
184
+ /* Check if Calls To Action Active */
185
+ if (function_exists( 'is_plugin_active' ) && !is_plugin_active('cta/wordpress-cta.php')) {
186
+ return $menu_items;
187
+ }
188
+
189
+ $cta_key = 'inbound-cta';
190
+ self::$load_forms = true;
191
+ self::$load_callstoaction = true;
192
+
193
+ /* 1 - Calls to Action */
194
+ $menu_items[ $cta_key ] = array(
195
+ 'parent' => self::$inboundnow_menu_key,
196
+ 'title' => __( 'Call to Actions', 'leads' ),
197
+ 'href' => admin_url( 'edit.php?post_type=wp-call-to-action' ),
198
+ 'meta' => array( 'target' => '', 'title' => __( 'View All Landing Pages', 'leads' ) )
199
+ );
200
+
201
+ /* 1.1 - View Calls to Action */
202
+ $menu_items['inbound-cta-view'] = array(
203
+ 'parent' => $cta_key,
204
+ 'title' => __( 'View Calls to Action List', 'leads' ),
205
+ 'href' => admin_url( 'post-new.php?post_type=wp-call-to-action' ),
206
+ 'meta' => array( 'target' => '', 'title' => __( 'View All Landing Pages', 'leads' ) )
207
+ );
208
+
209
+ /* 1.2 - Add Calls to Action */
210
+ $menu_items['inbound-cta-add'] = array(
211
+ 'parent' => $cta_key,
212
+ 'title' => __( 'Add New Call to Action', 'leads' ),
213
+ 'href' => admin_url( 'post-new.php?post_type=wp-call-to-action' ),
214
+ 'meta' => array( 'target' => '', 'title' => __( 'Add new call to action', 'leads' ) )
215
+ );
216
+
217
+ /* 1.3 - Calls to Action Categories */
218
+ $menu_items['inbound-cta-categories'] = array(
219
+ 'parent' => $cta_key,
220
+ 'title' => __( 'Categories', 'leads' ),
221
+ 'href' => admin_url( 'edit-tags.php?taxonomy=wp_call_to_action_category&post_type=wp-call-to-action' ),
222
+ 'meta' => array( 'target' => '', 'title' => __( 'Landing Page Categories', 'leads' ) )
223
+ );
224
+
225
+ /* 1.4 - Settings */
226
+ if ( current_user_can( 'manage_options' )) {
227
+ $menu_items['inbound-cta-settings'] = array(
228
+ 'parent' => $cta_key,
229
+ 'title' => __( 'Settings', 'leads' ),
230
+ 'href' => admin_url( 'edit.php?post_type=wp-call-to-action&page=wp_cta_global_settings' ),
231
+ 'meta' => array( 'target' => '', 'title' => __( 'Manage Call to Action Settings', 'leads' ) )
232
+ );
233
+ }
234
+
235
+ return $menu_items;
236
+ }
237
+
238
+ function load_landingpages( $menu_items )
239
+ {
240
+ /* Check if Landing Pages Active */
241
+ if (function_exists( 'is_plugin_active' ) && !is_plugin_active('landing-pages/landing-pages.php')) {
242
+ return $menu_items;
243
+ }
244
+
245
+ $landing_pages_key = 'inbound-landingpages';
246
+ self::$load_forms = true;
247
+ self::$load_landingpages = true;
248
+
249
+ /* 1 - Landing Pages */
250
+ $menu_items[ $landing_pages_key ] = array(
251
+ 'parent' => self::$inboundnow_menu_key,
252
+ 'title' => __( 'Landing Pages', 'leads' ),
253
+ 'href' => admin_url( 'edit.php?post_type=landing-page' ),
254
+ 'meta' => array( 'target' => '', 'title' => __( 'View All Landing Pages', 'leads' ) )
255
+ );
256
+
257
+ /* 1.1 - View Landing Pages */
258
+ $menu_items['inbound-landingpages-view'] = array(
259
+ 'parent' => $landing_pages_key,
260
+ 'title' => __( 'View Landing Pages List', 'leads' ),
261
+ 'href' => admin_url( 'edit.php?post_type=landing-page' ),
262
+ 'meta' => array( 'target' => '', 'title' => __( 'View All Landing Pages', 'leads' ) )
263
+ );
264
+
265
+ /* 1.2 - Add New Landing Pages */
266
+ $menu_items['inbound-landingpages-add'] = array(
267
+ 'parent' => $landing_pages_key,
268
+ 'title' => __( 'Add New Landing Page', 'leads' ),
269
+ 'href' => admin_url( 'post-new.php?post_type=landing-page' ),
270
+ 'meta' => array( 'target' => '', 'title' => __( 'Add new Landing Page', 'leads' ) )
271
+ );
272
+
273
+ /* 1.3 - Landing Pages Categories */
274
+ $menu_items['inbound-landingpages-categories'] = array(
275
+ 'parent' => $landing_pages_key,
276
+ 'title' => __( 'Categories', 'leads' ),
277
+ 'href' => admin_url( 'edit-tags.php?taxonomy=landing_page_category&post_type=landing-page' ),
278
+ 'meta' => array( 'target' => '', 'title' => __( 'Landing Page Categories', 'leads' ) )
279
+ );
280
+
281
+ /* 1.4 - Landing Pages Settings */
282
+ if ( current_user_can( 'manage_options' )) {
283
+ $menu_items['inbound-landingpages-settings'] = array(
284
+ 'parent' => $landing_pages_key,
285
+ 'title' => __( 'Settings', 'leads' ),
286
+ 'href' => admin_url( 'edit.php?post_type=landing-page&page=lp_global_settings' ),
287
+ 'meta' => array( 'target' => '', 'title' => __( 'Manage Landing Page Settings', 'leads' ) )
288
+ );
289
+ }
290
+
291
+
292
+ return $menu_items;
293
+ }
294
+
295
+ function load_forms( $menu_items )
296
+ {
297
+ /* Check if Leads Active */
298
+ if (!self::$load_forms) {
299
+ return $menu_items;
300
+ }
301
+
302
+ $forms_key = 'inbound-forms';
303
+
304
+ /* 1 - Manage Forms */
305
+ $menu_items[ $forms_key ] = array(
306
+ 'parent' => self::$inboundnow_menu_key,
307
+ 'title' => __( 'Manage Forms', 'leads' ),
308
+ 'href' => admin_url( 'edit.php?post_type=inbound-forms' ),
309
+ 'meta' => array( 'target' => '', 'title' => _x( 'Manage Forms', 'leads' ) )
310
+ );
311
+
312
+ /* 1.1 - View All Forms */
313
+ $menu_items['inbound-forms-view'] = array(
314
+ 'parent' => $forms_key,
315
+ 'title' => __( 'View All Forms', 'leads' ),
316
+ 'href' => admin_url( 'edit.php?post_type=inbound-forms' ),
317
+ 'meta' => array( 'target' => '', 'title' => __( 'View All Forms', 'leads' ) )
318
+ );
319
+
320
+ /* 1.1.x Get Forms and List */
321
+ $forms = get_posts(array('post_type'=>'inbound-forms','post_status'=>'published'));
322
+ foreach ($forms as $form)
323
+ {
324
+ $menu_items['inbound-form-'.$form->ID] = array(
325
+ 'parent' => 'inbound-forms-view',
326
+ 'title' => $form->post_title,
327
+ 'href' => admin_url( 'post.php?post='.$form->ID.'&action=edit' ),
328
+ 'meta' => array( 'target' => '_blank', 'title' => $form->post_title )
329
+ );
330
+ }
331
+
332
+ /* 1.2 - Create New Form */
333
+ $menu_items['inbound-forms-add'] = array(
334
+ 'parent' => $forms_key,
335
+ 'title' => __( 'Create New Form', 'leads' ),
336
+ 'href' => admin_url( 'post-new.php?post_type=inbound-forms' ),
337
+ 'meta' => array( 'target' => '', 'title' => __( 'Add new call to action', 'leads' ) )
338
+ );
339
+
340
+ return $menu_items;
341
+ }
342
+
343
+ function load_manage_templates( $menu_items )
344
+ {
345
+ if ( !isset(self::$load_landingpages) || !isset(self::$load_callstoaction) ) {
346
+ return $menu_items;
347
+ }
348
+
349
+ $templates_key = 'inbound-templates';
350
+
351
+ /* 1 - Manage Templates */
352
+ $menu_items[ $templates_key ] = array(
353
+ 'parent' => self::$inboundnow_menu_key,
354
+ 'title' => __( 'Manage Templates', 'leads' ),
355
+ 'href' => "",
356
+ 'meta' => array( 'target' => '', 'title' => _x( 'Manage Templates', 'leads' ) )
357
+ );
358
+
359
+ /* 1.1 - Get More Templates */
360
+ $menu_items['inbound-gettemplates'] = array(
361
+ 'parent' => $templates_key,
362
+ 'title' => __( 'Download More Templates', 'leads' ),
363
+ 'href' => "http://www.inboundnow.com/market",
364
+ 'meta' => array( 'target' => '', 'title' => __( 'Download More Templates', 'leads' ) )
365
+ );
366
+
367
+ /* 1.1 - Landing Page Templates */
368
+ if (isset(self::$load_landingpages)) {
369
+ $menu_items['inbound-landingpagetemplates'] = array(
370
+ 'parent' => $templates_key,
371
+ 'title' => __( 'Landing Page Templates', 'leads' ),
372
+ 'href' => admin_url( 'edit.php?post_type=landing-page&page=lp_manage_templates' ),
373
+ 'meta' => array( 'target' => '', 'title' => __( 'Landing Page Templates', 'leads' ) )
374
+ );
375
+ }
376
+
377
+ /* 1.1 - Call To Action Templates */
378
+ if (isset(self::$load_callstoaction)) {
379
+ $menu_items['inbound-ctatemplates'] = array(
380
+ 'parent' => $templates_key,
381
+ 'title' => __( 'Call to Action Templates', 'leads' ),
382
+ 'href' => admin_url( 'edit.php?post_type=wp-call-to-action&page=wp_cta_manage_templates' ),
383
+ 'meta' => array( 'target' => '', 'title' => __( 'Call to Action Templates', 'leads' ) )
384
+ );
385
+ }
386
+
387
+ return $menu_items;
388
+ }
389
+
390
+ function load_settings( $menu_items )
391
+ {
392
+ $settings_key = 'inbound-settings';
393
+
394
+ /* 1 - Global Settings */
395
+ $menu_items[ $settings_key ] = array(
396
+ 'parent' => self::$inboundnow_menu_key,
397
+ 'title' => __( 'Global Settings', 'leads' ),
398
+ 'href' => "",
399
+ 'meta' => array( 'target' => '', 'title' => _x( 'Manage Settings', 'leads' ) )
400
+ );
401
+
402
+ /* 1.1 - Call to Action Settings */
403
+ if (self::$load_callstoaction) {
404
+ $menu_items['inbound-ctasettings'] = array(
405
+ 'parent' => $settings_key,
406
+ 'title' => __( 'Call to Action Settings', 'leads' ),
407
+ 'href' => admin_url( 'edit.php?post_type=wp-call-to-action&page=wp_cta_global_settings' ),
408
+ 'meta' => array( 'target' => '', 'title' => __( 'Call to Action Settings', 'leads' ) )
409
+ );
410
+ }
411
+
412
+ if (self::$load_landingpages) {
413
+ $menu_items['inbound-landingpagesettings'] = array(
414
+ 'parent' => $settings_key,
415
+ 'title' => __( 'Landing Page Settings', 'leads' ),
416
+ 'href' => admin_url( 'edit.php?post_type=landing-page&page=lp_global_settings' ),
417
+ 'meta' => array( 'target' => '', 'title' => __( 'Landing Page Settings', 'leads' ) )
418
+ );
419
+ }
420
+
421
+ if (self::$load_leads) {
422
+ $menu_items['inbound-leadssettings'] = array(
423
+ 'parent' => $settings_key,
424
+ 'title' => __( 'Lead Settings', 'leads' ),
425
+ 'href' => admin_url( 'edit.php?post_type=wp-lead&page=wpleads_global_settings' ),
426
+ 'meta' => array( 'target' => '', 'title' => __( 'Lead Settings', 'leads' ) )
427
+ );
428
+ }
429
+
430
+ return $menu_items;
431
+ }
432
+
433
+ function load_analytics( $menu_items )
434
+ {
435
+ $analytics_key = 'inbound-analytics';
436
+
437
+ /* 1 - Analytics */
438
+ $menu_items[ $analytics_key ] = array(
439
+ 'parent' => self::$inboundnow_menu_key,
440
+ 'title' => __( 'Analytics (coming soon)', 'leads' ),
441
+ 'href' => '#',
442
+ 'meta' => array( 'target' => '', 'title' => __( 'Analytics (coming soon)', 'leads' ) )
443
+ );
444
+
445
+ return $menu_items;
446
+ }
447
+
448
+ function load_seo( $menu_items )
449
+ {
450
+ $seo_key = 'inbound-seo';
451
+
452
+ if (function_exists( 'is_plugin_active' ) && is_plugin_active('wordpress-seo/wp-seo.php')) {
453
+ $menu_items[ $seo_key ] = array(
454
+ 'parent' => self::$inboundnow_menu_key,
455
+ 'title' => __( 'SEO by Yoast', 'leads' ),
456
+ 'href' => admin_url( 'admin.php?page=wpseo_dashboard' ),
457
+ 'meta' => array( 'target' => '', 'title' => __( 'Manage SEO Settings', 'leads' ) )
458
+ );
459
+ }
460
+
461
+ return $menu_items;
462
+ }
463
+
464
+ function load_support( $secondary_menu_items )
465
+ {
466
+ $support_key = 'inbound-support';
467
+
468
+ /* 1 - Support Form */
469
+ $secondary_menu_items[ $support_key ] = array(
470
+ 'parent' => self::$inboundnow_menu_secondary_group_key,
471
+ 'title' => __( 'Support Forum', 'leads' ),
472
+ 'href' => 'https://www.inboundnow.com/support/',
473
+ 'meta' => array( 'target' => '_blank' , 'title' => __( 'Support Forum', 'leads' ) )
474
+ );
475
+
476
+ /* 1 - Documentation */
477
+ $secondary_menu_items['inbound-docs'] = array(
478
+ 'parent' => self::$inboundnow_menu_secondary_group_key,
479
+ 'title' => __( 'Documentation', 'leads' ),
480
+ 'href' => 'http://docs.inboundnow.com/',
481
+ 'meta' => array( 'title' => __( 'Documentation', 'leads' ) )
482
+ );
483
+
484
+ /* 1 - Doc Search */
485
+ $search_docs_text = __( 'Search Docs', 'leads' );
486
+
487
+ $secondary_menu_items['inbound-docs-searchform'] = array(
488
+ 'parent' => self::$inboundnow_menu_secondary_group_key,
489
+ 'title' => '<form method="get" id="inbound-menu-form" action="http://www.inboundnow.com/support/search/?action=bbp-search-request" class=" " target="_blank">
490
+ <input id="search-inbound-menu" type="text" placeholder="' . $search_docs_text . '" onblur="this.value=(this.value==\'\') ? \'' . $search_docs_text . '\' : this.value;" onfocus="this.value=(this.value==\'' . $search_docs_text . '\') ? \'\' : this.value;" value="' . $search_docs_text . '" name="bbp_search" value="' . esc_attr( 'Search Docs', 'leads' ) . '" class="text inbound-search-input" />
491
+ <input type="hidden" name="post_type[]" value="docs" />
492
+ <input type="hidden" name="post_type[]" value="page" />' . self::$go_button,
493
+ 'href' => false,
494
+ 'meta' => array( 'target' => '', 'title' => _x( 'Search Docs', 'Translators: For the tooltip', 'leads' ) )
495
+ );
496
+
497
+ return $secondary_menu_items;
498
+ }
499
+
500
+ function load_inbound_hq( $secondary_menu_items )
501
+ {
502
+ $hq_key = 'inbound-hq';
503
+
504
+ /* 1 - Inbound Now Plugin HQ */
505
+ $secondary_menu_items[ $hq_key ] = array(
506
+ 'parent' => self::$inboundnow_menu_secondary_group_key,
507
+ 'title' => __( 'Inbound Now Plugin HQ', 'leads' ),
508
+ 'href' => 'https://www.inboundnow.com/',
509
+ 'meta' => array( 'title' => __( 'Inbound Now Plugin HQ', 'leads' ) )
510
+ );
511
+
512
+ /* 1.1 - GitHub Link */
513
+ $secondary_menu_items['inbound-sites-dev'] = array(
514
+ 'parent' => $hq_key,
515
+ 'title' => __( 'GitHub Repository Developer Center', 'leads' ),
516
+ 'href' => 'https://github.com/inboundnow',
517
+ 'meta' => array( 'title' => __( 'GitHub Repository Developer Center', 'leads' ) )
518
+ );
519
+
520
+ /* 1.2 - Offical Blog */
521
+ $secondary_menu_items['inbound-sites-blog'] = array(
522
+ 'parent' => $hq_key,
523
+ 'title' => __( 'Official Blog', 'leads' ),
524
+ 'href' => 'https://www.inboundnow.com/blog/',
525
+ 'meta' => array( 'title' => __( 'Official Blog', 'leads' ) )
526
+ );
527
+
528
+ /* 1.3 - My Account */
529
+ $secondary_menu_items['inboundsitesaccount'] = array(
530
+ 'parent' => $hq_key,
531
+ 'title' => __( 'My Account', 'leads' ),
532
+ 'href' => 'https://www.inboundnow.com/marketplace/account/',
533
+ 'meta' => array( 'title' => __( 'My Account', 'leads' ) )
534
+ );
535
+
536
+ /* 1.3.1 - Purchase History */
537
+ $secondary_menu_items['inboundsitesaccount-history'] = array(
538
+ 'parent' => 'inboundsitesaccount',
539
+ 'title' => __( 'Purchase History', 'leads' ),
540
+ 'href' => 'https://www.inboundnow.com/marketplace/account/purchase-history/',
541
+ 'meta' => array( 'title' => __( 'Purchase History', 'leads' ) )
542
+ );
543
+
544
+ return $secondary_menu_items;
545
+ }
546
+
547
+ function load_debug( $secondary_menu_items )
548
+ {
549
+ $debug_key = 'inbound-debug';
550
+
551
+ /* 1 - Debug Tools */
552
+ $secondary_menu_items[ $debug_key ] = array(
553
+ 'parent' => self::$inboundnow_menu_secondary_group_key,
554
+ 'title' => __( '<span style="color:#fff;font-size: 13px;margin-top: -1px;display: inline-block;">Debug Tools</span>', 'leads' ),
555
+ 'href' => "#",
556
+ 'meta' => ""
557
+ );
558
+
559
+ /* 1.1 - 1.2 - Link Setup */
560
+ $actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
561
+
562
+ $param = (preg_match("/\?/", $actual_link)) ? "&" : '?';
563
+ if (preg_match("/inbound-dequeue-scripts/", $actual_link)) {
564
+ $actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
565
+ } else {
566
+ $actual_link = $actual_link . $param .'inbound-dequeue-scripts';
567
+ }
568
+
569
+ $actual_link_two = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
570
+ $param_two = (preg_match("/\?/", $actual_link_two)) ? "&" : '?';
571
+ if (preg_match("/inbound_js/", $actual_link_two)) {
572
+ $actual_link_two = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
573
+ } else {
574
+ $actual_link_two = $actual_link_two . $param_two .'inbound_js';
575
+ }
576
+
577
+ /* 1.1 - Check for JS Errors */
578
+ $secondary_menu_items['inbound-debug-checkjs'] = array(
579
+ 'parent' => $debug_key,
580
+ 'title' => __( 'Check for Javascript Errors', 'leads' ),
581
+ 'href' => $actual_link_two,
582
+ 'meta' => array( 'title' => __( 'Click here to check javascript errors on this page', 'leads' ) )
583
+ );
584
+
585
+ /* 1.2 - Check for JS Errors */
586
+ $secondary_menu_items['inbound-debug-turnoffscripts'] = array(
587
+ 'parent' => $debug_key,
588
+ 'title' => __( 'Remove Javascript Errors', 'leads' ),
589
+ 'href' => $actual_link,
590
+ 'meta' => array( 'title' => __( 'Click here to remove broken javascript to fix issues', 'leads' ) )
591
+ );
592
+
593
+ return $secondary_menu_items;
594
+ }
595
+ }
596
+
597
+ $InboundMenu = new InboundMenu();
598
  }
 
 
 
 
 
 
shared/extend/inboundnow.extend.php ADDED
@@ -0,0 +1,348 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * License handler for InboundNow Packaged Extensions
4
+ *
5
+ * This class should simplify the process of adding license information
6
+ * to inboundnow multi-purposed extensions.
7
+ *
8
+ * @author Hudson Atwell
9
+ * @version 1.1
10
+ */
11
+
12
+
13
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
14
+
15
+
16
+ if ( ! defined( 'INBOUNDNOW_STORE_URL' ) )
17
+ define('INBOUNDNOW_STORE_URL','http://www.inboundnow.com/');
18
+
19
+ if ( ! class_exists( 'INBOUNDNOW_EXTEND' ) )
20
+ {
21
+
22
+ class INBOUNDNOW_EXTEND {
23
+
24
+ private $plugin_basename;
25
+ private $plugin_slug;
26
+ private $plugin_label;
27
+ private $plugin_version;
28
+ private $remote_download_slug;
29
+ private $master_license_key;
30
+ private $remote_api_url;
31
+
32
+ function __construct( $plugin_file , $plugin_label , $plugin_slug , $plugin_version , $remote_download_slug )
33
+ {
34
+ $this->plugin_basename = plugin_basename( $plugin_file );
35
+ $this->plugin_slug = $plugin_slug;
36
+ $this->plugin_label = $plugin_label;
37
+ $this->plugin_version = $plugin_version;
38
+ $this->remote_download_slug = $remote_download_slug;
39
+ $this->master_license_key = get_option('inboundnow_master_license_key' , '');
40
+ $this->remote_api_url = INBOUNDNOW_STORE_URL;
41
+
42
+ $this->hooks();
43
+ }
44
+
45
+
46
+ private function hooks() {
47
+
48
+ /* Add licenses key to global settings array */
49
+ add_filter( 'lp_define_global_settings', array( $this, 'lp_settings' ), 2 );
50
+ add_filter( 'wp_cta_define_global_settings', array( $this, 'wp_cta_settings' ), 2 );
51
+ add_filter( 'wpleads_define_global_settings', array( $this, 'wpleads_settings' ), 2 );
52
+
53
+ /* save license key data / activate license keys */
54
+ if (is_admin())
55
+ $this->save_license_field();
56
+
57
+ /* render license key settings in license keys tab */
58
+ add_action('lp_render_global_settings', array( $this, 'display_license_field' ) );
59
+ add_action('wpleads_render_global_settings', array( $this, 'display_license_field' ) );
60
+ add_action('wp_cta_render_global_settings', array( $this, 'display_license_field' ) );
61
+
62
+ /* add automatic updates to plugin */
63
+ //update_option('_site_transient_update_plugins',''); //uncomment to force upload update check
64
+ add_filter( 'pre_set_site_transient_update_plugins', array( $this, 'pre_set_site_transient_update_plugins_filter' ) );
65
+ add_filter( 'plugins_api', array( $this, 'plugins_api_filter' ), 10, 3);
66
+
67
+ }
68
+
69
+ public function lp_settings( $lp_global_settings ) {
70
+ $lp_global_settings['lp-license-keys']['settings'][$this->plugin_slug] = array(
71
+ 'id' => $this->plugin_slug,
72
+ 'slug' => $this->plugin_slug,
73
+ 'remote_download_slug' => $this->remote_download_slug,
74
+ 'label' => sprintf( '%1$s' , $this->plugin_label ),
75
+ 'description' => 'Head to http://www.inboundnow.com/ to retrieve your license key for '.$this->plugin_label,
76
+ 'type' => 'inboundnow-license-key',
77
+ 'default' => $this->master_license_key
78
+ );
79
+
80
+ return $lp_global_settings;
81
+ }
82
+
83
+ public function wp_cta_settings( $wp_cta_global_settings ) {
84
+
85
+ $wp_cta_global_settings['wp-cta-license-keys']['settings'][$this->plugin_slug] = array(
86
+ 'id' => $this->plugin_slug,
87
+ 'slug' => $this->plugin_slug,
88
+ 'remote_download_slug' => $this->remote_download_slug,
89
+ 'label' => sprintf( '%1$s' , $this->plugin_label ),
90
+ 'description' => 'Head to http://www.inboundnow.com/ to retrieve your license key for '.$this->plugin_label,
91
+ 'type' => 'inboundnow-license-key',
92
+ 'default' => ''
93
+ );
94
+
95
+ return $wp_cta_global_settings;
96
+ }
97
+
98
+
99
+ public function wpleads_settings( $wpleads_global_settings ) {
100
+ $wpleads_global_settings['wpleads-license-keys']['label'] = 'License Keys';
101
+ $wpleads_global_settings['wpleads-license-keys']['settings'][$this->plugin_slug] = array(
102
+ 'id' => $this->plugin_slug,
103
+ 'slug' => $this->plugin_slug,
104
+ 'remote_download_slug' => $this->remote_download_slug,
105
+ 'label' => sprintf( '%1$s' , $this->plugin_label ),
106
+ 'description' => 'Head to http://www.inboundnow.com/ to retrieve your license key for '.$this->plugin_label,
107
+ 'type' => 'inboundnow-license-key',
108
+ 'default' => $this->master_license_key
109
+ );
110
+
111
+ //print_r($lp_global_settings);exit;
112
+ return $wpleads_global_settings;
113
+ }
114
+
115
+
116
+
117
+ function display_license_field($field)
118
+ {
119
+ if ( $field['type']=='inboundnow-license-key' && ($field['slug']==$this->plugin_slug) )
120
+ {
121
+
122
+ $field['id'] = "inboundnow-license-keys-".$field['slug'];
123
+ $field['value'] = get_option('inboundnow_master_license_key' , '');
124
+
125
+ echo '<input type="hidden" name="'.$field['id'].'" id="'.$field['id'].'" value="'.$field['value'].'" size="30" />';
126
+
127
+
128
+ switch ($_GET['post_type']){
129
+
130
+ case "landing-page":
131
+ $prefix = "lp_";
132
+ break;
133
+ case "wp-lead":
134
+ $prefix = "wpleads_";
135
+ break;
136
+ case "wp-call-to-action":
137
+ $prefix = "wp_cta_";
138
+ break;
139
+
140
+ }
141
+ //echo here;exit;
142
+ $license_status = $this->check_license_status($field);
143
+
144
+ echo '<input type="hidden" name="inboundnow_license_status-'.$field['slug'].'" id="'.$field['id'].'" value="'.$license_status.'" size="30" />';
145
+
146
+
147
+ if ($license_status=='valid')
148
+ {
149
+ echo '<div class="'.$prefix.'license_status_valid">Enabled</div>';
150
+ }
151
+ else
152
+ {
153
+ echo '<div class="'.$prefix.'license_status_invalid">Disabled</div>';
154
+ }
155
+
156
+ echo '<div class="'.$prefix.'tooltip tool_text" title="'.$field['description'].'"></div>';
157
+ }
158
+ }
159
+
160
+
161
+
162
+ public function check_license_status($field)
163
+ {
164
+
165
+ $date = date("Y-m-d");
166
+ $cache_date = get_option($field['id']."-expire");
167
+ $license_status = get_option('inboundnow_license_status_'.$this->plugin_slug);
168
+
169
+ /*
170
+ echo "date: $date <br>";
171
+ echo "cache date: $cache_date <br>";
172
+ echo "license status: $license_status <br>";
173
+ echo "license key: ".$field['value'];
174
+ echo "<br>";
175
+ */
176
+
177
+ if (isset($cache_date)&&($date<$cache_date)&&$license_status=='valid')
178
+ {
179
+ return "valid";
180
+ }
181
+
182
+ $api_params = array(
183
+ 'edd_action' => 'check_license',
184
+ 'license' => $field['value'],
185
+ 'item_name' => urlencode( $this->remote_download_slug ) ,
186
+ 'cache_bust'=> substr(md5(rand()),0,7)
187
+ );
188
+
189
+ //print_r($api_params);
190
+ //echo '<br>';
191
+
192
+ // Call the custom API.
193
+ $response = wp_remote_get( add_query_arg( $api_params, $this->remote_api_url ), array( 'timeout' => 15, 'sslverify' => false ) );
194
+ //print_r($response['body']);exit;
195
+
196
+ if ( is_wp_error( $response ) )
197
+ return false;
198
+
199
+ $license_data = json_decode( wp_remote_retrieve_body( $response ) );
200
+ //print_r($license_data);exit;
201
+
202
+ if( $license_data->license == 'valid' ) {
203
+ $newDate = date('Y-m-d', strtotime($license_data->expires));
204
+ update_option($field['id']."-expire", $newDate);
205
+ return 'valid';
206
+ // this license is still valid
207
+ } else {
208
+ return 'invalid';
209
+ }
210
+ }
211
+
212
+
213
+
214
+ /* SAVE & ACTIVATE LICENSE & CHECK STATUS OF KEYS */
215
+
216
+
217
+ public function save_license_field()
218
+ {
219
+
220
+ if (!isset($_POST['inboundnow_master_license_key']))
221
+ return;
222
+
223
+ $field_id = "inboundnow-license-keys-".$this->plugin_slug;
224
+
225
+ $license_status = get_option('inboundnow_license_status_'.$this->plugin_slug );
226
+
227
+ $master_license_key = $_POST['inboundnow_master_license_key'];
228
+
229
+ /*
230
+ echo "license status:".$license_status;
231
+ echo "<br>";
232
+ echo "new_key:".$master_license_key;
233
+ echo "<br>";
234
+ echo "old_key:".$this->master_license_key;
235
+ echo "<br>";
236
+ echo "plugin_slug:".$this->plugin_slug;
237
+ echo "<hr>";
238
+ */
239
+
240
+ if ($license_status=='valid' && $master_license_key == $this->master_license_key )
241
+ return;
242
+
243
+ if ( $master_license_key )
244
+ {
245
+ update_option($field_id ,$master_license_key);
246
+
247
+ // data to send in our API request
248
+ $api_params = array(
249
+ 'edd_action'=> 'activate_license',
250
+ 'license' => $master_license_key,
251
+ 'item_name' => $this->remote_download_slug ,
252
+ 'cache_bust'=> substr(md5(rand()),0,7)
253
+ );
254
+ //print_r($api_params);
255
+
256
+
257
+ // Call the custom API.
258
+ $response = wp_remote_get( add_query_arg( $api_params, $this->remote_api_url ), array( 'timeout' => 30, 'sslverify' => false ) );
259
+ //echo $response['body'];
260
+ //echo "<hr>";
261
+
262
+ // decode the license data
263
+ $license_data = json_decode( wp_remote_retrieve_body( $response ) );
264
+
265
+ // $license_data->license will be either "active" or "inactive"
266
+ $license_status = update_option('inboundnow_license_status_'.$this->plugin_slug, $license_data->license);
267
+
268
+ }
269
+ elseif ( empty($master_license_key) )
270
+ {
271
+ update_option($field_id , '' );
272
+ update_option('inboundnow_license_status_'.$this->plugin_slug, 'inactive');
273
+ }
274
+ }
275
+ /**
276
+ * Check for Updates at the defined API endpoint and modify the update array.
277
+ *
278
+ * This function dives into the update api just when Wordpress creates its update array,
279
+ * then adds a custom API call and injects the custom plugin data retrieved from the API.
280
+ * It is reassembled from parts of the native Wordpress plugin update code.
281
+ * See wp-includes/update.php line 121 for the original wp_update_plugins() function.
282
+ *
283
+ * @uses api_request()
284
+ *
285
+ * @param array $_transient_data Update array build by Wordpress.
286
+ * @return array Modified update array with custom plugin data.
287
+ */
288
+
289
+ public function pre_set_site_transient_update_plugins_filter( $_transient_data )
290
+ {
291
+
292
+ if( empty( $_transient_data ) ) return $_transient_data;
293
+
294
+ $to_send = array( 'slug' => $this->plugin_slug );
295
+
296
+ $api_response = $this->api_request( );
297
+
298
+
299
+ if( false !== $api_response && is_object( $api_response ) )
300
+ {
301
+ if( version_compare( $this->plugin_version, $api_response->new_version, '<' ) )
302
+ $_transient_data->response[$this->plugin_basename] = $api_response;
303
+ }
304
+
305
+ return $_transient_data;
306
+ }
307
+
308
+
309
+ /** Updates information on the "View version x.x details" page with custom data. */
310
+ public function plugins_api_filter( $_data, $_action = '', $_args = null ) {
311
+
312
+ if ( ( $_action != 'plugin_information' ) || !isset( $_args->slug ) || ( $_args->slug != $this->plugin_slug ) ) return $_data;
313
+
314
+ $api_response = $this->api_request();
315
+
316
+ if ( false !== $api_response ) $_data = $api_response;
317
+
318
+ return $_data;
319
+ }
320
+
321
+ /*** Calls the API and, if successfull, returns the object delivered by the API. */
322
+ public function api_request( ) {
323
+
324
+ $api_params = array(
325
+ 'edd_action' => 'get_version',
326
+ 'license' => $this->master_license_key,
327
+ 'name' => $this->remote_download_slug,
328
+ 'slug' => $this->plugin_slug
329
+ );
330
+
331
+ //print_r($api_params);
332
+ // echo "<hr>";
333
+
334
+ $request = wp_remote_post( $this->remote_api_url, array( 'timeout' => 15, 'sslverify' => false, 'body' => $api_params ) );
335
+
336
+
337
+ if ( !is_wp_error( $request ) ):
338
+ $request = json_decode( wp_remote_retrieve_body( $request ) );
339
+ if( $request )
340
+ $request->sections = maybe_unserialize( $request->sections );
341
+ return $request;
342
+ else:
343
+ return false;
344
+ endif;
345
+ }
346
+
347
+ }
348
+ } // end class_exists check
shared/extend/inboundnow.extension-licensing.php ADDED
@@ -0,0 +1,293 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * License handler for InboundNow Packaged Extensions
4
+ *
5
+ * This class should simplify the process of adding license information
6
+ * to inboundnow multi-purposed extensions.
7
+ *
8
+ * @author Hudson Atwell
9
+ * @version 1.1
10
+ */
11
+
12
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
13
+
14
+ if ( ! defined( 'INBOUNDNOW_STORE_URL' ) )
15
+ define('INBOUNDNOW_STORE_URL','http://www.inboundnow.com/');
16
+
17
+ if ( ! class_exists( 'INBOUNDNOW_EXTENSION_LICENSE' ) ) :
18
+
19
+ /**
20
+ * LP_EXTENSION_LICENSE Class
21
+ */
22
+ class INBOUNDNOW_EXTENSION_LICENSE {
23
+ private $item_slug;
24
+ private $item_shortname;
25
+ private $version;
26
+ private $master_license_key;
27
+
28
+ /**
29
+ * Class constructor
30
+ *
31
+ * @param string $_file
32
+ * @param string $_item_slug
33
+ * @param string $_version
34
+ * @param string $_author
35
+ * @param string $_optname
36
+ * @param string $_api_url
37
+ */
38
+ function __construct( $_item_label, $_item_slug ) {
39
+
40
+ $this->item_label = $_item_label;
41
+ $this->item_slug = $_item_slug;
42
+ $this->master_license_key = get_option('inboundnow_master_license_key' , '');
43
+
44
+ // Setup hooks
45
+ $this->hooks();
46
+ }
47
+
48
+ /**
49
+ * Setup hooks
50
+ *
51
+ * @access private
52
+ * @return void
53
+ */
54
+
55
+ private function hooks() {
56
+ // Register settings
57
+ add_filter( 'lp_define_global_settings', array( $this, 'lp_settings' ), 2 );
58
+ add_filter( 'wp_cta_define_global_settings', array( $this, 'wp_cta_settings' ), 2 );
59
+ add_filter( 'wpleads_define_global_settings', array( $this, 'wpleads_settings' ), 2 );
60
+
61
+ /**
62
+ * HOOKS : display license field in global settings area
63
+ */
64
+
65
+ add_action('lp_render_global_settings', array( $this, 'display_license_field'));
66
+ add_action('wpleads_render_global_settings', array( $this, 'display_license_field'));
67
+ add_action('wp_cta_render_global_settings', array( $this, 'display_license_field'));
68
+
69
+
70
+ /**
71
+ * HOOKS : display license field in global settings area
72
+ */
73
+
74
+ add_action('lp_save_global_settings', array( $this, 'save_license_field'));
75
+ add_action('wpleads_save_global_settings', array( $this, 'save_license_field'));
76
+ add_action('wp_cta_save_global_settings', array( $this, 'save_license_field'));
77
+
78
+ }
79
+
80
+ /**
81
+ * Add license field to settings
82
+ *
83
+ * @access public
84
+ * @param array $settings
85
+ * @return array
86
+ */
87
+ public function lp_settings( $lp_global_settings ) {
88
+ $lp_global_settings['lp-license-keys']['settings'][] = array(
89
+
90
+ 'id' => $this->item_slug,
91
+ 'slug' => $this->item_slug,
92
+ 'label' => sprintf( '%1$s' , $this->item_label ),
93
+ 'description' => 'Head to http://www.inboundnow.com/ to retrieve your license key for '.$this->item_label,
94
+ 'type' => 'inboundnow-license-key',
95
+ 'default' => '',
96
+ );
97
+
98
+ return $lp_global_settings;
99
+ }
100
+
101
+ /**
102
+ * Add license field to settings
103
+ *
104
+ * @access public
105
+ * @param array $settings
106
+ * @return array
107
+ */
108
+ public function wp_cta_settings( $wp_cta_global_settings ) {
109
+
110
+ $wp_cta_global_settings['wp-cta-license-keys']['settings'][] = array(
111
+
112
+ 'id' => $this->item_slug,
113
+ 'slug' => $this->item_slug,
114
+ 'label' => sprintf( '%1$s' , $this->item_label ),
115
+ 'description' => 'Head to http://www.inboundnow.com/ to retrieve your license key for '. $this->item_label ,
116
+ 'type' => 'inboundnow-license-key',
117
+ 'default' => '',
118
+ );
119
+
120
+ return $wp_cta_global_settings;
121
+ }
122
+
123
+ /**
124
+ * Add license field to settings
125
+ *
126
+ * @access public
127
+ * @param array $settings
128
+ * @return array
129
+ */
130
+ public function wpleads_settings( $wpleads_global_settings ) {
131
+ $wpleads_global_settings['wpleads-license-keys']['label'] = 'License Keys';
132
+ $wpleads_global_settings['wpleads-license-keys']['settings'][] = array(
133
+
134
+ 'id' => $this->item_slug,
135
+ 'slug' => $this->item_slug,
136
+ 'label' => sprintf( '%1$s' , $this->item_label ),
137
+ 'description' => 'Head to http://www.inboundnow.com/ to retrieve your license key for'. $this->item_label,
138
+ 'type' => 'inboundnow-license-key',
139
+ 'default' => '',
140
+ );
141
+
142
+ //print_r($lp_global_settings);exit;
143
+ return $wpleads_global_settings;
144
+ }
145
+
146
+
147
+
148
+ public function display_license_field($field)
149
+ {
150
+ if ( $field['type']=='inboundnow-license-key' && ($field['slug']==$this->item_slug) )
151
+ {
152
+
153
+ $field['id'] = "inboundnow-license-keys-".$field['slug'];
154
+
155
+ $field['value'] = get_option($field['id']);
156
+
157
+ switch ($_GET['post_type']){
158
+
159
+ case "landing-page":
160
+ $prefix = "lp_";
161
+ break;
162
+ case "wp-lead":
163
+ $prefix = "wpleads_";
164
+ break;
165
+ case "wp-call-to-action":
166
+ $prefix = "wp_cta_";
167
+ break;
168
+
169
+ }
170
+ //echo here;exit;
171
+ $license_status = $this->check_license_status($field);
172
+ //echo $license_status;exit;
173
+ echo '<input type="hidden" name="inboundnow_license_status-'.$field['slug'].'" id="'.$field['id'].'" value="'.$license_status.'" size="30" />
174
+ <input type="text" name="'.$field['id'].'" id="'.$field['id'].'" value="'.$field['value'].'" size="30" />
175
+ <div class="'.$prefix.'tooltip tool_text" title="'.$field['description'].'"></div>';
176
+
177
+ if ($license_status=='valid')
178
+ {
179
+ echo '<div class="'.$prefix.'license_status_valid">Valid</div>';
180
+ }
181
+ else
182
+ {
183
+ echo '<div class="'.$prefix.'license_status_invalid">Invalid</div>';
184
+ }
185
+ }
186
+ }
187
+
188
+
189
+
190
+ function save_license_field($field)
191
+ {
192
+ if ($field['type']=='inboundnow-license-key')
193
+ {
194
+ //echo $field['id'].":".$_POST['main-landing-page-auto-format-forms']."<br>";
195
+ $field['id'] = "inboundnow-license-keys-".$field['slug'];
196
+ $field['old_value'] = get_option($field['id'] );
197
+
198
+ (isset($_POST[$field['id'] ]))? $field['new_value'] = $_POST[$field['id'] ] : $field['new_value'] = null;
199
+
200
+ if ((isset($field['new_value']) && $field['new_value'] !== $field['old_value'] ) || !isset($field['old_value']) )
201
+ {
202
+ //echo $field['id'];exit;
203
+ $bool = update_option($field['id'],$field['new_value']);
204
+
205
+
206
+ // data to send in our API request
207
+ $api_params = array(
208
+ 'edd_action'=> 'activate_license',
209
+ 'license' => $field['new_value'],
210
+ 'item_name' => $field['slug'] ,
211
+ 'cache_bust'=> substr(md5(rand()),0,7)
212
+ );
213
+ //print_r($api_params);
214
+
215
+ // Call the custom API.
216
+ $response = wp_remote_get( add_query_arg( $api_params, INBOUNDNOW_STORE_URL ), array( 'timeout' => 30, 'sslverify' => false ) );
217
+ //var_dump($response);
218
+
219
+ // make sure the response came back okay
220
+ if ( is_wp_error( $response ) )
221
+ $_SESSION['license_error_'. $field['slug']] = $response['body'];
222
+
223
+ // decode the license data
224
+ $license_data = json_decode( wp_remote_retrieve_body( $response ) );
225
+
226
+
227
+ // $license_data->license will be either "active" or "inactive"
228
+ $license_status = update_option('inboundnow-license_status-'.$field['slug'], $license_data->license);
229
+
230
+ }
231
+ elseif ('' == $field['new_value'] )
232
+ {
233
+ if ($this->master_license_key)
234
+ {
235
+ $bool = update_option($field['id'], $this->master_license_key );
236
+ }
237
+ else
238
+ {
239
+ update_option($field['id'], '' );
240
+ }
241
+ }
242
+ }
243
+ }
244
+
245
+
246
+ /**
247
+ * FUNCTIONS : checks the status of the license key
248
+ */
249
+
250
+ function check_license_status($field)
251
+ {
252
+ //print_r($field);exit;
253
+ $date = date("Y-m-d");
254
+ $cache_date = get_option($field['id']."-expire");
255
+ $license_status = get_option($field['id']);
256
+
257
+ if (isset($cache_date)&&($date<$cache_date)&&$license_status=='valid')
258
+ {
259
+ return "valid";
260
+ }
261
+
262
+ $license_key = get_option($field['id']);
263
+
264
+ $api_params = array(
265
+ 'edd_action' => 'check_license',
266
+ 'license' => $license_key,
267
+ 'item_name' => urlencode( $field['slug'] ) ,
268
+ 'cache_bust'=> substr(md5(rand()),0,7)
269
+ );
270
+ //print_r($api_params);
271
+
272
+ // Call the custom API.
273
+ $response = wp_remote_get( add_query_arg( $api_params, INBOUNDNOW_STORE_URL ), array( 'timeout' => 15, 'sslverify' => false ) );
274
+ //print_r($response);
275
+
276
+ if ( is_wp_error( $response ) )
277
+ return false;
278
+
279
+ $license_data = json_decode( wp_remote_retrieve_body( $response ) );
280
+ //echo $license_data;exit;
281
+
282
+ if( $license_data->license == 'valid' ) {
283
+ $newDate = date('Y-m-d', strtotime("+15 days"));
284
+ update_option($field['id']."-expire", $newDate);
285
+ return 'valid';
286
+ // this license is still valid
287
+ } else {
288
+ return 'invalid';
289
+ }
290
+ }
291
+ }
292
+
293
+ endif; // end class_exists check
shared/extend/inboundnow.extension-updating.php ADDED
@@ -0,0 +1,177 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if ( ! class_exists( 'INBOUNDNOW_EXTENSION_UPDATER' ) ) :
4
+
5
+ // uncomment this line for testing
6
+ //set_site_transient( 'update_plugins', null );
7
+
8
+ /**
9
+ * Allows plugins to use their own update API.
10
+ *
11
+ * @author Pippin Williamson, Hudson Atwell
12
+ * @version 1.0
13
+ */
14
+ class INBOUNDNOW_EXTENSION_UPDATER {
15
+ private $api_url = '';
16
+ private $api_data = array();
17
+ private $name = '';
18
+ private $slug = '';
19
+ private $global_license;
20
+
21
+ /**
22
+ * Class constructor.
23
+ *
24
+ * @uses plugin_basename()
25
+ * @uses hook()
26
+ *
27
+ * @param string $_api_url The URL pointing to the custom API endpoint.
28
+ * @param string $_remote_key permalink slug of remote download
29
+ * @param array $_api_data Optional data to send with API calls.
30
+ * @return void
31
+ */
32
+ function __construct( $_api_url, $_remote_key, $_api_data = null ) {
33
+ $this->api_url = trailingslashit( $_api_url );
34
+ $this->api_data = urlencode_deep( $_api_data );
35
+ $this->name = $_api_data['item_name'];
36
+ $this->slug = $_remote_key;
37
+ $this->version = $_api_data['version'];
38
+ $this->global_license = get_option('inboundnow_master_license_key' , '');
39
+
40
+ // Set up hooks.
41
+ $this->hook();
42
+ }
43
+
44
+ /**
45
+ * Set up Wordpress filters to hook into WP's update process.
46
+ *
47
+ * @uses add_filter()
48
+ *
49
+ * @return void
50
+ */
51
+ private function hook() {
52
+ //update_option('_site_transient_update_plugins',''); //uncomment to force upload update check
53
+ add_filter( 'pre_set_site_transient_update_plugins', array( $this, 'pre_set_site_transient_update_plugins_filter' ) );
54
+ add_filter( 'plugins_api', array( $this, 'plugins_api_filter' ), 10, 3);
55
+ //print_r($this);exit;
56
+ }
57
+
58
+ /**
59
+ * Check for Updates at the defined API endpoint and modify the update array.
60
+ *
61
+ * This function dives into the update api just when Wordpress creates its update array,
62
+ * then adds a custom API call and injects the custom plugin data retrieved from the API.
63
+ * It is reassembled from parts of the native Wordpress plugin update code.
64
+ * See wp-includes/update.php line 121 for the original wp_update_plugins() function.
65
+ *
66
+ * @uses api_request()
67
+ *
68
+ * @param array $_transient_data Update array build by Wordpress.
69
+ * @return array Modified update array with custom plugin data.
70
+ */
71
+
72
+ function pre_set_site_transient_update_plugins_filter( $_transient_data ) {
73
+
74
+ //var_dump($_transient_data);
75
+ if( empty( $_transient_data ) ) return $_transient_data;
76
+
77
+ $to_send = array( 'slug' => $this->slug );
78
+
79
+ $api_response = $this->api_request( 'plugin_latest_version', $to_send );
80
+
81
+ /*
82
+ echo $this->name;
83
+ echo "\r\n<br>\r\n";
84
+ echo $this->version;
85
+ print_r($api_response);
86
+ echo "\r\n<hr>\r\n";exit;
87
+ */
88
+
89
+ if( false !== $api_response && is_object( $api_response ) ) {
90
+ if( version_compare( $this->version, $api_response->new_version, '<' ) )
91
+ //echo $this->name;exit;
92
+ $_transient_data->response[$this->name] = $api_response;
93
+ }
94
+
95
+ //echo "<hr>";
96
+ //echo var_dump($_transient_data);
97
+ //exit;
98
+
99
+ return $_transient_data;
100
+ }
101
+
102
+
103
+ /**
104
+ * Updates information on the "View version x.x details" page with custom data.
105
+ *
106
+ * @uses api_request()
107
+ *
108
+ * @param mixed $_data
109
+ * @param string $_action
110
+ * @param object $_args
111
+ * @return object $_data
112
+ */
113
+ function plugins_api_filter( $_data, $_action = '', $_args = null ) {
114
+ //mail('Hudson.atwell@gmail.com','Landing Pages Test - JSON', "hello".$to_send['slug']);
115
+ if ( ( $_action != 'plugin_information' ) || !isset( $_args->slug ) || ( $_args->slug != $this->slug ) ) return $_data;
116
+
117
+ $to_send = array( 'slug' => $this->slug );
118
+ //print_r($to_send);exit;
119
+ $api_response = $this->api_request( 'plugin_information', $to_send );
120
+
121
+ if ( false !== $api_response ) $_data = $api_response;
122
+
123
+ return $_data;
124
+ }
125
+
126
+ /**
127
+ * Calls the API and, if successfull, returns the object delivered by the API.
128
+ *
129
+ * @uses get_bloginfo()
130
+ * @uses wp_remote_post()
131
+ * @uses is_wp_error()
132
+ *
133
+ * @param string $_action The requested action.
134
+ * @param array $_data Parameters for the API action.
135
+ * @return false||object
136
+ */
137
+ private function api_request( $_action, $_data ) {
138
+ //echo 1;exit;
139
+ global $wp_version;
140
+
141
+ $data = array_merge( $this->api_data, $_data );
142
+
143
+ //if( $data['slug'] != $this->slug )
144
+ //return;
145
+
146
+ if (isset($this->global_license))
147
+ $data['license'] = $this->global_license;
148
+
149
+ $api_params = array(
150
+ 'edd_action' => 'get_version',
151
+ 'license' => $data['license'],
152
+ 'name' => $data['item_name'],
153
+ 'slug' => $data['slug'],
154
+ //'author' => $data['author'],
155
+ 'nature' => 'extension',
156
+ );
157
+ $request = wp_remote_post( $this->api_url, array( 'timeout' => 15, 'sslverify' => false, 'body' => $api_params ) );
158
+
159
+ if (strstr( $data['item_name'], 'aweber'))
160
+ {
161
+ //echo $request['body'];exit;
162
+ //print_r( json_decode($request['body'] , true) ) ;
163
+ //echo '<hr>';
164
+ }
165
+
166
+ if ( !is_wp_error( $request ) ):
167
+ $request = json_decode( wp_remote_retrieve_body( $request ) );
168
+ if( $request )
169
+ $request->sections = maybe_unserialize( $request->sections );
170
+ return $request;
171
+ else:
172
+ return false;
173
+ endif;
174
+ }
175
+ }
176
+
177
+ endif;
shared/extend/inboundnow.global-settings.php ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if (!function_exists('inboundnow_add_master_license'))
4
+ {
5
+ /* Add Master License Key Setting*/
6
+ add_filter('lp_define_global_settings', 'inboundnow_add_master_license', 1, 1);
7
+ add_filter('wpleads_define_global_settings', 'inboundnow_add_master_license', 1, 1);
8
+ add_filter('wp_cta_define_global_settings', 'inboundnow_add_master_license', 1, 1);
9
+ function inboundnow_add_master_license($global_settings)
10
+ {
11
+ $key = '';
12
+ switch(current_filter())
13
+ {
14
+ case 'lp_define_global_settings':
15
+ $key = 'lp-license-keys';
16
+ $text_domain = 'landing-pages';
17
+ break;
18
+ case 'wpleads_define_global_settings':
19
+ $key = 'wpleads-license-keys';
20
+ $text_domain = 'leads';
21
+ break;
22
+ case 'wp_cta_define_global_settings':
23
+ $key = 'wp-cta-license-keys';
24
+ $text_domain = 'cta';
25
+ break;
26
+ }
27
+
28
+ $global_settings[$key]['settings'][] = array(
29
+ 'id' => 'extensions-license-keys-master-key-header',
30
+ 'description' => __( "Head to http://www.inboundnow.com/ to retrieve your extension-ready license key." , $text_domain ),
31
+ 'type' => 'header',
32
+ 'default' => '<h3 class="lp_global_settings_header">'. __( 'InboundNow Master Key' , $text_domain ) .'</h3>'
33
+ );
34
+
35
+ $global_settings[$key]['settings'][] = array(
36
+ 'id' => 'inboundnow_master_license_key',
37
+ 'option_name' => 'inboundnow_master_license_key',
38
+ 'label' => __('InboundNow Master License Key' , $text_domain ),
39
+ 'description' => __( "Head to http://www.inboundnow.com/ to retrieve your extension-ready license key." , $text_domain ),
40
+ 'type' => 'text',
41
+ 'default' => ''
42
+ );
43
+
44
+ return $global_settings;
45
+ }
46
+ }
shared/functions/global.leads.cpt.php CHANGED
@@ -3,7 +3,7 @@
3
  * Lead CPT functionality used across plugins
4
  */
5
 
6
- add_action( 'init', 'inbound_leads_register' , 11 );
7
  if (!function_exists('inbound_leads_register')) {
8
  function inbound_leads_register() {
9
 
@@ -31,7 +31,7 @@ function inbound_leads_register() {
31
  'publicly_queryable' => true,
32
  'show_ui' => true,
33
  'query_var' => true,
34
- 'menu_icon' => INBOUND_SHARED_ASSETS_PATH . '/global/images/leads.png',
35
  'capability_type' => 'post',
36
  'hierarchical' => false,
37
  'menu_position' => null,
@@ -44,75 +44,75 @@ function inbound_leads_register() {
44
 
45
  // Lead Lists
46
  $list_labels = array(
47
- 'name' => _x( 'Lead Lists', 'taxonomy general name' ),
48
- 'singular_name' => _x( 'Lead List', 'taxonomy singular name' ),
49
- 'search_items' => __( 'Search Lead Lists' ),
50
- 'popular_items' => __( 'Popular Lead Lists' ),
51
- 'all_items' => __( 'All Lead Lists' ),
52
- 'parent_item' => null,
53
- 'parent_item_colon' => null,
54
- 'edit_item' => __( 'Edit Lead List' ),
55
- 'update_item' => __( 'Update Lead List' ),
56
- 'add_new_item' => __( 'Add New Lead List' ),
57
- 'new_item_name' => __( 'New Lead List' ),
58
- 'separate_items_with_commas' => __( 'Separate Lead Lists with commas' ),
59
- 'add_or_remove_items' => __( 'Add or remove Lead Lists' ),
60
- 'choose_from_most_used' => __( 'Choose from the most used lead List' ),
61
- 'not_found' => __( 'No Lead Lists found.' ),
62
- 'menu_name' => __( 'Lead Lists' ),
63
  );
64
 
65
- $list_args = array(
66
- 'hierarchical' => true,
67
- 'labels' => $list_labels,
68
- 'singular_label' => "List Management",
69
- 'show_ui' => true,
70
- 'show_in_menu' => true,
71
- 'show_in_nav_menus' => true,
72
- 'show_admin_column' => true,
73
- 'query_var' => true,
74
- 'rewrite' => false,
75
- );
76
 
77
- register_taxonomy('wplead_list_category','wp-lead', $list_args );
78
 
79
  // Lead Tags
80
  $labels = array(
81
- 'name' => _x( 'Lead Tags', 'taxonomy general name' ),
82
- 'singular_name' => _x( 'Lead Tag', 'taxonomy singular name' ),
83
- 'search_items' => __( 'Search Lead Tags' ),
84
- 'popular_items' => __( 'Popular Lead Tags' ),
85
- 'all_items' => __( 'All Lead Tags' ),
86
- 'parent_item' => null,
87
- 'parent_item_colon' => null,
88
- 'edit_item' => __( 'Edit Lead Tag' ),
89
- 'update_item' => __( 'Update Lead Tag' ),
90
- 'add_new_item' => __( 'Add New Lead Tag' ),
91
- 'new_item_name' => __( 'New Lead Tag' ),
92
- 'separate_items_with_commas' => __( 'Separate Lead Tags with commas' ),
93
- 'add_or_remove_items' => __( 'Add or remove Lead Tags' ),
94
- 'choose_from_most_used' => __( 'Choose from the most used lead tags' ),
95
- 'not_found' => __( 'No lead tags found.' ),
96
- 'menu_name' => __( 'Lead Tags' ),
97
  );
98
 
99
  $args = array(
100
- 'hierarchical' => false,
101
- 'labels' => $labels,
102
- 'show_ui' => true,
103
- 'show_admin_column' => true,
104
- 'update_count_callback' => '_update_post_term_count',
105
- 'query_var' => true,
106
- 'rewrite' => array( 'slug' => 'lead-tag' ),
107
  );
108
 
109
  register_taxonomy( 'lead-tags', 'wp-lead', $args );
110
 
111
  add_action('admin_menu', 'remove_lead_tag_menu');
112
  function remove_lead_tag_menu() {
113
- global $submenu;
114
- unset($submenu['edit.php?post_type=wp-lead'][16]);
115
- //print_r($submenu); exit;
116
  }
117
  }
118
  }
3
  * Lead CPT functionality used across plugins
4
  */
5
 
6
+ add_action( 'init', 'inbound_leads_register' , 10 );
7
  if (!function_exists('inbound_leads_register')) {
8
  function inbound_leads_register() {
9
 
31
  'publicly_queryable' => true,
32
  'show_ui' => true,
33
  'query_var' => true,
34
+ 'menu_icon' => INBOUND_SHARED_ASSETS . '/global/images/leads.png',
35
  'capability_type' => 'post',
36
  'hierarchical' => false,
37
  'menu_position' => null,
44
 
45
  // Lead Lists
46
  $list_labels = array(
47
+ 'name' => _x( 'Lead Lists', 'taxonomy general name' ),
48
+ 'singular_name' => _x( 'Lead List', 'taxonomy singular name' ),
49
+ 'search_items' => __( 'Search Lead Lists' ),
50
+ 'popular_items' => __( 'Popular Lead Lists' ),
51
+ 'all_items' => __( 'All Lead Lists' ),
52
+ 'parent_item' => null,
53
+ 'parent_item_colon' => null,
54
+ 'edit_item' => __( 'Edit Lead List' ),
55
+ 'update_item' => __( 'Update Lead List' ),
56
+ 'add_new_item' => __( 'Add New Lead List' ),
57
+ 'new_item_name' => __( 'New Lead List' ),
58
+ 'separate_items_with_commas' => __( 'Separate Lead Lists with commas' ),
59
+ 'add_or_remove_items' => __( 'Add or remove Lead Lists' ),
60
+ 'choose_from_most_used' => __( 'Choose from the most used lead List' ),
61
+ 'not_found' => __( 'No Lead Lists found.' ),
62
+ 'menu_name' => __( 'Lead Lists' ),
63
  );
64
 
65
+ $list_args = array(
66
+ 'hierarchical' => true,
67
+ 'labels' => $list_labels,
68
+ 'singular_label' => "List Management",
69
+ 'show_ui' => true,
70
+ 'show_in_menu' => true,
71
+ 'show_in_nav_menus' => true,
72
+ 'show_admin_column' => true,
73
+ 'query_var' => true,
74
+ 'rewrite' => false,
75
+ );
76
 
77
+ register_taxonomy('wplead_list_category','wp-lead', $list_args );
78
 
79
  // Lead Tags
80
  $labels = array(
81
+ 'name' => _x( 'Lead Tags', 'taxonomy general name' ),
82
+ 'singular_name' => _x( 'Lead Tag', 'taxonomy singular name' ),
83
+ 'search_items' => __( 'Search Lead Tags' ),
84
+ 'popular_items' => __( 'Popular Lead Tags' ),
85
+ 'all_items' => __( 'All Lead Tags' ),
86
+ 'parent_item' => null,
87
+ 'parent_item_colon' => null,
88
+ 'edit_item' => __( 'Edit Lead Tag' ),
89
+ 'update_item' => __( 'Update Lead Tag' ),
90
+ 'add_new_item' => __( 'Add New Lead Tag' ),
91
+ 'new_item_name' => __( 'New Lead Tag' ),
92
+ 'separate_items_with_commas' => __( 'Separate Lead Tags with commas' ),
93
+ 'add_or_remove_items' => __( 'Add or remove Lead Tags' ),
94
+ 'choose_from_most_used' => __( 'Choose from the most used lead tags' ),
95
+ 'not_found' => __( 'No lead tags found.' ),
96
+ 'menu_name' => __( 'Lead Tags' ),
97
  );
98
 
99
  $args = array(
100
+ 'hierarchical' => false,
101
+ 'labels' => $labels,
102
+ 'show_ui' => true,
103
+ 'show_admin_column' => true,
104
+ 'update_count_callback' => '_update_post_term_count',
105
+ 'query_var' => true,
106
+ 'rewrite' => array( 'slug' => 'lead-tag' ),
107
  );
108
 
109
  register_taxonomy( 'lead-tags', 'wp-lead', $args );
110
 
111
  add_action('admin_menu', 'remove_lead_tag_menu');
112
  function remove_lead_tag_menu() {
113
+ global $submenu;
114
+ unset($submenu['edit.php?post_type=wp-lead'][16]);
115
+ //print_r($submenu); exit;
116
  }
117
  }
118
  }
shared/inbound-shortcodes/inbound-shortcodes.php CHANGED
@@ -16,8 +16,6 @@ if (!defined('INBOUND_FORMS_BASENAME'))
16
  if (!defined('INBOUND_FORMS_ADMIN'))
17
  define('INBOUND_FORMS_ADMIN', get_bloginfo('url') . "/wp-admin");
18
 
19
- if (!defined('INBOUND_LABEL'))
20
- define( 'INBOUND_LABEL', str_replace( ' ', '_', strtolower( 'Inbound Now' ) ) );
21
 
22
 
23
  require_once( 'shortcodes-includes.php' );
@@ -41,6 +39,9 @@ class InboundShortcodes {
41
  add_shortcode('list', array(__CLASS__, 'inbound_shortcode_list'));
42
  add_shortcode('button', array(__CLASS__, 'inbound_shortcode_button'));
43
  add_shortcode('social_share', array(__CLASS__, 'inbound_shortcode_social_links'));
 
 
 
44
  }
45
 
46
  // Set Consistant File Paths for inbound now plugins
@@ -73,7 +74,7 @@ class InboundShortcodes {
73
  wp_enqueue_script('jquery-ui-sortable' );
74
  wp_enqueue_script('inbound-shortcodes-plugins', $final_path.'shared/inbound-shortcodes/js/shortcodes-plugins.js');
75
 
76
- if (isset($post) && post_type_supports( $post->post_type, 'editor') )
77
  {
78
  wp_enqueue_script('inbound-shortcodes', $final_path.'shared/inbound-shortcodes/js/shortcodes.js');
79
  $form_id = (isset($_GET['post'])) ? $_GET['post'] : '';
@@ -103,7 +104,7 @@ class InboundShortcodes {
103
  array_push($plugins_loaded, "leads");
104
  }
105
 
106
- wp_localize_script( 'inbound-shortcodes-plugins', 'inbound_load', array( 'image_dir' => $final_path.'shared/inbound-shortcodes/', 'inbound_plugins' => $plugins_loaded, 'pop_title' => 'Insert Shortcode' ));
107
 
108
  if (isset($post)&&$post->post_type=='inbound-forms')
109
  {
@@ -125,7 +126,7 @@ class InboundShortcodes {
125
  static function shortcodes_admin_head() { ?>
126
  <script type="text/javascript">
127
  /* <![CDATA[ */
128
- // Load inline scripts var freshthemes_theme_dir = "<?php // echo INBOUND_FORMS; ?>", test = "<?php // _e('Insert Shortcode', INBOUND_LABEL); ?>";
129
  /* ]]> */
130
  </script>
131
  <?php }
@@ -230,6 +231,37 @@ class InboundShortcodes {
230
 
231
  return $button;
232
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
233
  static function inbound_shortcode_social_links( $atts, $content = null ) {
234
  $final_path = INBOUND_FORMS;
235
  extract(shortcode_atts(array(
@@ -641,7 +673,7 @@ class InboundShortcodes {
641
  <tbody style="display:none;">
642
  <tr class="form-row" style="text-align: center;">
643
  <?php if( ! $shortcode->has_child ) : ?><td class="label">&nbsp;</td><?php endif; ?>
644
- <td class="field" style="width:500px;"><a href="#" id="inbound_insert_shortcode" class="button-primary inbound-shortcodes-insert"><?php _e('Insert Shortcode', INBOUND_LABEL); ?></a></td>
645
  </tr>
646
  </tbody>
647
  </table>
@@ -650,10 +682,10 @@ class InboundShortcodes {
650
 
651
  <div id="inbound-shortcodes-preview-wrap">
652
  <div id="inbound-shortcodes-preview-head">
653
- <?php _e('Form Preview', INBOUND_LABEL); ?>
654
  </div>
655
  <?php if( $shortcode->no_preview ) : ?>
656
- <div id="inbound-shortcodes-nopreview"><?php _e('Shortcode has no preview', INBOUND_LABEL); ?></div>
657
  <?php else : ?>
658
  <iframe src='<?php echo $final_path . 'shared/inbound-shortcodes/'; ?>preview.php?sc=&post=<?php echo $_GET['post']; ?>' width="285" scrollbar='true' frameborder="0" id="inbound-shortcodes-preview"></iframe>
659
  <?php endif; ?>
@@ -663,7 +695,7 @@ class InboundShortcodes {
663
 
664
  </div>
665
  <div id="popup-controls">
666
- <a href="#" id="inbound_insert_shortcode_two" class="button-primary inbound-shortcodes-insert-two"><?php _e('Insert Shortcode', INBOUND_LABEL); ?></a>
667
  <a href="#" id="shortcode_cancel" class="button inbound-shortcodes-insert-cancel">Cancel</a>
668
  <a href="#" id="inbound_save_form" style="display:none;" class="button">Save As New Form</a>
669
  </div>
16
  if (!defined('INBOUND_FORMS_ADMIN'))
17
  define('INBOUND_FORMS_ADMIN', get_bloginfo('url') . "/wp-admin");
18
 
 
 
19
 
20
 
21
  require_once( 'shortcodes-includes.php' );
39
  add_shortcode('list', array(__CLASS__, 'inbound_shortcode_list'));
40
  add_shortcode('button', array(__CLASS__, 'inbound_shortcode_button'));
41
  add_shortcode('social_share', array(__CLASS__, 'inbound_shortcode_social_links'));
42
+ add_action('admin_notices', array(__CLASS__, 'inbound_shortcode_prompt'));
43
+ add_action('admin_init', array(__CLASS__, 'inbound_shortcode_prompt_ignore'));
44
+ add_action( 'wp_ajax_inbound_shortcode_prompt_ajax', array(__CLASS__, 'inbound_shortcode_prompt_ajax'));
45
  }
46
 
47
  // Set Consistant File Paths for inbound now plugins
74
  wp_enqueue_script('jquery-ui-sortable' );
75
  wp_enqueue_script('inbound-shortcodes-plugins', $final_path.'shared/inbound-shortcodes/js/shortcodes-plugins.js');
76
 
77
+ if (isset($post) && post_type_supports( $post->post_type, 'editor') || isset($post) && 'wp-call-to-action' === $post->post_type )
78
  {
79
  wp_enqueue_script('inbound-shortcodes', $final_path.'shared/inbound-shortcodes/js/shortcodes.js');
80
  $form_id = (isset($_GET['post'])) ? $_GET['post'] : '';
104
  array_push($plugins_loaded, "leads");
105
  }
106
 
107
+ wp_localize_script( 'inbound-shortcodes-plugins', 'inbound_load', array( 'image_dir' => $final_path.'shared/inbound-shortcodes/', 'inbound_plugins' => $plugins_loaded, 'pop_title' => 'Insert Shortcode' ));
108
 
109
  if (isset($post)&&$post->post_type=='inbound-forms')
110
  {
126
  static function shortcodes_admin_head() { ?>
127
  <script type="text/javascript">
128
  /* <![CDATA[ */
129
+ // Load inline scripts var image_dir = "<?php // echo INBOUND_FORMS; ?>", test = "<?php // _e('Insert Shortcode', 'leads'); ?>";
130
  /* ]]> */
131
  </script>
132
  <?php }
231
 
232
  return $button;
233
  }
234
+ static function inbound_shortcode_prompt($hook) {
235
+ global $pagenow, $current_user, $post;
236
+ $user_id = $current_user->ID;
237
+
238
+ if ( ! get_user_meta($user_id, 'inbound_shortcode_ignore') && ( $pagenow == 'post-new.php' || $pagenow == 'post.php' ) ) {
239
+ $url = $_SERVER['REQUEST_URI'];
240
+ echo '<div class="updated inbound-shortcode-trigger" style="position:relative;">
241
+ <a style="position: absolute; font-size: 13px; top: 0px; right: 30px; color:red;" href="'.$url.'&inbound_shortcode_ignore=0">
242
+ Sounds good! Dismiss this
243
+ </a>
244
+ Looks like you haven\'t clicked the <img style="vertical-align: bottom;" src="'.INBOUND_SHARED_ASSETS.'global/images/shortcodes-blue.png"> button <span style="background:yellow">(highlighted in yellow)</span> in the content editor below. There are some great shortcodes for you to use!
245
+ </div>';
246
+ echo "<style type='text/css'>.mce_InboundShortcodesButton { background-color: yellow; }</style>";
247
+
248
+ }
249
+ }
250
+
251
+ static function inbound_shortcode_prompt_ignore() {
252
+ global $pagenow, $current_user, $post;
253
+ $user_id = $current_user->ID;
254
+ if (( $pagenow == 'post-new.php' || $pagenow == 'post.php' )) {
255
+ if ( isset($_GET['inbound_shortcode_ignore']) && '0' == $_GET['inbound_shortcode_ignore'] ) {
256
+ add_user_meta($user_id, 'inbound_shortcode_ignore', 'true', true);
257
+ }
258
+ }
259
+ }
260
+ static function inbound_shortcode_prompt_ajax() {
261
+ $user_id = (isset($_POST['user_id'])) ? $_POST['user_id'] : 1;
262
+ add_user_meta($user_id, 'inbound_shortcode_ignore', 'true', true);
263
+ }
264
+
265
  static function inbound_shortcode_social_links( $atts, $content = null ) {
266
  $final_path = INBOUND_FORMS;
267
  extract(shortcode_atts(array(
673
  <tbody style="display:none;">
674
  <tr class="form-row" style="text-align: center;">
675
  <?php if( ! $shortcode->has_child ) : ?><td class="label">&nbsp;</td><?php endif; ?>
676
+ <td class="field" style="width:500px;"><a href="#" id="inbound_insert_shortcode" class="button-primary inbound-shortcodes-insert"><?php _e('Insert Shortcode', 'leads'); ?></a></td>
677
  </tr>
678
  </tbody>
679
  </table>
682
 
683
  <div id="inbound-shortcodes-preview-wrap">
684
  <div id="inbound-shortcodes-preview-head">
685
+ <?php _e('Form Preview', 'leads'); ?>
686
  </div>
687
  <?php if( $shortcode->no_preview ) : ?>
688
+ <div id="inbound-shortcodes-nopreview"><?php _e('Shortcode has no preview', 'leads'); ?></div>
689
  <?php else : ?>
690
  <iframe src='<?php echo $final_path . 'shared/inbound-shortcodes/'; ?>preview.php?sc=&post=<?php echo $_GET['post']; ?>' width="285" scrollbar='true' frameborder="0" id="inbound-shortcodes-preview"></iframe>
691
  <?php endif; ?>
695
 
696
  </div>
697
  <div id="popup-controls">
698
+ <a href="#" id="inbound_insert_shortcode_two" class="button-primary inbound-shortcodes-insert-two"><?php _e('Insert Shortcode', 'leads'); ?></a>
699
  <a href="#" id="shortcode_cancel" class="button inbound-shortcodes-insert-cancel">Cancel</a>
700
  <a href="#" id="inbound_save_form" style="display:none;" class="button">Save As New Form</a>
701
  </div>
shared/inbound-shortcodes/inbound-shortcodes.php.orig CHANGED
@@ -16,8 +16,8 @@ if (!defined('INBOUND_FORMS_BASENAME'))
16
  if (!defined('INBOUND_FORMS_ADMIN'))
17
  define('INBOUND_FORMS_ADMIN', get_bloginfo('url') . "/wp-admin");
18
 
19
- if (!defined('INBOUND_LABEL'))
20
- define( 'INBOUND_LABEL', str_replace( ' ', '_', strtolower( 'Inbound Now' ) ) );
21
 
22
 
23
  require_once( 'shortcodes-includes.php' );
@@ -129,7 +129,7 @@ class InboundShortcodes {
129
  static function shortcodes_admin_head() { ?>
130
  <script type="text/javascript">
131
  /* <![CDATA[ */
132
- // Load inline scripts var freshthemes_theme_dir = "<?php // echo INBOUND_FORMS; ?>", test = "<?php // _e('Insert Shortcode', INBOUND_LABEL); ?>";
133
  /* ]]> */
134
  </script>
135
  <?php }
@@ -645,7 +645,7 @@ class InboundShortcodes {
645
  <tbody style="display:none;">
646
  <tr class="form-row" style="text-align: center;">
647
  <?php if( ! $shortcode->has_child ) : ?><td class="label">&nbsp;</td><?php endif; ?>
648
- <td class="field" style="width:500px;"><a href="#" id="inbound_insert_shortcode" class="button-primary inbound-shortcodes-insert"><?php _e('Insert Shortcode', INBOUND_LABEL); ?></a></td>
649
  </tr>
650
  </tbody>
651
  </table>
@@ -654,10 +654,10 @@ class InboundShortcodes {
654
 
655
  <div id="inbound-shortcodes-preview-wrap">
656
  <div id="inbound-shortcodes-preview-head">
657
- <?php _e('Form Preview', INBOUND_LABEL); ?>
658
  </div>
659
  <?php if( $shortcode->no_preview ) : ?>
660
- <div id="inbound-shortcodes-nopreview"><?php _e('Shortcode has no preview', INBOUND_LABEL); ?></div>
661
  <?php else : ?>
662
  <iframe src='<?php echo $final_path . 'shared/inbound-shortcodes/'; ?>preview.php?sc=&post=<?php echo $_GET['post']; ?>' width="285" scrollbar='true' frameborder="0" id="inbound-shortcodes-preview"></iframe>
663
  <?php endif; ?>
@@ -667,7 +667,7 @@ class InboundShortcodes {
667
 
668
  </div>
669
  <div id="popup-controls">
670
- <a href="#" id="inbound_insert_shortcode_two" class="button-primary inbound-shortcodes-insert-two"><?php _e('Insert Shortcode', INBOUND_LABEL); ?></a>
671
  <a href="#" id="shortcode_cancel" class="button inbound-shortcodes-insert-cancel">Cancel</a>
672
  <a href="#" id="inbound_save_form" style="display:none;" class="button">Save As New Form</a>
673
  </div>
16
  if (!defined('INBOUND_FORMS_ADMIN'))
17
  define('INBOUND_FORMS_ADMIN', get_bloginfo('url') . "/wp-admin");
18
 
19
+ if (!defined(''leads''))
20
+ define( ''leads'', str_replace( ' ', '_', strtolower( 'Inbound Now' ) ) );
21
 
22
 
23
  require_once( 'shortcodes-includes.php' );
129
  static function shortcodes_admin_head() { ?>
130
  <script type="text/javascript">
131
  /* <![CDATA[ */
132
+ // Load inline scripts var freshthemes_theme_dir = "<?php // echo INBOUND_FORMS; ?>", test = "<?php // _e('Insert Shortcode', 'leads'); ?>";
133
  /* ]]> */
134
  </script>
135
  <?php }
645
  <tbody style="display:none;">
646
  <tr class="form-row" style="text-align: center;">
647
  <?php if( ! $shortcode->has_child ) : ?><td class="label">&nbsp;</td><?php endif; ?>
648
+ <td class="field" style="width:500px;"><a href="#" id="inbound_insert_shortcode" class="button-primary inbound-shortcodes-insert"><?php _e('Insert Shortcode', 'leads'); ?></a></td>
649
  </tr>
650
  </tbody>
651
  </table>
654
 
655
  <div id="inbound-shortcodes-preview-wrap">
656
  <div id="inbound-shortcodes-preview-head">
657
+ <?php _e('Form Preview', 'leads'); ?>
658
  </div>
659
  <?php if( $shortcode->no_preview ) : ?>
660
+ <div id="inbound-shortcodes-nopreview"><?php _e('Shortcode has no preview', 'leads'); ?></div>
661
  <?php else : ?>
662
  <iframe src='<?php echo $final_path . 'shared/inbound-shortcodes/'; ?>preview.php?sc=&post=<?php echo $_GET['post']; ?>' width="285" scrollbar='true' frameborder="0" id="inbound-shortcodes-preview"></iframe>
663
  <?php endif; ?>
667
 
668
  </div>
669
  <div id="popup-controls">
670
+ <a href="#" id="inbound_insert_shortcode_two" class="button-primary inbound-shortcodes-insert-two"><?php _e('Insert Shortcode', 'leads'); ?></a>
671
  <a href="#" id="shortcode_cancel" class="button inbound-shortcodes-insert-cancel">Cancel</a>
672
  <a href="#" id="inbound_save_form" style="display:none;" class="button">Save As New Form</a>
673
  </div>
shared/inbound-shortcodes/js/shortcodes.js CHANGED
@@ -856,11 +856,7 @@
856
  output_cleaned = fixed_insert_val.replace(/[a-zA-Z0-9_]*=""/g, ""); // remove empty shortcode fields
857
  }
858
  // set correct ID for insert
859
- if(cookies){
860
- var insert_to = jQuery.cookie('inbound_shortcode_editor_name');
861
- } else {
862
- var insert_to = 'content';
863
- }
864
 
865
  window.tinyMCE.execInstanceCommand(insert_to, 'mceInsertContent', false, output_cleaned);
866
  //window.tinyMCE.activeEditor.execCommand('mceInsertContent', false, output_cleaned);
@@ -917,22 +913,19 @@
917
  InboundShortcodes.insert_shortcode();
918
  });
919
  // Shortcode editor insert fix
920
- jQuery("body").on('mouseenter', '.mceAction.mce_InboundShortcodesButton', function () {
921
 
922
  var editor_name = jQuery(this).attr('id');
923
  if (typeof (editor_name) != "undefined" && editor_name != null && editor_name != "") {
924
  editor_name = editor_name.replace('_InboundShortcodesButton_action','');
 
925
  } else {
926
  return false;
927
  }
928
 
929
  console.log(editor_name);
930
- if(cookies){
931
- jQuery.cookie('inbound_shortcode_editor_name', editor_name);
932
- }
933
- //jQuery.cookie('media_init', 1);
934
- // tb_show('', 'media-upload.php?type=image&type=image&amp;TB_iframe=true');
935
- return false;
936
  }
937
  );
938
  if (InboundShortcodes.getUrlVar("reload") === 'true') {
@@ -944,26 +937,5 @@
944
 
945
  window.history.replaceState({}, document.title, window_url);
946
  }
947
- if(cookies){
948
- var clicked = jQuery.cookie("inbound_shortcode_trigger");
949
- } else {
950
- var clicked = "true";
951
- }
952
- if (clicked != "true") {
953
-
954
- var alert = "<div class='updated inbound-shortcode-trigger'>Looks like you haven't clicked the <img style='vertical-align: bottom;' src='" + inbound_load.image_dir + "shortcodes-blue.png'> button <span style='background:yellow'>(highlighted in yellow)</span> in the content editor below. There are some awesome shortcodes for you to use! Check it out! <span style='float:right; color:red;' class='inbound-dismiss-shortcode'>Dismiss this</span></div>";
955
- jQuery(".wrap h2").first().after(alert);
956
- setTimeout(function() {
957
- jQuery(".mce_InboundShortcodesButton").css("background-color", "yellow");
958
- }, 2000);
959
-
960
- }
961
-
962
- jQuery("body").on('click', '.inbound-dismiss-shortcode', function () {
963
- if(cookies){
964
- jQuery.cookie("inbound_shortcode_trigger", true, { path: '/', expires: 365 });
965
- }
966
- jQuery('.updated').hide();
967
- });
968
 
969
  });
856
  output_cleaned = fixed_insert_val.replace(/[a-zA-Z0-9_]*=""/g, ""); // remove empty shortcode fields
857
  }
858
  // set correct ID for insert
859
+ var insert_to = jQuery.cookie('inbound_shortcode_editor_name') || 'content';
 
 
 
 
860
 
861
  window.tinyMCE.execInstanceCommand(insert_to, 'mceInsertContent', false, output_cleaned);
862
  //window.tinyMCE.activeEditor.execCommand('mceInsertContent', false, output_cleaned);
913
  InboundShortcodes.insert_shortcode();
914
  });
915
  // Shortcode editor insert fix
916
+ jQuery("body").on('mouseenter', '.mceAction.mce_InboundShortcodesButton, .mceOpen.mce_InboundShortcodesButton', function () {
917
 
918
  var editor_name = jQuery(this).attr('id');
919
  if (typeof (editor_name) != "undefined" && editor_name != null && editor_name != "") {
920
  editor_name = editor_name.replace('_InboundShortcodesButton_action','');
921
+ editor_name = editor_name.replace('_InboundShortcodesButton_open', '');
922
  } else {
923
  return false;
924
  }
925
 
926
  console.log(editor_name);
927
+
928
+ jQuery.cookie('inbound_shortcode_editor_name', editor_name);
 
 
 
 
929
  }
930
  );
931
  if (InboundShortcodes.getUrlVar("reload") === 'true') {
937
 
938
  window.history.replaceState({}, document.title, window_url);
939
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
940
 
941
  });
shared/inbound-shortcodes/js/tinymce.js CHANGED
@@ -45,6 +45,24 @@ var shortcode_addons = ["landing-pages","cta","leads"]; // Addon example
45
  ed.addCommand('InboundShortcodesPopup', function(a, params) {
46
  var popup = params.identifier;
47
  tb_show( inbound_load.pop_title, inbound_load.image_dir + 'popup.php?popup=' + popup + '&width=' + 900 + "&path=" + inbound_load.image_dir);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  jQuery.cookie("inbound_shortcode_trigger", true, { path: '/', expires: 365 });
49
  });
50
  },
45
  ed.addCommand('InboundShortcodesPopup', function(a, params) {
46
  var popup = params.identifier;
47
  tb_show( inbound_load.pop_title, inbound_load.image_dir + 'popup.php?popup=' + popup + '&width=' + 900 + "&path=" + inbound_load.image_dir);
48
+ // ajax call
49
+ var userID = jQuery("#user-id").val();
50
+ var clicked = jQuery.cookie("inbound_shortcode_trigger");
51
+ console.log("CLICKED");
52
+ if (clicked != "true") {
53
+ jQuery.ajax({
54
+ type: 'POST',
55
+ url: ajaxurl,
56
+ data: {
57
+ action: 'inbound_shortcode_prompt_ajax',
58
+ user_id: userID
59
+ },
60
+ success: function(data){
61
+ var self = this;
62
+ console.log('ran notice');
63
+ }
64
+ });
65
+ }
66
  jQuery.cookie("inbound_shortcode_trigger", true, { path: '/', expires: 365 });
67
  });
68
  },
shared/inbound-shortcodes/popup.php CHANGED
@@ -24,7 +24,7 @@ $shortcode = new InboundShortcodesFields( $popup );
24
  <tbody style="display:none;">
25
  <tr class="form-row" style="text-align: center;">
26
  <?php if( ! $shortcode->has_child ) : ?><td class="label">&nbsp;</td><?php endif; ?>
27
- <td class="field" style="width:500px;"><a href="#" id="inbound_insert_shortcode" class="button-primary inbound-shortcodes-insert"><?php _e('Insert Shortcode', INBOUND_LABEL); ?></a></td>
28
  </tr>
29
  </tbody>
30
  </table>
@@ -33,10 +33,10 @@ $shortcode = new InboundShortcodesFields( $popup );
33
 
34
  <div id="inbound-shortcodes-preview-wrap">
35
  <div id="inbound-shortcodes-preview-head">
36
- <?php _e('Shortcode Preview', INBOUND_LABEL); ?>
37
  </div>
38
  <?php if( $shortcode->no_preview ) : ?>
39
- <div id="inbound-shortcodes-nopreview"><?php _e('Shortcode has no preview', INBOUND_LABEL); ?></div>
40
  <?php else : ?>
41
  <iframe src="<?php echo INBOUND_FORMS; ?>preview.php?sc=" width="285" scrollbar='true' frameborder="0" id="inbound-shortcodes-preview"></iframe>
42
  <?php endif; ?>
@@ -47,7 +47,7 @@ $shortcode = new InboundShortcodesFields( $popup );
47
  </div>
48
  <div id="popup-controls">
49
  <a href="#" id="inbound_save_form" style="display:none;" class="button-primary">Save Form & Insert</a>
50
- <a href="#" id="inbound_insert_shortcode_two" class="button-primary inbound-shortcodes-insert-two"><?php _e('Insert Shortcode', INBOUND_LABEL); ?></a>
51
  <a href="#" id="shortcode_cancel" class="button inbound-shortcodes-insert-cancel">Cancel</a>
52
 
53
  </div>
24
  <tbody style="display:none;">
25
  <tr class="form-row" style="text-align: center;">
26
  <?php if( ! $shortcode->has_child ) : ?><td class="label">&nbsp;</td><?php endif; ?>
27
+ <td class="field" style="width:500px;"><a href="#" id="inbound_insert_shortcode" class="button-primary inbound-shortcodes-insert"><?php _e('Insert Shortcode', 'leads'); ?></a></td>
28
  </tr>
29
  </tbody>
30
  </table>
33
 
34
  <div id="inbound-shortcodes-preview-wrap">
35
  <div id="inbound-shortcodes-preview-head">
36
+ <?php _e('Shortcode Preview', 'leads'); ?>
37
  </div>
38
  <?php if( $shortcode->no_preview ) : ?>
39
+ <div id="inbound-shortcodes-nopreview"><?php _e('Shortcode has no preview', 'leads'); ?></div>
40
  <?php else : ?>
41
  <iframe src="<?php echo INBOUND_FORMS; ?>preview.php?sc=" width="285" scrollbar='true' frameborder="0" id="inbound-shortcodes-preview"></iframe>
42
  <?php endif; ?>
47
  </div>
48
  <div id="popup-controls">
49
  <a href="#" id="inbound_save_form" style="display:none;" class="button-primary">Save Form & Insert</a>
50
+ <a href="#" id="inbound_insert_shortcode_two" class="button-primary inbound-shortcodes-insert-two"><?php _e('Insert Shortcode', 'leads'); ?></a>
51
  <a href="#" id="shortcode_cancel" class="button inbound-shortcodes-insert-cancel">Cancel</a>
52
 
53
  </div>
shared/inbound-shortcodes/shortcodes/alert.php CHANGED
@@ -9,27 +9,27 @@
9
  'no_preview' => true,
10
  'options' => array(
11
  'color' => array(
12
- 'name' => __('Color Style', INBOUND_LABEL),
13
- 'desc' => __('Select the style.', INBOUND_LABEL),
14
  'type' => 'select',
15
  'options' => array(
16
- 'default' => __('Default', INBOUND_LABEL),
17
- 'blue' => __('Blue', INBOUND_LABEL),
18
- 'green' => __('Green', INBOUND_LABEL),
19
- 'red' => __('Red', INBOUND_LABEL),
20
- 'yellow' => __('Yellow', INBOUND_LABEL)
21
  ),
22
  'std' => ''
23
  ),
24
  'content' => array(
25
- 'name' => __('Message', INBOUND_LABEL),
26
- 'desc' => __('Your message here.', INBOUND_LABEL),
27
  'type' => 'textarea',
28
  'std' => ''
29
  )
30
  ),
31
  'shortcode' => '[alert color="{{color}}"]{{content}}[/alert]',
32
- 'popup_title' => __('Insert Alert Message Shortcode', INBOUND_LABEL)
33
  );
34
 
35
  /* Add shortcode
9
  'no_preview' => true,
10
  'options' => array(
11
  'color' => array(
12
+ 'name' => __('Color Style', 'leads'),
13
+ 'desc' => __('Select the style.', 'leads'),
14
  'type' => 'select',
15
  'options' => array(
16
+ 'default' => __('Default', 'leads'),
17
+ 'blue' => __('Blue', 'leads'),
18
+ 'green' => __('Green', 'leads'),
19
+ 'red' => __('Red', 'leads'),
20
+ 'yellow' => __('Yellow', 'leads')
21
  ),
22
  'std' => ''
23
  ),
24
  'content' => array(
25
+ 'name' => __('Message', 'leads'),
26
+ 'desc' => __('Your message here.', 'leads'),
27
  'type' => 'textarea',
28
  'std' => ''
29
  )
30
  ),
31
  'shortcode' => '[alert color="{{color}}"]{{content}}[/alert]',
32
+ 'popup_title' => __('Insert Alert Message Shortcode', 'leads')
33
  );
34
 
35
  /* Add shortcode
shared/inbound-shortcodes/shortcodes/button.php CHANGED
@@ -11,8 +11,8 @@
11
  'options' => array(
12
  /*
13
  'style' => array(
14
- 'name' => __('Button Style', INBOUND_LABEL),
15
- 'desc' => __('Select the button style.', INBOUND_LABEL),
16
  'type' => 'select',
17
  'options' => array(
18
  'default' => 'Default',
@@ -22,27 +22,27 @@
22
  'std' => 'default'
23
  ),*/
24
  'content' => array(
25
- 'name' => __('Button Text', INBOUND_LABEL),
26
- 'desc' => __('Enter the button text label.', INBOUND_LABEL),
27
  'type' => 'text',
28
  'std' => 'Button Text'
29
  ),
30
  'url' => array(
31
- 'name' => __('Button Link', INBOUND_LABEL),
32
- 'desc' => __('Enter the destination URL.', INBOUND_LABEL),
33
  'type' => 'text',
34
  'std' => ''
35
  ),
36
  'font-size' => array(
37
- 'name' => __('Font Size', INBOUND_LABEL),
38
- 'desc' => __('Size of Button Font. This also determines default button size', INBOUND_LABEL),
39
  'type' => 'text',
40
  'std' => '20'
41
  ),
42
  /*
43
  'color' => array(
44
- 'name' => __('Button Color', INBOUND_LABEL),
45
- 'desc' => __('Select the button color.', INBOUND_LABEL),
46
  'type' => 'select',
47
  'options' => array(
48
  'default' => 'Default',
@@ -61,35 +61,35 @@
61
  'std' => 'default'
62
  ), */
63
  'color' => array(
64
- 'name' => __('Button Color', INBOUND_LABEL),
65
- 'desc' => __('Color of button', INBOUND_LABEL),
66
  'type' => 'colorpicker',
67
  'std' => '#c8232b'
68
  ),
69
  'text-color' => array(
70
- 'name' => __('Button Text Color', INBOUND_LABEL),
71
- 'desc' => __('Color of text', INBOUND_LABEL),
72
  'type' => 'colorpicker',
73
  'std' => '#ffffff'
74
  ),
75
  'icon' => array(
76
- 'name' => __('Icon', INBOUND_LABEL),
77
- 'desc' => __('Select an icon.', INBOUND_LABEL),
78
  'type' => 'select',
79
  'options' => $fontawesome,
80
  'std' => ''
81
  ),
82
 
83
  'width' => array(
84
- 'name' => __('Custom Width', INBOUND_LABEL),
85
- 'desc' => __('Enter in pixel width or % width. Example: 200 <u>or</u> 100%', INBOUND_LABEL),
86
  'type' => 'text',
87
  'std' => '',
88
  'class' => 'main-design-settings',
89
  ),
90
  'target' => array(
91
- 'name' => __('Open Link in New Tab?', INBOUND_LABEL),
92
- 'checkbox_text' => __('Do you want to open links in this window or a new one?', INBOUND_LABEL),
93
  'desc' => '',
94
  'type' => 'select',
95
  'options' => array(
@@ -102,7 +102,7 @@
102
  ),
103
  // style="{{style}}"
104
  'shortcode' => '[button font_size="{{font-size}}" color="{{color}}" text_color="{{text-color}}" icon="{{icon}}" url="{{url}}" width="{{width}}" target="{{target}}"]{{content}}[/button]',
105
- 'popup_title' => __('Insert Button Shortcode', INBOUND_LABEL)
106
  );
107
 
108
  /* Add shortcode
11
  'options' => array(
12
  /*
13
  'style' => array(
14
+ 'name' => __('Button Style', 'leads'),
15
+ 'desc' => __('Select the button style.', 'leads'),
16
  'type' => 'select',
17
  'options' => array(
18
  'default' => 'Default',
22
  'std' => 'default'
23
  ),*/
24
  'content' => array(
25
+ 'name' => __('Button Text', 'leads'),
26
+ 'desc' => __('Enter the button text label.', 'leads'),
27
  'type' => 'text',
28
  'std' => 'Button Text'
29
  ),
30
  'url' => array(
31
+ 'name' => __('Button Link', 'leads'),
32
+ 'desc' => __('Enter the destination URL.', 'leads'),
33
  'type' => 'text',
34
  'std' => ''
35
  ),
36
  'font-size' => array(
37
+ 'name' => __('Font Size', 'leads'),
38
+ 'desc' => __('Size of Button Font. This also determines default button size', 'leads'),
39
  'type' => 'text',
40
  'std' => '20'
41
  ),
42
  /*
43
  'color' => array(
44
+ 'name' => __('Button Color', 'leads'),
45
+ 'desc' => __('Select the button color.', 'leads'),
46
  'type' => 'select',
47
  'options' => array(
48
  'default' => 'Default',
61
  'std' => 'default'
62
  ), */
63
  'color' => array(
64
+ 'name' => __('Button Color', 'leads'),
65
+ 'desc' => __('Color of button', 'leads'),
66
  'type' => 'colorpicker',
67
  'std' => '#c8232b'
68
  ),
69
  'text-color' => array(
70
+ 'name' => __('Button Text Color', 'leads'),
71
+ 'desc' => __('Color of text', 'leads'),
72
  'type' => 'colorpicker',
73
  'std' => '#ffffff'
74
  ),
75
  'icon' => array(
76
+ 'name' => __('Icon', 'leads'),
77
+ 'desc' => __('Select an icon.', 'leads'),
78
  'type' => 'select',
79
  'options' => $fontawesome,
80
  'std' => ''
81
  ),
82
 
83
  'width' => array(
84
+ 'name' => __('Custom Width', 'leads'),
85
+ 'desc' => __('Enter in pixel width or % width. Example: 200 <u>or</u> 100%', 'leads'),
86
  'type' => 'text',
87
  'std' => '',
88
  'class' => 'main-design-settings',
89
  ),
90
  'target' => array(
91
+ 'name' => __('Open Link in New Tab?', 'leads'),
92
+ 'checkbox_text' => __('Do you want to open links in this window or a new one?', 'leads'),
93
  'desc' => '',
94
  'type' => 'select',
95
  'options' => array(
102
  ),
103
  // style="{{style}}"
104
  'shortcode' => '[button font_size="{{font-size}}" color="{{color}}" text_color="{{text-color}}" icon="{{icon}}" url="{{url}}" width="{{width}}" target="{{target}}"]{{content}}[/button]',
105
+ 'popup_title' => __('Insert Button Shortcode', 'leads')
106
  );
107
 
108
  /* Add shortcode
shared/inbound-shortcodes/shortcodes/call-to-action.php CHANGED
@@ -8,8 +8,8 @@
8
  'no_preview' => true,
9
  'options' => array(
10
  'insert_default' => array(
11
- 'name' => __('Insert cta', INBOUND_LABEL),
12
- 'desc' => __('Choose CTA', INBOUND_LABEL),
13
  'type' => 'cta',
14
  'std' => '',
15
  'class' => 'main-form-settings',
@@ -17,5 +17,5 @@
17
 
18
  ),
19
  'shortcode' => '[inbound_forms id="{{insert_default}}" name="{{form_name}}"]',
20
- 'popup_title' => __('Insert Call to Action', INBOUND_LABEL)
21
  );
8
  'no_preview' => true,
9
  'options' => array(
10
  'insert_default' => array(
11
+ 'name' => __('Insert cta', 'leads'),
12
+ 'desc' => __('Choose CTA', 'leads'),
13
  'type' => 'cta',
14
  'std' => '',
15
  'class' => 'main-form-settings',
17
 
18
  ),
19
  'shortcode' => '[inbound_forms id="{{insert_default}}" name="{{form_name}}"]',
20
+ 'popup_title' => __('Insert Call to Action', 'leads')
21
  );
shared/inbound-shortcodes/shortcodes/callout.php CHANGED
@@ -9,20 +9,20 @@
9
  'no_preview' => true,
10
  'options' => array(
11
  'title' => array(
12
- 'name' => __('Title', INBOUND_LABEL),
13
- 'desc' => __('Enter the heading text.', INBOUND_LABEL),
14
  'type' => 'text',
15
  'std' => ''
16
  ),
17
  'subtitle' => array(
18
- 'name' => __('Sub Title', INBOUND_LABEL),
19
- 'desc' => __('Enter the sub title.', INBOUND_LABEL),
20
  'type' => 'textarea',
21
  'std' => ''
22
  ),
23
  'button_color' => array(
24
- 'name' => __('Button Color', INBOUND_LABEL),
25
- 'desc' => __('Select the button color.', INBOUND_LABEL),
26
  'type' => 'select',
27
  'options' => array(
28
  'default' => 'Default',
@@ -41,52 +41,52 @@
41
  'std' => 'default'
42
  ),
43
  'button_label' => array(
44
- 'name' => __('Button Text Label', INBOUND_LABEL),
45
- 'desc' => __('Enter the button text label.', INBOUND_LABEL),
46
  'type' => 'text',
47
  'std' => ''
48
  ),
49
  'button_icon' => array(
50
- 'name' => __('Button Icon', INBOUND_LABEL),
51
- 'desc' => __('Select an icon.', INBOUND_LABEL),
52
  'type' => 'select',
53
  'options' => $fontawesome,
54
  'std' => 'none'
55
  ),
56
  'link' => array(
57
- 'name' => __('Link', INBOUND_LABEL),
58
- 'desc' => __('Enter the button link destination URL.', INBOUND_LABEL),
59
  'type' => 'text',
60
  'std' => ''
61
  )
62
  ),
63
  'shortcode' => '[callout title="{{title}}" subtitle="{{subtitle}}" button_label="{{button_label}}" button_icon="{{button_icon}}" link="{{link}}"]',
64
- 'popup_title' => __('Insert Call Out Shortcode', INBOUND_LABEL)
65
  );
66
 
67
  /* Page builder module config
68
  * ----------------------------------------------------- */
69
  $freshbuilder_modules['callout'] = array(
70
- 'name' => __('Call Out', INBOUND_LABEL),
71
  'size' => 'one_full',
72
  'options' => array(
73
  'title' => array(
74
- 'name' => __('Title', INBOUND_LABEL),
75
- 'desc' => __('Enter the heading text.', INBOUND_LABEL),
76
  'type' => 'text',
77
  'class' => '',
78
  'is_content' => '0'
79
  ),
80
  'subtitle' => array(
81
- 'name' => __('Sub Title', INBOUND_LABEL),
82
- 'desc' => __('Enter the sub title.', INBOUND_LABEL),
83
  'type' => 'textarea',
84
  'class' => '',
85
  'is_content' => '0'
86
  ),
87
  'button_color' => array(
88
- 'name' => __('Button Color', INBOUND_LABEL),
89
- 'desc' => __('Select the button color.', INBOUND_LABEL),
90
  'type' => 'select',
91
  'options' => array(
92
  'default' => 'Default',
@@ -107,15 +107,15 @@
107
  'is_content' => '0'
108
  ),
109
  'button_label' => array(
110
- 'name' => __('Button Text Label', INBOUND_LABEL),
111
- 'desc' => __('Enter the button text label.', INBOUND_LABEL),
112
  'type' => 'text',
113
  'class' => '',
114
  'is_content' => '0'
115
  ),
116
  'button_icon' => array(
117
- 'name' => __('Button Icon', INBOUND_LABEL),
118
- 'desc' => __('Select an icon.', INBOUND_LABEL),
119
  'type' => 'select',
120
  'options' => $fontawesome,
121
  'std' => 'none',
@@ -123,8 +123,8 @@
123
  'is_content' => '0'
124
  ),
125
  'link' => array(
126
- 'name' => __('Link', INBOUND_LABEL),
127
- 'desc' => __('Enter the button link destination URL.', INBOUND_LABEL),
128
  'type' => 'text',
129
  'class' => '',
130
  'is_content' => '0'
9
  'no_preview' => true,
10
  'options' => array(
11
  'title' => array(
12
+ 'name' => __('Title', 'leads'),
13
+ 'desc' => __('Enter the heading text.', 'leads'),
14
  'type' => 'text',
15
  'std' => ''
16
  ),
17
  'subtitle' => array(
18
+ 'name' => __('Sub Title', 'leads'),
19
+ 'desc' => __('Enter the sub title.', 'leads'),
20
  'type' => 'textarea',
21
  'std' => ''
22
  ),
23
  'button_color' => array(
24
+ 'name' => __('Button Color', 'leads'),
25
+ 'desc' => __('Select the button color.', 'leads'),
26
  'type' => 'select',
27
  'options' => array(
28
  'default' => 'Default',
41
  'std' => 'default'
42
  ),
43
  'button_label' => array(
44
+ 'name' => __('Button Text Label', 'leads'),
45
+ 'desc' => __('Enter the button text label.', 'leads'),
46
  'type' => 'text',
47
  'std' => ''
48
  ),
49
  'button_icon' => array(
50
+ 'name' => __('Button Icon', 'leads'),
51
+ 'desc' => __('Select an icon.', 'leads'),
52
  'type' => 'select',
53
  'options' => $fontawesome,
54
  'std' => 'none'
55
  ),
56
  'link' => array(
57
+ 'name' => __('Link', 'leads'),
58
+ 'desc' => __('Enter the button link destination URL.', 'leads'),
59
  'type' => 'text',
60
  'std' => ''
61
  )
62
  ),
63
  'shortcode' => '[callout title="{{title}}" subtitle="{{subtitle}}" button_label="{{button_label}}" button_icon="{{button_icon}}" link="{{link}}"]',
64
+ 'popup_title' => __('Insert Call Out Shortcode', 'leads')
65
  );
66
 
67
  /* Page builder module config
68
  * ----------------------------------------------------- */
69
  $freshbuilder_modules['callout'] = array(
70
+ 'name' => __('Call Out', 'leads'),
71
  'size' => 'one_full',
72
  'options' => array(
73
  'title' => array(
74
+ 'name' => __('Title', 'leads'),
75
+ 'desc' => __('Enter the heading text.', 'leads'),
76
  'type' => 'text',
77
  'class' => '',
78
  'is_content' => '0'
79
  ),
80
  'subtitle' => array(
81
+ 'name' => __('Sub Title', 'leads'),
82
+ 'desc' => __('Enter the sub title.', 'leads'),
83
  'type' => 'textarea',
84
  'class' => '',
85
  'is_content' => '0'
86
  ),
87
  'button_color' => array(
88
+ 'name' => __('Button Color', 'leads'),
89
+ 'desc' => __('Select the button color.', 'leads'),
90
  'type' => 'select',
91
  'options' => array(
92
  'default' => 'Default',
107
  'is_content' => '0'
108
  ),
109
  'button_label' => array(
110
+ 'name' => __('Button Text Label', 'leads'),
111
+ 'desc' => __('Enter the button text label.', 'leads'),
112
  'type' => 'text',
113
  'class' => '',
114
  'is_content' => '0'
115
  ),
116
  'button_icon' => array(
117
+ 'name' => __('Button Icon', 'leads'),
118
+ 'desc' => __('Select an icon.', 'leads'),
119
  'type' => 'select',
120
  'options' => $fontawesome,
121
  'std' => 'none',
123
  'is_content' => '0'
124
  ),
125
  'link' => array(
126
+ 'name' => __('Link', 'leads'),
127
+ 'desc' => __('Enter the button link destination URL.', 'leads'),
128
  'type' => 'text',
129
  'class' => '',
130
  'is_content' => '0'
shared/inbound-shortcodes/shortcodes/column.php CHANGED
@@ -9,8 +9,8 @@
9
  'no_preview' => true,
10
  'options' => array(
11
  'gutter' => array(
12
- 'name' => __('Gutter Width', INBOUND_LABEL),
13
- 'desc' => __('A space between the columns.', INBOUND_LABEL),
14
  'type' => 'select',
15
  'options' => array(
16
  '20' => '20px',
@@ -19,8 +19,8 @@
19
  'std' => ''
20
  ),
21
  'set' => array(
22
- 'name' => __('Column Set', INBOUND_LABEL),
23
- 'desc' => __('Select the set.', INBOUND_LABEL),
24
  'type' => 'select',
25
  'options' => array(
26
  '[one_full]Content goes here[/one_full]' => '1/1',
@@ -39,18 +39,18 @@
39
  )
40
  ),
41
  'shortcode' => '[columns gutter="{{gutter}}"]{{set}}[/columns]',
42
- 'popup_title' => __('Insert Column Shortcode', INBOUND_LABEL)
43
  );
44
 
45
  /* Page builder module config
46
  * ----------------------------------------------------- */
47
  $freshbuilder_modules['column'] = array(
48
- 'name' => __('Column', INBOUND_LABEL),
49
  'size' => 'one_fifth',
50
  'options' => array(
51
  'content' => array(
52
- 'name' => __('Column Content', INBOUND_LABEL),
53
- 'desc' => __('Enter the column content', INBOUND_LABEL),
54
  'type' => 'textarea',
55
  'std' => '',
56
  'class' => 'wide',
9
  'no_preview' => true,
10
  'options' => array(
11
  'gutter' => array(
12
+ 'name' => __('Gutter Width', 'leads'),
13
+ 'desc' => __('A space between the columns.', 'leads'),
14
  'type' => 'select',
15
  'options' => array(
16
  '20' => '20px',
19
  'std' => ''
20
  ),
21
  'set' => array(
22
+ 'name' => __('Column Set', 'leads'),
23
+ 'desc' => __('Select the set.', 'leads'),
24
  'type' => 'select',
25
  'options' => array(
26
  '[one_full]Content goes here[/one_full]' => '1/1',
39
  )
40
  ),
41
  'shortcode' => '[columns gutter="{{gutter}}"]{{set}}[/columns]',
42
+ 'popup_title' => __('Insert Column Shortcode', 'leads')
43
  );
44
 
45
  /* Page builder module config
46
  * ----------------------------------------------------- */
47
  $freshbuilder_modules['column'] = array(
48
+ 'name' => __('Column', 'leads'),
49
  'size' => 'one_fifth',
50
  'options' => array(
51
  'content' => array(
52
+ 'name' => __('Column Content', 'leads'),
53
+ 'desc' => __('Enter the column content', 'leads'),
54
  'type' => 'textarea',
55
  'std' => '',
56
  'class' => 'wide',
shared/inbound-shortcodes/shortcodes/content-box.php CHANGED
@@ -9,53 +9,53 @@
9
  'no_preview' => true,
10
  'options' => array(
11
  'color' => array(
12
- 'name' => __('Box Color', INBOUND_LABEL),
13
- 'desc' => __('Select the color.', INBOUND_LABEL),
14
  'type' => 'select',
15
  'options' => array(
16
- 'default' => __('Default', INBOUND_LABEL),
17
- 'blue' => __('Blue', INBOUND_LABEL),
18
- 'green' => __('Green', INBOUND_LABEL),
19
- 'red' => __('Red', INBOUND_LABEL),
20
- 'yellow' => __('Yellow', INBOUND_LABEL)
21
  ),
22
  'std' => ''
23
  ),
24
  'content' => array(
25
- 'name' => __('Content', INBOUND_LABEL),
26
- 'desc' => __('Enter the content.', INBOUND_LABEL),
27
  'type' => 'textarea',
28
  'std' => ''
29
  )
30
  ),
31
  'shortcode' => '[content_box color="{{color}}"]{{content}}[/content_box]',
32
- 'popup_title' => __('Insert Content Box Shortcode', INBOUND_LABEL)
33
  );
34
 
35
  /* Page builder module config
36
  * ----------------------------------------------------- */
37
  $freshbuilder_modules['content_box'] = array(
38
- 'name' => __('Content Box', INBOUND_LABEL),
39
  'size' => 'one_third',
40
  'options' => array(
41
  'color' => array(
42
- 'name' => __('Box Color', INBOUND_LABEL),
43
- 'desc' => __('Select the color.', INBOUND_LABEL),
44
  'type' => 'select',
45
  'options' => array(
46
- 'default' => __('Default', INBOUND_LABEL),
47
- 'blue' => __('Blue', INBOUND_LABEL),
48
- 'green' => __('Green', INBOUND_LABEL),
49
- 'red' => __('Red', INBOUND_LABEL),
50
- 'yellow' => __('Yellow', INBOUND_LABEL)
51
  ),
52
  'std' => '',
53
  'class' => '',
54
  'is_content' => 0
55
  ),
56
  'content' => array(
57
- 'name' => __('Content', INBOUND_LABEL),
58
- 'desc' => __('Enter the content', INBOUND_LABEL),
59
  'type' => 'textarea',
60
  'std' => '',
61
  'class' => '',
9
  'no_preview' => true,
10
  'options' => array(
11
  'color' => array(
12
+ 'name' => __('Box Color', 'leads'),
13
+ 'desc' => __('Select the color.', 'leads'),
14
  'type' => 'select',
15
  'options' => array(
16
+ 'default' => __('Default', 'leads'),
17
+ 'blue' => __('Blue', 'leads'),
18
+ 'green' => __('Green', 'leads'),
19
+ 'red' => __('Red', 'leads'),
20
+ 'yellow' => __('Yellow', 'leads')
21
  ),
22
  'std' => ''
23
  ),
24
  'content' => array(
25
+ 'name' => __('Content', 'leads'),
26
+ 'desc' => __('Enter the content.', 'leads'),
27
  'type' => 'textarea',
28
  'std' => ''
29
  )
30
  ),
31
  'shortcode' => '[content_box color="{{color}}"]{{content}}[/content_box]',
32
+ 'popup_title' => __('Insert Content Box Shortcode', 'leads')
33
  );
34
 
35
  /* Page builder module config
36
  * ----------------------------------------------------- */
37
  $freshbuilder_modules['content_box'] = array(
38
+ 'name' => __('Content Box', 'leads'),
39
  'size' => 'one_third',
40
  'options' => array(
41
  'color' => array(
42
+ 'name' => __('Box Color', 'leads'),
43
+ 'desc' => __('Select the color.', 'leads'),
44
  'type' => 'select',
45
  'options' => array(
46
+ 'default' => __('Default', 'leads'),
47
+ 'blue' => __('Blue', 'leads'),
48
+ 'green' => __('Green', 'leads'),
49
+ 'red' => __('Red', 'leads'),
50
+ 'yellow' => __('Yellow', 'leads')
51
  ),
52
  'std' => '',
53
  'class' => '',
54
  'is_content' => 0
55
  ),
56
  'content' => array(
57
+ 'name' => __('Content', 'leads'),
58
+ 'desc' => __('Enter the content', 'leads'),
59
  'type' => 'textarea',
60
  'std' => '',
61
  'class' => '',
shared/inbound-shortcodes/shortcodes/divider.php CHANGED
@@ -9,80 +9,80 @@
9
  'no_preview' => true,
10
  'options' => array(
11
  'style' => array(
12
- 'name' => __('Border Style', INBOUND_LABEL),
13
- 'desc' => __('Select the style.', INBOUND_LABEL),
14
  'type' => 'select',
15
  'options' => array(
16
- 'none' => __('No Border', INBOUND_LABEL),
17
- 'dashed' => __('Dashed', INBOUND_LABEL),
18
- 'dotted' => __('Dotted', INBOUND_LABEL),
19
- 'double' => __('Double', INBOUND_LABEL),
20
- 'solid' => __('Solid', INBOUND_LABEL)
21
  ),
22
  'std' => 'none'
23
  ),
24
  'color' => array(
25
- 'name' => __('Border Color', INBOUND_LABEL),
26
- 'desc' => __('Enter a hex color code.', INBOUND_LABEL),
27
  'type' => 'text',
28
  'std' => '#ebebea'
29
  ),
30
  'margin_top' => array(
31
- 'name' => __('Top Margin', INBOUND_LABEL),
32
- 'desc' => __('Enter the top margin value.', INBOUND_LABEL),
33
  'type' => 'text',
34
  'std' => '0px'
35
  ),
36
  'margin_bottom' => array(
37
- 'name' => __('Bottom Margin', INBOUND_LABEL),
38
- 'desc' => __('Enter the bottom margin value.', INBOUND_LABEL),
39
  'type' => 'text',
40
  'std' => '0px'
41
  )
42
  ),
43
  'shortcode' => '[divider style="{{style}}" color="{{color}}" margin_top="{{margin_top}}" margin_bottom="{{margin_bottom}}"]',
44
- 'popup_title' => __('Insert Divider Shortcode', INBOUND_LABEL)
45
  );
46
 
47
  /* Page builder module config
48
  * ----------------------------------------------------- */
49
  $freshbuilder_modules['divider'] = array(
50
- 'name' => __('Divider', INBOUND_LABEL),
51
  'size' => 'one_full',
52
  'options' => array(
53
  'style' => array(
54
- 'name' => __('Border Style', INBOUND_LABEL),
55
- 'desc' => __('Select the style.', INBOUND_LABEL),'type' => 'select',
56
  'options' => array(
57
- 'none' => __('No Border', INBOUND_LABEL),
58
- 'dashed' => __('Dashed', INBOUND_LABEL),
59
- 'dotted' => __('Dotted', INBOUND_LABEL),
60
- 'double' => __('Double', INBOUND_LABEL),
61
- 'solid' => __('Solid', INBOUND_LABEL)
62
  ),
63
  'std' => 'none',
64
  'class' => '',
65
  'is_content' => '0'
66
  ),
67
  'color' => array(
68
- 'name' => __('Border Color', INBOUND_LABEL),
69
- 'desc' => __('Enter a hex color code.', INBOUND_LABEL),
70
  'type' => 'text',
71
  'std' => '#ebebea',
72
  'class' => '',
73
  'is_content' => '0'
74
  ),
75
  'margin_top' => array(
76
- 'name' => __('Margin Top', INBOUND_LABEL),
77
- 'desc' => __('Enter the top margin value.', INBOUND_LABEL),
78
  'type' => 'text',
79
  'std' => '0px',
80
  'class' => '',
81
  'is_content' => '0'
82
  ),
83
  'margin_bottom' => array(
84
- 'name' => __('Margin Bottom', INBOUND_LABEL),
85
- 'desc' => __('Enter the bottom margin value.', INBOUND_LABEL),
86
  'type' => 'text',
87
  'std' => '0px',
88
  'class' => '',
9
  'no_preview' => true,
10
  'options' => array(
11
  'style' => array(
12
+ 'name' => __('Border Style', 'leads'),
13
+ 'desc' => __('Select the style.', 'leads'),
14
  'type' => 'select',
15
  'options' => array(
16
+ 'none' => __('No Border', 'leads'),
17
+ 'dashed' => __('Dashed', 'leads'),
18
+ 'dotted' => __('Dotted', 'leads'),
19
+ 'double' => __('Double', 'leads'),
20
+ 'solid' => __('Solid', 'leads')
21
  ),
22
  'std' => 'none'
23
  ),
24
  'color' => array(
25
+ 'name' => __('Border Color', 'leads'),
26
+ 'desc' => __('Enter a hex color code.', 'leads'),
27
  'type' => 'text',
28
  'std' => '#ebebea'
29
  ),
30
  'margin_top' => array(
31
+ 'name' => __('Top Margin', 'leads'),
32
+ 'desc' => __('Enter the top margin value.', 'leads'),
33
  'type' => 'text',
34
  'std' => '0px'
35
  ),
36
  'margin_bottom' => array(
37
+ 'name' => __('Bottom Margin', 'leads'),
38
+ 'desc' => __('Enter the bottom margin value.', 'leads'),
39
  'type' => 'text',
40
  'std' => '0px'
41
  )
42
  ),
43
  'shortcode' => '[divider style="{{style}}" color="{{color}}" margin_top="{{margin_top}}" margin_bottom="{{margin_bottom}}"]',
44
+ 'popup_title' => __('Insert Divider Shortcode', 'leads')
45
  );
46
 
47
  /* Page builder module config
48
  * ----------------------------------------------------- */
49
  $freshbuilder_modules['divider'] = array(
50
+ 'name' => __('Divider', 'leads'),
51
  'size' => 'one_full',
52
  'options' => array(
53
  'style' => array(
54
+ 'name' => __('Border Style', 'leads'),
55
+ 'desc' => __('Select the style.', 'leads'),'type' => 'select',
56
  'options' => array(
57
+ 'none' => __('No Border', 'leads'),
58
+ 'dashed' => __('Dashed', 'leads'),
59
+ 'dotted' => __('Dotted', 'leads'),
60
+ 'double' => __('Double', 'leads'),
61
+ 'solid' => __('Solid', 'leads')
62
  ),
63
  'std' => 'none',
64
  'class' => '',
65
  'is_content' => '0'
66
  ),
67
  'color' => array(
68
+ 'name' => __('Border Color', 'leads'),
69
+ 'desc' => __('Enter a hex color code.', 'leads'),
70
  'type' => 'text',
71
  'std' => '#ebebea',
72
  'class' => '',
73
  'is_content' => '0'
74
  ),
75
  'margin_top' => array(
76
+ 'name' => __('Margin Top', 'leads'),
77
+ 'desc' => __('Enter the top margin value.', 'leads'),
78
  'type' => 'text',
79
  'std' => '0px',
80
  'class' => '',
81
  'is_content' => '0'
82
  ),
83
  'margin_bottom' => array(
84
+ 'name' => __('Margin Bottom', 'leads'),
85
+ 'desc' => __('Enter the bottom margin value.', 'leads'),
86
  'type' => 'text',
87
  'std' => '0px',
88
  'class' => '',
shared/inbound-shortcodes/shortcodes/forms.php CHANGED
@@ -33,29 +33,29 @@
33
  );
34
  }
35
  //print_r($lead_mapping_fields);
36
- $lists_link = admin_url( 'edit-tags.php?taxonomy=wplead_list_category&post_type=wp-lead' );
37
  $shortcodes_config['forms'] = array(
38
  'no_preview' => false,
39
  'options' => array(
40
  'insert_default' => array(
41
- 'name' => __('Choose Starting Template', INBOUND_LABEL),
42
- 'desc' => __('Start Building Your Form from premade templates', INBOUND_LABEL),
43
  'type' => 'select',
44
  'options' => $form_names,
45
  'std' => 'none',
46
  'class' => 'main-form-settings',
47
  ),
48
  'form_name' => array(
49
- 'name' => __('Form Name<span class="small-required-text">*</span>', INBOUND_LABEL),
50
- 'desc' => __('This is not shown to visitors', INBOUND_LABEL),
51
  'type' => 'text',
52
  'placeholder' => "Example: XYZ Whitepaper Download",
53
  'std' => '',
54
  'class' => 'main-form-settings',
55
  ),
56
  /*'confirmation' => array(
57
- 'name' => __('Form Layout', INBOUND_LABEL),
58
- 'desc' => __('Choose Your Form Layout', INBOUND_LABEL),
59
  'type' => 'select',
60
  'options' => array(
61
  "redirect" => "Redirect After Form Completion",
@@ -64,8 +64,8 @@
64
  'std' => 'redirect'
65
  ),*/
66
  'redirect' => array(
67
- 'name' => __('Redirect URL<span class="small-required-text">*</span>', INBOUND_LABEL),
68
- 'desc' => __('Where do you want to send people after they fill out the form?', INBOUND_LABEL),
69
  'type' => 'text',
70
  'placeholder' => "http://www.yoursite.com/thank-you",
71
  'std' => '',
@@ -73,53 +73,53 @@
73
  'class' => 'main-form-settings',
74
  ),
75
  /*'thank_you_text' => array(
76
- 'name' => __('Field Description <span class="small-optional-text">(optional)</span>', INBOUND_LABEL),
77
- 'desc' => __('Put field description here.', INBOUND_LABEL),
78
  'type' => 'textarea',
79
  'std' => '',
80
  'class' => 'advanced',
81
  'reveal_on' => 'text'
82
  ), */
83
  'notify' => array(
84
- 'name' => __('Notify on Form Completions<span class="small-required-text">*</span>', INBOUND_LABEL),
85
- 'desc' => __('Who should get admin notifications on this form?<br>For multiple notifications separate email addresses with commas', INBOUND_LABEL),
86
  'type' => 'text',
87
  'placeholder' => "youremail@email.com",
88
  'std' => '',
89
  'class' => 'main-form-settings',
90
  ),
91
  'lists' => array(
92
- 'name' => __('Add to List(s)', INBOUND_LABEL),
93
- 'desc' => __('Add the converting lead to 1 or more <a target="_blank" title="Create Lead Lists" href="'.$lists_link.'">lead lists</a>', INBOUND_LABEL),
94
  'type' => 'multiselect',
95
  'options' => $lead_list_names,
96
  'class' => 'main-form-settings',
97
  ),
98
 
99
  'lists_hidden' => array(
100
- 'name' => __('Hidden List Values', INBOUND_LABEL),
101
- 'desc' => __('', INBOUND_LABEL),
102
  'type' => 'hidden',
103
  'class' => 'main-form-settings',
104
  ),
105
 
106
  'helper-block-one' => array(
107
- 'name' => __('Name Name Name', INBOUND_LABEL),
108
- 'desc' => __('<span class="switch-to-form-insert button">Cancel Form Creation & Insert Existing Form</span>', INBOUND_LABEL),
109
  'type' => 'helper-block',
110
  'std' => '',
111
  'class' => 'main-form-settings',
112
  ),
113
  'heading_design' => array(
114
- 'name' => __('Name Name Name', INBOUND_LABEL),
115
- 'desc' => __('Layout Options', INBOUND_LABEL),
116
  'type' => 'helper-block',
117
  'std' => '',
118
  'class' => 'main-design-settings',
119
  ),
120
  'layout' => array(
121
- 'name' => __('Form Layout', INBOUND_LABEL),
122
- 'desc' => __('Choose Your Form Layout', INBOUND_LABEL),
123
  'type' => 'select',
124
  'options' => array(
125
  "vertical" => "Vertical",
@@ -129,8 +129,8 @@
129
  'class' => 'main-design-settings',
130
  ),
131
  'labels' => array(
132
- 'name' => __('Label Alignment', INBOUND_LABEL),
133
- 'desc' => __('Choose Label Layout', INBOUND_LABEL),
134
  'type' => 'select',
135
  'options' => array(
136
  "top" => "Labels on Top",
@@ -142,30 +142,55 @@
142
  'class' => 'main-design-settings',
143
  ),
144
  'font-size' => array(
145
- 'name' => __('Form Font Size', INBOUND_LABEL),
146
- 'desc' => __('Size of Label Font. This also determines default submit button size', INBOUND_LABEL),
147
  'type' => 'text',
148
  'std' => '16',
149
  'class' => 'main-design-settings',
150
  ),
151
  'icon' => array(
152
- 'name' => __('Submit Button Icon', INBOUND_LABEL),
153
- 'desc' => __('Select an icon.', INBOUND_LABEL),
154
  'type' => 'select',
155
  'options' => $fontawesome,
156
  'std' => 'none',
157
  'class' => 'main-design-settings'
158
  ),
159
  'submit' => array(
160
- 'name' => __('Submit Button Text', INBOUND_LABEL),
161
- 'desc' => __('Enter the text you want to show on the submit button. (or a link to a custom submit button image)', INBOUND_LABEL),
162
  'type' => 'text',
163
  'std' => 'Submit',
164
  'class' => 'main-design-settings',
165
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
166
  'width' => array(
167
- 'name' => __('Custom Width', INBOUND_LABEL),
168
- 'desc' => __('Enter in pixel width or % width. Example: 400 <u>or</u> 100%', INBOUND_LABEL),
169
  'type' => 'text',
170
  'std' => '',
171
  'class' => 'main-design-settings',
@@ -174,15 +199,15 @@
174
  'child' => array(
175
  'options' => array(
176
  'label' => array(
177
- 'name' => __('Field Label', INBOUND_LABEL),
178
  'desc' => '',
179
  'type' => 'text',
180
  'std' => '',
181
  'placeholder' => "Enter the Form Field Label. Example: First Name"
182
  ),
183
  'field_type' => array(
184
- 'name' => __('Field Type', INBOUND_LABEL),
185
- 'desc' => __('Select an form field type', INBOUND_LABEL),
186
  'type' => 'select',
187
  'options' => array(
188
  "text" => "Single Line Text",
@@ -204,84 +229,84 @@
204
  ),
205
 
206
  'dropdown_options' => array(
207
- 'name' => __('Dropdown choices', INBOUND_LABEL),
208
- 'desc' => __('Enter Your Dropdown Options. Separate by commas.', INBOUND_LABEL),
209
  'type' => 'text',
210
  'std' => '',
211
  'placeholder' => 'Choice 1, Choice 2, Choice 3',
212
  'reveal_on' => 'dropdown' // on select choice show this
213
  ),
214
  'radio_options' => array(
215
- 'name' => __('Radio Choices', INBOUND_LABEL),
216
- 'desc' => __('Enter Your Radio Options. Separate by commas.', INBOUND_LABEL),
217
  'type' => 'text',
218
  'std' => '',
219
  'placeholder' => 'Choice 1, Choice 2',
220
  'reveal_on' => 'radio' // on select choice show this
221
  ),
222
  'checkbox_options' => array(
223
- 'name' => __('Checkbox choices', INBOUND_LABEL),
224
- 'desc' => __('Enter Your Checkbox Options. Separate by commas.', INBOUND_LABEL),
225
  'type' => 'text',
226
  'std' => '',
227
  'placeholder' => 'Choice 1, Choice 2, Choice 3',
228
  'reveal_on' => 'checkbox' // on select choice show this
229
  ),
230
  'html_block_options' => array(
231
- 'name' => __('HTML Block', INBOUND_LABEL),
232
- 'desc' => __('This is a raw HTML block in the form. Insert text/HTML', INBOUND_LABEL),
233
  'type' => 'textarea',
234
  'std' => '',
235
  'reveal_on' => 'html-block' // on select choice show this
236
  ),
237
  'default_value' => array(
238
- 'name' => __('Default Value', INBOUND_LABEL),
239
- 'desc' => __('Enter the Default Value', INBOUND_LABEL),
240
  'type' => 'text',
241
  'std' => '',
242
  'placeholder' => 'Enter Default Value',
243
  'reveal_on' => 'hidden' // on select choice show this
244
  ),
245
  'divider_options' => array(
246
- 'name' => __('Divider Text (optional)', INBOUND_LABEL),
247
- 'desc' => __('This is the text in the divider', INBOUND_LABEL),
248
  'type' => 'text',
249
  'std' => '',
250
  'reveal_on' => 'divider' // on select choice show this
251
  ),
252
  'helper' => array(
253
- 'name' => __('Field Description <span class="small-optional-text">(optional)</span>', INBOUND_LABEL),
254
- 'desc' => __('<span class="show-advanced-fields">Show advanced fields</span>', INBOUND_LABEL),
255
  'type' => 'helper-block',
256
  'std' => '',
257
  'class' => '',
258
  ),
259
  'required' => array(
260
- 'name' => __('Required Field? <span class="small-optional-text">(optional)</span>', INBOUND_LABEL),
261
- 'checkbox_text' => __('Check to make field required', INBOUND_LABEL),
262
  'desc' => '',
263
  'type' => 'checkbox',
264
  'std' => '0',
265
  'class' => 'advanced',
266
  ),
267
  'placeholder' => array(
268
- 'name' => __('Field Placeholder <span class="small-optional-text">(optional)</span>', INBOUND_LABEL),
269
- 'desc' => __('Put field placeholder text here. Only works for normal text inputs', INBOUND_LABEL),
270
  'type' => 'text',
271
  'std' => '',
272
  'class' => 'advanced',
273
  ),
274
  'description' => array(
275
- 'name' => __('Field Description <span class="small-optional-text">(optional)</span>', INBOUND_LABEL),
276
- 'desc' => __('Put field description here.', INBOUND_LABEL),
277
  'type' => 'textarea',
278
  'std' => '',
279
  'class' => 'advanced',
280
  ),
281
 
282
  'hidden_input_options' => array(
283
- 'name' => __('Dynamic Field Filling', INBOUND_LABEL),
284
- 'desc' => __('Enter Your Dynamic URL parameter', INBOUND_LABEL),
285
  'type' => 'text',
286
  'std' => '',
287
  'placeholder' => 'enter dynamic url parameter example: utm_campaign ',
@@ -289,8 +314,8 @@
289
  //'reveal_on' => 'hidden' // on select choice show this
290
  ),
291
  'map_to' => array(
292
- 'name' => __('Map Field To', INBOUND_LABEL),
293
- 'desc' => __('Map this field to Leads Value', INBOUND_LABEL),
294
  'type' => 'select',
295
  'options' => $lead_mapping_fields,
296
  'std' => 'none',
@@ -298,10 +323,10 @@
298
  ),
299
  ),
300
  'shortcode' => '[inbound_field label="{{label}}" type="{{field_type}}" description="{{description}}" required="{{required}}" dropdown="{{dropdown_options}}" radio="{{radio_options}}" checkbox="{{checkbox_options}}" placeholder="{{placeholder}}" html="{{html_block_options}}" dynamic="{{hidden_input_options}}" default="{{default_value}}" map_to="{{map_to}}" divider_options="{{divider_options}}"]',
301
- 'clone' => __('Add Another Field', INBOUND_LABEL )
302
  ),
303
- 'shortcode' => '[inbound_form name="{{form_name}}" lists="{{lists_hidden}}" redirect="{{redirect}}" notify="{{notify}}" layout="{{layout}}" font_size="{{font-size}}" labels="{{labels}}" icon="{{icon}}" submit="{{submit}}" width="{{width}}"]{{child}}[/inbound_form]',
304
- 'popup_title' => __('Insert Inbound Form Shortcode', INBOUND_LABEL)
305
  );
306
 
307
  /* CPT Lead Lists */
@@ -417,7 +442,6 @@ if (!function_exists('inbound_get_form_names')) {
417
  'posts_per_page' => -1,
418
  'post_type'=> 'inbound-forms');
419
  $form_list = get_posts($args);
420
- //print_r($cta_list);
421
  $form_array = array();
422
  $default_array = array(
423
  "none" => "None (build your own in step 2)",
@@ -426,17 +450,13 @@ if (!function_exists('inbound_get_form_names')) {
426
  "default_form_2" => "Standard Company Form",
427
  // Add in other forms made here
428
  );
429
- foreach ( $form_list as $form )
430
- {
431
  $this_id = $form->ID;
432
  $this_link = get_permalink( $this_id );
433
  $title = $form->post_title;
434
-
435
-
436
  $form_array['form_' . $this_id] = $title;
437
 
438
-
439
- }
440
  $result = array_merge( $default_array, $form_array);
441
 
442
  set_transient('inbound-form-names', $result, 24 * HOUR_IN_SECONDS);
@@ -465,6 +485,31 @@ if (!function_exists('inbound_get_lead_list_names')) {
465
 
466
  }
467
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
468
  if (!function_exists('inbound_form_delete_transient')) {
469
  // Refresh transient
470
  function inbound_form_delete_transient($post_id, $post){
@@ -476,12 +521,8 @@ if (!function_exists('inbound_form_delete_transient')) {
476
  }
477
  }
478
  }
479
- add_action('save_post', 'inbound_form_delete_transient', 10, 2);
480
- add_action('edit_post', 'inbound_form_delete_transient', 10, 2);
481
- add_action('wp_insert_post', 'inbound_form_delete_transient', 10, 2);
482
 
483
- if (!function_exists('inbound_form_save'))
484
- {
485
  /* Shortcode moved to shared form class */
486
  add_action('wp_ajax_inbound_form_save', 'inbound_form_save');
487
  add_action('wp_ajax_nopriv_inbound_form_save', 'inbound_form_save');
@@ -645,8 +686,7 @@ if (!function_exists('inbound_form_get_data')) {
645
  }
646
  }
647
 
648
- if (!function_exists('inbound_form_auto_publish'))
649
- {
650
  /* Shortcode moved to shared form class */
651
  add_action('wp_ajax_inbound_form_auto_publish', 'inbound_form_auto_publish');
652
  add_action('wp_ajax_nopriv_inbound_form_auto_publish', 'inbound_form_auto_publish');
@@ -672,4 +712,4 @@ if (!function_exists('inbound_form_auto_publish'))
672
  }
673
  wp_die();
674
  }
675
- }
33
  );
34
  }
35
  //print_r($lead_mapping_fields);
36
+
37
  $shortcodes_config['forms'] = array(
38
  'no_preview' => false,
39
  'options' => array(
40
  'insert_default' => array(
41
+ 'name' => __('Choose Starting Template', 'leads'),
42
+ 'desc' => __('Start Building Your Form from premade templates', 'leads'),
43
  'type' => 'select',
44
  'options' => $form_names,
45
  'std' => 'none',
46
  'class' => 'main-form-settings',
47
  ),
48
  'form_name' => array(
49
+ 'name' => __('Form Name<span class="small-required-text">*</span>', 'leads'),
50
+ 'desc' => __('This is not shown to visitors', 'leads'),
51
  'type' => 'text',
52
  'placeholder' => "Example: XYZ Whitepaper Download",
53
  'std' => '',
54
  'class' => 'main-form-settings',
55
  ),
56
  /*'confirmation' => array(
57
+ 'name' => __('Form Layout', 'leads'),
58
+ 'desc' => __('Choose Your Form Layout', 'leads'),
59
  'type' => 'select',
60
  'options' => array(
61
  "redirect" => "Redirect After Form Completion",
64
  'std' => 'redirect'
65
  ),*/
66
  'redirect' => array(
67
+ 'name' => __('Redirect URL<span class="small-required-text">*</span>', 'leads'),
68
+ 'desc' => __('Where do you want to send people after they fill out the form?', 'leads'),
69
  'type' => 'text',
70
  'placeholder' => "http://www.yoursite.com/thank-you",
71
  'std' => '',
73
  'class' => 'main-form-settings',
74
  ),
75
  /*'thank_you_text' => array(
76
+ 'name' => __('Field Description <span class="small-optional-text">(optional)</span>', 'leads'),
77
+ 'desc' => __('Put field description here.', 'leads'),
78
  'type' => 'textarea',
79
  'std' => '',
80
  'class' => 'advanced',
81
  'reveal_on' => 'text'
82
  ), */
83
  'notify' => array(
84
+ 'name' => __('Notify on Form Completions<span class="small-required-text">*</span>', 'leads'),
85
+ 'desc' => __('Who should get admin notifications on this form?<br>For multiple notifications separate email addresses with commas', 'leads'),
86
  'type' => 'text',
87
  'placeholder' => "youremail@email.com",
88
  'std' => '',
89
  'class' => 'main-form-settings',
90
  ),
91
  'lists' => array(
92
+ 'name' => __('Add to List(s)', 'leads'),
93
+ 'desc' => __('Add the converting lead to 1 or more lead lists', 'leads'),
94
  'type' => 'multiselect',
95
  'options' => $lead_list_names,
96
  'class' => 'main-form-settings',
97
  ),
98
 
99
  'lists_hidden' => array(
100
+ 'name' => __('Hidden List Values', 'leads'),
101
+ 'desc' => __('Hidden list values', 'leads'),
102
  'type' => 'hidden',
103
  'class' => 'main-form-settings',
104
  ),
105
 
106
  'helper-block-one' => array(
107
+ 'name' => __('Name Name Name', 'leads'),
108
+ 'desc' => __('<span class="switch-to-form-insert button">Cancel Form Creation & Insert Existing Form</span>', 'leads'),
109
  'type' => 'helper-block',
110
  'std' => '',
111
  'class' => 'main-form-settings',
112
  ),
113
  'heading_design' => array(
114
+ 'name' => __('Name Name Name', 'leads'),
115
+ 'desc' => __('Layout Options', 'leads'),
116
  'type' => 'helper-block',
117
  'std' => '',
118
  'class' => 'main-design-settings',
119
  ),
120
  'layout' => array(
121
+ 'name' => __('Form Layout', 'leads'),
122
+ 'desc' => __('Choose Your Form Layout', 'leads'),
123
  'type' => 'select',
124
  'options' => array(
125
  "vertical" => "Vertical",
129
  'class' => 'main-design-settings',
130
  ),
131
  'labels' => array(
132
+ 'name' => __('Label Alignment', 'leads'),
133
+ 'desc' => __('Choose Label Layout', 'leads'),
134
  'type' => 'select',
135
  'options' => array(
136
  "top" => "Labels on Top",
142
  'class' => 'main-design-settings',
143
  ),
144
  'font-size' => array(
145
+ 'name' => __('Form Font Size', 'leads'),
146
+ 'desc' => __('Size of Label Font. This also determines default submit button size', 'leads'),
147
  'type' => 'text',
148
  'std' => '16',
149
  'class' => 'main-design-settings',
150
  ),
151
  'icon' => array(
152
+ 'name' => __('Submit Button Icon', 'leads'),
153
+ 'desc' => __('Select an icon.', 'leads'),
154
  'type' => 'select',
155
  'options' => $fontawesome,
156
  'std' => 'none',
157
  'class' => 'main-design-settings'
158
  ),
159
  'submit' => array(
160
+ 'name' => __('Submit Button Text', 'leads'),
161
+ 'desc' => __('Enter the text you want to show on the submit button. (or a link to a custom submit button image)', 'leads'),
162
  'type' => 'text',
163
  'std' => 'Submit',
164
  'class' => 'main-design-settings',
165
  ),
166
+ 'submit-colors' => array(
167
+ 'name' => __('Submit Color Options', 'leads'),
168
+ 'desc' => __('Choose Your Form Layout', 'leads'),
169
+ 'type' => 'select',
170
+ 'options' => array(
171
+ "on" => "Color Options On",
172
+ "off" => "Color Options Off (use theme defaults)",
173
+ ),
174
+ 'std' => 'on',
175
+ 'class' => 'main-design-settings',
176
+ ),
177
+ 'submit-text-color' => array(
178
+ 'name' => __('Button Text Color', 'leads'),
179
+ 'desc' => __('Color of text', 'leads'),
180
+ 'type' => 'colorpicker',
181
+ 'std' => '#434242',
182
+ 'class' => 'main-design-settings',
183
+ ),
184
+ 'submit-bg-color' => array(
185
+ 'name' => __('Button BG Color', 'leads'),
186
+ 'desc' => __('Background Color of Submit button', 'leads'),
187
+ 'type' => 'colorpicker',
188
+ 'std' => '#E9E9E9',
189
+ 'class' => 'main-design-settings',
190
+ ),
191
  'width' => array(
192
+ 'name' => __('Custom Width', 'leads'),
193
+ 'desc' => __('Enter in pixel width or % width. Example: 400 <u>or</u> 100%', 'leads'),
194
  'type' => 'text',
195
  'std' => '',
196
  'class' => 'main-design-settings',
199
  'child' => array(
200
  'options' => array(
201
  'label' => array(
202
+ 'name' => __('Field Label', 'leads'),
203
  'desc' => '',
204
  'type' => 'text',
205
  'std' => '',
206
  'placeholder' => "Enter the Form Field Label. Example: First Name"
207
  ),
208
  'field_type' => array(
209
+ 'name' => __('Field Type', 'leads'),
210
+ 'desc' => __('Select an form field type', 'leads'),
211
  'type' => 'select',
212
  'options' => array(
213
  "text" => "Single Line Text",
229
  ),
230
 
231
  'dropdown_options' => array(
232
+ 'name' => __('Dropdown choices', 'leads'),
233
+ 'desc' => __('Enter Your Dropdown Options. Separate by commas.', 'leads'),
234
  'type' => 'text',
235
  'std' => '',
236
  'placeholder' => 'Choice 1, Choice 2, Choice 3',
237
  'reveal_on' => 'dropdown' // on select choice show this
238
  ),
239
  'radio_options' => array(
240
+ 'name' => __('Radio Choices', 'leads'),
241
+ 'desc' => __('Enter Your Radio Options. Separate by commas.', 'leads'),
242
  'type' => 'text',
243
  'std' => '',
244
  'placeholder' => 'Choice 1, Choice 2',
245
  'reveal_on' => 'radio' // on select choice show this
246
  ),
247
  'checkbox_options' => array(
248
+ 'name' => __('Checkbox choices', 'leads'),
249
+ 'desc' => __('Enter Your Checkbox Options. Separate by commas.', 'leads'),
250
  'type' => 'text',
251
  'std' => '',
252
  'placeholder' => 'Choice 1, Choice 2, Choice 3',
253
  'reveal_on' => 'checkbox' // on select choice show this
254
  ),
255
  'html_block_options' => array(
256
+ 'name' => __('HTML Block', 'leads'),
257
+ 'desc' => __('This is a raw HTML block in the form. Insert text/HTML', 'leads'),
258
  'type' => 'textarea',
259
  'std' => '',
260
  'reveal_on' => 'html-block' // on select choice show this
261
  ),
262
  'default_value' => array(
263
+ 'name' => __('Default Value', 'leads'),
264
+ 'desc' => __('Enter the Default Value', 'leads'),
265
  'type' => 'text',
266
  'std' => '',
267
  'placeholder' => 'Enter Default Value',
268
  'reveal_on' => 'hidden' // on select choice show this
269
  ),
270
  'divider_options' => array(
271
+ 'name' => __('Divider Text (optional)', 'leads'),
272
+ 'desc' => __('This is the text in the divider', 'leads'),
273
  'type' => 'text',
274
  'std' => '',
275
  'reveal_on' => 'divider' // on select choice show this
276
  ),
277
  'helper' => array(
278
+ 'name' => __('Field Description <span class="small-optional-text">(optional)</span>', 'leads'),
279
+ 'desc' => __('<span class="show-advanced-fields">Show advanced fields</span>', 'leads'),
280
  'type' => 'helper-block',
281
  'std' => '',
282
  'class' => '',
283
  ),
284
  'required' => array(
285
+ 'name' => __('Required Field? <span class="small-optional-text">(optional)</span>', 'leads'),
286
+ 'checkbox_text' => __('Check to make field required', 'leads'),
287
  'desc' => '',
288
  'type' => 'checkbox',
289
  'std' => '0',
290
  'class' => 'advanced',
291
  ),
292
  'placeholder' => array(
293
+ 'name' => __('Field Placeholder <span class="small-optional-text">(optional)</span>', 'leads'),
294
+ 'desc' => __('Put field placeholder text here. Only works for normal text inputs', 'leads'),
295
  'type' => 'text',
296
  'std' => '',
297
  'class' => 'advanced',
298
  ),
299
  'description' => array(
300
+ 'name' => __('Field Description <span class="small-optional-text">(optional)</span>', 'leads'),
301
+ 'desc' => __('Put field description here.', 'leads'),
302
  'type' => 'textarea',
303
  'std' => '',
304
  'class' => 'advanced',
305
  ),
306
 
307
  'hidden_input_options' => array(
308
+ 'name' => __('Dynamic Field Filling', 'leads'),
309
+ 'desc' => __('Enter Your Dynamic URL parameter', 'leads'),
310
  'type' => 'text',
311
  'std' => '',
312
  'placeholder' => 'enter dynamic url parameter example: utm_campaign ',
314
  //'reveal_on' => 'hidden' // on select choice show this
315
  ),
316
  'map_to' => array(
317
+ 'name' => __('Map Field To', 'leads'),
318
+ 'desc' => __('Map this field to Leads Value', 'leads'),
319
  'type' => 'select',
320
  'options' => $lead_mapping_fields,
321
  'std' => 'none',
323
  ),
324
  ),
325
  'shortcode' => '[inbound_field label="{{label}}" type="{{field_type}}" description="{{description}}" required="{{required}}" dropdown="{{dropdown_options}}" radio="{{radio_options}}" checkbox="{{checkbox_options}}" placeholder="{{placeholder}}" html="{{html_block_options}}" dynamic="{{hidden_input_options}}" default="{{default_value}}" map_to="{{map_to}}" divider_options="{{divider_options}}"]',
326
+ 'clone' => __('Add Another Field', 'leads' )
327
  ),
328
+ 'shortcode' => '[inbound_form name="{{form_name}}" lists="{{lists_hidden}}" redirect="{{redirect}}" notify="{{notify}}" 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]',
329
+ 'popup_title' => __('Insert Inbound Form Shortcode', 'leads')
330
  );
331
 
332
  /* CPT Lead Lists */
442
  'posts_per_page' => -1,
443
  'post_type'=> 'inbound-forms');
444
  $form_list = get_posts($args);
 
445
  $form_array = array();
446
  $default_array = array(
447
  "none" => "None (build your own in step 2)",
450
  "default_form_2" => "Standard Company Form",
451
  // Add in other forms made here
452
  );
453
+ foreach ( $form_list as $form ) {
 
454
  $this_id = $form->ID;
455
  $this_link = get_permalink( $this_id );
456
  $title = $form->post_title;
 
 
457
  $form_array['form_' . $this_id] = $title;
458
 
459
+ }
 
460
  $result = array_merge( $default_array, $form_array);
461
 
462
  set_transient('inbound-form-names', $result, 24 * HOUR_IN_SECONDS);
485
 
486
  }
487
  }
488
+
489
+ add_action( 'edit_term', 'inbound_lists_delete_transient', 10, 3 );
490
+ add_action( 'created_term', 'inbound_lists_delete_transient', 10, 3 );
491
+ add_action( 'edited_term', 'inbound_lists_delete_transient', 10, 3 );
492
+ add_action( 'create_term', 'inbound_lists_delete_transient', 10, 3 );
493
+ add_action( 'delete_term', 'inbound_lists_delete_transient', 10, 3 );
494
+ if (!function_exists('inbound_lists_delete_transient')) {
495
+ function inbound_lists_delete_transient( $term_id, $tt_id, $taxonomy ) {
496
+ global $wpdb;
497
+ //print_r($taxonomy); exit;
498
+
499
+ $whitelist = array( 'wplead_list_category' ); /* maybe this needs to include attachment, revision, feedback as well? */
500
+ if ( !in_array( $taxonomy, $whitelist ) ) {
501
+ return array( 'term_id' => $term_id, 'term_taxonomy_id' => $tt_id );
502
+ }
503
+
504
+ delete_transient('inbound-list-names');
505
+ inbound_get_lead_list_names();
506
+
507
+ }
508
+ }
509
+
510
+ add_action('save_post', 'inbound_form_delete_transient', 10, 2);
511
+ add_action('edit_post', 'inbound_form_delete_transient', 10, 2);
512
+ add_action('wp_insert_post', 'inbound_form_delete_transient', 10, 2);
513
  if (!function_exists('inbound_form_delete_transient')) {
514
  // Refresh transient
515
  function inbound_form_delete_transient($post_id, $post){
521
  }
522
  }
523
  }
 
 
 
524
 
525
+ if (!function_exists('inbound_form_save')) {
 
526
  /* Shortcode moved to shared form class */
527
  add_action('wp_ajax_inbound_form_save', 'inbound_form_save');
528
  add_action('wp_ajax_nopriv_inbound_form_save', 'inbound_form_save');
686
  }
687
  }
688
 
689
+ if (!function_exists('inbound_form_auto_publish')) {
 
690
  /* Shortcode moved to shared form class */
691
  add_action('wp_ajax_inbound_form_auto_publish', 'inbound_form_auto_publish');
692
  add_action('wp_ajax_nopriv_inbound_form_auto_publish', 'inbound_form_auto_publish');
712
  }
713
  wp_die();
714
  }
715
+ }
shared/inbound-shortcodes/shortcodes/gmap.php CHANGED
@@ -9,78 +9,78 @@
9
  'no_preview' => true,
10
  'options' => array(
11
  'type' => array(
12
- 'name' => __('Map Type', INBOUND_LABEL),
13
- 'desc' => __('Select a map type', INBOUND_LABEL),
14
  'type' => 'select',
15
  'options' => array('HYBRID' => 'Hybrid', 'ROADMAP' => 'Road Map', 'SATELLITE' => 'Satellite', 'TERRAIN' => 'Terrain'),
16
  'std' => ''
17
  ),
18
  'width' => array(
19
- 'name' => __('Map Width', INBOUND_LABEL),
20
  'desc' => '',
21
  'type' => 'text',
22
  'std' => ''
23
  ),
24
  'height' => array(
25
- 'name' => __('Map Height', INBOUND_LABEL),
26
  'desc' => '',
27
  'type' => 'text',
28
  'std' => ''
29
  ),
30
  'address' => array(
31
- 'name' => __('Address', INBOUND_LABEL),
32
- 'desc' => __('Enter your address here. ex: "New York" or "New York, USA" If you want a accurate position please fill the Latitude and Longitude fields', INBOUND_LABEL),
33
  'type' => 'text',
34
  'std' => ''
35
  ),
36
  'latitude' => array(
37
- 'name' => __('Latitude', INBOUND_LABEL),
38
- 'desc' => __('Latitude is specified in degrees within the range [-90, 90]', INBOUND_LABEL),
39
  'type' => 'text',
40
  'std' => ''
41
  ),
42
  'longitude' => array(
43
- 'name' => __('Longitude', INBOUND_LABEL),
44
- 'desc' => __('Longitude is specified in degrees within the range [-180, 180]', INBOUND_LABEL),
45
  'type' => 'text',
46
  'std' => ''
47
  ),
48
  'zoom' => array(
49
- 'name' => __('Zoom', INBOUND_LABEL),
50
- 'desc' => __('Set the zoom level, numeric value from 1 to 19', INBOUND_LABEL),
51
  'type' => 'text',
52
  'std' => '8'
53
  ),
54
  'pancontrol' => array(
55
- 'name' => __('Pan Control', INBOUND_LABEL),
56
- 'desc' => __('Enable pan control?', INBOUND_LABEL),
57
  'type' => 'select',
58
  'options' => array('true' => 'Enable', 'false' => 'Disable'),
59
  'std' => ''
60
  ),
61
  'zoomcontrol' => array(
62
- 'name' => __('Zoom Control', INBOUND_LABEL),
63
- 'desc' => __('Enable zoom control?', INBOUND_LABEL),
64
  'type' => 'select',
65
  'options' => array('true' => 'Enable', 'false' => 'Disable'),
66
  'std' => ''
67
  ),
68
  'maptypecontrol' => array(
69
- 'name' => __('Map Type Control', INBOUND_LABEL),
70
- 'desc' => __('Enable map type control?', INBOUND_LABEL),
71
  'type' => 'select',
72
  'options' => array('true' => 'Enable', 'false' => 'Disable'),
73
  'std' => ''
74
  ),
75
  'content' => array(
76
- 'name' => __('Popup Content', INBOUND_LABEL),
77
- 'desc' => __('A descriptive text for the Google Map marker popup, ex: "My Office"', INBOUND_LABEL),
78
  'type' => 'textarea',
79
  'std' => ''
80
  )
81
  ),
82
  'shortcode' => '[gmap type="{{type}}" address="{{address}}" lat="{{latitude}}" lng="{{longitude}}" zoom="{{zoom}}" pancontrol="{{pancontrol}}" zoomcontrol="{{zoomcontrol}}" maptypecontrol="{{maptypecontrol}}" width="{{width}}" height="{{height}}"]{{content}}[/gmap]',
83
- 'popup_title' => __('Insert Google Map Shortcode', INBOUND_LABEL)
84
  );
85
 
86
  /* Add shortcode
9
  'no_preview' => true,
10
  'options' => array(
11
  'type' => array(
12
+ 'name' => __('Map Type', 'leads'),
13
+ 'desc' => __('Select a map type', 'leads'),
14
  'type' => 'select',
15
  'options' => array('HYBRID' => 'Hybrid', 'ROADMAP' => 'Road Map', 'SATELLITE' => 'Satellite', 'TERRAIN' => 'Terrain'),
16
  'std' => ''
17
  ),
18
  'width' => array(
19
+ 'name' => __('Map Width', 'leads'),
20
  'desc' => '',
21
  'type' => 'text',
22
  'std' => ''
23
  ),
24
  'height' => array(
25
+ 'name' => __('Map Height', 'leads'),
26
  'desc' => '',
27
  'type' => 'text',
28
  'std' => ''
29
  ),
30
  'address' => array(
31
+ 'name' => __('Address', 'leads'),
32
+ 'desc' => __('Enter your address here. ex: "New York" or "New York, USA" If you want a accurate position please fill the Latitude and Longitude fields', 'leads'),
33
  'type' => 'text',
34
  'std' => ''
35
  ),
36
  'latitude' => array(
37
+ 'name' => __('Latitude', 'leads'),
38
+ 'desc' => __('Latitude is specified in degrees within the range [-90, 90]', 'leads'),
39
  'type' => 'text',
40
  'std' => ''
41
  ),
42
  'longitude' => array(
43
+ 'name' => __('Longitude', 'leads'),
44
+ 'desc' => __('Longitude is specified in degrees within the range [-180, 180]', 'leads'),
45
  'type' => 'text',
46
  'std' => ''
47
  ),
48
  'zoom' => array(
49
+ 'name' => __('Zoom', 'leads'),
50
+ 'desc' => __('Set the zoom level, numeric value from 1 to 19', 'leads'),
51
  'type' => 'text',
52
  'std' => '8'
53
  ),
54
  'pancontrol' => array(
55
+ 'name' => __('Pan Control', 'leads'),
56
+ 'desc' => __('Enable pan control?', 'leads'),
57
  'type' => 'select',
58
  'options' => array('true' => 'Enable', 'false' => 'Disable'),
59
  'std' => ''
60
  ),
61
  'zoomcontrol' => array(
62
+ 'name' => __('Zoom Control', 'leads'),
63
+ 'desc' => __('Enable zoom control?', 'leads'),
64
  'type' => 'select',
65
  'options' => array('true' => 'Enable', 'false' => 'Disable'),
66
  'std' => ''
67
  ),
68
  'maptypecontrol' => array(
69
+ 'name' => __('Map Type Control', 'leads'),
70
+ 'desc' => __('Enable map type control?', 'leads'),
71
  'type' => 'select',
72
  'options' => array('true' => 'Enable', 'false' => 'Disable'),
73
  'std' => ''
74
  ),
75
  'content' => array(
76
+ 'name' => __('Popup Content', 'leads'),
77
+ 'desc' => __('A descriptive text for the Google Map marker popup, ex: "My Office"', 'leads'),
78
  'type' => 'textarea',
79
  'std' => ''
80
  )
81
  ),
82
  'shortcode' => '[gmap type="{{type}}" address="{{address}}" lat="{{latitude}}" lng="{{longitude}}" zoom="{{zoom}}" pancontrol="{{pancontrol}}" zoomcontrol="{{zoomcontrol}}" maptypecontrol="{{maptypecontrol}}" width="{{width}}" height="{{height}}"]{{content}}[/gmap]',
83
+ 'popup_title' => __('Insert Google Map Shortcode', 'leads')
84
  );
85
 
86
  /* Add shortcode
shared/inbound-shortcodes/shortcodes/icon.php CHANGED
@@ -8,40 +8,40 @@
8
  $shortcodes_config['icon'] = array(
9
  'options' => array(
10
  'icon' => array(
11
- 'name' => __('Icon', INBOUND_LABEL),
12
- 'desc' => __('Select the icon.', INBOUND_LABEL),
13
  'type' => 'select',
14
  'options' => $fontawesome,
15
  'std' => 'none'
16
  ),
17
  'size' => array(
18
- 'name' => __('Size', INBOUND_LABEL),
19
- 'desc' => __('Select the icon size.', INBOUND_LABEL),
20
  'type' => 'select',
21
  'options' => array(
22
- 'normal' => __('Normal Size', INBOUND_LABEL),
23
- 'large' => __('Large Size', INBOUND_LABEL),
24
- '2x' => __('2x Size', INBOUND_LABEL),
25
- '3x' => __('3x Size', INBOUND_LABEL),
26
- '4x' => __('4x Size', INBOUND_LABEL)
27
  ),
28
  'std' => 'normal'
29
  ),
30
  'style' => array(
31
- 'name' => __('Style', INBOUND_LABEL),
32
- 'desc' => __('Select the icon style.', INBOUND_LABEL),
33
  'type' => 'select',
34
  'options' => array(
35
- 'normal' => __('Normal', INBOUND_LABEL),
36
- 'muted' => __('Muted', INBOUND_LABEL),
37
- 'border' => __('Border', INBOUND_LABEL),
38
- 'spin' => __('Spin', INBOUND_LABEL)
39
  ),
40
  'std' => 'normal'
41
  ),
42
  ),
43
  'shortcode' => '[icon icon="{{icon}}" size="{{size}}" style="{{style}}"]',
44
- 'popup_title' => __('Insert Icon Shortcode', INBOUND_LABEL)
45
  );
46
 
47
  /* Add shortcode
8
  $shortcodes_config['icon'] = array(
9
  'options' => array(
10
  'icon' => array(
11
+ 'name' => __('Icon', 'leads'),
12
+ 'desc' => __('Select the icon.', 'leads'),
13
  'type' => 'select',
14
  'options' => $fontawesome,
15
  'std' => 'none'
16
  ),
17
  'size' => array(
18
+ 'name' => __('Size', 'leads'),
19
+ 'desc' => __('Select the icon size.', 'leads'),
20
  'type' => 'select',
21
  'options' => array(
22
+ 'normal' => __('Normal Size', 'leads'),
23
+ 'large' => __('Large Size', 'leads'),
24
+ '2x' => __('2x Size', 'leads'),
25
+ '3x' => __('3x Size', 'leads'),
26
+ '4x' => __('4x Size', 'leads')
27
  ),
28
  'std' => 'normal'
29
  ),
30
  'style' => array(
31
+ 'name' => __('Style', 'leads'),
32
+ 'desc' => __('Select the icon style.', 'leads'),
33
  'type' => 'select',
34
  'options' => array(
35
+ 'normal' => __('Normal', 'leads'),
36
+ 'muted' => __('Muted', 'leads'),
37
+ 'border' => __('Border', 'leads'),
38
+ 'spin' => __('Spin', 'leads')
39
  ),
40
  'std' => 'normal'
41
  ),
42
  ),
43
  'shortcode' => '[icon icon="{{icon}}" size="{{size}}" style="{{style}}"]',
44
+ 'popup_title' => __('Insert Icon Shortcode', 'leads')
45
  );
46
 
47
  /* Add shortcode
shared/inbound-shortcodes/shortcodes/intro.php CHANGED
@@ -9,62 +9,62 @@
9
  'no_preview' => true,
10
  'options' => array(
11
  'title' => array(
12
- 'name' => __('Title', INBOUND_LABEL),
13
- 'desc' => __('Enter the heading text.', INBOUND_LABEL),
14
  'type' => 'text',
15
  'std' => ''
16
  ),
17
  'alignment' => array(
18
- 'name' => __('Text Alignment', INBOUND_LABEL),
19
- 'desc' => __('Enter text alignment.', INBOUND_LABEL),
20
  'type' => 'select',
21
  'options' => array(
22
- 'align-center' => __('Align Center', INBOUND_LABEL),
23
- 'align-left' => __('Align Left', INBOUND_LABEL),
24
- 'align-right' => __('Align Right', INBOUND_LABEL)
25
  ),
26
  'std' => 'align-left',
27
  ),
28
  'content' => array(
29
- 'name' => __('Content', INBOUND_LABEL),
30
- 'desc' => __('Enter the content', INBOUND_LABEL),
31
  'type' => 'textarea',
32
  'std' => ''
33
  )
34
  ),
35
  'shortcode' => '[intro title="{{title}}" alignment="{{alignment}}"]{{content}}[/intro]',
36
- 'popup_title' => __('Insert Intro Shortcode', INBOUND_LABEL)
37
  );
38
 
39
  /* Page builder module config
40
  * ----------------------------------------------------- */
41
  $freshbuilder_modules['intro'] = array(
42
- 'name' => __('Intro', INBOUND_LABEL),
43
  'size' => 'one_full',
44
  'options' => array(
45
  'title' => array(
46
- 'name' => __('Title', INBOUND_LABEL),
47
- 'desc' => __('Enter the heading text.', INBOUND_LABEL),
48
  'type' => 'text',
49
  'class' => '',
50
  'is_content' => 0
51
  ),
52
  'alignment' => array(
53
- 'name' => __('Text Alignment', INBOUND_LABEL),
54
- 'desc' => __('The text alignment', INBOUND_LABEL),
55
  'type' => 'select',
56
  'options' => array(
57
- 'align-center' => __('Align Center', INBOUND_LABEL),
58
- 'align-left' => __('Align Left', INBOUND_LABEL),
59
- 'align-right' => __('Align Right', INBOUND_LABEL)
60
  ),
61
  'std' => 'align-left',
62
  'class' => '',
63
  'is_content' => 0
64
  ),
65
  'content' => array(
66
- 'name' => __('Content', INBOUND_LABEL),
67
- 'desc' => __('Enter the content', INBOUND_LABEL),
68
  'type' => 'textarea',
69
  'std' => '',
70
  'class' => '',
9
  'no_preview' => true,
10
  'options' => array(
11
  'title' => array(
12
+ 'name' => __('Title', 'leads'),
13
+ 'desc' => __('Enter the heading text.', 'leads'),
14
  'type' => 'text',
15
  'std' => ''
16
  ),
17
  'alignment' => array(
18
+ 'name' => __('Text Alignment', 'leads'),
19
+ 'desc' => __('Enter text alignment.', 'leads'),
20
  'type' => 'select',
21
  'options' => array(
22
+ 'align-center' => __('Align Center', 'leads'),
23
+ 'align-left' => __('Align Left', 'leads'),
24
+ 'align-right' => __('Align Right', 'leads')
25
  ),
26
  'std' => 'align-left',
27
  ),
28
  'content' => array(
29
+ 'name' => __('Content', 'leads'),
30
+ 'desc' => __('Enter the content', 'leads'),
31
  'type' => 'textarea',
32
  'std' => ''
33
  )
34
  ),
35
  'shortcode' => '[intro title="{{title}}" alignment="{{alignment}}"]{{content}}[/intro]',
36
+ 'popup_title' => __('Insert Intro Shortcode', 'leads')
37
  );
38
 
39
  /* Page builder module config
40
  * ----------------------------------------------------- */
41
  $freshbuilder_modules['intro'] = array(
42
+ 'name' => __('Intro', 'leads'),
43
  'size' => 'one_full',
44
  'options' => array(
45
  'title' => array(
46
+ 'name' => __('Title', 'leads'),
47
+ 'desc' => __('Enter the heading text.', 'leads'),
48
  'type' => 'text',
49
  'class' => '',
50
  'is_content' => 0
51
  ),
52
  'alignment' => array(
53
+ 'name' => __('Text Alignment', 'leads'),
54
+ 'desc' => __('The text alignment', 'leads'),
55
  'type' => 'select',
56
  'options' => array(
57
+ 'align-center' => __('Align Center', 'leads'),
58
+ 'align-left' => __('Align Left', 'leads'),
59
+ 'align-right' => __('Align Right', 'leads')
60
  ),
61
  'std' => 'align-left',
62
  'class' => '',
63
  'is_content' => 0
64
  ),
65
  'content' => array(
66
+ 'name' => __('Content', 'leads'),
67
+ 'desc' => __('Enter the content', 'leads'),
68
  'type' => 'textarea',
69
  'std' => '',
70
  'class' => '',
shared/inbound-shortcodes/shortcodes/landing-page-list.php CHANGED
@@ -11,63 +11,63 @@
11
  'no_preview' => true,
12
  'options' => array(
13
  'heading' => array(
14
- 'name' => __('Heading Text', INBOUND_LABEL),
15
- 'desc' => __('Enter the heading text.', INBOUND_LABEL),
16
  'type' => 'text',
17
  'std' => 'Recent Content Offers'
18
  ),
19
  'column' => array(
20
- 'name' => __('Column', INBOUND_LABEL),
21
- 'desc' => __('Select the number of column.', INBOUND_LABEL),
22
  'type' => 'select',
23
  'options' => array(
24
- '2' => __('2 Columns', INBOUND_LABEL),
25
- '3' => __('3 Columns', INBOUND_LABEL),
26
- '4' => __('4 Columns', INBOUND_LABEL)
27
  ),
28
  'std' => '4'
29
  ),
30
  'number' => array(
31
- 'name' => __('Post Number', INBOUND_LABEL),
32
- 'desc' => __('Enter the number of post to show.', INBOUND_LABEL),
33
  'type' => 'text',
34
  'std' => '4'
35
  )
36
  ),
37
  'shortcode' => '[landing-page-list heading="{{heading}}" column="{{column}}" number="{{number}}"]',
38
- 'popup_title' => __('Insert Landing Page List Shortcode', INBOUND_LABEL)
39
  );
40
 
41
  /* Page builder module config
42
  * ----------------------------------------------------- */
43
  $freshbuilder_modules['landing-page-list'] = array(
44
- 'name' => __('Portfolio', INBOUND_LABEL),
45
  'size' => 'one_full',
46
  'options' => array(
47
  'heading' => array(
48
- 'name' => __('Heading', INBOUND_LABEL),
49
- 'desc' => __('Enter the heading text.', INBOUND_LABEL),
50
  'type' => 'text',
51
  'std' => 'Recent Project',
52
  'class' => '',
53
  'is_content' => 0
54
  ),
55
  'column' => array(
56
- 'name' => __('Column', INBOUND_LABEL),
57
- 'desc' => __('Select the number of column.', INBOUND_LABEL),
58
  'type' => 'select',
59
  'options' => array(
60
- '2' => __('2 Columns', INBOUND_LABEL),
61
- '3' => __('3 Columns', INBOUND_LABEL),
62
- '4' => __('4 Columns', INBOUND_LABEL)
63
  ),
64
  'std' => '4',
65
  'class' => '',
66
  'is_content' => 0
67
  ),
68
  'number' => array(
69
- 'name' => __('Post Number', INBOUND_LABEL),
70
- 'desc' => __('Enter the number of post to show.', INBOUND_LABEL),
71
  'type' => 'text',
72
  'std' => '4',
73
  'class' => '',
@@ -114,7 +114,7 @@
114
  <figure class="item-thumb">
115
  '.get_the_post_thumbnail($post->ID, '500x360').'
116
  <div class="overlay">
117
- <a class="view-link" href="'.get_permalink().'" rel="bookmark">'.__('View Project', INBOUND_LABEL) .'</a>
118
  </div>
119
  </figure>
120
 
11
  'no_preview' => true,
12
  'options' => array(
13
  'heading' => array(
14
+ 'name' => __('Heading Text', 'leads'),
15
+ 'desc' => __('Enter the heading text.', 'leads'),
16
  'type' => 'text',
17
  'std' => 'Recent Content Offers'
18
  ),
19
  'column' => array(
20
+ 'name' => __('Column', 'leads'),
21
+ 'desc' => __('Select the number of column.', 'leads'),
22
  'type' => 'select',
23
  'options' => array(
24
+ '2' => __('2 Columns', 'leads'),
25
+ '3' => __('3 Columns', 'leads'),
26
+ '4' => __('4 Columns', 'leads')
27
  ),
28
  'std' => '4'
29
  ),
30
  'number' => array(
31
+ 'name' => __('Post Number', 'leads'),
32
+ 'desc' => __('Enter the number of post to show.', 'leads'),
33
  'type' => 'text',
34
  'std' => '4'
35
  )
36
  ),
37
  'shortcode' => '[landing-page-list heading="{{heading}}" column="{{column}}" number="{{number}}"]',
38
+ 'popup_title' => __('Insert Landing Page List Shortcode', 'leads')
39
  );
40
 
41
  /* Page builder module config
42
  * ----------------------------------------------------- */
43
  $freshbuilder_modules['landing-page-list'] = array(
44
+ 'name' => __('Portfolio', 'leads'),
45
  'size' => 'one_full',
46
  'options' => array(
47
  'heading' => array(
48
+ 'name' => __('Heading', 'leads'),
49
+ 'desc' => __('Enter the heading text.', 'leads'),
50
  'type' => 'text',
51
  'std' => 'Recent Project',
52
  'class' => '',
53
  'is_content' => 0
54
  ),
55
  'column' => array(
56
+ 'name' => __('Column', 'leads'),
57
+ 'desc' => __('Select the number of column.', 'leads'),
58
  'type' => 'select',
59
  'options' => array(
60
+ '2' => __('2 Columns', 'leads'),
61
+ '3' => __('3 Columns', 'leads'),
62
+ '4' => __('4 Columns', 'leads')
63
  ),
64
  'std' => '4',
65
  'class' => '',
66
  'is_content' => 0
67
  ),
68
  'number' => array(
69
+ 'name' => __('Post Number', 'leads'),
70
+ 'desc' => __('Enter the number of post to show.', 'leads'),
71
  'type' => 'text',
72
  'std' => '4',
73
  'class' => '',
114
  <figure class="item-thumb">
115
  '.get_the_post_thumbnail($post->ID, '500x360').'
116
  <div class="overlay">
117
+ <a class="view-link" href="'.get_permalink().'" rel="bookmark">'.__('View Project', 'leads') .'</a>
118
  </div>
119
  </figure>
120
 
shared/inbound-shortcodes/shortcodes/landing_pages.php CHANGED
@@ -9,95 +9,95 @@
9
  'no_preview' => true,
10
  'options' => array(
11
  'heading' => array(
12
- 'name' => __('Heading Text', INBOUND_LABEL),
13
- 'desc' => __('Enter the heading text.', INBOUND_LABEL),
14
  'type' => 'text',
15
  'std' => 'Recent Landing Pages'
16
  ),
17
  'column' => array(
18
- 'name' => __('Column', INBOUND_LABEL),
19
- 'desc' => __('Select the number of column.', INBOUND_LABEL),
20
  'type' => 'select',
21
  'options' => array(
22
- '1' => __('1 Column', INBOUND_LABEL),
23
- '2' => __('2 Columns', INBOUND_LABEL),
24
- '3' => __('3 Columns', INBOUND_LABEL),
25
- '4' => __('4 Columns', INBOUND_LABEL),
26
- '5' => __('5 Columns', INBOUND_LABEL)
27
  ),
28
  'std' => '4'
29
  ),
30
  'number' => array(
31
- 'name' => __('Post Number', INBOUND_LABEL),
32
- 'desc' => __('Enter the number of post to show. (enter -1 for all posts)', INBOUND_LABEL),
33
  'type' => 'text',
34
  'std' => '4'
35
  ),
36
  'cat' => array(
37
- 'name' => __('Category', INBOUND_LABEL),
38
- 'desc' => __('Optional you can sort by a category.', INBOUND_LABEL),
39
  'type' => 'select',
40
  'options' => $lp_cats,
41
  'std' => ''
42
  ),
43
  'excerpt_lenght' => array(
44
- 'name' => __('Excerpt Lenght', INBOUND_LABEL),
45
- 'desc' => __('The post excerpt word lenght.', INBOUND_LABEL),
46
  'type' => 'text',
47
  'std' => '30'
48
  ),
49
  'thumbs' => array(
50
- 'name' => __('Show Featured Thumbnails', INBOUND_LABEL),
51
- 'checkbox_text' => __('Uncheck to hide featured thumbnails', INBOUND_LABEL),
52
  'desc' => '',
53
  'type' => 'checkbox',
54
  'std' => '1'
55
  ),
56
  ),
57
  'shortcode' => '[landing_pages heading="{{heading}}" column="{{column}}" number="{{number}}" cat="{{cat}}" excerpt_lenght="{{excerpt_lenght}}" thumbs="{{thumbs}}"]',
58
- 'popup_title' => __('Insert Landing Page List Shortcode', INBOUND_LABEL)
59
  );
60
 
61
  /* Page builder module config
62
  * ----------------------------------------------------- */
63
  $freshbuilder_modules['landing_pages'] = array(
64
- 'name' => __('Entries', INBOUND_LABEL),
65
  'size' => 'one_full',
66
  'options' => array(
67
  'heading' => array(
68
- 'name' => __('Heading', INBOUND_LABEL),
69
- 'desc' => __('Enter the heading text.', INBOUND_LABEL),
70
  'type' => 'text',
71
  'std' => 'Recent Posts',
72
  'class' => '',
73
  'is_content' => '0'
74
  ),
75
  'column' => array(
76
- 'name' => __('Column', INBOUND_LABEL),
77
- 'desc' => __('Select the number of column.', INBOUND_LABEL),
78
  'type' => 'select',
79
  'options' => array(
80
- '1' => __('1 Column', INBOUND_LABEL),
81
- '2' => __('2 Columns', INBOUND_LABEL),
82
- '3' => __('3 Columns', INBOUND_LABEL),
83
- '4' => __('4 Columns', INBOUND_LABEL),
84
- '5' => __('5 Columns', INBOUND_LABEL)
85
  ),
86
  'std' => '4',
87
  'class' => '',
88
  'is_content' => '0'
89
  ),
90
  'number' => array(
91
- 'name' => __('Post Number', INBOUND_LABEL),
92
- 'desc' => __('Enter the number of post to show.', INBOUND_LABEL),
93
  'type' => 'text',
94
  'std' => '4',
95
  'class' => '',
96
  'is_content' => '0'
97
  ),
98
  'cat' => array(
99
- 'name' => __('Category', INBOUND_LABEL),
100
- 'desc' => __('Optional you can sort by a category.', INBOUND_LABEL),
101
  'type' => 'select',
102
  'options' => $lp_cats,
103
  'std' => '',
@@ -105,8 +105,8 @@
105
  'is_content' => '0'
106
  ),
107
  'excerpt_lenght' => array(
108
- 'name' => __('Excerpt Lenght', INBOUND_LABEL),
109
- 'desc' => __('The post excerpt word lenght.', INBOUND_LABEL),
110
  'type' => 'text',
111
  'std' => '30',
112
  'class' => '',
9
  'no_preview' => true,
10
  'options' => array(
11
  'heading' => array(
12
+ 'name' => __('Heading Text', 'leads'),
13
+ 'desc' => __('Enter the heading text.', 'leads'),
14
  'type' => 'text',
15
  'std' => 'Recent Landing Pages'
16
  ),
17
  'column' => array(
18
+ 'name' => __('Column', 'leads'),
19
+ 'desc' => __('Select the number of column.', 'leads'),
20
  'type' => 'select',
21
  'options' => array(
22
+ '1' => __('1 Column', 'leads'),
23
+ '2' => __('2 Columns', 'leads'),
24
+ '3' => __('3 Columns', 'leads'),
25
+ '4' => __('4 Columns', 'leads'),
26
+ '5' => __('5 Columns', 'leads')
27
  ),
28
  'std' => '4'
29
  ),
30
  'number' => array(
31
+ 'name' => __('Post Number', 'leads'),
32
+ 'desc' => __('Enter the number of post to show. (enter -1 for all posts)', 'leads'),
33
  'type' => 'text',
34
  'std' => '4'
35
  ),
36
  'cat' => array(
37
+ 'name' => __('Category', 'leads'),
38
+ 'desc' => __('Optional you can sort by a category.', 'leads'),
39
  'type' => 'select',
40
  'options' => $lp_cats,
41
  'std' => ''
42
  ),
43
  'excerpt_lenght' => array(
44
+ 'name' => __('Excerpt Lenght', 'leads'),
45
+ 'desc' => __('The post excerpt word lenght.', 'leads'),
46
  'type' => 'text',
47
  'std' => '30'
48
  ),
49
  'thumbs' => array(
50
+ 'name' => __('Show Featured Thumbnails', 'leads'),
51
+ 'checkbox_text' => __('Uncheck to hide featured thumbnails', 'leads'),
52
  'desc' => '',
53
  'type' => 'checkbox',
54
  'std' => '1'
55
  ),
56
  ),
57
  'shortcode' => '[landing_pages heading="{{heading}}" column="{{column}}" number="{{number}}" cat="{{cat}}" excerpt_lenght="{{excerpt_lenght}}" thumbs="{{thumbs}}"]',
58
+ 'popup_title' => __('Insert Landing Page List Shortcode', 'leads')
59
  );
60
 
61
  /* Page builder module config
62
  * ----------------------------------------------------- */
63
  $freshbuilder_modules['landing_pages'] = array(
64
+ 'name' => __('Entries', 'leads'),
65
  'size' => 'one_full',
66
  'options' => array(
67
  'heading' => array(
68
+ 'name' => __('Heading', 'leads'),
69
+ 'desc' => __('Enter the heading text.', 'leads'),
70
  'type' => 'text',
71
  'std' => 'Recent Posts',
72
  'class' => '',
73
  'is_content' => '0'
74
  ),
75
  'column' => array(
76
+ 'name' => __('Column', 'leads'),
77
+ 'desc' => __('Select the number of column.', 'leads'),
78
  'type' => 'select',
79
  'options' => array(
80
+ '1' => __('1 Column', 'leads'),
81
+ '2' => __('2 Columns', 'leads'),
82
+ '3' => __('3 Columns', 'leads'),
83
+ '4' => __('4 Columns', 'leads'),
84
+ '5' => __('5 Columns', 'leads')
85
  ),
86
  'std' => '4',
87
  'class' => '',
88
  'is_content' => '0'
89
  ),
90
  'number' => array(
91
+ 'name' => __('Post Number', 'leads'),
92
+ 'desc' => __('Enter the number of post to show.', 'leads'),
93
  'type' => 'text',
94
  'std' => '4',
95
  'class' => '',
96
  'is_content' => '0'
97
  ),
98
  'cat' => array(
99
+ 'name' => __('Category', 'leads'),
100
+ 'desc' => __('Optional you can sort by a category.', 'leads'),
101
  'type' => 'select',
102
  'options' => $lp_cats,
103
  'std' => '',
105
  'is_content' => '0'
106
  ),
107
  'excerpt_lenght' => array(
108
+ 'name' => __('Excerpt Lenght', 'leads'),
109
+ 'desc' => __('The post excerpt word lenght.', 'leads'),
110
  'type' => 'text',
111
  'std' => '30',
112
  'class' => '',
shared/inbound-shortcodes/shortcodes/leadp.php CHANGED
@@ -9,8 +9,8 @@
9
  'no_preview' => true,
10
  'options' => array(
11
  'align' => array(
12
- 'name' => __('Alignment', INBOUND_LABEL),
13
- 'desc' => __('Add the pharagraph alignment', INBOUND_LABEL),
14
  'type' => 'select',
15
  'options' => array(
16
  'left' => 'Align Left',
@@ -20,14 +20,14 @@
20
  'std' => ''
21
  ),
22
  'content' => array(
23
- 'name' => __('Paragraph Text', INBOUND_LABEL),
24
- 'desc' => __('Add the pharagraph text', INBOUND_LABEL),
25
  'type' => 'textarea',
26
  'std' => ''
27
  )
28
  ),
29
  'shortcode' => '[leadp align="{{align}}"]{{content}}[/leadp]',
30
- 'popup_title' => __('Insert Lead Paragraph Shortcode', INBOUND_LABEL)
31
  );
32
 
33
  /* Add shortcode
9
  'no_preview' => true,
10
  'options' => array(
11
  'align' => array(
12
+ 'name' => __('Alignment', 'leads'),
13
+ 'desc' => __('Add the pharagraph alignment', 'leads'),
14
  'type' => 'select',
15
  'options' => array(
16
  'left' => 'Align Left',
20
  'std' => ''
21
  ),
22
  'content' => array(
23
+ 'name' => __('Paragraph Text', 'leads'),
24
+ 'desc' => __('Add the pharagraph text', 'leads'),
25
  'type' => 'textarea',
26
  'std' => ''
27
  )
28
  ),
29
  'shortcode' => '[leadp align="{{align}}"]{{content}}[/leadp]',
30
+ 'popup_title' => __('Insert Lead Paragraph Shortcode', 'leads')
31
  );
32
 
33
  /* Add shortcode
shared/inbound-shortcodes/shortcodes/list-icon.php CHANGED
@@ -11,24 +11,24 @@
11
  'child' => array(
12
  'options' => array(
13
  'icon' => array(
14
- 'name' => __('Icon', INBOUND_LABEL),
15
- 'desc' => __('Select the icon.', INBOUND_LABEL),
16
  'type' => 'select',
17
  'options' => $fontawesome,
18
  'std' => 'none'
19
  ),
20
  'content' => array(
21
- 'name' => __('List Content', INBOUND_LABEL),
22
- 'desc' => __('Put the content here.', INBOUND_LABEL),
23
  'type' => 'textarea',
24
  'std' => ''
25
  )
26
  ),
27
  'shortcode' => '[list icon="{{icon}}"]{{content}}[/list]',
28
- 'clone' => __('Add More List', INBOUND_LABEL )
29
  ),
30
  'shortcode' => '[list_icons]{{child}}[/list_icons]',
31
- 'popup_title' => __('Insert List Icons Shortcode', INBOUND_LABEL)
32
  );
33
 
34
  /* Add shortcode
11
  'child' => array(
12
  'options' => array(
13
  'icon' => array(
14
+ 'name' => __('Icon', 'leads'),
15
+ 'desc' => __('Select the icon.', 'leads'),
16
  'type' => 'select',
17
  'options' => $fontawesome,
18
  'std' => 'none'
19
  ),
20
  'content' => array(
21
+ 'name' => __('List Content', 'leads'),
22
+ 'desc' => __('Put the content here.', 'leads'),
23
  'type' => 'textarea',
24
  'std' => ''
25
  )
26
  ),
27
  'shortcode' => '[list icon="{{icon}}"]{{content}}[/list]',
28
+ 'clone' => __('Add More List', 'leads' )
29
  ),
30
  'shortcode' => '[list_icons]{{child}}[/list_icons]',
31
+ 'popup_title' => __('Insert List Icons Shortcode', 'leads')
32
  );
33
 
34
  /* Add shortcode
shared/inbound-shortcodes/shortcodes/lists.php CHANGED
@@ -9,39 +9,39 @@
9
  'no_preview' => false,
10
  'options' => array(
11
  'icon' => array(
12
- 'name' => __('List Icon', INBOUND_LABEL),
13
- 'desc' => __('Select an icon for the List', INBOUND_LABEL),
14
  'type' => 'select',
15
  'options' => $fontawesome,
16
  'std' => 'ok-sign'
17
  ),
18
  'font-size' => array(
19
- 'name' => __('Font Size', INBOUND_LABEL),
20
- 'desc' => __('Size of List Font', INBOUND_LABEL),
21
  'type' => 'text',
22
  'std' => '16'
23
  ),
24
  'bottom-margin' => array(
25
- 'name' => __('Bottom Margin', INBOUND_LABEL),
26
- 'desc' => __('space between list items', INBOUND_LABEL),
27
  'type' => 'text',
28
  'std' => '10'
29
  ),
30
  'icon-color' => array(
31
- 'name' => __('Icon Color', INBOUND_LABEL),
32
- 'desc' => __('Color of Icon', INBOUND_LABEL),
33
  'type' => 'colorpicker',
34
  'std' => '000000'
35
  ),
36
  'text-color' => array(
37
- 'name' => __('Text Color', INBOUND_LABEL),
38
- 'desc' => __('Color of Text in List', INBOUND_LABEL),
39
  'type' => 'colorpicker',
40
  'std' => ''
41
  ),
42
  'columns' => array(
43
- 'name' => __('Number of Columns', INBOUND_LABEL),
44
- 'desc' => __('Number of Columns', INBOUND_LABEL),
45
  'type' => 'select',
46
  'options' => array(
47
  "1" => "Single Column (default)",
@@ -56,5 +56,5 @@
56
 
57
  ),
58
  'shortcode' => '[list icon="{{icon}}" font_size="{{font-size}}" icon_color="{{icon-color}}" text_color="{{text-color}}" columns="{{columns}}" bottom_margin="{{bottom-margin}}"](Insert Your Unordered List Here. Use the List insert button in the editor. Delete this text)[/list]',
59
- 'popup_title' => __('Insert Styled List Shortcode', INBOUND_LABEL)
60
  );
9
  'no_preview' => false,
10
  'options' => array(
11
  'icon' => array(
12
+ 'name' => __('List Icon', 'leads'),
13
+ 'desc' => __('Select an icon for the List', 'leads'),
14
  'type' => 'select',
15
  'options' => $fontawesome,
16
  'std' => 'ok-sign'
17
  ),
18
  'font-size' => array(
19
+ 'name' => __('Font Size', 'leads'),
20
+ 'desc' => __('Size of List Font', 'leads'),
21
  'type' => 'text',
22
  'std' => '16'
23
  ),
24
  'bottom-margin' => array(
25
+ 'name' => __('Bottom Margin', 'leads'),
26
+ 'desc' => __('space between list items', 'leads'),
27
  'type' => 'text',
28
  'std' => '10'
29
  ),
30
  'icon-color' => array(
31
+ 'name' => __('Icon Color', 'leads'),
32
+ 'desc' => __('Color of Icon', 'leads'),
33
  'type' => 'colorpicker',
34
  'std' => '000000'
35
  ),
36
  'text-color' => array(
37
+ 'name' => __('Text Color', 'leads'),
38
+ 'desc' => __('Color of Text in List', 'leads'),
39
  'type' => 'colorpicker',
40
  'std' => ''
41
  ),
42
  'columns' => array(
43
+ 'name' => __('Number of Columns', 'leads'),
44
+ 'desc' => __('Number of Columns', 'leads'),
45
  'type' => 'select',
46
  'options' => array(
47
  "1" => "Single Column (default)",
56
 
57
  ),
58
  'shortcode' => '[list icon="{{icon}}" font_size="{{font-size}}" icon_color="{{icon-color}}" text_color="{{text-color}}" columns="{{columns}}" bottom_margin="{{bottom-margin}}"](Insert Your Unordered List Here. Use the List insert button in the editor. Delete this text)[/list]',
59
+ 'popup_title' => __('Insert Styled List Shortcode', 'leads')
60
  );
shared/inbound-shortcodes/shortcodes/pricing.php CHANGED
@@ -9,14 +9,14 @@
9
  'no_preview' => true,
10
  'options' => array(
11
  'column' => array(
12
- 'name' => __('Column', INBOUND_LABEL),
13
- 'desc' => __('Select the column.', INBOUND_LABEL),
14
  'type' => 'select',
15
  'options' => array(
16
- '2' => __('2 Columns', INBOUND_LABEL),
17
- '3' => __('3 Columns', INBOUND_LABEL),
18
- '4' => __('4 Columns', INBOUND_LABEL),
19
- '5' => __('5 Columns', INBOUND_LABEL)
20
  ),
21
  'std' => '4',
22
  )
@@ -24,70 +24,70 @@
24
  'child' => array(
25
  'options' => array(
26
  'featured' => array(
27
- 'name' => __('Featured Plan', INBOUND_LABEL),
28
- 'desc' => __('Check to set this plan as featured', INBOUND_LABEL),
29
  'type' => 'checkbox',
30
  'std' => '0',
31
  ),
32
  'title' => array(
33
- 'name' => __('Plan Title', INBOUND_LABEL),
34
- 'desc' => __('Enter the plan title.', INBOUND_LABEL),
35
  'type' => 'text',
36
  'std' => ''
37
  ),
38
  'price' => array(
39
- 'name' => __('Plan Price', INBOUND_LABEL),
40
- 'desc' => __('Enter the plan price.', INBOUND_LABEL),
41
  'type' => 'text',
42
  'std' => ''
43
  ),
44
  'term' => array(
45
- 'name' => __('Plan Term', INBOUND_LABEL),
46
- 'desc' => __('Enter the plan term. e.g : "per month", "per year" etc.', INBOUND_LABEL),
47
  'type' => 'text',
48
  'std' => ''
49
  ),
50
  'button_text' => array(
51
- 'name' => __('Plan Button Text', INBOUND_LABEL),
52
- 'desc' => __('Enter the button text label.', INBOUND_LABEL),
53
  'type' => 'text',
54
  'std' => ''
55
  ),
56
  'button_link' => array(
57
- 'name' => __('Plan Button Link', INBOUND_LABEL),
58
- 'desc' => __('Enter the button link destination URL.', INBOUND_LABEL),
59
  'type' => 'text',
60
  'std' => ''
61
  ),
62
  'content' => array(
63
- 'name' => __('Plan Content', INBOUND_LABEL),
64
- 'desc' => __('Put the content here.', INBOUND_LABEL),
65
  'type' => 'textarea',
66
  'std' => ''
67
  )
68
  ),
69
  'shortcode' => '[plan featured="{{featured}}" title="{{title}}" price="{{price}}" term="{{term}}" button_text="{{button_text}}" button_link="{{button_link}}"]{{content}}[/plan]',
70
- 'clone' => __('Add More Testimony', INBOUND_LABEL )
71
  ),
72
  'shortcode' => '[pricing column="{{column}}"]{{child}}[/pricing]',
73
- 'popup_title' => __('Insert Pricing Shortcode', INBOUND_LABEL)
74
  );
75
 
76
  /* Page builder module config
77
  * ----------------------------------------------------- */
78
  $freshbuilder_modules['pricing'] = array(
79
- 'name' => __('Pricing Table', INBOUND_LABEL),
80
  'size' => 'one_full',
81
  'options' => array(
82
  'column' => array(
83
- 'name' => __('Column', INBOUND_LABEL),
84
- 'desc' => __('Select the column.', INBOUND_LABEL),
85
  'type' => 'select',
86
  'options' => array(
87
- '2' => __('2 Columns', INBOUND_LABEL),
88
- '3' => __('3 Columns', INBOUND_LABEL),
89
- '4' => __('4 Columns', INBOUND_LABEL),
90
- '5' => __('5 Columns', INBOUND_LABEL)
91
  ),
92
  'std' => '4',
93
  'class' => '',
@@ -96,56 +96,56 @@
96
  ),
97
  'child' => array(
98
  'featured' => array(
99
- 'name' => __('Featured Plan', INBOUND_LABEL),
100
- 'desc' => __('Check to set this plan as featured', INBOUND_LABEL),
101
  'type' => 'checkbox',
102
  'std' => '0',
103
  'class' => '',
104
  'is_content' => 0
105
  ),
106
  'title' => array(
107
- 'name' => __('Plan Title', INBOUND_LABEL),
108
- 'desc' => __('Enter the plan title.', INBOUND_LABEL),
109
  'type' => 'text',
110
  'std' => '',
111
  'class' => '',
112
  'is_content' => 0
113
  ),
114
  'price' => array(
115
- 'name' => __('Plan Price', INBOUND_LABEL),
116
- 'desc' => __('Enter the plan price.', INBOUND_LABEL),
117
  'type' => 'text',
118
  'std' => '',
119
  'class' => '',
120
  'is_content' => 0
121
  ),
122
  'term' => array(
123
- 'name' => __('Plan Term', INBOUND_LABEL),
124
- 'desc' => __('Enter the plan term. e.g : "per month", "per year" etc.', INBOUND_LABEL),
125
  'type' => 'text',
126
  'std' => '',
127
  'class' => '',
128
  'is_content' => 0
129
  ),
130
  'button_text' => array(
131
- 'name' => __('Plan Button Text', INBOUND_LABEL),
132
- 'desc' => __('Enter the button text label.', INBOUND_LABEL),
133
  'type' => 'text',
134
  'std' => '',
135
  'class' => '',
136
  'is_content' => 0
137
  ),
138
  'button_link' => array(
139
- 'name' => __('Plan Button Link', INBOUND_LABEL),
140
- 'desc' => __('Enter the button link destination URL.', INBOUND_LABEL),
141
  'type' => 'text',
142
  'std' => '',
143
  'class' => '',
144
  'is_content' => 0
145
  ),
146
  'content' => array(
147
- 'name' => __('Plan Content', INBOUND_LABEL),
148
- 'desc' => __('Put the content here.', INBOUND_LABEL),
149
  'type' => 'textarea',
150
  'class' => '',
151
  'is_content' => 1
9
  'no_preview' => true,
10
  'options' => array(
11
  'column' => array(
12
+ 'name' => __('Column', 'leads'),
13
+ 'desc' => __('Select the column.', 'leads'),
14
  'type' => 'select',
15
  'options' => array(
16
+ '2' => __('2 Columns', 'leads'),
17
+ '3' => __('3 Columns', 'leads'),
18
+ '4' => __('4 Columns', 'leads'),
19
+ '5' => __('5 Columns', 'leads')
20
  ),
21
  'std' => '4',
22
  )
24
  'child' => array(
25
  'options' => array(
26
  'featured' => array(
27
+ 'name' => __('Featured Plan', 'leads'),
28
+ 'desc' => __('Check to set this plan as featured', 'leads'),
29
  'type' => 'checkbox',
30
  'std' => '0',
31
  ),
32
  'title' => array(
33
+ 'name' => __('Plan Title', 'leads'),
34
+ 'desc' => __('Enter the plan title.', 'leads'),
35
  'type' => 'text',
36
  'std' => ''
37
  ),
38
  'price' => array(
39
+ 'name' => __('Plan Price', 'leads'),
40
+ 'desc' => __('Enter the plan price.', 'leads'),
41
  'type' => 'text',
42
  'std' => ''
43
  ),
44
  'term' => array(
45
+ 'name' => __('Plan Term', 'leads'),
46
+ 'desc' => __('Enter the plan term. e.g : "per month", "per year" etc.', 'leads'),
47
  'type' => 'text',
48
  'std' => ''
49
  ),
50
  'button_text' => array(
51
+ 'name' => __('Plan Button Text', 'leads'),
52
+ 'desc' => __('Enter the button text label.', 'leads'),
53
  'type' => 'text',
54
  'std' => ''
55
  ),
56
  'button_link' => array(
57
+ 'name' => __('Plan Button Link', 'leads'),
58
+ 'desc' => __('Enter the button link destination URL.', 'leads'),
59
  'type' => 'text',
60
  'std' => ''
61
  ),
62
  'content' => array(
63
+ 'name' => __('Plan Content', 'leads'),
64
+ 'desc' => __('Put the content here.', 'leads'),
65
  'type' => 'textarea',
66
  'std' => ''
67
  )
68
  ),
69
  'shortcode' => '[plan featured="{{featured}}" title="{{title}}" price="{{price}}" term="{{term}}" button_text="{{button_text}}" button_link="{{button_link}}"]{{content}}[/plan]',
70
+ 'clone' => __('Add More Testimony', 'leads' )
71
  ),
72
  'shortcode' => '[pricing column="{{column}}"]{{child}}[/pricing]',
73
+ 'popup_title' => __('Insert Pricing Shortcode', 'leads')
74
  );
75
 
76
  /* Page builder module config
77
  * ----------------------------------------------------- */
78
  $freshbuilder_modules['pricing'] = array(
79
+ 'name' => __('Pricing Table', 'leads'),
80
  'size' => 'one_full',
81
  'options' => array(
82
  'column' => array(
83
+ 'name' => __('Column', 'leads'),
84
+ 'desc' => __('Select the column.', 'leads'),
85
  'type' => 'select',
86
  'options' => array(
87
+ '2' => __('2 Columns', 'leads'),
88
+ '3' => __('3 Columns', 'leads'),
89
+ '4' => __('4 Columns', 'leads'),
90
+ '5' => __('5 Columns', 'leads')
91
  ),
92
  'std' => '4',
93
  'class' => '',
96
  ),
97
  'child' => array(
98
  'featured' => array(
99
+ 'name' => __('Featured Plan', 'leads'),
100
+ 'desc' => __('Check to set this plan as featured', 'leads'),
101
  'type' => 'checkbox',
102
  'std' => '0',
103
  'class' => '',
104
  'is_content' => 0
105
  ),
106
  'title' => array(
107
+ 'name' => __('Plan Title', 'leads'),
108
+ 'desc' => __('Enter the plan title.', 'leads'),
109
  'type' => 'text',
110
  'std' => '',
111
  'class' => '',
112
  'is_content' => 0
113
  ),
114
  'price' => array(
115
+ 'name' => __('Plan Price', 'leads'),
116
+ 'desc' => __('Enter the plan price.', 'leads'),
117
  'type' => 'text',
118
  'std' => '',
119
  'class' => '',
120
  'is_content' => 0
121
  ),
122
  'term' => array(
123
+ 'name' => __('Plan Term', 'leads'),
124
+ 'desc' => __('Enter the plan term. e.g : "per month", "per year" etc.', 'leads'),
125
  'type' => 'text',
126
  'std' => '',
127
  'class' => '',
128
  'is_content' => 0
129
  ),
130
  'button_text' => array(
131
+ 'name' => __('Plan Button Text', 'leads'),
132
+ 'desc' => __('Enter the button text label.', 'leads'),
133
  'type' => 'text',
134
  'std' => '',
135
  'class' => '',
136
  'is_content' => 0
137
  ),
138
  'button_link' => array(
139
+ 'name' => __('Plan Button Link', 'leads'),
140
+ 'desc' => __('Enter the button link destination URL.', 'leads'),
141
  'type' => 'text',
142
  'std' => '',
143
  'class' => '',
144
  'is_content' => 0
145
  ),
146
  'content' => array(
147
+ 'name' => __('Plan Content', 'leads'),
148
+ 'desc' => __('Put the content here.', 'leads'),
149
  'type' => 'textarea',
150
  'class' => '',
151
  'is_content' => 1
shared/inbound-shortcodes/shortcodes/profile.php CHANGED
@@ -9,123 +9,123 @@
9
  'no_preview' => true,
10
  'options' => array(
11
  'name' => array(
12
- 'name' => __('Profile Name', INBOUND_LABEL),
13
- 'desc' => __('Enter the name.', INBOUND_LABEL),
14
  'type' => 'text',
15
  'std' => ''
16
  ),
17
  'meta' => array(
18
- 'name' => __('Profile Meta', INBOUND_LABEL),
19
- 'desc' => __('Enter the profile meta. e.g job position etc.', INBOUND_LABEL),
20
  'type' => 'text',
21
  'std' => ''
22
  ),
23
  'image' => array(
24
- 'name' => __('Profile Image', INBOUND_LABEL),
25
- 'desc' => __('Paste your profile image URL here.', INBOUND_LABEL),
26
  'type' => 'text',
27
  'std' => ''
28
  ),
29
  'link' => array(
30
- 'name' => __('Profile Link', INBOUND_LABEL),
31
- 'desc' => __('Paste your profile link URL here.', INBOUND_LABEL),
32
  'type' => 'text',
33
  'std' => ''
34
  ),
35
  'facebook' => array(
36
- 'name' => __('Profile Facebook', INBOUND_LABEL),
37
- 'desc' => __('Paste your facebook URL here.', INBOUND_LABEL),
38
  'type' => 'text',
39
  'std' => ''
40
  ),
41
  'twitter' => array(
42
- 'name' => __('Profile Twitter', INBOUND_LABEL),
43
- 'desc' => __('Paste your twitter URL here.', INBOUND_LABEL),
44
  'type' => 'text',
45
  'std' => ''
46
  ),
47
  'email' => array(
48
- 'name' => __('Profile Email Address', INBOUND_LABEL),
49
- 'desc' => __('Paste your email address here.', INBOUND_LABEL),
50
  'type' => 'text',
51
  'std' => ''
52
  ),
53
  'content' => array(
54
- 'name' => __('Profile Description', INBOUND_LABEL),
55
- 'desc' => __('Enter the profile description text.', INBOUND_LABEL),
56
  'type' => 'textarea',
57
  'std' => ''
58
  )
59
  ),
60
  'shortcode' => '[profile name="{{name}}" meta="{{meta}}" image="{{image}}"]{{content}}[/profile]',
61
- 'popup_title' => __('Insert Profile Shortcode', INBOUND_LABEL)
62
  );
63
 
64
  /* Page builder module config
65
  * ----------------------------------------------------- */
66
  $freshbuilder_modules['profile'] = array(
67
- 'name' => __('Profile', INBOUND_LABEL),
68
  'size' => 'one_fourth',
69
  'options' => array(
70
  'name' => array(
71
- 'name' => __('Profile Name', INBOUND_LABEL),
72
- 'desc' => __('Enter the name.', INBOUND_LABEL),
73
  'type' => 'text',
74
  'std' => '',
75
  'class' => '',
76
  'is_content' => 0
77
  ),
78
  'meta' => array(
79
- 'name' => __('Profile Meta', INBOUND_LABEL),
80
- 'desc' => __('Enter the profile meta. e.g job position etc.', INBOUND_LABEL),
81
  'type' => 'text',
82
  'std' => '',
83
  'class' => '',
84
  'is_content' => 0
85
  ),
86
  'image' => array(
87
- 'name' => __('Profile Image', INBOUND_LABEL),
88
- 'desc' => __('Paste your profile image URL here.', INBOUND_LABEL),
89
  'type' => 'text',
90
  'std' => '',
91
  'class' => '',
92
  'is_content' => 0
93
  ),
94
  'link' => array(
95
- 'name' => __('Profile Link', INBOUND_LABEL),
96
- 'desc' => __('Paste your profile URL here.', INBOUND_LABEL),
97
  'type' => 'text',
98
  'std' => '',
99
  'class' => '',
100
  'is_content' => 0
101
  ),
102
  'facebook' => array(
103
- 'name' => __('Profile Facebook', INBOUND_LABEL),
104
- 'desc' => __('Paste your facebook URL here.', INBOUND_LABEL),
105
  'type' => 'text',
106
  'std' => '',
107
  'class' => '',
108
  'is_content' => 0
109
  ),
110
  'twitter' => array(
111
- 'name' => __('Profile Twitter', INBOUND_LABEL),
112
- 'desc' => __('Paste your twitter URL here.', INBOUND_LABEL),
113
  'type' => 'text',
114
  'std' => '',
115
  'class' => '',
116
  'is_content' => 0
117
  ),
118
  'email' => array(
119
- 'name' => __('Profile Email Address', INBOUND_LABEL),
120
- 'desc' => __('Paste your email address here.', INBOUND_LABEL),
121
  'type' => 'text',
122
  'std' => '',
123
  'class' => '',
124
  'is_content' => 0
125
  ),
126
  'content' => array(
127
- 'name' => __('Profile Description', INBOUND_LABEL),
128
- 'desc' => __('Enter the profile description text.', INBOUND_LABEL),
129
  'type' => 'textarea',
130
  'std' => '',
131
  'class' => '',
9
  'no_preview' => true,
10
  'options' => array(
11
  'name' => array(
12
+ 'name' => __('Profile Name', 'leads'),
13
+ 'desc' => __('Enter the name.', 'leads'),
14
  'type' => 'text',
15
  'std' => ''
16
  ),
17
  'meta' => array(
18
+ 'name' => __('Profile Meta', 'leads'),
19
+ 'desc' => __('Enter the profile meta. e.g job position etc.', 'leads'),
20
  'type' => 'text',
21
  'std' => ''
22
  ),
23
  'image' => array(
24
+ 'name' => __('Profile Image', 'leads'),
25
+ 'desc' => __('Paste your profile image URL here.', 'leads'),
26
  'type' => 'text',
27
  'std' => ''
28
  ),
29
  'link' => array(
30
+ 'name' => __('Profile Link', 'leads'),
31
+ 'desc' => __('Paste your profile link URL here.', 'leads'),
32
  'type' => 'text',
33
  'std' => ''
34
  ),
35
  'facebook' => array(
36
+ 'name' => __('Profile Facebook', 'leads'),
37
+ 'desc' => __('Paste your facebook URL here.', 'leads'),
38
  'type' => 'text',
39
  'std' => ''
40
  ),
41
  'twitter' => array(
42
+ 'name' => __('Profile Twitter', 'leads'),
43
+ 'desc' => __('Paste your twitter URL here.', 'leads'),
44
  'type' => 'text',
45
  'std' => ''
46
  ),
47
  'email' => array(
48
+ 'name' => __('Profile Email Address', 'leads'),
49
+ 'desc' => __('Paste your email address here.', 'leads'),
50
  'type' => 'text',
51
  'std' => ''
52
  ),
53
  'content' => array(
54
+ 'name' => __('Profile Description', 'leads'),
55
+ 'desc' => __('Enter the profile description text.', 'leads'),
56
  'type' => 'textarea',
57
  'std' => ''
58
  )
59
  ),
60
  'shortcode' => '[profile name="{{name}}" meta="{{meta}}" image="{{image}}"]{{content}}[/profile]',
61
+ 'popup_title' => __('Insert Profile Shortcode', 'leads')
62
  );
63
 
64
  /* Page builder module config
65
  * ----------------------------------------------------- */
66
  $freshbuilder_modules['profile'] = array(
67
+ 'name' => __('Profile', 'leads'),
68
  'size' => 'one_fourth',
69
  'options' => array(
70
  'name' => array(
71
+ 'name' => __('Profile Name', 'leads'),
72
+ 'desc' => __('Enter the name.', 'leads'),
73
  'type' => 'text',
74
  'std' => '',
75
  'class' => '',
76
  'is_content' => 0
77
  ),
78
  'meta' => array(
79
+ 'name' => __('Profile Meta', 'leads'),
80
+ 'desc' => __('Enter the profile meta. e.g job position etc.', 'leads'),
81
  'type' => 'text',
82
  'std' => '',
83
  'class' => '',
84
  'is_content' => 0
85
  ),
86
  'image' => array(
87
+ 'name' => __('Profile Image', 'leads'),
88
+ 'desc' => __('Paste your profile image URL here.', 'leads'),
89
  'type' => 'text',
90
  'std' => '',
91
  'class' => '',
92
  'is_content' => 0
93
  ),
94
  'link' => array(
95
+ 'name' => __('Profile Link', 'leads'),
96
+ 'desc' => __('Paste your profile URL here.', 'leads'),
97
  'type' => 'text',
98
  'std' => '',
99
  'class' => '',
100
  'is_content' => 0
101
  ),
102
  'facebook' => array(
103
+ 'name' => __('Profile Facebook', 'leads'),
104
+ 'desc' => __('Paste your facebook URL here.', 'leads'),
105
  'type' => 'text',
106
  'std' => '',
107
  'class' => '',
108
  'is_content' => 0
109
  ),
110
  'twitter' => array(
111
+ 'name' => __('Profile Twitter', 'leads'),
112
+ 'desc' => __('Paste your twitter URL here.', 'leads'),
113
  'type' => 'text',
114
  'std' => '',
115
  'class' => '',
116
  'is_content' => 0
117
  ),
118
  'email' => array(
119
+ 'name' => __('Profile Email Address', 'leads'),
120
+ 'desc' => __('Paste your email address here.', 'leads'),
121
  'type' => 'text',
122
  'std' => '',
123
  'class' => '',
124
  'is_content' => 0
125
  ),
126
  'content' => array(
127
+ 'name' => __('Profile Description', 'leads'),
128
+ 'desc' => __('Enter the profile description text.', 'leads'),
129
  'type' => 'textarea',
130
  'std' => '',
131
  'class' => '',
shared/inbound-shortcodes/shortcodes/quick-forms.php CHANGED
@@ -8,23 +8,23 @@
8
  'no_preview' => false,
9
  'options' => array(
10
  'insert_default' => array(
11
- 'name' => __('Insert Saved Form', INBOUND_LABEL),
12
- 'desc' => __('Insert a Saved Form', INBOUND_LABEL),
13
  'type' => 'select',
14
  'options' => $form_names,
15
  'std' => 'none',
16
  'class' => 'main-form-settings',
17
  ),
18
  'helper-block-one' => array(
19
- 'name' => __('Name Name Name', INBOUND_LABEL),
20
- 'desc' => __('<span class="switch-to-form-builder button">Build a New Form</span>', INBOUND_LABEL),
21
  'type' => 'helper-block',
22
  'std' => '',
23
  'class' => 'helper-div',
24
  ),
25
  'form_name' => array(
26
- 'name' => __('Form Name<span class="small-required-text">*</span>', INBOUND_LABEL),
27
- 'desc' => __('This is not shown to visitors', INBOUND_LABEL),
28
  'type' => 'text',
29
  'placeholder' => "Example: XYZ Whitepaper Download",
30
  'std' => '',
@@ -32,5 +32,5 @@
32
  ),
33
  ),
34
  'shortcode' => '[inbound_forms id="{{insert_default}}" name="{{form_name}}"]',
35
- 'popup_title' => __('Quick Insert Inbound Form Shortcode', INBOUND_LABEL)
36
  );
8
  'no_preview' => false,
9
  'options' => array(
10
  'insert_default' => array(
11
+ 'name' => __('Insert Saved Form', 'leads'),
12
+ 'desc' => __('Insert a Saved Form', 'leads'),
13
  'type' => 'select',
14
  'options' => $form_names,
15
  'std' => 'none',
16
  'class' => 'main-form-settings',
17
  ),
18
  'helper-block-one' => array(
19
+ 'name' => __('Name Name Name', 'leads'),
20
+ 'desc' => __('<span class="switch-to-form-builder button">Build a New Form</span>', 'leads'),
21
  'type' => 'helper-block',
22
  'std' => '',
23
  'class' => 'helper-div',
24
  ),
25
  'form_name' => array(
26
+ 'name' => __('Form Name<span class="small-required-text">*</span>', 'leads'),
27
+ 'desc' => __('This is not shown to visitors', 'leads'),
28
  'type' => 'text',
29
  'placeholder' => "Example: XYZ Whitepaper Download",
30
  'std' => '',
32
  ),
33
  ),
34
  'shortcode' => '[inbound_forms id="{{insert_default}}" name="{{form_name}}"]',
35
+ 'popup_title' => __('Quick Insert Inbound Form Shortcode', 'leads')
36
  );
shared/inbound-shortcodes/shortcodes/social-share.php CHANGED
@@ -11,7 +11,7 @@
11
  'options' => array(
12
  'style' => array(
13
  'name' => 'Style of Icons',
14
- 'desc' => __('Style of Icons', INBOUND_LABEL),
15
  'type' => 'select',
16
  'options' => array(
17
  "bar" => "Bar",
@@ -23,8 +23,8 @@
23
  'std' => 'bar'
24
  ),
25
  'align' => array(
26
- 'name' => __('Align Icons', INBOUND_LABEL),
27
- 'desc' => __('Alignment Settings', INBOUND_LABEL),
28
  'type' => 'select',
29
  'options' => array(
30
  "horizontal" => "Horizontal",
@@ -34,60 +34,60 @@
34
  ),
35
 
36
  'facebook' => array(
37
- 'name' => __('Facebook', INBOUND_LABEL),
38
- 'desc' => __('Show facebook share icon', INBOUND_LABEL),
39
  'type' => 'checkbox',
40
  'std' => '1'
41
  ),
42
  'twitter' => array(
43
- 'name' => __('Twitter', INBOUND_LABEL),
44
- 'desc' => __('Show twitter share icon', INBOUND_LABEL),
45
  'type' => 'checkbox',
46
  'std' => '1'
47
  ),
48
  'google_plus' => array(
49
- 'name' => __('Google+', INBOUND_LABEL),
50
- 'desc' => __('Show google plus share icon', INBOUND_LABEL),
51
  'type' => 'checkbox',
52
  'std' => '1'
53
  ),
54
  'linkedin' => array(
55
- 'name' => __('Linkedin', INBOUND_LABEL),
56
- 'desc' => __('Show linkedin share icon', INBOUND_LABEL),
57
  'type' => 'checkbox',
58
  'std' => '1'
59
  ),
60
  'pinterest' => array(
61
- 'name' => __('Pinterest', INBOUND_LABEL),
62
- 'desc' => __('Show pinterest share icon', INBOUND_LABEL),
63
  'type' => 'checkbox',
64
  'std' => '1',
65
  ),
66
 
67
  'text' => array(
68
- 'name' => __('Custom Share Text', INBOUND_LABEL),
69
- 'desc' => __('Optional setting. Enter your custom share text', INBOUND_LABEL),
70
  'type' => 'text',
71
  'std' => '',
72
  'placeholder' => 'Custom Share Text. Title of page used by default',
73
  ),
74
  'link' => array(
75
- 'name' => __('Custom Share URL', INBOUND_LABEL),
76
- 'desc' => __('Optional setting. Enter your custom share link URL', INBOUND_LABEL),
77
  'type' => 'text',
78
  'std' => '',
79
  'placeholder' => 'Custom URL. Page permalink used by default',
80
  ),
81
  'heading' => array(
82
- 'name' => __('Heading', INBOUND_LABEL),
83
- 'desc' => __('Optional setting.', INBOUND_LABEL),
84
  'type' => 'text',
85
  'std' => '',
86
  'placeholder' => 'Optional Header Text',
87
  ),
88
  'header-align' => array(
89
- 'name' => __('Heading Align', INBOUND_LABEL),
90
- 'desc' => __('Heading Alignment Settings', INBOUND_LABEL),
91
  'type' => 'select',
92
  'options' => array(
93
  "inline" => "Inline",
@@ -98,5 +98,5 @@
98
  ),
99
  ),
100
  'shortcode' => '[social_share style="{{style}}" align="{{align}}" heading_align="{{header-align}}" text="{{text}}" heading="{{heading}}" facebook="{{facebook}}" twitter="{{twitter}}" google_plus="{{google_plus}}" linkedin="{{linkedin}}" pinterest="{{pinterest}}" link="{{link}}" /]',
101
- 'popup_title' => __('Insert Social Share Shortcode', INBOUND_LABEL)
102
  );
11
  'options' => array(
12
  'style' => array(
13
  'name' => 'Style of Icons',
14
+ 'desc' => __('Style of Icons', 'leads'),
15
  'type' => 'select',
16
  'options' => array(
17
  "bar" => "Bar",
23
  'std' => 'bar'
24
  ),
25
  'align' => array(
26
+ 'name' => __('Align Icons', 'leads'),
27
+ 'desc' => __('Alignment Settings', 'leads'),
28
  'type' => 'select',
29
  'options' => array(
30
  "horizontal" => "Horizontal",
34
  ),
35
 
36
  'facebook' => array(
37
+ 'name' => __('Facebook', 'leads'),
38
+ 'desc' => __('Show facebook share icon', 'leads'),
39
  'type' => 'checkbox',
40
  'std' => '1'
41
  ),
42
  'twitter' => array(
43
+ 'name' => __('Twitter', 'leads'),
44
+ 'desc' => __('Show twitter share icon', 'leads'),
45
  'type' => 'checkbox',
46
  'std' => '1'
47
  ),
48
  'google_plus' => array(
49
+ 'name' => __('Google+', 'leads'),
50
+ 'desc' => __('Show google plus share icon', 'leads'),
51
  'type' => 'checkbox',
52
  'std' => '1'
53
  ),
54
  'linkedin' => array(
55
+ 'name' => __('Linkedin', 'leads'),
56
+ 'desc' => __('Show linkedin share icon', 'leads'),
57
  'type' => 'checkbox',
58
  'std' => '1'
59
  ),
60
  'pinterest' => array(
61
+ 'name' => __('Pinterest', 'leads'),
62
+ 'desc' => __('Show pinterest share icon', 'leads'),
63
  'type' => 'checkbox',
64
  'std' => '1',
65
  ),
66
 
67
  'text' => array(
68
+ 'name' => __('Custom Share Text', 'leads'),
69
+ 'desc' => __('Optional setting. Enter your custom share text', 'leads'),
70
  'type' => 'text',
71
  'std' => '',
72
  'placeholder' => 'Custom Share Text. Title of page used by default',
73
  ),
74
  'link' => array(
75
+ 'name' => __('Custom Share URL', 'leads'),
76
+ 'desc' => __('Optional setting. Enter your custom share link URL', 'leads'),
77
  'type' => 'text',
78
  'std' => '',
79
  'placeholder' => 'Custom URL. Page permalink used by default',
80
  ),
81
  'heading' => array(
82
+ 'name' => __('Heading', 'leads'),
83
+ 'desc' => __('Optional setting.', 'leads'),
84
  'type' => 'text',
85
  'std' => '',
86
  'placeholder' => 'Optional Header Text',
87
  ),
88
  'header-align' => array(
89
+ 'name' => __('Heading Align', 'leads'),
90
+ 'desc' => __('Heading Alignment Settings', 'leads'),
91
  'type' => 'select',
92
  'options' => array(
93
  "inline" => "Inline",
98
  ),
99
  ),
100
  'shortcode' => '[social_share style="{{style}}" align="{{align}}" heading_align="{{header-align}}" text="{{text}}" heading="{{heading}}" facebook="{{facebook}}" twitter="{{twitter}}" google_plus="{{google_plus}}" linkedin="{{linkedin}}" pinterest="{{pinterest}}" link="{{link}}" /]',
101
+ 'popup_title' => __('Insert Social Share Shortcode', 'leads')
102
  );
shared/inbound-shortcodes/shortcodes/social.php CHANGED
@@ -9,56 +9,56 @@
9
  'no_preview' => true,
10
  'options' => array(
11
  'facebook' => array(
12
- 'name' => __('Facebook', INBOUND_LABEL),
13
- 'desc' => __('Enter your facebook profile URL', INBOUND_LABEL),
14
  'type' => 'text',
15
  'std' => ''
16
  ),
17
  'twitter' => array(
18
- 'name' => __('Twitter', INBOUND_LABEL),
19
- 'desc' => __('Enter your twitter profile URL', INBOUND_LABEL),
20
  'type' => 'text',
21
  'std' => ''
22
  ),
23
  'google_plus' => array(
24
- 'name' => __('Google+', INBOUND_LABEL),
25
- 'desc' => __('Enter your google plus profile URL', INBOUND_LABEL),
26
  'type' => 'text',
27
  'std' => ''
28
  ),
29
  'linkedin' => array(
30
- 'name' => __('Linkedin', INBOUND_LABEL),
31
- 'desc' => __('Enter your linkedin profile URL', INBOUND_LABEL),
32
  'type' => 'text',
33
  'std' => ''
34
  ),
35
  'github' => array(
36
- 'name' => __('Github', INBOUND_LABEL),
37
- 'desc' => __('Enter your github profile URL', INBOUND_LABEL),
38
  'type' => 'text',
39
  'std' => ''
40
  ),
41
  'pinterest' => array(
42
- 'name' => __('Instagram', INBOUND_LABEL),
43
- 'desc' => __('Enter your instagram profile URL', INBOUND_LABEL),
44
  'type' => 'text',
45
  'std' => ''
46
  ),
47
  'pinterest' => array(
48
- 'name' => __('Pinterest', INBOUND_LABEL),
49
- 'desc' => __('Enter your pinterest profile URL', INBOUND_LABEL),
50
  'type' => 'text',
51
  'std' => ''
52
  ),
53
  'rss' => array(
54
- 'name' => __('RSS', INBOUND_LABEL),
55
- 'desc' => __('Enter your RSS feeds URL', INBOUND_LABEL),
56
  'type' => 'text',
57
  'std' => ''
58
  )
59
  ),
60
  'shortcode' => '[social_links facebook="{{facebook}}" twitter="{{twitter}}" google_plus="{{google_plus}}" linkedin="{{linkedin}}" github="{{github}}" pinterest="{{pinterest}}" /]',
61
- 'popup_title' => __('Insert Social Link Shortcode', INBOUND_LABEL)
62
  );
63
 
64
  /* Add shortcode
9
  'no_preview' => true,
10
  'options' => array(
11
  'facebook' => array(
12
+ 'name' => __('Facebook', 'leads'),
13
+ 'desc' => __('Enter your facebook profile URL', 'leads'),
14
  'type' => 'text',
15
  'std' => ''
16
  ),
17
  'twitter' => array(
18
+ 'name' => __('Twitter', 'leads'),
19
+ 'desc' => __('Enter your twitter profile URL', 'leads'),
20
  'type' => 'text',
21
  'std' => ''
22
  ),
23
  'google_plus' => array(
24
+ 'name' => __('Google+', 'leads'),
25
+ 'desc' => __('Enter your google plus profile URL', 'leads'),
26
  'type' => 'text',
27
  'std' => ''
28
  ),
29
  'linkedin' => array(
30
+ 'name' => __('Linkedin', 'leads'),
31
+ 'desc' => __('Enter your linkedin profile URL', 'leads'),
32
  'type' => 'text',
33
  'std' => ''
34
  ),
35
  'github' => array(
36
+ 'name' => __('Github', 'leads'),
37
+ 'desc' => __('Enter your github profile URL', 'leads'),
38
  'type' => 'text',
39
  'std' => ''
40
  ),
41
  'pinterest' => array(
42
+ 'name' => __('Instagram', 'leads'),
43
+ 'desc' => __('Enter your instagram profile URL', 'leads'),
44
  'type' => 'text',
45
  'std' => ''
46
  ),
47
  'pinterest' => array(
48
+ 'name' => __('Pinterest', 'leads'),
49
+ 'desc' => __('Enter your pinterest profile URL', 'leads'),
50
  'type' => 'text',
51
  'std' => ''
52
  ),
53
  'rss' => array(
54
+ 'name' => __('RSS', 'leads'),
55
+ 'desc' => __('Enter your RSS feeds URL', 'leads'),
56
  'type' => 'text',
57
  'std' => ''
58
  )
59
  ),
60
  'shortcode' => '[social_links facebook="{{facebook}}" twitter="{{twitter}}" google_plus="{{google_plus}}" linkedin="{{linkedin}}" github="{{github}}" pinterest="{{pinterest}}" /]',
61
+ 'popup_title' => __('Insert Social Link Shortcode', 'leads')
62
  );
63
 
64
  /* Add shortcode
shared/inbound-shortcodes/shortcodes/tabs.php CHANGED
@@ -9,8 +9,8 @@
9
  'no_preview' => true,
10
  'options' => array(
11
  'heading' => array(
12
- 'name' => __('Heading', INBOUND_LABEL),
13
- 'desc' => __('Enter the heading text', INBOUND_LABEL),
14
  'type' => 'text',
15
  'std' => ''
16
  )
@@ -18,41 +18,41 @@
18
  'child' => array(
19
  'options' => array(
20
  'title' => array(
21
- 'name' => __('Tab Title', INBOUND_LABEL),
22
- 'desc' => __('Enter the tab title.', INBOUND_LABEL),
23
  'type' => 'text',
24
  'std' => ''
25
  ),
26
  'icon' => array(
27
- 'name' => __('Icon', INBOUND_LABEL),
28
- 'desc' => __('Select an icon.', INBOUND_LABEL),
29
  'type' => 'select',
30
  'options' => $fontawesome,
31
  'std' => ''
32
  ),
33
  'content' => array(
34
- 'name' => __('Tab Content', INBOUND_LABEL),
35
- 'desc' => __('Put the content here.', INBOUND_LABEL),
36
  'type' => 'textarea',
37
  'std' => ''
38
  )
39
  ),
40
  'shortcode' => '[tab title="{{title}}" icon="{{icon}}"]{{content}}[/tab]',
41
- 'clone' => __('Add More Tab', INBOUND_LABEL )
42
  ),
43
  'shortcode' => '[tabs]{{child}}[/tabs]',
44
- 'popup_title' => __('Insert Tabs Shortcode', INBOUND_LABEL)
45
  );
46
 
47
  /* Page builder module config
48
  * ----------------------------------------------------- */
49
  $freshbuilder_modules['tabs'] = array(
50
- 'name' => __('Tabs', INBOUND_LABEL),
51
  'size' => 'one_half',
52
  'options' => array(
53
  'heading' => array(
54
- 'name' => __('Heading', INBOUND_LABEL),
55
- 'desc' => __('Enter the heading text', INBOUND_LABEL),
56
  'type' => 'text',
57
  'std' => '',
58
  'class' => '',
@@ -61,16 +61,16 @@
61
  ),
62
  'child' => array(
63
  'title' => array(
64
- 'name' => __('Title', INBOUND_LABEL),
65
- 'desc' => __('Enter the tab title', INBOUND_LABEL),
66
  'type' => 'text',
67
  'std' => '',
68
  'class' => '',
69
  'is_content' => 0
70
  ),
71
  'icon' => array(
72
- 'name' => __('Icon', INBOUND_LABEL),
73
- 'desc' => __('Select an icon.', INBOUND_LABEL),
74
  'type' => 'select',
75
  'options' => $fontawesome,
76
  'std' => 'none',
@@ -78,8 +78,8 @@
78
  'is_content' => 0
79
  ),
80
  'content' => array(
81
- 'name' => __('Content', INBOUND_LABEL),
82
- 'desc' => __('Enter the tab content', INBOUND_LABEL),
83
  'type' => 'textarea',
84
  'class' => '',
85
  'is_content' => 1
9
  'no_preview' => true,
10
  'options' => array(
11
  'heading' => array(
12
+ 'name' => __('Heading', 'leads'),
13
+ 'desc' => __('Enter the heading text', 'leads'),
14
  'type' => 'text',
15
  'std' => ''
16
  )
18
  'child' => array(
19
  'options' => array(
20
  'title' => array(
21
+ 'name' => __('Tab Title', 'leads'),
22
+ 'desc' => __('Enter the tab title.', 'leads'),
23
  'type' => 'text',
24
  'std' => ''
25
  ),
26
  'icon' => array(
27
+ 'name' => __('Icon', 'leads'),
28
+ 'desc' => __('Select an icon.', 'leads'),
29
  'type' => 'select',
30
  'options' => $fontawesome,
31
  'std' => ''
32
  ),
33
  'content' => array(
34
+ 'name' => __('Tab Content', 'leads'),
35
+ 'desc' => __('Put the content here.', 'leads'),
36
  'type' => 'textarea',
37
  'std' => ''
38
  )
39
  ),
40
  'shortcode' => '[tab title="{{title}}" icon="{{icon}}"]{{content}}[/tab]',
41
+ 'clone' => __('Add More Tab', 'leads' )
42
  ),
43
  'shortcode' => '[tabs]{{child}}[/tabs]',
44
+ 'popup_title' => __('Insert Tabs Shortcode', 'leads')
45
  );
46
 
47
  /* Page builder module config
48
  * ----------------------------------------------------- */
49
  $freshbuilder_modules['tabs'] = array(
50
+ 'name' => __('Tabs', 'leads'),
51
  'size' => 'one_half',
52
  'options' => array(
53
  'heading' => array(
54
+ 'name' => __('Heading', 'leads'),
55
+ 'desc' => __('Enter the heading text', 'leads'),
56
  'type' => 'text',
57
  'std' => '',
58
  'class' => '',
61
  ),
62
  'child' => array(
63
  'title' => array(
64
+ 'name' => __('Title', 'leads'),
65
+ 'desc' => __('Enter the tab title', 'leads'),
66
  'type' => 'text',
67
  'std' => '',
68
  'class' => '',
69
  'is_content' => 0
70
  ),
71
  'icon' => array(
72
+ 'name' => __('Icon', 'leads'),
73
+ 'desc' => __('Select an icon.', 'leads'),
74
  'type' => 'select',
75
  'options' => $fontawesome,
76
  'std' => 'none',
78
  'is_content' => 0
79
  ),
80
  'content' => array(
81
+ 'name' => __('Content', 'leads'),
82
+ 'desc' => __('Enter the tab content', 'leads'),
83
  'type' => 'textarea',
84
  'class' => '',
85
  'is_content' => 1
shared/inbound-shortcodes/shortcodes/teaser.php CHANGED
@@ -9,32 +9,32 @@
9
  'no_preview' => true,
10
  'options' => array(
11
  'heading' => array(
12
- 'name' => __('Heading', INBOUND_LABEL),
13
- 'desc' => __('Enter the heading text', INBOUND_LABEL),
14
  'type' => 'text',
15
  'std' => ''
16
  ),
17
  'style' => array(
18
- 'name' => __('Style', INBOUND_LABEL),
19
- 'desc' => __('Select the style.', INBOUND_LABEL),
20
  'type' => 'select',
21
  'options' => array(
22
- '' => __('Default', INBOUND_LABEL),
23
- 'nested' => __('Nested', INBOUND_LABEL),
24
- 'centered' => __('Centered', INBOUND_LABEL)
25
  ),
26
  'std' => ''
27
  ),
28
  'column' => array(
29
- 'name' => __('Column', INBOUND_LABEL),
30
- 'desc' => __('Select the number of column.', INBOUND_LABEL),
31
  'type' => 'select',
32
  'options' => array(
33
- '1' => __('1 Column', INBOUND_LABEL),
34
- '2' => __('2 Columns', INBOUND_LABEL),
35
- '3' => __('3 Columns', INBOUND_LABEL),
36
- '4' => __('4 Columns', INBOUND_LABEL),
37
- '5' => __('5 Columns', INBOUND_LABEL)
38
  ),
39
  'std' => '3'
40
  )
@@ -42,88 +42,88 @@
42
  'child' => array(
43
  'options' => array(
44
  'title' => array(
45
- 'name' => __('Title', INBOUND_LABEL),
46
- 'desc' => __('Enter the title.', INBOUND_LABEL),
47
  'type' => 'text',
48
  'std' => ''
49
  ),
50
  'subtitle' => array(
51
- 'name' => __('Sub Title', INBOUND_LABEL),
52
- 'desc' => __('Enter the sub title.', INBOUND_LABEL),
53
  'type' => 'text',
54
  'std' => ''
55
  ),
56
  'icon' => array(
57
- 'name' => __('Icon', INBOUND_LABEL),
58
- 'desc' => __('Select an icon.', INBOUND_LABEL),
59
  'type' => 'select',
60
  'options' => $fontawesome,
61
  'std' => ''
62
  ),
63
  'image' => array(
64
- 'name' => __('Image URL', INBOUND_LABEL),
65
- 'desc' => __('Enter your image url, it will override the icon above', INBOUND_LABEL),
66
  'type' => 'text',
67
  'std' => '',
68
  'class' => ''
69
  ),
70
  'link' => array(
71
- 'name' => __('Link', INBOUND_LABEL),
72
- 'desc' => __('The title link destination URL.', INBOUND_LABEL),
73
  'type' => 'text',
74
  'std' => ''
75
  ),
76
  'content' => array(
77
- 'name' => __('Teaser Content', INBOUND_LABEL),
78
- 'desc' => __('Enter the content.', INBOUND_LABEL),
79
  'type' => 'textarea',
80
  'std' => ''
81
  )
82
  ),
83
  'shortcode' => '[block title="{{title}}" subtitle="{{subtitle}}" icon="{{icon}}" link="{{link}}" ]{{content}}[/block]',
84
- 'clone' => __('Add More Block', INBOUND_LABEL )
85
  ),
86
  'shortcode' => '[teaser heading="{{heading}}" style="{{style}}" column="{{column}}"]{{child}}[/teaser]',
87
- 'popup_title' => __('Insert Teaser Shortcode', INBOUND_LABEL)
88
  );
89
 
90
  /* Page builder module config
91
  * ----------------------------------------------------- */
92
  $freshbuilder_modules['teaser'] = array(
93
- 'name' => __('Teaser', INBOUND_LABEL),
94
  'size' => 'one_full',
95
  'options' => array(
96
  'heading' => array(
97
- 'name' => __('Heading', INBOUND_LABEL),
98
- 'desc' => __('Enter the heading text.', INBOUND_LABEL),
99
  'type' => 'text',
100
  'std' => '',
101
  'class' => '',
102
  'is_content' => 0
103
  ),
104
  'style' => array(
105
- 'name' => __('Style', INBOUND_LABEL),
106
- 'desc' => __('Select the style.', INBOUND_LABEL),
107
  'type' => 'select',
108
  'options' => array(
109
- '' => __('Default', INBOUND_LABEL),
110
- 'nested' => __('Nested', INBOUND_LABEL),
111
- 'centered' => __('Centered', INBOUND_LABEL)
112
  ),
113
  'std' => '',
114
  'class' => '',
115
  'is_content' => 0
116
  ),
117
  'column' => array(
118
- 'name' => __('Column', INBOUND_LABEL),
119
- 'desc' => __('Select the column.', INBOUND_LABEL),
120
  'type' => 'select',
121
  'options' => array(
122
- '1' => __('1 Column', INBOUND_LABEL),
123
- '2' => __('2 Columns', INBOUND_LABEL),
124
- '3' => __('3 Columns', INBOUND_LABEL),
125
- '4' => __('4 Columns', INBOUND_LABEL),
126
- '5' => __('5 Columns', INBOUND_LABEL)
127
  ),
128
  'std' => '3',
129
  'class' => '',
@@ -132,8 +132,8 @@
132
  ),
133
  'child' => array(
134
  'icon' => array(
135
- 'name' => __('Icon', INBOUND_LABEL),
136
- 'desc' => __('Select an icon.', INBOUND_LABEL),
137
  'type' => 'select',
138
  'options' => $fontawesome,
139
  'std' => 'none',
@@ -141,37 +141,37 @@
141
  'is_content' => 0
142
  ),
143
  'image' => array(
144
- 'name' => __('Image URL', INBOUND_LABEL),
145
- 'desc' => __('Enter your image url, it will override the icon above', INBOUND_LABEL),
146
  'type' => 'text',
147
  'std' => '',
148
  'class' => '',
149
  'is_content' => 0
150
  ),
151
  'title' => array(
152
- 'name' => __('Title', INBOUND_LABEL),
153
- 'desc' => __('Enter the heading text.', INBOUND_LABEL),
154
  'type' => 'text',
155
  'class' => '',
156
  'is_content' => 0
157
  ),
158
  'subtitle' => array(
159
- 'name' => __('Sub Title', INBOUND_LABEL),
160
- 'desc' => __('Enter the sub title.', INBOUND_LABEL),
161
  'type' => 'text',
162
  'class' => '',
163
  'is_content' => 0
164
  ),
165
  'link' => array(
166
- 'name' => __('Link', INBOUND_LABEL),
167
- 'desc' => __('The title link destination URL.', INBOUND_LABEL),
168
  'type' => 'text',
169
  'class' => '',
170
  'is_content' => 0
171
  ),
172
  'content' => array(
173
- 'name' => __('Content', INBOUND_LABEL),
174
- 'desc' => __('Enter the content.', INBOUND_LABEL),
175
  'type' => 'textarea',
176
  'std' => '',
177
  'class' => '',
9
  'no_preview' => true,
10
  'options' => array(
11
  'heading' => array(
12
+ 'name' => __('Heading', 'leads'),
13
+ 'desc' => __('Enter the heading text', 'leads'),
14
  'type' => 'text',
15
  'std' => ''
16
  ),
17
  'style' => array(
18
+ 'name' => __('Style', 'leads'),
19
+ 'desc' => __('Select the style.', 'leads'),
20
  'type' => 'select',
21
  'options' => array(
22
+ '' => __('Default', 'leads'),
23
+ 'nested' => __('Nested', 'leads'),
24
+ 'centered' => __('Centered', 'leads')
25
  ),
26
  'std' => ''
27
  ),
28
  'column' => array(
29
+ 'name' => __('Column', 'leads'),
30
+ 'desc' => __('Select the number of column.', 'leads'),
31
  'type' => 'select',
32
  'options' => array(
33
+ '1' => __('1 Column', 'leads'),
34
+ '2' => __('2 Columns', 'leads'),
35
+ '3' => __('3 Columns', 'leads'),
36
+ '4' => __('4 Columns', 'leads'),
37
+ '5' => __('5 Columns', 'leads')
38
  ),
39
  'std' => '3'
40
  )
42
  'child' => array(
43
  'options' => array(
44
  'title' => array(
45
+ 'name' => __('Title', 'leads'),
46
+ 'desc' => __('Enter the title.', 'leads'),
47
  'type' => 'text',
48
  'std' => ''
49
  ),
50
  'subtitle' => array(
51
+ 'name' => __('Sub Title', 'leads'),
52
+ 'desc' => __('Enter the sub title.', 'leads'),
53
  'type' => 'text',
54
  'std' => ''
55
  ),
56
  'icon' => array(
57
+ 'name' => __('Icon', 'leads'),
58
+ 'desc' => __('Select an icon.', 'leads'),
59
  'type' => 'select',
60
  'options' => $fontawesome,
61
  'std' => ''
62
  ),
63
  'image' => array(
64
+ 'name' => __('Image URL', 'leads'),
65
+ 'desc' => __('Enter your image url, it will override the icon above', 'leads'),
66
  'type' => 'text',
67
  'std' => '',
68
  'class' => ''
69
  ),
70
  'link' => array(
71
+ 'name' => __('Link', 'leads'),
72
+ 'desc' => __('The title link destination URL.', 'leads'),
73
  'type' => 'text',
74
  'std' => ''
75
  ),
76
  'content' => array(
77
+ 'name' => __('Teaser Content', 'leads'),
78
+ 'desc' => __('Enter the content.', 'leads'),
79
  'type' => 'textarea',
80
  'std' => ''
81
  )
82
  ),
83
  'shortcode' => '[block title="{{title}}" subtitle="{{subtitle}}" icon="{{icon}}" link="{{link}}" ]{{content}}[/block]',
84
+ 'clone' => __('Add More Block', 'leads' )
85
  ),
86
  'shortcode' => '[teaser heading="{{heading}}" style="{{style}}" column="{{column}}"]{{child}}[/teaser]',
87
+ 'popup_title' => __('Insert Teaser Shortcode', 'leads')
88
  );
89
 
90
  /* Page builder module config
91
  * ----------------------------------------------------- */
92
  $freshbuilder_modules['teaser'] = array(
93
+ 'name' => __('Teaser', 'leads'),
94
  'size' => 'one_full',
95
  'options' => array(
96
  'heading' => array(
97
+ 'name' => __('Heading', 'leads'),
98
+ 'desc' => __('Enter the heading text.', 'leads'),
99
  'type' => 'text',
100
  'std' => '',
101
  'class' => '',
102
  'is_content' => 0
103
  ),
104
  'style' => array(
105
+ 'name' => __('Style', 'leads'),
106
+ 'desc' => __('Select the style.', 'leads'),
107
  'type' => 'select',
108
  'options' => array(
109
+ '' => __('Default', 'leads'),
110
+ 'nested' => __('Nested', 'leads'),
111
+ 'centered' => __('Centered', 'leads')
112
  ),
113
  'std' => '',
114
  'class' => '',
115
  'is_content' => 0
116
  ),
117
  'column' => array(
118
+ 'name' => __('Column', 'leads'),
119
+ 'desc' => __('Select the column.', 'leads'),
120
  'type' => 'select',
121
  'options' => array(
122
+ '1' => __('1 Column', 'leads'),
123
+ '2' => __('2 Columns', 'leads'),
124
+ '3' => __('3 Columns', 'leads'),
125
+ '4' => __('4 Columns', 'leads'),
126
+ '5' => __('5 Columns', 'leads')
127
  ),
128
  'std' => '3',
129
  'class' => '',
132
  ),
133
  'child' => array(
134
  'icon' => array(
135
+ 'name' => __('Icon', 'leads'),
136
+ 'desc' => __('Select an icon.', 'leads'),
137
  'type' => 'select',
138
  'options' => $fontawesome,
139
  'std' => 'none',
141
  'is_content' => 0
142
  ),
143
  'image' => array(
144
+ 'name' => __('Image URL', 'leads'),
145
+ 'desc' => __('Enter your image url, it will override the icon above', 'leads'),
146
  'type' => 'text',
147
  'std' => '',
148
  'class' => '',
149
  'is_content' => 0
150
  ),
151
  'title' => array(
152
+ 'name' => __('Title', 'leads'),
153
+ 'desc' => __('Enter the heading text.', 'leads'),
154
  'type' => 'text',
155
  'class' => '',
156
  'is_content' => 0
157
  ),
158
  'subtitle' => array(
159
+ 'name' => __('Sub Title', 'leads'),
160
+ 'desc' => __('Enter the sub title.', 'leads'),
161
  'type' => 'text',
162
  'class' => '',
163
  'is_content' => 0
164
  ),
165
  'link' => array(
166
+ 'name' => __('Link', 'leads'),
167
+ 'desc' => __('The title link destination URL.', 'leads'),
168
  'type' => 'text',
169
  'class' => '',
170
  'is_content' => 0
171
  ),
172
  'content' => array(
173
+ 'name' => __('Content', 'leads'),
174
+ 'desc' => __('Enter the content.', 'leads'),
175
  'type' => 'textarea',
176
  'std' => '',
177
  'class' => '',
shared/inbound-shortcodes/shortcodes/testimonial.php CHANGED
@@ -9,21 +9,21 @@
9
  'no_preview' => true,
10
  'options' => array(
11
  'heading' => array(
12
- 'name' => __('Heading Text', INBOUND_LABEL),
13
- 'desc' => __('Enter the heading text.', INBOUND_LABEL),
14
  'type' => 'text',
15
  'std' => 'Testimonial'
16
  ),
17
  'column' => array(
18
- 'name' => __('Column', INBOUND_LABEL),
19
- 'desc' => __('Select the number of column.', INBOUND_LABEL),
20
  'type' => 'select',
21
  'options' => array(
22
- '1' => __('1 Column', INBOUND_LABEL),
23
- '2' => __('2 Columns', INBOUND_LABEL),
24
- '3' => __('3 Columns', INBOUND_LABEL),
25
- '4' => __('4 Columns', INBOUND_LABEL),
26
- '5' => __('5 Columns', INBOUND_LABEL)
27
  ),
28
  'std' => '1'
29
  )
@@ -31,55 +31,55 @@
31
  'child' => array(
32
  'options' => array(
33
  'author' => array(
34
- 'name' => __('Testimony Author', INBOUND_LABEL),
35
- 'desc' => __('Enter the testimony author name.', INBOUND_LABEL),
36
  'type' => 'text',
37
  'std' => ''
38
  ),
39
  'meta' => array(
40
- 'name' => __('Testimony Author Meta', INBOUND_LABEL),
41
- 'desc' => __('The author job, company or website name.', INBOUND_LABEL),
42
  'type' => 'text',
43
  'std' => ''
44
  ),
45
  'content' => array(
46
- 'name' => __('Testimony Content', INBOUND_LABEL),
47
- 'desc' => __('Put the content here.', INBOUND_LABEL),
48
  'type' => 'textarea',
49
  'std' => ''
50
  )
51
  ),
52
  'shortcode' => '[testimony author="{{author}}" meta="{{meta}}"]{{content}}[/testimony]',
53
- 'clone' => __('Add More Testimony', INBOUND_LABEL )
54
  ),
55
  'shortcode' => '[testimonial heading="{{heading}}" column="{{column}}"]{{child}}[/testimonial]',
56
- 'popup_title' => __('Insert Testimonial Shortcode', INBOUND_LABEL)
57
  );
58
 
59
  /* Page builder module config
60
  * ----------------------------------------------------- */
61
  $freshbuilder_modules['testimonial'] = array(
62
- 'name' => __('Testimonial', INBOUND_LABEL),
63
  'size' => 'one_half',
64
  'options' => array(
65
  'heading' => array(
66
- 'name' => __('Heading', INBOUND_LABEL),
67
- 'desc' => __('Enter the heading text.', INBOUND_LABEL),
68
  'type' => 'text',
69
  'std' => 'Testimonial',
70
  'class' => '',
71
  'is_content' => 0
72
  ),
73
  'column' => array(
74
- 'name' => __('Column', INBOUND_LABEL),
75
- 'desc' => __('Select the number of column.', INBOUND_LABEL),
76
  'type' => 'select',
77
  'options' => array(
78
- '1' => __('1 Column', INBOUND_LABEL),
79
- '2' => __('2 Columns', INBOUND_LABEL),
80
- '3' => __('3 Columns', INBOUND_LABEL),
81
- '4' => __('4 Columns', INBOUND_LABEL),
82
- '5' => __('5 Columns', INBOUND_LABEL)
83
  ),
84
  'std' => '3',
85
  'class' => '',
@@ -88,24 +88,24 @@
88
  ),
89
  'child' => array(
90
  'author' => array(
91
- 'name' => __('Testimony Author', INBOUND_LABEL),
92
- 'desc' => __('Enter the testimony author name.', INBOUND_LABEL),
93
  'type' => 'text',
94
  'std' => '',
95
  'class' => '',
96
  'is_content' => 0
97
  ),
98
  'meta' => array(
99
- 'name' => __('Testimony Author Meta', INBOUND_LABEL),
100
- 'desc' => __('The author job, company or website name.', INBOUND_LABEL),
101
  'type' => 'text',
102
  'std' => '',
103
  'class' => '',
104
  'is_content' => 0
105
  ),
106
  'content' => array(
107
- 'name' => __('Testimony Text', INBOUND_LABEL),
108
- 'desc' => __('Put the content here.', INBOUND_LABEL),
109
  'type' => 'textarea',
110
  'std' => '',
111
  'class' => '',
@@ -121,7 +121,7 @@
121
 
122
  function inbound_shortcode_testimonial( $atts, $content = null ) {
123
  extract(shortcode_atts(array(
124
- 'heading' => __('Testimonial', INBOUND_LABEL),
125
  'column' => 1,
126
  ), $atts));
127
 
9
  'no_preview' => true,
10
  'options' => array(
11
  'heading' => array(
12
+ 'name' => __('Heading Text', 'leads'),
13
+ 'desc' => __('Enter the heading text.', 'leads'),
14
  'type' => 'text',
15
  'std' => 'Testimonial'
16
  ),
17
  'column' => array(
18
+ 'name' => __('Column', 'leads'),
19
+ 'desc' => __('Select the number of column.', 'leads'),
20
  'type' => 'select',
21
  'options' => array(
22
+ '1' => __('1 Column', 'leads'),
23
+ '2' => __('2 Columns', 'leads'),
24
+ '3' => __('3 Columns', 'leads'),
25
+ '4' => __('4 Columns', 'leads'),
26
+ '5' => __('5 Columns', 'leads')
27
  ),
28
  'std' => '1'
29
  )
31
  'child' => array(
32
  'options' => array(
33
  'author' => array(
34
+ 'name' => __('Testimony Author', 'leads'),
35
+ 'desc' => __('Enter the testimony author name.', 'leads'),
36
  'type' => 'text',
37
  'std' => ''
38
  ),
39
  'meta' => array(
40
+ 'name' => __('Testimony Author Meta', 'leads'),
41
+ 'desc' => __('The author job, company or website name.', 'leads'),
42
  'type' => 'text',
43
  'std' => ''
44
  ),
45
  'content' => array(
46
+ 'name' => __('Testimony Content', 'leads'),
47
+ 'desc' => __('Put the content here.', 'leads'),
48
  'type' => 'textarea',
49
  'std' => ''
50
  )
51
  ),
52
  'shortcode' => '[testimony author="{{author}}" meta="{{meta}}"]{{content}}[/testimony]',
53
+ 'clone' => __('Add More Testimony', 'leads' )
54
  ),
55
  'shortcode' => '[testimonial heading="{{heading}}" column="{{column}}"]{{child}}[/testimonial]',
56
+ 'popup_title' => __('Insert Testimonial Shortcode', 'leads')
57
  );
58
 
59
  /* Page builder module config
60
  * ----------------------------------------------------- */
61
  $freshbuilder_modules['testimonial'] = array(
62
+ 'name' => __('Testimonial', 'leads'),
63
  'size' => 'one_half',
64
  'options' => array(
65
  'heading' => array(
66
+ 'name' => __('Heading', 'leads'),
67
+ 'desc' => __('Enter the heading text.', 'leads'),
68
  'type' => 'text',
69
  'std' => 'Testimonial',
70
  'class' => '',
71
  'is_content' => 0
72
  ),
73
  'column' => array(
74
+ 'name' => __('Column', 'leads'),
75
+ 'desc' => __('Select the number of column.', 'leads'),
76
  'type' => 'select',
77
  'options' => array(
78
+ '1' => __('1 Column', 'leads'),
79
+ '2' => __('2 Columns', 'leads'),
80
+ '3' => __('3 Columns', 'leads'),
81
+ '4' => __('4 Columns', 'leads'),
82
+ '5' => __('5 Columns', 'leads')
83
  ),
84
  'std' => '3',
85
  'class' => '',
88
  ),
89
  'child' => array(
90
  'author' => array(
91
+ 'name' => __('Testimony Author', 'leads'),
92
+ 'desc' => __('Enter the testimony author name.', 'leads'),
93
  'type' => 'text',
94
  'std' => '',
95
  'class' => '',
96
  'is_content' => 0
97
  ),
98
  'meta' => array(
99
+ 'name' => __('Testimony Author Meta', 'leads'),
100
+ 'desc' => __('The author job, company or website name.', 'leads'),
101
  'type' => 'text',
102
  'std' => '',
103
  'class' => '',
104
  'is_content' => 0
105
  ),
106
  'content' => array(
107
+ 'name' => __('Testimony Text', 'leads'),
108
+ 'desc' => __('Put the content here.', 'leads'),
109
  'type' => 'textarea',
110
  'std' => '',
111
  'class' => '',
121
 
122
  function inbound_shortcode_testimonial( $atts, $content = null ) {
123
  extract(shortcode_atts(array(
124
+ 'heading' => __('Testimonial', 'leads'),
125
  'column' => 1,
126
  ), $atts));
127
 
shared/inbound-shortcodes/shortcodes/video.php CHANGED
@@ -9,14 +9,14 @@
9
  'no_preview' => true,
10
  'options' => array(
11
  'url' => array(
12
- 'name' => __('Video URL', INBOUND_LABEL),
13
- 'desc' => __('Paste the video URL here, click <a href="http://codex.wordpress.org/Embeds#Okay.2C_So_What_Sites_Can_I_Embed_From.3F" target="_blank">here</a> to see all available video hosts.', INBOUND_LABEL),
14
  'type' => 'text',
15
  'std' => ''
16
  )
17
  ),
18
  'shortcode' => '[video url="{{url}}" /]',
19
- 'popup_title' => __('Insert Video Shortcode', INBOUND_LABEL)
20
  );
21
 
22
  /* Add shortcode
9
  'no_preview' => true,
10
  'options' => array(
11
  'url' => array(
12
+ 'name' => __('Video URL', 'leads'),
13
+ 'desc' => __('Paste the video URL here, click <a href="http://codex.wordpress.org/Embeds#Okay.2C_So_What_Sites_Can_I_Embed_From.3F" target="_blank">here</a> to see all available video hosts.', 'leads'),
14
  'type' => 'text',
15
  'std' => ''
16
  )
17
  ),
18
  'shortcode' => '[video url="{{url}}" /]',
19
+ 'popup_title' => __('Insert Video Shortcode', 'leads')
20
  );
21
 
22
  /* Add shortcode
shared/languages/leads.mo ADDED
Binary file
shared/languages/leads.po ADDED
@@ -0,0 +1,3810 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WordPress Leads\n"
4
+ "POT-Creation-Date: 2014-02-23 15:34-0600\n"
5
+ "PO-Revision-Date: 2014-02-23 15:34-0600\n"
6
+ "Last-Translator: Hudson \n"
7
+ "Language-Team: InboundNow <hudson@inboundnow.com>\n"
8
+ "Language: en_US\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.6.4\n"
13
+ "X-Poedit-KeywordsList: __;_e\n"
14
+ "X-Poedit-Basepath: .\n"
15
+ "X-Poedit-SourceCharset: UTF-8\n"
16
+ "X-Poedit-SearchPath-0: ./../..\n"
17
+
18
+ #: ../../modules/module.cron.lead-rules.php:62
19
+ msgid "Once every two minutes"
20
+ msgstr ""
21
+
22
+ #: ../../modules/module.cron.lead-rules.php:167
23
+ msgid "Processing Begin: "
24
+ msgstr ""
25
+
26
+ #: ../../modules/module.cron.lead-rules.php:222
27
+ msgid "Rule Name: "
28
+ msgstr ""
29
+
30
+ #: ../../modules/module.cron.lead-rules.php:234
31
+ #, php-format
32
+ msgid "Skipping Rule: Rule %d ( %s ) is set to inactive! <br>"
33
+ msgstr ""
34
+
35
+ #: ../../modules/module.cron.lead-rules.php:248
36
+ #, php-format
37
+ msgid "Skipping Rule: Rule %d ( %s ) already completed for lead %d! <br>"
38
+ msgstr ""
39
+
40
+ #: ../../modules/module.cron.lead-rules.php:294
41
+ msgid " exist in target rule category.<br>"
42
+ msgstr ""
43
+
44
+ #: ../../modules/module.cron.lead-rules.php:355
45
+ #: ../../modules/module.cron.lead-rules.php:372
46
+ msgid "Failed to meet required conditions: Rule "
47
+ msgstr ""
48
+
49
+ #: ../../modules/module.cron.lead-rules.php:517
50
+ msgid "Message: Lead matched this rule & all actions completed!<br>"
51
+ msgstr ""
52
+
53
+ #: ../../modules/module.dashboard.php:1
54
+ msgid "Lists"
55
+ msgstr ""
56
+
57
+ #: ../../modules/module.dashboard.php:1
58
+ msgid "Today"
59
+ msgstr ""
60
+
61
+ #: ../../modules/module.dashboard.php:1
62
+ msgid "This Month"
63
+ msgstr ""
64
+
65
+ #: ../../modules/module.dashboard.php:1
66
+ msgid "Since Last Month"
67
+ msgstr ""
68
+
69
+ #: ../../modules/module.dashboard.php:1
70
+ #: ../../shared/classes/menu.class.php:220
71
+ msgid "Leads"
72
+ msgstr ""
73
+
74
+ #: ../../modules/module.dashboard.php:1
75
+ msgid "All Time"
76
+ msgstr ""
77
+
78
+ #: ../../modules/module.global-settings.php:14
79
+ msgid "IDs of forms to track"
80
+ msgstr ""
81
+
82
+ #: ../../modules/module.global-settings.php:15
83
+ msgid ""
84
+ "<p>Enter in a value found in a HTML form's id attribute to track it as a "
85
+ "conversion.</p><p>Do not include the # in the id. <strong>Example format: "
86
+ "Form_ID, Form-ID-2</strong></p><p>Gravity Forms, Contact Form 7, and Ninja "
87
+ "Forms are automatically tracked (no need to add their IDs in here). Comma "
88
+ "separated values</p>"
89
+ msgstr ""
90
+
91
+ #: ../../modules/module.global-settings.php:22
92
+ msgid "IDs of forms <u>NOT</u> to track"
93
+ msgstr ""
94
+
95
+ #: ../../modules/module.global-settings.php:23
96
+ msgid ""
97
+ "<p>Enter in a value found in a HTML form's id attribute to turn off tracking."
98
+ "</p>"
99
+ msgstr ""
100
+
101
+ #: ../../modules/module.global-settings.php:30
102
+ msgid "Form prepopulation"
103
+ msgstr ""
104
+
105
+ #: ../../modules/module.global-settings.php:31
106
+ msgid ""
107
+ "<p>WordPress Leads records submitted field data for leads and will attempt "
108
+ "to prepopulate forms with the last inputted data. Disabling this will turn "
109
+ "this feature off.</p>"
110
+ msgstr ""
111
+
112
+ #: ../../modules/module.global-settings.php:38
113
+ msgid "Page View Tracking"
114
+ msgstr ""
115
+
116
+ #: ../../modules/module.global-settings.php:39
117
+ msgid ""
118
+ "<p>WordPress Leads automatically tracks page views of converted leads. This "
119
+ "is extremely valuable lead intelligence and will help with your sales "
120
+ "followups. However with great power comes great resposibility, this extra "
121
+ "tracking can cause problems on high high traffic sites. You can turn off "
122
+ "tracking if you see any issues.</p>"
123
+ msgstr ""
124
+
125
+ #: ../../modules/module.global-settings.php:46
126
+ msgid "Show Lead/List Data in Dashboard"
127
+ msgstr ""
128
+
129
+ #: ../../modules/module.global-settings.php:47
130
+ msgid ""
131
+ "<p>Turn this on to show graphical and list data about lead collection in WP "
132
+ "Dashboard.</p>"
133
+ msgstr ""
134
+
135
+ #: ../../modules/module.global-settings.php:54
136
+ msgid "Disable Default WordPress Dashboard Widgets"
137
+ msgstr ""
138
+
139
+ #: ../../modules/module.global-settings.php:55
140
+ msgid "<p>This turns off some default widgets on the wordpress dashboard.</p>"
141
+ msgstr ""
142
+
143
+ #: ../../modules/module.global-settings.php:62
144
+ msgid "Full Contact API Key"
145
+ msgstr ""
146
+
147
+ #: ../../modules/module.global-settings.php:63
148
+ msgid ""
149
+ "<p>Enter your Full contact API key. If you don't have one. Grab a free one "
150
+ "here: <a href='https://www.fullcontact.com/developer/pricing/' "
151
+ "target='_blank'>here</a></p>"
152
+ msgstr ""
153
+
154
+ #: ../../modules/module.global-settings.php:70
155
+ msgid "Turn on compability mode"
156
+ msgstr ""
157
+
158
+ #: ../../modules/module.global-settings.php:71
159
+ msgid ""
160
+ "<p>This option turns on compability mode for the inbound now plugins. This "
161
+ "is typically used if you are experiencing bugs caused by third party plugin "
162
+ "conflicts.</p>"
163
+ msgstr ""
164
+
165
+ #: ../../modules/module.global-settings.php:78
166
+ msgid "How often do you want to process marketing automation rules?"
167
+ msgstr ""
168
+
169
+ #: ../../modules/module.global-settings.php:79
170
+ msgid ""
171
+ "<p>Set how often you would like to process lead automation? Cronjob Settings."
172
+ "</p>"
173
+ msgstr ""
174
+
175
+ #: ../../modules/module.global-settings.php:88
176
+ msgid "License Keys"
177
+ msgstr ""
178
+
179
+ #: ../../modules/module.global-settings.php:92
180
+ msgid "Extensions"
181
+ msgstr ""
182
+
183
+ #: ../../modules/module.lead-management.php:244
184
+ #: ../../modules/module.lead-management.php:779
185
+ msgid "Y/m/d"
186
+ msgstr ""
187
+
188
+ #: ../../modules/module.lead-management.php:302
189
+ msgid "All Leads in Database"
190
+ msgstr ""
191
+
192
+ #: ../../modules/module.lead-management.php:424
193
+ #, php-format
194
+ msgid "%d leads permanently deleted"
195
+ msgstr ""
196
+
197
+ #: ../../modules/module.lead-management.php:446
198
+ msgid "Lead Management - Bulk Update Leads"
199
+ msgstr ""
200
+
201
+ #: ../../modules/module.lead-management.php:449
202
+ msgid ""
203
+ "To get started, select the lead criteria below to see all matching leads."
204
+ msgstr ""
205
+
206
+ #: ../../modules/module.lead-management.php:464
207
+ msgid "Select Lead List(s):"
208
+ msgstr ""
209
+
210
+ #: ../../modules/module.lead-management.php:476
211
+ msgid "Match:"
212
+ msgstr ""
213
+
214
+ #: ../../modules/module.lead-management.php:479
215
+ msgid "(ONLY) Leads that are in <u>ALL</u> of the selected lists"
216
+ msgstr ""
217
+
218
+ #: ../../modules/module.lead-management.php:480
219
+ msgid "(ANY) Leads in at least 1 of the selected Lists"
220
+ msgstr ""
221
+
222
+ #: ../../modules/module.lead-management.php:487
223
+ msgid "Sort by:"
224
+ msgstr ""
225
+
226
+ #: ../../modules/module.lead-management.php:513
227
+ msgid "Keyword:"
228
+ msgstr ""
229
+
230
+ #: ../../modules/module.lead-management.php:514
231
+ #, php-format
232
+ msgid "Use % for wildcards."
233
+ msgstr ""
234
+
235
+ #: ../../modules/module.lead-management.php:533
236
+ #: ../../shared/functions/global.leads.cpt.php:22
237
+ msgid "Search Leads"
238
+ msgstr ""
239
+
240
+ #: ../../modules/module.lead-management.php:646
241
+ msgid "Previous"
242
+ msgstr ""
243
+
244
+ #: ../../modules/module.lead-management.php:659
245
+ msgid "Next"
246
+ msgstr ""
247
+
248
+ #: ../../modules/module.lead-management.php:681
249
+ msgid ""
250
+ "No posts matched that criteria, sorry! Try again with something different."
251
+ msgstr ""
252
+
253
+ #: ../../modules/module.lead-management.php:696
254
+ msgid "Total"
255
+ msgstr ""
256
+
257
+ #: ../../modules/module.lead-management.php:710
258
+ msgid "any category"
259
+ msgstr ""
260
+
261
+ #: ../../modules/module.lead-management.php:711
262
+ msgid "any tag"
263
+ msgstr ""
264
+
265
+ #: ../../modules/module.lead-management.php:712
266
+ msgid "containing the string"
267
+ msgstr ""
268
+
269
+ #: ../../modules/module.lead-management.php:721
270
+ msgid "Grabbing Matching Leads"
271
+ msgstr ""
272
+
273
+ #: ../../modules/module.lead-management.php:728
274
+ msgid "Date"
275
+ msgstr ""
276
+
277
+ #: ../../modules/module.lead-management.php:729
278
+ #: ../../modules/module.userfields.php:23
279
+ msgid "Email"
280
+ msgstr ""
281
+
282
+ #: ../../modules/module.lead-management.php:730
283
+ msgid "Current Lists"
284
+ msgstr ""
285
+
286
+ #: ../../modules/module.lead-management.php:731
287
+ msgid "Current Tags"
288
+ msgstr ""
289
+
290
+ #: ../../modules/module.lead-management.php:732
291
+ msgid "View"
292
+ msgstr ""
293
+
294
+ #: ../../modules/module.lead-management.php:733
295
+ msgid "ID"
296
+ msgstr ""
297
+
298
+ #: ../../modules/module.lead-management.php:776
299
+ msgid "Unpublished"
300
+ msgstr ""
301
+
302
+ #: ../../modules/module.lead-management.php:804
303
+ msgid "What do you want to do with the selected leads?"
304
+ msgstr ""
305
+
306
+ #: ../../modules/module.lead-management.php:816
307
+ msgid "Add to"
308
+ msgstr ""
309
+
310
+ #: ../../modules/module.lead-management.php:817
311
+ msgid "Remove from"
312
+ msgstr ""
313
+
314
+ #: ../../modules/module.lead-management.php:822
315
+ msgid "Separate multiple tags with commas. "
316
+ msgstr ""
317
+
318
+ #: ../../modules/module.lead-management.php:823
319
+ #: ../../modules/module.lead-management.php:831
320
+ msgid "Replace"
321
+ msgstr ""
322
+
323
+ #: ../../modules/module.lead-management.php:824
324
+ #: ../../modules/module.lead-management.php:832
325
+ msgid "Add"
326
+ msgstr ""
327
+
328
+ #: ../../modules/module.lead-management.php:825
329
+ #: ../../modules/module.lead-management.php:833
330
+ msgid "Remove"
331
+ msgstr ""
332
+
333
+ #: ../../modules/module.lead-management.php:839
334
+ #: ../../modules/module.lead-management.php:870
335
+ msgid "Permanently Delete Selected Leads"
336
+ msgstr ""
337
+
338
+ #: ../../modules/module.lead-management.php:866
339
+ msgid "Choose action to apply to selected leads"
340
+ msgstr ""
341
+
342
+ #: ../../modules/module.lead-management.php:868
343
+ msgid "Add or Remove Selected Leads from Lists"
344
+ msgstr ""
345
+
346
+ #: ../../modules/module.lead-management.php:869
347
+ msgid "Add or Remove Tags to Selected Leads"
348
+ msgstr ""
349
+
350
+ #: ../../modules/module.lead-management.php:1025
351
+ msgid "User does not have admin level permissions."
352
+ msgstr ""
353
+
354
+ #: ../../modules/module.metaboxes.automation.php:8
355
+ msgid "IF condition"
356
+ msgstr ""
357
+
358
+ #: ../../modules/module.metaboxes.automation.php:15
359
+ msgid ""
360
+ "This condition allows us to set the primary criteria for lead sorting or "
361
+ "points awarding."
362
+ msgstr ""
363
+
364
+ #: ../../modules/module.metaboxes.automation.php:17
365
+ #: ../../modules/module.metaboxes.automation.php:37
366
+ msgid "Visitor views any page"
367
+ msgstr ""
368
+
369
+ #: ../../modules/module.metaboxes.automation.php:18
370
+ #: ../../modules/module.metaboxes.automation.php:38
371
+ msgid "Visitor views category specific page"
372
+ msgstr ""
373
+
374
+ #: ../../modules/module.metaboxes.automation.php:19
375
+ #: ../../modules/module.metaboxes.automation.php:39
376
+ msgid "Visitor converts on any page"
377
+ msgstr ""
378
+
379
+ #: ../../modules/module.metaboxes.automation.php:20
380
+ #: ../../modules/module.metaboxes.automation.php:40
381
+ msgid "Visitor converts on category specific page"
382
+ msgstr ""
383
+
384
+ #: ../../modules/module.metaboxes.automation.php:22
385
+ #: ../../modules/module.metaboxes.automation.php:42
386
+ msgid "Total number of successful rule matches is at least"
387
+ msgstr ""
388
+
389
+ #: ../../modules/module.metaboxes.automation.php:28
390
+ msgid "# Action Requirments"
391
+ msgstr ""
392
+
393
+ #: ../../modules/module.metaboxes.automation.php:35
394
+ msgid ""
395
+ "This condition sets the standard that the IF statement above must achieve "
396
+ "before a rule is executed."
397
+ msgstr ""
398
+
399
+ #: ../../modules/module.metaboxes.automation.php:47
400
+ msgid "Category Condition"
401
+ msgstr ""
402
+
403
+ #: ../../modules/module.metaboxes.automation.php:54
404
+ msgid ""
405
+ "When an IF statment requires category specific reader behavior this dropdown "
406
+ "helps us target our category of interest."
407
+ msgstr ""
408
+
409
+ #: ../../modules/module.metaboxes.automation.php:59
410
+ msgid "Rule Limitation"
411
+ msgstr ""
412
+
413
+ #: ../../modules/module.metaboxes.automation.php:67
414
+ msgid ""
415
+ "To protect rule actions from firing multiple times on the same user turn "
416
+ "this setting to on."
417
+ msgstr ""
418
+
419
+ #: ../../modules/module.metaboxes.automation.php:68
420
+ msgid "Only run rule on lead once."
421
+ msgstr ""
422
+
423
+ #: ../../modules/module.metaboxes.automation.php:72
424
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:92
425
+ msgid "Add to List(s)"
426
+ msgstr ""
427
+
428
+ #: ../../modules/module.metaboxes.automation.php:79
429
+ msgid ""
430
+ "When all rule conditions are met by a lead then sort the lead into these "
431
+ "lead lists."
432
+ msgstr ""
433
+
434
+ #: ../../modules/module.metaboxes.automation.php:84
435
+ msgid "Remove from List(s)"
436
+ msgstr ""
437
+
438
+ #: ../../modules/module.metaboxes.automation.php:91
439
+ msgid ""
440
+ "When all rule conditions are met by a lead then remove the lead out of these "
441
+ "lead lists."
442
+ msgstr ""
443
+
444
+ #: ../../modules/module.metaboxes.automation.php:96
445
+ msgid "Adjust Lead Score"
446
+ msgstr ""
447
+
448
+ #: ../../modules/module.metaboxes.automation.php:103
449
+ msgid ""
450
+ "When all rule conditions are met by a lead then award the user this many "
451
+ "points. You may use - symbols before an interger for point removal."
452
+ msgstr ""
453
+
454
+ #: ../../modules/module.metaboxes.automation.php:130
455
+ msgid "Automation Rule Overview"
456
+ msgstr ""
457
+
458
+ #: ../../modules/module.metaboxes.automation.php:139
459
+ msgid "Rule Tools"
460
+ msgstr ""
461
+
462
+ #: ../../modules/module.metaboxes.automation.php:157
463
+ msgid "Condition 1"
464
+ msgstr ""
465
+
466
+ #: ../../modules/module.metaboxes.automation.php:210
467
+ msgid "Activate Rule"
468
+ msgstr ""
469
+
470
+ #: ../../modules/module.metaboxes.automation.php:214
471
+ msgid "Match all conditions."
472
+ msgstr ""
473
+
474
+ #: ../../modules/module.metaboxes.automation.php:215
475
+ msgid "Match any conditions."
476
+ msgstr ""
477
+
478
+ #: ../../modules/module.metaboxes.automation.php:217
479
+ msgid "Add New Condtion"
480
+ msgstr ""
481
+
482
+ #: ../../modules/module.metaboxes.automation.php:231
483
+ #, php-format
484
+ msgid "Condition %d"
485
+ msgstr ""
486
+
487
+ #: ../../modules/module.metaboxes.automation.php:239
488
+ msgid "Remove Condition"
489
+ msgstr ""
490
+
491
+ #: ../../modules/module.metaboxes.automation.php:261
492
+ #: ../../modules/module.wp_list_table-leads.php:81
493
+ msgid "Actions"
494
+ msgstr ""
495
+
496
+ #: ../../modules/module.metaboxes.automation.php:292
497
+ msgid "Processing..."
498
+ msgstr ""
499
+
500
+ #: ../../modules/module.metaboxes.automation.php:309
501
+ msgid "Run rule on all leads."
502
+ msgstr ""
503
+
504
+ #: ../../modules/module.metaboxes.automation.php:318
505
+ #, php-format
506
+ msgid ""
507
+ "Estimated Time Remaining: %d minutes. Reload page to recalulate time "
508
+ "remaining."
509
+ msgstr ""
510
+
511
+ #: ../../modules/module.metaboxes.automation.php:320
512
+ msgid "Force Processing"
513
+ msgstr ""
514
+
515
+ #: ../../modules/module.metaboxes.list.php:15
516
+ #, php-format
517
+ msgid "Leads in %s list"
518
+ msgstr ""
519
+
520
+ #: ../../modules/module.metaboxes.wp-lead.php:68
521
+ msgid "Empty Keywords, User is probably logged into "
522
+ msgstr ""
523
+
524
+ #: ../../modules/module.metaboxes.wp-lead.php:97
525
+ msgid "Lead Stats"
526
+ msgstr ""
527
+
528
+ #: ../../modules/module.metaboxes.wp-lead.php:115
529
+ msgid "Years"
530
+ msgstr ""
531
+
532
+ #: ../../modules/module.metaboxes.wp-lead.php:115
533
+ msgid "Year"
534
+ msgstr ""
535
+
536
+ #: ../../modules/module.metaboxes.wp-lead.php:117
537
+ msgid "Months"
538
+ msgstr ""
539
+
540
+ #: ../../modules/module.metaboxes.wp-lead.php:117
541
+ msgid "Month"
542
+ msgstr ""
543
+
544
+ #: ../../modules/module.metaboxes.wp-lead.php:119
545
+ msgid "Days"
546
+ msgstr ""
547
+
548
+ #: ../../modules/module.metaboxes.wp-lead.php:119
549
+ msgid "Day"
550
+ msgstr ""
551
+
552
+ #: ../../modules/module.metaboxes.wp-lead.php:121
553
+ msgid "Hours"
554
+ msgstr ""
555
+
556
+ #: ../../modules/module.metaboxes.wp-lead.php:121
557
+ msgid "Hour"
558
+ msgstr ""
559
+
560
+ #: ../../modules/module.metaboxes.wp-lead.php:123
561
+ msgid "Minutes"
562
+ msgstr ""
563
+
564
+ #: ../../modules/module.metaboxes.wp-lead.php:123
565
+ msgid "Minute"
566
+ msgstr ""
567
+
568
+ #: ../../modules/module.metaboxes.wp-lead.php:125
569
+ msgid "Seconds"
570
+ msgstr ""
571
+
572
+ #: ../../modules/module.metaboxes.wp-lead.php:125
573
+ msgid "Second"
574
+ msgstr ""
575
+
576
+ #: ../../modules/module.metaboxes.wp-lead.php:172
577
+ msgid "Total Page Views "
578
+ msgstr ""
579
+
580
+ #: ../../modules/module.metaboxes.wp-lead.php:175
581
+ msgid "# of Conversions "
582
+ msgstr ""
583
+
584
+ #: ../../modules/module.metaboxes.wp-lead.php:200
585
+ msgid "Time Since Last Conversion"
586
+ msgstr ""
587
+
588
+ #: ../../modules/module.metaboxes.wp-lead.php:230
589
+ msgid "Last Conversion Activity Location"
590
+ msgstr ""
591
+
592
+ #: ../../modules/module.metaboxes.wp-lead.php:270
593
+ msgid "City:"
594
+ msgstr ""
595
+
596
+ #: ../../modules/module.metaboxes.wp-lead.php:272
597
+ msgid "State:"
598
+ msgstr ""
599
+
600
+ #: ../../modules/module.metaboxes.wp-lead.php:275
601
+ msgid "Area Code:"
602
+ msgstr ""
603
+
604
+ #: ../../modules/module.metaboxes.wp-lead.php:278
605
+ msgid "Country:"
606
+ msgstr ""
607
+
608
+ #: ../../modules/module.metaboxes.wp-lead.php:281
609
+ msgid "IP Address:"
610
+ msgstr ""
611
+
612
+ #: ../../modules/module.metaboxes.wp-lead.php:295
613
+ msgid "View Map:"
614
+ msgstr ""
615
+
616
+ #: ../../modules/module.metaboxes.wp-lead.php:302
617
+ msgid "No Geo data collected"
618
+ msgstr ""
619
+
620
+ #: ../../modules/module.metaboxes.wp-lead.php:342
621
+ msgid "Lead Status:"
622
+ msgstr ""
623
+
624
+ #: ../../modules/module.metaboxes.wp-lead.php:344
625
+ msgid "Read/Viewed"
626
+ msgstr ""
627
+
628
+ #: ../../modules/module.metaboxes.wp-lead.php:345
629
+ msgid "New Lead"
630
+ msgstr ""
631
+
632
+ #: ../../modules/module.metaboxes.wp-lead.php:346
633
+ msgid "Contacted"
634
+ msgstr ""
635
+
636
+ #: ../../modules/module.metaboxes.wp-lead.php:347
637
+ msgid "Active"
638
+ msgstr ""
639
+
640
+ #: ../../modules/module.metaboxes.wp-lead.php:348
641
+ msgid "Disqualified/Lost"
642
+ msgstr ""
643
+
644
+ #: ../../modules/module.metaboxes.wp-lead.php:349
645
+ msgid "Customer"
646
+ msgstr ""
647
+
648
+ #: ../../modules/module.metaboxes.wp-lead.php:350
649
+ msgid "Archive"
650
+ msgstr ""
651
+
652
+ #: ../../modules/module.metaboxes.wp-lead.php:474
653
+ msgid "Websites"
654
+ msgstr ""
655
+
656
+ #: ../../modules/module.metaboxes.wp-lead.php:484
657
+ msgid "Social Media Profiles"
658
+ msgstr ""
659
+
660
+ #: ../../modules/module.metaboxes.wp-lead.php:509
661
+ msgid "View past work"
662
+ msgstr ""
663
+
664
+ #: ../../modules/module.metaboxes.wp-lead.php:513
665
+ msgid "Demographics"
666
+ msgstr ""
667
+
668
+ #: ../../modules/module.metaboxes.wp-lead.php:523
669
+ msgid "Interests"
670
+ msgstr ""
671
+
672
+ #: ../../modules/module.metaboxes.wp-lead.php:543
673
+ msgid "Lead Overview"
674
+ msgstr ""
675
+
676
+ #: ../../modules/module.metaboxes.wp-lead.php:601
677
+ msgid "Show Hidden/Empty Fields"
678
+ msgstr ""
679
+
680
+ #: ../../modules/module.metaboxes.wp-lead.php:660
681
+ msgid "Tag cloud of content consumed"
682
+ msgstr ""
683
+
684
+ #: ../../modules/module.metaboxes.wp-lead.php:680
685
+ msgid "Conversions"
686
+ msgstr ""
687
+
688
+ #: ../../modules/module.metaboxes.wp-lead.php:681
689
+ #: ../../modules/module.metaboxes.wp-lead.php:826
690
+ msgid "Page Views"
691
+ msgstr ""
692
+
693
+ #: ../../modules/module.metaboxes.wp-lead.php:688
694
+ #: ../../modules/module.metaboxes.wp-lead.php:957
695
+ msgid "All"
696
+ msgstr ""
697
+
698
+ #: ../../modules/module.metaboxes.wp-lead.php:703
699
+ msgid "Most Recent"
700
+ msgstr ""
701
+
702
+ #: ../../modules/module.metaboxes.wp-lead.php:704
703
+ msgid "Oldest"
704
+ msgstr ""
705
+
706
+ #: ../../modules/module.metaboxes.wp-lead.php:710
707
+ msgid "Landing Page Conversions"
708
+ msgstr ""
709
+
710
+ #: ../../modules/module.metaboxes.wp-lead.php:751
711
+ msgid "view visit path"
712
+ msgstr ""
713
+
714
+ #: ../../modules/module.metaboxes.wp-lead.php:760
715
+ msgid "No conversions found!"
716
+ msgstr ""
717
+
718
+ #: ../../modules/module.metaboxes.wp-lead.php:943
719
+ msgid "No Page View History Found"
720
+ msgstr ""
721
+
722
+ #: ../../modules/module.metaboxes.wp-lead.php:958
723
+ msgid "Form Data"
724
+ msgstr ""
725
+
726
+ #: ../../modules/module.metaboxes.wp-lead.php:959
727
+ msgid "Page Data"
728
+ msgstr ""
729
+
730
+ #: ../../modules/module.metaboxes.wp-lead.php:960
731
+ msgid "Event Data"
732
+ msgstr ""
733
+
734
+ #: ../../modules/module.metaboxes.wp-lead.php:973
735
+ msgid "Form Inputs with Values"
736
+ msgstr ""
737
+
738
+ #: ../../modules/module.metaboxes.wp-lead.php:981
739
+ msgid "Input name:"
740
+ msgstr ""
741
+
742
+ #: ../../modules/module.metaboxes.wp-lead.php:1008
743
+ msgid "Raw Form Data Array"
744
+ msgstr ""
745
+
746
+ #: ../../modules/module.metaboxes.wp-lead.php:1017
747
+ msgid "No raw data found!"
748
+ msgstr ""
749
+
750
+ #: ../../modules/module.metaboxes.wp-lead.php:1069
751
+ msgid "Add New Link"
752
+ msgstr ""
753
+
754
+ #: ../../modules/module.metaboxes.wp-lead.php:1069
755
+ msgid "add link"
756
+ msgstr ""
757
+
758
+ #: ../../modules/module.metaboxes.wp-lead.php:1152
759
+ msgid "Country..."
760
+ msgstr ""
761
+
762
+ #: ../../modules/module.metaboxes.wp-lead.php:1153
763
+ msgid "Afghanistan"
764
+ msgstr ""
765
+
766
+ #: ../../modules/module.metaboxes.wp-lead.php:1154
767
+ msgid "Albania"
768
+ msgstr ""
769
+
770
+ #: ../../modules/module.metaboxes.wp-lead.php:1155
771
+ msgid "Algeria"
772
+ msgstr ""
773
+
774
+ #: ../../modules/module.metaboxes.wp-lead.php:1156
775
+ msgid "American Samoa"
776
+ msgstr ""
777
+
778
+ #: ../../modules/module.metaboxes.wp-lead.php:1157
779
+ msgid "Andorra"
780
+ msgstr ""
781
+
782
+ #: ../../modules/module.metaboxes.wp-lead.php:1158
783
+ msgid "Angola"
784
+ msgstr ""
785
+
786
+ #: ../../modules/module.metaboxes.wp-lead.php:1159
787
+ msgid "Anguilla"
788
+ msgstr ""
789
+
790
+ #: ../../modules/module.metaboxes.wp-lead.php:1160
791
+ msgid "Antigua &amp; Barbuda"
792
+ msgstr ""
793
+
794
+ #: ../../modules/module.metaboxes.wp-lead.php:1161
795
+ msgid "Argentina"
796
+ msgstr ""
797
+
798
+ #: ../../modules/module.metaboxes.wp-lead.php:1162
799
+ msgid "Armenia"
800
+ msgstr ""
801
+
802
+ #: ../../modules/module.metaboxes.wp-lead.php:1163
803
+ msgid "Aruba"
804
+ msgstr ""
805
+
806
+ #: ../../modules/module.metaboxes.wp-lead.php:1164
807
+ msgid "Australia"
808
+ msgstr ""
809
+
810
+ #: ../../modules/module.metaboxes.wp-lead.php:1165
811
+ msgid "Austria"
812
+ msgstr ""
813
+
814
+ #: ../../modules/module.metaboxes.wp-lead.php:1166
815
+ msgid "Azerbaijan"
816
+ msgstr ""
817
+
818
+ #: ../../modules/module.metaboxes.wp-lead.php:1167
819
+ msgid "Bahamas"
820
+ msgstr ""
821
+
822
+ #: ../../modules/module.metaboxes.wp-lead.php:1168
823
+ msgid "Bahrain"
824
+ msgstr ""
825
+
826
+ #: ../../modules/module.metaboxes.wp-lead.php:1169
827
+ msgid "Bangladesh"
828
+ msgstr ""
829
+
830
+ #: ../../modules/module.metaboxes.wp-lead.php:1170
831
+ msgid "Barbados"
832
+ msgstr ""
833
+
834
+ #: ../../modules/module.metaboxes.wp-lead.php:1171
835
+ msgid "Belarus"
836
+ msgstr ""
837
+
838
+ #: ../../modules/module.metaboxes.wp-lead.php:1172
839
+ msgid "Belgium"
840
+ msgstr ""
841
+
842
+ #: ../../modules/module.metaboxes.wp-lead.php:1173
843
+ msgid "Belize"
844
+ msgstr ""
845
+
846
+ #: ../../modules/module.metaboxes.wp-lead.php:1174
847
+ msgid "Benin"
848
+ msgstr ""
849
+
850
+ #: ../../modules/module.metaboxes.wp-lead.php:1175
851
+ msgid "Bermuda"
852
+ msgstr ""
853
+
854
+ #: ../../modules/module.metaboxes.wp-lead.php:1176
855
+ msgid "Bhutan"
856
+ msgstr ""
857
+
858
+ #: ../../modules/module.metaboxes.wp-lead.php:1177
859
+ msgid "Bolivia"
860
+ msgstr ""
861
+
862
+ #: ../../modules/module.metaboxes.wp-lead.php:1178
863
+ msgid "Bonaire"
864
+ msgstr ""
865
+
866
+ #: ../../modules/module.metaboxes.wp-lead.php:1179
867
+ msgid "Bosnia &amp; Herzegovina"
868
+ msgstr ""
869
+
870
+ #: ../../modules/module.metaboxes.wp-lead.php:1180
871
+ msgid "Botswana"
872
+ msgstr ""
873
+
874
+ #: ../../modules/module.metaboxes.wp-lead.php:1181
875
+ msgid "Brazil"
876
+ msgstr ""
877
+
878
+ #: ../../modules/module.metaboxes.wp-lead.php:1182
879
+ msgid "British Indian Ocean Ter"
880
+ msgstr ""
881
+
882
+ #: ../../modules/module.metaboxes.wp-lead.php:1183
883
+ msgid "Brunei"
884
+ msgstr ""
885
+
886
+ #: ../../modules/module.metaboxes.wp-lead.php:1184
887
+ msgid "Bulgaria"
888
+ msgstr ""
889
+
890
+ #: ../../modules/module.metaboxes.wp-lead.php:1185
891
+ msgid "Burkina Faso"
892
+ msgstr ""
893
+
894
+ #: ../../modules/module.metaboxes.wp-lead.php:1186
895
+ msgid "Burundi"
896
+ msgstr ""
897
+
898
+ #: ../../modules/module.metaboxes.wp-lead.php:1187
899
+ msgid "Cambodia"
900
+ msgstr ""
901
+
902
+ #: ../../modules/module.metaboxes.wp-lead.php:1188
903
+ msgid "Cameroon"
904
+ msgstr ""
905
+
906
+ #: ../../modules/module.metaboxes.wp-lead.php:1189
907
+ msgid "Canada"
908
+ msgstr ""
909
+
910
+ #: ../../modules/module.metaboxes.wp-lead.php:1190
911
+ msgid "Canary Islands"
912
+ msgstr ""
913
+
914
+ #: ../../modules/module.metaboxes.wp-lead.php:1191
915
+ msgid "Cape Verde"
916
+ msgstr ""
917
+
918
+ #: ../../modules/module.metaboxes.wp-lead.php:1192
919
+ msgid "Cayman Islands"
920
+ msgstr ""
921
+
922
+ #: ../../modules/module.metaboxes.wp-lead.php:1193
923
+ msgid "Central African Republic"
924
+ msgstr ""
925
+
926
+ #: ../../modules/module.metaboxes.wp-lead.php:1194
927
+ msgid "Chad"
928
+ msgstr ""
929
+
930
+ #: ../../modules/module.metaboxes.wp-lead.php:1195
931
+ msgid "Channel Islands"
932
+ msgstr ""
933
+
934
+ #: ../../modules/module.metaboxes.wp-lead.php:1196
935
+ msgid "Chile"
936
+ msgstr ""
937
+
938
+ #: ../../modules/module.metaboxes.wp-lead.php:1197
939
+ msgid "China"
940
+ msgstr ""
941
+
942
+ #: ../../modules/module.metaboxes.wp-lead.php:1198
943
+ msgid "Christmas Island"
944
+ msgstr ""
945
+
946
+ #: ../../modules/module.metaboxes.wp-lead.php:1199
947
+ msgid "Cocos Island"
948
+ msgstr ""
949
+
950
+ #: ../../modules/module.metaboxes.wp-lead.php:1200
951
+ msgid "Colombia"
952
+ msgstr ""
953
+
954
+ #: ../../modules/module.metaboxes.wp-lead.php:1201
955
+ msgid "Comoros"
956
+ msgstr ""
957
+
958
+ #: ../../modules/module.metaboxes.wp-lead.php:1202
959
+ msgid "Congo"
960
+ msgstr ""
961
+
962
+ #: ../../modules/module.metaboxes.wp-lead.php:1203
963
+ msgid "Cook Islands"
964
+ msgstr ""
965
+
966
+ #: ../../modules/module.metaboxes.wp-lead.php:1204
967
+ msgid "Costa Rica"
968
+ msgstr ""
969
+
970
+ #: ../../modules/module.metaboxes.wp-lead.php:1205
971
+ msgid "Cote D'Ivoire"
972
+ msgstr ""
973
+
974
+ #: ../../modules/module.metaboxes.wp-lead.php:1206
975
+ msgid "Croatia"
976
+ msgstr ""
977
+
978
+ #: ../../modules/module.metaboxes.wp-lead.php:1207
979
+ msgid "Cuba"
980
+ msgstr ""
981
+
982
+ #: ../../modules/module.metaboxes.wp-lead.php:1208
983
+ msgid "Curacao"
984
+ msgstr ""
985
+
986
+ #: ../../modules/module.metaboxes.wp-lead.php:1209
987
+ msgid "Cyprus"
988
+ msgstr ""
989
+
990
+ #: ../../modules/module.metaboxes.wp-lead.php:1210
991
+ msgid "Czech Republic"
992
+ msgstr ""
993
+
994
+ #: ../../modules/module.metaboxes.wp-lead.php:1211
995
+ msgid "Denmark"
996
+ msgstr ""
997
+
998
+ #: ../../modules/module.metaboxes.wp-lead.php:1212
999
+ msgid "Djibouti"
1000
+ msgstr ""
1001
+
1002
+ #: ../../modules/module.metaboxes.wp-lead.php:1213
1003
+ msgid "Dominica"
1004
+ msgstr ""
1005
+
1006
+ #: ../../modules/module.metaboxes.wp-lead.php:1214
1007
+ msgid "Dominican Republic"
1008
+ msgstr ""
1009
+
1010
+ #: ../../modules/module.metaboxes.wp-lead.php:1215
1011
+ msgid "East Timor"
1012
+ msgstr ""
1013
+
1014
+ #: ../../modules/module.metaboxes.wp-lead.php:1216
1015
+ msgid "Ecuador"
1016
+ msgstr ""
1017
+
1018
+ #: ../../modules/module.metaboxes.wp-lead.php:1217
1019
+ msgid "Egypt"
1020
+ msgstr ""
1021
+
1022
+ #: ../../modules/module.metaboxes.wp-lead.php:1218
1023
+ msgid "El Salvador"
1024
+ msgstr ""
1025
+
1026
+ #: ../../modules/module.metaboxes.wp-lead.php:1219
1027
+ msgid "Equatorial Guinea"
1028
+ msgstr ""
1029
+
1030
+ #: ../../modules/module.metaboxes.wp-lead.php:1220
1031
+ msgid "Eritrea"
1032
+ msgstr ""
1033
+
1034
+ #: ../../modules/module.metaboxes.wp-lead.php:1221
1035
+ msgid "Estonia"
1036
+ msgstr ""
1037
+
1038
+ #: ../../modules/module.metaboxes.wp-lead.php:1222
1039
+ msgid "Ethiopia"
1040
+ msgstr ""
1041
+
1042
+ #: ../../modules/module.metaboxes.wp-lead.php:1223
1043
+ msgid "Falkland Islands"
1044
+ msgstr ""
1045
+
1046
+ #: ../../modules/module.metaboxes.wp-lead.php:1224
1047
+ msgid "Faroe Islands"
1048
+ msgstr ""
1049
+
1050
+ #: ../../modules/module.metaboxes.wp-lead.php:1225
1051
+ msgid "Fiji"
1052
+ msgstr ""
1053
+
1054
+ #: ../../modules/module.metaboxes.wp-lead.php:1226
1055
+ msgid "Finland"
1056
+ msgstr ""
1057
+
1058
+ #: ../../modules/module.metaboxes.wp-lead.php:1227
1059
+ msgid "France"
1060
+ msgstr ""
1061
+
1062
+ #: ../../modules/module.metaboxes.wp-lead.php:1228
1063
+ msgid "French Guiana"
1064
+ msgstr ""
1065
+
1066
+ #: ../../modules/module.metaboxes.wp-lead.php:1229
1067
+ msgid "French Polynesia"
1068
+ msgstr ""
1069
+
1070
+ #: ../../modules/module.metaboxes.wp-lead.php:1230
1071
+ msgid "French Southern Ter"
1072
+ msgstr ""
1073
+
1074
+ #: ../../modules/module.metaboxes.wp-lead.php:1231
1075
+ msgid "Gabon"
1076
+ msgstr ""
1077
+
1078
+ #: ../../modules/module.metaboxes.wp-lead.php:1232
1079
+ msgid "Gambia"
1080
+ msgstr ""
1081
+
1082
+ #: ../../modules/module.metaboxes.wp-lead.php:1233
1083
+ msgid "Georgia"
1084
+ msgstr ""
1085
+
1086
+ #: ../../modules/module.metaboxes.wp-lead.php:1234
1087
+ msgid "Germany"
1088
+ msgstr ""
1089
+
1090
+ #: ../../modules/module.metaboxes.wp-lead.php:1235
1091
+ msgid "Ghana"
1092
+ msgstr ""
1093
+
1094
+ #: ../../modules/module.metaboxes.wp-lead.php:1236
1095
+ msgid "Gibraltar"
1096
+ msgstr ""
1097
+
1098
+ #: ../../modules/module.metaboxes.wp-lead.php:1237
1099
+ msgid "Great Britain"
1100
+ msgstr ""
1101
+
1102
+ #: ../../modules/module.metaboxes.wp-lead.php:1238
1103
+ msgid "Greece"
1104
+ msgstr ""
1105
+
1106
+ #: ../../modules/module.metaboxes.wp-lead.php:1239
1107
+ msgid "Greenland"
1108
+ msgstr ""
1109
+
1110
+ #: ../../modules/module.metaboxes.wp-lead.php:1240
1111
+ msgid "Grenada"
1112
+ msgstr ""
1113
+
1114
+ #: ../../modules/module.metaboxes.wp-lead.php:1241
1115
+ msgid "Guadeloupe"
1116
+ msgstr ""
1117
+
1118
+ #: ../../modules/module.metaboxes.wp-lead.php:1242
1119
+ msgid "Guam"
1120
+ msgstr ""
1121
+
1122
+ #: ../../modules/module.metaboxes.wp-lead.php:1243
1123
+ msgid "Guatemala"
1124
+ msgstr ""
1125
+
1126
+ #: ../../modules/module.metaboxes.wp-lead.php:1244
1127
+ msgid "Guinea"
1128
+ msgstr ""
1129
+
1130
+ #: ../../modules/module.metaboxes.wp-lead.php:1245
1131
+ msgid "Guyana"
1132
+ msgstr ""
1133
+
1134
+ #: ../../modules/module.metaboxes.wp-lead.php:1246
1135
+ msgid "Haiti"
1136
+ msgstr ""
1137
+
1138
+ #: ../../modules/module.metaboxes.wp-lead.php:1247
1139
+ msgid "Hawaii"
1140
+ msgstr ""
1141
+
1142
+ #: ../../modules/module.metaboxes.wp-lead.php:1248
1143
+ msgid "Honduras"
1144
+ msgstr ""
1145
+
1146
+ #: ../../modules/module.metaboxes.wp-lead.php:1249
1147
+ msgid "Hong Kong"
1148
+ msgstr ""
1149
+
1150
+ #: ../../modules/module.metaboxes.wp-lead.php:1250
1151
+ msgid "Hungary"
1152
+ msgstr ""
1153
+
1154
+ #: ../../modules/module.metaboxes.wp-lead.php:1251
1155
+ msgid "Iceland"
1156
+ msgstr ""
1157
+
1158
+ #: ../../modules/module.metaboxes.wp-lead.php:1252
1159
+ msgid "India"
1160
+ msgstr ""
1161
+
1162
+ #: ../../modules/module.metaboxes.wp-lead.php:1253
1163
+ msgid "Indonesia"
1164
+ msgstr ""
1165
+
1166
+ #: ../../modules/module.metaboxes.wp-lead.php:1254
1167
+ msgid "Iran"
1168
+ msgstr ""
1169
+
1170
+ #: ../../modules/module.metaboxes.wp-lead.php:1255
1171
+ msgid "Iraq"
1172
+ msgstr ""
1173
+
1174
+ #: ../../modules/module.metaboxes.wp-lead.php:1256
1175
+ msgid "Ireland"
1176
+ msgstr ""
1177
+
1178
+ #: ../../modules/module.metaboxes.wp-lead.php:1257
1179
+ msgid "Isle of Man"
1180
+ msgstr ""
1181
+
1182
+ #: ../../modules/module.metaboxes.wp-lead.php:1258
1183
+ msgid "Israel"
1184
+ msgstr ""
1185
+
1186
+ #: ../../modules/module.metaboxes.wp-lead.php:1259
1187
+ msgid "Italy"
1188
+ msgstr ""
1189
+
1190
+ #: ../../modules/module.metaboxes.wp-lead.php:1260
1191
+ msgid "Jamaica"
1192
+ msgstr ""
1193
+
1194
+ #: ../../modules/module.metaboxes.wp-lead.php:1261
1195
+ msgid "Japan"
1196
+ msgstr ""
1197
+
1198
+ #: ../../modules/module.metaboxes.wp-lead.php:1262
1199
+ msgid "Jordan"
1200
+ msgstr ""
1201
+
1202
+ #: ../../modules/module.metaboxes.wp-lead.php:1263
1203
+ msgid "Kazakhstan"
1204
+ msgstr ""
1205
+
1206
+ #: ../../modules/module.metaboxes.wp-lead.php:1264
1207
+ msgid "Kenya"
1208
+ msgstr ""
1209
+
1210
+ #: ../../modules/module.metaboxes.wp-lead.php:1265
1211
+ msgid "Kiribati"
1212
+ msgstr ""
1213
+
1214
+ #: ../../modules/module.metaboxes.wp-lead.php:1266
1215
+ msgid "Korea North"
1216
+ msgstr ""
1217
+
1218
+ #: ../../modules/module.metaboxes.wp-lead.php:1267
1219
+ msgid "Korea South"
1220
+ msgstr ""
1221
+
1222
+ #: ../../modules/module.metaboxes.wp-lead.php:1268
1223
+ msgid "Kuwait"
1224
+ msgstr ""
1225
+
1226
+ #: ../../modules/module.metaboxes.wp-lead.php:1269
1227
+ msgid "Kyrgyzstan"
1228
+ msgstr ""
1229
+
1230
+ #: ../../modules/module.metaboxes.wp-lead.php:1270
1231
+ msgid "Laos"
1232
+ msgstr ""
1233
+
1234
+ #: ../../modules/module.metaboxes.wp-lead.php:1271
1235
+ msgid "Latvia"
1236
+ msgstr ""
1237
+
1238
+ #: ../../modules/module.metaboxes.wp-lead.php:1272
1239
+ msgid "Lebanon"
1240
+ msgstr ""
1241
+
1242
+ #: ../../modules/module.metaboxes.wp-lead.php:1273
1243
+ msgid "Lesotho"
1244
+ msgstr ""
1245
+
1246
+ #: ../../modules/module.metaboxes.wp-lead.php:1274
1247
+ msgid "Liberia"
1248
+ msgstr ""
1249
+
1250
+ #: ../../modules/module.metaboxes.wp-lead.php:1275
1251
+ msgid "Libya"
1252
+ msgstr ""
1253
+
1254
+ #: ../../modules/module.metaboxes.wp-lead.php:1276
1255
+ msgid "Liechtenstein"
1256
+ msgstr ""
1257
+
1258
+ #: ../../modules/module.metaboxes.wp-lead.php:1277
1259
+ msgid "Lithuania"
1260
+ msgstr ""
1261
+
1262
+ #: ../../modules/module.metaboxes.wp-lead.php:1278
1263
+ msgid "Luxembourg"
1264
+ msgstr ""
1265
+
1266
+ #: ../../modules/module.metaboxes.wp-lead.php:1279
1267
+ msgid "Macau"
1268
+ msgstr ""
1269
+
1270
+ #: ../../modules/module.metaboxes.wp-lead.php:1280
1271
+ msgid "Macedonia"
1272
+ msgstr ""
1273
+
1274
+ #: ../../modules/module.metaboxes.wp-lead.php:1281
1275
+ msgid "Madagascar"
1276
+ msgstr ""
1277
+
1278
+ #: ../../modules/module.metaboxes.wp-lead.php:1282
1279
+ msgid "Malaysia"
1280
+ msgstr ""
1281
+
1282
+ #: ../../modules/module.metaboxes.wp-lead.php:1283
1283
+ msgid "Malawi"
1284
+ msgstr ""
1285
+
1286
+ #: ../../modules/module.metaboxes.wp-lead.php:1284
1287
+ msgid "Maldives"
1288
+ msgstr ""
1289
+
1290
+ #: ../../modules/module.metaboxes.wp-lead.php:1285
1291
+ msgid "Mali"
1292
+ msgstr ""
1293
+
1294
+ #: ../../modules/module.metaboxes.wp-lead.php:1286
1295
+ msgid "Malta"
1296
+ msgstr ""
1297
+
1298
+ #: ../../modules/module.metaboxes.wp-lead.php:1287
1299
+ msgid "Marshall Islands"
1300
+ msgstr ""
1301
+
1302
+ #: ../../modules/module.metaboxes.wp-lead.php:1288
1303
+ msgid "Martinique"
1304
+ msgstr ""
1305
+
1306
+ #: ../../modules/module.metaboxes.wp-lead.php:1289
1307
+ msgid "Mauritania"
1308
+ msgstr ""
1309
+
1310
+ #: ../../modules/module.metaboxes.wp-lead.php:1290
1311
+ msgid "Mauritius"
1312
+ msgstr ""
1313
+
1314
+ #: ../../modules/module.metaboxes.wp-lead.php:1291
1315
+ msgid "Mayotte"
1316
+ msgstr ""
1317
+
1318
+ #: ../../modules/module.metaboxes.wp-lead.php:1292
1319
+ msgid "Mexico"
1320
+ msgstr ""
1321
+
1322
+ #: ../../modules/module.metaboxes.wp-lead.php:1293
1323
+ msgid "Midway Islands"
1324
+ msgstr ""
1325
+
1326
+ #: ../../modules/module.metaboxes.wp-lead.php:1294
1327
+ msgid "Moldova"
1328
+ msgstr ""
1329
+
1330
+ #: ../../modules/module.metaboxes.wp-lead.php:1295
1331
+ msgid "Monaco"
1332
+ msgstr ""
1333
+
1334
+ #: ../../modules/module.metaboxes.wp-lead.php:1296
1335
+ msgid "Mongolia"
1336
+ msgstr ""
1337
+
1338
+ #: ../../modules/module.metaboxes.wp-lead.php:1297
1339
+ msgid "Montserrat"
1340
+ msgstr ""
1341
+
1342
+ #: ../../modules/module.metaboxes.wp-lead.php:1298
1343
+ msgid "Morocco"
1344
+ msgstr ""
1345
+
1346
+ #: ../../modules/module.metaboxes.wp-lead.php:1299
1347
+ msgid "Mozambique"
1348
+ msgstr ""
1349
+
1350
+ #: ../../modules/module.metaboxes.wp-lead.php:1300
1351
+ msgid "Myanmar"
1352
+ msgstr ""
1353
+
1354
+ #: ../../modules/module.metaboxes.wp-lead.php:1301
1355
+ msgid "Nambia"
1356
+ msgstr ""
1357
+
1358
+ #: ../../modules/module.metaboxes.wp-lead.php:1302
1359
+ msgid "Nauru"
1360
+ msgstr ""
1361
+
1362
+ #: ../../modules/module.metaboxes.wp-lead.php:1303
1363
+ msgid "Nepal"
1364
+ msgstr ""
1365
+
1366
+ #: ../../modules/module.metaboxes.wp-lead.php:1304
1367
+ msgid "Netherland Antilles"
1368
+ msgstr ""
1369
+
1370
+ #: ../../modules/module.metaboxes.wp-lead.php:1305
1371
+ msgid "Netherlands (Holland, Europe)"
1372
+ msgstr ""
1373
+
1374
+ #: ../../modules/module.metaboxes.wp-lead.php:1306
1375
+ msgid "Nevis"
1376
+ msgstr ""
1377
+
1378
+ #: ../../modules/module.metaboxes.wp-lead.php:1307
1379
+ msgid "New Caledonia"
1380
+ msgstr ""
1381
+
1382
+ #: ../../modules/module.metaboxes.wp-lead.php:1308
1383
+ msgid "New Zealand"
1384
+ msgstr ""
1385
+
1386
+ #: ../../modules/module.metaboxes.wp-lead.php:1309
1387
+ msgid "Nicaragua"
1388
+ msgstr ""
1389
+
1390
+ #: ../../modules/module.metaboxes.wp-lead.php:1310
1391
+ msgid "Niger"
1392
+ msgstr ""
1393
+
1394
+ #: ../../modules/module.metaboxes.wp-lead.php:1311
1395
+ msgid "Nigeria"
1396
+ msgstr ""
1397
+
1398
+ #: ../../modules/module.metaboxes.wp-lead.php:1312
1399
+ msgid "Niue"
1400
+ msgstr ""
1401
+
1402
+ #: ../../modules/module.metaboxes.wp-lead.php:1313
1403
+ msgid "Norfolk Island"
1404
+ msgstr ""
1405
+
1406
+ #: ../../modules/module.metaboxes.wp-lead.php:1314
1407
+ msgid "Norway"
1408
+ msgstr ""
1409
+
1410
+ #: ../../modules/module.metaboxes.wp-lead.php:1315
1411
+ msgid "Oman"
1412
+ msgstr ""
1413
+
1414
+ #: ../../modules/module.metaboxes.wp-lead.php:1316
1415
+ msgid "Pakistan"
1416
+ msgstr ""
1417
+
1418
+ #: ../../modules/module.metaboxes.wp-lead.php:1317
1419
+ msgid "Palau Island"
1420
+ msgstr ""
1421
+
1422
+ #: ../../modules/module.metaboxes.wp-lead.php:1318
1423
+ msgid "Palestine"
1424
+ msgstr ""
1425
+
1426
+ #: ../../modules/module.metaboxes.wp-lead.php:1319
1427
+ msgid "Panama"
1428
+ msgstr ""
1429
+
1430
+ #: ../../modules/module.metaboxes.wp-lead.php:1320
1431
+ msgid "Papua New Guinea"
1432
+ msgstr ""
1433
+
1434
+ #: ../../modules/module.metaboxes.wp-lead.php:1321
1435
+ msgid "Paraguay"
1436
+ msgstr ""
1437
+
1438
+ #: ../../modules/module.metaboxes.wp-lead.php:1322
1439
+ msgid "Peru"
1440
+ msgstr ""
1441
+
1442
+ #: ../../modules/module.metaboxes.wp-lead.php:1323
1443
+ msgid "Philippines"
1444
+ msgstr ""
1445
+
1446
+ #: ../../modules/module.metaboxes.wp-lead.php:1324
1447
+ msgid "Pitcairn Island"
1448
+ msgstr ""
1449
+
1450
+ #: ../../modules/module.metaboxes.wp-lead.php:1325
1451
+ msgid "Poland"
1452
+ msgstr ""
1453
+
1454
+ #: ../../modules/module.metaboxes.wp-lead.php:1326
1455
+ msgid "Portugal"
1456
+ msgstr ""
1457
+
1458
+ #: ../../modules/module.metaboxes.wp-lead.php:1327
1459
+ msgid "Puerto Rico"
1460
+ msgstr ""
1461
+
1462
+ #: ../../modules/module.metaboxes.wp-lead.php:1328
1463
+ msgid "Qatar"
1464
+ msgstr ""
1465
+
1466
+ #: ../../modules/module.metaboxes.wp-lead.php:1329
1467
+ msgid "Republic of Montenegro"
1468
+ msgstr ""
1469
+
1470
+ #: ../../modules/module.metaboxes.wp-lead.php:1330
1471
+ msgid "Republic of Serbia"
1472
+ msgstr ""
1473
+
1474
+ #: ../../modules/module.metaboxes.wp-lead.php:1331
1475
+ msgid "Reunion"
1476
+ msgstr ""
1477
+
1478
+ #: ../../modules/module.metaboxes.wp-lead.php:1332
1479
+ msgid "Romania"
1480
+ msgstr ""
1481
+
1482
+ #: ../../modules/module.metaboxes.wp-lead.php:1333
1483
+ msgid "Russia"
1484
+ msgstr ""
1485
+
1486
+ #: ../../modules/module.metaboxes.wp-lead.php:1334
1487
+ msgid "Rwanda"
1488
+ msgstr ""
1489
+
1490
+ #: ../../modules/module.metaboxes.wp-lead.php:1335
1491
+ msgid "St Barthelemy"
1492
+ msgstr ""
1493
+
1494
+ #: ../../modules/module.metaboxes.wp-lead.php:1336
1495
+ msgid "St Eustatius"
1496
+ msgstr ""
1497
+
1498
+ #: ../../modules/module.metaboxes.wp-lead.php:1337
1499
+ msgid "St Helena"
1500
+ msgstr ""
1501
+
1502
+ #: ../../modules/module.metaboxes.wp-lead.php:1338
1503
+ msgid "St Kitts-Nevis"
1504
+ msgstr ""
1505
+
1506
+ #: ../../modules/module.metaboxes.wp-lead.php:1339
1507
+ msgid "St Lucia"
1508
+ msgstr ""
1509
+
1510
+ #: ../../modules/module.metaboxes.wp-lead.php:1340
1511
+ msgid "St Maarten"
1512
+ msgstr ""
1513
+
1514
+ #: ../../modules/module.metaboxes.wp-lead.php:1341
1515
+ msgid "St Pierre &amp; Miquelon"
1516
+ msgstr ""
1517
+
1518
+ #: ../../modules/module.metaboxes.wp-lead.php:1342
1519
+ msgid "St Vincent &amp; Grenadines"
1520
+ msgstr ""
1521
+
1522
+ #: ../../modules/module.metaboxes.wp-lead.php:1343
1523
+ msgid "Saipan"
1524
+ msgstr ""
1525
+
1526
+ #: ../../modules/module.metaboxes.wp-lead.php:1344
1527
+ msgid "Samoa"
1528
+ msgstr ""
1529
+
1530
+ #: ../../modules/module.metaboxes.wp-lead.php:1345
1531
+ msgid "Samoa American"
1532
+ msgstr ""
1533
+
1534
+ #: ../../modules/module.metaboxes.wp-lead.php:1346
1535
+ msgid "San Marino"
1536
+ msgstr ""
1537
+
1538
+ #: ../../modules/module.metaboxes.wp-lead.php:1347
1539
+ msgid "Sao Tome &amp; Principe"
1540
+ msgstr ""
1541
+
1542
+ #: ../../modules/module.metaboxes.wp-lead.php:1348
1543
+ msgid "Saudi Arabia"
1544
+ msgstr ""
1545
+
1546
+ #: ../../modules/module.metaboxes.wp-lead.php:1349
1547
+ msgid "Senegal"
1548
+ msgstr ""
1549
+
1550
+ #: ../../modules/module.metaboxes.wp-lead.php:1350
1551
+ msgid "Seychelles"
1552
+ msgstr ""
1553
+
1554
+ #: ../../modules/module.metaboxes.wp-lead.php:1351
1555
+ msgid "Sierra Leone"
1556
+ msgstr ""
1557
+
1558
+ #: ../../modules/module.metaboxes.wp-lead.php:1352
1559
+ msgid "Singapore"
1560
+ msgstr ""
1561
+
1562
+ #: ../../modules/module.metaboxes.wp-lead.php:1353
1563
+ msgid "Slovakia"
1564
+ msgstr ""
1565
+
1566
+ #: ../../modules/module.metaboxes.wp-lead.php:1354
1567
+ msgid "Slovenia"
1568
+ msgstr ""
1569
+
1570
+ #: ../../modules/module.metaboxes.wp-lead.php:1355
1571
+ msgid "Solomon Islands"
1572
+ msgstr ""
1573
+
1574
+ #: ../../modules/module.metaboxes.wp-lead.php:1356
1575
+ msgid "Somalia"
1576
+ msgstr ""
1577
+
1578
+ #: ../../modules/module.metaboxes.wp-lead.php:1357
1579
+ msgid "South Africa"
1580
+ msgstr ""
1581
+
1582
+ #: ../../modules/module.metaboxes.wp-lead.php:1358
1583
+ msgid "Spain"
1584
+ msgstr ""
1585
+
1586
+ #: ../../modules/module.metaboxes.wp-lead.php:1359
1587
+ msgid "Sri Lanka"
1588
+ msgstr ""
1589
+
1590
+ #: ../../modules/module.metaboxes.wp-lead.php:1360
1591
+ msgid "Sudan"
1592
+ msgstr ""
1593
+
1594
+ #: ../../modules/module.metaboxes.wp-lead.php:1361
1595
+ msgid "Suriname"
1596
+ msgstr ""
1597
+
1598
+ #: ../../modules/module.metaboxes.wp-lead.php:1362
1599
+ msgid "Swaziland"
1600
+ msgstr ""
1601
+
1602
+ #: ../../modules/module.metaboxes.wp-lead.php:1363
1603
+ msgid "Sweden"
1604
+ msgstr ""
1605
+
1606
+ #: ../../modules/module.metaboxes.wp-lead.php:1364
1607
+ msgid "Switzerland"
1608
+ msgstr ""
1609
+
1610
+ #: ../../modules/module.metaboxes.wp-lead.php:1365
1611
+ msgid "Syria"
1612
+ msgstr ""
1613
+
1614
+ #: ../../modules/module.metaboxes.wp-lead.php:1366
1615
+ msgid "Tahiti"
1616
+ msgstr ""
1617
+
1618
+ #: ../../modules/module.metaboxes.wp-lead.php:1367
1619
+ msgid "Taiwan"
1620
+ msgstr ""
1621
+
1622
+ #: ../../modules/module.metaboxes.wp-lead.php:1368
1623
+ msgid "Tajikistan"
1624
+ msgstr ""
1625
+
1626
+ #: ../../modules/module.metaboxes.wp-lead.php:1369
1627
+ msgid "Tanzania"
1628
+ msgstr ""
1629
+
1630
+ #: ../../modules/module.metaboxes.wp-lead.php:1370
1631
+ msgid "Thailand"
1632
+ msgstr ""
1633
+
1634
+ #: ../../modules/module.metaboxes.wp-lead.php:1371
1635
+ msgid "Togo"
1636
+ msgstr ""
1637
+
1638
+ #: ../../modules/module.metaboxes.wp-lead.php:1372
1639
+ msgid "Tokelau"
1640
+ msgstr ""
1641
+
1642
+ #: ../../modules/module.metaboxes.wp-lead.php:1373
1643
+ msgid "Tonga"
1644
+ msgstr ""
1645
+
1646
+ #: ../../modules/module.metaboxes.wp-lead.php:1374
1647
+ msgid "Trinidad &amp; Tobago"
1648
+ msgstr ""
1649
+
1650
+ #: ../../modules/module.metaboxes.wp-lead.php:1375
1651
+ msgid "Tunisia"
1652
+ msgstr ""
1653
+
1654
+ #: ../../modules/module.metaboxes.wp-lead.php:1376
1655
+ msgid "Turkey"
1656
+ msgstr ""
1657
+
1658
+ #: ../../modules/module.metaboxes.wp-lead.php:1377
1659
+ msgid "Turkmenistan"
1660
+ msgstr ""
1661
+
1662
+ #: ../../modules/module.metaboxes.wp-lead.php:1378
1663
+ msgid "Turks &amp; Caicos Is"
1664
+ msgstr ""
1665
+
1666
+ #: ../../modules/module.metaboxes.wp-lead.php:1379
1667
+ msgid "Tuvalu"
1668
+ msgstr ""
1669
+
1670
+ #: ../../modules/module.metaboxes.wp-lead.php:1380
1671
+ msgid "Uganda"
1672
+ msgstr ""
1673
+
1674
+ #: ../../modules/module.metaboxes.wp-lead.php:1381
1675
+ msgid "Ukraine"
1676
+ msgstr ""
1677
+
1678
+ #: ../../modules/module.metaboxes.wp-lead.php:1382
1679
+ msgid "United Arab Emirates"
1680
+ msgstr ""
1681
+
1682
+ #: ../../modules/module.metaboxes.wp-lead.php:1383
1683
+ msgid "United Kingdom"
1684
+ msgstr ""
1685
+
1686
+ #: ../../modules/module.metaboxes.wp-lead.php:1384
1687
+ msgid "United States of America"
1688
+ msgstr ""
1689
+
1690
+ #: ../../modules/module.metaboxes.wp-lead.php:1385
1691
+ msgid "Uruguay"
1692
+ msgstr ""
1693
+
1694
+ #: ../../modules/module.metaboxes.wp-lead.php:1386
1695
+ msgid "Uzbekistan"
1696
+ msgstr ""
1697
+
1698
+ #: ../../modules/module.metaboxes.wp-lead.php:1387
1699
+ msgid "Vanuatu"
1700
+ msgstr ""
1701
+
1702
+ #: ../../modules/module.metaboxes.wp-lead.php:1388
1703
+ msgid "Vatican City State"
1704
+ msgstr ""
1705
+
1706
+ #: ../../modules/module.metaboxes.wp-lead.php:1389
1707
+ msgid "Venezuela"
1708
+ msgstr ""
1709
+
1710
+ #: ../../modules/module.metaboxes.wp-lead.php:1390
1711
+ msgid "Vietnam"
1712
+ msgstr ""
1713
+
1714
+ #: ../../modules/module.metaboxes.wp-lead.php:1391
1715
+ msgid "Virgin Islands (Brit)"
1716
+ msgstr ""
1717
+
1718
+ #: ../../modules/module.metaboxes.wp-lead.php:1392
1719
+ msgid "Virgin Islands (USA)"
1720
+ msgstr ""
1721
+
1722
+ #: ../../modules/module.metaboxes.wp-lead.php:1393
1723
+ msgid "Wake Island"
1724
+ msgstr ""
1725
+
1726
+ #: ../../modules/module.metaboxes.wp-lead.php:1394
1727
+ msgid "Wallis &amp; Futana Is"
1728
+ msgstr ""
1729
+
1730
+ #: ../../modules/module.metaboxes.wp-lead.php:1395
1731
+ msgid "Yemen"
1732
+ msgstr ""
1733
+
1734
+ #: ../../modules/module.metaboxes.wp-lead.php:1396
1735
+ msgid "Zaire"
1736
+ msgstr ""
1737
+
1738
+ #: ../../modules/module.metaboxes.wp-lead.php:1397
1739
+ msgid "Zambia"
1740
+ msgstr ""
1741
+
1742
+ #: ../../modules/module.metaboxes.wp-lead.php:1398
1743
+ msgid "Zimbabwe"
1744
+ msgstr ""
1745
+
1746
+ #: ../../modules/module.metaboxes.wp-lead.php:1606
1747
+ msgid ""
1748
+ "Visitor Path Sessions - <span class=\"session-desc\">(Sessions expire after "
1749
+ "1 hour of inactivity)</span> <span class=\"minimize-paths button\">Shrink "
1750
+ "Session View</span>"
1751
+ msgstr ""
1752
+
1753
+ #: ../../modules/module.nav-menus.php:10
1754
+ msgid "Lead Management"
1755
+ msgstr ""
1756
+
1757
+ #: ../../modules/module.nav-menus.php:14
1758
+ msgid "Forms"
1759
+ msgstr ""
1760
+
1761
+ #: ../../modules/module.nav-menus.php:14
1762
+ msgid "Create Forms"
1763
+ msgstr ""
1764
+
1765
+ #: ../../modules/module.nav-menus.php:16
1766
+ #: ../../shared/classes/menu.class.php:167
1767
+ #: ../../shared/classes/menu.class.php:206
1768
+ msgid "Settings"
1769
+ msgstr ""
1770
+
1771
+ #: ../../modules/module.nav-menus.php:16
1772
+ #: ../../shared/classes/menu.class.php:302
1773
+ #: ../../shared/classes/menu.class.php:310
1774
+ #: ../../shared/classes/menu.class.php:317
1775
+ #: ../../shared/classes/menu.class.php:325
1776
+ msgid "Global Settings"
1777
+ msgstr ""
1778
+
1779
+ #: ../../modules/module.post-type.automation.php:10
1780
+ #: ../../modules/module.post-type.automation.php:54
1781
+ msgid "Automation"
1782
+ msgstr ""
1783
+
1784
+ #: ../../modules/module.post-type.automation.php:11
1785
+ msgid "Automation Rule"
1786
+ msgstr ""
1787
+
1788
+ #: ../../modules/module.post-type.automation.php:12
1789
+ msgid "Add New Automation Rule"
1790
+ msgstr ""
1791
+
1792
+ #: ../../modules/module.post-type.automation.php:13
1793
+ msgid "Create New Automation Rule"
1794
+ msgstr ""
1795
+
1796
+ #: ../../modules/module.post-type.automation.php:14
1797
+ msgid "Edit Automation Rule"
1798
+ msgstr ""
1799
+
1800
+ #: ../../modules/module.post-type.automation.php:15
1801
+ msgid "New Automation Rules"
1802
+ msgstr ""
1803
+
1804
+ #: ../../modules/module.post-type.automation.php:16
1805
+ msgid "View Automation Rules"
1806
+ msgstr ""
1807
+
1808
+ #: ../../modules/module.post-type.automation.php:17
1809
+ msgid "Search Automation Rules"
1810
+ msgstr ""
1811
+
1812
+ #: ../../modules/module.post-type.automation.php:18
1813
+ #: ../../shared/functions/global.leads.cpt.php:23
1814
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:321
1815
+ msgid "Nothing found"
1816
+ msgstr ""
1817
+
1818
+ #: ../../modules/module.post-type.automation.php:19
1819
+ #: ../../shared/functions/global.leads.cpt.php:24
1820
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:322
1821
+ msgid "Nothing found in Trash"
1822
+ msgstr ""
1823
+
1824
+ #: ../../modules/module.post-type.automation.php:55
1825
+ msgid "Automation Status"
1826
+ msgstr ""
1827
+
1828
+ #: ../../modules/module.post-type.landing-pages.php:15
1829
+ msgid "Recent Conversions:"
1830
+ msgstr ""
1831
+
1832
+ #: ../../modules/module.post-type.landing-pages.php:19
1833
+ msgid "Location"
1834
+ msgstr ""
1835
+
1836
+ #: ../../modules/module.post-type.landing-pages.php:20
1837
+ msgid "Datetime"
1838
+ msgstr ""
1839
+
1840
+ #: ../../modules/module.post-type.landing-pages.php:21
1841
+ msgid "First-time?"
1842
+ msgstr ""
1843
+
1844
+ #: ../../modules/module.post-type.landing-pages.php:48
1845
+ msgid "yes"
1846
+ msgstr ""
1847
+
1848
+ #: ../../modules/module.post-type.list.php:21
1849
+ #, php-format
1850
+ msgid "%d leads"
1851
+ msgstr ""
1852
+
1853
+ #: ../../modules/module.post-type.wp-lead.php:402
1854
+ msgid "Filter By Custom Fields"
1855
+ msgstr ""
1856
+
1857
+ #: ../../modules/module.post-type.wp-lead.php:432
1858
+ msgid "Value:"
1859
+ msgstr ""
1860
+
1861
+ #: ../../modules/module.post-type.wp-lead.php:550
1862
+ #: ../../modules/module.post-type.wp-lead.php:551
1863
+ msgid "Add to Contact List"
1864
+ msgstr ""
1865
+
1866
+ #: ../../modules/module.post-type.wp-lead.php:553
1867
+ #: ../../modules/module.post-type.wp-lead.php:554
1868
+ msgid "Export CSV"
1869
+ msgstr ""
1870
+
1871
+ #: ../../modules/module.post-type.wp-lead.php:556
1872
+ #: ../../modules/module.post-type.wp-lead.php:557
1873
+ msgid "Export XML"
1874
+ msgstr ""
1875
+
1876
+ #: ../../modules/module.userfields.php:11
1877
+ msgid "First Name"
1878
+ msgstr ""
1879
+
1880
+ #: ../../modules/module.userfields.php:17
1881
+ msgid "Last Name"
1882
+ msgstr ""
1883
+
1884
+ #: ../../modules/module.userfields.php:29
1885
+ msgid "Website"
1886
+ msgstr ""
1887
+
1888
+ #: ../../modules/module.userfields.php:35
1889
+ msgid "Job Title"
1890
+ msgstr ""
1891
+
1892
+ #: ../../modules/module.userfields.php:41
1893
+ msgid "Company Name"
1894
+ msgstr ""
1895
+
1896
+ #: ../../modules/module.userfields.php:47
1897
+ msgid "Mobile Phone"
1898
+ msgstr ""
1899
+
1900
+ #: ../../modules/module.userfields.php:53
1901
+ msgid "Work Phone"
1902
+ msgstr ""
1903
+
1904
+ #: ../../modules/module.userfields.php:59
1905
+ #: ../../shared/inbound-shortcodes/shortcodes/gmap.php:31
1906
+ msgid "Address"
1907
+ msgstr ""
1908
+
1909
+ #: ../../modules/module.userfields.php:65
1910
+ msgid "Address Continued"
1911
+ msgstr ""
1912
+
1913
+ #: ../../modules/module.userfields.php:71
1914
+ msgid "City"
1915
+ msgstr ""
1916
+
1917
+ #: ../../modules/module.userfields.php:77
1918
+ msgid "State/Region"
1919
+ msgstr ""
1920
+
1921
+ #: ../../modules/module.userfields.php:83
1922
+ msgid "Zip-code"
1923
+ msgstr ""
1924
+
1925
+ #: ../../modules/module.userfields.php:89
1926
+ msgid "Country"
1927
+ msgstr ""
1928
+
1929
+ #: ../../modules/module.userfields.php:95
1930
+ msgid "Related Websites"
1931
+ msgstr ""
1932
+
1933
+ #: ../../modules/module.userfields.php:101
1934
+ msgid "Notes"
1935
+ msgstr ""
1936
+
1937
+ #: ../../modules/module.wp_list_table-leads.php:78
1938
+ msgid "Lead Name"
1939
+ msgstr ""
1940
+
1941
+ #: ../../modules/module.wp_list_table-leads.php:79
1942
+ msgid "Lead Email"
1943
+ msgstr ""
1944
+
1945
+ #: ../../modules/module.wp_list_table-leads.php:80
1946
+ msgid "Lead Points"
1947
+ msgstr ""
1948
+
1949
+ #: ../../modules/module.wp_list_table-leads.php:187
1950
+ msgid "no leads in list"
1951
+ msgstr ""
1952
+
1953
+ #: ../../shared/classes/menu.class.php:117
1954
+ msgid "EDD"
1955
+ msgstr ""
1956
+
1957
+ #: ../../shared/classes/menu.class.php:124
1958
+ msgid "Sub Forum"
1959
+ msgstr ""
1960
+
1961
+ #: ../../shared/classes/menu.class.php:127
1962
+ msgid "Search Docs"
1963
+ msgstr ""
1964
+
1965
+ #: ../../shared/classes/menu.class.php:128
1966
+ msgid "GO"
1967
+ msgstr ""
1968
+
1969
+ #: ../../shared/classes/menu.class.php:141
1970
+ msgid "Landing Pages"
1971
+ msgstr ""
1972
+
1973
+ #: ../../shared/classes/menu.class.php:143
1974
+ #: ../../shared/classes/menu.class.php:149
1975
+ #: ../../shared/classes/menu.class.php:182
1976
+ #: ../../shared/classes/menu.class.php:188
1977
+ msgid "View All Landing Pages"
1978
+ msgstr ""
1979
+
1980
+ #: ../../shared/classes/menu.class.php:147
1981
+ msgid "View Landing Pages List"
1982
+ msgstr ""
1983
+
1984
+ #: ../../shared/classes/menu.class.php:153
1985
+ msgid "Add New Landing Page"
1986
+ msgstr ""
1987
+
1988
+ #: ../../shared/classes/menu.class.php:155
1989
+ msgid "Add new Landing Page"
1990
+ msgstr ""
1991
+
1992
+ #: ../../shared/classes/menu.class.php:160
1993
+ #: ../../shared/classes/menu.class.php:199
1994
+ msgid "Categories"
1995
+ msgstr ""
1996
+
1997
+ #: ../../shared/classes/menu.class.php:162
1998
+ #: ../../shared/classes/menu.class.php:201
1999
+ msgid "Landing Page Categories"
2000
+ msgstr ""
2001
+
2002
+ #: ../../shared/classes/menu.class.php:169
2003
+ msgid "Manage Landing Page Settings"
2004
+ msgstr ""
2005
+
2006
+ #: ../../shared/classes/menu.class.php:180
2007
+ msgid "Call to Actions"
2008
+ msgstr ""
2009
+
2010
+ #: ../../shared/classes/menu.class.php:186
2011
+ msgid "View Calls to Action List"
2012
+ msgstr ""
2013
+
2014
+ #: ../../shared/classes/menu.class.php:192
2015
+ msgid "Add New Call to Action"
2016
+ msgstr ""
2017
+
2018
+ #: ../../shared/classes/menu.class.php:194
2019
+ #: ../../shared/classes/menu.class.php:273
2020
+ msgid "Add new call to action"
2021
+ msgstr ""
2022
+
2023
+ #: ../../shared/classes/menu.class.php:208
2024
+ msgid "Manage Call to Action Settings"
2025
+ msgstr ""
2026
+
2027
+ #: ../../shared/classes/menu.class.php:238
2028
+ msgid "View All Leads"
2029
+ msgstr ""
2030
+
2031
+ #: ../../shared/classes/menu.class.php:240
2032
+ #: ../../shared/classes/menu.class.php:265
2033
+ #: ../../shared/classes/menu.class.php:267
2034
+ msgid "View All Forms"
2035
+ msgstr ""
2036
+
2037
+ #: ../../shared/classes/menu.class.php:244
2038
+ #: ../../shared/classes/menu.class.php:246
2039
+ msgid "View Lead Lists"
2040
+ msgstr ""
2041
+
2042
+ #: ../../shared/classes/menu.class.php:250
2043
+ msgid "Create New Lead"
2044
+ msgstr ""
2045
+
2046
+ #: ../../shared/classes/menu.class.php:252
2047
+ msgid "Add new lead"
2048
+ msgstr ""
2049
+
2050
+ #: ../../shared/classes/menu.class.php:259
2051
+ msgid "Manage Forms"
2052
+ msgstr ""
2053
+
2054
+ #: ../../shared/classes/menu.class.php:271
2055
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:316
2056
+ msgid "Create New Form"
2057
+ msgstr ""
2058
+
2059
+ #: ../../shared/classes/menu.class.php:280
2060
+ msgid "Manage Templates"
2061
+ msgstr ""
2062
+
2063
+ #: ../../shared/classes/menu.class.php:286
2064
+ #: ../../shared/classes/menu.class.php:288
2065
+ msgid "Download More Templates"
2066
+ msgstr ""
2067
+
2068
+ #: ../../shared/classes/menu.class.php:293
2069
+ msgid "Landing Page Templates"
2070
+ msgstr ""
2071
+
2072
+ #: ../../shared/classes/menu.class.php:295
2073
+ #: ../../shared/classes/menu.class.php:332
2074
+ #: ../../shared/classes/menu.class.php:334
2075
+ msgid "Landing Page Settings"
2076
+ msgstr ""
2077
+
2078
+ #: ../../shared/classes/menu.class.php:300
2079
+ msgid "Add New Landing Page Templates"
2080
+ msgstr ""
2081
+
2082
+ #: ../../shared/classes/menu.class.php:308
2083
+ msgid "Call to Action Templates"
2084
+ msgstr ""
2085
+
2086
+ #: ../../shared/classes/menu.class.php:315
2087
+ msgid "Add New CTA Templates"
2088
+ msgstr ""
2089
+
2090
+ #: ../../shared/classes/menu.class.php:347
2091
+ #: ../../shared/classes/menu.class.php:349
2092
+ msgid "Call to Action Settings"
2093
+ msgstr ""
2094
+
2095
+ #: ../../shared/classes/menu.class.php:362
2096
+ #: ../../shared/classes/menu.class.php:364
2097
+ msgid "Lead Settings"
2098
+ msgstr ""
2099
+
2100
+ #: ../../shared/classes/menu.class.php:370
2101
+ #: ../../shared/classes/menu.class.php:372
2102
+ msgid "Analytics (coming soon)"
2103
+ msgstr ""
2104
+
2105
+ #: ../../shared/classes/menu.class.php:378
2106
+ msgid "SEO by Yoast"
2107
+ msgstr ""
2108
+
2109
+ #: ../../shared/classes/menu.class.php:380
2110
+ msgid "Manage SEO Settings"
2111
+ msgstr ""
2112
+
2113
+ #: ../../shared/classes/menu.class.php:386
2114
+ #: ../../shared/classes/menu.class.php:388
2115
+ msgid "Support Forum"
2116
+ msgstr ""
2117
+
2118
+ #: ../../shared/classes/menu.class.php:394
2119
+ #: ../../shared/classes/menu.class.php:396
2120
+ msgid "Documentation"
2121
+ msgstr ""
2122
+
2123
+ #: ../../shared/classes/menu.class.php:413
2124
+ msgid "Inbound Now Plugin HQ"
2125
+ msgstr ""
2126
+
2127
+ #: ../../shared/classes/menu.class.php:415
2128
+ msgid "Plugin HQ"
2129
+ msgstr ""
2130
+
2131
+ #: ../../shared/classes/menu.class.php:436
2132
+ msgid ""
2133
+ "<span style=\"color:#fff;font-size: 13px;margin-top: -1px;display: inline-"
2134
+ "block;\">Debug Tools</span>"
2135
+ msgstr ""
2136
+
2137
+ #: ../../shared/classes/menu.class.php:442
2138
+ msgid "Check for Javascript Errors"
2139
+ msgstr ""
2140
+
2141
+ #: ../../shared/classes/menu.class.php:444
2142
+ msgid "Click here to check javascript errors on this page"
2143
+ msgstr ""
2144
+
2145
+ #: ../../shared/classes/menu.class.php:449
2146
+ msgid "Remove Javascript Errors"
2147
+ msgstr ""
2148
+
2149
+ #: ../../shared/classes/menu.class.php:451
2150
+ msgid "Click here to remove broken javascript to fix issues"
2151
+ msgstr ""
2152
+
2153
+ #: ../../shared/classes/menu.class.php:457
2154
+ #: ../../shared/classes/menu.class.php:459
2155
+ msgid "GitHub Repository Developer Center"
2156
+ msgstr ""
2157
+
2158
+ #: ../../shared/classes/menu.class.php:465
2159
+ #: ../../shared/classes/menu.class.php:467
2160
+ msgid "Official Blog"
2161
+ msgstr ""
2162
+
2163
+ #: ../../shared/classes/menu.class.php:473
2164
+ #: ../../shared/classes/menu.class.php:475
2165
+ msgid "My Account"
2166
+ msgstr ""
2167
+
2168
+ #: ../../shared/classes/menu.class.php:480
2169
+ #: ../../shared/classes/menu.class.php:482
2170
+ msgid "Purchase History"
2171
+ msgstr ""
2172
+
2173
+ #: ../../shared/classes/menu.class.php:545
2174
+ msgid " Marketing"
2175
+ msgstr ""
2176
+
2177
+ #: ../../shared/functions/global.leads.cpt.php:18
2178
+ msgid "Add New Lead"
2179
+ msgstr ""
2180
+
2181
+ #: ../../shared/functions/global.leads.cpt.php:19
2182
+ msgid "Edit Lead"
2183
+ msgstr ""
2184
+
2185
+ #: ../../shared/functions/global.leads.cpt.php:20
2186
+ msgid "New Leads"
2187
+ msgstr ""
2188
+
2189
+ #: ../../shared/functions/global.leads.cpt.php:21
2190
+ msgid "View Leads"
2191
+ msgstr ""
2192
+
2193
+ #: ../../shared/functions/global.leads.cpt.php:49
2194
+ msgid "Search Lead Lists"
2195
+ msgstr ""
2196
+
2197
+ #: ../../shared/functions/global.leads.cpt.php:50
2198
+ msgid "Popular Lead Lists"
2199
+ msgstr ""
2200
+
2201
+ #: ../../shared/functions/global.leads.cpt.php:51
2202
+ msgid "All Lead Lists"
2203
+ msgstr ""
2204
+
2205
+ #: ../../shared/functions/global.leads.cpt.php:54
2206
+ msgid "Edit Lead List"
2207
+ msgstr ""
2208
+
2209
+ #: ../../shared/functions/global.leads.cpt.php:55
2210
+ msgid "Update Lead List"
2211
+ msgstr ""
2212
+
2213
+ #: ../../shared/functions/global.leads.cpt.php:56
2214
+ msgid "Add New Lead List"
2215
+ msgstr ""
2216
+
2217
+ #: ../../shared/functions/global.leads.cpt.php:57
2218
+ msgid "New Lead List"
2219
+ msgstr ""
2220
+
2221
+ #: ../../shared/functions/global.leads.cpt.php:58
2222
+ msgid "Separate Lead Lists with commas"
2223
+ msgstr ""
2224
+
2225
+ #: ../../shared/functions/global.leads.cpt.php:59
2226
+ msgid "Add or remove Lead Lists"
2227
+ msgstr ""
2228
+
2229
+ #: ../../shared/functions/global.leads.cpt.php:60
2230
+ msgid "Choose from the most used lead List"
2231
+ msgstr ""
2232
+
2233
+ #: ../../shared/functions/global.leads.cpt.php:61
2234
+ msgid "No Lead Lists found."
2235
+ msgstr ""
2236
+
2237
+ #: ../../shared/functions/global.leads.cpt.php:62
2238
+ msgid "Lead Lists"
2239
+ msgstr ""
2240
+
2241
+ #: ../../shared/functions/global.leads.cpt.php:83
2242
+ msgid "Search Lead Tags"
2243
+ msgstr ""
2244
+
2245
+ #: ../../shared/functions/global.leads.cpt.php:84
2246
+ msgid "Popular Lead Tags"
2247
+ msgstr ""
2248
+
2249
+ #: ../../shared/functions/global.leads.cpt.php:85
2250
+ msgid "All Lead Tags"
2251
+ msgstr ""
2252
+
2253
+ #: ../../shared/functions/global.leads.cpt.php:88
2254
+ msgid "Edit Lead Tag"
2255
+ msgstr ""
2256
+
2257
+ #: ../../shared/functions/global.leads.cpt.php:89
2258
+ msgid "Update Lead Tag"
2259
+ msgstr ""
2260
+
2261
+ #: ../../shared/functions/global.leads.cpt.php:90
2262
+ msgid "Add New Lead Tag"
2263
+ msgstr ""
2264
+
2265
+ #: ../../shared/functions/global.leads.cpt.php:91
2266
+ msgid "New Lead Tag"
2267
+ msgstr ""
2268
+
2269
+ #: ../../shared/functions/global.leads.cpt.php:92
2270
+ msgid "Separate Lead Tags with commas"
2271
+ msgstr ""
2272
+
2273
+ #: ../../shared/functions/global.leads.cpt.php:93
2274
+ msgid "Add or remove Lead Tags"
2275
+ msgstr ""
2276
+
2277
+ #: ../../shared/functions/global.leads.cpt.php:94
2278
+ msgid "Choose from the most used lead tags"
2279
+ msgstr ""
2280
+
2281
+ #: ../../shared/functions/global.leads.cpt.php:95
2282
+ msgid "No lead tags found."
2283
+ msgstr ""
2284
+
2285
+ #: ../../shared/functions/global.leads.cpt.php:96
2286
+ msgid "Lead Tags"
2287
+ msgstr ""
2288
+
2289
+ #: ../../shared/inbound-shortcodes/inbound-shortcodes.php:644
2290
+ #: ../../shared/inbound-shortcodes/inbound-shortcodes.php:666
2291
+ #: ../../shared/inbound-shortcodes/popup.php:27
2292
+ #: ../../shared/inbound-shortcodes/popup.php:50
2293
+ msgid "Insert Shortcode"
2294
+ msgstr ""
2295
+
2296
+ #: ../../shared/inbound-shortcodes/inbound-shortcodes.php:653
2297
+ msgid "Form Preview"
2298
+ msgstr ""
2299
+
2300
+ #: ../../shared/inbound-shortcodes/inbound-shortcodes.php:656
2301
+ #: ../../shared/inbound-shortcodes/popup.php:39
2302
+ msgid "Shortcode has no preview"
2303
+ msgstr ""
2304
+
2305
+ #: ../../shared/inbound-shortcodes/popup.php:36
2306
+ msgid "Shortcode Preview"
2307
+ msgstr ""
2308
+
2309
+ #: ../../shared/inbound-shortcodes/shortcodes/alert.php:12
2310
+ msgid "Color Style"
2311
+ msgstr ""
2312
+
2313
+ #: ../../shared/inbound-shortcodes/shortcodes/alert.php:13
2314
+ #: ../../shared/inbound-shortcodes/shortcodes/divider.php:13
2315
+ #: ../../shared/inbound-shortcodes/shortcodes/divider.php:55
2316
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:19
2317
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:106
2318
+ msgid "Select the style."
2319
+ msgstr ""
2320
+
2321
+ #: ../../shared/inbound-shortcodes/shortcodes/alert.php:16
2322
+ #: ../../shared/inbound-shortcodes/shortcodes/content-box.php:16
2323
+ #: ../../shared/inbound-shortcodes/shortcodes/content-box.php:46
2324
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:22
2325
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:109
2326
+ msgid "Default"
2327
+ msgstr ""
2328
+
2329
+ #: ../../shared/inbound-shortcodes/shortcodes/alert.php:17
2330
+ #: ../../shared/inbound-shortcodes/shortcodes/content-box.php:17
2331
+ #: ../../shared/inbound-shortcodes/shortcodes/content-box.php:47
2332
+ msgid "Blue"
2333
+ msgstr ""
2334
+
2335
+ #: ../../shared/inbound-shortcodes/shortcodes/alert.php:18
2336
+ #: ../../shared/inbound-shortcodes/shortcodes/content-box.php:18
2337
+ #: ../../shared/inbound-shortcodes/shortcodes/content-box.php:48
2338
+ msgid "Green"
2339
+ msgstr ""
2340
+
2341
+ #: ../../shared/inbound-shortcodes/shortcodes/alert.php:19
2342
+ #: ../../shared/inbound-shortcodes/shortcodes/content-box.php:19
2343
+ #: ../../shared/inbound-shortcodes/shortcodes/content-box.php:49
2344
+ msgid "Red"
2345
+ msgstr ""
2346
+
2347
+ #: ../../shared/inbound-shortcodes/shortcodes/alert.php:20
2348
+ #: ../../shared/inbound-shortcodes/shortcodes/content-box.php:20
2349
+ #: ../../shared/inbound-shortcodes/shortcodes/content-box.php:50
2350
+ msgid "Yellow"
2351
+ msgstr ""
2352
+
2353
+ #: ../../shared/inbound-shortcodes/shortcodes/alert.php:25
2354
+ msgid "Message"
2355
+ msgstr ""
2356
+
2357
+ #: ../../shared/inbound-shortcodes/shortcodes/alert.php:26
2358
+ msgid "Your message here."
2359
+ msgstr ""
2360
+
2361
+ #: ../../shared/inbound-shortcodes/shortcodes/alert.php:32
2362
+ msgid "Insert Alert Message Shortcode"
2363
+ msgstr ""
2364
+
2365
+ #: ../../shared/inbound-shortcodes/shortcodes/button.php:25
2366
+ msgid "Button Text"
2367
+ msgstr ""
2368
+
2369
+ #: ../../shared/inbound-shortcodes/shortcodes/button.php:26
2370
+ #: ../../shared/inbound-shortcodes/shortcodes/callout.php:45
2371
+ #: ../../shared/inbound-shortcodes/shortcodes/callout.php:111
2372
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:52
2373
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:132
2374
+ msgid "Enter the button text label."
2375
+ msgstr ""
2376
+
2377
+ #: ../../shared/inbound-shortcodes/shortcodes/button.php:31
2378
+ msgid "Button Link"
2379
+ msgstr ""
2380
+
2381
+ #: ../../shared/inbound-shortcodes/shortcodes/button.php:32
2382
+ msgid "Enter the destination URL."
2383
+ msgstr ""
2384
+
2385
+ #: ../../shared/inbound-shortcodes/shortcodes/button.php:37
2386
+ #: ../../shared/inbound-shortcodes/shortcodes/lists.php:19
2387
+ msgid "Font Size"
2388
+ msgstr ""
2389
+
2390
+ #: ../../shared/inbound-shortcodes/shortcodes/button.php:38
2391
+ msgid "Size of Button Font. This also determines default button size"
2392
+ msgstr ""
2393
+
2394
+ #: ../../shared/inbound-shortcodes/shortcodes/button.php:64
2395
+ #: ../../shared/inbound-shortcodes/shortcodes/callout.php:24
2396
+ #: ../../shared/inbound-shortcodes/shortcodes/callout.php:88
2397
+ msgid "Button Color"
2398
+ msgstr ""
2399
+
2400
+ #: ../../shared/inbound-shortcodes/shortcodes/button.php:65
2401
+ msgid "Color of button"
2402
+ msgstr ""
2403
+
2404
+ #: ../../shared/inbound-shortcodes/shortcodes/button.php:70
2405
+ msgid "Button Text Color"
2406
+ msgstr ""
2407
+
2408
+ #: ../../shared/inbound-shortcodes/shortcodes/button.php:71
2409
+ msgid "Color of text"
2410
+ msgstr ""
2411
+
2412
+ #: ../../shared/inbound-shortcodes/shortcodes/button.php:76
2413
+ #: ../../shared/inbound-shortcodes/shortcodes/icon.php:11
2414
+ #: ../../shared/inbound-shortcodes/shortcodes/list-icon.php:14
2415
+ #: ../../shared/inbound-shortcodes/shortcodes/tabs.php:27
2416
+ #: ../../shared/inbound-shortcodes/shortcodes/tabs.php:72
2417
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:57
2418
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:135
2419
+ msgid "Icon"
2420
+ msgstr ""
2421
+
2422
+ #: ../../shared/inbound-shortcodes/shortcodes/button.php:77
2423
+ #: ../../shared/inbound-shortcodes/shortcodes/callout.php:51
2424
+ #: ../../shared/inbound-shortcodes/shortcodes/callout.php:118
2425
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:153
2426
+ #: ../../shared/inbound-shortcodes/shortcodes/tabs.php:28
2427
+ #: ../../shared/inbound-shortcodes/shortcodes/tabs.php:73
2428
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:58
2429
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:136
2430
+ msgid "Select an icon."
2431
+ msgstr ""
2432
+
2433
+ #: ../../shared/inbound-shortcodes/shortcodes/button.php:84
2434
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:167
2435
+ msgid "Custom Width"
2436
+ msgstr ""
2437
+
2438
+ #: ../../shared/inbound-shortcodes/shortcodes/button.php:85
2439
+ msgid "Enter in pixel width or % width. Example: 200 <u>or</u> 100%"
2440
+ msgstr ""
2441
+
2442
+ #: ../../shared/inbound-shortcodes/shortcodes/button.php:91
2443
+ msgid "Open Link in New Tab?"
2444
+ msgstr ""
2445
+
2446
+ #: ../../shared/inbound-shortcodes/shortcodes/button.php:92
2447
+ msgid "Do you want to open links in this window or a new one?"
2448
+ msgstr ""
2449
+
2450
+ #: ../../shared/inbound-shortcodes/shortcodes/button.php:105
2451
+ msgid "Insert Button Shortcode"
2452
+ msgstr ""
2453
+
2454
+ #: ../../shared/inbound-shortcodes/shortcodes/call-to-action.php:11
2455
+ msgid "Insert cta"
2456
+ msgstr ""
2457
+
2458
+ #: ../../shared/inbound-shortcodes/shortcodes/call-to-action.php:12
2459
+ msgid "Choose CTA"
2460
+ msgstr ""
2461
+
2462
+ #: ../../shared/inbound-shortcodes/shortcodes/call-to-action.php:20
2463
+ msgid "Insert Call to Action"
2464
+ msgstr ""
2465
+
2466
+ #: ../../shared/inbound-shortcodes/shortcodes/callout.php:12
2467
+ #: ../../shared/inbound-shortcodes/shortcodes/callout.php:74
2468
+ #: ../../shared/inbound-shortcodes/shortcodes/intro.php:12
2469
+ #: ../../shared/inbound-shortcodes/shortcodes/intro.php:46
2470
+ #: ../../shared/inbound-shortcodes/shortcodes/tabs.php:64
2471
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:45
2472
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:152
2473
+ msgid "Title"
2474
+ msgstr ""
2475
+
2476
+ #: ../../shared/inbound-shortcodes/shortcodes/callout.php:13
2477
+ #: ../../shared/inbound-shortcodes/shortcodes/callout.php:75
2478
+ #: ../../shared/inbound-shortcodes/shortcodes/intro.php:13
2479
+ #: ../../shared/inbound-shortcodes/shortcodes/intro.php:47
2480
+ #: ../../shared/inbound-shortcodes/shortcodes/landing-page-list.php:15
2481
+ #: ../../shared/inbound-shortcodes/shortcodes/landing-page-list.php:49
2482
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:13
2483
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:69
2484
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:98
2485
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:153
2486
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:13
2487
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:67
2488
+ msgid "Enter the heading text."
2489
+ msgstr ""
2490
+
2491
+ #: ../../shared/inbound-shortcodes/shortcodes/callout.php:18
2492
+ #: ../../shared/inbound-shortcodes/shortcodes/callout.php:81
2493
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:51
2494
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:159
2495
+ msgid "Sub Title"
2496
+ msgstr ""
2497
+
2498
+ #: ../../shared/inbound-shortcodes/shortcodes/callout.php:19
2499
+ #: ../../shared/inbound-shortcodes/shortcodes/callout.php:82
2500
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:52
2501
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:160
2502
+ msgid "Enter the sub title."
2503
+ msgstr ""
2504
+
2505
+ #: ../../shared/inbound-shortcodes/shortcodes/callout.php:25
2506
+ #: ../../shared/inbound-shortcodes/shortcodes/callout.php:89
2507
+ msgid "Select the button color."
2508
+ msgstr ""
2509
+
2510
+ #: ../../shared/inbound-shortcodes/shortcodes/callout.php:44
2511
+ #: ../../shared/inbound-shortcodes/shortcodes/callout.php:110
2512
+ msgid "Button Text Label"
2513
+ msgstr ""
2514
+
2515
+ #: ../../shared/inbound-shortcodes/shortcodes/callout.php:50
2516
+ #: ../../shared/inbound-shortcodes/shortcodes/callout.php:117
2517
+ msgid "Button Icon"
2518
+ msgstr ""
2519
+
2520
+ #: ../../shared/inbound-shortcodes/shortcodes/callout.php:57
2521
+ #: ../../shared/inbound-shortcodes/shortcodes/callout.php:126
2522
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:71
2523
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:166
2524
+ msgid "Link"
2525
+ msgstr ""
2526
+
2527
+ #: ../../shared/inbound-shortcodes/shortcodes/callout.php:58
2528
+ #: ../../shared/inbound-shortcodes/shortcodes/callout.php:127
2529
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:58
2530
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:140
2531
+ msgid "Enter the button link destination URL."
2532
+ msgstr ""
2533
+
2534
+ #: ../../shared/inbound-shortcodes/shortcodes/callout.php:64
2535
+ msgid "Insert Call Out Shortcode"
2536
+ msgstr ""
2537
+
2538
+ #: ../../shared/inbound-shortcodes/shortcodes/callout.php:70
2539
+ msgid "Call Out"
2540
+ msgstr ""
2541
+
2542
+ #: ../../shared/inbound-shortcodes/shortcodes/column.php:12
2543
+ msgid "Gutter Width"
2544
+ msgstr ""
2545
+
2546
+ #: ../../shared/inbound-shortcodes/shortcodes/column.php:13
2547
+ msgid "A space between the columns."
2548
+ msgstr ""
2549
+
2550
+ #: ../../shared/inbound-shortcodes/shortcodes/column.php:22
2551
+ msgid "Column Set"
2552
+ msgstr ""
2553
+
2554
+ #: ../../shared/inbound-shortcodes/shortcodes/column.php:23
2555
+ msgid "Select the set."
2556
+ msgstr ""
2557
+
2558
+ #: ../../shared/inbound-shortcodes/shortcodes/column.php:42
2559
+ msgid "Insert Column Shortcode"
2560
+ msgstr ""
2561
+
2562
+ #: ../../shared/inbound-shortcodes/shortcodes/column.php:48
2563
+ #: ../../shared/inbound-shortcodes/shortcodes/landing-page-list.php:20
2564
+ #: ../../shared/inbound-shortcodes/shortcodes/landing-page-list.php:56
2565
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:18
2566
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:76
2567
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:12
2568
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:83
2569
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:29
2570
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:118
2571
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:18
2572
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:74
2573
+ msgid "Column"
2574
+ msgstr ""
2575
+
2576
+ #: ../../shared/inbound-shortcodes/shortcodes/column.php:52
2577
+ msgid "Column Content"
2578
+ msgstr ""
2579
+
2580
+ #: ../../shared/inbound-shortcodes/shortcodes/column.php:53
2581
+ msgid "Enter the column content"
2582
+ msgstr ""
2583
+
2584
+ #: ../../shared/inbound-shortcodes/shortcodes/content-box.php:12
2585
+ #: ../../shared/inbound-shortcodes/shortcodes/content-box.php:42
2586
+ msgid "Box Color"
2587
+ msgstr ""
2588
+
2589
+ #: ../../shared/inbound-shortcodes/shortcodes/content-box.php:13
2590
+ #: ../../shared/inbound-shortcodes/shortcodes/content-box.php:43
2591
+ msgid "Select the color."
2592
+ msgstr ""
2593
+
2594
+ #: ../../shared/inbound-shortcodes/shortcodes/content-box.php:25
2595
+ #: ../../shared/inbound-shortcodes/shortcodes/content-box.php:57
2596
+ #: ../../shared/inbound-shortcodes/shortcodes/intro.php:29
2597
+ #: ../../shared/inbound-shortcodes/shortcodes/intro.php:66
2598
+ #: ../../shared/inbound-shortcodes/shortcodes/tabs.php:81
2599
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:173
2600
+ msgid "Content"
2601
+ msgstr ""
2602
+
2603
+ #: ../../shared/inbound-shortcodes/shortcodes/content-box.php:26
2604
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:78
2605
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:174
2606
+ msgid "Enter the content."
2607
+ msgstr ""
2608
+
2609
+ #: ../../shared/inbound-shortcodes/shortcodes/content-box.php:32
2610
+ msgid "Insert Content Box Shortcode"
2611
+ msgstr ""
2612
+
2613
+ #: ../../shared/inbound-shortcodes/shortcodes/content-box.php:38
2614
+ msgid "Content Box"
2615
+ msgstr ""
2616
+
2617
+ #: ../../shared/inbound-shortcodes/shortcodes/content-box.php:58
2618
+ #: ../../shared/inbound-shortcodes/shortcodes/intro.php:30
2619
+ #: ../../shared/inbound-shortcodes/shortcodes/intro.php:67
2620
+ msgid "Enter the content"
2621
+ msgstr ""
2622
+
2623
+ #: ../../shared/inbound-shortcodes/shortcodes/divider.php:12
2624
+ #: ../../shared/inbound-shortcodes/shortcodes/divider.php:54
2625
+ msgid "Border Style"
2626
+ msgstr ""
2627
+
2628
+ #: ../../shared/inbound-shortcodes/shortcodes/divider.php:16
2629
+ #: ../../shared/inbound-shortcodes/shortcodes/divider.php:57
2630
+ msgid "No Border"
2631
+ msgstr ""
2632
+
2633
+ #: ../../shared/inbound-shortcodes/shortcodes/divider.php:17
2634
+ #: ../../shared/inbound-shortcodes/shortcodes/divider.php:58
2635
+ msgid "Dashed"
2636
+ msgstr ""
2637
+
2638
+ #: ../../shared/inbound-shortcodes/shortcodes/divider.php:18
2639
+ #: ../../shared/inbound-shortcodes/shortcodes/divider.php:59
2640
+ msgid "Dotted"
2641
+ msgstr ""
2642
+
2643
+ #: ../../shared/inbound-shortcodes/shortcodes/divider.php:19
2644
+ #: ../../shared/inbound-shortcodes/shortcodes/divider.php:60
2645
+ msgid "Double"
2646
+ msgstr ""
2647
+
2648
+ #: ../../shared/inbound-shortcodes/shortcodes/divider.php:20
2649
+ #: ../../shared/inbound-shortcodes/shortcodes/divider.php:61
2650
+ msgid "Solid"
2651
+ msgstr ""
2652
+
2653
+ #: ../../shared/inbound-shortcodes/shortcodes/divider.php:25
2654
+ #: ../../shared/inbound-shortcodes/shortcodes/divider.php:68
2655
+ msgid "Border Color"
2656
+ msgstr ""
2657
+
2658
+ #: ../../shared/inbound-shortcodes/shortcodes/divider.php:26
2659
+ #: ../../shared/inbound-shortcodes/shortcodes/divider.php:69
2660
+ msgid "Enter a hex color code."
2661
+ msgstr ""
2662
+
2663
+ #: ../../shared/inbound-shortcodes/shortcodes/divider.php:31
2664
+ msgid "Top Margin"
2665
+ msgstr ""
2666
+
2667
+ #: ../../shared/inbound-shortcodes/shortcodes/divider.php:32
2668
+ #: ../../shared/inbound-shortcodes/shortcodes/divider.php:77
2669
+ msgid "Enter the top margin value."
2670
+ msgstr ""
2671
+
2672
+ #: ../../shared/inbound-shortcodes/shortcodes/divider.php:37
2673
+ #: ../../shared/inbound-shortcodes/shortcodes/lists.php:25
2674
+ msgid "Bottom Margin"
2675
+ msgstr ""
2676
+
2677
+ #: ../../shared/inbound-shortcodes/shortcodes/divider.php:38
2678
+ #: ../../shared/inbound-shortcodes/shortcodes/divider.php:85
2679
+ msgid "Enter the bottom margin value."
2680
+ msgstr ""
2681
+
2682
+ #: ../../shared/inbound-shortcodes/shortcodes/divider.php:44
2683
+ msgid "Insert Divider Shortcode"
2684
+ msgstr ""
2685
+
2686
+ #: ../../shared/inbound-shortcodes/shortcodes/divider.php:50
2687
+ msgid "Divider"
2688
+ msgstr ""
2689
+
2690
+ #: ../../shared/inbound-shortcodes/shortcodes/divider.php:76
2691
+ msgid "Margin Top"
2692
+ msgstr ""
2693
+
2694
+ #: ../../shared/inbound-shortcodes/shortcodes/divider.php:84
2695
+ msgid "Margin Bottom"
2696
+ msgstr ""
2697
+
2698
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:41
2699
+ msgid "Choose Starting Template"
2700
+ msgstr ""
2701
+
2702
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:42
2703
+ msgid "Start Building Your Form from premade templates"
2704
+ msgstr ""
2705
+
2706
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:49
2707
+ #: ../../shared/inbound-shortcodes/shortcodes/quick-forms.php:26
2708
+ msgid "Form Name<span class=\"small-required-text\">*</span>"
2709
+ msgstr ""
2710
+
2711
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:50
2712
+ #: ../../shared/inbound-shortcodes/shortcodes/quick-forms.php:27
2713
+ msgid "This is not shown to visitors"
2714
+ msgstr ""
2715
+
2716
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:67
2717
+ msgid "Redirect URL<span class=\"small-required-text\">*</span>"
2718
+ msgstr ""
2719
+
2720
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:68
2721
+ msgid "Where do you want to send people after they fill out the form?"
2722
+ msgstr ""
2723
+
2724
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:84
2725
+ msgid "Notify on Form Completions<span class=\"small-required-text\">*</span>"
2726
+ msgstr ""
2727
+
2728
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:85
2729
+ msgid ""
2730
+ "Who should get admin notifications on this form?<br>For multiple "
2731
+ "notifications separate email addresses with commas"
2732
+ msgstr ""
2733
+
2734
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:93
2735
+ msgid "Add the converting lead to 1 or more lead lists"
2736
+ msgstr ""
2737
+
2738
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:100
2739
+ msgid "Hidden List Values"
2740
+ msgstr ""
2741
+
2742
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:101
2743
+ msgid "Hidden list values"
2744
+ msgstr ""
2745
+
2746
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:107
2747
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:114
2748
+ #: ../../shared/inbound-shortcodes/shortcodes/quick-forms.php:19
2749
+ msgid "Name Name Name"
2750
+ msgstr ""
2751
+
2752
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:108
2753
+ msgid ""
2754
+ "<span class=\"switch-to-form-insert button\">Cancel Form Creation & Insert "
2755
+ "Existing Form</span>"
2756
+ msgstr ""
2757
+
2758
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:115
2759
+ msgid "Layout Options"
2760
+ msgstr ""
2761
+
2762
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:121
2763
+ msgid "Form Layout"
2764
+ msgstr ""
2765
+
2766
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:122
2767
+ msgid "Choose Your Form Layout"
2768
+ msgstr ""
2769
+
2770
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:132
2771
+ msgid "Label Alignment"
2772
+ msgstr ""
2773
+
2774
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:133
2775
+ msgid "Choose Label Layout"
2776
+ msgstr ""
2777
+
2778
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:145
2779
+ msgid "Form Font Size"
2780
+ msgstr ""
2781
+
2782
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:146
2783
+ msgid "Size of Label Font. This also determines default submit button size"
2784
+ msgstr ""
2785
+
2786
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:152
2787
+ msgid "Submit Button Icon"
2788
+ msgstr ""
2789
+
2790
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:160
2791
+ msgid "Submit Button Text"
2792
+ msgstr ""
2793
+
2794
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:161
2795
+ msgid ""
2796
+ "Enter the text you want to show on the submit button. (or a link to a custom "
2797
+ "submit button image)"
2798
+ msgstr ""
2799
+
2800
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:168
2801
+ msgid "Enter in pixel width or % width. Example: 400 <u>or</u> 100%"
2802
+ msgstr ""
2803
+
2804
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:177
2805
+ msgid "Field Label"
2806
+ msgstr ""
2807
+
2808
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:184
2809
+ msgid "Field Type"
2810
+ msgstr ""
2811
+
2812
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:185
2813
+ msgid "Select an form field type"
2814
+ msgstr ""
2815
+
2816
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:207
2817
+ msgid "Dropdown choices"
2818
+ msgstr ""
2819
+
2820
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:208
2821
+ msgid "Enter Your Dropdown Options. Separate by commas."
2822
+ msgstr ""
2823
+
2824
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:215
2825
+ msgid "Radio Choices"
2826
+ msgstr ""
2827
+
2828
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:216
2829
+ msgid "Enter Your Radio Options. Separate by commas."
2830
+ msgstr ""
2831
+
2832
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:223
2833
+ msgid "Checkbox choices"
2834
+ msgstr ""
2835
+
2836
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:224
2837
+ msgid "Enter Your Checkbox Options. Separate by commas."
2838
+ msgstr ""
2839
+
2840
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:231
2841
+ msgid "HTML Block"
2842
+ msgstr ""
2843
+
2844
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:232
2845
+ msgid "This is a raw HTML block in the form. Insert text/HTML"
2846
+ msgstr ""
2847
+
2848
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:238
2849
+ msgid "Default Value"
2850
+ msgstr ""
2851
+
2852
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:239
2853
+ msgid "Enter the Default Value"
2854
+ msgstr ""
2855
+
2856
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:246
2857
+ msgid "Divider Text (optional)"
2858
+ msgstr ""
2859
+
2860
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:247
2861
+ msgid "This is the text in the divider"
2862
+ msgstr ""
2863
+
2864
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:253
2865
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:275
2866
+ msgid "Field Description <span class=\"small-optional-text\">(optional)</span>"
2867
+ msgstr ""
2868
+
2869
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:254
2870
+ msgid "<span class=\"show-advanced-fields\">Show advanced fields</span>"
2871
+ msgstr ""
2872
+
2873
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:260
2874
+ msgid "Required Field? <span class=\"small-optional-text\">(optional)</span>"
2875
+ msgstr ""
2876
+
2877
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:261
2878
+ msgid "Check to make field required"
2879
+ msgstr ""
2880
+
2881
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:268
2882
+ msgid "Field Placeholder <span class=\"small-optional-text\">(optional)</span>"
2883
+ msgstr ""
2884
+
2885
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:269
2886
+ msgid "Put field placeholder text here. Only works for normal text inputs"
2887
+ msgstr ""
2888
+
2889
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:276
2890
+ msgid "Put field description here."
2891
+ msgstr ""
2892
+
2893
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:283
2894
+ msgid "Dynamic Field Filling"
2895
+ msgstr ""
2896
+
2897
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:284
2898
+ msgid "Enter Your Dynamic URL parameter"
2899
+ msgstr ""
2900
+
2901
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:292
2902
+ msgid "Map Field To"
2903
+ msgstr ""
2904
+
2905
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:293
2906
+ msgid "Map this field to Leads Value"
2907
+ msgstr ""
2908
+
2909
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:301
2910
+ msgid "Add Another Field"
2911
+ msgstr ""
2912
+
2913
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:304
2914
+ msgid "Insert Inbound Form Shortcode"
2915
+ msgstr ""
2916
+
2917
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:317
2918
+ msgid "Edit Form"
2919
+ msgstr ""
2920
+
2921
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:318
2922
+ msgid "New Form"
2923
+ msgstr ""
2924
+
2925
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:319
2926
+ msgid "View Lists"
2927
+ msgstr ""
2928
+
2929
+ #: ../../shared/inbound-shortcodes/shortcodes/forms.php:320
2930
+ msgid "Search Lists"
2931
+ msgstr ""
2932
+
2933
+ #: ../../shared/inbound-shortcodes/shortcodes/gmap.php:12
2934
+ msgid "Map Type"
2935
+ msgstr ""
2936
+
2937
+ #: ../../shared/inbound-shortcodes/shortcodes/gmap.php:13
2938
+ msgid "Select a map type"
2939
+ msgstr ""
2940
+
2941
+ #: ../../shared/inbound-shortcodes/shortcodes/gmap.php:19
2942
+ msgid "Map Width"
2943
+ msgstr ""
2944
+
2945
+ #: ../../shared/inbound-shortcodes/shortcodes/gmap.php:25
2946
+ msgid "Map Height"
2947
+ msgstr ""
2948
+
2949
+ #: ../../shared/inbound-shortcodes/shortcodes/gmap.php:32
2950
+ msgid ""
2951
+ "Enter your address here. ex: \"New York\" or \"New York, USA\" If you want a "
2952
+ "accurate position please fill the Latitude and Longitude fields"
2953
+ msgstr ""
2954
+
2955
+ #: ../../shared/inbound-shortcodes/shortcodes/gmap.php:37
2956
+ msgid "Latitude"
2957
+ msgstr ""
2958
+
2959
+ #: ../../shared/inbound-shortcodes/shortcodes/gmap.php:38
2960
+ msgid "Latitude is specified in degrees within the range [-90, 90]"
2961
+ msgstr ""
2962
+
2963
+ #: ../../shared/inbound-shortcodes/shortcodes/gmap.php:43
2964
+ msgid "Longitude"
2965
+ msgstr ""
2966
+
2967
+ #: ../../shared/inbound-shortcodes/shortcodes/gmap.php:44
2968
+ msgid "Longitude is specified in degrees within the range [-180, 180]"
2969
+ msgstr ""
2970
+
2971
+ #: ../../shared/inbound-shortcodes/shortcodes/gmap.php:49
2972
+ msgid "Zoom"
2973
+ msgstr ""
2974
+
2975
+ #: ../../shared/inbound-shortcodes/shortcodes/gmap.php:50
2976
+ msgid "Set the zoom level, numeric value from 1 to 19"
2977
+ msgstr ""
2978
+
2979
+ #: ../../shared/inbound-shortcodes/shortcodes/gmap.php:55
2980
+ msgid "Pan Control"
2981
+ msgstr ""
2982
+
2983
+ #: ../../shared/inbound-shortcodes/shortcodes/gmap.php:56
2984
+ msgid "Enable pan control?"
2985
+ msgstr ""
2986
+
2987
+ #: ../../shared/inbound-shortcodes/shortcodes/gmap.php:62
2988
+ msgid "Zoom Control"
2989
+ msgstr ""
2990
+
2991
+ #: ../../shared/inbound-shortcodes/shortcodes/gmap.php:63
2992
+ msgid "Enable zoom control?"
2993
+ msgstr ""
2994
+
2995
+ #: ../../shared/inbound-shortcodes/shortcodes/gmap.php:69
2996
+ msgid "Map Type Control"
2997
+ msgstr ""
2998
+
2999
+ #: ../../shared/inbound-shortcodes/shortcodes/gmap.php:70
3000
+ msgid "Enable map type control?"
3001
+ msgstr ""
3002
+
3003
+ #: ../../shared/inbound-shortcodes/shortcodes/gmap.php:76
3004
+ msgid "Popup Content"
3005
+ msgstr ""
3006
+
3007
+ #: ../../shared/inbound-shortcodes/shortcodes/gmap.php:77
3008
+ msgid "A descriptive text for the Google Map marker popup, ex: \"My Office\""
3009
+ msgstr ""
3010
+
3011
+ #: ../../shared/inbound-shortcodes/shortcodes/gmap.php:83
3012
+ msgid "Insert Google Map Shortcode"
3013
+ msgstr ""
3014
+
3015
+ #: ../../shared/inbound-shortcodes/shortcodes/icon.php:12
3016
+ #: ../../shared/inbound-shortcodes/shortcodes/list-icon.php:15
3017
+ msgid "Select the icon."
3018
+ msgstr ""
3019
+
3020
+ #: ../../shared/inbound-shortcodes/shortcodes/icon.php:18
3021
+ msgid "Size"
3022
+ msgstr ""
3023
+
3024
+ #: ../../shared/inbound-shortcodes/shortcodes/icon.php:19
3025
+ msgid "Select the icon size."
3026
+ msgstr ""
3027
+
3028
+ #: ../../shared/inbound-shortcodes/shortcodes/icon.php:22
3029
+ msgid "Normal Size"
3030
+ msgstr ""
3031
+
3032
+ #: ../../shared/inbound-shortcodes/shortcodes/icon.php:23
3033
+ msgid "Large Size"
3034
+ msgstr ""
3035
+
3036
+ #: ../../shared/inbound-shortcodes/shortcodes/icon.php:24
3037
+ msgid "2x Size"
3038
+ msgstr ""
3039
+
3040
+ #: ../../shared/inbound-shortcodes/shortcodes/icon.php:25
3041
+ msgid "3x Size"
3042
+ msgstr ""
3043
+
3044
+ #: ../../shared/inbound-shortcodes/shortcodes/icon.php:26
3045
+ msgid "4x Size"
3046
+ msgstr ""
3047
+
3048
+ #: ../../shared/inbound-shortcodes/shortcodes/icon.php:31
3049
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:18
3050
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:105
3051
+ msgid "Style"
3052
+ msgstr ""
3053
+
3054
+ #: ../../shared/inbound-shortcodes/shortcodes/icon.php:32
3055
+ msgid "Select the icon style."
3056
+ msgstr ""
3057
+
3058
+ #: ../../shared/inbound-shortcodes/shortcodes/icon.php:35
3059
+ msgid "Normal"
3060
+ msgstr ""
3061
+
3062
+ #: ../../shared/inbound-shortcodes/shortcodes/icon.php:36
3063
+ msgid "Muted"
3064
+ msgstr ""
3065
+
3066
+ #: ../../shared/inbound-shortcodes/shortcodes/icon.php:37
3067
+ msgid "Border"
3068
+ msgstr ""
3069
+
3070
+ #: ../../shared/inbound-shortcodes/shortcodes/icon.php:38
3071
+ msgid "Spin"
3072
+ msgstr ""
3073
+
3074
+ #: ../../shared/inbound-shortcodes/shortcodes/icon.php:44
3075
+ msgid "Insert Icon Shortcode"
3076
+ msgstr ""
3077
+
3078
+ #: ../../shared/inbound-shortcodes/shortcodes/intro.php:18
3079
+ #: ../../shared/inbound-shortcodes/shortcodes/intro.php:53
3080
+ msgid "Text Alignment"
3081
+ msgstr ""
3082
+
3083
+ #: ../../shared/inbound-shortcodes/shortcodes/intro.php:19
3084
+ msgid "Enter text alignment."
3085
+ msgstr ""
3086
+
3087
+ #: ../../shared/inbound-shortcodes/shortcodes/intro.php:22
3088
+ #: ../../shared/inbound-shortcodes/shortcodes/intro.php:57
3089
+ msgid "Align Center"
3090
+ msgstr ""
3091
+
3092
+ #: ../../shared/inbound-shortcodes/shortcodes/intro.php:23
3093
+ #: ../../shared/inbound-shortcodes/shortcodes/intro.php:58
3094
+ msgid "Align Left"
3095
+ msgstr ""
3096
+
3097
+ #: ../../shared/inbound-shortcodes/shortcodes/intro.php:24
3098
+ #: ../../shared/inbound-shortcodes/shortcodes/intro.php:59
3099
+ msgid "Align Right"
3100
+ msgstr ""
3101
+
3102
+ #: ../../shared/inbound-shortcodes/shortcodes/intro.php:36
3103
+ msgid "Insert Intro Shortcode"
3104
+ msgstr ""
3105
+
3106
+ #: ../../shared/inbound-shortcodes/shortcodes/intro.php:42
3107
+ msgid "Intro"
3108
+ msgstr ""
3109
+
3110
+ #: ../../shared/inbound-shortcodes/shortcodes/intro.php:54
3111
+ msgid "The text alignment"
3112
+ msgstr ""
3113
+
3114
+ #: ../../shared/inbound-shortcodes/shortcodes/landing-page-list.php:14
3115
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:12
3116
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:12
3117
+ msgid "Heading Text"
3118
+ msgstr ""
3119
+
3120
+ #: ../../shared/inbound-shortcodes/shortcodes/landing-page-list.php:21
3121
+ #: ../../shared/inbound-shortcodes/shortcodes/landing-page-list.php:57
3122
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:19
3123
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:77
3124
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:30
3125
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:19
3126
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:75
3127
+ msgid "Select the number of column."
3128
+ msgstr ""
3129
+
3130
+ #: ../../shared/inbound-shortcodes/shortcodes/landing-page-list.php:24
3131
+ #: ../../shared/inbound-shortcodes/shortcodes/landing-page-list.php:60
3132
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:23
3133
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:81
3134
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:16
3135
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:87
3136
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:34
3137
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:123
3138
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:23
3139
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:79
3140
+ msgid "2 Columns"
3141
+ msgstr ""
3142
+
3143
+ #: ../../shared/inbound-shortcodes/shortcodes/landing-page-list.php:25
3144
+ #: ../../shared/inbound-shortcodes/shortcodes/landing-page-list.php:61
3145
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:24
3146
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:82
3147
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:17
3148
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:88
3149
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:35
3150
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:124
3151
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:24
3152
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:80
3153
+ msgid "3 Columns"
3154
+ msgstr ""
3155
+
3156
+ #: ../../shared/inbound-shortcodes/shortcodes/landing-page-list.php:26
3157
+ #: ../../shared/inbound-shortcodes/shortcodes/landing-page-list.php:62
3158
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:25
3159
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:83
3160
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:18
3161
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:89
3162
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:36
3163
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:125
3164
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:25
3165
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:81
3166
+ msgid "4 Columns"
3167
+ msgstr ""
3168
+
3169
+ #: ../../shared/inbound-shortcodes/shortcodes/landing-page-list.php:31
3170
+ #: ../../shared/inbound-shortcodes/shortcodes/landing-page-list.php:69
3171
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:31
3172
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:91
3173
+ msgid "Post Number"
3174
+ msgstr ""
3175
+
3176
+ #: ../../shared/inbound-shortcodes/shortcodes/landing-page-list.php:32
3177
+ #: ../../shared/inbound-shortcodes/shortcodes/landing-page-list.php:70
3178
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:92
3179
+ msgid "Enter the number of post to show."
3180
+ msgstr ""
3181
+
3182
+ #: ../../shared/inbound-shortcodes/shortcodes/landing-page-list.php:38
3183
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:58
3184
+ msgid "Insert Landing Page List Shortcode"
3185
+ msgstr ""
3186
+
3187
+ #: ../../shared/inbound-shortcodes/shortcodes/landing-page-list.php:44
3188
+ msgid "Portfolio"
3189
+ msgstr ""
3190
+
3191
+ #: ../../shared/inbound-shortcodes/shortcodes/landing-page-list.php:48
3192
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:68
3193
+ #: ../../shared/inbound-shortcodes/shortcodes/social-share.php:82
3194
+ #: ../../shared/inbound-shortcodes/shortcodes/tabs.php:12
3195
+ #: ../../shared/inbound-shortcodes/shortcodes/tabs.php:54
3196
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:12
3197
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:97
3198
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:66
3199
+ msgid "Heading"
3200
+ msgstr ""
3201
+
3202
+ #: ../../shared/inbound-shortcodes/shortcodes/landing-page-list.php:117
3203
+ msgid "View Project"
3204
+ msgstr ""
3205
+
3206
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:22
3207
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:80
3208
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:33
3209
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:122
3210
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:22
3211
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:78
3212
+ msgid "1 Column"
3213
+ msgstr ""
3214
+
3215
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:26
3216
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:84
3217
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:19
3218
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:90
3219
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:37
3220
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:126
3221
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:26
3222
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:82
3223
+ msgid "5 Columns"
3224
+ msgstr ""
3225
+
3226
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:32
3227
+ msgid "Enter the number of post to show. (enter -1 for all posts)"
3228
+ msgstr ""
3229
+
3230
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:37
3231
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:99
3232
+ msgid "Category"
3233
+ msgstr ""
3234
+
3235
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:38
3236
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:100
3237
+ msgid "Optional you can sort by a category."
3238
+ msgstr ""
3239
+
3240
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:44
3241
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:108
3242
+ msgid "Excerpt Lenght"
3243
+ msgstr ""
3244
+
3245
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:45
3246
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:109
3247
+ msgid "The post excerpt word lenght."
3248
+ msgstr ""
3249
+
3250
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:50
3251
+ msgid "Show Featured Thumbnails"
3252
+ msgstr ""
3253
+
3254
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:51
3255
+ msgid "Uncheck to hide featured thumbnails"
3256
+ msgstr ""
3257
+
3258
+ #: ../../shared/inbound-shortcodes/shortcodes/landing_pages.php:64
3259
+ msgid "Entries"
3260
+ msgstr ""
3261
+
3262
+ #: ../../shared/inbound-shortcodes/shortcodes/leadp.php:12
3263
+ msgid "Alignment"
3264
+ msgstr ""
3265
+
3266
+ #: ../../shared/inbound-shortcodes/shortcodes/leadp.php:13
3267
+ msgid "Add the pharagraph alignment"
3268
+ msgstr ""
3269
+
3270
+ #: ../../shared/inbound-shortcodes/shortcodes/leadp.php:23
3271
+ msgid "Paragraph Text"
3272
+ msgstr ""
3273
+
3274
+ #: ../../shared/inbound-shortcodes/shortcodes/leadp.php:24
3275
+ msgid "Add the pharagraph text"
3276
+ msgstr ""
3277
+
3278
+ #: ../../shared/inbound-shortcodes/shortcodes/leadp.php:30
3279
+ msgid "Insert Lead Paragraph Shortcode"
3280
+ msgstr ""
3281
+
3282
+ #: ../../shared/inbound-shortcodes/shortcodes/list-icon.php:21
3283
+ msgid "List Content"
3284
+ msgstr ""
3285
+
3286
+ #: ../../shared/inbound-shortcodes/shortcodes/list-icon.php:22
3287
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:64
3288
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:148
3289
+ #: ../../shared/inbound-shortcodes/shortcodes/tabs.php:35
3290
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:47
3291
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:108
3292
+ msgid "Put the content here."
3293
+ msgstr ""
3294
+
3295
+ #: ../../shared/inbound-shortcodes/shortcodes/list-icon.php:28
3296
+ msgid "Add More List"
3297
+ msgstr ""
3298
+
3299
+ #: ../../shared/inbound-shortcodes/shortcodes/list-icon.php:31
3300
+ msgid "Insert List Icons Shortcode"
3301
+ msgstr ""
3302
+
3303
+ #: ../../shared/inbound-shortcodes/shortcodes/lists.php:12
3304
+ msgid "List Icon"
3305
+ msgstr ""
3306
+
3307
+ #: ../../shared/inbound-shortcodes/shortcodes/lists.php:13
3308
+ msgid "Select an icon for the List"
3309
+ msgstr ""
3310
+
3311
+ #: ../../shared/inbound-shortcodes/shortcodes/lists.php:20
3312
+ msgid "Size of List Font"
3313
+ msgstr ""
3314
+
3315
+ #: ../../shared/inbound-shortcodes/shortcodes/lists.php:26
3316
+ msgid "space between list items"
3317
+ msgstr ""
3318
+
3319
+ #: ../../shared/inbound-shortcodes/shortcodes/lists.php:31
3320
+ msgid "Icon Color"
3321
+ msgstr ""
3322
+
3323
+ #: ../../shared/inbound-shortcodes/shortcodes/lists.php:32
3324
+ msgid "Color of Icon"
3325
+ msgstr ""
3326
+
3327
+ #: ../../shared/inbound-shortcodes/shortcodes/lists.php:37
3328
+ msgid "Text Color"
3329
+ msgstr ""
3330
+
3331
+ #: ../../shared/inbound-shortcodes/shortcodes/lists.php:38
3332
+ msgid "Color of Text in List"
3333
+ msgstr ""
3334
+
3335
+ #: ../../shared/inbound-shortcodes/shortcodes/lists.php:43
3336
+ #: ../../shared/inbound-shortcodes/shortcodes/lists.php:44
3337
+ msgid "Number of Columns"
3338
+ msgstr ""
3339
+
3340
+ #: ../../shared/inbound-shortcodes/shortcodes/lists.php:59
3341
+ msgid "Insert Styled List Shortcode"
3342
+ msgstr ""
3343
+
3344
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:13
3345
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:84
3346
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:119
3347
+ msgid "Select the column."
3348
+ msgstr ""
3349
+
3350
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:27
3351
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:99
3352
+ msgid "Featured Plan"
3353
+ msgstr ""
3354
+
3355
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:28
3356
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:100
3357
+ msgid "Check to set this plan as featured"
3358
+ msgstr ""
3359
+
3360
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:33
3361
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:107
3362
+ msgid "Plan Title"
3363
+ msgstr ""
3364
+
3365
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:34
3366
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:108
3367
+ msgid "Enter the plan title."
3368
+ msgstr ""
3369
+
3370
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:39
3371
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:115
3372
+ msgid "Plan Price"
3373
+ msgstr ""
3374
+
3375
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:40
3376
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:116
3377
+ msgid "Enter the plan price."
3378
+ msgstr ""
3379
+
3380
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:45
3381
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:123
3382
+ msgid "Plan Term"
3383
+ msgstr ""
3384
+
3385
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:46
3386
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:124
3387
+ msgid "Enter the plan term. e.g : \"per month\", \"per year\" etc."
3388
+ msgstr ""
3389
+
3390
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:51
3391
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:131
3392
+ msgid "Plan Button Text"
3393
+ msgstr ""
3394
+
3395
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:57
3396
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:139
3397
+ msgid "Plan Button Link"
3398
+ msgstr ""
3399
+
3400
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:63
3401
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:147
3402
+ msgid "Plan Content"
3403
+ msgstr ""
3404
+
3405
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:70
3406
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:53
3407
+ msgid "Add More Testimony"
3408
+ msgstr ""
3409
+
3410
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:73
3411
+ msgid "Insert Pricing Shortcode"
3412
+ msgstr ""
3413
+
3414
+ #: ../../shared/inbound-shortcodes/shortcodes/pricing.php:79
3415
+ msgid "Pricing Table"
3416
+ msgstr ""
3417
+
3418
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:12
3419
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:71
3420
+ msgid "Profile Name"
3421
+ msgstr ""
3422
+
3423
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:13
3424
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:72
3425
+ msgid "Enter the name."
3426
+ msgstr ""
3427
+
3428
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:18
3429
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:79
3430
+ msgid "Profile Meta"
3431
+ msgstr ""
3432
+
3433
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:19
3434
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:80
3435
+ msgid "Enter the profile meta. e.g job position etc."
3436
+ msgstr ""
3437
+
3438
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:24
3439
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:87
3440
+ msgid "Profile Image"
3441
+ msgstr ""
3442
+
3443
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:25
3444
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:88
3445
+ msgid "Paste your profile image URL here."
3446
+ msgstr ""
3447
+
3448
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:30
3449
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:95
3450
+ msgid "Profile Link"
3451
+ msgstr ""
3452
+
3453
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:31
3454
+ msgid "Paste your profile link URL here."
3455
+ msgstr ""
3456
+
3457
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:36
3458
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:103
3459
+ msgid "Profile Facebook"
3460
+ msgstr ""
3461
+
3462
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:37
3463
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:104
3464
+ msgid "Paste your facebook URL here."
3465
+ msgstr ""
3466
+
3467
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:42
3468
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:111
3469
+ msgid "Profile Twitter"
3470
+ msgstr ""
3471
+
3472
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:43
3473
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:112
3474
+ msgid "Paste your twitter URL here."
3475
+ msgstr ""
3476
+
3477
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:48
3478
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:119
3479
+ msgid "Profile Email Address"
3480
+ msgstr ""
3481
+
3482
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:49
3483
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:120
3484
+ msgid "Paste your email address here."
3485
+ msgstr ""
3486
+
3487
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:54
3488
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:127
3489
+ msgid "Profile Description"
3490
+ msgstr ""
3491
+
3492
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:55
3493
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:128
3494
+ msgid "Enter the profile description text."
3495
+ msgstr ""
3496
+
3497
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:61
3498
+ msgid "Insert Profile Shortcode"
3499
+ msgstr ""
3500
+
3501
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:67
3502
+ msgid "Profile"
3503
+ msgstr ""
3504
+
3505
+ #: ../../shared/inbound-shortcodes/shortcodes/profile.php:96
3506
+ msgid "Paste your profile URL here."
3507
+ msgstr ""
3508
+
3509
+ #: ../../shared/inbound-shortcodes/shortcodes/quick-forms.php:11
3510
+ msgid "Insert Saved Form"
3511
+ msgstr ""
3512
+
3513
+ #: ../../shared/inbound-shortcodes/shortcodes/quick-forms.php:12
3514
+ msgid "Insert a Saved Form"
3515
+ msgstr ""
3516
+
3517
+ #: ../../shared/inbound-shortcodes/shortcodes/quick-forms.php:20
3518
+ msgid "<span class=\"switch-to-form-builder button\">Build a New Form</span>"
3519
+ msgstr ""
3520
+
3521
+ #: ../../shared/inbound-shortcodes/shortcodes/quick-forms.php:35
3522
+ msgid "Quick Insert Inbound Form Shortcode"
3523
+ msgstr ""
3524
+
3525
+ #: ../../shared/inbound-shortcodes/shortcodes/social-share.php:14
3526
+ msgid "Style of Icons"
3527
+ msgstr ""
3528
+
3529
+ #: ../../shared/inbound-shortcodes/shortcodes/social-share.php:26
3530
+ msgid "Align Icons"
3531
+ msgstr ""
3532
+
3533
+ #: ../../shared/inbound-shortcodes/shortcodes/social-share.php:27
3534
+ msgid "Alignment Settings"
3535
+ msgstr ""
3536
+
3537
+ #: ../../shared/inbound-shortcodes/shortcodes/social-share.php:37
3538
+ #: ../../shared/inbound-shortcodes/shortcodes/social.php:12
3539
+ msgid "Facebook"
3540
+ msgstr ""
3541
+
3542
+ #: ../../shared/inbound-shortcodes/shortcodes/social-share.php:38
3543
+ msgid "Show facebook share icon"
3544
+ msgstr ""
3545
+
3546
+ #: ../../shared/inbound-shortcodes/shortcodes/social-share.php:43
3547
+ #: ../../shared/inbound-shortcodes/shortcodes/social.php:18
3548
+ msgid "Twitter"
3549
+ msgstr ""
3550
+
3551
+ #: ../../shared/inbound-shortcodes/shortcodes/social-share.php:44
3552
+ msgid "Show twitter share icon"
3553
+ msgstr ""
3554
+
3555
+ #: ../../shared/inbound-shortcodes/shortcodes/social-share.php:49
3556
+ #: ../../shared/inbound-shortcodes/shortcodes/social.php:24
3557
+ msgid "Google+"
3558
+ msgstr ""
3559
+
3560
+ #: ../../shared/inbound-shortcodes/shortcodes/social-share.php:50
3561
+ msgid "Show google plus share icon"
3562
+ msgstr ""
3563
+
3564
+ #: ../../shared/inbound-shortcodes/shortcodes/social-share.php:55
3565
+ #: ../../shared/inbound-shortcodes/shortcodes/social.php:30
3566
+ msgid "Linkedin"
3567
+ msgstr ""
3568
+
3569
+ #: ../../shared/inbound-shortcodes/shortcodes/social-share.php:56
3570
+ msgid "Show linkedin share icon"
3571
+ msgstr ""
3572
+
3573
+ #: ../../shared/inbound-shortcodes/shortcodes/social-share.php:61
3574
+ #: ../../shared/inbound-shortcodes/shortcodes/social.php:48
3575
+ msgid "Pinterest"
3576
+ msgstr ""
3577
+
3578
+ #: ../../shared/inbound-shortcodes/shortcodes/social-share.php:62
3579
+ msgid "Show pinterest share icon"
3580
+ msgstr ""
3581
+
3582
+ #: ../../shared/inbound-shortcodes/shortcodes/social-share.php:68
3583
+ msgid "Custom Share Text"
3584
+ msgstr ""
3585
+
3586
+ #: ../../shared/inbound-shortcodes/shortcodes/social-share.php:69
3587
+ msgid "Optional setting. Enter your custom share text"
3588
+ msgstr ""
3589
+
3590
+ #: ../../shared/inbound-shortcodes/shortcodes/social-share.php:75
3591
+ msgid "Custom Share URL"
3592
+ msgstr ""
3593
+
3594
+ #: ../../shared/inbound-shortcodes/shortcodes/social-share.php:76
3595
+ msgid "Optional setting. Enter your custom share link URL"
3596
+ msgstr ""
3597
+
3598
+ #: ../../shared/inbound-shortcodes/shortcodes/social-share.php:83
3599
+ msgid "Optional setting."
3600
+ msgstr ""
3601
+
3602
+ #: ../../shared/inbound-shortcodes/shortcodes/social-share.php:89
3603
+ msgid "Heading Align"
3604
+ msgstr ""
3605
+
3606
+ #: ../../shared/inbound-shortcodes/shortcodes/social-share.php:90
3607
+ msgid "Heading Alignment Settings"
3608
+ msgstr ""
3609
+
3610
+ #: ../../shared/inbound-shortcodes/shortcodes/social-share.php:101
3611
+ msgid "Insert Social Share Shortcode"
3612
+ msgstr ""
3613
+
3614
+ #: ../../shared/inbound-shortcodes/shortcodes/social.php:13
3615
+ msgid "Enter your facebook profile URL"
3616
+ msgstr ""
3617
+
3618
+ #: ../../shared/inbound-shortcodes/shortcodes/social.php:19
3619
+ msgid "Enter your twitter profile URL"
3620
+ msgstr ""
3621
+
3622
+ #: ../../shared/inbound-shortcodes/shortcodes/social.php:25
3623
+ msgid "Enter your google plus profile URL"
3624
+ msgstr ""
3625
+
3626
+ #: ../../shared/inbound-shortcodes/shortcodes/social.php:31
3627
+ msgid "Enter your linkedin profile URL"
3628
+ msgstr ""
3629
+
3630
+ #: ../../shared/inbound-shortcodes/shortcodes/social.php:36
3631
+ msgid "Github"
3632
+ msgstr ""
3633
+
3634
+ #: ../../shared/inbound-shortcodes/shortcodes/social.php:37
3635
+ msgid "Enter your github profile URL"
3636
+ msgstr ""
3637
+
3638
+ #: ../../shared/inbound-shortcodes/shortcodes/social.php:42
3639
+ msgid "Instagram"
3640
+ msgstr ""
3641
+
3642
+ #: ../../shared/inbound-shortcodes/shortcodes/social.php:43
3643
+ msgid "Enter your instagram profile URL"
3644
+ msgstr ""
3645
+
3646
+ #: ../../shared/inbound-shortcodes/shortcodes/social.php:49
3647
+ msgid "Enter your pinterest profile URL"
3648
+ msgstr ""
3649
+
3650
+ #: ../../shared/inbound-shortcodes/shortcodes/social.php:54
3651
+ msgid "RSS"
3652
+ msgstr ""
3653
+
3654
+ #: ../../shared/inbound-shortcodes/shortcodes/social.php:55
3655
+ msgid "Enter your RSS feeds URL"
3656
+ msgstr ""
3657
+
3658
+ #: ../../shared/inbound-shortcodes/shortcodes/social.php:61
3659
+ msgid "Insert Social Link Shortcode"
3660
+ msgstr ""
3661
+
3662
+ #: ../../shared/inbound-shortcodes/shortcodes/tabs.php:13
3663
+ #: ../../shared/inbound-shortcodes/shortcodes/tabs.php:55
3664
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:13
3665
+ msgid "Enter the heading text"
3666
+ msgstr ""
3667
+
3668
+ #: ../../shared/inbound-shortcodes/shortcodes/tabs.php:21
3669
+ msgid "Tab Title"
3670
+ msgstr ""
3671
+
3672
+ #: ../../shared/inbound-shortcodes/shortcodes/tabs.php:22
3673
+ msgid "Enter the tab title."
3674
+ msgstr ""
3675
+
3676
+ #: ../../shared/inbound-shortcodes/shortcodes/tabs.php:34
3677
+ msgid "Tab Content"
3678
+ msgstr ""
3679
+
3680
+ #: ../../shared/inbound-shortcodes/shortcodes/tabs.php:41
3681
+ msgid "Add More Tab"
3682
+ msgstr ""
3683
+
3684
+ #: ../../shared/inbound-shortcodes/shortcodes/tabs.php:44
3685
+ msgid "Insert Tabs Shortcode"
3686
+ msgstr ""
3687
+
3688
+ #: ../../shared/inbound-shortcodes/shortcodes/tabs.php:50
3689
+ msgid "Tabs"
3690
+ msgstr ""
3691
+
3692
+ #: ../../shared/inbound-shortcodes/shortcodes/tabs.php:65
3693
+ msgid "Enter the tab title"
3694
+ msgstr ""
3695
+
3696
+ #: ../../shared/inbound-shortcodes/shortcodes/tabs.php:82
3697
+ msgid "Enter the tab content"
3698
+ msgstr ""
3699
+
3700
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:23
3701
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:110
3702
+ msgid "Nested"
3703
+ msgstr ""
3704
+
3705
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:24
3706
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:111
3707
+ msgid "Centered"
3708
+ msgstr ""
3709
+
3710
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:46
3711
+ msgid "Enter the title."
3712
+ msgstr ""
3713
+
3714
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:64
3715
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:144
3716
+ msgid "Image URL"
3717
+ msgstr ""
3718
+
3719
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:65
3720
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:145
3721
+ msgid "Enter your image url, it will override the icon above"
3722
+ msgstr ""
3723
+
3724
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:72
3725
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:167
3726
+ msgid "The title link destination URL."
3727
+ msgstr ""
3728
+
3729
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:77
3730
+ msgid "Teaser Content"
3731
+ msgstr ""
3732
+
3733
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:84
3734
+ msgid "Add More Block"
3735
+ msgstr ""
3736
+
3737
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:87
3738
+ msgid "Insert Teaser Shortcode"
3739
+ msgstr ""
3740
+
3741
+ #: ../../shared/inbound-shortcodes/shortcodes/teaser.php:93
3742
+ msgid "Teaser"
3743
+ msgstr ""
3744
+
3745
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:34
3746
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:91
3747
+ msgid "Testimony Author"
3748
+ msgstr ""
3749
+
3750
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:35
3751
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:92
3752
+ msgid "Enter the testimony author name."
3753
+ msgstr ""
3754
+
3755
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:40
3756
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:99
3757
+ msgid "Testimony Author Meta"
3758
+ msgstr ""
3759
+
3760
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:41
3761
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:100
3762
+ msgid "The author job, company or website name."
3763
+ msgstr ""
3764
+
3765
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:46
3766
+ msgid "Testimony Content"
3767
+ msgstr ""
3768
+
3769
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:56
3770
+ msgid "Insert Testimonial Shortcode"
3771
+ msgstr ""
3772
+
3773
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:62
3774
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:124
3775
+ msgid "Testimonial"
3776
+ msgstr ""
3777
+
3778
+ #: ../../shared/inbound-shortcodes/shortcodes/testimonial.php:107
3779
+ msgid "Testimony Text"
3780
+ msgstr ""
3781
+
3782
+ #: ../../shared/inbound-shortcodes/shortcodes/video.php:12
3783
+ msgid "Video URL"
3784
+ msgstr ""
3785
+
3786
+ #: ../../shared/inbound-shortcodes/shortcodes/video.php:13
3787
+ msgid ""
3788
+ "Paste the video URL here, click <a href=\"http://codex.wordpress.org/"
3789
+ "Embeds#Okay.2C_So_What_Sites_Can_I_Embed_From.3F\" target=\"_blank\">here</"
3790
+ "a> to see all available video hosts."
3791
+ msgstr ""
3792
+
3793
+ #: ../../shared/inbound-shortcodes/shortcodes/video.php:19
3794
+ msgid "Insert Video Shortcode"
3795
+ msgstr ""
3796
+
3797
+ #: ../../shared/inboundnow/inboundnow.global-settings.php:30
3798
+ #: ../../shared/inboundnow/inboundnow.global-settings.php:39
3799
+ msgid ""
3800
+ "Head to http://www.inboundnow.com/ to retrieve your extension-ready license "
3801
+ "key."
3802
+ msgstr ""
3803
+
3804
+ #: ../../shared/inboundnow/inboundnow.global-settings.php:32
3805
+ msgid "InboundNow Master Key"
3806
+ msgstr ""
3807
+
3808
+ #: ../../shared/inboundnow/inboundnow.global-settings.php:38
3809
+ msgid "InboundNow Master License Key"
3810
+ msgstr ""
shared/languages/leads/ach.mo ADDED
Binary file
shared/languages/leads/af.mo ADDED
Binary file
shared/languages/leads/ar.mo ADDED
Binary file
shared/languages/leads/az.mo ADDED
Binary file
shared/languages/leads/be_BY.mo ADDED
Binary file
shared/languages/leads/bg_BG.mo ADDED
Binary file
shared/languages/leads/bn_BD.mo ADDED
Binary file
shared/languages/leads/br.mo ADDED
Binary file
shared/languages/leads/bs_BA.mo ADDED
Binary file
shared/languages/leads/ca.mo ADDED
Binary file
shared/languages/leads/co.mo ADDED
Binary file
shared/languages/leads/cs_CZ.mo ADDED
Binary file
shared/languages/leads/cy.mo ADDED
Binary file
shared/languages/leads/da_DK.mo ADDED
Binary file
shared/languages/leads/de_DE.mo ADDED
Binary file
shared/languages/leads/default.mo ADDED
Binary file
shared/languages/leads/el.mo ADDED
Binary file
shared/languages/leads/en@pirate.mo ADDED
Binary file
shared/languages/leads/en_GB.mo ADDED
Binary file
shared/languages/leads/eo.mo ADDED
Binary file
shared/languages/leads/es_CL.mo ADDED
Binary file
shared/languages/leads/es_ES.mo ADDED
Binary file
shared/languages/leads/es_MX.mo ADDED
Binary file
shared/languages/leads/es_PE.mo ADDED
Binary file
shared/languages/leads/es_VE.mo ADDED
Binary file
shared/languages/leads/et.mo ADDED
Binary file
shared/languages/leads/eu.mo ADDED
Binary file
shared/languages/leads/fa.mo ADDED
Binary file
shared/languages/leads/fa_IR.mo ADDED
Binary file
shared/languages/leads/fi.mo ADDED
Binary file
shared/languages/leads/fo.mo ADDED
Binary file
shared/languages/leads/fr_FR.mo ADDED
Binary file
shared/languages/leads/gl_ES.mo ADDED
Binary file
shared/languages/leads/gu_IN.mo ADDED
Binary file
shared/languages/leads/he_IL.mo ADDED
Binary file
shared/languages/leads/hi_IN.mo ADDED
Binary file
shared/languages/leads/hr.mo ADDED
Binary file
shared/languages/leads/hu_HU.mo ADDED
Binary file
shared/languages/leads/id_ID.mo ADDED
Binary file
shared/languages/leads/is_IS.mo ADDED
Binary file
shared/languages/leads/it_IT.mo ADDED
Binary file
shared/languages/leads/ja.mo ADDED
Binary file
shared/languages/leads/jv.mo ADDED
Binary file
shared/languages/leads/ka.mo ADDED
Binary file
shared/languages/leads/kk.mo ADDED
Binary file
shared/languages/leads/ko_KR.mo ADDED
Binary file
shared/languages/leads/ku.mo ADDED
Binary file
shared/languages/leads/ky.mo ADDED
Binary file
shared/languages/leads/lt_LT.mo ADDED
Binary file
shared/languages/leads/lv.mo ADDED
Binary file
shared/languages/leads/lv_LV.mo ADDED
Binary file
shared/languages/leads/mg.mo ADDED
Binary file
shared/languages/leads/mk_MK.mo ADDED
Binary file
shared/languages/leads/mn.mo ADDED
Binary file
shared/languages/leads/my_MM.mo ADDED
Binary file
shared/languages/leads/nb_NO.mo ADDED
Binary file
shared/languages/leads/ne_NP.mo ADDED
Binary file
shared/languages/leads/nl_NL.mo ADDED
Binary file
shared/languages/leads/nn_NO.mo ADDED
Binary file
shared/languages/leads/oc.mo ADDED
Binary file
shared/languages/leads/pap.mo ADDED
Binary file
shared/languages/leads/pl_PL.mo ADDED
Binary file
shared/languages/leads/pt_BR.mo ADDED
Binary file
shared/languages/leads/pt_PT.mo ADDED
Binary file
shared/languages/leads/ro_RO.mo ADDED
Binary file
shared/languages/leads/ru_RU.mo ADDED
Binary file
shared/languages/leads/sah.mo ADDED
Binary file
shared/languages/leads/sk_SK.mo ADDED
Binary file
shared/languages/leads/sq.mo ADDED
Binary file
shared/languages/leads/sr_RS.mo ADDED
Binary file
shared/languages/leads/su.mo ADDED
Binary file
shared/languages/leads/sv_SE.mo ADDED
Binary file
shared/languages/leads/sw.mo ADDED
Binary file
shared/languages/leads/te.mo ADDED
Binary file
shared/languages/leads/th.mo ADDED
Binary file
shared/languages/leads/tk_TM.mo ADDED
Binary file
shared/languages/leads/tr_TR.mo ADDED
Binary file
shared/languages/leads/ug.mo ADDED
Binary file
shared/languages/leads/uk.mo ADDED
Binary file
shared/languages/leads/uz.mo ADDED
Binary file
shared/languages/leads/vi.mo ADDED
Binary file
shared/languages/leads/zh_CN.mo ADDED
Binary file
shared/languages/leads/zh_TW.mo ADDED
Binary file
shared/metaboxes/inbound-metaboxes.js ADDED
File without changes
shared/metaboxes/template.metaboxes.php CHANGED
@@ -1,60 +1,47 @@
1
  <?php
2
 
3
-
4
- // replacing wp_cta_show_metabox
5
- function inbound_template_show_metabox($post,$key)
6
- {
7
- $extension_data = wp_cta_get_extension_data();
8
- $key = $key['args']['key'];
9
-
10
- $wp_cta_custom_fields = $extension_data[$key]['settings'];
11
-
12
- $wp_cta_custom_fields = apply_filters('wp_cta_show_metabox',$wp_cta_custom_fields, $key);
13
-
14
- inbound_template_metabox_render($key,$wp_cta_custom_fields,$post);
15
- }
16
-
17
  // replacing wp_cta_render_metabox
18
- function inbound_template_metabox_render($key,$custom_fields,$post)
19
  {
20
- $prefix = 'wp_cta';
21
- $prefix_dash = 'wp-cta';
22
- //print_r($custom_fields);exit;
 
 
 
 
 
 
 
23
  // Use nonce for verification
24
  echo "<input type='hidden' name='{$prefix}_{$key}_custom_fields_nonce' value='".wp_create_nonce(''.$prefix_dash.'-nonce')."' />";
25
 
26
  // Begin the field table and loop
27
  echo '<div class="form-table" id="inbound-meta">';
28
 
29
- //print_r($custom_fields);exit;
30
  $current_var = wp_cta_ab_testing_get_current_variation_id();
31
- foreach ($custom_fields as $field) {
 
 
32
  $field_id = $key . "-" .$field['id'];
33
- $field_name = $field['id'];
34
  $label_class = $field['id'] . "-label";
35
  $type_class = " inbound-" . $field['type'];
36
  $type_class_row = " inbound-" . $field['type'] . "-row";
37
  $type_class_option = " inbound-" . $field['type'] . "-option";
38
  $option_class = (isset($field['class'])) ? $field['class'] : '';
39
- // get value of this field if it exists for this post
40
  $meta = get_post_meta($post->ID, $field_id, true);
41
- $global_meta = get_post_meta($post->ID, $field_name, true);
42
- if(empty($global_meta)) {
43
- $global_meta = $field['default'];
44
- }
45
 
46
  //print_r($field);
47
  if ((!isset($meta)&&isset($field['default'])&&!is_numeric($meta))||isset($meta)&&empty($meta)&&isset($field['default'])&&!is_numeric($meta))
48
  {
49
- //echo $field['id'].":".$meta;
50
- //echo "<br>";
51
  $meta = $field['default'];
52
  }
53
-
54
  // Remove prefixes on global => true template options
55
  if (isset($field['global']) && $field['global'] === true) {
56
- $field_id = $field_name;
57
- $meta = get_post_meta($post->ID, $field_name, true);
58
  }
59
 
60
  // begin a table row with
@@ -95,7 +82,7 @@ function inbound_template_metabox_render($key,$custom_fields,$post)
95
  </div>';
96
  break;
97
  case 'text':
98
- echo '<input type="text" name="'.$field_id.'" id="'.$field_id.'" value="'.$meta.'" size="30" />
99
  <div class="wp_cta_tooltip" title="'.$field['description'].'"></div>';
100
  break;
101
  case 'number':
@@ -112,7 +99,7 @@ function inbound_template_metabox_render($key,$custom_fields,$post)
112
  // wysiwyg
113
  case 'wysiwyg':
114
  echo "<div class='iframe-options iframe-options-".$field_id."' id='".$field['id']."'>";
115
- wp_editor( $meta, $field_id, $settings = array( 'editor_class' => $field_name ) );
116
  echo '<p class="description">'.$field['description'].'</p></div>';
117
  break;
118
  // media
@@ -166,6 +153,13 @@ function inbound_template_metabox_render($key,$custom_fields,$post)
166
  }
167
  echo '</select><div class="wp_cta_tooltip" title="'.$field['description'].'"></div>';
168
  break;
 
 
 
 
 
 
 
169
 
170
 
171
 
1
  <?php
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  // replacing wp_cta_render_metabox
4
+ function inbound_template_metabox_render( $plugin , $key , $custom_fields , $post)
5
  {
6
+ switch ($plugin) {
7
+ case "cta" :
8
+ $prefix = 'wp_cta';
9
+ $prefix_dash = 'wp-cta';
10
+ $CTAExtensions = CTALoadExtensions();
11
+ $extension_data = $CTAExtensions->definitions;
12
+ break;
13
+ }
14
+
15
+
16
  // Use nonce for verification
17
  echo "<input type='hidden' name='{$prefix}_{$key}_custom_fields_nonce' value='".wp_create_nonce(''.$prefix_dash.'-nonce')."' />";
18
 
19
  // Begin the field table and loop
20
  echo '<div class="form-table" id="inbound-meta">';
21
 
 
22
  $current_var = wp_cta_ab_testing_get_current_variation_id();
23
+
24
+ foreach ($custom_fields as $field)
25
+ {
26
  $field_id = $key . "-" .$field['id'];
 
27
  $label_class = $field['id'] . "-label";
28
  $type_class = " inbound-" . $field['type'];
29
  $type_class_row = " inbound-" . $field['type'] . "-row";
30
  $type_class_option = " inbound-" . $field['type'] . "-option";
31
  $option_class = (isset($field['class'])) ? $field['class'] : '';
32
+
33
  $meta = get_post_meta($post->ID, $field_id, true);
 
 
 
 
34
 
35
  //print_r($field);
36
  if ((!isset($meta)&&isset($field['default'])&&!is_numeric($meta))||isset($meta)&&empty($meta)&&isset($field['default'])&&!is_numeric($meta))
37
  {
 
 
38
  $meta = $field['default'];
39
  }
40
+
41
  // Remove prefixes on global => true template options
42
  if (isset($field['global']) && $field['global'] === true) {
43
+ $field_id = $field['id'];
44
+ $meta = get_post_meta($post->ID, $field['id'] , true);
45
  }
46
 
47
  // begin a table row with
82
  </div>';
83
  break;
84
  case 'text':
85
+ echo '<input type="text" class="'.$option_class.'" name="'.$field_id.'" id="'.$field_id.'" value="'.$meta.'" size="30" />
86
  <div class="wp_cta_tooltip" title="'.$field['description'].'"></div>';
87
  break;
88
  case 'number':
99
  // wysiwyg
100
  case 'wysiwyg':
101
  echo "<div class='iframe-options iframe-options-".$field_id."' id='".$field['id']."'>";
102
+ wp_editor( $meta, $field_id, $settings = array( 'editor_class' => $field['id'] ) );
103
  echo '<p class="description">'.$field['description'].'</p></div>';
104
  break;
105
  // media
153
  }
154
  echo '</select><div class="wp_cta_tooltip" title="'.$field['description'].'"></div>';
155
  break;
156
+ case 'image-select':
157
+ echo '<select name="'.$field_id.'" id="'.$field_id.'" class="image-picker">';
158
+ foreach ($field['options'] as $value=>$label) {
159
+ echo '<option', $meta == $value ? ' selected="selected"' : '', ' value="'.$value.'" data-img-src="'.$extension_data[$key]['info']['path'].'assets/img/'.$value.'.'.$field['image_type'].'" >'.$label.'</option>';
160
+ }
161
+ echo '</select><div class="wp-cta-image-container" style="display:inline;"></div><div class="wp_cta_tooltip" title="'.$field['description'].'"></div>';
162
+ break;
163
 
164
 
165
 
shared/tracking/store.lead.php CHANGED
@@ -2,38 +2,77 @@
2
  /**
3
  * Inbound Lead Storage
4
  *
5
- * - Handles lead creation and storage
6
  */
7
 
8
- /* Custom Mappings coming soon
9
- add_filter('inboundnow_custom_map_values_filter', 'inbound_map_custom_fields', 10, 1);
10
- if (!function_exists('inbound_map_custom_fields')) {
11
- function inbound_map_custom_fields($custom_map_values) {
12
 
13
- $new_fields = array(
14
- 'field_label' => 'Timmmm Company',
15
- 'field_name' => 'wpleads_ip_addressy',
16
- 'map_to' => 'wpleads_ip_address'
17
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
 
19
- foreach ($new_fields as $key => $value) {
20
- array_push($custom_map_values, $new_fields[$key]);
21
- }
 
 
 
 
 
 
 
 
 
 
 
22
 
23
- return $custom_map_values;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
 
 
25
  }
26
  }
27
 
28
- add_action('wp_head', 'custom_js_insert');
29
- function custom_js_insert() { ?>
30
- <script type="text/javascript">
31
- // Ensure global inbound_form_data has been initialized.
32
- var inbound_form_data = inbound_form_data || {};
33
- inbound_form_data['custom_map_val'] = 'hi hi hi';
34
- </script>
35
- <?php }
36
- */
37
  if (!function_exists('inbound_store_lead')) {
38
 
39
  add_action('wp_ajax_inbound_store_lead', 'inbound_store_lead');
@@ -57,20 +96,25 @@ function inbound_store_lead( $args = array() ) {
57
  $lead_data['page_id'] = (array_key_exists('page_id', $mapped_data)) ? $mapped_data['page_id'] : '0';
58
  $lead_data['lp_id'] = (array_key_exists('page_id', $mapped_data)) ? $mapped_data['page_id'] : '0'; //legacy for landing pages
59
  $lead_data['variation'] = (array_key_exists('variation', $mapped_data)) ? $mapped_data['variation'] : '0';
60
- $lead_data['lp_variation'] = (array_key_exists('page_id', $mapped_data)) ? $mapped_data['page_id'] : '0'; //legacy for landing pages
61
  $lead_data['post_type'] = (array_key_exists('post_type', $mapped_data)) ? $mapped_data['post_type'] : 'na';
62
  $lead_data['wp_lead_uid'] = (array_key_exists('wp_lead_uid', $mapped_data)) ? $mapped_data['wp_lead_uid'] : false;
63
  $lead_data['lead_lists'] = (array_key_exists('leads_list', $mapped_data)) ? explode(",", $mapped_data['leads_list']) : false;
64
  $lead_data['ip_address'] = (array_key_exists('ip_address', $mapped_data)) ? $mapped_data['ip_address'] : false;
65
- // POST Vars
 
 
 
 
66
  $lead_data['email'] = (isset($_POST['emailTo'])) ? $_POST['emailTo'] : false;
67
- $lead_data['wpleads_first_name'] = (isset($_POST['first_name'])) ? $_POST['first_name'] : false;
68
- $lead_data['first_name'] = (isset($_POST['first_name'])) ? $_POST['first_name'] : false;
69
- $lead_data['wpleads_last_name'] = (isset($_POST['last_name'])) ? $_POST['last_name'] : false;
70
- $lead_data['last_name'] = (isset($_POST['last_name'])) ? $_POST['last_name'] : false;
71
- $lead_data['wpleads_company_name'] = (isset($_POST['company_name'] )) ? $_POST['company_name'] : false;
72
- $lead_data['wpleads_mobile_phone'] = (isset($_POST['phone'])) ? $_POST['phone'] : false;
73
- $lead_data['wpleads_address_line_1'] = (isset($_POST['address'])) ? $_POST['address'] : false;
 
74
 
75
 
76
  /* NEW MAPPING Loop In Progress */
@@ -105,7 +149,8 @@ function inbound_store_lead( $args = array() ) {
105
  do_action('inbound_store_lead_pre' , $lead_data); // Global lead storage action hook
106
 
107
  // check for set email
108
- if ( ( isset( $lead_data['wpleads_email_address'] ) && !empty( $lead_data['wpleads_email_address'] ) && strstr( $lead_data['wpleads_email_address'] ,'@') )) {
 
109
  $query = $wpdb->prepare(
110
  'SELECT ID FROM ' . $wpdb->posts . '
111
  WHERE post_title = %s
@@ -114,34 +159,20 @@ function inbound_store_lead( $args = array() ) {
114
  );
115
  $wpdb->query( $query );
116
 
117
- // Add lookup fallbacks
118
- if ( $wpdb->num_rows ) {
119
- /* Update Existing Lead */
 
120
  $lead_data['lead_id'] = $wpdb->get_var( $query );
121
- $meta = get_post_meta( $lead_data['lead_id'], 'times', TRUE ); // replace times
122
- $meta++;
123
- update_post_meta( $lead_data['lead_id'], 'times', $meta ); // replace times
124
-
125
- if (!empty($lead_data['user_ID']))
126
- update_post_meta( $lead_data['lead_id'], 'wpleads_wordpress_user_id', $lead_data['user_ID'] );
127
- if (!empty($lead_data['wpleads_first_name']))
128
- update_post_meta( $lead_data['lead_id'], 'wpleads_first_name', $lead_data['wpleads_first_name'] );
129
- if (!empty($lead_data['wpleads_last_name']))
130
- update_post_meta( $lead_data['lead_id'], 'wpleads_last_name', $lead_data['wpleads_last_name'] );
131
- if (!empty($lead_data['wpleads_mobile_phone']))
132
- update_post_meta( $lead_data['lead_id'], 'wpleads_work_phone', $lead_data['wpleads_mobile_phone'] );
133
- if (!empty($lead_data['wpleads_company_name']))
134
- update_post_meta( $lead_data['lead_id'], 'wpleads_company_name', $lead_data['wpleads_company_name'] );
135
- if (!empty($lead_data['wpleads_address_line_1']))
136
- update_post_meta( $lead_data['lead_id'], 'wpleads_address_line_1', $lead_data['wpleads_address_line_1'] );
137
- if (!empty($lead_data['wp_lead_uid']))
138
- update_post_meta( $lead_data['lead_id'], 'wp_leads_uid', $lead_data['wp_lead_uid'] );
139
-
140
- update_post_meta( $lead_data['lead_id'], 'wpleads_landing_page_'.$lead_data['page_id'], 1 );
141
- do_action('wpleads_after_conversion_lead_update',$lead_data['lead_id']);
142
 
143
- } else {
144
- /* Create New Lead */
 
 
 
 
145
  $post = array(
146
  'post_title' => $lead_data['wpleads_email_address'],
147
  //'post_content' => $json,
@@ -152,64 +183,82 @@ function inbound_store_lead( $args = array() ) {
152
 
153
  //$post = add_filter('lp_leads_post_vars',$post);
154
  $lead_data['lead_id'] = wp_insert_post($post);
155
- update_post_meta( $lead_data['lead_id'], 'times', 1 );
156
- update_post_meta( $lead_data['lead_id'], 'wpleads_wordpress_user_id', $user_ID );
157
- update_post_meta( $lead_data['lead_id'], 'wpleads_email_address', $lead_data['wpleads_email_address'] );
158
-
159
- if (!empty($lead_data['wpleads_first_name']))
160
- update_post_meta( $lead_data['lead_id'], 'wpleads_first_name', $lead_data['wpleads_first_name'] );
161
- if (!empty($lead_data['wpleads_last_name']))
162
- update_post_meta( $lead_data['lead_id'], 'wpleads_last_name', $lead_data['wpleads_last_name'] );
163
- if (!empty($lead_data['wpleads_mobile_phone']))
164
- update_post_meta( $lead_data['lead_id'], 'wpleads_work_phone', $lead_data['wpleads_mobile_phone'] );
165
- if (!empty($lead_data['wpleads_company_name']))
166
- update_post_meta( $lead_data['lead_id'], 'wpleads_company_name', $lead_data['wpleads_company_name'] );
167
- if (!empty($lead_data['wpleads_address_line_1']))
168
- update_post_meta( $lead_data['lead_id'], 'wpleads_address_line_1', $lead_data['wpleads_address_line_1'] );
169
 
 
 
170
 
171
- update_post_meta( $lead_data['lead_id'], 'wp_leads_uid', $lead_data['wp_lead_uid'] );
172
- update_post_meta( $lead_data['lead_id'], 'page_views', $lead_data['page_views'] ); /* Store Page Views Object */
173
- update_post_meta( $lead_data['lead_id'], 'wpleads_page_view_count', $lead_data['page_view_count']);
174
- update_post_meta( $lead_data['lead_id'], 'wpleads_landing_page_'.$lead_data['page_id'], 1 );
175
- do_action('wpleads_after_conversion_lead_insert',$lead_data['lead_id']);
176
 
 
177
  }
178
 
179
  /***
180
  * Run Processes for all Leads below
181
  ***/
 
182
 
183
- update_post_meta( $lead_data['lead_id'], 'wpleads_inbound_form_mapped_data', $lead_data['Mapped_Data']);
184
 
185
  /* Add Leads to List on creation */
186
  if(!empty($lead_data['lead_lists']) && is_array($lead_data['lead_lists'])){
187
- add_lead_lists_ajax($lead_data['lead_id'], $lead_data['lead_lists'], 'wplead_list_category');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
188
  }
189
 
190
  /* Store IP addresss & Store GEO Data */
191
- if ($lead_data['ip_address']){
192
- update_post_meta( $lead_data['lead_id'], 'wpleads_ip_address', $lead_data['ip_address'] );
193
  if ($lead_data['ip_address'] != "127.0.0.1"){ // exclude localhost
194
  $geo_array = unserialize(wp_remote_get('http://www.geoplugin.net/php.gp?ip='.$lead_data['ip_address']));
195
- (isset($geo_array['geoplugin_areaCode'])) ? update_post_meta( $lead_data['lead_id'], 'wpleads_areaCode', $geo_array['geoplugin_areaCode'] ) : null;
196
- (isset($geo_array['geoplugin_city'])) ? update_post_meta( $lead_data['lead_id'], 'wpleads_city', $geo_array['geoplugin_city'] ) : null;
197
- (isset($geo_array['geoplugin_regionName'])) ? update_post_meta( $lead_data['lead_id'], 'wpleads_region_name', $geo_array['geoplugin_regionName'] ) : null;
198
- (isset($geo_array['geoplugin_regionCode'])) ? update_post_meta( $lead_data['lead_id'], 'wpleads_region_code', $geo_array['geoplugin_regionCode'] ) : null;
199
- (isset($geo_array['geoplugin_countryName'])) ? update_post_meta( $lead_data['lead_id'], 'wpleads_country_name', $geo_array['geoplugin_countryName'] ) : null;
200
- (isset($geo_array['geoplugin_countryCode'])) ? update_post_meta( $lead_data['lead_id'], 'wpleads_country_code', $geo_array['geoplugin_countryCode'] ) : null;
201
- (isset($geo_array['geoplugin_latitude'])) ? update_post_meta( $lead_data['lead_id'], 'wpleads_latitude', $geo_array['geoplugin_latitude'] ) : null;
202
- (isset($geo_array['geoplugin_longitude'])) ? update_post_meta( $lead_data['lead_id'], 'wpleads_longitude', $geo_array['geoplugin_longitude'] ) : null;
203
- (isset($geo_array['geoplugin_currencyCode'])) ? update_post_meta( $lead_data['lead_id'], 'wpleads_currency_code', $geo_array['geoplugin_currencyCode'] ) : null;
204
- (isset($geo_array['geoplugin_currencySymbol_UTF8'])) ? update_post_meta( $lead_data['lead_id'], 'wpleads_currency_symbol', $geo_array['geoplugin_currencySymbol_UTF8'] ) : null;
205
  }
206
  }
207
 
208
  /* Store Conversion Data to Lead */
209
- $conversion_data = get_post_meta( $lead_data['lead_id'], 'wpleads_conversion_data', TRUE );
210
  $conversion_data = json_decode($conversion_data,true);
211
  $variation = $lead_data['variation'];
212
- if (is_array($conversion_data)){
213
  $c_count = count($conversion_data) + 1;
214
  $conversion_data[$c_count]['id'] = $lead_data['page_id'];
215
  $conversion_data[$c_count]['variation'] = $variation;
@@ -222,13 +271,13 @@ function inbound_store_lead( $args = array() ) {
222
  $conversion_data[$c_count]['first_time'] = 1;
223
 
224
  }
225
-
226
  $lead_data['conversion_data'] = json_encode($conversion_data);
227
- update_post_meta($lead_data['lead_id'],'wpleads_conversion_count', $c_count); // Store conversions count
228
- update_post_meta($lead_data['lead_id'], 'wpleads_conversion_data', $lead_data['conversion_data']); // Store conversion object
 
229
 
230
  /* Store Lead Referral Source Data */
231
- $referral_data = get_post_meta( $lead_data['lead_id'], 'wpleads_referral_data', TRUE );
232
  $referral_data = json_decode($referral_data,true);
233
  if (is_array($referral_data)){
234
  $r_count = count($referral_data) + 1;
@@ -240,26 +289,32 @@ function inbound_store_lead( $args = array() ) {
240
  $referral_data[1]['original_source'] = 1;
241
  }
242
  $lead_data['referral_data'] = json_encode($referral_data);
243
- update_post_meta($lead_data['lead_id'], 'wpleads_referral_data', $lead_data['referral_data']); // Store referral object
244
 
245
 
246
  /* Store Conversion Data to LANDING PAGE/CTA DATA */
247
- if ($lead_data['post_type'] == 'landing-page' || $lead_data['post_type'] == 'wp-call-to-action')
248
  {
249
  $page_conversion_data = get_post_meta( $lead_data['page_id'], 'inbound_conversion_data', TRUE );
250
  $page_conversion_data = json_decode($page_conversion_data,true);
251
  $version = ($lead_data['variation'] != 'default') ? $lead_data['variation'] : '0';
252
- if (is_array($page_conversion_data)){
 
 
253
  $convert_count = count($page_conversion_data) + 1;
254
- $page_conversion_data[$convert_count]['lead_id'] = $lead_data['lead_id'];
255
  $page_conversion_data[$convert_count]['variation'] = $version;
256
  $page_conversion_data[$convert_count]['datetime'] = $lead_data['wordpress_date_time'];
 
257
  } else {
 
258
  $convert_count = 1;
259
- $page_conversion_data[$convert_count]['lead_id'] = $lead_data['lead_id'];
260
  $page_conversion_data[$convert_count]['variation'] = $version;
261
  $page_conversion_data[$convert_count]['datetime'] = $lead_data['wordpress_date_time'];
 
262
  }
 
263
  $page_conversion_data = json_encode($page_conversion_data);
264
  update_post_meta($lead_data['page_id'], 'inbound_conversion_data', $page_conversion_data);
265
  }
@@ -267,8 +322,7 @@ function inbound_store_lead( $args = array() ) {
267
 
268
  /* Store page views for page tracking off */
269
  $page_tracking_status = get_option('wpl-main-page-view-tracking', 1);
270
- if($lead_data['page_views'] && $page_tracking_status == 0)
271
- {
272
  $page_view_data = get_post_meta( $lead_id, 'page_views', TRUE );
273
  $page_view_data = json_decode($page_view_data,true);
274
 
@@ -276,14 +330,13 @@ function inbound_store_lead( $args = array() ) {
276
  if (is_array($page_view_data)) {
277
  $new_page_views = inbound_json_array_merge( $page_view_data, $lead_data['page_views']);
278
  $page_views = json_encode($new_page_views);
279
-
280
  } else {
281
  // Create page_view meta if it doesn't exist
282
  $page_views = $lead_data['page_views'];
283
  $page_views = json_encode($page_views);
284
  }
285
  // View count
286
- $view_count = get_post_meta( $lead_data['lead_id'], 'wpleads_page_view_count', TRUE );
287
  if ($view_count){
288
  $page_view_count = $lead_data['page_view_count'] + $view_count;
289
  } else {
@@ -291,39 +344,44 @@ function inbound_store_lead( $args = array() ) {
291
  }
292
  // update meta
293
  if ($lead_data['page_view_count']){
294
- update_post_meta($lead_data['lead_id'],'wpleads_page_view_count', $page_view_count);
295
  }
296
- update_post_meta($lead_data['lead_id'], 'page_views', $page_views );
297
  }
298
 
299
-
300
  /* Raw Form Values Store */
301
- if ($lead_data['form_input_values']) {
302
- $raw_post_data = get_post_meta($lead_data['lead_id'],'wpleads_raw_post_data', true);
 
303
  $a1 = json_decode( $raw_post_data, true );
304
  $a2 = json_decode( stripslashes($lead_data['form_input_values']), true );
305
  $exclude_array = array('card_number','card_cvc','card_exp_month','card_exp_year'); // add filter
306
  $lead_mapping_fields = get_transient( 'wp-lead-fields' );
307
 
308
- foreach ($a2 as $key=>$value)
309
  {
310
  if (array_key_exists( $key , $exclude_array )) {
311
  unset($a2[$key]);
312
  continue;
313
  }
 
314
  if (array_key_exists($key, $lead_mapping_fields)) {
315
- update_post_meta( $lead_data['lead_id'], $key, $value );
316
  }
317
- if (stristr($key,'company')) {
318
- update_post_meta( $lead_data['lead_id'], 'wpleads_company_name', $value );
319
- } else if (stristr($key,'website')) {
320
- $websites = get_post_meta( $lead_data['lead_id'], 'wpleads_websites', $value );
 
 
 
 
321
  if(is_array($websites)) {
322
  $array_websites = explode(';',$websites);
323
  }
324
  $array_websites[] = $value;
325
  $websites = implode(';',$array_websites);
326
- update_post_meta( $lead_data['lead_id'], 'wpleads_websites', $websites );
327
  }
328
  }
329
  // Merge form fields if exist
@@ -333,10 +391,10 @@ function inbound_store_lead( $args = array() ) {
333
  $new_raw_post_data = $a2;
334
  }
335
  $new_raw_post_data = json_encode( $new_raw_post_data );
336
- update_post_meta( $lead_data['lead_id'],'wpleads_raw_post_data', $new_raw_post_data );
337
  }
338
 
339
- setcookie('wp_lead_id' , $lead_data['lead_id'], time() + (20 * 365 * 24 * 60 * 60),'/');
340
 
341
  do_action('inbound_store_lead_post', $lead_data );
342
  do_action('wp_cta_store_lead_post', $lead_data );
@@ -345,30 +403,92 @@ function inbound_store_lead( $args = array() ) {
345
 
346
  if (!$args) {
347
 
348
- echo $lead_data['lead_id'];
349
  die();
350
 
351
  } else {
352
 
353
- return $lead_data['lead_id'];
354
 
355
  }
356
  }
357
  }
358
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
359
  if (!function_exists('inbound_json_array_merge')) {
360
- function inbound_json_array_merge( $arr1, $arr2 ) {
361
- $keys = array_keys( $arr2 );
362
- foreach( $keys as $key ) {
363
- if( isset( $arr1[$key] )
364
- && is_array( $arr1[$key] )
365
- && is_array( $arr2[$key] )
366
- ) {
367
- $arr1[$key] = my_merge( $arr1[$key], $arr2[$key] );
368
- } else {
369
- $arr1[$key] = $arr2[$key];
370
- }
371
- }
372
- return $arr1;
 
373
  }
374
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  /**
3
  * Inbound Lead Storage
4
  *
5
+ * - Handles lead creation and data storage
6
  */
7
 
 
 
 
 
8
 
9
+ if (!function_exists('inbound_store_lead_search')) {
10
+
11
+ /* This AJAX listener listens for site searches that a lead performs */
12
+ add_action('wp_ajax_inbound_store_lead_search', 'inbound_store_lead_search');
13
+ add_action('wp_ajax_nopriv_inbound_store_lead_search', 'inbound_store_lead_search');
14
+ function inbound_store_lead_search($args = array()) {
15
+ global $wpdb;
16
+
17
+ $search = (isset($_POST['search_data'] )) ? $_POST['search_data'] : null; // mapped data
18
+ $email = (isset($_POST['email'] )) ? $_POST['email'] : null; // mapped data
19
+ $date = (isset($_POST['date'] )) ? $_POST['date'] : null; // mapped data
20
+
21
+ if ( ( isset( $email ) && !empty( $email ) && strstr( $email ,'@') ))
22
+ {
23
+ $query = $wpdb->prepare(
24
+ 'SELECT ID FROM ' . $wpdb->posts . '
25
+ WHERE post_title = %s
26
+ AND post_type = \'wp-lead\'',
27
+ $email
28
+ );
29
+
30
+ $wpdb->query( $query );
31
 
32
+ // Add lookup fallbacks
33
+ if ( $wpdb->num_rows )
34
+ {
35
+ /* Update Existing Lead */
36
+ $lead_id = $wpdb->get_var( $query );
37
+ //update_post_meta($lead_id, 'wpleads_search_data', ""); // Store search object
38
+ /* Store Search History Data */
39
+ $count = 1;
40
+ $search_array = array();
41
+ foreach ($search as $key => $value) {
42
+ $search_array[$count] = array( 'date' => $search[$count]['date'],
43
+ 'value' => $search[$count]['value']);
44
+ $count++;
45
+ }
46
 
47
+ $search_data = get_post_meta( $lead_id, 'wpleads_search_data', TRUE );
48
+ $search_data = json_decode($search_data,true);
49
+ if (is_array($search_data)){
50
+ $s_count = count($search_data) + 1;
51
+ $loop_count = 1;
52
+ foreach ($search as $key => $value) {
53
+ $search_data[$s_count]['date'] = $search[$loop_count]['date'];
54
+ $search_data[$s_count]['value'] = $search[$loop_count]['value'];
55
+ $s_count++; $loop_count++;
56
+ }
57
+ } else {
58
+ // Create search obj
59
+ $s_count = 1;
60
+ $loop_count = 1;
61
+ foreach ($search as $key => $value) {
62
+ $search_data[$s_count]['date'] = $search[$loop_count]['date'];
63
+ $search_data[$s_count]['value'] = $search[$loop_count]['value'];
64
+ $s_count++; $loop_count++;
65
+ }
66
+ }
67
+ $search_data = json_encode($search_data);
68
+ update_post_meta($lead_id, 'wpleads_search_data', $search_data); // Store search object
69
+
70
+ }
71
 
72
+ }
73
  }
74
  }
75
 
 
 
 
 
 
 
 
 
 
76
  if (!function_exists('inbound_store_lead')) {
77
 
78
  add_action('wp_ajax_inbound_store_lead', 'inbound_store_lead');
96
  $lead_data['page_id'] = (array_key_exists('page_id', $mapped_data)) ? $mapped_data['page_id'] : '0';
97
  $lead_data['lp_id'] = (array_key_exists('page_id', $mapped_data)) ? $mapped_data['page_id'] : '0'; //legacy for landing pages
98
  $lead_data['variation'] = (array_key_exists('variation', $mapped_data)) ? $mapped_data['variation'] : '0';
99
+ $lead_data['lp_variation'] = (array_key_exists('variation', $mapped_data)) ? $mapped_data['variation'] : '0'; //legacy for landing pages
100
  $lead_data['post_type'] = (array_key_exists('post_type', $mapped_data)) ? $mapped_data['post_type'] : 'na';
101
  $lead_data['wp_lead_uid'] = (array_key_exists('wp_lead_uid', $mapped_data)) ? $mapped_data['wp_lead_uid'] : false;
102
  $lead_data['lead_lists'] = (array_key_exists('leads_list', $mapped_data)) ? explode(",", $mapped_data['leads_list']) : false;
103
  $lead_data['ip_address'] = (array_key_exists('ip_address', $mapped_data)) ? $mapped_data['ip_address'] : false;
104
+
105
+ /* POST Vars */
106
+ $raw_search_data = (isset($_POST['Search_Data'])) ? $_POST['Search_Data'] : false;
107
+ $search_data = json_decode(stripslashes($raw_search_data), true ); // mapped data array
108
+ $lead_data['search_data'] = $search_data;
109
  $lead_data['email'] = (isset($_POST['emailTo'])) ? $_POST['emailTo'] : false;
110
+ $lead_data['wpleads_full_name'] = (isset($_POST['full_name'])) ? $_POST['full_name'] : "";
111
+ $lead_data['wpleads_first_name'] = (isset($_POST['first_name'])) ? $_POST['first_name'] : "";
112
+ $lead_data['first_name'] = (isset($_POST['first_name'])) ? $_POST['first_name'] : "";
113
+ $lead_data['wpleads_last_name'] = (isset($_POST['last_name'])) ? $_POST['last_name'] : "";
114
+ $lead_data['last_name'] = (isset($_POST['last_name'])) ? $_POST['last_name'] : "";
115
+ $lead_data['wpleads_company_name'] = (isset($_POST['company_name'] )) ? $_POST['company_name'] : "";
116
+ $lead_data['wpleads_mobile_phone'] = (isset($_POST['phone'])) ? $_POST['phone'] : "";
117
+ $lead_data['wpleads_address_line_1'] = (isset($_POST['address'])) ? $_POST['address'] : "";
118
 
119
 
120
  /* NEW MAPPING Loop In Progress */
149
  do_action('inbound_store_lead_pre' , $lead_data); // Global lead storage action hook
150
 
151
  // check for set email
152
+ if ( ( isset( $lead_data['wpleads_email_address'] ) && !empty( $lead_data['wpleads_email_address'] ) && strstr( $lead_data['wpleads_email_address'] ,'@') ))
153
+ {
154
  $query = $wpdb->prepare(
155
  'SELECT ID FROM ' . $wpdb->posts . '
156
  WHERE post_title = %s
159
  );
160
  $wpdb->query( $query );
161
 
162
+ /* Update Lead if Exists else Create New Lead */
163
+ if ( $wpdb->num_rows )
164
+ {
165
+ /* Update Existing Lead */
166
  $lead_data['lead_id'] = $wpdb->get_var( $query );
167
+ $lead_id = $lead_data['lead_id'];
168
+ inbound_update_common_meta($lead_data);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
169
 
170
+ do_action('wpleads_existing_lead_insert',$lead_id); // action hook on existing leads only
171
+
172
+ }
173
+ else
174
+ {
175
+ /* Create New Lead */
176
  $post = array(
177
  'post_title' => $lead_data['wpleads_email_address'],
178
  //'post_content' => $json,
183
 
184
  //$post = add_filter('lp_leads_post_vars',$post);
185
  $lead_data['lead_id'] = wp_insert_post($post);
186
+ $lead_id = $lead_data['lead_id'];
187
+ update_post_meta( $lead_id, 'wpleads_wordpress_user_id', $user_ID );
 
 
 
 
 
 
 
 
 
 
 
 
188
 
189
+ /* updates common meta for new leads */
190
+ inbound_update_common_meta($lead_data);
191
 
192
+ /* specific updates for new leads */
193
+ update_post_meta( $lead_id, 'wpleads_email_address', $lead_data['wpleads_email_address'] );
194
+ update_post_meta( $lead_id, 'page_views', $lead_data['page_views'] ); /* Store Page Views Object */
195
+ update_post_meta( $lead_id, 'wpleads_page_view_count', $lead_data['page_view_count']);
 
196
 
197
+ do_action('wpleads_new_lead_insert',$lead_id); // action hook on new leads only
198
  }
199
 
200
  /***
201
  * Run Processes for all Leads below
202
  ***/
203
+ do_action('wpleads_after_conversion_lead_insert',$lead_id); // action hook on all lead inserts
204
 
205
+ update_post_meta( $lead_id, 'wpleads_inbound_form_mapped_data', $lead_data['Mapped_Data']);
206
 
207
  /* Add Leads to List on creation */
208
  if(!empty($lead_data['lead_lists']) && is_array($lead_data['lead_lists'])){
209
+ add_lead_lists_ajax($lead_id, $lead_data['lead_lists'], 'wplead_list_category');
210
+ }
211
+
212
+ /* Store past search history */
213
+ if($lead_data['search_data']){
214
+ $search = $lead_data['search_data'];
215
+ $search_data = get_post_meta( $lead_id, 'wpleads_search_data', TRUE );
216
+ $search_data = json_decode($search_data,true);
217
+ if (is_array($search_data)){
218
+ $s_count = count($search_data) + 1;
219
+ $loop_count = 1;
220
+ foreach ($search as $key => $value) {
221
+ $search_data[$s_count]['date'] = $search[$loop_count]['date'];
222
+ $search_data[$s_count]['value'] = $search[$loop_count]['value'];
223
+ $s_count++; $loop_count++;
224
+ }
225
+ } else {
226
+ // Create search obj
227
+ $s_count = 1;
228
+ $loop_count = 1;
229
+ foreach ($search as $key => $value) {
230
+ $search_data[$s_count]['date'] = $search[$loop_count]['date'];
231
+ $search_data[$s_count]['value'] = $search[$loop_count]['value'];
232
+ $s_count++; $loop_count++;
233
+ }
234
+ }
235
+ $search_data = json_encode($search_data);
236
+ update_post_meta($lead_id, 'wpleads_search_data', $search_data); // Store search object
237
  }
238
 
239
  /* Store IP addresss & Store GEO Data */
240
+ if ($lead_data['ip_address']) {
241
+ update_post_meta( $lead_id, 'wpleads_ip_address', $lead_data['ip_address'] );
242
  if ($lead_data['ip_address'] != "127.0.0.1"){ // exclude localhost
243
  $geo_array = unserialize(wp_remote_get('http://www.geoplugin.net/php.gp?ip='.$lead_data['ip_address']));
244
+ (isset($geo_array['geoplugin_areaCode'])) ? update_post_meta( $lead_id, 'wpleads_areaCode', $geo_array['geoplugin_areaCode'] ) : null;
245
+ (isset($geo_array['geoplugin_city'])) ? update_post_meta( $lead_id, 'wpleads_city', $geo_array['geoplugin_city'] ) : null;
246
+ (isset($geo_array['geoplugin_regionName'])) ? update_post_meta( $lead_id, 'wpleads_region_name', $geo_array['geoplugin_regionName'] ) : null;
247
+ (isset($geo_array['geoplugin_regionCode'])) ? update_post_meta( $lead_id, 'wpleads_region_code', $geo_array['geoplugin_regionCode'] ) : null;
248
+ (isset($geo_array['geoplugin_countryName'])) ? update_post_meta( $lead_id, 'wpleads_country_name', $geo_array['geoplugin_countryName'] ) : null;
249
+ (isset($geo_array['geoplugin_countryCode'])) ? update_post_meta( $lead_id, 'wpleads_country_code', $geo_array['geoplugin_countryCode'] ) : null;
250
+ (isset($geo_array['geoplugin_latitude'])) ? update_post_meta( $lead_id, 'wpleads_latitude', $geo_array['geoplugin_latitude'] ) : null;
251
+ (isset($geo_array['geoplugin_longitude'])) ? update_post_meta( $lead_id, 'wpleads_longitude', $geo_array['geoplugin_longitude'] ) : null;
252
+ (isset($geo_array['geoplugin_currencyCode'])) ? update_post_meta( $lead_id, 'wpleads_currency_code', $geo_array['geoplugin_currencyCode'] ) : null;
253
+ (isset($geo_array['geoplugin_currencySymbol_UTF8'])) ? update_post_meta( $lead_id, 'wpleads_currency_symbol', $geo_array['geoplugin_currencySymbol_UTF8'] ) : null;
254
  }
255
  }
256
 
257
  /* Store Conversion Data to Lead */
258
+ $conversion_data = get_post_meta( $lead_id, 'wpleads_conversion_data', TRUE );
259
  $conversion_data = json_decode($conversion_data,true);
260
  $variation = $lead_data['variation'];
261
+ if (is_array($conversion_data)) {
262
  $c_count = count($conversion_data) + 1;
263
  $conversion_data[$c_count]['id'] = $lead_data['page_id'];
264
  $conversion_data[$c_count]['variation'] = $variation;
271
  $conversion_data[$c_count]['first_time'] = 1;
272
 
273
  }
 
274
  $lead_data['conversion_data'] = json_encode($conversion_data);
275
+ update_post_meta($lead_id,'wpleads_conversion_count', $c_count); // Store conversions count
276
+ update_post_meta($lead_id, 'wpleads_conversion_data', $lead_data['conversion_data']); // Store conversion object
277
+
278
 
279
  /* Store Lead Referral Source Data */
280
+ $referral_data = get_post_meta( $lead_id, 'wpleads_referral_data', TRUE );
281
  $referral_data = json_decode($referral_data,true);
282
  if (is_array($referral_data)){
283
  $r_count = count($referral_data) + 1;
289
  $referral_data[1]['original_source'] = 1;
290
  }
291
  $lead_data['referral_data'] = json_encode($referral_data);
292
+ update_post_meta($lead_id, 'wpleads_referral_data', $lead_data['referral_data']); // Store referral object
293
 
294
 
295
  /* Store Conversion Data to LANDING PAGE/CTA DATA */
296
+ if ($lead_data['post_type'] == 'landing-page' || $lead_data['post_type'] == 'wp-call-to-action')
297
  {
298
  $page_conversion_data = get_post_meta( $lead_data['page_id'], 'inbound_conversion_data', TRUE );
299
  $page_conversion_data = json_decode($page_conversion_data,true);
300
  $version = ($lead_data['variation'] != 'default') ? $lead_data['variation'] : '0';
301
+
302
+ if (is_array($page_conversion_data))
303
+ {
304
  $convert_count = count($page_conversion_data) + 1;
305
+ $page_conversion_data[$convert_count]['lead_id'] = $lead_id;
306
  $page_conversion_data[$convert_count]['variation'] = $version;
307
  $page_conversion_data[$convert_count]['datetime'] = $lead_data['wordpress_date_time'];
308
+
309
  } else {
310
+
311
  $convert_count = 1;
312
+ $page_conversion_data[$convert_count]['lead_id'] = $lead_id;
313
  $page_conversion_data[$convert_count]['variation'] = $version;
314
  $page_conversion_data[$convert_count]['datetime'] = $lead_data['wordpress_date_time'];
315
+
316
  }
317
+
318
  $page_conversion_data = json_encode($page_conversion_data);
319
  update_post_meta($lead_data['page_id'], 'inbound_conversion_data', $page_conversion_data);
320
  }
322
 
323
  /* Store page views for page tracking off */
324
  $page_tracking_status = get_option('wpl-main-page-view-tracking', 1);
325
+ if($lead_data['page_views'] && $page_tracking_status == 0) {
 
326
  $page_view_data = get_post_meta( $lead_id, 'page_views', TRUE );
327
  $page_view_data = json_decode($page_view_data,true);
328
 
330
  if (is_array($page_view_data)) {
331
  $new_page_views = inbound_json_array_merge( $page_view_data, $lead_data['page_views']);
332
  $page_views = json_encode($new_page_views);
 
333
  } else {
334
  // Create page_view meta if it doesn't exist
335
  $page_views = $lead_data['page_views'];
336
  $page_views = json_encode($page_views);
337
  }
338
  // View count
339
+ $view_count = get_post_meta( $lead_id, 'wpleads_page_view_count', TRUE );
340
  if ($view_count){
341
  $page_view_count = $lead_data['page_view_count'] + $view_count;
342
  } else {
344
  }
345
  // update meta
346
  if ($lead_data['page_view_count']){
347
+ update_post_meta($lead_id,'wpleads_page_view_count', $page_view_count);
348
  }
349
+ update_post_meta($lead_id, 'page_views', $page_views );
350
  }
351
 
 
352
  /* Raw Form Values Store */
353
+ if ($lead_data['form_input_values'])
354
+ {
355
+ $raw_post_data = get_post_meta($lead_id,'wpleads_raw_post_data', true);
356
  $a1 = json_decode( $raw_post_data, true );
357
  $a2 = json_decode( stripslashes($lead_data['form_input_values']), true );
358
  $exclude_array = array('card_number','card_cvc','card_exp_month','card_exp_year'); // add filter
359
  $lead_mapping_fields = get_transient( 'wp-lead-fields' );
360
 
361
+ foreach ($a2 as $key=>$value)
362
  {
363
  if (array_key_exists( $key , $exclude_array )) {
364
  unset($a2[$key]);
365
  continue;
366
  }
367
+
368
  if (array_key_exists($key, $lead_mapping_fields)) {
369
+ update_post_meta( $lead_id, $key, $value );
370
  }
371
+
372
+ if (stristr($key,'company'))
373
+ {
374
+ update_post_meta( $lead_id, 'wpleads_company_name', $value );
375
+ }
376
+ else if (stristr($key,'website'))
377
+ {
378
+ $websites = get_post_meta( $lead_id, 'wpleads_websites', $value );
379
  if(is_array($websites)) {
380
  $array_websites = explode(';',$websites);
381
  }
382
  $array_websites[] = $value;
383
  $websites = implode(';',$array_websites);
384
+ update_post_meta( $lead_id, 'wpleads_websites', $websites );
385
  }
386
  }
387
  // Merge form fields if exist
391
  $new_raw_post_data = $a2;
392
  }
393
  $new_raw_post_data = json_encode( $new_raw_post_data );
394
+ update_post_meta( $lead_id,'wpleads_raw_post_data', $new_raw_post_data );
395
  }
396
 
397
+ setcookie('wp_lead_id' , $lead_id, time() + (20 * 365 * 24 * 60 * 60),'/');
398
 
399
  do_action('inbound_store_lead_post', $lead_data );
400
  do_action('wp_cta_store_lead_post', $lead_data );
403
 
404
  if (!$args) {
405
 
406
+ echo $lead_id;
407
  die();
408
 
409
  } else {
410
 
411
+ return $lead_id;
412
 
413
  }
414
  }
415
  }
416
  }
417
+
418
+
419
+ if (!function_exists('inbound_update_common_meta'))
420
+ {
421
+ function inbound_update_common_meta($lead_data)
422
+ {
423
+ if (!empty($lead_data['user_ID'])) {
424
+ update_post_meta( $lead_data['lead_id'], 'wpleads_wordpress_user_id', $lead_data['user_ID'] );
425
+ }
426
+ if (!empty($lead_data['wpleads_first_name'])) {
427
+ update_post_meta( $lead_data['lead_id'], 'wpleads_first_name', $lead_data['wpleads_first_name'] );
428
+ }
429
+ if (!empty($lead_data['wpleads_last_name'])) {
430
+ update_post_meta( $lead_data['lead_id'], 'wpleads_last_name', $lead_data['wpleads_last_name'] );
431
+ }
432
+ if (!empty($lead_data['wpleads_mobile_phone'])) {
433
+ update_post_meta( $lead_data['lead_id'], 'wpleads_work_phone', $lead_data['wpleads_mobile_phone'] );
434
+ }
435
+ if (!empty($lead_data['wpleads_company_name'])) {
436
+ update_post_meta( $lead_data['lead_id'], 'wpleads_company_name', $lead_data['wpleads_company_name'] );
437
+ }
438
+ if (!empty($lead_data['wpleads_address_line_1'])) {
439
+ update_post_meta( $lead_data['lead_id'], 'wpleads_address_line_1', $lead_data['wpleads_address_line_1'] );
440
+ }
441
+ if (!empty($lead_data['wp_lead_uid'])) {
442
+ update_post_meta( $lead_data['lead_id'], 'wp_leads_uid', $lead_data['wp_lead_uid'] );
443
+ }
444
+ }
445
+ }
446
+
447
  if (!function_exists('inbound_json_array_merge')) {
448
+ function inbound_json_array_merge( $arr1, $arr2 ) {
449
+ $keys = array_keys( $arr2 );
450
+ foreach( $keys as $key ) {
451
+ if( isset( $arr1[$key] )
452
+ && is_array( $arr1[$key] )
453
+ && is_array( $arr2[$key] )
454
+ ) {
455
+ $arr1[$key] = my_merge( $arr1[$key], $arr2[$key] );
456
+ } else {
457
+ $arr1[$key] = $arr2[$key];
458
+ }
459
+ }
460
+ return $arr1;
461
+ }
462
  }
463
+
464
+
465
+
466
+ /* Custom Mappings coming soon
467
+ add_filter('inboundnow_custom_map_values_filter', 'inbound_map_custom_fields', 10, 1);
468
+ if (!function_exists('inbound_map_custom_fields')) {
469
+ function inbound_map_custom_fields($custom_map_values) {
470
+
471
+ $new_fields = array(
472
+ 'field_label' => 'Timmmm Company',
473
+ 'field_name' => 'wpleads_ip_addressy',
474
+ 'map_to' => 'wpleads_ip_address'
475
+ );
476
+
477
+ foreach ($new_fields as $key => $value) {
478
+ array_push($custom_map_values, $new_fields[$key]);
479
+ }
480
+
481
+ return $custom_map_values;
482
+
483
+ }
484
+ }
485
+
486
+ add_action('wp_head', 'custom_js_insert');
487
+ function custom_js_insert() { ?>
488
+ <script type="text/javascript">
489
+ // Ensure global inbound_data has been initialized.
490
+ var inbound_data = inbound_data || {};
491
+ inbound_data['custom_map_val'] = 'hi hi hi';
492
+ </script>
493
+ <?php }
494
+ */
templates/countdown-lander/assets/css/styles.css CHANGED
@@ -19,7 +19,7 @@ body{
19
  font:14px/1.3 'Segoe UI',Arial, sans-serif;
20
  /* margin: 0px; */
21
  }
22
- #page-wrapper {padding:100px 0px 0px 0px;}
23
  a, a:visited {
24
  text-decoration:none;
25
  outline:none;
@@ -74,6 +74,9 @@ padding-bottom: 20px;
74
  width: 400px;
75
  text-align: center;
76
  }
 
 
 
77
  #lp_container {display: inline-block;
78
  width: 350px;}
79
  /*----------------------------
@@ -153,8 +156,8 @@ clear: both;
153
  color:red;
154
  }
155
 
156
- input[type="text"], input[type="email"] {
157
- width:60%;
158
  font-family: 'Lato', Calibri, Arial, sans-serif;
159
  font-size: 13px;
160
  font-weight: 400;
@@ -162,7 +165,7 @@ display: block;
162
  padding: 5px;
163
  margin-bottom: 5px;
164
  float: left;
165
- margin-left: 10px;
166
  border: 3px solid #EBE6E2;
167
  border-radius: 5px;
168
  -webkit-transition: all 0.3s ease-out;
@@ -171,7 +174,7 @@ border-radius: 5px;
171
  -o-transition: all 0.3s ease-out;
172
  transition: all 0.3s ease-out;
173
  display: inline-block;
174
- }
175
  input[type="text"]:hover, input[type="email"]:hover {
176
  border-color: #CCC;
177
  }/*
@@ -184,27 +187,25 @@ border-color: #CCC;
184
  transition: all 0.3s ease-out; */
185
  /*
186
  input[type="text"]:hover { border-radius: 8px; }
187
- input[type="text"]:focus {
188
  outline: none;
189
- border-radius: 8px;
190
  border-color: #EBD292;
191
  }
192
- */
193
  .lp_form_field {
194
  margin-bottom: 5px;
195
  overflow: auto;
196
  }
197
  label {
198
- width:80px;
199
- float: left;
200
- display: inline-block;
201
  padding-top: 9px;
202
  text-align: left;
203
  font-size: 18px;
204
  letter-spacing: 1px;
205
  text-shadow: 0 1px 0 black;
206
  font-weight: 700;}
207
- input[type="submit"] {
208
  width: 80%;
209
  padding: 8px 5px;
210
  background: #11b709;
@@ -228,4 +229,5 @@ text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
228
  font-size: 22px;
229
  font-weight: bold;
230
  font-family: 'Raleway', 'Lato', Arial, sans-serif;
 
231
  }
19
  font:14px/1.3 'Segoe UI',Arial, sans-serif;
20
  /* margin: 0px; */
21
  }
22
+ #page-wrapper {padding:40px 0px 0px 0px;}
23
  a, a:visited {
24
  text-decoration:none;
25
  outline:none;
74
  width: 400px;
75
  text-align: center;
76
  }
77
+ #content-wrapper {
78
+ margin-bottom: 80px;
79
+ }
80
  #lp_container {display: inline-block;
81
  width: 350px;}
82
  /*----------------------------
156
  color:red;
157
  }
158
 
159
+ input[type="text"], input[type="email"], #inbound-form-wrapper input[type=text], #inbound-form-wrapper input[type=url], #inbound-form-wrapper input[type=email], #inbound-form-wrapper input[type=tel], #inbound-form-wrapper input[type=number], #inbound-form-wrapper input[type=password] {
160
+ width:95%;
161
  font-family: 'Lato', Calibri, Arial, sans-serif;
162
  font-size: 13px;
163
  font-weight: 400;
165
  padding: 5px;
166
  margin-bottom: 5px;
167
  float: left;
168
+ margin-left: 0px;
169
  border: 3px solid #EBE6E2;
170
  border-radius: 5px;
171
  -webkit-transition: all 0.3s ease-out;
174
  -o-transition: all 0.3s ease-out;
175
  transition: all 0.3s ease-out;
176
  display: inline-block;
177
+ }
178
  input[type="text"]:hover, input[type="email"]:hover {
179
  border-color: #CCC;
180
  }/*
187
  transition: all 0.3s ease-out; */
188
  /*
189
  input[type="text"]:hover { border-radius: 8px; }
190
+ input[type="text"]:focus {
191
  outline: none;
192
+ border-radius: 8px;
193
  border-color: #EBD292;
194
  }
195
+ */
196
  .lp_form_field {
197
  margin-bottom: 5px;
198
  overflow: auto;
199
  }
200
  label {
201
+
 
 
202
  padding-top: 9px;
203
  text-align: left;
204
  font-size: 18px;
205
  letter-spacing: 1px;
206
  text-shadow: 0 1px 0 black;
207
  font-weight: 700;}
208
+ input[type="submit"], button[type="submit"] {
209
  width: 80%;
210
  padding: 8px 5px;
211
  background: #11b709;
229
  font-size: 22px;
230
  font-weight: bold;
231
  font-family: 'Raleway', 'Lato', Arial, sans-serif;
232
+ margin-top: 15px;
233
  }
templates/countdown-lander/index.php CHANGED
@@ -1,4 +1,4 @@
1
- <?php
2
  /*****************************************/
3
  // Template Title: Countdown Lander Template
4
  // Plugin: Landing Pages - Inboundnow.com
@@ -8,7 +8,7 @@
8
  include_once(LANDINGPAGES_PATH.'libraries/library.shareme.php');
9
 
10
  /* Declare Template Key */
11
- $key = lp_get_parent_directory(dirname(__FILE__));
12
  $path = LANDINGPAGES_URLPATH.'templates/'.$key.'/';
13
  $url = plugins_url();
14
  /* Define Landing Pages's custom pre-load hook for 3rd party plugin integration */
@@ -16,20 +16,20 @@ do_action('lp_init');
16
 
17
  /* Load $post data */
18
  if (have_posts()) : while (have_posts()) : the_post();
19
-
20
  /* Pre-load meta data into variables */
21
- $body_color = lp_get_value($post, $key, 'body-color');
22
  $headline_color = lp_get_value($post, $key, 'headline-color');
23
  $text_color = lp_get_value($post, $key, 'other-text-color');
24
  $content_color = lp_get_value($post, $key, 'content-background');
25
  $background_on = lp_get_value($post, $key, 'background-on');
26
-
27
- $date_picker = lp_get_value($post, $key, 'date-picker');
28
- $social_display = lp_get_value($post, $key, 'display-social');
29
- $countdown_message = lp_get_value($post, $key, 'countdown-message');
30
  $bg_image = lp_get_value($post, $key, 'bg-image');
31
- $submit_button_color = lp_get_value($post, $key, 'submit-button-color');
32
-
33
  // Date Formatting
34
  $new_value = str_replace('-',' ', $date_picker);
35
  $js_date = str_replace(':',' ', $new_value);
@@ -37,12 +37,12 @@ if (have_posts()) : while (have_posts()) : the_post();
37
  $arr = preg_split('/\s+/', $res, 6);
38
  $imploded = implode(',', array_slice($arr, 0, 5));
39
  $date_array = explode(",", $imploded);
40
-
41
  // Convert Hex to RGB Value for submit button
42
  function lp_Hex_2_RGB($hex) {
43
  $hex = @preg_replace("/#/", "", $hex);
44
  $color = array();
45
-
46
  if(strlen($hex) == 3) {
47
  $color['r'] = hexdec(substr($hex, 0, 1) . $r);
48
  $color['g'] = hexdec(substr($hex, 1, 1) . $g);
@@ -53,9 +53,9 @@ function lp_Hex_2_RGB($hex) {
53
  $color['g'] = hexdec(substr($hex, 2, 2));
54
  $color['b'] = hexdec(substr($hex, 4, 2));
55
  }
56
-
57
  return $color;
58
-
59
  }
60
  $RBG_array = lp_Hex_2_RGB($submit_button_color);
61
  $red = $RBG_array['r'];
@@ -76,7 +76,7 @@ $content = lp_content_area($post,null,true);
76
  wp_head(); // Load Regular WP Head
77
  do_action('lp_head'); // Load Custom Landing Page Specific Header Items
78
  ?>
79
-
80
  <!-- Our CSS stylesheet file -->
81
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300" />
82
  <link rel="stylesheet" href="<?php echo $path; ?>assets/css/styles.css" />
@@ -86,8 +86,8 @@ $content = lp_content_area($post,null,true);
86
 
87
  <?php if ($bg_image != "") { ?>
88
  html { background: none;}
89
-
90
- body { background: url(<?php echo $bg_image; ?>) no-repeat center center fixed;
91
  -webkit-background-size: cover;
92
  -moz-background-size: cover;
93
  -o-background-size: cover;
@@ -96,10 +96,10 @@ body { background: url(<?php echo $bg_image; ?>) no-repeat center center fixed;
96
  ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php echo $bg_image; ?>', sizingMethod='scale')";}
97
  <?php } ?>
98
 
99
- <?php if ($text_color != "") { echo "p, #note, label, #lp_container { color: #$text_color;}
100
  .countDiv::before, .countDiv::after {
101
- background-color: #$text_color;} "; } ?>
102
- <?php if ($headline_color != "") { echo "h1 {color: #$headline_color;}"; } ?>
103
  <?php if ($background_on === "on") { echo "#content-background{background: url('".$path."image.php?hex=$content_color');}"; }?>
104
  <?php if ($submit_button_color != "") {
105
  echo"input[type='submit'] {
@@ -111,15 +111,21 @@ body { background: url(<?php echo $bg_image; ?>) no-repeat center center fixed;
111
  background: linear-gradient(rgba($red,$green,$blue, 0.5), rgba($red,$green,$blue, 0.7));
112
  border: 1px solid #000;}";
113
  }
114
- ?>
 
 
 
 
 
 
115
  </style>
116
  <!--[if lt IE 9]>
117
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
118
  <![endif]-->
119
  </head>
120
-
121
  <body <?php lp_body_class();?>>
122
- <div id="page-wrapper">
123
  <div id="heading-area">
124
  <h1><?php lp_main_headline(); ?></h1>
125
  </div>
@@ -135,13 +141,13 @@ body { background: url(<?php echo $bg_image; ?>) no-repeat center center fixed;
135
  <?php echo $content;?>
136
  </div> <!-- end content area -->
137
  </div>
138
- </div>
139
- </div>
140
- <?php if ($social_display==="1" ) { // Show Social Media Icons?>
141
  <footer>
142
 
143
 
144
- <?php lp_social_media(); // print out social media buttons?>
145
  <style type="text/css">
146
  #lp-social-buttons {width: 517px;
147
  margin: auto;
@@ -161,59 +167,59 @@ width: 106px;}
161
  margin-right: -14px;
162
  }</style>
163
  </footer>
164
- <?php } ?>
165
  <!-- JavaScript includes -->
166
-
167
  <script src="<?php echo $path; ?>assets/countdown/jquery.countdown.js"></script>
168
-
169
  <script>
170
  jQuery(function(){
171
-
172
  var note = jQuery('#note'),
173
  // year, month-1, date
174
  ts = new Date(<?php if (isset($date_array[0])) { echo $date_array[0] ; } ?>,<?php if (isset($date_array[1])) { echo $date_array[1] - 1 ; } ?>,<?php if (isset($date_array[2])) { echo $date_array[2] ; } ?><?php if ($date_array[3] != "") { echo "," . $date_array[3] ; } ?>),
175
  newYear = false;
176
-
177
  jQuery('#countdown').countdown({
178
  timestamp : ts,
179
  callback : function(days, hours, minutes, seconds){
180
-
181
  var message = "";
182
-
183
  message += days + " day" + ( days==1 ? '':'s' ) + ", ";
184
  message += hours + " hour" + ( hours==1 ? '':'s' ) + ", ";
185
  message += minutes + " minute" + ( minutes==1 ? '':'s' ) + " and ";
186
  message += seconds + " second" + ( seconds==1 ? '':'s' ) + " <br />";
187
-
188
  if(newYear){
189
  message += "left until the new year!";
190
  }
191
  else {
192
  message += "until <?php echo $countdown_message;?>";
193
  }
194
-
195
  note.html(message);
196
  }
197
  });
198
-
199
  });
200
  /*jQuery.fn.center = function () {
201
  this.css("position","absolute");
202
- this.css("top", Math.max(0, ((jQuery(window).height() - this.outerHeight()) / 2) +
203
  jQuery(window).scrollTop()) + "px");
204
- this.css("left", Math.max(0, ((jQuery(window).width() - this.outerWidth()) / 2) +
205
  jQuery(window).scrollLeft()) + "px");
206
  return this;
207
  }
208
  jQuery('#lp_container').center();*/
209
  </script>
210
- <?php
211
- break; endwhile; endif;
212
 
213
  do_action('lp_footer');
214
  wp_footer();
215
- ?>
216
- </div>
217
 
218
 
219
  </body>
1
+ <?php
2
  /*****************************************/
3
  // Template Title: Countdown Lander Template
4
  // Plugin: Landing Pages - Inboundnow.com
8
  include_once(LANDINGPAGES_PATH.'libraries/library.shareme.php');
9
 
10
  /* Declare Template Key */
11
+ $key = lp_get_parent_directory(dirname(__FILE__));
12
  $path = LANDINGPAGES_URLPATH.'templates/'.$key.'/';
13
  $url = plugins_url();
14
  /* Define Landing Pages's custom pre-load hook for 3rd party plugin integration */
16
 
17
  /* Load $post data */
18
  if (have_posts()) : while (have_posts()) : the_post();
19
+
20
  /* Pre-load meta data into variables */
21
+ $body_color = lp_get_value($post, $key, 'body-color');
22
  $headline_color = lp_get_value($post, $key, 'headline-color');
23
  $text_color = lp_get_value($post, $key, 'other-text-color');
24
  $content_color = lp_get_value($post, $key, 'content-background');
25
  $background_on = lp_get_value($post, $key, 'background-on');
26
+
27
+ $date_picker = lp_get_value($post, $key, 'date-picker');
28
+ $social_display = lp_get_value($post, $key, 'display-social');
29
+ $countdown_message = lp_get_value($post, $key, 'countdown-message');
30
  $bg_image = lp_get_value($post, $key, 'bg-image');
31
+ $submit_button_color = lp_get_value($post, $key, 'submit-button-color');
32
+
33
  // Date Formatting
34
  $new_value = str_replace('-',' ', $date_picker);
35
  $js_date = str_replace(':',' ', $new_value);
37
  $arr = preg_split('/\s+/', $res, 6);
38
  $imploded = implode(',', array_slice($arr, 0, 5));
39
  $date_array = explode(",", $imploded);
40
+
41
  // Convert Hex to RGB Value for submit button
42
  function lp_Hex_2_RGB($hex) {
43
  $hex = @preg_replace("/#/", "", $hex);
44
  $color = array();
45
+
46
  if(strlen($hex) == 3) {
47
  $color['r'] = hexdec(substr($hex, 0, 1) . $r);
48
  $color['g'] = hexdec(substr($hex, 1, 1) . $g);
53
  $color['g'] = hexdec(substr($hex, 2, 2));
54
  $color['b'] = hexdec(substr($hex, 4, 2));
55
  }
56
+
57
  return $color;
58
+
59
  }
60
  $RBG_array = lp_Hex_2_RGB($submit_button_color);
61
  $red = $RBG_array['r'];
76
  wp_head(); // Load Regular WP Head
77
  do_action('lp_head'); // Load Custom Landing Page Specific Header Items
78
  ?>
79
+
80
  <!-- Our CSS stylesheet file -->
81
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300" />
82
  <link rel="stylesheet" href="<?php echo $path; ?>assets/css/styles.css" />
86
 
87
  <?php if ($bg_image != "") { ?>
88
  html { background: none;}
89
+
90
+ body { background: url(<?php echo $bg_image; ?>) no-repeat center center fixed;
91
  -webkit-background-size: cover;
92
  -moz-background-size: cover;
93
  -o-background-size: cover;
96
  ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php echo $bg_image; ?>', sizingMethod='scale')";}
97
  <?php } ?>
98
 
99
+ <?php if ($text_color != "") { echo "p, #note, label, #lp_container { color: #$text_color;}
100
  .countDiv::before, .countDiv::after {
101
+ background-color: #$text_color;} "; } ?>
102
+ <?php if ($headline_color != "") { echo "h1 {color: #$headline_color;}"; } ?>
103
  <?php if ($background_on === "on") { echo "#content-background{background: url('".$path."image.php?hex=$content_color');}"; }?>
104
  <?php if ($submit_button_color != "") {
105
  echo"input[type='submit'] {
111
  background: linear-gradient(rgba($red,$green,$blue, 0.5), rgba($red,$green,$blue, 0.7));
112
  border: 1px solid #000;}";
113
  }
114
+ ?>
115
+ footer #inbound-social-inbound-social-buttons {
116
+ text-align: center;
117
+ background: rgba(0,0,0,0);
118
+ padding: 0;
119
+ margin: auto;
120
+ margin-top: 10px;}
121
  </style>
122
  <!--[if lt IE 9]>
123
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
124
  <![endif]-->
125
  </head>
126
+
127
  <body <?php lp_body_class();?>>
128
+ <div id="page-wrapper">
129
  <div id="heading-area">
130
  <h1><?php lp_main_headline(); ?></h1>
131
  </div>
141
  <?php echo $content;?>
142
  </div> <!-- end content area -->
143
  </div>
144
+ </div>
145
+ </div>
146
+ <?php if ($social_display==="1" ) { // Show Social Media Icons?>
147
  <footer>
148
 
149
 
150
+ <?php lp_social_media(); // print out social media buttons?>
151
  <style type="text/css">
152
  #lp-social-buttons {width: 517px;
153
  margin: auto;
167
  margin-right: -14px;
168
  }</style>
169
  </footer>
170
+ <?php } ?>
171
  <!-- JavaScript includes -->
172
+
173
  <script src="<?php echo $path; ?>assets/countdown/jquery.countdown.js"></script>
174
+
175
  <script>
176
  jQuery(function(){
177
+
178
  var note = jQuery('#note'),
179
  // year, month-1, date
180
  ts = new Date(<?php if (isset($date_array[0])) { echo $date_array[0] ; } ?>,<?php if (isset($date_array[1])) { echo $date_array[1] - 1 ; } ?>,<?php if (isset($date_array[2])) { echo $date_array[2] ; } ?><?php if ($date_array[3] != "") { echo "," . $date_array[3] ; } ?>),
181
  newYear = false;
182
+
183
  jQuery('#countdown').countdown({
184
  timestamp : ts,
185
  callback : function(days, hours, minutes, seconds){
186
+
187
  var message = "";
188
+
189
  message += days + " day" + ( days==1 ? '':'s' ) + ", ";
190
  message += hours + " hour" + ( hours==1 ? '':'s' ) + ", ";
191
  message += minutes + " minute" + ( minutes==1 ? '':'s' ) + " and ";
192
  message += seconds + " second" + ( seconds==1 ? '':'s' ) + " <br />";
193
+
194
  if(newYear){
195
  message += "left until the new year!";
196
  }
197
  else {
198
  message += "until <?php echo $countdown_message;?>";
199
  }
200
+
201
  note.html(message);
202
  }
203
  });
204
+
205
  });
206
  /*jQuery.fn.center = function () {
207
  this.css("position","absolute");
208
+ this.css("top", Math.max(0, ((jQuery(window).height() - this.outerHeight()) / 2) +
209
  jQuery(window).scrollTop()) + "px");
210
+ this.css("left", Math.max(0, ((jQuery(window).width() - this.outerWidth()) / 2) +
211
  jQuery(window).scrollLeft()) + "px");
212
  return this;
213
  }
214
  jQuery('#lp_container').center();*/
215
  </script>
216
+ <?php
217
+ break; endwhile; endif;
218
 
219
  do_action('lp_footer');
220
  wp_footer();
221
+ ?>
222
+ </div>
223
 
224
 
225
  </body>
templates/do-NOT-install-templates-here.txt ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *** Notice ***
2
+
3
+ If you are trying to install your own landing page templates, make sure you are uploading those files into the /wp-content/uploads/landing-pages/templates/ folder.
4
+
5
+ If your custom templates are uploaded in this folder they will get overwritten on plugin updates.
6
+
7
+ **************
8
+
9
+ == Documentation on how to install & create new templates ==
10
+
11
+ 1. Installing a template:
12
+ http://docs.inboundnow.com/users/installing-new-templates
13
+
14
+ 2. Updating a template:
15
+ http://docs.inboundnow.com/users/installing-new-templates/updating-templates
16
+
17
+ 3. Creating your own templates:
18
+ http://docs.inboundnow.com/dev/creating-templates
templates/dropcap/assets/css/form.css CHANGED
@@ -1,12 +1,13 @@
1
- .gform_wrapper {
2
- margin:auto;
3
- max-width: 50%;
 
4
  }
5
- .gform_wrapper form {width:330px;}
6
  .gform_wrapper .top_label input.medium, .gform_wrapper .top_label select.medium {
7
  width: 100%;
8
  }
9
- .gform_footer input[type="submit"] {
10
  background: url("../../assets/images/button-green.png") repeat scroll 0 0 #83A736;
11
  border: 1px solid #202020;
12
  font-family: Arial, Helvetica, sans-serif;
@@ -22,13 +23,13 @@ text-align: center;
22
  text-decoration: none;
23
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
24
  }
25
- .gform_footer input[type="submit"]:hover {
26
  background: url("../../assets/images/button-green.png") repeat scroll 0 59px #83A736;
27
  border: 1px solid black;}
28
 
29
  .gform_wrapper .gsection .gfield_label, .gform_wrapper h2.gsection_title, .gform_wrapper h3.gform_title, .gform_wrapper .top_label .gfield_label {
30
  font-weight: normal;}
31
 
32
- .gform_wrapper input[type="text"], .gform_wrapper input[type="url"], .gform_wrapper input[type="email"], .gform_wrapper input[type="tel"], .gform_wrapper input[type="number"], .gform_wrapper input[type="password"] {
33
  outline-style: none;
34
  font-size: 24px;}
1
+ .gform_wrapper, #inbound-form-wrapper {
2
+ margin:auto !important;
3
+ max-width: 50% !important;
4
+ margin-bottom: 30px !important;
5
  }
6
+ form {width:330px;}
7
  .gform_wrapper .top_label input.medium, .gform_wrapper .top_label select.medium {
8
  width: 100%;
9
  }
10
+ input[type="submit"], button[type="submit"] {
11
  background: url("../../assets/images/button-green.png") repeat scroll 0 0 #83A736;
12
  border: 1px solid #202020;
13
  font-family: Arial, Helvetica, sans-serif;
23
  text-decoration: none;
24
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
25
  }
26
+ input[type="submit"]:hover, button[type="submit"]:hover {
27
  background: url("../../assets/images/button-green.png") repeat scroll 0 59px #83A736;
28
  border: 1px solid black;}
29
 
30
  .gform_wrapper .gsection .gfield_label, .gform_wrapper h2.gsection_title, .gform_wrapper h3.gform_title, .gform_wrapper .top_label .gfield_label {
31
  font-weight: normal;}
32
 
33
+ .gform_wrapper input[type="text"], .gform_wrapper input[type="url"], .gform_wrapper input[type="email"], .gform_wrapper input[type="tel"], .gform_wrapper input[type="number"], .gform_wrapper input[type="password"], #inbound-form-wrapper input[type=text], #inbound-form-wrapper input[type=url], #inbound-form-wrapper input[type=email], #inbound-form-wrapper input[type=tel], #inbound-form-wrapper input[type=number], #inbound-form-wrapper input[type=password] {
34
  outline-style: none;
35
  font-size: 24px;}
templates/dropcap/assets/css/style.css CHANGED
@@ -7,7 +7,9 @@ h1, h2, h3, h4, h5, h6, p {
7
  }
8
  h3 {font-size: 2em;}
9
  body {
 
10
  font-family: "Chunk", Sans-Serif; color: #fff;
 
11
  /*background: #566074 url(bg1.png); */
12
  }
13
  #wrapper {
@@ -18,16 +20,16 @@ body {
18
  width: 780px; margin: 0px auto 0px;
19
  }
20
 
21
- #textspot p {
22
  font-size: 50px; line-height: 80px;
23
- text-transform: uppercase;
24
  text-shadow: 10px 10px 0 rgba(255,255,255,0.07);
25
  }
26
  #textspot p:first-child:first-letter {
27
  font-size: 160px; float: left; margin: 20px 20px 0 0; line-height: 0.8;
28
  text-shadow: 4px 4px 0 #566074, 7px 7px 0 #fff;
29
  }
30
-
31
  #content {margin: auto; width:800px; padding:20px;}
32
  #main-content-area {padding-left: 0px;}
33
  form {font-family: Sans-Serif;}
@@ -89,7 +91,7 @@ margin: auto;}
89
  #lp-field .lp-radio-area { display: inline;}
90
  #lp-input-container .lp-form-radio input { display: inline;}
91
  .lp-form-radio {display: inline-block;}
92
- input[type="text"], input[type="email"], textarea {
93
  font-family: 'Lato', Calibri, Arial, sans-serif;
94
  font-size: 13px;
95
  font-weight: 400;
@@ -105,7 +107,7 @@ border-radius: 5px;
105
  -o-transition: all 0.3s ease-out;
106
  transition: all 0.3s ease-out;
107
  }
108
- .lp-input-submit, input[type="submit"] {
109
  background: url("../../assets/images/button-green.png") repeat scroll 0 0 #83A736;
110
  border: 1px solid #202020;
111
  font-family: Arial, Helvetica, sans-serif;
7
  }
8
  h3 {font-size: 2em;}
9
  body {
10
+
11
  font-family: "Chunk", Sans-Serif; color: #fff;
12
+ font-family: 'Open Sans', sans-serif;
13
  /*background: #566074 url(bg1.png); */
14
  }
15
  #wrapper {
20
  width: 780px; margin: 0px auto 0px;
21
  }
22
 
23
+ #textspot p {
24
  font-size: 50px; line-height: 80px;
25
+
26
  text-shadow: 10px 10px 0 rgba(255,255,255,0.07);
27
  }
28
  #textspot p:first-child:first-letter {
29
  font-size: 160px; float: left; margin: 20px 20px 0 0; line-height: 0.8;
30
  text-shadow: 4px 4px 0 #566074, 7px 7px 0 #fff;
31
  }
32
+
33
  #content {margin: auto; width:800px; padding:20px;}
34
  #main-content-area {padding-left: 0px;}
35
  form {font-family: Sans-Serif;}
91
  #lp-field .lp-radio-area { display: inline;}
92
  #lp-input-container .lp-form-radio input { display: inline;}
93
  .lp-form-radio {display: inline-block;}
94
+ input[type="text"], input[type="email"], textarea, #inbound-form-wrapper input[type=text], #inbound-form-wrapper input[type=url], #inbound-form-wrapper input[type=email], #inbound-form-wrapper input[type=tel], #inbound-form-wrapper input[type=number], #inbound-form-wrapper input[type=password] {
95
  font-family: 'Lato', Calibri, Arial, sans-serif;
96
  font-size: 13px;
97
  font-weight: 400;
107
  -o-transition: all 0.3s ease-out;
108
  transition: all 0.3s ease-out;
109
  }
110
+ .lp-input-submit, input[type="submit"], button[type="submit"] {
111
  background: url("../../assets/images/button-green.png") repeat scroll 0 0 #83A736;
112
  border: 1px solid #202020;
113
  font-family: Arial, Helvetica, sans-serif;
templates/dropcap/assets/images/beach-1.jpg ADDED
Binary file
templates/dropcap/index.php CHANGED
@@ -80,19 +80,19 @@ body { <?php echo $bg_style; ?> }
80
  #textspot p { color: #<?php echo $text_color;?>;}
81
  <?php } ?>
82
  <?php if ($content_background != "") { ?>
83
- #content { background: url('/wp-content/plugins/landing-pages/images/image.php?hex=<?php echo $content_background;?>'); border-radius: 8px; }
84
  <?php } ?>
85
  <?php if ($form_text_color != "") { echo "#lp_container {color: #$form_text_color;}"; } ?>
86
  p {
87
  margin-bottom: 20px;
88
- letter-spacing: 1px;
89
  }
90
  #wrapper {
91
- padding-top: 110px;
92
  }
93
- body { font-family: arial;}
94
  #textspot p {
95
- font-family: "Chunk", Sans-Serif;
96
  }
97
  ul { margin-bottom: 20px;}
98
  #main-content-area {
@@ -124,4 +124,4 @@ do_action('lp_footer'); // Load Landing Page Footer Hook
124
  wp_footer();
125
  ?>
126
  <link href="<?php echo $path; ?>assets/css/form.css" rel="stylesheet">
127
- </body></html>
80
  #textspot p { color: #<?php echo $text_color;?>;}
81
  <?php } ?>
82
  <?php if ($content_background != "") { ?>
83
+ #content { background: url('<?php echo LANDINGPAGES_URLPATH; ?>/images/image.php?hex=<?php echo $content_background;?>'); border-radius: 8px; }
84
  <?php } ?>
85
  <?php if ($form_text_color != "") { echo "#lp_container {color: #$form_text_color;}"; } ?>
86
  p {
87
  margin-bottom: 20px;
88
+ font-weight: 100;
89
  }
90
  #wrapper {
91
+ padding-top: 70px;
92
  }
93
+ body { font-family: 'Open Sans', sans-serif;}
94
  #textspot p {
95
+ font-family: "Chunk", Sans-Serif; letter-spacing: 1px;
96
  }
97
  ul { margin-bottom: 20px;}
98
  #main-content-area {
124
  wp_footer();
125
  ?>
126
  <link href="<?php echo $path; ?>assets/css/form.css" rel="stylesheet">
127
+ </body></html>
templates/half-and-half/assets/css/style.css CHANGED
@@ -5,7 +5,7 @@
5
  box-sizing: border-box;
6
  }
7
  body{
8
- font-family: 'Open Sans', sans-serif;
9
  background-color: #fff;
10
 
11
  }
@@ -17,12 +17,13 @@ background-color: #fff;
17
 
18
  #content{
19
  position: fixed;
20
- margin: 100px auto;
21
  width: 50%;
22
  padding: 40px;
23
  padding-top: 0px;
24
- float:left;
25
- height: 400px;
 
26
  }
27
 
28
  h1{
@@ -78,20 +79,20 @@ border: .3em solid rgba(255,255,255,1);
78
  float:left;
79
  border-radius: .3em;
80
  float:left;
81
- -webkit-transition: -webkit-transform .3s;
82
- -moz-transition: -moz-transform .3s;
83
- -o-transition: -o-transform .3s;
84
- transition: transform .3s;
85
  }
86
 
87
  .images:hover{
88
-
89
  border: .3em solid rgba(255,255,255,1);
90
  -moz-transform: rotate(359deg), scale(1.5);
91
  -webkit-transform: rotate(359deg), scale(1.5);
92
  -o-transform: rotate(359deg), scale(1.5);
93
  transform: rotate(359deg), scale(1.5);
94
-
95
  }
96
 
97
  #gallery{
@@ -102,7 +103,8 @@ border: .3em solid rgba(255,255,255,1);
102
  overflow: auto;
103
  padding-right: 5%;
104
  padding-left: 5%;
105
- padding-top: 40px;}
 
106
  #area p{
107
 
108
  font-weight: 100;
@@ -115,8 +117,8 @@ padding-top: 70px;
115
  width: 450px;}
116
 
117
  /* Form CSS */
118
- input[type="text"], input[type="email"] {
119
- width: 58%;
120
  float: left;
121
  padding: 8px 5px;
122
  font-size: 12px;
@@ -145,9 +147,11 @@ text-shadow: 0 1px 0 black;
145
  font-weight: 700;
146
  cursor: pointer;
147
  }
148
- input[type="submit"] {
149
- width: 53%;
 
150
  padding: 8px 5px;
 
151
  border: 1px solid #0273DD;
152
  border: 1px solid rgba(0, 0, 0, 0.4);
153
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 10px 10px rgba(255, 255, 255, 0.1);
@@ -156,7 +160,7 @@ background: #38A6F0;
156
  cursor: pointer;
157
  font-family: 'Ubuntu', 'Lato', sans-serif;
158
  color: white;
159
- margin-top: 10px;
160
  font-weight: 700;
161
  font-size: 15px;
162
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.8);
5
  box-sizing: border-box;
6
  }
7
  body{
8
+ font-family: 'Open Sans', sans-serif;
9
  background-color: #fff;
10
 
11
  }
17
 
18
  #content{
19
  position: fixed;
20
+ margin: 100px auto;
21
  width: 50%;
22
  padding: 40px;
23
  padding-top: 0px;
24
+ float: left;
25
+ height: 100%;
26
+ overflow: auto;
27
  }
28
 
29
  h1{
79
  float:left;
80
  border-radius: .3em;
81
  float:left;
82
+ -webkit-transition: -webkit-transform .3s;
83
+ -moz-transition: -moz-transform .3s;
84
+ -o-transition: -o-transform .3s;
85
+ transition: transform .3s;
86
  }
87
 
88
  .images:hover{
89
+
90
  border: .3em solid rgba(255,255,255,1);
91
  -moz-transform: rotate(359deg), scale(1.5);
92
  -webkit-transform: rotate(359deg), scale(1.5);
93
  -o-transform: rotate(359deg), scale(1.5);
94
  transform: rotate(359deg), scale(1.5);
95
+
96
  }
97
 
98
  #gallery{
103
  overflow: auto;
104
  padding-right: 5%;
105
  padding-left: 5%;
106
+ padding-top: 40px;
107
+ padding-bottom: 150px;}
108
  #area p{
109
 
110
  font-weight: 100;
117
  width: 450px;}
118
 
119
  /* Form CSS */
120
+ input[type="text"], input[type="email"], #inbound-form-wrapper input[type=text], #inbound-form-wrapper input[type=url], #inbound-form-wrapper input[type=email], #inbound-form-wrapper input[type=tel], #inbound-form-wrapper input[type=number], #inbound-form-wrapper input[type=password] {
121
+ width: 96%;
122
  float: left;
123
  padding: 8px 5px;
124
  font-size: 12px;
147
  font-weight: 700;
148
  cursor: pointer;
149
  }
150
+
151
+ input[type="submit"], button[type="submit"] {
152
+ width: 91%;
153
  padding: 8px 5px;
154
+
155
  border: 1px solid #0273DD;
156
  border: 1px solid rgba(0, 0, 0, 0.4);
157
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 10px 10px rgba(255, 255, 255, 0.1);
160
  cursor: pointer;
161
  font-family: 'Ubuntu', 'Lato', sans-serif;
162
  color: white;
163
+ margin-top: 15px;
164
  font-weight: 700;
165
  font-size: 15px;
166
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.8);
templates/half-and-half/index.php CHANGED
@@ -1,4 +1,4 @@
1
- <?php
2
  /*****************************************/
3
  // Template Title: Half and Half Template
4
  // Plugin: Landing Pages - Inboundnow.com
@@ -17,20 +17,20 @@ do_action('lp_init');
17
 
18
  /* Start WordPress Loop and Load $post data */
19
  if (have_posts()) : while (have_posts()) : the_post();
20
-
21
  /* Pre-load meta data into variables. These are defined in the templates config.php file */
22
-
23
- $social_display = lp_get_value($post, $key, 'display-social');
24
- $sidebar = lp_get_value($post, $key, 'sidebar');
25
- $logo = lp_get_value($post, $key, 'logo');
26
- $content_color = lp_get_value($post, $key, 'content-color');
27
- $content_text_color = lp_get_value($post, $key, 'content-text-color');
28
- $sidebar_color = lp_get_value($post, $key, 'sidebar-color');
29
- $sidebar_text_color = lp_get_value($post, $key, 'sidebar-text-color');
30
- $submit_button_color = lp_get_value($post, $key, 'submit-button-color');
31
  $content = lp_content_area(null,null,true);
32
 
33
-
34
  ?>
35
  <!DOCTYPE html>
36
  <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
@@ -43,20 +43,20 @@ if (have_posts()) : while (have_posts()) : the_post();
43
  <title>
44
  <?php wp_title(); // Load WordPress Page Title ?>
45
  </title>
46
-
47
  <link rel="stylesheet" href="<?php echo $path; ?>assets/css/normalize.css">
48
  <link rel="stylesheet" href="<?php echo $path; ?>assets/css/style.css">
49
-
50
  <script src="<?php echo $path; ?>assets/js/modernizr-2.6.2.min.js"></script>
51
-
52
  <style type="text/css">
53
  /* Inline Styling for Template Changes based off user input */
54
  <?php if ($sidebar_color != "") {
55
  echo "#right { background-color: #$sidebar_color;} "; // change sidebar color
56
- } ?>
57
  <?php if ($content_color != "") {
58
  echo "body {background-color: #$content_color;}"; // change content background color
59
- } ?>
60
  <?php if ($content_text_color != "") {
61
  echo "#area, ul {color: #$content_text_color; opacity: .9;}"; // change content text color
62
  } ?>
@@ -67,20 +67,30 @@ if (have_posts()) : while (have_posts()) : the_post();
67
  echo "input[type='submit'] {background: #$submit_button_color;} "; // change sidebar text color
68
  } ?>
69
  <?php // change css layout if left selected
70
- if ($sidebar === "left" ) {
71
- echo "#right {left:0;
72
  -webkit-box-shadow: inset -2em 0 3em rgba(172, 49, 16, .7);
73
- -moz-box-shadow: inset -2em 0 3em rgba(50, 50, 50, .5);
74
- box-shadow: inset -2em 0 3em rgba(50, 50, 50, .5);
75
- border-right: .1em solid rgba(255, 255, 255, .8);}
76
- #content {right: 0;}
77
- #social-share-buttons {margin-left: -115px !important;}";
78
- } else {
79
- echo "#right {right: 0;}";
80
  }
81
  ?>
 
 
 
 
 
 
 
 
 
 
82
  /* Import Google Font Stylesheet */
83
- @import url(http://fonts.googleapis.com/css?family=Open+Sans:400,300);
84
  </style>
85
  <?php wp_head(); // Load Regular WP Head ?>
86
  <?php do_action('lp_head'); // Load Landing Page Specific Header Items ?>
@@ -111,7 +121,7 @@ if (have_posts()) : while (have_posts()) : the_post();
111
  <?php lp_social_media(); // Template helper to print out social media buttons ?>
112
  </div>
113
  <!--end #share-toggle -->
114
- <?php } ?>
115
  <style type="text/css">
116
  .gform_wrapper .gsection .gfield_label, .gform_wrapper h2.gsection_title, .gform_wrapper h3.gform_title, .gform_wrapper span.gform_description {
117
  font-weight: 100;
@@ -127,8 +137,8 @@ if (have_posts()) : while (have_posts()) : the_post();
127
  margin-left: -240px;
128
  }
129
  </style>
130
- <?php break; endwhile; endif; // end WordPress Loop
131
- do_action('lp_footer'); // load landing pages footer hook
132
  wp_footer(); // load normal wordpress footer
133
  ?>
134
  </body>
1
+ <?php
2
  /*****************************************/
3
  // Template Title: Half and Half Template
4
  // Plugin: Landing Pages - Inboundnow.com
17
 
18
  /* Start WordPress Loop and Load $post data */
19
  if (have_posts()) : while (have_posts()) : the_post();
20
+
21
  /* Pre-load meta data into variables. These are defined in the templates config.php file */
22
+
23
+ $social_display = lp_get_value($post, $key, 'display-social');
24
+ $sidebar = lp_get_value($post, $key, 'sidebar');
25
+ $logo = lp_get_value($post, $key, 'logo');
26
+ $content_color = lp_get_value($post, $key, 'content-color');
27
+ $content_text_color = lp_get_value($post, $key, 'content-text-color');
28
+ $sidebar_color = lp_get_value($post, $key, 'sidebar-color');
29
+ $sidebar_text_color = lp_get_value($post, $key, 'sidebar-text-color');
30
+ $submit_button_color = lp_get_value($post, $key, 'submit-button-color');
31
  $content = lp_content_area(null,null,true);
32
 
33
+
34
  ?>
35
  <!DOCTYPE html>
36
  <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
43
  <title>
44
  <?php wp_title(); // Load WordPress Page Title ?>
45
  </title>
46
+
47
  <link rel="stylesheet" href="<?php echo $path; ?>assets/css/normalize.css">
48
  <link rel="stylesheet" href="<?php echo $path; ?>assets/css/style.css">
49
+
50
  <script src="<?php echo $path; ?>assets/js/modernizr-2.6.2.min.js"></script>
51
+
52
  <style type="text/css">
53
  /* Inline Styling for Template Changes based off user input */
54
  <?php if ($sidebar_color != "") {
55
  echo "#right { background-color: #$sidebar_color;} "; // change sidebar color
56
+ } ?>
57
  <?php if ($content_color != "") {
58
  echo "body {background-color: #$content_color;}"; // change content background color
59
+ } ?>
60
  <?php if ($content_text_color != "") {
61
  echo "#area, ul {color: #$content_text_color; opacity: .9;}"; // change content text color
62
  } ?>
67
  echo "input[type='submit'] {background: #$submit_button_color;} "; // change sidebar text color
68
  } ?>
69
  <?php // change css layout if left selected
70
+ if ($sidebar === "left" ) {
71
+ echo "#right {left:0;
72
  -webkit-box-shadow: inset -2em 0 3em rgba(172, 49, 16, .7);
73
+ -moz-box-shadow: inset -2em 0 3em rgba(50, 50, 50, .5);
74
+ box-shadow: inset -2em 0 3em rgba(50, 50, 50, .5);
75
+ border-right: .1em solid rgba(255, 255, 255, .8);}
76
+ #content {right: 0;}
77
+ #social-share-buttons {margin-left: -115px !important;}";
78
+ } else {
79
+ echo "#right {right: 0;}";
80
  }
81
  ?>
82
+ #share-toggle #inbound-social-inbound-social-buttons {
83
+ width: 476px;
84
+ margin-bottom: 10px;
85
+ margin-left: -6px;
86
+ }
87
+ #area_two #inbound-form-wrapper {
88
+
89
+ max-width: 75%;
90
+ margin: auto;
91
+ }
92
  /* Import Google Font Stylesheet */
93
+ @import url(http://fonts.googleapis.com/css?family=Open+Sans:400,300);
94
  </style>
95
  <?php wp_head(); // Load Regular WP Head ?>
96
  <?php do_action('lp_head'); // Load Landing Page Specific Header Items ?>
121
  <?php lp_social_media(); // Template helper to print out social media buttons ?>
122
  </div>
123
  <!--end #share-toggle -->
124
+ <?php } ?>
125
  <style type="text/css">
126
  .gform_wrapper .gsection .gfield_label, .gform_wrapper h2.gsection_title, .gform_wrapper h3.gform_title, .gform_wrapper span.gform_description {
127
  font-weight: 100;
137
  margin-left: -240px;
138
  }
139
  </style>
140
+ <?php break; endwhile; endif; // end WordPress Loop
141
+ do_action('lp_footer'); // load landing pages footer hook
142
  wp_footer(); // load normal wordpress footer
143
  ?>
144
  </body>
templates/simple-solid-lite/css/inbound-compiled-style.css ADDED
@@ -0,0 +1,249 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* GENERAL */
2
+
3
+ * {
4
+ -webkit-backface-visibility: hidden;
5
+ -webkit-box-sizing: border-box;
6
+ -moz-box-sizing: border-box;
7
+ box-sizing: border-box;
8
+ }
9
+
10
+ img,
11
+ audio,
12
+ video,
13
+ canvas {
14
+ max-width: 100%;
15
+ }
16
+
17
+ html {
18
+ min-height: 100%;
19
+ margin-bottom: 1px;
20
+ -webkit-text-size-adjust: none;
21
+ background: #2ecc71;
22
+ }
23
+
24
+ ::selection {
25
+ background:#2ecc71;
26
+ color:#fff;
27
+ }
28
+
29
+ ::-moz-selection {
30
+ background:#2ecc71;
31
+ color:#fff;
32
+ }
33
+
34
+ ::-webkit-selection {
35
+ background:#2ecc71;
36
+ color:#fff;
37
+ }
38
+
39
+
40
+ /* Clear Floats */
41
+
42
+ .cf:before,.cf:after {content: " "; /* 1 */ display: table; /* 2 */}
43
+ .cf:after {clear: both;}
44
+ .cf {clear: both;}
45
+
46
+
47
+ /* Headers */
48
+
49
+
50
+ h1 {
51
+ font: 30px 'montserratregular','Montserrat',Helvetica,Arial,sans-serif;
52
+ margin:0 0 10px 0;
53
+ padding:0;
54
+ }
55
+
56
+ h2 {
57
+ font: 20px 'montserratregular','Montserrat',Helvetica,Arial,sans-serif;
58
+ margin:0 auto;
59
+ text-align: center;
60
+ padding:0;
61
+ }
62
+
63
+ h3 {
64
+ font: 22px 'montserratregular','Montserrat',Helvetica,Arial,sans-serif;
65
+ margin:0 0 10px 0;
66
+ padding:0;
67
+ }
68
+
69
+ h4 {
70
+ font: 18px 'montserratregular','Montserrat',Helvetica,Arial,sans-serif;
71
+ margin:0 0 10px 0;
72
+ padding:0;
73
+ }
74
+
75
+
76
+ /* General */
77
+
78
+
79
+ body {
80
+ background: #2ecc71;
81
+ color: #fff;
82
+ font: 18px/1.5 'montserratregular','Montserrat',Helvetica,Arial,sans-serif;
83
+ margin:0;
84
+ -webkit-font-smoothing: antialiased;
85
+ }
86
+
87
+
88
+ header {
89
+ width:100%;
90
+ height: 63px;
91
+ background:#fff;
92
+ padding: 0px 0;
93
+ }
94
+
95
+ .inner {
96
+ position: relative;
97
+ width: 1050px;
98
+ margin: 0 auto;
99
+ }
100
+
101
+ .logo {
102
+ float: left;
103
+ height: 60px;
104
+ width: 160px;
105
+ margin: 0;
106
+ padding: 0;
107
+ }
108
+
109
+ .logo a {
110
+ display: block;
111
+ background: url("../images/logo.png") no-repeat;
112
+ height: 60px;
113
+ width: 160px;
114
+ margin: 0;
115
+ text-decoration: none;
116
+ }
117
+
118
+ .network {
119
+ float: right;
120
+ color: #2ecc71;
121
+ font-size: 15px;
122
+ margin: 20px 0 0;
123
+ width: 400px;
124
+ text-align: right;
125
+ }
126
+
127
+ .icono {
128
+ color: #3498db;
129
+ }
130
+
131
+ .rq {
132
+ color: #e74c3c;
133
+ }
134
+
135
+ .intro {
136
+ text-align: center;
137
+ }
138
+
139
+ a {
140
+ color: #fff;
141
+ text-decoration: none;
142
+ font-weight:bold;
143
+ }
144
+
145
+ a:hover {
146
+ color: #2ecc71;
147
+ text-decoration: none;
148
+ font-weight:bold;
149
+ }
150
+
151
+
152
+ .container {
153
+ width: 1050px;
154
+ margin:10px auto;
155
+ }
156
+
157
+ /* FORM STYLES */
158
+
159
+ .form {
160
+ width: 600px;
161
+ margin: 40px auto 20px auto;
162
+ }
163
+
164
+ input[type="text"], input[type="number"] {
165
+ background: #fff;
166
+ border: 2px solid #fff;
167
+ width: 100%;
168
+ height: 80px;
169
+ outline:none;
170
+ padding: 0 0 0 20px;
171
+ font: 18px/1.5 'montserratregular','Montserrat',Helvetica,Arial,sans-serif;
172
+ color: #666;
173
+ margin: 10px auto;
174
+ }
175
+
176
+ input[type="text"]:focus, input[type="number"]:focus {
177
+ border: 2px solid #27ae60;
178
+ }
179
+
180
+ label {
181
+ display:block;
182
+ margin: 10px 0 10px 0;
183
+ font-size: 20px;
184
+ text-align:center;
185
+ }
186
+
187
+ .result {
188
+ background: #27ae60;
189
+ padding: 20px;
190
+ width: 600px;
191
+ margin: 0 auto 20px auto;
192
+ }
193
+
194
+ .total {
195
+ display:block;
196
+ margin: 10px 0 10px 0;
197
+ font-size: 30px;
198
+ text-align:center;
199
+ }
200
+
201
+ .add {
202
+ display:block;
203
+ margin: 10px 0 10px 0;
204
+ font-size: 40px;
205
+ font-weight: bold;
206
+ text-align:center;
207
+ }
208
+
209
+ #added {
210
+ font-weight:bold;
211
+ }
212
+
213
+
214
+
215
+ footer {
216
+ background: #27ae60;
217
+ clear: both;
218
+ color: #FFFFFF;
219
+ font: 13px/1.5 'montserratregular','Montserrat',Helvetica,Arial,sans-serif;
220
+ margin: 10px auto;
221
+ width: 1050px;
222
+ padding: 10px;
223
+ }
224
+
225
+
226
+ .foot-left {
227
+ float:left;
228
+ }
229
+
230
+ .foot-right {
231
+ float:right;
232
+ }
233
+
234
+ /* Retina Full Sized */
235
+
236
+ @media
237
+ only screen and (-webkit-min-device-pixel-ratio: 2),
238
+ only screen and ( min--moz-device-pixel-ratio: 2),
239
+ only screen and ( -o-min-device-pixel-ratio: 2/1),
240
+ only screen and ( min-device-pixel-ratio: 2),
241
+ only screen and ( min-resolution: 192dpi),
242
+ only screen and ( min-resolution: 2dppx) {
243
+
244
+ .logo a {
245
+ background: url('../images/logo_2x.png') no-repeat;
246
+ background-size: 160px 60px;
247
+ }
248
+
249
+ }
templates/simple-solid-lite/css/main.css ADDED
@@ -0,0 +1,249 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* GENERAL */
2
+
3
+ * {
4
+ -webkit-backface-visibility: hidden;
5
+ -webkit-box-sizing: border-box;
6
+ -moz-box-sizing: border-box;
7
+ box-sizing: border-box;
8
+ }
9
+
10
+ img,
11
+ audio,
12
+ video,
13
+ canvas {
14
+ max-width: 100%;
15
+ }
16
+
17
+ html {
18
+ min-height: 100%;
19
+ margin-bottom: 1px;
20
+ -webkit-text-size-adjust: none;
21
+ background: #2ecc71;
22
+ }
23
+
24
+ ::selection {
25
+ background:#2ecc71;
26
+ color:#fff;
27
+ }
28
+
29
+ ::-moz-selection {
30
+ background:#2ecc71;
31
+ color:#fff;
32
+ }
33
+
34
+ ::-webkit-selection {
35
+ background:#2ecc71;
36
+ color:#fff;
37
+ }
38
+
39
+
40
+ /* Clear Floats */
41
+
42
+ .cf:before,.cf:after {content: " "; /* 1 */ display: table; /* 2 */}
43
+ .cf:after {clear: both;}
44
+ .cf {clear: both;}
45
+
46
+
47
+ /* Headers */
48
+
49
+
50
+ h1 {
51
+ font: 30px 'montserratregular','Montserrat',Helvetica,Arial,sans-serif;
52
+ margin:0 0 10px 0;
53
+ padding:0;
54
+ }
55
+
56
+ h2 {
57
+ font: 20px 'montserratregular','Montserrat',Helvetica,Arial,sans-serif;
58
+ margin:0 auto;
59
+ text-align: center;
60
+ padding:0;
61
+ }
62
+
63
+ h3 {
64
+ font: 22px 'montserratregular','Montserrat',Helvetica,Arial,sans-serif;
65
+ margin:0 0 10px 0;
66
+ padding:0;
67
+ }
68
+
69
+ h4 {
70
+ font: 18px 'montserratregular','Montserrat',Helvetica,Arial,sans-serif;
71
+ margin:0 0 10px 0;
72
+ padding:0;
73
+ }
74
+
75
+
76
+ /* General */
77
+
78
+
79
+ body {
80
+ background: #2ecc71;
81
+ color: #fff;
82
+ font: 18px/1.5 'montserratregular','Montserrat',Helvetica,Arial,sans-serif;
83
+ margin:0;
84
+ -webkit-font-smoothing: antialiased;
85
+ }
86
+
87
+
88
+ header {
89
+ width:100%;
90
+ height: 63px;
91
+ background:#fff;
92
+ padding: 0px 0;
93
+ }
94
+
95
+ .inner {
96
+ position: relative;
97
+ width: 1050px;
98
+ margin: 0 auto;
99
+ }
100
+
101
+ .logo {
102
+ float: left;
103
+ height: 60px;
104
+ width: 160px;
105
+ margin: 0;
106
+ padding: 0;
107
+ }
108
+
109
+ .logo a {
110
+ display: block;
111
+ background: url("../images/logo.png") no-repeat;
112
+ height: 60px;
113
+ width: 160px;
114
+ margin: 0;
115
+ text-decoration: none;
116
+ }
117
+
118
+ .network {
119
+ float: right;
120
+ color: #2ecc71;
121
+ font-size: 15px;
122
+ margin: 20px 0 0;
123
+ width: 600px;
124
+ text-align: right;
125
+ }
126
+
127
+ .icono {
128
+ color: #3498db;
129
+ }
130
+
131
+ .rq {
132
+ color: #e74c3c;
133
+ }
134
+
135
+ .inbound-template-intro {
136
+ text-align: center;
137
+ }
138
+
139
+ a {
140
+ color: #fff;
141
+ text-decoration: none;
142
+ font-weight:bold;
143
+ }
144
+
145
+ a:hover {
146
+ color: #2ecc71;
147
+ text-decoration: none;
148
+ font-weight:bold;
149
+ }
150
+
151
+
152
+ .container {
153
+ width: 1050px;
154
+ margin:10px auto;
155
+ }
156
+
157
+ /* FORM STYLES */
158
+
159
+ .form {
160
+ width: 600px;
161
+ margin: 40px auto 20px auto;
162
+ }
163
+
164
+ input[type="text"], input[type="number"] {
165
+ background: #fff;
166
+ border: 2px solid #fff;
167
+ width: 100%;
168
+ height: 80px;
169
+ outline:none;
170
+ padding: 0 0 0 20px;
171
+ font: 18px/1.5 'montserratregular','Montserrat',Helvetica,Arial,sans-serif;
172
+ color: #666;
173
+ margin: 10px auto;
174
+ }
175
+
176
+ input[type="text"]:focus, input[type="number"]:focus {
177
+ border: 2px solid #27ae60;
178
+ }
179
+
180
+ label {
181
+ display:block;
182
+ margin: 10px 0 10px 0;
183
+ font-size: 20px;
184
+ text-align:center;
185
+ }
186
+
187
+ .result {
188
+ background: #27ae60;
189
+ padding: 20px;
190
+ width: 600px;
191
+ margin: 0 auto 20px auto;
192
+ }
193
+
194
+ .total {
195
+ display:block;
196
+ margin: 10px 0 10px 0;
197
+ font-size: 30px;
198
+ text-align:center;
199
+ }
200
+
201
+ .add {
202
+ display:block;
203
+ margin: 10px 0 10px 0;
204
+ font-size: 40px;
205
+ font-weight: bold;
206
+ text-align:center;
207
+ }
208
+
209
+ #added {
210
+ font-weight:bold;
211
+ }
212
+
213
+
214
+
215
+ footer {
216
+ background: #27ae60;
217
+ clear: both;
218
+ color: #FFFFFF;
219
+ font: 13px/1.5 'montserratregular','Montserrat',Helvetica,Arial,sans-serif;
220
+ margin: 10px auto;
221
+ width: 1050px;
222
+ padding: 10px;
223
+ }
224
+
225
+
226
+ .foot-left {
227
+ float:left;
228
+ }
229
+
230
+ .foot-right {
231
+ float:right;
232
+ }
233
+
234
+ /* Retina Full Sized */
235
+
236
+ @media
237
+ only screen and (-webkit-min-device-pixel-ratio: 2),
238
+ only screen and ( min--moz-device-pixel-ratio: 2),
239
+ only screen and ( -o-min-device-pixel-ratio: 2/1),
240
+ only screen and ( min-device-pixel-ratio: 2),
241
+ only screen and ( min-resolution: 192dpi),
242
+ only screen and ( min-resolution: 2dppx) {
243
+
244
+ .logo a {
245
+ background: url('../images/logo_2x.png') no-repeat;
246
+ background-size: 160px 60px;
247
+ }
248
+
249
+ }
templates/simple-two-column/assets/css/style.css CHANGED
@@ -12,9 +12,7 @@ color: black;
12
  #content-wrapper {
13
  position: absolute;
14
  height: 100%;
15
- -webkit-box-shadow: 0px 0px 30px rgba(50, 50, 50, 0.55);
16
- -moz-box-shadow: 0px 0px 30px rgba(50, 50, 50, 0.55);
17
- box-shadow: 0px 0px 30px rgba(50, 50, 50, 0.55);
18
  }
19
  #content-wrapper {
20
  width: 980px;
@@ -34,9 +32,7 @@ width: 33.33%;
34
  #right {
35
  background-color: #2A4480;
36
  color: white;
37
- -webkit-box-shadow: -18px 0px 29px rgba(50, 50, 50, 0.55);
38
- -moz-box-shadow: -18px 0px 29px rgba(50, 50, 50, 0.55);
39
- box-shadow: -18px 0px 29px rgba(50, 50, 50, 0.55);
40
  /* -9px 0px 10px rgba(50, 50, 50, 0.55) */
41
  z-index: 999;
42
  }
@@ -53,6 +49,7 @@ width: 66.66%;
53
  #left-content {
54
  padding: 30px;
55
  padding-top: 20px;
 
56
  }
57
  #left-content h1 {margin-top: 0px;}
58
  #left {
@@ -66,12 +63,12 @@ color: white;
66
  display: inline;
67
  color:red;
68
  }
69
- input[type="text"], input[type="email"] {
70
  width: 94%;
71
  padding: 8px 4px 8px 10px;
72
  margin-bottom: 15px;
73
  border: 1px solid #4E3043;
74
- border: 1px solid rgba(78, 48, 67, 0.8);
75
  background: rgba(0, 0, 0, 0.15);
76
  border-radius: 2px;
77
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 1px 1px rgba(0, 0, 0, 0.1);
@@ -93,15 +90,15 @@ font-size: 13px; /*
93
  }
94
  /*
95
  input[type="text"]:hover { border-radius: 8px; }
96
- input[type="text"]:focus {
97
  outline: none;
98
- border-radius: 8px;
99
  border-color: #EBD292;
100
  }
101
- */
102
 
103
 
104
- input[type="submit"] {
105
  width: 100%;
106
  padding: 8px 5px;
107
  background: #11b709;
12
  #content-wrapper {
13
  position: absolute;
14
  height: 100%;
15
+
 
 
16
  }
17
  #content-wrapper {
18
  width: 980px;
32
  #right {
33
  background-color: #2A4480;
34
  color: white;
35
+
 
 
36
  /* -9px 0px 10px rgba(50, 50, 50, 0.55) */
37
  z-index: 999;
38
  }
49
  #left-content {
50
  padding: 30px;
51
  padding-top: 20px;
52
+ font-weight: 100;
53
  }
54
  #left-content h1 {margin-top: 0px;}
55
  #left {
63
  display: inline;
64
  color:red;
65
  }
66
+ input[type="text"], input[type="email"], #inbound-form-wrapper input[type=text], #inbound-form-wrapper input[type=url], #inbound-form-wrapper input[type=email], #inbound-form-wrapper input[type=tel], #inbound-form-wrapper input[type=number], #inbound-form-wrapper input[type=password] {
67
  width: 94%;
68
  padding: 8px 4px 8px 10px;
69
  margin-bottom: 15px;
70
  border: 1px solid #4E3043;
71
+ border: 1px solid rgba(0, 0, 0, 0.8);
72
  background: rgba(0, 0, 0, 0.15);
73
  border-radius: 2px;
74
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 1px 1px rgba(0, 0, 0, 0.1);
90
  }
91
  /*
92
  input[type="text"]:hover { border-radius: 8px; }
93
+ input[type="text"]:focus {
94
  outline: none;
95
+ border-radius: 8px;
96
  border-color: #EBD292;
97
  }
98
+ */
99
 
100
 
101
+ input[type="submit"], button[type="submit"] {
102
  width: 100%;
103
  padding: 8px 5px;
104
  background: #11b709;
templates/simple-two-column/config.php CHANGED
@@ -49,14 +49,7 @@ array(
49
  'options' => array('right'=>'Sidebar on right','left'=>'Sidebar on left'),
50
  'context' => 'normal'
51
  ),
52
- array(
53
- 'label' => 'Sidebar Color',
54
- 'description' => "Sidebar Background Color",
55
- 'id' => 'sidebar-color',
56
- 'type' => 'colorpicker',
57
- 'default' => '2A4480',
58
- 'context' => 'normal'
59
- ),
60
  array(
61
  'label' => 'Submit Button Color',
62
  'description' => "Submit Button Background Color",
@@ -66,27 +59,27 @@ array(
66
  'context' => 'normal'
67
  ),
68
  array(
69
- 'label' => 'Main Content Area Color',
70
  'description' => "Use this setting to change the template's main content area background color",
71
  'id' => 'content-color',
72
  'type' => 'colorpicker',
73
- 'default' => '1240AB',
74
  'context' => 'normal'
75
  ),
76
  array(
77
- 'label' => 'Background Color',
78
- 'description' => "Use this setting to change the template's background color",
79
- 'id' => 'body-color',
80
  'type' => 'colorpicker',
81
- 'default' => '06266F',
82
  'context' => 'normal'
83
  ),
84
  array(
85
- 'label' => 'Content Text Color',
86
- 'description' => "Content Text Color",
87
- 'id' => 'content-text-color',
88
  'type' => 'colorpicker',
89
- 'default' => 'ffffff',
90
  'context' => 'normal'
91
  ),
92
  array(
@@ -96,5 +89,13 @@ array(
96
  'type' => 'colorpicker',
97
  'default' => 'ffffff',
98
  'context' => 'normal'
99
- )
 
 
 
 
 
 
 
 
100
  );
49
  'options' => array('right'=>'Sidebar on right','left'=>'Sidebar on left'),
50
  'context' => 'normal'
51
  ),
52
+
 
 
 
 
 
 
 
53
  array(
54
  'label' => 'Submit Button Color',
55
  'description' => "Submit Button Background Color",
59
  'context' => 'normal'
60
  ),
61
  array(
62
+ 'label' => 'Main Content Area Background Color',
63
  'description' => "Use this setting to change the template's main content area background color",
64
  'id' => 'content-color',
65
  'type' => 'colorpicker',
66
+ 'default' => 'ffffff',
67
  'context' => 'normal'
68
  ),
69
  array(
70
+ 'label' => 'Main Content Area Text Color',
71
+ 'description' => "Content Text Color",
72
+ 'id' => 'content-text-color',
73
  'type' => 'colorpicker',
74
+ 'default' => '6F6F6F',
75
  'context' => 'normal'
76
  ),
77
  array(
78
+ 'label' => 'Sidebar Background Color',
79
+ 'description' => "Sidebar Background Color",
80
+ 'id' => 'sidebar-color',
81
  'type' => 'colorpicker',
82
+ 'default' => '2A4480',
83
  'context' => 'normal'
84
  ),
85
  array(
89
  'type' => 'colorpicker',
90
  'default' => 'ffffff',
91
  'context' => 'normal'
92
+ ),
93
+ array(
94
+ 'label' => 'Background Color',
95
+ 'description' => "Use this setting to change the template's background color",
96
+ 'id' => 'body-color',
97
+ 'type' => 'colorpicker',
98
+ 'default' => 'BABBBE',
99
+ 'context' => 'normal'
100
+ ),
101
  );
templates/simple-two-column/index.php CHANGED
@@ -1,4 +1,4 @@
1
- <?php
2
  /*****************************************/
3
  // Template Title: Simple Two Column Template
4
  // Plugin: Landing Pages - Inboundnow.com
@@ -8,7 +8,7 @@
8
  include_once(LANDINGPAGES_PATH.'libraries/library.shareme.php');
9
 
10
  /* Declare Template Key */
11
- $key = lp_get_parent_directory(dirname(__FILE__));
12
  $path = LANDINGPAGES_URLPATH.'templates/'.$key.'/';
13
  $url = plugins_url();
14
  /* Define Landing Pages's custom pre-load hook for 3rd party plugin integration */
@@ -16,24 +16,24 @@ do_action('lp_init');
16
 
17
  /* Load $post data */
18
  if (have_posts()) : while (have_posts()) : the_post();
19
-
20
  /* Pre-load meta data into variables */
21
-
22
- $content_color = lp_get_value($post, $key, 'content-color');
23
  $body_color = lp_get_value($post, $key, 'body-color');
24
- $sidebar_color = lp_get_value($post, $key, 'sidebar-color');
25
  $text_color = lp_get_value($post, $key, 'content-text-color');
26
  $sidebar_text_color = lp_get_value($post, $key, 'sidebar-text-color');
27
  $headline_color = lp_get_value($post, $key, 'headline-color');
28
  $logo = lp_get_value($post, $key, 'logo');
29
- $sidebar = lp_get_value($post, $key, 'sidebar');
30
  $social_display = lp_get_value($post, $key, 'display-social');
31
- $submit_button_color = lp_get_value($post, $key, 'submit-button-color');
32
  //prepare content
33
  $content = lp_content_area($post,null,true);
34
  // Get Colorscheme
35
  $submit_color_scheme = inbound_color_scheme($submit_button_color, 'int');
36
-
37
  // Get lighter submit color
38
  $top_grad_submit = inbound_color($submit_color_scheme, 35);
39
 
@@ -41,7 +41,7 @@ if (have_posts()) : while (have_posts()) : the_post();
41
  $red = $RBG_array['r'];
42
  $green = $RBG_array["g"];
43
  $blue = $RBG_array["b"];
44
-
45
  $RBG_array_1 = inbound_Hex_2_RGB($top_grad_submit);
46
  $red_1 = $RBG_array_1['r'];
47
  $green_1 = $RBG_array_1["g"];
@@ -64,7 +64,7 @@ if (have_posts()) : while (have_posts()) : the_post();
64
  echo "#left {background-color: #$content_color;}"; // change header color
65
  }
66
  ?> <?php if ($body_color !="") {
67
- echo "body {background-color: #$body_color;}"; // Change Body BG color
68
  }
69
  ?> <?php if ($text_color !="") {
70
  echo "#left-content {color: #$text_color;}";
@@ -76,7 +76,7 @@ if (have_posts()) : while (have_posts()) : the_post();
76
  opacity: 0.8;} ";
77
  }
78
  ?>
79
- <?php if ($sidebar === "left" ) { echo "#right {left:0px; -webkit-box-shadow: 18px 0px 29px rgba(50, 50, 50, 0.55); -moz-box-shadow: 18px 0px 29px rgba(50, 50, 50, 0.55); box-shadow: 18px 0px 29px rgba(50, 50, 50, 0.55);} #left {right: 0;} #left-content {padding-left: 40px;} #social-share-buttons {margin-left: -115px !important;}";
80
  } else { echo "#left {left: 0;}"; }
81
  ?>
82
  <?php if ($submit_button_color != "") {
@@ -89,25 +89,54 @@ if (have_posts()) : while (have_posts()) : the_post();
89
  background: linear-gradient(rgba($red_1,$green_1,$blue_1, 0.5), rgba($red,$green,$blue, 0.7));
90
  border: 1px solid #000;}";
91
  }
92
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
  </style>
94
  <?php /* Load all functions hooked to lp_head including global js and global css */
95
  wp_head(); // Load Regular WP Head
96
  do_action('lp_head'); // Load Custom Landing Page Specific Header Items
97
  ?>
98
-
 
 
 
 
 
 
 
99
  </head>
100
  <body>
101
-
 
 
 
 
102
  <div class="container">
103
-
104
-
105
- <div id="content-wrapper">
106
 
107
- <?php if ($social_display==="1" ) { // Show Social Media Icons?>
108
- <?php lp_social_media("vertical"); // print out social media buttons?>
109
- <?php } ?>
110
 
 
111
 
112
  <div id="right">
113
  <div id="right-content">
@@ -127,7 +156,8 @@ if (have_posts()) : while (have_posts()) : the_post();
127
  width: 60px;
128
  padding: 4px;
129
  }
130
- </style>
 
131
 
132
  </div><!-- end content-wrapper -->
133
 
1
+ <?php
2
  /*****************************************/
3
  // Template Title: Simple Two Column Template
4
  // Plugin: Landing Pages - Inboundnow.com
8
  include_once(LANDINGPAGES_PATH.'libraries/library.shareme.php');
9
 
10
  /* Declare Template Key */
11
+ $key = lp_get_parent_directory(dirname(__FILE__));
12
  $path = LANDINGPAGES_URLPATH.'templates/'.$key.'/';
13
  $url = plugins_url();
14
  /* Define Landing Pages's custom pre-load hook for 3rd party plugin integration */
16
 
17
  /* Load $post data */
18
  if (have_posts()) : while (have_posts()) : the_post();
19
+
20
  /* Pre-load meta data into variables */
21
+
22
+ $content_color = lp_get_value($post, $key, 'content-color');
23
  $body_color = lp_get_value($post, $key, 'body-color');
24
+ $sidebar_color = lp_get_value($post, $key, 'sidebar-color');
25
  $text_color = lp_get_value($post, $key, 'content-text-color');
26
  $sidebar_text_color = lp_get_value($post, $key, 'sidebar-text-color');
27
  $headline_color = lp_get_value($post, $key, 'headline-color');
28
  $logo = lp_get_value($post, $key, 'logo');
29
+ $sidebar = lp_get_value($post, $key, 'sidebar');
30
  $social_display = lp_get_value($post, $key, 'display-social');
31
+ $submit_button_color = lp_get_value($post, $key, 'submit-button-color');
32
  //prepare content
33
  $content = lp_content_area($post,null,true);
34
  // Get Colorscheme
35
  $submit_color_scheme = inbound_color_scheme($submit_button_color, 'int');
36
+
37
  // Get lighter submit color
38
  $top_grad_submit = inbound_color($submit_color_scheme, 35);
39
 
41
  $red = $RBG_array['r'];
42
  $green = $RBG_array["g"];
43
  $blue = $RBG_array["b"];
44
+
45
  $RBG_array_1 = inbound_Hex_2_RGB($top_grad_submit);
46
  $red_1 = $RBG_array_1['r'];
47
  $green_1 = $RBG_array_1["g"];
64
  echo "#left {background-color: #$content_color;}"; // change header color
65
  }
66
  ?> <?php if ($body_color !="") {
67
+ echo "body {background-color: #$body_color;}"; // Change Body BG color
68
  }
69
  ?> <?php if ($text_color !="") {
70
  echo "#left-content {color: #$text_color;}";
76
  opacity: 0.8;} ";
77
  }
78
  ?>
79
+ <?php if ($sidebar === "left" ) { echo "#right {left:0px;} #left {right: 0;} #left-content {padding-left: 40px;} #social-share-buttons {margin-left: -115px !important;}";
80
  } else { echo "#left {left: 0;}"; }
81
  ?>
82
  <?php if ($submit_button_color != "") {
89
  background: linear-gradient(rgba($red_1,$green_1,$blue_1, 0.5), rgba($red,$green,$blue, 0.7));
90
  border: 1px solid #000;}";
91
  }
92
+ ?>
93
+ #inbound-social-inbound-social-buttons {
94
+ text-align: center;
95
+ background: rgba(0,0,0,.6) !important;
96
+ padding: 0;
97
+ margin-top: 10px !important;
98
+ padding-bottom: 10px !important;
99
+ padding-top: 10px !important;
100
+ width: 470px !important;
101
+ z-index: 99999999999999;
102
+ /* position: fixed; */
103
+ /* bottom: 0px; */
104
+ margin: auto !important;
105
+ }
106
+ #social-holder {
107
+ position: fixed;
108
+ bottom: 0px;
109
+ width: 100%;
110
+ z-index: 9999999999999999;
111
+
112
+ }
113
+ .inbound-social-facebook.inbound-social-button {
114
+ padding-left: 12px;
115
+ }
116
  </style>
117
  <?php /* Load all functions hooked to lp_head including global js and global css */
118
  wp_head(); // Load Regular WP Head
119
  do_action('lp_head'); // Load Custom Landing Page Specific Header Items
120
  ?>
121
+ <script type="text/javascript">
122
+ jQuery(document).ready(function($) {
123
+ var h = jQuery(document).height();
124
+ $("#right").height(h + 200);
125
+ $("#left").height(h + 200);
126
+ });
127
+
128
+ </script>
129
  </head>
130
  <body>
131
+ <?php if ($social_display==="1" ) { // Show Social Media Icons?>
132
+ <div id="social-holder">
133
+ <?php lp_social_media(); // print out social media buttons?>
134
+ </div>
135
+ <?php } ?>
136
  <div class="container">
 
 
 
137
 
 
 
 
138
 
139
+ <div id="content-wrapper">
140
 
141
  <div id="right">
142
  <div id="right-content">
156
  width: 60px;
157
  padding: 4px;
158
  }
159
+ </style>
160
+
161
 
162
  </div><!-- end content-wrapper -->
163
 
templates/svtle/assets/css/style.css CHANGED
@@ -7,7 +7,7 @@ article, aside, details, figcaption, figure, footer, header, hgroup, nav, sectio
7
  display: inline;
8
  color:red;
9
  }
10
- input[type="text"], input[type="email"] {
11
  width: 97%;
12
  padding: 8px 4px 8px 10px;
13
  margin-bottom: 15px;
@@ -34,16 +34,16 @@ font-size: 13px; /*
34
  }
35
  /*
36
  input[type="text"]:hover { border-radius: 8px; }
37
- input[type="text"]:focus {
38
  outline: none;
39
- border-radius: 8px;
40
  border-color: #EBD292;
41
  }
42
- */
43
 
44
 
45
- input[type="submit"] {
46
- width: 100%;
47
  padding: 8px 5px;
48
  background: #634056;
49
  background: -moz-linear-gradient(rgba(99, 64, 86, 0.5), rgba(76, 49, 65, 0.7));
@@ -311,10 +311,6 @@ textarea {
311
  resize:vertical;
312
  }
313
 
314
- input:invalid, textarea:invalid {
315
- background-color:#f0dddd;
316
- }
317
-
318
  table {
319
  border-collapse:collapse;
320
  border-spacing:0;
@@ -1725,7 +1721,7 @@ li.feed {
1725
  }@media all and (min-width:1300px), all and (device-width:768px) and (device-height:1024px) and (orientation:landscape) {
1726
  header#sidebar {
1727
  margin-left:0;
1728
- padding-left:2%;
1729
  }
1730
 
1731
  header#sidebar
@@ -2232,7 +2228,7 @@ table {
2232
  padding:0;
2233
  }
2234
 
2235
- table th,
2236
  table
2237
  td {
2238
  padding:10px
@@ -2251,7 +2247,7 @@ td {
2251
  color:#666;
2252
  }
2253
 
2254
- table tr:last-child th,
2255
  table tr:last-child
2256
  td {
2257
  border-bottom:none;
@@ -2355,7 +2351,7 @@ ol.commentlist li:last-child {
2355
  margin-bottom:0;
2356
  }
2357
 
2358
- #comments .comment-body ul,
2359
  #comments .comment-body
2360
  ol {
2361
  margin-bottom:18px;
@@ -2404,13 +2400,13 @@ cite {
2404
  0 18px 0;
2405
  }
2406
 
2407
- .comment-meta a:link,
2408
  .comment-meta a:visited {
2409
  color:#888;
2410
  text-decoration:none;
2411
  }
2412
 
2413
- .comment-meta a:active,
2414
  .comment-meta a:hover {
2415
  color:#ff4b33;
2416
  }
@@ -2480,7 +2476,7 @@ p {
2480
  }
2481
 
2482
  input[type=submit] {
2483
-
2484
  }
2485
 
2486
  #respond {
7
  display: inline;
8
  color:red;
9
  }
10
+ input[type="text"], input[type="email"], button[type='submit'] {
11
  width: 97%;
12
  padding: 8px 4px 8px 10px;
13
  margin-bottom: 15px;
34
  }
35
  /*
36
  input[type="text"]:hover { border-radius: 8px; }
37
+ input[type="text"]:focus {
38
  outline: none;
39
+ border-radius: 8px;
40
  border-color: #EBD292;
41
  }
42
+ */
43
 
44
 
45
+ input[type="submit"], button[type='submit'] {
46
+ width: 95%;
47
  padding: 8px 5px;
48
  background: #634056;
49
  background: -moz-linear-gradient(rgba(99, 64, 86, 0.5), rgba(76, 49, 65, 0.7));
311
  resize:vertical;
312
  }
313
 
 
 
 
 
314
  table {
315
  border-collapse:collapse;
316
  border-spacing:0;
1721
  }@media all and (min-width:1300px), all and (device-width:768px) and (device-height:1024px) and (orientation:landscape) {
1722
  header#sidebar {
1723
  margin-left:0;
1724
+ padding-left:2%;
1725
  }
1726
 
1727
  header#sidebar
2228
  padding:0;
2229
  }
2230
 
2231
+ table th,
2232
  table
2233
  td {
2234
  padding:10px
2247
  color:#666;
2248
  }
2249
 
2250
+ table tr:last-child th,
2251
  table tr:last-child
2252
  td {
2253
  border-bottom:none;
2351
  margin-bottom:0;
2352
  }
2353
 
2354
+ #comments .comment-body ul,
2355
  #comments .comment-body
2356
  ol {
2357
  margin-bottom:18px;
2400
  0 18px 0;
2401
  }
2402
 
2403
+ .comment-meta a:link,
2404
  .comment-meta a:visited {
2405
  color:#888;
2406
  text-decoration:none;
2407
  }
2408
 
2409
+ .comment-meta a:active,
2410
  .comment-meta a:hover {
2411
  color:#ff4b33;
2412
  }
2476
  }
2477
 
2478
  input[type=submit] {
2479
+
2480
  }
2481
 
2482
  #respond {
templates/svtle/index.php CHANGED
@@ -11,7 +11,7 @@
11
  include_once(LANDINGPAGES_PATH.'libraries/library.shareme.php');
12
 
13
  /* Declare Template Key */
14
- $key = lp_get_parent_directory(dirname(__FILE__));
15
  $path = LANDINGPAGES_URLPATH.'templates/'.$key.'/';
16
  $url = plugins_url();
17
  /* Define Landing Pages's custom pre-load hook for 3rd party plugin integration */
@@ -19,29 +19,29 @@ do_action('lp_init');
19
 
20
  /* Load $post data */
21
  if (have_posts()) : while (have_posts()) : the_post();
22
-
23
  /* Pre-load meta data into variables */
24
-
25
- $sidebar_color = lp_get_value($post, $key, 'sidebar-color');
26
  $sidebar_text_color = lp_get_value($post, $key, 'sidebar-text-color');
27
- $header_color = lp_get_value($post, $key, 'header-color');
28
  $body_color = lp_get_value($post, $key, 'body-color');
29
  $text_color = lp_get_value($post, $key, 'page-text-color');
30
  $headline_color = lp_get_value($post, $key, 'headline-color');
31
  $logo = lp_get_value($post, $key, 'logo');
32
- $sidebar = lp_get_value($post, $key, 'sidebar');
33
- $social_display = lp_get_value($post, $key, 'display-social');
34
  $bg_image = lp_get_value($post, $key, 'bg-image');
35
  $mobile_form = lp_get_value($post, $key, 'mobile-form');
36
- $submit_button_color = lp_get_value($post, $key, 'submit-button-color');
37
  //prepare content
38
  $content = lp_content_area($post,null,true);
39
-
40
  // Convert Hex to RGB Value for submit button
41
  function Hex_2_RGB($hex) {
42
  $hex = preg_replace("/#/", "", $hex);
43
  $color = array();
44
-
45
  if(strlen($hex) == 3) {
46
  $color['r'] = hexdec(substr($hex, 0, 1) . $r);
47
  $color['g'] = hexdec(substr($hex, 1, 1) . $g);
@@ -52,14 +52,14 @@ function Hex_2_RGB($hex) {
52
  $color['g'] = hexdec(substr($hex, 2, 2));
53
  $color['b'] = hexdec(substr($hex, 4, 2));
54
  }
55
-
56
  return $color;
57
-
58
  }
59
  $RBG_array = Hex_2_RGB($submit_button_color);
60
- $red = $RBG_array['r'];
61
- $green = $RBG_array["g"];
62
- $blue = $RBG_array["b"];
63
 
64
  ?>
65
  <!DOCTYPE html>
@@ -72,7 +72,7 @@ $blue = $RBG_array["b"];
72
  <meta charset="UTF-8">
73
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.5, minimum-scale=0.5">
74
  <title><?php wp_title(); ?></title>
75
-
76
  <!--[if lt IE 9]>
77
  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
78
  <![endif]-->
@@ -91,23 +91,23 @@ $blue = $RBG_array["b"];
91
  echo "header#begin {background: #$header_color;}"; // change header color
92
  }
93
  ?> <?php if ($body_color !="") {
94
- echo "article.post {background-color: #$body_color;} section#river {background-color: #$body_color;}"; // Change Body BG color
95
  }
96
  ?>
97
  <?php if ($sidebar_text_color !="") {
98
  echo "header#sidebar {color: #$sidebar_text_color ;}
99
- input[type=\"text\"], input[type=\"email\"] {
100
  border: 1px solid #$sidebar_text_color;
101
  border: 1px solid #$sidebar_text_color;
102
- opacity: 0.8;}"; // Change Body BG color
103
  }
104
- ?>
105
  <?php if ($text_color !="") {
106
- echo "p {color: #$text_color;} html, button, input, select, textarea {color: #$text_color;}
107
  ";
108
  } ?>
109
  <?php if ($submit_button_color != "") {
110
- echo"input[type='submit'] {
111
  background: -moz-linear-gradient(rgba($red,$green,$blue, 0.5), rgba($red,$green,$blue, 0.7));
112
  background: -ms-linear-gradient(rgba($red,$green,$blue, 0.5), rgba($red,$green,$blue, 0.7));
113
  background: -o-linear-gradient(rgba($red,$green,$blue, 0.5), rgba($red,$green,$blue, 0.7));
@@ -117,6 +117,12 @@ $blue = $RBG_array["b"];
117
  border: 1px solid #000;}";
118
  }
119
  ?>
 
 
 
 
 
 
120
  </style>
121
  <script type="text/javascript">
122
  jQuery(document).ready(function () {
@@ -127,7 +133,7 @@ $blue = $RBG_array["b"];
127
  jQuery("#river").height(window_size);
128
  });
129
  </script>
130
- <?php wp_head(); // Load Regular WP Head
131
  do_action('lp_head'); // Load Custom Landing Page Specific Header Items ?>
132
  <?php if ($sidebar === "right" ) { echo
133
  "<link rel='stylesheet' href='". $path . "assets/css/flipped-layout.css' type='text/css' media='screen'>"; } ?>
@@ -192,11 +198,11 @@ $blue = $RBG_array["b"];
192
  jQuery(window).resize(function () {
193
  delay(function () {
194
  var width = jQuery(window).width();
195
- // If on desktop and window is less than 630px show the form at bottom
196
  if (width < 630) {
197
  jQuery("#lp_container").addClass("form-move").appendTo("article").show();
198
  } else {
199
- // Put the form back up top
200
  jQuery("#lp_container").removeClass("form-move").appendTo("#form-area").show();
201
  }
202
  }, pause);
@@ -205,8 +211,8 @@ $blue = $RBG_array["b"];
205
  });
206
  });
207
  </script>
208
- <?php } // end mobile form conditional
209
- break; endwhile; endif;
210
  do_action('lp_footer'); // load landing pages footer hook
211
  wp_footer(); // load normal wordpress footer ?>
212
  </body>
11
  include_once(LANDINGPAGES_PATH.'libraries/library.shareme.php');
12
 
13
  /* Declare Template Key */
14
+ $key = lp_get_parent_directory(dirname(__FILE__));
15
  $path = LANDINGPAGES_URLPATH.'templates/'.$key.'/';
16
  $url = plugins_url();
17
  /* Define Landing Pages's custom pre-load hook for 3rd party plugin integration */
19
 
20
  /* Load $post data */
21
  if (have_posts()) : while (have_posts()) : the_post();
22
+
23
  /* Pre-load meta data into variables */
24
+
25
+ $sidebar_color = lp_get_value($post, $key, 'sidebar-color');
26
  $sidebar_text_color = lp_get_value($post, $key, 'sidebar-text-color');
27
+ $header_color = lp_get_value($post, $key, 'header-color');
28
  $body_color = lp_get_value($post, $key, 'body-color');
29
  $text_color = lp_get_value($post, $key, 'page-text-color');
30
  $headline_color = lp_get_value($post, $key, 'headline-color');
31
  $logo = lp_get_value($post, $key, 'logo');
32
+ $sidebar = lp_get_value($post, $key, 'sidebar');
33
+ $social_display = lp_get_value($post, $key, 'display-social');
34
  $bg_image = lp_get_value($post, $key, 'bg-image');
35
  $mobile_form = lp_get_value($post, $key, 'mobile-form');
36
+ $submit_button_color = lp_get_value($post, $key, 'submit-button-color');
37
  //prepare content
38
  $content = lp_content_area($post,null,true);
39
+
40
  // Convert Hex to RGB Value for submit button
41
  function Hex_2_RGB($hex) {
42
  $hex = preg_replace("/#/", "", $hex);
43
  $color = array();
44
+
45
  if(strlen($hex) == 3) {
46
  $color['r'] = hexdec(substr($hex, 0, 1) . $r);
47
  $color['g'] = hexdec(substr($hex, 1, 1) . $g);
52
  $color['g'] = hexdec(substr($hex, 2, 2));
53
  $color['b'] = hexdec(substr($hex, 4, 2));
54
  }
55
+
56
  return $color;
57
+
58
  }
59
  $RBG_array = Hex_2_RGB($submit_button_color);
60
+ $red = (isset($RBG_array['r'])) ? $RBG_array['r'] : '0';
61
+ $green = (isset($RBG_array['g'])) ? $RBG_array['g'] : '0';
62
+ $blue = (isset($RBG_array['b'])) ? $RBG_array['b'] : '0';
63
 
64
  ?>
65
  <!DOCTYPE html>
72
  <meta charset="UTF-8">
73
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.5, minimum-scale=0.5">
74
  <title><?php wp_title(); ?></title>
75
+
76
  <!--[if lt IE 9]>
77
  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
78
  <![endif]-->
91
  echo "header#begin {background: #$header_color;}"; // change header color
92
  }
93
  ?> <?php if ($body_color !="") {
94
+ echo "article.post {background-color: #$body_color;} section#river {background-color: #$body_color;}"; // Change Body BG color
95
  }
96
  ?>
97
  <?php if ($sidebar_text_color !="") {
98
  echo "header#sidebar {color: #$sidebar_text_color ;}
99
+ input[type=\"text\"], input[type=\"email\"], button[type='submit'] {
100
  border: 1px solid #$sidebar_text_color;
101
  border: 1px solid #$sidebar_text_color;
102
+ opacity: 0.8;}"; // Change Body BG color
103
  }
104
+ ?>
105
  <?php if ($text_color !="") {
106
+ echo "p {color: #$text_color;} html, button, input, select, textarea {color: #$text_color;}
107
  ";
108
  } ?>
109
  <?php if ($submit_button_color != "") {
110
+ echo"input[type='submit'], button[type='submit'] {
111
  background: -moz-linear-gradient(rgba($red,$green,$blue, 0.5), rgba($red,$green,$blue, 0.7));
112
  background: -ms-linear-gradient(rgba($red,$green,$blue, 0.5), rgba($red,$green,$blue, 0.7));
113
  background: -o-linear-gradient(rgba($red,$green,$blue, 0.5), rgba($red,$green,$blue, 0.7));
117
  border: 1px solid #000;}";
118
  }
119
  ?>
120
+
121
+ #inbound-form-wrapper input[type=text], #inbound-form-wrapper input[type=url], #inbound-form-wrapper input[type=email], #inbound-form-wrapper input[type=tel], #inbound-form-wrapper input[type=number], #inbound-form-wrapper input[type=password] {
122
+ width: 90%;
123
+ color:#000;
124
+ }
125
+ }
126
  </style>
127
  <script type="text/javascript">
128
  jQuery(document).ready(function () {
133
  jQuery("#river").height(window_size);
134
  });
135
  </script>
136
+ <?php wp_head(); // Load Regular WP Head
137
  do_action('lp_head'); // Load Custom Landing Page Specific Header Items ?>
138
  <?php if ($sidebar === "right" ) { echo
139
  "<link rel='stylesheet' href='". $path . "assets/css/flipped-layout.css' type='text/css' media='screen'>"; } ?>
198
  jQuery(window).resize(function () {
199
  delay(function () {
200
  var width = jQuery(window).width();
201
+ // If on desktop and window is less than 630px show the form at bottom
202
  if (width < 630) {
203
  jQuery("#lp_container").addClass("form-move").appendTo("article").show();
204
  } else {
205
+ // Put the form back up top
206
  jQuery("#lp_container").removeClass("form-move").appendTo("#form-area").show();
207
  }
208
  }, pause);
211
  });
212
  });
213
  </script>
214
+ <?php } // end mobile form conditional
215
+ break; endwhile; endif;
216
  do_action('lp_footer'); // load landing pages footer hook
217
  wp_footer(); // load normal wordpress footer ?>
218
  </body>