Gmedia Photo Gallery - Version 1.21.8

Version Description

Download this release

Release Info

Developer pasyuk
Plugin Icon 128x128 Gmedia Photo Gallery
Version 1.21.8
Comparing to
See all releases

Code changes from version 1.21.6 to 1.21.8

admin/assets/css/gmedia.admin.css CHANGED
@@ -1,939 +1,1037 @@
1
- .grand-media-admin-page #wpcontent { background-color: transparent !important; }
 
 
2
 
3
  .grand-media-admin-page #wpbody-content > .update-nag,
4
- .grand-media-admin-page #wpbody-content > .updated.fade {display: none;}
 
 
5
 
6
- #adminmenuback {z-index: 0}
 
 
7
 
8
  #adminmenu #toplevel_page_GrandMedia ul.wp-submenu {
9
- display: none;
10
  }
11
 
12
  #wpfooter {
13
- color: #ffffff;
14
  }
15
 
16
  #wpfooter a {
17
- color: lightblue;
18
  }
19
 
20
  #TB_caption {
21
- height: auto;
22
  }
23
 
24
  a {
25
- color: #0074a2;
26
- text-decoration: none;
27
  }
28
 
29
  a:hover {
30
- text-decoration: underline;
31
  }
32
 
33
  input[type="checkbox"] {
34
- margin-top: 2px;
35
- margin-right: 2px
36
  }
37
 
38
  input[type="checkbox"], input[type="radio"] {
39
- height: 16px;
40
- width: 16px;
41
- min-width: 0 !important;
42
  }
43
 
44
  input[type="button"] {
45
- min-width: 0 !important;
46
  }
47
 
48
  .checkbox, .radio {
49
- margin-top: 5px;
50
- margin-bottom: 5px;
51
  }
52
 
53
  input::-moz-focus-inner {
54
- border: 0;
55
- padding: 0;
56
- margin-top: -2px;
57
- margin-bottom: -2px;
58
  }
59
 
60
  form,
61
- .gmedia-admin form { margin: 0; }
 
 
62
 
63
- legend.label { text-align: left; display: block; }
 
 
 
64
 
65
- textarea.vert { resize: vertical; }
 
 
66
 
67
- textarea.noResize { resize: none; }
 
 
68
 
69
  body.gmedia-busy {
70
- cursor: wait !important;
71
  }
72
 
73
  iframe {
74
- background-color: #ffffff;
75
  }
76
 
77
- select.disabled {pointer-events: none;}
 
 
78
 
79
  #gmedia-data-helper {
80
- background: #333;
81
- background: rgba(0, 0, 0, .8);
82
- border-radius: 5px;
83
- color: #fff;
84
- padding: 4px 10px;
85
- position: fixed;
86
- z-index: 999999;
87
- max-width: 220px;
88
- word-wrap: break-word;
89
  }
90
 
91
  #gmedia-data-helper:before {
92
- border: solid;
93
- border-color: #333 transparent;
94
- border-width: 0 6px 6px 6px;
95
- bottom: 100%;
96
- content: "";
97
- left: 17px;
98
- position: absolute;
99
- z-index: 99;
100
  }
101
 
102
  #gmedia-data-helper.tiptoleft:before {
103
- left: auto;
104
- right: 17px;
105
  }
106
 
107
  body.gmedia-blank {
108
- height: auto;
109
- min-height: 100%;
110
- padding: 0 0 1px;
111
- box-sizing: border-box;
112
  }
113
 
114
  body.gmedia-blank pre {
115
- margin: 0;
116
- padding: 0;
117
- border: none;
118
  }
119
 
120
  body.gmedia-blank > .hidden {
121
- display: contents;
122
  }
123
 
124
  .gmedia-body div#gm-message {
125
- position: absolute;
126
- right: 5px;
127
- top: 5px;
128
- overflow: visible;
129
- z-index: 200;
130
  }
131
 
132
  .gmedia-body div#gm-message .gm-message {
133
- text-align: right;
134
  }
135
 
136
  div#gmedia-container {
137
- font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
138
- margin: 30px 5px 10px 0;
139
- position: relative;
140
- z-index: 1;
141
- direction: ltr;
142
- min-width: 560px;
143
- -webkit-backface-visibility: hidden;
144
- backface-visibility: hidden;
145
- box-sizing: border-box;
146
  }
147
 
148
  div#gmedia-container * {
149
- box-sizing: inherit;
150
  }
151
 
152
  div#gmedia-container .row,
153
  div.gmedia-modal .row {
154
- padding: 0;
155
  }
156
 
157
  div#gmedia-container form.row {
158
- padding: 15px 0;
159
- display: flex;
160
  }
161
 
162
  body.gmedia-blank div#gmedia-container {
163
- margin: 0;
164
- position: static;
165
- z-index: auto;
166
- direction: ltr;
167
- min-width: auto;
168
- width: 100%;
169
- height: 100%;
170
  }
171
 
172
  div#gmedia-header {
173
- position: relative;
174
- padding: 1px 1px 10px 1px;
175
- display: flex;
176
- flex-wrap: wrap;
177
- align-items: center;
178
  }
179
 
180
  /*noinspection CssInvalidElement*/
181
  div#gmedia-logo {
182
- position: relative;
183
- margin: 0 30px 0 15px;
184
- font-size: 48px;
185
- line-height: 20px;
186
- text-shadow: 1px 1px 4px #000000;
187
- font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
188
- color: #ffffff;
189
- float: left;
190
- /*noinspection CssFloatPxLength*/
191
- -webkit-text-stroke-width: 0.7px;
192
- -webkit-text-stroke-color: #ffffff;
193
- -webkit-font-smoothing: antialiased;
194
- -webkit-user-select: none;
195
- -moz-user-select: none;
196
- -ms-user-select: none;
197
- user-select: none;
198
- cursor: default;
199
  }
200
 
201
  div#gmedia-logo small {
202
- display: block;
203
- font-size: 10px;
204
- margin-top: 7px;
205
- text-align: right;
206
- -webkit-text-stroke-width: 0;
207
  }
208
 
209
  div#gmedia-header h2 {
210
- margin: 0;
211
- font: italic 24px/35px Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
212
- color: #ffffff;
213
- flex: 1 1 180px;
214
  }
215
 
216
  div#gmedia-header .promote-woowbox {
217
- flex: 1 1 50%;
218
- margin-top: -10px;
219
  }
220
 
221
  div#gmedia-header .promote-woowbox img {
222
- border: 1px solid rgba(255, 255, 255, 0.7);
223
  }
224
 
225
  #ajax-long-operation {
226
- position: absolute;
227
- right: 20px;
228
- bottom: 0;
229
- width: 25%;
230
- min-width: 220px;
231
  }
232
 
233
  .progress-bar-indicator {
234
- position: absolute;
235
- width: 100%;
236
- text-align: center;
237
- color: #204D74;
238
  }
239
 
240
  div#gmedia-navbar {
241
- font-size: 14px;
242
  }
243
 
244
  a.list-group-item-premium {
245
- color: #ffffff !important;
246
- background-color: #D82700;
247
- border-color: #A52A2A;
248
- font-weight: bold;
249
  }
250
 
251
  a.list-group-item-premium:hover {
252
- color: #ffffff !important;
253
- background-color: #c52400;
254
- border-color: #A52A2A;
255
- font-weight: bold;
256
  }
257
 
258
  div.custom-message {
259
- padding: 5px 10px;
260
- margin: 0 0 10px;
261
  }
262
 
263
  form.gmedia-search-form {
264
- float: right;
265
- margin-left: 10px;
266
- margin-bottom: 4px;
267
- white-space: nowrap;
268
  }
269
 
270
  form.gmedia-search-form .form-group {
271
- margin: 0;
272
- display: inline-block;
273
- vertical-align: middle;
274
  }
275
 
276
  .gmedia-pager {
277
- margin-bottom: 4px;
278
  }
279
 
280
  form#gmedia-pager {
281
- float: left;
282
- width: auto;
283
  }
284
 
285
  form#gmedia-pager span,
286
  form#gmedia-pager input {
287
- width: auto;
288
- display: inline-block;
289
- vertical-align: inherit;
290
- float: none;
291
  }
292
 
293
  form#gmedia-pager span {
294
- display: flex;
295
- align-items: center;
296
  }
297
 
298
  form#gmedia-pager input.pager_current_page {
299
- padding-left: 0;
300
- padding-right: 0;
301
- text-align: center;
302
- width: 2.5em;
303
  }
304
 
305
  .txt-lg {
306
- font-size: 120%;
307
- line-height: 50%;
308
  }
309
 
310
  a.text-danger {
311
- color: #a94442;
312
  }
313
 
314
  .btn > input[type="checkbox"] {
315
- margin-top: 0;
316
- width: 16px;
317
- height: 16px;
318
  }
319
 
320
- .va-middle { vertical-align: middle }
 
 
321
 
322
  .gm-backfade {
323
- background-color: rgba(0, 0, 0, 0.1);
324
  }
325
 
326
  .dropdown-menu > .disabled {
327
- cursor: not-allowed;
328
  }
329
 
330
  .dropdown-menu > .disabled > a {
331
- pointer-events: none;
332
  }
333
 
334
- .card-header-fake { display: none; }
 
 
335
 
336
  .panel-floatingHeader .card-header-fake,
337
- .panel-absoluteHeader .card-header-fake { display: block; }
 
 
338
 
339
- .panel-fixed-header { position: relative; }
 
 
340
 
341
- .panel-fixed-header .card-header { position: relative; top: 0; max-width: 100%;
342
- /*transition:top 0.2s ease-out; -webkit-transition:top 0.2s ease-out;*/
 
 
 
343
  }
344
 
345
- .card-header .spinner { margin-top: 0; }
 
 
346
 
347
  body.gmedia-blank .panel-floatingHeader .card-header,
348
  .panel-floatingHeader .card-header {
349
- position: fixed;
350
- top: 32px;
351
- z-index: 20;
352
- border-radius: 0;
353
- -webkit-box-shadow: 0 5px 10px #888888;
354
- -moz-box-shadow: 0 5px 10px #888888;
355
- box-shadow: 0 5px 10px #888888;
356
  }
357
 
358
  body.gmedia-blank .panel-floatingHeader .card-header {
359
- top: 0;
360
  }
361
 
362
  body.gmedia-blank .panel-absoluteHeader .card-header,
363
  .panel-absoluteHeader .card-header {
364
- position: absolute;
365
- z-index: 10;
366
- top: auto;
367
- bottom: 0;
368
- border-bottom: 1px solid transparent;
369
- border-bottom-right-radius: 3px;
370
- border-bottom-left-radius: 3px;
371
  }
372
 
373
  .dropdown-menu:not(.bootstrap-datetimepicker-widget) {
374
- max-height: calc(100vh - 50px);
375
- overflow-y: auto;
376
- transform: translateX(0) !important;
377
- top: calc(100% + 2px) !important;
378
- bottom: auto !important;
379
  }
380
 
381
  a.btn,
382
  a.dropdown-item {
383
- text-decoration: none;
384
  }
385
 
386
  div#gm-list-table {
387
- font-size: 13px;
388
- display: flex;
389
- flex-wrap: wrap;
390
  }
391
 
392
  div#gm-list-table::before {
393
- display: block;
394
- content: '';
395
- float: left;
396
- width: 0;
397
- height: auto;
398
- overflow: hidden;
399
  }
400
 
401
  .list-group-item {
402
- margin: 0;
403
- width: 100%;
404
  }
405
 
406
  .list-group-item.row {
407
- position: relative;
408
- margin-left: 0;
409
- margin-right: 0;
410
- padding-left: 0;
411
- padding-right: 0;
412
  }
413
 
414
  div.list-group-item.d-row {
415
- position: relative;
416
- color: inherit;
417
- z-index: 1;
418
- display: flex;
419
  }
420
 
421
  .no-touch div.list-group-item.d-row:hover {
422
- background-color: #fafafa;
423
  }
424
 
425
  .no-touch form.list-group-item.d-row:hover {
426
- background-color: #fcfcfc;
427
  }
428
 
429
  .list-group-item.d-row.gm-selected {
430
- color: #444444;
431
- border-color: #dddddd;
432
- background-color: rgb(250, 255, 245);
433
- -webkit-box-shadow: inset -1px 0 0 2px rgb(250, 255, 245), inset 7px 0 0 0 #1e8cbe;
434
- -moz-box-shadow: inset -1px 0 0 2px rgb(250, 255, 245), inset 7px 0 0 0 #1e8cbe;
435
- box-shadow: inset -1px 0 0 2px rgb(250, 255, 245), inset 7px 0 0 0 #1e8cbe;
436
  }
437
 
438
  .no-touch .list-group-item.d-row.gm-selected:hover {
439
- color: #444444;
440
- border-color: #dddddd;
441
- background-color: rgb(245, 255, 240);
442
- -webkit-box-shadow: inset -1px 0 0 2px rgb(245, 255, 240), inset 7px 0 0 0 #1e8cbe;
443
- -moz-box-shadow: inset -1px 0 0 2px rgb(245, 255, 240), inset 7px 0 0 0 #1e8cbe;
444
- box-shadow: inset -1px 0 0 2px rgb(245, 255, 240), inset 7px 0 0 0 #1e8cbe;
445
  }
446
 
447
  div#gmedia-container .list-group-item-info,
448
  div#gmedia-container .list-group-item-info:hover {
449
- background-color: #d9edf7 !important;
450
- color: inherit !important;
451
  }
452
 
453
  div#gmedia-container .list-group-item-warning,
454
  div#gmedia-container .list-group-item-warning:hover {
455
- background-color: #fcf8e3 !important;
456
- color: inherit !important;
457
  }
458
 
459
  div#gmedia-container .item-after-limit {
460
- filter: blur(1px);
461
- -webkit-filter: blur(1px);
462
- -moz-filter: blur(1px);
463
- -o-filter: blur(1px);
464
- -ms-filter: blur(1px);
465
- filter: progid:DXImageTransform.Microsoft.Blur(PixelRadius='1');
466
  }
467
 
468
  .bg-status-private {
469
- background-color: #d9edf7;
470
- -webkit-box-shadow: 3px 0 0 5px #d9edf7, -2px 0 0 5px #6fbfff;
471
- -moz-box-shadow: 3px 0 0 5px #d9edf7, -2px 0 0 5px #6fbfff;
472
- box-shadow: 3px 0 0 5px #d9edf7, -2px 0 0 5px #6fbfff;
473
  }
474
 
475
  .bg-status-draft {
476
- background-color: #fcf8e3;
477
- -webkit-box-shadow: 3px 0 0 5px #fcf8e3, -2px 0 0 5px #ffd87c;
478
- -moz-box-shadow: 3px 0 0 5px #fcf8e3, -2px 0 0 5px #ffd87c;
479
- box-shadow: 3px 0 0 5px #fcf8e3, -2px 0 0 5px #ffd87c;
480
  }
481
 
482
  input.gm-order-input {
483
- float: right;
484
- border: 1px solid #ccc;
485
- border-radius: 3px;
486
- padding: 1px 3px;
487
- margin: 0;
488
- font-size: 12px;
489
- line-height: 120%;
490
- width: 3em;
491
- text-align: right;
492
  }
493
 
494
- .form-group .gmpost-com-count {font-size: 16px;}
 
 
495
 
496
- .gmpost-com-count:hover {text-decoration: none}
 
 
497
 
498
  label.cb_media-object-gallery {
499
- width: 40px;
500
- position: absolute;
501
- left: 5px;
502
- top: 0; bottom: 0;
503
- text-align: center;
504
- padding-top: 4px;
 
505
  }
506
 
507
  .d-row .img-thumbnail {
508
- margin-bottom: 0;
509
  }
510
 
511
  .gm-selected .img-thumbnail {
512
- border-color: #428bca;
513
  }
514
 
515
  .img-thumbnail {
516
- position: relative;
517
- display: inline-block;
518
- max-width: 100%;
519
  }
520
 
521
  .img-thumbnail img {
522
- display: block;
523
- max-width: 100%;
524
- height: auto;
525
  }
526
 
527
  .display-as-grid .gm-item-cell {
528
- padding: 12px 12px 10px;
529
- border: 4px solid #ffffff;
530
- background-color: #f7f7f7;
531
- min-width: 195px;
532
- max-width: 340px;
533
- border-radius: 14px;
534
- flex: 1 1 195px;
535
  }
536
 
537
  .display-as-grid .gm-item-cell-blank {
538
- flex: 1 1 195px;
539
  }
540
 
541
- .display-as-grid .gm-item-cell.ui-highlight-placeholder {margin-bottom: 0;background-color: #2c7c91;}
 
 
 
542
 
543
- .edit-gmedia .gmedia-actions { margin: 10px; }
 
 
 
544
 
545
  .gm-item-cell .gmedia-actions {
546
- overflow: hidden;
547
- position: absolute;
548
- left: 0; top: 0;
549
- transform: translateY(100%) translateZ(0);
550
- opacity: 0;
551
- transition: transform 0.1s, opacity 0.2s;
 
 
 
 
 
552
  }
553
 
554
- .gmedia-actions > * {margin-left: 5px; margin-right: 5px;}
 
 
 
555
 
556
- .gm-item-cell .gmedia-actions > * {float: left;}
 
 
557
 
558
  .gm-item-cell .gmedia-actions * {
559
- -webkit-backface-visibility: hidden;
560
- backface-visibility: hidden;
561
- -webkit-transform-style: preserve-3d;
562
  }
563
 
564
- .gmedia-actions > *:first-child {margin-left: 0;}
 
 
565
 
566
- .gmedia-actions > *:last-child {margin-right: 0;}
 
 
567
 
568
- .related-media-previews {}
 
569
 
570
  .related-media-previews::before,
571
  .related-media-previews::after {
572
- content: "";
573
- display: table;
574
- clear: both;
575
- height: 0;
576
- overflow: hidden;
577
  }
578
 
579
  p.img-thumbnail.gmedia-related-image,
580
  .related-media-previews p.gmedia-related-image {
581
- width: 30%;
582
- float: left;
583
- display: inline-block;
584
- position: relative;
585
- margin-right: 3%;
586
- margin-top: 7px;
587
  }
588
 
589
  .edit-gmedia p.img-thumbnail.gmedia-related-image,
590
  .edit-gmedia .related-media-previews p.gmedia-related-image {
591
- width: 44%;
592
- float: none;
593
- vertical-align: top;
594
  }
595
 
596
  p.img-thumbnail.gmedia-related-image .gm-remove {
597
- padding: 1px;
598
- font-size: 15px;
599
- font-weight: bold;
600
- line-height: 0.7;
601
- border-radius: 50%;
602
- width: 1em;
603
- height: 1em;
604
- box-sizing: content-box;
605
- color: #fff;
606
- background-color: #cc0d00;
607
- text-align: center;
608
- position: absolute;
609
- right: -0.5em;
610
- top: -0.5em;
611
- transform: scale(0);
612
- transition: transform 0.1s ease-in;
613
- cursor: pointer;
614
  }
615
 
616
  p.img-thumbnail.gmedia-related-image:hover .gm-remove {
617
- transform: scale(1);
618
  }
619
 
620
  p.img-thumbnail.gmedia-related-image .image-wrapper {
621
- display: block;
622
- position: relative;
623
- width: 100%;
624
- height: 0;
625
- padding-bottom: 62.5%;
626
- cursor: move;
627
  }
628
 
629
  p.img-thumbnail.gmedia-related-image img.gmedia-thumb {
630
- position: absolute;
631
- left: 0;
632
- top: 0;
633
- width: 100%;
634
- height: 100%;
635
- display: block;
636
- object-fit: contain;
637
  }
638
 
639
  .gm-item-cell .gm-cell-bottom {
640
- position: relative;
641
- min-height: 20px;
642
- margin: 15px 0 0 2px;
643
- overflow: hidden;
644
  }
645
 
646
  .gm-item-cell .gm-cell-title {
647
- overflow: hidden;
648
- font-size: 12px;
649
- font-weight: bold;
650
- cursor: pointer;
651
- opacity: 1;
652
- position: absolute;
653
- left: 0;
654
- top: 0;
655
- width: 100%;
656
- transition: opacity 0.15s;
657
  }
658
 
659
  .gm-item-cell .gm-cell-title span {
660
- display: block;
661
- width: 100%;
662
- white-space: nowrap;
663
- text-overflow: ellipsis;
664
- overflow: hidden;
665
  }
666
 
667
- .gm-item-cell:hover .gm-cell-title { opacity: 0; pointer-events: none;}
 
 
 
668
 
669
- .gm-item-cell:hover .gmedia-actions { transform: translateY(0) translateZ(0); opacity: 1;}
 
 
 
670
 
671
  .display-as-grid div.img-thumbnail {
672
- cursor: pointer;
673
- position: relative;
674
- display: block;
675
- border-radius: 0;
676
- margin: 0;
677
- padding: 0;
678
- -webkit-backface-visibility: hidden;
679
- backface-visibility: hidden;
680
  }
681
 
682
  .display-as-grid div.img-thumbnail:before {
683
- content: "";
684
- display: block;
685
- padding-top: 100%;
686
  }
687
 
688
  .display-as-grid .gm-selected div.img-thumbnail {
689
- -webkit-box-shadow: 0 0 0 7px #1e8cbe;
690
- -moz-box-shadow: 0 0 0 7px #1e8cbe;
691
- box-shadow: 0 0 0 7px #1e8cbe;
692
- border-radius: 1px;
693
  }
694
 
695
  .display-as-grid div.img-thumbnail .cb_media-object,
696
  .display-as-grid div.img-thumbnail .gm-item-cell-media-object {
697
- bottom: 0;
698
- left: 0;
699
- overflow: hidden;
700
- position: absolute;
701
- right: 0;
702
- top: 0;
703
- text-align: center;
704
- margin: 0;
705
  }
706
 
707
  .display-as-grid div.img-thumbnail .gm-cell-more {
708
- position: absolute;
709
- left: 0; top: 0; right: 0;
710
- background: rgba(256, 256, 256, 0.6);
711
- color: #000000;
712
- cursor: auto;
 
 
713
  }
714
 
715
  .display-as-grid div.img-thumbnail .gm-cell-more-btn {
716
- position: absolute;
717
- top: 0; right: 0;
718
- padding: 5px;
719
- cursor: pointer;
720
- color: #1e8cbe;
721
- /*text-shadow: 1px 1px 1px #83acbf;*/
 
722
  }
723
 
724
  .display-as-grid div.img-thumbnail .gm-cell-more-content {
725
- padding: 5px 5px 0;
726
- display: none;
727
- overflow: hidden;
728
- /*transition:all 0.2s easy-out;*/
729
- font-size: 11px;
730
  }
731
 
732
  .display-as-grid div.img-thumbnail .gm-cell-more-content .gmedia-actions {
733
- display: none;
734
  }
735
 
736
  .display-as-grid div.img-thumbnail .gm-cell-more:hover,
737
  .display-as-grid div.img-thumbnail .gm-cell-more.gm-cell-more-active {
738
- z-index: 10;
739
- -webkit-box-shadow: 0 0 0 1px #dddddd, 0 4px 3px -1px rgba(0, 0, 0, 0.3);
740
- -moz-box-shadow: 0 0 0 1px #dddddd, 0 4px 3px -1px rgba(0, 0, 0, 0.3);
741
- box-shadow: 0 0 0 1px #dddddd, 0 4px 3px -1px rgba(0, 0, 0, 0.3);
742
  }
743
 
744
  .display-as-grid div.img-thumbnail .gm-cell-more:hover {
745
- z-index: 11;
746
  }
747
 
748
  .display-as-grid div.img-thumbnail .gm-cell-more:hover > div {
749
- background: rgba(256, 256, 256, 0.7);
750
  }
751
 
752
  .display-as-grid div.img-thumbnail .gm-cell-more-active .gm-cell-more-content .gmedia-actions {
753
- display: block;
754
  }
755
 
756
  .display-as-grid div.img-thumbnail .gm-cell-more.gm-cell-more-active > div {
757
- background: rgba(256, 256, 256, 0.9);
758
  }
759
 
760
  .display-as-grid div.img-thumbnail .gm-cell-more:hover .gm-cell-more-content,
761
  .display-as-grid div.img-thumbnail .gm-cell-more.gm-cell-more-active .gm-cell-more-content {
762
- display: block;
763
  }
764
 
765
  .display-as-grid div.img-thumbnail .gm-cell-more-content p {
766
- font-size: 11px;
767
  }
768
 
769
  .display-as-grid div.img-thumbnail .cb_media-object .centered,
770
  .display-as-grid div.img-thumbnail .gm-item-cell-media-object .centered {
771
- height: 100%;
772
- left: 0;
773
- position: absolute;
774
- top: 0;
775
- transform: translate(50%, 50%) translateZ(0);
776
- width: 100%;
777
  }
778
 
779
  .display-as-grid div.img-thumbnail.landscape .cb_media-object .centered,
780
  .display-as-grid div.img-thumbnail.landscape .gm-item-cell-media-object .centered {
781
- transform: translate(50%, 50.5%) translateZ(0);
782
  }
783
 
784
  .display-as-grid div.img-thumbnail .cb_media-object img,
785
  .display-as-grid div.img-thumbnail .gm-item-cell-media-object img {
786
- left: 0;
787
- position: absolute;
788
- top: 0;
789
- transform: translate(-50%, -50%) translateZ(0);
790
  }
791
 
792
  .display-as-grid div.img-thumbnail.landscape img {
793
- height: 101%;
794
- width: auto;
795
- max-width: initial;
796
  }
797
 
798
  .display-as-grid div.img-thumbnail.portrait img {
799
- height: auto;
800
- width: 100%;
801
  }
802
 
803
  .display-as-grid.invert-ratio div.img-thumbnail.landscape img {
804
- height: auto;
805
- width: 101%;
806
- max-width: initial;
807
  }
808
 
809
  .display-as-grid.invert-ratio div.img-thumbnail.portrait img {
810
- height: 101%;
811
- width: auto;
812
- max-width: initial;
813
  }
814
 
815
  .img-thumbnail img.gmedia-typethumb,
816
  .display-as-grid div.img-thumbnail .cb_media-object img.gmedia-typethumb,
817
  .display-as-grid div.img-thumbnail .gm-item-cell-media-object img.gmedia-typethumb {
818
- position: absolute;
819
- right: 7px;
820
- bottom: 7px;
821
- height: 75px;
822
- max-height: 60%;
823
- width: auto;
824
- max-width: initial;
825
  }
826
 
827
  .display-as-grid div.img-thumbnail .cb_media-object img.gmedia-typethumb,
828
  .display-as-grid div.img-thumbnail .gm-item-cell-media-object img.gmedia-typethumb {
829
- left: auto;
830
- top: auto;
831
- right: 50%;
832
- bottom: 50%;
833
- margin: 0 5px 5px 0;
834
- transform: none;
835
- opacity: 0.9;
836
  }
837
 
838
- .thumbwrap { position: relative; margin-bottom: 5px; }
 
 
 
839
 
840
  .gm-item-check,
841
- .gm-order { position: absolute; right: -8px; bottom: -8px; padding: 5px; margin: 0; border-style: solid; border-color: #1e8cbe; background-color: #ffffff; border-width: 1px 0 0 1px; }
 
 
 
 
 
 
 
 
 
 
842
 
843
- .gm-item-check input { margin: 0; padding: 0; }
 
 
 
844
 
845
  .gm-order input {
846
- display: block;
847
- line-height: 120%;
848
- width: 42px;
849
- padding: 0 2px;
850
- margin: 0;
851
- text-align: center;
852
- border: 1px solid #ccc;
853
- border-radius: 4px;
854
  }
855
 
856
- .thumbwrap .gm-item-check { right: 1px; bottom: 1px; border: 1px solid #dddddd; border-radius: 5px 0 5px 0; border-right-color: transparent; border-bottom-color: transparent; border-width: 1px; }
 
 
 
 
 
 
 
 
857
 
858
- .thumbwrap .cb_media-object { width: 100%; margin: 0; display: flex; }
 
 
 
 
859
 
860
  .cb_media-object .img-thumbnail {
861
- width: 100%;
862
  }
863
 
864
  .media-title {
865
- font-size: 22px;
866
- word-wrap: break-word;
867
  }
868
 
869
- .media-caption:empty { display: none; }
 
 
870
 
871
  .media-caption.in-library {
872
- max-height: 215px;
873
  }
874
 
875
  .media-caption {
876
- background-color: #f5f5f5;
877
- border: 1px solid #cccccc;
878
- border-radius: 4px;
879
- padding: 5px 7px;
880
- margin: 0 -6px 5px;
881
- overflow: auto;
882
- word-break: normal;
883
- word-wrap: break-word;
884
- max-height: 210px;
885
  }
886
 
887
  .media-body .media-caption {
888
- margin: 0;
889
  }
890
 
891
  .media-meta {
892
- width: 100%;
893
- overflow: hidden;
894
- text-overflow: ellipsis; /*white-space:nowrap;*/
895
  }
896
 
897
- .media-meta .gm_gallery_source { font-weight: bold; }
 
 
 
 
 
 
898
 
899
  .media-meta .label-default {
900
- background-color: #eeeeee;
901
- color: #444444;
902
  }
903
 
904
  .gmedia_id {
905
- position: absolute;
906
- right: 10px;
907
- top: 10px;
908
  }
909
 
910
  .term_id {
911
- font-size: 80%;
912
  }
913
 
914
  .term_date {
915
- font-size: 80%;
916
  }
917
 
918
  .term_date:empty {
919
- display: none;
920
  }
921
 
922
  .term_date:before {
923
- content: '[';
924
  }
925
 
926
  .term_date:after {
927
- content: ']';
928
  }
929
 
930
  #gm-list-table .hidden {
931
- display: none !important;
932
- visibility: hidden !important;
933
  }
934
 
935
  form#adv-settings .form-inline .form-group {
936
- margin-right: 20px;
937
  }
938
 
939
  form.changed {
@@ -943,805 +1041,990 @@ form.changed.saved {
943
  }
944
 
945
  form.changed .gm-last-edited {
946
- text-decoration: line-through;
947
  }
948
 
949
  .selectize-input.full input {
950
- width: 4px !important;
951
  }
952
 
953
  .rel-selected-hide {
954
- display: none;
955
  }
956
 
957
  .plupload_wrapper {
958
- min-width: unset;
959
  }
960
 
961
  .gmAddMedia {
962
- padding: 0;
963
  }
964
 
965
  div#pluploadUploader {
966
- padding: 0;
967
- box-sizing: border-box;
968
  }
969
 
970
  div#pluploadUploader > div > div * {
971
- box-sizing: content-box;
972
  }
973
 
974
  .plupload_container {
975
- padding: 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
976
  }
977
 
978
  div#pluploadUploader_container {
979
- min-height: 450px;
980
- border-bottom-right-radius: 4px;
981
  }
982
 
983
  div#pluploadUploader_container .plupload_filelist_footer {
984
- border-bottom-right-radius: 4px;
985
- font-size: 11px;
986
- white-space: nowrap;
987
  }
988
 
989
- div#pluploadUploader_buttons { margin-bottom: 5px; }
 
 
990
 
