WordPress Landing Pages - Version 2.1.9

Version Description

  • UI improvements
  • Quality Control improvements / debug
  • 301 instead of 302 when only one variation present
Download this release

Release Info

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

Code changes from version 2.1.8 to 2.1.9

assets/css/admin-ab-testing.css CHANGED
@@ -1 +1,311 @@
1
- /******************************************************* ab testing admin css */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /******************************************************* ab testing admin css */
2
+
3
+
4
+ .nav-tab-special-inactive
5
+ {
6
+ border-color: #DFDFDF #DFDFDF #FFFFFF;
7
+ border-top-left-radius: 3px;
8
+ border-top-right-radius: 3px;
9
+ border-width: 1px 1px 0;
10
+ color: #AAAAAA;
11
+ display: inline-block;
12
+ font-size: 12px;
13
+ line-height: 16px;
14
+ margin: 0 6px -1px 0;
15
+ padding: 4px 14px 6px;
16
+ text-decoration: none;
17
+ text-shadow: 0 1px 0 #FFFFFF;
18
+ cursor:pointer;
19
+ }
20
+
21
+ .nav-tab-special-active
22
+ {
23
+
24
+ border-top-left-radius: 3px;
25
+ border-top-right-radius: 3px;
26
+ border-width: 1px 1px 1px;
27
+ border-bottom: 0px;
28
+ color: #000;
29
+ display: inline-block;
30
+ font-size: 12px;
31
+ line-height: 16px;
32
+ margin: 0 6px -1px 0;
33
+ padding: 4px 14px 6px;
34
+ text-decoration: none;
35
+ text-shadow: 0 1px 0 #FFFFFF;
36
+ cursor:pointer;
37
+ background: rgba(241,241,241, 1) !important;
38
+
39
+
40
+ }
41
+ h2.nav-tab-wrapper.a_b_tabs .nav-tab {
42
+ padding: 6px 14px;
43
+ font-weight: 700;
44
+ font-size: 17px;
45
+ line-height: 24px;
46
+ }
47
+ .variation-off .bab-stat-control-pause, .variation-on .bab-stat-control-play, .variation-off .pause-sep,.variation-on .play-sep, .variation-on .is-paused{
48
+ display: none;
49
+ }
50
+ .bab-stat-control-container {
51
+
52
+ bottom: 0px;
53
+ left: 0px;
54
+ }
55
+ .bab-stat-control-container:hover {
56
+
57
+ bottom: 0px;
58
+ left: 0px;
59
+ display: block;
60
+ }
61
+ .bab-variation-row {
62
+ position: relative;
63
+ //margin-bottom: -27px;
64
+ //-moz-transition: all .4s ease-in-out;
65
+ //-webkit-transition: all .4s ease-in-out;
66
+ //-o-transition: all .4s ease-in-out;
67
+ //transition: all .4s ease-in-out;
68
+ }
69
+
70
+ .bab-variation-row:last-child {
71
+ margin-bottom: 0px;
72
+ }
73
+ .bab-variation-row:hover {
74
+ margin-bottom: 0px;
75
+ //-moz-transition: all .4s ease-in-out;
76
+ //-webkit-transition: all .4s ease-in-out;
77
+ //-o-transition: all .4s ease-in-out;
78
+ //transition: all .4s ease-in-out;
79
+
80
+ }
81
+ .bab-stat-control-container span {
82
+ vertical-align: bottom;
83
+ display: inline-block;
84
+ }
85
+ .bab-stat-seperator {
86
+ padding-left: 3px;
87
+ padding-right: 3px;
88
+ font-size: 0px;
89
+ }
90
+ .variation-on .bab-stat-control-pause a {
91
+ color: red;
92
+ font-weight: bold;
93
+ }
94
+ .variation-off .bab-number-box {
95
+ color: rgb(117, 117, 117);
96
+ }
97
+ .is-paused { font-size: 10px;
98
+ font-style: italic;
99
+ color: red;
100
+ opacity: .8;
101
+ padding-left: 10px;
102
+ }
103
+ .variation-off .bab-stat-control-play a {
104
+ color: green;
105
+ font-weight: bold;
106
+ }
107
+ .variation-off .bab-varation-header {
108
+ font-weight: normal;
109
+ }
110
+ .lp-tab-display
111
+ {
112
+ padding:13px;
113
+ }
114
+
115
+ .lp-tab-display td
116
+ {
117
+ padding:10px;
118
+ }
119
+ .lp-tab-display th
120
+ {
121
+ padding:10px;
122
+ }
123
+
124
+ .lp-tab-display th,.lp-tab-display .lp-gs-th
125
+ {
126
+ width:300px;
127
+ font-size: 14px;
128
+ font-weight:300px;
129
+ text-align:left;
130
+ }
131
+
132
+
133
+ /* Begin with quick stats! */
134
+
135
+ .bab-stat-letter {
136
+ border-radius: 3px;
137
+ border-style:solid;
138
+ border-width:1px;
139
+ padding:2px;
140
+ }
141
+
142
+ .bab-stat-container-conversions, .bab-stat-container-impressions, .bab-stat-container-conversion_rate {
143
+ display:inline;
144
+ }
145
+
146
+ #a-b-testing {
147
+ padding: 0px;
148
+ }
149
+ .lp-delete-var-stats {
150
+ cursor: pointer;
151
+ }
152
+ #lp_ab_display_stats_metabox .inside {
153
+ padding: 0px;
154
+ margin-top: 0px;
155
+ }
156
+ #lp_ab_display_stats_metabox h3.hndle {
157
+ border-bottom: none !important;
158
+ }
159
+
160
+ /* --- UI improvement style added by Ahmed Kaludi ( http://AhmedKaludi.com ) - START --- */
161
+ .settings_icon{
162
+ top: 12px;
163
+ }
164
+ .settings_wrapper{ display: none }
165
+ .settings_icon:hover + .settings_wrapper,
166
+ .settings_wrapper:hover{
167
+ display: block;
168
+ position: absolute;
169
+ background: #fff;
170
+ padding: 15px 10px 10px 10px;
171
+ right: 0;
172
+ float: right;
173
+ z-index: 999;
174
+ margin-top: -2px;
175
+ border-color: rgb(204, 204, 204);
176
+ box-shadow: 0px 0px 8px 0px rgba(51, 51, 51, 0.4);
177
+ border-radius: 2px;
178
+ border: 1px solid #cccccc;
179
+ width: 128px
180
+ }
181
+ .settings_icon{
182
+ background: url(../images/ab-retina-icons.png) no-repeat;
183
+ width: 17px;
184
+ height: 21px;
185
+ display: inline-block;
186
+ background-position: 0px -34px;
187
+ content: "";
188
+ background-size: 250px;
189
+ padding-right: 10px;
190
+ padding-bottom: 10px;
191
+ position: absolute;
192
+ right: 15px;
193
+ opacity: 0.4;
194
+ }
195
+ .settings_wrapper_heading{
196
+ font-size: 10px;
197
+ color: #999999;
198
+ text-transform: uppercase;
199
+ letter-spacing: 0.65px;
200
+ font-weight: normal;
201
+ width: 100%;
202
+ text-align: center;
203
+ display: inline-block;
204
+ }
205
+ .settings_list_li a, .lp-delete-var-stats{
206
+ font-size: 13px;
207
+ color: #333333;
208
+ text-decoration: none;
209
+ letter-spacing: 0.5px;
210
+ font-weight: normal;
211
+ padding-left: 15px;
212
+ }
213
+ .settings_list_li li a:before, .settings_list_li .settings_clearstat:before{
214
+ background: url(../images/ab-retina-icons.png) no-repeat;
215
+ width: 15px;
216
+ position: absolute;
217
+ height: 15px;
218
+ display: inline-block;
219
+ background-position: -5px -70px;
220
+ content: "";
221
+ background-size: 250px;
222
+ padding-right: 0px;
223
+ padding-bottom: 0px;
224
+ opacity: 0.4;
225
+ left: 20px;
226
+ margin-top: 0px;
227
+ }
228
+ .settings_list_li{
229
+ margin-left: 17px;
230
+ margin-bottom: 13px;
231
+ margin-top: 18px;
232
+ }
233
+ .settings_list_li li{
234
+ margin-bottom: 16px
235
+ }
236
+ .settings_preview a:before{
237
+ background-position: -5px -97px !important;
238
+ }
239
+ .settings_clone a:before{
240
+ background-position: -5px -124px !important;
241
+ height: 17px !important;
242
+ width: 17px !important;
243
+ }
244
+
245
+ .settings_delete a:before{
246
+ background-position: -3px -155px !important;
247
+ }
248
+ .settings_clearstat:before{
249
+ background-position: -3px -183px !important;
250
+ }
251
+ .settings_list_li a:hover{
252
+ color: #000
253
+ }
254
+ #wpbody .bab-varation-header{
255
+ font-size: 14px;
256
+ font-weight: normal;
257
+ color: #000;
258
+ padding-left: 18px !important;
259
+ }
260
+ .bab-stat-letter {
261
+ border-radius: 0px;
262
+ border-style: solid;
263
+ border-width: 0px;
264
+ padding: 0px;
265
+ background: none !important;
266
+ font-weight: bold;
267
+ }
268
+ .bab-stat-control-pause a:before{
269
+ background: url(../images/ab-retina-icons.png) no-repeat;
270
+ width: 15px;
271
+ position: absolute;
272
+ height: 15px;
273
+ display: inline-block;
274
+ background-position: -5px -5px;
275
+ content: "";
276
+ background-size: 250px;
277
+ padding-right: 0px;
278
+ padding-bottom: 0px;
279
+ opacity: 0.6;
280
+ right: 55px;
281
+ margin-top: 0px;
282
+ }
283
+
284
+ .bab-stat-control-play a:before{
285
+ background: url(../images/ab-retina-icons.png) no-repeat;
286
+ width: 15px;
287
+ position: absolute;
288
+ height: 15px;
289
+ display: inline-block;
290
+ background-position:-5px -212px;
291
+ content: "";
292
+ background-size: 250px;
293
+ padding-right: 0px;
294
+ padding-bottom: 0px;
295
+ right: 55px;
296
+ margin-top: 0px;
297
+ }
298
+ .variation-off{
299
+
300
+ }
301
+ .bab-stat-control-play a:before{
302
+ }
303
+ #wpbody .bab-varation-header {
304
+ line-height: 1;
305
+ background-color: #ededed;
306
+ border-color: #dddddd;
307
+ padding: 15px 5px;
308
+ border-bottom: 0px solid #dddddd;
309
+ border-top: 1px solid #D2D1D1;
310
+ }
311
+ /* --- UI improvement style added by Ahmed Kaludi ( http://AhmedKaludi.com ) - END --- */
assets/css/admin-post-edit.css CHANGED
@@ -64,7 +64,7 @@ body.modal-open {
64
  min-width: 320px;
65
  }
66
 
67
- .lp-delete-var-stats, .lp-clear-success {
68
  color: red;
69
  opacity: .7;
70
  font-size: 9px;
64
  min-width: 320px;
65
  }
66
 
67
+ .lp-clear-success {
68
  color: red;
69
  opacity: .7;
70
  font-size: 9px;
assets/css/admin/content-stats.css CHANGED
@@ -3,14 +3,14 @@
3
  font-size: 12px;
4
  margin-bottom: 10px;
5
  text-align: left;
6
- border: 1px solid #CECDCA;
7
 
8
  border-top: none;
9
  border-left: none;
 
10
 
11
  -webkit-box-shadow: 0px 0px 15px rgba(0,0,0,0.1);
12
  -moz-box-shadow: 0px 0px 15px rgba(0,0,0,0.1);
13
- box-shadow: 0px 0px 15px rgba(0,0,0,0.1);
14
  z-index: 200;
15
  width: 100%;
16
  }
@@ -19,23 +19,20 @@
19
  }
20
  .bab-number-box
21
  {
22
- background: transparent;
23
- border-bottom: 1px solid #EBEBEA;
24
- -webkit-box-shadow: inset 1px 1px 1px rgba(255,255,255,0.3);
25
- -moz-box-shadow: inset 1px 1px 1px rgba(255,255,255,0.3);
26
- box-shadow: inset 1px 1px 1px rgba(255,255,255,0.3);
27
- text-shadow: 1px 1px 1px #fff;
28
  display: inline-block;
29
  width: 31%;
 
30
  }
31
  .bab-number-box span
32
  {
33
  text-align: center;
34
  padding: 20px;
35
- padding-bottom: 10px;
 
36
  display: block;
37
- font-size: 22px;
38
- padding-top: 10px;
39
  }
40
 
41
  .bab-varation-header
@@ -74,12 +71,14 @@
74
  font-weight: normal;
75
  }
76
 
77
- .bab-number-box span.bab-stat-id
78
- {
79
  font-size: 9px;
80
  font-weight: normal;
81
  display: block;
82
  padding: 0px;
 
 
83
  }
84
 
85
  .bab-rate
3
  font-size: 12px;
4
  margin-bottom: 10px;
5
  text-align: left;
 
6
 
7
  border-top: none;
8
  border-left: none;
9
+ /* border: 1px solid #CECDCA;
10
 
11
  -webkit-box-shadow: 0px 0px 15px rgba(0,0,0,0.1);
12
  -moz-box-shadow: 0px 0px 15px rgba(0,0,0,0.1);
13
+ box-shadow: 0px 0px 15px rgba(0,0,0,0.1);*/
14
  z-index: 200;
15
  width: 100%;
16
  }
19
  }
20
  .bab-number-box
21
  {
22
+ background: transparent;
 
 
 
 
 
23
  display: inline-block;
24
  width: 31%;
25
+ padding-top: 15px
26
  }
27
  .bab-number-box span
28
  {
29
  text-align: center;
30
  padding: 20px;
31
+ padding-bottom: 15px;
32
+ color: #111;
33
  display: block;
34
+ font-size: 16px;
35
+ padding-top: 6px;
36
  }
37
 
38
  .bab-varation-header
71
  font-weight: normal;
72
  }
73
 
74
+ .bab-number-box span.bab-stat-id{
75
+ line-height: 1;
76
  font-size: 9px;
77
  font-weight: normal;
78
  display: block;
79
  padding: 0px;
80
+ letter-spacing: 0.15px;
81
+ color: #333333
82
  }
83
 
84
  .bab-rate
assets/css/admin/landing-page-edit-style.css CHANGED
@@ -1,22 +1,20 @@
1
 
2
- .cat-block
3
- {
4
- display:inline-table;
5
- padding-right:60px;
6
  }
7
 
8
  #main-title-area {
9
- margin-top: 5px;
10
  }
11
 
12
  #main-title-area span {
13
- margin-top:30px;
14
- z-index:999999;
15
  }
16
 
17
-
18
  tr#leads {
19
- display: table-row !important;
20
  }
21
 
22
  #add-landing-page.hide-if-js {
@@ -24,233 +22,381 @@ tr#leads {
24
  }
25
 
26
  #menu-posts-landing-page .wp-submenu.wp-submenu-wrap {
27
- z-index: 99999;
28
  }
 
29
  @font-face {
30
- font-family: 'FontAwesome';
31
- src: url('../shared/assets/fonts/fontawesome/fontawesome-webfont.eot?v=3.0.2');
32
- src: url('../shared/assets/fonts/fontawesome/fontawesome-webfont.eot?#iefix&v=3.0.2') format('embedded-opentype'),
33
- url('../shared/assets/fonts/fontawesome/fontawesome-webfont.woff?v=3.0.2') format('woff'),
34
- url('../shared/assets/fonts/fontawesome/fontawesome-webfont.ttf?v=3.0.2') format('truetype');
35
- font-weight: normal;
36
- font-style: normal;
37
  }
 
38
  #adminmenu .menu-icon-landing-page div.wp-menu-image:before {
39
- font-family: "FontAwesome" !important;
40
- content: "\f15c";
41
 
42
  }
 
43
  .branch-3-7 #adminmenu .menu-icon-landing-page div.wp-menu-image:before {
44
- display: none;
45
  }
46
- #adminmenu .menu-icon-landing-page div.wp-menu-image img{
47
- display: none;
 
48
  }
 
49
  .branch-3-7 #adminmenu .menu-icon-landing-page div.wp-menu-image img {
50
- display: block;
51
  }
52
 
53
  .appearance_page_install-inbound-plugins .inbound-install-notice {
54
- display: none;
55
  }
 
56
  .inbound-and {
57
- display: block;
58
- margin-top: 10px;
59
- font-size: 15px;
60
  }
 
61
  #postexcerpt p {
62
- display: none;
63
  }
64
- .metabox-holder .postbox-container .empty-container
65
- {
66
- border: none;
67
  }
68
 
69
- #lp_templates_wrapper_inside { padding-left: 15px; width: 945px; margin: 0; }
 
 
 
 
70
 
71
- .lp_template_wrapper ul li { float: left; position: relative; list-style: none; }
 
 
 
 
72
 
73
  /*hudson*/
74
- .lp_template_wrapper ul li label{
75
- font-size: 14px;
76
- font-weight: 300;
77
- color: greytext; text-decoration: none;
 
78
 
79
  }
80
 
81
  /*hudson*/
82
  .lp_template_wrapper ul li .template {
83
- font-size: 14px;
84
- //font-weight: bold;
85
- color: #222222; text-decoration: none;
86
- //text-shadow: 0 1px 2px black;
 
87
  }
88
 
89
- #lp-main-headline-wrap {margin-top: 5px;}
 
 
90
 
91
  .lp_template_wrapper ul li:hover {
92
- //height: 43px;
93
- -webkit-box-shadow: 0 0px 2px black inset;
94
 
95
  }
96
 
97
- .lp_template_wrapper ul li ul li:hover { background: none; -webkit-box-shadow: none; -moz-box-shadow: none; height: auto; border: none; }
 
 
 
 
 
 
98
 
99
- .lp_template_wrapper ul li .horizontal li { padding: 14px 10px 0px 0px; }
 
 
100
 
101
- .lp_template_wrapper ul li .horizontal li:first-child { margin-left: -10px; }
 
 
102
 
