Folders – Unlimited Folders to Organize Media Library Folder, Pages, Posts, File Manager - Version 2.5

Version Description

When you use a media library folder in pages and posts, your choice will be stored for next uses. We've also fixed some RTL UI issues. You can also remove the upper folders if you want. We've added an option to bulk move files in the media library in list mode (not using drag and drop).

Download this release

Release Info

Developer galdub
Plugin Icon wp plugin Folders – Unlimited Folders to Organize Media Library Folder, Pages, Posts, File Manager
Version 2.5
Comparing to
See all releases

Code changes from version 2.4.9 to 2.5

assets/css/design.css CHANGED
@@ -250,14 +250,27 @@ button#wcp-save-folder {
250
  background: #dfdfdf;
251
  cursor: pointer
252
  }
253
- body:not(.no-hover-css) .wcp-container .route .title:hover img, .wcp-container .route .title.wcp-drop-hover img {
 
 
 
254
  display: block
255
  }
256
- body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon i, .wcp-container .route .title.wcp-drop-hover .ui-icon i {
257
  display: none
258
  }
259
- body.no-hover-css .wcp-container .route .title:hover {
260
- background: 0 0
 
 
 
 
 
 
 
 
 
 
261
  }
262
  .wcp-container .route .title.wcp-drop-hover img {
263
  filter: invert(100%);
@@ -427,9 +440,14 @@ span.total-count {
427
  -moz-box-shadow: 0 0 5px 0 rgba(0, 0, 0, .25);
428
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, .25)
429
  }
 
 
 
 
430
  .dynamic-menu li {
431
  position: relative;
432
- display: block !important;
 
433
  padding: 2px 0;
434
  margin: 0
435
  }
@@ -442,14 +460,14 @@ span.total-count {
442
  line-height: 18px;
443
  white-space: nowrap
444
  }
445
- .wcp-container .route .dynamic-menu ul > li > a > span, .wcp-container .route .dynamic-menu ul > li > a > span span {
446
- position: relative;
447
- top: auto;
448
  display: inline-block;
449
  vertical-align: top;
450
- margin-right: 5px
 
451
  }
452
- .wcp-container .route .dynamic-menu ul > li > a > span span {
453
  top: auto;
454
  height: auto;
455
  width: auto;
@@ -461,10 +479,17 @@ span.total-count {
461
  .dynamic-menu li.new-folder {
462
  border-bottom: solid 1px #d8d8d8
463
  }
464
- .dynamic-menu a:hover {
465
  background: #efefef;
466
  color: #000
467
  }
 
 
 
 
 
 
 
468
  .wcp-form-input {
469
  padding-left: 35px;
470
  box-sizing: border-box;
@@ -667,10 +692,10 @@ span.wcp-item {
667
  cursor: col-resize
668
  }
669
  div#custom-menu {
670
- padding-bottom: 120px;
671
  padding-left: 4px
672
  }
673
- .wcp-container .route span.star-icon {
674
  position: relative;
675
  top: 2px;
676
  left: auto;
@@ -678,9 +703,11 @@ div#custom-menu {
678
  font-family: folder-icon !important;
679
  speak: none;
680
  color: #ffc90e;
681
- display: none
 
 
682
  }
683
- .wcp-container .route span.update-inline-record {
684
  position: relative;
685
  left: auto;
686
  top: 2px;
@@ -694,21 +721,24 @@ div#custom-menu {
694
  -webkit-transition: all .25s linear;
695
  -moz-transition: all .25s linear
696
  }
697
- body:not(.no-hover-css) .wcp-container .route h3:hover > span.update-inline-record {
698
  width: 18px
699
  }
700
- .wcp-container .route span.update-inline-record:after {
 
 
 
701
  content: "\e910"
702
  }
703
- .wcp-container .route.is-high > h3 > span.star-icon {
704
- display: block
705
  }
706
- .wcp-container .route span.star-icon:after {
707
  content: "\e907"
708
  }
709
  .tree-structure li {
710
  display: block;
711
- width: 16.667%;
712
  float: left;
713
  margin: 0;
714
  padding: 0
@@ -807,6 +837,18 @@ body:not(.no-hover-css) .wcp-container .route h3:hover > span.update-inline-reco
807
  .media-frame, .media-frame .attachments-browser, .media-frame-content {
808
  overflow: inherit
809
  }
 
 
 
 
 
 
 
 
 
 
 
 
810
  body.upload-php.eml-grid #wpbody {
811
  position: relative !important;
812
  top: 0 !important;
@@ -850,7 +892,12 @@ span.upgrade-message a.pink, span.upgrade-message span.pink {
850
  .wcp-hide-show-buttons {
851
  position: absolute;
852
  top: 25px;
853
- right: -20px
 
 
 
 
 
854
  }
855
  .wcp-hide-show-buttons .toggle-buttons {
856
  background: #f51366;
@@ -875,7 +922,7 @@ span.upgrade-message a.pink, span.upgrade-message span.pink {
875
  content: "";
876
  width: 100%;
877
  height: 100%;
878
- background: rgba(0, 0, 0, .1);
879
  position: absolute;
880
  top: 0;
881
  left: 0;
@@ -886,6 +933,21 @@ span.upgrade-message a.pink, span.upgrade-message span.pink {
886
  border-top-right-radius: 50%;
887
  border-bottom-right-radius: 50%
888
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
889
  .hide-folders-area .wcp-content {
890
  width: 0 !important
891
  }
@@ -1114,9 +1176,9 @@ span.media-info-message.active {
1114
  -webkit-transform: rotate(0);
1115
  transform: rotate(0)
1116
  } 100% {
1117
- -webkit-transform: rotate(359deg);
1118
- transform: rotate(359deg)
1119
- }}
1120
  .folder-form-buttons a:focus, .folder-form-buttons a:hover, .folder-form-buttons button:focus, .folder-form-buttons button:hover {
1121
  color: #fff;
1122
  background-image: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1))
@@ -1190,68 +1252,68 @@ span.folder-loader-ajax {
1190
  -webkit-transform: scale(1.5);
1191
  transform: scale(1.5)
1192
  } 100% {
1193
- opacity: 1;
1194
- -webkit-transform: scale(1);
1195
- transform: scale(1)
1196
- }}
1197
  @keyframes scaleAnimation {
1198
  0% {
1199
  opacity: 0;
1200
  -webkit-transform: scale(1.5);
1201
  transform: scale(1.5)
1202
  } 100% {
1203
- opacity: 1;
1204
- -webkit-transform: scale(1);
1205
- transform: scale(1)
1206
- }}
1207
  @-webkit-keyframes drawCircle {
1208
  0% {
1209
  stroke-dashoffset: 151px
1210
  } 100% {
1211
- stroke-dashoffset: 0
1212
- }}
1213
  @keyframes drawCircle {
1214
  0% {
1215
  stroke-dashoffset: 151px
1216
  } 100% {
1217
- stroke-dashoffset: 0
1218
- }}
1219
  @-webkit-keyframes drawCheck {
1220
  0% {
1221
  stroke-dashoffset: 36px
1222
  } 100% {
1223
- stroke-dashoffset: 0
1224
- }}
1225
  @keyframes drawCheck {
1226
  0% {
1227
  stroke-dashoffset: 36px
1228
  } 100% {
1229
- stroke-dashoffset: 0
1230
- }}
1231
  @-webkit-keyframes fadeOut {
1232
  0% {
1233
  opacity: 1
1234
  } 100% {
1235
- opacity: 0
1236
- }}
1237
  @keyframes fadeOut {
1238
  0% {
1239
  opacity: 1
1240
  } 100% {
1241
- opacity: 0
1242
- }}
1243
  @-webkit-keyframes fadeIn {
1244
  0% {
1245
  opacity: 0
1246
  } 100% {
1247
- opacity: 1
1248
- }}
1249
  @keyframes fadeIn {
1250
  0% {
1251
  opacity: 0
1252
  } 100% {
1253
- opacity: 1
1254
- }}
1255
  #successAnimationCircle {
1256
  stroke-dasharray: 151px 151px;
1257
  stroke: #2ce0a7
@@ -1374,8 +1436,8 @@ select#media-attachment-taxonomy-filter {
1374
  0% {
1375
  background-position: 0 0
1376
  } 100% {
1377
- background-position: 50px 50px
1378
- }}
1379
  .orange-bg > span {
1380
  background-color: #ff5983
1381
  }
@@ -1386,10 +1448,101 @@ select#media-attachment-taxonomy-filter {
1386
  .media-folder-loader > span {
1387
  font-weight: 700
1388
  }
1389
- @media screen and (max-width: 1300px) {
1390
- .tree-structure li {
1391
- width: 20%
1392
- }}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1393
  @media screen and (max-width: 960px) {
1394
  .wcp-content {
1395
  left: 36px
@@ -1398,9 +1551,7 @@ select#media-attachment-taxonomy-filter {
1398
  right: 36px;
1399
  left: auto
1400
  }
1401
- .tree-structure li {
1402
- width: 25%
1403
- }}
1404
  @media screen and (max-width: 780px) {
1405
  .wcp-content {
1406
  left: 0
@@ -1408,9 +1559,7 @@ select#media-attachment-taxonomy-filter {
1408
  html[dir=rtl] .wcp-content {
1409
  right: 0
1410
  }
1411
- .tree-structure li {
1412
- width: 33.33%
1413
- }}
1414
  @media screen and (max-width: 640px) {
1415
  .wcp-content {
1416
  left: 0;
@@ -1439,6 +1588,4 @@ select#media-attachment-taxonomy-filter {
1439
  #wpbody-content {
1440
  padding-bottom: 30px
1441
  }
1442
- .tree-structure li {
1443
- width: 50%
1444
- }}
250
  background: #dfdfdf;
251
  cursor: pointer
252
  }
253
+ .wcp-container .route .title.wcp-drop-hover .ui-icon img.folder-sticky-icon {
254
+
255
+ }
256
+ body:not(.no-hover-css) .wcp-container .route .title:hover img.move-folder-icon, .wcp-container .route .title.wcp-drop-hover img.move-folder-icon {
257
  display: block
258
  }
259
+ body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon i, body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon img.folder-sticky-icon, .wcp-container .route .title.wcp-drop-hover .ui-icon i, .wcp-container .route .title.wcp-drop-hover .ui-icon img.folder-sticky-icon {
260
  display: none
261
  }
262
+ .route.is-sticky > h3.title > .ui-icon > .folder-sticky-icon {
263
+ display: block;
264
+ width: 100%;
265
+ height: auto;
266
+ margin: 3px auto 0;
267
+ }
268
+ .route.is-sticky.active-item > h3.title > .ui-icon > .folder-sticky-icon {
269
+ filter: invert(100%);
270
+ -webkit-filter: invert(100%);
271
+ }
272
+ .route.is-sticky > h3.title > .ui-icon > i {
273
+ display: none;
274
  }
275
  .wcp-container .route .title.wcp-drop-hover img {
276
  filter: invert(100%);
440
  -moz-box-shadow: 0 0 5px 0 rgba(0, 0, 0, .25);
441
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, .25)
442
  }
443
+ .sticky-folders .dynamic-menu {
444
+ left: auto;
445
+ right: 50px;
446
+ }
447
  .dynamic-menu li {
448
  position: relative;
449
+ width: 100%;
450
+ display: inline-block !important;
451
  padding: 2px 0;
452
  margin: 0
453
  }
460
  line-height: 18px;
461
  white-space: nowrap
462
  }
463
+ .dynamic-menu ul > li > a > span, .dynamic-menu ul > li > a > span span {
464
+ position: relative !important;
 
465
  display: inline-block;
466
  vertical-align: top;
467
+ margin-right: 5px;
468
+ top: 0 !important;
469
  }
470
+ .dynamic-menu ul > li > a > span span {
471
  top: auto;
472
  height: auto;
473
  width: auto;
479
  .dynamic-menu li.new-folder {
480
  border-bottom: solid 1px #d8d8d8
481
  }
482
+ .dynamic-menu a:hover, .dynamic-menu a.active {
483
  background: #efefef;
484
  color: #000
485
  }
486
+ .dynamic-menu ul li span {
487
+ font-size: 20px;
488
+ vertical-align: middle;
489
+ }
490
+ .dynamic-menu ul li span.sticky-folder-icon {
491
+ width: 20px;
492
+ }
493
  .wcp-form-input {
494
  padding-left: 35px;
495
  box-sizing: border-box;
692
  cursor: col-resize
693
  }
694
  div#custom-menu {
695
+ padding-bottom: 150px;
696
  padding-left: 4px
697
  }
698
+ .wcp-container .route span.star-icon, .sticky-folders li a span.star-icon {
699
  position: relative;
700
  top: 2px;
701
  left: auto;
703
  font-family: folder-icon !important;
704
  speak: none;
705
  color: #ffc90e;
706
+ display: none;
707
+ font-size: 20px;
708
+ font-weight: bold;
709
  }
710
+ .wcp-container .route span.update-inline-record, .sticky-folders li a span.update-inline-record {
711
  position: relative;
712
  left: auto;
713
  top: 2px;
721
  -webkit-transition: all .25s linear;
722
  -moz-transition: all .25s linear
723
  }
724
+ body:not(.no-hover-css) .wcp-container .route h3:hover > span.update-inline-record, body:not(.no-hover-css) .sticky-folders li a:hover span.update-inline-record {
725
  width: 18px
726
  }
727
+ .sticky-folders li a:hover .folder-count {
728
+ margin: 0px 3px 0px 0px;
729
+ }
730
+ .wcp-container .route span.update-inline-record:after, .sticky-folders li a span.update-inline-record:after {
731
  content: "\e910"
732
  }
733
+ .wcp-container .route.is-high > h3 > span.star-icon, .sticky-folders li.is-high a span.star-icon {
734
+ display: block;
735
  }
736
+ .wcp-container .route span.star-icon:after, .sticky-folders li a span.star-icon:after {
737
  content: "\e907"
738
  }
739
  .tree-structure li {
740
  display: block;
741
+ width: auto;
742
  float: left;
743
  margin: 0;
744
  padding: 0
837
  .media-frame, .media-frame .attachments-browser, .media-frame-content {
838
  overflow: inherit
839
  }
840
+ .mCS-3d-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-3d.mCSB_scrollTools .mCSB_draggerRail {
841
+ width: 2px !important;
842
+ background-color: #0073aa !important;
843
+ background-color: rgba(0, 115, 170, .6) !important;
844
+ box-shadow: none !important
845
+ }
846
+ .mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
847
+ background-color: #0073aa !important
848
+ }
849
+ .mCSB_outside + .mCSB_scrollTools {
850
+ right: -15px !important
851
+ }
852
  body.upload-php.eml-grid #wpbody {
853
  position: relative !important;
854
  top: 0 !important;
892
  .wcp-hide-show-buttons {
893
  position: absolute;
894
  top: 25px;
895
+ right: -20px;
896
+ z-index: 10001;
897
+ }
898
+ html[dir="rtl"] .wcp-hide-show-buttons {
899
+ left: -20px;
900
+ right: auto;
901
  }
902
  .wcp-hide-show-buttons .toggle-buttons {
903
  background: #f51366;
922
  content: "";
923
  width: 100%;
924
  height: 100%;
925
+ background: transparent;
926
  position: absolute;
927
  top: 0;
928
  left: 0;
933
  border-top-right-radius: 50%;
934
  border-bottom-right-radius: 50%
935
  }
936
+ html[dir="rtl"] .wcp-hide-show-buttons .toggle-buttons {
937
+ border-radius: 0;
938
+ -webkit-border-radius: 0;
939
+ -moz-border-radius: 0;
940
+ -webkit-border-top-left-radius: 50%;
941
+ -webkit-border-bottom-left-radius: 50%;
942
+ -moz-border-radius-top-left: 50%;
943
+ -moz-border-radius-bottom-left: 50%;
944
+ border-top-left-radius: 50%;
945
+ border-bottom-left-radius: 50%;
946
+ }
947
+ html[dir="rtl"] .wcp-hide-show-buttons .toggle-buttons span {
948
+ -webkit-transform: rotate(180deg);
949
+ transform: rotate(180deg);
950
+ }
951
  .hide-folders-area .wcp-content {
952
  width: 0 !important
953
  }
1176
  -webkit-transform: rotate(0);
1177
  transform: rotate(0)
1178
  } 100% {
1179
+ -webkit-transform: rotate(359deg);
1180
+ transform: rotate(359deg)
1181
+ }}
1182
  .folder-form-buttons a:focus, .folder-form-buttons a:hover, .folder-form-buttons button:focus, .folder-form-buttons button:hover {
1183
  color: #fff;
1184
  background-image: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1))
1252
  -webkit-transform: scale(1.5);
1253
  transform: scale(1.5)
1254
  } 100% {
1255
+ opacity: 1;
1256
+ -webkit-transform: scale(1);
1257
+ transform: scale(1)
1258
+ }}
1259
  @keyframes scaleAnimation {
1260
  0% {
1261
  opacity: 0;
1262
  -webkit-transform: scale(1.5);
1263
  transform: scale(1.5)
1264
  } 100% {
1265
+ opacity: 1;
1266
+ -webkit-transform: scale(1);
1267
+ transform: scale(1)
1268
+ }}
1269
  @-webkit-keyframes drawCircle {
1270
  0% {
1271
  stroke-dashoffset: 151px
1272
  } 100% {
1273
+ stroke-dashoffset: 0
1274
+ }}
1275
  @keyframes drawCircle {
1276
  0% {
1277
  stroke-dashoffset: 151px
1278
  } 100% {
1279
+ stroke-dashoffset: 0
1280
+ }}
1281
  @-webkit-keyframes drawCheck {
1282
  0% {
1283
  stroke-dashoffset: 36px
1284
  } 100% {
1285
+ stroke-dashoffset: 0
1286
+ }}
1287
  @keyframes drawCheck {
1288
  0% {
1289
  stroke-dashoffset: 36px
1290
  } 100% {
1291
+ stroke-dashoffset: 0
1292
+ }}
1293
  @-webkit-keyframes fadeOut {
1294
  0% {
1295
  opacity: 1
1296
  } 100% {
1297
+ opacity: 0
1298
+ }}
1299
  @keyframes fadeOut {
1300
  0% {
1301
  opacity: 1
1302
  } 100% {
1303
+ opacity: 0
1304
+ }}
1305
  @-webkit-keyframes fadeIn {
1306
  0% {
1307
  opacity: 0
1308
  } 100% {
1309
+ opacity: 1
1310
+ }}
1311
  @keyframes fadeIn {
1312
  0% {
1313
  opacity: 0
1314
  } 100% {
1315
+ opacity: 1
1316
+ }}
1317
  #successAnimationCircle {
1318
  stroke-dasharray: 151px 151px;
1319
  stroke: #2ce0a7
1436
  0% {
1437
  background-position: 0 0
1438
  } 100% {
1439
+ background-position: 50px 50px
1440
+ }}
1441
  .orange-bg > span {
1442
  background-color: #ff5983
1443
  }
1448
  .media-folder-loader > span {
1449
  font-weight: 700
1450
  }