991
- div.plupload_started { float: left; }
 
 
992
 
993
  div.card-body, div#gmedia-msg-panel, #gmedia-service-msg-panel {
994
- -webkit-transition: all .2s ease-in-out;
995
- transition: all .2s ease-in-out;
996
  }
997
 
998
  .plupload_scroll .plupload_filelist {
999
- height: 315px;
1000
  }
1001
 
1002
  div.card-body:empty, div#gmedia-msg-panel:empty, #gmedia-service-msg-panel:empty {
1003
- padding: 0;
1004
  }
1005
 
1006
  div#gmedia-msg-panel .alert,
1007
  #gmedia-service-msg-panel .alert {
1008
- padding: 2px 35px 2px 12px;
1009
- margin-bottom: 5px;
 
 
 
 
 
1010
  }
1011
 
1012
  .plupload_content li {
1013
- margin-bottom: 0;
1014
  }
1015
 
1016
  .progress {
1017
- position: relative;
1018
- white-space: nowrap;
1019
- font-size: 12px;
1020
- line-height: 20px;
1021
  }
1022
 
1023
  .progress-bar {
1024
- position: absolute;
1025
- overflow: hidden;
1026
  }
1027
 
1028
  .tab-inside {
1029
- padding: 10px;
1030
- position: relative;
1031
  }
1032
 
1033
  .tab-footer {
1034
- border-top: 1px solid #dddddd;
1035
- padding: 20px 10px 0;
1036
  }
1037
 
1038
  div.form-control.selectize-control {
1039
- padding: 0 !important;
1040
  }
1041
 
1042
  .selectize-control.input-sm .selectize-input {
1043
- min-height: 30px;
1044
- padding: 2px 10px;
1045
- font-size: 12px;
1046
- line-height: 1.9;
1047
- border-radius: 3px;
1048
  }
1049
 
1050
  .selectize-control.multi .selectize-input.has-items {
1051
- padding-top: 2px;
1052
  }
1053
 
1054
  .selectize-control.input-sm .selectize-input input {
1055
- font-size: 12px;
1056
  }
1057
 
1058
  .selectize-control.input-sm .selectize-input:after {
1059
- right: 10px;
1060
  }
1061
 
1062
  .selectize-control.input-sm .selectize-input > div {
1063
- line-height: 146%;
1064
  }
1065
 
1066
  .term-list-item {
1067
- padding-top: 0;
1068
- padding-bottom: 0;
1069
- z-index: 1;
1070
  }
1071
 
1072
- .object-actions { text-align: right; font-size: 16px; }
 
 
 
1073
 
1074
- .object-actions.gallery-object-actions { text-align: left; margin-bottom: 5px; }
 
 
 
 
 
 
1075
 
1076
- .object-actions > * { margin: 0 0 0 10px; vertical-align: middle; display: inline-block; }
 
 
 
 
1077
 
1078
- .object-actions.gallery-object-actions > *:first-child { margin-left: 0; }
 
 
1079
 
1080
- .object-actions a:hover { text-decoration: none; }
 
 
1081
 
1082
  /*.gm_filter_in_lib { border:1px solid; border-radius:4px; font-size:14px; line-height:14px; padding:0 2px 0 4px; }*/
1083
- .gm_term_count { font-size: 13px; font-weight: bold; text-decoration: none; vertical-align: bottom; }
 
 
 
 
 
1084
 
1085
- a.trash-icon:hover { color: #843534; }
 
 
1086
 
1087
- .action-inactive { color: #b8b8b8; }
 
 
1088
 
1089
- .action-inactive:hover { color: #b8b8b8; }
 
 
1090
 
1091
  .term-list-item .term-label .checkbox {
1092
- padding-left: 35px;
1093
- padding-top: 6px;
1094
- min-height: 68px;
1095
  }
1096
 
1097
  .term-list-item .term-label .checkbox > input {
1098
- margin-left: -35px;
1099
- margin-top: 2px;
1100
  }
1101
 
1102
  .term-list-item .checkbox input {
1103
- margin-top: 0;
1104
- margin-right: 15px;
1105
  }
1106
 
1107
  .term-list-item .term-description {
1108
- padding: 0;
1109
- white-space: nowrap;
1110
- overflow: hidden;
1111
- color: #444444;
1112
- text-overflow: ellipsis;
1113
  }
1114
 
1115
  .term-list-item .term-description:empty {
1116
- padding: 0;
1117
  }
1118
 
1119
  .term-list-item .object-actions {
1120
- position: absolute;
1121
- right: 0; left: auto; top: 4px;
1122
- line-height: 165%;
 
 
1123
  }
1124
 
1125
  .term-list-item .term-images {
1126
- padding-top: 5px;
1127
- padding-bottom: 5px;
1128
- overflow: hidden;
1129
- white-space: nowrap;
1130
- position: relative;
1131
- z-index: 1;
1132
  }
1133
 
1134
  .term-list-item .term-images img {
1135
- position: relative;
1136
- height: 68px;
1137
- width: auto;
1138
- background-color: #ffffff;
1139
  }
1140
 
1141
- .term-list-item .term_name { margin-right: 80px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 22px; display: inline-block; line-height: 100%; }
 
 
 
 
 
 
 
 
1142
 
1143
- .term-list-item .no-checkbox .term_name { margin-right: 5px; font-size: 16px;}
 
 
 
1144
 
1145
  .term-list-item .term_info_author {
1146
- font-size: 80%;
1147
- white-space: nowrap;
1148
- color: #444444;
1149
  }
1150
 
1151
- .object-actions .term-shortcode {float: left;margin: 0;}
 
 
 
1152
 
1153
  .object-actions .term-shortcode input,
1154
- .object-actions .term-shortcode .input-buffer { font-family: Courier, sans-serif; font-size: 14px; line-height: 100%; letter-spacing: 0.05em; border: none; box-shadow: none; background-color: #fff; margin: 0; padding: 0;}
 
 
 
 
 
 
 
 
 
 
1155
 
1156
- .card-header .term-shortcode {float: left;}
 
 
1157
 
1158
  .card-header .term-shortcode input,
1159
- .card-header .term-shortcode .input-buffer { font-family: Courier, sans-serif; font-size: 14px; letter-spacing: 0.05em; }
 
 
 
 
1160
 
1161
- .term-shortcode .input-buffer {position: absolute; top: -1000px; left: -1000px; visibility: hidden; white-space: nowrap;}
 
 
 
 
 
 
1162
 
1163
  .no-touch .term-list-item .term-images img:hover {
1164
- z-index: 100 !important;
1165
  }
1166
 
1167
- .edit_tag_link { font-size: 18px; }
 
 
1168
 
1169
  .edit_tag_form {
1170
- display: inline-block;
1171
- margin-left: -5px;
1172
- margin-bottom: -1px;
1173
- margin-top: -1px;
1174
- font-size: 18px;
1175
  }
1176
 
1177
- .edit_tag_form a { font-size: 18px; line-height: 100%;}
 
 
 
1178
 
1179
  .edit_tag_form input.edit_tag_input {
1180
- padding: 0 5px;
1181
- border-width: 0 0 1px 0;
1182
- margin: 0;
1183
- font-size: 18px;
1184
- line-height: 100%;
1185
  }
1186
 
1187
  a.edit_tag_save.btn {
1188
- padding-top: 0;
1189
- padding-bottom: 0;
1190
  }
1191
 
1192
  .btn-link {
1193
- text-decoration: none;
1194
  }
1195
 
1196
  .btn-link:hover {
1197
- text-decoration: underline;
1198
  }
1199
 
1200
  .no-touch a.edit_tag_save.btn-link:hover {
1201
- text-decoration: none;
1202
  }
1203
 
1204
  .gm-img-thumbnail {
1205
- display: inline-block;
1206
- position: relative;
1207
- margin-right: 5px;
1208
- margin-bottom: 25px;
1209
- max-width: 100%;
1210
- height: auto;
1211
- padding: 4px;
1212
- line-height: 1.428571429;
1213
- background-color: #ffffff;
1214
- border: 1px solid #dddddd;
1215
- border-radius: 4px;
1216
  }
1217
 
1218
  .gm-img-thumbnail img {
1219
- height: auto;
1220
- width: auto;
1221
- max-width: 100%;
1222
- max-height: 100%;
1223
- display: inline-block;
1224
- vertical-align: middle;
1225
  }
1226
 
1227
  #gmedia-edit-term .gm-img-thumbnail {
1228
- text-align: center;
1229
- margin: 0;
1230
  }
1231
 
1232
- #gmedia-edit-term .gm-img-thumbnail:empty {display: none;}
 
 
1233
 
1234
- #gmedia-edit-term .gm-img-thumbnail img { max-height: 150px; }
 
 
1235
 
1236
  .choose-module {
1237
- padding: 10px;
1238
- overflow: hidden;
1239
- margin: 0;
1240
  }
1241
 
1242
  .no-touch .choose-module:hover {
1243
- background-color: #d0e9c6;
1244
  }
1245
 
1246
  .choose-module .img-thumbnail {
1247
- margin-bottom: 0;
1248
  }
1249
 
1250
  .media {
1251
- overflow: hidden;
1252
  }
1253
 
1254
  .media > .img-thumbnail.float-start {
1255
- padding: 4px;
1256
- margin-right: 10px
1257
  }
1258
 
1259
  #gmedia_modules .media {
1260
- border-bottom: 1px solid #444444;
1261
- padding-bottom: 15px;
1262
- margin-bottom: 30px;
1263
  }
1264
 
1265
  #gmedia_modules .media:last-child {
1266
- border-bottom: none;
1267
- padding-bottom: 0;
1268
- margin-bottom: 0;
1269
  }
1270
 
1271
  #gmedia_modules .buttons a.btn {
1272
- margin-bottom: 7px;
1273
  }
1274
 
1275
  #chooseModuleModal .choose-module {
1276
- border-bottom: 1px solid #444444;
1277
  }
1278
 
1279
  #chooseModuleModal .choose-module:last-child {
1280
- border-bottom: none;
1281
  }
1282
 
1283
  .modules-body .media {
1284
- display: none;
1285
  }
1286
 
1287
  .modules-body .module-filtered {
1288
- display: block;
1289
  }
1290
 
1291
- .presetlist a { }
 
1292
 
1293
  .gm-preset-id {
1294
- font-size: smaller;
1295
- float: right;
1296
- padding: 0 15px 0 5px;
1297
  }
1298
 
1299
  .addpreset:hover,
1300
  .addpreset:active,
1301
  .addpreset {
1302
- margin: 0 8px 0;
1303
- line-height: 100%;
1304
- text-decoration: none;
1305
- outline: none;
1306
  }
1307
 
1308
  .addpreset span {
1309
- line-height: 100%;
1310
- font-size: 74%;
1311
- padding: 0 5px 2px;
1312
- cursor: pointer;
1313
  }
1314
 
1315
  .delpreset {
1316
- position: absolute;
1317
- right: 0;
1318
- top: 0;
1319
- bottom: 0;
1320
- padding: 0.6em 6px 0;
1321
- line-height: 100%;
1322
  }
1323
 
1324
  .delpreset span {
1325
- line-height: 100%;
1326
- font-size: 94%;
1327
- padding: 0 5px 2px;
1328
- cursor: pointer;
1329
  }
1330
 
1331
  body#media-upload {
1332
- height: 100%;
1333
- overflow: auto;
1334
- margin: 0;
1335
- padding: 0;
1336
- background: #ffffff;
1337
  }
1338
 
1339
  body#media-upload .panel {
1340
- position: relative;
1341
- height: 100%;
1342
- overflow: auto;
1343
- margin: 0;
1344
- border-radius: 0;
1345
- border-top: none;
1346
  }
1347
 
1348
  body#media-upload .card-header {
1349
- position: relative;
1350
- z-index: 100;
1351
  }
1352
 
1353
  body#media-upload .card-body {
1354
- position: absolute;
1355
- top: 55px;
1356
- bottom: 0;
1357
- width: 100%;
1358
- overflow: hidden;
1359
- z-index: 50;
1360
- padding-top: 0;
1361
- padding-bottom: 0;
 
 
 
 
1362
  }
1363
 
1364
  body#media-upload .card-body > .row {
1365
- height: 100%;
1366
  }
1367
 
1368
  body#media-upload .card-body > .row > div {
1369
- height: 100%;
1370
- overflow: auto;
1371
- padding-top: 15px;
1372
- padding-bottom: 15px;
1373
  }
1374
 
1375
  body#media-upload .card-body .list-group-item {
1376
- border-width: 0;
1377
- border-top-width: 1px;
1378
- margin: 0;
 
1379
  }
1380
 
1381
  body#media-upload .card-body .list-group-item:first-child {
1382
- border-width: 0;
1383
  }
1384
 
1385
  body#media-upload .term-list-item .term-images img {
1386
- height: 30px;
1387
  }
1388
 
1389
  body#media-upload .term-list-item .term-label .no-checkbox {
1390
- display: inline-block;
1391
- width: 100%;
1392
- margin: 10px 0;
1393
  }
1394
 
1395
  body#media-upload .term-list-item .term-info {
1396
- display: none;
1397
  }
1398
 
1399
  .blank-aligner {
1400
- display: inline-block;
1401
- height: 40px;
1402
- vertical-align: middle;
1403
- width: 1px;
1404
- overflow: hidden;
1405
- margin-right: -2em;
1406
  }
1407
 
1408
  body#media-upload .media-upload-sidebar {
1409
- border-left: 1px solid #cccccc;
1410
- background-color: #eeeeee;
1411
- padding: 0 !important;
1412
- position: relative;
1413
  }
1414
 
1415
  body#media-upload .media-upload-sidebar form {
1416
- display: -webkit-box;
1417
- display: -moz-box;
1418
- display: -ms-flexbox;
1419
- display: -webkit-flex;
1420
- display: flex;
1421
- -webkit-flex-direction: column;
1422
- -moz-flex-direction: column;
1423
- -ms-flex-direction: column;
1424
- flex-direction: column;
1425
- height: 100%;
1426
- width: 100%;
1427
  }
1428
 
1429
  body#media-upload .media-upload-sidebar .media-upload-form-container {
1430
- -webkit-box-flex: 1 auto;
1431
- -moz-box-flex: 1 auto;
1432
- -webkit-flex: 1 auto;
1433
- -ms-flex: 1 auto;
1434
- flex: 1 auto;
1435
- overflow: auto;
1436
- padding: 15px;
1437
  }
1438
 
1439
  body#media-upload .media-upload-sidebar .card-footer {
1440
- min-height: 57px;
1441
  }
1442
 
1443
  body#media-upload .img-thumbnail {
1444
- margin: 0 5px 5px 0;
1445
- position: relative;
1446
- display: inline-block;
1447
  }
1448
 
1449
  body#media-upload .img-thumbnail.active {
1450
- background-color: lightblue;
1451
- border-color: cadetblue;
1452
  }
1453
 
1454
- body#media-upload .img-thumbnail i[class^="fa-"] {
1455
- display: none;
1456
- position: absolute;
1457
- right: -3px;
1458
- top: -7px;
1459
- font-size: 30px;
1460
  }
1461
 
1462
- body#media-upload .img-thumbnail.active i[class^="fa-"] {
1463
- display: inline-block;
1464
  }
1465
 
1466
  body#media-upload .plupload_wrapper {
1467
- height: 100%;
1468
- box-sizing: border-box;
1469
- overflow: hidden;
1470
  }
1471
 
1472
- .addtags-gap { height: 200px; }
 
 
1473
 
1474
  body#media-upload div#pluploadUploader .plupload_container {
1475
- height: 100%;
1476
- min-height: inherit !important;
 
1477
  }
1478
 
1479
  body#media-upload .ui-resizable-handle {
1480
- display: none !important;
1481
- bottom: -1px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1482
  }
1483
 
1484
  #gmedia-post-thumbnail {
1485
- font-size: 12px;
1486
- padding: 0;
1487
- display: inline;
1488
- white-space: normal;
1489
  }
1490
 
1491
  body.gmedia-blank.gmedia_image_editor {
1492
- height: 100%;
1493
- overflow: auto;
1494
- margin: 0;
1495
- padding: 0
1496
  }
1497
 
1498
  body.gmedia-blank.gmedia_image_editor .panel,
1499
  body.gmedia-blank.gmedia_map_editor .panel {
1500
- position: relative;
1501
- height: 100%;
1502
- overflow: auto;
1503
- margin: 0;
1504
  }
1505
 
1506
  body.gmedia-blank .card-header {
1507
- position: relative;
1508
- z-index: 100;
1509
  }
1510
 
1511
  body.gmedia-blank.gmedia_image_editor .card-body {
1512
- position: absolute;
1513
- top: 55px;
1514
- bottom: 0;
1515
- width: 100%;
1516
- overflow: hidden;
1517
- z-index: 50;
1518
- padding-top: 0;
1519
- padding-bottom: 0;
1520
  }
1521
 
1522
  body.gmedia-blank.gmedia_image_editor .card-body .row {
1523
- height: 100%;
1524
  }
1525
 
1526
  body.gmedia-blank.gmedia_image_editor .card-body .row > div {
1527
- height: 100%;
1528
- overflow: auto;
1529
- padding-top: 15px;
1530
- padding-bottom: 15px;
1531
  }
1532
 
1533
  body.gmedia-blank .media-edit-sidebar {
1534
- border-left: 1px solid #cccccc;
1535
- background-color: #eeeeee;
1536
- padding: 0 0 55px 0 !important;
1537
- position: relative;
1538
  }
1539
 
1540
  body.gmedia-blank #media-edit-form-container {
1541
- height: 100%;
1542
- overflow: auto;
1543
- padding: 15px;
1544
  }
1545
 
1546
  body.gmedia-blank .media-edit-sidebar .card-footer {
1547
- position: absolute;
1548
- left: 0;
1549
- bottom: 0;
1550
- right: 0;
1551
  }
1552
 
1553
  body.gmedia_library .panel {
1554
- margin-bottom: 0;
1555
  }
1556
 
1557
  #map-floating-panel {
1558
- position: absolute;
1559
- top: 15px;
1560
- right: 15px;
1561
- z-index: 5;
1562
- background-color: #ffffff;
1563
- padding: 0 0 5px 5px;
1564
- width: 250px;
1565
  }
1566
 
1567
- #save_buttons_duplicate { display: none;}
 
 
1568
 
1569
- .panel-floatingHeader #save_buttons_duplicate { display: block;}
 
 
1570
 
1571
  #gallery_preview_ {
1572
- width: 200%;
1573
- height: 800px;
1574
- margin-bottom: -400px;
1575
- overflow: auto;
1576
- -moz-transform: scale(0.5, 0.5) translateZ(0);
1577
- -webkit-transform: scale(0.5, 0.5) translateZ(0);
1578
- -o-transform: scale(0.5, 0.5) translateZ(0);
1579
- -ms-transform: scale(0.5, 0.5) translateZ(0);
1580
- transform: scale(0.5, 0.5) translateZ(0);
1581
- -moz-transform-origin: top left;
1582
- -webkit-transform-origin: top left;
1583
- -o-transform-origin: top left;
1584
- -ms-transform-origin: top left;
1585
- transform-origin: top left;
1586
- border: solid #cccccc 2px;
1587
  }
1588
 
1589
  .gallery_preview {
1590
- padding: 0 5px 5px 0;
1591
- border-right: 1px dotted;
1592
- border-bottom: 1px dotted;
1593
- background-color: #eee;
1594
- width: 100%;
1595
- height: 600px;
1596
- resize: both;
1597
- overflow: hidden;
1598
  }
1599
 
1600
  #gallery_preview {
1601
- width: 100%;
1602
- height: 100%;
1603
- border: solid #cccccc 1px;
1604
- overflow: auto;
1605
  }
1606
 
1607
  #adv-settings {
1608
- overflow: hidden;
1609
  }
1610
 
1611
  #screen-meta .form-group {
1612
- padding-bottom: 10px;
1613
  }
1614
 
1615
  #previewModal {
1616
- z-index: 9999;
1617
- overflow-x: auto;
1618
  }
1619
 
1620
- #previewModal .modal-header .btn-primary {display: none;}
 
 
1621
 
1622
- #previewModal .select_gmedia .modal-header .btn-primary {display: inline-block;}
 
 
1623
 
1624
- #previewModal .select_gmedia_image .modal-header .btn-primary {display: inline-block;}
 
 
1625
 
1626
- #previewModal .select_gmedia_related .modal-header .btn-primary {display: inline-block;}
 
 
1627
 
1628
- .edit_gmedia_item .modal-header {display: none;}
 
 
1629
 
1630
- .edit_gmedia_item .modal-body {padding: 0;}
 
 
1631
 
1632
- .edit_gmedia_item iframe {max-height: calc(100vh - 110px);}
 
 
1633
 
1634
  .select_gmedia .modal-body,
1635
  .select_gmedia_related .modal-body,
1636
- .select_gmedia_image .modal-body {padding: 0;}
 
 
1637
 
1638
  .select_gmedia iframe,
1639
  .select_gmedia_related iframe,
1640
- .select_gmedia_image iframe {max-height: calc(100vh - 160px);}
 
 
1641
 
1642
- .no-transition {transition: none !important; -webkit-transition: none !important;}
 
 
 
 
 
 
 
 
1643
 
1644
- .checked_thumb {margin-top: -7px;text-align: center;}
 
 
 
 
 
1645
 
1646
- .checked_thumb img {max-height: 55px;width: auto;height: auto;}
 
 
1647
 
1648
- input.sharelink[readonly] { cursor: text; }
 
 
 
 
 
1649
 
1650
- fieldset.gmediacustomstuff { margin: 0 0 10px; padding: .35em .625em .4em; position: relative; border: 1px solid silver }
1651
  fieldset.gmediacustomstuff legend {
1652
- width: auto;
1653
- float: none;
1654
- color: #000;
1655
- margin-right: auto;
1656
  }
1657
 
1658
- .delete-custom-field { margin: 4px 2px 0; cursor: pointer; }
 
 
 
1659
 
1660
- .newcustomfield-modal { position: absolute; bottom: -0.6em; right: 8px; font-size: 80%; }
 
 
 
 
 
1661
 
1662
- .gmapp-description, .gmapp-description p {font-size: 15px;}
 
 
1663
 
1664
  div#wp-link-wrap {
1665
- box-sizing: border-box;
1666
  }
1667
 
1668
  div#wp-link-wrap label {
1669
- font-weight: normal;
1670
- display: block;
1671
- margin: 0;
1672
  }
1673
 
1674
  .input-group.gmedia_date input {
1675
- background: #ffffff;
1676
  }
1677
 
1678
  @media (min-width: 782px) {
1679
- div.modal {
1680
- top: 32px;
1681
- }
1682
 
1683
- body.gmedia-blank div.modal {
1684
- top: 0;
1685
- }
1686
 
1687
- div#termsModal .modal-dialog {
1688
- width: 350px;
1689
- }
1690
 
1691
  }
1692
 
1693
  @media (max-width: 600px) {
1694
- .panel-floatingHeader .card-header,
1695
- .panel-absoluteHeader .card-header {
1696
- position: static;
1697
- box-shadow: none;
1698
- }
1699
 
1700
- .panel-floatingHeader .card-header-fake, .panel-absoluteHeader .card-header-fake {
1701
- display: none;
1702
- }
1703
  }
1704
 
1705
  @media (max-width: 782px) {
1706
- .panel-floatingHeader .card-header {
1707
- top: 46px;
1708
- }
1709
 
1710
- div#wpwrap {
1711
- background: #708090;
1712
- }
1713
 
1714
- div#wpbody select.input-sm {
1715
- height: 30px;
1716
- font-size: 12px;
1717
- }
1718
 
1719
- #adminmenu #toplevel_page_GrandMedia ul.wp-submenu {
1720
- display: block;
1721
- }
1722
 
1723
- .media-body { display: block; }
 
 
1724
 
1725
- .show-settings-link { display: none; }
 
 
1726
  }
1727
 
1728
  @media (max-width: 991px) {
1729
- body#media-upload .card-body > #gmUpload.row {
1730
- overflow-y: auto;
1731
- }
1732
 
1733
- body#media-upload .card-body > #gmUpload.row > div {
1734
- height: auto;
1735
- }
1736
 
1737
- body#media-upload .plupload_wrapper {
1738
- height: auto;
1739
- }
1740
 
1741
- body#media-upload div#pluploadUploader .plupload_container {
1742
- height: auto;
1743
- min-height: 300px !important;
1744
- }
1745
  }
1746
 
1747
  /*@-moz-document url-prefix() {
@@ -1753,115 +2036,141 @@ div#wp-link-wrap label {
1753
  /* custom inclusion of right, left tabs */
1754
  .tabs-right > .nav-tabs,
1755
  .tabs-left > .nav-tabs {
1756
- border-bottom: 0;
1757
  }
1758
 
1759
  .gm-tab-content > .tab-pane,
1760
  .pill-content > .pill-pane {
1761
- display: none;
1762
  }
1763
 
1764
  .gm-tab-content > .active,
1765
  .pill-content > .active {
1766
- display: block;
1767
  }
1768
 
1769
  .tabs-left > .nav-tabs > li,
1770
  .tabs-right > .nav-tabs > li {
1771
- float: none;
1772
  }
1773
 
1774
  .tabs-left > .nav-tabs > li > a,
1775
  .tabs-right > .nav-tabs > li > a {
1776
- min-width: 74px;
1777
- margin-right: 0;
1778
- margin-bottom: 3px;
1779
  }
1780
 
1781
  .tabs-left > .nav-tabs {
1782
- float: left;
1783
- margin-right: 19px;
1784
- border-right: 1px solid #dddddd;
1785
  }
1786
 
1787
  .tabs-left > .nav-tabs > li > a {
1788
- margin-right: -1px;
1789
- -webkit-border-radius: 4px 0 0 4px;
1790
- -moz-border-radius: 4px 0 0 4px;
1791
- border-radius: 4px 0 0 4px;
1792
  }
1793
 
1794
  .no-touch .tabs-left > .nav-tabs > li > a:hover,
1795
  .tabs-left > .nav-tabs > li > a:focus {
1796
- border-color: #eeeeee #dddddd #eeeeee #eeeeee;
1797
  }
1798
 
1799
  .tabs-left > .nav-tabs .active,
1800
  .no-touch .tabs-left > .nav-tabs .active:hover,
1801
  .tabs-left > .nav-tabs .active:focus {
1802
- border-color: #dddddd transparent #dddddd #dddddd;
1803
- *border-right-color: #ffffff;
1804
  }
1805
 
1806
  .tabs-right > .nav-tabs {
1807
- float: right;
1808
- margin-left: 19px;
1809
- border-left: 1px solid #dddddd;
1810
  }
1811
 
1812
  .tabs-right > .nav-tabs > li > a {
1813
- margin-left: -1px;
1814
- -webkit-border-radius: 0 4px 4px 0;
1815
- -moz-border-radius: 0 4px 4px 0;
1816
- border-radius: 0 4px 4px 0;
1817
  }
1818
 
1819
  .no-touch .tabs-right > .nav-tabs > li > a:hover,
1820
  .tabs-right > .nav-tabs > li > a:focus {
1821
- border-color: #eeeeee #eeeeee #eeeeee #dddddd;
1822
  }
1823
 
1824
  .tabs-right > .nav-tabs .active,
1825
  .no-touch .tabs-right > .nav-tabs .active:hover,
1826
  .tabs-right > .nav-tabs .active:focus {
1827
- border-color: #dddddd #dddddd #dddddd transparent;
1828
- *border-left-color: #ffffff;
1829
  }
1830
 
1831
  /* custom badge colors */