103
- .lp_template_wrapper ul li .horizontal li a { font-size: 12px; font-weight: normal; color: #c7c7c7; }
 
 
 
 
104
 
105
- .arrow-up { width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 15px solid #6a6a63; position: absolute; left: 20px; top: -15px; }
 
 
 
 
 
 
 
 
 
106
 
107
- .lp_template_wrapper ul li ul li .extended { position: absolute; top: 45px; left: 0; width: 330px; background: url(images/dropdownback.png); z-index: 1000; -moz-box-shadow: 0 0px 8px rgba(0,0,0,0.8); -webkit-box-shadow: 0 0px 8px rgba(0,0,0,0.8); box-shadow: 0 0 8px black; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; border: 1px solid white; display: none; color: white; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108
 
109
- .lp_template_wrapper ul li ul li .extended .screenshot { display: block; margin: 5px auto -26px auto; -webkit-box-reflect:below 0px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(0.8, transparent), to(rgba(255,255,255,0.5))); }
 
 
 
 
110
 
111
- .lp_template_wrapper ul li ul li .extended p { padding: 10px; font-size: 11px; line-height: 17px; text-shadow: 0 1px 1px black; }
 
 
 
 
 
112
 
113
- .lp_template_wrapper ul li ul li .extended h2, .lp_template_wrapper ul li .ultraNav h2 { padding-top: 10px; padding-left: 10px; font-size: 16px; text-shadow: 0 1px 2px black; color: white; background: url(images/headerback.png) repeat-x; height: 20px; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; }
 
 
 
 
 
 
 
 
 
 
 
114
 
115
- .lp_template_wrapper ul li ul li .extended span { padding-left: 10px; font-size: 11px; }
 
 
 
116
 
117
- .lp_template_wrapper ul li ul li .extended ul.smallNav { border-top: 1px solid rgba(141,141,141,0.50); padding: 10px; height: 100px; }
 
 
 
 
118
 
119
- .lp_template_wrapper ul li ul li .extended ul.smallNav li { padding: 0; line-height: 22px; font-weight: bold; background: url(images/linkback.png) no-repeat; }
 
 
 
 
 
120
 
121
  .lp_template_wrapper ul li ul li .extended ul.smallNav li a {
122
- color: #fff;
123
- text-shadow: none;
124
- font-size:12px;
125
  }
126
 
127
- .lp_template_wrapper ul li ul li .extended ul.smallNav li label{
128
- color: #c7c7c7;
129
- text-shadow: none;
130
- font-size:12px;
131
- text-decoration:none;
132
  }
133
 
134
- .lp-feature-link
135
- {
136
- float:none;
137
- margin:0px;
138
- display:block;
139
- padding:2px;
140
  }
141
 
142
- .lp-feature-link .lp-feature-link-img
143
- {
144
- padding:2px;
145
- display:inline-block;
146
  }
147
 
148
  /*david*/
149
- th.landing-page-table-header {width:230px; line-height: 22px;}
 
 
 
150
 
151
- .default_template_highlight
152
- {
153
- -webkit-box-shadow: inset 0px 0px 12px 1px rgba(82, 168, 238, 1);
154
- box-shadow: inset 0px 0px 12px 1px rgba(82, 168, 238, 1);
155
  }
156
 
157
- .lp-selection-heading{width: 89%; margin-top: 20px;}
158
- .lp-selection-heading h1 {display: inline;}
 
 
159
 
160
- #lp-cancel-selection
161
- {
162
- display: inline;
163
- float: right;
164
  }
165
 
 
 
 
 
166
 
 
 
 
167
 
168
- .lp_template_wrapper ul li ul li .extended ul.smallNav li:first-child { margin: 0; }
 
 
169
 
170
- .lp_template_wrapper ul li ul li .extended ul.smallNav li:last-child { margin-bottom: 10px; }
 
 
171
 
172
- .lp_template_wrapper ul li ul li:hover .extended { display: block; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
173
 
 
 
 
 
 
 
 
 
 
 
174
 
175
- .lp_template_wrapper ul li .ultraNav
176
- {
177
- position: absolute;
178
- top: 55px;
179
- left: -100px;
180
- width: 294px;
181
- background: url(images/dropdownback.png);
182
- border: 1px solid white;
183
- -webkit-border-radius: 5px;
184
- -moz-border-radius: 5px;
185
- border-radius: 5px;
186
- z-index: 500;
187
- -moz-box-shadow: 0 3px 8px rgba(0,0,0,0.6);
188
- -webkit-box-shadow: 0 3px 8px rgba(0,0,0,0.6) box-shadow: 0 3px 8px black;
189
- display: none;
190
  }
191
 
192
- .ultraNav h2 { text-align: center; padding-left:10px;padding-top:10px;}
 
 
193
 
194
- .lp_template_wrapper ul li .ultra { width: 130px; float: left; margin: 10px 0 10px 10px; -moz-box-shadow: 0 -1px 3px rgba(0,0,0,0.6); -webkit-box-shadow: 0 -1px 3px rgba(0,0,0,0.6); -moz-border-radius: 5px; -webkit-border-radius: 5px; border-bottom: none; }
 
 
 
 
 
195
 
196
- .lp_template_wrapper ul li .ultra:first-child { margin: 0; }
 
 
 
 
 
197
 
198
- .lp_template_wrapper ul li .ultraNav .arrow-up { left: 130px; }
 
 
199
 
200
- .lp_template_wrapper ul li .ultra a { font-weight: normal; font-size: 12px; color: #c7c7c7; text-shadow: 0 1px 2px black; }
 
 
201
 
202
- .lp_template_wrapper ul li .ultra li { width: 120px; line-height: 20px; padding: 3px 5px; background: url(images/linkback.png) no-repeat; }
 
 
 
 
 
 
 
203
 
204
- .lp_template_wrapper ul li:hover .ultraNav { display: block; }
 
 
 
 
 
 
 
 
 
 
205
 
206
- #lp_template_change h2 {display: inline-block;}
 
 
 
207
 
208
- #lp_template_change {
209
- margin-left: 17px;
210
- margin-top: -20px;
211
- float: right;
212
- position: absolute;
213
- top: 0px;
214
- right: 10px;
215
  }
216
 
217
- /* Split Testing Splash */
218
- .lp_tooltip, .lp_tooltip_templates {background: url('/wp-content/plugins/landing-pages/assets/css/images/question-light.png');
219
- width: 15px;
220
- height: 15px;
221
- display: inline-block;
222
- margin-left: 5px;
223
- vertical-align: middle;
224
- cursor: help;
225
- background-repeat: no-repeat;
226
- }
227
- .qtip-content {
228
- position: relative;
229
- padding: 5px 9px;
230
- overflow: hidden;
231
- text-align: left;
232
- word-wrap: break-word;
233
- line-height: 19px;
234
- }
235
- .tool_date{margin-left: 25px;
236
- vertical-align: top;}
237
- .tool_textarea {vertical-align: top;}
238
- .tool_color {margin-top:1px;}
239
- .tool_checkbox {vertical-align: top; margin-top: 4px;}
240
- .lp_check_box_table td {padding: 0px;}
241
- .lp_check_box_table {display: inline; float: left;}
242
 
243
  /* Split Testing */
244
- .lp_toggle_pause {color:red;}
245
- .lp_toggle_play {color:green;}
 
 
 
 
 
 
246
  /*store*/
247
 
248
  /* iframe's parent node */
249
  div#lp-store-iframe-container {
250
- // position: fixed;
251
  width: 100%;
252
  height: 100%;
253
- overflow:hidden;
254
  }
255
 
256
  /* iframe itself */
@@ -259,137 +405,125 @@ div#lp-store-iframe-container > iframe {
259
  width: 100%;
260
  height: 100%;
261
  border: none;
262
- margin-left:0px;
263
  }
264
 
265
- .column-thumbnail
266
- {
267
- height:110px;
268
  }
269
 
270
- .wp-list-table .column-date
271
- {
272
- width:128px;
273
- }
274
- .wp-list-table .details
275
- {
276
- text-align:left;
277
- padding-left:20px;
278
  }
279
 
280
- #leads-table-container-inside
281
- {
282
- margin-top:-36px;
283
- color:#388DBC;
284
  }
285
 
286
- #wp-leads-splash-header
287
- {
288
- background: #f2f2f2;
289
- border-bottom: 1px solid #EBEBEA;
290
- -webkit-box-shadow: inset 1px 1px 1px rgba(255,255,255,0.3);
291
- -moz-box-shadow: inset 1px 1px 1px rgba(255,255,255,0.3);
292
- box-shadow: inset 1px 1px 1px rgba(255,255,255,0.3);
293
- padding: 20px;
294
- text-shadow: 1px 1px 1px #fff;
295
  }
296
 
297
- #lead-details-container
298
- {
299
- border: 1px solid #EBEBEA;
 
 
 
 
 
300
  }
301
 
302
- #wp-leads-splash-email, #wp-leads-splash-ip, #wp-leads-splash-city, #wp-leads-splash-state, #wp-leads-splash-name
303
- {
304
- border-bottom: 1px solid #EBEBEA;
305
- padding: 10px 20px;
306
  }
307
 
 
 
 
 
308
 
309
- #wp-leads-extra-data
310
- {
311
- margin-left: 20px;
312
- margin-top: 5px;
313
  }
314
 
315
- #wp-leads-extra-data td
316
- {
317
- padding-right: 15px;
318
  }
319
 
320
- .wplp-green-button
321
- {
322
- background: #94BA65;
323
- border: 1px solid rgba(0,0,0,0.15);
324
- -webkit-border-radius: 2px;
325
- -moz-border-radius: 2px;
326
- border-radius: 2px;
327
- -webkit-box-shadow: 0px 2px 3px rgba(0,0,0,0.15), inset 1px 1px 1px rgba(255,255,255,0.2);
328
- -moz-box-shadow: 0px 2px 3px rgba(0,0,0,0.15), inset 1px 1px 1px rgba(255,255,255,0.2);
329
- box-shadow: 0px 2px 3px rgba(0,0,0,0.15), inset 1px 1px 1px rgba(255,255,255,0.2);
330
- color: #fff;
331
- cursor: pointer;
332
- display: inline-block;
333
- font-family: inherit;
334
- font-size: 14px;
335
- font-weight: bold;
336
- padding: 4px 5px;
337
- text-shadow: -1px -1px 1px rgba(0,0,0,0.15);
338
- text-decoration: none;
339
  }
340
- .wplp-right
341
- {
342
- float: right;
343
  }
344
 
345
- .lp-lead-splash-h3, .wp-lead-label
346
- {
347
- display: inline;
348
  }
349
 
350
- .wp-lead-label
351
- {
352
- font-weight: bold;
353
  }
354
 
355
- #leads-table-container-inside .wp-list-table .details
356
- {
357
- padding-left: 0px;
358
  }
359
 
360
- #leads-table-container-inside .wp-list-table .column-date
361
- {
362
- width: 150px;
363
  }
364
- .date-picker .new-save-lp
365
- {
366
- display: none;
367
  }
 
368
  #lp-tour {
369
- position: absolute;
370
- font-size: 13px;
371
- top: 0px;
372
- right: 170px;
373
- color: rgb(253, 3, 3);
374
- cursor: pointer;
375
- }
376
- .lp-success-message
377
- {
378
- background: #e2ffc9;
379
- border: 1px solid #c5eda3;
380
- padding: 4px 10px 4px 10px;
381
- margin-left: 10px;
382
- -webkit-border-radius: 3px;
383
- -moz-border-radius: 3px;
384
- border-radius: 3px;
385
- position: relative;
386
- margin-top: 10px;
387
- text-shadow: 1px 1px 1px rgba(255,255,255,0.5);
388
  }
389
 
390
  tr.media-id p.description {
391
  display: inline-block;
392
  }
 
393
  div.capty-caption {
394
  background-color: #000000;
395
  color: #FFFFFF;
@@ -398,6 +532,7 @@ div.capty-caption {
398
  padding-top: 7px;
399
  text-shadow: 1px 1px 0 #222222;
400
  }
 
401
  div.capty-caption a {
402
  color: #318DAD;
403
  font: bold 11px verdana;
1
 
2
+ .cat-block {
3
+ display: inline-table;
4
+ padding-right: 60px;
 
5
  }
6
 
7
  #main-title-area {
8
+ margin-top: 5px;
9
  }
10
 
11
  #main-title-area span {
12
+ margin-top: 30px;
13
+ z-index: 999999;
14
  }
15
 
 
16
  tr#leads {
17
+ display: table-row !important;
18
  }
19
 
20
  #add-landing-page.hide-if-js {
22
  }
23
 
24
  #menu-posts-landing-page .wp-submenu.wp-submenu-wrap {
25
+ z-index: 99999;
26
  }
27
+
28
  @font-face {
29
+ font-family: 'FontAwesome';
30
+ src: url('../shared/assets/fonts/fontawesome/fontawesome-webfont.eot?v=3.0.2');
31
+ src: url('../shared/assets/fonts/fontawesome/fontawesome-webfont.eot?#iefix&v=3.0.2') format('embedded-opentype'),
32
+ url('../shared/assets/fonts/fontawesome/fontawesome-webfont.woff?v=3.0.2') format('woff'),
33
+ url('../shared/assets/fonts/fontawesome/fontawesome-webfont.ttf?v=3.0.2') format('truetype');
34
+ font-weight: normal;
35
+ font-style: normal;
36
  }
37
+
38
  #adminmenu .menu-icon-landing-page div.wp-menu-image:before {
39
+ font-family: "FontAwesome" !important;
40
+ content: "\f15c";
41
 
42
  }
43
+
44
  .branch-3-7 #adminmenu .menu-icon-landing-page div.wp-menu-image:before {
45
+ display: none;
46
  }
47
+
48
+ #adminmenu .menu-icon-landing-page div.wp-menu-image img {
49
+ display: none;
50
  }
51
+
52
  .branch-3-7 #adminmenu .menu-icon-landing-page div.wp-menu-image img {
53
+ display: block;
54
  }
55
 
56
  .appearance_page_install-inbound-plugins .inbound-install-notice {
57
+ display: none;
58
  }
59
+
60
  .inbound-and {
61
+ display: block;
62
+ margin-top: 10px;
63
+ font-size: 15px;
64
  }
65
+
66
  #postexcerpt p {
67
+ display: none;
68
  }
69
+
70
+ .metabox-holder .postbox-container .empty-container {
71
+ border: none;
72
  }
73
 
74
+ #lp_templates_wrapper_inside {
75
+ padding-left: 15px;
76
+ width: 945px;
77
+ margin: 0;
78
+ }
79
 
80
+ .lp_template_wrapper ul li {
81
+ float: left;
82
+ position: relative;
83
+ list-style: none;
84
+ }
85
 
86
  /*hudson*/
87
+ .lp_template_wrapper ul li label {
88
+ font-size: 14px;
89
+ font-weight: 300;
90
+ color: greytext;
91
+ text-decoration: none;
92
 
93
  }
94
 
95
  /*hudson*/
96
  .lp_template_wrapper ul li .template {
97
+ font-size: 14px;
98
+ / / font-weight: bold;
99
+ color: #222222;
100
+ text-decoration: none;
101
+ / / text-shadow: 0 1 px 2 px black;
102
  }
103
 
104
+ #lp-main-headline-wrap {
105
+ margin-top: 5px;
106
+ }
107
 
108
  .lp_template_wrapper ul li:hover {
109
+ / / height: 43 px;
110
+ -webkit-box-shadow: 0 0px 2px black inset;
111
 
112
  }
113
 
114
+ .lp_template_wrapper ul li ul li:hover {
115
+ background: none;
116
+ -webkit-box-shadow: none;
117
+ -moz-box-shadow: none;
118
+ height: auto;
119
+ border: none;
120
+ }
121
 
122
+ .lp_template_wrapper ul li .horizontal li {
123
+ padding: 14px 10px 0px 0px;
124
+ }
125
 
126
+ .lp_template_wrapper ul li .horizontal li:first-child {
127
+ margin-left: -10px;
128
+ }
129
 
130
+ .lp_template_wrapper ul li .horizontal li a {
131
+ font-size: 12px;
132
+ font-weight: normal;
133
+ color: #c7c7c7;
134
+ }
135
 
136
+ .arrow-up {
137
+ width: 0;
138
+ height: 0;
139
+ border-left: 10px solid transparent;
140
+ border-right: 10px solid transparent;
141
+ border-bottom: 15px solid #6a6a63;
142
+ position: absolute;
143
+ left: 20px;
144
+ top: -15px;
145
+ }
146
 
147
+ .lp_template_wrapper ul li ul li .extended {
148
+ position: absolute;
149
+ top: 45px;
150
+ left: 0;
151
+ width: 330px;
152
+ background: url(images/dropdownback.png);
153
+ z-index: 1000;
154
+ -moz-box-shadow: 0 0px 8px rgba(0, 0, 0, 0.8);
155
+ -webkit-box-shadow: 0 0px 8px rgba(0, 0, 0, 0.8);
156
+ box-shadow: 0 0 8px black;
157
+ -moz-border-radius: 5px;
158
+ -webkit-border-radius: 5px;
159
+ border-radius: 5px;
160
+ border: 1px solid white;
161
+ display: none;
162
+ color: white;
163
+ }
164
 
165
+ .lp_template_wrapper ul li ul li .extended .screenshot {
166
+ display: block;
167
+ margin: 5px auto -26px auto;
168
+ -webkit-box-reflect: below 0px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(0.8, transparent), to(rgba(255, 255, 255, 0.5)));
169
+ }
170
 
171
+ .lp_template_wrapper ul li ul li .extended p {
172
+ padding: 10px;
173
+ font-size: 11px;
174
+ line-height: 17px;
175
+ text-shadow: 0 1px 1px black;
176
+ }
177
 
178
+ .lp_template_wrapper ul li ul li .extended h2, .lp_template_wrapper ul li .ultraNav h2 {
179
+ padding-top: 10px;
180
+ padding-left: 10px;
181
+ font-size: 16px;
182
+ text-shadow: 0 1px 2px black;
183
+ color: white;
184
+ background: url(images/headerback.png) repeat-x;
185
+ height: 20px;
186
+ border-radius: 3px;
187
+ -webkit-border-radius: 3px;
188
+ -moz-border-radius: 3px;
189
+ }
190
 
191
+ .lp_template_wrapper ul li ul li .extended span {
192
+ padding-left: 10px;
193
+ font-size: 11px;
194
+ }
195
 
196
+ .lp_template_wrapper ul li ul li .extended ul.smallNav {
197
+ border-top: 1px solid rgba(141, 141, 141, 0.50);
198
+ padding: 10px;
199
+ height: 100px;
200
+ }
201
 
202
+ .lp_template_wrapper ul li ul li .extended ul.smallNav li {
203
+ padding: 0;
204
+ line-height: 22px;
205
+ font-weight: bold;
206
+ background: url(images/linkback.png) no-repeat;
207
+ }
208
 
209
  .lp_template_wrapper ul li ul li .extended ul.smallNav li a {
210
+ color: #fff;
211
+ text-shadow: none;
212
+ font-size: 12px;
213
  }
214
 
215
+ .lp_template_wrapper ul li ul li .extended ul.smallNav li label {
216
+ color: #c7c7c7;
217
+ text-shadow: none;
218
+ font-size: 12px;
219
+ text-decoration: none;
220
  }
221
 
222
+ .lp-feature-link {
223
+ float: none;
224
+ margin: 0px;
225
+ display: block;
226
+ padding: 2px;
 
227
  }
228
 
229
+ .lp-feature-link .lp-feature-link-img {
230
+ padding: 2px;
231
+ display: inline-block;
 
232
  }
233
 
234
  /*david*/
235
+ th.landing-page-table-header {
236
+ width: 230px;
237
+ line-height: 22px;
238
+ }
239
 
240
+ .default_template_highlight {
241
+ -webkit-box-shadow: inset 0px 0px 12px 1px rgba(82, 168, 238, 1);
242
+ box-shadow: inset 0px 0px 12px 1px rgba(82, 168, 238, 1);
 
243
  }
244
 
245
+ .lp-selection-heading {
246
+ width: 89%;
247
+ margin-top: 20px;
248
+ }
249
 
250
+ .lp-selection-heading h1 {
251
+ display: inline;
 
 
252
  }
253
 
254
+ #lp-cancel-selection {
255
+ display: inline;
256
+ float: right;
257
+ }
258
 
259
+ .lp_template_wrapper ul li ul li .extended ul.smallNav li:first-child {
260
+ margin: 0;
261
+ }
262
 
263
+ .lp_template_wrapper ul li ul li .extended ul.smallNav li:last-child {
264
+ margin-bottom: 10px;
265
+ }
266
 
267
+ .lp_template_wrapper ul li ul li:hover .extended {
268
+ display: block;
269
+ }
270
 
271
+ .lp_template_wrapper ul li .ultraNav {
272
+ position: absolute;
273
+ top: 55px;
274
+ left: -100px;
275
+ width: 294px;
276
+ background: url(images/dropdownback.png);
277
+ border: 1px solid white;
278
+ -webkit-border-radius: 5px;
279
+ -moz-border-radius: 5px;
280
+ border-radius: 5px;
281
+ z-index: 500;
282
+ -moz-box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
283
+ -webkit-box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6)
284
+ box-shadow: 0 3px 8px black;
285
+ display: none;
286
+ }
287
+
288
+ .ultraNav h2 {
289
+ text-align: center;
290
+ padding-left: 10px;
291
+ padding-top: 10px;
292
+ }
293
 
294
+ .lp_template_wrapper ul li .ultra {
295
+ width: 130px;
296
+ float: left;
297
+ margin: 10px 0 10px 10px;
298
+ -moz-box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.6);
299
+ -webkit-box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.6);
300
+ -moz-border-radius: 5px;
301
+ -webkit-border-radius: 5px;
302
+ border-bottom: none;
303
+ }
304
 
305
+ .lp_template_wrapper ul li .ultra:first-child {
306
+ margin: 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
307
  }
308
 
309
+ .lp_template_wrapper ul li .ultraNav .arrow-up {
310
+ left: 130px;
311
+ }
312
 
313
+ .lp_template_wrapper ul li .ultra a {
314
+ font-weight: normal;
315
+ font-size: 12px;
316
+ color: #c7c7c7;
317
+ text-shadow: 0 1px 2px black;
318
+ }
319
 
320
+ .lp_template_wrapper ul li .ultra li {
321
+ width: 120px;
322
+ line-height: 20px;
323
+ padding: 3px 5px;
324
+ background: url(images/linkback.png) no-repeat;
325
+ }
326
 
327
+ .lp_template_wrapper ul li:hover .ultraNav {
328
+ display: block;
329
+ }
330
 
331
+ #lp_template_change h2 {
332
+ display: inline-block;
333
+ }
334
 
335
+ #lp_template_change {
336
+ margin-left: 17px;
337
+ margin-top: -20px;
338
+ float: right;
339
+ position: absolute;
340
+ top: 0px;
341
+ right: 10px;
342
+ }
343
 
344
+ /* Split Testing Splash */
345
+ .lp_tooltip, .lp_tooltip_templates {
346
+ background: url('/wp-content/plugins/landing-pages/assets/css/images/question-light.png');
347
+ width: 15px;
348
+ height: 15px;
349
+ display: inline-block;
350
+ margin-left: 5px;
351
+ vertical-align: middle;
352
+ cursor: help;
353
+ background-repeat: no-repeat;
354
+ }
355
 
356
+ .tool_date {
357
+ margin-left: 25px;
358
+ vertical-align: top;
359
+ }
360
 
361
+ .tool_textarea {
362
+ vertical-align: top;
 
 
 
 
 
363
  }
364
 
365
+ .tool_color {
366
+ margin-top: 1px;
367
+ }
368
+
369
+ .tool_checkbox {
370
+ vertical-align: top;
371
+ margin-top: 4px;
372
+ }
373
+
374
+ .lp_check_box_table td {
375
+ padding: 0px;
376
+ }
377
+
378
+ .lp_check_box_table {
379
+ display: inline;
380
+ float: left;
381
+ }
 
 
 
 
 
 
 
 
382
 
383
  /* Split Testing */
384
+ .lp_toggle_pause {
385
+ color: red;
386
+ }
387
+
388
+ .lp_toggle_play {
389
+ color: green;
390
+ }
391
+
392
  /*store*/
393
 
394
  /* iframe's parent node */
395
  div#lp-store-iframe-container {
396
+ / / position: fixed;
397
  width: 100%;
398
  height: 100%;
399
+ overflow: hidden;
400
  }
401
 
402
  /* iframe itself */
405
  width: 100%;
406
  height: 100%;
407
  border: none;
408
+ margin-left: 0px;
409
  }
410
 
411
+ .column-thumbnail {
412
+ height: 110px;
 
413
  }
414
 
415
+ .wp-list-table .column-date {
416
+ width: 128px;
 
 
 
 
 
 
417
  }
418
 
419
+ .wp-list-table .details {
420
+ text-align: left;
421
+ padding-left: 20px;
 
422
  }
423
 
424
+ #leads-table-container-inside {
425
+ margin-top: -36px;
426
+ color: #388DBC;
 
 
 
 
 
 
427
  }
428
 
429
+ #wp-leads-splash-header {
430
+ background: #f2f2f2;
431
+ border-bottom: 1px solid #EBEBEA;
432
+ -webkit-box-shadow: inset 1px 1px 1px rgba(255, 255, 255, 0.3);
433
+ -moz-box-shadow: inset 1px 1px 1px rgba(255, 255, 255, 0.3);
434
+ box-shadow: inset 1px 1px 1px rgba(255, 255, 255, 0.3);
435
+ padding: 20px;
436
+ text-shadow: 1px 1px 1px #fff;
437
  }
438
 
439
+ #lead-details-container {
440
+ border: 1px solid #EBEBEA;
 
 
441
  }
442
 
443
+ #wp-leads-splash-email, #wp-leads-splash-ip, #wp-leads-splash-city, #wp-leads-splash-state, #wp-leads-splash-name {
444
+ border-bottom: 1px solid #EBEBEA;
445
+ padding: 10px 20px;
446
+ }
447
 
448
+ #wp-leads-extra-data {
449
+ margin-left: 20px;
450
+ margin-top: 5px;
 
451
  }
452
 
453
+ #wp-leads-extra-data td {
454
+ padding-right: 15px;
 
455
  }
456
 
457
+ .wplp-green-button {
458
+ background: #94BA65;
459
+ border: 1px solid rgba(0, 0, 0, 0.15);
460
+ -webkit-border-radius: 2px;
461
+ -moz-border-radius: 2px;
462
+ border-radius: 2px;
463
+ -webkit-box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.15), inset 1px 1px 1px rgba(255, 255, 255, 0.2);
464
+ -moz-box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.15), inset 1px 1px 1px rgba(255, 255, 255, 0.2);
465
+ box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.15), inset 1px 1px 1px rgba(255, 255, 255, 0.2);
466
+ color: #fff;
467
+ cursor: pointer;
468
+ display: inline-block;
469
+ font-family: inherit;
470
+ font-size: 14px;
471
+ font-weight: bold;
472
+ padding: 4px 5px;
473
+ text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.15);
474
+ text-decoration: none;
 
475
  }
476
+
477
+ .wplp-right {
478
+ float: right;
479
  }
480
 
481
+ .lp-lead-splash-h3, .wp-lead-label {
482
+ display: inline;
 
483
  }
484
 
485
+ .wp-lead-label {
486
+ font-weight: bold;
 
487
  }