1451
+ .sticky-folders {
1452
+ display: none;
1453
+ padding: 0 0 5px;
1454
+ margin: 0 0 5px;
1455
+ border-bottom: solid 1px #ccc;
1456
+ }
1457
+ .top-settings {
1458
+ padding: 0 0 5px;
1459
+ margin: 0 0 5px;
1460
+ border-bottom: solid 1px #ccc;
1461
+ }
1462
+ .sticky-folders.active {
1463
+ display: block;
1464
+ }
1465
+ .sticky-folders ul {
1466
+ margin: 0;
1467
+ padding: 0;
1468
+ }
1469
+ .sticky-folders > ul > li {
1470
+ display: block;
1471
+ margin: 0;
1472
+ padding: 0;
1473
+ }
1474
+ .sticky-folders > ul > li > a {
1475
+ display: block;
1476
+ color: #444;
1477
+ padding: 7px;
1478
+ border-radius: 3px;
1479
+ text-decoration: none;
1480
+ font-size: 16px;
1481
+ line-height: 18px;
1482
+ }
1483
+ .sticky-folders ul li a:hover, .sticky-folders ul li a.active {
1484
+ background: #dfdfdf;
1485
+ border-radius: 3px;
1486
+ }
1487
+ .sticky-folders ul li a.active-item {
1488
+ background-color: #008ec2 !important;
1489
+ color: #ffffff;
1490
+ }
1491
+ .sticky-folders ul li a.active-item img {
1492
+ filter: invert(100%);
1493
+ -webkit-filter: invert(100%);
1494
+ }
1495
+ .sticky-folders ul li a span {
1496
+ display: inline-block;
1497
+ vertical-align: middle;
1498
+ line-height: 18px;
1499
+ }
1500
+ .sticky-folders ul li a span.sticky-icon {
1501
+ width: 18px;
1502
+ height: 18px;
1503
+ margin-right: 3px;
1504
+ }
1505
+ .sticky-folders ul li a span.sticky-icon img {
1506
+ width: 100%;
1507
+ height: 100%;
1508
+ }
1509
+ .sticky-wcp-custom-form a:focus {
1510
+ box-shadow: none;
1511
+ outline: none;
1512
+ }
1513
+ span.folder-count {
1514
+ float: right;
1515
+ background: #fff;
1516
+ padding: 0 5px;
1517
+ border: solid 1px #ccc;
1518
+ font-size: 10px;
1519
+ line-height: 16px;
1520
+ border-radius: 2px;
1521
+ color: #444 !important;
1522
+ }
1523
+ span.folder-count:empty {
1524
+ display: none;
1525
+ }
1526
+ .sticky-title {
1527
+ font-size: 16px;
1528
+ font-weight: bold;
1529
+ padding: 7px;
1530
+ }
1531
+ .sticky-title img {
1532
+ display: inline-block;
1533
+ vertical-align: middle;
1534
+ height: 20px;
1535
+ width: 20px;
1536
+ }
1537
+ .sticky-folder-icon img {
1538
+ width: 100%;
1539
+ filter: invert(50%);
1540
+ -webkit-filter: invert(50%);
1541
+ }
1542
+ .dynamic-menu .sticky-folder:hover img {
1543
+ filter: invert(0%);
1544
+ -webkit-filter: invert(0%);
1545
+ }
1546
  @media screen and (max-width: 960px) {
1547
  .wcp-content {
1548
  left: 36px
1551
  right: 36px;
1552
  left: auto
1553
  }
1554
+ }
 
 
1555
  @media screen and (max-width: 780px) {
1556
  .wcp-content {
1557
  left: 0
1559
  html[dir=rtl] .wcp-content {
1560
  right: 0
1561
  }
1562
+ }
 
 
1563
  @media screen and (max-width: 640px) {
1564
  .wcp-content {
1565
  left: 0;
1588
  #wpbody-content {
1589
  padding-bottom: 30px
1590
  }
1591
+ }
 
 
assets/css/design.min.css CHANGED
@@ -1 +1 @@
1
- .wcp-custom-menu{padding-left:0}.wcp-custom-menu{position:relative}.wcp-container ul{list-style:none}.wcp-container .route{position:relative;list-style-type:none;border:0;margin:0;padding:0;top:0;margin-top:0;max-height:100%!important;width:100%;border-radius:2px;z-index:-1;background:0 0}.wcp-container .route span{position:absolute;top:2px;left:0;z-index:10;width:20px;height:18px;text-indent:0;font-size:20px;background:no-repeat}.wcp-container .route .title{position:absolute;border:0;margin:0;padding:0;padding-top:0;height:30px;width:200px;text-indent:30px;background:0 0;border-radius:0;box-shadow:none;font-size:14px;line-height:26px;border-radius:4px;-webkit-border-radius:4px;-moz-border-radius:4px;overflow:hidden}.wcp-container .first-title{margin-left:10px}.wcp-container .space{position:relative;list-style-type:none;border:0;margin:0 0 0 20px;padding:0 0 30px 0;width:40px;top:30px;height:100%;z-index:1}.wcp-container .first-space{margin-left:10px;top:10px}i.fa-caret-right{transition:.1s;-webkit-transition:.1s;-moz-transition:.1s}li.active>span>i.fa-caret-right{transform:rotate(90deg);-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg)}li.active>span>i.fa-folder:before{content:"\f07c"}.has-sub-tree>ul.ui-sortable li{display:none}.has-sub-tree.active>ul.ui-sortable>li{display:block}.nav-icon{display:none;left:-20px!important}.has-sub-tree>.nav-icon{display:block}.wcp-content{position:fixed!important;top:32px;left:160px;bottom:0;width:305px;box-sizing:border-box;z-index:1;direction:ltr;transition:all .15s linear;-webkit-transition:all .15s linear;-moz-transition:all .15s linear}html[dir=rtl] .wcp-content{left:auto;right:160px}body.folded .wcp-content{left:36px}html[dir=rtl] body.folded .wcp-content{left:auto;right:36px}body.wp-admin #wpcontent{padding-left:310px;transition:all .15s linear;-webkit-transition:all .15s linear;-moz-transition:all .15s linear}html[dir=rtl] body.wp-admin #wpcontent{padding-left:0;padding-right:320px}.wcp-container{padding:20px 20px 20px 16px}.form-title{font-size:23px;font-weight:400;margin:0;padding:0 0 10px 0;line-height:29px;min-height:36px}.form-operations{border:solid 1px #e5e5e5;border-right:none;margin-bottom:20px}.form-operations ul{margin:0;padding:0}.form-operations li{display:block;float:left;width:20%;text-align:center;background:#fff;margin:0;padding:0}.form-operations li a{display:block;padding:10px 0;border-right:solid 1px #e5e5e5;font-size:16px;color:#727272}.clearfix{clear:both}.wcp-parent-data{position:relative}.wcp-parent{position:absolute;left:-21px;font-weight:700;font-size:14px}.wcp-parent .fa{font-size:18px;margin-right:8px}.wcp-form-data{background:#fff;border:solid 1px #f1f1f1;padding:15px;display:none;margin-bottom:20px}.wcp-form-title{color:#727272;font-size:14px;text-transform:uppercase;padding:0 0 10px 0}.wcp-form-data .form-field{padding:0 0 10px 0}.wcp-form-data .form-field input,.wcp-form-data .form-field select{width:100%}button#wcp-save-folder{float:right}.wcp-form-message span{display:block;padding:5px 10px;background:#ffabab;margin-bottom:10px;color:#000;border:solid 1px #8c0000;border-radius:4px}.wcp-container .route.active-item>h3.title{background:#008ec2;color:#fff;border-radius:4px}.wcp-container .route span.ui-icon{line-height:24px;font-size:18px;cursor:move;left:5px;top:2px;height:26px}.route.active-item>span.ui-icon{background:#008ec2;color:#fff}#custom-menu.active>ul>li.route{display:block}.wcp-parent.active>i.fa-caret-right{transform:rotate(90deg);-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg)}.wcp-parent.active>i.fa-folder:before{content:"\f07c"}.wcp-container .route .title img{display:none;width:14px;height:14px;margin:5px auto 0}.wcp-container .route .title:hover{background:#dfdfdf;cursor:pointer}.wcp-container .route .title.wcp-drop-hover img,body:not(.no-hover-css) .wcp-container .route .title:hover img{display:block}.wcp-container .route .title.wcp-drop-hover .ui-icon i,body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon i{display:none}body.no-hover-css .wcp-container .route .title:hover{background:0 0}.wcp-container .route .title.wcp-drop-hover img{filter:invert(100%);-webkit-filter:invert(100%)}.add-new-folder{text-decoration:none;display:block;float:right;font-size:14px;padding:4px 10px;background:#f51366;color:#fff;border:solid 1px #f51366;border-radius:3px;line-height:24px;-webkit-box-shadow:0 3px 5px -3px #333;-moz-box-shadow:0 3px 5px -3px #333;box-shadow:0 3px 5px -3px #333;position:relative}.add-new-folder:focus,.add-new-folder:hover{color:#fff}.add-new-folder:hover:after{content:"";width:100%;height:100%;background:rgba(0,0,0,.1);position:absolute;top:0;left:0}.add-new-folder span{display:block;float:left;line-height:20px;font-size:14px;margin-right:5px}.add-new-folder span.folder-icon-create_new_folder{font-size:20px}.form-options{background:#fff;padding:10px 0 0 10px;margin:0 0}.form-options ul{margin:0;padding:0}.form-options li{display:inline-block;margin:0 5px 0 0;vertical-align:top}.form-options li.last{margin:0}.form-options li a{display:inline-block;text-decoration:none;padding:5px 10px;color:#000;background:#ccc;box-shadow:0 1px 0 #ccc;vertical-align:middle;border:solid 1px #ccc;border-radius:3px;margin:0 0 12px 0}.form-options li.last a{padding:3px}.form-options li.last a span.icon{font-size:28px;line-height:22px}a#expand-collapse-list.all-open span:before{content:"\e911"}.form-options li a:hover{background:#404040;color:#fff;border:solid 1px #404040}.form-options span.icon{font-size:18px;display:inline-block;vertical-align:top}.un-categorised-items{border-radius:3px}.header-posts a,.un-categorised-items a{color:#444;padding:7px;border-radius:3px;display:block;text-decoration:none;font-size:14px;line-height:18px}.header-posts a:hover,.un-categorised-items.active-item,.un-categorised-items:hover{background:#dfdfdf;border-radius:3px}.header-posts a.active-item,.un-categorised-items.active-item{background:#008ec2!important;color:#fff!important}.un-categorised-items.active-item a{color:#fff!important}.header-posts a.active-item span.total-count,.un-categorised-items.active-item a span{color:#444!important}span.total-count{float:right;background:#fff;padding:0 5px;border:solid 1px #ccc;font-size:10px;line-height:16px;border-radius:2px}.wcp-icon{display:inline-block;font-size:16px;vertical-align:top;margin-right:3px}#custom-menu .wcp-icon{font-size:20px;line-height:24px}.route.active>.nav-icon>.folder-icon-arrow_right{transform:rotate(90deg);-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg)}.route.active>.ui-icon>.folder-icon-folder:before{content:"\e90c"}.wcp-container .route span.total-count{position:relative;font-size:8px;float:right;text-align:center;width:auto;background:#fff;display:block;margin:4px 3px 3px 3px;color:#23282d!important;line-height:16px;height:16px}.dynamic-menu{position:absolute;left:50px;background:#fff;width:170px;padding:0;z-index:101;-webkit-box-shadow:0 0 5px 0 rgba(0,0,0,.25);-moz-box-shadow:0 0 5px 0 rgba(0,0,0,.25);box-shadow:0 0 5px 0 rgba(0,0,0,.25)}.dynamic-menu li{position:relative;display:block!important;padding:2px 0;margin:0}.dynamic-menu a{text-decoration:none;color:#848484;position:relative;display:block;padding:5px 10px;line-height:18px;white-space:nowrap}.wcp-container .route .dynamic-menu ul>li>a>span,.wcp-container .route .dynamic-menu ul>li>a>span span{position:relative;top:auto;display:inline-block;vertical-align:top;margin-right:5px}.wcp-container .route .dynamic-menu ul>li>a>span span{top:auto;height:auto;width:auto;margin:0;left:auto;vertical-align:baseline;display:inline}.dynamic-menu li.new-folder{border-bottom:solid 1px #d8d8d8}.dynamic-menu a:hover{background:#efefef;color:#000}.wcp-form-input{padding-left:35px;box-sizing:border-box;position:relative}.wcp-form-input input{width:100%}.wcp-form-btn{padding:4px 0 4px 2px}.wcp-form-input:before{content:"\e90d";font-family:folder-icon!important;speak:none;position:absolute;left:0;font-size:28px;top:5px}.add-new-folder-btn{margin-right:5px!important}.form-loader{width:100%;height:5px;margin:0 0 10px}.form-loader-count{width:0;height:5px;background:url(../images/form-loader.png);transition:all 2.5s linear;-webkit-transition:all 2s linear;-moz-transition:all 2.5s linear}.route.is-high>.ui-icon>i:before{content:"\e900"!important}.route.is-high.active>.ui-icon>i:before{content:"\e90c"!important;z-index:11;color:#444;font-size:20px}.route.is-high.active>.ui-icon>i:after{content:"\e907";margin-left:-1.2em;color:#444;font-size:11px;top:1px;position:absolute}.route.is-high.active.active-item>.ui-icon>i:after,.route.is-high.active.active-item>.ui-icon>i:before{color:#fff}li.active-menu{z-index:2!important}.wp-list-table th{width:auto!important}.wp-list-table #wcp_move{width:20px!important}td.wcp_move.column-wcp_move{vertical-align:middle}.wp-list-table tr td .wcp-move-file{vertical-align:middle;opacity:0}.wp-list-table td.wcp_move.column-wcp_move.wcp-draggable,.wp-list-table tr:hover td .wcp-move-file{opacity:1}.wcp-drop-hover{background:#0073aa!important;z-index:2!important;color:#fff!important}.wcp-drop-hover span{color:#fff!important}.ui-draggable-dragging{z-index:1051!important}.wcp-hover-list{background:#008ec2!important;color:#fff;position:relative}.wcp-hover-list a{color:#fff}.wcp-hover-list span.total-count{color:#000}span.wcp-item{display:none}.wcp-move-file{cursor:move}.wcp-drop-hover-list a.folder-view{background:#008ec2;color:#fff;border:solid 1px #fff;position:relative}.tree-structure .folder-view{display:block;border:1px solid #dadce0;color:#404040;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;position:relative;cursor:pointer;background:#fff}.tree-structure .folder-view:hover{background:#008ec2;color:#fff}.wcp-drop-hover-list a.folder-view:before{width:100%;height:100%;content:"";position:absolute;top:-2px;left:-2px;border:solid 1px #008ec2;padding:1px;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px}.ui-draggable-dragging.wcp-move-file{z-index:5001;display:inline-block;border:solid 2px #0073aa;padding:5px 10px;border-radius:5px;background:#e4f6ff;z-index:2001;position:fixed!important;max-width:230px;overflow:hidden;width:auto!important}.ui-draggable-dragging.wcp-move-file span{display:block;float:left}.ui-draggable-dragging.wcp-move-file span.wcp-move{margin-right:5px;display:block;float:left}.wcp-container .route span.title-text{position:relative;top:auto;left:auto;display:inline-block;font-size:16px;line-height:30px;height:30px;width:calc(100% - 80px);overflow:hidden;white-space:nowrap}.ui-resizable-handle.ui-resizable-e{position:absolute;top:0;height:100%;height:100vh;width:1px;right:0;border-right:1px solid #ccc;cursor:col-resize}.ui-resizable-handle.ui-resizable-e:before,.ui-resizable-handle.ui-resizable-w:before{content:"";top:68px;width:3px;height:53px;position:absolute;border-left:solid 1px #ccc;border-right:solid 1px #ccc;left:-1px}.ui-resizable-handle.ui-resizable-w{position:absolute;top:0;height:100%;height:100vh;width:1px;left:0;border-right:1px solid #ccc;cursor:col-resize}div#custom-menu{padding-bottom:120px;padding-left:4px}.wcp-container .route span.star-icon{position:relative;top:2px;left:auto;float:right;font-family:folder-icon!important;speak:none;color:#ffc90e;display:none}.wcp-container .route span.update-inline-record{position:relative;left:auto;top:2px;float:right;width:0;height:22px;font-family:folder-icon!important;font-size:16px;overflow:hidden;transition:all .25s linear;-webkit-transition:all .25s linear;-moz-transition:all .25s linear}body:not(.no-hover-css) .wcp-container .route h3:hover>span.update-inline-record{width:18px}.wcp-container .route span.update-inline-record:after{content:"\e910"}.wcp-container .route.is-high>h3>span.star-icon{display:block}.wcp-container .route span.star-icon:after{content:"\e907"}.tree-structure li{display:block;width:16.667%;float:left;margin:0;padding:0}.tree-structure .folder-item{padding:8px;position:relative}.tree-structure .folder-view{display:block;border:1px solid #dadce0;color:#404040;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;position:relative;cursor:pointer;background:#fff}.tree-structure .folder-view span.item-name{display:block;padding:10px 25px 10px 50px;position:relative;width:100%;overflow:hidden;height:38px;font-size:16px;box-sizing:border-box}.folder-view span.item-name:before{content:"\e90d";font-family:folder-icon!important;position:absolute;left:15px;font-size:24px}.folder-view.is-high span.item-name:before{content:"\e900"}.folder-view.is-post span.item-name:before{content:"\e901"}.tree-structure span.folder-option{position:absolute;right:0;font-family:folder-icon!important;top:0;font-size:20px;line-height:38px;z-index:1;cursor:pointer;display:none}.tree-structure .folder-view:hover span.folder-option{display:block}.tree-structure span.folder-option:hover{color:#f51366}.tree-structure span.folder-option:after{content:"\e90a"}.tree-structure li{position:relative}.tree-structure{margin-left:-8px;margin-right:-8px}.tree-structure .folder-view span.folder-title{overflow:hidden;width:100%;height:18px;display:block}.swal2-popup .swal2-title{line-height:36px}.attachments-browser.ui-draggable-dragging .media-sidebar,.attachments-browser.ui-draggable-dragging .media-toolbar,.attachments-browser.ui-draggable-dragging .uploader-inline,.attachments-browser.ui-draggable-dragging ul.attachments{display:none}.attachments.ui-sortable.ui-draggable-dragging{z-index:5000}.selected-items{background:#0073aa;color:#fff;padding:10px 20px;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;margin-top:0;cursor:none;font-size:12px}.media-frame,.media-frame .attachments-browser,.media-frame-content{overflow:inherit}body.upload-php.eml-grid #wpbody{position:relative!important;top:0!important;bottom:auto!important;left:auto!important;right:auto!important;height:auto}#footer-thankyou{display:none}span.upgrade-message{padding:0 0 10px;background:#fff;display:inline-block;font-size:14px;color:#000}span.upgrade-message a.pink,span.upgrade-message span.pink{color:#ff5983;text-decoration:none;font-weight:700}.media-toolbar.sticky-media{position:fixed;top:32px;right:18px!important;left:auto}.media-position{width:1px;height:1px}.media-frame.mode-grid .media-toolbar{margin:0!important}.button-disabled{cursor:no-drop;pointer-events:none}.wcp-hide-show-buttons{position:absolute;top:25px;right:-20px}.wcp-hide-show-buttons .toggle-buttons{background:#f51366;color:#fff;display:inline-block;margin:0;padding:0;float:left;-webkit-border-top-right-radius:50%;-webkit-border-bottom-right-radius:50%;-moz-border-radius-topright:50%;-moz-border-radius-bottomright:50%;border-top-right-radius:50%;border-bottom-right-radius:50%;display:none;width:20px;height:20px;cursor:pointer;position:relative}.wcp-hide-show-buttons:hover .toggle-buttons:after{content:"";width:100%;height:100%;background:rgba(0,0,0,.1);position:absolute;top:0;left:0;-webkit-border-top-right-radius:50%;-webkit-border-bottom-right-radius:50%;-moz-border-radius-topright:50%;-moz-border-radius-bottomright:50%;border-top-right-radius:50%;border-bottom-right-radius:50%}.hide-folders-area .wcp-content{width:0!important}.hide-folders-area .wcp-container{display:none}.wcp-hide-show-buttons .toggle-buttons.active{display:block}#wcp-content.no-transition .wcp-container{display:none}button.button.organize-button{vertical-align:middle;text-decoration:none;display:inline-block;font-size:14px;padding:4px 10px;background:#f51366;color:#fff;border:solid 1px #f51366;border-radius:3px;line-height:14px;-webkit-box-shadow:0 3px 5px -3px #333;-moz-box-shadow:0 3px 5px -3px #333;box-shadow:0 3px 5px -3px #333;position:relative}button.button.organize-button:focus,button.button.organize-button:hover{color:#fff}button.button.organize-button:hover:after{content:"";width:100%;height:100%;background:rgba(0,0,0,.1);position:absolute;top:0;left:0}.tree-structure-content ul{margin:0;padding:0}.tree-structure-content{padding:10px 20px 10px;background:#fff;margin:10px 0 15px;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;border:solid 1px #ccc}.tree-structure-content .tree-structure{height:55px;overflow:hidden;transition:.1s;-webkit-transition:.1s;-moz-transition:.1s}.tree-structure-content.active .tree-structure{height:auto}.folders-toggle-button{height:15px;text-align:center;position:relative}.folders-toggle-button span{background:#f51366;color:#fff;height:20px;width:30px;text-align:center;display:block;margin:0 auto;position:absolute;left:0;right:0;bottom:-10px;cursor:pointer;font-family:dashicons;font-size:20px;line-height:20px}.folders-toggle-button span:after{content:"\f347"}.tree-structure-content.active .folders-toggle-button span:after{content:"\f343"}span.media-info-message{vertical-align:middle;line-height:20px;font-weight:700;color:#f51366;padding:0 0 10px 0;display:none!important}span.media-info-message.active{display:block!important}.folder-popup-form{position:fixed;width:100%;height:100%;background:rgba(0,0,0,.5);top:0;left:0;z-index:10001;display:none}.folder-popup-form.disabled{pointer-events:none}.popup-form-content{background:#fff;min-height:100px;width:400px;text-align:center;margin:0 auto;position:absolute;left:0;right:0;top:50%;transform:translate(0,-50%);-webkit-transform:translate(0,-50%);-moz-transform:translate(0,-50%);-o-transform:translate(0,-50%);-ms-transform:translate(0,-50%);padding:20px;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.folder-form-buttons a,.folder-form-buttons button{display:inline-block;padding:10px 20px;text-decoration:none;margin:10px 3px;font-size:18px;line-height:22px;border-radius:.25em;color:#fff;border:none}.folder-form-buttons a span,.folder-form-buttons button span{-webkit-animation:fa-spin .75s infinite linear;animation:fa-spin .75s infinite linear}[data-tooltip]{position:relative}[data-tooltip]::after,[data-tooltip]::before{text-transform:none;font-size:.9em;line-height:1;user-select:none;pointer-events:none;position:absolute;display:none;opacity:0}[data-tooltip]::before{content:'';border:5px solid transparent;z-index:1001}[data-tooltip]::after{content:attr(data-tooltip);font-family:Helvetica,sans-serif;text-align:center;min-width:3em;max-width:21em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:1ch 1.5ch;border-radius:.3ch;box-shadow:0 1em 2em -.5em rgba(0,0,0,.35);background:#333;color:#fff;z-index:1000}[data-tooltip]:hover::after,[data-tooltip]:hover::before{display:block;opacity:1}[data-tooltip]:not([flow])::before,[data-tooltip][flow^=up]::before{bottom:100%;border-bottom-width:0;border-top-color:#333}[data-tooltip]:not([flow])::after,[data-tooltip][flow^=up]::after{bottom:calc(100% + 5px)}[data-tooltip]:not([flow])::after,[data-tooltip]:not([flow])::before,[data-tooltip][flow^=up]::after,[data-tooltip][flow^=up]::before{left:50%;transform:translate(-50%,-.5em)}#remove-folder-item{width:126px!important}.wp-core-ui .button-primary.select-all-item-btn{margin:11px 11px 11px 0;display:none!important}.wp-core-ui .button-primary.select-all-item-btn.active{display:inline-block!important}.form-options li.last.folder-checkbox{padding:8px 0 0 6px}#custom-menu input.checkbox{display:none}#custom-menu.show-folder-checkbox input.checkbox{display:block;margin:5px 0 0 0}#custom-menu.show-folder-checkbox h3.title>.ui-icon>i,#custom-menu.show-folder-checkbox h3.title>.ui-icon>img{display:none!important}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.folder-form-buttons a:focus,.folder-form-buttons a:hover,.folder-form-buttons button:focus,.folder-form-buttons button:hover{color:#fff;background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.folder-form-buttons a:focus{outline:0;box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(50,100,150,.4)}.form-cancel-btn{background-color:#aaa}.form-submit-btn{background-color:#3085d6}.add-update-folder-title{display:block;position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word;line-height:30px}.folder-form-input input{width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;font-size:1.125em;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);box-sizing:border-box;height:2.625em;padding:0 .75em;margin:1em auto}.folder-form-message{font-size:16px;line-height:20px;margin:25px 0}.folder-form-errors{margin:0 0 10px 0;padding:8px 0;background:#ffe4e4;color:#a20000;display:none}.folder-form-errors.active{display:block}.sticky-menu #adminmenuwrap{position:relative!important}span.folder-loader-ajax{float:right;margin:0 8px 0 0;line-height:30px;display:none}.folder-loader-ajax.active{display:inline-block}@-webkit-keyframes scaleAnimation{0%{opacity:0;-webkit-transform:scale(1.5);transform:scale(1.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes scaleAnimation{0%{opacity:0;-webkit-transform:scale(1.5);transform:scale(1.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes drawCircle{0%{stroke-dashoffset:151px}100%{stroke-dashoffset:0}}@keyframes drawCircle{0%{stroke-dashoffset:151px}100%{stroke-dashoffset:0}}@-webkit-keyframes drawCheck{0%{stroke-dashoffset:36px}100%{stroke-dashoffset:0}}@keyframes drawCheck{0%{stroke-dashoffset:36px}100%{stroke-dashoffset:0}}@-webkit-keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}#successAnimationCircle{stroke-dasharray:151px 151px;stroke:#2ce0a7}#successAnimationCheck{stroke-dasharray:36px 36px;stroke:#2ce0a7}#successAnimationResult{fill:#2ce0a7;opacity:0}svg#successAnimation{width:34px;height:34px;padding:0;display:none;float:left}#successAnimation.active{display:inline-block}.folder-loader-ajax img{display:none}.folder-loader-ajax img.active{display:inline-block}#successAnimation.animated{-webkit-animation:1s ease-out 0s 1 both scaleAnimation;animation:1s ease-out 0s 1 both scaleAnimation}#successAnimation.animated #successAnimationCircle{-webkit-animation:1s cubic-bezier(.77,0,.175,1) 0s 1 both drawCircle,.3s linear .9s 1 both fadeOut;animation:1s cubic-bezier(.77,0,.175,1) 0s 1 both drawCircle,.3s linear .9s 1 both fadeOut}#successAnimation.animated #successAnimationCheck{-webkit-animation:1s cubic-bezier(.77,0,.175,1) 0s 1 both drawCheck,.3s linear .9s 1 both fadeOut;animation:1s cubic-bezier(.77,0,.175,1) 0s 1 both drawCheck,.3s linear .9s 1 both fadeOut}#successAnimation.animated #successAnimationResult{-webkit-animation:.3s linear .9s both fadeIn;animation:.3s linear .9s both fadeIn}.mCSB_scrollTools a+.mCSB_draggerContainer{margin:10px 0!important}.popup-folder-title{font-weight:700;font-size:24px;padding:0 0 20px 0}.select-box{padding:20px 0 10px 0}.select-box select{width:100%;max-width:300px}.actions #media_folder,select.media-select-folder{width:132px}select#media-attachment-taxonomy-filter{width:132px}.custom-media-select{float:right;padding:10px 0 0 0;display:none}.custom-media-select.active{display:block}.folder-progress{background:#b4b9be;border-radius:4px;margin:5px 0 0 0;position:relative}.folder-meter{height:20px;position:relative;background:#f1f1f1;padding:0;width:0%;border-radius:4px;-webkit-transition:all .2s linear;transition:all .2s linear}.folder-meter>span{display:block;height:100%;-webkit-box-shadow:inset 0 2px 9px rgba(255,255,255,.3),inset 0 -2px 6px rgba(0,0,0,.4);-moz-box-shadow:inset 0 2px 9px rgba(255,255,255,.3),inset 0 -2px 6px rgba(0,0,0,.4);box-shadow:inset 0 2px 9px rgba(255,255,255,.3),inset 0 -2px 6px rgba(0,0,0,.4);position:relative;overflow:hidden;border-radius:4px}.folder-animate>span>span,.folder-meter>span:after,.folder-progress:after{content:"";position:absolute;border-radius:4px;top:0;left:0;bottom:0;right:0;background-image:-webkit-gradient(linear,0 0,100% 100%,color-stop(.25,rgba(255,255,255,.2)),color-stop(.25,transparent),color-stop(.5,transparent),color-stop(.5,rgba(255,255,255,.2)),color-stop(.75,rgba(255,255,255,.2)),color-stop(.75,transparent),to(transparent));background-image:-moz-linear-gradient(-45deg,rgba(255,255,255,.2) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.2) 50%,rgba(255,255,255,.2) 75%,transparent 75%,transparent);z-index:1;-webkit-background-size:50px 50px;-moz-background-size:50px 50px;-webkit-animation:move 2s linear infinite;overflow:hidden}.folder-animate>span:after{display:none}@-webkit-keyframes move{0%{background-position:0 0}100%{background-position:50px 50px}}.orange-bg>span{background-color:#ff5983}.media-folder-loader{padding:10px 0 15px;display:none}.media-folder-loader>span{font-weight:700}@media screen and (max-width:1300px){.tree-structure li{width:20%}}@media screen and (max-width:960px){.wcp-content{left:36px}html[dir=rtl] .wcp-content{right:36px;left:auto}.tree-structure li{width:25%}}@media screen and (max-width:780px){.wcp-content{left:0}html[dir=rtl] .wcp-content{right:0}.tree-structure li{width:33.33%}}@media screen and (max-width:640px){.wcp-content{left:0;position:relative!important;width:100%!important;padding-bottom:100px;top:0;right:0;display:block}.ui-resizable-handle.ui-resizable-e{display:none!important}.hide-folders-area .wcp-container{display:block}.wcp-hide-show-buttons{display:none}.hide-folders-area .wcp-content{width:100%!important}body.wp-admin #wpcontent{padding:0!important}#wpbody-content{padding-bottom:30px}.tree-structure li{width:50%}}
1
+ .wcp-custom-menu{padding-left:0}.wcp-custom-menu{position:relative}.wcp-container ul{list-style:none}.wcp-container .route{position:relative;list-style-type:none;border:0;margin:0;padding:0;top:0;margin-top:0;max-height:100%!important;width:100%;border-radius:2px;z-index:-1;background:0 0}.wcp-container .route span{position:absolute;top:2px;left:0;z-index:10;width:20px;height:18px;text-indent:0;font-size:20px;background:no-repeat}.wcp-container .route .title{position:absolute;border:0;margin:0;padding:0;padding-top:0;height:30px;width:200px;text-indent:30px;background:0 0;border-radius:0;box-shadow:none;font-size:14px;line-height:26px;border-radius:4px;-webkit-border-radius:4px;-moz-border-radius:4px;overflow:hidden}.wcp-container .first-title{margin-left:10px}.wcp-container .space{position:relative;list-style-type:none;border:0;margin:0 0 0 20px;padding:0 0 30px 0;width:40px;top:30px;height:100%;z-index:1}.wcp-container .first-space{margin-left:10px;top:10px}i.fa-caret-right{transition:.1s;-webkit-transition:.1s;-moz-transition:.1s}li.active>span>i.fa-caret-right{transform:rotate(90deg);-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg)}li.active>span>i.fa-folder:before{content:"\f07c"}.has-sub-tree>ul.ui-sortable li{display:none}.has-sub-tree.active>ul.ui-sortable>li{display:block}.nav-icon{display:none;left:-20px!important}.has-sub-tree>.nav-icon{display:block}.wcp-content{position:fixed!important;top:32px;left:160px;bottom:0;width:305px;box-sizing:border-box;z-index:1;direction:ltr;transition:all .15s linear;-webkit-transition:all .15s linear;-moz-transition:all .15s linear}html[dir=rtl] .wcp-content{left:auto;right:160px}body.folded .wcp-content{left:36px}html[dir=rtl] body.folded .wcp-content{left:auto;right:36px}body.wp-admin #wpcontent{padding-left:310px;transition:all .15s linear;-webkit-transition:all .15s linear;-moz-transition:all .15s linear}html[dir=rtl] body.wp-admin #wpcontent{padding-left:0;padding-right:320px}.wcp-container{padding:20px 20px 20px 16px}.form-title{font-size:23px;font-weight:400;margin:0;padding:0 0 10px 0;line-height:29px;min-height:36px}.form-operations{border:solid 1px #e5e5e5;border-right:none;margin-bottom:20px}.form-operations ul{margin:0;padding:0}.form-operations li{display:block;float:left;width:20%;text-align:center;background:#fff;margin:0;padding:0}.form-operations li a{display:block;padding:10px 0;border-right:solid 1px #e5e5e5;font-size:16px;color:#727272}.clearfix{clear:both}.wcp-parent-data{position:relative}.wcp-parent{position:absolute;left:-21px;font-weight:700;font-size:14px}.wcp-parent .fa{font-size:18px;margin-right:8px}.wcp-form-data{background:#fff;border:solid 1px #f1f1f1;padding:15px;display:none;margin-bottom:20px}.wcp-form-title{color:#727272;font-size:14px;text-transform:uppercase;padding:0 0 10px 0}.wcp-form-data .form-field{padding:0 0 10px 0}.wcp-form-data .form-field input,.wcp-form-data .form-field select{width:100%}button#wcp-save-folder{float:right}.wcp-form-message span{display:block;padding:5px 10px;background:#ffabab;margin-bottom:10px;color:#000;border:solid 1px #8c0000;border-radius:4px}.wcp-container .route.active-item>h3.title{background:#008ec2;color:#fff;border-radius:4px}.wcp-container .route span.ui-icon{line-height:24px;font-size:18px;cursor:move;left:5px;top:2px;height:26px}.route.active-item>span.ui-icon{background:#008ec2;color:#fff}#custom-menu.active>ul>li.route{display:block}.wcp-parent.active>i.fa-caret-right{transform:rotate(90deg);-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg)}.wcp-parent.active>i.fa-folder:before{content:"\f07c"}.wcp-container .route .title img{display:none;width:14px;height:14px;margin:5px auto 0}.wcp-container .route .title:hover{background:#dfdfdf;cursor:pointer}.wcp-container .route .title.wcp-drop-hover img.move-folder-icon,body:not(.no-hover-css) .wcp-container .route .title:hover img.move-folder-icon{display:block}.wcp-container .route .title.wcp-drop-hover .ui-icon i,.wcp-container .route .title.wcp-drop-hover .ui-icon img.folder-sticky-icon,body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon i,body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon img.folder-sticky-icon{display:none}.route.is-sticky>h3.title>.ui-icon>.folder-sticky-icon{display:block;width:100%;height:auto;margin:3px auto 0}.route.is-sticky.active-item>h3.title>.ui-icon>.folder-sticky-icon{filter:invert(100%);-webkit-filter:invert(100%)}.route.is-sticky>h3.title>.ui-icon>i{display:none}.wcp-container .route .title.wcp-drop-hover img{filter:invert(100%);-webkit-filter:invert(100%)}.add-new-folder{text-decoration:none;display:block;float:right;font-size:14px;padding:4px 10px;background:#f51366;color:#fff;border:solid 1px #f51366;border-radius:3px;line-height:24px;-webkit-box-shadow:0 3px 5px -3px #333;-moz-box-shadow:0 3px 5px -3px #333;box-shadow:0 3px 5px -3px #333;position:relative}.add-new-folder:focus,.add-new-folder:hover{color:#fff}.add-new-folder:hover:after{content:"";width:100%;height:100%;background:rgba(0,0,0,.1);position:absolute;top:0;left:0}.add-new-folder span{display:block;float:left;line-height:20px;font-size:14px;margin-right:5px}.add-new-folder span.folder-icon-create_new_folder{font-size:20px}.form-options{background:#fff;padding:10px 0 0 10px;margin:0 0}.form-options ul{margin:0;padding:0}.form-options li{display:inline-block;margin:0 5px 0 0;vertical-align:top}.form-options li.last{margin:0}.form-options li a{display:inline-block;text-decoration:none;padding:5px 10px;color:#000;background:#ccc;box-shadow:0 1px 0 #ccc;vertical-align:middle;border:solid 1px #ccc;border-radius:3px;margin:0 0 12px 0}.form-options li.last a{padding:3px}.form-options li.last a span.icon{font-size:28px;line-height:22px}a#expand-collapse-list.all-open span:before{content:"\e911"}.form-options li a:hover{background:#404040;color:#fff;border:solid 1px #404040}.form-options span.icon{font-size:18px;display:inline-block;vertical-align:top}.un-categorised-items{border-radius:3px}.header-posts a,.un-categorised-items a{color:#444;padding:7px;border-radius:3px;display:block;text-decoration:none;font-size:14px;line-height:18px}.header-posts a:hover,.un-categorised-items.active-item,.un-categorised-items:hover{background:#dfdfdf;border-radius:3px}.header-posts a.active-item,.un-categorised-items.active-item{background:#008ec2!important;color:#fff!important}.un-categorised-items.active-item a{color:#fff!important}.header-posts a.active-item span.total-count,.un-categorised-items.active-item a span{color:#444!important}span.total-count{float:right;background:#fff;padding:0 5px;border:solid 1px #ccc;font-size:10px;line-height:16px;border-radius:2px}.wcp-icon{display:inline-block;font-size:16px;vertical-align:top;margin-right:3px}#custom-menu .wcp-icon{font-size:20px;line-height:24px}.route.active>.nav-icon>.folder-icon-arrow_right{transform:rotate(90deg);-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg)}.route.active>.ui-icon>.folder-icon-folder:before{content:"\e90c"}.wcp-container .route span.total-count{position:relative;font-size:8px;float:right;text-align:center;width:auto;background:#fff;display:block;margin:4px 3px 3px 3px;color:#23282d!important;line-height:16px;height:16px}.dynamic-menu{position:absolute;left:50px;background:#fff;width:170px;padding:0;z-index:101;-webkit-box-shadow:0 0 5px 0 rgba(0,0,0,.25);-moz-box-shadow:0 0 5px 0 rgba(0,0,0,.25);box-shadow:0 0 5px 0 rgba(0,0,0,.25)}.sticky-folders .dynamic-menu{left:auto;right:50px}.dynamic-menu li{position:relative;width:100%;display:inline-block!important;padding:2px 0;margin:0}.dynamic-menu a{text-decoration:none;color:#848484;position:relative;display:block;padding:5px 10px;line-height:18px;white-space:nowrap}.dynamic-menu ul>li>a>span,.dynamic-menu ul>li>a>span span{position:relative!important;display:inline-block;vertical-align:top;margin-right:5px;top:0!important}.dynamic-menu ul>li>a>span span{top:auto;height:auto;width:auto;margin:0;left:auto;vertical-align:baseline;display:inline}.dynamic-menu li.new-folder{border-bottom:solid 1px #d8d8d8}.dynamic-menu a.active,.dynamic-menu a:hover{background:#efefef;color:#000}.dynamic-menu ul li span{font-size:20px;vertical-align:middle}.dynamic-menu ul li span.sticky-folder-icon{width:20px}.wcp-form-input{padding-left:35px;box-sizing:border-box;position:relative}.wcp-form-input input{width:100%}.wcp-form-btn{padding:4px 0 4px 2px}.wcp-form-input:before{content:"\e90d";font-family:folder-icon!important;speak:none;position:absolute;left:0;font-size:28px;top:5px}.add-new-folder-btn{margin-right:5px!important}.form-loader{width:100%;height:5px;margin:0 0 10px}.form-loader-count{width:0;height:5px;background:url(../images/form-loader.png);transition:all 2.5s linear;-webkit-transition:all 2s linear;-moz-transition:all 2.5s linear}.route.is-high>.ui-icon>i:before{content:"\e900"!important}.route.is-high.active>.ui-icon>i:before{content:"\e90c"!important;z-index:11;color:#444;font-size:20px}.route.is-high.active>.ui-icon>i:after{content:"\e907";margin-left:-1.2em;color:#444;font-size:11px;top:1px;position:absolute}.route.is-high.active.active-item>.ui-icon>i:after,.route.is-high.active.active-item>.ui-icon>i:before{color:#fff}li.active-menu{z-index:2!important}.wp-list-table th{width:auto!important}.wp-list-table #wcp_move{width:20px!important}td.wcp_move.column-wcp_move{vertical-align:middle}.wp-list-table tr td .wcp-move-file{vertical-align:middle;opacity:0}.wp-list-table td.wcp_move.column-wcp_move.wcp-draggable,.wp-list-table tr:hover td .wcp-move-file{opacity:1}.wcp-drop-hover{background:#0073aa!important;z-index:2!important;color:#fff!important}.wcp-drop-hover span{color:#fff!important}.ui-draggable-dragging{z-index:1051!important}.wcp-hover-list{background:#008ec2!important;color:#fff;position:relative}.wcp-hover-list a{color:#fff}.wcp-hover-list span.total-count{color:#000}span.wcp-item{display:none}.wcp-move-file{cursor:move}.wcp-drop-hover-list a.folder-view{background:#008ec2;color:#fff;border:solid 1px #fff;position:relative}.tree-structure .folder-view{display:block;border:1px solid #dadce0;color:#404040;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;position:relative;cursor:pointer;background:#fff}.tree-structure .folder-view:hover{background:#008ec2;color:#fff}.wcp-drop-hover-list a.folder-view:before{width:100%;height:100%;content:"";position:absolute;top:-2px;left:-2px;border:solid 1px #008ec2;padding:1px;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px}.ui-draggable-dragging.wcp-move-file{z-index:5001;display:inline-block;border:solid 2px #0073aa;padding:5px 10px;border-radius:5px;background:#e4f6ff;z-index:2001;position:fixed!important;max-width:230px;overflow:hidden;width:auto!important}.ui-draggable-dragging.wcp-move-file span{display:block;float:left}.ui-draggable-dragging.wcp-move-file span.wcp-move{margin-right:5px;display:block;float:left}.wcp-container .route span.title-text{position:relative;top:auto;left:auto;display:inline-block;font-size:16px;line-height:30px;height:30px;width:calc(100% - 80px);overflow:hidden;white-space:nowrap}.ui-resizable-handle.ui-resizable-e{position:absolute;top:0;height:100%;height:100vh;width:1px;right:0;border-right:1px solid #ccc;cursor:col-resize}.ui-resizable-handle.ui-resizable-e:before,.ui-resizable-handle.ui-resizable-w:before{content:"";top:68px;width:3px;height:53px;position:absolute;border-left:solid 1px #ccc;border-right:solid 1px #ccc;left:-1px}.ui-resizable-handle.ui-resizable-w{position:absolute;top:0;height:100%;height:100vh;width:1px;left:0;border-right:1px solid #ccc;cursor:col-resize}div#custom-menu{padding-bottom:150px;padding-left:4px}.sticky-folders li a span.star-icon,.wcp-container .route span.star-icon{position:relative;top:2px;left:auto;float:right;font-family:folder-icon!important;speak:none;color:#ffc90e;display:none;font-size:20px;font-weight:700}.sticky-folders li a span.update-inline-record,.wcp-container .route span.update-inline-record{position:relative;left:auto;top:2px;float:right;width:0;height:22px;font-family:folder-icon!important;font-size:16px;overflow:hidden;transition:all .25s linear;-webkit-transition:all .25s linear;-moz-transition:all .25s linear}body:not(.no-hover-css) .sticky-folders li a:hover span.update-inline-record,body:not(.no-hover-css) .wcp-container .route h3:hover>span.update-inline-record{width:18px}.sticky-folders li a:hover .folder-count{margin:0 3px 0 0}.sticky-folders li a span.update-inline-record:after,.wcp-container .route span.update-inline-record:after{content:"\e910"}.sticky-folders li.is-high a span.star-icon,.wcp-container .route.is-high>h3>span.star-icon{display:block}.sticky-folders li a span.star-icon:after,.wcp-container .route span.star-icon:after{content:"\e907"}.tree-structure li{display:block;width:auto;float:left;margin:0;padding:0}.tree-structure .folder-item{padding:8px;position:relative}.tree-structure .folder-view{display:block;border:1px solid #dadce0;color:#404040;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;position:relative;cursor:pointer;background:#fff}.tree-structure .folder-view span.item-name{display:block;padding:10px 25px 10px 50px;position:relative;width:100%;overflow:hidden;height:38px;font-size:16px;box-sizing:border-box}.folder-view span.item-name:before{content:"\e90d";font-family:folder-icon!important;position:absolute;left:15px;font-size:24px}.folder-view.is-high span.item-name:before{content:"\e900"}.folder-view.is-post span.item-name:before{content:"\e901"}.tree-structure span.folder-option{position:absolute;right:0;font-family:folder-icon!important;top:0;font-size:20px;line-height:38px;z-index:1;cursor:pointer;display:none}.tree-structure .folder-view:hover span.folder-option{display:block}.tree-structure span.folder-option:hover{color:#f51366}.tree-structure span.folder-option:after{content:"\e90a"}.tree-structure li{position:relative}.tree-structure{margin-left:-8px;margin-right:-8px}.tree-structure .folder-view span.folder-title{overflow:hidden;width:100%;height:18px;display:block}.swal2-popup .swal2-title{line-height:36px}.attachments-browser.ui-draggable-dragging .media-sidebar,.attachments-browser.ui-draggable-dragging .media-toolbar,.attachments-browser.ui-draggable-dragging .uploader-inline,.attachments-browser.ui-draggable-dragging ul.attachments{display:none}.attachments.ui-sortable.ui-draggable-dragging{z-index:5000}.selected-items{background:#0073aa;color:#fff;padding:10px 20px;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;margin-top:0;cursor:none;font-size:12px}.media-frame,.media-frame .attachments-browser,.media-frame-content{overflow:inherit}.mCS-3d-dark.mCSB_scrollTools .mCSB_draggerRail,.mCS-3d.mCSB_scrollTools .mCSB_draggerRail{width:2px!important;background-color:#0073aa!important;background-color:rgba(0,115,170,.6)!important;box-shadow:none!important}.mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{background-color:#0073aa!important}.mCSB_outside+.mCSB_scrollTools{right:-15px!important}body.upload-php.eml-grid #wpbody{position:relative!important;top:0!important;bottom:auto!important;left:auto!important;right:auto!important;height:auto}#footer-thankyou{display:none}span.upgrade-message{padding:0 0 10px;background:#fff;display:inline-block;font-size:14px;color:#000}span.upgrade-message a.pink,span.upgrade-message span.pink{color:#ff5983;text-decoration:none;font-weight:700}.media-toolbar.sticky-media{position:fixed;top:32px;right:18px!important;left:auto}.media-position{width:1px;height:1px}.media-frame.mode-grid .media-toolbar{margin:0!important}.button-disabled{cursor:no-drop;pointer-events:none}.wcp-hide-show-buttons{position:absolute;top:25px;right:-20px;z-index:10001}html[dir=rtl] .wcp-hide-show-buttons{left:-20px;right:auto}.wcp-hide-show-buttons .toggle-buttons{background:#f51366;color:#fff;display:inline-block;margin:0;padding:0;float:left;-webkit-border-top-right-radius:50%;-webkit-border-bottom-right-radius:50%;-moz-border-radius-topright:50%;-moz-border-radius-bottomright:50%;border-top-right-radius:50%;border-bottom-right-radius:50%;display:none;width:20px;height:20px;cursor:pointer;position:relative}.wcp-hide-show-buttons:hover .toggle-buttons:after{content:"";width:100%;height:100%;background:0 0;position:absolute;top:0;left:0;-webkit-border-top-right-radius:50%;-webkit-border-bottom-right-radius:50%;-moz-border-radius-topright:50%;-moz-border-radius-bottomright:50%;border-top-right-radius:50%;border-bottom-right-radius:50%}html[dir=rtl] .wcp-hide-show-buttons .toggle-buttons{border-radius:0;-webkit-border-radius:0;-moz-border-radius:0;-webkit-border-top-left-radius:50%;-webkit-border-bottom-left-radius:50%;-moz-border-radius-top-left:50%;-moz-border-radius-bottom-left:50%;border-top-left-radius:50%;border-bottom-left-radius:50%}html[dir=rtl] .wcp-hide-show-buttons .toggle-buttons span{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.hide-folders-area .wcp-content{width:0!important}.hide-folders-area .wcp-container{display:none}.wcp-hide-show-buttons .toggle-buttons.active{display:block}#wcp-content.no-transition .wcp-container{display:none}button.button.organize-button{vertical-align:middle;text-decoration:none;display:inline-block;font-size:14px;padding:4px 10px;background:#f51366;color:#fff;border:solid 1px #f51366;border-radius:3px;line-height:14px;-webkit-box-shadow:0 3px 5px -3px #333;-moz-box-shadow:0 3px 5px -3px #333;box-shadow:0 3px 5px -3px #333;position:relative}button.button.organize-button:focus,button.button.organize-button:hover{color:#fff}button.button.organize-button:hover:after{content:"";width:100%;height:100%;background:rgba(0,0,0,.1);position:absolute;top:0;left:0}.tree-structure-content ul{margin:0;padding:0}.tree-structure-content{padding:10px 20px 10px;background:#fff;margin:10px 0 15px;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;border:solid 1px #ccc}.tree-structure-content .tree-structure{height:55px;overflow:hidden;transition:.1s;-webkit-transition:.1s;-moz-transition:.1s}.tree-structure-content.active .tree-structure{height:auto}.folders-toggle-button{height:15px;text-align:center;position:relative}.folders-toggle-button span{background:#f51366;color:#fff;height:20px;width:30px;text-align:center;display:block;margin:0 auto;position:absolute;left:0;right:0;bottom:-10px;cursor:pointer;font-family:dashicons;font-size:20px;line-height:20px}.folders-toggle-button span:after{content:"\f347"}.tree-structure-content.active .folders-toggle-button span:after{content:"\f343"}span.media-info-message{vertical-align:middle;line-height:20px;font-weight:700;color:#f51366;padding:0 0 10px 0;display:none!important}span.media-info-message.active{display:block!important}.folder-popup-form{position:fixed;width:100%;height:100%;background:rgba(0,0,0,.5);top:0;left:0;z-index:10001;display:none}.folder-popup-form.disabled{pointer-events:none}.popup-form-content{background:#fff;min-height:100px;width:400px;text-align:center;margin:0 auto;position:absolute;left:0;right:0;top:50%;transform:translate(0,-50%);-webkit-transform:translate(0,-50%);-moz-transform:translate(0,-50%);-o-transform:translate(0,-50%);-ms-transform:translate(0,-50%);padding:20px;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.folder-form-buttons a,.folder-form-buttons button{display:inline-block;padding:10px 20px;text-decoration:none;margin:10px 3px;font-size:18px;line-height:22px;border-radius:.25em;color:#fff;border:none}.folder-form-buttons a span,.folder-form-buttons button span{-webkit-animation:fa-spin .75s infinite linear;animation:fa-spin .75s infinite linear}[data-tooltip]{position:relative}[data-tooltip]::after,[data-tooltip]::before{text-transform:none;font-size:.9em;line-height:1;user-select:none;pointer-events:none;position:absolute;display:none;opacity:0}[data-tooltip]::before{content:'';border:5px solid transparent;z-index:1001}[data-tooltip]::after{content:attr(data-tooltip);font-family:Helvetica,sans-serif;text-align:center;min-width:3em;max-width:21em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:1ch 1.5ch;border-radius:.3ch;box-shadow:0 1em 2em -.5em rgba(0,0,0,.35);background:#333;color:#fff;z-index:1000}[data-tooltip]:hover::after,[data-tooltip]:hover::before{display:block;opacity:1}[data-tooltip]:not([flow])::before,[data-tooltip][flow^=up]::before{bottom:100%;border-bottom-width:0;border-top-color:#333}[data-tooltip]:not([flow])::after,[data-tooltip][flow^=up]::after{bottom:calc(100% + 5px)}[data-tooltip]:not([flow])::after,[data-tooltip]:not([flow])::before,[data-tooltip][flow^=up]::after,[data-tooltip][flow^=up]::before{left:50%;transform:translate(-50%,-.5em)}#remove-folder-item{width:126px!important}.wp-core-ui .button-primary.select-all-item-btn{margin:11px 11px 11px 0;display:none!important}.wp-core-ui .button-primary.select-all-item-btn.active{display:inline-block!important}.form-options li.last.folder-checkbox{padding:8px 0 0 6px}#custom-menu input.checkbox{display:none}#custom-menu.show-folder-checkbox input.checkbox{display:block;margin:5px 0 0 0}#custom-menu.show-folder-checkbox h3.title>.ui-icon>i,#custom-menu.show-folder-checkbox h3.title>.ui-icon>img{display:none!important}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.folder-form-buttons a:focus,.folder-form-buttons a:hover,.folder-form-buttons button:focus,.folder-form-buttons button:hover{color:#fff;background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.folder-form-buttons a:focus{outline:0;box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(50,100,150,.4)}.form-cancel-btn{background-color:#aaa}.form-submit-btn{background-color:#3085d6}.add-update-folder-title{display:block;position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word;line-height:30px}.folder-form-input input{width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;font-size:1.125em;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);box-sizing:border-box;height:2.625em;padding:0 .75em;margin:1em auto}.folder-form-message{font-size:16px;line-height:20px;margin:25px 0}.folder-form-errors{margin:0 0 10px 0;padding:8px 0;background:#ffe4e4;color:#a20000;display:none}.folder-form-errors.active{display:block}.sticky-menu #adminmenuwrap{position:relative!important}span.folder-loader-ajax{float:right;margin:0 8px 0 0;line-height:30px;display:none}.folder-loader-ajax.active{display:inline-block}@-webkit-keyframes scaleAnimation{0%{opacity:0;-webkit-transform:scale(1.5);transform:scale(1.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes scaleAnimation{0%{opacity:0;-webkit-transform:scale(1.5);transform:scale(1.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes drawCircle{0%{stroke-dashoffset:151px}100%{stroke-dashoffset:0}}@keyframes drawCircle{0%{stroke-dashoffset:151px}100%{stroke-dashoffset:0}}@-webkit-keyframes drawCheck{0%{stroke-dashoffset:36px}100%{stroke-dashoffset:0}}@keyframes drawCheck{0%{stroke-dashoffset:36px}100%{stroke-dashoffset:0}}@-webkit-keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}#successAnimationCircle{stroke-dasharray:151px 151px;stroke:#2ce0a7}#successAnimationCheck{stroke-dasharray:36px 36px;stroke:#2ce0a7}#successAnimationResult{fill:#2ce0a7;opacity:0}svg#successAnimation{width:34px;height:34px;padding:0;display:none;float:left}#successAnimation.active{display:inline-block}.folder-loader-ajax img{display:none}.folder-loader-ajax img.active{display:inline-block}#successAnimation.animated{-webkit-animation:1s ease-out 0s 1 both scaleAnimation;animation:1s ease-out 0s 1 both scaleAnimation}#successAnimation.animated #successAnimationCircle{-webkit-animation:1s cubic-bezier(.77,0,.175,1) 0s 1 both drawCircle,.3s linear .9s 1 both fadeOut;animation:1s cubic-bezier(.77,0,.175,1) 0s 1 both drawCircle,.3s linear .9s 1 both fadeOut}#successAnimation.animated #successAnimationCheck{-webkit-animation:1s cubic-bezier(.77,0,.175,1) 0s 1 both drawCheck,.3s linear .9s 1 both fadeOut;animation:1s cubic-bezier(.77,0,.175,1) 0s 1 both drawCheck,.3s linear .9s 1 both fadeOut}#successAnimation.animated #successAnimationResult{-webkit-animation:.3s linear .9s both fadeIn;animation:.3s linear .9s both fadeIn}.mCSB_scrollTools a+.mCSB_draggerContainer{margin:10px 0!important}.popup-folder-title{font-weight:700;font-size:24px;padding:0 0 20px 0}.select-box{padding:20px 0 10px 0}.select-box select{width:100%;max-width:300px}.actions #media_folder,select.media-select-folder{width:132px}select#media-attachment-taxonomy-filter{width:132px}.custom-media-select{float:right;padding:10px 0 0 0;display:none}.custom-media-select.active{display:block}.folder-progress{background:#b4b9be;border-radius:4px;margin:5px 0 0 0;position:relative}.folder-meter{height:20px;position:relative;background:#f1f1f1;padding:0;width:0%;border-radius:4px;-webkit-transition:all .2s linear;transition:all .2s linear}.folder-meter>span{display:block;height:100%;-webkit-box-shadow:inset 0 2px 9px rgba(255,255,255,.3),inset 0 -2px 6px rgba(0,0,0,.4);-moz-box-shadow:inset 0 2px 9px rgba(255,255,255,.3),inset 0 -2px 6px rgba(0,0,0,.4);box-shadow:inset 0 2px 9px rgba(255,255,255,.3),inset 0 -2px 6px rgba(0,0,0,.4);position:relative;overflow:hidden;border-radius:4px}.folder-animate>span>span,.folder-meter>span:after,.folder-progress:after{content:"";position:absolute;border-radius:4px;top:0;left:0;bottom:0;right:0;background-image:-webkit-gradient(linear,0 0,100% 100%,color-stop(.25,rgba(255,255,255,.2)),color-stop(.25,transparent),color-stop(.5,transparent),color-stop(.5,rgba(255,255,255,.2)),color-stop(.75,rgba(255,255,255,.2)),color-stop(.75,transparent),to(transparent));background-image:-moz-linear-gradient(-45deg,rgba(255,255,255,.2) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.2) 50%,rgba(255,255,255,.2) 75%,transparent 75%,transparent);z-index:1;-webkit-background-size:50px 50px;-moz-background-size:50px 50px;-webkit-animation:move 2s linear infinite;overflow:hidden}.folder-animate>span:after{display:none}@-webkit-keyframes move{0%{background-position:0 0}100%{background-position:50px 50px}}.orange-bg>span{background-color:#ff5983}.media-folder-loader{padding:10px 0 15px;display:none}.media-folder-loader>span{font-weight:700}.sticky-folders{display:none;padding:0 0 5px;margin:0 0 5px;border-bottom:solid 1px #ccc}.top-settings{padding:0 0 5px;margin:0 0 5px;border-bottom:solid 1px #ccc}.sticky-folders.active{display:block}.sticky-folders ul{margin:0;padding:0}.sticky-folders>ul>li{display:block;margin:0;padding:0}.sticky-folders>ul>li>a{display:block;color:#444;padding:7px;border-radius:3px;text-decoration:none;font-size:16px;line-height:18px}.sticky-folders ul li a.active,.sticky-folders ul li a:hover{background:#dfdfdf;border-radius:3px}.sticky-folders ul li a.active-item{background-color:#008ec2!important;color:#fff}.sticky-folders ul li a.active-item img{filter:invert(100%);-webkit-filter:invert(100%)}.sticky-folders ul li a span{display:inline-block;vertical-align:middle;line-height:18px}.sticky-folders ul li a span.sticky-icon{width:18px;height:18px;margin-right:3px}.sticky-folders ul li a span.sticky-icon img{width:100%;height:100%}.sticky-wcp-custom-form a:focus{box-shadow:none;outline:0}span.folder-count{float:right;background:#fff;padding:0 5px;border:solid 1px #ccc;font-size:10px;line-height:16px;border-radius:2px;color:#444!important}span.folder-count:empty{display:none}.sticky-title{font-size:16px;font-weight:700;padding:7px}.sticky-title img{display:inline-block;vertical-align:middle;height:20px;width:20px}.sticky-folder-icon img{width:100%;filter:invert(50%);-webkit-filter:invert(50%)}.dynamic-menu .sticky-folder:hover img{filter:invert(0);-webkit-filter:invert(0)}@media screen and (max-width:960px){.wcp-content{left:36px}html[dir=rtl] .wcp-content{right:36px;left:auto}}@media screen and (max-width:780px){.wcp-content{left:0}html[dir=rtl] .wcp-content{right:0}}@media screen and (max-width:640px){.wcp-content{left:0;position:relative!important;width:100%!important;padding-bottom:100px;top:0;right:0;display:block}.ui-resizable-handle.ui-resizable-e{display:none!important}.hide-folders-area .wcp-container{display:block}.wcp-hide-show-buttons{display:none}.hide-folders-area .wcp-content{width:100%!important}body.wp-admin #wpcontent{padding:0!important}#wpbody-content{padding-bottom:30px}}
assets/css/media.css CHANGED
@@ -1 +1 @@
1
- .media-modal-content .attachments-browser .media-toolbar-secondary{max-width:66%;width:66%}.media-modal-content .media-frame select.attachment-filters{width:28%!important}#media-attachment-taxonomy-filter,select.media-select-folder{border:solid 1px #ff5983;color:#ff5983;font-weight:700}#media-attachment-taxonomy-filter option,select.media-select-folder option{color:#000}#media-attachment-taxonomy-filter option:first-child,select.media-select-folder option:first-child{font-weight:700}.media-frame .uploader-inline{z-index:1}#wp-media-grid .media-toolbar-secondary{float:left;height:100%;padding:0 0 10px 0}
1
+ .media-modal-content .attachments-browser .media-toolbar-secondary{max-width:66%;width:66%}.media-modal-content .media-frame select.attachment-filters{width:28%!important}#media-attachment-taxonomy-filter,select.media-select-folder{border:solid 1px #ff5983;color:#ff5983;font-weight:700}#media-attachment-taxonomy-filter option,select.media-select-folder option{color:#000}#media-attachment-taxonomy-filter option:first-child,select.media-select-folder option:first-child{font-weight:700}.media-frame .uploader-inline{z-index:1}#wp-media-grid .media-toolbar-secondary{float:left;height:100%;padding:0 0 10px 0}.media-popup-form{background:#fff;min-height:100px;width:400px;text-align:center;margin:0 auto;position:absolute;left:0;right:0;top:50%;transform:translate(0,-50%);-webkit-transform:translate(0,-50%);-moz-transform:translate(0,-50%);-o-transform:translate(0,-50%);-ms-transform:translate(0,-50%);padding:20px;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.media-popup-form .add-update-folder-title{display:block;position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word;line-height:30px}.media-popup-form .folder-form-input input{width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;font-size:1.125em;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);box-sizing:border-box;height:2.625em;padding:0 .75em;margin:1em auto}.media-popup-form .folder-form-errors{margin:0 0 10px 0;padding:8px 0;background:#ffe4e4;color:#a20000;display:none}.media-popup-form .folder-form-buttons a,.media-popup-form .folder-form-buttons button{display:inline-block;padding:10px 20px;text-decoration:none;margin:10px 3px;font-size:18px;line-height:22px;border-radius:.25em;color:#fff;border:none;cursor:pointer}.media-popup-form .form-submit-btn{background-color:#3085d6}.media-popup-form .folder-form-buttons a.remove-media-form{background:silver}.media-popup-form .folder-form-buttons button:hover{color:#fff;background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.media-popup-form .folder-form-message{font-size:16px;line-height:20px;margin:25px 0}.folder-media-popup-form{position:fixed;top:0;left:0;z-index:1000001;width:100%;height:100vh;background:rgba(0,0,0,.25)}.form-cancel-btn{background-color:#aaa}@-webkit-keyframes rotation{from{-webkit-transform:rotate(0)}to{-webkit-transform:rotate(359deg)}}.spinner-border{display:inline-block;width:16px;height:16px;vertical-align:text-bottom;border:3px solid #fff;border-right-color:transparent;border-radius:50%;-webkit-animation:rotation .5s infinite linear;animation:rotation .5s infinite linear}
assets/images/pin.png ADDED
Binary file
assets/js/custom.js CHANGED
@@ -32,6 +32,15 @@ jQuery(document).ready(function(){
32
  // return false;
33
  //});
34
 
 
 
 
 
 
 
 
 
 
35
  if(wcp_settings.page_url != wcp_settings.current_url) {
36
  folderCurrentURL = wcp_settings.current_url;
37
  }
@@ -372,6 +381,15 @@ function triggerInlineUpdate() {
372
  inlineEditPost.revert(thisID);
373
  });
374
  }
 
 
 
 
 
 
 
 
 
