WordPress Landing Pages - Version 1.3.7

Version Description

  • Added: Shortcode now automatically render in landing page option echos in templates
  • Updated: Visual Editor tool
  • Updated: Template selection interface
  • Updated: Major updates to core templates, CSS tweaks and fixes
  • Fixed: Shortcode insert into correct editor box
  • Fixed: editor always on HTML view
Download this release

Release Info

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

Code changes from version 1.3.5 to 1.3.7

Files changed (82) hide show
  1. css/admin-lp-cpt-only-style.css +3 -0
  2. css/admin-post-edit.css +3 -1
  3. css/admin-style.css +1 -4
  4. css/frontend/index.php +2 -0
  5. css/images/index.php +2 -0
  6. css/index.php +2 -0
  7. css/new-customizer-admin.css +50 -1
  8. functions/functions.admin.php +0 -485
  9. functions/functions.global.php +0 -786
  10. images/index.php +2 -0
  11. index.php +1 -1
  12. js/admin/admin.post-edit.js +97 -71
  13. js/admin/index.php +2 -0
  14. js/admin/tour/tour.post-edit.js +5 -4
  15. js/index.php +2 -0
  16. js/libraries/index.php +2 -0
  17. js/page_view_track.js +7 -3
  18. js/wordpress/index.php +2 -0
  19. landing-pages.php +14 -4
  20. libraries/index.php +2 -0
  21. libraries/shareme/index.php +2 -0
  22. libraries/shareme/sharrre/index.php +2 -0
  23. modules/index.php +2 -0
  24. modules/module.ab-testing.metaboxes.php +18 -18
  25. modules/module.ab-testing.php +9 -31
  26. modules/module.activate.php +113 -30
  27. modules/module.admin-menus.php +4 -8
  28. modules/module.ajax-setup.php +1 -1
  29. modules/module.clone.php +1 -1
  30. modules/module.customizer.php +1 -1
  31. modules/module.global-settings.php +34 -31
  32. modules/module.install.php +17 -11
  33. modules/module.javascript-admin.php +1 -0
  34. modules/module.landing-page.php +46 -6
  35. modules/module.language-support.php +11 -0
  36. modules/module.lead-splash.php +7 -7
  37. modules/module.load-extensions.php +1 -1
  38. modules/module.metaboxes.php +178 -132
  39. modules/module.post-type.php +1 -1
  40. modules/module.sidebar.php +2 -2
  41. modules/module.store.php +1 -1
  42. modules/module.subscribe.php +1 -1
  43. modules/module.templates-upload.php +16 -16
  44. modules/module.templates.php +7 -7
  45. modules/module.utils.php +39 -2
  46. modules/module.welcome.php +40 -39
  47. modules/module.widgets.php +3 -3
  48. readme.txt +12 -4
  49. shared/classes/form.class.php +16 -4
  50. shared/inbound-shortcodes/css/form-cpt.css +1 -1
  51. shared/inbound-shortcodes/inbound-shortcodes.php +3 -2
  52. shared/inbound-shortcodes/js/shortcodes-plugins.js +9 -4
  53. shared/inbound-shortcodes/js/shortcodes.js +136 -30
  54. shared/inbound-shortcodes/shortcodes-fields.php +5 -3
  55. shared/inbound-shortcodes/shortcodes/forms.php +1 -1
  56. shared/inboundnow/inboundnow.extension-licensing.php +0 -1
  57. shared/languages/landing-pages/landing-pages.mo +0 -0
  58. shared/languages/landing-pages/landing-pages.po +2437 -0
  59. shared/metaboxes/inbound-metaboxes.css +2 -2
  60. shared/tracking/form-population.js +1 -0
  61. shared/tracking/js/inprogress.store.lead.ajax.js +629 -629
  62. shared/tracking/js/store.lead.ajax.js +3 -1
  63. shared/tracking/js/store.lead.ajax.js.orig +511 -511
  64. shared/tracking/page-tracking.js +435 -0
  65. shared/tracking/store.lead.php +171 -100
  66. templates/countdown-lander/config.php +21 -0
  67. templates/default/config.php +1 -1
  68. templates/dropcap/assets/images/beach.jpg +0 -0
  69. templates/dropcap/config.php +22 -1
  70. templates/dropcap/index.php +33 -28
  71. templates/index.php +2 -0
  72. templates/rsvp-envelope/assets/css/style.css +132 -132
  73. templates/rsvp-envelope/assets/fonts/YanoneKaffeesatz-Regular-webfont.svg +150 -150
  74. templates/rsvp-envelope/assets/js/jquery-1.3.2.min.js +18 -18
  75. templates/rsvp-envelope/config.php +84 -84
  76. templates/rsvp-envelope/index.php +122 -122
  77. templates/super-slick/assets/css/farbtastic.css +52 -52
  78. templates/super-slick/assets/js/jquery.js +3 -3
  79. templates/super-slick/assets/js/jquery.widtherize.js +79 -79
  80. templates/super-slick/assets/js/poetry.js +63 -63
  81. templates/super-slick/config.php +117 -117
  82. templates/super-slick/index.php +234 -234
css/admin-lp-cpt-only-style.css CHANGED
@@ -43,4 +43,7 @@ ul#template-filter .button-primary a {
43
  vertical-align: middle;
44
  float: none !important;
45
  font-weight: normal;
 
 
 
46
  }
43
  vertical-align: middle;
44
  float: none !important;
45
  font-weight: normal;
46
+ }
47
+ #lp_2_form_content .hndle em {
48
+ font-size: 13px;
49
  }
css/admin-post-edit.css CHANGED
@@ -6,7 +6,9 @@
6
  #wpbody-content {
7
  overflow: visible !important;
8
  }
9
-
 
 
10
  #lp-notes-area input {
11
  width: 95%;
12
  color: #AAAAAA;
6
  #wpbody-content {
7
  overflow: visible !important;
8
  }
9
+ h2#convert-header {
10
+ margin-bottom: 0px;
11
+ }
12
  #lp-notes-area input {
13
  width: 95%;
14
  color: #AAAAAA;
css/admin-style.css CHANGED
@@ -10,10 +10,7 @@
10
  margin-top: 5px;
11
  }
12
 
13
- .menu-icon-landing-page .wp-submenu li:last-child
14
- {
15
- display: none;
16
- }
17
  #setting-error-tgmpa p:nth-child(2) strong em {
18
  margin-top: 5px;
19
  }
10
  margin-top: 5px;
11
  }
12
 
13
+
 
 
 
14
  #setting-error-tgmpa p:nth-child(2) strong em {
15
  margin-top: 5px;
16
  }
css/frontend/index.php ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <?php
2
+ # Silence is golden.
css/images/index.php ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <?php
2
+ # Silence is golden.
css/index.php ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <?php
2
+ # Silence is golden.
css/new-customizer-admin.css CHANGED
@@ -113,4 +113,53 @@ line-height: 20px;
113
  font-size: 18px;
114
  display: block;
115
  text-align: center;
116
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
113
  font-size: 18px;
114
  display: block;
115
  text-align: center;
116
+ }
117
+ .inbound-meta-box-label {
118
+ width: 80% !important;
119
+ display: block !important;
120
+ }
121
+ .inbound-wysiwyg-option, .inbound-textarea-option {
122
+ width: 106% !important; }
123
+ .inbound-wysiwyg-option {
124
+ margin-left: -17px !important;
125
+ }
126
+ .mceIframeContainer.mceFirst.mceLast iframe {
127
+ width: 90% !important;
128
+ }
129
+ #lp_metabox_select_template {
130
+ margin-left: -10px !important;
131
+ }
132
+ .wp-editor-container {
133
+ border-right-color: transparent !important;
134
+ }
135
+ .wp-media-buttons .insert-media {
136
+ margin-left: 15px !important;
137
+ }
138
+ #inbound-shortcodes-preview-wrap {
139
+ display: none !important;
140
+ }
141
+ #inbound-shortcodes-form-wrap {
142
+ width: 96% !important;}
143
+ #inbound-shortcodes-form-wrap tbody tr.form-row td.label {
144
+ line-height: 29px !important;
145
+ display: block !important;
146
+ }
147
+ #popup-controls {
148
+ position: fixed;
149
+ border-top: 1px solid transparent !important;
150
+ bottom: 90px !important;
151
+ width: 300px !important;
152
+ left: 15% !important;
153
+ background: transparent !important;}
154
+ #inbound-shortcodes-form-table tbody tr.form-row {
155
+ display: block;
156
+ padding: 0px !important;
157
+ border-bottom: none !important;}
158
+ #inbound-shortcodes-form-wrap #inbound-shortcodes-form {
159
+ padding-bottom: 300px !important;
160
+ }
161
+ #inbound-shortcodes-form-table input[type="text"], #inbound-shortcodes-form-table input[type="email"], #inbound-shortcodes-form-table input[type="url"], #inbound-shortcodes-form-table input[type="number"], #inbound-shortcodes-form-table input[type="password"], #inbound-shortcodes-form-table textarea {
162
+ width: 100% !important;
163
+ }
164
+ #inbound_insert_shortcode_two, #shortcode_cancel, #inbound_save_form {
165
+ margin-bottom: 10px !important; }
functions/functions.admin.php DELETED
@@ -1,485 +0,0 @@
1
- <?php
2
-
3
- add_action('admin_enqueue_scripts','lp_admin_enqueue');
4
-
5
- function lp_admin_enqueue($hook)
6
- {
7
- global $post;
8
- $screen = get_current_screen(); //print_r($screen);
9
-
10
- //enqueue styles and scripts
11
- wp_enqueue_style('lp-admin-css', LANDINGPAGES_URLPATH . 'css/admin-style.css');
12
-
13
- //jquery cookie
14
- wp_dequeue_script('jquery-cookie');
15
- wp_enqueue_script('jquery-cookie', LANDINGPAGES_URLPATH . 'js/jquery.lp.cookie.js');
16
-
17
- // Frontend Editor
18
- if ((isset($_GET['page']) == 'lp-frontend-editor')) {
19
- // scripts soon
20
- }
21
-
22
- // Store Options Page
23
- if (isset($_GET['page']) && (($_GET['page'] == 'lp_store') || ($_GET['page'] == 'lp_addons')))
24
- {
25
- wp_dequeue_script('easyXDM');
26
- wp_enqueue_script('easyXDM', LANDINGPAGES_URLPATH . 'js/libraries/easyXDM.debug.js');
27
- //wp_enqueue_script('lp-js-store', LANDINGPAGES_URLPATH . 'js/admin/admin.store.js');
28
- }
29
-
30
- // Admin enqueue - Landing Page CPT only
31
- if ( ( isset($post) && 'landing-page' == $post->post_type ) || ( isset($_GET['post_type']) && $_GET['post_type']=='landing-page' ) )
32
- {
33
-
34
- wp_enqueue_script('jpicker', LANDINGPAGES_URLPATH . 'js/libraries/jpicker/jpicker-1.1.6.min.js');
35
- wp_localize_script( 'jpicker', 'jpicker', array( 'thispath' => LANDINGPAGES_URLPATH.'js/libraries/jpicker/images/' ));
36
- wp_enqueue_style('jpicker-css', LANDINGPAGES_URLPATH . 'js/libraries/jpicker/css/jPicker-1.1.6.min.css');
37
- wp_dequeue_script('jquery-qtip');
38
- wp_enqueue_script('jquery-qtip', LANDINGPAGES_URLPATH . 'js/libraries/jquery-qtip/jquery.qtip.min.js');
39
- wp_enqueue_script('load-qtip', LANDINGPAGES_URLPATH . 'js/libraries/jquery-qtip/load.qtip.js', array('jquery-qtip'));
40
- wp_enqueue_style('qtip-css', LANDINGPAGES_URLPATH . 'css/jquery.qtip.min.css'); //Tool tip css
41
- wp_enqueue_style('lp-only-cpt-admin-css', LANDINGPAGES_URLPATH . 'css/admin-lp-cpt-only-style.css');
42
- wp_enqueue_script( 'lp-admin-clear-stats-ajax-request', LANDINGPAGES_URLPATH . 'js/ajax.clearstats.js', array( 'jquery' ) );
43
- wp_localize_script( 'lp-admin-clear-stats-ajax-request', 'ajaxadmin', array( 'ajaxurl' => admin_url('admin-ajax.php'), 'lp_clear_nonce' => wp_create_nonce('lp-clear-nonce') ) );
44
-
45
- // Add New and Edit Screens
46
- if ( $hook == 'post-new.php' || $hook == 'post.php' )
47
- {
48
- add_filter( 'wp_default_editor', 'lp_ab_testing_force_default_editor' ); // force html view
49
- //admin.metaboxes.js - Template Selector - Media Uploader
50
- wp_enqueue_script('lp-js-metaboxes', LANDINGPAGES_URLPATH . 'js/admin/admin.metaboxes.js');
51
-
52
- $template_data = lp_get_extension_data();
53
- $template_data = json_encode($template_data);
54
- $template = get_post_meta($post->ID, 'lp-selected-template', true);
55
- $template = apply_filters('lp_selected_template',$template);
56
- $template = strtolower($template);
57
- $params = array('selected_template'=>$template, 'templates'=>$template_data);
58
- wp_localize_script('lp-js-metaboxes', 'data', $params);
59
-
60
- // Isotope sorting
61
- wp_enqueue_script('isotope', LANDINGPAGES_URLPATH . 'js/libraries/isotope/jquery.isotope.js', array('jquery'), '1.0', true );
62
- wp_enqueue_style('isotope', LANDINGPAGES_URLPATH . 'js/libraries/isotope/css/style.css');
63
-
64
- // Conditional TINYMCE for landing pages
65
- wp_dequeue_script('jquery-tinymce');
66
- wp_enqueue_script('jquery-tinymce', LANDINGPAGES_URLPATH . 'js/libraries/tiny_mce/jquery.tinymce.js');
67
-
68
- }
69
- // Edit Screen
70
- if ( $hook == 'post.php' )
71
- {
72
- wp_enqueue_script('lp-post-edit-ui', LANDINGPAGES_URLPATH . 'js/admin/admin.post-edit.js');
73
- wp_localize_script( 'lp-post-edit-ui', 'lp_post_edit_ui', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ), 'post_id' => $post->ID , 'wp_landing_page_meta_nonce' => wp_create_nonce('wp-landing-page-meta-nonce'), 'lp_template_nonce' => wp_create_nonce('lp-nonce') ) );
74
- wp_enqueue_style('admin-post-edit-css', LANDINGPAGES_URLPATH . '/css/admin-post-edit.css');
75
-
76
- wp_enqueue_script('jqueryui');
77
- // jquery datepicker
78
- wp_enqueue_script('jquery-datepicker', LANDINGPAGES_URLPATH . 'js/libraries/jquery-datepicker/jquery.timepicker.min.js');
79
-
80
- wp_enqueue_script('jquery-datepicker-base', LANDINGPAGES_URLPATH . 'js/libraries/jquery-datepicker/lib/base.js');
81
- wp_enqueue_script('jquery-datepicker-datepair', LANDINGPAGES_URLPATH . 'js/libraries/jquery-datepicker/lib/datepair.js');
82
- wp_localize_script( 'jquery-datepicker', 'jquery_datepicker', array( 'thispath' => LANDINGPAGES_URLPATH.'js/libraries/jquery-datepicker/' ));
83
- wp_enqueue_script('jquery-datepicker-functions', LANDINGPAGES_URLPATH . 'js/libraries/jquery-datepicker/picker_functions.js');
84
- wp_enqueue_style('jquery-timepicker-css', LANDINGPAGES_URLPATH . 'js/libraries/jquery-datepicker/jquery.timepicker.css');
85
- wp_enqueue_style('jquery-datepicker-base.css', LANDINGPAGES_URLPATH . 'js/libraries/jquery-datepicker/lib/base.css');
86
- // New frontend editor
87
- if (isset($_GET['frontend']) && $_GET['frontend'] === 'true') {
88
- //show_admin_bar( false ); // doesnt work
89
- wp_enqueue_style('new-customizer-admin', LANDINGPAGES_URLPATH . '/css/new-customizer-admin.css');
90
- wp_enqueue_script('new-customizer-admin', LANDINGPAGES_URLPATH . 'js/admin/new-customizer-admin.js');
91
- }
92
- }
93
-
94
- // Add New Screen
95
- if ( $hook == 'post-new.php' )
96
- {
97
- // Create New Landing Jquery UI
98
- wp_enqueue_script('lp-js-create-new-lander', LANDINGPAGES_URLPATH . 'js/admin/admin.post-new.js', array('jquery'), '1.0', true );
99
- wp_localize_script( 'lp-js-create-new-lander', 'lp_post_new_ui', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ), 'post_id' => $post->ID , 'wp_landing_page_meta_nonce' => wp_create_nonce('lp_nonce') , 'LANDINGPAGES_URLPATH' => LANDINGPAGES_URLPATH ) );
100
- wp_enqueue_style('lp-css-post-new', LANDINGPAGES_URLPATH . 'css/admin-post-new.css');
101
- }
102
-
103
- // List Screen
104
- if ( $screen->id == 'edit-landing-page' )
105
- {
106
- wp_enqueue_script(array('jquery', 'editor', 'thickbox', 'media-upload'));
107
- wp_enqueue_script('landing-page-list', LANDINGPAGES_URLPATH . 'js/admin/admin.landing-page-list.js');
108
- wp_enqueue_style('landing-page-list-css', LANDINGPAGES_URLPATH.'css/admin-landing-page-list.css');
109
- wp_enqueue_script('jqueryui');
110
- wp_admin_css('thickbox');
111
- add_thickbox();
112
- }
113
-
114
- }
115
- }
116
-
117
- add_filter('admin_url','lp_add_fullscreen_param');
118
- function lp_add_fullscreen_param( $link )
119
- {
120
- if (isset($_GET['page']))
121
- return $link;
122
-
123
- if ( ( isset($post) && 'landing-page' == $post->post_type ) || ( isset($_REQUEST['post_type']) && $_REQUEST['post_type']=='landing-page' ) )
124
- {
125
- $params['frontend'] = 'false';
126
- if(isset($_GET['frontend']) && $_GET['frontend'] == 'true') {
127
- $params['frontend'] = 'true';
128
- }
129
- if(isset($_REQUEST['frontend']) && $_REQUEST['frontend'] == 'true') {
130
- $params['frontend'] = 'true';
131
- }
132
- $link = add_query_arg( $params, $link );
133
-
134
- }
135
-
136
- return $link;
137
- }
138
-
139
-
140
- function lp_list_feature($label,$url=null)
141
- {
142
- return array(
143
- "label" => $label,
144
- "url" => $url
145
- );
146
- }
147
-
148
-
149
- add_action('wp_trash_post', 'lp_trash_lander');
150
- function lp_trash_lander($post_id) {
151
- global $post;
152
-
153
- if (!isset($post)||isset($_POST['split_test']))
154
- return;
155
-
156
- if ($post->post_type=='revision')
157
- {
158
- return;
159
- }
160
- if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE ||(isset($_POST['post_type'])&&$_POST['post_type']=='revision'))
161
- {
162
- return;
163
- }
164
-
165
- if ($post->post_type=='landing-page')
166
- {
167
-
168
- $lp_id = $post->ID;
169
-
170
- $args=array(
171
- 'post_type' => 'landing-page-group',
172
- 'post_satus'=>'publish'
173
- );
174
-
175
- $my_query = null;
176
- $my_query = new WP_Query($args);
177
-
178
- if( $my_query->have_posts() )
179
- {
180
- $i=1;
181
- while ($my_query->have_posts()) : $my_query->the_post();
182
- $group_id = get_the_ID();
183
- $group_data = get_the_content();
184
- $group_data = json_decode($group_data,true);
185
-
186
- $lp_ids = array();
187
- foreach ($group_data as $key=>$value)
188
- {
189
- $lp_ids[] = $key;
190
- }
191
-
192
- if (in_array($lp_id,$lp_ids))
193
- {
194
- unset($group_data[$lp_id]);
195
-
196
- $this_data = json_encode($group_data);
197
- //print_r($this_data);
198
- $new_post = array(
199
- 'ID' => $group_id,
200
- 'post_title' => get_the_title(),
201
- 'post_content' => $this_data,
202
- 'post_status' => 'publish',
203
- 'post_date' => date('Y-m-d H:i:s'),
204
- 'post_author' => 1,
205
- 'post_type' => 'landing-page-group'
206
- );
207
- //print_r($new_post);
208
- $post_id = wp_update_post($new_post);
209
- }
210
- endwhile;
211
- }
212
- }
213
- }
214
-
215
- function lp_add_option($key,$type,$id,$default=null,$label=null,$description=null, $options=null)
216
- {
217
- switch ($type)
218
- {
219
- case "colorpicker":
220
- return array(
221
- 'label' => $label,
222
- 'description' => $description,
223
- 'id' => $id,
224
- 'type' => 'colorpicker',
225
- 'default' => $default
226
- );
227
- break;
228
- case "text":
229
- return array(
230
- 'label' => $label,
231
- 'description' => $description,
232
- 'id' => $id,
233
- 'type' => 'text',
234
- 'default' => $default
235
- );
236
- break;
237
- case "license-key":
238
- return array(
239
- 'label' => $label,
240
- 'description' => $description,
241
- 'id' => $id,
242
- 'type' => 'license-key',
243
- 'default' => $default,
244
- 'slug' => $id
245
- );
246
- break;
247
- case "textarea":
248
- return array(
249
- 'label' => $label,
250
- 'description' => $description,
251
- 'id' => $id,
252
- 'type' => 'textarea',
253
- 'default' => $default
254
- );
255
- break;
256
- case "wysiwyg":
257
- return array(
258
- 'label' => $label,
259
- 'description' => $description,
260
- 'id' => $id,
261
- 'type' => 'wysiwyg',
262
- 'default' => $default
263
- );
264
- break;
265
- case "media":
266
- return array(
267
- 'label' => $label,
268
- 'description' => $description,
269
- 'id' => $id,
270
- 'type' => 'media',
271
- 'default' => $default
272
- );
273
- break;
274
- case "checkbox":
275
- return array(
276
- 'label' => $label,
277
- 'description' => $description,
278
- 'id' => $id,
279
- 'type' => 'checkbox',
280
- 'default' => $default,
281
- 'options' => $options
282
- );
283
- break;
284
- case "radio":
285
- return array(
286
- 'label' => $label,
287
- 'description' => $description,
288
- 'id' =>$id,
289
- 'type' => 'radio',
290
- 'default' => $default,
291
- 'options' => $options
292
- );
293
- break;
294
- case "dropdown":
295
- return array(
296
- 'label' => $label,
297
- 'description' => $description,
298
- 'id' => $id,
299
- 'type' => 'dropdown',
300
- 'default' => $default,
301
- 'options' => $options
302
- );
303
- break;
304
- case "datepicker":
305
- return array(
306
- 'label' => $label,
307
- 'description' => $description,
308
- 'id' => $id,
309
- 'type' => 'datepicker',
310
- 'default' => $default
311
- );
312
- break;
313
- case "default-content":
314
- return array(
315
- 'label' => $label,
316
- 'description' => $description,
317
- 'id' => $id,
318
- 'type' => 'default-content',
319
- 'default' => $default
320
- );
321
- break;
322
- case "html":
323
- return array(
324
- 'label' => $label,
325
- 'description' => $description,
326
- 'id' => $id,
327
- 'type' => 'html',
328
- 'default' => $default
329
- );
330
- break;
331
- }
332
- }
333
-
334
-
335
-
336
-
337
- //generates drop down select of landing pages
338
- function lp_generate_drowndown($select_id, $post_type, $selected = 0, $width = 400, $height = 230,$font_size = 13,$multiple=true)
339
- {
340
- $post_type_object = get_post_type_object($post_type);
341
- $label = $post_type_object->label;
342
-
343
- if ($multiple==true)
344
- {
345
- $multiple = "multiple='multiple'";
346
- }
347
- else
348
- {
349
- $multiple = "";
350
- }
351
-
352
- $posts = get_posts(array('post_type'=> $post_type, 'post_status'=> 'publish', 'suppress_filters' => false, 'posts_per_page'=>-1));
353
- echo '<select name="'. $select_id .'" id="'.$select_id.'" class="lp-multiple-select" style="width:'.$width.'px;height:'.$height.'px;font-size:'.$font_size.'px;" '.$multiple.'>';
354
- foreach ($posts as $post) {
355
- echo '<option value="', $post->ID, '"', $selected == $post->ID ? ' selected="selected"' : '', '>', $post->post_title, '</option>';
356
- }
357
- echo '</select>';
358
- }
359
-
360
-
361
- function lp_wp_editor( $content, $id, $settings = array() )
362
- {
363
- //echo $id;
364
- $content = apply_filters('lp_wp_editor_content',$content);
365
- $id = apply_filters('lp_wp_editor_id',$id);
366
- $settings = apply_filters('lp_wp_editor_settings',$settings);
367
-
368
-
369
- wp_editor( $content, $id, $settings);
370
- }
371
-
372
-
373
- function lp_display_headline_input($id,$main_headline)
374
- {
375
- //echo $id;
376
- $id = apply_filters('lp_display_headline_input_id',$id);
377
-
378
- echo "<input type='text' name='{$id}' id='{$id}' value='{$main_headline}' size='30'>";
379
- }
380
- function lp_display_notes_input($id,$variation_notes)
381
- {
382
- //echo $id;
383
- $id = apply_filters('lp_display_notes_input_id',$id);
384
-
385
- echo "<span id='add-lp-notes'>Notes:</span><input placeholder='Add Notes to your variation. Example: This version is testing a green submit button' type='text' class='lp-notes' name='{$id}' id='{$id}' value='{$variation_notes}' size='30'>";
386
- }
387
-
388
- function lp_ready_screenshot_url($link,$datetime)
389
- {
390
- return $link.'?dt='.$datetime;
391
- }
392
-
393
-
394
- function lp_display_success($message)
395
- {
396
- echo "<br><br><center>";
397
- echo "<font color='green'><i>".$message."</i></font>";
398
- echo "</center>";
399
- }
400
-
401
-
402
- function lp_make_percent($rate, $return = false)
403
- {
404
- //yes, we know this is not a true filter
405
- if (is_numeric($rate))
406
- {
407
- $percent = $rate * (100);
408
- $percent = number_format($percent,1);
409
- if($return){ return $percent."%"; } else { echo $percent."%"; }
410
- }
411
- else
412
- {
413
- if($return){ return $rate; } else { echo $rate; }
414
- }
415
- }
416
-
417
-
418
- function landing_page_get_version() {
419
- if ( ! function_exists( 'get_plugins' ) )
420
- require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
421
- $plugin_folder = get_plugins( '/' . plugin_basename( dirname( __FILE__ ) ) );
422
- $plugin_file = basename( ( __FILE__ ) );
423
- return $plugin_folder[$plugin_file]['Version'];
424
- }
425
-
426
- function lp_wpseo_priority(){return 'low';}
427
- add_filter( 'wpseo_metabox_prio', 'lp_wpseo_priority');
428
- add_action( 'in_admin_header', 'lp_in_admin_header');
429
- function lp_in_admin_header()
430
- {
431
- global $post;
432
- global $wp_meta_boxes;
433
-
434
- if (isset($post)&&$post->post_type=='landing-page')
435
- {
436
- unset( $wp_meta_boxes[get_current_screen()->id]['normal']['core']['postcustom'] );
437
- }
438
- }
439
-
440
-
441
- /* AB TESTING FUNCTIONS */
442
-
443
- /**
444
- * [lp_ab_unset_variation description]
445
- * @param [type] $variations [description]
446
- * @param [type] $vid [description]
447
- * @return [type] [description]
448
- */
449
- function lp_ab_unset_variation($variations,$vid)
450
- {
451
- if(($key = array_search($vid, $variations)) !== false) {
452
- unset($variations[$key]);
453
- }
454
-
455
- return $variations;
456
- }
457
-
458
- /**
459
- * [lp_ab_get_lp_active_status returns if landing page is in rotation or not]
460
- * @param [type] $post [description]
461
- * @param [type] $vid [description]
462
- * @return [type] 1 or 0
463
- */
464
- function lp_ab_get_lp_active_status($post,$vid=null)
465
- {
466
- if ($vid==0)
467
- {
468
- $variation_status = get_post_meta( $post->ID , 'lp_ab_variation_status' , true);
469
- }
470
- else
471
- {
472
- $variation_status = get_post_meta( $post->ID , 'lp_ab_variation_status-'.$vid , true);
473
- }
474
-
475
- if (!is_numeric($variation_status))
476
- {
477
- return 1;
478
- }
479
- else
480
- {
481
- return $variation_status;
482
- }
483
- }
484
-
485
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
functions/functions.global.php DELETED
@@ -1,786 +0,0 @@
1
- <?php
2
-
3
- add_action('wp_enqueue_scripts','lp_fontend_enqueue_scripts');
4
-
5
- function lp_fontend_enqueue_scripts($hook)
6
- {
7
- global $post;
8
-
9
- if (!isset($post))
10
- return;
11
-
12
- $post_type = $post->post_type;
13
- $post_id = $post->ID;
14
- (isset($_SERVER['REMOTE_ADDR'])) ? $ip_address = $_SERVER['REMOTE_ADDR'] : $ip_address = '0.0.0.0.0';
15
- $current_page = "http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];
16
-
17
- wp_enqueue_script('jquery');
18
-
19
- // jquery cookie
20
- wp_dequeue_script('jquery-cookie');
21
- wp_enqueue_script('jquery-cookie', LANDINGPAGES_URLPATH . 'js/jquery.lp.cookie.js', array( 'jquery' ));
22
-
23
- // load local storage script
24
- wp_register_script('jquery-total-storage',LANDINGPAGES_URLPATH . 'js/jquery.total-storage.min.js', array( 'jquery' ));
25
- wp_enqueue_script('jquery-total-storage');
26
-
27
- // Load funnel tracking. Force Leads to load its version if active
28
- if ($post_type!=='wp-call-to-action')
29
- {
30
- wp_register_script('funnel-tracking',LANDINGPAGES_URLPATH . 'js/funnel-tracking.js', array( 'jquery', 'jquery-cookie'));
31
- wp_enqueue_script('funnel-tracking');
32
- wp_localize_script( 'funnel-tracking' , 'wplft', array( 'post_id' => $post_id , 'ip_address' => $ip_address ));
33
- }
34
-
35
- if (isset($post)&&$post->post_type=='landing-page')
36
- {
37
-
38
-
39
- // Shared Core Inbound Scripts
40
- if (@function_exists('wpleads_check_active'))
41
- {
42
- wp_enqueue_script( 'store-lead-ajax', WPL_URL . '/shared/tracking/js/store.lead.ajax.js', array( 'jquery','jquery-cookie', 'funnel-tracking'));
43
- }
44
- else
45
- {
46
- wp_enqueue_script( 'store-lead-ajax', LANDINGPAGES_URLPATH .'shared/tracking/js/store.lead.ajax.js', array( 'jquery','jquery-cookie'));
47
- }
48
- wp_localize_script( 'store-lead-ajax' , 'inbound_ajax', array( 'admin_url' => admin_url( 'admin-ajax.php' ), 'post_id' => $post_id, 'post_type' => $post_type));
49
-
50
- $variation = (isset($_GET['lp-variation-id'])) ? $_GET['lp-variation-id'] : '0';
51
- wp_enqueue_script( 'landing-page-view-track' , LANDINGPAGES_URLPATH . 'js/page_view_track.js', array( 'jquery','jquery-cookie'));
52
- wp_localize_script( 'landing-page-view-track' , 'landing_path_info', array( 'variation' => $variation, 'admin_url' => admin_url( 'admin-ajax.php' )));
53
-
54
- $form_prepopulation = get_option( 'lp-main-landing-page-prepopulate-forms' , 1);
55
-
56
- // load form pre-population script
57
- if ($form_prepopulation)
58
- {
59
- wp_register_script('form-population',LANDINGPAGES_URLPATH . 'js/jquery.form-population.js', array( 'jquery', 'jquery-cookie' ));
60
- wp_enqueue_script('form-population');
61
- }
62
-
63
-
64
-
65
-
66
- if (isset($_GET['template-customize']) &&$_GET['template-customize']=='on') {
67
- // wp_register_script('lp-customizer-load-js', LANDINGPAGES_URLPATH . 'js/customizer.load.js', array('jquery'));
68
- // wp_enqueue_script('lp-customizer-load-js');
69
- echo "<style type='text/css'>#variation-list{background:#eaeaea !important; top: 26px !important; height: 35px !important;padding-top: 10px !important;}#wpadminbar {height: 29px !important;}</style>"; // enqueue styles not firing
70
- }
71
- if (isset($_GET['live-preview-area'])) {
72
- show_admin_bar( false );
73
- wp_register_script('lp-customizer-load-js', LANDINGPAGES_URLPATH . 'js/customizer.load.js', array('jquery'));
74
- wp_enqueue_script('lp-customizer-load-js');
75
- // wp_enqueue_style('lp-customizer-load-css', LANDINGPAGES_URLPATH . 'css/customizer-load.css'); doesn't work
76
- /* Almost working
77
- define("QUICK_CACHE_ALLOWED", false);
78
- define("DONOTCACHEPAGE", true);
79
- define('DONOTCACHCEOBJECT', true);
80
- define('DONOTCDN', true);
81
-
82
- // Function to wrap outputted meta in spans for front end editing
83
- add_filter( 'lp_get_value', 'lp_customizer_add_span_meta' , 10 , 4);
84
- function lp_customizer_add_span_meta( $content , $post = null , $key=null, $id=null)
85
- {
86
- $id = apply_filters('lp_customizer_span_id',$id);
87
- $exclude_list = "color|default|tile|repeat-x|repeat-y|left|right";
88
- // need to exclude these matches only if exact match with no other content
89
- // Need to exclude /images/img.jpg
90
- // Need to find single strings with only a url to a .png,.jpg, .gif file and exclude
91
- // Check for media upload type and ignore. Also ignore common setting words
92
- //echo $key.':'.$id.":".$content;
93
- //echo "<hr>";
94
- //echo "<br>";
95
- //<img alt="" src="/wp-content/uploads/landing-pages/templates/minimal-responsive/img/placeholder.jpg" /> matches the below preg match but we only want to match the string if its exactly /wp-content/uploads/landing-pages/templates/minimal-responsive/img/placeholder.jpg and nothing else
96
- if (!@preg_match('/^(http|https|ftp)://([A-Z0-9][A-Z0-9_-]*(?:.[A-Z0-9][A-Z0-9_-]*)+):?(d+)?/?/i', $content)&&!strstr($content,'/wp-content/') && !@preg_match('/^[a-f0-9]{1,}$/is', $content) && $content != "color") {
97
- $content = "<span id='$key-$id' class='live-preview-area-box'>" . $content . "</span>";
98
- }
99
-
100
- return $content;
101
- }
102
-
103
- add_filter( 'lp_main_headline', 'lp_customizer_add_span_title' ,99);
104
- function lp_customizer_add_span_title( $content, $id ='title' )
105
- {
106
-
107
- $id = apply_filters('lp_customizer_span_id' , $id );
108
- $content = "<span id='lp-main-headline' class='live-preview-area-box' >" . $content . "</span>";
109
-
110
- return $content;
111
- }
112
-
113
- // Function to wrap outputted meta in spans for front end editing
114
- add_filter( 'the_content', 'lp_customizer_add_span_content' );
115
- function lp_customizer_add_span_content( $content , $id = 'content' )
116
- {
117
-
118
- $id = apply_filters('lp_customizer_span_id', $id );
119
- $content = "<span id='the-content' class='live-preview-area-box' >" . $content . "</span>";
120
-
121
- return $content;
122
- }
123
-
124
- // Function to wrap outputted meta in spans for front end editing
125
- add_filter( 'lp_conversion_area', 'lp_customizer_add_span_conversion_area' );
126
- function lp_customizer_add_span_conversion_area( $content , $id = 'lp-conversion-area' )
127
- {
128
- //echo "here";exit;
129
- $id = apply_filters('lp_customizer_span_id', $id );
130
- $content = "<span id='lp-conversion-area' class='live-preview-area-box' >" . $content . "</span>";
131
-
132
- return $content;
133
- } */
134
- }
135
- }
136
-
137
- }
138
-
139
- add_action('wp_head', 'lp_header_load');
140
- function lp_header_load(){
141
- global $post;
142
- if (isset($post)&&$post->post_type=='landing-page')
143
- {
144
- wp_enqueue_style('inbound-wordpress-base-css', LANDINGPAGES_URLPATH . 'css/frontend/global-landing-page-style.css');
145
- if (isset($_GET['lp-variation-id']) && !isset($_GET['template-customize']) && !isset($_GET['iframe_window']) && !isset($_GET['live-preview-area'])) { ?>
146
- <script type="text/javascript">
147
- if (typeof window.history.pushState == 'function') {
148
- var current=window.location.href;var cleanparams=current.split("?");var clean_url=cleanparams[0];history.replaceState({},"landing page",clean_url);
149
- //console.log("push state supported.");
150
- }</script>
151
- <?php }
152
- }
153
- }
154
-
155
- function lp_discover_important_wrappers($content)
156
- {
157
- $wrapper_class = "";
158
- if (strstr($content,'gform_wrapper'))
159
- {
160
- $wrapper_class = 'gform_wrapper';
161
- }
162
- return $wrapper_class;
163
- }
164
-
165
- function lp_rebuild_attributes($content=null, $wrapper_class=null, $standardize_form = 0)
166
- {
167
- if (strstr($content,'<form'))
168
- {
169
- if ($standardize_form)
170
- {
171
- $tag_whitelist = trim(get_option( 'lp-main-landing-page-auto-format-forms-retain-elements' , '<button><script><textarea><style><input><form><select><label><a><p><b><u><strong><i><img><strong><span><font><h1><h2><h3><center><blockquote><embed><object><small>'));
172
- $content = strip_tags($content, $tag_whitelist);
173
-
174
- if (!strstr($content,'<label')&&strstr($content,'<p'))
175
- {
176
- $content = str_replace('<p>','<label >',$content);
177
- $content = str_replace('</p>','</label>',$content);
178
- //echo $content; exit;
179
- }
180
-
181
- if (!strstr($content,'<label')&&strstr($content,'<span'))
182
- {
183
- $content = str_replace('<span','<label',$content);
184
- $content = str_replace('</span>','</label>',$content);
185
- }
186
-
187
- // Match Form tags
188
- $form = preg_match_all('/\<form(.*?)\>/s',$content, $matches);
189
- if (!empty($matches[0]))
190
- {
191
- foreach ($matches[0] as $key=> $value)
192
- {
193
- $new_value = $value;
194
- $form_name = preg_match('/ name *= *["\']?([^"\']*)/i',$value, $name); // 1 for true. 0 for false
195
- $form_id = stristr($value, ' id=');
196
- $form_class = stristr($value, ' class=');
197
-
198
- ($form_name) ? $name = $name[1] : $name = $key;
199
-
200
- if ($form_class)
201
- {
202
- $new_value = preg_replace('/ class=(["\'])(.*?)(["\'])/',' class="lp-form wpl-track-me $2"', $new_value);
203
- }
204
- else
205
- {
206
- $new_value = str_replace('<form ','<form class="lp-form wpl-track-me" ', $new_value);
207
- }
208
-
209
- $content = str_replace($value,$new_value,$content);
210
- }
211
- }
212
-
213
- // Standardize all Labels
214
- $inputs = preg_match_all('/\<label(.*?)\>/s',$content, $matches);
215
- if (!empty($matches[0]))
216
- {
217
- foreach ($matches[0] as $value)
218
- {
219
- $new_value = $value;
220
- // regex to match text in label /(?<=[>])[^<>]+(?=[<])/g
221
- (preg_match('/ for *= *["\']?([^"\']*)/i',$value, $for)) ? $for = $for[1] : $for = 'input';
222
- $for = str_replace(' ','-',$for);
223
-
224
- $new_value = preg_replace('/ id=(["\'])(.*?)(["\'])/','', $new_value);
225
-
226
- $new_value = preg_replace('/ class=(["\'])(.*?)(["\'])/','', $new_value);
227
-
228
- $new_value = str_replace('<label ','<label id="lp-label-'.$for.'" ', $new_value);
229
- $new_value = str_replace('<label ','<label class="lp-input-label" ', $new_value);
230
- //$new_value = str_replace('<label>','<label class="lp-select-heading"> ', $new_value); // fix select headings
231
-
232
-
233
- //$new_value = "<div id='lp_field_'
234
- $content = str_replace($value, $new_value, $content);
235
- }
236
- }
237
-
238
- // Standardize all input fields
239
- $inputs = preg_match_all('/\<input(.*?)\>/s',$content, $matches);
240
- if (!empty($matches[0]))
241
- {
242
- foreach ($matches[0] as $value)
243
- {
244
- $new_value = $value;
245
- //get input name
246
- (preg_match( '/ name *= *["\']?([^"\']*)/i', $new_value, $name )) ? $name = $name[1] : $name = "button";
247
- // get input type
248
- (preg_match('/ type *= *["\']?([^"\']*)/i',$new_value, $type)) ? $type = $type[1] : $type = "text";
249
-
250
- // if class exists do this
251
- if (preg_match('/ class *= *["\']?([^"\']*)/i', $new_value, $class)) {
252
- $new_value = preg_replace('/ class=(["\'])(.*?)(["\'])/',' class="lp-input-'.$type.'"', $new_value);
253
- }
254
- else
255
- {
256
- $new_value = str_replace('<input ','<input class="lp-input-'.$type.'" ', $new_value);
257
- }
258
-
259
- // if id exists do this
260
- if (preg_match('/ id *= *["\']?([^"\']*)/i', $new_value, $class))
261
- {
262
- $new_value = preg_replace('/ id=(["\'])(.*?)(["\'])/',' id="lp-'.$type.'-'.$name.'"', $new_value);
263
- }
264
- else
265
- {
266
- $new_value = str_replace('<input ','<input id="lp-'.$type.'-'.$name.'" ', $new_value);
267
- }
268
-
269
- $content = str_replace($value,$new_value, $content);
270
- }
271
- }
272
-
273
- // Standardize All Select Fields
274
- $selects = preg_match_all('/\<select(.*?)\>/s',$content, $matches);
275
- if (!empty($matches[0]))
276
- {
277
- foreach ($matches[0] as $value)
278
- {
279
- preg_match('/ name *= *["\']?([^"\']*)/i',$value, $name);
280
- $name = $name[1];
281
-
282
- $new_value = preg_replace('/ id=(["\'])(.*?)(["\'])/',' id="lp-select-'.$name.'"', $value);
283
- $new_value = preg_replace('/ class=(["\'])(.*?)(["\'])/',' class="lp-input-select"', $new_value);
284
- $content = str_replace($value,$new_value, $content);
285
- }
286
- }
287
-
288
- // Match Form text to common inputs
289
- $fields = preg_match_all("/\<label(.*?)\<input(.*?)\>/si",$content, $matches);
290
- if (!empty($matches[0]))
291
- {
292
- foreach ($matches[0] as $value)
293
- {
294
- //echo $value;exit;
295
- //echo "<hr>";
296
- (preg_match( '/Email|e-mail|email/i', $value, $email_input)) ? $email_input = "lp-email-value" : $email_input = "";
297
-
298
- // match name or first name. (minus: name=, last name, last_name,)
299
- (preg_match( '/(?<!((last |last_)))name(?!\=)/im', $value, $first_name_input)) ? $first_name_input = "lp-first-name-value" : $first_name_input = "";
300
-
301
- // Match Last Name
302
- (preg_match( '/(?<!((first)))(last name|last_name|last)(?!\=)/im', $value, $last_name_input)) ? $last_name_input = "lp-last-name-value" : $last_name_input = "";
303
-
304
- $new_value = "<div class='lp_form_field $email_input $first_name_input $last_name_input'>".$value."</div>";
305
-
306
- $content = str_replace($value,$new_value, $content);
307
- }
308
-
309
- }
310
-
311
- // Fix All Span Tags
312
- $inputs = preg_match_all('/\<span(.*?)\>/s',$content, $matches);
313
- if (!empty($matches[0]))
314
- {
315
- foreach ($matches[0] as $value)
316
- {
317
- $new_value = preg_replace('/\<span(.*?)\>/s','<span class="lp-span">', $value);
318
- $content = str_replace($value,$new_value, $content);
319
- }
320
- }
321
-
322
- // Fix All <p> Tags
323
- $inputs = preg_match_all('/\<p(.*?)\>/s',$content, $matches);
324
- if (!empty($matches[0]))
325
- {
326
- foreach ($matches[0] as $value)
327
- {
328
- $new_value = preg_replace('/\<p(.*?)\>/s','<p class="lp-paragraph">', $value);
329
- $content = str_replace($value,$new_value, $content);
330
- }
331
- }
332
-
333
- //handle gform error messages
334
- if (strstr($content,'There was a problem with your submission. Errors have been highlighted below.'))
335
- {
336
- $content = preg_replace('/(There was a problem with your submission. Errors have been highlighted below.)/','<div class="validation_error">$1</div>', $content);
337
- $content = preg_replace('/(Please enter a valid email address.)/','<div class="gfield_description validation_message">$1</div>', $content);
338
- $content = preg_replace('/(This field is required.)/','<div class="gfield_description validation_message">$1</div>', $content);
339
- }
340
-
341
- $content = str_replace('name="submit"','name="s"',$content);
342
- $content = "<div id='lp_container_form' class='$wrapper_class'>{$content}</div>";
343
- }
344
- else
345
- {
346
-
347
- $form = preg_match_all('/\<form(.*?)\>/s',$content, $matches);
348
- if (!empty($matches[0]))
349
- {
350
- foreach ($matches[0] as $key=>$value)
351
- {
352
- //echo "here";exit;
353
- $new_value = $value;
354
- $form_name = preg_match('/ name *= *["\']?([^"\']*)/i',$value, $name); // 1 for true. 0 for false
355
- $form_id = stristr($value, ' id=');
356
- $form_class = stristr($value, ' class=');
357
-
358
- ($form_name) ? $name = $name[1] : $name = $key;
359
- /* We are breaking the ids here need to only fix/add classes
360
- if ($form_id)
361
- {
362
- $new_value = preg_replace('/ id=(["\'])(.*?)(["\'])/',' id="lp-form-'.$name.' $2"', $new_value);
363
- }
364
- else
365
- {
366
- $new_value = str_replace('<form ','<form id="lp-form-'.$name.'" ', $new_value);
367
- }
368
- */
369
- if ($form_class)
370
- {
371
- $new_value = preg_replace('/ class=(["\'])(.*?)(["\'])/',' class="lp-form wpl-track-me $2"', $new_value);
372
- }
373
- else
374
- {
375
- $new_value = str_replace('<form ','<form class="lp-form wpl-track-me" ', $new_value);
376
- }
377
-
378
- $content = str_replace($value,$new_value,$content);
379
-
380
- }
381
- }
382
-
383
- $check_wrap = preg_match_all('/lp_container_form/s',$content, $check);
384
- if (empty($check[0]))
385
- {
386
- $content = str_replace('name="submit"','name="s"',$content);
387
- $content = "<div id='lp_container_form' >{$content}</div>";
388
- }
389
- }
390
-
391
-
392
- }
393
- else
394
- {
395
-
396
- // Standardize all links
397
- $inputs = preg_match_all('/\<a(.*?)\>/s',$content, $matches);
398
- if (!empty($matches[0]))
399
- {
400
- foreach ($matches[0] as $key => $value)
401
- {
402
- if ($key==0)
403
- {
404
- $new_value = $value;
405
- $new_value = preg_replace('/ class=(["\'])(.*?)(["\'])/','class="$2 lp-track-link"', $new_value);
406
-
407
-
408
-
409
- $content = str_replace($value, $new_value, $content);
410
- break;
411
- }
412
- }
413
- }
414
-
415
- $check_wrap = preg_match_all('/lp_container_noform/s',$content, $check);
416
- if (empty($check[0]))
417
- {
418
- $content = "<div id='lp_container_noform' class='$wrapper_class link-click-tracking'>{$content}</div>";
419
- }
420
- }
421
-
422
- return $content;
423
- }
424
-
425
-
426
-
427
- function lp_conversion_area($post = null, $content=null,$return=false, $doshortcode = true, $rebuild_attributes = true)
428
- {
429
- if (!isset($post))
430
- global $post;
431
-
432
- $wrapper_class = "";
433
-
434
- $content = get_post_meta($post->ID, 'lp-conversion-area', true);
435
-
436
- $content = apply_filters('lp_conversion_area_pre_standardize',$content, $post, $doshortcode);
437
-
438
- $standardize_form = get_option( 'lp-main-landing-page-auto-format-forms' , 0); // conditional to check for options
439
-
440
- $wrapper_class = lp_discover_important_wrappers($content);
441
-
442
-
443
-
444
- if ($doshortcode)
445
- {
446
- $content = do_shortcode($content);
447
- }
448
-
449
- if ($rebuild_attributes)
450
- {
451
- $content = lp_rebuild_attributes($content, $wrapper_class, $standardize_form );
452
- }
453
-
454
-
455
- $content = apply_filters('lp_conversion_area_post',$content, $post);
456
-
457
- if(!$return)
458
- {
459
-
460
- echo do_shortcode($content);
461
- }
462
- else
463
- {
464
- return $content;
465
- }
466
-
467
- }
468
-
469
- add_shortcode( 'lp_conversion_area', 'lp_conversion_area_shortcode');
470
- function lp_conversion_area_shortcode( $atts, $content = null ) {
471
- extract(shortcode_atts(array(
472
- 'id' => '',
473
- 'align' => ''
474
- //'style' => ''
475
- ), $atts));
476
-
477
- $conversion_area = "";
478
- $conversion_area .= lp_conversion_area($post = null, $content=null,$return=true, $doshortcode = true, $rebuild_attributes = true);
479
-
480
- return $conversion_area;
481
- }
482
-
483
- function lp_main_headline($post = null, $headline=null,$return=false)
484
- {
485
- if (!isset($post))
486
- global $post;
487
-
488
- if (!$headline)
489
- {
490
- $main_headline = lp_get_value($post, 'lp', 'main-headline');
491
- $main_headline = apply_filters('lp_main_headline',$main_headline, $post);
492
-
493
- if(!$return)
494
- {
495
- echo $main_headline;
496
-
497
- }
498
- else
499
- {
500
- return $main_headline;
501
- }
502
- }
503
- else
504
- {
505
- $main_headline = apply_filters('lp_main_headline',$main_headline, $post);
506
- if(!$return)
507
- {
508
- echo $headline;
509
- }
510
- else
511
- {
512
- return $headline;
513
- }
514
- }
515
- }
516
-
517
- function lp_content_area($post = null, $content=null,$return=false )
518
- {
519
- if (!isset($post))
520
- global $post;
521
-
522
- if (!$content)
523
- {
524
- global $post;
525
-
526
- if (!isset($post)&&isset($_REQUEST['post']))
527
- {
528
-
529
- $post = get_post($_REQUEST['post']);
530
- }
531
-
532
- else if (!isset($post)&&isset($_REQUEST['lp_id']))
533
- {
534
- $post = get_post($_REQUEST['lp_id']);
535
- }
536
-
537
- //var_dump($post);
538
- $content_area = $post->post_content;
539
-
540
- if (!is_admin())
541
- $content_area = apply_filters('the_content', $content_area);
542
-
543
- $content_area = apply_filters('lp_content_area',$content_area, $post);
544
-
545
- if(!$return)
546
- {
547
- echo $content_area;
548
-
549
- }
550
- else
551
- {
552
- return $content_area;
553
- }
554
- }
555
- else
556
- {
557
- if(!$return)
558
- {
559
- echo $content_area;
560
- }
561
- else
562
- {
563
- return $content_area;
564
- }
565
- }
566
- }
567
-
568
- function lp_body_class()
569
- {
570
- global $post;
571
- global $lp_data;
572
- // Need to add in lp_right or lp_left classes based on the meta to float forms
573
- // like $conversion_layout = lp_get_value($post, $key, 'conversion-area-placement');
574
- if (get_post_meta($post->ID, 'lp-selected-template', true))
575
- {
576
- $lp_body_class = "template-" . get_post_meta($post->ID, 'lp-selected-template', true);
577
- $postid = "page-id-" . get_the_ID();
578
- echo 'class="';
579
- echo $lp_body_class . " " . $postid . " wordpress-landing-page";
580
- echo '"';
581
- }
582
- return $lp_body_class;
583
- }
584
-
585
- function lp_get_parent_directory($path)
586
- {
587
- if(stristr($_SERVER['SERVER_SOFTWARE'], 'Win32')){
588
- $array = explode('\\',$path);
589
- $count = count($array);
590
- $key = $count -1;
591
- $parent = $array[$key];
592
- return $parent;
593
- } else if(stristr($_SERVER['SERVER_SOFTWARE'], 'IIS')){
594
- $array = explode('\\',$path);
595
- $count = count($array);
596
- $key = $count -1;
597
- $parent = $array[$key];
598
- return $parent;
599
- }else {
600
- $array = explode('/',$path);
601
- $count = count($array);
602
- $key = $count -1;
603
- $parent = $array[$key];
604
- return $parent;
605
- }
606
- }
607
-
608
- function lp_get_value($post, $key, $id)
609
- {
610
- //echo 1; exit;
611
- if (isset($post))
612
- {
613
- $return = get_post_meta($post->ID, $key.'-'.$id , true);
614
- $return = apply_filters('lp_get_value',$return,$post,$key,$id);
615
-
616
- return $return;
617
- }
618
-
619
-
620
- }
621
-
622
-
623
- function lp_check_active()
624
- {
625
- return 1;
626
- }
627
-
628
- if (!function_exists('lp_remote_connect')) {
629
- function lp_remote_connect($url)
630
- {
631
- $method1 = ini_get('allow_url_fopen') ? "Enabled" : "Disabled";
632
- if ($method1 == 'Disabled')
633
- {
634
- //do curl
635
- $ch = curl_init();
636
- curl_setopt($ch, CURLOPT_URL, "$url");
637
- curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
638
- curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
639
- curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
640
- curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt');
641
- curl_setopt ($ch, CURLOPT_TIMEOUT, 60);
642
- $string = curl_exec($ch);
643
- }
644
- else
645
- {
646
- $string = file_get_contents($url);
647
- }
648
-
649
- return $string;
650
- }
651
- }
652
-
653
- //***********FUNCTION THAT WILL FIND POST ID FROM URL FOR CUSTOM POST TYPES******************/
654
- function lp_url_to_postid($url)
655
- {
656
- global $wpdb;
657
-
658
- if (strstr($url,'?landing-page='))
659
- {
660
- $url = explode('?landing-page=',$url);
661
- $url = $url[1];
662
- $url = explode('&',$url);
663
- $post_id = $url[0];
664
-
665
- return $post_id;
666
- }
667
-
668
- //first check if URL is homepage
669
- $wordpress_url = get_bloginfo('url');
670
- if (substr($wordpress_url, -1, -1)!='/')
671
- {
672
- $wordpress_url = $wordpress_url."/";
673
- }
674
-
675
- if (str_replace('/','',$url)==str_replace('/','',$wordpress_url))
676
- {
677
- return get_option('page_on_front');
678
- }
679
-
680
- $parsed = parse_url($url);
681
- $url = $parsed['path'];
682
-
683
- $parts = explode('/',$url);
684
-
685
- $count = count($parts);
686
- $count = $count -1;
687
-
688
- if (empty($parts[$count]))
689
- {
690
- $i = $count-1;
691
- $slug = $parts[$i];
692
- }
693
- else
694
- {
695
- $slug = $parts[$count];
696
- }
697
-
698
- $my_id = $wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE post_name = '$slug' AND post_type='landing-page'");
699
-
700
- if ($my_id)
701
- {
702
- return $my_id;
703
- }
704
- else
705
- {
706
- return 0;
707
- }
708
- }
709
-
710
-
711
- /************** AB TESTING GLOBAL FUNCTIONS **********************/
712
-
713
-
714
- function lp_ab_key_to_letter($key) {
715
- $alphabet = array( 'A', 'B', 'C', 'D', 'E',
716
- 'F', 'G', 'H', 'I', 'J',
717
- 'K', 'L', 'M', 'N', 'O',
718
- 'P', 'Q', 'R', 'S', 'T',
719
- 'U', 'V', 'W', 'X', 'Y',
720
- 'Z'
721
- );
722
-
723
- if (isset($alphabet[$key]))
724
- return $alphabet[$key];
725
- }
726
-
727
-
728
- function lp_ab_testing_get_current_variation_id()
729
- {
730
- if (!isset($_GET['lp-variation-id'])&&isset($_SESSION['lp_ab_test_open_variation'])&&is_admin())
731
- {
732
- //$current_variation_id = $_SESSION['lp_ab_test_open_variation'];
733
- }
734
-
735
- if (!isset($_SESSION['lp_ab_test_open_variation'])&&!isset($_GET['lp-variation-id']))
736
- {
737
- $current_variation_id = 0;
738
- }
739
- //echo $_GET['lp-variation-id'];
740
- if (isset($_GET['lp-variation-id']))
741
- {
742
- $_SESSION['lp_ab_test_open_variation'] = $_GET['lp-variation-id'];
743
- $current_variation_id = $_GET['lp-variation-id'];
744
- //echo "setting session $current_variation_id";
745
- }
746
-
747
- if (isset($_GET['message'])&&$_GET['message']==1&&isset( $_SESSION['lp_ab_test_open_variation'] ))
748
- {
749
- $current_variation_id = $_SESSION['lp_ab_test_open_variation'];
750
-
751
- //echo "here:".$_SESSION['lp_ab_test_open_variation'];
752
- }
753
-
754
- if (isset($_GET['ab-action'])&&$_GET['ab-action']=='delete-variation')
755
- {
756
- $current_variation_id = 0;
757
- $_SESSION['lp_ab_test_open_variation'] = 0;
758
- }
759
-
760
- if (!isset($current_variation_id))
761
- $current_variation_id = 0 ;
762
-
763
- return $current_variation_id;
764
- }
765
-
766
- function lp_global_config()
767
- {
768
- do_action('lp_global_config');
769
- }
770
-
771
- function lp_init()
772
- {
773
- do_action('lp_init');
774
- }
775
-
776
- function lp_head()
777
- {
778
- do_action('lp_head');
779
- }
780
-
781
- function lp_footer()
782
- {
783
- do_action('lp_footer');
784
- }
785
-
786
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
images/index.php ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <?php
2
+ # Silence is golden.
index.php CHANGED
@@ -1,2 +1,2 @@
1
  <?php
2
- # Silence is golden.
1
  <?php
2
+ # Silence is golden.
js/admin/admin.post-edit.js CHANGED
@@ -1,7 +1,8 @@
1
  jQuery(document).ready(function ($) {
2
 
3
  jQuery('#templates-container').isotope();
4
-
 
5
  // filter items when filter link is clicked
6
  jQuery('#template-filter a').click(function(){
7
  var selector = jQuery(this).attr('data-filter');
@@ -30,16 +31,38 @@ jQuery(document).ready(function ($) {
30
  var which_editor = $.cookie("lp-edit-view-choice");
31
  if(which_editor === null){
32
  setTimeout(function() {
33
- jQuery("#content-tmce").click();
34
  //jQuery(".wp-switch-editor.switch-tmce").click();
35
  }, 1000);
36
 
37
  }
 
38
 
 
 
 
 
 
 
 
 
39
  if(which_editor === 'editor'){
40
  setTimeout(function() {
41
- jQuery("#content-tmce").click();
 
 
 
 
 
 
42
  //jQuery(".wp-switch-editor.switch-tmce").click();
 
 
 
 
 
 
 
43
  }, 1000);
44
  }
45
 
@@ -148,12 +171,8 @@ jQuery(document).ready(function ($) {
148
  $(window).resize( function() { tb_position() } );
149
  });
150
 
151
- // Isotope Styling
152
- jQuery('#template-filter a').first().addClass('button-primary');
153
- jQuery('#template-filter a').click(function(){
154
- jQuery("#template-filter a.button-primary").removeClass("button-primary");
155
- jQuery(this).addClass('button-primary');
156
- });
157
 
158
  jQuery('.lp_select_template').click(function(){
159
  var template = jQuery(this).attr('id');
@@ -239,51 +258,52 @@ jQuery(document).ready(function ($) {
239
  });
240
 
241
  // the_content default overwrite
242
- jQuery('#overwrite-content').click(function(){
243
  if (confirm('Are you sure you want to overwrite what is currently in the main edit box above?')) {
244
- var default_content = jQuery(".default-content").text();
245
- jQuery("#content_ifr").contents().find("body").html(default_content);
 
 
 
 
 
246
  }
247
  });
248
 
249
  // Colorpicker fix
250
- jQuery(document).on('mouseenter', '.jpicker', function (e) {
251
- if(jQuery(e.target).data('mouseovered')!='yes')
252
- {
253
-
254
- jQuery(this).jPicker({
255
- window: // used to define the position of the popup window only useful in binded mode
256
- {
257
- title: null, // any title for the jPicker window itself - displays "Drag Markers To Pick A Color" if left null
258
- position: {
259
- x: 'screenCenter', // acceptable values "left", "center", "right", "screenCenter", or relative px value
260
- y: 'center', // acceptable values "top", "bottom", "center", or relative px value
261
- },
262
- expandable: false, // default to large static picker - set to true to make an expandable picker (small icon with popup) - set
263
- // automatically when binded to input element
264
- liveUpdate: true, // set false if you want the user to click "OK" before the binded input box updates values (always "true"
265
- // for expandable picker)
266
- alphaSupport: false, // set to true to enable alpha picking
267
- alphaPrecision: 0, // set decimal precision for alpha percentage display - hex codes do not map directly to percentage
268
- // integers - range 0-2
269
- updateInputColor: true // set to false to prevent binded input colors from changing
270
- }
271
- },
272
- function(color, context)
273
- {
274
- var all = color.val('all');
275
- // alert('Color chosen - hex: ' + (all && '#' + all.hex || 'none') + ' - alpha: ' + (all && all.a + '%' || 'none'));
276
- //jQuery(this).attr('rel', all.hex);
277
- jQuery(this).parent().find(".lp-success-message").remove();
278
- jQuery(this).parent().find(".new-save-lp").show();
279
- jQuery(this).parent().find(".new-save-lp-frontend").show();
280
-
281
- //jQuery(this).attr('value', all.hex);
282
- });
283
- jQuery(e.target).data('mouseovered','yes');
284
- }
285
  });
286
 
 
287
  if (jQuery(".lp-template-selector-container").css("display") == "none"){
288
  jQuery(".currently_selected").hide(); }
289
  else {
@@ -318,26 +338,26 @@ jQuery(document).ready(function ($) {
318
  jQuery('#main-title-area').after(slugs.show());
319
  */
320
  // Background Options
321
- jQuery('.current_lander .background-style').live('change', function () {
322
- var input = jQuery(".current_lander .background-style option:selected").val();
323
  if (input == 'color') {
324
- jQuery('.current_lander tr.background-color').show();
325
- jQuery('.current_lander tr.background-image').hide();
326
  jQuery('.background_tip').hide();
327
  }
328
  else if (input == 'default') {
329
- jQuery('.current_lander tr.background-color').hide();
330
- jQuery('.current_lander tr.background-image').hide();
331
  jQuery('.background_tip').hide();
332
  }
333
  else if (input == 'custom') {
334
- var obj = jQuery(".current_lander tr.background-style td .lp_tooltip");
335
  obj.removeClass("lp_tooltip").addClass("background_tip").html("Use the custom css block at the bottom of this page to set up custom CSS rules");
336
  jQuery('.background_tip').show();
337
  }
338
  else {
339
- jQuery('.current_lander tr.background-color').hide();
340
- jQuery('.current_lander tr.background-image').show();
341
  jQuery('.background_tip').hide();
342
  }
343
 
@@ -345,21 +365,27 @@ jQuery(document).ready(function ($) {
345
 
346
  // Check BG options on page load
347
  jQuery(document).ready(function () {
348
- var input2 = jQuery(".current_lander .background-style option:selected").val();
349
- if (input2 == 'color') {
350
- jQuery('.current_lander tr.background-color').show();
351
- jQuery('.current_lander tr.background-image').hide();
352
- } else if (input2 == 'custom') {
353
- var obj = jQuery(".current_lander tr.background-style td .lp_tooltip");
354
- obj.removeClass("lp_tooltip").addClass("background_tip").html("Use the custom css block at the bottom of this page to set up custom CSS rules");
355
- jQuery('.background_tip').show();
356
- } else if (input2 == 'default') {
357
- jQuery('.current_lander tr.background-color').hide();
358
- jQuery('.current_lander tr.background-image').hide();
359
- } else {
360
- jQuery('.current_lander tr.background-color').hide();
361
- jQuery('.current_lander tr.background-image').show();
362
- }
 
 
 
 
 
 
363
  });
364
 
365
  //Stylize lead's wp-list-table
1
  jQuery(document).ready(function ($) {
2
 
3
  jQuery('#templates-container').isotope();
4
+ // Isotope Styling
5
+ jQuery('#template-filter li').first().addClass('button-primary');
6
  // filter items when filter link is clicked
7
  jQuery('#template-filter a').click(function(){
8
  var selector = jQuery(this).attr('data-filter');
31
  var which_editor = $.cookie("lp-edit-view-choice");
32
  if(which_editor === null){
33
  setTimeout(function() {
34
+ //jQuery("#content-tmce").click();
35
  //jQuery(".wp-switch-editor.switch-tmce").click();
36
  }, 1000);
37
 
38
  }
39
+ /*
40
 
41
+ var chtml= jQuery('#content-html');
42
+ var ctmce= jQuery('#content-tmce');
43
+ var c= jQuery('#content'); // textarea
44
+ var vismode= c.css('display')=='none';
45
+ switchEditors.switchto(chtml[0]); // switch to html
46
+ switchEditors.switchto(ctmce[0]); // switch to tinymce
47
+
48
+ */
49
  if(which_editor === 'editor'){
50
  setTimeout(function() {
51
+
52
+ var ctmce= jQuery('#content-tmce');
53
+ switchEditors.switchto(ctmce[0]); // switch to tinymce
54
+
55
+ var conversion_area = jQuery("#landing-page-myeditor-tmce");
56
+ switchEditors.switchto(conversion_area[0]); // switch to tinymce
57
+ //jQuery("#content-tmce").click();
58
  //jQuery(".wp-switch-editor.switch-tmce").click();
59
+ jQuery('.inbound-wysiwyg-option textarea').each(function(){
60
+ var chtml= "#" + jQuery(this).attr('id') + '-html';
61
+ var ctmce= "#" + jQuery(this).attr('id') + '-tmce';
62
+ var html_box = jQuery(chtml);
63
+ var tinymce_box = jQuery(ctmce);
64
+ switchEditors.switchto(tinymce_box[0]); // switch to tinymce
65
+ });
66
  }, 1000);
67
  }
68
 
171
  $(window).resize( function() { tb_position() } );
172
  });
173
 
174
+
175
+
 
 
 
 
176
 
177
  jQuery('.lp_select_template').click(function(){
178
  var template = jQuery(this).attr('id');
258
  });
259
 
260
  // the_content default overwrite
261
+ jQuery('body').on('click', '#overwrite-content', function(){
262
  if (confirm('Are you sure you want to overwrite what is currently in the main edit box above?')) {
263
+ var ctmce= jQuery('#content-tmce');
264
+ switchEditors.switchto(ctmce[0]); // switch to tinymce
265
+ setTimeout(function() {
266
+ var default_content = jQuery(".inbound-default-content-option textarea").first().text();
267
+ jQuery("#content_ifr").contents().find("body").html(default_content);
268
+ }, 500);
269
+
270
  }
271
  });
272
 
273
  // Colorpicker fix
274
+ jQuery('.jpicker').one('mouseenter', function () {
275
+ jQuery(this).jPicker({
276
+ window: // used to define the position of the popup window only useful in binded mode
277
+ {
278
+ title: null, // any title for the jPicker window itself - displays "Drag Markers To Pick A Color" if left null
279
+ position: {
280
+ x: 'screenCenter', // acceptable values "left", "center", "right", "screenCenter", or relative px value
281
+ y: 'center', // acceptable values "top", "bottom", "center", or relative px value
282
+ },
283
+ expandable: false, // default to large static picker - set to true to make an expandable picker (small icon with popup) - set
284
+ // automatically when binded to input element
285
+ liveUpdate: true, // set false if you want the user to click "OK" before the binded input box updates values (always "true"
286
+ // for expandable picker)
287
+ alphaSupport: false, // set to true to enable alpha picking
288
+ alphaPrecision: 0, // set decimal precision for alpha percentage display - hex codes do not map directly to percentage
289
+ // integers - range 0-2
290
+ updateInputColor: true // set to false to prevent binded input colors from changing
291
+ }
292
+ },
293
+ function(color, context)
294
+ {
295
+ var all = color.val('all');
296
+ // alert('Color chosen - hex: ' + (all && '#' + all.hex || 'none') + ' - alpha: ' + (all && all.a + '%' || 'none'));
297
+ //jQuery(this).attr('rel', all.hex);
298
+
299
+ jQuery(this).parent().find(".lp-success-message").remove();
300
+ jQuery(this).parent().find(".new-save-lp").show();
301
+ jQuery(this).parent().find(".new-save-lp-frontend").show();
302
+ //jQuery(this).attr('value', all.hex);
303
+ });
 
 
 
 
 
304
  });
305
 
306
+
307
  if (jQuery(".lp-template-selector-container").css("display") == "none"){
308
  jQuery(".currently_selected").hide(); }
309
  else {
338
  jQuery('#main-title-area').after(slugs.show());
339
  */
340
  // Background Options
341
+ jQuery('.background-style').on('change', function () {
342
+ var input = jQuery(".background-style option:selected").val();
343
  if (input == 'color') {
344
+ jQuery('.background-color').show();
345
+ jQuery('.background-image').hide();
346
  jQuery('.background_tip').hide();
347
  }
348
  else if (input == 'default') {
349
+ jQuery('.background-color').hide();
350
+ jQuery('.background-image').hide();
351
  jQuery('.background_tip').hide();
352
  }
353
  else if (input == 'custom') {
354
+ var obj = jQuery(".background-style .lp_tooltip");
355
  obj.removeClass("lp_tooltip").addClass("background_tip").html("Use the custom css block at the bottom of this page to set up custom CSS rules");
356
  jQuery('.background_tip').show();
357
  }
358
  else {
359
+ jQuery('.background-color').hide();
360
+ jQuery('.background-image').show();
361
  jQuery('.background_tip').hide();
362
  }
363
 
365
 
366
  // Check BG options on page load
367
  jQuery(document).ready(function () {
368
+ var input = jQuery(".background-style option:selected").val();
369
+ if (input == 'color') {
370
+ jQuery('.background-color').show();
371
+ jQuery('.background-image').hide();
372
+ jQuery('.background_tip').hide();
373
+ }
374
+ else if (input == 'default') {
375
+ jQuery('.background-color').hide();
376
+ jQuery('.background-image').hide();
377
+ jQuery('.background_tip').hide();
378
+ }
379
+ else if (input == 'custom') {
380
+ var obj = jQuery(".background-style .lp_tooltip");
381
+ obj.removeClass("lp_tooltip").addClass("background_tip").html("Use the custom css block at the bottom of this page to set up custom CSS rules");
382
+ jQuery('.background_tip').show();
383
+ }
384
+ else {
385
+ jQuery('.background-color').hide();
386
+ jQuery('.background-image').show();
387
+ jQuery('.background_tip').hide();
388
+ }
389
  });
390
 
391
  //Stylize lead's wp-list-table
js/admin/index.php ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <?php
2
+ # Silence is golden.
js/admin/tour/tour.post-edit.js CHANGED
@@ -1,10 +1,11 @@
1
- // Post Edit Screen Tour
2
  jQuery("#titlewrap").attr({"data-step": "1", "data-intro": 'This is the adminstrative title of your landing. <br>Visitors will not be able to see this. To edit this, simply click on the text.'});
3
  jQuery(".nav-tab-wrapper").attr({"data-step": "2", "data-intro": 'This controls the A/B testing functionality of the page.<br>You can toggle back and forth between varaitions or click the add new variation to start an A/B test.'});
4
  jQuery(".new-save-lp-frontend").attr({"data-step": "3", "data-intro": 'This lauches the frontend editor that will allow you to see live previews of your landing page variations and edit the settings on the same screen!'});
5
  jQuery(".lp-notes").attr({"data-step": "4", "data-intro": 'Add notes to each of your A/B test variations to keep track of what you are testing.'});
6
  jQuery("#main-title-area").attr({"data-step": "5", "data-intro": 'This is the main headline area of your landing page. Make sure your headlines are catchy and have a clear value proposition'});
7
- jQuery("#lp_ab_display_stats_metabox").attr({"data-step": "6", "data-intro": '<p>This is the main stats box for your landing page variations. Here you will find all of your page views, conversions, and conversion rate numbers.</p><p>A/B Variation controls are also available here.</p><p><strong>Pause:</strong> Paused the current variation from a/b testing</p><p><strong>Edit:</strong> Jump to edit screen of selected variation</p><p><strong>Preview:</strong> Pop open preview window</p><p><strong>Clone:</strong> Clones exact copy of landing page in a new varaition</p><p><strong>Delete:</strong> Deletes the varaition from landing page</p>'});
8
- jQuery("#wp-content-wrap").attr({"data-step": "7", "data-intro": 'This is the main content area of your landing page. Not every landing page template uses this field but most do.'});
9
- jQuery("#lp_2_form_content").attr({"data-step": "8", "data-intro": 'The Landing Page Form or Conversion Button area is where you insert your form or link for conversion tracking. This box will accept any shortcodes or html forms inserted.'});
 
10
  jQuery("#lp_metabox_select_template").attr({"data-step": "9", "data-intro": 'These are the main options that control the currently selected template.'});
1
+ // Post Edit Screen Tour
2
  jQuery("#titlewrap").attr({"data-step": "1", "data-intro": 'This is the adminstrative title of your landing. <br>Visitors will not be able to see this. To edit this, simply click on the text.'});
3
  jQuery(".nav-tab-wrapper").attr({"data-step": "2", "data-intro": 'This controls the A/B testing functionality of the page.<br>You can toggle back and forth between varaitions or click the add new variation to start an A/B test.'});
4
  jQuery(".new-save-lp-frontend").attr({"data-step": "3", "data-intro": 'This lauches the frontend editor that will allow you to see live previews of your landing page variations and edit the settings on the same screen!'});
5
  jQuery(".lp-notes").attr({"data-step": "4", "data-intro": 'Add notes to each of your A/B test variations to keep track of what you are testing.'});
6
  jQuery("#main-title-area").attr({"data-step": "5", "data-intro": 'This is the main headline area of your landing page. Make sure your headlines are catchy and have a clear value proposition'});
7
+ jQuery("#content_InboundShortcodesButton_action").attr({"data-step": "6", "data-intro": '<p>This is the inbound shortcode tool. You can use it to <strong>build forms</strong> and do a number of other cool things!</p>'});
8
+ jQuery("#lp_ab_display_stats_metabox").attr({"data-step": "7", "data-intro": '<p>This is the main stats box for your landing page variations. Here you will find all of your page views, conversions, and conversion rate numbers.</p><p>A/B Variation controls are also available here.</p><p><strong>Pause:</strong> Paused the current variation from a/b testing</p><p><strong>Edit:</strong> Jump to edit screen of selected variation</p><p><strong>Preview:</strong> Pop open preview window</p><p><strong>Clone:</strong> Clones exact copy of landing page in a new varaition</p><p><strong>Delete:</strong> Deletes the varaition from landing page</p>'});
9
+ jQuery("#wp-content-wrap").attr({"data-step": "8", "data-intro": 'This is the main content area of your landing page. Not every landing page template uses this field but most do.'});
10
+ jQuery("#lp_2_form_content").attr({"data-step": "9", "data-intro": 'The Landing Page Form or Conversion Button area is where you insert your form or link for conversion tracking. This box will accept any shortcodes or html forms inserted.'});
11
  jQuery("#lp_metabox_select_template").attr({"data-step": "9", "data-intro": 'These are the main options that control the currently selected template.'});
js/index.php ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <?php
2
+ # Silence is golden.
js/libraries/index.php ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <?php
2
+ # Silence is golden.
js/page_view_track.js CHANGED
@@ -1,4 +1,8 @@
1
  jQuery(document).ready(function($) {
 
 
 
 
2
  // Saves variation page views
3
  var variation_id = landing_path_info.variation;
4
  // Save page view count
@@ -9,10 +13,10 @@
9
  action: 'lp_record_impression',
10
  current_url: window.location.href,
11
  variation_id: variation_id
12
- // add date?
13
  },
14
  success: function(user_id){
15
- //console.log('LP Page View Fired');
16
  },
17
  error: function(MLHttpRequest, textStatus, errorThrown){
18
  //alert(MLHttpRequest+' '+errorThrown+' '+textStatus);
@@ -21,4 +25,4 @@
21
 
22
  });
23
 
24
- });
1
  jQuery(document).ready(function($) {
2
+
3
+ jQuery('form').each(function(){
4
+ jQuery(this).addClass('wpl-track-me');
5
+ });
6
  // Saves variation page views
7
  var variation_id = landing_path_info.variation;
8
  // Save page view count
13
  action: 'lp_record_impression',
14
  current_url: window.location.href,
15
  variation_id: variation_id
16
+ // add date?
17
  },
18
  success: function(user_id){
19
+ //console.log('LP Page View Fired');
20
  },
21
  error: function(MLHttpRequest, textStatus, errorThrown){
22
  //alert(MLHttpRequest+' '+errorThrown+' '+textStatus);
25
 
26
  });
27
 
28
+ });
js/wordpress/index.php ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <?php
2
+ # Silence is golden.
landing-pages.php CHANGED
@@ -3,12 +3,14 @@
3
  Plugin Name: Landing Pages
4
  Plugin URI: http://www.inboundnow.com/landing-pages/
5
  Description: The first true all-in-one Landing Page solution for WordPress, including ongoing conversion metrics, a/b split testing, unlimited design options and so much more!
6
- Version: 1.3.5
7
  Author: David Wells, Hudson Atwell
8
  Author URI: http://www.inboundnow.com/
 
 
9
  */
10
 
11
- define('LANDINGPAGES_CURRENT_VERSION', '1.3.5' );
12
  define('LANDINGPAGES_URLPATH', WP_PLUGIN_URL.'/'.plugin_basename( dirname(__FILE__) ).'/' );
13
  define('LANDINGPAGES_PATH', WP_PLUGIN_DIR.'/'.plugin_basename( dirname(__FILE__) ).'/' );
14
  define('LANDINGPAGES_PLUGIN_SLUG', 'landing-pages' );
@@ -17,7 +19,8 @@ define('LANDINGPAGES_STORE_URL', 'http://www.inboundnow.com/landing-pages/' );
17
  $uploads = wp_upload_dir();
18
  define('LANDINGPAGES_UPLOADS_PATH', $uploads['basedir'].'/landing-pages/templates/' );
19
  define('LANDINGPAGES_UPLOADS_URLPATH', $uploads['baseurl'].'/landing-pages/templates/' );
20
- $current_url = "http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]."";
 
21
 
22
  if (is_admin())
23
  if(!isset($_SESSION)){@session_start();}
@@ -29,6 +32,7 @@ switch (is_admin()) :
29
  /* loads admin files */
30
  include_once('modules/module.javascript-admin.php');
31
  include_once('modules/module.activate.php');
 
32
  include_once('modules/module.global-settings.php');
33
  include_once('modules/module.clone.php');
34
  include_once('modules/module.extension-updater.php');
@@ -84,4 +88,10 @@ function inbound_load_shared_landing_pages(){
84
  include_once('shared/classes/form.class.php'); // Mirrored forms
85
  include_once('shared/inboundnow/inboundnow.extension-licensing.php'); // Inboundnow Package Licensing
86
  include_once('shared/inboundnow/inboundnow.extension-updating.php'); // Inboundnow Package Updating
87
- }
 
 
 
 
 
 
3
  Plugin Name: Landing Pages
4
  Plugin URI: http://www.inboundnow.com/landing-pages/
5
  Description: The first true all-in-one Landing Page solution for WordPress, including ongoing conversion metrics, a/b split testing, unlimited design options and so much more!
6
+ Version: 1.3.7
7
  Author: David Wells, Hudson Atwell
8
  Author URI: http://www.inboundnow.com/
9
+ Text Domain: landing-page
10
+ Domain Path: shared/languages
11
  */
12
 
13
+ define('LANDINGPAGES_CURRENT_VERSION', '1.3.7' );
14
  define('LANDINGPAGES_URLPATH', WP_PLUGIN_URL.'/'.plugin_basename( dirname(__FILE__) ).'/' );
15
  define('LANDINGPAGES_PATH', WP_PLUGIN_DIR.'/'.plugin_basename( dirname(__FILE__) ).'/' );
16
  define('LANDINGPAGES_PLUGIN_SLUG', 'landing-pages' );
19
  $uploads = wp_upload_dir();
20
  define('LANDINGPAGES_UPLOADS_PATH', $uploads['basedir'].'/landing-pages/templates/' );
21
  define('LANDINGPAGES_UPLOADS_URLPATH', $uploads['baseurl'].'/landing-pages/templates/' );
22
+ define('LANDINGPAGES_TEXT_DOMAIN', 'landing-pages' );
23
+
24
 
25
  if (is_admin())
26
  if(!isset($_SESSION)){@session_start();}
32
  /* loads admin files */
33
  include_once('modules/module.javascript-admin.php');
34
  include_once('modules/module.activate.php');
35
+ include_once('modules/module.language-support.php');
36
  include_once('modules/module.global-settings.php');
37
  include_once('modules/module.clone.php');
38
  include_once('modules/module.extension-updater.php');
88
  include_once('shared/classes/form.class.php'); // Mirrored forms
89
  include_once('shared/inboundnow/inboundnow.extension-licensing.php'); // Inboundnow Package Licensing
90
  include_once('shared/inboundnow/inboundnow.extension-updating.php'); // Inboundnow Package Updating
91
+ }
92
+
93
+ /* lagacy - Conditional check LP active */
94
+ function lp_check_active()
95
+ {
96
+ return 1;
97
+ }
libraries/index.php ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <?php
2
+ # Silence is golden.
libraries/shareme/index.php ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <?php
2
+ # Silence is golden.
libraries/shareme/sharrre/index.php ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <?php
2
+ # Silence is golden.
modules/index.php ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <?php
2
+ # Silence is golden.
modules/module.ab-testing.metaboxes.php CHANGED
@@ -5,7 +5,7 @@ function lp_ab_display_stats_metabox() {
5
 
6
  add_meta_box(
7
  'lp_ab_display_stats_metabox',
8
- __( 'A/B Testing', 'bab' ),
9
  'lp_ab_stats_metabox',
10
  'landing-page' ,
11
  'side',
@@ -100,41 +100,41 @@ function lp_ab_stats_metabox() {
100
 
101
  <div id="lp-variation-<?php echo lp_ab_key_to_letter($key); ?>" class="bab-variation-row <?php echo $variation_status_class;?>" >
102
  <div class='bab-varation-header'>
103
- <span class='bab-variation-name'>Variation <span class='bab-stat-letter'><?php echo lp_ab_key_to_letter($vid); ?></span>
104
  <?php
105
  if($variation_status!=1)
106
  {
107
  ?>
108
- <span class='is-paused'>(Paused)</span>
109
  <?php
110
  }
111
  ?>
112
  </span>
113
 
114
 
115
- <span class="lp-delete-var-stats" data-letter='<?php echo lp_ab_key_to_letter($vid); ?>' data-vid='<?php echo $vid; ?>' rel='<?php echo $post->ID;?>' title="Delete this variations stats">Clear Stats</span>
116
  </div>
117
  <div class="bab-stat-row">
118
  <div class='bab-stat-stats' colspan='2'>
119
  <div class='bab-stat-container-impressions bab-number-box'>
120
  <span class='bab-stat-span-impressions'><?php echo $impressions; ?></span>
121
- <span class="bab-stat-id">Views</span>
122
  </div>
123
  <div class='bab-stat-container-conversions bab-number-box'>
124
  <span class='bab-stat-span-conversions'><?php echo $conversions; ?></span>
125
- <span class="bab-stat-id">Conversions</span></span>
126
  </div>
127
  <div class='bab-stat-container-conversion_rate bab-number-box'>
128
  <span class='bab-stat-span-conversion_rate'><?php echo $conversion_rate; ?></span>
129
- <span class="bab-stat-id bab-rate">Conversion Rate</span>
130
  </div>
131
  <div class='bab-stat-control-container'>
132
- <span class='bab-stat-control-pause'><a title="Pause this variation" href='?post=<?php echo $post->ID; ?>&action=edit&lp-variation-id=<?php echo $vid; ?>&ab-action=pause-variation'>Pause</a></span> <span class='bab-stat-seperator pause-sep'>|</span>
133
- <span class='bab-stat-control-play'><a title="Turn this variation on" href='?post=<?php echo $post->ID; ?>&action=edit&lp-variation-id=<?php echo $vid; ?>&ab-action=play-variation'>Play</a></span> <span class='bab-stat-seperator play-sep'>|</span>
134
- <span class='bab-stat-menu-edit'><a title="Edit this variation" href='?post=<?php echo $post->ID; ?>&action=edit&lp-variation-id=<?php echo $vid; ?>'>Edit</a></span> <span class='bab-stat-seperator'>|</span>
135
- <span class='bab-stat-menu-preview'><a title="Preview this variation" class='thickbox' href='<?php echo $permalink; ?>&iframe_window=on&post_id=<?php echo $post->ID;?>&TB_iframe=true&width=1503&height=467' target='_blank'>Preview</a></span> <span class='bab-stat-seperator'>|</span>
136
- <span class='bab-stat-menu-clone'><a title="Clone this variation" href='?post=<?php echo $post->ID; ?>&action=edit&new-variation=1&clone=<?php echo $vid; ?>&new_meta_key=<?php echo $howmany; ?>'>Clone</a></span> <span class='bab-stat-seperator'>|</span>
137
- <span class='bab-stat-control-delete'><a title="Delete this variation" href='?post=<?php echo $post->ID; ?>&action=edit&lp-variation-id=<?php echo $vid; ?>&ab-action=delete-variation'>Delete</a></span>
138
  </div>
139
  </div>
140
  </div>
@@ -193,7 +193,7 @@ function lp_ab_testing_add_tabs()
193
  }
194
 
195
  echo '<h2 class="nav-tab-wrapper a_b_tabs">';
196
- echo '<a href="?post='.$post->ID.'&lp-variation-id=0&action=edit" class="lp-ab-tab nav-tab nav-tab-special-'.$first_class.'" id="tabs-0">A</a>';
197
 
198
  $var_id_marker = 1;
199
 
@@ -214,25 +214,25 @@ function lp_ab_testing_add_tabs()
214
  {
215
  $cur_class = 'inactive';
216
  }
217
- echo '<a href="?post='.$post->ID.'&lp-variation-id='.$vid.'&action=edit" class="lp-nav-tab nav-tab nav-tab-special-'.$cur_class.'" id="tabs-add-variation">'.$letter.'</a>';
218
 
219
  }
220
  }
221
 
222
  if (!isset($_GET['new-variation']))
223
  {
224
- echo '<a href="?post='.$post->ID.'&lp-variation-id='.$new_variation_id.'&action=edit&new-variation=1" class="lp-nav-tab nav-tab nav-tab-special-inactive nav-tab-add-new-variation" id="tabs-add-variation">Add New Variation</a>';
225
  }
226
  else
227
  {
228
  $variation_count = count($array_variations);
229
  $letter = lp_ab_key_to_letter($variation_count);
230
- echo '<a href="?post='.$post->ID.'&lp-variation-id='.$new_variation_id.'&action=edit" class="lp-nav-tab nav-tab nav-tab-special-active" id="tabs-add-variation">'.$letter.'</a>';
231
  }
232
  $edit_link = (isset($_GET['lp-variation-id'])) ? '?lp-variation-id='.$_GET['lp-variation-id'].'' : '?lp-variation-id=0';
233
  $post_link = get_permalink($post->ID);
234
  $post_link = preg_replace('/\?.*/', '', $post_link);
235
- echo "<a rel='".$post_link."' id='launch-visual-editer' class='button-primary new-save-lp-frontend' href='$post_link$edit_link&template-customize=on'>Launch Visual Editor</a>";
236
  echo '</h2>';
237
  }
238
 
5
 
6
  add_meta_box(
7
  'lp_ab_display_stats_metabox',
8
+ __( 'A/B Testing', LANDINGPAGES_TEXT_DOMAIN),
9
  'lp_ab_stats_metabox',
10
  'landing-page' ,
11
  'side',
100
 
101
  <div id="lp-variation-<?php echo lp_ab_key_to_letter($key); ?>" class="bab-variation-row <?php echo $variation_status_class;?>" >
102
  <div class='bab-varation-header'>
103
+ <span class='bab-variation-name'><?php _e('Variation', LANDINGPAGES_TEXT_DOMAIN); ?> <span class='bab-stat-letter'><?php _e(lp_ab_key_to_letter($vid), LANDINGPAGES_TEXT_DOMAIN); ?></span>
104
  <?php
105
  if($variation_status!=1)
106
  {
107
  ?>
108
+ <span class='is-paused'>(<?php _e('Paused', LANDINGPAGES_TEXT_DOMAIN) ?>)</span>
109
  <?php
110
  }
111
  ?>
112
  </span>
113
 
114
 
115
+ <span class="lp-delete-var-stats" data-letter='<?php echo lp_ab_key_to_letter($vid); ?>' data-vid='<?php echo $vid; ?>' rel='<?php echo $post->ID;?>' title="<?php _e('Delete this variations stats' , LANDINGPAGES_TEXT_DOMAIN); ?>"><?php _e('Clear Stats' , LANDINGPAGES_TEXT_DOMAIN); ?></span>
116
  </div>
117
  <div class="bab-stat-row">
118
  <div class='bab-stat-stats' colspan='2'>
119
  <div class='bab-stat-container-impressions bab-number-box'>
120
  <span class='bab-stat-span-impressions'><?php echo $impressions; ?></span>
121
+ <span class="bab-stat-id"><?php _e( 'Views' , LANDINGPAGES_TEXT_DOMAIN); ?> </span>
122
  </div>
123
  <div class='bab-stat-container-conversions bab-number-box'>
124
  <span class='bab-stat-span-conversions'><?php echo $conversions; ?></span>
125
+ <span class="bab-stat-id"><?php _e('Conversions' , LANDINGPAGES_TEXT_DOMAIN); ?></span></span>
126
  </div>
127
  <div class='bab-stat-container-conversion_rate bab-number-box'>
128
  <span class='bab-stat-span-conversion_rate'><?php echo $conversion_rate; ?></span>
129
+ <span class="bab-stat-id bab-rate"><?php _e('Conversion Rate' , LANDINGPAGES_TEXT_DOMAIN); ?></span>
130
  </div>
131
  <div class='bab-stat-control-container'>
132
+ <span class='bab-stat-control-pause'><a title="<?php _e('Pause this variation' , LANDINGPAGES_TEXT_DOMAIN); ?>" href='?post=<?php echo $post->ID; ?>&action=edit&lp-variation-id=<?php echo $vid; ?>&ab-action=pause-variation'><?php _e('Pause' , LANDINGPAGES_TEXT_DOMAIN); ?></a></span> <span class='bab-stat-seperator pause-sep'>|</span>
133
+ <span class='bab-stat-control-play'><a title="<?php _e('Turn this variation on' , LANDINGPAGES_TEXT_DOMAIN); ?>" href='?post=<?php echo $post->ID; ?>&action=edit&lp-variation-id=<?php echo $vid; ?>&ab-action=play-variation'><?php _e('Play' , LANDINGPAGES_TEXT_DOMAIN); ?></a></span> <span class='bab-stat-seperator play-sep'>|</span>
134
+ <span class='bab-stat-menu-edit'><a title="<?php _e('Edit this variation' , LANDINGPAGES_TEXT_DOMAIN); ?>" href='?post=<?php echo $post->ID; ?>&action=edit&lp-variation-id=<?php echo $vid; ?>'><?php _e('Edit' , LANDINGPAGES_TEXT_DOMAIN); ?></a></span> <span class='bab-stat-seperator'>|</span>
135
+ <span class='bab-stat-menu-preview'><a title="<?php _e('Preview this variation' , LANDINGPAGES_TEXT_DOMAIN); ?>" class='thickbox' href='<?php echo $permalink; ?>&iframe_window=on&post_id=<?php echo $post->ID;?>&TB_iframe=true&width=1503&height=467' target='_blank'><?php _e('Preview' , LANDINGPAGES_TEXT_DOMAIN); ?></a></span> <span class='bab-stat-seperator'>|</span>
136
+ <span class='bab-stat-menu-clone'><a title="<?php _e('Clone this variation' , LANDINGPAGES_TEXT_DOMAIN); ?>" href='?post=<?php echo $post->ID; ?>&action=edit&new-variation=1&clone=<?php echo $vid; ?>&new_meta_key=<?php echo $howmany; ?>'><?php _e('Clone' , LANDINGPAGES_TEXT_DOMAIN); ?></a></span> <span class='bab-stat-seperator'>|</span>
137
+ <span class='bab-stat-control-delete'><a title="<?php _e('Delete this variation' , LANDINGPAGES_TEXT_DOMAIN); ?>" href='?post=<?php echo $post->ID; ?>&action=edit&lp-variation-id=<?php echo $vid; ?>&ab-action=delete-variation'><?php _e('Delete' , LANDINGPAGES_TEXT_DOMAIN); ?></a></span>
138
  </div>
139
  </div>
140
  </div>
193
  }
194
 
195
  echo '<h2 class="nav-tab-wrapper a_b_tabs">';
196
+ echo '<a href="?post='.$post->ID.'&lp-variation-id=0&action=edit" class="lp-ab-tab nav-tab nav-tab-special-'.$first_class.'" id="tabs-0">'.__("A",LANDINGPAGES_TEXT_DOMAIN).'</a>';
197
 
198
  $var_id_marker = 1;
199
 
214
  {
215
  $cur_class = 'inactive';
216
  }
217
+ echo '<a href="?post='.$post->ID.'&lp-variation-id='.$vid.'&action=edit" class="lp-nav-tab nav-tab nav-tab-special-'.$cur_class.'" id="tabs-add-variation">'.__($letter , LANDINGPAGES_TEXT_DOMAIN) .'</a>';
218
 
219
  }
220
  }
221
 
222
  if (!isset($_GET['new-variation']))
223
  {
224
+ echo '<a href="?post='.$post->ID.'&lp-variation-id='.$new_variation_id.'&action=edit&new-variation=1" class="lp-nav-tab nav-tab nav-tab-special-inactive nav-tab-add-new-variation" id="tabs-add-variation">'.__('Add New Variation' , LANDINGPAGES_TEXT_DOMAIN).'</a>';
225
  }
226
  else
227
  {
228
  $variation_count = count($array_variations);
229
  $letter = lp_ab_key_to_letter($variation_count);
230
+ echo '<a href="?post='.$post->ID.'&lp-variation-id='.$new_variation_id.'&action=edit" class="lp-nav-tab nav-tab nav-tab-special-active" id="tabs-add-variation">'.__($letter , LANDINGPAGES_TEXT_DOMAIN).'</a>';
231
  }
232
  $edit_link = (isset($_GET['lp-variation-id'])) ? '?lp-variation-id='.$_GET['lp-variation-id'].'' : '?lp-variation-id=0';
233
  $post_link = get_permalink($post->ID);
234
  $post_link = preg_replace('/\?.*/', '', $post_link);
235
+ echo "<a rel='".$post_link."' id='launch-visual-editer' class='button-primary new-save-lp-frontend' href='$post_link$edit_link&template-customize=on'>".__('Launch Visual Editor' , LANDINGPAGES_TEXT_DOMAIN)."</a>";
236
  echo '</h2>';
237
  }
238
 
modules/module.ab-testing.php CHANGED
@@ -16,15 +16,15 @@ if (is_admin())
16
  if(($key = array_search($vid, $variations)) !== false) {
17
  unset($variations[$key]);
18
  }
19
-
20
  return $variations;
21
  }
22
-
23
  /**
24
  * [lp_ab_get_lp_active_status returns if landing page is in rotation or not]
25
  * @param [OBJ] $post [description]
26
  * @param [INT] $vid [description]
27
- * @return [INT]
28
  */
29
  function lp_ab_get_lp_active_status($post,$vid=null)
30
  {
@@ -36,18 +36,18 @@ if (is_admin())
36
  {
37
  $variation_status = get_post_meta( $post->ID , 'lp_ab_variation_status-'.$vid , true);
38
  }
39
-
40
  if (!is_numeric($variation_status))
41
  {
42
  return 1;
43
  }
44
  else
45
- {
46
  return $variation_status;
47
  }
48
  }
49
 
50
-
51
  add_action('init','lp_ab_testing_admin_init');
52
  function lp_ab_testing_admin_init($hook)
53
  {
@@ -906,10 +906,10 @@ add_filter('get_the_title','lp_ab_testing_alter_title_area', 10, 2);
906
  function lp_ab_testing_alter_title_area( $content , $id = null)
907
  {
908
  global $post;
909
-
910
  if (!isset($post))
911
  return $content;
912
-
913
  if ( ( $post->post_type!='landing-page'||is_admin()) || $id != $post->ID)
914
  return $content;
915
 
@@ -939,26 +939,4 @@ function lp_ab_testing_customizer_enqueue($post)
939
  wp_enqueue_script( 'lp_ab_testing_customizer_js', LANDINGPAGES_URLPATH . 'js/customizer.ab-testing.js', array( 'jquery' ) );
940
  wp_localize_script( 'lp_ab_testing_customizer_js', 'ab_customizer', array( 'lp_id' => $post->ID ,'permalink' => $permalink , 'randomstring' => $randomstring));
941
  wp_enqueue_style('lp_ab_testing_customizer_css', LANDINGPAGES_URLPATH . 'css/customizer-ab-testing.css');
942
- }
943
-
944
- add_action('lp_frontend_editor_screen_pre','ab_testing_frontend_editor_screen_pre');
945
- function ab_testing_frontend_editor_screen_pre($post)
946
- {
947
- $lp_variation = (isset($_GET['lp-variation-id'])) ? $_GET['lp-variation-id'] : '0';
948
- $letter = lp_ab_key_to_letter($lp_variation);
949
- echo '<div id="current_variation_id">'.$lp_variation.'</div>';
950
- ?>
951
- <script type='text/javascript'>
952
- jQuery(document).ready(function ($) {
953
- //append letter
954
- var letterexists = jQuery(".variation-letter-top").length;
955
- console.log(letterexists);
956
- if (letterexists === 0){
957
- jQuery('#lp-frontend-options-container h1:first').prepend('<span class="variation-letter-top"><?php echo $letter; ?></span>');
958
- }
959
- });
960
- </script>
961
- <?php
962
- }
963
-
964
- ?>
16
  if(($key = array_search($vid, $variations)) !== false) {
17
  unset($variations[$key]);
18
  }
19
+
20
  return $variations;
21
  }
22
+
23
  /**
24
  * [lp_ab_get_lp_active_status returns if landing page is in rotation or not]
25
  * @param [OBJ] $post [description]
26
  * @param [INT] $vid [description]
27
+ * @return [INT]
28
  */
29
  function lp_ab_get_lp_active_status($post,$vid=null)
30
  {
36
  {
37
  $variation_status = get_post_meta( $post->ID , 'lp_ab_variation_status-'.$vid , true);
38
  }
39
+
40
  if (!is_numeric($variation_status))
41
  {
42
  return 1;
43
  }
44
  else
45
+ {
46
  return $variation_status;
47
  }
48
  }
49
 
50
+
51
  add_action('init','lp_ab_testing_admin_init');
52
  function lp_ab_testing_admin_init($hook)
53
  {
906
  function lp_ab_testing_alter_title_area( $content , $id = null)
907
  {
908
  global $post;
909
+
910
  if (!isset($post))
911
  return $content;
912
+
913
  if ( ( $post->post_type!='landing-page'||is_admin()) || $id != $post->ID)
914
  return $content;
915
 
939
  wp_enqueue_script( 'lp_ab_testing_customizer_js', LANDINGPAGES_URLPATH . 'js/customizer.ab-testing.js', array( 'jquery' ) );
940
  wp_localize_script( 'lp_ab_testing_customizer_js', 'ab_customizer', array( 'lp_id' => $post->ID ,'permalink' => $permalink , 'randomstring' => $randomstring));
941
  wp_enqueue_style('lp_ab_testing_customizer_css', LANDINGPAGES_URLPATH . 'css/customizer-ab-testing.css');
942
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
modules/module.activate.php CHANGED
@@ -4,52 +4,135 @@
4
  // REGISTER LANDING PAGES ACTIVATION
5
  register_activation_hook( LANDINGPAGES_FILE , 'landing_page_activate');
6
 
7
- function landing_page_activate($wp = '3.6', $php = '5.2.4', $cta = '1.1.1', $leads = '1.1.1')
8
  {
9
  global $wp_version;
10
- if ( version_compare( PHP_VERSION, $php, '<' ) ) {
 
11
  $flag = 'PHP';
12
  $version = 'PHP' == $flag ? $php : $wp;
13
- wp_die('<p>The <strong>WordPress Landing Pages</strong> plugin requires'.$flag.' version '.$php.' or greater.</p>','Plugin Activation Error', array( 'response'=>200, 'back_link'=>TRUE ) );
14
  deactivate_plugins( basename( __FILE__ ) );
15
- } elseif ( version_compare( $wp_version, $wp, '<' ) ) {
 
 
16
  $flag = 'WordPress';
17
- wp_die('<p>The <strong>WordPress Landing Pages</strong> plugin requires'.$flag.' version '.$wp.' or greater.</p>','Plugin Activation Error', array( 'response'=>200, 'back_link'=>TRUE ) );
18
  deactivate_plugins( basename( __FILE__ ) );
19
- } elseif (defined('WP_CTA_CURRENT_VERSION') && version_compare( WP_CTA_CURRENT_VERSION, $cta, '<' )){
20
- $flag = 'WordPress Calls to Action';
21
- wp_die('<p>The <strong>WordPress Landing Pages</strong> plugin requires '.$flag.' version '.$cta.' or greater. <br><br>Please Update WordPress Call to Action Plugin to update WordPress Landing Pages</p>','Plugin Activation Error', array( 'response'=>200, 'back_link'=>TRUE ) );
22
- } elseif (defined('LEADS_CURRENT_VERSION') && version_compare( LEADS_CURRENT_VERSION, $leads, '<' )){
 
 
 
 
23
  $flag = 'WordPress Leads';
24
- wp_die('<p>The <strong>WordPress Landing Pages</strong> plugin requires '.$flag.' version '.$leads.' or greater. <br><br>Please Update WordPress Leads Plugin to update WordPress Landing Pages</p>','Plugin Activation Error', array( 'response'=>200, 'back_link'=>TRUE ) );
25
- } else {
26
- // Activate Plugin
27
- // Add Upgraded From Option
28
- $current_version = get_option( 'landing_page_version' );
29
- if ( $current_version ) {
30
- update_option( 'lp_version_upgraded_from', $current_version );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  }
32
- add_option( 'lp_global_css', '', '', 'no' );
33
- add_option( 'lp_global_js', '', '', 'no' );
34
- add_option( 'lp_global_lp_slug', 'go', '', 'no' );
35
- update_option( 'lp_activate_rewrite_check', '1');
36
- update_option( 'landing_page_version', LANDINGPAGES_CURRENT_VERSION );
37
- set_transient( '_landing_page_activation_redirect', true, 30 );
38
- //global $wp_rewrite;
39
- //$wp_rewrite->flush_rules();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  }
 
 
 
 
41
  }
42
 
 
 
43
  register_deactivation_hook( LANDINGPAGES_FILE , 'landing_page_deactivate');
44
 
45
  function landing_page_deactivate()
46
  {
47
  global $wp_rewrite;
48
  $wp_rewrite->flush_rules();
49
- }
50
-
51
- /* LEGACY CALLBACK TO CHECK IF LANDING PAGE PLUGIN EXISTS */
52
- function lp_check_active()
53
- {
54
- return 1;
55
  }
4
  // REGISTER LANDING PAGES ACTIVATION
5
  register_activation_hook( LANDINGPAGES_FILE , 'landing_page_activate');
6
 
7
+ function landing_page_activate($wp = '3.6', $php = '5.3', $cta = '1.2.1', $leads = '1.2.1')
8
  {
9
  global $wp_version;
10
+ if ( version_compare( phpversion(), $php, '<' ) )
11
+ {
12
  $flag = 'PHP';
13
  $version = 'PHP' == $flag ? $php : $wp;
14
+ wp_die( __('<p>The <strong>WordPress Landing Pages</strong> plugin requires'.$flag.' version '.$php.' or greater.</p>' , LANDINGPAGES_TEXT_DOMAIN) , __( 'Plugin Activation Error' , LANDINGPAGES_TEXT_DOMAIN) , array( 'response'=>200, 'back_link'=>TRUE ) );
15
  deactivate_plugins( basename( __FILE__ ) );
16
+ }
17
+ elseif ( version_compare( $wp_version, $wp, '<' ) )
18
+ {
19
  $flag = 'WordPress';
20
+ wp_die( __('<p>The <strong>WordPress Landing Pages</strong> plugin requires'.$flag.' version '.$wp.' or greater.</p>' , LANDINGPAGES_TEXT_DOMAIN), __('Plugin Activation Error' , LANDINGPAGES_TEXT_DOMAIN), array( 'response'=>200, 'back_link'=>TRUE ) );
21
  deactivate_plugins( basename( __FILE__ ) );
22
+ }
23
+ elseif (defined('WP_CTA_CURRENT_VERSION') && version_compare( WP_CTA_CURRENT_VERSION, $cta, '<' ))
24
+ {
25
+ $flag = __('WordPress Calls to Action' , LANDINGPAGES_TEXT_DOMAIN);
26
+ wp_die( __('<p>The <strong>WordPress Landing Pages</strong> plugin requires '.$flag.' version '.$cta.' or greater. <br><br>Please Update WordPress Call to Action Plugin to update & install WordPress Landing Pages</p>' , LANDINGPAGES_TEXT_DOMAIN) , __('Plugin Activation Error' , LANDINGPAGES_TEXT_DOMAIN) , array( 'response'=>200, 'back_link'=>TRUE ) );
27
+ }
28
+ elseif (defined('LEADS_CURRENT_VERSION') && version_compare( LEADS_CURRENT_VERSION, $leads, '<' ))
29
+ {
30
  $flag = 'WordPress Leads';
31
+ wp_die( __('<p>The <strong>WordPress Landing Pages</strong> plugin requires '.$flag.' version '.$leads.' or greater. <br><br>Please Update WordPress Leads Plugin to update & install WordPress Landing Pages</p>' , INBOUDNOW_LABEL ) , __( 'Plugin Activation Error' , LANDINGPAGES_TEXT_DOMAIN) , array( 'response'=>200, 'back_link'=>TRUE ) );
32
+ }
33
+ else
34
+ {
35
+ // Activate Plugin
36
+ // Add Upgraded From Option
37
+ $current_version = get_option( 'landing_page_version' );
38
+
39
+ if ( $current_version )
40
+ update_option( 'lp_version_upgraded_from', $current_version );
41
+
42
+ add_option( 'lp_global_css', '', '', 'no' );
43
+ add_option( 'lp_global_js', '', '', 'no' );
44
+ add_option( 'lp_global_lp_slug', 'go', '', 'no' );
45
+ update_option( 'lp_activate_rewrite_check', '1');
46
+ update_option( 'landing_page_version', LANDINGPAGES_CURRENT_VERSION );
47
+ set_transient( '_landing_page_activation_redirect', true, 30 );
48
+ //global $wp_rewrite;
49
+ //$wp_rewrite->flush_rules();
50
+ }
51
+
52
+ do_action('lp_activate_update_db');
53
+ }
54
+
55
+ /* DB & FILESTRUCTURE MODIFIFCATION ACTIONS */
56
+ add_action('lp_activate_update_db', 'landing_pages_migrate_depreciated_templates');
57
+ function landing_pages_migrate_depreciated_templates()
58
+ {
59
+ /* move copy of legacy core templates to the uploads folder and delete from core templates directory */
60
+ $templates_to_move = array('rsvp-envelope','super-slick');
61
+ chmod(LANDINGPAGES_UPLOADS_PATH, 0755);
62
+
63
+ $template_paths = lp_get_core_template_paths();
64
+ if (count($template_paths)>0)
65
+ {
66
+ foreach ($template_paths as $name)
67
+ {
68
+ if (in_array( $name, $templates_to_move ))
69
+ {
70
+ $old_path = LANDINGPAGES_PATH."templates/$name/";
71
+ $new_path = LANDINGPAGES_UPLOADS_PATH."$name/";
72
+
73
+ /*
74
+ echo "oldpath: $old_path<br>";
75
+ echo "newpath: $new_path<br>";
76
+ */
77
+
78
+ @mkdir($new_path , 0775);
79
+ chmod($old_path , 0775);
80
+
81
+ lp_move_template_files( $old_path , $new_path );
82
+
83
+ rmdir($old_path);
84
+ }
85
+ }
86
  }
87
+ }
88
+
89
+ function lp_move_template_files( $old_path , $new_path )
90
+ {
91
+
92
+ $files = scandir($old_path);
93
+
94
+ if (!$files)
95
+ return;
96
+
97
+ foreach ($files as $file) {
98
+ if (in_array($file, array(".",".."))) continue;
99
+
100
+ if ($file==".DS_Store")
101
+ {
102
+ unlink($old_path.$file);
103
+ continue;
104
+ }
105
+
106
+ if (is_dir($old_path.$file))
107
+ {
108
+ @mkdir($new_path.$file.'/' , 0775);
109
+ chmod($old_path.$file.'/' , 0775);
110
+ lp_move_template_files( $old_path.$file.'/' , $new_path.$file.'/' );
111
+ rmdir($old_path.$file);
112
+ continue;
113
+ }
114
+
115
+ /*
116
+ echo "oldfile:".$old_path.$file."<br>";
117
+ echo "newfile:".$new_path.$file."<br>";
118
+ */
119
+
120
+ if (copy($old_path.$file, $new_path.$file)) {
121
+ unlink($old_path.$file);
122
+ }
123
  }
124
+
125
+ if (!$delete)
126
+ return;
127
+
128
  }
129
 
130
+
131
+ /* DEACTIVATION FUNCTIONS */
132
  register_deactivation_hook( LANDINGPAGES_FILE , 'landing_page_deactivate');
133
 
134
  function landing_page_deactivate()
135
  {
136
  global $wp_rewrite;
137
  $wp_rewrite->flush_rules();
 
 
 
 
 
 
138
  }
modules/module.admin-menus.php CHANGED
@@ -9,17 +9,13 @@ function lp_add_menu()
9
  if (current_user_can('manage_options'))
10
  {
11
 
12
- add_submenu_page('edit.php?post_type=landing-page', 'Forms', 'Create Forms', 'manage_options', 'inbound-forms-redirect',100);
13
 
14
- add_submenu_page('edit.php?post_type=landing-page', 'Templates', 'Manage Templates', 'manage_options', 'lp_manage_templates','lp_manage_templates',100);
15
 
16
- add_submenu_page('edit.php?post_type=landing-page', 'Get Addons', 'Get Addons', 'manage_options', 'lp_store','lp_store_display',100);
17
 
18
- add_submenu_page('edit.php?post_type=landing-page', 'Global Settings', 'Global Settings', 'manage_options', 'lp_global_settings','lp_display_global_settings');
19
-
20
- // Add settings page for frontend editor
21
- add_submenu_page('edit.php?post_type=landing-page', __('Editor','Editor'), __('Editor','Editor'), 'manage_options', 'lp-frontend-editor', 'lp_frontend_editor_screen');
22
 
23
  }
24
  }
25
-
9
  if (current_user_can('manage_options'))
10
  {
11
 
12
+ add_submenu_page('edit.php?post_type=landing-page', __('Forms' , LANDINGPAGES_TEXT_DOMAIN), __('Create Forms' , LANDINGPAGES_TEXT_DOMAIN), 'manage_options', 'inbound-forms-redirect',100);
13
 
14
+ add_submenu_page('edit.php?post_type=landing-page',__('Templates' , LANDINGPAGES_TEXT_DOMAIN), __('Manage Templates' , LANDINGPAGES_TEXT_DOMAIN), 'manage_options', 'lp_manage_templates','lp_manage_templates',100);
15
 
16
+ add_submenu_page('edit.php?post_type=landing-page', __('Get Addons' , LANDINGPAGES_TEXT_DOMAIN), __('Get Addons' , LANDINGPAGES_TEXT_DOMAIN), 'manage_options', 'lp_store','lp_store_display',100);
17
 
18
+ add_submenu_page('edit.php?post_type=landing-page', __('Global Settings' , LANDINGPAGES_TEXT_DOMAIN), __('Global Settings' , LANDINGPAGES_TEXT_DOMAIN), 'manage_options', 'lp_global_settings','lp_display_global_settings');
 
 
 
19
 
20
  }
21
  }
 
modules/module.ajax-setup.php CHANGED
@@ -1 +1 @@
1
- <?php
2
  * Adds Ajax for Clear Stats button
3
  * clear stats for all variations
4
  */
5
  * Adds Ajax for Clear Stats button
6
  * clear stats for single variations
7
  */
8
  * Click tracking moved to module.click-tracking.php
9
  * Adds ajax to record landing page impressions
10
  * future plans to integrate with google analytics
11
  * Adds Ajax Template Selection
12
  * @return prints out landing page meta options
13
  */
14
  * Add ajax for post meta save options
15
  */
16
 
 
17
  * Adds Ajax for Clear Stats button
18
  * clear stats for all variations
19
  */
20
  * Adds Ajax for Clear Stats button
21
  * clear stats for single variations
22
  */
23
  * Click tracking moved to module.click-tracking.php
24
  * Adds ajax to record landing page impressions
25
  * future plans to integrate with google analytics
26
  * Adds Ajax Template Selection
27
  * @return prints out landing page meta options
28
  */
29
  * Add ajax for post meta save options
30
  */
31
 
 
1
  * Adds Ajax for Clear Stats button
2
  * clear stats for all variations
3
  */
4
  * Adds Ajax for Clear Stats button
5
  * clear stats for single variations
6
  */
7
  * Click tracking moved to module.click-tracking.php
8
  * Adds ajax to record landing page impressions
9
  * future plans to integrate with google analytics
10
  * Adds Ajax Template Selection
11
  * @return prints out landing page meta options
12
  */
13
  * Add ajax for post meta save options
14
  */
15
 
16
+ <?php
17
  * Adds Ajax for Clear Stats button
18
  * clear stats for all variations
19
  */
20
  * Adds Ajax for Clear Stats button
21
  * clear stats for single variations
22
  */
23
  * Click tracking moved to module.click-tracking.php
24
  * Adds ajax to record landing page impressions
25
  * future plans to integrate with google analytics
26
  * Adds Ajax Template Selection
27
  * @return prints out landing page meta options
28
  */
29
  * Add ajax for post meta save options
30
  */
31
 
modules/module.clone.php CHANGED
@@ -1 +1 @@
1
- <?php
1
+ <?php
modules/module.customizer.php CHANGED
@@ -1 +1 @@
1
- <?php
2
 
3
  wp_register_script('lp-customizer-load-js', LANDINGPAGES_URLPATH . 'js/customizer.load.js', array('jquery'));
4
  wp_enqueue_script('lp-customizer-load-js');
 
5
  wp_register_script('lp-customizer-load-js', LANDINGPAGES_URLPATH . 'js/customizer.load.js', array('jquery'));
6
  wp_enqueue_script('lp-customizer-load-js');
 
1
 
2
  wp_register_script('lp-customizer-load-js', LANDINGPAGES_URLPATH . 'js/customizer.load.js', array('jquery'));
3
  wp_enqueue_script('lp-customizer-load-js');
4
+ <?php
5
  wp_register_script('lp-customizer-load-js', LANDINGPAGES_URLPATH . 'js/customizer.load.js', array('jquery'));
6
  wp_enqueue_script('lp-customizer-load-js');
modules/module.global-settings.php CHANGED
@@ -26,53 +26,53 @@ function lp_get_global_settings()
26
  array(
27
  'id' => 'lp_global_settings_main_header',
28
  'type' => 'header',
29
- 'default' => '<h4>Landing Pages Core Settings</h4>',
30
  'options' => null
31
  ),
32
  array(
33
  'id' => 'landing-page-permalink-prefix',
34
- 'label' => 'Default Landing Page Permalink Prefix',
35
- 'description' => "Enter in the <span style='color:red;'>prefix</span> for landing page URLs (aka permalinks).<br><br>This is the URL Slug that will be in the landing page URL.<br><br> Example: http://www.yoursite.com/<span style='color:red;'>PREFIX</span>/landing-page . Enter in a single word like 'go'",
36
  'type' => 'text',
37
  'default' => 'go',
38
  'options' => null
39
  ),
40
  array(
41
  'id' => 'landing-page-prepopulate-forms',
42
- 'label' => 'Enable Form Prepopulation',
43
- 'description' => "With this setting enabled landing pages plugin will remember form input data that the user submits to a form and attempt to pre-populate all other forms with the same user's data when applicable.",
44
  'type' => 'radio',
45
  'default' => '1',
46
  'options' => array('1'=>'on','0'=>'off')
47
  ),
48
  array(
49
  'id' => 'landing-page-disable-admin-tracking',
50
- 'label' => 'Disable Admin Impression/Conversion Tracking',
51
- 'description' => "With this setting enabled landing pages plugin will not record visits and conversions for administrative users that are logged in.",
52
  'type' => 'radio',
53
  'default' => '0',
54
  'options' => array('1'=>'on','0'=>'off')
55
  ),
56
  array(
57
  'id' => 'landing-page-rotation-halt',
58
- 'label' => 'Sticky Variations',
59
- 'description' => "With this setting enabled the landing pages plugin will prevent landing page version a/b rotation for a specific visitor that has viewed the page.<br><br>This pause on the a/b rotation will automatically expire after 30 days.",
60
  'type' => 'radio',
61
  'default' => '0',
62
  'options' => array('1'=>'on','0'=>'off')
63
  ),
64
  array(
65
  'id' => 'landing-page-auto-format-forms',
66
- 'label' => 'Enable Form Standardization',
67
- 'description' => "With this setting enabled landing pages plugin will clean and standardize all input ids and classnames. Uncheck this setting to disable standardization.",
68
  'type' => 'radio',
69
  'default' => '0',
70
  'options' => array('1'=>'on','0'=>'off')
71
  ),
72
  array(
73
  'id' => 'main-landing-page-auto-format-forms-retain-elements',
74
- 'label' => 'Form Standardization Element Whitelist',
75
- 'description' => "Form standardization strips the conversion area content of html elements. Add the elements you do not want to be stripped to this list.",
76
  'type' => 'textarea',
77
  'default' => '<button><script><textarea><style><input><form><select><label><a><p><b><u><strong><i><img><strong><span><font><h1><h2><h3><center><blockquote><embed><object><small>',
78
  'options' => null
@@ -82,10 +82,10 @@ function lp_get_global_settings()
82
 
83
  /* Setup License Keys Tab */
84
  $tab_slug = 'lp-license-keys';
85
- $lp_global_settings[$tab_slug]['label'] = 'License Keys';
86
 
87
  /* Setup Extensions Tab */
88
- $lp_global_settings['lp-extensions']['label'] = 'Extensions';
89
  $lp_global_settings['lp-extensions']['settings'] = array(
90
  array(
91
  'id' => 'lp-ext-header',
@@ -97,7 +97,7 @@ function lp_get_global_settings()
97
 
98
  /* Setup Debug Tab */
99
 
100
- $lp_global_settings['lp-debug']['label'] = 'Debug';
101
  $lp_global_settings['lp-debug']['settings'] = array(
102
  array(
103
  'id' => 'lp-debug-header',
@@ -120,9 +120,9 @@ function lp_add_extension_license_key_header($lp_global_settings)
120
  {
121
  $lp_global_settings['lp-license-keys']['settings'][] = array(
122
  'id' => 'extensions-license-keys-header',
123
- 'description' => "Head to http://www.inboundnow.com/ to retrieve your license key for this template.",
124
  'type' => 'header',
125
- 'default' => '<h3 class="lp_global_settings_header">Extension License Keys</h3>'
126
  );
127
  }
128
 
@@ -214,7 +214,7 @@ function lp_display_global_settings()
214
  $contentht = esc_textarea( $contentht );
215
 
216
  if ( !is_writable( $htaccess_file ) ) {
217
- $content = " <div class=\"error\"><h3>" . __( "Oh no! Your .htaccess is not writable and A/B testing won't work unless you make your .htaccess file writable.", 'inboundnow' ) . "</h3></div>";
218
  echo $content;
219
  }
220
  else {
@@ -289,11 +289,11 @@ function lp_display_global_settings()
289
  </script>
290
  <div id="php-sql-lp-version" style="display:none;">
291
  <div id="inbound-install-status">
292
- <h3>Installation Status</h3>
293
  <table id="lp-wordpress-site-status">
294
 
295
  <tr valign="top">
296
- <th scope="row"><label>PHP Version</label></th>
297
  <td class="installation_item_cell">
298
  <strong><?php echo phpversion(); ?></strong>
299
  </td>
@@ -314,7 +314,7 @@ function lp_display_global_settings()
314
  </td>
315
  </tr>
316
  <tr valign="top">
317
- <th scope="row"><label>MySQL Version</label></th>
318
  <td class="installation_item_cell">
319
  <strong><?php echo $wpdb->db_version();?></strong>
320
  </td>
@@ -335,7 +335,7 @@ function lp_display_global_settings()
335
  </td>
336
  </tr>
337
  <tr valign="top">
338
- <th scope="row"><label>WordPress Version</label></th>
339
  <td class="installation_item_cell">
340
  <strong><?php echo get_bloginfo("version"); ?></strong>
341
  </td>
@@ -349,16 +349,16 @@ function lp_display_global_settings()
349
  else{
350
  ?>
351
  <img src="<?php echo LANDINGPAGES_URLPATH;?>/images/cross.png"/>
352
- <span class="installation_item_message">landing pages requires version X or higher</span>
353
  <?php
354
  }
355
  ?>
356
  </td>
357
  </tr>
358
  <tr valign="top">
359
- <th scope="row"><label>Landing Page Version</label></th>
360
  <td class="installation_item_cell">
361
- <strong>Version <?php echo LANDINGPAGES_CURRENT_VERSION;?></strong>
362
  </td>
363
  <td>
364
 
@@ -372,7 +372,7 @@ function lp_display_global_settings()
372
  <div id="htaccess-contents">
373
 
374
  <?php if ($htaccess != "") {
375
- echo "<h3>The contents of your .htaccess file:</h3>";
376
  echo $htaccess;
377
  } ?>
378
  </div>
@@ -460,7 +460,7 @@ Save Path: <?php echo esc_html( ini_get( 'session.save_path' ) ); ?><?php ec
460
  Use Cookies: <?php echo ini_get( 'session.use_cookies' ) ? 'On' : 'Off'; ?><?php echo "\n"; ?>
461
  Use Only Cookies: <?php echo ini_get( 'session.use_only_cookies' ) ? 'On' : 'Off'; ?><?php echo "\n"; ?>
462
 
463
- WordPress Memory Limit: <?php echo ( edd_let_to_num( WP_MEMORY_LIMIT )/( 1024 ) )."MB"; ?><?php echo "\n"; ?>
464
  DISPLAY ERRORS: <?php echo ( ini_get( 'display_errors' ) ) ? 'On (' . ini_get( 'display_errors' ) . ')' : 'N/A'; ?><?php echo "\n"; ?>
465
  FSOCKOPEN: <?php echo ( function_exists( 'fsockopen' ) ) ? __( 'Your server supports fsockopen.', 'edd' ) : __( 'Your server does not support fsockopen.', 'edd' ); ?><?php echo "\n"; ?>
466
  cURL: <?php echo ( function_exists( 'curl_init' ) ) ? __( 'Your server supports cURL.', 'edd' ) : __( 'Your server does not support cURL.', 'edd' ); ?><?php echo "\n"; ?>
@@ -590,7 +590,8 @@ function lp_save_global_settings()
590
  $api_params = array(
591
  'edd_action'=> 'activate_license',
592
  'license' => $field['new_value'],
593
- 'item_name' => $field['slug'] // the name of our product in EDD
 
594
  );
595
  //print_r($api_params);
596
 
@@ -637,7 +638,8 @@ function lp_save_global_settings()
637
  $api_params = array(
638
  'edd_action'=> 'activate_license',
639
  'license' => $field['new_value'],
640
- 'item_name' => $field['slug'] // the name of our product in EDD
 
641
  );
642
 
643
  // Call the custom API.
@@ -853,7 +855,8 @@ function lp_check_license_status($field)
853
  'edd_action' => 'check_license',
854
  'license' => $license_key,
855
  'key' => $license_key,
856
- 'item_name' => urlencode( $field['slug'] )
 
857
  );
858
 
859
  // Call the custom API.
26
  array(
27
  'id' => 'lp_global_settings_main_header',
28
  'type' => 'header',
29
+ 'default' => __('<h4>Landing Pages Core Settings</h4>' , LANDINGPAGES_TEXT_DOMAIN) ,
30
  'options' => null
31
  ),
32
  array(
33
  'id' => 'landing-page-permalink-prefix',
34
+ 'label' => __( 'Default Landing Page Permalink Prefix' , LANDINGPAGES_TEXT_DOMAIN),
35
+ 'description' => __("Enter in the <span style='color:red;'>prefix</span> for landing page URLs (aka permalinks).<br><br>This is the URL Slug that will be in the landing page URL.<br><br> Example: http://www.yoursite.com/<span style='color:red;'>PREFIX</span>/landing-page . Enter in a single word like 'go'" , LANDINGPAGES_TEXT_DOMAIN) ,
36
  'type' => 'text',
37
  'default' => 'go',
38
  'options' => null
39
  ),
40
  array(
41
  'id' => 'landing-page-prepopulate-forms',
42
+ 'label' => __( 'Enable Form Prepopulation' , LANDINGPAGES_TEXT_DOMAIN) ,
43
+ 'description' => __("With this setting enabled landing pages plugin will remember form input data that the user submits to a form and attempt to pre-populate all other forms with the same user's data when applicable." , LANDINGPAGES_TEXT_DOMAIN),
44
  'type' => 'radio',
45
  'default' => '1',
46
  'options' => array('1'=>'on','0'=>'off')
47
  ),
48
  array(
49
  'id' => 'landing-page-disable-admin-tracking',
50
+ 'label' => __('Disable Admin Impression/Conversion Tracking' , LANDINGPAGES_TEXT_DOMAIN) ,
51
+ 'description' => __("With this setting enabled landing pages plugin will not record visits and conversions for administrative users that are logged in." , LANDINGPAGES_TEXT_DOMAIN),
52
  'type' => 'radio',
53
  'default' => '0',
54
  'options' => array('1'=>'on','0'=>'off')
55
  ),
56
  array(
57
  'id' => 'landing-page-rotation-halt',
58
+ 'label' => __('Sticky Variations' , LANDINGPAGES_TEXT_DOMAIN),
59
+ 'description' => __("With this setting enabled the landing pages plugin will prevent landing page version a/b rotation for a specific visitor that has viewed the page.<br><br>This pause on the a/b rotation will automatically expire after 30 days." , LANDINGPAGES_TEXT_DOMAIN),
60
  'type' => 'radio',
61
  'default' => '0',
62
  'options' => array('1'=>'on','0'=>'off')
63
  ),
64
  array(
65
  'id' => 'landing-page-auto-format-forms',
66
+ 'label' => __('Enable Form Standardization' , LANDINGPAGES_TEXT_DOMAIN),
67
+ 'description' => __("With this setting enabled landing pages plugin will clean and standardize all input ids and classnames. Uncheck this setting to disable standardization." , LANDINGPAGES_TEXT_DOMAIN),
68
  'type' => 'radio',
69
  'default' => '0',
70
  'options' => array('1'=>'on','0'=>'off')
71
  ),
72
  array(
73
  'id' => 'main-landing-page-auto-format-forms-retain-elements',
74
+ 'label' => __('Form Standardization Element Whitelist' , LANDINGPAGES_TEXT_DOMAIN),
75
+ 'description' => __("Form standardization strips the conversion area content of html elements. Add the elements you do not want to be stripped to this list." , LANDINGPAGES_TEXT_DOMAIN) ,
76
  'type' => 'textarea',
77
  'default' => '<button><script><textarea><style><input><form><select><label><a><p><b><u><strong><i><img><strong><span><font><h1><h2><h3><center><blockquote><embed><object><small>',
78
  'options' => null
82
 
83
  /* Setup License Keys Tab */
84
  $tab_slug = 'lp-license-keys';
85
+ $lp_global_settings[$tab_slug]['label'] = __( 'License Keys' , LANDINGPAGES_TEXT_DOMAIN);
86
 
87
  /* Setup Extensions Tab */
88
+ $lp_global_settings['lp-extensions']['label'] = __( 'Extensions' , LANDINGPAGES_TEXT_DOMAIN);
89
  $lp_global_settings['lp-extensions']['settings'] = array(
90
  array(
91
  'id' => 'lp-ext-header',
97
 
98
  /* Setup Debug Tab */
99
 
100
+ $lp_global_settings['lp-debug']['label'] = __( 'Debug' , LANDINGPAGES_TEXT_DOMAIN);
101
  $lp_global_settings['lp-debug']['settings'] = array(
102
  array(
103
  'id' => 'lp-debug-header',
120
  {
121
  $lp_global_settings['lp-license-keys']['settings'][] = array(
122
  'id' => 'extensions-license-keys-header',
123
+ 'description' => __( "Head to http://www.inboundnow.com/ to retrieve your license key for this template." , LANDINGPAGES_TEXT_DOMAIN),
124
  'type' => 'header',
125
+ 'default' => '<h3 class="lp_global_settings_header">'. __( 'Extension License Keys' , LANDINGPAGES_TEXT_DOMAIN) .'</h3>'
126
  );
127
  }
128
 
214
  $contentht = esc_textarea( $contentht );
215
 
216
  if ( !is_writable( $htaccess_file ) ) {
217
+ $content = " <div class=\"error\"><h3>" . __( "Oh no! Your .htaccess is not writable and A/B testing won't work unless you make your .htaccess file writable.", LANDINGPAGES_TEXT_DOMAIN) . "</h3></div>";
218
  echo $content;
219
  }
220
  else {
289
  </script>
290
  <div id="php-sql-lp-version" style="display:none;">
291
  <div id="inbound-install-status">
292
+ <h3><?php _e( 'Installation Status' , LANDINGPAGES_TEXT_DOMAIN); ?></h3>
293
  <table id="lp-wordpress-site-status">
294
 
295
  <tr valign="top">
296
+ <th scope="row"><label><?php _e( 'PHP Version' , LANDINGPAGES_TEXT_DOMAIN); ?></label></th>
297
  <td class="installation_item_cell">
298
  <strong><?php echo phpversion(); ?></strong>
299
  </td>
314
  </td>
315
  </tr>
316
  <tr valign="top">
317
+ <th scope="row"><label><?php _e( 'MySQL Version' , LANDINGPAGES_TEXT_DOMAIN); ?></label></th>
318
  <td class="installation_item_cell">
319
  <strong><?php echo $wpdb->db_version();?></strong>
320
  </td>
335
  </td>
336
  </tr>
337
  <tr valign="top">
338
+ <th scope="row"><label><?php _e( 'WordPress Version' , LANDINGPAGES_TEXT_DOMAIN); ?></label></th>
339
  <td class="installation_item_cell">
340
  <strong><?php echo get_bloginfo("version"); ?></strong>
341
  </td>
349
  else{
350
  ?>
351
  <img src="<?php echo LANDINGPAGES_URLPATH;?>/images/cross.png"/>
352
+ <span class="installation_item_message"><?php _e( 'landing pages requires version X or higher' , LANDINGPAGES_TEXT_DOMAIN); ?></span>
353
  <?php
354
  }
355
  ?>
356
  </td>
357
  </tr>
358
  <tr valign="top">
359
+ <th scope="row"><label><?php _e( 'Landing Page Version' , LANDINGPAGES_TEXT_DOMAIN); ?></label></th>
360
  <td class="installation_item_cell">
361
+ <strong><?php _e('Version' , LANDINGPAGES_TEXT_DOMAIN); ?> <?php echo LANDINGPAGES_CURRENT_VERSION;?></strong>
362
  </td>
363
  <td>
364
 
372
  <div id="htaccess-contents">
373
 
374
  <?php if ($htaccess != "") {
375
+ echo "<h3>". __('The contents of your .htaccess file' , LANDINGPAGES_TEXT_DOMAIN) .":</h3>";
376
  echo $htaccess;
377
  } ?>
378
  </div>
460
  Use Cookies: <?php echo ini_get( 'session.use_cookies' ) ? 'On' : 'Off'; ?><?php echo "\n"; ?>
461
  Use Only Cookies: <?php echo ini_get( 'session.use_only_cookies' ) ? 'On' : 'Off'; ?><?php echo "\n"; ?>
462
 
463
+ WordPress Memory Limit: NA
464
  DISPLAY ERRORS: <?php echo ( ini_get( 'display_errors' ) ) ? 'On (' . ini_get( 'display_errors' ) . ')' : 'N/A'; ?><?php echo "\n"; ?>
465
  FSOCKOPEN: <?php echo ( function_exists( 'fsockopen' ) ) ? __( 'Your server supports fsockopen.', 'edd' ) : __( 'Your server does not support fsockopen.', 'edd' ); ?><?php echo "\n"; ?>
466
  cURL: <?php echo ( function_exists( 'curl_init' ) ) ? __( 'Your server supports cURL.', 'edd' ) : __( 'Your server does not support cURL.', 'edd' ); ?><?php echo "\n"; ?>
590
  $api_params = array(
591
  'edd_action'=> 'activate_license',
592
  'license' => $field['new_value'],
593
+ 'item_name' => $field['slug'] ,
594
+ 'cache_bust'=> substr(md5(rand()),0,7)
595
  );
596
  //print_r($api_params);
597
 
638
  $api_params = array(
639
  'edd_action'=> 'activate_license',
640
  'license' => $field['new_value'],
641
+ 'item_name' => $field['slug'] ,
642
+ 'cache_bust'=> substr(md5(rand()),0,7)
643
  );
644
 
645
  // Call the custom API.
855
  'edd_action' => 'check_license',
856
  'license' => $license_key,
857
  'key' => $license_key,
858
+ 'item_name' => urlencode( $field['slug'] ),
859
+ 'cache_bust'=> substr(md5(rand()),0,7)
860
  );
861
 
862
  // Call the custom API.
modules/module.install.php CHANGED
@@ -13,25 +13,28 @@ function inbound_create_default_post_type(){
13
  //delete_option( 'lp_settings_general' );
14
  $lp_default_options = get_option($option_name);
15
  // Create Default if it doesn't exist
16
- if ( ! isset( $lp_default_options[$option_key] ) ) {
 
17
  $default_lander = wp_insert_post(
18
  array(
19
- 'post_title' => 'A/B Testing Landing Page Example',
20
- 'post_content' => '<p>This is the first paragraph of your landing page where you want to draw the viewer in and quickly explain your value proposition.</p><p><strong>Use Bullet Points to:</strong><ul><li>Explain why they should fill out the form</li><li>What they will learn if they download</li><li>A problem this form will solve for them</li></ul></p><p>Short ending paragraph reiterating the value behind the form</p>',
21
  'post_status' => 'publish',
22
  'post_author' => $current_user->ID,
23
  'post_type' => 'landing-page',
24
  'comment_status' => 'closed'
25
  )
26
  );
 
27
  // Variation A
28
- add_post_meta($default_lander, 'lp-main-headline', 'Main Catchy Headline (A)');
29
  add_post_meta($default_lander, 'lp-selected-template', 'svtle');
30
- add_post_meta($default_lander, 'lp-conversion-area', '<h2>Form A</h2><form action="" method="post">First Name: <input name="first-name" type="text" /><br>Last Name: <input name="last-name" type="text" /><br>Email:<input name="email" type="text" /><br><input name="submit" type="submit" value="Submit" /></form>');
31
- // Varaition B
32
- add_post_meta($default_lander, 'lp-main-headline-1', 'Main Catchy Headline Two (B)');
 
33
  add_post_meta($default_lander, 'lp-selected-template-1', 'svtle');
34
- add_post_meta($default_lander, 'landing-page-myeditor-1', '<h2>Form B</h2><form action="" method="post">First Name: <input name="first-name" type="text" /><br>Last Name: <input name="last-name" type="text" /><br>Email:<input name="email" type="text" /><br><input name="submit" type="submit" value="Submit" /></form>');
35
  add_post_meta($default_lander, 'content-1', '<p>(Version B) This is the first paragraph of your landing page where you want to draw the viewer in and quickly explain your value proposition.</p><p><strong>Use Bullet Points to:</strong><ul><li>Explain why they should fill out the form</li><li>What they will learn if they download</li><li>A problem this form will solve for them</li></ul></p><p>Short ending paragraph reiterating the value behind the form</p>');
36
 
37
  // Add A/B Testing meta
@@ -40,6 +43,7 @@ function inbound_create_default_post_type(){
40
  add_post_meta($default_lander, 'lp-ab-variation-impressions-1', 35);
41
  add_post_meta($default_lander, 'lp-ab-variation-conversions-0', 10);
42
  add_post_meta($default_lander, 'lp-ab-variation-conversions-1', 15);
 
43
  // Add template meta A
44
  add_post_meta($default_lander, 'svtle-submit-button-color', '5baa1e');
45
  add_post_meta($default_lander, 'svtle-display-social', '0');
@@ -50,6 +54,7 @@ function inbound_create_default_post_type(){
50
  add_post_meta($default_lander, 'svtle-sidebar-color', 'ffffff');
51
  add_post_meta($default_lander, 'svtle-sidebar-text-color', '000000');
52
  add_post_meta($default_lander, 'svtle-header-color', 'ffffff');
 
53
  // Add template meta B
54
  add_post_meta($default_lander, 'svtle-submit-button-color-1', 'ff0c00');
55
  add_post_meta($default_lander, 'svtle-display-social-1', '0');
@@ -60,6 +65,7 @@ function inbound_create_default_post_type(){
60
  add_post_meta($default_lander, 'svtle-sidebar-color-1', '51b0ef');
61
  add_post_meta($default_lander, 'svtle-sidebar-text-color-1', '000000');
62
  add_post_meta($default_lander, 'svtle-header-color-1', '51b0ef');
 
63
 
64
  // Store our page IDs
65
  $options = array(
@@ -123,12 +129,12 @@ function lp_install_register_required_plugins() {
123
 
124
  // This is an example of how to include a plugin from the WordPress Plugin Repository
125
  array(
126
- 'name' => 'WordPress Leads <span class=\'inbound-install-notice\'> - This <b>free</b> landing page addon will give you the ability to track and manage incoming web leads. Gather advanced Lead Intelligence and close more deals. <a class=\'inbound-install-notice-links\' href=\'http://wordpress.org/plugins/leads/\'> Learn more about WordPress Leads</a></span>',
127
  'slug' => 'leads',
128
  'required' => false,
129
  ),
130
  array(
131
- 'name' => 'WordPress Calls to Action <span class=\'inbound-install-notice\'> - This <b>free</b> landing page addon will drive more traffic into your Landing Pages with Targeted Calls to Action in your sites sidebars & content. Create popups to capture visitor attention and convert more leads. <a class=\'inbound-install-notice-links\' href=\'http://wordpress.org/plugins/cta/\'> Learn more about WordPress Calls to Action</a></span>',
132
  'slug' => 'cta',
133
  'required' => false,
134
  ),
@@ -136,7 +142,7 @@ function lp_install_register_required_plugins() {
136
  );
137
 
138
  // Change this to your theme text domain, used for internationalising strings
139
- $theme_text_domain = 'inboundnow';
140
 
141
  /**
142
  * Array of configuration settings. Amend each line as needed.
13
  //delete_option( 'lp_settings_general' );
14
  $lp_default_options = get_option($option_name);
15
  // Create Default if it doesn't exist
16
+ if ( ! isset( $lp_default_options[$option_key] ) )
17
+ {
18
  $default_lander = wp_insert_post(
19
  array(
20
+ 'post_title' => __( 'A/B Testing Landing Page Example' , LANDINGPAGES_TEXT_DOMAIN),
21
+ 'post_content' => __( '<p>This is the first paragraph of your landing page where you want to draw the viewer in and quickly explain your value proposition.</p><p><strong>Use Bullet Points to:</strong><ul><li>Explain why they should fill out the form</li><li>What they will learn if they download</li><li>A problem this form will solve for them</li></ul></p><p>Short ending paragraph reiterating the value behind the form</p>' , LANDINGPAGES_TEXT_DOMAIN),
22
  'post_status' => 'publish',
23
  'post_author' => $current_user->ID,
24
  'post_type' => 'landing-page',
25
  'comment_status' => 'closed'
26
  )
27
  );
28
+
29
  // Variation A
30
+ add_post_meta($default_lander, 'lp-main-headline', __( 'Main Catchy Headline (A)' , LANDINGPAGES_TEXT_DOMAIN) );
31
  add_post_meta($default_lander, 'lp-selected-template', 'svtle');
32
+ add_post_meta($default_lander, 'lp-conversion-area', '<h2>'.__( 'Form a' , LANDINGPAGES_TEXT_DOMAIN) .'</h2><form action="" method="post">'. __( 'First Name' , LANDINGPAGES_TEXT_DOMAIN) .': <input name="first-name" type="text" /><br>'. __('Last Name' , LANDINGPAGES_TEXT_DOMAIN) .': <input name="last-name" type="text" /><br>'.__('Email' , LANDINGPAGES_TEXT_DOMAIN) .':<input name="email" type="text" /><br><input name="submit" type="submit" value="'.__('Submit' , LANDINGPAGES_TEXT_DOMAIN).'" /></form>' );
33
+
34
+ // Varaition B
35
+ add_post_meta($default_lander, 'lp-main-headline-1', __('Main Catchy Headline Two (B)' , LANDINGPAGES_TEXT_DOMAIN) );
36
  add_post_meta($default_lander, 'lp-selected-template-1', 'svtle');
37
+ add_post_meta($default_lander, 'landing-page-myeditor-1', '<h2>'.__( 'Form B' , LANDINGPAGES_TEXT_DOMAIN) .'</h2><form action="" method="post">'. __( 'First Name' , LANDINGPAGES_TEXT_DOMAIN) .': <input name="first-name" type="text" /><br>'. __('Last Name' , LANDINGPAGES_TEXT_DOMAIN) .': <input name="last-name" type="text" /><br>'.__('Email' , LANDINGPAGES_TEXT_DOMAIN) .':<input name="email" type="text" /><br><input name="submit" type="submit" value="'.__('Submit' , LANDINGPAGES_TEXT_DOMAIN).'" /></form>' , LANDINGPAGES_TEXT_DOMAIN);
38
  add_post_meta($default_lander, 'content-1', '<p>(Version B) This is the first paragraph of your landing page where you want to draw the viewer in and quickly explain your value proposition.</p><p><strong>Use Bullet Points to:</strong><ul><li>Explain why they should fill out the form</li><li>What they will learn if they download</li><li>A problem this form will solve for them</li></ul></p><p>Short ending paragraph reiterating the value behind the form</p>');
39
 
40
  // Add A/B Testing meta
43
  add_post_meta($default_lander, 'lp-ab-variation-impressions-1', 35);
44
  add_post_meta($default_lander, 'lp-ab-variation-conversions-0', 10);
45
  add_post_meta($default_lander, 'lp-ab-variation-conversions-1', 15);
46
+
47
  // Add template meta A
48
  add_post_meta($default_lander, 'svtle-submit-button-color', '5baa1e');
49
  add_post_meta($default_lander, 'svtle-display-social', '0');
54
  add_post_meta($default_lander, 'svtle-sidebar-color', 'ffffff');
55
  add_post_meta($default_lander, 'svtle-sidebar-text-color', '000000');
56
  add_post_meta($default_lander, 'svtle-header-color', 'ffffff');
57
+
58
  // Add template meta B
59
  add_post_meta($default_lander, 'svtle-submit-button-color-1', 'ff0c00');
60
  add_post_meta($default_lander, 'svtle-display-social-1', '0');
65
  add_post_meta($default_lander, 'svtle-sidebar-color-1', '51b0ef');
66
  add_post_meta($default_lander, 'svtle-sidebar-text-color-1', '000000');
67
  add_post_meta($default_lander, 'svtle-header-color-1', '51b0ef');
68
+
69
 
70
  // Store our page IDs
71
  $options = array(
129
 
130
  // This is an example of how to include a plugin from the WordPress Plugin Repository
131
  array(
132
+ 'name' => __('WordPress Leads' , LANDINGPAGES_TEXT_DOMAIN) .' <span class=\'inbound-install-notice\'> - '. __('This <b>free</b> landing page addon will give you the ability to track and manage incoming web leads. Gather advanced Lead Intelligence and close more deals.' , LANDINGPAGES_TEXT_DOMAIN) .' <a class=\'inbound-install-notice-links\' href=\'http://wordpress.org/plugins/leads/\'> '. __('Learn more about WordPress Leads' , LANDINGPAGES_TEXT_DOMAIN) .'</a></span>',
133
  'slug' => 'leads',
134
  'required' => false,
135
  ),
136
  array(
137
+ 'name' => __('WordPress Calls to Action' , LANDINGPAGES_TEXT_DOMAIN) .' <span class=\'inbound-install-notice\'> - '. __('This <b>free</b> landing page addon will drive more traffic into your Landing Pages with Targeted Calls to Action in your sites sidebars & content. Create popups to capture visitor attention and convert more leads.' , LANDINGPAGES_TEXT_DOMAIN) . ' <a class=\'inbound-install-notice-links\' href=\'http://wordpress.org/plugins/cta/\'> ' . __('Learn more about WordPress Calls to Action' , LANDINGPAGES_TEXT_DOMAIN) . '</a></span>',
138
  'slug' => 'cta',
139
  'required' => false,
140
  ),
142
  );
143
 
144
  // Change this to your theme text domain, used for internationalising strings
145
+ $theme_text_domain = LANDINGPAGES_TEXT_DOMAIN;
146
 
147
  /**
148
  * Array of configuration settings. Amend each line as needed.
modules/module.javascript-admin.php CHANGED
@@ -68,6 +68,7 @@ function lp_admin_enqueue($hook)
68
  // Conditional TINYMCE for landing pages
69
  wp_dequeue_script('jquery-tinymce');
70
  wp_enqueue_script('jquery-tinymce', LANDINGPAGES_URLPATH . 'js/libraries/tiny_mce/jquery.tinymce.js');
 
71
 
72
  }
73
  // Edit Screen
68
  // Conditional TINYMCE for landing pages
69
  wp_dequeue_script('jquery-tinymce');
70
  wp_enqueue_script('jquery-tinymce', LANDINGPAGES_URLPATH . 'js/libraries/tiny_mce/jquery.tinymce.js');
71
+ wp_enqueue_style('inbound-metaboxes', LANDINGPAGES_URLPATH . 'shared/metaboxes/inbound-metaboxes.css');
72
 
73
  }
74
  // Edit Screen
modules/module.landing-page.php CHANGED
@@ -4,7 +4,7 @@
4
  add_action('lp_init', 'inbound_include_template_functions');
5
  if (!function_exists('inbound_include_template_functions')) {
6
  function inbound_include_template_functions(){
7
- include_once('shared/functions.templates.php');
8
  }
9
  }
10
 
@@ -350,7 +350,7 @@ function lp_get_value($post, $key, $id)
350
  //echo 1; exit;
351
  if (isset($post))
352
  {
353
- $return = get_post_meta($post->ID, $key.'-'.$id , true);
354
  $return = apply_filters('lp_get_value',$return,$post,$key,$id);
355
 
356
  return $return;
@@ -555,10 +555,53 @@ function lp_add_option($key,$type,$id,$default=null,$label=null,$description=nul
555
  'default' => $default
556
  );
557
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
558
  }
559
  }
560
 
561
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
562
  /* LEGACY CALLBACKS -- STILL USED BY SOME OLDER EXTENSIONS AND TEMPLATES */
563
  function lp_list_feature()
564
  {
@@ -584,7 +627,4 @@ function lp_head()
584
  function lp_footer()
585
  {
586
  do_action('lp_footer');
587
- }
588
-
589
-
590
-
4
  add_action('lp_init', 'inbound_include_template_functions');
5
  if (!function_exists('inbound_include_template_functions')) {
6
  function inbound_include_template_functions(){
7
+ include_once(LANDINGPAGES_PATH.'shared/functions.templates.php');
8
  }
9
  }
10
 
350
  //echo 1; exit;
351
  if (isset($post))
352
  {
353
+ $return = do_shortcode(get_post_meta($post->ID, $key.'-'.$id , true));
354
  $return = apply_filters('lp_get_value',$return,$post,$key,$id);
355
 
356
  return $return;
555
  'default' => $default
556
  );
557
  break;
558
+ case "custom-css":
559
+ return array(
560
+ 'label' => $label,
561
+ 'description' => $description,
562
+ 'id' => $id,
563
+ 'type' => 'turn-off-editor',
564
+ 'default' => $default // inline css
565
+ );
566
+ break;
567
+ case "description-block":
568
+ return array(
569
+ 'label' => $label,
570
+ 'description' => $description,
571
+ 'id' => $key.'-'.$id,
572
+ 'type' => 'description-block',
573
+ 'default' => $default
574
+ );
575
+ break;
576
  }
577
  }
578
 
579
 
580
+ function get_all_template_categories($extension_data) {
581
+
582
+ //$extension_data = lp_get_extension_data();
583
+ //$extension_data_cats = lp_get_extension_data_cats($extension_data);
584
+ //print_r($extension_data_cats);
585
+
586
+ $cat_array = array();
587
+ foreach ($extension_data as $name => $options) {
588
+ //echo $options['info'];
589
+ foreach ($options as $value) {
590
+ if ($value['category'] != "" && strlen ($value['category']) > 1 ){
591
+ $new_cat = explode(",", $value['category']);
592
+ foreach ($new_cat as $test => $zzz) {
593
+ $cat_array[] = trim($zzz);
594
+ }
595
+
596
+ }
597
+
598
+ }
599
+ }
600
+ echo "<pre>";
601
+ print_r(array_unique($cat_array));
602
+ echo "<pre>";
603
+ }
604
+
605
  /* LEGACY CALLBACKS -- STILL USED BY SOME OLDER EXTENSIONS AND TEMPLATES */
606
  function lp_list_feature()
607
  {
627
  function lp_footer()
628
  {
629
  do_action('lp_footer');
630
+ }
 
 
 
modules/module.language-support.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if (!defined('LANDINGPAGES_TEXT_DOMAIN'))
4
+ define( 'LANDINGPAGES_TEXT_DOMAIN', 'inbound_now' );
5
+
6
+ add_action('init' , 'lp_load_text_domain');
7
+
8
+ function lp_load_text_domain()
9
+ {
10
+ load_plugin_textdomain( LANDINGPAGES_TEXT_DOMAIN , false , LANDINGPAGES_PATH . 'shared/languages/landing-pages/' );
11
+ }
modules/module.lead-splash.php CHANGED
@@ -21,25 +21,25 @@ $data['lead_custom_fields'] = $wplead_data;
21
 
22
  <div id='lead-details-container'>
23
  <div id="wp-leads-splash-header">
24
- <h3 class='lp-lead-splash-h3'>Lead Details: </h3>
25
  <?php // Conditional check for wp leads add on ?>
26
- <a href="/wp-admin/post.php?post=<?php echo $lead_id . "&action=edit";?>" class="wplp-green-button wplp-right" target="_blank">View/Edit Lead</a>
27
  </div>
28
  <div id="wp-leads-splash-name">
29
- <div class="wp-lead-label">Name:</div> <?php echo $wplead_data['wpleads_first_name'][0]; ?> <?php echo $wplead_data['wpleads_last_name'][0]; ?>
30
  </div>
31
 
32
  <div id="wp-leads-splash-email">
33
- <div class="wp-lead-label">Email Address:</div> <?php echo $wplead_data['wpleads_email_address'][0]; ?>
34
  </div>
35
  <div id="wp-leads-splash-ip">
36
- <div class="wp-lead-label">IP Address: </div> <?php echo $wplead_data['wpleads_ip_address'][0]; ?>
37
  </div>
38
  <div id="wp-leads-splash-city">
39
- <div class="wp-lead-label">City: </div> <?php echo $city; ?>
40
  </div>
41
  <div id="wp-leads-splash-state">
42
- <div class="wp-lead-label">State: </div> <?php echo $region; ?>
43
  </div>
44
 
45
  <div id="wp-leads-extra-data">
21
 
22
  <div id='lead-details-container'>
23
  <div id="wp-leads-splash-header">
24
+ <h3 class='lp-lead-splash-h3'><?php _e('Lead Details ' , LANDINGPAGES_TEXT_DOMAIN) ?>: </h3>
25
  <?php // Conditional check for wp leads add on ?>
26
+ <a href="/wp-admin/post.php?post=<?php echo $lead_id . "&action=edit";?>" class="wplp-green-button wplp-right" target="_blank"> <?php _e( 'View/Edit Lead' , LANDINGPAGES_TEXT_DOMAIN); ?> </a>
27
  </div>
28
  <div id="wp-leads-splash-name">
29
+ <div class="wp-lead-label"><?php _e('Name' , LANDINGPAGES_TEXT_DOMAIN); ?>:</div> <?php echo $wplead_data['wpleads_first_name'][0]; ?> <?php echo $wplead_data['wpleads_last_name'][0]; ?>
30
  </div>
31
 
32
  <div id="wp-leads-splash-email">
33
+ <div class="wp-lead-label"><?php _e('Email Address' , LANDINGPAGES_TEXT_DOMAIN); ?>:</div> <?php echo $wplead_data['wpleads_email_address'][0]; ?>
34
  </div>
35
  <div id="wp-leads-splash-ip">
36
+ <div class="wp-lead-label"><?php _e('IP Address' , LANDINGPAGES_TEXT_DOMAIN); ?>: </div> <?php echo $wplead_data['wpleads_ip_address'][0]; ?>
37
  </div>
38
  <div id="wp-leads-splash-city">
39
+ <div class="wp-lead-label"><?php _e('City' , LANDINGPAGES_TEXT_DOMAIN); ?>: </div> <?php echo $city; ?>
40
  </div>
41
  <div id="wp-leads-splash-state">
42
+ <div class="wp-lead-label"><?php _e('State' , LANDINGPAGES_TEXT_DOMAIN); ?>: </div> <?php echo $region; ?>
43
  </div>
44
 
45
  <div id="wp-leads-extra-data">
modules/module.load-extensions.php CHANGED
@@ -1 +1 @@
1
- <?php
2
  * LOAD NATIVE TEMPLATES FROM WP-CONTENT/PLUGINS LANDING-PAGES/TEMPLATES/
3
  */
4
  * LOAD NON-NATIVE TEMPLATES FROM WP-CONTENT/UPLOADS/LANDING-PAGES/TEMPLATES/
5
  */
6
  /**
7
  * DECLARE HELPER FUNCTIONS
8
  */
 
9
  * LOAD NATIVE TEMPLATES FROM WP-CONTENT/PLUGINS LANDING-PAGES/TEMPLATES/
10
  */
11
  * LOAD NON-NATIVE TEMPLATES FROM WP-CONTENT/UPLOADS/LANDING-PAGES/TEMPLATES/
12
  */
13
  /**
14
  * DECLARE HELPER FUNCTIONS
15
  */
 
1
  * LOAD NATIVE TEMPLATES FROM WP-CONTENT/PLUGINS LANDING-PAGES/TEMPLATES/
2
  */
3
  * LOAD NON-NATIVE TEMPLATES FROM WP-CONTENT/UPLOADS/LANDING-PAGES/TEMPLATES/
4
  */
5
  /**
6
  * DECLARE HELPER FUNCTIONS
7
  */
8
+ <?php
9
  * LOAD NATIVE TEMPLATES FROM WP-CONTENT/PLUGINS LANDING-PAGES/TEMPLATES/
10
  */
11
  * LOAD NON-NATIVE TEMPLATES FROM WP-CONTENT/UPLOADS/LANDING-PAGES/TEMPLATES/
12
  */
13
  /**
14
  * DECLARE HELPER FUNCTIONS
15
  */
modules/module.metaboxes.php CHANGED
@@ -15,7 +15,7 @@ function lp_display_thumbnail_metabox() {
15
 
16
  add_meta_box(
17
  'lp-thumbnail-sidebar-preview',
18
- __( 'Template Preview', 'lp_metabox_thumbnail_preview' ),
19
  'lp_thumbnail_metabox',
20
  'landing-page' ,
21
  'side',
@@ -41,7 +41,7 @@ function lp_thumbnail_metabox() {
41
  <td>
42
  <?php
43
 
44
- echo "<a href='$permalink' target='_blank' ><img src='$thumbnail' style='width:250px;height:250px;' title='Preveiw this theme ($template)'></a>";
45
  ?>
46
  </td>
47
  </tr>
@@ -56,10 +56,11 @@ function lp_thumbnail_metabox() {
56
 
57
  add_action('add_meta_boxes', 'lp_display_meta_box_lp_conversion_area');
58
  function lp_display_meta_box_lp_conversion_area(){
59
- add_meta_box( WYSIWYG_META_BOX_ID, __('Landing Page Form or Conversion Button', 'wysiwyg'), 'lp_meta_box_conversion_area', 'landing-page', 'normal', 'high' );
60
  //add_meta_box( $id, $title, $callback, $post_type, $context, $priority, $callback_args );
61
  }
62
 
 
63
  function lp_meta_box_conversion_area(){
64
 
65
  global $post;
@@ -115,7 +116,7 @@ function lp_meta_box_conversion_area(){
115
 
116
  //Clear The Room!
117
  echo "<div style='clear:both; display:block;'></div>";
118
- echo "<div style='width:100%;text-align:right;margin-top:11px;'><div class='lp_tooltip' title=\"To help track conversions Landing Pages Plugin will automatically add a tracking class to forms. If you would like to track a link add this class to it class='wpl-track-me-link'\" ></div></div>";
119
 
120
  }
121
 
@@ -155,11 +156,11 @@ function lp_landing_page_header_area()
155
  $main_title = apply_filters('lp_edit_main_headline', $main_title, 1);
156
  $varaition_notes = apply_filters('lp_edit_varaition_notes', $varaition_notes, 1);
157
  $varaition_id = apply_filters( 'lp_display_notes_input_id' , 'lp-variation-notes' );
158
-
159
  echo "<div id='lp-notes-area'>";
160
- echo "<span id='add-lp-notes'>Notes:</span><input placeholder='Add Notes to your variation. Example: This version is testing a green submit button' type='text' class='lp-notes' name='{$varaition_id}' id='{$varaition_id}' value='{$variation_notes}' size='30'>";
161
- echo '</div><div id="main-title-area"><input type="text" name="lp-main-headline" placeholder="Primary Headline Goes here. This will be visible on the page" id="lp-main-headline" value="'.$main_title.'" title="This headline will appear in the landing page template."></div><div id="lp-current-view">'.$lp_variation.'</div><div id="switch-lp">0</div>';
162
-
163
  // Frontend params
164
  if(isset($_REQUEST['frontend']) && $_REQUEST['frontend'] == 'true') {
165
  echo('<input type="hidden" name="frontend" id="frontend-on" value="true" />');
@@ -204,7 +205,7 @@ add_filter( 'enter_title_here', 'lp_change_enter_title_text', 10, 2 );
204
  function lp_change_enter_title_text( $text, $post ) {
205
  if ($post->post_type=='landing-page')
206
  {
207
- return 'Enter Landing Page Description';
208
  }
209
  else
210
  {
@@ -218,7 +219,7 @@ function add_custom_meta_box_select_templates() {
218
 
219
  add_meta_box(
220
  'lp_metabox_select_template', // $id
221
- __( 'Landing Page Templates', 'landingpage_custom_meta' ),
222
  'lp_display_meta_box_select_template', // $callback
223
  'landing-page', // $page
224
  'normal', // $context
@@ -240,7 +241,7 @@ function lp_display_meta_box_select_template() {
240
  echo "<input type='hidden' name='lp_lp_custom_fields_nonce' value='".wp_create_nonce('lp-nonce')."' />";
241
  ?>
242
 
243
- <div id="lp_template_change"><h2><a class="button-primary" id="lp-change-template-button">Choose Another Template</a></div>
244
  <input type='hidden' id='lp_select_template' name='<?php echo $name; ?>' value='<?php echo $template; ?>'>
245
  <div id="template-display-options"></div>
246
 
@@ -251,7 +252,9 @@ add_action('admin_notices', 'lp_display_meta_box_select_template_container');
251
 
252
  // Render select template box
253
  function lp_display_meta_box_select_template_container() {
254
- global $post, $current_url;
 
 
255
 
256
  if (isset($post)&&$post->post_type!='landing-page'||!isset($post)){ return false; }
257
 
@@ -273,12 +276,13 @@ function lp_display_meta_box_select_template_container() {
273
 
274
  echo "<div class='lp-template-selector-container' style='{$toggle}'>";
275
  echo "<div class='lp-selection-heading'>";
276
- echo "<h1>Select Your Landing Page Template!</h1>";
277
- echo '<a class="button-secondary" style="display:none;" id="lp-cancel-selection">Cancel Template Change</a>';
278
  echo "</div>";
279
  echo '<ul id="template-filter" >';
280
- echo '<li class="button-primary button"><a href="#" data-filter="*">All</a></li>';
281
- $categories = array();
 
282
  foreach ($extension_data_cats as $cat)
283
  {
284
 
@@ -335,7 +339,7 @@ function lp_display_meta_box_select_template_container() {
335
  $thumbnail = LANDINGPAGES_URLPATH.'templates/default/thumbnail.png';
336
 
337
  }
338
-
339
  ?>
340
  <div id='template-item' class="<?php echo $cat_slug; ?>">
341
  <div id="template-box">
@@ -345,8 +349,8 @@ function lp_display_meta_box_select_template_container() {
345
  </a>
346
  <p>
347
  <div id="template-title"><?php echo $data['info']['label']; ?></div>
348
- <a href='#' label='<?php echo $data['info']['label']; ?>' id='<?php echo $this_extension; ?>' class='lp_select_template'>Select</a> |
349
- <a class='thickbox <?php echo $cat_slug;?>' href='<?php echo $data['info']['demo'];?>' id='lp_preview_this_template'>Preview</a>
350
  </p>
351
  </div>
352
  </div>
@@ -355,7 +359,7 @@ function lp_display_meta_box_select_template_container() {
355
  echo '</div>';
356
  echo "<div class='clear'></div>";
357
  echo "</div>";
358
- echo "<div style='display:none;' class='currently_selected'>This is Currently Selected</a></div>";
359
  }
360
 
361
  // Custom CSS Widget
@@ -363,13 +367,13 @@ add_action('add_meta_boxes', 'add_custom_meta_box_lp_custom_css');
363
  add_action('save_post', 'landing_pages_save_custom_css');
364
 
365
  function add_custom_meta_box_lp_custom_css() {
366
- add_meta_box('lp_3_custom_css', 'Custom CSS', 'lp_custom_css_input', 'landing-page', 'normal', 'low');
367
  }
368
 
369
  function lp_custom_css_input() {
370
  global $post;
371
 
372
- echo "<em>Custom CSS may be required to remove sidebars, increase the widget of the post content container to 100%, and sometimes to manually remove comment boxes.</em>";
373
  echo '<input type="hidden" name="lp-custom-css-noncename" id="lp_custom_css_noncename" value="'.wp_create_nonce(basename(__FILE__)).'" />';
374
  $custom_css_name = apply_filters('lp_custom_css_name','lp-custom-css');
375
  echo '<textarea name="'.$custom_css_name.'" id="lp-custom-css" rows="5" cols="30" style="width:100%;">'.get_post_meta($post->ID,$custom_css_name,true).'</textarea>';
@@ -396,7 +400,7 @@ add_action('add_meta_boxes', 'add_custom_meta_box_lp_custom_js');
396
  add_action('save_post', 'landing_pages_save_custom_js');
397
 
398
  function add_custom_meta_box_lp_custom_js() {
399
- add_meta_box('lp_3_custom_js', 'Custom JS', 'lp_custom_js_input', 'landing-page', 'normal', 'low');
400
  }
401
 
402
  function lp_custom_js_input() {
@@ -428,7 +432,7 @@ function landing_pages_save_custom_js($post_id) {
428
  add_action('add_meta_boxes', 'add_custom_meta_box_lp_conversion_log');
429
 
430
  function add_custom_meta_box_lp_conversion_log() {
431
- add_meta_box('lp_conversion_log_metabox', 'Lead Captures', 'lp_conversion_log_metabox', 'landing-page', 'normal', 'low');
432
  }
433
 
434
  function lp_conversion_log_metabox() {
@@ -441,10 +445,12 @@ function lp_conversion_log_metabox() {
441
  private $plural;
442
  private $post;
443
  private $wpdb;
 
444
  function __construct()
445
  {
446
  global $post;
447
  global $wpdb;
 
448
  $final_data = array();
449
  $query = "SELECT
450
  wposts.*
@@ -499,6 +505,7 @@ function lp_conversion_log_metabox() {
499
  //print_r($args);exit;
500
  $args['plural'] = sanitize_key( '' );
501
  $args['singular'] = sanitize_key( '' );
 
502
  $this->_args = $args;
503
  }
504
 
@@ -572,8 +579,8 @@ function lp_conversion_log_metabox() {
572
  'per_page' => $per_page //WE have to determine how many items to show on a page
573
  ) );
574
 
575
-
576
  $this->items = $this->found_data;
 
577
  }
578
 
579
  function column_default( $item, $column_name )
@@ -589,12 +596,12 @@ function lp_conversion_log_metabox() {
589
  case 'email':
590
  return "<a href='mailto:".$item[ $column_name ]."'>".$item[ $column_name ]."</a>";
591
  case 'details':
592
- echo '<a href="' . LANDINGPAGES_URLPATH.'modules/module.lead-splash.php?lead_id=' . $item[ 'ID' ] . '&post_id=' . $post->ID . '&height=400&width=600&TB_iframe=true" class="thickbox">View Lead</a>';
593
  echo '&nbsp;&nbsp;';
594
  //print_r($item);
595
  if ($item[ 'first_time' ]==1)
596
  {
597
- echo '<img src="'.LANDINGPAGES_URLPATH.'images/new-lead.png" title="First timer!" style="float:right;">';
598
  }
599
  do_action('lp_lead_table_data_is_details_column',$item);
600
  return;
@@ -614,7 +621,7 @@ function lp_conversion_log_metabox() {
614
 
615
  function no_items()
616
  {
617
- _e( 'No conversions recorded yet...' );
618
  }
619
 
620
  function get_bulk_actions()
@@ -631,7 +638,7 @@ function lp_conversion_log_metabox() {
631
 
632
  }
633
  echo '<div id="leads-table-container">';
634
- echo '<h2 id="convert-header">Conversion logs:</h2>';
635
  echo '<div id="leads-table-container-inside">';
636
  $myListTable = new LP_LEAD_LOG();
637
  $myListTable->prepare_items();
@@ -668,7 +675,7 @@ function lp_generate_meta()
668
  //echo $key."<br>";
669
  add_meta_box(
670
  "lp_{$id}_custom_meta_box", // $id
671
- __( "<small>$template_name Options:</small>", "lp" ),
672
  'lp_show_metabox', // $callback
673
  'landing-page', // post-type
674
  'normal', // $context
@@ -693,7 +700,7 @@ function lp_generate_meta()
693
  //echo $key."<br>";
694
  add_meta_box(
695
  "lp_{$id}_custom_meta_box", // $id
696
- __( "$name", "lp" ),
697
  'lp_show_metabox', // $callback
698
  'landing-page', // post-type
699
  $position , // $context
@@ -710,11 +717,16 @@ function lp_show_metabox($post,$key)
710
 
711
  $extension_data = lp_get_extension_data();
712
  $key = $key['args']['key'];
713
-
 
 
 
714
  $lp_custom_fields = $extension_data[$key]['settings'];
715
  $lp_custom_fields = apply_filters('lp_show_metabox',$lp_custom_fields, $key);
716
 
717
  lp_render_metabox($key,$lp_custom_fields,$post);
 
 
718
  }
719
 
720
 
@@ -724,15 +736,24 @@ function lp_render_metabox($key,$custom_fields,$post)
724
  echo "<input type='hidden' name='lp_{$key}_custom_fields_nonce' value='".wp_create_nonce('lp-nonce')."' />";
725
 
726
  // Begin the field table and loop
727
- echo '<table class="form-table" >';
728
 
729
  foreach ($custom_fields as $field) {
730
- $raw_option_id = str_replace($key . "-", "", $field['id']);
731
  $field_id = $key . "-" .$field['id'];
732
- $label_class = $raw_option_id . "-label";
 
 
 
 
 
733
  // get value of this field if it exists for this post
734
  $meta = get_post_meta($post->ID, $field_id, true);
 
 
 
 
735
 
 
736
  if ((!isset($meta)&&isset($field['default'])&&!is_numeric($meta))||isset($meta)&&empty($meta)&&isset($field['default'])&&!is_numeric($meta))
737
  {
738
  //echo $field['id'].":".$meta;
@@ -740,105 +761,130 @@ function lp_render_metabox($key,$custom_fields,$post)
740
  $meta = $field['default'];
741
  }
742
 
743
- // begin a table row with
744
- echo '<tr class="'.$field_id.' '.$raw_option_id.' landing-page-option-row">
745
- <th class="landing-page-table-header '.$label_class.'"><label for="'.$field_id.'">'.$field['label'].'</label></th>
746
- <td class="landing-page-option-td">';
747
- switch($field['type']) {
748
- // default content for the_content
749
- case 'default-content':
750
- echo '<span id="overwrite-content" class="button-secondary">Insert Default Content into main Content area</span><div style="display:none;"><textarea name="'.$field_id.'" id="'.$field_id.'" class="default-content" cols="106" rows="6" style="width: 75%; display:hidden;">'.$meta.'</textarea></div>';
751
- break;
752
- // text
753
- case 'colorpicker':
754
- if (!$meta)
755
- {
756
- $meta = $field['default'];
757
- }
758
- echo '<input type="text" class="jpicker" style="background-color:#'.$meta.'" name="'.$field_id.'" id="'.$field_id.'" value="'.$meta.'" size="5" /><span class="button-primary new-save-lp" id="'.$field_id.'" style="margin-left:10px; display:none;">Update</span>
759
- <div class="lp_tooltip tool_color" title="'.$field['description'].'"></div>';
760
- break;
761
- case 'datepicker':
762
- echo '<div class="jquery-date-picker" id="date-picking">
763
- <span class="datepair" data-language="javascript">
764
- Date: <input type="text" id="date-picker-'.$key.'" class="date start" /></span>
765
- Time: <input id="time-picker-'.$key.'" type="text" class="time time-picker" />
766
- <input type="hidden" name="'.$field_id.'" id="'.$field_id.'" value="'.$meta.'" class="new-date" value="" >
767
- <p class="description">'.$field['description'].'</p>
768
- </div>';
769
- break;
770
- case 'text':
771
- echo '<input type="text" name="'.$field_id.'" id="'.$field_id.'" value="'.$meta.'" size="30" />
772
- <div class="lp_tooltip" title="'.$field['description'].'"></div>';
773
- break;
774
- // textarea
775
- case 'textarea':
776
- echo '<textarea name="'.$field_id.'" id="'.$field_id.'" cols="106" rows="6" style="width: 75%;">'.$meta.'</textarea>
777
- <div class="lp_tooltip tool_textarea" title="'.$field['description'].'"></div>';
778
- break;
779
- // wysiwyg
780
- case 'wysiwyg':
781
- wp_editor( $meta, $field_id, $settings = array() );
782
- echo '<p class="description">'.$field['description'].'</p>';
783
- break;
784
- // media
785
- case 'media':
786
- echo '<label for="upload_image">';
787
- echo '<input name="'.$field_id.'" id="'.$field_id.'" type="text" size="36" name="upload_image" value="'.$meta.'" />';
788
- echo '<input class="upload_image_button" id="uploader_'.$field_id.'" type="button" value="Upload Image" />';
789
- echo '<p class="description">'.$field['description'].'</p>';
790
- break;
791
- // checkbox
792
- case 'checkbox':
793
- $i = 1;
794
- echo "<table class='lp_check_box_table'>";
795
- if (!isset($meta)){$meta=array();}
796
- elseif (!is_array($meta)){
797
- $meta = array($meta);
798
- }
799
- foreach ($field['options'] as $value=>$label) {
800
- if ($i==5||$i==1)
801
- {
802
- echo "<tr>";
803
- $i=1;
804
- }
805
- echo '<td><input type="checkbox" name="'.$field_id.'[]" id="'.$field_id.'" value="'.$value.'" ',in_array($value,$meta) ? ' checked="checked"' : '','/>';
806
- echo '<label for="'.$value.'">&nbsp;&nbsp;'.$label.'</label></td>';
807
- if ($i==4)
808
- {
809
- echo "</tr>";
810
- }
811
- $i++;
812
- }
813
- echo "</table>";
814
- echo '<div class="lp_tooltip tool_checkbox" title="'.$field['description'].'"></div>';
815
- break;
816
- // radio
817
- case 'radio':
818
- foreach ($field['options'] as $value=>$label) {
819
- //echo $meta.":".$field_id;
820
- //echo "<br>";
821
- echo '<input type="radio" name="'.$field_id.'" id="'.$field_id.'" value="'.$value.'" ',$meta==$value ? ' checked="checked"' : '','/>';
822
- echo '<label for="'.$value.'">&nbsp;&nbsp;'.$label.'</label> &nbsp;&nbsp;&nbsp;&nbsp;';
823
- }
824
- echo '<div class="lp_tooltip" title="'.$field['description'].'"></div>';
825
- break;
826
- // select
827
- case 'dropdown':
828
- echo '<select name="'.$field_id.'" id="'.$field_id.'" class="'.$raw_option_id.'">';
829
- foreach ($field['options'] as $value=>$label) {
830
- echo '<option', $meta == $value ? ' selected="selected"' : '', ' value="'.$value.'">'.$label.'</option>';
831
- }
832
- echo '</select><div class="lp_tooltip" title="'.$field['description'].'"></div>';
833
- break;
834
-
835
 
 
 
 
 
 
836
 
837
- } //end switch
838
- echo '</td></tr>';
839
- } // end foreach
840
- echo '</table>'; // end table
841
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
842
 
843
  add_action('save_post', 'lp_save_meta');
844
  function lp_save_meta($post_id) {
15
 
16
  add_meta_box(
17
  'lp-thumbnail-sidebar-preview',
18
+ __( 'Template Preview', LANDINGPAGES_TEXT_DOMAIN),
19
  'lp_thumbnail_metabox',
20
  'landing-page' ,
21
  'side',
41
  <td>
42
  <?php
43
 
44
+ echo "<a href='$permalink' target='_blank' ><img src='$thumbnail' style='width:250px;height:250px;' title='". __( 'Preveiw this theme' , LANDINGPAGES_TEXT_DOMAIN) ." , ({$template})'></a>";
45
  ?>
46
  </td>
47
  </tr>
56
 
57
  add_action('add_meta_boxes', 'lp_display_meta_box_lp_conversion_area');
58
  function lp_display_meta_box_lp_conversion_area(){
59
+ add_meta_box( WYSIWYG_META_BOX_ID, __('Landing Page Form or Conversion Button - <em>click the black & blue power button icon to build forms/buttons</em>', LANDINGPAGES_TEXT_DOMAIN), 'lp_meta_box_conversion_area', 'landing-page', 'normal', 'high' );
60
  //add_meta_box( $id, $title, $callback, $post_type, $context, $priority, $callback_args );
61
  }
62
 
63
+ // Phasing out conversion area sometime soon
64
  function lp_meta_box_conversion_area(){
65
 
66
  global $post;
116
 
117
  //Clear The Room!
118
  echo "<div style='clear:both; display:block;'></div>";
119
+ echo "<div style='width:100%;text-align:right;margin-top:11px;'><div class='lp_tooltip' title=\"". __('To help track conversions Landing Pages Plugin will automatically add a tracking class to forms. If you would like to track a link add this class to it' , LANDINGPAGES_TEXT_DOMAIN) ." class='wpl-track-me-link'\" ></div></div>";
120
 
121
  }
122
 
156
  $main_title = apply_filters('lp_edit_main_headline', $main_title, 1);
157
  $varaition_notes = apply_filters('lp_edit_varaition_notes', $varaition_notes, 1);
158
  $varaition_id = apply_filters( 'lp_display_notes_input_id' , 'lp-variation-notes' );
159
+
160
  echo "<div id='lp-notes-area'>";
161
+ echo "<span id='add-lp-notes'>". __('Notes' , LANDINGPAGES_TEXT_DOMAIN) .":</span><input placeholder='". __('Add Notes to your variation. Example: This version is testing a green submit button ' , LANDINGPAGES_TEXT_DOMAIN) ."' type='text' class='lp-notes' name='{$varaition_id}' id='{$varaition_id}' value='{$varaition_notes}' size='30'>";
162
+ echo '</div><div id="main-title-area"><input type="text" name="lp-main-headline" placeholder="'. __('Primary Headline Goes here. This will be visible on the page' , LANDINGPAGES_TEXT_DOMAIN) .'" id="lp-main-headline" value="'.$main_title.'" title="'. __('This headline will appear in the landing page template.' , LANDINGPAGES_TEXT_DOMAIN) .'"></div><div id="lp-current-view">'.$lp_variation.'</div><div id="switch-lp">0</div>';
163
+
164
  // Frontend params
165
  if(isset($_REQUEST['frontend']) && $_REQUEST['frontend'] == 'true') {
166
  echo('<input type="hidden" name="frontend" id="frontend-on" value="true" />');
205
  function lp_change_enter_title_text( $text, $post ) {
206
  if ($post->post_type=='landing-page')
207
  {
208
+ return __( 'Enter Landing Page Description' , LANDINGPAGES_TEXT_DOMAIN);
209
  }
210
  else
211
  {
219
 
220
  add_meta_box(
221
  'lp_metabox_select_template', // $id
222
+ __( 'Landing Page Templates', LANDINGPAGES_TEXT_DOMAIN),
223
  'lp_display_meta_box_select_template', // $callback
224
  'landing-page', // $page
225
  'normal', // $context
241
  echo "<input type='hidden' name='lp_lp_custom_fields_nonce' value='".wp_create_nonce('lp-nonce')."' />";
242
  ?>
243
 
244
+ <div id="lp_template_change"><h2><a class="button" id="lp-change-template-button"><?php _e( 'Choose Another Template' , LANDINGPAGES_TEXT_DOMAIN); ?></a></div>
245
  <input type='hidden' id='lp_select_template' name='<?php echo $name; ?>' value='<?php echo $template; ?>'>
246
  <div id="template-display-options"></div>
247
 
252
 
253
  // Render select template box
254
  function lp_display_meta_box_select_template_container() {
255
+ global $post;
256
+
257
+ $current_url = "http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]."";
258
 
259
  if (isset($post)&&$post->post_type!='landing-page'||!isset($post)){ return false; }
260
 
276
 
277
  echo "<div class='lp-template-selector-container' style='{$toggle}'>";
278
  echo "<div class='lp-selection-heading'>";
279
+ echo "<h1>". __( 'Select Your Landing Page Template!' , LANDINGPAGES_TEXT_DOMAIN) ."</h1>";
280
+ echo '<a class="button-secondary" style="display:none;" id="lp-cancel-selection">'. __('Cancel Template Change' , LANDINGPAGES_TEXT_DOMAIN) .'</a>';
281
  echo "</div>";
282
  echo '<ul id="template-filter" >';
283
+ echo '<li class="button-primary button"><a href="#" data-filter="*">'. __( 'All' , LANDINGPAGES_TEXT_DOMAIN) .'</a></li>';
284
+ echo '<li class="button-primary button"><a href="#" data-filter=".theme">'. __( 'Theme' , LANDINGPAGES_TEXT_DOMAIN ) .'</a></li>';
285
+ $categories = array('Theme');
286
  foreach ($extension_data_cats as $cat)
287
  {
288
 
339
  $thumbnail = LANDINGPAGES_URLPATH.'templates/default/thumbnail.png';
340
 
341
  }
342
+ $demo_link = (isset($data['info']['demo'])) ? $data['info']['demo'] : '';
343
  ?>
344
  <div id='template-item' class="<?php echo $cat_slug; ?>">
345
  <div id="template-box">
349
  </a>
350
  <p>
351
  <div id="template-title"><?php echo $data['info']['label']; ?></div>
352
+ <a href='#' label='<?php echo $data['info']['label']; ?>' id='<?php echo $this_extension; ?>' class='lp_select_template'><?php _e( 'Select' , LANDINGPAGES_TEXT_DOMAIN); ?> </a> |
353
+ <a class='thickbox <?php echo $cat_slug;?>' href='<?php echo $data['info']['demo'];?>' id='lp_preview_this_template'><?php _e( 'Preview' , LANDINGPAGES_TEXT_DOMAIN); ?></a>
354
  </p>
355
  </div>
356
  </div>
359
  echo '</div>';
360
  echo "<div class='clear'></div>";
361
  echo "</div>";
362
+ echo "<div style='display:none;' class='currently_selected'>". __( 'This is Currently Selected' , LANDINGPAGES_TEXT_DOMAIN) ."</a></div>";
363
  }
364
 
365
  // Custom CSS Widget
367
  add_action('save_post', 'landing_pages_save_custom_css');
368
 
369
  function add_custom_meta_box_lp_custom_css() {
370
+ add_meta_box('lp_3_custom_css', __( 'Custom CSS' , LANDINGPAGES_TEXT_DOMAIN) , 'lp_custom_css_input', 'landing-page', 'normal', 'low');
371
  }
372
 
373
  function lp_custom_css_input() {
374
  global $post;
375
 
376
+ _e("<em>Custom CSS may be required to customize this landing page.</em><strong> <u>Format</u>: #element-id { display:none !important; }</strong>" , LANDINGPAGES_TEXT_DOMAIN);
377
  echo '<input type="hidden" name="lp-custom-css-noncename" id="lp_custom_css_noncename" value="'.wp_create_nonce(basename(__FILE__)).'" />';
378
  $custom_css_name = apply_filters('lp_custom_css_name','lp-custom-css');
379
  echo '<textarea name="'.$custom_css_name.'" id="lp-custom-css" rows="5" cols="30" style="width:100%;">'.get_post_meta($post->ID,$custom_css_name,true).'</textarea>';
400
  add_action('save_post', 'landing_pages_save_custom_js');
401
 
402
  function add_custom_meta_box_lp_custom_js() {
403
+ add_meta_box('lp_3_custom_js', __('Custom JS' , LANDINGPAGES_TEXT_DOMAIN) , 'lp_custom_js_input', 'landing-page', 'normal', 'low');
404
  }
405
 
406
  function lp_custom_js_input() {
432
  add_action('add_meta_boxes', 'add_custom_meta_box_lp_conversion_log');
433
 
434
  function add_custom_meta_box_lp_conversion_log() {
435
+ add_meta_box('lp_conversion_log_metabox', __( 'Lead Captures' , LANDINGPAGES_TEXT_DOMAIN) , 'lp_conversion_log_metabox', 'landing-page', 'normal', 'low');
436
  }
437
 
438
  function lp_conversion_log_metabox() {
445
  private $plural;
446
  private $post;
447
  private $wpdb;
448
+
449
  function __construct()
450
  {
451
  global $post;
452
  global $wpdb;
453
+
454
  $final_data = array();
455
  $query = "SELECT
456
  wposts.*
505
  //print_r($args);exit;
506
  $args['plural'] = sanitize_key( '' );
507
  $args['singular'] = sanitize_key( '' );
508
+ $this->screen = get_current_screen();
509
  $this->_args = $args;
510
  }
511
 
579
  'per_page' => $per_page //WE have to determine how many items to show on a page
580
  ) );
581
 
 
582
  $this->items = $this->found_data;
583
+
584
  }
585
 
586
  function column_default( $item, $column_name )
596
  case 'email':
597
  return "<a href='mailto:".$item[ $column_name ]."'>".$item[ $column_name ]."</a>";
598
  case 'details':
599
+ echo '<a href="' . LANDINGPAGES_URLPATH.'modules/module.lead-splash.php?lead_id=' . $item[ 'ID' ] . '&post_id=' . $post->ID . '&height=400&width=600&TB_iframe=true" class="thickbox">' . __( 'View Lead' ,LANDINGPAGES_TEXT_DOMAIN) .'</a>';
600
  echo '&nbsp;&nbsp;';
601
  //print_r($item);
602
  if ($item[ 'first_time' ]==1)
603
  {
604
+ echo '<img src="'.LANDINGPAGES_URLPATH.'images/new-lead.png" title="' . __( 'First timer!' , LANDINGPAGES_TEXT_DOMAIN) .'" style="float:right;">';
605
  }
606
  do_action('lp_lead_table_data_is_details_column',$item);
607
  return;
621
 
622
  function no_items()
623
  {
624
+ _e( 'No conversions recorded yet...' , LANDINGPAGES_TEXT_DOMAIN);
625
  }
626
 
627
  function get_bulk_actions()
638
 
639
  }
640
  echo '<div id="leads-table-container">';
641
+ echo '<h2 id="convert-header">'. __( 'Conversion logs:' , LANDINGPAGES_TEXT_DOMAIN) .'</h2>';
642
  echo '<div id="leads-table-container-inside">';
643
  $myListTable = new LP_LEAD_LOG();
644
  $myListTable->prepare_items();
675
  //echo $key."<br>";
676
  add_meta_box(
677
  "lp_{$id}_custom_meta_box", // $id
678
+ __( "<small>$template_name Options:</small>", LANDINGPAGES_TEXT_DOMAIN),
679
  'lp_show_metabox', // $callback
680
  'landing-page', // post-type
681
  'normal', // $context
700
  //echo $key."<br>";
701
  add_meta_box(
702
  "lp_{$id}_custom_meta_box", // $id
703
+ __( "$name", LANDINGPAGES_TEXT_DOMAIN),
704
  'lp_show_metabox', // $callback
705
  'landing-page', // post-type
706
  $position , // $context
717
 
718
  $extension_data = lp_get_extension_data();
719
  $key = $key['args']['key'];
720
+ // Get current cat list for templates
721
+ if (isset($_GET['lp-cats'])) {
722
+ get_all_template_categories($extension_data);
723
+ }
724
  $lp_custom_fields = $extension_data[$key]['settings'];
725
  $lp_custom_fields = apply_filters('lp_show_metabox',$lp_custom_fields, $key);
726
 
727
  lp_render_metabox($key,$lp_custom_fields,$post);
728
+
729
+
730
  }
731
 
732
 
736
  echo "<input type='hidden' name='lp_{$key}_custom_fields_nonce' value='".wp_create_nonce('lp-nonce')."' />";
737
 
738
  // Begin the field table and loop
739
+ echo '<div class="form-table" id="inbound-meta">';
740
 
741
  foreach ($custom_fields as $field) {
 
742
  $field_id = $key . "-" .$field['id'];
743
+ $field_name = $field['id'];
744
+ $label_class = $field['id'] . "-label";
745
+ $type_class = " inbound-" . $field['type'];
746
+ $type_class_row = " inbound-" . $field['type'] . "-row";
747
+ $type_class_option = " inbound-" . $field['type'] . "-option";
748
+ $option_class = (isset($field['class'])) ? $field['class'] : '';
749
  // get value of this field if it exists for this post
750
  $meta = get_post_meta($post->ID, $field_id, true);
751
+ $global_meta = get_post_meta($post->ID, $field_name, true);
752
+ if(empty($global_meta)) {
753
+ $global_meta = $field['default'];
754
+ }
755
 
756
+ //print_r($field);
757
  if ((!isset($meta)&&isset($field['default'])&&!is_numeric($meta))||isset($meta)&&empty($meta)&&isset($field['default'])&&!is_numeric($meta))
758
  {
759
  //echo $field['id'].":".$meta;
761
  $meta = $field['default'];
762
  }
763
 
764
+ // Remove prefixes on global => true template options
765
+ if (isset($field['global']) && $field['global'] === true) {
766
+ $field_id = $field_name;
767
+ $meta = get_post_meta($post->ID, $field_name, true);
768
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
769
 
770
+ // begin a table row with
771
+ echo '<div class="'.$field['id'].$type_class_row.' div-'.$option_class.' wp-call-to-action-option-row inbound-meta-box-row">';
772
+ if ($field['type'] != "description-block" && $field['type'] != "custom-css" ) {
773
+ echo '<div id="inbound-'.$field_id.'" data-actual="'.$field_id.'" class="inbound-meta-box-label wp-call-to-action-table-header '.$label_class.$type_class.'"><label for="'.$field_id.'">'.$field['label'].'</label></div>';
774
+ }
775
 
776
+ echo '<div class="wp-call-to-action-option-td inbound-meta-box-option '.$type_class_option.'" data-field-type="'.$field['type'].'">';
777
+ switch($field['type']) {
778
+ // default content for the_content
779
+ case 'default-content':
780
+ echo '<span id="overwrite-content" class="button-secondary">Insert Default Content into main Content area</span><div style="display:none;"><textarea name="'.$field_id.'" id="'.$field_id.'" class="default-content" cols="106" rows="6" style="width: 75%; display:hidden;">'.$meta.'</textarea></div>';
781
+ break;
782
+ case 'description-block':
783
+ echo '<div id="'.$field_id.'" class="description-block">'.$field['description'].'</div>';
784
+ break;
785
+ case 'custom-css':
786
+ echo '<style type="text/css">'.$field['default'].'</style>';
787
+ break;
788
+ // text
789
+ case 'colorpicker':
790
+ if (!$meta)
791
+ {
792
+ $meta = $field['default'];
793
+ }
794
+ $var_id = (isset($_GET['new_meta_key'])) ? "-" . $_GET['new_meta_key'] : '';
795
+ echo '<input type="text" class="jpicker" style="background-color:#'.$meta.'" name="'.$field_id.'" id="'.$field_id.'" value="'.$meta.'" size="5" /><span class="button-primary new-save-lp" data-field-type="text" id="'.$field_id.$var_id.'" style="margin-left:10px; display:none;">Update</span>
796
+ <div class="lp_tooltip tool_color" title="'.$field['description'].'"></div>';
797
+ break;
798
+ case 'datepicker':
799
+ echo '<div class="jquery-date-picker inbound-datepicker" id="date-picking" data-field-type="text">
800
+ <span class="datepair" data-language="javascript">
801
+ Date: <input type="text" id="date-picker-'.$key.'" class="date start" /></span>
802
+ Time: <input id="time-picker-'.$key.'" type="text" class="time time-picker" />
803
+ <input type="hidden" name="'.$field_id.'" id="'.$field_id.'" value="'.$meta.'" class="new-date" value="" >
804
+ <p class="description">'.$field['description'].'</p>
805
+ </div>';
806
+ break;
807
+ case 'text':
808
+ echo '<input type="text" name="'.$field_id.'" id="'.$field_id.'" value="'.$meta.'" size="30" />
809
+ <div class="lp_tooltip" title="'.$field['description'].'"></div>';
810
+ break;
811
+ case 'number':
812
+
813
+ echo '<input type="number" class="'.$option_class.'" name="'.$field_id.'" id="'.$field_id.'" value="'.$meta.'" size="30" />
814
+ <div class="lp_tooltip" title="'.$field['description'].'"></div>';
815
+
816
+ break;
817
+ // textarea
818
+ case 'textarea':
819
+ echo '<textarea name="'.$field_id.'" id="'.$field_id.'" cols="106" rows="6" style="width: 75%;">'.$meta.'</textarea>
820
+ <div class="lp_tooltip tool_textarea" title="'.$field['description'].'"></div>';
821
+ break;
822
+ // wysiwyg
823
+ case 'wysiwyg':
824
+ echo "<div class='iframe-options iframe-options-".$field_id."' id='".$field['id']."'>";
825
+ wp_editor( $meta, $field_id, $settings = array( 'editor_class' => $field_name ) );
826
+ echo '<p class="description">'.$field['description'].'</p></div>';
827
+ break;
828
+ // media
829
+ case 'media':
830
+ //echo 1; exit;
831
+ echo '<label for="upload_image" data-field-type="text">';
832
+ echo '<input name="'.$field_id.'" id="'.$field_id.'" type="text" size="36" name="upload_image" value="'.$meta.'" />';
833
+ echo '<input class="upload_image_button" id="uploader_'.$field_id.'" type="button" value="Upload Image" />';
834
+ echo '<p class="description">'.$field['description'].'</p>';
835
+ break;
836
+ // checkbox
837
+ case 'checkbox':
838
+ $i = 1;
839
+ echo "<table class='lp_check_box_table'>";
840
+ if (!isset($meta)){$meta=array();}
841
+ elseif (!is_array($meta)){
842
+ $meta = array($meta);
843
+ }
844
+ foreach ($field['options'] as $value=>$label) {
845
+ if ($i==5||$i==1)
846
+ {
847
+ echo "<tr>";
848
+ $i=1;
849
+ }
850
+ echo '<td data-field-type="checkbox"><input type="checkbox" name="'.$field_id.'[]" id="'.$field_id.'" value="'.$value.'" ',in_array($value,$meta) ? ' checked="checked"' : '','/>';
851
+ echo '<label for="'.$value.'">&nbsp;&nbsp;'.$label.'</label></td>';
852
+ if ($i==4)
853
+ {
854
+ echo "</tr>";
855
+ }
856
+ $i++;
857
+ }
858
+ echo "</table>";
859
+ echo '<div class="lp_tooltip tool_checkbox" title="'.$field['description'].'"></div>';
860
+ break;
861
+ // radio
862
+ case 'radio':
863
+ foreach ($field['options'] as $value=>$label) {
864
+ //echo $meta.":".$field_id;
865
+ //echo "<br>";
866
+ echo '<input type="radio" name="'.$field_id.'" id="'.$field_id.'" value="'.$value.'" ',$meta==$value ? ' checked="checked"' : '','/>';
867
+ echo '<label for="'.$value.'">&nbsp;&nbsp;'.$label.'</label> &nbsp;&nbsp;&nbsp;&nbsp;';
868
+ }
869
+ echo '<div class="lp_tooltip" title="'.$field['description'].'"></div>';
870
+ break;
871
+ // select
872
+ case 'dropdown':
873
+ echo '<select name="'.$field_id.'" id="'.$field_id.'" class="'.$field['id'].'">';
874
+ foreach ($field['options'] as $value=>$label) {
875
+ echo '<option', $meta == $value ? ' selected="selected"' : '', ' value="'.$value.'">'.$label.'</option>';
876
+ }
877
+ echo '</select><div class="lp_tooltip" title="'.$field['description'].'"></div>';
878
+ break;
879
+
880
+
881
+
882
+ } //end switch
883
+ echo '</div></div>';
884
+ } // end foreach
885
+ echo '</div>'; // end table
886
+ //exit;
887
+ }
888
 
889
  add_action('save_post', 'lp_save_meta');
890
  function lp_save_meta($post_id) {
modules/module.post-type.php CHANGED
@@ -1 +1 @@
1
- <?php
2
  $labels = array(
3
  'name' => _x('Landing Pages', 'post type general name'),
4
  'singular_name' => _x('Landing Page', 'post type singular name'),
5
  'add_new' => _x('Add New', 'Landing Page'),
6
  'add_new_item' => __('Add New Landing Page'),
7
  'edit_item' => __('Edit Landing Page'),
8
  'new_item' => __('New Landing Page'),
9
  'view_item' => __('View Landing Page'),
10
  'search_items' => __('Search Landing Page'),
11
  'not_found' => __('Nothing found'),
12
  'not_found_in_trash' => __('Nothing found in Trash'),
13
  'parent_item_colon' => ''
14
  );
15
  $args = array(
16
  'labels' => $labels,
17
  'public' => true,
18
  'publicly_queryable' => true,
19
  'show_ui' => true,
20
  'query_var' => true,
21
  'menu_icon' => LANDINGPAGES_URLPATH . '/images/plus.gif',
22
  'rewrite' => array("slug" => "$slug"),
23
  'with_front' => false,
24
  'capability_type' => 'post',
25
  'hierarchical' => false,
26
  'menu_position' => null,
27
  'supports' => array('title','custom-fields','editor','thumbnail', 'excerpt')
28
  );
29
  register_post_type( 'landing-page' , $args );
30
  $args = array(
31
  'hierarchical' => true,
32
  'label' => "Categories",
33
  'singular_label' => "Landing Page Category",
34
  'show_ui' => true,
35
  'query_var' => true,
36
  );
37
  register_taxonomy('landing_page_category', array('landing-page'), $args);
38
  // Set category transient for use in other areas
39
  $terms = get_terms('landing_page_category', array('hide_empty' => false));
40
  $lp_cats = get_transient( 'landing-page-cats' );
 
41
  $labels = array(
42
  'name' => _x('Landing Pages', 'post type general name' , LANDINGPAGES_TEXT_DOMAIN),
43
  'singular_name' => _x('Landing Page', 'post type singular name' , LANDINGPAGES_TEXT_DOMAIN),
44
  'add_new' => _x('Add New', 'Landing Page' , LANDINGPAGES_TEXT_DOMAIN),
45
  'add_new_item' => __('Add New Landing Page' , LANDINGPAGES_TEXT_DOMAIN),
46
  'edit_item' => __('Edit Landing Page' , LANDINGPAGES_TEXT_DOMAIN),
47
  'new_item' => __('New Landing Page' , LANDINGPAGES_TEXT_DOMAIN),
48
  'view_item' => __('View Landing Page' , LANDINGPAGES_TEXT_DOMAIN),
49
  'search_items' => __('Search Landing Page' , LANDINGPAGES_TEXT_DOMAIN),
50
  'not_found' => __('Nothing found' , LANDINGPAGES_TEXT_DOMAIN),
51
  'not_found_in_trash' => __('Nothing found in Trash' , LANDINGPAGES_TEXT_DOMAIN),
52
  'parent_item_colon' => ''
53
  );
54
  $args = array(
55
  'labels' => $labels,
56
  'public' => true,
57
  'publicly_queryable' => true,
58
  'show_ui' => true,
59
  'query_var' => true,
60
  'menu_icon' => LANDINGPAGES_URLPATH . '/images/plus.gif',
61
  'rewrite' => array("slug" => "$slug"),
62
  'with_front' => false,
63
  'capability_type' => 'post',
64
  'hierarchical' => false,
65
  'menu_position' => null,
66
  'supports' => array('title','custom-fields','editor','thumbnail', 'excerpt')
67
  );
68
  register_post_type( 'landing-page' , $args );
69
  $args = array(
70
  'hierarchical' => true,
71
  'label' => __("Categories" , LANDINGPAGES_TEXT_DOMAIN),
72
  'singular_label' => __("Landing Page Category" , LANDINGPAGES_TEXT_DOMAIN),
73
  'show_ui' => true,
74
  'query_var' => true,
75
  );
76
  register_taxonomy('landing_page_category', array('landing-page'), $args);
77
  // Set category transient for use in other areas
78
  $terms = get_terms('landing_page_category', array('hide_empty' => false));
79
  $lp_cats = get_transient( 'landing-page-cats' );
 
1
  $labels = array(
2
  'name' => _x('Landing Pages', 'post type general name'),
3
  'singular_name' => _x('Landing Page', 'post type singular name'),
4
  'add_new' => _x('Add New', 'Landing Page'),
5
  'add_new_item' => __('Add New Landing Page'),
6
  'edit_item' => __('Edit Landing Page'),
7
  'new_item' => __('New Landing Page'),
8
  'view_item' => __('View Landing Page'),
9
  'search_items' => __('Search Landing Page'),
10
  'not_found' => __('Nothing found'),
11
  'not_found_in_trash' => __('Nothing found in Trash'),
12
  'parent_item_colon' => ''
13
  );
14
  $args = array(
15
  'labels' => $labels,
16
  'public' => true,
17
  'publicly_queryable' => true,
18
  'show_ui' => true,
19
  'query_var' => true,
20
  'menu_icon' => LANDINGPAGES_URLPATH . '/images/plus.gif',
21
  'rewrite' => array("slug" => "$slug"),
22
  'with_front' => false,
23
  'capability_type' => 'post',
24
  'hierarchical' => false,
25
  'menu_position' => null,
26
  'supports' => array('title','custom-fields','editor','thumbnail', 'excerpt')
27
  );
28
  register_post_type( 'landing-page' , $args );
29
  $args = array(
30
  'hierarchical' => true,
31
  'label' => "Categories",
32
  'singular_label' => "Landing Page Category",
33
  'show_ui' => true,
34
  'query_var' => true,
35
  );
36
  register_taxonomy('landing_page_category', array('landing-page'), $args);
37
  // Set category transient for use in other areas
38
  $terms = get_terms('landing_page_category', array('hide_empty' => false));
39
  $lp_cats = get_transient( 'landing-page-cats' );
40
+ <?php
41
  $labels = array(
42
  'name' => _x('Landing Pages', 'post type general name' , LANDINGPAGES_TEXT_DOMAIN),
43
  'singular_name' => _x('Landing Page', 'post type singular name' , LANDINGPAGES_TEXT_DOMAIN),
44
  'add_new' => _x('Add New', 'Landing Page' , LANDINGPAGES_TEXT_DOMAIN),
45
  'add_new_item' => __('Add New Landing Page' , LANDINGPAGES_TEXT_DOMAIN),
46
  'edit_item' => __('Edit Landing Page' , LANDINGPAGES_TEXT_DOMAIN),
47
  'new_item' => __('New Landing Page' , LANDINGPAGES_TEXT_DOMAIN),
48
  'view_item' => __('View Landing Page' , LANDINGPAGES_TEXT_DOMAIN),
49
  'search_items' => __('Search Landing Page' , LANDINGPAGES_TEXT_DOMAIN),
50
  'not_found' => __('Nothing found' , LANDINGPAGES_TEXT_DOMAIN),
51
  'not_found_in_trash' => __('Nothing found in Trash' , LANDINGPAGES_TEXT_DOMAIN),
52
  'parent_item_colon' => ''
53
  );
54
  $args = array(
55
  'labels' => $labels,
56
  'public' => true,
57
  'publicly_queryable' => true,
58
  'show_ui' => true,
59
  'query_var' => true,
60
  'menu_icon' => LANDINGPAGES_URLPATH . '/images/plus.gif',
61
  'rewrite' => array("slug" => "$slug"),
62
  'with_front' => false,
63
  'capability_type' => 'post',
64
  'hierarchical' => false,
65
  'menu_position' => null,
66
  'supports' => array('title','custom-fields','editor','thumbnail', 'excerpt')
67
  );
68
  register_post_type( 'landing-page' , $args );
69
  $args = array(
70
  'hierarchical' => true,
71
  'label' => __("Categories" , LANDINGPAGES_TEXT_DOMAIN),
72
  'singular_label' => __("Landing Page Category" , LANDINGPAGES_TEXT_DOMAIN),
73
  'show_ui' => true,
74
  'query_var' => true,
75
  );
76
  register_taxonomy('landing_page_category', array('landing-page'), $args);
77
  // Set category transient for use in other areas
78
  $terms = get_terms('landing_page_category', array('hide_empty' => false));
79
  $lp_cats = get_transient( 'landing-page-cats' );
modules/module.sidebar.php CHANGED
@@ -9,8 +9,8 @@ function lp_register_sidebars()
9
  {
10
  register_sidebar(array(
11
  'id' => 'lp_sidebar',
12
- 'name' => __( 'Landing Pages Sidebar' ),
13
- 'description' => __( 'Landing Pages Sidebar Area: For default and native theme templates only.' ),
14
  'before_widget' => '<div id="%1$s" class="widget %2$s">',
15
  'after_widget' => '</div>',
16
  'before_title' => '<h3 class="widget-title">',
9
  {
10
  register_sidebar(array(
11
  'id' => 'lp_sidebar',
12
+ 'name' => __( 'Landing Pages Sidebar' , LANDINGPAGES_TEXT_DOMAIN),
13
+ 'description' => __( 'Landing Pages Sidebar Area: For default and native theme templates only.' , LANDINGPAGES_TEXT_DOMAIN),
14
  'before_widget' => '<div id="%1$s" class="widget %2$s">',
15
  'after_widget' => '</div>',
16
  'before_title' => '<h3 class="widget-title">',
modules/module.store.php CHANGED
@@ -1 +1 @@
1
- <?php
2
  </div>
 
3
  </div>
 
1
  </div>
2
+ <?php
3
  </div>
modules/module.subscribe.php CHANGED
@@ -1 +1 @@
1
- <?php
1
+ <?php
modules/module.templates-upload.php CHANGED
@@ -11,22 +11,21 @@ function lp_display_upload()
11
  {
12
  ?>
13
  <div class="wrap templates_upload">
14
- <div class="icon32" id="icon-plugins"><br></div><h2>Install Templates</h2>
15
 
16
  <ul class="subsubsub">
17
- <li class="plugin-install-dashboard"><a href="#search" id='menu_search'>Search</a> |</li>
18
- <li class="plugin-install-upload"><a class="current" href="#upload" id='menu_upload'>Upload</a> </li>
19
  </ul>
20
 
21
  <br class="clear">
22
- <h4>Install Landing Pages template by uploading them here in .zip format</h4>
23
 
24
- <p class="install-help">Warning: Do not upload landing page extensions here or you will break the plugin! <br>Extensions are uploaded in the WordPress plugins section.
25
- </p>
26
  <form action="" class="wp-upload-form" enctype="multipart/form-data" method="post">
27
  <input type="hidden" value="<?php echo wp_create_nonce('lp-nonce'); ?>" name="lp_wpnonce" id="_wpnonce">
28
  <input type="hidden" value="/wp-admin/plugin-install.php?tab=upload" name="_wp_http_referer">
29
- <label for="pluginzip" class="screen-reader-text">Template zip file</label>
30
  <input type="file" name="templatezip" id="templatezip">
31
  <input type="submit" value="Install Now" class="button" id="install-template-submit" name="install-template-submit" disabled="">
32
  </form>
@@ -40,18 +39,18 @@ function lp_templates_search()
40
  ?>
41
 
42
  <div class="wrap templates_search" style='display:none'>
43
- <div class="icon32" id="icon-plugins"><br></div><h2>Search Templates</h2>
44
 
45
  <ul class="subsubsub">
46
- <li class="plugin-install-dashboard"><a href="#search" id='menu_search'>Search</a> |</li>
47
- <li class="plugin-install-upload"><a class="current" href="#upload" id='menu_upload'>Upload</a> </li>
48
  </ul>
49
 
50
  <br class="clear">
51
- <p class="install-help">Search the Inboundnow marketplace for free and premium templates.</p>
52
  <form action="edit.php?post_type=landing-page&page=lp_store" method="POST" id="">
53
  <input type="search" autofocus="autofocus" value="" name="search">
54
- <label for="plugin-search-input" class="screen-reader-text">Search Templates</label>
55
  <input type="submit" value="Search Templates" class="button" id="plugin-search-input" name="plugin-search-input">
56
  </form>
57
  </div>
@@ -114,18 +113,19 @@ function lp_templates_upload_execute()
114
  if (!$is_template)
115
  {
116
  echo "<br><br><br><br>";
117
- die("WARNING! This zip file does not seem to be a template file! If you are trying to install a Landing Page extension please use the Plugin's upload section! Please press the back button and try again!");
118
  }
119
  //exit;
120
  //$result = $zip->extract(PCLZIP_OPT_PATH, $extended_path );
121
 
122
  if ($result = $zip->extract(PCLZIP_OPT_PATH, $extended_path , PCLZIP_OPT_REPLACE_NEWER ) == 0)
123
  {
124
- die("There was a problem. Please try again!");
125
- } else
 
126
  {
127
  unlink( $_FILES['templatezip']["tmp_name"]);
128
- echo '<div class="updated"><p>Template uploaded successfully!</div>';
129
  }
130
  }
131
  }
11
  {
12
  ?>
13
  <div class="wrap templates_upload">
14
+ <div class="icon32" id="icon-plugins"><br></div><h2><?php _e( 'Install Templates' , LANDINGPAGES_TEXT_DOMAIN); ?></h2>
15
 
16
  <ul class="subsubsub">
17
+ <li class="plugin-install-dashboard"><a href="#search" id='menu_search'><?php _e( 'Search' ,LANDINGPAGES_TEXT_DOMAIN); ?></a> |</li>
18
+ <li class="plugin-install-upload"><a class="current" href="#upload" id='menu_upload'><?php _e( 'Upload' , LANDINGPAGES_TEXT_DOMAIN); ?></a> </li>
19
  </ul>
20
 
21
  <br class="clear">
22
+ <h4><?php _e('Install Landing Pages template by uploading them here in .zip format' , LANDINGPAGES_TEXT_DOMAIN); ?></h4>
23
 
24
+ <p class="install-help"><?php _e( 'Warning: Do not upload landing page extensions here or you will break the plugin! <br>Extensions are uploaded in the WordPress plugins section.' , LANDINGPAGES_TEXT_DOMAIN); ?></p>
 
25
  <form action="" class="wp-upload-form" enctype="multipart/form-data" method="post">
26
  <input type="hidden" value="<?php echo wp_create_nonce('lp-nonce'); ?>" name="lp_wpnonce" id="_wpnonce">
27
  <input type="hidden" value="/wp-admin/plugin-install.php?tab=upload" name="_wp_http_referer">
28
+ <label for="pluginzip" class="screen-reader-text"><?php _e( 'Template zip file' , LANDINGPAGES_TEXT_DOMAIN); ?></label>
29
  <input type="file" name="templatezip" id="templatezip">
30
  <input type="submit" value="Install Now" class="button" id="install-template-submit" name="install-template-submit" disabled="">
31
  </form>
39
  ?>
40
 
41
  <div class="wrap templates_search" style='display:none'>
42
+ <div class="icon32" id="icon-plugins"><br></div><h2><?php _e( 'Search Templates' , LANDINGPAGES_TEXT_DOMAIN); ?></h2>
43
 
44
  <ul class="subsubsub">
45
+ <li class="plugin-install-dashboard"><a href="#search" id='menu_search'><?php _e( 'Search' , LANDINGPAGES_TEXT_DOMAIN); ?></a> |</li>
46
+ <li class="plugin-install-upload"><a class="current" href="#upload" id='menu_upload'><?php _e( 'Upload' , LANDINGPAGES_TEXT_DOMAIN); ?></a> </li>
47
  </ul>
48
 
49
  <br class="clear">
50
+ <p class="install-help"><?php _e( 'Search the Inboundnow marketplace for free and premium templates.' , LANDINGPAGES_TEXT_DOMAIN); ?></p>
51
  <form action="edit.php?post_type=landing-page&page=lp_store" method="POST" id="">
52
  <input type="search" autofocus="autofocus" value="" name="search">
53
+ <label for="plugin-search-input" class="screen-reader-text"><?php _e( 'Search Templates' , LANDINGPAGES_TEXT_DOMAIN); ?></label>
54
  <input type="submit" value="Search Templates" class="button" id="plugin-search-input" name="plugin-search-input">
55
  </form>
56
  </div>
113
  if (!$is_template)
114
  {
115
  echo "<br><br><br><br>";
116
+ die(__("WARNING! This zip file does not seem to be a template file! If you are trying to install a Landing Page extension please use the Plugin's upload section! Please press the back button and try again!" , LANDINGPAGES_TEXT_DOMAIN));
117
  }
118
  //exit;
119
  //$result = $zip->extract(PCLZIP_OPT_PATH, $extended_path );
120
 
121
  if ($result = $zip->extract(PCLZIP_OPT_PATH, $extended_path , PCLZIP_OPT_REPLACE_NEWER ) == 0)
122
  {
123
+ die(__( "There was a problem. Please try again!" , LANDINGPAGES_TEXT_DOMAIN));
124
+ }
125
+ else
126
  {
127
  unlink( $_FILES['templatezip']["tmp_name"]);
128
+ echo '<div class="updated"><p>'. __( 'Template uploaded successfully!' , LANDINGPAGES_TEXT_DOMAIN).'</div>';
129
  }
130
  }
131
  }
modules/module.templates.php CHANGED
@@ -107,10 +107,10 @@ else if (isset($_GET['page'])&&$_GET['page']=='lp_manage_templates')
107
  {
108
  $columns = array(
109
  'cb' => '<input type="checkbox" />',
110
- 'template' => 'Template',
111
- 'description' => 'Description',
112
- 'category' => 'Category',
113
- 'version' => 'Current Version'
114
 
115
  );
116
  return $columns;
@@ -216,15 +216,15 @@ else if (isset($_GET['page'])&&$_GET['page']=='lp_manage_templates')
216
 
217
  function no_items()
218
  {
219
- _e( 'No premium templates installed. Templates included in the Landing Pages core plugin will not be listed here.' );
220
  }
221
 
222
  function get_bulk_actions()
223
  {
224
  $actions = array(
225
 
226
- 'upgrade' => 'Upgrade',
227
- 'delete' => 'Delete',
228
 
229
  );
230
 
107
  {
108
  $columns = array(
109
  'cb' => '<input type="checkbox" />',
110
+ 'template' => __( 'Template' , LANDINGPAGES_TEXT_DOMAIN),
111
+ 'description' => __( 'Description' , LANDINGPAGES_TEXT_DOMAIN),
112
+ 'category' => __( 'Category' , LANDINGPAGES_TEXT_DOMAIN),
113
+ 'version' => __( 'Current Version' , LANDINGPAGES_TEXT_DOMAIN)
114
 
115
  );
116
  return $columns;
216
 
217
  function no_items()
218
  {
219
+ _e( 'No premium templates installed. Templates included in the Landing Pages core plugin will not be listed here.' , LANDINGPAGES_TEXT_DOMAIN);
220
  }
221
 
222
  function get_bulk_actions()
223
  {
224
  $actions = array(
225
 
226
+ 'upgrade' => __( 'Upgrade' , LANDINGPAGES_TEXT_DOMAIN),
227
+ 'delete' => __( 'Delete' , LANDINGPAGES_TEXT_DOMAIN),
228
 
229
  );
230
 
modules/module.utils.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
 
3
  /* GET POST ID FROM URL FOR LANDING PAGES */
4
  function lp_url_to_postid($url)
@@ -58,7 +61,7 @@ function lp_url_to_postid($url)
58
  }
59
 
60
  /* REMOTE CONNECT - MAY NEED TO BE REPLACED WITH WP_REMOTE_GET */
61
- if (!function_exists('lp_remote_connect'))
62
  {
63
  function lp_remote_connect($url)
64
  {
@@ -115,7 +118,7 @@ if (!function_exists('inbound_meta_debug')) {
115
 
116
 
117
  /* YOAST SEO PLUGIN - MAKE METABOX LOW PRIORITY */
118
- add_filter( 'wpseo_metabox_prio', 'lp_wpseo_priority');
119
  function lp_wpseo_priority(){return 'low';}
120
 
121
  // Fix SEO Title Tags to not use the_title
@@ -229,5 +232,39 @@ function landing_body_class_names($classes) {
229
  return $arr;
230
  }
231
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
232
 
233
  ?>
1
  <?php
2
+ /*
3
+ * Utilities functions used throughout the plugin
4
+ */
5
 
6
  /* GET POST ID FROM URL FOR LANDING PAGES */
7
  function lp_url_to_postid($url)
61
  }
62
 
63
  /* REMOTE CONNECT - MAY NEED TO BE REPLACED WITH WP_REMOTE_GET */
64
+ if (!function_exists('lp_remote_connect'))
65
  {
66
  function lp_remote_connect($url)
67
  {
118
 
119
 
120
  /* YOAST SEO PLUGIN - MAKE METABOX LOW PRIORITY */
121
+ add_filter( 'wpseo_metabox_prio', 'lp_wpseo_priority');
122
  function lp_wpseo_priority(){return 'low';}
123
 
124
  // Fix SEO Title Tags to not use the_title
232
  return $arr;
233
  }
234
 
235
+ add_action('admin_head', 'inbound_build_template_options');
236
+ function inbound_build_template_options() {
237
+ global $lp_data;
238
+ global $post;
239
+
240
+ if (isset($post)&&$post->post_type=='landing-page' && (isset($_GET['lp-config']))) {
241
+ //$lp_data = lp_get_extension_data(); // Not Working
242
+ $key = get_post_meta( $post->ID, $key = 'lp-selected-template', true );
243
+
244
+ $options_array = $lp_data[$key]['settings'];
245
+
246
+ foreach ($options_array as $key => $value) {
247
+ $name = str_replace(array('-'),'_', $value['id']);
248
+ echo "$" . $name . " = " . 'lp_get_value(' . '$'. 'post, ' . '$'. 'key, '. " '" . $value['id'] . "' " . ');' . "\n";
249
+ echo "<br>";
250
+ }
251
+ echo "<pre>";
252
+ foreach ($options_array as $key => $value) {
253
+ $name = str_replace(array('-'),'_', $value['id']);
254
+ if($value['type'] === 'colorpicker') {
255
+ // echo "$" . $name . " = " . 'wp_cta_get_value(' . '$'. 'post, ' . '$'. 'key, '. " '" . $value['id'] . "' " . ');' . "\n";
256
+ //echo "<br>";
257
+ echo "\n";
258
+ echo "if (" . " $" . "$name " . "!= \"\" ) {";
259
+ echo "\n";
260
+ echo "echo \".css_element { color: #$" . "".$name."" . ";}\"; \n"; // change sidebar color
261
+ echo "}";
262
+ echo "\n";
263
+ }
264
+ }
265
+ echo "</pre>";
266
+ /**/
267
+ }
268
+ }
269
 
270
  ?>
modules/module.welcome.php CHANGED
@@ -49,24 +49,24 @@ class LANDINGPAGES_Welcome {
49
  public function admin_menus() {
50
  // About Page
51
  add_dashboard_page(
52
- __( 'Welcome to WordPress Landing Pages', 'edd' ),
53
- __( 'Welcome to WordPress Landing Pages', 'edd' ),
54
  $this->minimum_capability,
55
  'lp-quick-start',
56
  array( $this, 'quick_start_screen' )
57
  );
58
  // About InboundNow Page
59
  add_dashboard_page(
60
- __( 'About the Inbound Now Marketing Platform', 'edd' ),
61
- __( 'About the Inbound Now Marketing Platform', 'edd' ),
62
  $this->minimum_capability,
63
  'about-inboundnow',
64
  array( $this, 'about_inboundnow_screen' )
65
  );
66
  // Developer Page
67
  add_dashboard_page(
68
- __( 'Developers and Designers', 'edd' ),
69
- __( 'Developers and Designers', 'edd' ),
70
  $this->minimum_capability,
71
  'inbound-developers',
72
  array( $this, 'dev_designer_screen' )
@@ -262,7 +262,7 @@ class LANDINGPAGES_Welcome {
262
  $active = ($current_view === $key) ? 'nav-tab-active' : '';
263
 
264
  echo '<a class="nav-tab '.$active.'" href="'.esc_url( admin_url( add_query_arg( array( 'page' => $key ), 'index.php' ) ) ).'">';
265
- echo _e( $value, 'edd' );
266
  echo '</a>';
267
 
268
  }
@@ -301,23 +301,24 @@ class LANDINGPAGES_Welcome {
301
  font-size: 19px;
302
  }</style>
303
  <div class="wrap about-wrap" id="inbound-plugins">
304
- <h1><?php printf( __( 'Welcome to WordPress Landing Pages %s', 'edd' ), $display_version ); ?></h1>
305
- <div class="about-text" id="in-sub-head"><?php printf( __( 'Thank you for updating to the latest version! WordPress Landing Pages %s is help you convert more leads!', 'edd' ), $display_version ); ?></div>
306
- <div class="edd-badge"><?php printf( __( 'Version %s', 'edd' ), $display_version ); ?></div>
307
 
308
  <?php self::render_nav_menu();?>
309
  <div class="row">
310
  <div class='grid two-third'>
311
  <div id="creating-landing-page">
312
- <h4><?php _e( 'Create Your First Landing Page', 'edd' );?></h4>
313
  <iframe width="640" height="360" src="//www.youtube.com/embed/-VuaBUc_yfk" frameborder="0" allowfullscreen></iframe>
314
  </div>
315
  <div id="creating-landing-page">
316
- <h4><?php _e( 'How to Create Forms', 'edd' );?></h4>
317
  <iframe width="640" height="360" src="//www.youtube.com/embed/Y4M_g9wkRXw" frameborder="0" allowfullscreen></iframe>
318
  </div>
319
  <div id="creating-landing-page">
320
- <!-- Running A/B Tests -->
 
321
  </div>
322
  <div id="creating-landing-page">
323
  <!-- Creating Landing Page with current active Theme -->
@@ -336,16 +337,16 @@ class LANDINGPAGES_Welcome {
336
  <h4>Quick Links</h4>
337
  <ul id="inbound-setting-links">
338
  <li>
339
- <a href="<?php echo esc_url( admin_url( add_query_arg( array( 'post_type' => 'landing-page', 'page' => 'lp_global_settings' ), 'edit.php' ) ) ); ?>"><?php _e( 'Go to WordPress Landing Pages Settings', 'edd' ); ?></a>
340
  </li>
341
  <li>
342
- <a href="<?php echo esc_url( admin_url( add_query_arg( array( 'post_type' => 'landing-page', 'page' => 'lp_manage_templates' ), 'edit.php' ) ) ); ?>"><?php _e( 'Manage Your Landing Page Templates', 'edd' ); ?></a>
343
  </li>
344
  <li>
345
- <a href="<?php echo esc_url( admin_url( add_query_arg( array( 'post_type' => 'landing-page' ), 'post-new.php' ) ) ); ?>"><?php _e( 'Create New Landing Page', 'edd' ); ?></a>
346
  </li>
347
  <li>
348
- <a href="<?php echo esc_url( admin_url( add_query_arg( array( 'post_type' => 'landing-page', 'page' => 'inbound-forms-redirect' ), 'edit.php' ) ) ); ?>"><?php _e( 'Create Landing Page Forms', 'edd' ); ?></a>
349
  </li>
350
  </ul>
351
  </div>
@@ -436,18 +437,18 @@ class LANDINGPAGES_Welcome {
436
  </style>
437
 
438
  <div class="wrap about-wrap">
439
- <h1><?php printf( __( 'Turbo Charge Your Marketing', 'edd' ), $display_version ); ?></h1>
440
- <div class="about-text" id="in-sub-head"><?php printf( __( 'WordPress Landing Pages is only one piece of Inbound Now\'s Marketing Platform', 'edd' ), $display_version ); ?></div>
441
 
442
  <?php self::render_nav_menu();?>
443
 
444
 
445
- <p class="about-description"><?php _e( 'To have an effective marketing strategy for your site you need to incorporate a comprehensive conversion strategy to capture visitors attention, get them clicking, and convert them on a web form or landing page.', 'edd' ); ?></p>
446
 
447
  <div class="row" id="inbound-plugins">
448
  <div class="grid one-third">
449
  <div class="content-box default">
450
- <h4>Capture visitor attention with</h4>
451
 
452
  <h3 style="text-align: center;">WordPress Calls to Action</h3>
453
 
@@ -455,15 +456,15 @@ class LANDINGPAGES_Welcome {
455
  <span class="inbound-check">✔</span>
456
  </div>
457
 
458
- <p class="intro-p"><b>Convert more website traffic</b> with visually
459
- appealing calls to action</p>
460
 
461
  <div class='circle-wrap'>
462
  <span class="inbound-check">✔</span>
463
  </div>
464
 
465
- <p class="intro-p">A/B test your marketing tactics and <b>improve your
466
- sites conversion rates</b></p>
467
 
468
  <div class="inbound-button-holder">
469
  <div class='dl-button'>
@@ -477,7 +478,7 @@ class LANDINGPAGES_Welcome {
477
 
478
  <div class="grid one-third">
479
  <div class="content-box default">
480
- <h4>Convert website visitors with</h4>
481
 
482
  <h3>WordPress Landing Pages</h3>
483
 
@@ -485,13 +486,13 @@ class LANDINGPAGES_Welcome {
485
  <span class="inbound-check">✔</span>
486
  </div>
487
 
488
- <p class="intro-p"><b>Generate more web leads</b> with pages specifically designed for conversion</p>
489
 
490
  <div class='circle-wrap'>
491
  <span class="inbound-check">✔</span>
492
  </div>
493
 
494
- <p class="intro-p">A/B Test Landing Page effectiveness for <b>continual optimization & improvement</b></p>
495
 
496
  <div class="inbound-button-holder">
497
  <div class='dl-button'>
@@ -505,7 +506,7 @@ class LANDINGPAGES_Welcome {
505
 
506
  <div class="grid one-third">
507
  <div class="content-box default">
508
- <h4>Followup &amp; Close the deal with</h4>
509
 
510
  <h3>WordPress Leads</h3>
511
 
@@ -513,17 +514,17 @@ class LANDINGPAGES_Welcome {
513
  <span class="inbound-check">✔</span>
514
  </div>
515
 
516
- <p class="intro-p">Gather & leverage lead intelligence on
517
- visitors to <b>close more deals</b></p>
518
 
519
  <div class='circle-wrap'>
520
  <span class="inbound-check">✔</span>
521
  </div>
522
 
523
- <p class="intro-p">Track page views, site conversions,
524
- demographics, geolocation, social media data and more.</p>
525
 
526
- <p class="intro-p">Know everything a lead has seen and done on your site before you contact them</p>
527
 
528
  <div class="inbound-button-holder">
529
  <div class='dl-button'>
@@ -563,16 +564,16 @@ class LANDINGPAGES_Welcome {
563
  color: #21759B;
564
  }</style>
565
  <div class="wrap about-wrap" id="inbound-plugins">
566
- <h1><?php printf( __( 'Welcome to WordPress Landing Pages %s', 'edd' ), $display_version ); ?></h1>
567
- <div class="about-text" id="in-sub-head"><?php printf( __( 'Learn How to Build Custom Templates & Add Value to Your Clients', 'edd' ), $display_version ); ?></div>
568
- <div class="edd-badge"><?php printf( __( 'Version %s', 'edd' ), $display_version ); ?></div>
569
 
570
  <?php self::render_nav_menu();?>
571
  <div class="row">
572
  <div class='grid two-third'>
573
- <p class="about-description"><?php _e( 'WordPress Landing Pages was built as a platform to allow anyone to create and use their own landing page designs.', 'edd' ); ?></p>
574
 
575
- <p class="about-description"><?php _e( 'Infuse your designs with powerful A/B testing functionality and give clients the ability to edit options on the backend with ease.', 'edd' ); ?></p>
576
 
577
  <h1 style="text-decoration: none; text-align: center;"><a target="_blank" id="create-templates" class='button' href="http://docs.inboundnow.com/landing-pages/dev/creating-templates">Create Your Own Templates</a></h1>
578
 
49
  public function admin_menus() {
50
  // About Page
51
  add_dashboard_page(
52
+ __( 'Welcome to WordPress Landing Pages', LANDINGPAGES_TEXT_DOMAIN),
53
+ __( 'Welcome to WordPress Landing Pages', LANDINGPAGES_TEXT_DOMAIN),
54
  $this->minimum_capability,
55
  'lp-quick-start',
56
  array( $this, 'quick_start_screen' )
57
  );
58
  // About InboundNow Page
59
  add_dashboard_page(
60
+ __( 'About the Inbound Now Marketing Platform', LANDINGPAGES_TEXT_DOMAIN),
61
+ __( 'About the Inbound Now Marketing Platform', LANDINGPAGES_TEXT_DOMAIN),
62
  $this->minimum_capability,
63
  'about-inboundnow',
64
  array( $this, 'about_inboundnow_screen' )
65
  );
66
  // Developer Page
67
  add_dashboard_page(
68
+ __( 'Developers and Designers', LANDINGPAGES_TEXT_DOMAIN),
69
+ __( 'Developers and Designers', LANDINGPAGES_TEXT_DOMAIN),
70
  $this->minimum_capability,
71
  'inbound-developers',
72
  array( $this, 'dev_designer_screen' )
262
  $active = ($current_view === $key) ? 'nav-tab-active' : '';
263
 
264
  echo '<a class="nav-tab '.$active.'" href="'.esc_url( admin_url( add_query_arg( array( 'page' => $key ), 'index.php' ) ) ).'">';
265
+ echo _e( $value, LANDINGPAGES_TEXT_DOMAIN);
266
  echo '</a>';
267
 
268
  }
301
  font-size: 19px;
302
  }</style>
303
  <div class="wrap about-wrap" id="inbound-plugins">
304
+ <h1><?php printf( __( 'Welcome to WordPress Landing Pages %s', LANDINGPAGES_TEXT_DOMAIN), $display_version ); ?></h1>
305
+ <div class="about-text" id="in-sub-head"><?php printf( __( 'Thank you for updating to the latest version! WordPress Landing Pages %s is help you convert more leads!', LANDINGPAGES_TEXT_DOMAIN), $display_version ); ?></div>
306
+ <div class="edd-badge"><?php printf( __( 'Version %s', LANDINGPAGES_TEXT_DOMAIN), $display_version ); ?></div>
307
 
308
  <?php self::render_nav_menu();?>
309
  <div class="row">
310
  <div class='grid two-third'>
311
  <div id="creating-landing-page">
312
+ <h4><?php _e( 'Create Your First Landing Page', LANDINGPAGES_TEXT_DOMAIN);?></h4>
313
  <iframe width="640" height="360" src="//www.youtube.com/embed/-VuaBUc_yfk" frameborder="0" allowfullscreen></iframe>
314
  </div>
315
  <div id="creating-landing-page">
316
+ <h4><?php _e( 'How to Create Forms', LANDINGPAGES_TEXT_DOMAIN);?></h4>
317
  <iframe width="640" height="360" src="//www.youtube.com/embed/Y4M_g9wkRXw" frameborder="0" allowfullscreen></iframe>
318
  </div>
319
  <div id="creating-landing-page">
320
+ <h4><?php _e( 'Creating Landing Pages with your Current Theme Template', LANDINGPAGES_TEXT_DOMAIN);?></h4>
321
+ <iframe width="640" height="360" src="//www.youtube.com/embed/pQzmx4ooL1M?list=UUCqiE-EcfDjaKGXSxtegcyg" frameborder="0" allowfullscreen></iframe>
322
  </div>
323
  <div id="creating-landing-page">
324
  <!-- Creating Landing Page with current active Theme -->
337
  <h4>Quick Links</h4>
338
  <ul id="inbound-setting-links">
339
  <li>
340
+ <a href="<?php echo esc_url( admin_url( add_query_arg( array( 'post_type' => 'landing-page', 'page' => 'lp_global_settings' ), 'edit.php' ) ) ); ?>"><?php _e( 'Go to WordPress Landing Pages Settings', LANDINGPAGES_TEXT_DOMAIN); ?></a>
341
  </li>
342
  <li>
343
+ <a href="<?php echo esc_url( admin_url( add_query_arg( array( 'post_type' => 'landing-page', 'page' => 'lp_manage_templates' ), 'edit.php' ) ) ); ?>"><?php _e( 'Manage Your Landing Page Templates', LANDINGPAGES_TEXT_DOMAIN); ?></a>
344
  </li>
345
  <li>
346
+ <a href="<?php echo esc_url( admin_url( add_query_arg( array( 'post_type' => 'landing-page' ), 'post-new.php' ) ) ); ?>"><?php _e( 'Create New Landing Page', LANDINGPAGES_TEXT_DOMAIN); ?></a>
347
  </li>
348
  <li>
349
+ <a href="<?php echo esc_url( admin_url( add_query_arg( array( 'post_type' => 'landing-page', 'page' => 'inbound-forms-redirect' ), 'edit.php' ) ) ); ?>"><?php _e( 'Create Landing Page Forms', LANDINGPAGES_TEXT_DOMAIN); ?></a>
350
  </li>
351
  </ul>
352
  </div>
437
  </style>
438
 
439
  <div class="wrap about-wrap">
440
+ <h1><?php printf( __( 'Turbo Charge Your Marketing', LANDINGPAGES_TEXT_DOMAIN), $display_version ); ?></h1>
441
+ <div class="about-text" id="in-sub-head"><?php printf( __( 'WordPress Landing Pages is only one piece of Inbound Now\'s Marketing Platform', LANDINGPAGES_TEXT_DOMAIN), $display_version ); ?></div>
442
 
443
  <?php self::render_nav_menu();?>
444
 
445
 
446
+ <p class="about-description"><?php _e( 'To have an effective marketing strategy for your site you need to incorporate a comprehensive conversion strategy to capture visitors attention, get them clicking, and convert them on a web form or landing page.', LANDINGPAGES_TEXT_DOMAIN); ?></p>
447
 
448
  <div class="row" id="inbound-plugins">
449
  <div class="grid one-third">
450
  <div class="content-box default">
451
+ <h4><?php _e('Capture visitor attention with' , LANDINGPAGES_TEXT_DOMAIN); ?></h4>
452
 
453
  <h3 style="text-align: center;">WordPress Calls to Action</h3>
454
 
456
  <span class="inbound-check">✔</span>
457
  </div>
458
 
459
+ <p class="intro-p"><?php _e('<b>Convert more website traffic</b> with visually
460
+ appealing calls to action' , LANDINGPAGES_TEXT_DOMAIN); ?></p>
461
 
462
  <div class='circle-wrap'>
463
  <span class="inbound-check">✔</span>
464
  </div>
465
 
466
+ <p class="intro-p"><?php _e('A/B test your marketing tactics and <b>improve your
467
+ sites conversion rates' , LANDINGPAGES_TEXT_DOMAIN); ?></b></p>
468
 
469
  <div class="inbound-button-holder">
470
  <div class='dl-button'>
478
 
479
  <div class="grid one-third">
480
  <div class="content-box default">
481
+ <h4><?php _e( 'Convert website visitors with' , LANDINGPAGES_TEXT_DOMAIN); ?></h4>
482
 
483
  <h3>WordPress Landing Pages</h3>
484
 
486
  <span class="inbound-check">✔</span>
487
  </div>
488
 
489
+ <p class="intro-p"><?php _e('<b>Generate more web leads</b> with pages specifically designed for conversion' , LANDINGPAGES_TEXT_DOMAIN); ?></p>
490
 
491
  <div class='circle-wrap'>
492
  <span class="inbound-check">✔</span>
493
  </div>
494
 
495
+ <p class="intro-p"><?php _e('A/B Test Landing Page effectiveness for <b>continual optimization & improvement</b>' , LANDINGPAGES_TEXT_DOMAIN); ?></p>
496
 
497
  <div class="inbound-button-holder">
498
  <div class='dl-button'>
506
 
507
  <div class="grid one-third">
508
  <div class="content-box default">
509
+ <h4><?php _e('Followup &amp; Close the deal with' , LANDINGPAGES_TEXT_DOMAIN); ?></h4>
510
 
511
  <h3>WordPress Leads</h3>
512
 
514
  <span class="inbound-check">✔</span>
515
  </div>
516
 
517
+ <p class="intro-p"><?php _e('Gather & leverage lead intelligence on
518
+ visitors to <b>close more deals</b>' , LANDINGPAGES_TEXT_DOMAIN); ?></p>
519
 
520
  <div class='circle-wrap'>
521
  <span class="inbound-check">✔</span>
522
  </div>
523
 
524
+ <p class="intro-p"><?php _e('Track page views, site conversions,
525
+ demographics, geolocation, social media data and more.' , LANDINGPAGES_TEXT_DOMAIN); ?></p>
526
 
527
+ <p class="intro-p"><?php _e('Know everything a lead has seen and done on your site before you contact them' , LANDINGPAGES_TEXT_DOMAIN); ?></p>
528
 
529
  <div class="inbound-button-holder">
530
  <div class='dl-button'>
564
  color: #21759B;
565
  }</style>
566
  <div class="wrap about-wrap" id="inbound-plugins">
567
+ <h1><?php printf( __( 'Welcome to WordPress Landing Pages %s', LANDINGPAGES_TEXT_DOMAIN), $display_version ); ?></h1>
568
+ <div class="about-text" id="in-sub-head"><?php printf( __( 'Learn How to Build Custom Templates & Add Value to Your Clients', LANDINGPAGES_TEXT_DOMAIN), $display_version ); ?></div>
569
+ <div class="edd-badge"><?php printf( __( 'Version %s', LANDINGPAGES_TEXT_DOMAIN), $display_version ); ?></div>
570
 
571
  <?php self::render_nav_menu();?>
572
  <div class="row">
573
  <div class='grid two-third'>
574
+ <p class="about-description"><?php _e( 'WordPress Landing Pages was built as a platform to allow anyone to create and use their own landing page designs.', LANDINGPAGES_TEXT_DOMAIN); ?></p>
575
 
576
+ <p class="about-description"><?php _e( 'Infuse your designs with powerful A/B testing functionality and give clients the ability to edit options on the backend with ease.', LANDINGPAGES_TEXT_DOMAIN); ?></p>
577
 
578
  <h1 style="text-decoration: none; text-align: center;"><a target="_blank" id="create-templates" class='button' href="http://docs.inboundnow.com/landing-pages/dev/creating-templates">Create Your Own Templates</a></h1>
579
 
modules/module.widgets.php CHANGED
@@ -14,13 +14,13 @@ class lp_conversion_area_widget extends WP_Widget
14
  function lp_conversion_area_widget() {
15
 
16
  /* Widget settings. */
17
- $widget_ops = array( 'classname' => 'class_lp_conversion_area_widget', 'description' => __('Use this widget on your landing page sidebar. This sidebar replaces the normal sidebar while using your default theme as a template, or other inactive themes as landing page templates.', 'lp_sidebar_widget') );
18
 
19
  /* Widget control settings. */
20
  $control_ops = array( 'width' => 300, 'height' => 350, 'id_base' => 'id_lp_conversion_area_widget' );
21
 
22
  /* Create the widget. */
23
- $this->WP_Widget( 'id_lp_conversion_area_widget', __('Landing Pages: Conversion Area Widget', 'lp_sidebar_widget'), $widget_ops, $control_ops );
24
  }
25
 
26
  /**
@@ -85,7 +85,7 @@ class lp_conversion_area_widget extends WP_Widget
85
 
86
  <!-- Widget Title: Text Input -->
87
  <p>
88
- This box will render the landing page conversion area on the 'default' template.
89
  </p>
90
 
91
  <?php
14
  function lp_conversion_area_widget() {
15
 
16
  /* Widget settings. */
17
+ $widget_ops = array( 'classname' => 'class_lp_conversion_area_widget', 'description' => __('Use this widget on your landing page sidebar. This sidebar replaces the normal sidebar while using your default theme as a template, or other inactive themes as landing page templates.', LANDINGPAGES_TEXT_DOMAIN) );
18
 
19
  /* Widget control settings. */
20
  $control_ops = array( 'width' => 300, 'height' => 350, 'id_base' => 'id_lp_conversion_area_widget' );
21
 
22
  /* Create the widget. */
23
+ $this->WP_Widget( 'id_lp_conversion_area_widget', __('Landing Pages: Conversion Area Widget', LANDINGPAGES_TEXT_DOMAIN), $widget_ops, $control_ops );
24
  }
25
 
26
  /**
85
 
86
  <!-- Widget Title: Text Input -->
87
  <p>
88
+ <?php _e("This box will render the landing page conversion area on the 'default' template." , LANDINGPAGES_TEXT_DOMAIN); ?>
89
  </p>
90
 
91
  <?php
readme.txt CHANGED
@@ -1,13 +1,13 @@
1
  === WordPress Landing Pages ===
2
 
3
  Contributors: David Wells, adbox
4
- Donate link: mailto:Hudson.Atwell@gmail.com
5
  License: GPLv2 or later
6
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
  Tags: landing pages, inbound marketing, conversion pages, split testing, a b test, a b testing, a/b test, a/b testing, coming soon page, email list, landing page, list building, maintenance page, squeeze page, inbound now, landing-pages, splash pages, cpa, click tracking, goal tracking, analytics, free landing page templates
8
  Requires at least: 3.6
9
- Tested up to: 3.5
10
- Stable Tag: 1.3.5
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
 
@@ -69,7 +69,15 @@ The plugin is also fully extendable and has a number of <a href='http://docs.inb
69
 
70
  == Changelog ==
71
 
72
- = 1.3.5 =
 
 
 
 
 
 
 
 
73
 
74
  * Added: New Shortcodes! Fancy List and Column shortcodes
75
  * Added: Added email confirmation support to Inbound Forms tool
1
  === WordPress Landing Pages ===
2
 
3
  Contributors: David Wells, adbox
4
+ Donate link: mailto:marketplace@inboundnow.com
5
  License: GPLv2 or later
6
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
  Tags: landing pages, inbound marketing, conversion pages, split testing, a b test, a b testing, a/b test, a/b testing, coming soon page, email list, landing page, list building, maintenance page, squeeze page, inbound now, landing-pages, splash pages, cpa, click tracking, goal tracking, analytics, free landing page templates
8
  Requires at least: 3.6
9
+ Tested up to: 3.7.1
10
+ Stable Tag: 1.3.7
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
 
69
 
70
  == Changelog ==
71
 
72
+ = 1.3.7 =
73
+ * Added: Shortcode now automatically render in landing page option echos in templates
74
+ * Updated: Visual Editor tool
75
+ * Updated: Template selection interface
76
+ * Updated: Major updates to core templates, CSS tweaks and fixes
77
+ * Fixed: Shortcode insert into correct editor box
78
+ * Fixed: editor always on HTML view
79
+
80
+ = 1.3.6 =
81
 
82
  * Added: New Shortcodes! Fancy List and Column shortcodes
83
  * Added: Added email confirmation support to Inbound Forms tool
shared/classes/form.class.php CHANGED
@@ -373,8 +373,17 @@ class InboundForms {
373
  /* this is where we will pull the admin email from the form meta data */
374
 
375
  //$form_settings = json_decode($form_meta_data['form_settings'] , true);
376
- $email_to = $form_meta_data['inbound_notify_email'];
 
 
 
 
377
  $notification_status = $form_meta_data['inbound_email_send_notification'][0];
 
 
 
 
 
378
 
379
  //print_r($form_meta_data); exit;
380
 
@@ -498,6 +507,8 @@ class InboundForms {
498
  if(isset($_POST['inbound_form_id']) && $_POST['inbound_form_id'] != "") {
499
  $form_id = $_POST['inbound_form_id'];
500
  // Increment Form Conversion Count
 
 
501
  $form_conversion_num = get_post_meta($form_id, 'inbound_form_conversion_count', true);
502
  $form_conversion_num++;
503
  update_post_meta( $form_id, 'inbound_form_conversion_count', $form_conversion_num );
@@ -505,16 +516,17 @@ class InboundForms {
505
 
506
  if ( isset($_POST['email'])) {
507
  $lead_conversion_list = get_post_meta( $form_id, 'lead_conversion_list', TRUE );
508
- if ($lead_conversion_list)
509
- {
510
- $lead_conversion_list = json_decode($lead_conversion_list,true);
511
  $lead_count = count($lead_conversion_list);
512
  $lead_conversion_list[$lead_count]['email'] = $_POST['email'];
 
513
  $lead_conversion_list = json_encode($lead_conversion_list);
514
  update_post_meta( $form_id, 'lead_conversion_list', $lead_conversion_list );
515
  } else {
516
  $lead_conversion_list = array();
517
  $lead_conversion_list[0]['email'] = $_POST['email'];
 
518
  $lead_conversion_list = json_encode($lead_conversion_list);
519
  update_post_meta( $form_id, 'lead_conversion_list', $lead_conversion_list );
520
  }
373
  /* this is where we will pull the admin email from the form meta data */
374
 
375
  //$form_settings = json_decode($form_meta_data['form_settings'] , true);
376
+ // defaults
377
+ $notification_status = "off";
378
+ $email_to = false;
379
+
380
+ if (isset($form_meta_data['inbound_email_send_notification'][0])){
381
  $notification_status = $form_meta_data['inbound_email_send_notification'][0];
382
+ }
383
+
384
+ if (isset($form_meta_data['inbound_notify_email'])){
385
+ $email_to = $form_meta_data['inbound_notify_email'];
386
+ }
387
 
388
  //print_r($form_meta_data); exit;
389
 
507
  if(isset($_POST['inbound_form_id']) && $_POST['inbound_form_id'] != "") {
508
  $form_id = $_POST['inbound_form_id'];
509
  // Increment Form Conversion Count
510
+ //$time = current_time( 'timestamp', 0 ); // Current wordpress time from settings
511
+ // $wordpress_date_time = date("Y-m-d G:i:s", $time);
512
  $form_conversion_num = get_post_meta($form_id, 'inbound_form_conversion_count', true);
513
  $form_conversion_num++;
514
  update_post_meta( $form_id, 'inbound_form_conversion_count', $form_conversion_num );
516
 
517
  if ( isset($_POST['email'])) {
518
  $lead_conversion_list = get_post_meta( $form_id, 'lead_conversion_list', TRUE );
519
+ $lead_conversion_list = json_decode($lead_conversion_list,true);
520
+ if (is_array($lead_conversion_list)) {
 
521
  $lead_count = count($lead_conversion_list);
522
  $lead_conversion_list[$lead_count]['email'] = $_POST['email'];
523
+ // $lead_conversion_list[$lead_count]['date'] = $wordpress_date_time;
524
  $lead_conversion_list = json_encode($lead_conversion_list);
525
  update_post_meta( $form_id, 'lead_conversion_list', $lead_conversion_list );
526
  } else {
527
  $lead_conversion_list = array();
528
  $lead_conversion_list[0]['email'] = $_POST['email'];
529
+ // $lead_conversion_list[0]['date'] = $wordpress_date_time;
530
  $lead_conversion_list = json_encode($lead_conversion_list);
531
  update_post_meta( $form_id, 'lead_conversion_list', $lead_conversion_list );
532
  }
shared/inbound-shortcodes/css/form-cpt.css CHANGED
@@ -1,4 +1,4 @@
1
- #side-sortables, #cpt-form-serialize, #inbound-shortcodes-form-wrap #inbound-shortcodes-form-head, #inbound_insert_shortcode_two, #shortcode_cancel, #entire-form-area, .inbound_tbody.parent-inbound_shortcode_helper-block-one, #postdivrich, #inbound-email-response, #postcustom {
2
  display: none;
3
  }
4
  #inbound-email-response h2{
1
+ #side-sortables, #cpt-form-serialize, #inbound-shortcodes-form-wrap #inbound-shortcodes-form-head, #inbound_insert_shortcode_two, #shortcode_cancel, #entire-form-area, .inbound_tbody.parent-inbound_shortcode_helper-block-one, #postdivrich, #inbound-email-response, #postcustom, #cpt-form-serialize-default {
2
  display: none;
3
  }
4
  #inbound-email-response h2{
shared/inbound-shortcodes/inbound-shortcodes.php CHANGED
@@ -190,7 +190,7 @@ class InboundShortcodes {
190
  return; ?>
191
  <div id="entire-form-area">
192
  <div id="cpt-form-shortcode"><?php echo $popup;?></div>
193
- <div id="cpt-form-serialize"><?php echo $form_serialize;?></div>
194
  <div id="form-leads-list">
195
  <h2>Form Conversions</h2>
196
  <ol id="form-lead-ul">
@@ -199,7 +199,8 @@ class InboundShortcodes {
199
  {
200
  $lead_conversion_list = json_decode($lead_conversion_list,true);
201
  foreach ($lead_conversion_list as $key => $value) {
202
- echo '<li>'.$lead_conversion_list[$key]['email'].'</li>';
 
203
  }
204
 
205
  } else {
190
  return; ?>
191
  <div id="entire-form-area">
192
  <div id="cpt-form-shortcode"><?php echo $popup;?></div>
193
+ <div id="cpt-form-serialize-default"><?php echo $form_serialize;?></div>
194
  <div id="form-leads-list">
195
  <h2>Form Conversions</h2>
196
  <ol id="form-lead-ul">
199
  {
200
  $lead_conversion_list = json_decode($lead_conversion_list,true);
201
  foreach ($lead_conversion_list as $key => $value) {
202
+ $email = $lead_conversion_list[$key]['email'];
203
+ echo '<li><a title="View this Lead" 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>';
204
  }
205
 
206
  } else {
shared/inbound-shortcodes/js/shortcodes-plugins.js CHANGED
@@ -19,9 +19,14 @@
19
 
20
  jQuery.fn.appendo=function(opt){this.each(function(){jQuery.appendo.init(this,opt)});return this};jQuery.appendo=function(){var myself=this;this.opt={};this.init=function(obj,opt){var options=jQuery.extend({labelAdd:'Add Row',labelDel:'Remove',allowDelete:true,copyHandlers:false,focusFirst:true,onAdd:function(){return true},onDel:function(){return true},maxRows:0,wrapClass:'appendoButtons',wrapStyle:{padding:'.4em .2em .5em'},buttonStyle:{marginRight:'.5em'},subSelect:'tr:last'},myself.opt,opt);var $cpy=jQuery(obj).find(options.subSelect).clone(options.copyHandlers);var rows=1;var $add_btn=jQuery('#form-child-add').click(clicked_add),$del_btn=new_button(options.labelDel).click(clicked_del).hide();function add_row(){var $dup=$cpy.clone(options.copyHandlers);$dup.appendTo(obj);update_buttons(1);if(typeof(options.onAdd)=="function")options.onAdd($dup);if(!!options.focusFirst)$dup.find('input:first').focus()};function del_row(){var $row=jQuery(obj).find(options.subSelect);if((typeof(options.onDel)!="function")||options.onDel($row)){$row.remove();update_buttons(-1)}};function update_buttons(rowdelta){rows=rows+(rowdelta||0);(options.allowDelete&&(rows>1))?$del_btn.show():$del_btn.hide()};function new_button(label){return jQuery('<button />').css(options.buttonStyle).html(label)};function nothing(e){e.stopPropagation();e.preventDefault();return false};function clicked_add(e){if(!options.maxRows||(rows<options.maxRows))add_row();return nothing(e)};function clicked_del(e){if(rows>1)del_row();return nothing(e)};update_buttons()};return this}();
21
 
 
 
 
22
 
23
- var default_form_1 = '<div class="child-clone-rows ui-sortable"><div id="_inbound_shortcodes_child_newoutput" class="hidden">[inbound_field label="First Name" type="text" description="" required="0" dropdown="" radio="" placeholder="" html="" dynamic=""][inbound_field label="Last Name" type="text" description="" required="0" dropdown="" radio="" placeholder="" html="" dynamic=""][inbound_field label="Email" type="text" description="" required="1" dropdown="" radio="" placeholder="" html="" dynamic=""]</div><div id="_inbound_shortcodes_child_output" class="hidden">[inbound_field label="{{label}}" type="{{field_type}}" description="{{description}}" required="{{required}}" dropdown="{{dropdown_options}}" radio="{{radio_options}}" placeholder="{{placeholder}}" html="{{html_block_options}}" dynamic="{{hidden_input_options}}"]</div><div id="field_instructions">Drag and drop fields to reorder.</div><div class="child-clone-row" id="row-1"><span class="form-field-row-number">1</span><a class="child-clone-row-remove child-options-toggles">Remove</a><a href="#" class="child-clone-row-shrink child-options-toggles ">Expand</a><a href="#" class="child-clone-row-exact child-options-toggles ">Clone</a><ul class="child-clone-row-form"><li class="child-clone-row-form-row "><div class="child-clone-row-label row-class-text"><label>Field Label</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_label" id="inbound_shortcode_label" placeholder="Enter the Form Field Label. Example: First Name" value="First Name"><span class="child-clone-row-desc"></span></div></li><li class="child-clone-row-form-row minimize-class tog-hide-it"><div class="child-clone-row-label row-class-select"><label>Field Type</label></div><div class="child-clone-row-field row-class-select row-child-class-select"><select data-field-name="field_type" name="inbound_shortcode_field_type" id="inbound_shortcode_field_type" class="inbound-shortcodes-child-input select inbound-shortcodes-select"><option value="text">Single Line Text</option><option value="textarea">Paragraph Text</option><option value="dropdown">Dropdown Options</option><option value="radio">Radio Select</option><option value="number">Number</option><option value="checkbox">Checkbox</option><option value="date">Date Field</option><option value="time">Time Field</option><option value="hidden">Hidden Field</option></select><span class="child-clone-row-desc">Select an form field type</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-dropdown tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Dropdown choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-dropdown" class="inbound-shortcodes-child-input" name="inbound_shortcode_dropdown_options" id="inbound_shortcode_dropdown_options" placeholder="Choice 1, Choice 2, Choice 3" value=""><span class="child-clone-row-desc">Enter Your Dropdown Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-radio tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Radio Choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-radio" class="inbound-shortcodes-child-input" name="inbound_shortcode_radio_options" id="inbound_shortcode_radio_options" placeholder="Choice 1, Choice 2" value=""><span class="child-clone-row-desc">Enter Your Radio Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-html-block tog-hide-it"><div class="child-clone-row-label row-class-textarea"><label>HTML Block</label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_html_block_options" id="inbound_shortcode_html_block_options"></textarea><span class="child-clone-row-desc">This is a raw HTML block in the form. Insert text/HTML</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class- tog-hide-it"><div class="child-clone-row-label row-class-helper-block"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-helper-block row-child-class-helper-block"><span class="child-clone-row-desc"><span class="show-advanced-fields">Show advanced fields</span></span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Field Placeholder <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_placeholder" id="inbound_shortcode_placeholder" placeholder="" value=""><span class="child-clone-row-desc">Put field placeholder text here. Only works for normal text inputs</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it"><div class="child-clone-row-label row-class-textarea"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_description" id="inbound_shortcode_description"></textarea><span class="child-clone-row-desc">Put field description here.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it"><div class="child-clone-row-label row-class-checkbox"><label>Required Field? <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-checkbox row-child-class-checkbox"><label for="inbound_shortcode_required"><input type="checkbox" class="inbound-shortcodes-child-input inbound-shortcodes-checkbox" name="inbound_shortcode_required" id="inbound_shortcode_required"></label></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Dynamic Field Filling</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_hidden_input_options" id="inbound_shortcode_hidden_input_options" placeholder="enter dynamic url parameter example: utm_campaign " value=""><span class="child-clone-row-desc">Enter Your Dynamic URL parameter</span></div></li></ul></div><div class="child-clone-row" id="row-2"><span class="form-field-row-number">2</span><a class="child-clone-row-remove child-options-toggles">Remove</a><a href="#" class="child-clone-row-shrink child-options-toggles ">Expand</a><a href="#" class="child-clone-row-exact child-options-toggles ">Clone</a><ul class="child-clone-row-form"><li class="child-clone-row-form-row "><div class="child-clone-row-label row-class-text"><label>Field Label</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_label" id="inbound_shortcode_label" placeholder="Enter the Form Field Label. Example: First Name" value="Last Name"><span class="child-clone-row-desc"></span></div></li><li class="child-clone-row-form-row minimize-class tog-hide-it"><div class="child-clone-row-label row-class-select"><label>Field Type</label></div><div class="child-clone-row-field row-class-select row-child-class-select"><select data-field-name="field_type" name="inbound_shortcode_field_type" id="inbound_shortcode_field_type" class="inbound-shortcodes-child-input select inbound-shortcodes-select"><option value="text">Single Line Text</option><option value="textarea">Paragraph Text</option><option value="dropdown">Dropdown Options</option><option value="radio">Radio Select</option><option value="number">Number</option><option value="checkbox">Checkbox</option><option value="date">Date Field</option><option value="time">Time Field</option><option value="hidden">Hidden Field</option></select><span class="child-clone-row-desc">Select an form field type</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-dropdown tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Dropdown choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-dropdown" class="inbound-shortcodes-child-input" name="inbound_shortcode_dropdown_options" id="inbound_shortcode_dropdown_options" placeholder="Choice 1, Choice 2, Choice 3" value=""><span class="child-clone-row-desc">Enter Your Dropdown Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-radio tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Radio Choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-radio" class="inbound-shortcodes-child-input" name="inbound_shortcode_radio_options" id="inbound_shortcode_radio_options" placeholder="Choice 1, Choice 2" value=""><span class="child-clone-row-desc">Enter Your Radio Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-html-block tog-hide-it"><div class="child-clone-row-label row-class-textarea"><label>HTML Block</label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_html_block_options" id="inbound_shortcode_html_block_options"></textarea><span class="child-clone-row-desc">This is a raw HTML block in the form. Insert text/HTML</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class- tog-hide-it"><div class="child-clone-row-label row-class-helper-block"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-helper-block row-child-class-helper-block"><span class="child-clone-row-desc"><span class="show-advanced-fields">Show advanced fields</span></span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Field Placeholder <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_placeholder" id="inbound_shortcode_placeholder" placeholder="" value=""><span class="child-clone-row-desc">Put field placeholder text here. Only works for normal text inputs</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it"><div class="child-clone-row-label row-class-textarea"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_description" id="inbound_shortcode_description"></textarea><span class="child-clone-row-desc">Put field description here.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it"><div class="child-clone-row-label row-class-checkbox"><label>Required Field? <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-checkbox row-child-class-checkbox"><label for="inbound_shortcode_required"><input type="checkbox" class="inbound-shortcodes-child-input inbound-shortcodes-checkbox" name="inbound_shortcode_required" id="inbound_shortcode_required"></label></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Dynamic Field Filling</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_hidden_input_options" id="inbound_shortcode_hidden_input_options" placeholder="enter dynamic url parameter example: utm_campaign " value=""><span class="child-clone-row-desc">Enter Your Dynamic URL parameter</span></div></li></ul></div><div class="child-clone-row" id="row-3"><span class="form-field-row-number">3</span><a class="child-clone-row-remove child-options-toggles">Remove</a><a href="#" class="child-clone-row-shrink child-options-toggles ">Minimize</a><a href="#" class="child-clone-row-exact child-options-toggles ">Clone</a><ul class="child-clone-row-form"><li class="child-clone-row-form-row "><div class="child-clone-row-label row-class-text"><label>Field Label</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_label" id="inbound_shortcode_label" placeholder="Enter the Form Field Label. Example: First Name" value="Email"><span class="child-clone-row-desc"></span></div></li><li class="child-clone-row-form-row minimize-class"><div class="child-clone-row-label row-class-select"><label>Field Type</label></div><div class="child-clone-row-field row-class-select row-child-class-select"><select data-field-name="field_type" name="inbound_shortcode_field_type" id="inbound_shortcode_field_type" class="inbound-shortcodes-child-input select inbound-shortcodes-select"><option value="text">Single Line Text</option><option value="textarea">Paragraph Text</option><option value="dropdown">Dropdown Options</option><option value="radio">Radio Select</option><option value="number">Number</option><option value="checkbox">Checkbox</option><option value="date">Date Field</option><option value="time">Time Field</option><option value="hidden">Hidden Field</option></select><span class="child-clone-row-desc">Select an form field type</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-dropdown"><div class="child-clone-row-label row-class-text"><label>Dropdown choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-dropdown" class="inbound-shortcodes-child-input" name="inbound_shortcode_dropdown_options" id="inbound_shortcode_dropdown_options" placeholder="Choice 1, Choice 2, Choice 3" value=""><span class="child-clone-row-desc">Enter Your Dropdown Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-radio"><div class="child-clone-row-label row-class-text"><label>Radio Choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-radio" class="inbound-shortcodes-child-input" name="inbound_shortcode_radio_options" id="inbound_shortcode_radio_options" placeholder="Choice 1, Choice 2" value=""><span class="child-clone-row-desc">Enter Your Radio Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-html-block"><div class="child-clone-row-label row-class-textarea"><label>HTML Block</label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_html_block_options" id="inbound_shortcode_html_block_options"></textarea><span class="child-clone-row-desc">This is a raw HTML block in the form. Insert text/HTML</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-"><div class="child-clone-row-label row-class-helper-block"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-helper-block row-child-class-helper-block"><span class="child-clone-row-desc"><span class="show-advanced-fields hide-advanced-options">Hide advanced options</span></span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced" style="display: list-item;"><div class="child-clone-row-label row-class-text"><label>Field Placeholder <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_placeholder" id="inbound_shortcode_placeholder" placeholder="" value="Enter Your Email Address"><span class="child-clone-row-desc">Put field placeholder text here. Only works for normal text inputs</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced" style="display: list-item;"><div class="child-clone-row-label row-class-textarea"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_description" id="inbound_shortcode_description"></textarea><span class="child-clone-row-desc">Put field description here.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced" style="display: list-item;"><div class="child-clone-row-label row-class-checkbox"><label>Required Field? <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-checkbox row-child-class-checkbox"><label for="inbound_shortcode_required"><input type="checkbox" class="inbound-shortcodes-child-input inbound-shortcodes-checkbox" name="inbound_shortcode_required" id="inbound_shortcode_required" checked></label></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced" style="display: list-item;"><div class="child-clone-row-label row-class-text"><label>Dynamic Field Filling</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_hidden_input_options" id="inbound_shortcode_hidden_input_options" placeholder="enter dynamic url parameter example: utm_campaign " value=""><span class="child-clone-row-desc">Enter Your Dynamic URL parameter</span></div></li></ul></div></div>';
 
 
24
 
25
- var default_form_2 = '<div class="child-clone-rows ui-sortable"><div id="_inbound_shortcodes_child_newoutput" class="hidden">[inbound_field label="First Name" type="text" description="" required="0" dropdown="" radio="" checkbox="" placeholder="Enter Your First Name" html="" dynamic=""] [inbound_field label="Last Name" type="text" description="" required="0" dropdown="" radio="" checkbox="" placeholder="Enter Your Last Name" html="" dynamic=""] [inbound_field label="Email" type="text" description="" required="1" dropdown="" radio="" checkbox="" placeholder="Enter Your Email Address" html="" dynamic=""] [inbound_field label="Company Name" type="text" description="" required="0" dropdown="" radio="" checkbox="" placeholder="Enter Your Company Name" html="" dynamic=""] [inbound_field label="Job title" type="text" description="" required="0" dropdown="" radio="" checkbox="" placeholder="Enter Your Job Title" html="" dynamic=""] </div><div id="_inbound_shortcodes_child_output" class="hidden">[inbound_field label="{{label}}" type="{{field_type}}" description="{{description}}" required="{{required}}" dropdown="{{dropdown_options}}" radio="{{radio_options}}" checkbox="{{checkbox_options}}" placeholder="{{placeholder}}" html="{{html_block_options}}" dynamic="{{hidden_input_options}}"]</div><div id="field_instructions">Drag and drop fields to reorder.</div><div class="child-clone-row" id="row-1"><span class="form-field-row-number">1</span><a class="child-clone-row-remove child-options-toggles">Remove</a><a href="#" class="child-clone-row-shrink child-options-toggles ">Expand</a><a href="#" class="child-clone-row-exact child-options-toggles ">Clone</a><ul class="child-clone-row-form"><li class="child-clone-row-form-row "><div class="child-clone-row-label row-class-text"><label>Field Label</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_label_1" id="inbound_shortcode_label" placeholder="Enter the Form Field Label. Example: First Name" value="First Name"><span class="child-clone-row-desc"></span></div></li><li class="child-clone-row-form-row minimize-class tog-hide-it"><div class="child-clone-row-label row-class-select"><label>Field Type</label></div><div class="child-clone-row-field row-class-select row-child-class-select"><select data-field-name="field_type" name="inbound_shortcode_field_type_1" id="inbound_shortcode_field_type" class="inbound-shortcodes-child-input select inbound-shortcodes-select"><option value="text">Single Line Text</option><option value="textarea">Paragraph Text</option><option value="dropdown">Dropdown Options</option><option value="radio">Radio Select</option><option value="number">Number</option><option value="checkbox">Checkbox</option><option value="date">Date Field</option><option value="time">Time Field</option><option value="hidden">Hidden Field</option></select><span class="child-clone-row-desc">Select an form field type</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-dropdown tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Dropdown choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-dropdown" class="inbound-shortcodes-child-input" name="inbound_shortcode_dropdown_options_1" id="inbound_shortcode_dropdown_options" placeholder="Choice 1, Choice 2, Choice 3" value=""><span class="child-clone-row-desc">Enter Your Dropdown Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-radio tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Radio Choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-radio" class="inbound-shortcodes-child-input" name="inbound_shortcode_radio_options_1" id="inbound_shortcode_radio_options" placeholder="Choice 1, Choice 2" value=""><span class="child-clone-row-desc">Enter Your Radio Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-checkbox tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Checkbox choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-checkbox" class="inbound-shortcodes-child-input" name="inbound_shortcode_checkbox_options_1" id="inbound_shortcode_checkbox_options" placeholder="Choice 1, Choice 2, Choice 3" value=""><span class="child-clone-row-desc">Enter Your Checkbox Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-html-block tog-hide-it"><div class="child-clone-row-label row-class-textarea"><label>HTML Block</label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_html_block_options_1" id="inbound_shortcode_html_block_options"></textarea><span class="child-clone-row-desc">This is a raw HTML block in the form. Insert text/HTML</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class- tog-hide-it"><div class="child-clone-row-label row-class-helper-block"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-helper-block row-child-class-helper-block"><span class="child-clone-row-desc"><span class="show-advanced-fields">Show advanced fields</span></span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it"><div class="child-clone-row-label row-class-checkbox"><label>Required Field? <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-checkbox row-child-class-checkbox"><label for="inbound_shortcode_required"><input type="checkbox" class="inbound-shortcodes-child-input inbound-shortcodes-checkbox" name="inbound_shortcode_required_1" id="inbound_shortcode_required"></label></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Field Placeholder <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_placeholder_1" id="inbound_shortcode_placeholder" placeholder="" value="Enter Your First Name"><span class="child-clone-row-desc">Put field placeholder text here. Only works for normal text inputs</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it"><div class="child-clone-row-label row-class-textarea"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_description_1" id="inbound_shortcode_description"></textarea><span class="child-clone-row-desc">Put field description here.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Dynamic Field Filling</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_hidden_input_options_1" id="inbound_shortcode_hidden_input_options" placeholder="enter dynamic url parameter example: utm_campaign " value=""><span class="child-clone-row-desc">Enter Your Dynamic URL parameter</span></div></li></ul></div><div class="child-clone-row" id="row-2"><span class="form-field-row-number">2</span><a class="child-clone-row-remove child-options-toggles">Remove</a><a href="#" class="child-clone-row-shrink child-options-toggles ">Expand</a><a href="#" class="child-clone-row-exact child-options-toggles ">Clone</a><ul class="child-clone-row-form"><li class="child-clone-row-form-row "><div class="child-clone-row-label row-class-text"><label>Field Label</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_label_2" id="inbound_shortcode_label" placeholder="Enter the Form Field Label. Example: First Name" value="Last Name"><span class="child-clone-row-desc"></span></div></li><li class="child-clone-row-form-row minimize-class tog-hide-it"><div class="child-clone-row-label row-class-select"><label>Field Type</label></div><div class="child-clone-row-field row-class-select row-child-class-select"><select data-field-name="field_type" name="inbound_shortcode_field_type_2" id="inbound_shortcode_field_type" class="inbound-shortcodes-child-input select inbound-shortcodes-select"><option value="text">Single Line Text</option><option value="textarea">Paragraph Text</option><option value="dropdown">Dropdown Options</option><option value="radio">Radio Select</option><option value="number">Number</option><option value="checkbox">Checkbox</option><option value="date">Date Field</option><option value="time">Time Field</option><option value="hidden">Hidden Field</option></select><span class="child-clone-row-desc">Select an form field type</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-dropdown tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Dropdown choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-dropdown" class="inbound-shortcodes-child-input" name="inbound_shortcode_dropdown_options_2" id="inbound_shortcode_dropdown_options" placeholder="Choice 1, Choice 2, Choice 3" value=""><span class="child-clone-row-desc">Enter Your Dropdown Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-radio tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Radio Choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-radio" class="inbound-shortcodes-child-input" name="inbound_shortcode_radio_options_2" id="inbound_shortcode_radio_options" placeholder="Choice 1, Choice 2" value=""><span class="child-clone-row-desc">Enter Your Radio Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-checkbox tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Checkbox choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-checkbox" class="inbound-shortcodes-child-input" name="inbound_shortcode_checkbox_options_2" id="inbound_shortcode_checkbox_options" placeholder="Choice 1, Choice 2, Choice 3" value=""><span class="child-clone-row-desc">Enter Your Checkbox Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-html-block tog-hide-it"><div class="child-clone-row-label row-class-textarea"><label>HTML Block</label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_html_block_options_2" id="inbound_shortcode_html_block_options"></textarea><span class="child-clone-row-desc">This is a raw HTML block in the form. Insert text/HTML</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class- tog-hide-it"><div class="child-clone-row-label row-class-helper-block"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-helper-block row-child-class-helper-block"><span class="child-clone-row-desc"><span class="show-advanced-fields">Show advanced fields</span></span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it"><div class="child-clone-row-label row-class-checkbox"><label>Required Field? <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-checkbox row-child-class-checkbox"><label for="inbound_shortcode_required"><input type="checkbox" class="inbound-shortcodes-child-input inbound-shortcodes-checkbox" name="inbound_shortcode_required_2" id="inbound_shortcode_required"></label></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Field Placeholder <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_placeholder_2" id="inbound_shortcode_placeholder" placeholder="" value="Enter Your Last Name"><span class="child-clone-row-desc">Put field placeholder text here. Only works for normal text inputs</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it"><div class="child-clone-row-label row-class-textarea"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_description_2" id="inbound_shortcode_description"></textarea><span class="child-clone-row-desc">Put field description here.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Dynamic Field Filling</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_hidden_input_options_2" id="inbound_shortcode_hidden_input_options" placeholder="enter dynamic url parameter example: utm_campaign " value=""><span class="child-clone-row-desc">Enter Your Dynamic URL parameter</span></div></li></ul></div><div class="child-clone-row" id="row-3"><span class="form-field-row-number">3</span><a class="child-clone-row-remove child-options-toggles">Remove</a><a href="#" class="child-clone-row-shrink child-options-toggles ">Minimize</a><a href="#" class="child-clone-row-exact child-options-toggles ">Clone</a><ul class="child-clone-row-form"><li class="child-clone-row-form-row "><div class="child-clone-row-label row-class-text"><label>Field Label</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_label_3" id="inbound_shortcode_label" placeholder="Enter the Form Field Label. Example: First Name" value="Email"><span class="child-clone-row-desc"></span></div></li><li class="child-clone-row-form-row minimize-class"><div class="child-clone-row-label row-class-select"><label>Field Type</label></div><div class="child-clone-row-field row-class-select row-child-class-select"><select data-field-name="field_type" name="inbound_shortcode_field_type_3" id="inbound_shortcode_field_type" class="inbound-shortcodes-child-input select inbound-shortcodes-select"><option value="text">Single Line Text</option><option value="textarea">Paragraph Text</option><option value="dropdown">Dropdown Options</option><option value="radio">Radio Select</option><option value="number">Number</option><option value="checkbox">Checkbox</option><option value="date">Date Field</option><option value="time">Time Field</option><option value="hidden">Hidden Field</option></select><span class="child-clone-row-desc">Select an form field type</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-dropdown"><div class="child-clone-row-label row-class-text"><label>Dropdown choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-dropdown" class="inbound-shortcodes-child-input" name="inbound_shortcode_dropdown_options_3" id="inbound_shortcode_dropdown_options" placeholder="Choice 1, Choice 2, Choice 3" value=""><span class="child-clone-row-desc">Enter Your Dropdown Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-radio"><div class="child-clone-row-label row-class-text"><label>Radio Choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-radio" class="inbound-shortcodes-child-input" name="inbound_shortcode_radio_options_3" id="inbound_shortcode_radio_options" placeholder="Choice 1, Choice 2" value=""><span class="child-clone-row-desc">Enter Your Radio Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-checkbox"><div class="child-clone-row-label row-class-text"><label>Checkbox choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-checkbox" class="inbound-shortcodes-child-input" name="inbound_shortcode_checkbox_options_3" id="inbound_shortcode_checkbox_options" placeholder="Choice 1, Choice 2, Choice 3" value=""><span class="child-clone-row-desc">Enter Your Checkbox Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-html-block"><div class="child-clone-row-label row-class-textarea"><label>HTML Block</label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_html_block_options_3" id="inbound_shortcode_html_block_options"></textarea><span class="child-clone-row-desc">This is a raw HTML block in the form. Insert text/HTML</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-"><div class="child-clone-row-label row-class-helper-block"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-helper-block row-child-class-helper-block"><span class="child-clone-row-desc"><span class="show-advanced-fields">Show advanced fields</span></span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced"><div class="child-clone-row-label row-class-checkbox"><label>Required Field? <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-checkbox row-child-class-checkbox"><label for="inbound_shortcode_required"><input type="checkbox" class="inbound-shortcodes-child-input inbound-shortcodes-checkbox" name="inbound_shortcode_required_3" id="inbound_shortcode_required" checked="checked"></label></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced"><div class="child-clone-row-label row-class-text"><label>Field Placeholder <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_placeholder_3" id="inbound_shortcode_placeholder" placeholder="" value="Enter Your Email Address"><span class="child-clone-row-desc">Put field placeholder text here. Only works for normal text inputs</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced"><div class="child-clone-row-label row-class-textarea"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_description_3" id="inbound_shortcode_description"></textarea><span class="child-clone-row-desc">Put field description here.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced"><div class="child-clone-row-label row-class-text"><label>Dynamic Field Filling</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_hidden_input_options_3" id="inbound_shortcode_hidden_input_options" placeholder="enter dynamic url parameter example: utm_campaign " value=""><span class="child-clone-row-desc">Enter Your Dynamic URL parameter</span></div></li></ul></div><div class="child-clone-row" id="row-4"><span class="form-field-row-number">4</span><a class="child-clone-row-remove child-options-toggles">Remove</a><a href="#" class="child-clone-row-shrink child-options-toggles ">Expand</a><a href="#" class="child-clone-row-exact child-options-toggles ">Clone</a><ul class="child-clone-row-form"><li class="child-clone-row-form-row "><div class="child-clone-row-label row-class-text"><label>Field Label</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_label_4" id="inbound_shortcode_label" placeholder="Enter the Form Field Label. Example: First Name" value="Company Name"><span class="child-clone-row-desc"></span></div></li><li class="child-clone-row-form-row minimize-class tog-hide-it"><div class="child-clone-row-label row-class-select"><label>Field Type</label></div><div class="child-clone-row-field row-class-select row-child-class-select"><select data-field-name="field_type" name="inbound_shortcode_field_type_4" id="inbound_shortcode_field_type" class="inbound-shortcodes-child-input select inbound-shortcodes-select"><option value="text">Single Line Text</option><option value="textarea">Paragraph Text</option><option value="dropdown">Dropdown Options</option><option value="radio">Radio Select</option><option value="number">Number</option><option value="checkbox">Checkbox</option><option value="date">Date Field</option><option value="time">Time Field</option><option value="hidden">Hidden Field</option></select><span class="child-clone-row-desc">Select an form field type</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-dropdown tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Dropdown choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-dropdown" class="inbound-shortcodes-child-input" name="inbound_shortcode_dropdown_options_4" id="inbound_shortcode_dropdown_options" placeholder="Choice 1, Choice 2, Choice 3" value=""><span class="child-clone-row-desc">Enter Your Dropdown Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-radio tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Radio Choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-radio" class="inbound-shortcodes-child-input" name="inbound_shortcode_radio_options_4" id="inbound_shortcode_radio_options" placeholder="Choice 1, Choice 2" value=""><span class="child-clone-row-desc">Enter Your Radio Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-checkbox tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Checkbox choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-checkbox" class="inbound-shortcodes-child-input" name="inbound_shortcode_checkbox_options_4" id="inbound_shortcode_checkbox_options" placeholder="Choice 1, Choice 2, Choice 3" value=""><span class="child-clone-row-desc">Enter Your Checkbox Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-html-block tog-hide-it"><div class="child-clone-row-label row-class-textarea"><label>HTML Block</label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_html_block_options_4" id="inbound_shortcode_html_block_options"></textarea><span class="child-clone-row-desc">This is a raw HTML block in the form. Insert text/HTML</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class- tog-hide-it"><div class="child-clone-row-label row-class-helper-block"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-helper-block row-child-class-helper-block"><span class="child-clone-row-desc"><span class="show-advanced-fields">Show advanced fields</span></span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it"><div class="child-clone-row-label row-class-checkbox"><label>Required Field? <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-checkbox row-child-class-checkbox"><label for="inbound_shortcode_required"><input type="checkbox" class="inbound-shortcodes-child-input inbound-shortcodes-checkbox" name="inbound_shortcode_required_4" id="inbound_shortcode_required"></label></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Field Placeholder <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_placeholder_4" id="inbound_shortcode_placeholder" placeholder="" value="Enter Your Company Name"><span class="child-clone-row-desc">Put field placeholder text here. Only works for normal text inputs</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it"><div class="child-clone-row-label row-class-textarea"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_description_4" id="inbound_shortcode_description"></textarea><span class="child-clone-row-desc">Put field description here.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Dynamic Field Filling</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_hidden_input_options_4" id="inbound_shortcode_hidden_input_options" placeholder="enter dynamic url parameter example: utm_campaign " value=""><span class="child-clone-row-desc">Enter Your Dynamic URL parameter</span></div></li></ul></div><div class="child-clone-row" id="row-5"><span class="form-field-row-number">5</span><a class="child-clone-row-remove child-options-toggles">Remove</a><a href="#" class="child-clone-row-shrink child-options-toggles ">Minimize</a><a href="#" class="child-clone-row-exact child-options-toggles ">Clone</a><ul class="child-clone-row-form"><li class="child-clone-row-form-row "><div class="child-clone-row-label row-class-text"><label>Field Label</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_label_5" id="inbound_shortcode_label" placeholder="Enter the Form Field Label. Example: First Name" value="Job title"><span class="child-clone-row-desc"></span></div></li><li class="child-clone-row-form-row minimize-class tog-hide-it"><div class="child-clone-row-label row-class-select"><label>Field Type</label></div><div class="child-clone-row-field row-class-select row-child-class-select"><select data-field-name="field_type" name="inbound_shortcode_field_type_5" id="inbound_shortcode_field_type" class="inbound-shortcodes-child-input select inbound-shortcodes-select"><option value="text">Single Line Text</option><option value="textarea">Paragraph Text</option><option value="dropdown">Dropdown Options</option><option value="radio">Radio Select</option><option value="number">Number</option><option value="checkbox">Checkbox</option><option value="date">Date Field</option><option value="time">Time Field</option><option value="hidden">Hidden Field</option></select><span class="child-clone-row-desc">Select an form field type</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-dropdown tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Dropdown choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-dropdown" class="inbound-shortcodes-child-input" name="inbound_shortcode_dropdown_options_5" id="inbound_shortcode_dropdown_options" placeholder="Choice 1, Choice 2, Choice 3" value=""><span class="child-clone-row-desc">Enter Your Dropdown Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-radio tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Radio Choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-radio" class="inbound-shortcodes-child-input" name="inbound_shortcode_radio_options_5" id="inbound_shortcode_radio_options" placeholder="Choice 1, Choice 2" value=""><span class="child-clone-row-desc">Enter Your Radio Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-checkbox tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Checkbox choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-checkbox" class="inbound-shortcodes-child-input" name="inbound_shortcode_checkbox_options_5" id="inbound_shortcode_checkbox_options" placeholder="Choice 1, Choice 2, Choice 3" value=""><span class="child-clone-row-desc">Enter Your Checkbox Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-html-block tog-hide-it"><div class="child-clone-row-label row-class-textarea"><label>HTML Block</label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_html_block_options_5" id="inbound_shortcode_html_block_options"></textarea><span class="child-clone-row-desc">This is a raw HTML block in the form. Insert text/HTML</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class- tog-hide-it"><div class="child-clone-row-label row-class-helper-block"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-helper-block row-child-class-helper-block"><span class="child-clone-row-desc"><span class="show-advanced-fields">Show advanced fields</span></span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it"><div class="child-clone-row-label row-class-checkbox"><label>Required Field? <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-checkbox row-child-class-checkbox"><label for="inbound_shortcode_required"><input type="checkbox" class="inbound-shortcodes-child-input inbound-shortcodes-checkbox" name="inbound_shortcode_required_5" id="inbound_shortcode_required"></label></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Field Placeholder <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_placeholder_5" id="inbound_shortcode_placeholder" placeholder="" value="Enter Your Job Title"><span class="child-clone-row-desc">Put field placeholder text here. Only works for normal text inputs</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it"><div class="child-clone-row-label row-class-textarea"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_description_5" id="inbound_shortcode_description"></textarea><span class="child-clone-row-desc">Put field description here.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced tog-hide-it"><div class="child-clone-row-label row-class-text"><label>Dynamic Field Filling</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_hidden_input_options_5" id="inbound_shortcode_hidden_input_options" placeholder="enter dynamic url parameter example: utm_campaign " value=""><span class="child-clone-row-desc">Enter Your Dynamic URL parameter</span></div></li></ul></div></div>';
26
-
27
- var default_form_3 = '<div class="child-clone-rows ui-sortable"><div id="_inbound_shortcodes_child_newoutput" class="hidden">[inbound_field label="Email" type="text" description="" required="1" dropdown="" radio="" placeholder="" html="" dynamic=""]</div><div id="_inbound_shortcodes_child_output" class="hidden">[inbound_field label="{{label}}" type="{{field_type}}" description="{{description}}" required="{{required}}" dropdown="{{dropdown_options}}" radio="{{radio_options}}" placeholder="{{placeholder}}" html="{{html_block_options}}" dynamic="{{hidden_input_options}}"]</div><div id="field_instructions">Drag and drop fields to reorder.</div><div class="child-clone-row" id="row-1"><span class="form-field-row-number">1</span><a class="child-clone-row-remove child-options-toggles">Remove</a><a href="#" class="child-clone-row-shrink child-options-toggles ">Minimize</a><a href="#" class="child-clone-row-exact child-options-toggles ">Clone</a><ul class="child-clone-row-form"><li class="child-clone-row-form-row "><div class="child-clone-row-label row-class-text"><label>Field Label</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_label" id="inbound_shortcode_label" placeholder="Enter the Form Field Label. Example: First Name" value="Email"><span class="child-clone-row-desc"></span></div></li><li class="child-clone-row-form-row minimize-class"><div class="child-clone-row-label row-class-select"><label>Field Type</label></div><div class="child-clone-row-field row-class-select row-child-class-select"><select data-field-name="field_type" name="inbound_shortcode_field_type" id="inbound_shortcode_field_type" class="inbound-shortcodes-child-input select inbound-shortcodes-select"><option value="text">Single Line Text</option><option value="textarea">Paragraph Text</option><option value="dropdown">Dropdown Options</option><option value="radio">Radio Select</option><option value="number">Number</option><option value="checkbox">Checkbox</option><option value="date">Date Field</option><option value="time">Time Field</option><option value="hidden">Hidden Field</option></select><span class="child-clone-row-desc">Select an form field type</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-dropdown"><div class="child-clone-row-label row-class-text"><label>Dropdown choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-dropdown" class="inbound-shortcodes-child-input" name="inbound_shortcode_dropdown_options" id="inbound_shortcode_dropdown_options" placeholder="Choice 1, Choice 2, Choice 3" value=""><span class="child-clone-row-desc">Enter Your Dropdown Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-radio"><div class="child-clone-row-label row-class-text"><label>Radio Choices</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide=" reveal-radio" class="inbound-shortcodes-child-input" name="inbound_shortcode_radio_options" id="inbound_shortcode_radio_options" placeholder="Choice 1, Choice 2" value=""><span class="child-clone-row-desc">Enter Your Radio Options. Separate by commas.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-hidden-row reveal-html-block"><div class="child-clone-row-label row-class-textarea"><label>HTML Block</label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_html_block_options" id="inbound_shortcode_html_block_options"></textarea><span class="child-clone-row-desc">This is a raw HTML block in the form. Insert text/HTML</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-"><div class="child-clone-row-label row-class-helper-block"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-helper-block row-child-class-helper-block"><span class="child-clone-row-desc"><span class="hide-advanced-options">Hide advanced options</span></span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced" style="display: list-item;"><div class="child-clone-row-label row-class-checkbox"><label>Required Field? <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-checkbox row-child-class-checkbox"><label for="inbound_shortcode_required"><input type="checkbox" class="inbound-shortcodes-child-input inbound-shortcodes-checkbox" name="inbound_shortcode_required" id="inbound_shortcode_required" checked="checked"></label></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced" style="display: list-item;"><div class="child-clone-row-label row-class-text"><label>Field Placeholder <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_placeholder" id="inbound_shortcode_placeholder" placeholder="" value=""><span class="child-clone-row-desc">Put field placeholder text here. Only works for normal text inputs</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced" style="display: list-item;"><div class="child-clone-row-label row-class-textarea"><label>Field Description <span class="small-optional-text">(optional)</span></label></div><div class="child-clone-row-field row-class-textarea row-child-class-textarea"><textarea class="inbound-shortcodes-child-input inbound-shortcodes-textarea" name="inbound_shortcode_description" id="inbound_shortcode_description"></textarea><span class="child-clone-row-desc">Put field description here.</span></div></li><li class="child-clone-row-form-row minimize-class inbound-tab-class-advanced" style="display: list-item;"><div class="child-clone-row-label row-class-text"><label>Dynamic Field Filling</label></div><div class="child-clone-row-field row-class-text row-child-class-text"><input type="text" data-conditional-hide="" class="inbound-shortcodes-child-input" name="inbound_shortcode_hidden_input_options" id="inbound_shortcode_hidden_input_options" placeholder="enter dynamic url parameter example: utm_campaign " value=""><span class="child-clone-row-desc">Enter Your Dynamic URL parameter</span></div></li></ul></div></div>';
19
 
20
  jQuery.fn.appendo=function(opt){this.each(function(){jQuery.appendo.init(this,opt)});return this};jQuery.appendo=function(){var myself=this;this.opt={};this.init=function(obj,opt){var options=jQuery.extend({labelAdd:'Add Row',labelDel:'Remove',allowDelete:true,copyHandlers:false,focusFirst:true,onAdd:function(){return true},onDel:function(){return true},maxRows:0,wrapClass:'appendoButtons',wrapStyle:{padding:'.4em .2em .5em'},buttonStyle:{marginRight:'.5em'},subSelect:'tr:last'},myself.opt,opt);var $cpy=jQuery(obj).find(options.subSelect).clone(options.copyHandlers);var rows=1;var $add_btn=jQuery('#form-child-add').click(clicked_add),$del_btn=new_button(options.labelDel).click(clicked_del).hide();function add_row(){var $dup=$cpy.clone(options.copyHandlers);$dup.appendTo(obj);update_buttons(1);if(typeof(options.onAdd)=="function")options.onAdd($dup);if(!!options.focusFirst)$dup.find('input:first').focus()};function del_row(){var $row=jQuery(obj).find(options.subSelect);if((typeof(options.onDel)!="function")||options.onDel($row)){$row.remove();update_buttons(-1)}};function update_buttons(rowdelta){rows=rows+(rowdelta||0);(options.allowDelete&&(rows>1))?$del_btn.show():$del_btn.hide()};function new_button(label){return jQuery('<button />').css(options.buttonStyle).html(label)};function nothing(e){e.stopPropagation();e.preventDefault();return false};function clicked_add(e){if(!options.maxRows||(rows<options.maxRows))add_row();return nothing(e)};function clicked_del(e){if(rows>1)del_row();return nothing(e)};update_buttons()};return this}();
21
 
22
+ var default_form_2 = {
23
+ form_fields: "inbound_shortcode_redirect_2=&inbound_shortcode_notify_3=&inbound_shortcode_layout=vertical&inbound_shortcode_labels=top&inbound_shortcode_submit_8=Submit&inbound_shortcode_width_9=&inbound_shortcode_mailchimp_list_id=0&inbound_shortcode_label_1=First+Name&inbound_shortcode_field_type_1=text&inbound_shortcode_dropdown_options_1=&inbound_shortcode_radio_options_1=&inbound_shortcode_checkbox_options_1=&inbound_shortcode_html_block_options_1=&inbound_shortcode_placeholder_1=Enter+Your+First+Name&inbound_shortcode_description_1=&inbound_shortcode_hidden_input_options_1=&inbound_shortcode_label_2=Last+Name&inbound_shortcode_field_type_2=text&inbound_shortcode_dropdown_options_2=&inbound_shortcode_radio_options_2=&inbound_shortcode_checkbox_options_2=&inbound_shortcode_html_block_options_2=&inbound_shortcode_placeholder_2=Enter+Your+Last+Name&inbound_shortcode_description_2=&inbound_shortcode_hidden_input_options_2=&inbound_shortcode_label_3=Email&inbound_shortcode_field_type_3=text&inbound_shortcode_dropdown_options_3=&inbound_shortcode_radio_options_3=&inbound_shortcode_checkbox_options_3=&inbound_shortcode_html_block_options_3=&inbound_shortcode_required_3=on&inbound_shortcode_placeholder_3=Enter+Your+Email+Address&inbound_shortcode_description_3=&inbound_shortcode_hidden_input_options_3=&inbound_shortcode_label_4=Company+Name&inbound_shortcode_field_type_4=text&inbound_shortcode_dropdown_options_4=&inbound_shortcode_radio_options_4=&inbound_shortcode_checkbox_options_4=&inbound_shortcode_html_block_options_4=&inbound_shortcode_placeholder_4=Enter+Your+Company+Name&inbound_shortcode_description_4=&inbound_shortcode_hidden_input_options_4=&inbound_shortcode_label_5=Job+title&inbound_shortcode_field_type_5=text&inbound_shortcode_dropdown_options_5=&inbound_shortcode_radio_options_5=&inbound_shortcode_checkbox_options_5=&inbound_shortcode_html_block_options_5=&inbound_shortcode_placeholder_5=Enter+Your+Job+Title&inbound_shortcode_description_5=&inbound_shortcode_hidden_input_options_5=",
24
+ field_length: 5};
25
 
26
+ var default_form_1 = {
27
+ form_fields: "inbound_shortcode_redirect_2=&inbound_shortcode_notify_3=&inbound_shortcode_layout=vertical&inbound_shortcode_labels=top&inbound_shortcode_submit_8=Submit&inbound_shortcode_width_9=&inbound_shortcode_label_1=First+Name&inbound_shortcode_field_type_1=text&inbound_shortcode_dropdown_options_1=&inbound_shortcode_radio_options_1=&inbound_shortcode_checkbox_options_1=&inbound_shortcode_html_block_options_1=&inbound_shortcode_placeholder_1=Enter+Your+First+Name&inbound_shortcode_description_1=&inbound_shortcode_hidden_input_options_1=&inbound_shortcode_map_to_1=&inbound_shortcode_label_2=Last+Name&inbound_shortcode_field_type_2=text&inbound_shortcode_dropdown_options_2=&inbound_shortcode_radio_options_2=&inbound_shortcode_checkbox_options_2=&inbound_shortcode_html_block_options_2=&inbound_shortcode_placeholder_2=Enter+Your+Last+Name&inbound_shortcode_description_2=&inbound_shortcode_hidden_input_options_2=&inbound_shortcode_map_to_2=&inbound_shortcode_label_3=Email&inbound_shortcode_field_type_3=text&inbound_shortcode_dropdown_options_3=&inbound_shortcode_radio_options_3=&inbound_shortcode_checkbox_options_3=&inbound_shortcode_html_block_options_3=&inbound_shortcode_required_3=on&inbound_shortcode_placeholder_3=Enter+Your+Email+Address&inbound_shortcode_description_3=&inbound_shortcode_hidden_input_options_3=&inbound_shortcode_map_to_3=",
28
+ field_length: 3};
29
 
30
+ var default_form_3 = {
31
+ form_fields: "inbound_shortcode_redirect_2=&inbound_shortcode_notify_3=&inbound_shortcode_layout=vertical&inbound_shortcode_labels=top&inbound_shortcode_submit_8=Submit&inbound_shortcode_width_9=&inbound_shortcode_label_1=Email&inbound_shortcode_field_type_1=text&inbound_shortcode_dropdown_options_1=&inbound_shortcode_radio_options_1=&inbound_shortcode_checkbox_options_1=&inbound_shortcode_html_block_options_1=&inbound_shortcode_required_1=on&inbound_shortcode_placeholder_1=&inbound_shortcode_description_1=&inbound_shortcode_hidden_input_options_1=&inbound_shortcode_map_to_1=wpleads_email_address",
32
+ field_length: 1};
shared/inbound-shortcodes/js/shortcodes.js CHANGED
@@ -218,24 +218,7 @@
218
  var W = ( 1720 < width ) ? 1720 : width;
219
  var this_height = ajaxCont.height();
220
  console.log(this_height);
221
- if( no_preview ) {
222
- ajaxCont.css({
223
- paddingTop: 0,
224
- paddingLeft: 0,
225
- height: (tbWindow.outerHeight()-47),
226
- overflow: 'scroll',
227
- width: 562
228
- });
229
-
230
- tbWindow.css({
231
- width: ajaxCont.outerWidth(),
232
- marginLeft: -(ajaxCont.outerWidth()/2)
233
- });
234
 
235
- jQuery('#inbound-shortcodes-popup').addClass('no_preview');
236
- }
237
-
238
- else {
239
  ajaxCont.css({
240
  padding: 0,
241
  // height: (tbWindow.outerHeight()-47),
@@ -260,28 +243,77 @@
260
  marginTop: -((ajaxCont.outerHeight() + 47)/2),
261
  top: '50%'
262
  }); */
263
- }
264
 
265
  },
266
- update_fields : function () {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
267
  var insert_form = jQuery("#inbound_shortcode_insert_default").val();
268
  var current_code = jQuery("#inbound_current_shortcode").val();
269
  if ( current_code === "quick_insert_inbound_form_shortcode") {
270
  return false;
271
  }
 
272
  var patt = /^form_/gi;
273
  var result = patt.test(insert_form);
274
  if (result === false){
 
275
  var form_insert = window[insert_form];
 
 
276
  if (jQuery('.child-clone-row').length != "1") {
277
  if (confirm('Are you sure you want to overwrite the current form you are building? Selecting another form template will clear your current fields/settings')) {
278
- jQuery(".child-clone-rows.ui-sortable").html(form_insert);
 
 
 
 
 
 
 
 
279
  } else {
280
  jQuery("#inbound_shortcode_insert_default").val(jQuery.data(this, 'current')); // added parenthesis (edit)
281
  return false;
282
  }
283
  } else {
284
- jQuery(".child-clone-rows.ui-sortable").html(form_insert);
 
 
 
 
 
 
 
285
  }
286
  //jQuery.data("#inbound_shortcode_insert_default", 'current', jQuery("#inbound_shortcode_insert_default").val());
287
 
@@ -305,15 +337,25 @@
305
 
306
  // If form name already exists
307
  var obj = JSON.parse(str);
308
- console.log(obj);
309
-
310
-
311
  var field_count = obj.field_count;
 
 
 
312
  var form_insert = obj.form_settings_data;
 
313
  // Stop form overwrites from happening
314
  if (jQuery('.child-clone-row').length != "1") {
315
  if (confirm('Are you sure you want to overwrite the current form you are building? Selecting another form template will clear your current fields/settings')) {
316
- jQuery(".child-clone-rows.ui-sortable").html(form_insert);
 
 
 
 
 
 
 
 
317
  jQuery("#_inbound_shortcodes_newoutput").text(obj.inbound_shortcode);
318
  InboundShortcodes.generate();
319
  InboundShortcodes.generateChild();
@@ -323,7 +365,14 @@
323
  }
324
 
325
  } else {
326
- jQuery(".child-clone-rows.ui-sortable").html(form_insert);
 
 
 
 
 
 
 
327
  jQuery("#_inbound_shortcodes_newoutput").text(obj.inbound_shortcode);
328
  InboundShortcodes.generate();
329
  InboundShortcodes.generateChild();
@@ -551,8 +600,20 @@
551
  jQuery(self).text('Save Form').css('font-size', '17px');
552
  }, 5000);
553
  } else {
554
- window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, final_short_form);
 
 
 
 
 
 
 
 
555
  tb_remove();
 
 
 
 
556
  }
557
 
558
  //jQuery(worked).appendTo(s_message);
@@ -631,13 +692,29 @@
631
 
632
  jQuery('body').on('change', 'select', function () {
633
  var find_this = jQuery(this).attr('data-field-name'),
 
634
  this_val = jQuery(this).val();
635
  var parent_el = jQuery(this).parent().parent().parent();
636
- jQuery(parent_el).find(".dynamic-visable-on").hide();
637
 
638
- jQuery(parent_el).find('.reveal-' + this_val).removeClass('inbound-hidden-row').show().addClass('dynamic-visable-on');
 
 
 
639
  });
 
640
 
 
 
 
 
 
 
 
 
 
 
 
 
641
  jQuery("body").on('click', '.inbound-shortcodes-insert-cancel', function () {
642
  window.tb_remove();
643
  });
@@ -666,8 +743,20 @@
666
  var fixed_insert_val = insert_val;
667
  output_cleaned = fixed_insert_val.replace(/[a-zA-Z0-9_]*=""/g, ""); // remove empty shortcode fields
668
  }
669
- window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, output_cleaned);
 
 
 
 
 
 
 
 
670
  tb_remove();
 
 
 
 
671
  }
672
  }
673
  },
@@ -685,5 +774,22 @@
685
  jQuery("body").on('click', '.inbound-shortcodes-insert-two', function () {
686
  InboundShortcodes.insert_shortcode();
687
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
688
  });
689
 
218
  var W = ( 1720 < width ) ? 1720 : width;
219
  var this_height = ajaxCont.height();
220
  console.log(this_height);
 
 
 
 
 
 
 
 
 
 
 
 
 
221
 
 
 
 
 
222
  ajaxCont.css({
223
  padding: 0,
224
  // height: (tbWindow.outerHeight()-47),
243
  marginTop: -((ajaxCont.outerHeight() + 47)/2),
244
  top: '50%'
245
  }); */
246
+
247
 
248
  },
249
+ fill_form_fields: function(){
250
+ var SelectionData = jQuery("#cpt-form-serialize").text();
251
+ if (SelectionData != "") {
252
+
253
+ jQuery.each(SelectionData.split('&'), function (index, elem) {
254
+ var vals = elem.split('=');
255
+
256
+ var $select_val = jQuery('select[name="'+vals[0]+'"]').attr('name');
257
+ var $select = jQuery('select[name="'+vals[0]+'"]');
258
+ var $input = jQuery('input[name="'+vals[0]+'"]'); // input vals
259
+ var input_type = jQuery('input[name="'+vals[0]+'"]').attr('type');
260
+ var $checkbox = jQuery('input[name="'+vals[0]+'"]'); // input vals
261
+ var $textarea = jQuery('textarea[name="'+vals[0]+'"]'); // input vals
262
+ var separator = '';
263
+ /*if ($div.html().length > 0) {
264
+ separator = ', ';
265
+ }*/
266
+ //console.log(input_type);
267
+ $input.val(decodeURIComponent(vals[1].replace(/\+/g, ' ')));
268
+ if (input_type === 'checkbox' && vals[1] === 'on'){
269
+ $input.prop( "checked", true );
270
+ }
271
+ if ($select_val != 'inbound_shortcode_insert_default'){
272
+ $select.val(decodeURIComponent(vals[1].replace(/\+/g, ' ')));
273
+ }
274
+ $textarea.val(decodeURIComponent(vals[1].replace(/\+/g, ' ')));
275
+ });
276
+
277
+ }
278
+ },
279
+ update_fields : function () {
280
  var insert_form = jQuery("#inbound_shortcode_insert_default").val();
281
  var current_code = jQuery("#inbound_current_shortcode").val();
282
  if ( current_code === "quick_insert_inbound_form_shortcode") {
283
  return false;
284
  }
285
+
286
  var patt = /^form_/gi;
287
  var result = patt.test(insert_form);
288
  if (result === false){
289
+
290
  var form_insert = window[insert_form];
291
+ var fields = form_insert.form_fields;
292
+ var field_count = form_insert.field_length;
293
  if (jQuery('.child-clone-row').length != "1") {
294
  if (confirm('Are you sure you want to overwrite the current form you are building? Selecting another form template will clear your current fields/settings')) {
295
+ //jQuery(".child-clone-rows.ui-sortable").html(form_insert); // old dom junk
296
+ jQuery("#cpt-form-serialize").text(fields);
297
+ jQuery(".child-clone-row").remove(); // clear old fields
298
+ var i = 0;
299
+ while (i<field_count) {
300
+ jQuery("#form-child-add").click();
301
+ i++;
302
+ }
303
+ InboundShortcodes.fill_form_fields();
304
  } else {
305
  jQuery("#inbound_shortcode_insert_default").val(jQuery.data(this, 'current')); // added parenthesis (edit)
306
  return false;
307
  }
308
  } else {
309
+ jQuery("#cpt-form-serialize").text(fields);
310
+ jQuery(".child-clone-row").remove(); // clear old fields
311
+ var i = 0;
312
+ while (i<field_count) {
313
+ jQuery("#form-child-add").click();
314
+ i++;
315
+ }
316
+ InboundShortcodes.fill_form_fields();
317
  }
318
  //jQuery.data("#inbound_shortcode_insert_default", 'current', jQuery("#inbound_shortcode_insert_default").val());
319
 
337
 
338
  // If form name already exists
339
  var obj = JSON.parse(str);
340
+ //console.log(obj);
 
 
341
  var field_count = obj.field_count;
342
+ console.log(field_count);
343
+ var i = 1;
344
+ var form_values = obj.field_values;
345
  var form_insert = obj.form_settings_data;
346
+ jQuery("#cpt-form-serialize").text(form_values);
347
  // Stop form overwrites from happening
348
  if (jQuery('.child-clone-row').length != "1") {
349
  if (confirm('Are you sure you want to overwrite the current form you are building? Selecting another form template will clear your current fields/settings')) {
350
+ //jQuery(".child-clone-rows.ui-sortable").html(form_insert); // old insert method
351
+ // new method
352
+ jQuery(".child-clone-row").remove(); // clear old fields
353
+ var i = 0;
354
+ while (i<field_count) {
355
+ jQuery("#form-child-add").click();
356
+ i++;
357
+ }
358
+ InboundShortcodes.fill_form_fields();
359
  jQuery("#_inbound_shortcodes_newoutput").text(obj.inbound_shortcode);
360
  InboundShortcodes.generate();
361
  InboundShortcodes.generateChild();
365
  }
366
 
367
  } else {
368
+ //jQuery(".child-clone-rows.ui-sortable").html(form_insert); // old insert method
369
+ // new method
370
+ //jQuery(".child-clone-row").remove(); // clear old fields
371
+ while (i<field_count){
372
+ jQuery("#form-child-add").click();
373
+ i++;
374
+ }
375
+ InboundShortcodes.fill_form_fields();
376
  jQuery("#_inbound_shortcodes_newoutput").text(obj.inbound_shortcode);
377
  InboundShortcodes.generate();
378
  InboundShortcodes.generateChild();
600
  jQuery(self).text('Save Form').css('font-size', '17px');
601
  }, 5000);
602
  } else {
603
+ // set correct ID for insert
604
+ var insert_to = jQuery.cookie('inbound_shortcode_editor_name');
605
+ window.tinyMCE.execInstanceCommand(insert_to, 'mceInsertContent', false, final_short_form);
606
+ //window.tinyMCE.activeEditor.execCommand('mceInsertContent', false, output_cleaned);
607
+ /* Fix for editor not recognizing shortcode' */
608
+ var chtml= jQuery('#' + insert_to + '-html');
609
+ var ctmce= jQuery('#' + insert_to + '-tmce');
610
+ switchEditors.switchto(chtml[0]); // switch to html
611
+
612
  tb_remove();
613
+ jQuery('html, body').animate({
614
+ scrollTop: jQuery("#" + insert_to + "_InboundShortcodesButton_action").offset().top -200
615
+ }, 200);
616
+ switchEditors.switchto(ctmce[0]); // switch to tinymce
617
  }
618
 
619
  //jQuery(worked).appendTo(s_message);
692
 
693
  jQuery('body').on('change', 'select', function () {
694
  var find_this = jQuery(this).attr('data-field-name'),
695
+ exclude_status = jQuery(this).hasClass('exclude'),
696
  this_val = jQuery(this).val();
697
  var parent_el = jQuery(this).parent().parent().parent();
 
698
 
699
+ if (exclude_status != true){
700
+ jQuery(parent_el).find(".dynamic-visable-on").hide();
701
+ jQuery(parent_el).find('.reveal-' + this_val).removeClass('inbound-hidden-row').show().addClass('dynamic-visable-on');
702
+ }
703
  });
704
+ setTimeout(function() {
705
 
706
+ jQuery('.inbound_shortcode_child_tbody select').each(function(){
707
+ var find_this = jQuery(this).attr('data-field-name'),
708
+ exclude_status = jQuery(this).hasClass('exclude'),
709
+ this_val = jQuery(this).val();
710
+ var parent_el = jQuery(this).parent().parent().parent();
711
+
712
+ if (exclude_status != true){
713
+ jQuery(parent_el).find(".dynamic-visable-on").hide();
714
+ jQuery(parent_el).find('.reveal-' + this_val).removeClass('inbound-hidden-row').show().addClass('dynamic-visable-on');
715
+ }
716
+ });
717
+ }, 2000);
718
  jQuery("body").on('click', '.inbound-shortcodes-insert-cancel', function () {
719
  window.tb_remove();
720
  });
743
  var fixed_insert_val = insert_val;
744
  output_cleaned = fixed_insert_val.replace(/[a-zA-Z0-9_]*=""/g, ""); // remove empty shortcode fields
745
  }
746
+ // set correct ID for insert
747
+ var insert_to = jQuery.cookie('inbound_shortcode_editor_name');
748
+ window.tinyMCE.execInstanceCommand(insert_to, 'mceInsertContent', false, output_cleaned);
749
+ //window.tinyMCE.activeEditor.execCommand('mceInsertContent', false, output_cleaned);
750
+ /* Fix for editor not recognizing shortcode' */
751
+ var chtml= jQuery('#' + insert_to + '-html');
752
+ var ctmce= jQuery('#' + insert_to + '-tmce');
753
+ switchEditors.switchto(chtml[0]); // switch to html
754
+
755
  tb_remove();
756
+ jQuery('html, body').animate({
757
+ scrollTop: jQuery("#" + insert_to + "_InboundShortcodesButton_action").offset().top -200
758
+ }, 200);
759
+ switchEditors.switchto(ctmce[0]); // switch to tinymce
760
  }
761
  }
762
  },
774
  jQuery("body").on('click', '.inbound-shortcodes-insert-two', function () {
775
  InboundShortcodes.insert_shortcode();
776
  });
777
+ // Shortcode editor insert fix
778
+ jQuery("body").on('mouseenter', '.mceAction.mce_InboundShortcodesButton', function () {
779
+
780
+ var editor_name = jQuery(this).attr('id');
781
+ if (typeof (editor_name) != "undefined" && editor_name != null && editor_name != "") {
782
+ editor_name = editor_name.replace('_InboundShortcodesButton_action','');
783
+ } else {
784
+ return false;
785
+ }
786
+
787
+ console.log(editor_name);
788
+ jQuery.cookie('inbound_shortcode_editor_name', editor_name);
789
+ //jQuery.cookie('media_init', 1);
790
+ // tb_show('', 'media-upload.php?type=image&type=image&amp;TB_iframe=true');
791
+ return false;
792
+ }
793
+ );
794
  });
795
 
shared/inbound-shortcodes/shortcodes-fields.php CHANGED
@@ -59,6 +59,8 @@ class InboundShortcodesFields {
59
 
60
  $this->append_output('<div id="_inbound_shortcodes_output" class="hidden">'.$this->shortcode.'</div>');
61
  $this->append_output('<div id="_inbound_shortcodes_popup" class="hidden">'.$this->popup.'</div>');
 
 
62
 
63
  if( isset( $fields[$this->popup]['no_preview'] ) && $fields[$this->popup]['no_preview'] ) {
64
  $this->append_output( "\n" . '<div id="_inbound_shortcodes_preview" class="hidden">false</div>' );
@@ -184,11 +186,11 @@ class InboundShortcodesFields {
184
  $parent_row_start .= '<ul class="child-clone-row-form">';
185
 
186
  $this->append_output( $parent_row_start );
187
- $count = 0;
188
  foreach( $this->child_options as $key => $option ) {
189
  $first = $key;
190
  $uniquekey = 'inbound_shortcode_' . $first . "_" . $count;
191
- $hide_class = ($count > 0) ? 'minimize-class' : '';
192
  $original_key = $key;
193
  $key = 'inbound_shortcode_' . $key;
194
  $name = ( isset($option['name'])) ? $option['name'] : '';
@@ -241,7 +243,7 @@ class InboundShortcodesFields {
241
 
242
  case 'select' :
243
  $child_output = $child_row_start;
244
- $child_output .= '<select data-field-name="'.$original_key.'" name="'. $uniquekey .'" id="'. $key .'" class="inbound-shortcodes-child-input select inbound-shortcodes-select">';
245
  foreach( $option['options'] as $value => $option ) {
246
  $selected = ( $std == $value ) ? ' selected="selected"' : '';
247
  $child_output .= '<option'. $selected .' value="'. $value .'">'. $option .'</option>';
59
 
60
  $this->append_output('<div id="_inbound_shortcodes_output" class="hidden">'.$this->shortcode.'</div>');
61
  $this->append_output('<div id="_inbound_shortcodes_popup" class="hidden">'.$this->popup.'</div>');
62
+ $this->append_output('<div id="cpt-form-serialize" class="hidden"></div>');
63
+
64
 
65
  if( isset( $fields[$this->popup]['no_preview'] ) && $fields[$this->popup]['no_preview'] ) {
66
  $this->append_output( "\n" . '<div id="_inbound_shortcodes_preview" class="hidden">false</div>' );
186
  $parent_row_start .= '<ul class="child-clone-row-form">';
187
 
188
  $this->append_output( $parent_row_start );
189
+ $count = 1;
190
  foreach( $this->child_options as $key => $option ) {
191
  $first = $key;
192
  $uniquekey = 'inbound_shortcode_' . $first . "_" . $count;
193
+ $hide_class = ($count > 1) ? 'minimize-class' : '';
194
  $original_key = $key;
195
  $key = 'inbound_shortcode_' . $key;
196
  $name = ( isset($option['name'])) ? $option['name'] : '';
243
 
244
  case 'select' :
245
  $child_output = $child_row_start;
246
+ $child_output .= '<select data-field-name="'.$original_key.'" name="'. $uniquekey .'" id="'. $key .'" class="inbound-shortcodes-child-input select inbound-shortcodes-select '.$field_class.'">';
247
  foreach( $option['options'] as $value => $option ) {
248
  $selected = ( $std == $value ) ? ' selected="selected"' : '';
249
  $child_output .= '<option'. $selected .' value="'. $value .'">'. $option .'</option>';
shared/inbound-shortcodes/shortcodes/forms.php CHANGED
@@ -225,7 +225,7 @@
225
  'type' => 'select',
226
  'options' => $lead_mapping_fields,
227
  'std' => 'none',
228
- 'class' => 'advanced',
229
  ),
230
  ),
231
  'shortcode' => '[inbound_field label="{{label}}" type="{{field_type}}" description="{{description}}" required="{{required}}" dropdown="{{dropdown_options}}" radio="{{radio_options}}" checkbox="{{checkbox_options}}" placeholder="{{placeholder}}" html="{{html_block_options}}" dynamic="{{hidden_input_options}}" map_to="{{map_to}}"]',
225
  'type' => 'select',
226
  'options' => $lead_mapping_fields,
227
  'std' => 'none',
228
+ 'class' => 'advanced exclude',
229
  ),
230
  ),
231
  'shortcode' => '[inbound_field label="{{label}}" type="{{field_type}}" description="{{description}}" required="{{required}}" dropdown="{{dropdown_options}}" radio="{{radio_options}}" checkbox="{{checkbox_options}}" placeholder="{{placeholder}}" html="{{html_block_options}}" dynamic="{{hidden_input_options}}" map_to="{{map_to}}"]',
shared/inboundnow/inboundnow.extension-licensing.php CHANGED
@@ -89,7 +89,6 @@ if ( ! class_exists( 'INBOUNDNOW_EXTENSION_LICENSE' ) ) :
89
  public function wp_cta_settings( $wp_cta_global_settings ) {
90
 
91
  $wp_cta_global_settings['wp-cta-license-keys']['settings'][] = array(
92
-
93
  'id' => $this->item_slug,
94
  'slug' => $this->item_slug,
95
  'label' => sprintf( __( '%1$s', 'lp' ), $this->item_label ),
89
  public function wp_cta_settings( $wp_cta_global_settings ) {
90
 
91
  $wp_cta_global_settings['wp-cta-license-keys']['settings'][] = array(
 
92
  'id' => $this->item_slug,
93
  'slug' => $this->item_slug,
94
  'label' => sprintf( __( '%1$s', 'lp' ), $this->item_label ),
shared/languages/landing-pages/landing-pages.mo ADDED
Binary file
shared/languages/landing-pages/landing-pages.po ADDED
@@ -0,0 +1,2437 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Landing Pages\n"
4
+ "POT-Creation-Date: 2013-11-25 15:59-0600\n"
5
+ "PO-Revision-Date: 2013-11-25 16:00-0600\n"
6
+ "Last-Translator: \n"
7
+ "Language-Team: InboundNow <support@inboundnow.com>\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Generator: Poedit 1.5.7\n"
12
+ "X-Poedit-KeywordsList: __;_e\n"
13
+ "X-Poedit-Basepath: ../../\n"
14
+ "X-Poedit-SearchPath-0: .\n"
15
+ "X-Poedit-SearchPath-1: modules\n"
16
+
17
+ #: libraries/class-tgm-plugin-activation.php:164
18
+ #: modules/module.install.php:164
19
+ msgid "Install Required Plugins"
20
+ msgstr ""
21
+
22
+ #: libraries/class-tgm-plugin-activation.php:165
23
+ #: modules/module.install.php:165
24
+ msgid "Install Plugins"
25
+ msgstr ""
26
+
27
+ #: libraries/class-tgm-plugin-activation.php:166
28
+ #: modules/module.install.php:166
29
+ #, php-format
30
+ msgid "Installing Plugin: %s"
31
+ msgstr ""
32
+
33
+ #: libraries/class-tgm-plugin-activation.php:167
34
+ msgid "Something went wrong."
35
+ msgstr ""
36
+
37
+ #: libraries/class-tgm-plugin-activation.php:178
38
+ #: libraries/class-tgm-plugin-activation.php:490
39
+ #: modules/module.install.php:178
40
+ msgid "Return to Required Plugins Installer"
41
+ msgstr ""
42
+
43
+ #: libraries/class-tgm-plugin-activation.php:179
44
+ #: libraries/class-tgm-plugin-activation.php:1846
45
+ #: modules/module.install.php:179
46
+ msgid "Plugin activated successfully."
47
+ msgstr ""
48
+
49
+ #: libraries/class-tgm-plugin-activation.php:180
50
+ #, php-format
51
+ msgid "All plugins installed and activated successfully. %1$s"
52
+ msgstr ""
53
+
54
+ #: libraries/class-tgm-plugin-activation.php:517
55
+ #: libraries/class-tgm-plugin-activation.php:2058
56
+ msgid "Return to the Dashboard"
57
+ msgstr ""
58
+
59
+ #: libraries/class-tgm-plugin-activation.php:545
60
+ #, php-format
61
+ msgid "The following plugin was activated successfully: %s."
62
+ msgstr ""
63
+
64
+ #: libraries/class-tgm-plugin-activation.php:704
65
+ msgid "Dismiss this notice"
66
+ msgstr ""
67
+
68
+ #: libraries/class-tgm-plugin-activation.php:1091
69
+ msgid "External Link"
70
+ msgstr ""
71
+
72
+ #: libraries/class-tgm-plugin-activation.php:1096
73
+ msgid "Private Repository"
74
+ msgstr ""
75
+
76
+ #: libraries/class-tgm-plugin-activation.php:1099
77
+ msgid "Pre-Packaged"
78
+ msgstr ""
79
+
80
+ #: libraries/class-tgm-plugin-activation.php:1103
81
+ msgid "WordPress Repository"
82
+ msgstr ""
83
+
84
+ #: libraries/class-tgm-plugin-activation.php:1106
85
+ msgid "Required"
86
+ msgstr ""
87
+
88
+ #: libraries/class-tgm-plugin-activation.php:1106
89
+ msgid "Recommended"
90
+ msgstr ""
91
+
92
+ #: libraries/class-tgm-plugin-activation.php:1109
93
+ msgid "Not Installed"
94
+ msgstr ""
95
+
96
+ #: libraries/class-tgm-plugin-activation.php:1111
97
+ msgid "Installed But Not Activated"
98
+ msgstr ""
99
+
100
+ #: libraries/class-tgm-plugin-activation.php:1281
101
+ #, php-format
102
+ msgid ""
103
+ "No plugins to install or activate. <a href=\"%1$s\" title=\"Return to the "
104
+ "Dashboard\">Return to the Dashboard</a>"
105
+ msgstr ""
106
+
107
+ #: libraries/class-tgm-plugin-activation.php:1297
108
+ msgid "Plugin"
109
+ msgstr ""
110
+
111
+ #: libraries/class-tgm-plugin-activation.php:1298
112
+ msgid "Source"
113
+ msgstr ""
114
+
115
+ #: libraries/class-tgm-plugin-activation.php:1299
116
+ msgid "Type"
117
+ msgstr ""
118
+
119
+ #: libraries/class-tgm-plugin-activation.php:1300
120
+ msgid "Status"
121
+ msgstr ""
122
+
123
+ #: libraries/class-tgm-plugin-activation.php:1318
124
+ msgid "Install"
125
+ msgstr ""
126
+
127
+ #: libraries/class-tgm-plugin-activation.php:1319
128
+ msgid "Activate"
129
+ msgstr ""
130
+
131
+ #: libraries/class-tgm-plugin-activation.php:1829
132
+ msgid "Install package not available."
133
+ msgstr ""
134
+
135
+ #: libraries/class-tgm-plugin-activation.php:1830
136
+ #, php-format
137
+ msgid "Downloading install package from <span class=\"code\">%s</span>&#8230;"
138
+ msgstr ""
139
+
140
+ #: libraries/class-tgm-plugin-activation.php:1831
141
+ msgid "Unpacking the package&#8230;"
142
+ msgstr ""
143
+
144
+ #: libraries/class-tgm-plugin-activation.php:1832
145
+ msgid "Installing the plugin&#8230;"
146
+ msgstr ""
147
+
148
+ #: libraries/class-tgm-plugin-activation.php:1833
149
+ msgid "Plugin install failed."
150
+ msgstr ""
151
+
152
+ #: libraries/class-tgm-plugin-activation.php:1834
153
+ msgid "Plugin installed successfully."
154
+ msgstr ""
155
+
156
+ #: libraries/class-tgm-plugin-activation.php:1845
157
+ msgid "Plugin activation failed."
158
+ msgstr ""
159
+
160
+ #: libraries/class-tgm-plugin-activation.php:1955
161
+ msgid ""
162
+ "The installation and activation process is starting. This process may take a "
163
+ "while on some hosts, so please be patient."
164
+ msgstr ""
165
+
166
+ #: libraries/class-tgm-plugin-activation.php:1956
167
+ #, php-format
168
+ msgid "%1$s installed and activated successfully."
169
+ msgstr ""
170
+
171
+ #: libraries/class-tgm-plugin-activation.php:1956
172
+ #: libraries/class-tgm-plugin-activation.php:1965
173
+ msgid "Show Details"
174
+ msgstr ""
175
+
176
+ #: libraries/class-tgm-plugin-activation.php:1956
177
+ #: libraries/class-tgm-plugin-activation.php:1965
178
+ msgid "Hide Details"
179
+ msgstr ""
180
+
181
+ #: libraries/class-tgm-plugin-activation.php:1957
182
+ msgid "All installations and activations have been completed."
183
+ msgstr ""
184
+
185
+ #: libraries/class-tgm-plugin-activation.php:1958
186
+ #, php-format
187
+ msgid "Installing and Activating Plugin %1$s (%2$d/%3$d)"
188
+ msgstr ""
189
+
190
+ #: libraries/class-tgm-plugin-activation.php:1962
191
+ msgid ""
192
+ "The installation process is starting. This process may take a while on some "
193
+ "hosts, so please be patient."
194
+ msgstr ""
195
+
196
+ #: libraries/class-tgm-plugin-activation.php:1963
197
+ #, php-format
198
+ msgid "An error occurred while installing %1$s: <strong>%2$s</strong>."
199
+ msgstr ""
200
+
201
+ #: libraries/class-tgm-plugin-activation.php:1964
202
+ #, php-format
203
+ msgid "The installation of %1$s failed."
204
+ msgstr ""
205
+
206
+ #: libraries/class-tgm-plugin-activation.php:1965
207
+ #, php-format
208
+ msgid "%1$s installed successfully."
209
+ msgstr ""
210
+
211
+ #: libraries/class-tgm-plugin-activation.php:1966
212
+ msgid "All installations have been completed."
213
+ msgstr ""
214
+
215
+ #: libraries/class-tgm-plugin-activation.php:1967
216
+ #, php-format
217
+ msgid "Installing Plugin %1$s (%2$d/%3$d)"
218
+ msgstr ""
219
+
220
+ #: modules/module.ab-testing.metaboxes.php:8
221
+ msgid "A/B Testing"
222
+ msgstr ""
223
+
224
+ #: modules/module.ab-testing.metaboxes.php:103
225
+ msgid "Variation"
226
+ msgstr ""
227
+
228
+ #: modules/module.ab-testing.metaboxes.php:108
229
+ msgid "Paused"
230
+ msgstr ""
231
+
232
+ #: modules/module.ab-testing.metaboxes.php:115
233
+ msgid "Delete this variations stats"
234
+ msgstr ""
235
+
236
+ #: modules/module.ab-testing.metaboxes.php:115
237
+ msgid "Clear Stats"
238
+ msgstr ""
239
+
240
+ #: modules/module.ab-testing.metaboxes.php:121
241
+ msgid "Views"
242
+ msgstr ""
243
+
244
+ #: modules/module.ab-testing.metaboxes.php:125
245
+ msgid "Conversions"
246
+ msgstr ""
247
+
248
+ #: modules/module.ab-testing.metaboxes.php:129
249
+ msgid "Conversion Rate"
250
+ msgstr ""
251
+
252
+ #: modules/module.ab-testing.metaboxes.php:132
253
+ msgid "Pause this variation"
254
+ msgstr ""
255
+
256
+ #: modules/module.ab-testing.metaboxes.php:132
257
+ msgid "Pause"
258
+ msgstr ""
259
+
260
+ #: modules/module.ab-testing.metaboxes.php:133
261
+ msgid "Turn this variation on"
262
+ msgstr ""
263
+
264
+ #: modules/module.ab-testing.metaboxes.php:133
265
+ msgid "Play"
266
+ msgstr ""
267
+
268
+ #: modules/module.ab-testing.metaboxes.php:134
269
+ msgid "Edit this variation"
270
+ msgstr ""
271
+
272
+ #: modules/module.ab-testing.metaboxes.php:134
273
+ msgid "Edit"
274
+ msgstr ""
275
+
276
+ #: modules/module.ab-testing.metaboxes.php:135
277
+ msgid "Preview this variation"
278
+ msgstr ""
279
+
280
+ #: modules/module.ab-testing.metaboxes.php:135
281
+ #: modules/module.metaboxes.php:351
282
+ msgid "Preview"
283
+ msgstr ""
284
+
285
+ #: modules/module.ab-testing.metaboxes.php:136
286
+ msgid "Clone this variation"
287
+ msgstr ""
288
+
289
+ #: modules/module.ab-testing.metaboxes.php:136 modules/module.clone.php:1
290
+ msgid "Clone"
291
+ msgstr ""
292
+
293
+ #: modules/module.ab-testing.metaboxes.php:137
294
+ msgid "Delete this variation"
295
+ msgstr ""
296
+
297
+ #: modules/module.ab-testing.metaboxes.php:137
298
+ #: modules/module.templates.php:227
299
+ msgid "Delete"
300
+ msgstr ""
301
+
302
+ #: modules/module.ab-testing.metaboxes.php:196
303
+ msgid "A"
304
+ msgstr ""
305
+
306
+ #: modules/module.ab-testing.metaboxes.php:224
307
+ msgid "Add New Variation"
308
+ msgstr ""
309
+
310
+ #: modules/module.ab-testing.metaboxes.php:235
311
+ msgid "Launch Visual Editor"
312
+ msgstr ""
313
+
314
+ #: modules/module.activate.php:14 modules/module.activate.php:20
315
+ msgid "<p>The <strong>WordPress Landing Pages</strong> plugin requires"
316
+ msgstr ""
317
+
318
+ #: modules/module.activate.php:14 modules/module.activate.php:20
319
+ #: modules/module.activate.php:26 modules/module.activate.php:31
320
+ msgid "Plugin Activation Error"
321
+ msgstr ""
322
+
323
+ #: modules/module.activate.php:25 modules/module.install.php:137
324
+ msgid "WordPress Calls to Action"
325
+ msgstr ""
326
+
327
+ #: modules/module.activate.php:26 modules/module.activate.php:31
328
+ msgid "<p>The <strong>WordPress Landing Pages</strong> plugin requires "
329
+ msgstr ""
330
+
331
+ #: modules/module.admin-menus.php:12
332
+ msgid "Forms"
333
+ msgstr ""
334
+
335
+ #: modules/module.admin-menus.php:12
336
+ msgid "Create Forms"
337
+ msgstr ""
338
+
339
+ #: modules/module.admin-menus.php:14
340
+ msgid "Templates"
341
+ msgstr ""
342
+
343
+ #: modules/module.admin-menus.php:14 modules/module.templates.php:243
344
+ msgid "Manage Templates"
345
+ msgstr ""
346
+
347
+ #: modules/module.admin-menus.php:16
348
+ msgid "Get Addons"
349
+ msgstr ""
350
+
351
+ #: modules/module.admin-menus.php:18
352
+ msgid "Global Settings"
353
+ msgstr ""
354
+
355
+ #: modules/module.clone.php:1
356
+ msgid "Clone this item"
357
+ msgstr ""
358
+
359
+ #: modules/module.customizer.php:1
360
+ msgid "No A/B Tests running for this page"
361
+ msgstr ""
362
+
363
+ #: modules/module.customizer.php:1
364
+ msgid "Variations"
365
+ msgstr ""
366
+
367
+ #: modules/module.extension-licensing.php:70
368
+ #: shared/inboundnow/inboundnow.extension-licensing.php:73
369
+ #: shared/inboundnow/inboundnow.extension-licensing.php:94
370
+ #: shared/inboundnow/inboundnow.extension-licensing.php:116
371
+ #, php-format
372
+ msgid "%1$s"
373
+ msgstr ""
374
+
375
+ #: modules/module.global-settings.php:29
376
+ msgid "<h4>Landing Pages Core Settings</h4>"
377
+ msgstr ""
378
+
379
+ #: modules/module.global-settings.php:34
380
+ msgid "Default Landing Page Permalink Prefix"
381
+ msgstr ""
382
+
383
+ #: modules/module.global-settings.php:35
384
+ msgid ""
385
+ "Enter in the <span style='color:red;'>prefix</span> for landing page URLs "
386
+ "(aka permalinks).<br><br>This is the URL Slug that will be in the landing "
387
+ "page URL.<br><br> Example: http://www.yoursite.com/<span style='color:"
388
+ "red;'>PREFIX</span>/landing-page . Enter in a single word like 'go'"
389
+ msgstr ""
390
+
391
+ #: modules/module.global-settings.php:42
392
+ msgid "Enable Form Prepopulation"
393
+ msgstr ""
394
+
395
+ #: modules/module.global-settings.php:43
396
+ msgid ""
397
+ "With this setting enabled landing pages plugin will remember form input data "
398
+ "that the user submits to a form and attempt to pre-populate all other forms "
399
+ "with the same user's data when applicable."
400
+ msgstr ""
401
+
402
+ #: modules/module.global-settings.php:50
403
+ msgid "Disable Admin Impression/Conversion Tracking"
404
+ msgstr ""
405
+
406
+ #: modules/module.global-settings.php:51
407
+ msgid ""
408
+ "With this setting enabled landing pages plugin will not record visits and "
409
+ "conversions for administrative users that are logged in."
410
+ msgstr ""
411
+
412
+ #: modules/module.global-settings.php:58
413
+ msgid "Sticky Variations"
414
+ msgstr ""
415
+
416
+ #: modules/module.global-settings.php:59
417
+ msgid ""
418
+ "With this setting enabled the landing pages plugin will prevent landing page "
419
+ "version a/b rotation for a specific visitor that has viewed the page."
420
+ "<br><br>This pause on the a/b rotation will automatically expire after 30 "
421
+ "days."
422
+ msgstr ""
423
+
424
+ #: modules/module.global-settings.php:66
425
+ msgid "Enable Form Standardization"
426
+ msgstr ""
427
+
428
+ #: modules/module.global-settings.php:67
429
+ msgid ""
430
+ "With this setting enabled landing pages plugin will clean and standardize "
431
+ "all input ids and classnames. Uncheck this setting to disable "
432
+ "standardization."
433
+ msgstr ""
434
+
435
+ #: modules/module.global-settings.php:74
436
+ msgid "Form Standardization Element Whitelist"
437
+ msgstr ""
438
+
439
+ #: modules/module.global-settings.php:75
440
+ msgid ""
441
+ "Form standardization strips the conversion area content of html elements. "
442
+ "Add the elements you do not want to be stripped to this list."
443
+ msgstr ""
444
+
445
+ #: modules/module.global-settings.php:85
446
+ msgid "License Keys"
447
+ msgstr ""
448
+
449
+ #: modules/module.global-settings.php:88
450
+ msgid "Extensions"
451
+ msgstr ""
452
+
453
+ #: modules/module.global-settings.php:100
454
+ msgid "Debug"
455
+ msgstr ""
456
+
457
+ #: modules/module.global-settings.php:123
458
+ msgid ""
459
+ "Head to http://www.inboundnow.com/ to retrieve your license key for this "
460
+ "template."
461
+ msgstr ""
462
+
463
+ #: modules/module.global-settings.php:125
464
+ msgid "Extension License Keys"
465
+ msgstr ""
466
+
467
+ #: modules/module.global-settings.php:217
468
+ msgid ""
469
+ "Oh no! Your .htaccess is not writable and A/B testing won't work unless you "
470
+ "make your .htaccess file writable."
471
+ msgstr ""
472
+
473
+ #: modules/module.global-settings.php:292
474
+ msgid "Installation Status"
475
+ msgstr ""
476
+
477
+ #: modules/module.global-settings.php:296
478
+ msgid "PHP Version"
479
+ msgstr ""
480
+
481
+ #: modules/module.global-settings.php:310
482
+ msgid "Gravity Forms requires PHP 5 or above."
483
+ msgstr ""
484
+
485
+ #: modules/module.global-settings.php:317
486
+ msgid "MySQL Version"
487
+ msgstr ""
488
+
489
+ #: modules/module.global-settings.php:331
490
+ msgid "Gravity Forms requires MySQL 5 or above."
491
+ msgstr ""
492
+
493
+ #: modules/module.global-settings.php:338
494
+ msgid "WordPress Version"
495
+ msgstr ""
496
+
497
+ #: modules/module.global-settings.php:352
498
+ msgid "landing pages requires version X or higher"
499
+ msgstr ""
500
+
501
+ #: modules/module.global-settings.php:359
502
+ msgid "Landing Page Version"
503
+ msgstr ""
504
+
505
+ #: modules/module.global-settings.php:361
506
+ msgid "Version"
507
+ msgstr ""
508
+
509
+ #: modules/module.global-settings.php:375
510
+ msgid "The contents of your .htaccess file"
511
+ msgstr ""
512
+
513
+ #: modules/module.global-settings.php:411
514
+ msgid "System Information"
515
+ msgstr ""
516
+
517
+ #: modules/module.global-settings.php:414
518
+ msgid "Download System Info File for Support Requests"
519
+ msgstr ""
520
+
521
+ #: modules/module.global-settings.php:415
522
+ msgid ""
523
+ "To copy the system info, click below then press Ctrl + C (PC) or Cmd + C "
524
+ "(Mac)."
525
+ msgstr ""
526
+
527
+ #: modules/module.global-settings.php:465
528
+ msgid "Your server supports fsockopen."
529
+ msgstr ""
530
+
531
+ #: modules/module.global-settings.php:465
532
+ msgid "Your server does not support fsockopen."
533
+ msgstr ""
534
+
535
+ #: modules/module.global-settings.php:466
536
+ msgid "Your server supports cURL."
537
+ msgstr ""
538
+
539
+ #: modules/module.global-settings.php:466
540
+ msgid "Your server does not support cURL."
541
+ msgstr ""
542
+
543
+ #: modules/module.global-settings.php:467
544
+ msgid "Your server has the SOAP Client enabled."
545
+ msgstr ""
546
+
547
+ #: modules/module.global-settings.php:467
548
+ msgid "Your server does not have the SOAP Client enabled."
549
+ msgstr ""
550
+
551
+ #: modules/module.global-settings.php:468
552
+ msgid "Your server has SUHOSIN installed."
553
+ msgstr ""
554
+
555
+ #: modules/module.global-settings.php:468
556
+ msgid "Your server does not have SUHOSIN installed."
557
+ msgstr ""
558
+
559
+ #: modules/module.install.php:20
560
+ msgid "A/B Testing Landing Page Example"
561
+ msgstr ""
562
+
563
+ #: modules/module.install.php:21
564
+ msgid ""
565
+ "<p>This is the first paragraph of your landing page where you want to draw "
566
+ "the viewer in and quickly explain your value proposition.</p><p><strong>Use "
567
+ "Bullet Points to:</strong><ul><li>Explain why they should fill out the form</"
568
+ "li><li>What they will learn if they download</li><li>A problem this form "
569
+ "will solve for them</li></ul></p><p>Short ending paragraph reiterating the "
570
+ "value behind the form</p>"
571
+ msgstr ""
572
+
573
+ #: modules/module.install.php:30
574
+ msgid "Main Catchy Headline (A)"
575
+ msgstr ""
576
+
577
+ #: modules/module.install.php:32
578
+ msgid "Form a"
579
+ msgstr ""
580
+
581
+ #: modules/module.install.php:32 modules/module.install.php:37
582
+ msgid "First Name"
583
+ msgstr ""
584
+
585
+ #: modules/module.install.php:32 modules/module.install.php:37
586
+ msgid "Last Name"
587
+ msgstr ""
588
+
589
+ #: modules/module.install.php:32 modules/module.install.php:37
590
+ msgid "Email"
591
+ msgstr ""
592
+
593
+ #: modules/module.install.php:32 modules/module.install.php:37
594
+ msgid "Submit"
595
+ msgstr ""
596
+
597
+ #: modules/module.install.php:35
598
+ msgid "Main Catchy Headline Two (B)"
599
+ msgstr ""
600
+
601
+ #: modules/module.install.php:37
602
+ msgid "Form B"
603
+ msgstr ""
604
+
605
+ #: modules/module.install.php:132
606
+ msgid "WordPress Leads"
607
+ msgstr ""
608
+
609
+ #: modules/module.install.php:132
610
+ msgid ""
611
+ "This <b>free</b> landing page addon will give you the ability to track and "
612
+ "manage incoming web leads. Gather advanced Lead Intelligence and close more "
613
+ "deals."
614
+ msgstr ""
615
+
616
+ #: modules/module.install.php:132
617
+ msgid "Learn more about WordPress Leads"
618
+ msgstr ""
619
+
620
+ #: modules/module.install.php:137
621
+ msgid ""
622
+ "This <b>free</b> landing page addon will drive more traffic into your "
623
+ "Landing Pages with Targeted Calls to Action in your sites sidebars & "
624
+ "content. Create popups to capture visitor attention and convert more leads."
625
+ msgstr ""
626
+
627
+ #: modules/module.install.php:137
628
+ msgid "Learn more about WordPress Calls to Action"
629
+ msgstr ""
630
+
631
+ #: modules/module.install.php:167
632
+ msgid "Something went wrong with the plugin API."
633
+ msgstr ""
634
+
635
+ #: modules/module.install.php:180
636
+ #, php-format
637
+ msgid "All plugins installed and activated successfully. %s"
638
+ msgstr ""
639
+
640
+ #: modules/module.lead-splash.php:24
641
+ msgid "Lead Details "
642
+ msgstr ""
643
+
644
+ #: modules/module.lead-splash.php:26
645
+ msgid "View/Edit Lead"
646
+ msgstr ""
647
+
648
+ #: modules/module.lead-splash.php:29
649
+ msgid "Name"
650
+ msgstr ""
651
+
652
+ #: modules/module.lead-splash.php:33
653
+ msgid "Email Address"
654
+ msgstr ""
655
+
656
+ #: modules/module.lead-splash.php:36
657
+ msgid "IP Address"
658
+ msgstr ""
659
+
660
+ #: modules/module.lead-splash.php:39
661
+ msgid "City"
662
+ msgstr ""
663
+
664
+ #: modules/module.lead-splash.php:42
665
+ msgid "State"
666
+ msgstr ""
667
+
668
+ #: modules/module.metaboxes.php:18
669
+ msgid "Template Preview"
670
+ msgstr ""
671
+
672
+ #: modules/module.metaboxes.php:44
673
+ msgid "Preveiw this theme"
674
+ msgstr ""
675
+
676
+ #: modules/module.metaboxes.php:59
677
+ msgid "Landing Page Form or Conversion Button"
678
+ msgstr ""
679
+
680
+ #: modules/module.metaboxes.php:118
681
+ msgid ""
682
+ "To help track conversions Landing Pages Plugin will automatically add a "
683
+ "tracking class to forms. If you would like to track a link add this class to "
684
+ "it"
685
+ msgstr ""
686
+
687
+ #: modules/module.metaboxes.php:160
688
+ msgid "Notes"
689
+ msgstr ""
690
+
691
+ #: modules/module.metaboxes.php:160
692
+ msgid ""
693
+ "Add Notes to your variation. Example: This version is testing a green submit "
694
+ "button "
695
+ msgstr ""
696
+
697
+ #: modules/module.metaboxes.php:161
698
+ msgid "Primary Headline Goes here. This will be visible on the page"
699
+ msgstr ""
700
+
701
+ #: modules/module.metaboxes.php:161
702
+ msgid "This headline will appear in the landing page template."
703
+ msgstr ""
704
+
705
+ #: modules/module.metaboxes.php:207
706
+ msgid "Enter Landing Page Description"
707
+ msgstr ""
708
+
709
+ #: modules/module.metaboxes.php:221
710
+ msgid "Landing Page Templates"
711
+ msgstr ""
712
+
713
+ #: modules/module.metaboxes.php:243
714
+ msgid "Choose Another Template"
715
+ msgstr ""
716
+
717
+ #: modules/module.metaboxes.php:278
718
+ msgid "Select Your Landing Page Template!"
719
+ msgstr ""
720
+
721
+ #: modules/module.metaboxes.php:279
722
+ msgid "Cancel Template Change"
723
+ msgstr ""
724
+
725
+ #: modules/module.metaboxes.php:282
726
+ msgid "All"
727
+ msgstr ""
728
+
729
+ #: modules/module.metaboxes.php:350
730
+ msgid "Select"
731
+ msgstr ""
732
+
733
+ #: modules/module.metaboxes.php:360
734
+ msgid "This is Currently Selected"
735
+ msgstr ""
736
+
737
+ #: modules/module.metaboxes.php:368
738
+ msgid "Custom CSS"
739
+ msgstr ""
740
+
741
+ #: modules/module.metaboxes.php:374
742
+ msgid ""
743
+ "<em>Custom CSS may be required to remove sidebars, increase the widget of "
744
+ "the post content container to 100%, and sometimes to manually remove comment "
745
+ "boxes.</em>"
746
+ msgstr ""
747
+
748
+ #: modules/module.metaboxes.php:401
749
+ msgid "Custom JS"
750
+ msgstr ""
751
+
752
+ #: modules/module.metaboxes.php:433
753
+ msgid "Lead Captures"
754
+ msgstr ""
755
+
756
+ #: modules/module.metaboxes.php:594
757
+ msgid "View Lead"
758
+ msgstr ""
759
+
760
+ #: modules/module.metaboxes.php:599
761
+ msgid "First timer!"
762
+ msgstr ""
763
+
764
+ #: modules/module.metaboxes.php:619
765
+ msgid "No conversions recorded yet..."
766
+ msgstr ""
767
+
768
+ #: modules/module.metaboxes.php:636
769
+ msgid "Conversion logs:"
770
+ msgstr ""
771
+
772
+ #: modules/module.post-type.php:1
773
+ msgid "Add New Landing Page"
774
+ msgstr ""
775
+
776
+ #: modules/module.post-type.php:1
777
+ msgid "Edit Landing Page"
778
+ msgstr ""
779
+
780
+ #: modules/module.post-type.php:1
781
+ msgid "New Landing Page"
782
+ msgstr ""
783
+
784
+ #: modules/module.post-type.php:1
785
+ msgid "View Landing Page"
786
+ msgstr ""
787
+
788
+ #: modules/module.post-type.php:1
789
+ msgid "Search Landing Page"
790
+ msgstr ""
791
+
792
+ #: modules/module.post-type.php:1
793
+ #: shared/inbound-shortcodes/shortcodes/forms.php:252
794
+ msgid "Nothing found"
795
+ msgstr ""
796
+
797
+ #: modules/module.post-type.php:1
798
+ #: shared/inbound-shortcodes/shortcodes/forms.php:253
799
+ msgid "Nothing found in Trash"
800
+ msgstr ""
801
+
802
+ #: modules/module.sidebar.php:12
803
+ msgid "Landing Pages Sidebar"
804
+ msgstr ""
805
+
806
+ #: modules/module.sidebar.php:13
807
+ msgid ""
808
+ "Landing Pages Sidebar Area: For default and native theme templates only."
809
+ msgstr ""
810
+
811
+ #: modules/module.store.php:1 modules/module.templates-upload.php:42
812
+ #: modules/module.templates-upload.php:53
813
+ msgid "Search Templates"
814
+ msgstr ""
815
+
816
+ #: modules/module.templates-upload.php:14
817
+ msgid "Install Templates"
818
+ msgstr ""
819
+
820
+ #: modules/module.templates-upload.php:17
821
+ #: modules/module.templates-upload.php:45
822
+ msgid "Search"
823
+ msgstr ""
824
+
825
+ #: modules/module.templates-upload.php:18
826
+ #: modules/module.templates-upload.php:46
827
+ msgid "Upload"
828
+ msgstr ""
829
+
830
+ #: modules/module.templates-upload.php:22
831
+ msgid "Install Landing Pages template by uploading them here in .zip format"
832
+ msgstr ""
833
+
834
+ #: modules/module.templates-upload.php:24
835
+ msgid ""
836
+ "Warning: Do not upload landing page extensions here or you will break the "
837
+ "plugin! <br>Extensions are uploaded in the WordPress plugins section."
838
+ msgstr ""
839
+
840
+ #: modules/module.templates-upload.php:28
841
+ msgid "Template zip file"
842
+ msgstr ""
843
+
844
+ #: modules/module.templates-upload.php:50
845
+ msgid "Search the Inboundnow marketplace for free and premium templates."
846
+ msgstr ""
847
+
848
+ #: modules/module.templates-upload.php:116
849
+ msgid ""
850
+ "WARNING! This zip file does not seem to be a template file! If you are "
851
+ "trying to install a Landing Page extension please use the Plugin's upload "
852
+ "section! Please press the back button and try again!"
853
+ msgstr ""
854
+
855
+ #: modules/module.templates-upload.php:123
856
+ msgid "There was a problem. Please try again!"
857
+ msgstr ""
858
+
859
+ #: modules/module.templates-upload.php:128
860
+ msgid "Template uploaded successfully!"
861
+ msgstr ""
862
+
863
+ #: modules/module.templates.php:110
864
+ msgid "Template"
865
+ msgstr ""
866
+
867
+ #: modules/module.templates.php:111
868
+ msgid "Description"
869
+ msgstr ""
870
+
871
+ #: modules/module.templates.php:112
872
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:37
873
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:99
874
+ msgid "Category"
875
+ msgstr ""
876
+
877
+ #: modules/module.templates.php:113
878
+ msgid "Current Version"
879
+ msgstr ""
880
+
881
+ #: modules/module.templates.php:219
882
+ msgid ""
883
+ "No premium templates installed. Templates included in the Landing Pages core "
884
+ "plugin will not be listed here."
885
+ msgstr ""
886
+
887
+ #: modules/module.templates.php:226
888
+ msgid "Upgrade"
889
+ msgstr ""
890
+
891
+ #: modules/module.welcome.php:52 modules/module.welcome.php:53
892
+ msgid "Welcome to WordPress Landing Pages"
893
+ msgstr ""
894
+
895
+ #: modules/module.welcome.php:60 modules/module.welcome.php:61
896
+ msgid "About the Inbound Now Marketing Platform"
897
+ msgstr ""
898
+
899
+ #: modules/module.welcome.php:68 modules/module.welcome.php:69
900
+ msgid "Developers and Designers"
901
+ msgstr ""
902
+
903
+ #: modules/module.welcome.php:304 modules/module.welcome.php:566
904
+ #, php-format
905
+ msgid "Welcome to WordPress Landing Pages %s"
906
+ msgstr ""
907
+
908
+ #: modules/module.welcome.php:305
909
+ #, php-format
910
+ msgid ""
911
+ "Thank you for updating to the latest version! WordPress Landing Pages %s is "
912
+ "help you convert more leads!"
913
+ msgstr ""
914
+
915
+ #: modules/module.welcome.php:306 modules/module.welcome.php:568
916
+ #, php-format
917
+ msgid "Version %s"
918
+ msgstr ""
919
+
920
+ #: modules/module.welcome.php:312
921
+ msgid "Create Your First Landing Page"
922
+ msgstr ""
923
+
924
+ #: modules/module.welcome.php:316
925
+ msgid "How to Create Forms"
926
+ msgstr ""
927
+
928
+ #: modules/module.welcome.php:339
929
+ msgid "Go to WordPress Landing Pages Settings"
930
+ msgstr ""
931
+
932
+ #: modules/module.welcome.php:342
933
+ msgid "Manage Your Landing Page Templates"
934
+ msgstr ""
935
+
936
+ #: modules/module.welcome.php:345
937
+ msgid "Create New Landing Page"
938
+ msgstr ""
939
+
940
+ #: modules/module.welcome.php:348
941
+ msgid "Create Landing Page Forms"
942
+ msgstr ""
943
+
944
+ #: modules/module.welcome.php:439
945
+ msgid "Turbo Charge Your Marketing"
946
+ msgstr ""
947
+
948
+ #: modules/module.welcome.php:440
949
+ msgid ""
950
+ "WordPress Landing Pages is only one piece of Inbound Now's Marketing Platform"
951
+ msgstr ""
952
+
953
+ #: modules/module.welcome.php:445
954
+ msgid ""
955
+ "To have an effective marketing strategy for your site you need to "
956
+ "incorporate a comprehensive conversion strategy to capture visitors "
957
+ "attention, get them clicking, and convert them on a web form or landing page."
958
+ msgstr ""
959
+
960
+ #: modules/module.welcome.php:450
961
+ msgid "Capture visitor attention with"
962
+ msgstr ""
963
+
964
+ #: modules/module.welcome.php:458
965
+ msgid ""
966
+ "<b>Convert more website traffic</b> with visually\n"
967
+ "\t\t appealing calls to action"
968
+ msgstr ""
969
+
970
+ #: modules/module.welcome.php:465
971
+ msgid ""
972
+ "A/B test your marketing tactics and <b>improve your\n"
973
+ "\t\t sites conversion rates"
974
+ msgstr ""
975
+
976
+ #: modules/module.welcome.php:480
977
+ msgid "Convert website visitors with"
978
+ msgstr ""
979
+
980
+ #: modules/module.welcome.php:488
981
+ msgid ""
982
+ "<b>Generate more web leads</b> with pages specifically designed for "
983
+ "conversion"
984
+ msgstr ""
985
+
986
+ #: modules/module.welcome.php:494
987
+ msgid ""
988
+ "A/B Test Landing Page effectiveness for <b>continual optimization & "
989
+ "improvement</b>"
990
+ msgstr ""
991
+
992
+ #: modules/module.welcome.php:508
993
+ msgid "Followup &amp; Close the deal with"
994
+ msgstr ""
995
+
996
+ #: modules/module.welcome.php:516
997
+ msgid ""
998
+ "Gather & leverage lead intelligence on\n"
999
+ "\t\t visitors to <b>close more deals</b>"
1000
+ msgstr ""
1001
+
1002
+ #: modules/module.welcome.php:523
1003
+ msgid ""
1004
+ "Track page views, site conversions,\n"
1005
+ "\t\t demographics, geolocation, social media data and more."
1006
+ msgstr ""
1007
+
1008
+ #: modules/module.welcome.php:526
1009
+ msgid ""
1010
+ "Know everything a lead has seen and done on your site before you contact them"
1011
+ msgstr ""
1012
+
1013
+ #: modules/module.welcome.php:567
1014
+ msgid "Learn How to Build Custom Templates & Add Value to Your Clients"
1015
+ msgstr ""
1016
+
1017
+ #: modules/module.welcome.php:573
1018
+ msgid ""
1019
+ "WordPress Landing Pages was built as a platform to allow anyone to create "
1020
+ "and use their own landing page designs."
1021
+ msgstr ""
1022
+
1023
+ #: modules/module.welcome.php:575
1024
+ msgid ""
1025
+ "Infuse your designs with powerful A/B testing functionality and give clients "
1026
+ "the ability to edit options on the backend with ease."
1027
+ msgstr ""
1028
+
1029
+ #: modules/module.widgets.php:17
1030
+ msgid ""
1031
+ "Use this widget on your landing page sidebar. This sidebar replaces the "
1032
+ "normal sidebar while using your default theme as a template, or other "
1033
+ "inactive themes as landing page templates."
1034
+ msgstr ""
1035
+
1036
+ #: modules/module.widgets.php:23
1037
+ msgid "Landing Pages: Conversion Area Widget"
1038
+ msgstr ""
1039
+
1040
+ #: modules/module.widgets.php:88
1041
+ msgid ""
1042
+ "This box will render the landing page conversion area on the 'default' "
1043
+ "template."
1044
+ msgstr ""
1045
+
1046
+ #: shared/inbound-shortcodes/inbound-shortcodes.php:247
1047
+ #: shared/inbound-shortcodes/inbound-shortcodes.php:269
1048
+ #: shared/inbound-shortcodes/popup.php:26
1049
+ #: shared/inbound-shortcodes/popup.php:49
1050
+ msgid "Insert Shortcode"
1051
+ msgstr ""
1052
+
1053
+ #: shared/inbound-shortcodes/inbound-shortcodes.php:256
1054
+ msgid "Form Preview"
1055
+ msgstr ""
1056
+
1057
+ #: shared/inbound-shortcodes/inbound-shortcodes.php:259
1058
+ #: shared/inbound-shortcodes/popup.php:38
1059
+ msgid "Shortcode has no preview"
1060
+ msgstr ""
1061
+
1062
+ #: shared/inbound-shortcodes/popup.php:35
1063
+ msgid "Shortcode Preview"
1064
+ msgstr ""
1065
+
1066
+ #: shared/inbound-shortcodes/shortcodes/alert.php:12
1067
+ msgid "Color Style"
1068
+ msgstr ""
1069
+
1070
+ #: shared/inbound-shortcodes/shortcodes/alert.php:13
1071
+ #: shared/inbound-shortcodes/shortcodes/divider.php:13
1072
+ #: shared/inbound-shortcodes/shortcodes/divider.php:55
1073
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:19
1074
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:106
1075
+ msgid "Select the style."
1076
+ msgstr ""
1077
+
1078
+ #: shared/inbound-shortcodes/shortcodes/alert.php:16
1079
+ #: shared/inbound-shortcodes/shortcodes/content-box.php:16
1080
+ #: shared/inbound-shortcodes/shortcodes/content-box.php:46
1081
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:22
1082
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:109
1083
+ msgid "Default"
1084
+ msgstr ""
1085
+
1086
+ #: shared/inbound-shortcodes/shortcodes/alert.php:17
1087
+ #: shared/inbound-shortcodes/shortcodes/content-box.php:17
1088
+ #: shared/inbound-shortcodes/shortcodes/content-box.php:47
1089
+ msgid "Blue"
1090
+ msgstr ""
1091
+
1092
+ #: shared/inbound-shortcodes/shortcodes/alert.php:18
1093
+ #: shared/inbound-shortcodes/shortcodes/content-box.php:18
1094
+ #: shared/inbound-shortcodes/shortcodes/content-box.php:48
1095
+ msgid "Green"
1096
+ msgstr ""
1097
+
1098
+ #: shared/inbound-shortcodes/shortcodes/alert.php:19
1099
+ #: shared/inbound-shortcodes/shortcodes/content-box.php:19
1100
+ #: shared/inbound-shortcodes/shortcodes/content-box.php:49
1101
+ msgid "Red"
1102
+ msgstr ""
1103
+
1104
+ #: shared/inbound-shortcodes/shortcodes/alert.php:20
1105
+ #: shared/inbound-shortcodes/shortcodes/content-box.php:20
1106
+ #: shared/inbound-shortcodes/shortcodes/content-box.php:50
1107
+ msgid "Yellow"
1108
+ msgstr ""
1109
+
1110
+ #: shared/inbound-shortcodes/shortcodes/alert.php:25
1111
+ msgid "Message"
1112
+ msgstr ""
1113
+
1114
+ #: shared/inbound-shortcodes/shortcodes/alert.php:26
1115
+ msgid "Your message here."
1116
+ msgstr ""
1117
+
1118
+ #: shared/inbound-shortcodes/shortcodes/alert.php:32
1119
+ msgid "Insert Alert Message Shortcode"
1120
+ msgstr ""
1121
+
1122
+ #: shared/inbound-shortcodes/shortcodes/button.php:13
1123
+ msgid "Button Style"
1124
+ msgstr ""
1125
+
1126
+ #: shared/inbound-shortcodes/shortcodes/button.php:14
1127
+ msgid "Select the button style."
1128
+ msgstr ""
1129
+
1130
+ #: shared/inbound-shortcodes/shortcodes/button.php:24
1131
+ msgid "Label"
1132
+ msgstr ""
1133
+
1134
+ #: shared/inbound-shortcodes/shortcodes/button.php:25
1135
+ #: shared/inbound-shortcodes/shortcodes/callout.php:45
1136
+ #: shared/inbound-shortcodes/shortcodes/callout.php:111
1137
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:52
1138
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:132
1139
+ msgid "Enter the button text label."
1140
+ msgstr ""
1141
+
1142
+ #: shared/inbound-shortcodes/shortcodes/button.php:30
1143
+ msgid "Button Size"
1144
+ msgstr ""
1145
+
1146
+ #: shared/inbound-shortcodes/shortcodes/button.php:31
1147
+ msgid "Select the button size."
1148
+ msgstr ""
1149
+
1150
+ #: shared/inbound-shortcodes/shortcodes/button.php:41
1151
+ #: shared/inbound-shortcodes/shortcodes/forms.php:114
1152
+ msgid "Custom Width"
1153
+ msgstr ""
1154
+
1155
+ #: shared/inbound-shortcodes/shortcodes/button.php:42
1156
+ msgid "Enter in pixel width or % width. Example: 200 <u>or</u> 100%"
1157
+ msgstr ""
1158
+
1159
+ #: shared/inbound-shortcodes/shortcodes/button.php:48
1160
+ #: shared/inbound-shortcodes/shortcodes/callout.php:24
1161
+ #: shared/inbound-shortcodes/shortcodes/callout.php:88
1162
+ msgid "Button Color"
1163
+ msgstr ""
1164
+
1165
+ #: shared/inbound-shortcodes/shortcodes/button.php:49
1166
+ #: shared/inbound-shortcodes/shortcodes/callout.php:25
1167
+ #: shared/inbound-shortcodes/shortcodes/callout.php:89
1168
+ msgid "Select the button color."
1169
+ msgstr ""
1170
+
1171
+ #: shared/inbound-shortcodes/shortcodes/button.php:68
1172
+ #: shared/inbound-shortcodes/shortcodes/icon.php:11
1173
+ #: shared/inbound-shortcodes/shortcodes/list-icon.php:14
1174
+ #: shared/inbound-shortcodes/shortcodes/tabs.php:27
1175
+ #: shared/inbound-shortcodes/shortcodes/tabs.php:72
1176
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:57
1177
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:135
1178
+ msgid "Icon"
1179
+ msgstr ""
1180
+
1181
+ #: shared/inbound-shortcodes/shortcodes/button.php:69
1182
+ #: shared/inbound-shortcodes/shortcodes/callout.php:51
1183
+ #: shared/inbound-shortcodes/shortcodes/callout.php:118
1184
+ #: shared/inbound-shortcodes/shortcodes/tabs.php:28
1185
+ #: shared/inbound-shortcodes/shortcodes/tabs.php:73
1186
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:58
1187
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:136
1188
+ msgid "Select an icon."
1189
+ msgstr ""
1190
+
1191
+ #: shared/inbound-shortcodes/shortcodes/button.php:75
1192
+ msgid "Link Destination"
1193
+ msgstr ""
1194
+
1195
+ #: shared/inbound-shortcodes/shortcodes/button.php:76
1196
+ msgid "Enter the destination URL."
1197
+ msgstr ""
1198
+
1199
+ #: shared/inbound-shortcodes/shortcodes/button.php:81
1200
+ msgid "Open Link in New Tab?"
1201
+ msgstr ""
1202
+
1203
+ #: shared/inbound-shortcodes/shortcodes/button.php:82
1204
+ msgid "Check to open the link in the new tab."
1205
+ msgstr ""
1206
+
1207
+ #: shared/inbound-shortcodes/shortcodes/button.php:89
1208
+ msgid "Insert Button Shortcode"
1209
+ msgstr ""
1210
+
1211
+ #: shared/inbound-shortcodes/shortcodes/call-to-action.php:11
1212
+ msgid "Insert cta"
1213
+ msgstr ""
1214
+
1215
+ #: shared/inbound-shortcodes/shortcodes/call-to-action.php:12
1216
+ msgid "Choose CTA"
1217
+ msgstr ""
1218
+
1219
+ #: shared/inbound-shortcodes/shortcodes/call-to-action.php:20
1220
+ msgid "Insert Call to Action"
1221
+ msgstr ""
1222
+
1223
+ #: shared/inbound-shortcodes/shortcodes/callout.php:12
1224
+ #: shared/inbound-shortcodes/shortcodes/callout.php:74
1225
+ #: shared/inbound-shortcodes/shortcodes/intro.php:12
1226
+ #: shared/inbound-shortcodes/shortcodes/intro.php:46
1227
+ #: shared/inbound-shortcodes/shortcodes/tabs.php:64
1228
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:45
1229
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:152
1230
+ msgid "Title"
1231
+ msgstr ""
1232
+
1233
+ #: shared/inbound-shortcodes/shortcodes/callout.php:13
1234
+ #: shared/inbound-shortcodes/shortcodes/callout.php:75
1235
+ #: shared/inbound-shortcodes/shortcodes/intro.php:13
1236
+ #: shared/inbound-shortcodes/shortcodes/intro.php:47
1237
+ #: shared/inbound-shortcodes/shortcodes/landing-page-list.php:15
1238
+ #: shared/inbound-shortcodes/shortcodes/landing-page-list.php:49
1239
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:13
1240
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:69
1241
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:98
1242
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:153
1243
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:13
1244
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:67
1245
+ msgid "Enter the heading text."
1246
+ msgstr ""
1247
+
1248
+ #: shared/inbound-shortcodes/shortcodes/callout.php:18
1249
+ #: shared/inbound-shortcodes/shortcodes/callout.php:81
1250
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:51
1251
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:159
1252
+ msgid "Sub Title"
1253
+ msgstr ""
1254
+
1255
+ #: shared/inbound-shortcodes/shortcodes/callout.php:19
1256
+ #: shared/inbound-shortcodes/shortcodes/callout.php:82
1257
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:52
1258
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:160
1259
+ msgid "Enter the sub title."
1260
+ msgstr ""
1261
+
1262
+ #: shared/inbound-shortcodes/shortcodes/callout.php:44
1263
+ #: shared/inbound-shortcodes/shortcodes/callout.php:110
1264
+ msgid "Button Text Label"
1265
+ msgstr ""
1266
+
1267
+ #: shared/inbound-shortcodes/shortcodes/callout.php:50
1268
+ #: shared/inbound-shortcodes/shortcodes/callout.php:117
1269
+ msgid "Button Icon"
1270
+ msgstr ""
1271
+
1272
+ #: shared/inbound-shortcodes/shortcodes/callout.php:57
1273
+ #: shared/inbound-shortcodes/shortcodes/callout.php:126
1274
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:71
1275
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:166
1276
+ msgid "Link"
1277
+ msgstr ""
1278
+
1279
+ #: shared/inbound-shortcodes/shortcodes/callout.php:58
1280
+ #: shared/inbound-shortcodes/shortcodes/callout.php:127
1281
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:58
1282
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:140
1283
+ msgid "Enter the button link destination URL."
1284
+ msgstr ""
1285
+
1286
+ #: shared/inbound-shortcodes/shortcodes/callout.php:64
1287
+ msgid "Insert Call Out Shortcode"
1288
+ msgstr ""
1289
+
1290
+ #: shared/inbound-shortcodes/shortcodes/callout.php:70
1291
+ msgid "Call Out"
1292
+ msgstr ""
1293
+
1294
+ #: shared/inbound-shortcodes/shortcodes/column.php:12
1295
+ msgid "Gutter Width"
1296
+ msgstr ""
1297
+
1298
+ #: shared/inbound-shortcodes/shortcodes/column.php:13
1299
+ msgid "A space between the columns."
1300
+ msgstr ""
1301
+
1302
+ #: shared/inbound-shortcodes/shortcodes/column.php:22
1303
+ msgid "Column Set"
1304
+ msgstr ""
1305
+
1306
+ #: shared/inbound-shortcodes/shortcodes/column.php:23
1307
+ msgid "Select the set."
1308
+ msgstr ""
1309
+
1310
+ #: shared/inbound-shortcodes/shortcodes/column.php:42
1311
+ msgid "Insert Column Shortcode"
1312
+ msgstr ""
1313
+
1314
+ #: shared/inbound-shortcodes/shortcodes/column.php:48
1315
+ #: shared/inbound-shortcodes/shortcodes/landing-page-list.php:20
1316
+ #: shared/inbound-shortcodes/shortcodes/landing-page-list.php:56
1317
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:18
1318
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:76
1319
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:12
1320
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:83
1321
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:29
1322
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:118
1323
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:18
1324
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:74
1325
+ msgid "Column"
1326
+ msgstr ""
1327
+
1328
+ #: shared/inbound-shortcodes/shortcodes/column.php:52
1329
+ msgid "Column Content"
1330
+ msgstr ""
1331
+
1332
+ #: shared/inbound-shortcodes/shortcodes/column.php:53
1333
+ msgid "Enter the column content"
1334
+ msgstr ""
1335
+
1336
+ #: shared/inbound-shortcodes/shortcodes/content-box.php:12
1337
+ #: shared/inbound-shortcodes/shortcodes/content-box.php:42
1338
+ msgid "Box Color"
1339
+ msgstr ""
1340
+
1341
+ #: shared/inbound-shortcodes/shortcodes/content-box.php:13
1342
+ #: shared/inbound-shortcodes/shortcodes/content-box.php:43
1343
+ msgid "Select the color."
1344
+ msgstr ""
1345
+
1346
+ #: shared/inbound-shortcodes/shortcodes/content-box.php:25
1347
+ #: shared/inbound-shortcodes/shortcodes/content-box.php:57
1348
+ #: shared/inbound-shortcodes/shortcodes/intro.php:29
1349
+ #: shared/inbound-shortcodes/shortcodes/intro.php:66
1350
+ #: shared/inbound-shortcodes/shortcodes/tabs.php:81
1351
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:173
1352
+ msgid "Content"
1353
+ msgstr ""
1354
+
1355
+ #: shared/inbound-shortcodes/shortcodes/content-box.php:26
1356
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:78
1357
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:174
1358
+ msgid "Enter the content."
1359
+ msgstr ""
1360
+
1361
+ #: shared/inbound-shortcodes/shortcodes/content-box.php:32
1362
+ msgid "Insert Content Box Shortcode"
1363
+ msgstr ""
1364
+
1365
+ #: shared/inbound-shortcodes/shortcodes/content-box.php:38
1366
+ msgid "Content Box"
1367
+ msgstr ""
1368
+
1369
+ #: shared/inbound-shortcodes/shortcodes/content-box.php:58
1370
+ #: shared/inbound-shortcodes/shortcodes/intro.php:30
1371
+ #: shared/inbound-shortcodes/shortcodes/intro.php:67
1372
+ msgid "Enter the content"
1373
+ msgstr ""
1374
+
1375
+ #: shared/inbound-shortcodes/shortcodes/divider.php:12
1376
+ #: shared/inbound-shortcodes/shortcodes/divider.php:54
1377
+ msgid "Border Style"
1378
+ msgstr ""
1379
+
1380
+ #: shared/inbound-shortcodes/shortcodes/divider.php:16
1381
+ #: shared/inbound-shortcodes/shortcodes/divider.php:57
1382
+ msgid "No Border"
1383
+ msgstr ""
1384
+
1385
+ #: shared/inbound-shortcodes/shortcodes/divider.php:17
1386
+ #: shared/inbound-shortcodes/shortcodes/divider.php:58
1387
+ msgid "Dashed"
1388
+ msgstr ""
1389
+
1390
+ #: shared/inbound-shortcodes/shortcodes/divider.php:18
1391
+ #: shared/inbound-shortcodes/shortcodes/divider.php:59
1392
+ msgid "Dotted"
1393
+ msgstr ""
1394
+
1395
+ #: shared/inbound-shortcodes/shortcodes/divider.php:19
1396
+ #: shared/inbound-shortcodes/shortcodes/divider.php:60
1397
+ msgid "Double"
1398
+ msgstr ""
1399
+
1400
+ #: shared/inbound-shortcodes/shortcodes/divider.php:20
1401
+ #: shared/inbound-shortcodes/shortcodes/divider.php:61
1402
+ msgid "Solid"
1403
+ msgstr ""
1404
+
1405
+ #: shared/inbound-shortcodes/shortcodes/divider.php:25
1406
+ #: shared/inbound-shortcodes/shortcodes/divider.php:68
1407
+ msgid "Border Color"
1408
+ msgstr ""
1409
+
1410
+ #: shared/inbound-shortcodes/shortcodes/divider.php:26
1411
+ #: shared/inbound-shortcodes/shortcodes/divider.php:69
1412
+ msgid "Enter a hex color code."
1413
+ msgstr ""
1414
+
1415
+ #: shared/inbound-shortcodes/shortcodes/divider.php:31
1416
+ msgid "Top Margin"
1417
+ msgstr ""
1418
+
1419
+ #: shared/inbound-shortcodes/shortcodes/divider.php:32
1420
+ #: shared/inbound-shortcodes/shortcodes/divider.php:77
1421
+ msgid "Enter the top margin value."
1422
+ msgstr ""
1423
+
1424
+ #: shared/inbound-shortcodes/shortcodes/divider.php:37
1425
+ #: shared/inbound-shortcodes/shortcodes/lists.php:25
1426
+ msgid "Bottom Margin"
1427
+ msgstr ""
1428
+
1429
+ #: shared/inbound-shortcodes/shortcodes/divider.php:38
1430
+ #: shared/inbound-shortcodes/shortcodes/divider.php:85
1431
+ msgid "Enter the bottom margin value."
1432
+ msgstr ""
1433
+
1434
+ #: shared/inbound-shortcodes/shortcodes/divider.php:44
1435
+ msgid "Insert Divider Shortcode"
1436
+ msgstr ""
1437
+
1438
+ #: shared/inbound-shortcodes/shortcodes/divider.php:50
1439
+ msgid "Divider"
1440
+ msgstr ""
1441
+
1442
+ #: shared/inbound-shortcodes/shortcodes/divider.php:76
1443
+ msgid "Margin Top"
1444
+ msgstr ""
1445
+
1446
+ #: shared/inbound-shortcodes/shortcodes/divider.php:84
1447
+ msgid "Margin Bottom"
1448
+ msgstr ""
1449
+
1450
+ #: shared/inbound-shortcodes/shortcodes/forms.php:18
1451
+ msgid "Choose Starting Template"
1452
+ msgstr ""
1453
+
1454
+ #: shared/inbound-shortcodes/shortcodes/forms.php:19
1455
+ msgid "Start Building Your Form from premade templates"
1456
+ msgstr ""
1457
+
1458
+ #: shared/inbound-shortcodes/shortcodes/forms.php:26
1459
+ #: shared/inbound-shortcodes/shortcodes/quick-forms.php:26
1460
+ msgid "Form Name<span class=\"small-required-text\">*</span>"
1461
+ msgstr ""
1462
+
1463
+ #: shared/inbound-shortcodes/shortcodes/forms.php:27
1464
+ #: shared/inbound-shortcodes/shortcodes/quick-forms.php:27
1465
+ msgid "This is not shown to visitors"
1466
+ msgstr ""
1467
+
1468
+ #: shared/inbound-shortcodes/shortcodes/forms.php:44
1469
+ msgid "Redirect URL<span class=\"small-required-text\">*</span>"
1470
+ msgstr ""
1471
+
1472
+ #: shared/inbound-shortcodes/shortcodes/forms.php:45
1473
+ msgid "Where do you want to send people after they fill out the form?"
1474
+ msgstr ""
1475
+
1476
+ #: shared/inbound-shortcodes/shortcodes/forms.php:61
1477
+ msgid "Notify on Form Completions<span class=\"small-required-text\">*</span>"
1478
+ msgstr ""
1479
+
1480
+ #: shared/inbound-shortcodes/shortcodes/forms.php:62
1481
+ msgid "Who should get admin notifications on this form?"
1482
+ msgstr ""
1483
+
1484
+ #: shared/inbound-shortcodes/shortcodes/forms.php:69
1485
+ #: shared/inbound-shortcodes/shortcodes/forms.php:76
1486
+ #: shared/inbound-shortcodes/shortcodes/quick-forms.php:19
1487
+ msgid "Name Name Name"
1488
+ msgstr ""
1489
+
1490
+ #: shared/inbound-shortcodes/shortcodes/forms.php:70
1491
+ msgid ""
1492
+ "<span class=\"switch-to-form-insert button\">Cancel Form Creation & Insert "
1493
+ "Existing Form</span>"
1494
+ msgstr ""
1495
+
1496
+ #: shared/inbound-shortcodes/shortcodes/forms.php:77
1497
+ msgid "Layout Options"
1498
+ msgstr ""
1499
+
1500
+ #: shared/inbound-shortcodes/shortcodes/forms.php:83
1501
+ msgid "Form Layout"
1502
+ msgstr ""
1503
+
1504
+ #: shared/inbound-shortcodes/shortcodes/forms.php:84
1505
+ msgid "Choose Your Form Layout"
1506
+ msgstr ""
1507
+
1508
+ #: shared/inbound-shortcodes/shortcodes/forms.php:94
1509
+ msgid "Label Alignment"
1510
+ msgstr ""
1511
+
1512
+ #: shared/inbound-shortcodes/shortcodes/forms.php:95
1513
+ msgid "Choose Label Layout"
1514
+ msgstr ""
1515
+
1516
+ #: shared/inbound-shortcodes/shortcodes/forms.php:107
1517
+ msgid "Submit Button Text"
1518
+ msgstr ""
1519
+
1520
+ #: shared/inbound-shortcodes/shortcodes/forms.php:108
1521
+ msgid ""
1522
+ "Enter the text you want to show on the submit button. (or a link to a custom "
1523
+ "submit button image)"
1524
+ msgstr ""
1525
+
1526
+ #: shared/inbound-shortcodes/shortcodes/forms.php:115
1527
+ msgid "Enter in pixel width or % width. Example: 400 <u>or</u> 100%"
1528
+ msgstr ""
1529
+
1530
+ #: shared/inbound-shortcodes/shortcodes/forms.php:124
1531
+ msgid "Field Label"
1532
+ msgstr ""
1533
+
1534
+ #: shared/inbound-shortcodes/shortcodes/forms.php:131
1535
+ msgid "Field Type"
1536
+ msgstr ""
1537
+
1538
+ #: shared/inbound-shortcodes/shortcodes/forms.php:132
1539
+ msgid "Select an form field type"
1540
+ msgstr ""
1541
+
1542
+ #: shared/inbound-shortcodes/shortcodes/forms.php:153
1543
+ msgid "Dropdown choices"
1544
+ msgstr ""
1545
+
1546
+ #: shared/inbound-shortcodes/shortcodes/forms.php:154
1547
+ msgid "Enter Your Dropdown Options. Separate by commas."
1548
+ msgstr ""
1549
+
1550
+ #: shared/inbound-shortcodes/shortcodes/forms.php:161
1551
+ msgid "Radio Choices"
1552
+ msgstr ""
1553
+
1554
+ #: shared/inbound-shortcodes/shortcodes/forms.php:162
1555
+ msgid "Enter Your Radio Options. Separate by commas."
1556
+ msgstr ""
1557
+
1558
+ #: shared/inbound-shortcodes/shortcodes/forms.php:169
1559
+ msgid "Checkbox choices"
1560
+ msgstr ""
1561
+
1562
+ #: shared/inbound-shortcodes/shortcodes/forms.php:170
1563
+ msgid "Enter Your Checkbox Options. Separate by commas."
1564
+ msgstr ""
1565
+
1566
+ #: shared/inbound-shortcodes/shortcodes/forms.php:177
1567
+ msgid "HTML Block"
1568
+ msgstr ""
1569
+
1570
+ #: shared/inbound-shortcodes/shortcodes/forms.php:178
1571
+ msgid "This is a raw HTML block in the form. Insert text/HTML"
1572
+ msgstr ""
1573
+
1574
+ #: shared/inbound-shortcodes/shortcodes/forms.php:184
1575
+ #: shared/inbound-shortcodes/shortcodes/forms.php:206
1576
+ msgid "Field Description <span class=\"small-optional-text\">(optional)</span>"
1577
+ msgstr ""
1578
+
1579
+ #: shared/inbound-shortcodes/shortcodes/forms.php:185
1580
+ msgid "<span class=\"show-advanced-fields\">Show advanced fields</span>"
1581
+ msgstr ""
1582
+
1583
+ #: shared/inbound-shortcodes/shortcodes/forms.php:191
1584
+ msgid "Required Field? <span class=\"small-optional-text\">(optional)</span>"
1585
+ msgstr ""
1586
+
1587
+ #: shared/inbound-shortcodes/shortcodes/forms.php:192
1588
+ msgid "Check to make field required"
1589
+ msgstr ""
1590
+
1591
+ #: shared/inbound-shortcodes/shortcodes/forms.php:199
1592
+ msgid "Field Placeholder <span class=\"small-optional-text\">(optional)</span>"
1593
+ msgstr ""
1594
+
1595
+ #: shared/inbound-shortcodes/shortcodes/forms.php:200
1596
+ msgid "Put field placeholder text here. Only works for normal text inputs"
1597
+ msgstr ""
1598
+
1599
+ #: shared/inbound-shortcodes/shortcodes/forms.php:207
1600
+ msgid "Put field description here."
1601
+ msgstr ""
1602
+
1603
+ #: shared/inbound-shortcodes/shortcodes/forms.php:214
1604
+ msgid "Dynamic Field Filling"
1605
+ msgstr ""
1606
+
1607
+ #: shared/inbound-shortcodes/shortcodes/forms.php:215
1608
+ msgid "Enter Your Dynamic URL parameter"
1609
+ msgstr ""
1610
+
1611
+ #: shared/inbound-shortcodes/shortcodes/forms.php:223
1612
+ msgid "Map Field To"
1613
+ msgstr ""
1614
+
1615
+ #: shared/inbound-shortcodes/shortcodes/forms.php:224
1616
+ msgid "Map this field to Leads Value"
1617
+ msgstr ""
1618
+
1619
+ #: shared/inbound-shortcodes/shortcodes/forms.php:232
1620
+ msgid "Add Another Field"
1621
+ msgstr ""
1622
+
1623
+ #: shared/inbound-shortcodes/shortcodes/forms.php:235
1624
+ msgid "Insert Inbound Form Shortcode"
1625
+ msgstr ""
1626
+
1627
+ #: shared/inbound-shortcodes/shortcodes/forms.php:247
1628
+ msgid "Create New Form"
1629
+ msgstr ""
1630
+
1631
+ #: shared/inbound-shortcodes/shortcodes/forms.php:248
1632
+ msgid "Edit Form"
1633
+ msgstr ""
1634
+
1635
+ #: shared/inbound-shortcodes/shortcodes/forms.php:249
1636
+ msgid "New Form"
1637
+ msgstr ""
1638
+
1639
+ #: shared/inbound-shortcodes/shortcodes/forms.php:250
1640
+ msgid "View Lists"
1641
+ msgstr ""
1642
+
1643
+ #: shared/inbound-shortcodes/shortcodes/forms.php:251
1644
+ msgid "Search Lists"
1645
+ msgstr ""
1646
+
1647
+ #: shared/inbound-shortcodes/shortcodes/gmap.php:12
1648
+ msgid "Map Type"
1649
+ msgstr ""
1650
+
1651
+ #: shared/inbound-shortcodes/shortcodes/gmap.php:13
1652
+ msgid "Select a map type"
1653
+ msgstr ""
1654
+
1655
+ #: shared/inbound-shortcodes/shortcodes/gmap.php:19
1656
+ msgid "Map Width"
1657
+ msgstr ""
1658
+
1659
+ #: shared/inbound-shortcodes/shortcodes/gmap.php:25
1660
+ msgid "Map Height"
1661
+ msgstr ""
1662
+
1663
+ #: shared/inbound-shortcodes/shortcodes/gmap.php:31
1664
+ msgid "Address"
1665
+ msgstr ""
1666
+
1667
+ #: shared/inbound-shortcodes/shortcodes/gmap.php:32
1668
+ msgid ""
1669
+ "Enter your address here. ex: \"New York\" or \"New York, USA\" If you want a "
1670
+ "accurate position please fill the Latitude and Longitude fields"
1671
+ msgstr ""
1672
+
1673
+ #: shared/inbound-shortcodes/shortcodes/gmap.php:37
1674
+ msgid "Latitude"
1675
+ msgstr ""
1676
+
1677
+ #: shared/inbound-shortcodes/shortcodes/gmap.php:38
1678
+ msgid "Latitude is specified in degrees within the range [-90, 90]"
1679
+ msgstr ""
1680
+
1681
+ #: shared/inbound-shortcodes/shortcodes/gmap.php:43
1682
+ msgid "Longitude"
1683
+ msgstr ""
1684
+
1685
+ #: shared/inbound-shortcodes/shortcodes/gmap.php:44
1686
+ msgid "Longitude is specified in degrees within the range [-180, 180]"
1687
+ msgstr ""
1688
+
1689
+ #: shared/inbound-shortcodes/shortcodes/gmap.php:49
1690
+ msgid "Zoom"
1691
+ msgstr ""
1692
+
1693
+ #: shared/inbound-shortcodes/shortcodes/gmap.php:50
1694
+ msgid "Set the zoom level, numeric value from 1 to 19"
1695
+ msgstr ""
1696
+
1697
+ #: shared/inbound-shortcodes/shortcodes/gmap.php:55
1698
+ msgid "Pan Control"
1699
+ msgstr ""
1700
+
1701
+ #: shared/inbound-shortcodes/shortcodes/gmap.php:56
1702
+ msgid "Enable pan control?"
1703
+ msgstr ""
1704
+
1705
+ #: shared/inbound-shortcodes/shortcodes/gmap.php:62
1706
+ msgid "Zoom Control"
1707
+ msgstr ""
1708
+
1709
+ #: shared/inbound-shortcodes/shortcodes/gmap.php:63
1710
+ msgid "Enable zoom control?"
1711
+ msgstr ""
1712
+
1713
+ #: shared/inbound-shortcodes/shortcodes/gmap.php:69
1714
+ msgid "Map Type Control"
1715
+ msgstr ""
1716
+
1717
+ #: shared/inbound-shortcodes/shortcodes/gmap.php:70
1718
+ msgid "Enable map type control?"
1719
+ msgstr ""
1720
+
1721
+ #: shared/inbound-shortcodes/shortcodes/gmap.php:76
1722
+ msgid "Popup Content"
1723
+ msgstr ""
1724
+
1725
+ #: shared/inbound-shortcodes/shortcodes/gmap.php:77
1726
+ msgid "A descriptive text for the Google Map marker popup, ex: \"My Office\""
1727
+ msgstr ""
1728
+
1729
+ #: shared/inbound-shortcodes/shortcodes/gmap.php:83
1730
+ msgid "Insert Google Map Shortcode"
1731
+ msgstr ""
1732
+
1733
+ #: shared/inbound-shortcodes/shortcodes/icon.php:12
1734
+ #: shared/inbound-shortcodes/shortcodes/list-icon.php:15
1735
+ msgid "Select the icon."
1736
+ msgstr ""
1737
+
1738
+ #: shared/inbound-shortcodes/shortcodes/icon.php:18
1739
+ msgid "Size"
1740
+ msgstr ""
1741
+
1742
+ #: shared/inbound-shortcodes/shortcodes/icon.php:19
1743
+ msgid "Select the icon size."
1744
+ msgstr ""
1745
+
1746
+ #: shared/inbound-shortcodes/shortcodes/icon.php:22
1747
+ msgid "Normal Size"
1748
+ msgstr ""
1749
+
1750
+ #: shared/inbound-shortcodes/shortcodes/icon.php:23
1751
+ msgid "Large Size"
1752
+ msgstr ""
1753
+
1754
+ #: shared/inbound-shortcodes/shortcodes/icon.php:24
1755
+ msgid "2x Size"
1756
+ msgstr ""
1757
+
1758
+ #: shared/inbound-shortcodes/shortcodes/icon.php:25
1759
+ msgid "3x Size"
1760
+ msgstr ""
1761
+
1762
+ #: shared/inbound-shortcodes/shortcodes/icon.php:26
1763
+ msgid "4x Size"
1764
+ msgstr ""
1765
+
1766
+ #: shared/inbound-shortcodes/shortcodes/icon.php:31
1767
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:18
1768
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:105
1769
+ msgid "Style"
1770
+ msgstr ""
1771
+
1772
+ #: shared/inbound-shortcodes/shortcodes/icon.php:32
1773
+ msgid "Select the icon style."
1774
+ msgstr ""
1775
+
1776
+ #: shared/inbound-shortcodes/shortcodes/icon.php:35
1777
+ msgid "Normal"
1778
+ msgstr ""
1779
+
1780
+ #: shared/inbound-shortcodes/shortcodes/icon.php:36
1781
+ msgid "Muted"
1782
+ msgstr ""
1783
+
1784
+ #: shared/inbound-shortcodes/shortcodes/icon.php:37
1785
+ msgid "Border"
1786
+ msgstr ""
1787
+
1788
+ #: shared/inbound-shortcodes/shortcodes/icon.php:38
1789
+ msgid "Spin"
1790
+ msgstr ""
1791
+
1792
+ #: shared/inbound-shortcodes/shortcodes/icon.php:44
1793
+ msgid "Insert Icon Shortcode"
1794
+ msgstr ""
1795
+
1796
+ #: shared/inbound-shortcodes/shortcodes/intro.php:18
1797
+ #: shared/inbound-shortcodes/shortcodes/intro.php:53
1798
+ msgid "Text Alignment"
1799
+ msgstr ""
1800
+
1801
+ #: shared/inbound-shortcodes/shortcodes/intro.php:19
1802
+ msgid "Enter text alignment."
1803
+ msgstr ""
1804
+
1805
+ #: shared/inbound-shortcodes/shortcodes/intro.php:22
1806
+ #: shared/inbound-shortcodes/shortcodes/intro.php:57
1807
+ msgid "Align Center"
1808
+ msgstr ""
1809
+
1810
+ #: shared/inbound-shortcodes/shortcodes/intro.php:23
1811
+ #: shared/inbound-shortcodes/shortcodes/intro.php:58
1812
+ msgid "Align Left"
1813
+ msgstr ""
1814
+
1815
+ #: shared/inbound-shortcodes/shortcodes/intro.php:24
1816
+ #: shared/inbound-shortcodes/shortcodes/intro.php:59
1817
+ msgid "Align Right"
1818
+ msgstr ""
1819
+
1820
+ #: shared/inbound-shortcodes/shortcodes/intro.php:36
1821
+ msgid "Insert Intro Shortcode"
1822
+ msgstr ""
1823
+
1824
+ #: shared/inbound-shortcodes/shortcodes/intro.php:42
1825
+ msgid "Intro"
1826
+ msgstr ""
1827
+
1828
+ #: shared/inbound-shortcodes/shortcodes/intro.php:54
1829
+ msgid "The text alignment"
1830
+ msgstr ""
1831
+
1832
+ #: shared/inbound-shortcodes/shortcodes/landing-page-list.php:14
1833
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:12
1834
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:12
1835
+ msgid "Heading Text"
1836
+ msgstr ""
1837
+
1838
+ #: shared/inbound-shortcodes/shortcodes/landing-page-list.php:21
1839
+ #: shared/inbound-shortcodes/shortcodes/landing-page-list.php:57
1840
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:19
1841
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:77
1842
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:30
1843
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:19
1844
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:75
1845
+ msgid "Select the number of column."
1846
+ msgstr ""
1847
+
1848
+ #: shared/inbound-shortcodes/shortcodes/landing-page-list.php:24
1849
+ #: shared/inbound-shortcodes/shortcodes/landing-page-list.php:60
1850
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:23
1851
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:81
1852
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:16
1853
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:87
1854
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:34
1855
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:123
1856
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:23
1857
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:79
1858
+ msgid "2 Columns"
1859
+ msgstr ""
1860
+
1861
+ #: shared/inbound-shortcodes/shortcodes/landing-page-list.php:25
1862
+ #: shared/inbound-shortcodes/shortcodes/landing-page-list.php:61
1863
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:24
1864
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:82
1865
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:17
1866
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:88
1867
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:35
1868
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:124
1869
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:24
1870
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:80
1871
+ msgid "3 Columns"
1872
+ msgstr ""
1873
+
1874
+ #: shared/inbound-shortcodes/shortcodes/landing-page-list.php:26
1875
+ #: shared/inbound-shortcodes/shortcodes/landing-page-list.php:62
1876
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:25
1877
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:83
1878
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:18
1879
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:89
1880
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:36
1881
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:125
1882
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:25
1883
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:81
1884
+ msgid "4 Columns"
1885
+ msgstr ""
1886
+
1887
+ #: shared/inbound-shortcodes/shortcodes/landing-page-list.php:31
1888
+ #: shared/inbound-shortcodes/shortcodes/landing-page-list.php:69
1889
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:31
1890
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:91
1891
+ msgid "Post Number"
1892
+ msgstr ""
1893
+
1894
+ #: shared/inbound-shortcodes/shortcodes/landing-page-list.php:32
1895
+ #: shared/inbound-shortcodes/shortcodes/landing-page-list.php:70
1896
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:92
1897
+ msgid "Enter the number of post to show."
1898
+ msgstr ""
1899
+
1900
+ #: shared/inbound-shortcodes/shortcodes/landing-page-list.php:38
1901
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:58
1902
+ msgid "Insert Landing Page List Shortcode"
1903
+ msgstr ""
1904
+
1905
+ #: shared/inbound-shortcodes/shortcodes/landing-page-list.php:44
1906
+ msgid "Portfolio"
1907
+ msgstr ""
1908
+
1909
+ #: shared/inbound-shortcodes/shortcodes/landing-page-list.php:48
1910
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:68
1911
+ #: shared/inbound-shortcodes/shortcodes/tabs.php:12
1912
+ #: shared/inbound-shortcodes/shortcodes/tabs.php:54
1913
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:12
1914
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:97
1915
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:66
1916
+ msgid "Heading"
1917
+ msgstr ""
1918
+
1919
+ #: shared/inbound-shortcodes/shortcodes/landing-page-list.php:117
1920
+ msgid "View Project"
1921
+ msgstr ""
1922
+
1923
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:22
1924
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:80
1925
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:33
1926
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:122
1927
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:22
1928
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:78
1929
+ msgid "1 Column"
1930
+ msgstr ""
1931
+
1932
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:26
1933
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:84
1934
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:19
1935
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:90
1936
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:37
1937
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:126
1938
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:26
1939
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:82
1940
+ msgid "5 Columns"
1941
+ msgstr ""
1942
+
1943
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:32
1944
+ msgid "Enter the number of post to show. (enter -1 for all posts)"
1945
+ msgstr ""
1946
+
1947
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:38
1948
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:100
1949
+ msgid "Optional you can sort by a category."
1950
+ msgstr ""
1951
+
1952
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:44
1953
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:108
1954
+ msgid "Excerpt Lenght"
1955
+ msgstr ""
1956
+
1957
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:45
1958
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:109
1959
+ msgid "The post excerpt word lenght."
1960
+ msgstr ""
1961
+
1962
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:50
1963
+ msgid "Show Featured Thumbnails"
1964
+ msgstr ""
1965
+
1966
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:51
1967
+ msgid "Uncheck to hide featured thumbnails"
1968
+ msgstr ""
1969
+
1970
+ #: shared/inbound-shortcodes/shortcodes/landing_pages.php:64
1971
+ msgid "Entries"
1972
+ msgstr ""
1973
+
1974
+ #: shared/inbound-shortcodes/shortcodes/leadp.php:12
1975
+ msgid "Alignment"
1976
+ msgstr ""
1977
+
1978
+ #: shared/inbound-shortcodes/shortcodes/leadp.php:13
1979
+ msgid "Add the pharagraph alignment"
1980
+ msgstr ""
1981
+
1982
+ #: shared/inbound-shortcodes/shortcodes/leadp.php:23
1983
+ msgid "Paragraph Text"
1984
+ msgstr ""
1985
+
1986
+ #: shared/inbound-shortcodes/shortcodes/leadp.php:24
1987
+ msgid "Add the pharagraph text"
1988
+ msgstr ""
1989
+
1990
+ #: shared/inbound-shortcodes/shortcodes/leadp.php:30
1991
+ msgid "Insert Lead Paragraph Shortcode"
1992
+ msgstr ""
1993
+
1994
+ #: shared/inbound-shortcodes/shortcodes/list-icon.php:21
1995
+ msgid "List Content"
1996
+ msgstr ""
1997
+
1998
+ #: shared/inbound-shortcodes/shortcodes/list-icon.php:22
1999
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:64
2000
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:148
2001
+ #: shared/inbound-shortcodes/shortcodes/tabs.php:35
2002
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:47
2003
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:108
2004
+ msgid "Put the content here."
2005
+ msgstr ""
2006
+
2007
+ #: shared/inbound-shortcodes/shortcodes/list-icon.php:28
2008
+ msgid "Add More List"
2009
+ msgstr ""
2010
+
2011
+ #: shared/inbound-shortcodes/shortcodes/list-icon.php:31
2012
+ msgid "Insert List Icons Shortcode"
2013
+ msgstr ""
2014
+
2015
+ #: shared/inbound-shortcodes/shortcodes/lists.php:12
2016
+ msgid "List Icon"
2017
+ msgstr ""
2018
+
2019
+ #: shared/inbound-shortcodes/shortcodes/lists.php:13
2020
+ msgid "Select an icon for the List"
2021
+ msgstr ""
2022
+
2023
+ #: shared/inbound-shortcodes/shortcodes/lists.php:19
2024
+ msgid "Font Size"
2025
+ msgstr ""
2026
+
2027
+ #: shared/inbound-shortcodes/shortcodes/lists.php:20
2028
+ msgid "Size of List Font"
2029
+ msgstr ""
2030
+
2031
+ #: shared/inbound-shortcodes/shortcodes/lists.php:26
2032
+ msgid "space between list items"
2033
+ msgstr ""
2034
+
2035
+ #: shared/inbound-shortcodes/shortcodes/lists.php:31
2036
+ msgid "Icon Color"
2037
+ msgstr ""
2038
+
2039
+ #: shared/inbound-shortcodes/shortcodes/lists.php:32
2040
+ msgid "Color of Icon"
2041
+ msgstr ""
2042
+
2043
+ #: shared/inbound-shortcodes/shortcodes/lists.php:37
2044
+ msgid "Text Color"
2045
+ msgstr ""
2046
+
2047
+ #: shared/inbound-shortcodes/shortcodes/lists.php:38
2048
+ msgid "Color of Text in List"
2049
+ msgstr ""
2050
+
2051
+ #: shared/inbound-shortcodes/shortcodes/lists.php:46
2052
+ msgid "Insert Styled List Shortcode"
2053
+ msgstr ""
2054
+
2055
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:13
2056
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:84
2057
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:119
2058
+ msgid "Select the column."
2059
+ msgstr ""
2060
+
2061
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:27
2062
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:99
2063
+ msgid "Featured Plan"
2064
+ msgstr ""
2065
+
2066
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:28
2067
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:100
2068
+ msgid "Check to set this plan as featured"
2069
+ msgstr ""
2070
+
2071
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:33
2072
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:107
2073
+ msgid "Plan Title"
2074
+ msgstr ""
2075
+
2076
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:34
2077
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:108
2078
+ msgid "Enter the plan title."
2079
+ msgstr ""
2080
+
2081
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:39
2082
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:115
2083
+ msgid "Plan Price"
2084
+ msgstr ""
2085
+
2086
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:40
2087
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:116
2088
+ msgid "Enter the plan price."
2089
+ msgstr ""
2090
+
2091
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:45
2092
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:123
2093
+ msgid "Plan Term"
2094
+ msgstr ""
2095
+
2096
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:46
2097
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:124
2098
+ msgid "Enter the plan term. e.g : \"per month\", \"per year\" etc."
2099
+ msgstr ""
2100
+
2101
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:51
2102
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:131
2103
+ msgid "Plan Button Text"
2104
+ msgstr ""
2105
+
2106
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:57
2107
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:139
2108
+ msgid "Plan Button Link"
2109
+ msgstr ""
2110
+
2111
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:63
2112
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:147
2113
+ msgid "Plan Content"
2114
+ msgstr ""
2115
+
2116
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:70
2117
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:53
2118
+ msgid "Add More Testimony"
2119
+ msgstr ""
2120
+
2121
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:73
2122
+ msgid "Insert Pricing Shortcode"
2123
+ msgstr ""
2124
+
2125
+ #: shared/inbound-shortcodes/shortcodes/pricing.php:79
2126
+ msgid "Pricing Table"
2127
+ msgstr ""
2128
+
2129
+ #: shared/inbound-shortcodes/shortcodes/profile.php:12
2130
+ #: shared/inbound-shortcodes/shortcodes/profile.php:71
2131
+ msgid "Profile Name"
2132
+ msgstr ""
2133
+
2134
+ #: shared/inbound-shortcodes/shortcodes/profile.php:13
2135
+ #: shared/inbound-shortcodes/shortcodes/profile.php:72
2136
+ msgid "Enter the name."
2137
+ msgstr ""
2138
+
2139
+ #: shared/inbound-shortcodes/shortcodes/profile.php:18
2140
+ #: shared/inbound-shortcodes/shortcodes/profile.php:79
2141
+ msgid "Profile Meta"
2142
+ msgstr ""
2143
+
2144
+ #: shared/inbound-shortcodes/shortcodes/profile.php:19
2145
+ #: shared/inbound-shortcodes/shortcodes/profile.php:80
2146
+ msgid "Enter the profile meta. e.g job position etc."
2147
+ msgstr ""
2148
+
2149
+ #: shared/inbound-shortcodes/shortcodes/profile.php:24
2150
+ #: shared/inbound-shortcodes/shortcodes/profile.php:87
2151
+ msgid "Profile Image"
2152
+ msgstr ""
2153
+
2154
+ #: shared/inbound-shortcodes/shortcodes/profile.php:25
2155
+ #: shared/inbound-shortcodes/shortcodes/profile.php:88
2156
+ msgid "Paste your profile image URL here."
2157
+ msgstr ""
2158
+
2159
+ #: shared/inbound-shortcodes/shortcodes/profile.php:30
2160
+ #: shared/inbound-shortcodes/shortcodes/profile.php:95
2161
+ msgid "Profile Link"
2162
+ msgstr ""
2163
+
2164
+ #: shared/inbound-shortcodes/shortcodes/profile.php:31
2165
+ msgid "Paste your profile link URL here."
2166
+ msgstr ""
2167
+
2168
+ #: shared/inbound-shortcodes/shortcodes/profile.php:36
2169
+ #: shared/inbound-shortcodes/shortcodes/profile.php:103
2170
+ msgid "Profile Facebook"
2171
+ msgstr ""
2172
+
2173
+ #: shared/inbound-shortcodes/shortcodes/profile.php:37
2174
+ #: shared/inbound-shortcodes/shortcodes/profile.php:104
2175
+ msgid "Paste your facebook URL here."
2176
+ msgstr ""
2177
+
2178
+ #: shared/inbound-shortcodes/shortcodes/profile.php:42
2179
+ #: shared/inbound-shortcodes/shortcodes/profile.php:111
2180
+ msgid "Profile Twitter"
2181
+ msgstr ""
2182
+
2183
+ #: shared/inbound-shortcodes/shortcodes/profile.php:43
2184
+ #: shared/inbound-shortcodes/shortcodes/profile.php:112
2185
+ msgid "Paste your twitter URL here."
2186
+ msgstr ""
2187
+
2188
+ #: shared/inbound-shortcodes/shortcodes/profile.php:48
2189
+ #: shared/inbound-shortcodes/shortcodes/profile.php:119
2190
+ msgid "Profile Email Address"
2191
+ msgstr ""
2192
+
2193
+ #: shared/inbound-shortcodes/shortcodes/profile.php:49
2194
+ #: shared/inbound-shortcodes/shortcodes/profile.php:120
2195
+ msgid "Paste your email address here."
2196
+ msgstr ""
2197
+
2198
+ #: shared/inbound-shortcodes/shortcodes/profile.php:54
2199
+ #: shared/inbound-shortcodes/shortcodes/profile.php:127
2200
+ msgid "Profile Description"
2201
+ msgstr ""
2202
+
2203
+ #: shared/inbound-shortcodes/shortcodes/profile.php:55
2204
+ #: shared/inbound-shortcodes/shortcodes/profile.php:128
2205
+ msgid "Enter the profile description text."
2206
+ msgstr ""
2207
+
2208
+ #: shared/inbound-shortcodes/shortcodes/profile.php:61
2209
+ msgid "Insert Profile Shortcode"
2210
+ msgstr ""
2211
+
2212
+ #: shared/inbound-shortcodes/shortcodes/profile.php:67
2213
+ msgid "Profile"
2214
+ msgstr ""
2215
+
2216
+ #: shared/inbound-shortcodes/shortcodes/profile.php:96
2217
+ msgid "Paste your profile URL here."
2218
+ msgstr ""
2219
+
2220
+ #: shared/inbound-shortcodes/shortcodes/quick-forms.php:11
2221
+ msgid "Insert Saved Form"
2222
+ msgstr ""
2223
+
2224
+ #: shared/inbound-shortcodes/shortcodes/quick-forms.php:12
2225
+ msgid "Insert a Saved Form"
2226
+ msgstr ""
2227
+
2228
+ #: shared/inbound-shortcodes/shortcodes/quick-forms.php:20
2229
+ msgid "<span class=\"switch-to-form-builder button\">Build a New Form</span>"
2230
+ msgstr ""
2231
+
2232
+ #: shared/inbound-shortcodes/shortcodes/quick-forms.php:35
2233
+ msgid "Quick Insert Inbound Form Shortcode"
2234
+ msgstr ""
2235
+
2236
+ #: shared/inbound-shortcodes/shortcodes/social.php:12
2237
+ msgid "Facebook"
2238
+ msgstr ""
2239
+
2240
+ #: shared/inbound-shortcodes/shortcodes/social.php:13
2241
+ msgid "Enter your facebook profile URL"
2242
+ msgstr ""
2243
+
2244
+ #: shared/inbound-shortcodes/shortcodes/social.php:18
2245
+ msgid "Twitter"
2246
+ msgstr ""
2247
+
2248
+ #: shared/inbound-shortcodes/shortcodes/social.php:19
2249
+ msgid "Enter your twitter profile URL"
2250
+ msgstr ""
2251
+
2252
+ #: shared/inbound-shortcodes/shortcodes/social.php:24
2253
+ msgid "Google+"
2254
+ msgstr ""
2255
+
2256
+ #: shared/inbound-shortcodes/shortcodes/social.php:25
2257
+ msgid "Enter your google plus profile URL"
2258
+ msgstr ""
2259
+
2260
+ #: shared/inbound-shortcodes/shortcodes/social.php:30
2261
+ msgid "Linkedin"
2262
+ msgstr ""
2263
+
2264
+ #: shared/inbound-shortcodes/shortcodes/social.php:31
2265
+ msgid "Enter your linkedin profile URL"
2266
+ msgstr ""
2267
+
2268
+ #: shared/inbound-shortcodes/shortcodes/social.php:36
2269
+ msgid "Github"
2270
+ msgstr ""
2271
+
2272
+ #: shared/inbound-shortcodes/shortcodes/social.php:37
2273
+ msgid "Enter your github profile URL"
2274
+ msgstr ""
2275
+
2276
+ #: shared/inbound-shortcodes/shortcodes/social.php:42
2277
+ msgid "Instagram"
2278
+ msgstr ""
2279
+
2280
+ #: shared/inbound-shortcodes/shortcodes/social.php:43
2281
+ msgid "Enter your instagram profile URL"
2282
+ msgstr ""
2283
+
2284
+ #: shared/inbound-shortcodes/shortcodes/social.php:48
2285
+ msgid "Pinterest"
2286
+ msgstr ""
2287
+
2288
+ #: shared/inbound-shortcodes/shortcodes/social.php:49
2289
+ msgid "Enter your pinterest profile URL"
2290
+ msgstr ""
2291
+
2292
+ #: shared/inbound-shortcodes/shortcodes/social.php:54
2293
+ msgid "RSS"
2294
+ msgstr ""
2295
+
2296
+ #: shared/inbound-shortcodes/shortcodes/social.php:55
2297
+ msgid "Enter your RSS feeds URL"
2298
+ msgstr ""
2299
+
2300
+ #: shared/inbound-shortcodes/shortcodes/social.php:61
2301
+ msgid "Insert Social Link Shortcode"
2302
+ msgstr ""
2303
+
2304
+ #: shared/inbound-shortcodes/shortcodes/tabs.php:13
2305
+ #: shared/inbound-shortcodes/shortcodes/tabs.php:55
2306
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:13
2307
+ msgid "Enter the heading text"
2308
+ msgstr ""
2309
+
2310
+ #: shared/inbound-shortcodes/shortcodes/tabs.php:21
2311
+ msgid "Tab Title"
2312
+ msgstr ""
2313
+
2314
+ #: shared/inbound-shortcodes/shortcodes/tabs.php:22
2315
+ msgid "Enter the tab title."
2316
+ msgstr ""
2317
+
2318
+ #: shared/inbound-shortcodes/shortcodes/tabs.php:34
2319
+ msgid "Tab Content"
2320
+ msgstr ""
2321
+
2322
+ #: shared/inbound-shortcodes/shortcodes/tabs.php:41
2323
+ msgid "Add More Tab"
2324
+ msgstr ""
2325
+
2326
+ #: shared/inbound-shortcodes/shortcodes/tabs.php:44
2327
+ msgid "Insert Tabs Shortcode"
2328
+ msgstr ""
2329
+
2330
+ #: shared/inbound-shortcodes/shortcodes/tabs.php:50
2331
+ msgid "Tabs"
2332
+ msgstr ""
2333
+
2334
+ #: shared/inbound-shortcodes/shortcodes/tabs.php:65
2335
+ msgid "Enter the tab title"
2336
+ msgstr ""
2337
+
2338
+ #: shared/inbound-shortcodes/shortcodes/tabs.php:82
2339
+ msgid "Enter the tab content"
2340
+ msgstr ""
2341
+
2342
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:23
2343
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:110
2344
+ msgid "Nested"
2345
+ msgstr ""
2346
+
2347
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:24
2348
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:111
2349
+ msgid "Centered"
2350
+ msgstr ""
2351
+
2352
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:46
2353
+ msgid "Enter the title."
2354
+ msgstr ""
2355
+
2356
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:64
2357
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:144
2358
+ msgid "Image URL"
2359
+ msgstr ""
2360
+
2361
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:65
2362
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:145
2363
+ msgid "Enter your image url, it will override the icon above"
2364
+ msgstr ""
2365
+
2366
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:72
2367
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:167
2368
+ msgid "The title link destination URL."
2369
+ msgstr ""
2370
+
2371
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:77
2372
+ msgid "Teaser Content"
2373
+ msgstr ""
2374
+
2375
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:84
2376
+ msgid "Add More Block"
2377
+ msgstr ""
2378
+
2379
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:87
2380
+ msgid "Insert Teaser Shortcode"
2381
+ msgstr ""
2382
+
2383
+ #: shared/inbound-shortcodes/shortcodes/teaser.php:93
2384
+ msgid "Teaser"
2385
+ msgstr ""
2386
+
2387
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:34
2388
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:91
2389
+ msgid "Testimony Author"
2390
+ msgstr ""
2391
+
2392
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:35
2393
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:92
2394
+ msgid "Enter the testimony author name."
2395
+ msgstr ""
2396
+
2397
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:40
2398
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:99
2399
+ msgid "Testimony Author Meta"
2400
+ msgstr ""
2401
+
2402
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:41
2403
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:100
2404
+ msgid "The author job, company or website name."
2405
+ msgstr ""
2406
+
2407
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:46
2408
+ msgid "Testimony Content"
2409
+ msgstr ""
2410
+
2411
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:56
2412
+ msgid "Insert Testimonial Shortcode"
2413
+ msgstr ""
2414
+
2415
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:62
2416
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:124
2417
+ msgid "Testimonial"
2418
+ msgstr ""
2419
+
2420
+ #: shared/inbound-shortcodes/shortcodes/testimonial.php:107
2421
+ msgid "Testimony Text"
2422
+ msgstr ""
2423
+
2424
+ #: shared/inbound-shortcodes/shortcodes/video.php:12
2425
+ msgid "Video URL"
2426
+ msgstr ""
2427
+
2428
+ #: shared/inbound-shortcodes/shortcodes/video.php:13
2429
+ msgid ""
2430
+ "Paste the video URL here, click <a href=\"http://codex.wordpress.org/"
2431
+ "Embeds#Okay.2C_So_What_Sites_Can_I_Embed_From.3F\" target=\"_blank\">here</"
2432
+ "a> to see all available video hosts."
2433
+ msgstr ""
2434
+
2435
+ #: shared/inbound-shortcodes/shortcodes/video.php:19
2436
+ msgid "Insert Video Shortcode"
2437
+ msgstr ""
shared/metaboxes/inbound-metaboxes.css CHANGED
@@ -22,7 +22,7 @@ position: absolute;
22
  display: none;
23
  }
24
  .inbound-description-block-option {
25
- max-width: 55%;
26
  }
27
  .inbound-media-row .button-primary.new-save-wp-cta {
28
  position: absolute;
@@ -54,7 +54,7 @@ display: inline-block;
54
  }
55
  .inbound-wysiwyg, .inbound-media, .inbound-datepicker, .inbound-textarea {
56
  vertical-align: top;
57
- }
58
  .inbound-textarea-option .wp-cta-success-message {
59
  position: absolute;
60
  margin-top: 0px;
22
  display: none;
23
  }
24
  .inbound-description-block-option {
25
+ max-width: 87%;
26
  }
27
  .inbound-media-row .button-primary.new-save-wp-cta {
28
  position: absolute;
54
  }
55
  .inbound-wysiwyg, .inbound-media, .inbound-datepicker, .inbound-textarea {
56
  vertical-align: top;
57
+ }
58
  .inbound-textarea-option .wp-cta-success-message {
59
  position: absolute;
60
  margin-top: 0px;
shared/tracking/form-population.js ADDED
@@ -0,0 +1 @@
 
0
  jQuery(selector).each(
1
  function(){
2
  //if this item has been cookied, restore it
3
  var name = jQuery(this).attr('name');
4
 
5
  if( jQuery.cookie( name ) && type_input != 'submit' && type_input != 'hidden' ){
6
  jQuery(this).val( jQuery.cookie(name) );
7
  }
8
  //assign a change function to the item to cookie it
9
  jQuery(this).change(
10
  function(){
11
  jQuery.cookie(name, jQuery(this).val(), { path: '/', expires: 365 });
12
  }
13
  );
14
  }
15
  );
16
  jQuery(selector).each(
17
  function(){
18
  var form_name = jQuery(this).attr('name');
19
  var form_id = jQuery(this).attr('id');
20
  var form_class = jQuery(this).attr('class');
21
  if(typeof(form_name) != "undefined" && form_name !== null) {
22
  jQuery.cookie("wpl_form_uid", form_name, { path: '/', expires: 365 });
23
  }
24
  else if(typeof(form_id) != "undefined" && form_id !== null) {
25
  jQuery.cookie("wpl_form_uid", form_id, { path: '/', expires: 365 });
26
  }
27
  else if (typeof(form_class) != "undefined" && form_class !== null) {
28
  jQuery.cookie("wpl_form_uid", form_class, { path: '/', expires: 365 });
29
  } else {
30
  jQuery.cookie("wpl_form_uid", 'form_generic', { path: '/', expires: 365 });
31
  }
32
  }
33
  );
1
+ function wpl_remember_inputs( selector ){
2
  jQuery(selector).each(
3
  function(){
4
  //if this item has been cookied, restore it
5
  var name = jQuery(this).attr('name');
6
 
7
  if( jQuery.cookie( name ) && type_input != 'submit' && type_input != 'hidden' ){
8
  jQuery(this).val( jQuery.cookie(name) );
9
  }
10
  //assign a change function to the item to cookie it
11
  jQuery(this).change(
12
  function(){
13
  jQuery.cookie(name, jQuery(this).val(), { path: '/', expires: 365 });
14
  }
15
  );
16
  }
17
  );
18
  jQuery(selector).each(
19
  function(){
20
  var form_name = jQuery(this).attr('name');
21
  var form_id = jQuery(this).attr('id');
22
  var form_class = jQuery(this).attr('class');
23
  if(typeof(form_name) != "undefined" && form_name !== null) {
24
  jQuery.cookie("wpl_form_uid", form_name, { path: '/', expires: 365 });
25
  }
26
  else if(typeof(form_id) != "undefined" && form_id !== null) {
27
  jQuery.cookie("wpl_form_uid", form_id, { path: '/', expires: 365 });
28
  }
29
  else if (typeof(form_class) != "undefined" && form_class !== null) {
30
  jQuery.cookie("wpl_form_uid", form_class, { path: '/', expires: 365 });
31
  } else {
32
  jQuery.cookie("wpl_form_uid", 'form_generic', { path: '/', expires: 365 });
33
  }
34
  }
35
  );
shared/tracking/js/inprogress.store.lead.ajax.js CHANGED
@@ -1,630 +1,630 @@
1
- /* function add_inbound_form_class(el, value) {
2
- var value = value.replace(" ", "_");
3
- var value = value.replace("-", "_");
4
- el.addClass('inbound_map_value');
5
- el.attr('data-inbound-form-map', 'inbound_map_' + value);
6
- }
7
-
8
- // Build Form Object
9
- function inbound_map_fields(el, value, Obj) {
10
- var formObj = [];
11
- var $this = el;
12
- var clean_output = value;
13
- var label = $this.closest('label').text();
14
- var exclude = ['credit-card']; // exlcude values from formObj
15
- var inarray = jQuery.inArray(clean_output, exclude);
16
- if(inarray == 0){
17
- return null;
18
- }
19
- // Add items to formObj
20
- formObj.push({
21
- field_label: label,
22
- field_name: $this.attr("name"),
23
- field_value: $this.attr("value"),
24
- field_id: $this.attr("id"),
25
- field_class: $this.attr("class"),
26
- field_type: $this.attr("type"),
27
- match: clean_output,
28
- js_selector: $this.attr("data-js-selector")
29
- });
30
- return formObj;
31
- }
32
-
33
- // Trim Whitespace
34
- function trim(s) {
35
- s = s.replace(/(^\s*)|(\s*$)/gi,"");
36
- s = s.replace(/[ ]{2,}/gi," ");
37
- s = s.replace(/\n /,"\n"); return s;
38
- }
39
-
40
- // Run Form Mapper
41
- function run_field_map_function(el, form, lookingfor) {
42
- var return_form;
43
- var formObj = new Array();
44
- var $this = el;
45
-
46
- var array = lookingfor.split(",");
47
- var array_length = array.length - 1;
48
- //var test = process_element($this);
49
- //console.log(test);
50
- // Main Loop
51
- for (var i = 0; i < array.length; i++) {
52
- var clean_output = trim(array[i]);
53
- //console.log(clean_output);
54
-
55
- // Look for attr name match
56
- if ($this.attr("name").toLowerCase().indexOf(clean_output)>-1) {
57
- var the_map = inbound_map_fields($this, clean_output, formObj);
58
- add_inbound_form_class($this, clean_output);
59
- console.log('match name: ' + clean_output);
60
- }
61
- // look for id match
62
- else if ($this.attr("id").toLowerCase().indexOf(clean_output)>-1) {
63
- var the_map = inbound_map_fields($this, clean_output, formObj);
64
- add_inbound_form_class($this, clean_output);
65
- console.log('match id: ' + clean_output);
66
- }
67
- // Look for label name match
68
- else if ($this.closest('li').children('label').length>0)
69
- {
70
- if ($this.closest('li').children('label').html().toLowerCase().indexOf(clean_output)>-1)
71
- {
72
- var the_map = inbound_map_fields($this, clean_output, formObj);
73
- add_inbound_form_class($this, clean_output);
74
- console.log('match li: ' + clean_output);
75
- }
76
- }
77
- // Look for closest div label name match
78
- else if ($this.closest('div').children('label').length>0)
79
- {
80
- if ($this.closest('div').children('label').html().toLowerCase().indexOf(clean_output)>-1)
81
- {
82
- var the_map = inbound_map_fields($this, clean_output, formObj);
83
- add_inbound_form_class($this, clean_output);
84
- console.log('match div: ' + clean_output);
85
- }
86
- } else {
87
- return false;
88
- }
89
- }
90
- return_form = the_map;
91
-
92
- return return_form;
93
- }
94
- */
95
- jQuery(document).ready(function($) {
96
-
97
- /* Mapping IN PROGRESS
98
- var matched_form_items = [];
99
- jQuery('form.wpl-track-me').find('input[type=text],input[type=email]').each(function() {
100
- var $this = jQuery(this);
101
- var the_name = $this.attr('name');
102
- var look_for = run_field_map_function( $this, 'form.wpl-track-me', "job title, first name, last name, email, e-mail, company, phone, tele");
103
-
104
- if (typeof look_for !== "undefined") {
105
- matched_form_items.push(look_for);
106
- } else {
107
- console.log('NO Match on ' + the_name);
108
- }
109
-
110
- //console.log(test);
111
- });
112
- console.log(matched_form_items);
113
- // Testing
114
- //var test = run_field_map_function('form.wpl-track-me', "job title, fiz name, last name, email, e-mail, company, phonez, tele");
115
-
116
- //console.log(test);
117
- /* Mapping IN PROGRESS */
118
-
119
- /* Core Inbound Form Tracking Script */
120
-
121
- jQuery("body").on('submit', '.wpl-track-me', function (e) {
122
-
123
- this_form = jQuery(this);
124
-
125
- element_type = 'FORM';
126
-
127
- // process form only once
128
- processed = this_form.hasClass('lead_processed');
129
- if (processed === true) {
130
- return;
131
- }
132
-
133
- form_id = jQuery(this).attr('id');
134
- form_class = jQuery(this).attr('class');
135
-
136
- jQuery('button, input[type="button"]').css('cursor', 'wait');
137
- jQuery('input').css('cursor', 'wait');
138
- jQuery('body').css('cursor', 'wait');
139
-
140
-
141
- e.preventDefault(); // halt normal form
142
-
143
- var email = "";
144
- var firstname = "";
145
- var lastname = "";
146
- var phone = "";
147
- var company = "";
148
- var address = "";
149
-
150
- var tracking_obj = JSON.stringify(trackObj);
151
- var page_view_count = countProperties(pageviewObj);
152
- //console.log("view count" + page_view_count);
153
-
154
- if (!email)
155
- {
156
-
157
- jQuery(this_form).find('input[type=text],input[type=email]').each(function() {
158
- if (this.value)
159
- {
160
- if (jQuery(this).attr("name").toLowerCase().indexOf('email')>-1&&!email) {
161
- email = this.value;
162
-
163
- }
164
- else if(jQuery(this).attr("name").toLowerCase().indexOf('e-mail')>-1&&!email) {
165
- email = this.value;
166
- }
167
- else if(jQuery(this).attr("name").toLowerCase().indexOf('name')>-1&&!firstname) {
168
- firstname = this.value;
169
- }
170
- else if (jQuery(this).attr("name").toLowerCase().indexOf('last')>-1) {
171
- lastname = this.value;
172
- }
173
- else if (jQuery(this).attr("name").toLowerCase().indexOf('phone')>-1) {
174
- phone = this.value;
175
- }
176
- else if (jQuery(this).attr("name").toLowerCase().indexOf('company')>-1) {
177
- company = this.value;
178
- }
179
- else if (jQuery(this).attr("name").toLowerCase().indexOf('address')>-1) {
180
- address = this.value;
181
- }
182
- }
183
- });
184
- }
185
-
186
- if (!email)
187
- {
188
- jQuery(this_form).find('input[type=text],input[type=email]').each(function() {
189
- if (jQuery(this).closest('li').children('label').length>0)
190
- {
191
- if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('email')>-1&&!email)
192
- {
193
- email = this.value;
194
- }
195
- else if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('e-mail')>-1&&!email) {
196
- email = this.value;
197
- }
198
- else if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('name')>-1&&!firstname) {
199
- firstname = this.value;
200
- }
201
- else if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('last')>-1) {
202
- lastname = this.value;
203
- }
204
- else if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('phone')>-1) {
205
- phone = this.value;
206
- }
207
- else if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('company')>-1) {
208
- company = this.value;
209
- }
210
- else if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('address')>-1) {
211
- address = this.value;
212
- }
213
- }
214
-
215
- });
216
- }
217
-
218
- if (!email)
219
- {
220
- jQuery(this_form).find('input[type=text],input[type=email]').each(function() {
221
- if (jQuery(this).closest('div').children('label').length>0)
222
- {
223
- if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('email')>-1&&!email)
224
- {
225
- email = this.value;
226
- }
227
- else if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('e-mail')>-1&&!email) {
228
- email = this.value;
229
- }
230
- else if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('name')>-1&&!firstname) {
231
- firstname = this.value;
232
- }
233
- else if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('last')>-1) {
234
- lastname = this.value;
235
- }
236
- else if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('phone')>-1) {
237
- phone = this.value;
238
- }
239
- else if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('company')>-1) {
240
- company = this.value;
241
- }
242
- else if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('address')>-1) {
243
- address = this.value;
244
- }
245
- }
246
- });
247
- }
248
-
249
-
250
- if (!lastname&&firstname)
251
- {
252
- var parts = firstname.split(" ");
253
- firstname = parts[0];
254
- lastname = parts[1];
255
- }
256
-
257
- var form_inputs = jQuery('.wpl-track-me').find('input[type=text],textarea,select');
258
- var post_values = {};
259
- // unset values with exclude array
260
- form_inputs.each(function() {
261
- post_values[this.name] = jQuery(this).val();
262
- });
263
- var post_values_json = JSON.stringify(post_values);
264
-
265
- var wp_lead_uid = jQuery.cookie("wp_lead_uid");
266
- var page_views = JSON.stringify(pageviewObj);
267
- var page_id = inbound_ajax.post_id;
268
- if (typeof (landing_path_info) != "undefined" && landing_path_info != null && landing_path_info != "") {
269
- var lp_variation = landing_path_info.variation;
270
- } else if (typeof (cta_path_info) != "undefined" && cta_path_info != null && cta_path_info != "") {
271
- var lp_variation = cta_path_info.variation;
272
- } else {
273
- var lp_variation = null;
274
- }
275
-
276
- jQuery.cookie("wp_lead_email", email, { path: '/', expires: 365 });
277
-
278
-
279
-
280
- /* Timeout Fallback
281
- setTimeout(function() {
282
- console.log('more than 10 seconds has passed. Release form')
283
- release_form_sub();
284
- }, 10000);
285
- */
286
- jQuery.ajax({
287
- type: 'POST',
288
- url: inbound_ajax.admin_url,
289
- timeout: 10000,
290
- data: {
291
- element_type : element_type,
292
- action: 'inbound_store_lead',
293
- emailTo: email,
294
- first_name: firstname,
295
- last_name: lastname,
296
- phone: phone,
297
- address: address,
298
- company_name: company,
299
- wp_lead_uid: wp_lead_uid,
300
- page_view_count: page_view_count,
301
- page_views: page_views,
302
- post_type: inbound_ajax.post_type,
303
- lp_variation: lp_variation,
304
- json: tracking_obj, // replace with page_view_obj
305
- raw_post_values_json : post_values_json,
306
- lp_id: page_id
307
- /* Replace with jquery hook
308
- do_action('wpl-lead-collection-add-ajax-data');
309
- */
310
- },
311
- success: function(user_id){
312
- jQuery(this_form).trigger("inbound_form_complete"); // Trigger custom hook
313
- jQuery.cookie("wp_lead_id", user_id, { path: '/', expires: 365 });
314
- jQuery.totalStorage('wp_lead_id', user_id);
315
- this_form.addClass('lead_processed');
316
-
317
-
318
- // Unbind form
319
- this_form.unbind('click');
320
- this_form.submit();
321
-
322
- jQuery('button, input[type="button"]').css('cursor', 'default');
323
- jQuery('input').css('cursor', 'default');
324
- jQuery('body').css('cursor', 'default');
325
-
326
-
327
- jQuery.totalStorage.deleteItem('page_views'); // remove pageviews
328
- jQuery.totalStorage.deleteItem('tracking_events'); // remove events
329
- //jQuery.totalStorage.deleteItem('cta_clicks'); // remove cta
330
- },
331
- error: function(MLHttpRequest, textStatus, errorThrown){
332
- //alert(MLHttpRequest+' '+errorThrown+' '+textStatus); // debug
333
-
334
- // Create fallback localstorage object
335
- var conversionObj = new Array();
336
- conversionObj.push({
337
- action: 'inbound_store_lead',
338
- emailTo: email,
339
- first_name: firstname,
340
- last_name: lastname,
341
- wp_lead_uid: wp_lead_uid,
342
- page_view_count: page_view_count,
343
- page_views: page_views,
344
- post_type: inbound_ajax.post_type,
345
- lp_variation: lp_variation,
346
- json: tracking_obj,
347
- // type: 'form-completion',
348
- raw_post_values_json : post_values_json,
349
- lp_id: page_id
350
- });
351
-
352
- jQuery.totalStorage('failed_conversion', conversionObj); // store failed data
353
- jQuery.cookie("failed_conversion", true, { path: '/', expires: 365 });
354
-
355
- // If fail, cookie form data and ajax submit on next page load
356
- console.log('ajax fail');
357
- release_form_sub( this_form , element_type );
358
-
359
- }
360
- });
361
-
362
- });
363
-
364
- jQuery("body").on('click', '.wpl-track-me-link', function (e) {
365
-
366
- this_form = jQuery(this);
367
-
368
- var element_type='A';
369
- var a_href = jQuery(this).attr("href");
370
-
371
- // process form only once
372
- processed = this_form.hasClass('lead_processed');
373
- if (processed === true) {
374
- return;
375
- }
376
-
377
- form_id = jQuery(this).attr('id');
378
- form_class = jQuery(this).attr('class');
379
-
380
- jQuery(this).css('cursor', 'wait');
381
- jQuery('body').css('cursor', 'wait');
382
-
383
-
384
- e.preventDefault(); // halt normal form
385
-
386
- var tracking_obj = JSON.stringify(trackObj);
387
- var page_view_count = countProperties(pageviewObj);
388
- //console.log("view count" + page_view_count);
389
-
390
- var wp_lead_uid = jQuery.cookie("wp_lead_uid");
391
- var page_views = JSON.stringify(pageviewObj);
392
-
393
- var page_id = inbound_ajax.post_id;
394
- if (typeof (landing_path_info) != "undefined" && landing_path_info != null && landing_path_info != "") {
395
- var lp_variation = landing_path_info.variation;
396
- } else if (typeof (cta_path_info) != "undefined" && cta_path_info != null && cta_path_info != "") {
397
- var lp_variation = cta_path_info.variation;
398
- } else {
399
- var lp_variation = null;
400
- }
401
-
402
- /* Timeout Fallback
403
- setTimeout(function() {
404
- console.log('more than 10 seconds has passed. Release form')
405
- release_form_sub();
406
- }, 10000);
407
- */
408
- jQuery.ajax({
409
- type: 'POST',
410
- url: inbound_ajax.admin_url,
411
- timeout: 10000,
412
- data: {
413
- action: 'inbound_store_lead',
414
- element_type : 'A',
415
- wp_lead_uid: wp_lead_uid,
416
- page_view_count: page_view_count,
417
- page_views: page_views,
418
- post_type: inbound_ajax.post_type,
419
- lp_variation: lp_variation,
420
- json: tracking_obj, // replace with page_view_obj
421
- lp_id: page_id
422
- /* Replace with jquery hook
423
- do_action('wpl-lead-collection-add-ajax-data');
424
- */
425
- },
426
- success: function(user_id){
427
- jQuery(this_form).trigger("inbound_form_complete"); // Trigger custom hook
428
- jQuery.cookie("wp_lead_id", user_id, { path: '/', expires: 365 });
429
- jQuery.totalStorage('wp_lead_id', user_id);
430
- this_form.addClass('lead_processed');
431
-
432
- this_form.unbind('click');
433
-
434
- if (a_href)
435
- {
436
- window.location = a_href;
437
- }
438
- else
439
- {
440
- location.reload();
441
- }
442
-
443
-
444
- jQuery.totalStorage.deleteItem('page_views'); // remove pageviews
445
- jQuery.totalStorage.deleteItem('tracking_events'); // remove events
446
- //jQuery.totalStorage.deleteItem('cta_clicks'); // remove cta
447
- },
448
- error: function(MLHttpRequest, textStatus, errorThrown){
449
- //alert(MLHttpRequest+' '+errorThrown+' '+textStatus); // debug
450
-
451
- // Create fallback localstorage object
452
- var conversionObj = new Array();
453
- conversionObj.push({
454
- action: 'inbound_store_lead',
455
- emailTo: email,
456
- first_name: firstname,
457
- last_name: lastname,
458
- wp_lead_uid: wp_lead_uid,
459
- page_view_count: page_view_count,
460
- page_views: page_views,
461
- post_type: inbound_ajax.post_type,
462
- lp_variation: lp_variation,
463
- json: tracking_obj,
464
- // type: 'form-completion',
465
- raw_post_values_json : post_values_json,
466
- lp_id: page_id
467
- });
468
-
469
- jQuery.totalStorage('failed_conversion', conversionObj); // store failed data
470
- jQuery.cookie("failed_conversion", true, { path: '/', expires: 365 });
471
-
472
- // If fail, cookie form data and ajax submit on next page load
473
- console.log('ajax fail');
474
- release_form_sub( this_form , element_type );
475
-
476
- }
477
- });
478
-
479
-
480
-
481
- });
482
-
483
-
484
- // Fallback for form ajax fails
485
- var failed_conversion = jQuery.cookie("failed_conversion");
486
- var fallback_obj = jQuery.totalStorage('failed_conversion');
487
-
488
- if (typeof (failed_conversion) != "undefined" && failed_conversion == 'true' ) {
489
- if (typeof fallback_obj =='object' && fallback_obj)
490
- {
491
- //console.log('fallback ran');
492
- jQuery.ajax({
493
- type: 'POST',
494
- url: inbound_ajax.admin_url,
495
- data: {
496
- action: fallback_obj[0].action,
497
- emailTo: fallback_obj[0].emailTo,
498
- first_name: fallback_obj[0].first_name,
499
- last_name: fallback_obj[0].last_name,
500
- wp_lead_uid: fallback_obj[0].wp_lead_uid,
501
- page_view_count: fallback_obj[0].page_view_count,
502
- page_views: fallback_obj[0].page_views,
503
- post_type: fallback_obj[0].post_type,
504
- lp_variation: fallback_obj[0].lp_variation,
505
- json: fallback_obj[0].json, // replace with page_view_obj
506
- // type: 'form-completion',
507
- raw_post_values_json : fallback_obj[0].raw_post_values_json,
508
- lp_id: fallback_obj[0].lp_id
509
- /* Replace with jquery hook
510
- do_action('wpl-lead-collection-add-ajax-data');
511
- */
512
- },
513
- success: function(user_id){
514
- //console.log('Fallback fired');
515
- jQuery.removeCookie("failed_conversion"); // remove failed cookie
516
- jQuery.totalStorage.deleteItem('failed_conversion'); // remove failed data
517
- },
518
- error: function(MLHttpRequest, textStatus, errorThrown){
519
- //alert(MLHttpRequest+' '+errorThrown+' '+textStatus);
520
- //die();
521
- }
522
-
523
- });
524
- }
525
- }
526
-
527
- });
528
-
529
- function release_form_sub(this_form , element_type){
530
- jQuery('button, input[type="button"]').css('cursor', 'default');
531
- jQuery('input').css('cursor', 'default');
532
- jQuery('body').css('cursor', 'default');
533
-
534
- if (element_type=='FORM')
535
- {
536
- this_form.unbind('submit');
537
- this_form.submit();
538
- }
539
-
540
- if (element_type=='A')
541
- {
542
- this_form.unbind('wpl-track-me');
543
-
544
- if (a_href)
545
- {
546
- window.location = a_href;
547
- }
548
- else
549
- {
550
- location.reload();
551
- }
552
- }
553
- }
554
-
555
- function inbound_find_form_fields(element, field_name, regex) {
556
- //console.log(element);
557
- //console.log(field_name);
558
- var return_val = "";
559
- var name = element.attr("name");
560
- var id = element.attr("id");
561
- var form_value = element.val();
562
- var nearest_li = element.closest('li').children('label');
563
- var nearest_div = element.closest('div').children('label');
564
- var newregex = new RegExp(regex, 'gi');
565
- //console.log(newregex);
566
-
567
- // Check name attributes for common names
568
- if (typeof (name) != "undefined" && name != null && name != "" && return_val === "") {
569
-
570
- var match = newregex.test(name); // regex to find matching name
571
- //console.log(match + name);
572
- if (match == true) {
573
- return form_value + " Regex 'name' Match: " + name;
574
- var return_val = form_value;
575
- }
576
- if (name.toLowerCase().indexOf(field_name)>-1) {
577
- return form_value + " indexof Match: " + name;
578
- var return_val = form_value;
579
- }
580
-
581
- }
582
-
583
- // Check nearest li element for common names
584
- if (typeof (nearest_li) != "undefined" && nearest_li != null && nearest_li != "" && return_val === "") {
585
- var the_label_text = nearest_li.html();
586
- var match = newregex.test(the_label_text); // regex to find matching label
587
-
588
- if (match == true){
589
- return the_label_text + " Regex Label Match" + name;
590
- var return_val = form_value;
591
- }
592
-
593
- }
594
-
595
- // Check nearest div element for common names
596
- if (typeof (nearest_div) != "undefined" && nearest_div != null && nearest_div != "" && return_val === "") {
597
- var the_div_text = nearest_div.html();
598
- var match = newregex.test(the_div_text); // regex to find matching label
599
-
600
- if (match == true){
601
- return the_div_text + " Regex Div Match" + name;
602
- var return_val = form_value;
603
- }
604
-
605
- }
606
-
607
- if(return_val === "") {
608
- //return "Not Found:" + name + "Looking for:" + field_name;
609
- return;
610
- }
611
-
612
- }
613
-
614
- // Regex to match form field values
615
- /* Runs the above function and grabs form values
616
- setTimeout(function() {
617
- jQuery(".wpl-track-me").find('input[type=text],input[type=email]').each(function() {
618
- var this_input = jQuery(this);
619
-
620
- var email_field = inbound_find_form_fields(this_input, 'email', 'email|e-mail');
621
- var first_name_field = inbound_find_form_fields(this_input, 'first', 'first name|first-name|first_name');
622
- var last_name_field = inbound_find_form_fields(this_input, 'last', 'Last name|last-name|last_name');
623
-
624
- console.log(email_field);
625
- console.log(first_name_field);
626
- console.log(last_name_field);
627
- });
628
- }, 400);
629
- */
630
  // end function to parse form fields
1
+ /* function add_inbound_form_class(el, value) {
2
+ var value = value.replace(" ", "_");
3
+ var value = value.replace("-", "_");
4
+ el.addClass('inbound_map_value');
5
+ el.attr('data-inbound-form-map', 'inbound_map_' + value);
6
+ }
7
+
8
+ // Build Form Object
9
+ function inbound_map_fields(el, value, Obj) {
10
+ var formObj = [];
11
+ var $this = el;
12
+ var clean_output = value;
13
+ var label = $this.closest('label').text();
14
+ var exclude = ['credit-card']; // exlcude values from formObj
15
+ var inarray = jQuery.inArray(clean_output, exclude);
16
+ if(inarray == 0){
17
+ return null;
18
+ }
19
+ // Add items to formObj
20
+ formObj.push({
21
+ field_label: label,
22
+ field_name: $this.attr("name"),
23
+ field_value: $this.attr("value"),
24
+ field_id: $this.attr("id"),
25
+ field_class: $this.attr("class"),
26
+ field_type: $this.attr("type"),
27
+ match: clean_output,
28
+ js_selector: $this.attr("data-js-selector")
29
+ });
30
+ return formObj;
31
+ }
32
+
33
+ // Trim Whitespace
34
+ function trim(s) {
35
+ s = s.replace(/(^\s*)|(\s*$)/gi,"");
36
+ s = s.replace(/[ ]{2,}/gi," ");
37
+ s = s.replace(/\n /,"\n"); return s;
38
+ }
39
+
40
+ // Run Form Mapper
41
+ function run_field_map_function(el, form, lookingfor) {
42
+ var return_form;
43
+ var formObj = new Array();
44
+ var $this = el;
45
+
46
+ var array = lookingfor.split(",");
47
+ var array_length = array.length - 1;
48
+ //var test = process_element($this);
49
+ //console.log(test);
50
+ // Main Loop
51
+ for (var i = 0; i < array.length; i++) {
52
+ var clean_output = trim(array[i]);
53
+ //console.log(clean_output);
54
+
55
+ // Look for attr name match
56
+ if ($this.attr("name").toLowerCase().indexOf(clean_output)>-1) {
57
+ var the_map = inbound_map_fields($this, clean_output, formObj);
58
+ add_inbound_form_class($this, clean_output);
59
+ console.log('match name: ' + clean_output);
60
+ }
61
+ // look for id match
62
+ else if ($this.attr("id").toLowerCase().indexOf(clean_output)>-1) {
63
+ var the_map = inbound_map_fields($this, clean_output, formObj);
64
+ add_inbound_form_class($this, clean_output);
65
+ console.log('match id: ' + clean_output);
66
+ }
67
+ // Look for label name match
68
+ else if ($this.closest('li').children('label').length>0)
69
+ {
70
+ if ($this.closest('li').children('label').html().toLowerCase().indexOf(clean_output)>-1)
71
+ {
72
+ var the_map = inbound_map_fields($this, clean_output, formObj);
73
+ add_inbound_form_class($this, clean_output);
74
+ console.log('match li: ' + clean_output);
75
+ }
76
+ }
77
+ // Look for closest div label name match
78
+ else if ($this.closest('div').children('label').length>0)
79
+ {
80
+ if ($this.closest('div').children('label').html().toLowerCase().indexOf(clean_output)>-1)
81
+ {
82
+ var the_map = inbound_map_fields($this, clean_output, formObj);
83
+ add_inbound_form_class($this, clean_output);
84
+ console.log('match div: ' + clean_output);
85
+ }
86
+ } else {
87
+ return false;
88
+ }
89
+ }
90
+ return_form = the_map;
91
+
92
+ return return_form;
93
+ }
94
+ */
95
+ jQuery(document).ready(function($) {
96
+
97
+ /* Mapping IN PROGRESS
98
+ var matched_form_items = [];
99
+ jQuery('form.wpl-track-me').find('input[type=text],input[type=email]').each(function() {
100
+ var $this = jQuery(this);
101
+ var the_name = $this.attr('name');
102
+ var look_for = run_field_map_function( $this, 'form.wpl-track-me', "job title, first name, last name, email, e-mail, company, phone, tele");
103
+
104
+ if (typeof look_for !== "undefined") {
105
+ matched_form_items.push(look_for);
106
+ } else {
107
+ console.log('NO Match on ' + the_name);
108
+ }
109
+
110
+ //console.log(test);
111
+ });
112
+ console.log(matched_form_items);
113
+ // Testing
114
+ //var test = run_field_map_function('form.wpl-track-me', "job title, fiz name, last name, email, e-mail, company, phonez, tele");
115
+
116
+ //console.log(test);
117
+ /* Mapping IN PROGRESS */
118
+
119
+ /* Core Inbound Form Tracking Script */
120
+
121
+ jQuery("body").on('submit', '.wpl-track-me', function (e) {
122
+
123
+ this_form = jQuery(this);
124
+
125
+ element_type = 'FORM';
126
+
127
+ // process form only once
128
+ processed = this_form.hasClass('lead_processed');
129
+ if (processed === true) {
130
+ return;
131
+ }
132
+
133
+ form_id = jQuery(this).attr('id');
134
+ form_class = jQuery(this).attr('class');
135
+
136
+ jQuery('button, input[type="button"]').css('cursor', 'wait');
137
+ jQuery('input').css('cursor', 'wait');
138
+ jQuery('body').css('cursor', 'wait');
139
+
140
+
141
+ e.preventDefault(); // halt normal form
142
+
143
+ var email = "";
144
+ var firstname = "";
145
+ var lastname = "";
146
+ var phone = "";
147
+ var company = "";
148
+ var address = "";
149
+
150
+ var tracking_obj = JSON.stringify(trackObj);
151
+ var page_view_count = countProperties(pageviewObj);
152
+ //console.log("view count" + page_view_count);
153
+
154
+ if (!email)
155
+ {
156
+
157
+ jQuery(this_form).find('input[type=text],input[type=email]').each(function() {
158
+ if (this.value)
159
+ {
160
+ if (jQuery(this).attr("name").toLowerCase().indexOf('email')>-1&&!email) {
161
+ email = this.value;
162
+
163
+ }
164
+ else if(jQuery(this).attr("name").toLowerCase().indexOf('e-mail')>-1&&!email) {
165
+ email = this.value;
166
+ }
167
+ else if(jQuery(this).attr("name").toLowerCase().indexOf('name')>-1&&!firstname) {
168
+ firstname = this.value;
169
+ }
170
+ else if (jQuery(this).attr("name").toLowerCase().indexOf('last')>-1) {
171
+ lastname = this.value;
172
+ }
173
+ else if (jQuery(this).attr("name").toLowerCase().indexOf('phone')>-1) {
174
+ phone = this.value;
175
+ }
176
+ else if (jQuery(this).attr("name").toLowerCase().indexOf('company')>-1) {
177
+ company = this.value;
178
+ }
179
+ else if (jQuery(this).attr("name").toLowerCase().indexOf('address')>-1) {
180
+ address = this.value;
181
+ }
182
+ }
183
+ });
184
+ }
185
+
186
+ if (!email)
187
+ {
188
+ jQuery(this_form).find('input[type=text],input[type=email]').each(function() {
189
+ if (jQuery(this).closest('li').children('label').length>0)
190
+ {
191
+ if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('email')>-1&&!email)
192
+ {
193
+ email = this.value;
194
+ }
195
+ else if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('e-mail')>-1&&!email) {
196
+ email = this.value;
197
+ }
198
+ else if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('name')>-1&&!firstname) {
199
+ firstname = this.value;
200
+ }
201
+ else if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('last')>-1) {
202
+ lastname = this.value;
203
+ }
204
+ else if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('phone')>-1) {
205
+ phone = this.value;
206
+ }
207
+ else if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('company')>-1) {
208
+ company = this.value;
209
+ }
210
+ else if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('address')>-1) {
211
+ address = this.value;
212
+ }
213
+ }
214
+
215
+ });
216
+ }
217
+
218
+ if (!email)
219
+ {
220
+ jQuery(this_form).find('input[type=text],input[type=email]').each(function() {
221
+ if (jQuery(this).closest('div').children('label').length>0)
222
+ {
223
+ if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('email')>-1&&!email)
224
+ {
225
+ email = this.value;
226
+ }
227
+ else if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('e-mail')>-1&&!email) {
228
+ email = this.value;
229
+ }
230
+ else if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('name')>-1&&!firstname) {
231
+ firstname = this.value;
232
+ }
233
+ else if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('last')>-1) {
234
+ lastname = this.value;
235
+ }
236
+ else if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('phone')>-1) {
237
+ phone = this.value;
238
+ }
239
+ else if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('company')>-1) {
240
+ company = this.value;
241
+ }
242
+ else if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('address')>-1) {
243
+ address = this.value;
244
+ }
245
+ }
246
+ });
247
+ }
248
+
249
+
250
+ if (!lastname&&firstname)
251
+ {
252
+ var parts = firstname.split(" ");
253
+ firstname = parts[0];
254
+ lastname = parts[1];
255
+ }
256
+
257
+ var form_inputs = jQuery('.wpl-track-me').find('input[type=text],textarea,select');
258
+ var post_values = {};
259
+ // unset values with exclude array
260
+ form_inputs.each(function() {
261
+ post_values[this.name] = jQuery(this).val();
262
+ });
263
+ var post_values_json = JSON.stringify(post_values);
264
+
265
+ var wp_lead_uid = jQuery.cookie("wp_lead_uid");
266
+ var page_views = JSON.stringify(pageviewObj);
267
+ var page_id = inbound_ajax.post_id;
268
+ if (typeof (landing_path_info) != "undefined" && landing_path_info != null && landing_path_info != "") {
269
+ var lp_variation = landing_path_info.variation;
270
+ } else if (typeof (cta_path_info) != "undefined" && cta_path_info != null && cta_path_info != "") {
271
+ var lp_variation = cta_path_info.variation;
272
+ } else {
273
+ var lp_variation = null;
274
+ }
275
+
276
+ jQuery.cookie("wp_lead_email", email, { path: '/', expires: 365 });
277
+
278
+
279
+
280
+ /* Timeout Fallback
281
+ setTimeout(function() {
282
+ console.log('more than 10 seconds has passed. Release form')
283
+ release_form_sub();
284
+ }, 10000);
285
+ */
286
+ jQuery.ajax({
287
+ type: 'POST',
288
+ url: inbound_ajax.admin_url,
289
+ timeout: 10000,
290
+ data: {
291
+ element_type : element_type,
292
+ action: 'inbound_store_lead',
293
+ emailTo: email,
294
+ first_name: firstname,
295
+ last_name: lastname,
296
+ phone: phone,
297
+ address: address,
298
+ company_name: company,
299
+ wp_lead_uid: wp_lead_uid,
300
+ page_view_count: page_view_count,
301
+ page_views: page_views,
302
+ post_type: inbound_ajax.post_type,
303
+ lp_variation: lp_variation,
304
+ json: tracking_obj, // replace with page_view_obj
305
+ raw_post_values_json : post_values_json,
306
+ lp_id: page_id
307
+ /* Replace with jquery hook
308
+ do_action('wpl-lead-collection-add-ajax-data');
309
+ */
310
+ },
311
+ success: function(user_id){
312
+ jQuery(this_form).trigger("inbound_form_complete"); // Trigger custom hook
313
+ jQuery.cookie("wp_lead_id", user_id, { path: '/', expires: 365 });
314
+ jQuery.totalStorage('wp_lead_id', user_id);
315
+ this_form.addClass('lead_processed');
316
+
317
+
318
+ // Unbind form
319
+ this_form.unbind('click');
320
+ this_form.submit();
321
+
322
+ jQuery('button, input[type="button"]').css('cursor', 'default');
323
+ jQuery('input').css('cursor', 'default');
324
+ jQuery('body').css('cursor', 'default');
325
+
326
+
327
+ jQuery.totalStorage.deleteItem('page_views'); // remove pageviews
328
+ jQuery.totalStorage.deleteItem('tracking_events'); // remove events
329
+ //jQuery.totalStorage.deleteItem('cta_clicks'); // remove cta
330
+ },
331
+ error: function(MLHttpRequest, textStatus, errorThrown){
332
+ //alert(MLHttpRequest+' '+errorThrown+' '+textStatus); // debug
333
+
334
+ // Create fallback localstorage object
335
+ var conversionObj = new Array();
336
+ conversionObj.push({
337
+ action: 'inbound_store_lead',
338
+ emailTo: email,
339
+ first_name: firstname,
340
+ last_name: lastname,
341
+ wp_lead_uid: wp_lead_uid,
342
+ page_view_count: page_view_count,
343
+ page_views: page_views,
344
+ post_type: inbound_ajax.post_type,
345
+ lp_variation: lp_variation,
346
+ json: tracking_obj,
347
+ // type: 'form-completion',
348
+ raw_post_values_json : post_values_json,
349
+ lp_id: page_id
350
+ });
351
+
352
+ jQuery.totalStorage('failed_conversion', conversionObj); // store failed data
353
+ jQuery.cookie("failed_conversion", true, { path: '/', expires: 365 });
354
+
355
+ // If fail, cookie form data and ajax submit on next page load
356
+ console.log('ajax fail');
357
+ release_form_sub( this_form , element_type );
358
+
359
+ }
360
+ });
361
+
362
+ });
363
+
364
+ jQuery("body").on('click', '.wpl-track-me-link', function (e) {
365
+
366
+ this_form = jQuery(this);
367
+
368
+ var element_type='A';
369
+ var a_href = jQuery(this).attr("href");
370
+
371
+ // process form only once
372
+ processed = this_form.hasClass('lead_processed');
373
+ if (processed === true) {
374
+ return;
375
+ }
376
+
377
+ form_id = jQuery(this).attr('id');
378
+ form_class = jQuery(this).attr('class');
379
+
380
+ jQuery(this).css('cursor', 'wait');
381
+ jQuery('body').css('cursor', 'wait');
382
+
383
+
384
+ e.preventDefault(); // halt normal form
385
+
386
+ var tracking_obj = JSON.stringify(trackObj);
387
+ var page_view_count = countProperties(pageviewObj);
388
+ //console.log("view count" + page_view_count);
389
+
390
+ var wp_lead_uid = jQuery.cookie("wp_lead_uid");
391
+ var page_views = JSON.stringify(pageviewObj);
392
+
393
+ var page_id = inbound_ajax.post_id;
394
+ if (typeof (landing_path_info) != "undefined" && landing_path_info != null && landing_path_info != "") {
395
+ var lp_variation = landing_path_info.variation;
396
+ } else if (typeof (cta_path_info) != "undefined" && cta_path_info != null && cta_path_info != "") {
397
+ var lp_variation = cta_path_info.variation;
398
+ } else {
399
+ var lp_variation = null;
400
+ }
401
+
402
+ /* Timeout Fallback
403
+ setTimeout(function() {
404
+ console.log('more than 10 seconds has passed. Release form')
405
+ release_form_sub();
406
+ }, 10000);
407
+ */
408
+ jQuery.ajax({
409
+ type: 'POST',
410
+ url: inbound_ajax.admin_url,
411
+ timeout: 10000,
412
+ data: {
413
+ action: 'inbound_store_lead',
414
+ element_type : 'A',
415
+ wp_lead_uid: wp_lead_uid,
416
+ page_view_count: page_view_count,
417
+ page_views: page_views,
418
+ post_type: inbound_ajax.post_type,
419
+ lp_variation: lp_variation,
420
+ json: tracking_obj, // replace with page_view_obj
421
+ lp_id: page_id
422
+ /* Replace with jquery hook
423
+ do_action('wpl-lead-collection-add-ajax-data');
424
+ */
425
+ },
426
+ success: function(user_id){
427
+ jQuery(this_form).trigger("inbound_form_complete"); // Trigger custom hook
428
+ jQuery.cookie("wp_lead_id", user_id, { path: '/', expires: 365 });
429
+ jQuery.totalStorage('wp_lead_id', user_id);
430
+ this_form.addClass('lead_processed');
431
+
432
+ this_form.unbind('click');
433
+
434
+ if (a_href)
435
+ {
436
+ window.location = a_href;
437
+ }
438
+ else
439
+ {
440
+ location.reload();
441
+ }
442
+
443
+
444
+ jQuery.totalStorage.deleteItem('page_views'); // remove pageviews
445
+ jQuery.totalStorage.deleteItem('tracking_events'); // remove events
446
+ //jQuery.totalStorage.deleteItem('cta_clicks'); // remove cta
447
+ },
448
+ error: function(MLHttpRequest, textStatus, errorThrown){
449
+ //alert(MLHttpRequest+' '+errorThrown+' '+textStatus); // debug
450
+
451
+ // Create fallback localstorage object
452
+ var conversionObj = new Array();
453
+ conversionObj.push({
454
+ action: 'inbound_store_lead',
455
+ emailTo: email,
456
+ first_name: firstname,
457
+ last_name: lastname,
458
+ wp_lead_uid: wp_lead_uid,
459
+ page_view_count: page_view_count,
460
+ page_views: page_views,
461
+ post_type: inbound_ajax.post_type,
462
+ lp_variation: lp_variation,
463
+ json: tracking_obj,
464
+ // type: 'form-completion',
465
+ raw_post_values_json : post_values_json,
466
+ lp_id: page_id
467
+ });
468
+
469
+ jQuery.totalStorage('failed_conversion', conversionObj); // store failed data
470
+ jQuery.cookie("failed_conversion", true, { path: '/', expires: 365 });
471
+
472
+ // If fail, cookie form data and ajax submit on next page load
473
+ console.log('ajax fail');
474
+ release_form_sub( this_form , element_type );
475
+
476
+ }
477
+ });
478
+
479
+
480
+
481
+ });
482
+
483
+
484
+ // Fallback for form ajax fails
485
+ var failed_conversion = jQuery.cookie("failed_conversion");
486
+ var fallback_obj = jQuery.totalStorage('failed_conversion');
487
+
488
+ if (typeof (failed_conversion) != "undefined" && failed_conversion == 'true' ) {
489
+ if (typeof fallback_obj =='object' && fallback_obj)
490
+ {
491
+ //console.log('fallback ran');
492
+ jQuery.ajax({
493
+ type: 'POST',
494
+ url: inbound_ajax.admin_url,
495
+ data: {
496
+ action: fallback_obj[0].action,
497
+ emailTo: fallback_obj[0].emailTo,
498
+ first_name: fallback_obj[0].first_name,
499
+ last_name: fallback_obj[0].last_name,
500
+ wp_lead_uid: fallback_obj[0].wp_lead_uid,
501
+ page_view_count: fallback_obj[0].page_view_count,
502
+ page_views: fallback_obj[0].page_views,
503
+ post_type: fallback_obj[0].post_type,
504
+ lp_variation: fallback_obj[0].lp_variation,
505
+ json: fallback_obj[0].json, // replace with page_view_obj
506
+ // type: 'form-completion',
507
+ raw_post_values_json : fallback_obj[0].raw_post_values_json,
508
+ lp_id: fallback_obj[0].lp_id
509
+ /* Replace with jquery hook
510
+ do_action('wpl-lead-collection-add-ajax-data');
511
+ */
512
+ },
513
+ success: function(user_id){
514
+ //console.log('Fallback fired');
515
+ jQuery.removeCookie("failed_conversion"); // remove failed cookie
516
+ jQuery.totalStorage.deleteItem('failed_conversion'); // remove failed data
517
+ },
518
+ error: function(MLHttpRequest, textStatus, errorThrown){
519
+ //alert(MLHttpRequest+' '+errorThrown+' '+textStatus);
520
+ //die();
521
+ }
522
+
523
+ });
524
+ }
525
+ }
526
+
527
+ });
528
+
529
+ function release_form_sub(this_form , element_type){
530
+ jQuery('button, input[type="button"]').css('cursor', 'default');
531
+ jQuery('input').css('cursor', 'default');
532
+ jQuery('body').css('cursor', 'default');
533
+
534
+ if (element_type=='FORM')
535
+ {
536
+ this_form.unbind('submit');
537
+ this_form.submit();
538
+ }
539
+
540
+ if (element_type=='A')
541
+ {
542
+ this_form.unbind('wpl-track-me');
543
+
544
+ if (a_href)
545
+ {
546
+ window.location = a_href;
547
+ }
548
+ else
549
+ {
550
+ location.reload();
551
+ }
552
+ }
553
+ }
554
+
555
+ function inbound_find_form_fields(element, field_name, regex) {
556
+ //console.log(element);
557
+ //console.log(field_name);
558
+ var return_val = "";
559
+ var name = element.attr("name");
560
+ var id = element.attr("id");
561
+ var form_value = element.val();
562
+ var nearest_li = element.closest('li').children('label');
563
+ var nearest_div = element.closest('div').children('label');
564
+ var newregex = new RegExp(regex, 'gi');
565
+ //console.log(newregex);
566
+
567
+ // Check name attributes for common names
568
+ if (typeof (name) != "undefined" && name != null && name != "" && return_val === "") {
569
+
570
+ var match = newregex.test(name); // regex to find matching name
571
+ //console.log(match + name);
572
+ if (match == true) {
573
+ return form_value + " Regex 'name' Match: " + name;
574
+ var return_val = form_value;
575
+ }
576
+ if (name.toLowerCase().indexOf(field_name)>-1) {
577
+ return form_value + " indexof Match: " + name;
578
+ var return_val = form_value;
579
+ }
580
+
581
+ }
582
+
583
+ // Check nearest li element for common names
584
+ if (typeof (nearest_li) != "undefined" && nearest_li != null && nearest_li != "" && return_val === "") {
585
+ var the_label_text = nearest_li.html();
586
+ var match = newregex.test(the_label_text); // regex to find matching label
587
+
588
+ if (match == true){
589
+ return the_label_text + " Regex Label Match" + name;
590
+ var return_val = form_value;
591
+ }
592
+
593
+ }
594
+
595
+ // Check nearest div element for common names
596
+ if (typeof (nearest_div) != "undefined" && nearest_div != null && nearest_div != "" && return_val === "") {
597
+ var the_div_text = nearest_div.html();
598
+ var match = newregex.test(the_div_text); // regex to find matching label
599
+
600
+ if (match == true){
601
+ return the_div_text + " Regex Div Match" + name;
602
+ var return_val = form_value;
603
+ }
604
+
605
+ }
606
+
607
+ if(return_val === "") {
608
+ //return "Not Found:" + name + "Looking for:" + field_name;
609
+ return;
610
+ }
611
+
612
+ }
613
+
614
+ // Regex to match form field values
615
+ /* Runs the above function and grabs form values
616
+ setTimeout(function() {
617
+ jQuery(".wpl-track-me").find('input[type=text],input[type=email]').each(function() {
618
+ var this_input = jQuery(this);
619
+
620
+ var email_field = inbound_find_form_fields(this_input, 'email', 'email|e-mail');
621
+ var first_name_field = inbound_find_form_fields(this_input, 'first', 'first name|first-name|first_name');
622
+ var last_name_field = inbound_find_form_fields(this_input, 'last', 'Last name|last-name|last_name');
623
+
624
+ console.log(email_field);
625
+ console.log(first_name_field);
626
+ console.log(last_name_field);
627
+ });
628
+ }, 400);
629
+ */
630
  // end function to parse form fields
shared/tracking/js/store.lead.ajax.js CHANGED
@@ -207,6 +207,7 @@ jQuery(document).ready(function($) {
207
  jQuery('body').css('cursor', 'default');
208
 
209
 
 
210
  jQuery.totalStorage.deleteItem('page_views'); // remove pageviews
211
  jQuery.totalStorage.deleteItem('tracking_events'); // remove events
212
  //jQuery.totalStorage.deleteItem('cta_clicks'); // remove cta
@@ -323,7 +324,7 @@ jQuery(document).ready(function($) {
323
  location.reload();
324
  }
325
 
326
-
327
  jQuery.totalStorage.deleteItem('page_views'); // remove pageviews
328
  jQuery.totalStorage.deleteItem('tracking_events'); // remove events
329
  //jQuery.totalStorage.deleteItem('cta_clicks'); // remove cta
@@ -397,6 +398,7 @@ jQuery(document).ready(function($) {
397
  //console.log('Fallback fired');
398
  jQuery.removeCookie("failed_conversion"); // remove failed cookie
399
  jQuery.totalStorage.deleteItem('failed_conversion'); // remove failed data
 
400
  },
401
  error: function(MLHttpRequest, textStatus, errorThrown){
402
  //alert(MLHttpRequest+' '+errorThrown+' '+textStatus);
207
  jQuery('body').css('cursor', 'default');
208
 
209
 
210
+ jQuery.totalStorage.deleteItem('cpath'); // remove cpath
211
  jQuery.totalStorage.deleteItem('page_views'); // remove pageviews
212
  jQuery.totalStorage.deleteItem('tracking_events'); // remove events
213
  //jQuery.totalStorage.deleteItem('cta_clicks'); // remove cta
324
  location.reload();
325
  }
326
 
327
+ jQuery.totalStorage.deleteItem('cpath'); // remove cpath
328
  jQuery.totalStorage.deleteItem('page_views'); // remove pageviews
329
  jQuery.totalStorage.deleteItem('tracking_events'); // remove events
330
  //jQuery.totalStorage.deleteItem('cta_clicks'); // remove cta
398
  //console.log('Fallback fired');
399
  jQuery.removeCookie("failed_conversion"); // remove failed cookie
400
  jQuery.totalStorage.deleteItem('failed_conversion'); // remove failed data
401
+ jQuery.totalStorage.deleteItem('cpath'); // remove cpath
402
  },
403
  error: function(MLHttpRequest, textStatus, errorThrown){
404
  //alert(MLHttpRequest+' '+errorThrown+' '+textStatus);
shared/tracking/js/store.lead.ajax.js.orig CHANGED
@@ -1,512 +1,512 @@
1
- jQuery(document).ready(function($) {
2
- /* Core Inbound Form Tracking Script */
3
-
4
- jQuery("body").on('submit', '.wpl-track-me', function (e) {
5
-
6
- this_form = jQuery(this);
7
-
8
- element_type = 'FORM';
9
-
10
- // process form only once
11
- processed = this_form.hasClass('lead_processed');
12
- if (processed === true) {
13
- return;
14
- }
15
-
16
- form_id = jQuery(this).attr('id');
17
- form_class = jQuery(this).attr('class');
18
-
19
- jQuery('button, input[type="button"]').css('cursor', 'wait');
20
- jQuery('input').css('cursor', 'wait');
21
- jQuery('body').css('cursor', 'wait');
22
-
23
-
24
- e.preventDefault(); // halt normal form
25
-
26
- var email = "";
27
- var firstname = "";
28
- var lastname = "";
29
- var phone = "";
30
- var company = "";
31
- var address = "";
32
-
33
- var tracking_obj = JSON.stringify(trackObj);
34
- var page_view_count = countProperties(pageviewObj);
35
- //console.log("view count" + page_view_count);
36
-
37
- if (!email)
38
- {
39
-
40
- jQuery(this_form).find('input[type=text],input[type=email]').each(function() {
41
- if (this.value)
42
- {
43
- if (jQuery(this).attr("name").toLowerCase().indexOf('email')>-1&&!email) {
44
- email = this.value;
45
-
46
- }
47
- else if(jQuery(this).attr("name").toLowerCase().indexOf('e-mail')>-1&&!email) {
48
- email = this.value;
49
- }
50
- else if(jQuery(this).attr("name").toLowerCase().indexOf('name')>-1&&!firstname) {
51
- firstname = this.value;
52
- }
53
- else if (jQuery(this).attr("name").toLowerCase().indexOf('last')>-1) {
54
- lastname = this.value;
55
- }
56
- else if (jQuery(this).attr("name").toLowerCase().indexOf('phone')>-1) {
57
- phone = this.value;
58
- }
59
- else if (jQuery(this).attr("name").toLowerCase().indexOf('company')>-1) {
60
- company = this.value;
61
- }
62
- else if (jQuery(this).attr("name").toLowerCase().indexOf('address')>-1) {
63
- address = this.value;
64
- }
65
- }
66
- });
67
- }
68
-
69
- if (!email)
70
- {
71
- jQuery(this_form).find('input[type=text],input[type=email]').each(function() {
72
- if (jQuery(this).closest('li').children('label').length>0)
73
- {
74
- if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('email')>-1&&!email)
75
- {
76
- email = this.value;
77
- }
78
- else if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('e-mail')>-1&&!email) {
79
- email = this.value;
80
- }
81
- else if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('name')>-1&&!firstname) {
82
- firstname = this.value;
83
- }
84
- else if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('last')>-1) {
85
- lastname = this.value;
86
- }
87
- else if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('phone')>-1) {
88
- phone = this.value;
89
- }
90
- else if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('company')>-1) {
91
- company = this.value;
92
- }
93
- else if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('address')>-1) {
94
- address = this.value;
95
- }
96
- }
97
-
98
- });
99
- }
100
-
101
- if (!email)
102
- {
103
- jQuery(this_form).find('input[type=text],input[type=email]').each(function() {
104
- if (jQuery(this).closest('div').children('label').length>0)
105
- {
106
- if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('email')>-1&&!email)
107
- {
108
- email = this.value;
109
- }
110
- else if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('e-mail')>-1&&!email) {
111
- email = this.value;
112
- }
113
- else if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('name')>-1&&!firstname) {
114
- firstname = this.value;
115
- }
116
- else if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('last')>-1) {
117
- lastname = this.value;
118
- }
119
- else if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('phone')>-1) {
120
- phone = this.value;
121
- }
122
- else if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('company')>-1) {
123
- company = this.value;
124
- }
125
- else if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('address')>-1) {
126
- address = this.value;
127
- }
128
- }
129
- });
130
- }
131
-
132
-
133
- if (!lastname&&firstname)
134
- {
135
- var parts = firstname.split(" ");
136
- firstname = parts[0];
137
- lastname = parts[1];
138
- }
139
-
140
- var form_inputs = jQuery('.wpl-track-me').find('input[type=text],textarea,select');
141
- var post_values = {};
142
- form_inputs.each(function() {
143
- post_values[this.name] = jQuery(this).val();
144
- });
145
- var post_values_json = JSON.stringify(post_values);
146
-
147
- var wp_lead_uid = jQuery.cookie("wp_lead_uid");
148
- var page_views = JSON.stringify(pageviewObj);
149
- var page_id = inbound_ajax.post_id;
150
- if (typeof (landing_path_info) != "undefined" && landing_path_info != null && landing_path_info != "") {
151
- var lp_variation = landing_path_info.variation;
152
- } else if (typeof (cta_path_info) != "undefined" && cta_path_info != null && cta_path_info != "") {
153
- var lp_variation = cta_path_info.variation;
154
- } else {
155
- var lp_variation = null;
156
- }
157
-
158
- jQuery.cookie("wp_lead_email", email, { path: '/', expires: 365 });
159
-
160
-
161
-
162
- /* Timeout Fallback
163
- setTimeout(function() {
164
- console.log('more than 10 seconds has passed. Release form')
165
- release_form_sub();
166
- }, 10000);
167
- */
168
- jQuery.ajax({
169
- type: 'POST',
170
- url: inbound_ajax.admin_url,
171
- timeout: 10000,
172
- data: {
173
- element_type : element_type,
174
- action: 'inbound_store_lead',
175
- emailTo: email,
176
- first_name: firstname,
177
- last_name: lastname,
178
- phone: phone,
179
- address: address,
180
- company_name: company,
181
- wp_lead_uid: wp_lead_uid,
182
- page_view_count: page_view_count,
183
- page_views: page_views,
184
- post_type: inbound_ajax.post_type,
185
- lp_variation: lp_variation,
186
- json: tracking_obj, // replace with page_view_obj
187
- raw_post_values_json : post_values_json,
188
- lp_id: page_id
189
- /* Replace with jquery hook
190
- do_action('wpl-lead-collection-add-ajax-data');
191
- */
192
- },
193
- success: function(user_id){
194
- jQuery(this_form).trigger("inbound_form_complete"); // Trigger custom hook
195
- jQuery.cookie("wp_lead_id", user_id, { path: '/', expires: 365 });
196
- jQuery.totalStorage('wp_lead_id', user_id);
197
- this_form.addClass('lead_processed');
198
-
199
-
200
- // Unbind form
201
- this_form.unbind('click');
202
- this_form.submit();
203
-
204
- jQuery('button, input[type="button"]').css('cursor', 'default');
205
- jQuery('input').css('cursor', 'default');
206
- jQuery('body').css('cursor', 'default');
207
-
208
-
209
- jQuery.totalStorage.deleteItem('page_views'); // remove pageviews
210
- jQuery.totalStorage.deleteItem('tracking_events'); // remove events
211
- //jQuery.totalStorage.deleteItem('cta_clicks'); // remove cta
212
- },
213
- error: function(MLHttpRequest, textStatus, errorThrown){
214
- //alert(MLHttpRequest+' '+errorThrown+' '+textStatus); // debug
215
-
216
- // Create fallback localstorage object
217
- var conversionObj = new Array();
218
- conversionObj.push({
219
- action: 'inbound_store_lead',
220
- emailTo: email,
221
- first_name: firstname,
222
- last_name: lastname,
223
- wp_lead_uid: wp_lead_uid,
224
- page_view_count: page_view_count,
225
- page_views: page_views,
226
- post_type: inbound_ajax.post_type,
227
- lp_variation: lp_variation,
228
- json: tracking_obj,
229
- // type: 'form-completion',
230
- raw_post_values_json : post_values_json,
231
- lp_id: page_id
232
- });
233
-
234
- jQuery.totalStorage('failed_conversion', conversionObj); // store failed data
235
- jQuery.cookie("failed_conversion", true, { path: '/', expires: 365 });
236
-
237
- // If fail, cookie form data and ajax submit on next page load
238
- console.log('ajax fail');
239
- release_form_sub( this_form , element_type );
240
-
241
- }
242
- });
243
-
244
- });
245
-
246
- jQuery("body").on('click', '.wpl-track-me-link', function (e) {
247
-
248
- this_form = jQuery(this);
249
-
250
- var element_type='A';
251
- var a_href = jQuery(this).attr("href");
252
-
253
- // process form only once
254
- processed = this_form.hasClass('lead_processed');
255
- if (processed === true) {
256
- return;
257
- }
258
-
259
- form_id = jQuery(this).attr('id');
260
- form_class = jQuery(this).attr('class');
261
-
262
- jQuery(this).css('cursor', 'wait');
263
- jQuery('body').css('cursor', 'wait');
264
-
265
-
266
- e.preventDefault(); // halt normal form
267
-
268
- var tracking_obj = JSON.stringify(trackObj);
269
- var page_view_count = countProperties(pageviewObj);
270
- //console.log("view count" + page_view_count);
271
-
272
- var wp_lead_uid = jQuery.cookie("wp_lead_uid");
273
- var page_views = JSON.stringify(pageviewObj);
274
-
275
- var page_id = inbound_ajax.post_id;
276
- if (typeof (landing_path_info) != "undefined" && landing_path_info != null && landing_path_info != "") {
277
- var lp_variation = landing_path_info.variation;
278
- } else if (typeof (cta_path_info) != "undefined" && cta_path_info != null && cta_path_info != "") {
279
- var lp_variation = cta_path_info.variation;
280
- } else {
281
- var lp_variation = null;
282
- }
283
-
284
- /* Timeout Fallback
285
- setTimeout(function() {
286
- console.log('more than 10 seconds has passed. Release form')
287
- release_form_sub();
288
- }, 10000);
289
- */
290
- jQuery.ajax({
291
- type: 'POST',
292
- url: inbound_ajax.admin_url,
293
- timeout: 10000,
294
- data: {
295
- action: 'inbound_store_lead',
296
- element_type : 'A',
297
- wp_lead_uid: wp_lead_uid,
298
- page_view_count: page_view_count,
299
- page_views: page_views,
300
- post_type: inbound_ajax.post_type,
301
- lp_variation: lp_variation,
302
- json: tracking_obj, // replace with page_view_obj
303
- lp_id: page_id
304
- /* Replace with jquery hook
305
- do_action('wpl-lead-collection-add-ajax-data');
306
- */
307
- },
308
- success: function(user_id){
309
- jQuery(this_form).trigger("inbound_form_complete"); // Trigger custom hook
310
- jQuery.cookie("wp_lead_id", user_id, { path: '/', expires: 365 });
311
- jQuery.totalStorage('wp_lead_id', user_id);
312
- this_form.addClass('lead_processed');
313
-
314
- this_form.unbind('click');
315
-
316
- if (a_href)
317
- {
318
- window.location = a_href;
319
- }
320
- else
321
- {
322
- location.reload();
323
- }
324
-
325
-
326
- jQuery.totalStorage.deleteItem('page_views'); // remove pageviews
327
- jQuery.totalStorage.deleteItem('tracking_events'); // remove events
328
- //jQuery.totalStorage.deleteItem('cta_clicks'); // remove cta
329
- },
330
- error: function(MLHttpRequest, textStatus, errorThrown){
331
- //alert(MLHttpRequest+' '+errorThrown+' '+textStatus); // debug
332
-
333
- // Create fallback localstorage object
334
- var conversionObj = new Array();
335
- conversionObj.push({
336
- action: 'inbound_store_lead',
337
- emailTo: email,
338
- first_name: firstname,
339
- last_name: lastname,
340
- wp_lead_uid: wp_lead_uid,
341
- page_view_count: page_view_count,
342
- page_views: page_views,
343
- post_type: inbound_ajax.post_type,
344
- lp_variation: lp_variation,
345
- json: tracking_obj,
346
- // type: 'form-completion',
347
- raw_post_values_json : post_values_json,
348
- lp_id: page_id
349
- });
350
-
351
- jQuery.totalStorage('failed_conversion', conversionObj); // store failed data
352
- jQuery.cookie("failed_conversion", true, { path: '/', expires: 365 });
353
-
354
- // If fail, cookie form data and ajax submit on next page load
355
- console.log('ajax fail');
356
- release_form_sub( this_form , element_type );
357
-
358
- }
359
- });
360
-
361
-
362
-
363
- });
364
-
365
-
366
- // Fallback for form ajax fails
367
- var failed_conversion = jQuery.cookie("failed_conversion");
368
- var fallback_obj = jQuery.totalStorage('failed_conversion');
369
-
370
- if (typeof (failed_conversion) != "undefined" && failed_conversion == 'true' ) {
371
- if (typeof fallback_obj =='object' && fallback_obj)
372
- {
373
- //console.log('fallback ran');
374
- jQuery.ajax({
375
- type: 'POST',
376
- url: inbound_ajax.admin_url,
377
- data: {
378
- action: fallback_obj[0].action,
379
- emailTo: fallback_obj[0].emailTo,
380
- first_name: fallback_obj[0].first_name,
381
- last_name: fallback_obj[0].last_name,
382
- wp_lead_uid: fallback_obj[0].wp_lead_uid,
383
- page_view_count: fallback_obj[0].page_view_count,
384
- page_views: fallback_obj[0].page_views,
385
- post_type: fallback_obj[0].post_type,
386
- lp_variation: fallback_obj[0].lp_variation,
387
- json: fallback_obj[0].json, // replace with page_view_obj
388
- // type: 'form-completion',
389
- raw_post_values_json : fallback_obj[0].raw_post_values_json,
390
- lp_id: fallback_obj[0].lp_id
391
- /* Replace with jquery hook
392
- do_action('wpl-lead-collection-add-ajax-data');
393
- */
394
- },
395
- success: function(user_id){
396
- //console.log('Fallback fired');
397
- jQuery.removeCookie("failed_conversion"); // remove failed cookie
398
- jQuery.totalStorage.deleteItem('failed_conversion'); // remove failed data
399
- },
400
- error: function(MLHttpRequest, textStatus, errorThrown){
401
- //alert(MLHttpRequest+' '+errorThrown+' '+textStatus);
402
- //die();
403
- }
404
-
405
- });
406
- }
407
- }
408
-
409
- });
410
-
411
- function release_form_sub(this_form , element_type){
412
- jQuery('button, input[type="button"]').css('cursor', 'default');
413
- jQuery('input').css('cursor', 'default');
414
- jQuery('body').css('cursor', 'default');
415
-
416
- if (element_type=='FORM')
417
- {
418
- this_form.unbind('submit');
419
- this_form.submit();
420
- }
421
-
422
- if (element_type=='A')
423
- {
424
- this_form.unbind('wpl-track-me');
425
-
426
- if (a_href)
427
- {
428
- window.location = a_href;
429
- }
430
- else
431
- {
432
- location.reload();
433
- }
434
- }
435
- }
436
-
437
- function inbound_find_form_fields(element, field_name, regex) {
438
- //console.log(element);
439
- //console.log(field_name);
440
- var return_val = "";
441
- var name = element.attr("name");
442
- var id = element.attr("id");
443
- var form_value = element.val();
444
- var nearest_li = element.closest('li').children('label');
445
- var nearest_div = element.closest('div').children('label');
446
- var newregex = new RegExp(regex, 'gi');
447
- //console.log(newregex);
448
-
449
- // Check name attributes for common names
450
- if (typeof (name) != "undefined" && name != null && name != "" && return_val === "") {
451
-
452
- var match = newregex.test(name); // regex to find matching name
453
- //console.log(match + name);
454
- if (match == true) {
455
- return form_value + " Regex 'name' Match: " + name;
456
- var return_val = form_value;
457
- }
458
- if (name.toLowerCase().indexOf(field_name)>-1) {
459
- return form_value + " indexof Match: " + name;
460
- var return_val = form_value;
461
- }
462
-
463
- }
464
-
465
- // Check nearest li element for common names
466
- if (typeof (nearest_li) != "undefined" && nearest_li != null && nearest_li != "" && return_val === "") {
467
- var the_label_text = nearest_li.html();
468
- var match = newregex.test(the_label_text); // regex to find matching label
469
-
470
- if (match == true){
471
- return the_label_text + " Regex Label Match" + name;
472
- var return_val = form_value;
473
- }
474
-
475
- }
476
-
477
- // Check nearest div element for common names
478
- if (typeof (nearest_div) != "undefined" && nearest_div != null && nearest_div != "" && return_val === "") {
479
- var the_div_text = nearest_div.html();
480
- var match = newregex.test(the_div_text); // regex to find matching label
481
-
482
- if (match == true){
483
- return the_div_text + " Regex Div Match" + name;
484
- var return_val = form_value;
485
- }
486
-
487
- }
488
-
489
- if(return_val === "") {
490
- //return "Not Found:" + name + "Looking for:" + field_name;
491
- return;
492
- }
493
-
494
- }
495
-
496
- // Regex to match form field values
497
- /* Runs the above function and grabs form values
498
- setTimeout(function() {
499
- jQuery(".wpl-track-me").find('input[type=text],input[type=email]').each(function() {
500
- var this_input = jQuery(this);
501
-
502
- var email_field = inbound_find_form_fields(this_input, 'email', 'email|e-mail');
503
- var first_name_field = inbound_find_form_fields(this_input, 'first', 'first name|first-name|first_name');
504
- var last_name_field = inbound_find_form_fields(this_input, 'last', 'Last name|last-name|last_name');
505
-
506
- console.log(email_field);
507
- console.log(first_name_field);
508
- console.log(last_name_field);
509
- });
510
- }, 400);
511
- */
512
  // end function to parse form fields
1
+ jQuery(document).ready(function($) {
2
+ /* Core Inbound Form Tracking Script */
3
+
4
+ jQuery("body").on('submit', '.wpl-track-me', function (e) {
5
+
6
+ this_form = jQuery(this);
7
+
8
+ element_type = 'FORM';
9
+
10
+ // process form only once
11
+ processed = this_form.hasClass('lead_processed');
12
+ if (processed === true) {
13
+ return;
14
+ }
15
+
16
+ form_id = jQuery(this).attr('id');
17
+ form_class = jQuery(this).attr('class');
18
+
19
+ jQuery('button, input[type="button"]').css('cursor', 'wait');
20
+ jQuery('input').css('cursor', 'wait');
21
+ jQuery('body').css('cursor', 'wait');
22
+
23
+
24
+ e.preventDefault(); // halt normal form
25
+
26
+ var email = "";
27
+ var firstname = "";
28
+ var lastname = "";
29
+ var phone = "";
30
+ var company = "";
31
+ var address = "";
32
+
33
+ var tracking_obj = JSON.stringify(trackObj);
34
+ var page_view_count = countProperties(pageviewObj);
35
+ //console.log("view count" + page_view_count);
36
+
37
+ if (!email)
38
+ {
39
+
40
+ jQuery(this_form).find('input[type=text],input[type=email]').each(function() {
41
+ if (this.value)
42
+ {
43
+ if (jQuery(this).attr("name").toLowerCase().indexOf('email')>-1&&!email) {
44
+ email = this.value;
45
+
46
+ }
47
+ else if(jQuery(this).attr("name").toLowerCase().indexOf('e-mail')>-1&&!email) {
48
+ email = this.value;
49
+ }
50
+ else if(jQuery(this).attr("name").toLowerCase().indexOf('name')>-1&&!firstname) {
51
+ firstname = this.value;
52
+ }
53
+ else if (jQuery(this).attr("name").toLowerCase().indexOf('last')>-1) {
54
+ lastname = this.value;
55
+ }
56
+ else if (jQuery(this).attr("name").toLowerCase().indexOf('phone')>-1) {
57
+ phone = this.value;
58
+ }
59
+ else if (jQuery(this).attr("name").toLowerCase().indexOf('company')>-1) {
60
+ company = this.value;
61
+ }
62
+ else if (jQuery(this).attr("name").toLowerCase().indexOf('address')>-1) {
63
+ address = this.value;
64
+ }
65
+ }
66
+ });
67
+ }
68
+
69
+ if (!email)
70
+ {
71
+ jQuery(this_form).find('input[type=text],input[type=email]').each(function() {
72
+ if (jQuery(this).closest('li').children('label').length>0)
73
+ {
74
+ if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('email')>-1&&!email)
75
+ {
76
+ email = this.value;
77
+ }
78
+ else if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('e-mail')>-1&&!email) {
79
+ email = this.value;
80
+ }
81
+ else if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('name')>-1&&!firstname) {
82
+ firstname = this.value;
83
+ }
84
+ else if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('last')>-1) {
85
+ lastname = this.value;
86
+ }
87
+ else if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('phone')>-1) {
88
+ phone = this.value;
89
+ }
90
+ else if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('company')>-1) {
91
+ company = this.value;
92
+ }
93
+ else if (jQuery(this).closest('li').children('label').html().toLowerCase().indexOf('address')>-1) {
94
+ address = this.value;
95
+ }
96
+ }
97
+
98
+ });
99
+ }
100
+
101
+ if (!email)
102
+ {
103
+ jQuery(this_form).find('input[type=text],input[type=email]').each(function() {
104
+ if (jQuery(this).closest('div').children('label').length>0)
105
+ {
106
+ if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('email')>-1&&!email)
107
+ {
108
+ email = this.value;
109
+ }
110
+ else if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('e-mail')>-1&&!email) {
111
+ email = this.value;
112
+ }
113
+ else if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('name')>-1&&!firstname) {
114
+ firstname = this.value;
115
+ }
116
+ else if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('last')>-1) {
117
+ lastname = this.value;
118
+ }
119
+ else if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('phone')>-1) {
120
+ phone = this.value;
121
+ }
122
+ else if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('company')>-1) {
123
+ company = this.value;
124
+ }
125
+ else if (jQuery(this).closest('div').children('label').html().toLowerCase().indexOf('address')>-1) {
126
+ address = this.value;
127
+ }
128
+ }
129
+ });
130
+ }
131
+
132
+
133
+ if (!lastname&&firstname)
134
+ {
135
+ var parts = firstname.split(" ");
136
+ firstname = parts[0];
137
+ lastname = parts[1];
138
+ }
139
+
140
+ var form_inputs = jQuery('.wpl-track-me').find('input[type=text],textarea,select');
141
+ var post_values = {};
142
+ form_inputs.each(function() {
143
+ post_values[this.name] = jQuery(this).val();
144
+ });
145
+ var post_values_json = JSON.stringify(post_values);
146
+
147
+ var wp_lead_uid = jQuery.cookie("wp_lead_uid");
148
+ var page_views = JSON.stringify(pageviewObj);
149
+ var page_id = inbound_ajax.post_id;
150
+ if (typeof (landing_path_info) != "undefined" && landing_path_info != null && landing_path_info != "") {
151
+ var lp_variation = landing_path_info.variation;
152
+ } else if (typeof (cta_path_info) != "undefined" && cta_path_info != null && cta_path_info != "") {
153
+ var lp_variation = cta_path_info.variation;
154
+ } else {
155
+ var lp_variation = null;
156
+ }
157
+
158
+ jQuery.cookie("wp_lead_email", email, { path: '/', expires: 365 });
159
+
160
+
161
+
162
+ /* Timeout Fallback
163
+ setTimeout(function() {
164
+ console.log('more than 10 seconds has passed. Release form')
165
+ release_form_sub();
166
+ }, 10000);
167
+ */
168
+ jQuery.ajax({
169
+ type: 'POST',
170
+ url: inbound_ajax.admin_url,
171
+ timeout: 10000,
172
+ data: {
173
+ element_type : element_type,
174
+ action: 'inbound_store_lead',
175
+ emailTo: email,
176
+ first_name: firstname,
177
+ last_name: lastname,
178
+ phone: phone,
179
+ address: address,
180
+ company_name: company,
181
+ wp_lead_uid: wp_lead_uid,
182
+ page_view_count: page_view_count,
183
+ page_views: page_views,
184
+ post_type: inbound_ajax.post_type,
185
+ lp_variation: lp_variation,
186
+ json: tracking_obj, // replace with page_view_obj
187
+ raw_post_values_json : post_values_json,
188
+ lp_id: page_id
189
+ /* Replace with jquery hook
190
+ do_action('wpl-lead-collection-add-ajax-data');
191
+ */
192
+ },
193
+ success: function(user_id){
194
+ jQuery(this_form).trigger("inbound_form_complete"); // Trigger custom hook
195
+ jQuery.cookie("wp_lead_id", user_id, { path: '/', expires: 365 });
196
+ jQuery.totalStorage('wp_lead_id', user_id);
197
+ this_form.addClass('lead_processed');
198
+
199
+
200
+ // Unbind form
201
+ this_form.unbind('click');
202
+ this_form.submit();
203
+
204
+ jQuery('button, input[type="button"]').css('cursor', 'default');
205
+ jQuery('input').css('cursor', 'default');
206
+ jQuery('body').css('cursor', 'default');
207
+
208
+
209
+ jQuery.totalStorage.deleteItem('page_views'); // remove pageviews
210
+ jQuery.totalStorage.deleteItem('tracking_events'); // remove events
211
+ //jQuery.totalStorage.deleteItem('cta_clicks'); // remove cta
212
+ },
213
+ error: function(MLHttpRequest, textStatus, errorThrown){
214
+ //alert(MLHttpRequest+' '+errorThrown+' '+textStatus); // debug
215
+
216
+ // Create fallback localstorage object
217
+ var conversionObj = new Array();
218
+ conversionObj.push({
219
+ action: 'inbound_store_lead',
220
+ emailTo: email,
221
+ first_name: firstname,
222
+ last_name: lastname,
223
+ wp_lead_uid: wp_lead_uid,
224
+ page_view_count: page_view_count,
225
+ page_views: page_views,
226
+ post_type: inbound_ajax.post_type,
227
+ lp_variation: lp_variation,
228
+ json: tracking_obj,
229
+ // type: 'form-completion',
230
+ raw_post_values_json : post_values_json,
231
+ lp_id: page_id
232
+ });
233
+
234
+ jQuery.totalStorage('failed_conversion', conversionObj); // store failed data
235
+ jQuery.cookie("failed_conversion", true, { path: '/', expires: 365 });
236
+
237
+ // If fail, cookie form data and ajax submit on next page load
238
+ console.log('ajax fail');
239
+ release_form_sub( this_form , element_type );
240
+
241
+ }
242
+ });
243
+
244
+ });
245
+
246
+ jQuery("body").on('click', '.wpl-track-me-link', function (e) {
247
+
248
+ this_form = jQuery(this);
249
+
250
+ var element_type='A';
251
+ var a_href = jQuery(this).attr("href");
252
+
253
+ // process form only once
254
+ processed = this_form.hasClass('lead_processed');
255
+ if (processed === true) {
256
+ return;
257
+ }
258
+
259
+ form_id = jQuery(this).attr('id');
260
+ form_class = jQuery(this).attr('class');
261
+
262
+ jQuery(this).css('cursor', 'wait');
263
+ jQuery('body').css('cursor', 'wait');
264
+
265
+
266
+ e.preventDefault(); // halt normal form
267
+
268
+ var tracking_obj = JSON.stringify(trackObj);
269
+ var page_view_count = countProperties(pageviewObj);
270
+ //console.log("view count" + page_view_count);
271
+
272
+ var wp_lead_uid = jQuery.cookie("wp_lead_uid");
273
+ var page_views = JSON.stringify(pageviewObj);
274
+
275
+ var page_id = inbound_ajax.post_id;
276
+ if (typeof (landing_path_info) != "undefined" && landing_path_info != null && landing_path_info != "") {
277
+ var lp_variation = landing_path_info.variation;
278
+ } else if (typeof (cta_path_info) != "undefined" && cta_path_info != null && cta_path_info != "") {
279
+ var lp_variation = cta_path_info.variation;
280
+ } else {
281
+ var lp_variation = null;
282
+ }
283
+
284
+ /* Timeout Fallback
285
+ setTimeout(function() {
286
+ console.log('more than 10 seconds has passed. Release form')
287
+ release_form_sub();
288
+ }, 10000);
289
+ */
290
+ jQuery.ajax({
291
+ type: 'POST',
292
+ url: inbound_ajax.admin_url,
293
+ timeout: 10000,
294
+ data: {
295
+ action: 'inbound_store_lead',
296
+ element_type : 'A',
297
+ wp_lead_uid: wp_lead_uid,
298
+ page_view_count: page_view_count,
299
+ page_views: page_views,
300
+ post_type: inbound_ajax.post_type,
301
+ lp_variation: lp_variation,
302
+ json: tracking_obj, // replace with page_view_obj
303
+ lp_id: page_id
304
+ /* Replace with jquery hook
305
+ do_action('wpl-lead-collection-add-ajax-data');
306
+ */
307
+ },
308
+ success: function(user_id){
309
+ jQuery(this_form).trigger("inbound_form_complete"); // Trigger custom hook
310
+ jQuery.cookie("wp_lead_id", user_id, { path: '/', expires: 365 });
311
+ jQuery.totalStorage('wp_lead_id', user_id);
312
+ this_form.addClass('lead_processed');
313
+
314
+ this_form.unbind('click');
315
+
316
+ if (a_href)
317
+ {
318
+ window.location = a_href;
319
+ }
320
+ else
321
+ {
322
+ location.reload();
323
+ }
324
+
325
+
326
+ jQuery.totalStorage.deleteItem('page_views'); // remove pageviews
327
+ jQuery.totalStorage.deleteItem('tracking_events'); // remove events
328
+ //jQuery.totalStorage.deleteItem('cta_clicks'); // remove cta
329
+ },
330
+ error: function(MLHttpRequest, textStatus, errorThrown){
331
+ //alert(MLHttpRequest+' '+errorThrown+' '+textStatus); // debug
332
+
333
+ // Create fallback localstorage object
334
+ var conversionObj = new Array();
335
+ conversionObj.push({
336
+ action: 'inbound_store_lead',
337
+ emailTo: email,
338
+ first_name: firstname,
339
+ last_name: lastname,
340
+ wp_lead_uid: wp_lead_uid,
341
+ page_view_count: page_view_count,
342
+ page_views: page_views,
343
+ post_type: inbound_ajax.post_type,
344
+ lp_variation: lp_variation,
345
+ json: tracking_obj,
346
+ // type: 'form-completion',
347
+ raw_post_values_json : post_values_json,
348
+ lp_id: page_id
349
+ });
350
+
351
+ jQuery.totalStorage('failed_conversion', conversionObj); // store failed data
352
+ jQuery.cookie("failed_conversion", true, { path: '/', expires: 365 });
353
+
354
+ // If fail, cookie form data and ajax submit on next page load
355
+ console.log('ajax fail');
356
+ release_form_sub( this_form , element_type );
357
+
358
+ }
359
+ });
360
+
361
+
362
+
363
+ });
364
+
365
+
366
+ // Fallback for form ajax fails
367
+ var failed_conversion = jQuery.cookie("failed_conversion");
368
+ var fallback_obj = jQuery.totalStorage('failed_conversion');
369
+
370
+ if (typeof (failed_conversion) != "undefined" && failed_conversion == 'true' ) {
371
+ if (typeof fallback_obj =='object' && fallback_obj)
372
+ {
373
+ //console.log('fallback ran');
374
+ jQuery.ajax({
375
+ type: 'POST',
376
+ url: inbound_ajax.admin_url,
377
+ data: {
378
+ action: fallback_obj[0].action,
379
+ emailTo: fallback_obj[0].emailTo,
380
+ first_name: fallback_obj[0].first_name,
381
+ last_name: fallback_obj[0].last_name,
382
+ wp_lead_uid: fallback_obj[0].wp_lead_uid,
383
+ page_view_count: fallback_obj[0].page_view_count,
384
+ page_views: fallback_obj[0].page_views,
385
+ post_type: fallback_obj[0].post_type,
386
+ lp_variation: fallback_obj[0].lp_variation,
387
+ json: fallback_obj[0].json, // replace with page_view_obj
388
+ // type: 'form-completion',
389
+ raw_post_values_json : fallback_obj[0].raw_post_values_json,
390
+ lp_id: fallback_obj[0].lp_id
391
+ /* Replace with jquery hook
392
+ do_action('wpl-lead-collection-add-ajax-data');
393
+ */
394
+ },
395
+ success: function(user_id){
396
+ //console.log('Fallback fired');
397
+ jQuery.removeCookie("failed_conversion"); // remove failed cookie
398
+ jQuery.totalStorage.deleteItem('failed_conversion'); // remove failed data
399
+ },
400
+ error: function(MLHttpRequest, textStatus, errorThrown){
401
+ //alert(MLHttpRequest+' '+errorThrown+' '+textStatus);
402
+ //die();
403
+ }
404
+
405
+ });
406
+ }
407
+ }
408
+
409
+ });
410
+
411
+ function release_form_sub(this_form , element_type){
412
+ jQuery('button, input[type="button"]').css('cursor', 'default');
413
+ jQuery('input').css('cursor', 'default');
414
+ jQuery('body').css('cursor', 'default');
415
+
416
+ if (element_type=='FORM')
417
+ {
418
+ this_form.unbind('submit');
419
+ this_form.submit();
420
+ }
421
+
422
+ if (element_type=='A')
423
+ {
424
+ this_form.unbind('wpl-track-me');
425
+
426
+ if (a_href)
427
+ {
428
+ window.location = a_href;
429
+ }
430
+ else
431
+ {
432
+ location.reload();
433
+ }
434
+ }
435
+ }
436
+
437
+ function inbound_find_form_fields(element, field_name, regex) {
438
+ //console.log(element);
439
+ //console.log(field_name);
440
+ var return_val = "";
441
+ var name = element.attr("name");
442
+ var id = element.attr("id");
443
+ var form_value = element.val();
444
+ var nearest_li = element.closest('li').children('label');
445
+ var nearest_div = element.closest('div').children('label');
446
+ var newregex = new RegExp(regex, 'gi');
447
+ //console.log(newregex);
448
+
449
+ // Check name attributes for common names
450
+ if (typeof (name) != "undefined" && name != null && name != "" && return_val === "") {
451
+
452
+ var match = newregex.test(name); // regex to find matching name
453
+ //console.log(match + name);
454
+ if (match == true) {
455
+ return form_value + " Regex 'name' Match: " + name;
456
+ var return_val = form_value;
457
+ }
458
+ if (name.toLowerCase().indexOf(field_name)>-1) {
459
+ return form_value + " indexof Match: " + name;
460
+ var return_val = form_value;
461
+ }
462
+
463
+ }
464
+
465
+ // Check nearest li element for common names
466
+ if (typeof (nearest_li) != "undefined" && nearest_li != null && nearest_li != "" && return_val === "") {
467
+ var the_label_text = nearest_li.html();
468
+ var match = newregex.test(the_label_text); // regex to find matching label
469
+
470
+ if (match == true){
471
+ return the_label_text + " Regex Label Match" + name;
472
+ var return_val = form_value;
473
+ }
474
+
475
+ }
476
+
477
+ // Check nearest div element for common names
478
+ if (typeof (nearest_div) != "undefined" && nearest_div != null && nearest_div != "" && return_val === "") {
479
+ var the_div_text = nearest_div.html();
480
+ var match = newregex.test(the_div_text); // regex to find matching label
481
+
482
+ if (match == true){
483
+ return the_div_text + " Regex Div Match" + name;
484
+ var return_val = form_value;
485
+ }
486
+
487
+ }
488
+
489
+ if(return_val === "") {
490
+ //return "Not Found:" + name + "Looking for:" + field_name;
491
+ return;
492
+ }
493
+
494
+ }
495
+
496
+ // Regex to match form field values
497
+ /* Runs the above function and grabs form values
498
+ setTimeout(function() {
499
+ jQuery(".wpl-track-me").find('input[type=text],input[type=email]').each(function() {
500
+ var this_input = jQuery(this);
501
+
502
+ var email_field = inbound_find_form_fields(this_input, 'email', 'email|e-mail');
503
+ var first_name_field = inbound_find_form_fields(this_input, 'first', 'first name|first-name|first_name');
504
+ var last_name_field = inbound_find_form_fields(this_input, 'last', 'Last name|last-name|last_name');
505
+
506
+ console.log(email_field);
507
+ console.log(first_name_field);
508
+ console.log(last_name_field);
509
+ });
510
+ }, 400);
511
+ */
512
  // end function to parse form fields
shared/tracking/page-tracking.js ADDED
@@ -0,0 +1,435 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Console.log fix
2
+ (function() {
3
+ if (!window.console) {
4
+ window.console = {};
5
+ }
6
+ // union of Chrome, FF, IE, and Safari console methods
7
+ var m = [
8
+ "log", "info", "warn", "error", "debug", "trace", "dir", "group",
9
+ "groupCollapsed", "groupEnd", "time", "timeEnd", "profile", "profileEnd",
10
+ "dirxml", "assert", "count", "markTimeline", "timeStamp", "clear"
11
+ ];
12
+ // define undefined methods as noops to prevent errors
13
+ for (var i = 0; i < m.length; i++) {
14
+ if (!window.console[m[i]]) {
15
+ window.console[m[i]] = function() {};
16
+ }
17
+ }
18
+ })();
19
+ function wpl_numKeys(obj)
20
+ {
21
+ var count = 0;
22
+ for(var key in obj)
23
+ {
24
+ if (obj.hasOwnProperty(key)) {
25
+
26
+ for(var key_b in obj[key])
27
+ {
28
+ //alert ('1');
29
+ count++;
30
+ }
31
+
32
+ }
33
+
34
+ }
35
+ return count;
36
+ }
37
+ /* Count number of session visits */
38
+ function countProperties(obj) {
39
+ var count = 0;
40
+
41
+ for(var prop in obj) {
42
+ if(obj.hasOwnProperty(prop))
43
+ ++count;
44
+ }
45
+
46
+ return count;
47
+ }
48
+ /* build tracking uid */
49
+ function generate_wp_leads_uid(length) {
50
+
51
+ var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz'.split('');
52
+
53
+ if (! length) {
54
+ length = Math.floor(Math.random() * chars.length);
55
+ }
56
+
57
+ var str = '';
58
+ for (var i = 0; i < length; i++) {
59
+ str += chars[Math.floor(Math.random() * chars.length)];
60
+ }
61
+ return str;
62
+ }
63
+
64
+ /* build tracking uid */
65
+ function generate_session_id(length) {
66
+ var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz'.split('');
67
+
68
+ if (! length) {
69
+ length = Math.floor(Math.random() * chars.length);
70
+ }
71
+
72
+ var str = '';
73
+ for (var i = 0; i < length; i++) {
74
+ str += chars[Math.floor(Math.random() * chars.length)];
75
+ }
76
+ return str;
77
+ }
78
+
79
+
80
+ /* Function for adding minutes to current time */
81
+ function add_page_timeout(date, minutes) {
82
+ return new Date(date.getTime() + minutes*60000);
83
+ }
84
+
85
+ /*
86
+ * Date Format 1.2.3
87
+ * (c) 2007-2009 Steven Levithan <stevenlevithan.com>
88
+ * MIT license
89
+ *
90
+ * Includes enhancements by Scott Trenda <scott.trenda.net>
91
+ * and Kris Kowal <cixar.com/~kris.kowal/>
92
+ *
93
+ * Accepts a date, a mask, or a date and a mask.
94
+ * Returns a formatted version of the given date.
95
+ * The date defaults to the current date/time.
96
+ * The mask defaults to dateFormat.masks.default.
97
+ */
98
+
99
+ var dateFormat = function () {
100
+ var token = /d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,
101
+ timezone = /\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,
102
+ timezoneClip = /[^-+\dA-Z]/g,
103
+ pad = function (val, len) {
104
+ val = String(val);
105
+ len = len || 2;
106
+ while (val.length < len) val = "0" + val;
107
+ return val;
108
+ };
109
+
110
+ // Regexes and supporting functions are cached through closure
111
+ return function (date, mask, utc) {
112
+ var dF = dateFormat;
113
+
114
+ // You can't provide utc if you skip other args (use the "UTC:" mask prefix)
115
+ if (arguments.length == 1 && Object.prototype.toString.call(date) == "[object String]" && !/\d/.test(date)) {
116
+ mask = date;
117
+ date = undefined;
118
+ }
119
+
120
+ // Passing date through Date applies Date.parse, if necessary
121
+ date = date ? new Date(date) : new Date;
122
+ if (isNaN(date)) throw SyntaxError("invalid date");
123
+
124
+ mask = String(dF.masks[mask] || mask || dF.masks["default"]);
125
+
126
+ // Allow setting the utc argument via the mask
127
+ if (mask.slice(0, 4) == "UTC:") {
128
+ mask = mask.slice(4);
129
+ utc = true;
130
+ }
131
+
132
+ var _ = utc ? "getUTC" : "get",
133
+ d = date[_ + "Date"](),
134
+ D = date[_ + "Day"](),
135
+ m = date[_ + "Month"](),
136
+ y = date[_ + "FullYear"](),
137
+ H = date[_ + "Hours"](),
138
+ M = date[_ + "Minutes"](),
139
+ s = date[_ + "Seconds"](),
140
+ L = date[_ + "Milliseconds"](),
141
+ o = utc ? 0 : date.getTimezoneOffset(),
142
+ flags = {
143
+ d: d,
144
+ dd: pad(d),
145
+ ddd: dF.i18n.dayNames[D],
146
+ dddd: dF.i18n.dayNames[D + 7],
147
+ m: m + 1,
148
+ mm: pad(m + 1),
149
+ mmm: dF.i18n.monthNames[m],
150
+ mmmm: dF.i18n.monthNames[m + 12],
151
+ yy: String(y).slice(2),
152
+ yyyy: y,
153
+ h: H % 12 || 12,
154
+ hh: pad(H % 12 || 12),
155
+ H: H,
156
+ HH: pad(H),
157
+ M: M,
158
+ MM: pad(M),
159
+ s: s,
160
+ ss: pad(s),
161
+ l: pad(L, 3),
162
+ L: pad(L > 99 ? Math.round(L / 10) : L),
163
+ t: H < 12 ? "a" : "p",
164
+ tt: H < 12 ? "am" : "pm",
165
+ T: H < 12 ? "A" : "P",
166
+ TT: H < 12 ? "AM" : "PM",
167
+ Z: utc ? "UTC" : (String(date).match(timezone) || [""]).pop().replace(timezoneClip, ""),
168
+ o: (o > 0 ? "-" : "+") + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4),
169
+ S: ["th", "st", "nd", "rd"][d % 10 > 3 ? 0 : (d % 100 - d % 10 != 10) * d % 10]
170
+ };
171
+
172
+ return mask.replace(token, function ($0) {
173
+ return $0 in flags ? flags[$0] : $0.slice(1, $0.length - 1);
174
+ });
175
+ };
176
+ }();
177
+
178
+ // Some common format strings
179
+ dateFormat.masks = {
180
+ "default": "ddd mmm dd yyyy HH:MM:ss",
181
+ shortDate: "m/d/yy",
182
+ mediumDate: "mmm d, yyyy",
183
+ longDate: "mmmm d, yyyy",
184
+ fullDate: "dddd, mmmm d, yyyy",
185
+ shortTime: "h:MM TT",
186
+ mediumTime: "h:MM:ss TT",
187
+ longTime: "h:MM:ss TT Z",
188
+ isoDate: "yyyy-mm-dd",
189
+ isoTime: "HH:MM:ss",
190
+ isoDateTime: "yyyy-mm-dd'T'HH:MM:ss",
191
+ isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"
192
+ };
193
+
194
+ // Internationalization strings
195
+ dateFormat.i18n = {
196
+ dayNames: [
197
+ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat",
198
+ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"
199
+ ],
200
+ monthNames: [
201
+ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
202
+ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
203
+ ]
204
+ };
205
+
206
+ // For convenience...
207
+ Date.prototype.format = function (mask, utc) {
208
+ return dateFormat(this, mask, utc);
209
+ };
210
+ /* Query String for utm params
211
+
212
+ // Query String Stuff
213
+ var p = jQuery("pre"),
214
+ result = "",
215
+ urlParams = {};
216
+
217
+ (function () {
218
+ var e,
219
+ d = function (s) { return decodeURIComponent(s).replace(/\+/g, " "); },
220
+ q = window.location.search.substring(1),
221
+ r = /([^&=]+)=?([^&]*)/g;
222
+
223
+ while (e = r.exec(q)) {
224
+ if (e[1].indexOf("[") == "-1")
225
+ urlParams[d(e[1])] = d(e[2]);
226
+ else {
227
+ var b1 = e[1].indexOf("["),
228
+ aN = e[1].slice(b1+1, e[1].indexOf("]", b1)),
229
+ pN = d(e[1].slice(0, b1));
230
+
231
+ if (typeof urlParams[pN] != "object")
232
+ urlParams[d(pN)] = {},
233
+ urlParams[d(pN)].length = 0;
234
+
235
+ if (aN)
236
+ urlParams[d(pN)][d(aN)] = d(e[2]);
237
+ else
238
+ Array.prototype.push.call(urlParams[d(pN)], d(e[2]));
239
+
240
+ }
241
+ }
242
+ })();
243
+
244
+ if (JSON) {
245
+ result = JSON.stringify(urlParams, null, 4);
246
+
247
+ for (var k in urlParams) {
248
+ if (typeof urlParams[k] == "object") {
249
+ for (var k2 in urlParams[k])
250
+ jQuery.cookie(k2, urlParams[k][k2], { expires: 365 });
251
+ console.log(k2);
252
+ console.log(urlParams[k][k2]);
253
+ }
254
+ else {
255
+ jQuery.cookie(k, urlParams[k], { expires: 365 }); }
256
+ console.log(k);
257
+ console.log(urlParams[k]);
258
+ }
259
+
260
+ }
261
+ */
262
+
263
+ //alert(window.location);
264
+
265
+ // Unique WP Lead ID
266
+ var wp_lead_uid_val = generate_wp_leads_uid(35);
267
+ //alert(wplft.ip_address);
268
+ if(jQuery.cookie("wp_lead_uid") === null) {
269
+ jQuery.cookie("wp_lead_uid", wp_lead_uid_val, { path: '/', expires: 365 });
270
+ }
271
+
272
+ /* define vars */
273
+ var referrer = document.referrer;
274
+ var current_page = window.location.href;
275
+ var current_page_parts = current_page.split('#');
276
+ current_page = current_page_parts[0];
277
+
278
+ var parts = location.hostname.split('.');
279
+ var subdomain = parts.shift();
280
+ var upperleveldomain = parts.join('.');
281
+ var data_block = jQuery.parseJSON(jQuery.cookie('user_data_json'));
282
+ // Date Data
283
+ var date = new Date(wplft.track_time);
284
+
285
+ var datetime = wplft.track_time;
286
+
287
+ var the_time_out = add_page_timeout(date, .1);
288
+
289
+ var lead_uid = jQuery.cookie("wp_lead_uid");
290
+ var lead_id = jQuery.cookie("wp_lead_id");
291
+ var lead_email = jQuery.cookie("wp_lead_email");
292
+
293
+
294
+
295
+ /* Start LocalStorage */
296
+ var trackObj = jQuery.totalStorage('cpath');
297
+
298
+ if (typeof trackObj =='object' && trackObj)
299
+ {
300
+ session_count = countProperties(trackObj);
301
+ // If session is past timout limit
302
+ if(!jQuery.cookie( "lead_session_expire") ) {
303
+ var session_id = generate_session_id(11);
304
+ console.log("Start New Tracking Session");
305
+ // Start New Tracking Block
306
+ trackObj.push({
307
+ session: session_count + 1,
308
+ session_id: session_id,
309
+ pageviews: [{id: 1,
310
+ current_page: current_page,
311
+ post_id : wplft.post_id,
312
+ timestamp: datetime,
313
+ referrer: referrer,
314
+ original_referrer: referrer
315
+ }],
316
+ last_activity: date, // Last movement
317
+ timeout: the_time_out, // Thirty minute timeout
318
+ lead_uid: lead_uid,
319
+ lead_id: lead_id,
320
+ lead_email: lead_email,
321
+ lead_ip_address: wplft.ip_address
322
+ });
323
+ } else {
324
+ // If session still active, do this
325
+ session_count = countProperties(trackObj);
326
+ number = parseInt(session_count) - 1;
327
+ var new_count = trackObj[number].pageviews.length;
328
+ //console.log(new_count);
329
+ if(jQuery.cookie('wp_lead_uid')){
330
+ trackObj[number].lead_uid = lead_uid;
331
+ }
332
+ if(jQuery.cookie('wp_lead_id')){
333
+ trackObj[number].lead_id = lead_id;
334
+ }
335
+ if(jQuery.cookie('wp_lead_email')){
336
+ trackObj[number].lead_email = lead_email;
337
+ }
338
+ trackObj[number].pageviews.push(
339
+ { id : new_count+1, current_page: current_page, post_id : wplft.post_id, timestamp: datetime, referrer: referrer}
340
+ )
341
+ }
342
+ }
343
+ else
344
+ {
345
+ // Create initial tracking block
346
+ var trackObj = new Array();
347
+ var session_id = generate_session_id(11);
348
+ trackObj.push({
349
+ session: 1,
350
+ session_id: session_id,
351
+ pageviews: [{id: 1,
352
+ current_page: current_page,
353
+ post_id : wplft.post_id,
354
+ timestamp: datetime,
355
+ referrer: referrer,
356
+ original_referrer: referrer
357
+ }],
358
+ last_activity: date, // Last movement
359
+ timeout: the_time_out, // Thirty minute timeout
360
+ lead_uid: lead_uid,
361
+ lead_id: lead_id,
362
+ lead_email: lead_email,
363
+ lead_ip_address: wplft.ip_address
364
+ }
365
+ );
366
+
367
+ }
368
+ jQuery.totalStorage('cpath', trackObj);
369
+
370
+ // Page View Object: Sessionless and clears on form submittions
371
+ var pageviewObj = jQuery.totalStorage('page_views');
372
+ var current_page_id = wplft.post_id;
373
+ if (typeof pageviewObj =='object' && pageviewObj)
374
+ {
375
+ // If pageviewObj exists, do this
376
+ var page_seen = pageviewObj[current_page_id];
377
+ if(typeof(page_seen) != "undefined" && page_seen !== null) {
378
+ var view_count = pageviewObj[current_page_id].length - 1;
379
+ var last_view = pageviewObj[current_page_id][view_count];
380
+
381
+ var thirty_second_timeout = new Date(last_view).getTime() + 30*1000;
382
+ var thirty_second_timeout_formatted = dateFormat(thirty_second_timeout, "UTC:yyyy-mm-dd hh:MM:ss");
383
+
384
+ var wait_time = Math.abs(Date.parse(last_view) - Date.parse(thirty_second_timeout_formatted)) // output timeout time 30sec;
385
+ var parse_this = Date.parse(datetime);
386
+ var format_date = dateFormat(parse_this, "UTC:yyyy-mm-dd hh:MM:ss");
387
+ var time_check = Math.abs(Date.parse(last_view) - Date.parse(format_date));
388
+ //console.log(wait_time);
389
+ //console.log(time_check);
390
+ if (time_check > wait_time ){
391
+ console.log('time out happened');
392
+ pageviewObj[current_page_id].push(datetime);
393
+ // run Ajax page view saving here.
394
+ } else {
395
+ console.log('30 sec timeout not done: ' + (wait_time - time_check)*.001 + " seconds left");
396
+ }
397
+
398
+ } else {
399
+ pageviewObj[current_page_id] = [];
400
+ pageviewObj[current_page_id].push(datetime);
401
+ }
402
+
403
+ } else {
404
+ // Create initial pageviewObj
405
+ var pageviewObj = {};
406
+ pageviewObj[current_page_id] = [];
407
+ pageviewObj[current_page_id].push(datetime);
408
+
409
+ }
410
+
411
+ jQuery.totalStorage('page_views', pageviewObj);
412
+ // console.log(JSON.stringify(pageviewObj)) // output the pages viewed
413
+
414
+
415
+ /* End local storage */
416
+
417
+ /* Start Legacy Cookie Storage */
418
+ if (typeof data_block =='object' && data_block)
419
+ {
420
+ var count = wpl_numKeys(data_block);
421
+ data_block.items.push(
422
+ { id : count+1, current_page: current_page, timestamp: datetime, referrer: referrer}
423
+ );
424
+
425
+ jQuery.cookie('user_data_json', JSON.stringify(data_block), { expires: 1, path: '/' });
426
+ }
427
+ else
428
+ {
429
+ data_block = {items: [
430
+ {id: '1', current_page: current_page,timestamp: datetime, referrer: referrer, original_referrer: referrer},
431
+ ]};
432
+
433
+ jQuery.cookie('user_data_json', JSON.stringify(data_block), { expires: 1, path: '/' });
434
+ }
435
+ /* End Legacy Cookie Storage */
shared/tracking/store.lead.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Inbound Lead Storage
4
- *
5
  * - Handles lead creation and storage
6
  */
7
 
@@ -10,41 +10,36 @@ if (!function_exists('inbound_store_lead')) {
10
  add_action('wp_ajax_inbound_store_lead', 'inbound_store_lead');
11
  add_action('wp_ajax_nopriv_inbound_store_lead', 'inbound_store_lead');
12
 
13
- function inbound_store_lead()
14
  {
15
  global $user_ID, $wpdb;
16
-
17
- // Grab form values
18
- $data['element_type'] = $_POST['element_type'];
19
- $data['wp_lead_uid'] = $_POST['wp_lead_uid'];
20
- $data['raw_post_values_json'] = $_POST['raw_post_values_json'];
21
 
 
22
  $time = current_time( 'timestamp', 0 ); // Current wordpress time from settings
23
- $data['user_ID'] = $user_ID;
24
- $data['wordpress_date_time'] = date("Y-m-d G:i:s T", $time);
25
-
26
-
27
  $data['email'] = $_POST['emailTo'];
28
- (isset( $_POST['first_name'] )) ? $data['first_name'] = $_POST['first_name'] : $data['first_name'] = "";
29
- (isset( $_POST['last_name'] )) ? $data['last_name'] = $_POST['last_name'] : $data['last_name'] = "";
30
- (isset( $_POST['company_name'] )) ? $data['company_name'] = $_POST['company_name'] : $data['company_name'] = "";
31
- (isset( $_POST['phone'] )) ? $data['phone'] = $_POST['phone'] : $data['phone'] = "";
32
- (isset( $_POST['address'] )) ? $data['address'] = $_POST['address'] : $data['address'] = "";
33
-
34
- (isset( $_SERVER['REMOTE_ADDR'] )) ? $data['ip_address'] = $_SERVER['REMOTE_ADDR'] :$data['ip_address'] = "undefined";
35
- (isset( $_POST['wp_lead_uid'] )) ? $data['wp_lead_uid'] = $_POST['wp_lead_uid'] : $data['wp_lead_uid'] = "null";
36
- (isset( $_POST['lp_id'] )) ? $data['lp_id'] = $_POST['lp_id'] : $data['lp_id'] = 0;
37
- (isset( $_POST['post_type'] )) ? $data['post_type'] = $_POST['post_type'] : $data['post_type'] = 'na';
38
- (isset( $_POST['lp_variation'] )) ? $data['lp_variation'] = $_POST['lp_variation'] : $data['lp_variation'] = 0;
39
- (isset( $_POST['page_views'] )) ? $data['page_views'] = $_POST['page_views'] : $data['page_views'] = false;
40
- (isset( $_POST['page_view_count'] )) ? $data['page_view_count'] = $_POST['page_view_count'] : $data['page_view_count'] = 0;
 
 
41
 
42
  do_action('inbound_store_lead_pre' , $data); // Global lead storage action hook
43
-
44
- // header('HTTP/1.0 404 Not found'); exit; // simulate fail
45
  // check for set email
46
- if ( ( isset( $_POST['emailTo']) && !empty( $_POST['emailTo']) && strstr($_POST['emailTo'],'@') ))
47
- {
48
  $query = $wpdb->prepare(
49
  'SELECT ID FROM ' . $wpdb->posts . '
50
  WHERE post_title = %s
@@ -54,28 +49,15 @@ function inbound_store_lead()
54
  $wpdb->query( $query );
55
 
56
  // Add lookup fallbacks
57
-
58
  if ( $wpdb->num_rows ) {
59
  /* Update Existing Lead */
60
  $data['lead_id'] = $wpdb->get_var( $query );
61
- $meta = get_post_meta( $data['lead_id'], 'times', TRUE ); // replace times
62
  $meta++;
63
-
64
- if ($data['lp_id'])
65
- {
66
- $conversion_data = get_post_meta( $data['lead_id'], 'wpleads_conversion_data', TRUE );
67
- $conversion_data = json_decode($conversion_data,true);
68
- $conversion_data[$meta]['id'] = $data['lp_id'];
69
- $conversion_data[$meta]['variation'] = $data['lp_variation'];
70
- $conversion_data[$meta]['datetime'] = $data['wordpress_date_time'];
71
- $data['conversion_data'] = json_encode($conversion_data);
72
- }
73
-
74
  update_post_meta( $data['lead_id'], 'times', $meta ); // replace times
75
- update_post_meta( $data['lead_id'], 'wpleads_email_address', $data['email'] );
76
-
77
  if (!empty($data['user_ID']))
78
- update_post_meta( $data['lead_id'], 'wpleads_wordpress_user_id', $data['user_ID'] );
79
  if (!empty($data['first_name']))
80
  update_post_meta( $data['lead_id'], 'wpleads_first_name', $data['first_name'] );
81
  if (!empty($data['last_name']))
@@ -88,40 +70,26 @@ function inbound_store_lead()
88
  update_post_meta( $data['lead_id'], 'wpleads_address_line_1', $data['address'] );
89
  if (!empty($data['wp_lead_uid']))
90
  update_post_meta( $data['lead_id'], 'wp_leads_uid', $data['wp_lead_uid'] );
91
-
92
- update_post_meta( $data['lead_id'], 'wpleads_ip_address', $data['ip_address'] );
93
- update_post_meta( $data['lead_id'], 'wpleads_conversion_data', $data['conversion_data'] );
94
  update_post_meta( $data['lead_id'], 'wpleads_landing_page_'.$data['lp_id'], 1 );
95
-
96
  do_action('wpleads_after_conversion_lead_update',$data['lead_id']);
97
-
98
- } else {
99
  /* Create New Lead */
100
  $post = array(
101
- 'post_title' => $data['email'],
102
  //'post_content' => $json,
103
  'post_status' => 'publish',
104
  'post_type' => 'wp-lead',
105
  'post_author' => 1
106
  );
107
-
108
- //$post = add_filter('lp_leads_post_vars',$post);
109
-
110
- if ($data['lp_id'])
111
- {
112
- $conversion_data[1]['id'] = $data['lp_id'];
113
- $conversion_data[1]['variation'] = $data['lp_variation'];
114
- $conversion_data[1]['datetime'] = $data['wordpress_date_time'];
115
- $conversion_data[1]['first_time'] = 1;
116
- $data['conversion_data'] = json_encode($conversion_data);
117
- }
118
-
119
 
 
120
  $data['lead_id'] = wp_insert_post($post);
121
  update_post_meta( $data['lead_id'], 'times', 1 );
122
  update_post_meta( $data['lead_id'], 'wpleads_wordpress_user_id', $user_ID );
123
  update_post_meta( $data['lead_id'], 'wpleads_email_address', $data['email'] );
124
-
125
  if (!empty($data['first_name']))
126
  update_post_meta( $data['lead_id'], 'wpleads_first_name', $data['first_name'] );
127
  if (!empty($data['last_name']))
@@ -132,47 +100,150 @@ function inbound_store_lead()
132
  update_post_meta( $data['lead_id'], 'wpleads_company_name', $data['company_name'] );
133
  if (!empty($data['address']))
134
  update_post_meta( $data['lead_id'], 'wpleads_address_line_1', $data['address'] );
135
-
136
- update_post_meta( $data['lead_id'], 'wpleads_ip_address', $data['ip_address'] );
137
  update_post_meta( $data['lead_id'], 'wp_leads_uid', $data['wp_lead_uid'] );
138
- update_post_meta( $data['lead_id'], 'page_views', $data['page_views'] );
139
- //update_post_meta( $data['lead_id'], 'wpl-lead-page-view-count', $page_view_count ); // enable
140
- //update_post_meta( $data['lead_id'], 'wpl-lead-conversion-count', 1 ); // enable
141
- update_post_meta( $data['lead_id'], 'wpleads_conversion_data', $data['conversion_data'] );
142
-
143
  update_post_meta( $data['lead_id'], 'wpleads_landing_page_'.$data['lp_id'], 1 );
144
-
145
- $geo_array = unserialize(lp_remote_connect('http://www.geoplugin.net/php.gp?ip='.$data['ip_address']));
146
-
147
-
148
- (isset($geo_array['geoplugin_areaCode'])) ? update_post_meta( $data['lead_id'], 'wpleads_areaCode', $geo_array['geoplugin_areaCode'] ) : null;
149
- (isset($geo_array['geoplugin_city'])) ? update_post_meta( $data['lead_id'], 'wpleads_city', $geo_array['geoplugin_city'] ) : null;
150
- (isset($geo_array['geoplugin_regionName'])) ? update_post_meta( $data['lead_id'], 'wpleads_region_name', $geo_array['geoplugin_regionName'] ) : null;
151
- (isset($geo_array['geoplugin_regionCode'])) ? update_post_meta( $data['lead_id'], 'wpleads_region_code', $geo_array['geoplugin_regionCode'] ) : null;
152
- (isset($geo_array['geoplugin_countryName'])) ? update_post_meta( $data['lead_id'], 'wpleads_country_name', $geo_array['geoplugin_countryName'] ) : null;
153
- (isset($geo_array['geoplugin_countryCode'])) ? update_post_meta( $data['lead_id'], 'wpleads_country_code', $geo_array['geoplugin_countryCode'] ) : null;
154
- (isset($geo_array['geoplugin_latitude'])) ? update_post_meta( $data['lead_id'], 'wpleads_latitude', $geo_array['geoplugin_latitude'] ) : null;
155
- (isset($geo_array['geoplugin_longitude'])) ? update_post_meta( $data['lead_id'], 'wpleads_longitude', $geo_array['geoplugin_longitude'] ) : null;
156
- (isset($geo_array['geoplugin_currencyCode'])) ? update_post_meta( $data['lead_id'], 'wpleads_currency_code', $geo_array['geoplugin_currencyCode'] ) : null;
157
- (isset($geo_array['geoplugin_currencySymbol_UTF8'])) ? update_post_meta( $data['lead_id'], 'wpleads_currency_symbol', $geo_array['geoplugin_currencySymbol_UTF8'] ) : null;
158
-
159
  do_action('wpleads_after_conversion_lead_insert',$data['lead_id']);
160
-
161
  }
162
-
163
- setcookie('wp_lead_id' , $data['lead_id'], time() + (20 * 365 * 24 * 60 * 60),'/');
164
-
165
- do_action('inbound_store_lead_post', $data );
166
- do_action('wp_cta_store_lead_post', $data );
167
- do_action('wpl_store_lead_post', $data );
168
- do_action('lp_store_lead_post', $data );
169
-
170
- echo $data['lead_id'];
171
- die();
 
 
 
 
 
 
 
 
 
172
  }
173
- else
174
- {
175
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
176
  }
177
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
178
  }
1
  <?php
2
  /**
3
  * Inbound Lead Storage
4
+ *
5
  * - Handles lead creation and storage
6
  */
7
 
10
  add_action('wp_ajax_inbound_store_lead', 'inbound_store_lead');
11
  add_action('wp_ajax_nopriv_inbound_store_lead', 'inbound_store_lead');
12
 
13
+ function inbound_store_lead()
14
  {
15
  global $user_ID, $wpdb;
16
+ // header('HTTP/1.0 404 Not found'); exit; // simulate ajax fail
 
 
 
 
17
 
18
+ // Grab form values
19
  $time = current_time( 'timestamp', 0 ); // Current wordpress time from settings
20
+ $data['user_ID'] = $user_ID;
21
+ $data['wordpress_date_time'] = date("Y-m-d G:i:s T", $time);
 
 
22
  $data['email'] = $_POST['emailTo'];
23
+ $data['element_type'] = (isset($_POST['element_type'])) ? $_POST['element_type'] : false;
24
+ $data['wp_lead_uid'] = (isset($_POST['wp_lead_uid'])) ? $_POST['wp_lead_uid'] : false;
25
+ $data['raw_post_values_json'] = (isset($_POST['raw_post_values_json'])) ? $_POST['raw_post_values_json'] : false;
26
+ $data['first_name'] = (isset($_POST['first_name'])) ? $_POST['first_name'] : false;
27
+ $data['last_name'] = (isset($_POST['last_name'])) ? $_POST['last_name'] : false;
28
+ $data['company_name'] = (isset($_POST['company_name'] )) ? $_POST['company_name'] : false;
29
+ $data['phone'] = (isset($_POST['phone'])) ? $_POST['phone'] : false;
30
+ $data['address'] = (isset($_POST['address'])) ? $_POST['address'] : false;
31
+ $data['ip_address'] = (isset($_SERVER['REMOTE_ADDR'])) ? $_SERVER['REMOTE_ADDR'] : false;
32
+ $data['wp_lead_uid'] = (isset($_POST['wp_lead_uid'])) ? $_POST['wp_lead_uid'] : false;
33
+ $data['lp_id'] = (isset($_POST['lp_id'])) ? $_POST['lp_id'] : '0';
34
+ $data['post_type'] = (isset($_POST['post_type'])) ? $_POST['post_type'] : 'na';
35
+ $data['lp_variation'] = (isset($_POST['lp_variation'])) ? $_POST['lp_variation'] : 'default';
36
+ $data['page_views'] = (isset($_POST['page_views'])) ? $_POST['page_views'] : false;
37
+ $data['page_view_count'] = (isset($_POST['page_view_count'] )) ? $_POST['page_view_count'] : false;
38
 
39
  do_action('inbound_store_lead_pre' , $data); // Global lead storage action hook
40
+
 
41
  // check for set email
42
+ if ( ( isset( $_POST['emailTo']) && !empty( $_POST['emailTo']) && strstr($_POST['emailTo'],'@') )) {
 
43
  $query = $wpdb->prepare(
44
  'SELECT ID FROM ' . $wpdb->posts . '
45
  WHERE post_title = %s
49
  $wpdb->query( $query );
50
 
51
  // Add lookup fallbacks
 
52
  if ( $wpdb->num_rows ) {
53
  /* Update Existing Lead */
54
  $data['lead_id'] = $wpdb->get_var( $query );
55
+ $meta = get_post_meta( $data['lead_id'], 'times', TRUE ); // replace times
56
  $meta++;
 
 
 
 
 
 
 
 
 
 
 
57
  update_post_meta( $data['lead_id'], 'times', $meta ); // replace times
58
+
 
59
  if (!empty($data['user_ID']))
60
+ update_post_meta( $data['lead_id'], 'wpleads_wordpress_user_id', $data['user_ID'] );
61
  if (!empty($data['first_name']))
62
  update_post_meta( $data['lead_id'], 'wpleads_first_name', $data['first_name'] );
63
  if (!empty($data['last_name']))
70
  update_post_meta( $data['lead_id'], 'wpleads_address_line_1', $data['address'] );
71
  if (!empty($data['wp_lead_uid']))
72
  update_post_meta( $data['lead_id'], 'wp_leads_uid', $data['wp_lead_uid'] );
73
+
 
 
74
  update_post_meta( $data['lead_id'], 'wpleads_landing_page_'.$data['lp_id'], 1 );
 
75
  do_action('wpleads_after_conversion_lead_update',$data['lead_id']);
76
+
77
+ } else {
78
  /* Create New Lead */
79
  $post = array(
80
+ 'post_title' => $data['email'],
81
  //'post_content' => $json,
82
  'post_status' => 'publish',
83
  'post_type' => 'wp-lead',
84
  'post_author' => 1
85
  );
 
 
 
 
 
 
 
 
 
 
 
 
86
 
87
+ //$post = add_filter('lp_leads_post_vars',$post);
88
  $data['lead_id'] = wp_insert_post($post);
89
  update_post_meta( $data['lead_id'], 'times', 1 );
90
  update_post_meta( $data['lead_id'], 'wpleads_wordpress_user_id', $user_ID );
91
  update_post_meta( $data['lead_id'], 'wpleads_email_address', $data['email'] );
92
+
93
  if (!empty($data['first_name']))
94
  update_post_meta( $data['lead_id'], 'wpleads_first_name', $data['first_name'] );
95
  if (!empty($data['last_name']))
100
  update_post_meta( $data['lead_id'], 'wpleads_company_name', $data['company_name'] );
101
  if (!empty($data['address']))
102
  update_post_meta( $data['lead_id'], 'wpleads_address_line_1', $data['address'] );
103
+
 
104
  update_post_meta( $data['lead_id'], 'wp_leads_uid', $data['wp_lead_uid'] );
105
+ update_post_meta( $data['lead_id'], 'page_views', $data['page_views'] ); /* Store Page Views Object */
106
+ update_post_meta( $data['lead_id'], 'wpl-lead-page-view-count', $data['page_view_count']);
 
 
 
107
  update_post_meta( $data['lead_id'], 'wpleads_landing_page_'.$data['lp_id'], 1 );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108
  do_action('wpleads_after_conversion_lead_insert',$data['lead_id']);
109
+
110
  }
111
+
112
+ /*
113
+ * Run for all leads
114
+ */
115
+
116
+ /* Store IP addresss & Store GEO Data */
117
+ if ($data['ip_address']){
118
+ update_post_meta( $data['lead_id'], 'wpleads_ip_address', $data['ip_address'] );
119
+ $geo_array = unserialize(lp_remote_connect('http://www.geoplugin.net/php.gp?ip='.$data['ip_address']));
120
+ (isset($geo_array['geoplugin_areaCode'])) ? update_post_meta( $data['lead_id'], 'wpleads_areaCode', $geo_array['geoplugin_areaCode'] ) : null;
121
+ (isset($geo_array['geoplugin_city'])) ? update_post_meta( $data['lead_id'], 'wpleads_city', $geo_array['geoplugin_city'] ) : null;
122
+ (isset($geo_array['geoplugin_regionName'])) ? update_post_meta( $data['lead_id'], 'wpleads_region_name', $geo_array['geoplugin_regionName'] ) : null;
123
+ (isset($geo_array['geoplugin_regionCode'])) ? update_post_meta( $data['lead_id'], 'wpleads_region_code', $geo_array['geoplugin_regionCode'] ) : null;
124
+ (isset($geo_array['geoplugin_countryName'])) ? update_post_meta( $data['lead_id'], 'wpleads_country_name', $geo_array['geoplugin_countryName'] ) : null;
125
+ (isset($geo_array['geoplugin_countryCode'])) ? update_post_meta( $data['lead_id'], 'wpleads_country_code', $geo_array['geoplugin_countryCode'] ) : null;
126
+ (isset($geo_array['geoplugin_latitude'])) ? update_post_meta( $data['lead_id'], 'wpleads_latitude', $geo_array['geoplugin_latitude'] ) : null;
127
+ (isset($geo_array['geoplugin_longitude'])) ? update_post_meta( $data['lead_id'], 'wpleads_longitude', $geo_array['geoplugin_longitude'] ) : null;
128
+ (isset($geo_array['geoplugin_currencyCode'])) ? update_post_meta( $data['lead_id'], 'wpleads_currency_code', $geo_array['geoplugin_currencyCode'] ) : null;
129
+ (isset($geo_array['geoplugin_currencySymbol_UTF8'])) ? update_post_meta( $data['lead_id'], 'wpleads_currency_symbol', $geo_array['geoplugin_currencySymbol_UTF8'] ) : null;
130
  }
131
+
132
+ /* Store Conversion Data */
133
+ $conversion_data = get_post_meta( $data['lead_id'], 'wpleads_conversion_data', TRUE );
134
+ $conversion_data = json_decode($conversion_data,true);
135
+ $variation = ($data['lp_variation'] != 'default') ? $data['lp_variation'] : '0';
136
+ if (is_array($conversion_data)){
137
+ $c_count = count($conversion_data) + 1;
138
+ $conversion_data[$c_count]['id'] = $data['lp_id'];
139
+ $conversion_data[$c_count]['variation'] = $variation;
140
+ $conversion_data[$c_count]['datetime'] = $data['wordpress_date_time'];
141
+ } else {
142
+ $c_count = 1;
143
+ $conversion_data[$c_count]['id'] = $data['lp_id'];
144
+ $conversion_data[$c_count]['variation'] = $variation;
145
+ $conversion_data[$c_count]['datetime'] = $data['wordpress_date_time'];
146
+ $conversion_data[$c_count]['first_time'] = 1;
147
+ }
148
+ $data['conversion_data'] = json_encode($conversion_data);
149
+ update_post_meta($data['lead_id'],'wpl-lead-conversion-count', $c_count); // Store conversions count
150
+ update_post_meta($data['lead_id'], 'wpleads_conversion_data', $data['conversion_data']); // Store conversion object
151
+
152
+ /* Store page views for page tracking off */
153
+ $page_tracking_status = get_option('wpl-main-page-view-tracking', 1);
154
+ if($data['page_views'] && $page_tracking_status == 0){
155
+
156
+ $page_view_data = get_post_meta( $lead_id, 'page_views', TRUE );
157
+ $page_view_data = json_decode($page_view_data,true);
158
+
159
+ // If page_view meta exists do this
160
+ if (is_array($page_view_data)) {
161
+ $new_page_views = inbound_json_array_merge( $page_view_data, $data['page_views']);
162
+ $page_views = json_encode($new_page_views);
163
+
164
+ } else {
165
+ // Create page_view meta if it doesn't exist
166
+ $page_views = $data['page_views'];
167
+ $page_views = json_encode($page_views);
168
+ }
169
+ // View count
170
+ $view_count = get_post_meta( $data['lead_id'], 'wpl-lead-page-view-count', TRUE );
171
+ if ($view_count){
172
+ $page_view_count = $data['page_view_count'] + $view_count;
173
+ } else {
174
+ $page_view_count = $data['page_view_count'];
175
+ }
176
+ // update meta
177
+ if ($data['page_view_count']){
178
+ update_post_meta($data['lead_id'],'wpl-lead-page-view-count', $page_view_count);
179
+ }
180
+ update_post_meta($data['lead_id'], 'page_views', $page_views );
181
+ }
182
+
183
+
184
+ /* Raw Form Values Store */
185
+ if ($data['raw_post_values_json']) {
186
+ $raw_post_data = get_post_meta($data['lead_id'],'wpl-lead-raw-post-data', true);
187
+ $a1 = json_decode( $raw_post_data, true );
188
+ $a2 = json_decode( stripslashes($data['raw_post_values_json']), true );
189
+ $exclude_array = array('card_number','card_cvc','card_exp_month','card_exp_year'); // add filter
190
+ $lead_mapping_fields = get_transient( 'wp-lead-fields' );
191
+
192
+ foreach ($a2 as $key=>$value){
193
+ if (array_key_exists( $key , $exclude_array )) {
194
+ unset($a2[$key]);
195
+ continue;
196
+ }
197
+ if (array_key_exists($key, $lead_mapping_fields)) {
198
+ update_post_meta( $data['lead_id'], $key, $value );
199
+ }
200
+ if (stristr($key,'company')) {
201
+ update_post_meta( $data['lead_id'], 'wpleads_company_name', $value );
202
+ } else if (stristr($key,'website')) {
203
+ $websites = get_post_meta( $data['lead_id'], 'wpleads_websites', $value );
204
+ if(is_array($websites)) {
205
+ $array_websites = explode(';',$websites);
206
+ }
207
+ $array_websites[] = $value;
208
+ $websites = implode(';',$array_websites);
209
+ update_post_meta( $data['lead_id'], 'wpleads_websites', $websites );
210
+ }
211
+ }
212
+ // Merge form fields if exist
213
+ if (is_array($a1)) {
214
+ $new_raw_post_data = array_merge_recursive( $a1, $a2 );
215
+ } else {
216
+ $new_raw_post_data = $a2;
217
+ }
218
+ $new_raw_post_data = json_encode( $new_raw_post_data );
219
+ update_post_meta( $data['lead_id'],'wpl-lead-raw-post-data', $new_raw_post_data );
220
+ }
221
+
222
+ setcookie('wp_lead_id' , $data['lead_id'], time() + (20 * 365 * 24 * 60 * 60),'/');
223
+
224
+ do_action('inbound_store_lead_post', $data );
225
+ do_action('wp_cta_store_lead_post', $data );
226
+ do_action('wpl_store_lead_post', $data );
227
+ do_action('lp_store_lead_post', $data );
228
+
229
+ echo $data['lead_id'];
230
+ die();
231
  }
232
  }
233
+ }
234
+ if (!function_exists('inbound_json_array_merge')) {
235
+ function inbound_json_array_merge( $arr1, $arr2 ) {
236
+ $keys = array_keys( $arr2 );
237
+ foreach( $keys as $key ) {
238
+ if( isset( $arr1[$key] )
239
+ && is_array( $arr1[$key] )
240
+ && is_array( $arr2[$key] )
241
+ ) {
242
+ $arr1[$key] = my_merge( $arr1[$key], $arr2[$key] );
243
+ } else {
244
+ $arr1[$key] = $arr2[$key];
245
+ }
246
+ }
247
+ return $arr1;
248
+ }
249
  }
templates/countdown-lander/config.php CHANGED
@@ -25,6 +25,27 @@ array(
25
  // Define Meta Options for template
26
  $lp_data[$key]['settings'] =
27
  array(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  array(
29
  'label' => 'Countdown Date', // Name of field
30
  'description' => "What date are we counting down to?", // what field does
25
  // Define Meta Options for template
26
  $lp_data[$key]['settings'] =
27
  array(
28
+ array(
29
+ 'label' => "Default Content",
30
+ 'description' => "This is the default content from template.",
31
+ 'id' => "default-content",
32
+ 'type' => "default-content",
33
+ 'default' => '<p>This is the first paragraph of your landing page. You want to grab the visitors attention and describe a commonly felt problem that they might be experiencing. Try and relate to your target audience and draw them in.</p>
34
+
35
+ <strong>In this guide you will learn:</strong>
36
+
37
+ [list icon="ok-sign" font_size="16" icon_color="#00a319" text_color="" bottom_margin="10"]
38
+ <ul>
39
+ <li>This list was created with the list icon shortcode.</li>
40
+ <li>Click on the power icon in your editor to customize your own</li>
41
+ <li>Explain why users will want to fill out the form</li>
42
+ <li>Keep it short and sweet.</li>
43
+ <li>This list should be easily scannable</li>
44
+ </ul>
45
+ [/list]
46
+
47
+ <p>This is the final sentence or paragraph reassuring the visitor of the benefits of filling out the form and how their data will be safe.</p>'
48
+ ),
49
  array(
50
  'label' => 'Countdown Date', // Name of field
51
  'description' => "What date are we counting down to?", // what field does
templates/default/config.php CHANGED
@@ -1 +1 @@
1
- <?php
2
  * Default theme single.php template
3
  *
4
  * To customize your default landing page, create a single-landing-page.php and customize
5
  * http://docs.inboundnow.com/landing-pages/dev/creating-templates/default-wp-themes
6
  *
7
  * DO NOT USE THE DEFAULT TEMPLATE FOR INNOVATING NEW THEMES! Instead use the demo template or any other the others
8
  */
9
  array(
10
  'label' => 'Conversion/Form Placement', // Label of field
11
  'description' => "Where should the conversion area show on the page? When setting to 'Use Widget' make sure that the 'Conversion Area Widget' is added to the 'Landing Page Sidebar' for the conversion area to display properly.", // field description
12
  'id' => 'conversion-area-placement', // metakey.
13
  'type' => 'dropdown', // text metafield type
14
  'default' => 'widget', // default content
15
  'options' => array('widget'=>'Use Sidebar Widget (default)','right'=>'Float Form Area Right', 'left'=>'Float Form Area Left','bottom'=>'Insert Below Content','top'=>'Insert Above Content'), // options for radio
16
  'context' => 'normal' // Context in screen for organizing options
17
  ),
18
  array(
19
  'label' => "Navigation Settings",
20
  'description' => "Toggle the regular navigation on or off with this setting. It's highly recommended that you turn off your page navigation to increase conversion rates on your landing page",
21
  'id' => 'lp_hide_nav',
22
  'type' => 'dropdown',
23
  'default' => 'off',
24
  'options' => array('off'=>'Hide Navigation (recommended)','on'=>'Show Navigation'),
25
  'context' => 'normal'
26
  )
 
27
  * Default theme single.php template
28
  *
29
  * To customize your default landing page, create a single-landing-page.php and customize
30
  * http://docs.inboundnow.com/landing-pages/dev/creating-templates/default-wp-themes
31
  *
32
  * DO NOT USE THE DEFAULT TEMPLATE FOR INNOVATING NEW THEMES! Instead use the demo template or any other the others
33
  */
34
  array(
35
  'label' => 'Default Instructions', // Name of field
36
  'description' => "<strong>Default Template Instructions</strong><br> This landing page template uses the single.php file of your current active theme. You might need to customize some components to get it looking the way you want.", // what field does
37
  'id' => 'description', // metakey. $key Prefix is appended from parent in array loop
38
  'type' => 'description-block', // metafield type
39
  'default' => '', // default content
40
  'context' => 'normal' // Context in screen (advanced layouts in future)
41
  ),
42
  array(
43
  'label' => "Default Content",
44
  'description' => "This is the default content from template.",
45
  'id' => "default-content",
46
  'type' => "default-content",
47
  'default' => '<p>This is the first paragraph of your landing page. You want to grab the visitors attention and describe a commonly felt problem that they might be experiencing. Try and relate to your target audience and draw them in.</p>
48
  <li>This list was created with the list icon shortcode.</li>
49
  <li>Click on the power icon in your editor to customize your own</li>
50
  <li>Explain why users will want to fill out the form</li>
51
  <li>Keep it short and sweet.</li>
52
  <li>This list should be easily scannable</li>
53
  ),
54
  array(
55
  'label' => 'Conversion/Form Placement', // Label of field
56
  'description' => "Where should the conversion area show on the page? When setting to 'Use Widget' make sure that the 'Conversion Area Widget' is added to the 'Landing Page Sidebar' for the conversion area to display properly.", // field description
57
  'id' => 'conversion-area-placement', // metakey.
58
  'type' => 'dropdown', // text metafield type
59
  'default' => 'widget', // default content
60
  'options' => array('widget'=>'Use Sidebar Widget (default)','right'=>'Float Form Area Right', 'left'=>'Float Form Area Left','bottom'=>'Insert Below Content','top'=>'Insert Above Content'), // options for radio
61
  'context' => 'normal' // Context in screen for organizing options
62
  ),
63
  array(
64
  'label' => "Navigation Settings",
65
  'description' => "Toggle the regular navigation on or off with this setting. It's highly recommended that you turn off your page navigation to increase conversion rates on your landing page",
66
  'id' => 'lp_hide_nav',
67
  'type' => 'dropdown',
68
  'default' => 'off',
69
  'options' => array('off'=>'Hide Navigation (recommended)','on'=>'Show Navigation'),
70
  'context' => 'normal'
71
  )
 
1
  * Default theme single.php template
2
  *
3
  * To customize your default landing page, create a single-landing-page.php and customize
4
  * http://docs.inboundnow.com/landing-pages/dev/creating-templates/default-wp-themes
5
  *
6
  * DO NOT USE THE DEFAULT TEMPLATE FOR INNOVATING NEW THEMES! Instead use the demo template or any other the others
7
  */
8
  array(
9
  'label' => 'Conversion/Form Placement', // Label of field
10
  'description' => "Where should the conversion area show on the page? When setting to 'Use Widget' make sure that the 'Conversion Area Widget' is added to the 'Landing Page Sidebar' for the conversion area to display properly.", // field description
11
  'id' => 'conversion-area-placement', // metakey.
12
  'type' => 'dropdown', // text metafield type
13
  'default' => 'widget', // default content
14
  'options' => array('widget'=>'Use Sidebar Widget (default)','right'=>'Float Form Area Right', 'left'=>'Float Form Area Left','bottom'=>'Insert Below Content','top'=>'Insert Above Content'), // options for radio
15
  'context' => 'normal' // Context in screen for organizing options
16
  ),
17
  array(
18
  'label' => "Navigation Settings",
19
  'description' => "Toggle the regular navigation on or off with this setting. It's highly recommended that you turn off your page navigation to increase conversion rates on your landing page",
20
  'id' => 'lp_hide_nav',
21
  'type' => 'dropdown',
22
  'default' => 'off',
23
  'options' => array('off'=>'Hide Navigation (recommended)','on'=>'Show Navigation'),
24
  'context' => 'normal'
25
  )
26
+ <?php
27
  * Default theme single.php template
28
  *
29
  * To customize your default landing page, create a single-landing-page.php and customize
30
  * http://docs.inboundnow.com/landing-pages/dev/creating-templates/default-wp-themes
31
  *
32
  * DO NOT USE THE DEFAULT TEMPLATE FOR INNOVATING NEW THEMES! Instead use the demo template or any other the others
33
  */
34
  array(
35
  'label' => 'Default Instructions', // Name of field
36
  'description' => "<strong>Default Template Instructions</strong><br> This landing page template uses the single.php file of your current active theme. You might need to customize some components to get it looking the way you want.", // what field does
37
  'id' => 'description', // metakey. $key Prefix is appended from parent in array loop
38
  'type' => 'description-block', // metafield type
39
  'default' => '', // default content
40
  'context' => 'normal' // Context in screen (advanced layouts in future)
41
  ),
42
  array(
43
  'label' => "Default Content",
44
  'description' => "This is the default content from template.",
45
  'id' => "default-content",
46
  'type' => "default-content",
47
  'default' => '<p>This is the first paragraph of your landing page. You want to grab the visitors attention and describe a commonly felt problem that they might be experiencing. Try and relate to your target audience and draw them in.</p>
48
  <li>This list was created with the list icon shortcode.</li>
49
  <li>Click on the power icon in your editor to customize your own</li>
50
  <li>Explain why users will want to fill out the form</li>
51
  <li>Keep it short and sweet.</li>
52
  <li>This list should be easily scannable</li>
53
  ),
54
  array(
55
  'label' => 'Conversion/Form Placement', // Label of field
56
  'description' => "Where should the conversion area show on the page? When setting to 'Use Widget' make sure that the 'Conversion Area Widget' is added to the 'Landing Page Sidebar' for the conversion area to display properly.", // field description
57
  'id' => 'conversion-area-placement', // metakey.
58
  'type' => 'dropdown', // text metafield type
59
  'default' => 'widget', // default content
60
  'options' => array('widget'=>'Use Sidebar Widget (default)','right'=>'Float Form Area Right', 'left'=>'Float Form Area Left','bottom'=>'Insert Below Content','top'=>'Insert Above Content'), // options for radio
61
  'context' => 'normal' // Context in screen for organizing options
62
  ),
63
  array(
64
  'label' => "Navigation Settings",
65
  'description' => "Toggle the regular navigation on or off with this setting. It's highly recommended that you turn off your page navigation to increase conversion rates on your landing page",
66
  'id' => 'lp_hide_nav',
67
  'type' => 'dropdown',
68
  'default' => 'off',
69
  'options' => array('off'=>'Hide Navigation (recommended)','on'=>'Show Navigation'),
70
  'context' => 'normal'
71
  )
templates/dropcap/assets/images/beach.jpg ADDED
Binary file
templates/dropcap/config.php CHANGED
@@ -24,6 +24,27 @@ array(
24
  // These values are returned in the template's index.php file with lp_get_value($post, $key, 'field-id') function
25
  $lp_data[$key]['settings'] =
26
  array(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  array(
28
  'label' => 'Text color', // Label of field
29
  'description' => "Use this setting to change the Text Color", // field description
@@ -63,7 +84,7 @@ array(
63
  'description' => "Enter an URL or upload an image for the banner.",
64
  'id' => 'background-image',
65
  'type' => 'media',
66
- 'default' => 'on',
67
  'context' => 'normal'
68
  ),
69
  array(
24
  // These values are returned in the template's index.php file with lp_get_value($post, $key, 'field-id') function
25
  $lp_data[$key]['settings'] =
26
  array(
27
+ array(
28
+ 'label' => "Default Content",
29
+ 'description' => "This is the default content from template.",
30
+ 'id' => "default-content",
31
+ 'type' => "default-content",
32
+ 'default' => '<p>This is the first paragraph of your landing page. You want to grab the visitors attention and describe a commonly felt problem that they might be experiencing. Try and relate to your target audience and draw them in.</p>
33
+
34
+ <p><strong>In this guide you will learn:</strong></p>
35
+
36
+ [list icon="ok-sign" font_size="16" icon_color="#00a319" text_color="" bottom_margin="10"]
37
+ <ul>
38
+ <li>This list was created with the list icon shortcode.</li>
39
+ <li>Click on the power icon in your editor to customize your own</li>
40
+ <li>Explain why users will want to fill out the form</li>
41
+ <li>Keep it short and sweet.</li>
42
+ <li>This list should be easily scannable</li>
43
+ </ul>
44
+ [/list]
45
+
46
+ <p>This is the final sentence or paragraph reassuring the visitor of the benefits of filling out the form and how their data will be safe.</p>'
47
+ ),
48
  array(
49
  'label' => 'Text color', // Label of field
50
  'description' => "Use this setting to change the Text Color", // field description
84
  'description' => "Enter an URL or upload an image for the banner.",
85
  'id' => 'background-image',
86
  'type' => 'media',
87
+ 'default' => '/wp-content/plugins/landing-pages/templates/dropcap/assets/images/beach-1.jpg',
88
  'context' => 'normal'
89
  ),
90
  array(
templates/dropcap/index.php CHANGED
@@ -5,7 +5,7 @@
5
  /*****************************************/
6
 
7
  /* Declare Template Key */
8
- $key = lp_get_parent_directory(dirname(__FILE__));
9
  $path = LANDINGPAGES_URLPATH.'templates/'.$key.'/';
10
  $url = plugins_url();
11
  /* Define Landing Pages's custom pre-load hook for 3rd party plugin integration */
@@ -13,7 +13,7 @@ do_action('lp_init');
13
 
14
  /* Load $post data */
15
  if (have_posts()) : while (have_posts()) : the_post();
16
-
17
  /* Pre-load meta data into variables */
18
  // Text color: Use this setting to change the Text Color
19
  $text_color = lp_get_value($post, $key, 'text-color');
@@ -30,34 +30,25 @@ $background_color = lp_get_value($post, $key, 'background-color');
30
 
31
 
32
  if ( $background_style === "fullscreen" ) {
33
- $bg_style = 'background: url('.$background_image.') no-repeat center center fixed;
34
  -webkit-background-size: cover;
35
  -moz-background-size: cover;
36
  -o-background-size: cover;
37
  background-size: cover;
38
  filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'.$background_image.'", sizingMethod="scale");
39
  -ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'.$background_image.'", sizingMethod="scale")";';
40
- };
41
-
42
- if ( $background_style === "color" ) {
43
  $bg_style = 'background: #'.$background_color.';';
44
- };
45
 
46
- if ( $background_style === "tile" ) {
47
  $bg_style = 'background: url('.$background_image.') repeat; ';
48
- };
49
-
50
- if ( $background_style === "repeat-x" ) {
51
  $bg_style = 'background: url('.$background_image.') repeat-x; ';
52
- };
53
-
54
- if ( $background_style === "repeat-y" ) {
55
  $bg_style = 'background: url('.$background_image.') repeat-y; ';
56
- };
57
-
58
- if ( $background_style === "repeat-y" ) {
59
  $bg_style = 'background: url('.$background_image.') repeat-y; ';
60
- };
61
 
62
  $content = lp_content_area(null,null,true);
63
 
@@ -74,7 +65,7 @@ $content = lp_content_area(null,null,true);
74
 
75
 
76
  <?php wp_head(); // Load Regular WP Head ?>
77
-
78
 
79
  <style type="text/css">
80
  @font-face {font-family: Chunk;
@@ -86,12 +77,29 @@ $content = lp_content_area(null,null,true);
86
 
87
  body { <?php echo $bg_style; ?> }
88
  <?php if ($text_color != "") { ?>
89
- #textspot p { color: #<?php echo $text_color;?>;}
90
  <?php } ?>
91
  <?php if ($content_background != "") { ?>
92
  #content { background: url('/wp-content/plugins/landing-pages/images/image.php?hex=<?php echo $content_background;?>'); border-radius: 8px; }
93
  <?php } ?>
94
- <?php if ($form_text_color != "") { echo "#lp_container {color: #$form_text_color;}"; } ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95
  </style>
96
  <?php do_action('lp_head'); // Load Custom Landing Page Specific Header Items ?>
97
  </head>
@@ -102,21 +110,18 @@ body { <?php echo $bg_style; ?> }
102
  <div id="wrapper">
103
  <div id="content">
104
  <div id="textspot">
105
- <p><?php lp_main_headline(); ?>
106
- <?php $rebuild_form_options = get_option( 'landing-page-auto-format-forms' ); // conditional to check for options
107
- echo $rebuild_form_options; ?>
108
- </p>
109
  </div>
110
  <div id="main-content-area">
111
- <?php echo $content; ?>
112
  <?php lp_conversion_area(); /* Print out form content */ ?>
113
  </div>
114
  </div>
115
- </div>
116
  <?php break; endwhile; endif; // end wordpress loop
117
 
118
  do_action('lp_footer'); // Load Landing Page Footer Hook
119
  wp_footer();
120
- ?>
121
  <link href="<?php echo $path; ?>assets/css/form.css" rel="stylesheet">
122
  </body></html>
5
  /*****************************************/
6
 
7
  /* Declare Template Key */
8
+ $key = lp_get_parent_directory(dirname(__FILE__));
9
  $path = LANDINGPAGES_URLPATH.'templates/'.$key.'/';
10
  $url = plugins_url();
11
  /* Define Landing Pages's custom pre-load hook for 3rd party plugin integration */
13
 
14
  /* Load $post data */
15
  if (have_posts()) : while (have_posts()) : the_post();
16
+
17
  /* Pre-load meta data into variables */
18
  // Text color: Use this setting to change the Text Color
19
  $text_color = lp_get_value($post, $key, 'text-color');
30
 
31
 
32
  if ( $background_style === "fullscreen" ) {
33
+ $bg_style = 'background: url('.$background_image.') no-repeat center center fixed;
34
  -webkit-background-size: cover;
35
  -moz-background-size: cover;
36
  -o-background-size: cover;
37
  background-size: cover;
38
  filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'.$background_image.'", sizingMethod="scale");
39
  -ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'.$background_image.'", sizingMethod="scale")";';
40
+ } else if( $background_style === "color" ) {
 
 
41
  $bg_style = 'background: #'.$background_color.';';
 
42
 
43
+ } else if( $background_style === "tile" ) {
44
  $bg_style = 'background: url('.$background_image.') repeat; ';
45
+ } else if( $background_style === "repeat-x" ) {
 
 
46
  $bg_style = 'background: url('.$background_image.') repeat-x; ';
47
+ } else if( $background_style === "repeat-y" ) {
 
 
48
  $bg_style = 'background: url('.$background_image.') repeat-y; ';
49
+ } else if( $background_style === "repeat-y" ) {
 
 
50
  $bg_style = 'background: url('.$background_image.') repeat-y; ';
51
+ }
52
 
53
  $content = lp_content_area(null,null,true);
54
 
65
 
66
 
67
  <?php wp_head(); // Load Regular WP Head ?>
68
+
69
 
70
  <style type="text/css">
71
  @font-face {font-family: Chunk;
77
 
78
  body { <?php echo $bg_style; ?> }
79
  <?php if ($text_color != "") { ?>
80
+ #textspot p { color: #<?php echo $text_color;?>;}
81
  <?php } ?>
82
  <?php if ($content_background != "") { ?>
83
  #content { background: url('/wp-content/plugins/landing-pages/images/image.php?hex=<?php echo $content_background;?>'); border-radius: 8px; }
84
  <?php } ?>
85
+ <?php if ($form_text_color != "") { echo "#lp_container {color: #$form_text_color;}"; } ?>
86
+ p {
87
+ margin-bottom: 20px;
88
+ letter-spacing: 1px;
89
+ }
90
+ #wrapper {
91
+ padding-top: 110px;
92
+ }
93
+ body { font-family: arial;}
94
+ #textspot p {
95
+ font-family: "Chunk", Sans-Serif;
96
+ }
97
+ ul { margin-bottom: 20px;}
98
+ #main-content-area {
99
+ padding-left: 0px;
100
+ width: 89%;
101
+ margin: auto;
102
+ }
103
  </style>
104
  <?php do_action('lp_head'); // Load Custom Landing Page Specific Header Items ?>
105
  </head>
110
  <div id="wrapper">
111
  <div id="content">
112
  <div id="textspot">
113
+ <p><?php lp_main_headline(); ?></p>
 
 
 
114
  </div>
115
  <div id="main-content-area">
116
+ <?php the_content(); ?>
117
  <?php lp_conversion_area(); /* Print out form content */ ?>
118
  </div>
119
  </div>
120
+ </div>
121
  <?php break; endwhile; endif; // end wordpress loop
122
 
123
  do_action('lp_footer'); // Load Landing Page Footer Hook
124
  wp_footer();
125
+ ?>
126
  <link href="<?php echo $path; ?>assets/css/form.css" rel="stylesheet">
127
  </body></html>
templates/index.php ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <?php
2
+ # Silence is golden.
templates/rsvp-envelope/assets/css/style.css CHANGED
@@ -1,133 +1,133 @@
1
- @charset "UTF-8";
2
- /* CSS Document */
3
-
4
- body, div, h1,h2, form, fieldset, input, textarea, footer,p {
5
- margin: 0; padding: 0; border: 0; outline: none;
6
- }
7
- p {
8
- font-size: 17px;
9
- line-height: 23px;
10
- margin-top: 20px;
11
- margin-bottom: 20px;}
12
- #wrap {width:530px; margin:20px auto 0; }
13
- h1 {margin-bottom:20px; margin-top: 20px; text-align:center;font-size:48px;
14
- text-shadow: 0 1px 0 #CCC,
15
- 0 2px 0 #C9C9C9,
16
- 0 3px 0 #BBB,
17
- 0 4px 0 #B9B9B9,
18
- 0 5px 0 #AAA,
19
- 0 6px 1px rgba(0, 0, 0, .1),
20
- 0 0 5px rgba(0, 0, 0, .1),
21
- 0 1px 3px rgba(0, 0, 0, .3),
22
- 0 3px 5px rgba(0, 0, 0, .2),
23
- 0 5px 10px rgba(0, 0, 0, .25),
24
- 0 10px 10px rgba(0, 0, 0, .2),
25
- 0 20px 20px rgba(0, 0, 0, .15);
26
- max-width: 980px;
27
- }
28
-
29
-
30
- #form_wrap { overflow:hidden; height:446px; position:relative; top:0px;
31
- -webkit-transition: all 1s ease-in-out .3s;
32
- -moz-transition: all 1s ease-in-out .3s;
33
- -o-transition: all 1s ease-in-out .3s;
34
- transition: all 1s ease-in-out .3s;}
35
-
36
-
37
-
38
- #form_wrap:before {content:"";
39
- position:absolute;
40
- bottom:128px;left:0px;
41
-
42
- width:530px;height: 313px;}
43
-
44
- #form_wrap:after {content:"";position:absolute;
45
- bottom:0px;left:0;
46
-
47
- width:530px;height: 258px; }
48
-
49
- #form_wrap.hide:after, #form_wrap.hide:before {display:none; }
50
- #form_wrap:hover {height:700px;top:-145px;}
51
-
52
-
53
- form {
54
- position:relative;top:145px;overflow:hidden;
55
- height:145px;width:400px;margin:0px auto;padding:20px;
56
- border: 1px solid #fff;
57
- border-radius: 3px;
58
- -moz-border-radius: 3px; -webkit-border-radius: 3px;
59
- box-shadow: 0px 0px 3px #9d9d9d, inset 0px 0px 27px #fff;
60
- -moz-box-shadow: 0px 0px 3px #9d9d9d, inset 0px 0px 14px #fff;
61
- -webkit-box-shadow: 0px 0px 3px #9d9d9d, inset 0px 0px 27px #fff;
62
- -webkit-transition: all 1s ease-in-out .3s;
63
- -moz-transition: all 1s ease-in-out .3s;
64
- -o-transition: all 1s ease-in-out .3s;
65
- transition: all 1s ease-in-out .3s;}
66
-
67
-
68
- #form_wrap:hover form {height:530px;}
69
-
70
- label {
71
- margin: 11px 20px 0 0;
72
- font-size: 16px; color: #b3aba1;
73
- text-transform: uppercase;
74
- text-shadow: 0px 1px 0px #fff;
75
- margin-left: 5%;
76
- width: 25%
77
- }
78
- input[type=text], textarea {
79
- font: 14px normal normal uppercase helvetica, arial, serif;
80
- color: #7c7873;background:none;
81
- width: 380px; height: 36px; padding: 0px 10px; margin: 0 0 10px 0;
82
- border:1px solid #f8f5f1;
83
- -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px;
84
- -moz-box-shadow: inset 0px 0px 1px #726959;
85
- -webkit-box-shadow: inset 0px 0px 1px #b3a895;
86
- box-shadow: inset 0px 0px 1px #b3a895;
87
- display: inline;
88
- width: 62% !important;
89
- line-height: 30px;
90
- }
91
- form div {display: inline;}
92
- .gform_body
93
-
94
- textarea { height: 80px; padding-top:14px;}
95
-
96
- textarea:focus, input[type=text]:focus {background:rgba(255,255,255,.65);}
97
-
98
- #form_wrap input[type=submit] {
99
- position:relative;font-family: 'YanoneKaffeesatzRegular';
100
- font-size:24px; color: #7c7873;text-shadow:0 1px 0 #fff;
101
- width:100%; text-align:center;opacity:0;
102
- background:none;
103
- cursor: pointer;
104
- -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
105
- -webkit-transition: opacity .6s ease-in-out 0s;
106
- -moz-transition: opacity .6s ease-in-out 0s;
107
- -o-transition: opacity .6s ease-in-out 0s;
108
- transition: opacity .6s ease-in-out 0s;
109
- }
110
-
111
- #form_wrap:hover input[type=submit] {z-index:1;opacity:1;
112
- -webkit-transition: opacity .5s ease-in-out 1.3s;
113
- -moz-transition: opacity .5s ease-in-out 1.3s;
114
- -o-transition: opacity .5s ease-in-out 1.3s;
115
- transition: opacity .5s ease-in-out 1.3s;}
116
-
117
- #form_wrap:hover input:hover[type=submit] {color:#435c70;}
118
- #main-content{width: 425px;
119
- float: left;}
120
- #wrap {float: right;}
121
- #body-container {width: 980px;
122
- margin: auto;}
123
- .linkedin {
124
- margin-right: 0px !important;
125
- width: 5px !important;
126
- }
127
- .sharrre .button {
128
- width: 95px;
129
- display: inline-block;
130
- vertical-align: baseline !important;
131
- margin-top: 10px !important;
132
- }
133
  .googleplus {margin-left: -60px;}
1
+ @charset "UTF-8";
2
+ /* CSS Document */
3
+
4
+ body, div, h1,h2, form, fieldset, input, textarea, footer,p {
5
+ margin: 0; padding: 0; border: 0; outline: none;
6
+ }
7
+ p {
8
+ font-size: 17px;
9
+ line-height: 23px;
10
+ margin-top: 20px;
11
+ margin-bottom: 20px;}
12
+ #wrap {width:530px; margin:20px auto 0; }
13
+ h1 {margin-bottom:20px; margin-top: 20px; text-align:center;font-size:48px;
14
+ text-shadow: 0 1px 0 #CCC,
15
+ 0 2px 0 #C9C9C9,
16
+ 0 3px 0 #BBB,
17
+ 0 4px 0 #B9B9B9,
18
+ 0 5px 0 #AAA,
19
+ 0 6px 1px rgba(0, 0, 0, .1),
20
+ 0 0 5px rgba(0, 0, 0, .1),
21
+ 0 1px 3px rgba(0, 0, 0, .3),
22
+ 0 3px 5px rgba(0, 0, 0, .2),
23
+ 0 5px 10px rgba(0, 0, 0, .25),
24
+ 0 10px 10px rgba(0, 0, 0, .2),
25
+ 0 20px 20px rgba(0, 0, 0, .15);
26
+ max-width: 980px;
27
+ }
28
+
29
+
30
+ #form_wrap { overflow:hidden; height:446px; position:relative; top:0px;
31
+ -webkit-transition: all 1s ease-in-out .3s;
32
+ -moz-transition: all 1s ease-in-out .3s;
33
+ -o-transition: all 1s ease-in-out .3s;
34
+ transition: all 1s ease-in-out .3s;}
35
+
36
+
37
+
38
+ #form_wrap:before {content:"";
39
+ position:absolute;
40
+ bottom:128px;left:0px;
41
+
42
+ width:530px;height: 313px;}
43
+
44
+ #form_wrap:after {content:"";position:absolute;
45
+ bottom:0px;left:0;
46
+
47
+ width:530px;height: 258px; }
48
+
49
+ #form_wrap.hide:after, #form_wrap.hide:before {display:none; }
50
+ #form_wrap:hover {height:700px;top:-145px;}
51
+
52
+
53
+ form {
54
+ position:relative;top:145px;overflow:hidden;
55
+ height:145px;width:400px;margin:0px auto;padding:20px;
56
+ border: 1px solid #fff;
57
+ border-radius: 3px;
58
+ -moz-border-radius: 3px; -webkit-border-radius: 3px;
59
+ box-shadow: 0px 0px 3px #9d9d9d, inset 0px 0px 27px #fff;
60
+ -moz-box-shadow: 0px 0px 3px #9d9d9d, inset 0px 0px 14px #fff;
61
+ -webkit-box-shadow: 0px 0px 3px #9d9d9d, inset 0px 0px 27px #fff;
62
+ -webkit-transition: all 1s ease-in-out .3s;
63
+ -moz-transition: all 1s ease-in-out .3s;
64
+ -o-transition: all 1s ease-in-out .3s;
65
+ transition: all 1s ease-in-out .3s;}
66
+
67
+
68
+ #form_wrap:hover form {height:530px;}
69
+
70
+ label {
71
+ margin: 11px 20px 0 0;
72
+ font-size: 16px; color: #b3aba1;
73
+ text-transform: uppercase;
74
+ text-shadow: 0px 1px 0px #fff;
75
+ margin-left: 5%;
76
+ width: 25%
77
+ }
78
+ input[type=text], textarea {
79
+ font: 14px normal normal uppercase helvetica, arial, serif;
80
+ color: #7c7873;background:none;
81
+ width: 380px; height: 36px; padding: 0px 10px; margin: 0 0 10px 0;
82
+ border:1px solid #f8f5f1;
83
+ -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px;
84
+ -moz-box-shadow: inset 0px 0px 1px #726959;
85
+ -webkit-box-shadow: inset 0px 0px 1px #b3a895;
86
+ box-shadow: inset 0px 0px 1px #b3a895;
87
+ display: inline;
88
+ width: 62% !important;
89
+ line-height: 30px;
90
+ }
91
+ form div {display: inline;}
92
+ .gform_body
93
+
94
+ textarea { height: 80px; padding-top:14px;}
95
+
96
+ textarea:focus, input[type=text]:focus {background:rgba(255,255,255,.65);}
97
+
98
+ #form_wrap input[type=submit] {
99
+ position:relative;font-family: 'YanoneKaffeesatzRegular';
100
+ font-size:24px; color: #7c7873;text-shadow:0 1px 0 #fff;
101
+ width:100%; text-align:center;opacity:0;
102
+ background:none;
103
+ cursor: pointer;
104
+ -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px;
105
+ -webkit-transition: opacity .6s ease-in-out 0s;
106
+ -moz-transition: opacity .6s ease-in-out 0s;
107
+ -o-transition: opacity .6s ease-in-out 0s;
108
+ transition: opacity .6s ease-in-out 0s;
109
+ }
110
+
111
+ #form_wrap:hover input[type=submit] {z-index:1;opacity:1;
112
+ -webkit-transition: opacity .5s ease-in-out 1.3s;
113
+ -moz-transition: opacity .5s ease-in-out 1.3s;
114
+ -o-transition: opacity .5s ease-in-out 1.3s;
115
+ transition: opacity .5s ease-in-out 1.3s;}
116
+
117
+ #form_wrap:hover input:hover[type=submit] {color:#435c70;}
118
+ #main-content{width: 425px;
119
+ float: left;}
120
+ #wrap {float: right;}
121
+ #body-container {width: 980px;
122
+ margin: auto;}
123
+ .linkedin {
124
+ margin-right: 0px !important;
125
+ width: 5px !important;
126
+ }
127
+ .sharrre .button {
128
+ width: 95px;
129
+ display: inline-block;
130
+ vertical-align: baseline !important;
131
+ margin-top: 10px !important;
132
+ }
133
  .googleplus {margin-left: -60px;}
templates/rsvp-envelope/assets/fonts/YanoneKaffeesatz-Regular-webfont.svg CHANGED
@@ -1,151 +1,151 @@
1
- <?xml version="1.0" standalone="no"?>
2
- <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
- <svg xmlns="http://www.w3.org/2000/svg">
4
- <metadata>
5
- This is a custom SVG webfont generated by Font Squirrel.
6
- Copyright : Copyright c 2010 Yanone httpyanonedetypedesign All rights reservedThis Font Software is licensed under the SIL Open Font License Version 11This license is available with a FAQ at httpscriptssilorgOFL
7
- Designer : Yanone
8
- Foundry : Yanone
9
- Foundry URL : httpyanonedetypedesign
10
- </metadata>
11
- <defs>
12
- <font id="webfont1BSMunJa" horiz-adv-x="851" >
13
- <font-face units-per-em="2048" ascent="1638" descent="-410" />
14
- <missing-glyph horiz-adv-x="319" />
15
- <glyph unicode=" " horiz-adv-x="319" />
16
- <glyph unicode="&#x09;" horiz-adv-x="319" />
17
- <glyph unicode="&#xa0;" horiz-adv-x="319" />
18
- <glyph unicode="!" horiz-adv-x="397" d="M86 102q0 49 30.5 84t82.5 35q115 0 114 -119q0 -45 -32 -82q-31 -35 -82 -34q-113 -1 -113 116zM92 1397q-4 37 37 43q40 6 190 6l-32 -930q-4 -53 -33 -65q-31 -12 -133 -13z" />
19
- <glyph unicode="&#x22;" horiz-adv-x="538" d="M70 1602q14 8 63 8q63 0 94 -6q0 -76 -16 -240q-14 -152 -27 -164l-92 -6q-42 396 -22 408zM319 1602q14 8 66 8q63 0 94 -6q0 -76 -16 -240q-14 -152 -27 -164l-92 -6q-8 39 -22 215q-15 183 -3 193z" />
20
- <glyph unicode="#" d="M55 389q0 86 6.5 108.5t28.5 22.5h86l10 217h-131q0 86 6.5 108.5t28.5 22.5h105l6 129q2 20 30 27q28 6 117 6l-8 -162h195l6 129q2 20 30 27q28 6 117 6l-8 -162h119q0 -113 -15 -125q-6 -6 -18 -6h-94l-10 -217h137q0 -115 -15 -127q-4 -4 -18 -4h-113l-6 -137 q-4 -23 -31 -29q-18 -4 -116 -4l8 170h-195l-6 -137q-4 -23 -31 -29q-18 -4 -116 -4l8 170h-113zM322 520h194l10 217h-194z" />
21
- <glyph unicode="$" d="M106 76q0 18 13 65q12 43 33 68q76 -59 217 -59q190 0 190 174q0 57 -24 102q-25 47 -89 113l-229 233q-109 115 -108 227q0 109 67 177q66 66 193 84v182q0 41 37 53q43 14 114 14v-247q72 -4 121 -19q57 -18 70 -29q20 -16 20 -24q0 -66 -41 -117q-61 43 -201 43 q-199 0 -198 -115q0 -74 88 -163l248 -248q117 -117 116 -268q0 -281 -258 -328v-178q0 -41 -34 -54q-34 -12 -117 -12v236q-63 2 -127 20q-55 14 -78 35q-23 19 -23 35z" />
22
- <glyph unicode="%" horiz-adv-x="1413" d="M90 1075q0 375 291 375q141 0 206.5 -82t65.5 -291q0 -383 -284 -383q-96 0 -153.5 29t-90.5 111q-35 87 -35 241zM238 47l825 1405q94 -31 94 -72q0 -10 -203 -360l-409 -692l-205 -344q-102 28 -102 63zM250 1071q0 -145 28.5 -196.5t94.5 -51.5q127 0 127 252 q0 143 -29 194.5t-90 51.5q-65 0 -98 -55q-33 -54 -33 -195zM762 362q0 375 291 375q141 0 206.5 -82t65.5 -290q0 -383 -285 -383q-98 0 -155.5 28.5t-89.5 110.5q-33 83 -33 241zM920 354q0 -147 28 -198q27 -49 94 -50q129 0 129 252q0 143 -28.5 194.5t-91.5 51.5 q-65 0 -99 -55q-32 -54 -32 -195z" />
23
- <glyph unicode="&#x26;" horiz-adv-x="1026" d="M53 348q0 121 64 221q61 98 166 164q-160 273 -160 430q0 135 90 209q89 74 252 74q129 0 219 -29q88 -29 88 -67q0 -70 -41 -123q-106 72 -246 71q-90 0 -139 -30q-47 -29 -47 -125q0 -102 121 -316q119 -211 280 -415q16 88 17 184q0 268 -123 420q88 16 235 16 q88 0 158 -6q6 -12 6 -61q0 -37 -18.5 -55.5t-67.5 -18.5h-100q72 -131 72 -316q0 -172 -52 -313q111 -125 170 -149q-2 -45 -41 -90q-37 -43 -67 -43q-33 0 -150 129q-113 -129 -305 -129q-381 -1 -381 368zM225 344q0 -90 47 -149q45 -57 152 -58q133 0 207 99 q-131 158 -275 376q-131 -94 -131 -268z" />
24
- <glyph unicode="'" horiz-adv-x="286" d="M70 1602q14 8 63 8q63 0 94 -6q0 -76 -16 -240q-14 -152 -27 -164l-92 -6q-42 396 -22 408z" />
25
- <glyph unicode="(" horiz-adv-x="595" d="M133 655q0 180 33 365q29 158 76 280q45 117 92 193t84 117q33 35 45 35q41 0 59 -23q16 -18 33 -84q-252 -332 -252 -876q-2 -319 78 -576q82 -258 174 -362q-23 -123 -92 -123q-15 0 -49 37q-29 31 -82 124q-49 86 -92 203q-47 127 -76 301q-31 184 -31 389z" />
26
- <glyph unicode=")" horiz-adv-x="595" d="M43 -276q101 138 178 374q76 236 74 564q0 283 -72 516q-70 227 -180 360q16 66 33 84q18 23 59 23q12 0 45 -33q31 -31 84 -117q47 -78 92 -188q45 -115 76 -283q33 -184 33 -369q0 -197 -31 -374q-29 -166 -76 -297q-43 -120 -92 -209q-51 -92 -84 -131 q-37 -43 -47 -43q-70 0 -92 123z" />
27
- <glyph unicode="*" horiz-adv-x="960" d="M33 1030q-3 71 37 111q39 39 71 24l267 -168q4 -35 -11 -51q-12 -16 -39 -6zM135 614l248 252q35 35 76 -16l-180 -320q-33 -33 -74 -2q-39 29 -70 86zM406 1366q-4 23 16 35q16 10 45 10q53 0 102 -25l-41 -323q-4 -27 -16 -33q-14 -6 -59 2zM508 860q8 14 47 29 l236 -277q28 -34 -19 -67q-45 -33 -102 -43l-160 323q-10 23 -2 35zM573 932q-43 57 5 82l303 164q49 -40 49 -111q0 -47 -31 -57z" />
28
- <glyph unicode="+" d="M70 504q0 89 6 117q6 29 28 28h252v252q0 25 29 31q18 4 117 4v-287h284q0 -80 -4 -117q-4 -29 -28 -28h-252v-252q0 -23 -29 -29q-18 -4 -117 -4v285h-286z" />
29
- <glyph unicode="," horiz-adv-x="372" d="M78 -164q51 84 57 176q-47 29 -47 101q0 47 29 75q31 31 76 31q113 0 112 -123q0 -100 -63 -202q-65 -104 -99 -105q-55 0 -65 47z" />
30
- <glyph unicode="-" horiz-adv-x="567" d="M76 504q0 89 6 117q6 29 27 28h385q0 -98 -5 -117q-6 -29 -30 -28h-383z" />
31
- <glyph unicode="." horiz-adv-x="372" d="M76 104q0 51 30 84q31 35 84 35q115 0 115 -119q0 -51 -30.5 -83.5t-84.5 -32.5q-114 -1 -114 116z" />
32
- <glyph unicode="/" horiz-adv-x="684" d="M20 -41l461 1563q6 22 19 30q12 10 45 13q23 2 121 2l-461 -1567q-10 -29 -35 -35q-27 -6 -150 -6z" />
33
- <glyph unicode="0" d="M59 606q0 309 91 467q88 156 282.5 156t280.5 -142q84 -137 84 -432q0 -346 -84 -509.5t-291 -163.5q-203 0 -283 151q-80 150 -80 473zM238 594q0 -254 43 -358q43 -102 145 -102.5t149 122.5q47 125 48 401q0 223 -39 322q-41 102 -144 102q-113 0 -157.5 -120.5 t-44.5 -366.5z" />
34
- <glyph unicode="1" d="M57 115q0 43 295 43l23 899q-25 0 -90 -10q-55 -8 -101 -19l-43 -8q-25 49 -24 108q0 20 164 60q170 41 225 41q31 0 47 -10l-27 -1061h152l119 6v-74q0 -8 -3 -26.5t-3 -20.5q-2 -25 -11 -35q-6 -8 -18 -8h-701q-4 86 -4 115z" />
35
- <glyph unicode="2" d="M59 51q0 43 9 66q6 18 41 80q53 86 147 206l156 189q74 88 116 168q49 92 50 168q0 141 -158 141q-178 0 -299 -72q-20 43 -21 123q0 41 109 74q115 35 254 35q170 0 237 -68q66 -66 66 -211q0 -98 -49 -202q-47 -98 -117 -183l-164 -196q-106 -129 -157 -211h274l242 14 q0 -106 -6.5 -139t-28.5 -33h-694q-7 24 -7 51z" />
36
- <glyph unicode="3" d="M86 1118q0 41 100.5 76t253.5 35q285 0 285 -244q0 -209 -223 -369q123 -12 196.5 -85.5t73.5 -219.5q0 -248 -129 -383q-127 -133 -334 -133q-106 0 -164 29q-55 29 -55 72q0 39 23 122q72 -63 200 -63q133 0 207 98.5t74 253.5q0 211 -326 211l-4 107q133 63 201 143 q72 84 72 168q0 133 -148 133q-162 0 -280 -72v-2q-23 49 -23 123z" />
37
- <glyph unicode="4" d="M57 414q0 88 158 395q160 311 268 403q35 29 76 29q55 0 94 -24l-6 -795l152 6q8 -14 8 -59q-4 -102 -55 -103h-105v-213q0 -41 -20.5 -47t-145.5 -6v266h-370q-54 54 -54 148zM201 422h280l23 590q-84 -96 -174 -273q-94 -184 -129 -317z" />
38
- <glyph unicode="5" d="M70 -121q0 83 18 135q70 -63 199 -63q160 0 235 119q78 121 78 292q0 166 -80 227.5t-237 61.5q-90 0 -197 -26l59 604h627q0 -94 -16 -123q-14 -27 -72 -27l-397 8l-31 -307q68 10 119 11q401 6 401 -394q0 -283 -116.5 -442.5t-356.5 -159.5q-82 0 -133 15 q-55 14 -78 34q-22 19 -22 35z" />
39
- <glyph unicode="6" d="M63 631q0 807 465 807q223 0 224 -70q0 -72 -17 -119q-86 31 -192 31q-298 0 -320 -528q92 147 281 147q137 0 217 -96q80 -95 80 -301q0 -518 -389 -518q-92 0 -156 30q-70 33 -104 80q-37 49 -56 139q-23 104 -26 177q-7 89 -7 221zM223 582q-4 -244 43 -344 q49 -106 154 -107q102 0 159.5 94t57.5 242q0 279 -182 278q-133 0 -232 -151v-12z" />
40
- <glyph unicode="7" d="M90 1229h737q-215 -422 -331 -746q-121 -334 -162 -663q-100 0 -133 8q-37 9 -37 37q39 303 172 659q131 354 264 561q-117 -6 -463 -6q-47 0 -47 150z" />
41
- <glyph unicode="8" d="M63 377q0 129 64 229q66 102 170 164q-98 66 -133 109q-86 83 -86 215q0 168 100.5 260t249.5 92q365 0 365 -332q0 -209 -222 -358q84 -68 109 -94q121 -127 121 -289q0 -168 -92.5 -278.5t-264.5 -110.5q-197 0 -289 108.5t-92 284.5zM219 385q0 -113 57 -176 q59 -66 158 -66q94 0 149.5 61.5t55.5 172.5q0 127 -92 207q-37 37 -117 94q-211 -107 -211 -293zM246 1104q0 -101 80 -166q37 -37 123 -96q190 123 190 266q0 90 -53.5 135t-134.5 45q-88 0 -148 -47q-57 -45 -57 -137z" />
42
- <glyph unicode="9" d="M55 733q0 514 389 514q213 0 281 -133q66 -127 72 -506q-2 -420 -127 -620q-123 -201 -387 -201q-184 0 -185 68q0 49 15 112q63 -20 149 -20q184 0 268 135q82 133 101 383q-94 -143 -277 -143q-133 0 -217 108q-82 106 -82 303zM219 754q0 -131 49 -205t135 -74 q135 0 234 148v12q0 244 -39 356q-37 109 -152 109q-106 0 -167 -88q-60 -86 -60 -258z" />
43
- <glyph unicode=":" horiz-adv-x="372" d="M76 104q0 51 30 84q31 35 84 35q115 0 115 -119q0 -51 -30.5 -83.5t-84.5 -32.5q-114 -1 -114 116zM76 791q0 49 30.5 83.5t83.5 34.5q115 0 115 -118q0 -49 -31 -84q-31 -33 -84 -33q-114 0 -114 117z" />
44
- <glyph unicode=";" horiz-adv-x="372" d="M70 -164q51 90 57 176q-47 29 -47 101q0 43 29 75q28 31 73 31q113 0 113 -123q0 -98 -61.5 -202.5t-98.5 -104.5q-55 0 -65 47zM72 791q0 47 32 83q31 35 82 35q115 0 115 -118q0 -49 -31 -84q-31 -33 -84 -33q-114 0 -114 117z" />
45
- <glyph unicode="&#x3c;" horiz-adv-x="817" d="M80 528q0 61 53 90l541 265q57 -53 59 -113q0 -34 -31 -49l-405 -199l440 -196q-2 -51 -26 -90q-25 -41 -47 -41q-14 0 -58 16l-500 221q-26 45 -26 96z" />
46
- <glyph unicode="=" d="M70 313q0 89 6 117q6 29 28 29h682q0 -80 -4 -117q-4 -29 -28 -29h-684zM70 694q0 89 6 117q6 29 28 29h682q0 -80 -4 -117q-4 -29 -28 -29h-684z" />
47
- <glyph unicode="&#x3e;" horiz-adv-x="817" d="M88 731q2 51 26.5 90t49 39t55.5 -14l500 -221q29 -47 29 -97q0 -61 -56 -90l-540 -264q-51 51 -58 111q0 35 29 51l407 199z" />
48
- <glyph unicode="?" horiz-adv-x="602" d="M39 1366q0 33 82 61q78 27 174 27q135 0 209 -72q76 -74 76 -213q0 -115 -35 -196q-35 -80 -105 -172q-76 -98 -88 -123q-25 -43 -24 -96q0 -28 6 -62q2 -10 4 -27.5t4 -21.5q4 -12 -2 -27q-14 -18 -64 -20q-59 -4 -86 4q-31 61 -30 145q0 83 37 148q23 47 88 135 q61 84 88 143q29 63 28 129q0 158 -168 158q-94 0 -170 -51q-24 72 -24 131zM152 104q0 47 32 84q31 35 82 35q115 0 115 -119q0 -51 -31 -83.5t-84 -32.5q-114 -1 -114 116z" />
49
- <glyph unicode="@" horiz-adv-x="1509" d="M96 541q0 436 189 647q187 209 522 209q311 0 461 -152q152 -156 151 -510q0 -731 -329 -731q-68 0 -125 47q-61 -49 -224 -49q-125 -2 -192.5 61.5t-63.5 253.5q6 334 260 334q78 0 119 -22q4 94 4 125q4 68 -28 92q-33 27 -95 26q-115 0 -204 -51q-18 35 -19 97 q4 29 19 40q94 53 260 54q115 0 172 -54q55 -53 53 -184l-10 -412q-4 -141 -10 -202q31 -12 65 -13q27 0 59 29q29 25 58 90q29 61 43 170q16 119 16 256q0 309 -96 434q-94 123 -348 123q-180 0 -295 -65q-114 -65 -178 -228q-63 -160 -64 -438q0 -188 21 -313 q23 -135 57 -215q35 -76 102 -131q61 -49 134 -68q74 -18 174 -18q274 0 477 88q45 -57 45 -119q0 -31 -59 -61q-49 -27 -179 -50q-115 -20 -270 -20q-121 0 -215 16q-92 16 -182 70q-92 55 -147.5 153.5t-92.5 272.5q-35 166 -35 418zM643 311q-2 -106 24.5 -145t86.5 -39 q98 0 102 109l8 292q-43 6 -71 7q-74 0 -111 -50q-35 -47 -39 -174z" />
50
- <glyph unicode="A" horiz-adv-x="892" d="M10 2l365 1409q6 29 63 29q47 0 78 -6l367 -1403q4 -18 -10.5 -26.5t-61.5 -8.5q-45 0 -98 4l-88 365h-353l-79 -336q-4 -14 -9 -19q-8 -6 -22 -10q-20 -4 -47 -4q-44 0 -105 6zM307 516h283l-70 291q-53 229 -71 393q-25 -186 -72 -393z" />
51
- <glyph unicode="B" horiz-adv-x="768" d="M88 0v1395q0 39 55 39h203q344 0 344 -318q0 -154 -59 -237q-55 -80 -137 -93q37 -2 77 -16q35 -12 76 -43q39 -29 64 -92q25 -61 24 -148q0 -246 -108.5 -366.5t-280.5 -120.5h-258zM258 145h92q84 0 137 80q53 82 54 248q0 145 -45 188.5t-144 43.5h-94v-560zM258 848 h100q68 0 109 59.5t41 175.5q0 203 -152 203h-98v-438z" />
52
- <glyph unicode="C" horiz-adv-x="692" d="M63 657q0 203 25 353q23 143 64 233q35 80 94 135q55 51 108 68q49 14 113 14q193 0 192 -112q0 -51 -26 -101q-57 51 -133 51q-37 0 -76 -14q-35 -12 -72 -53q-33 -35 -59 -109q-20 -55 -37 -184q-16 -125 -16 -272q0 -197 28 -318q29 -119 70 -153q43 -37 106 -37 q113 0 189 63q25 -53 24 -100q0 -61 -71 -105q-70 -43 -183 -43q-65 0 -110 13q-43 12 -92 57q-47 45 -74 115q-29 80 -47 198q-17 113 -17 301z" />
53
- <glyph unicode="D" horiz-adv-x="802" d="M90 0v1395q0 39 55 39h199q137 0 223 -56q84 -53 131 -200q47 -145 47 -387q0 -434 -100 -611q-102 -180 -299 -180h-256zM256 158h92q45 0 78 24q37 27 66 86q33 68 47 201q16 143 16 338q0 276 -47 373q-49 100 -158 100h-94v-1122z" />
54
- <glyph unicode="E" horiz-adv-x="653" d="M90 0v1399q4 35 35 35h489q0 -98 -4 -127q-4 -23 -26 -23h-326v-428h307q0 -96 -4 -129q-4 -25 -26 -25h-277v-552h350q0 -98 -4 -127q-4 -23 -29 -23h-485z" />
55
- <glyph unicode="F" horiz-adv-x="636" d="M90 0v1399q4 35 35 35h489q0 -94 -4 -123q-2 -20 -26 -21h-326v-434h307q0 -92 -4 -125q-4 -27 -26 -26h-277v-672q2 -33 -33 -33h-135z" />
56
- <glyph unicode="G" horiz-adv-x="786" d="M55 684q0 231 29 391q29 154 90 236q61 78 137 110q74 31 183 31q98 0 159 -31q59 -29 59.5 -71.5t-22.5 -104.5q-59 49 -162 49q-160 0 -227.5 -131t-67.5 -469q0 -238 27 -356q29 -127 70 -160q45 -35 114 -35q88 0 119 50v507h-149v107q0 35 39 35h268l-2 -770 q-106 -90 -279 -90q-145 0 -225 55q-78 55 -119 209q-41 157 -41 438z" />
57
- <glyph unicode="H" horiz-adv-x="835" d="M90 0v1399q0 29 21 31q29 4 145 4v-584h326v549q0 27 20 31q25 4 146 4v-1401q0 -27 -21 -29q-29 -4 -145 -4v696h-326v-663q0 -27 -20 -29q-29 -4 -146 -4z" />
58
- <glyph unicode="I" horiz-adv-x="342" d="M88 0v1358q0 59 21 67q18 8 147 9v-1401q0 -27 -20 -29q-29 -4 -148 -4z" />
59
- <glyph unicode="J" horiz-adv-x="624" d="M41 102q0 41 27 95q76 -68 168 -68q84 0 108.5 55.5t24.5 190.5v983q0 57 22 67q18 8 148 9v-1096q0 -166 -62 -262q-61 -94 -219 -94q-117 0 -168 34q-49 34 -49 86z" />
60
- <glyph unicode="K" horiz-adv-x="802" d="M86 0v1399q0 29 20 31q29 4 148 4v-619l326 608q59 12 106 13q73 0 73 -31q0 -8 -5 -19l-330 -571q248 -186 328 -778q2 -23 -11 -33q-10 -8 -57 -8q-55 0 -117 6q-49 261 -98 412q-49 150 -131 237q-33 33 -84 56v-674q0 -27 -21 -29q-28 -4 -147 -4z" />
61
- <glyph unicode="L" horiz-adv-x="647" d="M88 0v1386q0 35 21 41q22 6 147 7v-1278h352v-123q0 -33 -35 -33h-485z" />
62
- <glyph unicode="M" horiz-adv-x="999" d="M88 0v1399q0 23 8 28q10 6 27 7h121l194 -619l66 -229q39 156 59 223l180 590q10 35 33 35h135v-1401q0 -25 -22 -29q-29 -4 -148 -4l7 498l36 604q-117 -424 -131 -459l-108 -311q-4 -16 -23 -17h-71l-107 328q0 2 -14.5 51l-48 165l-70.5 247v-2q35 -365 39 -598 l4 -473q0 -27 -23 -29q-32 -4 -143 -4z" />
63
- <glyph unicode="N" horiz-adv-x="907" d="M88 0v1399q0 35 35 35h127l229 -553q45 -119 195 -578v6q-20 166 -21 609v481q0 29 21 31q29 4 147 4v-1401q0 -33 -35 -33h-124l-234 563q-39 92 -195 580q20 -211 21 -613v-497q0 -27 -21 -29q-28 -4 -145 -4z" />
64
- <glyph unicode="O" horiz-adv-x="874" d="M61 725q0 401 93 563q92 164 299 164q205 0 284 -156q80 -157 80 -565q0 -414 -90 -581.5t-297 -167.5q-138 0 -215 61q-74 59 -115 225q-39 158 -39 457zM248 684q0 -292 43 -412q43 -121 147 -120q113 0 156 131q43 129 43 444q0 313 -39 432q-41 123 -149.5 123 t-153.5 -133q-47 -137 -47 -465z" />
65
- <glyph unicode="P" horiz-adv-x="735" d="M88 0v1399q0 35 35 35h203q197 0 286.5 -96.5t89.5 -309.5q0 -238 -104 -342t-272 -104h-72v-549q0 -27 -21 -29q-28 -4 -145 -4zM254 735h90q88 0 131 74t43 238q0 242 -162 241h-102v-553z" />
66
- <glyph unicode="Q" horiz-adv-x="874" d="M61 725q0 401 93 563q92 164 299 164q205 0 284 -156q80 -157 80 -565q0 -336 -57.5 -506t-181.5 -219q14 -82 38 -115q25 -35 72 -34q74 0 127 34q25 -37 25 -90q0 -45 -57.5 -63.5t-127.5 -18.5q-106 0 -170 62q-65 61 -98 203q-125 10 -190 75q-70 70 -103 228 q-33 155 -33 438zM248 684q0 -292 43 -412q43 -121 147 -120q113 0 156 131q43 129 43 444q0 313 -39 432q-41 123 -149.5 123t-153.5 -133q-47 -137 -47 -465z" />
67
- <glyph unicode="R" horiz-adv-x="761" d="M88 0v1399q0 35 35 35h203q197 0 286.5 -96.5t89.5 -309.5q0 -299 -178 -401q172 -227 193 -590q0 -25 -14.5 -33t-69.5 -8l-98 4q-25 389 -168 584q-10 -2 -41 -2h-72v-549q0 -27 -21 -29q-28 -4 -145 -4zM254 735h90q88 0 131 70q43 72 43 231q0 252 -162 252h-102 v-553z" />
68
- <glyph unicode="S" horiz-adv-x="731" d="M51 102q0 63 43 119q82 -72 211 -71q201 0 201 208q0 72 -25 131q-23 53 -94 136l-207 239q-127 158 -127 295q0 133 92 213q94 82 261 82q268 0 268 -102q0 -51 -41 -97q-63 51 -201 52q-92 0 -145.5 -37t-53.5 -105q0 -94 95 -202l221 -252q78 -94 108 -170 q29 -72 29 -176q0 -172 -86 -278.5t-281 -106.5q-127 0 -198 36q-70 37 -70 86z" />
69
- <glyph unicode="T" horiz-adv-x="761" d="M16 1278v121q0 35 35 35h697v-123q0 -33 -35 -33h-252v-1245q0 -27 -21 -29q-29 -4 -145 -4v1278h-279z" />
70
- <glyph unicode="U" horiz-adv-x="892" d="M88 418v981q0 29 21 31q29 4 151 4v-1020q0 -141 39 -211t158 -70q113 0 180 37v1229q0 27 22 31q29 4 146 4v-1381q-47 -31 -139 -51q-100 -23 -209 -22q-96 0 -164 24q-74 27 -109 59q-39 35 -61 99q-23 61 -29 117q-6 57 -6 139z" />
71
- <glyph unicode="V" horiz-adv-x="858" d="M12 1423q4 10 39 11h135l170 -793q16 -88 82 -500q37 299 74 500l152 743q2 27 12 39q8 10 31 11h145l-315 -1440q-51 -8 -140 -8q-70 0 -98 118q-78 311 -285 1280q-5 15 -5 26q0 7 3 13z" />
72
- <glyph unicode="W" horiz-adv-x="1339" d="M10 1411q0 12 10 19q6 4 29 4h137l148 -793q35 -197 61 -461h13q10 223 53 461l125 674q4 31 12 39q10 10 31 10h119l143 -723q29 -143 61 -459h13q23 279 51 459l131 743q2 27 12 39q8 10 31 11h141l-268 -1440q-109 -10 -139 -10q-68 0 -90 116l-105 459 q-18 90 -63 467q-49 -399 -60 -465l-112 -567q-59 -8 -152 -8q-59 0 -84 127l-244 1271q-4 21 -4 27z" />
73
- <glyph unicode="X" horiz-adv-x="866" d="M18 0l312 741l-256 664q-6 20 16 25q33 4 180 4l82 -232q43 -119 101 -307q51 170 102 307l78 205q6 18 29 23q29 4 151 4l-264 -680l293 -725q5 -10 5 -16q0 -13 -22 -13h-182l-111 276q-59 154 -108 299q-68 -195 -113 -299l-110 -256q-12 -20 -39 -20h-144z" />
74
- <glyph unicode="Y" horiz-adv-x="743" d="M12 1407q-2 5 -1 8q0 12 16 15q29 4 174 4l82 -281q27 -84 63 -240q33 -141 37 -188q2 33 39 186q16 72 63 242l72 250q10 25 31 27q29 4 149 4l-276 -842v-559q0 -27 -21 -29q-29 -4 -145 -4v580z" />
75
- <glyph unicode="Z" horiz-adv-x="786" d="M31 66q0 35 16 73l514 1145h-381q-72 0 -90 -6v121q0 35 35 35h612q16 -29 17 -56q0 -47 -17 -73l-522 -1155h395q84 0 121 14v-131q0 -33 -35 -33h-639q-26 21 -26 66z" />
76
- <glyph unicode="[" horiz-adv-x="786" d="M248 -408v2038q0 34 18 43q16 8 109 8h395q0 -106 -8 -129q-8 -25 -47 -24h-299v-1780h352q0 -115 -8 -133q-10 -23 -47 -23h-465z" />
77
- <glyph unicode="\" horiz-adv-x="673" d="M25 1522q-12 33 14 39q25 6 147 6l465 -1587q10 -29 -18 -35q-25 -6 -148 -6z" />
78
- <glyph unicode="]" horiz-adv-x="786" d="M18 -410q0 106 9 129q10 25 47 25h299v1784h-353q0 115 9 133q10 23 47 22h465v-2041q0 -34 -19 -43q-16 -8 -110 -9h-394z" />
79
- <glyph unicode="^" horiz-adv-x="878" d="M98 512l355 303l297 -260q29 -29 28 -55q0 -29 -22.5 -51.5t-57.5 -26.5l-264 178l-209 -154q-33 -20 -51 -20q-31 0 -53 25q-19 22 -23 61z" />
80
- <glyph unicode="_" horiz-adv-x="770" d="M27 -223q0 89 6 117q6 29 28 28h682q0 -80 -4 -117q-4 -29 -28 -28h-684z" />
81
- <glyph unicode="`" horiz-adv-x="348" d="M0 1376q10 51 29 86q23 41 49 41q12 0 127 -98q113 -98 145 -143q-25 -92 -63 -93q-10 0 -137 91q-125 87 -150 116z" />
82
- <glyph unicode="a" horiz-adv-x="722" d="M59 291q0 197 74 266q72 70 199 70q98 0 149 -27v162q0 72 -30.5 96.5t-96.5 24.5q-166 0 -270 -45q-23 41 -23 94q0 41 22.5 57.5t119.5 36.5q86 18 192 18q137 0 195 -57q59 -59 59 -192v-109q0 -449 -12 -637q-115 -70 -285 -69q-63 0 -110 10q-51 10 -90 37 q-45 31 -70 96q-23 62 -23 168zM233 295q0 -104 33 -139q33 -37 101 -37q74 0 108 35q6 68 6 329q-39 18 -96 19q-74 0 -113 -41t-39 -166z" />
83
- <glyph unicode="b" horiz-adv-x="782" d="M96 41v1386q0 53 29 66q27 12 137 12v-532q90 72 219 71q125 0 189 -94q61 -92 61 -309q0 -158 -26 -295q-25 -121 -64 -194q-37 -70 -92 -109q-53 -39 -105 -51q-49 -12 -108 -12q-163 0 -240 61zM262 154q33 -27 96 -27q31 0 60 18q31 20 59 64q31 46 49 147 q18 102 19 248q0 162 -33 225q-35 66 -106 66q-80 0 -144 -57v-684z" />
84
- <glyph unicode="c" horiz-adv-x="638" d="M63 489q0 137 23 246q20 98 57 162q34 58 86 92q57 37 99 45q51 10 104 10q74 0 121 -26q49 -27 49 -66q0 -46 -18 -92q-63 37 -144 37q-39 0 -73.5 -14.5t-63.5 -51t-47 -124.5q-18 -86 -18 -218q0 -211 43 -286.5t139 -75.5q86 0 162 47q16 -61 16 -90 q0 -43 -65.5 -73.5t-163.5 -30.5q-106 0 -168 36q-63 39 -101 150q-37 112 -37 323z" />
85
- <glyph unicode="d" horiz-adv-x="788" d="M66 475q0 283 88 428q86 141 227 141q92 0 145 -40v426q0 51 29 63q27 12 137 12v-1464q-127 -61 -293 -61q-66 0 -104 8q-49 10 -88 37q-49 33 -76 81q-29 53 -47 148q-18 92 -18 221zM252 494q0 -215 37 -289q39 -76 117 -76q74 0 120 31v712q-33 27 -94 27 q-180 1 -180 -405z" />
86
- <glyph unicode="e" horiz-adv-x="737" d="M63 459q0 193 29 307q29 119 88 180q51 53 113 78q53 20 133 20q260 0 260 -329q0 -160 -22 -266q-170 -33 -428 -33q6 -160 49 -217.5t141 -57.5q125 0 233 64q14 -41 15 -113q0 -47 -82 -80q-80 -33 -201 -32q-72 0 -133 20q-53 18 -100 68q-47 51 -72 147 q-23 90 -23 244zM238 551h35q152 0 241 22q10 51 10 123q-2 113 -26.5 158t-89.5 45q-154 0 -170 -348z" />
87
- <glyph unicode="f" horiz-adv-x="520" d="M25 883q0 100 6 120.5t37 20.5h98v123q0 114 31 190q31 78 84 113q55 37 108 49q61 14 121 14q190 0 190 -83q0 -49 -18 -93q-59 25 -145 25q-96 0 -150 -39q-55 -41 -55 -162v-137h184q0 -104 -4 -119q-6 -23 -31 -22h-149v-850q0 -33 -33 -33h-133v883h-141z" />
88
- <glyph unicode="g" horiz-adv-x="802" d="M45 -180q0 141 156 246q-61 18 -95 45q-34 28 -30 67q4 80 131 184q-127 84 -127 308q0 375 340 374q43 0 102 -16h246q16 -29 16 -80q0 -63 -57 -63q-23 0 -74 10q78 -78 78 -221q0 -358 -332 -359q-61 0 -92 9q-53 -53 -53 -91q0 -23 45 -34q33 -8 147 -23l50 -6 q139 -23 202 -72q68 -53 68 -168q0 -141 -100.5 -237t-292.5 -96q-328 0 -328 223zM217 -141q0 -52 37 -80q39 -29 135 -29q100 0 154 47q55 49 55 111q0 68 -47 94q-49 29 -186 37q-4 0 -37 4q-111 -83 -111 -184zM256 674q0 -121 30.5 -176.5t121.5 -55.5q156 0 155 271 q0 209 -149 209q-74 0 -115 -60q-43 -61 -43 -188z" />
89
- <glyph unicode="h" horiz-adv-x="776" d="M92 0v1430q0 51 27 63q29 12 139 12v-540q92 80 229 79q125 0 168 -65q45 -68 45 -205v-741q0 -25 -24 -29q-33 -4 -148 -4v727q0 78 -24.5 121t-91.5 43q-90 0 -154 -57v-801q0 -25 -22 -29q-29 -4 -144 -4z" />
90
- <glyph unicode="i" horiz-adv-x="356" d="M94 0v948q0 51 29 64q31 12 141 12v-991q0 -25 -22 -29q-29 -4 -148 -4zM96 1350q2 123 97 123q47 0 65 -27q17 -25 17 -76q0 -8 -1 -16q0 -133 -94 -133q-84 0 -84 129z" />
91
- <glyph unicode="j" horiz-adv-x="374" d="M-209 -293q0 52 25 86q72 -41 172 -41q76 0 100 43q23 39 23 158v995q0 51 28.5 63.5t136.5 12.5v-1098q0 -158 -57 -241q-59 -86 -211 -86q-217 -1 -217 108zM106 1350q4 123 97 123q47 0 65 -27q17 -25 17 -76v-16q0 -133 -95 -133q-84 0 -84 129z" />
92
- <glyph unicode="k" horiz-adv-x="778" d="M94 0v1430q0 51 29 63t139 12v-555q109 94 256 94q174 0 174 -176q0 -182 -170 -317q78 -33 135 -125q55 -89 68 -221q2 -14 2 -68q0 -49 -6 -104q-4 -23 -21 -29q-14 -4 -168 -4q8 84 9 131q0 70 -11 121q-18 119 -67 170q-41 43 -89 43q-11 0 -22 -2q-10 -2 -39 -14 q-33 -14 -37 -17l-14 -8v-391q0 -27 -20 -29q-29 -4 -148 -4zM262 543q246 100 246 268q0 84 -76 84q-90 0 -170 -98v-254z" />
93
- <glyph unicode="l" horiz-adv-x="352" d="M94 0v1430q0 51 29 63t137 12v-1472q0 -27 -20 -29q-29 -4 -146 -4z" />
94
- <glyph unicode="m" horiz-adv-x="1150" d="M94 0v977q152 68 309 67q123 0 185 -63q113 63 252 63q143 0 186 -67.5t43 -220.5v-723q0 -25 -22 -29q-29 -4 -144 -4v758q0 80 -20 108q-22 31 -80 31q-78 0 -137 -39v-825q0 -27 -21 -29q-29 -4 -145 -4v797q-4 59 -21 80q-18 23 -80 22q-70 0 -139 -35v-831 q0 -25 -22 -29q-29 -4 -144 -4z" />
95
- <glyph unicode="n" horiz-adv-x="780" d="M92 0v975q158 70 324 69q158 0 225 -63q63 -61 64 -211v-737q0 -25 -23 -29q-29 -4 -150 -4v721q0 98 -24 139q-25 39 -98 39q-84 0 -152 -37v-829q0 -25 -22 -29q-29 -4 -144 -4z" />
96
- <glyph unicode="o" horiz-adv-x="751" d="M49 512q0 532 340 532q170 0 244 -112.5t74 -413.5q0 -279 -84 -409q-83 -129 -252 -129q-84 0 -140 18q-57 18 -100 74q-45 59 -63 164q-19 107 -19 276zM229 508q0 -166 19 -252q18 -84 47 -111q28 -25 80 -24q72 0 112 86q39 84 39 309q0 233 -32 307q-33 76 -111 76 q-74 0 -115 -84q-39 -80 -39 -307z" />
97
- <glyph unicode="p" horiz-adv-x="782" d="M94 -332v1295q127 82 299 81q162 0 248 -94q86 -95 86 -332q0 -639 -305 -638q-104 0 -162 57v-426q-35 -14 -86 -14q-41 0 -61 16q-19 15 -19 55zM260 197q40 -68 111 -68q172 0 172 471q0 174 -37 236q-39 63 -121 63q-72 0 -125 -39v-663z" />
98
- <glyph unicode="q" horiz-adv-x="796" d="M63 446q0 313 115 457q113 141 305 141q131 0 219 -63v-1315q0 -45 -18 -57q-16 -12 -80 -15q-35 0 -69 7v469q-61 -90 -195 -90q-55 0 -98 18q-47 20 -88 63q-43 45 -68 146q-23 89 -23 239zM252 451q0 -100 12 -168q12 -72 35 -99q27 -35 49 -45q29 -14 53 -14 q94 0 134 104v641q-35 29 -95 29q-95 0 -141 -104q-47 -106 -47 -344z" />
99
- <glyph unicode="r" horiz-adv-x="536" d="M92 0v952q133 92 279 92q143 0 143 -86q0 -52 -18 -98q-46 25 -99 25q-78 0 -135 -47l-2 -805q0 -25 -22 -29q-29 -4 -146 -4z" />
100
- <glyph unicode="s" horiz-adv-x="704" d="M61 84q0 49 29 96q88 -51 205 -51q82 0 123 33q43 35 43 94q0 86 -82 160l-199 170q-117 94 -117 217q0 113 84 178q82 63 250 63q94 0 158 -22q66 -23 82 -45q18 -25 18 -47q0 -45 -37 -84q-90 53 -200 53q-76 0 -119 -24.5t-43 -73.5q0 -59 82 -127l190 -154 q65 -65 93 -123q29 -61 28 -133q0 -135 -90 -209q-92 -76 -248 -75q-250 0 -250 104z" />
101
- <glyph unicode="t" horiz-adv-x="593" d="M37 881q0 96 6 120q6 23 31 23h102v311q0 39 29 49q25 8 139 9v-369h209q0 -92 -4 -121q-4 -23 -29 -22h-176v-596q0 -66 2 -84q4 -31 19 -51q20 -27 53 -27q57 0 119 31q12 -47 12 -82q0 -92 -176 -92q-123 0 -160 73.5t-37 231.5v596h-139z" />
102
- <glyph unicode="u" horiz-adv-x="796" d="M90 319v670q0 29 21 31q29 4 151 4v-719q0 -102 26.5 -141t110.5 -39q82 0 138 37v827q0 29 20 31q29 4 145 4v-971q-133 -74 -305 -73q-176 0 -241 79q-66 82 -66 260z" />
103
- <glyph unicode="v" horiz-adv-x="702" d="M37 973q-2 10 -2 18q0 22 18 27q25 6 162 6l66 -328q10 -51 38 -225q23 -131 31 -211l10 -82h5q31 279 75 520l56 289q2 27 26 33q14 4 150 4l-236 -1030q-31 -6 -117 -6q-49 0 -73 100z" />
104
- <glyph unicode="w" horiz-adv-x="1103" d="M31 989q-2 25 24 31q16 4 158 4l61 -334q45 -240 72 -497h12q47 324 58 374l63 394q4 23 13 28q9 6 43 6h108l80 -430q14 -61 31 -162l24 -151l8 -59h11q16 233 63 497l53 297q2 27 25 33q14 4 139 4q-213 -1030 -221 -1030q-37 -6 -106 -6q-27 0 -52 28q-29 33 -36 78 l-27 137q-47 225 -74 508q-33 -305 -74 -508l-47 -237q-86 -6 -139 -6q-47 0 -72 100z" />
105
- <glyph unicode="x" horiz-adv-x="837" d="M31 0l288 535l-247 462q-10 20 8 23q29 4 166 4l76 -139q74 -145 108 -234q59 135 113 234l61 110q8 20 35 25q33 4 152 4l-263 -479l273 -506q6 -13 6 -21q0 -9 -8 -12q-18 -6 -183 -6l-75 133q-74 137 -133 275q-76 -174 -129 -275l-58 -100q-10 -27 -39 -29 q-40 -4 -151 -4z" />
106
- <glyph unicode="y" horiz-adv-x="727" d="M-8 -315q0 61 24 94q45 -33 129 -33q109 0 150 221l-246 1012q-10 33 8.5 39t153.5 6l111 -487q20 -113 20 -117q8 -51 16 -113l13 -88q6 -43 6 -45q29 244 49 365l90 436q6 37 29 43q25 6 151 6l-252 -1079q-47 -195 -108 -267q-65 -74 -178 -73q-166 0 -166 80z" />
107
- <glyph unicode="z" horiz-adv-x="681" d="M41 82q0 35 14 63l398 738h-209q-127 0 -187 -11q-6 37 -6 80q0 72 53 72h521q18 -16 18 -51t-20 -82l-385 -737h180q121 0 215 22q6 -28 6 -74q-2 -53 -16 -79q-12 -23 -52 -23h-501q-29 25 -29 82z" />
108
- <glyph unicode="{" horiz-adv-x="563" d="M84 600q0 55 35 84q27 18 49 35q12 10 29 51q14 37 14 104q0 84 -14.5 213.5t-14.5 194.5q0 238 318 242q31 -41 30 -103q0 -53 -28 -59q-150 -12 -150 -164q0 -33 10.5 -172t10.5 -203q0 -92 -29 -139q-27 -45 -82 -70q55 -20 84 -65q27 -41 27 -129q0 -66 -10.5 -203 t-10.5 -172q0 -108 37 -147q35 -39 127 -52q6 -39 6 -63q0 -90 -57 -90q-147 0 -217 69q-66 66 -66 207q0 78 14.5 199t14.5 205q0 80 -27 112q-29 35 -88 47q-12 28 -12 68z" />
109
- <glyph unicode="|" horiz-adv-x="659" d="M248 -410v2034q0 33 22 39q20 6 146 6v-2038q0 -31 -23 -37q-14 -4 -145 -4z" />
110
- <glyph unicode="}" horiz-adv-x="563" d="M37 -203q0 51 31 58q147 12 147 163q0 31 -10 170.5t-10 202.5q0 94 28 141q29 49 80 70q-53 20 -82 66q-27 41 -26 129q0 66 10 203t10 171q0 104 -39 148q-37 39 -125 51q-8 31 -8 64q0 90 61 90q143 0 213 -70q68 -68 68 -207q0 -78 -14.5 -198.5t-14.5 -204.5 q0 -80 27 -113q29 -35 86 -47q14 -31 14 -68q0 -59 -37 -81q-34 -22 -49 -37q-18 -18 -28 -54q-12 -39 -13 -102q0 -88 14.5 -215t14.5 -193q0 -123 -86 -182q-88 -59 -231 -59q-31 46 -31 104z" />
111
- <glyph unicode="~" horiz-adv-x="817" d="M23 545q27 49 104 90q72 39 160 39q74 0 143 -43q74 -45 123 -45q84 0 143 71q39 27 70 -4q33 -33 35 -88q-37 -52 -105 -92q-66 -39 -157 -39q-80 0 -152 45t-117 45t-102 -37q-61 -39 -74 -41q-28 -3 -49 25q-18 25 -22 74z" />
112
- <glyph unicode="&#xa2;" d="M170 467q0 498 264 565v178q0 41 35 55.5t117 14.5v-240q39 -8 86 -30q35 -18 35 -37q0 -76 -19 -121q-66 37 -137 37q-39 0 -78 -15q-35 -12 -67.5 -51t-51.5 -127q-18 -90 -18 -223q0 -152 22 -229q20 -74 60 -92q37 -18 108 -19q84 0 160 47q16 -53 16 -104 q0 -31 -49 -60q-51 -29 -114 -34v-189q0 -41 -35 -53q-34 -12 -117 -12v260q-113 14 -166 118q-51 101 -51 361z" />
113
- <glyph unicode="&#xa3;" horiz-adv-x="747" d="M31 567q0 89 6 117q6 29 26 29h95q10 272 92 389t237 117q88 0 144 -27q59 -29 59 -82q0 -49 -20 -102q-68 43 -146 43q-94 0 -145 -72q-51 -74 -55 -266h266q0 -98 -4 -117q-6 -29 -29 -29h-233q0 -184 16 -401l319 -14q12 -33 13 -76q0 -76 -105 -76h-387 q-20 258 -22 567h-127z" />
114
- <glyph unicode="&#xa5;" d="M61 1407q-6 20 15 23q29 4 174 4l80 -281q92 -295 98 -389q8 109 102 389l76 250q10 25 31 27q29 4 149 4l-194 -596h182q0 -88 -10 -111q-12 -29 -53 -29h-166l-35 -108v-90h266q0 -80 -12 -111q-12 -29 -53 -29h-201v-327q0 -25 -18 -29q-25 -4 -148 -4v360h-266 q0 78 12 109t53 31h201v80l-41 118h-225q0 80 12 111q12 29 53 29h113z" />
115
- <glyph unicode="&#xa9;" horiz-adv-x="964" d="M72 1108q0 449 424 448q207 0 303 -102q94 -100 94 -342q0 -225 -107 -340q-108 -117 -307 -117q-206 0 -307 105q-100 102 -100 348zM199 1108q0 -180 69.5 -256t206.5 -76q131 0 211 82q80 84 80 256t-65.5 250t-206.5 78q-295 0 -295 -334zM322 1087q0 166 53 223.5 t135 57.5q31 0 61.5 -12.5t30.5 -20.5q0 -23 -12 -65q-43 14 -70 14q-22 0 -37 -6q-18 -8 -32 -25q-16 -18 -25 -59q-8 -39 -8 -109q0 -96 20.5 -122.5t69.5 -26.5q29 0 78 20q14 -27 14 -59q0 -16 -33 -29q-39 -14 -69 -14q-96 0 -138 43q-38 40 -38 190z" />
116
- <glyph unicode="&#xad;" horiz-adv-x="567" d="M76 504q0 89 6 117q6 29 27 28h385q0 -98 -5 -117q-6 -29 -30 -28h-383z" />
117
- <glyph unicode="&#xae;" horiz-adv-x="964" d="M72 1108q0 449 424 448q207 0 303 -102q94 -100 94 -342q0 -225 -107 -340q-108 -117 -307 -117q-206 0 -307 105q-100 102 -100 348zM199 1108q0 -180 69.5 -256t206.5 -76q131 0 211 82q80 84 80 256t-65.5 250t-206.5 78q-295 0 -295 -334zM360 854v508q0 10 15 10h90 q166 0 166 -149q0 -94 -70 -140q72 -70 84 -211q0 -20 -33 -20q-41 0 -51 2q-12 160 -74 205h-49v-189q0 -10 -12 -14q-9 -2 -66 -2zM438 1128h33q78 0 78 101q0 76 -74 76h-37v-177z" />
118
- <glyph unicode="&#xb4;" horiz-adv-x="348" d="M0 1260q72 82 162 157q96 82 112 82q25 0 48 -41q23 -43 28 -84q-25 -33 -127 -104q-104 -74 -160 -105q-18 0 -32 23q-20 33 -25 49z" />
119
- <glyph unicode="&#x2000;" horiz-adv-x="839" />
120
- <glyph unicode="&#x2001;" horiz-adv-x="1681" />
121
- <glyph unicode="&#x2002;" horiz-adv-x="839" />
122
- <glyph unicode="&#x2003;" horiz-adv-x="1681" />
123
- <glyph unicode="&#x2004;" horiz-adv-x="559" />
124
- <glyph unicode="&#x2005;" horiz-adv-x="419" />
125
- <glyph unicode="&#x2006;" horiz-adv-x="278" />
126
- <glyph unicode="&#x2007;" horiz-adv-x="278" />
127
- <glyph unicode="&#x2008;" horiz-adv-x="208" />
128
- <glyph unicode="&#x2009;" horiz-adv-x="335" />
129
- <glyph unicode="&#x200a;" horiz-adv-x="92" />
130
- <glyph unicode="&#x2010;" horiz-adv-x="567" d="M76 504q0 89 6 117q6 29 27 28h385q0 -98 -5 -117q-6 -29 -30 -28h-383z" />
131
- <glyph unicode="&#x2011;" horiz-adv-x="567" d="M76 504q0 89 6 117q6 29 27 28h385q0 -98 -5 -117q-6 -29 -30 -28h-383z" />
132
- <glyph unicode="&#x2012;" horiz-adv-x="567" d="M76 504q0 89 6 117q6 29 27 28h385q0 -98 -5 -117q-6 -29 -30 -28h-383z" />
133
- <glyph unicode="&#x2013;" horiz-adv-x="866" d="M76 504q0 89 6 117q6 29 27 28h684q0 -98 -5 -117q-6 -29 -30 -28h-682z" />
134
- <glyph unicode="&#x2014;" horiz-adv-x="1431" d="M12 504q0 89 6 117q6 29 27 28h1376q0 -89 -6 -117q-6 -29 -29 -28h-1374z" />
135
- <glyph unicode="&#x2018;" horiz-adv-x="356" d="M70 1298q0 100 59 215t94 115q49 0 66 -47q-41 -78 -51 -197q47 -29 47 -100q0 -47 -29 -76q-31 -31 -76 -30q-110 -1 -110 120z" />
136
- <glyph unicode="&#x2019;" horiz-adv-x="356" d="M70 1219q41 78 51 196q-47 29 -47 101q0 45 28 77q27 29 74 29q113 0 113 -121q0 -102 -60 -217q-57 -113 -94 -113q-57 1 -65 48z" />
137
- <glyph unicode="&#x201c;" horiz-adv-x="663" d="M70 1298q0 100 59 215t94 115q49 0 66 -47q-41 -78 -51 -197q47 -29 47 -100q0 -47 -29 -76q-31 -31 -76 -30q-110 -1 -110 120zM377 1298q0 101 61 215q61 115 92 115q53 0 66 -47q-41 -78 -51 -197q47 -29 47 -100q0 -43 -29 -76q-28 -31 -74 -30q-112 -1 -112 120z " />
138
- <glyph unicode="&#x201d;" horiz-adv-x="663" d="M70 1219q41 78 51 196q-47 29 -47 101q0 45 28 77q27 29 74 29q113 0 113 -121q0 -102 -60 -217q-57 -113 -94 -113q-57 1 -65 48zM379 1219q40 80 49 196q-47 29 -47 101q0 49 28.5 77.5t75.5 28.5q113 0 113 -121q0 -104 -61.5 -217t-94.5 -113q-55 1 -63 48z" />
139
- <glyph unicode="&#x2022;" horiz-adv-x="454" d="M84 582q0 66 41 112q39 45 108 45q154 0 154 -157q0 -70 -43 -113t-111 -43q-149 0 -149 156z" />
140
- <glyph unicode="&#x2026;" horiz-adv-x="1067" d="M72 104q0 51 30 84q31 35 84 35q115 0 115 -119q0 -51 -30.5 -83.5t-84.5 -32.5q-114 -1 -114 116zM420 104q0 51 31 84q31 35 84 35q115 0 114 -119q0 -51 -30.5 -83.5t-83.5 -32.5q-115 -1 -115 116zM768 104q0 51 31 84q31 35 84 35q115 0 114 -119q0 -51 -30.5 -83.5 t-83.5 -32.5q-115 -1 -115 116z" />
141
- <glyph unicode="&#x202f;" horiz-adv-x="335" />
142
- <glyph unicode="&#x205f;" horiz-adv-x="419" />
143
- <glyph unicode="&#x20ac;" d="M33 406q0 82 12 108q12 29 53 29h111v18q0 80 4 133h-180q0 80 12 111q12 29 53 29h129q23 133 62 210q43 86 96 125q55 41 107 56q55 16 114 16q66 0 119 -16q51 -16 66 -31q18 -18 18 -35q0 -78 -27 -112q-61 43 -135 43q-182 0 -237 -256h292q0 -78 -12 -109t-53 -31 h-246q-4 -53 -4 -127v-24h248q0 -76 -12.5 -106.5t-53.5 -30.5h-176q16 -162 62 -211q49 -51 137 -52q115 0 180 52q25 -47 25 -107q0 -33 -72 -70q-71 -37 -166 -36q-76 0 -131 16q-49 14 -98 57t-78 131q-31 94 -39 220h-180z" />
144
- <glyph unicode="&#x2122;" horiz-adv-x="1028" d="M61 1354v61q0 14 19 19h389v-62q0 -18 -20 -18h-136v-553q0 -12 -10 -17q-6 -2 -74 -2v572h-168zM520 782v633q0 18 21 19h57l90 -258l39 -113q27 92 33 108l82 244q3 18 18 19h66v-633q0 -12 -11 -17q-6 -2 -75 -2l2 228q4 115 16 237l-51 -164l-57 -151q-2 -8 -11 -8 h-43l-59 159l-51 172q16 -186 16 -245l2 -209q0 -14 -12 -17q-9 -2 -72 -2z" />
145
- <glyph unicode="&#xe000;" horiz-adv-x="1025" d="M0 1025h1025v-1025h-1025v1025z" />
146
- <glyph unicode="&#xfb01;" horiz-adv-x="821" d="M20 883q0 100 6.5 120.5t36.5 20.5h99v123q0 119 31 194q29 72 90 111q59 37 114 49q57 12 133 12q236 0 236 -100q0 -47 -16 -96q-92 45 -213 45q-96 0 -154 -41q-55 -39 -55 -170v-127h143q0 -98 -6 -119q-6 -23 -29 -22h-108v-850q0 -33 -33 -33h-133v883h-142zM563 0 v948q0 51 29 64q31 12 139 12v-991q0 -25 -22 -29q-29 -4 -146 -4z" />
147
- <glyph unicode="&#xfb02;" horiz-adv-x="841" d="M20 883q0 100 6.5 120.5t36.5 20.5h99v123q0 365 321 364q152 0 267 -69v-1409q0 -33 -33 -33h-133v1360q-41 14 -90 14q-31 0 -56 -6q-27 -6 -53 -25q-28 -18 -43 -61q-14 -41 -14 -108v-150h164q0 -104 -5 -119q-6 -23 -30 -22h-129v-850q0 -33 -35 -33h-131v883h-142z " />
148
- <glyph unicode="&#xfb03;" horiz-adv-x="1239" d="M20 883q0 100 6.5 120.5t36.5 20.5h99v141q0 338 321 338q111 0 205 -57q89 68 258 67q236 0 236 -100q0 -45 -19 -96q-92 45 -213 45q-98 0 -155 -41q-53 -39 -54 -170v-127h144q0 -98 -6 -119q-6 -23 -29 -22h-109v-850q0 -33 -32 -33h-134v883h-247v-850 q0 -33 -35 -33h-131v883h-142zM328 1024h247v123q0 111 29 186q-53 29 -121 29q-156 0 -155 -178v-160zM977 0v948q0 51 29 64q31 12 141 12v-991q0 -27 -21 -29q-28 -4 -149 -4z" />
149
- <glyph unicode="&#xfb04;" horiz-adv-x="1259" d="M20 883q0 100 6.5 120.5t36.5 20.5h99v141q0 338 321 338q111 0 201 -55q82 66 213 65q150 0 270 -69v-1411q0 -27 -20 -29q-29 -4 -148 -4v1350q-37 14 -90 14q-37 0 -61 -6q-29 -6 -51 -23q-25 -16 -41 -59q-14 -37 -15 -105v-147h142q0 -98 -6 -119q-6 -23 -29 -22 h-107v-850q0 -33 -32 -33h-134v883h-247v-850q0 -33 -35 -33h-131v883h-142zM328 1024h247v123q0 111 29 186q-53 29 -121 29q-156 0 -155 -178v-160z" />
150
- </font>
151
  </defs></svg>
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
+ <svg xmlns="http://www.w3.org/2000/svg">
4
+ <metadata>
5
+ This is a custom SVG webfont generated by Font Squirrel.
6
+ Copyright : Copyright c 2010 Yanone httpyanonedetypedesign All rights reservedThis Font Software is licensed under the SIL Open Font License Version 11This license is available with a FAQ at httpscriptssilorgOFL
7
+ Designer : Yanone
8
+ Foundry : Yanone
9
+ Foundry URL : httpyanonedetypedesign
10
+ </metadata>
11
+ <defs>
12
+ <font id="webfont1BSMunJa" horiz-adv-x="851" >
13
+ <font-face units-per-em="2048" ascent="1638" descent="-410" />
14
+ <missing-glyph horiz-adv-x="319" />
15
+ <glyph unicode=" " horiz-adv-x="319" />
16
+ <glyph unicode="&#x09;" horiz-adv-x="319" />
17
+ <glyph unicode="&#xa0;" horiz-adv-x="319" />
18
+ <glyph unicode="!" horiz-adv-x="397" d="M86 102q0 49 30.5 84t82.5 35q115 0 114 -119q0 -45 -32 -82q-31 -35 -82 -34q-113 -1 -113 116zM92 1397q-4 37 37 43q40 6 190 6l-32 -930q-4 -53 -33 -65q-31 -12 -133 -13z" />
19
+ <glyph unicode="&#x22;" horiz-adv-x="538" d="M70 1602q14 8 63 8q63 0 94 -6q0 -76 -16 -240q-14 -152 -27 -164l-92 -6q-42 396 -22 408zM319 1602q14 8 66 8q63 0 94 -6q0 -76 -16 -240q-14 -152 -27 -164l-92 -6q-8 39 -22 215q-15 183 -3 193z" />
20
+ <glyph unicode="#" d="M55 389q0 86 6.5 108.5t28.5 22.5h86l10 217h-131q0 86 6.5 108.5t28.5 22.5h105l6 129q2 20 30 27q28 6 117 6l-8 -162h195l6 129q2 20 30 27q28 6 117 6l-8 -162h119q0 -113 -15 -125q-6 -6 -18 -6h-94l-10 -217h137q0 -115 -15 -127q-4 -4 -18 -4h-113l-6 -137 q-4 -23 -31 -29q-18 -4 -116 -4l8 170h-195l-6 -137q-4 -23 -31 -29q-18 -4 -116 -4l8 170h-113zM322 520h194l10 217h-194z" />
21
+ <glyph unicode="$" d="M106 76q0 18 13 65q12 43 33 68q76 -59 217 -59q190 0 190 174q0 57 -24 102q-25 47 -89 113l-229 233q-109 115 -108 227q0 109 67 177q66 66 193 84v182q0 41 37 53q43 14 114 14v-247q72 -4 121 -19q57 -18 70 -29q20 -16 20 -24q0 -66 -41 -117q-61 43 -201 43 q-199 0 -198 -115q0 -74 88 -163l248 -248q117 -117 116 -268q0 -281 -258 -328v-178q0 -41 -34 -54q-34 -12 -117 -12v236q-63 2 -127 20q-55 14 -78 35q-23 19 -23 35z" />
22
+ <glyph unicode="%" horiz-adv-x="1413" d="M90 1075q0 375 291 375q141 0 206.5 -82t65.5 -291q0 -383 -284 -383q-96 0 -153.5 29t-90.5 111q-35 87 -35 241zM238 47l825 1405q94 -31 94 -72q0 -10 -203 -360l-409 -692l-205 -344q-102 28 -102 63zM250 1071q0 -145 28.5 -196.5t94.5 -51.5q127 0 127 252 q0 143 -29 194.5t-90 51.5q-65 0 -98 -55q-33 -54 -33 -195zM762 362q0 375 291 375q141 0 206.5 -82t65.5 -290q0 -383 -285 -383q-98 0 -155.5 28.5t-89.5 110.5q-33 83 -33 241zM920 354q0 -147 28 -198q27 -49 94 -50q129 0 129 252q0 143 -28.5 194.5t-91.5 51.5 q-65 0 -99 -55q-32 -54 -32 -195z" />
23
+ <glyph unicode="&#x26;" horiz-adv-x="1026" d="M53 348q0 121 64 221q61 98 166 164q-160 273 -160 430q0 135 90 209q89 74 252 74q129 0 219 -29q88 -29 88 -67q0 -70 -41 -123q-106 72 -246 71q-90 0 -139 -30q-47 -29 -47 -125q0 -102 121 -316q119 -211 280 -415q16 88 17 184q0 268 -123 420q88 16 235 16 q88 0 158 -6q6 -12 6 -61q0 -37 -18.5 -55.5t-67.5 -18.5h-100q72 -131 72 -316q0 -172 -52 -313q111 -125 170 -149q-2 -45 -41 -90q-37 -43 -67 -43q-33 0 -150 129q-113 -129 -305 -129q-381 -1 -381 368zM225 344q0 -90 47 -149q45 -57 152 -58q133 0 207 99 q-131 158 -275 376q-131 -94 -131 -268z" />
24
+ <glyph unicode="'" horiz-adv-x="286" d="M70 1602q14 8 63 8q63 0 94 -6q0 -76 -16 -240q-14 -152 -27 -164l-92 -6q-42 396 -22 408z" />
25
+ <glyph unicode="(" horiz-adv-x="595" d="M133 655q0 180 33 365q29 158 76 280q45 117 92 193t84 117q33 35 45 35q41 0 59 -23q16 -18 33 -84q-252 -332 -252 -876q-2 -319 78 -576q82 -258 174 -362q-23 -123 -92 -123q-15 0 -49 37q-29 31 -82 124q-49 86 -92 203q-47 127 -76 301q-31 184 -31 389z" />
26
+ <glyph unicode=")" horiz-adv-x="595" d="M43 -276q101 138 178 374q76 236 74 564q0 283 -72 516q-70 227 -180 360q16 66 33 84q18 23 59 23q12 0 45 -33q31 -31 84 -117q47 -78 92 -188q45 -115 76 -283q33 -184 33 -369q0 -197 -31 -374q-29 -166 -76 -297q-43 -120 -92 -209q-51 -92 -84 -131 q-37 -43 -47 -43q-70 0 -92 123z" />
27
+ <glyph unicode="*" horiz-adv-x="960" d="M33 1030q-3 71 37 111q39 39 71 24l267 -168q4 -35 -11 -51q-12 -16 -39 -6zM135 614l248 252q35 35 76 -16l-180 -320q-33 -33 -74 -2q-39 29 -70 86zM406 1366q-4 23 16 35q16 10 45 10q53 0 102 -25l-41 -323q-4 -27 -16 -33q-14 -6 -59 2zM508 860q8 14 47 29 l236 -277q28 -34 -19 -67q-45 -33 -102 -43l-160 323q-10 23 -2 35zM573 932q-43 57 5 82l303 164q49 -40 49 -111q0 -47 -31 -57z" />
28
+ <glyph unicode="+" d="M70 504q0 89 6 117q6 29 28 28h252v252q0 25 29 31q18 4 117 4v-287h284q0 -80 -4 -117q-4 -29 -28 -28h-252v-252q0 -23 -29 -29q-18 -4 -117 -4v285h-286z" />
29
+ <glyph unicode="," horiz-adv-x="372" d="M78 -164q51 84 57 176q-47 29 -47 101q0 47 29 75q31 31 76 31q113 0 112 -123q0 -100 -63 -202q-65 -104 -99 -105q-55 0 -65 47z" />
30
+ <glyph unicode="-" horiz-adv-x="567" d="M76 504q0 89 6 117q6 29 27 28h385q0 -98 -5 -117q-6 -29 -30 -28h-383z" />
31
+ <glyph unicode="." horiz-adv-x="372" d="M76 104q0 51 30 84q31 35 84 35q115 0 115 -119q0 -51 -30.5 -83.5t-84.5 -32.5q-114 -1 -114 116z" />
32
+ <glyph unicode="/" horiz-adv-x="684" d="M20 -41l461 1563q6 22 19 30q12 10 45 13q23 2 121 2l-461 -1567q-10 -29 -35 -35q-27 -6 -150 -6z" />
33
+ <glyph unicode="0" d="M59 606q0 309 91 467q88 156 282.5 156t280.5 -142q84 -137 84 -432q0 -346 -84 -509.5t-291 -163.5q-203 0 -283 151q-80 150 -80 473zM238 594q0 -254 43 -358q43 -102 145 -102.5t149 122.5q47 125 48 401q0 223 -39 322q-41 102 -144 102q-113 0 -157.5 -120.5 t-44.5 -366.5z" />
34
+ <glyph unicode="1" d="M57 115q0 43 295 43l23 899q-25 0 -90 -10q-55 -8 -101 -19l-43 -8q-25 49 -24 108q0 20 164 60q170 41 225 41q31 0 47 -10l-27 -1061h152l119 6v-74q0 -8 -3 -26.5t-3 -20.5q-2 -25 -11 -35q-6 -8 -18 -8h-701q-4 86 -4 115z" />
35
+ <glyph unicode="2" d="M59 51q0 43 9 66q6 18 41 80q53 86 147 206l156 189q74 88 116 168q49 92 50 168q0 141 -158 141q-178 0 -299 -72q-20 43 -21 123q0 41 109 74q115 35 254 35q170 0 237 -68q66 -66 66 -211q0 -98 -49 -202q-47 -98 -117 -183l-164 -196q-106 -129 -157 -211h274l242 14 q0 -106 -6.5 -139t-28.5 -33h-694q-7 24 -7 51z" />
36
+ <glyph unicode="3" d="M86 1118q0 41 100.5 76t253.5 35q285 0 285 -244q0 -209 -223 -369q123 -12 196.5 -85.5t73.5 -219.5q0 -248 -129 -383q-127 -133 -334 -133q-106 0 -164 29q-55 29 -55 72q0 39 23 122q72 -63 200 -63q133 0 207 98.5t74 253.5q0 211 -326 211l-4 107q133 63 201 143 q72 84 72 168q0 133 -148 133q-162 0 -280 -72v-2q-23 49 -23 123z" />
37
+ <glyph unicode="4" d="M57 414q0 88 158 395q160 311 268 403q35 29 76 29q55 0 94 -24l-6 -795l152 6q8 -14 8 -59q-4 -102 -55 -103h-105v-213q0 -41 -20.5 -47t-145.5 -6v266h-370q-54 54 -54 148zM201 422h280l23 590q-84 -96 -174 -273q-94 -184 -129 -317z" />
38
+ <glyph unicode="5" d="M70 -121q0 83 18 135q70 -63 199 -63q160 0 235 119q78 121 78 292q0 166 -80 227.5t-237 61.5q-90 0 -197 -26l59 604h627q0 -94 -16 -123q-14 -27 -72 -27l-397 8l-31 -307q68 10 119 11q401 6 401 -394q0 -283 -116.5 -442.5t-356.5 -159.5q-82 0 -133 15 q-55 14 -78 34q-22 19 -22 35z" />
39
+ <glyph unicode="6" d="M63 631q0 807 465 807q223 0 224 -70q0 -72 -17 -119q-86 31 -192 31q-298 0 -320 -528q92 147 281 147q137 0 217 -96q80 -95 80 -301q0 -518 -389 -518q-92 0 -156 30q-70 33 -104 80q-37 49 -56 139q-23 104 -26 177q-7 89 -7 221zM223 582q-4 -244 43 -344 q49 -106 154 -107q102 0 159.5 94t57.5 242q0 279 -182 278q-133 0 -232 -151v-12z" />
40
+ <glyph unicode="7" d="M90 1229h737q-215 -422 -331 -746q-121 -334 -162 -663q-100 0 -133 8q-37 9 -37 37q39 303 172 659q131 354 264 561q-117 -6 -463 -6q-47 0 -47 150z" />
41
+ <glyph unicode="8" d="M63 377q0 129 64 229q66 102 170 164q-98 66 -133 109q-86 83 -86 215q0 168 100.5 260t249.5 92q365 0 365 -332q0 -209 -222 -358q84 -68 109 -94q121 -127 121 -289q0 -168 -92.5 -278.5t-264.5 -110.5q-197 0 -289 108.5t-92 284.5zM219 385q0 -113 57 -176 q59 -66 158 -66q94 0 149.5 61.5t55.5 172.5q0 127 -92 207q-37 37 -117 94q-211 -107 -211 -293zM246 1104q0 -101 80 -166q37 -37 123 -96q190 123 190 266q0 90 -53.5 135t-134.5 45q-88 0 -148 -47q-57 -45 -57 -137z" />
42
+ <glyph unicode="9" d="M55 733q0 514 389 514q213 0 281 -133q66 -127 72 -506q-2 -420 -127 -620q-123 -201 -387 -201q-184 0 -185 68q0 49 15 112q63 -20 149 -20q184 0 268 135q82 133 101 383q-94 -143 -277 -143q-133 0 -217 108q-82 106 -82 303zM219 754q0 -131 49 -205t135 -74 q135 0 234 148v12q0 244 -39 356q-37 109 -152 109q-106 0 -167 -88q-60 -86 -60 -258z" />
43
+ <glyph unicode=":" horiz-adv-x="372" d="M76 104q0 51 30 84q31 35 84 35q115 0 115 -119q0 -51 -30.5 -83.5t-84.5 -32.5q-114 -1 -114 116zM76 791q0 49 30.5 83.5t83.5 34.5q115 0 115 -118q0 -49 -31 -84q-31 -33 -84 -33q-114 0 -114 117z" />
44
+ <glyph unicode=";" horiz-adv-x="372" d="M70 -164q51 90 57 176q-47 29 -47 101q0 43 29 75q28 31 73 31q113 0 113 -123q0 -98 -61.5 -202.5t-98.5 -104.5q-55 0 -65 47zM72 791q0 47 32 83q31 35 82 35q115 0 115 -118q0 -49 -31 -84q-31 -33 -84 -33q-114 0 -114 117z" />
45
+ <glyph unicode="&#x3c;" horiz-adv-x="817" d="M80 528q0 61 53 90l541 265q57 -53 59 -113q0 -34 -31 -49l-405 -199l440 -196q-2 -51 -26 -90q-25 -41 -47 -41q-14 0 -58 16l-500 221q-26 45 -26 96z" />
46
+ <glyph unicode="=" d="M70 313q0 89 6 117q6 29 28 29h682q0 -80 -4 -117q-4 -29 -28 -29h-684zM70 694q0 89 6 117q6 29 28 29h682q0 -80 -4 -117q-4 -29 -28 -29h-684z" />
47
+ <glyph unicode="&#x3e;" horiz-adv-x="817" d="M88 731q2 51 26.5 90t49 39t55.5 -14l500 -221q29 -47 29 -97q0 -61 -56 -90l-540 -264q-51 51 -58 111q0 35 29 51l407 199z" />
48
+ <glyph unicode="?" horiz-adv-x="602" d="M39 1366q0 33 82 61q78 27 174 27q135 0 209 -72q76 -74 76 -213q0 -115 -35 -196q-35 -80 -105 -172q-76 -98 -88 -123q-25 -43 -24 -96q0 -28 6 -62q2 -10 4 -27.5t4 -21.5q4 -12 -2 -27q-14 -18 -64 -20q-59 -4 -86 4q-31 61 -30 145q0 83 37 148q23 47 88 135 q61 84 88 143q29 63 28 129q0 158 -168 158q-94 0 -170 -51q-24 72 -24 131zM152 104q0 47 32 84q31 35 82 35q115 0 115 -119q0 -51 -31 -83.5t-84 -32.5q-114 -1 -114 116z" />
49
+ <glyph unicode="@" horiz-adv-x="1509" d="M96 541q0 436 189 647q187 209 522 209q311 0 461 -152q152 -156 151 -510q0 -731 -329 -731q-68 0 -125 47q-61 -49 -224 -49q-125 -2 -192.5 61.5t-63.5 253.5q6 334 260 334q78 0 119 -22q4 94 4 125q4 68 -28 92q-33 27 -95 26q-115 0 -204 -51q-18 35 -19 97 q4 29 19 40q94 53 260 54q115 0 172 -54q55 -53 53 -184l-10 -412q-4 -141 -10 -202q31 -12 65 -13q27 0 59 29q29 25 58 90q29 61 43 170q16 119 16 256q0 309 -96 434q-94 123 -348 123q-180 0 -295 -65q-114 -65 -178 -228q-63 -160 -64 -438q0 -188 21 -313 q23 -135 57 -215q35 -76 102 -131q61 -49 134 -68q74 -18 174 -18q274 0 477 88q45 -57 45 -119q0 -31 -59 -61q-49 -27 -179 -50q-115 -20 -270 -20q-121 0 -215 16q-92 16 -182 70q-92 55 -147.5 153.5t-92.5 272.5q-35 166 -35 418zM643 311q-2 -106 24.5 -145t86.5 -39 q98 0 102 109l8 292q-43 6 -71 7q-74 0 -111 -50q-35 -47 -39 -174z" />
50
+ <glyph unicode="A" horiz-adv-x="892" d="M10 2l365 1409q6 29 63 29q47 0 78 -6l367 -1403q4 -18 -10.5 -26.5t-61.5 -8.5q-45 0 -98 4l-88 365h-353l-79 -336q-4 -14 -9 -19q-8 -6 -22 -10q-20 -4 -47 -4q-44 0 -105 6zM307 516h283l-70 291q-53 229 -71 393q-25 -186 -72 -393z" />
51
+ <glyph unicode="B" horiz-adv-x="768" d="M88 0v1395q0 39 55 39h203q344 0 344 -318q0 -154 -59 -237q-55 -80 -137 -93q37 -2 77 -16q35 -12 76 -43q39 -29 64 -92q25 -61 24 -148q0 -246 -108.5 -366.5t-280.5 -120.5h-258zM258 145h92q84 0 137 80q53 82 54 248q0 145 -45 188.5t-144 43.5h-94v-560zM258 848 h100q68 0 109 59.5t41 175.5q0 203 -152 203h-98v-438z" />
52
+ <glyph unicode="C" horiz-adv-x="692" d="M63 657q0 203 25 353q23 143 64 233q35 80 94 135q55 51 108 68q49 14 113 14q193 0 192 -112q0 -51 -26 -101q-57 51 -133 51q-37 0 -76 -14q-35 -12 -72 -53q-33 -35 -59 -109q-20 -55 -37 -184q-16 -125 -16 -272q0 -197 28 -318q29 -119 70 -153q43 -37 106 -37 q113 0 189 63q25 -53 24 -100q0 -61 -71 -105q-70 -43 -183 -43q-65 0 -110 13q-43 12 -92 57q-47 45 -74 115q-29 80 -47 198q-17 113 -17 301z" />
53
+ <glyph unicode="D" horiz-adv-x="802" d="M90 0v1395q0 39 55 39h199q137 0 223 -56q84 -53 131 -200q47 -145 47 -387q0 -434 -100 -611q-102 -180 -299 -180h-256zM256 158h92q45 0 78 24q37 27 66 86q33 68 47 201q16 143 16 338q0 276 -47 373q-49 100 -158 100h-94v-1122z" />
54
+ <glyph unicode="E" horiz-adv-x="653" d="M90 0v1399q4 35 35 35h489q0 -98 -4 -127q-4 -23 -26 -23h-326v-428h307q0 -96 -4 -129q-4 -25 -26 -25h-277v-552h350q0 -98 -4 -127q-4 -23 -29 -23h-485z" />
55
+ <glyph unicode="F" horiz-adv-x="636" d="M90 0v1399q4 35 35 35h489q0 -94 -4 -123q-2 -20 -26 -21h-326v-434h307q0 -92 -4 -125q-4 -27 -26 -26h-277v-672q2 -33 -33 -33h-135z" />
56
+ <glyph unicode="G" horiz-adv-x="786" d="M55 684q0 231 29 391q29 154 90 236q61 78 137 110q74 31 183 31q98 0 159 -31q59 -29 59.5 -71.5t-22.5 -104.5q-59 49 -162 49q-160 0 -227.5 -131t-67.5 -469q0 -238 27 -356q29 -127 70 -160q45 -35 114 -35q88 0 119 50v507h-149v107q0 35 39 35h268l-2 -770 q-106 -90 -279 -90q-145 0 -225 55q-78 55 -119 209q-41 157 -41 438z" />
57
+ <glyph unicode="H" horiz-adv-x="835" d="M90 0v1399q0 29 21 31q29 4 145 4v-584h326v549q0 27 20 31q25 4 146 4v-1401q0 -27 -21 -29q-29 -4 -145 -4v696h-326v-663q0 -27 -20 -29q-29 -4 -146 -4z" />
58
+ <glyph unicode="I" horiz-adv-x="342" d="M88 0v1358q0 59 21 67q18 8 147 9v-1401q0 -27 -20 -29q-29 -4 -148 -4z" />
59
+ <glyph unicode="J" horiz-adv-x="624" d="M41 102q0 41 27 95q76 -68 168 -68q84 0 108.5 55.5t24.5 190.5v983q0 57 22 67q18 8 148 9v-1096q0 -166 -62 -262q-61 -94 -219 -94q-117 0 -168 34q-49 34 -49 86z" />
60
+ <glyph unicode="K" horiz-adv-x="802" d="M86 0v1399q0 29 20 31q29 4 148 4v-619l326 608q59 12 106 13q73 0 73 -31q0 -8 -5 -19l-330 -571q248 -186 328 -778q2 -23 -11 -33q-10 -8 -57 -8q-55 0 -117 6q-49 261 -98 412q-49 150 -131 237q-33 33 -84 56v-674q0 -27 -21 -29q-28 -4 -147 -4z" />
61
+ <glyph unicode="L" horiz-adv-x="647" d="M88 0v1386q0 35 21 41q22 6 147 7v-1278h352v-123q0 -33 -35 -33h-485z" />
62
+ <glyph unicode="M" horiz-adv-x="999" d="M88 0v1399q0 23 8 28q10 6 27 7h121l194 -619l66 -229q39 156 59 223l180 590q10 35 33 35h135v-1401q0 -25 -22 -29q-29 -4 -148 -4l7 498l36 604q-117 -424 -131 -459l-108 -311q-4 -16 -23 -17h-71l-107 328q0 2 -14.5 51l-48 165l-70.5 247v-2q35 -365 39 -598 l4 -473q0 -27 -23 -29q-32 -4 -143 -4z" />
63
+ <glyph unicode="N" horiz-adv-x="907" d="M88 0v1399q0 35 35 35h127l229 -553q45 -119 195 -578v6q-20 166 -21 609v481q0 29 21 31q29 4 147 4v-1401q0 -33 -35 -33h-124l-234 563q-39 92 -195 580q20 -211 21 -613v-497q0 -27 -21 -29q-28 -4 -145 -4z" />
64
+ <glyph unicode="O" horiz-adv-x="874" d="M61 725q0 401 93 563q92 164 299 164q205 0 284 -156q80 -157 80 -565q0 -414 -90 -581.5t-297 -167.5q-138 0 -215 61q-74 59 -115 225q-39 158 -39 457zM248 684q0 -292 43 -412q43 -121 147 -120q113 0 156 131q43 129 43 444q0 313 -39 432q-41 123 -149.5 123 t-153.5 -133q-47 -137 -47 -465z" />
65
+ <glyph unicode="P" horiz-adv-x="735" d="M88 0v1399q0 35 35 35h203q197 0 286.5 -96.5t89.5 -309.5q0 -238 -104 -342t-272 -104h-72v-549q0 -27 -21 -29q-28 -4 -145 -4zM254 735h90q88 0 131 74t43 238q0 242 -162 241h-102v-553z" />
66
+ <glyph unicode="Q" horiz-adv-x="874" d="M61 725q0 401 93 563q92 164 299 164q205 0 284 -156q80 -157 80 -565q0 -336 -57.5 -506t-181.5 -219q14 -82 38 -115q25 -35 72 -34q74 0 127 34q25 -37 25 -90q0 -45 -57.5 -63.5t-127.5 -18.5q-106 0 -170 62q-65 61 -98 203q-125 10 -190 75q-70 70 -103 228 q-33 155 -33 438zM248 684q0 -292 43 -412q43 -121 147 -120q113 0 156 131q43 129 43 444q0 313 -39 432q-41 123 -149.5 123t-153.5 -133q-47 -137 -47 -465z" />
67
+ <glyph unicode="R" horiz-adv-x="761" d="M88 0v1399q0 35 35 35h203q197 0 286.5 -96.5t89.5 -309.5q0 -299 -178 -401q172 -227 193 -590q0 -25 -14.5 -33t-69.5 -8l-98 4q-25 389 -168 584q-10 -2 -41 -2h-72v-549q0 -27 -21 -29q-28 -4 -145 -4zM254 735h90q88 0 131 70q43 72 43 231q0 252 -162 252h-102 v-553z" />
68
+ <glyph unicode="S" horiz-adv-x="731" d="M51 102q0 63 43 119q82 -72 211 -71q201 0 201 208q0 72 -25 131q-23 53 -94 136l-207 239q-127 158 -127 295q0 133 92 213q94 82 261 82q268 0 268 -102q0 -51 -41 -97q-63 51 -201 52q-92 0 -145.5 -37t-53.5 -105q0 -94 95 -202l221 -252q78 -94 108 -170 q29 -72 29 -176q0 -172 -86 -278.5t-281 -106.5q-127 0 -198 36q-70 37 -70 86z" />
69
+ <glyph unicode="T" horiz-adv-x="761" d="M16 1278v121q0 35 35 35h697v-123q0 -33 -35 -33h-252v-1245q0 -27 -21 -29q-29 -4 -145 -4v1278h-279z" />
70
+ <glyph unicode="U" horiz-adv-x="892" d="M88 418v981q0 29 21 31q29 4 151 4v-1020q0 -141 39 -211t158 -70q113 0 180 37v1229q0 27 22 31q29 4 146 4v-1381q-47 -31 -139 -51q-100 -23 -209 -22q-96 0 -164 24q-74 27 -109 59q-39 35 -61 99q-23 61 -29 117q-6 57 -6 139z" />
71
+ <glyph unicode="V" horiz-adv-x="858" d="M12 1423q4 10 39 11h135l170 -793q16 -88 82 -500q37 299 74 500l152 743q2 27 12 39q8 10 31 11h145l-315 -1440q-51 -8 -140 -8q-70 0 -98 118q-78 311 -285 1280q-5 15 -5 26q0 7 3 13z" />
72
+ <glyph unicode="W" horiz-adv-x="1339" d="M10 1411q0 12 10 19q6 4 29 4h137l148 -793q35 -197 61 -461h13q10 223 53 461l125 674q4 31 12 39q10 10 31 10h119l143 -723q29 -143 61 -459h13q23 279 51 459l131 743q2 27 12 39q8 10 31 11h141l-268 -1440q-109 -10 -139 -10q-68 0 -90 116l-105 459 q-18 90 -63 467q-49 -399 -60 -465l-112 -567q-59 -8 -152 -8q-59 0 -84 127l-244 1271q-4 21 -4 27z" />
73
+ <glyph unicode="X" horiz-adv-x="866" d="M18 0l312 741l-256 664q-6 20 16 25q33 4 180 4l82 -232q43 -119 101 -307q51 170 102 307l78 205q6 18 29 23q29 4 151 4l-264 -680l293 -725q5 -10 5 -16q0 -13 -22 -13h-182l-111 276q-59 154 -108 299q-68 -195 -113 -299l-110 -256q-12 -20 -39 -20h-144z" />
74
+ <glyph unicode="Y" horiz-adv-x="743" d="M12 1407q-2 5 -1 8q0 12 16 15q29 4 174 4l82 -281q27 -84 63 -240q33 -141 37 -188q2 33 39 186q16 72 63 242l72 250q10 25 31 27q29 4 149 4l-276 -842v-559q0 -27 -21 -29q-29 -4 -145 -4v580z" />
75
+ <glyph unicode="Z" horiz-adv-x="786" d="M31 66q0 35 16 73l514 1145h-381q-72 0 -90 -6v121q0 35 35 35h612q16 -29 17 -56q0 -47 -17 -73l-522 -1155h395q84 0 121 14v-131q0 -33 -35 -33h-639q-26 21 -26 66z" />
76
+ <glyph unicode="[" horiz-adv-x="786" d="M248 -408v2038q0 34 18 43q16 8 109 8h395q0 -106 -8 -129q-8 -25 -47 -24h-299v-1780h352q0 -115 -8 -133q-10 -23 -47 -23h-465z" />
77
+ <glyph unicode="\" horiz-adv-x="673" d="M25 1522q-12 33 14 39q25 6 147 6l465 -1587q10 -29 -18 -35q-25 -6 -148 -6z" />
78
+ <glyph unicode="]" horiz-adv-x="786" d="M18 -410q0 106 9 129q10 25 47 25h299v1784h-353q0 115 9 133q10 23 47 22h465v-2041q0 -34 -19 -43q-16 -8 -110 -9h-394z" />
79
+ <glyph unicode="^" horiz-adv-x="878" d="M98 512l355 303l297 -260q29 -29 28 -55q0 -29 -22.5 -51.5t-57.5 -26.5l-264 178l-209 -154q-33 -20 -51 -20q-31 0 -53 25q-19 22 -23 61z" />
80
+ <glyph unicode="_" horiz-adv-x="770" d="M27 -223q0 89 6 117q6 29 28 28h682q0 -80 -4 -117q-4 -29 -28 -28h-684z" />
81
+ <glyph unicode="`" horiz-adv-x="348" d="M0 1376q10 51 29 86q23 41 49 41q12 0 127 -98q113 -98 145 -143q-25 -92 -63 -93q-10 0 -137 91q-125 87 -150 116z" />
82
+ <glyph unicode="a" horiz-adv-x="722" d="M59 291q0 197 74 266q72 70 199 70q98 0 149 -27v162q0 72 -30.5 96.5t-96.5 24.5q-166 0 -270 -45q-23 41 -23 94q0 41 22.5 57.5t119.5 36.5q86 18 192 18q137 0 195 -57q59 -59 59 -192v-109q0 -449 -12 -637q-115 -70 -285 -69q-63 0 -110 10q-51 10 -90 37 q-45 31 -70 96q-23 62 -23 168zM233 295q0 -104 33 -139q33 -37 101 -37q74 0 108 35q6 68 6 329q-39 18 -96 19q-74 0 -113 -41t-39 -166z" />
83
+ <glyph unicode="b" horiz-adv-x="782" d="M96 41v1386q0 53 29 66q27 12 137 12v-532q90 72 219 71q125 0 189 -94q61 -92 61 -309q0 -158 -26 -295q-25 -121 -64 -194q-37 -70 -92 -109q-53 -39 -105 -51q-49 -12 -108 -12q-163 0 -240 61zM262 154q33 -27 96 -27q31 0 60 18q31 20 59 64q31 46 49 147 q18 102 19 248q0 162 -33 225q-35 66 -106 66q-80 0 -144 -57v-684z" />
84
+ <glyph unicode="c" horiz-adv-x="638" d="M63 489q0 137 23 246q20 98 57 162q34 58 86 92q57 37 99 45q51 10 104 10q74 0 121 -26q49 -27 49 -66q0 -46 -18 -92q-63 37 -144 37q-39 0 -73.5 -14.5t-63.5 -51t-47 -124.5q-18 -86 -18 -218q0 -211 43 -286.5t139 -75.5q86 0 162 47q16 -61 16 -90 q0 -43 -65.5 -73.5t-163.5 -30.5q-106 0 -168 36q-63 39 -101 150q-37 112 -37 323z" />
85
+ <glyph unicode="d" horiz-adv-x="788" d="M66 475q0 283 88 428q86 141 227 141q92 0 145 -40v426q0 51 29 63q27 12 137 12v-1464q-127 -61 -293 -61q-66 0 -104 8q-49 10 -88 37q-49 33 -76 81q-29 53 -47 148q-18 92 -18 221zM252 494q0 -215 37 -289q39 -76 117 -76q74 0 120 31v712q-33 27 -94 27 q-180 1 -180 -405z" />
86
+ <glyph unicode="e" horiz-adv-x="737" d="M63 459q0 193 29 307q29 119 88 180q51 53 113 78q53 20 133 20q260 0 260 -329q0 -160 -22 -266q-170 -33 -428 -33q6 -160 49 -217.5t141 -57.5q125 0 233 64q14 -41 15 -113q0 -47 -82 -80q-80 -33 -201 -32q-72 0 -133 20q-53 18 -100 68q-47 51 -72 147 q-23 90 -23 244zM238 551h35q152 0 241 22q10 51 10 123q-2 113 -26.5 158t-89.5 45q-154 0 -170 -348z" />
87
+ <glyph unicode="f" horiz-adv-x="520" d="M25 883q0 100 6 120.5t37 20.5h98v123q0 114 31 190q31 78 84 113q55 37 108 49q61 14 121 14q190 0 190 -83q0 -49 -18 -93q-59 25 -145 25q-96 0 -150 -39q-55 -41 -55 -162v-137h184q0 -104 -4 -119q-6 -23 -31 -22h-149v-850q0 -33 -33 -33h-133v883h-141z" />
88
+ <glyph unicode="g" horiz-adv-x="802" d="M45 -180q0 141 156 246q-61 18 -95 45q-34 28 -30 67q4 80 131 184q-127 84 -127 308q0 375 340 374q43 0 102 -16h246q16 -29 16 -80q0 -63 -57 -63q-23 0 -74 10q78 -78 78 -221q0 -358 -332 -359q-61 0 -92 9q-53 -53 -53 -91q0 -23 45 -34q33 -8 147 -23l50 -6 q139 -23 202 -72q68 -53 68 -168q0 -141 -100.5 -237t-292.5 -96q-328 0 -328 223zM217 -141q0 -52 37 -80q39 -29 135 -29q100 0 154 47q55 49 55 111q0 68 -47 94q-49 29 -186 37q-4 0 -37 4q-111 -83 -111 -184zM256 674q0 -121 30.5 -176.5t121.5 -55.5q156 0 155 271 q0 209 -149 209q-74 0 -115 -60q-43 -61 -43 -188z" />
89
+ <glyph unicode="h" horiz-adv-x="776" d="M92 0v1430q0 51 27 63q29 12 139 12v-540q92 80 229 79q125 0 168 -65q45 -68 45 -205v-741q0 -25 -24 -29q-33 -4 -148 -4v727q0 78 -24.5 121t-91.5 43q-90 0 -154 -57v-801q0 -25 -22 -29q-29 -4 -144 -4z" />
90
+ <glyph unicode="i" horiz-adv-x="356" d="M94 0v948q0 51 29 64q31 12 141 12v-991q0 -25 -22 -29q-29 -4 -148 -4zM96 1350q2 123 97 123q47 0 65 -27q17 -25 17 -76q0 -8 -1 -16q0 -133 -94 -133q-84 0 -84 129z" />
91
+ <glyph unicode="j" horiz-adv-x="374" d="M-209 -293q0 52 25 86q72 -41 172 -41q76 0 100 43q23 39 23 158v995q0 51 28.5 63.5t136.5 12.5v-1098q0 -158 -57 -241q-59 -86 -211 -86q-217 -1 -217 108zM106 1350q4 123 97 123q47 0 65 -27q17 -25 17 -76v-16q0 -133 -95 -133q-84 0 -84 129z" />
92
+ <glyph unicode="k" horiz-adv-x="778" d="M94 0v1430q0 51 29 63t139 12v-555q109 94 256 94q174 0 174 -176q0 -182 -170 -317q78 -33 135 -125q55 -89 68 -221q2 -14 2 -68q0 -49 -6 -104q-4 -23 -21 -29q-14 -4 -168 -4q8 84 9 131q0 70 -11 121q-18 119 -67 170q-41 43 -89 43q-11 0 -22 -2q-10 -2 -39 -14 q-33 -14 -37 -17l-14 -8v-391q0 -27 -20 -29q-29 -4 -148 -4zM262 543q246 100 246 268q0 84 -76 84q-90 0 -170 -98v-254z" />
93
+ <glyph unicode="l" horiz-adv-x="352" d="M94 0v1430q0 51 29 63t137 12v-1472q0 -27 -20 -29q-29 -4 -146 -4z" />
94
+ <glyph unicode="m" horiz-adv-x="1150" d="M94 0v977q152 68 309 67q123 0 185 -63q113 63 252 63q143 0 186 -67.5t43 -220.5v-723q0 -25 -22 -29q-29 -4 -144 -4v758q0 80 -20 108q-22 31 -80 31q-78 0 -137 -39v-825q0 -27 -21 -29q-29 -4 -145 -4v797q-4 59 -21 80q-18 23 -80 22q-70 0 -139 -35v-831 q0 -25 -22 -29q-29 -4 -144 -4z" />
95
+ <glyph unicode="n" horiz-adv-x="780" d="M92 0v975q158 70 324 69q158 0 225 -63q63 -61 64 -211v-737q0 -25 -23 -29q-29 -4 -150 -4v721q0 98 -24 139q-25 39 -98 39q-84 0 -152 -37v-829q0 -25 -22 -29q-29 -4 -144 -4z" />
96
+ <glyph unicode="o" horiz-adv-x="751" d="M49 512q0 532 340 532q170 0 244 -112.5t74 -413.5q0 -279 -84 -409q-83 -129 -252 -129q-84 0 -140 18q-57 18 -100 74q-45 59 -63 164q-19 107 -19 276zM229 508q0 -166 19 -252q18 -84 47 -111q28 -25 80 -24q72 0 112 86q39 84 39 309q0 233 -32 307q-33 76 -111 76 q-74 0 -115 -84q-39 -80 -39 -307z" />
97
+ <glyph unicode="p" horiz-adv-x="782" d="M94 -332v1295q127 82 299 81q162 0 248 -94q86 -95 86 -332q0 -639 -305 -638q-104 0 -162 57v-426q-35 -14 -86 -14q-41 0 -61 16q-19 15 -19 55zM260 197q40 -68 111 -68q172 0 172 471q0 174 -37 236q-39 63 -121 63q-72 0 -125 -39v-663z" />
98
+ <glyph unicode="q" horiz-adv-x="796" d="M63 446q0 313 115 457q113 141 305 141q131 0 219 -63v-1315q0 -45 -18 -57q-16 -12 -80 -15q-35 0 -69 7v469q-61 -90 -195 -90q-55 0 -98 18q-47 20 -88 63q-43 45 -68 146q-23 89 -23 239zM252 451q0 -100 12 -168q12 -72 35 -99q27 -35 49 -45q29 -14 53 -14 q94 0 134 104v641q-35 29 -95 29q-95 0 -141 -104q-47 -106 -47 -344z" />
99
+ <glyph unicode="r" horiz-adv-x="536" d="M92 0v952q133 92 279 92q143 0 143 -86q0 -52 -18 -98q-46 25 -99 25q-78 0 -135 -47l-2 -805q0 -25 -22 -29q-29 -4 -146 -4z" />
100
+ <glyph unicode="s" horiz-adv-x="704" d="M61 84q0 49 29 96q88 -51 205 -51q82 0 123 33q43 35 43 94q0 86 -82 160l-199 170q-117 94 -117 217q0 113 84 178q82 63 250 63q94 0 158 -22q66 -23 82 -45q18 -25 18 -47q0 -45 -37 -84q-90 53 -200 53q-76 0 -119 -24.5t-43 -73.5q0 -59 82 -127l190 -154 q65 -65 93 -123q29 -61 28 -133q0 -135 -90 -209q-92 -76 -248 -75q-250 0 -250 104z" />
101
+ <glyph unicode="t" horiz-adv-x="593" d="M37 881q0 96 6 120q6 23 31 23h102v311q0 39 29 49q25 8 139 9v-369h209q0 -92 -4 -121q-4 -23 -29 -22h-176v-596q0 -66 2 -84q4 -31 19 -51q20 -27 53 -27q57 0 119 31q12 -47 12 -82q0 -92 -176 -92q-123 0 -160 73.5t-37 231.5v596h-139z" />
102
+ <glyph unicode="u" horiz-adv-x="796" d="M90 319v670q0 29 21 31q29 4 151 4v-719q0 -102 26.5 -141t110.5 -39q82 0 138 37v827q0 29 20 31q29 4 145 4v-971q-133 -74 -305 -73q-176 0 -241 79q-66 82 -66 260z" />
103
+ <glyph unicode="v" horiz-adv-x="702" d="M37 973q-2 10 -2 18q0 22 18 27q25 6 162 6l66 -328q10 -51 38 -225q23 -131 31 -211l10 -82h5q31 279 75 520l56 289q2 27 26 33q14 4 150 4l-236 -1030q-31 -6 -117 -6q-49 0 -73 100z" />
104
+ <glyph unicode="w" horiz-adv-x="1103" d="M31 989q-2 25 24 31q16 4 158 4l61 -334q45 -240 72 -497h12q47 324 58 374l63 394q4 23 13 28q9 6 43 6h108l80 -430q14 -61 31 -162l24 -151l8 -59h11q16 233 63 497l53 297q2 27 25 33q14 4 139 4q-213 -1030 -221 -1030q-37 -6 -106 -6q-27 0 -52 28q-29 33 -36 78 l-27 137q-47 225 -74 508q-33 -305 -74 -508l-47 -237q-86 -6 -139 -6q-47 0 -72 100z" />
105
+ <glyph unicode="x" horiz-adv-x="837" d="M31 0l288 535l-247 462q-10 20 8 23q29 4 166 4l76 -139q74 -145 108 -234q59 135 113 234l61 110q8 20 35 25q33 4 152 4l-263 -479l273 -506q6 -13 6 -21q0 -9 -8 -12q-18 -6 -183 -6l-75 133q-74 137 -133 275q-76 -174 -129 -275l-58 -100q-10 -27 -39 -29 q-40 -4 -151 -4z" />
106
+ <glyph unicode="y" horiz-adv-x="727" d="M-8 -315q0 61 24 94q45 -33 129 -33q109 0 150 221l-246 1012q-10 33 8.5 39t153.5 6l111 -487q20 -113 20 -117q8 -51 16 -113l13 -88q6 -43 6 -45q29 244 49 365l90 436q6 37 29 43q25 6 151 6l-252 -1079q-47 -195 -108 -267q-65 -74 -178 -73q-166 0 -166 80z" />
107
+ <glyph unicode="z" horiz-adv-x="681" d="M41 82q0 35 14 63l398 738h-209q-127 0 -187 -11q-6 37 -6 80q0 72 53 72h521q18 -16 18 -51t-20 -82l-385 -737h180q121 0 215 22q6 -28 6 -74q-2 -53 -16 -79q-12 -23 -52 -23h-501q-29 25 -29 82z" />
108
+ <glyph unicode="{" horiz-adv-x="563" d="M84 600q0 55 35 84q27 18 49 35q12 10 29 51q14 37 14 104q0 84 -14.5 213.5t-14.5 194.5q0 238 318 242q31 -41 30 -103q0 -53 -28 -59q-150 -12 -150 -164q0 -33 10.5 -172t10.5 -203q0 -92 -29 -139q-27 -45 -82 -70q55 -20 84 -65q27 -41 27 -129q0 -66 -10.5 -203 t-10.5 -172q0 -108 37 -147q35 -39 127 -52q6 -39 6 -63q0 -90 -57 -90q-147 0 -217 69q-66 66 -66 207q0 78 14.5 199t14.5 205q0 80 -27 112q-29 35 -88 47q-12 28 -12 68z" />
109
+ <glyph unicode="|" horiz-adv-x="659" d="M248 -410v2034q0 33 22 39q20 6 146 6v-2038q0 -31 -23 -37q-14 -4 -145 -4z" />
110
+ <glyph unicode="}" horiz-adv-x="563" d="M37 -203q0 51 31 58q147 12 147 163q0 31 -10 170.5t-10 202.5q0 94 28 141q29 49 80 70q-53 20 -82 66q-27 41 -26 129q0 66 10 203t10 171q0 104 -39 148q-37 39 -125 51q-8 31 -8 64q0 90 61 90q143 0 213 -70q68 -68 68 -207q0 -78 -14.5 -198.5t-14.5 -204.5 q0 -80 27 -113q29 -35 86 -47q14 -31 14 -68q0 -59 -37 -81q-34 -22 -49 -37q-18 -18 -28 -54q-12 -39 -13 -102q0 -88 14.5 -215t14.5 -193q0 -123 -86 -182q-88 -59 -231 -59q-31 46 -31 104z" />
111
+ <glyph unicode="~" horiz-adv-x="817" d="M23 545q27 49 104 90q72 39 160 39q74 0 143 -43q74 -45 123 -45q84 0 143 71q39 27 70 -4q33 -33 35 -88q-37 -52 -105 -92q-66 -39 -157 -39q-80 0 -152 45t-117 45t-102 -37q-61 -39 -74 -41q-28 -3 -49 25q-18 25 -22 74z" />
112
+ <glyph unicode="&#xa2;" d="M170 467q0 498 264 565v178q0 41 35 55.5t117 14.5v-240q39 -8 86 -30q35 -18 35 -37q0 -76 -19 -121q-66 37 -137 37q-39 0 -78 -15q-35 -12 -67.5 -51t-51.5 -127q-18 -90 -18 -223q0 -152 22 -229q20 -74 60 -92q37 -18 108 -19q84 0 160 47q16 -53 16 -104 q0 -31 -49 -60q-51 -29 -114 -34v-189q0 -41 -35 -53q-34 -12 -117 -12v260q-113 14 -166 118q-51 101 -51 361z" />
113
+ <glyph unicode="&#xa3;" horiz-adv-x="747" d="M31 567q0 89 6 117q6 29 26 29h95q10 272 92 389t237 117q88 0 144 -27q59 -29 59 -82q0 -49 -20 -102q-68 43 -146 43q-94 0 -145 -72q-51 -74 -55 -266h266q0 -98 -4 -117q-6 -29 -29 -29h-233q0 -184 16 -401l319 -14q12 -33 13 -76q0 -76 -105 -76h-387 q-20 258 -22 567h-127z" />
114
+ <glyph unicode="&#xa5;" d="M61 1407q-6 20 15 23q29 4 174 4l80 -281q92 -295 98 -389q8 109 102 389l76 250q10 25 31 27q29 4 149 4l-194 -596h182q0 -88 -10 -111q-12 -29 -53 -29h-166l-35 -108v-90h266q0 -80 -12 -111q-12 -29 -53 -29h-201v-327q0 -25 -18 -29q-25 -4 -148 -4v360h-266 q0 78 12 109t53 31h201v80l-41 118h-225q0 80 12 111q12 29 53 29h113z" />
115
+ <glyph unicode="&#xa9;" horiz-adv-x="964" d="M72 1108q0 449 424 448q207 0 303 -102q94 -100 94 -342q0 -225 -107 -340q-108 -117 -307 -117q-206 0 -307 105q-100 102 -100 348zM199 1108q0 -180 69.5 -256t206.5 -76q131 0 211 82q80 84 80 256t-65.5 250t-206.5 78q-295 0 -295 -334zM322 1087q0 166 53 223.5 t135 57.5q31 0 61.5 -12.5t30.5 -20.5q0 -23 -12 -65q-43 14 -70 14q-22 0 -37 -6q-18 -8 -32 -25q-16 -18 -25 -59q-8 -39 -8 -109q0 -96 20.5 -122.5t69.5 -26.5q29 0 78 20q14 -27 14 -59q0 -16 -33 -29q-39 -14 -69 -14q-96 0 -138 43q-38 40 -38 190z" />
116
+ <glyph unicode="&#xad;" horiz-adv-x="567" d="M76 504q0 89 6 117q6 29 27 28h385q0 -98 -5 -117q-6 -29 -30 -28h-383z" />
117
+ <glyph unicode="&#xae;" horiz-adv-x="964" d="M72 1108q0 449 424 448q207 0 303 -102q94 -100 94 -342q0 -225 -107 -340q-108 -117 -307 -117q-206 0 -307 105q-100 102 -100 348zM199 1108q0 -180 69.5 -256t206.5 -76q131 0 211 82q80 84 80 256t-65.5 250t-206.5 78q-295 0 -295 -334zM360 854v508q0 10 15 10h90 q166 0 166 -149q0 -94 -70 -140q72 -70 84 -211q0 -20 -33 -20q-41 0 -51 2q-12 160 -74 205h-49v-189q0 -10 -12 -14q-9 -2 -66 -2zM438 1128h33q78 0 78 101q0 76 -74 76h-37v-177z" />
118
+ <glyph unicode="&#xb4;" horiz-adv-x="348" d="M0 1260q72 82 162 157q96 82 112 82q25 0 48 -41q23 -43 28 -84q-25 -33 -127 -104q-104 -74 -160 -105q-18 0 -32 23q-20 33 -25 49z" />
119
+ <glyph unicode="&#x2000;" horiz-adv-x="839" />
120
+ <glyph unicode="&#x2001;" horiz-adv-x="1681" />
121
+ <glyph unicode="&#x2002;" horiz-adv-x="839" />
122
+ <glyph unicode="&#x2003;" horiz-adv-x="1681" />
123
+ <glyph unicode="&#x2004;" horiz-adv-x="559" />
124
+ <glyph unicode="&#x2005;" horiz-adv-x="419" />
125
+ <glyph unicode="&#x2006;" horiz-adv-x="278" />
126
+ <glyph unicode="&#x2007;" horiz-adv-x="278" />
127
+ <glyph unicode="&#x2008;" horiz-adv-x="208" />
128
+ <glyph unicode="&#x2009;" horiz-adv-x="335" />
129
+ <glyph unicode="&#x200a;" horiz-adv-x="92" />
130
+ <glyph unicode="&#x2010;" horiz-adv-x="567" d="M76 504q0 89 6 117q6 29 27 28h385q0 -98 -5 -117q-6 -29 -30 -28h-383z" />
131
+ <glyph unicode="&#x2011;" horiz-adv-x="567" d="M76 504q0 89 6 117q6 29 27 28h385q0 -98 -5 -117q-6 -29 -30 -28h-383z" />
132
+ <glyph unicode="&#x2012;" horiz-adv-x="567" d="M76 504q0 89 6 117q6 29 27 28h385q0 -98 -5 -117q-6 -29 -30 -28h-383z" />
133
+ <glyph unicode="&#x2013;" horiz-adv-x="866" d="M76 504q0 89 6 117q6 29 27 28h684q0 -98 -5 -117q-6 -29 -30 -28h-682z" />
134
+ <glyph unicode="&#x2014;" horiz-adv-x="1431" d="M12 504q0 89 6 117q6 29 27 28h1376q0 -89 -6 -117q-6 -29 -29 -28h-1374z" />
135
+ <glyph unicode="&#x2018;" horiz-adv-x="356" d="M70 1298q0 100 59 215t94 115q49 0 66 -47q-41 -78 -51 -197q47 -29 47 -100q0 -47 -29 -76q-31 -31 -76 -30q-110 -1 -110 120z" />
136
+ <glyph unicode="&#x2019;" horiz-adv-x="356" d="M70 1219q41 78 51 196q-47 29 -47 101q0 45 28 77q27 29 74 29q113 0 113 -121q0 -102 -60 -217q-57 -113 -94 -113q-57 1 -65 48z" />
137
+ <glyph unicode="&#x201c;" horiz-adv-x="663" d="M70 1298q0 100 59 215t94 115q49 0 66 -47q-41 -78 -51 -197q47 -29 47 -100q0 -47 -29 -76q-31 -31 -76 -30q-110 -1 -110 120zM377 1298q0 101 61 215q61 115 92 115q53 0 66 -47q-41 -78 -51 -197q47 -29 47 -100q0 -43 -29 -76q-28 -31 -74 -30q-112 -1 -112 120z " />
138
+ <glyph unicode="&#x201d;" horiz-adv-x="663" d="M70 1219q41 78 51 196q-47 29 -47 101q0 45 28 77q27 29 74 29q113 0 113 -121q0 -102 -60 -217q-57 -113 -94 -113q-57 1 -65 48zM379 1219q40 80 49 196q-47 29 -47 101q0 49 28.5 77.5t75.5 28.5q113 0 113 -121q0 -104 -61.5 -217t-94.5 -113q-55 1 -63 48z" />
139
+ <glyph unicode="&#x2022;" horiz-adv-x="454" d="M84 582q0 66 41 112q39 45 108 45q154 0 154 -157q0 -70 -43 -113t-111 -43q-149 0 -149 156z" />
140
+ <glyph unicode="&#x2026;" horiz-adv-x="1067" d="M72 104q0 51 30 84q31 35 84 35q115 0 115 -119q0 -51 -30.5 -83.5t-84.5 -32.5q-114 -1 -114 116zM420 104q0 51 31 84q31 35 84 35q115 0 114 -119q0 -51 -30.5 -83.5t-83.5 -32.5q-115 -1 -115 116zM768 104q0 51 31 84q31 35 84 35q115 0 114 -119q0 -51 -30.5 -83.5 t-83.5 -32.5q-115 -1 -115 116z" />
141
+ <glyph unicode="&#x202f;" horiz-adv-x="335" />
142
+ <glyph unicode="&#x205f;" horiz-adv-x="419" />
143
+ <glyph unicode="&#x20ac;" d="M33 406q0 82 12 108q12 29 53 29h111v18q0 80 4 133h-180q0 80 12 111q12 29 53 29h129q23 133 62 210q43 86 96 125q55 41 107 56q55 16 114 16q66 0 119 -16q51 -16 66 -31q18 -18 18 -35q0 -78 -27 -112q-61 43 -135 43q-182 0 -237 -256h292q0 -78 -12 -109t-53 -31 h-246q-4 -53 -4 -127v-24h248q0 -76 -12.5 -106.5t-53.5 -30.5h-176q16 -162 62 -211q49 -51 137 -52q115 0 180 52q25 -47 25 -107q0 -33 -72 -70q-71 -37 -166 -36q-76 0 -131 16q-49 14 -98 57t-78 131q-31 94 -39 220h-180z" />
144
+ <glyph unicode="&#x2122;" horiz-adv-x="1028" d="M61 1354v61q0 14 19 19h389v-62q0 -18 -20 -18h-136v-553q0 -12 -10 -17q-6 -2 -74 -2v572h-168zM520 782v633q0 18 21 19h57l90 -258l39 -113q27 92 33 108l82 244q3 18 18 19h66v-633q0 -12 -11 -17q-6 -2 -75 -2l2 228q4 115 16 237l-51 -164l-57 -151q-2 -8 -11 -8 h-43l-59 159l-51 172q16 -186 16 -245l2 -209q0 -14 -12 -17q-9 -2 -72 -2z" />
145
+ <glyph unicode="&#xe000;" horiz-adv-x="1025" d="M0 1025h1025v-1025h-1025v1025z" />
146
+ <glyph unicode="&#xfb01;" horiz-adv-x="821" d="M20 883q0 100 6.5 120.5t36.5 20.5h99v123q0 119 31 194q29 72 90 111q59 37 114 49q57 12 133 12q236 0 236 -100q0 -47 -16 -96q-92 45 -213 45q-96 0 -154 -41q-55 -39 -55 -170v-127h143q0 -98 -6 -119q-6 -23 -29 -22h-108v-850q0 -33 -33 -33h-133v883h-142zM563 0 v948q0 51 29 64q31 12 139 12v-991q0 -25 -22 -29q-29 -4 -146 -4z" />
147
+ <glyph unicode="&#xfb02;" horiz-adv-x="841" d="M20 883q0 100 6.5 120.5t36.5 20.5h99v123q0 365 321 364q152 0 267 -69v-1409q0 -33 -33 -33h-133v1360q-41 14 -90 14q-31 0 -56 -6q-27 -6 -53 -25q-28 -18 -43 -61q-14 -41 -14 -108v-150h164q0 -104 -5 -119q-6 -23 -30 -22h-129v-850q0 -33 -35 -33h-131v883h-142z " />
148
+ <glyph unicode="&#xfb03;" horiz-adv-x="1239" d="M20 883q0 100 6.5 120.5t36.5 20.5h99v141q0 338 321 338q111 0 205 -57q89 68 258 67q236 0 236 -100q0 -45 -19 -96q-92 45 -213 45q-98 0 -155 -41q-53 -39 -54 -170v-127h144q0 -98 -6 -119q-6 -23 -29 -22h-109v-850q0 -33 -32 -33h-134v883h-247v-850 q0 -33 -35 -33h-131v883h-142zM328 1024h247v123q0 111 29 186q-53 29 -121 29q-156 0 -155 -178v-160zM977 0v948q0 51 29 64q31 12 141 12v-991q0 -27 -21 -29q-28 -4 -149 -4z" />
149
+ <glyph unicode="&#xfb04;" horiz-adv-x="1259" d="M20 883q0 100 6.5 120.5t36.5 20.5h99v141q0 338 321 338q111 0 201 -55q82 66 213 65q150 0 270 -69v-1411q0 -27 -20 -29q-29 -4 -148 -4v1350q-37 14 -90 14q-37 0 -61 -6q-29 -6 -51 -23q-25 -16 -41 -59q-14 -37 -15 -105v-147h142q0 -98 -6 -119q-6 -23 -29 -22 h-107v-850q0 -33 -32 -33h-134v883h-247v-850q0 -33 -35 -33h-131v883h-142zM328 1024h247v123q0 111 29 186q-53 29 -121 29q-156 0 -155 -178v-160z" />
150
+ </font>
151
  </defs></svg>
templates/rsvp-envelope/assets/js/jquery-1.3.2.min.js CHANGED
@@ -1,19 +1,19 @@
1
- /*
2
- * jQuery JavaScript Library v1.3.2
3
- * http://jquery.com/
4
- *
5
- * Copyright (c) 2009 John Resig
6
- * Dual licensed under the MIT and GPL licenses.
7
- * http://docs.jquery.com/License
8
- *
9
- * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
10
- * Revision: 6246
11
- */
12
- (function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F<J;F++){var G=M[F];if(G.selected){K=o(G).val();if(H){return K}L.push(K)}}return L}return(E.value||"").replace(/\r/g,"")}return g}if(typeof K==="number"){K+=""}return this.each(function(){if(this.nodeType!=1){return}if(o.isArray(K)&&/radio|checkbox/.test(this.type)){this.checked=(o.inArray(this.value,K)>=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G<E;G++){L.call(K(this[G],H),this.length>1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H<I;H++){if((G=arguments[H])!=null){for(var F in G){var K=J[F],L=G[F];if(J===L){continue}if(E&&L&&typeof L==="object"&&!L.nodeType){J[F]=o.extend(E,K||(L.length!=null?[]:{}),L)}else{if(L!==g){J[F]=L}}}}}return J};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,q=document.defaultView||{},s=Object.prototype.toString;o.extend({noConflict:function(E){l.$=p;if(E){l.jQuery=y}return o},isFunction:function(E){return s.call(E)==="[object Function]"},isArray:function(E){return s.call(E)==="[object Array]"},isXMLDoc:function(E){return E.nodeType===9&&E.documentElement.nodeName!=="HTML"||!!E.ownerDocument&&o.isXMLDoc(E.ownerDocument)},globalEval:function(G){if(G&&/\S/.test(G)){var F=document.getElementsByTagName("head")[0]||document.documentElement,E=document.createElement("script");E.type="text/javascript";if(o.support.scriptEval){E.appendChild(document.createTextNode(G))}else{E.text=G}F.insertBefore(E,F.firstChild);F.removeChild(E)}},nodeName:function(F,E){return F.nodeName&&F.nodeName.toUpperCase()==E.toUpperCase()},each:function(G,K,F){var E,H=0,I=G.length;if(F){if(I===g){for(E in G){if(K.apply(G[E],F)===false){break}}}else{for(;H<I;){if(K.apply(G[H++],F)===false){break}}}}else{if(I===g){for(E in G){if(K.call(G[E],E,G[E])===false){break}}}else{for(var J=G[0];H<I&&K.call(J,H,J)!==false;J=G[++H]){}}}return G},prop:function(H,I,G,F,E){if(o.isFunction(I)){I=I.call(H,F)}return typeof I==="number"&&G=="curCSS"&&!b.test(E)?I+"px":I},className:{add:function(E,F){o.each((F||"").split(/\s+/),function(G,H){if(E.nodeType==1&&!o.className.has(E.className,H)){E.className+=(E.className?" ":"")+H}})},remove:function(E,F){if(E.nodeType==1){E.className=F!==g?o.grep(E.className.split(/\s+/),function(G){return !o.className.has(F,G)}).join(" "):""}},has:function(F,E){return F&&o.inArray(E,(F.className||F).toString().split(/\s+/))>-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+"></"+T+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!O.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!O.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!O.indexOf("<td")||!O.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!O.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!o.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/<tbody/i.test(S),N=!O.indexOf("<table")&&!R?L.firstChild&&L.firstChild.childNodes:Q[1]=="<table>"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E<F;E++){if(H[E]===G){return E}}return -1},merge:function(H,E){var F=0,G,I=H.length;if(!o.support.getAll){while((G=E[F++])!=null){if(G.nodeType!=8){H[I++]=G}}}else{while((G=E[F++])!=null){H[I++]=G}}return H},unique:function(K){var F=[],E={};try{for(var G=0,H=K.length;G<H;G++){var J=o.data(K[G]);if(!E[J]){E[J]=true;F.push(K[G])}}}catch(I){F=K}return F},grep:function(F,J,E){var G=[];for(var H=0,I=F.length;H<I;H++){if(!E!=!J(F[H],H)){G.push(F[H])}}return G},map:function(E,J){var F=[];for(var G=0,H=E.length;G<H;G++){var I=J(E[G],G);if(I!=null){F[F.length]=I}}return F.concat.apply([],F)}});var C=navigator.userAgent.toLowerCase();o.browser={version:(C.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(C),opera:/opera/.test(C),msie:/msie/.test(C)&&!/opera/.test(C),mozilla:/mozilla/.test(C)&&!/(compatible|webkit)/.test(C)};o.each({parent:function(E){return E.parentNode},parents:function(E){return o.dir(E,"parentNode")},next:function(E){return o.nth(E,2,"nextSibling")},prev:function(E){return o.nth(E,2,"previousSibling")},nextAll:function(E){return o.dir(E,"nextSibling")},prevAll:function(E){return o.dir(E,"previousSibling")},siblings:function(E){return o.sibling(E.parentNode.firstChild,E)},children:function(E){return o.sibling(E.firstChild)},contents:function(E){return o.nodeName(E,"iframe")?E.contentDocument||E.contentWindow.document:o.makeArray(E.childNodes)}},function(E,F){o.fn[E]=function(G){var H=o.map(this,F);if(G&&typeof G=="string"){H=o.multiFilter(G,H)}return this.pushStack(o.unique(H),E,G)}});o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(E,F){o.fn[E]=function(G){var J=[],L=o(G);for(var K=0,H=L.length;K<H;K++){var I=(K>0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}});
13
- /*
14
- * Sizzle CSS Selector Engine - v0.9.3
15
- * Copyright 2009, The Dojo Foundation
16
- * Released under the MIT, BSD, and GPL Licenses.
17
- * More information: http://sizzlejs.com/
18
- */
19
  (function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa<ab.length;aa++){if(ab[aa]===ab[aa-1]){ab.splice(aa--,1)}}}}}return ab};F.matches=function(T,U){return F(T,null,null,U)};F.find=function(aa,T,ab){var Z,X;if(!aa){return[]}for(var W=0,V=I.order.length;W<V;W++){var Y=I.order[W],X;if((X=I.match[Y].exec(aa))){var U=RegExp.leftContext;if(U.substr(U.length-1)!=="\\"){X[1]=(X[1]||"").replace(/\\/g,"");Z=I.find[Y](X,T,ab);if(Z!=null){aa=aa.replace(I.match[Y],"");break}}}}if(!Z){Z=T.getElementsByTagName("*")}return{set:Z,expr:aa}};F.filter=function(ad,ac,ag,W){var V=ad,ai=[],aa=ac,Y,T,Z=ac&&ac[0]&&Q(ac[0]);while(ad&&ac.length){for(var ab in I.filter){if((Y=I.match[ab].exec(ad))!=null){var U=I.filter[ab],ah,af;T=false;if(aa==ai){ai=[]}if(I.preFilter[ab]){Y=I.preFilter[ab](Y,aa,ag,ai,W,Z);if(!Y){T=ah=true}else{if(Y===true){continue}}}if(Y){for(var X=0;(af=aa[X])!=null;X++){if(af){ah=U(af,Y,X,aa);var ae=W^!!ah;if(ag&&ah!=null){if(ae){T=true}else{aa[X]=false}}else{if(ae){ai.push(af);T=true}}}}}if(ah!==g){if(!ag){aa=ai}ad=ad.replace(I.match[ab],"");if(!T){return[]}break}}}if(ad==V){if(T==null){throw"Syntax error, unrecognized expression: "+ad}else{break}}V=ad}return aa};var I=F.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(T){return T.getAttribute("href")}},relative:{"+":function(aa,T,Z){var X=typeof T==="string",ab=X&&!/\W/.test(T),Y=X&&!ab;if(ab&&!Z){T=T.toUpperCase()}for(var W=0,V=aa.length,U;W<V;W++){if((U=aa[W])){while((U=U.previousSibling)&&U.nodeType!==1){}aa[W]=Y||U&&U.nodeName===T?U||false:U===T}}if(Y){F.filter(T,aa,true)}},">":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){var W=Y.parentNode;Z[V]=W.nodeName===U?W:false}}}else{for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){Z[V]=X?Y.parentNode:Y.parentNode===U}}if(X){F.filter(U,Z,true)}}},"":function(W,U,Y){var V=L++,T=S;if(!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("parentNode",U,V,W,X,Y)},"~":function(W,U,Y){var V=L++,T=S;if(typeof U==="string"&&!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("previousSibling",U,V,W,X,Y)}},find:{ID:function(U,V,W){if(typeof V.getElementById!=="undefined"&&!W){var T=V.getElementById(U[1]);return T?[T]:[]}},NAME:function(V,Y,Z){if(typeof Y.getElementsByName!=="undefined"){var U=[],X=Y.getElementsByName(V[1]);for(var W=0,T=X.length;W<T;W++){if(X[W].getAttribute("name")===V[1]){U.push(X[W])}}return U.length===0?null:U}},TAG:function(T,U){return U.getElementsByTagName(T[1])}},preFilter:{CLASS:function(W,U,V,T,Z,aa){W=" "+W[1].replace(/\\/g,"")+" ";if(aa){return W}for(var X=0,Y;(Y=U[X])!=null;X++){if(Y){if(Z^(Y.className&&(" "+Y.className+" ").indexOf(W)>=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return U<T[3]-0},gt:function(V,U,T){return U>T[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W<T;W++){if(Y[W]===Z){return false}}return true}}}},CHILD:function(T,W){var Z=W[1],U=T;switch(Z){case"only":case"first":while(U=U.previousSibling){if(U.nodeType===1){return false}}if(Z=="first"){return true}U=T;case"last":while(U=U.nextSibling){if(U.nodeType===1){return false}}return true;case"nth":var V=W[2],ac=W[3];if(V==1&&ac==0){return true}var Y=W[0],ab=T.parentNode;if(ab&&(ab.sizcache!==Y||!T.nodeIndex)){var X=0;for(U=ab.firstChild;U;U=U.nextSibling){if(U.nodeType===1){U.nodeIndex=++X}}ab.sizcache=Y}var aa=T.nodeIndex-ac;if(V==0){return aa==0}else{return(aa%V==0&&aa/V>=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V<T;V++){U.push(X[V])}}else{for(var V=0;X[V];V++){U.push(X[V])}}}return U}}var G;if(document.documentElement.compareDocumentPosition){G=function(U,T){var V=U.compareDocumentPosition(T)&4?-1:U===T?0:1;if(V===0){hasDuplicate=true}return V}}else{if("sourceIndex" in document.documentElement){G=function(U,T){var V=U.sourceIndex-T.sourceIndex;if(V===0){hasDuplicate=true}return V}}else{if(document.createRange){G=function(W,U){var V=W.ownerDocument.createRange(),T=U.ownerDocument.createRange();V.selectNode(W);V.collapse(true);T.selectNode(U);T.collapse(true);var X=V.compareBoundaryPoints(Range.START_TO_END,T);if(X===0){hasDuplicate=true}return X}}}}(function(){var U=document.createElement("form"),V="script"+(new Date).getTime();U.innerHTML="<input name='"+V+"'/>";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="<a href='#'></a>";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="<p class='TEST'></p>";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="<div class='test e'></div><div class='test'></div>";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1&&!ac){T.sizcache=Y;T.sizset=W}if(T.nodeName===Z){X=T;break}T=T[U]}ad[W]=X}}}function S(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1){if(!ac){T.sizcache=Y;T.sizset=W}if(typeof Z!=="string"){if(T===Z){X=true;break}}else{if(F.filter(Z,[T]).length>0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z<U;Z++){F(T,V[Z],W)}return F.filter(X,W)};o.find=F;o.filter=F.filter;o.expr=F.selectors;o.expr[":"]=o.expr.filters;F.selectors.filters.hidden=function(T){return T.offsetWidth===0||T.offsetHeight===0};F.selectors.filters.visible=function(T){return T.offsetWidth>0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F<E.length){o.event.proxy(G,E[F++])}return this.click(o.event.proxy(G,function(H){this.lastToggle=(this.lastToggle||0)%F;H.preventDefault();return E[this.lastToggle++].apply(this,arguments)||false}))},hover:function(E,F){return this.mouseenter(E).mouseleave(F)},ready:function(E){B();if(o.isReady){E.call(document,o)}else{o.readyList.push(E)}return this},live:function(G,F){var E=o.event.proxy(F);E.guid+=this.selector+G;o(document).bind(i(G,this.selector),this.selector,E);return this},die:function(F,E){o(document).unbind(i(F,this.selector),E?{guid:E.guid+this.selector+F}:null);return this}});function c(H){var E=RegExp("(^|\\.)"+H.type+"(\\.|$)"),G=true,F=[];o.each(o.data(this,"events").live||[],function(I,J){if(E.test(J.type)){var K=o(H.target).closest(J.data)[0];if(K){F.push({elem:K,fn:J})}}});F.sort(function(J,I){return o.data(J.elem,"closest")-o.data(I.elem,"closest")});o.each(F,function(){if(this.fn.call(this.elem,H,this.fn.data)===false){return(G=false)}});return G}function i(F,E){return["live",F,E.replace(/\./g,"`").replace(/ /g,"|")].join(".")}o.extend({isReady:false,readyList:[],ready:function(){if(!o.isReady){o.isReady=true;if(o.readyList){o.each(o.readyList,function(){this.call(document,o)});o.readyList=null}o(document).triggerHandler("ready")}}});var x=false;function B(){if(x){return}x=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);o.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);o.ready()}});if(document.documentElement.doScroll&&l==l.top){(function(){if(o.isReady){return}try{document.documentElement.doScroll("left")}catch(E){setTimeout(arguments.callee,0);return}o.ready()})()}}}o.event.add(l,"load",o.ready)}o.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(F,E){o.fn[E]=function(G){return G?this.bind(E,G):this.trigger(E)}});o(l).bind("unload",function(){for(var E in o.cache){if(E!=1&&o.cache[E].handle){o.event.remove(o.cache[E].handle.elem)}}});(function(){o.support={};var F=document.documentElement,G=document.createElement("script"),K=document.createElement("div"),J="script"+(new Date).getTime();K.style.display="none";K.innerHTML=' <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var H=K.getElementsByTagName("*"),E=K.getElementsByTagName("a")[0];if(!H||!H.length||!E){return}o.support={leadingWhitespace:K.firstChild.nodeType==3,tbody:!K.getElementsByTagName("tbody").length,objectAll:!!K.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(E.getAttribute("style")),hrefNormalized:E.getAttribute("href")==="/a",opacity:E.style.opacity==="0.5",cssFloat:!!E.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};G.type="text/javascript";try{G.appendChild(document.createTextNode("window."+J+"=1;"))}catch(I){}F.insertBefore(G,F.firstChild);if(l[J]){o.support.scriptEval=true;delete l[J]}F.removeChild(G);if(K.attachEvent&&K.fireEvent){K.attachEvent("onclick",function(){o.support.noCloneEvent=false;K.detachEvent("onclick",arguments.callee)});K.cloneNode(true).fireEvent("onclick")}o(function(){var L=document.createElement("div");L.style.width=L.style.paddingLeft="1px";document.body.appendChild(L);o.boxModel=o.support.boxModel=L.offsetWidth===2;document.body.removeChild(L).style.display="none"})})();var w=o.support.cssFloat?"cssFloat":"styleFloat";o.props={"for":"htmlFor","class":"className","float":w,cssFloat:w,styleFloat:w,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};o.fn.extend({_load:o.fn.load,load:function(G,J,K){if(typeof G!=="string"){return this._load(G)}var I=G.indexOf(" ");if(I>=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("<div/>").append(M.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H<F;H++){var E=o.data(this[H],"olddisplay");this[H].style.display=E||"";if(o.css(this[H],"display")==="none"){var G=this[H].tagName,K;if(m[G]){K=m[G]}else{var I=o("<"+G+" />").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H<F;H++){this[H].style.display=o.data(this[H],"olddisplay")||""}return this}},hide:function(H,I){if(H){return this.animate(t("hide",3),H,I)}else{for(var G=0,F=this.length;G<F;G++){var E=o.data(this[G],"olddisplay");if(!E&&E!=="none"){o.data(this[G],"olddisplay",o.css(this[G],"display"))}}for(var G=0,F=this.length;G<F;G++){this[G].style.display="none"}return this}},_toggle:o.fn.toggle,toggle:function(G,F){var E=typeof G==="boolean";return o.isFunction(G)&&o.isFunction(F)?this._toggle.apply(this,arguments):G==null||E?this.each(function(){var H=E?G:o(this).is(":hidden");o(this)[H?"show":"hide"]()}):this.animate(t("toggle",3),G,F)},fadeTo:function(E,G,F){return this.animate({opacity:G},E,F)},animate:function(I,F,H,G){var E=o.speed(F,H,G);return this[E.queue===false?"each":"queue"](function(){var K=o.extend({},E),M,L=this.nodeType==1&&o(this).is(":hidden"),J=this;for(M in I){if(I[M]=="hide"&&L||I[M]=="show"&&!L){return K.complete.call(this)}if((M=="height"||M=="width")&&this.style){K.display=o.css(this,"display");K.overflow=this.style.overflow}}if(K.overflow!=null){this.style.overflow="hidden"}K.curAnim=o.extend({},I);o.each(I,function(O,S){var R=new o.fx(J,K,O);if(/toggle|show|hide/.test(S)){R[S=="toggle"?L?"show":"hide":S](I)}else{var Q=S.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),T=R.cur(true)||0;if(Q){var N=parseFloat(Q[2]),P=Q[3]||"px";if(P!="px"){J.style[O]=(N||1)+P;T=((N||1)/R.cur(true))*T;J.style[O]=T+P}if(Q[1]){N=((Q[1]=="-="?-1:1)*N)+T}R.custom(T,N,P)}else{R.custom(T,S,"")}}});return true})},stop:function(F,E){var G=o.timers;if(F){this.queue([])}this.each(function(){for(var H=G.length-1;H>=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)&&!n){n=setInterval(function(){var K=o.timers;for(var J=0;J<K.length;J++){if(!K[J]()){K.splice(J--,1)}}if(!K.length){clearInterval(n);n=g}},13)}},show:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());o(this.elem).show()},hide:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(H){var G=e();if(H||G>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})();
1
+ /*
2
+ * jQuery JavaScript Library v1.3.2
3
+ * http://jquery.com/
4
+ *
5
+ * Copyright (c) 2009 John Resig
6
+ * Dual licensed under the MIT and GPL licenses.
7
+ * http://docs.jquery.com/License
8
+ *
9
+ * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
10
+ * Revision: 6246
11
+ */
12
+ (function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F<J;F++){var G=M[F];if(G.selected){K=o(G).val();if(H){return K}L.push(K)}}return L}return(E.value||"").replace(/\r/g,"")}return g}if(typeof K==="number"){K+=""}return this.each(function(){if(this.nodeType!=1){return}if(o.isArray(K)&&/radio|checkbox/.test(this.type)){this.checked=(o.inArray(this.value,K)>=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G<E;G++){L.call(K(this[G],H),this.length>1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H<I;H++){if((G=arguments[H])!=null){for(var F in G){var K=J[F],L=G[F];if(J===L){continue}if(E&&L&&typeof L==="object"&&!L.nodeType){J[F]=o.extend(E,K||(L.length!=null?[]:{}),L)}else{if(L!==g){J[F]=L}}}}}return J};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,q=document.defaultView||{},s=Object.prototype.toString;o.extend({noConflict:function(E){l.$=p;if(E){l.jQuery=y}return o},isFunction:function(E){return s.call(E)==="[object Function]"},isArray:function(E){return s.call(E)==="[object Array]"},isXMLDoc:function(E){return E.nodeType===9&&E.documentElement.nodeName!=="HTML"||!!E.ownerDocument&&o.isXMLDoc(E.ownerDocument)},globalEval:function(G){if(G&&/\S/.test(G)){var F=document.getElementsByTagName("head")[0]||document.documentElement,E=document.createElement("script");E.type="text/javascript";if(o.support.scriptEval){E.appendChild(document.createTextNode(G))}else{E.text=G}F.insertBefore(E,F.firstChild);F.removeChild(E)}},nodeName:function(F,E){return F.nodeName&&F.nodeName.toUpperCase()==E.toUpperCase()},each:function(G,K,F){var E,H=0,I=G.length;if(F){if(I===g){for(E in G){if(K.apply(G[E],F)===false){break}}}else{for(;H<I;){if(K.apply(G[H++],F)===false){break}}}}else{if(I===g){for(E in G){if(K.call(G[E],E,G[E])===false){break}}}else{for(var J=G[0];H<I&&K.call(J,H,J)!==false;J=G[++H]){}}}return G},prop:function(H,I,G,F,E){if(o.isFunction(I)){I=I.call(H,F)}return typeof I==="number"&&G=="curCSS"&&!b.test(E)?I+"px":I},className:{add:function(E,F){o.each((F||"").split(/\s+/),function(G,H){if(E.nodeType==1&&!o.className.has(E.className,H)){E.className+=(E.className?" ":"")+H}})},remove:function(E,F){if(E.nodeType==1){E.className=F!==g?o.grep(E.className.split(/\s+/),function(G){return !o.className.has(F,G)}).join(" "):""}},has:function(F,E){return F&&o.inArray(E,(F.className||F).toString().split(/\s+/))>-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+"></"+T+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!O.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!O.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!O.indexOf("<td")||!O.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!O.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!o.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/<tbody/i.test(S),N=!O.indexOf("<table")&&!R?L.firstChild&&L.firstChild.childNodes:Q[1]=="<table>"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E<F;E++){if(H[E]===G){return E}}return -1},merge:function(H,E){var F=0,G,I=H.length;if(!o.support.getAll){while((G=E[F++])!=null){if(G.nodeType!=8){H[I++]=G}}}else{while((G=E[F++])!=null){H[I++]=G}}return H},unique:function(K){var F=[],E={};try{for(var G=0,H=K.length;G<H;G++){var J=o.data(K[G]);if(!E[J]){E[J]=true;F.push(K[G])}}}catch(I){F=K}return F},grep:function(F,J,E){var G=[];for(var H=0,I=F.length;H<I;H++){if(!E!=!J(F[H],H)){G.push(F[H])}}return G},map:function(E,J){var F=[];for(var G=0,H=E.length;G<H;G++){var I=J(E[G],G);if(I!=null){F[F.length]=I}}return F.concat.apply([],F)}});var C=navigator.userAgent.toLowerCase();o.browser={version:(C.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(C),opera:/opera/.test(C),msie:/msie/.test(C)&&!/opera/.test(C),mozilla:/mozilla/.test(C)&&!/(compatible|webkit)/.test(C)};o.each({parent:function(E){return E.parentNode},parents:function(E){return o.dir(E,"parentNode")},next:function(E){return o.nth(E,2,"nextSibling")},prev:function(E){return o.nth(E,2,"previousSibling")},nextAll:function(E){return o.dir(E,"nextSibling")},prevAll:function(E){return o.dir(E,"previousSibling")},siblings:function(E){return o.sibling(E.parentNode.firstChild,E)},children:function(E){return o.sibling(E.firstChild)},contents:function(E){return o.nodeName(E,"iframe")?E.contentDocument||E.contentWindow.document:o.makeArray(E.childNodes)}},function(E,F){o.fn[E]=function(G){var H=o.map(this,F);if(G&&typeof G=="string"){H=o.multiFilter(G,H)}return this.pushStack(o.unique(H),E,G)}});o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(E,F){o.fn[E]=function(G){var J=[],L=o(G);for(var K=0,H=L.length;K<H;K++){var I=(K>0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}});
13
+ /*
14
+ * Sizzle CSS Selector Engine - v0.9.3
15
+ * Copyright 2009, The Dojo Foundation
16
+ * Released under the MIT, BSD, and GPL Licenses.
17
+ * More information: http://sizzlejs.com/
18
+ */
19
  (function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa<ab.length;aa++){if(ab[aa]===ab[aa-1]){ab.splice(aa--,1)}}}}}return ab};F.matches=function(T,U){return F(T,null,null,U)};F.find=function(aa,T,ab){var Z,X;if(!aa){return[]}for(var W=0,V=I.order.length;W<V;W++){var Y=I.order[W],X;if((X=I.match[Y].exec(aa))){var U=RegExp.leftContext;if(U.substr(U.length-1)!=="\\"){X[1]=(X[1]||"").replace(/\\/g,"");Z=I.find[Y](X,T,ab);if(Z!=null){aa=aa.replace(I.match[Y],"");break}}}}if(!Z){Z=T.getElementsByTagName("*")}return{set:Z,expr:aa}};F.filter=function(ad,ac,ag,W){var V=ad,ai=[],aa=ac,Y,T,Z=ac&&ac[0]&&Q(ac[0]);while(ad&&ac.length){for(var ab in I.filter){if((Y=I.match[ab].exec(ad))!=null){var U=I.filter[ab],ah,af;T=false;if(aa==ai){ai=[]}if(I.preFilter[ab]){Y=I.preFilter[ab](Y,aa,ag,ai,W,Z);if(!Y){T=ah=true}else{if(Y===true){continue}}}if(Y){for(var X=0;(af=aa[X])!=null;X++){if(af){ah=U(af,Y,X,aa);var ae=W^!!ah;if(ag&&ah!=null){if(ae){T=true}else{aa[X]=false}}else{if(ae){ai.push(af);T=true}}}}}if(ah!==g){if(!ag){aa=ai}ad=ad.replace(I.match[ab],"");if(!T){return[]}break}}}if(ad==V){if(T==null){throw"Syntax error, unrecognized expression: "+ad}else{break}}V=ad}return aa};var I=F.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(T){return T.getAttribute("href")}},relative:{"+":function(aa,T,Z){var X=typeof T==="string",ab=X&&!/\W/.test(T),Y=X&&!ab;if(ab&&!Z){T=T.toUpperCase()}for(var W=0,V=aa.length,U;W<V;W++){if((U=aa[W])){while((U=U.previousSibling)&&U.nodeType!==1){}aa[W]=Y||U&&U.nodeName===T?U||false:U===T}}if(Y){F.filter(T,aa,true)}},">":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){var W=Y.parentNode;Z[V]=W.nodeName===U?W:false}}}else{for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){Z[V]=X?Y.parentNode:Y.parentNode===U}}if(X){F.filter(U,Z,true)}}},"":function(W,U,Y){var V=L++,T=S;if(!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("parentNode",U,V,W,X,Y)},"~":function(W,U,Y){var V=L++,T=S;if(typeof U==="string"&&!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("previousSibling",U,V,W,X,Y)}},find:{ID:function(U,V,W){if(typeof V.getElementById!=="undefined"&&!W){var T=V.getElementById(U[1]);return T?[T]:[]}},NAME:function(V,Y,Z){if(typeof Y.getElementsByName!=="undefined"){var U=[],X=Y.getElementsByName(V[1]);for(var W=0,T=X.length;W<T;W++){if(X[W].getAttribute("name")===V[1]){U.push(X[W])}}return U.length===0?null:U}},TAG:function(T,U){return U.getElementsByTagName(T[1])}},preFilter:{CLASS:function(W,U,V,T,Z,aa){W=" "+W[1].replace(/\\/g,"")+" ";if(aa){return W}for(var X=0,Y;(Y=U[X])!=null;X++){if(Y){if(Z^(Y.className&&(" "+Y.className+" ").indexOf(W)>=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return U<T[3]-0},gt:function(V,U,T){return U>T[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W<T;W++){if(Y[W]===Z){return false}}return true}}}},CHILD:function(T,W){var Z=W[1],U=T;switch(Z){case"only":case"first":while(U=U.previousSibling){if(U.nodeType===1){return false}}if(Z=="first"){return true}U=T;case"last":while(U=U.nextSibling){if(U.nodeType===1){return false}}return true;case"nth":var V=W[2],ac=W[3];if(V==1&&ac==0){return true}var Y=W[0],ab=T.parentNode;if(ab&&(ab.sizcache!==Y||!T.nodeIndex)){var X=0;for(U=ab.firstChild;U;U=U.nextSibling){if(U.nodeType===1){U.nodeIndex=++X}}ab.sizcache=Y}var aa=T.nodeIndex-ac;if(V==0){return aa==0}else{return(aa%V==0&&aa/V>=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V<T;V++){U.push(X[V])}}else{for(var V=0;X[V];V++){U.push(X[V])}}}return U}}var G;if(document.documentElement.compareDocumentPosition){G=function(U,T){var V=U.compareDocumentPosition(T)&4?-1:U===T?0:1;if(V===0){hasDuplicate=true}return V}}else{if("sourceIndex" in document.documentElement){G=function(U,T){var V=U.sourceIndex-T.sourceIndex;if(V===0){hasDuplicate=true}return V}}else{if(document.createRange){G=function(W,U){var V=W.ownerDocument.createRange(),T=U.ownerDocument.createRange();V.selectNode(W);V.collapse(true);T.selectNode(U);T.collapse(true);var X=V.compareBoundaryPoints(Range.START_TO_END,T);if(X===0){hasDuplicate=true}return X}}}}(function(){var U=document.createElement("form"),V="script"+(new Date).getTime();U.innerHTML="<input name='"+V+"'/>";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="<a href='#'></a>";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="<p class='TEST'></p>";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="<div class='test e'></div><div class='test'></div>";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1&&!ac){T.sizcache=Y;T.sizset=W}if(T.nodeName===Z){X=T;break}T=T[U]}ad[W]=X}}}function S(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1){if(!ac){T.sizcache=Y;T.sizset=W}if(typeof Z!=="string"){if(T===Z){X=true;break}}else{if(F.filter(Z,[T]).length>0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z<U;Z++){F(T,V[Z],W)}return F.filter(X,W)};o.find=F;o.filter=F.filter;o.expr=F.selectors;o.expr[":"]=o.expr.filters;F.selectors.filters.hidden=function(T){return T.offsetWidth===0||T.offsetHeight===0};F.selectors.filters.visible=function(T){return T.offsetWidth>0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F<E.length){o.event.proxy(G,E[F++])}return this.click(o.event.proxy(G,function(H){this.lastToggle=(this.lastToggle||0)%F;H.preventDefault();return E[this.lastToggle++].apply(this,arguments)||false}))},hover:function(E,F){return this.mouseenter(E).mouseleave(F)},ready:function(E){B();if(o.isReady){E.call(document,o)}else{o.readyList.push(E)}return this},live:function(G,F){var E=o.event.proxy(F);E.guid+=this.selector+G;o(document).bind(i(G,this.selector),this.selector,E);return this},die:function(F,E){o(document).unbind(i(F,this.selector),E?{guid:E.guid+this.selector+F}:null);return this}});function c(H){var E=RegExp("(^|\\.)"+H.type+"(\\.|$)"),G=true,F=[];o.each(o.data(this,"events").live||[],function(I,J){if(E.test(J.type)){var K=o(H.target).closest(J.data)[0];if(K){F.push({elem:K,fn:J})}}});F.sort(function(J,I){return o.data(J.elem,"closest")-o.data(I.elem,"closest")});o.each(F,function(){if(this.fn.call(this.elem,H,this.fn.data)===false){return(G=false)}});return G}function i(F,E){return["live",F,E.replace(/\./g,"`").replace(/ /g,"|")].join(".")}o.extend({isReady:false,readyList:[],ready:function(){if(!o.isReady){o.isReady=true;if(o.readyList){o.each(o.readyList,function(){this.call(document,o)});o.readyList=null}o(document).triggerHandler("ready")}}});var x=false;function B(){if(x){return}x=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);o.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);o.ready()}});if(document.documentElement.doScroll&&l==l.top){(function(){if(o.isReady){return}try{document.documentElement.doScroll("left")}catch(E){setTimeout(arguments.callee,0);return}o.ready()})()}}}o.event.add(l,"load",o.ready)}o.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(F,E){o.fn[E]=function(G){return G?this.bind(E,G):this.trigger(E)}});o(l).bind("unload",function(){for(var E in o.cache){if(E!=1&&o.cache[E].handle){o.event.remove(o.cache[E].handle.elem)}}});(function(){o.support={};var F=document.documentElement,G=document.createElement("script"),K=document.createElement("div"),J="script"+(new Date).getTime();K.style.display="none";K.innerHTML=' <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var H=K.getElementsByTagName("*"),E=K.getElementsByTagName("a")[0];if(!H||!H.length||!E){return}o.support={leadingWhitespace:K.firstChild.nodeType==3,tbody:!K.getElementsByTagName("tbody").length,objectAll:!!K.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(E.getAttribute("style")),hrefNormalized:E.getAttribute("href")==="/a",opacity:E.style.opacity==="0.5",cssFloat:!!E.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};G.type="text/javascript";try{G.appendChild(document.createTextNode("window."+J+"=1;"))}catch(I){}F.insertBefore(G,F.firstChild);if(l[J]){o.support.scriptEval=true;delete l[J]}F.removeChild(G);if(K.attachEvent&&K.fireEvent){K.attachEvent("onclick",function(){o.support.noCloneEvent=false;K.detachEvent("onclick",arguments.callee)});K.cloneNode(true).fireEvent("onclick")}o(function(){var L=document.createElement("div");L.style.width=L.style.paddingLeft="1px";document.body.appendChild(L);o.boxModel=o.support.boxModel=L.offsetWidth===2;document.body.removeChild(L).style.display="none"})})();var w=o.support.cssFloat?"cssFloat":"styleFloat";o.props={"for":"htmlFor","class":"className","float":w,cssFloat:w,styleFloat:w,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};o.fn.extend({_load:o.fn.load,load:function(G,J,K){if(typeof G!=="string"){return this._load(G)}var I=G.indexOf(" ");if(I>=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("<div/>").append(M.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H<F;H++){var E=o.data(this[H],"olddisplay");this[H].style.display=E||"";if(o.css(this[H],"display")==="none"){var G=this[H].tagName,K;if(m[G]){K=m[G]}else{var I=o("<"+G+" />").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H<F;H++){this[H].style.display=o.data(this[H],"olddisplay")||""}return this}},hide:function(H,I){if(H){return this.animate(t("hide",3),H,I)}else{for(var G=0,F=this.length;G<F;G++){var E=o.data(this[G],"olddisplay");if(!E&&E!=="none"){o.data(this[G],"olddisplay",o.css(this[G],"display"))}}for(var G=0,F=this.length;G<F;G++){this[G].style.display="none"}return this}},_toggle:o.fn.toggle,toggle:function(G,F){var E=typeof G==="boolean";return o.isFunction(G)&&o.isFunction(F)?this._toggle.apply(this,arguments):G==null||E?this.each(function(){var H=E?G:o(this).is(":hidden");o(this)[H?"show":"hide"]()}):this.animate(t("toggle",3),G,F)},fadeTo:function(E,G,F){return this.animate({opacity:G},E,F)},animate:function(I,F,H,G){var E=o.speed(F,H,G);return this[E.queue===false?"each":"queue"](function(){var K=o.extend({},E),M,L=this.nodeType==1&&o(this).is(":hidden"),J=this;for(M in I){if(I[M]=="hide"&&L||I[M]=="show"&&!L){return K.complete.call(this)}if((M=="height"||M=="width")&&this.style){K.display=o.css(this,"display");K.overflow=this.style.overflow}}if(K.overflow!=null){this.style.overflow="hidden"}K.curAnim=o.extend({},I);o.each(I,function(O,S){var R=new o.fx(J,K,O);if(/toggle|show|hide/.test(S)){R[S=="toggle"?L?"show":"hide":S](I)}else{var Q=S.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),T=R.cur(true)||0;if(Q){var N=parseFloat(Q[2]),P=Q[3]||"px";if(P!="px"){J.style[O]=(N||1)+P;T=((N||1)/R.cur(true))*T;J.style[O]=T+P}if(Q[1]){N=((Q[1]=="-="?-1:1)*N)+T}R.custom(T,N,P)}else{R.custom(T,S,"")}}});return true})},stop:function(F,E){var G=o.timers;if(F){this.queue([])}this.each(function(){for(var H=G.length-1;H>=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)&&!n){n=setInterval(function(){var K=o.timers;for(var J=0;J<K.length;J++){if(!K[J]()){K.splice(J--,1)}}if(!K.length){clearInterval(n);n=g}},13)}},show:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());o(this.elem).show()},hide:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(H){var G=e();if(H||G>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})();
templates/rsvp-envelope/config.php CHANGED
@@ -1,85 +1,85 @@
1
- <?php
2
- /**
3
- * Template Name: RSVP Envelope Template
4
- * @package WordPress Landing Pages
5
- * @author David Wells
6
- */
7
-
8
- do_action('lp_global_config'); // global config action hook
9
-
10
- //gets template directory name to use as identifier - do not edit - include in all template files
11
- $key = lp_get_parent_directory(dirname(__FILE__));
12
-
13
- $lp_data[$key]['info'] =
14
- array(
15
- 'data_type' => 'template', // Template Data Type
16
- 'version' => "1.0.1", // Version Number
17
- 'label' => "RSVP Template", // Nice Name
18
- 'category' => 'v1, 2 column layout', // Template Category
19
- 'demo' => 'http://demo.inboundnow.com/go/rsvp-envelope-lander-preview/', // Demo Link
20
- 'description' => 'This template is great for sending out invitations to events.' // template description
21
- );
22
-
23
- // Define Meta Options for template
24
- // These values are returned in the template's index.php file with lp_get_value($post, $key, 'field-id') function
25
- $lp_data[$key]['settings'] =
26
- array(
27
- array(
28
- 'label' => "Template body color", // Label of field
29
- 'description' => "Use this setting to change the template's body background color", // field description
30
- 'id' => 'body-color', // metakey.
31
- 'type' => 'colorpicker', // text metafield type
32
- 'default' => 'CCCCCC', // default content
33
- 'context' => 'normal' // Context in screen for organizing options
34
- ),
35
- array(
36
- 'label' => 'Headline Color',
37
- 'description' => "Use this setting to change the template's headline text color",
38
- 'id' => 'headline-color',
39
- 'type' => 'colorpicker',
40
- 'default' => 'ffffff',
41
- 'context' => 'normal'
42
- ),
43
- array(
44
- 'label' => "Text Color",
45
- 'description' => "Text Color",
46
- 'id' => 'text-color',
47
- 'type' => 'colorpicker',
48
- 'default' => '7C7873',
49
- 'context' => 'normal'
50
- ),
51
- array(
52
- 'label' => "Form Text Color",
53
- 'description' => "Form Text Color",
54
- 'id' => 'form-text-color',
55
- 'type' => 'colorpicker',
56
- 'default' => '7C7873',
57
- 'context' => 'normal'
58
- ),
59
- array(
60
- 'label' => "Display Social Media Share Buttons",
61
- 'description' => "Display Social Media Share Buttons",
62
- 'id' => 'display-social',
63
- 'type' => 'radio',
64
- 'default' => '1',
65
- 'options' => array('1' => 'on','0'=>'off'),
66
- 'context' => 'normal'
67
- ),
68
- array(
69
- 'label' => "Sidebar Layout",
70
- 'description' => "Align sidebar to the left or the right",
71
- 'id' => 'sidebar',
72
- 'type' => 'dropdown',
73
- 'default' => 'right',
74
- 'options' => array('right'=>'Envelope on right', 'left'=>'Envelope on left'),
75
- 'context' => 'normal'
76
- ),
77
- array(
78
- 'label' => 'Background Image',
79
- 'description' => "Background Image",
80
- 'id' => 'media-example',
81
- 'type' => 'media',
82
- 'default' => '',
83
- 'context' => 'normal'
84
- )
85
  );
1
+ <?php
2
+ /**
3
+ * Template Name: RSVP Envelope Template
4
+ * @package WordPress Landing Pages
5
+ * @author David Wells
6
+ */
7
+
8
+ do_action('lp_global_config'); // global config action hook
9
+
10
+ //gets template directory name to use as identifier - do not edit - include in all template files
11
+ $key = lp_get_parent_directory(dirname(__FILE__));
12
+
13
+ $lp_data[$key]['info'] =
14
+ array(
15
+ 'data_type' => 'template', // Template Data Type
16
+ 'version' => "1.0.1", // Version Number
17
+ 'label' => "RSVP Template", // Nice Name
18
+ 'category' => 'v1, 2 column layout', // Template Category
19
+ 'demo' => 'http://demo.inboundnow.com/go/rsvp-envelope-lander-preview/', // Demo Link
20
+ 'description' => 'This template is great for sending out invitations to events.' // template description
21
+ );
22
+
23
+ // Define Meta Options for template
24
+ // These values are returned in the template's index.php file with lp_get_value($post, $key, 'field-id') function
25
+ $lp_data[$key]['settings'] =
26
+ array(
27
+ array(
28
+ 'label' => "Template body color", // Label of field
29
+ 'description' => "Use this setting to change the template's body background color", // field description
30
+ 'id' => 'body-color', // metakey.
31
+ 'type' => 'colorpicker', // text metafield type
32
+ 'default' => 'CCCCCC', // default content
33
+ 'context' => 'normal' // Context in screen for organizing options
34
+ ),
35
+ array(
36
+ 'label' => 'Headline Color',
37
+ 'description' => "Use this setting to change the template's headline text color",
38
+ 'id' => 'headline-color',
39
+ 'type' => 'colorpicker',
40
+ 'default' => 'ffffff',
41
+ 'context' => 'normal'
42
+ ),
43
+ array(
44
+ 'label' => "Text Color",
45
+ 'description' => "Text Color",
46
+ 'id' => 'text-color',
47
+ 'type' => 'colorpicker',
48
+ 'default' => '7C7873',
49
+ 'context' => 'normal'
50
+ ),
51
+ array(
52
+ 'label' => "Form Text Color",
53
+ 'description' => "Form Text Color",
54
+ 'id' => 'form-text-color',
55
+ 'type' => 'colorpicker',
56
+ 'default' => '7C7873',
57
+ 'context' => 'normal'
58
+ ),
59
+ array(
60
+ 'label' => "Display Social Media Share Buttons",
61
+ 'description' => "Display Social Media Share Buttons",
62
+ 'id' => 'display-social',
63
+ 'type' => 'radio',
64
+ 'default' => '1',
65
+ 'options' => array('1' => 'on','0'=>'off'),
66
+ 'context' => 'normal'
67
+ ),
68
+ array(
69
+ 'label' => "Sidebar Layout",
70
+ 'description' => "Align sidebar to the left or the right",
71
+ 'id' => 'sidebar',
72
+ 'type' => 'dropdown',
73
+ 'default' => 'right',
74
+ 'options' => array('right'=>'Envelope on right', 'left'=>'Envelope on left'),
75
+ 'context' => 'normal'
76
+ ),
77
+ array(
78
+ 'label' => 'Background Image',
79
+ 'description' => "Background Image",
80
+ 'id' => 'media-example',
81
+ 'type' => 'media',
82
+ 'default' => '',
83
+ 'context' => 'normal'
84
+ )
85
  );
templates/rsvp-envelope/index.php CHANGED
@@ -1,123 +1,123 @@
1
- <?php
2
- /*****************************************/
3
- // Template Title: RSVP Envelope Template
4
- // Plugin: Landing Pages - Inboundnow.com
5
- /*****************************************/
6
-
7
- /* Include Shareme Library */
8
- include_once(LANDINGPAGES_PATH.'libraries/library.shareme.php');
9
-
10
- /* Declare Template Key */
11
- $key = lp_get_parent_directory(dirname(__FILE__));
12
- $path = LANDINGPAGES_URLPATH.'templates/'.$key.'/';
13
- $url = plugins_url();
14
- /* Define Landing Pages's custom pre-load hook for 3rd party plugin integration */
15
- do_action('lp_init');
16
-
17
- /* Load $post data */
18
- if (have_posts()) : while (have_posts()) : the_post();
19
-
20
- /* Pre-load meta data into variables */
21
- $body_color = lp_get_value($post, $key, 'body-color');
22
- $text_color = lp_get_value($post, $key, 'text-color');
23
- $headline_color = lp_get_value($post, $key, 'headline-color');
24
- $form_text_color = lp_get_value($post, $key, 'form-text-color');
25
- $social_display = lp_get_value($post, $key, 'display-social');
26
- $sidebar = lp_get_value($post, $key, 'sidebar');
27
- $sub_headline = lp_get_value($post, $key, 'sub-headline');
28
- $media_example = lp_get_value($post, $key, 'media-example');
29
- $bg_color = lp_get_value($post, $key, 'main-bg-color');
30
- //prepare content
31
- $content = lp_content_area($post,null,true);
32
- ?>
33
- <!DOCTYPE html>
34
- <html>
35
-
36
- <head>
37
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
38
- <meta charset="utf-8">
39
- <title><?php wp_title(); ?></title>
40
- <?php // wp_enqueue_script( 'jquery');?>
41
- <link rel="stylesheet" href="<?php echo $path; ?>assets/css/style.css" type="text/css" media="screen">
42
- <style>
43
- @font-face {
44
- font-family:'YanoneKaffeesatzRegular';
45
- src: url('<?php echo $path; ?>assets/fonts/yanonekaffeesatz-regular-webfont.eot');
46
- src: url('<?php echo $path; ?>assets/fonts/yanonekaffeesatz-regular-webfont.eot?#iefix') format('embedded-opentype'), url('<?php echo $path; ?>assets/fonts/yanonekaffeesatz-regular-webfont.woff') format('woff'), url('<?php echo $path; ?>assets/fonts/yanonekaffeesatz-regular-webfont.ttf') format('truetype'), url('<?php echo $path; ?>assets/fonts/yanonekaffeesatz-regular-webfont.svg#YanoneKaffeesatzRegular') format('svg');
47
- font-weight: normal;
48
- font-style: normal;
49
- }
50
- body {
51
- background: #ccc url('<?php echo $path; ?>assets/images/bg_out.png');
52
- }
53
- #form_wrap:before {
54
- background:url('<?php echo $path; ?>assets/images/before.png');
55
- }
56
- #form_wrap:after {
57
- background:url('<?php echo $path; ?>assets/images/after.png');
58
- }
59
- form {
60
- background:#f7f2ec url('<?php echo $path; ?>assets/images/letter_bg.png');
61
- }
62
- <?php if ($sidebar==="left") {
63
- echo"#main-content {float: right;}#wrap {float: left;}";
64
- }
65
- ?> <?php if ($body_color !="") {
66
- echo"body {background-color: #$body_color;} "; // change main background color
67
- }
68
- ?> <?php if ($text_color !="") {
69
- echo"body {color: #$text_color;}"; // change text color
70
- }
71
- ?> <?php if ($headline_color !="") {
72
- echo"h1 {color: #$headline_color;}"; // change headline color
73
- }
74
- ?> <?php if ($form_text_color !="") {
75
- echo"form {color: #$form_text_color;}"; // change form color
76
- }
77
- ?>
78
- </style>
79
- <?php wp_head(); // Load Regular WP Head
80
- do_action('lp_head'); // Load Custom Landing Page Specific Header Items ?>
81
- <script src="<?php echo $path; ?>assets/js/jquery-1.3.2.min.js"></script>
82
- <!--[if IE]>
83
- <script>
84
- $(document).ready(function () {
85
-
86
- $("#form_wrap").addClass('hide');
87
-
88
- })
89
- </script>
90
- <![endif]-->
91
-
92
- </head>
93
-
94
- <body>
95
- <div id="body-container">
96
-
97
- <h1><?php lp_main_headline(); ?></h1>
98
- <div id="main-content">
99
- <?php echo $content; ?>
100
- </div>
101
- <div id="wrap">
102
- <div id="form_wrap">
103
- <?php lp_conversion_area(); /* Print out form content */ ?>
104
- </div>
105
- </div>
106
- <?php if ($social_display==="1" ) { // Show Social Media Icons?>
107
- <?php lp_social_media(); // print out social media buttons?>
108
- <?php } ?>
109
- </div>
110
- <script type="text/javascript">
111
- // move form header onto form
112
- jQuery(document).ready(function ($) {
113
- jQuery('#form-header').css("text-align", "center").prependTo('form');
114
- jQuery("input[type='text']:first").css("margin-top", "20px");
115
- jQuery("input[type='submit']:first").css("margin-top", "10px");
116
- });
117
- </script>
118
- <?php break; endwhile; endif;
119
- do_action('lp_footer');
120
- wp_footer(); ?>
121
- </body>
122
-
123
  </html>
1
+ <?php
2
+ /*****************************************/
3
+ // Template Title: RSVP Envelope Template
4
+ // Plugin: Landing Pages - Inboundnow.com
5
+ /*****************************************/
6
+
7
+ /* Include Shareme Library */
8
+ include_once(LANDINGPAGES_PATH.'libraries/library.shareme.php');
9
+
10
+ /* Declare Template Key */
11
+ $key = lp_get_parent_directory(dirname(__FILE__));
12
+ $path = LANDINGPAGES_URLPATH.'templates/'.$key.'/';
13
+ $url = plugins_url();
14
+ /* Define Landing Pages's custom pre-load hook for 3rd party plugin integration */
15
+ do_action('lp_init');
16
+
17
+ /* Load $post data */
18
+ if (have_posts()) : while (have_posts()) : the_post();
19
+
20
+ /* Pre-load meta data into variables */
21
+ $body_color = lp_get_value($post, $key, 'body-color');
22
+ $text_color = lp_get_value($post, $key, 'text-color');
23
+ $headline_color = lp_get_value($post, $key, 'headline-color');
24
+ $form_text_color = lp_get_value($post, $key, 'form-text-color');
25
+ $social_display = lp_get_value($post, $key, 'display-social');
26
+ $sidebar = lp_get_value($post, $key, 'sidebar');
27
+ $sub_headline = lp_get_value($post, $key, 'sub-headline');
28
+ $media_example = lp_get_value($post, $key, 'media-example');
29
+ $bg_color = lp_get_value($post, $key, 'main-bg-color');
30
+ //prepare content
31
+ $content = lp_content_area($post,null,true);
32
+ ?>
33
+ <!DOCTYPE html>
34
+ <html>
35
+
36
+ <head>
37
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
38
+ <meta charset="utf-8">
39
+ <title><?php wp_title(); ?></title>
40
+ <?php // wp_enqueue_script( 'jquery');?>
41
+ <link rel="stylesheet" href="<?php echo $path; ?>assets/css/style.css" type="text/css" media="screen">
42
+ <style>
43
+ @font-face {
44
+ font-family:'YanoneKaffeesatzRegular';
45
+ src: url('<?php echo $path; ?>assets/fonts/yanonekaffeesatz-regular-webfont.eot');
46
+ src: url('<?php echo $path; ?>assets/fonts/yanonekaffeesatz-regular-webfont.eot?#iefix') format('embedded-opentype'), url('<?php echo $path; ?>assets/fonts/yanonekaffeesatz-regular-webfont.woff') format('woff'), url('<?php echo $path; ?>assets/fonts/yanonekaffeesatz-regular-webfont.ttf') format('truetype'), url('<?php echo $path; ?>assets/fonts/yanonekaffeesatz-regular-webfont.svg#YanoneKaffeesatzRegular') format('svg');
47
+ font-weight: normal;
48
+ font-style: normal;
49
+ }
50
+ body {
51
+ background: #ccc url('<?php echo $path; ?>assets/images/bg_out.png');
52
+ }
53
+ #form_wrap:before {
54
+ background:url('<?php echo $path; ?>assets/images/before.png');
55
+ }
56
+ #form_wrap:after {
57
+ background:url('<?php echo $path; ?>assets/images/after.png');
58
+ }
59
+ form {
60
+ background:#f7f2ec url('<?php echo $path; ?>assets/images/letter_bg.png');
61
+ }
62
+ <?php if ($sidebar==="left") {
63
+ echo"#main-content {float: right;}#wrap {float: left;}";
64
+ }
65
+ ?> <?php if ($body_color !="") {
66
+ echo"body {background-color: #$body_color;} "; // change main background color
67
+ }
68
+ ?> <?php if ($text_color !="") {
69
+ echo"body {color: #$text_color;}"; // change text color
70
+ }
71
+ ?> <?php if ($headline_color !="") {
72
+ echo"h1 {color: #$headline_color;}"; // change headline color
73
+ }
74
+ ?> <?php if ($form_text_color !="") {
75
+ echo"form {color: #$form_text_color;}"; // change form color
76
+ }
77
+ ?>
78
+ </style>
79
+ <?php wp_head(); // Load Regular WP Head
80
+ do_action('lp_head'); // Load Custom Landing Page Specific Header Items ?>
81
+ <script src="<?php echo $path; ?>assets/js/jquery-1.3.2.min.js"></script>
82
+ <!--[if IE]>
83
+ <script>
84
+ $(document).ready(function () {
85
+
86
+ $("#form_wrap").addClass('hide');
87
+
88
+ })
89
+ </script>
90
+ <![endif]-->
91
+
92
+ </head>
93
+
94
+ <body>
95
+ <div id="body-container">
96
+
97
+ <h1><?php lp_main_headline(); ?></h1>
98
+ <div id="main-content">
99
+ <?php echo $content; ?>
100
+ </div>
101
+ <div id="wrap">
102
+ <div id="form_wrap">
103
+ <?php lp_conversion_area(); /* Print out form content */ ?>
104
+ </div>
105
+ </div>
106
+ <?php if ($social_display==="1" ) { // Show Social Media Icons?>
107
+ <?php lp_social_media(); // print out social media buttons?>
108
+ <?php } ?>
109
+ </div>
110
+ <script type="text/javascript">
111
+ // move form header onto form
112
+ jQuery(document).ready(function ($) {
113
+ jQuery('#form-header').css("text-align", "center").prependTo('form');
114
+ jQuery("input[type='text']:first").css("margin-top", "20px");
115
+ jQuery("input[type='submit']:first").css("margin-top", "10px");
116
+ });
117
+ </script>
118
+ <?php break; endwhile; endif;
119
+ do_action('lp_footer');
120
+ wp_footer(); ?>
121
+ </body>
122
+
123
  </html>
templates/super-slick/assets/css/farbtastic.css CHANGED
@@ -1,52 +1,52 @@
1
-
2
- .farbtastic {
3
- position: relative;
4
- }
5
-
6
- .farbtastic * {
7
- position: absolute;
8
- cursor: crosshair;
9
- }
10
-
11
- .farbtastic,
12
- .farbtastic .wheel {
13
- width: 195px;
14
- height: 195px;
15
- }
16
-
17
- .farbtastic .color,
18
- .farbtastic .overlay {
19
- top: 47px;
20
- left: 47px;
21
- width: 101px;
22
- height: 101px;
23
- }
24
-
25
- .farbtastic .wheel {
26
- background: url(../images/wheel.png) no-repeat;
27
- width: 195px;
28
- height: 195px;
29
- }
30
-
31
- .farbtastic .overlay {
32
- background: url(../images/mask.png) no-repeat;
33
- }
34
-
35
- .farbtastic .marker {
36
- width: 17px;
37
- height: 17px;
38
- margin: -8px 0 0 -8px;
39
- overflow: hidden;
40
- background: url(../images/marker.png) no-repeat;
41
- }
42
-
43
- /* farbtastic-rtl */
44
- .rtl .farbtastic .color,
45
- .rtl .farbtastic .overlay {
46
- left: 0;
47
- right: 47px;
48
- }
49
-
50
- .rtl .farbtastic .marker {
51
- margin: -8px -8px 0 0;
52
- }
1
+
2
+ .farbtastic {
3
+ position: relative;
4
+ }
5
+
6
+ .farbtastic * {
7
+ position: absolute;
8
+ cursor: crosshair;
9
+ }
10
+
11
+ .farbtastic,
12
+ .farbtastic .wheel {
13
+ width: 195px;
14
+ height: 195px;
15
+ }
16
+
17
+ .farbtastic .color,
18
+ .farbtastic .overlay {
19
+ top: 47px;
20
+ left: 47px;
21
+ width: 101px;
22
+ height: 101px;
23
+ }
24
+
25
+ .farbtastic .wheel {
26
+ background: url(../images/wheel.png) no-repeat;
27
+ width: 195px;
28
+ height: 195px;
29
+ }
30
+
31
+ .farbtastic .overlay {
32
+ background: url(../images/mask.png) no-repeat;
33
+ }
34
+
35
+ .farbtastic .marker {
36
+ width: 17px;
37
+ height: 17px;
38
+ margin: -8px 0 0 -8px;
39
+ overflow: hidden;
40
+ background: url(../images/marker.png) no-repeat;
41
+ }
42
+
43
+ /* farbtastic-rtl */
44
+ .rtl .farbtastic .color,
45
+ .rtl .farbtastic .overlay {
46
+ left: 0;
47
+ right: 47px;
48
+ }
49
+
50
+ .rtl .farbtastic .marker {
51
+ margin: -8px -8px 0 0;
52
+ }
templates/super-slick/assets/js/jquery.js CHANGED
@@ -1,3 +1,3 @@
1
- /*! jQuery v1.8.3 jquery.com | jquery.org/license */
2
- (function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:+r+""===r?+r:D.test(r)?v.parseJSON(r):r}catch(s){}v.data(e,n,r)}else r=t}return r}function B(e){var t;for(t in e){if(t==="data"&&v.isEmptyObject(e[t]))continue;if(t!=="toJSON")return!1}return!0}function et(){return!1}function tt(){return!0}function ut(e){return!e||!e.parentNode||e.parentNode.nodeType===11}function at(e,t){do e=e[t];while(e&&e.nodeType!==1);return e}function ft(e,t,n){t=t||0;if(v.isFunction(t))return v.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return v.grep(e,function(e,r){return e===t===n});if(typeof t=="string"){var r=v.grep(e,function(e){return e.nodeType===1});if(it.test(t))return v.filter(t,r,!n);t=v.filter(t,r)}return v.grep(e,function(e,r){return v.inArray(e,t)>=0===n})}function lt(e){var t=ct.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}function Lt(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function At(e,t){if(t.nodeType!==1||!v.hasData(e))return;var n,r,i,s=v._data(e),o=v._data(t,s),u=s.events;if(u){delete o.handle,o.events={};for(n in u)for(r=0,i=u[n].length;r<i;r++)v.event.add(t,n,u[n][r])}o.data&&(o.data=v.extend({},o.data))}function Ot(e,t){var n;if(t.nodeType!==1)return;t.clearAttributes&&t.clearAttributes(),t.mergeAttributes&&t.mergeAttributes(e),n=t.nodeName.toLowerCase(),n==="object"?(t.parentNode&&(t.outerHTML=e.outerHTML),v.support.html5Clone&&e.innerHTML&&!v.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):n==="input"&&Et.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):n==="option"?t.selected=e.defaultSelected:n==="input"||n==="textarea"?t.defaultValue=e.defaultValue:n==="script"&&t.text!==e.text&&(t.text=e.text),t.removeAttribute(v.expando)}function Mt(e){return typeof e.getElementsByTagName!="undefined"?e.getElementsByTagName("*"):typeof e.querySelectorAll!="undefined"?e.querySelectorAll("*"):[]}function _t(e){Et.test(e.type)&&(e.defaultChecked=e.checked)}function Qt(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=Jt.length;while(i--){t=Jt[i]+n;if(t in e)return t}return r}function Gt(e,t){return e=t||e,v.css(e,"display")==="none"||!v.contains(e.ownerDocument,e)}function Yt(e,t){var n,r,i=[],s=0,o=e.length;for(;s<o;s++){n=e[s];if(!n.style)continue;i[s]=v._data(n,"olddisplay"),t?(!i[s]&&n.style.display==="none"&&(n.style.display=""),n.style.display===""&&Gt(n)&&(i[s]=v._data(n,"olddisplay",nn(n.nodeName)))):(r=Dt(n,"display"),!i[s]&&r!=="none"&&v._data(n,"olddisplay",r))}for(s=0;s<o;s++){n=e[s];if(!n.style)continue;if(!t||n.style.display==="none"||n.style.display==="")n.style.display=t?i[s]||"":"none"}return e}function Zt(e,t,n){var r=Rt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function en(e,t,n,r){var i=n===(r?"border":"content")?4:t==="width"?1:0,s=0;for(;i<4;i+=2)n==="margin"&&(s+=v.css(e,n+$t[i],!0)),r?(n==="content"&&(s-=parseFloat(Dt(e,"padding"+$t[i]))||0),n!=="margin"&&(s-=parseFloat(Dt(e,"border"+$t[i]+"Width"))||0)):(s+=parseFloat(Dt(e,"padding"+$t[i]))||0,n!=="padding"&&(s+=parseFloat(Dt(e,"border"+$t[i]+"Width"))||0));return s}function tn(e,t,n){var r=t==="width"?e.offsetWidth:e.offsetHeight,i=!0,s=v.support.boxSizing&&v.css(e,"boxSizing")==="border-box";if(r<=0||r==null){r=Dt(e,t);if(r<0||r==null)r=e.style[t];if(Ut.test(r))return r;i=s&&(v.support.boxSizingReliable||r===e.style[t]),r=parseFloat(r)||0}return r+en(e,t,n||(s?"border":"content"),i)+"px"}function nn(e){if(Wt[e])return Wt[e];var t=v("<"+e+">").appendTo(i.body),n=t.css("display");t.remove();if(n==="none"||n===""){Pt=i.body.appendChild(Pt||v.extend(i.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!Ht||!Pt.createElement)Ht=(Pt.contentWindow||Pt.contentDocument).document,Ht.write("<!doctype html><html><body>"),Ht.close();t=Ht.body.appendChild(Ht.createElement(e)),n=Dt(t,"display"),i.body.removeChild(Pt)}return Wt[e]=n,n}function fn(e,t,n,r){var i;if(v.isArray(t))v.each(t,function(t,i){n||sn.test(e)?r(e,i):fn(e+"["+(typeof i=="object"?t:"")+"]",i,n,r)});else if(!n&&v.type(t)==="object")for(i in t)fn(e+"["+i+"]",t[i],n,r);else r(e,t)}function Cn(e){return function(t,n){typeof t!="string"&&(n=t,t="*");var r,i,s,o=t.toLowerCase().split(y),u=0,a=o.length;if(v.isFunction(n))for(;u<a;u++)r=o[u],s=/^\+/.test(r),s&&(r=r.substr(1)||"*"),i=e[r]=e[r]||[],i[s?"unshift":"push"](n)}}function kn(e,n,r,i,s,o){s=s||n.dataTypes[0],o=o||{},o[s]=!0;var u,a=e[s],f=0,l=a?a.length:0,c=e===Sn;for(;f<l&&(c||!u);f++)u=a[f](n,r,i),typeof u=="string"&&(!c||o[u]?u=t:(n.dataTypes.unshift(u),u=kn(e,n,r,i,u,o)));return(c||!u)&&!o["*"]&&(u=kn(e,n,r,i,"*",o)),u}function Ln(e,n){var r,i,s=v.ajaxSettings.flatOptions||{};for(r in n)n[r]!==t&&((s[r]?e:i||(i={}))[r]=n[r]);i&&v.extend(!0,e,i)}function An(e,n,r){var i,s,o,u,a=e.contents,f=e.dataTypes,l=e.responseFields;for(s in l)s in r&&(n[l[s]]=r[s]);while(f[0]==="*")f.shift(),i===t&&(i=e.mimeType||n.getResponseHeader("content-type"));if(i)for(s in a)if(a[s]&&a[s].test(i)){f.unshift(s);break}if(f[0]in r)o=f[0];else{for(s in r){if(!f[0]||e.converters[s+" "+f[0]]){o=s;break}u||(u=s)}o=o||u}if(o)return o!==f[0]&&f.unshift(o),r[o]}function On(e,t){var n,r,i,s,o=e.dataTypes.slice(),u=o[0],a={},f=0;e.dataFilter&&(t=e.dataFilter(t,e.dataType));if(o[1])for(n in e.converters)a[n.toLowerCase()]=e.converters[n];for(;i=o[++f];)if(i!=="*"){if(u!=="*"&&u!==i){n=a[u+" "+i]||a["* "+i];if(!n)for(r in a){s=r.split(" ");if(s[1]===i){n=a[u+" "+s[0]]||a["* "+s[0]];if(n){n===!0?n=a[r]:a[r]!==!0&&(i=s[0],o.splice(f--,0,i));break}}}if(n!==!0)if(n&&e["throws"])t=n(t);else try{t=n(t)}catch(l){return{state:"parsererror",error:n?l:"No conversion from "+u+" to "+i}}}u=i}return{state:"success",data:t}}function Fn(){try{return new e.XMLHttpRequest}catch(t){}}function In(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function $n(){return setTimeout(function(){qn=t},0),qn=v.now()}function Jn(e,t){v.each(t,function(t,n){var r=(Vn[t]||[]).concat(Vn["*"]),i=0,s=r.length;for(;i<s;i++)if(r[i].call(e,t,n))return})}function Kn(e,t,n){var r,i=0,s=0,o=Xn.length,u=v.Deferred().always(function(){delete a.elem}),a=function(){var t=qn||$n(),n=Math.max(0,f.startTime+f.duration-t),r=n/f.duration||0,i=1-r,s=0,o=f.tweens.length;for(;s<o;s++)f.tweens[s].run(i);return u.notifyWith(e,[f,i,n]),i<1&&o?n:(u.resolveWith(e,[f]),!1)},f=u.promise({elem:e,props:v.extend({},t),opts:v.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:qn||$n(),duration:n.duration,tweens:[],createTween:function(t,n,r){var i=v.Tween(e,f.opts,t,n,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(i),i},stop:function(t){var n=0,r=t?f.tweens.length:0;for(;n<r;n++)f.tweens[n].run(1);return t?u.resolveWith(e,[f,t]):u.rejectWith(e,[f,t]),this}}),l=f.props;Qn(l,f.opts.specialEasing);for(;i<o;i++){r=Xn[i].call(f,e,l,f.opts);if(r)return r}return Jn(f,l),v.isFunction(f.opts.start)&&f.opts.start.call(e,f),v.fx.timer(v.extend(a,{anim:f,queue:f.opts.queue,elem:e})),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always)}function Qn(e,t){var n,r,i,s,o;for(n in e){r=v.camelCase(n),i=t[r],s=e[n],v.isArray(s)&&(i=s[1],s=e[n]=s[0]),n!==r&&(e[r]=s,delete e[n]),o=v.cssHooks[r];if(o&&"expand"in o){s=o.expand(s),delete e[r];for(n in s)n in e||(e[n]=s[n],t[n]=i)}else t[r]=i}}function Gn(e,t,n){var r,i,s,o,u,a,f,l,c,h=this,p=e.style,d={},m=[],g=e.nodeType&&Gt(e);n.queue||(l=v._queueHooks(e,"fx"),l.unqueued==null&&(l.unqueued=0,c=l.empty.fire,l.empty.fire=function(){l.unqueued||c()}),l.unqueued++,h.always(function(){h.always(function(){l.unqueued--,v.queue(e,"fx").length||l.empty.fire()})})),e.nodeType===1&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],v.css(e,"display")==="inline"&&v.css(e,"float")==="none"&&(!v.support.inlineBlockNeedsLayout||nn(e.nodeName)==="inline"?p.display="inline-block":p.zoom=1)),n.overflow&&(p.overflow="hidden",v.support.shrinkWrapBlocks||h.done(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t){s=t[r];if(Un.exec(s)){delete t[r],a=a||s==="toggle";if(s===(g?"hide":"show"))continue;m.push(r)}}o=m.length;if(o){u=v._data(e,"fxshow")||v._data(e,"fxshow",{}),"hidden"in u&&(g=u.hidden),a&&(u.hidden=!g),g?v(e).show():h.done(function(){v(e).hide()}),h.done(function(){var t;v.removeData(e,"fxshow",!0);for(t in d)v.style(e,t,d[t])});for(r=0;r<o;r++)i=m[r],f=h.createTween(i,g?u[i]:0),d[i]=u[i]||v.style(e,i),i in u||(u[i]=f.start,g&&(f.end=f.start,f.start=i==="width"||i==="height"?1:0))}}function Yn(e,t,n,r,i){return new Yn.prototype.init(e,t,n,r,i)}function Zn(e,t){var n,r={height:e},i=0;t=t?1:0;for(;i<4;i+=2-t)n=$t[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function tr(e){return v.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:!1}var n,r,i=e.document,s=e.location,o=e.navigator,u=e.jQuery,a=e.$,f=Array.prototype.push,l=Array.prototype.slice,c=Array.prototype.indexOf,h=Object.prototype.toString,p=Object.prototype.hasOwnProperty,d=String.prototype.trim,v=function(e,t){return new v.fn.init(e,t,n)},m=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,g=/\S/,y=/\s+/,b=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,w=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,E=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,S=/^[\],:{}\s]*$/,x=/(?:^|:|,)(?:\s*\[)+/g,T=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,N=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,C=/^-ms-/,k=/-([\da-z])/gi,L=function(e,t){return(t+"").toUpperCase()},A=function(){i.addEventListener?(i.removeEventListener("DOMContentLoaded",A,!1),v.ready()):i.readyState==="complete"&&(i.detachEvent("onreadystatechange",A),v.ready())},O={};v.fn=v.prototype={constructor:v,init:function(e,n,r){var s,o,u,a;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if(typeof e=="string"){e.charAt(0)==="<"&&e.charAt(e.length-1)===">"&&e.length>=3?s=[null,e,null]:s=w.exec(e);if(s&&(s[1]||!n)){if(s[1])return n=n instanceof v?n[0]:n,a=n&&n.nodeType?n.ownerDocument||n:i,e=v.parseHTML(s[1],a,!0),E.test(s[1])&&v.isPlainObject(n)&&this.attr.call(e,n,!0),v.merge(this,e);o=i.getElementById(s[2]);if(o&&o.parentNode){if(o.id!==s[2])return r.find(e);this.length=1,this[0]=o}return this.context=i,this.selector=e,this}return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e)}return v.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),v.makeArray(e,this))},selector:"",jquery:"1.8.3",length:0,size:function(){return this.length},toArray:function(){return l.call(this)},get:function(e){return e==null?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var r=v.merge(this.constructor(),e);return r.prevObject=this,r.context=this.context,t==="find"?r.selector=this.selector+(this.selector?" ":"")+n:t&&(r.selector=this.selector+"."+t+"("+n+")"),r},each:function(e,t){return v.each(this,e,t)},ready:function(e){return v.ready.promise().done(e),this},eq:function(e){return e=+e,e===-1?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(l.apply(this,arguments),"slice",l.call(arguments).join(","))},map:function(e){return this.pushStack(v.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:[].sort,splice:[].splice},v.fn.init.prototype=v.fn,v.extend=v.fn.extend=function(){var e,n,r,i,s,o,u=arguments[0]||{},a=1,f=arguments.length,l=!1;typeof u=="boolean"&&(l=u,u=arguments[1]||{},a=2),typeof u!="object"&&!v.isFunction(u)&&(u={}),f===a&&(u=this,--a);for(;a<f;a++)if((e=arguments[a])!=null)for(n in e){r=u[n],i=e[n];if(u===i)continue;l&&i&&(v.isPlainObject(i)||(s=v.isArray(i)))?(s?(s=!1,o=r&&v.isArray(r)?r:[]):o=r&&v.isPlainObject(r)?r:{},u[n]=v.extend(l,o,i)):i!==t&&(u[n]=i)}return u},v.extend({noConflict:function(t){return e.$===v&&(e.$=a),t&&e.jQuery===v&&(e.jQuery=u),v},isReady:!1,readyWait:1,holdReady:function(e){e?v.readyWait++:v.ready(!0)},ready:function(e){if(e===!0?--v.readyWait:v.isReady)return;if(!i.body)return setTimeout(v.ready,1);v.isReady=!0;if(e!==!0&&--v.readyWait>0)return;r.resolveWith(i,[v]),v.fn.trigger&&v(i).trigger("ready").off("ready")},isFunction:function(e){return v.type(e)==="function"},isArray:Array.isArray||function(e){return v.type(e)==="array"},isWindow:function(e){return e!=null&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return e==null?String(e):O[h.call(e)]||"object"},isPlainObject:function(e){if(!e||v.type(e)!=="object"||e.nodeType||v.isWindow(e))return!1;try{if(e.constructor&&!p.call(e,"constructor")&&!p.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}var r;for(r in e);return r===t||p.call(e,r)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw new Error(e)},parseHTML:function(e,t,n){var r;return!e||typeof e!="string"?null:(typeof t=="boolean"&&(n=t,t=0),t=t||i,(r=E.exec(e))?[t.createElement(r[1])]:(r=v.buildFragment([e],t,n?null:[]),v.merge([],(r.cacheable?v.clone(r.fragment):r.fragment).childNodes)))},parseJSON:function(t){if(!t||typeof t!="string")return null;t=v.trim(t);if(e.JSON&&e.JSON.parse)return e.JSON.parse(t);if(S.test(t.replace(T,"@").replace(N,"]").replace(x,"")))return(new Function("return "+t))();v.error("Invalid JSON: "+t)},parseXML:function(n){var r,i;if(!n||typeof n!="string")return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(s){r=t}return(!r||!r.documentElement||r.getElementsByTagName("parsererror").length)&&v.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&g.test(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(C,"ms-").replace(k,L)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,n,r){var i,s=0,o=e.length,u=o===t||v.isFunction(e);if(r){if(u){for(i in e)if(n.apply(e[i],r)===!1)break}else for(;s<o;)if(n.apply(e[s++],r)===!1)break}else if(u){for(i in e)if(n.call(e[i],i,e[i])===!1)break}else for(;s<o;)if(n.call(e[s],s,e[s++])===!1)break;return e},trim:d&&!d.call("\ufeff\u00a0")?function(e){return e==null?"":d.call(e)}:function(e){return e==null?"":(e+"").replace(b,"")},makeArray:function(e,t){var n,r=t||[];return e!=null&&(n=v.type(e),e.length==null||n==="string"||n==="function"||n==="regexp"||v.isWindow(e)?f.call(r,e):v.merge(r,e)),r},inArray:function(e,t,n){var r;if(t){if(c)return c.call(t,e,n);r=t.length,n=n?n<0?Math.max(0,r+n):n:0;for(;n<r;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,s=0;if(typeof r=="number")for(;s<r;s++)e[i++]=n[s];else while(n[s]!==t)e[i++]=n[s++];return e.length=i,e},grep:function(e,t,n){var r,i=[],s=0,o=e.length;n=!!n;for(;s<o;s++)r=!!t(e[s],s),n!==r&&i.push(e[s]);return i},map:function(e,n,r){var i,s,o=[],u=0,a=e.length,f=e instanceof v||a!==t&&typeof a=="number"&&(a>0&&e[0]&&e[a-1]||a===0||v.isArray(e));if(f)for(;u<a;u++)i=n(e[u],u,r),i!=null&&(o[o.length]=i);else for(s in e)i=n(e[s],s,r),i!=null&&(o[o.length]=i);return o.concat.apply([],o)},guid:1,proxy:function(e,n){var r,i,s;return typeof n=="string"&&(r=e[n],n=e,e=r),v.isFunction(e)?(i=l.call(arguments,2),s=function(){return e.apply(n,i.concat(l.call(arguments)))},s.guid=e.guid=e.guid||v.guid++,s):t},access:function(e,n,r,i,s,o,u){var a,f=r==null,l=0,c=e.length;if(r&&typeof r=="object"){for(l in r)v.access(e,n,l,r[l],1,o,i);s=1}else if(i!==t){a=u===t&&v.isFunction(i),f&&(a?(a=n,n=function(e,t,n){return a.call(v(e),n)}):(n.call(e,i),n=null));if(n)for(;l<c;l++)n(e[l],r,a?i.call(e[l],l,n(e[l],r)):i,u);s=1}return s?e:f?n.call(e):c?n(e[0],r):o},now:function(){return(new Date).getTime()}}),v.ready.promise=function(t){if(!r){r=v.Deferred();if(i.readyState==="complete")setTimeout(v.ready,1);else if(i.addEventListener)i.addEventListener("DOMContentLoaded",A,!1),e.addEventListener("load",v.ready,!1);else{i.attachEvent("onreadystatechange",A),e.attachEvent("onload",v.ready);var n=!1;try{n=e.frameElement==null&&i.documentElement}catch(s){}n&&n.doScroll&&function o(){if(!v.isReady){try{n.doScroll("left")}catch(e){return setTimeout(o,50)}v.ready()}}()}}return r.promise(t)},v.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(e,t){O["[object "+t+"]"]=t.toLowerCase()}),n=v(i);var M={};v.Callbacks=function(e){e=typeof e=="string"?M[e]||_(e):v.extend({},e);var n,r,i,s,o,u,a=[],f=!e.once&&[],l=function(t){n=e.memory&&t,r=!0,u=s||0,s=0,o=a.length,i=!0;for(;a&&u<o;u++)if(a[u].apply(t[0],t[1])===!1&&e.stopOnFalse){n=!1;break}i=!1,a&&(f?f.length&&l(f.shift()):n?a=[]:c.disable())},c={add:function(){if(a){var t=a.length;(function r(t){v.each(t,function(t,n){var i=v.type(n);i==="function"?(!e.unique||!c.has(n))&&a.push(n):n&&n.length&&i!=="string"&&r(n)})})(arguments),i?o=a.length:n&&(s=t,l(n))}return this},remove:function(){return a&&v.each(arguments,function(e,t){var n;while((n=v.inArray(t,a,n))>-1)a.splice(n,1),i&&(n<=o&&o--,n<=u&&u--)}),this},has:function(e){return v.inArray(e,a)>-1},empty:function(){return a=[],this},disable:function(){return a=f=n=t,this},disabled:function(){return!a},lock:function(){return f=t,n||c.disable(),this},locked:function(){return!f},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],a&&(!r||f)&&(i?f.push(t):l(t)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},v.extend({Deferred:function(e){var t=[["resolve","done",v.Callbacks("once memory"),"resolved"],["reject","fail",v.Callbacks("once memory"),"rejected"],["notify","progress",v.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return v.Deferred(function(n){v.each(t,function(t,r){var s=r[0],o=e[t];i[r[1]](v.isFunction(o)?function(){var e=o.apply(this,arguments);e&&v.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s+"With"](this===i?n:this,[e])}:n[s])}),e=null}).promise()},promise:function(e){return e!=null?v.extend(e,r):r}},i={};return r.pipe=r.then,v.each(t,function(e,s){var o=s[2],u=s[3];r[s[1]]=o.add,u&&o.add(function(){n=u},t[e^1][2].disable,t[2][2].lock),i[s[0]]=o.fire,i[s[0]+"With"]=o.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=l.call(arguments),r=n.length,i=r!==1||e&&v.isFunction(e.promise)?r:0,s=i===1?e:v.Deferred(),o=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?l.call(arguments):r,n===u?s.notifyWith(t,n):--i||s.resolveWith(t,n)}},u,a,f;if(r>1){u=new Array(r),a=new Array(r),f=new Array(r);for(;t<r;t++)n[t]&&v.isFunction(n[t].promise)?n[t].promise().done(o(t,f,n)).fail(s.reject).progress(o(t,a,u)):--i}return i||s.resolveWith(f,n),s.promise()}}),v.support=function(){var t,n,r,s,o,u,a,f,l,c,h,p=i.createElement("div");p.setAttribute("className","t"),p.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=p.getElementsByTagName("*"),r=p.getElementsByTagName("a")[0];if(!n||!r||!n.length)return{};s=i.createElement("select"),o=s.appendChild(i.createElement("option")),u=p.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(r.getAttribute("style")),hrefNormalized:r.getAttribute("href")==="/a",opacity:/^0.5/.test(r.style.opacity),cssFloat:!!r.style.cssFloat,checkOn:u.value==="on",optSelected:o.selected,getSetAttribute:p.className!=="t",enctype:!!i.createElement("form").enctype,html5Clone:i.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",boxModel:i.compatMode==="CSS1Compat",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},u.checked=!0,t.noCloneChecked=u.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!o.disabled;try{delete p.test}catch(d){t.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",h=function(){t.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick"),p.detachEvent("onclick",h)),u=i.createElement("input"),u.value="t",u.setAttribute("type","radio"),t.radioValue=u.value==="t",u.setAttribute("checked","checked"),u.setAttribute("name","t"),p.appendChild(u),a=i.createDocumentFragment(),a.appendChild(p.lastChild),t.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,t.appendChecked=u.checked,a.removeChild(u),a.appendChild(p);if(p.attachEvent)for(l in{submit:!0,change:!0,focusin:!0})f="on"+l,c=f in p,c||(p.setAttribute(f,"return;"),c=typeof p[f]=="function"),t[l+"Bubbles"]=c;return v(function(){var n,r,s,o,u="padding:0;margin:0;border:0;display:block;overflow:hidden;",a=i.getElementsByTagName("body")[0];if(!a)return;n=i.createElement("div"),n.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",a.insertBefore(n,a.firstChild),r=i.createElement("div"),n.appendChild(r),r.innerHTML="<table><tr><td></td><td>t</td></tr></table>",s=r.getElementsByTagName("td"),s[0].style.cssText="padding:0;margin:0;border:0;display:none",c=s[0].offsetHeight===0,s[0].style.display="",s[1].style.display="none",t.reliableHiddenOffsets=c&&s[0].offsetHeight===0,r.innerHTML="",r.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",t.boxSizing=r.offsetWidth===4,t.doesNotIncludeMarginInBodyOffset=a.offsetTop!==1,e.getComputedStyle&&(t.pixelPosition=(e.getComputedStyle(r,null)||{}).top!=="1%",t.boxSizingReliable=(e.getComputedStyle(r,null)||{width:"4px"}).width==="4px",o=i.createElement("div"),o.style.cssText=r.style.cssText=u,o.style.marginRight=o.style.width="0",r.style.width="1px",r.appendChild(o),t.reliableMarginRight=!parseFloat((e.getComputedStyle(o,null)||{}).marginRight)),typeof r.style.zoom!="undefined"&&(r.innerHTML="",r.style.cssText=u+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=r.offsetWidth===3,r.style.display="block",r.style.overflow="visible",r.innerHTML="<div></div>",r.firstChild.style.width="5px",t.shrinkWrapBlocks=r.offsetWidth!==3,n.style.zoom=1),a.removeChild(n),n=r=s=o=null}),a.removeChild(p),n=r=s=o=u=a=p=null,t}();var D=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,P=/([A-Z])/g;v.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(v.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?v.cache[e[v.expando]]:e[v.expando],!!e&&!B(e)},data:function(e,n,r,i){if(!v.acceptData(e))return;var s,o,u=v.expando,a=typeof n=="string",f=e.nodeType,l=f?v.cache:e,c=f?e[u]:e[u]&&u;if((!c||!l[c]||!i&&!l[c].data)&&a&&r===t)return;c||(f?e[u]=c=v.deletedIds.pop()||v.guid++:c=u),l[c]||(l[c]={},f||(l[c].toJSON=v.noop));if(typeof n=="object"||typeof n=="function")i?l[c]=v.extend(l[c],n):l[c].data=v.extend(l[c].data,n);return s=l[c],i||(s.data||(s.data={}),s=s.data),r!==t&&(s[v.camelCase(n)]=r),a?(o=s[n],o==null&&(o=s[v.camelCase(n)])):o=s,o},removeData:function(e,t,n){if(!v.acceptData(e))return;var r,i,s,o=e.nodeType,u=o?v.cache:e,a=o?e[v.expando]:v.expando;if(!u[a])return;if(t){r=n?u[a]:u[a].data;if(r){v.isArray(t)||(t in r?t=[t]:(t=v.camelCase(t),t in r?t=[t]:t=t.split(" ")));for(i=0,s=t.length;i<s;i++)delete r[t[i]];if(!(n?B:v.isEmptyObject)(r))return}}if(!n){delete u[a].data;if(!B(u[a]))return}o?v.cleanData([e],!0):v.support.deleteExpando||u!=u.window?delete u[a]:u[a]=null},_data:function(e,t,n){return v.data(e,t,n,!0)},acceptData:function(e){var t=e.nodeName&&v.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),v.fn.extend({data:function(e,n){var r,i,s,o,u,a=this[0],f=0,l=null;if(e===t){if(this.length){l=v.data(a);if(a.nodeType===1&&!v._data(a,"parsedAttrs")){s=a.attributes;for(u=s.length;f<u;f++)o=s[f].name,o.indexOf("data-")||(o=v.camelCase(o.substring(5)),H(a,o,l[o]));v._data(a,"parsedAttrs",!0)}}return l}return typeof e=="object"?this.each(function(){v.data(this,e)}):(r=e.split(".",2),r[1]=r[1]?"."+r[1]:"",i=r[1]+"!",v.access(this,function(n){if(n===t)return l=this.triggerHandler("getData"+i,[r[0]]),l===t&&a&&(l=v.data(a,e),l=H(a,e,l)),l===t&&r[1]?this.data(r[0]):l;r[1]=n,this.each(function(){var t=v(this);t.triggerHandler("setData"+i,r),v.data(this,e,n),t.triggerHandler("changeData"+i,r)})},null,n,arguments.length>1,null,!1))},removeData:function(e){return this.each(function(){v.removeData(this,e)})}}),v.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=v._data(e,t),n&&(!r||v.isArray(n)?r=v._data(e,t,v.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=v.queue(e,t),r=n.length,i=n.shift(),s=v._queueHooks(e,t),o=function(){v.dequeue(e,t)};i==="inprogress"&&(i=n.shift(),r--),i&&(t==="fx"&&n.unshift("inprogress"),delete s.stop,i.call(e,o,s)),!r&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return v._data(e,n)||v._data(e,n,{empty:v.Callbacks("once memory").add(function(){v.removeData(e,t+"queue",!0),v.removeData(e,n,!0)})})}}),v.fn.extend({queue:function(e,n){var r=2;return typeof e!="string"&&(n=e,e="fx",r--),arguments.length<r?v.queue(this[0],e):n===t?this:this.each(function(){var t=v.queue(this,e,n);v._queueHooks(this,e),e==="fx"&&t[0]!=="inprogress"&&v.dequeue(this,e)})},dequeue:function(e){return this.each(function(){v.dequeue(this,e)})},delay:function(e,t){return e=v.fx?v.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,s=v.Deferred(),o=this,u=this.length,a=function(){--i||s.resolveWith(o,[o])};typeof e!="string"&&(n=e,e=t),e=e||"fx";while(u--)r=v._data(o[u],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(a));return a(),s.promise(n)}});var j,F,I,q=/[\t\r\n]/g,R=/\r/g,U=/^(?:button|input)$/i,z=/^(?:button|input|object|select|textarea)$/i,W=/^a(?:rea|)$/i,X=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,V=v.support.getSetAttribute;v.fn.extend({attr:function(e,t){return v.access(this,v.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){v.removeAttr(this,e)})},prop:function(e,t){return v.access(this,v.prop,e,t,arguments.length>1)},removeProp:function(e){return e=v.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,s,o,u;if(v.isFunction(e))return this.each(function(t){v(this).addClass(e.call(this,t,this.className))});if(e&&typeof e=="string"){t=e.split(y);for(n=0,r=this.length;n<r;n++){i=this[n];if(i.nodeType===1)if(!i.className&&t.length===1)i.className=e;else{s=" "+i.className+" ";for(o=0,u=t.length;o<u;o++)s.indexOf(" "+t[o]+" ")<0&&(s+=t[o]+" ");i.className=v.trim(s)}}}return this},removeClass:function(e){var n,r,i,s,o,u,a;if(v.isFunction(e))return this.each(function(t){v(this).removeClass(e.call(this,t,this.className))});if(e&&typeof e=="string"||e===t){n=(e||"").split(y);for(u=0,a=this.length;u<a;u++){i=this[u];if(i.nodeType===1&&i.className){r=(" "+i.className+" ").replace(q," ");for(s=0,o=n.length;s<o;s++)while(r.indexOf(" "+n[s]+" ")>=0)r=r.replace(" "+n[s]+" "," ");i.className=e?v.trim(r):""}}}return this},toggleClass:function(e,t){var n=typeof e,r=typeof t=="boolean";return v.isFunction(e)?this.each(function(n){v(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if(n==="string"){var i,s=0,o=v(this),u=t,a=e.split(y);while(i=a[s++])u=r?u:!o.hasClass(i),o[u?"addClass":"removeClass"](i)}else if(n==="undefined"||n==="boolean")this.className&&v._data(this,"__className__",this.className),this.className=this.className||e===!1?"":v._data(this,"__className__")||""})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;n<r;n++)if(this[n].nodeType===1&&(" "+this[n].className+" ").replace(q," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,s=this[0];if(!arguments.length){if(s)return n=v.valHooks[s.type]||v.valHooks[s.nodeName.toLowerCase()],n&&"get"in n&&(r=n.get(s,"value"))!==t?r:(r=s.value,typeof r=="string"?r.replace(R,""):r==null?"":r);return}return i=v.isFunction(e),this.each(function(r){var s,o=v(this);if(this.nodeType!==1)return;i?s=e.call(this,r,o.val()):s=e,s==null?s="":typeof s=="number"?s+="":v.isArray(s)&&(s=v.map(s,function(e){return e==null?"":e+""})),n=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()];if(!n||!("set"in n)||n.set(this,s,"value")===t)this.value=s})}}),v.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,s=e.type==="select-one"||i<0,o=s?null:[],u=s?i+1:r.length,a=i<0?u:s?i:0;for(;a<u;a++){n=r[a];if((n.selected||a===i)&&(v.support.optDisabled?!n.disabled:n.getAttribute("disabled")===null)&&(!n.parentNode.disabled||!v.nodeName(n.parentNode,"optgroup"))){t=v(n).val();if(s)return t;o.push(t)}}return o},set:function(e,t){var n=v.makeArray(t);return v(e).find("option").each(function(){this.selected=v.inArray(v(this).val(),n)>=0}),n.length||(e.selectedIndex=-1),n}}},attrFn:{},attr:function(e,n,r,i){var s,o,u,a=e.nodeType;if(!e||a===3||a===8||a===2)return;if(i&&v.isFunction(v.fn[n]))return v(e)[n](r);if(typeof e.getAttribute=="undefined")return v.prop(e,n,r);u=a!==1||!v.isXMLDoc(e),u&&(n=n.toLowerCase(),o=v.attrHooks[n]||(X.test(n)?F:j));if(r!==t){if(r===null){v.removeAttr(e,n);return}return o&&"set"in o&&u&&(s=o.set(e,r,n))!==t?s:(e.setAttribute(n,r+""),r)}return o&&"get"in o&&u&&(s=o.get(e,n))!==null?s:(s=e.getAttribute(n),s===null?t:s)},removeAttr:function(e,t){var n,r,i,s,o=0;if(t&&e.nodeType===1){r=t.split(y);for(;o<r.length;o++)i=r[o],i&&(n=v.propFix[i]||i,s=X.test(i),s||v.attr(e,i,""),e.removeAttribute(V?i:n),s&&n in e&&(e[n]=!1))}},attrHooks:{type:{set:function(e,t){if(U.test(e.nodeName)&&e.parentNode)v.error("type property can't be changed");else if(!v.support.radioValue&&t==="radio"&&v.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}},value:{get:function(e,t){return j&&v.nodeName(e,"button")?j.get(e,t):t in e?e.value:null},set:function(e,t,n){if(j&&v.nodeName(e,"button"))return j.set(e,t,n);e.value=t}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(e,n,r){var i,s,o,u=e.nodeType;if(!e||u===3||u===8||u===2)return;return o=u!==1||!v.isXMLDoc(e),o&&(n=v.propFix[n]||n,s=v.propHooks[n]),r!==t?s&&"set"in s&&(i=s.set(e,r,n))!==t?i:e[n]=r:s&&"get"in s&&(i=s.get(e,n))!==null?i:e[n]},propHooks:{tabIndex:{get:function(e){var n=e.getAttributeNode("tabindex");return n&&n.specified?parseInt(n.value,10):z.test(e.nodeName)||W.test(e.nodeName)&&e.href?0:t}}}}),F={get:function(e,n){var r,i=v.prop(e,n);return i===!0||typeof i!="boolean"&&(r=e.getAttributeNode(n))&&r.nodeValue!==!1?n.toLowerCase():t},set:function(e,t,n){var r;return t===!1?v.removeAttr(e,n):(r=v.propFix[n]||n,r in e&&(e[r]=!0),e.setAttribute(n,n.toLowerCase())),n}},V||(I={name:!0,id:!0,coords:!0},j=v.valHooks.button={get:function(e,n){var r;return r=e.getAttributeNode(n),r&&(I[n]?r.value!=="":r.specified)?r.value:t},set:function(e,t,n){var r=e.getAttributeNode(n);return r||(r=i.createAttribute(n),e.setAttributeNode(r)),r.value=t+""}},v.each(["width","height"],function(e,t){v.attrHooks[t]=v.extend(v.attrHooks[t],{set:function(e,n){if(n==="")return e.setAttribute(t,"auto"),n}})}),v.attrHooks.contenteditable={get:j.get,set:function(e,t,n){t===""&&(t="false"),j.set(e,t,n)}}),v.support.hrefNormalized||v.each(["href","src","width","height"],function(e,n){v.attrHooks[n]=v.extend(v.attrHooks[n],{get:function(e){var r=e.getAttribute(n,2);return r===null?t:r}})}),v.support.style||(v.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||t},set:function(e,t){return e.style.cssText=t+""}}),v.support.optSelected||(v.propHooks.selected=v.extend(v.propHooks.selected,{get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),v.support.enctype||(v.propFix.enctype="encoding"),v.support.checkOn||v.each(["radio","checkbox"],function(){v.valHooks[this]={get:function(e){return e.getAttribute("value")===null?"on":e.value}}}),v.each(["radio","checkbox"],function(){v.valHooks[this]=v.extend(v.valHooks[this],{set:function(e,t){if(v.isArray(t))return e.checked=v.inArray(v(e).val(),t)>=0}})});var $=/^(?:textarea|input|select)$/i,J=/^([^\.]*|)(?:\.(.+)|)$/,K=/(?:^|\s)hover(\.\S+|)\b/,Q=/^key/,G=/^(?:mouse|contextmenu)|click/,Y=/^(?:focusinfocus|focusoutblur)$/,Z=function(e){return v.event.special.hover?e:e.replace(K,"mouseenter$1 mouseleave$1")};v.event={add:function(e,n,r,i,s){var o,u,a,f,l,c,h,p,d,m,g;if(e.nodeType===3||e.nodeType===8||!n||!r||!(o=v._data(e)))return;r.handler&&(d=r,r=d.handler,s=d.selector),r.guid||(r.guid=v.guid++),a=o.events,a||(o.events=a={}),u=o.handle,u||(o.handle=u=function(e){return typeof v=="undefined"||!!e&&v.event.triggered===e.type?t:v.event.dispatch.apply(u.elem,arguments)},u.elem=e),n=v.trim(Z(n)).split(" ");for(f=0;f<n.length;f++){l=J.exec(n[f])||[],c=l[1],h=(l[2]||"").split(".").sort(),g=v.event.special[c]||{},c=(s?g.delegateType:g.bindType)||c,g=v.event.special[c]||{},p=v.extend({type:c,origType:l[1],data:i,handler:r,guid:r.guid,selector:s,needsContext:s&&v.expr.match.needsContext.test(s),namespace:h.join(".")},d),m=a[c];if(!m){m=a[c]=[],m.delegateCount=0;if(!g.setup||g.setup.call(e,i,h,u)===!1)e.addEventListener?e.addEventListener(c,u,!1):e.attachEvent&&e.attachEvent("on"+c,u)}g.add&&(g.add.call(e,p),p.handler.guid||(p.handler.guid=r.guid)),s?m.splice(m.delegateCount++,0,p):m.push(p),v.event.global[c]=!0}e=null},global:{},remove:function(e,t,n,r,i){var s,o,u,a,f,l,c,h,p,d,m,g=v.hasData(e)&&v._data(e);if(!g||!(h=g.events))return;t=v.trim(Z(t||"")).split(" ");for(s=0;s<t.length;s++){o=J.exec(t[s])||[],u=a=o[1],f=o[2];if(!u){for(u in h)v.event.remove(e,u+t[s],n,r,!0);continue}p=v.event.special[u]||{},u=(r?p.delegateType:p.bindType)||u,d=h[u]||[],l=d.length,f=f?new RegExp("(^|\\.)"+f.split(".").sort().join("\\.(?:.*\\.|)")+"(\\.|$)"):null;for(c=0;c<d.length;c++)m=d[c],(i||a===m.origType)&&(!n||n.guid===m.guid)&&(!f||f.test(m.namespace))&&(!r||r===m.selector||r==="**"&&m.selector)&&(d.splice(c--,1),m.selector&&d.delegateCount--,p.remove&&p.remove.call(e,m));d.length===0&&l!==d.length&&((!p.teardown||p.teardown.call(e,f,g.handle)===!1)&&v.removeEvent(e,u,g.handle),delete h[u])}v.isEmptyObject(h)&&(delete g.handle,v.removeData(e,"events",!0))},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(n,r,s,o){if(!s||s.nodeType!==3&&s.nodeType!==8){var u,a,f,l,c,h,p,d,m,g,y=n.type||n,b=[];if(Y.test(y+v.event.triggered))return;y.indexOf("!")>=0&&(y=y.slice(0,-1),a=!0),y.indexOf(".")>=0&&(b=y.split("."),y=b.shift(),b.sort());if((!s||v.event.customEvent[y])&&!v.event.global[y])return;n=typeof n=="object"?n[v.expando]?n:new v.Event(y,n):new v.Event(y),n.type=y,n.isTrigger=!0,n.exclusive=a,n.namespace=b.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,h=y.indexOf(":")<0?"on"+y:"";if(!s){u=v.cache;for(f in u)u[f].events&&u[f].events[y]&&v.event.trigger(n,r,u[f].handle.elem,!0);return}n.result=t,n.target||(n.target=s),r=r!=null?v.makeArray(r):[],r.unshift(n),p=v.event.special[y]||{};if(p.trigger&&p.trigger.apply(s,r)===!1)return;m=[[s,p.bindType||y]];if(!o&&!p.noBubble&&!v.isWindow(s)){g=p.delegateType||y,l=Y.test(g+y)?s:s.parentNode;for(c=s;l;l=l.parentNode)m.push([l,g]),c=l;c===(s.ownerDocument||i)&&m.push([c.defaultView||c.parentWindow||e,g])}for(f=0;f<m.length&&!n.isPropagationStopped();f++)l=m[f][0],n.type=m[f][1],d=(v._data(l,"events")||{})[n.type]&&v._data(l,"handle"),d&&d.apply(l,r),d=h&&l[h],d&&v.acceptData(l)&&d.apply&&d.apply(l,r)===!1&&n.preventDefault();return n.type=y,!o&&!n.isDefaultPrevented()&&(!p._default||p._default.apply(s.ownerDocument,r)===!1)&&(y!=="click"||!v.nodeName(s,"a"))&&v.acceptData(s)&&h&&s[y]&&(y!=="focus"&&y!=="blur"||n.target.offsetWidth!==0)&&!v.isWindow(s)&&(c=s[h],c&&(s[h]=null),v.event.triggered=y,s[y](),v.event.triggered=t,c&&(s[h]=c)),n.result}return},dispatch:function(n){n=v.event.fix(n||e.event);var r,i,s,o,u,a,f,c,h,p,d=(v._data(this,"events")||{})[n.type]||[],m=d.delegateCount,g=l.call(arguments),y=!n.exclusive&&!n.namespace,b=v.event.special[n.type]||{},w=[];g[0]=n,n.delegateTarget=this;if(b.preDispatch&&b.preDispatch.call(this,n)===!1)return;if(m&&(!n.button||n.type!=="click"))for(s=n.target;s!=this;s=s.parentNode||this)if(s.disabled!==!0||n.type!=="click"){u={},f=[];for(r=0;r<m;r++)c=d[r],h=c.selector,u[h]===t&&(u[h]=c.needsContext?v(h,this).index(s)>=0:v.find(h,this,null,[s]).length),u[h]&&f.push(c);f.length&&w.push({elem:s,matches:f})}d.length>m&&w.push({elem:this,matches:d.slice(m)});for(r=0;r<w.length&&!n.isPropagationStopped();r++){a=w[r],n.currentTarget=a.elem;for(i=0;i<a.matches.length&&!n.isImmediatePropagationStopped();i++){c=a.matches[i];if(y||!n.namespace&&!c.namespace||n.namespace_re&&n.namespace_re.test(c.namespace))n.data=c.data,n.handleObj=c,o=((v.event.special[c.origType]||{}).handle||c.handler).apply(a.elem,g),o!==t&&(n.result=o,o===!1&&(n.preventDefault(),n.stopPropagation()))}}return b.postDispatch&&b.postDispatch.call(this,n),n.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return e.which==null&&(e.which=t.charCode!=null?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,s,o,u=n.button,a=n.fromElement;return e.pageX==null&&n.clientX!=null&&(r=e.target.ownerDocument||i,s=r.documentElement,o=r.body,e.pageX=n.clientX+(s&&s.scrollLeft||o&&o.scrollLeft||0)-(s&&s.clientLeft||o&&o.clientLeft||0),e.pageY=n.clientY+(s&&s.scrollTop||o&&o.scrollTop||0)-(s&&s.clientTop||o&&o.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?n.toElement:a),!e.which&&u!==t&&(e.which=u&1?1:u&2?3:u&4?2:0),e}},fix:function(e){if(e[v.expando])return e;var t,n,r=e,s=v.event.fixHooks[e.type]||{},o=s.props?this.props.concat(s.props):this.props;e=v.Event(r);for(t=o.length;t;)n=o[--t],e[n]=r[n];return e.target||(e.target=r.srcElement||i),e.target.nodeType===3&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,r):e},special:{load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(e,t,n){v.isWindow(this)&&(this.onbeforeunload=n)},teardown:function(e,t){this.onbeforeunload===t&&(this.onbeforeunload=null)}}},simulate:function(e,t,n,r){var i=v.extend(new v.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?v.event.trigger(i,null,t):v.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},v.event.handle=v.event.dispatch,v.removeEvent=i.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]=="undefined"&&(e[r]=null),e.detachEvent(r,n))},v.Event=function(e,t){if(!(this instanceof v.Event))return new v.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?tt:et):this.type=e,t&&v.extend(this,t),this.timeStamp=e&&e.timeStamp||v.now(),this[v.expando]=!0},v.Event.prototype={preventDefault:function(){this.isDefaultPrevented=tt;var e=this.originalEvent;if(!e)return;e.preventDefault?e.preventDefault():e.returnValue=!1},stopPropagation:function(){this.isPropagationStopped=tt;var e=this.originalEvent;if(!e)return;e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=tt,this.stopPropagation()},isDefaultPrevented:et,isPropagationStopped:et,isImmediatePropagationStopped:et},v.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){v.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,s=e.handleObj,o=s.selector;if(!i||i!==r&&!v.contains(r,i))e.type=s.origType,n=s.handler.apply(this,arguments),e.type=t;return n}}}),v.support.submitBubbles||(v.event.special.submit={setup:function(){if(v.nodeName(this,"form"))return!1;v.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=v.nodeName(n,"input")||v.nodeName(n,"button")?n.form:t;r&&!v._data(r,"_submit_attached")&&(v.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),v._data(r,"_submit_attached",!0))})},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&v.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){if(v.nodeName(this,"form"))return!1;v.event.remove(this,"._submit")}}),v.support.changeBubbles||(v.event.special.change={setup:function(){if($.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio")v.event.add(this,"propertychange._change",function(e){e.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),v.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),v.event.simulate("change",this,e,!0)});return!1}v.event.add(this,"beforeactivate._change",function(e){var t=e.target;$.test(t.nodeName)&&!v._data(t,"_change_attached")&&(v.event.add(t,"change._change",function(e){this.parentNode&&!e.isSimulated&&!e.isTrigger&&v.event.simulate("change",this.parentNode,e,!0)}),v._data(t,"_change_attached",!0))})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||t.type!=="radio"&&t.type!=="checkbox")return e.handleObj.handler.apply(this,arguments)},teardown:function(){return v.event.remove(this,"._change"),!$.test(this.nodeName)}}),v.support.focusinBubbles||v.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){v.event.simulate(t,e.target,v.event.fix(e),!0)};v.event.special[t]={setup:function(){n++===0&&i.addEventListener(e,r,!0)},teardown:function(){--n===0&&i.removeEventListener(e,r,!0)}}}),v.fn.extend({on:function(e,n,r,i,s){var o,u;if(typeof e=="object"){typeof n!="string"&&(r=r||n,n=t);for(u in e)this.on(u,n,r,e[u],s);return this}r==null&&i==null?(i=n,r=n=t):i==null&&(typeof n=="string"?(i=r,r=t):(i=r,r=n,n=t));if(i===!1)i=et;else if(!i)return this;return s===1&&(o=i,i=function(e){return v().off(e),o.apply(this,arguments)},i.guid=o.guid||(o.guid=v.guid++)),this.each(function(){v.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,s;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,v(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if(typeof e=="object"){for(s in e)this.off(s,n,e[s]);return this}if(n===!1||typeof n=="function")r=n,n=t;return r===!1&&(r=et),this.each(function(){v.event.remove(this,e,r,n)})},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},live:function(e,t,n){return v(this.context).on(e,this.selector,t,n),this},die:function(e,t){return v(this.context).off(e,this.selector||"**",t),this},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return arguments.length===1?this.off(e,"**"):this.off(t,e||"**",n)},trigger:function(e,t){return this.each(function(){v.event.trigger(e,t,this)})},triggerHandler:function(e,t){if(this[0])return v.event.trigger(e,t,this[0],!0)},toggle:function(e){var t=arguments,n=e.guid||v.guid++,r=0,i=function(n){var i=(v._data(this,"lastToggle"+e.guid)||0)%r;return v._data(this,"lastToggle"+e.guid,i+1),n.preventDefault(),t[i].apply(this,arguments)||!1};i.guid=n;while(r<t.length)t[r++].guid=n;return this.click(i)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),v.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){v.fn[t]=function(e,n){return n==null&&(n=e,e=null),arguments.length>0?this.on(t,null,e,n):this.trigger(t)},Q.test(t)&&(v.event.fixHooks[t]=v.event.keyHooks),G.test(t)&&(v.event.fixHooks[t]=v.event.mouseHooks)}),function(e,t){function nt(e,t,n,r){n=n||[],t=t||g;var i,s,a,f,l=t.nodeType;if(!e||typeof e!="string")return n;if(l!==1&&l!==9)return[];a=o(t);if(!a&&!r)if(i=R.exec(e))if(f=i[1]){if(l===9){s=t.getElementById(f);if(!s||!s.parentNode)return n;if(s.id===f)return n.push(s),n}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(f))&&u(t,s)&&s.id===f)return n.push(s),n}else{if(i[2])return S.apply(n,x.call(t.getElementsByTagName(e),0)),n;if((f=i[3])&&Z&&t.getElementsByClassName)return S.apply(n,x.call(t.getElementsByClassName(f),0)),n}return vt(e.replace(j,"$1"),t,n,r,a)}function rt(e){return function(t){var n=t.nodeName.toLowerCase();return n==="input"&&t.type===e}}function it(e){return function(t){var n=t.nodeName.toLowerCase();return(n==="input"||n==="button")&&t.type===e}}function st(e){return N(function(t){return t=+t,N(function(n,r){var i,s=e([],n.length,t),o=s.length;while(o--)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))})})}function ot(e,t,n){if(e===t)return n;var r=e.nextSibling;while(r){if(r===t)return-1;r=r.nextSibling}return 1}function ut(e,t){var n,r,s,o,u,a,f,l=L[d][e+" "];if(l)return t?0:l.slice(0);u=e,a=[],f=i.preFilter;while(u){if(!n||(r=F.exec(u)))r&&(u=u.slice(r[0].length)||u),a.push(s=[]);n=!1;if(r=I.exec(u))s.push(n=new m(r.shift())),u=u.slice(n.length),n.type=r[0].replace(j," ");for(o in i.filter)(r=J[o].exec(u))&&(!f[o]||(r=f[o](r)))&&(s.push(n=new m(r.shift())),u=u.slice(n.length),n.type=o,n.matches=r);if(!n)break}return t?u.length:u?nt.error(e):L(e,a).slice(0)}function at(e,t,r){var i=t.dir,s=r&&t.dir==="parentNode",o=w++;return t.first?function(t,n,r){while(t=t[i])if(s||t.nodeType===1)return e(t,n,r)}:function(t,r,u){if(!u){var a,f=b+" "+o+" ",l=f+n;while(t=t[i])if(s||t.nodeType===1){if((a=t[d])===l)return t.sizset;if(typeof a=="string"&&a.indexOf(f)===0){if(t.sizset)return t}else{t[d]=l;if(e(t,r,u))return t.sizset=!0,t;t.sizset=!1}}}else while(t=t[i])if(s||t.nodeType===1)if(e(t,r,u))return t}}function ft(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function lt(e,t,n,r,i){var s,o=[],u=0,a=e.length,f=t!=null;for(;u<a;u++)if(s=e[u])if(!n||n(s,r,i))o.push(s),f&&t.push(u);return o}function ct(e,t,n,r,i,s){return r&&!r[d]&&(r=ct(r)),i&&!i[d]&&(i=ct(i,s)),N(function(s,o,u,a){var f,l,c,h=[],p=[],d=o.length,v=s||dt(t||"*",u.nodeType?[u]:u,[]),m=e&&(s||!t)?lt(v,h,e,u,a):v,g=n?i||(s?e:d||r)?[]:o:m;n&&n(m,g,u,a);if(r){f=lt(g,p),r(f,[],u,a),l=f.length;while(l--)if(c=f[l])g[p[l]]=!(m[p[l]]=c)}if(s){if(i||e){if(i){f=[],l=g.length;while(l--)(c=g[l])&&f.push(m[l]=c);i(null,g=[],f,a)}l=g.length;while(l--)(c=g[l])&&(f=i?T.call(s,c):h[l])>-1&&(s[f]=!(o[f]=c))}}else g=lt(g===o?g.splice(d,g.length):g),i?i(null,o,g,a):S.apply(o,g)})}function ht(e){var t,n,r,s=e.length,o=i.relative[e[0].type],u=o||i.relative[" "],a=o?1:0,f=at(function(e){return e===t},u,!0),l=at(function(e){return T.call(t,e)>-1},u,!0),h=[function(e,n,r){return!o&&(r||n!==c)||((t=n).nodeType?f(e,n,r):l(e,n,r))}];for(;a<s;a++)if(n=i.relative[e[a].type])h=[at(ft(h),n)];else{n=i.filter[e[a].type].apply(null,e[a].matches);if(n[d]){r=++a;for(;r<s;r++)if(i.relative[e[r].type])break;return ct(a>1&&ft(h),a>1&&e.slice(0,a-1).join("").replace(j,"$1"),n,a<r&&ht(e.slice(a,r)),r<s&&ht(e=e.slice(r)),r<s&&e.join(""))}h.push(n)}return ft(h)}function pt(e,t){var r=t.length>0,s=e.length>0,o=function(u,a,f,l,h){var p,d,v,m=[],y=0,w="0",x=u&&[],T=h!=null,N=c,C=u||s&&i.find.TAG("*",h&&a.parentNode||a),k=b+=N==null?1:Math.E;T&&(c=a!==g&&a,n=o.el);for(;(p=C[w])!=null;w++){if(s&&p){for(d=0;v=e[d];d++)if(v(p,a,f)){l.push(p);break}T&&(b=k,n=++o.el)}r&&((p=!v&&p)&&y--,u&&x.push(p))}y+=w;if(r&&w!==y){for(d=0;v=t[d];d++)v(x,m,a,f);if(u){if(y>0)while(w--)!x[w]&&!m[w]&&(m[w]=E.call(l));m=lt(m)}S.apply(l,m),T&&!u&&m.length>0&&y+t.length>1&&nt.uniqueSort(l)}return T&&(b=k,c=N),x};return o.el=0,r?N(o):o}function dt(e,t,n){var r=0,i=t.length;for(;r<i;r++)nt(e,t[r],n);return n}function vt(e,t,n,r,s){var o,u,f,l,c,h=ut(e),p=h.length;if(!r&&h.length===1){u=h[0]=h[0].slice(0);if(u.length>2&&(f=u[0]).type==="ID"&&t.nodeType===9&&!s&&i.relative[u[1].type]){t=i.find.ID(f.matches[0].replace($,""),t,s)[0];if(!t)return n;e=e.slice(u.shift().length)}for(o=J.POS.test(e)?-1:u.length-1;o>=0;o--){f=u[o];if(i.relative[l=f.type])break;if(c=i.find[l])if(r=c(f.matches[0].replace($,""),z.test(u[0].type)&&t.parentNode||t,s)){u.splice(o,1),e=r.length&&u.join("");if(!e)return S.apply(n,x.call(r,0)),n;break}}}return a(e,h)(r,t,s,n,z.test(e)),n}function mt(){}var n,r,i,s,o,u,a,f,l,c,h=!0,p="undefined",d=("sizcache"+Math.random()).replace(".",""),m=String,g=e.document,y=g.documentElement,b=0,w=0,E=[].pop,S=[].push,x=[].slice,T=[].indexOf||function(e){var t=0,n=this.length;for(;t<n;t++)if(this[t]===e)return t;return-1},N=function(e,t){return e[d]=t==null||t,e},C=function(){var e={},t=[];return N(function(n,r){return t.push(n)>i.cacheLength&&delete e[t.shift()],e[n+" "]=r},e)},k=C(),L=C(),A=C(),O="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",_=M.replace("w","w#"),D="([*^$|!~]?=)",P="\\["+O+"*("+M+")"+O+"*(?:"+D+O+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+_+")|)|)"+O+"*\\]",H=":("+M+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+P+")|[^:]|\\\\.)*|.*))\\)|)",B=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)",j=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g"),F=new RegExp("^"+O+"*,"+O+"*"),I=new RegExp("^"+O+"*([\\x20\\t\\r\\n\\f>+~])"+O+"*"),q=new RegExp(H),R=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,U=/^:not/,z=/[\x20\t\r\n\f]*[+~]/,W=/:not\($/,X=/h\d/i,V=/input|select|textarea|button/i,$=/\\(?!\\)/g,J={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),NAME:new RegExp("^\\[name=['\"]?("+M+")['\"]?\\]"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+H),POS:new RegExp(B,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),needsContext:new RegExp("^"+O+"*[>+~]|"+B,"i")},K=function(e){var t=g.createElement("div");try{return e(t)}catch(n){return!1}finally{t=null}},Q=K(function(e){return e.appendChild(g.createComment("")),!e.getElementsByTagName("*").length}),G=K(function(e){return e.innerHTML="<a href='#'></a>",e.firstChild&&typeof e.firstChild.getAttribute!==p&&e.firstChild.getAttribute("href")==="#"}),Y=K(function(e){e.innerHTML="<select></select>";var t=typeof e.lastChild.getAttribute("multiple");return t!=="boolean"&&t!=="string"}),Z=K(function(e){return e.innerHTML="<div class='hidden e'></div><div class='hidden'></div>",!e.getElementsByClassName||!e.getElementsByClassName("e").length?!1:(e.lastChild.className="e",e.getElementsByClassName("e").length===2)}),et=K(function(e){e.id=d+0,e.innerHTML="<a name='"+d+"'></a><div name='"+d+"'></div>",y.insertBefore(e,y.firstChild);var t=g.getElementsByName&&g.getElementsByName(d).length===2+g.getElementsByName(d+0).length;return r=!g.getElementById(d),y.removeChild(e),t});try{x.call(y.childNodes,0)[0].nodeType}catch(tt){x=function(e){var t,n=[];for(;t=this[e];e++)n.push(t);return n}}nt.matches=function(e,t){return nt(e,null,null,t)},nt.matchesSelector=function(e,t){return nt(t,null,null,[e]).length>0},s=nt.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(i===1||i===9||i===11){if(typeof e.textContent=="string")return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=s(e)}else if(i===3||i===4)return e.nodeValue}else for(;t=e[r];r++)n+=s(t);return n},o=nt.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?t.nodeName!=="HTML":!1},u=nt.contains=y.contains?function(e,t){var n=e.nodeType===9?e.documentElement:e,r=t&&t.parentNode;return e===r||!!(r&&r.nodeType===1&&n.contains&&n.contains(r))}:y.compareDocumentPosition?function(e,t){return t&&!!(e.compareDocumentPosition(t)&16)}:function(e,t){while(t=t.parentNode)if(t===e)return!0;return!1},nt.attr=function(e,t){var n,r=o(e);return r||(t=t.toLowerCase()),(n=i.attrHandle[t])?n(e):r||Y?e.getAttribute(t):(n=e.getAttributeNode(t),n?typeof e[t]=="boolean"?e[t]?t:null:n.specified?n.value:null:null)},i=nt.selectors={cacheLength:50,createPseudo:N,match:J,attrHandle:G?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},find:{ID:r?function(e,t,n){if(typeof t.getElementById!==p&&!n){var r=t.getElementById(e);return r&&r.parentNode?[r]:[]}}:function(e,n,r){if(typeof n.getElementById!==p&&!r){var i=n.getElementById(e);return i?i.id===e||typeof i.getAttributeNode!==p&&i.getAttributeNode("id").value===e?[i]:t:[]}},TAG:Q?function(e,t){if(typeof t.getElementsByTagName!==p)return t.getElementsByTagName(e)}:function(e,t){var n=t.getElementsByTagName(e);if(e==="*"){var r,i=[],s=0;for(;r=n[s];s++)r.nodeType===1&&i.push(r);return i}return n},NAME:et&&function(e,t){if(typeof t.getElementsByName!==p)return t.getElementsByName(name)},CLASS:Z&&function(e,t,n){if(typeof t.getElementsByClassName!==p&&!n)return t.getElementsByClassName(e)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace($,""),e[3]=(e[4]||e[5]||"").replace($,""),e[2]==="~="&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),e[1]==="nth"?(e[2]||nt.error(e[0]),e[3]=+(e[3]?e[4]+(e[5]||1):2*(e[2]==="even"||e[2]==="odd")),e[4]=+(e[6]+e[7]||e[2]==="odd")):e[2]&&nt.error(e[0]),e},PSEUDO:function(e){var t,n;if(J.CHILD.test(e[0]))return null;if(e[3])e[2]=e[3];else if(t=e[4])q.test(t)&&(n=ut(t,!0))&&(n=t.indexOf(")",t.length-n)-t.length)&&(t=t.slice(0,n),e[0]=e[0].slice(0,n)),e[2]=t;return e.slice(0,3)}},filter:{ID:r?function(e){return e=e.replace($,""),function(t){return t.getAttribute("id")===e}}:function(e){return e=e.replace($,""),function(t){var n=typeof t.getAttributeNode!==p&&t.getAttributeNode("id");return n&&n.value===e}},TAG:function(e){return e==="*"?function(){return!0}:(e=e.replace($,"").toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=k[d][e+" "];return t||(t=new RegExp("(^|"+O+")"+e+"("+O+"|$)"))&&k(e,function(e){return t.test(e.className||typeof e.getAttribute!==p&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r,i){var s=nt.attr(r,e);return s==null?t==="!=":t?(s+="",t==="="?s===n:t==="!="?s!==n:t==="^="?n&&s.indexOf(n)===0:t==="*="?n&&s.indexOf(n)>-1:t==="$="?n&&s.substr(s.length-n.length)===n:t==="~="?(" "+s+" ").indexOf(n)>-1:t==="|="?s===n||s.substr(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r){return e==="nth"?function(e){var t,i,s=e.parentNode;if(n===1&&r===0)return!0;if(s){i=0;for(t=s.firstChild;t;t=t.nextSibling)if(t.nodeType===1){i++;if(e===t)break}}return i-=r,i===n||i%n===0&&i/n>=0}:function(t){var n=t;switch(e){case"only":case"first":while(n=n.previousSibling)if(n.nodeType===1)return!1;if(e==="first")return!0;n=t;case"last":while(n=n.nextSibling)if(n.nodeType===1)return!1;return!0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||nt.error("unsupported pseudo: "+e);return r[d]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?N(function(e,n){var i,s=r(e,t),o=s.length;while(o--)i=T.call(e,s[o]),e[i]=!(n[i]=s[o])}):function(e){return r(e,0,n)}):r}},pseudos:{not:N(function(e){var t=[],n=[],r=a(e.replace(j,"$1"));return r[d]?N(function(e,t,n,i){var s,o=r(e,null,i,[]),u=e.length;while(u--)if(s=o[u])e[u]=!(t[u]=s)}):function(e,i,s){return t[0]=e,r(t,null,s,n),!n.pop()}}),has:N(function(e){return function(t){return nt(e,t).length>0}}),contains:N(function(e){return function(t){return(t.textContent||t.innerText||s(t)).indexOf(e)>-1}}),enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&!!e.checked||t==="option"&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},parent:function(e){return!i.pseudos.empty(e)},empty:function(e){var t;e=e.firstChild;while(e){if(e.nodeName>"@"||(t=e.nodeType)===3||t===4)return!1;e=e.nextSibling}return!0},header:function(e){return X.test(e.nodeName)},text:function(e){var t,n;return e.nodeName.toLowerCase()==="input"&&(t=e.type)==="text"&&((n=e.getAttribute("type"))==null||n.toLowerCase()===t)},radio:rt("radio"),checkbox:rt("checkbox"),file:rt("file"),password:rt("password"),image:rt("image"),submit:it("submit"),reset:it("reset"),button:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&e.type==="button"||t==="button"},input:function(e){return V.test(e.nodeName)},focus:function(e){var t=e.ownerDocument;return e===t.activeElement&&(!t.hasFocus||t.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},active:function(e){return e===e.ownerDocument.activeElement},first:st(function(){return[0]}),last:st(function(e,t){return[t-1]}),eq:st(function(e,t,n){return[n<0?n+t:n]}),even:st(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:st(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:st(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:st(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},f=y.compareDocumentPosition?function(e,t){return e===t?(l=!0,0):(!e.compareDocumentPosition||!t.compareDocumentPosition?e.compareDocumentPosition:e.compareDocumentPosition(t)&4)?-1:1}:function(e,t){if(e===t)return l=!0,0;if(e.sourceIndex&&t.sourceIndex)return e.sourceIndex-t.sourceIndex;var n,r,i=[],s=[],o=e.parentNode,u=t.parentNode,a=o;if(o===u)return ot(e,t);if(!o)return-1;if(!u)return 1;while(a)i.unshift(a),a=a.parentNode;a=u;while(a)s.unshift(a),a=a.parentNode;n=i.length,r=s.length;for(var f=0;f<n&&f<r;f++)if(i[f]!==s[f])return ot(i[f],s[f]);return f===n?ot(e,s[f],-1):ot(i[f],t,1)},[0,0].sort(f),h=!l,nt.uniqueSort=function(e){var t,n=[],r=1,i=0;l=h,e.sort(f);if(l){for(;t=e[r];r++)t===e[r-1]&&(i=n.push(r));while(i--)e.splice(n[i],1)}return e},nt.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},a=nt.compile=function(e,t){var n,r=[],i=[],s=A[d][e+" "];if(!s){t||(t=ut(e)),n=t.length;while(n--)s=ht(t[n]),s[d]?r.push(s):i.push(s);s=A(e,pt(i,r))}return s},g.querySelectorAll&&function(){var e,t=vt,n=/'|\\/g,r=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,i=[":focus"],s=[":active"],u=y.matchesSelector||y.mozMatchesSelector||y.webkitMatchesSelector||y.oMatchesSelector||y.msMatchesSelector;K(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||i.push("\\["+O+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||i.push(":checked")}),K(function(e){e.innerHTML="<p test=''></p>",e.querySelectorAll("[test^='']").length&&i.push("[*^$]="+O+"*(?:\"\"|'')"),e.innerHTML="<input type='hidden'/>",e.querySelectorAll(":enabled").length||i.push(":enabled",":disabled")}),i=new RegExp(i.join("|")),vt=function(e,r,s,o,u){if(!o&&!u&&!i.test(e)){var a,f,l=!0,c=d,h=r,p=r.nodeType===9&&e;if(r.nodeType===1&&r.nodeName.toLowerCase()!=="object"){a=ut(e),(l=r.getAttribute("id"))?c=l.replace(n,"\\$&"):r.setAttribute("id",c),c="[id='"+c+"'] ",f=a.length;while(f--)a[f]=c+a[f].join("");h=z.test(e)&&r.parentNode||r,p=a.join(",")}if(p)try{return S.apply(s,x.call(h.querySelectorAll(p),0)),s}catch(v){}finally{l||r.removeAttribute("id")}}return t(e,r,s,o,u)},u&&(K(function(t){e=u.call(t,"div");try{u.call(t,"[test!='']:sizzle"),s.push("!=",H)}catch(n){}}),s=new RegExp(s.join("|")),nt.matchesSelector=function(t,n){n=n.replace(r,"='$1']");if(!o(t)&&!s.test(n)&&!i.test(n))try{var a=u.call(t,n);if(a||e||t.document&&t.document.nodeType!==11)return a}catch(f){}return nt(n,null,null,[t]).length>0})}(),i.pseudos.nth=i.pseudos.eq,i.filters=mt.prototype=i.pseudos,i.setFilters=new mt,nt.attr=v.attr,v.find=nt,v.expr=nt.selectors,v.expr[":"]=v.expr.pseudos,v.unique=nt.uniqueSort,v.text=nt.getText,v.isXMLDoc=nt.isXML,v.contains=nt.contains}(e);var nt=/Until$/,rt=/^(?:parents|prev(?:Until|All))/,it=/^.[^:#\[\.,]*$/,st=v.expr.match.needsContext,ot={children:!0,contents:!0,next:!0,prev:!0};v.fn.extend({find:function(e){var t,n,r,i,s,o,u=this;if(typeof e!="string")return v(e).filter(function(){for(t=0,n=u.length;t<n;t++)if(v.contains(u[t],this))return!0});o=this.pushStack("","find",e);for(t=0,n=this.length;t<n;t++){r=o.length,v.find(e,this[t],o);if(t>0)for(i=r;i<o.length;i++)for(s=0;s<r;s++)if(o[s]===o[i]){o.splice(i--,1);break}}return o},has:function(e){var t,n=v(e,this),r=n.length;return this.filter(function(){for(t=0;t<r;t++)if(v.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(ft(this,e,!1),"not",e)},filter:function(e){return this.pushStack(ft(this,e,!0),"filter",e)},is:function(e){return!!e&&(typeof e=="string"?st.test(e)?v(e,this.context).index(this[0])>=0:v.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n,r=0,i=this.length,s=[],o=st.test(e)||typeof e!="string"?v(e,t||this.context):0;for(;r<i;r++){n=this[r];while(n&&n.ownerDocument&&n!==t&&n.nodeType!==11){if(o?o.index(n)>-1:v.find.matchesSelector(n,e)){s.push(n);break}n=n.parentNode}}return s=s.length>1?v.unique(s):s,this.pushStack(s,"closest",e)},index:function(e){return e?typeof e=="string"?v.inArray(this[0],v(e)):v.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(e,t){var n=typeof e=="string"?v(e,t):v.makeArray(e&&e.nodeType?[e]:e),r=v.merge(this.get(),n);return this.pushStack(ut(n[0])||ut(r[0])?r:v.unique(r))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}}),v.fn.andSelf=v.fn.addBack,v.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return v.dir(e,"parentNode")},parentsUntil:function(e,t,n){return v.dir(e,"parentNode",n)},next:function(e){return at(e,"nextSibling")},prev:function(e){return at(e,"previousSibling")},nextAll:function(e){return v.dir(e,"nextSibling")},prevAll:function(e){return v.dir(e,"previousSibling")},nextUntil:function(e,t,n){return v.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return v.dir(e,"previousSibling",n)},siblings:function(e){return v.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return v.sibling(e.firstChild)},contents:function(e){return v.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:v.merge([],e.childNodes)}},function(e,t){v.fn[e]=function(n,r){var i=v.map(this,t,n);return nt.test(e)||(r=n),r&&typeof r=="string"&&(i=v.filter(r,i)),i=this.length>1&&!ot[e]?v.unique(i):i,this.length>1&&rt.test(e)&&(i=i.reverse()),this.pushStack(i,e,l.call(arguments).join(","))}}),v.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),t.length===1?v.find.matchesSelector(t[0],e)?[t[0]]:[]:v.find.matches(e,t)},dir:function(e,n,r){var i=[],s=e[n];while(s&&s.nodeType!==9&&(r===t||s.nodeType!==1||!v(s).is(r)))s.nodeType===1&&i.push(s),s=s[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n}});var ct="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ht=/ jQuery\d+="(?:null|\d+)"/g,pt=/^\s+/,dt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,vt=/<([\w:]+)/,mt=/<tbody/i,gt=/<|&#?\w+;/,yt=/<(?:script|style|link)/i,bt=/<(?:script|object|embed|option|style)/i,wt=new RegExp("<(?:"+ct+")[\\s/>]","i"),Et=/^(?:checkbox|radio)$/,St=/checked\s*(?:[^=]|=\s*.checked.)/i,xt=/\/(java|ecma)script/i,Tt=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,Nt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},Ct=lt(i),kt=Ct.appendChild(i.createElement("div"));Nt.optgroup=Nt.option,Nt.tbody=Nt.tfoot=Nt.colgroup=Nt.caption=Nt.thead,Nt.th=Nt.td,v.support.htmlSerialize||(Nt._default=[1,"X<div>","</div>"]),v.fn.extend({text:function(e){return v.access(this,function(e){return e===t?v.text(this):this.empty().append((this[0]&&this[0].ownerDocument||i).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(v.isFunction(e))return this.each(function(t){v(this).wrapAll(e.call(this,t))});if(this[0]){var t=v(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&e.firstChild.nodeType===1)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return v.isFunction(e)?this.each(function(t){v(this).wrapInner(e.call(this,t))}):this.each(function(){var t=v(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=v.isFunction(e);return this.each(function(n){v(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){v.nodeName(this,"body")||v(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){(this.nodeType===1||this.nodeType===11)&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){(this.nodeType===1||this.nodeType===11)&&this.insertBefore(e,this.firstChild)})},before:function(){if(!ut(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this)});if(arguments.length){var e=v.clean(arguments);return this.pushStack(v.merge(e,this),"before",this.selector)}},after:function(){if(!ut(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this.nextSibling)});if(arguments.length){var e=v.clean(arguments);return this.pushStack(v.merge(this,e),"after",this.selector)}},remove:function(e,t){var n,r=0;for(;(n=this[r])!=null;r++)if(!e||v.filter(e,[n]).length)!t&&n.nodeType===1&&(v.cleanData(n.getElementsByTagName("*")),v.cleanData([n])),n.parentNode&&n.parentNode.removeChild(n);return this},empty:function(){var e,t=0;for(;(e=this[t])!=null;t++){e.nodeType===1&&v.cleanData(e.getElementsByTagName("*"));while(e.firstChild)e.removeChild(e.firstChild)}return this},clone:function(e,t){return e=e==null?!1:e,t=t==null?e:t,this.map(function(){return v.clone(this,e,t)})},html:function(e){return v.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return n.nodeType===1?n.innerHTML.replace(ht,""):t;if(typeof e=="string"&&!yt.test(e)&&(v.support.htmlSerialize||!wt.test(e))&&(v.support.leadingWhitespace||!pt.test(e))&&!Nt[(vt.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(dt,"<$1></$2>");try{for(;r<i;r++)n=this[r]||{},n.nodeType===1&&(v.cleanData(n.getElementsByTagName("*")),n.innerHTML=e);n=0}catch(s){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(e){return ut(this[0])?this.length?this.pushStack(v(v.isFunction(e)?e():e),"replaceWith",e):this:v.isFunction(e)?this.each(function(t){var n=v(this),r=n.html();n.replaceWith(e.call(this,t,r))}):(typeof e!="string"&&(e=v(e).detach()),this.each(function(){var t=this.nextSibling,n=this.parentNode;v(this).remove(),t?v(t).before(e):v(n).append(e)}))},detach:function(e){return this.remove(e,!0)},domManip:function(e,n,r){e=[].concat.apply([],e);var i,s,o,u,a=0,f=e[0],l=[],c=this.length;if(!v.support.checkClone&&c>1&&typeof f=="string"&&St.test(f))return this.each(function(){v(this).domManip(e,n,r)});if(v.isFunction(f))return this.each(function(i){var s=v(this);e[0]=f.call(this,i,n?s.html():t),s.domManip(e,n,r)});if(this[0]){i=v.buildFragment(e,this,l),o=i.fragment,s=o.firstChild,o.childNodes.length===1&&(o=s);if(s){n=n&&v.nodeName(s,"tr");for(u=i.cacheable||c-1;a<c;a++)r.call(n&&v.nodeName(this[a],"table")?Lt(this[a],"tbody"):this[a],a===u?o:v.clone(o,!0,!0))}o=s=null,l.length&&v.each(l,function(e,t){t.src?v.ajax?v.ajax({url:t.src,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0}):v.error("no ajax"):v.globalEval((t.text||t.textContent||t.innerHTML||"").replace(Tt,"")),t.parentNode&&t.parentNode.removeChild(t)})}return this}}),v.buildFragment=function(e,n,r){var s,o,u,a=e[0];return n=n||i,n=!n.nodeType&&n[0]||n,n=n.ownerDocument||n,e.length===1&&typeof a=="string"&&a.length<512&&n===i&&a.charAt(0)==="<"&&!bt.test(a)&&(v.support.checkClone||!St.test(a))&&(v.support.html5Clone||!wt.test(a))&&(o=!0,s=v.fragments[a],u=s!==t),s||(s=n.createDocumentFragment(),v.clean(e,n,s,r),o&&(v.fragments[a]=u&&s)),{fragment:s,cacheable:o}},v.fragments={},v.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){v.fn[e]=function(n){var r,i=0,s=[],o=v(n),u=o.length,a=this.length===1&&this[0].parentNode;if((a==null||a&&a.nodeType===11&&a.childNodes.length===1)&&u===1)return o[t](this[0]),this;for(;i<u;i++)r=(i>0?this.clone(!0):this).get(),v(o[i])[t](r),s=s.concat(r);return this.pushStack(s,e,o.selector)}}),v.extend({clone:function(e,t,n){var r,i,s,o;v.support.html5Clone||v.isXMLDoc(e)||!wt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(kt.innerHTML=e.outerHTML,kt.removeChild(o=kt.firstChild));if((!v.support.noCloneEvent||!v.support.noCloneChecked)&&(e.nodeType===1||e.nodeType===11)&&!v.isXMLDoc(e)){Ot(e,o),r=Mt(e),i=Mt(o);for(s=0;r[s];++s)i[s]&&Ot(r[s],i[s])}if(t){At(e,o);if(n){r=Mt(e),i=Mt(o);for(s=0;r[s];++s)At(r[s],i[s])}}return r=i=null,o},clean:function(e,t,n,r){var s,o,u,a,f,l,c,h,p,d,m,g,y=t===i&&Ct,b=[];if(!t||typeof t.createDocumentFragment=="undefined")t=i;for(s=0;(u=e[s])!=null;s++){typeof u=="number"&&(u+="");if(!u)continue;if(typeof u=="string")if(!gt.test(u))u=t.createTextNode(u);else{y=y||lt(t),c=t.createElement("div"),y.appendChild(c),u=u.replace(dt,"<$1></$2>"),a=(vt.exec(u)||["",""])[1].toLowerCase(),f=Nt[a]||Nt._default,l=f[0],c.innerHTML=f[1]+u+f[2];while(l--)c=c.lastChild;if(!v.support.tbody){h=mt.test(u),p=a==="table"&&!h?c.firstChild&&c.firstChild.childNodes:f[1]==="<table>"&&!h?c.childNodes:[];for(o=p.length-1;o>=0;--o)v.nodeName(p[o],"tbody")&&!p[o].childNodes.length&&p[o].parentNode.removeChild(p[o])}!v.support.leadingWhitespace&&pt.test(u)&&c.insertBefore(t.createTextNode(pt.exec(u)[0]),c.firstChild),u=c.childNodes,c.parentNode.removeChild(c)}u.nodeType?b.push(u):v.merge(b,u)}c&&(u=c=y=null);if(!v.support.appendChecked)for(s=0;(u=b[s])!=null;s++)v.nodeName(u,"input")?_t(u):typeof u.getElementsByTagName!="undefined"&&v.grep(u.getElementsByTagName("input"),_t);if(n){m=function(e){if(!e.type||xt.test(e.type))return r?r.push(e.parentNode?e.parentNode.removeChild(e):e):n.appendChild(e)};for(s=0;(u=b[s])!=null;s++)if(!v.nodeName(u,"script")||!m(u))n.appendChild(u),typeof u.getElementsByTagName!="undefined"&&(g=v.grep(v.merge([],u.getElementsByTagName("script")),m),b.splice.apply(b,[s+1,0].concat(g)),s+=g.length)}return b},cleanData:function(e,t){var n,r,i,s,o=0,u=v.expando,a=v.cache,f=v.support.deleteExpando,l=v.event.special;for(;(i=e[o])!=null;o++)if(t||v.acceptData(i)){r=i[u],n=r&&a[r];if(n){if(n.events)for(s in n.events)l[s]?v.event.remove(i,s):v.removeEvent(i,s,n.handle);a[r]&&(delete a[r],f?delete i[u]:i.removeAttribute?i.removeAttribute(u):i[u]=null,v.deletedIds.push(r))}}}}),function(){var e,t;v.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e=v.uaMatch(o.userAgent),t={},e.browser&&(t[e.browser]=!0,t.version=e.version),t.chrome?t.webkit=!0:t.webkit&&(t.safari=!0),v.browser=t,v.sub=function(){function e(t,n){return new e.fn.init(t,n)}v.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(r,i){return i&&i instanceof v&&!(i instanceof e)&&(i=e(i)),v.fn.init.call(this,r,i,t)},e.fn.init.prototype=e.fn;var t=e(i);return e}}();var Dt,Pt,Ht,Bt=/alpha\([^)]*\)/i,jt=/opacity=([^)]*)/,Ft=/^(top|right|bottom|left)$/,It=/^(none|table(?!-c[ea]).+)/,qt=/^margin/,Rt=new RegExp("^("+m+")(.*)$","i"),Ut=new RegExp("^("+m+")(?!px)[a-z%]+$","i"),zt=new RegExp("^([-+])=("+m+")","i"),Wt={BODY:"block"},Xt={position:"absolute",visibility:"hidden",display:"block"},Vt={letterSpacing:0,fontWeight:400},$t=["Top","Right","Bottom","Left"],Jt=["Webkit","O","Moz","ms"],Kt=v.fn.toggle;v.fn.extend({css:function(e,n){return v.access(this,function(e,n,r){return r!==t?v.style(e,n,r):v.css(e,n)},e,n,arguments.length>1)},show:function(){return Yt(this,!0)},hide:function(){return Yt(this)},toggle:function(e,t){var n=typeof e=="boolean";return v.isFunction(e)&&v.isFunction(t)?Kt.apply(this,arguments):this.each(function(){(n?e:Gt(this))?v(this).show():v(this).hide()})}}),v.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Dt(e,"opacity");return n===""?"1":n}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":v.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(!e||e.nodeType===3||e.nodeType===8||!e.style)return;var s,o,u,a=v.camelCase(n),f=e.style;n=v.cssProps[a]||(v.cssProps[a]=Qt(f,a)),u=v.cssHooks[n]||v.cssHooks[a];if(r===t)return u&&"get"in u&&(s=u.get(e,!1,i))!==t?s:f[n];o=typeof r,o==="string"&&(s=zt.exec(r))&&(r=(s[1]+1)*s[2]+parseFloat(v.css(e,n)),o="number");if(r==null||o==="number"&&isNaN(r))return;o==="number"&&!v.cssNumber[a]&&(r+="px");if(!u||!("set"in u)||(r=u.set(e,r,i))!==t)try{f[n]=r}catch(l){}},css:function(e,n,r,i){var s,o,u,a=v.camelCase(n);return n=v.cssProps[a]||(v.cssProps[a]=Qt(e.style,a)),u=v.cssHooks[n]||v.cssHooks[a],u&&"get"in u&&(s=u.get(e,!0,i)),s===t&&(s=Dt(e,n)),s==="normal"&&n in Vt&&(s=Vt[n]),r||i!==t?(o=parseFloat(s),r||v.isNumeric(o)?o||0:s):s},swap:function(e,t,n){var r,i,s={};for(i in t)s[i]=e.style[i],e.style[i]=t[i];r=n.call(e);for(i in t)e.style[i]=s[i];return r}}),e.getComputedStyle?Dt=function(t,n){var r,i,s,o,u=e.getComputedStyle(t,null),a=t.style;return u&&(r=u.getPropertyValue(n)||u[n],r===""&&!v.contains(t.ownerDocument,t)&&(r=v.style(t,n)),Ut.test(r)&&qt.test(n)&&(i=a.width,s=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=r,r=u.width,a.width=i,a.minWidth=s,a.maxWidth=o)),r}:i.documentElement.currentStyle&&(Dt=function(e,t){var n,r,i=e.currentStyle&&e.currentStyle[t],s=e.style;return i==null&&s&&s[t]&&(i=s[t]),Ut.test(i)&&!Ft.test(t)&&(n=s.left,r=e.runtimeStyle&&e.runtimeStyle.left,r&&(e.runtimeStyle.left=e.currentStyle.left),s.left=t==="fontSize"?"1em":i,i=s.pixelLeft+"px",s.left=n,r&&(e.runtimeStyle.left=r)),i===""?"auto":i}),v.each(["height","width"],function(e,t){v.cssHooks[t]={get:function(e,n,r){if(n)return e.offsetWidth===0&&It.test(Dt(e,"display"))?v.swap(e,Xt,function(){return tn(e,t,r)}):tn(e,t,r)},set:function(e,n,r){return Zt(e,n,r?en(e,t,r,v.support.boxSizing&&v.css(e,"boxSizing")==="border-box"):0)}}}),v.support.opacity||(v.cssHooks.opacity={get:function(e,t){return jt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=v.isNumeric(t)?"alpha(opacity="+t*100+")":"",s=r&&r.filter||n.filter||"";n.zoom=1;if(t>=1&&v.trim(s.replace(Bt,""))===""&&n.removeAttribute){n.removeAttribute("filter");if(r&&!r.filter)return}n.filter=Bt.test(s)?s.replace(Bt,i):s+" "+i}}),v(function(){v.support.reliableMarginRight||(v.cssHooks.marginRight={get:function(e,t){return v.swap(e,{display:"inline-block"},function(){if(t)return Dt(e,"marginRight")})}}),!v.support.pixelPosition&&v.fn.position&&v.each(["top","left"],function(e,t){v.cssHooks[t]={get:function(e,n){if(n){var r=Dt(e,t);return Ut.test(r)?v(e).position()[t]+"px":r}}}})}),v.expr&&v.expr.filters&&(v.expr.filters.hidden=function(e){return e.offsetWidth===0&&e.offsetHeight===0||!v.support.reliableHiddenOffsets&&(e.style&&e.style.display||Dt(e,"display"))==="none"},v.expr.filters.visible=function(e){return!v.expr.filters.hidden(e)}),v.each({margin:"",padding:"",border:"Width"},function(e,t){v.cssHooks[e+t]={expand:function(n){var r,i=typeof n=="string"?n.split(" "):[n],s={};for(r=0;r<4;r++)s[e+$t[r]+t]=i[r]||i[r-2]||i[0];return s}},qt.test(e)||(v.cssHooks[e+t].set=Zt)});var rn=/%20/g,sn=/\[\]$/,on=/\r?\n/g,un=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,an=/^(?:select|textarea)/i;v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?v.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||an.test(this.nodeName)||un.test(this.type))}).map(function(e,t){var n=v(this).val();return n==null?null:v.isArray(n)?v.map(n,function(e,n){return{name:t.name,value:e.replace(on,"\r\n")}}):{name:t.name,value:n.replace(on,"\r\n")}}).get()}}),v.param=function(e,n){var r,i=[],s=function(e,t){t=v.isFunction(t)?t():t==null?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};n===t&&(n=v.ajaxSettings&&v.ajaxSettings.traditional);if(v.isArray(e)||e.jquery&&!v.isPlainObject(e))v.each(e,function(){s(this.name,this.value)});else for(r in e)fn(r,e[r],n,s);return i.join("&").replace(rn,"+")};var ln,cn,hn=/#.*$/,pn=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,dn=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,vn=/^(?:GET|HEAD)$/,mn=/^\/\//,gn=/\?/,yn=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bn=/([?&])_=[^&]*/,wn=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,En=v.fn.load,Sn={},xn={},Tn=["*/"]+["*"];try{cn=s.href}catch(Nn){cn=i.createElement("a"),cn.href="",cn=cn.href}ln=wn.exec(cn.toLowerCase())||[],v.fn.load=function(e,n,r){if(typeof e!="string"&&En)return En.apply(this,arguments);if(!this.length)return this;var i,s,o,u=this,a=e.indexOf(" ");return a>=0&&(i=e.slice(a,e.length),e=e.slice(0,a)),v.isFunction(n)?(r=n,n=t):n&&typeof n=="object"&&(s="POST"),v.ajax({url:e,type:s,dataType:"html",data:n,complete:function(e,t){r&&u.each(r,o||[e.responseText,t,e])}}).done(function(e){o=arguments,u.html(i?v("<div>").append(e.replace(yn,"")).find(i):e)}),this},v.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,t){v.fn[t]=function(e){return this.on(t,e)}}),v.each(["get","post"],function(e,n){v[n]=function(e,r,i,s){return v.isFunction(r)&&(s=s||i,i=r,r=t),v.ajax({type:n,url:e,data:r,success:i,dataType:s})}}),v.extend({getScript:function(e,n){return v.get(e,t,n,"script")},getJSON:function(e,t,n){return v.get(e,t,n,"json")},ajaxSetup:function(e,t){return t?Ln(e,v.ajaxSettings):(t=e,e=v.ajaxSettings),Ln(e,t),e},ajaxSettings:{url:cn,isLocal:dn.test(ln[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Tn},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":v.parseJSON,"text xml":v.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:Cn(Sn),ajaxTransport:Cn(xn),ajax:function(e,n){function T(e,n,s,a){var l,y,b,w,S,T=n;if(E===2)return;E=2,u&&clearTimeout(u),o=t,i=a||"",x.readyState=e>0?4:0,s&&(w=An(c,x,s));if(e>=200&&e<300||e===304)c.ifModified&&(S=x.getResponseHeader("Last-Modified"),S&&(v.lastModified[r]=S),S=x.getResponseHeader("Etag"),S&&(v.etag[r]=S)),e===304?(T="notmodified",l=!0):(l=On(c,w),T=l.state,y=l.data,b=l.error,l=!b);else{b=T;if(!T||e)T="error",e<0&&(e=0)}x.status=e,x.statusText=(n||T)+"",l?d.resolveWith(h,[y,T,x]):d.rejectWith(h,[x,T,b]),x.statusCode(g),g=t,f&&p.trigger("ajax"+(l?"Success":"Error"),[x,c,l?y:b]),m.fireWith(h,[x,T]),f&&(p.trigger("ajaxComplete",[x,c]),--v.active||v.event.trigger("ajaxStop"))}typeof e=="object"&&(n=e,e=t),n=n||{};var r,i,s,o,u,a,f,l,c=v.ajaxSetup({},n),h=c.context||c,p=h!==c&&(h.nodeType||h instanceof v)?v(h):v.event,d=v.Deferred(),m=v.Callbacks("once memory"),g=c.statusCode||{},b={},w={},E=0,S="canceled",x={readyState:0,setRequestHeader:function(e,t){if(!E){var n=e.toLowerCase();e=w[n]=w[n]||e,b[e]=t}return this},getAllResponseHeaders:function(){return E===2?i:null},getResponseHeader:function(e){var n;if(E===2){if(!s){s={};while(n=pn.exec(i))s[n[1].toLowerCase()]=n[2]}n=s[e.toLowerCase()]}return n===t?null:n},overrideMimeType:function(e){return E||(c.mimeType=e),this},abort:function(e){return e=e||S,o&&o.abort(e),T(0,e),this}};d.promise(x),x.success=x.done,x.error=x.fail,x.complete=m.add,x.statusCode=function(e){if(e){var t;if(E<2)for(t in e)g[t]=[g[t],e[t]];else t=e[x.status],x.always(t)}return this},c.url=((e||c.url)+"").replace(hn,"").replace(mn,ln[1]+"//"),c.dataTypes=v.trim(c.dataType||"*").toLowerCase().split(y),c.crossDomain==null&&(a=wn.exec(c.url.toLowerCase()),c.crossDomain=!(!a||a[1]===ln[1]&&a[2]===ln[2]&&(a[3]||(a[1]==="http:"?80:443))==(ln[3]||(ln[1]==="http:"?80:443)))),c.data&&c.processData&&typeof c.data!="string"&&(c.data=v.param(c.data,c.traditional)),kn(Sn,c,n,x);if(E===2)return x;f=c.global,c.type=c.type.toUpperCase(),c.hasContent=!vn.test(c.type),f&&v.active++===0&&v.event.trigger("ajaxStart");if(!c.hasContent){c.data&&(c.url+=(gn.test(c.url)?"&":"?")+c.data,delete c.data),r=c.url;if(c.cache===!1){var N=v.now(),C=c.url.replace(bn,"$1_="+N);c.url=C+(C===c.url?(gn.test(c.url)?"&":"?")+"_="+N:"")}}(c.data&&c.hasContent&&c.contentType!==!1||n.contentType)&&x.setRequestHeader("Content-Type",c.contentType),c.ifModified&&(r=r||c.url,v.lastModified[r]&&x.setRequestHeader("If-Modified-Since",v.lastModified[r]),v.etag[r]&&x.setRequestHeader("If-None-Match",v.etag[r])),x.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+(c.dataTypes[0]!=="*"?", "+Tn+"; q=0.01":""):c.accepts["*"]);for(l in c.headers)x.setRequestHeader(l,c.headers[l]);if(!c.beforeSend||c.beforeSend.call(h,x,c)!==!1&&E!==2){S="abort";for(l in{success:1,error:1,complete:1})x[l](c[l]);o=kn(xn,c,n,x);if(!o)T(-1,"No Transport");else{x.readyState=1,f&&p.trigger("ajaxSend",[x,c]),c.async&&c.timeout>0&&(u=setTimeout(function(){x.abort("timeout")},c.timeout));try{E=1,o.send(b,T)}catch(k){if(!(E<2))throw k;T(-1,k)}}return x}return x.abort()},active:0,lastModified:{},etag:{}});var Mn=[],_n=/\?/,Dn=/(=)\?(?=&|$)|\?\?/,Pn=v.now();v.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Mn.pop()||v.expando+"_"+Pn++;return this[e]=!0,e}}),v.ajaxPrefilter("json jsonp",function(n,r,i){var s,o,u,a=n.data,f=n.url,l=n.jsonp!==!1,c=l&&Dn.test(f),h=l&&!c&&typeof a=="string"&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Dn.test(a);if(n.dataTypes[0]==="jsonp"||c||h)return s=n.jsonpCallback=v.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,o=e[s],c?n.url=f.replace(Dn,"$1"+s):h?n.data=a.replace(Dn,"$1"+s):l&&(n.url+=(_n.test(f)?"&":"?")+n.jsonp+"="+s),n.converters["script json"]=function(){return u||v.error(s+" was not called"),u[0]},n.dataTypes[0]="json",e[s]=function(){u=arguments},i.always(function(){e[s]=o,n[s]&&(n.jsonpCallback=r.jsonpCallback,Mn.push(s)),u&&v.isFunction(o)&&o(u[0]),u=o=t}),"script"}),v.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return v.globalEval(e),e}}}),v.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),v.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=i.head||i.getElementsByTagName("head")[0]||i.documentElement;return{send:function(s,o){n=i.createElement("script"),n.async="async",e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,i){if(i||!n.readyState||/loaded|complete/.test(n.readyState))n.onload=n.onreadystatechange=null,r&&n.parentNode&&r.removeChild(n),n=t,i||o(200,"success")},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(0,1)}}}});var Hn,Bn=e.ActiveXObject?function(){for(var e in Hn)Hn[e](0,1)}:!1,jn=0;v.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&Fn()||In()}:Fn,function(e){v.extend(v.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})}(v.ajaxSettings.xhr()),v.support.ajax&&v.ajaxTransport(function(n){if(!n.crossDomain||v.support.cors){var r;return{send:function(i,s){var o,u,a=n.xhr();n.username?a.open(n.type,n.url,n.async,n.username,n.password):a.open(n.type,n.url,n.async);if(n.xhrFields)for(u in n.xhrFields)a[u]=n.xhrFields[u];n.mimeType&&a.overrideMimeType&&a.overrideMimeType(n.mimeType),!n.crossDomain&&!i["X-Requested-With"]&&(i["X-Requested-With"]="XMLHttpRequest");try{for(u in i)a.setRequestHeader(u,i[u])}catch(f){}a.send(n.hasContent&&n.data||null),r=function(e,i){var u,f,l,c,h;try{if(r&&(i||a.readyState===4)){r=t,o&&(a.onreadystatechange=v.noop,Bn&&delete Hn[o]);if(i)a.readyState!==4&&a.abort();else{u=a.status,l=a.getAllResponseHeaders(),c={},h=a.responseXML,h&&h.documentElement&&(c.xml=h);try{c.text=a.responseText}catch(p){}try{f=a.statusText}catch(p){f=""}!u&&n.isLocal&&!n.crossDomain?u=c.text?200:404:u===1223&&(u=204)}}}catch(d){i||s(-1,d)}c&&s(u,f,c,l)},n.async?a.readyState===4?setTimeout(r,0):(o=++jn,Bn&&(Hn||(Hn={},v(e).unload(Bn)),Hn[o]=r),a.onreadystatechange=r):r()},abort:function(){r&&r(0,1)}}}});var qn,Rn,Un=/^(?:toggle|show|hide)$/,zn=new RegExp("^(?:([-+])=|)("+m+")([a-z%]*)$","i"),Wn=/queueHooks$/,Xn=[Gn],Vn={"*":[function(e,t){var n,r,i=this.createTween(e,t),s=zn.exec(t),o=i.cur(),u=+o||0,a=1,f=20;if(s){n=+s[2],r=s[3]||(v.cssNumber[e]?"":"px");if(r!=="px"&&u){u=v.css(i.elem,e,!0)||n||1;do a=a||".5",u/=a,v.style(i.elem,e,u+r);while(a!==(a=i.cur()/o)&&a!==1&&--f)}i.unit=r,i.start=u,i.end=s[1]?u+(s[1]+1)*n:n}return i}]};v.Animation=v.extend(Kn,{tweener:function(e,t){v.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;r<i;r++)n=e[r],Vn[n]=Vn[n]||[],Vn[n].unshift(t)},prefilter:function(e,t){t?Xn.unshift(e):Xn.push(e)}}),v.Tween=Yn,Yn.prototype={constructor:Yn,init:function(e,t,n,r,i,s){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=s||(v.cssNumber[n]?"":"px")},cur:function(){var e=Yn.propHooks[this.prop];return e&&e.get?e.get(this):Yn.propHooks._default.get(this)},run:function(e){var t,n=Yn.propHooks[this.prop];return this.options.duration?this.pos=t=v.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Yn.propHooks._default.set(this),this}},Yn.prototype.init.prototype=Yn.prototype,Yn.propHooks={_default:{get:function(e){var t;return e.elem[e.prop]==null||!!e.elem.style&&e.elem.style[e.prop]!=null?(t=v.css(e.elem,e.prop,!1,""),!t||t==="auto"?0:t):e.elem[e.prop]},set:function(e){v.fx.step[e.prop]?v.fx.step[e.prop](e):e.elem.style&&(e.elem.style[v.cssProps[e.prop]]!=null||v.cssHooks[e.prop])?v.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Yn.propHooks.scrollTop=Yn.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},v.each(["toggle","show","hide"],function(e,t){var n=v.fn[t];v.fn[t]=function(r,i,s){return r==null||typeof r=="boolean"||!e&&v.isFunction(r)&&v.isFunction(i)?n.apply(this,arguments):this.animate(Zn(t,!0),r,i,s)}}),v.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Gt).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=v.isEmptyObject(e),s=v.speed(t,n,r),o=function(){var t=Kn(this,v.extend({},e),s);i&&t.stop(!0)};return i||s.queue===!1?this.each(o):this.queue(s.queue,o)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return typeof e!="string"&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=e!=null&&e+"queueHooks",s=v.timers,o=v._data(this);if(n)o[n]&&o[n].stop&&i(o[n]);else for(n in o)o[n]&&o[n].stop&&Wn.test(n)&&i(o[n]);for(n=s.length;n--;)s[n].elem===this&&(e==null||s[n].queue===e)&&(s[n].anim.stop(r),t=!1,s.splice(n,1));(t||!r)&&v.dequeue(this,e)})}}),v.each({slideDown:Zn("show"),slideUp:Zn("hide"),slideToggle:Zn("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){v.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),v.speed=function(e,t,n){var r=e&&typeof e=="object"?v.extend({},e):{complete:n||!n&&t||v.isFunction(e)&&e,duration:e,easing:n&&t||t&&!v.isFunction(t)&&t};r.duration=v.fx.off?0:typeof r.duration=="number"?r.duration:r.duration in v.fx.speeds?v.fx.speeds[r.duration]:v.fx.speeds._default;if(r.queue==null||r.queue===!0)r.queue="fx";return r.old=r.complete,r.complete=function(){v.isFunction(r.old)&&r.old.call(this),r.queue&&v.dequeue(this,r.queue)},r},v.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},v.timers=[],v.fx=Yn.prototype.init,v.fx.tick=function(){var e,n=v.timers,r=0;qn=v.now();for(;r<n.length;r++)e=n[r],!e()&&n[r]===e&&n.splice(r--,1);n.length||v.fx.stop(),qn=t},v.fx.timer=function(e){e()&&v.timers.push(e)&&!Rn&&(Rn=setInterval(v.fx.tick,v.fx.interval))},v.fx.interval=13,v.fx.stop=function(){clearInterval(Rn),Rn=null},v.fx.speeds={slow:600,fast:200,_default:400},v.fx.step={},v.expr&&v.expr.filters&&(v.expr.filters.animated=function(e){return v.grep(v.timers,function(t){return e===t.elem}).length});var er=/^(?:body|html)$/i;v.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){v.offset.setOffset(this,e,t)});var n,r,i,s,o,u,a,f={top:0,left:0},l=this[0],c=l&&l.ownerDocument;if(!c)return;return(r=c.body)===l?v.offset.bodyOffset(l):(n=c.documentElement,v.contains(n,l)?(typeof l.getBoundingClientRect!="undefined"&&(f=l.getBoundingClientRect()),i=tr(c),s=n.clientTop||r.clientTop||0,o=n.clientLeft||r.clientLeft||0,u=i.pageYOffset||n.scrollTop,a=i.pageXOffset||n.scrollLeft,{top:f.top+u-s,left:f.left+a-o}):f)},v.offset={bodyOffset:function(e){var t=e.offsetTop,n=e.offsetLeft;return v.support.doesNotIncludeMarginInBodyOffset&&(t+=parseFloat(v.css(e,"marginTop"))||0,n+=parseFloat(v.css(e,"marginLeft"))||0),{top:t,left:n}},setOffset:function(e,t,n){var r=v.css(e,"position");r==="static"&&(e.style.position="relative");var i=v(e),s=i.offset(),o=v.css(e,"top"),u=v.css(e,"left"),a=(r==="absolute"||r==="fixed")&&v.inArray("auto",[o,u])>-1,f={},l={},c,h;a?(l=i.position(),c=l.top,h=l.left):(c=parseFloat(o)||0,h=parseFloat(u)||0),v.isFunction(t)&&(t=t.call(e,n,s)),t.top!=null&&(f.top=t.top-s.top+c),t.left!=null&&(f.left=t.left-s.left+h),"using"in t?t.using.call(e,f):i.css(f)}},v.fn.extend({position:function(){if(!this[0])return;var e=this[0],t=this.offsetParent(),n=this.offset(),r=er.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(v.css(e,"marginTop"))||0,n.left-=parseFloat(v.css(e,"marginLeft"))||0,r.top+=parseFloat(v.css(t[0],"borderTopWidth"))||0,r.left+=parseFloat(v.css(t[0],"borderLeftWidth"))||0,{top:n.top-r.top,left:n.left-r.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||i.body;while(e&&!er.test(e.nodeName)&&v.css(e,"position")==="static")e=e.offsetParent;return e||i.body})}}),v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);v.fn[e]=function(i){return v.access(this,function(e,i,s){var o=tr(e);if(s===t)return o?n in o?o[n]:o.document.documentElement[i]:e[i];o?o.scrollTo(r?v(o).scrollLeft():s,r?s:v(o).scrollTop()):e[i]=s},e,i,arguments.length,null)}}),v.each({Height:"height",Width:"width"},function(e,n){v.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){v.fn[i]=function(i,s){var o=arguments.length&&(r||typeof i!="boolean"),u=r||(i===!0||s===!0?"margin":"border");return v.access(this,function(n,r,i){var s;return v.isWindow(n)?n.document.documentElement["client"+e]:n.nodeType===9?(s=n.documentElement,Math.max(n.body["scroll"+e],s["scroll"+e],n.body["offset"+e],s["offset"+e],s["client"+e])):i===t?v.css(n,r,i,u):v.style(n,r,i,u)},n,o?i:t,o,null)}})}),e.jQuery=e.$=v,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return v})})(window);
3
- jQuery.noConflict();
1
+ /*! jQuery v1.8.3 jquery.com | jquery.org/license */
2
+ (function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:+r+""===r?+r:D.test(r)?v.parseJSON(r):r}catch(s){}v.data(e,n,r)}else r=t}return r}function B(e){var t;for(t in e){if(t==="data"&&v.isEmptyObject(e[t]))continue;if(t!=="toJSON")return!1}return!0}function et(){return!1}function tt(){return!0}function ut(e){return!e||!e.parentNode||e.parentNode.nodeType===11}function at(e,t){do e=e[t];while(e&&e.nodeType!==1);return e}function ft(e,t,n){t=t||0;if(v.isFunction(t))return v.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return v.grep(e,function(e,r){return e===t===n});if(typeof t=="string"){var r=v.grep(e,function(e){return e.nodeType===1});if(it.test(t))return v.filter(t,r,!n);t=v.filter(t,r)}return v.grep(e,function(e,r){return v.inArray(e,t)>=0===n})}function lt(e){var t=ct.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}function Lt(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function At(e,t){if(t.nodeType!==1||!v.hasData(e))return;var n,r,i,s=v._data(e),o=v._data(t,s),u=s.events;if(u){delete o.handle,o.events={};for(n in u)for(r=0,i=u[n].length;r<i;r++)v.event.add(t,n,u[n][r])}o.data&&(o.data=v.extend({},o.data))}function Ot(e,t){var n;if(t.nodeType!==1)return;t.clearAttributes&&t.clearAttributes(),t.mergeAttributes&&t.mergeAttributes(e),n=t.nodeName.toLowerCase(),n==="object"?(t.parentNode&&(t.outerHTML=e.outerHTML),v.support.html5Clone&&e.innerHTML&&!v.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):n==="input"&&Et.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):n==="option"?t.selected=e.defaultSelected:n==="input"||n==="textarea"?t.defaultValue=e.defaultValue:n==="script"&&t.text!==e.text&&(t.text=e.text),t.removeAttribute(v.expando)}function Mt(e){return typeof e.getElementsByTagName!="undefined"?e.getElementsByTagName("*"):typeof e.querySelectorAll!="undefined"?e.querySelectorAll("*"):[]}function _t(e){Et.test(e.type)&&(e.defaultChecked=e.checked)}function Qt(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=Jt.length;while(i--){t=Jt[i]+n;if(t in e)return t}return r}function Gt(e,t){return e=t||e,v.css(e,"display")==="none"||!v.contains(e.ownerDocument,e)}function Yt(e,t){var n,r,i=[],s=0,o=e.length;for(;s<o;s++){n=e[s];if(!n.style)continue;i[s]=v._data(n,"olddisplay"),t?(!i[s]&&n.style.display==="none"&&(n.style.display=""),n.style.display===""&&Gt(n)&&(i[s]=v._data(n,"olddisplay",nn(n.nodeName)))):(r=Dt(n,"display"),!i[s]&&r!=="none"&&v._data(n,"olddisplay",r))}for(s=0;s<o;s++){n=e[s];if(!n.style)continue;if(!t||n.style.display==="none"||n.style.display==="")n.style.display=t?i[s]||"":"none"}return e}function Zt(e,t,n){var r=Rt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function en(e,t,n,r){var i=n===(r?"border":"content")?4:t==="width"?1:0,s=0;for(;i<4;i+=2)n==="margin"&&(s+=v.css(e,n+$t[i],!0)),r?(n==="content"&&(s-=parseFloat(Dt(e,"padding"+$t[i]))||0),n!=="margin"&&(s-=parseFloat(Dt(e,"border"+$t[i]+"Width"))||0)):(s+=parseFloat(Dt(e,"padding"+$t[i]))||0,n!=="padding"&&(s+=parseFloat(Dt(e,"border"+$t[i]+"Width"))||0));return s}function tn(e,t,n){var r=t==="width"?e.offsetWidth:e.offsetHeight,i=!0,s=v.support.boxSizing&&v.css(e,"boxSizing")==="border-box";if(r<=0||r==null){r=Dt(e,t);if(r<0||r==null)r=e.style[t];if(Ut.test(r))return r;i=s&&(v.support.boxSizingReliable||r===e.style[t]),r=parseFloat(r)||0}return r+en(e,t,n||(s?"border":"content"),i)+"px"}function nn(e){if(Wt[e])return Wt[e];var t=v("<"+e+">").appendTo(i.body),n=t.css("display");t.remove();if(n==="none"||n===""){Pt=i.body.appendChild(Pt||v.extend(i.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!Ht||!Pt.createElement)Ht=(Pt.contentWindow||Pt.contentDocument).document,Ht.write("<!doctype html><html><body>"),Ht.close();t=Ht.body.appendChild(Ht.createElement(e)),n=Dt(t,"display"),i.body.removeChild(Pt)}return Wt[e]=n,n}function fn(e,t,n,r){var i;if(v.isArray(t))v.each(t,function(t,i){n||sn.test(e)?r(e,i):fn(e+"["+(typeof i=="object"?t:"")+"]",i,n,r)});else if(!n&&v.type(t)==="object")for(i in t)fn(e+"["+i+"]",t[i],n,r);else r(e,t)}function Cn(e){return function(t,n){typeof t!="string"&&(n=t,t="*");var r,i,s,o=t.toLowerCase().split(y),u=0,a=o.length;if(v.isFunction(n))for(;u<a;u++)r=o[u],s=/^\+/.test(r),s&&(r=r.substr(1)||"*"),i=e[r]=e[r]||[],i[s?"unshift":"push"](n)}}function kn(e,n,r,i,s,o){s=s||n.dataTypes[0],o=o||{},o[s]=!0;var u,a=e[s],f=0,l=a?a.length:0,c=e===Sn;for(;f<l&&(c||!u);f++)u=a[f](n,r,i),typeof u=="string"&&(!c||o[u]?u=t:(n.dataTypes.unshift(u),u=kn(e,n,r,i,u,o)));return(c||!u)&&!o["*"]&&(u=kn(e,n,r,i,"*",o)),u}function Ln(e,n){var r,i,s=v.ajaxSettings.flatOptions||{};for(r in n)n[r]!==t&&((s[r]?e:i||(i={}))[r]=n[r]);i&&v.extend(!0,e,i)}function An(e,n,r){var i,s,o,u,a=e.contents,f=e.dataTypes,l=e.responseFields;for(s in l)s in r&&(n[l[s]]=r[s]);while(f[0]==="*")f.shift(),i===t&&(i=e.mimeType||n.getResponseHeader("content-type"));if(i)for(s in a)if(a[s]&&a[s].test(i)){f.unshift(s);break}if(f[0]in r)o=f[0];else{for(s in r){if(!f[0]||e.converters[s+" "+f[0]]){o=s;break}u||(u=s)}o=o||u}if(o)return o!==f[0]&&f.unshift(o),r[o]}function On(e,t){var n,r,i,s,o=e.dataTypes.slice(),u=o[0],a={},f=0;e.dataFilter&&(t=e.dataFilter(t,e.dataType));if(o[1])for(n in e.converters)a[n.toLowerCase()]=e.converters[n];for(;i=o[++f];)if(i!=="*"){if(u!=="*"&&u!==i){n=a[u+" "+i]||a["* "+i];if(!n)for(r in a){s=r.split(" ");if(s[1]===i){n=a[u+" "+s[0]]||a["* "+s[0]];if(n){n===!0?n=a[r]:a[r]!==!0&&(i=s[0],o.splice(f--,0,i));break}}}if(n!==!0)if(n&&e["throws"])t=n(t);else try{t=n(t)}catch(l){return{state:"parsererror",error:n?l:"No conversion from "+u+" to "+i}}}u=i}return{state:"success",data:t}}function Fn(){try{return new e.XMLHttpRequest}catch(t){}}function In(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function $n(){return setTimeout(function(){qn=t},0),qn=v.now()}function Jn(e,t){v.each(t,function(t,n){var r=(Vn[t]||[]).concat(Vn["*"]),i=0,s=r.length;for(;i<s;i++)if(r[i].call(e,t,n))return})}function Kn(e,t,n){var r,i=0,s=0,o=Xn.length,u=v.Deferred().always(function(){delete a.elem}),a=function(){var t=qn||$n(),n=Math.max(0,f.startTime+f.duration-t),r=n/f.duration||0,i=1-r,s=0,o=f.tweens.length;for(;s<o;s++)f.tweens[s].run(i);return u.notifyWith(e,[f,i,n]),i<1&&o?n:(u.resolveWith(e,[f]),!1)},f=u.promise({elem:e,props:v.extend({},t),opts:v.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:qn||$n(),duration:n.duration,tweens:[],createTween:function(t,n,r){var i=v.Tween(e,f.opts,t,n,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(i),i},stop:function(t){var n=0,r=t?f.tweens.length:0;for(;n<r;n++)f.tweens[n].run(1);return t?u.resolveWith(e,[f,t]):u.rejectWith(e,[f,t]),this}}),l=f.props;Qn(l,f.opts.specialEasing);for(;i<o;i++){r=Xn[i].call(f,e,l,f.opts);if(r)return r}return Jn(f,l),v.isFunction(f.opts.start)&&f.opts.start.call(e,f),v.fx.timer(v.extend(a,{anim:f,queue:f.opts.queue,elem:e})),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always)}function Qn(e,t){var n,r,i,s,o;for(n in e){r=v.camelCase(n),i=t[r],s=e[n],v.isArray(s)&&(i=s[1],s=e[n]=s[0]),n!==r&&(e[r]=s,delete e[n]),o=v.cssHooks[r];if(o&&"expand"in o){s=o.expand(s),delete e[r];for(n in s)n in e||(e[n]=s[n],t[n]=i)}else t[r]=i}}function Gn(e,t,n){var r,i,s,o,u,a,f,l,c,h=this,p=e.style,d={},m=[],g=e.nodeType&&Gt(e);n.queue||(l=v._queueHooks(e,"fx"),l.unqueued==null&&(l.unqueued=0,c=l.empty.fire,l.empty.fire=function(){l.unqueued||c()}),l.unqueued++,h.always(function(){h.always(function(){l.unqueued--,v.queue(e,"fx").length||l.empty.fire()})})),e.nodeType===1&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],v.css(e,"display")==="inline"&&v.css(e,"float")==="none"&&(!v.support.inlineBlockNeedsLayout||nn(e.nodeName)==="inline"?p.display="inline-block":p.zoom=1)),n.overflow&&(p.overflow="hidden",v.support.shrinkWrapBlocks||h.done(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t){s=t[r];if(Un.exec(s)){delete t[r],a=a||s==="toggle";if(s===(g?"hide":"show"))continue;m.push(r)}}o=m.length;if(o){u=v._data(e,"fxshow")||v._data(e,"fxshow",{}),"hidden"in u&&(g=u.hidden),a&&(u.hidden=!g),g?v(e).show():h.done(function(){v(e).hide()}),h.done(function(){var t;v.removeData(e,"fxshow",!0);for(t in d)v.style(e,t,d[t])});for(r=0;r<o;r++)i=m[r],f=h.createTween(i,g?u[i]:0),d[i]=u[i]||v.style(e,i),i in u||(u[i]=f.start,g&&(f.end=f.start,f.start=i==="width"||i==="height"?1:0))}}function Yn(e,t,n,r,i){return new Yn.prototype.init(e,t,n,r,i)}function Zn(e,t){var n,r={height:e},i=0;t=t?1:0;for(;i<4;i+=2-t)n=$t[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function tr(e){return v.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:!1}var n,r,i=e.document,s=e.location,o=e.navigator,u=e.jQuery,a=e.$,f=Array.prototype.push,l=Array.prototype.slice,c=Array.prototype.indexOf,h=Object.prototype.toString,p=Object.prototype.hasOwnProperty,d=String.prototype.trim,v=function(e,t){return new v.fn.init(e,t,n)},m=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,g=/\S/,y=/\s+/,b=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,w=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,E=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,S=/^[\],:{}\s]*$/,x=/(?:^|:|,)(?:\s*\[)+/g,T=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,N=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,C=/^-ms-/,k=/-([\da-z])/gi,L=function(e,t){return(t+"").toUpperCase()},A=function(){i.addEventListener?(i.removeEventListener("DOMContentLoaded",A,!1),v.ready()):i.readyState==="complete"&&(i.detachEvent("onreadystatechange",A),v.ready())},O={};v.fn=v.prototype={constructor:v,init:function(e,n,r){var s,o,u,a;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if(typeof e=="string"){e.charAt(0)==="<"&&e.charAt(e.length-1)===">"&&e.length>=3?s=[null,e,null]:s=w.exec(e);if(s&&(s[1]||!n)){if(s[1])return n=n instanceof v?n[0]:n,a=n&&n.nodeType?n.ownerDocument||n:i,e=v.parseHTML(s[1],a,!0),E.test(s[1])&&v.isPlainObject(n)&&this.attr.call(e,n,!0),v.merge(this,e);o=i.getElementById(s[2]);if(o&&o.parentNode){if(o.id!==s[2])return r.find(e);this.length=1,this[0]=o}return this.context=i,this.selector=e,this}return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e)}return v.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),v.makeArray(e,this))},selector:"",jquery:"1.8.3",length:0,size:function(){return this.length},toArray:function(){return l.call(this)},get:function(e){return e==null?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var r=v.merge(this.constructor(),e);return r.prevObject=this,r.context=this.context,t==="find"?r.selector=this.selector+(this.selector?" ":"")+n:t&&(r.selector=this.selector+"."+t+"("+n+")"),r},each:function(e,t){return v.each(this,e,t)},ready:function(e){return v.ready.promise().done(e),this},eq:function(e){return e=+e,e===-1?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(l.apply(this,arguments),"slice",l.call(arguments).join(","))},map:function(e){return this.pushStack(v.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:[].sort,splice:[].splice},v.fn.init.prototype=v.fn,v.extend=v.fn.extend=function(){var e,n,r,i,s,o,u=arguments[0]||{},a=1,f=arguments.length,l=!1;typeof u=="boolean"&&(l=u,u=arguments[1]||{},a=2),typeof u!="object"&&!v.isFunction(u)&&(u={}),f===a&&(u=this,--a);for(;a<f;a++)if((e=arguments[a])!=null)for(n in e){r=u[n],i=e[n];if(u===i)continue;l&&i&&(v.isPlainObject(i)||(s=v.isArray(i)))?(s?(s=!1,o=r&&v.isArray(r)?r:[]):o=r&&v.isPlainObject(r)?r:{},u[n]=v.extend(l,o,i)):i!==t&&(u[n]=i)}return u},v.extend({noConflict:function(t){return e.$===v&&(e.$=a),t&&e.jQuery===v&&(e.jQuery=u),v},isReady:!1,readyWait:1,holdReady:function(e){e?v.readyWait++:v.ready(!0)},ready:function(e){if(e===!0?--v.readyWait:v.isReady)return;if(!i.body)return setTimeout(v.ready,1);v.isReady=!0;if(e!==!0&&--v.readyWait>0)return;r.resolveWith(i,[v]),v.fn.trigger&&v(i).trigger("ready").off("ready")},isFunction:function(e){return v.type(e)==="function"},isArray:Array.isArray||function(e){return v.type(e)==="array"},isWindow:function(e){return e!=null&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return e==null?String(e):O[h.call(e)]||"object"},isPlainObject:function(e){if(!e||v.type(e)!=="object"||e.nodeType||v.isWindow(e))return!1;try{if(e.constructor&&!p.call(e,"constructor")&&!p.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}var r;for(r in e);return r===t||p.call(e,r)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw new Error(e)},parseHTML:function(e,t,n){var r;return!e||typeof e!="string"?null:(typeof t=="boolean"&&(n=t,t=0),t=t||i,(r=E.exec(e))?[t.createElement(r[1])]:(r=v.buildFragment([e],t,n?null:[]),v.merge([],(r.cacheable?v.clone(r.fragment):r.fragment).childNodes)))},parseJSON:function(t){if(!t||typeof t!="string")return null;t=v.trim(t);if(e.JSON&&e.JSON.parse)return e.JSON.parse(t);if(S.test(t.replace(T,"@").replace(N,"]").replace(x,"")))return(new Function("return "+t))();v.error("Invalid JSON: "+t)},parseXML:function(n){var r,i;if(!n||typeof n!="string")return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(s){r=t}return(!r||!r.documentElement||r.getElementsByTagName("parsererror").length)&&v.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&g.test(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(C,"ms-").replace(k,L)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,n,r){var i,s=0,o=e.length,u=o===t||v.isFunction(e);if(r){if(u){for(i in e)if(n.apply(e[i],r)===!1)break}else for(;s<o;)if(n.apply(e[s++],r)===!1)break}else if(u){for(i in e)if(n.call(e[i],i,e[i])===!1)break}else for(;s<o;)if(n.call(e[s],s,e[s++])===!1)break;return e},trim:d&&!d.call("\ufeff\u00a0")?function(e){return e==null?"":d.call(e)}:function(e){return e==null?"":(e+"").replace(b,"")},makeArray:function(e,t){var n,r=t||[];return e!=null&&(n=v.type(e),e.length==null||n==="string"||n==="function"||n==="regexp"||v.isWindow(e)?f.call(r,e):v.merge(r,e)),r},inArray:function(e,t,n){var r;if(t){if(c)return c.call(t,e,n);r=t.length,n=n?n<0?Math.max(0,r+n):n:0;for(;n<r;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,s=0;if(typeof r=="number")for(;s<r;s++)e[i++]=n[s];else while(n[s]!==t)e[i++]=n[s++];return e.length=i,e},grep:function(e,t,n){var r,i=[],s=0,o=e.length;n=!!n;for(;s<o;s++)r=!!t(e[s],s),n!==r&&i.push(e[s]);return i},map:function(e,n,r){var i,s,o=[],u=0,a=e.length,f=e instanceof v||a!==t&&typeof a=="number"&&(a>0&&e[0]&&e[a-1]||a===0||v.isArray(e));if(f)for(;u<a;u++)i=n(e[u],u,r),i!=null&&(o[o.length]=i);else for(s in e)i=n(e[s],s,r),i!=null&&(o[o.length]=i);return o.concat.apply([],o)},guid:1,proxy:function(e,n){var r,i,s;return typeof n=="string"&&(r=e[n],n=e,e=r),v.isFunction(e)?(i=l.call(arguments,2),s=function(){return e.apply(n,i.concat(l.call(arguments)))},s.guid=e.guid=e.guid||v.guid++,s):t},access:function(e,n,r,i,s,o,u){var a,f=r==null,l=0,c=e.length;if(r&&typeof r=="object"){for(l in r)v.access(e,n,l,r[l],1,o,i);s=1}else if(i!==t){a=u===t&&v.isFunction(i),f&&(a?(a=n,n=function(e,t,n){return a.call(v(e),n)}):(n.call(e,i),n=null));if(n)for(;l<c;l++)n(e[l],r,a?i.call(e[l],l,n(e[l],r)):i,u);s=1}return s?e:f?n.call(e):c?n(e[0],r):o},now:function(){return(new Date).getTime()}}),v.ready.promise=function(t){if(!r){r=v.Deferred();if(i.readyState==="complete")setTimeout(v.ready,1);else if(i.addEventListener)i.addEventListener("DOMContentLoaded",A,!1),e.addEventListener("load",v.ready,!1);else{i.attachEvent("onreadystatechange",A),e.attachEvent("onload",v.ready);var n=!1;try{n=e.frameElement==null&&i.documentElement}catch(s){}n&&n.doScroll&&function o(){if(!v.isReady){try{n.doScroll("left")}catch(e){return setTimeout(o,50)}v.ready()}}()}}return r.promise(t)},v.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(e,t){O["[object "+t+"]"]=t.toLowerCase()}),n=v(i);var M={};v.Callbacks=function(e){e=typeof e=="string"?M[e]||_(e):v.extend({},e);var n,r,i,s,o,u,a=[],f=!e.once&&[],l=function(t){n=e.memory&&t,r=!0,u=s||0,s=0,o=a.length,i=!0;for(;a&&u<o;u++)if(a[u].apply(t[0],t[1])===!1&&e.stopOnFalse){n=!1;break}i=!1,a&&(f?f.length&&l(f.shift()):n?a=[]:c.disable())},c={add:function(){if(a){var t=a.length;(function r(t){v.each(t,function(t,n){var i=v.type(n);i==="function"?(!e.unique||!c.has(n))&&a.push(n):n&&n.length&&i!=="string"&&r(n)})})(arguments),i?o=a.length:n&&(s=t,l(n))}return this},remove:function(){return a&&v.each(arguments,function(e,t){var n;while((n=v.inArray(t,a,n))>-1)a.splice(n,1),i&&(n<=o&&o--,n<=u&&u--)}),this},has:function(e){return v.inArray(e,a)>-1},empty:function(){return a=[],this},disable:function(){return a=f=n=t,this},disabled:function(){return!a},lock:function(){return f=t,n||c.disable(),this},locked:function(){return!f},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],a&&(!r||f)&&(i?f.push(t):l(t)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},v.extend({Deferred:function(e){var t=[["resolve","done",v.Callbacks("once memory"),"resolved"],["reject","fail",v.Callbacks("once memory"),"rejected"],["notify","progress",v.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return v.Deferred(function(n){v.each(t,function(t,r){var s=r[0],o=e[t];i[r[1]](v.isFunction(o)?function(){var e=o.apply(this,arguments);e&&v.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s+"With"](this===i?n:this,[e])}:n[s])}),e=null}).promise()},promise:function(e){return e!=null?v.extend(e,r):r}},i={};return r.pipe=r.then,v.each(t,function(e,s){var o=s[2],u=s[3];r[s[1]]=o.add,u&&o.add(function(){n=u},t[e^1][2].disable,t[2][2].lock),i[s[0]]=o.fire,i[s[0]+"With"]=o.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=l.call(arguments),r=n.length,i=r!==1||e&&v.isFunction(e.promise)?r:0,s=i===1?e:v.Deferred(),o=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?l.call(arguments):r,n===u?s.notifyWith(t,n):--i||s.resolveWith(t,n)}},u,a,f;if(r>1){u=new Array(r),a=new Array(r),f=new Array(r);for(;t<r;t++)n[t]&&v.isFunction(n[t].promise)?n[t].promise().done(o(t,f,n)).fail(s.reject).progress(o(t,a,u)):--i}return i||s.resolveWith(f,n),s.promise()}}),v.support=function(){var t,n,r,s,o,u,a,f,l,c,h,p=i.createElement("div");p.setAttribute("className","t"),p.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=p.getElementsByTagName("*"),r=p.getElementsByTagName("a")[0];if(!n||!r||!n.length)return{};s=i.createElement("select"),o=s.appendChild(i.createElement("option")),u=p.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(r.getAttribute("style")),hrefNormalized:r.getAttribute("href")==="/a",opacity:/^0.5/.test(r.style.opacity),cssFloat:!!r.style.cssFloat,checkOn:u.value==="on",optSelected:o.selected,getSetAttribute:p.className!=="t",enctype:!!i.createElement("form").enctype,html5Clone:i.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",boxModel:i.compatMode==="CSS1Compat",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},u.checked=!0,t.noCloneChecked=u.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!o.disabled;try{delete p.test}catch(d){t.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",h=function(){t.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick"),p.detachEvent("onclick",h)),u=i.createElement("input"),u.value="t",u.setAttribute("type","radio"),t.radioValue=u.value==="t",u.setAttribute("checked","checked"),u.setAttribute("name","t"),p.appendChild(u),a=i.createDocumentFragment(),a.appendChild(p.lastChild),t.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,t.appendChecked=u.checked,a.removeChild(u),a.appendChild(p);if(p.attachEvent)for(l in{submit:!0,change:!0,focusin:!0})f="on"+l,c=f in p,c||(p.setAttribute(f,"return;"),c=typeof p[f]=="function"),t[l+"Bubbles"]=c;return v(function(){var n,r,s,o,u="padding:0;margin:0;border:0;display:block;overflow:hidden;",a=i.getElementsByTagName("body")[0];if(!a)return;n=i.createElement("div"),n.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",a.insertBefore(n,a.firstChild),r=i.createElement("div"),n.appendChild(r),r.innerHTML="<table><tr><td></td><td>t</td></tr></table>",s=r.getElementsByTagName("td"),s[0].style.cssText="padding:0;margin:0;border:0;display:none",c=s[0].offsetHeight===0,s[0].style.display="",s[1].style.display="none",t.reliableHiddenOffsets=c&&s[0].offsetHeight===0,r.innerHTML="",r.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",t.boxSizing=r.offsetWidth===4,t.doesNotIncludeMarginInBodyOffset=a.offsetTop!==1,e.getComputedStyle&&(t.pixelPosition=(e.getComputedStyle(r,null)||{}).top!=="1%",t.boxSizingReliable=(e.getComputedStyle(r,null)||{width:"4px"}).width==="4px",o=i.createElement("div"),o.style.cssText=r.style.cssText=u,o.style.marginRight=o.style.width="0",r.style.width="1px",r.appendChild(o),t.reliableMarginRight=!parseFloat((e.getComputedStyle(o,null)||{}).marginRight)),typeof r.style.zoom!="undefined"&&(r.innerHTML="",r.style.cssText=u+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=r.offsetWidth===3,r.style.display="block",r.style.overflow="visible",r.innerHTML="<div></div>",r.firstChild.style.width="5px",t.shrinkWrapBlocks=r.offsetWidth!==3,n.style.zoom=1),a.removeChild(n),n=r=s=o=null}),a.removeChild(p),n=r=s=o=u=a=p=null,t}();var D=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,P=/([A-Z])/g;v.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(v.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?v.cache[e[v.expando]]:e[v.expando],!!e&&!B(e)},data:function(e,n,r,i){if(!v.acceptData(e))return;var s,o,u=v.expando,a=typeof n=="string",f=e.nodeType,l=f?v.cache:e,c=f?e[u]:e[u]&&u;if((!c||!l[c]||!i&&!l[c].data)&&a&&r===t)return;c||(f?e[u]=c=v.deletedIds.pop()||v.guid++:c=u),l[c]||(l[c]={},f||(l[c].toJSON=v.noop));if(typeof n=="object"||typeof n=="function")i?l[c]=v.extend(l[c],n):l[c].data=v.extend(l[c].data,n);return s=l[c],i||(s.data||(s.data={}),s=s.data),r!==t&&(s[v.camelCase(n)]=r),a?(o=s[n],o==null&&(o=s[v.camelCase(n)])):o=s,o},removeData:function(e,t,n){if(!v.acceptData(e))return;var r,i,s,o=e.nodeType,u=o?v.cache:e,a=o?e[v.expando]:v.expando;if(!u[a])return;if(t){r=n?u[a]:u[a].data;if(r){v.isArray(t)||(t in r?t=[t]:(t=v.camelCase(t),t in r?t=[t]:t=t.split(" ")));for(i=0,s=t.length;i<s;i++)delete r[t[i]];if(!(n?B:v.isEmptyObject)(r))return}}if(!n){delete u[a].data;if(!B(u[a]))return}o?v.cleanData([e],!0):v.support.deleteExpando||u!=u.window?delete u[a]:u[a]=null},_data:function(e,t,n){return v.data(e,t,n,!0)},acceptData:function(e){var t=e.nodeName&&v.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),v.fn.extend({data:function(e,n){var r,i,s,o,u,a=this[0],f=0,l=null;if(e===t){if(this.length){l=v.data(a);if(a.nodeType===1&&!v._data(a,"parsedAttrs")){s=a.attributes;for(u=s.length;f<u;f++)o=s[f].name,o.indexOf("data-")||(o=v.camelCase(o.substring(5)),H(a,o,l[o]));v._data(a,"parsedAttrs",!0)}}return l}return typeof e=="object"?this.each(function(){v.data(this,e)}):(r=e.split(".",2),r[1]=r[1]?"."+r[1]:"",i=r[1]+"!",v.access(this,function(n){if(n===t)return l=this.triggerHandler("getData"+i,[r[0]]),l===t&&a&&(l=v.data(a,e),l=H(a,e,l)),l===t&&r[1]?this.data(r[0]):l;r[1]=n,this.each(function(){var t=v(this);t.triggerHandler("setData"+i,r),v.data(this,e,n),t.triggerHandler("changeData"+i,r)})},null,n,arguments.length>1,null,!1))},removeData:function(e){return this.each(function(){v.removeData(this,e)})}}),v.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=v._data(e,t),n&&(!r||v.isArray(n)?r=v._data(e,t,v.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=v.queue(e,t),r=n.length,i=n.shift(),s=v._queueHooks(e,t),o=function(){v.dequeue(e,t)};i==="inprogress"&&(i=n.shift(),r--),i&&(t==="fx"&&n.unshift("inprogress"),delete s.stop,i.call(e,o,s)),!r&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return v._data(e,n)||v._data(e,n,{empty:v.Callbacks("once memory").add(function(){v.removeData(e,t+"queue",!0),v.removeData(e,n,!0)})})}}),v.fn.extend({queue:function(e,n){var r=2;return typeof e!="string"&&(n=e,e="fx",r--),arguments.length<r?v.queue(this[0],e):n===t?this:this.each(function(){var t=v.queue(this,e,n);v._queueHooks(this,e),e==="fx"&&t[0]!=="inprogress"&&v.dequeue(this,e)})},dequeue:function(e){return this.each(function(){v.dequeue(this,e)})},delay:function(e,t){return e=v.fx?v.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,s=v.Deferred(),o=this,u=this.length,a=function(){--i||s.resolveWith(o,[o])};typeof e!="string"&&(n=e,e=t),e=e||"fx";while(u--)r=v._data(o[u],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(a));return a(),s.promise(n)}});var j,F,I,q=/[\t\r\n]/g,R=/\r/g,U=/^(?:button|input)$/i,z=/^(?:button|input|object|select|textarea)$/i,W=/^a(?:rea|)$/i,X=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,V=v.support.getSetAttribute;v.fn.extend({attr:function(e,t){return v.access(this,v.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){v.removeAttr(this,e)})},prop:function(e,t){return v.access(this,v.prop,e,t,arguments.length>1)},removeProp:function(e){return e=v.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,s,o,u;if(v.isFunction(e))return this.each(function(t){v(this).addClass(e.call(this,t,this.className))});if(e&&typeof e=="string"){t=e.split(y);for(n=0,r=this.length;n<r;n++){i=this[n];if(i.nodeType===1)if(!i.className&&t.length===1)i.className=e;else{s=" "+i.className+" ";for(o=0,u=t.length;o<u;o++)s.indexOf(" "+t[o]+" ")<0&&(s+=t[o]+" ");i.className=v.trim(s)}}}return this},removeClass:function(e){var n,r,i,s,o,u,a;if(v.isFunction(e))return this.each(function(t){v(this).removeClass(e.call(this,t,this.className))});if(e&&typeof e=="string"||e===t){n=(e||"").split(y);for(u=0,a=this.length;u<a;u++){i=this[u];if(i.nodeType===1&&i.className){r=(" "+i.className+" ").replace(q," ");for(s=0,o=n.length;s<o;s++)while(r.indexOf(" "+n[s]+" ")>=0)r=r.replace(" "+n[s]+" "," ");i.className=e?v.trim(r):""}}}return this},toggleClass:function(e,t){var n=typeof e,r=typeof t=="boolean";return v.isFunction(e)?this.each(function(n){v(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if(n==="string"){var i,s=0,o=v(this),u=t,a=e.split(y);while(i=a[s++])u=r?u:!o.hasClass(i),o[u?"addClass":"removeClass"](i)}else if(n==="undefined"||n==="boolean")this.className&&v._data(this,"__className__",this.className),this.className=this.className||e===!1?"":v._data(this,"__className__")||""})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;n<r;n++)if(this[n].nodeType===1&&(" "+this[n].className+" ").replace(q," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,s=this[0];if(!arguments.length){if(s)return n=v.valHooks[s.type]||v.valHooks[s.nodeName.toLowerCase()],n&&"get"in n&&(r=n.get(s,"value"))!==t?r:(r=s.value,typeof r=="string"?r.replace(R,""):r==null?"":r);return}return i=v.isFunction(e),this.each(function(r){var s,o=v(this);if(this.nodeType!==1)return;i?s=e.call(this,r,o.val()):s=e,s==null?s="":typeof s=="number"?s+="":v.isArray(s)&&(s=v.map(s,function(e){return e==null?"":e+""})),n=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()];if(!n||!("set"in n)||n.set(this,s,"value")===t)this.value=s})}}),v.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,s=e.type==="select-one"||i<0,o=s?null:[],u=s?i+1:r.length,a=i<0?u:s?i:0;for(;a<u;a++){n=r[a];if((n.selected||a===i)&&(v.support.optDisabled?!n.disabled:n.getAttribute("disabled")===null)&&(!n.parentNode.disabled||!v.nodeName(n.parentNode,"optgroup"))){t=v(n).val();if(s)return t;o.push(t)}}return o},set:function(e,t){var n=v.makeArray(t);return v(e).find("option").each(function(){this.selected=v.inArray(v(this).val(),n)>=0}),n.length||(e.selectedIndex=-1),n}}},attrFn:{},attr:function(e,n,r,i){var s,o,u,a=e.nodeType;if(!e||a===3||a===8||a===2)return;if(i&&v.isFunction(v.fn[n]))return v(e)[n](r);if(typeof e.getAttribute=="undefined")return v.prop(e,n,r);u=a!==1||!v.isXMLDoc(e),u&&(n=n.toLowerCase(),o=v.attrHooks[n]||(X.test(n)?F:j));if(r!==t){if(r===null){v.removeAttr(e,n);return}return o&&"set"in o&&u&&(s=o.set(e,r,n))!==t?s:(e.setAttribute(n,r+""),r)}return o&&"get"in o&&u&&(s=o.get(e,n))!==null?s:(s=e.getAttribute(n),s===null?t:s)},removeAttr:function(e,t){var n,r,i,s,o=0;if(t&&e.nodeType===1){r=t.split(y);for(;o<r.length;o++)i=r[o],i&&(n=v.propFix[i]||i,s=X.test(i),s||v.attr(e,i,""),e.removeAttribute(V?i:n),s&&n in e&&(e[n]=!1))}},attrHooks:{type:{set:function(e,t){if(U.test(e.nodeName)&&e.parentNode)v.error("type property can't be changed");else if(!v.support.radioValue&&t==="radio"&&v.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}},value:{get:function(e,t){return j&&v.nodeName(e,"button")?j.get(e,t):t in e?e.value:null},set:function(e,t,n){if(j&&v.nodeName(e,"button"))return j.set(e,t,n);e.value=t}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(e,n,r){var i,s,o,u=e.nodeType;if(!e||u===3||u===8||u===2)return;return o=u!==1||!v.isXMLDoc(e),o&&(n=v.propFix[n]||n,s=v.propHooks[n]),r!==t?s&&"set"in s&&(i=s.set(e,r,n))!==t?i:e[n]=r:s&&"get"in s&&(i=s.get(e,n))!==null?i:e[n]},propHooks:{tabIndex:{get:function(e){var n=e.getAttributeNode("tabindex");return n&&n.specified?parseInt(n.value,10):z.test(e.nodeName)||W.test(e.nodeName)&&e.href?0:t}}}}),F={get:function(e,n){var r,i=v.prop(e,n);return i===!0||typeof i!="boolean"&&(r=e.getAttributeNode(n))&&r.nodeValue!==!1?n.toLowerCase():t},set:function(e,t,n){var r;return t===!1?v.removeAttr(e,n):(r=v.propFix[n]||n,r in e&&(e[r]=!0),e.setAttribute(n,n.toLowerCase())),n}},V||(I={name:!0,id:!0,coords:!0},j=v.valHooks.button={get:function(e,n){var r;return r=e.getAttributeNode(n),r&&(I[n]?r.value!=="":r.specified)?r.value:t},set:function(e,t,n){var r=e.getAttributeNode(n);return r||(r=i.createAttribute(n),e.setAttributeNode(r)),r.value=t+""}},v.each(["width","height"],function(e,t){v.attrHooks[t]=v.extend(v.attrHooks[t],{set:function(e,n){if(n==="")return e.setAttribute(t,"auto"),n}})}),v.attrHooks.contenteditable={get:j.get,set:function(e,t,n){t===""&&(t="false"),j.set(e,t,n)}}),v.support.hrefNormalized||v.each(["href","src","width","height"],function(e,n){v.attrHooks[n]=v.extend(v.attrHooks[n],{get:function(e){var r=e.getAttribute(n,2);return r===null?t:r}})}),v.support.style||(v.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||t},set:function(e,t){return e.style.cssText=t+""}}),v.support.optSelected||(v.propHooks.selected=v.extend(v.propHooks.selected,{get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),v.support.enctype||(v.propFix.enctype="encoding"),v.support.checkOn||v.each(["radio","checkbox"],function(){v.valHooks[this]={get:function(e){return e.getAttribute("value")===null?"on":e.value}}}),v.each(["radio","checkbox"],function(){v.valHooks[this]=v.extend(v.valHooks[this],{set:function(e,t){if(v.isArray(t))return e.checked=v.inArray(v(e).val(),t)>=0}})});var $=/^(?:textarea|input|select)$/i,J=/^([^\.]*|)(?:\.(.+)|)$/,K=/(?:^|\s)hover(\.\S+|)\b/,Q=/^key/,G=/^(?:mouse|contextmenu)|click/,Y=/^(?:focusinfocus|focusoutblur)$/,Z=function(e){return v.event.special.hover?e:e.replace(K,"mouseenter$1 mouseleave$1")};v.event={add:function(e,n,r,i,s){var o,u,a,f,l,c,h,p,d,m,g;if(e.nodeType===3||e.nodeType===8||!n||!r||!(o=v._data(e)))return;r.handler&&(d=r,r=d.handler,s=d.selector),r.guid||(r.guid=v.guid++),a=o.events,a||(o.events=a={}),u=o.handle,u||(o.handle=u=function(e){return typeof v=="undefined"||!!e&&v.event.triggered===e.type?t:v.event.dispatch.apply(u.elem,arguments)},u.elem=e),n=v.trim(Z(n)).split(" ");for(f=0;f<n.length;f++){l=J.exec(n[f])||[],c=l[1],h=(l[2]||"").split(".").sort(),g=v.event.special[c]||{},c=(s?g.delegateType:g.bindType)||c,g=v.event.special[c]||{},p=v.extend({type:c,origType:l[1],data:i,handler:r,guid:r.guid,selector:s,needsContext:s&&v.expr.match.needsContext.test(s),namespace:h.join(".")},d),m=a[c];if(!m){m=a[c]=[],m.delegateCount=0;if(!g.setup||g.setup.call(e,i,h,u)===!1)e.addEventListener?e.addEventListener(c,u,!1):e.attachEvent&&e.attachEvent("on"+c,u)}g.add&&(g.add.call(e,p),p.handler.guid||(p.handler.guid=r.guid)),s?m.splice(m.delegateCount++,0,p):m.push(p),v.event.global[c]=!0}e=null},global:{},remove:function(e,t,n,r,i){var s,o,u,a,f,l,c,h,p,d,m,g=v.hasData(e)&&v._data(e);if(!g||!(h=g.events))return;t=v.trim(Z(t||"")).split(" ");for(s=0;s<t.length;s++){o=J.exec(t[s])||[],u=a=o[1],f=o[2];if(!u){for(u in h)v.event.remove(e,u+t[s],n,r,!0);continue}p=v.event.special[u]||{},u=(r?p.delegateType:p.bindType)||u,d=h[u]||[],l=d.length,f=f?new RegExp("(^|\\.)"+f.split(".").sort().join("\\.(?:.*\\.|)")+"(\\.|$)"):null;for(c=0;c<d.length;c++)m=d[c],(i||a===m.origType)&&(!n||n.guid===m.guid)&&(!f||f.test(m.namespace))&&(!r||r===m.selector||r==="**"&&m.selector)&&(d.splice(c--,1),m.selector&&d.delegateCount--,p.remove&&p.remove.call(e,m));d.length===0&&l!==d.length&&((!p.teardown||p.teardown.call(e,f,g.handle)===!1)&&v.removeEvent(e,u,g.handle),delete h[u])}v.isEmptyObject(h)&&(delete g.handle,v.removeData(e,"events",!0))},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(n,r,s,o){if(!s||s.nodeType!==3&&s.nodeType!==8){var u,a,f,l,c,h,p,d,m,g,y=n.type||n,b=[];if(Y.test(y+v.event.triggered))return;y.indexOf("!")>=0&&(y=y.slice(0,-1),a=!0),y.indexOf(".")>=0&&(b=y.split("."),y=b.shift(),b.sort());if((!s||v.event.customEvent[y])&&!v.event.global[y])return;n=typeof n=="object"?n[v.expando]?n:new v.Event(y,n):new v.Event(y),n.type=y,n.isTrigger=!0,n.exclusive=a,n.namespace=b.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,h=y.indexOf(":")<0?"on"+y:"";if(!s){u=v.cache;for(f in u)u[f].events&&u[f].events[y]&&v.event.trigger(n,r,u[f].handle.elem,!0);return}n.result=t,n.target||(n.target=s),r=r!=null?v.makeArray(r):[],r.unshift(n),p=v.event.special[y]||{};if(p.trigger&&p.trigger.apply(s,r)===!1)return;m=[[s,p.bindType||y]];if(!o&&!p.noBubble&&!v.isWindow(s)){g=p.delegateType||y,l=Y.test(g+y)?s:s.parentNode;for(c=s;l;l=l.parentNode)m.push([l,g]),c=l;c===(s.ownerDocument||i)&&m.push([c.defaultView||c.parentWindow||e,g])}for(f=0;f<m.length&&!n.isPropagationStopped();f++)l=m[f][0],n.type=m[f][1],d=(v._data(l,"events")||{})[n.type]&&v._data(l,"handle"),d&&d.apply(l,r),d=h&&l[h],d&&v.acceptData(l)&&d.apply&&d.apply(l,r)===!1&&n.preventDefault();return n.type=y,!o&&!n.isDefaultPrevented()&&(!p._default||p._default.apply(s.ownerDocument,r)===!1)&&(y!=="click"||!v.nodeName(s,"a"))&&v.acceptData(s)&&h&&s[y]&&(y!=="focus"&&y!=="blur"||n.target.offsetWidth!==0)&&!v.isWindow(s)&&(c=s[h],c&&(s[h]=null),v.event.triggered=y,s[y](),v.event.triggered=t,c&&(s[h]=c)),n.result}return},dispatch:function(n){n=v.event.fix(n||e.event);var r,i,s,o,u,a,f,c,h,p,d=(v._data(this,"events")||{})[n.type]||[],m=d.delegateCount,g=l.call(arguments),y=!n.exclusive&&!n.namespace,b=v.event.special[n.type]||{},w=[];g[0]=n,n.delegateTarget=this;if(b.preDispatch&&b.preDispatch.call(this,n)===!1)return;if(m&&(!n.button||n.type!=="click"))for(s=n.target;s!=this;s=s.parentNode||this)if(s.disabled!==!0||n.type!=="click"){u={},f=[];for(r=0;r<m;r++)c=d[r],h=c.selector,u[h]===t&&(u[h]=c.needsContext?v(h,this).index(s)>=0:v.find(h,this,null,[s]).length),u[h]&&f.push(c);f.length&&w.push({elem:s,matches:f})}d.length>m&&w.push({elem:this,matches:d.slice(m)});for(r=0;r<w.length&&!n.isPropagationStopped();r++){a=w[r],n.currentTarget=a.elem;for(i=0;i<a.matches.length&&!n.isImmediatePropagationStopped();i++){c=a.matches[i];if(y||!n.namespace&&!c.namespace||n.namespace_re&&n.namespace_re.test(c.namespace))n.data=c.data,n.handleObj=c,o=((v.event.special[c.origType]||{}).handle||c.handler).apply(a.elem,g),o!==t&&(n.result=o,o===!1&&(n.preventDefault(),n.stopPropagation()))}}return b.postDispatch&&b.postDispatch.call(this,n),n.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return e.which==null&&(e.which=t.charCode!=null?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,s,o,u=n.button,a=n.fromElement;return e.pageX==null&&n.clientX!=null&&(r=e.target.ownerDocument||i,s=r.documentElement,o=r.body,e.pageX=n.clientX+(s&&s.scrollLeft||o&&o.scrollLeft||0)-(s&&s.clientLeft||o&&o.clientLeft||0),e.pageY=n.clientY+(s&&s.scrollTop||o&&o.scrollTop||0)-(s&&s.clientTop||o&&o.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?n.toElement:a),!e.which&&u!==t&&(e.which=u&1?1:u&2?3:u&4?2:0),e}},fix:function(e){if(e[v.expando])return e;var t,n,r=e,s=v.event.fixHooks[e.type]||{},o=s.props?this.props.concat(s.props):this.props;e=v.Event(r);for(t=o.length;t;)n=o[--t],e[n]=r[n];return e.target||(e.target=r.srcElement||i),e.target.nodeType===3&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,r):e},special:{load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(e,t,n){v.isWindow(this)&&(this.onbeforeunload=n)},teardown:function(e,t){this.onbeforeunload===t&&(this.onbeforeunload=null)}}},simulate:function(e,t,n,r){var i=v.extend(new v.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?v.event.trigger(i,null,t):v.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},v.event.handle=v.event.dispatch,v.removeEvent=i.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]=="undefined"&&(e[r]=null),e.detachEvent(r,n))},v.Event=function(e,t){if(!(this instanceof v.Event))return new v.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?tt:et):this.type=e,t&&v.extend(this,t),this.timeStamp=e&&e.timeStamp||v.now(),this[v.expando]=!0},v.Event.prototype={preventDefault:function(){this.isDefaultPrevented=tt;var e=this.originalEvent;if(!e)return;e.preventDefault?e.preventDefault():e.returnValue=!1},stopPropagation:function(){this.isPropagationStopped=tt;var e=this.originalEvent;if(!e)return;e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=tt,this.stopPropagation()},isDefaultPrevented:et,isPropagationStopped:et,isImmediatePropagationStopped:et},v.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){v.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,s=e.handleObj,o=s.selector;if(!i||i!==r&&!v.contains(r,i))e.type=s.origType,n=s.handler.apply(this,arguments),e.type=t;return n}}}),v.support.submitBubbles||(v.event.special.submit={setup:function(){if(v.nodeName(this,"form"))return!1;v.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=v.nodeName(n,"input")||v.nodeName(n,"button")?n.form:t;r&&!v._data(r,"_submit_attached")&&(v.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),v._data(r,"_submit_attached",!0))})},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&v.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){if(v.nodeName(this,"form"))return!1;v.event.remove(this,"._submit")}}),v.support.changeBubbles||(v.event.special.change={setup:function(){if($.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio")v.event.add(this,"propertychange._change",function(e){e.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),v.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),v.event.simulate("change",this,e,!0)});return!1}v.event.add(this,"beforeactivate._change",function(e){var t=e.target;$.test(t.nodeName)&&!v._data(t,"_change_attached")&&(v.event.add(t,"change._change",function(e){this.parentNode&&!e.isSimulated&&!e.isTrigger&&v.event.simulate("change",this.parentNode,e,!0)}),v._data(t,"_change_attached",!0))})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||t.type!=="radio"&&t.type!=="checkbox")return e.handleObj.handler.apply(this,arguments)},teardown:function(){return v.event.remove(this,"._change"),!$.test(this.nodeName)}}),v.support.focusinBubbles||v.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){v.event.simulate(t,e.target,v.event.fix(e),!0)};v.event.special[t]={setup:function(){n++===0&&i.addEventListener(e,r,!0)},teardown:function(){--n===0&&i.removeEventListener(e,r,!0)}}}),v.fn.extend({on:function(e,n,r,i,s){var o,u;if(typeof e=="object"){typeof n!="string"&&(r=r||n,n=t);for(u in e)this.on(u,n,r,e[u],s);return this}r==null&&i==null?(i=n,r=n=t):i==null&&(typeof n=="string"?(i=r,r=t):(i=r,r=n,n=t));if(i===!1)i=et;else if(!i)return this;return s===1&&(o=i,i=function(e){return v().off(e),o.apply(this,arguments)},i.guid=o.guid||(o.guid=v.guid++)),this.each(function(){v.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,s;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,v(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if(typeof e=="object"){for(s in e)this.off(s,n,e[s]);return this}if(n===!1||typeof n=="function")r=n,n=t;return r===!1&&(r=et),this.each(function(){v.event.remove(this,e,r,n)})},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},live:function(e,t,n){return v(this.context).on(e,this.selector,t,n),this},die:function(e,t){return v(this.context).off(e,this.selector||"**",t),this},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return arguments.length===1?this.off(e,"**"):this.off(t,e||"**",n)},trigger:function(e,t){return this.each(function(){v.event.trigger(e,t,this)})},triggerHandler:function(e,t){if(this[0])return v.event.trigger(e,t,this[0],!0)},toggle:function(e){var t=arguments,n=e.guid||v.guid++,r=0,i=function(n){var i=(v._data(this,"lastToggle"+e.guid)||0)%r;return v._data(this,"lastToggle"+e.guid,i+1),n.preventDefault(),t[i].apply(this,arguments)||!1};i.guid=n;while(r<t.length)t[r++].guid=n;return this.click(i)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),v.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){v.fn[t]=function(e,n){return n==null&&(n=e,e=null),arguments.length>0?this.on(t,null,e,n):this.trigger(t)},Q.test(t)&&(v.event.fixHooks[t]=v.event.keyHooks),G.test(t)&&(v.event.fixHooks[t]=v.event.mouseHooks)}),function(e,t){function nt(e,t,n,r){n=n||[],t=t||g;var i,s,a,f,l=t.nodeType;if(!e||typeof e!="string")return n;if(l!==1&&l!==9)return[];a=o(t);if(!a&&!r)if(i=R.exec(e))if(f=i[1]){if(l===9){s=t.getElementById(f);if(!s||!s.parentNode)return n;if(s.id===f)return n.push(s),n}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(f))&&u(t,s)&&s.id===f)return n.push(s),n}else{if(i[2])return S.apply(n,x.call(t.getElementsByTagName(e),0)),n;if((f=i[3])&&Z&&t.getElementsByClassName)return S.apply(n,x.call(t.getElementsByClassName(f),0)),n}return vt(e.replace(j,"$1"),t,n,r,a)}function rt(e){return function(t){var n=t.nodeName.toLowerCase();return n==="input"&&t.type===e}}function it(e){return function(t){var n=t.nodeName.toLowerCase();return(n==="input"||n==="button")&&t.type===e}}function st(e){return N(function(t){return t=+t,N(function(n,r){var i,s=e([],n.length,t),o=s.length;while(o--)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))})})}function ot(e,t,n){if(e===t)return n;var r=e.nextSibling;while(r){if(r===t)return-1;r=r.nextSibling}return 1}function ut(e,t){var n,r,s,o,u,a,f,l=L[d][e+" "];if(l)return t?0:l.slice(0);u=e,a=[],f=i.preFilter;while(u){if(!n||(r=F.exec(u)))r&&(u=u.slice(r[0].length)||u),a.push(s=[]);n=!1;if(r=I.exec(u))s.push(n=new m(r.shift())),u=u.slice(n.length),n.type=r[0].replace(j," ");for(o in i.filter)(r=J[o].exec(u))&&(!f[o]||(r=f[o](r)))&&(s.push(n=new m(r.shift())),u=u.slice(n.length),n.type=o,n.matches=r);if(!n)break}return t?u.length:u?nt.error(e):L(e,a).slice(0)}function at(e,t,r){var i=t.dir,s=r&&t.dir==="parentNode",o=w++;return t.first?function(t,n,r){while(t=t[i])if(s||t.nodeType===1)return e(t,n,r)}:function(t,r,u){if(!u){var a,f=b+" "+o+" ",l=f+n;while(t=t[i])if(s||t.nodeType===1){if((a=t[d])===l)return t.sizset;if(typeof a=="string"&&a.indexOf(f)===0){if(t.sizset)return t}else{t[d]=l;if(e(t,r,u))return t.sizset=!0,t;t.sizset=!1}}}else while(t=t[i])if(s||t.nodeType===1)if(e(t,r,u))return t}}function ft(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function lt(e,t,n,r,i){var s,o=[],u=0,a=e.length,f=t!=null;for(;u<a;u++)if(s=e[u])if(!n||n(s,r,i))o.push(s),f&&t.push(u);return o}function ct(e,t,n,r,i,s){return r&&!r[d]&&(r=ct(r)),i&&!i[d]&&(i=ct(i,s)),N(function(s,o,u,a){var f,l,c,h=[],p=[],d=o.length,v=s||dt(t||"*",u.nodeType?[u]:u,[]),m=e&&(s||!t)?lt(v,h,e,u,a):v,g=n?i||(s?e:d||r)?[]:o:m;n&&n(m,g,u,a);if(r){f=lt(g,p),r(f,[],u,a),l=f.length;while(l--)if(c=f[l])g[p[l]]=!(m[p[l]]=c)}if(s){if(i||e){if(i){f=[],l=g.length;while(l--)(c=g[l])&&f.push(m[l]=c);i(null,g=[],f,a)}l=g.length;while(l--)(c=g[l])&&(f=i?T.call(s,c):h[l])>-1&&(s[f]=!(o[f]=c))}}else g=lt(g===o?g.splice(d,g.length):g),i?i(null,o,g,a):S.apply(o,g)})}function ht(e){var t,n,r,s=e.length,o=i.relative[e[0].type],u=o||i.relative[" "],a=o?1:0,f=at(function(e){return e===t},u,!0),l=at(function(e){return T.call(t,e)>-1},u,!0),h=[function(e,n,r){return!o&&(r||n!==c)||((t=n).nodeType?f(e,n,r):l(e,n,r))}];for(;a<s;a++)if(n=i.relative[e[a].type])h=[at(ft(h),n)];else{n=i.filter[e[a].type].apply(null,e[a].matches);if(n[d]){r=++a;for(;r<s;r++)if(i.relative[e[r].type])break;return ct(a>1&&ft(h),a>1&&e.slice(0,a-1).join("").replace(j,"$1"),n,a<r&&ht(e.slice(a,r)),r<s&&ht(e=e.slice(r)),r<s&&e.join(""))}h.push(n)}return ft(h)}function pt(e,t){var r=t.length>0,s=e.length>0,o=function(u,a,f,l,h){var p,d,v,m=[],y=0,w="0",x=u&&[],T=h!=null,N=c,C=u||s&&i.find.TAG("*",h&&a.parentNode||a),k=b+=N==null?1:Math.E;T&&(c=a!==g&&a,n=o.el);for(;(p=C[w])!=null;w++){if(s&&p){for(d=0;v=e[d];d++)if(v(p,a,f)){l.push(p);break}T&&(b=k,n=++o.el)}r&&((p=!v&&p)&&y--,u&&x.push(p))}y+=w;if(r&&w!==y){for(d=0;v=t[d];d++)v(x,m,a,f);if(u){if(y>0)while(w--)!x[w]&&!m[w]&&(m[w]=E.call(l));m=lt(m)}S.apply(l,m),T&&!u&&m.length>0&&y+t.length>1&&nt.uniqueSort(l)}return T&&(b=k,c=N),x};return o.el=0,r?N(o):o}function dt(e,t,n){var r=0,i=t.length;for(;r<i;r++)nt(e,t[r],n);return n}function vt(e,t,n,r,s){var o,u,f,l,c,h=ut(e),p=h.length;if(!r&&h.length===1){u=h[0]=h[0].slice(0);if(u.length>2&&(f=u[0]).type==="ID"&&t.nodeType===9&&!s&&i.relative[u[1].type]){t=i.find.ID(f.matches[0].replace($,""),t,s)[0];if(!t)return n;e=e.slice(u.shift().length)}for(o=J.POS.test(e)?-1:u.length-1;o>=0;o--){f=u[o];if(i.relative[l=f.type])break;if(c=i.find[l])if(r=c(f.matches[0].replace($,""),z.test(u[0].type)&&t.parentNode||t,s)){u.splice(o,1),e=r.length&&u.join("");if(!e)return S.apply(n,x.call(r,0)),n;break}}}return a(e,h)(r,t,s,n,z.test(e)),n}function mt(){}var n,r,i,s,o,u,a,f,l,c,h=!0,p="undefined",d=("sizcache"+Math.random()).replace(".",""),m=String,g=e.document,y=g.documentElement,b=0,w=0,E=[].pop,S=[].push,x=[].slice,T=[].indexOf||function(e){var t=0,n=this.length;for(;t<n;t++)if(this[t]===e)return t;return-1},N=function(e,t){return e[d]=t==null||t,e},C=function(){var e={},t=[];return N(function(n,r){return t.push(n)>i.cacheLength&&delete e[t.shift()],e[n+" "]=r},e)},k=C(),L=C(),A=C(),O="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",_=M.replace("w","w#"),D="([*^$|!~]?=)",P="\\["+O+"*("+M+")"+O+"*(?:"+D+O+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+_+")|)|)"+O+"*\\]",H=":("+M+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+P+")|[^:]|\\\\.)*|.*))\\)|)",B=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)",j=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g"),F=new RegExp("^"+O+"*,"+O+"*"),I=new RegExp("^"+O+"*([\\x20\\t\\r\\n\\f>+~])"+O+"*"),q=new RegExp(H),R=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,U=/^:not/,z=/[\x20\t\r\n\f]*[+~]/,W=/:not\($/,X=/h\d/i,V=/input|select|textarea|button/i,$=/\\(?!\\)/g,J={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),NAME:new RegExp("^\\[name=['\"]?("+M+")['\"]?\\]"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+H),POS:new RegExp(B,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),needsContext:new RegExp("^"+O+"*[>+~]|"+B,"i")},K=function(e){var t=g.createElement("div");try{return e(t)}catch(n){return!1}finally{t=null}},Q=K(function(e){return e.appendChild(g.createComment("")),!e.getElementsByTagName("*").length}),G=K(function(e){return e.innerHTML="<a href='#'></a>",e.firstChild&&typeof e.firstChild.getAttribute!==p&&e.firstChild.getAttribute("href")==="#"}),Y=K(function(e){e.innerHTML="<select></select>";var t=typeof e.lastChild.getAttribute("multiple");return t!=="boolean"&&t!=="string"}),Z=K(function(e){return e.innerHTML="<div class='hidden e'></div><div class='hidden'></div>",!e.getElementsByClassName||!e.getElementsByClassName("e").length?!1:(e.lastChild.className="e",e.getElementsByClassName("e").length===2)}),et=K(function(e){e.id=d+0,e.innerHTML="<a name='"+d+"'></a><div name='"+d+"'></div>",y.insertBefore(e,y.firstChild);var t=g.getElementsByName&&g.getElementsByName(d).length===2+g.getElementsByName(d+0).length;return r=!g.getElementById(d),y.removeChild(e),t});try{x.call(y.childNodes,0)[0].nodeType}catch(tt){x=function(e){var t,n=[];for(;t=this[e];e++)n.push(t);return n}}nt.matches=function(e,t){return nt(e,null,null,t)},nt.matchesSelector=function(e,t){return nt(t,null,null,[e]).length>0},s=nt.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(i===1||i===9||i===11){if(typeof e.textContent=="string")return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=s(e)}else if(i===3||i===4)return e.nodeValue}else for(;t=e[r];r++)n+=s(t);return n},o=nt.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?t.nodeName!=="HTML":!1},u=nt.contains=y.contains?function(e,t){var n=e.nodeType===9?e.documentElement:e,r=t&&t.parentNode;return e===r||!!(r&&r.nodeType===1&&n.contains&&n.contains(r))}:y.compareDocumentPosition?function(e,t){return t&&!!(e.compareDocumentPosition(t)&16)}:function(e,t){while(t=t.parentNode)if(t===e)return!0;return!1},nt.attr=function(e,t){var n,r=o(e);return r||(t=t.toLowerCase()),(n=i.attrHandle[t])?n(e):r||Y?e.getAttribute(t):(n=e.getAttributeNode(t),n?typeof e[t]=="boolean"?e[t]?t:null:n.specified?n.value:null:null)},i=nt.selectors={cacheLength:50,createPseudo:N,match:J,attrHandle:G?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},find:{ID:r?function(e,t,n){if(typeof t.getElementById!==p&&!n){var r=t.getElementById(e);return r&&r.parentNode?[r]:[]}}:function(e,n,r){if(typeof n.getElementById!==p&&!r){var i=n.getElementById(e);return i?i.id===e||typeof i.getAttributeNode!==p&&i.getAttributeNode("id").value===e?[i]:t:[]}},TAG:Q?function(e,t){if(typeof t.getElementsByTagName!==p)return t.getElementsByTagName(e)}:function(e,t){var n=t.getElementsByTagName(e);if(e==="*"){var r,i=[],s=0;for(;r=n[s];s++)r.nodeType===1&&i.push(r);return i}return n},NAME:et&&function(e,t){if(typeof t.getElementsByName!==p)return t.getElementsByName(name)},CLASS:Z&&function(e,t,n){if(typeof t.getElementsByClassName!==p&&!n)return t.getElementsByClassName(e)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace($,""),e[3]=(e[4]||e[5]||"").replace($,""),e[2]==="~="&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),e[1]==="nth"?(e[2]||nt.error(e[0]),e[3]=+(e[3]?e[4]+(e[5]||1):2*(e[2]==="even"||e[2]==="odd")),e[4]=+(e[6]+e[7]||e[2]==="odd")):e[2]&&nt.error(e[0]),e},PSEUDO:function(e){var t,n;if(J.CHILD.test(e[0]))return null;if(e[3])e[2]=e[3];else if(t=e[4])q.test(t)&&(n=ut(t,!0))&&(n=t.indexOf(")",t.length-n)-t.length)&&(t=t.slice(0,n),e[0]=e[0].slice(0,n)),e[2]=t;return e.slice(0,3)}},filter:{ID:r?function(e){return e=e.replace($,""),function(t){return t.getAttribute("id")===e}}:function(e){return e=e.replace($,""),function(t){var n=typeof t.getAttributeNode!==p&&t.getAttributeNode("id");return n&&n.value===e}},TAG:function(e){return e==="*"?function(){return!0}:(e=e.replace($,"").toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=k[d][e+" "];return t||(t=new RegExp("(^|"+O+")"+e+"("+O+"|$)"))&&k(e,function(e){return t.test(e.className||typeof e.getAttribute!==p&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r,i){var s=nt.attr(r,e);return s==null?t==="!=":t?(s+="",t==="="?s===n:t==="!="?s!==n:t==="^="?n&&s.indexOf(n)===0:t==="*="?n&&s.indexOf(n)>-1:t==="$="?n&&s.substr(s.length-n.length)===n:t==="~="?(" "+s+" ").indexOf(n)>-1:t==="|="?s===n||s.substr(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r){return e==="nth"?function(e){var t,i,s=e.parentNode;if(n===1&&r===0)return!0;if(s){i=0;for(t=s.firstChild;t;t=t.nextSibling)if(t.nodeType===1){i++;if(e===t)break}}return i-=r,i===n||i%n===0&&i/n>=0}:function(t){var n=t;switch(e){case"only":case"first":while(n=n.previousSibling)if(n.nodeType===1)return!1;if(e==="first")return!0;n=t;case"last":while(n=n.nextSibling)if(n.nodeType===1)return!1;return!0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||nt.error("unsupported pseudo: "+e);return r[d]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?N(function(e,n){var i,s=r(e,t),o=s.length;while(o--)i=T.call(e,s[o]),e[i]=!(n[i]=s[o])}):function(e){return r(e,0,n)}):r}},pseudos:{not:N(function(e){var t=[],n=[],r=a(e.replace(j,"$1"));return r[d]?N(function(e,t,n,i){var s,o=r(e,null,i,[]),u=e.length;while(u--)if(s=o[u])e[u]=!(t[u]=s)}):function(e,i,s){return t[0]=e,r(t,null,s,n),!n.pop()}}),has:N(function(e){return function(t){return nt(e,t).length>0}}),contains:N(function(e){return function(t){return(t.textContent||t.innerText||s(t)).indexOf(e)>-1}}),enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&!!e.checked||t==="option"&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},parent:function(e){return!i.pseudos.empty(e)},empty:function(e){var t;e=e.firstChild;while(e){if(e.nodeName>"@"||(t=e.nodeType)===3||t===4)return!1;e=e.nextSibling}return!0},header:function(e){return X.test(e.nodeName)},text:function(e){var t,n;return e.nodeName.toLowerCase()==="input"&&(t=e.type)==="text"&&((n=e.getAttribute("type"))==null||n.toLowerCase()===t)},radio:rt("radio"),checkbox:rt("checkbox"),file:rt("file"),password:rt("password"),image:rt("image"),submit:it("submit"),reset:it("reset"),button:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&e.type==="button"||t==="button"},input:function(e){return V.test(e.nodeName)},focus:function(e){var t=e.ownerDocument;return e===t.activeElement&&(!t.hasFocus||t.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},active:function(e){return e===e.ownerDocument.activeElement},first:st(function(){return[0]}),last:st(function(e,t){return[t-1]}),eq:st(function(e,t,n){return[n<0?n+t:n]}),even:st(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:st(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:st(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:st(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},f=y.compareDocumentPosition?function(e,t){return e===t?(l=!0,0):(!e.compareDocumentPosition||!t.compareDocumentPosition?e.compareDocumentPosition:e.compareDocumentPosition(t)&4)?-1:1}:function(e,t){if(e===t)return l=!0,0;if(e.sourceIndex&&t.sourceIndex)return e.sourceIndex-t.sourceIndex;var n,r,i=[],s=[],o=e.parentNode,u=t.parentNode,a=o;if(o===u)return ot(e,t);if(!o)return-1;if(!u)return 1;while(a)i.unshift(a),a=a.parentNode;a=u;while(a)s.unshift(a),a=a.parentNode;n=i.length,r=s.length;for(var f=0;f<n&&f<r;f++)if(i[f]!==s[f])return ot(i[f],s[f]);return f===n?ot(e,s[f],-1):ot(i[f],t,1)},[0,0].sort(f),h=!l,nt.uniqueSort=function(e){var t,n=[],r=1,i=0;l=h,e.sort(f);if(l){for(;t=e[r];r++)t===e[r-1]&&(i=n.push(r));while(i--)e.splice(n[i],1)}return e},nt.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},a=nt.compile=function(e,t){var n,r=[],i=[],s=A[d][e+" "];if(!s){t||(t=ut(e)),n=t.length;while(n--)s=ht(t[n]),s[d]?r.push(s):i.push(s);s=A(e,pt(i,r))}return s},g.querySelectorAll&&function(){var e,t=vt,n=/'|\\/g,r=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,i=[":focus"],s=[":active"],u=y.matchesSelector||y.mozMatchesSelector||y.webkitMatchesSelector||y.oMatchesSelector||y.msMatchesSelector;K(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||i.push("\\["+O+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||i.push(":checked")}),K(function(e){e.innerHTML="<p test=''></p>",e.querySelectorAll("[test^='']").length&&i.push("[*^$]="+O+"*(?:\"\"|'')"),e.innerHTML="<input type='hidden'/>",e.querySelectorAll(":enabled").length||i.push(":enabled",":disabled")}),i=new RegExp(i.join("|")),vt=function(e,r,s,o,u){if(!o&&!u&&!i.test(e)){var a,f,l=!0,c=d,h=r,p=r.nodeType===9&&e;if(r.nodeType===1&&r.nodeName.toLowerCase()!=="object"){a=ut(e),(l=r.getAttribute("id"))?c=l.replace(n,"\\$&"):r.setAttribute("id",c),c="[id='"+c+"'] ",f=a.length;while(f--)a[f]=c+a[f].join("");h=z.test(e)&&r.parentNode||r,p=a.join(",")}if(p)try{return S.apply(s,x.call(h.querySelectorAll(p),0)),s}catch(v){}finally{l||r.removeAttribute("id")}}return t(e,r,s,o,u)},u&&(K(function(t){e=u.call(t,"div");try{u.call(t,"[test!='']:sizzle"),s.push("!=",H)}catch(n){}}),s=new RegExp(s.join("|")),nt.matchesSelector=function(t,n){n=n.replace(r,"='$1']");if(!o(t)&&!s.test(n)&&!i.test(n))try{var a=u.call(t,n);if(a||e||t.document&&t.document.nodeType!==11)return a}catch(f){}return nt(n,null,null,[t]).length>0})}(),i.pseudos.nth=i.pseudos.eq,i.filters=mt.prototype=i.pseudos,i.setFilters=new mt,nt.attr=v.attr,v.find=nt,v.expr=nt.selectors,v.expr[":"]=v.expr.pseudos,v.unique=nt.uniqueSort,v.text=nt.getText,v.isXMLDoc=nt.isXML,v.contains=nt.contains}(e);var nt=/Until$/,rt=/^(?:parents|prev(?:Until|All))/,it=/^.[^:#\[\.,]*$/,st=v.expr.match.needsContext,ot={children:!0,contents:!0,next:!0,prev:!0};v.fn.extend({find:function(e){var t,n,r,i,s,o,u=this;if(typeof e!="string")return v(e).filter(function(){for(t=0,n=u.length;t<n;t++)if(v.contains(u[t],this))return!0});o=this.pushStack("","find",e);for(t=0,n=this.length;t<n;t++){r=o.length,v.find(e,this[t],o);if(t>0)for(i=r;i<o.length;i++)for(s=0;s<r;s++)if(o[s]===o[i]){o.splice(i--,1);break}}return o},has:function(e){var t,n=v(e,this),r=n.length;return this.filter(function(){for(t=0;t<r;t++)if(v.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(ft(this,e,!1),"not",e)},filter:function(e){return this.pushStack(ft(this,e,!0),"filter",e)},is:function(e){return!!e&&(typeof e=="string"?st.test(e)?v(e,this.context).index(this[0])>=0:v.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n,r=0,i=this.length,s=[],o=st.test(e)||typeof e!="string"?v(e,t||this.context):0;for(;r<i;r++){n=this[r];while(n&&n.ownerDocument&&n!==t&&n.nodeType!==11){if(o?o.index(n)>-1:v.find.matchesSelector(n,e)){s.push(n);break}n=n.parentNode}}return s=s.length>1?v.unique(s):s,this.pushStack(s,"closest",e)},index:function(e){return e?typeof e=="string"?v.inArray(this[0],v(e)):v.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(e,t){var n=typeof e=="string"?v(e,t):v.makeArray(e&&e.nodeType?[e]:e),r=v.merge(this.get(),n);return this.pushStack(ut(n[0])||ut(r[0])?r:v.unique(r))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}}),v.fn.andSelf=v.fn.addBack,v.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return v.dir(e,"parentNode")},parentsUntil:function(e,t,n){return v.dir(e,"parentNode",n)},next:function(e){return at(e,"nextSibling")},prev:function(e){return at(e,"previousSibling")},nextAll:function(e){return v.dir(e,"nextSibling")},prevAll:function(e){return v.dir(e,"previousSibling")},nextUntil:function(e,t,n){return v.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return v.dir(e,"previousSibling",n)},siblings:function(e){return v.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return v.sibling(e.firstChild)},contents:function(e){return v.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:v.merge([],e.childNodes)}},function(e,t){v.fn[e]=function(n,r){var i=v.map(this,t,n);return nt.test(e)||(r=n),r&&typeof r=="string"&&(i=v.filter(r,i)),i=this.length>1&&!ot[e]?v.unique(i):i,this.length>1&&rt.test(e)&&(i=i.reverse()),this.pushStack(i,e,l.call(arguments).join(","))}}),v.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),t.length===1?v.find.matchesSelector(t[0],e)?[t[0]]:[]:v.find.matches(e,t)},dir:function(e,n,r){var i=[],s=e[n];while(s&&s.nodeType!==9&&(r===t||s.nodeType!==1||!v(s).is(r)))s.nodeType===1&&i.push(s),s=s[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n}});var ct="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ht=/ jQuery\d+="(?:null|\d+)"/g,pt=/^\s+/,dt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,vt=/<([\w:]+)/,mt=/<tbody/i,gt=/<|&#?\w+;/,yt=/<(?:script|style|link)/i,bt=/<(?:script|object|embed|option|style)/i,wt=new RegExp("<(?:"+ct+")[\\s/>]","i"),Et=/^(?:checkbox|radio)$/,St=/checked\s*(?:[^=]|=\s*.checked.)/i,xt=/\/(java|ecma)script/i,Tt=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,Nt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},Ct=lt(i),kt=Ct.appendChild(i.createElement("div"));Nt.optgroup=Nt.option,Nt.tbody=Nt.tfoot=Nt.colgroup=Nt.caption=Nt.thead,Nt.th=Nt.td,v.support.htmlSerialize||(Nt._default=[1,"X<div>","</div>"]),v.fn.extend({text:function(e){return v.access(this,function(e){return e===t?v.text(this):this.empty().append((this[0]&&this[0].ownerDocument||i).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(v.isFunction(e))return this.each(function(t){v(this).wrapAll(e.call(this,t))});if(this[0]){var t=v(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&e.firstChild.nodeType===1)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return v.isFunction(e)?this.each(function(t){v(this).wrapInner(e.call(this,t))}):this.each(function(){var t=v(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=v.isFunction(e);return this.each(function(n){v(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){v.nodeName(this,"body")||v(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){(this.nodeType===1||this.nodeType===11)&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){(this.nodeType===1||this.nodeType===11)&&this.insertBefore(e,this.firstChild)})},before:function(){if(!ut(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this)});if(arguments.length){var e=v.clean(arguments);return this.pushStack(v.merge(e,this),"before",this.selector)}},after:function(){if(!ut(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this.nextSibling)});if(arguments.length){var e=v.clean(arguments);return this.pushStack(v.merge(this,e),"after",this.selector)}},remove:function(e,t){var n,r=0;for(;(n=this[r])!=null;r++)if(!e||v.filter(e,[n]).length)!t&&n.nodeType===1&&(v.cleanData(n.getElementsByTagName("*")),v.cleanData([n])),n.parentNode&&n.parentNode.removeChild(n);return this},empty:function(){var e,t=0;for(;(e=this[t])!=null;t++){e.nodeType===1&&v.cleanData(e.getElementsByTagName("*"));while(e.firstChild)e.removeChild(e.firstChild)}return this},clone:function(e,t){return e=e==null?!1:e,t=t==null?e:t,this.map(function(){return v.clone(this,e,t)})},html:function(e){return v.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return n.nodeType===1?n.innerHTML.replace(ht,""):t;if(typeof e=="string"&&!yt.test(e)&&(v.support.htmlSerialize||!wt.test(e))&&(v.support.leadingWhitespace||!pt.test(e))&&!Nt[(vt.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(dt,"<$1></$2>");try{for(;r<i;r++)n=this[r]||{},n.nodeType===1&&(v.cleanData(n.getElementsByTagName("*")),n.innerHTML=e);n=0}catch(s){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(e){return ut(this[0])?this.length?this.pushStack(v(v.isFunction(e)?e():e),"replaceWith",e):this:v.isFunction(e)?this.each(function(t){var n=v(this),r=n.html();n.replaceWith(e.call(this,t,r))}):(typeof e!="string"&&(e=v(e).detach()),this.each(function(){var t=this.nextSibling,n=this.parentNode;v(this).remove(),t?v(t).before(e):v(n).append(e)}))},detach:function(e){return this.remove(e,!0)},domManip:function(e,n,r){e=[].concat.apply([],e);var i,s,o,u,a=0,f=e[0],l=[],c=this.length;if(!v.support.checkClone&&c>1&&typeof f=="string"&&St.test(f))return this.each(function(){v(this).domManip(e,n,r)});if(v.isFunction(f))return this.each(function(i){var s=v(this);e[0]=f.call(this,i,n?s.html():t),s.domManip(e,n,r)});if(this[0]){i=v.buildFragment(e,this,l),o=i.fragment,s=o.firstChild,o.childNodes.length===1&&(o=s);if(s){n=n&&v.nodeName(s,"tr");for(u=i.cacheable||c-1;a<c;a++)r.call(n&&v.nodeName(this[a],"table")?Lt(this[a],"tbody"):this[a],a===u?o:v.clone(o,!0,!0))}o=s=null,l.length&&v.each(l,function(e,t){t.src?v.ajax?v.ajax({url:t.src,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0}):v.error("no ajax"):v.globalEval((t.text||t.textContent||t.innerHTML||"").replace(Tt,"")),t.parentNode&&t.parentNode.removeChild(t)})}return this}}),v.buildFragment=function(e,n,r){var s,o,u,a=e[0];return n=n||i,n=!n.nodeType&&n[0]||n,n=n.ownerDocument||n,e.length===1&&typeof a=="string"&&a.length<512&&n===i&&a.charAt(0)==="<"&&!bt.test(a)&&(v.support.checkClone||!St.test(a))&&(v.support.html5Clone||!wt.test(a))&&(o=!0,s=v.fragments[a],u=s!==t),s||(s=n.createDocumentFragment(),v.clean(e,n,s,r),o&&(v.fragments[a]=u&&s)),{fragment:s,cacheable:o}},v.fragments={},v.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){v.fn[e]=function(n){var r,i=0,s=[],o=v(n),u=o.length,a=this.length===1&&this[0].parentNode;if((a==null||a&&a.nodeType===11&&a.childNodes.length===1)&&u===1)return o[t](this[0]),this;for(;i<u;i++)r=(i>0?this.clone(!0):this).get(),v(o[i])[t](r),s=s.concat(r);return this.pushStack(s,e,o.selector)}}),v.extend({clone:function(e,t,n){var r,i,s,o;v.support.html5Clone||v.isXMLDoc(e)||!wt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(kt.innerHTML=e.outerHTML,kt.removeChild(o=kt.firstChild));if((!v.support.noCloneEvent||!v.support.noCloneChecked)&&(e.nodeType===1||e.nodeType===11)&&!v.isXMLDoc(e)){Ot(e,o),r=Mt(e),i=Mt(o);for(s=0;r[s];++s)i[s]&&Ot(r[s],i[s])}if(t){At(e,o);if(n){r=Mt(e),i=Mt(o);for(s=0;r[s];++s)At(r[s],i[s])}}return r=i=null,o},clean:function(e,t,n,r){var s,o,u,a,f,l,c,h,p,d,m,g,y=t===i&&Ct,b=[];if(!t||typeof t.createDocumentFragment=="undefined")t=i;for(s=0;(u=e[s])!=null;s++){typeof u=="number"&&(u+="");if(!u)continue;if(typeof u=="string")if(!gt.test(u))u=t.createTextNode(u);else{y=y||lt(t),c=t.createElement("div"),y.appendChild(c),u=u.replace(dt,"<$1></$2>"),a=(vt.exec(u)||["",""])[1].toLowerCase(),f=Nt[a]||Nt._default,l=f[0],c.innerHTML=f[1]+u+f[2];while(l--)c=c.lastChild;if(!v.support.tbody){h=mt.test(u),p=a==="table"&&!h?c.firstChild&&c.firstChild.childNodes:f[1]==="<table>"&&!h?c.childNodes:[];for(o=p.length-1;o>=0;--o)v.nodeName(p[o],"tbody")&&!p[o].childNodes.length&&p[o].parentNode.removeChild(p[o])}!v.support.leadingWhitespace&&pt.test(u)&&c.insertBefore(t.createTextNode(pt.exec(u)[0]),c.firstChild),u=c.childNodes,c.parentNode.removeChild(c)}u.nodeType?b.push(u):v.merge(b,u)}c&&(u=c=y=null);if(!v.support.appendChecked)for(s=0;(u=b[s])!=null;s++)v.nodeName(u,"input")?_t(u):typeof u.getElementsByTagName!="undefined"&&v.grep(u.getElementsByTagName("input"),_t);if(n){m=function(e){if(!e.type||xt.test(e.type))return r?r.push(e.parentNode?e.parentNode.removeChild(e):e):n.appendChild(e)};for(s=0;(u=b[s])!=null;s++)if(!v.nodeName(u,"script")||!m(u))n.appendChild(u),typeof u.getElementsByTagName!="undefined"&&(g=v.grep(v.merge([],u.getElementsByTagName("script")),m),b.splice.apply(b,[s+1,0].concat(g)),s+=g.length)}return b},cleanData:function(e,t){var n,r,i,s,o=0,u=v.expando,a=v.cache,f=v.support.deleteExpando,l=v.event.special;for(;(i=e[o])!=null;o++)if(t||v.acceptData(i)){r=i[u],n=r&&a[r];if(n){if(n.events)for(s in n.events)l[s]?v.event.remove(i,s):v.removeEvent(i,s,n.handle);a[r]&&(delete a[r],f?delete i[u]:i.removeAttribute?i.removeAttribute(u):i[u]=null,v.deletedIds.push(r))}}}}),function(){var e,t;v.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e=v.uaMatch(o.userAgent),t={},e.browser&&(t[e.browser]=!0,t.version=e.version),t.chrome?t.webkit=!0:t.webkit&&(t.safari=!0),v.browser=t,v.sub=function(){function e(t,n){return new e.fn.init(t,n)}v.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(r,i){return i&&i instanceof v&&!(i instanceof e)&&(i=e(i)),v.fn.init.call(this,r,i,t)},e.fn.init.prototype=e.fn;var t=e(i);return e}}();var Dt,Pt,Ht,Bt=/alpha\([^)]*\)/i,jt=/opacity=([^)]*)/,Ft=/^(top|right|bottom|left)$/,It=/^(none|table(?!-c[ea]).+)/,qt=/^margin/,Rt=new RegExp("^("+m+")(.*)$","i"),Ut=new RegExp("^("+m+")(?!px)[a-z%]+$","i"),zt=new RegExp("^([-+])=("+m+")","i"),Wt={BODY:"block"},Xt={position:"absolute",visibility:"hidden",display:"block"},Vt={letterSpacing:0,fontWeight:400},$t=["Top","Right","Bottom","Left"],Jt=["Webkit","O","Moz","ms"],Kt=v.fn.toggle;v.fn.extend({css:function(e,n){return v.access(this,function(e,n,r){return r!==t?v.style(e,n,r):v.css(e,n)},e,n,arguments.length>1)},show:function(){return Yt(this,!0)},hide:function(){return Yt(this)},toggle:function(e,t){var n=typeof e=="boolean";return v.isFunction(e)&&v.isFunction(t)?Kt.apply(this,arguments):this.each(function(){(n?e:Gt(this))?v(this).show():v(this).hide()})}}),v.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Dt(e,"opacity");return n===""?"1":n}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":v.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(!e||e.nodeType===3||e.nodeType===8||!e.style)return;var s,o,u,a=v.camelCase(n),f=e.style;n=v.cssProps[a]||(v.cssProps[a]=Qt(f,a)),u=v.cssHooks[n]||v.cssHooks[a];if(r===t)return u&&"get"in u&&(s=u.get(e,!1,i))!==t?s:f[n];o=typeof r,o==="string"&&(s=zt.exec(r))&&(r=(s[1]+1)*s[2]+parseFloat(v.css(e,n)),o="number");if(r==null||o==="number"&&isNaN(r))return;o==="number"&&!v.cssNumber[a]&&(r+="px");if(!u||!("set"in u)||(r=u.set(e,r,i))!==t)try{f[n]=r}catch(l){}},css:function(e,n,r,i){var s,o,u,a=v.camelCase(n);return n=v.cssProps[a]||(v.cssProps[a]=Qt(e.style,a)),u=v.cssHooks[n]||v.cssHooks[a],u&&"get"in u&&(s=u.get(e,!0,i)),s===t&&(s=Dt(e,n)),s==="normal"&&n in Vt&&(s=Vt[n]),r||i!==t?(o=parseFloat(s),r||v.isNumeric(o)?o||0:s):s},swap:function(e,t,n){var r,i,s={};for(i in t)s[i]=e.style[i],e.style[i]=t[i];r=n.call(e);for(i in t)e.style[i]=s[i];return r}}),e.getComputedStyle?Dt=function(t,n){var r,i,s,o,u=e.getComputedStyle(t,null),a=t.style;return u&&(r=u.getPropertyValue(n)||u[n],r===""&&!v.contains(t.ownerDocument,t)&&(r=v.style(t,n)),Ut.test(r)&&qt.test(n)&&(i=a.width,s=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=r,r=u.width,a.width=i,a.minWidth=s,a.maxWidth=o)),r}:i.documentElement.currentStyle&&(Dt=function(e,t){var n,r,i=e.currentStyle&&e.currentStyle[t],s=e.style;return i==null&&s&&s[t]&&(i=s[t]),Ut.test(i)&&!Ft.test(t)&&(n=s.left,r=e.runtimeStyle&&e.runtimeStyle.left,r&&(e.runtimeStyle.left=e.currentStyle.left),s.left=t==="fontSize"?"1em":i,i=s.pixelLeft+"px",s.left=n,r&&(e.runtimeStyle.left=r)),i===""?"auto":i}),v.each(["height","width"],function(e,t){v.cssHooks[t]={get:function(e,n,r){if(n)return e.offsetWidth===0&&It.test(Dt(e,"display"))?v.swap(e,Xt,function(){return tn(e,t,r)}):tn(e,t,r)},set:function(e,n,r){return Zt(e,n,r?en(e,t,r,v.support.boxSizing&&v.css(e,"boxSizing")==="border-box"):0)}}}),v.support.opacity||(v.cssHooks.opacity={get:function(e,t){return jt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=v.isNumeric(t)?"alpha(opacity="+t*100+")":"",s=r&&r.filter||n.filter||"";n.zoom=1;if(t>=1&&v.trim(s.replace(Bt,""))===""&&n.removeAttribute){n.removeAttribute("filter");if(r&&!r.filter)return}n.filter=Bt.test(s)?s.replace(Bt,i):s+" "+i}}),v(function(){v.support.reliableMarginRight||(v.cssHooks.marginRight={get:function(e,t){return v.swap(e,{display:"inline-block"},function(){if(t)return Dt(e,"marginRight")})}}),!v.support.pixelPosition&&v.fn.position&&v.each(["top","left"],function(e,t){v.cssHooks[t]={get:function(e,n){if(n){var r=Dt(e,t);return Ut.test(r)?v(e).position()[t]+"px":r}}}})}),v.expr&&v.expr.filters&&(v.expr.filters.hidden=function(e){return e.offsetWidth===0&&e.offsetHeight===0||!v.support.reliableHiddenOffsets&&(e.style&&e.style.display||Dt(e,"display"))==="none"},v.expr.filters.visible=function(e){return!v.expr.filters.hidden(e)}),v.each({margin:"",padding:"",border:"Width"},function(e,t){v.cssHooks[e+t]={expand:function(n){var r,i=typeof n=="string"?n.split(" "):[n],s={};for(r=0;r<4;r++)s[e+$t[r]+t]=i[r]||i[r-2]||i[0];return s}},qt.test(e)||(v.cssHooks[e+t].set=Zt)});var rn=/%20/g,sn=/\[\]$/,on=/\r?\n/g,un=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,an=/^(?:select|textarea)/i;v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?v.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||an.test(this.nodeName)||un.test(this.type))}).map(function(e,t){var n=v(this).val();return n==null?null:v.isArray(n)?v.map(n,function(e,n){return{name:t.name,value:e.replace(on,"\r\n")}}):{name:t.name,value:n.replace(on,"\r\n")}}).get()}}),v.param=function(e,n){var r,i=[],s=function(e,t){t=v.isFunction(t)?t():t==null?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};n===t&&(n=v.ajaxSettings&&v.ajaxSettings.traditional);if(v.isArray(e)||e.jquery&&!v.isPlainObject(e))v.each(e,function(){s(this.name,this.value)});else for(r in e)fn(r,e[r],n,s);return i.join("&").replace(rn,"+")};var ln,cn,hn=/#.*$/,pn=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,dn=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,vn=/^(?:GET|HEAD)$/,mn=/^\/\//,gn=/\?/,yn=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bn=/([?&])_=[^&]*/,wn=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,En=v.fn.load,Sn={},xn={},Tn=["*/"]+["*"];try{cn=s.href}catch(Nn){cn=i.createElement("a"),cn.href="",cn=cn.href}ln=wn.exec(cn.toLowerCase())||[],v.fn.load=function(e,n,r){if(typeof e!="string"&&En)return En.apply(this,arguments);if(!this.length)return this;var i,s,o,u=this,a=e.indexOf(" ");return a>=0&&(i=e.slice(a,e.length),e=e.slice(0,a)),v.isFunction(n)?(r=n,n=t):n&&typeof n=="object"&&(s="POST"),v.ajax({url:e,type:s,dataType:"html",data:n,complete:function(e,t){r&&u.each(r,o||[e.responseText,t,e])}}).done(function(e){o=arguments,u.html(i?v("<div>").append(e.replace(yn,"")).find(i):e)}),this},v.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,t){v.fn[t]=function(e){return this.on(t,e)}}),v.each(["get","post"],function(e,n){v[n]=function(e,r,i,s){return v.isFunction(r)&&(s=s||i,i=r,r=t),v.ajax({type:n,url:e,data:r,success:i,dataType:s})}}),v.extend({getScript:function(e,n){return v.get(e,t,n,"script")},getJSON:function(e,t,n){return v.get(e,t,n,"json")},ajaxSetup:function(e,t){return t?Ln(e,v.ajaxSettings):(t=e,e=v.ajaxSettings),Ln(e,t),e},ajaxSettings:{url:cn,isLocal:dn.test(ln[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Tn},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":v.parseJSON,"text xml":v.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:Cn(Sn),ajaxTransport:Cn(xn),ajax:function(e,n){function T(e,n,s,a){var l,y,b,w,S,T=n;if(E===2)return;E=2,u&&clearTimeout(u),o=t,i=a||"",x.readyState=e>0?4:0,s&&(w=An(c,x,s));if(e>=200&&e<300||e===304)c.ifModified&&(S=x.getResponseHeader("Last-Modified"),S&&(v.lastModified[r]=S),S=x.getResponseHeader("Etag"),S&&(v.etag[r]=S)),e===304?(T="notmodified",l=!0):(l=On(c,w),T=l.state,y=l.data,b=l.error,l=!b);else{b=T;if(!T||e)T="error",e<0&&(e=0)}x.status=e,x.statusText=(n||T)+"",l?d.resolveWith(h,[y,T,x]):d.rejectWith(h,[x,T,b]),x.statusCode(g),g=t,f&&p.trigger("ajax"+(l?"Success":"Error"),[x,c,l?y:b]),m.fireWith(h,[x,T]),f&&(p.trigger("ajaxComplete",[x,c]),--v.active||v.event.trigger("ajaxStop"))}typeof e=="object"&&(n=e,e=t),n=n||{};var r,i,s,o,u,a,f,l,c=v.ajaxSetup({},n),h=c.context||c,p=h!==c&&(h.nodeType||h instanceof v)?v(h):v.event,d=v.Deferred(),m=v.Callbacks("once memory"),g=c.statusCode||{},b={},w={},E=0,S="canceled",x={readyState:0,setRequestHeader:function(e,t){if(!E){var n=e.toLowerCase();e=w[n]=w[n]||e,b[e]=t}return this},getAllResponseHeaders:function(){return E===2?i:null},getResponseHeader:function(e){var n;if(E===2){if(!s){s={};while(n=pn.exec(i))s[n[1].toLowerCase()]=n[2]}n=s[e.toLowerCase()]}return n===t?null:n},overrideMimeType:function(e){return E||(c.mimeType=e),this},abort:function(e){return e=e||S,o&&o.abort(e),T(0,e),this}};d.promise(x),x.success=x.done,x.error=x.fail,x.complete=m.add,x.statusCode=function(e){if(e){var t;if(E<2)for(t in e)g[t]=[g[t],e[t]];else t=e[x.status],x.always(t)}return this},c.url=((e||c.url)+"").replace(hn,"").replace(mn,ln[1]+"//"),c.dataTypes=v.trim(c.dataType||"*").toLowerCase().split(y),c.crossDomain==null&&(a=wn.exec(c.url.toLowerCase()),c.crossDomain=!(!a||a[1]===ln[1]&&a[2]===ln[2]&&(a[3]||(a[1]==="http:"?80:443))==(ln[3]||(ln[1]==="http:"?80:443)))),c.data&&c.processData&&typeof c.data!="string"&&(c.data=v.param(c.data,c.traditional)),kn(Sn,c,n,x);if(E===2)return x;f=c.global,c.type=c.type.toUpperCase(),c.hasContent=!vn.test(c.type),f&&v.active++===0&&v.event.trigger("ajaxStart");if(!c.hasContent){c.data&&(c.url+=(gn.test(c.url)?"&":"?")+c.data,delete c.data),r=c.url;if(c.cache===!1){var N=v.now(),C=c.url.replace(bn,"$1_="+N);c.url=C+(C===c.url?(gn.test(c.url)?"&":"?")+"_="+N:"")}}(c.data&&c.hasContent&&c.contentType!==!1||n.contentType)&&x.setRequestHeader("Content-Type",c.contentType),c.ifModified&&(r=r||c.url,v.lastModified[r]&&x.setRequestHeader("If-Modified-Since",v.lastModified[r]),v.etag[r]&&x.setRequestHeader("If-None-Match",v.etag[r])),x.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+(c.dataTypes[0]!=="*"?", "+Tn+"; q=0.01":""):c.accepts["*"]);for(l in c.headers)x.setRequestHeader(l,c.headers[l]);if(!c.beforeSend||c.beforeSend.call(h,x,c)!==!1&&E!==2){S="abort";for(l in{success:1,error:1,complete:1})x[l](c[l]);o=kn(xn,c,n,x);if(!o)T(-1,"No Transport");else{x.readyState=1,f&&p.trigger("ajaxSend",[x,c]),c.async&&c.timeout>0&&(u=setTimeout(function(){x.abort("timeout")},c.timeout));try{E=1,o.send(b,T)}catch(k){if(!(E<2))throw k;T(-1,k)}}return x}return x.abort()},active:0,lastModified:{},etag:{}});var Mn=[],_n=/\?/,Dn=/(=)\?(?=&|$)|\?\?/,Pn=v.now();v.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Mn.pop()||v.expando+"_"+Pn++;return this[e]=!0,e}}),v.ajaxPrefilter("json jsonp",function(n,r,i){var s,o,u,a=n.data,f=n.url,l=n.jsonp!==!1,c=l&&Dn.test(f),h=l&&!c&&typeof a=="string"&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Dn.test(a);if(n.dataTypes[0]==="jsonp"||c||h)return s=n.jsonpCallback=v.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,o=e[s],c?n.url=f.replace(Dn,"$1"+s):h?n.data=a.replace(Dn,"$1"+s):l&&(n.url+=(_n.test(f)?"&":"?")+n.jsonp+"="+s),n.converters["script json"]=function(){return u||v.error(s+" was not called"),u[0]},n.dataTypes[0]="json",e[s]=function(){u=arguments},i.always(function(){e[s]=o,n[s]&&(n.jsonpCallback=r.jsonpCallback,Mn.push(s)),u&&v.isFunction(o)&&o(u[0]),u=o=t}),"script"}),v.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return v.globalEval(e),e}}}),v.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),v.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=i.head||i.getElementsByTagName("head")[0]||i.documentElement;return{send:function(s,o){n=i.createElement("script"),n.async="async",e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,i){if(i||!n.readyState||/loaded|complete/.test(n.readyState))n.onload=n.onreadystatechange=null,r&&n.parentNode&&r.removeChild(n),n=t,i||o(200,"success")},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(0,1)}}}});var Hn,Bn=e.ActiveXObject?function(){for(var e in Hn)Hn[e](0,1)}:!1,jn=0;v.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&Fn()||In()}:Fn,function(e){v.extend(v.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})}(v.ajaxSettings.xhr()),v.support.ajax&&v.ajaxTransport(function(n){if(!n.crossDomain||v.support.cors){var r;return{send:function(i,s){var o,u,a=n.xhr();n.username?a.open(n.type,n.url,n.async,n.username,n.password):a.open(n.type,n.url,n.async);if(n.xhrFields)for(u in n.xhrFields)a[u]=n.xhrFields[u];n.mimeType&&a.overrideMimeType&&a.overrideMimeType(n.mimeType),!n.crossDomain&&!i["X-Requested-With"]&&(i["X-Requested-With"]="XMLHttpRequest");try{for(u in i)a.setRequestHeader(u,i[u])}catch(f){}a.send(n.hasContent&&n.data||null),r=function(e,i){var u,f,l,c,h;try{if(r&&(i||a.readyState===4)){r=t,o&&(a.onreadystatechange=v.noop,Bn&&delete Hn[o]);if(i)a.readyState!==4&&a.abort();else{u=a.status,l=a.getAllResponseHeaders(),c={},h=a.responseXML,h&&h.documentElement&&(c.xml=h);try{c.text=a.responseText}catch(p){}try{f=a.statusText}catch(p){f=""}!u&&n.isLocal&&!n.crossDomain?u=c.text?200:404:u===1223&&(u=204)}}}catch(d){i||s(-1,d)}c&&s(u,f,c,l)},n.async?a.readyState===4?setTimeout(r,0):(o=++jn,Bn&&(Hn||(Hn={},v(e).unload(Bn)),Hn[o]=r),a.onreadystatechange=r):r()},abort:function(){r&&r(0,1)}}}});var qn,Rn,Un=/^(?:toggle|show|hide)$/,zn=new RegExp("^(?:([-+])=|)("+m+")([a-z%]*)$","i"),Wn=/queueHooks$/,Xn=[Gn],Vn={"*":[function(e,t){var n,r,i=this.createTween(e,t),s=zn.exec(t),o=i.cur(),u=+o||0,a=1,f=20;if(s){n=+s[2],r=s[3]||(v.cssNumber[e]?"":"px");if(r!=="px"&&u){u=v.css(i.elem,e,!0)||n||1;do a=a||".5",u/=a,v.style(i.elem,e,u+r);while(a!==(a=i.cur()/o)&&a!==1&&--f)}i.unit=r,i.start=u,i.end=s[1]?u+(s[1]+1)*n:n}return i}]};v.Animation=v.extend(Kn,{tweener:function(e,t){v.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;r<i;r++)n=e[r],Vn[n]=Vn[n]||[],Vn[n].unshift(t)},prefilter:function(e,t){t?Xn.unshift(e):Xn.push(e)}}),v.Tween=Yn,Yn.prototype={constructor:Yn,init:function(e,t,n,r,i,s){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=s||(v.cssNumber[n]?"":"px")},cur:function(){var e=Yn.propHooks[this.prop];return e&&e.get?e.get(this):Yn.propHooks._default.get(this)},run:function(e){var t,n=Yn.propHooks[this.prop];return this.options.duration?this.pos=t=v.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Yn.propHooks._default.set(this),this}},Yn.prototype.init.prototype=Yn.prototype,Yn.propHooks={_default:{get:function(e){var t;return e.elem[e.prop]==null||!!e.elem.style&&e.elem.style[e.prop]!=null?(t=v.css(e.elem,e.prop,!1,""),!t||t==="auto"?0:t):e.elem[e.prop]},set:function(e){v.fx.step[e.prop]?v.fx.step[e.prop](e):e.elem.style&&(e.elem.style[v.cssProps[e.prop]]!=null||v.cssHooks[e.prop])?v.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Yn.propHooks.scrollTop=Yn.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},v.each(["toggle","show","hide"],function(e,t){var n=v.fn[t];v.fn[t]=function(r,i,s){return r==null||typeof r=="boolean"||!e&&v.isFunction(r)&&v.isFunction(i)?n.apply(this,arguments):this.animate(Zn(t,!0),r,i,s)}}),v.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Gt).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=v.isEmptyObject(e),s=v.speed(t,n,r),o=function(){var t=Kn(this,v.extend({},e),s);i&&t.stop(!0)};return i||s.queue===!1?this.each(o):this.queue(s.queue,o)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return typeof e!="string"&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=e!=null&&e+"queueHooks",s=v.timers,o=v._data(this);if(n)o[n]&&o[n].stop&&i(o[n]);else for(n in o)o[n]&&o[n].stop&&Wn.test(n)&&i(o[n]);for(n=s.length;n--;)s[n].elem===this&&(e==null||s[n].queue===e)&&(s[n].anim.stop(r),t=!1,s.splice(n,1));(t||!r)&&v.dequeue(this,e)})}}),v.each({slideDown:Zn("show"),slideUp:Zn("hide"),slideToggle:Zn("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){v.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),v.speed=function(e,t,n){var r=e&&typeof e=="object"?v.extend({},e):{complete:n||!n&&t||v.isFunction(e)&&e,duration:e,easing:n&&t||t&&!v.isFunction(t)&&t};r.duration=v.fx.off?0:typeof r.duration=="number"?r.duration:r.duration in v.fx.speeds?v.fx.speeds[r.duration]:v.fx.speeds._default;if(r.queue==null||r.queue===!0)r.queue="fx";return r.old=r.complete,r.complete=function(){v.isFunction(r.old)&&r.old.call(this),r.queue&&v.dequeue(this,r.queue)},r},v.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},v.timers=[],v.fx=Yn.prototype.init,v.fx.tick=function(){var e,n=v.timers,r=0;qn=v.now();for(;r<n.length;r++)e=n[r],!e()&&n[r]===e&&n.splice(r--,1);n.length||v.fx.stop(),qn=t},v.fx.timer=function(e){e()&&v.timers.push(e)&&!Rn&&(Rn=setInterval(v.fx.tick,v.fx.interval))},v.fx.interval=13,v.fx.stop=function(){clearInterval(Rn),Rn=null},v.fx.speeds={slow:600,fast:200,_default:400},v.fx.step={},v.expr&&v.expr.filters&&(v.expr.filters.animated=function(e){return v.grep(v.timers,function(t){return e===t.elem}).length});var er=/^(?:body|html)$/i;v.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){v.offset.setOffset(this,e,t)});var n,r,i,s,o,u,a,f={top:0,left:0},l=this[0],c=l&&l.ownerDocument;if(!c)return;return(r=c.body)===l?v.offset.bodyOffset(l):(n=c.documentElement,v.contains(n,l)?(typeof l.getBoundingClientRect!="undefined"&&(f=l.getBoundingClientRect()),i=tr(c),s=n.clientTop||r.clientTop||0,o=n.clientLeft||r.clientLeft||0,u=i.pageYOffset||n.scrollTop,a=i.pageXOffset||n.scrollLeft,{top:f.top+u-s,left:f.left+a-o}):f)},v.offset={bodyOffset:function(e){var t=e.offsetTop,n=e.offsetLeft;return v.support.doesNotIncludeMarginInBodyOffset&&(t+=parseFloat(v.css(e,"marginTop"))||0,n+=parseFloat(v.css(e,"marginLeft"))||0),{top:t,left:n}},setOffset:function(e,t,n){var r=v.css(e,"position");r==="static"&&(e.style.position="relative");var i=v(e),s=i.offset(),o=v.css(e,"top"),u=v.css(e,"left"),a=(r==="absolute"||r==="fixed")&&v.inArray("auto",[o,u])>-1,f={},l={},c,h;a?(l=i.position(),c=l.top,h=l.left):(c=parseFloat(o)||0,h=parseFloat(u)||0),v.isFunction(t)&&(t=t.call(e,n,s)),t.top!=null&&(f.top=t.top-s.top+c),t.left!=null&&(f.left=t.left-s.left+h),"using"in t?t.using.call(e,f):i.css(f)}},v.fn.extend({position:function(){if(!this[0])return;var e=this[0],t=this.offsetParent(),n=this.offset(),r=er.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(v.css(e,"marginTop"))||0,n.left-=parseFloat(v.css(e,"marginLeft"))||0,r.top+=parseFloat(v.css(t[0],"borderTopWidth"))||0,r.left+=parseFloat(v.css(t[0],"borderLeftWidth"))||0,{top:n.top-r.top,left:n.left-r.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||i.body;while(e&&!er.test(e.nodeName)&&v.css(e,"position")==="static")e=e.offsetParent;return e||i.body})}}),v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);v.fn[e]=function(i){return v.access(this,function(e,i,s){var o=tr(e);if(s===t)return o?n in o?o[n]:o.document.documentElement[i]:e[i];o?o.scrollTo(r?v(o).scrollLeft():s,r?s:v(o).scrollTop()):e[i]=s},e,i,arguments.length,null)}}),v.each({Height:"height",Width:"width"},function(e,n){v.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){v.fn[i]=function(i,s){var o=arguments.length&&(r||typeof i!="boolean"),u=r||(i===!0||s===!0?"margin":"border");return v.access(this,function(n,r,i){var s;return v.isWindow(n)?n.document.documentElement["client"+e]:n.nodeType===9?(s=n.documentElement,Math.max(n.body["scroll"+e],s["scroll"+e],n.body["offset"+e],s["offset"+e],s["client"+e])):i===t?v.css(n,r,i,u):v.style(n,r,i,u)},n,o?i:t,o,null)}})}),e.jQuery=e.$=v,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return v})})(window);
3
+ jQuery.noConflict();
templates/super-slick/assets/js/jquery.widtherize.js CHANGED
@@ -1,80 +1,80 @@
1
- function resizer() {
2
- this.resize = function(element, size) {
3
- this.init(element);
4
- element.css('font-size', this.growTo(size) + 'px');
5
- this.tester.remove();
6
- }
7
-
8
- this.init = function(element) {
9
- jQuery('#resizeroo').remove();
10
- this.tester = element.clone();
11
- this.tester.css('display', 'none');
12
- this.tester.css('position', 'absolute');
13
- this.tester.css('height', 'auto');
14
- this.tester.css('width', 'auto');
15
- jQuery('body').append(this.tester);
16
- this.size = 1;
17
- this.tester.css('font-size', this.size + 'px');
18
- }
19
-
20
- this.emitWidth = function() {
21
- console.log(this.tester.width());
22
- }
23
-
24
- this.grow = function() {
25
- this.size++;
26
- this.setSize();
27
- }
28
-
29
- this.setSize = function(size) {
30
- this.size = size;
31
- this.tester.css('font-size', this.size + 'px');
32
- }
33
-
34
- this.growTo = function(limit) {
35
- lower = 1;
36
- upper = limit-1;
37
-
38
- // do binary search going midway to determine
39
- // the best size
40
- while( lower < upper ) {
41
- midpoint = Math.ceil((upper+lower)/2);
42
- this.setSize(midpoint);
43
-
44
- if( Math.abs(limit - this.tester.width()) <= 1) {
45
- // close enough
46
- break
47
- }
48
-
49
- if(this.tester.width() >= limit) {
50
- upper = this.size-1;
51
- }
52
- else {
53
- lower = this.size+1;
54
- }
55
- }
56
-
57
- while(this.tester.width() > limit) {
58
- this.setSize(this.size-1);
59
- }
60
-
61
- return(this.size);
62
-
63
- }
64
- }
65
-
66
-
67
- (function( $ ){
68
- $.fn.widtherize = function( options ) {
69
- return this.each(function() {
70
- var settings = {
71
- 'width' : 500
72
- };
73
- if ( options ) {
74
- $.extend( settings, options );
75
- }
76
- r = new resizer();
77
- r.resize(jQuery(this), settings.width);
78
- });
79
- };
80
  })( jQuery );
1
+ function resizer() {
2
+ this.resize = function(element, size) {
3
+ this.init(element);
4
+ element.css('font-size', this.growTo(size) + 'px');
5
+ this.tester.remove();
6
+ }
7
+
8
+ this.init = function(element) {
9
+ jQuery('#resizeroo').remove();
10
+ this.tester = element.clone();
11
+ this.tester.css('display', 'none');
12
+ this.tester.css('position', 'absolute');
13
+ this.tester.css('height', 'auto');
14
+ this.tester.css('width', 'auto');
15
+ jQuery('body').append(this.tester);
16
+ this.size = 1;
17
+ this.tester.css('font-size', this.size + 'px');
18
+ }
19
+
20
+ this.emitWidth = function() {
21
+ console.log(this.tester.width());
22
+ }
23
+
24
+ this.grow = function() {
25
+ this.size++;
26
+ this.setSize();
27
+ }
28
+
29
+ this.setSize = function(size) {
30
+ this.size = size;
31
+ this.tester.css('font-size', this.size + 'px');
32
+ }
33
+
34
+ this.growTo = function(limit) {
35
+ lower = 1;
36
+ upper = limit-1;
37
+
38
+ // do binary search going midway to determine
39
+ // the best size
40
+ while( lower < upper ) {
41
+ midpoint = Math.ceil((upper+lower)/2);
42
+ this.setSize(midpoint);
43
+
44
+ if( Math.abs(limit - this.tester.width()) <= 1) {
45
+ // close enough
46
+ break
47
+ }
48
+
49
+ if(this.tester.width() >= limit) {
50
+ upper = this.size-1;
51
+ }
52
+ else {
53
+ lower = this.size+1;
54
+ }
55
+ }
56
+
57
+ while(this.tester.width() > limit) {
58
+ this.setSize(this.size-1);
59
+ }
60
+
61
+ return(this.size);
62
+
63
+ }
64
+ }
65
+
66
+
67
+ (function( $ ){
68
+ $.fn.widtherize = function( options ) {
69
+ return this.each(function() {
70
+ var settings = {
71
+ 'width' : 500
72
+ };
73
+ if ( options ) {
74
+ $.extend( settings, options );
75
+ }
76
+ r = new resizer();
77
+ r.resize(jQuery(this), settings.width);
78
+ });
79
+ };
80
  })( jQuery );
templates/super-slick/assets/js/poetry.js CHANGED
@@ -1,64 +1,64 @@
1
- function render() {
2
- $('#out').html('');
3
- var text = $('#in').val();
4
- lines = text.split('\n');
5
-
6
- for(i in lines) {
7
- var p = $('<p></p>');
8
- p.html(lines[i]);
9
- $('#out').append(p);
10
- }
11
- $('#out p').widtherize({'width': 600});
12
-
13
- var chars = $('#in').val().length;
14
- $('#count').html(chars);
15
- if(chars < 100) {
16
- $('#counter').hide();
17
- }
18
- else {
19
- $('#counter').show();
20
- }
21
-
22
- if(chars < 140) {
23
- $('#count').removeClass('invalid');
24
- $('#poemit').removeAttr('disabled');
25
-
26
- }
27
- else {
28
- $('#count').addClass('invalid');
29
- $('#poemit').attr('disabled', 'disabled');
30
- }
31
- }
32
-
33
- // takes the id of the textarea to render and the outdiv
34
- // to render it to
35
- function srender(textarea, outdiv, size) {
36
- input = $('#' + textarea);
37
- output = $('#' + outdiv);
38
- $('#' + outdiv + ' p').widtherize({'width': size});
39
- }
40
-
41
- function render_mini_verse(id) {
42
- srender('text_'+id, 'rendered_'+id, 300);
43
- }
44
-
45
- function render_minis(context) {
46
- context.each(function() {
47
- render_mini_verse(this.id);
48
- });
49
-
50
- // context.live('click', function() {
51
- // document.location.href = $('a', this)[0].href;
52
- // });
53
-
54
- context.live('mouseover mouseout', function(event) {
55
- if (event.type == 'mouseover') {
56
- $(this).addClass('hover');
57
- } else {
58
- $(this).removeClass('hover');
59
- }
60
- });
61
- }
62
-
63
- function init_counter() {
64
  }
1
+ function render() {
2
+ $('#out').html('');
3
+ var text = $('#in').val();
4
+ lines = text.split('\n');
5
+
6
+ for(i in lines) {
7
+ var p = $('<p></p>');
8
+ p.html(lines[i]);
9
+ $('#out').append(p);
10
+ }
11
+ $('#out p').widtherize({'width': 600});
12
+
13
+ var chars = $('#in').val().length;
14
+ $('#count').html(chars);
15
+ if(chars < 100) {
16
+ $('#counter').hide();
17
+ }
18
+ else {
19
+ $('#counter').show();
20
+ }
21
+
22
+ if(chars < 140) {
23
+ $('#count').removeClass('invalid');
24
+ $('#poemit').removeAttr('disabled');
25
+
26
+ }
27
+ else {
28
+ $('#count').addClass('invalid');
29
+ $('#poemit').attr('disabled', 'disabled');
30
+ }
31
+ }
32
+
33
+ // takes the id of the textarea to render and the outdiv
34
+ // to render it to
35
+ function srender(textarea, outdiv, size) {
36
+ input = $('#' + textarea);
37
+ output = $('#' + outdiv);
38
+ $('#' + outdiv + ' p').widtherize({'width': size});
39
+ }
40
+
41
+ function render_mini_verse(id) {
42
+ srender('text_'+id, 'rendered_'+id, 300);
43
+ }
44
+
45
+ function render_minis(context) {
46
+ context.each(function() {
47
+ render_mini_verse(this.id);
48
+ });
49
+
50
+ // context.live('click', function() {
51
+ // document.location.href = $('a', this)[0].href;
52
+ // });
53
+
54
+ context.live('mouseover mouseout', function(event) {
55
+ if (event.type == 'mouseover') {
56
+ $(this).addClass('hover');
57
+ } else {
58
+ $(this).removeClass('hover');
59
+ }
60
+ });
61
+ }
62
+
63
+ function init_counter() {
64
  }
templates/super-slick/config.php CHANGED
@@ -1,118 +1,118 @@
1
- <?php
2
- /**
3
- * Template Name: Super Slick Template
4
- * @package WordPress Landing Pages
5
- * @author David Wells
6
- */
7
-
8
- do_action('lp_global_config'); // global config action hook
9
-
10
- //gets template directory name to use as identifier - do not edit - include in all template files
11
- $key = lp_get_parent_directory(dirname(__FILE__));
12
-
13
- $lp_data[$key]['info'] =
14
- array(
15
- 'data_type' => 'template', // Template Data Type
16
- 'version' => "1.0.1", // Version Number
17
- 'label' => "Super Slick Template", // Nice Name
18
- 'category' => 'v1, 2 column layout', // Template Category
19
- 'demo' => 'http://demo.inboundnow.com/go/super-slick-lander-preview/', // Demo Link
20
- 'description' => 'SuperSlick is great for showcasing a hero image or video on your landing page.' // template description
21
- );
22
-
23
-
24
- // Define Meta Options for template
25
- // These values are returned in the template's index.php file with lp_get_value($post, $key, 'field-id') function
26
- $lp_data[$key]['settings'] =
27
- array(
28
- array(
29
- 'label' => 'Headline Text Color', // Label of field
30
- 'description' => "Use this setting to change the template's headline text color", // field description
31
- 'id' => 'headline-color', // metakey.
32
- 'type' => 'colorpicker', // text metafield type
33
- 'default' => '000000', // default content
34
- 'context' => 'normal' // Context in screen for organizing options
35
- ),
36
- array(
37
- 'label' => 'Sub Headline Text',
38
- 'description' => "Sub headline text goes here",
39
- 'id' => 'sub-headline',
40
- 'type' => 'text',
41
- 'default' => 'Sub Headline Goes Here',
42
- 'context' => 'normal'
43
- ),
44
- array(
45
- 'label' => 'Sub Headline Text Color',
46
- 'description' => "Sub Headline Text Color",
47
- 'id' => 'sub-headline-color',
48
- 'type' => 'colorpicker',
49
- 'default' => 'a3a3a3',
50
- 'context' => 'normal'
51
- ),
52
- array(
53
- 'label' => 'Top Main Background Color',
54
- 'description' => "Use this setting to change the template's body color",
55
- 'id' => 'top-color',
56
- 'type' => 'colorpicker',
57
- 'default' => 'ffffff',
58
- 'context' => 'normal'
59
- ),
60
- array(
61
- 'label' => 'Top Area Text Color',
62
- 'description' => "Use this setting to change the template's Top Text Color",
63
- 'id' => 'top-text-color',
64
- 'type' => 'colorpicker',
65
- 'default' => '000000',
66
- 'context' => 'normal'
67
- ),
68
- array(
69
- 'label' => 'Top Area Layout',
70
- 'description' => "Do you want the conversion/form area on the right or left?",
71
- 'id' => 'form-placement',
72
- 'type' => 'dropdown',
73
- 'default' => 'left',
74
- 'options' => array('left'=>'Form on left', 'right'=>'Form on right'),
75
- 'context' => 'normal'
76
- ),
77
- array(
78
- 'label' => 'Submit Button Background Color',
79
- 'description' => "Submit Button Background Color",
80
- 'id' => 'submit-button-color',
81
- 'type' => 'colorpicker',
82
- 'default' => '5baa1e',
83
- 'context' => 'normal'
84
- ),
85
- array(
86
- 'label' => "Bottom Area Content",
87
- 'description' => "This is the content in the bottom of the page",
88
- 'id' => 'wysiwyg-content',
89
- 'type' => 'wysiwyg',
90
- 'default' => 'This is the bottom area text',
91
- 'context' => 'normal'
92
- ),
93
- array(
94
- 'label' => 'Bottom Text Color',
95
- 'description' => "Bottom Text Color",
96
- 'id' => 'bottom-text-color',
97
- 'type' => 'colorpicker',
98
- 'default' => '000000',
99
- 'context' => 'normal'
100
- ),
101
- array(
102
- 'label' => 'Bottom Background Color',
103
- 'description' => "Bottom Background Color",
104
- 'id' => 'bottom-color',
105
- 'type' => 'colorpicker',
106
- 'default' => 'ffffff',
107
- 'context' => 'normal'
108
- ),
109
- array(
110
- 'label' => 'Display Social Media Share Buttons',
111
- 'description' => "Display Social Media Share Buttons",
112
- 'id' => 'display-social',
113
- 'type' => 'radio',
114
- 'default' => '0',
115
- 'options' => array('1' => 'on','0'=>'off'),
116
- 'context' => 'normal'
117
- )
118
  );
1
+ <?php
2
+ /**
3
+ * Template Name: Super Slick Template
4
+ * @package WordPress Landing Pages
5
+ * @author David Wells
6
+ */
7
+
8
+ do_action('lp_global_config'); // global config action hook
9
+
10
+ //gets template directory name to use as identifier - do not edit - include in all template files
11
+ $key = lp_get_parent_directory(dirname(__FILE__));
12
+
13
+ $lp_data[$key]['info'] =
14
+ array(
15
+ 'data_type' => 'template', // Template Data Type
16
+ 'version' => "1.0.1", // Version Number
17
+ 'label' => "Super Slick Template", // Nice Name
18
+ 'category' => 'v1, 2 column layout', // Template Category
19
+ 'demo' => 'http://demo.inboundnow.com/go/super-slick-lander-preview/', // Demo Link
20
+ 'description' => 'SuperSlick is great for showcasing a hero image or video on your landing page.' // template description
21
+ );
22
+
23
+
24
+ // Define Meta Options for template
25
+ // These values are returned in the template's index.php file with lp_get_value($post, $key, 'field-id') function
26
+ $lp_data[$key]['settings'] =
27
+ array(
28
+ array(
29
+ 'label' => 'Headline Text Color', // Label of field
30
+ 'description' => "Use this setting to change the template's headline text color", // field description
31
+ 'id' => 'headline-color', // metakey.
32
+ 'type' => 'colorpicker', // text metafield type
33
+ 'default' => '000000', // default content
34
+ 'context' => 'normal' // Context in screen for organizing options
35
+ ),
36
+ array(
37
+ 'label' => 'Sub Headline Text',
38
+ 'description' => "Sub headline text goes here",
39
+ 'id' => 'sub-headline',
40
+ 'type' => 'text',
41
+ 'default' => 'Sub Headline Goes Here',
42
+ 'context' => 'normal'
43
+ ),
44
+ array(
45
+ 'label' => 'Sub Headline Text Color',
46
+ 'description' => "Sub Headline Text Color",
47
+ 'id' => 'sub-headline-color',
48
+ 'type' => 'colorpicker',
49
+ 'default' => 'a3a3a3',
50
+ 'context' => 'normal'
51
+ ),
52
+ array(
53
+ 'label' => 'Top Main Background Color',
54
+ 'description' => "Use this setting to change the template's body color",
55
+ 'id' => 'top-color',
56
+ 'type' => 'colorpicker',
57
+ 'default' => 'ffffff',
58
+ 'context' => 'normal'
59
+ ),
60
+ array(
61
+ 'label' => 'Top Area Text Color',
62
+ 'description' => "Use this setting to change the template's Top Text Color",
63
+ 'id' => 'top-text-color',
64
+ 'type' => 'colorpicker',
65
+ 'default' => '000000',
66
+ 'context' => 'normal'
67
+ ),
68
+ array(
69
+ 'label' => 'Top Area Layout',
70
+ 'description' => "Do you want the conversion/form area on the right or left?",
71
+ 'id' => 'form-placement',
72
+ 'type' => 'dropdown',
73
+ 'default' => 'left',
74
+ 'options' => array('left'=>'Form on left', 'right'=>'Form on right'),
75
+ 'context' => 'normal'
76
+ ),
77
+ array(
78
+ 'label' => 'Submit Button Background Color',
79
+ 'description' => "Submit Button Background Color",
80
+ 'id' => 'submit-button-color',
81
+ 'type' => 'colorpicker',
82
+ 'default' => '5baa1e',
83
+ 'context' => 'normal'
84
+ ),
85
+ array(
86
+ 'label' => "Bottom Area Content",
87
+ 'description' => "This is the content in the bottom of the page",
88
+ 'id' => 'wysiwyg-content',
89
+ 'type' => 'wysiwyg',
90
+ 'default' => 'This is the bottom area text',
91
+ 'context' => 'normal'
92
+ ),
93
+ array(
94
+ 'label' => 'Bottom Text Color',
95
+ 'description' => "Bottom Text Color",
96
+ 'id' => 'bottom-text-color',
97
+ 'type' => 'colorpicker',
98
+ 'default' => '000000',
99
+ 'context' => 'normal'
100
+ ),
101
+ array(
102
+ 'label' => 'Bottom Background Color',
103
+ 'description' => "Bottom Background Color",
104
+ 'id' => 'bottom-color',
105
+ 'type' => 'colorpicker',
106
+ 'default' => 'ffffff',
107
+ 'context' => 'normal'
108
+ ),
109
+ array(
110
+ 'label' => 'Display Social Media Share Buttons',
111
+ 'description' => "Display Social Media Share Buttons",
112
+ 'id' => 'display-social',
113
+ 'type' => 'radio',
114
+ 'default' => '0',
115
+ 'options' => array('1' => 'on','0'=>'off'),
116
+ 'context' => 'normal'
117
+ )
118
  );
templates/super-slick/index.php CHANGED
@@ -1,235 +1,235 @@
1
- <?php
2
- /*****************************************/
3
- // Template Title: Super Slick
4
- // Plugin: Landing Pages - Inboundnow.com
5
- /*****************************************/
6
-
7
- /* Include Sharrreme Library */
8
- include_once(LANDINGPAGES_PATH.'libraries/library.shareme.php');
9
-
10
- /* Declare Template Key */
11
- $key = lp_get_parent_directory(dirname(__FILE__));
12
- $path = LANDINGPAGES_URLPATH.'templates/'.$key.'/';
13
- $url = plugins_url();
14
- /* Define Landing Pages's custom pre-load hook for 3rd party plugin integration */
15
- do_action('lp_init');
16
-
17
- /* Load Regular WordPress $post data and start the loop */
18
- if (have_posts()) : while (have_posts()) : the_post();
19
-
20
- /**
21
- * Step 2: Pre-load meta data into variables.
22
- * - These are defined in this templates config.php file
23
- * - The config.php values create the metaboxes visible to the user.
24
- * - We define those meta-keys here to use them in the template.
25
- */
26
- //prepare content
27
- $content = lp_content_area($post,null,true);
28
- $headline_color = lp_get_value($post, $key, 'headline-color');
29
- $sub_headline_color = lp_get_value($post, $key, 'sub-headline-color');
30
- $sub_headline = lp_get_value($post, $key, 'sub-headline');
31
- $top_color = lp_get_value($post, $key, 'top-color');
32
- $top_text_color = lp_get_value($post, $key, 'top-text-color');
33
- $bottom_text_color = lp_get_value($post, $key, 'bottom-text-color');
34
- $bottom_color = lp_get_value($post, $key, 'bottom-color');
35
- $bottom_content = lp_get_value($post, $key, 'wysiwyg-content');
36
- $form_placement = lp_get_value($post, $key, 'form-placement');
37
- $social_display = lp_get_value($post, $key, 'display-social');
38
- $submit_button_color = lp_get_value($post, $key, 'submit-button-color');
39
-
40
- // Convert Hex to RGB Value for submit button
41
- function Hex_2_RGB($hex) {
42
- $hex = preg_replace("/#/", "", $hex);
43
- $color = array();
44
-
45
- if(strlen($hex) == 3) {
46
- $color['r'] = hexdec(substr($hex, 0, 1) . $r);
47
- $color['g'] = hexdec(substr($hex, 1, 1) . $g);
48
- $color['b'] = hexdec(substr($hex, 2, 1) . $b);
49
- }
50
- else if(strlen($hex) == 6) {
51
- $color['r'] = hexdec(substr($hex, 0, 2));
52
- $color['g'] = hexdec(substr($hex, 2, 2));
53
- $color['b'] = hexdec(substr($hex, 4, 2));
54
- }
55
-
56
- return $color;
57
-
58
- }
59
- $RBG_array = Hex_2_RGB($submit_button_color);
60
- $red = $RBG_array['r'];
61
- $green = $RBG_array["g"];
62
- $blue = $RBG_array["b"];
63
-
64
- ?>
65
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
66
- <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US"><head profile="http://gmpg.org/xfn/11"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
67
-
68
- <title><?php wp_title(); ?></title>
69
- <?php /* Load all functions hooked to lp_head including global js and global css */
70
- wp_head(); // Load Regular WP Head
71
- do_action('lp_head'); // Load Custom Landing Page Specific Header Items
72
- ?>
73
-
74
- <link rel="stylesheet" href="<?php echo $path; ?>assets/css/style.css" type="text/css" media="screen">
75
-
76
- <link rel="stylesheet" id="farbtastic-css" href="<?php echo $path; ?>assets/css/farbtastic.css" type="text/css" media="all">
77
- <style type="text/css">
78
- .recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}
79
- #logotopend { width: 940px;}
80
- <?php if ($top_color !="") {
81
- echo "#body_wrapper {background-color: #$top_color;} #footer h1 {border-bottom: 1px solid #$top_color;}"; }?>
82
- <?php if ($top_text_color !="") {
83
- echo "#slideshow-inner {color: #$top_text_color;}"; }?>
84
- <?php if ($headline_color !="") {
85
- // change headline color
86
- echo"h1 {color: #$headline_color;}"; } ?>
87
- <?php if ($sub_headline_color !="") {
88
- echo"#tagline {color: #$sub_headline_color;} #header {border-bottom: 1px solid #$sub_headline_color;}"; // change tagline color
89
- }
90
- ?>
91
-
92
-
93
- <?php if ($form_placement==="right") { echo"#slideshow-inleft {float: right;} #slideshow1 {float: left;}";}?>
94
-
95
- <?php if ($submit_button_color != "") {
96
- echo"input[type='submit'] {
97
- background: -moz-linear-gradient(rgba($red,$green,$blue, 0.5), rgba($red,$green,$blue, 0.7));
98
- background: -ms-linear-gradient(rgba($red,$green,$blue, 0.5), rgba($red,$green,$blue, 0.7));
99
- background: -o-linear-gradient(rgba($red,$green,$blue, 0.5), rgba($red,$green,$blue, 0.7));
100
- background: -webkit-gradient(linear, 0 0, 0 100%, from(rgba($red,$green,$blue, 0.5)), to(rgba($red,$green,$blue, 0.7)));
101
- background: -webkit-linear-gradient(rgba($red,$green,$blue, 0.5), rgba($red,$green,$blue, 0.7));
102
- background: linear-gradient(rgba($red,$green,$blue, 0.5), rgba($red,$green,$blue, 0.7));}";
103
- }?>
104
- <?php if ($bottom_text_color !="") {
105
- // change bottom text color
106
- echo"#footer {color: #$bottom_text_color;}"; } ?>
107
- <?php if ($bottom_color !="") {
108
- // Change Body BG color
109
- echo "body, #footer-outside {background-color: #$bottom_color;}"; } ?>
110
- </style>
111
- <!--
112
- -->
113
- <script src="<?php echo $path; ?>assets/js/jquery.widtherize.js"></script>
114
- <script src="<?php echo $path; ?>assets/js/poetry.js"></script>
115
-
116
- <script>
117
- jQuery(document).ready(
118
- function() {
119
- render_minis(jQuery('.mini_verse'));
120
- jQuery('#hi p').widtherize({'width': 200});
121
- jQuery('#logotopend h1').widtherize({'width': 980});
122
-
123
- var lineheight = parseInt(jQuery('#logotopend h1').css("font-size"));
124
- var newlineheight = lineheight * .851;
125
- jQuery('#logotopend h1').css("line-height", newlineheight + "px" );
126
- var newfontsize = lineheight * .766;
127
- jQuery('#tagline').css("font-size", newfontsize + "px");
128
-
129
- }
130
- );
131
- </script>
132
- </head>
133
-
134
- <body class="home blog slick-lander">
135
- <div id="body_wrapper">
136
- <div id="header">
137
-
138
-
139
- <div class="social">
140
-
141
- <div class="social-icon-rss">
142
- <a href="http://wp-themes.com/?feed=rss2"></a>
143
- </div>
144
-
145
-
146
-
147
-
148
- </div>
149
-
150
- <div id="logotopend"><h1><?php lp_main_headline(); ?></h1>
151
- </div>
152
- <div id="tagline"><?php echo $sub_headline;?></div>
153
-
154
- </div>
155
-
156
-
157
-
158
- <div id="slideshow-inner">
159
-
160
- <div id="slideshow-inleft">
161
-
162
- <?php lp_conversion_area(); /* echos out form/conversion area content */ ?>
163
-
164
- </div>
165
- <div id="slideshow1">
166
-
167
- <div id="slideshow-inright">
168
-
169
- <?php if ($content != "") {
170
- echo $content;
171
- }
172
- else {
173
- echo "<img src='/wp-content/plugins/landing-pages/templates/super-slick/assets/images/placeholder-hero.png'>";
174
- } ?>
175
-
176
- </div>
177
- </div>
178
- <?php if ($social_display==="1" ) { // Show Social Media Icons?>
179
- <?php lp_social_media(); // print out social media buttons?>
180
- <style type="text/css">
181
- #lp-social-buttons {clear: both;
182
- margin: auto;
183
- width: 460px;}
184
- #lp-social-buttons {width: 517px;
185
- margin: auto;
186
- }
187
- .sharrre .googleplus {
188
- width: 90px !important;
189
- }
190
- .sharrre .pinterest {
191
- width: 75px !important;
192
- }
193
- .twitter {
194
- width: 111px;
195
- }
196
- .sharrre .button {
197
- width: 106px;}
198
- .linkedin {
199
- margin-right: -14px;}
200
- #slideshow-inner {
201
- margin-left: auto;
202
- margin-right: auto;
203
- padding-top: 15px;
204
- width: 960px;
205
- padding-bottom: 10px;
206
- }
207
- </style>
208
- <?php } ?>
209
-
210
- </div>
211
-
212
- </div> <!-- end body_wrapper -->
213
-
214
-
215
- <div id="footer-outside" class="slick-footer">
216
-
217
- <div id="footer">
218
-
219
- <div id="bottom-content">
220
- <?php echo wpautop($bottom_content);?>
221
- </div> <!-- end bottom-content -->
222
-
223
- </div> <!-- end footer -->
224
-
225
- </div> <!-- end footer-outside -->
226
-
227
-
228
- <?php
229
- break; endwhile; endif; // End wordpress loop
230
-
231
- do_action('lp_footer');
232
- wp_footer();
233
- ?>
234
-
235
  </body></html>
1
+ <?php
2
+ /*****************************************/
3
+ // Template Title: Super Slick
4
+ // Plugin: Landing Pages - Inboundnow.com
5
+ /*****************************************/
6
+
7
+ /* Include Sharrreme Library */
8
+ include_once(LANDINGPAGES_PATH.'libraries/library.shareme.php');
9
+
10
+ /* Declare Template Key */
11
+ $key = lp_get_parent_directory(dirname(__FILE__));
12
+ $path = LANDINGPAGES_URLPATH.'templates/'.$key.'/';
13
+ $url = plugins_url();
14
+ /* Define Landing Pages's custom pre-load hook for 3rd party plugin integration */
15
+ do_action('lp_init');
16
+
17
+ /* Load Regular WordPress $post data and start the loop */
18
+ if (have_posts()) : while (have_posts()) : the_post();
19
+
20
+ /**
21
+ * Step 2: Pre-load meta data into variables.
22
+ * - These are defined in this templates config.php file
23
+ * - The config.php values create the metaboxes visible to the user.
24
+ * - We define those meta-keys here to use them in the template.
25
+ */
26
+ //prepare content
27
+ $content = lp_content_area($post,null,true);
28
+ $headline_color = lp_get_value($post, $key, 'headline-color');
29
+ $sub_headline_color = lp_get_value($post, $key, 'sub-headline-color');
30
+ $sub_headline = lp_get_value($post, $key, 'sub-headline');
31
+ $top_color = lp_get_value($post, $key, 'top-color');
32
+ $top_text_color = lp_get_value($post, $key, 'top-text-color');
33
+ $bottom_text_color = lp_get_value($post, $key, 'bottom-text-color');
34
+ $bottom_color = lp_get_value($post, $key, 'bottom-color');
35
+ $bottom_content = lp_get_value($post, $key, 'wysiwyg-content');
36
+ $form_placement = lp_get_value($post, $key, 'form-placement');
37
+ $social_display = lp_get_value($post, $key, 'display-social');
38
+ $submit_button_color = lp_get_value($post, $key, 'submit-button-color');
39
+
40
+ // Convert Hex to RGB Value for submit button
41
+ function Hex_2_RGB($hex) {
42
+ $hex = preg_replace("/#/", "", $hex);
43
+ $color = array();
44
+
45
+ if(strlen($hex) == 3) {
46
+ $color['r'] = hexdec(substr($hex, 0, 1) . $r);
47
+ $color['g'] = hexdec(substr($hex, 1, 1) . $g);
48
+ $color['b'] = hexdec(substr($hex, 2, 1) . $b);
49
+ }
50
+ else if(strlen($hex) == 6) {
51
+ $color['r'] = hexdec(substr($hex, 0, 2));
52
+ $color['g'] = hexdec(substr($hex, 2, 2));
53
+ $color['b'] = hexdec(substr($hex, 4, 2));
54
+ }
55
+
56
+ return $color;
57
+
58
+ }
59
+ $RBG_array = Hex_2_RGB($submit_button_color);
60
+ $red = $RBG_array['r'];
61
+ $green = $RBG_array["g"];
62
+ $blue = $RBG_array["b"];
63
+
64
+ ?>
65
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
66
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US"><head profile="http://gmpg.org/xfn/11"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
67
+
68
+ <title><?php wp_title(); ?></title>
69
+ <?php /* Load all functions hooked to lp_head including global js and global css */
70
+ wp_head(); // Load Regular WP Head
71
+ do_action('lp_head'); // Load Custom Landing Page Specific Header Items
72
+ ?>
73
+
74
+ <link rel="stylesheet" href="<?php echo $path; ?>assets/css/style.css" type="text/css" media="screen">
75
+
76
+ <link rel="stylesheet" id="farbtastic-css" href="<?php echo $path; ?>assets/css/farbtastic.css" type="text/css" media="all">
77
+ <style type="text/css">
78
+ .recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}
79
+ #logotopend { width: 940px;}
80
+ <?php if ($top_color !="") {
81
+ echo "#body_wrapper {background-color: #$top_color;} #footer h1 {border-bottom: 1px solid #$top_color;}"; }?>
82
+ <?php if ($top_text_color !="") {
83
+ echo "#slideshow-inner {color: #$top_text_color;}"; }?>
84
+ <?php if ($headline_color !="") {
85
+ // change headline color
86
+ echo"h1 {color: #$headline_color;}"; } ?>
87
+ <?php if ($sub_headline_color !="") {
88
+ echo"#tagline {color: #$sub_headline_color;} #header {border-bottom: 1px solid #$sub_headline_color;}"; // change tagline color
89
+ }
90
+ ?>
91
+
92
+
93
+ <?php if ($form_placement==="right") { echo"#slideshow-inleft {float: right;} #slideshow1 {float: left;}";}?>
94
+
95
+ <?php if ($submit_button_color != "") {
96
+ echo"input[type='submit'] {
97
+ background: -moz-linear-gradient(rgba($red,$green,$blue, 0.5), rgba($red,$green,$blue, 0.7));
98
+ background: -ms-linear-gradient(rgba($red,$green,$blue, 0.5), rgba($red,$green,$blue, 0.7));
99
+ background: -o-linear-gradient(rgba($red,$green,$blue, 0.5), rgba($red,$green,$blue, 0.7));
100
+ background: -webkit-gradient(linear, 0 0, 0 100%, from(rgba($red,$green,$blue, 0.5)), to(rgba($red,$green,$blue, 0.7)));
101
+ background: -webkit-linear-gradient(rgba($red,$green,$blue, 0.5), rgba($red,$green,$blue, 0.7));
102
+ background: linear-gradient(rgba($red,$green,$blue, 0.5), rgba($red,$green,$blue, 0.7));}";
103
+ }?>
104
+ <?php if ($bottom_text_color !="") {
105
+ // change bottom text color
106
+ echo"#footer {color: #$bottom_text_color;}"; } ?>
107
+ <?php if ($bottom_color !="") {
108
+ // Change Body BG color
109
+ echo "body, #footer-outside {background-color: #$bottom_color;}"; } ?>
110
+ </style>
111
+ <!--
112
+ -->
113
+ <script src="<?php echo $path; ?>assets/js/jquery.widtherize.js"></script>
114
+ <script src="<?php echo $path; ?>assets/js/poetry.js"></script>
115
+
116
+ <script>
117
+ jQuery(document).ready(
118
+ function() {
119
+ render_minis(jQuery('.mini_verse'));
120
+ jQuery('#hi p').widtherize({'width': 200});
121
+ jQuery('#logotopend h1').widtherize({'width': 980});
122
+
123
+ var lineheight = parseInt(jQuery('#logotopend h1').css("font-size"));
124
+ var newlineheight = lineheight * .851;
125
+ jQuery('#logotopend h1').css("line-height", newlineheight + "px" );
126
+ var newfontsize = lineheight * .766;
127
+ jQuery('#tagline').css("font-size", newfontsize + "px");
128
+
129
+ }
130
+ );
131
+ </script>
132
+ </head>
133
+
134
+ <body class="home blog slick-lander">
135
+ <div id="body_wrapper">
136
+ <div id="header">
137
+
138
+
139
+ <div class="social">
140
+
141
+ <div class="social-icon-rss">
142
+ <a href="http://wp-themes.com/?feed=rss2"></a>
143
+ </div>
144
+
145
+
146
+
147
+
148
+ </div>
149
+
150
+ <div id="logotopend"><h1><?php lp_main_headline(); ?></h1>
151
+ </div>
152
+ <div id="tagline"><?php echo $sub_headline;?></div>
153
+
154
+ </div>
155
+
156
+
157
+
158
+ <div id="slideshow-inner">
159
+
160
+ <div id="slideshow-inleft">
161
+
162
+ <?php lp_conversion_area(); /* echos out form/conversion area content */ ?>
163
+
164
+ </div>
165
+ <div id="slideshow1">
166
+
167
+ <div id="slideshow-inright">
168
+
169
+ <?php if ($content != "") {
170
+ echo $content;
171
+ }
172
+ else {
173
+ echo "<img src='/wp-content/plugins/landing-pages/templates/super-slick/assets/images/placeholder-hero.png'>";
174
+ } ?>
175
+
176
+ </div>
177
+ </div>
178
+ <?php if ($social_display==="1" ) { // Show Social Media Icons?>
179
+ <?php lp_social_media(); // print out social media buttons?>
180
+ <style type="text/css">
181
+ #lp-social-buttons {clear: both;
182
+ margin: auto;
183
+ width: 460px;}
184
+ #lp-social-buttons {width: 517px;
185
+ margin: auto;
186
+ }
187
+ .sharrre .googleplus {
188
+ width: 90px !important;
189
+ }
190
+ .sharrre .pinterest {
191
+ width: 75px !important;
192
+ }
193
+ .twitter {
194
+ width: 111px;
195
+ }
196
+ .sharrre .button {
197
+ width: 106px;}
198
+ .linkedin {
199
+ margin-right: -14px;}
200
+ #slideshow-inner {
201
+ margin-left: auto;
202
+ margin-right: auto;
203
+ padding-top: 15px;
204
+ width: 960px;
205
+ padding-bottom: 10px;
206
+ }
207
+ </style>
208
+ <?php } ?>
209
+
210
+ </div>
211
+
212
+ </div> <!-- end body_wrapper -->
213
+
214
+
215
+ <div id="footer-outside" class="slick-footer">
216
+
217
+ <div id="footer">
218
+
219
+ <div id="bottom-content">
220
+ <?php echo wpautop($bottom_content);?>
221
+ </div> <!-- end bottom-content -->
222
+
223
+ </div> <!-- end footer -->
224
+
225
+ </div> <!-- end footer-outside -->
226
+
227
+
228
+ <?php
229
+ break; endwhile; endif; // End wordpress loop
230
+
231
+ do_action('lp_footer');
232
+ wp_footer();
233
+ ?>
234
+
235
  </body></html>