488
 
489
+ #leads-table-container-inside .wp-list-table .details {
490
+ padding-left: 0px;
 
491
  }
492
 
493
+ #leads-table-container-inside .wp-list-table .column-date {
494
+ width: 150px;
 
495
  }
496
+
497
+ .date-picker .new-save-lp {
498
+ display: none;
499
  }
500
+
501
  #lp-tour {
502
+ position: absolute;
503
+ font-size: 13px;
504
+ top: 0px;
505
+ right: 170px;
506
+ color: rgb(253, 3, 3);
507
+ cursor: pointer;
508
+ }
509
+
510
+ .lp-success-message {
511
+ background: #e2ffc9;
512
+ border: 1px solid #c5eda3;
513
+ padding: 4px 10px 4px 10px;
514
+ margin-left: 10px;
515
+ -webkit-border-radius: 3px;
516
+ -moz-border-radius: 3px;
517
+ border-radius: 3px;
518
+ position: relative;
519
+ margin-top: 10px;
520
+ text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5);
521
  }
522
 
523
  tr.media-id p.description {
524
  display: inline-block;
525
  }
526
+
527
  div.capty-caption {
528
  background-color: #000000;
529
  color: #FFFFFF;
532
  padding-top: 7px;
533
  text-shadow: 1px 1px 0 #222222;
534
  }
535
+
536
  div.capty-caption a {
537
  color: #318DAD;
538
  font: bold 11px verdana;
assets/css/admin/landing-page-list.css CHANGED
@@ -102,47 +102,10 @@
102
  margin-left: 5px !important;
103
  }
104
 
105
- .qtip {
106
- background: #fff;
107
- }
108
-
109
- .qtip-tip {
110
- height: 10px !important;
111
- }
112
-
113
- .qtip-content, .lp-pop-description, .lp-pop-preview a {
114
- color: #333;
115
-
116
- }
117
-
118
  .lp-pop-preview a, .lp-pop-edit a {
119
  text-decoration: none;
120
  }
121
 