375
  }
376
 
377
  function set_default_folders(post_id) {
@@ -1276,6 +1294,7 @@ jQuery(document).ready(function(){
1276
  menuHtml = "<div class='dynamic-menu'><ul>" +
1277
  "<li class='new-folder'><a href='javascript:;'><span class='folder-icon-create_new_folder'></span> New Folder</a></li>" +
1278
  "<li class='rename-folder'><a href='javascript:;'><span class='folder-icon-border_color'><span class='path1'></span><span class='path2'></span></span> Rename</a></li>" +
 
1279
  "<li class='mark-folder'><a href='javascript:;'><span class='folder-icon-star_rate'></span>" + ((isHigh) ? " Remove Star" : "Add a Star") + "</a></li>";
1280
 
1281
  /* checking for attachments */
@@ -1501,6 +1520,7 @@ jQuery(document).ready(function(){
1501
  menuHtml = "<div class='dynamic-menu'><ul>" +
1502
  "<li class='new-folder'><a href='javascript:;'><span class='folder-icon-create_new_folder'></span> New Folder</a></li>" +
1503
  "<li class='rename-folder'><a href='javascript:;'><span class='folder-icon-border_color'><span class='path1'></span><span class='path2'></span></span> Rename</a></li>" +
 
1504
  "<li class='mark-folder'><a href='javascript:;'><span class='folder-icon-star_rate'></span>" + ((isHigh) ? " Remove Star" : "Add a Star") + "</a></li>";
1505
 
1506
  hasPosts = parseInt(jQuery(this).closest("li.route").find("h3.title:first > .total-count").text());
32
  // return false;
33
  //});
34
 
35
+ if(wcp_settings.post_type == "attachment") {
36
+ if(!jQuery(".move-to-folder-top").length) {
37
+ jQuery("#bulk-action-selector-top").append("<option class='move-to-folder-top' value='move_to_folder'>Move to Folder</option>");
38
+ }
39
+ if(!jQuery(".move-to-folder-bottom").length) {
40
+ jQuery("#bulk-action-selector-bottom").append("<option class='move-to-folder-bottom' value='move_to_folder'>Move to Folder</option>");
41
+ }
42
+ }
43
+
44
  if(wcp_settings.page_url != wcp_settings.current_url) {
45
  folderCurrentURL = wcp_settings.current_url;
46
  }
381
  inlineEditPost.revert(thisID);
382
  });
383
  }
384
+
385
+ if(wcp_settings.post_type == "attachment") {
386
+ if(!jQuery(".move-to-folder-top").length) {
387
+ jQuery("#bulk-action-selector-top").append("<option class='move-to-folder-top' value='move_to_folder'>Move to Folder</option>");
388
+ }
389
+ if(!jQuery(".move-to-folder-bottom").length) {
390
+ jQuery("#bulk-action-selector-bottom").append("<option class='move-to-folder-bottom' value='move_to_folder'>Move to Folder</option>");
391
+ }
392
+ }
393
  }
394
 
395
  function set_default_folders(post_id) {
1294
  menuHtml = "<div class='dynamic-menu'><ul>" +
1295
  "<li class='new-folder'><a href='javascript:;'><span class='folder-icon-create_new_folder'></span> New Folder</a></li>" +
1296
  "<li class='rename-folder'><a href='javascript:;'><span class='folder-icon-border_color'><span class='path1'></span><span class='path2'></span></span> Rename</a></li>" +
1297
+ "<li class='sticky-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class='sticky-folder-icon'><img src='"+wcp_settings.svg_file+"' /></span>Sticky Folder (Pro)</a></li>" +
1298
  "<li class='mark-folder'><a href='javascript:;'><span class='folder-icon-star_rate'></span>" + ((isHigh) ? " Remove Star" : "Add a Star") + "</a></li>";
1299
 
1300
  /* checking for attachments */
1520
  menuHtml = "<div class='dynamic-menu'><ul>" +
1521
  "<li class='new-folder'><a href='javascript:;'><span class='folder-icon-create_new_folder'></span> New Folder</a></li>" +
1522
  "<li class='rename-folder'><a href='javascript:;'><span class='folder-icon-border_color'><span class='path1'></span><span class='path2'></span></span> Rename</a></li>" +
1523
+ "<li class='sticky-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class='sticky-folder-icon'><img src='"+wcp_settings.svg_file+"' /></span>Sticky Folder (Pro)</a></li>" +
1524
  "<li class='mark-folder'><a href='javascript:;'><span class='folder-icon-star_rate'></span>" + ((isHigh) ? " Remove Star" : "Add a Star") + "</a></li>";
1525
 
1526
  hasPosts = parseInt(jQuery(this).closest("li.route").find("h3.title:first > .total-count").text());
assets/js/media.js CHANGED
@@ -124,14 +124,64 @@
124
  });