1832
- .badge-error {background-color: #b94a48 !important; color: #fff !important;}
 
 
 
1833
 
1834
- .badge-error:hover {background-color: #953b39 !important; color: #fff !important;}
 
 
 
1835
 
1836
- .badge-warning {background-color: #f89406;}
 
 
1837
 
1838
- .badge-warning:hover {background-color: #c67605;}
 
 
1839
 
1840
- .badge-success {background-color: #468847 !important; color: #fff !important;}
 
 
 
1841
 
1842
- .badge-success:hover {background-color: #356635 !important; color: #fff !important;}
 
 
 
1843
 
1844
- .badge-info {background-color: #3a87ad;}
 
 
1845
 
1846
- .badge-info:hover {background-color: #2d6987;}
 
 
1847
 
1848
- .badge-inverse {background-color: #333333;}
 
 
1849
 
1850
- .badge-inverse:hover {background-color: #1a1a1a;}
 
 
1851
 
1852
  /* custom *-xs size for form elements */
1853
  .btn-xs,
1854
- .btn-group-xs > .btn {
1855
- padding: 0.15rem 0.4rem;
1856
- font-size: 15px;
1857
- border-radius: 0.2rem;
 
 
1858
  }
1859
 
1860
  .btn-sm,
1861
- .btn-group-sm>.btn {
1862
- padding: 0.25rem 0.5rem;
1863
- font-size: 1rem;
1864
- border-radius: 0.2rem;
1865
  }
1866
 
1867
  input[type="date"].input-xs,
@@ -1871,98 +2180,130 @@ input[type="month"].input-xs,
1871
  .input-group-xs input[type="date"],
1872
  .input-group-xs input[type="time"],
1873
  .input-group-xs input[type="datetime-local"],
1874
- .input-group-xs input[type="month"] {
1875
- line-height: 22px;
 
 
 
 
 
 
 
 
1876
  }
1877
 
1878
- .form-control-static.input-xs {
1879
- padding-right: 0;
1880
- padding-left: 0;
 
1881
  }
1882
 
1883
- .input-xs {
1884
- height: 22px;
1885
- padding-left: 0.7em !important;
1886
- padding-right: 0.7em;
1887
- font-size: 0.9em !important;
1888
- line-height: 1.5 !important;
1889
- border-radius: 3px;
 
1890
  }
1891
 
1892
- select.input-xs {
1893
- height: 22px;
1894
- padding-left: 0.7em !important;
1895
- font-size: 0.9em !important;
1896
- line-height: 1.5 !important;
 
 
 
 
 
 
1897
  }
1898
 
1899
  textarea.input-xs,
1900
- select[multiple].input-xs {
1901
- height: auto;
 
 
1902
  }
1903
 
1904
  .form-group {
1905
- margin-bottom: 15px;
1906
  }
1907
 
1908
  .form-group label {
1909
- display: inline-block;
1910
- max-width: 100%;
1911
- margin-bottom: 5px;
1912
- font-weight: 700;
 
1913
  }
1914
 
1915
- .form-group-xs .form-control {
1916
- height: 22px;
1917
- padding: 1px 10px;
1918
- font-size: 12px;
1919
- line-height: 1.5;
1920
- border-radius: 3px;
 
1921
  }
1922
 
1923
- select.form-group-xs .form-control {
1924
- height: 22px;
1925
- line-height: 22px;
 
1926
  }
1927
 
1928
  textarea.form-group-xs .form-control,
1929
- select[multiple].form-group-xs .form-control {
1930
- height: auto;
 
 
1931
  }
1932
 
1933
- .form-group-xs .form-control-static {
1934
- height: 22px;
1935
- min-height: 25px;
1936
- padding: 1px 5px;
1937
- font-size: 12px;
1938
- line-height: 1.5;
 
1939
  }
1940
 
1941
- .input-xs + .form-control-feedback {
1942
- width: 22px;
1943
- height: 22px;
1944
- line-height: 22px;
 
1945
  }
1946
 
1947
  @media (min-width: 768px) {
1948
- .form-horizontal .form-group-xs .control-label {
1949
- padding-top: 4px;
1950
- }
 
1951
  }
1952
 
1953
  .input-group-xs > .form-control,
1954
  .input-group-xs > .input-group-text,
1955
- .input-group-xs > .input-group-btn > .btn {
1956
- padding: 1px 5px;
1957
- font-size: 12px;
1958
- line-height: 1.5;
1959
- border-radius: 3px;
 
 
 
1960
  }
1961
 
1962
  select.input-group-xs > .form-control,
1963
  select.input-group-xs > .input-group-text,
1964
- select.input-group-xs > .input-group-btn > .btn {
1965
- line-height: 22px;
 
 
 
1966
  }
1967
 
1968
  textarea.input-group-xs > .form-control,
@@ -1970,14 +2311,21 @@ textarea.input-group-xs > .input-group-text,
1970
  textarea.input-group-xs > .input-group-btn > .btn,
1971
  select[multiple].input-group-xs > .form-control,
1972
  select[multiple].input-group-xs > .input-group-text,
1973
- select[multiple].input-group-xs > .input-group-btn > .btn {
1974
- height: auto;
 
 
 
 
 
 
1975
  }
1976
 
1977
- .input-group-text.input-xs {
1978
- padding: 1px 5px;
1979
- font-size: 12px;
1980
- border-radius: 3px;
 
1981
  }
1982
 
1983
  .input-group .form-control:first-child,
@@ -1987,8 +2335,14 @@ select[multiple].input-group-xs > .input-group-btn > .btn {
1987
  .input-group-btn:first-child > .dropdown-toggle,
1988
  .input-group-btn:last-child > .btn-group:not(:last-child) > .btn,
1989
  .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) {
1990
- border-bottom-right-radius: 0;
1991
- border-top-right-radius: 0;
 
 
 
 
 
 
1992
  }
1993
 
1994
  .input-group .form-control:last-child,
@@ -1998,111 +2352,111 @@ select[multiple].input-group-xs > .input-group-btn > .btn {
1998
  .input-group-btn:last-child > .btn,
1999
  .input-group-btn:last-child > .btn-group > .btn,
2000
  .input-group-btn:last-child > .dropdown-toggle {
2001
- border-bottom-left-radius: 0;
2002
- border-top-left-radius: 0;
2003
  }
2004
 
2005
  .input-group-text.btn-primary {
2006
- color: #fff;
2007
- background-color: #337ab7;
2008
- border-color: #2e6da4;
2009
- cursor: pointer;
2010
  }
2011
 
2012
  div#gallery_options_block .form-control.input-sm {
2013
- padding-block: 0;
2014
  }
2015
 
2016
  div#gallery_options_block .nav-item {
2017
- margin-right: -1px;
2018
  }
2019
 
2020
  div#gallery_options_block .nav-item.active {
2021
- background-color: #fff;
2022
  }
2023
 
2024
  .notice.updated.gm-message {
2025
- margin-left: 0;
2026
- margin-bottom: 30px;
2027
- /* clear: both; */
2028
- max-width: 800px;
2029
  }
2030
 
2031
  .gm-plugin-icon {
2032
- float: left;
2033
- margin-right: 15px;
2034
  }
2035
 
2036
  .gm-message-content * {
2037
- font-size: 14px;
2038
  }
2039
 
2040
  .gm-message-actions {
2041
- background-color: #e6eef1;
2042
- padding: 10px 12px;
2043
- margin: 0 -12px;
2044
- text-align: right;
2045
  }
2046
 
2047
  .gm-message-actions button {
2048
- margin-left: 20px !important;
2049
  }
2050
 
2051
  .gm-message-plus.gm-closed ul {
2052
- display: none;
2053
  }
2054
 
2055
  .gm-message-plus {
2056
- text-align: center;
2057
- padding: 4px 0;
2058
  }
2059
 
2060
  .gm-message-plus.gm-opened ul {
2061
- display: block;
2062
- text-align: left;
2063
- margin: 20px 20px 10px 20px;
2064
  }
2065
 
2066
  .gm-message-plus ul li {
2067
- margin-bottom: 12px;
2068
  }
2069
 
2070
  .gm-message-plus ul li i.dashicons {
2071
- float: left;
2072
- font-size: 40px;
2073
- width: 40px;
2074
- height: 40px;
2075
  }
2076
 
2077
  .gm-message-plus ul li div {
2078
- margin-left: 55px;
2079
  }
2080
 
2081
  .gm-message-plus ul li div span {
2082
- font-weight: bold;
2083
- text-transform: uppercase;
2084
- color: #23282d;
2085
  }
2086
 
2087
  .gm-message-plus ul li div p {
2088
- margin: 2px 0 0 0
2089
  }
2090
 
2091
  .gm-module-count-0 {
2092
- display: none;
2093
  }
2094
 
2095
  #link-selector .link-target {
2096
- display: none;
2097
  }
2098
 
2099
  /* Spectrum */
2100
  .form-group .sp-replacer {
2101
- width: 100%;
2102
- border-radius: 3px;
2103
  }
2104
 
2105
  .form-group .sp-preview {
2106
- width: calc(100% - 18px);
2107
- border-radius: 3px;
2108
  }
1
+ .grand-media-admin-page #wpcontent {
2
+ background-color: transparent !important;
3
+ }
4
 
5
  .grand-media-admin-page #wpbody-content > .update-nag,
6
+ .grand-media-admin-page #wpbody-content > .updated.fade {
7
+ display: none;
8
+ }
9
 
10
+ #adminmenuback {
11
+ z-index: 0
12
+ }
13
 
14
  #adminmenu #toplevel_page_GrandMedia ul.wp-submenu {
15
+ display: none;
16
  }
17
 
18
  #wpfooter {
19
+ color: #ffffff;
20
  }
21
 
22
  #wpfooter a {
23
+ color: lightblue;
24
  }
25
 
26
  #TB_caption {
27
+ height: auto;
28
  }
29
 
30
  a {
31
+ color: #0074a2;
32
+ text-decoration: none;
33
  }
34
 
35
  a:hover {
36
+ text-decoration: underline;
37
  }
38
 
39
  input[type="checkbox"] {
40
+ margin-top: 2px;
41
+ margin-right: 2px
42
  }
43
 
44
  input[type="checkbox"], input[type="radio"] {
45
+ height: 16px;
46
+ width: 16px;
47
+ min-width: 0 !important;
48
  }
49
 
50
  input[type="button"] {
51
+ min-width: 0 !important;
52
  }
53
 
54
  .checkbox, .radio {
55
+ margin-top: 5px;
56
+ margin-bottom: 5px;
57
  }
58
 
59
  input::-moz-focus-inner {
60
+ border: 0;
61
+ padding: 0;
62
+ margin-top: -2px;
63
+ margin-bottom: -2px;
64
  }
65
 
66
  form,
67
+ .gmedia-admin form {
68
+ margin: 0;
69
+ }
70
 
71
+ legend.label {
72
+ text-align: left;
73
+ display: block;
74
+ }
75
 
76
+ textarea.vert {
77
+ resize: vertical;
78
+ }
79
 
80
+ textarea.noResize {
81
+ resize: none;
82
+ }
83
 
84
  body.gmedia-busy {
85
+ cursor: wait !important;
86
  }
87
 
88
  iframe {
89
+ background-color: #ffffff;
90
  }
91
 
92
+ select.disabled {
93
+ pointer-events: none;
94
+ }
95
 
96
  #gmedia-data-helper {
97
+ background: #333;
98
+ background: rgba(0, 0, 0, .8);
99
+ border-radius: 5px;
100
+ color: #fff;
101
+ padding: 4px 10px;
102
+ position: fixed;
103
+ z-index: 999999;
104
+ max-width: 220px;
105
+ word-wrap: break-word;
106
  }
107
 
108
  #gmedia-data-helper:before {
109
+ border: solid;
110
+ border-color: #333 transparent;
111
+ border-width: 0 6px 6px 6px;
112
+ bottom: 100%;
113
+ content: "";
114
+ left: 17px;
115
+ position: absolute;
116
+ z-index: 99;
117
  }
118
 
119
  #gmedia-data-helper.tiptoleft:before {
120
+ left: auto;
121
+ right: 17px;
122
  }
123
 
124
  body.gmedia-blank {
125
+ height: auto;
126
+ min-height: 100%;
127
+ padding: 0 0 1px;
128
+ box-sizing: border-box;
129
  }
130
 
131
  body.gmedia-blank pre {
132
+ margin: 0;
133
+ padding: 0;
134
+ border: none;
135
  }
136
 
137
  body.gmedia-blank > .hidden {
138
+ display: contents;
139
  }
140
 
141
  .gmedia-body div#gm-message {
142
+ position: absolute;
143
+ right: 5px;
144
+ top: 5px;
145
+ overflow: visible;
146
+ z-index: 200;
147
  }
148
 
149
  .gmedia-body div#gm-message .gm-message {
150
+ text-align: right;
151
  }
152
 
153
  div#gmedia-container {
154
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
155
+ margin: 30px 5px 10px 0;
156
+ position: relative;
157
+ z-index: 1;
158
+ direction: ltr;
159
+ min-width: 560px;
160
+ -webkit-backface-visibility: hidden;
161
+ backface-visibility: hidden;
162
+ box-sizing: border-box;
163
  }
164
 
165
  div#gmedia-container * {
166
+ box-sizing: inherit;
167
  }
168
 
169
  div#gmedia-container .row,
170
  div.gmedia-modal .row {
171
+ padding: 0;
172
  }
173
 
174
  div#gmedia-container form.row {
175
+ padding: 15px 0;
176
+ display: flex;
177
  }
178
 
179
  body.gmedia-blank div#gmedia-container {
180
+ margin: 0;
181
+ position: static;
182
+ z-index: auto;
183
+ direction: ltr;
184
+ min-width: auto;
185
+ width: 100%;
186
+ height: 100%;
187
  }
188
 
189
  div#gmedia-header {
190
+ position: relative;
191
+ padding: 1px 1px 10px 1px;
192
+ display: flex;
193
+ flex-wrap: wrap;
194
+ align-items: center;
195
  }
196
 
197
  /*noinspection CssInvalidElement*/
198
  div#gmedia-logo {
199
+ position: relative;
200
+ margin: 0 30px 0 15px;
201
+ font-size: 48px;
202
+ line-height: 20px;
203
+ text-shadow: 1px 1px 4px #000000;
204
+ font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
205
+ color: #ffffff;
206
+ float: left;
207
+ /*noinspection CssFloatPxLength*/
208
+ -webkit-text-stroke-width: 0.7px;
209
+ -webkit-text-stroke-color: #ffffff;
210
+ -webkit-font-smoothing: antialiased;
211
+ -webkit-user-select: none;
212
+ -moz-user-select: none;
213
+ -ms-user-select: none;
214
+ user-select: none;
215
+ cursor: default;
216
  }
217
 
218
  div#gmedia-logo small {
219
+ display: block;
220
+ font-size: 10px;
221
+ margin-top: 7px;
222
+ text-align: right;
223
+ -webkit-text-stroke-width: 0;
224
  }
225
 
226
  div#gmedia-header h2 {
227
+ margin: 0;
228
+ font: italic 24px/35px Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
229
+ color: #ffffff;
230
+ flex: 1 1 180px;
231
  }
232
 
233
  div#gmedia-header .promote-woowbox {
234
+ flex: 1 1 50%;
235
+ margin-top: -10px;
236
  }
237
 
238
  div#gmedia-header .promote-woowbox img {
239
+ border: 1px solid rgba(255, 255, 255, 0.7);
240
  }
241
 
242
  #ajax-long-operation {
243
+ position: absolute;
244
+ right: 20px;
245
+ bottom: 0;
246
+ width: 25%;
247
+ min-width: 220px;
248
  }
249
 
250
  .progress-bar-indicator {
251
+ position: absolute;
252
+ width: 100%;
253
+ text-align: center;
254
+ color: #204d74;
255
  }
256
 
257
  div#gmedia-navbar {
258
+ font-size: 14px;
259
  }
260
 
261
  a.list-group-item-premium {
262
+ color: #ffffff !important;
263
+ background-color: #d82700;
264
+ border-color: #a52a2a;
265
+ font-weight: bold;
266
  }
267
 
268
  a.list-group-item-premium:hover {
269
+ color: #ffffff !important;
270
+ background-color: #c52400;
271
+ border-color: #a52a2a;
272
+ font-weight: bold;
273
  }
274
 
275
  div.custom-message {
276
+ padding: 5px 10px;
277
+ margin: 0 0 10px;
278
  }
279
 
280
  form.gmedia-search-form {
281
+ float: right;
282
+ margin-left: 10px;
283
+ margin-bottom: 4px;
284
+ white-space: nowrap;
285
  }
286
 
287
  form.gmedia-search-form .form-group {
288
+ margin: 0;
289
+ display: inline-block;
290
+ vertical-align: middle;
291
  }
292
 
293
  .gmedia-pager {
294
+ margin-bottom: 4px;
295
  }
296
 
297
  form#gmedia-pager {
298
+ float: left;
299
+ width: auto;
300
  }
301
 
302
  form#gmedia-pager span,
303
  form#gmedia-pager input {
304
+ width: auto;
305
+ display: inline-block;
306
+ vertical-align: inherit;
307
+ float: none;
308
  }
309
 
310
  form#gmedia-pager span {
311
+ display: flex;
312
+ align-items: center;
313
  }
314
 
315
  form#gmedia-pager input.pager_current_page {
316
+ padding-left: 0;
317
+ padding-right: 0;
318
+ text-align: center;
319
+ width: 2.5em;
320
  }
321
 
322
  .txt-lg {
323
+ font-size: 120%;
324
+ line-height: 50%;
325
  }
326
 
327
  a.text-danger {
328
+ color: #a94442;
329
  }
330
 
331
  .btn > input[type="checkbox"] {
332
+ margin-top: 0;
333
+ width: 16px;
334
+ height: 16px;
335
  }
336
 
337
+ .va-middle {
338
+ vertical-align: middle
339
+ }
340
 
341
  .gm-backfade {
342
+ background-color: rgba(0, 0, 0, 0.1);
343
  }
344
 
345
  .dropdown-menu > .disabled {
346
+ cursor: not-allowed;
347
  }
348
 
349
  .dropdown-menu > .disabled > a {
350
+ pointer-events: none;
351
  }
352
 
353
+ .card-header-fake {
354
+ display: none;
355
+ }
356
 
357
  .panel-floatingHeader .card-header-fake,
358
+ .panel-absoluteHeader .card-header-fake {
359
+ display: block;
360
+ }
361
 
362
+ .panel-fixed-header {
363
+ position: relative;
364
+ }
365
 
366
+ .panel-fixed-header .card-header {
367
+ position: relative;
368
+ top: 0;
369
+ max-width: 100%;
370
+ /*transition:top 0.2s ease-out; -webkit-transition:top 0.2s ease-out;*/
371
  }
372
 
373
+ .card-header .spinner {
374
+ margin-top: 0;
375
+ }
376
 
377
  body.gmedia-blank .panel-floatingHeader .card-header,
378
  .panel-floatingHeader .card-header {
379
+ position: fixed;
380
+ top: 32px;
381
+ z-index: 20;
382
+ border-radius: 0;
383
+ -webkit-box-shadow: 0 5px 10px #888888;
384
+ -moz-box-shadow: 0 5px 10px #888888;
385
+ box-shadow: 0 5px 10px #888888;
386
  }
387
 
388
  body.gmedia-blank .panel-floatingHeader .card-header {
389
+ top: 0;
390
  }
391
 
392
  body.gmedia-blank .panel-absoluteHeader .card-header,
393
  .panel-absoluteHeader .card-header {
394
+ position: absolute;
395
+ z-index: 10;
396
+ top: auto;
397
+ bottom: 0;
398
+ border-bottom: 1px solid transparent;
399
+ border-bottom-right-radius: 3px;
400
+ border-bottom-left-radius: 3px;
401
  }
402
 
403
  .dropdown-menu:not(.bootstrap-datetimepicker-widget) {
404
+ max-height: calc(100vh - 50px);
405
+ overflow-y: auto;
406
+ transform: translateX(0) !important;
407
+ top: calc(100% + 2px) !important;
408
+ bottom: auto !important;
409
  }
410
 
411
  a.btn,
412
  a.dropdown-item {
413
+ text-decoration: none;
414
  }
415
 
416
  div#gm-list-table {
417
+ font-size: 13px;
418
+ display: flex;
419
+ flex-wrap: wrap;
420
  }
421
 
422
  div#gm-list-table::before {
423
+ display: block;
424
+ content: '';
425
+ float: left;
426
+ width: 0;
427
+ height: auto;
428
+ overflow: hidden;
429
  }
430
 
431
  .list-group-item {
432
+ margin: 0;
433
+ width: 100%;
434
  }
435
 
436
  .list-group-item.row {
437
+ position: relative;
438
+ margin-left: 0;
439
+ margin-right: 0;
440
+ padding-left: 0;
441
+ padding-right: 0;
442
  }
443
 
444
  div.list-group-item.d-row {
445
+ position: relative;
446
+ color: inherit;
447
+ z-index: 1;
448
+ display: flex;
449
  }
450
 
451
  .no-touch div.list-group-item.d-row:hover {
452
+ background-color: #fafafa;
453
  }
454
 
455
  .no-touch form.list-group-item.d-row:hover {
456
+ background-color: #fcfcfc;
457
  }
458
 
459
  .list-group-item.d-row.gm-selected {
460
+ color: #444444;
461
+ border-color: #dddddd;
462
+ background-color: rgb(250, 255, 245);
463
+ -webkit-box-shadow: inset -1px 0 0 2px rgb(250, 255, 245), inset 7px 0 0 0 #1e8cbe;
464
+ -moz-box-shadow: inset -1px 0 0 2px rgb(250, 255, 245), inset 7px 0 0 0 #1e8cbe;
465
+ box-shadow: inset -1px 0 0 2px rgb(250, 255, 245), inset 7px 0 0 0 #1e8cbe;
466
  }
467
 
468
  .no-touch .list-group-item.d-row.gm-selected:hover {
469
+ color: #444444;
470
+ border-color: #dddddd;
471
+ background-color: rgb(245, 255, 240);
472
+ -webkit-box-shadow: inset -1px 0 0 2px rgb(245, 255, 240), inset 7px 0 0 0 #1e8cbe;
473
+ -moz-box-shadow: inset -1px 0 0 2px rgb(245, 255, 240), inset 7px 0 0 0 #1e8cbe;
474
+ box-shadow: inset -1px 0 0 2px rgb(245, 255, 240), inset 7px 0 0 0 #1e8cbe;
475
  }
476
 
477
  div#gmedia-container .list-group-item-info,
478
  div#gmedia-container .list-group-item-info:hover {
479
+ background-color: #d9edf7 !important;
480
+ color: inherit !important;
481
  }
482
 
483
  div#gmedia-container .list-group-item-warning,
484
  div#gmedia-container .list-group-item-warning:hover {
485
+ background-color: #fcf8e3 !important;
486
+ color: inherit !important;
487
  }
488
 
489
  div#gmedia-container .item-after-limit {
490
+ filter: blur(1px);
491
+ -webkit-filter: blur(1px);
492
+ -moz-filter: blur(1px);
493
+ -o-filter: blur(1px);
494
+ -ms-filter: blur(1px);
495
+ filter: progid:DXImageTransform.Microsoft.Blur(PixelRadius='1');
496
  }
497
 
498
  .bg-status-private {
499
+ background-color: #d9edf7;
500
+ -webkit-box-shadow: 3px 0 0 5px #d9edf7, -2px 0 0 5px #6fbfff;
501
+ -moz-box-shadow: 3px 0 0 5px #d9edf7, -2px 0 0 5px #6fbfff;
502
+ box-shadow: 3px 0 0 5px #d9edf7, -2px 0 0 5px #6fbfff;
503
  }
504
 
505
  .bg-status-draft {
506
+ background-color: #fcf8e3;
507
+ -webkit-box-shadow: 3px 0 0 5px #fcf8e3, -2px 0 0 5px #ffd87c;
508
+ -moz-box-shadow: 3px 0 0 5px #fcf8e3, -2px 0 0 5px #ffd87c;
509
+ box-shadow: 3px 0 0 5px #fcf8e3, -2px 0 0 5px #ffd87c;
510
  }
511
 
512
  input.gm-order-input {
513
+ float: right;
514
+ border: 1px solid #ccc;
515
+ border-radius: 3px;
516
+ padding: 1px 3px;
517
+ margin: 0;
518
+ font-size: 12px;
519
+ line-height: 120%;
520
+ width: 3em;
521
+ text-align: right;
522
  }
523
 
524
+ .form-group .gmpost-com-count {
525
+ font-size: 16px;
526
+ }
527
 
528
+ .gmpost-com-count:hover {
529
+ text-decoration: none
530
+ }
531
 
532
  label.cb_media-object-gallery {
533
+ width: 40px;
534
+ position: absolute;
535
+ left: 5px;
536
+ top: 0;
537
+ bottom: 0;
538
+ text-align: center;
539
+ padding-top: 4px;
540
  }
541
 
542
  .d-row .img-thumbnail {
543
+ margin-bottom: 0;
544
  }
545
 
546
  .gm-selected .img-thumbnail {
547
+ border-color: #428bca;
548
  }
549
 
550
  .img-thumbnail {
551
+ position: relative;
552
+ display: inline-block;
553
+ max-width: 100%;
554
  }
555
 
556
  .img-thumbnail img {
557
+ display: block;
558
+ max-width: 100%;
559
+ height: auto;
560
  }
561
 
562
  .display-as-grid .gm-item-cell {
563
+ padding: 12px 12px 10px;
564
+ border: 4px solid #ffffff;
565
+ background-color: #f7f7f7;
566
+ min-width: 195px;
567
+ max-width: 340px;
568
+ border-radius: 14px;
569
+ flex: 1 1 195px;
570
  }
571
 
572
  .display-as-grid .gm-item-cell-blank {
573
+ flex: 1 1 195px;
574
  }
575
 
576
+ .display-as-grid .gm-item-cell.ui-highlight-placeholder {
577
+ margin-bottom: 0;
578
+ background-color: #2c7c91;
579
+ }
580
 
581
+ .edit-gmedia .gmedia-actions {
582
+ margin: 10px;
583
+ font-size: 18px;
584
+ }
585
 
586
  .gm-item-cell .gmedia-actions {
587
+ overflow: hidden;
588
+ position: absolute;
589
+ left: 0;
590
+ bottom: 0;
591
+ transform: translateY(100%) translateZ(0);
592
+ opacity: 0;
593
+ transition: transform 0.1s, opacity 0.2s;
594
+ font-size: 18px;
595
+ width: 100%;
596
+ display: flex;
597
+ justify-content: space-between;
598
  }
599
 
600
+ .gmedia-actions > * {
601
+ margin-left: 5px;
602
+ margin-right: 5px;
603
+ }
604
 
605
+ .gm-item-cell .gmedia-actions > * {
606
+ float: left;
607
+ }
608
 
609
  .gm-item-cell .gmedia-actions * {
610
+ -webkit-backface-visibility: hidden;
611
+ backface-visibility: hidden;
612
+ -webkit-transform-style: preserve-3d;
613
  }
614
 
615
+ .gmedia-actions > *:first-child {
616
+ margin-left: 0;
617
+ }
618
 
619
+ .gmedia-actions > *:last-child {
620
+ margin-right: 0;
621
+ }
622
 
623
+ .related-media-previews {
624
+ }
625
 
626
  .related-media-previews::before,
627
  .related-media-previews::after {
628
+ content: "";
629
+ display: table;
630
+ clear: both;
631
+ height: 0;
632
+ overflow: hidden;
633
  }
634
 
635
  p.img-thumbnail.gmedia-related-image,
636
  .related-media-previews p.gmedia-related-image {
637
+ width: 30%;
638
+ float: left;
639
+ display: inline-block;
640
+ position: relative;
641
+ margin-right: 3%;
642
+ margin-top: 7px;
643
  }
644
 
645
  .edit-gmedia p.img-thumbnail.gmedia-related-image,
646
  .edit-gmedia .related-media-previews p.gmedia-related-image {
647
+ width: 44%;
648
+ float: none;
649
+ vertical-align: top;
650
  }
651
 
652
  p.img-thumbnail.gmedia-related-image .gm-remove {
653
+ padding: 1px;
654
+ font-size: 15px;
655
+ font-weight: bold;
656
+ line-height: 0.7;
657
+ border-radius: 50%;
658
+ width: 1em;
659
+ height: 1em;
660
+ box-sizing: content-box;
661
+ color: #fff;
662
+ background-color: #cc0d00;
663
+ text-align: center;
664
+ position: absolute;
665
+ right: -0.5em;
666
+ top: -0.5em;
667
+ transform: scale(0);
668
+ transition: transform 0.1s ease-in;
669
+ cursor: pointer;
670
  }
671
 
672
  p.img-thumbnail.gmedia-related-image:hover .gm-remove {
673
+ transform: scale(1);
674
  }
675
 
676
  p.img-thumbnail.gmedia-related-image .image-wrapper {
677
+ display: block;
678
+ position: relative;
679
+ width: 100%;
680
+ height: 0;
681
+ padding-bottom: 62.5%;
682
+ cursor: move;
683
  }
684
 
685
  p.img-thumbnail.gmedia-related-image img.gmedia-thumb {
686
+ position: absolute;
687
+ left: 0;
688
+ top: 0;
689
+ width: 100%;
690
+ height: 100%;
691
+ display: block;
692
+ object-fit: contain;
693
  }
694
 
695
  .gm-item-cell .gm-cell-bottom {
696
+ position: relative;
697
+ min-height: 20px;
698
+ padding: 15px 0 0 2px;
699
+ overflow: hidden;
700
  }
701
 
702
  .gm-item-cell .gm-cell-title {
703
+ overflow: hidden;
704
+ font-size: 12px;
705
+ font-weight: bold;
706
+ cursor: pointer;
707
+ opacity: 1;
708
+ width: 100%;
709
+ transition: opacity 0.15s;
 
 
 
710
  }
711
 
712
  .gm-item-cell .gm-cell-title span {
713
+ display: block;
714
+ width: 100%;
715
+ white-space: nowrap;
716
+ text-overflow: ellipsis;
717
+ overflow: hidden;
718
  }
719
 
720
+ .gm-item-cell:hover .gm-cell-title {
721
+ opacity: 0;
722
+ pointer-events: none;
723
+ }
724
 
725
+ .gm-item-cell:hover .gmedia-actions {
726
+ transform: translateY(0) translateZ(0);
727
+ opacity: 1;
728
+ }
729
 
730
  .display-as-grid div.img-thumbnail {
731
+ cursor: pointer;
732
+ position: relative;
733
+ display: block;
734
+ border-radius: 0;
735
+ margin: 0;
736
+ padding: 0;
737
+ -webkit-backface-visibility: hidden;
738
+ backface-visibility: hidden;
739
  }
740
 
741
  .display-as-grid div.img-thumbnail:before {
742
+ content: "";
743
+ display: block;
744
+ padding-top: 100%;
745
  }
746
 
747
  .display-as-grid .gm-selected div.img-thumbnail {
748
+ -webkit-box-shadow: 0 0 0 7px #1e8cbe;
749
+ -moz-box-shadow: 0 0 0 7px #1e8cbe;
750
+ box-shadow: 0 0 0 7px #1e8cbe;
751
+ border-radius: 1px;
752
  }
753
 
754
  .display-as-grid div.img-thumbnail .cb_media-object,
755
  .display-as-grid div.img-thumbnail .gm-item-cell-media-object {
756
+ bottom: 0;
757
+ left: 0;
758
+ overflow: hidden;
759
+ position: absolute;
760
+ right: 0;
761
+ top: 0;
762
+ text-align: center;
763
+ margin: 0;
764
  }
765
 
766
  .display-as-grid div.img-thumbnail .gm-cell-more {
767
+ position: absolute;
768
+ left: 0;
769
+ top: 0;
770
+ right: 0;
771
+ background: rgba(256, 256, 256, 0.6);
772
+ color: #000000;
773
+ cursor: auto;
774
  }
775
 
776
  .display-as-grid div.img-thumbnail .gm-cell-more-btn {
777
+ position: absolute;
778
+ top: 0;
779
+ right: 0;
780
+ padding: 5px;
781
+ cursor: pointer;
782
+ color: #1e8cbe;
783
+ /*text-shadow: 1px 1px 1px #83acbf;*/
784
  }
785
 
786
  .display-as-grid div.img-thumbnail .gm-cell-more-content {
787
+ padding: 5px 5px 0;
788
+ display: none;
789
+ overflow: hidden;
790
+ /*transition:all 0.2s easy-out;*/
791
+ font-size: 11px;
792
  }
793
 
794
  .display-as-grid div.img-thumbnail .gm-cell-more-content .gmedia-actions {
795
+ display: none;
796
  }
797
 
798
  .display-as-grid div.img-thumbnail .gm-cell-more:hover,
799
  .display-as-grid div.img-thumbnail .gm-cell-more.gm-cell-more-active {
800
+ z-index: 10;
801
+ -webkit-box-shadow: 0 0 0 1px #dddddd, 0 4px 3px -1px rgba(0, 0, 0, 0.3);
802
+ -moz-box-shadow: 0 0 0 1px #dddddd, 0 4px 3px -1px rgba(0, 0, 0, 0.3);
803
+ box-shadow: 0 0 0 1px #dddddd, 0 4px 3px -1px rgba(0, 0, 0, 0.3);
804
  }
805
 
806
  .display-as-grid div.img-thumbnail .gm-cell-more:hover {
807
+ z-index: 11;
808
  }
809
 
810
  .display-as-grid div.img-thumbnail .gm-cell-more:hover > div {
811
+ background: rgba(256, 256, 256, 0.7);
812
  }
813
 
814
  .display-as-grid div.img-thumbnail .gm-cell-more-active .gm-cell-more-content .gmedia-actions {
815
+ display: block;
816
  }
817
 
818
  .display-as-grid div.img-thumbnail .gm-cell-more.gm-cell-more-active > div {
819
+ background: rgba(256, 256, 256, 0.9);
820
  }
821
 
822
  .display-as-grid div.img-thumbnail .gm-cell-more:hover .gm-cell-more-content,
823
  .display-as-grid div.img-thumbnail .gm-cell-more.gm-cell-more-active .gm-cell-more-content {
824
+ display: block;
825
  }
826
 
827
  .display-as-grid div.img-thumbnail .gm-cell-more-content p {
828
+ font-size: 11px;
829
  }
830
 
831
  .display-as-grid div.img-thumbnail .cb_media-object .centered,
