Admin Columns - Version 2.1.4

Version Description

  • [Added] CSS now is compiled with LESS
  • [Updated] Menu is split between posttypes and media, comments and users.
  • [Fixed] WordPress SEO 1.5.2 columns support
  • [Updated] Refactored JS and cleanup
  • [Updated] Registered Date column now uses GMT date
  • [Updated] Display author as column has fallback to display_name
  • [Updated] Added conditional checks for featured-image-, ping-status and comment-status-columns
  • [Fixed] Fixed warning for available-sizes column
  • [Updated] Column labels can no longer contain ":" characters
Download this release

Release Info

Developer tschutter
Plugin Icon 128x128 Admin Columns
Version 2.1.4
Comparing to
See all releases

Code changes from version 2.1.3 to 2.1.4

Files changed (49) hide show
  1. assets/css/admin-column.css +801 -1003
  2. assets/css/column.css +72 -76
  3. assets/css/custom-fields.css +0 -2
  4. assets/js/admin-columns.js +111 -9
  5. assets/js/custom-fields.js +0 -53
  6. assets/js/upgrade.js +0 -0
  7. assets/less/admin-column.less +998 -0
  8. assets/less/column.less +76 -0
  9. classes/column.php +45 -20
  10. classes/column/custom-field.php +15 -23
  11. classes/column/media/available-sizes.php +10 -5
  12. classes/column/post/author-name.php +12 -10
  13. classes/column/post/comment-status.php +9 -0
  14. classes/column/post/featured-image.php +9 -0
  15. classes/column/post/ping-status.php +9 -0
  16. classes/column/user/registered.php +2 -1
  17. classes/deprecated.php +0 -62
  18. classes/settings.php +142 -127
  19. classes/storage_model.php +85 -25
  20. classes/storage_model/comment.php +4 -6
  21. classes/storage_model/link.php +4 -6
  22. classes/storage_model/media.php +4 -6
  23. classes/storage_model/post.php +7 -19
  24. classes/storage_model/user.php +4 -6
  25. classes/third_party.php +1 -0
  26. codepress-admin-columns.php +188 -99
  27. languages/cpac-ar.mo +0 -0
  28. languages/cpac-ar.po +912 -881
  29. languages/cpac-da_DK.mo +0 -0
  30. languages/cpac-da_DK.po +931 -900
  31. languages/cpac-de_DE.mo +0 -0
  32. languages/cpac-de_DE.po +799 -775
  33. languages/cpac-es_ES.mo +0 -0
  34. languages/cpac-es_ES.po +944 -913
  35. languages/cpac-it_IT.mo +0 -0
  36. languages/cpac-it_IT.po +666 -644
  37. languages/cpac-nl_NL.mo +0 -0
  38. languages/cpac-nl_NL.po +890 -852
  39. languages/cpac-pl_PL.mo +0 -0
  40. languages/cpac-pl_PL.po +926 -895
  41. languages/cpac-pt_BR.mo +0 -0
  42. languages/cpac-pt_BR.po +638 -615
  43. languages/cpac-sv_SE.mo +0 -0
  44. languages/cpac-sv_SE.po +920 -915
  45. languages/cpac-zh_CN.mo +0 -0
  46. languages/cpac-zh_CN.po +895 -864
  47. languages/cpac.mo +0 -0
  48. languages/cpac.po +617 -616
  49. readme.txt +12 -1