125
  })(jQuery, _);
126
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
127
  var selectedFolderMediaId = -1;
 
128
  var filesInQueue = 0;
129
  var uploadedFileCount = 0;
 
130
  jQuery(document).on("change", ".folder_for_media", function(){
131
- if(jQuery(this).val() != "add-folder") {
132
  selectedFolderMediaId = jQuery(this).val();
133
- } else {
134
  selectedFolderMediaId = -1;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
135
  }
136
 
137
  if(jQuery(".media-toolbar #media-attachment-taxonomy-filter").length) {
@@ -141,8 +191,11 @@ jQuery(document).on("change", ".folder_for_media", function(){
141
  });
142
 
143
  jQuery(document).on("change", "#media-attachment-taxonomy-filter", function(){
144
- jQuery(".folder_for_media").val(jQuery(this).val());
145
- selectedFolderMediaId = jQuery(this).val();
 
 
 
146
  });
147
 
148
  function resetDDCounter() {
@@ -155,18 +208,53 @@ function resetDDCounter() {
155
  res = jQuery.parseJSON(res);
156
 
157
  if(jQuery("#media-attachment-taxonomy-filter").length) {
158
- folders_media_options.terms = res.taxonomies;
159
- var selectedDD = jQuery("#media-attachment-taxonomy-filter");
160
- selectedDD.html("<option value='all'>All Folders</option><option value='unassigned'>(Unassigned)</option>");
161
- for (i = 0; i < res.taxonomies.length; i++) {
162
- selectedDD.append("<option value='" + res.taxonomies[i].term_id + "'>" + res.taxonomies[i].name + " (" + res.taxonomies[i].count + ")</option>");
163
- }
164
- selectedDD.val(currentDDVal);
 
 
 
 
 
 
 
165
  }
 
166
  }
167
  })
168
  }
169
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
170
  var wp = window.wp;
171
  //Upload on page Media Library (upload.php)
172
  if (typeof wp !== 'undefined' && typeof wp.Uploader === 'function') {
@@ -179,8 +267,12 @@ if (typeof wp !== 'undefined' && typeof wp.Uploader === 'function') {
179
  jQuery("#media-attachment-taxonomy-filter").append("<option value='" + term.term_id + "'>" + term.name + " (" + term.count + ")</option>")
180
  });
181
  }
 
 
 
 