122
- .qtip-titlebar {
123
- position: relative;
124
- padding: 0px;
125
- }
126
-
127
- .qtip-jtools {
128
- border: 2px solid rgba(172, 172, 172, 1);
129
- }
130
-
131
- .qtip-title {
132
- position: relative;
133
- margin: 0 0 5px;
134
- padding: 12px 17px 14px 14px;
135
- line-height: 19px;
136
- font-size: 19px;
137
- color: #fff;
138
- text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
139
- background: #8cc1e9;
140
- background-image: -webkit-gradient(linear, left bottom, left top, from(#72a7cf), to(#8cc1e9));
141
- background-image: -webkit-linear-gradient(bottom, #72a7cf, #8cc1e9);
142
- background-image: -moz-linear-gradient(bottom, #72a7cf, #8cc1e9);
143
- background-image: -o-linear-gradient(bottom, #72a7cf, #8cc1e9);
144
- background-image: linear-gradient(to top, #72a7cf, #8cc1e9);
145
- }
146
 
147
  .stats li {
148
  border-bottom: 1px solid #EBEBEA;
@@ -254,7 +217,7 @@ td.stats.column-stats {
254
  }
255
 
256
  .stats li:last-child {
257
- border-bottom: none;
258
  }
259
 
260
  .no-stats-yet {
@@ -275,7 +238,7 @@ td.stats.column-stats {
275
  border-top: none;
276
  width: 100%;
277
  border-bottom: none;
278
- margin-bottom: -2px;
279
  padding-bottom: 0px;
280
  display: inline-block;
281
  margin-top: 0px;
@@ -285,12 +248,16 @@ td.stats.column-stats {
285
  font-size: 13px;
286
  min-width: 199px;
287
  display: inline-block;
288
- }
289
 
290
  .introjs-showElement .row-actions {
291
  visibility: visible;
292
  }
293
 
 
 
 
 
294
  .lp-impress-num {
295
  display: inline-block;
296
  text-align: center;
@@ -390,3 +357,136 @@ a.cr-number:hover {
390
  color: #fff;
391
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
392
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
  margin-left: 5px !important;
103
  }
104
 
 
 
 
 
 
 
 
 
 
 
 
 
 
105
  .lp-pop-preview a, .lp-pop-edit a {
106
  text-decoration: none;
107
  }
108
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
 
110
  .stats li {
111
  border-bottom: 1px solid #EBEBEA;
217
  }
218
 
219
  .stats li:last-child {
220
+ //border-bottom: none;
221
  }
222
 
223
  .no-stats-yet {
238
  border-top: none;
239
  width: 100%;
240
  border-bottom: none;
241
+ margin-bottom: 0px;
242
  padding-bottom: 0px;
243
  display: inline-block;
244
  margin-top: 0px;
248
  font-size: 13px;
249
  min-width: 199px;
250
  display: inline-block;
251
+ }
252
 
253
  .introjs-showElement .row-actions {
254
  visibility: visible;
255
  }
256
 
257
+ .stats li:last-child:not(:first-child) {
258
+ border-bottom: none;
259
+ }
260
+
261
  .lp-impress-num {
262
  display: inline-block;
263
  text-align: center;
357
  color: #fff;
358
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
359
  }
360
+
361
+
362
+ /* New Variation Testing Stat Design by Ahmed Kaludi (AhmedKaludi.com) START */
363
+ .lp-varation-stat-ul{
364
+ font-family: "Open Sans",sans-serif;
365
+ }
366
+ .lp-varation-stat-ul li{
367
+ padding: 0;
368
+ }
369
+ .lp-varation-stat-ul li .lp-letter{
370
+ background: #fff;
371
+ border: 0;
372
+ border-radius: 0;
373
+ margin-right: 0;
374
+ font-weight: 300;
375
+ font-size: 20px;
376
+ padding: 22px 16px;
377
+ line-height: 1;
378
+ color: #666666
379
+ }
380
+ .column-stats{
381
+ padding: 0px !important
382
+ }
383
+ .lp-varation-stat-ul .winner-lp{
384
+ background: #F9FFF4 !important
385
+ }
386
+ .lp-varation-stat-ul .winner-lp .lp-letter{
387
+ background: #15dd6f;
388
+ color: #fff;
389
+ font-weight: 300
390
+ }
391
+ .lp-varation-stat-ul .visit-text,
392
+ .lp-varation-stat-ul .lp-conversion-txt{
393
+ width: 100%;
394
+ text-align: center;
395
+ display: inline-block;
396
+ color: #777;
397
+ }
398
+ .lp-varation-stat-ul .lp-impress-num,
399
+ .lp-varation-stat-ul .lp-con-num{
400
+ width: 100%;
401
+ text-align: center;
402
+ padding: 0;
403
+ }
404
+ .lp-varation-stat-ul .lp-visitors,
405
+ .lp-varation-stat-ul .lp-conversions{
406
+ width: 81px;
407
+ display: inline-block;
408
+ text-align: center;
409
+ }
410
+ .visit-text, .lp-conversion-txt{
411
+ text-transform: uppercase;
412
+ font-size: 10px;
413
+ color: #333333;
414
+ letter-spacing: 0.6px;
415
+ }
416
+ .lp-varation-stat-ul .lp-impress-num,
417
+ .lp-varation-stat-ul .lp-con-num{
418
+ font-size: 16px;
419
+ color: #000;
420
+ font-weight: normal;
421
+ }
422
+ .lp-varation-stat-ul .lp-numbers{
423
+ min-width: 140px;
424
+ position: absolute;
425
+ margin-top: 12px;
426
+ }
427
+ .lp-varation-stat-ul .cr-number.cr-empty-0,
428
+ .lp-varation-stat-ul .cr-number.cr-empty-0:hover{
429
+ text-align: center;
430
+ width: 42px;
431
+ float: right;
432
+ background: none;
433
+ border: 0;
434
+ box-shadow: none;
435
+ font-size: 14px;
436
+ font-weight: normal;
437
+ color: #999;
438
+ text-shadow: none;
439
+ padding: 0;
440
+ margin: 0;
441
+ margin-top: 16px;
442
+ padding-right: 10px;
443
+ }
444
+ .lp-varation-stat-ul .cr-number, .lp-varation-stat-ul .cr-number:hover{
445
+ background: none;
446
+ border: 0;
447
+ box-shadow: none;
448
+ font-size: 14px;
449
+ font-weight: 500;
450
+ color: #555555;
451
+ text-shadow: none;
452
+ padding: 0;
453
+ margin: 0;
454
+ margin-top: 16px;
455
+ padding-right: 10px;
456
+ }
457
+ .lp-varation-stat-ul .winner-lp .cr-number{
458
+ color: #333
459
+ }
460
+ .lp-varation-stat-ul .cr-number{
461
+ text-align: center;
462
+ width: 45px;
463
+ float: right;
464
+ margin-top: 16px;
465
+ padding-right: 10px;
466
+ }
467
+ .lp-varation-stat-ul .cr-number:before{
468
+ content: "";
469
+ background: url('../../images/variation-normal.png') no-repeat;
470
+ padding: 7px 15px 3px 8px;
471
+ display: inline-block;
472
+ text-align: center;
473
+ background-position: 0px 1px;
474
+ }
475
+ .lp-varation-stat-ul .winner-lp .cr-number:before{
476
+ background-position: 0px 1px;
477
+ padding: 7px 10px 8px 10px;
478
+ background: url('../../images/variation-up.png') no-repeat;
479
+ }
480
+ .column-stats{
481
+ padding: 0
482
+ }
483
+
484
+ body .alternate, .striped>tbody>:nth-child(odd), ul.striped>:nth-child(odd) {
485
+ background-color:#ffffff !important;
486
+ }
487
+ body #the-list td {
488
+ border-bottom: 1px solid #EBEBEA;
489
+ }
490
+ /* New Variation Testing Stat Design by Ahmed Kaludi (AhmedKaludi.com) END */
491
+
492
+
assets/css/jquery.qtip.min.css DELETED
@@ -1,4 +0,0 @@
1
- /*! qtip2 v2.0.0 | http://craigsworks.com/projects/qtip2/ | Licensed MIT, GPL */.qtip,.qtip{position:absolute;left:-28000px;top:-28000px;display:none;max-width:700px;min-width:50px;font-size:14.5px;line-height:12px;direction:ltr}.qtip-content{position:relative;padding:5px 9px;overflow:hidden;text-align:left;word-wrap:break-word}.qtip-titlebar{position:relative;padding:15px 35px 7px 8px;overflow:hidden;border-width:0 0 1px;font-weight:normal}.qtip-titlebar+.qtip-content{border-top-width:0!important}.qtip-close{position:absolute;right:-9px;top:-9px;cursor:pointer;outline:medium none;border-width:1px;border-style:solid;border-color:transparent}.qtip-titlebar .qtip-close{right:4px;top:50%;margin-top:-9px}* html .qtip-titlebar .qtip-close{top:16px}.qtip-titlebar .ui-icon,.qtip-icon .ui-icon{display:block;text-indent:-1000em;direction:ltr;vertical-align:middle}.qtip-icon,.qtip-icon .ui-icon{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;text-decoration:none}.qtip-icon .ui-icon{width:18px;height:14px;text-align:center;text-indent:0;font:normal bold 10px/13px Tahoma,sans-serif;color:inherit;background:transparent none no-repeat -100em -100em}.qtip-focus{}.qtip-hover{}.qtip-default{border-width:1px;border-style:solid;border-color:#F1D031;background-color:#FFFFA3;color:#555}.qtip-default .qtip-titlebar{background-color:#FFEF93}.qtip-default .qtip-icon{border-color:#CCC;background:#F1F1F1;color:#777}.qtip-default .qtip-titlebar .qtip-close{border-color:#AAA;color:#111}/*! Light tooltip style */.qtip-light{background-color:#fff;border-color:#E2E2E2;color:#454545}.qtip-light .qtip-titlebar{background-color:#f1f1f1}/*! Dark tooltip style */.qtip-dark{background-color:#505050;border-color:#303030;color:#f3f3f3}.qtip-dark .qtip-titlebar{background-color:#404040}.qtip-dark .qtip-icon{border-color:#444}.qtip-dark .qtip-titlebar .ui-state-hover{border-color:#303030}/*! Cream tooltip style */.qtip-cream{background-color:#FBF7AA;border-color:#F9E98E;color:#A27D35}.qtip-cream .qtip-titlebar{background-color:#F0DE7D}.qtip-cream .qtip-close .qtip-icon{background-position:-82px 0}/*! Red tooltip style */.qtip-red{background-color:#F78B83;border-color:#D95252;color:#912323}.qtip-red .qtip-titlebar{background-color:#F06D65}.qtip-red .qtip-close .qtip-icon{background-position:-102px 0}.qtip-red .qtip-icon{border-color:#D95252}.qtip-red .qtip-titlebar .ui-state-hover{border-color:#D95252}/*! Green tooltip style */.qtip-green{background-color:#CAED9E;border-color:#90D93F;color:#3F6219}.qtip-green .qtip-titlebar{background-color:#B0DE78}.qtip-green .qtip-close .qtip-icon{background-position:-42px 0}/*! Blue tooltip style */.qtip-blue{background-color:#E5F6FE;border-color:#ADD9ED;color:#5E99BD}.qtip-blue .qtip-titlebar{background-color:#D0E9F5}.qtip-blue .qtip-close .qtip-icon{background-position:-2px 0}.qtip-shadow{-webkit-box-shadow:1px 1px 3px 1px rgba(0,0,0,.15);-moz-box-shadow:1px 1px 3px 1px rgba(0,0,0,.15);box-shadow:1px 1px 3px 1px rgba(0,0,0,.15)}.qtip-rounded,.qtip-tipsy,.qtip-bootstrap{-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px}.qtip-youtube{-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 0 3px #333;-moz-box-shadow:0 0 3px #333;box-shadow:0 0 3px #333;color:#fff;border-width:0;background:#4A4A4A;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0,#4A4A4A),color-stop(100%,black));background-image:-webkit-linear-gradient(top,#4A4A4A 0,black 100%);background-image:-moz-linear-gradient(top,#4A4A4A 0,black 100%);background-image:-ms-linear-gradient(top,#4A4A4A 0,black 100%);background-image:-o-linear-gradient(top,#4A4A4A 0,black 100%)}.qtip-youtube .qtip-titlebar{background-color:#4A4A4A;background-color:rgba(0,0,0,0)}.qtip-youtube .qtip-content{padding:.75em;font:12px arial,sans-serif;filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#4a4a4a, EndColorStr=#000000);-ms-filter:"progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#4a4a4a, EndColorStr=#000000);"}.qtip-youtube .qtip-icon{border-color:#222}.qtip-youtube .qtip-titlebar .ui-state-hover{border-color:#303030}.qtip-jtools{background:#232323;background:rgba(0,0,0,.7);background-image:-webkit-gradient(linear,left top,left bottom,from(#717171),to(#232323));background-image:-moz-linear-gradient(top,#717171,#232323);background-image:-webkit-linear-gradient(top,#717171,#232323);background-image:-ms-linear-gradient(top,#717171,#232323);background-image:-o-linear-gradient(top,#717171,#232323);border:2px solid #ddd;border:2px solid rgba(241,241,241,1);-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 0 12px #333;-moz-box-shadow:0 0 12px #333;box-shadow:0 0 12px #333}.qtip-jtools .qtip-titlebar{background-color:transparent;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171, endColorstr=#4A4A4A);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#717171, endColorstr=#4A4A4A)"}.qtip-jtools .qtip-content{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A, endColorstr=#232323);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#4A4A4A, endColorstr=#232323)"}.qtip-jtools .qtip-titlebar,.qtip-jtools .qtip-content{background:transparent;color:#fff;border:0 dashed transparent}.qtip-jtools .qtip-icon{border-color:#555}.qtip-jtools .qtip-titlebar .ui-state-hover{border-color:#333}.qtip-cluetip{-webkit-box-shadow:4px 4px 5px rgba(0,0,0,.4);-moz-box-shadow:4px 4px 5px rgba(0,0,0,.4);box-shadow:4px 4px 5px rgba(0,0,0,.4);background-color:#D9D9C2;color:#111;border:0 dashed transparent}.qtip-cluetip .qtip-titlebar{background-color:#87876A;color:#fff;border:0 dashed transparent}.qtip-cluetip .qtip-icon{border-color:#808064}.qtip-cluetip .qtip-titlebar .ui-state-hover{border-color:#696952;color:#696952}.qtip-tipsy{background:#000;background:rgba(0,0,0,.87);color:#fff;border:0 solid transparent;font-size:11px;font-family:'Lucida Grande',sans-serif;font-weight:700;line-height:16px;text-shadow:0 1px black}.qtip-tipsy .qtip-titlebar{padding:6px 35px 0 10;background-color:transparent}.qtip-tipsy .qtip-content{padding:6px 10}.qtip-tipsy .qtip-icon{border-color:#222;text-shadow:none}.qtip-tipsy .qtip-titlebar .ui-state-hover{border-color:#303030}.qtip-tipped{border:3px solid #959FA9;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;background-color:#F9F9F9;color:#454545;font-weight:400;font-family:serif}.qtip-tipped .qtip-titlebar{border-bottom-width:0;color:#fff;background:#3A79B8;background-image:-webkit-gradient(linear,left top,left bottom,from(#3A79B8),to(#2E629D));background-image:-webkit-linear-gradient(top,#3A79B8,#2E629D);background-image:-moz-linear-gradient(top,#3A79B8,#2E629D);background-image:-ms-linear-gradient(top,#3A79B8,#2E629D);background-image:-o-linear-gradient(top,#3A79B8,#2E629D);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8, endColorstr=#2E629D);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#3A79B8, endColorstr=#2E629D)"}.qtip-tipped .qtip-icon{border:2px solid #285589;background:#285589}.qtip-tipped .qtip-icon .ui-icon{background-color:#FBFBFB;color:#555}.qtip-bootstrap{font-size:14px;line-height:20px;color:#333;padding:1px;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);-moz-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box}.qtip-bootstrap .qtip-titlebar{padding:8px 14px;margin:0;font-size:14px;font-weight:400;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;-webkit-border-radius:5px 5px 0 0;-moz-border-radius:5px 5px 0 0;border-radius:5px 5px 0 0}.qtip-bootstrap .qtip-titlebar .qtip-close{right:11px;top:45%;border-style:none}.qtip-bootstrap .qtip-content{padding:9px 14px}.qtip-bootstrap .qtip-icon{background:transparent}.qtip-bootstrap .qtip-icon .ui-icon{width:auto;height:auto;float:right;font-size:20px;font-weight:700;line-height:18px;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}.qtip-bootstrap .qtip-icon .ui-icon:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.4;filter:alpha(opacity=40)}.qtip:not(.ie9haxors) div.qtip-content,.qtip:not(.ie9haxors) div.qtip-titlebar{filter:none;-ms-filter:none}.qtip .qtip-tip{margin:0 auto;overflow:hidden;z-index:10}.qtip .qtip-tip,.qtip .qtip-tip .qtip-vml{position:absolute;color:#123456;background:transparent;border:0 dashed transparent}.qtip .qtip-tip canvas{top:0;left:0}.qtip .qtip-tip .qtip-vml{behavior:url(#default#VML);display:inline-block;visibility:visible}#qtip-overlay{position:fixed;left:-10000em;top:-10000em}#qtip-overlay.blurs{cursor:pointer}#qtip-overlay div{position:absolute;left:0;top:0;width:100%;height:100%;background-color:#000;opacity:.7;filter:alpha(opacity=70);-ms-filter:"alpha(Opacity=70)"}.qtipmodal-ie6fix{position:absolute!important}.qtip-jtools{padding-bottom: 5px;}.qtip-title{font-size:20px;}
2
- .qtip-content {
3
- font-weight: 300;
4
- }
 
 
 
 
assets/images/ab-retina-icons.png ADDED
Binary file
assets/images/variation-normal.png ADDED
Binary file
assets/images/variation-up.png ADDED
Binary file
assets/js/admin/admin.landing-page-list.js CHANGED
@@ -12,15 +12,8 @@ jQuery(document).ready(function($) {
12
  }
13
  });
14
 
15
- jQuery(".lp-impress-num").each(function(){
16
- var empty = jQuery(this).text();
17
- if ( empty === "" || empty === "0" ){
18
- jQuery(this).parent().parent().find(".lp-letter").css("color", "#ccc");
19
- jQuery(this).parent().html("<span class='lp-no-stats'>no stats yet</span>");
20
- }
21
- });
22
  /* List tour */
23
- var tourbutton = '<a class="" id="lp-tour" style="font-size:13px;">Need help? Take the tour</a>';
24
  jQuery(tourbutton).appendTo(".wrap h1");
25
  jQuery("body").on('click', '#lp-tour', function () {
26
  jQuery(this).hide();
@@ -75,43 +68,6 @@ jQuery("body").on('mouseleave', 'tr.type-landing-page', function () {
75
  jQuery(this).parent().find(".lp-varation-stat-ul").show();
76
  });
77
 
78
- jQuery('.lp-letter, .cr-number, .qtip').on('mouseenter', function(event) {
79
- // Bind the qTip within the event handler
80
- var text_in_tip = jQuery(this).attr("data-notes");
81
- var letter = jQuery(this).attr("data-letter");
82
- var status = "<span class='lp-paused'>" + jQuery(this).parent().attr("rel") + "</span>";
83
- var winner = "<span class='lp-win'>" + jQuery(this).parent().attr("data-lp") + "</span>";
84
- jQuery(this).qtip({
85
- overwrite: false, // Make sure the tooltip won't be overridden once created
86
- content: {
87
- text: text_in_tip,
88
- title: {
89
- text: 'Variation ' + letter + "<span class='lp-extra'>" + status + winner + "</span>" + "<span class='lp-pop-close'>close</span>"
90
- }
91
- },
92
- position: {
93
- my: 'bottom center', // Use the corner...
94
- at: 'top center', // ...and opposite corner
95
- viewport: jQuery(window)
96
- },
97
- style: {
98
- classes: 'qtip-shadow qtip-jtools',
99
- },
100
- show: {
101
- event: event.type, // Use the same show event as the one that triggered the event handler
102
- ready: true, // Show the tooltip as soon as it's bound, vital so it shows up the first time you hover!
103
- solo: true
104
- },
105
- hide: 'unfocus'
106
- //hide: { when: { event: 'inactive' }, delay: 1200 }
107
- }, event); // Pass through our original event to qTip
108
- })
109
-
110
- jQuery('.lp-letter').on('mouseleave', function(event) {
111
-
112
-
113
- });
114
-
115
  jQuery("body").on("click", ".lp-pop-close", function(event) {
116
  jQuery(this).parent().parent().parent().hide();
117
  });
12
  }
13
  });
14
 
 
 
 
 
 
 
 
15
  /* List tour */
16
+ var tourbutton = '<a class="" id="lp-tour" style="font-size:13px;">Need help? Take the tour</a>';
17
  jQuery(tourbutton).appendTo(".wrap h1");
18
  jQuery("body").on('click', '#lp-tour', function () {
19
  jQuery(this).hide();
68
  jQuery(this).parent().find(".lp-varation-stat-ul").show();
69
  });
70
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  jQuery("body").on("click", ".lp-pop-close", function(event) {
72
  jQuery(this).parent().parent().parent().hide();
73
  });
assets/libraries/jquery-qtip/jquery.qtip.min.js DELETED
@@ -1,2 +0,0 @@
1
- /*! qtip2 v2.0.0 | http://craigsworks.com/projects/qtip2/ | Licensed MIT, GPL */
2
- (function(e,t,n){(function(e){"use strict";typeof define=="function"&&define.amd?define(["jquery"],e):jQuery&&!jQuery.fn.qtip&&e(jQuery)})(function(r){function _(n){E={pageX:n.pageX,pageY:n.pageY,type:"mousemove",scrollX:e.pageXOffset||t.body.scrollLeft||t.documentElement.scrollLeft,scrollY:e.pageYOffset||t.body.scrollTop||t.documentElement.scrollTop}}function D(e){var t=function(e){return e===o||"object"!=typeof e},n=function(e){return!r.isFunction(e)&&(!e&&!e.attr||e.length<1||"object"==typeof e&&!e.jquery&&!e.then)};if(!e||"object"!=typeof e)return s;t(e.metadata)&&(e.metadata={type:e.metadata});if("content"in e){if(t(e.content)||e.content.jquery)e.content={text:e.content};n(e.content.text||s)&&(e.content.text=s),"title"in e.content&&(t(e.content.title)&&(e.content.title={text:e.content.title}),n(e.content.title.text||s)&&(e.content.title.text=s))}return"position"in e&&t(e.position)&&(e.position={my:e.position,at:e.position}),"show"in e&&t(e.show)&&(e.show=e.show.jquery?{target:e.show}:{event:e.show}),"hide"in e&&t(e.hide)&&(e.hide=e.hide.jquery?{target:e.hide}:{event:e.hide}),"style"in e&&t(e.style)&&(e.style={classes:e.style}),r.each(w,function(){this.sanitize&&this.sanitize(e)}),e}function P(u,a,f,l){function q(e){var t=0,n,r=a,i=e.split(".");while(r=r[i[t++]])t<i.length&&(n=r);return[n||a,i.pop()]}function R(e){return T.concat("").join(e?"-"+e+" ":" ")}function U(){var e=a.style.widget,t=H.hasClass(j);H.removeClass(j),j=e?"ui-state-disabled":"qtip-disabled",H.toggleClass(j,t),H.toggleClass("ui-helper-reset "+R(),e).toggleClass(C,a.style.def&&!e),F.content&&F.content.toggleClass(R("content"),e),F.titlebar&&F.titlebar.toggleClass(R("header"),e),F.button&&F.button.toggleClass(S+"-icon",!e)}function z(e){F.title&&(F.titlebar.remove(),F.titlebar=F.title=F.button=o,e!==s&&m.reposition())}function W(){var e=a.content.title.button,t=typeof e=="string",n=t?e:"Close tooltip";F.button&&F.button.remove(),e.jquery?F.button=e:F.button=r("<a />",{"class":"qtip-close "+(a.style.widget?"":S+"-icon"),title:n,"aria-label":n}).prepend(r("<span />",{"class":"ui-icon ui-icon-close",html:"&times;"})),F.button.appendTo(F.titlebar||H).attr("role","button").click(function(e){return H.hasClass(j)||m.hide(e),s})}function X(){var e=y+"-title";F.titlebar&&z(),F.titlebar=r("<div />",{"class":S+"-titlebar "+(a.style.widget?R("header"):"")}).append(F.title=r("<div />",{id:e,"class":S+"-title","aria-atomic":i})).insertBefore(F.content).delegate(".qtip-close","mousedown keydown mouseup keyup mouseout",function(e){r(this).toggleClass("ui-state-active ui-state-focus",e.type.substr(-4)==="down")}).delegate(".qtip-close","mouseover mouseout",function(e){r(this).toggleClass("ui-state-hover",e.type==="mouseover")}),a.content.title.button&&W()}function V(e){var t=F.button;if(!m.rendered)return s;e?W():t.remove()}function J(e,t){var n=F.title;if(!m.rendered||!e)return s;r.isFunction(e)&&(e=e.call(u,I.event,m));if(e===s||!e&&e!=="")return z(s);e.jquery&&e.length>0?n.empty().append(e.css({display:"block"})):n.html(e),t!==s&&m.rendered&&H[0].offsetWidth>0&&m.reposition(I.event)}function K(e){e&&r.isFunction(e.done)&&e.done(function(e){Q(e,null,s)})}function Q(e,t,i){function f(e){function a(n){n&&(delete u[n.src],clearTimeout(m.timers.img[n.src]),r(n).unbind(B)),r.isEmptyObject(u)&&(t!==s&&m.reposition(I.event),e())}var i,u={};if((i=o.find("img[src]:not([height]):not([width])")).length===0)return a();i.each(function(e,t){if(u[t.src]!==n)return;var i=0,s=3;(function o(){if(t.height||t.width||i>s)return a(t);i+=1,m.timers.img[t.src]=setTimeout(o,700)})(),r(t).bind("error"+B+" load"+B,function(){a(this)}),u[t.src]=t})}var o=F.content;return!m.rendered||!e?s:(r.isFunction(e)&&(e=e.call(u,I.event,m)||""),i!==s&&K(a.content.deferred),e.jquery&&e.length>0?o.empty().append(e.css({display:"block"})):o.html(e),m.rendered<0?H.queue("fx",f):(P=0,f(r.noop)),m)}function G(){function h(e){if(H.hasClass(j))return s;clearTimeout(m.timers.show),clearTimeout(m.timers.hide);var t=function(){m.toggle(i,e)};a.show.delay>0?m.timers.show=setTimeout(t,a.show.delay):t()}function p(e){if(H.hasClass(j)||A||P)return s;var t=r(e.relatedTarget||e.target),i=t.closest(N)[0]===H[0],u=t[0]===o.show[0];clearTimeout(m.timers.show),clearTimeout(m.timers.hide);if(n.target==="mouse"&&i||a.hide.fixed&&/mouse(out|leave|move)/.test(e.type)&&(i||u)){try{e.preventDefault(),e.stopImmediatePropagation()}catch(f){}return}a.hide.delay>0?m.timers.hide=setTimeout(function(){m.hide(e)},a.hide.delay):m.hide(e)}function d(e){if(H.hasClass(j))return s;clearTimeout(m.timers.inactive),m.timers.inactive=setTimeout(function(){m.hide(e)},a.hide.inactive)}function v(e){m.rendered&&H[0].offsetWidth>0&&m.reposition(e)}var n=a.position,o={show:a.show.target,hide:a.hide.target,viewport:r(n.viewport),document:r(t),body:r(t.body),window:r(e)},l={show:r.trim(""+a.show.event).split(" "),hide:r.trim(""+a.hide.event).split(" ")},c=r.browser.msie&&parseInt(r.browser.version,10)===6;H.bind("mouseenter"+B+" mouseleave"+B,function(e){var t=e.type==="mouseenter";t&&m.focus(e),H.toggleClass(L,t)}),/mouse(out|leave)/i.test(a.hide.event)&&a.hide.leave==="window"&&o.window.bind("mouseout"+B+" blur"+B,function(e){!/select|option/.test(e.target.nodeName)&&!e.relatedTarget&&m.hide(e)}),a.hide.fixed?(o.hide=o.hide.add(H),H.bind("mouseover"+B,function(){H.hasClass(j)||clearTimeout(m.timers.hide)})):/mouse(over|enter)/i.test(a.show.event)&&o.hide.bind("mouseleave"+B,function(e){clearTimeout(m.timers.show)}),(""+a.hide.event).indexOf("unfocus")>-1&&n.container.closest("html").bind("mousedown"+B+" touchstart"+B,function(e){var t=r(e.target),n=m.rendered&&!H.hasClass(j)&&H[0].offsetWidth>0,i=t.parents(N).filter(H[0]).length>0;t[0]!==u[0]&&t[0]!==H[0]&&!i&&!u.has(t[0]).length&&!t.attr("disabled")&&m.hide(e)}),"number"==typeof a.hide.inactive&&(o.show.bind("qtip-"+f+"-inactive",d),r.each(b.inactiveEvents,function(e,t){o.hide.add(F.tooltip).bind(t+B+"-inactive",d)})),r.each(l.hide,function(e,t){var n=r.inArray(t,l.show),i=r(o.hide);n>-1&&i.add(o.show).length===i.length||t==="unfocus"?(o.show.bind(t+B,function(e){H[0].offsetWidth>0?p(e):h(e)}),delete l.show[n]):o.hide.bind(t+B,p)}),r.each(l.show,function(e,t){o.show.bind(t+B,h)}),"number"==typeof a.hide.distance&&o.show.add(H).bind("mousemove"+B,function(e){var t=I.origin||{},n=a.hide.distance,r=Math.abs;(r(e.pageX-t.pageX)>=n||r(e.pageY-t.pageY)>=n)&&m.hide(e)}),n.target==="mouse"&&(o.show.bind("mousemove"+B,_),n.adjust.mouse&&(a.hide.event&&(H.bind("mouseleave"+B,function(e){(e.relatedTarget||e.target)!==o.show[0]&&m.hide(e)}),F.target.bind("mouseenter"+B+" mouseleave"+B,function(e){I.onTarget=e.type==="mouseenter"})),o.document.bind("mousemove"+B,function(e){m.rendered&&I.onTarget&&!H.hasClass(j)&&H[0].offsetWidth>0&&m.reposition(e||E)}))),(n.adjust.resize||o.viewport.length)&&(r.event.special.resize?o.viewport:o.window).bind("resize"+B,v),o.window.bind("scroll"+B,v)}function Y(){var n=[a.show.target[0],a.hide.target[0],m.rendered&&F.tooltip[0],a.position.container[0],a.position.viewport[0],a.position.container.closest("html")[0],e,t];m.rendered?r([]).pushStack(r.grep(n,function(e){return typeof e=="object"})).unbind(B):a.show.target.unbind(B+"-create")}var m=this,g=t.body,y=S+"-"+f,A=0,P=0,H=r(),B=".qtip-"+f,j="qtip-disabled",F,I;m.id=f,m.rendered=s,m.destroyed=s,m.elements=F={target:u},m.timers={img:{}},m.options=a,m.checks={},m.plugins={},m.cache=I={event:{},target:r(),disabled:s,attr:l,onTarget:s,lastClass:""},m.checks.builtin={"^id$":function(e,t,n){var o=n===i?b.nextid:n,u=S+"-"+o;o!==s&&o.length>0&&!r("#"+u).length&&(H[0].id=u,F.content[0].id=u+"-content",F.title[0].id=u+"-title")},"^content.text$":function(e,t,n){Q(a.content.text)},"^content.deferred$":function(e,t,n){K(a.content.deferred)},"^content.title.text$":function(e,t,n){if(!n)return z();!F.title&&n&&X(),J(n)},"^content.title.button$":function(e,t,n){V(n)},"^position.(my|at)$":function(e,t,n){"string"==typeof n&&(e[t]=new w.Corner(n))},"^position.container$":function(e,t,n){m.rendered&&H.appendTo(n)},"^show.ready$":function(){m.rendered?m.toggle(i):m.render(1)},"^style.classes$":function(e,t,n){H.attr("class",S+" qtip "+n)},"^style.width|height":function(e,t,n){H.css(t,n)},"^style.widget|content.title":U,"^events.(render|show|move|hide|focus|blur)$":function(e,t,n){H[(r.isFunction(n)?"":"un")+"bind"]("tooltip"+t,n)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){var e=a.position;H.attr("tracking",e.target==="mouse"&&e.adjust.mouse),Y(),G()}},r.extend(m,{_triggerEvent:function(e,t,n){var i=r.Event("tooltip"+e);return i.originalEvent=(n?r.extend({},n):o)||I.event||o,H.trigger(i,[m].concat(t||[])),!i.isDefaultPrevented()},render:function(e){if(m.rendered)return m;var t=a.content.text,n=a.content.title,o=a.position;return r.attr(u[0],"aria-describedby",y),H=F.tooltip=r("<div/>",{id:y,"class":[S,C,a.style.classes,S+"-pos-"+a.position.my.abbrev()].join(" "),width:a.style.width||"",height:a.style.height||"",tracking:o.target==="mouse"&&o.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":s,"aria-describedby":y+"-content","aria-hidden":i}).toggleClass(j,I.disabled).data("qtip",m).appendTo(a.position.container).append(F.content=r("<div />",{"class":S+"-content",id:y+"-content","aria-atomic":i})),m.rendered=-1,A=1,n.text?(X(),r.isFunction(n.text)||J(n.text,s)):n.button&&W(),(!r.isFunction(t)||t.then)&&Q(t,s),m.rendered=i,U(),r.each(a.events,function(e,t){r.isFunction(t)&&H.bind(e==="toggle"?"tooltipshow tooltiphide":"tooltip"+e,t)}),r.each(w,function(){this.initialize==="render"&&this(m)}),G(),H.queue("fx",function(t){m._triggerEvent("render"),A=0,(a.show.ready||e)&&m.toggle(i,I.event,s),t()}),m},get:function(e){var t,n;switch(e.toLowerCase()){case"dimensions":t={height:H.outerHeight(s),width:H.outerWidth(s)};break;case"offset":t=w.offset(H,a.position.container);break;default:n=q(e.toLowerCase()),t=n[0][n[1]],t=t.precedance?t.string():t}return t},set:function(e,t){function h(e,t){var n,r,i;for(n in l)for(r in l[n])if(i=(new RegExp(r,"i")).exec(e))t.push(i),l[n][r].apply(m,t)}var n=/^position\.(my|at|adjust|target|container)|style|content|show\.ready/i,u=/^content\.(title|attr)|style/i,f=s,l=m.checks,c;return"string"==typeof e?(c=e,e={},e[c]=t):e=r.extend(i,{},e),r.each(e,function(t,i){var s=q(t.toLowerCase()),o;o=s[0][s[1]],s[0][s[1]]="object"==typeof i&&i.nodeType?r(i):i,e[t]=[s[0],s[1],i,o],f=n.test(t)||f}),D(a),A=1,r.each(e,h),A=0,m.rendered&&H[0].offsetWidth>0&&f&&m.reposition(a.position.target==="mouse"?o:I.event),m},toggle:function(e,n){function b(){e?(r.browser.msie&&H[0].style.removeAttribute("filter"),H.css("overflow",""),"string"==typeof u.autofocus&&r(u.autofocus,H).focus(),u.target.trigger("qtip-"+f+"-inactive")):H.css({display:"",visibility:"",opacity:"",left:"",top:""}),m._triggerEvent(e?"visible":"hidden")}if(n){if(/over|enter/.test(n.type)&&/out|leave/.test(I.event.type)&&a.show.target.add(n.target).length===a.show.target.length&&H.has(n.relatedTarget).length)return m;I.event=r.extend({},n)}if(!m.rendered)return e?m.render(1):m;var o=e?"show":"hide",u=a[o],l=a[e?"hide":"show"],c=a.position,h=a.content,p=H[0].offsetWidth>0,d=e||u.target.length===1,v=!n||u.target.length<2||I.target[0]===n.target,g,y;return(typeof e).search("boolean|number")&&(e=!p),!H.is(":animated")&&p===e&&v?m:m._triggerEvent(o,[90])?(r.attr(H[0],"aria-hidden",!e),e?(I.origin=r.extend({},E),m.focus(n),r.isFunction(h.text)&&Q(h.text,s),r.isFunction(h.title.text)&&J(h.title.text,s),!M&&c.target==="mouse"&&c.adjust.mouse&&(r(t).bind("mousemove.qtip",_),M=i),m.reposition(n,arguments[2]),!u.solo||r(N,u.solo).not(H).qtip("hide",r.Event("tooltipsolo"))):(clearTimeout(m.timers.show),delete I.origin,M&&!r(N+'[tracking="true"]:visible',u.solo).not(H).length&&(r(t).unbind("mousemove.qtip"),M=s),m.blur(n)),u.effect===s||d===s?(H[o](),b.call(H)):r.isFunction(u.effect)?(H.stop(1,1),u.effect.call(H,m),H.queue("fx",function(e){b(),e()})):H.fadeTo(90,e?1:0,b),e&&u.target.trigger("qtip-"+f+"-inactive"),m):m},show:function(e){return m.toggle(i,e)},hide:function(e){return m.toggle(s,e)},focus:function(e){if(!m.rendered)return m;var t=r(N),n=parseInt(H[0].style.zIndex,10),i=b.zindex+t.length,s=r.extend({},e),o;return H.hasClass(k)||m._triggerEvent("focus",[i],s)&&(n!==i&&(t.each(function(){this.style.zIndex>n&&(this.style.zIndex=this.style.zIndex-1)}),t.filter("."+k).qtip("blur",s)),H.addClass(k)[0].style.zIndex=i),m},blur:function(e){return H.removeClass(k),m._triggerEvent("blur",[H.css("zIndex")],e),m},reposition:function(n,i){if(!m.rendered||A)return m;A=1;var o=a.position.target,u=a.position,f=u.my,l=u.at,g=u.adjust,y=g.method.split(" "),b=H.outerWidth(s),S=H.outerHeight(s),x=0,T=0,N=H.css("position"),C=u.viewport,k={left:0,top:0},L=u.container,O=H[0].offsetWidth>0,M=n&&n.type==="scroll",_=r(e),D,P;if(r.isArray(o)&&o.length===2)l={x:h,y:c},k={left:o[0],top:o[1]};else if(o==="mouse"&&(n&&n.pageX||I.event.pageX))l={x:h,y:c},n=E&&E.pageX&&(g.mouse||!n||!n.pageX)?{pageX:E.pageX,pageY:E.pageY}:(!n||n.type!=="resize"&&n.type!=="scroll"?n&&n.pageX&&n.type==="mousemove"?n:!g.mouse&&I.origin&&I.origin.pageX&&a.show.distance?I.origin:n:I.event)||n||I.event||E||{},N!=="static"&&(k=L.offset()),k={left:n.pageX-k.left,top:n.pageY-k.top},g.mouse&&M&&(k.left-=E.scrollX-_.scrollLeft(),k.top-=E.scrollY-_.scrollTop());else{o==="event"&&n&&n.target&&n.type!=="scroll"&&n.type!=="resize"?I.target=r(n.target):o!=="event"&&(I.target=r(o.jquery?o:F.target)),o=I.target,o=r(o).eq(0);if(o.length===0)return m;o[0]===t||o[0]===e?(x=w.iOS?e.innerWidth:o.width(),T=w.iOS?e.innerHeight:o.height(),o[0]===e&&(k={top:(C||o).scrollTop(),left:(C||o).scrollLeft()})):w.imagemap&&o.is("area")?D=w.imagemap(m,o,l,w.viewport?y:s):w.svg&&o[0].ownerSVGElement?D=w.svg(m,o,l,w.viewport?y:s):(x=o.outerWidth(s),T=o.outerHeight(s),k=w.offset(o,L)),D&&(x=D.width,T=D.height,P=D.offset,k=D.position);if(w.iOS>3.1&&w.iOS<4.1||w.iOS>=4.3&&w.iOS<4.33||!w.iOS&&N==="fixed")k.left-=_.scrollLeft(),k.top-=_.scrollTop();k.left+=l.x===d?x:l.x===v?x/2:0,k.top+=l.y===p?T:l.y===v?T/2:0}return k.left+=g.x+(f.x===d?-b:f.x===v?-b/2:0),k.top+=g.y+(f.y===p?-S:f.y===v?-S/2:0),w.viewport?(k.adjusted=w.viewport(m,k,u,x,T,b,S),P&&k.adjusted.left&&(k.left+=P.left),P&&k.adjusted.top&&(k.top+=P.top)):k.adjusted={left:0,top:0},m._triggerEvent("move",[k,C.elem||C],n)?(delete k.adjusted,i===s||!O||isNaN(k.left)||isNaN(k.top)||o==="mouse"||!r.isFunction(u.effect)?H.css(k):r.isFunction(u.effect)&&(u.effect.call(H,m,r.extend({},k)),H.queue(function(e){r(this).css({opacity:"",height:""}),r.browser.msie&&this.style.removeAttribute("filter"),e()})),A=0,m):m},disable:function(e){return"boolean"!=typeof e&&(e=!H.hasClass(j)&&!I.disabled),m.rendered?(H.toggleClass(j,e),r.attr(H[0],"aria-disabled",e)):I.disabled=!!e,m},enable:function(){return m.disable(s)},destroy:function(){var e=u[0],t=r.attr(e,O),n=u.data("qtip");m.destroyed=i,m.rendered&&(H.stop(1,0).remove(),r.each(m.plugins,function(){this.destroy&&this.destroy()})),clearTimeout(m.timers.show),clearTimeout(m.timers.hide),Y();if(!n||m===n)r.removeData(e,"qtip"),a.suppress&&t&&(r.attr(e,"title",t),u.removeAttr(O)),u.removeAttr("aria-describedby");return u.unbind(".qtip-"+f),delete x[m.id],u}})}function H(e,n){var u,a,f,l,c,h=r(this),p=r(t.body),d=this===t?p:h,v=h.metadata?h.metadata(n.metadata):o,m=n.metadata.type==="html5"&&v?v[n.metadata.name]:o,g=h.data(n.metadata.name||"qtipopts");try{g=typeof g=="string"?r.parseJSON(g):g}catch(y){}l=r.extend(i,{},b.defaults,n,typeof g=="object"?D(g):o,D(m||v)),a=l.position,l.id=e;if("boolean"==typeof l.content.text){f=h.attr(l.content.attr);if(l.content.attr===s||!f)return s;l.content.text=f}a.container.length||(a.container=p),a.target===s&&(a.target=d),l.show.target===s&&(l.show.target=d),l.show.solo===i&&(l.show.solo=a.container.closest("body")),l.hide.target===s&&(l.hide.target=d),l.position.viewport===i&&(l.position.viewport=a.container),a.container=a.container.eq(0),a.at=new w.Corner(a.at),a.my=new w.Corner(a.my);if(r.data(this,"qtip"))if(l.overwrite)h.qtip("destroy");else if(l.overwrite===s)return s;return l.suppress&&(c=r.attr(this,"title"))&&r(this).removeAttr("title").attr(O,c).attr("title",""),u=new P(h,l,e,!!f),r.data(this,"qtip",u),h.bind("remove.qtip-"+e+" removeqtip.qtip-"+e,function(){u.destroy()}),u}function B(e){var t=this,n=e.elements.tooltip,o=e.options.content.ajax,u=b.defaults.content.ajax,a=".qtip-ajax",f=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,l=i,c=s,h;e.checks.ajax={"^content.ajax":function(e,r,i){r==="ajax"&&(o=i),r==="once"?t.init():o&&o.url?t.load():n.unbind(a)}},r.extend(t,{init:function(){return o&&o.url&&n.unbind(a)[o.once?"one":"bind"]("tooltipshow"+a,t.load),t},load:function(n){function g(){var t;if(e.destroyed)return;l=s,v&&(c=i,e.show(n.originalEvent)),(t=u.complete||o.complete)&&r.isFunction(t)&&t.apply(o.context||e,arguments)}function y(t,n,i){var s;if(e.destroyed)return;d&&"string"==typeof t&&(t=r("<div/>").append(t.replace(f,"")).find(d)),(s=u.success||o.success)&&r.isFunction(s)?s.call(o.context||e,t,n,i):e.set("content.text",t)}function b(t,n,r){if(e.destroyed||t.status===0)return;e.set("content.text",n+": "+r)}if(c){c=s;return}var a=o.url.lastIndexOf(" "),p=o.url,d,v=!o.loading&&l;if(v)try{n.preventDefault()}catch(m){}else if(n&&n.isDefaultPrevented())return t;h&&h.abort&&h.abort(),a>-1&&(d=p.substr(a),p=p.substr(0,a)),h=r.ajax(r.extend({error:u.error||b,context:e},o,{url:p,success:y,complete:g}))},destroy:function(){h&&h.abort&&h.abort(),e.destroyed=i}}),t.init()}function j(e,t,n){var r=Math.ceil(t/2),i=Math.ceil(n/2),s={bottomright:[[0,0],[t,n],[t,0]],bottomleft:[[0,0],[t,0],[0,n]],topright:[[0,n],[t,0],[t,n]],topleft:[[0,0],[0,n],[t,n]],topcenter:[[0,n],[r,0],[t,n]],bottomcenter:[[0,0],[t,0],[r,n]],rightcenter:[[0,0],[t,i],[0,n]],leftcenter:[[t,0],[t,n],[0,i]]};return s.lefttop=s.bottomright,s.righttop=s.bottomleft,s.leftbottom=s.topright,s.rightbottom=s.topleft,s[e.string()]}function F(e,t){function A(e){var t=E.is(":visible");E.show(),e(),E.toggle(t)}function O(){x.width=g.height,x.height=g.width}function M(){x.width=g.width,x.height=g.height}function _(t,r,o,f){if(!b.tip)return;var l=m.corner.clone(),w=o.adjusted,E=e.options.position.adjust.method.split(" "),x=E[0],T=E[1]||E[0],N={left:s,top:s,x:0,y:0},C,k={},L;m.corner.fixed!==i&&(x===y&&l.precedance===u&&w.left&&l.y!==v?l.precedance=l.precedance===u?a:u:x!==y&&w.left&&(l.x=l.x===v?w.left>0?h:d:l.x===h?d:h),T===y&&l.precedance===a&&w.top&&l.x!==v?l.precedance=l.precedance===a?u:a:T!==y&&w.top&&(l.y=l.y===v?w.top>0?c:p:l.y===c?p:c),l.string()!==S.corner.string()&&(S.top!==w.top||S.left!==w.left)&&m.update(l,s)),C=m.position(l,w),C[l.x]+=P(l,l.x),C[l.y]+=P(l,l.y),C.right!==n&&(C.left=-C.right),C.bottom!==n&&(C.top=-C.bottom),C.user=Math.max(0,g.offset);if(N.left=x===y&&!!w.left)l.x===v?k["margin-left"]=N.x=C["margin-left"]:(L=C.right!==n?[w.left,-C.left]:[-w.left,C.left],(N.x=Math.max(L[0],L[1]))>L[0]&&(o.left-=w.left,N.left=s),k[C.right!==n?d:h]=N.x);if(N.top=T===y&&!!w.top)l.y===v?k["margin-top"]=N.y=C["margin-top"]:(L=C.bottom!==n?[w.top,-C.top]:[-w.top,C.top],(N.y=Math.max(L[0],L[1]))>L[0]&&(o.top-=w.top,N.top=s),k[C.bottom!==n?p:c]=N.y);b.tip.css(k).toggle(!(N.x&&N.y||l.x===v&&N.y||l.y===v&&N.x)),o.left-=C.left.charAt?C.user:x!==y||N.top||!N.left&&!N.top?C.left:0,o.top-=C.top.charAt?C.user:T!==y||N.left||!N.left&&!N.top?C.top:0,S.left=w.left,S.top=w.top,S.corner=l.clone()}function D(){var t=g.corner,n=e.options.position,r=n.at,o=n.my.string?n.my.string():n.my;return t===s||o===s&&r===s?s:(t===i?m.corner=new w.Corner(o):t.string||(m.corner=new w.Corner(t),m.corner.fixed=i),S.corner=new w.Corner(m.corner.string()),m.corner.string()!=="centercenter")}function P(e,t,n){t=t?t:e[e.precedance];var r=b.titlebar&&e.y===c,i=r?b.titlebar:E,s="border-"+t+"-width",o=function(e){return parseInt(e.css(s),10)},u;return A(function(){u=(n?o(n):o(b.content)||o(i)||o(E))||0}),u}function H(e){var t=b.titlebar&&e.y===c,n=t?b.titlebar:b.content,i=r.browser.mozilla,s=i?"-moz-":r.browser.webkit?"-webkit-":"",o="border-radius-"+e.y+e.x,u="border-"+e.y+"-"+e.x+"-radius",a=function(e){return parseInt(n.css(e),10)||parseInt(E.css(e),10)},f;return A(function(){f=a(u)||a(s+u)||a(s+o)||a(o)||0}),f}function B(e){function N(e,t,n){var r=e.css(t)||p;return n&&r===e.css(n)?s:f.test(r)?s:r}var t,n,o,u=b.tip.css("cssText",""),a=e||m.corner,f=/rgba?\(0, 0, 0(, 0)?\)|transparent|#123456/i,l="border-"+a[a.precedance]+"-color",h="background-color",p="transparent",d=" !important",y=b.titlebar,w=y&&(a.y===c||a.y===v&&u.position().top+x.height/2+g.offset<y.outerHeight(i)),S=w?y:b.content;A(function(){T.fill=N(u,h)||N(S,h)||N(b.content,h)||N(E,h)||u.css(h),T.border=N(u,l,"color")||N(S,l,"color")||N(b.content,l,"color")||N(E,l,"color")||E.css(l),r("*",u).add(u).css("cssText",h+":"+p+d+";border:0"+d+";")})}function F(e){var t=e.precedance===a,n=x[t?f:l],r=x[t?l:f],i=e.string().indexOf(v)>-1,s=n*(i?.5:1),o=Math.pow,u=Math.round,c,h,p,d=Math.sqrt(o(s,2)+o(r,2)),m=[N/s*d,N/r*d];return m[2]=Math.sqrt(o(m[0],2)-o(N,2)),m[3]=Math.sqrt(o(m[1],2)-o(N,2)),c=d+m[2]+m[3]+(i?0:m[0]),h=c/d,p=[u(h*r),u(h*n)],{height:p[t?0:1],width:p[t?1:0]}}function I(e,t,n){return"<qvml:"+e+' xmlns="urn:schemas-microsoft.com:vml" class="qtip-vml" '+(t||"")+' style="behavior: url(#default#VML); '+(n||"")+'" />'}var m=this,g=e.options.style.tip,b=e.elements,E=b.tooltip,S={top:0,left:0},x={width:g.width,height:g.height},T={},N=g.border||0,C=".qtip-tip",k=!!(r("<canvas />")[0]||{}).getContext,L;m.corner=o,m.mimic=o,m.border=N,m.offset=g.offset,m.size=x,e.checks.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){m.init()||m.destroy(),e.reposition()},"^style.tip.(height|width)$":function(){x={width:g.width,height:g.height},m.create(),m.update(),e.reposition()},"^content.title.text|style.(classes|widget)$":function(){b.tip&&b.tip.length&&m.update()}},r.extend(m,{init:function(){var e=D()&&(k||r.browser.msie);return e&&(m.create(),m.update(),E.unbind(C).bind("tooltipmove"+C,_)),e},create:function(){var e=x.width,t=x.height,n;b.tip&&b.tip.remove(),b.tip=r("<div />",{"class":"qtip-tip"}).css({width:e,height:t}).prependTo(E),k?r("<canvas />").appendTo(b.tip)[0].getContext("2d").save():(n=I("shape",'coordorigin="0,0"',"position:absolute;"),b.tip.html(n+n),r("*",b.tip).bind("click mousedown",function(e){e.stopPropagation()}))},update:function(e,t){var n=b.tip,f=n.children(),l=x.width,y=x.height,C=g.mimic,L=Math.round,A,_,D,H,q;e||(e=S.corner||m.corner),C===s?C=e:(C=new w.Corner(C),C.precedance=e.precedance,C.x==="inherit"?C.x=e.x:C.y==="inherit"?C.y=e.y:C.x===C.y&&(C[e.precedance]=e[e.precedance])),A=C.precedance,e.precedance===u?O():M(),b.tip.css({width:l=x.width,height:y=x.height}),B(e),T.border!=="transparent"?(N=P(e,o),g.border===0&&N>0&&(T.fill=T.border),m.border=N=g.border!==i?g.border:N):m.border=N=0,D=j(C,l,y),m.size=q=F(e),n.css(q).css("line-height",q.height+"px"),e.precedance===a?H=[L(C.x===h?N:C.x===d?q.width-l-N:(q.width-l)/2),L(C.y===c?q.height-y:0)]:H=[L(C.x===h?q.width-l:0),L(C.y===c?N:C.y===p?q.height-y-N:(q.height-y)/2)],k?(f.attr(q),_=f[0].getContext("2d"),_.restore(),_.save(),_.clearRect(0,0,3e3,3e3),_.fillStyle=T.fill,_.strokeStyle=T.border,_.lineWidth=N*2,_.lineJoin="miter",_.miterLimit=100,_.translate(H[0],H[1]),_.beginPath(),_.moveTo(D[0][0],D[0][1]),_.lineTo(D[1][0],D[1][1]),_.lineTo(D[2][0],D[2][1]),_.closePath(),N&&(E.css("background-clip")==="border-box"&&(_.strokeStyle=T.fill,_.stroke()),_.strokeStyle=T.border,_.stroke()),_.fill()):(D="m"+D[0][0]+","+D[0][1]+" l"+D[1][0]+","+D[1][1]+" "+D[2][0]+","+D[2][1]+" xe",H[2]=N&&/^(r|b)/i.test(e.string())?parseFloat(r.browser.version,10)===8?2:1:0,f.css({coordsize:l+N+" "+(y+N),antialias:""+(C.string().indexOf(v)>-1),left:H[0],top:H[1],width:l+N,height:y+N}).each(function(e){var t=r(this);t[t.prop?"prop":"attr"]({coordsize:l+N+" "+(y+N),path:D,fillcolor:T.fill,filled:!!e,stroked:!e}).toggle(!!N||!!e),!e&&t.html()===""&&t.html(I("stroke",'weight="'+N*2+'px" color="'+T.border+'" miterlimit="1000" joinstyle="miter"'))})),t!==s&&m.position(e)},position:function(e){var t=b.tip,n={},i=Math.max(0,g.offset),o,p,d;return g.corner===s||!t?s:(e=e||m.corner,o=e.precedance,p=F(e),d=[e.x,e.y],o===u&&d.reverse(),r.each(d,function(t,r){var s,u,d;r===v?(s=o===a?h:c,n[s]="50%",n["margin-"+s]=-Math.round(p[o===a?f:l]/2)+i):(s=P(e,r),u=P(e,r,b.content),d=H(e),n[r]=t?u:i+(d>s?d:-s))}),n[e[o]]-=p[o===u?f:l],t.css({top:"",bottom:"",left:"",right:"",margin:""}).css(n),n)},destroy:function(){b.tip&&b.tip.remove(),b.tip=!1,E.unbind(C)}}),m.init()}function I(n){function y(){m=r(v,f).not("[disabled]").map(function(){return typeof this.focus=="function"?this:null})}function b(e){m.length<1&&e.length?e.not("body").blur():m.first().focus()}function E(e){var t=r(e.target),n=t.closest(".qtip"),i;i=n.length<1?s:parseInt(n[0].style.zIndex,10)>parseInt(f[0].style.zIndex,10),!i&&r(e.target).closest(N)[0]!==f[0]&&b(t)}var o=this,u=n.options.show.modal,a=n.elements,f=a.tooltip,l="#qtip-overlay",c=".qtipmodal",h=c+n.id,p="is-modal-qtip",d=r(t.body),v=w.modal.focusable.join(","),m={},g;n.checks.modal={"^show.modal.(on|blur)$":function(){o.init(),a.overlay.toggle(f.is(":visible"))},"^content.text$":function(){y()}},r.extend(o,{init:function(){return u.on?(g=o.create(),f.attr(p,i).css("z-index",w.modal.zindex+r(N+"["+p+"]").length).unbind(c).unbind(h).bind("tooltipshow"+c+" tooltiphide"+c,function(e,t,n){var i=e.originalEvent;if(e.target===f[0])if(i&&e.type==="tooltiphide"&&/mouse(leave|enter)/.test(i.type)&&r(i.relatedTarget).closest(g[0]).length)try{e.preventDefault()}catch(s){}else(!i||i&&!i.solo)&&o[e.type.replace("tooltip","")](e,n)}).bind("tooltipfocus"+c,function(e){if(e.isDefaultPrevented()||e.target!==f[0])return;var t=r(N).filter("["+p+"]"),n=w.modal.zindex+t.length,i=parseInt(f[0].style.zIndex,10);g[0].style.zIndex=n-2,t.each(function(){this.style.zIndex>i&&(this.style.zIndex-=1)}),t.end().filter("."+k).qtip("blur",e.originalEvent),f.addClass(k)[0].style.zIndex=n;try{e.preventDefault()}catch(s){}}).bind("tooltiphide"+c,function(e){e.target===f[0]&&r("["+p+"]").filter(":visible").not(f).last().qtip("focus",e)}),u.escape&&r(t).unbind(h).bind("keydown"+h,function(e){e.keyCode===27&&f.hasClass(k)&&n.hide(e)}),u.blur&&a.overlay.unbind(h).bind("click"+h,function(e){f.hasClass(k)&&n.hide(e)}),y(),o):o},create:function(){function i(){g.css({height:n.height(),width:n.width()})}var t=r(l),n=r(e);return t.length?a.overlay=t.insertAfter(r(N).last()):(g=a.overlay=r("<div />",{id:l.substr(1),html:"<div></div>",mousedown:function(){return s}}).hide().insertAfter(r(N).last()),n.unbind(c).bind("resize"+c,i),i(),g)},toggle:function(e,t,n){if(e&&e.isDefaultPrevented())return o;var a=u.effect,l=t?"show":"hide",c=g.is(":visible"),v=r("["+p+"]").filter(":visible").not(f),m;return g||(g=o.create()),g.is(":animated")&&c===t&&g.data("toggleState")!==s||!t&&v.length?o:(t?(g.css({left:0,top:0}),g.toggleClass("blurs",u.blur),u.stealfocus!==s&&(d.bind("focusin"+h,E),b(r("body :focus")))):d.unbind("focusin"+h),g.stop(i,s).data("toggleState",t),r.isFunction(a)?a.call(g,t):a===s?g[l]():g.fadeTo(parseInt(n,10)||90,t?1:0,function(){t||r(this).hide()}),t||g.queue(function(e){g.css({left:"",top:""}).removeData("toggleState"),e()}),o)},show:function(e,t){return o.toggle(e,i,t)},hide:function(e,t){return o.toggle(e,s,t)},destroy:function(){var e=g;return e&&(e=r("["+p+"]").not(f).length<1,e?(a.overlay.remove(),r(t).unbind(c)):a.overlay.unbind(c+n.id),d.unbind("focusin"+h)),f.removeAttr(p).unbind(c)}}),o.init()}function q(n){var o=this,u=n.elements,a=n.options,c=u.tooltip,h=".ie6-"+n.id,p=r("select, object").length<1,d=0,v=s,m;n.checks.ie6={"^content|style$":function(e,t,n){redraw()}},r.extend(o,{init:function(){var n=r(e),s;p&&(u.bgiframe=r('<iframe class="qtip-bgiframe" frameborder="0" tabindex="-1" src="javascript:\'\';" style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=0); -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";"></iframe>'),u.bgiframe.appendTo(c),c.bind("tooltipmove"+h,o.adjustBGIFrame)),m=r("<div/>",{id:"qtip-rcontainer"}).appendTo(t.body),o.redraw(),u.overlay&&!v&&(s=function(){u.overlay[0].style.top=n.scrollTop()+"px"},n.bind("scroll.qtip-ie6, resize.qtip-ie6",s),s(),u.overlay.addClass("qtipmodal-ie6fix"),v=i)},adjustBGIFrame:function(){var e=n.get("dimensions"),t=n.plugins.tip,r=u.tip,i,s;s=parseInt(c.css("border-left-width"),10)||0,s={left:-s,top:-s},t&&r&&(i=t.corner.precedance==="x"?["width","left"]:["height","top"],s[i[1]]-=r[i[0]]()),u.bgiframe.css(s).css(e)},redraw:function(){if(n.rendered<1||d)return o;var e=a.style,t=a.position.container,r,i,s,u;return d=1,e.height&&c.css(l,e.height),e.width?c.css(f,e.width):(c.css(f,"").appendTo(m),i=c.width(),i%2<1&&(i+=1),s=c.css("max-width")||"",u=c.css("min-width")||"",r=(s+u).indexOf("%")>-1?t.width()/100:0,s=(s.indexOf("%")>-1?r:1)*parseInt(s,10)||i,u=(u.indexOf("%")>-1?r:1)*parseInt(u,10)||0,i=s+u?Math.min(Math.max(i,u),s):i,c.css(f,Math.round(i)).appendTo(t)),d=0,o},destroy:function(){p&&u.bgiframe.remove(),c.unbind(h)}}),o.init()}var i=!0,s=!1,o=null,u="x",a="y",f="width",l="height",c="top",h="left",p="bottom",d="right",v="center",m="flip",g="flipinvert",y="shift",b,w,E,S="qtip",x={},T=["ui-widget","ui-tooltip"],N="div.qtip."+S,C=S+"-default",k=S+"-focus",L=S+"-hover",A="_replacedByqTip",O="oldtitle",M;b=r.fn.qtip=function(e,t,u){var a=(""+e).toLowerCase(),f=o,l=r.makeArray(arguments).slice(1),c=l[l.length-1],h=this[0]?r.data(this[0],"qtip"):o;if(!arguments.length&&h||a==="api")return h;if("string"==typeof e)return this.each(function(){var e=r.data(this,"qtip");if(!e)return i;c&&c.timeStamp&&(e.cache.event=c);if(a!=="option"&&a!=="options"||!t)e[a]&&e[a].apply(e[a],l);else{if(!r.isPlainObject(t)&&u===n)return f=e.get(t),s;e.set(t,u)}}),f!==o?f:this;if("object"==typeof e||!arguments.length)return h=D(r.extend(i,{},e)),b.bind.call(this,h,c)},b.bind=function(e,t){return this.each(function(o){function p(e){function t(){c.render(typeof e=="object"||u.show.ready),a.show.add(a.hide).unbind(l)}if(c.cache.disabled)return s;c.cache.event=r.extend({},e),c.cache.target=e?r(e.target):[n],u.show.delay>0?(clearTimeout(c.timers.show),c.timers.show=setTimeout(t,u.show.delay),f.show!==f.hide&&a.hide.bind(f.hide,function(){clearTimeout(c.timers.show)})):t()}var u,a,f,l,c,h;h=r.isArray(e.id)?e.id[o]:e.id,h=!h||h===s||h.length<1||x[h]?b.nextid++:x[h]=h,l=".qtip-"+h+"-create",c=H.call(this,h,e);if(c===s)return i;u=c.options,r.each(w,function(){this.initialize==="initialize"&&this(c)}),a={show:u.show.target,hide:u.hide.target},f={show:r.trim(""+u.show.event).replace(/ /g,l+" ")+l,hide:r.trim(""+u.hide.event).replace(/ /g,l+" ")+l},/mouse(over|enter)/i.test(f.show)&&!/mouse(out|leave)/i.test(f.hide)&&(f.hide+=" mouseleave"+l),a.show.bind("mousemove"+l,function(e){_(e),c.cache.onTarget=i}),a.show.bind(f.show,p),(u.show.ready||u.prerender)&&p(t)}).attr("data-hasqtip",i)},w=b.plugins={Corner:function(e){e=(""+e).replace(/([A-Z])/," $1").replace(/middle/gi,v).toLowerCase(),this.x=(e.match(/left|right/i)||e.match(/center/)||["inherit"])[0].toLowerCase(),this.y=(e.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase();var t=e.charAt(0);this.precedance=t==="t"||t==="b"?a:u,this.string=function(){return this.precedance===a?this.y+this.x:this.x+this.y},this.abbrev=function(){var e=this.x.substr(0,1),t=this.y.substr(0,1);return e===t?e:this.precedance===a?t+e:e+t},this.invertx=function(e){this.x=this.x===h?d:this.x===d?h:e||this.x},this.inverty=function(e){this.y=this.y===c?p:this.y===p?c:e||this.y},this.clone=function(){return{x:this.x,y:this.y,precedance:this.precedance,string:this.string,abbrev:this.abbrev,clone:this.clone,invertx:this.invertx,inverty:this.inverty}}},offset:function(e,n){function c(e,t){i.left+=t*e.scrollLeft(),i.top+=t*e.scrollTop()}var i=e.offset(),s=e.closest("body"),o=r.browser.msie&&t.compatMode!=="CSS1Compat",u=n,a,f,l;if(u){do u.css("position")!=="static"&&(f=u.position(),i.left-=f.left+(parseInt(u.css("borderLeftWidth"),10)||0)+(parseInt(u.css("marginLeft"),10)||0),i.top-=f.top+(parseInt(u.css("borderTopWidth"),10)||0)+(parseInt(u.css("marginTop"),10)||0),!a&&(l=u.css("overflow"))!=="hidden"&&l!=="visible"&&(a=u));while((u=r(u[0].offsetParent)).length);(a&&a[0]!==s[0]||o)&&c(a||s,1)}return i},iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,5})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))||s,fn:{attr:function(e,t){if(this.length){var n=this[0],i="title",s=r.data(n,"qtip");if(e===i&&s&&"object"==typeof s&&s.options.suppress)return arguments.length<2?r.attr(n,O):(s&&s.options.content.attr===i&&s.cache.attr&&s.set("content.text",t),this.attr(O,t))}return r.fn["attr"+A].apply(this,arguments)},clone:function(e){var t=r([]),n="title",i=r.fn["clone"+A].apply(this,arguments);return e||i.filter("["+O+"]").attr("title",function(){return r.attr(this,O)}).removeAttr(O),i}}},r.each(w.fn,function(e,t){if(!t||r.fn[e+A])return i;var n=r.fn[e+A]=r.fn[e];r.fn[e]=function(){return t.apply(this,arguments)||n.apply(this,arguments)}}),r.ui||(r["cleanData"+A]=r.cleanData,r.cleanData=function(e){for(var t=0,i;(i=e[t])!==n;t++)try{r(i).triggerHandler("removeqtip")}catch(s){}r["cleanData"+A](e)}),b.version="2.0.0-nightly-15f5c6bc20",b.nextid=0,b.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),b.zindex=15e3,b.defaults={prerender:s,id:s,overwrite:i,suppress:i,content:{text:i,attr:"title",deferred:s,title:{text:s,button:s}},position:{my:"top left",at:"bottom right",target:s,container:s,viewport:s,adjust:{x:0,y:0,mouse:i,resize:i,method:"flipinvert flipinvert"},effect:function(e,t,n){r(this).animate(t,{duration:200,queue:s})}},show:{target:s,event:"mouseenter",effect:i,delay:90,solo:s,ready:s,autofocus:s},hide:{target:s,event:"mouseleave",effect:i,delay:0,fixed:s,inactive:s,leave:"window",distance:s},style:{classes:"",widget:s,width:s,height:s,def:i},events:{render:o,move:o,show:o,hide:o,toggle:o,visible:o,hidden:o,focus:o,blur:o}},w.svg=function(e,n,i,s){var o=r(t),u=n[0],a={width:0,height:0,position:{top:1e10,left:1e10}},f,l,c,h,p;while(!u.getBBox)u=u.parentNode;if(u.getBBox&&u.parentNode){f=u.getBBox(),l=u.getScreenCTM(),c=u.farthestViewportElement||u;if(!c.createSVGPoint)return a;h=c.createSVGPoint(),h.x=f.x,h.y=f.y,p=h.matrixTransform(l),a.position.left=p.x,a.position.top=p.y,h.x+=f.width,h.y+=f.height,p=h.matrixTransform(l),a.width=p.x-a.position.left,a.height=p.y-a.position.top,a.position.left+=o.scrollLeft(),a.position.top+=o.scrollTop()}return a},w.ajax=function(e){var t=e.plugins.ajax;return"object"==typeof t?t:e.plugins.ajax=new B(e)},w.ajax.initialize="render",w.ajax.sanitize=function(e){var t=e.content,n;t&&"ajax"in t&&(n=t.ajax,typeof n!="object"&&(n=e.content.ajax={url:n}),"boolean"!=typeof n.once&&n.once&&(n.once=!!n.once))},r.extend(i,b.defaults,{content:{ajax:{loading:i,once:i}}}),w.tip=function(e){var t=e.plugins.tip;return"object"==typeof t?t:e.plugins.tip=new F(e)},w.tip.initialize="render",w.tip.sanitize=function(e){var t=e.style,n;t&&"tip"in t&&(n=e.style.tip,typeof n!="object"&&(e.style.tip={corner:n}),/string|boolean/i.test(typeof n.corner)||(n.corner=i),typeof n.width!="number"&&delete n.width,typeof n.height!="number"&&delete n.height,typeof n.border!="number"&&n.border!==i&&delete n.border,typeof n.offset!="number"&&delete n.offset)},r.extend(i,b.defaults,{style:{tip:{corner:i,mimic:s,width:6,height:6,border:i,offset:0}}}),w.modal=function(e){var t=e.plugins.modal;return"object"==typeof t?t:e.plugins.modal=new I(e)},w.modal.initialize="render",w.modal.sanitize=function(e){e.show&&(typeof e.show.modal!="object"?e.show.modal={on:!!e.show.modal}:typeof e.show.modal.on=="undefined"&&(e.show.modal.on=i))},w.modal.zindex=b.zindex-200,w.modal.focusable=["a[href]","area[href]","input","select","textarea","button","iframe","object","embed","[tabindex]","[contenteditable]"],r.extend(i,b.defaults,{show:{modal:{on:s,effect:i,blur:i,stealfocus:i,escape:i}}}),w.viewport=function(n,r,i,s,o,m,b){function j(e,t,n,i,s,o,u,a,f){var l=r[s],c=x[e],h=T[e],p=n===y,d=-O.offset[s]+A.offset[s]+A["scroll"+s],m=c===s?f:c===o?-f:-f/2,b=h===s?a:h===o?-a:-a/2,w=_&&_.size?_.size[u]||0:0,E=_&&_.corner&&_.corner.precedance===e&&!p?w:0,S=d-l+E,N=l+f-A[u]-d+E,C=m-(x.precedance===e||c===x[t]?b:0)-(h===v?a/2:0);return p?(E=_&&_.corner&&_.corner.precedance===t?w:0,C=(c===s?1:-1)*m-E,r[s]+=S>0?S:N>0?-N:0,r[s]=Math.max(-O.offset[s]+A.offset[s]+(E&&_.corner[e]===v?_.offset:0),l-C,Math.min(Math.max(-O.offset[s]+A.offset[s]+A[u],l+C),r[s]))):(i*=n===g?2:0,S>0&&(c!==s||N>0)?(r[s]-=C+i,H["invert"+e](s)):N>0&&(c!==o||S>0)&&(r[s]-=(c===v?-C:C)+i,H["invert"+e](o)),r[s]<d&&-r[s]>N&&(r[s]=l,H=x.clone())),r[s]-l}var w=i.target,E=n.elements.tooltip,x=i.my,T=i.at,N=i.adjust,C=N.method.split(" "),k=C[0],L=C[1]||C[0],A=i.viewport,O=i.container,M=n.cache,_=n.plugins.tip,D={left:0,top:0},P,H,B;if(!A.jquery||w[0]===e||w[0]===t.body||N.method==="none")return D;P=E.css("position")==="fixed",A={elem:A,height:A[(A[0]===e?"h":"outerH")+"eight"](),width:A[(A[0]===e?"w":"outerW")+"idth"](),scrollleft:P?0:A.scrollLeft(),scrolltop:P?0:A.scrollTop(),offset:A.offset()||{left:0,top:0}},O={elem:O,scrollLeft:O.scrollLeft(),scrollTop:O.scrollTop(),offset:O.offset()||{left:0,top:0}};if(k!=="shift"||L!=="shift")H=x.clone();return D={left:k!=="none"?j(u,a,k,N.x,h,d,f,s,m):0,top:L!=="none"?j(a,u,L,N.y,c,p,l,o,b):0},H&&M.lastClass!==(B=S+"-pos-"+H.abbrev())&&E.removeClass(n.cache.lastClass).addClass(n.cache.lastClass=B),D},w.imagemap=function(e,t,n,i){function E(e,t,n){var r=0,i=1,s=1,o=0,u=0,a=e.width,f=e.height;while(a>0&&f>0&&i>0&&s>0){a=Math.floor(a/2),f=Math.floor(f/2),n.x===h?i=a:n.x===d?i=e.width-a:i+=Math.floor(a/2),n.y===c?s=f:n.y===p?s=e.height-f:s+=Math.floor(f/2),r=t.length;while(r--){if(t.length<2)break;o=t[r][0]-e.position.left,u=t[r][1]-e.position.top,(n.x===h&&o>=i||n.x===d&&o<=i||n.x===v&&(o<i||o>e.width-i)||n.y===c&&u>=s||n.y===p&&u<=s||n.y===v&&(u<s||u>e.height-s))&&t.splice(r,1)}}return{left:t[0][0],top:t[0][1]}}t.jquery||(t=r(t));var s=e.cache.areas={},o=(t[0].shape||t.attr("shape")).toLowerCase(),u=t[0].coords||t.attr("coords"),a=u.split(","),f=[],l=r('img[usemap="#'+t.parent("map").attr("name")+'"]'),m=l.offset(),g={width:0,height:0,position:{top:1e10,right:0,bottom:0,left:1e10}},y=0,b=0,w;m.left+=Math.ceil((l.outerWidth()-l.width())/2),m.top+=Math.ceil((l.outerHeight()-l.height())/2);if(o==="poly"){y=a.length;while(y--)b=[parseInt(a[--y],10),parseInt(a[y+1],10)],b[0]>g.position.right&&(g.position.right=b[0]),b[0]<g.position.left&&(g.position.left=b[0]),b[1]>g.position.bottom&&(g.position.bottom=b[1]),b[1]<g.position.top&&(g.position.top=b[1]),f.push(b)}else{y=-1;while(y++<a.length)f.push(parseInt(a[y],10))}switch(o){case"rect":g={width:Math.abs(f[2]-f[0]),height:Math.abs(f[3]-f[1]),position:{left:Math.min(f[0],f[2]),top:Math.min(f[1],f[3])}};break;case"circle":g={width:f[2]+2,height:f[2]+2,position:{left:f[0],top:f[1]}};break;case"poly":g.width=Math.abs(g.position.right-g.position.left),g.height=Math.abs(g.position.bottom-g.position.top),n.abbrev()==="c"?g.position={left:g.position.left+g.width/2,top:g.position.top+g.height/2}:(s[n+u]||(g.position=E(g,f.slice(),n),i&&(i[0]==="flip"||i[1]==="flip")&&(g.offset=E(g,f.slice(),{x:n.x===h?d:n.x===d?h:v,y:n.y===c?p:n.y===p?c:v}),g.offset.left-=g.position.left,g.offset.top-=g.position.top),s[n+u]=g),g=s[n+u]),g.width=g.height=0}return g.position.left+=m.left,g.position.top+=m.top,g},w.ie6=function(e){var t=r.browser,n=e.plugins.ie6;return!t.msie||(""+t.version).charAt(0)!=="6"?s:"object"==typeof n?n:e.plugins.ie6=new q(e)},w.ie6.initialize="render"})})(window,document);
 
 
assets/libraries/jquery-qtip/load.qtip.js DELETED
@@ -1,56 +0,0 @@
1
- jQuery(document).ready(function($) {
2
-
3
-
4
- jQuery('.lp_tooltip').on('mouseover', function(event) {
5
- // Bind the qTip within the event handler
6
- jQuery(this).qtip({
7
- overwrite: false, // Make sure the tooltip won't be overridden once created
8
- content: {
9
- title: {
10
- text: 'What does this do?'
11
- }
12
- },
13
- position: {
14
- my: 'bottom center', // Use the corner...
15
- at: 'top center', // ...and opposite corner
16
- viewport: jQuery(window)
17
- },
18
- style: {
19
- classes: 'qtip-shadow qtip-jtools',
20
- },
21
- show: {
22
- event: event.type, // Use the same show event as the one that triggered the event handler
23
- ready: true, // Show the tooltip as soon as it's bound, vital so it shows up the first time you hover!
24
- solo: true
25
- },
26
- hide: 'unfocus'
27
- }, event); // Pass through our original event to qTip
28
- })
29
-
30
- jQuery('.lp_tooltip_templates').on('mouseover', function(event) {
31
- // Bind the qTip within the event handler
32
- jQuery(this).qtip({
33
- overwrite: false, // Make sure the tooltip won't be overridden once created
34
- content: {
35
- title: {
36
- text: 'About this Template'
37
- }
38
- },
39
- position: {
40
- my: 'bottom center', // Use the corner...
41
- at: 'top center', // ...and opposite corner
42
- viewport: jQuery(window)
43
- },
44
- style: {
45
- classes: 'qtip-shadow qtip-jtools',
46
- },
47
- show: {
48
- event: event.type, // Use the same show event as the one that triggered the event handler
49
- ready: true, // Show the tooltip as soon as it's bound, vital so it shows up the first time you hover!
50
- solo: true
51
- },
52
- hide: 'unfocus'
53
- }, event); // Pass through our original event to qTip
54
- })
55
- // put all your jQuery goodness in here.
56
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
classes/class.admin-notices.php CHANGED
@@ -77,7 +77,7 @@ class Landing_Pages_Admin_Notices {
77
  if ((($pagenow == 'edit.php') && ($page_string == "lp_manage_templates")) || (($pagenow == "post-new.php") && (isset($_GET['post_type']) && $_GET['post_type'] == "landing-page"))) {
78
  ?>
79
  <div id="more-templates-button" style="display:none;">
80
- <a target="_blank" href="https://www.inboundnow.com/market/?show=landing-pages" class="button new-lp-button button-primary button-large"><?php _e( 'Download Additional Landing Page Templates' , 'inbound-pro' ); ?></a>
81
  </div>
82
  <script type="text/javascript">
83
  jQuery(document).ready(function($) {
77
  if ((($pagenow == 'edit.php') && ($page_string == "lp_manage_templates")) || (($pagenow == "post-new.php") && (isset($_GET['post_type']) && $_GET['post_type'] == "landing-page"))) {
78
  ?>
79
  <div id="more-templates-button" style="display:none;">
80
+ <a target="_blank" href="https://www.inboundnow.com/marketplace/?show=landing-pages" class="button new-lp-button button-primary button-large"><?php _e( 'Download Additional Landing Page Templates' , 'inbound-pro' ); ?></a>
81
  </div>
82
  <script type="text/javascript">
83
  jQuery(document).ready(function($) {
classes/class.branching.php DELETED
@@ -1,44 +0,0 @@
1
- <?php
2
-
3
- if ( !class_exists('Landing_Pages_Branching') ) {
4
-
5
- class Landing_Pages_Branching {
6
-
7
-
8
- /**
9
- * Load class instance
10
- */
11
- public function __construct() {
12
- self::load_hooks();
13
- }
14
-
15
- /**
16
- * Load hooks and filters
17
- */
18
- public static function load_hooks() {
19
-
20
- /* adds branching capabilities to branching API for landing pages */
21
- add_filter( 'inbound_plugin_branches' , array( __CLASS__ , 'add_branches' ) , 10 , 1 );
22
-
23
- /* reset active branch during svn update */
24
- /* add_action( 'activate_landing_pages' , array( __CLASS__ , 'reset_branch_status' ) , 10 , 1 );
25
- /**/
26
- }
27
-
28
- /**
29
- * Add branches to branching api for landing pages plugin
30
- */
31
- public static function add_branches( $branches ) {
32
- $branches['landing-pages'] = array(
33
- 'git' => 'https://codeload.github.com/inboundnow/landing-pages/zip/master',
34
- 'svn' => 'https://downloads.wordpress.org/plugin/landing-pages.'.LANDINGPAGES_CURRENT_VERSION.'.zip'
35
- );
36
-
37
- return $branches;
38
- }
39
-
40
-
41
- }
42
-
43
- $GLOBALS['Landing_Pages_Branching'] = new Landing_Pages_Branching;
44
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
classes/class.inbound-statistics.php CHANGED
@@ -34,11 +34,10 @@ if (!class_exists('Inbound_Content_Statistics')) {
34
  add_action( 'lp_record_impression' , array( __CLASS__ , 'record_impression' ) , 10, 3);
35
 
36
  /* record landing page conversion */
37
- add_action( 'inboundnow_store_lead_pre_filter_data' , array( __CLASS__ , 'record_conversion' ) ,10,1);
38
 
39
  /* load impressions/conversions collumns on non lp post types */
40
  if (is_admin() ) {
41
-
42
  /* Register Columns */
43
  add_filter( 'manage_post_posts_columns' , array( __CLASS__ , 'register_columns') , 20 );
44
  add_filter( 'manage_page_posts_columns' , array( __CLASS__ , 'register_columns') , 20 );
@@ -227,7 +226,7 @@ if (!class_exists('Inbound_Content_Statistics')) {
227
  public static function record_conversion($data) {
228
 
229
  if (!isset( $data['page_id'] ) ) {
230
- return;
231
  }
232
 
233
  $post = get_post( $data['page_id'] );
@@ -239,7 +238,7 @@ if (!class_exists('Inbound_Content_Statistics')) {
239
  $do_not_track = apply_filters('inbound_analytics_stop_track' , false );
240
 
241
  if ( $do_not_track ) {
242
- return;
243
  }
244
 
245
  /* increment conversions for landing pages */
34
  add_action( 'lp_record_impression' , array( __CLASS__ , 'record_impression' ) , 10, 3);
35
 
36
  /* record landing page conversion */
37
+ add_filter( 'inboundnow_store_lead_pre_filter_data' , array( __CLASS__ , 'record_conversion' ) ,10,1);
38
 
39
  /* load impressions/conversions collumns on non lp post types */
40
  if (is_admin() ) {
 
41
  /* Register Columns */
42
  add_filter( 'manage_post_posts_columns' , array( __CLASS__ , 'register_columns') , 20 );
43
  add_filter( 'manage_page_posts_columns' , array( __CLASS__ , 'register_columns') , 20 );
226
  public static function record_conversion($data) {
227
 
228
  if (!isset( $data['page_id'] ) ) {
229
+ return $data;
230
  }
231
 
232
  $post = get_post( $data['page_id'] );
238
  $do_not_track = apply_filters('inbound_analytics_stop_track' , false );
239
 
240
  if ( $do_not_track ) {
241
+ return $data;
242
  }
243
 
244
  /* increment conversions for landing pages */
classes/class.metaboxes.php CHANGED
@@ -263,9 +263,6 @@ class Landing_Pages_Metaboxes {
263
  wp_enqueue_script('jpicker', LANDINGPAGES_URLPATH . 'assets/libraries/jpicker/jpicker-1.1.6.min.js');
264
  wp_localize_script( 'jpicker', 'jpicker', array( 'thispath' => LANDINGPAGES_URLPATH.'assets/libraries/jpicker/images/' ));
265
  wp_enqueue_style('jpicker-css', LANDINGPAGES_URLPATH . 'assets/libraries/jpicker/css/jPicker-1.1.6.min.css');
266
- wp_enqueue_script('jquery-qtip', LANDINGPAGES_URLPATH . 'assets/libraries/jquery-qtip/jquery.qtip.min.js');
267
- wp_enqueue_script('load-qtip', LANDINGPAGES_URLPATH . 'assets/libraries/jquery-qtip/load.qtip.js', array('jquery-qtip'));
268
- wp_enqueue_style('qtip-css', LANDINGPAGES_URLPATH . 'assets/css/jquery.qtip.min.css'); /*Tool tip css */
269
 
270
  $template_data = lp_get_extension_data();
271
  $template_data_json = json_encode($template_data);
@@ -547,55 +544,79 @@ class Landing_Pages_Metaboxes {
547
  ?>
548
  </span>
549
 
550
-
551
- <span class="lp-delete-var-stats" data-letter='<?php echo Landing_Pages_Variations::vid_to_letter( $post->ID , $key); ?>'
552
- data-vid='<?php echo $vid; ?>' rel='<?php echo $post->ID; ?>'
553
- title="<?php _e('Delete this variations stats', 'landing-pages'); ?>"><?php _e('Clear Stats', 'landing-pages'); ?></span>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
554
  </div>
555
  <div class="bab-stat-row">
556
  <div class='bab-stat-stats' colspan='2'>
557
  <div class='bab-stat-container-impressions bab-number-box'>
 
558
  <span class='bab-stat-span-impressions'><?php echo $impressions; ?></span>
559
- <span class="bab-stat-id"><?php _e('Views', 'landing-pages'); ?> </span>
560
  </div>
561
  <div class='bab-stat-container-conversions bab-number-box'>
562
- <span class='bab-stat-span-conversions'><?php echo $conversions; ?></span>
563
- <span
564
- class="bab-stat-id"><?php _e('Conversions', 'landing-pages'); ?></span></span>
565
  </div>
566
  <div class='bab-stat-container-conversion_rate bab-number-box'>
567
- <span
568
- class='bab-stat-span-conversion_rate'><?php echo $conversion_rate; ?></span>
569
- <span
570
- class="bab-stat-id bab-rate"><?php _e('Conversion Rate', 'landing-pages'); ?></span>
571
- </div>
572
- <div class='bab-stat-control-container'>
573
- <span class='bab-stat-control-pause'><a
574
- title="<?php _e('Pause this variation', 'landing-pages'); ?>"
575
- href='?post=<?php echo $post->ID; ?>&action=edit&action-variation-id=<?php echo $vid; ?>&ab-action=pause-variation'><?php _e('Pause', 'landing-pages'); ?></a></span>
576
- <span class='bab-stat-seperator pause-sep'>|</span>
577
- <span class='bab-stat-control-play'><a
578
- title="<?php _e('Turn this variation on', 'landing-pages'); ?>"
579
- href='?post=<?php echo $post->ID; ?>&action=edit&action-variation-id=<?php echo $vid; ?>&ab-action=play-variation'><?php _e('Play', 'landing-pages'); ?></a></span>
580
- <span class='bab-stat-seperator play-sep'>|</span>
581
- <span class='bab-stat-menu-edit'><a
582
- title="<?php _e('Edit this variation', 'landing-pages'); ?>"
583
- href='?post=<?php echo $post->ID; ?>&action=edit&action-variation-id=<?php echo $vid; ?>'><?php _e('Edit', 'landing-pages'); ?></a></span>
584
- <span class='bab-stat-seperator'>|</span>
585
- <span class='bab-stat-menu-preview'><a
586
- title="<?php _e('Preview this variation', 'landing-pages'); ?>"
587
- class='thickbox'
588
- href='<?php echo $permalink; ?>&iframe_window=on&post_id=<?php echo $post->ID; ?>&TB_iframe=true&width=1503&height=467'
589
- target='_blank'><?php _e('Preview', 'landing-pages'); ?></a></span>
590
- <span class='bab-stat-seperator'>|</span>
591
- <span class='bab-stat-menu-clone'><a
592
- title="<?php _e('Clone this variation', 'landing-pages'); ?>"
593
- href='?post=<?php echo $post->ID; ?>&action=edit&new-variation=1&clone=<?php echo $vid; ?>&new_meta_key=<?php echo $howmany; ?>'><?php _e('Clone', 'landing-pages'); ?></a></span>
594
- <span class='bab-stat-seperator'>|</span>
595
- <span class='bab-stat-control-delete'><a
596
- title="<?php _e('Delete this variation', 'landing-pages'); ?>"
597
- href='?post=<?php echo $post->ID; ?>&action=edit&action-variation-id=<?php echo $vid; ?>&ab-action=delete-variation'><?php _e('Delete', 'landing-pages'); ?></a></span>
598
  </div>
 
599
  </div>
600
  </div>
601
  <div class="bab-stat-row">
263
  wp_enqueue_script('jpicker', LANDINGPAGES_URLPATH . 'assets/libraries/jpicker/jpicker-1.1.6.min.js');
264
  wp_localize_script( 'jpicker', 'jpicker', array( 'thispath' => LANDINGPAGES_URLPATH.'assets/libraries/jpicker/images/' ));
265
  wp_enqueue_style('jpicker-css', LANDINGPAGES_URLPATH . 'assets/libraries/jpicker/css/jPicker-1.1.6.min.css');
 
 
 
266
 
267
  $template_data = lp_get_extension_data();
268
  $template_data_json = json_encode($template_data);
544
  ?>
545
  </span>
546
 
547
+ <span class="settings_icon"> </span>
548
+ <span class="settings_wrapper">
549
+ <span class="settings_wrapper_heading">Variation Settings</span>
550
+ <ul class="settings_list_li">
551
+ <li class="settings_edit">
552
+ <span class='bab-stat-menu-edit'>
553
+ <a title="<?php _e('Edit this variation', 'landing-pages'); ?>" href='?post=<?php echo $post->ID; ?>&action=edit&action-variation-id=<?php echo $vid; ?>'>
554
+ <?php _e('Edit', 'landing-pages'); ?>
555
+ </a>
556
+ </span>
557
+ </li>
558
+ <li class="settings_preview">
559
+ <span class='bab-stat-menu-preview'>
560
+ <a title="<?php _e('Preview this variation', 'landing-pages'); ?>" class='thickbox' href='<?php echo $permalink; ?>&iframe_window=on&post_id=<?php echo $post->ID; ?>&TB_iframe=true&width=1503&height=467' target='_blank'>
561
+ <?php _e('Preview', 'landing-pages'); ?>
562
+ </a>
563
+ </span>
564
+ </li>
565
+ <li class="settings_clone">
566
+ <span class='bab-stat-menu-clone'>
567
+ <a title="<?php _e('Clone this variation', 'landing-pages'); ?>" href='?post=<?php echo $post->ID; ?>&action=edit&new-variation=1&clone=<?php echo $vid; ?>&new_meta_key=<?php echo $howmany; ?>'>
568
+ <?php _e('Clone', 'landing-pages'); ?>
569
+ </a>
570
+ </span>
571
+ </li>
572
+ <li class="settings_delete">
573
+ <span class='bab-stat-control-delete'>
574
+ <a title="<?php _e('Delete this variation', 'landing-pages'); ?>" href='?post=<?php echo $post->ID; ?>&action=edit&action-variation-id=<?php echo $vid; ?>&ab-action=delete-variation'>
575
+ <?php _e('Delete', 'landing-pages'); ?>
576
+ </a>
577
+ </span>
578
+ </li>
579
+ <li class="settings_clearstat">
580
+ <!-- CLEAR STATS START -->
581
+ <span class="lp-delete-var-stats" data-letter='<?php echo Landing_Pages_Variations::vid_to_letter( $post->ID , $key); ?>' data-vid='<?php echo $vid; ?>' rel='<?php echo $post->ID; ?>' title="<?php _e('Delete this variations stats', 'landing-pages'); ?>">
582
+ <?php _e('Clear Stats', 'landing-pages'); ?>
583
+ </span>
584
+ <!-- CLEAR STAT END --></li>
585
+ </ul>
586
+ </span>
587
+
588
+
589
+
590
+ <!-- PAUSE START -->
591
+ <span class='bab-stat-control-pause'><a title="<?php _e('Pause this variation', 'landing-pages'); ?>"
592
+ href='?post=<?php echo $post->ID; ?>&action=edit&action-variation-id=<?php echo $vid; ?>&ab-action=pause-variation'> </a></span>
593
+ <!-- PAUSE END -->
594
+
595
+ <!-- PLAY START -->
596
+ <span class='bab-stat-seperator pause-sep'>|</span>
597
+ <span class='bab-stat-control-play'><a
598
+ title="<?php _e('Turn this variation on', 'landing-pages'); ?>"
599
+ href='?post=<?php echo $post->ID; ?>&action=edit&action-variation-id=<?php echo $vid; ?>&ab-action=play-variation'> </a></span>
600
+ <!-- PLAY END -->
601
+
602
+
603
+
604
  </div>
605
  <div class="bab-stat-row">
606
  <div class='bab-stat-stats' colspan='2'>
607
  <div class='bab-stat-container-impressions bab-number-box'>
608
+ <span class="bab-stat-id"><?php _e('Views', 'landing-pages'); ?> </span>
609
  <span class='bab-stat-span-impressions'><?php echo $impressions; ?></span>
 
610
  </div>
611
  <div class='bab-stat-container-conversions bab-number-box'>
612
+ <span class="bab-stat-id"><?php _e('Conversions', 'landing-pages'); ?></span> <span class='bab-stat-span-conversions'><?php echo $conversions; ?></span>
613
+ </span>
 
614
  </div>
615
  <div class='bab-stat-container-conversion_rate bab-number-box'>
616
+ <span class="bab-stat-id bab-rate"><?php _e('Conversion Rate', 'landing-pages'); ?></span>
617
+ <span class='bab-stat-span-conversion_rate'><?php echo $conversion_rate; ?></span>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
618
  </div>
619
+
620
  </div>
621
  </div>
622
  <div class="bab-stat-row">
classes/class.post-type.landing-page.php CHANGED
@@ -37,12 +37,10 @@ if ( !class_exists('Landing_Pages_Post_Type') ) {
37
  /* add styling handlers to custom post states */
38
  add_filter('display_post_states', array( __CLASS__ , 'filter_custom_post_states' ) );
39
 
40
- /* add quick actions to lists mode */
41
- add_filter('post_row_actions', array(__CLASS__, 'add_quick_actions' ) , 10, 2);
42
-
43
  /* enqueue scripts for landing page listings */
44
  add_action( 'admin_enqueue_scripts' , array(__CLASS__, 'enqueue_admin_scripts' ) );
45
 
 
46
  /* enqueue scripts for landing page listings */
47
  if (isset($_GET['dont_save'])
48
  || isset($_GET['iframe_window'])
@@ -148,17 +146,15 @@ if ( !class_exists('Landing_Pages_Post_Type') ) {
148
  return;
149
  }
150
 
 
 
 
151
  /* listing page only */
152
  if ($screen->id == 'edit-landing-page' ) {
153
  /* load stat clear handlers */
154
  wp_enqueue_script( 'lp-admin-clear-stats-ajax-request', LANDINGPAGES_URLPATH . 'assets/js/ajax.clearstats.js', array( 'jquery' ) );
155
  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') ) );
156
 
157
- /* load qtip for popup data */
158
- wp_enqueue_script('jquery-qtip', LANDINGPAGES_URLPATH . 'assets/libraries/jquery-qtip/jquery.qtip.min.js');
159
- wp_enqueue_script('load-qtip', LANDINGPAGES_URLPATH . 'assets/libraries/jquery-qtip/load.qtip.js', array('jquery-qtip'));
160
- wp_enqueue_style('qtip-css', LANDINGPAGES_URLPATH . 'assets/css/jquery.qtip.min.css'); /*Tool tip css */
161
-
162
  wp_enqueue_script('landing-page-list', LANDINGPAGES_URLPATH . 'assets/js/admin/admin.landing-page-list.js');
163
  wp_enqueue_style('landing-page-list-css', LANDINGPAGES_URLPATH.'assets/css/admin/landing-page-list.css');
164
  wp_enqueue_script('jqueryui');
@@ -407,7 +403,7 @@ if ( !class_exists('Landing_Pages_Post_Type') ) {
407
  foreach ($variations as $key => $vid) {
408
  $letter = Landing_Pages_Variations::vid_to_letter($post->ID, $key); /* convert to letter */
409
  $each_impression = get_post_meta($post->ID, 'lp-ab-variation-impressions-' . $vid, true); /* get impressions */
410
-
411
  /* get variation status */
412
  $v_status = Landing_Pages_Variations::get_variation_status( $post->ID, $vid ); /* Current status */
413
 
@@ -439,8 +435,8 @@ if ( !class_exists('Landing_Pages_Post_Type') ) {
439
  (($each_notes === "")) ? $each_notes = __('No notes', 'inbound-pro') : $each_notes = $each_notes;
440
  $data_letter = "data-letter=\"" . $letter . "\"";
441
  $edit_link = admin_url('post.php?post=' . $post->ID . '&lp-variation-id=' . $vid . '&action=edit');
442
- $popup = "data-notes=\"<span class='lp-pop-description'>" . $each_notes . "</span><span class='lp-pop-controls'><span class='lp-pop-edit button-primary'><a href='" . $edit_link . "'>Edit This variation</a></span><span class='lp-pop-preview button'><a title='Click to Preview this variation' class='thickbox' href='" . $permalink . "?lp-variation-id=" . $vid . "&iframe_window=on&post_id=" . $post->ID . "&TB_iframe=true&width=640&height=703' target='_blank'>Preview This variation</a></span><span class='lp-bottom-controls'><span class='lp-delete-var-stats' data-letter='" . $letter . "' data-vid='" . $vid . "' rel='" . $post->ID . "'>Clear These Stats</span></span></span>\"";
443
- echo "<li rel='" . $final_status . "' data-postid='" . $post->ID . "' data-letter='" . $letter . "' data-lp='' class='lp-stat-row-" . $vid . " " . $post->ID . '-' . $conversion_rate . " status-" . $v_status . "'><a " . $popup . " " . $data_letter . " class='lp-letter' title='click to edit this variation' href='" . $edit_link . "'>" . $letter . "</a><span class='lp-numbers'> <span class='lp-impress-num'>" . $each_impression . "</span><span class='visit-text'>" . $i_text . " with</span><span class='lp-con-num'>" . $final_conversion . "</span> " . $c_text . "</span><a " . $popup . " " . $data_letter . " class='cr-number cr-empty-" . $conversion_rate . "' href='" . $edit_link . "'>" . $conversion_rate . "%</a></li>";
444
  $i++;
445
  }
446
  echo "</ul>";
@@ -508,19 +504,6 @@ if ( !class_exists('Landing_Pages_Post_Type') ) {
508
  return $post_states;
509
  }
510
 
511
- /**
512
- * Adds quick action
513
- */
514
- public static function add_quick_actions($actions, $post) {
515
- if ($post->post_type != 'landing-page') {
516
- return $actions;
517
- }
518
-
519
- $actions['clear'] = '<a href="#clear-stats" id="lp_clear_' . $post->ID . '" class="clear_stats" title="' . esc_attr(__("Clear impression and conversion records", 'inbound-pro')) . '" >' . __('Clear All Stats', 'inbound-pro') . '</a><span class="hover-description">' . __('Hover over the letters to the right for more options', 'inbound-pro') . '</span>';
520
-
521
- return $actions;
522
- }
523
-
524
  /**
525
  * Loads preview iframe. Currently disabled. Plans to update @DavidWells
526
  */
37
  /* add styling handlers to custom post states */
38
  add_filter('display_post_states', array( __CLASS__ , 'filter_custom_post_states' ) );
39
 
 
 
 
40
  /* enqueue scripts for landing page listings */
41
  add_action( 'admin_enqueue_scripts' , array(__CLASS__, 'enqueue_admin_scripts' ) );
42
 
43
+
44
  /* enqueue scripts for landing page listings */
45
  if (isset($_GET['dont_save'])
46
  || isset($_GET['iframe_window'])
146
  return;
147
  }
148
 
149
+ wp_enqueue_style('lp-content-stats', LANDINGPAGES_URLPATH . 'assets/css/admin/content-stats.css');
150
+
151
+
152
  /* listing page only */
153
  if ($screen->id == 'edit-landing-page' ) {
154
  /* load stat clear handlers */
155
  wp_enqueue_script( 'lp-admin-clear-stats-ajax-request', LANDINGPAGES_URLPATH . 'assets/js/ajax.clearstats.js', array( 'jquery' ) );
156
  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') ) );
157
 
 
 
 
 
 
158
  wp_enqueue_script('landing-page-list', LANDINGPAGES_URLPATH . 'assets/js/admin/admin.landing-page-list.js');
159
  wp_enqueue_style('landing-page-list-css', LANDINGPAGES_URLPATH.'assets/css/admin/landing-page-list.css');
160
  wp_enqueue_script('jqueryui');
403
  foreach ($variations as $key => $vid) {
404
  $letter = Landing_Pages_Variations::vid_to_letter($post->ID, $key); /* convert to letter */
405
  $each_impression = get_post_meta($post->ID, 'lp-ab-variation-impressions-' . $vid, true); /* get impressions */
406
+ $each_impression = ($each_impression) ? $each_impression : 0;
407
  /* get variation status */
408
  $v_status = Landing_Pages_Variations::get_variation_status( $post->ID, $vid ); /* Current status */
409
 
435
  (($each_notes === "")) ? $each_notes = __('No notes', 'inbound-pro') : $each_notes = $each_notes;
436
  $data_letter = "data-letter=\"" . $letter . "\"";
437
  $edit_link = admin_url('post.php?post=' . $post->ID . '&lp-variation-id=' . $vid . '&action=edit');
438
+ $popup = "data-notes=\"<span class='lp-pop-description'>" . $each_notes . "</span><span class='lp-pop-controls'><span class='lp-pop-edit button-primary'><a href='" . $edit_link . "'>Edit This variation</a></span><span class='lp-pop-preview button'><a title='".__('Click to Preview this variation' , 'inbound-pro' ) ."' class='thickbox' href='" . $permalink . "?lp-variation-id=" . $vid . "&iframe_window=on&post_id=" . $post->ID . "&TB_iframe=true&width=640&height=703' target='_blank'>".__( 'Preview This variation' , 'inbound-pro' ) ."</a></span><span class='lp-bottom-controls'><span class='lp-delete-var-stats' data-letter='" . $letter . "' data-vid='" . $vid . "' rel='" . $post->ID . "'>". __( 'Clear These Stats' , 'inbound-pro' ) ."</span></span></span>\"";
439
+ echo "<li rel='" . $final_status . "' data-postid='" . $post->ID . "' data-letter='" . $letter . "' data-lp='' class='lp-stat-row-" . $vid . " " . $post->ID . '-' . $conversion_rate . " status-" . $v_status . "'><a " . $popup . " " . $data_letter . " class='lp-letter' title='click to edit this variation' href='" . $edit_link . "'>" . $letter . "</a><span class='lp-numbers'><span class='lp-visitors'><span class='visit-text'>" . $i_text . "</span><span class='lp-impress-num'>" . $each_impression . "</span></span> <span class='lp-conversions'> <span class='lp-conversion-txt'>" . $c_text . "</span> <span class='lp-con-num'>" . $final_conversion . "</span> </span> </span><a " . $popup . " " . $data_letter . " class='cr-number cr-empty-" . $conversion_rate . "' href='" . $edit_link . "'>" . $conversion_rate . "%</a></li>";
440
  $i++;
441
  }
442
  echo "</ul>";
504
  return $post_states;
505
  }
506
 
 
 
 
 
 
 
 
 
 
 
 
 
 
507
  /**
508
  * Loads preview iframe. Currently disabled. Plans to update @DavidWells
509
  */
classes/class.template-management.php CHANGED
@@ -181,11 +181,14 @@ class Landing_Pages_Template_Management {
181
 
182
  $is_template = false;
183
  foreach ($list as $key => $val) {
184
- foreach ($val as $k => $val) {
185
- if (strstr($val, '/config.php')) {
 
186
  $is_template = true;
187
  break;
188
- } else if ($is_template == true) {
 
 
189
  break;
190
  }
191
  }
@@ -193,7 +196,12 @@ class Landing_Pages_Template_Management {
193
 
194
  if (!$is_template) {
195
  echo '<br><br><br><br>';
196
- 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!' , 'inbound-pro' ));
 
 
 
 
 
197
  }
198
 
199
 
181
 
182
  $is_template = false;
183
  foreach ($list as $key => $val) {
184
+ foreach ($val as $k => $v) {
185
+ error_log($v);
186
+ if (strstr($v, '/config.php')) {
187
  $is_template = true;
188
  break;
189
+ } else if (strstr($v, 'config.php')) {
190
+ $misconfig = 1;
191
+ }else if ($is_template == true) {
192
  break;
193
  }
194
  }
196
 
197
  if (!$is_template) {
198
  echo '<br><br><br><br>';
199
+ if ($misconfig) {
200
+ die( __('We\'ve detected that this is a landing page template, but the files need to be zipped inside the parent folder. Please restructure your zip file so that it\'s contents are inside a parent directory with your template\'s name.' , 'inbound-pro' ));
201
+
202
+ } else {
203
+ 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!' , 'inbound-pro' ));
204
+ }
205
  }
206
 
207
 
landing-pages.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Landing Pages
4
  Plugin URI: http://www.inboundnow.com/landing-pages/
5
  Description: Landing page template framework with variant testing and lead capturing through cooperation with Inbound Now's Leads plugin. This is the stand alone version served through WordPress.org.
6
- Version: 2.1.8
7
  Author: Inbound Now
8
  Author URI: http://www.inboundnow.com/
9
 
@@ -19,7 +19,7 @@ if (!class_exists('Inbound_Landing_Pages_Plugin')) {
19
  public function __construct() {
20
 
21
  /* Start a PHP Session if in wp-admin */
22
- if(session_id() == '') {
23
  session_start();
24
  }
25
 
@@ -37,7 +37,7 @@ if (!class_exists('Inbound_Landing_Pages_Plugin')) {
37
  */
38
  private static function load_constants() {
39
 
40
- define('LANDINGPAGES_CURRENT_VERSION', '2.1.8' );
41
  define('LANDINGPAGES_URLPATH', plugins_url( '/' , __FILE__ ) );
42
  define('LANDINGPAGES_PATH', WP_PLUGIN_DIR.'/'.plugin_basename( dirname(__FILE__) ).'/' );
43
  define('LANDINGPAGES_PLUGIN_SLUG', plugin_basename( dirname(__FILE__) ) );
3
  Plugin Name: Landing Pages
4
  Plugin URI: http://www.inboundnow.com/landing-pages/
5
  Description: Landing page template framework with variant testing and lead capturing through cooperation with Inbound Now's Leads plugin. This is the stand alone version served through WordPress.org.
6
+ Version: 2.1.9
7
  Author: Inbound Now
8
  Author URI: http://www.inboundnow.com/
9
 
19
  public function __construct() {
20
 
21
  /* Start a PHP Session if in wp-admin */
22
+ if(session_id() == '' && !headers_sent() ) {
23
  session_start();
24
  }
25
 
37
  */
38
  private static function load_constants() {
39
 
40
+ define('LANDINGPAGES_CURRENT_VERSION', '2.1.9' );
41
  define('LANDINGPAGES_URLPATH', plugins_url( '/' , __FILE__ ) );
42
  define('LANDINGPAGES_PATH', WP_PLUGIN_DIR.'/'.plugin_basename( dirname(__FILE__) ).'/' );
43
  define('LANDINGPAGES_PLUGIN_SLUG', plugin_basename( dirname(__FILE__) ) );
readme.txt CHANGED
@@ -1,13 +1,13 @@
1
  === WordPress Landing Pages ===
2
 
3
- Contributors: Hudson Atwell, David Wells, Giulio Daprela
4
  Donate link: mailto:hudson@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.8
9
- Tested up to: 4.4.2
10
- Stable Tag: 2.1.8
11
 
12
  Create landing pages for your WordPress site. Monitor and improve conversion rates, run A/B split tests, customize your own templates and more.
13
 
@@ -70,6 +70,11 @@ The plugin is also fully extendable and has a number of actions, filters, and ho
70
 
71
  == Changelog ==
72
 
 
 
 
 
 
73
  = 2.1.8 =
74
  * Fix simple solid light
75
  * Fix issue with legacy image uploader issue.
1
  === WordPress Landing Pages ===
2
 
3
+ Contributors: Hudson Atwell, David Wells, Giulio Daprela, ahmedkaludi
4
  Donate link: mailto:hudson@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.8
9
+ Tested up to: 4.5.2
10
+ Stable Tag: 2.1.9
11
 
12
  Create landing pages for your WordPress site. Monitor and improve conversion rates, run A/B split tests, customize your own templates and more.
13
 
70
 
71
  == Changelog ==
72
 
73
+ = 2.1.9 =
74
+ * UI improvements
75
+ * Quality Control improvements / debug
76
+ * 301 instead of 302 when only one variation present
77
+
78
  = 2.1.8 =
79
  * Fix simple solid light
80
  * Fix issue with legacy image uploader issue.
shared/assets/includes/BootStrap/css/bootstrap.css CHANGED
@@ -5691,9 +5691,11 @@ button.close {
5691
  background-color: transparent;
5692
  border: 0;
5693
  }
5694
- .hidden {
5695
- display: none !important;
5696
- visibility: hidden !important;
 
 
5697
  }
5698
  .affix {
5699
  position: fixed;
5691
  background-color: transparent;
5692
  border: 0;
5693
  }
5694
+ :not(#wpbody) {
5695
+ .hidden {
5696
+ display: none! important;
5697
+ visibility: hidden! important;
5698
+ }
5699
  }
5700
  .affix {
5701
  position: fixed;
shared/classes/class.ajax.php CHANGED
@@ -53,6 +53,7 @@ if (!class_exists('Inbound_Ajax')) {
53
 
54
 
55
  $page_views = json_decode(stripslashes($_POST['page_views']));
 
56
 
57
  /* update funnel cookie */
58
  if (isset($_COOKIE['inbound_page_views'])) {
@@ -61,6 +62,7 @@ if (!class_exists('Inbound_Ajax')) {
61
  $stored_views = array();
62
  }
63
 
 
64
  foreach ($page_views as $page_id => $visits ) {
65
  if (!in_array($page_id, $stored_views)) {
66
  $stored_views[] = $page_id;
53
 
54
 
55
  $page_views = json_decode(stripslashes($_POST['page_views']));
56
+ $page_views = ($page_views) ? $page_views : array();
57
 
58
  /* update funnel cookie */
59
  if (isset($_COOKIE['inbound_page_views'])) {
62
  $stored_views = array();
63
  }
64
 
65
+
66
  foreach ($page_views as $page_id => $visits ) {
67
  if (!in_array($page_id, $stored_views)) {
68
  $stored_views[] = $page_id;
shared/classes/class.events.php CHANGED
@@ -31,6 +31,9 @@ class Inbound_Events {
31
  /* listen for Inbound Form submissions and record event to events table */
32
  add_action('inbound_email_click_event' , array( __CLASS__ , 'store_email_click'), 10 , 1);
33
 
 
 
 
34
  /* listen for Inbound Mailer send event and record to events table
35
  * I think we can pull this infromation directly from Mandril
36
  add_action('inbound_mandrill_send_event' , array( __CLASS__ , 'store_email_send'), 10 , 2);
@@ -90,6 +93,10 @@ class Inbound_Events {
90
  */
91
  public static function store_form_submission( $lead ){
92
 
 
 
 
 
93
  parse_str($lead['raw_params'] , $raw_params );
94
  $details = array_merge($raw_params,$lead);
95
  $args = array(
@@ -217,6 +224,72 @@ class Inbound_Events {
217
 
218
  }
219
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
220
  /**
221
  * Get all form submission events related to lead ID
222
  */
31
  /* listen for Inbound Form submissions and record event to events table */
32
  add_action('inbound_email_click_event' , array( __CLASS__ , 'store_email_click'), 10 , 1);
33
 
34
+ /* Saves all all incoming POST data as meta pairs */
35
+ add_action('before_delete_post', array(__CLASS__, 'delete_related_events'));
36
+
37
  /* listen for Inbound Mailer send event and record to events table
38
  * I think we can pull this infromation directly from Mandril
39
  add_action('inbound_mandrill_send_event' , array( __CLASS__ , 'store_email_send'), 10 , 2);
93
  */
94
  public static function store_form_submission( $lead ){
95
 
96
+ if (! isset($lead['raw_params']) ) {
97
+ return;
98
+ }
99
+
100
  parse_str($lead['raw_params'] , $raw_params );
101
  $details = array_merge($raw_params,$lead);
102
  $args = array(
224
 
225
  }
226
 
227
+ public static function delete_related_events( $post_id ) {
228
+ global $wpdb;
229
+
230
+ $post = get_post($post_id);
231
+
232
+ $table_name = $wpdb->prefix . "inbound_events";
233
+
234
+ switch ($post->post_type) {
235
+ case 'inbound-email':
236
+ $where = array(
237
+ 'email_id' => $post_id
238
+ );
239
+ break;
240
+ case 'wp-lead':
241
+ $where = array(
242
+ 'lead_id' => $post_id
243
+ );
244
+ break;
245
+ default:
246
+ $where = array(
247
+ 'page_id' => $post_id
248
+ );
249
+ break;
250
+ }
251
+
252
+ $wpdb->delete( $table_name, $where, $where_format = null );
253
+
254
+ }
255
+
256
+ /**
257
+ * Checks if an event has already been created. Right now inbound-mailer is the only tool leveraging this.
258
+ * It will need to be improved to support other uses
259
+ * @param $args
260
+ * @return bool
261
+ */
262
+ public static function event_exists( $args ) {
263
+ global $wpdb;
264
+
265
+ $table_name = $wpdb->prefix . "inbound_events";
266
+
267
+ $defaults = array(
268
+ 'page_id' => '',
269
+ 'variation_id' => '',
270
+ 'form_id' => '',
271
+ 'cta_id' => '',
272
+ 'email_id' => '',
273
+ 'lead_id' => ( isset($_COOKIE['wp_lead_id']) ? $_COOKIE['wp_lead_id'] : '' ),
274
+ 'lead_uid' => ( isset($_COOKIE['wp_lead_uid']) ? $_COOKIE['wp_lead_uid'] : '' ),
275
+ 'session_id' => '',
276
+ 'event_name' => $args['event_name'],
277
+ 'event_details' => '',
278
+ 'datetime' => $wordpress_date_time,
279
+ 'funnel' => ( isset($_SESSION['inbound_page_views']) ? $_SESSION['inbound_page_views'] : '' ),
280
+ 'source' => ( isset($_COOKIE['inbound_referral_site']) ? $_COOKIE['inbound_referral_site'] : '' )
281
+ );
282
+
283
+
284
+ $args = array_merge( $defaults , $args );
285
+
286
+ if($wpdb->get_row("SELECT * FROM $table_name WHERE event_name = '".$args['event_name']."' && email_id = '".$args['email_id']."' && lead_id = '".$args['email_id']."' && variation_id = '".$args['variation_id']."' ", ARRAY_A)) {
287
+ return true;
288
+ } else {
289
+ return false;
290
+ }
291
+ }
292
+
293
  /**
294
  * Get all form submission events related to lead ID
295
  */
shared/classes/class.form.php CHANGED
@@ -934,6 +934,25 @@ if (!class_exists('Inbound_Forms')) {
934
  */
935
  static function get_new_lead_email_template() {
936
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
937
  $html = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
938
  <html>
939
  <head>
@@ -964,8 +983,8 @@ if (!class_exists('Inbound_Forms')) {
964
  <tbody><tr>
965
  <td valign="top" style="font-size:13px;line-height:20px;color:#545454;font-family:Arial,sans-serif;border-radius:0 0 3px 3px;padding-top:3px;padding-right:30px;padding-bottom:15px;padding-left:30px">
966
 
967
- <h1 style="margin-top:20px;margin-right:0;margin-bottom:20px;margin-left:0; font-size:28px; line-height: 28px; color:#000;"> ' . __('New Lead on {{form-name}}', 'ma') . '</h1>
968
- <p style="margin-top:20px;margin-right:0;margin-bottom:20px;margin-left:0">' . __('There is a new lead that just converted on <strong>{{date-time}}</strong> from page: <a href="{{source}}">{{source}}</a> {{redirect-message}}', 'ma') . '</p>
969
 
970
  <!-- NEW TABLE -->
971
  <table class="heavyTable" style="width: 100%;
@@ -977,14 +996,14 @@ if (!class_exists('Inbound_Forms')) {
977
  <tbody>
978
  <tr style="background: #3A9FD1; height: 54px; font-weight: lighter; color: #fff;border: 1px solid #3A9FD1;text-align: left; padding-left: 10px;">
979
  <td align="left" width="600" style="-webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; color: #fff; font-weight: bold; text-decoration: none; font-family: Helvetica, Arial, sans-serif; display: block;">
980
- <h1 style="font-size: 30px; display: inline-block;margin-top: 15px;margin-left: 10px; margin-bottom: 0px; letter-spacing: 0px; word-spacing: 0px; font-weight: 300;">' . __('Lead Information', 'ma') . '</h1>
981
  <div style="float:right; margin-top: 5px; margin-right: 15px;"><!--[if mso]>
982
  <v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{admin-url}}edit.php?post_type=wp-lead&lead-email-redirect={{lead-email-address}}" style="height:40px;v-text-anchor:middle;width:130px;font-size:18px;" arcsize="10%" stroke="f" fillcolor="#ffffff">
983
  <w:anchorlock/>
984
  <center>
985
  <![endif]-->
986
  <a href="{{admin-url}}edit.php?post_type=wp-lead&lead-email-redirect={{lead-email-address}}"
987
- style="background-color:#ffffff;border-radius:4px;color:#3A9FD1;display:inline-block;font-family:sans-serif;font-size:18px;font-weight:bold;line-height:40px;text-align:center;text-decoration:none;width:130px;-webkit-text-size-adjust:none;">' . __('View Lead', 'ma') . '</a>
988
  <!--[if mso]>
989
  </center>
990
  </v:roundrect>
@@ -1009,15 +1028,15 @@ if (!class_exists('Inbound_Forms')) {
1009
  <tbody valign="top">
1010
  <tr valign="top" border="0">
1011
  <td width="160" height="50" align="center" valign="top" border="0">
1012
- <h3 style="color:#2e2e2e;font-size:15px;"><a style="text-decoration: none;" href="{{admin-url}}edit.php?post_type=wp-lead&lead-email-redirect={{lead-email-address}}&tab=tabs-wpleads_lead_tab_conversions">' . __('View Lead Activity', 'ma') . '</a></h3>
1013
  </td>
1014
 
1015
  <td width="160" height="50" align="center" valign="top" border="0">
1016
- <h3 style="color:#2e2e2e;font-size:15px;"><a style="text-decoration: none;" href="{{admin-url}}edit.php?post_type=wp-lead&lead-email-redirect={{lead-email-address}}&scroll-to=wplead_metabox_conversion">' . __('Pages Viewed', 'ma') . '</a></h3>
1017
  </td>
1018
 
1019
  <td width="160" height="50" align="center" valign="top" border="0">
1020
- <h3 style="color:#2e2e2e;font-size:15px;"><a style="text-decoration: none;" href="{{admin-url}}edit.php?post_type=wp-lead&lead-email-redirect={{lead-email-address}}&tab=tabs-wpleads_lead_tab_raw_form_data">' . __('View Form Data', 'ma') . '</a></h3>
1021
  </td>
1022
  </tr>
1023
  </tbody></table>
@@ -1029,21 +1048,21 @@ if (!class_exists('Inbound_Forms')) {
1029
  <div><!--[if mso]>
1030
  <v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{admin-url}}edit.php?post_type=wp-lead&lead-email-redirect={{lead-email-address}}" style="height:40px;v-text-anchor:middle;width:250px;" arcsize="10%" strokecolor="#7490af" fillcolor="#3A9FD1">
1031
  <w:anchorlock/>
1032
- <center style="color:#ffffff;font-family:sans-serif;font-size:13px;font-weight:bold;">' . __('View Lead', 'ma') . '</center>
1033
  </v:roundrect>
1034
  <![endif]--><a href="{{admin-url}}edit.php?post_type=wp-lead&lead-email-redirect={{lead-email-address}}"
1035
- style="background-color:#3A9FD1;border:1px solid #7490af;border-radius:4px;color:#ffffff;display:inline-block;font-family:sans-serif;font-size:18px;font-weight:bold;line-height:40px;text-align:center;text-decoration:none;width:250px;-webkit-text-size-adjust:none;mso-hide:all;" title="' . __('View the full Lead details in WordPress', 'ma') . '">' . __('View Full Lead Details', 'ma') . '</a>
1036
  </div>
1037
  </td>
1038
 
1039
  <td align="center" width="250" height="30" cellpadding="5">
1040
  <div><!--[if mso]>
1041
- <v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="mailto:{{lead-email-address}}?subject=RE:{{form-name}}&body=' . __('Thanks for filling out our form.', 'ma') . '" style="height:40px;v-text-anchor:middle;width:250px;" arcsize="10%" strokecolor="#558939" fillcolor="#59b329">
1042
  <w:anchorlock/>
1043
- <center style="color:#ffffff;font-family:sans-serif;font-size:13px;font-weight:bold;">' . __('Reply to Lead Now', 'ma') . '</center>
1044
  </v:roundrect>
1045
- <![endif]--><a href="mailto:{{lead-email-address}}?subject=RE:{{form-name}}&body=' . __('Thanks for filling out our form on {{current-page-url}}', 'ma') . '"
1046
- style="background-color:#59b329;border:1px solid #558939;border-radius:4px;color:#ffffff;display:inline-block;font-family:sans-serif;font-size:18px;font-weight:bold;line-height:40px;text-align:center;text-decoration:none;width:250px;-webkit-text-size-adjust:none;mso-hide:all;" title="' . __('Email This Lead now', 'ma') . '">' . __('Reply to Lead Now', 'ma') . '</a></div>
1047
 
1048
  </td>
1049
  </tr>
@@ -1065,18 +1084,7 @@ if (!class_exists('Inbound_Forms')) {
1065
  <td style="color:#545454;text-align:right" align="right">&nbsp;</td>
1066
  <td valign="middle" width="30" style="color:#272727">&nbsp;</td>
1067
  </tr>
1068
- <tr>
1069
- <td valign="middle" width="30" style="color:#272727">&nbsp;</td>
1070
- <td width="50" height="40" valign="middle" align="left" style="color:#272727">
1071
- <a href="http://www.inboundnow.com" target="_blank"><img src="{{leads-urlpath}}images/inbound-email.png" height="40" width="40" alt=" " style="outline:none;text-decoration:none;max-width:100%;display:block;width:40px;min-height:40px;border-radius:20px"></a>
1072
- </td>
1073
- <td style="color:#272727"><a style="color:#272727;text-decoration:none;" href="http://www.inboundnow.com" target="_blank">
1074
- ' . __('<b>Leads</b>
1075
- from Inbound Now', 'ma') . '</a>
1076
- </td>
1077
- <td valign="middle" align="left" style="color:#545454;text-align:right">{{date-time}}</td>
1078
- <td valign="middle" width="30" style="color:#272727">&nbsp;</td>
1079
- </tr>
1080
  <tr>
1081
  <td valign="top" height="6" style="color:#272727;line-height:1px">&nbsp;</td>
1082
  <td style="color:#272727;line-height:1px">&nbsp;</td>
934
  */
935
  static function get_new_lead_email_template() {
936
 
937
+ if (get_option('inbound_admin_notification_inboundnow_link',true)) {
938
+ $credit = '<tr>
939
+ <td valign="middle" width="30" style="color:#272727">&nbsp;</td>
940
+ <td width="50" height="40" valign="middle" align="left" style="color:#272727">
941
+ <a href="http://www.inboundnow.com" target="_blank"><img src="{{leads-urlpath}}assets/images/inbound-email.png" height="40" width="40" alt=" " style="outline:none;text-decoration:none;max-width:100%;display:block;width:40px;min-height:40px;border-radius:20px"></a>
942
+ </td>
943
+ <td style="color:#272727">
944
+ <a style="color:#272727;text-decoration:none;" href="http://www.inboundnow.com" target="_blank">
945
+ ' . __('<b>Leads</b> from Inbound Now', 'inbound-pro') . '
946
+ </a>
947
+ </td>
948
+ <td valign="middle" align="left" style="color:#545454;text-align:right">{{date-time}}</td>
949
+ <td valign="middle" width="30" style="color:#272727">&nbsp;</td>
950
+ </tr>';
951
+ } else {
952
+ $credit = '';
953
+ }
954
+
955
+
956
  $html = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
957
  <html>
958
  <head>
983
  <tbody><tr>
984
  <td valign="top" style="font-size:13px;line-height:20px;color:#545454;font-family:Arial,sans-serif;border-radius:0 0 3px 3px;padding-top:3px;padding-right:30px;padding-bottom:15px;padding-left:30px">
985
 
986
+ <h1 style="margin-top:20px;margin-right:0;margin-bottom:20px;margin-left:0; font-size:28px; line-height: 28px; color:#000;"> ' . __('New Lead on {{form-name}}', 'inbound-pro') . '</h1>
987
+ <p style="margin-top:20px;margin-right:0;margin-bottom:20px;margin-left:0">' . __('There is a new lead that just converted on <strong>{{date-time}}</strong> from page: <a href="{{source}}">{{source}}</a> {{redirect-message}}', 'inbound-pro') . '</p>
988
 
989
  <!-- NEW TABLE -->
990
  <table class="heavyTable" style="width: 100%;
996
  <tbody>
997
  <tr style="background: #3A9FD1; height: 54px; font-weight: lighter; color: #fff;border: 1px solid #3A9FD1;text-align: left; padding-left: 10px;">
998
  <td align="left" width="600" style="-webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; color: #fff; font-weight: bold; text-decoration: none; font-family: Helvetica, Arial, sans-serif; display: block;">
999
+ <h1 style="font-size: 30px; display: inline-block;margin-top: 15px;margin-left: 10px; margin-bottom: 0px; letter-spacing: 0px; word-spacing: 0px; font-weight: 300;">' . __('Lead Information', 'inbound-pro') . '</h1>
1000
  <div style="float:right; margin-top: 5px; margin-right: 15px;"><!--[if mso]>
1001
  <v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{admin-url}}edit.php?post_type=wp-lead&lead-email-redirect={{lead-email-address}}" style="height:40px;v-text-anchor:middle;width:130px;font-size:18px;" arcsize="10%" stroke="f" fillcolor="#ffffff">
1002
  <w:anchorlock/>
1003
  <center>
1004
  <![endif]-->
1005
  <a href="{{admin-url}}edit.php?post_type=wp-lead&lead-email-redirect={{lead-email-address}}"
1006
+ style="background-color:#ffffff;border-radius:4px;color:#3A9FD1;display:inline-block;font-family:sans-serif;font-size:18px;font-weight:bold;line-height:40px;text-align:center;text-decoration:none;width:130px;-webkit-text-size-adjust:none;">' . __('View Lead', 'inbound-pro') . '</a>
1007
  <!--[if mso]>
1008
  </center>
1009
  </v:roundrect>
1028
  <tbody valign="top">
1029
  <tr valign="top" border="0">
1030
  <td width="160" height="50" align="center" valign="top" border="0">
1031
+ <h3 style="color:#2e2e2e;font-size:15px;"><a style="text-decoration: none;" href="{{admin-url}}edit.php?post_type=wp-lead&lead-email-redirect={{lead-email-address}}&tab=tabs-wpleads_lead_tab_conversions">' . __('View Lead Activity', 'inbound-pro') . '</a></h3>
1032
  </td>
1033
 
1034
  <td width="160" height="50" align="center" valign="top" border="0">
1035
+ <h3 style="color:#2e2e2e;font-size:15px;"><a style="text-decoration: none;" href="{{admin-url}}edit.php?post_type=wp-lead&lead-email-redirect={{lead-email-address}}&scroll-to=wplead_metabox_conversion">' . __('Pages Viewed', 'inbound-pro') . '</a></h3>
1036
  </td>
1037
 
1038
  <td width="160" height="50" align="center" valign="top" border="0">
1039
+ <h3 style="color:#2e2e2e;font-size:15px;"><a style="text-decoration: none;" href="{{admin-url}}edit.php?post_type=wp-lead&lead-email-redirect={{lead-email-address}}&tab=tabs-wpleads_lead_tab_raw_form_data">' . __('View Form Data', 'inbound-pro') . '</a></h3>
1040
  </td>
1041
  </tr>
1042
  </tbody></table>
1048
  <div><!--[if mso]>
1049
  <v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{admin-url}}edit.php?post_type=wp-lead&lead-email-redirect={{lead-email-address}}" style="height:40px;v-text-anchor:middle;width:250px;" arcsize="10%" strokecolor="#7490af" fillcolor="#3A9FD1">
1050
  <w:anchorlock/>
1051
+ <center style="color:#ffffff;font-family:sans-serif;font-size:13px;font-weight:bold;">' . __('View Lead', 'inbound-pro') . '</center>
1052
  </v:roundrect>
1053
  <![endif]--><a href="{{admin-url}}edit.php?post_type=wp-lead&lead-email-redirect={{lead-email-address}}"
1054
+ style="background-color:#3A9FD1;border:1px solid #7490af;border-radius:4px;color:#ffffff;display:inline-block;font-family:sans-serif;font-size:18px;font-weight:bold;line-height:40px;text-align:center;text-decoration:none;width:250px;-webkit-text-size-adjust:none;mso-hide:all;" title="' . __('View the full Lead details in WordPress', 'inbound-pro') . '">' . __('View Full Lead Details', 'inbound-pro') . '</a>
1055
  </div>
1056
  </td>
1057
 
1058
  <td align="center" width="250" height="30" cellpadding="5">
1059
  <div><!--[if mso]>
1060
+ <v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="mailto:{{lead-email-address}}?subject=RE:{{form-name}}&body=' . __('Thanks for filling out our form.', 'inbound-pro') . '" style="height:40px;v-text-anchor:middle;width:250px;" arcsize="10%" strokecolor="#558939" fillcolor="#59b329">
1061
  <w:anchorlock/>
1062
+ <center style="color:#ffffff;font-family:sans-serif;font-size:13px;font-weight:bold;">' . __('Reply to Lead Now', 'inbound-pro') . '</center>
1063
  </v:roundrect>
1064
+ <![endif]--><a href="mailto:{{lead-email-address}}?subject=RE:{{form-name}}&body=' . __('Thanks for filling out our form on {{current-page-url}}', 'inbound-pro') . '"
1065
+ style="background-color:#59b329;border:1px solid #558939;border-radius:4px;color:#ffffff;display:inline-block;font-family:sans-serif;font-size:18px;font-weight:bold;line-height:40px;text-align:center;text-decoration:none;width:250px;-webkit-text-size-adjust:none;mso-hide:all;" title="' . __('Email This Lead now', 'inbound-pro') . '">' . __('Reply to Lead Now', 'inbound-pro') . '</a></div>
1066
 
1067
  </td>
1068
  </tr>
1084
  <td style="color:#545454;text-align:right" align="right">&nbsp;</td>
1085
  <td valign="middle" width="30" style="color:#272727">&nbsp;</td>
1086
  </tr>
1087
+ '.$credit.'
 
 
 
 
 
 
 
 
 
 
 
1088
  <tr>
1089
  <td valign="top" height="6" style="color:#272727;line-height:1px">&nbsp;</td>
1090
  <td style="color:#272727;line-height:1px">&nbsp;</td>
shared/classes/class.promote.php CHANGED
@@ -165,7 +165,7 @@ class Inbound_Promote {
165
  ' . __('Both are free, and we invite you to try them!' , INBOUNDNOW_TEXT_DOMAIN ) .'
166
  </p>
167
  <br>
168
- <a class="button button-primary button-large" href="http://wordpress.org/plugins/leads" target="_blank">' . __('Download Leads Plugin', INBOUNDNOW_TEXT_DOMAIN) . '</a>
169
  <a class="button button-primary button-large" href="http://www.inboundnow.com/upgrade/" target="_blank">' . __('Download Inbound Pro (recommended)', INBOUNDNOW_TEXT_DOMAIN) . '</a>
170
  <a class="button button-default button-large inbound_dismiss" href="#" id="'.$message_id.'" data-notification-id="'.$message_id.'" >' . __('Dismiss this message', INBOUNDNOW_TEXT_DOMAIN) . '</a>
171
  <br>
@@ -229,7 +229,7 @@ class Inbound_Promote {
229
  }
230
 
231
  public static function dismiss_notice() {
232
- update_user_meta($_REQUEST['user_id'], 'inbound_notification_' . $_REQUEST['notification_id'] ) ;
233
  exit;
234
  }
235
 
165
  ' . __('Both are free, and we invite you to try them!' , INBOUNDNOW_TEXT_DOMAIN ) .'
166
  </p>
167
  <br>
168
+ <a class="button button-primary button-large" href="'.admin_url('plugin-install.php?tab=search&s=leads').'" >' . __('Download Leads Plugin', INBOUNDNOW_TEXT_DOMAIN) . '</a>
169
  <a class="button button-primary button-large" href="http://www.inboundnow.com/upgrade/" target="_blank">' . __('Download Inbound Pro (recommended)', INBOUNDNOW_TEXT_DOMAIN) . '</a>
170
  <a class="button button-default button-large inbound_dismiss" href="#" id="'.$message_id.'" data-notification-id="'.$message_id.'" >' . __('Dismiss this message', INBOUNDNOW_TEXT_DOMAIN) . '</a>
171
  <br>
229
  }
230
 
231
  public static function dismiss_notice() {
232
+ update_user_meta($_REQUEST['user_id'], 'inbound_notification_' . $_REQUEST['notification_id'] , 'viewed' ) ;
233
  exit;
234
  }
235