Admin Columns - Version 2.3.5

Version Description

  • [Added] Added a width indicator to the column settings header
Download this release

Release Info

Developer codepress
Plugin Icon 128x128 Admin Columns
Version 2.3.5
Comparing to
See all releases

Code changes from version 2.3.3 to 2.3.5

README.md ADDED
File without changes
api.php CHANGED
@@ -1,4 +1,13 @@
1
<?php
2
/**
3
* Manually set the columns for a storage model
4
* This overrides the database settings and thus renders the settings screen for this storage model useless
@@ -8,24 +17,21 @@
8
* @param string $storage_model Storage model key
9
* @param array $columns List of columns ([column_name] => [column_options])
10
*/
11
- function cpac_set_storage_model_columns( $storage_model, $columns ) {
12
global $_cac_exported_columns;
13
- $_cac_exported_columns[ $storage_model ] = $columns;
14
- }
15
16
- /**
17
- * Set exported columns
18
- *
19
- * @since 3.2
20
- */
21
- function cpac_set_exported_columns( $cpac ) {
22
- global $_cac_exported_columns;
23
- if ( $_cac_exported_columns ) {
24
- foreach( $_cac_exported_columns as $model => $columns ) {
25
- if ( $storage_model = $cpac->get_storage_model( $model ) ) {
26
- $storage_model->set_stored_columns( $columns );
27
- }
28
}
29
}
30
}
31
- add_action( 'cac/loaded', 'cpac_set_exported_columns', 5 );
1
<?php
2
+ /**
3
+ * If you like to register a column of your own please have a look at our documentation.
4
+ * We also have a free start-kit available, which contains all the necessary files.
5
+ *
6
+ * Documentation: https://www.admincolumns.com/documentation/developer-docs/creating-new-column-type/
7
+ * Starter-kit: https://github.com/codepress/cac-column-template/
8
+ *
9
+ */
10
+
11
/**
12
* Manually set the columns for a storage model
13
* This overrides the database settings and thus renders the settings screen for this storage model useless
17
* @param string $storage_model Storage model key
18
* @param array $columns List of columns ([column_name] => [column_options])
19
*/
20
+ function ac_register_columns( $storage_model, $columns ) {
21
global $_cac_exported_columns;
22
23
+ $storage_models = (array) $storage_model;
24
+
25
+ foreach ( $storage_models as $storage_model ) {
26
+ if ( isset( $_cac_exported_columns[ $storage_model ] ) ) {
27
+ $_cac_exported_columns[ $storage_model ] = array_merge( $_cac_exported_columns[ $storage_model ], $columns );
28
+ }
29
+ else {
30
+ $_cac_exported_columns[ $storage_model ] = $columns;
31
}
32
}
33
}
34
+
35
+ function cpac_set_storage_model_columns( $storage_model, $columns ) {
36
+ ac_register_columns( $storage_model, $columns );
37
+ }
assets/css/admin-column.css CHANGED
@@ -1,1024 +1 @@
1
- #cpac a:focus,
2
- #cpac a:active {
3
- outline: none;
4
- }
5
- /**
6
- * General
7
- * ----------------------------------------------------------------------------
8
- */
9
- #icon-codepress-admin-columns {
10
- background: transparent url('../images/icon.png') no-repeat 0 0;
11
- }
12
- .cpac-settings-link {
13
- float: right;
14
- margin: 12px 14px 5px 0;
15
- background: transparent url('../images/settings.png') no-repeat 0 0;
16
- padding-left: 20px;
17
- text-decoration: none;
18
- display: inline-block;
19
- line-height: 16px;
20
- }
21
- .cpac-settings-link.current {
22
- font-weight: bold;
23
- }
24
- .rtl .cpac-settings-link {
25
- float: left;
26
- margin: 12px 0 5px 14px;
27
- padding-right: 20px;
28
- padding-left: 0;
29
- }
30
- a.help {
31
- background: transparent url('../images/help.png') no-repeat 0 0;
32
- display: inline-block;
33
- width: 16px;
34
- height: 16px;
35
- }
36
- .button.loading {
37
- padding-right: 25px;
38
- position: relative;
39
- }
40
- .rtl .button.loading {
41
- padding-left: 25px;
42
- padding-right: 0;
43
- }
44
- .button.loading span {
45
- position: absolute;
46
- top: 2px;
47
- right: 6px;
48
- background: transparent url('../images/loading.gif') no-repeat right 50%;
49
- width: 16px;
50
- height: 16px;
51
- display: inline-block;
52
- }
53
- .rtl .button.loading span {
54
- left: 6px;
55
- right: auto;
56
- }
57
- /**
58
- * Icons
59
- * ----------------------------------------------------------------------------
60
- */
61
- .icon-yes {
62
- background: transparent url(../images/yes.png) no-repeat 0 0;
63
- width: 16px;
64
- height: 16px;
65
- display: inline-block;
66
- position: relative;
67
- top: 2px;
68
- }
69
- .icon-no {
70
- background: transparent url(../images/no.png) no-repeat 0 0;
71
- width: 16px;
72
- height: 16px;
73
- display: inline-block;
74
- position: relative;
75
- top: 2px;
76
- }
77
- /**
78
- * Header
79
- * ----------------------------------------------------------------------------
80
- */
81
- h2.cpac-nav-tab-wrapper {
82
- margin-bottom: 10px;
83
- }
84
- /**
85
- * Menu
86
- * ----------------------------------------------------------------------------
87
- */
88
- .cpac-menu {
89
- clear: both;
90
- overflow: hidden;
91
- margin-bottom: 10px;
92
- }
93
- .cpac-menu .subsubsub {
94
- white-space: normal;
95
- margin-right: 14px;
96
- width: 100%;
97
- margin: 0 14px 0 0;
98
- }
99
- .cpac-menu .subsubsub li.first {
100
- font-weight: bold;
101
- min-width: 90px;
102
- }
103
- /**
104
- * Structure
105
- * ----------------------------------------------------------------------------
106
- */
107
- .columns-container {
108
- margin-right: 300px;
109
- max-width: 700px;
110
- }
111
- .columns-container .columns-left {
112
- float: left;
113
- width: 100%;
114
- }
115
- .columns-container .columns-right {
116
- float: right;
117
- margin-right: -300px;
118
- width: 280px;
119
- }
120
- .columns-container .columns-right .columns-right-inside.fixed {
121
- position: fixed;
122
- top: 40px;
123
- width: 280px;
124
- }
125
- /**
126
- * UI Sortable Plugin
127
- * ----------------------------------------------------------------------------
128
- */
129
- .ui-sortable-helper {
130
- -webkit-box-shadow: 1px 3px 6px 0px rgba(1, 1, 1, 0.4);
131
- box-shadow: 1px 3px 6px 0px rgba(1, 1, 1, 0.4);
132
- }
133
- .ui-sortable-helper .column-meta {
134
- border-width: 1px;
135
- }
136
- .cpac-placeholder {
137
- visibility: visible !important;
138
- border-top: 1px solid #dfdfdf;
139
- padding: 5px 4px 7px 0;
140
- }
141
- .cpac-placeholder .inner-placeholder {
142
- border: 1px dashed #808080;
143
- background: #eee;
144
- width: 100%;
145
- height: 100%;
146
- }
147
- .cpac-placeholder :first-child {
148
- border: none;
149
- }
150
- /**
151
- * Columns
152
- * ----------------------------------------------------------------------------
153
- */
154
- .columns-left .cpac-boxes .cpac-columns form {
155
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
156
- }
157
- /**
158
- * Column
159
- * ----------------------------------------------------------------------------
160
- */
161
- .cpac-column .column-meta {
162
- border-style: solid;
163
- border-color: #dfdfdf;
164
- border-width: 1px 1px 0;
165
- background: #fcfcfc;
166
- }
167
- .cpac-column .column-meta:nth-child(2n) .column-meta {
168
- background: #f9f9f9;
169
- }
170
- .cpac-column .column-meta img {
171
- margin-right: 3px;
172
- }
173
- .cpac-column .column-meta table {
174
- border: none;
175
- background: transparent;
176
- border-radius: 0;
177
- }
178
- .cpac-column .column-meta table tr td {
179
- vertical-align: top;
180
- height: 18px;
181
- border: none;
182
- padding: 11px 8px;
183
- border-width: 1px 0 0;
184
- border-style: solid;
185
- border-color: transparent;
186
- }
187
- .cpac-column .column-meta table tr td.column_sort {
188
- width: 10px;
189
- background: transparent url('../images/drag.png') no-repeat 8px 8px;
190
- cursor: move;
191
- }
192
- .cpac-column .column-meta table tr td.column_label {
193
- width: 70%;
194
- font-weight: bold;
195
- vertical-align: middle;
196
- position: relative;
197
- }
198
- .cpac-column .column-meta table tr td.column_label .inner {
199
- position: relative;
200
- overflow: hidden;
201
- height: 18px;
202
- }
203
- .cpac-column .column-meta table tr td.column_label .inner > a {
204
- color: #5a5a5a;
205
- padding: 0 4px;
206
- }
207
- .cpac-column .column-meta table tr td.column_label .inner > a:hover {
208
- color: #333333;
209
- }
210
- .cpac-column .column-meta table tr td.column_label .inner > a.edit-button,
211
- .cpac-column .column-meta table tr td.column_label .inner > a.remove-button,
212
- .cpac-column .column-meta table tr td.column_label .inner > a.clone-button {
213
- display: none;
214
- color: #a00;
215
- text-decoration: none;
216
- text-shadow: none;
217
- font-weight: normal;
218
- margin-left: 5px;
219
- font-size: 12px;
220
- }
221
- .cpac-column .column-meta table tr td.column_label .inner > a.edit-button:hover,
222
- .cpac-column .column-meta table tr td.column_label .inner > a.remove-button:hover,
223
- .cpac-column .column-meta table tr td.column_label .inner > a.clone-button:hover {
224
- color: #f00;
225
- }
226
- .cpac-column .column-meta table tr td.column_label .inner > a.edit-button,
227
- .cpac-column .column-meta table tr td.column_label .inner > a.clone-button {
228
- color: #0074a2;
229
- }
230
- .cpac-column .column-meta table tr td.column_label .inner > a.edit-button:hover,
231
- .cpac-column .column-meta table tr td.column_label .inner > a.clone-button:hover {
232
- color: #2ea2cc;
233
- }
234
- .cpac-column .column-meta table tr td.column_label .inner .meta {
235
- display: inline-block;
236
- float: right;
237
- font-weight: normal;
238
- color: #b2b2b2;
239
- font-size: 12px;
240
- }
241
- .cpac-column .column-meta table tr td.column_label .inner .meta span {
242
- cursor: pointer;
243
- /*background: #ccc;
244
- border-radius: 2px;
245
- padding: 0 4px;
246
- color: #fff;
247
- display: inline-block;
248
- height: 15px;
249
- line-height: 15px;
250
-
251
- &.on {
252
- background: #1e8cbe;
253
- }*/
254
- }
255
- .cpac-column .column-meta table tr td.column_label span.vers {
256
- float: left;
257
- }
258
- .cpac-column .column-meta table tr td.column_type {
259
- width: auto;
260
- min-width: 120px;
261
- text-align: right;
262
- vertical-align: middle;
263
- color: #999999;
264
- padding-right: 0;
265
- }
266
- .cpac-column .column-meta table tr td.column_type .inner {
267
- height: 18px;
268
- overflow: hidden;
269
- }
270
- .cpac-column .column-meta table tr td.column_type .inner a {
271
- color: #999999;
272
- }
273
- .cpac-column .column-meta table tr td.column_edit {
274
- width: 38px;
275
- min-width: 38px;
276
- background: transparent url('../images/arrow.png') no-repeat 23px 18px;
277
- cursor: pointer;
278
- }
279
- .cpac-column .column-meta:hover .column_label .inner > a.remove-button,
280
- .cpac-column .column-meta:hover .column_label .inner > a.edit-button,
281
- .cpac-column .column-meta:hover .column_label .inner > a.clone-button {
282
- display: inline-block;
283
- }
284
- .cpac-column .column-meta span.vers {
285
- padding-top: 2px;
286
- }
287
- .cpac-column .column-meta span.vers .comment-grey-bubble {
288
- background: transparent url("../images/comment-grey-bubble.png") no-repeat 0 0;
289
- height: 12px;
290
- width: 12px;
291
- float: right;
292
- }
293
- .cpac-column .column-form {
294
- display: none;
295
- border-width: 1px 1px 0;
296
- border-style: solid;
297
- border-color: #dfdfdf;
298
- position: relative;
299
- }
300
- .cpac-column .column-form table {
301
- border: none;
302
- background: #fcfcfc;
303
- }
304
- .cpac-column .column-form table tr td {
305
- vertical-align: top;
306
- border: none;
307
- padding: 8px;
308
- background: #ffffff;
309
- border-top: 1px solid #F5F5F5;
310
- }
311
- .cpac-column .column-form table tr td select,
312
- .cpac-column .column-form table tr td input[type=text] {
313
- width: 99.95%;
314
- }
315
- .cpac-column .column-form table tr td select optgroup:nth-child(2n) {
316
- background: #F9F9F9;
317
- }
318
- .cpac-column .column-form table tr td.label {
319
- position: relative;
320
- overflow: visible;
321
- background: #F9F9F9;
322
- background: #f5f5f5;
323
- border-right: 1px solid #E1E1E1;
324
- vertical-align: top;
325
- width: 34%;
326
- border-top: 1px solid #F0F0F0;
327
- }
328
- .cpac-column .column-form table tr td.label label {
329
- font-weight: bold;
330
- color: #333333;
331
- display: block;
332
- position: relative;
333
- }
334
- .cpac-column .column-form table tr td.label p {
335
- color: #666666;
336
- display: block;
337
- font-size: 12px;
338
- font-style: normal;
339
- line-height: 16px;
340
- margin: 0 !important;
341
- }
342
- .cpac-column .column-form table tr td.label p.description {
343
- display: none;
344
- position: absolute;
345
- z-index: 99;
346
- top: 30px;
347
- left: 0;
348
- background: #eaf2fa;
349
- border-radius: 5px;
350
- border: 1px solid #c7d7e2;
351
- padding: 5px 8px !important;
352
- font-weight: normal;
353
- }
354
- .cpac-column .column-form table tr td.label p.description em {
355
- display: block;
356
- color: #999;
357
- }
358
- .cpac-column .column-form table tr td.input label {
359
- padding-left: 10px;
360
- padding-right: 0;
361
- }
362
- .cpac-column .column-form table tr td.input div.msg {
363
- margin-top: 5px;
364
- display: none;
365
- color: #333;
366
- padding: 6px 8px;
367
- background-color: #ffebe8;
368
- border: 1px solid #fff;
369
- -moz-border-radius: 3px;
370
- -webkit-border-radius: 3px;
371
- border-radius: 3px;
372
- }
373
- .cpac-column .column-form table tr td.input .section {
374
- padding: 12px;
375
- }
376
- .cpac-column .column-form table tr.column_width div.description {
377
- font-size: 11px;
378
- width: 12%;
379
- float: left;
380
- text-align: middle;
381
- }
382
- .cpac-column .column-form table tr.column_width div.input-width-range {
383
- float: left;
384
- position: relative;
385
- width: 87%;
386
- margin-top: 4px;
387
- }
388
- .cpac-column .column-form table tr.column_width div.input-width-range .ui-slider-handle {
389
- cursor: ew-resize;
390
- }
391
- .cpac-column .column-form table tr.column_image_size {
392
- border: 10px solid red;
393
- }
394
- .cpac-column .column-form table tr.column_image_size td.input label.custom-size {
395
- display: inline-block;
396
- margin-top: 4px;
397
- margin-bottom: 4px;
398
- }
399
- .cpac-column .column-form table tr.column_image_size td.input label.custom-size input {
400
- margin-right: 3px;
401
- }
402
- .cpac-column .column-form table tr.column_image_size td.input .custom_image_size {
403
- display: inline-block;
404
- }
405
- .cpac-column .column-form table tr.column_image_size td.input .custom_image_size .hidden {
406
- display: none;
407
- }
408
- .cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-w,
409
- .cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-h {
410
- margin: 0;
411
- }
412
- .cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-w.hidden,
413
- .cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-h.hidden {
414
- display: none;
415
- }
416
- .cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-w input[type="text"],
417
- .cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-h input[type="text"] {
418
- margin-right: 3px;
419
- width: 40px !important;
420
- }
421
- .cpac-column .column-form table tr.column_action td {
422
- background: #f9f9f9;
423
- }
424
- .cpac-column .column-form table tr.column_action td p {
425
- margin: 0;
426
- }
427
- .cpac-column .column-form table tr.column_action td p a.remove-button {
428
- color: #a00;
429
- text-decoration: none;
430
- text-shadow: none;
431
- font-weight: normal;
432
- margin-left: 5px;
433
- font-size: 12px;
434
- padding: 0 5px;
435
- }
436
- .cpac-column .column-form table tr.column_action td p a.remove-button:hover {
437
- color: #fff;
438
- background: #f00;
439
- }
440
- .cpac-column .column-form table tr:first-child td {
441
- border-top: none;
442
- }
443
- .cpac-column.loading .column-form > .spinner {
444
- position: absolute;
445
- left: 50%;
446
- top: 50%;
447
- z-index: 200;
448
- margin-left: -10px;
449
- margin-top: -10px;
450
- display: block;
451
- }
452
- .cpac-column.loading .column-form:before {
453
- content: '';
454
- position: absolute;
455
- width: 100%;
456
- height: 100%;
457
- background: #FFF;
458
- z-index: 100;
459
- opacity: 0.5;
460
- }
461
- .cpac-column.opened .column-meta {
462
- background-color: #c7c7c7;
463
- background-image: -ms-linear-gradient(top, #e9e9e9, #c7c7c7);
464
- background-image: -moz-linear-gradient(top, #e9e9e9, #c7c7c7);
465
- background-image: -o-linear-gradient(top, #e9e9e9, #c7c7c7);
466
- background-image: -webkit-gradient(linear, left top, left bottom, from(#e9e9e9), to(#c7c7c7));
467
- background-image: -webkit-linear-gradient(top, #e9e9e9, #c7c7c7);
468
- background-image: linear-gradient(top, #e9e9e9, #c7c7c7);
469
- border-color: #aeaeae;
470
- }
471
- .cpac-column.opened .column-meta table {
472
- background: transparent;
473
- }
474
- .cpac-column.opened .column-meta table td {
475
- border-color: #f8f8f8;
476
- color: #333;
477
- text-shadow: 0 1px 0 #FFFFFF;
478
- }
479
- .cpac-column.opened .column-meta table td a {
480
- color: #333;
481
- text-shadow: 0 1px 0 #FFFFFF;
482
- }
483
- .cpac-column.opened .column-meta table td.column_sort {
484
- background-position: 8px -39px;
485
- }
486
- .cpac-column.opened .column-meta table td.column_label .inner .meta span {
487
- color: #808080;
488
- text-shadow: none;
489
- }
490
- .cpac-column.opened .column-meta table td.column_type {
491
- color: #5C5C5C;
492
- }
493
- /**
494
- * Column: Footer
495
- * ----------------------------------------------------------------------------
496
- */
497
- .column-footer {
498
- background: #EAF2FA;
499
- border: 1px solid #c7d7e2;
500
- min-height: 26px;
501
- padding: 8px;
502
- overflow: hidden;
503
- }
504
- .column-footer .order-message {
505
- background: transparent url('../images/order_arrow.png') no-repeat 0 0;
506
- color: #7A9BBE;
507
- float: left;
508
- font-family: Comic Sans MS, sans-serif;
509
- font-size: 11px;
510
- height: 13px;
511
- line-height: 1em;
512
- margin-left: 4px;
513
- padding: 7px 0 0 22px;
514
- text-shadow: 0 1px 0 #FFFFFF;
515
- display: inline-block;
516
- }
517
- .column-footer .button-container {
518
- float: right;
519
- display: inline-block;
520
- margin-top: -5px;
521
- }
522
- .column-footer .button-container a {
523
- display: inline-block;
524
- margin-top: 5px;
525
- }
526
- /**
527
- * Welcome Screen
528
- * ----------------------------------------------------------------------------
529
- */
530
- .cpac-content-body hr {
531
- -moz-border-bottom-colors: none;
532
- -moz-border-left-colors: none;
533
- -moz-border-right-colors: none;
534
- -moz-border-top-colors: none;
535
- background: none repeat scroll 0 0 transparent;
536
- border-color: #dfdfdf -moz-use-text-color -moz-use-text-color;
537
- border-image: none;
538
- border-right: 0 none;
539
- border-style: solid none none;
540
- border-width: 1px 0 0;
541
- clear: both;
542
- margin: 30px 0;
543
- opacity: 0.2;
544
- }
545
- #cpac-welcome.about-wrap div.error {
546
- display: block !important;
547
- }
548
- .cpac-alert {
549
- display: inline-block;
550
- background: none repeat scroll 0 0 #FCF8E3;
551
- border: 1px solid #FBEED5;
552
- border-radius: 4px 4px 4px 4px;
553
- color: #C09853;
554
- margin: 20px 0;
555
- padding: 16px 14px;
556
- text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
557
- }
558
- .cpac-alert p {
559
- margin: 0;
560
- }
561
- .cpac-alert.cpac-alert-success {
562
- background-color: #DFF0D8;
563
- border-color: #D6E9C6;
564
- color: #468847;
565
- }
566
- .cpac-alert.cpac-alert-error {
567
- background-color: #F2DEDE;
568
- border-color: #EED3D7;
569
- color: #B94A48;
570
- }
571
- .cpac-alert a.button-primary {
572
- height: 28px;
573
- line-height: 28px;
574
- display: inline-block;
575
- }
576
- #cpac-download-add-ons-table {
577
- max-width: 600px;
578
- }
579
- .wp-core-ui .button-large {
580
- height: 40px;
581
- line-height: 40px;
582
- font-size: 16px;
583
- padding: 0 15px;
584
- text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
585
- }
586
- /**
587
- * Notifications
588
- * ----------------------------------------------------------------------------
589
- */
590
- .cac-notification.updated {
591
- border-left-color: #0071aa;
592
- }
593
- .cac-notification.updated .learnmore {
594
- float: right;
595
- }
596
- .cac-notification.updated .learnmore:after {
597
- content: "\f139";
598
- font: normal 20px/1 'dashicons';
599
- float: right;
600
- }
601
- /**
602
- * Sidebar
603
- * ----------------------------------------------------------------------------
604
- */
605
- .columns-right {
606
- margin-top: 54px;
607
- }
608
- .columns-right .sidebox {
609
- background: none repeat scroll 0 0 #FFFFFF;
610
- border: 1px solid #E1E1E1;
611
- border-radius: 0 0 0 0;
612
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
613
- position: relative;
614
- margin-bottom: 14px;
615
- }
616
- .columns-right .sidebox h3 {
617
- padding: 10px;
618
- margin: 0;
619
- }
620
- .columns-right .sidebox h3.title {
621
- font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
622
- font-size: 15px;
623
- font-weight: normal;
624
- line-height: 1;
625
- margin: 0;
626
- padding: 7px 10px;
627
- background: #f1f1f1;
628
- background-image: -webkit-gradient(linear, left bottom, left top, from(#ececec), to(#f9f9f9));
629
- background-image: -webkit-linear-gradient(bottom, #ececec, #f9f9f9);
630
- background-image: -moz-linear-gradient(bottom, #ececec, #f9f9f9);
631
- background-image: -o-linear-gradient(bottom, #ececec, #f9f9f9);
632
- background-image: linear-gradient(to top, #ececec, #f9f9f9);
633
- border-bottom-color: #dfdfdf;
634
- text-shadow: #fff 0 1px 0;
635
- -webkit-box-shadow: 0 1px 0 #fff;
636
- box-shadow: 0 1px 0 #fff;
637
- border-bottom-style: solid;
638
- border-bottom-width: 1px;
639
- }
640
- .columns-right .sidebox .inside {
641
- padding: 10px;
642
- }
643
- .columns-right .sidebox .inside p {
644
- margin-top: 0;
645
- }
646
- .columns-right .sidebox#form-actions .form-reset {
647
- border-bottom: 1px solid #F5F5F5;
648
- padding: 8px;
649
- }
650
- .columns-right .sidebox#form-actions .reset-column-type {
651
- text-decoration: none;
652
- color: #BC0B0B;
653
- line-height: 25px;
654
- display: inline-block;
655
- }
656
- .columns-right .sidebox#form-actions .form-update {
657
- padding: 8px;
658
- overflow: hidden;
659
- }
660
- .columns-right .sidebox#form-actions .submit-update {
661
- display: block;
662
- width: 100%;
663
- height: 28px;
664
- line-height: 28px;
665
- text-align: center;
666
- }
667
- .columns-right .sidebox#pro-version .cta {
668
- background: transparent url(../images/get_the_addon.png) no-repeat 0 0;
669
- background-size: cover;
670
- }
671
- .columns-right .sidebox#pro-version .padding-box {
672
- padding: 8px 15px 0;
673
- }
674
- .columns-right .sidebox#pro-version h3 a {
675
- color: #fff;
676
- font-size: 19px;
677
- text-decoration: none;
678
- font-weight: normal;
679
- margin-top: 6px;
680
- }
681
- .columns-right .sidebox#pro-version .inside ul {
682
- margin: 0 0 10px 0;
683
- }
684
- .columns-right .sidebox#pro-version .inside ul li {
685
- margin: 0;
686
- padding: 0;
687
- }
688
- .columns-right .sidebox#pro-version .inside ul li a {
689
- display: inline-block;
690
- min-height: 24px;
691
- font-size: 19px;
692
- line-height: 24px;
693
- margin-bottom: 1px;
694
- padding: 0 5px;
695
- background: #000;
696
- color: #fff;
697
- text-decoration: none;
698
- }
699
- .columns-right .sidebox#pro-version .inside p {
700
- color: #fff;
701
- font-size: 12px;
702
- }
703
- .columns-right .sidebox#pro-version .inside p a {
704
- color: #fff;
705
- display: inline-block;
706
- background: #a4c518;
707
- padding: 0 2px;
708
- font-size: 15px;
709
- text-decoration: none;
710
- }
711
- .columns-right .sidebox#direct-feedback #feedback-support,
712
- .columns-right .sidebox#direct-feedback #feedback-rate {
713
- display: none;
714
- }
715
- .columns-right .sidebox#direct-feedback .inside > a {
716
- border-radius: 4px;
717
- border: 1px solid #CCC;
718
- width: 48%;
719
- height: 64px;
720
- text-align: center;
721
- line-height: 64px;
722
- font-weight: bold;
723
- color: #222;
724
- display: inline-block;
725
- text-decoration: none;
726
- }
727
- .columns-right .sidebox#direct-feedback .inside > a:hover {
728
- background: #FAFAFA;
729
- }
730
- .columns-right .sidebox#direct-feedback .inside form textarea {
731
- width: 100%;
732
- height: 120px;
733
- }
734
- .columns-right .sidebox#direct-feedback .inside form input[type="submit"] {
735
- float: right;
736
- border-radius: 4px;
737
- border: 1px solid #CCC;
738
- height: 32px;
739
- text-align: center;
740
- line-height: 32px;
741
- font-weight: bold;
742
- font-size: 12px;
743
- padding: 0 32px;
744
- color: #CCC;
745
- display: inline-block;
746
- background: none;
747
- text-decoration: none;
748
- cursor: pointer;
749
- }
750
- .columns-right .sidebox#direct-feedback .inside form input[type="submit"]:hover {
751
- background: #FAFAFA;
752
- }
753
- .columns-right .sidebox#direct-feedback .inside form p.description {
754
- float: left;
755
- font-size: 10px;
756
- }
757
- .columns-right .sidebox#direct-feedback .inside ul {
758
- margin: 0;
759
- }
760
- .columns-right .sidebox#direct-feedback .inside ul.share li {
761
- margin: 0;
762
- display: block;
763
- float: left;
764
- margin-left: 9px;
765
- width: 30%;
766
- }
767
- .columns-right .sidebox#direct-feedback .inside ul.share li a {
768
- text-decoration: none;
769
- vertical-align: middle;
770
- line-height: 20px;
771
- padding: 16px 0;
772
- width: 100%;
773
- text-align: center;
774
- border: 1px solid #CCC;
775
- border-radius: 4px;
776
- display: block;
777
- }
778
- .columns-right .sidebox#direct-feedback .inside ul.share li a:hover {
779
- background: #FAFAFA;
780
- }
781
- .columns-right .sidebox#direct-feedback .inside ul.share li:first-child {
782
- margin-left: 0;
783
- }
784
- .columns-right .sidebox#direct-feedback #feedback-support .inside ul.share li {
785
- width: 48%;
786
- }
787
- /**
788
- * Setting Tab
789
- * ----------------------------------------------------------------------------
790
- */
791
- table.cpac-form-table {
792
- max-width: 1100px;
793
- margin-top: 20px;
794
- }
795
- table.cpac-form-table > tbody > tr > td,
796
- table.cpac-form-table > tbody > tr > th {
797
- vertical-align: top;
798
- }
799
- table.cpac-form-table td.padding-22 {
800
- padding-top: 22px;
801
- }
802
- table.cpac-form-table td .cpac_export .ms-container {
803
- background: transparent url('../images/switch_bw.png') no-repeat 50% 50%;
804
- }
805
- table.cpac-form-table td .cpac_export .ms-container .ms-selectable {
806
- width: 48%;
807
- margin-right: 0;
808
- }
809
- table.cpac-form-table td .cpac_export .ms-container .ms-selection {
810
- float: right;
811
- width: 48%;
812
- }
813
- table.cpac-form-table td .cpac_export .ms-container ul.ms-list {
814
- width: 100%;
815
- }
816
- table.cpac-form-table td .cpac_export .ms-container ul.ms-list li {
817
- margin: 0;
818
- padding-top: 5px;
819
- padding-bottom: 5px;
820
- }
821
- table.cpac-form-table.settings tr td {
822
- padding-top: 74px;
823
- }
824
- table.cpac-form-table.settings tr:first-child th {
825
- padding-top: 0;
826
- }
827
- table.cpac-form-table.settings tr:first-child td {
828
- padding-top: 54px;
829
- }
830
- /**
831
- * WP Pointer
832
- * ----------------------------------------------------------------------------
833
- */
834
- .wp-pointer-content {
835
- overflow: hidden;
836
- }
837
- .wp-pointer-content ol {
838
- margin-left: 1.5em;
839
- padding: 0 15px;
840
- }
841
- .wp-pointer-right {
842
- margin-right: 15px;
843
- }
844
- /* =RTL language
845
- -------------------------------------------------------------- */
846
- body.rtl .wp-pointer-right {
847
- margin-left: 15px;
848
- margin-right: 0;
849
- }
850
- body.rtl .wp-pointer-right ol {
851
- margin-right: 1.5em;
852
- margin-left: 0;
853
- }
854
- body.rtl .cpac-menu .subsubsub {
855
- margin-left: 14px;
856
- margin-right: 0;
857
- }
858
- body.rtl .columns-container {
859
- margin-left: 300px;
860
- margin-right: 0;
861
- }
862
- body.rtl .columns-left {
863
- float: right;
864
- }
865
- body.rtl .columns-left .cpac-columns .cpac-column .column-meta img {
866
- margin-left: 3px;
867
- margin-right: 0;
868
- }
869
- body.rtl .columns-left .cpac-columns .cpac-column .column-meta .column_label .inner > a.remove-button {
870
- margin-right: 12px;
871
- margin-left: 0;
872
- }
873
- body.rtl .columns-left .cpac-columns .cpac-column .column-meta .column_label .inner .meta {
874
- float: left;
875
- }
876
- body.rtl .columns-left .cpac-columns .cpac-column .column-meta .column_label span.vers {
877
- float: right;
878
- }
879
- body.rtl .columns-left .cpac-columns .cpac-column .column-meta .column_type {
880
- text-align: left;
881
- padding-left: 0;
882
- padding-right: auto;
883
- }
884
- body.rtl .columns-left .cpac-columns .cpac-column .column-meta span.vers .comment-grey-bubble {
885
- float: left;
886
- }
887
- body.rtl .columns-left .cpac-columns .cpac-column .column-form table tr.column_image_size td.input label input {
888
- margin-left: 3px;
889
- margin-right: 0;
890
- }
891
- body.rtl .columns-left .cpac-columns .cpac-column .column-form table tr td.label p.description {
892
- right: 0;
893
- left: auto;
894
- }
895
- body.rtl .columns-left .cpac-columns .cpac-column .column-form table tr td.label a.more-info {
896
- float: left;
897
- }
898
- body.rtl .columns-left .cpac-columns .cpac-column .column-form div.description {
899
- float: right;
900
- }
901
- body.rtl .columns-left .cpac-columns .cpac-column .column-form div.input-width-range {
902
- float: right;
903
- }
904
- body.rtl .columns-left .cpac-columns .cpac-column .column-form tr td.input label {
905
- padding-left: 10px;
906
- padding-right: 0;
907
- }
908
- body.rtl .columns-left .cpac-columns .cpac-column .column-form a.help {
909
- float: left;
910
- }
911
- body.rtl .columns-left .column-footer .order-message {
912
- float: right;
913
- padding-right: 22px;
914
- padding-left: 0;
915
- background: transparent url('../images/order_arrow-rtl.png') no-repeat right top;
916
- }
917
- body.rtl .columns-left .column-footer .button-container {
918
- float: left;
919
- }
920
- body.rtl .columns-right {
921
- float: left;
922
- margin-left: -300px;
923
- margin-right: 0;
924
- }
925
- body.rtl .cpac-placeholder {
926
- padding: 5px 0 7px 4px;
927
- }
928
- body.rtl .cpac_export .ms-container .ms-selection {
929
- float: left;
930
- }
931
- /* =Responsive
932
- -------------------------------------------------------------- */
933
- @media only screen and (max-width: 900px) {
934
- .columns-container {
935
- margin-right: 0;
936
- }
937
- .columns-container .columns-left {
938
- float: none;
939
- }
940
- .columns-container .columns-right {
941
- float: none;
942
- margin-top: 0;
943
- margin-right: 0;
944
- width: 100%;
945
- }
946
- .columns-container .columns-right .columns-right-inside.fixed {
947
- position: relative;
948
- top: 0;
949
- width: 100%;
950
- }
951
- }
952
- /* =Addons
953
- -------------------------------------------------------------- */
954
- .cpac-addons li {
955
- width: 200px;
956
- background: #FFF;
957
- float: left;
958
- margin-right: 16px;
959
- margin-bottom: 16px;
960
- border: 1px solid #DDD;
961
- -webkit-box-shadow: 0px 3px 10px 0px rgba(0, 0, 0, 0.15);
962
- -moz-box-shadow: 0px 3px 10px 0px rgba(0, 0, 0, 0.15);
963
- box-shadow: 0px 3px 10px 0px rgba(0, 0, 0, 0.15);
964
- }
965
- .cpac-addons li:hover {
966
- -webkit-box-shadow: 0px 3px 10px 0px rgba(0, 0, 0, 0.25);
967
- -moz-box-shadow: 0px 3px 10px 0px rgba(0, 0, 0, 0.25);
968
- box-shadow: 0px 3px 10px 0px rgba(0, 0, 0, 0.25);
969
- }
970
- .cpac-addons li a {
971
- color: #444;
972
- }
973
- .cpac-addons li .cpac-addon-content {
974
- display: table;
975
- width: 100%;
976
- height: 125px;
977
- text-align: center;
978
- vertical-align: middle;
979
- border-top: 1px solid #DDD;
980
- background: #0069a4;
981
- background: -moz-radial-gradient(center, ellipse cover, #0069a4 0%, #085079 100%);
982
- background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, #0069a4), color-stop(100%, #085079));
983
- background: -webkit-radial-gradient(center, ellipse cover, #0069a4 0%, #085079 100%);
984
- background: -o-radial-gradient(center, ellipse cover, #0069a4 0%, #085079 100%);
985
- background: -ms-radial-gradient(center, ellipse cover, #0069a4 0%, #085079 100%);
986
- background: radial-gradient(ellipse at center, #0069a4 0%, #085079 100%);
987
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0069a4', endColorstr='#085079', GradientType=1);
988
- }
989
- .cpac-addons li .cpac-addon-content > * {
990
- display: table-cell;
991
- vertical-align: middle;
992
- }
993
- .cpac-addons li .cpac-addon-content h3 {
994
- padding: 0 16px;
995
- color: #FFF;
996
- line-height: 150%;
997
- }
998
- .cpac-addons li .cpac-addon-content img {
999
- width: 100%;
1000
- }
1001
- .cpac-addons li .cpac-addon-header {
1002
- width: 100%;
1003
- padding: 25px 15px;
1004
- -moz-box-sizing: border-box;
1005
- box-sizing: border-box;
1006
- }
1007
- .cpac-addons li .cpac-addon-header > *:first-child {
1008
- margin-top: 0;
1009
- }
1010
- .cpac-addons li .cpac-addon-header > *:last-child {
1011
- margin-bottom: 0;
1012
- }
1013
- .cpac-addons li .cpac-addon-actions {
1014
- background: #EEE;
1015
- border-top: 1px solid #DDD;
1016
- padding: 8px;
1017
- }
1018
- .cpac-addons li .cpac-addon-actions .cpac-installed:before {
1019
- content: "\f147";
1020
- font-family: 'dashicons';
1021
- vertical-align: middle;
1022
- margin-left: -5px;
1023
- margin-right: 3px;
1024
- }
1
+ #cpac a:focus,#cpac a:active{outline:none}#icon-codepress-admin-columns{background:transparent url('../images/icon.png') no-repeat 0 0}.cpac-settings-link{float:right;margin:12px 14px 5px 0;background:transparent url('../images/settings.png') no-repeat 0 0;padding-left:20px;text-decoration:none;display:inline-block;line-height:16px}.cpac-settings-link.current{font-weight:bold}.rtl .cpac-settings-link{float:left;margin:12px 0 5px 14px;padding-right:20px;padding-left:0}a.help{background:transparent url('../images/help.png') no-repeat 0 0;display:inline-block;width:16px;height:16px}.button.loading{padding-right:25px;position:relative}.rtl .button.loading{padding-left:25px;padding-right:0}.button.loading span{position:absolute;top:2px;right:6px;background:transparent url('../images/loading.gif') no-repeat right 50%;width:16px;height:16px;display:inline-block}.rtl .button.loading span{left:6px;right:auto}.icon-yes{background:transparent url(../images/yes.png) no-repeat 0 0;width:16px;height:16px;display:inline-block;position:relative;top:2px}.icon-no{background:transparent url(../images/no.png) no-repeat 0 0;width:16px;height:16px;display:inline-block;position:relative;top:2px}h2.cpac-nav-tab-wrapper{margin-bottom:10px}.cpac-menu{clear:both;overflow:hidden;margin-bottom:10px}.cpac-menu .subsubsub{white-space:normal;margin-right:14px;width:100%;margin:0 14px 0 0}.cpac-menu .subsubsub li.first{font-weight:bold;min-width:90px}.columns-container{margin-right:300px;max-width:700px}.columns-container .columns-left{float:left;width:100%}.columns-container .columns-right{float:right;margin-right:-300px;width:280px}.columns-container .columns-right .columns-right-inside.fixed{position:fixed;top:40px;width:280px}.ui-sortable-helper{-webkit-box-shadow:1px 3px 6px 0 rgba(1,1,1,0.4);box-shadow:1px 3px 6px 0 rgba(1,1,1,0.4)}.ui-sortable-helper .column-meta{border-width:1px}.cpac-placeholder{visibility:visible !important;border-top:1px solid #dfdfdf;padding:5px 4px 7px 0}.cpac-placeholder .inner-placeholder{border:1px dashed #808080;background:#eee;width:100%;height:100%}.cpac-placeholder :first-child{border:none}.columns-left .cpac-boxes .cpac-columns form{box-shadow:0 1px 3px rgba(0,0,0,0.1)}.cpac-column .column-meta{border-style:solid;border-color:#dfdfdf;border-width:1px 1px 0;background:#fcfcfc}.cpac-column .column-meta:nth-child(2n) .column-meta{background:#f9f9f9}.cpac-column .column-meta img{margin-right:3px}.cpac-column .column-meta table{border:none;background:transparent;border-radius:0}.cpac-column .column-meta table tr td{vertical-align:top;height:18px;border:none;padding:11px 8px;border-width:1px 0 0;border-style:solid;border-color:transparent}.cpac-column .column-meta table tr td.column_sort{width:10px;background:transparent url('../images/drag.png') no-repeat 8px 8px;cursor:move}.cpac-column .column-meta table tr td.column_label{width:70%;font-weight:bold;vertical-align:middle;position:relative}.cpac-column .column-meta table tr td.column_label .inner{position:relative;overflow:hidden;height:18px}.cpac-column .column-meta table tr td.column_label .inner>a{color:#5a5a5a;padding:0 4px}.cpac-column .column-meta table tr td.column_label .inner>a:hover{color:#333}.cpac-column .column-meta table tr td.column_label .inner>a.edit-button,.cpac-column .column-meta table tr td.column_label .inner>a.remove-button,.cpac-column .column-meta table tr td.column_label .inner>a.clone-button{display:none;color:#a00;text-decoration:none;text-shadow:none;font-weight:normal;margin-left:5px;font-size:12px}.cpac-column .column-meta table tr td.column_label .inner>a.edit-button:hover,.cpac-column .column-meta table tr td.column_label .inner>a.remove-button:hover,.cpac-column .column-meta table tr td.column_label .inner>a.clone-button:hover{color:#f00}.cpac-column .column-meta table tr td.column_label .inner>a.edit-button,.cpac-column .column-meta table tr td.column_label .inner>a.clone-button{color:#0074a2}.cpac-column .column-meta table tr td.column_label .inner>a.edit-button:hover,.cpac-column .column-meta table tr td.column_label .inner>a.clone-button:hover{color:#2ea2cc}.cpac-column .column-meta table tr td.column_label .inner .meta{display:inline-block;float:right;font-weight:normal;color:#b2b2b2;font-size:12px}.cpac-column .column-meta table tr td.column_label .inner .meta span{cursor:pointer}.cpac-column .column-meta table tr td.column_label .inner .meta span.width{margin-right:5px;cursor:auto}.cpac-column .column-meta table tr td.column_label span.vers{float:left}.cpac-column .column-meta table tr td.column_type{width:auto;min-width:120px;text-align:right;vertical-align:middle;color:#999;padding-right:0}.cpac-column .column-meta table tr td.column_type .inner{height:18px;overflow:hidden}.cpac-column .column-meta table tr td.column_type .inner a{color:#999}.cpac-column .column-meta table tr td.column_edit{width:38px;min-width:38px;background:transparent url('../images/arrow.png') no-repeat 23px 18px;cursor:pointer}.cpac-column .column-meta:hover .column_label .inner>a.remove-button,.cpac-column .column-meta:hover .column_label .inner>a.edit-button,.cpac-column .column-meta:hover .column_label .inner>a.clone-button{display:inline-block}.cpac-column .column-meta span.vers{padding-top:2px}.cpac-column .column-meta span.vers .comment-grey-bubble{background:transparent url("../images/comment-grey-bubble.png") no-repeat 0 0;height:12px;width:12px;float:right}.cpac-column .column-form{display:none;border-width:1px 1px 0;border-style:solid;border-color:#dfdfdf;position:relative}.cpac-column .column-form table{border:none;background:#fcfcfc}.cpac-column .column-form table tr td{vertical-align:top;border:none;padding:8px;background:#fff;border-top:1px solid #f5f5f5}.cpac-column .column-form table tr td select,.cpac-column .column-form table tr td input[type=text]{width:99.95%}.cpac-column .column-form table tr td select.small,.cpac-column .column-form table tr td input[type=text].small{width:100px}.cpac-column .column-form table tr td span.suffix{line-height:40px;color:#808080}.cpac-column .column-form table tr td select optgroup:nth-child(2n){background:#f9f9f9}.cpac-column .column-form table tr td.label{position:relative;overflow:visible;background:#f9f9f9;background:#f5f5f5;border-right:1px solid #e1e1e1;vertical-align:top;width:34%;border-top:1px solid #f0f0f0}.cpac-column .column-form table tr td.label label{font-weight:bold;color:#333;display:block;position:relative}.cpac-column .column-form table tr td.label p{color:#666;display:block;font-size:12px;font-style:normal;line-height:16px;margin:0 !important}.cpac-column .column-form table tr td.label p.description{display:none;position:absolute;z-index:99;top:30px;left:0;background:#eaf2fa;border-radius:5px;border:1px solid #c7d7e2;padding:5px 8px !important;font-weight:normal}.cpac-column .column-form table tr td.label p.description em{display:block;color:#999}.cpac-column .column-form table tr td.input label{padding-left:10px;padding-right:0}.cpac-column .column-form table tr td.input div.msg{margin-top:5px;display:none;color:#333;padding:6px 8px;background-color:#ffebe8;border:1px solid #fff;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.cpac-column .column-form table tr td.input .section{padding:12px}.cpac-column .column-form table tr.column_width div.description{font-size:11px;width:12%;float:left;text-align:middle}.cpac-column .column-form table tr.column_width div.input-width-range{float:left;position:relative;width:87%;margin-top:4px}.cpac-column .column-form table tr.column_width div.input-width-range .ui-slider-handle{cursor:ew-resize}.cpac-column .column-form table tr.column_image_size{border:10px solid #f00}.cpac-column .column-form table tr.column_image_size td.input label.custom-size{display:inline-block;margin-top:4px;margin-bottom:4px}.cpac-column .column-form table tr.column_image_size td.input label.custom-size input{margin-right:3px}.cpac-column .column-form table tr.column_image_size td.input .custom_image_size{display:inline-block}.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .hidden{display:none}.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-w,.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-h{margin:0}.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-w.hidden,.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-h.hidden{display:none}.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-w input[type="text"],.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-h input[type="text"]{margin-right:3px;width:40px !important}.cpac-column .column-form table tr.column_action td{background:#f9f9f9}.cpac-column .column-form table tr.column_action td p{margin:0}.cpac-column .column-form table tr.column_action td p a.remove-button{color:#a00;text-decoration:none;text-shadow:none;font-weight:normal;margin-left:5px;font-size:12px;padding:0 5px}.cpac-column .column-form table tr.column_action td p a.remove-button:hover{color:#fff;background:#f00}.cpac-column .column-form table tr:first-child td{border-top:none}.cpac-column.loading .column-form>.spinner{position:absolute;left:50%;top:50%;z-index:200;margin-left:-10px;margin-top:-10px;display:block}.cpac-column.loading .column-form:before{content:'';position:absolute;width:100%;height:100%;background:#fff;z-index:100;opacity:.5}.cpac-column.opened .column-meta{background-color:#c7c7c7;background-image:-ms-linear-gradient(top, #e9e9e9, #c7c7c7);background-image:-moz-linear-gradient(top, #e9e9e9, #c7c7c7);background-image:-o-linear-gradient(top, #e9e9e9, #c7c7c7);background-image:-webkit-gradient(linear, left top, left bottom, from(#e9e9e9), to(#c7c7c7));background-image:-webkit-linear-gradient(top, #e9e9e9, #c7c7c7);background-image:linear-gradient(top, #e9e9e9, #c7c7c7);border-color:#aeaeae}.cpac-column.opened .column-meta table{background:transparent}.cpac-column.opened .column-meta table td{border-color:#f8f8f8;color:#333;text-shadow:0 1px 0 #fff}.cpac-column.opened .column-meta table td a{color:#333;text-shadow:0 1px 0 #fff}.cpac-column.opened .column-meta table td.column_sort{background-position:8px -39px}.cpac-column.opened .column-meta table td.column_label .inner .meta span{color:#808080;text-shadow:none}.cpac-column.opened .column-meta table td.column_type{color:#5c5c5c}.column-footer{background:#eaf2fa;border:1px solid #c7d7e2;min-height:26px;padding:8px;overflow:hidden}.column-footer .order-message{background:transparent url('../images/order_arrow.png') no-repeat 0 0;color:#7a9bbe;float:left;font-family:Comic Sans MS,sans-serif;font-size:11px;height:13px;line-height:1em;margin-left:4px;padding:7px 0 0 22px;text-shadow:0 1px 0 #fff;display:inline-block}.column-footer .button-container{float:right;display:inline-block;margin-top:-5px}.column-footer .button-container a{display:inline-block;margin-top:5px}.cpac-content-body hr{-moz-border-bottom-colors:none;-moz-border-left-colors:none;-moz-border-right-colors:none;-moz-border-top-colors:none;background:none repeat scroll 0 0 transparent;border-color:#dfdfdf -moz-use-text-color -moz-use-text-color;border-image:none;border-right:0 none;border-style:solid none none;border-width:1px 0 0;clear:both;margin:30px 0;opacity:.2}#cpac-welcome.about-wrap div.error{display:block !important}.cpac-alert{display:inline-block;background:none repeat scroll 0 0 #fcf8e3;border:1px solid #fbeed5;border-radius:4px 4px 4px 4px;color:#c09853;margin:20px 0;padding:16px 14px;text-shadow:0 1px 0 rgba(255,255,255,0.5)}.cpac-alert p{margin:0}.cpac-alert.cpac-alert-success{background-color:#dff0d8;border-color:#d6e9c6;color:#468847}.cpac-alert.cpac-alert-error{background-color:#f2dede;border-color:#eed3d7;color:#b94a48}.cpac-alert a.button-primary{height:28px;line-height:28px;display:inline-block}#cpac-download-add-ons-table{max-width:600px}.wp-core-ui .button-large{height:40px;line-height:40px;font-size:16px;padding:0 15px;text-shadow:0 1px 0 rgba(0,0,0,0.5)}.cac-notification.updated{border-left-color:#0071aa}.cac-notification.updated .learnmore{float:right}.cac-notification.updated .learnmore:after{content:"\f139";font:normal 20px/1 'dashicons';float:right}.columns-right{margin-top:54px}.columns-right .sidebox{background:none repeat scroll 0 0 #fff;border:1px solid #e1e1e1;border-radius:0 0 0 0;box-shadow:0 1px 3px rgba(0,0,0,0.1);position:relative;margin-bottom:14px}.columns-right .sidebox h3{padding:10px;margin:0}.columns-right .sidebox h3.title{font-family:Georgia,"Times New Roman","Bitstream Charter",Times,serif;font-size:15px;font-weight:normal;line-height:1;margin:0;padding:7px 10px;background:#f1f1f1;background-image:-webkit-gradient(linear, left bottom, left top, from(#ececec), to(#f9f9f9));background-image:-webkit-linear-gradient(bottom, #ececec, #f9f9f9);background-image:-moz-linear-gradient(bottom, #ececec, #f9f9f9);background-image:-o-linear-gradient(bottom, #ececec, #f9f9f9);background-image:linear-gradient(to top, #ececec, #f9f9f9);border-bottom-color:#dfdfdf;text-shadow:#fff 0 1px 0;-webkit-box-shadow:0 1px 0 #fff;box-shadow:0 1px 0 #fff;border-bottom-style:solid;border-bottom-width:1px}.columns-right .sidebox .inside{padding:10px}.columns-right .sidebox .inside p{margin-top:0}.columns-right .sidebox#form-actions .form-reset{border-bottom:1px solid #f5f5f5;padding:8px}.columns-right .sidebox#form-actions .reset-column-type{text-decoration:none;color:#bc0b0b;line-height:25px;display:inline-block}.columns-right .sidebox#form-actions .form-update{padding:8px;overflow:hidden}.columns-right .sidebox#form-actions .submit-update{display:block;width:100%;height:28px;line-height:28px;text-align:center}.columns-right .sidebox#pro-version .cta{background:transparent url(../images/get_the_addon.png) no-repeat 0 0;background-size:cover}.columns-right .sidebox#pro-version .padding-box{padding:8px 15px 0}.columns-right .sidebox#pro-version h3 a{color:#fff;font-size:19px;text-decoration:none;font-weight:normal;margin-top:6px}.columns-right .sidebox#pro-version .inside ul{margin:0 0 10px 0}.columns-right .sidebox#pro-version .inside ul li{margin:0;padding:0}.columns-right .sidebox#pro-version .inside ul li a{display:inline-block;min-height:24px;font-size:19px;line-height:24px;margin-bottom:1px;padding:0 5px;background:#000;color:#fff;text-decoration:none}.columns-right .sidebox#pro-version .inside p{color:#fff;font-size:12px}.columns-right .sidebox#pro-version .inside p a{color:#fff;display:inline-block;background:#a4c518;padding:0 2px;font-size:15px;text-decoration:none}.columns-right .sidebox#direct-feedback #feedback-support,.columns-right .sidebox#direct-feedback #feedback-rate{display:none}.columns-right .sidebox#direct-feedback .inside>a{border-radius:4px;border:1px solid #ccc;width:48%;height:64px;text-align:center;line-height:64px;font-weight:bold;color:#222;display:inline-block;text-decoration:none}.columns-right .sidebox#direct-feedback .inside>a:hover{background:#fafafa}.columns-right .sidebox#direct-feedback .inside form textarea{width:100%;height:120px}.columns-right .sidebox#direct-feedback .inside form input[type="submit"]{float:right;border-radius:4px;border:1px solid #ccc;height:32px;text-align:center;line-height:32px;font-weight:bold;font-size:12px;padding:0 32px;color:#ccc;display:inline-block;background:none;text-decoration:none;cursor:pointer}.columns-right .sidebox#direct-feedback .inside form input[type="submit"]:hover{background:#fafafa}.columns-right .sidebox#direct-feedback .inside form p.description{float:left;font-size:10px}.columns-right .sidebox#direct-feedback .inside ul{margin:0}.columns-right .sidebox#direct-feedback .inside ul.share li{margin:0;display:block;float:left;margin-left:9px;width:30%}.columns-right .sidebox#direct-feedback .inside ul.share li a{text-decoration:none;vertical-align:middle;line-height:20px;padding:16px 0;width:100%;text-align:center;border:1px solid #ccc;border-radius:4px;display:block}.columns-right .sidebox#direct-feedback .inside ul.share li a:hover{background:#fafafa}.columns-right .sidebox#direct-feedback .inside ul.share li:first-child{margin-left:0}.columns-right .sidebox#direct-feedback #feedback-support .inside ul.share li{width:48%}table.cpac-form-table{max-width:1100px;margin-top:20px}table.cpac-form-table>tbody>tr>td,table.cpac-form-table>tbody>tr>th{vertical-align:top}table.cpac-form-table td.padding-22{padding-top:22px}table.cpac-form-table td .cpac_export .ms-container{background:transparent url('../images/switch_bw.png') no-repeat 50% 50%}table.cpac-form-table td .cpac_export .ms-container .ms-selectable{width:48%;margin-right:0}table.cpac-form-table td .cpac_export .ms-container .ms-selection{float:right;width:48%}table.cpac-form-table td .cpac_export .ms-container ul.ms-list{width:100%}table.cpac-form-table td .cpac_export .ms-container ul.ms-list li{margin:0;padding-top:5px;padding-bottom:5px}table.cpac-form-table.settings tr td{padding-top:74px}table.cpac-form-table.settings tr:first-child th{padding-top:0}table.cpac-form-table.settings tr:first-child td{padding-top:54px}.wp-pointer-content{overflow:hidden}.wp-pointer-content ol{margin-left:1.5em;padding:0 15px}.wp-pointer-right{margin-right:15px}body.rtl .wp-pointer-right{margin-left:15px;margin-right:0}body.rtl .wp-pointer-right ol{margin-right:1.5em;margin-left:0}body.rtl .cpac-menu .subsubsub{margin-left:14px;margin-right:0}body.rtl .columns-container{margin-left:300px;margin-right:0}body.rtl .columns-left{float:right}body.rtl .columns-left .cpac-columns .cpac-column .column-meta img{margin-left:3px;margin-right:0}body.rtl .columns-left .cpac-columns .cpac-column .column-meta .column_label .inner>a.remove-button{margin-right:12px;margin-left:0}body.rtl .columns-left .cpac-columns .cpac-column .column-meta .column_label .inner .meta{float:left}body.rtl .columns-left .cpac-columns .cpac-column .column-meta .column_label span.vers{float:right}body.rtl .columns-left .cpac-columns .cpac-column .column-meta .column_type{text-align:left;padding-left:0;padding-right:auto}body.rtl .columns-left .cpac-columns .cpac-column .column-meta span.vers .comment-grey-bubble{float:left}body.rtl .columns-left .cpac-columns .cpac-column .column-form table tr.column_image_size td.input label input{margin-left:3px;margin-right:0}body.rtl .columns-left .cpac-columns .cpac-column .column-form table tr td.label p.description{right:0;left:auto}body.rtl .columns-left .cpac-columns .cpac-column .column-form table tr td.label a.more-info{float:left}body.rtl .columns-left .cpac-columns .cpac-column .column-form div.description{float:right}body.rtl .columns-left .cpac-columns .cpac-column .column-form div.input-width-range{float:right}body.rtl .columns-left .cpac-columns .cpac-column .column-form tr td.input label{padding-left:10px;padding-right:0}body.rtl .columns-left .cpac-columns .cpac-column .column-form a.help{float:left}body.rtl .columns-left .column-footer .order-message{float:right;padding-right:22px;padding-left:0;background:transparent url('../images/order_arrow-rtl.png') no-repeat right top}body.rtl .columns-left .column-footer .button-container{float:left}body.rtl .columns-right{float:left;margin-left:-300px;margin-right:0}body.rtl .cpac-placeholder{padding:5px 0 7px 4px}body.rtl .cpac_export .ms-container .ms-selection{float:left}@media only screen and (max-width:900px){.columns-container{margin-right:0}.columns-container .columns-left{float:none}.columns-container .columns-right{float:none;margin-top:0;margin-right:0;width:100%}.columns-container .columns-right .columns-right-inside.fixed{position:relative;top:0;width:100%}}.cpac-addons li{width:200px;background:#fff;float:left;margin-right:16px;margin-bottom:16px;border:1px solid #ddd;-webkit-box-shadow:0 3px 10px 0 rgba(0,0,0,0.15);-moz-box-shadow:0 3px 10px 0 rgba(0,0,0,0.15);box-shadow:0 3px 10px 0 rgba(0,0,0,0.15)}.cpac-addons li:hover{-webkit-box-shadow:0 3px 10px 0 rgba(0,0,0,0.25);-moz-box-shadow:0 3px 10px 0 rgba(0,0,0,0.25);box-shadow:0 3px 10px 0 rgba(0,0,0,0.25)}.cpac-addons li a{color:#444}.cpac-addons li .cpac-addon-content{display:table;width:100%;height:125px;text-align:center;vertical-align:middle;border-top:1px solid #ddd;background:#0069a4;background:-moz-radial-gradient(center, ellipse cover, #0069a4 0, #085079 100%);background:-webkit-gradient(radial, center center, 0, center center, 100%, color-stop(0, #0069a4), color-stop(100%, #085079));background:-webkit-radial-gradient(center, ellipse cover, #0069a4 0, #085079 100%);background:-o-radial-gradient(center, ellipse cover, #0069a4 0, #085079 100%);background:-ms-radial-gradient(center, ellipse cover, #0069a4 0, #085079 100%);background:radial-gradient(ellipse at center, #0069a4 0, #085079 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#0069a4', endColorstr='#085079', GradientType=1)}.cpac-addons li .cpac-addon-content>*{display:table-cell;vertical-align:middle}.cpac-addons li .cpac-addon-content h3{padding:0 16px;color:#fff;line-height:150%}.cpac-addons li .cpac-addon-content img{width:100%}.cpac-addons li .cpac-addon-header{width:100%;padding:25px 15px;-moz-box-sizing:border-box;box-sizing:border-box}.cpac-addons li .cpac-addon-header>*:first-child{margin-top:0}.cpac-addons li .cpac-addon-header>*:last-child{margin-bottom:0}.cpac-addons li .cpac-addon-actions{background:#eee;border-top:1px solid #ddd;padding:8px}.cpac-addons li .cpac-addon-actions .cpac-installed:before{content:"\f147";font-family:'dashicons';vertical-align:middle;margin-left:-5px;margin-right:3px}
assets/js/admin-columns.js CHANGED
@@ -7,7 +7,7 @@ jQuery( document ).ready( function( $ ) {
7
*/
8
function cpac_tooltips() {
9
10
- if ( typeof qtip === 'undefined' || ! jQuery.isFunction( qtip ) ) {
11
return;
12
}
13
7
*/
8
function cpac_tooltips() {
9
10
+ if ( typeof jQuery.fn.qtip === 'undefined' ) {
11
return;
12
}
13
assets/js/admin-columns.min.js CHANGED
@@ -1 +1 @@
1
- function cpac_tooltips(){if(typeof qtip=="undefined"||!jQuery.isFunction(qtip))return;jQuery(".cpac-tip").qtip({content:{attr:"data-tip"},position:{my:"top center",at:"bottom center"},style:{tip:!0,classes:"qtip-tipsy"}})}jQuery(document).ready(function(e){cpac_tooltips()});
1
+ function cpac_tooltips(){if(typeof jQuery.fn.qtip=="undefined")return;jQuery(".cpac-tip").qtip({content:{attr:"data-tip"},position:{my:"top center",at:"bottom center"},style:{tip:!0,classes:"qtip-tipsy"}})}jQuery(document).ready(function(e){cpac_tooltips()});
assets/js/admin-settings.js CHANGED
@@ -96,7 +96,7 @@ jQuery.fn.column_bind_remove = function() {
96
/**
97
* Column: bind clone events
98
*
99
- * @since NEWVERSION
100
*/
101
jQuery.fn.column_bind_clone = function() {
102
@@ -220,6 +220,7 @@ jQuery.fn.column_bind_events = function() {
220
221
var input = jQuery(this).closest('td').find('.input-width');
222
var descr = jQuery(this).closest('td').find('.width-decription');
223
var input_default = jQuery(input)[0].defaultValue;
224
var translation_default = descr.attr('title');
225
@@ -233,12 +234,14 @@ jQuery.fn.column_bind_events = function() {
233
234
// set default
235
var descr_value = ui.value > 0 ? ui.value + '%' : translation_default;
236
237
// set input value
238
jQuery(input).val( ui.value );
239
240
// set description
241
- jQuery(descr).text( descr_value );
242
}
243
});
244
});
@@ -287,7 +290,7 @@ jQuery.fn.column_remove = function() {
287
/*
288
* Column: clone
289
*
290
- * @since NEWVERSION
291
*/
292
jQuery.fn.column_clone = function() {
293
@@ -370,6 +373,14 @@ jQuery.fn.cpac_update_clone_id = function( storage_model ) {
370
if ( 0 === id )
371
return;
372
373
// set clone ID
374
el.attr( 'data-clone', id );
375
el.find( 'input.clone' ).val( id );
@@ -383,17 +394,17 @@ jQuery.fn.cpac_update_clone_id = function( storage_model ) {
383
384
// name
385
if( jQuery(v).attr( 'name' ) ) {
386
- jQuery(v).attr( 'name', jQuery(v).attr( 'name' ).replace( type, new_name) );
387
}
388
389
// for
390
if( jQuery(v).attr( 'for' ) ) {
391
- jQuery(v).attr( 'for', jQuery(v).attr( 'for' ).replace( type, new_name ) );
392
}
393
394
// id
395
if( jQuery(v).attr( 'id' ) ) {
396
- jQuery(v).attr( 'id', jQuery(v).attr( 'id' ).replace( type, new_name ) );
397
}
398
});
399
};
96
/**
97
* Column: bind clone events
98
*
99
+ * @since 2.3.4
100
*/
101
jQuery.fn.column_bind_clone = function() {
102
220
221
var input = jQuery(this).closest('td').find('.input-width');
222
var descr = jQuery(this).closest('td').find('.width-decription');
223
+ var indicator = jQuery(this).closest('.cpac-column').find('.column-meta span.width');
224
var input_default = jQuery(input)[0].defaultValue;
225
var translation_default = descr.attr('title');
226
234
235
// set default
236
var descr_value = ui.value > 0 ? ui.value + '%' : translation_default;
237
+ var indicator_value = ui.value > 0 ? ui.value + '%' : '';
238
239
// set input value
240
jQuery(input).val( ui.value );
241
242
// set description
243
+ descr.text( descr_value );
244
+ indicator.text( indicator_value );
245
}
246
});
247
});
290
/*
291
* Column: clone
292
*
293
+ * @since 2.3.4
294
*/
295
jQuery.fn.column_clone = function() {
296
373
if ( 0 === id )
374
return;
375
376
+ // get original clone ID
377
+ var clone_id = el.attr( 'data-clone' );
378
+ var clone_suffix = '';
379
+
380
+ if ( clone_id ) {
381
+ clone_suffix = '-' + clone_id;
382
+ }
383
+
384
// set clone ID
385
el.attr( 'data-clone', id );
386
el.find( 'input.clone' ).val( id );
394
395
// name
396
if( jQuery(v).attr( 'name' ) ) {
397
+ jQuery(v).attr( 'name', jQuery(v).attr( 'name' ).replace( type + clone_suffix, new_name) );
398
}
399
400
// for
401
if( jQuery(v).attr( 'for' ) ) {
402
+ jQuery(v).attr( 'for', jQuery(v).attr( 'for' ).replace( type + clone_suffix, new_name ) );
403
}
404
405
// id
406
if( jQuery(v).attr( 'id' ) ) {
407
+ jQuery(v).attr( 'id', jQuery(v).attr( 'id' ).replace( type + clone_suffix, new_name ) );
408
}
409
});
410
};
assets/js/admin-settings.min.js CHANGED
@@ -1,4 +1,4 @@
1
/*
2
* Fires when the dom is ready
3
*
4
- */function cpac_importexport(){jQuery("#php-export-results textarea").on("focus, mouseup",function(){jQuery(this).select()}).select().focus()}function cpac_submit_form(){jQuery(".form-update a.submit-update").click(function(e){e.preventDefault();jQuery(this).closest(".columns-container").find(".cpac-columns form").submit()})}function cpac_create_column(e){var t=jQuery(".for-cloning-only .cpac-column",e).first().clone(),n=e.attr("data-type");if(t.length>0){t.cpac_update_clone_id(n);jQuery(".cpac-columns form",e).append(t);t.column_bind_toggle();t.column_bind_remove();t.column_bind_clone();t.column_bind_events();cpac_sortable();jQuery(document).trigger("column_add",t)}return t}function cpac_add_column(){jQuery("#cpac .add_column").click(function(e){var t=jQuery(this).closest(".columns-container"),n=cpac_create_column(t);n.addClass("opened").find(".column-form").slideDown(150,function(){jQuery("html, body").animate({scrollTop:n.offset().top-58},300)});e.preventDefault()})}function cpac_sidebar_feedback(){jQuery(function(e){var t=e(".sidebox#direct-feedback");t.find("#feedback-choice a.no").click(function(e){e.preventDefault();t.find("#feedback-choice").slideUp();t.find("#feedback-support").slideDown()});t.find("#feedback-choice a.yes").click(function(e){e.preventDefault();t.find("#feedback-choice").slideUp();t.find("#feedback-rate").slideDown()})})}function cpac_clear_input_defaults(){jQuery.fn.cleardefault=function(){return this.focus(function(){this.value==this.defaultValue&&(this.value="")}).blur(function(){this.value.length||(this.value=this.defaultValue)})};jQuery("#cpac-box-plugin_settings .addons input").cleardefault()}function cpac_help(){jQuery("#cpac a.help").click(function(e){e.preventDefault();var t=jQuery("#contextual-help-wrap");t.parent().show();jQuery('a[href="#tab-panel-cpac-'+jQuery(this).attr("data-help")+'"]',t).trigger("click");t.slideDown("fast",function(){t.focus()})})}function cpac_pointer(){jQuery(".cpac-pointer").each(function(){var e=jQuery(this),t=e.attr("rel"),n=e.attr("data-pos"),r={at:"left top",my:"right top",edge:"right",offset:"0 0"};"right"==n&&(r={at:"right middle",my:"left middle",edge:"left"});e.pointer({content:jQuery("#"+t).html(),position:r,pointerWidth:250,close:function(){e.removeClass("open")},pointerClass:"wp-pointer wp-pointer-"+r.edge});e.click(function(){e.hasClass("open")?e.removeClass("open"):e.addClass("open")});e.hover(function(){jQuery(this).pointer("open")},function(){e.hasClass("open")||jQuery(this).pointer("close")})})}function cpac_sortable(){jQuery("div.cpac-columns").each(function(){jQuery(this).hasClass("ui-sortable")?jQuery(this).sortable("refresh"):jQuery(this).sortable({items:".cpac-column"})})}function cpac_menu(){var e=jQuery("#cpac div.cpac-menu");e.find("a").click(function(e,t){var n=jQuery(this).attr("href");if(n){var r=n.replace("#cpac-box-","");jQuery(".cpac-menu a").removeClass("current");jQuery(".columns-container").hide();jQuery(this).addClass("current");var i=jQuery('.columns-container[data-type="'+r+'"]').show(),s=i.find(".cpac-columns");jQuery(document).trigger("cac_menu_change",s)}e.preventDefault()});e.find("a.current").trigger("click")}jQuery(document).ready(function(){if(jQuery("#cpac").length===0)return!1;cpac_pointer();cpac_submit_form();cpac_clear_input_defaults();cpac_sortable();cpac_menu();cpac_help();cpac_add_column();cpac_importexport();cpac_sidebar_feedback();jQuery(".cpac-column").each(function(e,t){jQuery(t).column_bind_toggle();jQuery(t).column_bind_remove();jQuery(t).column_bind_clone();jQuery(t).cpac_bind_container_addon_events()})});jQuery.fn.column_bind_toggle=function(){var e=jQuery(this);e.find("td.column_type a, td.column_edit, td.column_label a.toggle, td.column_label .edit-button").click(function(t){t.preventDefault();e.toggleClass("opened").find(".column-form").slideToggle(150);e.hasClass("events-binded")||e.column_bind_events();e.addClass("events-binded");jQuery(document).trigger("column_init",e)})};jQuery.fn.column_bind_remove=function(){jQuery(this).find(".remove-button").click(function(e){jQuery(this).closest(".cpac-column").column_remove();e.preventDefault()})};jQuery.fn.column_bind_clone=function(){jQuery(this).find(".clone-button").click(function(e){var t,n;e.preventDefault();t=jQuery(this).closest(".cpac-column");n=t.column_clone();typeof n!="undefined"&&n.removeClass("loading").hide().slideDown()})};jQuery.fn.cpac_column_refresh=function(){var e=jQuery(this);e.addClass("loading");e.find(".column-form").prepend('<span class="spinner" />');jQuery.post(ajaxurl,{plugin_id:"cpac",action:"cpac_column_refresh",column:jQuery(this).find("input.column-name").val(),formdata:jQuery(this).parents("form").serialize()},function(t){var n=jQuery("<div>"+t+"</div>").children();e.replaceWith(n);e=n;e.column_bind_toggle();e.column_bind_remove();e.column_bind_clone();e.column_bind_events();e.removeClass("loading").addClass("opened").find(".column-form").show();jQuery(document).trigger("column_change",e)})};jQuery.fn.column_bind_events=function(){var e=jQuery(this),t=e.closest(".columns-container "),n=t.attr("data-type"),r=e.find(".column_type select option:selected").val();e.find(".column_type select").change(function(){var i=jQuery("optgroup",this).children(":selected"),s=i.val(),o=i.text(),u=jQuery(this).next(".msg").hide(),a=t.find('.for-cloning-only .cpac-column[data-type="'+s+'"]');if(a.length)if(a.find(".is-disabled").length){u.html(a.find(".is-disabled").html()).show();jQuery(this).find("option").removeAttr("selected");jQuery(this).find('option[value="'+r+'"]').attr("selected","selected")}else{if(typeof a.attr("data-clone")=="undefined"&&jQuery(".cpac-columns",t).find('[data-type="'+s+'"]').length){u.html(cpac_i18n.clone.replace("%s","<strong>"+o+"</strong>")).show();jQuery(this).find("option").removeAttr("selected");jQuery(this).find('option[value="'+r+'"]').attr("selected","selected");return}var f=a.clone();f.addClass("opened").find(".column-form").show();f.find(".column-meta").replaceWith(e.find(".column-meta"));f.find(".column-form").replaceWith(e.find(".column-form"));f.cpac_update_clone_id(n);e.replaceWith(f);f.cpac_column_refresh()}});e.find(".column_label .input input").bind("keyup change",function(){var e=jQuery(this).val();jQuery(this).closest(".cpac-column").find("td.column_label .inner > a.toggle").text(e)});e.find(".input-width-range").each(function(){var e=jQuery(this).closest("td").find(".input-width"),t=jQuery(this).closest("td").find(".width-decription"),n=jQuery(e)[0].defaultValue,r=t.attr("title");jQuery(this).slider({range:"min",min:0,max:100,value:n,slide:function(n,i){var s=i.value>0?i.value+"%":r;jQuery(e).val(i.value);jQuery(t).text(s)}})});e.find(".column_image_size label.custom-size").click(function(){var e=jQuery(this).closest(".input");if(jQuery(this).hasClass("image-size-custom")){jQuery(".custom-size-w",e).removeClass("hidden");jQuery(".custom-size-h",e).removeClass("hidden")}else{jQuery(".custom-size-w",e).addClass("hidden");jQuery(".custom-size-h",e).addClass("hidden")}});e.find(".column-form .label label").hover(function(){jQuery(this).find("p.description").show()},function(){jQuery(this).find("p.description").hide()});e.find(".column_type select").val()=="column-meta"&&e.find(".column_field_type select").change(function(){e.cpac_column_refresh()})};jQuery.fn.column_remove=function(){jQuery(this).addClass("deleting").animate({opacity:0,height:0},350,function(e){jQuery(this).remove()})};jQuery.fn.column_clone=function(){var e=jQuery(this).closest(".columns-container"),t=jQuery(this);if(typeof t.attr("data-clone")=="undefined"){var n=cpac_i18n.clone.replace("%s","<strong>"+t.find(".column_label .toggle").text()+"</strong>");t.addClass("opened").find(".column-form").slideDown(150);t.find(".msg").html(n).show();return}var r=jQuery(this).clone();r.cpac_update_clone_id(e.attr("data-type"));jQuery(this).after(r);r.column_bind_toggle();r.column_bind_remove();r.column_bind_clone();r.column_bind_events();cpac_sortable();jQuery(document).trigger("column_add",r);return r};jQuery.fn.cpac_update_clone_id=function(e){var t=jQuery(this),n=t.attr("data-type"),r=jQuery('.columns-container[data-type="'+e+'"]').find(".cpac-columns"),i=jQuery(r).find('*[data-type="'+n+'"]').not(t),s=jQuery.map(i,function(e,t){return jQuery(e).attr("data-clone")?parseInt(jQuery(e).attr("data-clone"),10):0});s.sort();var o=Math.max.apply(null,s)+1;for(var u=0;u<=o;u++)if(-1===jQuery.inArray(u,s))break;if(0===u)return;t.attr("data-clone",u);t.find("input.clone").val(u);t.find("input.column-name").val(n+"-"+u);var a=t.find("input, select, label");jQuery(a).each(function(e,t){var r=n+"-"+u;jQuery(t).attr("name")&&jQuery(t).attr("name",jQuery(t).attr("name").replace(n,r));jQuery(t).attr("for")&&jQuery(t).attr("for",jQuery(t).attr("for").replace(n,r));jQuery(t).attr("id")&&jQuery(t).attr("id",jQuery(t).attr("id").replace(n,r))})};jQuery(document).bind("column_init column_change column_add",function(e,t){jQuery(t).cpac_bind_column_addon_events();jQuery(t).cpac_bind_container_addon_events()});jQuery.fn.cpac_bind_column_addon_events=function(){var e=jQuery(this),t=e.find("[data-toggle-id] label");t.click(function(){var t=jQuery(this).closest("td.input").data("toggle-id"),n=e.find('[data-indicator-id="'+t+'"]').removeClass("on"),r=jQuery("input",this).val();"on"==r&&n.addClass("on")})};jQuery.fn.cpac_bind_container_addon_events=function(){var e=jQuery(this),t=e.find("[data-indicator-id]");t.unbind("click").click(function(){var t=jQuery(this).data("indicator-id"),n=e.find('[data-toggle-id="'+t+'"] input');if(jQuery(this).hasClass("on")){jQuery(this).removeClass("on").addClass("off");n.filter("[value=off]").prop("checked",!0)}else{jQuery(this).removeClass("off").addClass("on");n.filter("[value=on]").prop("checked",!0)}})};
1
/*
2
* Fires when the dom is ready
3
*
4
+ */function cpac_importexport(){jQuery("#php-export-results textarea").on("focus, mouseup",function(){jQuery(this).select()}).select().focus()}function cpac_submit_form(){jQuery(".form-update a.submit-update").click(function(e){e.preventDefault();jQuery(this).closest(".columns-container").find(".cpac-columns form").submit()})}function cpac_create_column(e){var t=jQuery(".for-cloning-only .cpac-column",e).first().clone(),n=e.attr("data-type");if(t.length>0){t.cpac_update_clone_id(n);jQuery(".cpac-columns form",e).append(t);t.column_bind_toggle();t.column_bind_remove();t.column_bind_clone();t.column_bind_events();cpac_sortable();jQuery(document).trigger("column_add",t)}return t}function cpac_add_column(){jQuery("#cpac .add_column").click(function(e){var t=jQuery(this).closest(".columns-container"),n=cpac_create_column(t);n.addClass("opened").find(".column-form").slideDown(150,function(){jQuery("html, body").animate({scrollTop:n.offset().top-58},300)});e.preventDefault()})}function cpac_sidebar_feedback(){jQuery(function(e){var t=e(".sidebox#direct-feedback");t.find("#feedback-choice a.no").click(function(e){e.preventDefault();t.find("#feedback-choice").slideUp();t.find("#feedback-support").slideDown()});t.find("#feedback-choice a.yes").click(function(e){e.preventDefault();t.find("#feedback-choice").slideUp();t.find("#feedback-rate").slideDown()})})}function cpac_clear_input_defaults(){jQuery.fn.cleardefault=function(){return this.focus(function(){this.value==this.defaultValue&&(this.value="")}).blur(function(){this.value.length||(this.value=this.defaultValue)})};jQuery("#cpac-box-plugin_settings .addons input").cleardefault()}function cpac_help(){jQuery("#cpac a.help").click(function(e){e.preventDefault();var t=jQuery("#contextual-help-wrap");t.parent().show();jQuery('a[href="#tab-panel-cpac-'+jQuery(this).attr("data-help")+'"]',t).trigger("click");t.slideDown("fast",function(){t.focus()})})}function cpac_pointer(){jQuery(".cpac-pointer").each(function(){var e=jQuery(this),t=e.attr("rel"),n=e.attr("data-pos"),r={at:"left top",my:"right top",edge:"right",offset:"0 0"};"right"==n&&(r={at:"right middle",my:"left middle",edge:"left"});e.pointer({content:jQuery("#"+t).html(),position:r,pointerWidth:250,close:function(){e.removeClass("open")},pointerClass:"wp-pointer wp-pointer-"+r.edge});e.click(function(){e.hasClass("open")?e.removeClass("open"):e.addClass("open")});e.hover(function(){jQuery(this).pointer("open")},function(){e.hasClass("open")||jQuery(this).pointer("close")})})}function cpac_sortable(){jQuery("div.cpac-columns").each(function(){jQuery(this).hasClass("ui-sortable")?jQuery(this).sortable("refresh"):jQuery(this).sortable({items:".cpac-column"})})}function cpac_menu(){var e=jQuery("#cpac div.cpac-menu");e.find("a").click(function(e,t){var n=jQuery(this).attr("href");if(n){var r=n.replace("#cpac-box-","");jQuery(".cpac-menu a").removeClass("current");jQuery(".columns-container").hide();jQuery(this).addClass("current");var i=jQuery('.columns-container[data-type="'+r+'"]').show(),s=i.find(".cpac-columns");jQuery(document).trigger("cac_menu_change",s)}e.preventDefault()});e.find("a.current").trigger("click")}jQuery(document).ready(function(){if(jQuery("#cpac").length===0)return!1;cpac_pointer();cpac_submit_form();cpac_clear_input_defaults();cpac_sortable();cpac_menu();cpac_help();cpac_add_column();cpac_importexport();cpac_sidebar_feedback();jQuery(".cpac-column").each(function(e,t){jQuery(t).column_bind_toggle();jQuery(t).column_bind_remove();jQuery(t).column_bind_clone();jQuery(t).cpac_bind_container_addon_events()})});jQuery.fn.column_bind_toggle=function(){var e=jQuery(this);e.find("td.column_type a, td.column_edit, td.column_label a.toggle, td.column_label .edit-button").click(function(t){t.preventDefault();e.toggleClass("opened").find(".column-form").slideToggle(150);e.hasClass("events-binded")||e.column_bind_events();e.addClass("events-binded");jQuery(document).trigger("column_init",e)})};jQuery.fn.column_bind_remove=function(){jQuery(this).find(".remove-button").click(function(e){jQuery(this).closest(".cpac-column").column_remove();e.preventDefault()})};jQuery.fn.column_bind_clone=function(){jQuery(this).find(".clone-button").click(function(e){var t,n;e.preventDefault();t=jQuery(this).closest(".cpac-column");n=t.column_clone();typeof n!="undefined"&&n.removeClass("loading").hide().slideDown()})};jQuery.fn.cpac_column_refresh=function(){var e=jQuery(this);e.addClass("loading");e.find(".column-form").prepend('<span class="spinner" />');jQuery.post(ajaxurl,{plugin_id:"cpac",action:"cpac_column_refresh",column:jQuery(this).find("input.column-name").val(),formdata:jQuery(this).parents("form").serialize()},function(t){var n=jQuery("<div>"+t+"</div>").children();e.replaceWith(n);e=n;e.column_bind_toggle();e.column_bind_remove();e.column_bind_clone();e.column_bind_events();e.removeClass("loading").addClass("opened").find(".column-form").show();jQuery(document).trigger("column_change",e)})};jQuery.fn.column_bind_events=function(){var e=jQuery(this),t=e.closest(".columns-container "),n=t.attr("data-type"),r=e.find(".column_type select option:selected").val();e.find(".column_type select").change(function(){var i=jQuery("optgroup",this).children(":selected"),s=i.val(),o=i.text(),u=jQuery(this).next(".msg").hide(),a=t.find('.for-cloning-only .cpac-column[data-type="'+s+'"]');if(a.length)if(a.find(".is-disabled").length){u.html(a.find(".is-disabled").html()).show();jQuery(this).find("option").removeAttr("selected");jQuery(this).find('option[value="'+r+'"]').attr("selected","selected")}else{if(typeof a.attr("data-clone")=="undefined"&&jQuery(".cpac-columns",t).find('[data-type="'+s+'"]').length){u.html(cpac_i18n.clone.replace("%s","<strong>"+o+"</strong>")).show();jQuery(this).find("option").removeAttr("selected");jQuery(this).find('option[value="'+r+'"]').attr("selected","selected");return}var f=a.clone();f.addClass("opened").find(".column-form").show();f.find(".column-meta").replaceWith(e.find(".column-meta"));f.find(".column-form").replaceWith(e.find(".column-form"));f.cpac_update_clone_id(n);e.replaceWith(f);f.cpac_column_refresh()}});e.find(".column_label .input input").bind("keyup change",function(){var e=jQuery(this).val();jQuery(this).closest(".cpac-column").find("td.column_label .inner > a.toggle").text(e)});e.find(".input-width-range").each(function(){var e=jQuery(this).closest("td").find(".input-width"),t=jQuery(this).closest("td").find(".width-decription"),n=jQuery(this).closest(".cpac-column").find(".column-meta span.width"),r=jQuery(e)[0].defaultValue,i=t.attr("title");jQuery(this).slider({range:"min",min:0,max:100,value:r,slide:function(r,s){var o=s.value>0?s.value+"%":i,u=s.value>0?s.value+"%":"";jQuery(e).val(s.value);t.text(o);n.text(u)}})});e.find(".column_image_size label.custom-size").click(function(){var e=jQuery(this).closest(".input");if(jQuery(this).hasClass("image-size-custom")){jQuery(".custom-size-w",e).removeClass("hidden");jQuery(".custom-size-h",e).removeClass("hidden")}else{jQuery(".custom-size-w",e).addClass("hidden");jQuery(".custom-size-h",e).addClass("hidden")}});e.find(".column-form .label label").hover(function(){jQuery(this).find("p.description").show()},function(){jQuery(this).find("p.description").hide()});e.find(".column_type select").val()=="column-meta"&&e.find(".column_field_type select").change(function(){e.cpac_column_refresh()})};jQuery.fn.column_remove=function(){jQuery(this).addClass("deleting").animate({opacity:0,height:0},350,function(e){jQuery(this).remove()})};jQuery.fn.column_clone=function(){var e=jQuery(this).closest(".columns-container"),t=jQuery(this);if(typeof t.attr("data-clone")=="undefined"){var n=cpac_i18n.clone.replace("%s","<strong>"+t.find(".column_label .toggle").text()+"</strong>");t.addClass("opened").find(".column-form").slideDown(150);t.find(".msg").html(n).show();return}var r=jQuery(this).clone();r.cpac_update_clone_id(e.attr("data-type"));jQuery(this).after(r);r.column_bind_toggle();r.column_bind_remove();r.column_bind_clone();r.column_bind_events();cpac_sortable();jQuery(document).trigger("column_add",r);return r};jQuery.fn.cpac_update_clone_id=function(e){var t=jQuery(this),n=t.attr("data-type"),r=jQuery('.columns-container[data-type="'+e+'"]').find(".cpac-columns"),i=jQuery(r).find('*[data-type="'+n+'"]').not(t),s=jQuery.map(i,function(e,t){return jQuery(e).attr("data-clone")?parseInt(jQuery(e).attr("data-clone"),10):0});s.sort();var o=Math.max.apply(null,s)+1;for(var u=0;u<=o;u++)if(-1===jQuery.inArray(u,s))break;if(0===u)return;var a=t.attr("data-clone"),f="";a&&(f="-"+a);t.attr("data-clone",u);t.find("input.clone").val(u);t.find("input.column-name").val(n+"-"+u);var l=t.find("input, select, label");jQuery(l).each(function(e,t){var r=n+"-"+u;jQuery(t).attr("name")&&jQuery(t).attr("name",jQuery(t).attr("name").replace(n+f,r));jQuery(t).attr("for")&&jQuery(t).attr("for",jQuery(t).attr("for").replace(n+f,r));jQuery(t).attr("id")&&jQuery(t).attr("id",jQuery(t).attr("id").replace(n+f,r))})};jQuery(document).bind("column_init column_change column_add",function(e,t){jQuery(t).cpac_bind_column_addon_events();jQuery(t).cpac_bind_container_addon_events()});jQuery.fn.cpac_bind_column_addon_events=function(){var e=jQuery(this),t=e.find("[data-toggle-id] label");t.click(function(){var t=jQuery(this).closest("td.input").data("toggle-id"),n=e.find('[data-indicator-id="'+t+'"]').removeClass("on"),r=jQuery("input",this).val();"on"==r&&n.addClass("on")})};jQuery.fn.cpac_bind_container_addon_events=function(){var e=jQuery(this),t=e.find("[data-indicator-id]");t.unbind("click").click(function(){var t=jQuery(this).data("indicator-id"),n=e.find('[data-toggle-id="'+t+'"] input');if(jQuery(this).hasClass("on")){jQuery(this).removeClass("on").addClass("off");n.filter("[value=off]").prop("checked",!0)}else{jQuery(this).removeClass("off").addClass("on");n.filter("[value=on]").prop("checked",!0)}})};
assets/js/jquery.qtip.min.js ADDED
@@ -0,0 +1,13 @@
1
+ /*
2
+ * qTip2 - Pretty powerful tooltips - v2.2.1
3
+ * http://qtip2.com
4
+ *
5
+ * Copyright (c) 2014
6
+ * Released under the MIT licenses
7
+ * http://jquery.org/license
8
+ *
9
+ * Date: Mon Sep 8 2014 05:43 EDT-0400
10
+ * Plugins: tips
11
+ * Styles: core css3
12
+ *//*global window: false, jQuery: false, console: false, define: false *//* Cache window, document, undefined */(function(e,t,n){(function(e){"use strict";typeof define=="function"&&define.amd?define(["jquery"],e):jQuery&&!jQuery.fn.qtip&&e(jQuery)})(function(r){"use strict";function I(e,t,n,i){this.id=n;this.target=e;this.tooltip=o;this.elements={target:e};this._id=T+"-"+n;this.timers={img:{}};this.options=t;this.plugins={};this.cache={event:{},target:r(),disabled:s,attr:i,onTooltip:s,lastClass:""};this.rendered=this.destroyed=this.disabled=this.waiting=this.hiddenDuringWait=this.positioning=this.triggering=s}function q(e){return e===o||r.type(e)!=="object"}function R(e){return!(r.isFunction(e)||e&&e.attr||e.length||r.type(e)==="object"&&(e.jquery||e.then))}function U(e){var t,n,u,a;if(q(e))return s;q(e.metadata)&&(e.metadata={type:e.metadata});if("content"in e){t=e.content;q(t)||t.jquery||t.done?t=e.content={text:n=R(t)?s:t}:n=t.text;if("ajax"in t){u=t.ajax;a=u&&u.once!==s;delete t.ajax;t.text=function(e,t){var i=n||r(this).attr(t.options.content.attr)||"Loading...",s=r.ajax(r.extend({},u,{context:t})).then(u.success,o,u.error).then(function(e){e&&a&&t.set("content.text",e);return e},function(e,n,r){if(t.destroyed||e.status===0)return;t.set("content.text",n+": "+r)});return a?i:(t.set("content.text",i),s)}}if("title"in t){if(r.isPlainObject(t.title)){t.button=t.title.button;t.title=t.title.text}R(t.title||s)&&(t.title=s)}}"position"in e&&q(e.position)&&(e.position={my:e.position,at:e.position});"show"in e&&q(e.show)&&(e.show=e.show.jquery?{target:e.show}:e.show===i?{ready:i}:{event:e.show});"hide"in e&&q(e.hide)&&(e.hide=e.hide.jquery?{target:e.hide}:{event:e.hide});"style"in e&&q(e.style)&&(e.style={classes:e.style});r.each(x,function(){this.sanitize&&this.sanitize(e)});return e}function z(e,t){var n=0,r,i=e,s=t.split(".");while(i=i[s[n++]])n<s.length&&(r=i);return[r||e,s.pop()]}function W(e,t){var n,r,i;for(n in this.checks)for(r in this.checks[n])if(i=(new RegExp(r,"i")).exec(e)){t.push(i);(n==="builtin"||this.plugins[n])&&this.checks[n][r].apply(this.plugins[n]||this,t)}}function J(e){return k.concat("").join(e?"-"+e+" ":" ")}function K(e,t){if(t>0)return setTimeout(r.proxy(e,this),t);e.call(this)}function Q(e){if(this.tooltip.hasClass(P))return;clearTimeout(this.timers.show);clearTimeout(this.timers.hide);this.timers.show=K.call(this,function(){this.toggle(i,e)},this.options.show.delay)}function G(e){if(this.tooltip.hasClass(P)||this.destroyed)return;var t=r(e.relatedTarget),n=t.closest(L)[0]===this.tooltip[0],i=t[0]===this.options.show.target[0];clearTimeout(this.timers.show);clearTimeout(this.timers.hide);if(this!==t[0]&&this.options.position.target==="mouse"&&n||this.options.hide.fixed&&/mouse(out|leave|move)/.test(e.type)&&(n||i)){try{e.preventDefault();e.stopImmediatePropagation()}catch(o){}return}this.timers.hide=K.call(this,function(){this.toggle(s,e)},this.options.hide.delay,this)}function Y(e){if(this.tooltip.hasClass(P)||!this.options.hide.inactive)return;clearTimeout(this.timers.inactive);this.timers.inactive=K.call(this,function(){this.hide(e)},this.options.hide.inactive)}function Z(e){this.rendered&&this.tooltip[0].offsetWidth>0&&this.reposition(e)}function et(e,n,i){r(t.body).delegate(e,(n.split?n:n.join("."+T+" "))+"."+T,function(){var e=b.api[r.attr(this,C)];e&&!e.disabled&&i.apply(e,arguments)})}function tt(e,n,u){var a,f,l,c,h,p=r(t.body),d=e[0]===t?p:e,v=e.metadata?e.metadata(u.metadata):o,m=u.metadata.type==="html5"&&v?v[u.metadata.name]:o,g=e.data(u.metadata.name||"qtipopts");try{g=typeof g=="string"?r.parseJSON(g):g}catch(y){}c=r.extend(i,{},b.defaults,u,typeof g=="object"?U(g):o,U(m||v));f=c.position;c.id=n;if("boolean"==typeof c.content.text){l=e.attr(c.content.attr);if(c.content.attr===s||!l)return s;c.content.text=l}f.container.length||(f.container=p);f.target===s&&(f.target=d);c.show.target===s&&(c.show.target=d);c.show.solo===i&&(c.show.solo=f.container.closest("body"));c.hide.target===s&&(c.hide.target=d);c.position.viewport===i&&(c.position.viewport=f.container);f.container=f.container.eq(0);f.at=new E(f.at,i);f.my=new E(f.my);if(e.data(T))if(c.overwrite)e.qtip("destroy",!0);else if(c.overwrite===s)return s;e.attr(N,n);c.suppress&&(h=e.attr("title"))&&e.removeAttr("title").attr(B,h).attr("title","");a=new I(e,c,n,!!l);e.data(T,a);return a}function ht(e){return e.charAt(0).toUpperCase()+e.slice(1)}function vt(e,t){var r=t.charAt(0).toUpperCase()+t.slice(1),i=(t+" "+dt.join(r+" ")+r).split(" "),s,o,u=0;if(pt[t])return e.css(pt[t]);while(s=i[u++])if((o=e.css(s))!==n)return pt[t]=s,o}function mt(e,t){return Math.ceil(parseFloat(vt(e,t)))}function Et(e,t){this._ns="tip";this.options=t;this.offset=t.offset;this.size=[t.width,t.height];this.init(this.qtip=e)}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,x={},T="qtip",N="data-hasqtip",C="data-qtip-id",k=["ui-widget","ui-tooltip"],L="."+T,A="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),O=T+"-fixed",M=T+"-default",_=T+"-focus",D=T+"-hover",P=T+"-disabled",H="_replacedByqTip",B="oldtitle",j,F={ie:function(){for(var e=4,n=t.createElement("div");(n.innerHTML="<!--[if gt IE "+e+"]><i></i><![endif]-->")&&n.getElementsByTagName("i")[0];e+=1);return e>4?e:NaN}(),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};w=I.prototype;w._when=function(e){return r.when.apply(r,e)};w.render=function(e){if(this.rendered||this.destroyed)return this;var t=this,n=this.options,o=this.cache,u=this.elements,a=n.content.text,f=n.content.title,l=n.content.button,c=n.position,h="."+this._id+" ",p=[],d;r.attr(this.target[0],"aria-describedby",this._id);o.posClass=this._createPosClass((this.position={my:c.my,at:c.at}).my);this.tooltip=u.tooltip=d=r("<div/>",{id:this._id,"class":[T,M,n.style.classes,o.posClass].join(" "),width:n.style.width||"",height:n.style.height||"",tracking:c.target==="mouse"&&c.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":s,"aria-describedby":this._id+"-content","aria-hidden":i}).toggleClass(P,this.disabled).attr(C,this.id).data(T,this).appendTo(c.container).append(u.content=r("<div />",{"class":T+"-content",id:this._id+"-content","aria-atomic":i}));this.rendered=-1;this.positioning=i;if(f){this._createTitle();r.isFunction(f)||p.push(this._updateTitle(f,s))}l&&this._createButton();r.isFunction(a)||p.push(this._updateContent(a,s));this.rendered=i;this._setWidget();r.each(x,function(e){var n;this.initialize==="render"&&(n=this(t))&&(t.plugins[e]=n)});this._unassignEvents();this._assignEvents();this._when(p).then(function(){t._trigger("render");t.positioning=s;!t.hiddenDuringWait&&(n.show.ready||e)&&t.toggle(i,o.event,s);t.hiddenDuringWait=s});b.api[this.id]=this;return this};w.destroy=function(e){function t(){if(this.destroyed)return;this.destroyed=i;var e=this.target,t=e.attr(B),n;this.rendered&&this.tooltip.stop(1,0).find("*").remove().end().remove();r.each(this.plugins,function(e){this.destroy&&this.destroy()});for(n in this.timers)clearTimeout(this.timers[n]);e.removeData(T).removeAttr(C).removeAttr(N).removeAttr("aria-describedby");this.options.suppress&&t&&e.attr("title",t).removeAttr(B);this._unassignEvents();this.options=this.elements=this.cache=this.timers=this.plugins=this.mouse=o;delete b.api[this.id]}if(this.destroyed)return this.target;if(e===i&&this.triggering!=="hide"||!this.rendered)t.call(this);else{this.tooltip.one("tooltiphidden",r.proxy(t,this));!this.triggering&&this.hide()}return this.target};S=w.checks={builtin:{"^idquot;:function(e,t,n,o){var u=n===i?b.nextid:n,a=T+"-"+u;if(u!==s&&u.length>0&&!r("#"+a).length){this._id=a;if(this.rendered){this.tooltip[0].id=this._id;this.elements.content[0].id=this._id+"-content";this.elements.title[0].id=this._id+"-title"}}else e[t]=o},"^prerender":function(e,t,n){n&&!this.rendered&&this.render(this.options.show.ready)},"^content.textquot;:function(e,t,n){this._updateContent(n)},"^content.attrquot;:function(e,t,n,r){this.options.content.text===this.target.attr(r)&&this._updateContent(this.target.attr(n))},"^content.titlequot;:function(e,t,n){if(!n)return this._removeTitle();n&&!this.elements.title&&this._createTitle();this._updateTitle(n)},"^content.buttonquot;:function(e,t,n){this._updateButton(n)},"^content.title.(text|button)quot;:function(e,t,n){this.set("content."+t,n)},"^position.(my|at)quot;:function(e,t,n){"string"==typeof n&&(this.position[t]=e[t]=new E(n,t==="at"))},"^position.containerquot;:function(e,t,n){this.rendered&&this.tooltip.appendTo(n)},"^show.readyquot;:function(e,t,n){n&&(!this.rendered&&this.render(i)||this.toggle(i))},"^style.classesquot;:function(e,t,n,r){this.rendered&&this.tooltip.removeClass(r).addClass(n)},"^style.(width|height)":function(e,t,n){this.rendered&&this.tooltip.css(t,n)},"^style.widget|content.title":function(){this.rendered&&this._setWidget()},"^style.def":function(e,t,n){this.rendered&&this.tooltip.toggleClass(M,!!n)},"^events.(render|show|move|hide|focus|blur)quot;:function(e,t,n){this.rendered&&this.tooltip[(r.isFunction(n)?"":"un")+"bind"]("tooltip"+t,n)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){if(!this.rendered)return;var e=this.options.position;this.tooltip.attr("tracking",e.target==="mouse"&&e.adjust.mouse);this._unassignEvents();this._assignEvents()}}};w.get=function(e){if(this.destroyed)return this;var t=z(this.options,e.toLowerCase()),n=t[0][t[1]];return n.precedance?n.string():n};var X=/^position\.(my|at|adjust|target|container|viewport)|style|content|show\.ready/i,V=/^prerender|show\.ready/i;w.set=function(e,t){if(this.destroyed)return this;var n=this.rendered,u=s,a=this.options,f=this.checks,l;if("string"==typeof e){l=e;e={};e[l]=t}else e=r.extend({},e);r.each(e,function(t,i){if(n&&V.test(t)){delete e[t];return}var s=z(a,t.toLowerCase()),o;o=s[0][s[1]];s[0][s[1]]=i&&i.nodeType?r(i):i;u=X.test(t)||u;e[t]=[s[0],s[1],i,o]});U(a);this.positioning=i;r.each(e,r.proxy(W,this));this.positioning=s;this.rendered&&this.tooltip[0].offsetWidth>0&&u&&this.reposition(a.position.target==="mouse"?o:this.cache.event);return this};w._update=function(e,t,n){var u=this,a=this.cache;if(!this.rendered||!e)return s;r.isFunction(e)&&(e=e.call(this.elements.target,a.event,this)||"");if(r.isFunction(e.then)){a.waiting=i;return e.then(function(e){a.waiting=s;return u._update(e,t)},o,function(e){return u._update(e,t)})}if(e===s||!e&&e!=="")return s;e.jquery&&e.length>0?t.empty().append(e.css({display:"block",visibility:"visible"})):t.html(e);return this._waitForContent(t).then(function(e){u.rendered&&u.tooltip[0].offsetWidth>0&&u.reposition(a.event,!e.length)})};w._waitForContent=function(e){var t=this.cache;t.waiting=i;return(r.fn.imagesLoaded?e.imagesLoaded():r.Deferred().resolve([])).done(function(){t.waiting=s}).promise()};w._updateContent=function(e,t){this._update(e,this.elements.content,t)};w._updateTitle=function(e,t){this._update(e,this.elements.title,t)===s&&this._removeTitle(s)};w._createTitle=function(){var e=this.elements,t=this._id+"-title";e.titlebar&&this._removeTitle();e.titlebar=r("<div />",{"class":T+"-titlebar "+(this.options.style.widget?J("header"):"")}).append(e.title=r("<div />",{id:t,"class":T+"-title","aria-atomic":i})).insertBefore(e.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")});this.options.content.button&&this._createButton()};w._removeTitle=function(e){var t=this.elements;if(t.title){t.titlebar.remove();t.titlebar=t.title=t.button=o;e!==s&&this.reposition()}};w._createPosClass=function(e){return T+"-pos-"+(e||this.options.position.my).abbrev()};w.reposition=function(n,o){if(!this.rendered||this.positioning||this.destroyed)return this;this.positioning=i;var u=this.cache,a=this.tooltip,f=this.options.position,l=f.target,m=f.my,g=f.at,y=f.viewport,b=f.container,w=f.adjust,E=w.method.split(" "),S=a.outerWidth(s),T=a.outerHeight(s),N=0,C=0,k=a.css("position"),L={left:0,top:0},A=a[0].offsetWidth>0,O=n&&n.type==="scroll",M=r(e),_=b[0].ownerDocument,D=this.mouse,P,H,B,j;if(r.isArray(l)&&l.length===2){g={x:h,y:c};L={left:l[0],top:l[1]}}else if(l==="mouse"){g={x:h,y:c};(!w.mouse||this.options.hide.distance)&&u.origin&&u.origin.pageX?n=u.origin:!n||n&&(n.type==="resize"||n.type==="scroll")?n=u.event:D&&D.pageX&&(n=D);k!=="static"&&(L=b.offset());_.body.offsetWidth!==(e.innerWidth||_.documentElement.clientWidth)&&(H=r(t.body).offset());L={left:n.pageX-L.left+(H&&H.left||0),top:n.pageY-L.top+(H&&H.top||0)};if(w.mouse&&O&&D){L.left-=(D.scrollX||0)-M.scrollLeft();L.top-=(D.scrollY||0)-M.scrollTop()}}else{l==="event"?n&&n.target&&n.type!=="scroll"&&n.type!=="resize"?u.target=r(n.target):n.target||(u.target=this.elements.target):l!=="event"&&(u.target=r(l.jquery?l:this.elements.target));l=u.target;l=r(l).eq(0);if(l.length===0)return this;if(l[0]===t||l[0]===e){N=F.iOS?e.innerWidth:l.width();C=F.iOS?e.innerHeight:l.height();l[0]===e&&(L={top:(y||l).scrollTop(),left:(y||l).scrollLeft()})}else if(x.imagemap&&l.is("area"))P=x.imagemap(this,l,g,x.viewport?E:s);else if(x.svg&&l&&l[0].ownerSVGElement)P=x.svg(this,l,g,x.viewport?E:s);else{N=l.outerWidth(s);C=l.outerHeight(s);L=l.offset()}if(P){N=P.width;C=P.height;H=P.offset;L=P.position}L=this.reposition.offset(l,L,b);if(F.iOS>3.1&&F.iOS<4.1||F.iOS>=4.3&&F.iOS<4.33||!F.iOS&&k==="fixed"){L.left-=M.scrollLeft();L.top-=M.scrollTop()}if(!P||P&&P.adjustable!==s){L.left+=g.x===d?N:g.x===v?N/2:0;L.top+=g.y===p?C:g.y===v?C/2:0}}L.left+=w.x+(m.x===d?-S:m.x===v?-S/2:0);L.top+=w.y+(m.y===p?-T:m.y===v?-T/2:0);if(x.viewport){B=L.adjusted=x.viewport(this,L,f,N,C,S,T);H&&B.left&&(L.left+=H.left);H&&B.top&&(L.top+=H.top);B.my&&(this.position.my=B.my)}else L.adjusted={left:0,top:0};u.posClass!==(j=this._createPosClass(this.position.my))&&a.removeClass(u.posClass).addClass(u.posClass=j);if(!this._trigger("move",[L,y.elem||y],n))return this;delete L.adjusted;if(o===s||!A||isNaN(L.left)||isNaN(L.top)||l==="mouse"||!r.isFunction(f.effect))a.css(L);else if(r.isFunction(f.effect)){f.effect.call(a,this,r.extend({},L));a.queue(function(e){r(this).css({opacity:"",height:""});F.ie&&this.style.removeAttribute("filter");e()})}this.positioning=s;return this};w.reposition.offset=function(e,n,i){function h(e,t){n.left+=t*e.scrollLeft();n.top+=t*e.scrollTop()}if(!i[0])return n;var s=r(e[0].ownerDocument),o=!!F.ie&&t.compatMode!=="CSS1Compat",u=i[0],a,f,l,c;do if((f=r.css(u,"position"))!=="static"){if(f==="fixed"){l=u.getBoundingClientRect();h(s,-1)}else{l=r(u).position();l.left+=parseFloat(r.css(u,"borderLeftWidth"))||0;l.top+=parseFloat(r.css(u,"borderTopWidth"))||0}n.left-=l.left+(parseFloat(r.css(u,"marginLeft"))||0);n.top-=l.top+(parseFloat(r.css(u,"marginTop"))||0);!a&&(c=r.css(u,"overflow"))!=="hidden"&&c!=="visible"&&(a=r(u))}while(u=u.offsetParent);a&&(a[0]!==s[0]||o)&&h(a,1);return n};var $=(E=w.reposition.Corner=function(e,t){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();this.forceY=!!t;var n=e.charAt(0);this.precedance=n==="t"||n==="b"?a:u}).prototype;$.invert=function(e,t){this[e]=this[e]===h?d:this[e]===d?h:t||this[e]};$.string=function(e){var t=this.x,n=this.y,r=t!==n?t==="center"||n!=="center"&&(this.precedance===a||this.forceY)?[n,t]:[t,n]:[t];return e!==!1?r.join(" "):r};$.abbrev=function(){var e=this.string(!1);return e[0].charAt(0)+(e[1]&&e[1].charAt(0)||"")};$.clone=function(){return new E(this.string(),this.forceY)};w.toggle=function(e,n){var u=this.cache,a=this.options,f=this.tooltip;if(n){if(/over|enter/.test(n.type)&&u.event&&/out|leave/.test(u.event.type)&&a.show.target.add(n.target).length===a.show.target.length&&f.has(n.relatedTarget).length)return this;u.event=r.event.fix(n)}this.waiting&&!e&&(this.hiddenDuringWait=i);if(!this.rendered)return e?this.render(1):this;if(this.destroyed||this.disabled)return this;var l=e?"show":"hide",c=this.options[l],h=this.options[e?"hide":"show"],p=this.options.position,d=this.options.content,v=this.tooltip.css("width"),m=this.tooltip.is(":visible"),g=e||c.target.length===1,y=!n||c.target.length<2||u.target[0]===n.target,b,w,E,S,x;(typeof e).search("boolean|number")&&(e=!m);b=!f.is(":animated")&&m===e&&y;w=b?o:!!this._trigger(l,[90]);if(this.destroyed)return this;w!==s&&e&&this.focus(n);if(!w||b)return this;r.attr(f[0],"aria-hidden",!e);if(e){this.mouse&&(u.origin=r.event.fix(this.mouse));r.isFunction(d.text)&&this._updateContent(d.text,s);r.isFunction(d.title)&&this._updateTitle(d.title,s);if(!j&&p.target==="mouse"&&p.adjust.mouse){r(t).bind("mousemove."+T,this._storeMouse);j=i}v||f.css("width",f.outerWidth(s));this.reposition(n,arguments[2]);v||f.css("width","");!c.solo||(typeof c.solo=="string"?r(c.solo):r(L,c.solo)).not(f).not(c.target).qtip("hide",r.Event("tooltipsolo"))}else{clearTimeout(this.timers.show);delete u.origin;if(j&&!r(L+'[tracking="true"]:visible',c.solo).not(f).length){r(t).unbind("mousemove."+T);j=s}this.blur(n)}x=r.proxy(function(){if(e){F.ie&&f[0].style.removeAttribute("filter");f.css("overflow","");"string"==typeof c.autofocus&&r(this.options.show.autofocus,f).focus();this.options.show.target.trigger("qtip-"+this.id+"-inactive")}else f.css({display:"",visibility:"",opacity:"",left:"",top:""});this._trigger(e?"visible":"hidden")},this);if(c.effect===s||g===s){f[l]();x()}else if(r.isFunction(c.effect)){f.stop(1,1);c.effect.call(f,this);f.queue("fx",function(e){x();e()})}else f.fadeTo(90,e?1:0,x);e&&c.target.trigger("qtip-"+this.id+"-inactive");return this};w.show=function(e){return this.toggle(i,e)};w.hide=function(e){return this.toggle(s,e)};w.focus=function(e){if(!this.rendered||this.destroyed)return this;var t=r(L),n=this.tooltip,i=parseInt(n[0].style.zIndex,10),s=b.zindex+t.length,o;if(!n.hasClass(_)&&this._trigger("focus",[s],e)){if(i!==s){t.each(function(){this.style.zIndex>i&&(this.style.zIndex=this.style.zIndex-1)});t.filter("."+_).qtip("blur",e)}n.addClass(_)[0].style.zIndex=s}return this};w.blur=function(e){if(!this.rendered||this.destroyed)return this;this.tooltip.removeClass(_);this._trigger("blur",[this.tooltip.css("zIndex")],e);return this};w.disable=function(e){if(this.destroyed)return this;e==="toggle"?e=this.rendered?!this.tooltip.hasClass(P):!this.disabled:"boolean"!=typeof e&&(e=i);this.rendered&&this.tooltip.toggleClass(P,e).attr("aria-disabled",e);this.disabled=!!e;return this};w.enable=function(){return this.disable(s)};w._createButton=function(){var e=this,t=this.elements,n=t.tooltip,i=this.options.content.button,o=typeof i=="string",u=o?i:"Close tooltip";t.button&&t.button.remove();i.jquery?t.button=i:t.button=r("<a />",{"class":"qtip-close "+(this.options.style.widget?"":T+"-icon"),title:u,"aria-label":u}).prepend(r("<span />",{"class":"ui-icon ui-icon-close",html:"&times;"}));t.button.appendTo(t.titlebar||n).attr("role","button").click(function(t){n.hasClass(P)||e.hide(t);return s})};w._updateButton=function(e){if(!this.rendered)return s;var t=this.elements.button;e?this._createButton():t.remove()};w._setWidget=function(){var e=this.options.style.widget,t=this.elements,n=t.tooltip,r=n.hasClass(P);n.removeClass(P);P=e?"ui-state-disabled":"qtip-disabled";n.toggleClass(P,r);n.toggleClass("ui-helper-reset "+J(),e).toggleClass(M,this.options.style.def&&!e);t.content&&t.content.toggleClass(J("content"),e);t.titlebar&&t.titlebar.toggleClass(J("header"),e);t.button&&t.button.toggleClass(T+"-icon",!e)};w._storeMouse=function(e){(this.mouse=r.event.fix(e)).type="mousemove";return this};w._bind=function(e,t,n,i,s){if(!e||!n||!t.length)return;var o="."+this._id+(i?"-"+i:"");r(e).bind((t.split?t:t.join(o+" "))+o,r.proxy(n,s||this));return this};w._unbind=function(e,t){e&&r(e).unbind("."+this._id+(t?"-"+t:""));return this};w._trigger=function(e,t,n){var i=r.Event("tooltip"+e);i.originalEvent=n&&r.extend({},n)||this.cache.event||o;this.triggering=e;this.tooltip.trigger(i,[this].concat(t||[]));this.triggering=s;return!i.isDefaultPrevented()};w._bindEvents=function(e,t,n,i,s,o){var u=n.filter(i).add(i.filter(n)),a=[];if(u.length){r.each(t,function(t,n){var i=r.inArray(n,e);i>-1&&a.push(e.splice(i,1)[0])});if(a.length){this._bind(u,a,function(e){var t=this.rendered?this.tooltip[0].offsetWidth>0:!1;(t?o:s).call(this,e)});n=n.not(u);i=i.not(u)}}this._bind(n,e,s);this._bind(i,t,o)};w._assignInitialEvents=function(e){function f(e){if(this.disabled||this.destroyed)return s;this.cache.event=e&&r.event.fix(e);this.cache.target=e&&r(e.target);clearTimeout(this.timers.show);this.timers.show=K.call(this,function(){this.render(typeof e=="object"||t.show.ready)},t.prerender?0:t.show.delay)}var t=this.options,n=t.show.target,o=t.hide.target,u=t.show.event?r.trim(""+t.show.event).split(" "):[],a=t.hide.event?r.trim(""+t.hide.event).split(" "):[];this._bind(this.elements.target,["remove","removeqtip"],function(e){this.destroy(!0)},"destroy");/mouse(over|enter)/i.test(t.show.event)&&!/mouse(out|leave)/i.test(t.hide.event)&&a.push("mouseleave");this._bind(n,"mousemove",function(e){this._storeMouse(e);this.cache.onTarget=i});this._bindEvents(u,a,n,o,f,function(){if(!this.timers)return s;clearTimeout(this.timers.show)});(t.show.ready||t.prerender)&&f.call(this,e)};w._assignEvents=function(){var n=this,i=this.options,o=i.position,u=this.tooltip,a=i.show.target,f=i.hide.target,l=o.container,c=o.viewport,h=r(t),p=r(t.body),d=r(e),v=i.show.event?r.trim(""+i.show.event).split(" "):[],m=i.hide.event?r.trim(""+i.hide.event).split(" "):[];r.each(i.events,function(e,t){n._bind(u,e==="toggle"?["tooltipshow","tooltiphide"]:["tooltip"+e],t,null,u)});/mouse(out|leave)/i.test(i.hide.event)&&i.hide.leave==="window"&&this._bind(h,["mouseout","blur"],function(e){!/select|option/.test(e.target.nodeName)&&!e.relatedTarget&&this.hide(e)});i.hide.fixed?f=f.add(u.addClass(O)):/mouse(over|enter)/i.test(i.show.event)&&this._bind(f,"mouseleave",function(){clearTimeout(this.timers.show)});(""+i.hide.event).indexOf("unfocus")>-1&&this._bind(l.closest("html"),["mousedown","touchstart"],function(e){var t=r(e.target),n=this.rendered&&!this.tooltip.hasClass(P)&&this.tooltip[0].offsetWidth>0,i=t.parents(L).filter(this.tooltip[0]).length>0;t[0]!==this.target[0]&&t[0]!==this.tooltip[0]&&!i&&!this.target.has(t[0]).length&&n&&this.hide(e)});if("number"==typeof i.hide.inactive){this._bind(a,"qtip-"+this.id+"-inactive",Y,"inactive");this._bind(f.add(u),b.inactiveEvents,Y)}this._bindEvents(v,m,a,f,Q,G);this._bind(a.add(u),"mousemove",function(e){if("number"==typeof i.hide.distance){var t=this.cache.origin||{},n=this.options.hide.distance,r=Math.abs;(r(e.pageX-t.pageX)>=n||r(e.pageY-t.pageY)>=n)&&this.hide(e)}this._storeMouse(e)});if(o.target==="mouse"&&o.adjust.mouse){i.hide.event&&this._bind(a,["mouseenter","mouseleave"],function(e){if(!this.cache)return s;this.cache.onTarget=e.type==="mouseenter"});this._bind(h,"mousemove",function(e){this.rendered&&this.cache.onTarget&&!this.tooltip.hasClass(P)&&this.tooltip[0].offsetWidth>0&&this.reposition(e)})}(o.adjust.resize||c.length)&&this._bind(r.event.special.resize?c:d,"resize",Z);o.adjust.scroll&&this._bind(d.add(o.container),"scroll",Z)};w._unassignEvents=function(){var n=this.options,i=n.show.target,s=n.hide.target,o=r.grep([this.elements.target[0],this.rendered&&this.tooltip[0],n.position.container[0],n.position.viewport[0],n.position.container.closest("html")[0],e,t],function(e){return typeof e=="object"});i&&i.toArray&&(o=o.concat(i.toArray()));s&&s.toArray&&(o=o.concat(s.toArray()));this._unbind(o)._unbind(o,"destroy")._unbind(o,"inactive")};r(function(){et(L,["mouseenter","mouseleave"],function(e){var t=e.type==="mouseenter",n=r(e.currentTarget),i=r(e.relatedTarget||e.target),s=this.options;if(t){this.focus(e);n.hasClass(O)&&!n.hasClass(P)&&clearTimeout(this.timers.hide)}else s.position.target==="mouse"&&s.position.adjust.mouse&&s.hide.event&&s.show.target&&!i.closest(s.show.target[0]).length&&this.hide(e);n.toggleClass(D,t)});et("["+C+"]",A,Y)});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],T):o;if(!arguments.length&&h||a==="api")return h;if("string"==typeof e){this.each(function(){var e=r.data(this,T);if(!e)return i;c&&c.timeStamp&&(e.cache.event=c);if(!t||a!=="option"&&a!=="options")e[a]&&e[a].apply(e,l);else{if(u===n&&!r.isPlainObject(t)){f=e.get(t);return s}e.set(t,u)}});return f!==o?f:this}if("object"==typeof e||!arguments.length){h=U(r.extend(i,{},e));return this.each(function(e){var t,n;n=r.isArray(h.id)?h.id[e]:h.id;n=!n||n===s||n.length<1||b.api[n]?b.nextid++:n;t=tt(r(this),n,h);if(t===s)return i;b.api[n]=t;r.each(x,function(){this.initialize==="initialize"&&this(t)});t._assignInitialEvents(c)})}};r.qtip=I;b.api={};r.each({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){if(arguments.length<2)return r.attr(n,B);s&&s.options.content.attr===i&&s.cache.attr&&s.set("content.text",t);return this.attr(B,t)}}return r.fn["attr"+H].apply(this,arguments)},clone:function(e){var t=r([]),n="title",i=r.fn["clone"+H].apply(this,arguments);e||i.filter("["+B+"]").attr("title",function(){return r.attr(this,B)}).removeAttr(B);return i}},function(e,t){if(!t||r.fn[e+H])return i;var n=r.fn[e+H]=r.fn[e];r.fn[e]=function(){return t.apply(this,arguments)||n.apply(this,arguments)}});if(!r.ui){r["cleanData"+H]=r.cleanData;r.cleanData=function(e){for(var t=0,n;(n=r(e[t])).length;t++)if(n.attr(N))try{n.triggerHandler("removeqtip")}catch(i){}r["cleanData"+H].apply(this,arguments)}}b.version="2.2.1";b.nextid=0;b.inactiveEvents=A;b.zindex=15e3;b.defaults={prerender:s,id:s,overwrite:i,suppress:i,content:{text:i,attr:"title",title:s,button:s},position:{my:"top left",at:"bottom right",target:s,container:s,viewport:s,adjust:{x:0,y:0,mouse:i,scroll: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}};var nt,rt=".qtip-tip",it="margin",st="border",ot="color",ut="background-color",at="transparent",ft=" !important",lt=!!t.createElement("canvas").getContext,ct=/rgba?\(0, 0, 0(, 0)?\)|transparent|#123456/i,pt={},dt=["Webkit","O","Moz","ms"];if(!lt)var gt=function(e,t,n){return"<qtipvml:"+e+' xmlns="urn:schemas-microsoft.com:vml" class="qtip-vml" '+(t||"")+' style="behavior: url(#default#VML); '+(n||"")+'" />'};else var yt=e.devicePixelRatio||1,bt=function(){var e=t.createElement("canvas").getContext("2d");return e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||1}(),wt=yt/bt;r.extend(Et.prototype,{init:function(e){var t,n;n=this.element=e.elements.tip=r("<div />",{"class":T+"-tip"}).prependTo(e.tooltip);if(lt){t=r("<canvas />").appendTo(this.element)[0].getContext("2d");t.lineJoin="miter";t.miterLimit=1e5;t.save()}else{t=gt("shape",'coordorigin="0,0"',"position:absolute;");this.element.html(t+t);e._bind(r("*",n).add(n),["click","mousedown"],function(e){e.stopPropagation()},this._ns)}e._bind(e.tooltip,"tooltipmove",this.reposition,this._ns,this);this.create()},_swapDimensions:function(){this.size[0]=this.options.height;this.size[1]=this.options.width},_resetDimensions:function(){this.size[0]=this.options.width;this.size[1]=this.options.height},_useTitle:function(e){var t=this.qtip.elements.titlebar;return t&&(e.y===c||e.y===v&&this.element.position().top+this.size[1]/2+this.options.offset<t.outerHeight(i))},_parseCorner:function(e){var t=this.qtip.options.position.my;if(e===s||t===s)e=s;else if(e===i)e=new E(t.string());else if(!e.string){e=new E(e);e.fixed=i}return e},_parseWidth:function(e,t,n){var r=this.qtip.elements,i=st+ht(t)+"Width";return(n?mt(n,i):mt(r.content,i)||mt(this._useTitle(e)&&r.titlebar||r.content,i)||mt(r.tooltip,i))||0},_parseRadius:function(e){var t=this.qtip.elements,n=st+ht(e.y)+ht(e.x)+"Radius";return F.ie<9?0:mt(this._useTitle(e)&&t.titlebar||t.content,n)||mt(t.tooltip,n)||0},_invalidColour:function(e,t,n){var r=e.css(t);return!r||n&&r===e.css(n)||ct.test(r)?s:r},_parseColours:function(e){var t=this.qtip.elements,n=this.element.css("cssText",""),i=st+ht(e[e.precedance])+ht(ot),s=this._useTitle(e)&&t.titlebar||t.content,o=this._invalidColour,u=[];u[0]=o(n,ut)||o(s,ut)||o(t.content,ut)||o(t.tooltip,ut)||n.css(ut);u[1]=o(n,i,ot)||o(s,i,ot)||o(t.content,i,ot)||o(t.tooltip,i,ot)||t.tooltip.css(i);r("*",n).add(n).css("cssText",ut+":"+at+ft+";"+st+":0"+ft+";");return u},_calculateSize:function(e){var t=e.precedance===a,n=this.options.width,r=this.options.height,i=e.abbrev()==="c",s=(t?n:r)*(i?.5:1),o=Math.pow,u=Math.round,f,l,c,h=Math.sqrt(o(s,2)+o(r,2)),p=[this.border/s*h,this.border/r*h];p[2]=Math.sqrt(o(p[0],2)-o(this.border,2));p[3]=Math.sqrt(o(p[1],2)-o(this.border,2));f=h+p[2]+p[3]+(i?0:p[0]);l=f/h;c=[u(l*n),u(l*r)];return t?c:c.reverse()},_calculateTip:function(e,t,n){n=n||1;t=t||this.size;var r=t[0]*n,i=t[1]*n,s=Math.ceil(r/2),o=Math.ceil(i/2),u={br:[0,0,r,i,r,0],bl:[0,0,r,0,0,i],tr:[0,i,r,0,r,i],tl:[0,0,0,i,r,i],tc:[0,i,s,0,r,i],bc:[0,0,r,0,s,i],rc:[0,0,r,o,0,i],lc:[r,0,r,i,0,o]};u.lt=u.br;u.rt=u.bl;u.lb=u.tr;u.rb=u.tl;return u[e.abbrev()]},_drawCoords:function(e,t){e.beginPath();e.moveTo(t[0],t[1]);e.lineTo(t[2],t[3]);e.lineTo(t[4],t[5]);e.closePath()},create:function(){var e=this.corner=(lt||F.ie)&&this._parseCorner(this.options.corner);if(this.enabled=!!this.corner&&this.corner.abbrev()!=="c"){this.qtip.cache.corner=e.clone();this.update()}this.element.toggle(this.enabled);return this.corner},update:function(t,n){if(!this.enabled)return this;var o=this.qtip.elements,m=this.element,g=m.children(),y=this.options,b=this.size,w=y.mimic,S=Math.round,x,T,N,C,k,L,A,O,M;t||(t=this.qtip.cache.corner||this.corner);if(w===s)w=t;else{w=new E(w);w.precedance=t.precedance;w.x==="inherit"?w.x=t.x:w.y==="inherit"?w.y=t.y:w.x===w.y&&(w[t.precedance]=t[t.precedance])}T=w.precedance;t.precedance===u?this._swapDimensions():this._resetDimensions();x=this.color=this._parseColours(t);if(x[1]!==at){O=this.border=this._parseWidth(t,t[t.precedance]);y.border&&O<1&&!ct.test(x[1])&&(x[0]=x[1]);this.border=O=y.border!==i?y.border:O}else this.border=O=0;A=this.size=this._calculateSize(t);m.css({width:A[0],height:A[1],lineHeight:A[1]+"px"});t.precedance===a?L=[S(w.x===h?O:w.x===d?A[0]-b[0]-O:(A[0]-b[0])/2),S(w.y===c?A[1]-b[1]:0)]:L=[S(w.x===h?A[0]-b[0]:0),S(w.y===c?O:w.y===p?A[1]-b[1]-O:(A[1]-b[1])/2)];if(lt){N=g[0].getContext("2d");N.restore();N.save();N.clearRect(0,0,6e3,6e3);C=this._calculateTip(w,b,wt);k=this._calculateTip(w,this.size,wt);g.attr(f,A[0]*wt).attr(l,A[1]*wt);g.css(f,A[0]).css(l,A[1]);this._drawCoords(N,k);N.fillStyle=x[1];N.fill();N.translate(L[0]*wt,L[1]*wt);this._drawCoords(N,C);N.fillStyle=x[0];N.fill()}else{C=this._calculateTip(w);C="m"+C[0]+","+C[1]+" l"+C[2]+","+C[3]+" "+C[4]+","+C[5]+" xe";L[2]=O&&/^(r|b)/i.test(t.string())?F.ie===8?2:1:0;g.css({coordsize:A[0]+O+" "+(A[1]+O),antialias:""+(w.string().indexOf(v)>-1),left:L[0]-L[2]*Number(T===u),top:L[1]-L[2]*Number(T===a),width:A[0]+O,height:A[1]+O}).each(function(e){var t=r(this);t[t.prop?"prop":"attr"]({coordsize:A[0]+O+" "+(A[1]+O),path:C,fillcolor:x[0],filled:!!e,stroked:!e}).toggle(!!O||!!e);!e&&t.html(gt("stroke",'weight="'+O*2+'px" color="'+x[1]+'" miterlimit="1000" joinstyle="miter"'))})}e.opera&&setTimeout(function(){o.tip.css({display:"inline-block",visibility:"visible"})},1);n!==s&&this.calculate(t,A)},calculate:function(e,t){if(!this.enabled)return s;var n=this,i=this.qtip.elements,o=this.element,f=this.options.offset,l=i.tooltip.hasClass("ui-widget"),p={},d,m;e=e||this.corner;d=e.precedance;t=t||this._calculateSize(e);m=[e.x,e.y];d===u&&m.reverse();r.each(m,function(r,s){var o,u,l;if(s===v){o=d===a?h:c;p[o]="50%";p[it+"-"+o]=-Math.round(t[d===a?0:1]/2)+f}else{o=n._parseWidth
13
+ (e,s,i.tooltip);u=n._parseWidth(e,s,i.content);l=n._parseRadius(e);p[s]=Math.max(-n.border,r?u:f+(l>o?l:-o))}});p[e[d]]-=t[d===u?0:1];o.css({margin:"",top:"",bottom:"",left:"",right:""}).css(p);return p},reposition:function(e,t,r,o){function N(e,t,n,r,i){e===y&&l.precedance===t&&m[r]&&l[n]!==v?l.precedance=l.precedance===u?a:u:e!==y&&m[r]&&(l[t]=l[t]===v?m[r]>0?r:i:l[t]===r?i:r)}function C(e,t,i){if(l[e]===v)x[it+"-"+t]=E[e]=S[it+"-"+t]-m[t];else{T=S[i]!==n?[m[t],-S[t]]:[-m[t],S[t]];if((E[e]=Math.max(T[0],T[1]))>T[0]){r[t]-=m[t];E[t]=s}x[S[i]!==n?i:t]=E[e]}}if(!this.enabled)return;var f=t.cache,l=this.corner.clone(),m=r.adjusted,g=t.options.position.adjust.method.split(" "),b=g[0],w=g[1]||g[0],E={left:s,top:s,x:0,y:0},S,x={},T;if(this.corner.fixed!==i){N(b,u,a,h,d);N(w,a,u,c,p);(l.string()!==f.corner.string()||f.cornerTop!==m.top||f.cornerLeft!==m.left)&&this.update(l,s)}S=this.calculate(l);S.right!==n&&(S.left=-S.right);S.bottom!==n&&(S.top=-S.bottom);S.user=this.offset;(E.left=b===y&&!!m.left)&&C(u,h,d);(E.top=w===y&&!!m.top)&&C(a,c,p);this.element.css(x).toggle(!(E.x&&E.y||l.x===v&&E.y||l.y===v&&E.x));r.left-=S.left.charAt?S.user:b!==y||E.top||!E.left&&!E.top?S.left+this.border:0;r.top-=S.top.charAt?S.user:w!==y||E.left||!E.left&&!E.top?S.top+this.border:0;f.cornerLeft=m.left;f.cornerTop=m.top;f.corner=l.clone()},destroy:function(){this.qtip._unbind(this.qtip.tooltip,this._ns);this.qtip.elements.tip&&this.qtip.elements.tip.find("*").remove().end().remove()}});nt=x.tip=function(e){return new Et(e,e.options.style.tip)};nt.initialize="render";nt.sanitize=function(e){if(e.style&&"tip"in e.style){var t=e.style.tip;typeof t!="object"&&(t=e.style.tip={corner:t});/string|boolean/i.test(typeof t.corner)||(t.corner=i)}};S.tip={"^position.my|style.tip.(corner|mimic|border)quot;:function(){this.create();this.qtip.reposition()},"^style.tip.(height|width)quot;:function(e){this.size=[e.width,e.height];this.update();this.qtip.reposition()},"^content.title|style.(classes|widget)quot;:function(){this.update()}};r.extend(i,b.defaults,{style:{tip:{corner:i,mimic:s,width:6,height:6,border:i,offset:0}}})})})(window,document);
assets/js/jquery.qtip.min.min.js ADDED
@@ -0,0 +1,2 @@
1
+ /* qTip2 v2.2.1 | Plugins: tips | Styles: core css3 | qtip2.com | Licensed MIT | Mon Sep 08 2014 17:43:49 */!function(e,t,n){!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):jQuery&&!jQuery.fn.qtip&&e(jQuery)}(function(r){"use strict";function i(e,t,n,i){this.id=n,this.target=e,this.tooltip=_,this.elements={target:e},this._id=W+"-"+n,this.timers={img:{}},this.options=t,this.plugins={},this.cache={event:{},target:r(),disabled:M,attr:i,onTooltip:M,lastClass:""},this.rendered=this.destroyed=this.disabled=this.waiting=this.hiddenDuringWait=this.positioning=this.triggering=M}function s(e){return e===_||"object"!==r.type(e)}function o(e){return!(r.isFunction(e)||e&&e.attr||e.length||"object"===r.type(e)&&(e.jquery||e.then))}function u(e){var t,n,i,u;return s(e)?M:(s(e.metadata)&&(e.metadata={type:e.metadata}),"content"in e&&(t=e.content,s(t)||t.jquery||t.done?t=e.content={text:n=o(t)?M:t}:n=t.text,"ajax"in t&&(i=t.ajax,u=i&&i.once!==M,delete t.ajax,t.text=function(e,t){var s=n||r(this).attr(t.options.content.attr)||"Loading...",o=r.ajax(r.extend({},i,{context:t})).then(i.success,_,i.error).then(function(e){return e&&u&&t.set("content.text",e),e},function(e,n,r){t.destroyed||0===e.status||t.set("content.text",n+": "+r)});return u?s:(t.set("content.text",s),o)}),"title"in t&&(r.isPlainObject(t.title)&&(t.button=t.title.button,t.title=t.title.text),o(t.title||M)&&(t.title=M))),"position"in e&&s(e.position)&&(e.position={my:e.position,at:e.position}),"show"in e&&s(e.show)&&(e.show=e.show.jquery?{target:e.show}:e.show===O?{ready:O}:{event:e.show}),"hide"in e&&s(e.hide)&&(e.hide=e.hide.jquery?{target:e.hide}:{event:e.hide}),"style"in e&&s(e.style)&&(e.style={classes:e.style}),r.each(z,function(){this.sanitize&&this.sanitize(e)}),e)}function f(e,t){for(var n,r=0,i=e,s=t.split(".");i=i[s[r++]];)r<s.length&&(n=i);return[n||e,s.pop()]}function l(e,t){var n,r,i;for(n in this.checks)for(r in this.checks[n])(i=(new RegExp(r,"i")).exec(e))&&(t.push(i),("builtin"===n||this.plugins[n])&&this.checks[n][r].apply(this.plugins[n]||this,t))}function h(e){return $.concat("").join(e?"-"+e+" ":" ")}function p(e,t){return t>0?setTimeout(r.proxy(e,this),t):void e.call(this)}function d(e){this.tooltip.hasClass(et)||(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this.timers.show=p.call(this,function(){this.toggle(O,e)},this.options.show.delay))}function v(e){if(!this.tooltip.hasClass(et)&&!this.destroyed){var t=r(e.relatedTarget),n=t.closest(J)[0]===this.tooltip[0],i=t[0]===this.options.show.target[0];if(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this!==t[0]&&"mouse"===this.options.position.target&&n||this.options.hide.fixed&&/mouse(out|leave|move)/.test(e.type)&&(n||i))try{e.preventDefault(),e.stopImmediatePropagation()}catch(s){}else this.timers.hide=p.call(this,function(){this.toggle(M,e)},this.options.hide.delay,this)}}function m(e){!this.tooltip.hasClass(et)&&this.options.hide.inactive&&(clearTimeout(this.timers.inactive),this.timers.inactive=p.call(this,function(){this.hide(e)},this.options.hide.inactive))}function g(e){this.rendered&&this.tooltip[0].offsetWidth>0&&this.reposition(e)}function y(e,n,i){r(t.body).delegate(e,(n.split?n:n.join("."+W+" "))+"."+W,function(){var e=N.api[r.attr(this,V)];e&&!e.disabled&&i.apply(e,arguments)})}function w(e,n,s){var o,a,f,l,c,h=r(t.body),p=e[0]===t?h:e,d=e.metadata?e.metadata(s.metadata):_,v="html5"===s.metadata.type&&d?d[s.metadata.name]:_,m=e.data(s.metadata.name||"qtipopts");try{m="string"==typeof m?r.parseJSON(m):m}catch(g){}if(l=r.extend(O,{},N.defaults,s,"object"==typeof m?u(m):_,u(v||d)),a=l.position,l.id=n,"boolean"==typeof l.content.text){if(f=e.attr(l.content.attr),l.content.attr===M||!f)return M;l.content.text=f}if(a.container.length||(a.container=h),a.target===M&&(a.target=p),l.show.target===M&&(l.show.target=p),l.show.solo===O&&(l.show.solo=a.container.closest("body")),l.hide.target===M&&(l.hide.target=p),l.position.viewport===O&&(l.position.viewport=a.container),a.container=a.container.eq(0),a.at=new k(a.at,O),a.my=new k(a.my),e.data(W))if(l.overwrite)e.qtip("destroy",!0);else if(l.overwrite===M)return M;return e.attr(X,n),l.suppress&&(c=e.attr("title"))&&e.removeAttr("title").attr(nt,c).attr("title",""),o=new i(e,l,n,!!f),e.data(W,o),o}function E(e){return e.charAt(0).toUpperCase()+e.slice(1)}function S(e,t){var r,i,s=t.charAt(0).toUpperCase()+t.slice(1),o=(t+" "+gt.join(s+" ")+s).split(" "),u=0;if(mt[t])return e.css(mt[t]);for(;r=o[u++];)if((i=e.css(r))!==n)return mt[t]=r,i}function x(e,t){return Math.ceil(parseFloat(S(e,t)))}function T(e,t){this._ns="tip",this.options=t,this.offset=t.offset,this.size=[t.width,t.height],this.init(this.qtip=e)}var N,C,k,L,A,O=!0,M=!1,_=null,D="x",P="y",H="width",B="height",j="top",F="left",I="bottom",q="right",R="center",U="shift",z={},W="qtip",X="data-hasqtip",V="data-qtip-id",$=["ui-widget","ui-tooltip"],J="."+W,K="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),Q=W+"-fixed",G=W+"-default",Y=W+"-focus",Z=W+"-hover",et=W+"-disabled",tt="_replacedByqTip",nt="oldtitle",rt={ie:function(){for(var e=4,n=t.createElement("div");(n.innerHTML="<!--[if gt IE "+e+"]><i></i><![endif]-->")&&n.getElementsByTagName("i")[0];e+=1);return e>4?e:0/0}(),iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,5})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))||M};C=i.prototype,C._when=function(e){return r.when.apply(r,e)},C.render=function(e){if(this.rendered||this.destroyed)return this;var t,n=this,i=this.options,s=this.cache,o=this.elements,u=i.content.text,a=i.content.title,f=i.content.button,l=i.position,c=("."+this._id+" ",[]);return r.attr(this.target[0],"aria-describedby",this._id),s.posClass=this._createPosClass((this.position={my:l.my,at:l.at}).my),this.tooltip=o.tooltip=t=r("<div/>",{id:this._id,"class":[W,G,i.style.classes,s.posClass].join(" "),width:i.style.width||"",height:i.style.height||"",tracking:"mouse"===l.target&&l.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":M,"aria-describedby":this._id+"-content","aria-hidden":O}).toggleClass(et,this.disabled).attr(V,this.id).data(W,this).appendTo(l.container).append(o.content=r("<div />",{"class":W+"-content",id:this._id+"-content","aria-atomic":O})),this.rendered=-1,this.positioning=O,a&&(this._createTitle(),r.isFunction(a)||c.push(this._updateTitle(a,M))),f&&this._createButton(),r.isFunction(u)||c.push(this._updateContent(u,M)),this.rendered=O,this._setWidget(),r.each(z,function(e){var t;"render"===this.initialize&&(t=this(n))&&(n.plugins[e]=t)}),this._unassignEvents(),this._assignEvents(),this._when(c).then(function(){n._trigger("render"),n.positioning=M,n.hiddenDuringWait||!i.show.ready&&!e||n.toggle(O,s.event,M),n.hiddenDuringWait=M}),N.api[this.id]=this,this},C.destroy=function(e){function t(){if(!this.destroyed){this.destroyed=O;var e,t=this.target,n=t.attr(nt);this.rendered&&this.tooltip.stop(1,0).find("*").remove().end().remove(),r.each(this.plugins,function(){this.destroy&&this.destroy()});for(e in this.timers)clearTimeout(this.timers[e]);t.removeData(W).removeAttr(V).removeAttr(X).removeAttr("aria-describedby"),this.options.suppress&&n&&t.attr("title",n).removeAttr(nt),this._unassignEvents(),this.options=this.elements=this.cache=this.timers=this.plugins=this.mouse=_,delete N.api[this.id]}}return this.destroyed?this.target:(e===O&&"hide"!==this.triggering||!this.rendered?t.call(this):(this.tooltip.one("tooltiphidden",r.proxy(t,this)),!this.triggering&&this.hide()),this.target)},L=C.checks={builtin:{"^idquot;:function(e,t,n,i){var s=n===O?N.nextid:n,o=W+"-"+s;s!==M&&s.length>0&&!r("#"+o).length?(this._id=o,this.rendered&&(this.tooltip[0].id=this._id,this.elements.content[0].id=this._id+"-content",this.elements.title[0].id=this._id+"-title")):e[t]=i},"^prerender":function(e,t,n){n&&!this.rendered&&this.render(this.options.show.ready)},"^content.textquot;:function(e,t,n){this._updateContent(n)},"^content.attrquot;:function(e,t,n,r){this.options.content.text===this.target.attr(r)&&this._updateContent(this.target.attr(n))},"^content.titlequot;:function(e,t,n){return n?(n&&!this.elements.title&&this._createTitle(),void this._updateTitle(n)):this._removeTitle()},"^content.buttonquot;:function(e,t,n){this._updateButton(n)},"^content.title.(text|button)quot;:function(e,t,n){this.set("content."+t,n)},"^position.(my|at)quot;:function(e,t,n){"string"==typeof n&&(this.position[t]=e[t]=new k(n,"at"===t))},"^position.containerquot;:function(e,t,n){this.rendered&&this.tooltip.appendTo(n)},"^show.readyquot;:function(e,t,n){n&&(!this.rendered&&this.render(O)||this.toggle(O))},"^style.classesquot;:function(e,t,n,r){this.rendered&&this.tooltip.removeClass(r).addClass(n)},"^style.(width|height)":function(e,t,n){this.rendered&&this.tooltip.css(t,n)},"^style.widget|content.title":function(){this.rendered&&this._setWidget()},"^style.def":function(e,t,n){this.rendered&&this.tooltip.toggleClass(G,!!n)},"^events.(render|show|move|hide|focus|blur)quot;:function(e,t,n){this.rendered&&this.tooltip[(r.isFunction(n)?"":"un")+"bind"]("tooltip"+t,n)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){if(this.rendered){var e=this.options.position;this.tooltip.attr("tracking","mouse"===e.target&&e.adjust.mouse),this._unassignEvents(),this._assignEvents()}}}},C.get=function(e){if(this.destroyed)return this;var t=f(this.options,e.toLowerCase()),n=t[0][t[1]];return n.precedance?n.string():n};var it=/^position\.(my|at|adjust|target|container|viewport)|style|content|show\.ready/i,st=/^prerender|show\.ready/i;C.set=function(e,t){if(this.destroyed)return this;var n,i=this.rendered,s=M,o=this.options;this.checks;return"string"==typeof e?(n=e,e={},e[n]=t):e=r.extend({},e),r.each(e,function(t,n){if(i&&st.test(t))return void delete e[t];var u,l=f(o,t.toLowerCase());u=l[0][l[1]],l[0][l[1]]=n&&n.nodeType?r(n):n,s=it.test(t)||s,e[t]=[l[0],l[1],n,u]}),u(o),this.positioning=O,r.each(e,r.proxy(l,this)),this.positioning=M,this.rendered&&this.tooltip[0].offsetWidth>0&&s&&this.reposition("mouse"===o.position.target?_:this.cache.event),this},C._update=function(e,t){var n=this,i=this.cache;return this.rendered&&e?(r.isFunction(e)&&(e=e.call(this.elements.target,i.event,this)||""),r.isFunction(e.then)?(i.waiting=O,e.then(function(e){return i.waiting=M,n._update(e,t)},_,function(e){return n._update(e,t)})):e===M||!e&&""!==e?M:(e.jquery&&e.length>0?t.empty().append(e.css({display:"block",visibility:"visible"})):t.html(e),this._waitForContent(t).then(function(e){n.rendered&&n.tooltip[0].offsetWidth>0&&n.reposition(i.event,!e.length)}))):M},C._waitForContent=function(e){var t=this.cache;return t.waiting=O,(r.fn.imagesLoaded?e.imagesLoaded():r.Deferred().resolve([])).done(function(){t.waiting=M}).promise()},C._updateContent=function(e,t){this._update(e,this.elements.content,t)},C._updateTitle=function(e,t){this._update(e,this.elements.title,t)===M&&this._removeTitle(M)},C._createTitle=function(){var e=this.elements,t=this._id+"-title";e.titlebar&&this._removeTitle(),e.titlebar=r("<div />",{"class":W+"-titlebar "+(this.options.style.widget?h("header"):"")}).append(e.title=r("<div />",{id:t,"class":W+"-title","aria-atomic":O})).insertBefore(e.content).delegate(".qtip-close","mousedown keydown mouseup keyup mouseout",function(e){r(this).toggleClass("ui-state-active ui-state-focus","down"===e.type.substr(-4))}).delegate(".qtip-close","mouseover mouseout",function(e){r(this).toggleClass("ui-state-hover","mouseover"===e.type)}),this.options.content.button&&this._createButton()},C._removeTitle=function(e){var t=this.elements;t.title&&(t.titlebar.remove(),t.titlebar=t.title=t.button=_,e!==M&&this.reposition())},C._createPosClass=function(e){return W+"-pos-"+(e||this.options.position.my).abbrev()},C.reposition=function(n,i){if(!this.rendered||this.positioning||this.destroyed)return this;this.positioning=O;var s,o,u,f,l=this.cache,c=this.tooltip,h=this.options.position,p=h.target,d=h.my,v=h.at,m=h.viewport,g=h.container,y=h.adjust,w=y.method.split(" "),E=c.outerWidth(M),S=c.outerHeight(M),x=0,T=0,N=c.css("position"),C={left:0,top:0},k=c[0].offsetWidth>0,L=n&&"scroll"===n.type,A=r(e),_=g[0].ownerDocument,D=this.mouse;if(r.isArray(p)&&2===p.length)v={x:F,y:j},C={left:p[0],top:p[1]};else if("mouse"===p)v={x:F,y:j},(!y.mouse||this.options.hide.distance)&&l.origin&&l.origin.pageX?n=l.origin:!n||n&&("resize"===n.type||"scroll"===n.type)?n=l.event:D&&D.pageX&&(n=D),"static"!==N&&(C=g.offset()),_.body.offsetWidth!==(e.innerWidth||_.documentElement.clientWidth)&&(o=r(t.body).offset()),C={left:n.pageX-C.left+(o&&o.left||0),top:n.pageY-C.top+(o&&o.top||0)},y.mouse&&L&&D&&(C.left-=(D.scrollX||0)-A.scrollLeft(),C.top-=(D.scrollY||0)-A.scrollTop());else{if("event"===p?n&&n.target&&"scroll"!==n.type&&"resize"!==n.type?l.target=r(n.target):n.target||(l.target=this.elements.target):"event"!==p&&(l.target=r(p.jquery?p:this.elements.target)),p=l.target,p=r(p).eq(0),0===p.length)return this;p[0]===t||p[0]===e?(x=rt.iOS?e.innerWidth:p.width(),T=rt.iOS?e.innerHeight:p.height(),p[0]===e&&(C={top:(m||p).scrollTop(),left:(m||p).scrollLeft()})):z.imagemap&&p.is("area")?s=z.imagemap(this,p,v,z.viewport?w:M):z.svg&&p&&p[0].ownerSVGElement?s=z.svg(this,p,v,z.viewport?w:M):(x=p.outerWidth(M),T=p.outerHeight(M),C=p.offset()),s&&(x=s.width,T=s.height,o=s.offset,C=s.position),C=this.reposition.offset(p,C,g),(rt.iOS>3.1&&rt.iOS<4.1||rt.iOS>=4.3&&rt.iOS<4.33||!rt.iOS&&"fixed"===N)&&(C.left-=A.scrollLeft(),C.top-=A.scrollTop()),(!s||s&&s.adjustable!==M)&&(C.left+=v.x===q?x:v.x===R?x/2:0,C.top+=v.y===I?T:v.y===R?T/2:0)}return C.left+=y.x+(d.x===q?-E:d.x===R?-E/2:0),C.top+=y.y+(d.y===I?-S:d.y===R?-S/2:0),z.viewport?(u=C.adjusted=z.viewport(this,C,h,x,T,E,S),o&&u.left&&(C.left+=o.left),o&&u.top&&(C.top+=o.top),u.my&&(this.position.my=u.my)):C.adjusted={left:0,top:0},l.posClass!==(f=this._createPosClass(this.position.my))&&c.removeClass(l.posClass).addClass(l.posClass=f),this._trigger("move",[C,m.elem||m],n)?(delete C.adjusted,i===M||!k||isNaN(C.left)||isNaN(C.top)||"mouse"===p||!r.isFunction(h.effect)?c.css(C):r.isFunction(h.effect)&&(h.effect.call(c,this,r.extend({},C)),c.queue(function(e){r(this).css({opacity:"",height:""}),rt.ie&&this.style.removeAttribute("filter"),e()})),this.positioning=M,this):this},C.reposition.offset=function(e,n,i){function s(e,t){n.left+=t*e.scrollLeft(),n.top+=t*e.scrollTop()}if(!i[0])return n;var o,u,a,f,l=r(e[0].ownerDocument),c=!!rt.ie&&"CSS1Compat"!==t.compatMode,h=i[0];do"static"!==(u=r.css(h,"position"))&&("fixed"===u?(a=h.getBoundingClientRect(),s(l,-1)):(a=r(h).position(),a.left+=parseFloat(r.css(h,"borderLeftWidth"))||0,a.top+=parseFloat(r.css(h,"borderTopWidth"))||0),n.left-=a.left+(parseFloat(r.css(h,"marginLeft"))||0),n.top-=a.top+(parseFloat(r.css(h,"marginTop"))||0),o||"hidden"===(f=r.css(h,"overflow"))||"visible"===f||(o=r(h)));while(h=h.offsetParent);return o&&(o[0]!==l[0]||c)&&s(o,1),n};var ot=(k=C.reposition.Corner=function(e,t){e=(""+e).replace(/([A-Z])/," $1").replace(/middle/gi,R).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(),this.forceY=!!t;var n=e.charAt(0);this.precedance="t"===n||"b"===n?P:D}).prototype;ot.invert=function(e,t){this[e]=this[e]===F?q:this[e]===q?F:t||this[e]},ot.string=function(e){var t=this.x,n=this.y,r=t!==n?"center"===t||"center"!==n&&(this.precedance===P||this.forceY)?[n,t]:[t,n]:[t];return e!==!1?r.join(" "):r},ot.abbrev=function(){var e=this.string(!1);return e[0].charAt(0)+(e[1]&&e[1].charAt(0)||"")},ot.clone=function(){return new k(this.string(),this.forceY)},C.toggle=function(e,n){var i=this.cache,s=this.options,o=this.tooltip;if(n){if(/over|enter/.test(n.type)&&i.event&&/out|leave/.test(i.event.type)&&s.show.target.add(n.target).length===s.show.target.length&&o.has(n.relatedTarget).length)return this;i.event=r.event.fix(n)}if(this.waiting&&!e&&(this.hiddenDuringWait=O),!this.rendered)return e?this.render(1):this;if(this.destroyed||this.disabled)return this;var u,a,f,l=e?"show":"hide",c=this.options[l],h=(this.options[e?"hide":"show"],this.options.position),p=this.options.content,d=this.tooltip.css("width"),v=this.tooltip.is(":visible"),m=e||1===c.target.length,g=!n||c.target.length<2||i.target[0]===n.target;return(typeof e).search("boolean|number")&&(e=!v),u=!o.is(":animated")&&v===e&&g,a=u?_:!!this._trigger(l,[90]),this.destroyed?this:(a!==M&&e&&this.focus(n),!a||u?this:(r.attr(o[0],"aria-hidden",!e),e?(this.mouse&&(i.origin=r.event.fix(this.mouse)),r.isFunction(p.text)&&this._updateContent(p.text,M),r.isFunction(p.title)&&this._updateTitle(p.title,M),!A&&"mouse"===h.target&&h.adjust.mouse&&(r(t).bind("mousemove."+W,this._storeMouse),A=O),d||o.css("width",o.outerWidth(M)),this.reposition(n,arguments[2]),d||o.css("width",""),c.solo&&("string"==typeof c.solo?r(c.solo):r(J,c.solo)).not(o).not(c.target).qtip("hide",r.Event("tooltipsolo"))):(clearTimeout(this.timers.show),delete i.origin,A&&!r(J+'[tracking="true"]:visible',c.solo).not(o).length&&(r(t).unbind("mousemove."+W),A=M),this.blur(n)),f=r.proxy(function(){e?(rt.ie&&o[0].style.removeAttribute("filter"),o.css("overflow",""),"string"==typeof c.autofocus&&r(this.options.show.autofocus,o).focus(),this.options.show.target.trigger("qtip-"+this.id+"-inactive")):o.css({display:"",visibility:"",opacity:"",left:"",top:""}),this._trigger(e?"visible":"hidden")},this),c.effect===M||m===M?(o[l](),f()):r.isFunction(c.effect)?(o.stop(1,1),c.effect.call(o,this),o.queue("fx",function(e){f(),e()})):o.fadeTo(90,e?1:0,f),e&&c.target.trigger("qtip-"+this.id+"-inactive"),this))},C.show=function(e){return this.toggle(O,e)},C.hide=function(e){return this.toggle(M,e)},C.focus=function(e){if(!this.rendered||this.destroyed)return this;var t=r(J),n=this.tooltip,i=parseInt(n[0].style.zIndex,10),s=N.zindex+t.length;return n.hasClass(Y)||this._trigger("focus",[s],e)&&(i!==s&&(t.each(function(){this.style.zIndex>i&&(this.style.zIndex=this.style.zIndex-1)}),t.filter("."+Y).qtip("blur",e)),n.addClass(Y)[0].style.zIndex=s),this},C.blur=function(e){return!this.rendered||this.destroyed?this:(this.tooltip.removeClass(Y),this._trigger("blur",[this.tooltip.css("zIndex")],e),this)},C.disable=function(e){return this.destroyed?this:("toggle"===e?e=this.rendered?!this.tooltip.hasClass(et):!this.disabled:"boolean"!=typeof e&&(e=O),this.rendered&&this.tooltip.toggleClass(et,e).attr("aria-disabled",e),this.disabled=!!e,this)},C.enable=function(){return this.disable(M)},C._createButton=function(){var e=this,t=this.elements,n=t.tooltip,i=this.options.content.button,s="string"==typeof i,o=s?i:"Close tooltip";t.button&&t.button.remove(),t.button=i.jquery?i:r("<a />",{"class":"qtip-close "+(this.options.style.widget?"":W+"-icon"),title:o,"aria-label":o}).prepend(r("<span />",{"class":"ui-icon ui-icon-close",html:"&times;"})),t.button.appendTo(t.titlebar||n).attr("role","button").click(function(t){return n.hasClass(et)||e.hide(t),M})},C._updateButton=function(e){if(!this.rendered)return M;var t=this.elements.button;e?this._createButton():t.remove()},C._setWidget=function(){var e=this.options.style.widget,t=this.elements,n=t.tooltip,r=n.hasClass(et);n.removeClass(et),et=e?"ui-state-disabled":"qtip-disabled",n.toggleClass(et,r),n.toggleClass("ui-helper-reset "+h(),e).toggleClass(G,this.options.style.def&&!e),t.content&&t.content.toggleClass(h("content"),e),t.titlebar&&t.titlebar.toggleClass(h("header"),e),t.button&&t.button.toggleClass(W+"-icon",!e)},C._storeMouse=function(e){return(this.mouse=r.event.fix(e)).type="mousemove",this},C._bind=function(e,t,n,i,s){if(e&&n&&t.length){var o="."+this._id+(i?"-"+i:"");return r(e).bind((t.split?t:t.join(o+" "))+o,r.proxy(n,s||this)),this}},C._unbind=function(e,t){return e&&r(e).unbind("."+this._id+(t?"-"+t:"")),this},C._trigger=function(e,t,n){var i=r.Event("tooltip"+e);return i.originalEvent=n&&r.extend({},n)||this.cache.event||_,this.triggering=e,this.tooltip.trigger(i,[this].concat(t||[])),this.triggering=M,!i.isDefaultPrevented()},C._bindEvents=function(e,t,n,i,s,o){var u=n.filter(i).add(i.filter(n)),a=[];u.length&&(r.each(t,function(t,n){var i=r.inArray(n,e);i>-1&&a.push(e.splice(i,1)[0])}),a.length&&(this._bind(u,a,function(e){var t=this.rendered?this.tooltip[0].offsetWidth>0:!1;(t?o:s).call(this,e)}),n=n.not(u),i=i.not(u))),this._bind(n,e,s),this._bind(i,t,o)},C._assignInitialEvents=function(e){function t(e){return this.disabled||this.destroyed?M:(this.cache.event=e&&r.event.fix(e),this.cache.target=e&&r(e.target),clearTimeout(this.timers.show),void (this.timers.show=p.call(this,function(){this.render("object"==typeof e||n.show.ready)},n.prerender?0:n.show.delay)))}var n=this.options,i=n.show.target,s=n.hide.target,o=n.show.event?r.trim(""+n.show.event).split(" "):[],u=n.hide.event?r.trim(""+n.hide.event).split(" "):[];this._bind(this.elements.target,["remove","removeqtip"],function(){this.destroy(!0)},"destroy"),/mouse(over|enter)/i.test(n.show.event)&&!/mouse(out|leave)/i.test(n.hide.event)&&u.push("mouseleave"),this._bind(i,"mousemove",function(e){this._storeMouse(e),this.cache.onTarget=O}),this._bindEvents(o,u,i,s,t,function(){return this.timers?void clearTimeout(this.timers.show):M}),(n.show.ready||n.prerender)&&t.call(this,e)},C._assignEvents=function(){var n=this,i=this.options,s=i.position,o=this.tooltip,u=i.show.target,f=i.hide.target,l=s.container,c=s.viewport,h=r(t),p=(r(t.body),r(e)),y=i.show.event?r.trim(""+i.show.event).split(" "):[],w=i.hide.event?r.trim(""+i.hide.event).split(" "):[];r.each(i.events,function(e,t){n._bind(o,"toggle"===e?["tooltipshow","tooltiphide"]:["tooltip"+e],t,null,o)}),/mouse(out|leave)/i.test(i.hide.event)&&"window"===i.hide.leave&&this._bind(h,["mouseout","blur"],function(e){/select|option/.test(e.target.nodeName)||e.relatedTarget||this.hide(e)}),i.hide.fixed?f=f.add(o.addClass(Q)):/mouse(over|enter)/i.test(i.show.event)&&this._bind(f,"mouseleave",function(){clearTimeout(this.timers.show)}),(""+i.hide.event).indexOf("unfocus")>-1&&this._bind(l.closest("html"),["mousedown","touchstart"],function(e){var t=r(e.target),n=this.rendered&&!this.tooltip.hasClass(et)&&this.tooltip[0].offsetWidth>0,i=t.parents(J).filter(this.tooltip[0]).length>0;t[0]===this.target[0]||t[0]===this.tooltip[0]||i||this.target.has(t[0]).length||!n||this.hide(e)}),"number"==typeof i.hide.inactive&&(this._bind(u,"qtip-"+this.id+"-inactive",m,"inactive"),this._bind(f.add(o),N.inactiveEvents,m)),this._bindEvents(y,w,u,f,d,v),this._bind(u.add(o),"mousemove",function(e){if("number"==typeof i.hide.distance){var t=this.cache.origin||{},n=this.options.hide.distance,r=Math.abs;(r(e.pageX-t.pageX)>=n||r(e.pageY-t.pageY)>=n)&&this.hide(e)}this._storeMouse(e)}),"mouse"===s.target&&s.adjust.mouse&&(i.hide.event&&this._bind(u,["mouseenter","mouseleave"],function(e){return this.cache?void (this.cache.onTarget="mouseenter"===e.type):M}),this._bind(h,"mousemove",function(e){this.rendered&&this.cache.onTarget&&!this.tooltip.hasClass(et)&&this.tooltip[0].offsetWidth>0&&this.reposition(e)})),(s.adjust.resize||c.length)&&this._bind(r.event.special.resize?c:p,"resize",g),s.adjust.scroll&&this._bind(p.add(s.container),"scroll",g)},C._unassignEvents=function(){var n=this.options,i=n.show.target,s=n.hide.target,o=r.grep([this.elements.target[0],this.rendered&&this.tooltip[0],n.position.container[0],n.position.viewport[0],n.position.container.closest("html")[0],e,t],function(e){return"object"==typeof e});i&&i.toArray&&(o=o.concat(i.toArray())),s&&s.toArray&&(o=o.concat(s.toArray())),this._unbind(o)._unbind(o,"destroy")._unbind(o,"inactive")},r(function(){y(J,["mouseenter","mouseleave"],function(e){var t="mouseenter"===e.type,n=r(e.currentTarget),i=r(e.relatedTarget||e.target),s=this.options;t?(this.focus(e),n.hasClass(Q)&&!n.hasClass(et)&&clearTimeout(this.timers.hide)):"mouse"===s.position.target&&s.position.adjust.mouse&&s.hide.event&&s.show.target&&!i.closest(s.show.target[0]).length&&this.hide(e),n.toggleClass(Z,t)}),y("["+V+"]",K,m)}),N=r.fn.qtip=function(e,t,i){var s=(""+e).toLowerCase(),o=_,a=r.makeArray(arguments).slice(1),f=a[a.length-1],l=this[0]?r.data(this[0],W):_;return!arguments.length&&l||"api"===s?l:"string"==typeof e?(this.each(function(){var e=r.data(this,W);if(!e)return O;if(f&&f.timeStamp&&(e.cache.event=f),!t||"option"!==s&&"options"!==s)e[s]&&e[s].apply(e,a);else{if(i===n&&!r.isPlainObject(t))return o=e.get(t),M;e.set(t,i)}}),o!==_?o:this):"object"!=typeof e&&arguments.length?void 0:(l=u(r.extend(O,{},e)),this.each(function(e){var t,n;return n=r.isArray(l.id)?l.id[e]:l.id,n=!n||n===M||n.length<1||N.api[n]?N.nextid++:n,t=w(r(this),n,l),t===M?O:(N.api[n]=t,r.each(z,function(){"initialize"===this.initialize&&this(t)}),void t._assignInitialEvents(f))}))},r.qtip=i,N.api={},r.each({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,nt):(s&&s.options.content.attr===i&&s.cache.attr&&s.set("content.text",t),this.attr(nt,t))}return r.fn["attr"+tt].apply(this,arguments)},clone:function(e){var t=(r([]),r.fn["clone"+tt].apply(this,arguments));return e||t.filter("["+nt+"]").attr("title",function(){return r.attr(this,nt)}).removeAttr(nt),t}},function(e,t){if(!t||r.fn[e+tt])return O;var n=r.fn[e+tt]=r.fn[e];r.fn[e]=function(){return t.apply(this,arguments)||n.apply(this,arguments)}}),r.ui||(r["cleanData"+tt]=r.cleanData,r.cleanData=function(e){for(var t,n=0;(t=r(e[n])).length;n++)if(t.attr(X))try{t.triggerHandler("removeqtip")}catch(i){}r["cleanData"+tt].apply(this,arguments)}),N.version="2.2.1",N.nextid=0,N.inactiveEvents=K,N.zindex=15e3,N.defaults={prerender:M,id:M,overwrite:O,suppress:O,content:{text:O,attr:"title",title:M,button:M},position:{my:"top left",at:"bottom right",target:M,container:M,viewport:M,adjust:{x:0,y:0,mouse:O,scroll:O,resize:O,method:"flipinvert flipinvert"},effect:function(e,t){r(this).animate(t,{duration:200,queue:M})}},show:{target:M,event:"mouseenter",effect:O,delay:90,solo:M,ready:M,autofocus:M},hide:{target:M,event:"mouseleave",effect:O,delay:0,fixed:M,inactive:M,leave:"window",distance:M},style:{classes:"",widget:M,width:M,height:M,def:O},events:{render:_,move:_,show:_,hide:_,toggle:_,visible:_,hidden:_,focus:_,blur:_}};var ut,at="margin",ft="border",lt="color",ct="background-color",ht="transparent",pt=" !important",dt=!!t.createElement("canvas").getContext,vt=/rgba?\(0, 0, 0(, 0)?\)|transparent|#123456/i,mt={},gt=["Webkit","O","Moz","ms"];if(dt)var yt=e.devicePixelRatio||1,bt=function(){var e=t.createElement("canvas").getContext("2d");return e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||1}(),wt=yt/bt;else var Et=function(e,t,n){return"<qtipvml:"+e+' xmlns="urn:schemas-microsoft.com:vml" class="qtip-vml" '+(t||"")+' style="behavior: url(#default#VML); '+(n||"")+'" />'};r.extend(T.prototype,{init:function(e){var t,n;n=this.element=e.elements.tip=r("<div />",{"class":W+"-tip"}).prependTo(e.tooltip),dt?(t=r("<canvas />").appendTo(this.element)[0].getContext("2d"),t.lineJoin="miter",t.miterLimit=1e5,t.save()):(t=Et("shape",'coordorigin="0,0"',"position:absolute;"),this.element.html(t+t),e._bind(r("*",n).add(n),["click","mousedown"],function(e){e.stopPropagation()},this._ns)),e._bind(e.tooltip,"tooltipmove",this.reposition,this._ns,this),this.create()},_swapDimensions:function(){this.size[0]=this.options.height,this.size[1]=this.options.width},_resetDimensions:function(){this.size[0]=this.options.width,this.size[1]=this.options.height},_useTitle:function(e){var t=this.qtip.elements.titlebar;return t&&(e.y===j||e.y===R&&this.element.position().top+this.size[1]/2+this.options.offset<t.outerHeight(O))},_parseCorner:function(e){var t=this.qtip.options.position.my;return e===M||t===M?e=M:e===O?e=new k(t.string()):e.string||(e=new k(e),e.fixed=O),e},_parseWidth:function(e,t,n){var r=this.qtip.elements,i=ft+E(t)+"Width";return(n?x(n,i):x(r.content,i)||x(this._useTitle(e)&&r.titlebar||r.content,i)||x(r.tooltip,i))||0},_parseRadius:function(e){var t=this.qtip.elements,n=ft+E(e.y)+E(e.x)+"Radius";return rt.ie<9?0:x(this._useTitle(e)&&t.titlebar||t.content,n)||x(t.tooltip,n)||0},_invalidColour:function(e,t,n){var r=e.css(t);return!r||n&&r===e.css(n)||vt.test(r)?M:r},_parseColours:function(e){var t=this.qtip.elements,n=this.element.css("cssText",""),i=ft+E(e[e.precedance])+E(lt),s=this._useTitle(e)&&t.titlebar||t.content,o=this._invalidColour,u=[];return u[0]=o(n,ct)||o(s,ct)||o(t.content,ct)||o(t.tooltip,ct)||n.css(ct),u[1]=o(n,i,lt)||o(s,i,lt)||o(t.content,i,lt)||o(t.tooltip,i,lt)||t.tooltip.css(i),r("*",n).add(n).css("cssText",ct+":"+ht+pt+";"+ft+":0"+pt+";"),u},_calculateSize:function(e){var t,n,r,i=e.precedance===P,s=this.options.width,o=this.options.height,u="c"===e.abbrev(),a=(i?s:o)*(u?.5:1),f=Math.pow,l=Math.round,c=Math.sqrt(f(a,2)+f(o,2)),h=[this.border/a*c,this.border/o*c];return h[2]=Math.sqrt(f(h[0],2)-f(this.border,2)),h[3]=Math.sqrt(f(h[1],2)-f(this.border,2)),t=c+h[2]+h[3]+(u?0:h[0]),n=t/c,r=[l(n*s),l(n*o)],i?r:r.reverse()},_calculateTip:function(e,t,n){n=n||1,t=t||this.size;var r=t[0]*n,i=t[1]*n,s=Math.ceil(r/2),o=Math.ceil(i/2),u={br:[0,0,r,i,r,0],bl:[0,0,r,0,0,i],tr:[0,i,r,0,r,i],tl:[0,0,0,i,r,i],tc:[0,i,s,0,r,i],bc:[0,0,r,0,s,i],rc:[0,0,r,o,0,i],lc:[r,0,r,i,0,o]};return u.lt=u.br,u.rt=u.bl,u.lb=u.tr,u.rb=u.tl,u[e.abbrev()]},_drawCoords:function(e,t){e.beginPath(),e.moveTo(t[0],t[1]),e.lineTo(t[2],t[3]),e.lineTo(t[4],t[5]),e.closePath()},create:function(){var e=this.corner=(dt||rt.ie)&&this._parseCorner(this.options.corner);return(this.enabled=!!this.corner&&"c"!==this.corner.abbrev())&&(this.qtip.cache.corner=e.clone(),this.update()),this.element.toggle(this.enabled),this.corner},update:function(t,n){if(!this.enabled)return this;var i,s,o,u,f,l,c,h,p=this.qtip.elements,d=this.element,v=d.children(),m=this.options,g=this.size,y=m.mimic,b=Math.round;t||(t=this.qtip.cache.corner||this.corner),y===M?y=t:(y=new k(y),y.precedance=t.precedance,"inherit"===y.x?y.x=t.x:"inherit"===y.y?y.y=t.y:y.x===y.y&&(y[t.precedance]=t[t.precedance])),s=y.precedance,t.precedance===D?this._swapDimensions():this._resetDimensions(),i=this.color=this._parseColours(t),i[1]!==ht?(h=this.border=this._parseWidth(t,t[t.precedance]),m.border&&1>h&&!vt.test(i[1])&&(i[0]=i[1]),this.border=h=m.border!==O?m.border:h):this.border=h=0,c=this.size=this._calculateSize(t),d.css({width:c[0],height:c[1],lineHeight:c[1]+"px"}),l=t.precedance===P?[b(y.x===F?h:y.x===q?c[0]-g[0]-h:(c[0]-g[0])/2),b(y.y===j?c[1]-g[1]:0)]:[b(y.x===F?c[0]-g[0]:0),b(y.y===j?h:y.y===I?c[1]-g[1]-h:(c[1]-g[1])/2)],dt?(o=v[0].getContext("2d"),o.restore(),o.save(),o.clearRect(0,0,6e3,6e3),u=this._calculateTip(y,g,wt),f=this._calculateTip(y,this.size,wt),v.attr(H,c[0]*wt).attr(B,c[1]*wt),v.css(H,c[0]).css(B,c[1]),this._drawCoords(o,f),o.fillStyle=i[1],o.fill(),o.translate(l[0]*wt,l[1]*wt),this._drawCoords(o,u),o.fillStyle=i[0],o.fill()):(u=this._calculateTip(y),u="m"+u[0]+","+u[1]+" l"+u[2]+","+u[3]+" "+u[4]+","+u[5]+" xe",l[2]=h&&/^(r|b)/i.test(t.string())?8===rt.ie?2:1:0,v.css({coordsize:c[0]+h+" "+(c[1]+h),antialias:""+(y.string().indexOf(R)>-1),left:l[0]-l[2]*Number(s===D),top:l[1]-l[2]*Number(s===P),width:c[0]+h,height:c[1]+h}).each(function(e){var t=r(this);t[t.prop?"prop":"attr"]({coordsize:c[0]+h+" "+(c[1]+h),path:u,fillcolor:i[0],filled:!!e,stroked:!e}).toggle(!!h||!!e),!e&&t.html(Et("stroke",'weight="'+2*h+'px" color="'+i[1]+'" miterlimit="1000" joinstyle="miter"'))})),e.opera&&setTimeout(function(){p.tip.css({display:"inline-block",visibility:"visible"})},1),n!==M&&this.calculate(t,c)},calculate:function(e,t){if(!this.enabled)return M;var n,i,s=this,o=this.qtip.elements,u=this.element,a=this.options.offset,f=(o.tooltip.hasClass("ui-widget"),{});return e=e||this.corner,n=e.precedance,t=t||this._calculateSize(e),i=[e.x,e.y],n===D&&i.reverse(),r.each(i,function(r,i){var u,l,h;i===R?(u=n===P?F:j,f[u]="50%",f[at+"-"+u]=-Math.round(t[n===P?0:1]/2)+a):(u=s._parseWidth(e,i,o.tooltip),l=s._parseWidth(e,i,o.content),h=s._parseRadius(e),f[i]=Math.max(-s.border,r?l:a+(h>u?h:-u)))}),f[e[n]]-=t[n===D?0:1],u.css({margin:"",top:"",bottom:"",left:"",right:""}).css(f),f},reposition:function(e,t,r){function i(e,t,n,r,i){e===U&&f.precedance===t&&l[r]&&f[n]!==R?f.precedance=f.precedance===D?P:D:e!==U&&l[r]&&(f[t]=f[t]===R?l[r]>0?r:i:f[t]===r?i:r)}function s(e,t,i){f[e]===R?m[at+"-"+t]=v[e]=o[at+"-"+t]-l[t]:(u=o[i]!==n?[l[t],-o[t]]:[-l[t],o[t]],(v[e]=Math.max(u[0],u[1]))>u[0]&&(r[t]-=l[t],v[t]=M),m[o[i]!==n?i:t]=v[e])}if(this.enabled){var o,u,a=t.cache,f=this.corner
2
+ .clone(),l=r.adjusted,h=t.options.position.adjust.method.split(" "),p=h[0],d=h[1]||h[0],v={left:M,top:M,x:0,y:0},m={};this.corner.fixed!==O&&(i(p,D,P,F,q),i(d,P,D,j,I),(f.string()!==a.corner.string()||a.cornerTop!==l.top||a.cornerLeft!==l.left)&&this.update(f,M)),o=this.calculate(f),o.right!==n&&(o.left=-o.right),o.bottom!==n&&(o.top=-o.bottom),o.user=this.offset,(v.left=p===U&&!!l.left)&&s(D,F,q),(v.top=d===U&&!!l.top)&&s(P,j,I),this.element.css(m).toggle(!(v.x&&v.y||f.x===R&&v.y||f.y===R&&v.x)),r.left-=o.left.charAt?o.user:p!==U||v.top||!v.left&&!v.top?o.left+this.border:0,r.top-=o.top.charAt?o.user:d!==U||v.left||!v.left&&!v.top?o.top+this.border:0,a.cornerLeft=l.left,a.cornerTop=l.top,a.corner=f.clone()}},destroy:function(){this.qtip._unbind(this.qtip.tooltip,this._ns),this.qtip.elements.tip&&this.qtip.elements.tip.find("*").remove().end().remove()}}),ut=z.tip=function(e){return new T(e,e.options.style.tip)},ut.initialize="render",ut.sanitize=function(e){if(e.style&&"tip"in e.style){var t=e.style.tip;"object"!=typeof t&&(t=e.style.tip={corner:t}),/string|boolean/i.test(typeof t.corner)||(t.corner=O)}},L.tip={"^position.my|style.tip.(corner|mimic|border)quot;:function(){this.create(),this.qtip.reposition()},"^style.tip.(height|width)quot;:function(e){this.size=[e.width,e.height],this.update(),this.qtip.reposition()},"^content.title|style.(classes|widget)quot;:function(){this.update()}},r.extend(O,N.defaults,{style:{tip:{corner:O,mimic:M,width:6,height:6,border:O,offset:0}}})})}(window,document);
assets/less/admin-column.less CHANGED
@@ -281,17 +281,10 @@ h2.cpac-nav-tab-wrapper {
281
span {
282
cursor: pointer;
283
284
- /*background: #ccc;
285
- border-radius: 2px;
286
- padding: 0 4px;
287
- color: #fff;
288
- display: inline-block;
289
- height: 15px;
290
- line-height: 15px;
291
-
292
- &.on {
293
- background: #1e8cbe;
294
- }*/
295
}
296
}
297
}
@@ -378,6 +371,15 @@ h2.cpac-nav-tab-wrapper {
378
select,
379
input[type=text] {
380
width: 99.95%; // excl padding
381
}
382
383
select optgroup:nth-child(2n) {
281
span {
282
cursor: pointer;
283
284
+ &.width {
285
+ margin-right: 5px;
286
+ cursor: auto;
287
+ }
288
}
289
}
290
}
371
select,
372
input[type=text] {
373
width: 99.95%; // excl padding
374
+
375
+ &.small {
376
+ width: 100px;
377
+ }
378
+ }
379
+
380
+ span.suffix {
381
+ line-height: 40px;
382
+ color: #808080;
383
}
384
385
select optgroup:nth-child(2n) {
classes/addons.php CHANGED
@@ -107,7 +107,7 @@ class CPAC_Addons {
107
public function get_addon_groups() {
108
109
$addon_groups = array(
110
- 'integration' => __( 'Third party plugin integration', 'cpac' )
111
);
112
113
/**
107
public function get_addon_groups() {
108
109
$addon_groups = array(
110
+ 'integration' => __( 'Plugins', 'cpac' )
111
);
112
113
/**
classes/column.php CHANGED
@@ -86,6 +86,7 @@ class CPAC_Column {
86
}
87
88
/**
89
* Determine whether this column type should be available
90
*
91
* @since 2.2
@@ -97,6 +98,14 @@ class CPAC_Column {
97
return true;
98
}
99
100
/**
101
* An object copy (clone) is created for creating multiple column instances.
102
*
@@ -159,15 +168,19 @@ class CPAC_Column {
159
*
160
* @since 2.2
161
* @param array $default_options Default column options
162
- * @param CPAC_Column $column_instance Column class instance
163
*/
164
- $default_options = apply_filters( 'cac/column/default_options', $default_options, $this );
165
166
foreach ( $default_options as $option => $value ) {
167
$this->options[ $option ] = $value;
168
}
169
}
170
171
public function after_setup() {
172
173
// Column name defaults to column type
@@ -184,9 +197,9 @@ class CPAC_Column {
184
*
185
* @since 2.0
186
* @param array $properties Column properties
187
- * @param CPAC_Column $column_instance Column class instance
188
*/
189
- $this->properties = apply_filters( 'cac/column/properties', $this->properties, $this );
190
191
/**
192
* Filter the properties of a column type for a specific storage model
@@ -195,7 +208,7 @@ class CPAC_Column {
195
* @since 2.0
196
* @see Filter cac/column/properties
197
*/
198
- $this->properties = apply_filters( "cac/column/properties/storage_key={$this->storage_model->key}", $this->properties, $this );
199
200
// Column label defaults to column type label
201
if ( ! isset( $this->options['label'] ) ) {
@@ -272,16 +285,47 @@ class CPAC_Column {
272
}
273
274
/**
275
- * @since 3.2.1
276
*/
277
public function get_type() {
278
return $this->properties->type;
279
}
280
281
/**
282
* Checks column type
283
*
284
- * @since 3.2.1
285
* @param string $type Column type. Also work without the 'column-' prefix. Example 'column-meta' or 'meta'.
286
* @return bool Matches column type
287
*/
@@ -296,6 +340,27 @@ class CPAC_Column {
296
return $this->storage_model->get_post_type();
297
}
298
299
/**
300
* @param string $field_key
301
* @return void
@@ -317,7 +382,7 @@ class CPAC_Column {
317
* @return array Column options
318
*/
319
public function read() {
320
- $options = (array) get_option( "cpac_options_{$this->storage_model->key}" );
321
322
if ( empty( $options[ $this->properties->name ] ) ) {
323
return array();
@@ -525,6 +590,10 @@ class CPAC_Column {
525
* @since 2.2.6
526
*/
527
public function get_terms_for_display( $term_ids, $taxonomy ) {
528
$values = array();
529
$term_ids = (array) $term_ids;
530
if ( $term_ids && ! is_wp_error( $term_ids ) ) {
@@ -925,7 +994,6 @@ class CPAC_Column {
925
<td class="label">
926
<label for="<?php $this->attr_id( $pointer ); ?>">
927
<?php echo stripslashes( $label ); ?>
928
-
929
<?php if( $description ) : ?><p class="description"><?php echo $description; ?></p><?php endif; ?>
930
</label>
931
</td>
@@ -1016,20 +1084,8 @@ class CPAC_Column {
1016
* @since 2.1.1
1017
*/
1018
public function display_field_before_after() {
1019
- ?>
1020
- <tr class="column_before">
1021
- <?php $this->label_view( __( "Before", 'cpac' ), __( 'This text will appear before the custom field value.', 'cpac' ), 'before' ); ?>
1022
- <td class="input">
1023
- <input type="text" class="cpac-before" name="<?php $this->attr_name( 'before' ); ?>" id="<?php $this->attr_id( 'before' ); ?>" value="<?php echo esc_attr( stripslashes( $this->options->before ) ); ?>"/>
1024
- </td>
1025
- </tr>
1026
- <tr class="column_after">
1027
- <?php $this->label_view( __( "After", 'cpac' ), __( 'This text will appear after the custom field value.', 'cpac' ), 'after' ); ?>
1028
- <td class="input">
1029
- <input type="text" class="cpac-after" name="<?php $this->attr_name( 'after' ); ?>" id="<?php $this->attr_id( 'after' ); ?>" value="<?php echo esc_attr( stripslashes( $this->options->after ) ); ?>"/>
1030
- </td>
1031
- </tr>
1032
- <?php
1033
}
1034
1035
/**
@@ -1048,13 +1104,25 @@ class CPAC_Column {
1048
'first_last_name' => __( 'First and Last Name', 'cpac' ),
1049
);
1050
1051
?>
1052
- <tr class="column-author-name">
1053
- <?php $this->label_view( __( 'Display format', 'cpac' ), __( 'This is the format of the author name.', 'cpac' ), 'display_author_as' ); ?>
1054
<td class="input">
1055
- <select name="<?php $this->attr_name( 'display_author_as' ); ?>" id="<?php $this->attr_id( 'display_author_as' ); ?>">
1056
- <?php foreach ( $nametypes as $key => $label ) : ?>
1057
- <option value="<?php echo $key; ?>"<?php selected( $key, $this->options->display_author_as ) ?>><?php echo $label; ?></option>
1058
<?php endforeach; ?>
1059
</select>
1060
</td>
@@ -1062,6 +1130,24 @@ class CPAC_Column {
1062
<?php
1063
}
1064
1065
/**
1066
* @since 2.0
1067
* @param array Column Objects
@@ -1130,6 +1216,10 @@ class CPAC_Column {
1130
<div class="inner">
1131
<div class="meta">
1132
1133
<?php
1134
/**
1135
* Fires in the meta-element for column options, which is displayed right after the column label
@@ -1170,7 +1260,7 @@ class CPAC_Column {
1170
<table class="widefat">
1171
<tbody>
1172
<tr class="column_type">
1173
- <?php $this->label_view( __( 'Type', 'cpac' ), __( 'Choose a column type.', 'cpac' ) . '<em>' . __('ID','cpac') . ': ' . $this->properties->type . '</em>', 'type' ); ?>
1174
<td class="input">
1175
<select name="<?php $this->attr_name( 'type' ); ?>" id="<?php $this->attr_id( 'type' ); ?>">
1176
<?php echo $column_list; ?>
86
}
87
88
/**
89
+ * Overwrite this function in child class.
90
* Determine whether this column type should be available
91
*
92
* @since 2.2
98
return true;
99
}
100
101
+ /**
102
+ * Overwrite this function in child class.
103
+ * Adds (optional) scripts to the listings screen.
104
+ *
105
+ * @since 2.3.4
106
+ */
107
+ public function scripts() {}
108
+
109
/**
110
* An object copy (clone) is created for creating multiple column instances.
111
*
168
*
169
* @since 2.2
170
* @param array $default_options Default column options
171
+ * @param CPAC_Storage_Model $storage_model Storage Model class instance
172
*/
173
+ $default_options = apply_filters( 'cac/column/default_options', $default_options ); // do not pass $this because object is not ready
174
175
foreach ( $default_options as $option => $value ) {
176
$this->options[ $option ] = $value;
177
}
178
}
179
180
+ /**
181
+ * After Setup
182
+ *
183
+ */
184
public function after_setup() {
185
186
// Column name defaults to column type
197
*
198
* @since 2.0
199
* @param array $properties Column properties
200
+ * @param CPAC_Storage_Model $storage_model Storage Model class instance
201
*/
202
+ $this->properties = apply_filters( 'cac/column/properties', $this->properties ); // do not pass $this because object is not ready
203
204
/**
205
* Filter the properties of a column type for a specific storage model
208
* @since 2.0
209
* @see Filter cac/column/properties
210
*/
211
+ $this->properties = apply_filters( "cac/column/properties/storage_key={$this->storage_model->key}", $this->properties ); // do not pass $this because object is not ready
212
213
// Column label defaults to column type label
214
if ( ! isset( $this->options['label'] ) ) {
285
}
286
287
/**
288
+ * Get the type of the column.
289
+ *
290
+ * @since 2.3.4
291
*/
292
public function get_type() {
293
return $this->properties->type;
294
}
295
296
+ /**
297
+ * Get the name of the column.
298
+ *
299
+ * @since 2.3.4
300
+ */
301
+ public function get_name() {
302
+ return $this->properties->name;
303
+ }
304
+
305
+ /**
306
+ * Get the column options set by the user
307
+ *
308
+ * @since 2.3.4
309
+ * @return object Column options set by user
310
+ */
311
+ public function get_options() {
312
+ return $this->options;
313
+ }
314
+
315
+ /**
316
+ * Get a single column option
317
+ *
318
+ * @since 2.3.4
319
+ * @return array Column options set by user
320
+ */
321
+ public function get_option( $name ) {
322
+ return isset( $this->options->{$name} ) ? $this->options->{$name} : false;
323
+ }
324
+
325
/**
326
* Checks column type
327
*
328
+ * @since 2.3.4
329
* @param string $type Column type. Also work without the 'column-' prefix. Example 'column-meta' or 'meta'.
330
* @return bool Matches column type
331
*/
340
return $this->storage_model->get_post_type();
341
}
342
343
+ /**
344
+ * @since 2.3.4
345
+ */
346
+ public function get_storage_model() {
347
+ return $this->storage_model;
348
+ }
349
+
350
+ /**
351
+ * @since 2.3.4
352
+ */
353
+ public function get_storage_model_type() {
354
+ return $this->storage_model->get_type();
355
+ }
356
+
357
+ /**
358
+ * @since 2.3.4
359
+ */
360
+ public function get_storage_model_meta_type() {
361
+ return $this->storage_model->get_meta_type();
362
+ }
363
+
364
/**
365
* @param string $field_key
366
* @return void
382
* @return array Column options
383
*/
384
public function read() {
385
+ $options = (array) $this->storage_model->get_database_columns();
386
387
if ( empty( $options[ $this->properties->name ] ) ) {
388
return array();
590
* @since 2.2.6
591
*/
592
public function get_terms_for_display( $term_ids, $taxonomy ) {
593
+ if ( empty( $term_ids ) ) {
594
+ return false;
595
+ }
596
+
597
$values = array();
598
$term_ids = (array) $term_ids;
599
if ( $term_ids && ! is_wp_error( $term_ids ) ) {
994
<td class="label">
995
<label for="<?php $this->attr_id( $pointer ); ?>">
996
<?php echo stripslashes( $label ); ?>
997
<?php if( $description ) : ?><p class="description"><?php echo $description; ?></p><?php endif; ?>
998
</label>
999
</td>
1084
* @since 2.1.1
1085
*/
1086
public function display_field_before_after() {
1087
+ $this->display_field_text( 'before', __( "Before", 'cpac' ), __( 'This text will appear before the custom field value.', 'cpac' ) );
1088
+ $this->display_field_text( 'after', __( "After", 'cpac' ), __( 'This text will appear after the custom field value.', 'cpac' ) );
1089
}
1090
1091
/**
1104
'first_last_name' => __( 'First and Last Name', 'cpac' ),
1105
);
1106
1107
+ $this->display_field_select( 'display_author_as', __( 'Display format', 'cpac' ), $nametypes, __( 'This is the format of the author name.', 'cpac' ) );
1108
+ }
1109
+
1110
+ /**
1111
+ * @since 2.3.4
1112
+ * @param string $name Name of the column option
1113
+ * @return string $label Label
1114
+ * @return array $options Select options
1115
+ * @return strong $description (optional) Description below the label
1116
+ */
1117
+ public function display_field_select( $name, $label, $options = array(), $description = '' ) {
1118
+ $current = $this->get_option( $name );
1119
?>
1120
+ <tr class="column-<?php echo $name; ?>">
1121
+ <?php $this->label_view( $label, $description, $name ); ?>
1122
<td class="input">
1123
+ <select name="<?php $this->attr_name( $name ); ?>" id="<?php $this->attr_id( $name ); ?>">
1124
+ <?php foreach ( $options as $key => $label ) : ?>
1125
+ <option value="<?php echo $key; ?>"<?php selected( $key, $current ); ?>><?php echo $label; ?></option>
1126
<?php endforeach; ?>
1127
</select>
1128
</td>
1130
<?php
1131
}
1132
1133
+ /**
1134
+ * @since 2.3.4
1135
+ * @param string $name Name of the column option
1136
+ * @return string $label Label
1137
+ * @return array $options Select options
1138
+ * @return strong $description (optional) Description below the label
1139
+ */
1140
+ public function display_field_text( $name, $label, $description = '' ) {
1141
+ ?>
1142
+ <tr class="column-<?php echo $name; ?>">
1143
+ <?php $this->label_view( $label, $description, $name ); ?>
1144
+ <td class="input">
1145
+ <input type="text" name="<?php $this->attr_name( $name ); ?>" id="<?php $this->attr_id( $name ); ?>" value="<?php echo esc_attr( stripslashes( $this->get_option( $name ) ) ); ?>"/>
1146
+ </td>
1147
+ </tr>
1148
+ <?php
1149
+ }
1150
+
1151
/**
1152
* @since 2.0
1153
* @param array Column Objects
1216
<div class="inner">
1217
<div class="meta">
1218
1219
+ <span title="<?php echo esc_attr( __( 'width', 'cpac' ) ); ?>" class="width" data-indicator-id="">
1220
+ <?php echo ! empty( $this->options->width ) ? $this->options->width . '%' : ''; ?>
1221
+ </span>
1222
+
1223
<?php
1224
/**
1225
* Fires in the meta-element for column options, which is displayed right after the column label
1260
<table class="widefat">
1261
<tbody>
1262
<tr class="column_type">
1263
+ <?php $this->label_view( __( 'Type', 'cpac' ), __( 'Choose a column type.', 'cpac' ) . '<em>' . __( 'Type', 'cpac' ) . ': ' . $this->properties->type . '</em><em>' . __( 'Name', 'cpac' ) . ': ' . $this->properties->name . '</em>', 'type' ); ?>
1264
<td class="input">
1265
<select name="<?php $this->attr_name( 'type' ); ?>" id="<?php $this->attr_id( 'type' ); ?>">
1266
<?php echo $column_list; ?>
classes/column/actions.php CHANGED
@@ -11,10 +11,10 @@ abstract class CPAC_Column_Actions extends CPAC_Column {
11
*
12
* @since 2.2.6
13
*
14
- * @param int $item_id Item ID to get the list of actions for.
15
* @return array List of actions ([action name] => [action link]).
16
*/
17
- abstract public function get_actions( $item_id );
18
19
/**
20
* @see CPAC_Column::init()
@@ -36,9 +36,9 @@ abstract class CPAC_Column_Actions extends CPAC_Column {
36
* @see CPAC_Column::get_value()
37
* @since 2.2.6
38
*/
39
- public function get_value( $post_id ) {
40
41
- $actions = $this->get_raw_value( $post_id );
42
43
if ( ! empty( $this->options->use_icons ) ) {
44
return implode( '', $this->convert_actions_to_icons( $actions ) );
@@ -59,7 +59,7 @@ abstract class CPAC_Column_Actions extends CPAC_Column {
59
* @see CPAC_Column::get_value()
60
* @since 2.2.6
61
*/
62
- public function get_raw_value( $post_id ) {
63
64
/**
65
* Filter the action links for the actions column
@@ -68,8 +68,9 @@ abstract class CPAC_Column_Actions extends CPAC_Column {
68
*
69
* @param array $actions List of actions ([action name] => [action link]).
70
* @param CPAC_Column_Actions $column_instance Column object.
71
*/
72
- return apply_filters( 'cac/column/actions/action_links', $this->get_actions( $post_id ), $this );
73
}
74
75
/**
@@ -120,14 +121,21 @@ abstract class CPAC_Column_Actions extends CPAC_Column {
120
$icons = $this->get_actions_icons();
121
122
foreach ( $actions as $action => $link ) {
123
- if ( isset( $icons[ $action ] ) ) {
124
// Add mandatory "class" HTML attribute
125
if ( strpos( $link, 'class=' ) === false ) {
126
$link = str_replace( '<a ', '<a class="" ', $link );
127
}
128
129
// Add icon and tooltip classes
130
- $link = preg_replace( '/class=["\'](.*?)["\']/', 'class="$1 cpac-tip button cpac-button-action dashicons hide-content dashicons-' . $icons[ $action ] . '"', $link, 1 );
131
132
// Add tooltip title
133
$link = preg_replace_callback( '/>(.*?)<\/a>/', array( $this, 'add_link_tooltip' ), $link );
@@ -166,8 +174,15 @@ abstract class CPAC_Column_Actions extends CPAC_Column {
166
'trash' => 'trash',
167
'delete' => 'trash',
168
'untrash' => 'undo',
169
'view' => 'visibility',
170
- 'inline hide-if-no-js' => 'welcome-write-blog'
171
);
172
}
173
11
*
12
* @since 2.2.6
13
*
14
+ * @param int $id Item ID to get the list of actions for.
15
* @return array List of actions ([action name] => [action link]).
16
*/
17
+ abstract public function get_actions( $id );
18
19
/**
20
* @see CPAC_Column::init()
36
* @see CPAC_Column::get_value()
37
* @since 2.2.6
38
*/
39
+ public function get_value( $id ) {
40
41
+ $actions = $this->get_raw_value( $id );
42
43
if ( ! empty( $this->options->use_icons ) ) {
44
return implode( '', $this->convert_actions_to_icons( $actions ) );
59
* @see CPAC_Column::get_value()
60
* @since 2.2.6
61
*/
62
+ public function get_raw_value( $id ) {
63
64
/**
65
* Filter the action links for the actions column
68
*
69
* @param array $actions List of actions ([action name] => [action link]).
70
* @param CPAC_Column_Actions $column_instance Column object.
71
+ * @param int $id Post/User/Comment ID
72
*/
73
+ return apply_filters( 'cac/column/actions/action_links', $this->get_actions( $id ), $this, $id );
74
}
75
76
/**
121
$icons = $this->get_actions_icons();
122
123
foreach ( $actions as $action => $link ) {
124
+ $action1 = $action;
125
+ $spacepos = $spacepos = strpos( $action1, ' ' );
126
+
127
+ if ( $spacepos !== false ) {
128
+ $action1 = substr( $action1, 0, $spacepos );
129
+ }
130
+
131
+ if ( isset( $icons[ $action1 ] ) ) {
132
// Add mandatory "class" HTML attribute
133
if ( strpos( $link, 'class=' ) === false ) {
134
$link = str_replace( '<a ', '<a class="" ', $link );
135
}
136
137
// Add icon and tooltip classes
138
+ $link = preg_replace( '/class=["\'](.*?)["\']/', 'class="$1 cpac-tip button cpac-button-action dashicons hide-content dashicons-' . $icons[ $action1 ] . '"', $link, 1 );
139
140
// Add tooltip title
141
$link = preg_replace_callback( '/>(.*?)<\/a>/', array( $this, 'add_link_tooltip' ), $link );
174
'trash' => 'trash',
175
'delete' => 'trash',
176
'untrash' => 'undo',
177
+ 'unspam' => 'undo',
178
'view' => 'visibility',
179
+ 'inline' => 'welcome-write-blog',
180
+ 'quickedit' => 'welcome-write-blog',
181
+ 'approve' => 'yes',
182
+ 'unapprove' => 'no',
183
+ 'reply' => 'testimonial',
184
+ 'trash' => 'trash',
185
+ 'spam' => 'welcome-comments'
186
);
187
}
188
classes/column/comment/actions.php CHANGED
@@ -4,42 +4,18 @@
4
*
5
* @since 2.0
6
*/
7
- class CPAC_Column_Comment_Actions extends CPAC_Column {
8
9
/**
10
- * @see CPAC_Column::init()
11
- * @since 2.2.1
12
*/
13
- public function init() {
14
15
- parent::init();
16
-
17
- // Properties
18
- $this->properties['type'] = 'column-actions';
19
- $this->properties['label'] = __( 'Actions', 'cpac' );
20
- }
21
-
22
- /**
23
- * @see CPAC_Column::get_value()
24
- * @since 2.0
25
- */
26
- function get_value( $id ) {
27
28
$comment = get_comment( $id );
29
30
- return $this->get_column_value_actions( $comment );
31
- }
32
-
33
- /**
34
- * Get column value of comments actions
35
- *
36
- * This part is copied from the Comments List Table class
37
- *
38
- * @since 1.4.2
39
- */
40
- private function get_column_value_actions( $comment ) {
41
- global $post, $comment_status;
42
-
43
// set uased vars
44
$user_can = current_user_can( 'edit_comment', $comment->comment_ID );
45
$the_comment_status = wp_get_comment_status( $comment->comment_ID );
@@ -102,28 +78,31 @@ class CPAC_Column_Comment_Actions extends CPAC_Column {
102
}
103
104
$actions = apply_filters( 'comment_row_actions', array_filter( $actions ), $comment );
105
106
- $i = 0;
107
- $result = '<div class="cp-row-actions">';
108
- foreach ( $actions as $action => $link ) {
109
- ++$i;
110
- ( ( ( 'approve' == $action || 'unapprove' == $action ) && 2 === $i ) || 1 === $i ) ? $sep = '' : $sep = ' | ';
111
112
// Reply and quickedit need a hide-if-no-js span when not added with ajax
113
- if ( ( 'reply' == $action || 'quickedit' == $action ) && ! defined('DOING_AJAX') )
114
- $action .= ' hide-if-no-js';
115
elseif ( ( $action == 'untrash' && $the_comment_status == 'trash' ) || ( $action == 'unspam' && $the_comment_status == 'spam' ) ) {
116
- if ( '1' == get_comment_meta( $comment->comment_ID, '_wp_trash_meta_status', true ) )
117
- $action .= ' approve';
118
- else
119
- $action .= ' unapprove';
120
}
121
122
- $result .= "<span class='$action'>$sep$link</span>";
123
}
124
- $result .= '</div>';
125
}
126
- return $result;
127
- // end copied
128
}
129
}
4
*
5
* @since 2.0
6
*/
7
+ class CPAC_Column_Comment_Actions extends CPAC_Column_Actions {
8
9
/**
10
+ * @see CPAC_Column_Actions::get_actions()
11
+ * @since 2.3.4
12
*/
13
+ public function get_actions( $id ) {
14
15
+ global $post, $comment_status;
16
17
$comment = get_comment( $id );
18
19
// set uased vars
20
$user_can = current_user_can( 'edit_comment', $comment->comment_ID );
21
$the_comment_status = wp_get_comment_status( $comment->comment_ID );
78
}
79
80
$actions = apply_filters( 'comment_row_actions', array_filter( $actions ), $comment );
81
+ $actions_copy = $actions;
82
+ $actions = array();
83
84
+ foreach ( $actions_copy as $action => $link ) {
85
+ $action_append = '';
86
87
// Reply and quickedit need a hide-if-no-js span when not added with ajax
88
+ if ( ( 'reply' == $action || 'quickedit' == $action ) && ! defined('DOING_AJAX') ) {
89
+ $action_append .= ' hide-if-no-js';
90
+ }
91
elseif ( ( $action == 'untrash' && $the_comment_status == 'trash' ) || ( $action == 'unspam' && $the_comment_status == 'spam' ) ) {
92
+ if ( '1' == get_comment_meta( $comment->comment_ID, '_wp_trash_meta_