182
  }
183
- },1500);
184
  });
185
  jQuery.extend(wp.Uploader.prototype, {
186
  progress: function () {
@@ -243,7 +335,73 @@ if (typeof wp !== 'undefined' && typeof wp.Uploader === 'function') {
243
  }
244
 
245
  jQuery( document ).ajaxComplete(function( event, request, settings ) {
246
- if(settings.data != undefined && settings.data.indexOf("action=delete-post")>-1) {
247
  resetDDCounter();
248
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
249
  });
124
  });
125
  })(jQuery, _);
126
 
127
+ jQuery(document).on("click", ".media-frame-router .media-menu-item", function(){
128
+ setTimeout(function(){
129
+ if(lastFolderData.length > 0) {
130
+ if(jQuery(".folder_for_media option").length != (lastFolderData.length+2)) {
131
+ var selectedVal = jQuery(".folder_for_media").val();
132
+ var selectedDD = jQuery(".folder_for_media");
133
+ selectedDD.html("<option value='-1'>(Unassigned)</option>");
134
+ for (i = 0; i < lastFolderData.length; i++) {
135
+ selectedDD.append("<option value='" + lastFolderData[i].term_id + "'>"+lastFolderData[i].name+"</option>");
136
+ }
137
+ selectedDD.append("<option value='add-folder'>+ Create a New Folder</option>");
138
+ if(selectedFolderMediaId != "" && selectedFolderMediaId != null) {
139
+ selectedDD.val(selectedFolderMediaId);
140
+ } else {
141
+ selectedDD.val(selectedVal);
142
+ }
143
+ }
144
+ }
145
+ }, 100);
146
+ });
147
  var selectedFolderMediaId = -1;
148
+ var selectedFolderPageID = "all";
149
  var filesInQueue = 0;
150
  var uploadedFileCount = 0;
151
+ var lastFolderData = [];
152
  jQuery(document).on("change", ".folder_for_media", function(){
153
+ if(jQuery(this).val() != "add-folder" && jQuery(this).val() != null) {
154
  selectedFolderMediaId = jQuery(this).val();
155
+ } else if(jQuery(this).val() == "add-folder") {
156
  selectedFolderMediaId = -1;
157
+ if(!jQuery("#wcp-content").length) {
158
+ if(folders_media_options.is_key_active == 0 && folders_media_options.folders >= 10) {
159
+ if (jQuery("#custom-folder-media-popup-form").length) {
160
+ jQuery("#custom-folder-media-popup-form").remove();
161
+ }
162
+ if (!jQuery("#custom-folder-media-popup-form").length) {
163
+ jQuery("body").append("<div class='folder-media-popup-form' id='custom-folder-media-popup-form'></div>");
164
+ jQuery("#custom-folder-media-popup-form").append("<div class='media-popup-form' id='custom-popup-form-content'></div>");
165
+ jQuery(".media-popup-form").append('<div id="add-update-folder-title" class="add-update-folder-title">You\'ve reached the 10 folder limitation!</div>');
166
+ jQuery(".media-popup-form").append('<div class="folder-form-message">Unlock unlimited amount of folders by activating your license key.</div>');
167
+ jQuery(".media-popup-form").append('<div class="folder-form-buttons"><a href="javascript:;" class="remove-media-form">Cancel</a><a href="'+folders_media_options.activate_url+'" target="_blank" class="form-submit-btn" style="width: 145px">Activate your key</button></div>');
168
+ }
169
+ } else {
170
+ if (jQuery("#custom-folder-media-popup-form").length) {
171
+ jQuery("#custom-folder-media-popup-form").remove();
172
+ }
173
+ if (!jQuery("#custom-folder-media-popup-form").length) {
174
+ jQuery("body").append("<div class='folder-media-popup-form' id='custom-folder-media-popup-form'></div>");
175
+ jQuery("#custom-folder-media-popup-form").append("<div class='media-popup-form' id='custom-popup-form-content'></div>");
176
+ jQuery("#custom-popup-form-content").append("<form action='#' id='folder-media-popup-form' method='post'></form>");
177
+ jQuery("#folder-media-popup-form").append('<div id="add-update-folder-title" class="add-update-folder-title">Add Folder</div>');
178
+ jQuery("#folder-media-popup-form").append('<div class="folder-form-input"><input id="media-folder-name" autocomplete="off" placeholder="Folder name" class=""></div>');
179
+ jQuery("#folder-media-popup-form").append('<div class="folder-form-errors" id="media-form-error"><span class="dashicons dashicons-info"></span> Please enter folder name</div>');
180
+ jQuery("#folder-media-popup-form").append('<div class="folder-form-buttons"><button type="submit" class="form-submit-btn" id="save-media-folder" style="width: 106px">Submit</button><a href="javascript:;" class="remove-media-form">Cancel</a></div>');
181
+ jQuery("#media-folder-name").focus();
182
+ }
183
+ }
184
+ }
185
  }
186
 
187
  if(jQuery(".media-toolbar #media-attachment-taxonomy-filter").length) {
191
  });
192
 
193
  jQuery(document).on("change", "#media-attachment-taxonomy-filter", function(){
194
+ if(jQuery(this).val() != null && jQuery(this).val() != "add-folder") {
195
+ jQuery(".folder_for_media").val(jQuery(this).val());
196
+ selectedFolderPageID = jQuery(this).val();
197
+ selectedFolderMediaId = jQuery(this).val();
198
+ }
199
  });
200
 
201
  function resetDDCounter() {
208
  res = jQuery.parseJSON(res);
209
 
210
  if(jQuery("#media-attachment-taxonomy-filter").length) {
211
+ jQuery("#media-attachment-taxonomy-filter").each(function(){
212
+ folders_media_options.terms = res.taxonomies;
213
+ var selectedDD = jQuery(this);
214
+ selectedDD.html("<option value='all'>All Folders</option><option value='unassigned'>(Unassigned)</option>");
215
+ lastFolderData = res.taxonomies;
216
+ for (i = 0; i < res.taxonomies.length; i++) {
217
+ selectedDD.append("<option value='" + res.taxonomies[i].term_id + "'>" + res.taxonomies[i].name + " (" + res.taxonomies[i].count + ")</option>");
218
+ }
219
+ selectedDD.val(currentDDVal).trigger("change");
220
+
221
+ if(resetMediaID !== false) {
222
+ selectedDD.val(resetMediaID).trigger("change");
223
+ }
224
+ });
225
  }
226
+ resetMediaID = false;
227
  }
228
  })
229
  }
230
 
231
+ function resetSelectMediaDropDown() {
232
+ jQuery.ajax({
233
+ url: folders_media_options.ajax_url,
234
+ data: "type=attachment&action=wcp_get_default_list&active_id=0",
235
+ method: 'post',
236
+ success: function (res) {
237
+ res = jQuery.parseJSON(res);
238
+ if(jQuery(".folder_for_media").length) {
239
+ if(!jQuery("#wcp-content").length) {
240
+ var selectedDD = jQuery(".folder_for_media");
241
+ selectedDD.html("<option value='-1'>(Unassigned)</option>");
242
+ lastFolderData = res.taxonomies;
243
+ for (i = 0; i < res.taxonomies.length; i++) {
244
+ selectedDD.append("<option value='" + res.taxonomies[i].term_id + "'>" + res.taxonomies[i].name + " (" + res.taxonomies[i].count + ")</option>");
245
+ }
246
+ selectedDD.append("<option value='add-folder'>+ Create a New Folder</option>");
247
+ }
248
+ jQuery("#custom-folder-media-popup-form").remove();
249
+ }
250
+ if(!jQuery("#media-attachment-taxonomy-filter").length && resetMediaID != false) {
251
+ jQuery(".folder_for_media").val(resetMediaID).trigger("change");
252
+ } else {
253
+ resetDDCounter();
254
+ }
255
+ }
256
+ });
257
+ }
258
  var wp = window.wp;