assets/css/admin-column.css CHANGED
@@ -1,1003 +1,801 @@
1
- /* =General
2
- -------------------------------------------------------------- */
3
- #icon-codepress-admin-columns {
4
- background: transparent url('../images/icon.png') no-repeat 0 0;
5
- }
6
- .cpac-settings-link {
7
- float: right;
8
- margin: 12px 14px 5px 0;
9
- background: transparent url('../images/settings.png') no-repeat 0 0;
10
- padding-left: 20px;
11
- text-decoration: none;
12
- display: inline-block;
13
- line-height: 16px;
14
- }
15
- .rtl .cpac-settings-link {
16
- float: left;
17
- margin: 12px 0 5px 14px;
18
- padding-right: 20px;
19
- padding-left: 0;
20
- }
21
- .cpac-settings-link.current {
22
- font-weight: bold;
23
- }
24
- a.help {
25
- background: transparent url('../images/help.png') no-repeat 0 0;
26
- display: inline-block;
27
- width: 16px;
28
- height: 16px;
29
- }
30
- #cpac a:focus, #cpac a:active {
31
- outline: none;
32
- }
33
- .button.loading {
34
- padding-right: 25px;
35
- position: relative;
36
- }
37
- .rtl .button.loading {
38
- padding-left: 25px;
39
- padding-right: 0;
40
- }
41
- .button.loading span {
42
- position: absolute;
43
- top: 2px;
44
- right: 6px;
45
- background: transparent url('../images/loading.gif') no-repeat right 50%;
46
- width: 16px;
47
- height: 16px;
48
- display: inline-block;
49
- }
50
- .rtl .button.loading span {
51
- left: 6px;
52
- right: auto;
53
- }
54
- /* =Icons
55
- -------------------------------------------------------------- */
56
- .icon-yes {
57
- background: transparent url(../images/yes.png) no-repeat 0 0;
58
- width: 16px;
59
- height: 16px;
60
- display: inline-block;
61
- position: relative;
62
- top: 2px;
63
- }
64
- .icon-no {
65
- background: transparent url(../images/no.png) no-repeat 0 0;
66
- width: 16px;
67
- height: 16px;
68
- display: inline-block;
69
- position: relative;
70
- top: 2px;
71
- }
72
-
73
- /* =Menu
74
- -------------------------------------------------------------- */
75
- .cpac-menu {
76
- clear: both;
77
- overflow: hidden;
78
- }
79
- .cpac-menu .subsubsub {
80
- white-space: normal;
81
- margin-right: 14px;
82
- }
83
- .rtl .cpac-menu .subsubsub {
84
- margin-left: 14px;
85
- margin-right: 0;
86
- }
87
-
88
- /* =Structure
89
- -------------------------------------------------------------- */
90
- .columns-container {
91
- margin-right: 300px;
92
- max-width: 700px;
93
- }
94
- .rtl .columns-container {
95
- margin-left: 300px;
96
- margin-right: 0;
97
- }
98
- .columns-left {
99
- float: left;
100
- width: 100%;
101
- }
102
- .rtl .columns-left {
103
- float: right;
104
- }
105
- .columns-right {
106
- float: right;
107
- margin-right: -300px;
108
- width: 280px;
109
- }
110
- .rtl .columns-right {
111
- float: left;
112
- margin-left: -300px;
113
- margin-right: 0;
114
- }
115
- .columns-right-inside.fixed {
116
- position: fixed;
117
- top: 40px;
118
- width: 280px;
119
- }
120
-
121
- /* =Columns
122
- -------------------------------------------------------------- */
123
- .add-new-h2 {
124
- color: #828282;
125
- }
126
- .cpac-boxes form {
127
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
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
- }
139
-
140
- /* @todo: placeholder styling v2 */
141
-
142
- .cpac-placeholder {
143
- border-top: 1px solid #dfdfdf;
144
- padding: 5px 4px 7px 0;
145
- }
146
- .rtl .cpac-placeholder {
147
- padding: 5px 0 7px 4px;
148
- }
149
- .cpac-placeholder .inner-placeholder {
150
- border: 1px dashed #808080;
151
- background: #eee;
152
- width: 100%;
153
- height: 100%;
154
- }
155
- .cpac-columns .cpac-placeholder:first-child {
156
- border: none;
157
- }
158
- .cpac-column.deleting {}
159
-
160
- /* placeholder styling v1 */
161
-
162
- /*
163
- .cpac-placeholder {
164
- visibility: visible !important;
165
- background: transparent url('../images/border.png') repeat 0 0;
166
- padding: 2px;
167
- }
168
- .cpac-placeholder .inner-placeholder {
169
- box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
170
- background: #ededed;
171
- width: 100%;
172
- height: 100%;
173
- }
174
- .ui-sortable-helper .column-meta {
175
- border-width: 1px;
176
- }
177
- */
178
-
179
-
180
- /* =Column Header
181
- -------------------------------------------------------------- */
182
- .table-header {
183
- border-radius: 3px 3px 0 0;
184
- border-width: 1px 1px 0;
185
- }
186
-
187
- /* =Column Meta
188
- -------------------------------------------------------------- */
189
- .column-meta {
190
- border-style: solid;
191
- border-color: #dfdfdf;
192
- border-width: 1px 1px 0;
193
- background: #fcfcfc;
194
- }
195
- .cpac-column:nth-child(2n) .column-meta {
196
- background: #f9f9f9;
197
- }
198
- .column-meta table {
199
- border: none;
200
- background: transparent;
201
- border-radius: 0;
202
- }
203
- .column-meta table tr td {
204
- vertical-align: top;
205
- height: 18px;
206
- border: none;
207
- padding: 11px 8px;
208
- border-width: 1px 0 0;
209
- border-style: solid;
210
- border-color: transparent;
211
- }
212
- .column-meta img {
213
- margin-right: 3px;
214
- }
215
- .rtl .column-meta img {
216
- margin-left: 3px;
217
- margin-right: 0;
218
- }
219
- .column-meta .column_sort {
220
- width: 10px;
221
- background: transparent url('../images/drag.png') no-repeat 8px 8px;
222
- cursor: move;
223
- }
224
- .column-meta td.column_label {
225
- width: 55%;
226
- font-weight: bold;
227
- vertical-align: middle;
228
- position: relative;
229
- }
230
- .column-meta .column_label .inner {
231
- position: relative;
232
- overflow: hidden;
233
- height: 18px;
234
- }
235
- .column-meta .column_label .inner > a {
236
- color: #5a5a5a;
237
- }
238
- .column-meta .column_label .inner > a:hover {
239
- color: #333333;
240
- }
241
- .column-meta .column_label .inner > a.remove-button {
242
- display: none;
243
- color: #BC0B0B;
244
- text-decoration: none;
245
- text-shadow: none;
246
- font-weight: normal;
247
- margin-left: 12px;
248
- font-size: 12px;
249
- }
250
- .rtl .column-meta .column_label .inner > a.remove-button {
251
- margin-right: 12px;
252
- margin-left: 0;
253
- }
254
- .column-meta .column_label .inner > a.remove-button:hover {
255
- background-color: #BC0B0B;
256
- color: #FFFFFF;
257
- text-decoration: none;
258
- }
259
- .column-meta:hover .column_label .inner > a.remove-button {
260
- display: inline-block;
261
- }
262
- .column-meta .column_label .inner .meta {
263
- display: inline-block;
264
- float: right;
265
- font-weight: normal;
266
- color: #999999;
267
- font-size: 12px;
268
- }
269
- .rtl .column-meta .column_label .inner .meta {
270
- float: left;
271
- }
272
- .column-meta .column_type {
273
- width: auto;
274
- text-align: right;
275
- vertical-align: middle;
276
- color: #999999;
277
- padding-right: 0;
278
- }
279
- .rtl .column-meta .column_type {
280
- text-align: left;
281
- padding-left: 0;
282
- padding-right: auto;
283
- }
284
- .column-meta .column_edit {
285
- width: 38px;
286
- background: transparent url('../images/arrow.png') no-repeat 23px 18px;
287
- cursor: pointer;
288
- }
289
-
290
- /* opened state */
291
- .cpac-column.opened .column-meta {
292
- background-color: #c7c7c7;
293
- background-image: -ms-linear-gradient(top, #e9e9e9, #c7c7c7);
294
- background-image: -moz-linear-gradient(top, #e9e9e9, #c7c7c7);
295
- background-image: -o-linear-gradient(top, #e9e9e9, #c7c7c7);
296
- background-image: -webkit-gradient(linear, left top, left bottom, from(#e9e9e9), to(#c7c7c7));
297
- background-image: -webkit-linear-gradient(top, #e9e9e9, #c7c7c7);
298
- background-image: linear-gradient(top, #e9e9e9, #c7c7c7);
299
- border-color: #aeaeae;
300
- }
301
- .cpac-column.opened .column-meta table {
302
- background: transparent;
303
- }
304
- .cpac-column.opened .column-meta td {
305
- border-color: #f8f8f8;
306
- }
307
- .cpac-column.opened .column-meta td,
308
- .cpac-column.opened .column-meta td a{
309
- color: #333;
310
- text-shadow: 0 1px 0 #FFFFFF;
311
- }
312
- .cpac-column.opened .column-meta .column_sort {
313
- background-position: 8px -39px;
314
- }
315
- .cpac-column.opened .column-meta .column_type {
316
- color: #5C5C5C;
317
- }
318
- .cpac-column.opened .column-meta .column_label .inner .meta {
319
- color: #808080;
320
- }
321
- tr.column_image_size td.input .custom_image_size {
322
- display: inline-block;
323
- }
324
- tr.column_image_size td.input label {
325
- display: inline-block;
326
- margin-top: 4px;
327
- margin-bottom: 4px;
328
- }
329
- tr.column_image_size td.input label input {
330
- margin-right: 3px;
331
- }
332
- .rtl tr.column_image_size td.input label input {
333
- margin-left: 3px;
334
- margin-right: 0;
335
- }
336
- tr.column_image_size td.input label.custom-size-w,
337
- tr.column_image_size td.input label.custom-size-h {
338
- margin: 0;
339
- }
340
- tr.column_image_size td.input label.custom-size-w.hidden,
341
- tr.column_image_size td.input label.custom-size-h.hidden {
342
- display: none;
343
- }
344
- tr.column_image_size td.input label.custom-size-w input,
345
- tr.column_image_size td.input label.custom-size-h input {
346
- width: 30px;
347
- }
348
- tr.column_image_size.hidden {
349
- display: none;
350
- }
351
-
352
- /* =Column Meta: WP Default columns
353
- -------------------------------------------------------------- */
354
- .column-meta span.vers {
355
- padding-top: 2px;
356
- }
357
- .column-meta span.vers .comment-grey-bubble {
358
- background: transparent url("../images/comment-grey-bubble.png") no-repeat 0 0;
359
- height: 12px;
360
- width: 12px;
361
- float: right;
362
- }
363
- .rtl .column-meta span.vers .comment-grey-bubble {
364
- float: left;
365
- }
366
- .column-meta .column_label span.vers {
367
- float: left;
368
- }
369
- .rtl .column-meta .column_label span.vers {
370
- float: right;
371
- }
372
-
373
- /* =Column Form
374
- -------------------------------------------------------------- */
375
- .column-form {
376
- display: none;
377
- border-width: 1px 1px 0;
378
- border-style: solid;
379
- border-color: #dfdfdf;
380
- }
381
- .column-form table {
382
- border: none;
383
- background: #fcfcfc;
384
- }
385
- .column-form tr td {
386
- vertical-align: top;
387
- border: none;
388
- padding: 8px;
389
- background: #ffffff;
390
- }
391
- .column-form tr td.label {
392
- position: relative;
393
- overflow: visible;
394
- background: #F9F9F9;
395
- background: #f5f5f5;
396
- border-right: 1px solid #E1E1E1;
397
- vertical-align: top;
398
- width: 34%;
399
- border-top: 1px solid #F0F0F0;
400
- }
401
- .column-form tr td {
402
- border-top: 1px solid #F5F5F5;
403
- }
404
- .column-form tr:first-child td {
405
- border-top: none;
406
- }
407
- .column-form tr td.label label {
408
- font-weight: bold;
409
- color: #333333;
410
- display: block;
411
- position: relative;
412
- }
413
- .column-form tr td.label p {
414
- color: #666666;
415
- display: block;
416
- font-size: 12px;
417
- font-style: normal;
418
- line-height: 16px;
419
- margin: 0 !important;
420
- }
421
- .column-form tr td.label p.description {
422
- display: none;
423
- position: absolute;
424
- z-index: 99;
425
- top: 30px;
426
- left: 0;
427
- background: #eaf2fa;
428
- border-radius: 5px;
429
- border: 1px solid #c7d7e2;
430
- padding: 5px 8px !important;
431
- font-weight: normal;
432
- }
433
- .column-form tr td.label p.description em {
434
- display: block;
435
- color: #999;
436
- }
437
- .rtl .column-form tr td.label p.description {
438
- right: 0;
439
- left: auto;
440
- }
441
- .column-form tr td.label a.more-info {
442
- display: none;
443
- width: 14px; height: 14px;
444
- line-height: 14px;
445
- font-size: 10px;
446
- color: #fff;
447
- text-align: center;
448
- font-weight: bold;
449
- background: transparent url(../images/info.png) no-repeat 0 0;
450
- float: right;
451
- }
452
- .rtl .column-form tr td.label a.more-info {
453
- float: left;
454
- }
455
- .column-form tr td select,
456
- .column-form tr td input[type=text] {
457
- width: 99.95%; /* excl padding */
458
- }
459
- .column-form div.description {
460
- font-size: 11px;
461
- width: 12%;
462
- float: left;
463
- text-align: middle;
464
- }
465
- .rtl .column-form div.description {
466
- float: right;
467
- }
468
- .column-form div.input-width-range {
469
- float: left;
470
- position: relative;
471
- width: 87%;
472
- margin-top: 4px;
473
- }
474
- .rtl .column-form div.input-width-range {
475
- float: right;
476
- }
477
- .column-form div.input-width-range .ui-slider-handle {
478
- cursor:ew-resize;
479
- }
480
- .column-form tr td.input label {
481
- padding-right: 10px;
482
- }
483
- .rtl .column-form tr td.input label {
484
- padding-left: 10px;
485
- padding-right: 0;
486
- }
487
- .column-form tr td.input p.description {
488
- /*display: none;*/
489
- margin-top: 4px;
490
- color: #888888;
491
- }
492
- .column-form a.help {
493
- vertical-align: middle;
494
- float: right;
495
- }
496
- .rtl .column-form a.help {
497
- float: left;
498
- }
499
- .column-form div.msg {
500
- margin-top: 5px;
501
- display: none;
502
- color: #333;
503
- padding: 6px 8px;
504
- background-color: #ffebe8;
505
- border: 1px solid #fff;
506
- -moz-border-radius: 3px;
507
- -webkit-border-radius: 3px;
508
- border-radius: 3px;
509
- }
510
- .column-form select optgroup:nth-child(2n) {
511
- background: #F9F9F9;
512
- }
513
-
514
- /* =Column Footer
515
- -------------------------------------------------------------- */
516
- .column-footer {
517
- background: #EAF2FA;
518
- border: 1px solid #c7d7e2;
519
- min-height: 26px;
520
- padding: 8px;
521
- overflow: hidden;
522
- }
523
- .column-footer .order-message {
524
- background: transparent url('../images/order_arrow.png') no-repeat 0 0;
525
- color: #7A9BBE;
526
- float: left;
527
- font-family: Comic Sans MS,sans-serif;
528
- font-size: 11px;
529
- height: 13px;
530
- line-height: 1em;
531
- margin-left: 4px;
532
- padding: 7px 0 0 22px;
533
- text-shadow: 0 1px 0 #FFFFFF;
534
- display: inline-block;
535
- }
536
- .rtl .column-footer .order-message {
537
- float: right;
538
- padding-right: 22px;
539
- padding-left: 0;
540
- background: transparent url('../images/order_arrow-rtl.png') no-repeat right top;
541
- }
542
-
543
- /* =Sidebar
544
- -------------------------------------------------------------- */
545
- .columns-right {
546
- margin-top: 52px;
547
- }
548
- .sidebox {
549
- background: none repeat scroll 0 0 #FFFFFF;
550
- border: 1px solid #E1E1E1;
551
- border-radius: 0 0 0 0;
552
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
553
- position: relative;
554
- margin-bottom: 14px;
555
- }
556
- .sidebox h3 {
557
- padding: 10px;
558
- margin: 0;
559
- }
560
- .sidebox h3.title {
561
- font-family: Georgia,"Times New Roman","Bitstream Charter",Times,serif;
562
- font-size: 15px;
563
- font-weight: normal;
564
- line-height: 1;
565
- margin: 0;
566
- padding: 7px 10px;
567
- background: #f1f1f1;
568
- background-image: -webkit-gradient(linear, left bottom, left top, from(#ececec), to(#f9f9f9));
569
- background-image: -webkit-linear-gradient(bottom, #ececec, #f9f9f9);
570
- background-image: -moz-linear-gradient(bottom, #ececec, #f9f9f9);
571
- background-image: -o-linear-gradient(bottom, #ececec, #f9f9f9);
572
- background-image: linear-gradient(to top, #ececec, #f9f9f9);
573
- border-bottom-color: #dfdfdf;
574
- text-shadow: #fff 0 1px 0;
575
- -webkit-box-shadow: 0 1px 0 #fff;
576
- box-shadow: 0 1px 0 #fff;
577
- border-bottom-style: solid;
578
- border-bottom-width: 1px;
579
- }
580
- .sidebox .inside {
581
- padding: 10px;
582
- }
583
- .sidebox .inside p {
584
- margin-top: 0;
585
- }
586
- #form-actions .form-reset {
587
- border-bottom: 1px solid #F5F5F5;
588
- padding: 8px;
589
- }
590
- #form-actions .reset-column-type {
591
- text-decoration: none;
592
- color: #BC0B0B;
593
- line-height: 25px;
594
- display: inline-block;
595
- }
596
- #form-actions .reset-column-type:hover {
597
- color: #FF0000
598
- }
599
- #form-actions .form-update {
600
- padding: 8px;
601
- }
602
- #form-actions .submit-update {
603
- display: block;
604
- width: 100%;
605
- height: 28px;
606
- line-height: 28px;
607
- text-align: center;
608
- }
609
-
610
- /* =Sidebar: Pro
611
- --------------------------------*/
612
- #pro-version .cta {
613
- background: transparent url(../images/get_the_addon.png) no-repeat 0 0;
614
- }
615
- #pro-version .padding-box {
616
- padding: 8px 15px 0;
617
- }
618
- #pro-version a {
619
- color: red;
620
- }
621
- #pro-version h3 a {
622
- color: #fff;
623
- font-size: 19px;
624
- text-decoration: none;
625
- font-weight: normal;
626
- margin-top: 6px;
627
- }
628
- #pro-version .inside ul {
629
- margin: 0 0 10px 0;
630
- }
631
- #pro-version .inside ul li {
632
- margin: 0;
633
- padding: 0;
634
- }
635
- #pro-version .inside ul li a {
636
- display: inline-block;
637
- height: 24px;
638
- font-size: 19px;
639
- line-height: 24px;
640
- margin-bottom: 1px;
641
- padding: 0 5px;
642
- background: #000;
643
- color: #fff;
644
- text-decoration: none;
645
- }
646
-
647
- #pro-version .inside p {
648
- color: #fff;
649
- font-size: 12px;
650
- }
651
- #pro-version .inside p a {
652
- color: #fff;
653
- display: inline-block;
654
- background: #a4c518;
655
- padding: 0 2px;
656
- font-size: 15px;
657
- text-decoration: none;
658
- }
659
-
660
-
661
- /* =Sidebar: Addons
662
- --------------------------------*/
663
- #addon-state {}
664
- #addon-state .inside {
665
- overflow: hidden;
666
- }
667
- #addon-state ul {
668
- margin: 0 0 8px;
669
- }
670
- #addon-state ul li {
671
- background: transparent url('../images/checkmark_single.png') no-repeat 0 0;
672
- padding-left: 25px;
673
- margin-bottom: 4px;
674
- }
675
- .rtl #addon-state ul li {
676
- padding-right: 25px;
677
- padding-left: 0;
678
- }
679
- #addon-state a.find-more-addons {
680
- float: right;
681
- }
682
- .rtl #addon-state a.find-more-addons {
683
- float: left;
684
- }
685
-
686
- /* =Settings Page
687
- -------------------------------------------------------------- */
688
- table.cpac-form-table {
689
- max-width: 1100px;
690
- margin-top: 20px;
691
- }
692
- .col-25, .col-30, .col-35, .col-65, .col-70, .col-75 {
693
- float: left;
694
- }
695
- .rtl .col-25, .rtl .col-30, .rtl .col-35, .rtl .col-65, .rtl .col-70, .rtl .col-75 {
696
- float: right;
697
- }
698
- .col-25 { width: 25%; }
699
- .col-30 { width: 30%; }
700
- .col-35 { width: 35%; }
701
- .col-65 { width: 65%; }
702
- .col-70 { width: 70%; }
703
- .col-75 { width: 75%; }
704
- table.cpac-form-table > tbody > tr > td,
705
- table.cpac-form-table > tbody > tr > th {
706
- vertical-align: top;
707
- padding-bottom: 20px;
708
- }
709
- table.addons tr {
710
- background: #fff;
711
- }
712
- tr td.padding-22 {
713
- padding-top: 22px;
714
- }
715
- .ms-list li {
716
- margin: 0;
717
- padding-top: 5px;
718
- padding-bottom: 5px;
719
- }
720
- /* =Column: Button
721
- -------------------------------------------------------------- */
722
- .column-form tr.column_action td a.remove-button {
723
- border-bottom: 1px solid #FF0000;
724
- color: #FF0000;
725
- display: inline-block;
726
- padding: 0 3px;
727
- text-decoration: none;
728
- text-shadow: none;
729
- }
730
- .column-form tr.column_action td a.remove-button:hover {
731
- background-color: #FF0000;
732
- border-bottom-color: #FF0000;
733
- color: #FFFFFF;
734
- text-decoration: none;
735
- }
736
-
737
- /* =Column: Action
738
- -------------------------------------------------------------- */
739
- .column-form tr.column_action td {
740
- background: #f9f9f9;
741
- }
742
-
743
- /* =Column: Footer
744
- -------------------------------------------------------------- */
745
- .column-footer .button-container {
746
- float: right;
747
- display: inline-block;
748
- margin-top: -5px;
749
- }
750
- .rtl .column-footer .button-container {
751
- float: left;
752
- }
753
- .column-footer .button-container p {
754
- margin: 4px;
755
- color: #7A9BBE;
756
- }
757
- .column-footer .button-container a {
758
- display: inline-block;
759
- margin-top: 5px;
760
- }
761
-
762
- /* =Welcome Screen
763
- -------------------------------------------------------------- */
764
-
765
- .cpac-content-body hr {
766
- -moz-border-bottom-colors: none;
767
- -moz-border-left-colors: none;
768
- -moz-border-right-colors: none;
769
- -moz-border-top-colors: none;
770
- background: none repeat scroll 0 0 transparent;
771
- border-color: #DFDFDF -moz-use-text-color -moz-use-text-color;
772
- border-image: none;
773
- border-right: 0 none;
774
- border-style: solid none none;
775
- border-width: 1px 0 0;
776
- clear: both;
777
- margin: 30px 0;
778
- opacity: 0.2;
779
- }
780
- #cpac-welcome.about-wrap div.error {
781
- display: block !important;
782
- }
783
- .cpac-alert {
784
- display: inline-block;
785
- background: none repeat scroll 0 0 #FCF8E3;
786
- border: 1px solid #FBEED5;
787
- border-radius: 4px 4px 4px 4px;
788
- color: #C09853;
789
- margin: 20px 0;
790
- padding: 16px 14px;
791
- text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
792
- }
793
- .cpac-alert p {
794
- margin: 0;
795
- }
796
- .cpac-alert.cpac-alert-success {
797
- background-color: #DFF0D8;
798
- border-color: #D6E9C6;
799
- color: #468847;
800
- }
801
- .cpac-alert.cpac-alert-error {
802
- background-color: #F2DEDE;
803
- border-color: #EED3D7;
804
- color: #B94A48;
805
- }
806
- .cpac-alert a.button-primary {
807
-
808
- height: 28px;
809
- line-height: 28px;
810
- display: inline-block;
811
- }
812
- #cpac-download-add-ons-table {
813
- max-width: 600px;
814
- }
815
- .wp-core-ui .button-large {
816
- height: 40px;
817
- line-height: 40px;
818
- font-size: 16px;
819
- padding: 0 15px;
820
- text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
821
- }
822
-
823
- /* =Import / Export
824
- -------------------------------------------------------------- */
825
- #cpac_export_types {
826
- width: 95%;
827
- }
828
- #cpac_export_output {
829
- display: none;
830
- }
831
- #cpac_export_output textarea {
832
- width: 100%;
833
- height: 80%;
834
- }
835
- #cpac_export_submit {
836
- display: inline-block;
837
- margin: 10px 8px;
838
- padding: 4px 14px;
839
- height: auto;
840
- }
841
- #cpac_import_input {}
842
- #cpac_import_input textarea {
843
- width: 100%;
844
- height: 200px;
845
- }
846
- #cpac_import_submit {
847
- display: inline-block;
848
- margin: 10px 0;
849
- }
850
- .export-message,
851
- .import-message {
852
- background-color: #FFFFE0;
853
- border: 1px solid #E6DB55;
854
- padding: 4px 6px;
855
- border-radius: 3px;
856
- display: none;
857
- }
858
- #import-submit {
859
- margin-top: 10px;
860
- display: block;
861
- }
862
- .cpac_export .ms-container {
863
- background: transparent url('../images/switch_bw.png') no-repeat 50% 50%;
864
- }
865
- .cpac_export .ms-container .ms-selectable {
866
- width: 48%;
867
- margin-right: 0;
868
- }
869
- .cpac_export .ms-container .ms-selection {
870
- float: right;
871
- width: 48%;
872
- }
873
- .rtl .cpac_export .ms-container .ms-selection {
874
- float: left;
875
- }
876
- .cpac_export .ms-container ul.ms-list {
877
- width: 100%;
878
- }
879
- a.export-select {
880
- display: inline-block;
881
- padding: 8px 8px;
882
- text-decoration: none;
883
- }
884
-
885
- /* =Addons Page
886
- -------------------------------------------------------------- */
887
- ul.addons {
888
- margin-bottom: 0;
889
- padding: 0;
890
- overflow: hidden;
891
- }
892
- ul.addons li {
893
- background: none repeat scroll 0 0 #FFFFFF;
894
- border: 1px solid #E1E1E1;
895
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
896
- position: relative;
897
- float: left;
898
- margin: 10px 15px 20px;
899
-
900
- padding: 13px 13px 30px 13px;
901
- width: 180px;
902
- min-height: 300px;
903
- }
904
- .rtl ul.addons li {
905
- float: right;
906
- }
907
- ul.addons li h3 {
908
- font-size: 13px;
909
- }
910
- ul.addons li p {
911
- color: #666666;
912
- }
913
- ul.addons li .button {
914
- bottom: 15px;
915
- right: 15px;
916
- position: absolute;
917
- }
918
- .rtl ul.addons li .button {
919
- left: 15px;
920
- right: auto;
921
- }
922
- ul.addons li span.state {
923
- display: none;
924
- position: absolute;
925
- bottom: 0;
926
- width: 100%;
927
- text-indent: 29px;
928
- height: 30px;
929
- line-height: 30px;
930
- margin-left: -13px;
931
- background: #73a8d0 url('../images/checkmark_white.png') no-repeat 6px 7px;
932
- color: #fff;
933
- font-weight: bold;
934
- }
935
- .rtl ul.addons li span.state {
936
- margin-right: -13px;
937
- margin-left: 0;
938
- }
939
- ul.addons li img {
940
- margin: -15px 0 0 -13px;
941
- }
942
- .rtl ul.addons li img {
943
- margin: -15px -13px 0 0;
944
- }
945
- ul.addons li.active .button {
946
- display: none;
947
- }
948
- ul.addons li.active span.state {
949
- display: block;
950
- }
951
-
952
- /* =WP Pointer
953
- -------------------------------------------------------------- */
954
- .wp-pointer-content {
955
- overflow: hidden;
956
- }
957
- .wp-pointer-content ol {
958
- margin-left: 1.5em;
959
- padding: 0 15px;
960
- }
961
- .rtl .wp-pointer-content ol {
962
- margin-right: 1.5em;
963
- margin-left: 0;
964
- }
965
- .wp-pointer-right {
966
- margin-right: 15px;
967
- }
968
- .rtl .wp-pointer-right {
969
- margin-left: 15px;
970
- margin-right: 0;
971
- }
972
-
973
- /* =Responsive
974
- -------------------------------------------------------------- */
975
- @media only screen and (max-width: 850px) {
976
- .columns-container {
977
- margin-right: 0;
978
- }
979
- .rtl .columns-container {
980
- margin-left: 0;
981
- margin-right: auto;
982
- }
983
- .columns-right {
984
- margin-top: 0;
985
- margin-right: 0;
986
- width: 100%;
987
- }
988
- .rtl .columns-right {
989
- margin-left: 0;
990
- margin-right: auto;
991
- }
992
- .columns-right-inside.fixed {
993
- position: relative;
994
- top: 0;
995
- width: 100%;
996
- }
997
- .columns-right #addon-state {
998
- display: none;
999
- }
1000
- .columns-right #plugin-support {
1001
- display: none;
1002
- }
1003
- }
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: 55%;
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
+ display: none;
213
+ color: #a00;
214
+ text-decoration: none;
215
+ text-shadow: none;
216
+ font-weight: normal;
217
+ margin-left: 5px;
218
+ font-size: 12px;
219
+ }
220
+ .cpac-column .column-meta table tr td.column_label .inner > a.edit-button:hover,
221
+ .cpac-column .column-meta table tr td.column_label .inner > a.remove-button:hover {
222
+ color: #f00;
223
+ }
224
+ .cpac-column .column-meta table tr td.column_label .inner > a.edit-button {
225
+ color: #0074a2;
226
+ }
227
+ .cpac-column .column-meta table tr td.column_label .inner > a.edit-button:hover {
228
+ color: #2ea2cc;
229
+ }
230
+ .cpac-column .column-meta table tr td.column_label .inner .meta {
231
+ display: inline-block;
232
+ float: right;
233
+ font-weight: normal;
234
+ color: #b2b2b2;
235
+ font-size: 12px;
236
+ }
237
+ .cpac-column .column-meta table tr td.column_label span.vers {
238
+ float: left;
239
+ }
240
+ .cpac-column .column-meta table tr td.column_type {
241
+ width: auto;
242
+ text-align: right;
243
+ vertical-align: middle;
244
+ color: #999999;
245
+ padding-right: 0;
246
+ }
247
+ .cpac-column .column-meta table tr td.column_edit {
248
+ width: 38px;
249
+ background: transparent url('../images/arrow.png') no-repeat 23px 18px;
250
+ cursor: pointer;
251
+ }
252
+ .cpac-column .column-meta:hover .column_label .inner > a.remove-button {
253
+ display: inline-block;
254
+ }
255
+ .cpac-column .column-meta:hover .column_label .inner > a.edit-button {
256
+ display: inline-block;
257
+ }
258
+ .cpac-column .column-meta span.vers {
259
+ padding-top: 2px;
260
+ }
261
+ .cpac-column .column-meta span.vers .comment-grey-bubble {
262
+ background: transparent url("../images/comment-grey-bubble.png") no-repeat 0 0;
263
+ height: 12px;
264
+ width: 12px;
265
+ float: right;
266
+ }
267
+ .cpac-column .column-form {
268
+ display: none;
269
+ border-width: 1px 1px 0;
270
+ border-style: solid;
271
+ border-color: #dfdfdf;
272
+ }
273
+ .cpac-column .column-form table {
274
+ border: none;
275
+ background: #fcfcfc;
276
+ }
277
+ .cpac-column .column-form table tr td {
278
+ vertical-align: top;
279
+ border: none;
280
+ padding: 8px;
281
+ background: #ffffff;
282
+ border-top: 1px solid #F5F5F5;
283
+ }
284
+ .cpac-column .column-form table tr td select,
285
+ .cpac-column .column-form table tr td input[type=text] {
286
+ width: 99.95%;
287
+ }
288
+ .cpac-column .column-form table tr td select optgroup:nth-child(2n) {
289
+ background: #F9F9F9;
290
+ }
291
+ .cpac-column .column-form table tr td.label {
292
+ position: relative;
293
+ overflow: visible;
294
+ background: #F9F9F9;
295
+ background: #f5f5f5;
296
+ border-right: 1px solid #E1E1E1;
297
+ vertical-align: top;
298
+ width: 34%;
299
+ border-top: 1px solid #F0F0F0;
300
+ }
301
+ .cpac-column .column-form table tr td.label label {
302
+ font-weight: bold;
303
+ color: #333333;
304
+ display: block;
305
+ position: relative;
306
+ }
307
+ .cpac-column .column-form table tr td.label p {
308
+ color: #666666;
309
+ display: block;
310
+ font-size: 12px;
311
+ font-style: normal;
312
+ line-height: 16px;
313
+ margin: 0 !important;
314
+ }
315
+ .cpac-column .column-form table tr td.label p.description {
316
+ display: none;
317
+ position: absolute;
318
+ z-index: 99;
319
+ top: 30px;
320
+ left: 0;
321
+ background: #eaf2fa;
322
+ border-radius: 5px;
323
+ border: 1px solid #c7d7e2;
324
+ padding: 5px 8px !important;
325
+ font-weight: normal;
326
+ }
327
+ .cpac-column .column-form table tr td.label p.description em {
328
+ display: block;
329
+ color: #999;
330
+ }
331
+ .cpac-column .column-form table tr td.input label {
332
+ padding-left: 10px;
333
+ padding-right: 0;
334
+ }
335
+ .cpac-column .column-form table tr td.input div.msg {
336
+ margin-top: 5px;
337
+ display: none;
338
+ color: #333;
339
+ padding: 6px 8px;
340
+ background-color: #ffebe8;
341
+ border: 1px solid #fff;
342
+ -moz-border-radius: 3px;
343
+ -webkit-border-radius: 3px;
344
+ border-radius: 3px;
345
+ }
346
+ .cpac-column .column-form table tr.column_width div.description {
347
+ font-size: 11px;
348
+ width: 12%;
349
+ float: left;
350
+ text-align: middle;
351
+ }
352
+ .cpac-column .column-form table tr.column_width div.input-width-range {
353
+ float: left;
354
+ position: relative;
355
+ width: 87%;
356
+ margin-top: 4px;
357
+ }
358
+ .cpac-column .column-form table tr.column_width div.input-width-range .ui-slider-handle {
359
+ cursor: ew-resize;
360
+ }
361
+ .cpac-column .column-form table tr.column_image_size {
362
+ border: 10px solid red;
363
+ }
364
+ .cpac-column .column-form table tr.column_image_size td.input label.custom-size {
365
+ display: inline-block;
366
+ margin-top: 4px;
367
+ margin-bottom: 4px;
368
+ }
369
+ .cpac-column .column-form table tr.column_image_size td.input label.custom-size input {
370
+ margin-right: 3px;
371
+ }
372
+ .cpac-column .column-form table tr.column_image_size td.input .custom_image_size {
373
+ display: inline-block;
374
+ }
375
+ .cpac-column .column-form table tr.column_image_size td.input .custom_image_size .hidden {
376
+ display: none;
377
+ }
378
+ .cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-w,
379
+ .cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-h {
380
+ margin: 0;
381
+ }
382
+ .cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-w.hidden,
383
+ .cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-h.hidden {
384
+ display: none;
385
+ }
386
+ .cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-w input[type="text"],
387
+ .cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-h input[type="text"] {
388
+ margin-right: 3px;
389
+ width: 30px !important;
390
+ }
391
+ .cpac-column .column-form table tr.column_action td {
392
+ background: #f9f9f9;
393
+ }
394
+ .cpac-column .column-form table tr.column_action td p {
395
+ margin: 0;
396
+ }
397
+ .cpac-column .column-form table tr.column_action td p a.remove-button {
398
+ color: #a00;
399
+ text-decoration: none;
400
+ text-shadow: none;
401
+ font-weight: normal;
402
+ margin-left: 5px;
403
+ font-size: 12px;
404
+ padding: 0 5px;
405
+ }
406
+ .cpac-column .column-form table tr.column_action td p a.remove-button:hover {
407
+ color: #fff;
408
+ background: #f00;
409
+ }
410
+ .cpac-column .column-form table tr:first-child td {
411
+ border-top: none;
412
+ }
413
+ .cpac-column.opened .column-meta {
414
+ background-color: #c7c7c7;
415
+ background-image: -ms-linear-gradient(top, #e9e9e9, #c7c7c7);
416
+ background-image: -moz-linear-gradient(top, #e9e9e9, #c7c7c7);
417
+ background-image: -o-linear-gradient(top, #e9e9e9, #c7c7c7);
418
+ background-image: -webkit-gradient(linear, left top, left bottom, from(#e9e9e9), to(#c7c7c7));
419
+ background-image: -webkit-linear-gradient(top, #e9e9e9, #c7c7c7);
420
+ background-image: linear-gradient(top, #e9e9e9, #c7c7c7);
421
+ border-color: #aeaeae;
422
+ }
423
+ .cpac-column.opened .column-meta table {
424
+ background: transparent;
425
+ }
426
+ .cpac-column.opened .column-meta table td {
427
+ border-color: #f8f8f8;
428
+ color: #333;
429
+ text-shadow: 0 1px 0 #FFFFFF;
430
+ }
431
+ .cpac-column.opened .column-meta table td a {
432
+ color: #333;
433
+ text-shadow: 0 1px 0 #FFFFFF;
434
+ }
435
+ .cpac-column.opened .column-meta table td.column_sort {
436
+ background-position: 8px -39px;
437
+ }
438
+ .cpac-column.opened .column-meta table td.column_label .inner .meta {
439
+ color: #808080;
440
+ }
441
+ .cpac-column.opened .column-meta table td.column_type {
442
+ color: #5C5C5C;
443
+ }
444
+ /**
445
+ * Column: Footer
446
+ * ----------------------------------------------------------------------------
447
+ */
448
+ .column-footer {
449
+ background: #EAF2FA;
450
+ border: 1px solid #c7d7e2;
451
+ min-height: 26px;
452
+ padding: 8px;
453
+ overflow: hidden;
454
+ }
455
+ .column-footer .order-message {
456
+ background: transparent url('../images/order_arrow.png') no-repeat 0 0;
457
+ color: #7A9BBE;
458
+ float: left;
459
+ font-family: Comic Sans MS, sans-serif;
460
+ font-size: 11px;
461
+ height: 13px;
462
+ line-height: 1em;
463
+ margin-left: 4px;
464
+ padding: 7px 0 0 22px;
465
+ text-shadow: 0 1px 0 #FFFFFF;
466
+ display: inline-block;
467
+ }
468
+ .column-footer .button-container {
469
+ float: right;
470
+ display: inline-block;
471
+ margin-top: -5px;
472
+ }
473
+ .column-footer .button-container a {
474
+ display: inline-block;
475
+ margin-top: 5px;
476
+ }
477
+ /**
478
+ * Welcome Screen
479
+ * ----------------------------------------------------------------------------
480
+ */
481
+ .cpac-content-body hr {
482
+ -moz-border-bottom-colors: none;
483
+ -moz-border-left-colors: none;
484
+ -moz-border-right-colors: none;
485
+ -moz-border-top-colors: none;
486
+ background: none repeat scroll 0 0 transparent;
487
+ border-color: #dfdfdf -moz-use-text-color -moz-use-text-color;
488
+ border-image: none;
489
+ border-right: 0 none;
490
+ border-style: solid none none;
491
+ border-width: 1px 0 0;
492
+ clear: both;
493
+ margin: 30px 0;
494
+ opacity: 0.2;
495
+ }
496
+ #cpac-welcome.about-wrap div.error {
497
+ display: block !important;
498
+ }
499
+ .cpac-alert {
500
+ display: inline-block;
501
+ background: none repeat scroll 0 0 #FCF8E3;
502
+ border: 1px solid #FBEED5;
503
+ border-radius: 4px 4px 4px 4px;
504
+ color: #C09853;
505
+ margin: 20px 0;
506
+ padding: 16px 14px;
507
+ text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
508
+ }
509
+ .cpac-alert p {
510
+ margin: 0;
511
+ }
512
+ .cpac-alert.cpac-alert-success {
513
+ background-color: #DFF0D8;
514
+ border-color: #D6E9C6;
515
+ color: #468847;
516
+ }
517
+ .cpac-alert.cpac-alert-error {
518
+ background-color: #F2DEDE;
519
+ border-color: #EED3D7;
520
+ color: #B94A48;
521
+ }
522
+ .cpac-alert a.button-primary {
523
+ height: 28px;
524
+ line-height: 28px;
525
+ display: inline-block;
526
+ }
527
+ #cpac-download-add-ons-table {
528
+ max-width: 600px;
529
+ }
530
+ .wp-core-ui .button-large {
531
+ height: 40px;
532
+ line-height: 40px;
533
+ font-size: 16px;
534
+ padding: 0 15px;
535
+ text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
536
+ }
537
+ /**
538
+ * Sidebar
539
+ * ----------------------------------------------------------------------------
540
+ */
541
+ .columns-right {
542
+ margin-top: 54px;
543
+ }
544
+ .columns-right .sidebox {
545
+ background: none repeat scroll 0 0 #FFFFFF;
546
+ border: 1px solid #E1E1E1;
547
+ border-radius: 0 0 0 0;
548
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
549
+ position: relative;
550
+ margin-bottom: 14px;
551
+ }
552
+ .columns-right .sidebox h3 {
553
+ padding: 10px;
554
+ margin: 0;
555
+ }
556
+ .columns-right .sidebox h3.title {
557
+ font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
558
+ font-size: 15px;
559
+ font-weight: normal;
560
+ line-height: 1;
561
+ margin: 0;
562
+ padding: 7px 10px;
563
+ background: #f1f1f1;
564
+ background-image: -webkit-gradient(linear, left bottom, left top, from(#ececec), to(#f9f9f9));
565
+ background-image: -webkit-linear-gradient(bottom, #ececec, #f9f9f9);
566
+ background-image: -moz-linear-gradient(bottom, #ececec, #f9f9f9);
567
+ background-image: -o-linear-gradient(bottom, #ececec, #f9f9f9);
568
+ background-image: linear-gradient(to top, #ececec, #f9f9f9);
569
+ border-bottom-color: #dfdfdf;
570
+ text-shadow: #fff 0 1px 0;
571
+ -webkit-box-shadow: 0 1px 0 #fff;
572
+ box-shadow: 0 1px 0 #fff;
573
+ border-bottom-style: solid;
574
+ border-bottom-width: 1px;
575
+ }
576
+ .columns-right .sidebox .inside {
577
+ padding: 10px;
578
+ }
579
+ .columns-right .sidebox .inside p {
580
+ margin-top: 0;
581
+ }
582
+ .columns-right .sidebox#form-actions .form-reset {
583
+ border-bottom: 1px solid #F5F5F5;
584
+ padding: 8px;
585
+ }
586
+ .columns-right .sidebox#form-actions .reset-column-type {
587
+ text-decoration: none;
588
+ color: #BC0B0B;
589
+ line-height: 25px;
590
+ display: inline-block;
591
+ }
592
+ .columns-right .sidebox#form-actions .form-update {
593
+ padding: 8px;
594
+ overflow: hidden;
595
+ }
596
+ .columns-right .sidebox#form-actions .submit-update {
597
+ display: block;
598
+ width: 100%;
599
+ height: 28px;
600
+ line-height: 28px;
601
+ text-align: center;
602
+ }
603
+ .columns-right .sidebox#pro-version .cta {
604
+ background: transparent url(../images/get_the_addon.png) no-repeat 0 0;
605
+ }
606
+ .columns-right .sidebox#pro-version .padding-box {
607
+ padding: 8px 15px 0;
608
+ }
609
+ .columns-right .sidebox#pro-version h3 a {
610
+ color: #fff;
611
+ font-size: 19px;
612
+ text-decoration: none;
613
+ font-weight: normal;
614
+ margin-top: 6px;
615
+ }
616
+ .columns-right .sidebox#pro-version .inside ul {
617
+ margin: 0 0 10px 0;
618
+ }
619
+ .columns-right .sidebox#pro-version .inside ul li {
620
+ margin: 0;
621
+ padding: 0;
622
+ }
623
+ .columns-right .sidebox#pro-version .inside ul li a {
624
+ display: inline-block;
625
+ height: 24px;
626
+ font-size: 19px;
627
+ line-height: 24px;
628
+ margin-bottom: 1px;
629
+ padding: 0 5px;
630
+ background: #000;
631
+ color: #fff;
632
+ text-decoration: none;
633
+ }
634
+ .columns-right .sidebox#pro-version .inside p {
635
+ color: #fff;
636
+ font-size: 12px;
637
+ }
638
+ .columns-right .sidebox#pro-version .inside p a {
639
+ color: #fff;
640
+ display: inline-block;
641
+ background: #a4c518;
642
+ padding: 0 2px;
643
+ font-size: 15px;
644
+ text-decoration: none;
645
+ }
646
+ /**
647
+ * Setting Tab
648
+ * ----------------------------------------------------------------------------
649
+ */
650
+ table.cpac-form-table {
651
+ max-width: 1100px;
652
+ margin-top: 20px;
653
+ }
654
+ table.cpac-form-table > tbody > tr > td,
655
+ table.cpac-form-table > tbody > tr > th {
656
+ vertical-align: top;
657
+ }
658
+ table.cpac-form-table td.padding-22 {
659
+ padding-top: 22px;
660
+ }
661
+ table.cpac-form-table td .cpac_export .ms-container {
662
+ background: transparent url('../images/switch_bw.png') no-repeat 50% 50%;
663
+ }
664
+ table.cpac-form-table td .cpac_export .ms-container .ms-selectable {
665
+ width: 48%;
666
+ margin-right: 0;
667
+ }
668
+ table.cpac-form-table td .cpac_export .ms-container .ms-selection {
669
+ float: right;
670
+ width: 48%;
671
+ }
672
+ table.cpac-form-table td .cpac_export .ms-container ul.ms-list {
673
+ width: 100%;
674
+ }
675
+ table.cpac-form-table td .cpac_export .ms-container ul.ms-list li {
676
+ margin: 0;
677
+ padding-top: 5px;
678
+ padding-bottom: 5px;
679
+ }
680
+ /**
681
+ * WP Pointer
682
+ * ----------------------------------------------------------------------------
683
+ */
684
+ .wp-pointer-content {
685
+ overflow: hidden;
686
+ }
687
+ .wp-pointer-content ol {
688
+ margin-left: 1.5em;
689
+ padding: 0 15px;
690
+ }
691
+ .wp-pointer-right {
692
+ margin-right: 15px;
693
+ }
694
+ /* =RTL language
695
+ -------------------------------------------------------------- */
696
+ body.rtl .wp-pointer-right {
697
+ margin-left: 15px;
698
+ margin-right: 0;
699
+ }
700
+ body.rtl .wp-pointer-right ol {
701
+ margin-right: 1.5em;
702
+ margin-left: 0;
703
+ }
704
+ body.rtl .cpac-menu .subsubsub {
705
+ margin-left: 14px;
706
+ margin-right: 0;
707
+ }
708
+ body.rtl .columns-container {
709
+ margin-left: 300px;
710
+ margin-right: 0;
711
+ }
712
+ body.rtl .columns-left {
713
+ float: right;
714
+ }
715
+ body.rtl .columns-left .cpac-columns .cpac-column .column-meta img {
716
+ margin-left: 3px;
717
+ margin-right: 0;
718
+ }
719
+ body.rtl .columns-left .cpac-columns .cpac-column .column-meta .column_label .inner > a.remove-button {
720
+ margin-right: 12px;
721
+ margin-left: 0;
722
+ }
723
+ body.rtl .columns-left .cpac-columns .cpac-column .column-meta .column_label .inner .meta {
724
+ float: left;
725
+ }
726
+ body.rtl .columns-left .cpac-columns .cpac-column .column-meta .column_label span.vers {
727
+ float: right;
728
+ }
729
+ body.rtl .columns-left .cpac-columns .cpac-column .column-meta .column_type {
730
+ text-align: left;
731
+ padding-left: 0;
732
+ padding-right: auto;
733
+ }
734
+ body.rtl .columns-left .cpac-columns .cpac-column .column-meta span.vers .comment-grey-bubble {
735
+ float: left;
736
+ }
737
+ body.rtl .columns-left .cpac-columns .cpac-column .column-form table tr.column_image_size td.input label input {
738
+ margin-left: 3px;
739
+ margin-right: 0;
740
+ }
741
+ body.rtl .columns-left .cpac-columns .cpac-column .column-form table tr td.label p.description {
742
+ right: 0;
743
+ left: auto;
744
+ }
745
+ body.rtl .columns-left .cpac-columns .cpac-column .column-form table tr td.label a.more-info {
746
+ float: left;
747
+ }
748
+ body.rtl .columns-left .cpac-columns .cpac-column .column-form div.description {
749
+ float: right;
750
+ }
751
+ body.rtl .columns-left .cpac-columns .cpac-column .column-form div.input-width-range {
752
+ float: right;
753
+ }
754
+ body.rtl .columns-left .cpac-columns .cpac-column .column-form tr td.input label {
755
+ padding-left: 10px;
756
+ padding-right: 0;
757
+ }
758
+ body.rtl .columns-left .cpac-columns .cpac-column .column-form a.help {
759
+ float: left;
760
+ }
761
+ body.rtl .columns-left .column-footer .order-message {
762
+ float: right;
763
+ padding-right: 22px;
764
+ padding-left: 0;
765
+ background: transparent url('../images/order_arrow-rtl.png') no-repeat right top;
766
+ }
767
+ body.rtl .columns-left .column-footer .button-container {
768
+ float: left;
769
+ }
770
+ body.rtl .columns-right {
771
+ float: left;
772
+ margin-left: -300px;
773
+ margin-right: 0;
774
+ }
775
+ body.rtl .cpac-placeholder {
776
+ padding: 5px 0 7px 4px;
777
+ }
778
+ body.rtl .cpac_export .ms-container .ms-selection {
779
+ float: left;
780
+ }
781
+ /* =Responsive
782
+ -------------------------------------------------------------- */
783
+ @media only screen and (max-width: 900px) {
784
+ .columns-container {
785
+ margin-right: 0;
786
+ }
787
+ .columns-container .columns-left {
788
+ float: none;
789
+ }
790
+ .columns-container .columns-right {
791
+ float: none;
792
+ margin-top: 0;
793
+ margin-right: 0;
794
+ width: 100%;
795
+ }
796
+ .columns-container .columns-right .columns-right-inside.fixed {
797
+ position: relative;
798
+ top: 0;
799
+ width: 100%;
800
+ }
801
+ }
assets/css/column.css CHANGED
@@ -1,76 +1,72 @@
1
- /* =General
2
- -------------------------------------------------------------- */
3
- .cpac-divider {
4
- display: inline-block;
5
- width: 14px;
6
- height: 12px;
7
- background: transparent url(../images/square.png) no-repeat 50% 7px;
8
- }
9
- span.status-open {}
10
- span.status-closed {
11
- color: red;
12
- }
13
- .tablenav.top .cpac-edit {
14
- top: 0;
15
- display: inline-block;
16
- vertical-align: bottom;
17
- }
18
-
19
- /* =Images Column
20
- -------------------------------------------------------------- */
21
- .cpac-column-value-image {
22
- display: inline-block;
23
- background: transparent;
24
- margin-right: 2px;
25
- overflow: hidden;
26
- }
27
- .rtl .cpac-column-value-image {
28
- margin-left: 2px;
29
- margin-right: 0;
30
- }
31
- .cpac-column-value-image img {
32
- display: block;
33
- margin: 0 auto;
34
- }
35
- .column-column-attachment img {
36
- padding-right: 5px;
37
- padding-bottom: 4px;
38
- }
39
- .rtl .column-column-attachment img {
40
- padding-left: 5px;
41
- padding-right: 0;
42
- }
43
-
44
- /* =Color Column
45
- -------------------------------------------------------------- */
46
- div.cpac-color {
47
- line-height: 26px;
48
- }
49
- div.cpac-color span {
50
- display: block;
51
- -webkit-border-radius: 3px;
52
- border-radius: 3px;
53
- color: #ffffff;
54
- float: left;
55
- height: 16px;
56
- line-height: 16px;
57
- margin-right: 12px;
58
- min-width: 30px;
59
- overflow: hidden;
60
- padding: 4px 5px;
61
- font-size: 10px;
62
- font-family: Monaco,Menlo,Consolas,"Courier New",monospace;
63
- min-width: 47px;
64
- text-align: center;
65
- }
66
- .rtl div.cpac-color span {
67
- float: right;
68
- margin-left: 12px;
69
- margin-right: 0;
70
- }
71
-
72
- /* =Available Sizes column
73
- -------------------------------------------------------------- */
74
- div.sizes span.not-available {
75
- color: #999;
76
- }
1
+ /* =General
2
+ -------------------------------------------------------------- */
3
+ .cpac-divider {
4
+ display: inline-block;
5
+ width: 14px;
6
+ height: 12px;
7
+ background: transparent url(../images/square.png) no-repeat 50% 7px;
8
+ }
9
+ span.status-closed {
10
+ color: red;
11
+ }
12
+ .tablenav.top .cpac-edit {
13
+ top: 0;
14
+ display: inline-block;
15
+ vertical-align: bottom;
16
+ }
17
+ /* =Images Column
18
+ -------------------------------------------------------------- */
19
+ .cpac-column-value-image {
20
+ display: inline-block;
21
+ background: transparent;
22
+ margin-right: 2px;
23
+ overflow: hidden;
24
+ }
25
+ .rtl .cpac-column-value-image {
26
+ margin-left: 2px;
27
+ margin-right: 0;
28
+ }
29
+ .cpac-column-value-image img {
30
+ display: block;
31
+ margin: 0 auto;
32
+ }
33
+ .column-column-attachment img {
34
+ padding-right: 5px;
35
+ padding-bottom: 4px;
36
+ }
37
+ .rtl .column-column-attachment img {
38
+ padding-left: 5px;
39
+ padding-right: 0;
40
+ }
41
+ /* =Color Column
42
+ -------------------------------------------------------------- */
43
+ div.cpac-color {
44
+ line-height: 26px;
45
+ }
46
+ div.cpac-color span {
47
+ display: block;
48
+ -webkit-border-radius: 3px;
49
+ border-radius: 3px;
50
+ color: #ffffff;
51
+ float: left;
52
+ height: 16px;
53
+ line-height: 16px;
54
+ margin-right: 12px;
55
+ min-width: 30px;
56
+ overflow: hidden;
57
+ padding: 4px 5px;
58
+ font-size: 10px;
59
+ font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
60
+ min-width: 47px;
61
+ text-align: center;
62
+ }
63
+ .rtl div.cpac-color span {
64
+ float: right;
65
+ margin-left: 12px;
66
+ margin-right: 0;
67
+ }
68
+ /* =Available Sizes column
69
+ -------------------------------------------------------------- */
70
+ div.sizes span.not-available {
71
+ color: #999;
72
+ }
assets/css/custom-fields.css DELETED
@@ -1,2 +0,0 @@
1
- /* =Custom Fields
2
- -------------------------------------------------------------- */
assets/js/admin-columns.js CHANGED
@@ -7,7 +7,6 @@ jQuery(document).ready(function() {
7
if ( jQuery('#cpac').length === 0 )
8
return false;
9
10
-
11
// General
12
cpac_pointer();
13
cpac_submit_form();
@@ -22,10 +21,11 @@ jQuery(document).ready(function() {
22
cpac_add_column();
23
cpac_sidebar_scroll();
24
25
- /** we start by binding the toggle and remove events. */
26
- jQuery('.cpac-column').each( function(i,col) {
27
- jQuery(col).column_bind_toggle();
28
- jQuery(col).column_bind_remove();
29
});
30
});
31
@@ -53,12 +53,13 @@ jQuery.fn.column_bind_toggle = function() {
53
54
var column = jQuery(this);
55
56
- column.find('td.column_edit, td.column_label a.toggle' ).click( function(){
57
58
column.toggleClass('opened').find('.column-form').slideToggle(150);
59
60
- if ( !column.hasClass('events-binded') )
61
column.column_bind_events();
62
63
column.addClass('events-binded');
64
@@ -478,8 +479,10 @@ function cpac_sortable() {
478
* @since 1.5
479
*/
480
function cpac_menu() {
481
// click
482
- jQuery('#cpac div.cpac-menu a').click( function(e, el) {
483
484
var id = jQuery(this).attr('href');
485
@@ -493,11 +496,110 @@ function cpac_menu() {
493
494
// set current
495
jQuery(this).addClass('current');
496
- jQuery('.columns-container[data-type="' + type + '"]').show();
497
}
498
499
e.preventDefault();
500
});
501
}
502
503
7
if ( jQuery('#cpac').length === 0 )
8
return false;
9
10
// General
11
cpac_pointer();
12
cpac_submit_form();
21
cpac_add_column();
22
cpac_sidebar_scroll();
23
24
+ // we start by binding the toggle and remove events.
25
+ jQuery('.cpac-column').each( function( i, col ) {
26
+ jQuery( col ).column_bind_toggle();
27
+ jQuery( col ).column_bind_remove();
28
+ jQuery( col ).cpac_bind_container_addon_events();
29
});
30
});
31
53
54
var column = jQuery(this);
55
56
+ column.find('td.column_edit, td.column_label a.toggle, td.column_label .edit-button' ).click( function(){
57
58
column.toggleClass('opened').find('.column-form').slideToggle(150);
59
60
+ if ( ! column.hasClass('events-binded') ) {
61
column.column_bind_events();
62
+ }
63
64
column.addClass('events-binded');
65
479
* @since 1.5
480
*/
481
function cpac_menu() {
482
+
483
+ var menu = jQuery('#cpac div.cpac-menu');
484
// click
485
+ menu.find('a').click( function(e, el) {
486
487
var id = jQuery(this).attr('href');
488
496
497
// set current
498
jQuery(this).addClass('current');
499
+ var container = jQuery('.columns-container[data-type="' + type + '"]').show();
500
+ var columns = container.find( '.cpac-columns' );
501
+
502
+ // hook for addons
503
+ jQuery( document ).trigger( 'cac_menu_change', columns );
504
}
505
506
e.preventDefault();
507
});
508
+
509
+ // activate first menu
510
+ menu.find('a.current').trigger('click');
511
}
512
513
+ /*
514
+ * Bind events: triggered after column is init, changed or added
515
+ *
516
+ */
517
+ jQuery( document ).bind('column_init column_change column_add', function( e, column ){
518
+ jQuery( column ).cpac_bind_column_addon_events();
519
+ jQuery( column ).cpac_bind_container_addon_events();
520
+ });
521
+
522
+ /*
523
+ * Radio Click events
524
+ *
525
+ */
526
+ jQuery.fn.cpac_bind_column_addon_events = function() {
527
+
528
+ var column = jQuery( this );
529
+ var inputs = column.find('[data-toggle-id] label');
530
+
531
+ // Enable editing: radio button
532
+ inputs.click( function(){
533
+
534
+ var id = jQuery( this ).closest('td.input').data('toggle-id');
535
+ var label = column.find('[data-indicator-id="' + id + '"]' ).removeClass( 'on' );
536
+ var status = jQuery( 'input', this ).val();
537
+
538
+ if ( 'on' == status ) {
539
+ label.addClass( 'on' );
540
+ }
541
+ });
542
+ };
543
+
544
+ /*
545
+ * Indicator Click Events
546
+ *
547
+ */
548
+ jQuery.fn.cpac_bind_container_addon_events = function() {
549
+
550
+ var column = jQuery( this );
551
+ var indicator = column.find('[data-indicator-id]');
552
+
553
+ indicator.unbind('click').click( function() {
554
+
555
+ var id = jQuery( this ).data('indicator-id');
556
+ var radio = column.find('[data-toggle-id="' + id + '"] input' );
557
+
558
+ if ( jQuery( this ).hasClass('on') ) {
559
+ jQuery( this ).removeClass('on').addClass('off');
560
+ radio.filter('[value=off]').prop('checked', true);
561
+ }
562
+ else {
563
+ jQuery( this ).removeClass('off').addClass('on');
564
+ radio.filter('[value=on]').prop('checked', true);
565
+ }
566
+ });
567
+ };
568
+
569
+
570
+ /*
571
+ * Display additional field options
572
+ *
573
+ * Usage: Add to option of the select elemtent the following data prop:
574
+ * <option data-display-option="image_size" ... />
575
+ */
576
+ jQuery.fn.column_display_additional_column_options = function() {
577
+
578
+ jQuery( this ).change( function() {
579
+
580
+ var display = jQuery( this ).find(":selected").attr('data-display-option');
581
+
582
+ var table = jQuery( this ).closest('table');
583
+ var image_size = table.find('.column_image_size').hide();
584
+ var excerpt = table.find('.column_excerpt_length').hide();
585
+ var date = table.find('.column_date_format').hide();
586
+
587
+ if ( 'image_size' === display ) {
588
+ image_size.show();
589
+ }
590
+ if ( 'excerpt' === display ) {
591
+ excerpt.show();
592
+ }
593
+ if ( 'date' === display ) {
594
+ date.show();
595
+ }
596
+ });
597
+ };
598
+
599
+ // bind event
600
+ jQuery(document).bind('column_init column_change column_add', function( e, column ){
601
+ console.log( 'column_init' );
602
+ jQuery( column ).find('tr.column_field_type select').column_display_additional_column_options();
603
+ jQuery( column ).find('tr.column_field select').column_display_additional_column_options();
604
+ });
605
assets/js/custom-fields.js DELETED
@@ -1,53 +0,0 @@
1
- /*
2
- * Bind events: triggered by main plugin
3
- *
4
- */
5
- jQuery(document).bind('column_init', function( e, column ){
6
- jQuery(column).column_bind_custom_field_events();
7
- });
8
- jQuery(document).bind('column_change', function( e, clone ){
9
- jQuery(clone).column_bind_custom_field_events();
10
- });
11
- jQuery(document).bind('column_add', function( e, clone ){
12
- jQuery(clone).column_bind_custom_field_events();
13
- });
14
-
15
- /*
16
- * Form Events
17
- *
18
- * @since 2.0.0
19
- */
20
- jQuery.fn.column_bind_custom_field_events = function() {
21
-
22
- jQuery(this).find( '.column_field_type .input select' ).change( function() {
23
-
24
- var value = jQuery(this).children(":selected").attr('value');
25
-
26
- // image size
27
- var image_size = jQuery(this).closest('table').find('.column_image_size').show();
28
- if( 'image' == value || 'library_id' == value ) {
29
- image_size.show();
30
- }
31
- else {
32
- image_size.hide();
33
- }
34
-
35
- // excerpt length
36
- var excerpt_length = jQuery(this).closest('table').find('.column_excerpt_length').show();
37
- if( 'excerpt' == value ) {
38
- excerpt_length.show();
39
- }
40
- else {
41
- excerpt_length.hide();
42
- }
43
-
44
- // date format
45
- var date_format = jQuery(this).closest('table').find('.column_date_format').show();
46
- if( 'date' == value ) {
47
- date_format.show();
48
- }
49
- else {
50
- date_format.hide();
51
- }
52
- });
53
- };
assets/js/upgrade.js CHANGED
File without changes
assets/less/admin-column.less ADDED
@@ -0,0 +1,998 @@