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