259
  //Upload on page Media Library (upload.php)
260
  if (typeof wp !== 'undefined' && typeof wp.Uploader === 'function') {
267
  jQuery("#media-attachment-taxonomy-filter").append("<option value='" + term.term_id + "'>" + term.name + " (" + term.count + ")</option>")
268
  });
269
  }
270
+
271
+ if(!jQuery("#wcp-content").length) {
272
+ jQuery(".attachment-filters").val(selectedFolderPageID).trigger("change");
273
+ }
274
  }
275
+ },100);
276
  });
277
  jQuery.extend(wp.Uploader.prototype, {
278
  progress: function () {
335
  }
336
 
337
  jQuery( document ).ajaxComplete(function( event, request, settings ) {
338
+ if(settings.data != undefined && typeof settings.data == 'string' && settings.data.indexOf("action=delete-post")>-1) {
339
  resetDDCounter();
340
  }
341
+ });
342
+
343
+ jQuery(document).on("click", "#menu-item-browse", function (e) {
344
+ setTimeout(function(){
345
+ if(resetMediaScreen) {
346
+ resetDDCounter();
347
+ }
348
+ }, 100);
349
+ });
350
+ var resetMediaScreen = false;
351
+ var resetMediaID = false;
352
+ jQuery(document).on("submit", "#folder-media-popup-form", function(){
353
+ if(jQuery.trim(jQuery("#media-folder-name").val()) == "") {
354
+ jQuery("#media-form-error").show();
355
+ jQuery("#media-folder-name").focus();
356
+ } else {
357
+ jQuery("button#save-media-folder").html("<span class='spinner-border'></span>");
358
+ jQuery("button#save-media-folder").attr("disabled", true);
359
+ var orderNumber = -1;
360
+ jQuery(".folder_for_media option").each(function(){
361
+ thisText = jQuery(this).text();
362
+ if(jQuery.trim(thisText[0]) != "") {
363
+ orderNumber++;
364
+ }
365
+ });
366
+ jQuery.ajax({
367
+ url: folders_media_options.ajax_url,
368
+ data: "action=wcp_add_new_folder&parent_id=0&is_from_media=1&type=attachment&term_id=0&order="+orderNumber+"&name="+jQuery.trim(jQuery("#media-folder-name").val())+"&nonce=" +folders_media_options.nonce,
369
+ type: 'post',
370
+ success: function (res) {
371
+ result = jQuery.parseJSON(res);
372
+ if (result.status == '1') {
373
+ resetMediaID = result.id;
374
+ folders_media_options.is_key_active = result.is_key_active;
375
+ folders_media_options.folders = result.folders;
376
+ resetSelectMediaDropDown();
377
+ resetMediaScreen = true;
378
+ //resetSelectMediaDropDown();
379
+ } else {
380
+ jQuery(".folder-form-errors").html(result.message).show();
381
+ jQuery("button#save-media-folder").attr("disabled", false);
382
+ jQuery("button#save-media-folder").html("Submit");
383
+ }
384
+ }
385
+ });
386
+ }
387
+ return false;
388
+ });
389
+
390
+ jQuery(document).on("click", ".remove-media-form", function(e){
391
+ e.stopPropagation();
392
+ jQuery("#custom-folder-media-popup-form").remove();
393
+ jQuery(".folder_for_media").val("-1").trigger("change");
394
+ jQuery("#media-attachment-taxonomy-filter").each(function(){
395
+ jQuery(this).val("all").trigger("change");
396
+ });
397
+ });
398
+ jQuery(document).on("click", "#custom-folder-media-popup-form", function (e) {
399
+ jQuery("#custom-folder-media-popup-form").remove();
400
+ jQuery(".folder_for_media").val("-1").trigger("change");
401
+ jQuery("#media-attachment-taxonomy-filter").each(function(){
402
+ jQuery(this).val("all").trigger("change");
403
+ });
404
+ });
405
+ jQuery(document).on("click", ".media-popup-form", function (e) {
406
+ e.stopPropagation();
407
  });
folders.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Folders
4
  * Description: Arrange media, pages, custom post types and posts into folders
5
- * Version: 2.4.9
6
  * Author: Premio
7
  * Author URI: https://premio.io/downloads/folders/
8
  * Text Domain: folders
@@ -30,7 +30,7 @@ if(!defined("WCP_FOLDER_URL")) {
30
  define('WCP_FOLDER_URL', plugin_dir_url(__FILE__));
31
  }
32
  if(!defined("WCP_FOLDER_VERSION")) {
33
- define('WCP_FOLDER_VERSION', "2.4.9");
34
  }
35
 
36
  include_once plugin_dir_path(__FILE__)."includes/folders.class.php";
2
  /**
3
  * Plugin Name: Folders
4
  * Description: Arrange media, pages, custom post types and posts into folders
5
+ * Version: 2.5
6
  * Author: Premio
7
  * Author URI: https://premio.io/downloads/folders/
8
  * Text Domain: folders
30
  define('WCP_FOLDER_URL', plugin_dir_url(__FILE__));
31
  }
32
  if(!defined("WCP_FOLDER_VERSION")) {
33
+ define('WCP_FOLDER_VERSION', "2.5");
34
  }
35
 
36
  include_once plugin_dir_path(__FILE__)."includes/folders.class.php";
includes/folders.class.php CHANGED
@@ -54,6 +54,8 @@ class WCP_Folders
54
  /* Update Parent Data */
55
  add_action('wp_ajax_wcp_mark_un_mark_folder', array($this, 'wcp_mark_un_mark_folder'));
56
  /* Update Parent Data */
 
 
57
  add_action('wp_ajax_wcp_change_post_folder', array($this, 'wcp_change_post_folder'));
58
  /* Update Parent Data */
59
  add_action('wp_ajax_wcp_change_multiple_post_folder', array($this, 'wcp_change_multiple_post_folder'));
@@ -100,22 +102,19 @@ class WCP_Folders
100
  if (in_array("post", $options)) {
101
  add_filter('manage_posts_columns', array($this, 'wcp_manage_columns_head'));
102
  add_action('manage_posts_custom_column', array($this, 'wcp_manage_columns_content'), 10, 2);
103
-
104
  add_filter( 'bulk_actions-edit-post', array($this, 'custom_bulk_action' ));
105
  }
106
 
107
  if (in_array("page", $options)) {
108
  add_filter('manage_page_posts_columns', array($this, 'wcp_manage_columns_head'));
109
  add_action('manage_page_posts_custom_column', array($this, 'wcp_manage_columns_content'), 10, 2);
110
-
111
  add_filter( 'bulk_actions-edit-page', array($this, 'custom_bulk_action' ));
112
  }
113
 
114
  if (in_array("attachment", $options)) {
115
  add_filter('manage_media_columns', array($this, 'wcp_manage_columns_head'));
116
  add_action('manage_media_custom_column', array($this, 'wcp_manage_columns_content'), 10, 2);
117
-
118
- add_filter( 'bulk_actions-edit-media', array($this, 'custom_bulk_action' ));
119
  }
120
 
121
  foreach ($options as $option) {
@@ -150,17 +149,18 @@ class WCP_Folders
150
  }
151
  }
152
 
153
- public function media_modal_query_final_terms($request) {
154
- if(isset($_REQUEST['action']) && $_REQUEST['action'] == "mla-query-attachments") {
155
- $query = isset($_REQUEST['query'])?$_REQUEST['query']:array();
156
- if(isset($query['media_folder']) && !empty($query['media_folder'])) {
157
- if($query['media_folder'] == -1) {
 
158
  $tax_query = array(
159
- 'taxonomy' => 'media_folder',
160
- 'operator' => 'NOT EXISTS',
161
  );
162
- $request['tax_query'] = array( $tax_query );
163
- $request = apply_filters( 'media_library_organizer_media_filter_attachments', $request, $_REQUEST );
164
  } else {
165
  $request['media_folder'] = $query['media_folder'];
166
  }
@@ -374,10 +374,14 @@ class WCP_Folders
374
  <p class="attachments-category"><?php esc_html_e("Select a folder (Optional)", WCP_FOLDER) ?></p>
375
  <p class="attachments-category"><?php esc_html_e("First select the folder, and the upload the files", WCP_FOLDER) ?><br/></p>
376
  <p>
 
 
 
 
377
  <select name="folder_for_media" class="folder_for_media">
378
  <option value="-1">- <?php esc_html_e('Unassigned', WCP_FOLDER) ?></option>
379
  <?php echo $options ?>
380
- <?php if($typenow == "attachment" && isset($current_screen->base) && $current_screen->base == "upload") {?>
381
  <option value="add-folder"><?php esc_html_e('+ Create a New Folder', WCP_FOLDER) ?></option>
382
  <?php } ?>
383
  </select>
@@ -395,6 +399,7 @@ class WCP_Folders
395
  $response['message'] = "";
396
  $postData = filter_input_array(INPUT_POST);
397
  $errorCounter = 0;
 
398
  if (!isset($postData['status']) || empty($postData['status'])) {
399
  $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
400
  $errorCounter++;
@@ -692,7 +697,6 @@ class WCP_Folders
692
  $options = get_option('folders_settings');
693
  $options = (empty($options) || !is_array($options))?array():$options;
694
  $last_status = get_option("last_folder_status_for".$typenow);
695
-
696
  if(!$isAjax && (in_array($typenow, $options) || !empty($last_status)) && (isset($current_screen->base) && ($current_screen->base == "edit" || ($current_screen->base == "upload")))) {
697
 
698
  $default_folders = get_option('default_folders');
@@ -757,12 +761,23 @@ class WCP_Folders
757
  }
758
  }
759
 
 
 
 
 
 
 
 
760
  /* Free/Pro URL Change */
761
  wp_enqueue_script( 'folders-media', WCP_FOLDER_URL.'assets/js/media.js', array( 'media-editor', 'media-views' ), WCP_FOLDER_VERSION, true );
762
  wp_localize_script( 'folders-media', 'folders_media_options', array(
763
  'terms' => self::get_terms_hierarchical('media_folder'),
764
  'taxonomy' => get_taxonomy('media_folder'),
765
- 'ajax_url' => admin_url("admin-ajax.php")
 
 
 
 
766
  ));
767
  /* Free/Pro URL Change */
768
  wp_enqueue_style( 'folders-media', WCP_FOLDER_URL . 'assets/css/media.css' , array(), WCP_FOLDER_VERSION);
@@ -1439,6 +1454,49 @@ class WCP_Folders
1439
  wp_die();
1440
  }
1441
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1442
  public function wcp_save_folder_order()
1443
  {
1444
  $response = array();
@@ -1865,7 +1923,7 @@ class WCP_Folders
1865
  $highlight_nonce = wp_create_nonce('wcp_folder_highlight_term_'.$result['term_id']);
1866
  $term_nonce = wp_create_nonce('wcp_folder_term_'.$result['term_id']);
1867
  /* Free/Pro URL Change */
1868
- $string = "<li data-nonce='{$term_nonce}' data-star='{$highlight_nonce}' data-rename='{$rename_nonce}' data-delete='{$delete_nonce}' data-slug='{$slug}' class='ui-state-default route' id='wcp_folder_{$result['term_id']}' data-folder-id='{$result['term_id']}'><h3 class='title' title='{$postData['name']}' id='title_{$result['term_id']}'><span class='ui-icon'><i class='wcp-icon folder-icon-folder'></i><img src='".esc_url(WCP_FOLDER_URL."assets/images/move-option.png")."' class='move-folder-icon' ><input type='checkbox' class='checkbox' value='{$result['term_id']}' /></span><span class='title-text'>{$postData['name']}</span> <span class='update-inline-record'></span><span class='star-icon'></span> </h3><span class='nav-icon'><i class='wcp-icon folder-icon-arrow_right'></i></span> <ul class='space' id='space_{$result['term_id']}'>";
1869
  $string .= "</ul></li>";
1870
  $response['term_data'] = $string;
1871
  $response['parent_id'] = $parent;
@@ -1926,8 +1984,6 @@ class WCP_Folders
1926
  return true;
1927
  }
1928
  }
1929
-
1930
-
1931
  return false;
1932
  }
1933
 
@@ -1978,7 +2034,9 @@ class WCP_Folders
1978
 
1979
  $folder_type = self::get_custom_post_type($typenow);
1980
  /* Do not change: Free/Pro Class name change */
1981
- $terms_data = WCP_Tree::get_full_tree_data($folder_type);
 
 
1982
  $terms_html = WCP_Tree::get_option_data_for_select($folder_type);
1983
  $form_html = WCP_Forms::get_form_html($terms_html);
1984
  include_once dirname(dirname(__FILE__)) . WCP_DS . "/templates" . WCP_DS . "admin" . WCP_DS . "admin-content.php";
@@ -2308,29 +2366,36 @@ class WCP_Folders
2308
  $optionName = "wcp_folder_display_status_" . $typenow;
2309
  $optionValue = get_option($optionName);
2310
  $class = (!empty($optionValue) && $optionValue == "hide")?"":"active";
2311
- echo '<div class="tree-structure-content '.$class.'"><div class="tree-structure" id="list-folder-' . $termId . '" data-id="' . $termId . '">';
2312
- echo '<ul>';
2313
- foreach ($terms as $term) {
2314
- $status = get_term_meta($term->term_id, "is_highlighted", true);
2315
- ?>
2316
- <li class="grid-view" data-id="<?php echo $term->term_id ?>" id="folder_<?php echo $term->term_id ?>">
2317
- <div class="folder-item is-folder" data-id="<?php echo $term->term_id ?>">
2318
- <a title='<?php echo $term->name ?>' id="folder_view_<?php echo $term->term_id ?>"
2319
- class="folder-view <?php echo ($status == 1) ? "is-high" : "" ?>"
2320
- data-id="<?php echo $term->term_id ?>">
 
 
 
 
 
 
2321
  <span class="folder item-name"><span id="wcp_folder_text_<?php echo $term->term_id ?>"
2322
  class="folder-title"><?php echo $term->name ?></span></span>
2323
- <!--<span class="folder-option"></span>-->
2324
- </a>
2325
- </div>
2326
- </li>
2327
  <?php
 
 
 
 
 
 
2328
  }
2329
- echo '</ul>';
2330
- echo '<div class="clear clearfix"></div>';
2331
- echo '</div>';
2332
- echo '<div class="folders-toggle-button"><span></span></div>';
2333
- echo '</div>';
2334
  if(!empty($content) && is_array($content)) {
2335
  echo '<ul class="subsubsub">';
2336
  foreach($content as $k=>$v) {
@@ -2399,6 +2464,11 @@ class WCP_Folders
2399
  $selected_taxonomy = "";
2400
  }
2401
  }
 
 
 
 
 
2402
  wp_localize_script('wcp-folders-custom', 'wcp_settings', array(
2403
  'ajax_url' => admin_url('admin-ajax.php'),
2404
  'upgrade_url' => admin_url('admin.php?page=wcp_folders_upgrade'),
@@ -2414,7 +2484,9 @@ class WCP_Folders
2414
  'can_manage_folder' => $can_manage_folder,
2415
  'folder_width' => $width,
2416
  'taxonomy_status' => $taxonomy_status,
2417
- 'selected_taxonomy' => $selected_taxonomy
 
 
2418
  ));
2419
  wp_enqueue_script('wcp-folders-alert');
2420
  wp_enqueue_script('wcp-folders-custom');
54
  /* Update Parent Data */
55
  add_action('wp_ajax_wcp_mark_un_mark_folder', array($this, 'wcp_mark_un_mark_folder'));
56
  /* Update Parent Data */
57
+ add_action('wp_ajax_wcp_make_sticky_folder', array($this, 'wcp_make_sticky_folder'));
58
+ /* Update Parent Data */
59
  add_action('wp_ajax_wcp_change_post_folder', array($this, 'wcp_change_post_folder'));
60
  /* Update Parent Data */
61
  add_action('wp_ajax_wcp_change_multiple_post_folder', array($this, 'wcp_change_multiple_post_folder'));
102
  if (in_array("post", $options)) {
103
  add_filter('manage_posts_columns', array($this, 'wcp_manage_columns_head'));
104
  add_action('manage_posts_custom_column', array($this, 'wcp_manage_columns_content'), 10, 2);
 
105
  add_filter( 'bulk_actions-edit-post', array($this, 'custom_bulk_action' ));
106
  }
107
 
108
  if (in_array("page", $options)) {
109
  add_filter('manage_page_posts_columns', array($this, 'wcp_manage_columns_head'));
110
  add_action('manage_page_posts_custom_column', array($this, 'wcp_manage_columns_content'), 10, 2);
 
111
  add_filter( 'bulk_actions-edit-page', array($this, 'custom_bulk_action' ));
112
  }
113
 
114
  if (in_array("attachment", $options)) {
115
  add_filter('manage_media_columns', array($this, 'wcp_manage_columns_head'));
116
  add_action('manage_media_custom_column', array($this, 'wcp_manage_columns_content'), 10, 2);
117
+ //add_filter('bulk_actions-edit-media', array($this, 'custom_bulk_action' ));
 
118
  }
119
 
120
  foreach ($options as $option) {
149
  }
150
  }
151
 