832
  .display-as-grid div.img-thumbnail .gm-item-cell-media-object .centered {
833
+ height: 100%;
834
+ left: 0;
835
+ position: absolute;
836
+ top: 0;
837
+ transform: translate(50%, 50%) translateZ(0);
838
+ width: 100%;
839
  }
840
 
841
  .display-as-grid div.img-thumbnail.landscape .cb_media-object .centered,
842
  .display-as-grid div.img-thumbnail.landscape .gm-item-cell-media-object .centered {
843
+ transform: translate(50%, 50.5%) translateZ(0);
844
  }
845
 
846
  .display-as-grid div.img-thumbnail .cb_media-object img,
847
  .display-as-grid div.img-thumbnail .gm-item-cell-media-object img {
848
+ left: 0;
849
+ position: absolute;
850
+ top: 0;
851
+ transform: translate(-50%, -50%) translateZ(0);
852
  }
853
 
854
  .display-as-grid div.img-thumbnail.landscape img {
855
+ height: 101%;
856
+ width: auto;
857
+ max-width: initial;
858
  }
859
 
860
  .display-as-grid div.img-thumbnail.portrait img {
861
+ height: auto;
862
+ width: 100%;
863
  }
864
 
865
  .display-as-grid.invert-ratio div.img-thumbnail.landscape img {
866
+ height: auto;
867
+ width: 101%;
868
+ max-width: initial;
869
  }
870
 
871
  .display-as-grid.invert-ratio div.img-thumbnail.portrait img {
872
+ height: 101%;
873
+ width: auto;
874
+ max-width: initial;
875
  }
876
 
877
  .img-thumbnail img.gmedia-typethumb,
878
  .display-as-grid div.img-thumbnail .cb_media-object img.gmedia-typethumb,
879
  .display-as-grid div.img-thumbnail .gm-item-cell-media-object img.gmedia-typethumb {
880
+ position: absolute;
881
+ right: 7px;
882
+ bottom: 7px;
883
+ height: 75px;
884
+ max-height: 60%;
885
+ width: auto;
886
+ max-width: initial;
887
  }
888
 
889
  .display-as-grid div.img-thumbnail .cb_media-object img.gmedia-typethumb,
890
  .display-as-grid div.img-thumbnail .gm-item-cell-media-object img.gmedia-typethumb {
891
+ left: auto;
892
+ top: auto;
893
+ right: 50%;
894
+ bottom: 50%;
895
+ margin: 0 5px 5px 0;
896
+ transform: none;
897
+ opacity: 0.9;
898
  }
899
 
900
+ .thumbwrap {
901
+ position: relative;
902
+ margin-bottom: 5px;
903
+ }
904
 
905
  .gm-item-check,
906
+ .gm-order {
907
+ position: absolute;
908
+ right: -8px;
909
+ bottom: -8px;
910
+ padding: 5px;
911
+ margin: 0;
912
+ border-style: solid;
913
+ border-color: #1e8cbe;
914
+ background-color: #ffffff;
915
+ border-width: 1px 0 0 1px;
916
+ }
917
 
918
+ .gm-item-check input {
919
+ margin: 0;
920
+ padding: 0;
921
+ }
922
 
923
  .gm-order input {
924
+ display: block;
925
+ line-height: 120%;
926
+ width: 42px;
927
+ padding: 0 2px;
928
+ margin: 0;
929
+ text-align: center;
930
+ border: 1px solid #ccc;
931
+ border-radius: 4px;
932
  }
933
 
934
+ .thumbwrap .gm-item-check {
935
+ right: 1px;
936
+ bottom: 1px;
937
+ border: 1px solid #dddddd;
938
+ border-radius: 5px 0 5px 0;
939
+ border-right-color: transparent;
940
+ border-bottom-color: transparent;
941
+ border-width: 1px;
942
+ }
943
 
944
+ .thumbwrap .cb_media-object {
945
+ width: 100%;
946
+ margin: 0;
947
+ display: flex;
948
+ }
949
 
950
  .cb_media-object .img-thumbnail {
951
+ width: 100%;
952
  }
953
 
954
  .media-title {
955
+ font-size: 18px;
956
+ word-wrap: break-word;
957
  }
958
 
959
+ .media-caption:empty {
960
+ display: none;
961
+ }
962
 
963
  .media-caption.in-library {
964
+ max-height: 215px;
965
  }
966
 
967
  .media-caption {
968
+ background-color: #f5f5f5;
969
+ border: 1px solid #cccccc;
970
+ border-radius: 4px;
971
+ padding: 5px 7px;
972
+ margin: 0 -6px 5px;
973
+ overflow: auto;
974
+ word-break: normal;
975
+ word-wrap: break-word;
976
+ max-height: 210px;
977
  }
978
 
979
  .media-body .media-caption {
980
+ margin: 0;
981
  }
982
 
983
  .media-meta {
984
+ width: 100%;
985
+ overflow: hidden;
986
+ text-overflow: ellipsis; /*white-space:nowrap;*/
987
  }
988
 
989
+ .media-meta.gmedia-actions {
990
+ font-size: 18px;
991
+ }
992
+
993
+ .media-meta .gm_gallery_source {
994
+ font-weight: bold;
995
+ }
996
 
997
  .media-meta .label-default {
998
+ background-color: #eeeeee;
999
+ color: #444444;
1000
  }
1001
 
1002
  .gmedia_id {
1003
+ position: absolute;
1004
+ right: 10px;
1005
+ top: 10px;
1006
  }
1007
 
1008
  .term_id {
1009
+ font-size: 80%;
1010
  }
1011
 
1012
  .term_date {
1013
+ font-size: 80%;
1014
  }
1015
 
1016
  .term_date:empty {
1017
+ display: none;
1018
  }
1019
 
1020
  .term_date:before {
1021
+ content: '[';
1022
  }
1023
 
1024
  .term_date:after {
1025
+ content: ']';
1026
  }
1027
 
1028
  #gm-list-table .hidden {
1029
+ display: none !important;
1030
+ visibility: hidden !important;
1031
  }
1032
 
1033
  form#adv-settings .form-inline .form-group {
1034
+ margin-right: 20px;
1035
  }
1036
 
1037
  form.changed {
1041
  }
1042
 
1043
  form.changed .gm-last-edited {
1044
+ text-decoration: line-through;
1045
  }
1046
 
1047
  .selectize-input.full input {
1048
+ width: 4px !important;
1049
  }
1050
 
1051
  .rel-selected-hide {
1052
+ display: none;
1053
  }
1054
 
1055
  .plupload_wrapper {
1056
+ min-width: unset;
1057
  }
1058
 
1059
  .gmAddMedia {
1060
+ padding: 0;
1061
  }
1062
 
1063
  div#pluploadUploader {
1064
+ padding: 0;
1065
+ box-sizing: border-box;
1066
  }
1067
 
1068
  div#pluploadUploader > div > div * {
1069
+ box-sizing: content-box;
1070
  }
1071
 
1072
  .plupload_container {
1073
+ padding: 0;
1074
+ }
1075
+
1076
+ .plupload_filelist li {
1077
+ display: flex;
1078
+ }
1079
+
1080
+ .plupload_filelist .plupload_file_name {
1081
+ flex: 1;
1082
+ }
1083
+
1084
+ .plupload_file_action {
1085
+ order: 3;
1086
+ }
1087
+
1088
+ .plupload_filelist_footer .plupload_file_action * {
1089
+ display: initial;
1090
+ }
1091
+
1092
+ .plupload_droptext {
1093
+ justify-content: center;
1094
  }
1095
 
1096
  div#pluploadUploader_container {
1097
+ min-height: 450px;
1098
+ border-bottom-right-radius: 4px;
1099
  }
1100
 
1101
  div#pluploadUploader_container .plupload_filelist_footer {
1102
+ border-bottom-right-radius: 4px;
1103
+ font-size: 11px;
1104
+ white-space: nowrap;
1105
  }
1106
 
1107
+ div#pluploadUploader_buttons {
1108
+ margin-bottom: 5px;
1109
+ }
1110
 
1111
+ div.plupload_started {
1112
+ float: left;
1113
+ }
1114
 
1115
  div.card-body, div#gmedia-msg-panel, #gmedia-service-msg-panel {
1116
+ -webkit-transition: all .2s ease-in-out;
1117
+ transition: all .2s ease-in-out;
1118
  }
1119
 
1120
  .plupload_scroll .plupload_filelist {
1121
+ height: 315px;
1122
  }
1123
 
1124
  div.card-body:empty, div#gmedia-msg-panel:empty, #gmedia-service-msg-panel:empty {
1125
+ padding: 0;
1126
  }
1127
 
1128
  div#gmedia-msg-panel .alert,
1129
  #gmedia-service-msg-panel .alert {
1130
+ padding: 2px 35px 2px 12px;
1131
+ margin-bottom: 5px;
1132
+ }
1133
+
1134
+ div#gmedia-msg-panel .alert .btn-close,
1135
+ #gmedia-service-msg-panel .alert .btn-close {
1136
+ transform: translateX(110%);
1137
  }
1138
 
1139
  .plupload_content li {
1140
+ margin-bottom: 0;
1141
  }
1142
 
1143
  .progress {
1144
+ position: relative;
1145
+ white-space: nowrap;
1146
+ font-size: 12px;
1147
+ line-height: 20px;
1148
  }
1149
 
1150
  .progress-bar {
1151
+ position: absolute;
1152
+ overflow: hidden;
1153
  }
1154
 
1155
  .tab-inside {
1156
+ padding: 10px;
1157
+ position: relative;
1158
  }
1159
 
1160
  .tab-footer {
1161
+ border-top: 1px solid #dddddd;
1162
+ padding: 20px 10px 0;
1163
  }
1164
 
1165
  div.form-control.selectize-control {
1166
+ padding: 0 !important;
1167
  }
1168
 
1169
  .selectize-control.input-sm .selectize-input {
1170
+ min-height: 30px;
1171
+ padding: 2px 10px;
1172
+ font-size: 12px;
1173
+ line-height: 1.9;
1174
+ border-radius: 3px;
1175
  }
1176
 
1177
  .selectize-control.multi .selectize-input.has-items {
1178
+ padding-top: 2px;
1179
  }
1180
 
1181
  .selectize-control.input-sm .selectize-input input {
1182
+ font-size: 12px;
1183
  }
1184
 
1185
  .selectize-control.input-sm .selectize-input:after {
1186
+ right: 10px;
1187
  }
1188
 
1189
  .selectize-control.input-sm .selectize-input > div {
1190
+ line-height: 146%;
1191
  }
1192
 
1193
  .term-list-item {
1194
+ padding-top: 0;
1195
+ padding-bottom: 0;
1196
+ z-index: 1;
1197
  }
1198
 
1199
+ .object-actions {
1200
+ text-align: right;
1201
+ font-size: 16px;
1202
+ }
1203
 
1204
+ .object-actions.gallery-object-actions {
1205
+ text-align: left;
1206
+ margin-bottom: 5px;
1207
+ font-size: 18px;
1208
+ display: flex;
1209
+ gap: 15px;
1210
+ }
1211
 
1212
+ .object-actions > * {
1213
+ margin: 0 0 0 10px;
1214
+ vertical-align: middle;
1215
+ display: inline-block;
1216
+ }
1217
 
1218
+ .object-actions.gallery-object-actions > *:first-child {
1219
+ margin-left: 0;
1220
+ }
1221
 
1222
+ .object-actions a:hover {
1223
+ text-decoration: none;
1224
+ }
1225
 
1226
  /*.gm_filter_in_lib { border:1px solid; border-radius:4px; font-size:14px; line-height:14px; padding:0 2px 0 4px; }*/
1227
+ .gm_term_count {
1228
+ font-size: 13px;
1229
+ font-weight: bold;
1230
+ text-decoration: none;
1231
+ vertical-align: bottom;
1232
+ }
1233
 
1234
+ a.trash-icon:hover {
1235
+ color: #843534;
1236
+ }
1237
 
1238
+ .action-inactive {
1239
+ color: #b8b8b8;
1240
+ }
1241
 
1242
+ .action-inactive:hover {
1243
+ color: #b8b8b8;
1244
+ }
1245
 
1246
  .term-list-item .term-label .checkbox {
1247
+ padding-left: 35px;
1248
+ padding-top: 6px;
1249
+ min-height: 68px;
1250
  }
1251
 
1252
  .term-list-item .term-label .checkbox > input {
1253
+ margin-left: -35px;
1254
+ margin-top: 2px;
1255
  }
1256
 
1257
  .term-list-item .checkbox input {
1258
+ margin-top: 0;
1259
+ margin-right: 15px;
1260
  }
1261
 
1262
  .term-list-item .term-description {
1263
+ padding: 0;
1264
+ white-space: nowrap;
1265
+ overflow: hidden;
1266
+ color: #444444;
1267
+ text-overflow: ellipsis;
1268
  }
1269
 
1270
  .term-list-item .term-description:empty {
1271
+ padding: 0;
1272
  }
1273
 
1274
  .term-list-item .object-actions {
1275
+ position: absolute;
1276
+ right: 0;
1277
+ left: auto;
1278
+ top: 4px;
1279
+ line-height: 165%;
1280
  }
1281
 
1282
  .term-list-item .term-images {
1283
+ padding-top: 5px;
1284
+ padding-bottom: 5px;
1285
+ overflow: hidden;
1286
+ white-space: nowrap;
1287
+ position: relative;
1288
+ z-index: 1;
1289
  }
1290
 
1291
  .term-list-item .term-images img {
1292
+ position: relative;
1293
+ height: 68px;
1294
+ width: auto;
1295
+ background-color: #ffffff;
1296
  }
1297
 
1298
+ .term-list-item .term_name {
1299
+ margin-right: 80px;
1300
+ overflow: hidden;
1301
+ white-space: nowrap;
1302
+ text-overflow: ellipsis;
1303
+ font-size: 22px;
1304
+ display: inline-block;
1305
+ line-height: 100%;
1306
+ }
1307
 
1308
+ .term-list-item .no-checkbox .term_name {
1309
+ margin-right: 5px;
1310
+ font-size: 16px;
1311
+ }
1312
 
1313
  .term-list-item .term_info_author {
1314
+ font-size: 80%;
1315
+ white-space: nowrap;
1316
+ color: #444444;
1317
  }
1318
 
1319
+ .object-actions .term-shortcode {
1320
+ float: left;
1321
+ margin: 0;
1322
+ }
1323
 
1324
  .object-actions .term-shortcode input,
1325
+ .object-actions .term-shortcode .input-buffer {
1326
+ font-family: Courier, sans-serif;
1327
+ font-size: 14px;
1328
+ line-height: 100%;
1329
+ letter-spacing: 0.05em;
1330
+ border: none;
1331
+ box-shadow: none;
1332
+ background-color: #fff;
1333
+ margin: 0;
1334
+ padding: 0;
1335
+ }
1336
 
1337
+ .card-header .term-shortcode {
1338
+ float: left;
1339
+ }
1340
 
1341
  .card-header .term-shortcode input,
1342
+ .card-header .term-shortcode .input-buffer {
1343
+ font-family: Courier, sans-serif;
1344
+ font-size: 14px;
1345
+ letter-spacing: 0.05em;
1346
+ }
1347
 
1348
+ .term-shortcode .input-buffer {
1349
+ position: absolute;
1350
+ top: -1000px;
1351
+ left: -1000px;
1352
+ visibility: hidden;
1353
+ white-space: nowrap;
1354
+ }
1355
 
1356
  .no-touch .term-list-item .term-images img:hover {
1357
+ z-index: 100 !important;
1358
  }
1359
 
1360
+ .edit_tag_link {
1361
+ font-size: 18px;
1362
+ }
1363
 
1364
  .edit_tag_form {
1365
+ display: inline-block;
1366
+ margin-left: -5px;
1367
+ margin-bottom: -1px;
1368
+ margin-top: -1px;
1369
+ font-size: 18px;
1370
  }
1371
 
1372
+ .edit_tag_form a {
1373
+ font-size: 18px;
1374
+ line-height: 100%;
1375
+ }
1376
 
1377
  .edit_tag_form input.edit_tag_input {
1378
+ padding: 0 5px;
1379
+ border-width: 0 0 1px 0;
1380
+ margin: 0;
1381
+ font-size: 18px;
1382
+ line-height: 100%;
1383
  }
1384
 
1385
  a.edit_tag_save.btn {
1386
+ padding-top: 0;
1387
+ padding-bottom: 0;
1388
  }
1389
 
1390
  .btn-link {
1391
+ text-decoration: none;
1392
  }
1393
 
1394
  .btn-link:hover {
1395
+ text-decoration: underline;
1396
  }
1397
 
1398
  .no-touch a.edit_tag_save.btn-link:hover {
1399
+ text-decoration: none;
1400
  }
1401
 
1402
  .gm-img-thumbnail {
1403
+ display: inline-block;
1404
+ position: relative;
1405
+ margin-right: 5px;
1406
+ margin-bottom: 25px;
1407
+ max-width: 100%;
1408
+ height: auto;
1409
+ padding: 4px;
1410
+ line-height: 1.428571429;
1411
+ background-color: #ffffff;
1412
+ border: 1px solid #dddddd;
1413
+ border-radius: 4px;
1414
  }
1415
 
1416
  .gm-img-thumbnail img {
1417
+ height: auto;
1418
+ width: auto;
1419
+ max-width: 100%;
1420
+ max-height: 100%;
1421
+ display: inline-block;
1422
+ vertical-align: middle;
1423
  }
1424
 
1425
  #gmedia-edit-term .gm-img-thumbnail {
1426
+ text-align: center;
1427
+ margin: 0;
1428
  }
1429
 
1430
+ #gmedia-edit-term .gm-img-thumbnail:empty {
1431
+ display: none;
1432
+ }
1433
 
1434
+ #gmedia-edit-term .gm-img-thumbnail img {
1435
+ max-height: 150px;
1436
+ }
1437
 
1438
  .choose-module {
1439
+ padding: 10px;
1440
+ overflow: hidden;
1441
+ margin: 0;
1442
  }
1443
 
1444
  .no-touch .choose-module:hover {
1445
+ background-color: #d0e9c6;
1446
  }
1447
 
1448
  .choose-module .img-thumbnail {
1449
+ margin-bottom: 0;
1450
  }
1451
 
1452
  .media {
1453
+ overflow: hidden;
1454
  }
1455
 
1456
  .media > .img-thumbnail.float-start {
1457
+ padding: 4px;
1458
+ margin-right: 10px
1459
  }
1460
 
1461
  #gmedia_modules .media {
1462
+ border-bottom: 1px solid #444444;
1463
+ padding-bottom: 15px;
1464
+ margin-bottom: 30px;
1465
  }
1466
 
1467
  #gmedia_modules .media:last-child {
1468
+ border-bottom: none;
1469
+ padding-bottom: 0;
1470
+ margin-bottom: 0;
1471
  }
1472
 
1473
  #gmedia_modules .buttons a.btn {
1474
+ margin-bottom: 7px;
1475
  }
1476
 
1477
  #chooseModuleModal .choose-module {
1478
+ border-bottom: 1px solid #444444;
1479
  }
1480
 
1481
  #chooseModuleModal .choose-module:last-child {
1482
+ border-bottom: none;
1483
  }
1484
 
1485
  .modules-body .media {
1486
+ display: none;
1487
  }
1488
 
1489
  .modules-body .module-filtered {
1490
+ display: block;
1491
  }
1492
 
1493
+ .presetlist a {
1494
+ }
1495
 
1496
  .gm-preset-id {
1497
+ font-size: smaller;
1498
+ float: right;
1499
+ padding: 0 15px 0 5px;
1500
  }
1501
 
1502
  .addpreset:hover,
1503
  .addpreset:active,
1504
  .addpreset {
1505
+ margin: 0 8px 0;
1506
+ line-height: 100%;
1507
+ text-decoration: none;
1508
+ outline: none;
1509
  }
1510
 
1511
  .addpreset span {
1512
+ line-height: 100%;
1513
+ font-size: 74%;
1514
+ padding: 0 5px 2px;
1515
+ cursor: pointer;
1516
  }
1517
 
1518
  .delpreset {
1519
+ position: absolute;
1520
+ right: 0;
1521
+ top: 0;
1522
+ bottom: 0;
1523
+ padding: 0.6em 6px 0;
1524
+ line-height: 100%;
1525
  }
1526
 
1527
  .delpreset span {
1528
+ line-height: 100%;
1529
+ font-size: 94%;
1530
+ padding: 0 5px 2px;
1531
+ cursor: pointer;
1532
  }
1533
 
1534
  body#media-upload {
1535
+ height: 100%;
1536
+ overflow: auto;
1537
+ margin: 0;
1538
+ padding: 0;
1539
+ background: #ffffff;
1540
  }
1541
 
1542
  body#media-upload .panel {
1543
+ position: relative;
1544
+ height: 100%;
1545
+ overflow: auto;
1546
+ margin: 0;
1547
+ border-radius: 0;
1548
+ border-top: none;
1549
  }
1550
 
1551
  body#media-upload .card-header {
1552
+ position: relative;
1553
+ z-index: 100;
1554
  }
1555
 
1556
  body#media-upload .card-body {
1557
+ position: absolute;
1558
+ top: 55px;
1559
+ bottom: 0;
1560
+ width: 100%;
1561
+ overflow: hidden;
1562
+ z-index: 50;
1563
+ padding-top: 0;
1564
+ padding-bottom: 0;
1565
+ }
1566
+
1567
+ body#media-upload .card-body .row {
1568
+ width: 100%;
1569
  }
1570
 
1571
  body#media-upload .card-body > .row {
1572
+ height: 100%;
1573
  }
1574
 
1575
  body#media-upload .card-body > .row > div {
1576
+ height: 100%;
1577
+ overflow: auto;
1578
+ padding-top: 15px;
1579
+ padding-bottom: 15px;
1580
  }
1581
 
1582
  body#media-upload .card-body .list-group-item {
1583
+ border-width: 0;
1584
+ border-top-width: 1px;
1585
+ margin: 0;
1586
+ flex-direction: column;
1587
  }
1588
 
1589
  body#media-upload .card-body .list-group-item:first-child {
1590
+ border-width: 0;
1591
  }
1592
 
1593
  body#media-upload .term-list-item .term-images img {
1594
+ height: 30px;
1595
  }
1596
 
1597
  body#media-upload .term-list-item .term-label .no-checkbox {
1598
+ display: inline-block;
1599
+ width: 100%;
1600
+ margin: 10px 0;
1601
  }
1602
 
1603
  body#media-upload .term-list-item .term-info {
1604
+ display: none;
1605
  }
1606
 
1607
  .blank-aligner {
1608
+ display: inline-block;
1609
+ height: 40px;
1610
+ vertical-align: middle;
1611
+ width: 1px;
1612
+ overflow: hidden;
1613
+ margin-right: -2em;
1614
  }
1615
 
1616
  body#media-upload .media-upload-sidebar {
1617
+ border-left: 1px solid #cccccc;
1618
+ background-color: #eeeeee;
1619
+ padding: 0 !important;
1620
+ position: relative;
1621
  }
1622
 
1623
  body#media-upload .media-upload-sidebar form {
1624
+ display: -webkit-box;
1625
+ display: -moz-box;
1626
+ display: -ms-flexbox;
1627
+ display: -webkit-flex;
1628
+ display: flex;
1629
+ -webkit-flex-direction: column;
1630
+ -moz-flex-direction: column;
1631
+ -ms-flex-direction: column;
1632
+ flex-direction: column;
1633
+ height: 100%;
1634
+ width: 100%;
1635
  }
1636
 
1637
  body#media-upload .media-upload-sidebar .media-upload-form-container {
1638
+ -webkit-box-flex: 1 auto;
1639
+ -moz-box-flex: 1 auto;
1640
+ -webkit-flex: 1 auto;
1641
+ -ms-flex: 1 auto;
1642
+ flex: 1 auto;
1643
+ overflow: auto;
1644
+ padding: 15px;
1645
  }
1646
 
1647
  body#media-upload .media-upload-sidebar .card-footer {
1648
+ min-height: 57px;
1649
  }
1650
 
1651
  body#media-upload .img-thumbnail {
1652
+ margin: 0 5px 5px 0;
1653
+ position: relative;
1654
+ display: inline-block;
1655
  }
1656
 
1657
  body#media-upload .img-thumbnail.active {
1658
+ background-color: lightblue;
1659
+ border-color: cadetblue;
1660
  }
1661
 
1662
+ body#media-upload .img-thumbnail [class^="fa-"] {
1663
+ display: none;
1664
+ position: absolute;
1665
+ right: -3px;
1666
+ top: -7px;
1667
+ font-size: 30px;
1668
  }
1669
 
1670
+ body#media-upload .img-thumbnail.active [class^="fa-"] {
1671
+ display: inline-block;
1672
  }
1673
 
1674
  body#media-upload .plupload_wrapper {
1675
+ height: 100%;
1676
+ box-sizing: border-box;
1677
+ overflow: hidden;
1678
  }
1679
 
1680
+ .addtags-gap {
1681
+ height: 200px;
1682
+ }
1683
 
1684
  body#media-upload div#pluploadUploader .plupload_container {
1685
+ height: 100%;
1686
+ min-height: inherit !important;
1687
+ padding: 0;
1688
  }
1689
 
1690
  body#media-upload .ui-resizable-handle {
1691
+ display: none !important;
1692
+ bottom: -1px;
1693
+ }
1694
+
1695
+ body#media-upload .plupload {
1696
+ flex-direction: column;
1697
+ display: flex;
1698
+ height: 100%;
1699
+ }
1700
+
1701
+ body#media-upload .plupload_content {
1702
+ flex: 1 0 auto;
1703
+ display: flex;
1704
+ flex-direction: column;
1705
+ }
1706
+
1707
+ body#media-upload .plupload_filelist {
1708
+ flex: 1 0 auto;
1709
+ height: auto;
1710
  }
1711
 
1712
  #gmedia-post-thumbnail {
1713
+ font-size: 12px;
1714
+ padding: 0;
1715
+ display: inline;
1716
+ white-space: normal;
1717
  }
1718
 
1719
  body.gmedia-blank.gmedia_image_editor {
1720
+ height: 100%;
1721
+ overflow: auto;
1722
+ margin: 0;
1723
+ padding: 0
1724
  }
1725
 
1726
  body.gmedia-blank.gmedia_image_editor .panel,
1727
  body.gmedia-blank.gmedia_map_editor .panel {
1728
+ position: relative;
1729
+ height: 100%;
1730
+ overflow: auto;
1731
+ margin: 0;
1732
  }
1733
 
1734
  body.gmedia-blank .card-header {
1735
+ position: relative;
1736
+ z-index: 100;
1737
  }
1738
 
1739
  body.gmedia-blank.gmedia_image_editor .card-body {
1740
+ position: absolute;
1741
+ top: 55px;
1742
+ bottom: 0;
1743
+ width: 100%;
1744
+ overflow: hidden;
1745
+ z-index: 50;
1746
+ padding-top: 0;
1747
+ padding-bottom: 0;
1748
  }
1749
 
1750
  body.gmedia-blank.gmedia_image_editor .card-body .row {
1751
+ height: 100%;
1752
  }
1753
 
1754
  body.gmedia-blank.gmedia_image_editor .card-body .row > div {
1755
+ height: 100%;
1756
+ overflow: auto;
1757
+ padding-top: 15px;
1758
+ padding-bottom: 15px;
1759
  }
1760
 
1761
  body.gmedia-blank .media-edit-sidebar {
1762
+ border-left: 1px solid #cccccc;
1763
+ background-color: #eeeeee;
1764
+ padding: 0 0 55px 0 !important;
1765
+ position: relative;
1766
  }
1767
 
1768
  body.gmedia-blank #media-edit-form-container {
1769
+ height: 100%;
1770
+ overflow: auto;
1771
+ padding: 15px;
1772
  }
1773
 
1774
  body.gmedia-blank .media-edit-sidebar .card-footer {
1775
+ position: absolute;
1776
+ left: 0;
1777
+ bottom: 0;
1778
+ right: 0;
1779
  }
1780
 
1781
  body.gmedia_library .panel {
1782
+ margin-bottom: 0;
1783
  }
1784
 
1785
  #map-floating-panel {
1786
+ position: absolute;
1787
+ top: 15px;
1788
+ right: 15px;
1789
+ z-index: 5;
1790
+ background-color: #ffffff;
1791
+ padding: 0 0 5px 5px;
1792
+ width: 250px;
1793
  }
1794
 
1795
+ #save_buttons_duplicate {
1796
+ display: none;
1797
+ }
1798
 
1799
+ .panel-floatingHeader #save_buttons_duplicate {
1800
+ display: block;
1801
+ }
1802
 
1803
  #gallery_preview_ {
1804
+ width: 200%;
1805
+ height: 800px;
1806
+ margin-bottom: -400px;
1807
+ overflow: auto;
1808
+ -moz-transform: scale(0.5, 0.5) translateZ(0);
1809
+ -webkit-transform: scale(0.5, 0.5) translateZ(0);
1810
+ -o-transform: scale(0.5, 0.5) translateZ(0);
1811
+ -ms-transform: scale(0.5, 0.5) translateZ(0);
1812
+ transform: scale(0.5, 0.5) translateZ(0);
1813
+ -moz-transform-origin: top left;
1814
+ -webkit-transform-origin: top left;
1815
+ -o-transform-origin: top left;
1816
+ -ms-transform-origin: top left;
1817
+ transform-origin: top left;
1818
+ border: solid #cccccc 2px;
1819
  }
1820
 
1821
  .gallery_preview {
1822
+ padding: 0 5px 5px 0;
1823
+ border-right: 1px dotted;
1824
+ border-bottom: 1px dotted;
1825
+ background-color: #eee;
1826
+ width: 100%;
1827
+ height: 600px;
1828
+ resize: both;
1829
+ overflow: hidden;
1830
  }
1831
 
1832
  #gallery_preview {
1833
+ width: 100%;
1834
+ height: 100%;
1835
+ border: solid #cccccc 1px;
1836
+ overflow: auto;
1837
  }
1838
 
1839
  #adv-settings {
1840
+ overflow: hidden;
1841
  }
1842
 
1843
  #screen-meta .form-group {
1844
+ padding-bottom: 10px;
1845
  }
1846
 
1847
  #previewModal {
1848
+ z-index: 9999;
1849
+ overflow-x: auto;
1850
  }
1851
 
1852
+ #previewModal .modal-header .btn-primary {
1853
+ display: none;
1854
+ }
1855
 
1856
+ #previewModal .select_gmedia .modal-header .btn-primary {
1857
+ display: inline-block;
1858
+ }
1859
 
1860
+ #previewModal .select_gmedia_image .modal-header .btn-primary {
1861
+ display: inline-block;
1862
+ }
1863
 
1864
+ #previewModal .select_gmedia_related .modal-header .btn-primary {
1865
+ display: inline-block;
1866
+ }
1867
 
1868
+ .edit_gmedia_item .modal-header {
1869
+ display: none;
1870
+ }
1871
 
1872
+ .edit_gmedia_item .modal-body {
1873
+ padding: 0;
1874
+ }
1875
 
