Version Description
- Fixing addon store
Download this release
Release Info
Developer | DavidWells |
Plugin | WordPress Landing Pages |
Version | 1.8.0 |
Comparing to | |
See all releases |
Code changes from version 1.7.9 to 1.8.0
- js/admin/admin.post-edit.js +7 -0
- landing-pages.php +2 -2
- modules/module.store.php +1 -1
- readme.txt +4 -1
- shared/assets/frontend/js/analytics-src/analytics.events.js +6 -6
- shared/assets/frontend/js/analytics-src/analytics.forms.js +4 -2
- shared/assets/frontend/js/analytics-src/analytics.utils.js +13 -10
- shared/assets/frontend/js/analytics/inboundAnalytics.js +23 -18
- shared/assets/frontend/js/analytics/inboundAnalytics.min.js +2 -2
- shared/classes/class.ajax.php +40 -0
- shared/classes/class.form.php +285 -274
- shared/classes/class.lead-fields.php +41 -41
- shared/classes/class.menu.php +81 -81
- shared/classes/class.post-type.email-template.php +25 -25
- shared/classes/class.post-type.wp-lead.php +12 -12
- shared/shortcodes/inbound-shortcodes.php +6 -6
- shared/shortcodes/shortcodes/forms.php +3 -3
- shared/shortcodes/shortcodes/list-icon.php +1 -1
- shared/shortcodes/shortcodes/pricing.php +1 -1
- shared/shortcodes/shortcodes/tabs.php +1 -1
- shared/shortcodes/shortcodes/teaser.php +1 -1
- shared/shortcodes/shortcodes/testimonial.php +1 -1
- shared/templates/email-templates/inbound-new-lead-notification/preview.html +4 -4
- shared/templates/email-templates/token-test/token-test.php +48 -48
- shared/templates/email-templates/wp-notify-moderator/wp-notify-moderator.php +7 -7
js/admin/admin.post-edit.js
CHANGED
@@ -5,6 +5,13 @@ jQuery(document).ready(function($) {
|
|
5 |
alert('Oh no! jQuery Cookie not loaded. Your Server Might be Blocking this. Some functionality may be impaired');
|
6 |
}
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
// Filter Styling
|
10 |
jQuery('#template-filter li').first().addClass('button-primary');
|
5 |
alert('Oh no! jQuery Cookie not loaded. Your Server Might be Blocking this. Some functionality may be impaired');
|
6 |
}
|
7 |
|
8 |
+
jQuery('.button.button-small').each(function(){
|
9 |
+
var $this = jQuery(this);
|
10 |
+
var text = $this.text();
|
11 |
+
if(text === "Get Shortlink") {
|
12 |
+
$this.hide();
|
13 |
+
}
|
14 |
+
});
|
15 |
|
16 |
// Filter Styling
|
17 |
jQuery('#template-filter li').first().addClass('button-primary');
|
landing-pages.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Landing Pages
|
4 |
Plugin URI: http://www.inboundnow.com/landing-pages/
|
5 |
Description: The first true all-in-one Landing Page solution for WordPress, including ongoing conversion metrics, a/b split testing, unlimited design options and so much more!
|
6 |
-
Version: 1.
|
7 |
Author: Inbound Now
|
8 |
Author URI: http://www.inboundnow.com/
|
9 |
Text Domain: landing-pages
|
@@ -102,7 +102,7 @@ if (!class_exists('Inbound_Landing_Pages_Plugin')) {
|
|
102 |
*/
|
103 |
private static function load_constants() {
|
104 |
|
105 |
-
define('LANDINGPAGES_CURRENT_VERSION', '1.
|
106 |
define('LANDINGPAGES_URLPATH', plugins_url( '/' , __FILE__ ) );
|
107 |
define('LANDINGPAGES_PATH', WP_PLUGIN_DIR.'/'.plugin_basename( dirname(__FILE__) ).'/' );
|
108 |
define('LANDINGPAGES_PLUGIN_SLUG', plugin_basename( dirname(__FILE__) ) );
|
3 |
Plugin Name: Landing Pages
|
4 |
Plugin URI: http://www.inboundnow.com/landing-pages/
|
5 |
Description: The first true all-in-one Landing Page solution for WordPress, including ongoing conversion metrics, a/b split testing, unlimited design options and so much more!
|
6 |
+
Version: 1.8.0
|
7 |
Author: Inbound Now
|
8 |
Author URI: http://www.inboundnow.com/
|
9 |
Text Domain: landing-pages
|
102 |
*/
|
103 |
private static function load_constants() {
|
104 |
|
105 |
+
define('LANDINGPAGES_CURRENT_VERSION', '1.8.0' );
|
106 |
define('LANDINGPAGES_URLPATH', plugins_url( '/' , __FILE__ ) );
|
107 |
define('LANDINGPAGES_PATH', WP_PLUGIN_DIR.'/'.plugin_basename( dirname(__FILE__) ).'/' );
|
108 |
define('LANDINGPAGES_PLUGIN_SLUG', plugin_basename( dirname(__FILE__) ) );
|
modules/module.store.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php
|
2 |
jQuery("#lp-store-iframe-container iframe").css('height', window.outerHeight + "px");
|
3 |
}, 2000);
|
1 |
+
<?php
|
2 |
jQuery("#lp-store-iframe-container iframe").css('height', window.outerHeight + "px");
|
3 |
}, 2000);
|
readme.txt
CHANGED
@@ -7,7 +7,7 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
|
7 |
Tags: landing pages, inbound marketing, conversion pages, split testing, a b test, a b testing, a/b test, a/b testing, coming soon page, email list, landing page, list building, maintenance page, squeeze page, inbound now, landing-pages, splash pages, cpa, click tracking, goal tracking, analytics, free landing page templates
|
8 |
Requires at least: 3.8
|
9 |
Tested up to: 4.1
|
10 |
-
Stable Tag: 1.
|
11 |
|
12 |
Create landing pages for your WordPress site. Monitor and improve conversion rates, run A/B split tests, customize your own templates and more.
|
13 |
|
@@ -72,6 +72,9 @@ The plugin is also fully extendable and has a number of actions, filters, and ho
|
|
72 |
4. Choose from a ton of pre-made templates, use your existing design, or design your own theme!
|
73 |
|
74 |
== Changelog ==
|
|
|
|
|
|
|
75 |
= 1.7.9 =
|
76 |
* Even more security updates! Security for the win!
|
77 |
|
7 |
Tags: landing pages, inbound marketing, conversion pages, split testing, a b test, a b testing, a/b test, a/b testing, coming soon page, email list, landing page, list building, maintenance page, squeeze page, inbound now, landing-pages, splash pages, cpa, click tracking, goal tracking, analytics, free landing page templates
|
8 |
Requires at least: 3.8
|
9 |
Tested up to: 4.1
|
10 |
+
Stable Tag: 1.8.0
|
11 |
|
12 |
Create landing pages for your WordPress site. Monitor and improve conversion rates, run A/B split tests, customize your own templates and more.
|
13 |
|
72 |
4. Choose from a ton of pre-made templates, use your existing design, or design your own theme!
|
73 |
|
74 |
== Changelog ==
|
75 |
+
= 1.8.0 =
|
76 |
+
* Fixing addon store
|
77 |
+
|
78 |
= 1.7.9 =
|
79 |
* Even more security updates! Security for the win!
|
80 |
|
shared/assets/frontend/js/analytics-src/analytics.events.js
CHANGED
@@ -62,12 +62,7 @@ var _inboundEvents = (function(_inbound) {
|
|
62 |
|
63 |
var is_IE_11 = !(window.ActiveXObject) && "ActiveXObject" in window;
|
64 |
|
65 |
-
if(
|
66 |
-
|
67 |
-
var TriggerEvent = document.createEvent("Event");
|
68 |
-
TriggerEvent.initEvent(eventName, true, true);
|
69 |
-
|
70 |
-
} else {
|
71 |
|
72 |
var TriggerEvent = new CustomEvent(eventName, {
|
73 |
detail: data,
|
@@ -75,7 +70,11 @@ var _inboundEvents = (function(_inbound) {
|
|
75 |
cancelable: options.cancelable
|
76 |
});
|
77 |
|
|
|
|
|
|
|
78 |
}
|
|
|
79 |
/*! 1. Trigger Pure Javascript Event See: https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Creating_and_triggering_events for example on creating events */
|
80 |
window.dispatchEvent(TriggerEvent);
|
81 |
/*! 2. Trigger _inbound action */
|
@@ -90,6 +89,7 @@ var _inboundEvents = (function(_inbound) {
|
|
90 |
function triggerJQueryEvent(eventName, data) {
|
91 |
if (window.jQuery) {
|
92 |
var data = data || {};
|
|
|
93 |
jQuery(document).trigger(eventName, data);
|
94 |
}
|
95 |
};
|
62 |
|
63 |
var is_IE_11 = !(window.ActiveXObject) && "ActiveXObject" in window;
|
64 |
|
65 |
+
if( typeof CustomEvent === 'function') {
|
|
|
|
|
|
|
|
|
|
|
66 |
|
67 |
var TriggerEvent = new CustomEvent(eventName, {
|
68 |
detail: data,
|
70 |
cancelable: options.cancelable
|
71 |
});
|
72 |
|
73 |
+
} else {
|
74 |
+
var TriggerEvent = document.createEvent("Event");
|
75 |
+
TriggerEvent.initEvent(eventName, true, true);
|
76 |
}
|
77 |
+
|
78 |
/*! 1. Trigger Pure Javascript Event See: https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Creating_and_triggering_events for example on creating events */
|
79 |
window.dispatchEvent(TriggerEvent);
|
80 |
/*! 2. Trigger _inbound action */
|
89 |
function triggerJQueryEvent(eventName, data) {
|
90 |
if (window.jQuery) {
|
91 |
var data = data || {};
|
92 |
+
/*! try catch here */
|
93 |
jQuery(document).trigger(eventName, data);
|
94 |
}
|
95 |
};
|
shared/assets/frontend/js/analytics-src/analytics.forms.js
CHANGED
@@ -430,7 +430,7 @@ var InboundForms = (function(_inbound) {
|
|
430 |
value = (formInput.value);
|
431 |
}
|
432 |
|
433 |
-
console.log('select val', value);
|
434 |
break;
|
435 |
}
|
436 |
|
@@ -522,6 +522,8 @@ var InboundForms = (function(_inbound) {
|
|
522 |
|
523 |
fullName = (fName && lName) ? fName + " " + lName : fullName;
|
524 |
|
|
|
|
|
525 |
_inbound.deBugger('forms', "fName = " + fName);
|
526 |
_inbound.deBugger('forms', "lName = " + lName);
|
527 |
_inbound.deBugger('forms', "fullName = " + fullName);
|
@@ -821,7 +823,7 @@ var InboundForms = (function(_inbound) {
|
|
821 |
"facebook.com", "verizon.net", "sbcglobal.net", "att.net", "gmx.com", "mail.com", "outlook.com", "icloud.com"
|
822 |
],
|
823 |
|
824 |
-
defaultTopLevelDomains: ["co.jp", "co.uk", "com", "net", "org", "info", "edu", "gov", "mil", "ca"],
|
825 |
|
826 |
run: function(opts) {
|
827 |
opts.domains = opts.domains || Mailcheck.defaultDomains;
|
430 |
value = (formInput.value);
|
431 |
}
|
432 |
|
433 |
+
//console.log('select val', value);
|
434 |
break;
|
435 |
}
|
436 |
|
522 |
|
523 |
fullName = (fName && lName) ? fName + " " + lName : fullName;
|
524 |
|
525 |
+
if(!fName) { fName = "n/a"; }
|
526 |
+
|
527 |
_inbound.deBugger('forms', "fName = " + fName);
|
528 |
_inbound.deBugger('forms', "lName = " + lName);
|
529 |
_inbound.deBugger('forms', "fullName = " + fullName);
|
823 |
"facebook.com", "verizon.net", "sbcglobal.net", "att.net", "gmx.com", "mail.com", "outlook.com", "icloud.com"
|
824 |
],
|
825 |
|
826 |
+
defaultTopLevelDomains: ["co.jp", "co.uk", "com", "net", "org", "info", "edu", "gov", "mil", "ca", "de"],
|
827 |
|
828 |
run: function(opts) {
|
829 |
opts.domains = opts.domains || Mailcheck.defaultDomains;
|
shared/assets/frontend/js/analytics-src/analytics.utils.js
CHANGED
@@ -519,16 +519,19 @@ var _inboundUtils = (function(_inbound) {
|
|
519 |
},
|
520 |
ajaxSendData: function(url, callback, method, data, sync) {
|
521 |
var x = this.ajaxPolyFill();
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
|
|
|
|
|
|
532 |
},
|
533 |
ajaxGet: function(url, data, callback, sync) {
|
534 |
var query = [];
|
519 |
},
|
520 |
ajaxSendData: function(url, callback, method, data, sync) {
|
521 |
var x = this.ajaxPolyFill();
|
522 |
+
/* timeout for safari idiocy */
|
523 |
+
setTimeout(function() {
|
524 |
+
x.open(method, url, true);
|
525 |
+
x.onreadystatechange = function() {
|
526 |
+
if (x.readyState == 4) {
|
527 |
+
callback(x.responseText)
|
528 |
+
}
|
529 |
+
};
|
530 |
+
if (method == 'POST') {
|
531 |
+
x.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
|
532 |
+
}
|
533 |
+
x.send(data);
|
534 |
+
}, 100);
|
535 |
},
|
536 |
ajaxGet: function(url, data, callback, sync) {
|
537 |
var query = [];
|
shared/assets/frontend/js/analytics/inboundAnalytics.js
CHANGED
@@ -1055,16 +1055,19 @@ var _inboundUtils = (function(_inbound) {
|
|
1055 |
},
|
1056 |
ajaxSendData: function(url, callback, method, data, sync) {
|
1057 |
var x = this.ajaxPolyFill();
|
1058 |
-
|
1059 |
-
|
1060 |
-
|
1061 |
-
|
1062 |
-
|
1063 |
-
|
1064 |
-
|
1065 |
-
|
1066 |
-
|
1067 |
-
|
|
|
|
|
|
|
1068 |
},
|
1069 |
ajaxGet: function(url, data, callback, sync) {
|
1070 |
var query = [];
|
@@ -1656,7 +1659,7 @@ var InboundForms = (function(_inbound) {
|
|
1656 |
value = (formInput.value);
|
1657 |
}
|
1658 |
|
1659 |
-
console.log('select val', value);
|
1660 |
break;
|
1661 |
}
|
1662 |
|
@@ -1748,6 +1751,8 @@ var InboundForms = (function(_inbound) {
|
|
1748 |
|
1749 |
fullName = (fName && lName) ? fName + " " + lName : fullName;
|
1750 |
|
|
|
|
|
1751 |
_inbound.deBugger('forms', "fName = " + fName);
|
1752 |
_inbound.deBugger('forms', "lName = " + lName);
|
1753 |
_inbound.deBugger('forms', "fullName = " + fullName);
|
@@ -2047,7 +2052,7 @@ var InboundForms = (function(_inbound) {
|
|
2047 |
"facebook.com", "verizon.net", "sbcglobal.net", "att.net", "gmx.com", "mail.com", "outlook.com", "icloud.com"
|
2048 |
],
|
2049 |
|
2050 |
-
defaultTopLevelDomains: ["co.jp", "co.uk", "com", "net", "org", "info", "edu", "gov", "mil", "ca"],
|
2051 |
|
2052 |
run: function(opts) {
|
2053 |
opts.domains = opts.domains || Mailcheck.defaultDomains;
|
@@ -2296,12 +2301,7 @@ var _inboundEvents = (function(_inbound) {
|
|
2296 |
|
2297 |
var is_IE_11 = !(window.ActiveXObject) && "ActiveXObject" in window;
|
2298 |
|
2299 |
-
if(
|
2300 |
-
|
2301 |
-
var TriggerEvent = document.createEvent("Event");
|
2302 |
-
TriggerEvent.initEvent(eventName, true, true);
|
2303 |
-
|
2304 |
-
} else {
|
2305 |
|
2306 |
var TriggerEvent = new CustomEvent(eventName, {
|
2307 |
detail: data,
|
@@ -2309,7 +2309,11 @@ var _inboundEvents = (function(_inbound) {
|
|
2309 |
cancelable: options.cancelable
|
2310 |
});
|
2311 |
|
|
|
|
|
|
|
2312 |
}
|
|
|
2313 |
/*! 1. Trigger Pure Javascript Event See: https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Creating_and_triggering_events for example on creating events */
|
2314 |
window.dispatchEvent(TriggerEvent);
|
2315 |
/*! 2. Trigger _inbound action */
|
@@ -2324,6 +2328,7 @@ var _inboundEvents = (function(_inbound) {
|
|
2324 |
function triggerJQueryEvent(eventName, data) {
|
2325 |
if (window.jQuery) {
|
2326 |
var data = data || {};
|
|
|
2327 |
jQuery(document).trigger(eventName, data);
|
2328 |
}
|
2329 |
};
|
1055 |
},
|
1056 |
ajaxSendData: function(url, callback, method, data, sync) {
|
1057 |
var x = this.ajaxPolyFill();
|
1058 |
+
/* timeout for safari idiocy */
|
1059 |
+
setTimeout(function() {
|
1060 |
+
x.open(method, url, true);
|
1061 |
+
x.onreadystatechange = function() {
|
1062 |
+
if (x.readyState == 4) {
|
1063 |
+
callback(x.responseText)
|
1064 |
+
}
|
1065 |
+
};
|
1066 |
+
if (method == 'POST') {
|
1067 |
+
x.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
|
1068 |
+
}
|
1069 |
+
x.send(data);
|
1070 |
+
}, 100);
|
1071 |
},
|
1072 |
ajaxGet: function(url, data, callback, sync) {
|
1073 |
var query = [];
|
1659 |
value = (formInput.value);
|
1660 |
}
|
1661 |
|
1662 |
+
//console.log('select val', value);
|
1663 |
break;
|
1664 |
}
|
1665 |
|
1751 |
|
1752 |
fullName = (fName && lName) ? fName + " " + lName : fullName;
|
1753 |
|
1754 |
+
if(!fName) { fName = "n/a"; }
|
1755 |
+
|
1756 |
_inbound.deBugger('forms', "fName = " + fName);
|
1757 |
_inbound.deBugger('forms', "lName = " + lName);
|
1758 |
_inbound.deBugger('forms', "fullName = " + fullName);
|
2052 |
"facebook.com", "verizon.net", "sbcglobal.net", "att.net", "gmx.com", "mail.com", "outlook.com", "icloud.com"
|
2053 |
],
|
2054 |
|
2055 |
+
defaultTopLevelDomains: ["co.jp", "co.uk", "com", "net", "org", "info", "edu", "gov", "mil", "ca", "de"],
|
2056 |
|
2057 |
run: function(opts) {
|
2058 |
opts.domains = opts.domains || Mailcheck.defaultDomains;
|
2301 |
|
2302 |
var is_IE_11 = !(window.ActiveXObject) && "ActiveXObject" in window;
|
2303 |
|
2304 |
+
if( typeof CustomEvent === 'function') {
|
|
|
|
|
|
|
|
|
|
|
2305 |
|
2306 |
var TriggerEvent = new CustomEvent(eventName, {
|
2307 |
detail: data,
|
2309 |
cancelable: options.cancelable
|
2310 |
});
|
2311 |
|
2312 |
+
} else {
|
2313 |
+
var TriggerEvent = document.createEvent("Event");
|
2314 |
+
TriggerEvent.initEvent(eventName, true, true);
|
2315 |
}
|
2316 |
+
|
2317 |
/*! 1. Trigger Pure Javascript Event See: https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Creating_and_triggering_events for example on creating events */
|
2318 |
window.dispatchEvent(TriggerEvent);
|
2319 |
/*! 2. Trigger _inbound action */
|
2328 |
function triggerJQueryEvent(eventName, data) {
|
2329 |
if (window.jQuery) {
|
2330 |
var data = data || {};
|
2331 |
+
/*! try catch here */
|
2332 |
jQuery(document).trigger(eventName, data);
|
2333 |
}
|
2334 |
};
|
shared/assets/frontend/js/analytics/inboundAnalytics.min.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
/*! Inbound Analyticsv1.0.0 | (c) 2015 Inbound Now | https://github.com/inboundnow/cta */
|
2 |
-
var inbound_data=inbound_data||{},_inboundOptions=_inboundOptions||{},_gaq=_gaq||[],_inbound=function(e){var t={timeout:3e4,formAutoTracking:!0,formAutoPopulation:!0},n={init:function(){_inbound.Utils.init(),_inbound.Utils.domReady(window,function(){_inbound.DomLoaded()})},DomLoaded:function(){_inbound.PageTracking.init(),_inbound.Forms.init(),_inbound.Utils.setUrlParams(),_inbound.LeadsAPI.init(),setTimeout(function(){_inbound.Forms.init()},2e3),_inbound.trigger("analytics_ready")},extend:function(e,t){var n,i={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n]);for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n]);return i},debug:function(){},deBugger:function(e,t,n){if(console){var i,o,a,r=document.location.hash?document.location.hash:"",s=r.indexOf("#debug")>-1,t=t||!1;r&&r.match(/debug/)&&(r=r.split("-"),a=r[1]),o="true"===_inbound.Utils.readCookie("inbound_debug")?!0:!1,i="true"===_inbound.Utils.readCookie("inbound_debug_"+e)?!0:!1,(i||s||o)&&(t&&"string"==typeof t&&(o||"all"===a?console.log('logAll "'+e+'" =>',t):i?console.log('log "'+e+'" =>',t):e===a&&console.log('#log "'+e+'" =>',t)),n&&n instanceof Function&&n())}}},i=n.extend(t,e);return n.Settings=i||{},n}(_inboundOptions),_inboundHooks=function(e){var t=function(){function e(e,t,n,i){return"string"==typeof e&&"function"==typeof t&&(n=parseInt(n||10,10),s("actions",e,t,n,i)),c}function t(){var e=Array.prototype.slice.call(arguments),t=e.shift();return"string"==typeof t&&u("actions",t,e),c}function n(e,t){return"string"==typeof e&&r("actions",e,t),c}function i(e,t,n){return"string"==typeof e&&"function"==typeof t&&(n=parseInt(n||10,10),s("filters",e,t,n)),c}function o(){var e=Array.prototype.slice.call(arguments),t=e.shift();return"string"==typeof t?u("filters",t,e):c}function a(e,t){return"string"==typeof e&&r("filters",e,t),c}function r(e,t,n,i){if(d[e][t])if(n){var o,a=d[e][t];if(i)for(o=a.length;o--;){var r=a[o];r.callback===n&&r.context===i&&a.splice(o,1)}else for(o=a.length;o--;)a[o].callback===n&&a.splice(o,1)}else d[e][t]=[]}function s(e,t,n,i,o){var a={callback:n,priority:i,context:o},r=d[e][t];r?(r.push(a),r=l(r)):r=[a],d[e][t]=r}function l(e){for(var t,n,i,o=1,a=e.length;a>o;o++){for(t=e[o],n=o;(i=e[n-1])&&i.priority>t.priority;)e[n]=e[n-1],--n;e[n]=t}return e}function u(e,t,n){var i=d[e][t];if(!i)return"filters"===e?n[0]:!1;var o=0,a=i.length;if("filters"===e)for(;a>o;o++)n[0]=i[o].callback.apply(i[o].context,n);else for(;a>o;o++)i[o].callback.apply(i[o].context,n);return"filters"===e?n[0]:!0}var c={removeFilter:a,applyFilters:o,addFilter:i,removeAction:n,doAction:t,addAction:e},d={actions:{},filters:{}};return c};return e.hooks=new t,e.add_action=function(){var t=arguments[0].split(" ");for(k in t)arguments[0]="inbound."+t[k],e.hooks.addAction.apply(this,arguments);return this},e.remove_action=function(){return arguments[0]="inbound."+arguments[0],e.hooks.removeAction.apply(this,arguments),this},e.do_action=function(){return arguments[0]="inbound."+arguments[0],e.hooks.doAction.apply(this,arguments),this},e.add_filter=function(){return arguments[0]="inbound."+arguments[0],e.hooks.addFilter.apply(this,arguments),this},e.remove_filter=function(){return arguments[0]="inbound."+arguments[0],e.hooks.removeFilter.apply(this,arguments),this},e.apply_filters=function(){return arguments[0]="inbound."+arguments[0],e.hooks.applyFilters.apply(this,arguments)},e}(_inbound||{}),_inboundUtils=function(e){var t;return e.Utils={init:function(){this.polyFills(),this.checkLocalStorage(),this.SetUID(),this.storeReferralData()},polyFills:function(){window.console||(window.console={});for(var e=["log","info","warn","error","debug","trace","dir","group","groupCollapsed","groupEnd","time","timeEnd","profile","profileEnd","dirxml","assert","count","markTimeline","timeStamp","clear"],t=0;t<e.length;t++)window.console[e[t]]||(window.console[e[t]]=function(){});try{new CustomEvent("?")}catch(n){this.CustomEvent=function(e,t){function n(n,o){var a=document.createEvent(e);return null!==n?i.call(a,n,(o||(o=t)).bubbles,o.cancelable,o.detail):a.initCustomEvent=i,a}function i(t,n,i,o){this["init"+e](t,n,i,o),"detail"in this||(this.detail=o)}return n}(this.CustomEvent?"CustomEvent":"Event",{bubbles:!1,cancelable:!1,detail:null})}document.querySelectorAll||(document.querySelectorAll=function(e){var t,n=document.createElement("style"),i=[];for(document.documentElement.firstChild.appendChild(n),document._qsa=[],n.styleSheet.cssText=e+"{x-qsa:expression(document._qsa && document._qsa.push(this))}",window.scrollBy(0,0),n.parentNode.removeChild(n);document._qsa.length;)t=document._qsa.shift(),t.style.removeAttribute("x-qsa"),i.push(t);return document._qsa=null,i}),document.querySelector||(document.querySelector=function(e){var t=document.querySelectorAll(e);return t.length?t[0]:null}),!("innerText"in document.createElement("a"))&&"getSelection"in window&&HTMLElement.prototype.__defineGetter__("innerText",function(){for(var e,t=window.getSelection(),n=[],i=0;i<t.rangeCount;i++)n[i]=t.getRangeAt(i);t.removeAllRanges(),t.selectAllChildren(this),e=t.toString(),t.removeAllRanges();for(var i=0;i<n.length;i++)t.addRange(n[i]);return e})},createCookie:function(e,t,n){var i="";if(n){var o=new Date;o.setTime(o.getTime()+24*n*60*60*1e3),i="; expires="+o.toGMTString()}document.cookie=e+"="+t+i+"; path=/"},readCookie:function(e){for(var t=e+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var o=n[i];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return null},eraseCookie:function(e){this.createCookie(e,"",-1)},getAllCookies:function(){var t={};if(document.cookie&&""!==document.cookie)for(var n=document.cookie.split(";"),i=0;i<n.length;i++){var o=n[i].split("=");o[0]=o[0].replace(/^ /,""),t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e.totalStorage("inbound_cookies",t),t},setUrlParams:function(){var n={};!function(){for(var e,t=function(e){return decodeURIComponent(e).replace(/\+/g," ")},i=window.location.search.substring(1),o=/([^&=]+)=?([^&]*)/g;e=o.exec(i);)if("-1"==e[1].indexOf("["))n[t(e[1])]=t(e[2]);else{var a=e[1].indexOf("["),r=e[1].slice(a+1,e[1].indexOf("]",a)),s=t(e[1].slice(0,a));"object"!=typeof n[s]&&(n[t(s)]={},n[t(s)].length=0),r?n[t(s)][t(r)]=t(e[2]):Array.prototype.push.call(n[t(s)],t(e[2]))}}();for(var i in n)if("object"==typeof n[i])for(var o in n[i])this.createCookie(o,n[i][o],30);else this.createCookie(i,n[i],30);if(t){var a=e.totalStorage("inbound_url_params")||{},r=this.mergeObjs(a,n);e.totalStorage("inbound_url_params",r)}var s={option1:"yo",option2:"woooo"};e.trigger("url_parameters",n,s)},getAllUrlParams:function(){var n={};if(t)var n=e.totalStorage("inbound_url_params");return n},getParameterVal:function(e,t){return(RegExp(e+"=(.+?)(&|$)").exec(t)||[,!1])[1]},checkLocalStorage:function(){if("localStorage"in window)try{ls="undefined"==typeof window.localStorage?void 0:window.localStorage,t="undefined"==typeof ls||"undefined"==typeof window.JSON?!1:!0}catch(e){t=!1}return t},showLocalStorageSize:function(){function e(e){return 2*e.length}function t(e){return e/1024/1024}function n(t){return{name:t,size:e(localStorage[t])}}function i(e){return e.size=t(e.size).toFixed(2)+" MB",e}Object.keys(localStorage).map(n).map(i)},addDays:function(e,t){return new Date(e.getTime()+24*t*60*60*1e3)},GetDate:function(){var e=new Date,t=e.getDate(),n=10>t?"0":"",i=e.getFullYear(),o=e.getHours(),a=10>o?"0":"",r=e.getMinutes(),s=10>r?"0":"",l=e.getSeconds(),u=10>l?"0":"",c=e.getMonth()+1,d=10>c?"0":"",m=i+"/"+d+c+"/"+n+t+" "+a+o+":"+s+r+":"+u+l;return m},SetSessionTimeout:function(){var e=(this.readCookie("lead_session_expire"),new Date);e.setTime(e.getTime()+18e5),this.createCookie("lead_session_expire",!0,e,!0)},storeReferralData:function(){var t=new Date,n=document.referrer||"Direct Traffic",i=e.Utils.readCookie("inbound_referral_site"),o=e.totalStorage("inbound_original_referral");t.setTime(t.getTime()+18e5),i||this.createCookie("inbound_referral_site",n,t,!0),o||e.totalStorage("inbound_original_referral",o)},CreateUID:function(e){var t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz".split(""),n="";e||(e=Math.floor(Math.random()*t.length));for(var i=0;e>i;i++)n+=t[Math.floor(Math.random()*t.length)];return n},SetUID:function(e){if(!this.readCookie("wp_lead_uid")){var t=e||this.CreateUID(35);this.createCookie("wp_lead_uid",t)}},countProperties:function(e){var t=0;for(var n in e)e.hasOwnProperty(n)&&++t;return t},mergeObjs:function(e,t){var n={};for(var i in e)n[i]=e[i];for(var i in t)n[i]=t[i];return n},hasClass:function(e,t){var n=!1;if("classList"in document.documentElement)var n=t.classList.contains(e);else var n=new RegExp("(^|\\s)"+e+"(\\s|$)").test(t.className);return n},addClass:function(e,t){"classList"in document.documentElement?t.classList.add(e):this.hasClass(t,e)||(t.className+=(t.className?" ":"")+e)},removeClass:function(e,t){"classList"in document.documentElement?t.classList.remove(e):this.hasClass(t,e)&&(t.className=t.className.replace(new RegExp("(^|\\s)*"+e+"(\\s|$)*","g"),""))},removeElement:function(e){e.parentNode.removeChild(e)},trim:function(e){return e=e.replace(/(^\s*)|(\s*$)/gi,""),e=e.replace(/[ ]{2,}/gi," "),e=e.replace(/\n /,"\n")},ajaxPolyFill:function(){if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;for(var e,t=["MSXML2.XmlHttp.5.0","MSXML2.XmlHttp.4.0","MSXML2.XmlHttp.3.0","MSXML2.XmlHttp.2.0","Microsoft.XmlHttp"],n=0;n<t.length;n++)try{e=new ActiveXObject(t[n]);break}catch(i){}return e},ajaxSendData:function(e,t,n,i,o){var a=this.ajaxPolyFill();a.open(n,e,o),a.onreadystatechange=function(){4==a.readyState&&t(a.responseText)},"POST"==n&&a.setRequestHeader("Content-type","application/x-www-form-urlencoded"),a.send(i)},ajaxGet:function(e,t,n,i){var o=[];for(var a in t)o.push(encodeURIComponent(a)+"="+encodeURIComponent(t[a]));this.ajaxSendData(e+"?"+o.join("&"),n,"GET",null,i)},ajaxPost:function(e,t,n,i){var o=[];for(var a in t)o.push(encodeURIComponent(a)+"="+encodeURIComponent(t[a]));this.ajaxSendData(e,n,"POST",o.join("&"),i)},makeRequest:function(t,n){if(window.XMLHttpRequest)httpRequest=new XMLHttpRequest;else if(window.ActiveXObject)try{httpRequest=new ActiveXObject("Msxml2.XMLHTTP")}catch(i){try{httpRequest=new ActiveXObject("Microsoft.XMLHTTP")}catch(i){}}return httpRequest?(httpRequest.onreadystatechange=e.LeadsAPI.alertContents,httpRequest.open("GET",t),httpRequest.send(n),void 0):(alert("Giving up :( Cannot create an XMLHTTP instance"),!1)},domReady:function(e,t){var n=!1,i=!0,o=e.document,a=o.documentElement,r=o.addEventListener?"addEventListener":"attachEvent",s=o.addEventListener?"removeEventListener":"detachEvent",l=o.addEventListener?"":"on",u=function(i){("readystatechange"!=i.type||"complete"==o.readyState)&&(("load"==i.type?e:o)[s](l+i.type,u,!1),!n&&(n=!0)&&t.call(e,i.type||i))},c=function(){try{a.doScroll("left")}catch(e){return setTimeout(c,50),void 0}u("poll")};if("complete"==o.readyState)t.call(e,"lazy");else{if(o.createEventObject&&a.doScroll){try{i=!e.frameElement}catch(d){}i&&c()}o[r](l+"DOMContentLoaded",u,!1),o[r](l+"readystatechange",u,!1),e[r](l+"load",u,!1)}},addListener:function(e,t,n){e&&(e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n)},removeListener:function(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},throttle:function(e,t){var n,i,o,a=null,r=0,s=function(){r=new Date,a=null,o=e.apply(n,i)};return function(){var l=new Date;r||(r=l);var u=t-(l-r);return n=this,i=arguments,0>=u?(clearTimeout(a),a=null,r=l,o=e.apply(n,i)):a||(a=setTimeout(s,u)),o}},checkTypeofGA:function(){"function"==typeof ga&&(universalGA=!0),"undefined"!=typeof _gaq&&"function"==typeof _gaq.push&&(classicGA=!0),"undefined"!=typeof dataLayer&&"function"==typeof dataLayer.push&&(googleTagManager=!0)}},e}(_inbound||{}),InboundForms=function(e){var t=!1,n=e.Utils,o=[],a=[],r=[],s=e.Settings,l=["first name","last name","name","email","e-mail","phone","website","job title","your favorite food","company","tele","address","comment"];if(e.Forms={init:function(){e.Forms.runFieldMappingFilters(),e.Forms.assignTrackClass(),e.Forms.formTrackInit()},runFieldMappingFilters:function(){l=e.hooks.applyFilters("forms.field_map",l)},debug:function(e,n){if(t&&console){var e=e||!1;e&&"string"==typeof e&&console.log(e),n&&n instanceof Function&&n()}},formTrackInit:function(){for(var e=0;e<window.document.forms.length;e++){var t=!1,n=window.document.forms[e];n.dataset.formProcessed||(n.dataset.formProcessed=!0,t=this.checkTrackStatus(n),t&&(this.attachFormSubmitEvent(n),this.initFormMapping(n)))}},checkTrackStatus:function(t){var n=t.getAttribute("class");return""!==n&&null!==n?n.toLowerCase().indexOf("wpl-track-me")>-1?!0:n.toLowerCase().indexOf("inbound-track")>-1?!0:(cb=function(){console.log(t)},e.deBugger("forms","This form not tracked. Please assign on in settings...",cb),!1):void 0},assignTrackClass:function(){if(window.inbound_settings){if(inbound_settings.inbound_track_include){var t=inbound_settings.inbound_track_include.split(","),n="add selectors "+inbound_settings.inbound_track_include;e.deBugger("forms",n),this.loopClassSelectors(t,"add")}if(inbound_settings.inbound_track_exclude){var t=inbound_settings.inbound_track_exclude.split(","),n="remove selectors "+inbound_settings.inbound_track_exclude;e.deBugger("forms",n),this.loopClassSelectors(t,"remove")}}},loopClassSelectors:function(t,i){for(var o=t.length-1;o>=0;o--){var a=n.trim(t[o]);-1===a.indexOf("#")&&-1===a.indexOf(".")&&(a="#"+a),a=document.querySelector(a),a&&("add"===i?(e.Utils.addClass("wpl-track-me",a),e.Utils.addClass("inbound-track",a)):(e.Utils.removeClass("wpl-track-me",a),e.Utils.removeClass("inbound-track",a)))}},initFormMapping:function(e){for(var t=[],n=0;n<e.elements.length;n++)formInput=e.elements[n],"hidden"!==formInput.type?(this.mapField(formInput),this.rememberInputValues(formInput),s.formAutoPopulation&&this.fillInputValues(formInput)):t.push(formInput);for(var i=t.length-1;i>=0;i--)formInput=t[i],this.mapField(formInput)},mapField:function(t){var a=t.id||!1,r=t.name||!1,s=this.getInputLabel(t);if(s){var u=this.ignoreFieldByLabel(s[0].innerText);if(u)return t.dataset.ignoreFormField=!0,!1}for(i=0;i<l.length;i++){var c=!1,d=l[i],m=n.trim(d),f=m.replace(/ /g,"_");r&&r.toLowerCase().indexOf(m)>-1?(c=!0,e.deBugger("forms","Found matching name attribute for -> "+m)):a&&a.toLowerCase().indexOf(m)>-1?(c=!0,e.deBugger("forms","Found matching ID attribute for ->"+m)):s?s[0].innerText.toLowerCase().indexOf(m)>-1&&(c=!0,e.deBugger("forms","Found matching sibling label for -> "+m)):o.push(m),c&&(this.addDataAttr(t,f),this.removeArrayItem(l,m),i--)}return inbound_data},formListener:function(t){t.preventDefault(),e.Forms.saveFormData(t.target),document.body.style.cursor="wait"},attachFormSubmitEvent:function(e){n.addListener(e,"submit",this.formListener);var t=document.querySelector(".inbound-email");n.addListener(t,"blur",this.mailCheck)},ignoreFieldByLabel:function(t){var n=!1;return t?((-1!=t.toLowerCase().indexOf("credit card")||-1!=t.toLowerCase().indexOf("card number"))&&(n=!0),(-1!=t.toLowerCase().indexOf("expiration")||-1!=t.toLowerCase().indexOf("expiry"))&&(n=!0),("month"==t.toLowerCase()||"mm"==t.toLowerCase()||"yy"==t.toLowerCase()||"yyyy"==t.toLowerCase()||"year"==t.toLowerCase())&&(n=!0),(-1!=t.toLowerCase().indexOf("cvv")||-1!=t.toLowerCase().indexOf("cvc")||-1!=t.toLowerCase().indexOf("secure code")||-1!=t.toLowerCase().indexOf("security code"))&&(n=!0),n&&e.deBugger("forms","ignore "+t),n):!1},ignoreFieldByValue:function(e){var t=!1;if(!e)return!1;("visa"==e.toLowerCase()||"mastercard"==e.toLowerCase()||"american express"==e.toLowerCase()||"amex"==e.toLowerCase()||"discover"==e.toLowerCase())&&(t=!0);var n=new RegExp("/^[0-9]+$/");if(n.test(e)){var i=e.replace(" ","");this.isInt(i)&&i.length>=16&&(t=!0)}return t},isInt:function(e){return"number"==typeof e&&isFinite(e)&&e%1===0},releaseFormSubmit:function(e){document.body.style.cursor="default",n.removeClass("wpl-track-me",e),n.removeListener(e,"submit",this.formListener);var t=e.getAttribute("class");return""!==t&&null!==t&&-1!=t.toLowerCase().indexOf("wpcf7-form")?(setTimeout(function(){document.body.style.cursor="default"},300),!0):(e.submit(),setTimeout(function(){for(var t=0;t<e.elements.length;t++)formInput=e.elements[t],type=formInput.type||!1,"submit"===type&&"submit"===formInput.name&&e.elements[t].click()},2e3),void 0)},saveFormData:function(t){for(var i=i||{},o=0;o<t.elements.length;o++)if(formInput=t.elements[o],multiple=!1,formInput.name){if(formInput.dataset.ignoreFormField){e.deBugger("forms","ignore "+formInput.name);continue}switch(inputName=formInput.name.replace(/\[([^\[]*)\]/g,"%5B%5D$1"),i[inputName]||(i[inputName]={}),formInput.type&&(i[inputName].type=formInput.type),i[inputName].name||(i[inputName].name=formInput.name),formInput.dataset.mapFormField&&(i[inputName].map=formInput.dataset.mapFormField),formInput.nodeName){case"INPUT":if(l=this.getInputValue(formInput),l===!1)continue;break;case"TEXTAREA":l=formInput.value;break;case"SELECT":if(formInput.multiple){values=[],multiple=!0;for(var s=0;s<formInput.length;s++)formInput[s].selected&&values.push(encodeURIComponent(formInput[s].value))}else l=formInput.value;console.log("select val",l)}if(e.deBugger("forms","Input Value = "+l),l){i[inputName].value||(i[inputName].value=[]),i[inputName].value.push(multiple?values.join(","):encodeURIComponent(l));var l=multiple?values.join(","):encodeURIComponent(l)}}e.deBugger("forms",i);for(var u in i){var c=i[u].value,d=i[u].map;if("undefined"!=typeof c&&null!=c&&""!=c&&a.push(u+"="+i[u].value.join(",")),"undefined"!=typeof d&&null!=d&&i[u].value&&(r.push(d+"="+i[u].value.join(",")),"email"===u))var m=i[u].value.join(",")}var f=a.join("&");e.deBugger("forms","Stringified Raw Form PARAMS: "+f);var g=r.join("&");e.deBugger("forms","Stringified Mapped PARAMS"+g);var m=n.getParameterVal("email",g)||n.readCookie("wp_lead_email");m||(m=n.getParameterVal("wpleads_email_address",g));var p=n.getParameterVal("name",g),v=n.getParameterVal("first_name",g),h=n.getParameterVal("last_name",g);if(!h&&v){var _=decodeURI(v).split(" ");_.length>0&&(v=_[0],h=_[1])}if(p&&!h&&!v){var _=decodeURI(p).split(" ");_.length>0&&(v=_[0],h=_[1])}p=v&&h?v+" "+h:p,e.deBugger("forms","fName = "+v),e.deBugger("forms","lName = "+h),e.deBugger("forms","fullName = "+p);var b=e.totalStorage("page_views")||{},y=e.totalStorage("inbound_url_params")||{};if("undefined"!=typeof landing_path_info)var w=landing_path_info.variation;else if("undefined"!=typeof cta_path_info)var w=cta_path_info.variation;else var w=0;var k=inbound_settings.post_type||"page",C=inbound_settings.post_id||0;search_data={},formData={action:"inbound_lead_store",email:m,full_name:p,first_name:v,last_name:h,raw_params:f,mapped_params:g,url_params:JSON.stringify(y),search_data:"test",page_views:JSON.stringify(b),post_type:k,page_id:C,variation:w,source:n.readCookie("inbound_referral_site")},callback=function(i){e.deBugger("forms","Lead Created with ID: "+i),i=parseInt(i,10),formData.leadID=i,i&&(n.createCookie("wp_lead_id",i),e.totalStorage.deleteItem("page_views"),e.totalStorage.deleteItem("tracking_events")),e.trigger("form_after_submission",formData),e.Forms.releaseFormSubmit(t)},e.trigger("form_before_submission",formData),n.ajaxPost(inbound_settings.admin_url,formData,callback)},rememberInputValues:function(t){var i=(t.name?"inbound_"+t.name:"",t.type?t.type:"text");return"submit"===i||"hidden"===i||"file"===i||"password"===i||t.dataset.ignoreFormField?!1:(n.addListener(t,"change",function(t){if(t.target.name){if("checkbox"!==i)var o=t.target.value;else for(var a=[],r=document.querySelectorAll('input[name="'+t.target.name+'"]'),s=0;s<r.length;s++){var l=r[s].checked;l&&a.push(r[s].value),o=a.join(",")}inputData={name:t.target.name,node:t.target.nodeName.toLowerCase(),type:i,value:o,mapping:t.target.dataset.mapFormField},e.trigger("form_input_change",inputData),n.createCookie("inbound_"+t.target.name,encodeURIComponent(o))}}),void 0)},fillInputValues:function(e){var t=e.name?"inbound_"+e.name:"",i=e.type?e.type:"text";if("submit"===i||"hidden"===i||"file"===i||"password"===i)return!1;if(n.readCookie(t)&&"comment"!=t)if(value=decodeURIComponent(n.readCookie(t)),"checkbox"===i||"radio"===i)for(var o=value.split(","),a=0;a<o.length;a++)e.value.indexOf(o[a])>-1&&(e.checked=!0);else"undefined"!==value&&(e.value=value)},getInputLabel:function(e){var t;return(t=this.siblingsIsLabel(e))?t:(t=this.CheckParentForLabel(e))?t:!1},getInputValue:function(e){var t=!1;switch(e.type){case"radio":case"checkbox":e.checked&&(t=e.value);break;case"text":case"hidden":default:t=e.value}return t},addDataAttr:function(e,t){for(var n=document.getElementsByName(e.name),i=n.length-1;i>=0;i--)e.dataset.mapFormField||(n[i].dataset.mapFormField=t)},removeArrayItem:function(e,t){if(e.indexOf)index=e.indexOf(t);else for(index=e.length-1;index>=0&&e[index]!==t;--index);index>=0&&e.splice(index,1)},siblingsIsLabel:function(e){for(var t=this.getSiblings(e),n=[],i=t.length-1;i>=0;i--)"label"===t[i].nodeName.toLowerCase()&&n.push(t[i]);return n.length>0&&n.length<2?n:!1},getChildren:function(e,t){for(var n=[];e;e=e.nextSibling)1==e.nodeType&&e!=t&&n.push(e);return n},getSiblings:function(e){return this.getChildren(e.parentNode.firstChild,e)},CheckParentForLabel:function(e){if("FORM"===e.nodeName)return null;do{var t=e.getElementsByTagName("label");if(t.length>0&&t.length<2)return e.getElementsByTagName("label")}while(e=e.parentNode);return null},mailCheck:function(){var e=document.querySelector(".inbound-email");e&&(n.addListener(e,"blur",this.mailCheck),u.run({email:document.querySelector(".inbound-email").value,suggested:function(t){var i=document.querySelector(".email_suggestion");i&&n.removeElement(i);var o=document.createElement("span");o.innerHTML="<span class=\"email_suggestion\">Did you mean <b><i id='email_correction' style='cursor: pointer;' title=\"click to update\">"+t.full+"</b></i>?</span>",e.parentNode.insertBefore(o,e.nextSibling);var a=document.getElementById("email_correction");n.addListener(a,"click",function(){e.value=a.innerHTML,a.parentNode.parentNode.innerHTML="Fixed!"})},empty:function(){}}))}},"undefined"==typeof u)var u={domainThreshold:1,topLevelThreshold:3,defaultDomains:["yahoo.com","google.com","hotmail.com","gmail.com","me.com","aol.com","mac.com","live.com","comcast.net","googlemail.com","msn.com","hotmail.co.uk","yahoo.co.uk","facebook.com","verizon.net","sbcglobal.net","att.net","gmx.com","mail.com","outlook.com","icloud.com"],defaultTopLevelDomains:["co.jp","co.uk","com","net","org","info","edu","gov","mil","ca"],run:function(e){e.domains=e.domains||u.defaultDomains,e.topLevelDomains=e.topLevelDomains||u.defaultTopLevelDomains,e.distanceFunction=e.distanceFunction||u.sift3Distance;var t=function(e){return e},n=e.suggested||t,i=e.empty||t,o=u.suggest(u.encodeEmail(e.email),e.domains,e.topLevelDomains,e.distanceFunction);return o?n(o):i()},suggest:function(e,t,n,i){e=e.toLowerCase();var o=this.splitEmail(e),a=this.findClosestDomain(o.domain,t,i,this.domainThreshold);if(a){if(a!=o.domain)return{address:o.address,domain:a,full:o.address+"@"+a}}else{var r=this.findClosestDomain(o.topLevelDomain,n,i,this.topLevelThreshold);if(o.domain&&r&&r!=o.topLevelDomain){var s=o.domain;return a=s.substring(0,s.lastIndexOf(o.topLevelDomain))+r,{address:o.address,domain:a,full:o.address+"@"+a}}}return!1},findClosestDomain:function(e,t,n,i){i=i||this.topLevelThreshold;var o,a=99,r=null;if(!e||!t)return!1;n||(n=this.sift3Distance);for(var s=0;s<t.length;s++){if(e===t[s])return e;o=n(e,t[s]),a>o&&(a=o,r=t[s])}return i>=a&&null!==r?r:!1},sift3Distance:function(e,t){if(null===e||0===e.length)return null===t||0===t.length?0:t.length;if(null===t||0===t.length)return e.length;for(var n=0,i=0,o=0,a=0,r=5;n+i<e.length&&n+o<t.length;){if(e.charAt(n+i)==t.charAt(n+o))a++;else{i=0,o=0;for(var s=0;r>s;s++){if(n+s<e.length&&e.charAt(n+s)==t.charAt(n)){i=s;break}if(n+s<t.length&&e.charAt(n)==t.charAt(n+s)){o=s;break}}}n++}return(e.length+t.length)/2-a},splitEmail:function(e){var t=e.trim().split("@");if(t.length<2)return!1;for(var n=0;n<t.length;n++)if(""===t[n])return!1;var i=t.pop(),o=i.split("."),a="";if(0===o.length)return!1;if(1==o.length)a=o[0];else{for(var n=1;n<o.length;n++)a+=o[n]+".";o.length>=2&&(a=a.substring(0,a.length-1))}return{topLevelDomain:a,domain:i,address:t.join("@")}},encodeEmail:function(e){var t=encodeURI(e);return t=t.replace("%20"," ").replace("%25","%").replace("%5E","^").replace("%60","`").replace("%7B","{").replace("%7C","|").replace("%7D","}")}};return e}(_inbound||{}),_inboundEvents=function(e){function t(t,i,o){var i=i||{};o=o||{},o.bubbles=o.bubbles||!0,o.cancelable=o.cancelable||!0,i=e.apply_filters("filter_"+t,i);var a=!window.ActiveXObject&&"ActiveXObject"in window;if(a){var r=document.createEvent("Event");r.initEvent(t,!0,!0)}else var r=new CustomEvent(t,{detail:i,bubbles:o.bubbles,cancelable:o.cancelable});window.dispatchEvent(r),e.do_action(t,i),n(t,i)}function n(e,t){if(window.jQuery){var t=t||{};jQuery(document).trigger(e,t)}}e.trigger=function(t,n){e.Events[t](n)};return e.Events={analytics_ready:function(){var e={opt1:!0},n={data:"xyxy"};t("analytics_ready",n,e)},url_parameters:function(e){t("url_parameters",e)},session_start:function(){console.log(""),t("session_start")},session_end:function(e){t("session_end",e),console.log("Session End")},session_active:function(){t("session_active")},session_idle:function(e){t("session_idle",e)},session_resume:function(){t("session_resume")},session_heartbeat:function(e){var n={clock:e,leadData:InboundLeadData};t("session_heartbeat",n)},page_visit:function(e){t("page_view",e)},page_first_visit:function(){t("page_first_visit"),e.deBugger("pages","First Ever Page View of this Page")},page_revisit:function(n){t("page_revisit",n);var i=function(){console.log("pageData",n),console.log("Page Revisit viewed "+n+" times")};e.deBugger("pages",status,i)},tab_hidden:function(){e.deBugger("pages","Tab Hidden"),t("tab_hidden")},tab_visible:function(){e.deBugger("pages","Tab Visible"),t("tab_visible")},tab_mouseout:function(){e.deBugger("pages","Tab Mouseout"),t("tab_mouseout")},form_input_change:function(n){var i=function(){console.log(n)};e.deBugger("forms","inputData change. Data=",i),t("form_input_change",n)},form_before_submission:function(e){t("form_before_submission",e)},form_after_submission:function(e){t("form_after_submission",e)},analyticsError:function(e,t,n){var i=new CustomEvent("inbound_analytics_error",{detail:{MLHttpRequest:e,textStatus:t,errorThrown:n}});window.dispatchEvent(i),console.log("Page Save Error")}},e}(_inbound||{}),InboundTotalStorage=function(e){var t,n,i="_inbound";if("localStorage"in window)try{n="undefined"==typeof window.localStorage?void 0:window.localStorage,t="undefined"==typeof n||"undefined"==typeof window.JSON?!1:!0,window.localStorage.setItem(i,"1"),window.localStorage.removeItem(i)}catch(o){t=!1}e.totalStorage=function(t,n){return e.totalStorage.impl.init(t,n)},e.totalStorage.setItem=function(t,n){return e.totalStorage.impl.setItem(t,n)},e.totalStorage.getItem=function(t){return e.totalStorage.impl.getItem(t)},e.totalStorage.getAll=function(){return e.totalStorage.impl.getAll()},e.totalStorage.deleteItem=function(t){return e.totalStorage.impl.deleteItem(t)},e.totalStorage.impl={init:function(e,t){return"undefined"!=typeof t?this.setItem(e,t):this.getItem(e)},setItem:function(i,o){if(!t)try{return e.Utils.createCookie(i,o),o}catch(a){console.log("Local Storage not supported by this browser. Install the cookie plugin on your site to take advantage of the same functionality. You can get it at https://github.com/carhartl/jquery-cookie")}var r=JSON.stringify(o);return n.setItem(i,r),this.parseResult(r)},getItem:function(i){if(!t)try{return this.parseResult(e.Utils.readCookie(i))}catch(o){return null}var a=n.getItem(i);return this.parseResult(a)},deleteItem:function(i){if(!t)try{return e.Utils.eraseCookie(i,null),!0}catch(o){return!1}return n.removeItem(i),!0},getAll:function(){var i=[];if(t)for(var o in n)o.length&&i.push({key:o,value:this.parseResult(n.getItem(o))});else try{for(var a=document.cookie.split(";"),r=0;r<a.length;r++){var s=a[r].split("="),l=s[0];i.push({key:l,value:this.parseResult(e.Utils.readCookie(l))})}}catch(u){return null}return i},parseResult:function(e){var t;try{t=JSON.parse(e),"undefined"==typeof t&&(t=e),"true"==t&&(t=!0),"false"==t&&(t=!1),parseFloat(t)==t&&"object"!=typeof t&&(t=parseFloat(t))}catch(n){t=e}return t}}}(_inbound||{}),_inboundLeadsAPI=function(e){return e.LeadsAPI={init:function(){var t=e.Utils,n=(t.readCookie("wp_lead_uid"),t.readCookie("wp_lead_id")),i=t.readCookie("lead_session_expire");i||(e.deBugger("leads","expired vistor. Run Processes"),n&&(e.LeadsAPI.getAllLeadData(),e.LeadsAPI.getLeadLists()))},setGlobalLeadData:function(e){InboundLeadData=e},getAllLeadData:function(){var t=e.Utils.readCookie("wp_lead_id"),n=e.totalStorage("inbound_lead_data"),i=e.Utils.readCookie("lead_data_expire");data={action:"inbound_get_all_lead_data",wp_lead_id:t},success=function(t){var n=JSON.parse(t);e.LeadsAPI.setGlobalLeadData(n),e.totalStorage("inbound_lead_data",n);var i=new Date;i.setTime(i.getTime()+18e5);var o=e.Utils.addDays(i,3);e.Utils.createCookie("lead_data_expire",!0,o)},n?(e.LeadsAPI.setGlobalLeadData(n),e.deBugger("lead","Set Global Lead Data from Localstorage"),i||(e.Utils.ajaxPost(inbound_settings.admin_url,data,success),e.deBugger("lead","localized data old. Pull new from DB"))):e.Utils.ajaxPost(inbound_settings.admin_url,data,success)},getLeadLists:function(){var t=e.Utils.readCookie("wp_lead_id"),n={action:"wpl_check_lists",wp_lead_id:t},i=function(){e.Utils.createCookie("lead_session_list_check",!0,{path:"/",expires:1}),e.deBugger("lead","Lists checked")};e.Utils.ajaxPost(inbound_settings.admin_url,n,i)}},e}(_inbound||{}),_inboundPageTracking=function(e){var t,n,i=!1,o=!1,a=!1,r=parseInt(e.Utils.readCookie("lead_session"),10)||0,s=0,l=(new Date,null),u=null,c=null,d=e.Utils,m=e.totalStorage("page_views")||{},f=e.Utils.GetDate(),g=inbound_settings.post_id||window.location.pathname,p=e.Settings.timeout||3e4;return e.PageTracking={init:function(i){this.CheckTimeOut(),i=i||{},t=parseInt(i.reportInterval,10)||10,n=parseInt(i.idleTimeout,10)||3,d.addListener(document,"keydown",d.throttle(e.PageTracking.pingSession,1e3)),d.addListener(document,"click",d.throttle(e.PageTracking.pingSession,1e3)),d.addListener(window,"mousemove",d.throttle(e.PageTracking.pingSession,1e3)),e.PageTracking.checkVisibility(),this.startSession()},setIdle:function(t){var t=t||"No Movement",n="Session IDLE. Activity Timeout due to "+t;e.deBugger("pages",n),clearTimeout(e.PageTracking.idleTimer),e.PageTracking.stopClock(),e.trigger("session_idle")},checkVisibility:function(){var t,n,i;"undefined"!=typeof document.hidden?(t="hidden",i="visibilitychange",n="visibilityState"):"undefined"!=typeof document.mozHidden?(t="mozHidden",i="mozvisibilitychange",n="mozVisibilityState"):"undefined"!=typeof document.msHidden?(t="msHidden",i="msvisibilitychange",n="msVisibilityState"):"undefined"!=typeof document.webkitHidden&&(t="webkitHidden",i="webkitvisibilitychange",n="webkitVisibilityState");var o=document[t];e.Utils.addListener(document,i,function(){o!=document[t]&&(document[t]?(e.trigger("tab_hidden"),e.PageTracking.setIdle("browser tab switch")):(e.trigger("tab_visible"),e.PageTracking.pingSession()),o=document[t])})},clock:function(){r+=1;var n=r/60,i="Total time spent on Page in this Session: "+n.toFixed(2)+" min";if(e.deBugger("pages",i),r>0&&r%t===0){var o=new Date;o.setTime(o.getTime()+18e5),d.createCookie("lead_session",r,o),e.trigger("session_heartbeat",r)}},inactiveClock:function(){s+=1;var t=(1800-s)/60,n="Time until Session Timeout: "+t.toFixed(2)+" min";
|
3 |
-
e.deBugger("pages",n),s>1800&&(e.trigger("session_end",InboundLeadData),e.Utils.eraseCookie("lead_session"),s=0,clearTimeout(u))},stopClock:function(){o=!0,clearTimeout(l),clearTimeout(u),u=setInterval(e.PageTracking.inactiveClock,1e3)},restartClock:function(){o=!1,e.trigger("session_resume"),e.deBugger("pages","Activity resumed. Session Active"),clearTimeout(l),s=0,clearTimeout(u),l=setInterval(e.PageTracking.clock,1e3)},turnOff:function(){e.PageTracking.setIdle(),a=!0},turnOn:function(){a=!1},startSession:function(){new Date;i=!0,l=setInterval(e.PageTracking.clock,1e3);var t=d.readCookie("lead_session");if(t)e.trigger("session_active");else{e.trigger("session_start");var n=new Date;n.setTime(n.getTime()+18e5),e.Utils.createCookie("lead_session",1,n)}this.pingSession()},resetInactiveFunc:function(){s=0,clearTimeout(u)},pingSession:function(t){a||(i||e.PageTracking.startSession(),o&&e.PageTracking.restartClock(),clearTimeout(c),c=setTimeout(e.PageTracking.setIdle,1e3*n+100),"undefined"!=typeof t&&"mousemove"===t.type&&e.PageTracking.mouseEvents(t))},mouseEvents:function(t){t.pageY<=5&&e.trigger("tab_mouseout")},getPageViews:function(){var t=e.Utils.checkLocalStorage();if(t){var n=localStorage.getItem("page_views"),i=JSON.parse(n);return i}},isRevisit:function(e){var t=!1,e=e||{},n=e[g];return"undefined"!=typeof n&&null!==n&&(t=!0),t},triggerPageView:function(t){var n={title:document.title,url:document.location.href,path:document.location.pathname,count:1};t?(m[g].push(f),n.count=m[g].length,e.trigger("page_revisit",n)):(m[g]=[],m[g].push(f),e.trigger("page_first_visit",n)),e.trigger("page_visit",n),e.totalStorage("page_views",m),this.storePageView()},CheckTimeOut:function(){var t,n,i=this.isRevisit(m);if(i){var o=m[g].length-1,a=m[g][o],r=Math.abs(new Date(a).getTime()-new Date(f).getTime());n=r>p,n?(t="Timeout Happened. Page view fired",this.triggerPageView(i)):(time_left=.001*Math.abs(p-r),t=p/1e3+" sec timeout not done: "+time_left+" seconds left")}else this.triggerPageView(i);e.deBugger("pages",t)},storePageView:function(){var t=e.Utils.readCookie("wp_lead_id"),n=e.Utils.readCookie("wp_lead_uid");if(t){var i={action:"wpl_track_user",wp_lead_uid:n,wp_lead_id:t,page_id:inbound_settings.post_id,current_url:window.location.href,json:"0"},o=function(){};e.Utils.ajaxPost(inbound_settings.admin_url,i,o)}}},e}(_inbound||{});_inbound.init(),InboundLeadData=_inbound.totalStorage("inbound_lead_data")||null;
|
1 |
/*! Inbound Analyticsv1.0.0 | (c) 2015 Inbound Now | https://github.com/inboundnow/cta */
|
2 |
+
var inbound_data=inbound_data||{},_inboundOptions=_inboundOptions||{},_gaq=_gaq||[],_inbound=function(e){var t={timeout:3e4,formAutoTracking:!0,formAutoPopulation:!0},n={init:function(){_inbound.Utils.init(),_inbound.Utils.domReady(window,function(){_inbound.DomLoaded()})},DomLoaded:function(){_inbound.PageTracking.init(),_inbound.Forms.init(),_inbound.Utils.setUrlParams(),_inbound.LeadsAPI.init(),setTimeout(function(){_inbound.Forms.init()},2e3),_inbound.trigger("analytics_ready")},extend:function(e,t){var n,i={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n]);for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n]);return i},debug:function(){},deBugger:function(e,t,n){if(console){var i,o,a,r=document.location.hash?document.location.hash:"",s=r.indexOf("#debug")>-1,t=t||!1;r&&r.match(/debug/)&&(r=r.split("-"),a=r[1]),o="true"===_inbound.Utils.readCookie("inbound_debug")?!0:!1,i="true"===_inbound.Utils.readCookie("inbound_debug_"+e)?!0:!1,(i||s||o)&&(t&&"string"==typeof t&&(o||"all"===a?console.log('logAll "'+e+'" =>',t):i?console.log('log "'+e+'" =>',t):e===a&&console.log('#log "'+e+'" =>',t)),n&&n instanceof Function&&n())}}},i=n.extend(t,e);return n.Settings=i||{},n}(_inboundOptions),_inboundHooks=function(e){var t=function(){function e(e,t,n,i){return"string"==typeof e&&"function"==typeof t&&(n=parseInt(n||10,10),s("actions",e,t,n,i)),c}function t(){var e=Array.prototype.slice.call(arguments),t=e.shift();return"string"==typeof t&&u("actions",t,e),c}function n(e,t){return"string"==typeof e&&r("actions",e,t),c}function i(e,t,n){return"string"==typeof e&&"function"==typeof t&&(n=parseInt(n||10,10),s("filters",e,t,n)),c}function o(){var e=Array.prototype.slice.call(arguments),t=e.shift();return"string"==typeof t?u("filters",t,e):c}function a(e,t){return"string"==typeof e&&r("filters",e,t),c}function r(e,t,n,i){if(d[e][t])if(n){var o,a=d[e][t];if(i)for(o=a.length;o--;){var r=a[o];r.callback===n&&r.context===i&&a.splice(o,1)}else for(o=a.length;o--;)a[o].callback===n&&a.splice(o,1)}else d[e][t]=[]}function s(e,t,n,i,o){var a={callback:n,priority:i,context:o},r=d[e][t];r?(r.push(a),r=l(r)):r=[a],d[e][t]=r}function l(e){for(var t,n,i,o=1,a=e.length;a>o;o++){for(t=e[o],n=o;(i=e[n-1])&&i.priority>t.priority;)e[n]=e[n-1],--n;e[n]=t}return e}function u(e,t,n){var i=d[e][t];if(!i)return"filters"===e?n[0]:!1;var o=0,a=i.length;if("filters"===e)for(;a>o;o++)n[0]=i[o].callback.apply(i[o].context,n);else for(;a>o;o++)i[o].callback.apply(i[o].context,n);return"filters"===e?n[0]:!0}var c={removeFilter:a,applyFilters:o,addFilter:i,removeAction:n,doAction:t,addAction:e},d={actions:{},filters:{}};return c};return e.hooks=new t,e.add_action=function(){var t=arguments[0].split(" ");for(k in t)arguments[0]="inbound."+t[k],e.hooks.addAction.apply(this,arguments);return this},e.remove_action=function(){return arguments[0]="inbound."+arguments[0],e.hooks.removeAction.apply(this,arguments),this},e.do_action=function(){return arguments[0]="inbound."+arguments[0],e.hooks.doAction.apply(this,arguments),this},e.add_filter=function(){return arguments[0]="inbound."+arguments[0],e.hooks.addFilter.apply(this,arguments),this},e.remove_filter=function(){return arguments[0]="inbound."+arguments[0],e.hooks.removeFilter.apply(this,arguments),this},e.apply_filters=function(){return arguments[0]="inbound."+arguments[0],e.hooks.applyFilters.apply(this,arguments)},e}(_inbound||{}),_inboundUtils=function(e){var t;return e.Utils={init:function(){this.polyFills(),this.checkLocalStorage(),this.SetUID(),this.storeReferralData()},polyFills:function(){window.console||(window.console={});for(var e=["log","info","warn","error","debug","trace","dir","group","groupCollapsed","groupEnd","time","timeEnd","profile","profileEnd","dirxml","assert","count","markTimeline","timeStamp","clear"],t=0;t<e.length;t++)window.console[e[t]]||(window.console[e[t]]=function(){});try{new CustomEvent("?")}catch(n){this.CustomEvent=function(e,t){function n(n,o){var a=document.createEvent(e);return null!==n?i.call(a,n,(o||(o=t)).bubbles,o.cancelable,o.detail):a.initCustomEvent=i,a}function i(t,n,i,o){this["init"+e](t,n,i,o),"detail"in this||(this.detail=o)}return n}(this.CustomEvent?"CustomEvent":"Event",{bubbles:!1,cancelable:!1,detail:null})}document.querySelectorAll||(document.querySelectorAll=function(e){var t,n=document.createElement("style"),i=[];for(document.documentElement.firstChild.appendChild(n),document._qsa=[],n.styleSheet.cssText=e+"{x-qsa:expression(document._qsa && document._qsa.push(this))}",window.scrollBy(0,0),n.parentNode.removeChild(n);document._qsa.length;)t=document._qsa.shift(),t.style.removeAttribute("x-qsa"),i.push(t);return document._qsa=null,i}),document.querySelector||(document.querySelector=function(e){var t=document.querySelectorAll(e);return t.length?t[0]:null}),!("innerText"in document.createElement("a"))&&"getSelection"in window&&HTMLElement.prototype.__defineGetter__("innerText",function(){for(var e,t=window.getSelection(),n=[],i=0;i<t.rangeCount;i++)n[i]=t.getRangeAt(i);t.removeAllRanges(),t.selectAllChildren(this),e=t.toString(),t.removeAllRanges();for(var i=0;i<n.length;i++)t.addRange(n[i]);return e})},createCookie:function(e,t,n){var i="";if(n){var o=new Date;o.setTime(o.getTime()+24*n*60*60*1e3),i="; expires="+o.toGMTString()}document.cookie=e+"="+t+i+"; path=/"},readCookie:function(e){for(var t=e+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var o=n[i];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return null},eraseCookie:function(e){this.createCookie(e,"",-1)},getAllCookies:function(){var t={};if(document.cookie&&""!==document.cookie)for(var n=document.cookie.split(";"),i=0;i<n.length;i++){var o=n[i].split("=");o[0]=o[0].replace(/^ /,""),t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e.totalStorage("inbound_cookies",t),t},setUrlParams:function(){var n={};!function(){for(var e,t=function(e){return decodeURIComponent(e).replace(/\+/g," ")},i=window.location.search.substring(1),o=/([^&=]+)=?([^&]*)/g;e=o.exec(i);)if("-1"==e[1].indexOf("["))n[t(e[1])]=t(e[2]);else{var a=e[1].indexOf("["),r=e[1].slice(a+1,e[1].indexOf("]",a)),s=t(e[1].slice(0,a));"object"!=typeof n[s]&&(n[t(s)]={},n[t(s)].length=0),r?n[t(s)][t(r)]=t(e[2]):Array.prototype.push.call(n[t(s)],t(e[2]))}}();for(var i in n)if("object"==typeof n[i])for(var o in n[i])this.createCookie(o,n[i][o],30);else this.createCookie(i,n[i],30);if(t){var a=e.totalStorage("inbound_url_params")||{},r=this.mergeObjs(a,n);e.totalStorage("inbound_url_params",r)}var s={option1:"yo",option2:"woooo"};e.trigger("url_parameters",n,s)},getAllUrlParams:function(){var n={};if(t)var n=e.totalStorage("inbound_url_params");return n},getParameterVal:function(e,t){return(RegExp(e+"=(.+?)(&|$)").exec(t)||[,!1])[1]},checkLocalStorage:function(){if("localStorage"in window)try{ls="undefined"==typeof window.localStorage?void 0:window.localStorage,t="undefined"==typeof ls||"undefined"==typeof window.JSON?!1:!0}catch(e){t=!1}return t},showLocalStorageSize:function(){function e(e){return 2*e.length}function t(e){return e/1024/1024}function n(t){return{name:t,size:e(localStorage[t])}}function i(e){return e.size=t(e.size).toFixed(2)+" MB",e}Object.keys(localStorage).map(n).map(i)},addDays:function(e,t){return new Date(e.getTime()+24*t*60*60*1e3)},GetDate:function(){var e=new Date,t=e.getDate(),n=10>t?"0":"",i=e.getFullYear(),o=e.getHours(),a=10>o?"0":"",r=e.getMinutes(),s=10>r?"0":"",l=e.getSeconds(),u=10>l?"0":"",c=e.getMonth()+1,d=10>c?"0":"",m=i+"/"+d+c+"/"+n+t+" "+a+o+":"+s+r+":"+u+l;return m},SetSessionTimeout:function(){var e=(this.readCookie("lead_session_expire"),new Date);e.setTime(e.getTime()+18e5),this.createCookie("lead_session_expire",!0,e,!0)},storeReferralData:function(){var t=new Date,n=document.referrer||"Direct Traffic",i=e.Utils.readCookie("inbound_referral_site"),o=e.totalStorage("inbound_original_referral");t.setTime(t.getTime()+18e5),i||this.createCookie("inbound_referral_site",n,t,!0),o||e.totalStorage("inbound_original_referral",o)},CreateUID:function(e){var t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz".split(""),n="";e||(e=Math.floor(Math.random()*t.length));for(var i=0;e>i;i++)n+=t[Math.floor(Math.random()*t.length)];return n},SetUID:function(e){if(!this.readCookie("wp_lead_uid")){var t=e||this.CreateUID(35);this.createCookie("wp_lead_uid",t)}},countProperties:function(e){var t=0;for(var n in e)e.hasOwnProperty(n)&&++t;return t},mergeObjs:function(e,t){var n={};for(var i in e)n[i]=e[i];for(var i in t)n[i]=t[i];return n},hasClass:function(e,t){var n=!1;if("classList"in document.documentElement)var n=t.classList.contains(e);else var n=new RegExp("(^|\\s)"+e+"(\\s|$)").test(t.className);return n},addClass:function(e,t){"classList"in document.documentElement?t.classList.add(e):this.hasClass(t,e)||(t.className+=(t.className?" ":"")+e)},removeClass:function(e,t){"classList"in document.documentElement?t.classList.remove(e):this.hasClass(t,e)&&(t.className=t.className.replace(new RegExp("(^|\\s)*"+e+"(\\s|$)*","g"),""))},removeElement:function(e){e.parentNode.removeChild(e)},trim:function(e){return e=e.replace(/(^\s*)|(\s*$)/gi,""),e=e.replace(/[ ]{2,}/gi," "),e=e.replace(/\n /,"\n")},ajaxPolyFill:function(){if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;for(var e,t=["MSXML2.XmlHttp.5.0","MSXML2.XmlHttp.4.0","MSXML2.XmlHttp.3.0","MSXML2.XmlHttp.2.0","Microsoft.XmlHttp"],n=0;n<t.length;n++)try{e=new ActiveXObject(t[n]);break}catch(i){}return e},ajaxSendData:function(e,t,n,i){var o=this.ajaxPolyFill();setTimeout(function(){o.open(n,e,!0),o.onreadystatechange=function(){4==o.readyState&&t(o.responseText)},"POST"==n&&o.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o.send(i)},100)},ajaxGet:function(e,t,n,i){var o=[];for(var a in t)o.push(encodeURIComponent(a)+"="+encodeURIComponent(t[a]));this.ajaxSendData(e+"?"+o.join("&"),n,"GET",null,i)},ajaxPost:function(e,t,n,i){var o=[];for(var a in t)o.push(encodeURIComponent(a)+"="+encodeURIComponent(t[a]));this.ajaxSendData(e,n,"POST",o.join("&"),i)},makeRequest:function(t,n){if(window.XMLHttpRequest)httpRequest=new XMLHttpRequest;else if(window.ActiveXObject)try{httpRequest=new ActiveXObject("Msxml2.XMLHTTP")}catch(i){try{httpRequest=new ActiveXObject("Microsoft.XMLHTTP")}catch(i){}}return httpRequest?(httpRequest.onreadystatechange=e.LeadsAPI.alertContents,httpRequest.open("GET",t),httpRequest.send(n),void 0):(alert("Giving up :( Cannot create an XMLHTTP instance"),!1)},domReady:function(e,t){var n=!1,i=!0,o=e.document,a=o.documentElement,r=o.addEventListener?"addEventListener":"attachEvent",s=o.addEventListener?"removeEventListener":"detachEvent",l=o.addEventListener?"":"on",u=function(i){("readystatechange"!=i.type||"complete"==o.readyState)&&(("load"==i.type?e:o)[s](l+i.type,u,!1),!n&&(n=!0)&&t.call(e,i.type||i))},c=function(){try{a.doScroll("left")}catch(e){return setTimeout(c,50),void 0}u("poll")};if("complete"==o.readyState)t.call(e,"lazy");else{if(o.createEventObject&&a.doScroll){try{i=!e.frameElement}catch(d){}i&&c()}o[r](l+"DOMContentLoaded",u,!1),o[r](l+"readystatechange",u,!1),e[r](l+"load",u,!1)}},addListener:function(e,t,n){e&&(e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n)},removeListener:function(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},throttle:function(e,t){var n,i,o,a=null,r=0,s=function(){r=new Date,a=null,o=e.apply(n,i)};return function(){var l=new Date;r||(r=l);var u=t-(l-r);return n=this,i=arguments,0>=u?(clearTimeout(a),a=null,r=l,o=e.apply(n,i)):a||(a=setTimeout(s,u)),o}},checkTypeofGA:function(){"function"==typeof ga&&(universalGA=!0),"undefined"!=typeof _gaq&&"function"==typeof _gaq.push&&(classicGA=!0),"undefined"!=typeof dataLayer&&"function"==typeof dataLayer.push&&(googleTagManager=!0)}},e}(_inbound||{}),InboundForms=function(e){var t=!1,n=e.Utils,o=[],a=[],r=[],s=e.Settings,l=["first name","last name","name","email","e-mail","phone","website","job title","your favorite food","company","tele","address","comment"];if(e.Forms={init:function(){e.Forms.runFieldMappingFilters(),e.Forms.assignTrackClass(),e.Forms.formTrackInit()},runFieldMappingFilters:function(){l=e.hooks.applyFilters("forms.field_map",l)},debug:function(e,n){if(t&&console){var e=e||!1;e&&"string"==typeof e&&console.log(e),n&&n instanceof Function&&n()}},formTrackInit:function(){for(var e=0;e<window.document.forms.length;e++){var t=!1,n=window.document.forms[e];n.dataset.formProcessed||(n.dataset.formProcessed=!0,t=this.checkTrackStatus(n),t&&(this.attachFormSubmitEvent(n),this.initFormMapping(n)))}},checkTrackStatus:function(t){var n=t.getAttribute("class");return""!==n&&null!==n?n.toLowerCase().indexOf("wpl-track-me")>-1?!0:n.toLowerCase().indexOf("inbound-track")>-1?!0:(cb=function(){console.log(t)},e.deBugger("forms","This form not tracked. Please assign on in settings...",cb),!1):void 0},assignTrackClass:function(){if(window.inbound_settings){if(inbound_settings.inbound_track_include){var t=inbound_settings.inbound_track_include.split(","),n="add selectors "+inbound_settings.inbound_track_include;e.deBugger("forms",n),this.loopClassSelectors(t,"add")}if(inbound_settings.inbound_track_exclude){var t=inbound_settings.inbound_track_exclude.split(","),n="remove selectors "+inbound_settings.inbound_track_exclude;e.deBugger("forms",n),this.loopClassSelectors(t,"remove")}}},loopClassSelectors:function(t,i){for(var o=t.length-1;o>=0;o--){var a=n.trim(t[o]);-1===a.indexOf("#")&&-1===a.indexOf(".")&&(a="#"+a),a=document.querySelector(a),a&&("add"===i?(e.Utils.addClass("wpl-track-me",a),e.Utils.addClass("inbound-track",a)):(e.Utils.removeClass("wpl-track-me",a),e.Utils.removeClass("inbound-track",a)))}},initFormMapping:function(e){for(var t=[],n=0;n<e.elements.length;n++)formInput=e.elements[n],"hidden"!==formInput.type?(this.mapField(formInput),this.rememberInputValues(formInput),s.formAutoPopulation&&this.fillInputValues(formInput)):t.push(formInput);for(var i=t.length-1;i>=0;i--)formInput=t[i],this.mapField(formInput)},mapField:function(t){var a=t.id||!1,r=t.name||!1,s=this.getInputLabel(t);if(s){var u=this.ignoreFieldByLabel(s[0].innerText);if(u)return t.dataset.ignoreFormField=!0,!1}for(i=0;i<l.length;i++){var c=!1,d=l[i],m=n.trim(d),f=m.replace(/ /g,"_");r&&r.toLowerCase().indexOf(m)>-1?(c=!0,e.deBugger("forms","Found matching name attribute for -> "+m)):a&&a.toLowerCase().indexOf(m)>-1?(c=!0,e.deBugger("forms","Found matching ID attribute for ->"+m)):s?s[0].innerText.toLowerCase().indexOf(m)>-1&&(c=!0,e.deBugger("forms","Found matching sibling label for -> "+m)):o.push(m),c&&(this.addDataAttr(t,f),this.removeArrayItem(l,m),i--)}return inbound_data},formListener:function(t){t.preventDefault(),e.Forms.saveFormData(t.target),document.body.style.cursor="wait"},attachFormSubmitEvent:function(e){n.addListener(e,"submit",this.formListener);var t=document.querySelector(".inbound-email");n.addListener(t,"blur",this.mailCheck)},ignoreFieldByLabel:function(t){var n=!1;return t?((-1!=t.toLowerCase().indexOf("credit card")||-1!=t.toLowerCase().indexOf("card number"))&&(n=!0),(-1!=t.toLowerCase().indexOf("expiration")||-1!=t.toLowerCase().indexOf("expiry"))&&(n=!0),("month"==t.toLowerCase()||"mm"==t.toLowerCase()||"yy"==t.toLowerCase()||"yyyy"==t.toLowerCase()||"year"==t.toLowerCase())&&(n=!0),(-1!=t.toLowerCase().indexOf("cvv")||-1!=t.toLowerCase().indexOf("cvc")||-1!=t.toLowerCase().indexOf("secure code")||-1!=t.toLowerCase().indexOf("security code"))&&(n=!0),n&&e.deBugger("forms","ignore "+t),n):!1},ignoreFieldByValue:function(e){var t=!1;if(!e)return!1;("visa"==e.toLowerCase()||"mastercard"==e.toLowerCase()||"american express"==e.toLowerCase()||"amex"==e.toLowerCase()||"discover"==e.toLowerCase())&&(t=!0);var n=new RegExp("/^[0-9]+$/");if(n.test(e)){var i=e.replace(" ","");this.isInt(i)&&i.length>=16&&(t=!0)}return t},isInt:function(e){return"number"==typeof e&&isFinite(e)&&e%1===0},releaseFormSubmit:function(e){document.body.style.cursor="default",n.removeClass("wpl-track-me",e),n.removeListener(e,"submit",this.formListener);var t=e.getAttribute("class");return""!==t&&null!==t&&-1!=t.toLowerCase().indexOf("wpcf7-form")?(setTimeout(function(){document.body.style.cursor="default"},300),!0):(e.submit(),setTimeout(function(){for(var t=0;t<e.elements.length;t++)formInput=e.elements[t],type=formInput.type||!1,"submit"===type&&"submit"===formInput.name&&e.elements[t].click()},2e3),void 0)},saveFormData:function(t){for(var i=i||{},o=0;o<t.elements.length;o++)if(formInput=t.elements[o],multiple=!1,formInput.name){if(formInput.dataset.ignoreFormField){e.deBugger("forms","ignore "+formInput.name);continue}switch(inputName=formInput.name.replace(/\[([^\[]*)\]/g,"%5B%5D$1"),i[inputName]||(i[inputName]={}),formInput.type&&(i[inputName].type=formInput.type),i[inputName].name||(i[inputName].name=formInput.name),formInput.dataset.mapFormField&&(i[inputName].map=formInput.dataset.mapFormField),formInput.nodeName){case"INPUT":if(l=this.getInputValue(formInput),l===!1)continue;break;case"TEXTAREA":l=formInput.value;break;case"SELECT":if(formInput.multiple){values=[],multiple=!0;for(var s=0;s<formInput.length;s++)formInput[s].selected&&values.push(encodeURIComponent(formInput[s].value))}else l=formInput.value}if(e.deBugger("forms","Input Value = "+l),l){i[inputName].value||(i[inputName].value=[]),i[inputName].value.push(multiple?values.join(","):encodeURIComponent(l));var l=multiple?values.join(","):encodeURIComponent(l)}}e.deBugger("forms",i);for(var u in i){var c=i[u].value,d=i[u].map;if("undefined"!=typeof c&&null!=c&&""!=c&&a.push(u+"="+i[u].value.join(",")),"undefined"!=typeof d&&null!=d&&i[u].value&&(r.push(d+"="+i[u].value.join(",")),"email"===u))var m=i[u].value.join(",")}var f=a.join("&");e.deBugger("forms","Stringified Raw Form PARAMS: "+f);var g=r.join("&");e.deBugger("forms","Stringified Mapped PARAMS"+g);var m=n.getParameterVal("email",g)||n.readCookie("wp_lead_email");m||(m=n.getParameterVal("wpleads_email_address",g));var p=n.getParameterVal("name",g),v=n.getParameterVal("first_name",g),h=n.getParameterVal("last_name",g);if(!h&&v){var _=decodeURI(v).split(" ");_.length>0&&(v=_[0],h=_[1])}if(p&&!h&&!v){var _=decodeURI(p).split(" ");_.length>0&&(v=_[0],h=_[1])}p=v&&h?v+" "+h:p,v||(v="n/a"),e.deBugger("forms","fName = "+v),e.deBugger("forms","lName = "+h),e.deBugger("forms","fullName = "+p);var b=e.totalStorage("page_views")||{},y=e.totalStorage("inbound_url_params")||{};if("undefined"!=typeof landing_path_info)var w=landing_path_info.variation;else if("undefined"!=typeof cta_path_info)var w=cta_path_info.variation;else var w=0;var k=inbound_settings.post_type||"page",C=inbound_settings.post_id||0;search_data={},formData={action:"inbound_lead_store",email:m,full_name:p,first_name:v,last_name:h,raw_params:f,mapped_params:g,url_params:JSON.stringify(y),search_data:"test",page_views:JSON.stringify(b),post_type:k,page_id:C,variation:w,source:n.readCookie("inbound_referral_site")},callback=function(i){e.deBugger("forms","Lead Created with ID: "+i),i=parseInt(i,10),formData.leadID=i,i&&(n.createCookie("wp_lead_id",i),e.totalStorage.deleteItem("page_views"),e.totalStorage.deleteItem("tracking_events")),e.trigger("form_after_submission",formData),e.Forms.releaseFormSubmit(t)},e.trigger("form_before_submission",formData),n.ajaxPost(inbound_settings.admin_url,formData,callback)},rememberInputValues:function(t){var i=(t.name?"inbound_"+t.name:"",t.type?t.type:"text");return"submit"===i||"hidden"===i||"file"===i||"password"===i||t.dataset.ignoreFormField?!1:(n.addListener(t,"change",function(t){if(t.target.name){if("checkbox"!==i)var o=t.target.value;else for(var a=[],r=document.querySelectorAll('input[name="'+t.target.name+'"]'),s=0;s<r.length;s++){var l=r[s].checked;l&&a.push(r[s].value),o=a.join(",")}inputData={name:t.target.name,node:t.target.nodeName.toLowerCase(),type:i,value:o,mapping:t.target.dataset.mapFormField},e.trigger("form_input_change",inputData),n.createCookie("inbound_"+t.target.name,encodeURIComponent(o))}}),void 0)},fillInputValues:function(e){var t=e.name?"inbound_"+e.name:"",i=e.type?e.type:"text";if("submit"===i||"hidden"===i||"file"===i||"password"===i)return!1;if(n.readCookie(t)&&"comment"!=t)if(value=decodeURIComponent(n.readCookie(t)),"checkbox"===i||"radio"===i)for(var o=value.split(","),a=0;a<o.length;a++)e.value.indexOf(o[a])>-1&&(e.checked=!0);else"undefined"!==value&&(e.value=value)},getInputLabel:function(e){var t;return(t=this.siblingsIsLabel(e))?t:(t=this.CheckParentForLabel(e))?t:!1},getInputValue:function(e){var t=!1;switch(e.type){case"radio":case"checkbox":e.checked&&(t=e.value);break;case"text":case"hidden":default:t=e.value}return t},addDataAttr:function(e,t){for(var n=document.getElementsByName(e.name),i=n.length-1;i>=0;i--)e.dataset.mapFormField||(n[i].dataset.mapFormField=t)},removeArrayItem:function(e,t){if(e.indexOf)index=e.indexOf(t);else for(index=e.length-1;index>=0&&e[index]!==t;--index);index>=0&&e.splice(index,1)},siblingsIsLabel:function(e){for(var t=this.getSiblings(e),n=[],i=t.length-1;i>=0;i--)"label"===t[i].nodeName.toLowerCase()&&n.push(t[i]);return n.length>0&&n.length<2?n:!1},getChildren:function(e,t){for(var n=[];e;e=e.nextSibling)1==e.nodeType&&e!=t&&n.push(e);return n},getSiblings:function(e){return this.getChildren(e.parentNode.firstChild,e)},CheckParentForLabel:function(e){if("FORM"===e.nodeName)return null;do{var t=e.getElementsByTagName("label");if(t.length>0&&t.length<2)return e.getElementsByTagName("label")}while(e=e.parentNode);return null},mailCheck:function(){var e=document.querySelector(".inbound-email");e&&(n.addListener(e,"blur",this.mailCheck),u.run({email:document.querySelector(".inbound-email").value,suggested:function(t){var i=document.querySelector(".email_suggestion");i&&n.removeElement(i);var o=document.createElement("span");o.innerHTML="<span class=\"email_suggestion\">Did you mean <b><i id='email_correction' style='cursor: pointer;' title=\"click to update\">"+t.full+"</b></i>?</span>",e.parentNode.insertBefore(o,e.nextSibling);var a=document.getElementById("email_correction");n.addListener(a,"click",function(){e.value=a.innerHTML,a.parentNode.parentNode.innerHTML="Fixed!"})},empty:function(){}}))}},"undefined"==typeof u)var u={domainThreshold:1,topLevelThreshold:3,defaultDomains:["yahoo.com","google.com","hotmail.com","gmail.com","me.com","aol.com","mac.com","live.com","comcast.net","googlemail.com","msn.com","hotmail.co.uk","yahoo.co.uk","facebook.com","verizon.net","sbcglobal.net","att.net","gmx.com","mail.com","outlook.com","icloud.com"],defaultTopLevelDomains:["co.jp","co.uk","com","net","org","info","edu","gov","mil","ca","de"],run:function(e){e.domains=e.domains||u.defaultDomains,e.topLevelDomains=e.topLevelDomains||u.defaultTopLevelDomains,e.distanceFunction=e.distanceFunction||u.sift3Distance;var t=function(e){return e},n=e.suggested||t,i=e.empty||t,o=u.suggest(u.encodeEmail(e.email),e.domains,e.topLevelDomains,e.distanceFunction);return o?n(o):i()},suggest:function(e,t,n,i){e=e.toLowerCase();var o=this.splitEmail(e),a=this.findClosestDomain(o.domain,t,i,this.domainThreshold);if(a){if(a!=o.domain)return{address:o.address,domain:a,full:o.address+"@"+a}}else{var r=this.findClosestDomain(o.topLevelDomain,n,i,this.topLevelThreshold);if(o.domain&&r&&r!=o.topLevelDomain){var s=o.domain;return a=s.substring(0,s.lastIndexOf(o.topLevelDomain))+r,{address:o.address,domain:a,full:o.address+"@"+a}}}return!1},findClosestDomain:function(e,t,n,i){i=i||this.topLevelThreshold;var o,a=99,r=null;if(!e||!t)return!1;n||(n=this.sift3Distance);for(var s=0;s<t.length;s++){if(e===t[s])return e;o=n(e,t[s]),a>o&&(a=o,r=t[s])}return i>=a&&null!==r?r:!1},sift3Distance:function(e,t){if(null===e||0===e.length)return null===t||0===t.length?0:t.length;if(null===t||0===t.length)return e.length;for(var n=0,i=0,o=0,a=0,r=5;n+i<e.length&&n+o<t.length;){if(e.charAt(n+i)==t.charAt(n+o))a++;else{i=0,o=0;for(var s=0;r>s;s++){if(n+s<e.length&&e.charAt(n+s)==t.charAt(n)){i=s;break}if(n+s<t.length&&e.charAt(n)==t.charAt(n+s)){o=s;break}}}n++}return(e.length+t.length)/2-a},splitEmail:function(e){var t=e.trim().split("@");if(t.length<2)return!1;for(var n=0;n<t.length;n++)if(""===t[n])return!1;var i=t.pop(),o=i.split("."),a="";if(0===o.length)return!1;if(1==o.length)a=o[0];else{for(var n=1;n<o.length;n++)a+=o[n]+".";o.length>=2&&(a=a.substring(0,a.length-1))}return{topLevelDomain:a,domain:i,address:t.join("@")}},encodeEmail:function(e){var t=encodeURI(e);return t=t.replace("%20"," ").replace("%25","%").replace("%5E","^").replace("%60","`").replace("%7B","{").replace("%7C","|").replace("%7D","}")}};return e}(_inbound||{}),_inboundEvents=function(e){function t(t,i,o){var i=i||{};o=o||{},o.bubbles=o.bubbles||!0,o.cancelable=o.cancelable||!0,i=e.apply_filters("filter_"+t,i);!window.ActiveXObject&&"ActiveXObject"in window;if("function"==typeof CustomEvent)var a=new CustomEvent(t,{detail:i,bubbles:o.bubbles,cancelable:o.cancelable});else{var a=document.createEvent("Event");a.initEvent(t,!0,!0)}window.dispatchEvent(a),e.do_action(t,i),n(t,i)}function n(e,t){if(window.jQuery){var t=t||{};jQuery(document).trigger(e,t)}}e.trigger=function(t,n){e.Events[t](n)};return e.Events={analytics_ready:function(){var e={opt1:!0},n={data:"xyxy"};t("analytics_ready",n,e)},url_parameters:function(e){t("url_parameters",e)},session_start:function(){console.log(""),t("session_start")},session_end:function(e){t("session_end",e),console.log("Session End")},session_active:function(){t("session_active")},session_idle:function(e){t("session_idle",e)},session_resume:function(){t("session_resume")},session_heartbeat:function(e){var n={clock:e,leadData:InboundLeadData};t("session_heartbeat",n)},page_visit:function(e){t("page_view",e)},page_first_visit:function(){t("page_first_visit"),e.deBugger("pages","First Ever Page View of this Page")},page_revisit:function(n){t("page_revisit",n);var i=function(){console.log("pageData",n),console.log("Page Revisit viewed "+n+" times")};e.deBugger("pages",status,i)},tab_hidden:function(){e.deBugger("pages","Tab Hidden"),t("tab_hidden")},tab_visible:function(){e.deBugger("pages","Tab Visible"),t("tab_visible")},tab_mouseout:function(){e.deBugger("pages","Tab Mouseout"),t("tab_mouseout")},form_input_change:function(n){var i=function(){console.log(n)};e.deBugger("forms","inputData change. Data=",i),t("form_input_change",n)},form_before_submission:function(e){t("form_before_submission",e)},form_after_submission:function(e){t("form_after_submission",e)},analyticsError:function(e,t,n){var i=new CustomEvent("inbound_analytics_error",{detail:{MLHttpRequest:e,textStatus:t,errorThrown:n}});window.dispatchEvent(i),console.log("Page Save Error")}},e}(_inbound||{}),InboundTotalStorage=function(e){var t,n,i="_inbound";if("localStorage"in window)try{n="undefined"==typeof window.localStorage?void 0:window.localStorage,t="undefined"==typeof n||"undefined"==typeof window.JSON?!1:!0,window.localStorage.setItem(i,"1"),window.localStorage.removeItem(i)}catch(o){t=!1}e.totalStorage=function(t,n){return e.totalStorage.impl.init(t,n)},e.totalStorage.setItem=function(t,n){return e.totalStorage.impl.setItem(t,n)},e.totalStorage.getItem=function(t){return e.totalStorage.impl.getItem(t)},e.totalStorage.getAll=function(){return e.totalStorage.impl.getAll()},e.totalStorage.deleteItem=function(t){return e.totalStorage.impl.deleteItem(t)},e.totalStorage.impl={init:function(e,t){return"undefined"!=typeof t?this.setItem(e,t):this.getItem(e)},setItem:function(i,o){if(!t)try{return e.Utils.createCookie(i,o),o}catch(a){console.log("Local Storage not supported by this browser. Install the cookie plugin on your site to take advantage of the same functionality. You can get it at https://github.com/carhartl/jquery-cookie")}var r=JSON.stringify(o);return n.setItem(i,r),this.parseResult(r)},getItem:function(i){if(!t)try{return this.parseResult(e.Utils.readCookie(i))}catch(o){return null}var a=n.getItem(i);return this.parseResult(a)},deleteItem:function(i){if(!t)try{return e.Utils.eraseCookie(i,null),!0}catch(o){return!1}return n.removeItem(i),!0},getAll:function(){var i=[];if(t)for(var o in n)o.length&&i.push({key:o,value:this.parseResult(n.getItem(o))});else try{for(var a=document.cookie.split(";"),r=0;r<a.length;r++){var s=a[r].split("="),l=s[0];i.push({key:l,value:this.parseResult(e.Utils.readCookie(l))})}}catch(u){return null}return i},parseResult:function(e){var t;try{t=JSON.parse(e),"undefined"==typeof t&&(t=e),"true"==t&&(t=!0),"false"==t&&(t=!1),parseFloat(t)==t&&"object"!=typeof t&&(t=parseFloat(t))}catch(n){t=e}return t}}}(_inbound||{}),_inboundLeadsAPI=function(e){return e.LeadsAPI={init:function(){var t=e.Utils,n=(t.readCookie("wp_lead_uid"),t.readCookie("wp_lead_id")),i=t.readCookie("lead_session_expire");i||(e.deBugger("leads","expired vistor. Run Processes"),n&&(e.LeadsAPI.getAllLeadData(),e.LeadsAPI.getLeadLists()))},setGlobalLeadData:function(e){InboundLeadData=e},getAllLeadData:function(){var t=e.Utils.readCookie("wp_lead_id"),n=e.totalStorage("inbound_lead_data"),i=e.Utils.readCookie("lead_data_expire");data={action:"inbound_get_all_lead_data",wp_lead_id:t},success=function(t){var n=JSON.parse(t);e.LeadsAPI.setGlobalLeadData(n),e.totalStorage("inbound_lead_data",n);var i=new Date;i.setTime(i.getTime()+18e5);var o=e.Utils.addDays(i,3);e.Utils.createCookie("lead_data_expire",!0,o)},n?(e.LeadsAPI.setGlobalLeadData(n),e.deBugger("lead","Set Global Lead Data from Localstorage"),i||(e.Utils.ajaxPost(inbound_settings.admin_url,data,success),e.deBugger("lead","localized data old. Pull new from DB"))):e.Utils.ajaxPost(inbound_settings.admin_url,data,success)},getLeadLists:function(){var t=e.Utils.readCookie("wp_lead_id"),n={action:"wpl_check_lists",wp_lead_id:t},i=function(){e.Utils.createCookie("lead_session_list_check",!0,{path:"/",expires:1}),e.deBugger("lead","Lists checked")};e.Utils.ajaxPost(inbound_settings.admin_url,n,i)}},e}(_inbound||{}),_inboundPageTracking=function(e){var t,n,i=!1,o=!1,a=!1,r=parseInt(e.Utils.readCookie("lead_session"),10)||0,s=0,l=(new Date,null),u=null,c=null,d=e.Utils,m=e.totalStorage("page_views")||{},f=e.Utils.GetDate(),g=inbound_settings.post_id||window.location.pathname,p=e.Settings.timeout||3e4;return e.PageTracking={init:function(i){this.CheckTimeOut(),i=i||{},t=parseInt(i.reportInterval,10)||10,n=parseInt(i.idleTimeout,10)||3,d.addListener(document,"keydown",d.throttle(e.PageTracking.pingSession,1e3)),d.addListener(document,"click",d.throttle(e.PageTracking.pingSession,1e3)),d.addListener(window,"mousemove",d.throttle(e.PageTracking.pingSession,1e3)),e.PageTracking.checkVisibility(),this.startSession()},setIdle:function(t){var t=t||"No Movement",n="Session IDLE. Activity Timeout due to "+t;e.deBugger("pages",n),clearTimeout(e.PageTracking.idleTimer),e.PageTracking.stopClock(),e.trigger("session_idle")},checkVisibility:function(){var t,n,i;"undefined"!=typeof document.hidden?(t="hidden",i="visibilitychange",n="visibilityState"):"undefined"!=typeof document.mozHidden?(t="mozHidden",i="mozvisibilitychange",n="mozVisibilityState"):"undefined"!=typeof document.msHidden?(t="msHidden",i="msvisibilitychange",n="msVisibilityState"):"undefined"!=typeof document.webkitHidden&&(t="webkitHidden",i="webkitvisibilitychange",n="webkitVisibilityState");var o=document[t];e.Utils.addListener(document,i,function(){o!=document[t]&&(document[t]?(e.trigger("tab_hidden"),e.PageTracking.setIdle("browser tab switch")):(e.trigger("tab_visible"),e.PageTracking.pingSession()),o=document[t])})},clock:function(){r+=1;var n=r/60,i="Total time spent on Page in this Session: "+n.toFixed(2)+" min";if(e.deBugger("pages",i),r>0&&r%t===0){var o=new Date;o.setTime(o.getTime()+18e5),d.createCookie("lead_session",r,o),e.trigger("session_heartbeat",r)}},inactiveClock:function(){s+=1;
|
3 |
+
var t=(1800-s)/60,n="Time until Session Timeout: "+t.toFixed(2)+" min";e.deBugger("pages",n),s>1800&&(e.trigger("session_end",InboundLeadData),e.Utils.eraseCookie("lead_session"),s=0,clearTimeout(u))},stopClock:function(){o=!0,clearTimeout(l),clearTimeout(u),u=setInterval(e.PageTracking.inactiveClock,1e3)},restartClock:function(){o=!1,e.trigger("session_resume"),e.deBugger("pages","Activity resumed. Session Active"),clearTimeout(l),s=0,clearTimeout(u),l=setInterval(e.PageTracking.clock,1e3)},turnOff:function(){e.PageTracking.setIdle(),a=!0},turnOn:function(){a=!1},startSession:function(){new Date;i=!0,l=setInterval(e.PageTracking.clock,1e3);var t=d.readCookie("lead_session");if(t)e.trigger("session_active");else{e.trigger("session_start");var n=new Date;n.setTime(n.getTime()+18e5),e.Utils.createCookie("lead_session",1,n)}this.pingSession()},resetInactiveFunc:function(){s=0,clearTimeout(u)},pingSession:function(t){a||(i||e.PageTracking.startSession(),o&&e.PageTracking.restartClock(),clearTimeout(c),c=setTimeout(e.PageTracking.setIdle,1e3*n+100),"undefined"!=typeof t&&"mousemove"===t.type&&e.PageTracking.mouseEvents(t))},mouseEvents:function(t){t.pageY<=5&&e.trigger("tab_mouseout")},getPageViews:function(){var t=e.Utils.checkLocalStorage();if(t){var n=localStorage.getItem("page_views"),i=JSON.parse(n);return i}},isRevisit:function(e){var t=!1,e=e||{},n=e[g];return"undefined"!=typeof n&&null!==n&&(t=!0),t},triggerPageView:function(t){var n={title:document.title,url:document.location.href,path:document.location.pathname,count:1};t?(m[g].push(f),n.count=m[g].length,e.trigger("page_revisit",n)):(m[g]=[],m[g].push(f),e.trigger("page_first_visit",n)),e.trigger("page_visit",n),e.totalStorage("page_views",m),this.storePageView()},CheckTimeOut:function(){var t,n,i=this.isRevisit(m);if(i){var o=m[g].length-1,a=m[g][o],r=Math.abs(new Date(a).getTime()-new Date(f).getTime());n=r>p,n?(t="Timeout Happened. Page view fired",this.triggerPageView(i)):(time_left=.001*Math.abs(p-r),t=p/1e3+" sec timeout not done: "+time_left+" seconds left")}else this.triggerPageView(i);e.deBugger("pages",t)},storePageView:function(){var t=e.Utils.readCookie("wp_lead_id"),n=e.Utils.readCookie("wp_lead_uid");if(t){var i={action:"wpl_track_user",wp_lead_uid:n,wp_lead_id:t,page_id:inbound_settings.post_id,current_url:window.location.href,json:"0"},o=function(){};e.Utils.ajaxPost(inbound_settings.admin_url,i,o)}}},e}(_inbound||{});_inbound.init(),InboundLeadData=_inbound.totalStorage("inbound_lead_data")||null;
|
shared/classes/class.ajax.php
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* This class loads miscellaneous WordPress AJAX listeners
|
5 |
+
*/
|
6 |
+
if (!class_exists()) {
|
7 |
+
|
8 |
+
class Inbound_Ajax {
|
9 |
+
|
10 |
+
/**
|
11 |
+
* Initializes classs
|
12 |
+
*/
|
13 |
+
public function __construct() {
|
14 |
+
self::load_hooks();
|
15 |
+
}
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Loads hooks and filters
|
19 |
+
*/
|
20 |
+
public static function load_hooks() {
|
21 |
+
|
22 |
+
/* Ajax that runs on pageload */
|
23 |
+
add_action( 'wp_ajax_nopriv_inbound_ajax', array( __CLASS__ , 'run_ajax_actions') );
|
24 |
+
add_action( 'wp_ajax_inbound_ajax', array( __CLASS__ , 'run_ajax_actions') );
|
25 |
+
|
26 |
+
}
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Executes hook that runs all ajax actions
|
30 |
+
*/
|
31 |
+
public static function run_ajax_actions() {
|
32 |
+
|
33 |
+
}
|
34 |
+
|
35 |
+
|
36 |
+
}
|
37 |
+
|
38 |
+
/* Loads Inbound_Ajax pre init */
|
39 |
+
$Inbound_Ajax = new Inbound_Ajax();
|
40 |
+
}
|
shared/classes/class.form.php
CHANGED
@@ -161,7 +161,7 @@ if (!class_exists('Inbound_Forms')) {
|
|
161 |
if ($map_field != "") {
|
162 |
$field_name = $map_field;
|
163 |
} else {
|
164 |
-
|
165 |
$field_name = strtolower(str_replace(array(' ','_'),'-',$label));
|
166 |
}
|
167 |
|
@@ -187,11 +187,17 @@ if (!class_exists('Inbound_Forms')) {
|
|
187 |
if ($type === "hidden" || $type === "honeypot" || $type === "html-block" || $type === "divider") {
|
188 |
$show_labels = false;
|
189 |
}
|
190 |
-
|
191 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
192 |
|
193 |
if ($show_labels && $form_labels != "bottom" || $type === "radio") {
|
194 |
-
$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>';
|
195 |
}
|
196 |
|
197 |
if ($type === 'textarea') {
|
@@ -281,16 +287,12 @@ if (!class_exists('Inbound_Forms')) {
|
|
281 |
|
282 |
$checkbox = $matches[3][$i]['checkbox'];
|
283 |
$checkbox_fields = explode(",", $checkbox);
|
284 |
-
// $clean_radio = str_replace(array(' ','_'),'-',$value) // clean leading spaces. finish
|
285 |
foreach ($checkbox_fields as $key => $value) {
|
286 |
$value = html_entity_decode($value);
|
287 |
$checkbox_val_trimmed = strip_tags(trim($value));
|
288 |
$checkbox_val = strtolower(str_replace(array(' ','_'),'-',$checkbox_val_trimmed));
|
289 |
|
290 |
-
|
291 |
-
$required_id = ( $key == 0 ) ? $req : '';
|
292 |
-
|
293 |
-
$form .= '<input class="checkbox-'.$main_layout.' checkbox-'.$form_labels_class.' '.$field_input_class.'" type="checkbox" name="'. $field_name .'[]" value="'. $checkbox_val .'" '.$required_id.'>'.$checkbox_val_trimmed.'<br>';
|
294 |
}
|
295 |
} else if ($type === 'html-block') {
|
296 |
|
@@ -339,7 +341,7 @@ if (!class_exists('Inbound_Forms')) {
|
|
339 |
'.$icon_insert.''.$submit_button.$inner_button.'</button></div><input data-ignore-form-field="true" type="hidden" name="inbound_submitted" value="1">';
|
340 |
// <!--<input type="submit" '.$submit_button_type.' class="button" value="'.$submit_button.'" name="send" id="inbound_form_submit" />-->
|
341 |
|
342 |
-
$form .= '<input type="hidden" name="
|
343 |
$form .= "<style type='text/css'>.inbound-button-submit{ {$font_size} }</style>";
|
344 |
$form = preg_replace('/<br class="inbr".\/>/', '', $form); // remove editor br tags
|
345 |
|
@@ -427,10 +429,19 @@ if (!class_exists('Inbound_Forms')) {
|
|
427 |
jQuery(document).ready(function($){
|
428 |
|
429 |
jQuery("form").submit(function(e) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
430 |
jQuery(this).find("input").each(function(){
|
431 |
if(!jQuery(this).prop("required")){
|
432 |
} else if (!jQuery(this).val()) {
|
433 |
-
alert("Oops! Looks like you have not filled out all of the required fields!");
|
|
|
434 |
e.preventDefault();
|
435 |
e.stopImmediatePropagation();
|
436 |
return false;
|
@@ -495,7 +506,7 @@ if (!class_exists('Inbound_Forms')) {
|
|
495 |
|
496 |
/* replace core tokens */
|
497 |
$content = str_replace('{{site-name}}', get_bloginfo( 'name' ) , $content);
|
498 |
-
//$content = str_replace('{{form-name}}', $form_data['
|
499 |
|
500 |
foreach ($form_data as $key => $value) {
|
501 |
$token_key = str_replace('_','-', $key);
|
@@ -740,7 +751,7 @@ if (!class_exists('Inbound_Forms')) {
|
|
740 |
|
741 |
/* add default subject if empty */
|
742 |
if (!$confirm_subject) {
|
743 |
-
$confirm_subject = __( 'Thank you!' , '
|
744 |
}
|
745 |
|
746 |
$confirm_email_message = $Inbound_Templating_Engine->replace_tokens( $confirm_email_message , array( $form_post_data, $form_meta_data ) );
|
@@ -803,18 +814,18 @@ if (!class_exists('Inbound_Forms')) {
|
|
803 |
|
804 |
case 'months':
|
805 |
return array(
|
806 |
-
'01' => __( 'Jan' , '
|
807 |
-
'02' => __( 'Feb' , '
|
808 |
-
'03' => __( 'Mar' , '
|
809 |
-
'04' => __( 'Apr' , '
|
810 |
-
'05' => __( 'May' , '
|
811 |
-
'06' => __( 'Jun' , '
|
812 |
-
'07' => __( 'Jul' , '
|
813 |
-
'08' => __( 'Aug' , '
|
814 |
-
'09' => __( 'Sep' , '
|
815 |
-
'10' => __( 'Oct' , '
|
816 |
-
'11' => __( 'Nov' , '
|
817 |
-
'12' => __( 'Dec' , '
|
818 |
);
|
819 |
break;
|
820 |
case 'days' :
|
@@ -844,255 +855,255 @@ if (!class_exists('Inbound_Forms')) {
|
|
844 |
*/
|
845 |
public static function get_countries_array() {
|
846 |
return array (
|
847 |
-
__( 'AF' , 'leads') => __( 'Afghanistan' , '
|
848 |
-
__( 'AX' , 'leads') => __( 'Aland Islands' , '
|
849 |
-
__( 'AL' , 'leads') => __( 'Albania' , '
|
850 |
-
__( 'DZ' , 'leads') => __( 'Algeria' , '
|
851 |
-
__( 'AS' , 'leads') => __( 'American Samoa' , '
|
852 |
-
__( 'AD' , 'leads') => __( 'Andorra' , '
|
853 |
-
__( 'AO' , 'leads') => __( 'Angola' , '
|
854 |
-
__( 'AI' , 'leads') => __( 'Anguilla' , '
|
855 |
-
__( 'AQ' , 'leads') => __( 'Antarctica' , '
|
856 |
-
__( 'AG' , 'leads') => __( 'Antigua and Barbuda' , '
|
857 |
-
__( 'AR' , 'leads') => __( 'Argentina' , '
|
858 |
-
__( 'AM' , 'leads') => __( 'Armenia' , '
|
859 |
-
__( 'AW' , 'leads') => __( 'Aruba' , '
|
860 |
-
__( 'AU' , 'leads') => __( 'Australia' , '
|
861 |
-
__( 'AT' , 'leads') => __( 'Austria' , '
|
862 |
-
__( 'AZ' , 'leads') => __( 'Azerbaijan' , '
|
863 |
-
__( 'BS' , 'leads') => __( 'Bahamas' , '
|
864 |
-
__( 'BH' , 'leads') => __( 'Bahrain' , '
|
865 |
-
__( 'BD' , 'leads') => __( 'Bangladesh' , '
|
866 |
-
__( 'BB' , 'leads') => __( 'Barbados' , '
|
867 |
-
__( 'BY' , 'leads') => __( 'Belarus' , '
|
868 |
-
__( 'BE' , 'leads') => __( 'Belgium' , '
|
869 |
-
__( 'BZ' , 'leads') => __( 'Belize' , '
|
870 |
-
__( 'BJ' , 'leads') => __( 'Benin' , '
|
871 |
-
__( 'BM' , 'leads') => __( 'Bermuda' , '
|
872 |
-
__( 'BT' , 'leads') => __( 'Bhutan' , '
|
873 |
-
__( 'BO' , 'leads') => __( 'Bolivia' , '
|
874 |
-
__( 'BA' , 'leads') => __( 'Bosnia and Herzegovina' , '
|
875 |
-
__( 'BW' , 'leads') => __( 'Botswana' , '
|
876 |
-
__( 'BV' , 'leads') => __( 'Bouvet Island' , '
|
877 |
-
__( 'BR' , 'leads') => __( 'Brazil' , '
|
878 |
-
__( 'IO' , 'leads') => __( 'British Indian Ocean Territory' , '
|
879 |
-
__( 'BN' , 'leads') => __( 'Brunei Darussalam' , '
|
880 |
-
__( 'BG' , 'leads') => __( 'Bulgaria' , '
|
881 |
-
__( 'BF' , 'leads') => __( 'Burkina Faso' , '
|
882 |
-
__( 'BI' , 'leads') => __( 'Burundi' , '
|
883 |
-
__( 'KH' , 'leads') => __( 'Cambodia' , '
|
884 |
-
__( 'CM' , 'leads') => __( 'Cameroon' , '
|
885 |
-
__( 'CA' , 'leads') => __( 'Canada' , '
|
886 |
-
__( 'CV' , 'leads') => __( 'Cape Verde' , '
|
887 |
-
__( 'BQ' , 'leads') => __( 'Caribbean Netherlands ' , '
|
888 |
-
__( 'KY' , 'leads') => __( 'Cayman Islands' , '
|
889 |
-
__( 'CF' , 'leads') => __( 'Central African Republic' , '
|
890 |
-
__( 'TD' , 'leads') => __( 'Chad' , '
|
891 |
-
__( 'CL' , 'leads') => __( 'Chile' , '
|
892 |
-
__( 'CN' , 'leads') => __( 'China' , '
|
893 |
-
__( 'CX' , 'leads') => __( 'Christmas Island' , '
|
894 |
-
__( 'CC' , 'leads') => __( 'Cocos (Keeling) Islands' , '
|
895 |
-
__( 'CO' , 'leads') => __( 'Colombia' , '
|
896 |
-
__( 'KM' , 'leads') => __( 'Comoros' , '
|
897 |
-
__( 'CG' , 'leads') => __( 'Congo' , '
|
898 |
-
__( 'CD' , 'leads') => __( 'Congo, Democratic Republic of' , '
|
899 |
-
__( 'CK' , 'leads') => __( 'Cook Islands' , '
|
900 |
-
__( 'CR' , 'leads') => __( 'Costa Rica' , '
|
901 |
-
__( 'CI' , 'leads') => __( 'Cote d\'Ivoire' , '
|
902 |
-
__( 'HR' , 'leads') => __( 'Croatia' , '
|
903 |
-
__( 'CU' , 'leads') => __( 'Cuba' , '
|
904 |
-
__( 'CW' , 'leads') => __( 'Curacao' , '
|
905 |
-
__( 'CY' , 'leads') => __( 'Cyprus' , '
|
906 |
-
__( 'CZ' , 'leads') => __( 'Czech Republic' , '
|
907 |
-
__( 'DK' , 'leads') => __( 'Denmark' , '
|
908 |
-
__( 'DJ' , 'leads') => __( 'Djibouti' , '
|
909 |
-
__( 'DM' , 'leads') => __( 'Dominica' , '
|
910 |
-
__( 'DO' , 'leads') => __( 'Dominican Republic' , '
|
911 |
-
__( 'EC' , 'leads') => __( 'Ecuador' , '
|
912 |
-
__( 'EG' , 'leads') => __( 'Egypt' , '
|
913 |
-
__( 'SV' , 'leads') => __( 'El Salvador' , '
|
914 |
-
__( 'GQ' , 'leads') => __( 'Equatorial Guinea' , '
|
915 |
-
__( 'ER' , 'leads') => __( 'Eritrea' , '
|
916 |
-
__( 'EE' , 'leads') => __( 'Estonia' , '
|
917 |
-
__( 'ET' , 'leads') => __( 'Ethiopia' , '
|
918 |
-
__( 'FK' , 'leads') => __( 'Falkland Islands' , '
|
919 |
-
__( 'FO' , 'leads') => __( 'Faroe Islands' , '
|
920 |
-
__( 'FJ' , 'leads') => __( 'Fiji' , '
|
921 |
-
__( 'FI' , 'leads') => __( 'Finland' , '
|
922 |
-
__( 'FR' , 'leads') => __( 'France' , '
|
923 |
-
__( 'GF' , 'leads') => __( 'French Guiana' , '
|
924 |
-
__( 'PF' , 'leads') => __( 'French Polynesia' , '
|
925 |
-
__( 'TF' , 'leads') => __( 'French Southern Territories' , '
|
926 |
-
__( 'GA' , 'leads') => __( 'Gabon' , '
|
927 |
-
__( 'GM' , 'leads') => __( 'Gambia' , '
|
928 |
-
__( 'GE' , 'leads') => __( 'Georgia' , '
|
929 |
-
__( 'DE' , 'leads') => __( 'Germany' , '
|
930 |
-
__( 'GH' , 'leads') => __( 'Ghana' , '
|
931 |
-
__( 'GI' , 'leads') => __( 'Gibraltar' , '
|
932 |
-
__( 'GR' , 'leads') => __( 'Greece' , '
|
933 |
-
__( 'GL' , 'leads') => __( 'Greenland' , '
|
934 |
-
__( 'GD' , 'leads') => __( 'Grenada' , '
|
935 |
-
__( 'GP' , 'leads') => __( 'Guadeloupe' , '
|
936 |
-
__( 'GU' , 'leads') => __( 'Guam' , '
|
937 |
-
__( 'GT' , 'leads') => __( 'Guatemala' , '
|
938 |
-
__( 'GG' , 'leads') => __( 'Guernsey' , '
|
939 |
-
__( 'GN' , 'leads') => __( 'Guinea' , '
|
940 |
-
__( 'GW' , 'leads') => __( 'Guinea-Bissau' , '
|
941 |
-
__( 'GY' , 'leads') => __( 'Guyana' , '
|
942 |
-
__( 'HT' , 'leads') => __( 'Haiti' , '
|
943 |
-
__( 'HM' , 'leads') => __( 'Heard and McDonald Islands' , '
|
944 |
-
__( 'HN' , 'leads') => __( 'Honduras' , '
|
945 |
-
__( 'HK' , 'leads') => __( 'Hong Kong' , '
|
946 |
-
__( 'HU' , 'leads') => __( 'Hungary' , '
|
947 |
-
__( 'IS' , 'leads') => __( 'Iceland' , '
|
948 |
-
__( 'IN' , 'leads') => __( 'India' , '
|
949 |
-
__( 'ID' , 'leads') => __( 'Indonesia' , '
|
950 |
-
__( 'IR' , 'leads') => __( 'Iran' , '
|
951 |
-
__( 'IQ' , 'leads') => __( 'Iraq' , '
|
952 |
-
__( 'IE' , 'leads') => __( 'Ireland' , '
|
953 |
-
__( 'IM' , 'leads') => __( 'Isle of Man' , '
|
954 |
-
__( 'IL' , 'leads') => __( 'Israel' , '
|
955 |
-
__( 'IT' , 'leads') => __( 'Italy' , '
|
956 |
-
__( 'JM' , 'leads') => __( 'Jamaica' , '
|
957 |
-
__( 'JP' , 'leads') => __( 'Japan' , '
|
958 |
-
__( 'JE' , 'leads') => __( 'Jersey' , '
|
959 |
-
__( 'JO' , 'leads') => __( 'Jordan' , '
|
960 |
-
__( 'KZ' , 'leads') => __( 'Kazakhstan' , '
|
961 |
-
__( 'KE' , 'leads') => __( 'Kenya' , '
|
962 |
-
__( 'KI' , 'leads') => __( 'Kiribati' , '
|
963 |
-
__( 'KW' , 'leads') => __( 'Kuwait' , '
|
964 |
-
__( 'KG' , 'leads') => __( 'Kyrgyzstan' , '
|
965 |
-
__( 'LA' , 'leads') => __( 'Lao People\'s Democratic Republic' , '
|
966 |
-
__( 'LV' , 'leads') => __( 'Latvia' , '
|
967 |
-
__( 'LB' , 'leads') => __( 'Lebanon' , '
|
968 |
-
__( 'LS' , 'leads') => __( 'Lesotho' , '
|
969 |
-
__( 'LR' , 'leads') => __( 'Liberia' , '
|
970 |
-
__( 'LY' , 'leads') => __( 'Libya' , '
|
971 |
-
__( 'LI' , 'leads') => __( 'Liechtenstein' , '
|
972 |
-
__( 'LT' , 'leads') => __( 'Lithuania' , '
|
973 |
-
__( 'LU' , 'leads') => __( 'Luxembourg' , '
|
974 |
-
__( 'MO' , 'leads') => __( 'Macau' , '
|
975 |
-
__( 'MK' , 'leads') => __( 'Macedonia' , '
|
976 |
-
__( 'MG' , 'leads') => __( 'Madagascar' , '
|
977 |
-
__( 'MW' , 'leads') => __( 'Malawi' , '
|
978 |
-
__( 'MY' , 'leads') => __( 'Malaysia' , '
|
979 |
-
__( 'MV' , 'leads') => __( 'Maldives' , '
|
980 |
-
__( 'ML' , 'leads') => __( 'Mali' , '
|
981 |
-
__( 'MT' , 'leads') => __( 'Malta' , '
|
982 |
-
__( 'MH' , 'leads') => __( 'Marshall Islands' , '
|
983 |
-
__( 'MQ' , 'leads') => __( 'Martinique' , '
|
984 |
-
__( 'MR' , 'leads') => __( 'Mauritania' , '
|
985 |
-
__( 'MU' , 'leads') => __( 'Mauritius' , '
|
986 |
-
__( 'YT' , 'leads') => __( 'Mayotte' , '
|
987 |
-
__( 'MX' , 'leads') => __( 'Mexico' , '
|
988 |
-
__( 'FM' , 'leads') => __( 'Micronesia, Federated States of' , '
|
989 |
-
__( 'MD' , 'leads') => __( 'Moldova' , '
|
990 |
-
__( 'MC' , 'leads') => __( 'Monaco' , '
|
991 |
-
__( 'MN' , 'leads') => __( 'Mongolia' , '
|
992 |
-
__( 'ME' , 'leads') => __( 'Montenegro' , '
|
993 |
-
__( 'MS' , 'leads') => __( 'Montserrat' , '
|
994 |
-
__( 'MA' , 'leads') => __( 'Morocco' , '
|
995 |
-
__( 'MZ' , 'leads') => __( 'Mozambique' , '
|
996 |
-
__( 'MM' , 'leads') => __( 'Myanmar' , '
|
997 |
-
__( 'NA' , 'leads') => __( 'Namibia' , '
|
998 |
-
__( 'NR' , 'leads') => __( 'Nauru' , '
|
999 |
-
__( 'NP' , 'leads') => __( 'Nepal' , '
|
1000 |
-
__( 'NC' , 'leads') => __( 'New Caledonia' , '
|
1001 |
-
__( 'NZ' , 'leads') => __( 'New Zealand' , '
|
1002 |
-
__( 'NI' , 'leads') => __( 'Nicaragua' , '
|
1003 |
-
__( 'NE' , 'leads') => __( 'Niger' , '
|
1004 |
-
__( 'NG' , 'leads') => __( 'Nigeria' , '
|
1005 |
-
__( 'NU' , 'leads') => __( 'Niue' , '
|
1006 |
-
__( 'NF' , 'leads') => __( 'Norfolk Island' , '
|
1007 |
-
__( 'KP' , 'leads') => __( 'North Korea' , '
|
1008 |
-
__( 'MP' , 'leads') => __( 'Northern Mariana Islands' , '
|
1009 |
-
__( 'NO' , 'leads') => __( 'Norway' , '
|
1010 |
-
__( 'OM' , 'leads') => __( 'Oman' , '
|
1011 |
-
__( 'PK' , 'leads') => __( 'Pakistan' , '
|
1012 |
-
__( 'PW' , 'leads') => __( 'Palau' , '
|
1013 |
-
__( 'PS' , 'leads') => __( 'Palestinian Territory, Occupied' , '
|
1014 |
-
__( 'PA' , 'leads') => __( 'Panama' , '
|
1015 |
-
__( 'PG' , 'leads') => __( 'Papua New Guinea' , '
|
1016 |
-
__( 'PY' , 'leads') => __( 'Paraguay' , '
|
1017 |
-
__( 'PE' , 'leads') => __( 'Peru' , '
|
1018 |
-
__( 'PH' , 'leads') => __( 'Philippines' , '
|
1019 |
-
__( 'PN' , 'leads') => __( 'Pitcairn' , '
|
1020 |
-
__( 'PL' , 'leads') => __( 'Poland' , '
|
1021 |
-
__( 'PT' , 'leads') => __( 'Portugal' , '
|
1022 |
-
__( 'PR' , 'leads') => __( 'Puerto Rico' , '
|
1023 |
-
__( 'QA' , 'leads') => __( 'Qatar' , '
|
1024 |
-
__( 'RE' , 'leads') => __( 'Reunion' , '
|
1025 |
-
__( 'RO' , 'leads') => __( 'Romania' , '
|
1026 |
-
__( 'RU' , 'leads') => __( 'Russian Federation' , '
|
1027 |
-
__( 'RW' , 'leads') => __( 'Rwanda' , '
|
1028 |
-
__( 'BL' , 'leads') => __( 'Saint Barthelemy' , '
|
1029 |
-
__( 'SH' , 'leads') => __( 'Saint Helena' , '
|
1030 |
-
__( 'KN' , 'leads') => __( 'Saint Kitts and Nevis' , '
|
1031 |
-
__( 'LC' , 'leads') => __( 'Saint Lucia' , '
|
1032 |
-
__( 'VC' , 'leads') => __( 'Saint Vincent and the Grenadines' , '
|
1033 |
-
__( 'MF' , 'leads') => __( 'Saint-Martin (France)' , '
|
1034 |
-
__( 'SX' , 'leads') => __( 'Saint-Martin (Pays-Bas)' , '
|
1035 |
-
__( 'WS' , 'leads') => __( 'Samoa' , '
|
1036 |
-
__( 'SM' , 'leads') => __( 'San Marino' , '
|
1037 |
-
__( 'ST' , 'leads') => __( 'Sao Tome and Principe' , '
|
1038 |
-
__( 'SA' , 'leads') => __( 'Saudi Arabia' , '
|
1039 |
-
__( 'SN' , 'leads') => __( 'Senegal' , '
|
1040 |
-
__( 'RS' , 'leads') => __( 'Serbia' , '
|
1041 |
-
__( 'SC' , 'leads') => __( 'Seychelles' , '
|
1042 |
-
__( 'SL' , 'leads') => __( 'Sierra Leone' , '
|
1043 |
-
__( 'SG' , 'leads') => __( 'Singapore' , '
|
1044 |
-
__( 'SK' , 'leads') => __( 'Slovakia (Slovak Republic)' , '
|
1045 |
-
__( 'SI' , 'leads') => __( 'Slovenia' , '
|
1046 |
-
__( 'SB' , 'leads') => __( 'Solomon Islands' , '
|
1047 |
-
__( 'SO' , 'leads') => __( 'Somalia' , '
|
1048 |
-
__( 'ZA' , 'leads') => __( 'South Africa' , '
|
1049 |
-
__( 'GS' , 'leads') => __( 'South Georgia and the South Sandwich Islands' , '
|
1050 |
-
__( 'KR' , 'leads') => __( 'South Korea' , '
|
1051 |
-
__( 'SS' , 'leads') => __( 'South Sudan' , '
|
1052 |
-
__( 'ES' , 'leads') => __( 'Spain' , '
|
1053 |
-
__( 'LK' , 'leads') => __( 'Sri Lanka' , '
|
1054 |
-
__( 'PM' , 'leads') => __( 'St. Pierre and Miquelon' , '
|
1055 |
-
__( 'SD' , 'leads') => __( 'Sudan' , '
|
1056 |
-
__( 'SR' , 'leads') => __( 'Suriname' , '
|
1057 |
-
__( 'SJ' , 'leads') => __( 'Svalbard and Jan Mayen Islands' , '
|
1058 |
-
__( 'SZ' , 'leads') => __( 'Swaziland' , '
|
1059 |
-
__( 'SE' , 'leads') => __( 'Sweden' , '
|
1060 |
-
__( 'CH' , 'leads') => __( 'Switzerland' , '
|
1061 |
-
__( 'SY' , 'leads') => __( 'Syria' , '
|
1062 |
-
__( 'TW' , 'leads') => __( 'Taiwan' , '
|
1063 |
-
__( 'TJ' , 'leads') => __( 'Tajikistan' , '
|
1064 |
-
__( 'TZ' , 'leads') => __( 'Tanzania' , '
|
1065 |
-
__( 'TH' , 'leads') => __( 'Thailand' , '
|
1066 |
-
__( 'NL' , 'leads') => __( 'The Netherlands' , '
|
1067 |
-
__( 'TL' , 'leads') => __( 'Timor-Leste' , '
|
1068 |
-
__( 'TG' , 'leads') => __( 'Togo' , '
|
1069 |
-
__( 'TK' , 'leads') => __( 'Tokelau' , '
|
1070 |
-
__( 'TO' , 'leads') => __( 'Tonga' , '
|
1071 |
-
__( 'TT' , 'leads') => __( 'Trinidad and Tobago' , '
|
1072 |
-
__( 'TN' , 'leads') => __( 'Tunisia' , '
|
1073 |
-
__( 'TR' , 'leads') => __( 'Turkey' , '
|
1074 |
-
__( 'TM' , 'leads') => __( 'Turkmenistan' , '
|
1075 |
-
__( 'TC' , 'leads') => __( 'Turks and Caicos Islands' , '
|
1076 |
-
__( 'TV' , 'leads') => __( 'Tuvalu' , '
|
1077 |
-
__( 'UG' , 'leads') => __( 'Uganda' , '
|
1078 |
-
__( 'UA' , 'leads') => __( 'Ukraine' , '
|
1079 |
-
__( 'AE' , 'leads') => __( 'United Arab Emirates' , '
|
1080 |
-
__( 'GB' , 'leads') => __( 'United Kingdom' , '
|
1081 |
-
__( 'US' , 'leads') => __( 'United States' , '
|
1082 |
-
__( 'UM' , 'leads') => __( 'United States Minor Outlying Islands' , '
|
1083 |
-
__( 'UY' , 'leads') => __( 'Uruguay' , '
|
1084 |
-
__( 'UZ' , 'leads') => __( 'Uzbekistan' , '
|
1085 |
-
__( 'VU' , 'leads') => __( 'Vanuatu' , '
|
1086 |
-
__( 'VA' , 'leads') => __( 'Vatican' , '
|
1087 |
-
__( 'VE' , 'leads') => __( 'Venezuela' , '
|
1088 |
-
__( 'VN' , 'leads') => __( 'Vietnam' , '
|
1089 |
-
__( 'VG' , 'leads') => __( 'Virgin Islands (British)' , '
|
1090 |
-
__( 'VI' , 'leads') => __( 'Virgin Islands (U.S.)' , '
|
1091 |
-
__( 'WF' , 'leads') => __( 'Wallis and Futuna Islands' , '
|
1092 |
-
__( 'EH' , 'leads') => __( 'Western Sahara' , '
|
1093 |
-
__( 'YE' , 'leads') => __( 'Yemen' , '
|
1094 |
-
__( 'ZM' , 'leads') => __( 'Zambia' , '
|
1095 |
-
__( 'ZW' , 'leads') => __( 'Zimbabwe' , '
|
1096 |
);
|
1097 |
}
|
1098 |
|
161 |
if ($map_field != "") {
|
162 |
$field_name = $map_field;
|
163 |
} else {
|
164 |
+
//$label = self::santize_inputs($label);
|
165 |
$field_name = strtolower(str_replace(array(' ','_'),'-',$label));
|
166 |
}
|
167 |
|
187 |
if ($type === "hidden" || $type === "honeypot" || $type === "html-block" || $type === "divider") {
|
188 |
$show_labels = false;
|
189 |
}
|
190 |
+
|
191 |
+
// added by kirit dholakiya for validation of multiple checkbox
|
192 |
+
$div_chk_req = '';
|
193 |
+
if($type=='checkbox' && $required=='1') {
|
194 |
+
$div_chk_req =' checkbox-required ';
|
195 |
+
}
|
196 |
+
|
197 |
+
$form .= '<div class="inbound-field '.$div_chk_req.$main_layout.' label-'.$form_labels_class.' '.$form_labels_class.' '.$field_container_class.'">';
|
198 |
|
199 |
if ($show_labels && $form_labels != "bottom" || $type === "radio") {
|
200 |
+
$form .= '<label for="'. $field_name .'" class="inbound-label '.$formatted_label.' '.$form_labels_class.' inbound-input-'.$type.'" style="'.$font_size.'">' . html_entity_decode($matches[3][$i]['label']) . $req_label . '</label>';
|
201 |
}
|
202 |
|
203 |
if ($type === 'textarea') {
|
287 |
|
288 |
$checkbox = $matches[3][$i]['checkbox'];
|
289 |
$checkbox_fields = explode(",", $checkbox);
|
|
|
290 |
foreach ($checkbox_fields as $key => $value) {
|
291 |
$value = html_entity_decode($value);
|
292 |
$checkbox_val_trimmed = strip_tags(trim($value));
|
293 |
$checkbox_val = strtolower(str_replace(array(' ','_'),'-',$checkbox_val_trimmed));
|
294 |
|
295 |
+
$form .= '<input class="checkbox-'.$main_layout.' checkbox-'.$form_labels_class.' '.$field_input_class.'" type="checkbox" name="'. $field_name .'[]" value="'. $checkbox_val .'" >'.$checkbox_val_trimmed.'<br>';
|
|
|
|
|
|
|
296 |
}
|
297 |
} else if ($type === 'html-block') {
|
298 |
|
341 |
'.$icon_insert.''.$submit_button.$inner_button.'</button></div><input data-ignore-form-field="true" type="hidden" name="inbound_submitted" value="1">';
|
342 |
// <!--<input type="submit" '.$submit_button_type.' class="button" value="'.$submit_button.'" name="send" id="inbound_form_submit" />-->
|
343 |
|
344 |
+
$form .= '<input type="hidden" name="inbound_form_n" class="inbound_form_n" value="'.$form_name.'"><input type="hidden" name="inbound_form_lists" id="inbound_form_lists" value="'.$lists.'" data-map-form-field="inbound_form_lists"><input type="hidden" name="inbound_form_id" class="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) .'"><input type="hidden" class="inbound_params" name="inbound_params" value=""></form></div>';
|
345 |
$form .= "<style type='text/css'>.inbound-button-submit{ {$font_size} }</style>";
|
346 |
$form = preg_replace('/<br class="inbr".\/>/', '', $form); // remove editor br tags
|
347 |
|
429 |
jQuery(document).ready(function($){
|
430 |
|
431 |
jQuery("form").submit(function(e) {
|
432 |
+
// added below condition for check any of checkbox checked or not by kirit dholakiya
|
433 |
+
if( jQuery(\'.checkbox-required\')[0] && jQuery(\'.checkbox-required input[type=checkbox]:checked\').length==0)
|
434 |
+
{
|
435 |
+
jQuery(\'.checkbox-required input[type=checkbox]:first\').focus();
|
436 |
+
alert("' . __( 'Oops! Looks like you have not filled out all of the required fields!' , 'cta' ) .'");
|
437 |
+
e.preventDefault();
|
438 |
+
e.stopImmediatePropagation();
|
439 |
+
}
|
440 |
jQuery(this).find("input").each(function(){
|
441 |
if(!jQuery(this).prop("required")){
|
442 |
} else if (!jQuery(this).val()) {
|
443 |
+
alert("' . __( 'Oops! Looks like you have not filled out all of the required fields!' , 'cta' ) .'");
|
444 |
+
|
445 |
e.preventDefault();
|
446 |
e.stopImmediatePropagation();
|
447 |
return false;
|
506 |
|
507 |
/* replace core tokens */
|
508 |
$content = str_replace('{{site-name}}', get_bloginfo( 'name' ) , $content);
|
509 |
+
//$content = str_replace('{{form-name}}', $form_data['inbound_form_n'] , $content);
|
510 |
|
511 |
foreach ($form_data as $key => $value) {
|
512 |
$token_key = str_replace('_','-', $key);
|
751 |
|
752 |
/* add default subject if empty */
|
753 |
if (!$confirm_subject) {
|
754 |
+
$confirm_subject = __( 'Thank you!' , 'cta' );
|
755 |
}
|
756 |
|
757 |
$confirm_email_message = $Inbound_Templating_Engine->replace_tokens( $confirm_email_message , array( $form_post_data, $form_meta_data ) );
|
814 |
|
815 |
case 'months':
|
816 |
return array(
|
817 |
+
'01' => __( 'Jan' , 'cta' ),
|
818 |
+
'02' => __( 'Feb' , 'cta' ),
|
819 |
+
'03' => __( 'Mar' , 'cta' ),
|
820 |
+
'04' => __( 'Apr' , 'cta' ),
|
821 |
+
'05' => __( 'May' , 'cta' ),
|
822 |
+
'06' => __( 'Jun' , 'cta' ),
|
823 |
+
'07' => __( 'Jul' , 'cta' ),
|
824 |
+
'08' => __( 'Aug' , 'cta' ),
|
825 |
+
'09' => __( 'Sep' , 'cta' ),
|
826 |
+
'10' => __( 'Oct' , 'cta' ),
|
827 |
+
'11' => __( 'Nov' , 'cta' ),
|
828 |
+
'12' => __( 'Dec' , 'cta' )
|
829 |
);
|
830 |
break;
|
831 |
case 'days' :
|
855 |
*/
|
856 |
public static function get_countries_array() {
|
857 |
return array (
|
858 |
+
__( 'AF' , 'leads') => __( 'Afghanistan' , 'cta' ) ,
|
859 |
+
__( 'AX' , 'leads') => __( 'Aland Islands' , 'cta' ) ,
|
860 |
+
__( 'AL' , 'leads') => __( 'Albania' , 'cta' ) ,
|
861 |
+
__( 'DZ' , 'leads') => __( 'Algeria' , 'cta' ) ,
|
862 |
+
__( 'AS' , 'leads') => __( 'American Samoa' , 'cta' ) ,
|
863 |
+
__( 'AD' , 'leads') => __( 'Andorra' , 'cta' ) ,
|
864 |
+
__( 'AO' , 'leads') => __( 'Angola' , 'cta' ) ,
|
865 |
+
__( 'AI' , 'leads') => __( 'Anguilla' , 'cta' ) ,
|
866 |
+
__( 'AQ' , 'leads') => __( 'Antarctica' , 'cta' ) ,
|
867 |
+
__( 'AG' , 'leads') => __( 'Antigua and Barbuda' , 'cta' ) ,
|
868 |
+
__( 'AR' , 'leads') => __( 'Argentina' , 'cta' ) ,
|
869 |
+
__( 'AM' , 'leads') => __( 'Armenia' , 'cta' ) ,
|
870 |
+
__( 'AW' , 'leads') => __( 'Aruba' , 'cta' ) ,
|
871 |
+
__( 'AU' , 'leads') => __( 'Australia' , 'cta' ) ,
|
872 |
+
__( 'AT' , 'leads') => __( 'Austria' , 'cta' ) ,
|
873 |
+
__( 'AZ' , 'leads') => __( 'Azerbaijan' , 'cta' ) ,
|
874 |
+
__( 'BS' , 'leads') => __( 'Bahamas' , 'cta' ) ,
|
875 |
+
__( 'BH' , 'leads') => __( 'Bahrain' , 'cta' ) ,
|
876 |
+
__( 'BD' , 'leads') => __( 'Bangladesh' , 'cta' ) ,
|
877 |
+
__( 'BB' , 'leads') => __( 'Barbados' , 'cta' ) ,
|
878 |
+
__( 'BY' , 'leads') => __( 'Belarus' , 'cta' ) ,
|
879 |
+
__( 'BE' , 'leads') => __( 'Belgium' , 'cta' ) ,
|
880 |
+
__( 'BZ' , 'leads') => __( 'Belize' , 'cta' ) ,
|
881 |
+
__( 'BJ' , 'leads') => __( 'Benin' , 'cta' ) ,
|
882 |
+
__( 'BM' , 'leads') => __( 'Bermuda' , 'cta' ) ,
|
883 |
+
__( 'BT' , 'leads') => __( 'Bhutan' , 'cta' ) ,
|
884 |
+
__( 'BO' , 'leads') => __( 'Bolivia' , 'cta' ) ,
|
885 |
+
__( 'BA' , 'leads') => __( 'Bosnia and Herzegovina' , 'cta' ) ,
|
886 |
+
__( 'BW' , 'leads') => __( 'Botswana' , 'cta' ) ,
|
887 |
+
__( 'BV' , 'leads') => __( 'Bouvet Island' , 'cta' ) ,
|
888 |
+
__( 'BR' , 'leads') => __( 'Brazil' , 'cta' ) ,
|
889 |
+
__( 'IO' , 'leads') => __( 'British Indian Ocean Territory' , 'cta' ) ,
|
890 |
+
__( 'BN' , 'leads') => __( 'Brunei Darussalam' , 'cta' ) ,
|
891 |
+
__( 'BG' , 'leads') => __( 'Bulgaria' , 'cta' ) ,
|
892 |
+
__( 'BF' , 'leads') => __( 'Burkina Faso' , 'cta' ) ,
|
893 |
+
__( 'BI' , 'leads') => __( 'Burundi' , 'cta' ) ,
|
894 |
+
__( 'KH' , 'leads') => __( 'Cambodia' , 'cta' ) ,
|
895 |
+
__( 'CM' , 'leads') => __( 'Cameroon' , 'cta' ) ,
|
896 |
+
__( 'CA' , 'leads') => __( 'Canada' , 'cta' ) ,
|
897 |
+
__( 'CV' , 'leads') => __( 'Cape Verde' , 'cta' ) ,
|
898 |
+
__( 'BQ' , 'leads') => __( 'Caribbean Netherlands ' , 'cta' ) ,
|
899 |
+
__( 'KY' , 'leads') => __( 'Cayman Islands' , 'cta' ) ,
|
900 |
+
__( 'CF' , 'leads') => __( 'Central African Republic' , 'cta' ) ,
|
901 |
+
__( 'TD' , 'leads') => __( 'Chad' , 'cta' ) ,
|
902 |
+
__( 'CL' , 'leads') => __( 'Chile' , 'cta' ) ,
|
903 |
+
__( 'CN' , 'leads') => __( 'China' , 'cta' ) ,
|
904 |
+
__( 'CX' , 'leads') => __( 'Christmas Island' , 'cta' ) ,
|
905 |
+
__( 'CC' , 'leads') => __( 'Cocos (Keeling) Islands' , 'cta' ) ,
|
906 |
+
__( 'CO' , 'leads') => __( 'Colombia' , 'cta' ) ,
|
907 |
+
__( 'KM' , 'leads') => __( 'Comoros' , 'cta' ) ,
|
908 |
+
__( 'CG' , 'leads') => __( 'Congo' , 'cta' ) ,
|
909 |
+
__( 'CD' , 'leads') => __( 'Congo, Democratic Republic of' , 'cta' ) ,
|
910 |
+
__( 'CK' , 'leads') => __( 'Cook Islands' , 'cta' ) ,
|
911 |
+
__( 'CR' , 'leads') => __( 'Costa Rica' , 'cta' ) ,
|
912 |
+
__( 'CI' , 'leads') => __( 'Cote d\'Ivoire' , 'cta' ) ,
|
913 |
+
__( 'HR' , 'leads') => __( 'Croatia' , 'cta' ) ,
|
914 |
+
__( 'CU' , 'leads') => __( 'Cuba' , 'cta' ) ,
|
915 |
+
__( 'CW' , 'leads') => __( 'Curacao' , 'cta' ) ,
|
916 |
+
__( 'CY' , 'leads') => __( 'Cyprus' , 'cta' ) ,
|
917 |
+
__( 'CZ' , 'leads') => __( 'Czech Republic' , 'cta' ) ,
|
918 |
+
__( 'DK' , 'leads') => __( 'Denmark' , 'cta' ) ,
|
919 |
+
__( 'DJ' , 'leads') => __( 'Djibouti' , 'cta' ) ,
|
920 |
+
__( 'DM' , 'leads') => __( 'Dominica' , 'cta' ) ,
|
921 |
+
__( 'DO' , 'leads') => __( 'Dominican Republic' , 'cta' ) ,
|
922 |
+
__( 'EC' , 'leads') => __( 'Ecuador' , 'cta' ) ,
|
923 |
+
__( 'EG' , 'leads') => __( 'Egypt' , 'cta' ) ,
|
924 |
+
__( 'SV' , 'leads') => __( 'El Salvador' , 'cta' ) ,
|
925 |
+
__( 'GQ' , 'leads') => __( 'Equatorial Guinea' , 'cta' ) ,
|
926 |
+
__( 'ER' , 'leads') => __( 'Eritrea' , 'cta' ) ,
|
927 |
+
__( 'EE' , 'leads') => __( 'Estonia' , 'cta' ) ,
|
928 |
+
__( 'ET' , 'leads') => __( 'Ethiopia' , 'cta' ) ,
|
929 |
+
__( 'FK' , 'leads') => __( 'Falkland Islands' , 'cta' ) ,
|
930 |
+
__( 'FO' , 'leads') => __( 'Faroe Islands' , 'cta' ) ,
|
931 |
+
__( 'FJ' , 'leads') => __( 'Fiji' , 'cta' ) ,
|
932 |
+
__( 'FI' , 'leads') => __( 'Finland' , 'cta' ) ,
|
933 |
+
__( 'FR' , 'leads') => __( 'France' , 'cta' ) ,
|
934 |
+
__( 'GF' , 'leads') => __( 'French Guiana' , 'cta' ) ,
|
935 |
+
__( 'PF' , 'leads') => __( 'French Polynesia' , 'cta' ) ,
|
936 |
+
__( 'TF' , 'leads') => __( 'French Southern Territories' , 'cta' ) ,
|
937 |
+
__( 'GA' , 'leads') => __( 'Gabon' , 'cta' ) ,
|
938 |
+
__( 'GM' , 'leads') => __( 'Gambia' , 'cta' ) ,
|
939 |
+
__( 'GE' , 'leads') => __( 'Georgia' , 'cta' ) ,
|
940 |
+
__( 'DE' , 'leads') => __( 'Germany' , 'cta' ) ,
|
941 |
+
__( 'GH' , 'leads') => __( 'Ghana' , 'cta' ) ,
|
942 |
+
__( 'GI' , 'leads') => __( 'Gibraltar' , 'cta' ) ,
|
943 |
+
__( 'GR' , 'leads') => __( 'Greece' , 'cta' ) ,
|
944 |
+
__( 'GL' , 'leads') => __( 'Greenland' , 'cta' ) ,
|
945 |
+
__( 'GD' , 'leads') => __( 'Grenada' , 'cta' ) ,
|
946 |
+
__( 'GP' , 'leads') => __( 'Guadeloupe' , 'cta' ) ,
|
947 |
+
__( 'GU' , 'leads') => __( 'Guam' , 'cta' ) ,
|
948 |
+
__( 'GT' , 'leads') => __( 'Guatemala' , 'cta' ) ,
|
949 |
+
__( 'GG' , 'leads') => __( 'Guernsey' , 'cta' ) ,
|
950 |
+
__( 'GN' , 'leads') => __( 'Guinea' , 'cta' ) ,
|
951 |
+
__( 'GW' , 'leads') => __( 'Guinea-Bissau' , 'cta' ) ,
|
952 |
+
__( 'GY' , 'leads') => __( 'Guyana' , 'cta' ) ,
|
953 |
+
__( 'HT' , 'leads') => __( 'Haiti' , 'cta' ) ,
|
954 |
+
__( 'HM' , 'leads') => __( 'Heard and McDonald Islands' , 'cta' ) ,
|
955 |
+
__( 'HN' , 'leads') => __( 'Honduras' , 'cta' ) ,
|
956 |
+
__( 'HK' , 'leads') => __( 'Hong Kong' , 'cta' ) ,
|
957 |
+
__( 'HU' , 'leads') => __( 'Hungary' , 'cta' ) ,
|
958 |
+
__( 'IS' , 'leads') => __( 'Iceland' , 'cta' ) ,
|
959 |
+
__( 'IN' , 'leads') => __( 'India' , 'cta' ) ,
|
960 |
+
__( 'ID' , 'leads') => __( 'Indonesia' , 'cta' ) ,
|
961 |
+
__( 'IR' , 'leads') => __( 'Iran' , 'cta' ) ,
|
962 |
+
__( 'IQ' , 'leads') => __( 'Iraq' , 'cta' ) ,
|
963 |
+
__( 'IE' , 'leads') => __( 'Ireland' , 'cta' ) ,
|
964 |
+
__( 'IM' , 'leads') => __( 'Isle of Man' , 'cta' ) ,
|
965 |
+
__( 'IL' , 'leads') => __( 'Israel' , 'cta' ) ,
|
966 |
+
__( 'IT' , 'leads') => __( 'Italy' , 'cta' ) ,
|
967 |
+
__( 'JM' , 'leads') => __( 'Jamaica' , 'cta' ) ,
|
968 |
+
__( 'JP' , 'leads') => __( 'Japan' , 'cta' ) ,
|
969 |
+
__( 'JE' , 'leads') => __( 'Jersey' , 'cta' ) ,
|
970 |
+
__( 'JO' , 'leads') => __( 'Jordan' , 'cta' ) ,
|
971 |
+
__( 'KZ' , 'leads') => __( 'Kazakhstan' , 'cta' ) ,
|
972 |
+
__( 'KE' , 'leads') => __( 'Kenya' , 'cta' ) ,
|
973 |
+
__( 'KI' , 'leads') => __( 'Kiribati' , 'cta' ) ,
|
974 |
+
__( 'KW' , 'leads') => __( 'Kuwait' , 'cta' ) ,
|
975 |
+
__( 'KG' , 'leads') => __( 'Kyrgyzstan' , 'cta' ) ,
|
976 |
+
__( 'LA' , 'leads') => __( 'Lao People\'s Democratic Republic' , 'cta' ) ,
|
977 |
+
__( 'LV' , 'leads') => __( 'Latvia' , 'cta' ) ,
|
978 |
+
__( 'LB' , 'leads') => __( 'Lebanon' , 'cta' ) ,
|
979 |
+
__( 'LS' , 'leads') => __( 'Lesotho' , 'cta' ) ,
|
980 |
+
__( 'LR' , 'leads') => __( 'Liberia' , 'cta' ) ,
|
981 |
+
__( 'LY' , 'leads') => __( 'Libya' , 'cta' ) ,
|
982 |
+
__( 'LI' , 'leads') => __( 'Liechtenstein' , 'cta' ) ,
|
983 |
+
__( 'LT' , 'leads') => __( 'Lithuania' , 'cta' ) ,
|
984 |
+
__( 'LU' , 'leads') => __( 'Luxembourg' , 'cta' ) ,
|
985 |
+
__( 'MO' , 'leads') => __( 'Macau' , 'cta' ) ,
|
986 |
+
__( 'MK' , 'leads') => __( 'Macedonia' , 'cta' ) ,
|
987 |
+
__( 'MG' , 'leads') => __( 'Madagascar' , 'cta' ) ,
|
988 |
+
__( 'MW' , 'leads') => __( 'Malawi' , 'cta' ) ,
|
989 |
+
__( 'MY' , 'leads') => __( 'Malaysia' , 'cta' ) ,
|
990 |
+
__( 'MV' , 'leads') => __( 'Maldives' , 'cta' ) ,
|
991 |
+
__( 'ML' , 'leads') => __( 'Mali' , 'cta' ) ,
|
992 |
+
__( 'MT' , 'leads') => __( 'Malta' , 'cta' ) ,
|
993 |
+
__( 'MH' , 'leads') => __( 'Marshall Islands' , 'cta' ) ,
|
994 |
+
__( 'MQ' , 'leads') => __( 'Martinique' , 'cta' ) ,
|
995 |
+
__( 'MR' , 'leads') => __( 'Mauritania' , 'cta' ) ,
|
996 |
+
__( 'MU' , 'leads') => __( 'Mauritius' , 'cta' ) ,
|
997 |
+
__( 'YT' , 'leads') => __( 'Mayotte' , 'cta' ) ,
|
998 |
+
__( 'MX' , 'leads') => __( 'Mexico' , 'cta' ) ,
|
999 |
+
__( 'FM' , 'leads') => __( 'Micronesia, Federated States of' , 'cta' ) ,
|
1000 |
+
__( 'MD' , 'leads') => __( 'Moldova' , 'cta' ) ,
|
1001 |
+
__( 'MC' , 'leads') => __( 'Monaco' , 'cta' ) ,
|
1002 |
+
__( 'MN' , 'leads') => __( 'Mongolia' , 'cta' ) ,
|
1003 |
+
__( 'ME' , 'leads') => __( 'Montenegro' , 'cta' ) ,
|
1004 |
+
__( 'MS' , 'leads') => __( 'Montserrat' , 'cta' ) ,
|
1005 |
+
__( 'MA' , 'leads') => __( 'Morocco' , 'cta' ) ,
|
1006 |
+
__( 'MZ' , 'leads') => __( 'Mozambique' , 'cta' ) ,
|
1007 |
+
__( 'MM' , 'leads') => __( 'Myanmar' , 'cta' ) ,
|
1008 |
+
__( 'NA' , 'leads') => __( 'Namibia' , 'cta' ) ,
|
1009 |
+
__( 'NR' , 'leads') => __( 'Nauru' , 'cta' ) ,
|
1010 |
+
__( 'NP' , 'leads') => __( 'Nepal' , 'cta' ) ,
|
1011 |
+
__( 'NC' , 'leads') => __( 'New Caledonia' , 'cta' ) ,
|
1012 |
+
__( 'NZ' , 'leads') => __( 'New Zealand' , 'cta' ) ,
|
1013 |
+
__( 'NI' , 'leads') => __( 'Nicaragua' , 'cta' ) ,
|
1014 |
+
__( 'NE' , 'leads') => __( 'Niger' , 'cta' ) ,
|
1015 |
+
__( 'NG' , 'leads') => __( 'Nigeria' , 'cta' ) ,
|
1016 |
+
__( 'NU' , 'leads') => __( 'Niue' , 'cta' ) ,
|
1017 |
+
__( 'NF' , 'leads') => __( 'Norfolk Island' , 'cta' ) ,
|
1018 |
+
__( 'KP' , 'leads') => __( 'North Korea' , 'cta' ) ,
|
1019 |
+
__( 'MP' , 'leads') => __( 'Northern Mariana Islands' , 'cta' ) ,
|
1020 |
+
__( 'NO' , 'leads') => __( 'Norway' , 'cta' ) ,
|
1021 |
+
__( 'OM' , 'leads') => __( 'Oman' , 'cta' ) ,
|
1022 |
+
__( 'PK' , 'leads') => __( 'Pakistan' , 'cta' ) ,
|
1023 |
+
__( 'PW' , 'leads') => __( 'Palau' , 'cta' ) ,
|
1024 |
+
__( 'PS' , 'leads') => __( 'Palestinian Territory, Occupied' , 'cta' ) ,
|
1025 |
+
__( 'PA' , 'leads') => __( 'Panama' , 'cta' ) ,
|
1026 |
+
__( 'PG' , 'leads') => __( 'Papua New Guinea' , 'cta' ) ,
|
1027 |
+
__( 'PY' , 'leads') => __( 'Paraguay' , 'cta' ) ,
|
1028 |
+
__( 'PE' , 'leads') => __( 'Peru' , 'cta' ) ,
|
1029 |
+
__( 'PH' , 'leads') => __( 'Philippines' , 'cta' ) ,
|
1030 |
+
__( 'PN' , 'leads') => __( 'Pitcairn' , 'cta' ) ,
|
1031 |
+
__( 'PL' , 'leads') => __( 'Poland' , 'cta' ) ,
|
1032 |
+
__( 'PT' , 'leads') => __( 'Portugal' , 'cta' ) ,
|
1033 |
+
__( 'PR' , 'leads') => __( 'Puerto Rico' , 'cta' ) ,
|
1034 |
+
__( 'QA' , 'leads') => __( 'Qatar' , 'cta' ) ,
|
1035 |
+
__( 'RE' , 'leads') => __( 'Reunion' , 'cta' ) ,
|
1036 |
+
__( 'RO' , 'leads') => __( 'Romania' , 'cta' ) ,
|
1037 |
+
__( 'RU' , 'leads') => __( 'Russian Federation' , 'cta' ) ,
|
1038 |
+
__( 'RW' , 'leads') => __( 'Rwanda' , 'cta' ) ,
|
1039 |
+
__( 'BL' , 'leads') => __( 'Saint Barthelemy' , 'cta' ) ,
|
1040 |
+
__( 'SH' , 'leads') => __( 'Saint Helena' , 'cta' ) ,
|
1041 |
+
__( 'KN' , 'leads') => __( 'Saint Kitts and Nevis' , 'cta' ) ,
|
1042 |
+
__( 'LC' , 'leads') => __( 'Saint Lucia' , 'cta' ) ,
|
1043 |
+
__( 'VC' , 'leads') => __( 'Saint Vincent and the Grenadines' , 'cta' ) ,
|
1044 |
+
__( 'MF' , 'leads') => __( 'Saint-Martin (France)' , 'cta' ) ,
|
1045 |
+
__( 'SX' , 'leads') => __( 'Saint-Martin (Pays-Bas)' , 'cta' ) ,
|
1046 |
+
__( 'WS' , 'leads') => __( 'Samoa' , 'cta' ) ,
|
1047 |
+
__( 'SM' , 'leads') => __( 'San Marino' , 'cta' ) ,
|
1048 |
+
__( 'ST' , 'leads') => __( 'Sao Tome and Principe' , 'cta' ) ,
|
1049 |
+
__( 'SA' , 'leads') => __( 'Saudi Arabia' , 'cta' ) ,
|
1050 |
+
__( 'SN' , 'leads') => __( 'Senegal' , 'cta' ) ,
|
1051 |
+
__( 'RS' , 'leads') => __( 'Serbia' , 'cta' ) ,
|
1052 |
+
__( 'SC' , 'leads') => __( 'Seychelles' , 'cta' ) ,
|
1053 |
+
__( 'SL' , 'leads') => __( 'Sierra Leone' , 'cta' ) ,
|
1054 |
+
__( 'SG' , 'leads') => __( 'Singapore' , 'cta' ) ,
|
1055 |
+
__( 'SK' , 'leads') => __( 'Slovakia (Slovak Republic)' , 'cta' ) ,
|
1056 |
+
__( 'SI' , 'leads') => __( 'Slovenia' , 'cta' ) ,
|
1057 |
+
__( 'SB' , 'leads') => __( 'Solomon Islands' , 'cta' ) ,
|
1058 |
+
__( 'SO' , 'leads') => __( 'Somalia' , 'cta' ) ,
|
1059 |
+
__( 'ZA' , 'leads') => __( 'South Africa' , 'cta' ) ,
|
1060 |
+
__( 'GS' , 'leads') => __( 'South Georgia and the South Sandwich Islands' , 'cta' ) ,
|
1061 |
+
__( 'KR' , 'leads') => __( 'South Korea' , 'cta' ) ,
|
1062 |
+
__( 'SS' , 'leads') => __( 'South Sudan' , 'cta' ) ,
|
1063 |
+
__( 'ES' , 'leads') => __( 'Spain' , 'cta' ) ,
|
1064 |
+
__( 'LK' , 'leads') => __( 'Sri Lanka' , 'cta' ) ,
|
1065 |
+
__( 'PM' , 'leads') => __( 'St. Pierre and Miquelon' , 'cta' ) ,
|
1066 |
+
__( 'SD' , 'leads') => __( 'Sudan' , 'cta' ) ,
|
1067 |
+
__( 'SR' , 'leads') => __( 'Suriname' , 'cta' ) ,
|
1068 |
+
__( 'SJ' , 'leads') => __( 'Svalbard and Jan Mayen Islands' , 'cta' ) ,
|
1069 |
+
__( 'SZ' , 'leads') => __( 'Swaziland' , 'cta' ) ,
|
1070 |
+
__( 'SE' , 'leads') => __( 'Sweden' , 'cta' ) ,
|
1071 |
+
__( 'CH' , 'leads') => __( 'Switzerland' , 'cta' ) ,
|
1072 |
+
__( 'SY' , 'leads') => __( 'Syria' , 'cta' ) ,
|
1073 |
+
__( 'TW' , 'leads') => __( 'Taiwan' , 'cta' ) ,
|
1074 |
+
__( 'TJ' , 'leads') => __( 'Tajikistan' , 'cta' ) ,
|
1075 |
+
__( 'TZ' , 'leads') => __( 'Tanzania' , 'cta' ) ,
|
1076 |
+
__( 'TH' , 'leads') => __( 'Thailand' , 'cta' ) ,
|
1077 |
+
__( 'NL' , 'leads') => __( 'The Netherlands' , 'cta' ) ,
|
1078 |
+
__( 'TL' , 'leads') => __( 'Timor-Leste' , 'cta' ) ,
|
1079 |
+
__( 'TG' , 'leads') => __( 'Togo' , 'cta' ) ,
|
1080 |
+
__( 'TK' , 'leads') => __( 'Tokelau' , 'cta' ) ,
|
1081 |
+
__( 'TO' , 'leads') => __( 'Tonga' , 'cta' ) ,
|
1082 |
+
__( 'TT' , 'leads') => __( 'Trinidad and Tobago' , 'cta' ) ,
|
1083 |
+
__( 'TN' , 'leads') => __( 'Tunisia' , 'cta' ) ,
|
1084 |
+
__( 'TR' , 'leads') => __( 'Turkey' , 'cta' ) ,
|
1085 |
+
__( 'TM' , 'leads') => __( 'Turkmenistan' , 'cta' ) ,
|
1086 |
+
__( 'TC' , 'leads') => __( 'Turks and Caicos Islands' , 'cta' ) ,
|
1087 |
+
__( 'TV' , 'leads') => __( 'Tuvalu' , 'cta' ) ,
|
1088 |
+
__( 'UG' , 'leads') => __( 'Uganda' , 'cta' ) ,
|
1089 |
+
__( 'UA' , 'leads') => __( 'Ukraine' , 'cta' ) ,
|
1090 |
+
__( 'AE' , 'leads') => __( 'United Arab Emirates' , 'cta' ) ,
|
1091 |
+
__( 'GB' , 'leads') => __( 'United Kingdom' , 'cta' ) ,
|
1092 |
+
__( 'US' , 'leads') => __( 'United States' , 'cta' ) ,
|
1093 |
+
__( 'UM' , 'leads') => __( 'United States Minor Outlying Islands' , 'cta' ) ,
|
1094 |
+
__( 'UY' , 'leads') => __( 'Uruguay' , 'cta' ) ,
|
1095 |
+
__( 'UZ' , 'leads') => __( 'Uzbekistan' , 'cta' ) ,
|
1096 |
+
__( 'VU' , 'leads') => __( 'Vanuatu' , 'cta' ) ,
|
1097 |
+
__( 'VA' , 'leads') => __( 'Vatican' , 'cta' ) ,
|
1098 |
+
__( 'VE' , 'leads') => __( 'Venezuela' , 'cta' ) ,
|
1099 |
+
__( 'VN' , 'leads') => __( 'Vietnam' , 'cta' ) ,
|
1100 |
+
__( 'VG' , 'leads') => __( 'Virgin Islands (British)' , 'cta' ) ,
|
1101 |
+
__( 'VI' , 'leads') => __( 'Virgin Islands (U.S.)' , 'cta' ) ,
|
1102 |
+
__( 'WF' , 'leads') => __( 'Wallis and Futuna Islands' , 'cta' ) ,
|
1103 |
+
__( 'EH' , 'leads') => __( 'Western Sahara' , 'cta' ) ,
|
1104 |
+
__( 'YE' , 'leads') => __( 'Yemen' , 'cta' ) ,
|
1105 |
+
__( 'ZM' , 'leads') => __( 'Zambia' , 'cta' ) ,
|
1106 |
+
__( 'ZW' , 'leads') => __( 'Zimbabwe' , 'cta' )
|
1107 |
);
|
1108 |
}
|
1109 |
|
shared/classes/class.lead-fields.php
CHANGED
@@ -11,225 +11,225 @@ if ( !class_exists('Leads_Field_Map') ) {
|
|
11 |
|
12 |
$lead_fields = array(
|
13 |
array(
|
14 |
-
'label' => __( 'First Name' , '
|
15 |
'key' => 'wpleads_first_name',
|
16 |
'priority' => 20,
|
17 |
'type' => 'text'
|
18 |
),
|
19 |
array(
|
20 |
-
'label' => __( 'Last Name' , '
|
21 |
'key' => 'wpleads_last_name',
|
22 |
'priority' => 30,
|
23 |
'type' => 'text'
|
24 |
),
|
25 |
array(
|
26 |
-
'label' => __( 'Email' , '
|
27 |
'key' => 'wpleads_email_address',
|
28 |
'priority' => 40,
|
29 |
'type' => 'text'
|
30 |
),
|
31 |
array(
|
32 |
-
'label' => __( 'Website' , '
|
33 |
'key' => 'wpleads_website',
|
34 |
'priority' => 50,
|
35 |
'type' => 'text'
|
36 |
),
|
37 |
array(
|
38 |
-
'label' => __( 'Job Title' , '
|
39 |
'key' => 'wpleads_job_title',
|
40 |
'priority' => 60,
|
41 |
'type' => 'text'
|
42 |
),
|
43 |
array(
|
44 |
-
'label' => __( 'Company Name' , '
|
45 |
'key' => 'wpleads_company_name',
|
46 |
'priority' => 70,
|
47 |
'type' => 'text'
|
48 |
),
|
49 |
array(
|
50 |
-
'label' => __( 'Mobile Phone' , '
|
51 |
'key' => 'wpleads_mobile_phone',
|
52 |
'priority' => 80,
|
53 |
'type' => 'text'
|
54 |
),
|
55 |
array(
|
56 |
-
'label' => __( 'Work Phone' , '
|
57 |
'key' => 'wpleads_work_phone',
|
58 |
'priority' => 90,
|
59 |
'type' => 'text'
|
60 |
),
|
61 |
array(
|
62 |
-
'label' => __( 'Address' , '
|
63 |
'key' => 'wpleads_address_line_1',
|
64 |
'priority' => 100,
|
65 |
'type' => 'text'
|
66 |
),
|
67 |
array(
|
68 |
-
'label' => __( 'Address Continued' , '
|
69 |
'key' => 'wpleads_address_line_2',
|
70 |
'priority' => 110,
|
71 |
'type' => 'text'
|
72 |
),
|
73 |
array(
|
74 |
-
'label' => __( 'City' , '
|
75 |
'key' => 'wpleads_city',
|
76 |
'priority' => 120,
|
77 |
'type' => 'text'
|
78 |
),
|
79 |
array(
|
80 |
-
'label' => __( 'State/Region' , '
|
81 |
'key' => 'wpleads_region_name',
|
82 |
'priority' => 130,
|
83 |
'type' => 'text'
|
84 |
),
|
85 |
array(
|
86 |
-
'label' => __( 'Zip-code' , '
|
87 |
'key' => 'wpleads_zip',
|
88 |
'priority' => 140,
|
89 |
'type' => 'text'
|
90 |
),
|
91 |
|
92 |
array(
|
93 |
-
'label' => __( 'Country' , '
|
94 |
'key' => 'wpleads_country_code',
|
95 |
'priority' => 150,
|
96 |
'type' => 'text'
|
97 |
),
|
98 |
array(
|
99 |
-
'label' => __( 'Billing First Name' , '
|
100 |
'key' => 'wpleads_billing_first_name',
|
101 |
'priority' => 160,
|
102 |
'type' => 'text'
|
103 |
),
|
104 |
array(
|
105 |
-
'label' => __( 'Billing Last Name' , '
|
106 |
'key' => 'wpleads_billing_last_name',
|
107 |
'priority' => 120,
|
108 |
'type' => 'text'
|
109 |
),
|
110 |
array(
|
111 |
-
'label' => __( 'Billing Company' , '
|
112 |
'key' => 'wpleads_billing_company_name',
|
113 |
'priority' => 170,
|
114 |
'type' => 'text'
|
115 |
),
|
116 |
array(
|
117 |
-
'label' => __( 'Billing Address' , '
|
118 |
'key' => 'wpleads_billing_address_line_1',
|
119 |
'priority' => 180,
|
120 |
'type' => 'text'
|
121 |
),
|
122 |
array(
|
123 |
-
'label' => __( 'Billing Address Continued' , '
|
124 |
'key' => 'wpleads_billing_address_line_2',
|
125 |
'priority' => 190,
|
126 |
'type' => 'text'
|
127 |
),
|
128 |
array(
|
129 |
-
'label' => __( 'Billing City' , '
|
130 |
'key' => 'wpleads_billing_city',
|
131 |
'priority' => 200,
|
132 |
'type' => 'text'
|
133 |
),
|
134 |
array(
|
135 |
-
'label' => __( 'Billing State/Region' , '
|
136 |
'key' => 'wpleads_billing_region_name',
|
137 |
'priority' => 210,
|
138 |
'type' => 'text'
|
139 |
),
|
140 |
array(
|
141 |
-
'label' => __( 'Billing Zip-code' , '
|
142 |
'key' => 'wpleads_billing_zip',
|
143 |
'priority' => 220,
|
144 |
'type' => 'text'
|
145 |
),
|
146 |
|
147 |
array(
|
148 |
-
'label' => __( 'Billing Country' , '
|
149 |
'key' => 'wpleads_billing_country_code',
|
150 |
'priority' => 230,
|
151 |
'type' => 'text'
|
152 |
),
|
153 |
array(
|
154 |
-
'label' => __( 'Shipping First Name' , '
|
155 |
'key' => 'wpleads_shipping_first_name',
|
156 |
'priority' => 240,
|
157 |
'type' => 'text'
|
158 |
),
|
159 |
array(
|
160 |
-
'label' => __( 'Shipping Last Name' , '
|
161 |
'key' => 'wpleads_shipping_last_name',
|
162 |
'priority' => 250,
|
163 |
'type' => 'text'
|
164 |
),
|
165 |
array(
|
166 |
-
'label' => __( 'Shipping Company Name' , '
|
167 |
'key' => 'wpleads_shipping_company_name',
|
168 |
'priority' => 260,
|
169 |
'type' => 'text'
|
170 |
),
|
171 |
array(
|
172 |
-
'label' => __( 'Shipping Address' , '
|
173 |
'key' => 'wpleads_shipping_address_line_1',
|
174 |
'priority' => 270,
|
175 |
'type' => 'text'
|
176 |
),
|
177 |
array(
|
178 |
-
'label' => __( 'Shipping Address Continued' , '
|
179 |
'key' => 'wpleads_shipping_address_line_2',
|
180 |
'priority' => 280,
|
181 |
'type' => 'text'
|
182 |
),
|
183 |
array(
|
184 |
-
'label' => __( 'Shipping City' , '
|
185 |
'key' => 'wpleads_shipping_city',
|
186 |
'priority' => 290,
|
187 |
'type' => 'text'
|
188 |
),
|
189 |
array(
|
190 |
-
'label' => __( 'Shipping State/Region' , '
|
191 |
'key' => 'wpleads_shipping_region_name',
|
192 |
'priority' => 300,
|
193 |
'type' => 'text'
|
194 |
),
|
195 |
array(
|
196 |
-
'label' => __( 'Shipping Zip-code' , '
|
197 |
'key' => 'wpleads_shipping_zip',
|
198 |
'priority' => 310,
|
199 |
'type' => 'text'
|
200 |
),
|
201 |
array(
|
202 |
-
'label' => __( 'Shipping Country' , '
|
203 |
'key' => 'wpleads_shipping_country_code',
|
204 |
'priority' => 320,
|
205 |
'type' => 'text'
|
206 |
),
|
207 |
array(
|
208 |
-
'label' => __( 'Related Websites' , '
|
209 |
'key' => 'wpleads_websites',
|
210 |
'priority' => 330,
|
211 |
'type' => 'links'
|
212 |
),
|
213 |
array(
|
214 |
-
'label' => __( 'Notes' , '
|
215 |
'key' => 'wpleads_notes',
|
216 |
'priority' => 340,
|
217 |
'type' => 'textarea'
|
218 |
),
|
219 |
array(
|
220 |
-
'label' => __( 'Twitter Account' , '
|
221 |
'key' => 'wpleads_social_youtube',
|
222 |
'priority' => 350,
|
223 |
'type' => 'text'
|
224 |
),
|
225 |
array(
|
226 |
-
'label' => __( 'Youtube Account' , '
|
227 |
'key' => 'wpleads_social_youtube',
|
228 |
'priority' => 360,
|
229 |
'type' => 'text'
|
230 |
),
|
231 |
array(
|
232 |
-
'label' => __( 'Facebook Account' , '
|
233 |
'key' => 'wpleads_social_facebook',
|
234 |
'priority' => 370,
|
235 |
'type' => 'text'
|
@@ -313,25 +313,25 @@ function custom_add_more_lead_fields($lead_fields) {
|
|
313 |
|
314 |
$new_fields = array(
|
315 |
array(
|
316 |
-
'label' => __( 'Style' , '
|
317 |
'key' => 'wpleads_style',
|
318 |
'priority' => 1,
|
319 |
'type' => 'text'
|
320 |
),
|
321 |
array(
|
322 |
-
'label' => __( 'Lead Source' , '
|
323 |
'key' => 'wpleads_lead_source',
|
324 |
'priority' => 19,
|
325 |
'type' => 'text'
|
326 |
),
|
327 |
array(
|
328 |
-
'label' => __( 'New Field' , '
|
329 |
'key' => 'wpleads_lead_source',
|
330 |
'priority' => 19,
|
331 |
'type' => 'text'
|
332 |
),
|
333 |
array(
|
334 |
-
'label' => __( 'Description' , '
|
335 |
'key' => 'wpleads_description',
|
336 |
'priority' => 19,
|
337 |
'type' => 'textarea'
|
11 |
|
12 |
$lead_fields = array(
|
13 |
array(
|
14 |
+
'label' => __( 'First Name' , 'cta' ) ,
|
15 |
'key' => 'wpleads_first_name',
|
16 |
'priority' => 20,
|
17 |
'type' => 'text'
|
18 |
),
|
19 |
array(
|
20 |
+
'label' => __( 'Last Name' , 'cta' ) ,
|
21 |
'key' => 'wpleads_last_name',
|
22 |
'priority' => 30,
|
23 |
'type' => 'text'
|
24 |
),
|
25 |
array(
|
26 |
+
'label' => __( 'Email' , 'cta' ) ,
|
27 |
'key' => 'wpleads_email_address',
|
28 |
'priority' => 40,
|
29 |
'type' => 'text'
|
30 |
),
|
31 |
array(
|
32 |
+
'label' => __( 'Website' , 'cta' ) ,
|
33 |
'key' => 'wpleads_website',
|
34 |
'priority' => 50,
|
35 |
'type' => 'text'
|
36 |
),
|
37 |
array(
|
38 |
+
'label' => __( 'Job Title' , 'cta' ) ,
|
39 |
'key' => 'wpleads_job_title',
|
40 |
'priority' => 60,
|
41 |
'type' => 'text'
|
42 |
),
|
43 |
array(
|
44 |
+
'label' => __( 'Company Name' , 'cta' ) ,
|
45 |
'key' => 'wpleads_company_name',
|
46 |
'priority' => 70,
|
47 |
'type' => 'text'
|
48 |
),
|
49 |
array(
|
50 |
+
'label' => __( 'Mobile Phone' , 'cta' ) ,
|
51 |
'key' => 'wpleads_mobile_phone',
|
52 |
'priority' => 80,
|
53 |
'type' => 'text'
|
54 |
),
|
55 |
array(
|
56 |
+
'label' => __( 'Work Phone' , 'cta' ) ,
|
57 |
'key' => 'wpleads_work_phone',
|
58 |
'priority' => 90,
|
59 |
'type' => 'text'
|
60 |
),
|
61 |
array(
|
62 |
+
'label' => __( 'Address' , 'cta' ) ,
|
63 |
'key' => 'wpleads_address_line_1',
|
64 |
'priority' => 100,
|
65 |
'type' => 'text'
|
66 |
),
|
67 |
array(
|
68 |
+
'label' => __( 'Address Continued' , 'cta' ) ,
|
69 |
'key' => 'wpleads_address_line_2',
|
70 |
'priority' => 110,
|
71 |
'type' => 'text'
|
72 |
),
|
73 |
array(
|
74 |
+
'label' => __( 'City' , 'cta' ) ,
|
75 |
'key' => 'wpleads_city',
|
76 |
'priority' => 120,
|
77 |
'type' => 'text'
|
78 |
),
|
79 |
array(
|
80 |
+
'label' => __( 'State/Region' , 'cta' ) ,
|
81 |
'key' => 'wpleads_region_name',
|
82 |
'priority' => 130,
|
83 |
'type' => 'text'
|
84 |
),
|
85 |
array(
|
86 |
+
'label' => __( 'Zip-code' , 'cta' ) ,
|
87 |
'key' => 'wpleads_zip',
|
88 |
'priority' => 140,
|
89 |
'type' => 'text'
|
90 |
),
|
91 |
|
92 |
array(
|
93 |
+
'label' => __( 'Country' , 'cta' ) ,
|
94 |
'key' => 'wpleads_country_code',
|
95 |
'priority' => 150,
|
96 |
'type' => 'text'
|
97 |
),
|
98 |
array(
|
99 |
+
'label' => __( 'Billing First Name' , 'cta' ) ,
|
100 |
'key' => 'wpleads_billing_first_name',
|
101 |
'priority' => 160,
|
102 |
'type' => 'text'
|
103 |
),
|
104 |
array(
|
105 |
+
'label' => __( 'Billing Last Name' , 'cta' ) ,
|
106 |
'key' => 'wpleads_billing_last_name',
|
107 |
'priority' => 120,
|
108 |
'type' => 'text'
|
109 |
),
|
110 |
array(
|
111 |
+
'label' => __( 'Billing Company' , 'cta' ) ,
|
112 |
'key' => 'wpleads_billing_company_name',
|
113 |
'priority' => 170,
|
114 |
'type' => 'text'
|
115 |
),
|
116 |
array(
|
117 |
+
'label' => __( 'Billing Address' , 'cta' ) ,
|
118 |
'key' => 'wpleads_billing_address_line_1',
|
119 |
'priority' => 180,
|
120 |
'type' => 'text'
|
121 |
),
|
122 |
array(
|
123 |
+
'label' => __( 'Billing Address Continued' , 'cta' ) ,
|
124 |
'key' => 'wpleads_billing_address_line_2',
|
125 |
'priority' => 190,
|
126 |
'type' => 'text'
|
127 |
),
|
128 |
array(
|
129 |
+
'label' => __( 'Billing City' , 'cta' ) ,
|
130 |
'key' => 'wpleads_billing_city',
|
131 |
'priority' => 200,
|
132 |
'type' => 'text'
|
133 |
),
|
134 |
array(
|
135 |
+
'label' => __( 'Billing State/Region' , 'cta' ) ,
|
136 |
'key' => 'wpleads_billing_region_name',
|
137 |
'priority' => 210,
|
138 |
'type' => 'text'
|
139 |
),
|
140 |
array(
|
141 |
+
'label' => __( 'Billing Zip-code' , 'cta' ) ,
|
142 |
'key' => 'wpleads_billing_zip',
|
143 |
'priority' => 220,
|
144 |
'type' => 'text'
|
145 |
),
|
146 |
|
147 |
array(
|
148 |
+
'label' => __( 'Billing Country' , 'cta' ) ,
|
149 |
'key' => 'wpleads_billing_country_code',
|
150 |
'priority' => 230,
|
151 |
'type' => 'text'
|
152 |
),
|
153 |
array(
|
154 |
+
'label' => __( 'Shipping First Name' , 'cta' ) ,
|
155 |
'key' => 'wpleads_shipping_first_name',
|
156 |
'priority' => 240,
|
157 |
'type' => 'text'
|
158 |
),
|
159 |
array(
|
160 |
+
'label' => __( 'Shipping Last Name' , 'cta' ) ,
|
161 |
'key' => 'wpleads_shipping_last_name',
|
162 |
'priority' => 250,
|
163 |
'type' => 'text'
|
164 |
),
|
165 |
array(
|
166 |
+
'label' => __( 'Shipping Company Name' , 'cta' ) ,
|
167 |
'key' => 'wpleads_shipping_company_name',
|
168 |
'priority' => 260,
|
169 |
'type' => 'text'
|
170 |
),
|
171 |
array(
|
172 |
+
'label' => __( 'Shipping Address' , 'cta' ) ,
|
173 |
'key' => 'wpleads_shipping_address_line_1',
|
174 |
'priority' => 270,
|
175 |
'type' => 'text'
|
176 |
),
|
177 |
array(
|
178 |
+
'label' => __( 'Shipping Address Continued' , 'cta' ) ,
|
179 |
'key' => 'wpleads_shipping_address_line_2',
|
180 |
'priority' => 280,
|
181 |
'type' => 'text'
|
182 |
),
|
183 |
array(
|
184 |
+
'label' => __( 'Shipping City' , 'cta' ) ,
|
185 |
'key' => 'wpleads_shipping_city',
|
186 |
'priority' => 290,
|
187 |
'type' => 'text'
|
188 |
),
|
189 |
array(
|
190 |
+
'label' => __( 'Shipping State/Region' , 'cta' ) ,
|
191 |
'key' => 'wpleads_shipping_region_name',
|
192 |
'priority' => 300,
|
193 |
'type' => 'text'
|
194 |
),
|
195 |
array(
|
196 |
+
'label' => __( 'Shipping Zip-code' , 'cta' ) ,
|
197 |
'key' => 'wpleads_shipping_zip',
|
198 |
'priority' => 310,
|
199 |
'type' => 'text'
|
200 |
),
|
201 |
array(
|
202 |
+
'label' => __( 'Shipping Country' , 'cta' ) ,
|
203 |
'key' => 'wpleads_shipping_country_code',
|
204 |
'priority' => 320,
|
205 |
'type' => 'text'
|
206 |
),
|
207 |
array(
|
208 |
+
'label' => __( 'Related Websites' , 'cta' ) ,
|
209 |
'key' => 'wpleads_websites',
|
210 |
'priority' => 330,
|
211 |
'type' => 'links'
|
212 |
),
|
213 |
array(
|
214 |
+
'label' => __( 'Notes' , 'cta' ) ,
|
215 |
'key' => 'wpleads_notes',
|
216 |
'priority' => 340,
|
217 |
'type' => 'textarea'
|
218 |
),
|
219 |
array(
|
220 |
+
'label' => __( 'Twitter Account' , 'cta' ) ,
|
221 |
'key' => 'wpleads_social_youtube',
|
222 |
'priority' => 350,
|
223 |
'type' => 'text'
|
224 |
),
|
225 |
array(
|
226 |
+
'label' => __( 'Youtube Account' , 'cta' ) ,
|
227 |
'key' => 'wpleads_social_youtube',
|
228 |
'priority' => 360,
|
229 |
'type' => 'text'
|
230 |
),
|
231 |
array(
|
232 |
+
'label' => __( 'Facebook Account' , 'cta' ) ,
|
233 |
'key' => 'wpleads_social_facebook',
|
234 |
'priority' => 370,
|
235 |
'type' => 'text'
|
313 |
|
314 |
$new_fields = array(
|
315 |
array(
|
316 |
+
'label' => __( 'Style' , 'cta' ) ,
|
317 |
'key' => 'wpleads_style',
|
318 |
'priority' => 1,
|
319 |
'type' => 'text'
|
320 |
),
|
321 |
array(
|
322 |
+
'label' => __( 'Lead Source' , 'cta' ) ,
|
323 |
'key' => 'wpleads_lead_source',
|
324 |
'priority' => 19,
|
325 |
'type' => 'text'
|
326 |
),
|
327 |
array(
|
328 |
+
'label' => __( 'New Field' , 'cta' ) ,
|
329 |
'key' => 'wpleads_lead_source',
|
330 |
'priority' => 19,
|
331 |
'type' => 'text'
|
332 |
),
|
333 |
array(
|
334 |
+
'label' => __( 'Description' , 'cta' ) ,
|
335 |
'key' => 'wpleads_description',
|
336 |
'priority' => 19,
|
337 |
'type' => 'textarea'
|
shared/classes/class.menu.php
CHANGED
@@ -20,7 +20,7 @@ if (!class_exists('Inbound_Menu')) {
|
|
20 |
}
|
21 |
|
22 |
self::$add_menu = true;
|
23 |
-
self::$go_button = '<input type="submit" value="' . __( 'GO', '
|
24 |
self::$inboundnow_menu_key = 'inbound-admin-bar';
|
25 |
self::$inboundnow_menu_secondary_group_key = 'inbound-secondary';
|
26 |
self::hooks();
|
@@ -36,7 +36,7 @@ if (!class_exists('Inbound_Menu')) {
|
|
36 |
/* Add Parent Nav Menu - Inbound Marketing*/
|
37 |
$wp_admin_bar->add_menu( array(
|
38 |
'id' => self::$inboundnow_menu_key,
|
39 |
-
'title' => __( ' Marketing', '
|
40 |
'href' => "",
|
41 |
'meta' => array( 'class' => 'inbound-nav-marketing', 'title' => 'Inbound Marketing Admin' )
|
42 |
) );
|
@@ -129,46 +129,46 @@ if (!class_exists('Inbound_Menu')) {
|
|
129 |
/* 1 - Lead Parent */
|
130 |
$menu_items[ $leads_key ] = array(
|
131 |
'parent' => self::$inboundnow_menu_key,
|
132 |
-
'title' => __( 'Leads', '
|
133 |
'href' => admin_url( 'edit.php?post_type=wp-lead' ),
|
134 |
-
'meta' => array( 'target' => '', 'title' => _x( 'Manage Forms', '
|
135 |
);
|
136 |
|
137 |
/* 1.1 - Leads search form */
|
138 |
-
$leads_search_text = __( 'Search All Leads' , '
|
139 |
$menu_items['inbound-leads-search'] = array(
|
140 |
'parent' => $leads_key,
|
141 |
'title' => '<form id="inbound-menu-form" method="get" action="'.admin_url( 'edit.php?post_type=wp-lead' ).'" class=" " target="_blank">
|
142 |
-
<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', '
|
143 |
<input type="hidden" name="post_type" value="wp-lead" />
|
144 |
<input type="hidden" name="post_status" value="all" />
|
145 |
' . self::$go_button ,
|
146 |
'href' => false,
|
147 |
-
'meta' => array( 'target' => '', 'title' => _x( 'Search Leads', 'Translators: For the tooltip', '
|
148 |
);
|
149 |
|
150 |
/* 1.2 - View All Leads */
|
151 |
$menu_items['inbound-leads-view'] = array(
|
152 |
'parent' => $leads_key,
|
153 |
-
'title' => __( 'View All Leads', '
|
154 |
'href' => admin_url( 'edit.php?post_type=wp-lead' ),
|
155 |
-
'meta' => array( 'target' => '', 'title' => __( 'View All Forms', '
|
156 |
);
|
157 |
|
158 |
/* 1.3 - View Lead Lists */
|
159 |
$menu_items['inbound-leads-list'] = array(
|
160 |
'parent' => $leads_key,
|
161 |
-
'title' => __( 'View Lead Lists', '
|
162 |
'href' => admin_url( 'edit-tags.php?taxonomy=wplead_list_category&post_type=wp-lead' ),
|
163 |
-
'meta' => array( 'target' => '', 'title' => __( 'View Lead Lists', '
|
164 |
);
|
165 |
|
166 |
/* 1.4 - Create New Lead */
|
167 |
$menu_items['inbound-leads-add'] = array(
|
168 |
'parent' => $leads_key,
|
169 |
-
'title' => __( 'Create New Lead', '
|
170 |
'href' => admin_url( 'post-new.php?post_type=wp-lead' ),
|
171 |
-
'meta' => array( 'target' => '', 'title' => __( 'Add new lead', '
|
172 |
);
|
173 |
|
174 |
return $menu_items;
|
@@ -187,42 +187,42 @@ if (!class_exists('Inbound_Menu')) {
|
|
187 |
/* 1 - Calls to Action */
|
188 |
$menu_items[ $cta_key ] = array(
|
189 |
'parent' => self::$inboundnow_menu_key,
|
190 |
-
'title' => __( 'Call to Actions', '
|
191 |
'href' => admin_url( 'edit.php?post_type=wp-call-to-action' ),
|
192 |
-
'meta' => array( 'target' => '', 'title' => __( 'View All Landing Pages', '
|
193 |
);
|
194 |
|
195 |
/* 1.1 - View Calls to Action */
|
196 |
$menu_items['inbound-cta-view'] = array(
|
197 |
'parent' => $cta_key,
|
198 |
-
'title' => __( 'View Calls to Action List', '
|
199 |
'href' => admin_url( 'post-new.php?post_type=wp-call-to-action' ),
|
200 |
-
'meta' => array( 'target' => '', 'title' => __( 'View All Landing Pages', '
|
201 |
);
|
202 |
|
203 |
/* 1.2 - Add Calls to Action */
|
204 |
$menu_items['inbound-cta-add'] = array(
|
205 |
'parent' => $cta_key,
|
206 |
-
'title' => __( 'Add New Call to Action', '
|
207 |
'href' => admin_url( 'post-new.php?post_type=wp-call-to-action' ),
|
208 |
-
'meta' => array( 'target' => '', 'title' => __( 'Add new call to action', '
|
209 |
);
|
210 |
|
211 |
/* 1.3 - Calls to Action Categories */
|
212 |
$menu_items['inbound-cta-categories'] = array(
|
213 |
'parent' => $cta_key,
|
214 |
-
'title' => __( 'Categories', '
|
215 |
'href' => admin_url( 'edit-tags.php?taxonomy=wp_call_to_action_category&post_type=wp-call-to-action' ),
|
216 |
-
'meta' => array( 'target' => '', 'title' => __( 'Landing Page Categories', '
|
217 |
);
|
218 |
|
219 |
/* 1.4 - Settings */
|
220 |
if ( current_user_can( 'manage_options' )) {
|
221 |
$menu_items['inbound-cta-settings'] = array(
|
222 |
'parent' => $cta_key,
|
223 |
-
'title' => __( 'Settings', '
|
224 |
'href' => admin_url( 'edit.php?post_type=wp-call-to-action&page=wp_cta_global_settings' ),
|
225 |
-
'meta' => array( 'target' => '', 'title' => __( 'Manage Call to Action Settings', '
|
226 |
);
|
227 |
}
|
228 |
|
@@ -243,42 +243,42 @@ if (!class_exists('Inbound_Menu')) {
|
|
243 |
/* 1 - Landing Pages */
|
244 |
$menu_items[ $landing_pages_key ] = array(
|
245 |
'parent' => self::$inboundnow_menu_key,
|
246 |
-
'title' => __( 'Landing Pages', '
|
247 |
'href' => admin_url( 'edit.php?post_type=landing-page' ),
|
248 |
-
'meta' => array( 'target' => '', 'title' => __( 'View All Landing Pages', '
|
249 |
);
|
250 |
|
251 |
/* 1.1 - View Landing Pages */
|
252 |
$menu_items['inbound-landingpages-view'] = array(
|
253 |
'parent' => $landing_pages_key,
|
254 |
-
'title' => __( 'View Landing Pages List', '
|
255 |
'href' => admin_url( 'edit.php?post_type=landing-page' ),
|
256 |
-
'meta' => array( 'target' => '', 'title' => __( 'View All Landing Pages', '
|
257 |
);
|
258 |
|
259 |
/* 1.2 - Add New Landing Pages */
|
260 |
$menu_items['inbound-landingpages-add'] = array(
|
261 |
'parent' => $landing_pages_key,
|
262 |
-
'title' => __( 'Add New Landing Page', '
|
263 |
'href' => admin_url( 'post-new.php?post_type=landing-page' ),
|
264 |
-
'meta' => array( 'target' => '', 'title' => __( 'Add new Landing Page', '
|
265 |
);
|
266 |
|
267 |
/* 1.3 - Landing Pages Categories */
|
268 |
$menu_items['inbound-landingpages-categories'] = array(
|
269 |
'parent' => $landing_pages_key,
|
270 |
-
'title' => __( 'Categories', '
|
271 |
'href' => admin_url( 'edit-tags.php?taxonomy=landing_page_category&post_type=landing-page' ),
|
272 |
-
'meta' => array( 'target' => '', 'title' => __( 'Landing Page Categories', '
|
273 |
);
|
274 |
|
275 |
/* 1.4 - Landing Pages Settings */
|
276 |
if ( current_user_can( 'manage_options' )) {
|
277 |
$menu_items['inbound-landingpages-settings'] = array(
|
278 |
'parent' => $landing_pages_key,
|
279 |
-
'title' => __( 'Settings', '
|
280 |
'href' => admin_url( 'edit.php?post_type=landing-page&page=lp_global_settings' ),
|
281 |
-
'meta' => array( 'target' => '', 'title' => __( 'Manage Landing Page Settings', '
|
282 |
);
|
283 |
}
|
284 |
|
@@ -298,17 +298,17 @@ if (!class_exists('Inbound_Menu')) {
|
|
298 |
/* 1 - Manage Forms */
|
299 |
$menu_items[ $forms_key ] = array(
|
300 |
'parent' => self::$inboundnow_menu_key,
|
301 |
-
'title' => __( 'Manage Forms', '
|
302 |
'href' => admin_url( 'edit.php?post_type=inbound-forms' ),
|
303 |
-
'meta' => array( 'target' => '', 'title' => _x( 'Manage Forms', '
|
304 |
);
|
305 |
|
306 |
/* 1.1 - View All Forms */
|
307 |
$menu_items['inbound-forms-view'] = array(
|
308 |
'parent' => $forms_key,
|
309 |
-
'title' => __( 'View All Forms', '
|
310 |
'href' => admin_url( 'edit.php?post_type=inbound-forms' ),
|
311 |
-
'meta' => array( 'target' => '', 'title' => __( 'View All Forms', '
|
312 |
);
|
313 |
|
314 |
/* 1.1.x Get Forms and List */
|
@@ -326,9 +326,9 @@ if (!class_exists('Inbound_Menu')) {
|
|
326 |
/* 1.2 - Create New Form */
|
327 |
$menu_items['inbound-forms-add'] = array(
|
328 |
'parent' => $forms_key,
|
329 |
-
'title' => __( 'Create New Form', '
|
330 |
'href' => admin_url( 'post-new.php?post_type=inbound-forms' ),
|
331 |
-
'meta' => array( 'target' => '', 'title' => __( 'Add new call to action', '
|
332 |
);
|
333 |
|
334 |
return $menu_items;
|
@@ -345,26 +345,26 @@ if (!class_exists('Inbound_Menu')) {
|
|
345 |
/* 1 - Manage Templates */
|
346 |
$menu_items[ $templates_key ] = array(
|
347 |
'parent' => self::$inboundnow_menu_key,
|
348 |
-
'title' => __( 'Manage Templates', '
|
349 |
'href' => "",
|
350 |
-
'meta' => array( 'target' => '', 'title' => _x( 'Manage Templates', '
|
351 |
);
|
352 |
|
353 |
/* 1.1 - Get More Templates */
|
354 |
$menu_items['inbound-gettemplates'] = array(
|
355 |
'parent' => $templates_key,
|
356 |
-
'title' => __( 'Download More Templates', '
|
357 |
'href' => "http://www.inboundnow.com/market",
|
358 |
-
'meta' => array( 'target' => '', 'title' => __( 'Download More Templates', '
|
359 |
);
|
360 |
|
361 |
/* 1.1 - Landing Page Templates */
|
362 |
if (isset(self::$load_landingpages)) {
|
363 |
$menu_items['inbound-landingpagetemplates'] = array(
|
364 |
'parent' => $templates_key,
|
365 |
-
'title' => __( 'Landing Page Templates', '
|
366 |
'href' => admin_url( 'edit.php?post_type=landing-page&page=lp_manage_templates' ),
|
367 |
-
'meta' => array( 'target' => '', 'title' => __( 'Landing Page Templates', '
|
368 |
);
|
369 |
}
|
370 |
|
@@ -372,9 +372,9 @@ if (!class_exists('Inbound_Menu')) {
|
|
372 |
if (isset(self::$load_callstoaction)) {
|
373 |
$menu_items['inbound-ctatemplates'] = array(
|
374 |
'parent' => $templates_key,
|
375 |
-
'title' => __( 'Call to Action Templates', '
|
376 |
'href' => admin_url( 'edit.php?post_type=wp-call-to-action&page=wp_cta_manage_templates' ),
|
377 |
-
'meta' => array( 'target' => '', 'title' => __( 'Call to Action Templates', '
|
378 |
);
|
379 |
}
|
380 |
|
@@ -388,36 +388,36 @@ if (!class_exists('Inbound_Menu')) {
|
|
388 |
/* 1 - Global Settings */
|
389 |
$menu_items[ $settings_key ] = array(
|
390 |
'parent' => self::$inboundnow_menu_key,
|
391 |
-
'title' => __( 'Global Settings', '
|
392 |
'href' => "",
|
393 |
-
'meta' => array( 'target' => '', 'title' => _x( 'Manage Settings', '
|
394 |
);
|
395 |
|
396 |
/* 1.1 - Call to Action Settings */
|
397 |
if (self::$load_callstoaction) {
|
398 |
$menu_items['inbound-ctasettings'] = array(
|
399 |
'parent' => $settings_key,
|
400 |
-
'title' => __( 'Call to Action Settings', '
|
401 |
'href' => admin_url( 'edit.php?post_type=wp-call-to-action&page=wp_cta_global_settings' ),
|
402 |
-
'meta' => array( 'target' => '', 'title' => __( 'Call to Action Settings', '
|
403 |
);
|
404 |
}
|
405 |
|
406 |
if (self::$load_landingpages) {
|
407 |
$menu_items['inbound-landingpagesettings'] = array(
|
408 |
'parent' => $settings_key,
|
409 |
-
'title' => __( 'Landing Page Settings', '
|
410 |
'href' => admin_url( 'edit.php?post_type=landing-page&page=lp_global_settings' ),
|
411 |
-
'meta' => array( 'target' => '', 'title' => __( 'Landing Page Settings', '
|
412 |
);
|
413 |
}
|
414 |
|
415 |
if (self::$load_leads) {
|
416 |
$menu_items['inbound-leadssettings'] = array(
|
417 |
'parent' => $settings_key,
|
418 |
-
'title' => __( 'Lead Settings', '
|
419 |
'href' => admin_url( 'edit.php?post_type=wp-lead&page=wpleads_global_settings' ),
|
420 |
-
'meta' => array( 'target' => '', 'title' => __( 'Lead Settings', '
|
421 |
);
|
422 |
}
|
423 |
|
@@ -431,9 +431,9 @@ if (!class_exists('Inbound_Menu')) {
|
|
431 |
/* 1 - Analytics */
|
432 |
$menu_items[ $analytics_key ] = array(
|
433 |
'parent' => self::$inboundnow_menu_key,
|
434 |
-
'title' => __( 'Analytics (coming soon)', '
|
435 |
'href' => '#',
|
436 |
-
'meta' => array( 'target' => '', 'title' => __( 'Analytics (coming soon)', '
|
437 |
);
|
438 |
|
439 |
return $menu_items;
|
@@ -446,9 +446,9 @@ if (!class_exists('Inbound_Menu')) {
|
|
446 |
if (function_exists( 'is_plugin_active' ) && is_plugin_active('wordpress-seo/wp-seo.php')) {
|
447 |
$menu_items[ $seo_key ] = array(
|
448 |
'parent' => self::$inboundnow_menu_key,
|
449 |
-
'title' => __( 'SEO by Yoast', '
|
450 |
'href' => admin_url( 'admin.php?page=wpseo_dashboard' ),
|
451 |
-
'meta' => array( 'target' => '', 'title' => __( 'Manage SEO Settings', '
|
452 |
);
|
453 |
}
|
454 |
|
@@ -462,30 +462,30 @@ if (!class_exists('Inbound_Menu')) {
|
|
462 |
/* 1 - Support Form */
|
463 |
$secondary_menu_items[ $support_key ] = array(
|
464 |
'parent' => self::$inboundnow_menu_secondary_group_key,
|
465 |
-
'title' => __( 'Support Forum', '
|
466 |
'href' => 'https://www.inboundnow.com/support/',
|
467 |
-
'meta' => array( 'target' => '_blank' , 'title' => __( 'Support Forum', '
|
468 |
);
|
469 |
|
470 |
/* 1 - Documentation */
|
471 |
$secondary_menu_items['inbound-docs'] = array(
|
472 |
'parent' => self::$inboundnow_menu_secondary_group_key,
|
473 |
-
'title' => __( 'Documentation', '
|
474 |
'href' => 'http://docs.inboundnow.com/',
|
475 |
-
'meta' => array( 'title' => __( 'Documentation', '
|
476 |
);
|
477 |
|
478 |
/* 1 - Doc Search */
|
479 |
-
$search_docs_text = __( 'Search Docs', '
|
480 |
|
481 |
$secondary_menu_items['inbound-docs-searchform'] = array(
|
482 |
'parent' => self::$inboundnow_menu_secondary_group_key,
|
483 |
'title' => '<form method="get" id="inbound-menu-form" action="http://www.inboundnow.com/support/search/?action=bbp-search-request" class=" " target="_blank">
|
484 |
-
<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', '
|
485 |
<input type="hidden" name="post_type[]" value="docs" />
|
486 |
<input type="hidden" name="post_type[]" value="page" />' . self::$go_button,
|
487 |
'href' => false,
|
488 |
-
'meta' => array( 'target' => '', 'title' => _x( 'Search Docs', 'Translators: For the tooltip', '
|
489 |
);
|
490 |
|
491 |
return $secondary_menu_items;
|
@@ -498,41 +498,41 @@ if (!class_exists('Inbound_Menu')) {
|
|
498 |
/* 1 - Inbound Now Plugin HQ */
|
499 |
$secondary_menu_items[ $hq_key ] = array(
|
500 |
'parent' => self::$inboundnow_menu_secondary_group_key,
|
501 |
-
'title' => __( 'Inbound Now Plugin HQ', '
|
502 |
'href' => 'https://www.inboundnow.com/',
|
503 |
-
'meta' => array( 'title' => __( 'Inbound Now Plugin HQ', '
|
504 |
);
|
505 |
|
506 |
/* 1.1 - GitHub Link */
|
507 |
$secondary_menu_items['inbound-sites-dev'] = array(
|
508 |
'parent' => $hq_key,
|
509 |
-
'title' => __( 'GitHub Repository Developer Center', '
|
510 |
'href' => 'https://github.com/inboundnow',
|
511 |
-
'meta' => array( 'title' => __( 'GitHub Repository Developer Center', '
|
512 |
);
|
513 |
|
514 |
/* 1.2 - Offical Blog */
|
515 |
$secondary_menu_items['inbound-sites-blog'] = array(
|
516 |
'parent' => $hq_key,
|
517 |
-
'title' => __( 'Official Blog', '
|
518 |
'href' => 'https://www.inboundnow.com/blog/',
|
519 |
-
'meta' => array( 'title' => __( 'Official Blog', '
|
520 |
);
|
521 |
|
522 |
/* 1.3 - My Account */
|
523 |
$secondary_menu_items['inboundsitesaccount'] = array(
|
524 |
'parent' => $hq_key,
|
525 |
-
'title' => __( 'My Account', '
|
526 |
'href' => 'https://www.inboundnow.com/marketplace/account/',
|
527 |
-
'meta' => array( 'title' => __( 'My Account', '
|
528 |
);
|
529 |
|
530 |
/* 1.3.1 - Purchase History */
|
531 |
$secondary_menu_items['inboundsitesaccount-history'] = array(
|
532 |
'parent' => 'inboundsitesaccount',
|
533 |
-
'title' => __( 'Purchase History', '
|
534 |
'href' => 'https://www.inboundnow.com/marketplace/account/purchase-history/',
|
535 |
-
'meta' => array( 'title' => __( 'Purchase History', '
|
536 |
);
|
537 |
|
538 |
return $secondary_menu_items;
|
@@ -545,7 +545,7 @@ if (!class_exists('Inbound_Menu')) {
|
|
545 |
/* 1 - Debug Tools */
|
546 |
$secondary_menu_items[ $debug_key ] = array(
|
547 |
'parent' => self::$inboundnow_menu_secondary_group_key,
|
548 |
-
'title' => __( '<span style="color:#fff;font-size: 13px;margin-top: -1px;display: inline-block;">Debug Tools</span>', '
|
549 |
'href' => "#",
|
550 |
'meta' => ""
|
551 |
);
|
@@ -571,17 +571,17 @@ if (!class_exists('Inbound_Menu')) {
|
|
571 |
/* 1.1 - Check for JS Errors */
|
572 |
$secondary_menu_items['inbound-debug-checkjs'] = array(
|
573 |
'parent' => $debug_key,
|
574 |
-
'title' => __( 'Check for Javascript Errors', '
|
575 |
'href' => $actual_link_two,
|
576 |
-
'meta' => array( 'title' => __( 'Click here to check javascript errors on this page', '
|
577 |
);
|
578 |
|
579 |
/* 1.2 - Check for JS Errors */
|
580 |
$secondary_menu_items['inbound-debug-turnoffscripts'] = array(
|
581 |
'parent' => $debug_key,
|
582 |
-
'title' => __( 'Remove Javascript Errors', '
|
583 |
'href' => $actual_link,
|
584 |
-
'meta' => array( 'title' => __( 'Click here to remove broken javascript to fix issues', '
|
585 |
);
|
586 |
|
587 |
return apply_filters('inbound_menu_debug' , $secondary_menu_items , $debug_key );
|
20 |
}
|
21 |
|
22 |
self::$add_menu = true;
|
23 |
+
self::$go_button = '<input type="submit" value="' . __( 'GO', 'cta' ) . '" class="inbound-search-go" /></form>';
|
24 |
self::$inboundnow_menu_key = 'inbound-admin-bar';
|
25 |
self::$inboundnow_menu_secondary_group_key = 'inbound-secondary';
|
26 |
self::hooks();
|
36 |
/* Add Parent Nav Menu - Inbound Marketing*/
|
37 |
$wp_admin_bar->add_menu( array(
|
38 |
'id' => self::$inboundnow_menu_key,
|
39 |
+
'title' => __( ' Marketing', 'cta' ),
|
40 |
'href' => "",
|
41 |
'meta' => array( 'class' => 'inbound-nav-marketing', 'title' => 'Inbound Marketing Admin' )
|
42 |
) );
|
129 |
/* 1 - Lead Parent */
|
130 |
$menu_items[ $leads_key ] = array(
|
131 |
'parent' => self::$inboundnow_menu_key,
|
132 |
+
'title' => __( 'Leads', 'cta' ),
|
133 |
'href' => admin_url( 'edit.php?post_type=wp-lead' ),
|
134 |
+
'meta' => array( 'target' => '', 'title' => _x( 'Manage Forms', 'cta' ) )
|
135 |
);
|
136 |
|
137 |
/* 1.1 - Leads search form */
|
138 |
+
$leads_search_text = __( 'Search All Leads' , 'cta' );
|
139 |
$menu_items['inbound-leads-search'] = array(
|
140 |
'parent' => $leads_key,
|
141 |
'title' => '<form id="inbound-menu-form" method="get" action="'.admin_url( 'edit.php?post_type=wp-lead' ).'" class=" " target="_blank">
|
142 |
+
<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', 'cta' ) . '" class="text inbound-search-input" />
|
143 |
<input type="hidden" name="post_type" value="wp-lead" />
|
144 |
<input type="hidden" name="post_status" value="all" />
|
145 |
' . self::$go_button ,
|
146 |
'href' => false,
|
147 |
+
'meta' => array( 'target' => '', 'title' => _x( 'Search Leads', 'Translators: For the tooltip', 'cta' ) )
|
148 |
);
|
149 |
|
150 |
/* 1.2 - View All Leads */
|
151 |
$menu_items['inbound-leads-view'] = array(
|
152 |
'parent' => $leads_key,
|
153 |
+
'title' => __( 'View All Leads', 'cta' ),
|
154 |
'href' => admin_url( 'edit.php?post_type=wp-lead' ),
|
155 |
+
'meta' => array( 'target' => '', 'title' => __( 'View All Forms', 'cta' ) )
|
156 |
);
|
157 |
|
158 |
/* 1.3 - View Lead Lists */
|
159 |
$menu_items['inbound-leads-list'] = array(
|
160 |
'parent' => $leads_key,
|
161 |
+
'title' => __( 'View Lead Lists', 'cta' ),
|
162 |
'href' => admin_url( 'edit-tags.php?taxonomy=wplead_list_category&post_type=wp-lead' ),
|
163 |
+
'meta' => array( 'target' => '', 'title' => __( 'View Lead Lists', 'cta' ) )
|
164 |
);
|
165 |
|
166 |
/* 1.4 - Create New Lead */
|
167 |
$menu_items['inbound-leads-add'] = array(
|
168 |
'parent' => $leads_key,
|
169 |
+
'title' => __( 'Create New Lead', 'cta' ),
|
170 |
'href' => admin_url( 'post-new.php?post_type=wp-lead' ),
|
171 |
+
'meta' => array( 'target' => '', 'title' => __( 'Add new lead', 'cta' ) )
|
172 |
);
|
173 |
|
174 |
return $menu_items;
|
187 |
/* 1 - Calls to Action */
|
188 |
$menu_items[ $cta_key ] = array(
|
189 |
'parent' => self::$inboundnow_menu_key,
|
190 |
+
'title' => __( 'Call to Actions', 'cta' ),
|
191 |
'href' => admin_url( 'edit.php?post_type=wp-call-to-action' ),
|
192 |
+
'meta' => array( 'target' => '', 'title' => __( 'View All Landing Pages', 'cta' ) )
|
193 |
);
|
194 |
|
195 |
/* 1.1 - View Calls to Action */
|
196 |
$menu_items['inbound-cta-view'] = array(
|
197 |
'parent' => $cta_key,
|
198 |
+
'title' => __( 'View Calls to Action List', 'cta' ),
|
199 |
'href' => admin_url( 'post-new.php?post_type=wp-call-to-action' ),
|
200 |
+
'meta' => array( 'target' => '', 'title' => __( 'View All Landing Pages', 'cta' ) )
|
201 |
);
|
202 |
|
203 |
/* 1.2 - Add Calls to Action */
|
204 |
$menu_items['inbound-cta-add'] = array(
|
205 |
'parent' => $cta_key,
|
206 |
+
'title' => __( 'Add New Call to Action', 'cta' ),
|
207 |
'href' => admin_url( 'post-new.php?post_type=wp-call-to-action' ),
|
208 |
+
'meta' => array( 'target' => '', 'title' => __( 'Add new call to action', 'cta' ) )
|
209 |
);
|
210 |
|
211 |
/* 1.3 - Calls to Action Categories */
|
212 |
$menu_items['inbound-cta-categories'] = array(
|
213 |
'parent' => $cta_key,
|
214 |
+
'title' => __( 'Categories', 'cta' ),
|
215 |
'href' => admin_url( 'edit-tags.php?taxonomy=wp_call_to_action_category&post_type=wp-call-to-action' ),
|
216 |
+
'meta' => array( 'target' => '', 'title' => __( 'Landing Page Categories', 'cta' ) )
|
217 |
);
|
218 |
|
219 |
/* 1.4 - Settings */
|
220 |
if ( current_user_can( 'manage_options' )) {
|
221 |
$menu_items['inbound-cta-settings'] = array(
|
222 |
'parent' => $cta_key,
|
223 |
+
'title' => __( 'Settings', 'cta' ),
|
224 |
'href' => admin_url( 'edit.php?post_type=wp-call-to-action&page=wp_cta_global_settings' ),
|
225 |
+
'meta' => array( 'target' => '', 'title' => __( 'Manage Call to Action Settings', 'cta' ) )
|
226 |
);
|
227 |
}
|
228 |
|
243 |
/* 1 - Landing Pages */
|
244 |
$menu_items[ $landing_pages_key ] = array(
|
245 |
'parent' => self::$inboundnow_menu_key,
|
246 |
+
'title' => __( 'Landing Pages', 'cta' ),
|
247 |
'href' => admin_url( 'edit.php?post_type=landing-page' ),
|
248 |
+
'meta' => array( 'target' => '', 'title' => __( 'View All Landing Pages', 'cta' ) )
|
249 |
);
|
250 |
|
251 |
/* 1.1 - View Landing Pages */
|
252 |
$menu_items['inbound-landingpages-view'] = array(
|
253 |
'parent' => $landing_pages_key,
|
254 |
+
'title' => __( 'View Landing Pages List', 'cta' ),
|
255 |
'href' => admin_url( 'edit.php?post_type=landing-page' ),
|
256 |
+
'meta' => array( 'target' => '', 'title' => __( 'View All Landing Pages', 'cta' ) )
|
257 |
);
|
258 |
|
259 |
/* 1.2 - Add New Landing Pages */
|
260 |
$menu_items['inbound-landingpages-add'] = array(
|
261 |
'parent' => $landing_pages_key,
|
262 |
+
'title' => __( 'Add New Landing Page', 'cta' ),
|
263 |
'href' => admin_url( 'post-new.php?post_type=landing-page' ),
|
264 |
+
'meta' => array( 'target' => '', 'title' => __( 'Add new Landing Page', 'cta' ) )
|
265 |
);
|
266 |
|
267 |
/* 1.3 - Landing Pages Categories */
|
268 |
$menu_items['inbound-landingpages-categories'] = array(
|
269 |
'parent' => $landing_pages_key,
|
270 |
+
'title' => __( 'Categories', 'cta' ),
|
271 |
'href' => admin_url( 'edit-tags.php?taxonomy=landing_page_category&post_type=landing-page' ),
|
272 |
+
'meta' => array( 'target' => '', 'title' => __( 'Landing Page Categories', 'cta' ) )
|
273 |
);
|
274 |
|
275 |
/* 1.4 - Landing Pages Settings */
|
276 |
if ( current_user_can( 'manage_options' )) {
|
277 |
$menu_items['inbound-landingpages-settings'] = array(
|
278 |
'parent' => $landing_pages_key,
|
279 |
+
'title' => __( 'Settings', 'cta' ),
|
280 |
'href' => admin_url( 'edit.php?post_type=landing-page&page=lp_global_settings' ),
|
281 |
+
'meta' => array( 'target' => '', 'title' => __( 'Manage Landing Page Settings', 'cta' ) )
|
282 |
);
|
283 |
}
|
284 |
|
298 |
/* 1 - Manage Forms */
|
299 |
$menu_items[ $forms_key ] = array(
|
300 |
'parent' => self::$inboundnow_menu_key,
|
301 |
+
'title' => __( 'Manage Forms', 'cta' ),
|
302 |
'href' => admin_url( 'edit.php?post_type=inbound-forms' ),
|
303 |
+
'meta' => array( 'target' => '', 'title' => _x( 'Manage Forms', 'cta' ) )
|
304 |
);
|
305 |
|
306 |
/* 1.1 - View All Forms */
|
307 |
$menu_items['inbound-forms-view'] = array(
|
308 |
'parent' => $forms_key,
|
309 |
+
'title' => __( 'View All Forms', 'cta' ),
|
310 |
'href' => admin_url( 'edit.php?post_type=inbound-forms' ),
|
311 |
+
'meta' => array( 'target' => '', 'title' => __( 'View All Forms', 'cta' ) )
|
312 |
);
|
313 |
|
314 |
/* 1.1.x Get Forms and List */
|
326 |
/* 1.2 - Create New Form */
|
327 |
$menu_items['inbound-forms-add'] = array(
|
328 |
'parent' => $forms_key,
|
329 |
+
'title' => __( 'Create New Form', 'cta' ),
|
330 |
'href' => admin_url( 'post-new.php?post_type=inbound-forms' ),
|
331 |
+
'meta' => array( 'target' => '', 'title' => __( 'Add new call to action', 'cta' ) )
|
332 |
);
|
333 |
|
334 |
return $menu_items;
|
345 |
/* 1 - Manage Templates */
|
346 |
$menu_items[ $templates_key ] = array(
|
347 |
'parent' => self::$inboundnow_menu_key,
|
348 |
+
'title' => __( 'Manage Templates', 'cta' ),
|
349 |
'href' => "",
|
350 |
+
'meta' => array( 'target' => '', 'title' => _x( 'Manage Templates', 'cta' ) )
|
351 |
);
|
352 |
|
353 |
/* 1.1 - Get More Templates */
|
354 |
$menu_items['inbound-gettemplates'] = array(
|
355 |
'parent' => $templates_key,
|
356 |
+
'title' => __( 'Download More Templates', 'cta' ),
|
357 |
'href' => "http://www.inboundnow.com/market",
|
358 |
+
'meta' => array( 'target' => '', 'title' => __( 'Download More Templates', 'cta' ) )
|
359 |
);
|
360 |
|
361 |
/* 1.1 - Landing Page Templates */
|
362 |
if (isset(self::$load_landingpages)) {
|
363 |
$menu_items['inbound-landingpagetemplates'] = array(
|
364 |
'parent' => $templates_key,
|
365 |
+
'title' => __( 'Landing Page Templates', 'cta' ),
|
366 |
'href' => admin_url( 'edit.php?post_type=landing-page&page=lp_manage_templates' ),
|
367 |
+
'meta' => array( 'target' => '', 'title' => __( 'Landing Page Templates', 'cta' ) )
|
368 |
);
|
369 |
}
|
370 |
|
372 |
if (isset(self::$load_callstoaction)) {
|
373 |
$menu_items['inbound-ctatemplates'] = array(
|
374 |
'parent' => $templates_key,
|
375 |
+
'title' => __( 'Call to Action Templates', 'cta' ),
|
376 |
'href' => admin_url( 'edit.php?post_type=wp-call-to-action&page=wp_cta_manage_templates' ),
|
377 |
+
'meta' => array( 'target' => '', 'title' => __( 'Call to Action Templates', 'cta' ) )
|
378 |
);
|
379 |
}
|
380 |
|
388 |
/* 1 - Global Settings */
|
389 |
$menu_items[ $settings_key ] = array(
|
390 |
'parent' => self::$inboundnow_menu_key,
|
391 |
+
'title' => __( 'Global Settings', 'cta' ),
|
392 |
'href' => "",
|
393 |
+
'meta' => array( 'target' => '', 'title' => _x( 'Manage Settings', 'cta' ) )
|
394 |
);
|
395 |
|
396 |
/* 1.1 - Call to Action Settings */
|
397 |
if (self::$load_callstoaction) {
|
398 |
$menu_items['inbound-ctasettings'] = array(
|
399 |
'parent' => $settings_key,
|
400 |
+
'title' => __( 'Call to Action Settings', 'cta' ),
|
401 |
'href' => admin_url( 'edit.php?post_type=wp-call-to-action&page=wp_cta_global_settings' ),
|
402 |
+
'meta' => array( 'target' => '', 'title' => __( 'Call to Action Settings', 'cta' ) )
|
403 |
);
|
404 |
}
|
405 |
|
406 |
if (self::$load_landingpages) {
|
407 |
$menu_items['inbound-landingpagesettings'] = array(
|
408 |
'parent' => $settings_key,
|
409 |
+
'title' => __( 'Landing Page Settings', 'cta' ),
|
410 |
'href' => admin_url( 'edit.php?post_type=landing-page&page=lp_global_settings' ),
|
411 |
+
'meta' => array( 'target' => '', 'title' => __( 'Landing Page Settings', 'cta' ) )
|
412 |
);
|
413 |
}
|
414 |
|
415 |
if (self::$load_leads) {
|
416 |
$menu_items['inbound-leadssettings'] = array(
|
417 |
'parent' => $settings_key,
|
418 |
+
'title' => __( 'Lead Settings', 'cta' ),
|
419 |
'href' => admin_url( 'edit.php?post_type=wp-lead&page=wpleads_global_settings' ),
|
420 |
+
'meta' => array( 'target' => '', 'title' => __( 'Lead Settings', 'cta' ) )
|
421 |
);
|
422 |
}
|
423 |
|
431 |
/* 1 - Analytics */
|
432 |
$menu_items[ $analytics_key ] = array(
|
433 |
'parent' => self::$inboundnow_menu_key,
|
434 |
+
'title' => __( 'Analytics (coming soon)', 'cta' ),
|
435 |
'href' => '#',
|
436 |
+
'meta' => array( 'target' => '', 'title' => __( 'Analytics (coming soon)', 'cta' ) )
|
437 |
);
|
438 |
|
439 |
return $menu_items;
|
446 |
if (function_exists( 'is_plugin_active' ) && is_plugin_active('wordpress-seo/wp-seo.php')) {
|
447 |
$menu_items[ $seo_key ] = array(
|
448 |
'parent' => self::$inboundnow_menu_key,
|
449 |
+
'title' => __( 'SEO by Yoast', 'cta' ),
|
450 |
'href' => admin_url( 'admin.php?page=wpseo_dashboard' ),
|
451 |
+
'meta' => array( 'target' => '', 'title' => __( 'Manage SEO Settings', 'cta' ) )
|
452 |
);
|
453 |
}
|
454 |
|
462 |
/* 1 - Support Form */
|
463 |
$secondary_menu_items[ $support_key ] = array(
|
464 |
'parent' => self::$inboundnow_menu_secondary_group_key,
|
465 |
+
'title' => __( 'Support Forum', 'cta' ),
|
466 |
'href' => 'https://www.inboundnow.com/support/',
|
467 |
+
'meta' => array( 'target' => '_blank' , 'title' => __( 'Support Forum', 'cta' ) )
|
468 |
);
|
469 |
|
470 |
/* 1 - Documentation */
|
471 |
$secondary_menu_items['inbound-docs'] = array(
|
472 |
'parent' => self::$inboundnow_menu_secondary_group_key,
|
473 |
+
'title' => __( 'Documentation', 'cta' ),
|
474 |
'href' => 'http://docs.inboundnow.com/',
|
475 |
+
'meta' => array( 'title' => __( 'Documentation', 'cta' ) )
|
476 |
);
|
477 |
|
478 |
/* 1 - Doc Search */
|
479 |
+
$search_docs_text = __( 'Search Docs', 'cta' );
|
480 |
|
481 |
$secondary_menu_items['inbound-docs-searchform'] = array(
|
482 |
'parent' => self::$inboundnow_menu_secondary_group_key,
|
483 |
'title' => '<form method="get" id="inbound-menu-form" action="http://www.inboundnow.com/support/search/?action=bbp-search-request" class=" " target="_blank">
|
484 |
+
<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', 'cta' ) . '" class="text inbound-search-input" />
|
485 |
<input type="hidden" name="post_type[]" value="docs" />
|
486 |
<input type="hidden" name="post_type[]" value="page" />' . self::$go_button,
|
487 |
'href' => false,
|
488 |
+
'meta' => array( 'target' => '', 'title' => _x( 'Search Docs', 'Translators: For the tooltip', 'cta' ) )
|
489 |
);
|
490 |
|
491 |
return $secondary_menu_items;
|
498 |
/* 1 - Inbound Now Plugin HQ */
|
499 |
$secondary_menu_items[ $hq_key ] = array(
|
500 |
'parent' => self::$inboundnow_menu_secondary_group_key,
|
501 |
+
'title' => __( 'Inbound Now Plugin HQ', 'cta' ),
|
502 |
'href' => 'https://www.inboundnow.com/',
|
503 |
+
'meta' => array( 'title' => __( 'Inbound Now Plugin HQ', 'cta' ) )
|
504 |
);
|
505 |
|
506 |
/* 1.1 - GitHub Link */
|
507 |
$secondary_menu_items['inbound-sites-dev'] = array(
|
508 |
'parent' => $hq_key,
|
509 |
+
'title' => __( 'GitHub Repository Developer Center', 'cta' ),
|
510 |
'href' => 'https://github.com/inboundnow',
|
511 |
+
'meta' => array( 'title' => __( 'GitHub Repository Developer Center', 'cta' ) )
|
512 |
);
|
513 |
|
514 |
/* 1.2 - Offical Blog */
|
515 |
$secondary_menu_items['inbound-sites-blog'] = array(
|
516 |
'parent' => $hq_key,
|
517 |
+
'title' => __( 'Official Blog', 'cta' ),
|
518 |
'href' => 'https://www.inboundnow.com/blog/',
|
519 |
+
'meta' => array( 'title' => __( 'Official Blog', 'cta' ) )
|
520 |
);
|
521 |
|
522 |
/* 1.3 - My Account */
|
523 |
$secondary_menu_items['inboundsitesaccount'] = array(
|
524 |
'parent' => $hq_key,
|
525 |
+
'title' => __( 'My Account', 'cta' ),
|
526 |
'href' => 'https://www.inboundnow.com/marketplace/account/',
|
527 |
+
'meta' => array( 'title' => __( 'My Account', 'cta' ) )
|
528 |
);
|
529 |
|
530 |
/* 1.3.1 - Purchase History */
|
531 |
$secondary_menu_items['inboundsitesaccount-history'] = array(
|
532 |
'parent' => 'inboundsitesaccount',
|
533 |
+
'title' => __( 'Purchase History', 'cta' ),
|
534 |
'href' => 'https://www.inboundnow.com/marketplace/account/purchase-history/',
|
535 |
+
'meta' => array( 'title' => __( 'Purchase History', 'cta' ) )
|
536 |
);
|
537 |
|
538 |
return $secondary_menu_items;
|
545 |
/* 1 - Debug Tools */
|
546 |
$secondary_menu_items[ $debug_key ] = array(
|
547 |
'parent' => self::$inboundnow_menu_secondary_group_key,
|
548 |
+
'title' => __( '<span style="color:#fff;font-size: 13px;margin-top: -1px;display: inline-block;">Debug Tools</span>', 'cta' ),
|
549 |
'href' => "#",
|
550 |
'meta' => ""
|
551 |
);
|
571 |
/* 1.1 - Check for JS Errors */
|
572 |
$secondary_menu_items['inbound-debug-checkjs'] = array(
|
573 |
'parent' => $debug_key,
|
574 |
+
'title' => __( 'Check for Javascript Errors', 'cta' ),
|
575 |
'href' => $actual_link_two,
|
576 |
+
'meta' => array( 'title' => __( 'Click here to check javascript errors on this page', 'cta' ) )
|
577 |
);
|
578 |
|
579 |
/* 1.2 - Check for JS Errors */
|
580 |
$secondary_menu_items['inbound-debug-turnoffscripts'] = array(
|
581 |
'parent' => $debug_key,
|
582 |
+
'title' => __( 'Remove Javascript Errors', 'cta' ),
|
583 |
'href' => $actual_link,
|
584 |
+
'meta' => array( 'title' => __( 'Click here to remove broken javascript to fix issues', 'cta' ) )
|
585 |
);
|
586 |
|
587 |
return apply_filters('inbound_menu_debug' , $secondary_menu_items , $debug_key );
|
shared/classes/class.post-type.email-template.php
CHANGED
@@ -51,15 +51,15 @@ if ( !class_exists('Inbound_Email_Templates_Post_Type') ) {
|
|
51 |
|
52 |
$labels = array(
|
53 |
'name' => __('Email Templates', 'leads'),
|
54 |
-
'singular_name' => __( 'Email Templates', '
|
55 |
-
'add_new' => __( 'Add New Email Templates', '
|
56 |
-
'add_new_item' => __( 'Create New Email Templates' , '
|
57 |
-
'edit_item' => __( 'Edit Email Templates' , '
|
58 |
-
'new_item' => __( 'New Email Templates' , '
|
59 |
-
'view_item' => __( 'View Email Templates' , '
|
60 |
-
'search_items' => __( 'Search Email Templates' , '
|
61 |
-
'not_found' => __( 'Nothing found' , '
|
62 |
-
'not_found_in_trash' => __( 'Nothing found in Trash' , '
|
63 |
'parent_item_colon' => ''
|
64 |
);
|
65 |
|
@@ -106,9 +106,9 @@ if ( !class_exists('Inbound_Email_Templates_Post_Type') ) {
|
|
106 |
|
107 |
$cols = array(
|
108 |
"cb" => "<input type=\"checkbox\" />",
|
109 |
-
"title" => __( 'Email Templates' , '
|
110 |
-
"category" => __( 'Category' , '
|
111 |
-
"description" => __( 'Description' , '
|
112 |
);
|
113 |
|
114 |
$cols = apply_filters('email_template_change_columns',$cols);
|
@@ -302,9 +302,9 @@ Section 1.10.32 of "de Finibus Bonorum et Malorum", written by Cicero in 45 BC
|
|
302 |
self::create_template( array(
|
303 |
'id' => 'token-test',
|
304 |
'title' => __( 'Token Testing' , 'leads') ,
|
305 |
-
'subject' => __( 'Token Testing Template - {{site-name}}', '
|
306 |
'body' => $inbound_email_templates['token-test'],
|
307 |
-
'description' => __( 'Designed for testing & debugging tokens.' , '
|
308 |
'email_template_category' => 'inbound-core'
|
309 |
));
|
310 |
|
@@ -312,39 +312,39 @@ Section 1.10.32 of "de Finibus Bonorum et Malorum", written by Cicero in 45 BC
|
|
312 |
self::create_template( array(
|
313 |
'id' => 'inbound-new-lead-notification',
|
314 |
'title' => __( 'New Lead Notification' , 'leads') ,
|
315 |
-
'subject' => __( '{{site-name}} - {{form-name}} - New Lead Conversion', '
|
316 |
'body' => $inbound_email_templates['inbound-new-lead-notification'],
|
317 |
-
'description' => __( 'Designed for notifying administrator of new lead conversion when an Inbound Form is submitted.' , '
|
318 |
'email_template_category' => 'inbound-core'
|
319 |
));
|
320 |
|
321 |
/* New User Account Notification - Create WP Core Template for New User Notifications */
|
322 |
self::create_template( array(
|
323 |
'id' => 'wp-new-user-notification',
|
324 |
-
'title' => __( 'New User Signup Notification' , '
|
325 |
-
'subject' => __( 'Your New Account - {{site-name}}' , '
|
326 |
'body' => $inbound_email_templates['wp-new-user-notification'],
|
327 |
-
'description' => __( 'WordPress core template for notifying new users of their created accounts.' , '
|
328 |
'email_template_category' => 'wordpress-core'
|
329 |
));
|
330 |
|
331 |
/* New Comment Notifications - Create WP Core Template for Post Author Notifications */
|
332 |
self::create_template( array(
|
333 |
'id' => 'wp-notify-post-author',
|
334 |
-
'title' => __( 'New Comment Notification' , '
|
335 |
-
'subject' => __( 'New Comment Posted - {{wp-post-title}} - {{site-name}}' , '
|
336 |
'body' => $inbound_email_templates['wp-notify-post-author'],
|
337 |
-
'description' => __( 'WordPress core template for notifying post authors of new comments.' , '
|
338 |
'email_template_category' => 'wordpress-core'
|
339 |
));
|
340 |
|
341 |
/* Comment Moderation Notifications - Create WP Core Template for Comment Moderation Notifications */
|
342 |
self::create_template( array(
|
343 |
'id' => 'wp-notify-moderator',
|
344 |
-
'title' => __( 'New Comment Moderation' , '
|
345 |
-
'subject' => __( 'Moderate Comment - {{wp-post-title}} - {{site-name}}' , '
|
346 |
'body' => $inbound_email_templates['wp-notify-moderator'],
|
347 |
-
'description' => __( 'WordPress core template for notifying post authors of new comments that need moderating.' , '
|
348 |
'email_template_category' => 'wordpress-core'
|
349 |
));
|
350 |
|
51 |
|
52 |
$labels = array(
|
53 |
'name' => __('Email Templates', 'leads'),
|
54 |
+
'singular_name' => __( 'Email Templates', 'cta' ),
|
55 |
+
'add_new' => __( 'Add New Email Templates', 'cta' ),
|
56 |
+
'add_new_item' => __( 'Create New Email Templates' , 'cta' ),
|
57 |
+
'edit_item' => __( 'Edit Email Templates' , 'cta' ),
|
58 |
+
'new_item' => __( 'New Email Templates' , 'cta' ),
|
59 |
+
'view_item' => __( 'View Email Templates' , 'cta' ),
|
60 |
+
'search_items' => __( 'Search Email Templates' , 'cta' ),
|
61 |
+
'not_found' => __( 'Nothing found' , 'cta' ),
|
62 |
+
'not_found_in_trash' => __( 'Nothing found in Trash' , 'cta' ),
|
63 |
'parent_item_colon' => ''
|
64 |
);
|
65 |
|
106 |
|
107 |
$cols = array(
|
108 |
"cb" => "<input type=\"checkbox\" />",
|
109 |
+
"title" => __( 'Email Templates' , 'cta' ),
|
110 |
+
"category" => __( 'Category' , 'cta' ),
|
111 |
+
"description" => __( 'Description' , 'cta' )
|
112 |
);
|
113 |
|
114 |
$cols = apply_filters('email_template_change_columns',$cols);
|
302 |
self::create_template( array(
|
303 |
'id' => 'token-test',
|
304 |
'title' => __( 'Token Testing' , 'leads') ,
|
305 |
+
'subject' => __( 'Token Testing Template - {{site-name}}', 'cta' ) ,
|
306 |
'body' => $inbound_email_templates['token-test'],
|
307 |
+
'description' => __( 'Designed for testing & debugging tokens.' , 'cta' ) ,
|
308 |
'email_template_category' => 'inbound-core'
|
309 |
));
|
310 |
|
312 |
self::create_template( array(
|
313 |
'id' => 'inbound-new-lead-notification',
|
314 |
'title' => __( 'New Lead Notification' , 'leads') ,
|
315 |
+
'subject' => __( '{{site-name}} - {{form-name}} - New Lead Conversion', 'cta' ) ,
|
316 |
'body' => $inbound_email_templates['inbound-new-lead-notification'],
|
317 |
+
'description' => __( 'Designed for notifying administrator of new lead conversion when an Inbound Form is submitted.' , 'cta' ) ,
|
318 |
'email_template_category' => 'inbound-core'
|
319 |
));
|
320 |
|
321 |
/* New User Account Notification - Create WP Core Template for New User Notifications */
|
322 |
self::create_template( array(
|
323 |
'id' => 'wp-new-user-notification',
|
324 |
+
'title' => __( 'New User Signup Notification' , 'cta' ),
|
325 |
+
'subject' => __( 'Your New Account - {{site-name}}' , 'cta' ),
|
326 |
'body' => $inbound_email_templates['wp-new-user-notification'],
|
327 |
+
'description' => __( 'WordPress core template for notifying new users of their created accounts.' , 'cta' ),
|
328 |
'email_template_category' => 'wordpress-core'
|
329 |
));
|
330 |
|
331 |
/* New Comment Notifications - Create WP Core Template for Post Author Notifications */
|
332 |
self::create_template( array(
|
333 |
'id' => 'wp-notify-post-author',
|
334 |
+
'title' => __( 'New Comment Notification' , 'cta' ),
|
335 |
+
'subject' => __( 'New Comment Posted - {{wp-post-title}} - {{site-name}}' , 'cta' ),
|
336 |
'body' => $inbound_email_templates['wp-notify-post-author'],
|
337 |
+
'description' => __( 'WordPress core template for notifying post authors of new comments.' , 'cta' ),
|
338 |
'email_template_category' => 'wordpress-core'
|
339 |
));
|
340 |
|
341 |
/* Comment Moderation Notifications - Create WP Core Template for Comment Moderation Notifications */
|
342 |
self::create_template( array(
|
343 |
'id' => 'wp-notify-moderator',
|
344 |
+
'title' => __( 'New Comment Moderation' , 'cta' ),
|
345 |
+
'subject' => __( 'Moderate Comment - {{wp-post-title}} - {{site-name}}' , 'cta' ),
|
346 |
'body' => $inbound_email_templates['wp-notify-moderator'],
|
347 |
+
'description' => __( 'WordPress core template for notifying post authors of new comments that need moderating.' , 'cta' ),
|
348 |
'email_template_category' => 'wordpress-core'
|
349 |
));
|
350 |
|
shared/classes/class.post-type.wp-lead.php
CHANGED
@@ -77,20 +77,20 @@ if ( !class_exists('Inbound_Leads') ) {
|
|
77 |
|
78 |
/* Register lead lists */
|
79 |
$list_labels = array(
|
80 |
-
'name' => __( 'Lead Lists', '
|
81 |
-
'singular_name' => __( 'Lead List', '
|
82 |
-
'search_items' => __( 'Search Lead Lists' , '
|
83 |
-
'popular_items' => __( 'Popular Lead Lists' , '
|
84 |
-
'all_items' => __( 'All Lead Lists' , '
|
85 |
'parent_item' => null,
|
86 |
'parent_item_colon' => null,
|
87 |
-
'edit_item' => __( 'Edit Lead List' , '
|
88 |
'update_item' => __( 'Update Lead List' , 'leads' ),
|
89 |
'add_new_item' => __( 'Add New Lead List' , 'leads' ),
|
90 |
'new_item_name' => __( 'New Lead List' , 'leads' ),
|
91 |
'separate_items_with_commas' => __( 'Separate Lead Lists with commas' , 'leads' ),
|
92 |
'add_or_remove_items' => __( 'Add or remove Lead Lists' , 'leads' ),
|
93 |
-
'choose_from_most_used' => __( 'Choose from the most used lead List' , '
|
94 |
'not_found' => __( 'No Lead Lists found.' , 'leads' ),
|
95 |
'menu_name' => __( 'Lead Lists' , 'leads' ),
|
96 |
);
|
@@ -98,7 +98,7 @@ if ( !class_exists('Inbound_Leads') ) {
|
|
98 |
$list_args = array(
|
99 |
'hierarchical' => true,
|
100 |
'labels' => $list_labels,
|
101 |
-
'singular_label' => __( 'List Management' , '
|
102 |
'show_ui' => true,
|
103 |
'show_in_menu' => true,
|
104 |
'show_in_nav_menus' => false,
|
@@ -335,12 +335,12 @@ if ( !class_exists('Inbound_Leads') ) {
|
|
335 |
|
336 |
/* id is required */
|
337 |
if (!isset($id)) {
|
338 |
-
return array( 'error' => __( 'must include an id parameter' , '
|
339 |
}
|
340 |
|
341 |
wp_delete_term( $id , 'wplead_list_category' );
|
342 |
|
343 |
-
return array( 'message' => __( 'lead list deleted' , '
|
344 |
}
|
345 |
|
346 |
/**
|
@@ -416,7 +416,7 @@ if ( !class_exists('Inbound_Leads') ) {
|
|
416 |
}
|
417 |
|
418 |
if (!is_plugin_active('leads/wordpress-leads.php')) {
|
419 |
-
_e( 'WordPress Leads is not currently installed/activated to view and manage leads please turn it on.' , '
|
420 |
}
|
421 |
}
|
422 |
|
@@ -443,7 +443,7 @@ if ( !class_exists('Inbound_Leads') ) {
|
|
443 |
|
444 |
$count = $query->post_count;
|
445 |
|
446 |
-
return sprintf( __( '%d leads' , '
|
447 |
|
448 |
}
|
449 |
|
77 |
|
78 |
/* Register lead lists */
|
79 |
$list_labels = array(
|
80 |
+
'name' => __( 'Lead Lists', 'cta' ),
|
81 |
+
'singular_name' => __( 'Lead List', 'cta' ),
|
82 |
+
'search_items' => __( 'Search Lead Lists' , 'cta' ),
|
83 |
+
'popular_items' => __( 'Popular Lead Lists' , 'cta' ),
|
84 |
+
'all_items' => __( 'All Lead Lists' , 'cta' ),
|
85 |
'parent_item' => null,
|
86 |
'parent_item_colon' => null,
|
87 |
+
'edit_item' => __( 'Edit Lead List' , 'cta' ),
|
88 |
'update_item' => __( 'Update Lead List' , 'leads' ),
|
89 |
'add_new_item' => __( 'Add New Lead List' , 'leads' ),
|
90 |
'new_item_name' => __( 'New Lead List' , 'leads' ),
|
91 |
'separate_items_with_commas' => __( 'Separate Lead Lists with commas' , 'leads' ),
|
92 |
'add_or_remove_items' => __( 'Add or remove Lead Lists' , 'leads' ),
|
93 |
+
'choose_from_most_used' => __( 'Choose from the most used lead List' , 'cta' ),
|
94 |
'not_found' => __( 'No Lead Lists found.' , 'leads' ),
|
95 |
'menu_name' => __( 'Lead Lists' , 'leads' ),
|
96 |
);
|
98 |
$list_args = array(
|
99 |
'hierarchical' => true,
|
100 |
'labels' => $list_labels,
|
101 |
+
'singular_label' => __( 'List Management' , 'cta' ),
|
102 |
'show_ui' => true,
|
103 |
'show_in_menu' => true,
|
104 |
'show_in_nav_menus' => false,
|
335 |
|
336 |
/* id is required */
|
337 |
if (!isset($id)) {
|
338 |
+
return array( 'error' => __( 'must include an id parameter' , 'cta' ) );
|
339 |
}
|
340 |
|
341 |
wp_delete_term( $id , 'wplead_list_category' );
|
342 |
|
343 |
+
return array( 'message' => __( 'lead list deleted' , 'cta' ) );
|
344 |
}
|
345 |
|
346 |
/**
|
416 |
}
|
417 |
|
418 |
if (!is_plugin_active('leads/wordpress-leads.php')) {
|
419 |
+
_e( 'WordPress Leads is not currently installed/activated to view and manage leads please turn it on.' , 'cta' );
|
420 |
}
|
421 |
}
|
422 |
|
443 |
|
444 |
$count = $query->post_count;
|
445 |
|
446 |
+
return sprintf( __( '%d leads' , 'cta' ) , $count );
|
447 |
|
448 |
}
|
449 |
|
shared/shortcodes/inbound-shortcodes.php
CHANGED
@@ -635,7 +635,7 @@ class Inbound_Shortcodes {
|
|
635 |
<div id="cpt-form-shortcode"><?php echo $popup;?></div>
|
636 |
<div id="cpt-form-serialize-default"><?php echo $form_serialize;?></div>
|
637 |
<div id="form-leads-list">
|
638 |
-
<h2><?php _e( 'Form Conversions' , '
|
639 |
<ol id="form-lead-ul">
|
640 |
<?php
|
641 |
|
@@ -644,17 +644,17 @@ class Inbound_Shortcodes {
|
|
644 |
$lead_conversion_list = json_decode($lead_conversion_list,true);
|
645 |
foreach ($lead_conversion_list as $key => $value) {
|
646 |
$email = $lead_conversion_list[$key]['email'];
|
647 |
-
echo '<li><a title="'.__( 'View this Lead' , '
|
648 |
}
|
649 |
|
650 |
} else {
|
651 |
-
echo '<span id="no-conversions">'. __( 'No Conversions Yet!' , '
|
652 |
}
|
653 |
?>
|
654 |
</ol>
|
655 |
</div>
|
656 |
<div id="inbound-email-response">
|
657 |
-
<h2><?php _e( 'Set Email Response to Send to the person filling out the form' , '
|
658 |
<?php
|
659 |
$values = get_post_custom( $post->ID );
|
660 |
$selected = isset( $values['inbound_email_send_notification'] ) ? esc_attr( $values['inbound_email_send_notification'][0] ) : "";
|
@@ -681,9 +681,9 @@ class Inbound_Shortcodes {
|
|
681 |
?>
|
682 |
<div style='display:block; overflow: auto;'>
|
683 |
<div id=''>
|
684 |
-
<label for="inbound_email_send_notification_template"><?php _e( 'Select Response Email Template' , '
|
685 |
<select name="inbound_email_send_notification_template" id="inbound_email_send_notification_template">
|
686 |
-
<option value='custom' <?php selected( 'custom' , $email_template); ?>><?php _e( 'Do not use a premade email template' , '
|
687 |
<?php
|
688 |
|
689 |
foreach ($email_templates as $id => $label) {
|
635 |
<div id="cpt-form-shortcode"><?php echo $popup;?></div>
|
636 |
<div id="cpt-form-serialize-default"><?php echo $form_serialize;?></div>
|
637 |
<div id="form-leads-list">
|
638 |
+
<h2><?php _e( 'Form Conversions' , 'cta' ); ?></h2>
|
639 |
<ol id="form-lead-ul">
|
640 |
<?php
|
641 |
|
644 |
$lead_conversion_list = json_decode($lead_conversion_list,true);
|
645 |
foreach ($lead_conversion_list as $key => $value) {
|
646 |
$email = $lead_conversion_list[$key]['email'];
|
647 |
+
echo '<li><a title="'.__( 'View this Lead' , 'cta' ) .'" href="'.esc_url( admin_url( add_query_arg( array( 'post_type' => 'wp-lead', 'lead-email-redirect' => $email ), 'edit.php' ) ) ).'">'.$lead_conversion_list[$key]['email'].'</a></li>';
|
648 |
}
|
649 |
|
650 |
} else {
|
651 |
+
echo '<span id="no-conversions">'. __( 'No Conversions Yet!' , 'cta' ) .'</span>';
|
652 |
}
|
653 |
?>
|
654 |
</ol>
|
655 |
</div>
|
656 |
<div id="inbound-email-response">
|
657 |
+
<h2><?php _e( 'Set Email Response to Send to the person filling out the form' , 'cta' ); ?></h2>
|
658 |
<?php
|
659 |
$values = get_post_custom( $post->ID );
|
660 |
$selected = isset( $values['inbound_email_send_notification'] ) ? esc_attr( $values['inbound_email_send_notification'][0] ) : "";
|
681 |
?>
|
682 |
<div style='display:block; overflow: auto;'>
|
683 |
<div id=''>
|
684 |
+
<label for="inbound_email_send_notification_template"><?php _e( 'Select Response Email Template' , 'cta' ); ?></label>
|
685 |
<select name="inbound_email_send_notification_template" id="inbound_email_send_notification_template">
|
686 |
+
<option value='custom' <?php selected( 'custom' , $email_template); ?>><?php _e( 'Do not use a premade email template' , 'cta' ); ?></option>
|
687 |
<?php
|
688 |
|
689 |
foreach ($email_templates as $id => $label) {
|
shared/shortcodes/shortcodes/forms.php
CHANGED
@@ -223,7 +223,7 @@
|
|
223 |
'desc' => __('Enter Your Dropdown Options. Separate by commas.', 'leads'),
|
224 |
'type' => 'text',
|
225 |
'std' => '',
|
226 |
-
'placeholder' => __('Choice 1, Choice 2, Choice 3' , '
|
227 |
'reveal_on' => 'dropdown' // on select choice show this
|
228 |
),
|
229 |
'radio_options' => array(
|
@@ -239,7 +239,7 @@
|
|
239 |
'desc' => __('Enter Your Checkbox Options. Separate by commas.', 'leads'),
|
240 |
'type' => 'text',
|
241 |
'std' => '',
|
242 |
-
'placeholder' => __( 'Choice 1, Choice 2, Choice 3', '
|
243 |
'reveal_on' => 'checkbox' // on select choice show this
|
244 |
),
|
245 |
'html_block_options' => array(
|
@@ -335,7 +335,7 @@
|
|
335 |
)
|
336 |
),
|
337 |
'shortcode' => '[inbound_field label="{{label}}" type="{{field_type}}" description="{{description}}" required="{{required}}" exclude_tracking={{exclude_tracking}} dropdown="{{dropdown_options}}" radio="{{radio_options}}" checkbox="{{checkbox_options}}" placeholder="{{placeholder}}" field_container_class="{{field_container_class}}" field_input_class="{{field_input_class}}" html="{{html_block_options}}" dynamic="{{hidden_input_options}}" default="{{default_value}}" map_to="{{map_to}}" divider_options="{{divider_options}}"]',
|
338 |
-
'clone' => __('Add Another Field', '
|
339 |
),
|
340 |
'shortcode' => '[inbound_form name="{{form_name}}" lists="{{lists_hidden}}" redirect="{{redirect}}" notify="{{notify}}" notify_subject="{{notify_subject}}" layout="{{layout}}" font_size="{{font-size}}" labels="{{labels}}" icon="{{icon}}" submit="{{submit}}" submit="{{submit}}" submit_colors="{{submit-colors}}" submit_text_color="{{submit-text-color}}" submit_bg_color="{{submit-bg-color}}" width="{{width}}"]{{child}}[/inbound_form]',
|
341 |
'popup_title' => 'Insert Inbound Form Shortcode'
|
223 |
'desc' => __('Enter Your Dropdown Options. Separate by commas.', 'leads'),
|
224 |
'type' => 'text',
|
225 |
'std' => '',
|
226 |
+
'placeholder' => __('Choice 1, Choice 2, Choice 3' , 'cta' ),
|
227 |
'reveal_on' => 'dropdown' // on select choice show this
|
228 |
),
|
229 |
'radio_options' => array(
|
239 |
'desc' => __('Enter Your Checkbox Options. Separate by commas.', 'leads'),
|
240 |
'type' => 'text',
|
241 |
'std' => '',
|
242 |
+
'placeholder' => __( 'Choice 1, Choice 2, Choice 3', 'cta' ),
|
243 |
'reveal_on' => 'checkbox' // on select choice show this
|
244 |
),
|
245 |
'html_block_options' => array(
|
335 |
)
|
336 |
),
|
337 |
'shortcode' => '[inbound_field label="{{label}}" type="{{field_type}}" description="{{description}}" required="{{required}}" exclude_tracking={{exclude_tracking}} dropdown="{{dropdown_options}}" radio="{{radio_options}}" checkbox="{{checkbox_options}}" placeholder="{{placeholder}}" field_container_class="{{field_container_class}}" field_input_class="{{field_input_class}}" html="{{html_block_options}}" dynamic="{{hidden_input_options}}" default="{{default_value}}" map_to="{{map_to}}" divider_options="{{divider_options}}"]',
|
338 |
+
'clone' => __('Add Another Field', 'cta' )
|
339 |
),
|
340 |
'shortcode' => '[inbound_form name="{{form_name}}" lists="{{lists_hidden}}" redirect="{{redirect}}" notify="{{notify}}" notify_subject="{{notify_subject}}" layout="{{layout}}" font_size="{{font-size}}" labels="{{labels}}" icon="{{icon}}" submit="{{submit}}" submit="{{submit}}" submit_colors="{{submit-colors}}" submit_text_color="{{submit-text-color}}" submit_bg_color="{{submit-bg-color}}" width="{{width}}"]{{child}}[/inbound_form]',
|
341 |
'popup_title' => 'Insert Inbound Form Shortcode'
|
shared/shortcodes/shortcodes/list-icon.php
CHANGED
@@ -25,7 +25,7 @@
|
|
25 |
)
|
26 |
),
|
27 |
'shortcode' => '[list icon="{{icon}}"]{{content}}[/list]',
|
28 |
-
'clone' => __('Add More List', '
|
29 |
),
|
30 |
'shortcode' => '[list_icons]{{child}}[/list_icons]',
|
31 |
'popup_title' => __('Insert List Icons Shortcode', 'leads')
|
25 |
)
|
26 |
),
|
27 |
'shortcode' => '[list icon="{{icon}}"]{{content}}[/list]',
|
28 |
+
'clone' => __('Add More List', 'cta' )
|
29 |
),
|
30 |
'shortcode' => '[list_icons]{{child}}[/list_icons]',
|
31 |
'popup_title' => __('Insert List Icons Shortcode', 'leads')
|
shared/shortcodes/shortcodes/pricing.php
CHANGED
@@ -67,7 +67,7 @@
|
|
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', '
|
71 |
),
|
72 |
'shortcode' => '[pricing column="{{column}}"]{{child}}[/pricing]',
|
73 |
'popup_title' => 'Insert Pricing Shortcode'
|
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', 'cta' )
|
71 |
),
|
72 |
'shortcode' => '[pricing column="{{column}}"]{{child}}[/pricing]',
|
73 |
'popup_title' => 'Insert Pricing Shortcode'
|
shared/shortcodes/shortcodes/tabs.php
CHANGED
@@ -38,7 +38,7 @@
|
|
38 |
)
|
39 |
),
|
40 |
'shortcode' => '[tab title="{{title}}" icon="{{icon}}"]{{content}}[/tab]',
|
41 |
-
'clone' => __('Add More Tab', '
|
42 |
),
|
43 |
'shortcode' => '[tabs]{{child}}[/tabs]',
|
44 |
'popup_title' => 'Insert Tabs Shortcode'
|
38 |
)
|
39 |
),
|
40 |
'shortcode' => '[tab title="{{title}}" icon="{{icon}}"]{{content}}[/tab]',
|
41 |
+
'clone' => __('Add More Tab', 'cta' )
|
42 |
),
|
43 |
'shortcode' => '[tabs]{{child}}[/tabs]',
|
44 |
'popup_title' => 'Insert Tabs Shortcode'
|
shared/shortcodes/shortcodes/teaser.php
CHANGED
@@ -81,7 +81,7 @@
|
|
81 |
)
|
82 |
),
|
83 |
'shortcode' => '[block title="{{title}}" subtitle="{{subtitle}}" icon="{{icon}}" link="{{link}}" ]{{content}}[/block]',
|
84 |
-
'clone' => __('Add More Block', '
|
85 |
),
|
86 |
'shortcode' => '[teaser heading="{{heading}}" style="{{style}}" column="{{column}}"]{{child}}[/teaser]',
|
87 |
'popup_title' => 'Insert Teaser Shortcode'
|
81 |
)
|
82 |
),
|
83 |
'shortcode' => '[block title="{{title}}" subtitle="{{subtitle}}" icon="{{icon}}" link="{{link}}" ]{{content}}[/block]',
|
84 |
+
'clone' => __('Add More Block', 'cta' )
|
85 |
),
|
86 |
'shortcode' => '[teaser heading="{{heading}}" style="{{style}}" column="{{column}}"]{{child}}[/teaser]',
|
87 |
'popup_title' => 'Insert Teaser Shortcode'
|
shared/shortcodes/shortcodes/testimonial.php
CHANGED
@@ -50,7 +50,7 @@
|
|
50 |
)
|
51 |
),
|
52 |
'shortcode' => '[testimony author="{{author}}" meta="{{meta}}"]{{content}}[/testimony]',
|
53 |
-
'clone' => __('Add More Testimony', '
|
54 |
),
|
55 |
'shortcode' => '[testimonial heading="{{heading}}" column="{{column}}"]{{child}}[/testimonial]',
|
56 |
'popup_title' => 'Insert Testimonial Shortcode'
|
50 |
)
|
51 |
),
|
52 |
'shortcode' => '[testimony author="{{author}}" meta="{{meta}}"]{{content}}[/testimony]',
|
53 |
+
'clone' => __('Add More Testimony', 'cta' )
|
54 |
),
|
55 |
'shortcode' => '[testimonial heading="{{heading}}" column="{{column}}"]{{child}}[/testimonial]',
|
56 |
'popup_title' => 'Insert Testimonial Shortcode'
|
shared/templates/email-templates/inbound-new-lead-notification/preview.html
CHANGED
@@ -56,12 +56,12 @@
|
|
56 |
</div>
|
57 |
</td>
|
58 |
</tr>
|
59 |
-
|
60 |
<!-- LOOP THROUGH POST PARAMS -->
|
61 |
[inbound-email-post-params]
|
62 |
-
|
63 |
<!-- END LOOP -->
|
64 |
-
|
65 |
<!-- IF CHAR COUNT OVER 50 make label display block -->
|
66 |
|
67 |
</tbody>
|
@@ -102,7 +102,7 @@
|
|
102 |
|
103 |
<td align="center" width="250" height="30" cellpadding="5">
|
104 |
<div><!--[if mso]>
|
105 |
-
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="mailto:'.$form_email.'?subject=RE: '.$form_data['
|
106 |
<w:anchorlock/>
|
107 |
<center style="color:#ffffff;font-family:sans-serif;font-size:13px;font-weight:bold;">Reply to Lead Now</center>
|
108 |
</v:roundrect>
|
56 |
</div>
|
57 |
</td>
|
58 |
</tr>
|
59 |
+
|
60 |
<!-- LOOP THROUGH POST PARAMS -->
|
61 |
[inbound-email-post-params]
|
62 |
+
|
63 |
<!-- END LOOP -->
|
64 |
+
|
65 |
<!-- IF CHAR COUNT OVER 50 make label display block -->
|
66 |
|
67 |
</tbody>
|
102 |
|
103 |
<td align="center" width="250" height="30" cellpadding="5">
|
104 |
<div><!--[if mso]>
|
105 |
+
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="mailto:'.$form_email.'?subject=RE: '.$form_data['inbound_form_n'].'&body=Thanks for filling out our form." style="height:40px;v-text-anchor:middle;width:250px;" arcsize="10%" strokecolor="#558939" fillcolor="#59b329">
|
106 |
<w:anchorlock/>
|
107 |
<center style="color:#ffffff;font-family:sans-serif;font-size:13px;font-weight:bold;">Reply to Lead Now</center>
|
108 |
</v:roundrect>
|
shared/templates/email-templates/token-test/token-test.php
CHANGED
@@ -2,54 +2,54 @@
|
|
2 |
|
3 |
$inbound_email_templates['token-test'] = '
|
4 |
|
5 |
-
<h2>'. __( 'Core Tokens', '
|
6 |
-
<p>'. __( 'Admin Email Address' , '
|
7 |
-
<p>'. __( 'Site Name' , '
|
8 |
-
<p>'. __( 'Site Url' , '
|
9 |
-
<p>'. __( 'Date-time' , '
|
10 |
-
<p>'. __( 'Leads URL Path' , '
|
11 |
-
<p>'. __( 'Landing Pages URL Path' , '
|
12 |
-
|
13 |
-
<h2>'. __( 'Lead Tokens' , '
|
14 |
-
<p>'. __( 'First Name' , '
|
15 |
-
<p>'. __( 'Last Name' , '
|
16 |
-
<p>'. __( 'Email' , '
|
17 |
-
<p>'. __( 'Company Name' , '
|
18 |
-
<p>'. __( 'Address Line 1' , '
|
19 |
-
<p>'. __( 'Address Line 2' , '
|
20 |
-
<p>'. __( 'City' , '
|
21 |
-
<p>'. __( 'State/Region' , '
|
22 |
-
<p>'. __( 'Form Name' , '
|
23 |
-
<p>'. __( 'Converted Page URL' , '
|
24 |
-
|
25 |
-
<h2>'. __( 'WP User Tokens' , '
|
26 |
-
<p>'. __( 'WordPress User ID' , '
|
27 |
-
<p>'. __( 'WordPress User Username' , '
|
28 |
-
<p>'. __( 'WordPress User First Name' , '
|
29 |
-
<p>'. __( 'WordPress User Last Name' , '
|
30 |
-
<p>'. __( 'WordPress User Password' , '
|
31 |
-
<p>'. __( 'WordPress User Nicename' , '
|
32 |
-
<p>'. __( 'WordPress User Display Name' , '
|
33 |
-
<p>'. __( 'WordPress User Gravatar URL' , '
|
34 |
-
|
35 |
-
|
36 |
-
<h2>'. __( 'WP Post Tokens' , '
|
37 |
-
<p>'. __( 'WordPress Post ID' , '
|
38 |
-
<p>'. __( 'WordPress Post Title' , '
|
39 |
-
<p>'. __( 'WordPress Post URL' , '
|
40 |
-
<p>'. __( 'WordPress Post Content' , '
|
41 |
-
<p>'. __( 'WordPress Post Excerpt' , '
|
42 |
-
|
43 |
-
|
44 |
-
<h2>'. __( 'WP Comment Tokens' , '
|
45 |
-
<p>'. __( 'WordPress Comment ID' , '
|
46 |
-
<p>'. __( 'WordPress Comment URL' , '
|
47 |
-
<p>'. __( 'WordPress Comment Author' , '
|
48 |
-
<p>'. __( 'WordPress Comment Author Email' , '
|
49 |
-
<p>'. __( 'WordPress Comment Author IP' , '
|
50 |
-
<p>'. __( 'WordPress Comment Content' , '
|
51 |
-
<p>'. __( 'WordPress Comment Date' , '
|
52 |
-
<p>'. __( 'WordPress Comment Karma' , '
|
53 |
|
54 |
|
55 |
';
|
2 |
|
3 |
$inbound_email_templates['token-test'] = '
|
4 |
|
5 |
+
<h2>'. __( 'Core Tokens', 'cta' ) .'</h2>
|
6 |
+
<p>'. __( 'Admin Email Address' , 'cta' ) .':{{admin-email-address}}</p>
|
7 |
+
<p>'. __( 'Site Name' , 'cta' ) .':{{site-name}}</p>
|
8 |
+
<p>'. __( 'Site Url' , 'cta' ) .':{{site-url}}</p>
|
9 |
+
<p>'. __( 'Date-time' , 'cta' ) .': {{date-time}}</p>
|
10 |
+
<p>'. __( 'Leads URL Path' , 'cta' ) .': {{leads-urlpath}}</p>
|
11 |
+
<p>'. __( 'Landing Pages URL Path' , 'cta' ) .': {{landingpages-urlpath}}</p>
|
12 |
+
|
13 |
+
<h2>'. __( 'Lead Tokens' , 'cta' ) .'</h2>
|
14 |
+
<p>'. __( 'First Name' , 'cta' ) .': {{lead-first-name}}</p>
|
15 |
+
<p>'. __( 'Last Name' , 'cta' ) .':{{lead-last-name}}</p>
|
16 |
+
<p>'. __( 'Email' , 'cta' ) .': {{lead-email-address}}</p>
|
17 |
+
<p>'. __( 'Company Name' , 'cta' ) .': {{lead-company-name}}</p>
|
18 |
+
<p>'. __( 'Address Line 1' , 'cta' ) .': {{lead-address-line-1}}</p>
|
19 |
+
<p>'. __( 'Address Line 2' , 'cta' ) .': {{lead-address-line-2}}</p>
|
20 |
+
<p>'. __( 'City' , 'cta' ) .': {{lead-city}}</p>
|
21 |
+
<p>'. __( 'State/Region' , 'cta' ) .': {{lead-region}}</p>
|
22 |
+
<p>'. __( 'Form Name' , 'cta' ) .':{{form-name}}</p>
|
23 |
+
<p>'. __( 'Converted Page URL' , 'cta' ) .': {{source}}</p>
|
24 |
+
|
25 |
+
<h2>'. __( 'WP User Tokens' , 'cta' ) .'</h2>
|
26 |
+
<p>'. __( 'WordPress User ID' , 'cta' ) .': {{wp-user-id}}</p>
|
27 |
+
<p>'. __( 'WordPress User Username' , 'cta' ) .': {{wp-user-username}}</p>
|
28 |
+
<p>'. __( 'WordPress User First Name' , 'cta' ) .': {{wp-user-first-name}}</p>
|
29 |
+
<p>'. __( 'WordPress User Last Name' , 'cta' ) .': {{wp-user-last-name}}</p>
|
30 |
+
<p>'. __( 'WordPress User Password' , 'cta' ) .': {{wp-user-password}}</p>
|
31 |
+
<p>'. __( 'WordPress User Nicename' , 'cta' ) .': {{wp-user-nicename}}</p>
|
32 |
+
<p>'. __( 'WordPress User Display Name' , 'cta' ) .': {{wp-user-displayname}}</p>
|
33 |
+
<p>'. __( 'WordPress User Gravatar URL' , 'cta' ) .': {{wp-user-gravatar-url}}</p>
|
34 |
+
|
35 |
+
|
36 |
+
<h2>'. __( 'WP Post Tokens' , 'cta' ) .'</h2>
|
37 |
+
<p>'. __( 'WordPress Post ID' , 'cta' ) .': {{wp-post-id}}</p>
|
38 |
+
<p>'. __( 'WordPress Post Title' , 'cta' ) .': {{wp-post-title}}</p>
|
39 |
+
<p>'. __( 'WordPress Post URL' , 'cta' ) .': {{wp-post-url}}</p>
|
40 |
+
<p>'. __( 'WordPress Post Content' , 'cta' ) .': {{wp-post-content}}</p>
|
41 |
+
<p>'. __( 'WordPress Post Excerpt' , 'cta' ) .': {{wp-post-excerpt}}</p>
|
42 |
+
|
43 |
+
|
44 |
+
<h2>'. __( 'WP Comment Tokens' , 'cta' ) .'</h2>
|
45 |
+
<p>'. __( 'WordPress Comment ID' , 'cta' ) .': {{wp-comment-id}}</p>
|
46 |
+
<p>'. __( 'WordPress Comment URL' , 'cta' ) .': {{wp-comment-url}}</p>
|
47 |
+
<p>'. __( 'WordPress Comment Author' , 'cta' ) .': {{wp-comment-author}}</p>
|
48 |
+
<p>'. __( 'WordPress Comment Author Email' , 'cta' ) .': {{wp-comment-author-email}}</p>
|
49 |
+
<p>'. __( 'WordPress Comment Author IP' , 'cta' ) .': {{wp-comment-author-ip}}</p>
|
50 |
+
<p>'. __( 'WordPress Comment Content' , 'cta' ) .': {{wp-comment-content}}</p>
|
51 |
+
<p>'. __( 'WordPress Comment Date' , 'cta' ) .': {{wp-comment-date}}</p>
|
52 |
+
<p>'. __( 'WordPress Comment Karma' , 'cta' ) .': {{wp-comment-karma}}</p>
|
53 |
|
54 |
|
55 |
';
|
shared/templates/email-templates/wp-notify-moderator/wp-notify-moderator.php
CHANGED
@@ -30,8 +30,8 @@ $inbound_email_templates['wp-notify-moderator'] = '<!DOCTYPE html PUBLIC "-//W3C
|
|
30 |
<tbody><tr>
|
31 |
<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">
|
32 |
|
33 |
-
<h1 style="margin-top:20px;margin-right:0;margin-bottom:20px;margin-left:0; font-size:28px; line-height: 28px; color:#000;">'. __( 'New Comment Waiting Moderation' , '
|
34 |
-
<p style="margin-top:20px;margin-right:0;margin-bottom:20px;margin-left:0">'. __( '{{wp-user-displayname}}, There is a new comment for <a href="{{wp-post-url}}">{{wp-post-title}}</a>' , '
|
35 |
|
36 |
<!-- NEW TABLE -->
|
37 |
<table class="heavyTable" style="width: 100%;
|
@@ -45,7 +45,7 @@ $inbound_email_templates['wp-notify-moderator'] = '<!DOCTYPE html PUBLIC "-//W3C
|
|
45 |
<tr style="border-bottom: 1px solid #cccccc;">
|
46 |
<td width="600" style="border-right: 1px solid #cccccc; padding: 10px; padding-bottom: 5px;">
|
47 |
<div style="padding-left:5px; display:inline-block; padding-bottom: 5px; font-size: 16px; color:#555;">
|
48 |
-
<strong>{{wp-comment-author}} '. __( 'says:' , '
|
49 |
{{wp-comment-content}} <br><br>
|
50 |
|
51 |
<a href="{{wp-comment-url}}">'. __('Click here to reply' , 'leads') .'</a>
|
@@ -65,19 +65,19 @@ $inbound_email_templates['wp-notify-moderator'] = '<!DOCTYPE html PUBLIC "-//W3C
|
|
65 |
<tbody valign="top">
|
66 |
<tr valign="top" border="0">
|
67 |
<td width="120" height="50" align="center" valign="top" border="0">
|
68 |
-
<h3 style="color:#2e2e2e;font-size:15px;"><a style="text-decoration: none;" href="{{admin-url}}comment.php?action=approve&c={{wp-comment-id}}">'. __( 'Approve' , '
|
69 |
</td>
|
70 |
|
71 |
<td width="120" height="50" align="center" valign="top" border="0">
|
72 |
-
<h3 style="color:#2e2e2e;font-size:15px;"><a style="text-decoration: none;" href="{{admin-url}}comment.php?action=trash&c={{wp-comment-id}}">'. __( 'Trash' , '
|
73 |
</td>
|
74 |
|
75 |
<td width="120" height="50" align="center" valign="top" border="0">
|
76 |
-
<h3 style="color:#2e2e2e;font-size:15px;"><a style="text-decoration: none;" href="{{admin-url}}comment.php?action=delete&c={{wp-comment-id}}">'. __( 'Delete' , '
|
77 |
</td>
|
78 |
|
79 |
<td width="120" height="50" align="center" valign="top" border="0">
|
80 |
-
<h3 style="color:#2e2e2e;font-size:15px;"><a style="text-decoration: none;" href="{{admin-url}}comment.php?action=spam&c={{wp-comment-id}}">'. __( 'Spam' , '
|
81 |
</td>
|
82 |
</tr>
|
83 |
</tbody></table>
|
30 |
<tbody><tr>
|
31 |
<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">
|
32 |
|
33 |
+
<h1 style="margin-top:20px;margin-right:0;margin-bottom:20px;margin-left:0; font-size:28px; line-height: 28px; color:#000;">'. __( 'New Comment Waiting Moderation' , 'cta' ) .'</h1>
|
34 |
+
<p style="margin-top:20px;margin-right:0;margin-bottom:20px;margin-left:0">'. __( '{{wp-user-displayname}}, There is a new comment for <a href="{{wp-post-url}}">{{wp-post-title}}</a>' , 'cta' ) .' awaiting your response.</p>
|
35 |
|
36 |
<!-- NEW TABLE -->
|
37 |
<table class="heavyTable" style="width: 100%;
|
45 |
<tr style="border-bottom: 1px solid #cccccc;">
|
46 |
<td width="600" style="border-right: 1px solid #cccccc; padding: 10px; padding-bottom: 5px;">
|
47 |
<div style="padding-left:5px; display:inline-block; padding-bottom: 5px; font-size: 16px; color:#555;">
|
48 |
+
<strong>{{wp-comment-author}} '. __( 'says:' , 'cta' ) .'</strong><br>
|
49 |
{{wp-comment-content}} <br><br>
|
50 |
|
51 |
<a href="{{wp-comment-url}}">'. __('Click here to reply' , 'leads') .'</a>
|
65 |
<tbody valign="top">
|
66 |
<tr valign="top" border="0">
|
67 |
<td width="120" height="50" align="center" valign="top" border="0">
|
68 |
+
<h3 style="color:#2e2e2e;font-size:15px;"><a style="text-decoration: none;" href="{{admin-url}}comment.php?action=approve&c={{wp-comment-id}}">'. __( 'Approve' , 'cta' ) .'</a></h3>
|
69 |
</td>
|
70 |
|
71 |
<td width="120" height="50" align="center" valign="top" border="0">
|
72 |
+
<h3 style="color:#2e2e2e;font-size:15px;"><a style="text-decoration: none;" href="{{admin-url}}comment.php?action=trash&c={{wp-comment-id}}">'. __( 'Trash' , 'cta' ) .'</a></h3>
|
73 |
</td>
|
74 |
|
75 |
<td width="120" height="50" align="center" valign="top" border="0">
|
76 |
+
<h3 style="color:#2e2e2e;font-size:15px;"><a style="text-decoration: none;" href="{{admin-url}}comment.php?action=delete&c={{wp-comment-id}}">'. __( 'Delete' , 'cta' ) .'</a></h3>
|
77 |
</td>
|
78 |
|
79 |
<td width="120" height="50" align="center" valign="top" border="0">
|
80 |
+
<h3 style="color:#2e2e2e;font-size:15px;"><a style="text-decoration: none;" href="{{admin-url}}comment.php?action=spam&c={{wp-comment-id}}">'. __( 'Spam' , 'cta' ) .'</a></h3>
|
81 |
</td>
|
82 |
</tr>
|
83 |
</tbody></table>
|