152
+ public function media_modal_query_final_terms($request)
153
+ {
154
+ if (isset($_REQUEST['action']) && $_REQUEST['action'] == "mla-query-attachments") {
155
+ $query = isset($_REQUEST['query']) ? $_REQUEST['query'] : array();
156
+ if (isset($query['media_folder']) && !empty($query['media_folder'])) {
157
+ if ($query['media_folder'] == -1) {
158
  $tax_query = array(
159
+ 'taxonomy' => 'media_folder',
160
+ 'operator' => 'NOT EXISTS',
161
  );
162
+ $request['tax_query'] = array($tax_query);
163
+ $request = apply_filters('media_library_organizer_media_filter_attachments', $request, $_REQUEST);
164
  } else {
165
  $request['media_folder'] = $query['media_folder'];
166
  }
374
  <p class="attachments-category"><?php esc_html_e("Select a folder (Optional)", WCP_FOLDER) ?></p>
375
  <p class="attachments-category"><?php esc_html_e("First select the folder, and the upload the files", WCP_FOLDER) ?><br/></p>
376
  <p>
377
+ <?php
378
+ $request = $_SERVER['REQUEST_URI'];
379
+ $request = strpos($request, "post.php");
380
+ ?>
381
  <select name="folder_for_media" class="folder_for_media">
382
  <option value="-1">- <?php esc_html_e('Unassigned', WCP_FOLDER) ?></option>
383
  <?php echo $options ?>
384
+ <?php if(($typenow == "attachment" && isset($current_screen->base) && $current_screen->base == "upload") || ($request !== false)) {?>
385
  <option value="add-folder"><?php esc_html_e('+ Create a New Folder', WCP_FOLDER) ?></option>
386
  <?php } ?>
387
  </select>
399
  $response['message'] = "";
400
  $postData = filter_input_array(INPUT_POST);
401
  $errorCounter = 0;
402
+
403
  if (!isset($postData['status']) || empty($postData['status'])) {
404
  $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
405
  $errorCounter++;
697
  $options = get_option('folders_settings');
698
  $options = (empty($options) || !is_array($options))?array():$options;
699
  $last_status = get_option("last_folder_status_for".$typenow);
 
700
  if(!$isAjax && (in_array($typenow, $options) || !empty($last_status)) && (isset($current_screen->base) && ($current_screen->base == "edit" || ($current_screen->base == "upload")))) {
701
 
702
  $default_folders = get_option('default_folders');
761
  }
762
  }
763
 
764
+ $is_active = 1;
765
+ $folders = -1;
766
+ if (!self::check_has_valid_key()) {
767
+ $is_active = 0;
768
+ $folders = self::ttl_fldrs();
769
+ }
770
+
771
  /* Free/Pro URL Change */
772
  wp_enqueue_script( 'folders-media', WCP_FOLDER_URL.'assets/js/media.js', array( 'media-editor', 'media-views' ), WCP_FOLDER_VERSION, true );
773
  wp_localize_script( 'folders-media', 'folders_media_options', array(
774
  'terms' => self::get_terms_hierarchical('media_folder'),
775
  'taxonomy' => get_taxonomy('media_folder'),
776
+ 'ajax_url' => admin_url("admin-ajax.php"),
777
+ 'activate_url' => admin_url("admin.php?page=wcp_folders_register"),
778
+ 'nonce' => wp_create_nonce('wcp_folder_nonce_attachment'),
779
+ 'is_key_active' => $is_active,
780
+ 'folders' => $folders,
781
  ));
782
  /* Free/Pro URL Change */
783
  wp_enqueue_style( 'folders-media', WCP_FOLDER_URL . 'assets/css/media.css' , array(), WCP_FOLDER_VERSION);
1454
  wp_die();
1455
  }
1456
 
1457
+ public function wcp_make_sticky_folder()
1458
+ {
1459
+ $response = array();
1460
+ $response['status'] = 0;
1461
+ $response['error'] = 0;
1462
+ $response['data'] = array();
1463
+ $response['message'] = "";
1464
+ $postData = filter_input_array(INPUT_POST);
1465
+ $errorCounter = 0;
1466
+ if (!current_user_can("manage_categories")) {
1467
+ $response['message'] = esc_attr__("You have not permission to update folder", WCP_FOLDER);
1468
+ $errorCounter++;
1469
+ } else if (!isset($postData['term_id']) || empty($postData['term_id'])) {
1470
+ $errorCounter++;
1471
+ $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1472
+ } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
1473
+ $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1474
+ $errorCounter++;
1475
+ } else {
1476
+ $term_id = self::sanitize_options($postData['term_id']);
1477
+ if(!wp_verify_nonce($postData['nonce'], 'wcp_folder_highlight_term_'.$term_id)) {
1478
+ $response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
1479
+ $errorCounter++;
1480
+ }
1481
+ }
1482
+ if ($errorCounter == 0) {
1483
+ $term_id = self::sanitize_options($postData['term_id']);
1484
+ $status = get_term_meta($term_id, "is_folder_sticky", true);
1485
+ if ($status == 1) {
1486
+ update_term_meta($term_id, "is_folder_sticky", 0);
1487
+ $status = 0;
1488
+ } else {
1489
+ update_term_meta($term_id, "is_folder_sticky", 1);
1490
+ $status = 1;
1491
+ }
1492
+ $response['is_folder_sticky'] = $status;
1493
+ $response['id'] = $postData['term_id'];
1494
+ $response['status'] = 1;
1495
+ }
1496
+ echo json_encode($response);
1497
+ wp_die();
1498
+ }
1499
+
1500
  public function wcp_save_folder_order()
1501
  {
1502
  $response = array();
1923
  $highlight_nonce = wp_create_nonce('wcp_folder_highlight_term_'.$result['term_id']);
1924
  $term_nonce = wp_create_nonce('wcp_folder_term_'.$result['term_id']);
1925
  /* Free/Pro URL Change */
1926
+ $string = "<li data-nonce='{$term_nonce}' data-star='{$highlight_nonce}' data-rename='{$rename_nonce}' data-delete='{$delete_nonce}' data-slug='{$slug}' class='ui-state-default route wcp_folder_{$result['term_id']}' id='wcp_folder_{$result['term_id']}' data-folder-id='{$result['term_id']}'><h3 class='title' title='{$postData['name']}' id='title_{$result['term_id']}'><span class='ui-icon'><i class='wcp-icon folder-icon-folder'></i><img src='".esc_url(WCP_FOLDER_URL."assets/images/pin.png")."' class='folder-sticky-icon' /><img src='".esc_url(WCP_FOLDER_URL."assets/images/move-option.png")."' class='move-folder-icon' ><input type='checkbox' class='checkbox' value='{$result['term_id']}' /></span><span class='title-text'>{$postData['name']}</span> <span class='update-inline-record'></span><span class='star-icon'></span> </h3><span class='nav-icon'><i class='wcp-icon folder-icon-arrow_right'></i></span> <ul class='space' id='space_{$result['term_id']}'>";
1927
  $string .= "</ul></li>";
1928
  $response['term_data'] = $string;
1929
  $response['parent_id'] = $parent;
1984
  return true;
1985
  }
1986
  }
 
 
1987
  return false;
1988
  }
1989
 
2034
 
2035
  $folder_type = self::get_custom_post_type($typenow);
2036
  /* Do not change: Free/Pro Class name change */
2037
+ $tree_data = WCP_Tree::get_full_tree_data($folder_type);
2038
+ $terms_data = $tree_data['string'];
2039
+ $sticky_string = $tree_data['sticky_string'];
2040
  $terms_html = WCP_Tree::get_option_data_for_select($folder_type);
2041
  $form_html = WCP_Forms::get_form_html($terms_html);
2042
  include_once dirname(dirname(__FILE__)) . WCP_DS . "/templates" . WCP_DS . "admin" . WCP_DS . "admin-content.php";
2366
  $optionName = "wcp_folder_display_status_" . $typenow;
2367
  $optionValue = get_option($optionName);
2368
  $class = (!empty($optionValue) && $optionValue == "hide")?"":"active";
2369
+ $customize_folders = get_option('customize_folders');
2370
+ $show_in_page = !isset($customize_folders['show_in_page'])||empty($customize_folders['show_in_page'])?"show":$customize_folders['show_in_page'];
2371
+ if(empty($show_in_page)) {
2372
+ $show_in_page = "show";
2373
+ }
2374
+ if($show_in_page == "show") {
2375
+ echo '<div class="tree-structure-content ' . $class . '"><div class="tree-structure" id="list-folder-' . $termId . '" data-id="' . $termId . '">';
2376
+ echo '<ul>';
2377
+ foreach ($terms as $term) {
2378
+ $status = get_term_meta($term->term_id, "is_highlighted", true);
2379
+ ?>
2380
+ <li class="grid-view" data-id="<?php echo $term->term_id ?>" id="folder_<?php echo $term->term_id ?>">
2381
+ <div class="folder-item is-folder" data-id="<?php echo $term->term_id ?>">
2382
+ <a title='<?php echo $term->name ?>' id="folder_view_<?php echo $term->term_id ?>"
2383
+ class="folder-view <?php echo ($status == 1) ? "is-high" : "" ?>"
2384
+ data-id="<?php echo $term->term_id ?>">
2385
  <span class="folder item-name"><span id="wcp_folder_text_<?php echo $term->term_id ?>"
2386
  class="folder-title"><?php echo $term->name ?></span></span>
2387
+ <!--<span class="folder-option"></span>-->
2388
+ </a>
2389
+ </div>
2390
+ </li>
2391
  <?php
2392
+ }
2393
+ echo '</ul>';
2394
+ echo '<div class="clear clearfix"></div>';
2395
+ echo '</div>';
2396
+ echo '<div class="folders-toggle-button"><span></span></div>';
2397
+ echo '</div>';
2398
  }
 
 
 
 
 
2399
  if(!empty($content) && is_array($content)) {
2400
  echo '<ul class="subsubsub">';
2401
  foreach($content as $k=>$v) {
2464
  $selected_taxonomy = "";
2465
  }
2466
  }
2467
+ $customize_folders = get_option('customize_folders');
2468
+ $show_in_page = !isset($customize_folders['show_in_page'])||empty($customize_folders['show_in_page'])?"show":$customize_folders['show_in_page'];
2469
+ if(empty($show_in_page)) {
2470
+ $show_in_page = "show";
2471
+ }
2472
  wp_localize_script('wcp-folders-custom', 'wcp_settings', array(
2473
  'ajax_url' => admin_url('admin-ajax.php'),
2474
  'upgrade_url' => admin_url('admin.php?page=wcp_folders_upgrade'),
2484
  'can_manage_folder' => $can_manage_folder,
2485
  'folder_width' => $width,
2486
  'taxonomy_status' => $taxonomy_status,
2487
+ 'selected_taxonomy' => $selected_taxonomy,
2488
+ 'show_in_page' => $show_in_page,
2489
+ 'svg_file' => WCP_FOLDER_URL.'assets/images/pin.png',
2490
  ));
2491
  wp_enqueue_script('wcp-folders-alert');
2492
  wp_enqueue_script('wcp-folders-custom');
includes/tree.class.php CHANGED
@@ -12,12 +12,10 @@ class WCP_Tree {
12
  if((isset($type) && !empty($type)) || ! $isAjax) {
13
  update_option("selected_" . $post_type . "_folder", "");
14
  }
15
- $string = self::get_folder_category_data($post_type, 0, 0);
16
- return $string['string'];
17
  }
18
 
19
  public static function get_folder_category_data($post_type, $parent = 0, $parentStatus = 0) {
20
- // echo "<pre>"; print_r($post_type); die;
21
  $terms = get_terms( $post_type, array(
22
  'hide_empty' => false,
23
  'parent' => $parent,
@@ -31,11 +29,16 @@ class WCP_Tree {
31
  ]]
32
  ));
33
  $string = "";
 
34
  $child = 0;
35
  $isAjax = (defined('DOING_AJAX') && DOING_AJAX)?1:0;
36
  if(!empty($terms)) {
37
  $child = count($terms);
38
  foreach($terms as $term) {
 
 
 
 
39
  $status = get_term_meta($term->term_id, "is_active", true);
40
  $return = self::get_folder_category_data($post_type, $term->term_id, $status);
41
  $class = ($status == 1 && $return['child']>0)?"active":"";
@@ -63,18 +66,33 @@ class WCP_Tree {
63
  }
64
  $status = get_term_meta($term->term_id, "is_highlighted", true);
65
  $class .= ($status == 1)?" is-high":"";
 
66
  $count = ($term->trash_count != 0)?"<span class='total-count'>{$term->trash_count}</span>":"";
 
 
 
 
 
 
 
 
 
 
67
  $delete_nonce = wp_create_nonce('wcp_folder_delete_term_'.$term->term_id);
68
  $rename_nonce = wp_create_nonce('wcp_folder_rename_term_'.$term->term_id);
69
  $highlight_nonce = wp_create_nonce('wcp_folder_highlight_term_'.$term->term_id);
70
  $term_nonce = wp_create_nonce('wcp_folder_term_'.$term->term_id);
71
- $string .= "<li data-nonce='{$term_nonce}' data-star='{$highlight_nonce}' data-rename='{$rename_nonce}' data-delete='{$delete_nonce}' data-slug='{$term->slug}' class='ui-state-default route {$class}' id='wcp_folder_{$term->term_id}' data-folder-id='{$term->term_id}'><h3 class='title' title='{$term->name}' id='title_{$term->term_id}'><span class='ui-icon'><i class='wcp-icon folder-icon-folder'></i><img src='".esc_url(WCP_FOLDER_URL."assets/images/move-option.png")."' class='move-folder-icon' ><input type='checkbox' class='checkbox' value='{$term->term_id}' /> </span><span class='title-text'>{$term->name}</span> <span class='update-inline-record'></span> {$count} <span class='star-icon'></span></h3><span class='nav-icon'><i class='wcp-icon folder-icon-arrow_right'></i></span> <ul class='space' id='space_{$term->term_id}'>";
 
72
  $string .= $return['string'];
73
  $string .= "</ul></li>";
 
 
74
  }
75
  }
76
  return array(
77
  'string' =>$string,
 
78
  'child' => $child
79
  );
80
  }
@@ -105,7 +123,7 @@ class WCP_Tree {
105
  foreach($terms as $term) {
106
  $selected = ($selected_term == $term->term_id)?"selected":"";
107
  $string .= "<option {$selected} value='{$term->term_id}'>{$space}{$term->name}</option>";
108
- $string .= self::get_folder_option_data($post_type, $term->term_id, $space."&nbsp&nbsp");
109
  }
110
  }
111
  return $string;
12
  if((isset($type) && !empty($type)) || ! $isAjax) {
13
  update_option("selected_" . $post_type . "_folder", "");
14
  }
15
+ return self::get_folder_category_data($post_type, 0, 0);
 
16
  }
17
 
18
  public static function get_folder_category_data($post_type, $parent = 0, $parentStatus = 0) {
 
19
  $terms = get_terms( $post_type, array(
20
  'hide_empty' => false,
21
  'parent' => $parent,
29
  ]]
30
  ));
31
  $string = "";
32
+ $sticky_string = "";
33
  $child = 0;
34
  $isAjax = (defined('DOING_AJAX') && DOING_AJAX)?1:0;
35
  if(!empty($terms)) {
36
  $child = count($terms);
37
  foreach($terms as $term) {
38
+
39
+
40
+ $is_sticky = get_term_meta($term->term_id, "is_folder_sticky", true);
41
+
42
  $status = get_term_meta($term->term_id, "is_active", true);
43
  $return = self::get_folder_category_data($post_type, $term->term_id, $status);
44
  $class = ($status == 1 && $return['child']>0)?"active":"";
66
  }
67
  $status = get_term_meta($term->term_id, "is_highlighted", true);
68
  $class .= ($status == 1)?" is-high":"";
69
+ $sticky_class = ($status == 1)?"is-high":"";
70
  $count = ($term->trash_count != 0)?"<span class='total-count'>{$term->trash_count}</span>":"";
71
+ if($is_sticky == 1) {
72
+ $class .= " is-sticky";
73
+ }
74
+
75
+ $count_sticky = ($term->trash_count != 0)?"<span class='folder-count'>{$term->trash_count}</span>":"";
76
+
77
+ if($is_sticky == 1) {
78
+ $sticky_string .= "<li data-folder-id='{$term->term_id}' class='sticky-fldr {$sticky_class} sticky-folder-{$term->term_id}'><a href='javascript:;'><span class='sticky-icon'><img src='".WCP_FOLDER_URL."assets/images/pin.png' /></span><span class='folder-title'>{$term->name}</span><span class='update-inline-record'></span>{$count_sticky}<span class='star-icon'></span></a></li>";
79
+ }
80
+
81
  $delete_nonce = wp_create_nonce('wcp_folder_delete_term_'.$term->term_id);
82
  $rename_nonce = wp_create_nonce('wcp_folder_rename_term_'.$term->term_id);
83
  $highlight_nonce = wp_create_nonce('wcp_folder_highlight_term_'.$term->term_id);
84
  $term_nonce = wp_create_nonce('wcp_folder_term_'.$term->term_id);
85
+ /* Free/Pro URL Change*/
86
+ $string .= "<li data-nonce='{$term_nonce}' data-star='{$highlight_nonce}' data-rename='{$rename_nonce}' data-delete='{$delete_nonce}' data-slug='{$term->slug}' class='ui-state-default route wcp_folder_{$term->term_id} {$class}' id='wcp_folder_{$term->term_id}' data-folder-id='{$term->term_id}'><h3 class='title' title='{$term->name}' id='title_{$term->term_id}'><span class='ui-icon'><i class='wcp-icon folder-icon-folder'></i><img src='".esc_url(WCP_FOLDER_URL."assets/images/pin.png")."' class='folder-sticky-icon' /><img src='".esc_url(WCP_FOLDER_URL."assets/images/move-option.png")."' class='move-folder-icon' ><input type='checkbox' class='checkbox' value='{$term->term_id}' /> </span><span class='title-text'>{$term->name}</span> <span class='update-inline-record'></span> {$count} <span class='star-icon'></span></h3><span class='nav-icon'><i class='wcp-icon folder-icon-arrow_right'></i></span> <ul class='space' id='space_{$term->term_id}'>";
87
  $string .= $return['string'];
88
  $string .= "</ul></li>";
89
+
90
+ $sticky_string .= $return['sticky_string'];
91
  }
92
  }
93
  return array(
94
  'string' =>$string,
95
+ 'sticky_string' =>$sticky_string,
96
  'child' => $child
97
  );
98
  }
123
  foreach($terms as $term) {
124
  $selected = ($selected_term == $term->term_id)?"selected":"";
125
  $string .= "<option {$selected} value='{$term->term_id}'>{$space}{$term->name}</option>";
126
+ $string .= self::get_folder_option_data($post_type, $term->term_id, trim($space)."- ");
127
  }
128
  }
129
  return $string;
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: galdub, tomeraharon, premio
3
  Tags: folder, folders, organize, pages folders, media library, posts folders, media folders, subfolders, file manager, directories
4
  Requires at least: 3.0.0
5
  Tested up to: 5.4
6
- Stable tag: 2.4.9
7
  Plugin URI: https://premio.io/downloads/folders/
8
 
9
  Folders is a WordPress plugin that will help you quickly organize and manage all of your Pages, Posts and Media library files in folders.
@@ -78,10 +78,12 @@ Digital Agencies: You're creating all sorts of content for your clients daily -
78
  * Compatible with RTL admin panel (such as Hebrew,Arabic etc.)
79
  * Add and remove folders menu from pages, posts, and media
80
  * Minimize the folders area if you need extra space
 
81
 
82
  = FOLDERS PLUGIN PRO FEATURES: =
83
  * <a href="https://premio.io/downloads/folders?utm_source=wporg" target="_blank" title="Folders pro plans"><strong>Upgrade to pro</strong></a> to get unlimited folders :)
84
  * Download any media library folder as Zip: you can download any media library folder as a zip file. Use this feature to organize your website files and download them locally.
 
85
 
86
  = GDPR AND PRIVACY =
87
  Folders plugin is GDPR compliant:
@@ -156,6 +158,9 @@ A live demo for the Folders plugin is available at <a href="https://demo.premio.
156
 
157
  == Changelog ==
158
 
 
 
 
159
  = 2.4.9 =
160
  The Add new page of the media library is not connected to Folders
161
 
3
  Tags: folder, folders, organize, pages folders, media library, posts folders, media folders, subfolders, file manager, directories
4
  Requires at least: 3.0.0
5
  Tested up to: 5.4
6
+ Stable tag: 2.5
7
  Plugin URI: https://premio.io/downloads/folders/
8
 
9
  Folders is a WordPress plugin that will help you quickly organize and manage all of your Pages, Posts and Media library files in folders.
78
  * Compatible with RTL admin panel (such as Hebrew,Arabic etc.)
79
  * Add and remove folders menu from pages, posts, and media
80
  * Minimize the folders area if you need extra space
81
+ * Create media library folders directly when you upload new media files
82
 
83
  = FOLDERS PLUGIN PRO FEATURES: =
84
  * <a href="https://premio.io/downloads/folders?utm_source=wporg" target="_blank" title="Folders pro plans"><strong>Upgrade to pro</strong></a> to get unlimited folders :)
85
  * Download any media library folder as Zip: you can download any media library folder as a zip file. Use this feature to organize your website files and download them locally.
86
+ * Sticky Folders - you can pin your folders to the upper part of the folders navigation area. Use the sticky folders feature to make your most important folders accessible at all times.
87
 
88
  = GDPR AND PRIVACY =
89
  Folders plugin is GDPR compliant:
158
 
159
  == Changelog ==
160
 
161
+ = 2.5 =
162
+ When you use a media library folder in pages and posts, your choice will be stored for next uses. We've also fixed some RTL UI issues. You can also remove the upper folders if you want. We've added an option to bulk move files in the media library in list mode (not using drag and drop).
163
+
164
  = 2.4.9 =
165
  The Add new page of the media library is not connected to Folders
166
 
templates/admin/admin-content.php CHANGED
@@ -121,11 +121,20 @@ if(!empty($post_type)) {
121
  <div class='wcp-container'>
122
  <div class="sticky-wcp-custom-form">
123
  <?php echo $form_html ?>
124
- <div class="header-posts">
125
- <a href="javascript:;" class="all-posts <?php echo esc_attr($active_all_class) ?>"><span class="wcp-icon folder-icon-insert_drive_file"></span> <?php esc_attr_e("All ".$title, WCP_FOLDER ) ?> <span class="total-count"><?php echo $ttpsts ?></span></a>
 
 
 
 
 
126
  </div>
127
- <div class="un-categorised-items <?php echo esc_attr($active) ?>">
128
- <a href="javascript:;" class="un-categorized-posts"><?php esc_attr_e("Unassigned ".$title, WCP_FOLDER) ?> <span class="total-count total-empty"><?php echo $ttemp ?></span> </a>
 
 
 
 
129
  </div>
130
  </div>
131
  <div id="custom-scroll-menu">
121
  <div class='wcp-container'>
122
  <div class="sticky-wcp-custom-form">
123
  <?php echo $form_html ?>
124
+ <div class="top-settings">
125
+ <div class="header-posts">
126
+ <a href="javascript:;" class="all-posts <?php echo esc_attr($active_all_class) ?>"><span class="wcp-icon folder-icon-insert_drive_file"></span> <?php esc_attr_e("All ".$title, WCP_FOLDER ) ?> <span class="total-count"><?php echo $ttpsts ?></span></a>
127
+ </div>
128
+ <div class="un-categorised-items <?php echo esc_attr($active) ?>">
129
+ <a href="javascript:;" class="un-categorized-posts"><?php esc_attr_e("Unassigned ".$title, WCP_FOLDER) ?> <span class="total-count total-empty"><?php echo $ttemp ?></span> </a>
130
+ </div>
131
  </div>
132
+
133
+ <div class="sticky-folders <?php echo (!empty($sticky_string)?"active":"") ?>">
134
+ <div class="sticky-title"><img src='<?php echo WCP_FOLDER_URL ?>assets/images/pin.png' /> Sticky Folders</div>
135
+ <ul>
136
+ <?php echo $sticky_string ?>
137
+ </ul>
138
  </div>
139
  </div>
140
  <div id="custom-scroll-menu">
templates/admin/general-settings.php CHANGED
@@ -108,7 +108,7 @@ defined('ABSPATH') or wp_die('Nope, not accessing this');
108
  <div class="accordion-left">
109
  <table class="form-table">
110
  <?php
111
- $post_types = get_post_types( array(), 'objects' );
112
  $post_array = array("page", "post", "attachment");
113
  foreach ( $post_types as $post_type ) : ?>
114
  <?php
@@ -170,12 +170,12 @@ defined('ABSPATH') or wp_die('Nope, not accessing this');
170
  <?php } endforeach; ?>
171
  <tr>
172
  <th>
173
- <label for="folders_<?php echo esc_attr($post_type->name); ?>" ><?php esc_html_e( 'Show Folders in Menu:', WCP_FOLDER ); ?></label>
174
  </th>
175
  <td>
176
  <?php $val = get_option("folders_show_in_menu"); ?>
177
  <input type="hidden" name="folders_show_in_menu" value="off" />
178
- <input type="checkbox" name="folders_show_in_menu" value="on" <?php echo ($val == "on")?"checked='checked'":"" ?>/>
179
  </td>
180
  </tr>
181
  <!-- Do not make changes here, Only for Free -->
@@ -214,92 +214,92 @@ defined('ABSPATH') or wp_die('Nope, not accessing this');
214
  <div class="accordion-content">
215
  <div class="accordion-left">
216
  <table class="form-table">
217
- <?php
218
- $color = !isset($customize_folders['new_folder_color'])||empty($customize_folders['new_folder_color'])?"#F51366":$customize_folders['new_folder_color'];
219
- ?>
220
- <tr>
221
- <th width="220px">
222
- <label for="new_folder_color" >New Folder button color</label>
223
- </th>
224
- <td width="32px">
225
- <input type="text" class="color-field" name="customize_folders[new_folder_color]" id="new_folder_color" value="<?php echo esc_attr($color) ?>" />
226
- </td>
227
- <td rowspan="4" >
228
 
229
- </td>
230
- </tr>
231
- <?php
232
- $color = !isset($customize_folders['bulk_organize_button_color'])||empty($customize_folders['bulk_organize_button_color'])?"#F51366":$customize_folders['bulk_organize_button_color'];
233
- ?>
234
- <tr>
235
- <th>
236
- <label for="bulk_organize_button_color" >Bulk Organize button color</label>
237
- </th>
238
- <td>
239
- <input type="text" class="color-field" name="customize_folders[bulk_organize_button_color]" id="bulk_organize_button_color" value="<?php echo esc_attr($color) ?>" />
240
- </td>
241
- </tr>
242
- <?php
243
- $color = !isset($customize_folders['dropdown_color'])||empty($customize_folders['dropdown_color'])?"#F51366":$customize_folders['dropdown_color'];
244
- ?>
245
- <tr>
246
- <th>
247
- <label for="dropdown_color" >Dropdown color</label>
248
- </th>
249
- <td>
250
- <input type="text" class="color-field" name="customize_folders[dropdown_color]" id="dropdown_color" value="<?php echo esc_attr($color) ?>" />
251
- </td>
252
- </tr>
253
- <?php
254
- $color = !isset($customize_folders['folder_bg_color'])||empty($customize_folders['folder_bg_color'])?"#008ec2":$customize_folders['folder_bg_color'];
255
- ?>
256
- <tr>
257
- <th>
258
- <label for="folder_bg_color" >Folders background color</label>
259
- </th>
260
- <td>
261
- <input type="text" class="color-field" name="customize_folders[folder_bg_color]" id="folder_bg_color" value="<?php echo esc_attr($color) ?>" />
262
- </td>
263
- </tr>
264
- <tr>
265
- <th>
266
- <label for="folder_font" >Folders font</label>
267
- </th>
268
- <td colspan="2">
269
- <?php
270
- $font = !isset($customize_folders['folder_font'])||empty($customize_folders['folder_font'])?"":$customize_folders['folder_font'];
271
- $index = 0;
272
- ?>
273
- <select name="customize_folders[folder_font]" id="folder_font" >
274
- <?php $group = '';
275
- foreach ($fonts as $key => $value):
276
- $title = $key;
277
- if($index == 0) {
278
- $key = "";
279
- }
280
- $index++;
281
- if ($value != $group) {
282
- echo '<optgroup label="' . $value . '">';
283
- $group = $value;
284
- }
285
- ?>
286
- <option value="<?php echo $key; ?>" <?php selected($font, $key); ?>><?php echo $title; ?></option>
287
- <?php endforeach; ?>
288
- </select>
289
- </td>
290
- </tr>
291
- <tr>
292
- <th>
293
- <label for="folder_size" >Folders size</label>
294
- </th>
295
- <td colspan="2">
296
- <?php
297
- $sizes = array(
298
- "12" => "Small",
299
- "16" => "Medium",
300
- "20" => "Large"
301
- );
302
- $size = !isset($customize_folders['folder_size'])||empty($customize_folders['folder_size'])?"16":$customize_folders['folder_size'];
303
  ?>
304
  <select name="customize_folders[folder_size]" id="folder_size" >
305
  <?php
@@ -311,6 +311,19 @@ defined('ABSPATH') or wp_die('Nope, not accessing this');
311
  </select>
312
  </td>
313
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
314
  </table>
315
  </div>
316
  <div class="accordion-right">
108
  <div class="accordion-left">
109
  <table class="form-table">
110
  <?php
111
+ $post_types = get_post_types( array( ), 'objects' );
112
  $post_array = array("page", "post", "attachment");
113
  foreach ( $post_types as $post_type ) : ?>
114
  <?php
170
  <?php } endforeach; ?>
171
  <tr>
172
  <th>
173
+ <label for="folders_show_in_menu" ><?php esc_html_e( 'Show Folders in Menu:', WCP_FOLDER ); ?></label>
174
  </th>
175
  <td>
176
  <?php $val = get_option("folders_show_in_menu"); ?>
177
  <input type="hidden" name="folders_show_in_menu" value="off" />
178
+ <input type="checkbox" id="folders_show_in_menu" name="folders_show_in_menu" value="on" <?php echo ($val == "on")?"checked='checked'":"" ?>/>
179
  </td>
180
  </tr>
181
  <!-- Do not make changes here, Only for Free -->
214
  <div class="accordion-content">
215
  <div class="accordion-left">
216
  <table class="form-table">
217
+ <?php
218
+ $color = !isset($customize_folders['new_folder_color'])||empty($customize_folders['new_folder_color'])?"#F51366":$customize_folders['new_folder_color'];
219
+ ?>
220
+ <tr>
221
+ <th width="220px">
222
+ <label for="new_folder_color" >New Folder button color</label>
223
+ </th>
224
+ <td width="32px">
225
+ <input type="text" class="color-field" name="customize_folders[new_folder_color]" id="new_folder_color" value="<?php echo esc_attr($color) ?>" />
226
+ </td>
227
+ <td rowspan="4" >
228
 
229
+ </td>
230
+ </tr>
231
+ <?php
232
+ $color = !isset($customize_folders['bulk_organize_button_color'])||empty($customize_folders['bulk_organize_button_color'])?"#F51366":$customize_folders['bulk_organize_button_color'];
233
+ ?>
234
+ <tr>
235
+ <th>
236
+ <label for="bulk_organize_button_color" >Bulk Organize button color</label>
237
+ </th>
238
+ <td>
239
+ <input type="text" class="color-field" name="customize_folders[bulk_organize_button_color]" id="bulk_organize_button_color" value="<?php echo esc_attr($color) ?>" />
240
+ </td>
241
+ </tr>
242
+ <?php
243
+ $color = !isset($customize_folders['dropdown_color'])||empty($customize_folders['dropdown_color'])?"#F51366":$customize_folders['dropdown_color'];
244
+ ?>
245
+ <tr>
246
+ <th>
247
+ <label for="dropdown_color" >Dropdown color</label>
248
+ </th>
249
+ <td>
250
+ <input type="text" class="color-field" name="customize_folders[dropdown_color]" id="dropdown_color" value="<?php echo esc_attr($color) ?>" />
251
+ </td>
252
+ </tr>
253
+ <?php
254
+ $color = !isset($customize_folders['folder_bg_color'])||empty($customize_folders['folder_bg_color'])?"#008ec2":$customize_folders['folder_bg_color'];
255
+ ?>
256
+ <tr>
257
+ <th>
258
+ <label for="folder_bg_color" >Folders background color</label>
259
+ </th>
260
+ <td>
261
+ <input type="text" class="color-field" name="customize_folders[folder_bg_color]" id="folder_bg_color" value="<?php echo esc_attr($color) ?>" />
262
+ </td>
263
+ </tr>
264
+ <tr>
265
+ <th>
266
+ <label for="folder_font" >Folders font</label>
267
+ </th>
268
+ <td colspan="2">
269
+ <?php
270
+ $font = !isset($customize_folders['folder_font'])||empty($customize_folders['folder_font'])?"":$customize_folders['folder_font'];
271
+ $index = 0;
272
+ ?>
273
+ <select name="customize_folders[folder_font]" id="folder_font" >
274
+ <?php $group = '';
275
+ foreach ($fonts as $key => $value):
276
+ $title = $key;
277
+ if($index == 0) {
278
+ $key = "";
279
+ }
280
+ $index++;
281
+ if ($value != $group) {
282
+ echo '<optgroup label="' . $value . '">';
283
+ $group = $value;
284
+ }
285
+ ?>
286
+ <option value="<?php echo $key; ?>" <?php selected($font, $key); ?>><?php echo $title; ?></option>
287
+ <?php endforeach; ?>
288
+ </select>
289
+ </td>
290
+ </tr>
291
+ <tr>
292
+ <th>
293
+ <label for="folder_size" >Folders size</label>
294
+ </th>
295
+ <td colspan="2">
296
+ <?php
297
+ $sizes = array(
298
+ "12" => "Small",
299
+ "16" => "Medium",
300
+ "20" => "Large"
301
+ );
302
+ $size = !isset($customize_folders['folder_size'])||empty($customize_folders['folder_size'])?"16":$customize_folders['folder_size'];
303
  ?>
304
  <select name="customize_folders[folder_size]" id="folder_size" >
305
  <?php
311
  </select>
312
  </td>
313
  </tr>
314
+ <?php
315
+ $show_in_page = !isset($customize_folders['show_in_page'])||empty($customize_folders['show_in_page'])?"show":$customize_folders['show_in_page'];
316
+ if(empty($show_in_page)) {
317
+ $show_in_page = "show";
318
+ }
319
+ ?>
320
+ <tr>
321
+ <th><label for="">Show Folders in upper position</label></th>
322
+ <td colspan="2">
323
+ <input type="hidden" name="customize_folders[show_in_page]" value="hide">
324
+ <input <?php checked($show_in_page, "show") ?> type="checkbox" name="customize_folders[show_in_page]" value="show">
325
+ </td>
326
+ </tr>
327
  </table>
328
  </div>
329
  <div class="accordion-right">
templates/admin/upgrade-to-pro.php CHANGED
@@ -33,6 +33,7 @@ $pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opt
33
  <div class="rpt_feature rpt_feature_0-3"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can create additional 2 tires of sub-folders</span>Sub-folders<span class="rpt_tooltip_plus"> +</span></a></div>
34
  <div class="rpt_feature rpt_feature_0-4"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can create unlimited folders and sub-folders. On the Free plan it is limited to 10 folders in total</span>Unlimited folders<span class="rpt_tooltip_plus"> +</span></a></div>
35
  <div class="rpt_feature rpt_feature_0-4"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can use this feature to download all the content of any media library folder as a ZIP file.</span>Download folders as ZIP<span class="rpt_tooltip_plus"> +</span></a></div>
 
36
  <div class="rpt_feature rpt_feature_0-5">
37
  <select data-key="0" class="multiple-options">
38
  <option data-header="Renewals for 25% off" data-price="25" value="<?php echo esc_url($pro_url."1") ?>">
@@ -73,6 +74,7 @@ $pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opt
73
  <div class="rpt_feature rpt_feature_0-3"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can create additional 2 tires of sub-folders</span>Sub-folders<span class="rpt_tooltip_plus"> +</span></a></div>
74
  <div class="rpt_feature rpt_feature_0-4"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can create unlimited folders and sub-folders. On the Free plan it is limited to 10 folders in total</span>Unlimited folders<span class="rpt_tooltip_plus"> +</span></a></div>
75
  <div class="rpt_feature rpt_feature_0-4"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can use this feature to download all the content of any media library folder as a ZIP file.</span>Download folders as ZIP<span class="rpt_tooltip_plus"> +</span></a></div>
 
76
  <div class="rpt_feature rpt_feature_0-5">
77
  <select data-key="0" class="multiple-options">
78
  <option data-header="Renewals for 25% off" data-price="59" value="<?php echo esc_url($pro_url."2") ?>">
@@ -121,6 +123,7 @@ $pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opt
121
  <div class="rpt_feature rpt_feature_0-3"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can create additional 2 tires of sub-folders</span>Sub-folders<span class="rpt_tooltip_plus"> +</span></a></div>
122
  <div class="rpt_feature rpt_feature_0-4"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can create unlimited folders and sub-folders. On the Free plan it is limited to 10 folders in total</span>Unlimited folders<span class="rpt_tooltip_plus"> +</span></a></div>
123
  <div class="rpt_feature rpt_feature_0-4"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can use this feature to download all the content of any media library folder as a ZIP file.</span>Download folders as ZIP<span class="rpt_tooltip_plus"> +</span></a></div>
 
124
  <div class="rpt_feature rpt_feature_0-5">
125
  <select data-key="0" class="multiple-options has-multiple-websites">
126
  <option data-option="1_year" data-header="Renewals for 25% off" data-price="99" value="<?php echo esc_url($pro_url."10") ?>">
33
  <div class="rpt_feature rpt_feature_0-3"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can create additional 2 tires of sub-folders</span>Sub-folders<span class="rpt_tooltip_plus"> +</span></a></div>
34
  <div class="rpt_feature rpt_feature_0-4"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can create unlimited folders and sub-folders. On the Free plan it is limited to 10 folders in total</span>Unlimited folders<span class="rpt_tooltip_plus"> +</span></a></div>
35
  <div class="rpt_feature rpt_feature_0-4"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can use this feature to download all the content of any media library folder as a ZIP file.</span>Download folders as ZIP<span class="rpt_tooltip_plus"> +</span></a></div>
36
+ <div class="rpt_feature rpt_feature_0-4"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Pin selected folders to the upper part of the folders navigation area for easy access.</span>Sticky Folders<span class="rpt_tooltip_plus"> +</span></a></div>
37
  <div class="rpt_feature rpt_feature_0-5">
38
  <select data-key="0" class="multiple-options">
39
  <option data-header="Renewals for 25% off" data-price="25" value="<?php echo esc_url($pro_url."1") ?>">
74
  <div class="rpt_feature rpt_feature_0-3"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can create additional 2 tires of sub-folders</span>Sub-folders<span class="rpt_tooltip_plus"> +</span></a></div>
75
  <div class="rpt_feature rpt_feature_0-4"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can create unlimited folders and sub-folders. On the Free plan it is limited to 10 folders in total</span>Unlimited folders<span class="rpt_tooltip_plus"> +</span></a></div>
76
  <div class="rpt_feature rpt_feature_0-4"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can use this feature to download all the content of any media library folder as a ZIP file.</span>Download folders as ZIP<span class="rpt_tooltip_plus"> +</span></a></div>
77
+ <div class="rpt_feature rpt_feature_0-4"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Pin selected folders to the upper part of the folders navigation area for easy access.</span>Sticky Folders<span class="rpt_tooltip_plus"> +</span></a></div>
78
  <div class="rpt_feature rpt_feature_0-5">
79
  <select data-key="0" class="multiple-options">
80
  <option data-header="Renewals for 25% off" data-price="59" value="<?php echo esc_url($pro_url."2") ?>">
123
  <div class="rpt_feature rpt_feature_0-3"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can create additional 2 tires of sub-folders</span>Sub-folders<span class="rpt_tooltip_plus"> +</span></a></div>
124
  <div class="rpt_feature rpt_feature_0-4"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can create unlimited folders and sub-folders. On the Free plan it is limited to 10 folders in total</span>Unlimited folders<span class="rpt_tooltip_plus"> +</span></a></div>
125
  <div class="rpt_feature rpt_feature_0-4"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can use this feature to download all the content of any media library folder as a ZIP file.</span>Download folders as ZIP<span class="rpt_tooltip_plus"> +</span></a></div>
126
+ <div class="rpt_feature rpt_feature_0-4"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Pin selected folders to the upper part of the folders navigation area for easy access.</span>Sticky Folders<span class="rpt_tooltip_plus"> +</span></a></div>
127
  <div class="rpt_feature rpt_feature_0-5">
128
  <select data-key="0" class="multiple-options has-multiple-websites">
129
  <option data-option="1_year" data-header="Renewals for 25% off" data-price="99" value="<?php echo esc_url($pro_url."10") ?>">