1876
+ .edit_gmedia_item iframe {
1877
+ max-height: calc(100vh - 110px);
1878
+ }
1879
 
1880
  .select_gmedia .modal-body,
1881
  .select_gmedia_related .modal-body,
1882
+ .select_gmedia_image .modal-body {
1883
+ padding: 0;
1884
+ }
1885
 
1886
  .select_gmedia iframe,
1887
  .select_gmedia_related iframe,
1888
+ .select_gmedia_image iframe {
1889
+ max-height: calc(100vh - 160px);
1890
+ }
1891
 
1892
+ .no-transition {
1893
+ transition: none !important;
1894
+ -webkit-transition: none !important;
1895
+ }
1896
+
1897
+ .checked_thumb {
1898
+ margin-top: -7px;
1899
+ text-align: center;
1900
+ }
1901
 
1902
+ .checked_thumb img {
1903
+ max-height: 64px;
1904
+ margin-top: 7px;
1905
+ width: auto;
1906
+ height: auto;
1907
+ }
1908
 
1909
+ input.sharelink[readonly] {
1910
+ cursor: text;
1911
+ }
1912
 
1913
+ fieldset.gmediacustomstuff {
1914
+ margin: 0 0 10px;
1915
+ padding: .35em .625em .4em;
1916
+ position: relative;
1917
+ border: 1px solid silver
1918
+ }
1919
 
 
1920
  fieldset.gmediacustomstuff legend {
1921
+ width: auto;
1922
+ float: none;
1923
+ color: #000;
1924
+ margin-right: auto;
1925
  }
1926
 
1927
+ .delete-custom-field {
1928
+ margin: 4px 2px 0;
1929
+ cursor: pointer;
1930
+ }
1931
 
1932
+ .newcustomfield-modal {
1933
+ position: absolute;
1934
+ bottom: -0.6em;
1935
+ right: 8px;
1936
+ font-size: 80%;
1937
+ }
1938
 
1939
+ .gmapp-description, .gmapp-description p {
1940
+ font-size: 15px;
1941
+ }
1942
 
1943
  div#wp-link-wrap {
1944
+ box-sizing: border-box;
1945
  }
1946
 
1947
  div#wp-link-wrap label {
1948
+ font-weight: normal;
1949
+ display: block;
1950
+ margin: 0;
1951
  }
1952
 
1953
  .input-group.gmedia_date input {
1954
+ background: #ffffff;
1955
  }
1956
 
1957
  @media (min-width: 782px) {
1958
+ div.modal {
1959
+ top: 32px;
1960
+ }
1961
 
1962
+ body.gmedia-blank div.modal {
1963
+ top: 0;
1964
+ }
1965
 
1966
+ div#termsModal .modal-dialog {
1967
+ width: 350px;
1968
+ }
1969
 
1970
  }
1971
 
1972
  @media (max-width: 600px) {
1973
+ .panel-floatingHeader .card-header,
1974
+ .panel-absoluteHeader .card-header {
1975
+ position: static;
1976
+ box-shadow: none;
1977
+ }
1978
 
1979
+ .panel-floatingHeader .card-header-fake, .panel-absoluteHeader .card-header-fake {
1980
+ display: none;
1981
+ }
1982
  }
1983
 
1984
  @media (max-width: 782px) {
1985
+ .panel-floatingHeader .card-header {
1986
+ top: 46px;
1987
+ }
1988
 
1989
+ div#wpwrap {
1990
+ background: #708090;
1991
+ }
1992
 
1993
+ div#wpbody select.input-sm {
1994
+ height: 30px;
1995
+ font-size: 12px;
1996
+ }
1997
 
1998
+ #adminmenu #toplevel_page_GrandMedia ul.wp-submenu {
1999
+ display: block;
2000
+ }
2001
 
2002
+ .media-body {
2003
+ display: block;
2004
+ }
2005
 
2006
+ .show-settings-link {
2007
+ display: none;
2008
+ }
2009
  }
2010
 
2011
  @media (max-width: 991px) {
2012
+ body#media-upload .card-body > #gmUpload.row {
2013
+ overflow-y: auto;
2014
+ }
2015
 
2016
+ body#media-upload .card-body > #gmUpload.row > div {
2017
+ height: auto;
2018
+ }
2019
 
2020
+ body#media-upload .plupload_wrapper {
2021
+ height: auto;
2022
+ }
2023
 
2024
+ body#media-upload div#pluploadUploader .plupload_container {
2025
+ height: auto;
2026
+ min-height: 300px !important;
2027
+ }
2028
  }
2029
 
2030
  /*@-moz-document url-prefix() {
2036
  /* custom inclusion of right, left tabs */
2037
  .tabs-right > .nav-tabs,
2038
  .tabs-left > .nav-tabs {
2039
+ border-bottom: 0;
2040
  }
2041
 
2042
  .gm-tab-content > .tab-pane,
2043
  .pill-content > .pill-pane {
2044
+ display: none;
2045
  }
2046
 
2047
  .gm-tab-content > .active,
2048
  .pill-content > .active {
2049
+ display: block;
2050
  }
2051
 
2052
  .tabs-left > .nav-tabs > li,
2053
  .tabs-right > .nav-tabs > li {
2054
+ float: none;
2055
  }
2056
 
2057
  .tabs-left > .nav-tabs > li > a,
2058
  .tabs-right > .nav-tabs > li > a {
2059
+ min-width: 74px;
2060
+ margin-right: 0;
2061
+ margin-bottom: 3px;
2062
  }
2063
 
2064
  .tabs-left > .nav-tabs {
2065
+ float: left;
2066
+ margin-right: 19px;
2067
+ border-right: 1px solid #dddddd;
2068
  }
2069
 
2070
  .tabs-left > .nav-tabs > li > a {
2071
+ margin-right: -1px;
2072
+ -webkit-border-radius: 4px 0 0 4px;
2073
+ -moz-border-radius: 4px 0 0 4px;
2074
+ border-radius: 4px 0 0 4px;
2075
  }
2076
 
2077
  .no-touch .tabs-left > .nav-tabs > li > a:hover,
2078
  .tabs-left > .nav-tabs > li > a:focus {
2079
+ border-color: #eeeeee #dddddd #eeeeee #eeeeee;
2080
  }
2081
 
2082
  .tabs-left > .nav-tabs .active,
2083
  .no-touch .tabs-left > .nav-tabs .active:hover,
2084
  .tabs-left > .nav-tabs .active:focus {
2085
+ border-color: #dddddd transparent #dddddd #dddddd;
2086
+ *border-right-color: #ffffff;
2087
  }
2088
 
2089
  .tabs-right > .nav-tabs {
2090
+ float: right;
2091
+ margin-left: 19px;
2092
+ border-left: 1px solid #dddddd;
2093
  }
2094
 
2095
  .tabs-right > .nav-tabs > li > a {
2096
+ margin-left: -1px;
2097
+ -webkit-border-radius: 0 4px 4px 0;
2098
+ -moz-border-radius: 0 4px 4px 0;
2099
+ border-radius: 0 4px 4px 0;
2100
  }
2101
 
2102
  .no-touch .tabs-right > .nav-tabs > li > a:hover,
2103
  .tabs-right > .nav-tabs > li > a:focus {
2104
+ border-color: #eeeeee #eeeeee #eeeeee #dddddd;
2105
  }
2106
 
2107
  .tabs-right > .nav-tabs .active,
2108
  .no-touch .tabs-right > .nav-tabs .active:hover,
2109
  .tabs-right > .nav-tabs .active:focus {
2110
+ border-color: #dddddd #dddddd #dddddd transparent;
2111
+ *border-left-color: #ffffff;
2112
  }
2113
 
2114
  /* custom badge colors */
2115
+ .badge-error {
2116
+ background-color: #b94a48 !important;
2117
+ color: #fff !important;
2118
+ }
2119
 
2120
+ .badge-error:hover {
2121
+ background-color: #953b39 !important;
2122
+ color: #fff !important;
2123
+ }
2124
 
2125
+ .badge-warning {
2126
+ background-color: #f89406;
2127
+ }
2128
 
2129
+ .badge-warning:hover {
2130
+ background-color: #c67605;
2131
+ }
2132
 
2133
+ .badge-success {
2134
+ background-color: #468847 !important;
2135
+ color: #fff !important;
2136
+ }
2137
 
2138
+ .badge-success:hover {
2139
+ background-color: #356635 !important;
2140
+ color: #fff !important;
2141
+ }
2142
 
2143
+ .badge-info {
2144
+ background-color: #3a87ad;
2145
+ }
2146
 
2147
+ .badge-info:hover {
2148
+ background-color: #2d6987;
2149
+ }
2150
 
2151
+ .badge-inverse {
2152
+ background-color: #333333;
2153
+ }
2154
 
2155
+ .badge-inverse:hover {
2156
+ background-color: #1a1a1a;
2157
+ }
2158
 
2159
  /* custom *-xs size for form elements */
2160
  .btn-xs,
2161
+ .btn-group-xs > .btn,
2162
+ .btn-sm,
2163
+ .btn-group-sm > .btn {
2164
+ padding: 0.15rem 0.4rem;
2165
+ font-size: 15px;
2166
+ border-radius: 0.2rem;
2167
  }
2168
 
2169
  .btn-sm,
2170
+ .btn-group-sm > .btn {
2171
+ padding: 0.25rem 0.5rem;
2172
+ font-size: 1rem;
2173
+ border-radius: 0.2rem;
2174
  }
2175
 
2176
  input[type="date"].input-xs,
2180
  .input-group-xs input[type="date"],
2181
  .input-group-xs input[type="time"],
2182
  .input-group-xs input[type="datetime-local"],
2183
+ .input-group-xs input[type="month"],
2184
+ input[type="date"].input-sm,
2185
+ input[type="time"].input-sm,
2186
+ input[type="datetime-local"].input-sm,
2187
+ input[type="month"].input-sm,
2188
+ .input-group-sm input[type="date"],
2189
+ .input-group-sm input[type="time"],
2190
+ .input-group-sm input[type="datetime-local"],
2191
+ .input-group-sm input[type="month"] {
2192
+ line-height: 22px;
2193
  }
2194
 
2195
+ .form-control-static.input-xs,
2196
+ .form-control-static.input-sm {
2197
+ padding-right: 0;
2198
+ padding-left: 0;
2199
  }
2200
 
2201
+ .input-xs,
2202
+ .input-sm {
2203
+ height: 22px;
2204
+ padding-left: 0.7em;
2205
+ padding-right: 0.7em;
2206
+ font-size: 1em !important;
2207
+ line-height: 1.5 !important;
2208
+ border-radius: 3px;
2209
  }
2210
 
2211
+ select.input-xs,
2212
+ select.input-sm {
2213
+ height: 22px;
2214
+ padding-left: 0.7em !important;
2215
+ font-size: 0.9em !important;
2216
+ line-height: 1.5 !important;
2217
+ }
2218
+
2219
+ .form-group select.form-control,
2220
+ select.form-control {
2221
+ padding-block: 0;
2222
  }
2223
 
2224
  textarea.input-xs,
2225
+ select[multiple].input-xs,
2226
+ textarea.input-sm,
2227
+ select[multiple].input-sm {
2228
+ height: auto;
2229
  }
2230
 
2231
  .form-group {
2232
+ margin-bottom: 15px;
2233
  }
2234
 
2235
  .form-group label {
2236
+ display: inline-block;
2237
+ max-width: 100%;
2238
+ margin-bottom: 5px;
2239
+ font-weight: 700;
2240
+ font-size: 14px;
2241
  }
2242
 
2243
+ .form-group-xs .form-control,
2244
+ .form-group-sm .form-control {
2245
+ height: 22px;
2246
+ padding: 1px 10px;
2247
+ font-size: 12px;
2248
+ line-height: 1.5;
2249
+ border-radius: 3px;
2250
  }
2251
 
2252
+ select.form-group-xs .form-control,
2253
+ select.form-group-sm .form-control {
2254
+ height: 22px;
2255
+ line-height: 22px;
2256
  }
2257
 
2258
  textarea.form-group-xs .form-control,
2259
+ select[multiple].form-group-xs .form-control,
2260
+ textarea.form-group-sm .form-control,
2261
+ select[multiple].form-group-sm .form-control {
2262
+ height: auto;
2263
  }
2264
 
2265
+ .form-group-xs .form-control-static,
2266
+ .form-group-sm .form-control-static {
2267
+ height: 22px;
2268
+ min-height: 25px;
2269
+ padding: 1px 5px;
2270
+ font-size: 12px;
2271
+ line-height: 1.5;
2272
  }
2273
 
2274
+ .input-xs + .form-control-feedback,
2275
+ .input-sm + .form-control-feedback {
2276
+ width: 22px;
2277
+ height: 22px;
2278
+ line-height: 22px;
2279
  }
2280
 
2281
  @media (min-width: 768px) {
2282
+ .form-horizontal .form-group-xs .control-label,
2283
+ .form-horizontal .form-group-sm .control-label {
2284
+ padding-top: 4px;
2285
+ }
2286
  }
2287
 
2288
  .input-group-xs > .form-control,
2289
  .input-group-xs > .input-group-text,
2290
+ .input-group-xs > .input-group-btn > .btn,
2291
+ .input-group-sm > .form-control,
2292
+ .input-group-sm > .input-group-text,
2293
+ .input-group-sm > .input-group-btn > .btn {
2294
+ padding: 1px 5px;
2295
+ font-size: 12px;
2296
+ line-height: 1.5;
2297
+ border-radius: 3px;
2298
  }
2299
 
2300
  select.input-group-xs > .form-control,
2301
  select.input-group-xs > .input-group-text,
2302
+ select.input-group-xs > .input-group-btn > .btn,
2303
+ select.input-group-sm > .form-control,
2304
+ select.input-group-sm > .input-group-text,
2305
+ select.input-group-sm > .input-group-btn > .btn {
2306
+ line-height: 22px;
2307
  }
2308
 
2309
  textarea.input-group-xs > .form-control,
2311
  textarea.input-group-xs > .input-group-btn > .btn,
2312
  select[multiple].input-group-xs > .form-control,
2313
  select[multiple].input-group-xs > .input-group-text,
2314
+ select[multiple].input-group-xs > .input-group-btn > .btn,
2315
+ textarea.input-group-sm > .form-control,
2316
+ textarea.input-group-sm > .input-group-text,
2317
+ textarea.input-group-sm > .input-group-btn > .btn,
2318
+ select[multiple].input-group-sm > .form-control,
2319
+ select[multiple].input-group-sm > .input-group-text,
2320
+ select[multiple].input-group-sm > .input-group-btn > .btn {
2321
+ height: auto;
2322
  }
2323
 
2324
+ .input-group-text.input-xs,
2325
+ .input-group-text.input-sm {
2326
+ padding: 1px 5px;
2327
+ font-size: 12px;
2328
+ border-radius: 3px;
2329
  }
2330
 
2331
  .input-group .form-control:first-child,
2335
  .input-group-btn:first-child > .dropdown-toggle,
2336
  .input-group-btn:last-child > .btn-group:not(:last-child) > .btn,
2337
  .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) {
2338
+ border-bottom-right-radius: 0;
2339
+ border-top-right-radius: 0;
2340
+ }
2341
+
2342
+ .input-group .btn {
2343
+ padding-block: 2px;
2344
+ padding-inline: 7px;
2345
+ min-width: 40px;
2346
  }
2347
 
2348
  .input-group .form-control:last-child,
2352
  .input-group-btn:last-child > .btn,
2353
  .input-group-btn:last-child > .btn-group > .btn,
2354
  .input-group-btn:last-child > .dropdown-toggle {
2355
+ border-bottom-left-radius: 0;
2356
+ border-top-left-radius: 0;
2357
  }
2358
 
2359
  .input-group-text.btn-primary {
2360
+ color: #fff;
2361
+ background-color: #337ab7;
2362
+ border-color: #2e6da4;
2363
+ cursor: pointer;
2364
  }
2365
 
2366
  div#gallery_options_block .form-control.input-sm {
2367
+ padding-block: 0;
2368
  }
2369
 
2370
  div#gallery_options_block .nav-item {
2371
+ margin-right: -1px;
2372
  }
2373
 
2374
  div#gallery_options_block .nav-item.active {
2375
+ background-color: #fff;
2376
  }
2377
 
2378
  .notice.updated.gm-message {
2379
+ margin-left: 0;
2380
+ margin-bottom: 30px;
2381
+ /* clear: both; */
2382
+ max-width: 800px;
2383
  }
2384
 
2385
  .gm-plugin-icon {
2386
+ float: left;
2387
+ margin-right: 15px;
2388
  }
2389
 
2390
  .gm-message-content * {
2391
+ font-size: 14px;
2392
  }
2393
 
2394
  .gm-message-actions {
2395
+ background-color: #e6eef1;
2396
+ padding: 10px 12px;
2397
+ margin: 0 -12px;
2398
+ text-align: right;
2399
  }
2400
 
2401
  .gm-message-actions button {
2402
+ margin-left: 20px !important;
2403
  }
2404
 
2405
  .gm-message-plus.gm-closed ul {
2406
+ display: none;
2407
  }
2408
 
2409
  .gm-message-plus {
2410
+ text-align: center;
2411
+ padding: 4px 0;
2412
  }
2413
 
2414
  .gm-message-plus.gm-opened ul {
2415
+ display: block;
2416
+ text-align: left;
2417
+ margin: 20px 20px 10px 20px;
2418
  }
2419
 
2420
  .gm-message-plus ul li {
2421
+ margin-bottom: 12px;
2422
  }
2423
 
2424
  .gm-message-plus ul li i.dashicons {
2425
+ float: left;
2426
+ font-size: 40px;
2427
+ width: 40px;
2428
+ height: 40px;
2429
  }
2430
 
2431
  .gm-message-plus ul li div {
2432
+ margin-left: 55px;
2433
  }
2434
 
2435
  .gm-message-plus ul li div span {
2436
+ font-weight: bold;
2437
+ text-transform: uppercase;
2438
+ color: #23282d;
2439
  }
2440
 
2441
  .gm-message-plus ul li div p {
2442
+ margin: 2px 0 0 0
2443
  }
2444
 
2445
  .gm-module-count-0 {
2446
+ display: none;
2447
  }
2448
 
2449
  #link-selector .link-target {
2450
+ display: none;
2451
  }
2452
 
2453
  /* Spectrum */
2454
  .form-group .sp-replacer {
2455
+ width: 100%;
2456
+ border-radius: 3px;
2457
  }
2458
 
2459
  .form-group .sp-preview {
2460
+ width: calc(100% - 18px);
2461
+ border-radius: 3px;
2462
  }
admin/pages/galleries/functions.php CHANGED
@@ -25,7 +25,7 @@ function gmedia_gallery_actions( $item ) {
25
 
26
  $trash_icon = '<i class="fa-solid fa-trash-can"></i>';
27
  if ( $item->allow_delete ) {
28
- $actions['delete'] = '<a class="trash-icon" title="' . esc_attr__( 'Delete', 'grand-media' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'do_gmedia_terms' => 'delete', 'ids' => $item->term_id ), $gmProcessor->url ), 'gmedia_delete', '_wpnonce_delete' ) ) . '" data-confirm="' . esc_attr__( "You are about to permanently delete the selected items.\n\r'Cancel' to stop, 'OK' to delete.", 'grand-media' ) . '">' . $trash_icon . '</a>';
29
  } else {
30
  $actions['delete'] = '<span class="action-inactive">' . $trash_icon . '</span>';
31
  }
25
 
26
  $trash_icon = '<i class="fa-solid fa-trash-can"></i>';
27
  if ( $item->allow_delete ) {
28
+ $actions['delete'] = '<a class="trash-icon link-danger" title="' . esc_attr__( 'Delete', 'grand-media' ) . '" href="' . esc_url( wp_nonce_url( add_query_arg( array( 'do_gmedia_terms' => 'delete', 'ids' => $item->term_id ), $gmProcessor->url ), 'gmedia_delete', '_wpnonce_delete' ) ) . '" data-confirm="' . esc_attr__( "You are about to permanently delete the selected items.\n\r'Cancel' to stop, 'OK' to delete.", 'grand-media' ) . '">' . $trash_icon . '</a>';
29
  } else {
30
  $actions['delete'] = '<span class="action-inactive">' . $trash_icon . '</span>';
31
  }
admin/pages/galleries/tpl/galleries-panel-heading.php CHANGED
@@ -65,7 +65,7 @@ defined( 'ABSPATH' ) || die( 'No script kiddies please!' );
65
  <li class="<?php echo esc_attr( $rel_selected_show . ( gm_user_can( 'terms_delete' ) ? '' : ' disabled' ) ); ?>">
66
  <a
67
  href="<?php echo esc_url( wp_nonce_url( $gmCore->get_admin_url( array( 'do_gmedia_terms' => 'delete', 'ids' => 'selected' ), array( 'filter' ) ), 'gmedia_delete', '_wpnonce_delete' ) ); ?>"
68
- class="dropdown-item gmedia-delete"
69
  data-confirm="<?php esc_attr_e( "You are about to permanently delete the selected items.\n\r'Cancel' to stop, 'OK' to delete.", 'grand-media' ); ?>"
70
  >
71
  <?php esc_html_e( 'Delete Selected Items', 'grand-media' ); ?>
65
  <li class="<?php echo esc_attr( $rel_selected_show . ( gm_user_can( 'terms_delete' ) ? '' : ' disabled' ) ); ?>">
66
  <a
67
  href="<?php echo esc_url( wp_nonce_url( $gmCore->get_admin_url( array( 'do_gmedia_terms' => 'delete', 'ids' => 'selected' ), array( 'filter' ) ), 'gmedia_delete', '_wpnonce_delete' ) ); ?>"
68
+ class="dropdown-item gmedia-delete text-danger"
69
  data-confirm="<?php esc_attr_e( "You are about to permanently delete the selected items.\n\r'Cancel' to stop, 'OK' to delete.", 'grand-media' ); ?>"
70
  >
71
  <?php esc_html_e( 'Delete Selected Items', 'grand-media' ); ?>
admin/pages/galleries/tpl/modal-build-query.php CHANGED
@@ -105,15 +105,15 @@ global $user_ID, $gmDB, $gmCore
105
  <div class="row">
106
  <div class="col-sm-4">
107
  <label><?php esc_html_e( '[IN] Categories', 'grand-media' ); ?></label>
108
- <input name="category__in" class="form-control input-xs gm_cat_in gm-selectize combobox_gmedia_category" value="<?php echo esc_attr( implode( ',', wp_parse_id_list( $query_data['category__in'] ) ) ); ?>" placeholder="<?php esc_attr_e( 'Either of chosen Categories...', 'grand-media' ); ?>"/>
109
  </div>
110
  <div class="col-sm-4">
111
  <label><?php esc_html_e( '[AND] Categories', 'grand-media' ); ?></label>
112
- <input name="category__and" class="form-control input-xs gm_cat_and gm-selectize combobox_gmedia_category" value="<?php echo esc_attr( implode( ',', wp_parse_id_list( $query_data['category__and'] ) ) ); ?>" placeholder="<?php esc_attr_e( 'Have all chosen Categories...', 'grand-media' ); ?>"/>
113
  </div>
114
  <div class="col-sm-4">
115
  <label><?php esc_html_e( '[NOT IN] Categories', 'grand-media' ); ?></label>
116
- <input name="category__not_in" class="form-control input-xs gm_cat_not_in gm-selectize combobox_gmedia_category" value="<?php echo esc_attr( implode( ',', wp_parse_id_list( $query_data['category__not_in'] ) ) ); ?>" placeholder="<?php esc_attr_e( 'Exclude Categories...', 'grand-media' ); ?>"/>
117
  </div>
118
  </div>
119
  </div>
@@ -126,15 +126,15 @@ global $user_ID, $gmDB, $gmCore
126
  <div class="row">
127
  <div class="col-sm-4">
128
  <label><?php esc_html_e( '[IN] Tags', 'grand-media' ); ?> </label>
129
- <input name="tag__in" class="form-control input-xs gm-selectize combobox_gmedia_tag" value="<?php echo esc_attr( implode( ',', wp_parse_id_list( $query_data['tag__in'] ) ) ); ?>" placeholder="<?php esc_attr_e( 'Either of chosen Tags...', 'grand-media' ); ?>"/>
130
  </div>
131
  <div class="col-sm-4">
132
  <label><?php esc_html_e( '[AND] Tags', 'grand-media' ); ?> </label>
133
- <input name="tag__and" class="form-control input-xs gm-selectize combobox_gmedia_tag" value="<?php echo esc_attr( implode( ',', wp_parse_id_list( $query_data['tag__and'] ) ) ); ?>" placeholder="<?php esc_attr_e( 'Have all chosen Tags...', 'grand-media' ); ?>"/>
134
  </div>
135
  <div class="col-sm-4">
136
  <label><?php esc_html_e( '[NOT IN] Tags', 'grand-media' ); ?> </label>
137
- <input name="tag__not_in" class="form-control input-xs gm-selectize combobox_gmedia_tag" value="<?php echo esc_attr( implode( ',', wp_parse_id_list( $query_data['tag__not_in'] ) ) ); ?>" placeholder="<?php esc_attr_e( 'Exclude Tags...', 'grand-media' ); ?>"/>
138
  </div>
139
  </div>
140
  </div>
@@ -223,7 +223,7 @@ global $user_ID, $gmDB, $gmCore
223
  );
224
  $mime_type_val = is_array( $query_data['mime_type'] ) ? implode( ',', $query_data['mime_type'] ) : str_replace( ', ', ',', $query_data['mime_type'] );
225
  ?>
226
- <input name="mime_type" class="form-control input-xs gm-selectize gmedia-combobox" data-options='<?php echo wp_json_encode( $mime_types ); ?>' value="<?php echo esc_attr( $mime_type_val ); ?>" placeholder="<?php esc_attr_e( 'All types...', 'grand-media' ); ?>"/>
227
  </div>
228
  <div class="col-sm-4">
229
  <label><?php esc_html_e( 'Authors', 'grand-media' ); ?></label>
105
  <div class="row">
106
  <div class="col-sm-4">
107
  <label><?php esc_html_e( '[IN] Categories', 'grand-media' ); ?></label>
108
+ <input type="text" name="category__in" class="form-control input-xs gm_cat_in gm-selectize combobox_gmedia_category" value="<?php echo esc_attr( implode( ',', wp_parse_id_list( $query_data['category__in'] ) ) ); ?>" placeholder="<?php esc_attr_e( 'Either of chosen Categories...', 'grand-media' ); ?>"/>
109
  </div>
110
  <div class="col-sm-4">
111
  <label><?php esc_html_e( '[AND] Categories', 'grand-media' ); ?></label>
112
+ <input type="text" name="category__and" class="form-control input-xs gm_cat_and gm-selectize combobox_gmedia_category" value="<?php echo esc_attr( implode( ',', wp_parse_id_list( $query_data['category__and'] ) ) ); ?>" placeholder="<?php esc_attr_e( 'Have all chosen Categories...', 'grand-media' ); ?>"/>
113
  </div>
114
  <div class="col-sm-4">
115
  <label><?php esc_html_e( '[NOT IN] Categories', 'grand-media' ); ?></label>
116
+ <input type="text" name="category__not_in" class="form-control input-xs gm_cat_not_in gm-selectize combobox_gmedia_category" value="<?php echo esc_attr( implode( ',', wp_parse_id_list( $query_data['category__not_in'] ) ) ); ?>" placeholder="<?php esc_attr_e( 'Exclude Categories...', 'grand-media' ); ?>"/>
117
  </div>
118
  </div>
119
  </div>
126
  <div class="row">
127
  <div class="col-sm-4">
128
  <label><?php esc_html_e( '[IN] Tags', 'grand-media' ); ?> </label>
129
+ <input type="text" name="tag__in" class="form-control input-xs gm-selectize combobox_gmedia_tag" value="<?php echo esc_attr( implode( ',', wp_parse_id_list( $query_data['tag__in'] ) ) ); ?>" placeholder="<?php esc_attr_e( 'Either of chosen Tags...', 'grand-media' ); ?>"/>
130
  </div>
131
  <div class="col-sm-4">
132
  <label><?php esc_html_e( '[AND] Tags', 'grand-media' ); ?> </label>
133
+ <input type="text" name="tag__and" class="form-control input-xs gm-selectize combobox_gmedia_tag" value="<?php echo esc_attr( implode( ',', wp_parse_id_list( $query_data['tag__and'] ) ) ); ?>" placeholder="<?php esc_attr_e( 'Have all chosen Tags...', 'grand-media' ); ?>"/>
134
  </div>
135
  <div class="col-sm-4">
136
  <label><?php esc_html_e( '[NOT IN] Tags', 'grand-media' ); ?> </label>
137
+ <input type="text" name="tag__not_in" class="form-control input-xs gm-selectize combobox_gmedia_tag" value="<?php echo esc_attr( implode( ',', wp_parse_id_list( $query_data['tag__not_in'] ) ) ); ?>" placeholder="<?php esc_attr_e( 'Exclude Tags...', 'grand-media' ); ?>"/>
138
  </div>
139
  </div>
140
  </div>
223
  );
224
  $mime_type_val = is_array( $query_data['mime_type'] ) ? implode( ',', $query_data['mime_type'] ) : str_replace( ', ', ',', $query_data['mime_type'] );
225
  ?>
226
+ <input type="text" name="mime_type" class="form-control input-xs gm-selectize gmedia-combobox" data-options='<?php echo wp_json_encode( $mime_types ); ?>' value="<?php echo esc_attr( $mime_type_val ); ?>" placeholder="<?php esc_attr_e( 'All types...', 'grand-media' ); ?>"/>
227
  </div>
228
  <div class="col-sm-4">
229
  <label><?php esc_html_e( 'Authors', 'grand-media' ); ?></label>
admin/pages/library/functions.php CHANGED
@@ -61,7 +61,7 @@ function gmedia_item_actions( $item ) {
61
  $db_delete = '';
62
  $delete_icon = '<i class="fa-solid fa-trash-can"></i>';
63
  if ( ( gm_user_can( 'delete_media' ) && ( get_current_user_id() === (int) $item->author ) ) || gm_user_can( 'delete_others_media' ) ) {
64
- $delete = '<a class="text-danger" href="' . esc_url(
65
  wp_nonce_url(
66
  gm_get_admin_url(
67
  array(
@@ -77,7 +77,7 @@ function gmedia_item_actions( $item ) {
77
 
78
  if ( $gmCore->_get( 'showmore' ) ) {
79
  $erase_icon = '<i class="fa-solid fa-delete-left"></i>';
80
- $db_delete = '<a class="text-danger" href="' . esc_url(
81
  wp_nonce_url(
82
  gm_get_admin_url(
83
  array(
@@ -127,7 +127,12 @@ function gmedia_item_actions( $item ) {
127
  $duplicate_icon = '<i class="fa-solid fa-copy"></i>';
128
  $duplicate = '<a href="' . wp_nonce_url( gm_get_admin_url( array( 'do_gmedia' => 'duplicate', 'ids' => $item->ID ) ), 'gmedia_action', '_wpnonce_action' ) . '" title="' . __( 'Duplicate', 'grand-media' ) . '">' . $duplicate_icon . '</a>';
129
 
130
- $actions = compact( 'share', 'edit_data', 'edit_image', 'show', 'info', 'duplicate', 'delete', 'db_delete' );
 
 
 
 
 
131
 
132
  return apply_filters( 'gmedia_item_actions', $actions );
133
  }
61
  $db_delete = '';
62
  $delete_icon = '<i class="fa-solid fa-trash-can"></i>';
63
  if ( ( gm_user_can( 'delete_media' ) && ( get_current_user_id() === (int) $item->author ) ) || gm_user_can( 'delete_others_media' ) ) {
64
+ $delete = '<a class="link-danger" href="' . esc_url(
65
  wp_nonce_url(
66
  gm_get_admin_url(
67
  array(
77
 
78
  if ( $gmCore->_get( 'showmore' ) ) {
79
  $erase_icon = '<i class="fa-solid fa-delete-left"></i>';
80
+ $db_delete = '<a class="link-danger" href="' . esc_url(
81
  wp_nonce_url(
82
  gm_get_admin_url(
83
  array(
127
  $duplicate_icon = '<i class="fa-solid fa-copy"></i>';
128
  $duplicate = '<a href="' . wp_nonce_url( gm_get_admin_url( array( 'do_gmedia' => 'duplicate', 'ids' => $item->ID ) ), 'gmedia_action', '_wpnonce_action' ) . '" title="' . __( 'Duplicate', 'grand-media' ) . '">' . $duplicate_icon . '</a>';
129
 
130
+ $display_mode_gmedia = $gmProcessor->display_mode;
131
+ if ( 'grid' === $display_mode_gmedia ) {
132
+ $actions = compact( 'edit_data', 'edit_image', 'show', 'info', 'duplicate' );
133
+ } else {
134
+ $actions = compact( 'edit_data', 'edit_image', 'show', 'info', 'duplicate', 'share', 'delete', 'db_delete' );
135
+ }
136
 
137
  return apply_filters( 'gmedia_item_actions', $actions );
138
  }
admin/pages/library/tpl/edit-item.php CHANGED
@@ -168,7 +168,7 @@ defined( 'ABSPATH' ) || die( 'No script kiddies please!' );
168
  ?>
169
  <div class="form-group">
170
  <label><?php esc_html_e( 'Categories', 'grand-media' ); ?></label>
171
- <input name="terms[gmedia_category]" data-create="<?php echo esc_attr( gm_user_can( 'category_manage' ) ? 'true' : 'false' ); ?>" class="combobox_gmedia_category form-control input-sm" value="<?php echo esc_attr( $terms_category ); ?>" placeholder="<?php esc_attr_e( 'Uncategorized', 'grand-media' ); ?>"/>
172
  </div>
173
 
174
  <?php
@@ -184,7 +184,7 @@ defined( 'ABSPATH' ) || die( 'No script kiddies please!' );
184
  ?>
185
  <div class="form-group">
186
  <label><?php esc_html_e( 'Tags ', 'grand-media' ); ?></label>
187
- <input name="terms[gmedia_tag]" data-create="<?php echo esc_attr( gm_user_can( 'tag_manage' ) ? 'true' : 'false' ); ?>" class="combobox_gmedia_tag form-control input-sm" value="<?php echo esc_attr( $terms_tag ); ?>"/>
188
  </div>
189
  <?php } ?>
190
  </div>
168
  ?>
169
  <div class="form-group">
170
  <label><?php esc_html_e( 'Categories', 'grand-media' ); ?></label>
171
+ <input type="text" name="terms[gmedia_category]" data-create="<?php echo esc_attr( gm_user_can( 'category_manage' ) ? 'true' : 'false' ); ?>" class="combobox_gmedia_category form-control input-sm" value="<?php echo esc_attr( $terms_category ); ?>" placeholder="<?php esc_attr_e( 'Uncategorized', 'grand-media' ); ?>"/>
172
  </div>
173
 
174
  <?php
184
  ?>
185
  <div class="form-group">
186
  <label><?php esc_html_e( 'Tags ', 'grand-media' ); ?></label>
187
+ <input type="text" name="terms[gmedia_tag]" data-create="<?php echo esc_attr( gm_user_can( 'tag_manage' ) ? 'true' : 'false' ); ?>" class="combobox_gmedia_tag form-control input-sm" value="<?php echo esc_attr( $terms_tag ); ?>"/>
188
  </div>
189
  <?php } ?>
190
  </div>
admin/pages/library/tpl/grid-item.php CHANGED
@@ -29,7 +29,9 @@ defined( 'ABSPATH' ) || die( 'No script kiddies please!' );
29
  <div class="gm-cell-more">
30
  <span class="gm-cell-more-btn fa-solid fa-bars"></span>
31
  <div class="gm-cell-more-content">
32
- <p class="media-meta"><span class="badge label-default"><?php esc_html_e( 'ID', 'grand-media' ); ?>:</span> #<?php echo absint( $item->ID ); ?>
 
 
33
  <br/><span class="badge label-default"><?php esc_html_e( 'Album', 'grand-media' ); ?>:</span>
34
  <?php
35
  if ( $item->album ) {
29
  <div class="gm-cell-more">
30
  <span class="gm-cell-more-btn fa-solid fa-bars"></span>
31
  <div class="gm-cell-more-content">
32
+ <p class="media-meta">
33
+ <strong style="word-break:break-word;"><?php echo esc_html( $item->title ); ?></strong>
34
+ <br/><span class="badge label-default"><?php esc_html_e( 'ID', 'grand-media' ); ?>:</span> #<?php echo absint( $item->ID ); ?>
35
  <br/><span class="badge label-default"><?php esc_html_e( 'Album', 'grand-media' ); ?>:</span>
36
  <?php
37
  if ( $item->album ) {
admin/pages/library/tpl/panel-heading.php CHANGED
@@ -197,9 +197,8 @@ defined( 'ABSPATH' ) || die( 'No script kiddies please!' );
197
  </li>
198
  <li class="<?php echo esc_attr( $rel_selected_show . ( gm_user_can( 'delete_media' ) ? '' : ' disabled' ) ); ?>">
199
  <a
200
- class="dropdown-item"
201
  href="<?php echo esc_url( wp_nonce_url( gm_get_admin_url( array( 'do_gmedia' => 'delete', 'ids' => 'selected' ), array( 'filter' ) ), 'gmedia_delete', '_wpnonce_delete' ) ); ?>"
202
- class="dropdown-item gmedia-delete"
203
  data-confirm="<?php esc_attr_e( "You are about to permanently delete the selected items.\n\r'Cancel' to stop, 'OK' to delete.", 'grand-media' ); ?>"
204
  ><?php esc_html_e( 'Delete Selected Items', 'grand-media' ); ?></a>
205
  </li>
197
  </li>
198
  <li class="<?php echo esc_attr( $rel_selected_show . ( gm_user_can( 'delete_media' ) ? '' : ' disabled' ) ); ?>">
199
  <a
 
200
  href="<?php echo esc_url( wp_nonce_url( gm_get_admin_url( array( 'do_gmedia' => 'delete', 'ids' => 'selected' ), array( 'filter' ) ), 'gmedia_delete', '_wpnonce_delete' ) ); ?>"
201
+ class="dropdown-item gmedia-delete text-danger"
202
  data-confirm="<?php esc_attr_e( "You are about to permanently delete the selected items.\n\r'Cancel' to stop, 'OK' to delete.", 'grand-media' ); ?>"
203
  ><?php esc_html_e( 'Delete Selected Items', 'grand-media' ); ?></a>
204
  </li>
admin/pages/settings/tpl/common.php CHANGED
@@ -22,10 +22,10 @@ defined( 'ABSPATH' ) || die( 'No script kiddies please!' );
22
  <div class="form-group">
23
  <label><?php esc_html_e( 'Google API Key', 'grand-media' ); ?></label>
24
  <div class="row">
25
- <div class="col-xs-6">
26
  <input type="text" name="set[google_api_key]" class="form-control input-sm" value="<?php echo esc_attr( $gmGallery->options['google_api_key'] ); ?>">
27
  </div>
28
- <div class="col-xs-6">
29
  <p style="padding-top: 5px"><a target="_blank" href="https://support.google.com/googleapi/answer/6158862"><?php esc_html_e( 'How to create a Google API Key', 'grand-media' ); ?></a></p>
30
  </div>
31
  </div>
@@ -36,7 +36,7 @@ defined( 'ABSPATH' ) || die( 'No script kiddies please!' );
36
  <div class="form-group">
37
  <label><?php esc_html_e( 'Cache expiration', 'grand-media' ); ?></label>
38
  <div class="row">
39
- <div class="col-xs-6">
40
  <input type="number" name="set[cache_expiration]" class="form-control input-sm" value="<?php echo absint( $gmGallery->options['cache_expiration'] ); ?>">
41
  </div>
42
  </div>
@@ -45,7 +45,7 @@ defined( 'ABSPATH' ) || die( 'No script kiddies please!' );
45
 
46
  <hr/>
47
  <div class="form-group row">
48
- <div class="col-xs-6">
49
  <label><?php esc_html_e( 'In Tags order gmedia', 'grand-media' ); ?></label>
50
  <select name="set[in_tag_orderby]" class="form-control input-sm">
51
  <option value="ID" <?php selected( $gmGallery->options['in_tag_orderby'], 'ID' ); ?>><?php esc_html_e( 'by ID', 'grand-media' ); ?></option>
@@ -57,7 +57,7 @@ defined( 'ABSPATH' ) || die( 'No script kiddies please!' );
57
  <option value="rand" <?php selected( $gmGallery->options['in_tag_orderby'], 'rand' ); ?>><?php esc_html_e( 'Random', 'grand-media' ); ?></option>
58
  </select>
59
  </div>
60
- <div class="col-xs-6">
61
  <label><?php esc_html_e( 'Sort order', 'grand-media' ); ?></label>
62
  <select name="set[in_tag_order]" class="form-control input-sm">
63
  <option value="DESC" <?php selected( $gmGallery->options['in_tag_order'], 'DESC' ); ?>><?php esc_html_e( 'DESC', 'grand-media' ); ?></option>
@@ -69,7 +69,7 @@ defined( 'ABSPATH' ) || die( 'No script kiddies please!' );
69
  <hr/>
70
  <div class="form-group">
71
  <div class="row">
72
- <div class="col-xs-6">
73
  <label><?php esc_html_e( 'In Category order gmedia (set default order)', 'grand-media' ); ?></label>
74
  <select name="set[in_category_orderby]" class="form-control input-sm">
75
  <option value="ID" <?php selected( $gmGallery->options['in_category_orderby'], 'ID' ); ?>><?php esc_html_e( 'by ID', 'grand-media' ); ?></option>
@@ -81,7 +81,7 @@ defined( 'ABSPATH' ) || die( 'No script kiddies please!' );
81
  <option value="rand" <?php selected( $gmGallery->options['in_category_orderby'], 'rand' ); ?>><?php esc_html_e( 'Random', 'grand-media' ); ?></option>
82
  </select>
83
  </div>
84
- <div class="col-xs-6">
85
  <label><?php esc_html_e( 'Sort order', 'grand-media' ); ?></label>
86
  <select name="set[in_category_order]" class="form-control input-sm">
87
  <option value="DESC" <?php selected( $gmGallery->options['in_category_order'], 'DESC' ); ?>><?php esc_html_e( 'DESC', 'grand-media' ); ?></option>
@@ -95,7 +95,7 @@ defined( 'ABSPATH' ) || die( 'No script kiddies please!' );
95
  <hr/>
96
  <div class="form-group">
97
  <div class="row">
98
- <div class="col-xs-6">
99
  <label><?php esc_html_e( 'In Album order gmedia (set default order)', 'grand-media' ); ?></label>
100
  <select name="set[in_album_orderby]" class="form-control input-sm">
101
  <option value="ID" <?php selected( $gmGallery->options['in_album_orderby'], 'ID' ); ?>><?php esc_html_e( 'by ID', 'grand-media' ); ?></option>
@@ -107,7 +107,7 @@ defined( 'ABSPATH' ) || die( 'No script kiddies please!' );
107
  <option value="rand" <?php selected( $gmGallery->options['in_album_orderby'], 'rand' ); ?>><?php esc_html_e( 'Random', 'grand-media' ); ?></option>
108
  </select>
109
  </div>
110
- <div class="col-xs-6">
111
  <label><?php esc_html_e( 'Sort order', 'grand-media' ); ?></label>
112
  <select name="set[in_album_order]" class="form-control input-sm">
113
  <option value="DESC" <?php selected( $gmGallery->options['in_album_order'], 'DESC' ); ?>><?php esc_html_e( 'DESC', 'grand-media' ); ?></option>
22
  <div class="form-group">
23
  <label><?php esc_html_e( 'Google API Key', 'grand-media' ); ?></label>
24
  <div class="row">
25
+ <div class="col-sm-6">
26
  <input type="text" name="set[google_api_key]" class="form-control input-sm" value="<?php echo esc_attr( $gmGallery->options['google_api_key'] ); ?>">
27
  </div>
28
+ <div class="col-sm-6">
29
  <p style="padding-top: 5px"><a target="_blank" href="https://support.google.com/googleapi/answer/6158862"><?php esc_html_e( 'How to create a Google API Key', 'grand-media' ); ?></a></p>
30
  </div>
31
  </div>
36
  <div class="form-group">
37
  <label><?php esc_html_e( 'Cache expiration', 'grand-media' ); ?></label>
38
  <div class="row">
39
+ <div class="col-sm-6">
40
  <input type="number" name="set[cache_expiration]" class="form-control input-sm" value="<?php echo absint( $gmGallery->options['cache_expiration'] ); ?>">
41
  </div>
42
  </div>
45
 
46
  <hr/>
47
  <div class="form-group row">
48
+ <div class="col-sm-6">
49
  <label><?php esc_html_e( 'In Tags order gmedia', 'grand-media' ); ?></label>
50
  <select name="set[in_tag_orderby]" class="form-control input-sm">
51
  <option value="ID" <?php selected( $gmGallery->options['in_tag_orderby'], 'ID' ); ?>><?php esc_html_e( 'by ID', 'grand-media' ); ?></option>
57
  <option value="rand" <?php selected( $gmGallery->options['in_tag_orderby'], 'rand' ); ?>><?php esc_html_e( 'Random', 'grand-media' ); ?></option>
58
  </select>
59
  </div>
60
+ <div class="col-sm-6">
61
  <label><?php esc_html_e( 'Sort order', 'grand-media' ); ?></label>
62
  <select name="set[in_tag_order]" class="form-control input-sm">
63
  <option value="DESC" <?php selected( $gmGallery->options['in_tag_order'], 'DESC' ); ?>><?php esc_html_e( 'DESC', 'grand-media' ); ?></option>
69
  <hr/>
70
  <div class="form-group">
71
  <div class="row">
72
+ <div class="col-sm-6">
73
  <label><?php esc_html_e( 'In Category order gmedia (set default order)', 'grand-media' ); ?></label>
74
  <select name="set[in_category_orderby]" class="form-control input-sm">
75
  <option value="ID" <?php selected( $gmGallery->options['in_category_orderby'], 'ID' ); ?>><?php esc_html_e( 'by ID', 'grand-media' ); ?></option>
81
  <option value="rand" <?php selected( $gmGallery->options['in_category_orderby'], 'rand' ); ?>><?php esc_html_e( 'Random', 'grand-media' ); ?></option>
82
  </select>
83
  </div>
84
+ <div class="col-sm-6">
85
  <label><?php esc_html_e( 'Sort order', 'grand-media' ); ?></label>
86
  <select name="set[in_category_order]" class="form-control input-sm">
87
  <option value="DESC" <?php selected( $gmGallery->options['in_category_order'], 'DESC' ); ?>><?php esc_html_e( 'DESC', 'grand-media' ); ?></option>
95
  <hr/>
96
  <div class="form-group">
97
  <div class="row">
98
+ <div class="col-sm-6">
99
  <label><?php esc_html_e( 'In Album order gmedia (set default order)', 'grand-media' ); ?></label>
100
  <select name="set[in_album_orderby]" class="form-control input-sm">
101
  <option value="ID" <?php selected( $gmGallery->options['in_album_orderby'], 'ID' ); ?>><?php esc_html_e( 'by ID', 'grand-media' ); ?></option>
107
  <option value="rand" <?php selected( $gmGallery->options['in_album_orderby'], 'rand' ); ?>><?php esc_html_e( 'Random', 'grand-media' ); ?></option>
108
  </select>
109
  </div>
110
+ <div class="col-sm-6">
111
  <label><?php esc_html_e( 'Sort order', 'grand-media' ); ?></label>
112
  <select name="set[in_album_order]" class="form-control input-sm">
113
  <option value="DESC" <?php selected( $gmGallery->options['in_album_order'], 'DESC' ); ?>><?php esc_html_e( 'DESC', 'grand-media' ); ?></option>
admin/pages/settings/tpl/license.php CHANGED
@@ -13,7 +13,7 @@ global $gmCore, $gmGallery;
13
  <p><?php esc_html_e( 'Enter Gmedia Premium Key to remove backlink label from premium gallery modules and unlock settings below.' ); ?></p>
14
 
15
  <div class="row">
16
- <div class="form-group col-xs-5">
17
  <label><?php esc_html_e( 'Gmedia Premium Key', 'grand-media' ); ?>:
18
  <?php
19
  if ( isset( $gmGallery->options['license_name'] ) ) {
@@ -33,7 +33,7 @@ global $gmCore, $gmGallery;
33
  </div>
34
  </div>
35
  <?php if ( ! ( 'manual' === $gmCore->_get( 'license_activate' ) || ! empty( $pk ) ) ) { ?>
36
- <div class="form-group col-xs-7">
37
  <label>&nbsp;</label>
38
  <button style="display:block;" class="btn btn-success btn-sm" type="submit" name="license-key-activate"><?php esc_html_e( 'Activate Key', 'grand-media' ); ?></button>
39
  </div>
13
  <p><?php esc_html_e( 'Enter Gmedia Premium Key to remove backlink label from premium gallery modules and unlock settings below.' ); ?></p>
14
 
15
  <div class="row">
16
+ <div class="form-group col-sm-5">
17
  <label><?php esc_html_e( 'Gmedia Premium Key', 'grand-media' ); ?>:
18
  <?php
19
  if ( isset( $gmGallery->options['license_name'] ) ) {
33
  </div>
34
  </div>
35
  <?php if ( ! ( 'manual' === $gmCore->_get( 'license_activate' ) || ! empty( $pk ) ) ) { ?>
36
+ <div class="form-group col-sm-7">
37
  <label>&nbsp;</label>
38
  <button style="display:block;" class="btn btn-success btn-sm" type="submit" name="license-key-activate"><?php esc_html_e( 'Activate Key', 'grand-media' ); ?></button>
39
  </div>
admin/pages/settings/tpl/roles.php CHANGED
@@ -24,7 +24,7 @@ defined( 'ABSPATH' ) || die( 'No script kiddies please!' );
24
 
25
  <p class="help-block"><?php esc_html_e( 'Who can upload files to Gmedia Library', 'grand-media' ); ?></p>
26
  </div>
27
- <div class="col-xs-offset-1">
28
  <div class="form-group">
29
  <label><?php esc_html_e( 'Import Media Files', 'grand-media' ); ?>:</label>
30
  <select name="capability[gmedia_import]" class="form-control input-sm"><?php wp_dropdown_roles( $gmDB->get_role( 'gmedia_import' ) ); ?></select>
@@ -45,7 +45,7 @@ defined( 'ABSPATH' ) || die( 'No script kiddies please!' );
45
 
46
  <p class="help-block"><?php esc_html_e( 'Who can edit media title, description and other properties of uploaded files', 'grand-media' ); ?></p>
47
  </div>
48
- <div class="col-xs-offset-1">
49
  <div class="form-group">
50
  <label><?php esc_html_e( 'Edit Others Media', 'grand-media' ); ?>:</label>
51
  <select name="capability[gmedia_edit_others_media]" class="form-control input-sm"><?php wp_dropdown_roles( $gmDB->get_role( 'gmedia_edit_others_media' ) ); ?></select>
@@ -59,7 +59,7 @@ defined( 'ABSPATH' ) || die( 'No script kiddies please!' );
59
 
60
  <p class="help-block"><?php esc_html_e( 'Who can delete uploaded files from Gmedia Library', 'grand-media' ); ?></p>
61
  </div>
62
- <div class="col-xs-offset-1">
63
  <div class="form-group">
64
  <label><?php esc_html_e( 'Delete Others Media', 'grand-media' ); ?>:</label>
65
  <select name="capability[gmedia_delete_others_media]" class="form-control input-sm"><?php wp_dropdown_roles( $gmDB->get_role( 'gmedia_delete_others_media' ) ); ?></select>
@@ -74,7 +74,7 @@ defined( 'ABSPATH' ) || die( 'No script kiddies please!' );
74
 
75
  <p class="help-block"><?php esc_html_e( 'Who can assign available terms to media files', 'grand-media' ); ?></p>
76
  </div>
77
- <div class="col-xs-offset-1">
78
  <div class="form-group">
79
  <label><?php esc_html_e( 'Manage Albums', 'grand-media' ); ?>:</label>
80
  <select name="capability[gmedia_album_manage]" class="form-control input-sm"><?php wp_dropdown_roles( $gmDB->get_role( 'gmedia_album_manage' ) ); ?></select>
24
 
25
  <p class="help-block"><?php esc_html_e( 'Who can upload files to Gmedia Library', 'grand-media' ); ?></p>
26
  </div>
27
+ <div class="col-sm-11 offset-sm-1">
28
  <div class="form-group">
29
  <label><?php esc_html_e( 'Import Media Files', 'grand-media' ); ?>:</label>
30
  <select name="capability[gmedia_import]" class="form-control input-sm"><?php wp_dropdown_roles( $gmDB->get_role( 'gmedia_import' ) ); ?></select>
45
 
46
  <p class="help-block"><?php esc_html_e( 'Who can edit media title, description and other properties of uploaded files', 'grand-media' ); ?></p>
47
  </div>
48
+ <div class="col-sm-11 offset-sm-1">
49
  <div class="form-group">
50
  <label><?php esc_html_e( 'Edit Others Media', 'grand-media' ); ?>:</label>
51
  <select name="capability[gmedia_edit_others_media]" class="form-control input-sm"><?php wp_dropdown_roles( $gmDB->get_role( 'gmedia_edit_others_media' ) ); ?></select>
59
 
60
  <p class="help-block"><?php esc_html_e( 'Who can delete uploaded files from Gmedia Library', 'grand-media' ); ?></p>
61
  </div>
62
+ <div class="col-sm-11 offset-sm-1">
63
  <div class="form-group">
64
  <label><?php esc_html_e( 'Delete Others Media', 'grand-media' ); ?>:</label>
65
  <select name="capability[gmedia_delete_others_media]" class="form-control input-sm"><?php wp_dropdown_roles( $gmDB->get_role( 'gmedia_delete_others_media' ) ); ?></select>
74
 
75
  <p class="help-block"><?php esc_html_e( 'Who can assign available terms to media files', 'grand-media' ); ?></p>
76
  </div>
77
+ <div class="col-sm-11 offset-sm-1">
78
  <div class="form-group">
79
  <label><?php esc_html_e( 'Manage Albums', 'grand-media' ); ?>:</label>
80
  <select name="capability[gmedia_album_manage]" class="form-control input-sm"><?php wp_dropdown_roles( $gmDB->get_role( 'gmedia_album_manage' ) ); ?></select>
admin/pages/terms/functions.php CHANGED
@@ -79,7 +79,7 @@ function gmedia_term_item_actions( $item ) {
79
 
80
  $trash_icon = '<i class="fa-solid fa-trash-can"></i>';
81
  if ( $item->allow_delete ) {
82
- $actions['delete'] = '<a class="trash-icon" title="' . esc_attr__( 'Delete', 'grand-media' ) . '" href="' . esc_url(
83
  wp_nonce_url(
84
  add_query_arg(
85
  array(
79
 
80
  $trash_icon = '<i class="fa-solid fa-trash-can"></i>';
81
  if ( $item->allow_delete ) {
82
+ $actions['delete'] = '<a class="trash-icon link-danger" title="' . esc_attr__( 'Delete', 'grand-media' ) . '" href="' . esc_url(
83
  wp_nonce_url(
84
  add_query_arg(
85
  array(
admin/pages/terms/tpl/album-create-item.php CHANGED
@@ -127,7 +127,7 @@ $gmedia_url = $gmProcessor->url;
127
  wp_nonce_field( 'gmedia_terms', '_wpnonce_terms' );
128
  ?>
129
  <input type="hidden" name="term[taxonomy]" value="gmedia_album"/>
130
- <button style="display:block" type="submit" class="btn btn-primary btn-sm" name="gmedia_album_save"><?php esc_html_e( 'Add New Album', 'grand-media' ); ?></button>
131
  </div>
132
  </div>
133
  </div>
127
  wp_nonce_field( 'gmedia_terms', '_wpnonce_terms' );
128
  ?>
129
  <input type="hidden" name="term[taxonomy]" value="gmedia_album"/>
130
+ <button style="display:block" type="submit" class="btn btn-primary btn-xs" name="gmedia_album_save"><?php esc_html_e( 'Add New Album', 'grand-media' ); ?></button>
131
  </div>
132
  </div>
133
  </div>
admin/pages/terms/tpl/category-create-item.php CHANGED
@@ -113,7 +113,7 @@ $_order = $gmGallery->options['in_category_order'];
113
  wp_nonce_field( 'gmedia_terms', '_wpnonce_terms' );
114
  ?>
115
  <input type="hidden" name="term[taxonomy]" value="gmedia_category"/>
116
- <button style="display:block" type="submit" class="btn btn-primary btn-sm" name="gmedia_category_save"><?php esc_html_e( 'Add New Category', 'grand-media' ); ?></button>
117
  </div>
118
  </div>
119
  </div>
113
  wp_nonce_field( 'gmedia_terms', '_wpnonce_terms' );
114
  ?>
115
  <input type="hidden" name="term[taxonomy]" value="gmedia_category"/>
116
+ <button style="display:block" type="submit" class="btn btn-primary btn-xs" name="gmedia_category_save"><?php esc_html_e( 'Add New Category', 'grand-media' ); ?></button>
117
  </div>
118
  </div>
119
  </div>
admin/pages/terms/tpl/tag-create-item.php CHANGED
@@ -14,7 +14,7 @@ $gmedia_url = $gmProcessor->url;
14
  <label><?php esc_html_e( 'Tags', 'grand-media' ); ?>
15
  <small class="text-muted">(<?php esc_html_e( 'you can type multiple tags separated by comma' ); ?>)</small>
16
  </label>
17
- <input type="text" class="form-control input-sm" name="term[name]" placeholder="<?php esc_attr_e( 'Tag Names', 'grand-media' ); ?>" required/>
18
  </div>
19
  <div class="form-group col-sm-3">
20
  <?php
@@ -24,7 +24,7 @@ $gmedia_url = $gmProcessor->url;
24
  <input type="hidden" name="term[taxonomy]" value="gmedia_tag"/>
25
 
26
  <label class="w-100">&nbsp;</label>
27
- <button type="submit" class="btn btn-primary btn-sm" name="gmedia_tag_add"><?php esc_html_e( 'Add New Tags', 'grand-media' ); ?></button>
28
  </div>
29
  </div>
30
  </form>
14
  <label><?php esc_html_e( 'Tags', 'grand-media' ); ?>
15
  <small class="text-muted">(<?php esc_html_e( 'you can type multiple tags separated by comma' ); ?>)</small>
16
  </label>
17
+ <input type="text" class="form-control" name="term[name]" placeholder="<?php esc_attr_e( 'Tag Names', 'grand-media' ); ?>" required/>
18
  </div>
19
  <div class="form-group col-sm-3">
20
  <?php
24
  <input type="hidden" name="term[taxonomy]" value="gmedia_tag"/>
25
 
26
  <label class="w-100">&nbsp;</label>
27
+ <button type="submit" class="btn btn-primary" name="gmedia_tag_add"><?php esc_html_e( 'Add New Tags', 'grand-media' ); ?></button>
28
  </div>
29
  </div>
30
  </form>
admin/pages/terms/tpl/terms-panel-heading.php CHANGED
@@ -57,7 +57,7 @@ global $gmCore, $user_ID, $gm_allowed_tags;
57
  <ul class="dropdown-menu" role="menu">
58
  <li class="dropdown-header <?php echo esc_attr( $rel_selected_hide ); ?>"><span><?php esc_html_e( 'Select items to see more actions', 'grand-media' ); ?></span></li>
59
  <li class="<?php echo esc_attr( $rel_selected_show . ( gm_user_can( 'terms_delete' ) ? '' : ' disabled' ) ); ?>">
60
- <a class="dropdown-item gmedia-delete"
61
  href="<?php echo esc_url( wp_nonce_url( $gmCore->get_admin_url( array( 'do_gmedia_terms' => 'delete', 'ids' => 'selected' ), array( 'filter' ) ), 'gmedia_delete', '_wpnonce_delete' ) ); ?>"
62
  data-confirm="<?php esc_attr_e( "You are about to permanently delete the selected items.\n\r'Cancel' to stop, 'OK' to delete.", 'grand-media' ); ?>">
63
  <?php esc_html_e( 'Delete Selected Items', 'grand-media' ); ?>
57
  <ul class="dropdown-menu" role="menu">
58
  <li class="dropdown-header <?php echo esc_attr( $rel_selected_hide ); ?>"><span><?php esc_html_e( 'Select items to see more actions', 'grand-media' ); ?></span></li>
59
  <li class="<?php echo esc_attr( $rel_selected_show . ( gm_user_can( 'terms_delete' ) ? '' : ' disabled' ) ); ?>">
60
+ <a class="dropdown-item gmedia-delete text-danger"
61
  href="<?php echo esc_url( wp_nonce_url( $gmCore->get_admin_url( array( 'do_gmedia_terms' => 'delete', 'ids' => 'selected' ), array( 'filter' ) ), 'gmedia_delete', '_wpnonce_delete' ) ); ?>"
62
  data-confirm="<?php esc_attr_e( "You are about to permanently delete the selected items.\n\r'Cancel' to stop, 'OK' to delete.", 'grand-media' ); ?>">
63
  <?php esc_html_e( 'Delete Selected Items', 'grand-media' ); ?>
admin/tpl/module-preview.php CHANGED
@@ -9,7 +9,7 @@ if ( ! is_user_logged_in() || ! current_user_can( 'gmedia_module_manage' ) ) {
9
  die( '-1' );
10
  }
11
 
12
- global $wp_styles, $wp_scripts, $gmCore, $gm_allowed_tags;
13
  $query = $gmCore->_req( 'query', 'limit=20' );
14
  $module = $gmCore->_req( 'module' );
15
  $preset = $gmCore->_req( 'preset' );
@@ -21,7 +21,9 @@ $wp_scripts->queue = array();
21
 
22
  do_action( 'gmedia_head' );
23
 
24
- echo wp_kses( gmedia_shortcode( $atts ), $gm_allowed_tags );
 
 
25
 
26
  do_action( 'gmedia_enqueue_scripts' );
27
  do_action( 'gmedia_footer' );
9
  die( '-1' );
10
  }
11
 
12
+ global $wp_styles, $wp_scripts, $gmCore;
13
  $query = $gmCore->_req( 'query', 'limit=20' );
14
  $module = $gmCore->_req( 'module' );
15
  $preset = $gmCore->_req( 'preset' );
21
 
22
  do_action( 'gmedia_head' );
23
 
24
+ // Shortcode content already escaped and doing it twice broke the code.
25
+ // phpcs:ignore
26
+ echo gmedia_shortcode( $atts );
27
 
28
  do_action( 'gmedia_enqueue_scripts' );
29
  do_action( 'gmedia_footer' );
config/update.php CHANGED
@@ -899,12 +899,8 @@ function gmedia_quite_update() {
899
  }
900
 
901
  $gmCore->delete_folder( $gmCore->upload['path'] . '/module/amron' );
902
- $gmCore->delete_folder( $gmCore->upload['path'] . '/module/phantom' );
903
  $gmCore->delete_folder( $gmCore->upload['path'] . '/module/jq-mplayer' );
904
  $gmCore->delete_folder( $gmCore->upload['path'] . '/module/wp-videoplayer' );
905
- $gmCore->delete_folder( $gmCore->upload['path'] . '/module/cubik-lite' );
906
- $gmCore->delete_folder( $gmCore->upload['path'] . '/module/afflux' );
907
- $gmCore->delete_folder( $gmCore->upload['path'] . '/module/minima' );
908
 
909
  }
910
  }
899
  }
900
 
901
  $gmCore->delete_folder( $gmCore->upload['path'] . '/module/amron' );
 
902
  $gmCore->delete_folder( $gmCore->upload['path'] . '/module/jq-mplayer' );
903
  $gmCore->delete_folder( $gmCore->upload['path'] . '/module/wp-videoplayer' );
 
 
 
904
 
905
  }
906
  }
grand-media.php CHANGED
@@ -3,10 +3,10 @@
3
  * Plugin Name: Gmedia Gallery
4
  * Plugin URI: http://wordpress.org/extend/plugins/grand-media/
5
  * Description: Gmedia Gallery - powerful media library plugin for creating beautiful galleries and managing files.
6
- * Version: 1.21.6
7
  * Author: Rattus
8
  * Author URI: https://codeasily.com/
9
- * Requires at least: 5.0
10
  * Tested up to: 6.0
11
  * Text Domain: grand-media
12
  * Domain Path: /lang
@@ -39,9 +39,9 @@ if ( ! class_exists( 'Gmedia' ) ) {
39
  */
40
  class Gmedia {
41
 
42
- public $version = '1.21.6';
43
  public $dbversion = '1.8.0';
44
- public $minium_WP = '3.7';
45
  public $options = '';
46
  public $do_module = array();
47
  public $import_styles = array();
@@ -379,7 +379,7 @@ if ( ! class_exists( 'Gmedia' ) ) {
379
  'gmedia-bootstrap',
380
  'fontawesome',
381
  ),
382
- '1.15.4'
383
  );
384
  wp_register_script(
385
  'grand-media',
@@ -389,7 +389,7 @@ if ( ! class_exists( 'Gmedia' ) ) {
389
  'gmedia-bootstrap',
390
  'gmedia-global-backend',
391
  ),
392
- '1.19.6',
393
  true
394
  );
395
  wp_localize_script(
3
  * Plugin Name: Gmedia Gallery
4
  * Plugin URI: http://wordpress.org/extend/plugins/grand-media/
5
  * Description: Gmedia Gallery - powerful media library plugin for creating beautiful galleries and managing files.
6
+ * Version: 1.21.8
7
  * Author: Rattus
8
  * Author URI: https://codeasily.com/
9
+ * Requires at least: 5.3.0
10
  * Tested up to: 6.0
11
  * Text Domain: grand-media
12
  * Domain Path: /lang
39
  */
40
  class Gmedia {
41
 
42
+ public $version = '1.21.8';
43
  public $dbversion = '1.8.0';
44
+ public $minium_WP = '5.3';
45
  public $options = '';
46
  public $do_module = array();
47
  public $import_styles = array();
379
  'gmedia-bootstrap',
380
  'fontawesome',
381
  ),
382
+ $this->version
383
  );
384
  wp_register_script(
385
  'grand-media',
389
  'gmedia-bootstrap',
390
  'gmedia-global-backend',
391
  ),
392
+ $this->version,
393
  true
394
  );
395
  wp_localize_script(
inc/color.php CHANGED
@@ -55,7 +55,7 @@ class gmColor {
55
  $var_Max = max( $var_R, $var_G, $var_B );
56
  $del_Max = $var_Max - $var_Min;
57
  $L = ( $var_Max + $var_Min ) / 2;
58
- if ( 0 === $del_Max ) {
59
  $H = 0;
60
  $S = 0;
61
  } else {
@@ -67,11 +67,11 @@ class gmColor {
67
  $del_R = ( ( ( $var_Max - $var_R ) / 6 ) + ( $del_Max / 2 ) ) / $del_Max;
68
  $del_G = ( ( ( $var_Max - $var_G ) / 6 ) + ( $del_Max / 2 ) ) / $del_Max;
69
  $del_B = ( ( ( $var_Max - $var_B ) / 6 ) + ( $del_Max / 2 ) ) / $del_Max;
70
- if ( $var_R === $var_Max ) {
71
  $H = $del_B - $del_G;
72
- } elseif ( $var_G === $var_Max ) {
73
  $H = ( 1 / 3 ) + $del_R - $del_B;
74
- } elseif ( $var_B === $var_Max ) {
75
  $H = ( 2 / 3 ) + $del_G - $del_R;
76
  }
77
  if ( $H < 0 ) {
@@ -102,7 +102,7 @@ class gmColor {
102
  throw new Exception( 'Param was not an HSL array' );
103
  }
104
  list( $H, $S, $L ) = array( $hsl['H'] / 360, $hsl['S'], $hsl['L'] );
105
- if ( 0 === $S ) {
106
  $r = $L * 255;
107
  $g = $L * 255;
108
  $b = $L * 255;
@@ -470,7 +470,7 @@ class gmColor {
470
  // Strip # sign is present.
471
  $color = str_replace( '#', '', $hex );
472
  // Make sure it's 6 digits.
473
- if ( strlen( $color ) === 3 ) {
474
  $color = $color[0] . $color[0] . $color[1] . $color[1] . $color[2] . $color[2];
475
  }
476
  // else if( strlen($color) != 6 ) {
55
  $var_Max = max( $var_R, $var_G, $var_B );
56
  $del_Max = $var_Max - $var_Min;
57
  $L = ( $var_Max + $var_Min ) / 2;
58
+ if ( $del_Max == 0 ) {
59
  $H = 0;
60
  $S = 0;
61
  } else {
67
  $del_R = ( ( ( $var_Max - $var_R ) / 6 ) + ( $del_Max / 2 ) ) / $del_Max;
68
  $del_G = ( ( ( $var_Max - $var_G ) / 6 ) + ( $del_Max / 2 ) ) / $del_Max;
69
  $del_B = ( ( ( $var_Max - $var_B ) / 6 ) + ( $del_Max / 2 ) ) / $del_Max;
70
+ if ( $var_R == $var_Max ) {
71
  $H = $del_B - $del_G;
72
+ } else if ( $var_G == $var_Max ) {
73
  $H = ( 1 / 3 ) + $del_R - $del_B;
74
+ } else if ( $var_B == $var_Max ) {
75
  $H = ( 2 / 3 ) + $del_G - $del_R;
76
  }
77
  if ( $H < 0 ) {
102
  throw new Exception( 'Param was not an HSL array' );
103
  }
104
  list( $H, $S, $L ) = array( $hsl['H'] / 360, $hsl['S'], $hsl['L'] );
105
+ if ( $S == 0 ) {
106
  $r = $L * 255;
107
  $g = $L * 255;
108
  $b = $L * 255;
470
  // Strip # sign is present.
471
  $color = str_replace( '#', '', $hex );
472
  // Make sure it's 6 digits.
473
+ if ( strlen( $color ) == 3 ) {
474
  $color = $color[0] . $color[0] . $color[1] . $color[1] . $color[2] . $color[2];
475
  }
476
  // else if( strlen($color) != 6 ) {
inc/core.php CHANGED
@@ -1589,7 +1589,7 @@ class GmediaCore {
1589
  }
1590
 
1591
  // phpcs:ignore
1592
- $req = $this->sanitize_post_field_deep( wp_unslash( urldecode_deep( $_REQUEST[ $var ] ) ) );
1593
  if ( is_string( $req ) ) {
1594
  $req = html_entity_decode( $req );
1595
  }
@@ -3734,7 +3734,7 @@ class GmediaCore {
3734
  }
3735
 
3736
  // phpcs:ignore
3737
- $post = $this->sanitize_post_field_deep( wp_unslash( urldecode_deep( $_POST[ $var ] ) ) );
3738
  if ( is_string( $post ) ) {
3739
  $post = html_entity_decode( $post );
3740
  }
1589
  }
1590
 
1591
  // phpcs:ignore
1592
+ $req = $this->sanitize_post_field_deep( wp_unslash( $_REQUEST[ $var ] ) );
1593
  if ( is_string( $req ) ) {
1594
  $req = html_entity_decode( $req );
1595
  }
3734
  }
3735
 
3736
  // phpcs:ignore
3737
+ $post = $this->sanitize_post_field_deep( wp_unslash( $_POST[ $var ] ) );
3738
  if ( is_string( $post ) ) {
3739
  $post = html_entity_decode( $post );
3740
  }
inc/frontend.filters.php CHANGED
@@ -818,8 +818,9 @@ function gmedia_post_type__the_content( $content ) {
818
  <?php
819
  }
820
  } elseif ( 'audio' === $gmedia->type && ( $module = $gmCore->get_module_path( 'wavesurfer' ) ) && 'wavesurfer' === $module['name'] ) {
 
821
  // phpcs:ignore
822
- echo wp_kses( gmedia_shortcode( array( 'module' => 'wavesurfer', 'library' => $gmedia->ID, 'native' => true ) ), $gm_allowed_tags );
823
  if ( is_single() ) {
824
  echo wp_kses( apply_filters( 'the_gmedia_content', wpautop( $gmedia->description ) ), $gm_allowed_tags );
825
  }
818
  <?php
819
  }
820
  } elseif ( 'audio' === $gmedia->type && ( $module = $gmCore->get_module_path( 'wavesurfer' ) ) && 'wavesurfer' === $module['name'] ) {
821
+ // Shortcode content already escaped and doing it twice broke the code.
822
  // phpcs:ignore
823
+ echo gmedia_shortcode( array( 'module' => 'wavesurfer', 'library' => $gmedia->ID, 'native' => true ) );
824
  if ( is_single() ) {
825
  echo wp_kses( apply_filters( 'the_gmedia_content', wpautop( $gmedia->description ) ), $gm_allowed_tags );
826
  }
inc/media-upload.php CHANGED
@@ -83,7 +83,7 @@ function media_upload_gmedia() {
83
  <script type="text/javascript">
84
  /* <![CDATA[ */
85
  var win = window.dialogArguments || opener || parent || top;
86
- jQuery('#__gm-uploader', win.document).css('display', 'none');
87
  /* ]]> */
88
  </script>
89
  <?php
@@ -97,7 +97,7 @@ function media_upload_gmedia() {
97
  <script type="text/javascript">
98
  /* <![CDATA[ */
99
  var win = window.dialogArguments || opener || parent || top;
100
- jQuery('#__gm-uploader', win.document).css('display', 'none');
101
  /* ]]> */
102
  </script>
103
  <?php
@@ -126,7 +126,7 @@ function media_upload_gmedia() {
126
  <script type="text/javascript">
127
  /* <![CDATA[ */
128
  var win = window.dialogArguments || opener || parent || top;
129
- jQuery('#__gm-uploader', win.document).css('display', 'none');
130
  /* ]]> */
131
  </script>
132
  <?php
@@ -212,7 +212,7 @@ function gmedia_add_media_galleries() {
212
  $gmedia_modules = get_gmedia_modules( false );
213
  ?>
214
 
215
- <div class="card m-0 mw-100 p-0" id="gmedia-container">
216
  <div class="card-header bg-light clearfix">
217
  <?php include GMEDIA_ABSPATH . 'admin/tpl/search-form.php'; ?>
218
  <div class="float-end">
@@ -229,9 +229,9 @@ function gmedia_add_media_galleries() {
229
 
230
  </div>
231
  <div class="card-body" id="gmedia-msg-panel"><?php echo wp_kses_post( $alert ); ?></div>
232
- <div class="card-body" id="gm-list-table">
233
- <div class="row">
234
- <div class="col-xs-7 col-md-9" style="padding: 0">
235
  <div class="list-group">
236
  <?php
237
  if ( count( $gmediaTerms ) ) {
@@ -267,14 +267,14 @@ function gmedia_add_media_galleries() {
267
  </p>
268
 
269
  <p class="media-meta">
270
- <span class="badge label-default"><?php esc_html_e( 'Author', 'grand-media' ); ?>:</span> <?php echo $term->global ? esc_html( get_the_author_meta( 'display_name', $term->global ) ) : '&#8212;'; ?>
271
  </p>
272
 
273
  <p class="media-caption"><?php echo nl2br( esc_html( $term->description ) ); ?></p>
274
  </div>
275
 
276
  <p class="media-meta hidden" style="font-weight:bold">
277
- <span class="badge label-default"><?php esc_html_e( 'Shortcode', 'grand-media' ); ?>:</span> [gmedia id=<?php echo absint( $term->term_id ); ?>]
278
  <input type="hidden" name="shortcode" value="[gmedia id=<?php echo absint( $term->term_id ); ?>]"/>
279
  </p>
280
 
@@ -287,12 +287,12 @@ function gmedia_add_media_galleries() {
287
  <span class="bg-danger text-center"><?php esc_html_e( 'Module broken. Reinstall module', 'grand-media' ); ?></span>
288
  <?php } ?>
289
  </span>
290
- <span class="badge label-default"><?php esc_html_e( 'Module', 'grand-media' ); ?>:</span> <?php echo esc_html( $term_meta['_module'] ); ?>
291
- <br><span class="badge label-default"><?php esc_html_e( 'Type', 'grand-media' ); ?>:</span> <?php echo esc_html( $module_info['type'] ); ?>
292
- <br><span class="badge label-default"><?php esc_html_e( 'Status', 'grand-media' ); ?>:</span> <?php echo esc_html( $term->status ); ?>
293
  </span>
294
- <span class="badge label-default"><?php esc_html_e( 'Last Edited', 'grand-media' ); ?>:</span> <?php echo esc_html( $term_meta['_edited'] ); ?>
295
- <br><span class="badge label-default"><?php esc_html_e( 'Query Args.', 'grand-media' ); ?>:</span> <?php echo ! empty( $term_meta['_query'] ) ? esc_html( str_replace( ',"', ', "', wp_json_encode( $term_meta['_query'] ) ) ) : ''; ?>
296
  </p>
297
  <?php
298
  if ( 'draft' === $term->status ) {
@@ -340,7 +340,7 @@ function gmedia_add_media_galleries() {
340
  <?php } ?>
341
  </div>
342
  </div>
343
- <div class="col-xs-5 col-md-3 media-upload-sidebar">
344
  <form method="post" id="gmedia-form" role="form">
345
  <div id="media-upload-form-container" class="media-upload-form-container"></div>
346
  <div class="card-footer">
@@ -353,31 +353,31 @@ function gmedia_add_media_galleries() {
353
  </div>
354
  </div>
355
  <script type="text/javascript">
356
- jQuery(function($) {
357
  function divFrame() {
358
- $('.card-body').css({top: $('.card-header').outerHeight()});
359
  }
360
 
361
  divFrame();
362
- $(window).on('resize', function() {
363
  divFrame();
364
- });
365
- $('.gmedia-insert-item').on('click', function() {
366
- var mufc = $('#media-upload-form-container'),
367
- mufs = $('#media-upload-form-submit');
368
- if ($(this).hasClass('gm-selected')) {
369
- $(this).removeClass('gm-selected');
370
  mufc.empty();
371
- mufs.prop('disabled', true);
372
  return;
373
  }
374
- $(this).addClass('gm-selected').siblings().removeClass('gm-selected');
375
- var info = $(this).clone();
376
- info.find('.media-caption').remove().end().find('.hidden').removeClass('hidden');
377
- mufc.html(info.html());
378
- mufs.prop('disabled', false);
379
- });
380
- });
381
  </script>
382
  </div>
383
  <?php
@@ -446,7 +446,7 @@ function gmedia_add_media_terms() {
446
  $gmedia_modules = get_gmedia_modules( false );
447
  ?>
448
 
449
- <div class="card m-0 mw-100 p-0">
450
  <div class="card-header bg-light clearfix">
451
  <?php include GMEDIA_ABSPATH . 'admin/tpl/search-form.php'; ?>
452
  <div class="float-end">
@@ -464,9 +464,9 @@ function gmedia_add_media_terms() {
464
 
465
  </div>
466
  <div class="card-body" id="gmedia-msg-panel"><?php echo wp_kses_post( $alert ); ?></div>
467
- <div class="card-body" id="gm-list-table">
468
- <div class="row">
469
- <div class="col-xs-7 col-md-9" style="padding: 0">
470
  <div class="list-group" id="gm-list-table" style="margin-bottom:4px;">
471
  <?php
472
  if ( count( $gmediaTerms ) ) {
@@ -570,14 +570,14 @@ function gmedia_add_media_terms() {
570
  ?>
571
  <div class="list-group-item term-list-item d-row<?php echo esc_attr( $list_row_class ); ?>">
572
  <div class="row<?php echo esc_attr( $row_class ); ?>">
573
- <div class="col-xs-5 term-label">
574
  <div class="no-checkbox">
575
  <span class="term_name"><?php echo esc_html( $item_name ); ?></span>
576
  <span class="term_info_author"><?php echo esc_html( $author_name ); ?></span>
577
- <span class="badge float-end"><?php echo esc_html( $item->count ); ?></span>
578
  </div>
579
  </div>
580
- <div class="col-xs-7">
581
  <div class="term-images">
582
  <?php
583
  if ( ! empty( $termItems ) ) {
@@ -691,7 +691,7 @@ function gmedia_add_media_terms() {
691
  <?php } ?>
692
  </div>
693
  </div>
694
- <div class="col-xs-5 col-md-3 media-upload-sidebar">
695
  <form method="post" id="gmedia-form" role="form">
696
  <div class="media-upload-form-container">
697
  <div class="form-group">
@@ -738,21 +738,21 @@ function gmedia_add_media_terms() {
738
  </div>
739
  </div>
740
  <script type="text/javascript">
741
- jQuery(function($) {
742
  function divFrame() {
743
- $('.card-body').css({top: $('.card-header').outerHeight()});
744
  }
745
 
746
  divFrame();
747
- $(window).on('resize', function() {
748
  divFrame();
749
- });
750
- $('.term-list-item').on('click', function() {
751
- $(this).addClass('gm-selected').siblings().removeClass('gm-selected');
752
- var info = $('.term-info', this).clone();
753
- $('#media-upload-form-container').html(info.html());
754
- $('#media-upload-form-submit').prop('disabled', false);
755
- });
756
  /*$('#module_preset').on('change', function () {
757
  if ($(this).val() && $('#media-upload-form-container').text()) {
758
  $('#media-upload-form-submit').prop('disabled', false);
@@ -760,7 +760,7 @@ function gmedia_add_media_terms() {
760
  $('#media-upload-form-submit').prop('disabled', true);
761
  }
762
  });*/
763
- });
764
  </script>
765
  </div>
766
  <?php
@@ -797,16 +797,16 @@ function gmedia_add_media_library() {
797
 
798
  ?>
799
 
800
- <div class="card m-0 mw-100 p-0" id="gmedia-container">
801
  <div class="card-header bg-light clearfix">
802
  <?php include GMEDIA_ABSPATH . 'admin/tpl/search-form.php'; ?>
803
  <div class="float-end">
804
  <?php echo wp_kses( $gmDB->query_pager(), $gm_allowed_tags ); ?>
805
  </div>
806
  </div>
807
- <div class="card-body" id="gm-list-table">
808
- <div class="row">
809
- <div class="col-xs-7 col-md-9" style="text-align:justify;white-space:normal;">
810
  <?php
811
  if ( count( $gmediaQuery ) ) {
812
  foreach ( $gmediaQuery as $item ) {
@@ -884,7 +884,7 @@ function gmedia_add_media_library() {
884
  </div>
885
  <?php } ?>
886
  </div>
887
- <div class="col-xs-5 col-md-3 media-upload-sidebar">
888
  <form method="post" id="gmedia-form" role="form">
889
  <div id="media-upload-form-container" class="media-upload-form-container"></div>
890
  <div class="card-footer">
@@ -901,71 +901,69 @@ function gmedia_add_media_library() {
901
  </div>
902
  <!--suppress JSUnresolvedVariable -->
903
  <script type="text/javascript">
904
- jQuery(function($) {
905
  function divFrame() {
906
- $('.card-body').css({top: $('.card-header').outerHeight()});
907
  }
908
 
909
  divFrame();
910
- $(window).on('resize', function() {
911
  divFrame();
912
- });
913
- $('.img-thumbnail').on('click', function() {
914
- var form = $('#media-upload-form-container');
915
- var but = $('.card-footer .btn');
916
- if ($(this).hasClass('active')) {
917
- $(this).removeClass('active');
918
  form.empty();
919
- but.prop('disabled', true).addClass('disabled');
920
  return;
921
  }
922
- $(this).addClass('active').siblings().removeClass('active');
923
- form.html($('.media-upload-form', this).html());
924
- but.prop('disabled', false).removeClass('disabled');
925
- });
926
- $('#gmedia-form').on('change', '#gmedia_url', function() {
927
- var val = $(this).val();
928
- $(this).nextAll('input.' + val).show().prop('disabled', false).siblings('input').hide().prop('disabled', true);
929
- });
930
-
931
- <?php
932
- if ( $post_id && current_theme_supports( 'post-thumbnails', get_post_type( $post_id ) ) ) {
933
- $featured_nonce = wp_create_nonce( "set_post_thumbnail-$post_id" );
934
- ?>
935
-
936
- if (win.WPSetThumbnailID) {
937
- $('#gmedia-post-thumbnail').on('click', function() {
938
- if ($(this).hasClass('disabled')) {
 
939
  return false;
940
  }
941
- var id = $('form.active').data('id');
942
- $.post(ajaxurl, {
943
- action: 'gmedia_set_post_thumbnail', post_id: '<?php echo absint( $post_id ); ?>', img_id: id, _wpnonce: '<?php echo esc_js( $featured_nonce ); ?>',
944
- }, function(str) {
945
- var win = window.dialogArguments || opener || parent || top;
946
- if (str === '0') {
947
- alert(win.setPostThumbnailL10n.error);
948
- }
949
- else if (str === '-1') {
950
- // image removed
951
- }
952
- else {
953
- win.WPSetThumbnailID(id);
954
- win.WPSetThumbnailHTML(str);
955
- }
956
- $('#__gm-uploader', win.document).css('display', 'none');
957
- },
958
  );
959
- });
960
- }
961
- else {
962
- $('#gmedia-post-thumbnail').remove();
963
  }
964
 
965
- <?php
966
- }
967
- ?>
968
- });
969
  </script>
970
  </div>
971
  <?php
@@ -989,9 +987,9 @@ function gmedia_add_media_upload() {
989
  $gm_screen_options = $gmProcessor->user_options;
990
 
991
  ?>
992
- <div class="card m-0 mw-100 p-0">
993
- <div class="card-body" style="top:0">
994
- <form class="row" id="gmUpload" name="upload_form" method="POST" accept-charset="utf-8" onsubmit="return false;">
995
  <div class="col-md-8 col-md-push-4" id="pluploadUploader" style="padding: 0;">
996
  <p><?php esc_html_e( 'You browser doesn\'t have Flash or HTML5 support. Check also if page have no JavaScript errors.', 'grand-media' ); ?></p>
997
  <?php
@@ -1011,94 +1009,104 @@ function gmedia_add_media_upload() {
1011
  ?>
1012
  <script type="text/javascript">
1013
  // Convert divs to queue widgets when the DOM is ready
1014
- jQuery(function($) {
1015
  //noinspection JSDuplicatedDeclaration
1016
- $('#pluploadUploader').plupload({
1017
- <?php if ( 'auto' !== $gm_screen_options['uploader_runtime'] ) { ?>
1018
- runtimes: '<?php echo esc_js( $gm_screen_options['uploader_runtime'] ); ?>',
1019
- <?php } ?>
1020
- url: '<?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>',
1021
- <?php if ( ( 'true' === $gm_screen_options['uploader_urlstream_upload'] ) && ( 'html4' !== $gm_screen_options['uploader_runtime'] ) ) { ?>
1022
- urlstream_upload: true,
1023
- multipart: false,
1024
- <?php } else { ?>
1025
- multipart: true,
1026
- <?php } ?>
1027
- multipart_params: {action: 'gmedia_upload_handler', _wpnonce_upload: '<?php echo esc_js( wp_create_nonce( 'gmedia_upload' ) ); ?>', params: ''},
1028
- <?php if ( 'true' === $gm_screen_options['uploader_chunking'] && ( 'html4' !== $gm_screen_options['uploader_runtime'] ) ) { ?>
1029
- max_file_size: '2000Mb',
1030
- chunk_size: <?php echo (int) min( $maxchunksize, $gm_screen_options['uploader_chunk_size'] * 1024 * 1024 ); ?>,
1031
- <?php } else { ?>
1032
- max_file_size: <?php echo (int) $maxupsize; ?>,
1033
- <?php } ?>
1034
- max_retries: 2,
1035
- unique_names: false,
1036
- rename: true,
1037
- sortable: true,
1038
- dragdrop: true,
1039
- views: {
1040
- list: true,
1041
- thumbs: true,
1042
- active: 'thumbs',
1043
- },
1044
- filters: <?php echo wp_json_encode( $filters ); ?>,
1045
- });
1046
- var closebtn = '<button type="button" class="btn-close float-end m-0" data-bs-dismiss="alert" aria-label="Close"></button>';
1047
- var uploader = $('#pluploadUploader').plupload('getUploader');
1048
- uploader.bind('StateChanged', function(up) {
1049
- if (up.state === plupload.STARTED) {
1050
- up.settings.multipart_params.params = jQuery('#uploader_multipart_params :input').serialize();
1051
- }
1052
- console.log('[StateChanged]', up.state, up.settings.multipart_params);
1053
- });
1054
- uploader.bind('ChunkUploaded', function(up, file, info) {
1055
- console.log('[ChunkUploaded] File:', file, 'Info:', info);
1056
- var response = $.parseJSON(info.response);
1057
- if (response && response.error) {
1058
- up.stop();
1059
- file.status = plupload.FAILED;
1060
- $('<div></div>').addClass('alert alert-danger alert-dismissable').html(closebtn + '<strong>' + response.id + ':</strong> ' + response.error.message).appendTo('#gmedia-msg-panel');
1061
- console.log(response.error);
1062
- up.trigger('QueueChanged StateChanged');
1063
- up.trigger('UploadProgress', file);
1064
- up.start();
1065
- }
1066
- });
1067
- uploader.bind('FileUploaded', function(up, file, info) {
1068
- console.log('[FileUploaded] File:', file, 'Info:', info);
1069
- var response = jQuery.parseJSON(info.response);
1070
- if (response && response.error) {
1071
- file.status = plupload.FAILED;
1072
- $('<div></div>').addClass('alert alert-danger alert-dismissable').html(closebtn + '<strong>' + response.id + ':</strong> ' + response.error.message).appendTo('#gmedia-msg-panel');
1073
- console.log(response.error);
1074
- }
1075
- });
1076
- uploader.bind('UploadProgress', function(up, file) {
1077
- var percent = uploader.total.percent;
1078
- $('#total-progress-info .progress-bar').css('width', percent + '%').attr('aria-valuenow', percent);
1079
- });
1080
- uploader.bind('Error', function(up, args) {
1081
- console.log('[Error] ', args);
1082
- $('<div></div>').addClass('alert alert-danger alert-dismissable').html(closebtn + '<strong>' + args.file.name + ':</strong> ' + args.message + ' ' + args.status).appendTo('#gmedia-msg-panel');
1083
- });
1084
- uploader.bind('UploadComplete', function(up, files) {
1085
- console.log('[UploadComplete]', files);
1086
- $('<div></div>').addClass('alert alert-success alert-dismissable').html(closebtn + "<?php esc_attr_e( 'Upload finished', 'grand-media' ); ?>").appendTo('#gmedia-msg-panel');
1087
- $('#total-progress-info .progress-bar').css('width', '0').attr('aria-valuenow', '0');
1088
- });
1089
-
1090
- });
 
 
 
 
 
 
 
 
 
 
1091
  </script>
1092
  </div>
1093
  <div class="col-md-4 col-md-pull-8" id="uploader_multipart_params">
1094
  <div id="gmedia-msg-panel"></div>
1095
  <br/>
1096
  <?php if ( 'false' === $gm_screen_options['uploader_chunking'] || ( 'html4' === $gm_screen_options['uploader_runtime'] ) ) { ?>
1097
- <p class="clearfix text-end"><span class="badge label-default"><?php echo esc_html( __( 'Maximum file size', 'grand-media' ) . ": {$maxupsize_mb}Mb" ); ?></span></p>
1098
  <?php } else { ?>
1099
  <p class="clearfix text-end hidden">
1100
- <span class="badge label-default"><?php echo esc_html( __( 'Maximum $_POST size', 'grand-media' ) . ": {$maxupsize_mb}Mb" ); ?></span>
1101
- <span class="badge label-default"><?php echo esc_html( __( 'Chunk size', 'grand-media' ) . ': ' . min( $maxchunksize_mb, $gm_screen_options['uploader_chunk_size'] ) . 'Mb' ); ?></span>
1102
  </p>
1103
  <?php } ?>
1104
 
@@ -1162,28 +1170,28 @@ function gmedia_add_media_upload() {
1162
  <div class="addtags-gap">&nbsp;</div>
1163
 
1164
  <script type="text/javascript">
1165
- jQuery(function($) {
1166
- $('#combobox_gmedia_album').selectize({
1167
  <?php if ( $gmCore->caps['gmedia_album_manage'] ) { ?>
1168
  create: true,
1169
  createOnBlur: true,
1170
  <?php } else { ?>
1171
  create: false,
1172
  <?php } ?>
1173
- persist: false,
1174
- });
1175
 
1176
  var gm_cat_terms = <?php echo wp_json_encode( $gm_cat_terms ); ?>;
1177
  //noinspection JSUnusedAssignment
1178
- var cat_items = gm_cat_terms.map(function(x) {
1179
  return {item: x};
1180
- });
1181
  //noinspection JSDuplicatedDeclaration
1182
- $('#combobox_gmedia_category').selectize({
1183
  <?php if ( $gmCore->caps['gmedia_category_manage'] ) { ?>
1184
- create: function(input) {
1185
  return {
1186
- item: input,
1187
  };
1188
  },
1189
  createOnBlur: true,
@@ -1198,19 +1206,19 @@ function gmedia_add_media_upload() {
1198
  labelField: 'item',
1199
  valueField: 'item',
1200
  searchField: ['item'],
1201
- hideSelected: true,
1202
- });
1203
 
1204
  var gm_tag_terms = <?php echo wp_json_encode( $gm_tag_terms ); ?>;
1205
  //noinspection JSUnusedAssignment
1206
- var tag_items = gm_tag_terms.map(function(x) {
1207
  return {item: x};
1208
- });
1209
- $('#combobox_gmedia_tag').selectize({
1210
  <?php if ( $gmCore->caps['gmedia_tag_manage'] ) { ?>
1211
- create: function(input) {
1212
  return {
1213
- item: input,
1214
  };
1215
  },
1216
  createOnBlur: true,
@@ -1225,27 +1233,26 @@ function gmedia_add_media_upload() {
1225
  labelField: 'item',
1226
  valueField: 'item',
1227
  searchField: ['item'],
1228
- hideSelected: true,
1229
- });
1230
- });
1231
  </script>
1232
  <?php } else { ?>
1233
  <p><?php esc_html_e( 'You are not allowed to assign terms', 'grand-media' ); ?></p>
1234
  <?php } ?>
1235
 
1236
  <script type="text/javascript">
1237
- jQuery(function($) {
1238
- $('#uploader_runtime select').change(function() {
1239
- if ('html4' === $(this).val()) {
1240
- $('#uploader_chunking').addClass('hide');
1241
- $('#uploader_urlstream_upload').addClass('hide');
1242
- }
1243
- else {
1244
- $('#uploader_chunking').removeClass('hide');
1245
- $('#uploader_urlstream_upload').removeClass('hide');
1246
  }
1247
- });
1248
- });
1249
  </script>
1250
  </div>
1251
  </form>
83
  <script type="text/javascript">
84
  /* <![CDATA[ */
85
  var win = window.dialogArguments || opener || parent || top;
86
+ jQuery( '#__gm-uploader', win.document ).css( 'display', 'none' );
87
  /* ]]> */
88
  </script>
89
  <?php
97
  <script type="text/javascript">
98
  /* <![CDATA[ */
99
  var win = window.dialogArguments || opener || parent || top;
100
+ jQuery( '#__gm-uploader', win.document ).css( 'display', 'none' );
101
  /* ]]> */
102
  </script>
103
  <?php
126
  <script type="text/javascript">
127
  /* <![CDATA[ */
128
  var win = window.dialogArguments || opener || parent || top;
129
+ jQuery( '#__gm-uploader', win.document ).css( 'display', 'none' );
130
  /* ]]> */
131
  </script>
132
  <?php
212
  $gmedia_modules = get_gmedia_modules( false );
213
  ?>
214
 
215
+ <div class="card m-0 mw-100 min-vh-100 p-0" id="gmedia-container">
216
  <div class="card-header bg-light clearfix">
217
  <?php include GMEDIA_ABSPATH . 'admin/tpl/search-form.php'; ?>
218
  <div class="float-end">
229
 
230
  </div>
231
  <div class="card-body" id="gmedia-msg-panel"><?php echo wp_kses_post( $alert ); ?></div>
232
+ <div class="card-body p-0" id="gm-list-table">
233
+ <div class="row m-0">
234
+ <div class="col-sm-7 col-md-9" style="padding: 0">
235
  <div class="list-group">
236
  <?php
237
  if ( count( $gmediaTerms ) ) {
267
  </p>
268
 
269
  <p class="media-meta">
270
+ <span class="badge badge-info label-default"><?php esc_html_e( 'Author', 'grand-media' ); ?>:</span> <?php echo $term->global ? esc_html( get_the_author_meta( 'display_name', $term->global ) ) : '&#8212;'; ?>
271
  </p>
272
 
273
  <p class="media-caption"><?php echo nl2br( esc_html( $term->description ) ); ?></p>
274
  </div>
275
 
276
  <p class="media-meta hidden" style="font-weight:bold">
277
+ <span class="badge badge-info label-default"><?php esc_html_e( 'Shortcode', 'grand-media' ); ?>:</span> [gmedia id=<?php echo absint( $term->term_id ); ?>]
278
  <input type="hidden" name="shortcode" value="[gmedia id=<?php echo absint( $term->term_id ); ?>]"/>
279
  </p>
280
 
287
  <span class="bg-danger text-center"><?php esc_html_e( 'Module broken. Reinstall module', 'grand-media' ); ?></span>
288
  <?php } ?>
289
  </span>
290
+ <span class="badge badge-info label-default"><?php esc_html_e( 'Module', 'grand-media' ); ?>:</span> <?php echo esc_html( $term_meta['_module'] ); ?>
291
+ <br><span class="badge badge-info label-default"><?php esc_html_e( 'Type', 'grand-media' ); ?>:</span> <?php echo esc_html( $module_info['type'] ); ?>
292
+ <br><span class="badge badge-info label-default"><?php esc_html_e( 'Status', 'grand-media' ); ?>:</span> <?php echo esc_html( $term->status ); ?>
293
  </span>
294
+ <span class="badge badge-info label-default"><?php esc_html_e( 'Last Edited', 'grand-media' ); ?>:</span> <?php echo esc_html( $term_meta['_edited'] ); ?>
295
+ <br><span class="badge badge-info label-default"><?php esc_html_e( 'Query Args.', 'grand-media' ); ?>:</span> <?php echo ! empty( $term_meta['_query'] ) ? esc_html( str_replace( ',"', ', "', wp_json_encode( $term_meta['_query'] ) ) ) : ''; ?>
296
  </p>
297
  <?php
298
  if ( 'draft' === $term->status ) {
340
  <?php } ?>
341
  </div>
342
  </div>
343
+ <div class="col-sm-5 col-md-3 media-upload-sidebar">
344
  <form method="post" id="gmedia-form" role="form">
345
  <div id="media-upload-form-container" class="media-upload-form-container"></div>
346
  <div class="card-footer">
353
  </div>
354
  </div>
355
  <script type="text/javascript">
356
+ jQuery( function( $ ) {
357
  function divFrame() {
358
+ $( '.card-body' ).css( {top: $( '.card-header' ).outerHeight()} );
359
  }
360
 
361
  divFrame();
362
+ $( window ).on( 'resize', function() {
363
  divFrame();
364
+ } );
365
+ $( '.gmedia-insert-item' ).on( 'click', function() {
366
+ var mufc = $( '#media-upload-form-container' ),
367
+ mufs = $( '#media-upload-form-submit' );
368
+ if ( $( this ).hasClass( 'gm-selected' ) ) {
369
+ $( this ).removeClass( 'gm-selected' );
370
  mufc.empty();
371
+ mufs.prop( 'disabled', true );
372
  return;
373
  }
374
+ $( this ).addClass( 'gm-selected' ).siblings().removeClass( 'gm-selected' );
375
+ var info = $( this ).clone();
376
+ info.find( '.media-caption' ).remove().end().find( '.hidden' ).removeClass( 'hidden' );
377
+ mufc.html( info.html() );
378
+ mufs.prop( 'disabled', false );
379
+ } );
380
+ } );
381
  </script>
382
  </div>
383
  <?php
446
  $gmedia_modules = get_gmedia_modules( false );
447
  ?>
448
 
449
+ <div class="card m-0 mw-100 min-vh-100 p-0">
450
  <div class="card-header bg-light clearfix">
451
  <?php include GMEDIA_ABSPATH . 'admin/tpl/search-form.php'; ?>
452
  <div class="float-end">
464
 
465
  </div>
466
  <div class="card-body" id="gmedia-msg-panel"><?php echo wp_kses_post( $alert ); ?></div>
467
+ <div class="card-body p-0" id="gm-list-table">
468
+ <div class="row m-0">
469
+ <div class="col-sm-7 col-md-9" style="padding: 0">
470
  <div class="list-group" id="gm-list-table" style="margin-bottom:4px;">
471
  <?php
472
  if ( count( $gmediaTerms ) ) {
570
  ?>
571
  <div class="list-group-item term-list-item d-row<?php echo esc_attr( $list_row_class ); ?>">
572
  <div class="row<?php echo esc_attr( $row_class ); ?>">
573
+ <div class="col-sm-5 term-label">
574
  <div class="no-checkbox">
575
  <span class="term_name"><?php echo esc_html( $item_name ); ?></span>
576
  <span class="term_info_author"><?php echo esc_html( $author_name ); ?></span>
577
+ <span class="badge badge-success float-end"><?php echo esc_html( $item->count ); ?></span>
578
  </div>
579
  </div>
580
+ <div class="col-sm-7">
581
  <div class="term-images">
582
  <?php
583
  if ( ! empty( $termItems ) ) {
691
  <?php } ?>
692
  </div>
693
  </div>
694
+ <div class="col-sm-5 col-md-3 media-upload-sidebar">
695
  <form method="post" id="gmedia-form" role="form">
696
  <div class="media-upload-form-container">
697
  <div class="form-group">
738
  </div>
739
  </div>
740
  <script type="text/javascript">
741
+ jQuery( function( $ ) {
742
  function divFrame() {
743
+ $( '.card-body' ).css( {top: $( '.card-header' ).outerHeight()} );
744
  }
745
 
746
  divFrame();
747
+ $( window ).on( 'resize', function() {
748
  divFrame();
749
+ } );
750
+ $( '.term-list-item' ).on( 'click', function() {
751
+ $( this ).addClass( 'gm-selected' ).siblings().removeClass( 'gm-selected' );
752
+ var info = $( '.term-info', this ).clone();
753
+ $( '#media-upload-form-container' ).html( info.html() );
754
+ $( '#media-upload-form-submit' ).prop( 'disabled', false );
755
+ } );
756
  /*$('#module_preset').on('change', function () {
757
  if ($(this).val() && $('#media-upload-form-container').text()) {
758
  $('#media-upload-form-submit').prop('disabled', false);
760
  $('#media-upload-form-submit').prop('disabled', true);
761
  }
762
  });*/
763
+ } );
764
  </script>
765
  </div>
766
  <?php
797
 
798
  ?>
799
 
800
+ <div class="card m-0 mw-100 min-vh-100 p-0" id="gmedia-container">
801
  <div class="card-header bg-light clearfix">
802
  <?php include GMEDIA_ABSPATH . 'admin/tpl/search-form.php'; ?>
803
  <div class="float-end">
804
  <?php echo wp_kses( $gmDB->query_pager(), $gm_allowed_tags ); ?>
805
  </div>
806
  </div>
807
+ <div class="card-body p-0" id="gm-list-table">
808
+ <div class="row m-0">
809
+ <div class="col-sm-7 col-md-9" style="text-align:justify;white-space:normal;">
810
  <?php
811
  if ( count( $gmediaQuery ) ) {
812
  foreach ( $gmediaQuery as $item ) {
884
  </div>
885
  <?php } ?>
886
  </div>
887
+ <div class="col-sm-5 col-md-3 media-upload-sidebar">
888
  <form method="post" id="gmedia-form" role="form">
889
  <div id="media-upload-form-container" class="media-upload-form-container"></div>
890
  <div class="card-footer">
901
  </div>
902
  <!--suppress JSUnresolvedVariable -->
903
  <script type="text/javascript">
904
+ jQuery( function( $ ) {
905
  function divFrame() {
906
+ $( '.card-body' ).css( {top: $( '.card-header' ).outerHeight()} );
907
  }
908
 
909
  divFrame();
910
+ $( window ).on( 'resize', function() {
911
  divFrame();
912
+ } );
913
+ $( '.img-thumbnail' ).on( 'click', function() {
914
+ var form = $( '#media-upload-form-container' );
915
+ var but = $( '.card-footer .btn' );
916
+ if ( $( this ).hasClass( 'active' ) ) {
917
+ $( this ).removeClass( 'active' );
918
  form.empty();
919
+ but.prop( 'disabled', true ).addClass( 'disabled' );
920
  return;
921
  }
922
+ $( this ).addClass( 'active' ).siblings().removeClass( 'active' );
923
+ form.html( $( '.media-upload-form', this ).html() );
924
+ but.prop( 'disabled', false ).removeClass( 'disabled' );
925
+ } );
926
+ $( '#gmedia-form' ).on( 'change', '#gmedia_url', function() {
927
+ var val = $( this ).val();
928
+ $( this ).nextAll( 'input.' + val ).show().prop( 'disabled', false ).siblings( 'input' ).hide().prop( 'disabled', true );
929
+ } );
930
+
931
+ <?php
932
+ if ( $post_id && current_theme_supports( 'post-thumbnails', get_post_type( $post_id ) ) ) {
933
+ $featured_nonce = wp_create_nonce( "set_post_thumbnail-$post_id" );
934
+ ?>
935
+
936
+ var win = window.dialogArguments || opener || parent || top;
937
+ if ( win.WPSetThumbnailID ) {
938
+ $( '#gmedia-post-thumbnail' ).on( 'click', function() {
939
+ if ( $( this ).hasClass( 'disabled' ) ) {
940
  return false;
941
  }
942
+ var id = $( 'form.active' ).data( 'id' );
943
+ $.post( ajaxurl, {
944
+ action: 'gmedia_set_post_thumbnail', post_id: '<?php echo absint( $post_id ); ?>', img_id: id, _wpnonce: '<?php echo esc_js( $featured_nonce ); ?>'
945
+ }, function( str ) {
946
+ var win = window.dialogArguments || opener || parent || top;
947
+ if ( str === '0' ) {
948
+ alert( win.setPostThumbnailL10n.error );
949
+ } else if ( str === '-1' ) {
950
+ // image removed
951
+ } else {
952
+ win.WPSetThumbnailID( id );
953
+ win.WPSetThumbnailHTML( str );
954
+ }
955
+ $( '#__gm-uploader', win.document ).css( 'display', 'none' );
956
+ }
 
 
957
  );
958
+ } );
959
+ } else {
960
+ $( '#gmedia-post-thumbnail' ).remove();
 
961
  }
962
 
963
+ <?php
964
+ }
965
+ ?>
966
+ } );
967
  </script>
968
  </div>
969
  <?php
987
  $gm_screen_options = $gmProcessor->user_options;
988
 
989
  ?>
990
+ <div class="card m-0 mw-100 min-vh-100 p-0">
991
+ <div class="card-body p-0" style="top:0">
992
+ <form class="row m-0" id="gmUpload" name="upload_form" method="POST" accept-charset="utf-8" onsubmit="return false;">
993
  <div class="col-md-8 col-md-push-4" id="pluploadUploader" style="padding: 0;">
994
  <p><?php esc_html_e( 'You browser doesn\'t have Flash or HTML5 support. Check also if page have no JavaScript errors.', 'grand-media' ); ?></p>
995
  <?php
1009
  ?>
1010
  <script type="text/javascript">
1011
  // Convert divs to queue widgets when the DOM is ready
1012
+ jQuery( function( $ ) {
1013
  //noinspection JSDuplicatedDeclaration
1014
+ function gmediaInitUploader() {
1015
+ $( '#pluploadUploader' ).pluploadQueue( {
1016
+ <?php if ( 'auto' !== $gm_screen_options['uploader_runtime'] ) { ?>
1017
+ runtimes: '<?php echo esc_js( $gm_screen_options['uploader_runtime'] ); ?>',
1018
+ <?php } ?>
1019
+ url: '<?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>',
1020
+ <?php if ( ( 'true' === $gm_screen_options['uploader_urlstream_upload'] ) && ( 'html4' !== $gm_screen_options['uploader_runtime'] ) ) { ?>
1021
+ urlstream_upload: true,
1022
+ multipart: false,
1023
+ <?php } else { ?>
1024
+ multipart: true,
1025
+ <?php } ?>
1026
+ multipart_params: {action: 'gmedia_upload_handler', _wpnonce_upload: '<?php echo esc_js( wp_create_nonce( 'gmedia_upload' ) ); ?>', params: ''},
1027
+ <?php if ( 'true' === $gm_screen_options['uploader_chunking'] && ( 'html4' !== $gm_screen_options['uploader_runtime'] ) ) { ?>
1028
+ max_file_size: '2000Mb',
1029
+ chunk_size: <?php echo (int) min( $maxchunksize, $gm_screen_options['uploader_chunk_size'] * 1024 * 1024 ); ?>,
1030
+ <?php } else { ?>
1031
+ max_file_size: <?php echo (int) $maxupsize; ?>,
1032
+ <?php } ?>
1033
+ max_retries: 2,
1034
+ unique_names: false,
1035
+ rename: true,
1036
+ sortable: true,
1037
+ dragdrop: true,
1038
+ views: {
1039
+ list: true,
1040
+ thumbs: true,
1041
+ active: 'thumbs'
1042
+ },
1043
+ filters: <?php echo wp_json_encode( $filters ); ?>,
1044
+ } );
1045
+ var closebtn = '<button type="button" class="btn-close float-end m-0" data-bs-dismiss="alert" aria-label="Close"></button>';
1046
+ var resetbtn = '<a href="#" class="plupload_reset" style="display: inline-block;"><i class="fa-solid fa-arrow-rotate-right"></i></a>';
1047
+ var uploader = $( '#pluploadUploader' ).pluploadQueue();
1048
+ uploader.bind( 'PostInit', function( up ) {
1049
+ $( '.plupload_filelist_footer .plupload_file_action' ).html( resetbtn ).on( 'click', '.plupload_reset', function( e ) {
1050
+ e.preventDefault();
1051
+ up.removeAllEventListeners();
1052
+ up.destroy();
1053
+ gmediaInitUploader();
1054
+ } );
1055
+ } );
1056
+ uploader.bind( 'BeforeUpload', function( up, file ) {
1057
+ up.settings.multipart_params.params = jQuery( '#uploader_multipart_params :input' ).serialize();
1058
+ } );
1059
+ uploader.bind( 'ChunkUploaded', function( up, file, info ) {
1060
+ console.log( '[ChunkUploaded] File:', file, 'Info:', info );
1061
+ var response = $.parseJSON( info.response );
1062
+ if ( response && response.error ) {
1063
+ up.stop();
1064
+ file.status = plupload.FAILED;
1065
+ $( '<div></div>' ).addClass( 'alert alert-danger alert-dismissable' ).html( closebtn + '<strong>' + response.id + ':</strong> ' + response.error.message ).appendTo( '#gmedia-msg-panel' );
1066
+ console.log( response.error );
1067
+ up.trigger( 'QueueChanged StateChanged' );
1068
+ up.trigger( 'UploadProgress', file );
1069
+ up.start();
1070
+ }
1071
+ } );
1072
+ uploader.bind( 'FileUploaded', function( up, file, info ) {
1073
+ console.log( '[FileUploaded] File:', file, 'Info:', info );
1074
+ var response = jQuery.parseJSON( info.response );
1075
+ if ( response && response.error ) {
1076
+ file.status = plupload.FAILED;
1077
+ $( '<div></div>' ).addClass( 'alert alert-danger alert-dismissable' ).html( closebtn + '<strong>' + response.id + ':</strong> ' + response.error.message ).appendTo( '#gmedia-msg-panel' );
1078
+ console.log( response.error );
1079
+ }
1080
+ } );
1081
+ uploader.bind( 'UploadProgress', function( up, file ) {
1082
+ var percent = uploader.total.percent;
1083
+ $( '#total-progress-info .progress-bar' ).css( 'width', percent + '%' ).attr( 'aria-valuenow', percent );
1084
+ } );
1085
+ uploader.bind( 'Error', function( up, args ) {
1086
+ console.log( '[Error] ', args );
1087
+ $( '<div></div>' ).addClass( 'alert alert-danger alert-dismissable' ).html( closebtn + '<strong>' + args.file.name + ':</strong> ' + args.message + ' ' + args.status ).appendTo( '#gmedia-msg-panel' );
1088
+ } );
1089
+ uploader.bind( 'UploadComplete', function( up, files ) {
1090
+ console.log( '[UploadComplete]', files );
1091
+ $( '<div></div>' ).addClass( 'alert alert-success alert-dismissable' ).html( closebtn + "<?php esc_attr_e( 'Upload finished', 'grand-media' ); ?>" ).appendTo( '#gmedia-msg-panel' );
1092
+ $( '#total-progress-info .progress-bar' ).css( 'width', '0' ).attr( 'aria-valuenow', '0' );
1093
+ } );
1094
+ }
1095
+
1096
+ gmediaInitUploader();
1097
+
1098
+ } );
1099
  </script>
1100
  </div>
1101
  <div class="col-md-4 col-md-pull-8" id="uploader_multipart_params">
1102
  <div id="gmedia-msg-panel"></div>
1103
  <br/>
1104
  <?php if ( 'false' === $gm_screen_options['uploader_chunking'] || ( 'html4' === $gm_screen_options['uploader_runtime'] ) ) { ?>
1105
+ <p class="clearfix text-end"><span class="badge badge-info label-default"><?php echo esc_html( __( 'Maximum file size', 'grand-media' ) . ": {$maxupsize_mb}Mb" ); ?></span></p>
1106
  <?php } else { ?>
1107
  <p class="clearfix text-end hidden">
1108
+ <span class="badge badge-info label-default"><?php echo esc_html( __( 'Maximum $_POST size', 'grand-media' ) . ": {$maxupsize_mb}Mb" ); ?></span>
1109
+ <span class="badge badge-info label-default"><?php echo esc_html( __( 'Chunk size', 'grand-media' ) . ': ' . min( $maxchunksize_mb, $gm_screen_options['uploader_chunk_size'] ) . 'Mb' ); ?></span>
1110
  </p>
1111
  <?php } ?>
1112
 
1170
  <div class="addtags-gap">&nbsp;</div>
1171
 
1172
  <script type="text/javascript">
1173
+ jQuery( function( $ ) {
1174
+ $( '#combobox_gmedia_album' ).selectize( {
1175
  <?php if ( $gmCore->caps['gmedia_album_manage'] ) { ?>
1176
  create: true,
1177
  createOnBlur: true,
1178
  <?php } else { ?>
1179
  create: false,
1180
  <?php } ?>
1181
+ persist: false
1182
+ } );
1183
 
1184
  var gm_cat_terms = <?php echo wp_json_encode( $gm_cat_terms ); ?>;
1185
  //noinspection JSUnusedAssignment
1186
+ var cat_items = gm_cat_terms.map( function( x ) {
1187
  return {item: x};
1188
+ } );
1189
  //noinspection JSDuplicatedDeclaration
1190
+ $( '#combobox_gmedia_category' ).selectize( {
1191
  <?php if ( $gmCore->caps['gmedia_category_manage'] ) { ?>
1192
+ create: function( input ) {
1193
  return {
1194
+ item: input
1195
  };
1196
  },
1197
  createOnBlur: true,
1206
  labelField: 'item',
1207
  valueField: 'item',
1208
  searchField: ['item'],
1209
+ hideSelected: true
1210
+ } );
1211
 
1212
  var gm_tag_terms = <?php echo wp_json_encode( $gm_tag_terms ); ?>;
1213
  //noinspection JSUnusedAssignment
1214
+ var tag_items = gm_tag_terms.map( function( x ) {
1215
  return {item: x};
1216
+ } );
1217
+ $( '#combobox_gmedia_tag' ).selectize( {
1218
  <?php if ( $gmCore->caps['gmedia_tag_manage'] ) { ?>
1219
+ create: function( input ) {
1220
  return {
1221
+ item: input
1222
  };
1223
  },
1224
  createOnBlur: true,
1233
  labelField: 'item',
1234
  valueField: 'item',
1235
  searchField: ['item'],
1236
+ hideSelected: true
1237
+ } );
1238
+ } );
1239
  </script>
1240
  <?php } else { ?>
1241
  <p><?php esc_html_e( 'You are not allowed to assign terms', 'grand-media' ); ?></p>
1242
  <?php } ?>
1243
 
1244
  <script type="text/javascript">
1245
+ jQuery( function( $ ) {
1246
+ $( '#uploader_runtime select' ).change( function() {
1247
+ if ( 'html4' === $( this ).val() ) {
1248
+ $( '#uploader_chunking' ).addClass( 'hide' );
1249
+ $( '#uploader_urlstream_upload' ).addClass( 'hide' );
1250
+ } else {
1251
+ $( '#uploader_chunking' ).removeClass( 'hide' );
1252
+ $( '#uploader_urlstream_upload' ).removeClass( 'hide' );
 
1253
  }
1254
+ } );
1255
+ } );
1256
  </script>
1257
  </div>
1258
  </form>
inc/post-metabox.php CHANGED
@@ -17,7 +17,7 @@ function gmedia_add_meta_box( $page, $context ) {
17
  $gm_post_types = apply_filters( 'gmedia_post_types', $gmedia_post_types );
18
 
19
  if ( function_exists( 'add_meta_box' ) && ! empty( $gm_post_types ) && in_array( $page, $gm_post_types, true ) && 'side' === $context ) {
20
- add_filter( 'media_buttons_context', 'gmedia_media_buttons_context', 4 );
21
  add_action( 'admin_enqueue_scripts', 'gmedia_meta_box_load_scripts', 20 );
22
  //add_meta_box('gmedia-MetaBox', __('Gmedia Gallery MetaBox', 'grand-media'), 'gmedia_post_metabox', $page, 'side', 'low');
23
  add_action( 'admin_footer', 'gmedia_post_modal_tpl' );
@@ -32,17 +32,14 @@ add_action( 'do_meta_boxes', 'gmedia_add_meta_box', 20, 2 );
32
  add_action( 'save_post', 'gmedia_related_post_metabox_save', 10, 2 );
33
 
34
  /**
35
- * @param $context
36
- *
37
- * @return string
38
  */
39
- function gmedia_media_buttons_context( $context ) {
40
- $button = '
41
  <div style="display:inline-block;">
42
- <a id="gmedia-modal" title="Gmedia Galleries" class="gmedia_button button" href="#gmedia"><span class="wp-media-buttons-icon" style="background: url(' . plugins_url( 'admin/assets/img/gm-icon.png', dirname( __FILE__ ) ) . ') no-repeat top left;"></span> ' . __( 'Gmedia', 'grand-media' ) . '</a>
43
- </div>';
44
-
45
- return $context . $button;
46
  }
47
 
48
  /**
17
  $gm_post_types = apply_filters( 'gmedia_post_types', $gmedia_post_types );
18
 
19
  if ( function_exists( 'add_meta_box' ) && ! empty( $gm_post_types ) && in_array( $page, $gm_post_types, true ) && 'side' === $context ) {
20
+ add_action( 'media_buttons', 'gmedia_media_buttons_context', 4 );
21
  add_action( 'admin_enqueue_scripts', 'gmedia_meta_box_load_scripts', 20 );
22
  //add_meta_box('gmedia-MetaBox', __('Gmedia Gallery MetaBox', 'grand-media'), 'gmedia_post_metabox', $page, 'side', 'low');
23
  add_action( 'admin_footer', 'gmedia_post_modal_tpl' );
32
  add_action( 'save_post', 'gmedia_related_post_metabox_save', 10, 2 );
33
 
34
  /**
35
+ * @return void
 
 
36
  */
37
+ function gmedia_media_buttons_context() {
38
+ ?>
39
  <div style="display:inline-block;">
40
+ <a id="gmedia-modal" title="Gmedia Galleries" class="gmedia_button button" href="#gmedia"><span class="wp-media-buttons-icon" style="background: url('<?php echo esc_url( plugins_url( 'admin/assets/img/gm-icon.png', dirname( __FILE__ ) ) ); ?>') no-repeat top left;"></span> <?php esc_html_e( 'Gmedia', 'grand-media' ); ?></a>
41
+ </div>
42
+ <?php
 
43
  }
44
 
45
  /**
readme.txt CHANGED
@@ -2,9 +2,10 @@
2
  Contributors: pasyuk
3
  Donate link: https://codeasily.com/donate/
4
  Tags: best gallery plugin, gallery, image gallery, photo gallery, wordpress gallery plugin
5
- Requires at least: 4.2
6
  Tested up to: 6.0
7
- Stable tag: 1.21.5
 
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -101,6 +102,11 @@ Gmedia Gallery is the result of hundreds of hours of working to bring you the ul
101
 
102
  **[Translations](https://translate.wordpress.org/projects/wp-plugins/grand-media)**
103
 
 
 
 
 
 
104
  == Installation ==
105
 
106
  1. To install Gmedia plugin upload `grand-media` folder to the `/wp-content/plugins/` directory or install Gmedia Gallery via WP Dashboard
@@ -133,6 +139,14 @@ Use [Gmedia Support Forum](https://codeasily.com/community/forum/gmedia-gallery-
133
  = Modules Updated =
134
  * Go to Gmedia Modules page and update installed premium modules to latest versions
135
 
 
 
 
 
 
 
 
 
136
  = v1.21.6 =
137
  * Fix editing gmedia data
138
  * Fix saving terms data
2
  Contributors: pasyuk
3
  Donate link: https://codeasily.com/donate/
4
  Tags: best gallery plugin, gallery, image gallery, photo gallery, wordpress gallery plugin
5
+ Requires at least: 5.3.0
6
  Tested up to: 6.0
7
+ Requires PHP: 5.4
8
+ Stable tag: /trunk
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
102
 
103
  **[Translations](https://translate.wordpress.org/projects/wp-plugins/grand-media)**
104
 
105
+ = PS =
106
+
107
+ Proud to be ukrainian. Live in Mykolaiv, Ukraine. #NoWar #fckptn
108
+
109
+
110
  == Installation ==
111
 
112
  1. To install Gmedia plugin upload `grand-media` folder to the `/wp-content/plugins/` directory or install Gmedia Gallery via WP Dashboard
139
  = Modules Updated =
140
  * Go to Gmedia Modules page and update installed premium modules to latest versions
141
 
142
+ = v1.21.8 =
143
+ * Fix saving title with ampersand
144
+ * Fix display some modues in preview
145
+ * Improve admin styling
146
+
147
+ = v1.21.7 =
148
+ * Fix media and shortcode insert for Classic Editor
149
+
150
  = v1.21.6 =
151
  * Fix editing gmedia data
152
  * Fix saving terms data
template/functions.php CHANGED
@@ -251,9 +251,11 @@ function get_the_gmedia_content( $gmedia_id, $gmedia_type, $set = null ) {
251
  }
252
 
253
  function the_gmedia_content() {
254
- global $gmedia_shortcode_content, $gm_allowed_tags;
255
 
256
- echo wp_kses( $gmedia_shortcode_content, $gm_allowed_tags );
 
 
257
  }
258
 
259
  function gmediacloud_social_sharing() {
251
  }
252
 
253
  function the_gmedia_content() {
254
+ global $gmedia_shortcode_content;
255
 
256
+ // Shortcode content already escaped and doing it twice broke the code.
257
+ // phpcs:ignore
258
+ echo $gmedia_shortcode_content;
259
  }
260
 
261
  function gmediacloud_social_sharing() {