Version Description
Unlimited folders are now available in the free version We've also added an option to purge all plugin's data on removal + fixed some bugs
Download this release
Release Info
Developer | galdub |
Plugin | Folders – Unlimited Folders to Organize Media Library Folder, Pages, Posts, File Manager |
Version | 2.6.8 |
Comparing to | |
See all releases |
Code changes from version 2.6.7 to 2.6.8
- assets/css/admin-setting.css +1 -1
- assets/css/design.css +69 -7
- assets/css/design.min.css +1 -1
- assets/css/folders.css +54 -0
- assets/css/folders.min.css +1 -1
- assets/css/jquery.mcustomscrollbar.min.css +1297 -0
- assets/css/jstree.css +54 -0
- assets/css/jstree.min.css +1 -1
- assets/css/media.css +1 -1
- assets/css/page-post-media.css +183 -20
- assets/css/page-post-media.min.css +1 -1
- assets/css/replace-media.css +1 -1
- assets/css/settings.css +1 -954
- assets/images/folders-media.gif +0 -0
- assets/js/folders.js +92 -31
- assets/js/folders.min.js +1 -1
- assets/js/jquery.mcustomscrollbar.min.js +3 -0
- assets/js/jquery.mousewheel.min.js +8 -0
- assets/js/page-post-media.js +127 -23
- assets/js/page-post-media.min.js +1 -1
- assets/js/replace-media.js +18 -3
- folders.php +75 -2
- includes/folders.class.php +267 -104
- includes/form.class.php +25 -22
- includes/media.replace.php +65 -23
- includes/plugins.class.php +0 -23
- readme.txt +42 -29
- templates/admin/admin-content.php +169 -84
- templates/admin/general-settings.php +1365 -718
- templates/admin/media-replace.php +13 -3
- templates/admin/upgrade-table.php +163 -61
assets/css/admin-setting.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
@import url(https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap);*,:after,:before{box-sizing:border-box}#wpwrap{background:#6572db;background:-moz-linear-gradient(-45deg,#6572db 0,#ee86c6 67%,#ee86c6 100%);background:-webkit-gradient(left top,right bottom,color-stop(0,#6572db),color-stop(67%,#ee86c6),color-stop(100%,#ee86c6));background:-webkit-linear-gradient(-45deg,#6572db 0,#ee86c6 67%,#ee86c6 100%);background:-o-linear-gradient(-45deg,#6572db 0,#ee86c6 67%,#ee86c6 100%);background:-ms-linear-gradient(-45deg,#6572db 0,#ee86c6 67%,#ee86c6 100%);background:linear-gradient(135deg,#6572db 0,#ee86c6 67%,#ee86c6 100%)}.pricing-table{margin:0 0 45px;color:#28375a;font-size:16px;line-height:25px;font-family:Lato,sans-serif}.price-title{font-weight:700;font-size:24px;line-height:30px;color:#28375a;text-align:center}.price-table{background:#fff;box-sizing:border-box;border-radius:10px}.price-table-top{padding:20px;position:relative;border-radius:10px}.price-table.basic-feature{box-shadow:0 12px 44px rgba(108,203,255,.2);border:2px solid #b9eafd}.price-table.basic-feature .price-table-top{background:url(../images/basic-price-bg.png) no-repeat left top}.price-table.plus-feature{border:2px solid #f9d9bd;box-shadow:0 12px 44px rgba(239,140,106,.2)}.price-table.plus-feature .price-table-top{background:url(../images/plus-price.png) no-repeat left top}.price-table.agency-feature{border:2px solid #cfd3fb;box-shadow:0 12px 44px rgba(96,93,236,.2)}.price-table.agency-feature .price-table-top{background:url(../images/agency-price.png) no-repeat left top}.price-tables{margin:30px 0 50px}.plan-name{font-size:30px;line-height:36px;font-weight:700;color:#28375a}.plan-price{position:absolute;right:18px;top:8px;font-weight:700;font-size:60px;line-height:72px;color:#42b9fa}.price-table.plus-feature .plan-price{color:#ef8c6a}.price-table.agency-feature .plan-price{color:#605dec}.price-table.agency-feature .plan-name{color:#fff}.price-head{line-height:72px;padding:5px 0 25px 0}.price-offer,.price-websites{line-height:18px;font-size:15px}.cus-tooltip{cursor:pointer;display:inline-block;position:relative}.cus-tooltip .tooltip__content{background-color:#1849ab;border-radius:4px;bottom:150%;color:#fff;left:0;margin-left:15px;opacity:0;padding:5px 10px;position:absolute;transition:opacity .25s;visibility:hidden;width:auto;z-index:1;text-align:left;margin-right:15px;font-size:14px;line-height:20px}.cus-tooltip .tooltip__content::after{border-width:5px;border-style:solid;border-color:#1849ab transparent transparent transparent;content:"";left:25px;margin-left:-5px;position:absolute;top:100%}.cus-tooltip:hover .tooltip__content{opacity:1;visibility:visible}.price-table-middle ul{list-style:none;margin:0;padding:0}.price-table-middle ul li{display:block;width:100%;border-bottom:solid 1px #e9e9e9;padding:15px 0;margin:0}.price-table-middle ul li a{padding:0 15px;color:#28375a;font-size:16px;line-height:19px;display:block;text-decoration:none}span.has-tooltip{color:#605dec}.price-table-bottom{padding:15px}.custom-dd-btn{background:#fff;border:1px solid #e9e9e9;border-radius:6px;height:40px;line-height:40px;width:100%;text-align:left;padding:0 15px}.custom-dd{margin-bottom:15px}.price-table-bottom a{background:#fff;border:1px solid #42b9fa;color:#42b9fa;border-radius:20px;height:40px;line-height:38px;padding:0 15px;display:block;text-align:center;transition:all .25s linear}.price-table-bottom a:hover{color:#fff;background:#42b9fa}.price-table.plus-feature .price-table-bottom a{background:#ef8c6a;border:1px solid #ef8c6a;color:#fff}.price-table.plus-feature .price-table-bottom a:hover{background:#fff;color:#ef8c6a}.price-table.agency-feature .price-table-bottom a{background:#fff;border:1px solid #605dec;color:#605dec}.price-table.agency-feature .price-table-bottom a:hover{background:#605dec;color:#fff}.container{max-width:1180px;width:100%;padding:30px;background:#fff;border-radius:15px;margin:50px auto}.row{margin-right:-15px;margin-left:-15px}.col-md-4{padding-right:15px;padding-left:15px;width:33.33333333%;float:left}.select2-container--default .select2-selection--single{background:#fff;border:1px solid #e9e9e9;border-radius:6px;height:40px;line-height:40px;width:100%;text-align:left;padding:0 15px;outline:0}span.select2.select2-container{width:100%!important}.website-package{padding:0 15px;line-height:18px}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:#fff}.website-package .select2-container--default .select2-results>.select2-results__options{margin-top:5px}.custom-dd .select2-container--default .select2-selection--single .select2-selection__arrow{height:20px;top:10px;right:1px;width:20px}@media (min-width:768px){.col-sm-4{width:100%;float:none}}a,a:focus,a:hover{text-decoration:none}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:38px}.select2-results__option{user-select:none;-webkit-user-select:none;font-size:14px;padding:8px 25px;margin:0}.select2-dropdown{border:1px solid #e9e9e9}.price-after{padding:0;text-align:center;font-size:16px;line-height:25px;font-family:Lato,sans-serif}.price-after p,.price-after span{font-size:16px;line-height:25px;margin:0;padding:0}.clearfix{clear:both}.price-after span{display:inline-block;vertical-align:text-top;font-size:20px;color:#42b9fa}.payments{padding:20px 0 10px}.folder-testimonial-list{width:100%;margin:30px auto 0;font-family:Lato,sans-serif}.folder-testimonial{position:relative}.folder-testimonial .testimonial-image{position:absolute;height:60px;width:60px;top:50%;margin-top:-30px;z-index:1;overflow:hidden;border-radius:30px}.folder-testimonial .testimonial-image img{width:100%;height:auto}.folder-testimonial .testimonial-data{position:relative;margin-left:30px;font-size:16px;line-height:22px;padding:10px 10px 10px 40px;background:#f5f5f5;border-radius:4px}.testimonial-title{font-weight:700;font-size:18px;padding:0 0 5px}.testimonial-author{font-size:16px;font-style:italic;font-weight:500;padding:5px 0 0}.plan-price span{font-size:16px;color:#28375a}.price-table-middle{margin-top:
|
1 |
+
@import url(https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap);*,:after,:before{box-sizing:border-box}#wpwrap{background:#6572db;background:-moz-linear-gradient(-45deg,#6572db 0,#ee86c6 67%,#ee86c6 100%);background:-webkit-gradient(left top,right bottom,color-stop(0,#6572db),color-stop(67%,#ee86c6),color-stop(100%,#ee86c6));background:-webkit-linear-gradient(-45deg,#6572db 0,#ee86c6 67%,#ee86c6 100%);background:-o-linear-gradient(-45deg,#6572db 0,#ee86c6 67%,#ee86c6 100%);background:-ms-linear-gradient(-45deg,#6572db 0,#ee86c6 67%,#ee86c6 100%);background:linear-gradient(135deg,#6572db 0,#ee86c6 67%,#ee86c6 100%)}.pricing-table{margin:0 0 45px;color:#28375a;font-size:16px;line-height:25px;font-family:Lato,sans-serif}.price-title{font-weight:700;font-size:24px;line-height:30px;color:#28375a;text-align:center}.price-table{background:#fff;box-sizing:border-box;border-radius:10px;position:relative}.price-table-top{padding:20px;position:relative;border-radius:10px}.price-table.basic-feature{box-shadow:0 12px 44px rgba(108,203,255,.2);border:2px solid #b9eafd}.price-table.basic-feature .price-table-top{background:url(../images/basic-price-bg.png) no-repeat left top}.price-table.plus-feature{border:2px solid #f9d9bd;box-shadow:0 12px 44px rgba(239,140,106,.2)}.price-table.plus-feature .price-table-top{background:url(../images/plus-price.png) no-repeat left top}.price-table.agency-feature{border:2px solid #cfd3fb;box-shadow:0 12px 44px rgba(96,93,236,.2)}.price-table.agency-feature .price-table-top{background:url(../images/agency-price.png) no-repeat left top}.price-tables{margin:30px 0 50px}.plan-name{font-size:30px;line-height:36px;font-weight:700;color:#28375a}.plan-price{position:absolute;right:18px;top:8px;font-weight:700;font-size:60px;line-height:72px;color:#42b9fa}.price-table.plus-feature .plan-price{color:#ef8c6a}.price-table.agency-feature .plan-price{color:#605dec}.price-table.agency-feature .plan-name{color:#fff}.price-head{line-height:72px;padding:5px 0 25px 0}.price-offer,.price-websites{line-height:18px;font-size:15px}.cus-tooltip{cursor:pointer;display:inline-block;position:relative}.cus-tooltip .tooltip__content{background-color:#1849ab;border-radius:4px;bottom:150%;color:#fff;left:0;margin-left:15px;opacity:0;padding:5px 10px;position:absolute;transition:opacity .25s;visibility:hidden;width:auto;z-index:1;text-align:left;margin-right:15px;font-size:14px;line-height:20px}.cus-tooltip .tooltip__content::after{border-width:5px;border-style:solid;border-color:#1849ab transparent transparent transparent;content:"";left:25px;margin-left:-5px;position:absolute;top:100%}.cus-tooltip:hover .tooltip__content{opacity:1;visibility:visible}.price-table-middle ul{list-style:none;margin:0;padding:0}.price-table-middle ul li{display:block;width:100%;border-bottom:solid 1px #e9e9e9;padding:15px 0;margin:0}.price-table-middle ul li a{padding:0 15px;color:#28375a;font-size:16px;line-height:19px;display:block;text-decoration:none}span.has-tooltip{color:#605dec}.price-table-bottom{padding:15px}.price-table.is-fixed{padding-bottom:140px;position:relative}.price-table.is-fixed .price-table-bottom{position:fixed;left:0;width:100%;border-top:solid 2px #e9e9e9;background:#fff}.bottom-position{position:absolute;left:0;bottom:0;height:1px;width:1px}.custom-dd-btn{background:#fff;border:1px solid #e9e9e9;border-radius:6px;height:40px;line-height:40px;width:100%;text-align:left;padding:0 15px}.custom-dd{margin-bottom:15px}.price-table-bottom a{background:#fff;border:1px solid #42b9fa;color:#42b9fa;border-radius:20px;height:40px;line-height:38px;padding:0 15px;display:block;text-align:center;transition:all .25s linear}.price-table-bottom a:hover{color:#fff;background:#42b9fa}.price-table.plus-feature .price-table-bottom a{background:#ef8c6a;border:1px solid #ef8c6a;color:#fff}.price-table.plus-feature .price-table-bottom a:hover{background:#fff;color:#ef8c6a}.price-table.agency-feature .price-table-bottom a{background:#fff;border:1px solid #605dec;color:#605dec}.price-table.agency-feature .price-table-bottom a:hover{background:#605dec;color:#fff}.container{max-width:1180px;width:100%;padding:30px;background:#fff;border-radius:15px;margin:50px auto}.row{margin-right:-15px;margin-left:-15px}.col-md-4{padding-right:15px;padding-left:15px;width:33.33333333%;float:left}.select2-container--default .select2-selection--single{background:#fff;border:1px solid #e9e9e9;border-radius:6px;height:40px;line-height:40px;width:100%;text-align:left;padding:0 15px;outline:0}span.select2.select2-container{width:100%!important}.website-package{padding:0 15px;line-height:18px}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:#fff}.website-package .select2-container--default .select2-results>.select2-results__options{margin-top:5px}.custom-dd .select2-container--default .select2-selection--single .select2-selection__arrow{height:20px;top:10px;right:1px;width:20px}@media (min-width:768px){.col-sm-4{width:100%;float:none}}a,a:focus,a:hover{text-decoration:none}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:38px}.select2-results__option{user-select:none;-webkit-user-select:none;font-size:14px;padding:8px 25px;margin:0}.select2-dropdown{border:1px solid #e9e9e9}.price-after{padding:0;text-align:center;font-size:16px;line-height:25px;font-family:Lato,sans-serif}.price-after p,.price-after span{font-size:16px;line-height:25px;margin:0;padding:0}.clearfix{clear:both}.price-after span{display:inline-block;vertical-align:text-top;font-size:20px;color:#42b9fa}.payments{padding:20px 0 10px}.folder-testimonial-list{width:100%;margin:30px auto 0;font-family:Lato,sans-serif}.folder-testimonial{position:relative}.folder-testimonial .testimonial-image{position:absolute;height:60px;width:60px;top:50%;margin-top:-30px;z-index:1;overflow:hidden;border-radius:30px}.folder-testimonial .testimonial-image img{width:100%;height:auto}.folder-testimonial .testimonial-data{position:relative;margin-left:30px;font-size:16px;line-height:22px;padding:10px 10px 10px 40px;background:#f5f5f5;border-radius:4px}.testimonial-title{font-weight:700;font-size:18px;padding:0 0 5px}.testimonial-author{font-size:16px;font-style:italic;font-weight:500;padding:5px 0 0}.plan-price span{font-size:16px;color:#28375a}.price-table-middle{margin-top:21px}.agency-feature .price-table-middle{margin-top:0}.website-package .select2-container--default .select2-selection--single{border:1px solid #6156f6;box-shadow:0 12px 44px rgba(96,93,236,.2)}.website-package .select2-container--default .select2-selection--single .select2-selection__rendered{color:#6156f6}.website-package .select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#6156f6 transparent transparent transparent}.website-package .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #6156f6 transparent;border-width:0 4px 5px 4px}.folders-tabs{max-width:inherit}.basic-feature .price-table-bottom .select2-container--default .select2-selection--single{border:1px solid #42b9fa;box-shadow:0 12px 44px rgba(66,182,250,.2)}.basic-feature .select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#42b9fa transparent transparent transparent}.plus-feature .price-table-bottom .select2-container--default .select2-selection--single{border:1px solid #ef8c6a;box-shadow:0 12px 44px rgba(239,140,106,.2)}.plus-feature .select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#ef8c6a transparent transparent transparent}.agency-feature .price-table-bottom .select2-container--default .select2-selection--single{border:1px solid #6156f6;box-shadow:0 12px 44px rgba(96,93,236,.2)}.agency-feature .select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#6156f6 transparent transparent transparent}.basic-feature.price-table.is-fixed .price-table-bottom{border-color:#b9eafd}.plus-feature.price-table.is-fixed .price-table-bottom{border-color:#f9d9bd}.agency-feature.price-table.is-fixed .price-table-bottom{border-color:#cfd3fb}@media (max-width:1320px){.plan-price{font-size:50px;line-height:64px}}@media (max-width:1200px){.plan-price{font-size:40px;line-height:54px}}@media (max-width:1100px){.plan-name{font-size:24px;line-height:36px}}@media (max-width:1024px){.plan-price{font-size:30px;line-height:54px;top:15px}}@media (max-width:920px){.col-md-4{padding-left:5px;padding-right:5px}}@media (max-width:840px){.col-md-4{padding:0;width:auto;margin:0 auto 30px;float:none;padding-left:15px;padding-right:15px}.plan-price{font-size:50px;line-height:64px}.price-table.is-fixed{padding-bottom:15px;position:relative}.price-table.is-fixed .price-table-bottom{position:relative;left:0;width:100%;border-top:none;background:#fff;top:auto!important;left:auto!important;width:100%!important}}
|
assets/css/design.css
CHANGED
@@ -525,6 +525,12 @@ span.total-count {
|
|
525 |
width: 20px !important;
|
526 |
height: 20px !important;
|
527 |
line-height: 14px;
|
|
|
|
|
|
|
|
|
|
|
|
|
528 |
}
|
529 |
#custom-menu .dynamic-menu ul > li > a .sticky-pin {
|
530 |
line-height: 20px;
|
@@ -541,7 +547,7 @@ span.total-count {
|
|
541 |
vertical-align: baseline;
|
542 |
display: inline
|
543 |
}
|
544 |
-
.dynamic-menu li.new-folder {
|
545 |
border-bottom: solid 1px #d8d8d8
|
546 |
}
|
547 |
.dynamic-menu a:hover, .dynamic-menu a.active {
|
@@ -896,6 +902,13 @@ span.upgrade-message a.pink, span.upgrade-message span.pink {
|
|
896 |
text-decoration: none;
|
897 |
font-weight: 700
|
898 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
899 |
.media-toolbar.sticky-media {
|
900 |
position: fixed;
|
901 |
top: 32px;
|
@@ -1108,7 +1121,7 @@ span.media-info-message.active {
|
|
1108 |
border-radius: 4px;
|
1109 |
color: #484848;
|
1110 |
}
|
1111 |
-
.folder-form-buttons a, .folder-form-buttons button {
|
1112 |
display: inline-flex;
|
1113 |
padding: 0;
|
1114 |
text-decoration: none;
|
@@ -1124,6 +1137,15 @@ span.media-info-message.active {
|
|
1124 |
flex: 1;
|
1125 |
justify-content: center;
|
1126 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1127 |
.folder-form-buttons a span, .folder-form-buttons button span {
|
1128 |
-webkit-animation: fa-spin .75s infinite linear;
|
1129 |
animation: fa-spin .75s infinite linear;
|
@@ -1230,8 +1252,8 @@ span.media-info-message.active {
|
|
1230 |
display: block;
|
1231 |
position: relative;
|
1232 |
max-width: 100%;
|
1233 |
-
margin: 0
|
1234 |
-
padding: 0;
|
1235 |
color: #595959;
|
1236 |
text-align: center;
|
1237 |
text-transform: none;
|
@@ -1240,10 +1262,21 @@ span.media-info-message.active {
|
|
1240 |
font-size: 22px;
|
1241 |
line-height: 26px;
|
1242 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1243 |
.folder-form-message {
|
1244 |
font-size: 15px;
|
1245 |
line-height: 18px;
|
1246 |
-
color: #
|
1247 |
padding: 25px 70px;
|
1248 |
}
|
1249 |
.folder-form-errors {
|
@@ -1593,6 +1626,17 @@ span.folder-count:empty {
|
|
1593 |
box-shadow: 0 0 5px 0 rgba(0, 0, 0, .25);
|
1594 |
display: none;
|
1595 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1596 |
.folder-order.active .folder-sort-menu {
|
1597 |
display: block;
|
1598 |
}
|
@@ -1628,13 +1672,16 @@ span.folder-count:empty {
|
|
1628 |
.folder-form-buttons {
|
1629 |
display: flex;
|
1630 |
}
|
|
|
|
|
|
|
1631 |
.folder-group {
|
1632 |
position: relative;
|
1633 |
-
margin:
|
1634 |
padding: 0 2px;
|
1635 |
}
|
1636 |
.add-folder-note {
|
1637 |
-
padding:
|
1638 |
}
|
1639 |
.folder-grouptextarea {
|
1640 |
resize: none;
|
@@ -1705,6 +1752,12 @@ span.folder-count:empty {
|
|
1705 |
transition: 300ms ease all;
|
1706 |
left: 0%;
|
1707 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
1708 |
#custom-menu [class^="pfolder-"], #custom-menu [class*=" pfolder-"], .sticky-folders i {
|
1709 |
font-size: 12px;
|
1710 |
}
|
@@ -1795,6 +1848,15 @@ body:not(.woocommerce-page) .wp-list-table th {
|
|
1795 |
width: 100%;
|
1796 |
max-width: inherit;
|
1797 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1798 |
@media screen and (max-width: 960px) {
|
1799 |
.wcp-content {
|
1800 |
left: 36px
|
525 |
width: 20px !important;
|
526 |
height: 20px !important;
|
527 |
line-height: 14px;
|
528 |
+
text-align: center;
|
529 |
+
}
|
530 |
+
|
531 |
+
.dynamic-menu ul > li > a >span.dashicons {
|
532 |
+
font-size: 18px;
|
533 |
+
text-align: left;
|
534 |
}
|
535 |
#custom-menu .dynamic-menu ul > li > a .sticky-pin {
|
536 |
line-height: 20px;
|
547 |
vertical-align: baseline;
|
548 |
display: inline
|
549 |
}
|
550 |
+
.dynamic-menu li.new-folder, .dynamic-menu li.new-folder-pro {
|
551 |
border-bottom: solid 1px #d8d8d8
|
552 |
}
|
553 |
.dynamic-menu a:hover, .dynamic-menu a.active {
|
902 |
text-decoration: none;
|
903 |
font-weight: 700
|
904 |
}
|
905 |
+
span.upgrade-message a.pink span.dashicons, span.upgrade-message span.pink span.dashicons {
|
906 |
+
width: 16px;
|
907 |
+
height: 16px;
|
908 |
+
font-size: 16px;
|
909 |
+
line-height: 16px;
|
910 |
+
vertical-align: middle;
|
911 |
+
}
|
912 |
.media-toolbar.sticky-media {
|
913 |
position: fixed;
|
914 |
top: 32px;
|
1121 |
border-radius: 4px;
|
1122 |
color: #484848;
|
1123 |
}
|
1124 |
+
.folder-form-buttons a:not(.inline-button), .folder-form-buttons button {
|
1125 |
display: inline-flex;
|
1126 |
padding: 0;
|
1127 |
text-decoration: none;
|
1137 |
flex: 1;
|
1138 |
justify-content: center;
|
1139 |
}
|
1140 |
+
.folder-form-buttons a.inline-button {
|
1141 |
+
display: inline-block;
|
1142 |
+
color: #f51366;
|
1143 |
+
text-decoration: none;
|
1144 |
+
font-weight: 500;
|
1145 |
+
}
|
1146 |
+
.folder-form-buttons a.inline-button:hover, .folder-form-buttons a.inline-button:focus {
|
1147 |
+
color: #f51366;
|
1148 |
+
}
|
1149 |
.folder-form-buttons a span, .folder-form-buttons button span {
|
1150 |
-webkit-animation: fa-spin .75s infinite linear;
|
1151 |
animation: fa-spin .75s infinite linear;
|
1252 |
display: block;
|
1253 |
position: relative;
|
1254 |
max-width: 100%;
|
1255 |
+
margin: 0;
|
1256 |
+
padding: 0 0 15px 0;
|
1257 |
color: #595959;
|
1258 |
text-align: center;
|
1259 |
text-transform: none;
|
1262 |
font-size: 22px;
|
1263 |
line-height: 26px;
|
1264 |
}
|
1265 |
+
.add-update-folder-title:after {
|
1266 |
+
content: "";
|
1267 |
+
position: absolute;
|
1268 |
+
top: 100%;
|
1269 |
+
width: 70px;
|
1270 |
+
height: 2px;
|
1271 |
+
background: #3085d6;
|
1272 |
+
left: 0;
|
1273 |
+
right: 0;
|
1274 |
+
margin: 0 auto;
|
1275 |
+
}
|
1276 |
.folder-form-message {
|
1277 |
font-size: 15px;
|
1278 |
line-height: 18px;
|
1279 |
+
color: #4A5568;
|
1280 |
padding: 25px 70px;
|
1281 |
}
|
1282 |
.folder-form-errors {
|
1626 |
box-shadow: 0 0 5px 0 rgba(0, 0, 0, .25);
|
1627 |
display: none;
|
1628 |
}
|
1629 |
+
.folder-sort-menu.is-pro {
|
1630 |
+
width: 140px;
|
1631 |
+
}
|
1632 |
+
.folder-sort-menu a.pro-feature {
|
1633 |
+
color: #848484;
|
1634 |
+
}
|
1635 |
+
.folder-sort-menu a.pro-feature span {
|
1636 |
+
display: inline-block;
|
1637 |
+
color: #ff5983;
|
1638 |
+
font-weight: 500;
|
1639 |
+
}
|
1640 |
.folder-order.active .folder-sort-menu {
|
1641 |
display: block;
|
1642 |
}
|
1672 |
.folder-form-buttons {
|
1673 |
display: flex;
|
1674 |
}
|
1675 |
+
.folder-form-buttons.pro-message {
|
1676 |
+
padding: 0 0 20px 0;
|
1677 |
+
}
|
1678 |
.folder-group {
|
1679 |
position: relative;
|
1680 |
+
margin: 25px auto 25px;
|
1681 |
padding: 0 2px;
|
1682 |
}
|
1683 |
.add-folder-note {
|
1684 |
+
padding: 20px 0 0;
|
1685 |
}
|
1686 |
.folder-grouptextarea {
|
1687 |
resize: none;
|
1752 |
transition: 300ms ease all;
|
1753 |
left: 0%;
|
1754 |
}
|
1755 |
+
a#remove-folder-item {
|
1756 |
+
border: solid 1px #860000;
|
1757 |
+
background-color: #d40000;
|
1758 |
+
outline: none;
|
1759 |
+
box-shadow: none;
|
1760 |
+
}
|
1761 |
#custom-menu [class^="pfolder-"], #custom-menu [class*=" pfolder-"], .sticky-folders i {
|
1762 |
font-size: 12px;
|
1763 |
}
|
1848 |
width: 100%;
|
1849 |
max-width: inherit;
|
1850 |
}
|
1851 |
+
span.pro-tip {
|
1852 |
+
display: block;
|
1853 |
+
width: 80px;
|
1854 |
+
background: #7e3af2;
|
1855 |
+
padding: 7px;
|
1856 |
+
height: 20px;
|
1857 |
+
color: #fff;
|
1858 |
+
border-radius: 4px;
|
1859 |
+
}
|
1860 |
@media screen and (max-width: 960px) {
|
1861 |
.wcp-content {
|
1862 |
left: 36px
|
assets/css/design.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.wcp-custom-menu{padding-left:0}.wcp-custom-menu a,.wcp-custom-menu a:focus{outline:0;box-shadow:none}.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;text-align:center}.wcp-container .route .title{position:absolute;border:0;margin:0;padding:0;height:30px;width:200px;text-indent:28px;background:0 0;box-shadow:none;font-size:13px;line-height:26px;border-radius:4px;-webkit-border-radius:4px;-moz-border-radius:4px;overflow:hidden;font-weight:400}.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:0;top:0;padding:0}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:-10px!important;cursor:pointer}.has-sub-tree>.nav-icon{display:block}.wcp-content{position:fixed!important;top:32px;left:160px;bottom:0;width:280px;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:305px;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:305px}.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 .folder-sticky-icon,.wcp-container .route .title .move-folder-icon{float:right;position:relative;top:0;left:auto;width:20px;height:30px;line-height:26px;display:none}.wcp-container .route.is-sticky .title .folder-sticky-icon{display:block}span.folder-sticky-icon i{font-size:14px!important}.mCS_no_scrollbar .mCSB_container.mCS_no_scrollbar_y.mCS_y_hidden{overflow:visible}body:not(.no-hover-css) .wcp-container .route .title:hover{background:rgba(250,22,107,.08);cursor:pointer}body:not(.no-hover-css) .wcp-container .route .title:hover>.folder-sticky-icon,body:not(.no-hover-css) .wcp-container .route .title:hover>.star-icon{display:none!important}body:not(.no-hover-css) .wcp-container .route .title.wcp-drop-hover .move-folder-icon,body:not(.no-hover-css) .wcp-container .route .title:hover .move-folder-icon{display:block}body:not(.no-hover-css) .wcp-container .route .title.wcp-drop-hover .ui-icon .pfolder-folder-close:before,body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon .pfolder-folder-close:before{content:"\e901"!important}#custom-menu .route.active>h3.title .pfolder-folder-close:before{content:"\e902"}.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%)}.wcp-container .route .title.wcp-drop-hover img{filter:invert(100%);-webkit-filter:invert(100%)}.plugin-button{float:right}.plugin-button.d-block{float:none}.plugin-title{display:inline-block;vertical-align:middle}.add-new-folder{text-decoration:none;display:inline-block;font-size:14px;padding:4px 10px 4px 4px;background:#f51366;color:#fff;border:solid 1px #f51366;border-radius:4px;line-height:24px;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:24px;font-size:14px;margin-right:5px}.add-new-folder span.folder-icon-create_new_folder{font-size:20px}.form-options{background:#fff;padding:5px;margin:0 0;border-radius:4px;box-shadow:0 4px 21px rgba(7,16,28,.1)}.form-options .form-options{padding:0;background:0 0;box-shadow:none}.form-options ul{margin:0;padding:0}.form-options>ul>li{display:inline-block;margin:0 2px 0 0;vertical-align:top}.form-options>ul>li.last{margin:0}.form-options>ul>li>a{display:inline-block;text-decoration:none;padding:5px 5px;color:#000;vertical-align:middle;margin:0 0 5px 0;background:#f1f1f1;border-radius:4px}.form-options>ul>li.last>a{padding:3px}a#expand-collapse-list.all-open span{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.form-options>ul>li>a:hover{background:#404040;color:#fff}.form-options>ul>li>a:hover span.icon{color:#fff}.form-options>ul>li>a.expand-collapse{width:14px;text-align:center}.form-options a.expand-collapse span.icon{font-size:10px}.form-options span.icon{font-size:12px;display:inline-block;vertical-align:baseline;color:#a4c0d2}.un-categorised-items{border-radius:3px}.header-posts a,.un-categorised-items a{color:#444;padding:7px;display:block;text-decoration:none;font-size:14px;border-radius:4px;line-height:18px}.header-posts a:hover,.un-categorised-items.active-item,.un-categorised-items:hover{background:rgba(250,22,107,.08);border-radius:4px}.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:#fff!important}span.total-count{float:right;font-size:12px;line-height:16px}.wcp-icon{display:inline-block;font-size:16px;vertical-align:top;margin-right:3px}#custom-menu .wcp-icon{font-size:16px!important;line-height:24px}#custom-menu .route .nav-icon .wcp-icon{font-size:9px!important;color:#fa166b;font-weight:700;transform:rotate(-90deg);transition:all .25s linear}#custom-menu .route.active .nav-icon .wcp-icon{transform:rotate(0)}.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:10px;float:right;text-align:center;width:auto;display:block;margin:4px 8px 3px 3px;color:#23282d!important;line-height:16px;height:16px}.wcp-container .route.active-item>h3.title span.total-count{color:#fff!important}.dynamic-menu{position:fixed;left:auto;right:5px;background:#fff;width:170px;padding:0;z-index:1000001;-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 ul{margin:0;padding:0}.sticky-folders .dynamic-menu{left:auto;right:50px}.dynamic-menu li{position:relative;width:100%;display:block!important;padding:2px 0;margin:0}.dynamic-menu a{text-decoration:none;color:#333;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:middle;margin-right:5px;top:auto!important;width:20px!important;height:20px!important;line-height:14px}#custom-menu .dynamic-menu ul>li>a .sticky-pin{line-height:20px}#custom-menu .dynamic-menu ul>li>a .sticky-pin i{font-size:16px!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}.dynamic-menu ul li span i{font-size:14px;line-height:16px;font-weight:400}.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}body.woocommerce-page th#taxonomy-product_folder{width:10%!important}.wp-list-table th.column-title{width:22%!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:#fa166b!important;z-index:2!important;color:#fff!important}.wcp-drop-hover i{color:#fff!important}.ui-draggable-dragging{z-index:1051!important}.wcp-hover-list{background:#fa166b!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}.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;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% - 100px);overflow:hidden;white-space:nowrap;text-align:left}.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:25%;width:3px;height:30px;position:absolute;border-left:solid 1px #fa166b;border-right:solid 1px #fa166b;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:0 10px 10px;background:#fff;box-shadow:0 4px 21px rgba(7,16,28,.1)}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}.tree-structure li{display:block;width:auto;float:left;margin:0;padding:0}.tree-structure .folder-item{padding:4px;position:relative}.tree-structure .folder-view{display:block;border:none;color:#404040;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;position:relative;cursor:pointer;background:#f1f1f1;font-size:14px;line-height:16px}.tree-structure .folder-view span.item-name{display:block;padding:8px 15px 8px 30px;position:relative;width:100%;overflow:hidden;height:32px;font-size:14px;box-sizing:border-box}.folder-view span.item-name:before{content:"\e906";font-family:premio-folder!important;position:absolute;left:8px;font-size:16px;color:#a4c0d2}.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{width:100%;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:transparent!important;box-shadow:none!important}.mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:2px!important;background-color:#fa166b!important;margin:0 0 0 4px!important;padding:0!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;background:#fff;display:inline-block;font-size:12px;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:5px 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:40px;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:4px;-moz-border-radius:4px;border-radius:4px;color:#484848}.folder-form-buttons a,.folder-form-buttons button{display:inline-flex;padding:0;text-decoration:none;margin:10px 3px;border-radius:4px;border:solid 1px #1da1f4;line-height:34px;font-weight:700;font-size:14px;box-sizing:border-box;height:36px;cursor:pointer;flex:1;justify-content:center}.folder-form-buttons a span,.folder-form-buttons button span{-webkit-animation:fa-spin .75s infinite linear;animation:fa-spin .75s infinite linear;padding:7px}.wcp-container .folder-tooltip{position:relative}.wcp-container .folder-tooltip::after,.wcp-container .folder-tooltip::before{text-transform:none;font-size:.9em;line-height:1;user-select:none;pointer-events:none;position:absolute;display:none;opacity:0}.wcp-container .folder-tooltip::before{content:'';border:5px solid transparent;z-index:1001}.wcp-container .folder-tooltip::after{content:attr(data-folder-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}.wcp-container .folder-tooltip:hover::after,.wcp-container .folder-tooltip:hover::before{display:block;opacity:1}.wcp-container .folder-tooltip:not([flow])::before,.wcp-container .folder-tooltip[flow^=up]::before{bottom:100%;border-bottom-width:0;border-top-color:#333}.wcp-container .folder-tooltip:not([flow])::after,.wcp-container .folder-tooltip[flow^=up]::after{bottom:calc(100% + 5px)}.wcp-container .folder-tooltip:not([flow])::after,.wcp-container .folder-tooltip:not([flow])::before,.wcp-container .folder-tooltip[flow^=up]::after,.wcp-container .folder-tooltip[flow^=up]::before{left:50%;transform:translate(-50%,-.5em)}.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>ul>li.last.folder-checkbox{padding:5px 0 0}#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;outline:0}.folder-form-buttons a:focus{outline:0;outline:0}.form-cancel-btn,a.form-cancel-btn:hover{background-color:#fff;color:#3085d6;outline:0}.form-submit-btn{background-color:#3085d6;color:#fff;outline:0}.add-update-folder-title{display:block;position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;text-align:center;text-transform:none;word-wrap:break-word;font-weight:700;font-size:22px;line-height:26px}.folder-form-message{font-size:15px;line-height:18px;color:#484848;padding:25px 70px}.folder-form-errors{margin:0 0 10px 0;padding:8px 0;background:#ffe4e4;color:#a20000;display:none}.folder-form-errors.active{display:block}span.folder-loader-ajax{margin:0;line-height:30px;display:none;vertical-align:middle}.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:30px;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}}.media-folder-loader{padding:10px 0 15px;display:none}.media-folder-loader>span{font-weight:700}.sticky-folders{display:none;padding:0;margin:10px 0 5px;border-top:solid 1px #e9e5e5}.top-settings{background:#fff;padding:10px 10px 5px;-webkit-border-top-left-radius:4px;-webkit-border-top-right-radius:4px;-moz-border-radius-topleft:4px;-moz-border-radius-topright:4px;border-top-left-radius:4px;border-top-right-radius:4px;box-shadow:0 4px 21px rgba(7,16,28,.1)}.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:#333;padding:0 0 0 10px;border-radius:3px;text-decoration:none;font-size:14px;line-height:30px;position:relative}.sticky-folders ul li a.active,body:not(.no-hover-css) .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:30px}.sticky-folders ul li a span.update-inline-record{line-height:30px;padding:0 0 0 5px;height:30px}.sticky-folders ul li a span.folder-count{padding:0 8px 0 3px}.sticky-wcp-custom-form a:focus{box-shadow:none;outline:0}span.folder-count{float:right;background:0 0;padding:0;font-size:10px;line-height:16px;border-radius:2px}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)}.form-options>ul>li.last>a.sort-folder-order{width:28px;padding:5px;text-align:center;display:inline-block;box-sizing:border-box}.sort-folder-order svg{width:100%;height:100%;fill:#000}.sort-folder-order:hover svg{fill:#fff}.folder-order{position:relative}.folder-sort-menu{position:absolute;right:0;width:120px;z-index:101;background:#fff;-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);display:none}.folder-order.active .folder-sort-menu{display:block}.folder-order.active .sort-folder-order{background:#404040;color:#fff}.folder-order.active .sort-folder-order svg{fill:#fff}.folder-sort-menu li{display:block;margin:0;padding:0;background:0 0}.folder-sort-menu li a{display:block;margin:0;padding:3px 5px;background:0 0;color:#848484;text-decoration:none;font-size:14px}.folder-sort-menu li a.active,.folder-sort-menu li a:hover{background:#efefef;color:#000}.dynamic-menu.bottom-fix{bottom:0}.folder-form-buttons{display:flex}.folder-group{position:relative;margin:45px auto 15px;padding:0 2px}.add-folder-note{padding:10px 0 0}.folder-grouptextarea{resize:none}.folder-group input,.folder-group textarea{background:0 0;font-size:14px;padding:0 0 0 15px;display:block;width:100%;border-radius:4px;border:1px solid #484848;height:34px;line-height:34px;color:#484848}.folder-group input:focus,.folder-group textarea:focus{outline:0}.folder-group input:focus~label,.folder-group input:valid~label,.folder-group textarea:focus~label,.folder-group textarea:valid~label{top:-9px;background:#fff;padding:0 5px;font-weight:400;font-size:12px;line-height:14px;color:#aeaeae}.folder-group input:focus~.bar:before,.folder-group textarea:focus~.bar:before{width:320px}.folder-group input[type=password]{letter-spacing:.3em}.folder-group label{font-size:14px;font-weight:500;position:absolute;pointer-events:none;left:20px;top:10px;-webkit-transition:.3s ease all;transition:.3s ease all;color:#484848}.folder-group .folder-bar{position:relative;display:block;width:320px}.folder-group .folder-bar:before{content:'';height:2px;width:0;bottom:0;position:absolute;background:#2196f3;-webkit-transition:.3s ease all;transition:.3s ease all;left:0}#custom-menu [class*=" pfolder-"],#custom-menu [class^=pfolder-],.sticky-folders i{font-size:12px}span.create_new_folder{width:26px;height:26px;line-height:26px;font-size:14px;background:rgba(255,255,255,.4);backdrop-filter:blur(16px);border-radius:4px;text-align:center;margin:0 15px 0 0}.folder-search-form{padding:0 0 10px 0;position:relative}.folder-search-form input{background:#fff;border:1px solid #dbdbdb;box-sizing:border-box;border-radius:4px;height:32px;line-height:32px;box-sizing:border-box;padding:0 5px;width:100%;outline:0;box-shadow:none!important}.folder-search-form span{position:absolute;color:#aeaeae;right:0;top:0;height:32px;line-height:32px;width:32px;text-align:center}.folder-separator{padding:0 10px;height:1px;background:#e9e5e5;margin:0 0 10px 0}#custom-menu.has-filter li.route{display:none!important}#custom-menu.has-filter li.route.has-search{display:block!important}#custom-menu.has-filter h3 span.title-text.has-search-text{font-weight:700}.hide-folders-area .ui-resizable-handle.ui-resizable-e{display:none!important}.pull-right{float:right;display:block;line-height:22px}.folder-separator-2{padding:0;height:1px;background:#e9e5e5;margin:0 0 5px 0}.mCSB_scrollTools{width:10px!important}.mCSB_inside>.mCSB_container{margin-right:0!important}#custom-menu .route.has-sub-tree.has-search>.nav-icon>.pfolder-arrow-down{transform:rotate(0)}body:not(.woocommerce-page) .wp-list-table th{width:auto}.popup-form-content .select-box{padding:30px 0}.popup-form-content .select-box select{width:100%;max-width:inherit}@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}}
|
1 |
+
.wcp-custom-menu{padding-left:0}.wcp-custom-menu a,.wcp-custom-menu a:focus{outline:0;box-shadow:none}.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;text-align:center}.wcp-container .route .title{position:absolute;border:0;margin:0;padding:0;height:30px;width:200px;text-indent:28px;background:0 0;box-shadow:none;font-size:13px;line-height:26px;border-radius:4px;-webkit-border-radius:4px;-moz-border-radius:4px;overflow:hidden;font-weight:400}.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:0;top:0;padding:0}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:-10px!important;cursor:pointer}.has-sub-tree>.nav-icon{display:block}.wcp-content{position:fixed!important;top:32px;left:160px;bottom:0;width:280px;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:305px;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:305px}.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 .folder-sticky-icon,.wcp-container .route .title .move-folder-icon{float:right;position:relative;top:0;left:auto;width:20px;height:30px;line-height:26px;display:none}.wcp-container .route.is-sticky .title .folder-sticky-icon{display:block}span.folder-sticky-icon i{font-size:14px!important}.mCS_no_scrollbar .mCSB_container.mCS_no_scrollbar_y.mCS_y_hidden{overflow:visible}body:not(.no-hover-css) .wcp-container .route .title:hover{background:rgba(250,22,107,.08);cursor:pointer}body:not(.no-hover-css) .wcp-container .route .title:hover>.folder-sticky-icon,body:not(.no-hover-css) .wcp-container .route .title:hover>.star-icon{display:none!important}body:not(.no-hover-css) .wcp-container .route .title.wcp-drop-hover .move-folder-icon,body:not(.no-hover-css) .wcp-container .route .title:hover .move-folder-icon{display:block}body:not(.no-hover-css) .wcp-container .route .title.wcp-drop-hover .ui-icon .pfolder-folder-close:before,body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon .pfolder-folder-close:before{content:"\e901"!important}#custom-menu .route.active>h3.title .pfolder-folder-close:before{content:"\e902"}.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%)}.wcp-container .route .title.wcp-drop-hover img{filter:invert(100%);-webkit-filter:invert(100%)}.plugin-button{float:right}.plugin-button.d-block{float:none}.plugin-title{display:inline-block;vertical-align:middle}.add-new-folder{text-decoration:none;display:inline-block;font-size:14px;padding:4px 10px 4px 4px;background:#f51366;color:#fff;border:solid 1px #f51366;border-radius:4px;line-height:24px;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:24px;font-size:14px;margin-right:5px}.add-new-folder span.folder-icon-create_new_folder{font-size:20px}.form-options{background:#fff;padding:5px;margin:0 0;border-radius:4px;box-shadow:0 4px 21px rgba(7,16,28,.1)}.form-options .form-options{padding:0;background:0 0;box-shadow:none}.form-options ul{margin:0;padding:0}.form-options>ul>li{display:inline-block;margin:0 2px 0 0;vertical-align:top}.form-options>ul>li.last{margin:0}.form-options>ul>li>a{display:inline-block;text-decoration:none;padding:5px 5px;color:#000;vertical-align:middle;margin:0 0 5px 0;background:#f1f1f1;border-radius:4px}.form-options>ul>li.last>a{padding:3px}a#expand-collapse-list.all-open span{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.form-options>ul>li>a:hover{background:#404040;color:#fff}.form-options>ul>li>a:hover span.icon{color:#fff}.form-options>ul>li>a.expand-collapse{width:14px;text-align:center}.form-options a.expand-collapse span.icon{font-size:10px}.form-options span.icon{font-size:12px;display:inline-block;vertical-align:baseline;color:#a4c0d2}.un-categorised-items{border-radius:3px}.header-posts a,.un-categorised-items a{color:#444;padding:7px;display:block;text-decoration:none;font-size:14px;border-radius:4px;line-height:18px}.header-posts a:hover,.un-categorised-items.active-item,.un-categorised-items:hover{background:rgba(250,22,107,.08);border-radius:4px}.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:#fff!important}span.total-count{float:right;font-size:12px;line-height:16px}.wcp-icon{display:inline-block;font-size:16px;vertical-align:top;margin-right:3px}#custom-menu .wcp-icon{font-size:16px!important;line-height:24px}#custom-menu .route .nav-icon .wcp-icon{font-size:9px!important;color:#fa166b;font-weight:700;transform:rotate(-90deg);transition:all .25s linear}#custom-menu .route.active .nav-icon .wcp-icon{transform:rotate(0)}.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:10px;float:right;text-align:center;width:auto;display:block;margin:4px 8px 3px 3px;color:#23282d!important;line-height:16px;height:16px}.wcp-container .route.active-item>h3.title span.total-count{color:#fff!important}.dynamic-menu{position:fixed;left:auto;right:5px;background:#fff;width:170px;padding:0;z-index:1000001;-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 ul{margin:0;padding:0}.sticky-folders .dynamic-menu{left:auto;right:50px}.dynamic-menu li{position:relative;width:100%;display:block!important;padding:2px 0;margin:0}.dynamic-menu a{text-decoration:none;color:#333;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:middle;margin-right:5px;top:auto!important;width:20px!important;height:20px!important;line-height:14px;text-align:center}.dynamic-menu ul>li>a>span.dashicons{font-size:18px;text-align:left}#custom-menu .dynamic-menu ul>li>a .sticky-pin{line-height:20px}#custom-menu .dynamic-menu ul>li>a .sticky-pin i{font-size:16px!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,.dynamic-menu li.new-folder-pro{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}.dynamic-menu ul li span i{font-size:14px;line-height:16px;font-weight:400}.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}body.woocommerce-page th#taxonomy-product_folder{width:10%!important}.wp-list-table th.column-title{width:22%!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:#fa166b!important;z-index:2!important;color:#fff!important}.wcp-drop-hover i{color:#fff!important}.ui-draggable-dragging{z-index:1051!important}.wcp-hover-list{background:#fa166b!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}.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;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% - 100px);overflow:hidden;white-space:nowrap;text-align:left}.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:25%;width:3px;height:30px;position:absolute;border-left:solid 1px #fa166b;border-right:solid 1px #fa166b;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:0 10px 10px;background:#fff;box-shadow:0 4px 21px rgba(7,16,28,.1)}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}.tree-structure li{display:block;width:auto;float:left;margin:0;padding:0}.tree-structure .folder-item{padding:4px;position:relative}.tree-structure .folder-view{display:block;border:none;color:#404040;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;position:relative;cursor:pointer;background:#f1f1f1;font-size:14px;line-height:16px}.tree-structure .folder-view span.item-name{display:block;padding:8px 15px 8px 30px;position:relative;width:100%;overflow:hidden;height:32px;font-size:14px;box-sizing:border-box}.folder-view span.item-name:before{content:"\e906";font-family:premio-folder!important;position:absolute;left:8px;font-size:16px;color:#a4c0d2}.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{width:100%;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:transparent!important;box-shadow:none!important}.mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:2px!important;background-color:#fa166b!important;margin:0 0 0 4px!important;padding:0!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;background:#fff;display:inline-block;font-size:12px;color:#000}span.upgrade-message a.pink,span.upgrade-message span.pink{color:#ff5983;text-decoration:none;font-weight:700}span.upgrade-message a.pink span.dashicons,span.upgrade-message span.pink span.dashicons{width:16px;height:16px;font-size:16px;line-height:16px;vertical-align:middle}.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:5px 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:40px;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:4px;-moz-border-radius:4px;border-radius:4px;color:#484848}.folder-form-buttons a:not(.inline-button),.folder-form-buttons button{display:inline-flex;padding:0;text-decoration:none;margin:10px 3px;border-radius:4px;border:solid 1px #1da1f4;line-height:34px;font-weight:700;font-size:14px;box-sizing:border-box;height:36px;cursor:pointer;flex:1;justify-content:center}.folder-form-buttons a.inline-button{display:inline-block;color:#f51366;text-decoration:none;font-weight:500}.folder-form-buttons a.inline-button:focus,.folder-form-buttons a.inline-button:hover{color:#f51366}.folder-form-buttons a span,.folder-form-buttons button span{-webkit-animation:fa-spin .75s infinite linear;animation:fa-spin .75s infinite linear;padding:7px}.wcp-container .folder-tooltip{position:relative}.wcp-container .folder-tooltip::after,.wcp-container .folder-tooltip::before{text-transform:none;font-size:.9em;line-height:1;user-select:none;pointer-events:none;position:absolute;display:none;opacity:0}.wcp-container .folder-tooltip::before{content:'';border:5px solid transparent;z-index:1001}.wcp-container .folder-tooltip::after{content:attr(data-folder-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}.wcp-container .folder-tooltip:hover::after,.wcp-container .folder-tooltip:hover::before{display:block;opacity:1}.wcp-container .folder-tooltip:not([flow])::before,.wcp-container .folder-tooltip[flow^=up]::before{bottom:100%;border-bottom-width:0;border-top-color:#333}.wcp-container .folder-tooltip:not([flow])::after,.wcp-container .folder-tooltip[flow^=up]::after{bottom:calc(100% + 5px)}.wcp-container .folder-tooltip:not([flow])::after,.wcp-container .folder-tooltip:not([flow])::before,.wcp-container .folder-tooltip[flow^=up]::after,.wcp-container .folder-tooltip[flow^=up]::before{left:50%;transform:translate(-50%,-.5em)}.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>ul>li.last.folder-checkbox{padding:5px 0 0}#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;outline:0}.folder-form-buttons a:focus{outline:0;outline:0}.form-cancel-btn,a.form-cancel-btn:hover{background-color:#fff;color:#3085d6;outline:0}.form-submit-btn{background-color:#3085d6;color:#fff;outline:0}.add-update-folder-title{display:block;position:relative;max-width:100%;margin:0;padding:0 0 15px 0;color:#595959;text-align:center;text-transform:none;word-wrap:break-word;font-weight:700;font-size:22px;line-height:26px}.add-update-folder-title:after{content:"";position:absolute;top:100%;width:70px;height:2px;background:#3085d6;left:0;right:0;margin:0 auto}.folder-form-message{font-size:15px;line-height:18px;color:#4a5568;padding:25px 70px}.folder-form-errors{margin:0 0 10px 0;padding:8px 0;background:#ffe4e4;color:#a20000;display:none}.folder-form-errors.active{display:block}span.folder-loader-ajax{margin:0;line-height:30px;display:none;vertical-align:middle}.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:30px;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}}.media-folder-loader{padding:10px 0 15px;display:none}.media-folder-loader>span{font-weight:700}.sticky-folders{display:none;padding:0;margin:10px 0 5px;border-top:solid 1px #e9e5e5}.top-settings{background:#fff;padding:10px 10px 5px;-webkit-border-top-left-radius:4px;-webkit-border-top-right-radius:4px;-moz-border-radius-topleft:4px;-moz-border-radius-topright:4px;border-top-left-radius:4px;border-top-right-radius:4px;box-shadow:0 4px 21px rgba(7,16,28,.1)}.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:#333;padding:0 0 0 10px;border-radius:3px;text-decoration:none;font-size:14px;line-height:30px;position:relative}.sticky-folders ul li a.active,body:not(.no-hover-css) .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:30px}.sticky-folders ul li a span.update-inline-record{line-height:30px;padding:0 0 0 5px;height:30px}.sticky-folders ul li a span.folder-count{padding:0 8px 0 3px}.sticky-wcp-custom-form a:focus{box-shadow:none;outline:0}span.folder-count{float:right;background:0 0;padding:0;font-size:10px;line-height:16px;border-radius:2px}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)}.form-options>ul>li.last>a.sort-folder-order{width:28px;padding:5px;text-align:center;display:inline-block;box-sizing:border-box}.sort-folder-order svg{width:100%;height:100%;fill:#000}.sort-folder-order:hover svg{fill:#fff}.folder-order{position:relative}.folder-sort-menu{position:absolute;right:0;width:120px;z-index:101;background:#fff;-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);display:none}.folder-sort-menu.is-pro{width:140px}.folder-sort-menu a.pro-feature{color:#848484}.folder-sort-menu a.pro-feature span{display:inline-block;color:#ff5983;font-weight:500}.folder-order.active .folder-sort-menu{display:block}.folder-order.active .sort-folder-order{background:#404040;color:#fff}.folder-order.active .sort-folder-order svg{fill:#fff}.folder-sort-menu li{display:block;margin:0;padding:0;background:0 0}.folder-sort-menu li a{display:block;margin:0;padding:3px 5px;background:0 0;color:#848484;text-decoration:none;font-size:14px}.folder-sort-menu li a.active,.folder-sort-menu li a:hover{background:#efefef;color:#000}.dynamic-menu.bottom-fix{bottom:0}.folder-form-buttons{display:flex}.folder-form-buttons.pro-message{padding:0 0 20px 0}.folder-group{position:relative;margin:25px auto 25px;padding:0 2px}.add-folder-note{padding:20px 0 0}.folder-grouptextarea{resize:none}.folder-group input,.folder-group textarea{background:0 0;font-size:14px;padding:0 0 0 15px;display:block;width:100%;border-radius:4px;border:1px solid #484848;height:34px;line-height:34px;color:#484848}.folder-group input:focus,.folder-group textarea:focus{outline:0}.folder-group input:focus~label,.folder-group input:valid~label,.folder-group textarea:focus~label,.folder-group textarea:valid~label{top:-9px;background:#fff;padding:0 5px;font-weight:400;font-size:12px;line-height:14px;color:#aeaeae}.folder-group input:focus~.bar:before,.folder-group textarea:focus~.bar:before{width:320px}.folder-group input[type=password]{letter-spacing:.3em}.folder-group label{font-size:14px;font-weight:500;position:absolute;pointer-events:none;left:20px;top:10px;-webkit-transition:.3s ease all;transition:.3s ease all;color:#484848}.folder-group .folder-bar{position:relative;display:block;width:320px}.folder-group .folder-bar:before{content:'';height:2px;width:0;bottom:0;position:absolute;background:#2196f3;-webkit-transition:.3s ease all;transition:.3s ease all;left:0}a#remove-folder-item{border:solid 1px #860000;background-color:#d40000;outline:0;box-shadow:none}#custom-menu [class*=" pfolder-"],#custom-menu [class^=pfolder-],.sticky-folders i{font-size:12px}span.create_new_folder{width:26px;height:26px;line-height:26px;font-size:14px;background:rgba(255,255,255,.4);backdrop-filter:blur(16px);border-radius:4px;text-align:center;margin:0 15px 0 0}.folder-search-form{padding:0 0 10px 0;position:relative}.folder-search-form input{background:#fff;border:1px solid #dbdbdb;box-sizing:border-box;border-radius:4px;height:32px;line-height:32px;box-sizing:border-box;padding:0 5px;width:100%;outline:0;box-shadow:none!important}.folder-search-form span{position:absolute;color:#aeaeae;right:0;top:0;height:32px;line-height:32px;width:32px;text-align:center}.folder-separator{padding:0 10px;height:1px;background:#e9e5e5;margin:0 0 10px 0}#custom-menu.has-filter li.route{display:none!important}#custom-menu.has-filter li.route.has-search{display:block!important}#custom-menu.has-filter h3 span.title-text.has-search-text{font-weight:700}.hide-folders-area .ui-resizable-handle.ui-resizable-e{display:none!important}.pull-right{float:right;display:block;line-height:22px}.folder-separator-2{padding:0;height:1px;background:#e9e5e5;margin:0 0 5px 0}.mCSB_scrollTools{width:10px!important}.mCSB_inside>.mCSB_container{margin-right:0!important}#custom-menu .route.has-sub-tree.has-search>.nav-icon>.pfolder-arrow-down{transform:rotate(0)}body:not(.woocommerce-page) .wp-list-table th{width:auto}.popup-form-content .select-box{padding:30px 0}.popup-form-content .select-box select{width:100%;max-width:inherit}span.pro-tip{display:block;width:80px;background:#7e3af2;padding:7px;height:20px;color:#fff;border-radius:4px}@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/folders.css
CHANGED
@@ -162,4 +162,58 @@ li.jstree-node .jstree-hovered .star-icon, li.jstree-node .jstree-hovered .stick
|
|
162 |
}
|
163 |
.folder-menu-content .cssload-container {
|
164 |
margin: 100px 0 0 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
}
|
162 |
}
|
163 |
.folder-menu-content .cssload-container {
|
164 |
margin: 100px 0 0 0;
|
165 |
+
}
|
166 |
+
.dynamic-menu ul > li > a >span.dashicons {
|
167 |
+
font-size: 18px;
|
168 |
+
text-align: left;
|
169 |
+
}
|
170 |
+
.close-popup-button {
|
171 |
+
position: absolute;
|
172 |
+
right: -10px;
|
173 |
+
top: -10px;
|
174 |
+
width: 20px;
|
175 |
+
height: 20px;
|
176 |
+
}
|
177 |
+
.close-popup-button a {
|
178 |
+
display: block;
|
179 |
+
position: relative;
|
180 |
+
width: 20px;
|
181 |
+
height: 20px;
|
182 |
+
color: #333;
|
183 |
+
padding: 2px;
|
184 |
+
box-sizing: border-box;
|
185 |
+
}
|
186 |
+
.close-popup-button a span {
|
187 |
+
display: block;
|
188 |
+
position: relative;
|
189 |
+
width: 16px;
|
190 |
+
height: 16px;
|
191 |
+
transition: all .2s linear;
|
192 |
+
}
|
193 |
+
.close-popup-button a span:after, .close-popup-button a span:before {
|
194 |
+
content: "";
|
195 |
+
position: absolute;
|
196 |
+
width: 12px;
|
197 |
+
height: 2px;
|
198 |
+
background-color: #333;
|
199 |
+
display: block;
|
200 |
+
border-radius: 2px;
|
201 |
+
transform: rotate(
|
202 |
+
45deg
|
203 |
+
);
|
204 |
+
top: 7px;
|
205 |
+
left: 2px;
|
206 |
+
}
|
207 |
+
.close-popup-button a span:after {
|
208 |
+
transform: rotate(
|
209 |
+
-45deg
|
210 |
+
);
|
211 |
+
}
|
212 |
+
.close-popup-button a:hover span {
|
213 |
+
transform: rotate(
|
214 |
+
180deg
|
215 |
+
);
|
216 |
+
}
|
217 |
+
.popup-form-data {
|
218 |
+
position: relative;
|
219 |
}
|
assets/css/folders.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#custom-scroll-menu a,#custom-scroll-menu a:focus,#custom-scroll-menu a:hover{text-decoration:none;color:#333;outline:0;box-shadow:none}#js-tree-menu{padding:10px 10px 10px 0;background:#fff;box-shadow:0 4px 21px rgba(7,16,28,.1)}.pfolder-folder-close{font-size:16px}.jstree-open>a>.pfolder-folder-close:before{content:"\e902"}span.folder-actions{position:absolute;right:4px}.folder-actions span i{font-size:10px;width:16px;text-align:center}.folder-actions span{width:0;overflow:hidden;height:30px;line-height:30px;transition:all .2s linear;display:inline-block;font-size:10px;text-align:center}.folder-actions span.premio-folder-count{width:auto}a.jstree-anchor:hover span.folder-inline-edit{width:20px}#jstree-dnd{background-color:#cecece;border-radius:3px;display:block;height:32px;line-height:32px;margin:0;opacity:.8;overflow:hidden;padding:0 10px 0 40px;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;width:260px}#jstree-dnd .jstree-icon{top:6px;background-position:50%;background-repeat:no-repeat;background-size:contain;height:20px;width:20px;display:none}#js-tree-menu .folder-checkbox{display:none}#js-tree-menu.show-folder-checkbox .folder-checkbox{display:inline-block}#js-tree-menu.show-folder-checkbox .pfolder-folder-close{display:none}li.jstree-node.is-high>a .star-icon{width:16px;text-align:center;color:#ffc90e}li.jstree-node.is-sticky>a .sticky-icon{width:16px;text-align:center}li.jstree-node.is-sticky>a .sticky-icon i{font-size:12px}li.jstree-node .jstree-hovered .star-icon,li.jstree-node .jstree-hovered .sticky-icon{width:0!important}.js-tree-data{display:none}.cssload-container{width:100%;height:49px;text-align:center}.cssload-tube-tunnel{width:49px;height:49px;margin:0 auto;border:4px solid;border-radius:50%;border-color:#ccc;animation:cssload-scale 1035ms infinite linear;-o-animation:cssload-scale 1035ms infinite linear;-ms-animation:cssload-scale 1035ms infinite linear;-webkit-animation:cssload-scale 1035ms infinite linear;-moz-animation:cssload-scale 1035ms infinite linear}.ajax-preloader{padding:50px 0}@keyframes cssload-scale{0%{transform:scale(0);transform:scale(0)}90%{transform:scale(.7);transform:scale(.7)}100%{transform:scale(1);transform:scale(1)}}@-o-keyframes cssload-scale{0%{-o-transform:scale(0);transform:scale(0)}90%{-o-transform:scale(.7);transform:scale(.7)}100%{-o-transform:scale(1);transform:scale(1)}}@-ms-keyframes cssload-scale{0%{-ms-transform:scale(0);transform:scale(0)}90%{-ms-transform:scale(.7);transform:scale(.7)}100%{-ms-transform:scale(1);transform:scale(1)}}@-webkit-keyframes cssload-scale{0%{-webkit-transform:scale(0);transform:scale(0)}90%{-webkit-transform:scale(.7);transform:scale(.7)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-moz-keyframes cssload-scale{0%{-moz-transform:scale(0);transform:scale(0)}90%{-moz-transform:scale(.7);transform:scale(.7)}100%{-moz-transform:scale(1);transform:scale(1)}}.sticky-folders>ul>li>a>span.folder-actions>span{transition:all .25s linear}.sticky-folders>ul>li>a:hover .star-icon{width:0!important}.sticky-folders>ul>li>a:hover .folder-inline-edit{width:16px!important;text-align:center}.sticky-folders li.is-high a span.star-icon{width:16px;text-align:center;color:#ffc90e}.folder-menu-content .cssload-container{margin:100px 0 0 0}
|
1 |
+
#custom-scroll-menu a,#custom-scroll-menu a:focus,#custom-scroll-menu a:hover{text-decoration:none;color:#333;outline:0;box-shadow:none}#js-tree-menu{padding:10px 10px 10px 0;background:#fff;box-shadow:0 4px 21px rgba(7,16,28,.1)}.pfolder-folder-close{font-size:16px}.jstree-open>a>.pfolder-folder-close:before{content:"\e902"}span.folder-actions{position:absolute;right:4px}.folder-actions span i{font-size:10px;width:16px;text-align:center}.folder-actions span{width:0;overflow:hidden;height:30px;line-height:30px;transition:all .2s linear;display:inline-block;font-size:10px;text-align:center}.folder-actions span.premio-folder-count{width:auto}a.jstree-anchor:hover span.folder-inline-edit{width:20px}#jstree-dnd{background-color:#cecece;border-radius:3px;display:block;height:32px;line-height:32px;margin:0;opacity:.8;overflow:hidden;padding:0 10px 0 40px;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;width:260px}#jstree-dnd .jstree-icon{top:6px;background-position:50%;background-repeat:no-repeat;background-size:contain;height:20px;width:20px;display:none}#js-tree-menu .folder-checkbox{display:none}#js-tree-menu.show-folder-checkbox .folder-checkbox{display:inline-block}#js-tree-menu.show-folder-checkbox .pfolder-folder-close{display:none}li.jstree-node.is-high>a .star-icon{width:16px;text-align:center;color:#ffc90e}li.jstree-node.is-sticky>a .sticky-icon{width:16px;text-align:center}li.jstree-node.is-sticky>a .sticky-icon i{font-size:12px}li.jstree-node .jstree-hovered .star-icon,li.jstree-node .jstree-hovered .sticky-icon{width:0!important}.js-tree-data{display:none}.cssload-container{width:100%;height:49px;text-align:center}.cssload-tube-tunnel{width:49px;height:49px;margin:0 auto;border:4px solid;border-radius:50%;border-color:#ccc;animation:cssload-scale 1035ms infinite linear;-o-animation:cssload-scale 1035ms infinite linear;-ms-animation:cssload-scale 1035ms infinite linear;-webkit-animation:cssload-scale 1035ms infinite linear;-moz-animation:cssload-scale 1035ms infinite linear}.ajax-preloader{padding:50px 0}@keyframes cssload-scale{0%{transform:scale(0);transform:scale(0)}90%{transform:scale(.7);transform:scale(.7)}100%{transform:scale(1);transform:scale(1)}}@-o-keyframes cssload-scale{0%{-o-transform:scale(0);transform:scale(0)}90%{-o-transform:scale(.7);transform:scale(.7)}100%{-o-transform:scale(1);transform:scale(1)}}@-ms-keyframes cssload-scale{0%{-ms-transform:scale(0);transform:scale(0)}90%{-ms-transform:scale(.7);transform:scale(.7)}100%{-ms-transform:scale(1);transform:scale(1)}}@-webkit-keyframes cssload-scale{0%{-webkit-transform:scale(0);transform:scale(0)}90%{-webkit-transform:scale(.7);transform:scale(.7)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-moz-keyframes cssload-scale{0%{-moz-transform:scale(0);transform:scale(0)}90%{-moz-transform:scale(.7);transform:scale(.7)}100%{-moz-transform:scale(1);transform:scale(1)}}.sticky-folders>ul>li>a>span.folder-actions>span{transition:all .25s linear}.sticky-folders>ul>li>a:hover .star-icon{width:0!important}.sticky-folders>ul>li>a:hover .folder-inline-edit{width:16px!important;text-align:center}.sticky-folders li.is-high a span.star-icon{width:16px;text-align:center;color:#ffc90e}.folder-menu-content .cssload-container{margin:100px 0 0 0}.dynamic-menu ul>li>a>span.dashicons{font-size:18px;text-align:left}.close-popup-button{position:absolute;right:-10px;top:-10px;width:20px;height:20px}.close-popup-button a{display:block;position:relative;width:20px;height:20px;color:#333;padding:2px;box-sizing:border-box}.close-popup-button a span{display:block;position:relative;width:16px;height:16px;transition:all .2s linear}.close-popup-button a span:after,.close-popup-button a span:before{content:"";position:absolute;width:12px;height:2px;background-color:#333;display:block;border-radius:2px;transform:rotate(45deg);top:7px;left:2px}.close-popup-button a span:after{transform:rotate(-45deg)}.close-popup-button a:hover span{transform:rotate(180deg)}.popup-form-data{position:relative}
|
assets/css/jquery.mcustomscrollbar.min.css
ADDED
@@ -0,0 +1,1297 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.mCustomScrollbar {
|
2 |
+
-ms-touch-action: pinch-zoom;
|
3 |
+
touch-action: pinch-zoom
|
4 |
+
}
|
5 |
+
|
6 |
+
.mCustomScrollbar.mCS_no_scrollbar, .mCustomScrollbar.mCS_touch_action {
|
7 |
+
-ms-touch-action: auto;
|
8 |
+
touch-action: auto
|
9 |
+
}
|
10 |
+
|
11 |
+
.mCustomScrollBox {
|
12 |
+
position: relative;
|
13 |
+
overflow: hidden;
|
14 |
+
height: 100%;
|
15 |
+
max-width: 100%;
|
16 |
+
outline: 0;
|
17 |
+
direction: ltr
|
18 |
+
}
|
19 |
+
|
20 |
+
.mCSB_container {
|
21 |
+
overflow: hidden;
|
22 |
+
width: auto;
|
23 |
+
height: auto
|
24 |
+
}
|
25 |
+
|
26 |
+
.mCSB_inside > .mCSB_container {
|
27 |
+
margin-right: 30px
|
28 |
+
}
|
29 |
+
|
30 |
+
.mCSB_container.mCS_no_scrollbar_y.mCS_y_hidden {
|
31 |
+
margin-right: 0
|
32 |
+
}
|
33 |
+
|
34 |
+
.mCS-dir-rtl > .mCSB_inside > .mCSB_container {
|
35 |
+
margin-right: 0;
|
36 |
+
margin-left: 30px
|
37 |
+
}
|
38 |
+
|
39 |
+
.mCS-dir-rtl > .mCSB_inside > .mCSB_container.mCS_no_scrollbar_y.mCS_y_hidden {
|
40 |
+
margin-left: 0
|
41 |
+
}
|
42 |
+
|
43 |
+
.mCSB_scrollTools {
|
44 |
+
position: absolute;
|
45 |
+
width: 16px;
|
46 |
+
height: auto;
|
47 |
+
left: auto;
|
48 |
+
top: 0;
|
49 |
+
right: 0;
|
50 |
+
bottom: 0;
|
51 |
+
opacity: .75;
|
52 |
+
filter: "alpha(opacity=75)";
|
53 |
+
-ms-filter: "alpha(opacity=75)"
|
54 |
+
}
|
55 |
+
|
56 |
+
.mCSB_outside + .mCSB_scrollTools {
|
57 |
+
right: -26px
|
58 |
+
}
|
59 |
+
|
60 |
+
.mCS-dir-rtl > .mCSB_inside > .mCSB_scrollTools, .mCS-dir-rtl > .mCSB_outside + .mCSB_scrollTools {
|
61 |
+
right: auto;
|
62 |
+
left: 0
|
63 |
+
}
|
64 |
+
|
65 |
+
.mCS-dir-rtl > .mCSB_outside + .mCSB_scrollTools {
|
66 |
+
left: -26px
|
67 |
+
}
|
68 |
+
|
69 |
+
.mCSB_scrollTools .mCSB_draggerContainer {
|
70 |
+
position: absolute;
|
71 |
+
top: 0;
|
72 |
+
left: 0;
|
73 |
+
bottom: 0;
|
74 |
+
right: 0;
|
75 |
+
height: auto
|
76 |
+
}
|
77 |
+
|
78 |
+
.mCSB_scrollTools a + .mCSB_draggerContainer {
|
79 |
+
margin: 20px 0
|
80 |
+
}
|
81 |
+
|
82 |
+
.mCSB_scrollTools .mCSB_draggerRail {
|
83 |
+
width: 2px;
|
84 |
+
height: 100%;
|
85 |
+
margin: 0 auto;
|
86 |
+
-webkit-border-radius: 16px;
|
87 |
+
-moz-border-radius: 16px;
|
88 |
+
border-radius: 16px
|
89 |
+
}
|
90 |
+
|
91 |
+
.mCSB_scrollTools .mCSB_dragger {
|
92 |
+
cursor: pointer;
|
93 |
+
width: 100%;
|
94 |
+
height: 30px;
|
95 |
+
z-index: 1
|
96 |
+
}
|
97 |
+
|
98 |
+
.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
|
99 |
+
position: relative;
|
100 |
+
width: 4px;
|
101 |
+
height: 100%;
|
102 |
+
margin: 0 auto;
|
103 |
+
-webkit-border-radius: 16px;
|
104 |
+
-moz-border-radius: 16px;
|
105 |
+
border-radius: 16px;
|
106 |
+
text-align: center
|
107 |
+
}
|
108 |
+
|
109 |
+
.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, .mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar {
|
110 |
+
width: 12px
|
111 |
+
}
|
112 |
+
|
113 |
+
.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail {
|
114 |
+
width: 8px
|
115 |
+
}
|
116 |
+
|
117 |
+
.mCSB_scrollTools .mCSB_buttonDown, .mCSB_scrollTools .mCSB_buttonUp {
|
118 |
+
display: block;
|
119 |
+
position: absolute;
|
120 |
+
height: 20px;
|
121 |
+
width: 100%;
|
122 |
+
overflow: hidden;
|
123 |
+
margin: 0 auto;
|
124 |
+
cursor: pointer
|
125 |
+
}
|
126 |
+
|
127 |
+
.mCSB_scrollTools .mCSB_buttonDown {
|
128 |
+
bottom: 0
|
129 |
+
}
|
130 |
+
|
131 |
+
.mCSB_horizontal.mCSB_inside > .mCSB_container {
|
132 |
+
margin-right: 0;
|
133 |
+
margin-bottom: 30px
|
134 |
+
}
|
135 |
+
|
136 |
+
.mCSB_horizontal.mCSB_outside > .mCSB_container {
|
137 |
+
min-height: 100%
|
138 |
+
}
|
139 |
+
|
140 |
+
.mCSB_horizontal > .mCSB_container.mCS_no_scrollbar_x.mCS_x_hidden {
|
141 |
+
margin-bottom: 0
|
142 |
+
}
|
143 |
+
|
144 |
+
.mCSB_scrollTools.mCSB_scrollTools_horizontal {
|
145 |
+
width: auto;
|
146 |
+
height: 16px;
|
147 |
+
top: auto;
|
148 |
+
right: 0;
|
149 |
+
bottom: 0;
|
150 |
+
left: 0
|
151 |
+
}
|
152 |
+
|
153 |
+
.mCustomScrollBox + .mCSB_scrollTools + .mCSB_scrollTools.mCSB_scrollTools_horizontal, .mCustomScrollBox + .mCSB_scrollTools.mCSB_scrollTools_horizontal {
|
154 |
+
bottom: -26px
|
155 |
+
}
|
156 |
+
|
157 |
+
.mCSB_scrollTools.mCSB_scrollTools_horizontal a + .mCSB_draggerContainer {
|
158 |
+
margin: 0 20px
|
159 |
+
}
|
160 |
+
|
161 |
+
.mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_draggerRail {
|
162 |
+
width: 100%;
|
163 |
+
height: 2px;
|
164 |
+
margin: 7px 0
|
165 |
+
}
|
166 |
+
|
167 |
+
.mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_dragger {
|
168 |
+
width: 30px;
|
169 |
+
height: 100%;
|
170 |
+
left: 0
|
171 |
+
}
|
172 |
+
|
173 |
+
.mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar {
|
174 |
+
width: 100%;
|
175 |
+
height: 4px;
|
176 |
+
margin: 6px auto
|
177 |
+
}
|
178 |
+
|
179 |
+
.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, .mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar {
|
180 |
+
height: 12px;
|
181 |
+
margin: 2px auto
|
182 |
+
}
|
183 |
+
|
184 |
+
.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail {
|
185 |
+
height: 8px;
|
186 |
+
margin: 4px 0
|
187 |
+
}
|
188 |
+
|
189 |
+
.mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_buttonLeft, .mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_buttonRight {
|
190 |
+
display: block;
|
191 |
+
position: absolute;
|
192 |
+
width: 20px;
|
193 |
+
height: 100%;
|
194 |
+
overflow: hidden;
|
195 |
+
margin: 0 auto;
|
196 |
+
cursor: pointer
|
197 |
+
}
|
198 |
+
|
199 |
+
.mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_buttonLeft {
|
200 |
+
left: 0
|
201 |
+
}
|
202 |
+
|
203 |
+
.mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_buttonRight {
|
204 |
+
right: 0
|
205 |
+
}
|
206 |
+
|
207 |
+
.mCSB_container_wrapper {
|
208 |
+
position: absolute;
|
209 |
+
height: auto;
|
210 |
+
width: auto;
|
211 |
+
overflow: hidden;
|
212 |
+
top: 0;
|
213 |
+
left: 0;
|
214 |
+
right: 0;
|
215 |
+
bottom: 0;
|
216 |
+
margin-right: 30px;
|
217 |
+
margin-bottom: 30px
|
218 |
+
}
|
219 |
+
|
220 |
+
.mCSB_container_wrapper > .mCSB_container {
|
221 |
+
padding-right: 30px;
|
222 |
+
padding-bottom: 30px;
|
223 |
+
-webkit-box-sizing: border-box;
|
224 |
+
-moz-box-sizing: border-box;
|
225 |
+
box-sizing: border-box
|
226 |
+
}
|
227 |
+
|
228 |
+
.mCSB_vertical_horizontal > .mCSB_scrollTools.mCSB_scrollTools_vertical {
|
229 |
+
bottom: 20px
|
230 |
+
}
|
231 |
+
|
232 |
+
.mCSB_vertical_horizontal > .mCSB_scrollTools.mCSB_scrollTools_horizontal {
|
233 |
+
right: 20px
|
234 |
+
}
|
235 |
+
|
236 |
+
.mCSB_container_wrapper.mCS_no_scrollbar_x.mCS_x_hidden + .mCSB_scrollTools.mCSB_scrollTools_vertical {
|
237 |
+
bottom: 0
|
238 |
+
}
|
239 |
+
|
240 |
+
.mCS-dir-rtl > .mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside > .mCSB_scrollTools.mCSB_scrollTools_horizontal, .mCSB_container_wrapper.mCS_no_scrollbar_y.mCS_y_hidden + .mCSB_scrollTools ~ .mCSB_scrollTools.mCSB_scrollTools_horizontal {
|
241 |
+
right: 0
|
242 |
+
}
|
243 |
+
|
244 |
+
.mCS-dir-rtl > .mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside > .mCSB_scrollTools.mCSB_scrollTools_horizontal {
|
245 |
+
left: 20px
|
246 |
+
}
|
247 |
+
|
248 |
+
.mCS-dir-rtl > .mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside > .mCSB_container_wrapper.mCS_no_scrollbar_y.mCS_y_hidden + .mCSB_scrollTools ~ .mCSB_scrollTools.mCSB_scrollTools_horizontal {
|
249 |
+
left: 0
|
250 |
+
}
|
251 |
+
|
252 |
+
.mCS-dir-rtl > .mCSB_inside > .mCSB_container_wrapper {
|
253 |
+
margin-right: 0;
|
254 |
+
margin-left: 30px
|
255 |
+
}
|
256 |
+
|
257 |
+
.mCSB_container_wrapper.mCS_no_scrollbar_y.mCS_y_hidden > .mCSB_container {
|
258 |
+
padding-right: 0
|
259 |
+
}
|
260 |
+
|
261 |
+
.mCSB_container_wrapper.mCS_no_scrollbar_x.mCS_x_hidden > .mCSB_container {
|
262 |
+
padding-bottom: 0
|
263 |
+
}
|
264 |
+
|
265 |
+
.mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside > .mCSB_container_wrapper.mCS_no_scrollbar_y.mCS_y_hidden {
|
266 |
+
margin-right: 0;
|
267 |
+
margin-left: 0
|
268 |
+
}
|
269 |
+
|
270 |
+
.mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside > .mCSB_container_wrapper.mCS_no_scrollbar_x.mCS_x_hidden {
|
271 |
+
margin-bottom: 0
|
272 |
+
}
|
273 |
+
|
274 |
+
.mCSB_scrollTools, .mCSB_scrollTools .mCSB_buttonDown, .mCSB_scrollTools .mCSB_buttonLeft, .mCSB_scrollTools .mCSB_buttonRight, .mCSB_scrollTools .mCSB_buttonUp, .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
|
275 |
+
-webkit-transition: opacity .2s ease-in-out, background-color .2s ease-in-out;
|
276 |
+
-moz-transition: opacity .2s ease-in-out, background-color .2s ease-in-out;
|
277 |
+
-o-transition: opacity .2s ease-in-out, background-color .2s ease-in-out;
|
278 |
+
transition: opacity .2s ease-in-out, background-color .2s ease-in-out
|
279 |
+
}
|
280 |
+
|
281 |
+
.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerRail, .mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger_bar, .mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerRail, .mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger_bar {
|
282 |
+
-webkit-transition: width .2s ease-out .2s, height .2s ease-out .2s, margin-left .2s ease-out .2s, margin-right .2s ease-out .2s, margin-top .2s ease-out .2s, margin-bottom .2s ease-out .2s, opacity .2s ease-in-out, background-color .2s ease-in-out;
|
283 |
+
-moz-transition: width .2s ease-out .2s, height .2s ease-out .2s, margin-left .2s ease-out .2s, margin-right .2s ease-out .2s, margin-top .2s ease-out .2s, margin-bottom .2s ease-out .2s, opacity .2s ease-in-out, background-color .2s ease-in-out;
|
284 |
+
-o-transition: width .2s ease-out .2s, height .2s ease-out .2s, margin-left .2s ease-out .2s, margin-right .2s ease-out .2s, margin-top .2s ease-out .2s, margin-bottom .2s ease-out .2s, opacity .2s ease-in-out, background-color .2s ease-in-out;
|
285 |
+
transition: width .2s ease-out .2s, height .2s ease-out .2s, margin-left .2s ease-out .2s, margin-right .2s ease-out .2s, margin-top .2s ease-out .2s, margin-bottom .2s ease-out .2s, opacity .2s ease-in-out, background-color .2s ease-in-out
|
286 |
+
}
|
287 |
+
|
288 |
+
.mCS-autoHide > .mCustomScrollBox > .mCSB_scrollTools, .mCS-autoHide > .mCustomScrollBox ~ .mCSB_scrollTools {
|
289 |
+
opacity: 0;
|
290 |
+
filter: "alpha(opacity=0)";
|
291 |
+
-ms-filter: "alpha(opacity=0)"
|
292 |
+
}
|
293 |
+
|
294 |
+
.mCS-autoHide:hover > .mCustomScrollBox > .mCSB_scrollTools, .mCS-autoHide:hover > .mCustomScrollBox ~ .mCSB_scrollTools, .mCustomScrollBox:hover > .mCSB_scrollTools, .mCustomScrollBox:hover ~ .mCSB_scrollTools, .mCustomScrollbar > .mCustomScrollBox > .mCSB_scrollTools.mCSB_scrollTools_onDrag, .mCustomScrollbar > .mCustomScrollBox ~ .mCSB_scrollTools.mCSB_scrollTools_onDrag {
|
295 |
+
opacity: 1;
|
296 |
+
filter: "alpha(opacity=100)";
|
297 |
+
-ms-filter: "alpha(opacity=100)"
|
298 |
+
}
|
299 |
+
|
300 |
+
.mCSB_scrollTools .mCSB_draggerRail {
|
301 |
+
background-color: #000;
|
302 |
+
background-color: rgba(0, 0, 0, .4);
|
303 |
+
filter: "alpha(opacity=40)";
|
304 |
+
-ms-filter: "alpha(opacity=40)"
|
305 |
+
}
|
306 |
+
|
307 |
+
.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
|
308 |
+
background-color: #fff;
|
309 |
+
background-color: rgba(255, 255, 255, .75);
|
310 |
+
filter: "alpha(opacity=75)";
|
311 |
+
-ms-filter: "alpha(opacity=75)"
|
312 |
+
}
|
313 |
+
|
314 |
+
.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
|
315 |
+
background-color: #fff;
|
316 |
+
background-color: rgba(255, 255, 255, .85);
|
317 |
+
filter: "alpha(opacity=85)";
|
318 |
+
-ms-filter: "alpha(opacity=85)"
|
319 |
+
}
|
320 |
+
|
321 |
+
.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar {
|
322 |
+
background-color: #fff;
|
323 |
+
background-color: rgba(255, 255, 255, .9);
|
324 |
+
filter: "alpha(opacity=90)";
|
325 |
+
-ms-filter: "alpha(opacity=90)"
|
326 |
+
}
|
327 |
+
|
328 |
+
.mCSB_scrollTools .mCSB_buttonDown, .mCSB_scrollTools .mCSB_buttonLeft, .mCSB_scrollTools .mCSB_buttonRight, .mCSB_scrollTools .mCSB_buttonUp {
|
329 |
+
background-repeat: no-repeat;
|
330 |
+
opacity: .4;
|
331 |
+
filter: "alpha(opacity=40)";
|
332 |
+
-ms-filter: "alpha(opacity=40)"
|
333 |
+
}
|
334 |
+
|
335 |
+
.mCSB_scrollTools .mCSB_buttonUp {
|
336 |
+
background-position: 0 0
|
337 |
+
}
|
338 |
+
|
339 |
+
.mCSB_scrollTools .mCSB_buttonDown {
|
340 |
+
background-position: 0 -20px
|
341 |
+
}
|
342 |
+
|
343 |
+
.mCSB_scrollTools .mCSB_buttonLeft {
|
344 |
+
background-position: 0 -40px
|
345 |
+
}
|
346 |
+
|
347 |
+
.mCSB_scrollTools .mCSB_buttonRight {
|
348 |
+
background-position: 0 -56px
|
349 |
+
}
|
350 |
+
|
351 |
+
.mCSB_scrollTools .mCSB_buttonDown:hover, .mCSB_scrollTools .mCSB_buttonLeft:hover, .mCSB_scrollTools .mCSB_buttonRight:hover, .mCSB_scrollTools .mCSB_buttonUp:hover {
|
352 |
+
opacity: .75;
|
353 |
+
filter: "alpha(opacity=75)";
|
354 |
+
-ms-filter: "alpha(opacity=75)"
|
355 |
+
}
|
356 |
+
|
357 |
+
.mCSB_scrollTools .mCSB_buttonDown:active, .mCSB_scrollTools .mCSB_buttonLeft:active, .mCSB_scrollTools .mCSB_buttonRight:active, .mCSB_scrollTools .mCSB_buttonUp:active {
|
358 |
+
opacity: .9;
|
359 |
+
filter: "alpha(opacity=90)";
|
360 |
+
-ms-filter: "alpha(opacity=90)"
|
361 |
+
}
|
362 |
+
|
363 |
+
.mCS-dark.mCSB_scrollTools .mCSB_draggerRail {
|
364 |
+
background-color: #000;
|
365 |
+
background-color: rgba(0, 0, 0, .15)
|
366 |
+
}
|
367 |
+
|
368 |
+
.mCS-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
|
369 |
+
background-color: #000;
|
370 |
+
background-color: rgba(0, 0, 0, .75)
|
371 |
+
}
|
372 |
+
|
373 |
+
.mCS-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
|
374 |
+
background-color: rgba(0, 0, 0, .85)
|
375 |
+
}
|
376 |
+
|
377 |
+
.mCS-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar {
|
378 |
+
background-color: rgba(0, 0, 0, .9)
|
379 |
+
}
|
380 |
+
|
381 |
+
.mCS-dark.mCSB_scrollTools .mCSB_buttonUp {
|
382 |
+
background-position: -80px 0
|
383 |
+
}
|
384 |
+
|
385 |
+
.mCS-dark.mCSB_scrollTools .mCSB_buttonDown {
|
386 |
+
background-position: -80px -20px
|
387 |
+
}
|
388 |
+
|
389 |
+
.mCS-dark.mCSB_scrollTools .mCSB_buttonLeft {
|
390 |
+
background-position: -80px -40px
|
391 |
+
}
|
392 |
+
|
393 |
+
.mCS-dark.mCSB_scrollTools .mCSB_buttonRight {
|
394 |
+
background-position: -80px -56px
|
395 |
+
}
|
396 |
+
|
397 |
+
.mCS-dark-2.mCSB_scrollTools .mCSB_draggerRail, .mCS-light-2.mCSB_scrollTools .mCSB_draggerRail {
|
398 |
+
width: 4px;
|
399 |
+
background-color: #fff;
|
400 |
+
background-color: rgba(255, 255, 255, .1);
|
401 |
+
-webkit-border-radius: 1px;
|
402 |
+
-moz-border-radius: 1px;
|
403 |
+
border-radius: 1px
|
404 |
+
}
|
405 |
+
|
406 |
+
.mCS-dark-2.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-light-2.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
|
407 |
+
width: 4px;
|
408 |
+
background-color: #fff;
|
409 |
+
background-color: rgba(255, 255, 255, .75);
|
410 |
+
-webkit-border-radius: 1px;
|
411 |
+
-moz-border-radius: 1px;
|
412 |
+
border-radius: 1px
|
413 |
+
}
|
414 |
+
|
415 |
+
.mCS-dark-2.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-dark-2.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-light-2.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-light-2.mCSB_scrollTools_horizontal .mCSB_draggerRail {
|
416 |
+
width: 100%;
|
417 |
+
height: 4px;
|
418 |
+
margin: 6px auto
|
419 |
+
}
|
420 |
+
|
421 |
+
.mCS-light-2.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
|
422 |
+
background-color: #fff;
|
423 |
+
background-color: rgba(255, 255, 255, .85)
|
424 |
+
}
|
425 |
+
|
426 |
+
.mCS-light-2.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-light-2.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar {
|
427 |
+
background-color: #fff;
|
428 |
+
background-color: rgba(255, 255, 255, .9)
|
429 |
+
}
|
430 |
+
|
431 |
+
.mCS-light-2.mCSB_scrollTools .mCSB_buttonUp {
|
432 |
+
background-position: -32px 0
|
433 |
+
}
|
434 |
+
|
435 |
+
.mCS-light-2.mCSB_scrollTools .mCSB_buttonDown {
|
436 |
+
background-position: -32px -20px
|
437 |
+
}
|
438 |
+
|
439 |
+
.mCS-light-2.mCSB_scrollTools .mCSB_buttonLeft {
|
440 |
+
background-position: -40px -40px
|
441 |
+
}
|
442 |
+
|
443 |
+
.mCS-light-2.mCSB_scrollTools .mCSB_buttonRight {
|
444 |
+
background-position: -40px -56px
|
445 |
+
}
|
446 |
+
|
447 |
+
.mCS-dark-2.mCSB_scrollTools .mCSB_draggerRail {
|
448 |
+
background-color: #000;
|
449 |
+
background-color: rgba(0, 0, 0, .1);
|
450 |
+
-webkit-border-radius: 1px;
|
451 |
+
-moz-border-radius: 1px;
|
452 |
+
border-radius: 1px
|
453 |
+
}
|
454 |
+
|
455 |
+
.mCS-dark-2.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
|
456 |
+
background-color: #000;
|
457 |
+
background-color: rgba(0, 0, 0, .75);
|
458 |
+
-webkit-border-radius: 1px;
|
459 |
+
-moz-border-radius: 1px;
|
460 |
+
border-radius: 1px
|
461 |
+
}
|
462 |
+
|
463 |
+
.mCS-dark-2.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
|
464 |
+
background-color: #000;
|
465 |
+
background-color: rgba(0, 0, 0, .85)
|
466 |
+
}
|
467 |
+
|
468 |
+
.mCS-dark-2.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-dark-2.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar {
|
469 |
+
background-color: #000;
|
470 |
+
background-color: rgba(0, 0, 0, .9)
|
471 |
+
}
|
472 |
+
|
473 |
+
.mCS-dark-2.mCSB_scrollTools .mCSB_buttonUp {
|
474 |
+
background-position: -112px 0
|
475 |
+
}
|
476 |
+
|
477 |
+
.mCS-dark-2.mCSB_scrollTools .mCSB_buttonDown {
|
478 |
+
background-position: -112px -20px
|
479 |
+
}
|
480 |
+
|
481 |
+
.mCS-dark-2.mCSB_scrollTools .mCSB_buttonLeft {
|
482 |
+
background-position: -120px -40px
|
483 |
+
}
|
484 |
+
|
485 |
+
.mCS-dark-2.mCSB_scrollTools .mCSB_buttonRight {
|
486 |
+
background-position: -120px -56px
|
487 |
+
}
|
488 |
+
|
489 |
+
.mCS-dark-thick.mCSB_scrollTools .mCSB_draggerRail, .mCS-light-thick.mCSB_scrollTools .mCSB_draggerRail {
|
490 |
+
width: 4px;
|
491 |
+
background-color: #fff;
|
492 |
+
background-color: rgba(255, 255, 255, .1);
|
493 |
+
-webkit-border-radius: 2px;
|
494 |
+
-moz-border-radius: 2px;
|
495 |
+
border-radius: 2px
|
496 |
+
}
|
497 |
+
|
498 |
+
.mCS-dark-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-light-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
|
499 |
+
width: 6px;
|
500 |
+
background-color: #fff;
|
501 |
+
background-color: rgba(255, 255, 255, .75);
|
502 |
+
-webkit-border-radius: 2px;
|
503 |
+
-moz-border-radius: 2px;
|
504 |
+
border-radius: 2px
|
505 |
+
}
|
506 |
+
|
507 |
+
.mCS-dark-thick.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-light-thick.mCSB_scrollTools_horizontal .mCSB_draggerRail {
|
508 |
+
width: 100%;
|
509 |
+
height: 4px;
|
510 |
+
margin: 6px 0
|
511 |
+
}
|
512 |
+
|
513 |
+
.mCS-dark-thick.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-light-thick.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar {
|
514 |
+
width: 100%;
|
515 |
+
height: 6px;
|
516 |
+
margin: 5px auto
|
517 |
+
}
|
518 |
+
|
519 |
+
.mCS-light-thick.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
|
520 |
+
background-color: #fff;
|
521 |
+
background-color: rgba(255, 255, 255, .85)
|
522 |
+
}
|
523 |
+
|
524 |
+
.mCS-light-thick.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-light-thick.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar {
|
525 |
+
background-color: #fff;
|
526 |
+
background-color: rgba(255, 255, 255, .9)
|
527 |
+
}
|
528 |
+
|
529 |
+
.mCS-light-thick.mCSB_scrollTools .mCSB_buttonUp {
|
530 |
+
background-position: -16px 0
|
531 |
+
}
|
532 |
+
|
533 |
+
.mCS-light-thick.mCSB_scrollTools .mCSB_buttonDown {
|
534 |
+
background-position: -16px -20px
|
535 |
+
}
|
536 |
+
|
537 |
+
.mCS-light-thick.mCSB_scrollTools .mCSB_buttonLeft {
|
538 |
+
background-position: -20px -40px
|
539 |
+
}
|
540 |
+
|
541 |
+
.mCS-light-thick.mCSB_scrollTools .mCSB_buttonRight {
|
542 |
+
background-position: -20px -56px
|
543 |
+
}
|
544 |
+
|
545 |
+
.mCS-dark-thick.mCSB_scrollTools .mCSB_draggerRail {
|
546 |
+
background-color: #000;
|
547 |
+
background-color: rgba(0, 0, 0, .1);
|
548 |
+
-webkit-border-radius: 2px;
|
549 |
+
-moz-border-radius: 2px;
|
550 |
+
border-radius: 2px
|
551 |
+
}
|
552 |
+
|
553 |
+
.mCS-dark-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
|
554 |
+
background-color: #000;
|
555 |
+
background-color: rgba(0, 0, 0, .75);
|
556 |
+
-webkit-border-radius: 2px;
|
557 |
+
-moz-border-radius: 2px;
|
558 |
+
border-radius: 2px
|
559 |
+
}
|
560 |
+
|
561 |
+
.mCS-dark-thick.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
|
562 |
+
background-color: #000;
|
563 |
+
background-color: rgba(0, 0, 0, .85)
|
564 |
+
}
|
565 |
+
|
566 |
+
.mCS-dark-thick.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-dark-thick.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar {
|
567 |
+
background-color: #000;
|
568 |
+
background-color: rgba(0, 0, 0, .9)
|
569 |
+
}
|
570 |
+
|
571 |
+
.mCS-dark-thick.mCSB_scrollTools .mCSB_buttonUp {
|
572 |
+
background-position: -96px 0
|
573 |
+
}
|
574 |
+
|
575 |
+
.mCS-dark-thick.mCSB_scrollTools .mCSB_buttonDown {
|
576 |
+
background-position: -96px -20px
|
577 |
+
}
|
578 |
+
|
579 |
+
.mCS-dark-thick.mCSB_scrollTools .mCSB_buttonLeft {
|
580 |
+
background-position: -100px -40px
|
581 |
+
}
|
582 |
+
|
583 |
+
.mCS-dark-thick.mCSB_scrollTools .mCSB_buttonRight {
|
584 |
+
background-position: -100px -56px
|
585 |
+
}
|
586 |
+
|
587 |
+
.mCS-light-thin.mCSB_scrollTools .mCSB_draggerRail {
|
588 |
+
background-color: #fff;
|
589 |
+
background-color: rgba(255, 255, 255, .1)
|
590 |
+
}
|
591 |
+
|
592 |
+
.mCS-dark-thin.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-light-thin.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
|
593 |
+
width: 2px
|
594 |
+
}
|
595 |
+
|
596 |
+
.mCS-dark-thin.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-light-thin.mCSB_scrollTools_horizontal .mCSB_draggerRail {
|
597 |
+
width: 100%
|
598 |
+
}
|
599 |
+
|
600 |
+
.mCS-dark-thin.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-light-thin.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar {
|
601 |
+
width: 100%;
|
602 |
+
height: 2px;
|
603 |
+
margin: 7px auto
|
604 |
+
}
|
605 |
+
|
606 |
+
.mCS-dark-thin.mCSB_scrollTools .mCSB_draggerRail {
|
607 |
+
background-color: #000;
|
608 |
+
background-color: rgba(0, 0, 0, .15)
|
609 |
+
}
|
610 |
+
|
611 |
+
.mCS-dark-thin.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
|
612 |
+
background-color: #000;
|
613 |
+
background-color: rgba(0, 0, 0, .75)
|
614 |
+
}
|
615 |
+
|
616 |
+
.mCS-dark-thin.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
|
617 |
+
background-color: #000;
|
618 |
+
background-color: rgba(0, 0, 0, .85)
|
619 |
+
}
|
620 |
+
|
621 |
+
.mCS-dark-thin.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-dark-thin.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar {
|
622 |
+
background-color: #000;
|
623 |
+
background-color: rgba(0, 0, 0, .9)
|
624 |
+
}
|
625 |
+
|
626 |
+
.mCS-dark-thin.mCSB_scrollTools .mCSB_buttonUp {
|
627 |
+
background-position: -80px 0
|
628 |
+
}
|
629 |
+
|
630 |
+
.mCS-dark-thin.mCSB_scrollTools .mCSB_buttonDown {
|
631 |
+
background-position: -80px -20px
|
632 |
+
}
|
633 |
+
|
634 |
+
.mCS-dark-thin.mCSB_scrollTools .mCSB_buttonLeft {
|
635 |
+
background-position: -80px -40px
|
636 |
+
}
|
637 |
+
|
638 |
+
.mCS-dark-thin.mCSB_scrollTools .mCSB_buttonRight {
|
639 |
+
background-position: -80px -56px
|
640 |
+
}
|
641 |
+
|
642 |
+
.mCS-rounded.mCSB_scrollTools .mCSB_draggerRail {
|
643 |
+
background-color: #fff;
|
644 |
+
background-color: rgba(255, 255, 255, .15)
|
645 |
+
}
|
646 |
+
|
647 |
+
.mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger, .mCS-rounded-dots.mCSB_scrollTools .mCSB_dragger, .mCS-rounded.mCSB_scrollTools .mCSB_dragger {
|
648 |
+
height: 14px
|
649 |
+
}
|
650 |
+
|
651 |
+
.mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dots.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
|
652 |
+
width: 14px;
|
653 |
+
margin: 0 1px
|
654 |
+
}
|
655 |
+
|
656 |
+
.mCS-rounded-dark.mCSB_scrollTools_horizontal .mCSB_dragger, .mCS-rounded-dots-dark.mCSB_scrollTools_horizontal .mCSB_dragger, .mCS-rounded-dots.mCSB_scrollTools_horizontal .mCSB_dragger, .mCS-rounded.mCSB_scrollTools_horizontal .mCSB_dragger {
|
657 |
+
width: 14px
|
658 |
+
}
|
659 |
+
|
660 |
+
.mCS-rounded-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dots-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dots.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar {
|
661 |
+
height: 14px;
|
662 |
+
margin: 1px 0
|
663 |
+
}
|
664 |
+
|
665 |
+
.mCS-rounded-dark.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, .mCS-rounded-dark.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, .mCS-rounded.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar {
|
666 |
+
width: 16px;
|
667 |
+
height: 16px;
|
668 |
+
margin: -1px 0
|
669 |
+
}
|
670 |
+
|
671 |
+
.mCS-rounded-dark.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-rounded-dark.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail, .mCS-rounded.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-rounded.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail {
|
672 |
+
width: 4px
|
673 |
+
}
|
674 |
+
|
675 |
+
.mCS-rounded-dark.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, .mCS-rounded-dark.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, .mCS-rounded.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar {
|
676 |
+
height: 16px;
|
677 |
+
width: 16px;
|
678 |
+
margin: 0 -1px
|
679 |
+
}
|
680 |
+
|
681 |
+
.mCS-rounded-dark.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-rounded-dark.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail, .mCS-rounded.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-rounded.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail {
|
682 |
+
height: 4px;
|
683 |
+
margin: 6px 0
|
684 |
+
}
|
685 |
+
|
686 |
+
.mCS-rounded.mCSB_scrollTools .mCSB_buttonUp {
|
687 |
+
background-position: 0 -72px
|
688 |
+
}
|
689 |
+
|
690 |
+
.mCS-rounded.mCSB_scrollTools .mCSB_buttonDown {
|
691 |
+
background-position: 0 -92px
|
692 |
+
}
|
693 |
+
|
694 |
+
.mCS-rounded.mCSB_scrollTools .mCSB_buttonLeft {
|
695 |
+
background-position: 0 -112px
|
696 |
+
}
|
697 |
+
|
698 |
+
.mCS-rounded.mCSB_scrollTools .mCSB_buttonRight {
|
699 |
+
background-position: 0 -128px
|
700 |
+
}
|
701 |
+
|
702 |
+
.mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
|
703 |
+
background-color: #000;
|
704 |
+
background-color: rgba(0, 0, 0, .75)
|
705 |
+
}
|
706 |
+
|
707 |
+
.mCS-rounded-dark.mCSB_scrollTools .mCSB_draggerRail {
|
708 |
+
background-color: #000;
|
709 |
+
background-color: rgba(0, 0, 0, .15)
|
710 |
+
}
|
711 |
+
|
712 |
+
.mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
|
713 |
+
background-color: #000;
|
714 |
+
background-color: rgba(0, 0, 0, .85)
|
715 |
+
}
|
716 |
+
|
717 |
+
.mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar {
|
718 |
+
background-color: #000;
|
719 |
+
background-color: rgba(0, 0, 0, .9)
|
720 |
+
}
|
721 |
+
|
722 |
+
.mCS-rounded-dark.mCSB_scrollTools .mCSB_buttonUp {
|
723 |
+
background-position: -80px -72px
|
724 |
+
}
|
725 |
+
|
726 |
+
.mCS-rounded-dark.mCSB_scrollTools .mCSB_buttonDown {
|
727 |
+
background-position: -80px -92px
|
728 |
+
}
|
729 |
+
|
730 |
+
.mCS-rounded-dark.mCSB_scrollTools .mCSB_buttonLeft {
|
731 |
+
background-position: -80px -112px
|
732 |
+
}
|
733 |
+
|
734 |
+
.mCS-rounded-dark.mCSB_scrollTools .mCSB_buttonRight {
|
735 |
+
background-position: -80px -128px
|
736 |
+
}
|
737 |
+
|
738 |
+
.mCS-rounded-dots-dark.mCSB_scrollTools_vertical .mCSB_draggerRail, .mCS-rounded-dots.mCSB_scrollTools_vertical .mCSB_draggerRail {
|
739 |
+
width: 4px
|
740 |
+
}
|
741 |
+
|
742 |
+
.mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-rounded-dots-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-rounded-dots.mCSB_scrollTools .mCSB_draggerRail, .mCS-rounded-dots.mCSB_scrollTools_horizontal .mCSB_draggerRail {
|
743 |
+
background-color: transparent;
|
744 |
+
background-position: center
|
745 |
+
}
|
746 |
+
|
747 |
+
.mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-rounded-dots.mCSB_scrollTools .mCSB_draggerRail {
|
748 |
+
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAANElEQVQYV2NkIAAYiVbw//9/Y6DiM1ANJoyMjGdBbLgJQAX/kU0DKgDLkaQAvxW4HEvQFwCRcxIJK1XznAAAAABJRU5ErkJggg==);
|
749 |
+
background-repeat: repeat-y;
|
750 |
+
opacity: .3;
|
751 |
+
filter: "alpha(opacity=30)";
|
752 |
+
-ms-filter: "alpha(opacity=30)"
|
753 |
+
}
|
754 |
+
|
755 |
+
.mCS-rounded-dots-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-rounded-dots.mCSB_scrollTools_horizontal .mCSB_draggerRail {
|
756 |
+
height: 4px;
|
757 |
+
margin: 6px 0;
|
758 |
+
background-repeat: repeat-x
|
759 |
+
}
|
760 |
+
|
761 |
+
.mCS-rounded-dots.mCSB_scrollTools .mCSB_buttonUp {
|
762 |
+
background-position: -16px -72px
|
763 |
+
}
|
764 |
+
|
765 |
+
.mCS-rounded-dots.mCSB_scrollTools .mCSB_buttonDown {
|
766 |
+
background-position: -16px -92px
|
767 |
+
}
|
768 |
+
|
769 |
+
.mCS-rounded-dots.mCSB_scrollTools .mCSB_buttonLeft {
|
770 |
+
background-position: -20px -112px
|
771 |
+
}
|
772 |
+
|
773 |
+
.mCS-rounded-dots.mCSB_scrollTools .mCSB_buttonRight {
|
774 |
+
background-position: -20px -128px
|
775 |
+
}
|
776 |
+
|
777 |
+
.mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_draggerRail {
|
778 |
+
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAALElEQVQYV2NkIAAYSVFgDFR8BqrBBEifBbGRTfiPZhpYjiQFBK3A6l6CvgAAE9kGCd1mvgEAAAAASUVORK5CYII=)
|
779 |
+
}
|
780 |
+
|
781 |
+
.mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_buttonUp {
|
782 |
+
background-position: -96px -72px
|
783 |
+
}
|
784 |
+
|
785 |
+
.mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_buttonDown {
|
786 |
+
background-position: -96px -92px
|
787 |
+
}
|
788 |
+
|
789 |
+
.mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_buttonLeft {
|
790 |
+
background-position: -100px -112px
|
791 |
+
}
|
792 |
+
|
793 |
+
.mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_buttonRight {
|
794 |
+
background-position: -100px -128px
|
795 |
+
}
|
796 |
+
|
797 |
+
.mCS-3d-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
|
798 |
+
background-repeat: repeat-y;
|
799 |
+
background-image: -moz-linear-gradient(left, rgba(255, 255, 255, .5) 0, rgba(255, 255, 255, 0) 100%);
|
800 |
+
background-image: -webkit-gradient(linear, left top, right top, color-stop(0, rgba(255, 255, 255, .5)), color-stop(100%, rgba(255, 255, 255, 0)));
|
801 |
+
background-image: -webkit-linear-gradient(left, rgba(255, 255, 255, .5) 0, rgba(255, 255, 255, 0) 100%);
|
802 |
+
background-image: -o-linear-gradient(left, rgba(255, 255, 255, .5) 0, rgba(255, 255, 255, 0) 100%);
|
803 |
+
background-image: -ms-linear-gradient(left, rgba(255, 255, 255, .5) 0, rgba(255, 255, 255, 0) 100%);
|
804 |
+
background-image: linear-gradient(to right, rgba(255, 255, 255, .5) 0, rgba(255, 255, 255, 0) 100%)
|
805 |
+
}
|
806 |
+
|
807 |
+
.mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-3d.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar {
|
808 |
+
background-repeat: repeat-x;
|
809 |
+
background-image: -moz-linear-gradient(top, rgba(255, 255, 255, .5) 0, rgba(255, 255, 255, 0) 100%);
|
810 |
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgba(255, 255, 255, .5)), color-stop(100%, rgba(255, 255, 255, 0)));
|
811 |
+
background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, .5) 0, rgba(255, 255, 255, 0) 100%);
|
812 |
+
background-image: -o-linear-gradient(top, rgba(255, 255, 255, .5) 0, rgba(255, 255, 255, 0) 100%);
|
813 |
+
background-image: -ms-linear-gradient(top, rgba(255, 255, 255, .5) 0, rgba(255, 255, 255, 0) 100%);
|
814 |
+
background-image: linear-gradient(to bottom, rgba(255, 255, 255, .5) 0, rgba(255, 255, 255, 0) 100%)
|
815 |
+
}
|
816 |
+
|
817 |
+
.mCS-3d-dark.mCSB_scrollTools_vertical .mCSB_dragger, .mCS-3d.mCSB_scrollTools_vertical .mCSB_dragger {
|
818 |
+
height: 70px
|
819 |
+
}
|
820 |
+
|
821 |
+
.mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_dragger, .mCS-3d.mCSB_scrollTools_horizontal .mCSB_dragger {
|
822 |
+
width: 70px
|
823 |
+
}
|
824 |
+
|
825 |
+
.mCS-3d-dark.mCSB_scrollTools, .mCS-3d.mCSB_scrollTools {
|
826 |
+
opacity: 1;
|
827 |
+
filter: "alpha(opacity=30)";
|
828 |
+
-ms-filter: "alpha(opacity=30)"
|
829 |
+
}
|
830 |
+
|
831 |
+
.mCS-3d-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d.mCSB_scrollTools .mCSB_draggerRail {
|
832 |
+
-webkit-border-radius: 16px;
|
833 |
+
-moz-border-radius: 16px;
|
834 |
+
border-radius: 16px
|
835 |
+
}
|
836 |
+
|
837 |
+
.mCS-3d-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-3d.mCSB_scrollTools .mCSB_draggerRail {
|
838 |
+
width: 8px;
|
839 |
+
background-color: #000;
|
840 |
+
background-color: rgba(0, 0, 0, .2);
|
841 |
+
box-shadow: inset 1px 0 1px rgba(0, 0, 0, .5), inset -1px 0 1px rgba(255, 255, 255, .2)
|
842 |
+
}
|
843 |
+
|
844 |
+
.mCS-3d-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, .mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-3d.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-3d.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
|
845 |
+
background-color: #555
|
846 |
+
}
|
847 |
+
|
848 |
+
.mCS-3d-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
|
849 |
+
width: 8px
|
850 |
+
}
|
851 |
+
|
852 |
+
.mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-3d.mCSB_scrollTools_horizontal .mCSB_draggerRail {
|
853 |
+
width: 100%;
|
854 |
+
height: 8px;
|
855 |
+
margin: 4px 0;
|
856 |
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .5), inset 0 -1px 1px rgba(255, 255, 255, .2)
|
857 |
+
}
|
858 |
+
|
859 |
+
.mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-3d.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar {
|
860 |
+
width: 100%;
|
861 |
+
height: 8px;
|
862 |
+
margin: 4px auto
|
863 |
+
}
|
864 |
+
|
865 |
+
.mCS-3d.mCSB_scrollTools .mCSB_buttonUp {
|
866 |
+
background-position: -32px -72px
|
867 |
+
}
|
868 |
+
|
869 |
+
.mCS-3d.mCSB_scrollTools .mCSB_buttonDown {
|
870 |
+
background-position: -32px -92px
|
871 |
+
}
|
872 |
+
|
873 |
+
.mCS-3d.mCSB_scrollTools .mCSB_buttonLeft {
|
874 |
+
background-position: -40px -112px
|
875 |
+
}
|
876 |
+
|
877 |
+
.mCS-3d.mCSB_scrollTools .mCSB_buttonRight {
|
878 |
+
background-position: -40px -128px
|
879 |
+
}
|
880 |
+
|
881 |
+
.mCS-3d-dark.mCSB_scrollTools .mCSB_draggerRail {
|
882 |
+
background-color: #000;
|
883 |
+
background-color: rgba(0, 0, 0, .1);
|
884 |
+
box-shadow: inset 1px 0 1px rgba(0, 0, 0, .1)
|
885 |
+
}
|
886 |
+
|
887 |
+
.mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail {
|
888 |
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .1)
|
889 |
+
}
|
890 |
+
|
891 |
+
.mCS-3d-dark.mCSB_scrollTools .mCSB_buttonUp {
|
892 |
+
background-position: -112px -72px
|
893 |
+
}
|
894 |
+
|
895 |
+
.mCS-3d-dark.mCSB_scrollTools .mCSB_buttonDown {
|
896 |
+
background-position: -112px -92px
|
897 |
+
}
|
898 |
+
|
899 |
+
.mCS-3d-dark.mCSB_scrollTools .mCSB_buttonLeft {
|
900 |
+
background-position: -120px -112px
|
901 |
+
}
|
902 |
+
|
903 |
+
.mCS-3d-dark.mCSB_scrollTools .mCSB_buttonRight {
|
904 |
+
background-position: -120px -128px
|
905 |
+
}
|
906 |
+
|
907 |
+
.mCS-3d-thick-dark.mCSB_scrollTools, .mCS-3d-thick.mCSB_scrollTools {
|
908 |
+
opacity: 1;
|
909 |
+
filter: "alpha(opacity=30)";
|
910 |
+
-ms-filter: "alpha(opacity=30)"
|
911 |
+
}
|
912 |
+
|
913 |
+
.mCS-3d-thick-dark.mCSB_scrollTools, .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_draggerContainer, .mCS-3d-thick.mCSB_scrollTools, .mCS-3d-thick.mCSB_scrollTools .mCSB_draggerContainer {
|
914 |
+
-webkit-border-radius: 7px;
|
915 |
+
-moz-border-radius: 7px;
|
916 |
+
border-radius: 7px
|
917 |
+
}
|
918 |
+
|
919 |
+
.mCSB_inside + .mCS-3d-thick-dark.mCSB_scrollTools_vertical, .mCSB_inside + .mCS-3d-thick.mCSB_scrollTools_vertical {
|
920 |
+
right: 1px
|
921 |
+
}
|
922 |
+
|
923 |
+
.mCS-3d-thick-dark.mCSB_scrollTools_vertical, .mCS-3d-thick.mCSB_scrollTools_vertical {
|
924 |
+
box-shadow: inset 1px 0 1px rgba(0, 0, 0, .1), inset 0 0 14px rgba(0, 0, 0, .5)
|
925 |
+
}
|
926 |
+
|
927 |
+
.mCS-3d-thick-dark.mCSB_scrollTools_horizontal, .mCS-3d-thick.mCSB_scrollTools_horizontal {
|
928 |
+
bottom: 1px;
|
929 |
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .1), inset 0 0 14px rgba(0, 0, 0, .5)
|
930 |
+
}
|
931 |
+
|
932 |
+
.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
|
933 |
+
-webkit-border-radius: 5px;
|
934 |
+
-moz-border-radius: 5px;
|
935 |
+
border-radius: 5px;
|
936 |
+
box-shadow: inset 1px 0 0 rgba(255, 255, 255, .4);
|
937 |
+
width: 12px;
|
938 |
+
margin: 2px;
|
939 |
+
position: absolute;
|
940 |
+
height: auto;
|
941 |
+
top: 0;
|
942 |
+
bottom: 0;
|
943 |
+
left: 0;
|
944 |
+
right: 0
|
945 |
+
}
|
946 |
+
|
947 |
+
.mCS-3d-thick-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar {
|
948 |
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
|
949 |
+
height: 12px;
|
950 |
+
width: auto
|
951 |
+
}
|
952 |
+
|
953 |
+
.mCS-3d-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-3d-thick.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-3d-thick.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
|
954 |
+
background-color: #555
|
955 |
+
}
|
956 |
+
|
957 |
+
.mCS-3d-thick.mCSB_scrollTools .mCSB_draggerContainer {
|
958 |
+
background-color: #000;
|
959 |
+
background-color: rgba(0, 0, 0, .05);
|
960 |
+
box-shadow: inset 1px 1px 16px rgba(0, 0, 0, .1)
|
961 |
+
}
|
962 |
+
|
963 |
+
.mCS-3d-thick.mCSB_scrollTools .mCSB_draggerRail {
|
964 |
+
background-color: transparent
|
965 |
+
}
|
966 |
+
|
967 |
+
.mCS-3d-thick.mCSB_scrollTools .mCSB_buttonUp {
|
968 |
+
background-position: -32px -72px
|
969 |
+
}
|
970 |
+
|
971 |
+
.mCS-3d-thick.mCSB_scrollTools .mCSB_buttonDown {
|
972 |
+
background-position: -32px -92px
|
973 |
+
}
|
974 |
+
|
975 |
+
.mCS-3d-thick.mCSB_scrollTools .mCSB_buttonLeft {
|
976 |
+
background-position: -40px -112px
|
977 |
+
}
|
978 |
+
|
979 |
+
.mCS-3d-thick.mCSB_scrollTools .mCSB_buttonRight {
|
980 |
+
background-position: -40px -128px
|
981 |
+
}
|
982 |
+
|
983 |
+
.mCS-3d-thick-dark.mCSB_scrollTools {
|
984 |
+
box-shadow: inset 0 0 14px rgba(0, 0, 0, .2)
|
985 |
+
}
|
986 |
+
|
987 |
+
.mCS-3d-thick-dark.mCSB_scrollTools_horizontal {
|
988 |
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .1), inset 0 0 14px rgba(0, 0, 0, .2)
|
989 |
+
}
|
990 |
+
|
991 |
+
.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
|
992 |
+
box-shadow: inset 1px 0 0 rgba(255, 255, 255, .4), inset -1px 0 0 rgba(0, 0, 0, .2)
|
993 |
+
}
|
994 |
+
|
995 |
+
.mCS-3d-thick-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar {
|
996 |
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -1px 0 rgba(0, 0, 0, .2)
|
997 |
+
}
|
998 |
+
|
999 |
+
.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
|
1000 |
+
background-color: #777
|
1001 |
+
}
|
1002 |
+
|
1003 |
+
.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_draggerContainer {
|
1004 |
+
background-color: #fff;
|
1005 |
+
background-color: rgba(0, 0, 0, .05);
|
1006 |
+
box-shadow: inset 1px 1px 16px rgba(0, 0, 0, .1)
|
1007 |
+
}
|
1008 |
+
|
1009 |
+
.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-minimal-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-minimal.mCSB_scrollTools .mCSB_draggerRail {
|
1010 |
+
background-color: transparent
|
1011 |
+
}
|
1012 |
+
|
1013 |
+
.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_buttonUp {
|
1014 |
+
background-position: -112px -72px
|
1015 |
+
}
|
1016 |
+
|
1017 |
+
.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_buttonDown {
|
1018 |
+
background-position: -112px -92px
|
1019 |
+
}
|
1020 |
+
|
1021 |
+
.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_buttonLeft {
|
1022 |
+
background-position: -120px -112px
|
1023 |
+
}
|
1024 |
+
|
1025 |
+
.mCS-3d-thick-dark.mCSB_scrollTools .mCSB_buttonRight {
|
1026 |
+
background-position: -120px -128px
|
1027 |
+
}
|
1028 |
+
|
1029 |
+
.mCSB_outside + .mCS-minimal-dark.mCSB_scrollTools_vertical, .mCSB_outside + .mCS-minimal.mCSB_scrollTools_vertical {
|
1030 |
+
right: 0;
|
1031 |
+
margin: 12px 0
|
1032 |
+
}
|
1033 |
+
|
1034 |
+
.mCustomScrollBox.mCS-minimal + .mCSB_scrollTools + .mCSB_scrollTools.mCSB_scrollTools_horizontal, .mCustomScrollBox.mCS-minimal + .mCSB_scrollTools.mCSB_scrollTools_horizontal, .mCustomScrollBox.mCS-minimal-dark + .mCSB_scrollTools + .mCSB_scrollTools.mCSB_scrollTools_horizontal, .mCustomScrollBox.mCS-minimal-dark + .mCSB_scrollTools.mCSB_scrollTools_horizontal {
|
1035 |
+
bottom: 0;
|
1036 |
+
margin: 0 12px
|
1037 |
+
}
|
1038 |
+
|
1039 |
+
.mCS-dir-rtl > .mCSB_outside + .mCS-minimal-dark.mCSB_scrollTools_vertical, .mCS-dir-rtl > .mCSB_outside + .mCS-minimal.mCSB_scrollTools_vertical {
|
1040 |
+
left: 0;
|
1041 |
+
right: auto
|
1042 |
+
}
|
1043 |
+
|
1044 |
+
.mCS-minimal-dark.mCSB_scrollTools_vertical .mCSB_dragger, .mCS-minimal.mCSB_scrollTools_vertical .mCSB_dragger {
|
1045 |
+
height: 50px
|
1046 |
+
}
|
1047 |
+
|
1048 |
+
.mCS-minimal-dark.mCSB_scrollTools_horizontal .mCSB_dragger, .mCS-minimal.mCSB_scrollTools_horizontal .mCSB_dragger {
|
1049 |
+
width: 50px
|
1050 |
+
}
|
1051 |
+
|
1052 |
+
.mCS-minimal.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
|
1053 |
+
background-color: #fff;
|
1054 |
+
background-color: rgba(255, 255, 255, .2);
|
1055 |
+
filter: "alpha(opacity=20)";
|
1056 |
+
-ms-filter: "alpha(opacity=20)"
|
1057 |
+
}
|
1058 |
+
|
1059 |
+
.mCS-minimal.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-minimal.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar {
|
1060 |
+
background-color: #fff;
|
1061 |
+
background-color: rgba(255, 255, 255, .5);
|
1062 |
+
filter: "alpha(opacity=50)";
|
1063 |
+
-ms-filter: "alpha(opacity=50)"
|
1064 |
+
}
|
1065 |
+
|
1066 |
+
.mCS-minimal-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
|
1067 |
+
background-color: #000;
|
1068 |
+
background-color: rgba(0, 0, 0, .2);
|
1069 |
+
filter: "alpha(opacity=20)";
|
1070 |
+
-ms-filter: "alpha(opacity=20)"
|
1071 |
+
}
|
1072 |
+
|
1073 |
+
.mCS-minimal-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-minimal-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar {
|
1074 |
+
background-color: #000;
|
1075 |
+
background-color: rgba(0, 0, 0, .5);
|
1076 |
+
filter: "alpha(opacity=50)";
|
1077 |
+
-ms-filter: "alpha(opacity=50)"
|
1078 |
+
}
|
1079 |
+
|
1080 |
+
.mCS-dark-3.mCSB_scrollTools .mCSB_draggerRail, .mCS-light-3.mCSB_scrollTools .mCSB_draggerRail {
|
1081 |
+
width: 6px;
|
1082 |
+
background-color: #000;
|
1083 |
+
background-color: rgba(0, 0, 0, .2)
|
1084 |
+
}
|
1085 |
+
|
1086 |
+
.mCS-dark-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-light-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
|
1087 |
+
width: 6px
|
1088 |
+
}
|
1089 |
+
|
1090 |
+
.mCS-dark-3.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-dark-3.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-light-3.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-light-3.mCSB_scrollTools_horizontal .mCSB_draggerRail {
|
1091 |
+
width: 100%;
|
1092 |
+
height: 6px;
|
1093 |
+
margin: 5px 0
|
1094 |
+
}
|
1095 |
+
|
1096 |
+
.mCS-dark-3.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-dark-3.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail, .mCS-light-3.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-light-3.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail {
|
1097 |
+
width: 12px
|
1098 |
+
}
|
1099 |
+
|
1100 |
+
.mCS-dark-3.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-dark-3.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail, .mCS-light-3.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-light-3.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail {
|
1101 |
+
height: 12px;
|
1102 |
+
margin: 2px 0
|
1103 |
+
}
|
1104 |
+
|
1105 |
+
.mCS-light-3.mCSB_scrollTools .mCSB_buttonUp {
|
1106 |
+
background-position: -32px -72px
|
1107 |
+
}
|
1108 |
+
|
1109 |
+
.mCS-light-3.mCSB_scrollTools .mCSB_buttonDown {
|
1110 |
+
background-position: -32px -92px
|
1111 |
+
}
|
1112 |
+
|
1113 |
+
.mCS-light-3.mCSB_scrollTools .mCSB_buttonLeft {
|
1114 |
+
background-position: -40px -112px
|
1115 |
+
}
|
1116 |
+
|
1117 |
+
.mCS-light-3.mCSB_scrollTools .mCSB_buttonRight {
|
1118 |
+
background-position: -40px -128px
|
1119 |
+
}
|
1120 |
+
|
1121 |
+
.mCS-dark-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
|
1122 |
+
background-color: #000;
|
1123 |
+
background-color: rgba(0, 0, 0, .75)
|
1124 |
+
}
|
1125 |
+
|
1126 |
+
.mCS-dark-3.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
|
1127 |
+
background-color: #000;
|
1128 |
+
background-color: rgba(0, 0, 0, .85)
|
1129 |
+
}
|
1130 |
+
|
1131 |
+
.mCS-dark-3.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-dark-3.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar {
|
1132 |
+
background-color: #000;
|
1133 |
+
background-color: rgba(0, 0, 0, .9)
|
1134 |
+
}
|
1135 |
+
|
1136 |
+
.mCS-dark-3.mCSB_scrollTools .mCSB_draggerRail {
|
1137 |
+
background-color: #000;
|
1138 |
+
background-color: rgba(0, 0, 0, .1)
|
1139 |
+
}
|
1140 |
+
|
1141 |
+
.mCS-dark-3.mCSB_scrollTools .mCSB_buttonUp {
|
1142 |
+
background-position: -112px -72px
|
1143 |
+
}
|
1144 |
+
|
1145 |
+
.mCS-dark-3.mCSB_scrollTools .mCSB_buttonDown {
|
1146 |
+
background-position: -112px -92px
|
1147 |
+
}
|
1148 |
+
|
1149 |
+
.mCS-dark-3.mCSB_scrollTools .mCSB_buttonLeft {
|
1150 |
+
background-position: -120px -112px
|
1151 |
+
}
|
1152 |
+
|
1153 |
+
.mCS-dark-3.mCSB_scrollTools .mCSB_buttonRight {
|
1154 |
+
background-position: -120px -128px
|
1155 |
+
}
|
1156 |
+
|
1157 |
+
.mCS-inset-2-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-2.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-3.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset.mCSB_scrollTools .mCSB_draggerRail {
|
1158 |
+
width: 12px;
|
1159 |
+
background-color: #000;
|
1160 |
+
background-color: rgba(0, 0, 0, .2)
|
1161 |
+
}
|
1162 |
+
|
1163 |
+
.mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-2.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
|
1164 |
+
width: 6px;
|
1165 |
+
margin: 3px 5px;
|
1166 |
+
position: absolute;
|
1167 |
+
height: auto;
|
1168 |
+
top: 0;
|
1169 |
+
bottom: 0;
|
1170 |
+
left: 0;
|
1171 |
+
right: 0
|
1172 |
+
}
|
1173 |
+
|
1174 |
+
.mCS-inset-2-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-2.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-3.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-inset.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar {
|
1175 |
+
height: 6px;
|
1176 |
+
margin: 5px 3px;
|
1177 |
+
position: absolute;
|
1178 |
+
width: auto;
|
1179 |
+
top: 0;
|
1180 |
+
bottom: 0;
|
1181 |
+
left: 0;
|
1182 |
+
right: 0
|
1183 |
+
}
|
1184 |
+
|
1185 |
+
.mCS-inset-2-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-inset-2.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-inset-3-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-inset-3.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-inset-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-inset.mCSB_scrollTools_horizontal .mCSB_draggerRail {
|
1186 |
+
width: 100%;
|
1187 |
+
height: 12px;
|
1188 |
+
margin: 2px 0
|
1189 |
+
}
|
1190 |
+
|
1191 |
+
.mCS-inset-2.mCSB_scrollTools .mCSB_buttonUp, .mCS-inset-3.mCSB_scrollTools .mCSB_buttonUp, .mCS-inset.mCSB_scrollTools .mCSB_buttonUp {
|
1192 |
+
background-position: -32px -72px
|
1193 |
+
}
|
1194 |
+
|
1195 |
+
.mCS-inset-2.mCSB_scrollTools .mCSB_buttonDown, .mCS-inset-3.mCSB_scrollTools .mCSB_buttonDown, .mCS-inset.mCSB_scrollTools .mCSB_buttonDown {
|
1196 |
+
background-position: -32px -92px
|
1197 |
+
}
|
1198 |
+
|
1199 |
+
.mCS-inset-2.mCSB_scrollTools .mCSB_buttonLeft, .mCS-inset-3.mCSB_scrollTools .mCSB_buttonLeft, .mCS-inset.mCSB_scrollTools .mCSB_buttonLeft {
|
1200 |
+
background-position: -40px -112px
|
1201 |
+
}
|
1202 |
+
|
1203 |
+
.mCS-inset-2.mCSB_scrollTools .mCSB_buttonRight, .mCS-inset-3.mCSB_scrollTools .mCSB_buttonRight, .mCS-inset.mCSB_scrollTools .mCSB_buttonRight {
|
1204 |
+
background-position: -40px -128px
|
1205 |
+
}
|
1206 |
+
|
1207 |
+
.mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
|
1208 |
+
background-color: #000;
|
1209 |
+
background-color: rgba(0, 0, 0, .75)
|
1210 |
+
}
|
1211 |
+
|
1212 |
+
.mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, .mCS-inset-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
|
1213 |
+
background-color: #000;
|
1214 |
+
background-color: rgba(0, 0, 0, .85)
|
1215 |
+
}
|
1216 |
+
|
1217 |
+
.mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-inset-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-inset-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar {
|
1218 |
+
background-color: #000;
|
1219 |
+
background-color: rgba(0, 0, 0, .9)
|
1220 |
+
}
|
1221 |
+
|
1222 |
+
.mCS-inset-2-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-dark.mCSB_scrollTools .mCSB_draggerRail {
|
1223 |
+
background-color: #000;
|
1224 |
+
background-color: rgba(0, 0, 0, .1)
|
1225 |
+
}
|
1226 |
+
|
1227 |
+
.mCS-inset-2-dark.mCSB_scrollTools .mCSB_buttonUp, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_buttonUp, .mCS-inset-dark.mCSB_scrollTools .mCSB_buttonUp {
|
1228 |
+
background-position: -112px -72px
|
1229 |
+
}
|
1230 |
+
|
1231 |
+
.mCS-inset-2-dark.mCSB_scrollTools .mCSB_buttonDown, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_buttonDown, .mCS-inset-dark.mCSB_scrollTools .mCSB_buttonDown {
|
1232 |
+
background-position: -112px -92px
|
1233 |
+
}
|
1234 |
+
|
1235 |
+
.mCS-inset-2-dark.mCSB_scrollTools .mCSB_buttonLeft, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_buttonLeft, .mCS-inset-dark.mCSB_scrollTools .mCSB_buttonLeft {
|
1236 |
+
background-position: -120px -112px
|
1237 |
+
}
|
1238 |
+
|
1239 |
+
.mCS-inset-2-dark.mCSB_scrollTools .mCSB_buttonRight, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_buttonRight, .mCS-inset-dark.mCSB_scrollTools .mCSB_buttonRight {
|
1240 |
+
background-position: -120px -128px
|
1241 |
+
}
|
1242 |
+
|
1243 |
+
.mCS-inset-2-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-2.mCSB_scrollTools .mCSB_draggerRail {
|
1244 |
+
background-color: transparent;
|
1245 |
+
border-width: 1px;
|
1246 |
+
border-style: solid;
|
1247 |
+
border-color: #fff;
|
1248 |
+
border-color: rgba(255, 255, 255, .2);
|
1249 |
+
-webkit-box-sizing: border-box;
|
1250 |
+
-moz-box-sizing: border-box;
|
1251 |
+
box-sizing: border-box
|
1252 |
+
}
|
1253 |
+
|
1254 |
+
.mCS-inset-2-dark.mCSB_scrollTools .mCSB_draggerRail {
|
1255 |
+
border-color: #000;
|
1256 |
+
border-color: rgba(0, 0, 0, .2)
|
1257 |
+
}
|
1258 |
+
|
1259 |
+
.mCS-inset-3.mCSB_scrollTools .mCSB_draggerRail {
|
1260 |
+
background-color: #fff;
|
1261 |
+
background-color: rgba(255, 255, 255, .6)
|
1262 |
+
}
|
1263 |
+
|
1264 |
+
.mCS-inset-3-dark.mCSB_scrollTools .mCSB_draggerRail {
|
1265 |
+
background-color: #000;
|
1266 |
+
background-color: rgba(0, 0, 0, .6)
|
1267 |
+
}
|
1268 |
+
|
1269 |
+
.mCS-inset-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
|
1270 |
+
background-color: #000;
|
1271 |
+
background-color: rgba(0, 0, 0, .75)
|
1272 |
+
}
|
1273 |
+
|
1274 |
+
.mCS-inset-3.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
|
1275 |
+
background-color: #000;
|
1276 |
+
background-color: rgba(0, 0, 0, .85)
|
1277 |
+
}
|
1278 |
+
|
1279 |
+
.mCS-inset-3.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-inset-3.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar {
|
1280 |
+
background-color: #000;
|
1281 |
+
background-color: rgba(0, 0, 0, .9)
|
1282 |
+
}
|
1283 |
+
|
1284 |
+
.mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
|
1285 |
+
background-color: #fff;
|
1286 |
+
background-color: rgba(255, 255, 255, .75)
|
1287 |
+
}
|
1288 |
+
|
1289 |
+
.mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
|
1290 |
+
background-color: #fff;
|
1291 |
+
background-color: rgba(255, 255, 255, .85)
|
1292 |
+
}
|
1293 |
+
|
1294 |
+
.mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar {
|
1295 |
+
background-color: #fff;
|
1296 |
+
background-color: rgba(255, 255, 255, .9)
|
1297 |
+
}
|
assets/css/jstree.css
CHANGED
@@ -1111,3 +1111,57 @@
|
|
1111 |
margin-right: 0;
|
1112 |
}
|
1113 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1111 |
margin-right: 0;
|
1112 |
}
|
1113 |
}
|
1114 |
+
|
1115 |
+
|
1116 |
+
.thumbnail-hover {
|
1117 |
+
overflow: hidden;
|
1118 |
+
position: absolute;
|
1119 |
+
top: 0;
|
1120 |
+
right: 0;
|
1121 |
+
bottom: 0;
|
1122 |
+
left: 0;
|
1123 |
+
transition: opacity .1s;
|
1124 |
+
display: none;
|
1125 |
+
}
|
1126 |
+
.attachment-preview:hover .thumbnail-hover {
|
1127 |
+
display: block;
|
1128 |
+
}
|
1129 |
+
.thumbnail-hover:after {
|
1130 |
+
top:0;
|
1131 |
+
left: 0;
|
1132 |
+
width: 100%;
|
1133 |
+
height: 100%;
|
1134 |
+
position: absolute;
|
1135 |
+
content: "";
|
1136 |
+
background: #1E293B;
|
1137 |
+
z-index: 100;
|
1138 |
+
opacity: 0.75;
|
1139 |
+
}
|
1140 |
+
.thumbnail-hover tr td, .thumbnail-hover tr th {
|
1141 |
+
font-size: 9px;
|
1142 |
+
text-align: left;
|
1143 |
+
padding: 0;
|
1144 |
+
line-height: 12px;
|
1145 |
+
color: #ffffff;
|
1146 |
+
white-space: nowrap;
|
1147 |
+
}
|
1148 |
+
.thumbnail-hover table {
|
1149 |
+
z-index: 1001;
|
1150 |
+
position: relative;
|
1151 |
+
}
|
1152 |
+
.thumbnail-hover-box {
|
1153 |
+
padding: 4px;
|
1154 |
+
}
|
1155 |
+
.thumbnail-hover tr th {
|
1156 |
+
width: 70px;
|
1157 |
+
}
|
1158 |
+
.thumbnail-hover-box a {
|
1159 |
+
color: #ffffff;
|
1160 |
+
text-decoration: none;
|
1161 |
+
font-size: 9px;
|
1162 |
+
}
|
1163 |
+
.thumbnail-hover-box a span {
|
1164 |
+
height: 10px;
|
1165 |
+
width: 10px;
|
1166 |
+
font-size: 12px;
|
1167 |
+
}
|
assets/css/jstree.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.jstree-children,.jstree-container-ul,.jstree-node{display:block;margin:0;padding:0;list-style-type:none;list-style-image:none}.jstree-node{white-space:nowrap}.jstree-anchor{display:inline-block;color:#000;white-space:nowrap;padding:0 4px 0 1px;margin:0;vertical-align:top}.jstree-anchor:focus{outline:0}.jstree-anchor,.jstree-anchor:active,.jstree-anchor:hover,.jstree-anchor:link,.jstree-anchor:visited{text-decoration:none}.jstree-icon{display:inline-block;text-decoration:none;margin:0;padding:0;vertical-align:top;text-align:center}.jstree-icon:empty{display:inline-block;text-decoration:none;margin:0;padding:0;vertical-align:top;text-align:center}.jstree-ocl{cursor:pointer}.jstree-leaf>.jstree-ocl{cursor:default}.jstree .jstree-open>.jstree-children{display:block}.jstree .jstree-closed>.jstree-children,.jstree .jstree-leaf>.jstree-children{display:none}.jstree-anchor>.jstree-themeicon{margin-right:2px}.jstree-anchor>.jstree-themeicon-hidden,.jstree-no-icons .jstree-themeicon{display:none}.jstree-hidden,.jstree-node.jstree-hidden{display:none}.jstree-rtl .jstree-anchor{padding:0 1px 0 4px}.jstree-rtl .jstree-anchor>.jstree-themeicon{margin-left:2px;margin-right:0}.jstree-rtl .jstree-node{margin-left:0}.jstree-rtl .jstree-container-ul>.jstree-node{margin-right:0}.jstree-wholerow-ul{position:relative;display:inline-block;min-width:100%}.jstree-wholerow-ul .jstree-leaf>.jstree-ocl{cursor:pointer}.jstree-wholerow-ul .jstree-anchor,.jstree-wholerow-ul .jstree-icon{position:relative}.jstree-wholerow-ul .jstree-wholerow{width:100%;cursor:pointer;position:absolute;left:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.jstree-contextmenu .jstree-anchor{-webkit-user-select:none;-webkit-touch-callout:none}.vakata-context{display:none}.vakata-context,.vakata-context ul{margin:0;padding:2px;position:absolute;background:#f5f5f5;border:1px solid #979797;box-shadow:2px 2px 2px #999}.vakata-context ul{list-style:none;left:100%;margin-top:-2.7em;margin-left:-4px}.vakata-context .vakata-context-right ul{left:auto;right:100%;margin-left:auto;margin-right:-4px}.vakata-context li{list-style:none}.vakata-context li>a{display:block;padding:0 2em 0 2em;text-decoration:none;width:auto;color:#000;white-space:nowrap;line-height:2.4em;text-shadow:1px 1px 0 #fff;border-radius:1px}.vakata-context li>a:hover{position:relative;background-color:#e8eff7;box-shadow:0 0 2px #0a6aa1}.vakata-context li>a.vakata-context-parent{background-image:url(data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAIORI4JlrqN1oMSnmmZDQUAOw==);background-position:right center;background-repeat:no-repeat}.vakata-context li>a:focus{outline:0}.vakata-context .vakata-context-hover>a{position:relative;background-color:#e8eff7;box-shadow:0 0 2px #0a6aa1}.vakata-context .vakata-context-separator>a,.vakata-context .vakata-context-separator>a:hover{background:#fff;border:0;border-top:1px solid #e2e3e3;height:1px;min-height:1px;max-height:1px;padding:0;margin:0 0 0 2.4em;border-left:1px solid #e0e0e0;text-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;border-radius:0}.vakata-context .vakata-contextmenu-disabled a,.vakata-context .vakata-contextmenu-disabled a:hover{color:silver;background-color:transparent;border:0;box-shadow:0 0 0}.vakata-context .vakata-contextmenu-disabled>a>i{filter:grayscale(100%)}.vakata-context li>a>i{text-decoration:none;display:inline-block;width:2.4em;height:2.4em;background:0 0;margin:0 0 0 -2em;vertical-align:top;text-align:center;line-height:2.4em}.vakata-context li>a>i:empty{width:2.4em;line-height:2.4em}.vakata-context li>a .vakata-contextmenu-sep{display:inline-block;width:1px;height:2.4em;background:#fff;margin:0 .5em 0 0;border-left:1px solid #e2e3e3}.vakata-context .vakata-contextmenu-shortcut{font-size:.8em;color:silver;opacity:.5;display:none}.vakata-context-rtl ul{left:auto;right:100%;margin-left:auto;margin-right:-4px}.vakata-context-rtl li>a.vakata-context-parent{background-image:url(data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAINjI+AC7rWHIsPtmoxLAA7);background-position:left center;background-repeat:no-repeat}.vakata-context-rtl .vakata-context-separator>a{margin:0 2.4em 0 0;border-left:0;border-right:1px solid #e2e3e3}.vakata-context-rtl .vakata-context-left ul{right:auto;left:100%;margin-left:-4px;margin-right:auto}.vakata-context-rtl li>a>i{margin:0 -2em 0 0}.vakata-context-rtl li>a .vakata-contextmenu-sep{margin:0 0 0 .5em;border-left-color:#fff;background:#e2e3e3}#jstree-marker{position:absolute;top:0;left:0;margin:-5px 0 0 0;padding:0;border-right:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid;width:0;height:0;font-size:0;line-height:0}.jstree-copy,.jstree-icon{display:inline-block;text-decoration:none;margin:0 2px 0 0;padding:0;width:16px;height:16px}.jstree-ok{background:green}.jstree-er{background:red}.jstree-copy{margin:0 2px 0 2px}.jstree-default .jstree-icon,.jstree-default .jstree-node{background-repeat:no-repeat;background-color:transparent}.jstree-default .jstree-anchor,.jstree-default .jstree-animated,.jstree-default .jstree-wholerow{transition:background-color .15s,box-shadow .15s}.jstree-default .jstree-hovered{box-shadow:inset 0 0 1px #ccc}.jstree-default .jstree-context{background:#e7f4f9;border-radius:2px;box-shadow:inset 0 0 1px #ccc}.jstree-default .jstree-clicked{background:#beebff;border-radius:2px;box-shadow:inset 0 0 1px #999}.jstree-default .jstree-no-icons .jstree-anchor>.jstree-themeicon{display:none}.jstree-default .jstree-disabled{background:0 0;color:#666}.jstree-default .jstree-disabled.jstree-hovered{background:0 0;box-shadow:none}.jstree-default .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default .jstree-disabled>.jstree-icon{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default .jstree-search{font-style:italic;color:#8b0000;font-weight:700}.jstree-default .jstree-no-checkboxes .jstree-checkbox{display:none!important}.jstree-default.jstree-checkbox-no-clicked .jstree-clicked{background:0 0;box-shadow:none}.jstree-default.jstree-checkbox-no-clicked .jstree-clicked.jstree-hovered{background:#e7f4f9}.jstree-default.jstree-checkbox-no-clicked>.jstree-wholerow-ul .jstree-wholerow-clicked{background:0 0}.jstree-default.jstree-checkbox-no-clicked>.jstree-wholerow-ul .jstree-wholerow-clicked.jstree-wholerow-hovered{background:#e7f4f9}.jstree-default>.jstree-striped{min-width:100%;display:inline-block;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAkCAMAAAB/qqA+AAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlMNAMM9s3UAAAAXSURBVHjajcEBAQAAAIKg/H/aCQZ70AUBjAATb6YPDgAAAABJRU5ErkJggg==) left top repeat}.jstree-default>.jstree-wholerow-ul .jstree-clicked,.jstree-default>.jstree-wholerow-ul .jstree-hovered{background:0 0;box-shadow:none;border-radius:0}.jstree-default .jstree-wholerow{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.jstree-default .jstree-wholerow-hovered{background:#e7f4f9}.jstree-default .jstree-wholerow-clicked{background:#beebff;background:-webkit-linear-gradient(top,#beebff 0,#a8e4ff 100%);background:linear-gradient(to bottom,#beebff 0,#a8e4ff 100%)}.jstree-default .jstree-node{min-height:30px;line-height:30px;margin-left:24px;min-width:30px}.jstree-default .jstree-anchor{line-height:30px;height:30px;width:calc(100% - 30px);overflow:hidden;padding:0 30px 0 6px;box-sizing:border-box;position:relative;margin:0 0 0 4px;border-radius:4px;display:inline-block;white-space:nowrap;text-overflow:ellipsis}.jstree-default .jstree-icon{width:30px;height:30px;line-height:30px}.jstree-default .jstree-icon:empty{width:24px;height:30px;line-height:30px}.jstree-default.jstree-rtl .jstree-node{margin-right:30px}.jstree-default .jstree-wholerow{height:30px}.jstree-default .jstree-icon,.jstree-default .jstree-node{background-image:url(../images/32px.png)}.jstree-default .jstree-node{background-position:-292px -4px;background-repeat:repeat-y;position:relative}.jstree-default .jstree-last{background:0 0}.jstree-default .jstree-open>.jstree-ocl{background-position:-132px -2px}.jstree-default .jstree-closed>.jstree-ocl{background-position:-100px -2px}.jstree-default .jstree-leaf>.jstree-ocl{background-position:-68px -2px}.jstree-default .jstree-themeicon{background-position:-260px -2px;background:0 0}.jstree-default>.jstree-no-dots .jstree-leaf>.jstree-ocl,.jstree-default>.jstree-no-dots .jstree-node{background:0 0}.jstree-default>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-36px -2px}.jstree-default>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-4px -2px}.jstree-default .jstree-disabled{background:0 0}.jstree-default .jstree-disabled.jstree-hovered{background:0 0}.jstree-default .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default .jstree-checkbox{background-position:-164px -4px}.jstree-default .jstree-checkbox:hover{background-position:-164px -36px}.jstree-default .jstree-checked>.jstree-checkbox,.jstree-default.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox{background-position:-228px -4px}.jstree-default .jstree-checked>.jstree-checkbox:hover,.jstree-default.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox:hover{background-position:-228px -36px}.jstree-default .jstree-anchor>.jstree-undetermined{background-position:-196px -4px}.jstree-default .jstree-anchor>.jstree-undetermined:hover{background-position:-196px -36px}.jstree-default .jstree-checkbox-disabled{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default>.jstree-striped{background-size:auto 48px}.jstree-default.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==);background-position:100% 1px;background-repeat:repeat-y}.jstree-default.jstree-rtl .jstree-last{background:0 0}.jstree-default.jstree-rtl .jstree-open>.jstree-ocl{background-position:-132px -36px}.jstree-default.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-100px -36px}.jstree-default.jstree-rtl .jstree-leaf>.jstree-ocl{background-position:-68px -36px}.jstree-default.jstree-rtl>.jstree-no-dots .jstree-leaf>.jstree-ocl,.jstree-default.jstree-rtl>.jstree-no-dots .jstree-node{background:0 0}.jstree-default.jstree-rtl>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-36px -36px}.jstree-default.jstree-rtl>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-4px -36px}.jstree-default .jstree-themeicon-custom{background-color:transparent;background-image:none;background-position:0 0}.jstree-default>.jstree-container-ul .jstree-loading>.jstree-ocl{background:url(throbber.gif) center center no-repeat}.jstree-default .jstree-file{background:url(../images/32px.png) -100px -68px no-repeat}.jstree-default .jstree-folder{background:url(../images/32px.png) -260px -4px no-repeat}.jstree-default>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}.jstree-default{line-height:30px;padding:0 4px}.jstree-default .jstree-er,.jstree-default .jstree-ok{background-image:url(../images/32px.png);background-repeat:no-repeat;background-color:transparent}.jstree-default i{background:0 0;width:20px;height:30px;line-height:30px;display:inline-block;vertical-align:top}.jstree-default .jstree-ok{background-position:-4px -68px}.jstree-default .jstree-er{background-position:-36px -68px}.jstree-default .jstree-ellipsis{overflow:hidden}.jstree-default .jstree-ellipsis .jstree-anchor{width:calc(100% - 29px);text-overflow:ellipsis;overflow:hidden}.jstree-default.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==)}.jstree-default.jstree-rtl .jstree-last{background:0 0}.jstree-default-small .jstree-node{min-height:18px;line-height:18px;margin-left:18px;min-width:18px}.jstree-default-small .jstree-anchor{line-height:18px;height:18px}.jstree-default-small .jstree-icon{width:18px;height:18px;line-height:18px}.jstree-default-small .jstree-icon:empty{width:18px;height:18px;line-height:18px}.jstree-default-small.jstree-rtl .jstree-node{margin-right:18px}.jstree-default-small .jstree-wholerow{height:18px}.jstree-default-small .jstree-icon,.jstree-default-small .jstree-node{background-image:url(../images/32px.png)}.jstree-default-small .jstree-node{background-position:-295px -7px;background-repeat:repeat-y}.jstree-default-small .jstree-last{background:0 0}.jstree-default-small .jstree-open>.jstree-ocl{background-position:-135px -7px}.jstree-default-small .jstree-closed>.jstree-ocl{background-position:-103px -7px}.jstree-default-small .jstree-leaf>.jstree-ocl{background-position:-71px -7px}.jstree-default-small .jstree-themeicon{background-position:-263px -7px}.jstree-default-small>.jstree-no-dots .jstree-leaf>.jstree-ocl,.jstree-default-small>.jstree-no-dots .jstree-node{background:0 0}.jstree-default-small>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-39px -7px}.jstree-default-small>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-7px -7px}.jstree-default-small .jstree-disabled{background:0 0}.jstree-default-small .jstree-disabled.jstree-hovered{background:0 0}.jstree-default-small .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default-small .jstree-checkbox{background-position:-167px -7px}.jstree-default-small .jstree-checkbox:hover{background-position:-167px -39px}.jstree-default-small .jstree-checked>.jstree-checkbox,.jstree-default-small.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox{background-position:-231px -7px}.jstree-default-small .jstree-checked>.jstree-checkbox:hover,.jstree-default-small.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox:hover{background-position:-231px -39px}.jstree-default-small .jstree-anchor>.jstree-undetermined{background-position:-199px -7px}.jstree-default-small .jstree-anchor>.jstree-undetermined:hover{background-position:-199px -39px}.jstree-default-small .jstree-checkbox-disabled{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default-small>.jstree-striped{background-size:auto 36px}.jstree-default-small.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==);background-position:100% 1px;background-repeat:repeat-y}.jstree-default-small.jstree-rtl .jstree-last{background:0 0}.jstree-default-small.jstree-rtl .jstree-open>.jstree-ocl{background-position:-135px -39px}.jstree-default-small.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-103px -39px}.jstree-default-small.jstree-rtl .jstree-leaf>.jstree-ocl{background-position:-71px -39px}.jstree-default-small.jstree-rtl>.jstree-no-dots .jstree-leaf>.jstree-ocl,.jstree-default-small.jstree-rtl>.jstree-no-dots .jstree-node{background:0 0}.jstree-default-small.jstree-rtl>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-39px -39px}.jstree-default-small.jstree-rtl>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-7px -39px}.jstree-default-small .jstree-themeicon-custom{background-color:transparent;background-image:none;background-position:0 0}.jstree-default-small>.jstree-container-ul .jstree-loading>.jstree-ocl{background:url(throbber.gif) center center no-repeat}.jstree-default-small .jstree-file{background:url(../images/32px.png) -103px -71px no-repeat}.jstree-default-small .jstree-folder{background:url(../images/32px.png) -263px -7px no-repeat}.jstree-default-small>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}.jstree-default-small{line-height:18px;padding:0 4px}.jstree-default-small .jstree-er,.jstree-default-small .jstree-ok{background-image:url(../images/32px.png);background-repeat:no-repeat;background-color:transparent}.jstree-default-small i{background:0 0;width:18px;height:18px;line-height:18px}.jstree-default-small .jstree-ok{background-position:-7px -71px}.jstree-default-small .jstree-er{background-position:-39px -71px}.jstree-default-small .jstree-ellipsis{overflow:hidden}.jstree-default-small .jstree-ellipsis .jstree-anchor{width:calc(100% - 23px);text-overflow:ellipsis;overflow:hidden}.jstree-default-small.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAACAQMAAABv1h6PAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMHBgAAiABBI4gz9AAAAABJRU5ErkJggg==)}.jstree-default-small.jstree-rtl .jstree-last{background:0 0}.jstree-default-large .jstree-node{min-height:32px;line-height:32px;margin-left:32px;min-width:32px}.jstree-default-large .jstree-anchor{line-height:32px;height:32px}.jstree-default-large .jstree-icon{width:32px;height:32px;line-height:32px}.jstree-default-large .jstree-icon:empty{width:32px;height:32px;line-height:32px}.jstree-default-large.jstree-rtl .jstree-node{margin-right:32px}.jstree-default-large .jstree-wholerow{height:32px}.jstree-default-large .jstree-icon,.jstree-default-large .jstree-node{background-image:url(../images/32px.png)}.jstree-default-large .jstree-node{background-position:-288px 0;background-repeat:repeat-y}.jstree-default-large .jstree-last{background:0 0}.jstree-default-large .jstree-open>.jstree-ocl{background-position:-128px 0}.jstree-default-large .jstree-closed>.jstree-ocl{background-position:-96px 0}.jstree-default-large .jstree-leaf>.jstree-ocl{background-position:-64px 0}.jstree-default-large .jstree-themeicon{background-position:-256px 0}.jstree-default-large>.jstree-no-dots .jstree-leaf>.jstree-ocl,.jstree-default-large>.jstree-no-dots .jstree-node{background:0 0}.jstree-default-large>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-32px 0}.jstree-default-large>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:0 0}.jstree-default-large .jstree-disabled{background:0 0}.jstree-default-large .jstree-disabled.jstree-hovered{background:0 0}.jstree-default-large .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default-large .jstree-checkbox{background-position:-160px 0}.jstree-default-large .jstree-checkbox:hover{background-position:-160px -32px}.jstree-default-large .jstree-checked>.jstree-checkbox,.jstree-default-large.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox{background-position:-224px 0}.jstree-default-large .jstree-checked>.jstree-checkbox:hover,.jstree-default-large.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox:hover{background-position:-224px -32px}.jstree-default-large .jstree-anchor>.jstree-undetermined{background-position:-192px 0}.jstree-default-large .jstree-anchor>.jstree-undetermined:hover{background-position:-192px -32px}.jstree-default-large .jstree-checkbox-disabled{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default-large>.jstree-striped{background-size:auto 64px}.jstree-default-large.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==);background-position:100% 1px;background-repeat:repeat-y}.jstree-default-large.jstree-rtl .jstree-last{background:0 0}.jstree-default-large.jstree-rtl .jstree-open>.jstree-ocl{background-position:-128px -32px}.jstree-default-large.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-96px -32px}.jstree-default-large.jstree-rtl .jstree-leaf>.jstree-ocl{background-position:-64px -32px}.jstree-default-large.jstree-rtl>.jstree-no-dots .jstree-leaf>.jstree-ocl,.jstree-default-large.jstree-rtl>.jstree-no-dots .jstree-node{background:0 0}.jstree-default-large.jstree-rtl>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-32px -32px}.jstree-default-large.jstree-rtl>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:0 -32px}.jstree-default-large .jstree-themeicon-custom{background-color:transparent;background-image:none;background-position:0 0}.jstree-default-large>.jstree-container-ul .jstree-loading>.jstree-ocl{background:url(throbber.gif) center center no-repeat}.jstree-default-large .jstree-file{background:url(../images/32px.png) -96px -64px no-repeat}.jstree-default-large .jstree-folder{background:url(../images/32px.png) -256px 0 no-repeat}.jstree-default-large>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}.jstree-default-large{line-height:32px;padding:0 4px}.jstree-default-large .jstree-er,.jstree-default-large .jstree-ok{background-image:url(../images/32px.png);background-repeat:no-repeat;background-color:transparent}.jstree-default-large i{background:0 0;width:32px;height:32px;line-height:32px}.jstree-default-large .jstree-ok{background-position:0 -64px}.jstree-default-large .jstree-er{background-position:-32px -64px}.jstree-default-large .jstree-ellipsis{overflow:hidden}.jstree-default-large .jstree-ellipsis .jstree-anchor{width:calc(100% - 37px);text-overflow:ellipsis;overflow:hidden}.jstree-default-large.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAACAQMAAAAD0EyKAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjgIIGBgABCgCBvVLXcAAAAABJRU5ErkJggg==)}.jstree-default-large.jstree-rtl .jstree-last{background:0 0}@media (max-width:768px){.jstree-dnd-responsive{line-height:40px;font-weight:700;font-size:1.1em;text-shadow:1px 1px #fff}.jstree-dnd-responsive>i{background:0 0;width:40px;height:40px}.jstree-dnd-responsive>.jstree-ok{background-image:url(../images/40px.png);background-position:0 -200px;background-size:120px 240px}.jstree-dnd-responsive>.jstree-er{background-image:url(../images/40px.png);background-position:-40px -200px;background-size:120px 240px}#jstree-marker.jstree-dnd-responsive{border-left-width:10px;border-top-width:10px;border-bottom-width:10px;margin-top:-10px}}@media (max-width:768px){.jstree-default-responsive .jstree-icon{background-image:url(../images/40px.png)}.jstree-default-responsive .jstree-leaf>.jstree-ocl,.jstree-default-responsive .jstree-node{background:0 0}.jstree-default-responsive .jstree-node{min-height:40px;line-height:40px;margin-left:40px;min-width:40px;white-space:nowrap}.jstree-default-responsive .jstree-anchor{line-height:40px;height:40px}.jstree-default-responsive .jstree-icon,.jstree-default-responsive .jstree-icon:empty{width:40px;height:40px;line-height:40px}.jstree-default-responsive>.jstree-container-ul>.jstree-node{margin-left:0}.jstree-default-responsive.jstree-rtl .jstree-node{margin-left:0;margin-right:40px;background:0 0}.jstree-default-responsive.jstree-rtl .jstree-container-ul>.jstree-node{margin-right:0}.jstree-default-responsive .jstree-checkbox,.jstree-default-responsive .jstree-ocl,.jstree-default-responsive .jstree-themeicon{background-size:120px 240px}.jstree-default-responsive .jstree-leaf>.jstree-ocl,.jstree-default-responsive.jstree-rtl .jstree-leaf>.jstree-ocl{background:0 0}.jstree-default-responsive .jstree-open>.jstree-ocl{background-position:0 0!important}.jstree-default-responsive .jstree-closed>.jstree-ocl{background-position:0 -40px!important}.jstree-default-responsive.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-40px 0!important}.jstree-default-responsive .jstree-themeicon{background-position:-40px -40px}.jstree-default-responsive .jstree-checkbox,.jstree-default-responsive .jstree-checkbox:hover{background-position:-40px -80px}.jstree-default-responsive .jstree-checked>.jstree-checkbox,.jstree-default-responsive .jstree-checked>.jstree-checkbox:hover,.jstree-default-responsive.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox,.jstree-default-responsive.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox:hover{background-position:0 -80px}.jstree-default-responsive .jstree-anchor>.jstree-undetermined,.jstree-default-responsive .jstree-anchor>.jstree-undetermined:hover{background-position:0 -120px}.jstree-default-responsive .jstree-anchor{font-weight:700;font-size:1.1em;text-shadow:1px 1px #fff}.jstree-default-responsive>.jstree-striped{background:0 0}.jstree-default-responsive .jstree-wholerow{border-top:1px solid rgba(255,255,255,.7);border-bottom:1px solid rgba(64,64,64,.2);background:#ebebeb;height:40px}.jstree-default-responsive .jstree-wholerow-hovered{background:#e7f4f9}.jstree-default-responsive .jstree-wholerow-clicked{background:#beebff}.jstree-default-responsive .jstree-children .jstree-last>.jstree-wholerow{box-shadow:inset 0 -6px 3px -5px #666}.jstree-default-responsive .jstree-children .jstree-open>.jstree-wholerow{box-shadow:inset 0 6px 3px -5px #666;border-top:0}.jstree-default-responsive .jstree-children .jstree-open+.jstree-open{box-shadow:none}.jstree-default-responsive .jstree-checkbox,.jstree-default-responsive .jstree-icon,.jstree-default-responsive .jstree-node,.jstree-default-responsive .jstree-node>.jstree-ocl,.jstree-default-responsive .jstree-themeicon{background-image:url(../images/40px.png);background-size:120px 240px}.jstree-default-responsive .jstree-node{background-position:-80px 0;background-repeat:repeat-y}.jstree-default-responsive .jstree-last{background:0 0}.jstree-default-responsive .jstree-leaf>.jstree-ocl{background-position:-40px -120px}.jstree-default-responsive .jstree-last>.jstree-ocl{background-position:-40px -160px}.jstree-default-responsive .jstree-themeicon-custom{background-color:transparent;background-image:none;background-position:0 0}.jstree-default-responsive .jstree-file{background:url(../images/40px.png) 0 -160px no-repeat;background-size:120px 240px}.jstree-default-responsive .jstree-folder{background:url(../images/40px.png) -40px -40px no-repeat;background-size:120px 240px}.jstree-default-responsive>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}}
|
1 |
+
.jstree-children,.jstree-container-ul,.jstree-node{display:block;margin:0;padding:0;list-style-type:none;list-style-image:none}.jstree-node{white-space:nowrap}.jstree-anchor{display:inline-block;color:#000;white-space:nowrap;padding:0 4px 0 1px;margin:0;vertical-align:top}.jstree-anchor:focus{outline:0}.jstree-anchor,.jstree-anchor:active,.jstree-anchor:hover,.jstree-anchor:link,.jstree-anchor:visited{text-decoration:none}.jstree-icon{display:inline-block;text-decoration:none;margin:0;padding:0;vertical-align:top;text-align:center}.jstree-icon:empty{display:inline-block;text-decoration:none;margin:0;padding:0;vertical-align:top;text-align:center}.jstree-ocl{cursor:pointer}.jstree-leaf>.jstree-ocl{cursor:default}.jstree .jstree-open>.jstree-children{display:block}.jstree .jstree-closed>.jstree-children,.jstree .jstree-leaf>.jstree-children{display:none}.jstree-anchor>.jstree-themeicon{margin-right:2px}.jstree-anchor>.jstree-themeicon-hidden,.jstree-no-icons .jstree-themeicon{display:none}.jstree-hidden,.jstree-node.jstree-hidden{display:none}.jstree-rtl .jstree-anchor{padding:0 1px 0 4px}.jstree-rtl .jstree-anchor>.jstree-themeicon{margin-left:2px;margin-right:0}.jstree-rtl .jstree-node{margin-left:0}.jstree-rtl .jstree-container-ul>.jstree-node{margin-right:0}.jstree-wholerow-ul{position:relative;display:inline-block;min-width:100%}.jstree-wholerow-ul .jstree-leaf>.jstree-ocl{cursor:pointer}.jstree-wholerow-ul .jstree-anchor,.jstree-wholerow-ul .jstree-icon{position:relative}.jstree-wholerow-ul .jstree-wholerow{width:100%;cursor:pointer;position:absolute;left:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.jstree-contextmenu .jstree-anchor{-webkit-user-select:none;-webkit-touch-callout:none}.vakata-context{display:none}.vakata-context,.vakata-context ul{margin:0;padding:2px;position:absolute;background:#f5f5f5;border:1px solid #979797;box-shadow:2px 2px 2px #999}.vakata-context ul{list-style:none;left:100%;margin-top:-2.7em;margin-left:-4px}.vakata-context .vakata-context-right ul{left:auto;right:100%;margin-left:auto;margin-right:-4px}.vakata-context li{list-style:none}.vakata-context li>a{display:block;padding:0 2em 0 2em;text-decoration:none;width:auto;color:#000;white-space:nowrap;line-height:2.4em;text-shadow:1px 1px 0 #fff;border-radius:1px}.vakata-context li>a:hover{position:relative;background-color:#e8eff7;box-shadow:0 0 2px #0a6aa1}.vakata-context li>a.vakata-context-parent{background-image:url(data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAIORI4JlrqN1oMSnmmZDQUAOw==);background-position:right center;background-repeat:no-repeat}.vakata-context li>a:focus{outline:0}.vakata-context .vakata-context-hover>a{position:relative;background-color:#e8eff7;box-shadow:0 0 2px #0a6aa1}.vakata-context .vakata-context-separator>a,.vakata-context .vakata-context-separator>a:hover{background:#fff;border:0;border-top:1px solid #e2e3e3;height:1px;min-height:1px;max-height:1px;padding:0;margin:0 0 0 2.4em;border-left:1px solid #e0e0e0;text-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;border-radius:0}.vakata-context .vakata-contextmenu-disabled a,.vakata-context .vakata-contextmenu-disabled a:hover{color:silver;background-color:transparent;border:0;box-shadow:0 0 0}.vakata-context .vakata-contextmenu-disabled>a>i{filter:grayscale(100%)}.vakata-context li>a>i{text-decoration:none;display:inline-block;width:2.4em;height:2.4em;background:0 0;margin:0 0 0 -2em;vertical-align:top;text-align:center;line-height:2.4em}.vakata-context li>a>i:empty{width:2.4em;line-height:2.4em}.vakata-context li>a .vakata-contextmenu-sep{display:inline-block;width:1px;height:2.4em;background:#fff;margin:0 .5em 0 0;border-left:1px solid #e2e3e3}.vakata-context .vakata-contextmenu-shortcut{font-size:.8em;color:silver;opacity:.5;display:none}.vakata-context-rtl ul{left:auto;right:100%;margin-left:auto;margin-right:-4px}.vakata-context-rtl li>a.vakata-context-parent{background-image:url(data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAINjI+AC7rWHIsPtmoxLAA7);background-position:left center;background-repeat:no-repeat}.vakata-context-rtl .vakata-context-separator>a{margin:0 2.4em 0 0;border-left:0;border-right:1px solid #e2e3e3}.vakata-context-rtl .vakata-context-left ul{right:auto;left:100%;margin-left:-4px;margin-right:auto}.vakata-context-rtl li>a>i{margin:0 -2em 0 0}.vakata-context-rtl li>a .vakata-contextmenu-sep{margin:0 0 0 .5em;border-left-color:#fff;background:#e2e3e3}#jstree-marker{position:absolute;top:0;left:0;margin:-5px 0 0 0;padding:0;border-right:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid;width:0;height:0;font-size:0;line-height:0}.jstree-copy,.jstree-icon{display:inline-block;text-decoration:none;margin:0 2px 0 0;padding:0;width:16px;height:16px}.jstree-ok{background:green}.jstree-er{background:red}.jstree-copy{margin:0 2px 0 2px}.jstree-default .jstree-icon,.jstree-default .jstree-node{background-repeat:no-repeat;background-color:transparent}.jstree-default .jstree-anchor,.jstree-default .jstree-animated,.jstree-default .jstree-wholerow{transition:background-color .15s,box-shadow .15s}.jstree-default .jstree-hovered{box-shadow:inset 0 0 1px #ccc}.jstree-default .jstree-context{background:#e7f4f9;border-radius:2px;box-shadow:inset 0 0 1px #ccc}.jstree-default .jstree-clicked{background:#beebff;border-radius:2px;box-shadow:inset 0 0 1px #999}.jstree-default .jstree-no-icons .jstree-anchor>.jstree-themeicon{display:none}.jstree-default .jstree-disabled{background:0 0;color:#666}.jstree-default .jstree-disabled.jstree-hovered{background:0 0;box-shadow:none}.jstree-default .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default .jstree-disabled>.jstree-icon{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default .jstree-search{font-style:italic;color:#8b0000;font-weight:700}.jstree-default .jstree-no-checkboxes .jstree-checkbox{display:none!important}.jstree-default.jstree-checkbox-no-clicked .jstree-clicked{background:0 0;box-shadow:none}.jstree-default.jstree-checkbox-no-clicked .jstree-clicked.jstree-hovered{background:#e7f4f9}.jstree-default.jstree-checkbox-no-clicked>.jstree-wholerow-ul .jstree-wholerow-clicked{background:0 0}.jstree-default.jstree-checkbox-no-clicked>.jstree-wholerow-ul .jstree-wholerow-clicked.jstree-wholerow-hovered{background:#e7f4f9}.jstree-default>.jstree-striped{min-width:100%;display:inline-block;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAkCAMAAAB/qqA+AAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlMNAMM9s3UAAAAXSURBVHjajcEBAQAAAIKg/H/aCQZ70AUBjAATb6YPDgAAAABJRU5ErkJggg==) left top repeat}.jstree-default>.jstree-wholerow-ul .jstree-clicked,.jstree-default>.jstree-wholerow-ul .jstree-hovered{background:0 0;box-shadow:none;border-radius:0}.jstree-default .jstree-wholerow{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.jstree-default .jstree-wholerow-hovered{background:#e7f4f9}.jstree-default .jstree-wholerow-clicked{background:#beebff;background:-webkit-linear-gradient(top,#beebff 0,#a8e4ff 100%);background:linear-gradient(to bottom,#beebff 0,#a8e4ff 100%)}.jstree-default .jstree-node{min-height:30px;line-height:30px;margin-left:24px;min-width:30px}.jstree-default .jstree-anchor{line-height:30px;height:30px;width:calc(100% - 30px);overflow:hidden;padding:0 30px 0 6px;box-sizing:border-box;position:relative;margin:0 0 0 4px;border-radius:4px;display:inline-block;white-space:nowrap;text-overflow:ellipsis}.jstree-default .jstree-icon{width:30px;height:30px;line-height:30px}.jstree-default .jstree-icon:empty{width:24px;height:30px;line-height:30px}.jstree-default.jstree-rtl .jstree-node{margin-right:30px}.jstree-default .jstree-wholerow{height:30px}.jstree-default .jstree-icon,.jstree-default .jstree-node{background-image:url(../images/32px.png)}.jstree-default .jstree-node{background-position:-292px -4px;background-repeat:repeat-y;position:relative}.jstree-default .jstree-last{background:0 0}.jstree-default .jstree-open>.jstree-ocl{background-position:-132px -2px}.jstree-default .jstree-closed>.jstree-ocl{background-position:-100px -2px}.jstree-default .jstree-leaf>.jstree-ocl{background-position:-68px -2px}.jstree-default .jstree-themeicon{background-position:-260px -2px;background:0 0}.jstree-default>.jstree-no-dots .jstree-leaf>.jstree-ocl,.jstree-default>.jstree-no-dots .jstree-node{background:0 0}.jstree-default>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-36px -2px}.jstree-default>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-4px -2px}.jstree-default .jstree-disabled{background:0 0}.jstree-default .jstree-disabled.jstree-hovered{background:0 0}.jstree-default .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default .jstree-checkbox{background-position:-164px -4px}.jstree-default .jstree-checkbox:hover{background-position:-164px -36px}.jstree-default .jstree-checked>.jstree-checkbox,.jstree-default.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox{background-position:-228px -4px}.jstree-default .jstree-checked>.jstree-checkbox:hover,.jstree-default.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox:hover{background-position:-228px -36px}.jstree-default .jstree-anchor>.jstree-undetermined{background-position:-196px -4px}.jstree-default .jstree-anchor>.jstree-undetermined:hover{background-position:-196px -36px}.jstree-default .jstree-checkbox-disabled{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default>.jstree-striped{background-size:auto 48px}.jstree-default.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==);background-position:100% 1px;background-repeat:repeat-y}.jstree-default.jstree-rtl .jstree-last{background:0 0}.jstree-default.jstree-rtl .jstree-open>.jstree-ocl{background-position:-132px -36px}.jstree-default.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-100px -36px}.jstree-default.jstree-rtl .jstree-leaf>.jstree-ocl{background-position:-68px -36px}.jstree-default.jstree-rtl>.jstree-no-dots .jstree-leaf>.jstree-ocl,.jstree-default.jstree-rtl>.jstree-no-dots .jstree-node{background:0 0}.jstree-default.jstree-rtl>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-36px -36px}.jstree-default.jstree-rtl>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-4px -36px}.jstree-default .jstree-themeicon-custom{background-color:transparent;background-image:none;background-position:0 0}.jstree-default>.jstree-container-ul .jstree-loading>.jstree-ocl{background:url(throbber.gif) center center no-repeat}.jstree-default .jstree-file{background:url(../images/32px.png) -100px -68px no-repeat}.jstree-default .jstree-folder{background:url(../images/32px.png) -260px -4px no-repeat}.jstree-default>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}.jstree-default{line-height:30px;padding:0 4px}.jstree-default .jstree-er,.jstree-default .jstree-ok{background-image:url(../images/32px.png);background-repeat:no-repeat;background-color:transparent}.jstree-default i{background:0 0;width:20px;height:30px;line-height:30px;display:inline-block;vertical-align:top}.jstree-default .jstree-ok{background-position:-4px -68px}.jstree-default .jstree-er{background-position:-36px -68px}.jstree-default .jstree-ellipsis{overflow:hidden}.jstree-default .jstree-ellipsis .jstree-anchor{width:calc(100% - 29px);text-overflow:ellipsis;overflow:hidden}.jstree-default.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==)}.jstree-default.jstree-rtl .jstree-last{background:0 0}.jstree-default-small .jstree-node{min-height:18px;line-height:18px;margin-left:18px;min-width:18px}.jstree-default-small .jstree-anchor{line-height:18px;height:18px}.jstree-default-small .jstree-icon{width:18px;height:18px;line-height:18px}.jstree-default-small .jstree-icon:empty{width:18px;height:18px;line-height:18px}.jstree-default-small.jstree-rtl .jstree-node{margin-right:18px}.jstree-default-small .jstree-wholerow{height:18px}.jstree-default-small .jstree-icon,.jstree-default-small .jstree-node{background-image:url(../images/32px.png)}.jstree-default-small .jstree-node{background-position:-295px -7px;background-repeat:repeat-y}.jstree-default-small .jstree-last{background:0 0}.jstree-default-small .jstree-open>.jstree-ocl{background-position:-135px -7px}.jstree-default-small .jstree-closed>.jstree-ocl{background-position:-103px -7px}.jstree-default-small .jstree-leaf>.jstree-ocl{background-position:-71px -7px}.jstree-default-small .jstree-themeicon{background-position:-263px -7px}.jstree-default-small>.jstree-no-dots .jstree-leaf>.jstree-ocl,.jstree-default-small>.jstree-no-dots .jstree-node{background:0 0}.jstree-default-small>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-39px -7px}.jstree-default-small>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-7px -7px}.jstree-default-small .jstree-disabled{background:0 0}.jstree-default-small .jstree-disabled.jstree-hovered{background:0 0}.jstree-default-small .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default-small .jstree-checkbox{background-position:-167px -7px}.jstree-default-small .jstree-checkbox:hover{background-position:-167px -39px}.jstree-default-small .jstree-checked>.jstree-checkbox,.jstree-default-small.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox{background-position:-231px -7px}.jstree-default-small .jstree-checked>.jstree-checkbox:hover,.jstree-default-small.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox:hover{background-position:-231px -39px}.jstree-default-small .jstree-anchor>.jstree-undetermined{background-position:-199px -7px}.jstree-default-small .jstree-anchor>.jstree-undetermined:hover{background-position:-199px -39px}.jstree-default-small .jstree-checkbox-disabled{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default-small>.jstree-striped{background-size:auto 36px}.jstree-default-small.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==);background-position:100% 1px;background-repeat:repeat-y}.jstree-default-small.jstree-rtl .jstree-last{background:0 0}.jstree-default-small.jstree-rtl .jstree-open>.jstree-ocl{background-position:-135px -39px}.jstree-default-small.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-103px -39px}.jstree-default-small.jstree-rtl .jstree-leaf>.jstree-ocl{background-position:-71px -39px}.jstree-default-small.jstree-rtl>.jstree-no-dots .jstree-leaf>.jstree-ocl,.jstree-default-small.jstree-rtl>.jstree-no-dots .jstree-node{background:0 0}.jstree-default-small.jstree-rtl>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-39px -39px}.jstree-default-small.jstree-rtl>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:-7px -39px}.jstree-default-small .jstree-themeicon-custom{background-color:transparent;background-image:none;background-position:0 0}.jstree-default-small>.jstree-container-ul .jstree-loading>.jstree-ocl{background:url(throbber.gif) center center no-repeat}.jstree-default-small .jstree-file{background:url(../images/32px.png) -103px -71px no-repeat}.jstree-default-small .jstree-folder{background:url(../images/32px.png) -263px -7px no-repeat}.jstree-default-small>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}.jstree-default-small{line-height:18px;padding:0 4px}.jstree-default-small .jstree-er,.jstree-default-small .jstree-ok{background-image:url(../images/32px.png);background-repeat:no-repeat;background-color:transparent}.jstree-default-small i{background:0 0;width:18px;height:18px;line-height:18px}.jstree-default-small .jstree-ok{background-position:-7px -71px}.jstree-default-small .jstree-er{background-position:-39px -71px}.jstree-default-small .jstree-ellipsis{overflow:hidden}.jstree-default-small .jstree-ellipsis .jstree-anchor{width:calc(100% - 23px);text-overflow:ellipsis;overflow:hidden}.jstree-default-small.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAACAQMAAABv1h6PAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMHBgAAiABBI4gz9AAAAABJRU5ErkJggg==)}.jstree-default-small.jstree-rtl .jstree-last{background:0 0}.jstree-default-large .jstree-node{min-height:32px;line-height:32px;margin-left:32px;min-width:32px}.jstree-default-large .jstree-anchor{line-height:32px;height:32px}.jstree-default-large .jstree-icon{width:32px;height:32px;line-height:32px}.jstree-default-large .jstree-icon:empty{width:32px;height:32px;line-height:32px}.jstree-default-large.jstree-rtl .jstree-node{margin-right:32px}.jstree-default-large .jstree-wholerow{height:32px}.jstree-default-large .jstree-icon,.jstree-default-large .jstree-node{background-image:url(../images/32px.png)}.jstree-default-large .jstree-node{background-position:-288px 0;background-repeat:repeat-y}.jstree-default-large .jstree-last{background:0 0}.jstree-default-large .jstree-open>.jstree-ocl{background-position:-128px 0}.jstree-default-large .jstree-closed>.jstree-ocl{background-position:-96px 0}.jstree-default-large .jstree-leaf>.jstree-ocl{background-position:-64px 0}.jstree-default-large .jstree-themeicon{background-position:-256px 0}.jstree-default-large>.jstree-no-dots .jstree-leaf>.jstree-ocl,.jstree-default-large>.jstree-no-dots .jstree-node{background:0 0}.jstree-default-large>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-32px 0}.jstree-default-large>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:0 0}.jstree-default-large .jstree-disabled{background:0 0}.jstree-default-large .jstree-disabled.jstree-hovered{background:0 0}.jstree-default-large .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default-large .jstree-checkbox{background-position:-160px 0}.jstree-default-large .jstree-checkbox:hover{background-position:-160px -32px}.jstree-default-large .jstree-checked>.jstree-checkbox,.jstree-default-large.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox{background-position:-224px 0}.jstree-default-large .jstree-checked>.jstree-checkbox:hover,.jstree-default-large.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox:hover{background-position:-224px -32px}.jstree-default-large .jstree-anchor>.jstree-undetermined{background-position:-192px 0}.jstree-default-large .jstree-anchor>.jstree-undetermined:hover{background-position:-192px -32px}.jstree-default-large .jstree-checkbox-disabled{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default-large>.jstree-striped{background-size:auto 64px}.jstree-default-large.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==);background-position:100% 1px;background-repeat:repeat-y}.jstree-default-large.jstree-rtl .jstree-last{background:0 0}.jstree-default-large.jstree-rtl .jstree-open>.jstree-ocl{background-position:-128px -32px}.jstree-default-large.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-96px -32px}.jstree-default-large.jstree-rtl .jstree-leaf>.jstree-ocl{background-position:-64px -32px}.jstree-default-large.jstree-rtl>.jstree-no-dots .jstree-leaf>.jstree-ocl,.jstree-default-large.jstree-rtl>.jstree-no-dots .jstree-node{background:0 0}.jstree-default-large.jstree-rtl>.jstree-no-dots .jstree-open>.jstree-ocl{background-position:-32px -32px}.jstree-default-large.jstree-rtl>.jstree-no-dots .jstree-closed>.jstree-ocl{background-position:0 -32px}.jstree-default-large .jstree-themeicon-custom{background-color:transparent;background-image:none;background-position:0 0}.jstree-default-large>.jstree-container-ul .jstree-loading>.jstree-ocl{background:url(throbber.gif) center center no-repeat}.jstree-default-large .jstree-file{background:url(../images/32px.png) -96px -64px no-repeat}.jstree-default-large .jstree-folder{background:url(../images/32px.png) -256px 0 no-repeat}.jstree-default-large>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}.jstree-default-large{line-height:32px;padding:0 4px}.jstree-default-large .jstree-er,.jstree-default-large .jstree-ok{background-image:url(../images/32px.png);background-repeat:no-repeat;background-color:transparent}.jstree-default-large i{background:0 0;width:32px;height:32px;line-height:32px}.jstree-default-large .jstree-ok{background-position:0 -64px}.jstree-default-large .jstree-er{background-position:-32px -64px}.jstree-default-large .jstree-ellipsis{overflow:hidden}.jstree-default-large .jstree-ellipsis .jstree-anchor{width:calc(100% - 37px);text-overflow:ellipsis;overflow:hidden}.jstree-default-large.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAACAQMAAAAD0EyKAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjgIIGBgABCgCBvVLXcAAAAABJRU5ErkJggg==)}.jstree-default-large.jstree-rtl .jstree-last{background:0 0}@media (max-width:768px){.jstree-dnd-responsive{line-height:40px;font-weight:700;font-size:1.1em;text-shadow:1px 1px #fff}.jstree-dnd-responsive>i{background:0 0;width:40px;height:40px}.jstree-dnd-responsive>.jstree-ok{background-image:url(../images/40px.png);background-position:0 -200px;background-size:120px 240px}.jstree-dnd-responsive>.jstree-er{background-image:url(../images/40px.png);background-position:-40px -200px;background-size:120px 240px}#jstree-marker.jstree-dnd-responsive{border-left-width:10px;border-top-width:10px;border-bottom-width:10px;margin-top:-10px}}@media (max-width:768px){.jstree-default-responsive .jstree-icon{background-image:url(../images/40px.png)}.jstree-default-responsive .jstree-leaf>.jstree-ocl,.jstree-default-responsive .jstree-node{background:0 0}.jstree-default-responsive .jstree-node{min-height:40px;line-height:40px;margin-left:40px;min-width:40px;white-space:nowrap}.jstree-default-responsive .jstree-anchor{line-height:40px;height:40px}.jstree-default-responsive .jstree-icon,.jstree-default-responsive .jstree-icon:empty{width:40px;height:40px;line-height:40px}.jstree-default-responsive>.jstree-container-ul>.jstree-node{margin-left:0}.jstree-default-responsive.jstree-rtl .jstree-node{margin-left:0;margin-right:40px;background:0 0}.jstree-default-responsive.jstree-rtl .jstree-container-ul>.jstree-node{margin-right:0}.jstree-default-responsive .jstree-checkbox,.jstree-default-responsive .jstree-ocl,.jstree-default-responsive .jstree-themeicon{background-size:120px 240px}.jstree-default-responsive .jstree-leaf>.jstree-ocl,.jstree-default-responsive.jstree-rtl .jstree-leaf>.jstree-ocl{background:0 0}.jstree-default-responsive .jstree-open>.jstree-ocl{background-position:0 0!important}.jstree-default-responsive .jstree-closed>.jstree-ocl{background-position:0 -40px!important}.jstree-default-responsive.jstree-rtl .jstree-closed>.jstree-ocl{background-position:-40px 0!important}.jstree-default-responsive .jstree-themeicon{background-position:-40px -40px}.jstree-default-responsive .jstree-checkbox,.jstree-default-responsive .jstree-checkbox:hover{background-position:-40px -80px}.jstree-default-responsive .jstree-checked>.jstree-checkbox,.jstree-default-responsive .jstree-checked>.jstree-checkbox:hover,.jstree-default-responsive.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox,.jstree-default-responsive.jstree-checkbox-selection .jstree-clicked>.jstree-checkbox:hover{background-position:0 -80px}.jstree-default-responsive .jstree-anchor>.jstree-undetermined,.jstree-default-responsive .jstree-anchor>.jstree-undetermined:hover{background-position:0 -120px}.jstree-default-responsive .jstree-anchor{font-weight:700;font-size:1.1em;text-shadow:1px 1px #fff}.jstree-default-responsive>.jstree-striped{background:0 0}.jstree-default-responsive .jstree-wholerow{border-top:1px solid rgba(255,255,255,.7);border-bottom:1px solid rgba(64,64,64,.2);background:#ebebeb;height:40px}.jstree-default-responsive .jstree-wholerow-hovered{background:#e7f4f9}.jstree-default-responsive .jstree-wholerow-clicked{background:#beebff}.jstree-default-responsive .jstree-children .jstree-last>.jstree-wholerow{box-shadow:inset 0 -6px 3px -5px #666}.jstree-default-responsive .jstree-children .jstree-open>.jstree-wholerow{box-shadow:inset 0 6px 3px -5px #666;border-top:0}.jstree-default-responsive .jstree-children .jstree-open+.jstree-open{box-shadow:none}.jstree-default-responsive .jstree-checkbox,.jstree-default-responsive .jstree-icon,.jstree-default-responsive .jstree-node,.jstree-default-responsive .jstree-node>.jstree-ocl,.jstree-default-responsive .jstree-themeicon{background-image:url(../images/40px.png);background-size:120px 240px}.jstree-default-responsive .jstree-node{background-position:-80px 0;background-repeat:repeat-y}.jstree-default-responsive .jstree-last{background:0 0}.jstree-default-responsive .jstree-leaf>.jstree-ocl{background-position:-40px -120px}.jstree-default-responsive .jstree-last>.jstree-ocl{background-position:-40px -160px}.jstree-default-responsive .jstree-themeicon-custom{background-color:transparent;background-image:none;background-position:0 0}.jstree-default-responsive .jstree-file{background:url(../images/40px.png) 0 -160px no-repeat;background-size:120px 240px}.jstree-default-responsive .jstree-folder{background:url(../images/40px.png) -40px -40px no-repeat;background-size:120px 240px}.jstree-default-responsive>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}}.thumbnail-hover{overflow:hidden;position:absolute;top:0;right:0;bottom:0;left:0;transition:opacity .1s;display:none}.attachment-preview:hover .thumbnail-hover{display:block}.thumbnail-hover:after{top:0;left:0;width:100%;height:100%;position:absolute;content:"";background:#1e293b;z-index:100;opacity:.75}.thumbnail-hover tr td,.thumbnail-hover tr th{font-size:9px;text-align:left;padding:0;line-height:12px;color:#fff;white-space:nowrap}.thumbnail-hover table{z-index:1001;position:relative}.thumbnail-hover-box{padding:4px}.thumbnail-hover tr th{width:70px}.thumbnail-hover-box a{color:#fff;text-decoration:none;font-size:9px}.thumbnail-hover-box a span{height:10px;width:10px;font-size:12px}
|
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}.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)}
|
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)}@-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/css/page-post-media.css
CHANGED
@@ -6,6 +6,7 @@
|
|
6 |
border-right: solid 1px #ddd;
|
7 |
background: #f1f1f1;
|
8 |
direction: ltr;
|
|
|
9 |
}
|
10 |
.folder-modal .media-frame .media-frame-content, .folder-modal .media-frame .media-frame-router, .folder-modal .media-frame .media-frame-title, .folder-modal .media-frame .media-frame-toolbar {
|
11 |
left: 275px
|
@@ -311,7 +312,21 @@ svg#successAnimation {
|
|
311 |
text-decoration: none;
|
312 |
font-size: 14px
|
313 |
}
|
314 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
315 |
span.upgrade-message {
|
316 |
padding: 0;
|
317 |
background: #fff;
|
@@ -633,7 +648,8 @@ body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon .pfolder-fol
|
|
633 |
display: block;
|
634 |
padding: 5px 10px;
|
635 |
line-height: 18px;
|
636 |
-
white-space: nowrap
|
|
|
637 |
}
|
638 |
|
639 |
.dynamic-menu ul > li > a > span, .dynamic-menu ul > li > a > span span {
|
@@ -644,7 +660,8 @@ body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon .pfolder-fol
|
|
644 |
top: auto !important;
|
645 |
width: 20px !important;
|
646 |
height: 20px !important;
|
647 |
-
line-height: 14px
|
|
|
648 |
}
|
649 |
|
650 |
#custom-menu .dynamic-menu ul > li > a .sticky-pin {
|
@@ -655,6 +672,11 @@ body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon .pfolder-fol
|
|
655 |
font-size: 16px !important
|
656 |
}
|
657 |
|
|
|
|
|
|
|
|
|
|
|
658 |
li.active-menu {
|
659 |
z-index: 2 !important
|
660 |
}
|
@@ -701,15 +723,26 @@ li.active-menu {
|
|
701 |
display: block;
|
702 |
position: relative;
|
703 |
max-width: 100%;
|
704 |
-
margin: 0
|
705 |
-
padding: 0;
|
706 |
color: #595959;
|
707 |
text-align: center;
|
708 |
text-transform: none;
|
709 |
word-wrap: break-word;
|
710 |
-
font-weight:
|
711 |
font-size: 22px;
|
712 |
-
line-height: 26px
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
713 |
}
|
714 |
|
715 |
.folder-group {
|
@@ -766,8 +799,11 @@ li.active-menu {
|
|
766 |
.folder-form-buttons {
|
767 |
display: flex
|
768 |
}
|
|
|
|
|
|
|
769 |
|
770 |
-
.folder-form-buttons a, .folder-form-buttons button {
|
771 |
display: inline-flex;
|
772 |
padding: 0;
|
773 |
text-decoration: none;
|
@@ -783,7 +819,6 @@ li.active-menu {
|
|
783 |
flex: 1;
|
784 |
justify-content: center;
|
785 |
outline: 0;
|
786 |
-
color: #fff
|
787 |
}
|
788 |
|
789 |
.folder-form-buttons .form-cancel-btn, .folder-form-buttons a.form-cancel-btn:hover {
|
@@ -792,6 +827,20 @@ li.active-menu {
|
|
792 |
outline: 0
|
793 |
}
|
794 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
795 |
.form-submit-btn, .form-submit-btn:hover {
|
796 |
background-color: #3085d6;
|
797 |
color: #fff !important;
|
@@ -814,7 +863,7 @@ li.active-menu {
|
|
814 |
}
|
815 |
|
816 |
.folder-form-message {
|
817 |
-
|
818 |
font-size: 15px;
|
819 |
line-height: 18px;
|
820 |
color: #484848;
|
@@ -1026,7 +1075,47 @@ li.active-menu {
|
|
1026 |
#custom-menu.show-folder-checkbox h3.title > .ui-icon > i, #custom-menu.show-folder-checkbox h3.title > .ui-icon > img {
|
1027 |
display: none !important
|
1028 |
}
|
1029 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1030 |
.plugin-button {
|
1031 |
float: right;
|
1032 |
}
|
@@ -1076,27 +1165,101 @@ body *.media-frame.hide-menu .media-frame-menu {
|
|
1076 |
}
|
1077 |
|
1078 |
html[dir=rtl] .folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-content, html[dir=rtl] .folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-router, html[dir=rtl] .folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-title, html[dir=rtl] .folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-toolbar {
|
1079 |
-
left: 0;
|
1080 |
-
right: 275px;
|
1081 |
}
|
1082 |
html[dir=rtl] .media-frame.mode-select.hide-router .media-frame-title, html[dir=rtl] .media-frame.mode-select.hide-router .media-frame-router, html[dir=rtl] .media-frame.mode-select.hide-router .media-frame-content, html[dir=rtl] .media-frame.mode-select.hide-router .media-frame-toolbar {
|
1083 |
-
left: 0;
|
1084 |
-
right: 275px;
|
1085 |
}
|
1086 |
html[dir=rtl] .media-frame.hide-menu .media-frame-content, html[dir=rtl] .media-frame.hide-menu .media-frame-router, html[dir=rtl] .media-frame.hide-menu .media-frame-title, html[dir=rtl] .media-frame.hide-menu .media-frame-toolbar {
|
1087 |
-
left: 0;
|
1088 |
-
right: 275px;
|
1089 |
}
|
1090 |
html[dir=rtl] .media-frame .folder-modal .media-frame-content, html[dir=rtl] .folder-modal .media-frame .media-frame-router, html[dir=rtl] .folder-modal .media-frame .media-frame-title, html[dir=rtl] .folder-modal .media-frame .media-frame-toolbar {
|
1091 |
-
left: 0;
|
1092 |
-
right: 275px;
|
1093 |
}
|
1094 |
.sticky-folders > ul > li {
|
1095 |
-
position: relative;
|
1096 |
}
|
1097 |
#vakata-dnd {
|
1098 |
z-index: 10000000 !important;
|
1099 |
}
|
1100 |
.add-folder-note {
|
1101 |
font-size: 13px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1102 |
}
|
6 |
border-right: solid 1px #ddd;
|
7 |
background: #f1f1f1;
|
8 |
direction: ltr;
|
9 |
+
top: 0;
|
10 |
}
|
11 |
.folder-modal .media-frame .media-frame-content, .folder-modal .media-frame .media-frame-router, .folder-modal .media-frame .media-frame-title, .folder-modal .media-frame .media-frame-toolbar {
|
12 |
left: 275px
|
312 |
text-decoration: none;
|
313 |
font-size: 14px
|
314 |
}
|
315 |
+
.folder-sort-menu.is-pro {
|
316 |
+
width: 140px;
|
317 |
+
}
|
318 |
+
.folder-sort-menu a.pro-feature {
|
319 |
+
color: #848484;
|
320 |
+
}
|
321 |
+
.folder-sort-menu a.pro-feature span {
|
322 |
+
display: inline-block;
|
323 |
+
color: #ff5983;
|
324 |
+
font-weight: 500;
|
325 |
+
}
|
326 |
+
.folder-sort-menu li a:hover, .folder-sort-menu li a.active {
|
327 |
+
background: #efefef;
|
328 |
+
color: #000;
|
329 |
+
}
|
330 |
span.upgrade-message {
|
331 |
padding: 0;
|
332 |
background: #fff;
|
648 |
display: block;
|
649 |
padding: 5px 10px;
|
650 |
line-height: 18px;
|
651 |
+
white-space: nowrap;
|
652 |
+
color: #333;
|
653 |
}
|
654 |
|
655 |
.dynamic-menu ul > li > a > span, .dynamic-menu ul > li > a > span span {
|
660 |
top: auto !important;
|
661 |
width: 20px !important;
|
662 |
height: 20px !important;
|
663 |
+
line-height: 14px;
|
664 |
+
text-align: center;
|
665 |
}
|
666 |
|
667 |
#custom-menu .dynamic-menu ul > li > a .sticky-pin {
|
672 |
font-size: 16px !important
|
673 |
}
|
674 |
|
675 |
+
.dynamic-menu ul > li > a > span.dashicons {
|
676 |
+
font-size: 18px;
|
677 |
+
text-align: left;
|
678 |
+
}
|
679 |
+
|
680 |
li.active-menu {
|
681 |
z-index: 2 !important
|
682 |
}
|
723 |
display: block;
|
724 |
position: relative;
|
725 |
max-width: 100%;
|
726 |
+
margin: 0;
|
727 |
+
padding: 0 0 15px 0;
|
728 |
color: #595959;
|
729 |
text-align: center;
|
730 |
text-transform: none;
|
731 |
word-wrap: break-word;
|
732 |
+
font-weight: bold;
|
733 |
font-size: 22px;
|
734 |
+
line-height: 26px;
|
735 |
+
}
|
736 |
+
.add-update-folder-title:after {
|
737 |
+
content: "";
|
738 |
+
position: absolute;
|
739 |
+
top: 100%;
|
740 |
+
width: 70px;
|
741 |
+
height: 2px;
|
742 |
+
background: #3085d6;
|
743 |
+
left: 0;
|
744 |
+
right: 0;
|
745 |
+
margin: 0 auto;
|
746 |
}
|
747 |
|
748 |
.folder-group {
|
799 |
.folder-form-buttons {
|
800 |
display: flex
|
801 |
}
|
802 |
+
.folder-form-buttons.pro-message {
|
803 |
+
padding: 0 0 20px 0;
|
804 |
+
}
|
805 |
|
806 |
+
.folder-form-buttons a:not(.inline-button), .folder-form-buttons button {
|
807 |
display: inline-flex;
|
808 |
padding: 0;
|
809 |
text-decoration: none;
|
819 |
flex: 1;
|
820 |
justify-content: center;
|
821 |
outline: 0;
|
|
|
822 |
}
|
823 |
|
824 |
.folder-form-buttons .form-cancel-btn, .folder-form-buttons a.form-cancel-btn:hover {
|
827 |
outline: 0
|
828 |
}
|
829 |
|
830 |
+
.folder-form-buttons a.inline-button {
|
831 |
+
display: inline-block;
|
832 |
+
color: #f51366;
|
833 |
+
text-decoration: none;
|
834 |
+
font-weight: 500;
|
835 |
+
}
|
836 |
+
.folder-form-buttons a.inline-button:hover, .folder-form-buttons a.inline-button:focus {
|
837 |
+
color: #f51366;
|
838 |
+
}
|
839 |
+
.folder-form-buttons a span, .folder-form-buttons button span {
|
840 |
+
-webkit-animation: fa-spin .75s infinite linear;
|
841 |
+
animation: fa-spin .75s infinite linear;
|
842 |
+
padding: 7px;
|
843 |
+
}
|
844 |
.form-submit-btn, .form-submit-btn:hover {
|
845 |
background-color: #3085d6;
|
846 |
color: #fff !important;
|
863 |
}
|
864 |
|
865 |
.folder-form-message {
|
866 |
+
padding: 25px 70px;
|
867 |
font-size: 15px;
|
868 |
line-height: 18px;
|
869 |
color: #484848;
|
1075 |
#custom-menu.show-folder-checkbox h3.title > .ui-icon > i, #custom-menu.show-folder-checkbox h3.title > .ui-icon > img {
|
1076 |
display: none !important
|
1077 |
}
|
1078 |
+
.mCSB_scrollTools a + .mCSB_draggerContainer {
|
1079 |
+
margin: 10px 0 !important
|
1080 |
+
}
|
1081 |
+
.mCS_no_scrollbar .mCSB_container.mCS_no_scrollbar_y.mCS_y_hidden {
|
1082 |
+
overflow: visible;
|
1083 |
+
}
|
1084 |
+
.mCS-3d-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-3d.mCSB_scrollTools .mCSB_draggerRail {
|
1085 |
+
width: 2px !important;
|
1086 |
+
background-color: transparent !important;
|
1087 |
+
box-shadow: none !important
|
1088 |
+
}
|
1089 |
+
.mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
|
1090 |
+
width: 2px !important;
|
1091 |
+
background-color: #fa166b !important;
|
1092 |
+
margin: 0 0 0 4px !important;
|
1093 |
+
padding: 0 !important;
|
1094 |
+
}
|
1095 |
+
.mCSB_scrollTools {
|
1096 |
+
width: 10px !important;
|
1097 |
+
}
|
1098 |
+
.mCSB_inside>.mCSB_container {
|
1099 |
+
margin-right: 0 !important;
|
1100 |
+
}
|
1101 |
+
#custom-menu .route.has-sub-tree.has-search > .nav-icon > .pfolder-arrow-down {
|
1102 |
+
transform: rotate(0);
|
1103 |
+
}
|
1104 |
+
.dynamic-menu.bottom-fix {
|
1105 |
+
bottom: 0;
|
1106 |
+
}
|
1107 |
+
.sticky-folders {
|
1108 |
+
display: none;
|
1109 |
+
padding: 0;
|
1110 |
+
margin: 10px 0 5px;
|
1111 |
+
border-top: solid 1px #E9E5E5;
|
1112 |
+
}
|
1113 |
+
.sticky-folders.active {
|
1114 |
+
display: block;
|
1115 |
+
}
|
1116 |
+
.plugin-title {
|
1117 |
+
display: inline-block;
|
1118 |
+
}
|
1119 |
.plugin-button {
|
1120 |
float: right;
|
1121 |
}
|
1165 |
}
|
1166 |
|
1167 |
html[dir=rtl] .folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-content, html[dir=rtl] .folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-router, html[dir=rtl] .folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-title, html[dir=rtl] .folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-toolbar {
|
1168 |
+
left: 0 !important;
|
1169 |
+
right: 275px !important;
|
1170 |
}
|
1171 |
html[dir=rtl] .media-frame.mode-select.hide-router .media-frame-title, html[dir=rtl] .media-frame.mode-select.hide-router .media-frame-router, html[dir=rtl] .media-frame.mode-select.hide-router .media-frame-content, html[dir=rtl] .media-frame.mode-select.hide-router .media-frame-toolbar {
|
1172 |
+
left: 0 !important;
|
1173 |
+
right: 275px !important;
|
1174 |
}
|
1175 |
html[dir=rtl] .media-frame.hide-menu .media-frame-content, html[dir=rtl] .media-frame.hide-menu .media-frame-router, html[dir=rtl] .media-frame.hide-menu .media-frame-title, html[dir=rtl] .media-frame.hide-menu .media-frame-toolbar {
|
1176 |
+
left: 0 !important;
|
1177 |
+
right: 275px !important;
|
1178 |
}
|
1179 |
html[dir=rtl] .media-frame .folder-modal .media-frame-content, html[dir=rtl] .folder-modal .media-frame .media-frame-router, html[dir=rtl] .folder-modal .media-frame .media-frame-title, html[dir=rtl] .folder-modal .media-frame .media-frame-toolbar {
|
1180 |
+
left: 0 !important;
|
1181 |
+
right: 275px !important;
|
1182 |
}
|
1183 |
.sticky-folders > ul > li {
|
1184 |
+
position: relative !important;
|
1185 |
}
|
1186 |
#vakata-dnd {
|
1187 |
z-index: 10000000 !important;
|
1188 |
}
|
1189 |
.add-folder-note {
|
1190 |
font-size: 13px;
|
1191 |
+
padding: 20px 0 0;
|
1192 |
+
}
|
1193 |
+
|
1194 |
+
.close-popup-button {
|
1195 |
+
position: absolute;
|
1196 |
+
right: -10px;
|
1197 |
+
top: -10px;
|
1198 |
+
width: 20px;
|
1199 |
+
height: 20px;
|
1200 |
+
}
|
1201 |
+
.close-popup-button a {
|
1202 |
+
display: block;
|
1203 |
+
position: relative;
|
1204 |
+
width: 20px;
|
1205 |
+
height: 20px;
|
1206 |
+
color: #333;
|
1207 |
+
padding: 2px;
|
1208 |
+
box-sizing: border-box;
|
1209 |
+
}
|
1210 |
+
.close-popup-button a span {
|
1211 |
+
display: block;
|
1212 |
+
position: relative;
|
1213 |
+
width: 16px;
|
1214 |
+
height: 16px;
|
1215 |
+
transition: all .2s linear;
|
1216 |
+
}
|
1217 |
+
.close-popup-button a span:after, .close-popup-button a span:before {
|
1218 |
+
content: "";
|
1219 |
+
position: absolute;
|
1220 |
+
width: 12px;
|
1221 |
+
height: 2px;
|
1222 |
+
background-color: #333;
|
1223 |
+
display: block;
|
1224 |
+
border-radius: 2px;
|
1225 |
+
transform: rotate(
|
1226 |
+
45deg
|
1227 |
+
);
|
1228 |
+
top: 7px;
|
1229 |
+
left: 2px;
|
1230 |
+
}
|
1231 |
+
.close-popup-button a span:after {
|
1232 |
+
transform: rotate(
|
1233 |
+
-45deg
|
1234 |
+
);
|
1235 |
+
}
|
1236 |
+
.close-popup-button a:hover span {
|
1237 |
+
transform: rotate(
|
1238 |
+
180deg
|
1239 |
+
);
|
1240 |
+
}
|
1241 |
+
.popup-form-data {
|
1242 |
+
position: relative;
|
1243 |
+
}
|
1244 |
+
a#remove-folder-item {
|
1245 |
+
border: solid 1px #860000;
|
1246 |
+
background-color: #d40000;
|
1247 |
+
outline: none;
|
1248 |
+
box-shadow: none;
|
1249 |
+
}
|
1250 |
+
.pro-notice {
|
1251 |
+
text-align: center;
|
1252 |
+
padding: 0 0 0 5px;
|
1253 |
+
}
|
1254 |
+
.folder-form-buttons a.inline-button {
|
1255 |
+
display: inline-block;
|
1256 |
+
}
|
1257 |
+
span.pro-tip {
|
1258 |
+
display: block;
|
1259 |
+
width: 80px;
|
1260 |
+
background: #7e3af2;
|
1261 |
+
padding: 7px;
|
1262 |
+
height: 20px;
|
1263 |
+
color: #fff;
|
1264 |
+
border-radius: 4px;
|
1265 |
}
|
assets/css/page-post-media.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.folder-custom-menu{width:275px;z-index:10001;position:absolute;height:100%;border-right:solid 1px #ddd;background:#f1f1f1;direction:ltr}.folder-modal .media-frame .media-frame-content,.folder-modal .media-frame .media-frame-router,.folder-modal .media-frame .media-frame-title,.folder-modal .media-frame .media-frame-toolbar{left:275px}.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}.media-frame a.add-new-folder{text-decoration:none;display:block;float:right;font-size:14px;padding:4px 10px 4px 4px;background:#f51366;color:#fff;border:solid 1px #f51366;border-radius:4px;line-height:24px;position:relative}.add-new-folder span{display:block;float:left;line-height:24px;font-size:14px;margin-right:5px}span.create_new_folder{width:26px;height:26px;line-height:26px;font-size:14px;background:rgba(255,255,255,.4);backdrop-filter:blur(16px);border-radius:4px;text-align:center;margin:0 15px 0 0}span.folder-loader-ajax{float:right;margin: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:30px;height:34px;padding:0;display:none;float:left}#successAnimation.active{display:inline-block}.folder-loader-ajax img{display:none}#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}.form-options{background:#fff;padding:5px;margin:0 0;border-radius:4px;box-shadow:0 4px 21px rgba(7,16,28,.1)}.wcp-container ul{list-style:none}.form-options ul{margin:0;padding:0}.form-options>ul>li{display:inline-block;margin:0 2px 0 0;vertical-align:top}.form-options>ul>li.last{margin:0}.form-options>ul>li.last.folder-checkbox{padding:5px 0 0}.form-options>ul>li>a{display:inline-block;text-decoration:none;padding:5px 5px;color:#000;vertical-align:middle;margin:0 0 5px 0;background:#f1f1f1;border-radius:4px}.form-options span.icon{font-size:12px;display:inline-block;vertical-align:baseline;color:#a4c0d2}.media-frame .wcp-hide-show-buttons{display:none}.folder-order{position:relative}.form-options>ul>li.last>a.sort-folder-order{width:28px;padding:5px;text-align:center;display:inline-block;box-sizing:border-box}.folder-sort-menu{position:absolute;right:0;width:120px;z-index:101;background:#fff;-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);display:none}.folder-sort-menu li{display:block;margin:0;padding:0;background:0 0}.folder-sort-menu li a{display:block;margin:0;padding:3px 5px;background:0 0;color:#848484;text-decoration:none;font-size:14px}span.upgrade-message{padding:0;background:#fff;display:inline-block;font-size:12px;color:#000}span.upgrade-message a.pink,span.upgrade-message span.pink{color:#ff5983;text-decoration:none;font-weight:700}.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}.top-settings{background:#fff;padding:10px 10px 5px;-webkit-border-top-left-radius:4px;-webkit-border-top-right-radius:4px;-moz-border-radius-topleft:4px;-moz-border-radius-topright:4px;border-top-left-radius:4px;border-top-right-radius:4px;box-shadow:0 4px 21px rgba(7,16,28,.1)}.header-posts a,.un-categorised-items a{color:#444;padding:7px;display:block;text-decoration:none;font-size:14px;border-radius:4px;line-height:18px}.header-posts a.active-item,.orange-bg>span,.un-categorised-items.active-item,.wcp-container .route.active-item>h3.title{background-color:#fa166b!important;color:#fff}.header-posts a.active-item span.total-count,.un-categorised-items.active-item span.total-count,.wcp-container .route.active-item>h3.title span.total-count{color:#fff!important}.wcp-icon{display:inline-block;font-size:16px;vertical-align:top;margin-right:3px}span.total-count{float:right;font-size:12px;line-height:16px}.header-posts a.active-item span.total-count,.un-categorised-items.active-item a span{color:#fff!important}.header-posts a:hover,.un-categorised-items.active-item,.un-categorised-items:hover{background:rgba(250,22,107,.08);border-radius:4px;color:#444}.un-categorised-items.active-item a,.un-categorised-items.active-item a:hover{color:#fff}.un-categorised-items a:hover,.un-categorised-items:hover a{color:#444}.media-frame .folder-custom-menu a:focus{outline:0;box-shadow:none}.sticky-title{font-size:16px;font-weight:700;padding:7px}div#custom-menu{padding:10px;background:#fff;box-shadow:0 4px 21px rgba(7,16,28,.1)}.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:0;top:0;padding:0}.wcp-container .route{position:relative;list-style-type:none;border:0;margin:0;padding:0;top:0;max-height:100%!important;width:100%;border-radius:2px;z-index:-1;background:0 0}.wcp-container .route .title{position:absolute;border:0;margin:0;padding:0;height:30px;width:200px;text-indent:28px;background:0 0;box-shadow:none;font-size:13px;line-height:26px;border-radius:4px;-webkit-border-radius:4px;-moz-border-radius:4px;overflow:hidden;font-weight:400}.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;text-align:center}.wcp-container .route span.ui-icon{line-height:24px;font-size:18px;cursor:move;left:5px;top:2px;height:26px}#custom-menu .wcp-icon{font-size:16px!important;line-height:24px}#custom-menu input.checkbox{display:none}.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% - 100px);overflow:hidden;white-space:nowrap;text-align:left}#custom-menu [class*=" pfolder-"],#custom-menu [class^=pfolder-]{font-size:12px}.wcp-container .route .title .folder-sticky-icon,.wcp-container .route .title .move-folder-icon{float:right;position:relative;top:0;left:auto;width:20px;height:30px;line-height:26px;display:none}.wcp-container .route.is-sticky>h3.title .folder-sticky-icon,.wcp-container .route.is-sticky>h3.title .move-folder-icon{display:block}.nav-icon{display:none;left:-10px!important;cursor:pointer}#custom-menu .route .nav-icon .wcp-icon{font-size:9px!important;color:#fa166b;font-weight:700;transform:rotate(-90deg);transition:all .25s linear}.header-posts a,.un-categorised-items a,.wcp-container .route span.title-text{font-size:12px}.wcp-container .route span.total-count{position:relative;font-size:10px;float:right;text-align:center;width:auto;display:block;margin:4px 8px 3px 3px;color:#23282d!important;line-height:16px;height:16px}.has-sub-tree>.nav-icon{display:block}.has-sub-tree>ul.ui-sortable li{display:none}.has-sub-tree.active>ul.ui-sortable>li{display:block}body:not(.no-hover-css) .wcp-container .route .title:hover{background:rgba(250,22,107,.08);cursor:pointer}body:not(.no-hover-css) .wcp-container .route .title.wcp-drop-hover .move-folder-icon,body:not(.no-hover-css) .wcp-container .route .title:hover .move-folder-icon{display:block}body:not(.no-hover-css) .wcp-container .route .title:hover>.folder-sticky-icon,body:not(.no-hover-css) .wcp-container .route .title:hover>.star-icon{display:none!important}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}body:not(.no-hover-css) .wcp-container .route .title.wcp-drop-hover .ui-icon .pfolder-folder-close:before,body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon .pfolder-folder-close:before{content:"\e901"!important}.sticky-folders li.is-high a span.star-icon,.wcp-container .route.is-high>h3>span.star-icon{display:block}.dynamic-menu{position:fixed;left:50px;background:#fff;width:170px;padding:0;z-index:1000001;-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 ul{margin:0;padding:0}.dynamic-menu li{position:relative;width:100%;display:block!important;padding:2px 0;margin:0}.dynamic-menu li.new-folder{border-bottom:solid 1px #d8d8d8}.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:middle;margin-right:5px;top:auto!important;width:20px!important;height:20px!important;line-height:14px}#custom-menu .dynamic-menu ul>li>a .sticky-pin{line-height:20px}#custom-menu .dynamic-menu ul>li>a .sticky-pin i{font-size:16px!important}li.active-menu{z-index:2!important}.dynamic-menu a.active,.dynamic-menu a:hover{background:#efefef;color:#000}.folder-popup-form{position:fixed;width:100%;height:100%;background:rgba(0,0,0,.5);top:0;left:0;z-index:10001;display: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:4px;-moz-border-radius:4px;border-radius:4px;color:#484848}.add-update-folder-title{display:block;position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;text-align:center;text-transform:none;word-wrap:break-word;font-weight:700;font-size:22px;line-height:26px}.folder-group{position:relative;margin:45px auto 15px;padding:0 2px}.folder-group input,.folder-group textarea{background:0 0;font-size:14px;padding:0 0 0 15px;display:block;width:100%;border-radius:4px;border:1px solid #484848;height:34px;line-height:34px;color:#484848;outline:0}.highlight{background-color:#e4f2fd;color:#000}.folder-group .folder-bar{position:relative;display:block;width:320px}.folder-group label{font-size:14px;font-weight:500;position:absolute;pointer-events:none;left:20px;top:10px;-webkit-transition:.3s ease all;transition:.3s ease all;color:#484848}.folder-form-errors{margin:0 0 10px 0;padding:8px 0;background:#ffe4e4;color:#a20000;display:none}.folder-form-buttons{display:flex}.folder-form-buttons a,.folder-form-buttons button{display:inline-flex;padding:0;text-decoration:none;margin:10px 3px;border-radius:4px;border:solid 1px #1da1f4;line-height:34px;font-weight:700;font-size:14px;box-sizing:border-box;height:36px;cursor:pointer;flex:1;justify-content:center;outline:0;color:#fff}.folder-form-buttons .form-cancel-btn,.folder-form-buttons a.form-cancel-btn:hover{background-color:#fff;color:#3085d6;outline:0}.form-submit-btn,.form-submit-btn:hover{background-color:#3085d6;color:#fff!important;outline:0}.folder-group input:focus~label,.folder-group input:valid~label,.folder-group textarea:focus~label,.folder-group textarea:valid~label{top:-9px;background:#fff;padding:0 5px;font-weight:400;font-size:12px;line-height:14px;color:#aeaeae}#no-more-folder-credit .folder-form-message{margin:20px 80px;font-size:14px}.folder-form-message{margin:25px auto;font-size:15px;line-height:18px;color:#484848;width:310px}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.folder-form-buttons a span,.folder-form-buttons button span{-webkit-animation:fa-spin .75s infinite linear;animation:fa-spin .75s infinite linear;padding:7px}.wcp-container .folder-tooltip{position:relative}.wcp-container .folder-tooltip::after,.wcp-container .folder-tooltip::before{text-transform:none;font-size:.9em;line-height:1;user-select:none;pointer-events:none;position:absolute;display:none;opacity:0}.wcp-container .folder-tooltip::before{content:'';border:5px solid transparent;z-index:1001}.wcp-container .folder-tooltip::after{content:attr(data-folder-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}.wcp-container .folder-tooltip:hover::after,.wcp-container .folder-tooltip:hover::before{display:block;opacity:1}.wcp-container .folder-tooltip:not([flow])::before,.wcp-container .folder-tooltip[flow^=up]::before{bottom:100%;border-bottom-width:0;border-top-color:#333}.wcp-container .folder-tooltip:not([flow])::after,.wcp-container .folder-tooltip[flow^=up]::after{bottom:calc(100% + 5px)}.wcp-container .folder-tooltip:not([flow])::after,.wcp-container .folder-tooltip:not([flow])::before,.wcp-container .folder-tooltip[flow^=up]::after,.wcp-container .folder-tooltip[flow^=up]::before{left:50%;transform:translate(-50%,-.5em)}.folder-order.active .folder-sort-menu{display:block}.folder-sort-menu li a.active,.folder-sort-menu li a:hover{background:#efefef;color:#000}.media-toolbar-secondary select{width:30%!important;width:calc(30% - 10px)!important;margin:32px 10px 0 0!important}.media-frame .uploader-inline{z-index:1}.wcp-drop-hover{background:#fa166b!important;z-index:2!important;color:#fff!important}.wcp-drop-hover i{color:#fff!important}.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;z-index:10001!important}.media-frame,.media-frame .attachments-browser,.media-frame-content{overflow:inherit}#custom-menu .route.active .nav-icon .wcp-icon{transform:rotate(0);-webkit-transform:rotate(0)}.expand-collapse.all-open span.icon{transform:rotate(180deg);-webkit-transform:rotate(180deg)}.folder-search-form{padding:0 0 10px 0;position:relative}.folder-search-form input{background:#fff;border:1px solid #dbdbdb!important;box-sizing:border-box;border-radius:4px;height:32px;line-height:32px;box-sizing:border-box;padding:0 5px!important;width:100%!important;box-shadow:none!important;outline:0}.folder-search-form span{position:absolute;color:#aeaeae;right:0;top:0;height:32px;line-height:32px;width:32px;text-align:center}.folder-separator{padding:0 10px;height:1px;background:#e9e5e5;margin:0 0 10px 0}.wcp-drop-hover i{color:#fff!important}.ui-draggable-dragging{z-index:10051!important}.attachments.ui-sortable.ui-draggable-dragging{z-index:10001!important}#custom-menu.has-filter li.route{display:none!important}#custom-menu.has-filter li.route.has-search{display:block!important}#custom-menu.has-filter h3 span.title-text.has-search-text{font-weight:700}.form-options>ul>li>a:hover{background:#404040;color:#fff}#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}.plugin-button{float:right}.plugin-button.d-block{float:none}.plugin-title{display:inline-block}.form-options .form-options{background:0 0;padding:0;box-shadow:none}.attachments-browser .media-toolbar-secondary{width:78%;max-width:inherit}.media-toolbar-primary.search-form{width:20%;max-width:inherit}body .media-frame.hide-menu .media-frame-menu{display:block}.folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-content,.folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-router,.folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-title,.folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-toolbar{left:275px}.media-frame-menu.has-folder-menu{width:275px}.media-frame-menu.has-folder-menu .folder-custom-menu{position:relative;border:none;width:100%}.media-frame.mode-select.hide-router .media-frame-content,.media-frame.mode-select.hide-router .media-frame-router,.media-frame.mode-select.hide-router .media-frame-title,.media-frame.mode-select.hide-router .media-frame-toolbar{left:275px}.media-frame.mode-select.hide-router select#media-attachment-taxonomy-filter{display:none}.media-frame.mode-select.hide-router .folder-custom-menu{display:none}html[dir=rtl] .folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-content,html[dir=rtl] .folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-router,html[dir=rtl] .folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-title,html[dir=rtl] .folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-toolbar{left:0;right:275px}html[dir=rtl] .media-frame.mode-select.hide-router .media-frame-content,html[dir=rtl] .media-frame.mode-select.hide-router .media-frame-router,html[dir=rtl] .media-frame.mode-select.hide-router .media-frame-title,html[dir=rtl] .media-frame.mode-select.hide-router .media-frame-toolbar{left:0;right:275px}html[dir=rtl] .media-frame.hide-menu .media-frame-content,html[dir=rtl] .media-frame.hide-menu .media-frame-router,html[dir=rtl] .media-frame.hide-menu .media-frame-title,html[dir=rtl] .media-frame.hide-menu .media-frame-toolbar{left:0;right:275px}html[dir=rtl] .folder-modal .media-frame .media-frame-router,html[dir=rtl] .folder-modal .media-frame .media-frame-title,html[dir=rtl] .folder-modal .media-frame .media-frame-toolbar,html[dir=rtl] .media-frame .folder-modal .media-frame-content{left:0;right:275px}.sticky-folders>ul>li{position:relative}#vakata-dnd{z-index:10000000!important}.add-folder-note{font-size:13px}
|
1 |
+
.folder-custom-menu{width:275px;z-index:10001;position:absolute;height:100%;border-right:solid 1px #ddd;background:#f1f1f1;direction:ltr;top:0}.folder-modal .media-frame .media-frame-content,.folder-modal .media-frame .media-frame-router,.folder-modal .media-frame .media-frame-title,.folder-modal .media-frame .media-frame-toolbar{left:275px}.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}.media-frame a.add-new-folder{text-decoration:none;display:block;float:right;font-size:14px;padding:4px 10px 4px 4px;background:#f51366;color:#fff;border:solid 1px #f51366;border-radius:4px;line-height:24px;position:relative}.add-new-folder span{display:block;float:left;line-height:24px;font-size:14px;margin-right:5px}span.create_new_folder{width:26px;height:26px;line-height:26px;font-size:14px;background:rgba(255,255,255,.4);backdrop-filter:blur(16px);border-radius:4px;text-align:center;margin:0 15px 0 0}span.folder-loader-ajax{float:right;margin: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:30px;height:34px;padding:0;display:none;float:left}#successAnimation.active{display:inline-block}.folder-loader-ajax img{display:none}#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}.form-options{background:#fff;padding:5px;margin:0 0;border-radius:4px;box-shadow:0 4px 21px rgba(7,16,28,.1)}.wcp-container ul{list-style:none}.form-options ul{margin:0;padding:0}.form-options>ul>li{display:inline-block;margin:0 2px 0 0;vertical-align:top}.form-options>ul>li.last{margin:0}.form-options>ul>li.last.folder-checkbox{padding:5px 0 0}.form-options>ul>li>a{display:inline-block;text-decoration:none;padding:5px 5px;color:#000;vertical-align:middle;margin:0 0 5px 0;background:#f1f1f1;border-radius:4px}.form-options span.icon{font-size:12px;display:inline-block;vertical-align:baseline;color:#a4c0d2}.media-frame .wcp-hide-show-buttons{display:none}.folder-order{position:relative}.form-options>ul>li.last>a.sort-folder-order{width:28px;padding:5px;text-align:center;display:inline-block;box-sizing:border-box}.folder-sort-menu{position:absolute;right:0;width:120px;z-index:101;background:#fff;-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);display:none}.folder-sort-menu li{display:block;margin:0;padding:0;background:0 0}.folder-sort-menu li a{display:block;margin:0;padding:3px 5px;background:0 0;color:#848484;text-decoration:none;font-size:14px}.folder-sort-menu.is-pro{width:140px}.folder-sort-menu a.pro-feature{color:#848484}.folder-sort-menu a.pro-feature span{display:inline-block;color:#ff5983;font-weight:500}.folder-sort-menu li a.active,.folder-sort-menu li a:hover{background:#efefef;color:#000}span.upgrade-message{padding:0;background:#fff;display:inline-block;font-size:12px;color:#000}span.upgrade-message a.pink,span.upgrade-message span.pink{color:#ff5983;text-decoration:none;font-weight:700}.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}.top-settings{background:#fff;padding:10px 10px 5px;-webkit-border-top-left-radius:4px;-webkit-border-top-right-radius:4px;-moz-border-radius-topleft:4px;-moz-border-radius-topright:4px;border-top-left-radius:4px;border-top-right-radius:4px;box-shadow:0 4px 21px rgba(7,16,28,.1)}.header-posts a,.un-categorised-items a{color:#444;padding:7px;display:block;text-decoration:none;font-size:14px;border-radius:4px;line-height:18px}.header-posts a.active-item,.orange-bg>span,.un-categorised-items.active-item,.wcp-container .route.active-item>h3.title{background-color:#fa166b!important;color:#fff}.header-posts a.active-item span.total-count,.un-categorised-items.active-item span.total-count,.wcp-container .route.active-item>h3.title span.total-count{color:#fff!important}.wcp-icon{display:inline-block;font-size:16px;vertical-align:top;margin-right:3px}span.total-count{float:right;font-size:12px;line-height:16px}.header-posts a.active-item span.total-count,.un-categorised-items.active-item a span{color:#fff!important}.header-posts a:hover,.un-categorised-items.active-item,.un-categorised-items:hover{background:rgba(250,22,107,.08);border-radius:4px;color:#444}.un-categorised-items.active-item a,.un-categorised-items.active-item a:hover{color:#fff}.un-categorised-items a:hover,.un-categorised-items:hover a{color:#444}.media-frame .folder-custom-menu a:focus{outline:0;box-shadow:none}.sticky-title{font-size:16px;font-weight:700;padding:7px}div#custom-menu{padding:10px;background:#fff;box-shadow:0 4px 21px rgba(7,16,28,.1)}.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:0;top:0;padding:0}.wcp-container .route{position:relative;list-style-type:none;border:0;margin:0;padding:0;top:0;max-height:100%!important;width:100%;border-radius:2px;z-index:-1;background:0 0}.wcp-container .route .title{position:absolute;border:0;margin:0;padding:0;height:30px;width:200px;text-indent:28px;background:0 0;box-shadow:none;font-size:13px;line-height:26px;border-radius:4px;-webkit-border-radius:4px;-moz-border-radius:4px;overflow:hidden;font-weight:400}.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;text-align:center}.wcp-container .route span.ui-icon{line-height:24px;font-size:18px;cursor:move;left:5px;top:2px;height:26px}#custom-menu .wcp-icon{font-size:16px!important;line-height:24px}#custom-menu input.checkbox{display:none}.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% - 100px);overflow:hidden;white-space:nowrap;text-align:left}#custom-menu [class*=" pfolder-"],#custom-menu [class^=pfolder-]{font-size:12px}.wcp-container .route .title .folder-sticky-icon,.wcp-container .route .title .move-folder-icon{float:right;position:relative;top:0;left:auto;width:20px;height:30px;line-height:26px;display:none}.wcp-container .route.is-sticky>h3.title .folder-sticky-icon,.wcp-container .route.is-sticky>h3.title .move-folder-icon{display:block}.nav-icon{display:none;left:-10px!important;cursor:pointer}#custom-menu .route .nav-icon .wcp-icon{font-size:9px!important;color:#fa166b;font-weight:700;transform:rotate(-90deg);transition:all .25s linear}.header-posts a,.un-categorised-items a,.wcp-container .route span.title-text{font-size:12px}.wcp-container .route span.total-count{position:relative;font-size:10px;float:right;text-align:center;width:auto;display:block;margin:4px 8px 3px 3px;color:#23282d!important;line-height:16px;height:16px}.has-sub-tree>.nav-icon{display:block}.has-sub-tree>ul.ui-sortable li{display:none}.has-sub-tree.active>ul.ui-sortable>li{display:block}body:not(.no-hover-css) .wcp-container .route .title:hover{background:rgba(250,22,107,.08);cursor:pointer}body:not(.no-hover-css) .wcp-container .route .title.wcp-drop-hover .move-folder-icon,body:not(.no-hover-css) .wcp-container .route .title:hover .move-folder-icon{display:block}body:not(.no-hover-css) .wcp-container .route .title:hover>.folder-sticky-icon,body:not(.no-hover-css) .wcp-container .route .title:hover>.star-icon{display:none!important}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}body:not(.no-hover-css) .wcp-container .route .title.wcp-drop-hover .ui-icon .pfolder-folder-close:before,body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon .pfolder-folder-close:before{content:"\e901"!important}.sticky-folders li.is-high a span.star-icon,.wcp-container .route.is-high>h3>span.star-icon{display:block}.dynamic-menu{position:fixed;left:50px;background:#fff;width:170px;padding:0;z-index:1000001;-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 ul{margin:0;padding:0}.dynamic-menu li{position:relative;width:100%;display:block!important;padding:2px 0;margin:0}.dynamic-menu li.new-folder{border-bottom:solid 1px #d8d8d8}.dynamic-menu a{text-decoration:none;color:#848484;position:relative;display:block;padding:5px 10px;line-height:18px;white-space:nowrap;color:#333}.dynamic-menu ul>li>a>span,.dynamic-menu ul>li>a>span span{position:relative!important;display:inline-block;vertical-align:middle;margin-right:5px;top:auto!important;width:20px!important;height:20px!important;line-height:14px;text-align:center}#custom-menu .dynamic-menu ul>li>a .sticky-pin{line-height:20px}#custom-menu .dynamic-menu ul>li>a .sticky-pin i{font-size:16px!important}.dynamic-menu ul>li>a>span.dashicons{font-size:18px;text-align:left}li.active-menu{z-index:2!important}.dynamic-menu a.active,.dynamic-menu a:hover{background:#efefef;color:#000}.folder-popup-form{position:fixed;width:100%;height:100%;background:rgba(0,0,0,.5);top:0;left:0;z-index:10001;display: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:4px;-moz-border-radius:4px;border-radius:4px;color:#484848}.add-update-folder-title{display:block;position:relative;max-width:100%;margin:0;padding:0 0 15px 0;color:#595959;text-align:center;text-transform:none;word-wrap:break-word;font-weight:700;font-size:22px;line-height:26px}.add-update-folder-title:after{content:"";position:absolute;top:100%;width:70px;height:2px;background:#3085d6;left:0;right:0;margin:0 auto}.folder-group{position:relative;margin:45px auto 15px;padding:0 2px}.folder-group input,.folder-group textarea{background:0 0;font-size:14px;padding:0 0 0 15px;display:block;width:100%;border-radius:4px;border:1px solid #484848;height:34px;line-height:34px;color:#484848;outline:0}.highlight{background-color:#e4f2fd;color:#000}.folder-group .folder-bar{position:relative;display:block;width:320px}.folder-group label{font-size:14px;font-weight:500;position:absolute;pointer-events:none;left:20px;top:10px;-webkit-transition:.3s ease all;transition:.3s ease all;color:#484848}.folder-form-errors{margin:0 0 10px 0;padding:8px 0;background:#ffe4e4;color:#a20000;display:none}.folder-form-buttons{display:flex}.folder-form-buttons.pro-message{padding:0 0 20px 0}.folder-form-buttons a:not(.inline-button),.folder-form-buttons button{display:inline-flex;padding:0;text-decoration:none;margin:10px 3px;border-radius:4px;border:solid 1px #1da1f4;line-height:34px;font-weight:700;font-size:14px;box-sizing:border-box;height:36px;cursor:pointer;flex:1;justify-content:center;outline:0}.folder-form-buttons .form-cancel-btn,.folder-form-buttons a.form-cancel-btn:hover{background-color:#fff;color:#3085d6;outline:0}.folder-form-buttons a.inline-button{display:inline-block;color:#f51366;text-decoration:none;font-weight:500}.folder-form-buttons a.inline-button:focus,.folder-form-buttons a.inline-button:hover{color:#f51366}.folder-form-buttons a span,.folder-form-buttons button span{-webkit-animation:fa-spin .75s infinite linear;animation:fa-spin .75s infinite linear;padding:7px}.form-submit-btn,.form-submit-btn:hover{background-color:#3085d6;color:#fff!important;outline:0}.folder-group input:focus~label,.folder-group input:valid~label,.folder-group textarea:focus~label,.folder-group textarea:valid~label{top:-9px;background:#fff;padding:0 5px;font-weight:400;font-size:12px;line-height:14px;color:#aeaeae}#no-more-folder-credit .folder-form-message{margin:20px 80px;font-size:14px}.folder-form-message{padding:25px 70px;font-size:15px;line-height:18px;color:#484848;width:310px}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.folder-form-buttons a span,.folder-form-buttons button span{-webkit-animation:fa-spin .75s infinite linear;animation:fa-spin .75s infinite linear;padding:7px}.wcp-container .folder-tooltip{position:relative}.wcp-container .folder-tooltip::after,.wcp-container .folder-tooltip::before{text-transform:none;font-size:.9em;line-height:1;user-select:none;pointer-events:none;position:absolute;display:none;opacity:0}.wcp-container .folder-tooltip::before{content:'';border:5px solid transparent;z-index:1001}.wcp-container .folder-tooltip::after{content:attr(data-folder-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}.wcp-container .folder-tooltip:hover::after,.wcp-container .folder-tooltip:hover::before{display:block;opacity:1}.wcp-container .folder-tooltip:not([flow])::before,.wcp-container .folder-tooltip[flow^=up]::before{bottom:100%;border-bottom-width:0;border-top-color:#333}.wcp-container .folder-tooltip:not([flow])::after,.wcp-container .folder-tooltip[flow^=up]::after{bottom:calc(100% + 5px)}.wcp-container .folder-tooltip:not([flow])::after,.wcp-container .folder-tooltip:not([flow])::before,.wcp-container .folder-tooltip[flow^=up]::after,.wcp-container .folder-tooltip[flow^=up]::before{left:50%;transform:translate(-50%,-.5em)}.folder-order.active .folder-sort-menu{display:block}.folder-sort-menu li a.active,.folder-sort-menu li a:hover{background:#efefef;color:#000}.media-toolbar-secondary select{width:30%!important;width:calc(30% - 10px)!important;margin:32px 10px 0 0!important}.media-frame .uploader-inline{z-index:1}.wcp-drop-hover{background:#fa166b!important;z-index:2!important;color:#fff!important}.wcp-drop-hover i{color:#fff!important}.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;z-index:10001!important}.media-frame,.media-frame .attachments-browser,.media-frame-content{overflow:inherit}#custom-menu .route.active .nav-icon .wcp-icon{transform:rotate(0);-webkit-transform:rotate(0)}.expand-collapse.all-open span.icon{transform:rotate(180deg);-webkit-transform:rotate(180deg)}.folder-search-form{padding:0 0 10px 0;position:relative}.folder-search-form input{background:#fff;border:1px solid #dbdbdb!important;box-sizing:border-box;border-radius:4px;height:32px;line-height:32px;box-sizing:border-box;padding:0 5px!important;width:100%!important;box-shadow:none!important;outline:0}.folder-search-form span{position:absolute;color:#aeaeae;right:0;top:0;height:32px;line-height:32px;width:32px;text-align:center}.folder-separator{padding:0 10px;height:1px;background:#e9e5e5;margin:0 0 10px 0}.wcp-drop-hover i{color:#fff!important}.ui-draggable-dragging{z-index:10051!important}.attachments.ui-sortable.ui-draggable-dragging{z-index:10001!important}#custom-menu.has-filter li.route{display:none!important}#custom-menu.has-filter li.route.has-search{display:block!important}#custom-menu.has-filter h3 span.title-text.has-search-text{font-weight:700}.form-options>ul>li>a:hover{background:#404040;color:#fff}#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}.mCSB_scrollTools a+.mCSB_draggerContainer{margin:10px 0!important}.mCS_no_scrollbar .mCSB_container.mCS_no_scrollbar_y.mCS_y_hidden{overflow:visible}.mCS-3d-dark.mCSB_scrollTools .mCSB_draggerRail,.mCS-3d.mCSB_scrollTools .mCSB_draggerRail{width:2px!important;background-color:transparent!important;box-shadow:none!important}.mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:2px!important;background-color:#fa166b!important;margin:0 0 0 4px!important;padding:0!important}.mCSB_scrollTools{width:10px!important}.mCSB_inside>.mCSB_container{margin-right:0!important}#custom-menu .route.has-sub-tree.has-search>.nav-icon>.pfolder-arrow-down{transform:rotate(0)}.dynamic-menu.bottom-fix{bottom:0}.sticky-folders{display:none;padding:0;margin:10px 0 5px;border-top:solid 1px #e9e5e5}.sticky-folders.active{display:block}.plugin-title{display:inline-block}.plugin-button{float:right}.plugin-button.d-block{float:none}.plugin-title{display:inline-block}.form-options .form-options{background:0 0;padding:0;box-shadow:none}.attachments-browser .media-toolbar-secondary{width:78%;max-width:inherit}.media-toolbar-primary.search-form{width:20%;max-width:inherit}body .media-frame.hide-menu .media-frame-menu{display:block}.folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-content,.folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-router,.folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-title,.folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-toolbar{left:275px}.media-frame-menu.has-folder-menu{width:275px}.media-frame-menu.has-folder-menu .folder-custom-menu{position:relative;border:none;width:100%}.media-frame.mode-select.hide-router .media-frame-content,.media-frame.mode-select.hide-router .media-frame-router,.media-frame.mode-select.hide-router .media-frame-title,.media-frame.mode-select.hide-router .media-frame-toolbar{left:275px}.media-frame.mode-select.hide-router select#media-attachment-taxonomy-filter{display:none}.media-frame.mode-select.hide-router .folder-custom-menu{display:none}html[dir=rtl] .folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-content,html[dir=rtl] .folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-router,html[dir=rtl] .folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-title,html[dir=rtl] .folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-toolbar{left:0!important;right:275px!important}html[dir=rtl] .media-frame.mode-select.hide-router .media-frame-content,html[dir=rtl] .media-frame.mode-select.hide-router .media-frame-router,html[dir=rtl] .media-frame.mode-select.hide-router .media-frame-title,html[dir=rtl] .media-frame.mode-select.hide-router .media-frame-toolbar{left:0!important;right:275px!important}html[dir=rtl] .media-frame.hide-menu .media-frame-content,html[dir=rtl] .media-frame.hide-menu .media-frame-router,html[dir=rtl] .media-frame.hide-menu .media-frame-title,html[dir=rtl] .media-frame.hide-menu .media-frame-toolbar{left:0!important;right:275px!important}html[dir=rtl] .folder-modal .media-frame .media-frame-router,html[dir=rtl] .folder-modal .media-frame .media-frame-title,html[dir=rtl] .folder-modal .media-frame .media-frame-toolbar,html[dir=rtl] .media-frame .folder-modal .media-frame-content{left:0!important;right:275px!important}.sticky-folders>ul>li{position:relative!important}#vakata-dnd{z-index:10000000!important}.add-folder-note{font-size:13px;padding:20px 0 0}.close-popup-button{position:absolute;right:-10px;top:-10px;width:20px;height:20px}.close-popup-button a{display:block;position:relative;width:20px;height:20px;color:#333;padding:2px;box-sizing:border-box}.close-popup-button a span{display:block;position:relative;width:16px;height:16px;transition:all .2s linear}.close-popup-button a span:after,.close-popup-button a span:before{content:"";position:absolute;width:12px;height:2px;background-color:#333;display:block;border-radius:2px;transform:rotate(45deg);top:7px;left:2px}.close-popup-button a span:after{transform:rotate(-45deg)}.close-popup-button a:hover span{transform:rotate(180deg)}.popup-form-data{position:relative}a#remove-folder-item{border:solid 1px #860000;background-color:#d40000;outline:0;box-shadow:none}.pro-notice{text-align:center;padding:0 0 0 5px}.folder-form-buttons a.inline-button{display:inline-block}span.pro-tip{display:block;width:80px;background:#7e3af2;padding:7px;height:20px;color:#fff;border-radius:4px}
|
assets/css/replace-media.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.replace-media-page{padding:10px;background:#fff;margin:10px 0 0}.replace-media-page p{padding:0 0 10px 0;margin:0}.preview-box{width:250px;height:250px;background:#f1f1f1;text-align:center;position:relative}.current-image-box,.new-image-box{float:left;margin:0 25px 0 0;border:1px solid #ddd}.preview-box span.dashicons{font-size:80px;width:auto;height:auto;line-height:250px}.preview-box span.image-size{font-size:12px;line-height:25px;opacity:.7;position:absolute;color:#ccc;left:48%;top:50%;transform:translate(-50%,-50%);background-color:#333;padding:5px 10px}.preview-box img{width:100%;height:auto;max-height:250px;object-fit:cover}.clearfix{clear:both}.file-option,.file-size{text-align:center;padding:5px;height:20px;line-height:20px}.replace-message{display:none;background:#fff;padding:8px;margin:10px 0}.replace-message.active{display:block}.replace-message.warning{border-left:4px solid #ffb900}.replace-message.error{border-left:4px solid red}.replace-message.success{border-left:4px solid green}.upload-area .drag-and-drop-title{text-align:center;font-weight:400;width:250px;height:250px;position:relative;cursor:pointer}.upload-area .drag-and-drop-title span{position:absolute;left:48%;top:50%;transform:translate(-50%,-50%);padding:5px 10px;width:140px}#media_file{display:none}.replacement-options{margin:20px 0 0;border-top:solid 1px #ddd}.replace-media-buttons{padding:14px 0 0}.replace-media-buttons button.button{margin:0 5px 0 0}
|
1 |
+
.replace-media-page{padding:10px;background:#fff;margin:10px 0 0}.replace-media-page p{padding:0 0 10px 0;margin:0}.preview-box{width:250px;height:250px;background:#f1f1f1;text-align:center;position:relative}.current-image-box,.new-image-box{float:left;margin:0 25px 0 0;border:1px solid #ddd}.preview-box span.dashicons{font-size:80px;width:auto;height:auto;line-height:250px}.preview-box span.image-size{font-size:12px;line-height:25px;opacity:.7;position:absolute;color:#ccc;left:48%;top:50%;transform:translate(-50%,-50%);background-color:#333;padding:5px 10px}.preview-box img{width:100%;height:auto;max-height:250px;object-fit:cover}.clearfix{clear:both}.file-option,.file-size{text-align:center;padding:5px;height:20px;line-height:20px}.file-size.hide-it{display:none}.replace-message{display:none;background:#fff;padding:8px;margin:10px 0}.replace-message.active{display:block}.replace-message.warning{border-left:4px solid #ffb900}.replace-message.error{border-left:4px solid red}.replace-message.success{border-left:4px solid green}.upload-area .drag-and-drop-title{text-align:center;font-weight:400;width:250px;height:250px;position:relative;cursor:pointer}.upload-area .drag-and-drop-title span:not(.image-size){position:absolute;left:48%;top:50%;transform:translate(-50%,-50%);padding:5px 10px;width:140px}#media_file{display:none}.replacement-options{margin:20px 0 0;border-top:solid 1px #ddd}.replace-media-buttons{padding:14px 0 0}.replace-media-buttons button.button{margin:0 5px 0 0}.file-size a{color:#ff5983;text-decoration:none;font-weight:500}.upgrade-btn-box{display:none;font-size:12px;line-height:25px;position:absolute;color:#ccc;left:48%;top:50%;transform:translate(-50%,-50%)}#upload-file.active:hover .image-size{display:none}#upload-file.active:hover .upgrade-btn-box{display:block}.upgrade-btn-box a{padding:5px 10px;text-decoration:none;background:#ff5983;color:#fff;font-weight:500;border-radius:4px;text-align:center;display:inline-block;line-height:1.5;opacity:.8}.upgrade-btn-box a:hover{opacity:1}
|
assets/css/settings.css
CHANGED
@@ -1,954 +1 @@
|
|
1 |
-
@import url(https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap);
|
2 |
-
|
3 |
-
span.upgrade-message {
|
4 |
-
padding: 5px 10px;
|
5 |
-
background: #fff;
|
6 |
-
display: inline-block;
|
7 |
-
font-size: 14px;
|
8 |
-
color: #000
|
9 |
-
}
|
10 |
-
|
11 |
-
a.pink, span.pink {
|
12 |
-
color: #ff5983;
|
13 |
-
text-decoration: none;
|
14 |
-
font-weight: 700
|
15 |
-
}
|
16 |
-
|
17 |
-
.form-table {
|
18 |
-
margin: 0
|
19 |
-
}
|
20 |
-
|
21 |
-
#setting-form {
|
22 |
-
font-family: Roboto, sans-serif
|
23 |
-
}
|
24 |
-
|
25 |
-
.form-table th {
|
26 |
-
width: 220px;
|
27 |
-
font-weight: 400;
|
28 |
-
vertical-align: middle
|
29 |
-
}
|
30 |
-
|
31 |
-
.form-table th.default-folder {
|
32 |
-
width: 100px
|
33 |
-
}
|
34 |
-
|
35 |
-
.premio-help {
|
36 |
-
text-align: center
|
37 |
-
}
|
38 |
-
|
39 |
-
.premio-help a {
|
40 |
-
display: block;
|
41 |
-
float: right
|
42 |
-
}
|
43 |
-
|
44 |
-
.premio-help a img {
|
45 |
-
width: auto;
|
46 |
-
height: auto
|
47 |
-
}
|
48 |
-
|
49 |
-
.hide-option {
|
50 |
-
display: none
|
51 |
-
}
|
52 |
-
|
53 |
-
.accordion {
|
54 |
-
max-width: 1024px;
|
55 |
-
box-shadow: 0 4px 21px rgba(7, 16, 28, .1);
|
56 |
-
border-radius: 4px;
|
57 |
-
margin: 0 0 20px 0
|
58 |
-
}
|
59 |
-
|
60 |
-
.accordion-header {
|
61 |
-
background: #ebf1f4;
|
62 |
-
padding: 10px 15px;
|
63 |
-
font-size: 16px;
|
64 |
-
cursor: pointer;
|
65 |
-
border-radius: 4px;
|
66 |
-
color: #484848;
|
67 |
-
font-weight: 500
|
68 |
-
}
|
69 |
-
|
70 |
-
.accordion-header.active {
|
71 |
-
border-radius: 0;
|
72 |
-
-webkit-border-top-left-radius: 4px;
|
73 |
-
-webkit-border-top-right-radius: 4px;
|
74 |
-
-moz-border-radius-topleft: 4px;
|
75 |
-
-moz-border-radius-topright: 4px;
|
76 |
-
border-top-left-radius: 4px;
|
77 |
-
border-top-right-radius: 4px
|
78 |
-
}
|
79 |
-
|
80 |
-
.accordion-header.active span {
|
81 |
-
transform: rotate(180deg)
|
82 |
-
}
|
83 |
-
|
84 |
-
select.hide-show-option {
|
85 |
-
width: 170px
|
86 |
-
}
|
87 |
-
|
88 |
-
.sp-replacer.sp-light {
|
89 |
-
padding: 0 !important;
|
90 |
-
margin: 0 !important;
|
91 |
-
border: solid 2px #fff !important;
|
92 |
-
box-shadow: 0 3px 7px rgba(149, 149, 150, .3);
|
93 |
-
border-radius: 4px
|
94 |
-
}
|
95 |
-
|
96 |
-
.sp-dd {
|
97 |
-
display: none !important
|
98 |
-
}
|
99 |
-
|
100 |
-
.sp-preview {
|
101 |
-
width: 18px !important;
|
102 |
-
height: 18px !important;
|
103 |
-
margin: 0 !important;
|
104 |
-
padding: 0 !important;
|
105 |
-
border: none !important
|
106 |
-
}
|
107 |
-
|
108 |
-
.form-table select {
|
109 |
-
width: 180px
|
110 |
-
}
|
111 |
-
|
112 |
-
.accordion-header span {
|
113 |
-
float: right;
|
114 |
-
width: 20px;
|
115 |
-
height: 20px;
|
116 |
-
line-height: 22px;
|
117 |
-
font-size: 14px;
|
118 |
-
background: #fff;
|
119 |
-
border-radius: 10px
|
120 |
-
}
|
121 |
-
|
122 |
-
.accordion-header span:hover {
|
123 |
-
background: #1da1f4;
|
124 |
-
color: #fff
|
125 |
-
}
|
126 |
-
|
127 |
-
.form-title {
|
128 |
-
font-size: 23px;
|
129 |
-
font-weight: 400;
|
130 |
-
margin: 0;
|
131 |
-
padding: 0 0 10px 0;
|
132 |
-
line-height: 29px;
|
133 |
-
min-height: 36px
|
134 |
-
}
|
135 |
-
|
136 |
-
.add-new-folder, button.organize-button {
|
137 |
-
text-decoration: none;
|
138 |
-
display: block;
|
139 |
-
float: right;
|
140 |
-
font-size: 14px;
|
141 |
-
padding: 4px 10px 4px 4px;
|
142 |
-
background: #f51366;
|
143 |
-
color: #fff;
|
144 |
-
border: solid 1px #f51366;
|
145 |
-
border-radius: 4px;
|
146 |
-
line-height: 24px;
|
147 |
-
position: relative
|
148 |
-
}
|
149 |
-
|
150 |
-
.add-new-folder span {
|
151 |
-
display: block;
|
152 |
-
float: left;
|
153 |
-
line-height: 26px;
|
154 |
-
font-size: 14px;
|
155 |
-
margin-right: 5px
|
156 |
-
}
|
157 |
-
|
158 |
-
.add-new-folder span.folder-icon-create_new_folder {
|
159 |
-
font-size: 20px
|
160 |
-
}
|
161 |
-
|
162 |
-
.form-options {
|
163 |
-
background: #fff;
|
164 |
-
padding: 10px 10px 0 10px;
|
165 |
-
margin: 0 0;
|
166 |
-
box-shadow: 0 4px 21px rgba(7, 16, 28, .1);
|
167 |
-
border-radius: 4px
|
168 |
-
}
|
169 |
-
|
170 |
-
.shadow-box {
|
171 |
-
padding: 10px;
|
172 |
-
box-shadow: 0 4px 21px rgba(7, 16, 28, .1);
|
173 |
-
margin: 20px 0 0 0
|
174 |
-
}
|
175 |
-
|
176 |
-
.accordion .separator {
|
177 |
-
border-bottom: solid 1px #e9e5e5
|
178 |
-
}
|
179 |
-
|
180 |
-
.form-options ul {
|
181 |
-
margin: 0;
|
182 |
-
padding: 0
|
183 |
-
}
|
184 |
-
|
185 |
-
.form-options li {
|
186 |
-
display: inline-block;
|
187 |
-
margin: 0;
|
188 |
-
vertical-align: top
|
189 |
-
}
|
190 |
-
|
191 |
-
.form-options li a {
|
192 |
-
display: inline-block;
|
193 |
-
text-decoration: none;
|
194 |
-
padding: 5px 12px;
|
195 |
-
color: #484848;
|
196 |
-
vertical-align: middle;
|
197 |
-
margin: 0 0 10px 0;
|
198 |
-
background: #f1f1f1;
|
199 |
-
border-radius: 4px;
|
200 |
-
font-size: 11px;
|
201 |
-
line-height: 20px
|
202 |
-
}
|
203 |
-
|
204 |
-
.form-options span.icon {
|
205 |
-
font-size: 14px;
|
206 |
-
display: inline-block;
|
207 |
-
vertical-align: top;
|
208 |
-
line-height: 20px;
|
209 |
-
color: #a4c0d2
|
210 |
-
}
|
211 |
-
|
212 |
-
.form-options li.last {
|
213 |
-
margin: 0
|
214 |
-
}
|
215 |
-
|
216 |
-
.form-options li.last a {
|
217 |
-
padding: 5px 3px 3px;
|
218 |
-
width: 24px;
|
219 |
-
text-align: center;
|
220 |
-
height: 22px;
|
221 |
-
line-height: 20px
|
222 |
-
}
|
223 |
-
|
224 |
-
.form-options li.last {
|
225 |
-
font-size: 28px;
|
226 |
-
line-height: 22px
|
227 |
-
}
|
228 |
-
|
229 |
-
.header-posts a, .un-categorised-items a {
|
230 |
-
color: #444;
|
231 |
-
padding: 7px;
|
232 |
-
border-radius: 3px;
|
233 |
-
display: block;
|
234 |
-
text-decoration: none;
|
235 |
-
font-size: 14px;
|
236 |
-
line-height: 18px
|
237 |
-
}
|
238 |
-
|
239 |
-
.header-posts a.active-item, .un-categorised-items.active-item {
|
240 |
-
background: #008ec2;
|
241 |
-
color: #fff
|
242 |
-
}
|
243 |
-
|
244 |
-
span.total-count {
|
245 |
-
float: right;
|
246 |
-
font-size: 12px !important;
|
247 |
-
line-height: 16px;
|
248 |
-
border-radius: 2px
|
249 |
-
}
|
250 |
-
|
251 |
-
.header-posts a.active-item span.total-count, .un-categorised-items.active-item a span {
|
252 |
-
color: #fff !important
|
253 |
-
}
|
254 |
-
|
255 |
-
.media-buttons {
|
256 |
-
padding: 10px 0;
|
257 |
-
background: #fff;
|
258 |
-
text-align: center
|
259 |
-
}
|
260 |
-
|
261 |
-
.media-buttons button, .media-buttons select {
|
262 |
-
width: 48%;
|
263 |
-
display: inline-block;
|
264 |
-
margin: 0 2% 0 0
|
265 |
-
}
|
266 |
-
|
267 |
-
.un-categorised-items {
|
268 |
-
margin: 0 0 10px 0
|
269 |
-
}
|
270 |
-
|
271 |
-
.header-posts {
|
272 |
-
margin: 10px 0 0 0
|
273 |
-
}
|
274 |
-
|
275 |
-
.add-new-folder:focus, .add-new-folder:hover, .organize-button:focus, .organize-button:hover {
|
276 |
-
color: #fff
|
277 |
-
}
|
278 |
-
|
279 |
-
.add-new-folder:hover:after, .organize-button:hover:after {
|
280 |
-
content: "";
|
281 |
-
width: 100%;
|
282 |
-
height: 100%;
|
283 |
-
background: rgba(0, 0, 0, .1);
|
284 |
-
position: absolute;
|
285 |
-
top: 0;
|
286 |
-
left: 0
|
287 |
-
}
|
288 |
-
|
289 |
-
.folder-list li a {
|
290 |
-
color: #333;
|
291 |
-
text-decoration: none;
|
292 |
-
margin: 0 0 1px 0;
|
293 |
-
border-radius: 3px;
|
294 |
-
font-size: 20px;
|
295 |
-
display: block;
|
296 |
-
line-height: 18px
|
297 |
-
}
|
298 |
-
|
299 |
-
.folder-list li a i {
|
300 |
-
display: inline-block;
|
301 |
-
vertical-align: middle;
|
302 |
-
font-size: 14px
|
303 |
-
}
|
304 |
-
|
305 |
-
.folder-list li a span {
|
306 |
-
font-size: 16px;
|
307 |
-
display: inline-block;
|
308 |
-
vertical-align: middle
|
309 |
-
}
|
310 |
-
|
311 |
-
.preview-inner-box {
|
312 |
-
padding: 15px;
|
313 |
-
width: 300px;
|
314 |
-
max-width: 100%;
|
315 |
-
float: left;
|
316 |
-
background: #fff;
|
317 |
-
border: 1px solid #dbdbdb;
|
318 |
-
box-sizing: border-box;
|
319 |
-
border-radius: 4px
|
320 |
-
}
|
321 |
-
|
322 |
-
.accordion-left {
|
323 |
-
width: calc(100% - 305px);
|
324 |
-
float: left;
|
325 |
-
max-width: 550px
|
326 |
-
}
|
327 |
-
|
328 |
-
.accordion-right {
|
329 |
-
width: 300px;
|
330 |
-
float: right
|
331 |
-
}
|
332 |
-
|
333 |
-
.preview-text {
|
334 |
-
font-size: 20px;
|
335 |
-
padding: 0 0 10px
|
336 |
-
}
|
337 |
-
|
338 |
-
.preview-text-info {
|
339 |
-
padding: 10px 0 0;
|
340 |
-
font-size: 12px;
|
341 |
-
line-height: 12px
|
342 |
-
}
|
343 |
-
|
344 |
-
.media-select option {
|
345 |
-
color: #000
|
346 |
-
}
|
347 |
-
|
348 |
-
.media-select option:first-child {
|
349 |
-
font-weight: 700
|
350 |
-
}
|
351 |
-
|
352 |
-
.folder-popup {
|
353 |
-
position: fixed;
|
354 |
-
width: 100%;
|
355 |
-
height: 100%;
|
356 |
-
top: 0;
|
357 |
-
left: 0;
|
358 |
-
z-index: 100001;
|
359 |
-
background: rgba(0, 0, 0, .75)
|
360 |
-
}
|
361 |
-
|
362 |
-
.folder-popup-box {
|
363 |
-
padding: 0;
|
364 |
-
width: 600px;
|
365 |
-
max-width: 100%;
|
366 |
-
margin: auto;
|
367 |
-
top: 50%;
|
368 |
-
position: absolute;
|
369 |
-
left: 0;
|
370 |
-
right: 0;
|
371 |
-
border-radius: 5px;
|
372 |
-
transform: translate(0, -50%);
|
373 |
-
-webkit-transform: translate(0, -50%);
|
374 |
-
-moz-transform: translate(0, -50%);
|
375 |
-
text-align: center;
|
376 |
-
background: #fcfcfc
|
377 |
-
}
|
378 |
-
|
379 |
-
.folder-popup-header {
|
380 |
-
padding: 15px;
|
381 |
-
font-size: 20px;
|
382 |
-
border-bottom: solid 1px #e6e6e6
|
383 |
-
}
|
384 |
-
|
385 |
-
.folder-popup-content {
|
386 |
-
background: #fff;
|
387 |
-
padding: 15px;
|
388 |
-
font-size: 14px;
|
389 |
-
line-height: 20px
|
390 |
-
}
|
391 |
-
|
392 |
-
.folder-popup-content iframe {
|
393 |
-
margin: 30px 0
|
394 |
-
}
|
395 |
-
|
396 |
-
.folder-popup-footer {
|
397 |
-
padding: 15px;
|
398 |
-
border-top: solid 1px #e6e6e6
|
399 |
-
}
|
400 |
-
|
401 |
-
.folder-popup-footer button {
|
402 |
-
border: none;
|
403 |
-
padding: 10px 20px;
|
404 |
-
border-radius: 4px;
|
405 |
-
background: #00c478;
|
406 |
-
color: #fff
|
407 |
-
}
|
408 |
-
|
409 |
-
.close-folder-popup {
|
410 |
-
margin: 0;
|
411 |
-
padding: 0;
|
412 |
-
background: 0 0;
|
413 |
-
border: none;
|
414 |
-
float: right;
|
415 |
-
background: #000;
|
416 |
-
border-radius: 50%;
|
417 |
-
color: #fff;
|
418 |
-
text-align: center;
|
419 |
-
width: 24px;
|
420 |
-
height: 24px
|
421 |
-
}
|
422 |
-
|
423 |
-
.close-folder-popup span {
|
424 |
-
line-height: 24px
|
425 |
-
}
|
426 |
-
|
427 |
-
.wrap h1 {
|
428 |
-
margin: 0 0 15px 0
|
429 |
-
}
|
430 |
-
|
431 |
-
.upgrade-btn {
|
432 |
-
background: #fff;
|
433 |
-
border: 1px solid #1da1f4;
|
434 |
-
box-sizing: border-box;
|
435 |
-
border-radius: 4px;
|
436 |
-
height: 34px;
|
437 |
-
line-height: 34px;
|
438 |
-
padding: 0 25px;
|
439 |
-
display: inline-block;
|
440 |
-
text-decoration: none;
|
441 |
-
font-weight: 700;
|
442 |
-
color: #1da1f4
|
443 |
-
}
|
444 |
-
|
445 |
-
.upgrade-btn:hover {
|
446 |
-
background: #1da1f4;
|
447 |
-
color: #fff
|
448 |
-
}
|
449 |
-
|
450 |
-
.sr-only {
|
451 |
-
position: absolute;
|
452 |
-
width: 1px;
|
453 |
-
height: 1px;
|
454 |
-
padding: 0;
|
455 |
-
margin: -1px;
|
456 |
-
overflow: hidden;
|
457 |
-
clip: rect(0, 0, 0, 0);
|
458 |
-
white-space: nowrap;
|
459 |
-
border: 0
|
460 |
-
}
|
461 |
-
|
462 |
-
.custom-checkbox span {
|
463 |
-
background: #fff;
|
464 |
-
border: 1px solid #dbdbdb;
|
465 |
-
box-sizing: border-box;
|
466 |
-
border-radius: 4px;
|
467 |
-
margin: 0 auto;
|
468 |
-
height: 18px;
|
469 |
-
width: 18px;
|
470 |
-
display: inline-block;
|
471 |
-
vertical-align: middle;
|
472 |
-
position: relative;
|
473 |
-
color: #fff
|
474 |
-
}
|
475 |
-
|
476 |
-
.custom-checkbox input:checked + span {
|
477 |
-
background: #1da1f4
|
478 |
-
}
|
479 |
-
|
480 |
-
.custom-checkbox input:checked + span:after {
|
481 |
-
content: "\f147";
|
482 |
-
font-family: dashicons;
|
483 |
-
display: inline-block;
|
484 |
-
line-height: 1;
|
485 |
-
font-weight: 400;
|
486 |
-
font-style: normal;
|
487 |
-
text-decoration: inherit;
|
488 |
-
font-size: 14px
|
489 |
-
}
|
490 |
-
|
491 |
-
.custom-checkbox {
|
492 |
-
display: inline-block
|
493 |
-
}
|
494 |
-
|
495 |
-
.form-table td.no-padding {
|
496 |
-
padding: 0
|
497 |
-
}
|
498 |
-
|
499 |
-
.custom-checkbox + label {
|
500 |
-
padding: 0 0 0 5px
|
501 |
-
}
|
502 |
-
|
503 |
-
ul.folder-list li {
|
504 |
-
margin: 0;
|
505 |
-
line-height: 32px;
|
506 |
-
padding: 0
|
507 |
-
}
|
508 |
-
|
509 |
-
ul.folder-list li a {
|
510 |
-
padding: 5px 10px
|
511 |
-
}
|
512 |
-
|
513 |
-
.un-categorised-items a:hover, ul.folder-list li a:hover {
|
514 |
-
background: rgba(250, 22, 107, .08);
|
515 |
-
border-radius: 4px
|
516 |
-
}
|
517 |
-
|
518 |
-
.clear {
|
519 |
-
clear: both
|
520 |
-
}
|
521 |
-
|
522 |
-
.form-options li .custom-checkbox {
|
523 |
-
margin: 5px 0 0 0
|
524 |
-
}
|
525 |
-
|
526 |
-
span.create_new_folder {
|
527 |
-
width: 26px;
|
528 |
-
height: 26px;
|
529 |
-
line-height: 26px;
|
530 |
-
font-size: 14px;
|
531 |
-
background: rgba(255, 255, 255, .4);
|
532 |
-
backdrop-filter: blur(16px);
|
533 |
-
border-radius: 4px;
|
534 |
-
text-align: center;
|
535 |
-
margin: 0 15px 0 0
|
536 |
-
}
|
537 |
-
|
538 |
-
.premio-help-btn {
|
539 |
-
width: 180px;
|
540 |
-
text-align: center;
|
541 |
-
padding: 15px;
|
542 |
-
border: 1px solid #ebf1f4;
|
543 |
-
box-sizing: border-box;
|
544 |
-
border-radius: 4px;
|
545 |
-
float: right
|
546 |
-
}
|
547 |
-
|
548 |
-
.need-help {
|
549 |
-
font-style: normal;
|
550 |
-
font-weight: 500;
|
551 |
-
font-size: 15px;
|
552 |
-
line-height: 18px;
|
553 |
-
color: #484848
|
554 |
-
}
|
555 |
-
|
556 |
-
.visit-our {
|
557 |
-
font-style: normal;
|
558 |
-
font-weight: 400;
|
559 |
-
font-size: 14px;
|
560 |
-
line-height: 16px;
|
561 |
-
text-align: center;
|
562 |
-
color: #484848
|
563 |
-
}
|
564 |
-
|
565 |
-
.knowledge-base {
|
566 |
-
font-style: normal;
|
567 |
-
font-weight: 400;
|
568 |
-
font-size: 14px;
|
569 |
-
line-height: 16px;
|
570 |
-
text-align: center;
|
571 |
-
color: #1da1f4;
|
572 |
-
text-decoration: underline
|
573 |
-
}
|
574 |
-
|
575 |
-
.form-table td.default-folder {
|
576 |
-
width: 100px
|
577 |
-
}
|
578 |
-
|
579 |
-
.accordion-content.no-bp {
|
580 |
-
padding-bottom: 0 !important
|
581 |
-
}
|
582 |
-
|
583 |
-
.folders-tabs {
|
584 |
-
background: #fff;
|
585 |
-
max-width: 1024px;
|
586 |
-
box-shadow: 0 4px 21px rgba(7, 16, 28, .1);
|
587 |
-
border-radius: 4px;
|
588 |
-
margin: 0 0 20px 0
|
589 |
-
}
|
590 |
-
|
591 |
-
.folder-tab-menu {
|
592 |
-
background: #ebf1f4;
|
593 |
-
padding: 5px 15px 0;
|
594 |
-
font-size: 16px;
|
595 |
-
cursor: pointer;
|
596 |
-
color: #484848;
|
597 |
-
font-weight: 500;
|
598 |
-
-webkit-border-top-left-radius: 4px;
|
599 |
-
-webkit-border-top-right-radius: 4px;
|
600 |
-
-moz-border-radius-topleft: 4px;
|
601 |
-
-moz-border-radius-topright: 4px;
|
602 |
-
border-top-left-radius: 4px;
|
603 |
-
border-top-right-radius: 4px
|
604 |
-
}
|
605 |
-
|
606 |
-
.folder-tab-menu ul {
|
607 |
-
margin: 0;
|
608 |
-
padding: 0
|
609 |
-
}
|
610 |
-
|
611 |
-
.folder-tab-menu ul li {
|
612 |
-
display: inline-block;
|
613 |
-
margin: 0 1px 0 0
|
614 |
-
}
|
615 |
-
|
616 |
-
.folder-tab-menu ul li a {
|
617 |
-
display: inline-block;
|
618 |
-
padding: 10px 15px;
|
619 |
-
font-family: Roboto, sans-serif;
|
620 |
-
text-decoration: none;
|
621 |
-
font-size: 16px;
|
622 |
-
color: #484848;
|
623 |
-
-webkit-border-top-left-radius: 4px;
|
624 |
-
-webkit-border-top-right-radius: 4px;
|
625 |
-
-moz-border-radius-topleft: 4px;
|
626 |
-
-moz-border-radius-topright: 4px;
|
627 |
-
border-top-left-radius: 4px;
|
628 |
-
border-top-right-radius: 4px;
|
629 |
-
outline: 0;
|
630 |
-
transition: all .2s ease-in-out
|
631 |
-
}
|
632 |
-
|
633 |
-
.folder-tab-menu ul li a.active, .folder-tab-menu ul li a:focus, .folder-tab-menu ul li a:hover {
|
634 |
-
background: #fff;
|
635 |
-
box-shadow: none;
|
636 |
-
color: #000
|
637 |
-
}
|
638 |
-
|
639 |
-
.folder-tab-content {
|
640 |
-
padding: 15px
|
641 |
-
}
|
642 |
-
|
643 |
-
.folder-tab-content .tab-content {
|
644 |
-
display: none;
|
645 |
-
min-height: 20vh
|
646 |
-
}
|
647 |
-
|
648 |
-
.folder-tab-content .tab-content.active {
|
649 |
-
display: block
|
650 |
-
}
|
651 |
-
|
652 |
-
p.submit {
|
653 |
-
margin: 0;
|
654 |
-
padding: 0
|
655 |
-
}
|
656 |
-
|
657 |
-
.no-plugin-message p {
|
658 |
-
font-size: 14px;
|
659 |
-
margin: 0;
|
660 |
-
padding: 0
|
661 |
-
}
|
662 |
-
|
663 |
-
.folder-popup-form {
|
664 |
-
position: fixed;
|
665 |
-
width: 100%;
|
666 |
-
height: 100%;
|
667 |
-
background: rgba(0, 0, 0, .5);
|
668 |
-
top: 0;
|
669 |
-
left: 0;
|
670 |
-
z-index: 10001;
|
671 |
-
display: none;
|
672 |
-
font-family: Roboto, sans-serif
|
673 |
-
}
|
674 |
-
|
675 |
-
.popup-form-content {
|
676 |
-
background: #fff;
|
677 |
-
min-height: 100px;
|
678 |
-
width: 400px;
|
679 |
-
text-align: center;
|
680 |
-
margin: 0 auto;
|
681 |
-
position: absolute;
|
682 |
-
left: 0;
|
683 |
-
right: 0;
|
684 |
-
top: 50%;
|
685 |
-
transform: translate(0, -50%);
|
686 |
-
-webkit-transform: translate(0, -50%);
|
687 |
-
-moz-transform: translate(0, -50%);
|
688 |
-
-o-transform: translate(0, -50%);
|
689 |
-
-ms-transform: translate(0, -50%);
|
690 |
-
padding: 20px;
|
691 |
-
-webkit-border-radius: 4px;
|
692 |
-
-moz-border-radius: 4px;
|
693 |
-
border-radius: 4px;
|
694 |
-
color: #484848;
|
695 |
-
max-width: 80%
|
696 |
-
}
|
697 |
-
|
698 |
-
.add-update-folder-title {
|
699 |
-
display: block;
|
700 |
-
position: relative;
|
701 |
-
max-width: 100%;
|
702 |
-
margin: 0 0 .4em;
|
703 |
-
padding: 0 20px;
|
704 |
-
color: #595959;
|
705 |
-
text-align: center;
|
706 |
-
text-transform: none;
|
707 |
-
word-wrap: break-word;
|
708 |
-
font-weight: 700;
|
709 |
-
font-size: 22px;
|
710 |
-
line-height: 26px
|
711 |
-
}
|
712 |
-
|
713 |
-
.add-folder-note {
|
714 |
-
padding: 10px 0 30px;
|
715 |
-
min-height: 35px
|
716 |
-
}
|
717 |
-
|
718 |
-
.folder-form-errors {
|
719 |
-
margin: 0 0 10px 0;
|
720 |
-
padding: 8px 0;
|
721 |
-
background: #ffe4e4;
|
722 |
-
color: #a20000;
|
723 |
-
display: none
|
724 |
-
}
|
725 |
-
|
726 |
-
.folder-form-buttons {
|
727 |
-
display: flex
|
728 |
-
}
|
729 |
-
|
730 |
-
.folder-form-buttons a, .folder-form-buttons button {
|
731 |
-
display: inline-flex;
|
732 |
-
padding: 0;
|
733 |
-
text-decoration: none;
|
734 |
-
margin: 0 3px;
|
735 |
-
border-radius: 4px;
|
736 |
-
border: solid 1px #1da1f4;
|
737 |
-
line-height: 34px;
|
738 |
-
font-weight: 700;
|
739 |
-
font-size: 14px;
|
740 |
-
box-sizing: border-box;
|
741 |
-
height: 36px;
|
742 |
-
cursor: pointer;
|
743 |
-
flex: 1;
|
744 |
-
justify-content: center;
|
745 |
-
outline: 0;
|
746 |
-
box-shadow: none
|
747 |
-
}
|
748 |
-
|
749 |
-
.form-cancel-btn, a.form-cancel-btn:hover {
|
750 |
-
background-color: #fff;
|
751 |
-
color: #3085d6;
|
752 |
-
outline: 0
|
753 |
-
}
|
754 |
-
|
755 |
-
.form-submit-btn {
|
756 |
-
background-color: #3085d6;
|
757 |
-
color: #fff;
|
758 |
-
outline: 0
|
759 |
-
}
|
760 |
-
|
761 |
-
.import-folder-table table {
|
762 |
-
border-collapse: collapse;
|
763 |
-
border: solid 1px silver
|
764 |
-
}
|
765 |
-
|
766 |
-
.import-folder-table td, .import-folder-table th {
|
767 |
-
border: solid 1px silver;
|
768 |
-
padding: 10px 15px;
|
769 |
-
text-align: left;
|
770 |
-
font-size: 14px;
|
771 |
-
vertical-align: top
|
772 |
-
}
|
773 |
-
|
774 |
-
.import-folder-table th {
|
775 |
-
width: 220px
|
776 |
-
}
|
777 |
-
|
778 |
-
#import-third-party-plugin-data .import-folder-table th {
|
779 |
-
width: 120px
|
780 |
-
}
|
781 |
-
|
782 |
-
#import-third-party-plugin-data .import-folder-table td span.import-message {
|
783 |
-
display: inline-block;
|
784 |
-
margin: 0 0 0 5px;
|
785 |
-
line-height: 30px
|
786 |
-
}
|
787 |
-
|
788 |
-
#import-third-party-plugin-data .popup-form-content {
|
789 |
-
width: 430px
|
790 |
-
}
|
791 |
-
|
792 |
-
.import-folder-table td span.import-message {
|
793 |
-
display: block;
|
794 |
-
margin: 0 0 5px 0
|
795 |
-
}
|
796 |
-
|
797 |
-
.import-folder-table td button.button {
|
798 |
-
margin: 0 5px 0 0
|
799 |
-
}
|
800 |
-
|
801 |
-
.import-folder-table td button.button.remove-folder-data {
|
802 |
-
background: 0 0;
|
803 |
-
border-color: transparent
|
804 |
-
}
|
805 |
-
|
806 |
-
.import-folder-table td span.spinner {
|
807 |
-
display: none
|
808 |
-
}
|
809 |
-
|
810 |
-
.import-folder-table td span.spinner.active {
|
811 |
-
display: inline-block;
|
812 |
-
visibility: visible;
|
813 |
-
margin-right: 0
|
814 |
-
}
|
815 |
-
|
816 |
-
.import-folder-table td span.import-message.success-import {
|
817 |
-
background: #c6ffc6;
|
818 |
-
padding: 10px;
|
819 |
-
color: green;
|
820 |
-
margin: 0 0 10px 0
|
821 |
-
}
|
822 |
-
|
823 |
-
.import-folder-table td span.import-message.error-import {
|
824 |
-
background: #ffeded;
|
825 |
-
padding: 10px;
|
826 |
-
color: red;
|
827 |
-
margin: 0 0 10px 0
|
828 |
-
}
|
829 |
-
|
830 |
-
.import-folder-title, .import-plugin-title, .remove-folder-title {
|
831 |
-
font-size: 16px;
|
832 |
-
font-weight: 700;
|
833 |
-
padding: 0 0 15px 0
|
834 |
-
}
|
835 |
-
|
836 |
-
.import-folder-note, .remove-folder-note {
|
837 |
-
min-height: 50px;
|
838 |
-
padding: 0 0 20px 0
|
839 |
-
}
|
840 |
-
|
841 |
-
button#remove-folder-button.delete-folder-plugin {
|
842 |
-
color: #fff;
|
843 |
-
background: #ca0000;
|
844 |
-
border-color: #ca0000
|
845 |
-
}
|
846 |
-
|
847 |
-
.popup-content {
|
848 |
-
position: relative
|
849 |
-
}
|
850 |
-
|
851 |
-
.close-popup-button {
|
852 |
-
position: absolute;
|
853 |
-
right: -10px;
|
854 |
-
top: -2px;
|
855 |
-
width: 20px;
|
856 |
-
height: 20px
|
857 |
-
}
|
858 |
-
|
859 |
-
.close-popup-button a {
|
860 |
-
display: block;
|
861 |
-
position: relative;
|
862 |
-
width: 20px;
|
863 |
-
height: 20px;
|
864 |
-
color: #333;
|
865 |
-
padding: 2px;
|
866 |
-
box-sizing: border-box
|
867 |
-
}
|
868 |
-
|
869 |
-
.close-popup-button a:hover span {
|
870 |
-
transform: rotate(180deg)
|
871 |
-
}
|
872 |
-
|
873 |
-
.close-popup-button a span {
|
874 |
-
display: block;
|
875 |
-
position: relative;
|
876 |
-
width: 16px;
|
877 |
-
height: 16px;
|
878 |
-
transition: all .2s linear
|
879 |
-
}
|
880 |
-
|
881 |
-
.close-popup-button a span:after, .close-popup-button a span:before {
|
882 |
-
content: "";
|
883 |
-
position: absolute;
|
884 |
-
width: 12px;
|
885 |
-
height: 2px;
|
886 |
-
background-color: #333;
|
887 |
-
display: block;
|
888 |
-
border-radius: 2px;
|
889 |
-
transform: rotate(45deg);
|
890 |
-
top: 7px;
|
891 |
-
left: 2px
|
892 |
-
}
|
893 |
-
|
894 |
-
.close-popup-button a span:after {
|
895 |
-
transform: rotate(-45deg)
|
896 |
-
}
|
897 |
-
|
898 |
-
.import-plugin-note {
|
899 |
-
padding: 0 0 20px 0
|
900 |
-
}
|
901 |
-
|
902 |
-
.import-folder-table table {
|
903 |
-
width: 100%;
|
904 |
-
margin: 0 0 20px 0
|
905 |
-
}
|
906 |
-
|
907 |
-
.import-plugin-footer {
|
908 |
-
padding: 0 30px 15px
|
909 |
-
}
|
910 |
-
|
911 |
-
.input-field label {
|
912 |
-
display: block;
|
913 |
-
font-weight: 700;
|
914 |
-
padding-bottom: 5px
|
915 |
-
}
|
916 |
-
|
917 |
-
.license-key-footer {
|
918 |
-
font-weight: 700;
|
919 |
-
padding-bottom: 15px;
|
920 |
-
font-size: 16px;
|
921 |
-
line-height: 30px
|
922 |
-
}
|
923 |
-
|
924 |
-
input.license-key {
|
925 |
-
width: 100%;
|
926 |
-
max-width: 250px
|
927 |
-
}
|
928 |
-
|
929 |
-
.submit {
|
930 |
-
text-align: left;
|
931 |
-
max-width: 100%;
|
932 |
-
margin-top: 0;
|
933 |
-
padding-top: 10px
|
934 |
-
}
|
935 |
-
|
936 |
-
.folder-error-message, .folder-success-message {
|
937 |
-
background: #fff;
|
938 |
-
margin: 10px 0 10px 0;
|
939 |
-
padding: 10px 10px 10px 10px;
|
940 |
-
border-left: solid 3px #dd4b39
|
941 |
-
}
|
942 |
-
|
943 |
-
.folder-success-message {
|
944 |
-
border-left: solid 3px #00a65a
|
945 |
-
}
|
946 |
-
|
947 |
-
.folder-tab-content .separator {
|
948 |
-
border-bottom: solid 1px #e9e5e5;
|
949 |
-
margin: 20px 0 10px
|
950 |
-
}
|
951 |
-
|
952 |
-
.folder-form-message {
|
953 |
-
padding: 30px 50px 40px
|
954 |
-
}
|
1 |
+
@import url(https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap);span.upgrade-message{padding:5px 10px;background:#fff;display:inline-block;font-size:14px;color:#000}a.pink,span.pink{color:#ff5983;text-decoration:none;font-weight:700}.form-table{margin:0}#setting-form{font-family:Roboto,sans-serif}.form-table th{width:220px;font-weight:400;vertical-align:middle}.form-table th.default-folder{width:100px}.premio-help{text-align:center}.premio-help a{display:block;float:right}.premio-help a img{width:auto;height:auto}.hide-option{display:none}.accordion{max-width:1024px;box-shadow:0 4px 21px rgba(7,16,28,.1);border-radius:4px;margin:0 0 20px 0}.accordion-header{background:#ebf1f4;padding:10px 15px;font-size:16px;cursor:pointer;border-radius:4px;color:#484848;font-weight:500}.accordion-header.active{border-radius:0;-webkit-border-top-left-radius:4px;-webkit-border-top-right-radius:4px;-moz-border-radius-topleft:4px;-moz-border-radius-topright:4px;border-top-left-radius:4px;border-top-right-radius:4px}.accordion-header.active span{transform:rotate(180deg)}select.hide-show-option{width:170px}.sp-replacer.sp-light{padding:0!important;margin:0!important;border:solid 2px #fff!important;box-shadow:0 3px 7px rgba(149,149,150,.3);border-radius:4px}.sp-dd{display:none!important}.sp-preview{width:18px!important;height:18px!important;margin:0!important;padding:0!important;border:none!important}.form-table select{width:268px;border-radius:6px}.accordion-header span{float:right;width:20px;height:20px;line-height:22px;font-size:14px;background:#fff;border-radius:10px}.accordion-header span:hover{background:#1da1f4;color:#fff}.form-title{font-size:23px;font-weight:400;margin:0;padding:0 0 10px 0;line-height:29px;min-height:36px}.add-new-folder,button.organize-button{text-decoration:none;display:block;float:right;font-size:14px;padding:4px 10px 4px 4px;background:#f51366;color:#fff;border:solid 1px #f51366;border-radius:4px;line-height:24px;position:relative}.add-new-folder span{display:block;float:left;line-height:26px;font-size:14px;margin-right:5px}.add-new-folder span.folder-icon-create_new_folder{font-size:20px}.form-options{background:#fff;padding:10px 10px 0 10px;margin:0 0;box-shadow:0 4px 21px rgba(7,16,28,.1);border-radius:4px}.shadow-box{padding:10px;box-shadow:0 4px 21px rgba(7,16,28,.1);margin:20px 0 0 0}.accordion .separator{border-bottom:solid 1px #e9e5e5}.form-options ul{margin:0;padding:0}.form-options li{display:inline-block;margin:0;vertical-align:top}.form-options li a{display:inline-block;text-decoration:none;padding:5px 12px;color:#484848;vertical-align:middle;margin:0 0 10px 0;background:#f1f1f1;border-radius:4px;font-size:11px;line-height:20px}.form-options span.icon{font-size:14px;display:inline-block;vertical-align:top;line-height:20px;color:#a4c0d2}.form-options li.last{margin:0}.form-options li.last a{padding:5px 3px 3px;width:24px;text-align:center;height:22px;line-height:20px}.form-options li.last{font-size:28px;line-height:22px}.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.active-item,.un-categorised-items.active-item{background:#008ec2;color:#fff}span.total-count{float:right;font-size:12px!important;line-height:16px;border-radius:2px}.header-posts a.active-item span.total-count,.un-categorised-items.active-item a span{color:#fff!important}.media-buttons{padding:10px 0;background:#fff;text-align:center}.media-buttons button,.media-buttons select{width:48%;display:inline-block;margin:0 2% 0 0}.un-categorised-items{margin:0 0 10px 0}.header-posts{margin:10px 0 0 0}.add-new-folder:focus,.add-new-folder:hover,.organize-button:focus,.organize-button:hover{color:#fff}.add-new-folder:hover:after,.organize-button:hover:after{content:"";width:100%;height:100%;background:rgba(0,0,0,.1);position:absolute;top:0;left:0}.folder-list li a{color:#333;text-decoration:none;margin:0 0 1px 0;border-radius:3px;font-size:20px;display:block;line-height:18px}.folder-list li a i{display:inline-block;vertical-align:middle;font-size:14px}.folder-list li a span{font-size:16px;display:inline-block;vertical-align:middle}.preview-inner-box{padding:15px;width:300px;max-width:100%;float:left;background:#fff;border:1px solid #dbdbdb;box-sizing:border-box;border-radius:4px}.accordion-left{width:calc(100% - 215px);float:left}.accordion-right{width:205px;float:right}#customize-folders .accordion-left{width:calc(100% - 310px)}#customize-folders .accordion-right{width:305px}.preview-text{font-size:20px;padding:0 0 10px}.preview-text-info{padding:10px 0 0;font-size:12px;line-height:12px}.media-select option{color:#000}.media-select option:first-child{font-weight:700}.folder-popup{position:fixed;width:100%;height:100%;top:0;left:0;z-index:100001;background:rgba(0,0,0,.75)}.folder-popup-box{padding:0;width:600px;max-width:100%;margin:auto;top:50%;position:absolute;left:0;right:0;border-radius:5px;transform:translate(0,-50%);-webkit-transform:translate(0,-50%);-moz-transform:translate(0,-50%);text-align:center;background:#fcfcfc}.folder-popup-header{padding:15px;font-size:20px;border-bottom:solid 1px #e6e6e6}.folder-popup-content{background:#fff;padding:15px;font-size:14px;line-height:20px}.folder-popup-content iframe{margin:30px 0}.folder-popup-footer{padding:15px;border-top:solid 1px #e6e6e6}.folder-popup-footer button{border:none;padding:10px 20px;border-radius:4px;background:#00c478;color:#fff}.close-folder-popup{margin:0;padding:0;background:0 0;border:none;float:right;background:#000;border-radius:50%;color:#fff;text-align:center;width:24px;height:24px}.close-folder-popup span{line-height:24px}.wrap h1{margin:0 0 15px 0}.upgrade-btn{background:#fff;border:1px solid #1da1f4;box-sizing:border-box;border-radius:4px;height:34px;line-height:34px;padding:0 25px;display:inline-block;text-decoration:none;font-weight:700;color:#1da1f4}.upgrade-btn:hover{background:#1da1f4;color:#fff}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.custom-checkbox span{background:#fff;border:1px solid #dbdbdb;box-sizing:border-box;border-radius:4px;margin:0 auto;height:18px;width:18px;display:inline-block;vertical-align:middle;position:relative;color:#fff}.custom-checkbox input:disabled+span{background:#f0f0f0}.submit-button{padding:10px 0 0 0}.custom-checkbox input:checked+span{background:#1da1f4}.custom-checkbox input:checked+span:after{content:"\f147";font-family:dashicons;display:inline-block;line-height:1;font-weight:400;font-style:normal;text-decoration:inherit;font-size:14px}.custom-checkbox{display:inline-block}.form-table td.no-padding{padding:0}#folder-settings .form-table td.no-padding{width:20px}.custom-checkbox+label{display:inline-block;vertical-align:middle;font-size:14px;padding:0 5px 0 8px}ul.folder-list li{margin:0;line-height:32px;padding:0}ul.folder-list li a{padding:5px 10px}.un-categorised-items a:hover,ul.folder-list li a:hover{background:rgba(250,22,107,.08);border-radius:4px}.clear{clear:both}.form-options li .custom-checkbox{margin:5px 0 0 0}span.create_new_folder{width:26px;height:26px;line-height:26px;font-size:14px;background:rgba(255,255,255,.4);backdrop-filter:blur(16px);border-radius:4px;text-align:center;margin:0 15px 0 0}.premio-help-btn{width:180px;text-align:center;padding:15px;border:1px solid #ebf1f4;box-sizing:border-box;border-radius:4px;float:right}.need-help{font-style:normal;font-weight:500;font-size:15px;line-height:18px;color:#484848}.visit-our{font-style:normal;font-weight:400;font-size:14px;line-height:16px;text-align:center;color:#484848}.knowledge-base{font-style:normal;font-weight:400;font-size:14px;line-height:16px;text-align:center;color:#1da1f4;text-decoration:underline}.form-table td.default-folder{width:100px}.accordion-content.no-bp{padding-bottom:0!important}.folders-tabs{background:#fff;max-width:1024px;box-shadow:0 4px 21px rgba(7,16,28,.1);border-radius:4px;margin:0 0 20px 0}.folder-tab-menu{background:#ebf1f4;padding:5px 15px 0;font-size:16px;cursor:pointer;color:#484848;font-weight:500;-webkit-border-top-left-radius:4px;-webkit-border-top-right-radius:4px;-moz-border-radius-topleft:4px;-moz-border-radius-topright:4px;border-top-left-radius:4px;border-top-right-radius:4px}.folder-tab-menu ul{margin:0;padding:0}.folder-tab-menu ul li{display:inline-block;margin:0 1px 0 0}.folder-tab-menu ul li a{display:inline-block;padding:10px 15px;font-family:Roboto,sans-serif;text-decoration:none;font-size:16px;color:#484848;-webkit-border-top-left-radius:4px;-webkit-border-top-right-radius:4px;-moz-border-radius-topleft:4px;-moz-border-radius-topright:4px;border-top-left-radius:4px;border-top-right-radius:4px;outline:0;transition:all .2s ease-in-out}.folder-tab-menu ul li a.active,.folder-tab-menu ul li a:focus,.folder-tab-menu ul li a:hover{background:#fff;box-shadow:none;color:#000}.folder-tab-content{padding:15px}.folder-tab-content .tab-content{display:none;min-height:20vh}.folder-tab-content .tab-content.active{display:block}p.submit{margin:0;padding:0}.no-plugin-message p{font-size:14px;margin:0;padding:0}.folder-popup-form{position:fixed;width:100%;height:100%;background:rgba(0,0,0,.5);top:0;left:0;z-index:10001;display:none;font-family:Roboto,sans-serif}.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:4px;-moz-border-radius:4px;border-radius:4px;color:#484848;max-width:80%}.add-update-folder-title{display:block;position:relative;max-width:100%;margin:0 0 .4em;padding:0 20px;color:#595959;text-align:center;text-transform:none;word-wrap:break-word;font-weight:700;font-size:22px;line-height:26px}.add-folder-note{padding:10px 0 30px;min-height:35px}.folder-form-errors{margin:0 0 10px 0;padding:8px 0;background:#ffe4e4;color:#a20000;display:none}.folder-form-buttons{display:flex}.folder-form-buttons a,.folder-form-buttons button{display:inline-flex;padding:0;text-decoration:none;margin:0 3px!important;border-radius:4px;border:solid 1px #1da1f4;line-height:34px;font-weight:700;font-size:14px;box-sizing:border-box;height:36px;cursor:pointer;flex:1;justify-content:center;outline:0;box-shadow:none}.form-cancel-btn,a.form-cancel-btn:hover{background-color:#fff;color:#3085d6;outline:0}.form-submit-btn{background-color:#3085d6;color:#fff;outline:0}.folder-form-buttons a.delete-button,.folder-form-buttons button.delete-button{border:solid 1px #860000;background-color:#d40000;color:#fff}.folder-form-buttons button:disabled{border:solid 1px #868686;background-color:#a5a5a5}.import-folder-table table{border-collapse:collapse;border:solid 1px silver}.import-folder-table td,.import-folder-table th{border:solid 1px silver;padding:10px 15px;text-align:left;font-size:14px;vertical-align:top}.import-folder-table th{width:220px}#import-third-party-plugin-data .import-folder-table th{width:120px}#import-third-party-plugin-data .import-folder-table td span.import-message{display:inline-block;margin:0 0 0 5px;line-height:30px}#import-third-party-plugin-data .popup-form-content{width:430px}.import-folder-table td span.import-message{display:block;margin:0 0 5px 0}.import-folder-table td button.button{margin:0 5px 0 0}.import-folder-table td button.button.remove-folder-data{background:0 0;border-color:transparent;color:#3c85f7}.import-folder-table td button.button.button-primary{background:#fff;color:#3c85f7;border:solid 1px #3c85f7}.import-folder-table td span.spinner{display:none}.import-folder-table td span.spinner.active{display:inline-block;visibility:visible;margin-right:0}.import-folder-table td span.import-message.success-import{background:#c6ffc6;padding:10px;color:green;margin:0 0 10px 0}.import-folder-table td span.import-message.error-import{background:#ffeded;padding:10px;color:red;margin:0 0 10px 0}.import-folder-title,.import-plugin-title,.remove-folder-title{font-size:16px;font-weight:700;padding:0 0 15px 0}.import-folder-note,.remove-folder-note{min-height:50px;padding:0 0 20px 0}button#remove-folder-button.delete-folder-plugin{color:#fff;background:#ca0000;border-color:#ca0000}.popup-content{position:relative}.close-popup-button{position:absolute;right:-10px;top:-2px;width:20px;height:20px}.close-popup-button a{display:block;position:relative;width:20px;height:20px;color:#333;padding:2px;box-sizing:border-box}.close-popup-button a:hover span{transform:rotate(180deg)}.close-popup-button a span{display:block;position:relative;width:16px;height:16px;transition:all .2s linear}.close-popup-button a span:after,.close-popup-button a span:before{content:"";position:absolute;width:12px;height:2px;background-color:#333;display:block;border-radius:2px;transform:rotate(45deg);top:7px;left:2px}.close-popup-button a span:after{transform:rotate(-45deg)}.import-plugin-note{padding:0 0 20px 0}.import-folder-table table{width:100%;margin:0 0 20px 0}.import-plugin-footer{padding:0 30px 15px}.input-field label{display:block;font-weight:700;padding-bottom:5px}.license-key-footer{font-weight:700;padding-bottom:15px;font-size:16px;line-height:30px}input.license-key{width:100%;max-width:250px}.submit{text-align:left;max-width:100%;margin-top:0;padding-top:10px}.folder-error-message,.folder-success-message{background:#fff;margin:10px 0 10px 0;padding:10px 10px 10px 10px;border-left:solid 3px #dd4b39}.folder-success-message{border-left:solid 3px #00a65a}.folder-tab-content .separator{border-bottom:solid 1px #e9e5e5;margin:20px 0 10px}.folder-form-message{padding:30px 50px 40px}.folder-switch{display:inline-block;height:24px;line-height:24px;position:relative;padding:0 0 0 60px!important}.folder-switch input{display:none}.folder-slider{background-color:#ababab;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:.4s;width:50px;height:24px}.folder-slider.round{border-radius:34px}.folder-slider:before{background-color:#fff;bottom:4px;content:"";height:16px;left:4px;position:absolute;transition:.2s;width:16px}.folder-slider.round:before{border-radius:50%}.folder-slider:after{content:"off";color:#fff;display:inline-block;padding:0 0 0 25px;font-size:14px;line-height:24px;position:absolute;left:0;top:0}input:checked+.folder-slider{background-color:#b91c1c}input:checked+.folder-slider:before{transform:translateX(26px)}input:checked+.folder-slider:after{padding:0 0 0 8px;content:"on"}.media-details{padding:5px 0 10px}.media-setting-box{margin:10px 0 0 0;display:none}.media-setting-box.active{display:block}.inline-checkbox+.inline-checkbox{padding:5px 0 0 0}.folder-danger-zone{max-width:610px;width:100%}.danzer-title{font-size:16px;font-weight:700;line-height:20px;color:#dc2626;margin:30px 0 0 0;display:block;padding:0}.danzer-title span{color:#dc2626}a.remove-folders-data{border:2px solid #b91c1c;box-sizing:border-box;border-radius:5px;display:block;text-align:center;line-height:30px;padding:0;text-decoration:none;color:#b91c1c;font-weight:500}.remove-folders-data a{color:#d40000;font-weight:700;display:inline-block;vertical-align:middle}.media-setting-box .select2-container{width:100%!important}.media-setting-box li{margin:0;padding:0}.media-setting-box .select2-container .select2-search--inline .select2-search__field{margin:6px 0 0 0;padding:0;min-height:20px;height:20px}.folder-tooltip{display:inline-block;position:relative;vertical-align:middle}.folder-tooltip:after,.folder-tooltip:before{position:absolute;opacity:0;pointer-events:none;left:50%;content:"";color:#fff}.folder-tooltip:before{top:-8px;transform:translateX(-50%);height:10px;width:0;border-width:10px 5px 0;border-style:solid;border-color:#333 transparent transparent}.folder-tooltip:after{text-align:center;content:"" attr(data-title) "";font-size:11px;top:0;transform:translate(-50%,calc(-100% - 6px));padding:6px 20px;min-width:90px;background-color:#333;box-shadow:0 2px 4px rgba(0,0,0,.15);border-radius:6px;width:250px;white-space:break-spaces;line-height:16px;z-index:10001}.folder-tooltip:hover:after,.folder-tooltip:hover:before{opacity:1;pointer-events:auto}.folder-notification-title{padding:5px 0 0 0;font-weight:500}.folder-notification-note{padding:0 0 5px 0}.text-left{text-align:left}.input-box input{width:100%}.delete-confirmation-message{font-weight:500;color:#d00;padding-top:2px;min-height:20px;line-height:20px}.input-box{padding:3px 0 0}span.danger-info{color:#7f1d1d;font-weight:500;font-size:16px;line-height:27px;display:block}.import-export-table{width:100%}.import-export-table tr td{padding:0 0 10px 0;vertical-align:middle}.import-export-table tr td.last-td{width:100px;text-align:center;padding:0 0 0 20px}.folder-text span{color:#3c85f7;font-weight:500}span.folder-info{display:block;line-height:24px;font-size:18px;font-weight:500;vertical-align:middle;padding:0 0 5px 0}a.import-folders-button{border:2px solid #3c85f7;box-sizing:border-box;border-radius:5px;display:block;text-align:center;line-height:30px;padding:0;text-decoration:none;color:#3c85f7;font-weight:500}a.contact-folders-button{border:2px solid #64748b;box-sizing:border-box;border-radius:5px;display:block;text-align:center;line-height:30px;padding:0;text-decoration:none;color:#64748b;font-weight:500}#import-folders-popup .popup-form-content{width:500px}#import-folders-popup th{width:auto}#import-folders-popup td{width:250px}.no-more-plugins{display:none}.no-more-plugins.active{display:table-row}button.upgrade-link{display:inline-block;vertical-align:middle;background:#a07bf4;color:#fff;text-decoration:none;padding:2px 6px;font-size:11px;margin:0 0 0 5px;border-radius:4px;border:none;cursor:pointer}.send-user-to-pro:hover .normal-box{filter:blur(1px)}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#fff!important;cursor:default}.send-user-to-pro,.send-user-to-pro .normal-box{position:relative}.send-user-to-pro .upgrade-box{position:absolute;left:0;top:0;width:100%;text-align:center;height:100%;cursor:pointer;display:block}.send-user-to-pro .upgrade-box button{background:#1a75ff;color:#fff;text-decoration:none;border-radius:4px;display:none;position:absolute;top:50%;left:0;right:0;margin:0 auto;width:120px;transform:translate(0,-50%);border:none;padding:5px 0;cursor:pointer}.send-user-to-pro:hover .upgrade-box button{display:inline-block}a.upgrade-box-link{text-decoration:none;color:#333;display:inline-block;position:relative}a.upgrade-box-link>label{padding:0 5px 0 0}a.upgrade-box-link:hover{color:#1da1f4}.html-tooltip{position:relative;display:inline-block}.html-tooltip .tooltip-text{visibility:hidden;width:300px;background-color:#333;color:#fff;text-align:center;border-radius:6px;padding:10px;position:absolute;z-index:1201;bottom:125%;left:50%;margin-left:-150px;opacity:0;transition:opacity .3s;font-size:12px;line-height:18px;top:100%;height:354px}.html-tooltip.no-position .tooltip-text{height:auto}.html-tooltip .tooltip-text:after{content:"";position:absolute;top:-10px;left:50%;margin-left:-15px;border-width:5px;border-style:solid;border-color:#333 transparent transparent transparent;transform:rotate(180deg);-webkit-transform:rotate(180deg)}.html-tooltip:hover .tooltip-text{visibility:visible;opacity:1}.html-tooltip .tooltip-text img{width:100%;height:auto;display:block;margin:10px 0 0 0}.html-tooltip.top .tooltip-text{top:auto;bottom:100%;margin-bottom:5px}.html-tooltip.top .tooltip-text:after{top:100%;transform:rotate(0);-webkit-transform:rotate(0)}.html-tooltip.side .tooltip-text{bottom:125%;left:100%;margin-left:0;top:5px;transform:translateY(-50%);-webkit-transform:translateY(-50%)}.html-tooltip.side .tooltip-text:after{top:50%;left:-5px;transform:rotate(180deg);-webkit-transform:rotate(90deg)}.html-tooltip.side .tooltip-text.hide-arrow:after{display:none}.color-box{display:inline-block;position:relative;padding:0 8px 0 0}.color-box-area{display:inline-block;line-height:27px}.color-box .gradient{background:linear-gradient(135deg,#c6ffdd 18.06%,#fbd786 51.57%,rgba(247,121,125,.91) 81.94%);width:18px;height:18px;display:inline-block;border-radius:9px;margin:4px 7px;vertical-align:middle;float:left}a.upgrade-box-link:hover .color-box{opacity:1;filter:blur(1px);-webkit-filter:blur(1px)}a.upgrade-box-link .upgrade-link{z-index:1;padding:0 10px;background:#1a75ff;color:#fff;position:absolute;border-radius:4px;transition:all .1s ease-in-out;left:100%;width:auto;white-space:nowrap;font-size:12px;line-height:25px;top:-4px;opacity:0;visibility:hidden;right:auto}.upgrade-box-link.d-block{height:26px;border:1px solid #155e75;margin:2px 0;border-radius:6px}.upgrade-box-link.d-block .upgrade-link{top:0;transform:translate(10px,0)}a.upgrade-box-link .upgrade-link:after{content:"";width:0;height:0;border-style:solid;border-width:5px 5px 0 5px;border-color:#1a75ff transparent transparent transparent;position:absolute;top:40%;left:-7px;transform:rotate(90deg)}a.upgrade-box-link:hover .upgrade-link{visibility:visible;opacity:1}.color-list{margin:0;padding:0}.color-list li{float:left;display:block;margin:0 10px 0 0}.color-checkbox{position:relative}.color-checkbox span{width:44px;height:28px;display:block;border-radius:6px;border:solid 2px #fff;position:relative}.color-checkbox:hover span{border:solid 2px #8ada3b}.color-checkbox input:checked+span{border:solid 2px #8ada3b}.color-checkbox.active input+span:after{background:#d7f5ea;border-radius:10px;position:absolute;top:-10px;left:-10px;width:20px;margin:0;text-align:center;padding:0;color:#014737;content:"\f15e";font-family:dashicons;display:inline-block;line-height:1;font-weight:700;font-size:16px}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/images/folders-media.gif
ADDED
Binary file
|
assets/js/folders.js
CHANGED
@@ -25,6 +25,8 @@
|
|
25 |
var folderPropertyArray = [];
|
26 |
var folderCurrentURL = wcp_settings.page_url;
|
27 |
var foldersArray = [];
|
|
|
|
|
28 |
var listFolderString = "<li class='grid-view' data-id='__folder_id__' id='folder___folder_id__'>" +
|
29 |
"<div class='folder-item is-folder' data-id='__folder_id__'>" +
|
30 |
"<a title='__folder_name__' id='folder_view___folder_id__'" +
|
@@ -37,6 +39,7 @@
|
|
37 |
"</li>";
|
38 |
var contextOffsetX = null;
|
39 |
var contextOffsetY = null;
|
|
|
40 |
$(document).ready(function(){
|
41 |
|
42 |
foldersArray = wcp_settings.taxonomies;
|
@@ -44,6 +47,9 @@
|
|
44 |
isKeyActive = parseInt(wcp_settings.is_key_active);
|
45 |
n_o_file = parseInt(wcp_settings.folders);
|
46 |
activeRecordID = parseInt(wcp_settings.selected_taxonomy);
|
|
|
|
|
|
|
47 |
|
48 |
folderPropertyArray = wcp_settings.folder_settings;
|
49 |
|
@@ -197,18 +203,27 @@
|
|
197 |
isStickyClass = (isSticky)?true:false;
|
198 |
$(".dynamic-menu").remove();
|
199 |
$(".active-menu").removeClass("active-menu");
|
200 |
-
menuHtml = "<div class='dynamic-menu' data-id='"+$(this).closest("li").prop("id")+"'><ul>"
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
206 |
|
207 |
hasPosts = parseInt($(this).closest("a.jstree-anchor").find(".premio-folder-count").text());
|
208 |
if (wcp_settings.post_type == "attachment" && hasPosts) {
|
209 |
-
menuHtml += "<li target='_blank' class='download-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-zip-file'></i></span>
|
210 |
}
|
211 |
-
menuHtml += "<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span>
|
212 |
"</ul></div>";
|
213 |
$("body").append(menuHtml);
|
214 |
var yPosition;
|
@@ -278,16 +293,25 @@
|
|
278 |
isStickyClass = (isSticky)?true:false;
|
279 |
$(".dynamic-menu").remove();
|
280 |
$(".active-menu").removeClass("active-menu");
|
281 |
-
menuHtml = "<div class='dynamic-menu' data-id='"+$(this).closest("li").data("folder-id")+"'><ul>"
|
282 |
-
|
283 |
-
"<li class='
|
284 |
-
|
285 |
-
"<li class='
|
286 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
287 |
|
288 |
hasPosts = parseInt($(this).closest("li.jstree-node").find("h3.title:first > .total-count").text());
|
289 |
if (wcp_settings.post_type == "attachment" && hasPosts) {
|
290 |
-
menuHtml += "<li class='download-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-zip-file'></i></span>
|
291 |
}
|
292 |
menuHtml += "<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span> Delete</a></li>" +
|
293 |
"</ul></div>";
|
@@ -314,6 +338,16 @@
|
|
314 |
e.stopPropagation();
|
315 |
});
|
316 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
317 |
$(document).on("click", "body, html", function(){
|
318 |
$(".dynamic-menu").remove();
|
319 |
});
|
@@ -819,8 +853,8 @@
|
|
819 |
});
|
820 |
$(".folder-loader-ajax").addClass("active");
|
821 |
if($("#folder-posts-filter").length) {
|
822 |
-
$("#folder-posts-filter").load(folderCurrentURL + " #posts-filter", function(){
|
823 |
-
var obj = { Title: "", Url: folderCurrentURL };
|
824 |
history.pushState(obj, obj.Title, obj.Url);
|
825 |
if (wcp_settings.show_in_page == "show" && !$(".tree-structure").length) {
|
826 |
$(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>');
|
@@ -829,8 +863,8 @@
|
|
829 |
triggerInlineUpdate();
|
830 |
});
|
831 |
} else {
|
832 |
-
$("#wpbody").load(folderCurrentURL + " #wpbody-content", false, function (res) {
|
833 |
-
var obj = { Title: "", Url: folderCurrentURL };
|
834 |
history.pushState(obj, obj.Title, obj.Url);
|
835 |
if (wcp_settings.show_in_page == "show" && !$(".tree-structure").length) {
|
836 |
$(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>');
|
@@ -962,7 +996,7 @@
|
|
962 |
});
|
963 |
|
964 |
function setCustomScrollForFolder() {
|
965 |
-
|
966 |
var scrollTop = 0;
|
967 |
if($("#custom-scroll-menu").hasClass("mCustomScrollbar")) {
|
968 |
var $scrollerOuter = $( '#custom-scroll-menu' );
|
@@ -985,7 +1019,7 @@
|
|
985 |
});
|
986 |
if(scrollTop != 0) {
|
987 |
$("#custom-scroll-menu").mCustomScrollbar("scrollTo", scrollTop+"px",{scrollInertia:0});
|
988 |
-
}
|
989 |
}
|
990 |
|
991 |
/* add folder code */
|
@@ -993,8 +1027,12 @@
|
|
993 |
$(document).on("click", "#add-new-folder", function(){
|
994 |
if($("#js-tree-menu a.jstree-clicked").length) {
|
995 |
fileFolderID = $("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id");
|
|
|
|
|
|
|
996 |
} else {
|
997 |
fileFolderID = 0;
|
|
|
998 |
}
|
999 |
isItFromMedia = false;
|
1000 |
addFolder();
|
@@ -1034,6 +1072,10 @@
|
|
1034 |
parentId = 0;
|
1035 |
}
|
1036 |
|
|
|
|
|
|
|
|
|
1037 |
if(parentId == 0) {
|
1038 |
folderOrder = $("#js-tree-menu > ul > li.jstree-node").length;
|
1039 |
} else {
|
@@ -1468,9 +1510,9 @@
|
|
1468 |
$(document).on("click", ".jstree-node .jstree-icon", function(){
|
1469 |
folderID = $(this).closest("li.jstree-node").attr("id");
|
1470 |
if($("li.jstree-node[id='"+folderID+"']").hasClass("jstree-open")) {
|
1471 |
-
folderStatus = 0;
|
1472 |
-
} else {
|
1473 |
folderStatus = 1;
|
|
|
|
|
1474 |
}
|
1475 |
$(".form-loader-count").css("width","100%");
|
1476 |
nonce = getSettingForPost(folderID, 'nonce');
|
@@ -1507,6 +1549,7 @@
|
|
1507 |
/* refresh listing on click */
|
1508 |
$(document).ready(function(){
|
1509 |
$(document).on("click", "a.jstree-anchor", function(e) {
|
|
|
1510 |
e.stopPropagation();
|
1511 |
$(".un-categorised-items").removeClass("active-item");
|
1512 |
$(".header-posts a").removeClass("active-item");
|
@@ -1516,7 +1559,7 @@
|
|
1516 |
$(".sticky-folders .sticky-folder-"+activeRecordID+" a").addClass("active-item");
|
1517 |
if(!$("#media-attachment-taxonomy-filter").length) {
|
1518 |
var folderSlug = getSettingForPost(activeRecordID, 'slug');
|
1519 |
-
folderCurrentURL = wcp_settings.page_url + folderSlug;
|
1520 |
$(".form-loader-count").css("width", "100%");
|
1521 |
if($("#folder-posts-filter").length) {
|
1522 |
$("#folder-posts-filter").load(folderCurrentURL + " #posts-filter", function(){
|
@@ -1544,7 +1587,7 @@
|
|
1544 |
$("#media-attachment-taxonomy-filter").val(thisIndex);
|
1545 |
$("#media-attachment-taxonomy-filter").trigger("change");
|
1546 |
thisSlug = getSettingForPost(thisIndex, 'slug');
|
1547 |
-
folderCurrentURL = wcp_settings.page_url + thisSlug;
|
1548 |
var obj = { Title: thisSlug, Url: folderCurrentURL };
|
1549 |
history.pushState(obj, obj.Title, obj.Url);
|
1550 |
set_default_folders(thisSlug);
|
@@ -1562,7 +1605,8 @@
|
|
1562 |
$(".header-posts a").addClass("active-item");
|
1563 |
$(".jstree-clicked").removeClass("jstree-clicked");
|
1564 |
if(!$("#media-attachment-taxonomy-filter").length) {
|
1565 |
-
|
|
|
1566 |
$(".form-loader-count").css("width", "100%");
|
1567 |
if($("#folder-posts-filter").length) {
|
1568 |
$("#folder-posts-filter").load(folderCurrentURL + " #posts-filter", function(){
|
@@ -1606,7 +1650,8 @@
|
|
1606 |
$(".sticky-folders .active-item").removeClass("active-item");
|
1607 |
$(".jstree-clicked").removeClass("jstree-clicked");
|
1608 |
if(!$("#media-attachment-taxonomy-filter").length) {
|
1609 |
-
|
|
|
1610 |
$(".form-loader-count").css("width", "100%");
|
1611 |
if($("#folder-posts-filter").length) {
|
1612 |
$("#folder-posts-filter").load(folderCurrentURL + " #posts-filter", function(){
|
@@ -1690,6 +1735,7 @@
|
|
1690 |
"core": {
|
1691 |
'cache':false,
|
1692 |
"animation": 0,
|
|
|
1693 |
// "check_callback": true,
|
1694 |
check_callback: function(e, t, n, r, o) {
|
1695 |
$("*").removeClass("drag-bot").removeClass("drag-in").removeClass("drag-up");
|
@@ -1701,6 +1747,9 @@
|
|
1701 |
$("#jstree-dnd").text("Below "+$.trim($("#js-tree-menu").jstree(true).get_node(nodeId).text));
|
1702 |
break;
|
1703 |
case "i":
|
|
|
|
|
|
|
1704 |
o.origin.get_node(o.ref, !0).addClass("drag-in");
|
1705 |
nodeId = $(".drag-in").attr("id");
|
1706 |
$("#jstree-dnd").text("Inside "+$.trim($("#js-tree-menu").jstree(true).get_node(nodeId).text));
|
@@ -1756,9 +1805,12 @@
|
|
1756 |
//data.text is the new name:
|
1757 |
setDragAndDropElements();
|
1758 |
})).bind("move_node.jstree", (function(t, n) {
|
|
|
|
|
|
|
1759 |
folderMoveId = n.node.id;
|
1760 |
orderString = "";
|
1761 |
-
$(".jstree-node[id='"+folderMoveId+"']").closest("ul").children().each(function(){
|
1762 |
if($(this).attr("id") != 'undefined') {
|
1763 |
orderString += $(this).attr("id") + ",";
|
1764 |
}
|
@@ -1807,7 +1859,7 @@
|
|
1807 |
$(".folder-order").toggleClass("active");
|
1808 |
});
|
1809 |
|
1810 |
-
$(document).on("click", ".folder-sort-menu a", function(e) {
|
1811 |
e.stopPropagation();
|
1812 |
e.preventDefault();
|
1813 |
$(".form-loader-count").css("width", "100%");
|
@@ -1992,7 +2044,7 @@
|
|
1992 |
function setFolderCountAndDD() {
|
1993 |
if($("#media-attachment-taxonomy-filter").length) {
|
1994 |
$("#media-attachment-taxonomy-filter").each(function(){
|
1995 |
-
|
1996 |
var selectedDD = $(this);
|
1997 |
currentDDVal = $(this).val();
|
1998 |
selectedDD.html("<option value='all'>All Folders</option><option value='unassigned'>(Unassigned)</option>");
|
@@ -2041,7 +2093,16 @@
|
|
2041 |
}
|
2042 |
|
2043 |
$(document).ready(function(){
|
2044 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2045 |
$(document).on("click", "#doaction", function(e){
|
2046 |
if($("#bulk-action-selector-top").val() == "move_to_folder") {
|
2047 |
show_folder_popup();
|
25 |
var folderPropertyArray = [];
|
26 |
var folderCurrentURL = wcp_settings.page_url;
|
27 |
var foldersArray = [];
|
28 |
+
var hasStars;
|
29 |
+
var hasChildren;
|
30 |
var listFolderString = "<li class='grid-view' data-id='__folder_id__' id='folder___folder_id__'>" +
|
31 |
"<div class='folder-item is-folder' data-id='__folder_id__'>" +
|
32 |
"<a title='__folder_name__' id='folder_view___folder_id__'" +
|
39 |
"</li>";
|
40 |
var contextOffsetX = null;
|
41 |
var contextOffsetY = null;
|
42 |
+
var currentPage = 1;
|
43 |
$(document).ready(function(){
|
44 |
|
45 |
foldersArray = wcp_settings.taxonomies;
|
47 |
isKeyActive = parseInt(wcp_settings.is_key_active);
|
48 |
n_o_file = parseInt(wcp_settings.folders);
|
49 |
activeRecordID = parseInt(wcp_settings.selected_taxonomy);
|
50 |
+
hasStars = parseInt(wcp_settings.hasStars);
|
51 |
+
hasChildren = parseInt(wcp_settings.hasChildren);
|
52 |
+
currentPage = parseInt(wcp_settings.currentPage);
|
53 |
|
54 |
folderPropertyArray = wcp_settings.folder_settings;
|
55 |
|
203 |
isStickyClass = (isSticky)?true:false;
|
204 |
$(".dynamic-menu").remove();
|
205 |
$(".active-menu").removeClass("active-menu");
|
206 |
+
menuHtml = "<div class='dynamic-menu' data-id='"+$(this).closest("li").prop("id")+"'><ul>";
|
207 |
+
if(hasChildren) {
|
208 |
+
menuHtml += "<li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>";
|
209 |
+
} else {
|
210 |
+
menuHtml += "<li class='new-folder-pro'><a target='_blank' href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Sub-folder (Pro)</a></li>";
|
211 |
+
}
|
212 |
+
menuHtml += "<li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span>Rename</a></li>" +
|
213 |
+
"<li class='sticky-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class='sticky-pin'><i class='pfolder-pin'></i></span>Sticky Folder (Pro)</a></li>";
|
214 |
+
if(hasStars) {
|
215 |
+
menuHtml += "<li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>" + ((isHigh) ? "Remove Star" : "Add a Star") + "</a></li>";
|
216 |
+
} else {
|
217 |
+
menuHtml += "<li class='mark-folder-pro'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-star'></i></span>" + ((isHigh) ? "Remove Star (Pro)" : "Add a Star (Pro)") + "</a></li>";
|
218 |
+
}
|
219 |
+
menuHtml += "<li class='lock-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class='dashicons dashicons-lock'></span>Lock Folder (Pro)</a></li>" +
|
220 |
+
"<li class='duplicate-folder-pro'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-clone'></i></span>Duplicate folder (Pro)</a></li>";
|
221 |
|
222 |
hasPosts = parseInt($(this).closest("a.jstree-anchor").find(".premio-folder-count").text());
|
223 |
if (wcp_settings.post_type == "attachment" && hasPosts) {
|
224 |
+
menuHtml += "<li target='_blank' class='download-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-zip-file'></i></span>Download Zip (Pro)</a></li>";
|
225 |
}
|
226 |
+
menuHtml += "<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span>Delete</a></li>" +
|
227 |
"</ul></div>";
|
228 |
$("body").append(menuHtml);
|
229 |
var yPosition;
|
293 |
isStickyClass = (isSticky)?true:false;
|
294 |
$(".dynamic-menu").remove();
|
295 |
$(".active-menu").removeClass("active-menu");
|
296 |
+
menuHtml = "<div class='dynamic-menu' data-id='"+$(this).closest("li").data("folder-id")+"'><ul>";
|
297 |
+
if(hasChildren) {
|
298 |
+
menuHtml += "<li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>";
|
299 |
+
} else {
|
300 |
+
menuHtml += "<li class='new-folder-pro'><a target='_blank' href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Sub-folder (Pro)</a></li>";
|
301 |
+
}
|
302 |
+
menuHtml += "<li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span>Rename</a></li>" +
|
303 |
+
"<li class='sticky-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class='sticky-pin'><i class='pfolder-pin'></i></span>Sticky Folder (Pro)</a></li>";
|
304 |
+
if(hasStars) {
|
305 |
+
menuHtml += "<li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>" + ((isHigh) ? "Remove Star" : "Add a Star") + "</a></li>";
|
306 |
+
} else {
|
307 |
+
menuHtml += "<li class='mark-folder-pro'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-star'></i></span>" + ((isHigh) ? "Remove Star (Pro)" : "Add a Star (Pro)") + "</a></li>";
|
308 |
+
}
|
309 |
+
menuHtml += "<li class='lock-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class='dashicons dashicons-lock'></span>Lock Folder (Pro)</a></li>" +
|
310 |
+
"<li class='duplicate-folder-pro'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-clone'></i></span>Duplicate folder (Pro)</a></li>";
|
311 |
|
312 |
hasPosts = parseInt($(this).closest("li.jstree-node").find("h3.title:first > .total-count").text());
|
313 |
if (wcp_settings.post_type == "attachment" && hasPosts) {
|
314 |
+
menuHtml += "<li class='download-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-zip-file'></i></span>Download Zip (Pro)</a></li>";
|
315 |
}
|
316 |
menuHtml += "<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span> Delete</a></li>" +
|
317 |
"</ul></div>";
|
338 |
e.stopPropagation();
|
339 |
});
|
340 |
|
341 |
+
$(document).on("click", ".new-folder-pro", function(e){
|
342 |
+
e.preventDefault();
|
343 |
+
$(".dynamic-menu").remove();
|
344 |
+
$("#sub-folder-popup").show();
|
345 |
+
});
|
346 |
+
|
347 |
+
$(document).on("click", ".close-popup-button a", function(){
|
348 |
+
$(".folder-popup-form").hide();
|
349 |
+
});
|
350 |
+
|
351 |
$(document).on("click", "body, html", function(){
|
352 |
$(".dynamic-menu").remove();
|
353 |
});
|
853 |
});
|
854 |
$(".folder-loader-ajax").addClass("active");
|
855 |
if($("#folder-posts-filter").length) {
|
856 |
+
$("#folder-posts-filter").load(folderCurrentURL+"&paged="+currentPage + " #posts-filter", function(){
|
857 |
+
var obj = { Title: "", Url: folderCurrentURL+"&paged="+currentPage };
|
858 |
history.pushState(obj, obj.Title, obj.Url);
|
859 |
if (wcp_settings.show_in_page == "show" && !$(".tree-structure").length) {
|
860 |
$(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>');
|
863 |
triggerInlineUpdate();
|
864 |
});
|
865 |
} else {
|
866 |
+
$("#wpbody").load(folderCurrentURL+"&paged="+currentPage + " #wpbody-content", false, function (res) {
|
867 |
+
var obj = { Title: "", Url: folderCurrentURL+"&paged="+currentPage };
|
868 |
history.pushState(obj, obj.Title, obj.Url);
|
869 |
if (wcp_settings.show_in_page == "show" && !$(".tree-structure").length) {
|
870 |
$(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>');
|
996 |
});
|
997 |
|
998 |
function setCustomScrollForFolder() {
|
999 |
+
contentHeight = $(window).height() - $("#wpadminbar").height() - $(".sticky-wcp-custom-form").height() - 30;
|
1000 |
var scrollTop = 0;
|
1001 |
if($("#custom-scroll-menu").hasClass("mCustomScrollbar")) {
|
1002 |
var $scrollerOuter = $( '#custom-scroll-menu' );
|
1019 |
});
|
1020 |
if(scrollTop != 0) {
|
1021 |
$("#custom-scroll-menu").mCustomScrollbar("scrollTo", scrollTop+"px",{scrollInertia:0});
|
1022 |
+
}
|
1023 |
}
|
1024 |
|
1025 |
/* add folder code */
|
1027 |
$(document).on("click", "#add-new-folder", function(){
|
1028 |
if($("#js-tree-menu a.jstree-clicked").length) {
|
1029 |
fileFolderID = $("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id");
|
1030 |
+
if(!hasChildren) {
|
1031 |
+
$("#pro-notice").removeClass("hide-it");
|
1032 |
+
}
|
1033 |
} else {
|
1034 |
fileFolderID = 0;
|
1035 |
+
$("#pro-notice").addClass("hide-it");
|
1036 |
}
|
1037 |
isItFromMedia = false;
|
1038 |
addFolder();
|
1072 |
parentId = 0;
|
1073 |
}
|
1074 |
|
1075 |
+
if(!hasChildren) {
|
1076 |
+
parentId = 0;
|
1077 |
+
}
|
1078 |
+
|
1079 |
if(parentId == 0) {
|
1080 |
folderOrder = $("#js-tree-menu > ul > li.jstree-node").length;
|
1081 |
} else {
|
1510 |
$(document).on("click", ".jstree-node .jstree-icon", function(){
|
1511 |
folderID = $(this).closest("li.jstree-node").attr("id");
|
1512 |
if($("li.jstree-node[id='"+folderID+"']").hasClass("jstree-open")) {
|
|
|
|
|
1513 |
folderStatus = 1;
|
1514 |
+
} else {
|
1515 |
+
folderStatus = 0;
|
1516 |
}
|
1517 |
$(".form-loader-count").css("width","100%");
|
1518 |
nonce = getSettingForPost(folderID, 'nonce');
|
1549 |
/* refresh listing on click */
|
1550 |
$(document).ready(function(){
|
1551 |
$(document).on("click", "a.jstree-anchor", function(e) {
|
1552 |
+
currentPage = 1;
|
1553 |
e.stopPropagation();
|
1554 |
$(".un-categorised-items").removeClass("active-item");
|
1555 |
$(".header-posts a").removeClass("active-item");
|
1559 |
$(".sticky-folders .sticky-folder-"+activeRecordID+" a").addClass("active-item");
|
1560 |
if(!$("#media-attachment-taxonomy-filter").length) {
|
1561 |
var folderSlug = getSettingForPost(activeRecordID, 'slug');
|
1562 |
+
folderCurrentURL = wcp_settings.page_url + folderSlug+"&paged="+currentPage;
|
1563 |
$(".form-loader-count").css("width", "100%");
|
1564 |
if($("#folder-posts-filter").length) {
|
1565 |
$("#folder-posts-filter").load(folderCurrentURL + " #posts-filter", function(){
|
1587 |
$("#media-attachment-taxonomy-filter").val(thisIndex);
|
1588 |
$("#media-attachment-taxonomy-filter").trigger("change");
|
1589 |
thisSlug = getSettingForPost(thisIndex, 'slug');
|
1590 |
+
folderCurrentURL = wcp_settings.page_url + thisSlug+"&paged="+currentPage;
|
1591 |
var obj = { Title: thisSlug, Url: folderCurrentURL };
|
1592 |
history.pushState(obj, obj.Title, obj.Url);
|
1593 |
set_default_folders(thisSlug);
|
1605 |
$(".header-posts a").addClass("active-item");
|
1606 |
$(".jstree-clicked").removeClass("jstree-clicked");
|
1607 |
if(!$("#media-attachment-taxonomy-filter").length) {
|
1608 |
+
currentPage = 1;
|
1609 |
+
folderCurrentURL = wcp_settings.page_url+"&paged="+currentPage;
|
1610 |
$(".form-loader-count").css("width", "100%");
|
1611 |
if($("#folder-posts-filter").length) {
|
1612 |
$("#folder-posts-filter").load(folderCurrentURL + " #posts-filter", function(){
|
1650 |
$(".sticky-folders .active-item").removeClass("active-item");
|
1651 |
$(".jstree-clicked").removeClass("jstree-clicked");
|
1652 |
if(!$("#media-attachment-taxonomy-filter").length) {
|
1653 |
+
currentPage = 1;
|
1654 |
+
folderCurrentURL = wcp_settings.page_url+"-1"+"&paged="+currentPage;
|
1655 |
$(".form-loader-count").css("width", "100%");
|
1656 |
if($("#folder-posts-filter").length) {
|
1657 |
$("#folder-posts-filter").load(folderCurrentURL + " #posts-filter", function(){
|
1735 |
"core": {
|
1736 |
'cache':false,
|
1737 |
"animation": 0,
|
1738 |
+
"max_depth": hasChildren?"-1":1,
|
1739 |
// "check_callback": true,
|
1740 |
check_callback: function(e, t, n, r, o) {
|
1741 |
$("*").removeClass("drag-bot").removeClass("drag-in").removeClass("drag-up");
|
1747 |
$("#jstree-dnd").text("Below "+$.trim($("#js-tree-menu").jstree(true).get_node(nodeId).text));
|
1748 |
break;
|
1749 |
case "i":
|
1750 |
+
if(!hasChildren) {
|
1751 |
+
return false;
|
1752 |
+
}
|
1753 |
o.origin.get_node(o.ref, !0).addClass("drag-in");
|
1754 |
nodeId = $(".drag-in").attr("id");
|
1755 |
$("#jstree-dnd").text("Inside "+$.trim($("#js-tree-menu").jstree(true).get_node(nodeId).text));
|
1805 |
//data.text is the new name:
|
1806 |
setDragAndDropElements();
|
1807 |
})).bind("move_node.jstree", (function(t, n) {
|
1808 |
+
if(n.node.parent != "#") {
|
1809 |
+
jQuery("#js-tree-menu").jstree("open_node",n.node.parent);
|
1810 |
+
}
|
1811 |
folderMoveId = n.node.id;
|
1812 |
orderString = "";
|
1813 |
+
$("#js-tree-menu .jstree-node[id='"+folderMoveId+"']").closest("ul").children().each(function(){
|
1814 |
if($(this).attr("id") != 'undefined') {
|
1815 |
orderString += $(this).attr("id") + ",";
|
1816 |
}
|
1859 |
$(".folder-order").toggleClass("active");
|
1860 |
});
|
1861 |
|
1862 |
+
$(document).on("click", ".folder-sort-menu a:not(.pro-feature)", function(e) {
|
1863 |
e.stopPropagation();
|
1864 |
e.preventDefault();
|
1865 |
$(".form-loader-count").css("width", "100%");
|
2044 |
function setFolderCountAndDD() {
|
2045 |
if($("#media-attachment-taxonomy-filter").length) {
|
2046 |
$("#media-attachment-taxonomy-filter").each(function(){
|
2047 |
+
wcp_settings.terms = foldersArray;
|
2048 |
var selectedDD = $(this);
|
2049 |
currentDDVal = $(this).val();
|
2050 |
selectedDD.html("<option value='all'>All Folders</option><option value='unassigned'>(Unassigned)</option>");
|
2093 |
}
|
2094 |
|
2095 |
$(document).ready(function(){
|
2096 |
+
$(document).on("click", ".thumbnail-hover-box a", function(e){
|
2097 |
+
e.stopPropagation();
|
2098 |
+
e.stopImmediatePropagation();
|
2099 |
+
e.preventDefault();
|
2100 |
+
window.open($(this).prop("href"), "_blank");
|
2101 |
+
wp.media.frame.close();
|
2102 |
+
return false;
|
2103 |
+
});
|
2104 |
+
|
2105 |
+
/* select dropdown */
|
2106 |
$(document).on("click", "#doaction", function(e){
|
2107 |
if($("#bulk-action-selector-top").val() == "move_to_folder") {
|
2108 |
show_folder_popup();
|
assets/js/folders.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(e,t){var s,o,a,r,n="#js-tree-menu",l="",d=!1,c=!1,p=0,u=0,m=0,f=!1,h="",g=[],_=wcp_settings.page_url,v=[],w="<li class='grid-view' data-id='__folder_id__' id='folder___folder_id__'><div class='folder-item is-folder' data-id='__folder_id__'><a title='__folder_name__' id='folder_view___folder_id__'class='folder-view __append_class__ has-new-folder'data-id='__folder_id__'><span class='folder item-name'><span id='wcp_folder_text___folder_id__'class='folder-title'>__folder_name__</span></span></a></div></li>",b=null,y=null;function j(){e(".wcp-move-file:not(.ui-draggable)").draggable({revert:"invalid",containment:"document",helper:"clone",cursor:"move",start:function(t,s){e(this).closest("td").addClass("wcp-draggable"),e("body").addClass("no-hover-css")},stop:function(t,s){e(this).closest("td").removeClass("wcp-draggable"),e("body").removeClass("no-hover-css")}}),e(".wcp-move-multiple:not(.ui-draggable)").draggable({revert:"invalid",containment:"document",helper:function(t,s){return e(".selected-items").remove(),selectedItems=e("#the-list th input:checked").length,selectedItems>0?(selectedItems=0==selectedItems||1==selectedItems?"1 Item":selectedItems+" Items",e("<div class='selected-items'><span class='total-post-count'>"+selectedItems+" Selected</span></div>")):e("<div class='selected-items'><span class='total-post-count'>Select Items to move</span></div>")},start:function(t,s){e("body").addClass("no-hover-css")},cursor:"move",cursorAt:{left:0,top:0},stop:function(t,s){e(".selected-items").remove(),e("body").removeClass("no-hover-css")}}),e(".jstree-anchor:not(.ui-droppable)").droppable({accept:".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",hoverClass:"wcp-drop-hover",classes:{"ui-droppable-active":"ui-state-highlight"},drop:function(t,o){folderID=e(this).closest("li.jstree-node").attr("id"),o.draggable.hasClass("wcp-move-multiple")?e(".wp-list-table input:checked").length&&(chkStr="",e(".wp-list-table input:checked").each(function(){chkStr+=e(this).val()+","}),s=k(folderID,"nonce"),e.ajax({url:wcp_settings.ajax_url,data:"post_ids="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+folderID+"&nonce="+s+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+l,method:"post",success:function(t){"1"==(t=e.parseJSON(t)).status?C():(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})):o.draggable.hasClass("wcp-move-file")?(postID=o.draggable[0].attributes["data-id"].nodeValue,s=k(folderID,"nonce"),chkStr=postID+",",e(".wp-list-table input:checked").each(function(){e(this).val()!=postID&&(chkStr+=e(this).val()+",")}),e.ajax({url:wcp_settings.ajax_url,data:"post_ids="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+folderID+"&nonce="+s+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+l,method:"post",success:function(t){"1"==(t=e.parseJSON(t)).status?C():(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})):o.draggable.hasClass("attachment")&&(chkStr=o.draggable[0].attributes["data-id"].nodeValue,s=k(folderID,"nonce"),e(".attachments-browser li.attachment.selected").length>1&&(chkStr="",e(".attachments-browser li.attachment.selected").each(function(){chkStr+=e(this).data("id")+","})),h=chkStr,e.ajax({url:wcp_settings.ajax_url,data:"post_ids="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+folderID+"&nonce="+s+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+l,method:"post",success:function(e){C()}}))}}),e(".un-categorised-items:not(.ui-droppable)").droppable({accept:".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",hoverClass:"wcp-hover-list",classes:{"ui-droppable-active":"ui-state-highlight"},drop:function(t,o){folderID=-1,s=wcp_settings.nonce,o.draggable.hasClass("wcp-move-multiple")?e(".wp-list-table input:checked").length&&(chkStr="",e(".wp-list-table input:checked").each(function(){chkStr+=e(this).val()+","}),e.ajax({url:wcp_settings.ajax_url,data:"post_id="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_remove_post_folder&folder_id="+folderID+"&nonce="+s+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+l,method:"post",success:function(e){C()}})):o.draggable.hasClass("wcp-move-file")?(postID=o.draggable[0].attributes["data-id"].nodeValue,chkStr=postID+",",e(".wp-list-table input:checked").each(function(){postID!=e(this).val()&&(chkStr+=e(this).val()+",")}),e.ajax({url:wcp_settings.ajax_url,data:"post_id="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_remove_post_folder&folder_id="+folderID+"&nonce="+s+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+l,method:"post",success:function(e){C()}})):o.draggable.hasClass("attachment")&&(chkStr=o.draggable[0].attributes["data-id"].nodeValue,e(".attachments-browser li.attachment.selected").length>1&&(chkStr="",e(".attachments-browser li.attachment.selected").each(function(){chkStr+=e(this).data("id")+","})),h=chkStr,e.ajax({url:wcp_settings.ajax_url,data:"post_id="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_remove_post_folder&folder_id="+folderID+"&nonce="+s+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+l,method:"post",success:function(e){C()}}))}}),e(".attachments-browser li.attachment:not(.ui-draggable)").draggable({revert:"invalid",containment:"document",helper:function(t,s){return e(".selected-items").remove(),selectedItems=e(".attachments-browser li.attachment.selected").length,selectedItems=0==selectedItems||1==selectedItems?"1 Item":selectedItems+" Items",e("<div class='selected-items'><span class='total-post-count'>"+selectedItems+" Selected</span></div>")},start:function(t,s){e("body").addClass("no-hover-css")},cursor:"move",cursorAt:{left:0,top:0},stop:function(t,s){e(".selected-items").remove(),e("body").removeClass("no-hover-css")}}),e(".tree-structure .folder-item:not(.ui-droppable)").droppable({accept:".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",hoverClass:"wcp-drop-hover-list",classes:{"ui-droppable-active":"ui-state-highlight"},drop:function(t,o){e("body").removeClass("no-hover-css"),folderID=e(this).data("id"),o.draggable.hasClass("wcp-move-multiple")?(s=k(folderID,"nonce"),e(".wp-list-table input:checked").length&&(chkStr="",e(".wp-list-table input:checked").each(function(){chkStr+=e(this).val()+","}),e.ajax({url:wcp_settings.ajax_url,data:"post_ids="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+folderID+"&nonce="+s+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+l,method:"post",success:function(e){C(),R()}}))):o.draggable.hasClass("wcp-move-file")?(postID=o.draggable[0].attributes["data-id"].nodeValue,s=k(folderID,"nonce"),chkStr=postID+",",e(".wp-list-table input:checked").each(function(){e(this).val()!=postID&&(chkStr+=e(this).val()+",")}),e.ajax({url:wcp_settings.ajax_url,data:"post_ids="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+folderID+"&nonce="+s+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+l,method:"post",success:function(e){C(),R()}})):o.draggable.hasClass("attachment")&&(chkStr=o.draggable[0].attributes["data-id"].nodeValue,s=k(folderID,"nonce"),e(".attachments-browser li.attachment.selected").length>1&&(chkStr="",e(".attachments-browser li.attachment.selected").each(function(){chkStr+=e(this).data("id")+","})),e.ajax({url:wcp_settings.ajax_url,data:"post_ids="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+folderID+"&nonce="+s+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+l,method:"post",success:function(e){C(),R()}}))}}),e(".sticky-folders li a:not(.ui-droppable)").droppable({accept:".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",hoverClass:"wcp-drop-hover",classes:{"ui-droppable-active":"ui-state-highlight"},drop:function(t,o){folderID=e(this).closest("li").data("folder-id"),o.draggable.hasClass("wcp-move-multiple")?e(".wp-list-table input:checked").length&&(chkStr="",e(".wp-list-table input:checked").each(function(){chkStr+=e(this).val()+","}),s=k(folderID,"nonce"),e.ajax({url:wcp_settings.ajax_url,data:"post_ids="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+folderID+"&nonce="+s+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+l,method:"post",success:function(t){"1"==(t=e.parseJSON(t)).status?(C(),R()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})):o.draggable.hasClass("wcp-move-file")?(postID=o.draggable[0].attributes["data-id"].nodeValue,s=k(folderID,"nonce"),chkStr=postID+",",e(".wp-list-table input:checked").each(function(){e(this).val()!=postID&&(chkStr+=e(this).val()+",")}),e.ajax({url:wcp_settings.ajax_url,data:"post_ids="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+folderID+"&nonce="+s+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+l,method:"post",success:function(t){"1"==(t=e.parseJSON(t)).status?(C(),R()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})):o.draggable.hasClass("attachment")&&(chkStr=o.draggable[0].attributes["data-id"].nodeValue,s=k(folderID,"nonce"),e(".attachments-browser li.attachment.selected").length>1&&(chkStr="",e(".attachments-browser li.attachment.selected").each(function(){chkStr+=e(this).data("id")+","})),h=chkStr,e.ajax({url:wcp_settings.ajax_url,data:"post_ids="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+folderID+"&nonce="+s+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+l,method:"post",success:function(e){C(),R()}}))}}),M()}function k(e,t){if(g.length>0)for(i=0;i<g.length;i++)if(parseInt(g[i].folder_id)==parseInt(e))return g[i][t];return""}function x(e){if(g.length>0)for(i=0;i<g.length;i++)if(parseInt(g[i].folder_id)==parseInt(e))return i;return null}function C(){if(e(".media-toolbar").hasClass("media-toolbar-mode-select")&&e("ul.attachments li.selected").length&&(e("ul.attachments li.selected").trigger("click"),e(".select-mode-toggle-button").trigger("click")),""!=h&&(e("#js-tree-menu a.jstree-clicked").length>0||"-1"==l)){if(e("#media-attachment-taxonomy-filter").length){h=h.split(",");for(var t=0;t<h.length;t++)""!=h[t]&&e(".attachments-browser li[data-id='"+h[t]+"']").remove()}h=""}e("#media-attachment-taxonomy-filter").length?V(0):(e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=get_folders_default_list",method:"post",success:function(t){t=e.parseJSON(t),e(".header-posts .total-count").text(t.total_items),e(".un-categorised-items .total-count").text(t.empty_items),v=t.taxonomies,M()}}),e(".folder-loader-ajax").addClass("active"),e("#folder-posts-filter").length?e("#folder-posts-filter").load(_+" #posts-filter",function(){var t={Title:"",Url:_};history.pushState(t,t.Title,t.Url),"show"!=wcp_settings.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),S(),I()}):e("#wpbody").load(_+" #wpbody-content",!1,function(t){var s={Title:"",Url:_};history.pushState(s,s.Title,s.Url),"show"!=wcp_settings.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),S()}))}function I(){S(),e(".form-loader-count").css("width","0"),"object"==typeof inlineEditPost&&(inlineEditPost.init(),e("#the-list").on("click",".editinline",function(){e(this).attr("aria-expanded","true"),inlineEditPost.edit(this)}),e(document).on("click",".inline-edit-save .save",function(){var t=e(this).closest("tr").attr("id");t=(t=t.replace("edit-","")).replace("post-",""),inlineEditPost.save(t)}),e(document).on("click",".inline-edit-save .cancel",function(){var t=e(this).closest("tr").attr("id");t=(t=t.replace("edit-","")).replace("post-",""),inlineEditPost.revert(t)})),"attachment"==wcp_settings.post_type&&(e(".move-to-folder-top").length||e("#bulk-action-selector-top").append("<option class='move-to-folder-top' value='move_to_folder'>Move to Folder</option>"),e(".move-to-folder-bottom").length||e("#bulk-action-selector-bottom").append("<option class='move-to-folder-bottom' value='move_to_folder'>Move to Folder</option>"))}function S(){if(g.length&&e("li.jstree-node").each(function(){folderPostId=x(e(this).attr("id")),null!=folderPostId&&(1==g[folderPostId].is_high?e(this).addClass("is-high"):e(this).removeClass("is-high"),1==g[folderPostId].is_sticky?e(this).addClass("is-sticky"):e(this).removeClass("is-sticky"))}),folderId=0,e(".tree-structure ul").html(""),folderStatus=!0,e(".jstree-clicked").length&&(folderID=e(".jstree-clicked").closest(".jstree-node").attr("id"),e(".jstree-node[id='"+folderID+"'] > ul.jstree-children > li.jstree-node").length?(folderStatus=!1,e(".jstree-node[id='"+folderID+"'] > ul.jstree-children > li.jstree-node").each(function(){fID=e(this).attr("id"),fName=e.trim(e("#js-tree-menu").jstree(!0).get_node(fID).text),liHtml=w.replace(/__folder_id__/g,fID),liHtml=liHtml.replace(/__folder_name__/g,fName),selectedClass=e(this).hasClass("is-high")?"is-high":"",liHtml=liHtml.replace(/__append_class__/g,selectedClass),e(".tree-structure ul").append(liHtml)})):e(".jstree-node[id='"+folderID+"']").closest("ul").hasClass("jstree-container-ul")||(folderStatus=!1)),folderStatus&&e("#js-tree-menu > ul > li.jstree-node").each(function(){fID=e(this).attr("id"),fName=e.trim(e("#js-tree-menu").jstree(!0).get_node(fID).text),liHtml=w.replace(/__folder_id__/g,fID),liHtml=liHtml.replace(/__folder_name__/g,fName),selectedClass=e(this).hasClass("is-high")?"is-high":"",liHtml=liHtml.replace(/__append_class__/g,selectedClass),e(".tree-structure ul").append(liHtml)}),J(),"attachment"==wcp_settings.post_type&&(e(".move-to-folder-top").length||e("#bulk-action-selector-top").append("<option class='move-to-folder-top' value='move_to_folder'>Move to Folder</option>"),e(".move-to-folder-bottom").length||e("#bulk-action-selector-bottom").append("<option class='move-to-folder-bottom' value='move_to_folder'>Move to Folder</option>")),e(".sticky-folders .active-item").removeClass("active-item"),e("#js-tree-menu li.jstree-node.active-item").length){var t=e("#js-tree-menu li.jstree-node.active-item").data("folder-id");e(".sticky-folders .sticky-folder-"+t+" a").addClass("active-item")}j()}function D(){S()}function P(){if(0==o&&a>=10)return e("#folder-limitation-message").html("You've reached the 10 folder limitation!"),e("#no-more-folder-credit").show(),!1;e("#add-update-folder-title").text("Add a new folder"),e("#save-folder-data").text("Submit"),e(".folder-form-errors").removeClass("active"),e("#add-update-folder-name").val(""),c&&(p=u,e("#add-update-folder-name").val(e.trim(e("#js-tree-menu").jstree(!0).get_node(u).text)+" #2"),u=e("#"+u+"_anchor").closest(".jstree-node").parent().parent().hasClass("jstree-node")?e("#"+u+"_anchor").closest(".jstree-node").parent().parent().attr("id"):0),e("#add-update-folder").removeClass("disabled"),e("#add-update-folder").show(),e("#add-update-folder-name").focus(),e(".dynamic-menu").remove()}function T(){folderName=e.trim(e("#js-tree-menu").jstree(!0).get_node(u).text),parentID=e("#wcp_folder_"+u).closest("li.jstree-node").data("folder-id"),parentID==t&&(parentID=0),e("#update-folder-data").text("Submit"),e(".folder-form-errors").removeClass("active"),e("#update-folder-item-name").val(folderName),e("#update-folder-item").removeClass("disabled"),e("#update-folder-item").show(),e("#update-folder-item-name").focus(),e(".dynamic-menu").remove()}function N(t){var s="Are you sure you want to delete the selected folder?",o="Items in the folder will not be deleted.";if(f=!1,1==t&&e("#folder-hide-show-checkbox").is(":checked")){if(f=!0,0==e("#js-tree-menu input.checkbox:checked").length)return e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html("Please select at least one folder to delete"),void e("#error-folder-popup").show();e("#js-tree-menu input.checkbox:checked").length>1&&(s="Are you sure you want to delete the selected folders?",o="Items in the selected folders will not be deleted.")}e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#remove-folder-item").text("Yes, Delete it!"),e("#remove-folder-message").text(s),e("#remove-folder-notice").text(o),e("#confirm-remove-folder").show(),e("#remove-folder-item").focus()}function H(){e(n).jstree({core:{cache:!1,animation:0,check_callback:function(t,s,o,a,r){if(e("*").removeClass("drag-bot").removeClass("drag-in").removeClass("drag-up"),("move_node"===t||"copy_node"===t)&&r&&r.dnd)switch(r.pos){case"a":r.origin.get_node(r.ref,!0).addClass("drag-bot"),nodeId=e(".drag-bot").attr("id"),e("#jstree-dnd").text("Below "+e.trim(e("#js-tree-menu").jstree(!0).get_node(nodeId).text));break;case"i":r.origin.get_node(r.ref,!0).addClass("drag-in"),nodeId=e(".drag-in").attr("id"),e("#jstree-dnd").text("Inside "+e.trim(e("#js-tree-menu").jstree(!0).get_node(nodeId).text));break;case"b":r.origin.get_node(r.ref,!0).addClass("drag-up"),nodeId=e(".drag-up").attr("id"),e("#jstree-dnd").text("Above "+e.trim(e("#js-tree-menu").jstree(!0).get_node(nodeId).text));break;default:e("#jstree-dnd").text(e("#jstree-dnd").data("txt"))}return!0}},data:{cache:!1},select_node:!1,search:{show_only_matches:!0,case_sensitive:!1,fuzzy:!1},plugins:["dnd","search","contextmenu"],contextmenu:{select_node:0,show_at_node:0,items:function(){return{}}}}).bind("ready.jstree",function(){e("#js-tree-menu .jstree-node").each(function(){var t=parseInt(e(this).data("count"));t>0&&e(".jstree-node[id='"+e(this).attr("id")+"'] > a span.premio-folder-count").text(t)}),""!=l&&0!=l&&e(".jstree-node[id='"+l+"']").length&&(e("#js-tree-menu").jstree("select_node",l),e(".sticky-folders .sticky-folder-"+l+" a").length&&e(".sticky-folders .sticky-folder-"+l+" a").addClass("active-item")),e(".ajax-preloader").hide(),e(".js-tree-data").show(),A(),e(".sticky-folders ul > li").length>0&&e(".sticky-folders").addClass("active"),S(),j()}).bind("after_open.jstree",function(){j()}).bind("open_all.jstree",function(){j()}).bind("create_node.jstree",function(){j()}).bind("delete_node.jstree",function(){j()}).bind("close_all.jstree",function(){j()}).bind("after_close.jstree",function(){j()}).bind("move_node.jstree",function(t,s){folderMoveId=s.node.id,orderString="",e(".jstree-node[id='"+folderMoveId+"']").closest("ul").children().each(function(){"undefined"!=e(this).attr("id")&&(orderString+=e(this).attr("id")+",")}),e("#"+folderMoveId+"_anchor").closest(".jstree-node").parent().parent().hasClass("jstree-node")?parentID=e("#"+folderMoveId+"_anchor").closest(".jstree-node").parent().parent().attr("id"):parentID=0,""!=orderString&&(e(".form-loader-count").css("width","100%"),e.ajax({url:wcp_settings.ajax_url,data:"term_ids="+orderString+"&action=wcp_save_folder_order&type="+wcp_settings.post_type+"&nonce="+wcp_settings.nonce+"&term_id="+folderMoveId+"&parent_id="+parentID,method:"post",success:function(t){"1"==(t=e.parseJSON(t)).status?(e("#wcp_folder_parent").html(t.options),e(".form-loader-count").css("width","0"),C(),R(),M(),j()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show(),window.location.reload(!0))}}))})}function U(){var t=e.trim(e("#folder-search").val());e("#js-tree-menu").jstree("search",t)}function O(t){e.ajax({url:wcp_settings.ajax_url,type:"post",data:"action=save_folder_last_status&post_type="+wcp_settings.post_type+"&post_id="+t+"&nonce="+wcp_settings.nonce,cache:!1,async:!1,success:function(){}})}function z(){setTimeout(function(){if(currentStatus=!0,e("#js-tree-menu .jstree-node.jstree-leaf").length==e("#js-tree-menu .jstree-node").length)e("#expand-collapse-list").removeClass("all-open"),e("#expand-collapse-list").attr("data-folder-tooltip","Expand");else{var t=e("#js-tree-menu .jstree-node.jstree-closed").length+e("#js-tree-menu .jstree-node.jstree-open").length;e("#js-tree-menu .jstree-node.jstree-closed").length==t?(e("#expand-collapse-list").removeClass("all-open"),e("#expand-collapse-list").attr("data-folder-tooltip","Expand")):(e("#expand-collapse-list").addClass("all-open"),e("#expand-collapse-list").attr("data-folder-tooltip","Collapse"))}},500),j()}function J(){0==e(".tree-structure-content .tree-structure li").length?e(".tree-structure-content").hide():(e(".tree-structure-content").show(),oldHeight=e(".tree-structure-content .tree-structure").height(),e(".tree-structure-content .tree-structure").height("auto"),e(".tree-structure-content .tree-structure").height()>56?e(".folders-toggle-button").show():e(".folders-toggle-button").hide(),newHeight=e(".tree-structure-content .tree-structure").height(),e(".tree-structure-content .tree-structure").attr("data-height",newHeight),e(".tree-structure-content").hasClass("active")?(e(".tree-structure-content .tree-structure").height(newHeight),e(".tree-structure-content .tree-structure").attr("data-height",newHeight)):e(".tree-structure-content .tree-structure").height(oldHeight))}function R(){e(".folder-loader-ajax").addClass("active"),e(".folder-loader-ajax img").removeClass("active"),e(".folder-loader-ajax svg#successAnimation").addClass("active").addClass("animated"),setTimeout(function(){e(".folder-loader-ajax").removeClass("active"),e(".folder-loader-ajax img").addClass("active"),e(".folder-loader-ajax svg#successAnimation").removeClass("active").removeClass("animated")},2e3)}function A(){e(".sticky-folders > ul").html("");var t="";if(e("#js-tree-menu li.jstree-node.is-sticky").each(function(){var s=e(this).attr("id"),o=e.trim(e("#js-tree-menu").jstree(!0).get_node(s).text),a=e("li.jstree-node[id='"+s+"'] > a span.premio-folder-count").text(),r=e("li.jstree-node[id='"+s+"']").hasClass("is-high")?" is-high ":"";t+="<li data-folder-id='"+s+"' class='sticky-fldr "+r+" sticky-folder-"+s+"'><a href='javascript:;'><span class='folder-title'>"+o+"</span><span class='folder-actions'><span class='update-inline-record'><i class='pfolder-edit-folder'></i></span><span class='star-icon'><i class='pfolder-star'></i></span><span class='premio-folder-count'>"+a+"</span></span></a></li>"}),e(".sticky-folders > ul").html(t),e(".jstree-anchor.jstree-clicked").length){var s=e(".jstree-anchor.jstree-clicked").closest("li.jstree-node").attr("id");e(".sticky-folders .sticky-folder-"+s+" a").addClass("active-item")}e(".sticky-folders > ul > li").length>0?e(".sticky-folders").addClass("active"):e(".sticky-folders").removeClass("active")}function M(){if(e("#media-attachment-taxonomy-filter").length&&(e("#media-attachment-taxonomy-filter").each(function(){folders_media_options.terms=v;var t=e(this);currentDDVal=e(this).val(),t.html("<option value='all'>All Folders</option><option value='unassigned'>(Unassigned)</option>"),lastFolderData=v;for(var s=0;s<v.length;s++)t.append("<option value='"+v[s].term_id+"'>"+v[s].name+" ("+v[s].trash_count+")</option>");t.val(currentDDVal).trigger("change")}),e("select.folder_for_media").length)){var t=e("select.folder_for_media").val();e("select.folder_for_media option:not(:first-child):not(:last-child)").remove();for(var s=0;s<v.length;s++)e("select.folder_for_media option:last-child").before("<option value='"+v[s].term_id+"'>"+v[s].name+"</option>");""!=t&&e(".folder_for_media").val(t)}for(e("span.premio-folder-count").text(""),e(".folder-count").text(""),s=0;s<v.length;s++)0!=parseInt(v[s].trash_count)&&(e(".jstree-node[id='"+v[s].term_id+"'] > a.jstree-anchor span.premio-folder-count").text(v[s].trash_count),e(".sticky-folder-"+v[s].term_id+" .premio-folder-count").text(v[s].trash_count));if(e(".media-select-folder").length){for(e(".media-select-folder").html("<option value=''>Select Folder</option><option value='-1'>(Unassigned)</option>"),s=0;s<v.length;s++)e(".media-select-folder").append("<option value='"+v[s].term_id+"'>"+v[s].name+" ("+v[s].trash_count+")</option>");e(".media-select-folder").val("")}""!=l&&e("#wcp_folder_"+l).addClass("active-item"),d&&(e("#title_"+u).trigger("click"),d=!1)}function E(){e("#bulk-action-selector-top, #bulk-action-selector-bottom").val("-1"),0==e(".wp-list-table tbody input[type='checkbox']:checked").length?alert("Please select items to move in folder"):(e("#bulk-move-folder").show(),e("#bulk-select").html("<option value=''>Loading...</option>"),e(".move-to-folder").attr("disabled",!0),e("#move-to-folder").prop("disabled",!0),e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_get_default_list&active_id="+l,method:"post",success:function(t){if(t=e.parseJSON(t),e("#bulk-select").html("<option value=''>Select Folder</option><option value='-1'>(Unassigned)</option>"),e(".move-to-folder").prop("disabled",!1),e("#move-to-folder").prop("disabled",!1),1==t.status){var s=t.taxonomies;for(i=0;i<s.length;i++)e("#bulk-select").append("<option value='"+s[i].term_id+"'>"+s[i].name+"</option>")}}}))}if(e(document).ready(function(){v=wcp_settings.taxonomies,o=parseInt(wcp_settings.is_key_active),a=parseInt(wcp_settings.folders),l=parseInt(wcp_settings.selected_taxonomy),g=wcp_settings.folder_settings,H();var r="1"==wcp_settings.isRTL||1==wcp_settings.isRTL?"w":"e";e(".wcp-content").resizable({resizeHeight:!1,handles:r,minWidth:100,maxWidth:500,resize:function(t,s){var o=s.size.width;for(o<=275?e(".plugin-button").addClass("d-block"):e(".plugin-button").removeClass("d-block"),o<=225&&(o=225),"1"==wcp_settings.isRTL?(e("#wpcontent").css("padding-right",o+20+"px"),e("#wpcontent").css("padding-left","0px")):e("#wpcontent").css("padding-left",o+20+"px"),newWidth=o-40,cssString="",classString="",i=0;i<=15;i++)classString+=" .space > .jstree-node >",currentWidth=newWidth-(13+20*i),cssString+="#js-tree-menu > "+classString+" .title { width: "+currentWidth+"px !important; } ",cssString+="#js-tree-menu > "+classString+" .dynamic-menu { left: "+(currentWidth-190)+"px !important; } ";e("#wcp-custom-style").html("<style>"+cssString+"</style>"),s.size.width<=185?(folderStatus="hide",e(".wcp-hide-show-buttons .toggle-buttons.show-folders").addClass("active"),e(".wcp-hide-show-buttons .toggle-buttons.hide-folders").removeClass("active"),e("#wcp-content").addClass("hide-folders-area"),"1"==wcp_settings.isRTL?(e("#wpcontent").css("padding-right","20px"),e("#wpcontent").css("padding-left","0px")):e("#wpcontent").css("padding-left","20px")):e("#wcp-content").hasClass("hide-folders-area")&&(folderStatus="show",e(".wcp-hide-show-buttons .toggle-buttons.show-folders").removeClass("active"),e(".wcp-hide-show-buttons .toggle-buttons.hide-folders").addClass("active"),e("#wcp-content").addClass("no-transition"),e("#wcp-content").removeClass("hide-folders-area"),"1"==wcp_settings.isRTL?(e("#wpcontent").css("padding-right",parseInt(wcp_settings.folder_width)+20+"px"),e("#wpcontent").css("padding-left","0px")):e("#wpcontent").css("padding-left",parseInt(wcp_settings.folder_width)+20+"px"),setTimeout(function(){e("#wcp-content").removeClass("no-transition")},250))},stop:function(t,o){var a=o.size.width;o.size.width<=275?e(".plugin-button").addClass("d-block"):e(".plugin-button").removeClass("d-block"),a<=225&&(a=225),o.size.width<=185?(folderStatus="hide",e(".wcp-hide-show-buttons .toggle-buttons.show-folders").addClass("active"),e(".wcp-hide-show-buttons .toggle-buttons.hide-folders").removeClass("active"),e("#wcp-content").addClass("hide-folders-area"),"1"==wcp_settings.isRTL?(e("#wpcontent").css("padding-right","20px"),e("#wpcontent").css("padding-left","0px")):e("#wpcontent").css("padding-left","20px"),e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_change_folder_display_status&status="+folderStatus+"&nonce="+s,method:"post",success:function(e){}})):e("#wcp-content").hasClass("hide-folders-area")&&(folderStatus="show",e(".wcp-hide-show-buttons .toggle-buttons.show-folders").removeClass("active"),e(".wcp-hide-show-buttons .toggle-buttons.hide-folders").addClass("active"),e("#wcp-content").addClass("no-transition"),e("#wcp-content").removeClass("hide-folders-area"),"1"==wcp_settings.isRTL?(e("#wpcontent").css("padding-right",parseInt(wcp_settings.folder_width)+20+"px"),e("#wpcontent").css("padding-left","0px")):e("#wpcontent").css("padding-left",parseInt(wcp_settings.folder_width)+20+"px"),setTimeout(function(){e("#wcp-content").removeClass("no-transition")},250)),s=wcp_settings.nonce,wcp_settings.folder_width=o.size.width,e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_change_post_width&width="+a+"&nonce="+s,method:"post",success:function(e){}}),o.size.width<=225&&(e(".wcp-content").width(225),wcp_settings.folder_width=225)}}),e(document).on("contextmenu",".jstree-anchor",function(t){return b=t.pageX,y=t.pageY,e(this).find("span.folder-inline-edit").trigger("click"),!1}),e(document).on("click",".folder-actions span.folder-inline-edit",function(s){var o;(s.stopImmediatePropagation(),s.stopPropagation(),0!=wcp_settings.can_manage_folder)&&(isHigh=e(this).closest("li.jstree-node").hasClass("is-high"),isSticky=e(this).closest("li.jstree-node").hasClass("is-sticky"),isStickyClass=!!isSticky,e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),menuHtml="<div class='dynamic-menu' data-id='"+e(this).closest("li").prop("id")+"'><ul><li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span> New Folder</a></li><li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span> Rename</a></li><li class='sticky-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class='sticky-pin'><i class='pfolder-pin'></i></span> Sticky Folder (Pro)</a></li><li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>"+(isHigh?" Remove Star":"Add a Star")+"</a></li><li class='duplicate-folder'><a href='javascript:;'><span class=''><i class='pfolder-clone'></i></span> Duplicate folder</a></li>",hasPosts=parseInt(e(this).closest("a.jstree-anchor").find(".premio-folder-count").text()),"attachment"==wcp_settings.post_type&&hasPosts&&(menuHtml+="<li target='_blank' class='download-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-zip-file'></i></span> Download Zip (Pro)</a></li>"),menuHtml+="<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span> Delete</a></li></ul></div>",e("body").append(menuHtml),s.pageX==t||s.pageY==t?(e(".dynamic-menu").css("left",b),e(".dynamic-menu").css("top",y-10),o=y):(e(".dynamic-menu").css("left",s.pageX),e(".dynamic-menu").css("top",s.pageY),o=s.pageY),e(this).parents("li.jstree-node").addClass("active-menu"),o+e(".dynamic-menu").height()>e(window).height()&&e(".dynamic-menu").css("margin-top",e(window).height()-(o+e(".dynamic-menu").height())))}),e(document).on("click",".sticky-folders .sticky-fldr > a",function(t){t.stopPropagation();var s=e(this).closest("li").data("folder-id");e(".jstree-node[id='"+s+"']").length&&(e(".jstree-clicked").removeClass("jstree-clicked"),e(".active-item").removeClass("active-item"),e("#js-tree-menu").jstree("select_node",l),e(".jstree-node[id='"+s+"'] > a.jstree-anchor").trigger("click"),e(".jstree-node[id='"+s+"'] > a.jstree-anchor").addClass("jstree-clicked"),e(".sticky-folders .sticky-folder-"+s+" a").addClass("active-item"))}),e(document).on("contextmenu",".sticky-folders li .sticky-fldr > a",function(t){return e(this).find("span.update-inline-record").trigger("click"),!1}),e(document).on("click",".tree-structure a",function(t){t.stopPropagation();var s=e(this).data("id");e(".jstree-node[id='"+s+"']").length&&(e(".jstree-clicked").removeClass("jstree-clicked"),e(".active-item").removeClass("active-item"),e("#js-tree-menu").jstree("select_node",l),e(".jstree-node[id='"+s+"'] > a.jstree-anchor").trigger("click"),e(".jstree-node[id='"+s+"'] > a.jstree-anchor").addClass("jstree-clicked"),e(".sticky-folders .sticky-folder-"+s+" a").addClass("active-item"))}),e(document).on("click",".update-inline-record",function(s){var o;(s.stopImmediatePropagation(),s.stopPropagation(),0!=wcp_settings.can_manage_folder)&&(isHigh=e(this).closest("li.sticky-fldr").hasClass("is-high"),isSticky=e(this).closest("li.sticky-fldr").hasClass("is-sticky"),isStickyClass=!!isSticky,e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),menuHtml="<div class='dynamic-menu' data-id='"+e(this).closest("li").data("folder-id")+"'><ul><li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span> New Folder</a></li><li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span> Rename</a></li><li class='sticky-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class='sticky-pin'><i class='pfolder-pin'></i></span>Sticky Folder (Pro)</a></li><li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>"+(isHigh?" Remove Star":"Add a Star")+"</a></li><li class='duplicate-folder'><a href='javascript:;'><span class=''><i class='pfolder-clone'></i></span> Duplicate folder</a></li>",hasPosts=parseInt(e(this).closest("li.jstree-node").find("h3.title:first > .total-count").text()),"attachment"==wcp_settings.post_type&&hasPosts&&(menuHtml+="<li class='download-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-zip-file'></i></span> Download Zip (Pro)</a></li>"),menuHtml+="<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span> Delete</a></li></ul></div>",e("body").append(menuHtml),s.pageX==t||s.pageY==t?(e(".dynamic-menu").css("left",b),e(".dynamic-menu").css("top",y-10),o=y):(e(".dynamic-menu").css("left",s.pageX),e(".dynamic-menu").css("top",s.pageY),o=s.pageY),o+e(".dynamic-menu").height()>e(window).height()&&e(".dynamic-menu").css("margin-top",e(window).height()-(o+e(".dynamic-menu").height())))}),e(document).on("click",".dynamic-menu",function(e){e.stopImmediatePropagation(),e.stopPropagation()}),e(document).on("click","body, html",function(){e(".dynamic-menu").remove()}),e(".wcp-hide-show-buttons .toggle-buttons").click(function(){var t="show";e(this).hasClass("hide-folders")&&(t="hide"),e(".wcp-hide-show-buttons .toggle-buttons").toggleClass("active"),s=wcp_settings.nonce,"show"==t?(e("#wcp-content").addClass("no-transition"),e("#wcp-content").removeClass("hide-folders-area"),"1"==wcp_settings.isRTL?(e("#wpcontent").css("padding-right",parseInt(wcp_settings.folder_width)+20+"px"),e("#wpcontent").css("padding-left","0px")):e("#wpcontent").css("padding-left",parseInt(wcp_settings.folder_width)+20+"px"),setTimeout(function(){e("#wcp-content").removeClass("no-transition")},250)):(e("#wcp-content").addClass("hide-folders-area"),"1"==wcp_settings.isRTL?(e("#wpcontent").css("padding-right","20px"),e("#wpcontent").css("padding-left","0px")):e("#wpcontent").css("padding-left","20px")),e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_change_folder_display_status&status="+t+"&nonce="+s,method:"post",success:function(e){}})}),j(),e(document).ajaxComplete(function(e,s,o){o.data!=t&&""!=o.data&&-1!=o.data.indexOf("action=query-attachments")&&j()})}),e(window).on("resize",function(){}),e(window).scroll(function(){}),e(document).ready(function(){e(document).on("click","#add-new-folder",function(){u=e("#js-tree-menu a.jstree-clicked").length?e("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id"):0,d=!1,P()}),e(document).on("click",".new-folder",function(){u=e(this).closest(".dynamic-menu").data("id"),d=!1,P()}),e(document).on("click",".duplicate-folder",function(t){t.stopPropagation(),u=e(this).closest(".dynamic-menu").data("id"),e(".dynamic-menu").remove(),d=!1,c=!0,P(),D()}),e(document).on("submit","#save-folder-form",function(t){if(t.stopPropagation(),t.preventDefault(),folderNameDynamic=e.trim(e("#add-update-folder-name").val()),""==e.trim(folderNameDynamic))e(".folder-form-errors").addClass("active"),e("#add-update-folder-name").focus();else{e("#save-folder-data").html('<span class="dashicons dashicons-update"></span>'),e("#add-update-folder").addClass("disabled");var s=u;d&&(s=0),m=0==s?e("#js-tree-menu > ul > li.jstree-node").length:e("#js-tree-menu > ul > li.jstree-node[id='"+s+"'] > ul.jstree-children > li").length+1,e.ajax({url:wcp_settings.ajax_url,data:{parent_id:s,type:wcp_settings.post_type,action:"wcp_add_new_folder",nonce:wcp_settings.nonce,term_id:s,order:m,name:folderNameDynamic,is_duplicate:c,duplicate_from:p},method:"post",success:function(t){if(result=e.parseJSON(t),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),-1==result.status)e("#no-more-folder-credit").show();else if("1"==result.status){if(o=parseInt(result.is_key_active),a=parseInt(result.folders),e("#current-folder").text(a),e("#ttl-fldr").text(10),z(),D(),result.data.length)for(var s=0;s<result.data.length;s++){var r={folder_id:result.data[s].term_id,folder_count:0,is_sticky:result.data[s].is_sticky,is_high:result.data[s].is_high,nonce:result.data[s].nonce,slug:result.data[s].slug,is_deleted:0};g.push(r),e("#js-tree-menu").jstree().create_node(result.parent_id,{id:result.data[s].term_id,text:" "+result.data[s].title},"last",function(){e(".jstree-node[id='"+result.data[s].term_id+"']").attr("data-nonce",result.data[s].nonce),e(".jstree-node[id='"+result.data[s].term_id+"']").attr("data-slug",result.data[s].slug)})}R(),A(),e("#media-attachment-taxonomy-filter").length&&(u=result.term_id,V(0))}else e("#error-folder-popup-message").html(result.message),e("#error-folder-popup").show()}})}return!1})}),e(document).ready(function(){e("#inline-update").click(function(){e("#js-tree-menu a.jstree-clicked").length&&(u=e("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id"),T())}),e(document).on("click",".rename-folder",function(t){t.stopPropagation(),u=e(this).closest(".dynamic-menu").data("id"),T(),e(".dynamic-menu").remove()}),e(document).on("click",".form-cancel-btn",function(){e(".folder-popup-form").hide()}),e(document).on("click",".folder-popup-form",function(t){e(".folder-popup-form").hide()}),e(document).on("click",".popup-form-content",function(e){e.stopPropagation()}),e(document).on("submit","#update-folder-form",function(o){return o.stopPropagation(),o.preventDefault(),folderNameDynamic=e("#update-folder-item-name").val(),""==e.trim(folderNameDynamic)?(e(".folder-form-errors").addClass("active"),e("#update-folder-item-name").focus()):(e("#update-folder-data").html('<span class="dashicons dashicons-update"></span>'),e("#update-folder-item").addClass("disabled"),s=k(u,"nonce"),parentID=e(".jstree-node[id='"+u+"']").closest("li.jstree-node").attr("id"),parentID==t&&(parentID=0),e.ajax({url:wcp_settings.ajax_url,data:{parent_id:parentID,type:wcp_settings.post_type,action:"wcp_update_folder",nonce:s,term_id:u,order:m,name:folderNameDynamic},method:"post",success:function(t){result=e.parseJSON(t),"1"==result.status?(e("#js-tree-menu").jstree("rename_node",result.id," "+result.term_title),folderPostId=x(result.id),null!=folderPostId&&(g[folderPostId].nonce=result.nonce,g[folderPostId].slug=result.slug),D(),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),R(),e("#media-attachment-taxonomy-filter").length&&V(0)):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(result.message),e("#error-folder-popup").show())}})),!1})}),e(document).ready(function(){e("#inline-remove").click(function(){e("#js-tree-menu a.jstree-clicked").length?(u=e("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id"),N(1),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu")):e("#folder-hide-show-checkbox").is(":checked")&&(e(".dynamic-menu").remove(),N(1))}),e(document).on("click","#folder-hide-show-checkbox",function(){e(this).is(":checked")?e("#js-tree-menu").addClass("show-folder-checkbox"):(e("#js-tree-menu input.checkbox").attr("checked",!1),e("#js-tree-menu").removeClass("show-folder-checkbox"))}),e(document).on("click",".folder-checkbox, .input-checkbox",function(e){e.stopImmediatePropagation(),e.stopPropagation()}),e(document).on("click",".remove-folder",function(){folderID=e(this).closest("li.jstree-node").data("id"),u=e(this).closest(".dynamic-menu").data("id"),N(0),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu")}),e(document).on("click","#remove-folder-item",function(t){t.stopPropagation(),e(".folder-popup-form").addClass("disabled"),e("#remove-folder-item").html('<span class="dashicons dashicons-update"></span>'),s=k(u,"nonce"),f?function(){if(e("#folder-hide-show-checkbox").is(":checked")&&e("#js-tree-menu input.checkbox:checked").length>0){var t="";e("#js-tree-menu input.checkbox:checked").each(function(){t+=e(this).closest("li.jstree-node").attr("id")+",",e(this).closest("li.jstree-node").hasClass("jstree-clicked")&&!0}),e(".form-loader-count").css("width","100%"),e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_remove_muliple_folder&term_id="+t+"&nonce="+wcp_settings.nonce,method:"post",success:function(t){if(t=e.parseJSON(t),e(".form-loader-count").css("width","0px"),"1"==t.status){for(o=parseInt(t.is_key_active),a=parseInt(t.folders),e("#current-folder").text(a),i=0;i<t.term_ids.length;i++)e("#js-tree-menu").jstree().delete_node(t.term_ids[i]);e("#ttl-fldr").text(10),R(),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),C(),A(),R(),e("#js-tree-menu li.jstree-node").removeClass("has-sub-tree"),e("#js-tree-menu li.jstree-node").each(function(){e(this).find("ul.ui-sortable li").length?e(this).addClass("has-sub-tree"):e(this).removeClass("active")}),e("#wcp_folder_"+l).length||(e(".header-posts a").trigger("click"),l=0)}else window.location.reload();e("#folder-hide-show-checkbox").attr("checked",!1),e("#js-tree-menu input.checkbox").attr("checked",!1),e("#js-tree-menu").removeClass("show-folder-checkbox")}})}}():e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_remove_folder&term_id="+u+"&nonce="+s,method:"post",success:function(t){"1"==(t=e.parseJSON(t)).status?(e("#js-tree-menu").jstree().delete_node(u),o=parseInt(t.is_key_active),a=parseInt(t.folders),e("#current-folder").text(a),e("#ttl-fldr").text(10),e(".sticky-folders .sticky-folder-"+u).remove(),D(),R(),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),C(),A(),l==u&&e(".header-posts").trigger("click")):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})})}),e(document).ready(function(){e(document).on("click",".mark-folder",function(t){t.stopPropagation(),folderID=e(this).closest(".dynamic-menu").data("id"),s=k(folderID,"nonce"),e(".form-loader-count").css("width","100%"),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),e.ajax({url:wcp_settings.ajax_url,data:"term_id="+folderID+"&type="+wcp_settings.post_type+"&action=wcp_mark_un_mark_folder&nonce="+s,method:"post",cache:!1,success:function(t){t=e.parseJSON(t),e(".form-loader-count").css("width","0%"),"1"==t.status?(folderPostId=x(t.id),"1"==t.marked?(e("li.jstree-node[id='"+t.id+"']").addClass("is-high"),e(".sticky-folder-"+t.id).addClass("is-high"),null!=folderPostId&&(g[folderPostId].is_high=1)):(e("li.jstree-node[id='"+t.id+"']").removeClass("is-high"),e(".sticky-folder-"+t.id).removeClass("is-high"),null!=folderPostId&&(g[folderPostId].is_high=0)),D(),R()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})})}),e(document).ready(function(){e(document).on("click",".jstree-node .jstree-icon",function(){folderID=e(this).closest("li.jstree-node").attr("id"),e("li.jstree-node[id='"+folderID+"']").hasClass("jstree-open")?folderStatus=0:folderStatus=1,e(".form-loader-count").css("width","100%"),s=k(folderID,"nonce"),z(),e.ajax({url:wcp_settings.ajax_url,data:"is_active="+folderStatus+"&action=save_wcp_folder_state&term_id="+folderID+"&nonce="+s,method:"post",success:function(t){e(".form-loader-count").css("width","0"),"0"==(t=e.parseJSON(t)).status||(e("#wcp_folder_"+folderID).hasClass("active")?(e("#wcp_folder_"+folderID).removeClass("active"),e("#wcp_folder_"+folderID).find("ul.ui-sortable:first-child > li").slideUp(),folderStatus=0):(e("#wcp_folder_"+folderID).addClass("active"),e("#wcp_folder_"+folderID).find("ul.ui-sortable:first-child > li").slideDown(),folderStatus=1),R())}})})}),e(document).ready(function(){e(document).on("click","a.jstree-anchor",function(t){if(t.stopPropagation(),e(".un-categorised-items").removeClass("active-item"),e(".header-posts a").removeClass("active-item"),e("active-item").removeClass("active-item"),l=e(this).closest("li.jstree-node").attr("id"),u=e(this).closest("li.jstree-node").attr("id"),e(".sticky-folders .sticky-folder-"+l+" a").addClass("active-item"),e("#media-attachment-taxonomy-filter").length){var s=e(this).closest("li.jstree-node").attr("id");e("#media-attachment-taxonomy-filter").val(s),e("#media-attachment-taxonomy-filter").trigger("change"),thisSlug=k(s,"slug"),_=wcp_settings.page_url+thisSlug;var o={Title:thisSlug,Url:_};history.pushState(o,o.Title,o.Url),O(thisSlug),e(".custom-media-select").removeClass("active")}else{var a=k(l,"slug");_=wcp_settings.page_url+a,e(".form-loader-count").css("width","100%"),e("#folder-posts-filter").length?e("#folder-posts-filter").load(_+" #posts-filter",function(){var t={Title:a,Url:_};history.pushState(t,t.Title,t.Url),O(a),"show"!=wcp_settings.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),I()}):e("#wpbody").load(_+" #wpbody-content",function(){var t={Title:a,Url:_};history.pushState(t,t.Title,t.Url),O(a),"show"!=wcp_settings.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),I()})}S(),e(".sticky-folders .sticky-folder-"+l+" a").addClass("active-item")}),e(".header-posts").click(function(){if(l="",e(".wcp-container .route").removeClass("active-item"),e(".un-categorised-items").removeClass("active-item"),e(".sticky-folders .active-item").removeClass("active-item"),e(".header-posts a").addClass("active-item"),e(".jstree-clicked").removeClass("jstree-clicked"),e("#media-attachment-taxonomy-filter").length){l="",e("#media-attachment-taxonomy-filter").val("all"),e("#media-attachment-taxonomy-filter").trigger("change");var t={Title:"",Url:wcp_settings.page_url};history.pushState(t,t.Title,t.Url),O("all"),S()}else _=wcp_settings.page_url,e(".form-loader-count").css("width","100%"),e("#folder-posts-filter").length?e("#folder-posts-filter").load(_+" #posts-filter",function(){var t={Title:"",Url:_};history.pushState(t,t.Title,t.Url),O("all"),"show"!=wcp_settings.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),S(),I()}):e("#wpbody").load(_+" #wpbody-content",function(){var t={Title:"",Url:_};history.pushState(t,t.Title,t.Url),O("all"),"show"!=wcp_settings.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),S(),I()})}),e(".un-categorised-items").click(function(){if(l="-1",e(".wcp-container .route").removeClass("active-item"),e(".header-posts a").removeClass("active-item"),e(".un-categorised-items").addClass("active-item"),e(".sticky-folders .active-item").removeClass("active-item"),e(".jstree-clicked").removeClass("jstree-clicked"),e("#media-attachment-taxonomy-filter").length){e("#media-attachment-taxonomy-filter").val("unassigned"),e("#media-attachment-taxonomy-filter").trigger("change");var t={Title:"",Url:wcp_settings.page_url+"-1"};history.pushState(t,t.Title,t.Url),O("-1"),S()}else _=wcp_settings.page_url+"-1",e(".form-loader-count").css("width","100%"),e("#folder-posts-filter").length?e("#folder-posts-filter").load(_+" #posts-filter",function(){var t={Title:"",Url:_};history.pushState(t,t.Title,t.Url),O("-1"),"show"!=wcp_settings.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),S(),I()}):e("#wpbody").load(_+" #wpbody-content",function(){var t={Title:"",Url:_};history.pushState(t,t.Title,t.Url),O("-1"),"show"!=wcp_settings.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),S(),I()})}),e("#expand-collapse-list").click(function(t){t.stopPropagation(),statusType=0,e(this).hasClass("all-open")?(e(this).removeClass("all-open"),statusType=0,e(this).attr("data-folder-tooltip","Expand"),e("#js-tree-menu").jstree("close_all")):(e(this).addClass("all-open"),statusType=1,e(this).attr("data-folder-tooltip","Collapse"),e("#js-tree-menu").jstree("open_all")),h="",e("#js-tree-menu .jstree-node:not(.jstree-leaf)").each(function(){h+=e(this).attr("id")+","}),""!=h&&(e(".form-loader-count").css("width","100%"),s=wcp_settings.nonce,e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_change_all_status&status="+statusType+"&folders="+h+"&nonce="+s,method:"post",success:function(t){e(".form-loader-count").css("width","0"),"0"==(t=e.parseJSON(t)).status&&(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show(),window.location.reload(!0))}}))}),z()}),e(document).ready(function(){e(document).on("click","body, html",function(){e(".folder-order").removeClass("active")}),e(document).on("click","#sort-order-list",function(t){t.stopPropagation(),e(".folder-order").toggleClass("active")}),e(document).on("click",".folder-sort-menu a",function(t){t.stopPropagation(),t.preventDefault(),e(".form-loader-count").css("width","100%"),e(".folder-order").removeClass("active"),lastOrderStatus=e(this).attr("data-sort"),e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_folders_by_order&nonce="+wcp_settings.nonce+"&order="+e(this).attr("data-sort"),method:"post",success:function(t){1==(t=e.parseJSON(t)).status&&(e("#js-tree-menu").jstree().destroy(),e("#js-tree-menu").append("<ul></ul>"),e("#js-tree-menu ul").html(t.data),H(),v=t.terms,M()),e(".form-loader-count").css("width","0"),S()}})})}),e(document).ready(function(){e(document).on("keyup","#folder-search",function(){U()}),e(document).on("change","#folder-search",function(){U()}),e(document).on("blur","#folder-search",function(){U()})}),e(document).ready(function(){e(document).on("click",".folders-toggle-button",function(){dbStatus="show",e(".tree-structure-content").hasClass("active")?(e(".tree-structure-content .tree-structure").animate({height:"40px"},100,function(){e(".tree-structure-content").removeClass("active")}),dbStatus="hide"):(newHeight=parseInt(e(".tree-structure-content .tree-structure").attr("data-height")),e(".tree-structure-content .tree-structure").animate({height:newHeight},100,function(){e(".tree-structure-content").addClass("active")})),e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_hide_folders&status="+dbStatus+"&nonce="+wcp_settings.nonce,method:"post",success:function(e){}})})}),e(document).ready(function(){e(document).on("click","#doaction",function(t){return"move_to_folder"==e("#bulk-action-selector-top").val()?(E(),!1):"edit"==e("#bulk-action-selector-top").val()&&"object"==typeof inlineEditPost?(inlineEditPost.setBulk(),!1):void 0}),e(document).on("click","#doaction2",function(t){return"move_to_folder"==e("#bulk-action-selector-bottom").val()?(E(),!1):"edit"==e("#bulk-action-selector-bottom").val()&&"object"==typeof inlineEditPost?(inlineEditPost.setBulk(),!1):void 0}),e(document).on("submit","#bulk-folder-form",function(t){t.stopPropagation(),t.preventDefault(),""!=e("#bulk-select").val()&&(chkStr="",e(".wp-list-table input:checked").each(function(){chkStr+=e(this).val()+","}),""!=e("#bulk-select").val()&&("-1"==e("#bulk-select").val()?e.ajax({url:wcp_settings.ajax_url,data:"post_id="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_remove_post_folder&folder_id="+e(this).val()+"&nonce="+wcp_settings.nonce+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+l,method:"post",success:function(t){e("#bulk-move-folder").hide(),C(),R()}}):(s=k(e("#bulk-select").val(),"nonce"),e.ajax({url:wcp_settings.ajax_url,data:"post_ids="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+e("#bulk-select").val()+"&nonce="+s+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+l,method:"post",success:function(t){t=e.parseJSON(t),e("#bulk-move-folder").hide(),"1"==t.status?(C(),R()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}}))))})}),"attachment"==wcp_settings.post_type){e(document).ready(function(){"show"==wcp_settings.show_in_page&&e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div><div class="folders-toggle-button"><span></span></div></div>'),D(),J()});var F=null;function V(s){F=e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_get_default_list&active_id="+l,method:"post",beforeSend:function(){null!=F&&F.abort()},success:function(o){if(o=e.parseJSON(o),e(".header-posts .total-count").text(o.total_items),e(".un-categorised-items .total-count").text(o.empty_items),selectedVal=e("#media-attachment-taxonomy-filter").val(),"all"!=selectedVal&&1==s){var a=parent.wp;a.media!=t&&(a.media.frame.setState("insert"),null!==a.media.frame.content.get()?(a.media.frame.content.get().collection.props.set({ignore:+new Date}),a.media.frame.content.get().options.selection.reset()):a.media.frame.library.props.set({ignore:+new Date}))}v=o.taxonomies,M(),""!=l&&e("#wcp_folder_"+l).addClass("active-item"),d&&(e("#title_"+u).trigger("click"),d=!1)}})}function L(){e(".media-frame-content .media-toolbar").width(e(".media-frame-content").width()-20)}function Y(e,t,s){var o="";if(s){var a=new Date;a.setTime(a.getTime()+24*s*60*60*1e3),o="; expires="+a.toUTCString()}document.cookie=e+"="+(t||"")+o+"; path=/"}function W(e){document.cookie=e+"=; Max-Age=-99999999;"}L(),e(window).resize(function(){L()}),e(document).on("click",".button.organize-button",function(){e(".media-frame").hasClass("mode-select")?W("media-select-mode"):Y("media-select-mode","on",7),e("button.button.media-button.select-mode-toggle-button").trigger("click"),e(".media-frame").hasClass("mode-select")?(e(".media-info-message").addClass("active"),e(".select-all-item-btn").addClass("active")):(e(".media-info-message, .custom-media-select").removeClass("active"),e(".select-all-item-btn").removeClass("active"))}),e(document).on("click",".select-mode-toggle-button",function(){setTimeout(function(){e(".media-frame").hasClass("mode-select")||Y("media-select-mode","off",-1),e(".media-frame").hasClass("mode-select")?(e(".media-info-message").addClass("active"),e(".select-all-item-btn").addClass("active")):(e(".media-info-message, .custom-media-select").removeClass("active"),e(".select-all-item-btn").removeClass("active"))},10)}),e(document).on("click",".select-all-item-btn",function(){e("ul.attachments li:not(.selected)").trigger("click")}),e(document).on("change",".folder_for_media",function(){"add-folder"==e(this).val()&&(u=0,d=!0,P())}),e(window).scroll(function(){})}else;function q(){e("button.button.media-button.select-mode-toggle-button").length&&(clearInterval(r),e("button.button.media-button.select-mode-toggle-button").after("<button class='button organize-button'>Bulk Organize</button>"),e(".media-toolbar-secondary").append("<span class='media-info-message'>Drag and drop your media files to the relevant folders</span>"),e(".delete-selected-button").before("<button type='button' class='button button-primary select-all-item-btn'>Select All</button>"),e(".media-toolbar-secondary").after("<div class='custom-media-select'>Move Selected files to: <select class='media-select-folder'></select></div>"),e(".media-toolbar").append("<div style='clear:both;'></div><div class='media-folder-loader'><span>Uploading files</span> <span id='current_upload_files'></span>/<span id='total_upload_files'></span><div class='folder-progress'><div class='folder-meter orange-bg'><span></span></div></div></div>"),e(".wcp-custom-form").length&&(wp.Uploader!==t&&wp.Uploader.queue.on("reset",function(){V(1)}),e(document).ajaxComplete(function(e,t,s){actionName=s.data,"undefined"!=typeof actionName&&actionName.length&&0==actionName.indexOf("action=delete-post&id=")&&V(0)})),setTimeout(function(){docReferrar=document.referrer,-1!=docReferrar.indexOf("wp-admin/upload.php")?(mediaMode=function(e){for(var t=e+"=",s=document.cookie.split(";"),o=0;o<s.length;o++){for(var a=s[o];" "==a.charAt(0);)a=a.substring(1,a.length);if(0==a.indexOf(t))return a.substring(t.length,a.length)}return null}("media-select-mode"),"on"==mediaMode&&(e("button.button.media-button.select-mode-toggle-button").trigger("click"),e(".media-frame").hasClass("mode-select")?e(".media-info-message").addClass("active"):e(".media-info-message, .custom-media-select").removeClass("active"))):W("media-select-mode"),V(1)},1e3))}e(document).ready(function(){"attachment"==wcp_settings.post_type&&e("#tmpl-media-frame").length&&(r=setInterval(function(){q()},1e3)),e(document).on("click",".attachments-browser ul.attachments .thumbnail",function(){"attachment"==wcp_settings.post_type&&e(".media-toolbar").hasClass("media-toolbar-mode-select")&&(0==e("ul.attachments li.selected").length?e(".custom-media-select").removeClass("active"):e(".custom-media-select").addClass("active"))}),e(document).on("change",".media-select-folder",function(){if("attachment"==wcp_settings.post_type&&""!=e(this).val()){var t="";e(".attachments-browser li.attachment.selected").each(function(){t+=e(this).attr("data-id")+","}),"-1"==e(this).val()?e.ajax({url:wcp_settings.ajax_url,data:"post_id="+t+"&type="+wcp_settings.post_type+"&action=wcp_remove_post_folder&folder_id="+e(this).val()+"&nonce="+wcp_settings.nonce+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+l,method:"post",success:function(t){0!=u&&u!=e(".media-select-folder").val()&&e("ul.attachments li.selected").remove(),C(),R()}}):(s=k(e(this).val(),"nonce"),e.ajax({url:wcp_settings.ajax_url,data:"post_ids="+t+"&type="+wcp_settings.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+e(this).val()+"&nonce="+s+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+l,method:"post",success:function(t){t=e.parseJSON(t),e("#bulk-move-folder").hide(),"1"==t.status?(0!=u&&u!=e(".media-select-folder").val()&&e("ul.attachments li.selected").remove(),C(),R()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}}))}})})});
|
1 |
+
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(e,t){var s,o,a,r,n,l,d="#js-tree-menu",c="",p=!1,u=!1,m=0,f=0,h=0,g=!1,_="",v=[],w=wcp_settings.page_url,b=[],y="<li class='grid-view' data-id='__folder_id__' id='folder___folder_id__'><div class='folder-item is-folder' data-id='__folder_id__'><a title='__folder_name__' id='folder_view___folder_id__'class='folder-view __append_class__ has-new-folder'data-id='__folder_id__'><span class='folder item-name'><span id='wcp_folder_text___folder_id__'class='folder-title'>__folder_name__</span></span></a></div></li>",k=null,j=null,x=1;function C(){e(".wcp-move-file:not(.ui-draggable)").draggable({revert:"invalid",containment:"document",helper:"clone",cursor:"move",start:function(t,s){e(this).closest("td").addClass("wcp-draggable"),e("body").addClass("no-hover-css")},stop:function(t,s){e(this).closest("td").removeClass("wcp-draggable"),e("body").removeClass("no-hover-css")}}),e(".wcp-move-multiple:not(.ui-draggable)").draggable({revert:"invalid",containment:"document",helper:function(t,s){return e(".selected-items").remove(),selectedItems=e("#the-list th input:checked").length,selectedItems>0?(selectedItems=0==selectedItems||1==selectedItems?"1 Item":selectedItems+" Items",e("<div class='selected-items'><span class='total-post-count'>"+selectedItems+" Selected</span></div>")):e("<div class='selected-items'><span class='total-post-count'>Select Items to move</span></div>")},start:function(t,s){e("body").addClass("no-hover-css")},cursor:"move",cursorAt:{left:0,top:0},stop:function(t,s){e(".selected-items").remove(),e("body").removeClass("no-hover-css")}}),e(".jstree-anchor:not(.ui-droppable)").droppable({accept:".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",hoverClass:"wcp-drop-hover",classes:{"ui-droppable-active":"ui-state-highlight"},drop:function(t,o){folderID=e(this).closest("li.jstree-node").attr("id"),o.draggable.hasClass("wcp-move-multiple")?e(".wp-list-table input:checked").length&&(chkStr="",e(".wp-list-table input:checked").each(function(){chkStr+=e(this).val()+","}),s=I(folderID,"nonce"),e.ajax({url:wcp_settings.ajax_url,data:"post_ids="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+folderID+"&nonce="+s+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+c,method:"post",success:function(t){"1"==(t=e.parseJSON(t)).status?D():(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})):o.draggable.hasClass("wcp-move-file")?(postID=o.draggable[0].attributes["data-id"].nodeValue,s=I(folderID,"nonce"),chkStr=postID+",",e(".wp-list-table input:checked").each(function(){e(this).val()!=postID&&(chkStr+=e(this).val()+",")}),e.ajax({url:wcp_settings.ajax_url,data:"post_ids="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+folderID+"&nonce="+s+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+c,method:"post",success:function(t){"1"==(t=e.parseJSON(t)).status?D():(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})):o.draggable.hasClass("attachment")&&(chkStr=o.draggable[0].attributes["data-id"].nodeValue,s=I(folderID,"nonce"),e(".attachments-browser li.attachment.selected").length>1&&(chkStr="",e(".attachments-browser li.attachment.selected").each(function(){chkStr+=e(this).data("id")+","})),_=chkStr,e.ajax({url:wcp_settings.ajax_url,data:"post_ids="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+folderID+"&nonce="+s+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+c,method:"post",success:function(e){D()}}))}}),e(".un-categorised-items:not(.ui-droppable)").droppable({accept:".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",hoverClass:"wcp-hover-list",classes:{"ui-droppable-active":"ui-state-highlight"},drop:function(t,o){folderID=-1,s=wcp_settings.nonce,o.draggable.hasClass("wcp-move-multiple")?e(".wp-list-table input:checked").length&&(chkStr="",e(".wp-list-table input:checked").each(function(){chkStr+=e(this).val()+","}),e.ajax({url:wcp_settings.ajax_url,data:"post_id="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_remove_post_folder&folder_id="+folderID+"&nonce="+s+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+c,method:"post",success:function(e){D()}})):o.draggable.hasClass("wcp-move-file")?(postID=o.draggable[0].attributes["data-id"].nodeValue,chkStr=postID+",",e(".wp-list-table input:checked").each(function(){postID!=e(this).val()&&(chkStr+=e(this).val()+",")}),e.ajax({url:wcp_settings.ajax_url,data:"post_id="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_remove_post_folder&folder_id="+folderID+"&nonce="+s+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+c,method:"post",success:function(e){D()}})):o.draggable.hasClass("attachment")&&(chkStr=o.draggable[0].attributes["data-id"].nodeValue,e(".attachments-browser li.attachment.selected").length>1&&(chkStr="",e(".attachments-browser li.attachment.selected").each(function(){chkStr+=e(this).data("id")+","})),_=chkStr,e.ajax({url:wcp_settings.ajax_url,data:"post_id="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_remove_post_folder&folder_id="+folderID+"&nonce="+s+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+c,method:"post",success:function(e){D()}}))}}),e(".attachments-browser li.attachment:not(.ui-draggable)").draggable({revert:"invalid",containment:"document",helper:function(t,s){return e(".selected-items").remove(),selectedItems=e(".attachments-browser li.attachment.selected").length,selectedItems=0==selectedItems||1==selectedItems?"1 Item":selectedItems+" Items",e("<div class='selected-items'><span class='total-post-count'>"+selectedItems+" Selected</span></div>")},start:function(t,s){e("body").addClass("no-hover-css")},cursor:"move",cursorAt:{left:0,top:0},stop:function(t,s){e(".selected-items").remove(),e("body").removeClass("no-hover-css")}}),e(".tree-structure .folder-item:not(.ui-droppable)").droppable({accept:".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",hoverClass:"wcp-drop-hover-list",classes:{"ui-droppable-active":"ui-state-highlight"},drop:function(t,o){e("body").removeClass("no-hover-css"),folderID=e(this).data("id"),o.draggable.hasClass("wcp-move-multiple")?(s=I(folderID,"nonce"),e(".wp-list-table input:checked").length&&(chkStr="",e(".wp-list-table input:checked").each(function(){chkStr+=e(this).val()+","}),e.ajax({url:wcp_settings.ajax_url,data:"post_ids="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+folderID+"&nonce="+s+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+c,method:"post",success:function(e){D(),E()}}))):o.draggable.hasClass("wcp-move-file")?(postID=o.draggable[0].attributes["data-id"].nodeValue,s=I(folderID,"nonce"),chkStr=postID+",",e(".wp-list-table input:checked").each(function(){e(this).val()!=postID&&(chkStr+=e(this).val()+",")}),e.ajax({url:wcp_settings.ajax_url,data:"post_ids="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+folderID+"&nonce="+s+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+c,method:"post",success:function(e){D(),E()}})):o.draggable.hasClass("attachment")&&(chkStr=o.draggable[0].attributes["data-id"].nodeValue,s=I(folderID,"nonce"),e(".attachments-browser li.attachment.selected").length>1&&(chkStr="",e(".attachments-browser li.attachment.selected").each(function(){chkStr+=e(this).data("id")+","})),e.ajax({url:wcp_settings.ajax_url,data:"post_ids="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+folderID+"&nonce="+s+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+c,method:"post",success:function(e){D(),E()}}))}}),e(".sticky-folders li a:not(.ui-droppable)").droppable({accept:".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",hoverClass:"wcp-drop-hover",classes:{"ui-droppable-active":"ui-state-highlight"},drop:function(t,o){folderID=e(this).closest("li").data("folder-id"),o.draggable.hasClass("wcp-move-multiple")?e(".wp-list-table input:checked").length&&(chkStr="",e(".wp-list-table input:checked").each(function(){chkStr+=e(this).val()+","}),s=I(folderID,"nonce"),e.ajax({url:wcp_settings.ajax_url,data:"post_ids="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+folderID+"&nonce="+s+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+c,method:"post",success:function(t){"1"==(t=e.parseJSON(t)).status?(D(),E()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})):o.draggable.hasClass("wcp-move-file")?(postID=o.draggable[0].attributes["data-id"].nodeValue,s=I(folderID,"nonce"),chkStr=postID+",",e(".wp-list-table input:checked").each(function(){e(this).val()!=postID&&(chkStr+=e(this).val()+",")}),e.ajax({url:wcp_settings.ajax_url,data:"post_ids="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+folderID+"&nonce="+s+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+c,method:"post",success:function(t){"1"==(t=e.parseJSON(t)).status?(D(),E()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})):o.draggable.hasClass("attachment")&&(chkStr=o.draggable[0].attributes["data-id"].nodeValue,s=I(folderID,"nonce"),e(".attachments-browser li.attachment.selected").length>1&&(chkStr="",e(".attachments-browser li.attachment.selected").each(function(){chkStr+=e(this).data("id")+","})),_=chkStr,e.ajax({url:wcp_settings.ajax_url,data:"post_ids="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+folderID+"&nonce="+s+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+c,method:"post",success:function(e){D(),E()}}))}}),V()}function I(e,t){if(v.length>0)for(i=0;i<v.length;i++)if(parseInt(v[i].folder_id)==parseInt(e))return v[i][t];return""}function S(e){if(v.length>0)for(i=0;i<v.length;i++)if(parseInt(v[i].folder_id)==parseInt(e))return i;return null}function D(){if(e(".media-toolbar").hasClass("media-toolbar-mode-select")&&e("ul.attachments li.selected").length&&(e("ul.attachments li.selected").trigger("click"),e(".select-mode-toggle-button").trigger("click")),""!=_&&(e("#js-tree-menu a.jstree-clicked").length>0||"-1"==c)){if(e("#media-attachment-taxonomy-filter").length){_=_.split(",");for(var t=0;t<_.length;t++)""!=_[t]&&e(".attachments-browser li[data-id='"+_[t]+"']").remove()}_=""}e("#media-attachment-taxonomy-filter").length?B(0):(e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=get_folders_default_list",method:"post",success:function(t){t=e.parseJSON(t),e(".header-posts .total-count").text(t.total_items),e(".un-categorised-items .total-count").text(t.empty_items),b=t.taxonomies,V()}}),e(".folder-loader-ajax").addClass("active"),e("#folder-posts-filter").length?e("#folder-posts-filter").load(w+"&paged="+x+" #posts-filter",function(){var t={Title:"",Url:w+"&paged="+x};history.pushState(t,t.Title,t.Url),"show"!=wcp_settings.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),H(),P()}):e("#wpbody").load(w+"&paged="+x+" #wpbody-content",!1,function(t){var s={Title:"",Url:w+"&paged="+x};history.pushState(s,s.Title,s.Url),"show"!=wcp_settings.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),H()}))}function P(){H(),e(".form-loader-count").css("width","0"),"object"==typeof inlineEditPost&&(inlineEditPost.init(),e("#the-list").on("click",".editinline",function(){e(this).attr("aria-expanded","true"),inlineEditPost.edit(this)}),e(document).on("click",".inline-edit-save .save",function(){var t=e(this).closest("tr").attr("id");t=(t=t.replace("edit-","")).replace("post-",""),inlineEditPost.save(t)}),e(document).on("click",".inline-edit-save .cancel",function(){var t=e(this).closest("tr").attr("id");t=(t=t.replace("edit-","")).replace("post-",""),inlineEditPost.revert(t)})),"attachment"==wcp_settings.post_type&&(e(".move-to-folder-top").length||e("#bulk-action-selector-top").append("<option class='move-to-folder-top' value='move_to_folder'>Move to Folder</option>"),e(".move-to-folder-bottom").length||e("#bulk-action-selector-bottom").append("<option class='move-to-folder-bottom' value='move_to_folder'>Move to Folder</option>"))}function H(){if(v.length&&e("li.jstree-node").each(function(){folderPostId=S(e(this).attr("id")),null!=folderPostId&&(1==v[folderPostId].is_high?e(this).addClass("is-high"):e(this).removeClass("is-high"),1==v[folderPostId].is_sticky?e(this).addClass("is-sticky"):e(this).removeClass("is-sticky"))}),folderId=0,e(".tree-structure ul").html(""),folderStatus=!0,e(".jstree-clicked").length&&(folderID=e(".jstree-clicked").closest(".jstree-node").attr("id"),e(".jstree-node[id='"+folderID+"'] > ul.jstree-children > li.jstree-node").length?(folderStatus=!1,e(".jstree-node[id='"+folderID+"'] > ul.jstree-children > li.jstree-node").each(function(){fID=e(this).attr("id"),fName=e.trim(e("#js-tree-menu").jstree(!0).get_node(fID).text),liHtml=y.replace(/__folder_id__/g,fID),liHtml=liHtml.replace(/__folder_name__/g,fName),selectedClass=e(this).hasClass("is-high")?"is-high":"",liHtml=liHtml.replace(/__append_class__/g,selectedClass),e(".tree-structure ul").append(liHtml)})):e(".jstree-node[id='"+folderID+"']").closest("ul").hasClass("jstree-container-ul")||(folderStatus=!1)),folderStatus&&e("#js-tree-menu > ul > li.jstree-node").each(function(){fID=e(this).attr("id"),fName=e.trim(e("#js-tree-menu").jstree(!0).get_node(fID).text),liHtml=y.replace(/__folder_id__/g,fID),liHtml=liHtml.replace(/__folder_name__/g,fName),selectedClass=e(this).hasClass("is-high")?"is-high":"",liHtml=liHtml.replace(/__append_class__/g,selectedClass),e(".tree-structure ul").append(liHtml)}),M(),"attachment"==wcp_settings.post_type&&(e(".move-to-folder-top").length||e("#bulk-action-selector-top").append("<option class='move-to-folder-top' value='move_to_folder'>Move to Folder</option>"),e(".move-to-folder-bottom").length||e("#bulk-action-selector-bottom").append("<option class='move-to-folder-bottom' value='move_to_folder'>Move to Folder</option>")),e(".sticky-folders .active-item").removeClass("active-item"),e("#js-tree-menu li.jstree-node.active-item").length){var t=e("#js-tree-menu li.jstree-node.active-item").data("folder-id");e(".sticky-folders .sticky-folder-"+t+" a").addClass("active-item")}C()}function T(){contentHeight=e(window).height()-e("#wpadminbar").height()-e(".sticky-wcp-custom-form").height()-30;var t=0;if(e("#custom-scroll-menu").hasClass("mCustomScrollbar")){var s=e("#custom-scroll-menu"),o=s.find(".mCSB_dragger"),a=s.find(".mCSB_container").height();t=o.position().top/(s.height()-o.height())*(a-s.height()),e("#custom-scroll-menu").mCustomScrollbar("destroy")}e("#custom-scroll-menu").mCustomScrollbar({axis:"y",scrollButtons:{enable:!1},setHeight:contentHeight,theme:"3d",scrollbarPosition:"inside",scrollInertia:500,mouseWheelPixels:60}),0!=t&&e("#custom-scroll-menu").mCustomScrollbar("scrollTo",t+"px",{scrollInertia:0})}function N(){H()}function U(){if(0==o&&a>=10)return e("#folder-limitation-message").html("You've reached the 10 folder limitation!"),e("#no-more-folder-credit").show(),!1;e("#add-update-folder-title").text("Add a new folder"),e("#save-folder-data").text("Submit"),e(".folder-form-errors").removeClass("active"),e("#add-update-folder-name").val(""),u&&(m=f,e("#add-update-folder-name").val(e.trim(e("#js-tree-menu").jstree(!0).get_node(f).text)+" #2"),f=e("#"+f+"_anchor").closest(".jstree-node").parent().parent().hasClass("jstree-node")?e("#"+f+"_anchor").closest(".jstree-node").parent().parent().attr("id"):0),e("#add-update-folder").removeClass("disabled"),e("#add-update-folder").show(),e("#add-update-folder-name").focus(),e(".dynamic-menu").remove()}function O(){folderName=e.trim(e("#js-tree-menu").jstree(!0).get_node(f).text),parentID=e("#wcp_folder_"+f).closest("li.jstree-node").data("folder-id"),parentID==t&&(parentID=0),e("#update-folder-data").text("Submit"),e(".folder-form-errors").removeClass("active"),e("#update-folder-item-name").val(folderName),e("#update-folder-item").removeClass("disabled"),e("#update-folder-item").show(),e("#update-folder-item-name").focus(),e(".dynamic-menu").remove()}function z(t){var s="Are you sure you want to delete the selected folder?",o="Items in the folder will not be deleted.";if(g=!1,1==t&&e("#folder-hide-show-checkbox").is(":checked")){if(g=!0,0==e("#js-tree-menu input.checkbox:checked").length)return e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html("Please select at least one folder to delete"),void e("#error-folder-popup").show();e("#js-tree-menu input.checkbox:checked").length>1&&(s="Are you sure you want to delete the selected folders?",o="Items in the selected folders will not be deleted.")}e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#remove-folder-item").text("Yes, Delete it!"),e("#remove-folder-message").text(s),e("#remove-folder-notice").text(o),e("#confirm-remove-folder").show(),e("#remove-folder-item").focus()}function J(){e(d).jstree({core:{cache:!1,animation:0,max_depth:n?"-1":1,check_callback:function(t,s,o,a,r){if(e("*").removeClass("drag-bot").removeClass("drag-in").removeClass("drag-up"),("move_node"===t||"copy_node"===t)&&r&&r.dnd)switch(r.pos){case"a":r.origin.get_node(r.ref,!0).addClass("drag-bot"),nodeId=e(".drag-bot").attr("id"),e("#jstree-dnd").text("Below "+e.trim(e("#js-tree-menu").jstree(!0).get_node(nodeId).text));break;case"i":if(!n)return!1;r.origin.get_node(r.ref,!0).addClass("drag-in"),nodeId=e(".drag-in").attr("id"),e("#jstree-dnd").text("Inside "+e.trim(e("#js-tree-menu").jstree(!0).get_node(nodeId).text));break;case"b":r.origin.get_node(r.ref,!0).addClass("drag-up"),nodeId=e(".drag-up").attr("id"),e("#jstree-dnd").text("Above "+e.trim(e("#js-tree-menu").jstree(!0).get_node(nodeId).text));break;default:e("#jstree-dnd").text(e("#jstree-dnd").data("txt"))}return!0}},data:{cache:!1},select_node:!1,search:{show_only_matches:!0,case_sensitive:!1,fuzzy:!1},plugins:["dnd","search","contextmenu"],contextmenu:{select_node:0,show_at_node:0,items:function(){return{}}}}).bind("ready.jstree",function(){e("#js-tree-menu .jstree-node").each(function(){var t=parseInt(e(this).data("count"));t>0&&e(".jstree-node[id='"+e(this).attr("id")+"'] > a span.premio-folder-count").text(t)}),""!=c&&0!=c&&e(".jstree-node[id='"+c+"']").length&&(e("#js-tree-menu").jstree("select_node",c),e(".sticky-folders .sticky-folder-"+c+" a").length&&e(".sticky-folders .sticky-folder-"+c+" a").addClass("active-item")),e(".ajax-preloader").hide(),e(".js-tree-data").show(),T(),L(),e(".sticky-folders ul > li").length>0&&e(".sticky-folders").addClass("active"),H(),C()}).bind("after_open.jstree",function(){C()}).bind("open_all.jstree",function(){C()}).bind("create_node.jstree",function(){C()}).bind("delete_node.jstree",function(){C()}).bind("close_all.jstree",function(){C()}).bind("after_close.jstree",function(){C()}).bind("move_node.jstree",function(t,s){"#"!=s.node.parent&&jQuery("#js-tree-menu").jstree("open_node",s.node.parent),folderMoveId=s.node.id,orderString="",e("#js-tree-menu .jstree-node[id='"+folderMoveId+"']").closest("ul").children().each(function(){"undefined"!=e(this).attr("id")&&(orderString+=e(this).attr("id")+",")}),e("#"+folderMoveId+"_anchor").closest(".jstree-node").parent().parent().hasClass("jstree-node")?parentID=e("#"+folderMoveId+"_anchor").closest(".jstree-node").parent().parent().attr("id"):parentID=0,""!=orderString&&(e(".form-loader-count").css("width","100%"),e.ajax({url:wcp_settings.ajax_url,data:"term_ids="+orderString+"&action=wcp_save_folder_order&type="+wcp_settings.post_type+"&nonce="+wcp_settings.nonce+"&term_id="+folderMoveId+"&parent_id="+parentID,method:"post",success:function(t){"1"==(t=e.parseJSON(t)).status?(e("#wcp_folder_parent").html(t.options),e(".form-loader-count").css("width","0"),D(),E(),V(),C()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show(),window.location.reload(!0))}}))})}function R(){var t=e.trim(e("#folder-search").val());e("#js-tree-menu").jstree("search",t)}function A(t){e.ajax({url:wcp_settings.ajax_url,type:"post",data:"action=save_folder_last_status&post_type="+wcp_settings.post_type+"&post_id="+t+"&nonce="+wcp_settings.nonce,cache:!1,async:!1,success:function(){}})}function F(){setTimeout(function(){if(currentStatus=!0,e("#js-tree-menu .jstree-node.jstree-leaf").length==e("#js-tree-menu .jstree-node").length)e("#expand-collapse-list").removeClass("all-open"),e("#expand-collapse-list").attr("data-folder-tooltip","Expand");else{var t=e("#js-tree-menu .jstree-node.jstree-closed").length+e("#js-tree-menu .jstree-node.jstree-open").length;e("#js-tree-menu .jstree-node.jstree-closed").length==t?(e("#expand-collapse-list").removeClass("all-open"),e("#expand-collapse-list").attr("data-folder-tooltip","Expand")):(e("#expand-collapse-list").addClass("all-open"),e("#expand-collapse-list").attr("data-folder-tooltip","Collapse"))}},500),C()}function M(){0==e(".tree-structure-content .tree-structure li").length?e(".tree-structure-content").hide():(e(".tree-structure-content").show(),oldHeight=e(".tree-structure-content .tree-structure").height(),e(".tree-structure-content .tree-structure").height("auto"),e(".tree-structure-content .tree-structure").height()>56?e(".folders-toggle-button").show():e(".folders-toggle-button").hide(),newHeight=e(".tree-structure-content .tree-structure").height(),e(".tree-structure-content .tree-structure").attr("data-height",newHeight),e(".tree-structure-content").hasClass("active")?(e(".tree-structure-content .tree-structure").height(newHeight),e(".tree-structure-content .tree-structure").attr("data-height",newHeight)):e(".tree-structure-content .tree-structure").height(oldHeight))}function E(){e(".folder-loader-ajax").addClass("active"),e(".folder-loader-ajax img").removeClass("active"),e(".folder-loader-ajax svg#successAnimation").addClass("active").addClass("animated"),setTimeout(function(){e(".folder-loader-ajax").removeClass("active"),e(".folder-loader-ajax img").addClass("active"),e(".folder-loader-ajax svg#successAnimation").removeClass("active").removeClass("animated")},2e3)}function L(){e(".sticky-folders > ul").html("");var t="";if(e("#js-tree-menu li.jstree-node.is-sticky").each(function(){var s=e(this).attr("id"),o=e.trim(e("#js-tree-menu").jstree(!0).get_node(s).text),a=e("li.jstree-node[id='"+s+"'] > a span.premio-folder-count").text(),r=e("li.jstree-node[id='"+s+"']").hasClass("is-high")?" is-high ":"";t+="<li data-folder-id='"+s+"' class='sticky-fldr "+r+" sticky-folder-"+s+"'><a href='javascript:;'><span class='folder-title'>"+o+"</span><span class='folder-actions'><span class='update-inline-record'><i class='pfolder-edit-folder'></i></span><span class='star-icon'><i class='pfolder-star'></i></span><span class='premio-folder-count'>"+a+"</span></span></a></li>"}),e(".sticky-folders > ul").html(t),e(".jstree-anchor.jstree-clicked").length){var s=e(".jstree-anchor.jstree-clicked").closest("li.jstree-node").attr("id");e(".sticky-folders .sticky-folder-"+s+" a").addClass("active-item")}e(".sticky-folders > ul > li").length>0?e(".sticky-folders").addClass("active"):e(".sticky-folders").removeClass("active"),T()}function V(){if(e("#media-attachment-taxonomy-filter").length&&(e("#media-attachment-taxonomy-filter").each(function(){wcp_settings.terms=b;var t=e(this);currentDDVal=e(this).val(),t.html("<option value='all'>All Folders</option><option value='unassigned'>(Unassigned)</option>"),lastFolderData=b;for(var s=0;s<b.length;s++)t.append("<option value='"+b[s].term_id+"'>"+b[s].name+" ("+b[s].trash_count+")</option>");t.val(currentDDVal).trigger("change")}),e("select.folder_for_media").length)){var t=e("select.folder_for_media").val();e("select.folder_for_media option:not(:first-child):not(:last-child)").remove();for(var s=0;s<b.length;s++)e("select.folder_for_media option:last-child").before("<option value='"+b[s].term_id+"'>"+b[s].name+"</option>");""!=t&&e(".folder_for_media").val(t)}for(e("span.premio-folder-count").text(""),e(".folder-count").text(""),s=0;s<b.length;s++)0!=parseInt(b[s].trash_count)&&(e(".jstree-node[id='"+b[s].term_id+"'] > a.jstree-anchor span.premio-folder-count").text(b[s].trash_count),e(".sticky-folder-"+b[s].term_id+" .premio-folder-count").text(b[s].trash_count));if(e(".media-select-folder").length){for(e(".media-select-folder").html("<option value=''>Select Folder</option><option value='-1'>(Unassigned)</option>"),s=0;s<b.length;s++)e(".media-select-folder").append("<option value='"+b[s].term_id+"'>"+b[s].name+" ("+b[s].trash_count+")</option>");e(".media-select-folder").val("")}""!=c&&e("#wcp_folder_"+c).addClass("active-item"),p&&(e("#title_"+f).trigger("click"),p=!1)}function Y(){e("#bulk-action-selector-top, #bulk-action-selector-bottom").val("-1"),0==e(".wp-list-table tbody input[type='checkbox']:checked").length?alert("Please select items to move in folder"):(e("#bulk-move-folder").show(),e("#bulk-select").html("<option value=''>Loading...</option>"),e(".move-to-folder").attr("disabled",!0),e("#move-to-folder").prop("disabled",!0),e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_get_default_list&active_id="+c,method:"post",success:function(t){if(t=e.parseJSON(t),e("#bulk-select").html("<option value=''>Select Folder</option><option value='-1'>(Unassigned)</option>"),e(".move-to-folder").prop("disabled",!1),e("#move-to-folder").prop("disabled",!1),1==t.status){var s=t.taxonomies;for(i=0;i<s.length;i++)e("#bulk-select").append("<option value='"+s[i].term_id+"'>"+s[i].name+"</option>")}}}))}if(e(document).ready(function(){b=wcp_settings.taxonomies,o=parseInt(wcp_settings.is_key_active),a=parseInt(wcp_settings.folders),c=parseInt(wcp_settings.selected_taxonomy),r=parseInt(wcp_settings.hasStars),n=parseInt(wcp_settings.hasChildren),x=parseInt(wcp_settings.currentPage),v=wcp_settings.folder_settings,J(),T();var l="1"==wcp_settings.isRTL||1==wcp_settings.isRTL?"w":"e";e(".wcp-content").resizable({resizeHeight:!1,handles:l,minWidth:100,maxWidth:500,resize:function(t,s){var o=s.size.width;for(o<=275?e(".plugin-button").addClass("d-block"):e(".plugin-button").removeClass("d-block"),o<=225&&(o=225),"1"==wcp_settings.isRTL?(e("#wpcontent").css("padding-right",o+20+"px"),e("#wpcontent").css("padding-left","0px")):e("#wpcontent").css("padding-left",o+20+"px"),newWidth=o-40,cssString="",classString="",i=0;i<=15;i++)classString+=" .space > .jstree-node >",currentWidth=newWidth-(13+20*i),cssString+="#js-tree-menu > "+classString+" .title { width: "+currentWidth+"px !important; } ",cssString+="#js-tree-menu > "+classString+" .dynamic-menu { left: "+(currentWidth-190)+"px !important; } ";e("#wcp-custom-style").html("<style>"+cssString+"</style>"),s.size.width<=185?(folderStatus="hide",e(".wcp-hide-show-buttons .toggle-buttons.show-folders").addClass("active"),e(".wcp-hide-show-buttons .toggle-buttons.hide-folders").removeClass("active"),e("#wcp-content").addClass("hide-folders-area"),"1"==wcp_settings.isRTL?(e("#wpcontent").css("padding-right","20px"),e("#wpcontent").css("padding-left","0px")):e("#wpcontent").css("padding-left","20px")):e("#wcp-content").hasClass("hide-folders-area")&&(folderStatus="show",e(".wcp-hide-show-buttons .toggle-buttons.show-folders").removeClass("active"),e(".wcp-hide-show-buttons .toggle-buttons.hide-folders").addClass("active"),e("#wcp-content").addClass("no-transition"),e("#wcp-content").removeClass("hide-folders-area"),"1"==wcp_settings.isRTL?(e("#wpcontent").css("padding-right",parseInt(wcp_settings.folder_width)+20+"px"),e("#wpcontent").css("padding-left","0px")):e("#wpcontent").css("padding-left",parseInt(wcp_settings.folder_width)+20+"px"),setTimeout(function(){e("#wcp-content").removeClass("no-transition")},250))},stop:function(t,o){var a=o.size.width;o.size.width<=275?e(".plugin-button").addClass("d-block"):e(".plugin-button").removeClass("d-block"),a<=225&&(a=225),o.size.width<=185?(folderStatus="hide",e(".wcp-hide-show-buttons .toggle-buttons.show-folders").addClass("active"),e(".wcp-hide-show-buttons .toggle-buttons.hide-folders").removeClass("active"),e("#wcp-content").addClass("hide-folders-area"),"1"==wcp_settings.isRTL?(e("#wpcontent").css("padding-right","20px"),e("#wpcontent").css("padding-left","0px")):e("#wpcontent").css("padding-left","20px"),e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_change_folder_display_status&status="+folderStatus+"&nonce="+s,method:"post",success:function(e){}})):e("#wcp-content").hasClass("hide-folders-area")&&(folderStatus="show",e(".wcp-hide-show-buttons .toggle-buttons.show-folders").removeClass("active"),e(".wcp-hide-show-buttons .toggle-buttons.hide-folders").addClass("active"),e("#wcp-content").addClass("no-transition"),e("#wcp-content").removeClass("hide-folders-area"),"1"==wcp_settings.isRTL?(e("#wpcontent").css("padding-right",parseInt(wcp_settings.folder_width)+20+"px"),e("#wpcontent").css("padding-left","0px")):e("#wpcontent").css("padding-left",parseInt(wcp_settings.folder_width)+20+"px"),setTimeout(function(){e("#wcp-content").removeClass("no-transition")},250)),s=wcp_settings.nonce,wcp_settings.folder_width=o.size.width,e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_change_post_width&width="+a+"&nonce="+s,method:"post",success:function(e){}}),o.size.width<=225&&(e(".wcp-content").width(225),wcp_settings.folder_width=225)}}),e(document).on("contextmenu",".jstree-anchor",function(t){return k=t.pageX,j=t.pageY,e(this).find("span.folder-inline-edit").trigger("click"),!1}),e(document).on("click",".folder-actions span.folder-inline-edit",function(s){var o;(s.stopImmediatePropagation(),s.stopPropagation(),0!=wcp_settings.can_manage_folder)&&(isHigh=e(this).closest("li.jstree-node").hasClass("is-high"),isSticky=e(this).closest("li.jstree-node").hasClass("is-sticky"),isStickyClass=!!isSticky,e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),menuHtml="<div class='dynamic-menu' data-id='"+e(this).closest("li").prop("id")+"'><ul>",menuHtml+=n?"<li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>":"<li class='new-folder-pro'><a target='_blank' href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Sub-folder (Pro)</a></li>",menuHtml+="<li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span>Rename</a></li><li class='sticky-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class='sticky-pin'><i class='pfolder-pin'></i></span>Sticky Folder (Pro)</a></li>",menuHtml+=r?"<li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>"+(isHigh?"Remove Star":"Add a Star")+"</a></li>":"<li class='mark-folder-pro'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-star'></i></span>"+(isHigh?"Remove Star (Pro)":"Add a Star (Pro)")+"</a></li>",menuHtml+="<li class='lock-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class='dashicons dashicons-lock'></span>Lock Folder (Pro)</a></li><li class='duplicate-folder-pro'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-clone'></i></span>Duplicate folder (Pro)</a></li>",hasPosts=parseInt(e(this).closest("a.jstree-anchor").find(".premio-folder-count").text()),"attachment"==wcp_settings.post_type&&hasPosts&&(menuHtml+="<li target='_blank' class='download-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-zip-file'></i></span>Download Zip (Pro)</a></li>"),menuHtml+="<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span>Delete</a></li></ul></div>",e("body").append(menuHtml),s.pageX==t||s.pageY==t?(e(".dynamic-menu").css("left",k),e(".dynamic-menu").css("top",j-10),o=j):(e(".dynamic-menu").css("left",s.pageX),e(".dynamic-menu").css("top",s.pageY),o=s.pageY),e(this).parents("li.jstree-node").addClass("active-menu"),o+e(".dynamic-menu").height()>e(window).height()&&e(".dynamic-menu").css("margin-top",e(window).height()-(o+e(".dynamic-menu").height())))}),e(document).on("click",".sticky-folders .sticky-fldr > a",function(t){t.stopPropagation();var s=e(this).closest("li").data("folder-id");e(".jstree-node[id='"+s+"']").length&&(e(".jstree-clicked").removeClass("jstree-clicked"),e(".active-item").removeClass("active-item"),e("#js-tree-menu").jstree("select_node",c),e(".jstree-node[id='"+s+"'] > a.jstree-anchor").trigger("click"),e(".jstree-node[id='"+s+"'] > a.jstree-anchor").addClass("jstree-clicked"),e(".sticky-folders .sticky-folder-"+s+" a").addClass("active-item"))}),e(document).on("contextmenu",".sticky-folders li .sticky-fldr > a",function(t){return e(this).find("span.update-inline-record").trigger("click"),!1}),e(document).on("click",".tree-structure a",function(t){t.stopPropagation();var s=e(this).data("id");e(".jstree-node[id='"+s+"']").length&&(e(".jstree-clicked").removeClass("jstree-clicked"),e(".active-item").removeClass("active-item"),e("#js-tree-menu").jstree("select_node",c),e(".jstree-node[id='"+s+"'] > a.jstree-anchor").trigger("click"),e(".jstree-node[id='"+s+"'] > a.jstree-anchor").addClass("jstree-clicked"),e(".sticky-folders .sticky-folder-"+s+" a").addClass("active-item"))}),e(document).on("click",".update-inline-record",function(s){var o;(s.stopImmediatePropagation(),s.stopPropagation(),0!=wcp_settings.can_manage_folder)&&(isHigh=e(this).closest("li.sticky-fldr").hasClass("is-high"),isSticky=e(this).closest("li.sticky-fldr").hasClass("is-sticky"),isStickyClass=!!isSticky,e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),menuHtml="<div class='dynamic-menu' data-id='"+e(this).closest("li").data("folder-id")+"'><ul>",menuHtml+=n?"<li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>":"<li class='new-folder-pro'><a target='_blank' href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Sub-folder (Pro)</a></li>",menuHtml+="<li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span>Rename</a></li><li class='sticky-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class='sticky-pin'><i class='pfolder-pin'></i></span>Sticky Folder (Pro)</a></li>",menuHtml+=r?"<li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>"+(isHigh?"Remove Star":"Add a Star")+"</a></li>":"<li class='mark-folder-pro'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-star'></i></span>"+(isHigh?"Remove Star (Pro)":"Add a Star (Pro)")+"</a></li>",menuHtml+="<li class='lock-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class='dashicons dashicons-lock'></span>Lock Folder (Pro)</a></li><li class='duplicate-folder-pro'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-clone'></i></span>Duplicate folder (Pro)</a></li>",hasPosts=parseInt(e(this).closest("li.jstree-node").find("h3.title:first > .total-count").text()),"attachment"==wcp_settings.post_type&&hasPosts&&(menuHtml+="<li class='download-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-zip-file'></i></span>Download Zip (Pro)</a></li>"),menuHtml+="<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span> Delete</a></li></ul></div>",e("body").append(menuHtml),s.pageX==t||s.pageY==t?(e(".dynamic-menu").css("left",k),e(".dynamic-menu").css("top",j-10),o=j):(e(".dynamic-menu").css("left",s.pageX),e(".dynamic-menu").css("top",s.pageY),o=s.pageY),o+e(".dynamic-menu").height()>e(window).height()&&e(".dynamic-menu").css("margin-top",e(window).height()-(o+e(".dynamic-menu").height())))}),e(document).on("click",".dynamic-menu",function(e){e.stopImmediatePropagation(),e.stopPropagation()}),e(document).on("click",".new-folder-pro",function(t){t.preventDefault(),e(".dynamic-menu").remove(),e("#sub-folder-popup").show()}),e(document).on("click",".close-popup-button a",function(){e(".folder-popup-form").hide()}),e(document).on("click","body, html",function(){e(".dynamic-menu").remove()}),e(".wcp-hide-show-buttons .toggle-buttons").click(function(){var t="show";e(this).hasClass("hide-folders")&&(t="hide"),e(".wcp-hide-show-buttons .toggle-buttons").toggleClass("active"),s=wcp_settings.nonce,"show"==t?(e("#wcp-content").addClass("no-transition"),e("#wcp-content").removeClass("hide-folders-area"),"1"==wcp_settings.isRTL?(e("#wpcontent").css("padding-right",parseInt(wcp_settings.folder_width)+20+"px"),e("#wpcontent").css("padding-left","0px")):e("#wpcontent").css("padding-left",parseInt(wcp_settings.folder_width)+20+"px"),setTimeout(function(){e("#wcp-content").removeClass("no-transition")},250)):(e("#wcp-content").addClass("hide-folders-area"),"1"==wcp_settings.isRTL?(e("#wpcontent").css("padding-right","20px"),e("#wpcontent").css("padding-left","0px")):e("#wpcontent").css("padding-left","20px")),e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_change_folder_display_status&status="+t+"&nonce="+s,method:"post",success:function(e){}})}),C(),e(document).ajaxComplete(function(e,s,o){o.data!=t&&""!=o.data&&-1!=o.data.indexOf("action=query-attachments")&&C()})}),e(window).on("resize",function(){T()}),e(window).scroll(function(){}),e(document).ready(function(){e(document).on("click","#add-new-folder",function(){e("#js-tree-menu a.jstree-clicked").length?(f=e("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id"),n||e("#pro-notice").removeClass("hide-it")):(f=0,e("#pro-notice").addClass("hide-it")),p=!1,U()}),e(document).on("click",".new-folder",function(){f=e(this).closest(".dynamic-menu").data("id"),p=!1,U()}),e(document).on("click",".duplicate-folder",function(t){t.stopPropagation(),f=e(this).closest(".dynamic-menu").data("id"),e(".dynamic-menu").remove(),p=!1,u=!0,U(),N()}),e(document).on("submit","#save-folder-form",function(t){if(t.stopPropagation(),t.preventDefault(),folderNameDynamic=e.trim(e("#add-update-folder-name").val()),""==e.trim(folderNameDynamic))e(".folder-form-errors").addClass("active"),e("#add-update-folder-name").focus();else{e("#save-folder-data").html('<span class="dashicons dashicons-update"></span>'),e("#add-update-folder").addClass("disabled");var s=f;p&&(s=0),n||(s=0),h=0==s?e("#js-tree-menu > ul > li.jstree-node").length:e("#js-tree-menu > ul > li.jstree-node[id='"+s+"'] > ul.jstree-children > li").length+1,e.ajax({url:wcp_settings.ajax_url,data:{parent_id:s,type:wcp_settings.post_type,action:"wcp_add_new_folder",nonce:wcp_settings.nonce,term_id:s,order:h,name:folderNameDynamic,is_duplicate:u,duplicate_from:m},method:"post",success:function(t){if(result=e.parseJSON(t),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),-1==result.status)e("#no-more-folder-credit").show();else if("1"==result.status){if(o=parseInt(result.is_key_active),a=parseInt(result.folders),e("#current-folder").text(a),e("#ttl-fldr").text(10),F(),N(),result.data.length)for(var s=0;s<result.data.length;s++){var r={folder_id:result.data[s].term_id,folder_count:0,is_sticky:result.data[s].is_sticky,is_high:result.data[s].is_high,nonce:result.data[s].nonce,slug:result.data[s].slug,is_deleted:0};v.push(r),e("#js-tree-menu").jstree().create_node(result.parent_id,{id:result.data[s].term_id,text:" "+result.data[s].title},"last",function(){e(".jstree-node[id='"+result.data[s].term_id+"']").attr("data-nonce",result.data[s].nonce),e(".jstree-node[id='"+result.data[s].term_id+"']").attr("data-slug",result.data[s].slug)})}E(),L(),e("#media-attachment-taxonomy-filter").length&&(f=result.term_id,B(0))}else e("#error-folder-popup-message").html(result.message),e("#error-folder-popup").show()}})}return!1})}),e(document).ready(function(){e("#inline-update").click(function(){e("#js-tree-menu a.jstree-clicked").length&&(f=e("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id"),O())}),e(document).on("click",".rename-folder",function(t){t.stopPropagation(),f=e(this).closest(".dynamic-menu").data("id"),O(),e(".dynamic-menu").remove()}),e(document).on("click",".form-cancel-btn",function(){e(".folder-popup-form").hide()}),e(document).on("click",".folder-popup-form",function(t){e(".folder-popup-form").hide()}),e(document).on("click",".popup-form-content",function(e){e.stopPropagation()}),e(document).on("submit","#update-folder-form",function(o){return o.stopPropagation(),o.preventDefault(),folderNameDynamic=e("#update-folder-item-name").val(),""==e.trim(folderNameDynamic)?(e(".folder-form-errors").addClass("active"),e("#update-folder-item-name").focus()):(e("#update-folder-data").html('<span class="dashicons dashicons-update"></span>'),e("#update-folder-item").addClass("disabled"),s=I(f,"nonce"),parentID=e(".jstree-node[id='"+f+"']").closest("li.jstree-node").attr("id"),parentID==t&&(parentID=0),e.ajax({url:wcp_settings.ajax_url,data:{parent_id:parentID,type:wcp_settings.post_type,action:"wcp_update_folder",nonce:s,term_id:f,order:h,name:folderNameDynamic},method:"post",success:function(t){result=e.parseJSON(t),"1"==result.status?(e("#js-tree-menu").jstree("rename_node",result.id," "+result.term_title),folderPostId=S(result.id),null!=folderPostId&&(v[folderPostId].nonce=result.nonce,v[folderPostId].slug=result.slug),N(),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),E(),e("#media-attachment-taxonomy-filter").length&&B(0)):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(result.message),e("#error-folder-popup").show())}})),!1})}),e(document).ready(function(){e("#inline-remove").click(function(){e("#js-tree-menu a.jstree-clicked").length?(f=e("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id"),z(1),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu")):e("#folder-hide-show-checkbox").is(":checked")&&(e(".dynamic-menu").remove(),z(1))}),e(document).on("click","#folder-hide-show-checkbox",function(){e(this).is(":checked")?e("#js-tree-menu").addClass("show-folder-checkbox"):(e("#js-tree-menu input.checkbox").attr("checked",!1),e("#js-tree-menu").removeClass("show-folder-checkbox"))}),e(document).on("click",".folder-checkbox, .input-checkbox",function(e){e.stopImmediatePropagation(),e.stopPropagation()}),e(document).on("click",".remove-folder",function(){folderID=e(this).closest("li.jstree-node").data("id"),f=e(this).closest(".dynamic-menu").data("id"),z(0),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu")}),e(document).on("click","#remove-folder-item",function(t){t.stopPropagation(),e(".folder-popup-form").addClass("disabled"),e("#remove-folder-item").html('<span class="dashicons dashicons-update"></span>'),s=I(f,"nonce"),g?function(){if(e("#folder-hide-show-checkbox").is(":checked")&&e("#js-tree-menu input.checkbox:checked").length>0){var t="";e("#js-tree-menu input.checkbox:checked").each(function(){t+=e(this).closest("li.jstree-node").attr("id")+",",e(this).closest("li.jstree-node").hasClass("jstree-clicked")&&!0}),e(".form-loader-count").css("width","100%"),e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_remove_muliple_folder&term_id="+t+"&nonce="+wcp_settings.nonce,method:"post",success:function(t){if(t=e.parseJSON(t),e(".form-loader-count").css("width","0px"),"1"==t.status){for(o=parseInt(t.is_key_active),a=parseInt(t.folders),e("#current-folder").text(a),i=0;i<t.term_ids.length;i++)e("#js-tree-menu").jstree().delete_node(t.term_ids[i]);e("#ttl-fldr").text(10),E(),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),D(),L(),E(),e("#js-tree-menu li.jstree-node").removeClass("has-sub-tree"),e("#js-tree-menu li.jstree-node").each(function(){e(this).find("ul.ui-sortable li").length?e(this).addClass("has-sub-tree"):e(this).removeClass("active")}),e("#wcp_folder_"+c).length||(e(".header-posts a").trigger("click"),c=0)}else window.location.reload();e("#folder-hide-show-checkbox").attr("checked",!1),e("#js-tree-menu input.checkbox").attr("checked",!1),e("#js-tree-menu").removeClass("show-folder-checkbox")}})}}():e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_remove_folder&term_id="+f+"&nonce="+s,method:"post",success:function(t){"1"==(t=e.parseJSON(t)).status?(e("#js-tree-menu").jstree().delete_node(f),o=parseInt(t.is_key_active),a=parseInt(t.folders),e("#current-folder").text(a),e("#ttl-fldr").text(10),e(".sticky-folders .sticky-folder-"+f).remove(),N(),E(),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),D(),L(),c==f&&e(".header-posts").trigger("click")):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})})}),e(document).ready(function(){e(document).on("click",".mark-folder",function(t){t.stopPropagation(),folderID=e(this).closest(".dynamic-menu").data("id"),s=I(folderID,"nonce"),e(".form-loader-count").css("width","100%"),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),e.ajax({url:wcp_settings.ajax_url,data:"term_id="+folderID+"&type="+wcp_settings.post_type+"&action=wcp_mark_un_mark_folder&nonce="+s,method:"post",cache:!1,success:function(t){t=e.parseJSON(t),e(".form-loader-count").css("width","0%"),"1"==t.status?(folderPostId=S(t.id),"1"==t.marked?(e("li.jstree-node[id='"+t.id+"']").addClass("is-high"),e(".sticky-folder-"+t.id).addClass("is-high"),null!=folderPostId&&(v[folderPostId].is_high=1)):(e("li.jstree-node[id='"+t.id+"']").removeClass("is-high"),e(".sticky-folder-"+t.id).removeClass("is-high"),null!=folderPostId&&(v[folderPostId].is_high=0)),N(),E()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})})}),e(document).ready(function(){e(document).on("click",".jstree-node .jstree-icon",function(){folderID=e(this).closest("li.jstree-node").attr("id"),e("li.jstree-node[id='"+folderID+"']").hasClass("jstree-open")?folderStatus=1:folderStatus=0,e(".form-loader-count").css("width","100%"),s=I(folderID,"nonce"),F(),e.ajax({url:wcp_settings.ajax_url,data:"is_active="+folderStatus+"&action=save_wcp_folder_state&term_id="+folderID+"&nonce="+s,method:"post",success:function(t){e(".form-loader-count").css("width","0"),"0"==(t=e.parseJSON(t)).status||(e("#wcp_folder_"+folderID).hasClass("active")?(e("#wcp_folder_"+folderID).removeClass("active"),e("#wcp_folder_"+folderID).find("ul.ui-sortable:first-child > li").slideUp(),folderStatus=0):(e("#wcp_folder_"+folderID).addClass("active"),e("#wcp_folder_"+folderID).find("ul.ui-sortable:first-child > li").slideDown(),folderStatus=1),E())}})})}),e(document).ready(function(){e(document).on("click","a.jstree-anchor",function(t){if(x=1,t.stopPropagation(),e(".un-categorised-items").removeClass("active-item"),e(".header-posts a").removeClass("active-item"),e("active-item").removeClass("active-item"),c=e(this).closest("li.jstree-node").attr("id"),f=e(this).closest("li.jstree-node").attr("id"),e(".sticky-folders .sticky-folder-"+c+" a").addClass("active-item"),e("#media-attachment-taxonomy-filter").length){var s=e(this).closest("li.jstree-node").attr("id");e("#media-attachment-taxonomy-filter").val(s),e("#media-attachment-taxonomy-filter").trigger("change"),thisSlug=I(s,"slug"),w=wcp_settings.page_url+thisSlug+"&paged="+x;var o={Title:thisSlug,Url:w};history.pushState(o,o.Title,o.Url),A(thisSlug),e(".custom-media-select").removeClass("active")}else{var a=I(c,"slug");w=wcp_settings.page_url+a+"&paged="+x,e(".form-loader-count").css("width","100%"),e("#folder-posts-filter").length?e("#folder-posts-filter").load(w+" #posts-filter",function(){var t={Title:a,Url:w};history.pushState(t,t.Title,t.Url),A(a),"show"!=wcp_settings.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),P()}):e("#wpbody").load(w+" #wpbody-content",function(){var t={Title:a,Url:w};history.pushState(t,t.Title,t.Url),A(a),"show"!=wcp_settings.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),P()})}H(),e(".sticky-folders .sticky-folder-"+c+" a").addClass("active-item")}),e(".header-posts").click(function(){if(c="",e(".wcp-container .route").removeClass("active-item"),e(".un-categorised-items").removeClass("active-item"),e(".sticky-folders .active-item").removeClass("active-item"),e(".header-posts a").addClass("active-item"),e(".jstree-clicked").removeClass("jstree-clicked"),e("#media-attachment-taxonomy-filter").length){c="",e("#media-attachment-taxonomy-filter").val("all"),e("#media-attachment-taxonomy-filter").trigger("change");var t={Title:"",Url:wcp_settings.page_url};history.pushState(t,t.Title,t.Url),A("all"),H()}else x=1,w=wcp_settings.page_url+"&paged="+x,e(".form-loader-count").css("width","100%"),e("#folder-posts-filter").length?e("#folder-posts-filter").load(w+" #posts-filter",function(){var t={Title:"",Url:w};history.pushState(t,t.Title,t.Url),A("all"),"show"!=wcp_settings.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),H(),P()}):e("#wpbody").load(w+" #wpbody-content",function(){var t={Title:"",Url:w};history.pushState(t,t.Title,t.Url),A("all"),"show"!=wcp_settings.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),H(),P()})}),e(".un-categorised-items").click(function(){if(c="-1",e(".wcp-container .route").removeClass("active-item"),e(".header-posts a").removeClass("active-item"),e(".un-categorised-items").addClass("active-item"),e(".sticky-folders .active-item").removeClass("active-item"),e(".jstree-clicked").removeClass("jstree-clicked"),e("#media-attachment-taxonomy-filter").length){e("#media-attachment-taxonomy-filter").val("unassigned"),e("#media-attachment-taxonomy-filter").trigger("change");var t={Title:"",Url:wcp_settings.page_url+"-1"};history.pushState(t,t.Title,t.Url),A("-1"),H()}else x=1,w=wcp_settings.page_url+"-1&paged="+x,e(".form-loader-count").css("width","100%"),e("#folder-posts-filter").length?e("#folder-posts-filter").load(w+" #posts-filter",function(){var t={Title:"",Url:w};history.pushState(t,t.Title,t.Url),A("-1"),"show"!=wcp_settings.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),H(),P()}):e("#wpbody").load(w+" #wpbody-content",function(){var t={Title:"",Url:w};history.pushState(t,t.Title,t.Url),A("-1"),"show"!=wcp_settings.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),H(),P()})}),e("#expand-collapse-list").click(function(t){t.stopPropagation(),statusType=0,e(this).hasClass("all-open")?(e(this).removeClass("all-open"),statusType=0,e(this).attr("data-folder-tooltip","Expand"),e("#js-tree-menu").jstree("close_all")):(e(this).addClass("all-open"),statusType=1,e(this).attr("data-folder-tooltip","Collapse"),e("#js-tree-menu").jstree("open_all")),_="",e("#js-tree-menu .jstree-node:not(.jstree-leaf)").each(function(){_+=e(this).attr("id")+","}),""!=_&&(e(".form-loader-count").css("width","100%"),s=wcp_settings.nonce,e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_change_all_status&status="+statusType+"&folders="+_+"&nonce="+s,method:"post",success:function(t){e(".form-loader-count").css("width","0"),"0"==(t=e.parseJSON(t)).status&&(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show(),window.location.reload(!0))}}))}),F()}),e(document).ready(function(){e(document).on("click","body, html",function(){e(".folder-order").removeClass("active")}),e(document).on("click","#sort-order-list",function(t){t.stopPropagation(),e(".folder-order").toggleClass("active")}),e(document).on("click",".folder-sort-menu a:not(.pro-feature)",function(t){t.stopPropagation(),t.preventDefault(),e(".form-loader-count").css("width","100%"),e(".folder-order").removeClass("active"),lastOrderStatus=e(this).attr("data-sort"),e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_folders_by_order&nonce="+wcp_settings.nonce+"&order="+e(this).attr("data-sort"),method:"post",success:function(t){1==(t=e.parseJSON(t)).status&&(e("#js-tree-menu").jstree().destroy(),e("#js-tree-menu").append("<ul></ul>"),e("#js-tree-menu ul").html(t.data),J(),b=t.terms,V()),e(".form-loader-count").css("width","0"),H()}})})}),e(document).ready(function(){e(document).on("keyup","#folder-search",function(){R()}),e(document).on("change","#folder-search",function(){R()}),e(document).on("blur","#folder-search",function(){R()})}),e(document).ready(function(){e(document).on("click",".folders-toggle-button",function(){dbStatus="show",e(".tree-structure-content").hasClass("active")?(e(".tree-structure-content .tree-structure").animate({height:"40px"},100,function(){e(".tree-structure-content").removeClass("active")}),dbStatus="hide"):(newHeight=parseInt(e(".tree-structure-content .tree-structure").attr("data-height")),e(".tree-structure-content .tree-structure").animate({height:newHeight},100,function(){e(".tree-structure-content").addClass("active")})),e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_hide_folders&status="+dbStatus+"&nonce="+wcp_settings.nonce,method:"post",success:function(e){}})})}),e(document).ready(function(){e(document).on("click",".thumbnail-hover-box a",function(t){return t.stopPropagation(),t.stopImmediatePropagation(),t.preventDefault(),window.open(e(this).prop("href"),"_blank"),wp.media.frame.close(),!1}),e(document).on("click","#doaction",function(t){return"move_to_folder"==e("#bulk-action-selector-top").val()?(Y(),!1):"edit"==e("#bulk-action-selector-top").val()&&"object"==typeof inlineEditPost?(inlineEditPost.setBulk(),!1):void 0}),e(document).on("click","#doaction2",function(t){return"move_to_folder"==e("#bulk-action-selector-bottom").val()?(Y(),!1):"edit"==e("#bulk-action-selector-bottom").val()&&"object"==typeof inlineEditPost?(inlineEditPost.setBulk(),!1):void 0}),e(document).on("submit","#bulk-folder-form",function(t){t.stopPropagation(),t.preventDefault(),""!=e("#bulk-select").val()&&(chkStr="",e(".wp-list-table input:checked").each(function(){chkStr+=e(this).val()+","}),""!=e("#bulk-select").val()&&("-1"==e("#bulk-select").val()?e.ajax({url:wcp_settings.ajax_url,data:"post_id="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_remove_post_folder&folder_id="+e(this).val()+"&nonce="+wcp_settings.nonce+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+c,method:"post",success:function(t){e("#bulk-move-folder").hide(),D(),E()}}):(s=I(e("#bulk-select").val(),"nonce"),e.ajax({url:wcp_settings.ajax_url,data:"post_ids="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+e("#bulk-select").val()+"&nonce="+s+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+c,method:"post",success:function(t){t=e.parseJSON(t),e("#bulk-move-folder").hide(),"1"==t.status?(D(),E()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}}))))})}),"attachment"==wcp_settings.post_type){e(document).ready(function(){"show"==wcp_settings.show_in_page&&e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div><div class="folders-toggle-button"><span></span></div></div>'),N(),M()});var W=null;function B(s){W=e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_get_default_list&active_id="+c,method:"post",beforeSend:function(){null!=W&&W.abort()},success:function(o){if(o=e.parseJSON(o),e(".header-posts .total-count").text(o.total_items),e(".un-categorised-items .total-count").text(o.empty_items),selectedVal=e("#media-attachment-taxonomy-filter").val(),"all"!=selectedVal&&1==s){var a=parent.wp;a.media!=t&&(a.media.frame.setState("insert"),null!==a.media.frame.content.get()?(a.media.frame.content.get().collection.props.set({ignore:+new Date}),a.media.frame.content.get().options.selection.reset()):a.media.frame.library.props.set({ignore:+new Date}))}b=o.taxonomies,V(),""!=c&&e("#wcp_folder_"+c).addClass("active-item"),p&&(e("#title_"+f).trigger("click"),p=!1)}})}function q(){e(".media-frame-content .media-toolbar").width(e(".media-frame-content").width()-20)}function X(e,t,s){var o="";if(s){var a=new Date;a.setTime(a.getTime()+24*s*60*60*1e3),o="; expires="+a.toUTCString()}document.cookie=e+"="+(t||"")+o+"; path=/"}function Q(e){document.cookie=e+"=; Max-Age=-99999999;"}q(),e(window).resize(function(){q()}),e(document).on("click",".button.organize-button",function(){e(".media-frame").hasClass("mode-select")?Q("media-select-mode"):X("media-select-mode","on",7),e("button.button.media-button.select-mode-toggle-button").trigger("click"),e(".media-frame").hasClass("mode-select")?(e(".media-info-message").addClass("active"),e(".select-all-item-btn").addClass("active")):(e(".media-info-message, .custom-media-select").removeClass("active"),e(".select-all-item-btn").removeClass("active"))}),e(document).on("click",".select-mode-toggle-button",function(){setTimeout(function(){e(".media-frame").hasClass("mode-select")||X("media-select-mode","off",-1),e(".media-frame").hasClass("mode-select")?(e(".media-info-message").addClass("active"),e(".select-all-item-btn").addClass("active")):(e(".media-info-message, .custom-media-select").removeClass("active"),e(".select-all-item-btn").removeClass("active"))},10)}),e(document).on("click",".select-all-item-btn",function(){e("ul.attachments li:not(.selected)").trigger("click")}),e(document).on("change",".folder_for_media",function(){"add-folder"==e(this).val()&&(f=0,p=!0,U())}),e(window).scroll(function(){})}else;function Z(){e("button.button.media-button.select-mode-toggle-button").length&&(clearInterval(l),e("button.button.media-button.select-mode-toggle-button").after("<button class='button organize-button'>Bulk Organize</button>"),e(".media-toolbar-secondary").append("<span class='media-info-message'>Drag and drop your media files to the relevant folders</span>"),e(".delete-selected-button").before("<button type='button' class='button button-primary select-all-item-btn'>Select All</button>"),e(".media-toolbar-secondary").after("<div class='custom-media-select'>Move Selected files to: <select class='media-select-folder'></select></div>"),e(".media-toolbar").append("<div style='clear:both;'></div><div class='media-folder-loader'><span>Uploading files</span> <span id='current_upload_files'></span>/<span id='total_upload_files'></span><div class='folder-progress'><div class='folder-meter orange-bg'><span></span></div></div></div>"),e(".wcp-custom-form").length&&(wp.Uploader!==t&&wp.Uploader.queue.on("reset",function(){B(1)}),e(document).ajaxComplete(function(e,t,s){actionName=s.data,"undefined"!=typeof actionName&&actionName.length&&0==actionName.indexOf("action=delete-post&id=")&&B(0)})),setTimeout(function(){docReferrar=document.referrer,-1!=docReferrar.indexOf("wp-admin/upload.php")?(mediaMode=function(e){for(var t=e+"=",s=document.cookie.split(";"),o=0;o<s.length;o++){for(var a=s[o];" "==a.charAt(0);)a=a.substring(1,a.length);if(0==a.indexOf(t))return a.substring(t.length,a.length)}return null}("media-select-mode"),"on"==mediaMode&&(e("button.button.media-button.select-mode-toggle-button").trigger("click"),e(".media-frame").hasClass("mode-select")?e(".media-info-message").addClass("active"):e(".media-info-message, .custom-media-select").removeClass("active"))):Q("media-select-mode"),B(1)},1e3))}e(document).ready(function(){"attachment"==wcp_settings.post_type&&e("#tmpl-media-frame").length&&(l=setInterval(function(){Z()},1e3)),e(document).on("click",".attachments-browser ul.attachments .thumbnail",function(){"attachment"==wcp_settings.post_type&&e(".media-toolbar").hasClass("media-toolbar-mode-select")&&(0==e("ul.attachments li.selected").length?e(".custom-media-select").removeClass("active"):e(".custom-media-select").addClass("active"))}),e(document).on("change",".media-select-folder",function(){if("attachment"==wcp_settings.post_type&&""!=e(this).val()){var t="";e(".attachments-browser li.attachment.selected").each(function(){t+=e(this).attr("data-id")+","}),"-1"==e(this).val()?e.ajax({url:wcp_settings.ajax_url,data:"post_id="+t+"&type="+wcp_settings.post_type+"&action=wcp_remove_post_folder&folder_id="+e(this).val()+"&nonce="+wcp_settings.nonce+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+c,method:"post",success:function(t){0!=f&&f!=e(".media-select-folder").val()&&e("ul.attachments li.selected").remove(),D(),E()}}):(s=I(e(this).val(),"nonce"),e.ajax({url:wcp_settings.ajax_url,data:"post_ids="+t+"&type="+wcp_settings.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+e(this).val()+"&nonce="+s+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+c,method:"post",success:function(t){t=e.parseJSON(t),e("#bulk-move-folder").hide(),"1"==t.status?(0!=f&&f!=e(".media-select-folder").val()&&e("ul.attachments li.selected").remove(),D(),E()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}}))}})})});
|
assets/js/jquery.mcustomscrollbar.min.js
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
/* == malihu jquery custom scrollbar plugin == Version: 3.1.5, License: MIT License (MIT) */
|
2 |
+
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e:e(jQuery,window,document)}(function(e){!function(t){var o="function"==typeof define&&define.amd,a="undefined"!=typeof module&&module.exports,n="https:"==document.location.protocol?"https:":"http:",i="cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js";o||(a?require("jquery-mousewheel")(e):e.event.special.mousewheel||e("head").append(decodeURI("%3Cscript src="+n+"//"+i+"%3E%3C/script%3E"))),t()}(function(){var t,o="mCustomScrollbar",a="mCS",n=".mCustomScrollbar",i={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},r=0,l={},s=window.attachEvent&&!window.addEventListener?1:0,c=!1,d=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],u={init:function(t){var t=e.extend(!0,{},i,t),o=f.call(this);if(t.live){var s=t.liveSelector||this.selector||n,c=e(s);if("off"===t.live)return void m(s);l[s]=setTimeout(function(){c.mCustomScrollbar(t),"once"===t.live&&c.length&&m(s)},500)}else m(s);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?"x":p(t.axis),t.scrollInertia=t.scrollInertia>0&&t.scrollInertia<17?17:t.scrollInertia,"object"!=typeof t.mouseWheel&&1==t.mouseWheel&&(t.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),t.mouseWheel.scrollAmount=t.mouseWheelPixels?t.mouseWheelPixels:t.mouseWheel.scrollAmount,t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta?t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta,t.scrollButtons.scrollType=g(t.scrollButtons.scrollType),h(t),e(o).each(function(){var o=e(this);if(!o.data(a)){o.data(a,{idx:++r,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:o.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var n=o.data(a),i=n.opt,l=o.data("mcs-axis"),s=o.data("mcs-scrollbar-position"),c=o.data("mcs-theme");l&&(i.axis=l),s&&(i.scrollbarPosition=s),c&&(i.theme=c,h(i)),v.call(this),n&&i.callbacks.onCreate&&"function"==typeof i.callbacks.onCreate&&i.callbacks.onCreate.call(this),e("#mCSB_"+n.idx+"_container img:not(."+d[2]+")").addClass(d[2]),u.update.call(null,o)}})},update:function(t,o){var n=t||f.call(this);return e(n).each(function(){var t=e(this);if(t.data(a)){var n=t.data(a),i=n.opt,r=e("#mCSB_"+n.idx+"_container"),l=e("#mCSB_"+n.idx),s=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")];if(!r.length)return;n.tweenRunning&&Q(t),o&&n&&i.callbacks.onBeforeUpdate&&"function"==typeof i.callbacks.onBeforeUpdate&&i.callbacks.onBeforeUpdate.call(this),t.hasClass(d[3])&&t.removeClass(d[3]),t.hasClass(d[4])&&t.removeClass(d[4]),l.css("max-height","none"),l.height()!==t.height()&&l.css("max-height",t.height()),_.call(this),"y"===i.axis||i.advanced.autoExpandHorizontalScroll||r.css("width",x(r)),n.overflowed=y.call(this),M.call(this),i.autoDraggerLength&&S.call(this),b.call(this),T.call(this);var c=[Math.abs(r[0].offsetTop),Math.abs(r[0].offsetLeft)];"x"!==i.axis&&(n.overflowed[0]?s[0].height()>s[0].parent().height()?B.call(this):(G(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}),n.contentReset.y=null):(B.call(this),"y"===i.axis?k.call(this):"yx"===i.axis&&n.overflowed[1]&&G(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==i.axis&&(n.overflowed[1]?s[1].width()>s[1].parent().width()?B.call(this):(G(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}),n.contentReset.x=null):(B.call(this),"x"===i.axis?k.call(this):"yx"===i.axis&&n.overflowed[0]&&G(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),o&&n&&(2===o&&i.callbacks.onImageLoad&&"function"==typeof i.callbacks.onImageLoad?i.callbacks.onImageLoad.call(this):3===o&&i.callbacks.onSelectorChange&&"function"==typeof i.callbacks.onSelectorChange?i.callbacks.onSelectorChange.call(this):i.callbacks.onUpdate&&"function"==typeof i.callbacks.onUpdate&&i.callbacks.onUpdate.call(this)),N.call(this)}})},scrollTo:function(t,o){if("undefined"!=typeof t&&null!=t){var n=f.call(this);return e(n).each(function(){var n=e(this);if(n.data(a)){var i=n.data(a),r=i.opt,l={trigger:"external",scrollInertia:r.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},s=e.extend(!0,{},l,o),c=Y.call(this,t),d=s.scrollInertia>0&&s.scrollInertia<17?17:s.scrollInertia;c[0]=X.call(this,c[0],"y"),c[1]=X.call(this,c[1],"x"),s.moveDragger&&(c[0]*=i.scrollRatio.y,c[1]*=i.scrollRatio.x),s.dur=ne()?0:d,setTimeout(function(){null!==c[0]&&"undefined"!=typeof c[0]&&"x"!==r.axis&&i.overflowed[0]&&(s.dir="y",s.overwrite="all",G(n,c[0].toString(),s)),null!==c[1]&&"undefined"!=typeof c[1]&&"y"!==r.axis&&i.overflowed[1]&&(s.dir="x",s.overwrite="none",G(n,c[1].toString(),s))},s.timeout)}})}},stop:function(){var t=f.call(this);return e(t).each(function(){var t=e(this);t.data(a)&&Q(t)})},disable:function(t){var o=f.call(this);return e(o).each(function(){var o=e(this);if(o.data(a)){o.data(a);N.call(this,"remove"),k.call(this),t&&B.call(this),M.call(this,!0),o.addClass(d[3])}})},destroy:function(){var t=f.call(this);return e(t).each(function(){var n=e(this);if(n.data(a)){var i=n.data(a),r=i.opt,l=e("#mCSB_"+i.idx),s=e("#mCSB_"+i.idx+"_container"),c=e(".mCSB_"+i.idx+"_scrollbar");r.live&&m(r.liveSelector||e(t).selector),N.call(this,"remove"),k.call(this),B.call(this),n.removeData(a),$(this,"mcs"),c.remove(),s.find("img."+d[2]).removeClass(d[2]),l.replaceWith(s.contents()),n.removeClass(o+" _"+a+"_"+i.idx+" "+d[6]+" "+d[7]+" "+d[5]+" "+d[3]).addClass(d[4])}})}},f=function(){return"object"!=typeof e(this)||e(this).length<1?n:this},h=function(t){var o=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],a=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],n=["minimal","minimal-dark"],i=["minimal","minimal-dark"],r=["minimal","minimal-dark"];t.autoDraggerLength=e.inArray(t.theme,o)>-1?!1:t.autoDraggerLength,t.autoExpandScrollbar=e.inArray(t.theme,a)>-1?!1:t.autoExpandScrollbar,t.scrollButtons.enable=e.inArray(t.theme,n)>-1?!1:t.scrollButtons.enable,t.autoHideScrollbar=e.inArray(t.theme,i)>-1?!0:t.autoHideScrollbar,t.scrollbarPosition=e.inArray(t.theme,r)>-1?"outside":t.scrollbarPosition},m=function(e){l[e]&&(clearTimeout(l[e]),$(l,e))},p=function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},g=function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},v=function(){var t=e(this),n=t.data(a),i=n.opt,r=i.autoExpandScrollbar?" "+d[1]+"_expand":"",l=["<div id='mCSB_"+n.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+n.idx+"_scrollbar mCS-"+i.theme+" mCSB_scrollTools_vertical"+r+"'><div class='"+d[12]+"'><div id='mCSB_"+n.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>","<div id='mCSB_"+n.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+n.idx+"_scrollbar mCS-"+i.theme+" mCSB_scrollTools_horizontal"+r+"'><div class='"+d[12]+"'><div id='mCSB_"+n.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],s="yx"===i.axis?"mCSB_vertical_horizontal":"x"===i.axis?"mCSB_horizontal":"mCSB_vertical",c="yx"===i.axis?l[0]+l[1]:"x"===i.axis?l[1]:l[0],u="yx"===i.axis?"<div id='mCSB_"+n.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",f=i.autoHideScrollbar?" "+d[6]:"",h="x"!==i.axis&&"rtl"===n.langDir?" "+d[7]:"";i.setWidth&&t.css("width",i.setWidth),i.setHeight&&t.css("height",i.setHeight),i.setLeft="y"!==i.axis&&"rtl"===n.langDir?"989999px":i.setLeft,t.addClass(o+" _"+a+"_"+n.idx+f+h).wrapInner("<div id='mCSB_"+n.idx+"' class='mCustomScrollBox mCS-"+i.theme+" "+s+"'><div id='mCSB_"+n.idx+"_container' class='mCSB_container' style='position:relative; top:"+i.setTop+"; left:"+i.setLeft+";' dir='"+n.langDir+"' /></div>");var m=e("#mCSB_"+n.idx),p=e("#mCSB_"+n.idx+"_container");"y"===i.axis||i.advanced.autoExpandHorizontalScroll||p.css("width",x(p)),"outside"===i.scrollbarPosition?("static"===t.css("position")&&t.css("position","relative"),t.css("overflow","visible"),m.addClass("mCSB_outside").after(c)):(m.addClass("mCSB_inside").append(c),p.wrap(u)),w.call(this);var g=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")];g[0].css("min-height",g[0].height()),g[1].css("min-width",g[1].width())},x=function(t){var o=[t[0].scrollWidth,Math.max.apply(Math,t.children().map(function(){return e(this).outerWidth(!0)}).get())],a=t.parent().width();return o[0]>a?o[0]:o[1]>a?o[1]:"100%"},_=function(){var t=e(this),o=t.data(a),n=o.opt,i=e("#mCSB_"+o.idx+"_container");if(n.advanced.autoExpandHorizontalScroll&&"y"!==n.axis){i.css({width:"auto","min-width":0,"overflow-x":"scroll"});var r=Math.ceil(i[0].scrollWidth);3===n.advanced.autoExpandHorizontalScroll||2!==n.advanced.autoExpandHorizontalScroll&&r>i.parent().width()?i.css({width:r,"min-width":"100%","overflow-x":"inherit"}):i.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(i[0].getBoundingClientRect().right+.4)-Math.floor(i[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},w=function(){var t=e(this),o=t.data(a),n=o.opt,i=e(".mCSB_"+o.idx+"_scrollbar:first"),r=oe(n.scrollButtons.tabindex)?"tabindex='"+n.scrollButtons.tabindex+"'":"",l=["<a href='#' class='"+d[13]+"' "+r+" />","<a href='#' class='"+d[14]+"' "+r+" />","<a href='#' class='"+d[15]+"' "+r+" />","<a href='#' class='"+d[16]+"' "+r+" />"],s=["x"===n.axis?l[2]:l[0],"x"===n.axis?l[3]:l[1],l[2],l[3]];n.scrollButtons.enable&&i.prepend(s[0]).append(s[1]).next(".mCSB_scrollTools").prepend(s[2]).append(s[3])},S=function(){var t=e(this),o=t.data(a),n=e("#mCSB_"+o.idx),i=e("#mCSB_"+o.idx+"_container"),r=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],l=[n.height()/i.outerHeight(!1),n.width()/i.outerWidth(!1)],c=[parseInt(r[0].css("min-height")),Math.round(l[0]*r[0].parent().height()),parseInt(r[1].css("min-width")),Math.round(l[1]*r[1].parent().width())],d=s&&c[1]<c[0]?c[0]:c[1],u=s&&c[3]<c[2]?c[2]:c[3];r[0].css({height:d,"max-height":r[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":c[0]+"px"}),r[1].css({width:u,"max-width":r[1].parent().width()-10})},b=function(){var t=e(this),o=t.data(a),n=e("#mCSB_"+o.idx),i=e("#mCSB_"+o.idx+"_container"),r=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],l=[i.outerHeight(!1)-n.height(),i.outerWidth(!1)-n.width()],s=[l[0]/(r[0].parent().height()-r[0].height()),l[1]/(r[1].parent().width()-r[1].width())];o.scrollRatio={y:s[0],x:s[1]}},C=function(e,t,o){var a=o?d[0]+"_expanded":"",n=e.closest(".mCSB_scrollTools");"active"===t?(e.toggleClass(d[0]+" "+a),n.toggleClass(d[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(d[0]),n.removeClass(d[1])):(e.addClass(d[0]),n.addClass(d[1])))},y=function(){var t=e(this),o=t.data(a),n=e("#mCSB_"+o.idx),i=e("#mCSB_"+o.idx+"_container"),r=null==o.overflowed?i.height():i.outerHeight(!1),l=null==o.overflowed?i.width():i.outerWidth(!1),s=i[0].scrollHeight,c=i[0].scrollWidth;return s>r&&(r=s),c>l&&(l=c),[r>n.height(),l>n.width()]},B=function(){var t=e(this),o=t.data(a),n=o.opt,i=e("#mCSB_"+o.idx),r=e("#mCSB_"+o.idx+"_container"),l=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];if(Q(t),("x"!==n.axis&&!o.overflowed[0]||"y"===n.axis&&o.overflowed[0])&&(l[0].add(r).css("top",0),G(t,"_resetY")),"y"!==n.axis&&!o.overflowed[1]||"x"===n.axis&&o.overflowed[1]){var s=dx=0;"rtl"===o.langDir&&(s=i.width()-r.outerWidth(!1),dx=Math.abs(s/o.scrollRatio.x)),r.css("left",s),l[1].css("left",dx),G(t,"_resetX")}},T=function(){function t(){r=setTimeout(function(){e.event.special.mousewheel?(clearTimeout(r),W.call(o[0])):t()},100)}var o=e(this),n=o.data(a),i=n.opt;if(!n.bindEvents){if(I.call(this),i.contentTouchScroll&&D.call(this),E.call(this),i.mouseWheel.enable){var r;t()}P.call(this),U.call(this),i.advanced.autoScrollOnFocus&&H.call(this),i.scrollButtons.enable&&F.call(this),i.keyboard.enable&&q.call(this),n.bindEvents=!0}},k=function(){var t=e(this),o=t.data(a),n=o.opt,i=a+"_"+o.idx,r=".mCSB_"+o.idx+"_scrollbar",l=e("#mCSB_"+o.idx+",#mCSB_"+o.idx+"_container,#mCSB_"+o.idx+"_container_wrapper,"+r+" ."+d[12]+",#mCSB_"+o.idx+"_dragger_vertical,#mCSB_"+o.idx+"_dragger_horizontal,"+r+">a"),s=e("#mCSB_"+o.idx+"_container");n.advanced.releaseDraggableSelectors&&l.add(e(n.advanced.releaseDraggableSelectors)),n.advanced.extraDraggableSelectors&&l.add(e(n.advanced.extraDraggableSelectors)),o.bindEvents&&(e(document).add(e(!A()||top.document)).unbind("."+i),l.each(function(){e(this).unbind("."+i)}),clearTimeout(t[0]._focusTimeout),$(t[0],"_focusTimeout"),clearTimeout(o.sequential.step),$(o.sequential,"step"),clearTimeout(s[0].onCompleteTimeout),$(s[0],"onCompleteTimeout"),o.bindEvents=!1)},M=function(t){var o=e(this),n=o.data(a),i=n.opt,r=e("#mCSB_"+n.idx+"_container_wrapper"),l=r.length?r:e("#mCSB_"+n.idx+"_container"),s=[e("#mCSB_"+n.idx+"_scrollbar_vertical"),e("#mCSB_"+n.idx+"_scrollbar_horizontal")],c=[s[0].find(".mCSB_dragger"),s[1].find(".mCSB_dragger")];"x"!==i.axis&&(n.overflowed[0]&&!t?(s[0].add(c[0]).add(s[0].children("a")).css("display","block"),l.removeClass(d[8]+" "+d[10])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[0].css("display","none"),l.removeClass(d[10])):(s[0].css("display","none"),l.addClass(d[10])),l.addClass(d[8]))),"y"!==i.axis&&(n.overflowed[1]&&!t?(s[1].add(c[1]).add(s[1].children("a")).css("display","block"),l.removeClass(d[9]+" "+d[11])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[1].css("display","none"),l.removeClass(d[11])):(s[1].css("display","none"),l.addClass(d[11])),l.addClass(d[9]))),n.overflowed[0]||n.overflowed[1]?o.removeClass(d[5]):o.addClass(d[5])},O=function(t){var o=t.type,a=t.target.ownerDocument!==document&&null!==frameElement?[e(frameElement).offset().top,e(frameElement).offset().left]:null,n=A()&&t.target.ownerDocument!==top.document&&null!==frameElement?[e(t.view.frameElement).offset().top,e(t.view.frameElement).offset().left]:[0,0];switch(o){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return a?[t.originalEvent.pageY-a[0]+n[0],t.originalEvent.pageX-a[1]+n[1],!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var i=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],r=t.originalEvent.touches.length||t.originalEvent.changedTouches.length;return t.target.ownerDocument!==document?[i.screenY,i.screenX,r>1]:[i.pageY,i.pageX,r>1];default:return a?[t.pageY-a[0]+n[0],t.pageX-a[1]+n[1],!1]:[t.pageY,t.pageX,!1]}},I=function(){function t(e,t,a,n){if(h[0].idleTimer=d.scrollInertia<233?250:0,o.attr("id")===f[1])var i="x",s=(o[0].offsetLeft-t+n)*l.scrollRatio.x;else var i="y",s=(o[0].offsetTop-e+a)*l.scrollRatio.y;G(r,s.toString(),{dir:i,drag:!0})}var o,n,i,r=e(this),l=r.data(a),d=l.opt,u=a+"_"+l.idx,f=["mCSB_"+l.idx+"_dragger_vertical","mCSB_"+l.idx+"_dragger_horizontal"],h=e("#mCSB_"+l.idx+"_container"),m=e("#"+f[0]+",#"+f[1]),p=d.advanced.releaseDraggableSelectors?m.add(e(d.advanced.releaseDraggableSelectors)):m,g=d.advanced.extraDraggableSelectors?e(!A()||top.document).add(e(d.advanced.extraDraggableSelectors)):e(!A()||top.document);m.bind("contextmenu."+u,function(e){e.preventDefault()}).bind("mousedown."+u+" touchstart."+u+" pointerdown."+u+" MSPointerDown."+u,function(t){if(t.stopImmediatePropagation(),t.preventDefault(),ee(t)){c=!0,s&&(document.onselectstart=function(){return!1}),L.call(h,!1),Q(r),o=e(this);var a=o.offset(),l=O(t)[0]-a.top,u=O(t)[1]-a.left,f=o.height()+a.top,m=o.width()+a.left;f>l&&l>0&&m>u&&u>0&&(n=l,i=u),C(o,"active",d.autoExpandScrollbar)}}).bind("touchmove."+u,function(e){e.stopImmediatePropagation(),e.preventDefault();var a=o.offset(),r=O(e)[0]-a.top,l=O(e)[1]-a.left;t(n,i,r,l)}),e(document).add(g).bind("mousemove."+u+" pointermove."+u+" MSPointerMove."+u,function(e){if(o){var a=o.offset(),r=O(e)[0]-a.top,l=O(e)[1]-a.left;if(n===r&&i===l)return;t(n,i,r,l)}}).add(p).bind("mouseup."+u+" touchend."+u+" pointerup."+u+" MSPointerUp."+u,function(){o&&(C(o,"active",d.autoExpandScrollbar),o=null),c=!1,s&&(document.onselectstart=null),L.call(h,!0)})},D=function(){function o(e){if(!te(e)||c||O(e)[2])return void(t=0);t=1,b=0,C=0,d=1,y.removeClass("mCS_touch_action");var o=I.offset();u=O(e)[0]-o.top,f=O(e)[1]-o.left,z=[O(e)[0],O(e)[1]]}function n(e){if(te(e)&&!c&&!O(e)[2]&&(T.documentTouchScroll||e.preventDefault(),e.stopImmediatePropagation(),(!C||b)&&d)){g=K();var t=M.offset(),o=O(e)[0]-t.top,a=O(e)[1]-t.left,n="mcsLinearOut";if(E.push(o),W.push(a),z[2]=Math.abs(O(e)[0]-z[0]),z[3]=Math.abs(O(e)[1]-z[1]),B.overflowed[0])var i=D[0].parent().height()-D[0].height(),r=u-o>0&&o-u>-(i*B.scrollRatio.y)&&(2*z[3]<z[2]||"yx"===T.axis);if(B.overflowed[1])var l=D[1].parent().width()-D[1].width(),h=f-a>0&&a-f>-(l*B.scrollRatio.x)&&(2*z[2]<z[3]||"yx"===T.axis);r||h?(U||e.preventDefault(),b=1):(C=1,y.addClass("mCS_touch_action")),U&&e.preventDefault(),w="yx"===T.axis?[u-o,f-a]:"x"===T.axis?[null,f-a]:[u-o,null],I[0].idleTimer=250,B.overflowed[0]&&s(w[0],R,n,"y","all",!0),B.overflowed[1]&&s(w[1],R,n,"x",L,!0)}}function i(e){if(!te(e)||c||O(e)[2])return void(t=0);t=1,e.stopImmediatePropagation(),Q(y),p=K();var o=M.offset();h=O(e)[0]-o.top,m=O(e)[1]-o.left,E=[],W=[]}function r(e){if(te(e)&&!c&&!O(e)[2]){d=0,e.stopImmediatePropagation(),b=0,C=0,v=K();var t=M.offset(),o=O(e)[0]-t.top,a=O(e)[1]-t.left;if(!(v-g>30)){_=1e3/(v-p);var n="mcsEaseOut",i=2.5>_,r=i?[E[E.length-2],W[W.length-2]]:[0,0];x=i?[o-r[0],a-r[1]]:[o-h,a-m];var u=[Math.abs(x[0]),Math.abs(x[1])];_=i?[Math.abs(x[0]/4),Math.abs(x[1]/4)]:[_,_];var f=[Math.abs(I[0].offsetTop)-x[0]*l(u[0]/_[0],_[0]),Math.abs(I[0].offsetLeft)-x[1]*l(u[1]/_[1],_[1])];w="yx"===T.axis?[f[0],f[1]]:"x"===T.axis?[null,f[1]]:[f[0],null],S=[4*u[0]+T.scrollInertia,4*u[1]+T.scrollInertia];var y=parseInt(T.contentTouchScroll)||0;w[0]=u[0]>y?w[0]:0,w[1]=u[1]>y?w[1]:0,B.overflowed[0]&&s(w[0],S[0],n,"y",L,!1),B.overflowed[1]&&s(w[1],S[1],n,"x",L,!1)}}}function l(e,t){var o=[1.5*t,2*t,t/1.5,t/2];return e>90?t>4?o[0]:o[3]:e>60?t>3?o[3]:o[2]:e>30?t>8?o[1]:t>6?o[0]:t>4?t:o[2]:t>8?t:o[3]}function s(e,t,o,a,n,i){e&&G(y,e.toString(),{dur:t,scrollEasing:o,dir:a,overwrite:n,drag:i})}var d,u,f,h,m,p,g,v,x,_,w,S,b,C,y=e(this),B=y.data(a),T=B.opt,k=a+"_"+B.idx,M=e("#mCSB_"+B.idx),I=e("#mCSB_"+B.idx+"_container"),D=[e("#mCSB_"+B.idx+"_dragger_vertical"),e("#mCSB_"+B.idx+"_dragger_horizontal")],E=[],W=[],R=0,L="yx"===T.axis?"none":"all",z=[],P=I.find("iframe"),H=["touchstart."+k+" pointerdown."+k+" MSPointerDown."+k,"touchmove."+k+" pointermove."+k+" MSPointerMove."+k,"touchend."+k+" pointerup."+k+" MSPointerUp."+k],U=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;I.bind(H[0],function(e){o(e)}).bind(H[1],function(e){n(e)}),M.bind(H[0],function(e){i(e)}).bind(H[2],function(e){r(e)}),P.length&&P.each(function(){e(this).bind("load",function(){A(this)&&e(this.contentDocument||this.contentWindow.document).bind(H[0],function(e){o(e),i(e)}).bind(H[1],function(e){n(e)}).bind(H[2],function(e){r(e)})})})},E=function(){function o(){return window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0}function n(e,t,o){d.type=o&&i?"stepped":"stepless",d.scrollAmount=10,j(r,e,t,"mcsLinearOut",o?60:null)}var i,r=e(this),l=r.data(a),s=l.opt,d=l.sequential,u=a+"_"+l.idx,f=e("#mCSB_"+l.idx+"_container"),h=f.parent();f.bind("mousedown."+u,function(){t||i||(i=1,c=!0)}).add(document).bind("mousemove."+u,function(e){if(!t&&i&&o()){var a=f.offset(),r=O(e)[0]-a.top+f[0].offsetTop,c=O(e)[1]-a.left+f[0].offsetLeft;r>0&&r<h.height()&&c>0&&c<h.width()?d.step&&n("off",null,"stepped"):("x"!==s.axis&&l.overflowed[0]&&(0>r?n("on",38):r>h.height()&&n("on",40)),"y"!==s.axis&&l.overflowed[1]&&(0>c?n("on",37):c>h.width()&&n("on",39)))}}).bind("mouseup."+u+" dragend."+u,function(){t||(i&&(i=0,n("off",null)),c=!1)})},W=function(){function t(t,a){if(Q(o),!z(o,t.target)){var r="auto"!==i.mouseWheel.deltaFactor?parseInt(i.mouseWheel.deltaFactor):s&&t.deltaFactor<100?100:t.deltaFactor||100,d=i.scrollInertia;if("x"===i.axis||"x"===i.mouseWheel.axis)var u="x",f=[Math.round(r*n.scrollRatio.x),parseInt(i.mouseWheel.scrollAmount)],h="auto"!==i.mouseWheel.scrollAmount?f[1]:f[0]>=l.width()?.9*l.width():f[0],m=Math.abs(e("#mCSB_"+n.idx+"_container")[0].offsetLeft),p=c[1][0].offsetLeft,g=c[1].parent().width()-c[1].width(),v="y"===i.mouseWheel.axis?t.deltaY||a:t.deltaX;else var u="y",f=[Math.round(r*n.scrollRatio.y),parseInt(i.mouseWheel.scrollAmount)],h="auto"!==i.mouseWheel.scrollAmount?f[1]:f[0]>=l.height()?.9*l.height():f[0],m=Math.abs(e("#mCSB_"+n.idx+"_container")[0].offsetTop),p=c[0][0].offsetTop,g=c[0].parent().height()-c[0].height(),v=t.deltaY||a;"y"===u&&!n.overflowed[0]||"x"===u&&!n.overflowed[1]||((i.mouseWheel.invert||t.webkitDirectionInvertedFromDevice)&&(v=-v),i.mouseWheel.normalizeDelta&&(v=0>v?-1:1),(v>0&&0!==p||0>v&&p!==g||i.mouseWheel.preventDefault)&&(t.stopImmediatePropagation(),t.preventDefault()),t.deltaFactor<5&&!i.mouseWheel.normalizeDelta&&(h=t.deltaFactor,d=17),G(o,(m-v*h).toString(),{dir:u,dur:d}))}}if(e(this).data(a)){var o=e(this),n=o.data(a),i=n.opt,r=a+"_"+n.idx,l=e("#mCSB_"+n.idx),c=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")],d=e("#mCSB_"+n.idx+"_container").find("iframe");d.length&&d.each(function(){e(this).bind("load",function(){A(this)&&e(this.contentDocument||this.contentWindow.document).bind("mousewheel."+r,function(e,o){t(e,o)})})}),l.bind("mousewheel."+r,function(e,o){t(e,o)})}},R=new Object,A=function(t){var o=!1,a=!1,n=null;if(void 0===t?a="#empty":void 0!==e(t).attr("id")&&(a=e(t).attr("id")),a!==!1&&void 0!==R[a])return R[a];if(t){try{var i=t.contentDocument||t.contentWindow.document;n=i.body.innerHTML}catch(r){}o=null!==n}else{try{var i=top.document;n=i.body.innerHTML}catch(r){}o=null!==n}return a!==!1&&(R[a]=o),o},L=function(e){var t=this.find("iframe");if(t.length){var o=e?"auto":"none";t.css("pointer-events",o)}},z=function(t,o){var n=o.nodeName.toLowerCase(),i=t.data(a).opt.mouseWheel.disableOver,r=["select","textarea"];return e.inArray(n,i)>-1&&!(e.inArray(n,r)>-1&&!e(o).is(":focus"))},P=function(){var t,o=e(this),n=o.data(a),i=a+"_"+n.idx,r=e("#mCSB_"+n.idx+"_container"),l=r.parent(),s=e(".mCSB_"+n.idx+"_scrollbar ."+d[12]);s.bind("mousedown."+i+" touchstart."+i+" pointerdown."+i+" MSPointerDown."+i,function(o){c=!0,e(o.target).hasClass("mCSB_dragger")||(t=1)}).bind("touchend."+i+" pointerup."+i+" MSPointerUp."+i,function(){c=!1}).bind("click."+i,function(a){if(t&&(t=0,e(a.target).hasClass(d[12])||e(a.target).hasClass("mCSB_draggerRail"))){Q(o);var i=e(this),s=i.find(".mCSB_dragger");if(i.parent(".mCSB_scrollTools_horizontal").length>0){if(!n.overflowed[1])return;var c="x",u=a.pageX>s.offset().left?-1:1,f=Math.abs(r[0].offsetLeft)-u*(.9*l.width())}else{if(!n.overflowed[0])return;var c="y",u=a.pageY>s.offset().top?-1:1,f=Math.abs(r[0].offsetTop)-u*(.9*l.height())}G(o,f.toString(),{dir:c,scrollEasing:"mcsEaseInOut"})}})},H=function(){var t=e(this),o=t.data(a),n=o.opt,i=a+"_"+o.idx,r=e("#mCSB_"+o.idx+"_container"),l=r.parent();r.bind("focusin."+i,function(){var o=e(document.activeElement),a=r.find(".mCustomScrollBox").length,i=0;o.is(n.advanced.autoScrollOnFocus)&&(Q(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=a?(i+17)*a:0,t[0]._focusTimeout=setTimeout(function(){var e=[ae(o)[0],ae(o)[1]],a=[r[0].offsetTop,r[0].offsetLeft],s=[a[0]+e[0]>=0&&a[0]+e[0]<l.height()-o.outerHeight(!1),a[1]+e[1]>=0&&a[0]+e[1]<l.width()-o.outerWidth(!1)],c="yx"!==n.axis||s[0]||s[1]?"all":"none";"x"===n.axis||s[0]||G(t,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:c,dur:i}),"y"===n.axis||s[1]||G(t,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:c,dur:i})},t[0]._focusTimer))})},U=function(){var t=e(this),o=t.data(a),n=a+"_"+o.idx,i=e("#mCSB_"+o.idx+"_container").parent();i.bind("scroll."+n,function(){0===i.scrollTop()&&0===i.scrollLeft()||e(".mCSB_"+o.idx+"_scrollbar").css("visibility","hidden")})},F=function(){var t=e(this),o=t.data(a),n=o.opt,i=o.sequential,r=a+"_"+o.idx,l=".mCSB_"+o.idx+"_scrollbar",s=e(l+">a");s.bind("contextmenu."+r,function(e){e.preventDefault()}).bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" MSPointerDown."+r+" mouseup."+r+" touchend."+r+" pointerup."+r+" MSPointerUp."+r+" mouseout."+r+" pointerout."+r+" MSPointerOut."+r+" click."+r,function(a){function r(e,o){i.scrollAmount=n.scrollButtons.scrollAmount,j(t,e,o)}if(a.preventDefault(),ee(a)){var l=e(this).attr("class");switch(i.type=n.scrollButtons.scrollType,a.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===i.type)return;c=!0,o.tweenRunning=!1,r("on",l);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===i.type)return;c=!1,i.dir&&r("off",l);break;case"click":if("stepped"!==i.type||o.tweenRunning)return;r("on",l)}}})},q=function(){function t(t){function a(e,t){r.type=i.keyboard.scrollType,r.scrollAmount=i.keyboard.scrollAmount,"stepped"===r.type&&n.tweenRunning||j(o,e,t)}switch(t.type){case"blur":n.tweenRunning&&r.dir&&a("off",null);break;case"keydown":case"keyup":var l=t.keyCode?t.keyCode:t.which,s="on";if("x"!==i.axis&&(38===l||40===l)||"y"!==i.axis&&(37===l||39===l)){if((38===l||40===l)&&!n.overflowed[0]||(37===l||39===l)&&!n.overflowed[1])return;"keyup"===t.type&&(s="off"),e(document.activeElement).is(u)||(t.preventDefault(),t.stopImmediatePropagation(),a(s,l))}else if(33===l||34===l){if((n.overflowed[0]||n.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type){Q(o);var f=34===l?-1:1;if("x"===i.axis||"yx"===i.axis&&n.overflowed[1]&&!n.overflowed[0])var h="x",m=Math.abs(c[0].offsetLeft)-f*(.9*d.width());else var h="y",m=Math.abs(c[0].offsetTop)-f*(.9*d.height());G(o,m.toString(),{dir:h,scrollEasing:"mcsEaseInOut"})}}else if((35===l||36===l)&&!e(document.activeElement).is(u)&&((n.overflowed[0]||n.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type)){if("x"===i.axis||"yx"===i.axis&&n.overflowed[1]&&!n.overflowed[0])var h="x",m=35===l?Math.abs(d.width()-c.outerWidth(!1)):0;else var h="y",m=35===l?Math.abs(d.height()-c.outerHeight(!1)):0;G(o,m.toString(),{dir:h,scrollEasing:"mcsEaseInOut"})}}}var o=e(this),n=o.data(a),i=n.opt,r=n.sequential,l=a+"_"+n.idx,s=e("#mCSB_"+n.idx),c=e("#mCSB_"+n.idx+"_container"),d=c.parent(),u="input,textarea,select,datalist,keygen,[contenteditable='true']",f=c.find("iframe"),h=["blur."+l+" keydown."+l+" keyup."+l];f.length&&f.each(function(){e(this).bind("load",function(){A(this)&&e(this.contentDocument||this.contentWindow.document).bind(h[0],function(e){t(e)})})}),s.attr("tabindex","0").bind(h[0],function(e){t(e)})},j=function(t,o,n,i,r){function l(e){u.snapAmount&&(f.scrollAmount=u.snapAmount instanceof Array?"x"===f.dir[0]?u.snapAmount[1]:u.snapAmount[0]:u.snapAmount);var o="stepped"!==f.type,a=r?r:e?o?p/1.5:g:1e3/60,n=e?o?7.5:40:2.5,s=[Math.abs(h[0].offsetTop),Math.abs(h[0].offsetLeft)],d=[c.scrollRatio.y>10?10:c.scrollRatio.y,c.scrollRatio.x>10?10:c.scrollRatio.x],m="x"===f.dir[0]?s[1]+f.dir[1]*(d[1]*n):s[0]+f.dir[1]*(d[0]*n),v="x"===f.dir[0]?s[1]+f.dir[1]*parseInt(f.scrollAmount):s[0]+f.dir[1]*parseInt(f.scrollAmount),x="auto"!==f.scrollAmount?v:m,_=i?i:e?o?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",w=!!e;return e&&17>a&&(x="x"===f.dir[0]?s[1]:s[0]),G(t,x.toString(),{dir:f.dir[0],scrollEasing:_,dur:a,onComplete:w}),e?void(f.dir=!1):(clearTimeout(f.step),void(f.step=setTimeout(function(){l()},a)))}function s(){clearTimeout(f.step),$(f,"step"),Q(t)}var c=t.data(a),u=c.opt,f=c.sequential,h=e("#mCSB_"+c.idx+"_container"),m="stepped"===f.type,p=u.scrollInertia<26?26:u.scrollInertia,g=u.scrollInertia<1?17:u.scrollInertia;switch(o){case"on":if(f.dir=[n===d[16]||n===d[15]||39===n||37===n?"x":"y",n===d[13]||n===d[15]||38===n||37===n?-1:1],Q(t),oe(n)&&"stepped"===f.type)return;l(m);break;case"off":s(),(m||c.tweenRunning&&f.dir)&&l(!0)}},Y=function(t){var o=e(this).data(a).opt,n=[];return"function"==typeof t&&(t=t()),t instanceof Array?n=t.length>1?[t[0],t[1]]:"x"===o.axis?[null,t[0]]:[t[0],null]:(n[0]=t.y?t.y:t.x||"x"===o.axis?null:t,n[1]=t.x?t.x:t.y||"y"===o.axis?null:t),"function"==typeof n[0]&&(n[0]=n[0]()),"function"==typeof n[1]&&(n[1]=n[1]()),n},X=function(t,o){if(null!=t&&"undefined"!=typeof t){var n=e(this),i=n.data(a),r=i.opt,l=e("#mCSB_"+i.idx+"_container"),s=l.parent(),c=typeof t;o||(o="x"===r.axis?"x":"y");var d="x"===o?l.outerWidth(!1)-s.width():l.outerHeight(!1)-s.height(),f="x"===o?l[0].offsetLeft:l[0].offsetTop,h="x"===o?"left":"top";switch(c){case"function":return t();case"object":var m=t.jquery?t:e(t);if(!m.length)return;return"x"===o?ae(m)[1]:ae(m)[0];case"string":case"number":if(oe(t))return Math.abs(t);if(-1!==t.indexOf("%"))return Math.abs(d*parseInt(t)/100);if(-1!==t.indexOf("-="))return Math.abs(f-parseInt(t.split("-=")[1]));if(-1!==t.indexOf("+=")){var p=f+parseInt(t.split("+=")[1]);return p>=0?0:Math.abs(p)}if(-1!==t.indexOf("px")&&oe(t.split("px")[0]))return Math.abs(t.split("px")[0]);if("top"===t||"left"===t)return 0;if("bottom"===t)return Math.abs(s.height()-l.outerHeight(!1));if("right"===t)return Math.abs(s.width()-l.outerWidth(!1));if("first"===t||"last"===t){var m=l.find(":"+t);return"x"===o?ae(m)[1]:ae(m)[0]}return e(t).length?"x"===o?ae(e(t))[1]:ae(e(t))[0]:(l.css(h,t),void u.update.call(null,n[0]))}}},N=function(t){function o(){return clearTimeout(f[0].autoUpdate),0===l.parents("html").length?void(l=null):void(f[0].autoUpdate=setTimeout(function(){return c.advanced.updateOnSelectorChange&&(s.poll.change.n=i(),s.poll.change.n!==s.poll.change.o)?(s.poll.change.o=s.poll.change.n,void r(3)):c.advanced.updateOnContentResize&&(s.poll.size.n=l[0].scrollHeight+l[0].scrollWidth+f[0].offsetHeight+l[0].offsetHeight+l[0].offsetWidth,s.poll.size.n!==s.poll.size.o)?(s.poll.size.o=s.poll.size.n,void r(1)):!c.advanced.updateOnImageLoad||"auto"===c.advanced.updateOnImageLoad&&"y"===c.axis||(s.poll.img.n=f.find("img").length,s.poll.img.n===s.poll.img.o)?void((c.advanced.updateOnSelectorChange||c.advanced.updateOnContentResize||c.advanced.updateOnImageLoad)&&o()):(s.poll.img.o=s.poll.img.n,void f.find("img").each(function(){n(this)}))},c.advanced.autoUpdateTimeout))}function n(t){function o(e,t){return function(){
|
3 |
+
return t.apply(e,arguments)}}function a(){this.onload=null,e(t).addClass(d[2]),r(2)}if(e(t).hasClass(d[2]))return void r();var n=new Image;n.onload=o(n,a),n.src=t.src}function i(){c.advanced.updateOnSelectorChange===!0&&(c.advanced.updateOnSelectorChange="*");var e=0,t=f.find(c.advanced.updateOnSelectorChange);return c.advanced.updateOnSelectorChange&&t.length>0&&t.each(function(){e+=this.offsetHeight+this.offsetWidth}),e}function r(e){clearTimeout(f[0].autoUpdate),u.update.call(null,l[0],e)}var l=e(this),s=l.data(a),c=s.opt,f=e("#mCSB_"+s.idx+"_container");return t?(clearTimeout(f[0].autoUpdate),void $(f[0],"autoUpdate")):void o()},V=function(e,t,o){return Math.round(e/t)*t-o},Q=function(t){var o=t.data(a),n=e("#mCSB_"+o.idx+"_container,#mCSB_"+o.idx+"_container_wrapper,#mCSB_"+o.idx+"_dragger_vertical,#mCSB_"+o.idx+"_dragger_horizontal");n.each(function(){Z.call(this)})},G=function(t,o,n){function i(e){return s&&c.callbacks[e]&&"function"==typeof c.callbacks[e]}function r(){return[c.callbacks.alwaysTriggerOffsets||w>=S[0]+y,c.callbacks.alwaysTriggerOffsets||-B>=w]}function l(){var e=[h[0].offsetTop,h[0].offsetLeft],o=[x[0].offsetTop,x[0].offsetLeft],a=[h.outerHeight(!1),h.outerWidth(!1)],i=[f.height(),f.width()];t[0].mcs={content:h,top:e[0],left:e[1],draggerTop:o[0],draggerLeft:o[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(a[0])-i[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(a[1])-i[1])),direction:n.dir}}var s=t.data(a),c=s.opt,d={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:c.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},n=e.extend(d,n),u=[n.dur,n.drag?0:n.dur],f=e("#mCSB_"+s.idx),h=e("#mCSB_"+s.idx+"_container"),m=h.parent(),p=c.callbacks.onTotalScrollOffset?Y.call(t,c.callbacks.onTotalScrollOffset):[0,0],g=c.callbacks.onTotalScrollBackOffset?Y.call(t,c.callbacks.onTotalScrollBackOffset):[0,0];if(s.trigger=n.trigger,0===m.scrollTop()&&0===m.scrollLeft()||(e(".mCSB_"+s.idx+"_scrollbar").css("visibility","visible"),m.scrollTop(0).scrollLeft(0)),"_resetY"!==o||s.contentReset.y||(i("onOverflowYNone")&&c.callbacks.onOverflowYNone.call(t[0]),s.contentReset.y=1),"_resetX"!==o||s.contentReset.x||(i("onOverflowXNone")&&c.callbacks.onOverflowXNone.call(t[0]),s.contentReset.x=1),"_resetY"!==o&&"_resetX"!==o){if(!s.contentReset.y&&t[0].mcs||!s.overflowed[0]||(i("onOverflowY")&&c.callbacks.onOverflowY.call(t[0]),s.contentReset.x=null),!s.contentReset.x&&t[0].mcs||!s.overflowed[1]||(i("onOverflowX")&&c.callbacks.onOverflowX.call(t[0]),s.contentReset.x=null),c.snapAmount){var v=c.snapAmount instanceof Array?"x"===n.dir?c.snapAmount[1]:c.snapAmount[0]:c.snapAmount;o=V(o,v,c.snapOffset)}switch(n.dir){case"x":var x=e("#mCSB_"+s.idx+"_dragger_horizontal"),_="left",w=h[0].offsetLeft,S=[f.width()-h.outerWidth(!1),x.parent().width()-x.width()],b=[o,0===o?0:o/s.scrollRatio.x],y=p[1],B=g[1],T=y>0?y/s.scrollRatio.x:0,k=B>0?B/s.scrollRatio.x:0;break;case"y":var x=e("#mCSB_"+s.idx+"_dragger_vertical"),_="top",w=h[0].offsetTop,S=[f.height()-h.outerHeight(!1),x.parent().height()-x.height()],b=[o,0===o?0:o/s.scrollRatio.y],y=p[0],B=g[0],T=y>0?y/s.scrollRatio.y:0,k=B>0?B/s.scrollRatio.y:0}b[1]<0||0===b[0]&&0===b[1]?b=[0,0]:b[1]>=S[1]?b=[S[0],S[1]]:b[0]=-b[0],t[0].mcs||(l(),i("onInit")&&c.callbacks.onInit.call(t[0])),clearTimeout(h[0].onCompleteTimeout),J(x[0],_,Math.round(b[1]),u[1],n.scrollEasing),!s.tweenRunning&&(0===w&&b[0]>=0||w===S[0]&&b[0]<=S[0])||J(h[0],_,Math.round(b[0]),u[0],n.scrollEasing,n.overwrite,{onStart:function(){n.callbacks&&n.onStart&&!s.tweenRunning&&(i("onScrollStart")&&(l(),c.callbacks.onScrollStart.call(t[0])),s.tweenRunning=!0,C(x),s.cbOffsets=r())},onUpdate:function(){n.callbacks&&n.onUpdate&&i("whileScrolling")&&(l(),c.callbacks.whileScrolling.call(t[0]))},onComplete:function(){if(n.callbacks&&n.onComplete){"yx"===c.axis&&clearTimeout(h[0].onCompleteTimeout);var e=h[0].idleTimer||0;h[0].onCompleteTimeout=setTimeout(function(){i("onScroll")&&(l(),c.callbacks.onScroll.call(t[0])),i("onTotalScroll")&&b[1]>=S[1]-T&&s.cbOffsets[0]&&(l(),c.callbacks.onTotalScroll.call(t[0])),i("onTotalScrollBack")&&b[1]<=k&&s.cbOffsets[1]&&(l(),c.callbacks.onTotalScrollBack.call(t[0])),s.tweenRunning=!1,h[0].idleTimer=0,C(x,"hide")},e)}}})}},J=function(e,t,o,a,n,i,r){function l(){S.stop||(x||m.call(),x=K()-v,s(),x>=S.time&&(S.time=x>S.time?x+f-(x-S.time):x+f-1,S.time<x+1&&(S.time=x+1)),S.time<a?S.id=h(l):g.call())}function s(){a>0?(S.currVal=u(S.time,_,b,a,n),w[t]=Math.round(S.currVal)+"px"):w[t]=o+"px",p.call()}function c(){f=1e3/60,S.time=x+f,h=window.requestAnimationFrame?window.requestAnimationFrame:function(e){return s(),setTimeout(e,.01)},S.id=h(l)}function d(){null!=S.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(S.id):clearTimeout(S.id),S.id=null)}function u(e,t,o,a,n){switch(n){case"linear":case"mcsLinear":return o*e/a+t;case"mcsLinearOut":return e/=a,e--,o*Math.sqrt(1-e*e)+t;case"easeInOutSmooth":return e/=a/2,1>e?o/2*e*e+t:(e--,-o/2*(e*(e-2)-1)+t);case"easeInOutStrong":return e/=a/2,1>e?o/2*Math.pow(2,10*(e-1))+t:(e--,o/2*(-Math.pow(2,-10*e)+2)+t);case"easeInOut":case"mcsEaseInOut":return e/=a/2,1>e?o/2*e*e*e+t:(e-=2,o/2*(e*e*e+2)+t);case"easeOutSmooth":return e/=a,e--,-o*(e*e*e*e-1)+t;case"easeOutStrong":return o*(-Math.pow(2,-10*e/a)+1)+t;case"easeOut":case"mcsEaseOut":default:var i=(e/=a)*e,r=i*e;return t+o*(.499999999999997*r*i+-2.5*i*i+5.5*r+-6.5*i+4*e)}}e._mTween||(e._mTween={top:{},left:{}});var f,h,r=r||{},m=r.onStart||function(){},p=r.onUpdate||function(){},g=r.onComplete||function(){},v=K(),x=0,_=e.offsetTop,w=e.style,S=e._mTween[t];"left"===t&&(_=e.offsetLeft);var b=o-_;S.stop=0,"none"!==i&&d(),c()},K=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},Z=function(){var e=this;e._mTween||(e._mTween={top:{},left:{}});for(var t=["top","left"],o=0;o<t.length;o++){var a=t[o];e._mTween[a].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(e._mTween[a].id):clearTimeout(e._mTween[a].id),e._mTween[a].id=null,e._mTween[a].stop=1)}},$=function(e,t){try{delete e[t]}catch(o){e[t]=null}},ee=function(e){return!(e.which&&1!==e.which)},te=function(e){var t=e.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},oe=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ae=function(e){var t=e.parents(".mCSB_container");return[e.offset().top-t.offset().top,e.offset().left-t.offset().left]},ne=function(){function e(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return e[t]+"Hidden";return null}var t=e();return t?document[t]:!1};e.fn[o]=function(t){return u[t]?u[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):u.init.apply(this,arguments)},e[o]=function(t){return u[t]?u[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):u.init.apply(this,arguments)},e[o].defaults=i,window[o]=!0,e(window).bind("load",function(){e(n)[o](),e.extend(e.expr[":"],{mcsInView:e.expr[":"].mcsInView||function(t){var o,a,n=e(t),i=n.parents(".mCSB_container");if(i.length)return o=i.parent(),a=[i[0].offsetTop,i[0].offsetLeft],a[0]+ae(n)[0]>=0&&a[0]+ae(n)[0]<o.height()-n.outerHeight(!1)&&a[1]+ae(n)[1]>=0&&a[1]+ae(n)[1]<o.width()-n.outerWidth(!1)},mcsInSight:e.expr[":"].mcsInSight||function(t,o,a){var n,i,r,l,s=e(t),c=s.parents(".mCSB_container"),d="exact"===a[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(c.length)return n=[s.outerHeight(!1),s.outerWidth(!1)],r=[c[0].offsetTop+ae(s)[0],c[0].offsetLeft+ae(s)[1]],i=[c.parent()[0].offsetHeight,c.parent()[0].offsetWidth],l=[n[0]<i[0]?d[0]:d[1],n[1]<i[1]?d[0]:d[1]],r[0]-i[0]*l[0][0]<0&&r[0]+n[0]-i[0]*l[0][1]>=0&&r[1]-i[1]*l[1][0]<0&&r[1]+n[1]-i[1]*l[1][1]>=0},mcsOverflow:e.expr[":"].mcsOverflow||function(t){var o=e(t).data(a);if(o)return o.overflowed[0]||o.overflowed[1]}})})})});
|
assets/js/jquery.mousewheel.min.js
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* jQuery Mousewheel 3.1.13
|
3 |
+
*
|
4 |
+
* Copyright 2015 jQuery Foundation and other contributors
|
5 |
+
* Released under the MIT license.
|
6 |
+
* http://jquery.org/license
|
7 |
+
*/
|
8 |
+
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});
|
assets/js/page-post-media.js
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
(function (factory) {
|
2 |
"use strict";
|
3 |
if (typeof define === 'function' && define.amd) {
|
@@ -10,6 +11,7 @@
|
|
10 |
factory(jQuery);
|
11 |
}
|
12 |
}(function ($, undefined) {
|
|
|
13 |
var treeId = ".folder-modal #js-tree-menu";
|
14 |
var folderPropertyArray = [];
|
15 |
var selectedFolderMediaId = -1;
|
@@ -37,6 +39,8 @@
|
|
37 |
var foldersArray = [];
|
38 |
var contextOffsetX = null;
|
39 |
var contextOffsetY = null;
|
|
|
|
|
40 |
|
41 |
var listFolderString = "<li class='grid-view' data-id='__folder_id__' id='folder___folder_id__'>" +
|
42 |
"<div class='folder-item is-folder' data-id='__folder_id__'>" +
|
@@ -181,6 +185,7 @@
|
|
181 |
var wpMediaObj = window.wp;
|
182 |
if (typeof wpMediaObj !== 'undefined' && typeof wpMediaObj.Uploader === 'function') {
|
183 |
wpMediaObj.media.view.Modal.prototype.on('open', function() {
|
|
|
184 |
setTimeout(function(){
|
185 |
if($("#media-attachment-taxonomy-filter").length) {
|
186 |
if($("#media-attachment-taxonomy-filter").val() == "all") {
|
@@ -198,6 +203,9 @@
|
|
198 |
}
|
199 |
},100);
|
200 |
});
|
|
|
|
|
|
|
201 |
$.extend(wpMediaObj.Uploader.prototype, {
|
202 |
progress: function () {
|
203 |
|
@@ -242,6 +250,10 @@
|
|
242 |
|
243 |
resetDDCounter();
|
244 |
if(typeof wp_media.media.frame !== "undefined" && wp_media.media.frame.content.get() !== null) {
|
|
|
|
|
|
|
|
|
245 |
wp_media.media.frame.content.get().collection.props.set({ignore: (+ new Date())});
|
246 |
wp_media.media.frame.content.get().options.selection.reset();
|
247 |
} else {
|
@@ -273,7 +285,6 @@
|
|
273 |
if($(".supports-drag-drop").length) {
|
274 |
$(".supports-drag-drop").each(function(){
|
275 |
if($(this).css("display") == "block" || $(this).css("display") == "inline-block") {
|
276 |
-
console.log("class added");
|
277 |
$(this).addClass("folder-modal");
|
278 |
}
|
279 |
});
|
@@ -342,10 +353,27 @@
|
|
342 |
|
343 |
$(document).ready(function(){
|
344 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
345 |
$( document ).ajaxComplete(function( event, xhr, settings ) {
|
346 |
if(settings.data != undefined && settings.data != "" && settings.data.indexOf("action=query-attachments") != -1) {
|
347 |
setDragAndDropElements();
|
348 |
}
|
|
|
|
|
|
|
|
|
|
|
349 |
});
|
350 |
|
351 |
foldersArray = folders_media_options.terms;
|
@@ -397,6 +425,16 @@
|
|
397 |
}
|
398 |
});
|
399 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
400 |
/* right click menu */
|
401 |
$(document).on("click", ".update-inline-record", function(e){
|
402 |
e.stopImmediatePropagation()
|
@@ -409,18 +447,27 @@
|
|
409 |
isStickyClass = (isSticky)?true:false;
|
410 |
$(".dynamic-menu").remove();
|
411 |
$(".active-menu").removeClass("active-menu");
|
412 |
-
menuHtml = "<div class='dynamic-menu' data-id='"+$(this).closest("li").data("folder-id")+"'><ul>"
|
413 |
-
|
414 |
-
"<li class='
|
415 |
-
|
416 |
-
"<li class='
|
417 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
418 |
|
419 |
hasPosts = parseInt($(this).closest("li.jstree-node").find("h3.title:first > .total-count").text());
|
420 |
if (folders_media_options.post_type == "attachment" && hasPosts) {
|
421 |
-
menuHtml += "<li class='download-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-zip-file'></i></span>
|
422 |
}
|
423 |
-
menuHtml += "<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span>
|
424 |
"</ul></div>";
|
425 |
|
426 |
$("body").append(menuHtml);
|
@@ -470,19 +517,28 @@
|
|
470 |
isStickyClass = (isSticky)?true:false;
|
471 |
$(".dynamic-menu").remove();
|
472 |
$(".active-menu").removeClass("active-menu");
|
473 |
-
menuHtml = "<div class='dynamic-menu' data-id='"+$(this).closest("li").prop("id")+"'><ul>"
|
474 |
-
|
475 |
-
"<li class='
|
476 |
-
|
477 |
-
"<li class='
|
478 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
479 |
|
480 |
hasPosts = parseInt($(this).closest("a.jstree-anchor").find(".premio-folder-count").text());
|
481 |
if (folders_media_options.post_type == "attachment" && hasPosts) {
|
482 |
-
menuHtml += "<li class='download-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-zip-file'></i></span>
|
483 |
}
|
484 |
-
menuHtml += "<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span>
|
485 |
-
|
486 |
$("body").append(menuHtml);
|
487 |
$(this).parents("li.jstree-node").addClass("active-menu");
|
488 |
var yPosition;
|
@@ -522,10 +578,14 @@
|
|
522 |
});
|
523 |
|
524 |
$(document).on("click", "#add-new-folder", function(e) {
|
525 |
-
if($("#
|
526 |
-
fileFolderID = $("#
|
|
|
|
|
|
|
527 |
} else {
|
528 |
fileFolderID = 0;
|
|
|
529 |
}
|
530 |
isItFromMedia = false;
|
531 |
addFolder();
|
@@ -549,6 +609,10 @@
|
|
549 |
parentId = 0;
|
550 |
}
|
551 |
|
|
|
|
|
|
|
|
|
552 |
if(parentId == 0) {
|
553 |
folderOrder = $("#js-tree-menu > ul > li.jstree-node").length;
|
554 |
} else {
|
@@ -860,7 +924,7 @@
|
|
860 |
}
|
861 |
});
|
862 |
|
863 |
-
$(document).on("click", ".folder-sort-menu a", function(e) {
|
864 |
e.stopPropagation();
|
865 |
e.preventDefault();
|
866 |
$(".form-loader-count").css("width", "100%");
|
@@ -888,9 +952,9 @@
|
|
888 |
$(document).on("click", ".jstree-node .jstree-icon", function(){
|
889 |
folderID = $(this).closest("li.jstree-node").attr("id");
|
890 |
if($("li.jstree-node[id='"+folderID+"']").hasClass("jstree-open")) {
|
891 |
-
folderStatus = 0;
|
892 |
-
} else {
|
893 |
folderStatus = 1;
|
|
|
|
|
894 |
}
|
895 |
$(".form-loader-count").css("width","100%");
|
896 |
nonce = getSettingForPost(folderID, 'nonce');
|
@@ -1261,6 +1325,7 @@
|
|
1261 |
"core": {
|
1262 |
'cache':false,
|
1263 |
"animation": 0,
|
|
|
1264 |
// "check_callback": true,
|
1265 |
check_callback: function(e, t, n, r, o) {
|
1266 |
$("*").removeClass("drag-bot").removeClass("drag-in").removeClass("drag-up");
|
@@ -1272,6 +1337,9 @@
|
|
1272 |
$("#jstree-dnd").text("Below "+$.trim($("#js-tree-menu").jstree(true).get_node(nodeId).text));
|
1273 |
break;
|
1274 |
case "i":
|
|
|
|
|
|
|
1275 |
o.origin.get_node(o.ref, !0).addClass("drag-in");
|
1276 |
nodeId = $(".drag-in").attr("id");
|
1277 |
$("#jstree-dnd").text("Inside "+$.trim($("#js-tree-menu").jstree(true).get_node(nodeId).text));
|
@@ -1327,6 +1395,9 @@
|
|
1327 |
//data.text is the new name:
|
1328 |
setDragAndDropElements();
|
1329 |
})).bind("move_node.jstree", (function(t, n) {
|
|
|
|
|
|
|
1330 |
folderMoveId = n.node.id;
|
1331 |
orderString = "";
|
1332 |
$(".folder-modal .jstree-node[id='"+folderMoveId+"']").closest("ul").children().each(function(){
|
@@ -1451,7 +1522,40 @@
|
|
1451 |
}
|
1452 |
|
1453 |
function setCustomScrollForFolder() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1454 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1455 |
}
|
1456 |
|
1457 |
function removeMultipleFolderItems() {
|
1 |
+
|
2 |
(function (factory) {
|
3 |
"use strict";
|
4 |
if (typeof define === 'function' && define.amd) {
|
11 |
factory(jQuery);
|
12 |
}
|
13 |
}(function ($, undefined) {
|
14 |
+
var folderSelectedAttachmentID = "";
|
15 |
var treeId = ".folder-modal #js-tree-menu";
|
16 |
var folderPropertyArray = [];
|
17 |
var selectedFolderMediaId = -1;
|
39 |
var foldersArray = [];
|
40 |
var contextOffsetX = null;
|
41 |
var contextOffsetY = null;
|
42 |
+
var hasStars;
|
43 |
+
var hasChildren;
|
44 |
|
45 |
var listFolderString = "<li class='grid-view' data-id='__folder_id__' id='folder___folder_id__'>" +
|
46 |
"<div class='folder-item is-folder' data-id='__folder_id__'>" +
|
185 |
var wpMediaObj = window.wp;
|
186 |
if (typeof wpMediaObj !== 'undefined' && typeof wpMediaObj.Uploader === 'function') {
|
187 |
wpMediaObj.media.view.Modal.prototype.on('open', function() {
|
188 |
+
folderSelectedAttachmentID = "";
|
189 |
setTimeout(function(){
|
190 |
if($("#media-attachment-taxonomy-filter").length) {
|
191 |
if($("#media-attachment-taxonomy-filter").val() == "all") {
|
203 |
}
|
204 |
},100);
|
205 |
});
|
206 |
+
wpMediaObj.media.view.Modal.prototype.on('close', function() {
|
207 |
+
folderSelectedAttachmentID = "";
|
208 |
+
});
|
209 |
$.extend(wpMediaObj.Uploader.prototype, {
|
210 |
progress: function () {
|
211 |
|
250 |
|
251 |
resetDDCounter();
|
252 |
if(typeof wp_media.media.frame !== "undefined" && wp_media.media.frame.content.get() !== null) {
|
253 |
+
folderSelectedAttachmentID = "";
|
254 |
+
if($(".folder-modal ul.attachments li.selected").length) {
|
255 |
+
folderSelectedAttachmentID = $(".folder-modal ul.attachments li.selected").data("id");
|
256 |
+
}
|
257 |
wp_media.media.frame.content.get().collection.props.set({ignore: (+ new Date())});
|
258 |
wp_media.media.frame.content.get().options.selection.reset();
|
259 |
} else {
|
285 |
if($(".supports-drag-drop").length) {
|
286 |
$(".supports-drag-drop").each(function(){
|
287 |
if($(this).css("display") == "block" || $(this).css("display") == "inline-block") {
|
|
|
288 |
$(this).addClass("folder-modal");
|
289 |
}
|
290 |
});
|
353 |
|
354 |
$(document).ready(function(){
|
355 |
|
356 |
+
hasStars = parseInt(folders_media_options.hasStars);
|
357 |
+
hasChildren = parseInt(folders_media_options.hasChildren);
|
358 |
+
|
359 |
+
$(document).on("click", ".thumbnail-hover-box a", function(e){
|
360 |
+
e.stopPropagation();
|
361 |
+
e.stopImmediatePropagation();
|
362 |
+
e.preventDefault();
|
363 |
+
window.open($(this).prop("href"), "_blank");
|
364 |
+
//wp.media.frame.close();
|
365 |
+
return false;
|
366 |
+
});
|
367 |
+
|
368 |
$( document ).ajaxComplete(function( event, xhr, settings ) {
|
369 |
if(settings.data != undefined && settings.data != "" && settings.data.indexOf("action=query-attachments") != -1) {
|
370 |
setDragAndDropElements();
|
371 |
}
|
372 |
+
if(folderSelectedAttachmentID != "") {
|
373 |
+
if(jQuery(".folder-modal ul.attachments li[data-id='"+folderSelectedAttachmentID+"']").length && !jQuery(".folder-modal ul.attachments li[data-id='"+folderSelectedAttachmentID+"']").hasClass("selected")) {
|
374 |
+
jQuery(".folder-modal ul.attachments li[data-id='"+folderSelectedAttachmentID+"']").trigger("click");
|
375 |
+
}
|
376 |
+
}
|
377 |
});
|
378 |
|
379 |
foldersArray = folders_media_options.terms;
|
425 |
}
|
426 |
});
|
427 |
|
428 |
+
$(document).on("click", ".new-folder-pro", function(e){
|
429 |
+
e.preventDefault();
|
430 |
+
$(".dynamic-menu").remove();
|
431 |
+
$("#sub-folder-popup").show();
|
432 |
+
});
|
433 |
+
|
434 |
+
$(document).on("click", ".close-popup-button a", function(){
|
435 |
+
$(".folder-popup-form").hide();
|
436 |
+
});
|
437 |
+
|
438 |
/* right click menu */
|
439 |
$(document).on("click", ".update-inline-record", function(e){
|
440 |
e.stopImmediatePropagation()
|
447 |
isStickyClass = (isSticky)?true:false;
|
448 |
$(".dynamic-menu").remove();
|
449 |
$(".active-menu").removeClass("active-menu");
|
450 |
+
menuHtml = "<div class='dynamic-menu' data-id='"+$(this).closest("li").data("folder-id")+"'><ul>";
|
451 |
+
if(hasChildren) {
|
452 |
+
menuHtml += "<li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>";
|
453 |
+
} else {
|
454 |
+
menuHtml += "<li class='new-folder-pro'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Sub-folder (Pro)</a></li>";
|
455 |
+
}
|
456 |
+
menuHtml += "<li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span>Rename</a></li>" +
|
457 |
+
"<li class='sticky-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class='sticky-pin'><i class='pfolder-pin'></i></span>Sticky Folder (Pro)</a></li>";
|
458 |
+
if(hasStars) {
|
459 |
+
menuHtml += "<li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>" + ((isHigh) ? "Remove Star" : "Add a Star") + "</a></li>";
|
460 |
+
} else {
|
461 |
+
menuHtml += "<li class='mark-folder-pro'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-star'></i></span>" + ((isHigh) ? "Remove Star (Pro)" : "Add a Star (Pro)") + "</a></li>";
|
462 |
+
}
|
463 |
+
menuHtml += "<li class='lock-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class='dashicons dashicons-lock'></span>Lock Folder (Pro)</a></li>" +
|
464 |
+
"<li class='duplicate-folder'><a href='javascript:;'><span class=''><i class='pfolder-clone'></i></span>Duplicate folder</a></li>";
|
465 |
|
466 |
hasPosts = parseInt($(this).closest("li.jstree-node").find("h3.title:first > .total-count").text());
|
467 |
if (folders_media_options.post_type == "attachment" && hasPosts) {
|
468 |
+
menuHtml += "<li class='download-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-zip-file'></i></span>Download Zip (Pro)</a></li>";
|
469 |
}
|
470 |
+
menuHtml += "<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span>Delete</a></li>" +
|
471 |
"</ul></div>";
|
472 |
|
473 |
$("body").append(menuHtml);
|
517 |
isStickyClass = (isSticky)?true:false;
|
518 |
$(".dynamic-menu").remove();
|
519 |
$(".active-menu").removeClass("active-menu");
|
520 |
+
menuHtml = "<div class='dynamic-menu' data-id='"+$(this).closest("li").prop("id")+"'><ul>";
|
521 |
+
if(hasChildren) {
|
522 |
+
menuHtml += "<li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>";
|
523 |
+
} else {
|
524 |
+
menuHtml += "<li class='new-folder-pro'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Sub-folder (Pro)</a></li>";
|
525 |
+
}
|
526 |
+
menuHtml += "<li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span>Rename</a></li>" +
|
527 |
+
"<li class='sticky-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class='sticky-pin'><i class='pfolder-pin'></i></span>Sticky Folder (Pro)</a></li>";
|
528 |
+
if(hasStars) {
|
529 |
+
menuHtml += "<li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>" + ((isHigh) ? "Remove Star" : "Add a Star") + "</a></li>";
|
530 |
+
} else {
|
531 |
+
menuHtml += "<li class='mark-folder-pro'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-star'></i></span>" + ((isHigh) ? "Remove Star (Pro)" : "Add a Star (Pro)") + "</a></li>";
|
532 |
+
}
|
533 |
+
menuHtml += "<li class='lock-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class='dashicons dashicons-lock'></span>Lock Folder (Pro)</a></li>" +
|
534 |
+
"<li class='duplicate-folder'><a href='javascript:;'><span class=''><i class='pfolder-clone'></i></span>Duplicate folder</a></li>";
|
535 |
|
536 |
hasPosts = parseInt($(this).closest("a.jstree-anchor").find(".premio-folder-count").text());
|
537 |
if (folders_media_options.post_type == "attachment" && hasPosts) {
|
538 |
+
menuHtml += "<li class='download-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-zip-file'></i></span>Download Zip (Pro)</a></li>";
|
539 |
}
|
540 |
+
menuHtml += "<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span>Delete</a></li>" +
|
541 |
+
"</ul></div>";
|
542 |
$("body").append(menuHtml);
|
543 |
$(this).parents("li.jstree-node").addClass("active-menu");
|
544 |
var yPosition;
|
578 |
});
|
579 |
|
580 |
$(document).on("click", "#add-new-folder", function(e) {
|
581 |
+
if($("#js-tree-menu a.jstree-clicked").length) {
|
582 |
+
fileFolderID = $("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id");
|
583 |
+
if(!hasChildren) {
|
584 |
+
$("#pro-notice").removeClass("hide-it");
|
585 |
+
}
|
586 |
} else {
|
587 |
fileFolderID = 0;
|
588 |
+
$("#pro-notice").addClass("hide-it");
|
589 |
}
|
590 |
isItFromMedia = false;
|
591 |
addFolder();
|
609 |
parentId = 0;
|
610 |
}
|
611 |
|
612 |
+
if(!hasChildren) {
|
613 |
+
parentId = 0;
|
614 |
+
}
|
615 |
+
|
616 |
if(parentId == 0) {
|
617 |
folderOrder = $("#js-tree-menu > ul > li.jstree-node").length;
|
618 |
} else {
|
924 |
}
|
925 |
});
|
926 |
|
927 |
+
$(document).on("click", ".folder-sort-menu a:not(.pro-feature)", function(e) {
|
928 |
e.stopPropagation();
|
929 |
e.preventDefault();
|
930 |
$(".form-loader-count").css("width", "100%");
|
952 |
$(document).on("click", ".jstree-node .jstree-icon", function(){
|
953 |
folderID = $(this).closest("li.jstree-node").attr("id");
|
954 |
if($("li.jstree-node[id='"+folderID+"']").hasClass("jstree-open")) {
|
|
|
|
|
955 |
folderStatus = 1;
|
956 |
+
} else {
|
957 |
+
folderStatus = 0;
|
958 |
}
|
959 |
$(".form-loader-count").css("width","100%");
|
960 |
nonce = getSettingForPost(folderID, 'nonce');
|
1325 |
"core": {
|
1326 |
'cache':false,
|
1327 |
"animation": 0,
|
1328 |
+
"max_depth": hasChildren?"-1":1,
|
1329 |
// "check_callback": true,
|
1330 |
check_callback: function(e, t, n, r, o) {
|
1331 |
$("*").removeClass("drag-bot").removeClass("drag-in").removeClass("drag-up");
|
1337 |
$("#jstree-dnd").text("Below "+$.trim($("#js-tree-menu").jstree(true).get_node(nodeId).text));
|
1338 |
break;
|
1339 |
case "i":
|
1340 |
+
if(!hasChildren) {
|
1341 |
+
return false;
|
1342 |
+
}
|
1343 |
o.origin.get_node(o.ref, !0).addClass("drag-in");
|
1344 |
nodeId = $(".drag-in").attr("id");
|
1345 |
$("#jstree-dnd").text("Inside "+$.trim($("#js-tree-menu").jstree(true).get_node(nodeId).text));
|
1395 |
//data.text is the new name:
|
1396 |
setDragAndDropElements();
|
1397 |
})).bind("move_node.jstree", (function(t, n) {
|
1398 |
+
if(n.node.parent != "#") {
|
1399 |
+
jQuery("#js-tree-menu").jstree("open_node",n.node.parent);
|
1400 |
+
}
|
1401 |
folderMoveId = n.node.id;
|
1402 |
orderString = "";
|
1403 |
$(".folder-modal .jstree-node[id='"+folderMoveId+"']").closest("ul").children().each(function(){
|
1522 |
}
|
1523 |
|
1524 |
function setCustomScrollForFolder() {
|
1525 |
+
var scrollTop = 0;
|
1526 |
+
if($("#custom-scroll-menu").hasClass("mCustomScrollbar")) {
|
1527 |
+
var $scrollerOuter = jQuery( '#custom-scroll-menu' );
|
1528 |
+
var $dragger = $scrollerOuter.find( '.mCSB_dragger' );
|
1529 |
+
var scrollHeight = $scrollerOuter.find( '.mCSB_container' ).height();
|
1530 |
+
var draggerTop = $dragger.position().top;
|
1531 |
+
|
1532 |
+
scrollTop = draggerTop / ($scrollerOuter.height() - $dragger.height()) * (scrollHeight - $scrollerOuter.height());
|
1533 |
+
|
1534 |
+
$("#custom-scroll-menu").mCustomScrollbar('destroy');
|
1535 |
+
}
|
1536 |
+
var contentHeight = jQuery(".folder-modal .media-modal-content").height() - $(".folder-modal .sticky-wcp-custom-form").height() - 40;
|
1537 |
+
if($(".folder-modal #custom-scroll-menu").closest(".media-frame-menu").length) {
|
1538 |
+
if(jQuery(".folder-custom-menu").length && jQuery(".media-frame-menu").length) {
|
1539 |
+
contentHeight = jQuery(".folder-modal .media-modal-content").height() - $(".folder-modal .sticky-wcp-custom-form").height() - jQuery(".folder-custom-menu").offset().top + jQuery(".media-frame-menu").offset().top - 40;
|
1540 |
+
}
|
1541 |
+
}
|
1542 |
+
|
1543 |
+
if(contentHeight < 0) {
|
1544 |
+
contentHeight = 350;
|
1545 |
+
}
|
1546 |
|
1547 |
+
$("#custom-scroll-menu").mCustomScrollbar({
|
1548 |
+
axis:"y",
|
1549 |
+
scrollButtons:{enable:true},
|
1550 |
+
setHeight: contentHeight,
|
1551 |
+
theme:"3d",
|
1552 |
+
scrollbarPosition:"inside",
|
1553 |
+
scrollInertia: 500,
|
1554 |
+
mouseWheelPixels: 60
|
1555 |
+
});
|
1556 |
+
if(scrollTop != 0) {
|
1557 |
+
jQuery("#custom-scroll-menu").mCustomScrollbar("scrollTo", scrollTop+"px",{scrollInertia:0});
|
1558 |
+
}
|
1559 |
}
|
1560 |
|
1561 |
function removeMultipleFolderItems() {
|
assets/js/page-post-media.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(e,t){var o=".folder-modal #js-tree-menu",a=[],s=-1,r=0,d=0,l="",n=-1,c=0,m="",p=folders_media_options.page_url,u="",f="",h=!1,v=!1,g=!1,y=0,j=0,w=[],k=null,x=null,b=wp.media.view.AttachmentFilters.extend({id:"media-attachment-taxonomy-filter",createFilters:function(){var e={};folders_media_options.terms.length;_.each(folders_media_options.terms||{},function(t,o){e[t.term_id]={text:t.name+" ("+t.count+")",props:{media_folder:t.slug}}}),e.all={text:"All Folders",props:{media_folder:""},priority:10},e.unassigned={text:"(Unassigned)",props:{media_folder:"-1"},priority:10},this.filters=e},change:function(){var e={};_.each(folders_media_options.terms||{},function(t,o){e[t.term_id]={text:t.name+" ("+t.count+")",props:{media_folder:t.slug}}}),e.all={text:"Select a folder >>",props:{media_folder:""},priority:10},e.unassigned={text:"(Unassigned)",props:{media_folder:"-1"},priority:10},this.filters=e;var t=this.filters[this.el.value];t&&this.model.set(t.props)}}),C=0,S=0,I=wp.media.view.AttachmentsBrowser;wp.media.view.AttachmentsBrowser=wp.media.view.AttachmentsBrowser.extend({createToolbar:function(){I.prototype.createToolbar.call(this),this.toolbar.set("MediaLibraryOrganizerTaxonomyFilter",new b({controller:this.controller,model:this.collection.props,priority:-75}).render())}});var P,D=wp.media.model.Query;_.extend(D,{get:(P=[],function(e,t){var o,a={},s=D.orderby,r=D.defaultProps;return delete e.query,delete e.cache,_.defaults(e,r),_.each(["include","exclude"],function(t){e[t]&&!_.isArray(e[t])&&(e[t]=[e[t]])}),_.each(e,function(e,t){_.isNull(e)||(a[D.propmap[t]||t]=e)}),_.defaults(a,D.defaultArgs),a.orderby=s.valuemap[e.orderby]||e.orderby,P=[],o||(o=new D([],_.extend(t||{},{props:e,args:a})),P.push(o)),o})});var N=window.wp;void 0!==N&&"function"==typeof N.Uploader&&(N.media.view.Modal.prototype.on("open",function(){setTimeout(function(){e("#media-attachment-taxonomy-filter").length&&("all"==e("#media-attachment-taxonomy-filter").val()&&(e("#media-attachment-taxonomy-filter option:gt(1)").remove(),_.each(folders_media_options.terms,function(t,o){e("#media-attachment-taxonomy-filter").append("<option value='"+t.term_id+"'>"+t.name+" ("+t.trash_count+")</option>")})),e("#wcp-content").length||e(".editor-post-featured-image").length&&e(".attachment-filters").val("all").trigger("change"))},100)}),e.extend(N.Uploader.prototype,{progress:function(){},init:function(){this.uploader&&(this.uploader.bind("FileFiltered",function(t,o){C++,e(".folder-meter").css("width","0%"),e(".media-folder-loader").show(),e("#total_upload_files").text(C)}),this.uploader.bind("BeforeUpload",function(t,o){var a=s,r=t.settings.multipart_params;if((a=parseInt(a))>0&&(r.folder_for_media=a),S<C){e(".media-folder-loader").show();var d=S/C*100;e(".folder-meter").css("width",d+"%")}S++,e("#current_upload_files").text(S)}),this.uploader.bind("UploadComplete",function(e,t){s=-1}),this.uploader.bind("UploadComplete",function(t,o){var a=window.wp;e(".folder-meter").css("width","100%"),setTimeout(function(){e(".media-folder-loader").hide(),e(".folder-meter").css("width","0%"),C=0,S=0},1250),function(){e("#media-attachment-taxonomy-filter").val();A=e.ajax({url:folders_media_options.ajax_url,data:"type=attachment&action=wcp_get_default_list&active_id=0",method:"post",beforeSend:function(){null!=A&&A.abort()},success:function(t){var t=e.parseJSON(t);w=t.taxonomies,Y(),T()}})}(),void 0!==a.media.frame&&null!==a.media.frame.content.get()?(a.media.frame.content.get().collection.props.set({ignore:+new Date}),a.media.frame.content.get().options.selection.reset()):e("#media-attachment-taxonomy-filter").length&&e(".attachment-filters").each(function(){e(this).trigger("change")})}))}}));var A,O=window.wp;if(void 0!==O&&"function"==typeof O.Uploader){var U=window.wp.media,J=U.view.Modal;U.view.Modal=U.view.Modal.extend({className:"folder-modal",initialize:function(){J.prototype.initialize.apply(this,arguments)},open:function(){J.prototype.open.apply(this,arguments)&&(e(".folder-modal").length||e(".supports-drag-drop").length&&e(".supports-drag-drop").each(function(){"block"!=e(this).css("display")&&"inline-block"!=e(this).css("display")||(console.log("class added"),e(this).addClass("folder-modal"))}),e(".folder-modal").length?(e(".folder-custom-menu").remove(),e(".folder-modal .media-frame-tab-panel").removeClass("has-folder-menu"),e(".folder-modal .media-frame").hasClass("hide-menu")?e(".folder-custom-menu").length||(e(".folder-modal .media-frame-tab-panel").before("<div class='folder-custom-menu'><div class='folder-menu-content'><div class='cssload-container'><div class='cssload-tube-tunnel'></div></div></div></div>"),e(".folder-modal .folder-menu-content").load(folders_media_options.media_page_url+" #wcp-content-resize",function(){R(),H()})):e(".folder-custom-menu").length||(e(".folder-modal .media-frame-menu").addClass("has-folder-menu"),e(".folder-modal .media-frame-menu .media-menu").append("<div class='folder-custom-menu'><div class='folder-menu-content'><div class='cssload-container'><div class='cssload-tube-tunnel'></div></div></div></div>"),e(".folder-modal .folder-menu-content").load(folders_media_options.media_page_url+" #wcp-content-resize",function(){R(),H()})),e(".folder-form-data").remove(),e(".media-frame-tab-panel:first").before("<div class='folder-form-data'></div>"),e(".folder-form-data").load(folders_media_options.media_page_url+" #folder-add-update-content",function(){})):setTimeout(function(){-1!=s&&e("#media-attachment-taxonomy-filter").each(function(){e(this).val(s),e(this).trigger("change")})},1e3))},close:function(){J.prototype.close.apply(this,arguments),e(".folder-modal").removeClass("folder-modal")}})}function T(){e(".jstree-anchor:not(.ui-droppable)").droppable({accept:".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",hoverClass:"wcp-drop-hover",classes:{"ui-droppable-active":"ui-state-highlight"},drop:function(t,o){r=e(this).closest("li.jstree-node").attr("id"),o.draggable.hasClass("wcp-move-multiple")?e(".wp-list-table input:checked").length&&(chkStr="",e(".wp-list-table input:checked").each(function(){chkStr+=e(this).val()+","}),m=F(r,"nonce"),e.ajax({url:folders_media_options.ajax_url,data:"post_ids="+chkStr+"&type="+folders_media_options.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+r+"&nonce="+m+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+u,method:"post",success:function(t){"1"==(t=e.parseJSON(t)).status?z():(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})):o.draggable.hasClass("wcp-move-file")?(postID=o.draggable[0].attributes["data-id"].nodeValue,m=F(r,"nonce"),chkStr=postID+",",e(".wp-list-table input:checked").each(function(){e(this).val()!=postID&&(chkStr+=e(this).val()+",")}),e.ajax({url:folders_media_options.ajax_url,data:"post_ids="+chkStr+"&type="+folders_media_options.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+r+"&nonce="+m+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+u,method:"post",success:function(t){"1"==(t=e.parseJSON(t)).status?z():(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})):o.draggable.hasClass("attachment")&&(chkStr=o.draggable[0].attributes["data-id"].nodeValue,m=F(r,"nonce"),e(".attachments-browser li.attachment.selected").length>1&&(chkStr="",e(".attachments-browser li.attachment.selected").each(function(){chkStr+=e(this).data("id")+","})),f=chkStr,e.ajax({url:folders_media_options.ajax_url,data:"post_ids="+chkStr+"&type="+folders_media_options.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+r+"&nonce="+m+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+u,method:"post",success:function(e){z(),Z()}}))}}),e(".media-frame:not(.hide-router) .attachments-browser li.attachment:not(.ui-draggable)").draggable({revert:"invalid",containment:"document",helper:function(t,o){e(".selected-items").remove();var a=e(".media-frame:not(.hide-router) .attachments-browser li.attachment.selected").length;return e("<div class='selected-items'><span class='total-post-count'>"+(a=0==a||1==a?"1 Item":a+" Items")+" Selected</span></div>")},start:function(t,o){e("body").addClass("no-hover-css")},cursor:"move",appendTo:".media-modal",cursorAt:{left:0,top:0},stop:function(t,o){e(".selected-items").remove(),e("body").removeClass("no-hover-css")}}),e(".un-categorised-items").droppable({accept:".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",hoverClass:"wcp-hover-list",classes:{"ui-droppable-active":"ui-state-highlight"},drop:function(t,o){r=-1,m=folders_media_options.nonce,o.draggable.hasClass("wcp-move-multiple")?e(".wp-list-table input:checked").length&&(chkStr="",e(".wp-list-table input:checked").each(function(){chkStr+=e(this).val()+","}),e.ajax({url:folders_media_options.ajax_url,data:"post_id="+chkStr+"&type="+folders_media_options.post_type+"&action=wcp_remove_post_folder&folder_id="+r+"&nonce="+m+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+u,method:"post",success:function(e){z()}})):o.draggable.hasClass("wcp-move-file")?(postID=o.draggable[0].attributes["data-id"].nodeValue,chkStr=postID+",",e(".wp-list-table input:checked").each(function(){postID!=e(this).val()&&(chkStr+=e(this).val()+",")}),e.ajax({url:folders_media_options.ajax_url,data:"post_id="+chkStr+"&type="+folders_media_options.post_type+"&action=wcp_remove_post_folder&folder_id="+r+"&nonce="+m+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+u,method:"post",success:function(e){z()}})):o.draggable.hasClass("attachment")&&(chkStr=o.draggable[0].attributes["data-id"].nodeValue,e(".attachments-browser li.attachment.selected").length>1&&(chkStr="",e(".attachments-browser li.attachment.selected").each(function(){chkStr+=e(this).data("id")+","})),f=chkStr,e.ajax({url:folders_media_options.ajax_url,data:"post_id="+chkStr+"&type="+folders_media_options.post_type+"&action=wcp_remove_post_folder&folder_id="+r+"&nonce="+m+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+u,method:"post",success:function(e){z()}}))}}),e(".tree-structure .folder-item:not(.ui-droppable)").droppable({accept:".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",hoverClass:"wcp-drop-hover-list",classes:{"ui-droppable-active":"ui-state-highlight"},drop:function(t,o){e("body").removeClass("no-hover-css"),r=e(this).data("id"),o.draggable.hasClass("wcp-move-multiple")?(m=F(r,"nonce"),e(".wp-list-table input:checked").length&&(chkStr="",e(".wp-list-table input:checked").each(function(){chkStr+=e(this).val()+","}),e.ajax({url:folders_media_options.ajax_url,data:"post_ids="+chkStr+"&type="+folders_media_options.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+r+"&nonce="+m+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+u,method:"post",success:function(e){z(),Z()}}))):o.draggable.hasClass("wcp-move-file")?(postID=o.draggable[0].attributes["data-id"].nodeValue,m=F(r,"nonce"),chkStr=postID+",",e(".wp-list-table input:checked").each(function(){e(this).val()!=postID&&(chkStr+=e(this).val()+",")}),e.ajax({url:folders_media_options.ajax_url,data:"post_ids="+chkStr+"&type="+folders_media_options.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+r+"&nonce="+m+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+u,method:"post",success:function(e){z(),Z()}})):o.draggable.hasClass("attachment")&&(chkStr=o.draggable[0].attributes["data-id"].nodeValue,m=F(r,"nonce"),e(".attachments-browser li.attachment.selected").length>1&&(chkStr="",e(".attachments-browser li.attachment.selected").each(function(){chkStr+=e(this).data("id")+","})),e.ajax({url:folders_media_options.ajax_url,data:"post_ids="+chkStr+"&type="+folders_media_options.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+r+"&nonce="+m+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+u,method:"post",success:function(e){z(),Z()}}))}}),e(".wcp-move-file:not(.ui-draggable)").draggable({revert:"invalid",containment:"document",helper:"clone",cursor:"move",start:function(t,o){e(this).closest("td").addClass("wcp-draggable"),e("body").addClass("no-hover-css")},stop:function(t,o){e(this).closest("td").removeClass("wcp-draggable"),e("body").removeClass("no-hover-css")}}),e(".wcp-move-multiple:not(.ui-draggable)").draggable({revert:"invalid",containment:"document",helper:function(t,o){return e(".selected-items").remove(),selectedItems=e("#the-list th input:checked").length,selectedItems>0?(selectedItems=0==selectedItems||1==selectedItems?"1 Item":selectedItems+" Items",e("<div class='selected-items'><span class='total-post-count'>"+selectedItems+" Selected</span></div>")):e("<div class='selected-items'><span class='total-post-count'>Select Items to move</span></div>")},start:function(t,o){e("body").addClass("no-hover-css")},cursor:"move",cursorAt:{left:0,top:0},stop:function(t,o){e(".selected-items").remove(),e("body").removeClass("no-hover-css")}})}function H(){e(o).jstree({core:{cache:!1,animation:0,check_callback:function(t,o,a,s,r){if(e("*").removeClass("drag-bot").removeClass("drag-in").removeClass("drag-up"),("move_node"===t||"copy_node"===t)&&r&&r.dnd)switch(r.pos){case"a":r.origin.get_node(r.ref,!0).addClass("drag-bot"),nodeId=e(".drag-bot").attr("id"),e("#jstree-dnd").text("Below "+e.trim(e("#js-tree-menu").jstree(!0).get_node(nodeId).text));break;case"i":r.origin.get_node(r.ref,!0).addClass("drag-in"),nodeId=e(".drag-in").attr("id"),e("#jstree-dnd").text("Inside "+e.trim(e("#js-tree-menu").jstree(!0).get_node(nodeId).text));break;case"b":r.origin.get_node(r.ref,!0).addClass("drag-up"),nodeId=e(".drag-up").attr("id"),e("#jstree-dnd").text("Above "+e.trim(e("#js-tree-menu").jstree(!0).get_node(nodeId).text));break;default:e("#jstree-dnd").text(e("#jstree-dnd").data("txt"))}return!0}},data:{cache:!1},select_node:!1,search:{show_only_matches:!0,case_sensitive:!1,fuzzy:!1},plugins:["dnd","search","contextmenu"],contextmenu:{select_node:0,show_at_node:0,items:function(){return{}}}}).bind("ready.jstree",function(){!function(){e("#js-tree-menu .jstree-node").each(function(){var t=parseInt(e(this).data("count"));t>0&&e(".jstree-node[id='"+e(this).attr("id")+"'] > a span.premio-folder-count").text(t)}),""!=u&&0!=u&&e(".jstree-node[id='"+u+"']").length&&(e("#js-tree-menu").jstree("select_node",u),e(".sticky-folders .sticky-folder-"+u+" a").length&&e(".sticky-folders .sticky-folder-"+u+" a").addClass("active-item"));e(".ajax-preloader").hide(),e(".js-tree-data").show(),V(),e(".sticky-folders ul > li").length>0&&e(".sticky-folders").addClass("active")}(),T()}).bind("after_open.jstree",function(){T()}).bind("open_all.jstree",function(){T()}).bind("create_node.jstree",function(){T()}).bind("delete_node.jstree",function(){T()}).bind("close_all.jstree",function(){T()}).bind("after_close.jstree",function(){T()}).bind("move_node.jstree",function(t,o){folderMoveId=o.node.id,orderString="",e(".folder-modal .jstree-node[id='"+folderMoveId+"']").closest("ul").children().each(function(){"undefined"!=e(this).attr("id")&&(orderString+=e(this).attr("id")+",")}),e(".folder-modal #"+folderMoveId+"_anchor").closest(".jstree-node").parent().parent().hasClass("jstree-node")?parentID=e("#"+folderMoveId+"_anchor").closest(".jstree-node").parent().parent().attr("id"):parentID=0,""!=orderString&&(e(".form-loader-count").css("width","100%"),e.ajax({url:folders_media_options.ajax_url,data:"term_ids="+orderString+"&action=wcp_save_folder_order&type="+folders_media_options.post_type+"&nonce="+folders_media_options.nonce+"&term_id="+folderMoveId+"&parent_id="+parentID,method:"post",success:function(t){"1"==(t=e.parseJSON(t)).status?(e("#wcp_folder_parent").html(t.options),e(".form-loader-count").css("width","0"),z(),Z(),Y(),T()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show(),window.location.reload(!0))}}))}),T()}function F(e,t){if(a.length>0)for(i=0;i<a.length;i++)if(parseInt(a[i].folder_id)==parseInt(e))return a[i][t];return""}function M(e){if(a.length>0)for(i=0;i<a.length;i++)if(parseInt(a[i].folder_id)==parseInt(e))return i;return null}function V(){e(".sticky-folders > ul").html("");var t="";if(e("#js-tree-menu li.jstree-node.is-sticky").each(function(){var o=e(this).attr("id"),a=e.trim(e("#js-tree-menu").jstree(!0).get_node(o).text),s=(e("#"+o+"_anchor .premio-folder-count").text(),e("li.jstree-node[id='"+o+"']").hasClass("is-high")?" is-high ":"");t+="<li data-folder-id='"+o+"' class='sticky-fldr "+s+" sticky-folder-"+o+"'><a href='javascript:;'><span class='folder-title'>"+a+"</span><span class='folder-actions'><span class='update-inline-record'><i class='pfolder-edit-folder'></i></span><span class='star-icon'><i class='pfolder-star'></i></span><span class='premio-folder-count'></span></span></a></li>"}),e(".sticky-folders > ul").html(t),e(".jstree-anchor.jstree-clicked").length){var o=e(".jstree-anchor.jstree-clicked").closest("li.jstree-node").attr("id");e(".sticky-folders .sticky-folder-"+o+" a").addClass("active-item")}e(".sticky-folders > ul > li").length>0?e(".sticky-folders").addClass("active"):e(".sticky-folders").removeClass("active")}function z(){if(e(".media-toolbar").hasClass("media-toolbar-mode-select")&&e("ul.attachments li.selected").length&&(e("ul.attachments li.selected").trigger("click"),e(".select-mode-toggle-button").trigger("click")),""!=f&&(e("#js-tree-menu a.jstree-clicked").length>0||"-1"==u)){if(e("#media-attachment-taxonomy-filter").length){f=f.split(",");for(var t=0;t<f.length;t++)""!=f[t]&&e(".attachments-browser li[data-id='"+f[t]+"']").remove()}f=""}e("#media-attachment-taxonomy-filter").length?Q(0):(e.ajax({url:folders_media_options.ajax_url,data:"type="+folders_media_options.post_type+"&action=get_folders_default_list",method:"post",success:function(t){t=e.parseJSON(t),e(".header-posts .total-count").text(t.total_items),e(".un-categorised-items .total-count").text(t.empty_items),w=t.taxonomies,Y(),T()}}),e(".folder-loader-ajax").addClass("active"),e("#folder-posts-filter").length?e("#folder-posts-filter").load(p+" #posts-filter",function(){var t={Title:"",Url:p};history.pushState(t,t.Title,t.Url),"show"!=folders_media_options.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),triggerInlineUpdate()}):e("#wpbody").load(p+" #wpbody-content",!1,function(t){var o={Title:"",Url:p};history.pushState(o,o.Title,o.Url),"show"!=folders_media_options.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>')}))}function Y(){if(e("#media-attachment-taxonomy-filter").length&&(e("#media-attachment-taxonomy-filter").each(function(){folders_media_options.terms=w;var t=e(this);currentDDVal=e(this).val(),t.html("<option value='all'>All Folders</option><option value='unassigned'>(Unassigned)</option>"),w;for(var o=0;o<w.length;o++)t.append("<option value='"+w[o].term_id+"'>"+w[o].name+" ("+w[o].trash_count+")</option>");t.val(currentDDVal).trigger("change")}),e("select.folder_for_media").length)){var t=e("select.folder_for_media").val();e("select.folder_for_media option:not(:first-child):not(:last-child)").remove();for(var o=0;o<w.length;o++)e("select.folder_for_media option:last-child").before("<option value='"+w[o].term_id+"'>"+w[o].name+"</option>");""!=t&&e(".folder_for_media").val(t)}for(e("span.premio-folder-count").text(""),e(".folder-count").text(""),o=0;o<w.length;o++)0!=parseInt(w[o].trash_count)&&(e(".jstree-node[id='"+w[o].term_id+"'] > a.jstree-anchor span.premio-folder-count").text(w[o].trash_count),e(".sticky-folder-"+w[o].term_id+" .premio-folder-count").text(w[o].trash_count));""!=u&&e("#wcp_folder_"+u).addClass("active-item"),v&&(e("#title_"+d).trigger("click"),v=!1)}function q(){var t=e.trim(e("#folder-search").val());e("#js-tree-menu").jstree("search",t)}function B(t){var o="Are you sure you want to delete the selected folder?",a="Items in the folder will not be deleted.";if(h=!1,1==t&&e("#folder-hide-show-checkbox").is(":checked")){if(h=!0,0==e("#js-tree-menu input.checkbox:checked").length)return e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html("Please select at least one folder to delete"),void e("#error-folder-popup").show();e("#js-tree-menu input.checkbox:checked").length>1&&(o="Are you sure you want to delete the selected folders?",a="Items in the selected folders will not be deleted.")}e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#remove-folder-item").text("Yes, Delete it!"),e("#remove-folder-message").text(o),e("#remove-folder-notice").text(a),e("#confirm-remove-folder").show(),e("#remove-folder-item").focus()}function E(){folderName=e.trim(e("#js-tree-menu").jstree(!0).get_node(d).text),parentID=e("#wcp_folder_"+d).closest("li.jstree-node").data("folder-id"),parentID==t&&(parentID=0),e("#update-folder-data").text("Submit"),e(".folder-form-errors").removeClass("active"),e("#update-folder-item-name").val(folderName),e("#update-folder-item").removeClass("disabled"),e("#update-folder-item").show(),e("#update-folder-item-name").focus(),e(".dynamic-menu").remove()}function X(){if(0==c&&n>=10)return e("#folder-limitation-message").html("You've reached the 10 folder limitation!"),e("#no-more-folder-credit").show(),!1;e("#add-update-folder-title").text("Add new folder"),e("#save-folder-data").text("Submit"),e(".folder-form-errors").removeClass("active"),e("#add-update-folder-name").val(""),g&&(y=d,e("#add-update-folder-name").val(e.trim(e("#js-tree-menu").jstree(!0).get_node(d).text)+" #2"),d=e("#"+d+"_anchor").closest(".jstree-node").parent().parent().hasClass("jstree-node")?e("#"+d+"_anchor").closest(".jstree-node").parent().parent().attr("id"):0),e("#add-update-folder").removeClass("disabled"),e("#add-update-folder").show(),e("#add-update-folder-name").focus(),e(".dynamic-menu").remove()}function R(){setTimeout(function(){if(e("#js-tree-menu .jstree-node.jstree-leaf").length==e("#js-tree-menu .jstree-node").length)e("#expand-collapse-list").removeClass("all-open"),e("#expand-collapse-list").attr("data-folder-tooltip","Expand");else{var t=e("#js-tree-menu .jstree-node.jstree-closed").length+e("#js-tree-menu .jstree-node.jstree-open").length;e("#js-tree-menu .jstree-node.jstree-closed").length==t?(e("#expand-collapse-list").removeClass("all-open"),e("#expand-collapse-list").attr("data-folder-tooltip","Expand")):(e("#expand-collapse-list").addClass("all-open"),e("#expand-collapse-list").attr("data-folder-tooltip","Collapse"))}},500),T()}function Q(o){A=e.ajax({url:folders_media_options.ajax_url,data:"type="+folders_media_options.post_type+"&action=wcp_get_default_list&active_id="+u,method:"post",beforeSend:function(){null!=A&&A.abort()},success:function(a){if(a=e.parseJSON(a),e(".header-posts .total-count").text(a.total_items),e(".un-categorised-items .total-count").text(a.empty_items),selectedVal=e("#media-attachment-taxonomy-filter").val(),"all"!=selectedVal&&1==o){var s=parent.wp;s.media!=t&&(s.media.frame.setState("insert"),null!==s.media.frame.content.get()?(s.media.frame.content.get().collection.props.set({ignore:+new Date}),s.media.frame.content.get().options.selection.reset()):s.media.frame.library.props.set({ignore:+new Date}))}w=a.taxonomies,Y(),T()}})}function Z(){e(".folder-loader-ajax").addClass("active"),e(".folder-loader-ajax img").removeClass("active"),e(".folder-loader-ajax svg#successAnimation").addClass("active").addClass("animated"),setTimeout(function(){e(".folder-loader-ajax").removeClass("active"),e(".folder-loader-ajax img").addClass("active"),e(".folder-loader-ajax svg#successAnimation").removeClass("active").removeClass("animated")},2e3),T()}e(document).ready(function(){e(document).ajaxComplete(function(e,o,a){a.data!=t&&""!=a.data&&-1!=a.data.indexOf("action=query-attachments")&&T()}),w=folders_media_options.terms,c=parseInt(folders_media_options.is_key_active),n=parseInt(folders_media_options.folders),a=folders_media_options.folder_settings,e(document).on("click",".header-posts a.all-posts",function(t){d=0,u="",s="all",e(".active-item").removeClass("active-item"),e(".jstree-clicked").removeClass("jstree-clicked"),e(this).addClass("active-item"),e(".sticky-folders .active-item").removeClass("active-item"),e(this).closest(".media-frame").find("#media-attachment-taxonomy-filter").val("all").trigger("change"),e(this).closest(".media-frame").find(".folder_for_media").val("all").trigger("change")}),e(document).on("click",".un-categorised-items",function(t){d=0,u="",s="unassigned",e(".active-item").removeClass("active-item"),e(".sticky-folders .active-item").removeClass("active-item"),e(".jstree-clicked").removeClass("jstree-clicked"),e(this).addClass("active-item"),e(this).closest(".media-frame").find("#media-attachment-taxonomy-filter").val("unassigned").trigger("change"),e(this).closest(".media-frame").find(".folder_for_media").val("-1").trigger("change")}),e(document).on("click","a.jstree-anchor",function(t){var o,a=e(this).closest("li.jstree-node").attr("id");s=d=a,e(this).closest(".folder-modal").find(".active-item").removeClass("active-item"),e(this).closest(".folder-modal").find("#media-attachment-taxonomy-filter").val(a),e(this).closest(".folder-modal").find("#media-attachment-taxonomy-filter").trigger("change"),thisSlug=F(a,"slug"),o=thisSlug,e.ajax({url:folders_media_options.ajax_url,type:"post",data:"action=save_folder_last_status&post_type="+folders_media_options.post_type+"&post_id="+o+"&nonce="+folders_media_options.nonce,cache:!1,async:!1,success:function(){}}),e(".custom-media-select").removeClass("active")}),e(document).on("change",".folder_for_media",function(){"add-folder"!=e(this).val()&&null!=e(this).val()?s=e(this).val():"add-folder"==e(this).val()&&(s=-1)}),e(document).on("click",".update-inline-record",function(o){var a;(o.stopImmediatePropagation(),o.stopPropagation(),0!=folders_media_options.can_manage_folder)&&(isHigh=e(this).closest("li.sticky-fldr").hasClass("is-high"),isSticky=e(this).closest("li.sticky-fldr").hasClass("is-sticky"),isStickyClass=!!isSticky,e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),menuHtml="<div class='dynamic-menu' data-id='"+e(this).closest("li").data("folder-id")+"'><ul><li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span> New Folder</a></li><li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span> Rename</a></li><li class='sticky-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class='sticky-pin'><i class='pfolder-pin'></i></span>Sticky Folder (Pro)</a></li><li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>"+(isHigh?" Remove Star":"Add a Star")+"</a></li><li class='duplicate-folder'><a href='javascript:;'><span class=''><i class='pfolder-clone'></i></span> Duplicate folder</a></li>",hasPosts=parseInt(e(this).closest("li.jstree-node").find("h3.title:first > .total-count").text()),"attachment"==folders_media_options.post_type&&hasPosts&&(menuHtml+="<li class='download-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-zip-file'></i></span> Download Zip (Pro)</a></li>"),menuHtml+="<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span> Delete</a></li></ul></div>",e("body").append(menuHtml),o.pageX==t||o.pageY==t?(e(".dynamic-menu").css("left",k),e(".dynamic-menu").css("top",x-10),a=x):(e(".dynamic-menu").css("left",o.pageX),e(".dynamic-menu").css("top",o.pageY),a=o.pageY),a+e(".dynamic-menu").height()>e(window).height()&&e(".dynamic-menu").css("margin-top",e(window).height()-(a+e(".dynamic-menu").height())))}),e(document).on("click","body, html",function(t){e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),e(".folder-order").removeClass("active")}),e(document).on("click",".dynamic-menu, .folder-order",function(e){e.stopPropagation()}),e(document).on("contextmenu",".jstree-anchor",function(t){return k=t.pageX,x=t.pageY,e(this).find("span.folder-inline-edit").trigger("click"),!1}),e(document).on("click",".folder-actions span.folder-inline-edit",function(o){var a;(o.stopImmediatePropagation(),o.stopPropagation(),0!=folders_media_options.can_manage_folder)&&(isHigh=e(this).closest("li.jstree-node").hasClass("is-high"),isSticky=e(this).closest("li.jstree-node").hasClass("is-sticky"),isStickyClass=!!isSticky,e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),menuHtml="<div class='dynamic-menu' data-id='"+e(this).closest("li").prop("id")+"'><ul><li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span> New Folder</a></li><li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span> Rename</a></li><li class='sticky-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class='sticky-pin'><i class='pfolder-pin'></i></span>Sticky Folder (Pro)</a></li><li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>"+(isHigh?" Remove Star":"Add a Star")+"</a></li><li class='duplicate-folder'><a href='javascript:;'><span class=''><i class='pfolder-clone'></i></span> Duplicate folder</a></li>",hasPosts=parseInt(e(this).closest("a.jstree-anchor").find(".premio-folder-count").text()),"attachment"==folders_media_options.post_type&&hasPosts&&(menuHtml+="<li class='download-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-zip-file'></i></span> Download Zip (Pro)</a></li>"),menuHtml+="<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span> Delete</a></li></ul></div>",e("body").append(menuHtml),e(this).parents("li.jstree-node").addClass("active-menu"),o.pageX==t||o.pageY==t?(e(".dynamic-menu").css("left",k),e(".dynamic-menu").css("top",x-10),a=x):(e(".dynamic-menu").css("left",o.pageX),e(".dynamic-menu").css("top",o.pageY),a=o.pageY),a+e(".dynamic-menu").height()>e(window).height()&&e(".dynamic-menu").css("margin-top",e(window).height()-(a+e(".dynamic-menu").height())))}),e(document).on("click",".dynamic-menu",function(e){e.stopImmediatePropagation(),e.stopPropagation()}),e(document).on("click","body, html",function(){e(".dynamic-menu").remove()}),e(document).on("click",".new-folder",function(t){t.stopPropagation(),d=e(this).closest(".dynamic-menu").data("id"),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),v=!1,g=!1,X()}),e(document).on("click","#add-new-folder",function(t){d=e("#custom-menu li.active-item").length?e("#custom-menu li.active-item").data("folder-id"):0,v=!1,X()}),e(document).on("submit","#save-folder-form",function(t){if(t.stopPropagation(),t.preventDefault(),l=e("#add-update-folder-name").val(),""==e.trim(l))e(".folder-form-errors").addClass("active"),e("#add-update-folder-name").focus();else{e("#save-folder-data").html('<span class="dashicons dashicons-update"></span>'),e("#add-update-folder").addClass("disabled");var o=d;v&&(o=0),j=0==o?e("#js-tree-menu > ul > li.jstree-node").length:e("#js-tree-menu > ul > li.jstree-node[id='"+o+"'] > ul.jstree-children > li").length+1,e.ajax({url:folders_media_options.ajax_url,data:{parent_id:o,type:folders_media_options.post_type,action:"wcp_add_new_folder",nonce:folders_media_options.nonce,term_id:o,order:j,name:l,is_duplicate:g,duplicate_from:y},method:"post",success:function(t){if(result=e.parseJSON(t),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),-1==result.status)e("#no-more-folder-credit").show();else if("1"==result.status){if(c=parseInt(result.is_key_active),n=parseInt(result.folders),e("#current-folder").text(n),e("#ttl-fldr").text(10),R(),result.data.length)for(var o=0;o<result.data.length;o++){var s={folder_id:result.data[o].term_id,folder_count:0,is_sticky:result.data[o].is_sticky,is_high:result.data[o].is_high,nonce:result.data[o].nonce,slug:result.data[o].slug,is_deleted:0};a.push(s),e("#js-tree-menu").jstree().create_node(result.parent_id,{id:result.data[o].term_id,text:" "+result.data[o].title},"last",function(){e(".jstree-node[id='"+result.data[o].term_id+"']").attr("data-nonce",result.data[o].nonce),e(".jstree-node[id='"+result.data[o].term_id+"']").attr("data-slug",result.data[o].slug)})}Z(),V(),d=result.term_id,Q(0)}else e("#error-folder-popup-message").html(result.message),e("#error-folder-popup").show()}})}return!1}),e(document).on("click",".form-cancel-btn",function(){e(".folder-popup-form").hide()}),e(document).on("click",".folder-popup-form",function(t){e(".folder-popup-form").hide()}),e(document).on("click",".popup-form-content",function(e){e.stopPropagation()}),document.onkeydown=function(t){("key"in(t=t||window.event)?"Escape"===t.key||"Esc"===t.key:27===t.keyCode)&&e(".folder-popup-form").hide()},e(document).on("click",".rename-folder",function(t){t.stopPropagation(),d=e(this).closest(".dynamic-menu").data("id"),E(),e(".dynamic-menu").remove()}),e(document).on("click","#inline-update",function(t){e("#js-tree-menu a.jstree-clicked").length&&(d=e("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id"),E())}),e(document).on("submit","#update-folder-form",function(o){return o.stopPropagation(),o.preventDefault(),l=e("#update-folder-item-name").val(),""==e.trim(l)?(e(".folder-form-errors").addClass("active"),e("#update-folder-item-name").focus()):(e("#update-folder-data").html('<span class="dashicons dashicons-update"></span>'),e("#update-folder-item").addClass("disabled"),m=F(d,"nonce"),parentID=e(".jstree-node[id='"+d+"']").closest("li.jstree-node").attr("id"),parentID==t&&(parentID=0),e.ajax({url:folders_media_options.ajax_url,data:{parent_id:parentID,type:folders_media_options.post_type,action:"wcp_update_folder",nonce:m,term_id:d,order:j,name:l},method:"post",success:function(t){result=e.parseJSON(t),"1"==result.status?(e("#js-tree-menu").jstree("rename_node",result.id," "+result.term_title),folderPostId=M(result.id),null!=folderPostId&&(a[folderPostId].nonce=result.nonce,a[folderPostId].slug=result.slug),e(".folder-popup-form").hide(),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),Z(),e("#media-attachment-taxonomy-filter").length&&Q(0)):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(result.message),e("#error-folder-popup").show())}})),!1}),e(document).on("click",".mark-folder",function(t){t.stopPropagation(),r=e(this).closest(".dynamic-menu").data("id"),m=F(r,"nonce"),e(".form-loader-count").css("width","100%"),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),e.ajax({url:folders_media_options.ajax_url,data:"term_id="+r+"&type="+folders_media_options.post_type+"&action=wcp_mark_un_mark_folder&nonce="+m,method:"post",cache:!1,success:function(t){t=e.parseJSON(t),e(".form-loader-count").css("width","0%"),"1"==t.status?(folderPostId=M(t.id),"1"==t.marked?(e("li.jstree-node[id='"+t.id+"']").addClass("is-high"),e(".sticky-folder-"+t.id).addClass("is-high"),null!=folderPostId&&(a[folderPostId].is_high=1)):(e("li.jstree-node[id='"+t.id+"']").removeClass("is-high"),e(".sticky-folder-"+t.id).removeClass("is-high"),null!=folderPostId&&(a[folderPostId].is_high=0)),Z()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})}),e(document).on("click",".duplicate-folder",function(t){t.stopPropagation(),d=e(this).closest(".dynamic-menu").data("id"),e(".dynamic-menu").remove(),v=!1,g=!0,X()}),e(document).on("click",".remove-folder",function(){r=e(this).closest(".dynamic-menu").data("id"),d=e(this).closest(".dynamic-menu").data("id"),B(0),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu")}),e(document).on("click","#remove-folder-item",function(t){t.stopPropagation(),e(".folder-popup-form").addClass("disabled"),e("#remove-folder-item").html('<span class="dashicons dashicons-update"></span>'),m=F(d,"nonce"),h?function(){if(e("#folder-hide-show-checkbox").is(":checked")&&e("#js-tree-menu input.checkbox:checked").length>0){var t="";e("#js-tree-menu input.checkbox:checked").each(function(){t+=e(this).closest("li.jstree-node").attr("id")+",",e(this).closest("li.jstree-node").hasClass("jstree-clicked")&&!0}),e(".form-loader-count").css("width","100%"),e.ajax({url:folders_media_options.ajax_url,data:"type="+folders_media_options.post_type+"&action=wcp_remove_muliple_folder&term_id="+t+"&nonce="+folders_media_options.nonce,method:"post",success:function(t){if(t=e.parseJSON(t),e(".form-loader-count").css("width","0px"),"1"==t.status){for(c=parseInt(t.is_key_active),n=parseInt(t.folders),e("#current-folder").text(n),i=0;i<t.term_ids.length;i++)e(".folder-modal #js-tree-menu").jstree().delete_node(t.term_ids[i]);e("#ttl-fldr").text(10),Z(),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),z(),V(),Z(),e(".folder-modal #wcp_folder_"+u).length||(e(".header-posts a").trigger("click"),u=0)}else window.location.reload();e("#folder-hide-show-checkbox").attr("checked",!1),e("#js-tree-menu input.checkbox").attr("checked",!1),e("#js-tree-menu").removeClass("show-folder-checkbox")}})}}():e.ajax({url:folders_media_options.ajax_url,data:"type="+folders_media_options.post_type+"&action=wcp_remove_folder&term_id="+d+"&nonce="+m,method:"post",success:function(t){"1"==(t=e.parseJSON(t)).status?(e("#js-tree-menu").jstree().delete_node(d),c=parseInt(t.is_key_active),n=parseInt(t.folders),e("#current-folder").text(n),e("#ttl-fldr").text(10),e(".sticky-folders .sticky-folder-"+d).remove(),Z(),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),z(),V(),u==d&&e(".header-posts").trigger("click")):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})}),e(document).on("click","#sort-order-list",function(t){t.stopPropagation(),e(".folder-order").toggleClass("active")}),e(document).on("click","#expand-collapse-list",function(t){t.stopPropagation();var o=0;e(this).hasClass("all-open")?(e(this).removeClass("all-open"),o=0,e(this).attr("data-folder-tooltip","Expand"),e("#js-tree-menu").jstree("close_all")):(e(this).addClass("all-open"),o=1,e(this).attr("data-folder-tooltip","Collapse"),e("#js-tree-menu").jstree("open_all")),f="",e("#js-tree-menu .jstree-node:not(.jstree-leaf)").each(function(){f+=e(this).attr("id")+","}),""!=f&&(e(".form-loader-count").css("width","100%"),m=folders_media_options.nonce,e.ajax({url:folders_media_options.ajax_url,data:"type="+folders_media_options.post_type+"&action=wcp_change_all_status&status="+o+"&folders="+f+"&nonce="+m,method:"post",success:function(t){e(".form-loader-count").css("width","0"),"0"==(t=e.parseJSON(t)).status&&(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show(),window.location.reload(!0))}}))}),e(document).on("click",".folder-sort-menu a",function(t){t.stopPropagation(),t.preventDefault(),e(".form-loader-count").css("width","100%"),e(".folder-order").removeClass("active"),e(this).attr("data-sort"),e.ajax({url:folders_media_options.ajax_url,data:"type="+folders_media_options.post_type+"&action=wcp_folders_by_order&nonce="+folders_media_options.nonce+"&order="+e(this).attr("data-sort"),method:"post",success:function(t){1==(t=e.parseJSON(t)).status&&(e("#js-tree-menu").jstree().destroy(),e("#js-tree-menu").append("<ul></ul>"),e("#js-tree-menu ul").html(t.data),w=t.terms,Y(),H()),e(".form-loader-count").css("width","0")}})}),e(document).on("click",".jstree-node .jstree-icon",function(){r=e(this).closest("li.jstree-node").attr("id"),e("li.jstree-node[id='"+r+"']").hasClass("jstree-open")?folderStatus=0:folderStatus=1,e(".form-loader-count").css("width","100%"),m=F(r,"nonce"),R(),e.ajax({url:folders_media_options.ajax_url,data:"is_active="+folderStatus+"&action=save_wcp_folder_state&term_id="+r+"&nonce="+m,method:"post",success:function(t){e(".form-loader-count").css("width","0"),"0"==(t=e.parseJSON(t)).status||(e("#wcp_folder_"+r).hasClass("active")?(e("#wcp_folder_"+r).removeClass("active"),e("#wcp_folder_"+r).find("ul.ui-sortable:first-child > li").slideUp(),folderStatus=0):(e("#wcp_folder_"+r).addClass("active"),e("#wcp_folder_"+r).find("ul.ui-sortable:first-child > li").slideDown(),folderStatus=1),Z())}})}),e(document).on("keyup","#folder-search",function(){q()}),e(document).on("change","#folder-search",function(){q()}),e(document).on("blur","#folder-search",function(){q()}),e(document).on("click","#folder-hide-show-checkbox",function(){e(this).is(":checked")?e("#js-tree-menu").addClass("show-folder-checkbox"):(e("#js-tree-menu input.checkbox").attr("checked",!1),e("#js-tree-menu").removeClass("show-folder-checkbox"))}),e(document).on("click",".folder-checkbox, .input-checkbox",function(e){e.stopImmediatePropagation(),e.stopPropagation()}),e(document).on("click","#inline-remove",function(){e("#js-tree-menu a.jstree-clicked").length?(d=e("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id"),B(1),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu")):e("#folder-hide-show-checkbox").is(":checked")&&(e(".dynamic-menu").remove(),B(1))}),e(document).on("change",".folder_for_media",function(){"add-folder"==e(this).val()&&(v=!0,e("#add-new-folder").trigger("click"))}),T()})});
|
1 |
+
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(e,t){var o,a,s="",r=".folder-modal #js-tree-menu",d=[],l=-1,n=0,c=0,m="",p=-1,u=0,f="",h=folders_media_options.page_url,v="",g="",y=!1,j=!1,w=!1,k=0,b=0,x=[],C=null,S=null,I=wp.media.view.AttachmentFilters.extend({id:"media-attachment-taxonomy-filter",createFilters:function(){var e={};folders_media_options.terms.length;_.each(folders_media_options.terms||{},function(t,o){e[t.term_id]={text:t.name+" ("+t.count+")",props:{media_folder:t.slug}}}),e.all={text:"All Folders",props:{media_folder:""},priority:10},e.unassigned={text:"(Unassigned)",props:{media_folder:"-1"},priority:10},this.filters=e},change:function(){var e={};_.each(folders_media_options.terms||{},function(t,o){e[t.term_id]={text:t.name+" ("+t.count+")",props:{media_folder:t.slug}}}),e.all={text:"Select a folder >>",props:{media_folder:""},priority:10},e.unassigned={text:"(Unassigned)",props:{media_folder:"-1"},priority:10},this.filters=e;var t=this.filters[this.el.value];t&&this.model.set(t.props)}}),P=0,D=0,H=wp.media.view.AttachmentsBrowser;wp.media.view.AttachmentsBrowser=wp.media.view.AttachmentsBrowser.extend({createToolbar:function(){H.prototype.createToolbar.call(this),this.toolbar.set("MediaLibraryOrganizerTaxonomyFilter",new I({controller:this.controller,model:this.collection.props,priority:-75}).render())}});var N,A=wp.media.model.Query;_.extend(A,{get:(N=[],function(e,t){var o,a={},s=A.orderby,r=A.defaultProps;return delete e.query,delete e.cache,_.defaults(e,r),_.each(["include","exclude"],function(t){e[t]&&!_.isArray(e[t])&&(e[t]=[e[t]])}),_.each(e,function(e,t){_.isNull(e)||(a[A.propmap[t]||t]=e)}),_.defaults(a,A.defaultArgs),a.orderby=s.valuemap[e.orderby]||e.orderby,N=[],o||(o=new A([],_.extend(t||{},{props:e,args:a})),N.push(o)),o})});var O=window.wp;void 0!==O&&"function"==typeof O.Uploader&&(O.media.view.Modal.prototype.on("open",function(){s="",setTimeout(function(){e("#media-attachment-taxonomy-filter").length&&("all"==e("#media-attachment-taxonomy-filter").val()&&(e("#media-attachment-taxonomy-filter option:gt(1)").remove(),_.each(folders_media_options.terms,function(t,o){e("#media-attachment-taxonomy-filter").append("<option value='"+t.term_id+"'>"+t.name+" ("+t.trash_count+")</option>")})),e("#wcp-content").length||e(".editor-post-featured-image").length&&e(".attachment-filters").val("all").trigger("change"))},100)}),O.media.view.Modal.prototype.on("close",function(){s=""}),e.extend(O.Uploader.prototype,{progress:function(){},init:function(){this.uploader&&(this.uploader.bind("FileFiltered",function(t,o){P++,e(".folder-meter").css("width","0%"),e(".media-folder-loader").show(),e("#total_upload_files").text(P)}),this.uploader.bind("BeforeUpload",function(t,o){var a=l,s=t.settings.multipart_params;if((a=parseInt(a))>0&&(s.folder_for_media=a),D<P){e(".media-folder-loader").show();var r=D/P*100;e(".folder-meter").css("width",r+"%")}D++,e("#current_upload_files").text(D)}),this.uploader.bind("UploadComplete",function(e,t){l=-1}),this.uploader.bind("UploadComplete",function(t,o){var a=window.wp;e(".folder-meter").css("width","100%"),setTimeout(function(){e(".media-folder-loader").hide(),e(".folder-meter").css("width","0%"),P=0,D=0},1250),function(){e("#media-attachment-taxonomy-filter").val();U=e.ajax({url:folders_media_options.ajax_url,data:"type=attachment&action=wcp_get_default_list&active_id=0",method:"post",beforeSend:function(){null!=U&&U.abort()},success:function(t){var t=e.parseJSON(t);x=t.taxonomies,q(),F()}})}(),void 0!==a.media.frame&&null!==a.media.frame.content.get()?(s="",e(".folder-modal ul.attachments li.selected").length&&(s=e(".folder-modal ul.attachments li.selected").data("id")),a.media.frame.content.get().collection.props.set({ignore:+new Date}),a.media.frame.content.get().options.selection.reset()):e("#media-attachment-taxonomy-filter").length&&e(".attachment-filters").each(function(){e(this).trigger("change")})}))}}));var U,J=window.wp;if(void 0!==J&&"function"==typeof J.Uploader){var Q=window.wp.media,T=Q.view.Modal;Q.view.Modal=Q.view.Modal.extend({className:"folder-modal",initialize:function(){T.prototype.initialize.apply(this,arguments)},open:function(){T.prototype.open.apply(this,arguments)&&(e(".folder-modal").length||e(".supports-drag-drop").length&&e(".supports-drag-drop").each(function(){"block"!=e(this).css("display")&&"inline-block"!=e(this).css("display")||e(this).addClass("folder-modal")}),e(".folder-modal").length?(e(".folder-custom-menu").remove(),e(".folder-modal .media-frame-tab-panel").removeClass("has-folder-menu"),e(".folder-modal .media-frame").hasClass("hide-menu")?e(".folder-custom-menu").length||(e(".folder-modal .media-frame-tab-panel").before("<div class='folder-custom-menu'><div class='folder-menu-content'><div class='cssload-container'><div class='cssload-tube-tunnel'></div></div></div></div>"),e(".folder-modal .folder-menu-content").load(folders_media_options.media_page_url+" #wcp-content-resize",function(){W(),B(),M()})):e(".folder-custom-menu").length||(e(".folder-modal .media-frame-menu").addClass("has-folder-menu"),e(".folder-modal .media-frame-menu .media-menu").append("<div class='folder-custom-menu'><div class='folder-menu-content'><div class='cssload-container'><div class='cssload-tube-tunnel'></div></div></div></div>"),e(".folder-modal .folder-menu-content").load(folders_media_options.media_page_url+" #wcp-content-resize",function(){W(),B(),M()})),e(".folder-form-data").remove(),e(".media-frame-tab-panel:first").before("<div class='folder-form-data'></div>"),e(".folder-form-data").load(folders_media_options.media_page_url+" #folder-add-update-content",function(){})):setTimeout(function(){-1!=l&&e("#media-attachment-taxonomy-filter").each(function(){e(this).val(l),e(this).trigger("change")})},1e3))},close:function(){T.prototype.close.apply(this,arguments),e(".folder-modal").removeClass("folder-modal")}})}function F(){e(".jstree-anchor:not(.ui-droppable)").droppable({accept:".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",hoverClass:"wcp-drop-hover",classes:{"ui-droppable-active":"ui-state-highlight"},drop:function(t,o){n=e(this).closest("li.jstree-node").attr("id"),o.draggable.hasClass("wcp-move-multiple")?e(".wp-list-table input:checked").length&&(chkStr="",e(".wp-list-table input:checked").each(function(){chkStr+=e(this).val()+","}),f=V(n,"nonce"),e.ajax({url:folders_media_options.ajax_url,data:"post_ids="+chkStr+"&type="+folders_media_options.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+n+"&nonce="+f+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+v,method:"post",success:function(t){"1"==(t=e.parseJSON(t)).status?R():(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})):o.draggable.hasClass("wcp-move-file")?(postID=o.draggable[0].attributes["data-id"].nodeValue,f=V(n,"nonce"),chkStr=postID+",",e(".wp-list-table input:checked").each(function(){e(this).val()!=postID&&(chkStr+=e(this).val()+",")}),e.ajax({url:folders_media_options.ajax_url,data:"post_ids="+chkStr+"&type="+folders_media_options.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+n+"&nonce="+f+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+v,method:"post",success:function(t){"1"==(t=e.parseJSON(t)).status?R():(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})):o.draggable.hasClass("attachment")&&(chkStr=o.draggable[0].attributes["data-id"].nodeValue,f=V(n,"nonce"),e(".attachments-browser li.attachment.selected").length>1&&(chkStr="",e(".attachments-browser li.attachment.selected").each(function(){chkStr+=e(this).data("id")+","})),g=chkStr,e.ajax({url:folders_media_options.ajax_url,data:"post_ids="+chkStr+"&type="+folders_media_options.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+n+"&nonce="+f+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+v,method:"post",success:function(e){R(),K()}}))}}),e(".media-frame:not(.hide-router) .attachments-browser li.attachment:not(.ui-draggable)").draggable({revert:"invalid",containment:"document",helper:function(t,o){e(".selected-items").remove();var a=e(".media-frame:not(.hide-router) .attachments-browser li.attachment.selected").length;return e("<div class='selected-items'><span class='total-post-count'>"+(a=0==a||1==a?"1 Item":a+" Items")+" Selected</span></div>")},start:function(t,o){e("body").addClass("no-hover-css")},cursor:"move",appendTo:".media-modal",cursorAt:{left:0,top:0},stop:function(t,o){e(".selected-items").remove(),e("body").removeClass("no-hover-css")}}),e(".un-categorised-items").droppable({accept:".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",hoverClass:"wcp-hover-list",classes:{"ui-droppable-active":"ui-state-highlight"},drop:function(t,o){n=-1,f=folders_media_options.nonce,o.draggable.hasClass("wcp-move-multiple")?e(".wp-list-table input:checked").length&&(chkStr="",e(".wp-list-table input:checked").each(function(){chkStr+=e(this).val()+","}),e.ajax({url:folders_media_options.ajax_url,data:"post_id="+chkStr+"&type="+folders_media_options.post_type+"&action=wcp_remove_post_folder&folder_id="+n+"&nonce="+f+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+v,method:"post",success:function(e){R()}})):o.draggable.hasClass("wcp-move-file")?(postID=o.draggable[0].attributes["data-id"].nodeValue,chkStr=postID+",",e(".wp-list-table input:checked").each(function(){postID!=e(this).val()&&(chkStr+=e(this).val()+",")}),e.ajax({url:folders_media_options.ajax_url,data:"post_id="+chkStr+"&type="+folders_media_options.post_type+"&action=wcp_remove_post_folder&folder_id="+n+"&nonce="+f+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+v,method:"post",success:function(e){R()}})):o.draggable.hasClass("attachment")&&(chkStr=o.draggable[0].attributes["data-id"].nodeValue,e(".attachments-browser li.attachment.selected").length>1&&(chkStr="",e(".attachments-browser li.attachment.selected").each(function(){chkStr+=e(this).data("id")+","})),g=chkStr,e.ajax({url:folders_media_options.ajax_url,data:"post_id="+chkStr+"&type="+folders_media_options.post_type+"&action=wcp_remove_post_folder&folder_id="+n+"&nonce="+f+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+v,method:"post",success:function(e){R()}}))}}),e(".tree-structure .folder-item:not(.ui-droppable)").droppable({accept:".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",hoverClass:"wcp-drop-hover-list",classes:{"ui-droppable-active":"ui-state-highlight"},drop:function(t,o){e("body").removeClass("no-hover-css"),n=e(this).data("id"),o.draggable.hasClass("wcp-move-multiple")?(f=V(n,"nonce"),e(".wp-list-table input:checked").length&&(chkStr="",e(".wp-list-table input:checked").each(function(){chkStr+=e(this).val()+","}),e.ajax({url:folders_media_options.ajax_url,data:"post_ids="+chkStr+"&type="+folders_media_options.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+n+"&nonce="+f+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+v,method:"post",success:function(e){R(),K()}}))):o.draggable.hasClass("wcp-move-file")?(postID=o.draggable[0].attributes["data-id"].nodeValue,f=V(n,"nonce"),chkStr=postID+",",e(".wp-list-table input:checked").each(function(){e(this).val()!=postID&&(chkStr+=e(this).val()+",")}),e.ajax({url:folders_media_options.ajax_url,data:"post_ids="+chkStr+"&type="+folders_media_options.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+n+"&nonce="+f+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+v,method:"post",success:function(e){R(),K()}})):o.draggable.hasClass("attachment")&&(chkStr=o.draggable[0].attributes["data-id"].nodeValue,f=V(n,"nonce"),e(".attachments-browser li.attachment.selected").length>1&&(chkStr="",e(".attachments-browser li.attachment.selected").each(function(){chkStr+=e(this).data("id")+","})),e.ajax({url:folders_media_options.ajax_url,data:"post_ids="+chkStr+"&type="+folders_media_options.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+n+"&nonce="+f+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+v,method:"post",success:function(e){R(),K()}}))}}),e(".wcp-move-file:not(.ui-draggable)").draggable({revert:"invalid",containment:"document",helper:"clone",cursor:"move",start:function(t,o){e(this).closest("td").addClass("wcp-draggable"),e("body").addClass("no-hover-css")},stop:function(t,o){e(this).closest("td").removeClass("wcp-draggable"),e("body").removeClass("no-hover-css")}}),e(".wcp-move-multiple:not(.ui-draggable)").draggable({revert:"invalid",containment:"document",helper:function(t,o){return e(".selected-items").remove(),selectedItems=e("#the-list th input:checked").length,selectedItems>0?(selectedItems=0==selectedItems||1==selectedItems?"1 Item":selectedItems+" Items",e("<div class='selected-items'><span class='total-post-count'>"+selectedItems+" Selected</span></div>")):e("<div class='selected-items'><span class='total-post-count'>Select Items to move</span></div>")},start:function(t,o){e("body").addClass("no-hover-css")},cursor:"move",cursorAt:{left:0,top:0},stop:function(t,o){e(".selected-items").remove(),e("body").removeClass("no-hover-css")}})}function M(){e(r).jstree({core:{cache:!1,animation:0,max_depth:a?"-1":1,check_callback:function(t,o,s,r,d){if(e("*").removeClass("drag-bot").removeClass("drag-in").removeClass("drag-up"),("move_node"===t||"copy_node"===t)&&d&&d.dnd)switch(d.pos){case"a":d.origin.get_node(d.ref,!0).addClass("drag-bot"),nodeId=e(".drag-bot").attr("id"),e("#jstree-dnd").text("Below "+e.trim(e("#js-tree-menu").jstree(!0).get_node(nodeId).text));break;case"i":if(!a)return!1;d.origin.get_node(d.ref,!0).addClass("drag-in"),nodeId=e(".drag-in").attr("id"),e("#jstree-dnd").text("Inside "+e.trim(e("#js-tree-menu").jstree(!0).get_node(nodeId).text));break;case"b":d.origin.get_node(d.ref,!0).addClass("drag-up"),nodeId=e(".drag-up").attr("id"),e("#jstree-dnd").text("Above "+e.trim(e("#js-tree-menu").jstree(!0).get_node(nodeId).text));break;default:e("#jstree-dnd").text(e("#jstree-dnd").data("txt"))}return!0}},data:{cache:!1},select_node:!1,search:{show_only_matches:!0,case_sensitive:!1,fuzzy:!1},plugins:["dnd","search","contextmenu"],contextmenu:{select_node:0,show_at_node:0,items:function(){return{}}}}).bind("ready.jstree",function(){!function(){e("#js-tree-menu .jstree-node").each(function(){var t=parseInt(e(this).data("count"));t>0&&e(".jstree-node[id='"+e(this).attr("id")+"'] > a span.premio-folder-count").text(t)}),""!=v&&0!=v&&e(".jstree-node[id='"+v+"']").length&&(e("#js-tree-menu").jstree("select_node",v),e(".sticky-folders .sticky-folder-"+v+" a").length&&e(".sticky-folders .sticky-folder-"+v+" a").addClass("active-item"));e(".ajax-preloader").hide(),e(".js-tree-data").show(),B(),Y(),e(".sticky-folders ul > li").length>0&&e(".sticky-folders").addClass("active")}(),F()}).bind("after_open.jstree",function(){F()}).bind("open_all.jstree",function(){F()}).bind("create_node.jstree",function(){F()}).bind("delete_node.jstree",function(){F()}).bind("close_all.jstree",function(){F()}).bind("after_close.jstree",function(){F()}).bind("move_node.jstree",function(t,o){"#"!=o.node.parent&&jQuery("#js-tree-menu").jstree("open_node",o.node.parent),folderMoveId=o.node.id,orderString="",e(".folder-modal .jstree-node[id='"+folderMoveId+"']").closest("ul").children().each(function(){"undefined"!=e(this).attr("id")&&(orderString+=e(this).attr("id")+",")}),e(".folder-modal #"+folderMoveId+"_anchor").closest(".jstree-node").parent().parent().hasClass("jstree-node")?parentID=e("#"+folderMoveId+"_anchor").closest(".jstree-node").parent().parent().attr("id"):parentID=0,""!=orderString&&(e(".form-loader-count").css("width","100%"),e.ajax({url:folders_media_options.ajax_url,data:"term_ids="+orderString+"&action=wcp_save_folder_order&type="+folders_media_options.post_type+"&nonce="+folders_media_options.nonce+"&term_id="+folderMoveId+"&parent_id="+parentID,method:"post",success:function(t){"1"==(t=e.parseJSON(t)).status?(e("#wcp_folder_parent").html(t.options),e(".form-loader-count").css("width","0"),R(),K(),q(),F()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show(),window.location.reload(!0))}}))}),F()}function V(e,t){if(d.length>0)for(i=0;i<d.length;i++)if(parseInt(d[i].folder_id)==parseInt(e))return d[i][t];return""}function z(e){if(d.length>0)for(i=0;i<d.length;i++)if(parseInt(d[i].folder_id)==parseInt(e))return i;return null}function Y(){e(".sticky-folders > ul").html("");var t="";if(e("#js-tree-menu li.jstree-node.is-sticky").each(function(){var o=e(this).attr("id"),a=e.trim(e("#js-tree-menu").jstree(!0).get_node(o).text),s=(e("#"+o+"_anchor .premio-folder-count").text(),e("li.jstree-node[id='"+o+"']").hasClass("is-high")?" is-high ":"");t+="<li data-folder-id='"+o+"' class='sticky-fldr "+s+" sticky-folder-"+o+"'><a href='javascript:;'><span class='folder-title'>"+a+"</span><span class='folder-actions'><span class='update-inline-record'><i class='pfolder-edit-folder'></i></span><span class='star-icon'><i class='pfolder-star'></i></span><span class='premio-folder-count'></span></span></a></li>"}),e(".sticky-folders > ul").html(t),e(".jstree-anchor.jstree-clicked").length){var o=e(".jstree-anchor.jstree-clicked").closest("li.jstree-node").attr("id");e(".sticky-folders .sticky-folder-"+o+" a").addClass("active-item")}e(".sticky-folders > ul > li").length>0?e(".sticky-folders").addClass("active"):e(".sticky-folders").removeClass("active"),B()}function B(){var t=0;if(e("#custom-scroll-menu").hasClass("mCustomScrollbar")){var o=jQuery("#custom-scroll-menu"),a=o.find(".mCSB_dragger"),s=o.find(".mCSB_container").height();t=a.position().top/(o.height()-a.height())*(s-o.height()),e("#custom-scroll-menu").mCustomScrollbar("destroy")}var r=jQuery(".folder-modal .media-modal-content").height()-e(".folder-modal .sticky-wcp-custom-form").height()-40;e(".folder-modal #custom-scroll-menu").closest(".media-frame-menu").length&&jQuery(".folder-custom-menu").length&&jQuery(".media-frame-menu").length&&(r=jQuery(".folder-modal .media-modal-content").height()-e(".folder-modal .sticky-wcp-custom-form").height()-jQuery(".folder-custom-menu").offset().top+jQuery(".media-frame-menu").offset().top-40),r<0&&(r=350),e("#custom-scroll-menu").mCustomScrollbar({axis:"y",scrollButtons:{enable:!0},setHeight:r,theme:"3d",scrollbarPosition:"inside",scrollInertia:500,mouseWheelPixels:60}),0!=t&&jQuery("#custom-scroll-menu").mCustomScrollbar("scrollTo",t+"px",{scrollInertia:0})}function R(){if(e(".media-toolbar").hasClass("media-toolbar-mode-select")&&e("ul.attachments li.selected").length&&(e("ul.attachments li.selected").trigger("click"),e(".select-mode-toggle-button").trigger("click")),""!=g&&(e("#js-tree-menu a.jstree-clicked").length>0||"-1"==v)){if(e("#media-attachment-taxonomy-filter").length){g=g.split(",");for(var t=0;t<g.length;t++)""!=g[t]&&e(".attachments-browser li[data-id='"+g[t]+"']").remove()}g=""}e("#media-attachment-taxonomy-filter").length?G(0):(e.ajax({url:folders_media_options.ajax_url,data:"type="+folders_media_options.post_type+"&action=get_folders_default_list",method:"post",success:function(t){t=e.parseJSON(t),e(".header-posts .total-count").text(t.total_items),e(".un-categorised-items .total-count").text(t.empty_items),x=t.taxonomies,q(),F()}}),e(".folder-loader-ajax").addClass("active"),e("#folder-posts-filter").length?e("#folder-posts-filter").load(h+" #posts-filter",function(){var t={Title:"",Url:h};history.pushState(t,t.Title,t.Url),"show"!=folders_media_options.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),triggerInlineUpdate()}):e("#wpbody").load(h+" #wpbody-content",!1,function(t){var o={Title:"",Url:h};history.pushState(o,o.Title,o.Url),"show"!=folders_media_options.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>')}))}function q(){if(e("#media-attachment-taxonomy-filter").length&&(e("#media-attachment-taxonomy-filter").each(function(){folders_media_options.terms=x;var t=e(this);currentDDVal=e(this).val(),t.html("<option value='all'>All Folders</option><option value='unassigned'>(Unassigned)</option>"),x;for(var o=0;o<x.length;o++)t.append("<option value='"+x[o].term_id+"'>"+x[o].name+" ("+x[o].trash_count+")</option>");t.val(currentDDVal).trigger("change")}),e("select.folder_for_media").length)){var t=e("select.folder_for_media").val();e("select.folder_for_media option:not(:first-child):not(:last-child)").remove();for(var o=0;o<x.length;o++)e("select.folder_for_media option:last-child").before("<option value='"+x[o].term_id+"'>"+x[o].name+"</option>");""!=t&&e(".folder_for_media").val(t)}for(e("span.premio-folder-count").text(""),e(".folder-count").text(""),o=0;o<x.length;o++)0!=parseInt(x[o].trash_count)&&(e(".jstree-node[id='"+x[o].term_id+"'] > a.jstree-anchor span.premio-folder-count").text(x[o].trash_count),e(".sticky-folder-"+x[o].term_id+" .premio-folder-count").text(x[o].trash_count));""!=v&&e("#wcp_folder_"+v).addClass("active-item"),j&&(e("#title_"+c).trigger("click"),j=!1)}function E(){var t=e.trim(e("#folder-search").val());e("#js-tree-menu").jstree("search",t)}function X(t){var o="Are you sure you want to delete the selected folder?",a="Items in the folder will not be deleted.";if(y=!1,1==t&&e("#folder-hide-show-checkbox").is(":checked")){if(y=!0,0==e("#js-tree-menu input.checkbox:checked").length)return e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html("Please select at least one folder to delete"),void e("#error-folder-popup").show();e("#js-tree-menu input.checkbox:checked").length>1&&(o="Are you sure you want to delete the selected folders?",a="Items in the selected folders will not be deleted.")}e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#remove-folder-item").text("Yes, Delete it!"),e("#remove-folder-message").text(o),e("#remove-folder-notice").text(a),e("#confirm-remove-folder").show(),e("#remove-folder-item").focus()}function L(){folderName=e.trim(e("#js-tree-menu").jstree(!0).get_node(c).text),parentID=e("#wcp_folder_"+c).closest("li.jstree-node").data("folder-id"),parentID==t&&(parentID=0),e("#update-folder-data").text("Submit"),e(".folder-form-errors").removeClass("active"),e("#update-folder-item-name").val(folderName),e("#update-folder-item").removeClass("disabled"),e("#update-folder-item").show(),e("#update-folder-item-name").focus(),e(".dynamic-menu").remove()}function Z(){if(0==u&&p>=10)return e("#folder-limitation-message").html("You've reached the 10 folder limitation!"),e("#no-more-folder-credit").show(),!1;e("#add-update-folder-title").text("Add new folder"),e("#save-folder-data").text("Submit"),e(".folder-form-errors").removeClass("active"),e("#add-update-folder-name").val(""),w&&(k=c,e("#add-update-folder-name").val(e.trim(e("#js-tree-menu").jstree(!0).get_node(c).text)+" #2"),c=e("#"+c+"_anchor").closest(".jstree-node").parent().parent().hasClass("jstree-node")?e("#"+c+"_anchor").closest(".jstree-node").parent().parent().attr("id"):0),e("#add-update-folder").removeClass("disabled"),e("#add-update-folder").show(),e("#add-update-folder-name").focus(),e(".dynamic-menu").remove()}function W(){setTimeout(function(){if(e("#js-tree-menu .jstree-node.jstree-leaf").length==e("#js-tree-menu .jstree-node").length)e("#expand-collapse-list").removeClass("all-open"),e("#expand-collapse-list").attr("data-folder-tooltip","Expand");else{var t=e("#js-tree-menu .jstree-node.jstree-closed").length+e("#js-tree-menu .jstree-node.jstree-open").length;e("#js-tree-menu .jstree-node.jstree-closed").length==t?(e("#expand-collapse-list").removeClass("all-open"),e("#expand-collapse-list").attr("data-folder-tooltip","Expand")):(e("#expand-collapse-list").addClass("all-open"),e("#expand-collapse-list").attr("data-folder-tooltip","Collapse"))}},500),F()}function G(o){U=e.ajax({url:folders_media_options.ajax_url,data:"type="+folders_media_options.post_type+"&action=wcp_get_default_list&active_id="+v,method:"post",beforeSend:function(){null!=U&&U.abort()},success:function(a){if(a=e.parseJSON(a),e(".header-posts .total-count").text(a.total_items),e(".un-categorised-items .total-count").text(a.empty_items),selectedVal=e("#media-attachment-taxonomy-filter").val(),"all"!=selectedVal&&1==o){var s=parent.wp;s.media!=t&&(s.media.frame.setState("insert"),null!==s.media.frame.content.get()?(s.media.frame.content.get().collection.props.set({ignore:+new Date}),s.media.frame.content.get().options.selection.reset()):s.media.frame.library.props.set({ignore:+new Date}))}x=a.taxonomies,q(),F()}})}function K(){e(".folder-loader-ajax").addClass("active"),e(".folder-loader-ajax img").removeClass("active"),e(".folder-loader-ajax svg#successAnimation").addClass("active").addClass("animated"),setTimeout(function(){e(".folder-loader-ajax").removeClass("active"),e(".folder-loader-ajax img").addClass("active"),e(".folder-loader-ajax svg#successAnimation").removeClass("active").removeClass("animated")},2e3),F()}e(document).ready(function(){o=parseInt(folders_media_options.hasStars),a=parseInt(folders_media_options.hasChildren),e(document).on("click",".thumbnail-hover-box a",function(t){return t.stopPropagation(),t.stopImmediatePropagation(),t.preventDefault(),window.open(e(this).prop("href"),"_blank"),!1}),e(document).ajaxComplete(function(e,o,a){a.data!=t&&""!=a.data&&-1!=a.data.indexOf("action=query-attachments")&&F(),""!=s&&jQuery(".folder-modal ul.attachments li[data-id='"+s+"']").length&&!jQuery(".folder-modal ul.attachments li[data-id='"+s+"']").hasClass("selected")&&jQuery(".folder-modal ul.attachments li[data-id='"+s+"']").trigger("click")}),x=folders_media_options.terms,u=parseInt(folders_media_options.is_key_active),p=parseInt(folders_media_options.folders),d=folders_media_options.folder_settings,e(document).on("click",".header-posts a.all-posts",function(t){c=0,v="",l="all",e(".active-item").removeClass("active-item"),e(".jstree-clicked").removeClass("jstree-clicked"),e(this).addClass("active-item"),e(".sticky-folders .active-item").removeClass("active-item"),e(this).closest(".media-frame").find("#media-attachment-taxonomy-filter").val("all").trigger("change"),e(this).closest(".media-frame").find(".folder_for_media").val("all").trigger("change")}),e(document).on("click",".un-categorised-items",function(t){c=0,v="",l="unassigned",e(".active-item").removeClass("active-item"),e(".sticky-folders .active-item").removeClass("active-item"),e(".jstree-clicked").removeClass("jstree-clicked"),e(this).addClass("active-item"),e(this).closest(".media-frame").find("#media-attachment-taxonomy-filter").val("unassigned").trigger("change"),e(this).closest(".media-frame").find(".folder_for_media").val("-1").trigger("change")}),e(document).on("click","a.jstree-anchor",function(t){var o,a=e(this).closest("li.jstree-node").attr("id");l=c=a,e(this).closest(".folder-modal").find(".active-item").removeClass("active-item"),e(this).closest(".folder-modal").find("#media-attachment-taxonomy-filter").val(a),e(this).closest(".folder-modal").find("#media-attachment-taxonomy-filter").trigger("change"),thisSlug=V(a,"slug"),o=thisSlug,e.ajax({url:folders_media_options.ajax_url,type:"post",data:"action=save_folder_last_status&post_type="+folders_media_options.post_type+"&post_id="+o+"&nonce="+folders_media_options.nonce,cache:!1,async:!1,success:function(){}}),e(".custom-media-select").removeClass("active")}),e(document).on("change",".folder_for_media",function(){"add-folder"!=e(this).val()&&null!=e(this).val()?l=e(this).val():"add-folder"==e(this).val()&&(l=-1)}),e(document).on("click",".new-folder-pro",function(t){t.preventDefault(),e(".dynamic-menu").remove(),e("#sub-folder-popup").show()}),e(document).on("click",".close-popup-button a",function(){e(".folder-popup-form").hide()}),e(document).on("click",".update-inline-record",function(s){var r;(s.stopImmediatePropagation(),s.stopPropagation(),0!=folders_media_options.can_manage_folder)&&(isHigh=e(this).closest("li.sticky-fldr").hasClass("is-high"),isSticky=e(this).closest("li.sticky-fldr").hasClass("is-sticky"),isStickyClass=!!isSticky,e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),menuHtml="<div class='dynamic-menu' data-id='"+e(this).closest("li").data("folder-id")+"'><ul>",menuHtml+=a?"<li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>":"<li class='new-folder-pro'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Sub-folder (Pro)</a></li>",menuHtml+="<li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span>Rename</a></li><li class='sticky-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class='sticky-pin'><i class='pfolder-pin'></i></span>Sticky Folder (Pro)</a></li>",menuHtml+=o?"<li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>"+(isHigh?"Remove Star":"Add a Star")+"</a></li>":"<li class='mark-folder-pro'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-star'></i></span>"+(isHigh?"Remove Star (Pro)":"Add a Star (Pro)")+"</a></li>",menuHtml+="<li class='lock-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class='dashicons dashicons-lock'></span>Lock Folder (Pro)</a></li><li class='duplicate-folder'><a href='javascript:;'><span class=''><i class='pfolder-clone'></i></span>Duplicate folder</a></li>",hasPosts=parseInt(e(this).closest("li.jstree-node").find("h3.title:first > .total-count").text()),"attachment"==folders_media_options.post_type&&hasPosts&&(menuHtml+="<li class='download-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-zip-file'></i></span>Download Zip (Pro)</a></li>"),menuHtml+="<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span>Delete</a></li></ul></div>",e("body").append(menuHtml),s.pageX==t||s.pageY==t?(e(".dynamic-menu").css("left",C),e(".dynamic-menu").css("top",S-10),r=S):(e(".dynamic-menu").css("left",s.pageX),e(".dynamic-menu").css("top",s.pageY),r=s.pageY),r+e(".dynamic-menu").height()>e(window).height()&&e(".dynamic-menu").css("margin-top",e(window).height()-(r+e(".dynamic-menu").height())))}),e(document).on("click","body, html",function(t){e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),e(".folder-order").removeClass("active")}),e(document).on("click",".dynamic-menu, .folder-order",function(e){e.stopPropagation()}),e(document).on("contextmenu",".jstree-anchor",function(t){return C=t.pageX,S=t.pageY,e(this).find("span.folder-inline-edit").trigger("click"),!1}),e(document).on("click",".folder-actions span.folder-inline-edit",function(s){var r;(s.stopImmediatePropagation(),s.stopPropagation(),0!=folders_media_options.can_manage_folder)&&(isHigh=e(this).closest("li.jstree-node").hasClass("is-high"),isSticky=e(this).closest("li.jstree-node").hasClass("is-sticky"),isStickyClass=!!isSticky,e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),menuHtml="<div class='dynamic-menu' data-id='"+e(this).closest("li").prop("id")+"'><ul>",menuHtml+=a?"<li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>":"<li class='new-folder-pro'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Sub-folder (Pro)</a></li>",menuHtml+="<li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span>Rename</a></li><li class='sticky-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class='sticky-pin'><i class='pfolder-pin'></i></span>Sticky Folder (Pro)</a></li>",menuHtml+=o?"<li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>"+(isHigh?"Remove Star":"Add a Star")+"</a></li>":"<li class='mark-folder-pro'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-star'></i></span>"+(isHigh?"Remove Star (Pro)":"Add a Star (Pro)")+"</a></li>",menuHtml+="<li class='lock-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class='dashicons dashicons-lock'></span>Lock Folder (Pro)</a></li><li class='duplicate-folder'><a href='javascript:;'><span class=''><i class='pfolder-clone'></i></span>Duplicate folder</a></li>",hasPosts=parseInt(e(this).closest("a.jstree-anchor").find(".premio-folder-count").text()),"attachment"==folders_media_options.post_type&&hasPosts&&(menuHtml+="<li class='download-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-zip-file'></i></span>Download Zip (Pro)</a></li>"),menuHtml+="<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span>Delete</a></li></ul></div>",e("body").append(menuHtml),e(this).parents("li.jstree-node").addClass("active-menu"),s.pageX==t||s.pageY==t?(e(".dynamic-menu").css("left",C),e(".dynamic-menu").css("top",S-10),r=S):(e(".dynamic-menu").css("left",s.pageX),e(".dynamic-menu").css("top",s.pageY),r=s.pageY),r+e(".dynamic-menu").height()>e(window).height()&&e(".dynamic-menu").css("margin-top",e(window).height()-(r+e(".dynamic-menu").height())))}),e(document).on("click",".dynamic-menu",function(e){e.stopImmediatePropagation(),e.stopPropagation()}),e(document).on("click","body, html",function(){e(".dynamic-menu").remove()}),e(document).on("click",".new-folder",function(t){t.stopPropagation(),c=e(this).closest(".dynamic-menu").data("id"),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),j=!1,w=!1,Z()}),e(document).on("click","#add-new-folder",function(t){e("#js-tree-menu a.jstree-clicked").length?(c=e("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id"),a||e("#pro-notice").removeClass("hide-it")):(c=0,e("#pro-notice").addClass("hide-it")),j=!1,Z()}),e(document).on("submit","#save-folder-form",function(t){if(t.stopPropagation(),t.preventDefault(),m=e("#add-update-folder-name").val(),""==e.trim(m))e(".folder-form-errors").addClass("active"),e("#add-update-folder-name").focus();else{e("#save-folder-data").html('<span class="dashicons dashicons-update"></span>'),e("#add-update-folder").addClass("disabled");var o=c;j&&(o=0),a||(o=0),b=0==o?e("#js-tree-menu > ul > li.jstree-node").length:e("#js-tree-menu > ul > li.jstree-node[id='"+o+"'] > ul.jstree-children > li").length+1,e.ajax({url:folders_media_options.ajax_url,data:{parent_id:o,type:folders_media_options.post_type,action:"wcp_add_new_folder",nonce:folders_media_options.nonce,term_id:o,order:b,name:m,is_duplicate:w,duplicate_from:k},method:"post",success:function(t){if(result=e.parseJSON(t),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),-1==result.status)e("#no-more-folder-credit").show();else if("1"==result.status){if(u=parseInt(result.is_key_active),p=parseInt(result.folders),e("#current-folder").text(p),e("#ttl-fldr").text(10),W(),result.data.length)for(var o=0;o<result.data.length;o++){var a={folder_id:result.data[o].term_id,folder_count:0,is_sticky:result.data[o].is_sticky,is_high:result.data[o].is_high,nonce:result.data[o].nonce,slug:result.data[o].slug,is_deleted:0};d.push(a),e("#js-tree-menu").jstree().create_node(result.parent_id,{id:result.data[o].term_id,text:" "+result.data[o].title},"last",function(){e(".jstree-node[id='"+result.data[o].term_id+"']").attr("data-nonce",result.data[o].nonce),e(".jstree-node[id='"+result.data[o].term_id+"']").attr("data-slug",result.data[o].slug)})}K(),Y(),c=result.term_id,G(0)}else e("#error-folder-popup-message").html(result.message),e("#error-folder-popup").show()}})}return!1}),e(document).on("click",".form-cancel-btn",function(){e(".folder-popup-form").hide()}),e(document).on("click",".folder-popup-form",function(t){e(".folder-popup-form").hide()}),e(document).on("click",".popup-form-content",function(e){e.stopPropagation()}),document.onkeydown=function(t){("key"in(t=t||window.event)?"Escape"===t.key||"Esc"===t.key:27===t.keyCode)&&e(".folder-popup-form").hide()},e(document).on("click",".rename-folder",function(t){t.stopPropagation(),c=e(this).closest(".dynamic-menu").data("id"),L(),e(".dynamic-menu").remove()}),e(document).on("click","#inline-update",function(t){e("#js-tree-menu a.jstree-clicked").length&&(c=e("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id"),L())}),e(document).on("submit","#update-folder-form",function(o){return o.stopPropagation(),o.preventDefault(),m=e("#update-folder-item-name").val(),""==e.trim(m)?(e(".folder-form-errors").addClass("active"),e("#update-folder-item-name").focus()):(e("#update-folder-data").html('<span class="dashicons dashicons-update"></span>'),e("#update-folder-item").addClass("disabled"),f=V(c,"nonce"),parentID=e(".jstree-node[id='"+c+"']").closest("li.jstree-node").attr("id"),parentID==t&&(parentID=0),e.ajax({url:folders_media_options.ajax_url,data:{parent_id:parentID,type:folders_media_options.post_type,action:"wcp_update_folder",nonce:f,term_id:c,order:b,name:m},method:"post",success:function(t){result=e.parseJSON(t),"1"==result.status?(e("#js-tree-menu").jstree("rename_node",result.id," "+result.term_title),folderPostId=z(result.id),null!=folderPostId&&(d[folderPostId].nonce=result.nonce,d[folderPostId].slug=result.slug),e(".folder-popup-form").hide(),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),K(),e("#media-attachment-taxonomy-filter").length&&G(0)):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(result.message),e("#error-folder-popup").show())}})),!1}),e(document).on("click",".mark-folder",function(t){t.stopPropagation(),n=e(this).closest(".dynamic-menu").data("id"),f=V(n,"nonce"),e(".form-loader-count").css("width","100%"),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),e.ajax({url:folders_media_options.ajax_url,data:"term_id="+n+"&type="+folders_media_options.post_type+"&action=wcp_mark_un_mark_folder&nonce="+f,method:"post",cache:!1,success:function(t){t=e.parseJSON(t),e(".form-loader-count").css("width","0%"),"1"==t.status?(folderPostId=z(t.id),"1"==t.marked?(e("li.jstree-node[id='"+t.id+"']").addClass("is-high"),e(".sticky-folder-"+t.id).addClass("is-high"),null!=folderPostId&&(d[folderPostId].is_high=1)):(e("li.jstree-node[id='"+t.id+"']").removeClass("is-high"),e(".sticky-folder-"+t.id).removeClass("is-high"),null!=folderPostId&&(d[folderPostId].is_high=0)),K()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})}),e(document).on("click",".duplicate-folder",function(t){t.stopPropagation(),c=e(this).closest(".dynamic-menu").data("id"),e(".dynamic-menu").remove(),j=!1,w=!0,Z()}),e(document).on("click",".remove-folder",function(){n=e(this).closest(".dynamic-menu").data("id"),c=e(this).closest(".dynamic-menu").data("id"),X(0),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu")}),e(document).on("click","#remove-folder-item",function(t){t.stopPropagation(),e(".folder-popup-form").addClass("disabled"),e("#remove-folder-item").html('<span class="dashicons dashicons-update"></span>'),f=V(c,"nonce"),y?function(){if(e("#folder-hide-show-checkbox").is(":checked")&&e("#js-tree-menu input.checkbox:checked").length>0){var t="";e("#js-tree-menu input.checkbox:checked").each(function(){t+=e(this).closest("li.jstree-node").attr("id")+",",e(this).closest("li.jstree-node").hasClass("jstree-clicked")&&!0}),e(".form-loader-count").css("width","100%"),e.ajax({url:folders_media_options.ajax_url,data:"type="+folders_media_options.post_type+"&action=wcp_remove_muliple_folder&term_id="+t+"&nonce="+folders_media_options.nonce,method:"post",success:function(t){if(t=e.parseJSON(t),e(".form-loader-count").css("width","0px"),"1"==t.status){for(u=parseInt(t.is_key_active),p=parseInt(t.folders),e("#current-folder").text(p),i=0;i<t.term_ids.length;i++)e(".folder-modal #js-tree-menu").jstree().delete_node(t.term_ids[i]);e("#ttl-fldr").text(10),K(),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),R(),Y(),K(),e(".folder-modal #wcp_folder_"+v).length||(e(".header-posts a").trigger("click"),v=0)}else window.location.reload();e("#folder-hide-show-checkbox").attr("checked",!1),e("#js-tree-menu input.checkbox").attr("checked",!1),e("#js-tree-menu").removeClass("show-folder-checkbox")}})}}():e.ajax({url:folders_media_options.ajax_url,data:"type="+folders_media_options.post_type+"&action=wcp_remove_folder&term_id="+c+"&nonce="+f,method:"post",success:function(t){"1"==(t=e.parseJSON(t)).status?(e("#js-tree-menu").jstree().delete_node(c),u=parseInt(t.is_key_active),p=parseInt(t.folders),e("#current-folder").text(p),e("#ttl-fldr").text(10),e(".sticky-folders .sticky-folder-"+c).remove(),K(),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),R(),Y(),v==c&&e(".header-posts").trigger("click")):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})}),e(document).on("click","#sort-order-list",function(t){t.stopPropagation(),e(".folder-order").toggleClass("active")}),e(document).on("click","#expand-collapse-list",function(t){t.stopPropagation();var o=0;e(this).hasClass("all-open")?(e(this).removeClass("all-open"),o=0,e(this).attr("data-folder-tooltip","Expand"),e("#js-tree-menu").jstree("close_all")):(e(this).addClass("all-open"),o=1,e(this).attr("data-folder-tooltip","Collapse"),e("#js-tree-menu").jstree("open_all")),g="",e("#js-tree-menu .jstree-node:not(.jstree-leaf)").each(function(){g+=e(this).attr("id")+","}),""!=g&&(e(".form-loader-count").css("width","100%"),f=folders_media_options.nonce,e.ajax({url:folders_media_options.ajax_url,data:"type="+folders_media_options.post_type+"&action=wcp_change_all_status&status="+o+"&folders="+g+"&nonce="+f,method:"post",success:function(t){e(".form-loader-count").css("width","0"),"0"==(t=e.parseJSON(t)).status&&(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show(),window.location.reload(!0))}}))}),e(document).on("click",".folder-sort-menu a:not(.pro-feature)",function(t){t.stopPropagation(),t.preventDefault(),e(".form-loader-count").css("width","100%"),e(".folder-order").removeClass("active"),e(this).attr("data-sort"),e.ajax({url:folders_media_options.ajax_url,data:"type="+folders_media_options.post_type+"&action=wcp_folders_by_order&nonce="+folders_media_options.nonce+"&order="+e(this).attr("data-sort"),method:"post",success:function(t){1==(t=e.parseJSON(t)).status&&(e("#js-tree-menu").jstree().destroy(),e("#js-tree-menu").append("<ul></ul>"),e("#js-tree-menu ul").html(t.data),x=t.terms,q(),M()),e(".form-loader-count").css("width","0")}})}),e(document).on("click",".jstree-node .jstree-icon",function(){n=e(this).closest("li.jstree-node").attr("id"),e("li.jstree-node[id='"+n+"']").hasClass("jstree-open")?folderStatus=1:folderStatus=0,e(".form-loader-count").css("width","100%"),f=V(n,"nonce"),W(),e.ajax({url:folders_media_options.ajax_url,data:"is_active="+folderStatus+"&action=save_wcp_folder_state&term_id="+n+"&nonce="+f,method:"post",success:function(t){e(".form-loader-count").css("width","0"),"0"==(t=e.parseJSON(t)).status||(e("#wcp_folder_"+n).hasClass("active")?(e("#wcp_folder_"+n).removeClass("active"),e("#wcp_folder_"+n).find("ul.ui-sortable:first-child > li").slideUp(),folderStatus=0):(e("#wcp_folder_"+n).addClass("active"),e("#wcp_folder_"+n).find("ul.ui-sortable:first-child > li").slideDown(),folderStatus=1),K())}})}),e(document).on("keyup","#folder-search",function(){E()}),e(document).on("change","#folder-search",function(){E()}),e(document).on("blur","#folder-search",function(){E()}),e(document).on("click","#folder-hide-show-checkbox",function(){e(this).is(":checked")?e("#js-tree-menu").addClass("show-folder-checkbox"):(e("#js-tree-menu input.checkbox").attr("checked",!1),e("#js-tree-menu").removeClass("show-folder-checkbox"))}),e(document).on("click",".folder-checkbox, .input-checkbox",function(e){e.stopImmediatePropagation(),e.stopPropagation()}),e(document).on("click","#inline-remove",function(){e("#js-tree-menu a.jstree-clicked").length?(c=e("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id"),X(1),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu")):e("#folder-hide-show-checkbox").is(":checked")&&(e(".dynamic-menu").remove(),X(1))}),e(document).on("change",".folder_for_media",function(){"add-folder"==e(this).val()&&(j=!0,e("#add-new-folder").trigger("click"))}),F()})});
|
assets/js/replace-media.js
CHANGED
@@ -12,12 +12,12 @@
|
|
12 |
}(function ($, undefined) {
|
13 |
$(document).ready(function (){
|
14 |
// Open file selector on div click
|
15 |
-
$("#upload-file"
|
16 |
$("#media_file").click();
|
17 |
});
|
18 |
|
19 |
// file selected
|
20 |
-
$("#media_file"
|
21 |
var fd = new FormData();
|
22 |
|
23 |
var files = $('#media_file')[0].files[0];
|
@@ -26,15 +26,23 @@
|
|
26 |
|
27 |
uploadData(this);
|
28 |
});
|
|
|
|
|
|
|
|
|
|
|
29 |
});
|
30 |
|
31 |
function uploadData(input) {
|
32 |
if($("#media_file").val() != "") {
|
|
|
|
|
33 |
|
34 |
var fileName = $("#media_file").val();
|
35 |
fileName = fileName.toLowerCase();
|
36 |
fileName = fileName.split(".");
|
37 |
var fileExt = fileName[fileName.length - 1];
|
|
|
38 |
if(fileExt == "jpg" || fileExt == "png" || fileExt == "jpeg" || fileExt == "gif") {
|
39 |
if (input.files && input.files[0]) {
|
40 |
var reader = new FileReader();
|
@@ -42,6 +50,12 @@
|
|
42 |
reader.onload = function (e) {
|
43 |
$(".drag-and-drop-title").html("<img class='pre-image' id='pre-image' >");
|
44 |
$('#pre-image').attr('src', e.target.result);
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
}
|
46 |
|
47 |
reader.readAsDataURL(input.files[0]); // convert to base64 string
|
@@ -74,7 +88,8 @@
|
|
74 |
} else {
|
75 |
fileSize = fileSize+" B";
|
76 |
}
|
77 |
-
$(".new-image-box .file-size").
|
|
|
78 |
}
|
79 |
|
80 |
}));
|
12 |
}(function ($, undefined) {
|
13 |
$(document).ready(function (){
|
14 |
// Open file selector on div click
|
15 |
+
$(document).on("click", "#upload-file", function(e){
|
16 |
$("#media_file").click();
|
17 |
});
|
18 |
|
19 |
// file selected
|
20 |
+
$(document).on("change", "#media_file", function(e){
|
21 |
var fd = new FormData();
|
22 |
|
23 |
var files = $('#media_file')[0].files[0];
|
26 |
|
27 |
uploadData(this);
|
28 |
});
|
29 |
+
|
30 |
+
$(document).on("click", ".upgrade-btn-box a", function(e){
|
31 |
+
e.stopPropagation();
|
32 |
+
e.stopImmediatePropagation();
|
33 |
+
});
|
34 |
});
|
35 |
|
36 |
function uploadData(input) {
|
37 |
if($("#media_file").val() != "") {
|
38 |
+
$(".new-image-box .file-size").addClass("hide-it");
|
39 |
+
$("#upload-file").removeClass("active");
|
40 |
|
41 |
var fileName = $("#media_file").val();
|
42 |
fileName = fileName.toLowerCase();
|
43 |
fileName = fileName.split(".");
|
44 |
var fileExt = fileName[fileName.length - 1];
|
45 |
+
$(".new-image-box .image-size").remove();
|
46 |
if(fileExt == "jpg" || fileExt == "png" || fileExt == "jpeg" || fileExt == "gif") {
|
47 |
if (input.files && input.files[0]) {
|
48 |
var reader = new FileReader();
|
50 |
reader.onload = function (e) {
|
51 |
$(".drag-and-drop-title").html("<img class='pre-image' id='pre-image' >");
|
52 |
$('#pre-image').attr('src', e.target.result);
|
53 |
+
|
54 |
+
var image = new Image();
|
55 |
+
image.src = e.target.result;
|
56 |
+
image.onload = function () {
|
57 |
+
$(".new-image-box img").after('<span class="image-size">Height x Width</span>').show();
|
58 |
+
};
|
59 |
}
|
60 |
|
61 |
reader.readAsDataURL(input.files[0]); // convert to base64 string
|
88 |
} else {
|
89 |
fileSize = fileSize+" B";
|
90 |
}
|
91 |
+
$(".new-image-box .file-size").removeClass("hide-it");
|
92 |
+
$("#upload-file").addClass("active");
|
93 |
}
|
94 |
|
95 |
}));
|
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.6.
|
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.6.
|
34 |
}
|
35 |
|
36 |
|
@@ -108,10 +108,83 @@ include_once plugin_dir_path(__FILE__)."includes/plugins.class.php";
|
|
108 |
include_once plugin_dir_path(__FILE__)."includes/media.replace.php";
|
109 |
include_once plugin_dir_path(__FILE__)."includes/folders.class.php";
|
110 |
register_activation_hook( __FILE__, array( 'WCP_Folders', 'activate' ) );
|
|
|
|
|
111 |
WCP_Folders::get_instance();
|
112 |
|
113 |
/* Affiliate Class*/
|
114 |
if(is_admin()) {
|
115 |
include_once plugin_dir_path(__FILE__)."includes/class-affiliate.php";
|
116 |
include_once plugin_dir_path(__FILE__) . "includes/class-review-box.php";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
}
|
2 |
/**
|
3 |
* Plugin Name: Folders
|
4 |
* Description: Arrange media, pages, custom post types and posts into folders
|
5 |
+
* Version: 2.6.8
|
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.6.8");
|
34 |
}
|
35 |
|
36 |
|
108 |
include_once plugin_dir_path(__FILE__)."includes/media.replace.php";
|
109 |
include_once plugin_dir_path(__FILE__)."includes/folders.class.php";
|
110 |
register_activation_hook( __FILE__, array( 'WCP_Folders', 'activate' ) );
|
111 |
+
register_deactivation_hook( __FILE__, array( 'WCP_Folders', 'deactivate' ) );
|
112 |
+
|
113 |
WCP_Folders::get_instance();
|
114 |
|
115 |
/* Affiliate Class*/
|
116 |
if(is_admin()) {
|
117 |
include_once plugin_dir_path(__FILE__)."includes/class-affiliate.php";
|
118 |
include_once plugin_dir_path(__FILE__) . "includes/class-review-box.php";
|
119 |
+
}
|
120 |
+
|
121 |
+
if(!function_exists('premio_folders_plugin_check_for_setting')) {
|
122 |
+
function premio_folders_plugin_check_for_setting() {
|
123 |
+
$status = get_option("folders_settings_updated");
|
124 |
+
if($status === false) {
|
125 |
+
add_option("folders_settings_updated", "1");
|
126 |
+
$customize_folders = get_option("customize_folders");
|
127 |
+
$customize_folders = !is_array($customize_folders)?array():$customize_folders;
|
128 |
+
|
129 |
+
$default_folders = get_option("default_folders");
|
130 |
+
$default_folders = !is_array($default_folders)?array():$default_folders;
|
131 |
+
|
132 |
+
$folders_settings = get_option("folders_settings");
|
133 |
+
$folders_settings = !is_array($folders_settings)?array():$folders_settings;
|
134 |
+
|
135 |
+
$general = array(
|
136 |
+
'has_stars' => 0,
|
137 |
+
'has_child' => 0
|
138 |
+
);
|
139 |
+
|
140 |
+
global $wpdb;
|
141 |
+
|
142 |
+
$total_stars = $wpdb->get_var("SELECT COUNT($wpdb->termmeta.term_id) AS total_records FROM {$wpdb->termmeta} WHERE meta_key = 'is_highlighted'");
|
143 |
+
if(!empty($total_stars)) {
|
144 |
+
$general['has_stars'] = 1;
|
145 |
+
}
|
146 |
+
|
147 |
+
$eCondition = "($wpdb->term_taxonomy.taxonomy = 'folder'
|
148 |
+
OR $wpdb->term_taxonomy.taxonomy = 'media_folder'
|
149 |
+
OR $wpdb->term_taxonomy.taxonomy = 'post_folder'";
|
150 |
+
$post_types = get_post_types( array( ), 'objects' );
|
151 |
+
$post_array = array("page", "post", "attachment");
|
152 |
+
foreach ( $post_types as $post_type ) {
|
153 |
+
if(!in_array($post_type->name, $post_array)) {
|
154 |
+
$eCondition .= "OR $wpdb->term_taxonomy.taxonomy = '{$post_type->name}_folder'";
|
155 |
+
}
|
156 |
+
}
|
157 |
+
$eCondition .= ")";
|
158 |
+
$total_records = $wpdb->get_var("SELECT COUNT($wpdb->terms.term_id) AS total_records
|
159 |
+
FROM $wpdb->terms
|
160 |
+
INNER JOIN $wpdb->term_taxonomy
|
161 |
+
ON $wpdb->terms.term_id = $wpdb->term_taxonomy.term_id
|
162 |
+
WHERE $wpdb->terms.term_id NOT IN(
|
163 |
+
SELECT $wpdb->term_taxonomy.parent
|
164 |
+
FROM $wpdb->term_taxonomy
|
165 |
+
)
|
166 |
+
AND {$eCondition}");
|
167 |
+
|
168 |
+
$total_parents = $wpdb->get_var("SELECT COUNT($wpdb->terms.term_id) AS total_records
|
169 |
+
FROM $wpdb->terms
|
170 |
+
INNER JOIN $wpdb->term_taxonomy
|
171 |
+
ON $wpdb->terms.term_id = $wpdb->term_taxonomy.term_id
|
172 |
+
WHERE {$eCondition}");
|
173 |
+
|
174 |
+
if(!empty($total_parents) && $total_parents != $total_records) {
|
175 |
+
$general['has_child'] = 1;
|
176 |
+
}
|
177 |
+
|
178 |
+
$folder_options = array(
|
179 |
+
'customize_folders' => $customize_folders,
|
180 |
+
'default_folders' => $default_folders,
|
181 |
+
'folders_settings' => $folders_settings,
|
182 |
+
'general' => $general
|
183 |
+
);
|
184 |
+
|
185 |
+
add_option("premio_folder_options", $folder_options);
|
186 |
+
}
|
187 |
+
}
|
188 |
+
|
189 |
+
add_action( 'plugins_loaded', 'premio_folders_plugin_check_for_setting' );
|
190 |
}
|
includes/folders.class.php
CHANGED
@@ -14,8 +14,12 @@ class WCP_Folders
|
|
14 |
|
15 |
private static $postIds;
|
16 |
|
|
|
|
|
17 |
public function __construct()
|
18 |
{
|
|
|
|
|
19 |
spl_autoload_register(array($this, 'autoload'));
|
20 |
add_action('init', array($this, 'create_folder_terms'), 15);
|
21 |
add_action('admin_init', array($this, 'folders_register_settings'));
|
@@ -32,6 +36,8 @@ class WCP_Folders
|
|
32 |
// update_option("polylang", $polylang_options);
|
33 |
// }
|
34 |
|
|
|
|
|
35 |
add_action('parse_tax_query', array($this, 'taxonomy_archive_exclude_children'));
|
36 |
add_action('admin_footer', array($this, 'admin_footer_for_media'));
|
37 |
|
@@ -69,6 +75,10 @@ class WCP_Folders
|
|
69 |
add_action('wp_ajax_save_folder_last_status', array($this, 'save_folder_last_status'));
|
70 |
/* Update width Data */
|
71 |
add_action('wp_ajax_wcp_folders_by_order', array($this, 'wcp_folders_by_order'));
|
|
|
|
|
|
|
|
|
72 |
self::$folders = 10;
|
73 |
|
74 |
/* Send message on plugin deactivate */
|
@@ -144,6 +154,119 @@ class WCP_Folders
|
|
144 |
add_filter('mla_media_modal_query_final_terms', array( $this, 'media_modal_query_final_terms'), 10, 3);
|
145 |
}
|
146 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
public static function hexToRgb($hex, $alpha = false) {
|
148 |
$hex = str_replace('#', '', $hex);
|
149 |
$length = strlen($hex);
|
@@ -930,11 +1053,11 @@ class WCP_Folders
|
|
930 |
global $typenow;
|
931 |
$is_active = 1;
|
932 |
$folders = -1;
|
933 |
-
if (!self::check_has_valid_key()) {
|
934 |
-
$is_active = 0;
|
935 |
-
$folders = self::ttl_fldrs();
|
936 |
-
}
|
937 |
|
|
|
|
|
|
|
|
|
938 |
/* Free/Pro URL Change */
|
939 |
wp_enqueue_script( 'folders-media', WCP_FOLDER_URL.'assets/js/media.js', array( 'media-editor', 'media-views' ), WCP_FOLDER_VERSION, true );
|
940 |
wp_localize_script( 'folders-media', 'folders_media_options', array(
|
@@ -944,7 +1067,8 @@ class WCP_Folders
|
|
944 |
'activate_url' => $this->getFoldersUpgradeURL(),
|
945 |
'nonce' => wp_create_nonce('wcp_folder_nonce_attachment'),
|
946 |
'is_key_active' => $is_active,
|
947 |
-
'
|
|
|
948 |
));
|
949 |
/* Free/Pro URL Change */
|
950 |
wp_enqueue_style( 'folders-media', WCP_FOLDER_URL . 'assets/css/media.css' , array(), WCP_FOLDER_VERSION);
|
@@ -956,10 +1080,6 @@ class WCP_Folders
|
|
956 |
if(!isset($current_screen->base) || $current_screen->base != "plugins") {
|
957 |
$is_active = 1;
|
958 |
$folders = -1;
|
959 |
-
if (!self::check_has_valid_key()) {
|
960 |
-
$is_active = 0;
|
961 |
-
$folders = self::ttl_fldrs();
|
962 |
-
}
|
963 |
|
964 |
/* Free/Pro URL Change */
|
965 |
|
@@ -991,7 +1111,13 @@ class WCP_Folders
|
|
991 |
);
|
992 |
}
|
993 |
|
994 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
995 |
wp_enqueue_script('folders-media', WCP_FOLDER_URL . 'assets/js/page-post-media.min.js', array('media-editor', 'media-views', 'jquery', 'jquery-ui-resizable', 'jquery-ui-draggable', 'jquery-ui-droppable', 'jquery-ui-sortable', 'backbone'), WCP_FOLDER_VERSION, true);
|
996 |
wp_enqueue_script('wcp-jquery-touch', plugin_dir_url(dirname(__FILE__)) . 'assets/js/jquery.ui.touch-punch.min.js', array('jquery'), WCP_FOLDER_VERSION);
|
997 |
wp_localize_script('folders-media', 'folders_media_options', array(
|
@@ -1016,10 +1142,13 @@ class WCP_Folders
|
|
1016 |
'selected_taxonomy' => $selected_taxonomy,
|
1017 |
'show_in_page' => $show_in_page,
|
1018 |
'svg_file' => WCP_FOLDER_URL . 'assets/images/pin.png',
|
1019 |
-
'folder_settings' => $folder_settings
|
|
|
|
|
1020 |
));
|
1021 |
/* Free/Pro URL Change */
|
1022 |
wp_enqueue_style('folders-jstree', WCP_FOLDER_URL . 'assets/css/jstree.min.css', array(), WCP_FOLDER_VERSION);
|
|
|
1023 |
wp_enqueue_style('folder-folders', WCP_FOLDER_URL . 'assets/css/folders.min.css', array(), WCP_FOLDER_VERSION);
|
1024 |
wp_enqueue_style('folders-media', WCP_FOLDER_URL . 'assets/css/page-post-media.min.css', array(), WCP_FOLDER_VERSION);
|
1025 |
wp_enqueue_style('folder-icon', WCP_FOLDER_URL . 'assets/css/folder-icon.css', array(), WCP_FOLDER_VERSION);
|
@@ -1027,33 +1156,39 @@ class WCP_Folders
|
|
1027 |
$string = "";
|
1028 |
$css_text = "";
|
1029 |
$customize_folders = get_option('customize_folders');
|
1030 |
-
if (isset($customize_folders['new_folder_color'])
|
1031 |
-
|
1032 |
-
$css_text .= ".wcp-hide-show-buttons .toggle-buttons { background-color: " . esc_attr($customize_folders['new_folder_color']) . "; }";
|
1033 |
-
$css_text .= ".folders-toggle-button span { background-color: " . esc_attr($customize_folders['new_folder_color']) . "; }";
|
1034 |
-
$css_text .= ".ui-resizable-handle.ui-resizable-e:before, .ui-resizable-handle.ui-resizable-w:before {border-color: " . esc_attr($customize_folders['new_folder_color']) . " !important}";
|
1035 |
}
|
1036 |
-
|
1037 |
-
|
1038 |
-
|
1039 |
-
|
1040 |
-
|
1041 |
-
|
1042 |
-
|
1043 |
-
$css_text .= "body:not(.no-hover-css) #custom-scroll-menu *.drag-in > a.jstree-hovered, body:not(.no-hover-css) #custom-scroll-menu *.drag-in > a.jstree-hovered:hover {background: ".$customize_folders['folder_bg_color']." !important; color: #fff !important;}";
|
1044 |
-
$css_text .= ".orange-bg > span, .jstree-clicked, .header-posts a.active-item, .un-categorised-items.active-item, .sticky-folders ul li a.active-item { background-color: " . esc_attr($customize_folders['folder_bg_color']) . " !important; color: #ffffff !important; }";
|
1045 |
-
$css_text .= "body:not(.no-hover-css) .wcp-container .route .title:hover, body:not(.no-hover-css) .header-posts a:hover, body:not(.no-hover-css) .un-categorised-items:hover, body:not(.no-hover-css) .sticky-folders ul li a:hover { background: rgba(".esc_attr($rgbColor['r'].",".$rgbColor['g'].",".$rgbColor['b'].", 0.08")."); color: #333333;}";
|
1046 |
-
//$css_text .= "body:not(.no-hover-css) .wcp-container .route .title:hover, .header-posts a:hover, .un-categorised-items.active-item, .un-categorised-items:hover, .sticky-folders ul li a:hover {background: rgba(" . esc_attr($rgbColor['r'] . "," . $rgbColor['g'] . "," . $rgbColor['b'] . ", 0.08") . "); color:#444444;}";
|
1047 |
-
$css_text .= ".wcp-drop-hover {background-color: " . esc_attr($customize_folders['folder_bg_color']) . " !important; color: #ffffff; }";
|
1048 |
-
$css_text .= "#custom-menu .route .nav-icon .wcp-icon {color: " . esc_attr($customize_folders['folder_bg_color']) . " !important;}";
|
1049 |
-
$css_text .= ".mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {background-color: " . esc_attr($customize_folders['folder_bg_color']) . " !important;}";
|
1050 |
-
$css_text .= "body:not(.no-hover-css) .jstree-hovered {background: rgba(" . esc_attr($rgbColor['r'] . "," . $rgbColor['g'] . "," . $rgbColor['b'] . ", 0.08") . "}";
|
1051 |
-
$css_text .= ".jstree-default .jstree-clicked {" . esc_attr($customize_folders['folder_bg_color']) . "}";
|
1052 |
}
|
1053 |
-
|
1054 |
-
|
1055 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1056 |
}
|
|
|
|
|
|
|
1057 |
$font_family = "";
|
1058 |
if (isset($customize_folders['folder_font']) && !empty($customize_folders['folder_font'])) {
|
1059 |
$folder_fonts = self::get_font_list();
|
@@ -1837,6 +1972,9 @@ class WCP_Folders
|
|
1837 |
'parent' => $parent_id
|
1838 |
));
|
1839 |
|
|
|
|
|
|
|
1840 |
$response['status'] = 1;
|
1841 |
$folder_type = self::get_custom_post_type($type);
|
1842 |
/* Free/Pro Class name change */
|
@@ -2018,10 +2156,6 @@ class WCP_Folders
|
|
2018 |
$is_active = 1;
|
2019 |
$folders = -1;
|
2020 |
$response['status'] = 1;
|
2021 |
-
if (!self::check_has_valid_key()) {
|
2022 |
-
$is_active = 0;
|
2023 |
-
$folders = self::ttl_fldrs();
|
2024 |
-
}
|
2025 |
$response['folders'] = $folders;
|
2026 |
$response['is_key_active'] = $is_active;
|
2027 |
} else {
|
@@ -2067,10 +2201,6 @@ class WCP_Folders
|
|
2067 |
$response['status'] = 1;
|
2068 |
$is_active = 1;
|
2069 |
$folders = -1;
|
2070 |
-
if (!self::check_has_valid_key()) {
|
2071 |
-
$is_active = 0;
|
2072 |
-
$folders = self::ttl_fldrs();
|
2073 |
-
}
|
2074 |
$response['folders'] = $folders;
|
2075 |
$response['term_id'] = $term_id;
|
2076 |
$response['is_key_active'] = $is_active;
|
@@ -2228,10 +2358,6 @@ class WCP_Folders
|
|
2228 |
|
2229 |
$is_active = 1;
|
2230 |
$total_folders = -1;
|
2231 |
-
if (!self::check_has_valid_key()) {
|
2232 |
-
$is_active = 0;
|
2233 |
-
$total_folders = self::ttl_fldrs();
|
2234 |
-
}
|
2235 |
|
2236 |
if(!$is_active) {
|
2237 |
if (($total_folders + count($folders)) > 10) {
|
@@ -2383,10 +2509,6 @@ class WCP_Folders
|
|
2383 |
|
2384 |
$is_active = 1;
|
2385 |
$folders = -1;
|
2386 |
-
if (!self::check_has_valid_key()) {
|
2387 |
-
$is_active = 0;
|
2388 |
-
$folders = self::ttl_fldrs();
|
2389 |
-
}
|
2390 |
$response['folders'] = $folders;
|
2391 |
$response['is_key_active'] = $is_active;
|
2392 |
}
|
@@ -2579,7 +2701,7 @@ class WCP_Folders
|
|
2579 |
update_option("default_folders", $posts);
|
2580 |
}
|
2581 |
|
2582 |
-
if (isset($_POST['
|
2583 |
$posts = array();
|
2584 |
if (isset($_POST['customize_folders']) && is_array($_POST['customize_folders'])) {
|
2585 |
foreach ($_POST['customize_folders'] as $key => $val) {
|
@@ -2589,40 +2711,45 @@ class WCP_Folders
|
|
2589 |
update_option("customize_folders", $posts);
|
2590 |
}
|
2591 |
|
2592 |
-
|
2593 |
-
|
2594 |
-
|
2595 |
-
|
2596 |
-
|
2597 |
-
|
2598 |
-
|
2599 |
-
|
2600 |
-
|
2601 |
-
|
2602 |
-
|
2603 |
-
|
2604 |
-
|
2605 |
-
|
2606 |
-
|
2607 |
-
$tlfs = get_option("folder_old_plugin_folder_status");
|
2608 |
-
if($tlfs === false) {
|
2609 |
-
$total = self::ttl_fldrs();
|
2610 |
-
if($total <= 10) {
|
2611 |
-
$total = 10;
|
2612 |
-
};
|
2613 |
-
update_option("folder_old_plugin_folder_status", $total);
|
2614 |
-
self::$folders = $total;
|
2615 |
-
} else {
|
2616 |
-
self::$folders = $tlfs;
|
2617 |
}
|
2618 |
}
|
2619 |
|
2620 |
-
$
|
2621 |
-
if($
|
2622 |
-
|
2623 |
-
|
2624 |
-
|
2625 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2626 |
}
|
2627 |
|
2628 |
function searchForId($id, $menu)
|
@@ -2711,8 +2838,9 @@ class WCP_Folders
|
|
2711 |
{
|
2712 |
if (self::is_active_for_screen()) {
|
2713 |
wp_enqueue_style('wcp-folders-fa', plugin_dir_url(dirname(__FILE__)) . 'assets/css/folder-icon.css', array(), WCP_FOLDER_VERSION);
|
2714 |
-
wp_enqueue_style('wcp-folders-admin', plugin_dir_url(dirname(__FILE__)) . 'assets/css/design.
|
2715 |
wp_enqueue_style('wcp-folders-jstree', plugin_dir_url(dirname(__FILE__)) . 'assets/css/jstree.min.css', array(), WCP_FOLDER_VERSION);
|
|
|
2716 |
wp_enqueue_style('wcp-folders-css', plugin_dir_url(dirname(__FILE__)) . 'assets/css/folders.min.css', array(), WCP_FOLDER_VERSION);
|
2717 |
}
|
2718 |
wp_register_style('wcp-css-handle', false);
|
@@ -2796,9 +2924,9 @@ class WCP_Folders
|
|
2796 |
$optionValue = get_option($optionName);
|
2797 |
$class = (!empty($optionValue) && $optionValue == "hide")?"":"active";
|
2798 |
$customize_folders = get_option('customize_folders');
|
2799 |
-
$show_in_page =
|
2800 |
if(empty($show_in_page)) {
|
2801 |
-
$show_in_page = "
|
2802 |
}
|
2803 |
if($show_in_page == "show") {
|
2804 |
echo '<div class="tree-structure-content ' . $class . '"><div class="tree-structure" id="list-folder-' . $termId . '" data-id="' . $termId . '">';
|
@@ -2840,7 +2968,8 @@ class WCP_Folders
|
|
2840 |
global $typenow;
|
2841 |
/* Free/Pro Version change */
|
2842 |
wp_enqueue_script('wcp-folders-jstree', plugin_dir_url(dirname(__FILE__)) . 'assets/js/jstree.min.js', array('jquery'), WCP_FOLDER_VERSION);
|
2843 |
-
|
|
|
2844 |
wp_enqueue_script('wcp-jquery-touch', plugin_dir_url(dirname(__FILE__)) . 'assets/js/jquery.ui.touch-punch.min.js', array('jquery'), WCP_FOLDER_VERSION);
|
2845 |
|
2846 |
$post_type = self::get_custom_post_type($typenow);
|
@@ -2863,10 +2992,6 @@ class WCP_Folders
|
|
2863 |
|
2864 |
$is_active = 1;
|
2865 |
$folders = -1;
|
2866 |
-
if (!self::check_has_valid_key()) {
|
2867 |
-
$is_active = 0;
|
2868 |
-
$folders = self::ttl_fldrs();
|
2869 |
-
}
|
2870 |
/* For free: upgrade URL, for Pro: Register Key URL */
|
2871 |
$register_url = $this->getFoldersUpgradeURL();
|
2872 |
|
@@ -2899,10 +3024,10 @@ class WCP_Folders
|
|
2899 |
}
|
2900 |
}
|
2901 |
$customize_folders = get_option('customize_folders');
|
2902 |
-
|
2903 |
-
|
2904 |
-
|
2905 |
-
|
2906 |
$taxonomies = self::get_terms_hierarchical($post_type);
|
2907 |
|
2908 |
$folder_settings = array();
|
@@ -2921,6 +3046,11 @@ class WCP_Folders
|
|
2921 |
}
|
2922 |
|
2923 |
$response['terms'] = $taxonomies;
|
|
|
|
|
|
|
|
|
|
|
2924 |
wp_localize_script('wcp-folders-custom', 'wcp_settings', array(
|
2925 |
'ajax_url' => admin_url('admin-ajax.php'),
|
2926 |
'upgrade_url' => $this->getFoldersUpgradeURL(),
|
@@ -2940,7 +3070,10 @@ class WCP_Folders
|
|
2940 |
'show_in_page' => $show_in_page,
|
2941 |
'svg_file' => WCP_FOLDER_URL.'assets/images/pin.png',
|
2942 |
'taxonomies' => $taxonomies,
|
2943 |
-
'folder_settings' => $folder_settings
|
|
|
|
|
|
|
2944 |
));
|
2945 |
} else {
|
2946 |
self::is_add_update_screen();
|
@@ -2951,10 +3084,11 @@ class WCP_Folders
|
|
2951 |
wp_enqueue_style( 'folders-media', WCP_FOLDER_URL . 'assets/css/new-media.css' );
|
2952 |
$is_active = 1;
|
2953 |
$folders = -1;
|
2954 |
-
|
2955 |
-
|
2956 |
-
|
2957 |
-
|
|
|
2958 |
|
2959 |
wp_enqueue_script('wcp-folders-add-new-media', plugin_dir_url(dirname(__FILE__)) . 'assets/js/new-media.js', array('jquery'), WCP_FOLDER_VERSION);
|
2960 |
wp_localize_script( 'wcp-folders-add-new-media', 'folders_media_options', array(
|
@@ -2965,6 +3099,8 @@ class WCP_Folders
|
|
2965 |
'nonce' => wp_create_nonce('wcp_folder_nonce_attachment'),
|
2966 |
'is_key_active' => $is_active,
|
2967 |
'folders' => $folders,
|
|
|
|
|
2968 |
));
|
2969 |
}
|
2970 |
}
|
@@ -3022,6 +3158,11 @@ class WCP_Folders
|
|
3022 |
|
3023 |
public static function activate()
|
3024 |
{
|
|
|
|
|
|
|
|
|
|
|
3025 |
update_option("folders_show_in_menu", "off");
|
3026 |
$option = get_option("folder_redirect_status");
|
3027 |
if($option === false) {
|
@@ -3030,10 +3171,32 @@ class WCP_Folders
|
|
3030 |
update_option("folder_redirect_status", 1);
|
3031 |
}
|
3032 |
|
3033 |
-
|
3034 |
-
|
3035 |
-
|
3036 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3037 |
|
3038 |
function folders_register_settings()
|
3039 |
{
|
14 |
|
15 |
private static $postIds;
|
16 |
|
17 |
+
private static $folderSettings = false;
|
18 |
+
|
19 |
public function __construct()
|
20 |
{
|
21 |
+
|
22 |
+
|
23 |
spl_autoload_register(array($this, 'autoload'));
|
24 |
add_action('init', array($this, 'create_folder_terms'), 15);
|
25 |
add_action('admin_init', array($this, 'folders_register_settings'));
|
36 |
// update_option("polylang", $polylang_options);
|
37 |
// }
|
38 |
|
39 |
+
$old_status = get_option("wcp_folder_version_267");
|
40 |
+
|
41 |
add_action('parse_tax_query', array($this, 'taxonomy_archive_exclude_children'));
|
42 |
add_action('admin_footer', array($this, 'admin_footer_for_media'));
|
43 |
|
75 |
add_action('wp_ajax_save_folder_last_status', array($this, 'save_folder_last_status'));
|
76 |
/* Update width Data */
|
77 |
add_action('wp_ajax_wcp_folders_by_order', array($this, 'wcp_folders_by_order'));
|
78 |
+
/* Update width Data */
|
79 |
+
add_action('wp_ajax_wcp_remove_all_folders_data', array($this, 'remove_all_folders_data'));
|
80 |
+
/* Update folders Status */
|
81 |
+
add_action('wp_ajax_wcp_update_folders_uninstall_status', array($this, 'update_folders_uninstall_status'));
|
82 |
self::$folders = 10;
|
83 |
|
84 |
/* Send message on plugin deactivate */
|
154 |
add_filter('mla_media_modal_query_final_terms', array( $this, 'media_modal_query_final_terms'), 10, 3);
|
155 |
}
|
156 |
|
157 |
+
public static function check_for_setting($key, $setting, $default = "") {
|
158 |
+
if(self::$folderSettings === false) {
|
159 |
+
$options = get_option("premio_folder_options");
|
160 |
+
if($options === false || !is_array($options)) {
|
161 |
+
$options = array();
|
162 |
+
}
|
163 |
+
self::$folderSettings = $options;
|
164 |
+
}
|
165 |
+
if($setting == "folders_settings") {
|
166 |
+
if(isset(self::$folderSettings[ $setting ]) && is_array(self::$folderSettings[ $setting ])) {
|
167 |
+
return in_array($key, self::$folderSettings[ $setting ]);
|
168 |
+
}
|
169 |
+
} else {
|
170 |
+
if ( isset( self::$folderSettings[ $setting ][ $key ] ) ) {
|
171 |
+
return self::$folderSettings[ $setting ][ $key ];
|
172 |
+
}
|
173 |
+
}
|
174 |
+
return false;
|
175 |
+
}
|
176 |
+
|
177 |
+
public function update_folders_uninstall_status() {
|
178 |
+
$response = array();
|
179 |
+
$response['status'] = 0;
|
180 |
+
$response['error'] = 0;
|
181 |
+
$response['data'] = array();
|
182 |
+
$response['message'] = "";
|
183 |
+
$postData = filter_input_array(INPUT_POST);
|
184 |
+
$errorCounter = 0;
|
185 |
+
|
186 |
+
if (!isset($postData['nonce']) || empty($postData['nonce'])) {
|
187 |
+
$response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
|
188 |
+
$errorCounter++;
|
189 |
+
} else {
|
190 |
+
$nonce = self::sanitize_options($postData['nonce']);
|
191 |
+
if(!wp_verify_nonce($nonce, 'wcp_folders_uninstall_status')) {
|
192 |
+
$response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
|
193 |
+
$errorCounter++;
|
194 |
+
}
|
195 |
+
}
|
196 |
+
if ($errorCounter == 0) {
|
197 |
+
$status = isset($postData['status'])?$postData['status']:"";
|
198 |
+
$status = ($status == "on")?"on":"off";
|
199 |
+
$customize_folders = get_option('customize_folders');
|
200 |
+
$customize_folders['remove_folders_when_removed'] = $status;
|
201 |
+
update_option("customize_folders", $customize_folders);
|
202 |
+
$response['status'] = 1;
|
203 |
+
}
|
204 |
+
echo json_encode($response); die;
|
205 |
+
}
|
206 |
+
|
207 |
+
public function remove_all_folders_data() {
|
208 |
+
$response = array();
|
209 |
+
$response['status'] = 0;
|
210 |
+
$response['error'] = 0;
|
211 |
+
$response['data'] = array();
|
212 |
+
$response['message'] = "";
|
213 |
+
$postData = filter_input_array(INPUT_POST);
|
214 |
+
$errorCounter = 0;
|
215 |
+
|
216 |
+
if (!isset($postData['nonce']) || empty($postData['nonce'])) {
|
217 |
+
$response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
|
218 |
+
$errorCounter++;
|
219 |
+
} else {
|
220 |
+
$type = self::sanitize_options($postData['type']);
|
221 |
+
$nonce = self::sanitize_options($postData['nonce']);
|
222 |
+
if(!wp_verify_nonce($nonce, 'remove_folders_data')) {
|
223 |
+
$response['message'] = esc_attr__("Your request is not valid", WCP_FOLDER);
|
224 |
+
$errorCounter++;
|
225 |
+
}
|
226 |
+
}
|
227 |
+
if ($errorCounter == 0) {
|
228 |
+
self::$folders = 0;
|
229 |
+
self::remove_folder_by_taxonomy("media_folder");
|
230 |
+
self::remove_folder_by_taxonomy("folder");
|
231 |
+
self::remove_folder_by_taxonomy("post_folder");
|
232 |
+
$post_types = get_post_types( array( ), 'objects' );
|
233 |
+
$post_array = array("page", "post", "attachment");
|
234 |
+
foreach ( $post_types as $post_type ) {
|
235 |
+
if(!in_array($post_type->name, $post_array)){
|
236 |
+
self::remove_folder_by_taxonomy($post_type->name . '_folder');
|
237 |
+
}
|
238 |
+
}
|
239 |
+
delete_option('default_folders');
|
240 |
+
$response['status'] = 1;
|
241 |
+
$response['data'] = array(
|
242 |
+
'items' => self::$folders
|
243 |
+
);
|
244 |
+
}
|
245 |
+
echo json_encode($response); die;
|
246 |
+
}
|
247 |
+
|
248 |
+
public static function remove_folder_by_taxonomy($taxonomy) {
|
249 |
+
global $wpdb;
|
250 |
+
$folders = $wpdb->get_results(
|
251 |
+
"SELECT * FROM " . $wpdb->term_taxonomy . "
|
252 |
+
LEFT JOIN " . $wpdb->terms . "
|
253 |
+
ON " . $wpdb->term_taxonomy . ".term_id = " . $wpdb->terms . ".term_id
|
254 |
+
WHERE " . $wpdb->term_taxonomy . ".taxonomy = '" . $taxonomy . "'
|
255 |
+
ORDER BY parent ASC"
|
256 |
+
);
|
257 |
+
$folders = array_values( $folders );
|
258 |
+
foreach ( $folders as $folder ) {
|
259 |
+
$term_id = intval( $folder->term_id );
|
260 |
+
if ( $term_id ) {
|
261 |
+
$wpdb->delete( $wpdb->prefix . 'term_relationships', ['term_taxonomy_id' => $term_id] );
|
262 |
+
$wpdb->delete( $wpdb->prefix . 'term_taxonomy', ['term_id' => $term_id] );
|
263 |
+
$wpdb->delete( $wpdb->prefix . 'terms', ['term_id' => $term_id] );
|
264 |
+
$wpdb->delete( $wpdb->prefix . 'termmeta', ['term_id' => $term_id] );
|
265 |
+
self::$folders++;
|
266 |
+
}
|
267 |
+
}
|
268 |
+
}
|
269 |
+
|
270 |
public static function hexToRgb($hex, $alpha = false) {
|
271 |
$hex = str_replace('#', '', $hex);
|
272 |
$length = strlen($hex);
|
1053 |
global $typenow;
|
1054 |
$is_active = 1;
|
1055 |
$folders = -1;
|
|
|
|
|
|
|
|
|
1056 |
|
1057 |
+
$hasStars = self::check_for_setting("has_stars", "general");
|
1058 |
+
$hasChild = self::check_for_setting("has_child", "general");
|
1059 |
+
$hasChild = empty($hasChild)?0:1;
|
1060 |
+
$hasStars = empty($hasStars)?0:1;
|
1061 |
/* Free/Pro URL Change */
|
1062 |
wp_enqueue_script( 'folders-media', WCP_FOLDER_URL.'assets/js/media.js', array( 'media-editor', 'media-views' ), WCP_FOLDER_VERSION, true );
|
1063 |
wp_localize_script( 'folders-media', 'folders_media_options', array(
|
1067 |
'activate_url' => $this->getFoldersUpgradeURL(),
|
1068 |
'nonce' => wp_create_nonce('wcp_folder_nonce_attachment'),
|
1069 |
'is_key_active' => $is_active,
|
1070 |
+
'hasStars' => $hasStars,
|
1071 |
+
'hasChildren' => $hasChild
|
1072 |
));
|
1073 |
/* Free/Pro URL Change */
|
1074 |
wp_enqueue_style( 'folders-media', WCP_FOLDER_URL . 'assets/css/media.css' , array(), WCP_FOLDER_VERSION);
|
1080 |
if(!isset($current_screen->base) || $current_screen->base != "plugins") {
|
1081 |
$is_active = 1;
|
1082 |
$folders = -1;
|
|
|
|
|
|
|
|
|
1083 |
|
1084 |
/* Free/Pro URL Change */
|
1085 |
|
1111 |
);
|
1112 |
}
|
1113 |
|
1114 |
+
$hasStars = self::check_for_setting("has_stars", "general");
|
1115 |
+
$hasChild = self::check_for_setting("has_child", "general");
|
1116 |
+
$hasChild = empty($hasChild)?0:1;
|
1117 |
+
$hasStars = empty($hasStars)?0:1;
|
1118 |
+
|
1119 |
+
wp_enqueue_script('folders-tree', WCP_FOLDER_URL . 'assets/js/jstree.min.js', array(), WCP_FOLDER_VERSION);
|
1120 |
+
wp_enqueue_script('wcp-folders-mcustomscrollbar', WCP_FOLDER_URL . 'assets/js/jquery.mcustomscrollbar.min.js', array(), WCP_FOLDER_VERSION);
|
1121 |
wp_enqueue_script('folders-media', WCP_FOLDER_URL . 'assets/js/page-post-media.min.js', array('media-editor', 'media-views', 'jquery', 'jquery-ui-resizable', 'jquery-ui-draggable', 'jquery-ui-droppable', 'jquery-ui-sortable', 'backbone'), WCP_FOLDER_VERSION, true);
|
1122 |
wp_enqueue_script('wcp-jquery-touch', plugin_dir_url(dirname(__FILE__)) . 'assets/js/jquery.ui.touch-punch.min.js', array('jquery'), WCP_FOLDER_VERSION);
|
1123 |
wp_localize_script('folders-media', 'folders_media_options', array(
|
1142 |
'selected_taxonomy' => $selected_taxonomy,
|
1143 |
'show_in_page' => $show_in_page,
|
1144 |
'svg_file' => WCP_FOLDER_URL . 'assets/images/pin.png',
|
1145 |
+
'folder_settings' => $folder_settings,
|
1146 |
+
'hasStars' => $hasStars,
|
1147 |
+
'hasChildren' => $hasChild
|
1148 |
));
|
1149 |
/* Free/Pro URL Change */
|
1150 |
wp_enqueue_style('folders-jstree', WCP_FOLDER_URL . 'assets/css/jstree.min.css', array(), WCP_FOLDER_VERSION);
|
1151 |
+
wp_enqueue_style('wcp-folders-mcustomscrollbar', WCP_FOLDER_URL . 'assets/css/jquery.mcustomscrollbar.min.css', array(),WCP_FOLDER_VERSION);
|
1152 |
wp_enqueue_style('folder-folders', WCP_FOLDER_URL . 'assets/css/folders.min.css', array(), WCP_FOLDER_VERSION);
|
1153 |
wp_enqueue_style('folders-media', WCP_FOLDER_URL . 'assets/css/page-post-media.min.css', array(), WCP_FOLDER_VERSION);
|
1154 |
wp_enqueue_style('folder-icon', WCP_FOLDER_URL . 'assets/css/folder-icon.css', array(), WCP_FOLDER_VERSION);
|
1156 |
$string = "";
|
1157 |
$css_text = "";
|
1158 |
$customize_folders = get_option('customize_folders');
|
1159 |
+
if (!isset($customize_folders['new_folder_color']) || empty($customize_folders['new_folder_color'])) {
|
1160 |
+
$customize_folders['new_folder_color'] = "#FA166B";
|
|
|
|
|
|
|
1161 |
}
|
1162 |
+
$css_text .= ".media-frame a.add-new-folder { background-color: " . esc_attr($customize_folders['new_folder_color']) . "; border-color: " . esc_attr($customize_folders['new_folder_color']) . "}";
|
1163 |
+
$css_text .= ".wcp-hide-show-buttons .toggle-buttons { background-color: " . esc_attr($customize_folders['new_folder_color']) . "; }";
|
1164 |
+
$css_text .= ".folders-toggle-button span { background-color: " . esc_attr($customize_folders['new_folder_color']) . "; }";
|
1165 |
+
$css_text .= ".ui-resizable-handle.ui-resizable-e:before, .ui-resizable-handle.ui-resizable-w:before {border-color: " . esc_attr($customize_folders['new_folder_color']) . " !important}";
|
1166 |
+
|
1167 |
+
if (!isset($customize_folders['folder_bg_color']) || empty($customize_folders['folder_bg_color'])) {
|
1168 |
+
$customize_folders['folder_bg_color'] = "#FA166B";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1169 |
}
|
1170 |
+
$rgbColor = self::hexToRgb($customize_folders['folder_bg_color']);
|
1171 |
+
$css_text .= "body:not(.no-hover-css) #custom-scroll-menu .jstree-hovered:not(.jstree-clicked), body:not(.no-hover-css) #custom-scroll-menu .jstree-hovered:not(.jstree-clicked):hover { background: rgba(".$rgbColor['r'].",".$rgbColor['g'].",".$rgbColor['b'].", 0.08) !important; color: #333333;}";
|
1172 |
+
$css_text .= "body:not(.no-hover-css) #custom-scroll-menu .jstree-clicked, body:not(.no-hover-css) #custom-scroll-menu .jstree-clicked:not(.jstree-clicked):focus, #custom-scroll-menu .jstree-clicked, #custom-scroll-menu .jstree-clicked:hover { background: ".$customize_folders['folder_bg_color']." !important; color: #ffffff !important; }";
|
1173 |
+
$css_text .= "#custom-scroll-menu .jstree-hovered.wcp-drop-hover, #custom-scroll-menu .jstree-hovered.wcp-drop-hover:hover, #custom-scroll-menu .jstree-clicked.wcp-drop-hover, #custom-scroll-menu .jstree-clicked.wcp-drop-hover:hover, body #custom-scroll-menu *.drag-in >, body #custom-scroll-menu *.drag-in > a:hover { background: ".$customize_folders['folder_bg_color']." !important; color: #ffffff !important; }";
|
1174 |
+
$css_text .= ".drag-bot > a { border-bottom: solid 2px ".$customize_folders['folder_bg_color']."}";
|
1175 |
+
$css_text .= ".drag-up > a { border-top: solid 2px ".$customize_folders['folder_bg_color']."}";
|
1176 |
+
$css_text .= "body:not(.no-hover-css) #custom-scroll-menu *.drag-in > a.jstree-hovered, body:not(.no-hover-css) #custom-scroll-menu *.drag-in > a.jstree-hovered:hover {background: ".$customize_folders['folder_bg_color']." !important; color: #fff !important;}";
|
1177 |
+
$css_text .= ".orange-bg > span, .jstree-clicked, .header-posts a.active-item, .un-categorised-items.active-item, .sticky-folders ul li a.active-item { background-color: " . esc_attr($customize_folders['folder_bg_color']) . " !important; color: #ffffff !important; }";
|
1178 |
+
$css_text .= "body:not(.no-hover-css) .wcp-container .route .title:hover, body:not(.no-hover-css) .header-posts a:hover, body:not(.no-hover-css) .un-categorised-items:hover, body:not(.no-hover-css) .sticky-folders ul li a:hover { background: rgba(".esc_attr($rgbColor['r'].",".$rgbColor['g'].",".$rgbColor['b'].", 0.08")."); color: #333333;}";
|
1179 |
+
//$css_text .= "body:not(.no-hover-css) .wcp-container .route .title:hover, .header-posts a:hover, .un-categorised-items.active-item, .un-categorised-items:hover, .sticky-folders ul li a:hover {background: rgba(" . esc_attr($rgbColor['r'] . "," . $rgbColor['g'] . "," . $rgbColor['b'] . ", 0.08") . "); color:#444444;}";
|
1180 |
+
$css_text .= ".wcp-drop-hover {background-color: " . esc_attr($customize_folders['folder_bg_color']) . " !important; color: #ffffff; }";
|
1181 |
+
$css_text .= "#custom-menu .route .nav-icon .wcp-icon {color: " . esc_attr($customize_folders['folder_bg_color']) . " !important;}";
|
1182 |
+
$css_text .= ".mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {background-color: " . esc_attr($customize_folders['folder_bg_color']) . " !important;}";
|
1183 |
+
$css_text .= "body:not(.no-hover-css) .jstree-hovered {background: rgba(" . esc_attr($rgbColor['r'] . "," . $rgbColor['g'] . "," . $rgbColor['b'] . ", 0.08") . "}";
|
1184 |
+
$css_text .= ".jstree-default .jstree-clicked {" . esc_attr($customize_folders['folder_bg_color']) . "}";
|
1185 |
+
|
1186 |
+
if (!isset($customize_folders['bulk_organize_button_color']) || empty($customize_folders['bulk_organize_button_color'])) {
|
1187 |
+
$customize_folders['bulk_organize_button_color'] = "#FA166B";
|
1188 |
}
|
1189 |
+
$css_text .= "button.button.organize-button { background-color: " . esc_attr($customize_folders['bulk_organize_button_color']) . "; border-color: " . esc_attr($customize_folders['bulk_organize_button_color']) . "; }";
|
1190 |
+
$css_text .= "button.button.organize-button:hover { background-color: " . esc_attr($customize_folders['bulk_organize_button_color']) . "; border-color: " . esc_attr($customize_folders['bulk_organize_button_color']) . "; }";
|
1191 |
+
|
1192 |
$font_family = "";
|
1193 |
if (isset($customize_folders['folder_font']) && !empty($customize_folders['folder_font'])) {
|
1194 |
$folder_fonts = self::get_font_list();
|
1972 |
'parent' => $parent_id
|
1973 |
));
|
1974 |
|
1975 |
+
if($parent_id != "#" || !empty($parent_id)) {
|
1976 |
+
update_term_meta($parent_id, "is_active", 1);
|
1977 |
+
}
|
1978 |
$response['status'] = 1;
|
1979 |
$folder_type = self::get_custom_post_type($type);
|
1980 |
/* Free/Pro Class name change */
|
2156 |
$is_active = 1;
|
2157 |
$folders = -1;
|
2158 |
$response['status'] = 1;
|
|
|
|
|
|
|
|
|
2159 |
$response['folders'] = $folders;
|
2160 |
$response['is_key_active'] = $is_active;
|
2161 |
} else {
|
2201 |
$response['status'] = 1;
|
2202 |
$is_active = 1;
|
2203 |
$folders = -1;
|
|
|
|
|
|
|
|
|
2204 |
$response['folders'] = $folders;
|
2205 |
$response['term_id'] = $term_id;
|
2206 |
$response['is_key_active'] = $is_active;
|
2358 |
|
2359 |
$is_active = 1;
|
2360 |
$total_folders = -1;
|
|
|
|
|
|
|
|
|
2361 |
|
2362 |
if(!$is_active) {
|
2363 |
if (($total_folders + count($folders)) > 10) {
|
2509 |
|
2510 |
$is_active = 1;
|
2511 |
$folders = -1;
|
|
|
|
|
|
|
|
|
2512 |
$response['folders'] = $folders;
|
2513 |
$response['is_key_active'] = $is_active;
|
2514 |
}
|
2701 |
update_option("default_folders", $posts);
|
2702 |
}
|
2703 |
|
2704 |
+
if (isset($_POST['customize_folders'])) {
|
2705 |
$posts = array();
|
2706 |
if (isset($_POST['customize_folders']) && is_array($_POST['customize_folders'])) {
|
2707 |
foreach ($_POST['customize_folders'] as $key => $val) {
|
2711 |
update_option("customize_folders", $posts);
|
2712 |
}
|
2713 |
|
2714 |
+
$setting_page = $this->getFolderSettingsURL();
|
2715 |
+
if(!empty($setting_page)) {
|
2716 |
+
$page = isset($_POST['tab_page'])?$_POST['tab_page']:"";
|
2717 |
+
$type = filter_input(INPUT_GET, 'setting_page', FILTER_SANITIZE_STRING);
|
2718 |
+
$type = empty($type)?"":"&setting_page=".$type;
|
2719 |
+
$setting_page = $setting_page.$type;
|
2720 |
+
if(!empty($page)) {
|
2721 |
+
$setting_page .= "&setting_page=".$page;
|
2722 |
+
}
|
2723 |
+
wp_redirect($setting_page."¬e=1");
|
2724 |
+
exit;
|
2725 |
+
} else if(isset($_POST['folder_page']) && !empty($_POST['folder_page'])) {
|
2726 |
+
wp_redirect($_POST['folder_page']);
|
2727 |
+
exit;
|
2728 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2729 |
}
|
2730 |
}
|
2731 |
|
2732 |
+
// $old_version = get_option("folder_old_plugin_status");
|
2733 |
+
// if($old_version !== false && $old_version == 1) {
|
2734 |
+
// $tlfs = get_option("folder_old_plugin_folder_status");
|
2735 |
+
// if($tlfs === false) {
|
2736 |
+
// $total = self::ttl_fldrs();
|
2737 |
+
// if($total <= 10) {
|
2738 |
+
// $total = 10;
|
2739 |
+
// };
|
2740 |
+
// update_option("folder_old_plugin_folder_status", $total);
|
2741 |
+
// self::$folders = $total;
|
2742 |
+
// } else {
|
2743 |
+
// self::$folders = $tlfs;
|
2744 |
+
// }
|
2745 |
+
// }
|
2746 |
+
//
|
2747 |
+
// $tlfs = get_option("folder_old_plugin_folder_status");
|
2748 |
+
// if($tlfs === false) {
|
2749 |
+
// self::$folders = 10;
|
2750 |
+
// } else {
|
2751 |
+
// self::$folders = $tlfs;
|
2752 |
+
// }
|
2753 |
}
|
2754 |
|
2755 |
function searchForId($id, $menu)
|
2838 |
{
|
2839 |
if (self::is_active_for_screen()) {
|
2840 |
wp_enqueue_style('wcp-folders-fa', plugin_dir_url(dirname(__FILE__)) . 'assets/css/folder-icon.css', array(), WCP_FOLDER_VERSION);
|
2841 |
+
wp_enqueue_style('wcp-folders-admin', plugin_dir_url(dirname(__FILE__)) . 'assets/css/design.css', array(), WCP_FOLDER_VERSION);
|
2842 |
wp_enqueue_style('wcp-folders-jstree', plugin_dir_url(dirname(__FILE__)) . 'assets/css/jstree.min.css', array(), WCP_FOLDER_VERSION);
|
2843 |
+
wp_enqueue_style('wcp-folders-mcustomscrollbar', WCP_FOLDER_URL . 'assets/css/jquery.mcustomscrollbar.min.css', array(),WCP_FOLDER_VERSION);
|
2844 |
wp_enqueue_style('wcp-folders-css', plugin_dir_url(dirname(__FILE__)) . 'assets/css/folders.min.css', array(), WCP_FOLDER_VERSION);
|
2845 |
}
|
2846 |
wp_register_style('wcp-css-handle', false);
|
2924 |
$optionValue = get_option($optionName);
|
2925 |
$class = (!empty($optionValue) && $optionValue == "hide")?"":"active";
|
2926 |
$customize_folders = get_option('customize_folders');
|
2927 |
+
$show_in_page = isset($customize_folders['show_in_page'])?$customize_folders['show_in_page']:"hide";
|
2928 |
if(empty($show_in_page)) {
|
2929 |
+
$show_in_page = "hide";
|
2930 |
}
|
2931 |
if($show_in_page == "show") {
|
2932 |
echo '<div class="tree-structure-content ' . $class . '"><div class="tree-structure" id="list-folder-' . $termId . '" data-id="' . $termId . '">';
|
2968 |
global $typenow;
|
2969 |
/* Free/Pro Version change */
|
2970 |
wp_enqueue_script('wcp-folders-jstree', plugin_dir_url(dirname(__FILE__)) . 'assets/js/jstree.min.js', array('jquery'), WCP_FOLDER_VERSION);
|
2971 |
+
wp_enqueue_script('wcp-folders-mcustomscrollbar', plugin_dir_url(dirname(__FILE__)) . 'assets/js/jquery.mcustomscrollbar.min.js', array(), WCP_FOLDER_VERSION);
|
2972 |
+
wp_enqueue_script('wcp-folders-custom', plugin_dir_url(dirname(__FILE__)) . 'assets/js/folders.js', array('jquery', 'jquery-ui-resizable', 'jquery-ui-draggable', 'jquery-ui-droppable', 'jquery-ui-sortable', 'backbone'), WCP_FOLDER_VERSION);
|
2973 |
wp_enqueue_script('wcp-jquery-touch', plugin_dir_url(dirname(__FILE__)) . 'assets/js/jquery.ui.touch-punch.min.js', array('jquery'), WCP_FOLDER_VERSION);
|
2974 |
|
2975 |
$post_type = self::get_custom_post_type($typenow);
|
2992 |
|
2993 |
$is_active = 1;
|
2994 |
$folders = -1;
|
|
|
|
|
|
|
|
|
2995 |
/* For free: upgrade URL, for Pro: Register Key URL */
|
2996 |
$register_url = $this->getFoldersUpgradeURL();
|
2997 |
|
3024 |
}
|
3025 |
}
|
3026 |
$customize_folders = get_option('customize_folders');
|
3027 |
+
$show_in_page = isset($customize_folders['show_in_page'])?$customize_folders['show_in_page']:"hide";
|
3028 |
+
if(empty($show_in_page)) {
|
3029 |
+
$show_in_page = "hide";
|
3030 |
+
}
|
3031 |
$taxonomies = self::get_terms_hierarchical($post_type);
|
3032 |
|
3033 |
$folder_settings = array();
|
3046 |
}
|
3047 |
|
3048 |
$response['terms'] = $taxonomies;
|
3049 |
+
$currentPage = (isset($_GET['paged']) && !empty($_GET['paged']) && is_numeric($_GET['paged']) && $_GET['paged'] > 0)?$_GET['paged']:1;
|
3050 |
+
$hasStars = self::check_for_setting("has_stars", "general");
|
3051 |
+
$hasChild = self::check_for_setting("has_child", "general");
|
3052 |
+
$hasChild = empty($hasChild)?0:1;
|
3053 |
+
$hasStars = empty($hasStars)?0:1;
|
3054 |
wp_localize_script('wcp-folders-custom', 'wcp_settings', array(
|
3055 |
'ajax_url' => admin_url('admin-ajax.php'),
|
3056 |
'upgrade_url' => $this->getFoldersUpgradeURL(),
|
3070 |
'show_in_page' => $show_in_page,
|
3071 |
'svg_file' => WCP_FOLDER_URL.'assets/images/pin.png',
|
3072 |
'taxonomies' => $taxonomies,
|
3073 |
+
'folder_settings' => $folder_settings,
|
3074 |
+
'hasStars' => $hasStars,
|
3075 |
+
'hasChildren' => $hasChild,
|
3076 |
+
'currentPage' => $currentPage
|
3077 |
));
|
3078 |
} else {
|
3079 |
self::is_add_update_screen();
|
3084 |
wp_enqueue_style( 'folders-media', WCP_FOLDER_URL . 'assets/css/new-media.css' );
|
3085 |
$is_active = 1;
|
3086 |
$folders = -1;
|
3087 |
+
|
3088 |
+
$hasStars = self::check_for_setting("has_stars", "general");
|
3089 |
+
$hasChild = self::check_for_setting("has_child", "general");
|
3090 |
+
$hasChild = empty($hasChild)?0:1;
|
3091 |
+
$hasStars = empty($hasStars)?0:1;
|
3092 |
|
3093 |
wp_enqueue_script('wcp-folders-add-new-media', plugin_dir_url(dirname(__FILE__)) . 'assets/js/new-media.js', array('jquery'), WCP_FOLDER_VERSION);
|
3094 |
wp_localize_script( 'wcp-folders-add-new-media', 'folders_media_options', array(
|
3099 |
'nonce' => wp_create_nonce('wcp_folder_nonce_attachment'),
|
3100 |
'is_key_active' => $is_active,
|
3101 |
'folders' => $folders,
|
3102 |
+
'hasStars' => $hasStars,
|
3103 |
+
'hasChildren' => $hasChild
|
3104 |
));
|
3105 |
}
|
3106 |
}
|
3158 |
|
3159 |
public static function activate()
|
3160 |
{
|
3161 |
+
premio_folders_plugin_check_for_setting();
|
3162 |
+
$folder_setting = get_option("folders_settings");
|
3163 |
+
if($folder_setting === false) {
|
3164 |
+
add_option("wcp_folder_version_267", 1);
|
3165 |
+
}
|
3166 |
update_option("folders_show_in_menu", "off");
|
3167 |
$option = get_option("folder_redirect_status");
|
3168 |
if($option === false) {
|
3171 |
update_option("folder_redirect_status", 1);
|
3172 |
}
|
3173 |
|
3174 |
+
public static function deactivate() {
|
3175 |
+
$customize_folders = get_option('customize_folders');
|
3176 |
+
$DS = DIRECTORY_SEPARATOR;
|
3177 |
+
$dirName = ABSPATH . "wp-content{$DS}plugins{$DS}folders-pro{$DS}";
|
3178 |
+
$is_pro = get_option("folders_pro_is_in_process");
|
3179 |
+
if(!is_dir($dirName) && $is_pro === false && isset($customize_folders['remove_folders_when_removed']) && $customize_folders['remove_folders_when_removed'] == "on") {
|
3180 |
+
self::$folders = 0;
|
3181 |
+
self::remove_folder_by_taxonomy("media_folder");
|
3182 |
+
self::remove_folder_by_taxonomy("folder");
|
3183 |
+
self::remove_folder_by_taxonomy("post_folder");
|
3184 |
+
$post_types = get_post_types(array(), 'objects');
|
3185 |
+
$post_array = array("page", "post", "attachment");
|
3186 |
+
foreach ($post_types as $post_type) {
|
3187 |
+
if (!in_array($post_type->name, $post_array)) {
|
3188 |
+
self::remove_folder_by_taxonomy($post_type->name . '_folder');
|
3189 |
+
}
|
3190 |
+
}
|
3191 |
+
delete_option('customize_folders');
|
3192 |
+
delete_option('default_folders');
|
3193 |
+
delete_option('folders_show_in_menu');
|
3194 |
+
delete_option('folder_redirect_status');
|
3195 |
+
delete_option('folders_settings');
|
3196 |
+
delete_option('premio_folder_options');
|
3197 |
+
delete_option('folders_settings_updated');
|
3198 |
+
}
|
3199 |
+
}
|
3200 |
|
3201 |
function folders_register_settings()
|
3202 |
{
|
includes/form.class.php
CHANGED
@@ -9,6 +9,20 @@ class WCP_Forms {
|
|
9 |
ob_start();
|
10 |
?>
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
<div class="wcp-custom-form">
|
13 |
<div class="form-title">
|
14 |
<div class="plugin-title">
|
@@ -47,12 +61,17 @@ class WCP_Forms {
|
|
47 |
<a data-folder-tooltip="Sort Folders" href="javascript:;" id="sort-order-list" class="sort-folder-order folder-tooltip">
|
48 |
<span class="icon pfolder-arrow-sort"></span>
|
49 |
</a>
|
50 |
-
<div class="folder-sort-menu">
|
51 |
<ul>
|
52 |
-
<li><a data-sort="a-z" href="#"
|
53 |
-
<li><a data-sort="z-a" href="#"
|
54 |
-
|
55 |
-
|
|
|
|
|
|
|
|
|
|
|
56 |
</ul>
|
57 |
</div>
|
58 |
</li>
|
@@ -61,23 +80,7 @@ class WCP_Forms {
|
|
61 |
</li>
|
62 |
</ul>
|
63 |
<div class="upgrade-message">
|
64 |
-
<?php
|
65 |
-
$tlfs = get_option("folder_old_plugin_folder_status");
|
66 |
-
if($tlfs == false || $tlfs < 10) {
|
67 |
-
$tlfs = 10;
|
68 |
-
}
|
69 |
-
$total = WCP_Folders::get_ttl_fldrs();
|
70 |
-
if($total > $tlfs) {
|
71 |
-
$tlfs = $total;
|
72 |
-
}
|
73 |
-
$customize_folders = get_option("customize_folders");
|
74 |
-
if(isset($customize_folders['show_folder_in_settings']) && $customize_folders['show_folder_in_settings'] == "yes") {
|
75 |
-
$upgradeURL = admin_url("options-general.php?page=wcp_folders_settings&setting_page=upgrade-to-pro");
|
76 |
-
} else {
|
77 |
-
$upgradeURL = admin_url("admin.php?page=folders-upgrade-to-pro");
|
78 |
-
}
|
79 |
-
?>
|
80 |
-
<span class="upgrade-message">You have used <span class='pink' id='current-folder'><?php echo esc_attr($total) ?></span>/<span id='ttl-fldr'><?php echo esc_attr($tlfs) ?></span> Folders. <a class="pink" href="<?php echo esc_url($upgradeURL) ?>"><?php esc_html_e("Upgrade", WCP_FOLDER) ?></a></span>
|
81 |
</div>
|
82 |
</div>
|
83 |
<div class="form-loader">
|
9 |
ob_start();
|
10 |
?>
|
11 |
|
12 |
+
<?php
|
13 |
+
$customize_folders = get_option("customize_folders");
|
14 |
+
if(isset($customize_folders['show_folder_in_settings']) && $customize_folders['show_folder_in_settings'] == "yes") {
|
15 |
+
$upgradeURL = admin_url("options-general.php?page=wcp_folders_settings&setting_page=upgrade-to-pro");
|
16 |
+
} else {
|
17 |
+
$upgradeURL = admin_url("admin.php?page=folders-upgrade-to-pro");
|
18 |
+
}
|
19 |
+
|
20 |
+
$is_old = false;
|
21 |
+
$old_status = get_option("wcp_folder_version_267");
|
22 |
+
if($old_status === false) {
|
23 |
+
//$is_old = true;
|
24 |
+
}
|
25 |
+
?>
|
26 |
<div class="wcp-custom-form">
|
27 |
<div class="form-title">
|
28 |
<div class="plugin-title">
|
61 |
<a data-folder-tooltip="Sort Folders" href="javascript:;" id="sort-order-list" class="sort-folder-order folder-tooltip">
|
62 |
<span class="icon pfolder-arrow-sort"></span>
|
63 |
</a>
|
64 |
+
<div class="folder-sort-menu <?php echo ($is_old)?"":"is-pro" ?>">
|
65 |
<ul>
|
66 |
+
<li><a data-sort="a-z" href="#"><?php esc_html_e("A → Z", WCP_FOLDER ) ?></a></li>
|
67 |
+
<li><a data-sort="z-a" href="#"><?php esc_html_e("Z → A", WCP_FOLDER ) ?></a></li>
|
68 |
+
<?php if($is_old) { ?>
|
69 |
+
<li><a data-sort="n-o" href="#"><?php esc_html_e("Sort by newest", WCP_FOLDER ) ?></a></li>
|
70 |
+
<li><a data-sort="o-n" href="#"><?php esc_html_e("Sort by oldest", WCP_FOLDER ) ?></a></li>
|
71 |
+
<?php } else { ?>
|
72 |
+
<li><a data-sort="n-o" target="_blank" class="pro-feature" href="<?php echo esc_url($upgradeURL) ?>"><?php esc_html_e("Sort by newest", WCP_FOLDER ) ?> <span><?php esc_html_e("(Pro)", WCP_FOLDER ) ?></span></a></li>
|
73 |
+
<li><a data-sort="o-n" target="_blank" class="pro-feature" href="<?php echo esc_url($upgradeURL) ?>"><?php esc_html_e("Sort by oldest", WCP_FOLDER ) ?> <span><?php esc_html_e("(Pro)", WCP_FOLDER ) ?></span></a></li>
|
74 |
+
<?php } ?>
|
75 |
</ul>
|
76 |
</div>
|
77 |
</li>
|
80 |
</li>
|
81 |
</ul>
|
82 |
<div class="upgrade-message">
|
83 |
+
<span class="upgrade-message"><a class="pink" href="<?php echo esc_url($upgradeURL) ?>"><?php esc_html_e("Unlock all Pro features", WCP_FOLDER) ?> <span class="dashicons dashicons-arrow-right-alt"></span></a></span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
</div>
|
85 |
</div>
|
86 |
<div class="form-loader">
|
includes/media.replace.php
CHANGED
@@ -5,36 +5,52 @@ class folders_replace_media {
|
|
5 |
|
6 |
public $button_color;
|
7 |
|
|
|
|
|
|
|
|
|
8 |
function __construct() {
|
9 |
|
10 |
$customize_folders = get_option('customize_folders');
|
11 |
|
12 |
$this->button_color = isset($customize_folders['media_replace_button'])?$customize_folders['media_replace_button']:"#FA166B";
|
13 |
|
14 |
-
|
|
|
|
|
|
|
|
|
15 |
|
16 |
-
|
17 |
|
18 |
-
|
19 |
-
add_meta_box('folders-replace-box', esc_html__('Replace Media', 'folders'), array($this, 'replace_meta_box'), 'attachment', 'side', 'low');
|
20 |
-
});
|
21 |
-
add_filter('attachment_fields_to_edit', array($this, 'attachment_editor'), 10, 2);
|
22 |
|
23 |
-
|
|
|
|
|
|
|
24 |
|
25 |
-
|
26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
}
|
28 |
|
29 |
public function folders_admin_css_and_js($page) {
|
30 |
-
|
31 |
wp_enqueue_style('folders-media', plugin_dir_url(dirname(__FILE__)) . 'assets/css/replace-media.css', array(), WCP_FOLDER_VERSION);
|
32 |
wp_enqueue_script('folders-media', plugin_dir_url(dirname(__FILE__)) . 'assets/js/replace-media.js', array(), WCP_FOLDER_VERSION);
|
33 |
}
|
34 |
}
|
35 |
|
36 |
-
public function admin_menu()
|
37 |
-
{
|
38 |
add_submenu_page(null,
|
39 |
esc_html__("Replace media", "folders"),
|
40 |
esc_html__("Replace media", "folders"),
|
@@ -69,10 +85,23 @@ class folders_replace_media {
|
|
69 |
}
|
70 |
|
71 |
public function add_media_action($actions, $post) {
|
72 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
|
74 |
-
|
75 |
-
|
|
|
|
|
|
|
76 |
}
|
77 |
|
78 |
public function getMediaReplaceURL($attach_id) {
|
@@ -88,8 +117,12 @@ class folders_replace_media {
|
|
88 |
}
|
89 |
|
90 |
public function replace_meta_box($post) {
|
91 |
-
|
92 |
-
|
|
|
|
|
|
|
|
|
93 |
}
|
94 |
|
95 |
public function attachment_editor($form_fields, $post)
|
@@ -102,13 +135,22 @@ class folders_replace_media {
|
|
102 |
if(! is_null($screen) && $screen->id == 'attachment') // hide on edit attachment screen.
|
103 |
return $form_fields;
|
104 |
}
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
|
113 |
return $form_fields;
|
114 |
}
|
5 |
|
6 |
public $button_color;
|
7 |
|
8 |
+
public $is_enabled = false;
|
9 |
+
|
10 |
+
public $upgradeLink;
|
11 |
+
|
12 |
function __construct() {
|
13 |
|
14 |
$customize_folders = get_option('customize_folders');
|
15 |
|
16 |
$this->button_color = isset($customize_folders['media_replace_button'])?$customize_folders['media_replace_button']:"#FA166B";
|
17 |
|
18 |
+
$this->is_enabled = isset($customize_folders['folders_enable_replace_media'])?$customize_folders['folders_enable_replace_media']:"yes";
|
19 |
+
|
20 |
+
$this->is_enabled = ($this->is_enabled == "yes")?true:false;
|
21 |
+
|
22 |
+
if($this->is_enabled) {
|
23 |
|
24 |
+
add_action('admin_menu', array($this, 'admin_menu'));
|
25 |
|
26 |
+
add_filter('media_row_actions', array($this, 'add_media_action'), 10, 2);
|
|
|
|
|
|
|
27 |
|
28 |
+
add_action('add_meta_boxes', function () {
|
29 |
+
add_meta_box('folders-replace-box', esc_html__('Replace Media', 'folders'), array($this, 'replace_meta_box'), 'attachment', 'side', 'low');
|
30 |
+
});
|
31 |
+
add_filter('attachment_fields_to_edit', array($this, 'attachment_editor'), 10, 2);
|
32 |
|
33 |
+
add_action('admin_enqueue_scripts', array($this, 'folders_admin_css_and_js'));
|
34 |
|
35 |
+
add_action('admin_init', array($this, 'handle_folders_file_upload'));
|
36 |
+
}
|
37 |
+
|
38 |
+
$customize_folders = get_option("customize_folders");
|
39 |
+
if(isset($customize_folders['show_folder_in_settings']) && $customize_folders['show_folder_in_settings'] == "yes") {
|
40 |
+
$this->upgradeLink = admin_url("options-general.php?page=wcp_folders_settings&setting_page=upgrade-to-pro");
|
41 |
+
} else {
|
42 |
+
$this->upgradeLink = admin_url("admin.php?page=folders-upgrade-to-pro");
|
43 |
+
}
|
44 |
}
|
45 |
|
46 |
public function folders_admin_css_and_js($page) {
|
47 |
+
if($page == "media_page_folders-replace-media" || $page == "admin_page_folders-replace-media") {
|
48 |
wp_enqueue_style('folders-media', plugin_dir_url(dirname(__FILE__)) . 'assets/css/replace-media.css', array(), WCP_FOLDER_VERSION);
|
49 |
wp_enqueue_script('folders-media', plugin_dir_url(dirname(__FILE__)) . 'assets/js/replace-media.js', array(), WCP_FOLDER_VERSION);
|
50 |
}
|
51 |
}
|
52 |
|
53 |
+
public function admin_menu() {
|
|
|
54 |
add_submenu_page(null,
|
55 |
esc_html__("Replace media", "folders"),
|
56 |
esc_html__("Replace media", "folders"),
|
85 |
}
|
86 |
|
87 |
public function add_media_action($actions, $post) {
|
88 |
+
if(!$this->is_enabled) {
|
89 |
+
return array_merge($actions);
|
90 |
+
}
|
91 |
+
if (wp_attachment_is('image', $post->ID)) {
|
92 |
+
$link = $this->getMediaReplaceURL( $post->ID );
|
93 |
+
|
94 |
+
$newaction['replace_media'] = '<a style="color: ' . $this->button_color . '" href="' . $link . '" rel="permalink">' . esc_html__( "Replace media", "folders" ) . '</a>';
|
95 |
+
|
96 |
+
return array_merge( $actions, $newaction );
|
97 |
+
} else {
|
98 |
+
$link = $this->getMediaReplaceURL( $post->ID );
|
99 |
|
100 |
+
$newaction['replace_media'] = '<a style="color: ' . $this->button_color . '" target="_blank" href="' . $this->upgradeLink . '" rel="permalink">' . esc_html__( "Replace Media 🔑", "folders" ) . '</a>';
|
101 |
+
|
102 |
+
return array_merge( $actions, $newaction );
|
103 |
+
}
|
104 |
+
return $actions;
|
105 |
}
|
106 |
|
107 |
public function getMediaReplaceURL($attach_id) {
|
117 |
}
|
118 |
|
119 |
public function replace_meta_box($post) {
|
120 |
+
if (wp_attachment_is('image', $post->ID)) {
|
121 |
+
$link = $this->getMediaReplaceURL($post->ID);
|
122 |
+
echo "<p><a style='background: {$this->button_color}; border-color: {$this->button_color}; color:#ffffff' href='" . $link . "' class='button-secondary'>" . esc_html__( "Upload a new file", "folders" ) . "</a></p><p>" . esc_html__( "Click on the button to replace the file with another file", "folders" ) . "</p>";
|
123 |
+
} else {
|
124 |
+
echo "<p><a style='color: {$this->button_color}; font-weight: 500' target='_blank' href='" . $this->upgradeLink . "' >" . esc_html__( "Upgrade to Pro", "folders" ) . "</a> ".esc_html__( "to replace any kind of files while uploading including pdf/svg/docx/etc & more.", "folders" ) . "</p>";
|
125 |
+
}
|
126 |
}
|
127 |
|
128 |
public function attachment_editor($form_fields, $post)
|
135 |
if(! is_null($screen) && $screen->id == 'attachment') // hide on edit attachment screen.
|
136 |
return $form_fields;
|
137 |
}
|
138 |
+
if (wp_attachment_is('image', $post->ID)) {
|
139 |
+
$link = $this->getMediaReplaceURL( $post->ID );
|
140 |
+
$form_fields["folders"] = array(
|
141 |
+
"label" => esc_html__( "Replace media", "folders" ),
|
142 |
+
"input" => "html",
|
143 |
+
"html" => "<a style='background: {$this->button_color}; border-color: {$this->button_color}; color:#ffffff' href='" . $link . "' class='button-secondary'>" . esc_html__( "Upload a new file", "folders" ) . "</a>",
|
144 |
+
"helps" => esc_html__( "Click on the button to replace the file with another file", "folders" )
|
145 |
+
);
|
146 |
+
} else {
|
147 |
+
$form_fields["folders"] = array(
|
148 |
+
"label" => esc_html__( "Replace media", "folders" ),
|
149 |
+
"input" => "html",
|
150 |
+
"html" => "<div style='border: solid 1px #c0c0c0; padding: 10px; border-radius: 2px; background: #ececec;'><a style='color: {$this->button_color}; font-weight: 500' target='_blank' href='" . $this->upgradeLink . "' >" . esc_html__( "Upgrade to Pro", "folders" ) . "</a> ".esc_html__( "to replace media files other than images", "folders" ) . "</div>",
|
151 |
+
"helps" => esc_html__( "Click on the button to replace the file with another file", "folders" )
|
152 |
+
);
|
153 |
+
}
|
154 |
|
155 |
return $form_fields;
|
156 |
}
|
includes/plugins.class.php
CHANGED
@@ -78,19 +78,6 @@ class WCP_Folder_Plugins {
|
|
78 |
exit;
|
79 |
}
|
80 |
|
81 |
-
public function checkForLimit($folders) {
|
82 |
-
$response = array();
|
83 |
-
$response['status'] = 0;
|
84 |
-
$response['message'] = esc_html__("Invalid request", "folders");
|
85 |
-
$response['data'] = array();
|
86 |
-
$response['data']['plugin'] = array();
|
87 |
-
if($folders >= 10) {
|
88 |
-
$response['status'] = -1;
|
89 |
-
echo json_encode($response);
|
90 |
-
exit;
|
91 |
-
}
|
92 |
-
}
|
93 |
-
|
94 |
public function import_plugin_folders_data() {
|
95 |
$postData = filter_input_array(INPUT_POST);
|
96 |
|
@@ -110,10 +97,6 @@ class WCP_Folder_Plugins {
|
|
110 |
$foldersImported = array();
|
111 |
$attachmentsImported = array();
|
112 |
|
113 |
-
$total_folders = WCP_Folders::get_ttl_fldrs();
|
114 |
-
|
115 |
-
$this->checkForLimit($total_folders);
|
116 |
-
|
117 |
if($plugin != 'filebird' && $plugin != 'real-media-library') {
|
118 |
|
119 |
foreach ($folders as $folder) {
|
@@ -146,9 +129,6 @@ class WCP_Folder_Plugins {
|
|
146 |
continue;
|
147 |
}
|
148 |
|
149 |
-
$total_folders++;
|
150 |
-
$this->checkForLimit($total_folders);
|
151 |
-
|
152 |
$arg = array(
|
153 |
'hide_empty' => false,
|
154 |
'parent' => $parent,
|
@@ -235,9 +215,6 @@ class WCP_Folder_Plugins {
|
|
235 |
continue;
|
236 |
}
|
237 |
|
238 |
-
$total_folders++;
|
239 |
-
$this->checkForLimit($total_folders);
|
240 |
-
|
241 |
$taxonomy = 'media_folder';
|
242 |
|
243 |
$arg = array(
|
78 |
exit;
|
79 |
}
|
80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
public function import_plugin_folders_data() {
|
82 |
$postData = filter_input_array(INPUT_POST);
|
83 |
|
97 |
$foldersImported = array();
|
98 |
$attachmentsImported = array();
|
99 |
|
|
|
|
|
|
|
|
|
100 |
if($plugin != 'filebird' && $plugin != 'real-media-library') {
|
101 |
|
102 |
foreach ($folders as $folder) {
|
129 |
continue;
|
130 |
}
|
131 |
|
|
|
|
|
|
|
132 |
$arg = array(
|
133 |
'hide_empty' => false,
|
134 |
'parent' => $parent,
|
215 |
continue;
|
216 |
}
|
217 |
|
|
|
|
|
|
|
218 |
$taxonomy = 'media_folder';
|
219 |
|
220 |
$arg = array(
|
readme.txt
CHANGED
@@ -1,16 +1,18 @@
|
|
1 |
-
=== Folders - Organize Media Library
|
2 |
Contributors: galdub, tomeraharon, premio
|
3 |
Tags: folder, folders, replace media, pages folders, media library, posts folders, media folders, media replace, file manager, directories, media library folders, media library folder
|
4 |
Requires at least: 3.0.0
|
5 |
-
Tested up to: 5.
|
6 |
-
Stable tag: 2.6.
|
7 |
Plugin URI: https://premio.io/downloads/folders/
|
8 |
|
9 |
-
Folders is a WordPress plugin that will help you quickly organize and manage your Media Library files, Pages
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
-
|
|
|
|
|
14 |
|
15 |
[youtube https://www.youtube.com/watch?v=GKq5jvuoRY0]
|
16 |
|
@@ -18,7 +20,7 @@ Folders is a WordPress plugin that enables users to quickly organize all of thei
|
|
18 |
|
19 |
There are several ways professionals are using the Folders file manager plugin to organize their WordPress content:
|
20 |
|
21 |
-
* Keep all of your media files organized in folders
|
22 |
* Web developers: keep your clients’ website pages in proper order during and after development. You can also mark a folder with a star or give it a unique name for clients to understand what is important and what they should (or shouldn't) touch.
|
23 |
* Bloggers: manage your own content with ease with this file manager plugin. Never get confused again – organize photos and content by topics, categories, and/or dates.
|
24 |
* Quickly upload pages, media, and content to your WordPress and easily organize them into directories so they’re never lost. It’s content creation and organization at its finest!
|
@@ -36,49 +38,53 @@ Have any questions or feature suggestions? We'd love to hear from you. <strong><
|
|
36 |
|
37 |
= So How Does it Work? =
|
38 |
|
39 |
-
It’s rather simple really – once you install the plugin, you can begin using it. If you’re a content creator, you can upload text, images, videos, and audio at the click of a button. Then you can organize everything you upload into neat
|
40 |
|
41 |
= FOLDERS PLUGIN FEATURES =
|
42 |
|
43 |
-
* Create
|
44 |
-
* Create and organize subfolders
|
45 |
* Drag and drop pages, posts, and media library
|
46 |
-
* New! Media replace - replace media files
|
47 |
* New! Import folders from other plugins - import folders from FileBird, Enhanced Media Library, Wicked Folders, Real Media Library, and WP Media Folder
|
48 |
* You can also move media library files, pages, posts, or any custom post to folders without using our drag and drop feature. Whenever you select any element or select some elements in bulk, you can move it to a folder using our dropdown menu
|
49 |
* Select specific folders when you add media to your pages, posts or any other post type
|
50 |
* Drag and drop folders, change order, and hierarchy
|
51 |
* Search folder names
|
52 |
* Create more than one folder at once (separate your folders names with commas)
|
53 |
-
*
|
54 |
-
*
|
55 |
-
* Select a default folder for your media library, posts, pages, and custom posts - you can select the folder that will load by default when you open your media library, pages, posts, and custom posts. For example, you can show all the unassigned files whenever you open the media library.
|
56 |
-
* New! Sort your folders - you can sort your folders based on name and creation date
|
57 |
-
* New! Media Library folders upload progress bar - track the progress of your uploads to the media library in real-time.
|
58 |
* Bulk select images and media files and drag them to any folder. No worries, you can also drag and drop media library files one-by-one if you want :)
|
59 |
-
* Bulk select and delete folders. You can select one folder or more and delete it in the click of a button
|
60 |
-
* While adding images or any kind of file from your media library to your pages and posts, use Folders to view all your media library files based on the folder the files are assigned to
|
61 |
* Rename folders
|
62 |
* Monitor all the unassigned media library files, posts, pages, and custom posts so you can organize them easily to your folders
|
63 |
-
* Sticky toolbar for the media library so you can navigate and organize your folders with ease
|
64 |
-
* Add stars to important directories
|
65 |
-
* New! Customize the look and feel of your folders. Change the colors, font, and size of your media folder, pages, posts, and custom posts folders
|
66 |
* Simultaneously assign and organize media, pages, posts, templates, and custom posts while adding them to directories
|
67 |
* Place content in multiple folders at once
|
68 |
-
* Easily see subfolders within each file
|
69 |
* Resize folders menu
|
70 |
-
* Compatible with RTL admin panel (such as Hebrew, Arabic etc.)
|
71 |
* Add and remove folders menu from pages, posts, and media
|
72 |
* Minimize the folders area if you need extra space
|
73 |
-
* Create media library folders directly when you upload new media files
|
74 |
|
75 |
= FOLDERS PLUGIN PRO FEATURES 🚀 =
|
76 |
-
* <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 :)
|
77 |
-
*
|
78 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
|
80 |
= Replace media files =
|
81 |
-
With Folders plugin, you can replace media library files with other files. This feature is a life-saver whenever you need to replace a media file on all of your pages, posts, etc. When you replace a media file, the change will reflect on all of your pages, posts, and more. Check out the media replace feature in action:
|
82 |
[youtube https://www.youtube.com/watch?v=16MrxVo2EC4]
|
83 |
|
84 |
= Import folders =
|
@@ -86,7 +92,7 @@ You can import folders data from FileBird, Enhanced Media Library, Wicked Folder
|
|
86 |
|
87 |
= Here Are Some Use Cases =
|
88 |
|
89 |
-
Wondering how you can use this pages, posts and media library folders for your online business? Here’s are a few use cases:
|
90 |
|
91 |
<strong>Bloggers:</strong> Easily upload content for blogs, including text, photos, videos, and audio files. Then manage everything you upload by placing them in clearly labeled media library folders.
|
92 |
Web developers: Design websites in an organized fashion by uploading graphics, animations, site elements, and content – all packaged neatly in directories.
|
@@ -109,7 +115,7 @@ Folders plugin is GDPR compliant:
|
|
109 |
|
110 |
The plugin is compatible with Gutenberg, Elementor website builder, Divi, Visual Composer, WPbakery, Beaver Builder, and with any WordPress theme.
|
111 |
|
112 |
-
Download this plugin today for free and get
|
113 |
|
114 |
= Testimonials =
|
115 |
|
@@ -144,6 +150,9 @@ Step 3: Create new folders and drag & drop elements into your new folders
|
|
144 |
|
145 |
== Frequently Asked Questions ==
|
146 |
|
|
|
|
|
|
|
147 |
= Is there a time limit for the free plan? =
|
148 |
No. you can use the free plan as long as you want.
|
149 |
|
@@ -180,6 +189,10 @@ A live demo for the Folders plugin is available at <a href="https://demo.premio.
|
|
180 |
|
181 |
== Changelog ==
|
182 |
|
|
|
|
|
|
|
|
|
183 |
= 2.6.7 =
|
184 |
List view folders bulk actions bug fixed
|
185 |
|
1 |
+
=== Folders - Unlimited Folders to Organize Media Library Folder, Pages, Posts, File Manager ===
|
2 |
Contributors: galdub, tomeraharon, premio
|
3 |
Tags: folder, folders, replace media, pages folders, media library, posts folders, media folders, media replace, file manager, directories, media library folders, media library folder
|
4 |
Requires at least: 3.0.0
|
5 |
+
Tested up to: 5.7
|
6 |
+
Stable tag: 2.6.8
|
7 |
Plugin URI: https://premio.io/downloads/folders/
|
8 |
|
9 |
+
Folders is a WordPress plugin that will help you quickly create unlimited folders and organize and manage your Media Library files, Pages & Posts in folders
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
+
NEW! Create <strong>Unlimited Folders</strong> In The Free Version 🎉
|
14 |
+
|
15 |
+
Folders is a WordPress plugin that enables users to quickly organize all of their Pages, Posts, and Media files in folders. You can easily drag and drop items into directories and change the folders tree view (hierarchy) as you wish. Looking for some awesome pro features? Check out <a href="https://premio.io/downloads/folders" target="_blank" title="Folders pro plans"><strong>Folders Pro Plans</strong></a>.
|
16 |
|
17 |
[youtube https://www.youtube.com/watch?v=GKq5jvuoRY0]
|
18 |
|
20 |
|
21 |
There are several ways professionals are using the Folders file manager plugin to organize their WordPress content:
|
22 |
|
23 |
+
* Keep all of your media files organized in folders including photos, videos, music, main website pages, and blog posts. You can also place media in multiple folders, such as images used on different pages.
|
24 |
* Web developers: keep your clients’ website pages in proper order during and after development. You can also mark a folder with a star or give it a unique name for clients to understand what is important and what they should (or shouldn't) touch.
|
25 |
* Bloggers: manage your own content with ease with this file manager plugin. Never get confused again – organize photos and content by topics, categories, and/or dates.
|
26 |
* Quickly upload pages, media, and content to your WordPress and easily organize them into directories so they’re never lost. It’s content creation and organization at its finest!
|
38 |
|
39 |
= So How Does it Work? =
|
40 |
|
41 |
+
It’s rather simple really – once you install the plugin, you can begin using it. If you’re a content creator, you can upload text, images, videos, and audio at the click of a button. Then you can organize everything you upload into neat folders. For instance, you can create a media folder, content folder, and image folder, then have them all organized by date. It has a drag and drop interface, making it user-friendly for everyone. It’s like having your own media library at your own disposal. You can create this media library for yourself or others – it’s perfect for website owners and content professionals!
|
42 |
|
43 |
= FOLDERS PLUGIN FEATURES =
|
44 |
|
45 |
+
* <strong>Create unlimited folders</strong>
|
|
|
46 |
* Drag and drop pages, posts, and media library
|
47 |
+
* New! Media replace - replace media files with other files uploaded by you
|
48 |
* New! Import folders from other plugins - import folders from FileBird, Enhanced Media Library, Wicked Folders, Real Media Library, and WP Media Folder
|
49 |
* You can also move media library files, pages, posts, or any custom post to folders without using our drag and drop feature. Whenever you select any element or select some elements in bulk, you can move it to a folder using our dropdown menu
|
50 |
* Select specific folders when you add media to your pages, posts or any other post type
|
51 |
* Drag and drop folders, change order, and hierarchy
|
52 |
* Search folder names
|
53 |
* Create more than one folder at once (separate your folders names with commas)
|
54 |
+
* Sort your folders - you can sort your folders based on the name of the folders
|
55 |
+
* Media Library folders upload progress bar - track the progress of your uploads to the media library in real-time.
|
|
|
|
|
|
|
56 |
* Bulk select images and media files and drag them to any folder. No worries, you can also drag and drop media library files one-by-one if you want :)
|
57 |
+
* Bulk select and delete folders. You can select one folder or more and delete it in the click of a button
|
58 |
+
* While adding images or any kind of file from your media library to your pages and posts, use Folders to view all your media library files based on the folder the files are assigned to
|
59 |
* Rename folders
|
60 |
* Monitor all the unassigned media library files, posts, pages, and custom posts so you can organize them easily to your folders
|
|
|
|
|
|
|
61 |
* Simultaneously assign and organize media, pages, posts, templates, and custom posts while adding them to directories
|
62 |
* Place content in multiple folders at once
|
|
|
63 |
* Resize folders menu
|
64 |
+
* Compatible with RTL admin panel (such as Hebrew, Arabic, etc.)
|
65 |
* Add and remove folders menu from pages, posts, and media
|
66 |
* Minimize the folders area if you need extra space
|
|
|
67 |
|
68 |
= FOLDERS PLUGIN PRO FEATURES 🚀 =
|
69 |
+
* <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 sub-folders :)
|
70 |
+
* Create folders for each post type - use folders with other plugins that have custom post type (e.g. Elementor templates, WooCommerce & more)
|
71 |
+
* 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.
|
72 |
+
* 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.
|
73 |
+
* Add stars to important directories
|
74 |
+
* Lock folders - locked folders stay pinned, and cannot be dragged or deleted
|
75 |
+
* Duplicate folders - duplicate an existing folder with all its content
|
76 |
+
* Sort your folders based on creation date
|
77 |
+
* Upload directly to a media library folder - you can easily upload images or any other kind of files to a specific folder
|
78 |
+
* Select a default folder for your media library, posts, pages, and custom posts - you can select the folder that will load by default when you open your media library, pages, posts, and custom posts. For example, you can show all the unassigned files whenever you open the media library
|
79 |
+
* Create media library folders directly when you upload new media files
|
80 |
+
* Sticky toolbar for the media library so you can navigate and organize your folders with ease
|
81 |
+
* Metadata details on Media Library hover - show useful metadata including title, size, type, date, dimension & more on hover
|
82 |
+
* Customize the look and feel of your folders. Change the colors, font, and size of your media folder, pages, posts, and custom posts folders
|
83 |
+
* Replace media for all file types - Replace any kind of files while uploading including PDF/SVG/DOCS/XLSX/etc
|
84 |
+
* Compare the new media library file with the old file when you replace media - compare old media library files with the new one and compare size, dimension & more
|
85 |
|
86 |
= Replace media files =
|
87 |
+
With the Folders plugin, you can replace media library files with other files. This feature is a life-saver whenever you need to replace a media file on all of your pages, posts, etc. When you replace a media file, the change will reflect on all of your pages, posts, and more. Check out the media replace feature in action:
|
88 |
[youtube https://www.youtube.com/watch?v=16MrxVo2EC4]
|
89 |
|
90 |
= Import folders =
|
92 |
|
93 |
= Here Are Some Use Cases =
|
94 |
|
95 |
+
Wondering how you can use this pages, posts, and media library folders plugin for your online business? Here’s are a few use cases:
|
96 |
|
97 |
<strong>Bloggers:</strong> Easily upload content for blogs, including text, photos, videos, and audio files. Then manage everything you upload by placing them in clearly labeled media library folders.
|
98 |
Web developers: Design websites in an organized fashion by uploading graphics, animations, site elements, and content – all packaged neatly in directories.
|
115 |
|
116 |
The plugin is compatible with Gutenberg, Elementor website builder, Divi, Visual Composer, WPbakery, Beaver Builder, and with any WordPress theme.
|
117 |
|
118 |
+
Download this plugin today for free and get unlimited folders to organize your WP content. Then unlock unlimited folders with the Pro Plan for max organization!
|
119 |
|
120 |
= Testimonials =
|
121 |
|
150 |
|
151 |
== Frequently Asked Questions ==
|
152 |
|
153 |
+
= Is there a folder limit? =
|
154 |
+
No. you can create as many folderes as you wish!
|
155 |
+
|
156 |
= Is there a time limit for the free plan? =
|
157 |
No. you can use the free plan as long as you want.
|
158 |
|
189 |
|
190 |
== Changelog ==
|
191 |
|
192 |
+
= 2.6.8 =
|
193 |
+
Unlimited folders are now available in the free version 🎉
|
194 |
+
We've also added an option to purge all plugin's data on removal + fixed some bugs
|
195 |
+
|
196 |
= 2.6.7 =
|
197 |
List view folders bulk actions bug fixed
|
198 |
|
templates/admin/admin-content.php
CHANGED
@@ -14,24 +14,23 @@ if ( ! defined( 'ABSPATH' ) ) exit;
|
|
14 |
?>
|
15 |
</style>
|
16 |
<style>
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
.add-new-folder { background-color: <?php echo esc_attr($customize_folders['new_folder_color']) ?>; border-color: <?php echo esc_attr($customize_folders['new_folder_color']) ?> }
|
21 |
-
.wcp-hide-show-buttons .toggle-buttons { background-color: <?php echo esc_attr($customize_folders['new_folder_color']) ?>; }
|
22 |
-
.folders-toggle-button span { background-color: <?php echo esc_attr($customize_folders['new_folder_color']) ?>; }
|
23 |
-
.ui-resizable-handle.ui-resizable-e:before, .ui-resizable-handle.ui-resizable-w:before {border-color: <?php echo esc_attr($customize_folders['new_folder_color']) ?>;}
|
24 |
-
<?php
|
25 |
-
}
|
26 |
-
if(isset($customize_folders['bulk_organize_button_color']) && !empty($customize_folders['bulk_organize_button_color'])) {
|
27 |
-
?>
|
28 |
-
button.button.organize-button { background-color: <?php echo esc_attr($customize_folders['bulk_organize_button_color']) ?>; border-color: <?php echo esc_attr($customize_folders['bulk_organize_button_color']) ?>; }
|
29 |
-
button.button.organize-button:hover { background-color: <?php echo esc_attr($customize_folders['bulk_organize_button_color']) ?>; border-color: <?php echo esc_attr($customize_folders['bulk_organize_button_color']) ?>; }
|
30 |
-
<?php
|
31 |
}
|
32 |
-
|
33 |
-
|
34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
body:not(.no-hover-css) #custom-scroll-menu .jstree-hovered:not(.jstree-clicked), body:not(.no-hover-css) #custom-scroll-menu .jstree-hovered:not(.jstree-clicked):hover { background: rgba(<?php echo esc_attr($rgbColor['r'].",".$rgbColor['g'].",".$rgbColor['b'].", 0.08") ?>) !important; color: #333333;}
|
36 |
body:not(.no-hover-css) #custom-scroll-menu .jstree-clicked, body:not(.no-hover-css) #custom-scroll-menu .jstree-clicked:not(.jstree-clicked):focus, #custom-scroll-menu .jstree-clicked, #custom-scroll-menu .jstree-clicked:hover { background: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; color: #ffffff !important; }
|
37 |
#custom-scroll-menu .jstree-hovered.wcp-drop-hover, #custom-scroll-menu .jstree-hovered.wcp-drop-hover:hover, #custom-scroll-menu .jstree-clicked.wcp-drop-hover, #custom-scroll-menu .jstree-clicked.wcp-drop-hover:hover, body #custom-scroll-menu *.drag-in > , body #custom-scroll-menu *.drag-in > a:hover { background: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; color: #ffffff !important; }
|
@@ -55,7 +54,6 @@ if(isset($customize_folders['folder_bg_color']) && !empty($customize_folders['fo
|
|
55 |
.ui-state-highlight { border-color: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; background: rgba(<?php echo esc_attr($rgbColor['r'].",".$rgbColor['g'].",".$rgbColor['b'].", 0.08") ?> !important;}
|
56 |
.jstree-node.drag-in > a.jstree-anchor.jstree-hovered { background-color: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; color: #ffffff; }
|
57 |
<?php
|
58 |
-
}
|
59 |
$font_family = "";
|
60 |
if(isset($customize_folders['folder_font']) && !empty($customize_folders['folder_font'])) {
|
61 |
$font_family = $customize_folders['folder_font'];
|
@@ -163,92 +161,174 @@ if(!empty($post_type)) {
|
|
163 |
<div id="folder-add-update-content">
|
164 |
<div class="folder-popup-form" id="add-update-folder">
|
165 |
<div class="popup-form-content">
|
166 |
-
<
|
167 |
-
<div
|
168 |
-
|
169 |
</div>
|
170 |
-
<
|
171 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
</div>
|
173 |
-
<
|
174 |
-
<div class="folder-
|
175 |
-
|
176 |
-
|
177 |
-
|
|
|
|
|
|
|
|
|
|
|
178 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
179 |
</div>
|
180 |
-
<div class="folder-form-
|
181 |
-
|
182 |
</div>
|
183 |
<div class="folder-form-buttons">
|
184 |
-
<a href="javascript:;" class="form-cancel-btn">
|
185 |
-
<
|
186 |
</div>
|
187 |
-
</
|
188 |
</div>
|
189 |
</div>
|
190 |
|
191 |
-
<div class="folder-popup-form" id="
|
192 |
<div class="popup-form-content">
|
193 |
-
<
|
194 |
-
<div
|
195 |
-
|
196 |
</div>
|
197 |
-
<div class="folder-
|
198 |
-
|
199 |
-
<input id="update-folder-item-name" autocomplete="off" required="required">
|
200 |
-
<span class="highlight"></span><span class="folder-bar"></span>
|
201 |
-
<label for="update-folder-item-name">Folder name</label>
|
202 |
-
</div>
|
203 |
</div>
|
204 |
-
<div class="folder-form-
|
205 |
-
|
206 |
</div>
|
207 |
<div class="folder-form-buttons">
|
208 |
<a href="javascript:;" class="form-cancel-btn">Cancel</a>
|
209 |
-
<
|
210 |
</div>
|
211 |
-
</
|
212 |
</div>
|
213 |
</div>
|
214 |
|
215 |
-
<div class="folder-popup-form" id="
|
216 |
<div class="popup-form-content">
|
217 |
-
<div class="
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
<
|
225 |
-
|
|
|
226 |
</div>
|
227 |
</div>
|
228 |
</div>
|
229 |
|
230 |
-
<div class="folder-popup-form" id="
|
231 |
<div class="popup-form-content">
|
232 |
-
<div class="
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
<
|
240 |
-
|
|
|
|
|
|
|
|
|
|
|
241 |
</div>
|
242 |
</div>
|
243 |
</div>
|
244 |
|
245 |
-
<div class="folder-popup-form" id="
|
246 |
-
<div class="popup-form-content">
|
247 |
-
<div class="add-update-folder-title" id="error-folder-popup-message">
|
248 |
|
249 |
-
|
250 |
-
<div class="
|
251 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
252 |
</div>
|
253 |
</div>
|
254 |
</div>
|
@@ -256,17 +336,22 @@ if(!empty($post_type)) {
|
|
256 |
<div class="folder-popup-form" id="bulk-move-folder">
|
257 |
<form action="" method="post" id="bulk-folder-form">
|
258 |
<div class="popup-form-content">
|
259 |
-
<div class="popup-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
<
|
264 |
-
|
265 |
-
</
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
|
|
|
|
|
|
|
|
|
|
270 |
</div>
|
271 |
</div>
|
272 |
</form>
|
14 |
?>
|
15 |
</style>
|
16 |
<style>
|
17 |
+
<?php
|
18 |
+
if(!isset($customize_folders['new_folder_color']) || empty($customize_folders['new_folder_color'])) {
|
19 |
+
$customize_folders['new_folder_color'] = "#f51366";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
}
|
21 |
+
?>
|
22 |
+
.add-new-folder { background-color: <?php echo esc_attr($customize_folders['new_folder_color']) ?>; border-color: <?php echo esc_attr($customize_folders['new_folder_color']) ?> }
|
23 |
+
.wcp-hide-show-buttons .toggle-buttons { background-color: <?php echo esc_attr($customize_folders['new_folder_color']) ?>; }
|
24 |
+
.folders-toggle-button span { background-color: <?php echo esc_attr($customize_folders['new_folder_color']) ?>; }
|
25 |
+
.ui-resizable-handle.ui-resizable-e:before, .ui-resizable-handle.ui-resizable-w:before {border-color: <?php echo esc_attr($customize_folders['new_folder_color']) ?>;}
|
26 |
+
<?php if(!isset($customize_folders['bulk_organize_button_color']) || empty($customize_folders['bulk_organize_button_color'])) {
|
27 |
+
$customize_folders['bulk_organize_button_color'] = "#f51366";
|
28 |
+
} ?>
|
29 |
+
button.button.organize-button { background-color: <?php echo esc_attr($customize_folders['bulk_organize_button_color']) ?>; border-color: <?php echo esc_attr($customize_folders['bulk_organize_button_color']) ?>; }
|
30 |
+
button.button.organize-button:hover { background-color: <?php echo esc_attr($customize_folders['bulk_organize_button_color']) ?>; border-color: <?php echo esc_attr($customize_folders['bulk_organize_button_color']) ?>; }
|
31 |
+
<?php if(!isset($customize_folders['folder_bg_color']) || empty($customize_folders['folder_bg_color'])) {
|
32 |
+
$customize_folders['folder_bg_color'] = "#f51366";
|
33 |
+
} $rgbColor = self::hexToRgb($customize_folders['folder_bg_color']); ?>
|
34 |
body:not(.no-hover-css) #custom-scroll-menu .jstree-hovered:not(.jstree-clicked), body:not(.no-hover-css) #custom-scroll-menu .jstree-hovered:not(.jstree-clicked):hover { background: rgba(<?php echo esc_attr($rgbColor['r'].",".$rgbColor['g'].",".$rgbColor['b'].", 0.08") ?>) !important; color: #333333;}
|
35 |
body:not(.no-hover-css) #custom-scroll-menu .jstree-clicked, body:not(.no-hover-css) #custom-scroll-menu .jstree-clicked:not(.jstree-clicked):focus, #custom-scroll-menu .jstree-clicked, #custom-scroll-menu .jstree-clicked:hover { background: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; color: #ffffff !important; }
|
36 |
#custom-scroll-menu .jstree-hovered.wcp-drop-hover, #custom-scroll-menu .jstree-hovered.wcp-drop-hover:hover, #custom-scroll-menu .jstree-clicked.wcp-drop-hover, #custom-scroll-menu .jstree-clicked.wcp-drop-hover:hover, body #custom-scroll-menu *.drag-in > , body #custom-scroll-menu *.drag-in > a:hover { background: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; color: #ffffff !important; }
|
54 |
.ui-state-highlight { border-color: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; background: rgba(<?php echo esc_attr($rgbColor['r'].",".$rgbColor['g'].",".$rgbColor['b'].", 0.08") ?> !important;}
|
55 |
.jstree-node.drag-in > a.jstree-anchor.jstree-hovered { background-color: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; color: #ffffff; }
|
56 |
<?php
|
|
|
57 |
$font_family = "";
|
58 |
if(isset($customize_folders['folder_font']) && !empty($customize_folders['folder_font'])) {
|
59 |
$font_family = $customize_folders['folder_font'];
|
161 |
<div id="folder-add-update-content">
|
162 |
<div class="folder-popup-form" id="add-update-folder">
|
163 |
<div class="popup-form-content">
|
164 |
+
<div class="popup-form-data">
|
165 |
+
<div class="close-popup-button">
|
166 |
+
<a class="" href="javascript:;"><span></span></a>
|
167 |
</div>
|
168 |
+
<form action="" method="post" id="save-folder-form">
|
169 |
+
<div id="add-update-folder-title" class="add-update-folder-title">
|
170 |
+
Add a new folder
|
171 |
+
</div>
|
172 |
+
<div class="add-folder-note">
|
173 |
+
Enter your folder's name (or create more than one folder by separating the name with a comma)
|
174 |
+
</div>
|
175 |
+
<div class="folder-form-input">
|
176 |
+
<div class="folder-group">
|
177 |
+
<input id="add-update-folder-name" autocomplete="off" required="required">
|
178 |
+
<span class="highlight"></span><span class="folder-bar"></span>
|
179 |
+
<label for="add-update-folder-name">Folder name</label>
|
180 |
+
</div>
|
181 |
+
</div>
|
182 |
+
<div class="folder-form-errors">
|
183 |
+
<span class="dashicons dashicons-info"></span> Please enter folder name
|
184 |
+
</div>
|
185 |
+
<div class="folder-form-buttons hide-it pro-message" id="pro-notice">
|
186 |
+
<span class="pro-tip">
|
187 |
+
Pro tip
|
188 |
+
</span>
|
189 |
+
<div class="pro-notice">
|
190 |
+
<a class="inline-button" target="_blank" href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>">Upgrade to Pro</a> to create subfolders (with 20+ amaizing features) & premium support 🎉
|
191 |
+
</div>
|
192 |
+
</div>
|
193 |
+
<div class="folder-form-buttons">
|
194 |
+
<a href="javascript:;" class="form-cancel-btn">Cancel</a>
|
195 |
+
<button type="submit" class="form-submit-btn" id="save-folder-data" style="width: 160px">Submit</button>
|
196 |
+
</div>
|
197 |
+
</form>
|
198 |
+
</div>
|
199 |
+
</div>
|
200 |
+
</div>
|
201 |
+
|
202 |
+
<div class="folder-popup-form" id="update-folder-item">
|
203 |
+
<div class="popup-form-content">
|
204 |
+
<div class="popup-form-data">
|
205 |
+
<div class="close-popup-button">
|
206 |
+
<a class="" href="javascript:;"><span></span></a>
|
207 |
</div>
|
208 |
+
<form action="" method="post" id="update-folder-form">
|
209 |
+
<div id="update-folder-title" class="add-update-folder-title">
|
210 |
+
Rename folder
|
211 |
+
</div>
|
212 |
+
<div class="folder-form-input">
|
213 |
+
<div class="folder-group">
|
214 |
+
<input id="update-folder-item-name" autocomplete="off" required="required">
|
215 |
+
<span class="highlight"></span><span class="folder-bar"></span>
|
216 |
+
<label for="update-folder-item-name">Folder name</label>
|
217 |
+
</div>
|
218 |
</div>
|
219 |
+
<div class="folder-form-errors">
|
220 |
+
<span class="dashicons dashicons-info"></span> Please enter folder name
|
221 |
+
</div>
|
222 |
+
<div class="folder-form-buttons">
|
223 |
+
<a href="javascript:;" class="form-cancel-btn">Cancel</a>
|
224 |
+
<button type="submit" class="form-submit-btn" id="update-folder-data" style="width: 160px">Submit</button>
|
225 |
+
</div>
|
226 |
+
</form>
|
227 |
+
</div>
|
228 |
+
</div>
|
229 |
+
</div>
|
230 |
+
|
231 |
+
<div class="folder-popup-form" id="confirm-remove-folder">
|
232 |
+
<div class="popup-form-content">
|
233 |
+
<div class="popup-form-data">
|
234 |
+
<div class="close-popup-button">
|
235 |
+
<a class="" href="javascript:;"><span></span></a>
|
236 |
+
</div>
|
237 |
+
<div class="add-update-folder-title" id="remove-folder-message">
|
238 |
+
Are you sure you want to delete the selected folder?
|
239 |
</div>
|
240 |
+
<div class="folder-form-message" id="remove-folder-notice">
|
241 |
+
Items in the folder will not be deleted.
|
242 |
</div>
|
243 |
<div class="folder-form-buttons">
|
244 |
+
<a href="javascript:;" class="form-cancel-btn">No, Keep it</a>
|
245 |
+
<a href="javascript:;" class="form-submit-btn" id="remove-folder-item">Yes, Delete it!</a>
|
246 |
</div>
|
247 |
+
</div>
|
248 |
</div>
|
249 |
</div>
|
250 |
|
251 |
+
<div class="folder-popup-form" id="no-more-folder-credit">
|
252 |
<div class="popup-form-content">
|
253 |
+
<div class="popup-form-data">
|
254 |
+
<div class="close-popup-button">
|
255 |
+
<a class="" href="javascript:;"><span></span></a>
|
256 |
</div>
|
257 |
+
<div class="add-update-folder-title" id="folder-limitation-message">
|
258 |
+
|
|
|
|
|
|
|
|
|
259 |
</div>
|
260 |
+
<div class="folder-form-message">
|
261 |
+
Unlock unlimited amount of folders by upgrading to one of our pro plans.
|
262 |
</div>
|
263 |
<div class="folder-form-buttons">
|
264 |
<a href="javascript:;" class="form-cancel-btn">Cancel</a>
|
265 |
+
<a href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" target="_blank" class="form-submit-btn">See Pro Plans</a>
|
266 |
</div>
|
267 |
+
</div>
|
268 |
</div>
|
269 |
</div>
|
270 |
|
271 |
+
<div class="folder-popup-form" id="error-folder-popup">
|
272 |
<div class="popup-form-content">
|
273 |
+
<div class="popup-form-data">
|
274 |
+
<div class="close-popup-button">
|
275 |
+
<a class="" href="javascript:;"><span></span></a>
|
276 |
+
</div>
|
277 |
+
<div class="add-update-folder-title" id="error-folder-popup-message">
|
278 |
+
|
279 |
+
</div>
|
280 |
+
<div class="folder-form-buttons">
|
281 |
+
<a href="javascript:;" class="form-cancel-btn">Close</a>
|
282 |
+
</div>
|
283 |
</div>
|
284 |
</div>
|
285 |
</div>
|
286 |
|
287 |
+
<div class="folder-popup-form" id="sub-folder-popup">
|
288 |
<div class="popup-form-content">
|
289 |
+
<div class="popup-form-data">
|
290 |
+
<div class="close-popup-button">
|
291 |
+
<a class="" href="javascript:;"><span></span></a>
|
292 |
+
</div>
|
293 |
+
<div class="add-update-folder-title">
|
294 |
+
Sub-folders is a pro feature
|
295 |
+
</div>
|
296 |
+
<div class="folder-form-message" style="padding: 25px 10px;" >
|
297 |
+
Hey, it looks like you want to create sub-folders on Folders. Sub-folders is a premium feature. Upgrade now to create, access and organize your files with sub-folders.
|
298 |
+
</div>
|
299 |
+
<div class="folder-form-buttons">
|
300 |
+
<a href="javascript:;" class="form-cancel-btn">Cancel</a>
|
301 |
+
<a href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" target="_blank" class="form-submit-btn">Upgrade Now</a>
|
302 |
+
</div>
|
303 |
</div>
|
304 |
</div>
|
305 |
</div>
|
306 |
|
307 |
+
<div class="folder-popup-form" id="add-sub-folder-popup">
|
|
|
|
|
308 |
|
309 |
+
<div class="popup-form-content">
|
310 |
+
<div class="popup-form-data">
|
311 |
+
<div class="close-popup-button">
|
312 |
+
<a class="" href="javascript:;"><span></span></a>
|
313 |
+
</div>
|
314 |
+
<div class="add-update-folder-title">
|
315 |
+
Add a new folder
|
316 |
+
</div>
|
317 |
+
<div class="folder-form-input">
|
318 |
+
<div class="folder-group">
|
319 |
+
<input id="update-folder-item-name" autocomplete="off" required="required" readonly>
|
320 |
+
<span class="highlight"></span><span class="folder-bar"></span>
|
321 |
+
<label for="update-folder-item-name">Folder name</label>
|
322 |
+
</div>
|
323 |
+
</div>
|
324 |
+
<div class="folder-form-buttons">
|
325 |
+
<span class="pro-tip">
|
326 |
+
Pro tip
|
327 |
+
</span>
|
328 |
+
<div class="pro-notice">
|
329 |
+
<a class="inline-button" target="_blank" href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>">Upgrade to Pro</a> to create subfolders (with 20+ amaizing features) & premium support 🎉
|
330 |
+
</div>
|
331 |
+
</div>
|
332 |
</div>
|
333 |
</div>
|
334 |
</div>
|
336 |
<div class="folder-popup-form" id="bulk-move-folder">
|
337 |
<form action="" method="post" id="bulk-folder-form">
|
338 |
<div class="popup-form-content">
|
339 |
+
<div class="popup-form-data">
|
340 |
+
<div class="close-popup-button">
|
341 |
+
<a class="" href="javascript:;"><span></span></a>
|
342 |
+
</div>
|
343 |
+
<div class="popup-folder-title">
|
344 |
+
Select Folder
|
345 |
+
</div>
|
346 |
+
<div class="select-box">
|
347 |
+
<select id="bulk-select">
|
348 |
+
<option value="">Select Folder</option>
|
349 |
+
</select>
|
350 |
+
</div>
|
351 |
+
<div class="folder-form-buttons">
|
352 |
+
<a href="javascript:;" class="form-cancel-btn">Cancel</a>
|
353 |
+
<button type="submit" class="form-submit-btn" id="move-to-folder" style="width: 200px">Move to Folder</button>
|
354 |
+
</div>
|
355 |
</div>
|
356 |
</div>
|
357 |
</form>
|
templates/admin/general-settings.php
CHANGED
@@ -1,718 +1,1365 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) ) exit;
|
3 |
-
?>
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
<
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
}
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
$(".
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
'
|
154 |
-
}
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
}
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
if($("#
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
}
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
"
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
<
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
<
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
<
|
701 |
-
|
702 |
-
|
703 |
-
|
704 |
-
|
705 |
-
|
706 |
-
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
3 |
+
?>
|
4 |
+
<!-- do not change here, Free/Pro URL Change -->
|
5 |
+
<link rel='stylesheet' href='<?php echo WCP_FOLDER_URL ?>assets/css/settings.css?ver=<?php echo WCP_FOLDER_VERSION ?>' type='text/css' media='all' />
|
6 |
+
<link rel='stylesheet' href='<?php echo WCP_FOLDER_URL ?>assets/css/folder-icon.css?ver=<?php echo WCP_FOLDER_VERSION ?>' type='text/css' media='all' />
|
7 |
+
<link rel='stylesheet' href='<?php echo WCP_FOLDER_URL ?>assets/css/spectrum.min.css?ver=<?php echo WCP_FOLDER_VERSION ?>' type='text/css' media='all' />
|
8 |
+
<?php if($setting_page == "folder-settings") { ?>
|
9 |
+
<link rel='stylesheet' href='<?php echo WCP_FOLDER_URL ?>assets/css/select2.min.css?ver=<?php echo WCP_FOLDER_VERSION ?>' type='text/css' media='all' />
|
10 |
+
<script type="text/javascript" src='<?php echo WCP_FOLDER_URL ?>assets/js/select2.min.js?ver=<?php echo WCP_FOLDER_VERSION ?>' ></script>
|
11 |
+
<?php } ?>
|
12 |
+
<script src="<?php echo WCP_FOLDER_URL ?>assets/js/spectrum.min.js"></script>
|
13 |
+
<style>
|
14 |
+
<?php if ( function_exists( 'is_rtl' ) && is_rtl() ) { ?>
|
15 |
+
#setting-form {
|
16 |
+
float: right;
|
17 |
+
}
|
18 |
+
<?php } ?>
|
19 |
+
</style>
|
20 |
+
<script>
|
21 |
+
(function (factory) {
|
22 |
+
"use strict";
|
23 |
+
if (typeof define === 'function' && define.amd) {
|
24 |
+
define(['jquery'], factory);
|
25 |
+
}
|
26 |
+
else if(typeof module !== 'undefined' && module.exports) {
|
27 |
+
module.exports = factory(require('jquery'));
|
28 |
+
}
|
29 |
+
else {
|
30 |
+
factory(jQuery);
|
31 |
+
}
|
32 |
+
}(function ($, undefined) {
|
33 |
+
var selectedItem;
|
34 |
+
var importTitle = "<?php esc_html_e("Import folders from %plugin%", "folders"); ?>";
|
35 |
+
var importDesc = "<?php esc_html_e("Are you sure you'd like to import %d folders from %plugin%?", "folders"); ?>";
|
36 |
+
var removeTitle = "<?php esc_html_e("Are you sure?", "folders"); ?>";
|
37 |
+
var removeDesc = "<?php esc_html_e("You're about to delete %plugin%'s folders. Are you sure you'd like to proceed?", "folders"); ?>";
|
38 |
+
$(document).ready(function(){
|
39 |
+
<?php if($setting_page == "folder-settings") { ?>
|
40 |
+
$(".select2-box").select2();
|
41 |
+
<?php } ?>
|
42 |
+
$(document).on("click",".form-cancel-btn, .close-popup-button, .folder-popup-form",function(){
|
43 |
+
if($(this).hasClass("cancel-folders") || $(this).hasClass("remove-folders-box") || $(this).hasClass("close-remove-folders")) {
|
44 |
+
$("#remove_folders_when_removed").prop("checked", false);
|
45 |
+
setFoldersRemoveStatus("off");
|
46 |
+
}
|
47 |
+
if($(this).hasClass("delete-button")) {
|
48 |
+
setFoldersRemoveStatus("on");
|
49 |
+
}
|
50 |
+
$(".folder-popup-form").hide();
|
51 |
+
});
|
52 |
+
$(document).on("click",".import-folders-button", function(e){
|
53 |
+
$("#import-folders-popup").show();
|
54 |
+
});
|
55 |
+
$(document).on("click",".popup-form-content", function(e){
|
56 |
+
e.stopPropagation();
|
57 |
+
e.stopImmediatePropagation();
|
58 |
+
});
|
59 |
+
$(document).on("click",".folder-select",function(){
|
60 |
+
if($(this).is(":checked")) {
|
61 |
+
$(this).closest("tr").find(".hide-show-option").removeClass("hide-option");
|
62 |
+
} else {
|
63 |
+
$(this).closest("tr").find(".hide-show-option").addClass("hide-option");
|
64 |
+
}
|
65 |
+
});
|
66 |
+
$(document).on("click", ".accordion-header", function(){
|
67 |
+
if($(this).hasClass("active")) {
|
68 |
+
$(this).closest(".accordion").find(".accordion-content").slideUp();
|
69 |
+
$(this).removeClass("active");
|
70 |
+
} else {
|
71 |
+
$(this).closest(".accordion").find(".accordion-content").slideDown();
|
72 |
+
$(this).addClass("active");
|
73 |
+
}
|
74 |
+
});
|
75 |
+
$(document).on("change", ".hide-show-option", function(){
|
76 |
+
if($(this).val() == "folders-pro") {
|
77 |
+
$(this).find("option").prop("selected", false);
|
78 |
+
$(this).find("option:first").prop("selected", true);
|
79 |
+
window.open("<?php echo esc_url($this->getFoldersUpgradeURL()) ?>", "_blank");
|
80 |
+
}
|
81 |
+
});
|
82 |
+
$(document).on("change", "#folder_font", function(){
|
83 |
+
if($(this).val() == "folders-pro") {
|
84 |
+
$(this).val("").trigger("change");
|
85 |
+
window.open("<?php echo esc_url($this->getFoldersUpgradeURL()) ?>", "_blank");
|
86 |
+
}
|
87 |
+
});
|
88 |
+
$(document).on("change", "#folder_size", function(){
|
89 |
+
if($(this).val() == "folders-pro" || $(this).val() == "folders-pro-item") {
|
90 |
+
$(this).val("16").trigger("change");
|
91 |
+
window.open("<?php echo esc_url($this->getFoldersUpgradeURL()) ?>", "_blank");
|
92 |
+
}
|
93 |
+
});
|
94 |
+
$(".accordion-header:first").trigger("click");
|
95 |
+
$("#folder_font, #folder_size").change(function(){
|
96 |
+
setCSSProperties();
|
97 |
+
});
|
98 |
+
$(document).on("click", "input[name='customize_folders[show_media_details]']", function(){
|
99 |
+
if($("#show_media_details").is(":checked")) {
|
100 |
+
$(".media-setting-box").addClass("active");
|
101 |
+
} else {
|
102 |
+
$(".media-setting-box").removeClass("active");
|
103 |
+
}
|
104 |
+
});
|
105 |
+
setCSSProperties();
|
106 |
+
$('.color-field').spectrum({
|
107 |
+
chooseText: "Submit",
|
108 |
+
preferredFormat: "hex",
|
109 |
+
showInput: true,
|
110 |
+
cancelText: "Cancel",
|
111 |
+
move: function (color) {
|
112 |
+
$(this).val(color.toHexString());
|
113 |
+
setCSSProperties();
|
114 |
+
},
|
115 |
+
change: function (color) {
|
116 |
+
$(this).val(color.toHexString());
|
117 |
+
setCSSProperties();
|
118 |
+
}
|
119 |
+
});
|
120 |
+
$(document).on("click", "input[name='customize_folders[remove_folders_when_removed]']", function(e){
|
121 |
+
if($(this).is(":checked")) {
|
122 |
+
$("#remove-folders-data-box").show();
|
123 |
+
//setFoldersRemoveStatus("on");
|
124 |
+
} else {
|
125 |
+
setFoldersRemoveStatus("off");
|
126 |
+
}
|
127 |
+
})
|
128 |
+
$(document).on("click", ".import-folder-data", function(e){
|
129 |
+
selectedItem = $(this).closest("tr").data("plugin");
|
130 |
+
if(!$(this).hasClass("in-popup")) {
|
131 |
+
var pluginName = $(this).closest("tr").find(".plugin-name").html();
|
132 |
+
var pluginFolders = parseInt($(this).closest("tr").data("folders"));
|
133 |
+
var popupTitle = importTitle.replace("%plugin%", pluginName);
|
134 |
+
$(".import-folder-title").html(popupTitle);
|
135 |
+
var popupDesc = importDesc.replace("%plugin%", "<b>" + pluginName + "</b>");
|
136 |
+
popupDesc = popupDesc.replace("%d", "<b>" + pluginFolders + "</b>");
|
137 |
+
$(".import-folder-note").html(popupDesc);
|
138 |
+
$("#import-plugin-data").show();
|
139 |
+
} else {
|
140 |
+
importPluginData();
|
141 |
+
}
|
142 |
+
});
|
143 |
+
$(document).on("click", ".remove-folders-data", function(e){
|
144 |
+
e.preventDefault();
|
145 |
+
$("#remove-confirmation-box").show();
|
146 |
+
$("#delete-input").focus();
|
147 |
+
});
|
148 |
+
$(document).on("keyup", "#delete-input", function(){
|
149 |
+
if($.trim($(this).val()) != "") {
|
150 |
+
var inputVal = $.trim($(this).val()).toLowerCase();
|
151 |
+
if (inputVal == "delete") {
|
152 |
+
$("#remove-folders-data-button").prop("disabled", false);
|
153 |
+
$(".delete-confirmation-message").html("<?php esc_html_e('This will delete all existing folders & settings', WCP_FOLDER); ?>");
|
154 |
+
} else {
|
155 |
+
$("#remove-folders-data-button").prop("disabled", true);
|
156 |
+
if (inputVal != "") {
|
157 |
+
var textLen = inputVal.length;
|
158 |
+
var curStr = ("delete").substring(0, textLen);
|
159 |
+
if (curStr != inputVal) {
|
160 |
+
$(".delete-confirmation-message").html("<?php esc_html_e('Please type DELETE and click on the "Delete" button to confirm', WCP_FOLDER); ?>");
|
161 |
+
} else {
|
162 |
+
$(".delete-confirmation-message").html("");
|
163 |
+
}
|
164 |
+
} else {
|
165 |
+
$(".delete-confirmation-message").html("");
|
166 |
+
}
|
167 |
+
}
|
168 |
+
} else {
|
169 |
+
$(".delete-confirmation-message").html("");
|
170 |
+
}
|
171 |
+
});
|
172 |
+
$(document).on("submit", "#remove_folders_data", function(e){
|
173 |
+
e.preventDefault();
|
174 |
+
if($.trim($("#delete-input").val()).toLowerCase() == "delete") {
|
175 |
+
$.ajax({
|
176 |
+
url: "<?php echo admin_url("admin-ajax.php") ?>",
|
177 |
+
data: {
|
178 |
+
action: 'wcp_remove_all_folders_data',
|
179 |
+
nonce: $("#remove-folder-nonce").val()
|
180 |
+
},
|
181 |
+
type: 'post',
|
182 |
+
success: function(res) {
|
183 |
+
<?php
|
184 |
+
$redirectURL = $this->getFolderSettingsURL();
|
185 |
+
if(!empty($redirectURL)) {
|
186 |
+
$page = isset($_POST['tab_page'])?$_POST['tab_page']:"";
|
187 |
+
$type = filter_input(INPUT_GET, 'setting_page', FILTER_SANITIZE_STRING);
|
188 |
+
$type = empty($type)?"":"&setting_page=".$type;
|
189 |
+
$redirectURL = $redirectURL.$type;
|
190 |
+
if(!empty($page)) {
|
191 |
+
$redirectURL .= "&setting_page=".$page;
|
192 |
+
}
|
193 |
+
}
|
194 |
+
$redirectURL = $redirectURL."¬e=2";
|
195 |
+
?>
|
196 |
+
window.location = "<?php echo $redirectURL ?>";
|
197 |
+
}
|
198 |
+
});
|
199 |
+
}
|
200 |
+
return false;
|
201 |
+
});
|
202 |
+
$(document).on("change", "#delete-input", function(){
|
203 |
+
if($.trim($(this).val()).toLowerCase() == "delete") {
|
204 |
+
$("#remove-folders-data-button").prop("disabled", false);
|
205 |
+
} else {
|
206 |
+
$("#remove-folders-data-button").prop("disabled", true);
|
207 |
+
}
|
208 |
+
});
|
209 |
+
/*$(document).on("click", "#remove-folders-data-button", function(e){
|
210 |
+
e.preventDefault();
|
211 |
+
$(".folder-popup-form").hide();
|
212 |
+
$("#remove-confirmation-box").show();
|
213 |
+
});*/
|
214 |
+
$(document).on("click", "#import-folder-button", function(e){
|
215 |
+
importPluginData();
|
216 |
+
});
|
217 |
+
$(document).on("click", ".remove-folder-data", function(e){
|
218 |
+
selectedItem = $(this).closest("tr").data("plugin");
|
219 |
+
var pluginName = $(this).closest("tr").find(".plugin-name").html();
|
220 |
+
var pluginFolders = parseInt($(this).closest("tr").data("folders"));
|
221 |
+
var popupTitle = removeTitle.replace("%plugin%", pluginName);
|
222 |
+
$(".remove-folder-title").html(popupTitle);
|
223 |
+
var popupDesc = removeDesc.replace("%plugin%", "<b>" + pluginName + "</b>");
|
224 |
+
popupDesc = popupDesc.replace("%d", "<b>" + pluginFolders + "</b>");
|
225 |
+
$(".remove-folder-note").html(popupDesc);
|
226 |
+
$("#remove-plugin-data").show();
|
227 |
+
});
|
228 |
+
$(document).on("click", "#remove-folder-button", function(){
|
229 |
+
removePluginData();
|
230 |
+
});
|
231 |
+
setTooltipPosition();
|
232 |
+
|
233 |
+
$(document).on("click", ".checkbox-color", function(){
|
234 |
+
setCSSProperties();
|
235 |
+
});
|
236 |
+
|
237 |
+
$(document).on("change", ".checkbox-color", function(){
|
238 |
+
setCSSProperties();
|
239 |
+
});
|
240 |
+
});
|
241 |
+
|
242 |
+
function setFoldersRemoveStatus(status) {
|
243 |
+
$.ajax({
|
244 |
+
url: "<?php echo admin_url("admin-ajax.php") ?>",
|
245 |
+
data: {
|
246 |
+
'action': 'wcp_update_folders_uninstall_status',
|
247 |
+
'status': status,
|
248 |
+
'nonce': "<?php echo wp_create_nonce("wcp_folders_uninstall_status") ?>"
|
249 |
+
},
|
250 |
+
type: 'post',
|
251 |
+
success: function (res) {
|
252 |
+
|
253 |
+
}
|
254 |
+
});
|
255 |
+
}
|
256 |
+
|
257 |
+
function importPluginData() {
|
258 |
+
$("#import-folder-button").addClass("button");
|
259 |
+
$("#import-folder-button").prop("disabled", true);
|
260 |
+
$(".other-plugins-"+selectedItem+" .import-folder-data").prop("disabled", true);
|
261 |
+
$(".other-plugins-"+selectedItem+" .import-folder-data .spinner").addClass("active");
|
262 |
+
$.ajax({
|
263 |
+
url: "<?php echo admin_url("admin-ajax.php") ?>",
|
264 |
+
data: {
|
265 |
+
'plugin': $(".other-plugins-"+selectedItem).data("plugin"),
|
266 |
+
'nonce': $(".other-plugins-"+selectedItem).data("nonce"),
|
267 |
+
'action': 'wcp_import_plugin_folders_data'
|
268 |
+
},
|
269 |
+
type: 'post',
|
270 |
+
success: function(res){
|
271 |
+
var response = $.parseJSON(res);
|
272 |
+
if(response.status == -1) {
|
273 |
+
$(".other-plugins-"+selectedItem+" .import-folder-data").prop("disabled", false);
|
274 |
+
$(".other-plugins-"+selectedItem+" .import-folder-data .spinner").removeClass("active");
|
275 |
+
$("#import-third-party-plugin-data").hide();
|
276 |
+
$("#no-more-folder-credit").show();
|
277 |
+
$("#import-folder-button").removeClass("button");
|
278 |
+
$("#import-folder-button").prop("disabled", false);
|
279 |
+
} else if(response.status) {
|
280 |
+
$(".other-plugins-"+response.data.plugin+" .import-message").html(response.message).addClass("success-import");
|
281 |
+
$(".other-plugins-"+response.data.plugin+" .import-folder-data").remove();
|
282 |
+
} else {
|
283 |
+
$(".other-plugins-"+response.data.plugin+" .import-message").html(response.message).addClass("error-import");
|
284 |
+
$(".other-plugins-"+response.data.plugin+" .import-folder-data").remove();
|
285 |
+
}
|
286 |
+
$("#import-folder-button").prop("disabled", false);
|
287 |
+
$("#import-plugin-data").hide();
|
288 |
+
}
|
289 |
+
});
|
290 |
+
}
|
291 |
+
|
292 |
+
function removePluginData() {
|
293 |
+
$(".other-plugins-"+selectedItem+" .remove-folder-data .spinner").addClass("active");
|
294 |
+
$.ajax({
|
295 |
+
url: "<?php echo admin_url("admin-ajax.php") ?>",
|
296 |
+
data: {
|
297 |
+
'plugin': $(".other-plugins-"+selectedItem).data("plugin"),
|
298 |
+
'nonce': $(".other-plugins-"+selectedItem).data("nonce"),
|
299 |
+
'action': 'wcp_remove_plugin_folders_data'
|
300 |
+
},
|
301 |
+
type: 'post',
|
302 |
+
success: function(res){
|
303 |
+
var response = $.parseJSON(res);
|
304 |
+
$("#remove-plugin-data").hide();
|
305 |
+
if(response.status) {
|
306 |
+
$(".other-plugins-"+response.data.plugin).remove();
|
307 |
+
} else {
|
308 |
+
$(".other-plugins-"+response.data.plugin+" .import-message").html(response.message).addClass("error-import");
|
309 |
+
$(".other-plugins-"+response.data.plugin+" .remove-folder-data .spinner").removeClass("active");
|
310 |
+
}
|
311 |
+
|
312 |
+
if($("#import-folders-popup .plugin-import-table tr").length == 0) {
|
313 |
+
$("#import-folders-popup").hide();
|
314 |
+
$(".has-other-plugins").remove();
|
315 |
+
$(".no-more-plugins").addClass("active");
|
316 |
+
}
|
317 |
+
}
|
318 |
+
});
|
319 |
+
}
|
320 |
+
|
321 |
+
function setCSSProperties() {
|
322 |
+
if(jQuery("#new_folder_color").length && $("#new_folder_color").val() != "") {
|
323 |
+
$("#add-new-folder").css("border-color", $("#new_folder_color").val());
|
324 |
+
$("#add-new-folder").css("background-color", $("#new_folder_color").val());
|
325 |
+
} else if ($("input[name='customize_folders[new_folder_color]']:checked").length) {
|
326 |
+
$("#add-new-folder").css("border-color", $("input[name='customize_folders[new_folder_color]']:checked").val());
|
327 |
+
$("#add-new-folder").css("background-color", $("input[name='customize_folders[new_folder_color]']:checked").val());
|
328 |
+
}
|
329 |
+
|
330 |
+
if($("#bulk_organize_button_color").length && $("#bulk_organize_button_color").val() != "") {
|
331 |
+
$(".organize-button").css("border-color", $("#bulk_organize_button_color").val());
|
332 |
+
$(".organize-button").css("background-color", $("#bulk_organize_button_color").val());
|
333 |
+
$(".organize-button").css("color", "#ffffff");
|
334 |
+
} else if ($("input[name='customize_folders[bulk_organize_button_color]']:checked").length) {
|
335 |
+
$(".organize-button").css("border-color", $("input[name='customize_folders[bulk_organize_button_color]']:checked").val());
|
336 |
+
$(".organize-button").css("background-color", $("input[name='customize_folders[bulk_organize_button_color]']:checked").val());
|
337 |
+
$(".organize-button").css("color", "#ffffff");
|
338 |
+
}
|
339 |
+
|
340 |
+
if($("#dropdown_color").length && $("#dropdown_color").val() != "") {
|
341 |
+
$(".media-select").css("border-color", $("#dropdown_color").val());
|
342 |
+
$(".media-select").css("color", $("#dropdown_color").val());
|
343 |
+
} else if ($("input[name='customize_folders[dropdown_color]']:checked").length) {
|
344 |
+
$(".media-select").css("border-color", $("input[name='customize_folders[dropdown_color]']:checked").val());
|
345 |
+
$(".media-select").css("color", $("input[name='customize_folders[dropdown_color]']:checked").val());
|
346 |
+
}
|
347 |
+
|
348 |
+
if($("#folder_bg_color").length && $("#folder_bg_color").val() != "") {
|
349 |
+
$(".all-posts.active-item-link").css("border-color", $("#folder_bg_color").val());
|
350 |
+
$(".all-posts.active-item-link").css("background-color", $("#folder_bg_color").val());
|
351 |
+
$(".all-posts.active-item-link").css("color", "#ffffff");
|
352 |
+
} else if ($("input[name='customize_folders[folder_bg_color]']:checked").length) {
|
353 |
+
$(".all-posts.active-item-link").css("border-color", $("input[name='customize_folders[folder_bg_color]']:checked").val());
|
354 |
+
$(".all-posts.active-item-link").css("background-color", $("input[name='customize_folders[folder_bg_color]']:checked").val());
|
355 |
+
$(".all-posts.active-item-link").css("color", "#ffffff");
|
356 |
+
}
|
357 |
+
|
358 |
+
$("#custom-css").html("");
|
359 |
+
if($("#folder_font").val() != "") {
|
360 |
+
font_val = $("#folder_font").val();
|
361 |
+
$('head').append('<link href="https://fonts.googleapis.com/css?family=' + font_val + ':400,600,700" rel="stylesheet" type="text/css" class="chaty-google-font">');
|
362 |
+
$('.preview-box').css('font-family', font_val);
|
363 |
+
} else {
|
364 |
+
$('.preview-box').css('style', "");
|
365 |
+
}
|
366 |
+
if($("#folder_size").val() != "") {
|
367 |
+
$(".folder-list li a span, .header-posts a, .un-categorised-items a").css("font-size", $("#folder_size").val()+"px");
|
368 |
+
} else {
|
369 |
+
$(".folder-list li a span, .header-posts a, .un-categorised-items a").css("font-size", "14px");
|
370 |
+
}
|
371 |
+
}
|
372 |
+
|
373 |
+
$(window).on("scroll", function(){
|
374 |
+
setTooltipPosition();
|
375 |
+
}).on("resize", function(){
|
376 |
+
setTooltipPosition();
|
377 |
+
});
|
378 |
+
|
379 |
+
function setTooltipPosition() {
|
380 |
+
if($(".html-tooltip:not(.no-position)").length) {
|
381 |
+
$(".html-tooltip:not(.no-position)").each(function(){
|
382 |
+
if($(this).offset().top - $(window).scrollTop() > 540) {
|
383 |
+
$(this).addClass("top").removeClass("side").removeClass("bottom");
|
384 |
+
$(this).find(".tooltip-text").attr("style","");
|
385 |
+
$(this).find(".tooltip-text").removeClass("hide-arrow");
|
386 |
+
} else if($(window).height() - ($(this).offset().top - $(window).scrollTop()) > 460) {
|
387 |
+
$(this).addClass("bottom").removeClass("top").removeClass("side");
|
388 |
+
$(this).find(".tooltip-text").attr("style","");
|
389 |
+
$(this).find(".tooltip-text").removeClass("hide-arrow");
|
390 |
+
} else {
|
391 |
+
$(this).addClass("side").removeClass("top").removeClass("bottom");
|
392 |
+
if($(this).find(".tooltip-text").length) {
|
393 |
+
$(this).find(".tooltip-text").attr("style","");
|
394 |
+
$(this).find(".tooltip-text").removeClass("hide-arrow");
|
395 |
+
|
396 |
+
if($(this).find(".tooltip-text").offset().top - $(window).scrollTop() - 50 < 0) {
|
397 |
+
$(this).find(".tooltip-text").css("margin-top", Math.abs($(this).find(".tooltip-text").offset().top - $(window).scrollTop() - 50)+"px");
|
398 |
+
$(this).find(".tooltip-text").addClass("hide-arrow");
|
399 |
+
} else {
|
400 |
+
$(this).find(".tooltip-text").attr("style","");
|
401 |
+
if(($(this).find(".tooltip-text").offset().top + parseInt($(this).find(".tooltip-text").outerHeight()) - $(window).scrollTop() - $(window).height()) > 0) {
|
402 |
+
$(this).find(".tooltip-text").css("margin-top", ((-1)*Math.abs($(this).find(".tooltip-text").offset().top + parseInt($(this).find(".tooltip-text").outerHeight()) - $(window).scrollTop() - $(window).height()) - 10)+"px");
|
403 |
+
$(this).find(".tooltip-text").addClass("hide-arrow");
|
404 |
+
}
|
405 |
+
}
|
406 |
+
}
|
407 |
+
}
|
408 |
+
});
|
409 |
+
}
|
410 |
+
}
|
411 |
+
}));
|
412 |
+
</script>
|
413 |
+
<div id="custom-css">
|
414 |
+
|
415 |
+
</div>
|
416 |
+
<div class="wrap">
|
417 |
+
<h1><?php esc_html_e( 'Folders Settings', WCP_FOLDER ); ?></h1>
|
418 |
+
<?php
|
419 |
+
settings_fields('folders_settings');
|
420 |
+
settings_fields('default_folders');
|
421 |
+
settings_fields('customize_folders');
|
422 |
+
$options = get_option('folders_settings');
|
423 |
+
$default_folders = get_option('default_folders');
|
424 |
+
$customize_folders = get_option('customize_folders');
|
425 |
+
$default_folders = (empty($default_folders) || !is_array($default_folders))?array():$default_folders;
|
426 |
+
do_settings_sections( __FILE__ );
|
427 |
+
?>
|
428 |
+
<?php if(isset($_GET['note']) && $_GET['note'] == 1) { ?>
|
429 |
+
<div class="folder-notification notice notice-success is-dismissible">
|
430 |
+
<div class="folder-notification-title"><?php esc_html_e("Changes Saved", "folders") ?></div>
|
431 |
+
<div class="folder-notification-note"><?php esc_html_e("Your changes have been saved.", "folders") ?></div>
|
432 |
+
</div>
|
433 |
+
<?php } if(isset($_GET['note']) && $_GET['note'] == 2) {?>
|
434 |
+
<div class="folder-notification notice notice-error is-dismissible">
|
435 |
+
<div class="folder-notification-title"><?php esc_html_e("Folders Deleted", "folders") ?></div>
|
436 |
+
<div class="folder-notification-note"><?php esc_html_e("All folders has been successfully deleted.", "folders") ?></div>
|
437 |
+
</div>
|
438 |
+
<?php } ?>
|
439 |
+
<?php if($setting_page!="license-key") { ?>
|
440 |
+
<form action="options.php" method="post" id="setting-form">
|
441 |
+
<input type="hidden" name="tab_page" value="<?php echo esc_attr($setting_page) ?>">
|
442 |
+
<?php } ?>
|
443 |
+
<div class="folders-tabs">
|
444 |
+
<div class="folder-tab-menu">
|
445 |
+
<ul>
|
446 |
+
<li><a class="<?php echo esc_attr(($setting_page=="folder-settings")?"active":"") ?>" href="<?php echo esc_url($settingURL."&setting_page=folder-settings") ?>"><?php esc_html_e( 'Folders Settings', WCP_FOLDER ); ?></a></li>
|
447 |
+
<li><a class="<?php echo esc_attr(($setting_page=="customize-folders")?"active":"") ?>" href="<?php echo esc_url($settingURL."&setting_page=customize-folders") ?>"><?php esc_html_e( 'Customize Folders', WCP_FOLDER ); ?></a></li>
|
448 |
+
<li><a class="<?php echo esc_attr(($setting_page=="folders-import")?"active":"") ?>" href="<?php echo esc_url($settingURL."&setting_page=folders-import") ?>"><?php esc_html_e( 'Tools', WCP_FOLDER ); ?></a></li>
|
449 |
+
<?php if($isInSettings) { ?>
|
450 |
+
<li><a class="<?php echo esc_attr(($setting_page=="upgrade-to-pro")?"active":"") ?>" href="<?php echo esc_url($settingURL."&setting_page=upgrade-to-pro") ?>"><?php esc_html_e( 'Upgrade to Pro', WCP_FOLDER ); ?></a></li>
|
451 |
+
<?php } ?>
|
452 |
+
</ul>
|
453 |
+
</div>
|
454 |
+
<div class="folder-tab-content">
|
455 |
+
<div class="tab-content <?php echo esc_attr(($setting_page=="folder-settings")?"active":"") ?>" id="folder-settings">
|
456 |
+
<div class="accordion-content no-bp">
|
457 |
+
<div class="accordion-left">
|
458 |
+
<table class="form-table">
|
459 |
+
<tboby>
|
460 |
+
<?php
|
461 |
+
$post_types = get_post_types( array( ), 'objects' );
|
462 |
+
$post_array = array("page", "post", "attachment");
|
463 |
+
foreach ( $post_types as $post_type ) : ?>
|
464 |
+
<?php
|
465 |
+
if ( ! $post_type->show_ui) continue;
|
466 |
+
$is_checked = !in_array( $post_type->name, $options )?"hide-option":"";
|
467 |
+
$selected_id = (isset($default_folders[$post_type->name]))?$default_folders[$post_type->name]:"all";
|
468 |
+
$is_exists = WCP_Folders::check_for_setting($post_type->name, "default_folders");
|
469 |
+
$is_customized = WCP_Folders::check_for_setting($post_type->name, "folders_settings");
|
470 |
+
if(in_array($post_type->name, $post_array) || $is_customized === true){
|
471 |
+
?>
|
472 |
+
<tr>
|
473 |
+
<td class="no-padding">
|
474 |
+
<label label for="folders_<?php echo esc_attr($post_type->name); ?>" class="custom-checkbox">
|
475 |
+
<input type="checkbox" class="folder-select sr-only" id="folders_<?php echo esc_attr($post_type->name); ?>" name="folders_settings[]" value="<?php echo esc_attr($post_type->name); ?>"<?php if ( in_array( $post_type->name, $options ) ) echo ' checked="checked"'; ?>/>
|
476 |
+
<span></span>
|
477 |
+
</label>
|
478 |
+
</td>
|
479 |
+
<td class="" width="260px">
|
480 |
+
<label for="folders_<?php echo esc_attr($post_type->name); ?>" ><?php esc_html_e( 'Use Folders with: ', WCP_FOLDER )." ".esc_html_e($post_type->label); ?></label>
|
481 |
+
</td>
|
482 |
+
<td class="default-folder">
|
483 |
+
<label class="hide-show-option <?php echo esc_attr($is_checked) ?>" for="folders_for_<?php echo esc_attr($post_type->name); ?>" ><?php esc_html_e( 'Default folder: ', WCP_FOLDER ) ?></label>
|
484 |
+
</td>
|
485 |
+
<td>
|
486 |
+
<select class="hide-show-option <?php echo esc_attr($is_checked) ?>" id="folders_for_<?php echo esc_attr($post_type->name); ?>" name="default_folders[<?php echo esc_attr($post_type->name); ?>]" ?>
|
487 |
+
<option value="">All <?php echo esc_attr($post_type->label) ?> Folder</option>
|
488 |
+
<option value="-1" <?php echo ($selected_id == -1)?"selected":"" ?>>Unassigned <?php echo esc_attr($post_type->label) ?></option>
|
489 |
+
<?php
|
490 |
+
if(isset($terms_data[$post_type->name]) && !empty($terms_data[$post_type->name])) {
|
491 |
+
foreach ($terms_data[$post_type->name] as $term) {
|
492 |
+
if(empty($is_exists) || $is_exists === false) {
|
493 |
+
echo "<option class='pro-select-item' value='folders-pro'>" . esc_attr( $term->name ). " (Pro) 🔑</option>";
|
494 |
+
} else {
|
495 |
+
$selected = ( $selected_id == $term->slug ) ? "selected" : "";
|
496 |
+
echo "<option " . esc_attr( $selected ) . " value='" . esc_attr( $term->slug ) . "'>" . esc_attr( $term->name ) . "</option>";
|
497 |
+
}
|
498 |
+
}
|
499 |
+
} ?>
|
500 |
+
</select>
|
501 |
+
</td>
|
502 |
+
</tr>
|
503 |
+
<?php
|
504 |
+
} else {
|
505 |
+
$show_media_details = "off";
|
506 |
+
?>
|
507 |
+
<tr>
|
508 |
+
<td style="padding: 15px 10px 15px 0px" colspan="4">
|
509 |
+
<a class="upgrade-box-link" target="_blank" href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" >
|
510 |
+
<label for="" class="custom-checkbox send-user-to-pro">
|
511 |
+
<input disabled type="checkbox" class="sr-only" name="customize_folders[show_media_details]" id="show_media_details" value="on" <?php checked($show_media_details, "on") ?>>
|
512 |
+
<span></span>
|
513 |
+
</label>
|
514 |
+
<label for="" class="send-user-to-pro">
|
515 |
+
<?php esc_html_e( 'Use Folders with: ', WCP_FOLDER )." ".esc_html_e($post_type->label); ?>
|
516 |
+
<button type="button" class="upgrade-link" ><?php esc_html_e("Upgrade to Pro", WCP_FOLDER) ?></button>
|
517 |
+
</label>
|
518 |
+
</a>
|
519 |
+
</td>
|
520 |
+
</tr>
|
521 |
+
<?php }
|
522 |
+
endforeach; ?>
|
523 |
+
<?php
|
524 |
+
$show_in_page = !isset($customize_folders['folders_enable_replace_media'])?"yes":$customize_folders['folders_enable_replace_media'];
|
525 |
+
?>
|
526 |
+
<tr>
|
527 |
+
<td class="no-padding">
|
528 |
+
<input type="hidden" name="customize_folders[folders_enable_replace_media]" value="no">
|
529 |
+
<label for="folders_enable_replace_media" class="custom-checkbox">
|
530 |
+
<input id="folders_enable_replace_media" class="sr-only" <?php checked($show_in_page, "yes") ?> type="checkbox" name="customize_folders[folders_enable_replace_media]" value="yes">
|
531 |
+
<span></span>
|
532 |
+
</label>
|
533 |
+
</td>
|
534 |
+
<td colspan="3">
|
535 |
+
<label for="folders_enable_replace_media" ><?php esc_html_e( 'Enable Replace Media', WCP_FOLDER ); ?> <span class="folder-tooltip" data-title="<?php esc_html_e("The Replace Media feature will allow you to replace your media files throughout your website with the click of a button, which means the file will be replaced for all your posts, pages, etc ", "folders") ?>"><span class="dashicons dashicons-editor-help"></span></span></label>
|
536 |
+
</td>
|
537 |
+
</tr>
|
538 |
+
<?php
|
539 |
+
$show_in_page = !isset($customize_folders['show_folder_in_settings'])?"no":$customize_folders['show_folder_in_settings'];
|
540 |
+
?>
|
541 |
+
<tr>
|
542 |
+
<td class="no-padding">
|
543 |
+
<input type="hidden" name="customize_folders[show_folder_in_settings]" value="no">
|
544 |
+
<label for="show_folder_in_settings" class="custom-checkbox">
|
545 |
+
<input id="show_folder_in_settings" class="sr-only" <?php checked($show_in_page, "yes") ?> type="checkbox" name="customize_folders[show_folder_in_settings]" value="yes">
|
546 |
+
<span></span>
|
547 |
+
</label>
|
548 |
+
</td>
|
549 |
+
<td colspan="3">
|
550 |
+
<label for="show_folder_in_settings" ><?php esc_html_e( 'Place the Folders settings page nested under "Settings"', WCP_FOLDER ); ?></label>
|
551 |
+
</td>
|
552 |
+
</tr>
|
553 |
+
<?php $val = get_option("folders_show_in_menu"); ?>
|
554 |
+
<input type="hidden" name="folders_show_in_menu" value="off" />
|
555 |
+
<tr>
|
556 |
+
<td width="20" class="no-padding">
|
557 |
+
<label for="folders_show_in_menu" class="custom-checkbox">
|
558 |
+
<input class="sr-only" type="checkbox" id="folders_show_in_menu" name="folders_show_in_menu" value="on" <?php checked($val, "on") ?>/>
|
559 |
+
<span></span>
|
560 |
+
</label>
|
561 |
+
</td>
|
562 |
+
<td colspan="3">
|
563 |
+
<label for="folders_show_in_menu" ><?php esc_html_e( 'Show the folders also in WordPress menu', WCP_FOLDER ); ?></label>
|
564 |
+
</td>
|
565 |
+
</tr>
|
566 |
+
<!-- Do not make changes here, Only for Free -->
|
567 |
+
<tr>
|
568 |
+
<td style="padding: 15px 10px 15px 0px" colspan="4">
|
569 |
+
<input type="hidden" name="folders_settings1" value="folders">
|
570 |
+
<?php
|
571 |
+
$show_media_details = !isset($customize_folders['show_media_details'])?"on":$customize_folders['show_media_details'];
|
572 |
+
$show_media_details = "off";
|
573 |
+
?>
|
574 |
+
<a class="upgrade-box-link" target="_blank" href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" >
|
575 |
+
<label for="" class="custom-checkbox send-user-to-pro">
|
576 |
+
<input disabled type="checkbox" class="sr-only" name="customize_folders[show_media_details]" id="show_media_details" value="on" <?php checked($show_media_details, "on") ?>>
|
577 |
+
<span></span>
|
578 |
+
</label>
|
579 |
+
<label for="" class="send-user-to-pro">
|
580 |
+
<?php esc_html_e("Show media details on hover", "folders"); ?>
|
581 |
+
<button type="button" class="upgrade-link" href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>"><?php esc_html_e("Upgrade to Pro", WCP_FOLDER) ?></button>
|
582 |
+
<span class="html-tooltip bottom">
|
583 |
+
<span class="dashicons dashicons-editor-help"></span>
|
584 |
+
<span class="tooltip-text top" style="">
|
585 |
+
Show useful metadata including title, size, type, date, dimension & more on hover.
|
586 |
+
<img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/folders-media.gif") ?>">
|
587 |
+
</span>
|
588 |
+
</span>
|
589 |
+
</label>
|
590 |
+
</a>
|
591 |
+
</td>
|
592 |
+
</tr>
|
593 |
+
</tboby>
|
594 |
+
</table>
|
595 |
+
<input type="hidden" name="customize_folders[show_media_details]" value="off">
|
596 |
+
<div class="media-details">
|
597 |
+
<div class="">
|
598 |
+
<?php
|
599 |
+
$media_settings = array(
|
600 |
+
'image_title' => array(
|
601 |
+
"title" => esc_html__("Title", "folders"),
|
602 |
+
"default" => "on",
|
603 |
+
),
|
604 |
+
'image_alt_text' => array(
|
605 |
+
"title" => esc_html__("Alternative Text", "folders"),
|
606 |
+
"default" => "off",
|
607 |
+
),
|
608 |
+
'image_file_url' => array(
|
609 |
+
"title" => esc_html__("File URL", "folders"),
|
610 |
+
"default" => "off",
|
611 |
+
),
|
612 |
+
'image_dimensions' => array(
|
613 |
+
"title" => esc_html__("Dimensions", "folders"),
|
614 |
+
"default" => "on",
|
615 |
+
),
|
616 |
+
'image_size' => array(
|
617 |
+
"title" => esc_html__("Size", "folders"),
|
618 |
+
"default" => "off",
|
619 |
+
),
|
620 |
+
'image_file_name' => array(
|
621 |
+
"title" => esc_html__("Filename", "folders"),
|
622 |
+
"default" => "off",
|
623 |
+
),
|
624 |
+
'image_type' => array(
|
625 |
+
"title" => esc_html__("Type", "folders"),
|
626 |
+
"default" => "on",
|
627 |
+
),
|
628 |
+
'image_date' => array(
|
629 |
+
"title" => esc_html__("Date", "folders"),
|
630 |
+
"default" => "on",
|
631 |
+
),
|
632 |
+
'image_uploaded_by' => array(
|
633 |
+
"title" => esc_html__("Uploaded by", "folders"),
|
634 |
+
"default" => "off",
|
635 |
+
)
|
636 |
+
);
|
637 |
+
$media_col_settings = isset($customize_folders['media_col_settings']) && is_array($customize_folders['media_col_settings'])?$customize_folders['media_col_settings']:array("image_title","image_dimensions","image_type","image_date");
|
638 |
+
?>
|
639 |
+
<input type="hidden" name="customize_folders[media_col_settings][]" value="all">
|
640 |
+
<div class="media-setting-box active send-user-to-pro" >
|
641 |
+
<div class="normal-box">
|
642 |
+
<select disabled multiple="multiple" name="customize_folders[media_col_settings][]" class="select2-box">
|
643 |
+
<?php foreach($media_settings as $key=>$media) {
|
644 |
+
$selected = $media['default'];
|
645 |
+
?>
|
646 |
+
<option <?php selected($selected, "on") ?> value="<?php echo esc_attr($key) ?>"><?php echo esc_attr($media['title']) ?></option>
|
647 |
+
<?php } ?>
|
648 |
+
</select>
|
649 |
+
</div>
|
650 |
+
<a class="upgrade-box" target="_blank" href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" >
|
651 |
+
<button type="button"><?php esc_html_e("Upgrade to Pro", WCP_FOLDER) ?></button>
|
652 |
+
</a>
|
653 |
+
</div>
|
654 |
+
</div>
|
655 |
+
</div>
|
656 |
+
</div>
|
657 |
+
<div class="accordion-right">
|
658 |
+
<div class="premio-help">
|
659 |
+
<a href="https://premio.io/help/folders/?utm_source=pluginspage" target="_blank">
|
660 |
+
<div class="premio-help-btn">
|
661 |
+
<img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/premio-help.png") ?>" alt="Premio Help" class="Premio Help" />
|
662 |
+
<div class="need-help">Need Help</div>
|
663 |
+
<div class="visit-our">Visit our</div>
|
664 |
+
<div class="knowledge-base">knowledge base</div>
|
665 |
+
</div>
|
666 |
+
</a>
|
667 |
+
</div>
|
668 |
+
</div>
|
669 |
+
<div class="clear"></div>
|
670 |
+
<div class="submit-button">
|
671 |
+
<?php submit_button(); ?>
|
672 |
+
</div>
|
673 |
+
</div>
|
674 |
+
</div>
|
675 |
+
<div class="tab-content <?php echo esc_attr(($setting_page=="customize-folders")?"active":"") ?>" id="customize-folders">
|
676 |
+
<div class="accordion-content">
|
677 |
+
<div class="accordion-left">
|
678 |
+
<table class="form-table">
|
679 |
+
<?php
|
680 |
+
$colors = array(
|
681 |
+
"#FA166B",
|
682 |
+
"#0073AA",
|
683 |
+
"#484848"
|
684 |
+
);
|
685 |
+
$color = !isset($customize_folders['new_folder_color'])||empty($customize_folders['new_folder_color'])?"#FA166B":$customize_folders['new_folder_color'];
|
686 |
+
$setting_color = WCP_Folders::check_for_setting("new_folder_color", "customize_folders");
|
687 |
+
?>
|
688 |
+
<tr>
|
689 |
+
<td width="255px" class="no-padding">
|
690 |
+
<a class="upgrade-box-link" target="_blank" href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" >
|
691 |
+
<label for="new_folder_color" ><b>"New Folder"</b> button color <button type="button" class="upgrade-link" ><?php esc_html_e("Upgrade to Pro", WCP_FOLDER) ?></button></label>
|
692 |
+
</a>
|
693 |
+
</td>
|
694 |
+
<td>
|
695 |
+
<ul class="color-list">
|
696 |
+
<?php $field_name = "new_folder_color"; foreach ($colors as $key=>$value) { ?>
|
697 |
+
<li>
|
698 |
+
<label class="color-checkbox <?php echo ($color == $value)?"active":"" ?>" for="<?php echo esc_attr($field_name)."-".$key ?>">
|
699 |
+
<input type="radio" id="<?php echo esc_attr($field_name)."-".$key ?>" name="customize_folders[<?php echo esc_attr($field_name) ?>]" class="sr-only checkbox-color" value="<?php echo esc_attr($value) ?>" <?php checked($color, $value) ?> />
|
700 |
+
<span style="background: <?php echo esc_attr($value) ?>"></span>
|
701 |
+
</label>
|
702 |
+
</li>
|
703 |
+
<?php } $key = 3; ?>
|
704 |
+
<?php if($setting_color !== false && $setting_color != "#FA166B") { ?>
|
705 |
+
<li>
|
706 |
+
<label class="color-checkbox <?php echo ($color == $setting_color)?"active":"" ?>" for="<?php echo esc_attr($field_name)."-".$key ?>">
|
707 |
+
<input type="radio" id="<?php echo esc_attr($field_name)."-".$key ?>" name="customize_folders[<?php echo esc_attr($field_name) ?>]" class="sr-only checkbox-color" value="<?php echo esc_attr($setting_color) ?>" <?php checked($color, $setting_color) ?> />
|
708 |
+
<span style="background: <?php echo esc_attr($setting_color) ?>"></span>
|
709 |
+
</label>
|
710 |
+
</li>
|
711 |
+
<?php } ?>
|
712 |
+
<li>
|
713 |
+
<a class="upgrade-box-link d-block" target="_blank" href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" >
|
714 |
+
<span class="color-box"><span class="gradient"></span> <span class="color-box-area">Custom</span></span>
|
715 |
+
<span class="upgrade-link"><?php echo esc_html_e("Upgrade to Pro", "folders") ?></span>
|
716 |
+
</a>
|
717 |
+
</li>
|
718 |
+
</ul>
|
719 |
+
</td>
|
720 |
+
<td rowspan="4" >
|
721 |
+
|
722 |
+
</td>
|
723 |
+
</tr>
|
724 |
+
<?php
|
725 |
+
$color = !isset($customize_folders['bulk_organize_button_color'])||empty($customize_folders['bulk_organize_button_color'])?"#FA166B":$customize_folders['bulk_organize_button_color'];
|
726 |
+
$setting_color = WCP_Folders::check_for_setting("bulk_organize_button_color", "customize_folders");
|
727 |
+
?>
|
728 |
+
<tr>
|
729 |
+
<td class="no-padding">
|
730 |
+
<a class="upgrade-box-link" target="_blank" href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" >
|
731 |
+
<label for="bulk_organize_button_color" ><b>"Bulk Organize"</b> button color <button type="button" class="upgrade-link" ><?php esc_html_e("Upgrade to Pro", WCP_FOLDER) ?></button></label>
|
732 |
+
</a>
|
733 |
+
</td>
|
734 |
+
<td>
|
735 |
+
<ul class="color-list">
|
736 |
+
<?php $field_name = "bulk_organize_button_color"; foreach ($colors as $key=>$value) { ?>
|
737 |
+
<li>
|
738 |
+
<label class="color-checkbox <?php echo ($color == $value)?"active":"" ?>" for="<?php echo esc_attr($field_name)."-".$key ?>">
|
739 |
+
<input type="radio" id="<?php echo esc_attr($field_name)."-".$key ?>" name="customize_folders[<?php echo esc_attr($field_name) ?>]" class="sr-only checkbox-color" value="<?php echo esc_attr($value) ?>" <?php checked($color, $value) ?> />
|
740 |
+
<span style="background: <?php echo esc_attr($value) ?>"></span>
|
741 |
+
</label>
|
742 |
+
</li>
|
743 |
+
<?php } $key = 3; ?>
|
744 |
+
<?php if($setting_color !== false && $setting_color != "#FA166B") { ?>
|
745 |
+
<li>
|
746 |
+
<label class="color-checkbox <?php echo ($color == $setting_color)?"active":"" ?>" for="<?php echo esc_attr($field_name)."-".$key ?>">
|
747 |
+
<input type="radio" id="<?php echo esc_attr($field_name)."-".$key ?>" name="customize_folders[<?php echo esc_attr($field_name) ?>]" class="sr-only checkbox-color" value="<?php echo esc_attr($setting_color) ?>" <?php checked($color, $setting_color) ?> />
|
748 |
+
<span style="background: <?php echo esc_attr($setting_color) ?>"></span>
|
749 |
+
</label>
|
750 |
+
</li>
|
751 |
+
<?php } ?>
|
752 |
+
<li>
|
753 |
+
<a class="upgrade-box-link d-block" target="_blank" href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" >
|
754 |
+
<span class="color-box"><span class="gradient"></span> <span class="color-box-area">Custom</span></span>
|
755 |
+
<span class="upgrade-link"><?php echo esc_html_e("Upgrade to Pro", "folders") ?></span>
|
756 |
+
</a>
|
757 |
+
</li>
|
758 |
+
</ul>
|
759 |
+
</td>
|
760 |
+
</tr>
|
761 |
+
<?php
|
762 |
+
$color = !isset($customize_folders['media_replace_button'])||empty($customize_folders['media_replace_button'])?"#FA166B":$customize_folders['media_replace_button'];
|
763 |
+
$setting_color = WCP_Folders::check_for_setting("media_replace_button", "customize_folders");
|
764 |
+
?>
|
765 |
+
<tr>
|
766 |
+
<td class="no-padding">
|
767 |
+
<a class="upgrade-box-link" target="_blank" href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" >
|
768 |
+
<label for="media_replace_button" ><b>"Replace File"</b> media library button <button type="button" class="upgrade-link" ><?php esc_html_e("Upgrade to Pro", WCP_FOLDER) ?></button></label>
|
769 |
+
</a>
|
770 |
+
</td>
|
771 |
+
<td>
|
772 |
+
<ul class="color-list">
|
773 |
+
<?php $field_name = "media_replace_button"; foreach ($colors as $key=>$value) { ?>
|
774 |
+
<li>
|
775 |
+
<label class="color-checkbox <?php echo ($color == $value)?"active":"" ?>" for="<?php echo esc_attr($field_name)."-".$key ?>">
|
776 |
+
<input type="radio" id="<?php echo esc_attr($field_name)."-".$key ?>" name="customize_folders[<?php echo esc_attr($field_name) ?>]" class="sr-only checkbox-color" value="<?php echo esc_attr($value) ?>" <?php checked($color, $value) ?> />
|
777 |
+
<span style="background: <?php echo esc_attr($value) ?>"></span>
|
778 |
+
</label>
|
779 |
+
</li>
|
780 |
+
<?php } $key = 3; ?>
|
781 |
+
<?php if($setting_color !== false && $setting_color != "#FA166B") { ?>
|
782 |
+
<li>
|
783 |
+
<label class="color-checkbox <?php echo ($color == $setting_color)?"active":"" ?>" for="<?php echo esc_attr($field_name)."-".$key ?>">
|
784 |
+
<input type="radio" id="<?php echo esc_attr($field_name)."-".$key ?>" name="customize_folders[<?php echo esc_attr($field_name) ?>]" class="sr-only checkbox-color" value="<?php echo esc_attr($setting_color) ?>" <?php checked($color, $setting_color) ?> />
|
785 |
+
<span style="background: <?php echo esc_attr($setting_color) ?>"></span>
|
786 |
+
</label>
|
787 |
+
</li>
|
788 |
+
<?php } ?>
|
789 |
+
<li>
|
790 |
+
<a class="upgrade-box-link d-block" target="_blank" href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" >
|
791 |
+
<span class="color-box"><span class="gradient"></span> <span class="color-box-area">Custom</span></span>
|
792 |
+
<span class="upgrade-link"><?php echo esc_html_e("Upgrade to Pro", "folders") ?></span>
|
793 |
+
</a>
|
794 |
+
</li>
|
795 |
+
</ul>
|
796 |
+
</td>
|
797 |
+
</tr>
|
798 |
+
<?php
|
799 |
+
$color = !isset($customize_folders['dropdown_color'])||empty($customize_folders['dropdown_color'])?"#484848":$customize_folders['dropdown_color'];
|
800 |
+
$setting_color = WCP_Folders::check_for_setting("dropdown_color", "customize_folders");
|
801 |
+
?>
|
802 |
+
<tr>
|
803 |
+
<td class="no-padding">
|
804 |
+
<a class="upgrade-box-link" target="_blank" href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" >
|
805 |
+
<label for="dropdown_color" >Dropdown color <button type="button" class="upgrade-link" ><?php esc_html_e("Upgrade to Pro", WCP_FOLDER) ?></button></label>
|
806 |
+
</a>
|
807 |
+
</td>
|
808 |
+
<td>
|
809 |
+
<ul class="color-list">
|
810 |
+
<?php $field_name = "dropdown_color"; foreach ($colors as $key=>$value) { ?>
|
811 |
+
<li>
|
812 |
+
<label class="color-checkbox <?php echo ($color == $value)?"active":"" ?>" for="<?php echo esc_attr($field_name)."-".$key ?>">
|
813 |
+
<input type="radio" id="<?php echo esc_attr($field_name)."-".$key ?>" name="customize_folders[<?php echo esc_attr($field_name) ?>]" class="sr-only checkbox-color" value="<?php echo esc_attr($value) ?>" <?php checked($color, $value) ?> />
|
814 |
+
<span style="background: <?php echo esc_attr($value) ?>"></span>
|
815 |
+
</label>
|
816 |
+
</li>
|
817 |
+
<?php } $key = 3; ?>
|
818 |
+
<?php if($setting_color !== false && $setting_color != "#484848") { ?>
|
819 |
+
<li>
|
820 |
+
<label class="color-checkbox <?php echo ($color == $setting_color)?"active":"" ?>" for="<?php echo esc_attr($field_name)."-".$key ?>">
|
821 |
+
<input type="radio" id="<?php echo esc_attr($field_name)."-".$key ?>" name="customize_folders[<?php echo esc_attr($field_name) ?>]" class="sr-only checkbox-color" value="<?php echo esc_attr($setting_color) ?>" <?php checked($color, $setting_color) ?> />
|
822 |
+
<span style="background: <?php echo esc_attr($setting_color) ?>"></span>
|
823 |
+
</label>
|
824 |
+
</li>
|
825 |
+
<?php } ?>
|
826 |
+
<li>
|
827 |
+
<a class="upgrade-box-link d-block" target="_blank" href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" >
|
828 |
+
<span class="color-box"><span class="gradient"></span> <span class="color-box-area">Custom</span></span>
|
829 |
+
<span class="upgrade-link"><?php echo esc_html_e("Upgrade to Pro", "folders") ?></span>
|
830 |
+
</a>
|
831 |
+
</li>
|
832 |
+
</ul>
|
833 |
+
</td>
|
834 |
+
</tr>
|
835 |
+
<?php
|
836 |
+
$color = !isset($customize_folders['folder_bg_color'])||empty($customize_folders['folder_bg_color'])?"#FA166B":$customize_folders['folder_bg_color'];
|
837 |
+
$setting_color = WCP_Folders::check_for_setting("folder_bg_color", "customize_folders");
|
838 |
+
?>
|
839 |
+
<tr>
|
840 |
+
<td class="no-padding">
|
841 |
+
<a class="upgrade-box-link" target="_blank" href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" >
|
842 |
+
<label for="folder_bg_color" >Folders background color <button type="button" class="upgrade-link" ><?php esc_html_e("Upgrade to Pro", WCP_FOLDER) ?></button></label>
|
843 |
+
</a>
|
844 |
+
</td>
|
845 |
+
<td>
|
846 |
+
<ul class="color-list">
|
847 |
+
<?php $field_name = "folder_bg_color"; foreach ($colors as $key=>$value) { ?>
|
848 |
+
<li>
|
849 |
+
<label class="color-checkbox <?php echo ($color == $value)?"active":"" ?>" for="<?php echo esc_attr($field_name)."-".$key ?>">
|
850 |
+
<input type="radio" id="<?php echo esc_attr($field_name)."-".$key ?>" name="customize_folders[<?php echo esc_attr($field_name) ?>]" class="sr-only checkbox-color" value="<?php echo esc_attr($value) ?>" <?php checked($color, $value) ?> />
|
851 |
+
<span style="background: <?php echo esc_attr($value) ?>"></span>
|
852 |
+
</label>
|
853 |
+
</li>
|
854 |
+
<?php } $key = 3; ?>
|
855 |
+
<?php if($setting_color !== false && $setting_color != "#FA166B") { ?>
|
856 |
+
<li>
|
857 |
+
<label class="color-checkbox <?php echo ($color == $setting_color)?"active":"" ?>" for="<?php echo esc_attr($field_name)."-".$key ?>">
|
858 |
+
<input type="radio" id="<?php echo esc_attr($field_name)."-".$key ?>" name="customize_folders[<?php echo esc_attr($field_name) ?>]" class="sr-only checkbox-color" value="<?php echo esc_attr($setting_color) ?>" <?php checked($color, $setting_color) ?> />
|
859 |
+
<span style="background: <?php echo esc_attr($setting_color) ?>"></span>
|
860 |
+
</label>
|
861 |
+
</li>
|
862 |
+
<?php } ?>
|
863 |
+
<li>
|
864 |
+
<a class="upgrade-box-link d-block" target="_blank" href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" >
|
865 |
+
<span class="color-box"><span class="gradient"></span> <span class="color-box-area">Custom</span></span>
|
866 |
+
<span class="upgrade-link"><?php echo esc_html_e("Upgrade to Pro", "folders") ?></span>
|
867 |
+
</a>
|
868 |
+
</li>
|
869 |
+
</ul>
|
870 |
+
</td>
|
871 |
+
</tr>
|
872 |
+
<?php
|
873 |
+
$font = !isset($customize_folders['folder_font'])||empty($customize_folders['folder_font'])?"":$customize_folders['folder_font'];
|
874 |
+
$setting_font = WCP_Folders::check_for_setting("folder_font", "customize_folders");
|
875 |
+
$index = 0;
|
876 |
+
?>
|
877 |
+
<tr>
|
878 |
+
<td class="no-padding">
|
879 |
+
<label for="folder_font" >
|
880 |
+
<?php if($setting_font !== false && $setting_font != "" && !in_array($setting_font, array("Arial","Tahoma","Verdana","Helvetica","Times New Roman","Trebuchet MS","Georgia"))) {
|
881 |
+
esc_html_e("Folders font", WCP_FOLDER);
|
882 |
+
} else { ?>
|
883 |
+
<a class="upgrade-box-link" target="_blank" href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" >
|
884 |
+
<?php esc_html_e( 'Folders font', WCP_FOLDER ) ?> <button type="button" class="upgrade-link" ><?php esc_html_e("Upgrade to Pro", WCP_FOLDER) ?></button>
|
885 |
+
</a>
|
886 |
+
<?php } ?>
|
887 |
+
</label>
|
888 |
+
</td>
|
889 |
+
<td colspan="2">
|
890 |
+
<select name="customize_folders[folder_font]" id="folder_font" >
|
891 |
+
<?php $group = '';
|
892 |
+
foreach ($fonts as $key => $value):
|
893 |
+
$title = $key;
|
894 |
+
if($index == 0) {
|
895 |
+
$key = "";
|
896 |
+
}
|
897 |
+
$index++;
|
898 |
+
if ($value != $group) {
|
899 |
+
echo '<optgroup label="' . $value . '">';
|
900 |
+
$group = $value;
|
901 |
+
}
|
902 |
+
if(($setting_font !== false && $setting_font != "" && !in_array($setting_font, array("Arial","Tahoma","Verdana","Helvetica","Times New Roman","Trebuchet MS","Georgia"))) || $value != "Google Fonts" ) { ?>
|
903 |
+
<option value="<?php echo $key; ?>" <?php selected($font, $key); ?>><?php echo $title; ?></option>
|
904 |
+
<?php } else { ?>
|
905 |
+
<option class="pro-select-item" value="folders-pro"><?php echo $title; ?> (Pro) 🔑</option>
|
906 |
+
<?php } ?>
|
907 |
+
<?php endforeach; ?>
|
908 |
+
</select>
|
909 |
+
</td>
|
910 |
+
</tr>
|
911 |
+
<?php
|
912 |
+
$size = ! isset( $customize_folders['folder_size'] ) || empty( $customize_folders['folder_size'] ) ? "16" : $customize_folders['folder_size'];
|
913 |
+
$folder_size = WCP_Folders::check_for_setting("folder_size", "customize_folders");
|
914 |
+
?>
|
915 |
+
<tr>
|
916 |
+
<td class="no-padding">
|
917 |
+
<label for="folder_size" >
|
918 |
+
<?php if($folder_size === false || intval($folder_size) === 16) { ?>
|
919 |
+
<a class="upgrade-box-link" target="_blank" href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" >
|
920 |
+
<?php esc_html_e( 'Folders size', WCP_FOLDER ) ?> <button type="button" class="upgrade-link" ><?php esc_html_e("Upgrade to Pro", WCP_FOLDER) ?></button>
|
921 |
+
</a>
|
922 |
+
<?php } else { ?>
|
923 |
+
<?php esc_html_e("Folders size", WCP_FOLDER); ?>
|
924 |
+
<?php } ?>
|
925 |
+
</label>
|
926 |
+
</td>
|
927 |
+
<td colspan="2">
|
928 |
+
<?php
|
929 |
+
if($folder_size === false || intval($folder_size) == 16) {
|
930 |
+
$sizes = array(
|
931 |
+
"folders-pro" => "Small (Pro) 🔑",
|
932 |
+
"16" => "Medium",
|
933 |
+
"folders-pro-item" => "Large (Pro) 🔑"
|
934 |
+
);
|
935 |
+
$size = 16;
|
936 |
+
} else {
|
937 |
+
$sizes = array(
|
938 |
+
"12" => "Small",
|
939 |
+
"16" => "Medium",
|
940 |
+
"20" => "Large"
|
941 |
+
);
|
942 |
+
}
|
943 |
+
?>
|
944 |
+
<select name="customize_folders[folder_size]" id="folder_size" >
|
945 |
+
<?php
|
946 |
+
foreach ($sizes as $key=>$value) {
|
947 |
+
$selected = ($key == $size)?"selected":"";
|
948 |
+
echo "<option ".$selected." value='".$key."'>".$value."</option>";
|
949 |
+
}
|
950 |
+
?>
|
951 |
+
</select>
|
952 |
+
</td>
|
953 |
+
</tr>
|
954 |
+
<?php
|
955 |
+
$show_in_page = isset($customize_folders['show_in_page'])?$customize_folders['show_in_page']:"hide";
|
956 |
+
$show_folder = WCP_Folders::check_for_setting("show_in_page", "customize_folders");
|
957 |
+
if(empty($show_in_page)) {
|
958 |
+
$show_in_page = "hide";
|
959 |
+
}
|
960 |
+
?>
|
961 |
+
<tr>
|
962 |
+
<td colspan="3" style="padding: 15px 20px 15px 0">
|
963 |
+
<input type="hidden" name="customize_folders[show_in_page]" value="hide">
|
964 |
+
<?php if($show_folder === false || $show_folder === "hide") { ?>
|
965 |
+
<a class="upgrade-box-link" target="_blank" href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" >
|
966 |
+
<label for="" class="custom-checkbox send-user-to-pro">
|
967 |
+
<input disabled type="checkbox" class="sr-only" name="customize_folders[show_in_page]" id="show_in_page" value="on" <?php checked($show_in_page, "show") ?>>
|
968 |
+
<span></span>
|
969 |
+
</label>
|
970 |
+
<label for="" class="send-user-to-pro">
|
971 |
+
<?php esc_html_e("Show Folders in upper position", "folders"); ?>
|
972 |
+
<button type="button" class="upgrade-link" href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>"><?php esc_html_e("Upgrade to Pro", WCP_FOLDER) ?></button>
|
973 |
+
</label>
|
974 |
+
</a>
|
975 |
+
<?php } else { ?>
|
976 |
+
<div class="custom-checkbox">
|
977 |
+
<input id="show_folders" class="sr-only" <?php checked($show_in_page, "show") ?> type="checkbox" name="customize_folders[show_in_page]" value="show">
|
978 |
+
<span></span>
|
979 |
+
</div>
|
980 |
+
<label for="show_folders">Show Folders in upper position</label>
|
981 |
+
<?php } ?>
|
982 |
+
</td>
|
983 |
+
</tr>
|
984 |
+
</table>
|
985 |
+
</div>
|
986 |
+
<div class="accordion-right">
|
987 |
+
<div class="preview-text">
|
988 |
+
Preview
|
989 |
+
<div class="preview-text-info">See the full functionality on your media library, posts, pages, and custom posts</div>
|
990 |
+
</div>
|
991 |
+
<div class="preview-inner-box">
|
992 |
+
<div class="preview-box">
|
993 |
+
<div class="wcp-custom-form">
|
994 |
+
<div class="form-title">
|
995 |
+
Folders
|
996 |
+
<a href="javascript:;" class="add-new-folder" id="add-new-folder">
|
997 |
+
<span class="create_new_folder"><i class="pfolder-add-folder"></i></span>
|
998 |
+
<span>New Folder</span>
|
999 |
+
</a>
|
1000 |
+
<div class="clear"></div>
|
1001 |
+
</div>
|
1002 |
+
<div class="form-options">
|
1003 |
+
<ul>
|
1004 |
+
<li>
|
1005 |
+
<div class="custom-checkbox">
|
1006 |
+
<input type="checkbox" class="sr-only" >
|
1007 |
+
<span></span>
|
1008 |
+
</div>
|
1009 |
+
</li>
|
1010 |
+
<li>
|
1011 |
+
<a href="javascript:;" id="inline-update"><span class="icon pfolder-edit-folder"><span class="path2"></span></span> <span class="text">Rename</span> </a>
|
1012 |
+
</li>
|
1013 |
+
<li>
|
1014 |
+
<a href="javascript:;" id="inline-remove"><span class="icon pfolder-remove"></span> <span class="text">Delete</span> </a>
|
1015 |
+
</li>
|
1016 |
+
<li class="last">
|
1017 |
+
<a href="javascript:;" id="expand-collapse-list" data-tooltip="Expand"><span class="icon pfolder-arrow-down"></span></a>
|
1018 |
+
</li>
|
1019 |
+
<li class="last">
|
1020 |
+
<a href="javascript:;" ><span class="icon pfolder-arrow-sort"></span></a>
|
1021 |
+
</li>
|
1022 |
+
</ul>
|
1023 |
+
</div>
|
1024 |
+
</div>
|
1025 |
+
<div class="shadow-box">
|
1026 |
+
<div class="header-posts">
|
1027 |
+
<a href="javascript:;" class="all-posts active-item-link">All Files <span class="total-count">215</span></a>
|
1028 |
+
</div>
|
1029 |
+
<div class="un-categorised-items ui-droppable">
|
1030 |
+
<a href="javascript:;" class="un-categorized-posts">Unassigned Files <span class="total-count total-empty">191</span> </a>
|
1031 |
+
</div>
|
1032 |
+
<div class="separator"></div>
|
1033 |
+
<ul class="folder-list">
|
1034 |
+
<li><a href="javascript:;"><i class="wcp-icon pfolder-folder-close"></i> <span>Folder 1</span><span class="total-count">20</span><span class="clear"></span></a></li>
|
1035 |
+
<li><a href="javascript:;"><i class="wcp-icon pfolder-folder-close"></i> <span>Folder 2</span><span class="total-count">13</span><span class="clear"></span></a></li>
|
1036 |
+
<li><a href="javascript:;"><i class="wcp-icon pfolder-folder-close"></i> <span>Folder 3</span><span class="total-count">5</span><span class="clear"></span></a></li>
|
1037 |
+
</ul>
|
1038 |
+
<div class="separator"></div>
|
1039 |
+
<div class="media-buttons">
|
1040 |
+
<select class="media-select">
|
1041 |
+
<option>All Files</option>
|
1042 |
+
<option>Folder 1</option>
|
1043 |
+
<option>Folder 2</option>
|
1044 |
+
<option>Folder 3</option>
|
1045 |
+
</select>
|
1046 |
+
<button type="button" class="button organize-button">Bulk Organize</button>
|
1047 |
+
<div style="clear: both;"></div>
|
1048 |
+
</div>
|
1049 |
+
</div>
|
1050 |
+
</div>
|
1051 |
+
</div>
|
1052 |
+
</div>
|
1053 |
+
<div class="clear"></div>
|
1054 |
+
<?php submit_button(); ?>
|
1055 |
+
</div>
|
1056 |
+
</div>
|
1057 |
+
<div class="tab-content <?php echo esc_attr(($setting_page=="folders-import")?"active":"") ?>" id="folder-import">
|
1058 |
+
<?php
|
1059 |
+
$remove_folders_when_removed = !isset($customize_folders['remove_folders_when_removed'])?"off":$customize_folders['remove_folders_when_removed'];
|
1060 |
+
?>
|
1061 |
+
<input type="hidden" name="customize_folders[remove_folders_when_removed]" value="off" />
|
1062 |
+
<div class="folder-danger-zone">
|
1063 |
+
<table class="import-export-table">
|
1064 |
+
<?php if($is_plugin_exists) { ?>
|
1065 |
+
<tr class="has-other-plugins">
|
1066 |
+
<td>
|
1067 |
+
<span class="folder-info"><span class="dashicons dashicons-admin-generic"></span> <?php esc_html_e("Export/Import", "folders"); ?></span>
|
1068 |
+
<span class="folder-text"><span><?php esc_html_e("External folders found.", "folders"); ?></span> <?php esc_html_e("Click import to start importing external folders.", "folders"); ?></span>
|
1069 |
+
</td>
|
1070 |
+
<td class="last-td">
|
1071 |
+
<a href="#" class="import-folders-button"><?php esc_html_e("Import", "folders"); ?></a>
|
1072 |
+
</td>
|
1073 |
+
</tr>
|
1074 |
+
<?php } ?>
|
1075 |
+
<tr class="no-more-plugins <?php echo (!$is_plugin_exists)?"active":"" ?>">
|
1076 |
+
<td>
|
1077 |
+
<span class="folder-info"><span class="dashicons dashicons-admin-generic"></span> <?php esc_html_e("Export/Import", "folders"); ?></span>
|
1078 |
+
<span class="folder-text"><?php esc_html_e("Couldn't detect any external folders that can be imported. Please contact us if you have external folders that were not detected", "folders"); ?></span>
|
1079 |
+
</td>
|
1080 |
+
<td class="last-td">
|
1081 |
+
<a href="https://premio.io/contact/" target="_blank" class="contact-folders-button"><?php esc_html_e("Contact Us", "folders"); ?></a>
|
1082 |
+
</td>
|
1083 |
+
</tr>
|
1084 |
+
<tr>
|
1085 |
+
<td colspan="2"><span class="danzer-title"><span class="dashicons dashicons-warning"></span> <?php esc_html_e("Danger Zone", "folders"); ?></span></td>
|
1086 |
+
</tr>
|
1087 |
+
<tr>
|
1088 |
+
<td>
|
1089 |
+
<span class="danger-info"><?php esc_html_e("Delete plugin data upon deletion", "folders"); ?></span>
|
1090 |
+
<span class="danger-data"><?php esc_html_e("Delete all folders when the plugin is removed. This feature will remove all existing folders created by the plugin upon deletion.", "folders"); ?> <b><?php esc_html_e("(Not recommended)", "folders"); ?></span></b>
|
1091 |
+
</td>
|
1092 |
+
<td class="last-td" >
|
1093 |
+
<div class="inline-checkbox">
|
1094 |
+
<label class="folder-switch" for="remove_folders_when_removed">
|
1095 |
+
<input type="checkbox" class="sr-only change-folder-status" name="customize_folders[remove_folders_when_removed]" id="remove_folders_when_removed" value="on" <?php checked($remove_folders_when_removed, "on") ?>>
|
1096 |
+
<div class="folder-slider round"></div>
|
1097 |
+
</label>
|
1098 |
+
</div>
|
1099 |
+
</td>
|
1100 |
+
</tr>
|
1101 |
+
<tr>
|
1102 |
+
<td>
|
1103 |
+
<span class="danger-info"><?php esc_html_e("Manual Data Removal", "folders"); ?></span>
|
1104 |
+
<span class="danger-data"><?php esc_html_e("Delete all folders data manually This feature will remove all existing folders created by the plugin. Use this feature with caution.", "folders"); ?>
|
1105 |
+
</td>
|
1106 |
+
<td class="last-td">
|
1107 |
+
<a href="#" class="remove-folders-data"><?php esc_html_e("Delete Now", "folders"); ?></a>
|
1108 |
+
</td>
|
1109 |
+
</tr>
|
1110 |
+
</table>
|
1111 |
+
</div>
|
1112 |
+
</div>
|
1113 |
+
<div class="tab-content <?php echo esc_attr(($setting_page=="license-key")?"active":"") ?>">
|
1114 |
+
<?php if($setting_page=="license-key") { ?>
|
1115 |
+
<?php
|
1116 |
+
$type = filter_input(INPUT_GET, 'm', FILTER_SANITIZE_STRING);
|
1117 |
+
if(isset($type) && !empty($type)) {
|
1118 |
+
switch ($type) {
|
1119 |
+
case "error": ?>
|
1120 |
+
<div class='folder-error-message'><?php esc_attr_e("Your license key is not valid",WCP_FOLDER ) ?></div>
|
1121 |
+
<?php break;
|
1122 |
+
case "valid": ?>
|
1123 |
+
<div class='folder-success-message'><?php esc_attr_e("Your license key is activated successfully",WCP_FOLDER ) ?></div>
|
1124 |
+
<?php break;
|
1125 |
+
case "unactivated": ?>
|
1126 |
+
<div class='folder-success-message'><?php esc_attr_e("Your license key is deactivated successfully",WCP_FOLDER ) ?></div>
|
1127 |
+
<?php break;
|
1128 |
+
case "expired": ?>
|
1129 |
+
<div class='folder-error-message'><?php esc_attr_e("Your license has been expired",WCP_FOLDER ) ?></div>
|
1130 |
+
<?php break;
|
1131 |
+
case "no_activations": ?>
|
1132 |
+
<div class='folder-error-message'><?php esc_attr_e("Your license was activated for another domain, please visit your ",WCP_FOLDER ) ?><a target="_blank" href="https://go.premio.io"><?php esc_attr_e("Premio account",WCP_FOLDER ) ?></a></div>
|
1133 |
+
<?php break;
|
1134 |
+
}
|
1135 |
+
}
|
1136 |
+
?>
|
1137 |
+
<div class="key-table">
|
1138 |
+
<div class="license-key-footer">
|
1139 |
+
<?php
|
1140 |
+
$licenseKey = get_option("wcp_folder_license_key");
|
1141 |
+
$licenseData = array();
|
1142 |
+
$active_status = 0;
|
1143 |
+
delete_transient("folder_license_key_data");
|
1144 |
+
if(!empty($licenseKey)) {
|
1145 |
+
$licenseData = $this->get_license_key_data($licenseKey);
|
1146 |
+
if(!empty($licenseData)) {
|
1147 |
+
if($licenseData['license'] == "valid") {
|
1148 |
+
$active_status = 1;
|
1149 |
+
} else if($licenseData['license'] == "expired") {
|
1150 |
+
$active_status = 2;
|
1151 |
+
}
|
1152 |
+
} else {
|
1153 |
+
$licenseKey = "";
|
1154 |
+
}
|
1155 |
+
}
|
1156 |
+
if(!$active_status) {
|
1157 |
+
esc_attr_e("To receive updates, please enter your valid license key.", WCP_FOLDER );
|
1158 |
+
} else if ($active_status == 1 && $licenseData['expires'] == "lifetime") {
|
1159 |
+
esc_attr_e("You have a lifetime license", WCP_FOLDER);
|
1160 |
+
} else if($active_status == 1 ){
|
1161 |
+
esc_attr_e("Your license will expire on ".date("d M, Y",strtotime($licenseData['expires'])));
|
1162 |
+
} else if($active_status == 2 ){
|
1163 |
+
$url = WCP_PRO_FOLDER_API_URL.'/checkout/?edd_license_key='.$licenseKey."&download_id=".WCP_PRO_FOLDER_PR0DUCT_ID; ?>
|
1164 |
+
<span class='error-message'><?php esc_attr_e("Your license has been expired on ", WCP_FOLDER).esc_attr(date("d M, Y",strtotime($licenseData['expires']))) ?></span><a target="_blank" href="<?php echo esc_url($url) ?>" class="button button-primary" ><?php esc_attr_e("Renew Now", WCP_FOLDER ) ?></a> <?php
|
1165 |
+
}
|
1166 |
+
?>
|
1167 |
+
</div>
|
1168 |
+
<form action="" id="license_key_form">
|
1169 |
+
<div class="input-field">
|
1170 |
+
<label for="license_key"><?php esc_attr_e("License Key", WCP_FOLDER ) ?></label>
|
1171 |
+
<input class="license-key" id="license_key" name="license_key" value="<?php echo esc_attr($licenseKey) ?>">
|
1172 |
+
</div>
|
1173 |
+
<div class="submit">
|
1174 |
+
<?php if($active_status != 0) { ?>
|
1175 |
+
<a href="javascript:;" class="button secondary-button" id="deactivate_key"><?php esc_attr_e("Deactivate Key", WCP_FOLDER ) ?></a>
|
1176 |
+
<?php } ?>
|
1177 |
+
<input type="submit" name="submit" id="submit" class="button button-primary" value="<?php esc_attr_e("Activate Key", WCP_FOLDER ) ?>">
|
1178 |
+
</div>
|
1179 |
+
</form>
|
1180 |
+
</div>
|
1181 |
+
<?php } ?>
|
1182 |
+
</div>
|
1183 |
+
</div>
|
1184 |
+
</div>
|
1185 |
+
<?php
|
1186 |
+
?>
|
1187 |
+
<input type="hidden" name="folder_nonce" value="<?php echo wp_create_nonce("folder_settings") ?>">
|
1188 |
+
<input type="hidden" name="folder_page" value="<?php echo $_SERVER['REQUEST_URI'] ?>">
|
1189 |
+
<?php if($setting_page!="upgrade-to-pro") { ?>
|
1190 |
+
</form>
|
1191 |
+
<?php } ?>
|
1192 |
+
</div>
|
1193 |
+
|
1194 |
+
<div class="folder-popup-form" id="import-plugin-data">
|
1195 |
+
<div class="popup-form-content">
|
1196 |
+
<div class="popup-content">
|
1197 |
+
<div class="close-popup-button">
|
1198 |
+
<a class="" href="javascript:;"><span></span></a>
|
1199 |
+
</div>
|
1200 |
+
<div class="import-folder-title"></div>
|
1201 |
+
<div class="import-folder-note">Are you sure you'd like to import $x folders from $plugin?</div>
|
1202 |
+
<div class="folder-form-buttons">
|
1203 |
+
<button type="submit" class="form-submit-btn" id="import-folder-button"><?php esc_html_e("Import", WCP_FOLDER); ?></button>
|
1204 |
+
<a href="javascript:;" class="form-cancel-btn"><?php esc_html_e("Cancel", WCP_FOLDER); ?></a>
|
1205 |
+
</div>
|
1206 |
+
</div>
|
1207 |
+
</div>
|
1208 |
+
</div>
|
1209 |
+
|
1210 |
+
<?php //if($plugin['is_exists']) { ?>
|
1211 |
+
<div class="folder-popup-form" id="import-folders-popup">
|
1212 |
+
<div class="popup-form-content">
|
1213 |
+
<div class="popup-content">
|
1214 |
+
<div class="close-popup-button">
|
1215 |
+
<a class="" href="javascript:;"><span></span></a>
|
1216 |
+
</div>
|
1217 |
+
<div class="import-plugin-title"><?php esc_html_e("Import data", WCP_FOLDER); ?></div>
|
1218 |
+
<div class="plugin-import-table">
|
1219 |
+
<div class="import-folder-table">
|
1220 |
+
<table>
|
1221 |
+
<tbody>
|
1222 |
+
<?php foreach ($plugin_info as $slug=>$plugin) { ?>
|
1223 |
+
<?php if($plugin['is_exists']) { ?>
|
1224 |
+
<tr class="other-plugins-<?php echo esc_attr__($slug) ?>" data-plugin="<?php echo esc_attr__($slug) ?>" data-nonce="<?php echo wp_create_nonce("import_data_from_".$slug) ?>" data-folders="<?php echo esc_attr($plugin['total_folders']) ?>" data-attachments="<?php echo esc_attr($plugin['total_attachments']) ?>">
|
1225 |
+
<th class="plugin-name"><?php echo esc_attr__($plugin['name']) ?></th>
|
1226 |
+
<td>
|
1227 |
+
<span class="import-message"><?php printf(esc_html__("%s folder%s and %s attachment%s", "folders"), "<b>".$plugin['total_folders']."</b>", ($plugin['total_folders']>1)?esc_html__("s"):"" ,"<b>".$plugin['total_attachments']."</b>", ($plugin['total_attachments']>1)?esc_html__("s"):"") ?></span>
|
1228 |
+
<button type="button" class="button button-primary import-folder-data in-popup"><?php esc_html_e("Import", "folders"); ?> <span class="spinner"></span></button>
|
1229 |
+
<button type="button" class="button button-secondary remove-folder-data in-popup"><?php esc_html_e("Delete plugin data", "folders"); ?> <span class="spinner"></span></button>
|
1230 |
+
</td>
|
1231 |
+
</tr>
|
1232 |
+
<?php } ?>
|
1233 |
+
<?php } ?>
|
1234 |
+
</tbody>
|
1235 |
+
</table>
|
1236 |
+
</div>
|
1237 |
+
</div>
|
1238 |
+
<div class="folder-form-buttons">
|
1239 |
+
<div class=""></div>
|
1240 |
+
<a href="javascript:;" class="form-cancel-btn"><?php esc_html_e("Close", WCP_FOLDER); ?></a>
|
1241 |
+
</div>
|
1242 |
+
</div>
|
1243 |
+
</div>
|
1244 |
+
</div>
|
1245 |
+
<?php //} ?>
|
1246 |
+
|
1247 |
+
<div class="folder-popup-form" id="remove-plugin-data">
|
1248 |
+
<div class="popup-form-content">
|
1249 |
+
<div class="popup-content">
|
1250 |
+
<div class="close-popup-button">
|
1251 |
+
<a class="" href="javascript:;"><span></span></a>
|
1252 |
+
</div>
|
1253 |
+
<div class="remove-folder-title">Are you sure?</div>
|
1254 |
+
<div class="remove-folder-note">You're about to delete $plugin's folders. Are you sure you'd like to proceed?</div>
|
1255 |
+
<div class="folder-form-buttons">
|
1256 |
+
<button type="submit" class="form-submit-btn delete-folder-plugin" id="remove-folder-button"><?php esc_html_e("Delete plugin data", WCP_FOLDER); ?></button>
|
1257 |
+
<a href="javascript:;" class="form-cancel-btn"><?php esc_html_e("Cancel", WCP_FOLDER); ?></a>
|
1258 |
+
</div>
|
1259 |
+
</div>
|
1260 |
+
</div>
|
1261 |
+
</div>
|
1262 |
+
|
1263 |
+
<div class="folder-popup-form remove-folders-box" id="remove-folders-data-box">
|
1264 |
+
<div class="popup-form-content">
|
1265 |
+
<div class="popup-content">
|
1266 |
+
<div class="close-popup-button close-remove-folders">
|
1267 |
+
<a class="" href="javascript:;"><span></span></a>
|
1268 |
+
</div>
|
1269 |
+
<div class="remove-folder-title"><?php esc_html_e("Are you sure?", WCP_FOLDER); ?></div>
|
1270 |
+
<div class="remove-folder-note"><?php echo sprintf(esc_html__("Folders will remove all created folders once you remove the plugin. We recommend you %s if you plan to use Folders in future.", WCP_FOLDER), "<b>".esc_html__("not to use this feature", WCP_FOLDER)."</b>"); ?></div>
|
1271 |
+
<div class="folder-form-buttons">
|
1272 |
+
<a href="javascript:;" class="form-cancel-btn cancel-folders"><?php esc_html_e("Cancel", WCP_FOLDER); ?></a>
|
1273 |
+
<button type="submit" class="form-cancel-btn delete-button"><?php esc_html_e("I want to delete anyway", WCP_FOLDER); ?></button>
|
1274 |
+
</div>
|
1275 |
+
</div>
|
1276 |
+
</div>
|
1277 |
+
</div>
|
1278 |
+
|
1279 |
+
<div class="folder-popup-form" id="remove-confirmation-box">
|
1280 |
+
<div class="popup-form-content">
|
1281 |
+
<div class="popup-content">
|
1282 |
+
<form id="remove_folders_data" autocomplete="off" >
|
1283 |
+
<div class="close-popup-button">
|
1284 |
+
<a class="" href="javascript:;"><span></span></a>
|
1285 |
+
</div>
|
1286 |
+
<div class="remove-folder-title"></div>
|
1287 |
+
<div class="remove-folder-note text-left">
|
1288 |
+
<b><?php esc_html_e("Type DELETE to confirm", WCP_FOLDER); ?></b>
|
1289 |
+
<div class="input-box">
|
1290 |
+
<input autocomplete="off" type="text" id="delete-input" name="delete" >
|
1291 |
+
</div>
|
1292 |
+
<div class="delete-confirmation-message"><?php esc_html_e('', WCP_FOLDER); ?></div>
|
1293 |
+
</div>
|
1294 |
+
<div class="folder-form-buttons">
|
1295 |
+
<input type="hidden" name="nonce" id="remove-folder-nonce" value="<?php echo wp_create_nonce("remove_folders_data") ?>">
|
1296 |
+
<input type="hidden" name="action" value="remove_all_folders_data">
|
1297 |
+
<button disabled type="submit" class="form-submit-btn delete-button" id="remove-folders-data-button"><?php esc_html_e("Delete", WCP_FOLDER); ?></button>
|
1298 |
+
<a href="javascript:;" class="form-cancel-btn"><?php esc_html_e("Cancel", WCP_FOLDER); ?></a>
|
1299 |
+
</div>
|
1300 |
+
</form>
|
1301 |
+
</div>
|
1302 |
+
</div>
|
1303 |
+
</div>
|
1304 |
+
|
1305 |
+
<?php
|
1306 |
+
$option = get_option("folder_intro_box");
|
1307 |
+
if(($option == "show" || get_option("folder_redirect_status") == 2) && $is_plugin_exists) { ?>
|
1308 |
+
<div class="folder-popup-form" id="import-third-party-plugin-data" style="display: block" ?>
|
1309 |
+
<div class="popup-form-content">
|
1310 |
+
<div class="popup-content">
|
1311 |
+
<div class="close-popup-button">
|
1312 |
+
<a class="" href="javascript:;"><span></span></a>
|
1313 |
+
</div>
|
1314 |
+
<div class="import-plugin-title"><?php esc_html_e("Import data", WCP_FOLDER); ?></div>
|
1315 |
+
<div class="import-plugin-note"><?php esc_html_e("We've detected that you use another folders plugin. Would you like the Folders plugin to import your current folders? Keep in mind you can always do it in Folders Settings -> Import", WCP_FOLDER) ?></div>
|
1316 |
+
<div class="plugin-import-table">
|
1317 |
+
<div class="import-folder-table">
|
1318 |
+
<table>
|
1319 |
+
<tbody>
|
1320 |
+
<?php foreach ($plugin_info as $slug=>$plugin) {
|
1321 |
+
if($plugin['is_exists']) { ?>
|
1322 |
+
<tr class="other-plugins-<?php echo esc_attr__($slug) ?>" data-plugin="<?php echo esc_attr__($slug) ?>" data-nonce="<?php echo wp_create_nonce("import_data_from_".$slug) ?>" data-folders="<?php echo esc_attr($plugin['total_folders']) ?>" data-attachments="<?php echo esc_attr($plugin['total_attachments']) ?>">
|
1323 |
+
<th class="plugin-name"><?php echo esc_attr__($plugin['name']) ?></th>
|
1324 |
+
<td>
|
1325 |
+
<button type="button" class="button button-primary import-folder-data in-popup"><?php esc_html_e("Import", "folders"); ?> <span class="spinner"></span></button>
|
1326 |
+
<span class="import-message"><?php printf(esc_html__("%s folder%s and %s attachment%s", "folders"), "<b>".$plugin['total_folders']."</b>", ($plugin['total_folders']>1)?esc_html__("s"):"" ,"<b>".$plugin['total_attachments']."</b>", ($plugin['total_attachments']>1)?esc_html__("s"):"") ?></span>
|
1327 |
+
</td>
|
1328 |
+
</tr>
|
1329 |
+
<?php }
|
1330 |
+
} ?>
|
1331 |
+
</tbody>
|
1332 |
+
</table>
|
1333 |
+
</div>
|
1334 |
+
</div>
|
1335 |
+
<div class="folder-form-buttons">
|
1336 |
+
<div class=""></div>
|
1337 |
+
<a href="javascript:;" id="cancel-plugin-import" class="form-cancel-btn"><?php esc_html_e("Close", WCP_FOLDER); ?></a>
|
1338 |
+
</div>
|
1339 |
+
</div>
|
1340 |
+
</div>
|
1341 |
+
</div>
|
1342 |
+
<?php
|
1343 |
+
if($option != "show") {
|
1344 |
+
update_option("folder_redirect_status", 3);
|
1345 |
+
}
|
1346 |
+
} ?>
|
1347 |
+
<div class="folder-popup-form" id="no-more-folder-credit">
|
1348 |
+
<div class="popup-form-content">
|
1349 |
+
<div class="popup-content">
|
1350 |
+
<div class="close-popup-button">
|
1351 |
+
<a class="" href="javascript:;"><span></span></a>
|
1352 |
+
</div>
|
1353 |
+
<div class="add-update-folder-title" id="folder-limitation-message">
|
1354 |
+
You've reached the 10 folder limitation!
|
1355 |
+
</div>
|
1356 |
+
<div class="folder-form-message">
|
1357 |
+
Unlock unlimited amount of folders by upgrading to one of our pro plans.
|
1358 |
+
</div>
|
1359 |
+
<div class="folder-form-buttons">
|
1360 |
+
<a href="javascript:;" class="form-cancel-btn">Cancel</a>
|
1361 |
+
<a href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" target="_blank" class="form-submit-btn">See Pro Plans</a>
|
1362 |
+
</div>
|
1363 |
+
</div>
|
1364 |
+
</div>
|
1365 |
+
</div>
|
templates/admin/media-replace.php
CHANGED
@@ -30,6 +30,13 @@ if(isset($thumb[0])) {
|
|
30 |
}
|
31 |
$file_parts = pathinfo($attachment->guid);
|
32 |
$file_name = $file_parts['basename'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
?>
|
34 |
<div class="wrap">
|
35 |
<h2><?php esc_html_e("Replace Media", "folders"); ?></h2>
|
@@ -53,14 +60,14 @@ $file_name = $file_parts['basename'];
|
|
53 |
<?php if (wp_attachment_is('image', $attachment_id)) { ?>
|
54 |
<?php if(!empty($url)) { ?>
|
55 |
<img src="<?php echo esc_url($url) ?>" />
|
56 |
-
<span class="image-size"><?php echo esc_attr($image_meta['width']." x ".$image_meta['height']) ?></span>
|
57 |
<?php } ?>
|
58 |
<?php } else { ?>
|
59 |
<span class="dashicons dashicons-media-document"></span>
|
60 |
<?php } ?>
|
61 |
</div>
|
62 |
<?php if(!empty($size)) { ?>
|
63 |
-
<div class="file-size"
|
64 |
<?php } ?>
|
65 |
</div>
|
66 |
<div class="new-image-box">
|
@@ -75,11 +82,14 @@ $file_name = $file_parts['basename'];
|
|
75 |
<div class="drag-and-drop-title">
|
76 |
<span><?php echo esc_html_e("Click here to upload file", "folders") ?></span>
|
77 |
</div>
|
|
|
|
|
|
|
78 |
</div>
|
79 |
</div>
|
80 |
</div>
|
81 |
</div>
|
82 |
-
<div class="file-size"
|
83 |
</div>
|
84 |
<div class="clearfix"></div>
|
85 |
</div>
|
30 |
}
|
31 |
$file_parts = pathinfo($attachment->guid);
|
32 |
$file_name = $file_parts['basename'];
|
33 |
+
|
34 |
+
$customize_folders = get_option("customize_folders");
|
35 |
+
if(isset($customize_folders['show_folder_in_settings']) && $customize_folders['show_folder_in_settings'] == "yes") {
|
36 |
+
$upgradeURL = admin_url("options-general.php?page=wcp_folders_settings&setting_page=upgrade-to-pro");
|
37 |
+
} else {
|
38 |
+
$upgradeURL = admin_url("admin.php?page=folders-upgrade-to-pro");
|
39 |
+
}
|
40 |
?>
|
41 |
<div class="wrap">
|
42 |
<h2><?php esc_html_e("Replace Media", "folders"); ?></h2>
|
60 |
<?php if (wp_attachment_is('image', $attachment_id)) { ?>
|
61 |
<?php if(!empty($url)) { ?>
|
62 |
<img src="<?php echo esc_url($url) ?>" />
|
63 |
+
<span class="image-size"><?php echo esc_attr($image_meta['width']." PX x ".$image_meta['height'])." PX" ?></span>
|
64 |
<?php } ?>
|
65 |
<?php } else { ?>
|
66 |
<span class="dashicons dashicons-media-document"></span>
|
67 |
<?php } ?>
|
68 |
</div>
|
69 |
<?php if(!empty($size)) { ?>
|
70 |
+
<div class="file-size"><a target="_blank" href="<?php echo esc_url($upgradeURL) ?>"><?php esc_html_e("Upgrade to Pro", "folders") ?></a> <?php esc_html_e("to compare file size", "folders") ?></div>
|
71 |
<?php } ?>
|
72 |
</div>
|
73 |
<div class="new-image-box">
|
82 |
<div class="drag-and-drop-title">
|
83 |
<span><?php echo esc_html_e("Click here to upload file", "folders") ?></span>
|
84 |
</div>
|
85 |
+
<div class="upgrade-btn-box">
|
86 |
+
<a target="_blank" href="<?php echo esc_url($upgradeURL) ?>"><?php esc_html_e("Upgrade to Pro", "folders") ?></a>
|
87 |
+
</div>
|
88 |
</div>
|
89 |
</div>
|
90 |
</div>
|
91 |
</div>
|
92 |
+
<div class="file-size hide-it"><a target="_blank" href="<?php echo esc_url($upgradeURL) ?>"><?php esc_html_e("Upgrade to Pro", "folders") ?></a> <?php esc_html_e("to compare file size", "folders") ?></div>
|
93 |
</div>
|
94 |
<div class="clearfix"></div>
|
95 |
</div>
|
templates/admin/upgrade-table.php
CHANGED
@@ -23,12 +23,18 @@ $pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opt
|
|
23 |
<div class="price-table-middle">
|
24 |
<ul>
|
25 |
<li><a href="javascript:;" class="cus-tooltip">1 website <span class="has-tooltip">*</span><span class="tooltip__content">Use Folders on 1 domain</span></a></li>
|
26 |
-
<li><a href="javascript:;">Organize
|
27 |
-
<li><a href="javascript:;" class="cus-tooltip">Unlimited
|
28 |
-
<li><a href="javascript:;" class="cus-tooltip">
|
29 |
-
<li><a href="javascript:;" class="cus-tooltip">
|
30 |
-
<li><a href="javascript:;" class="cus-tooltip">
|
31 |
-
<li><a href="javascript:;" class="cus-tooltip">
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
</ul>
|
33 |
</div>
|
34 |
<div class="price-table-bottom">
|
@@ -41,6 +47,7 @@ $pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opt
|
|
41 |
</div>
|
42 |
<a class="cart-link" target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options%5Bprice_id%5D=1">Buy now</a>
|
43 |
</div>
|
|
|
44 |
</div>
|
45 |
</div>
|
46 |
<div class="col-md-4 col-sm-12">
|
@@ -56,12 +63,18 @@ $pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opt
|
|
56 |
<div class="price-table-middle">
|
57 |
<ul>
|
58 |
<li><a href="javascript:;" class="cus-tooltip">5 website <span class="has-tooltip">*</span><span class="tooltip__content">Use Folders on 5 domains</span></a></li>
|
59 |
-
<li><a href="javascript:;">Organize
|
60 |
-
<li><a href="javascript:;" class="cus-tooltip">Unlimited
|
61 |
-
<li><a href="javascript:;" class="cus-tooltip">
|
62 |
-
<li><a href="javascript:;" class="cus-tooltip">
|
63 |
-
<li><a href="javascript:;" class="cus-tooltip">
|
64 |
-
<li><a href="javascript:;" class="cus-tooltip">
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
</ul>
|
66 |
</div>
|
67 |
<div class="price-table-bottom">
|
@@ -74,6 +87,7 @@ $pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opt
|
|
74 |
</div>
|
75 |
<a class="cart-link" target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options%5Bprice_id%5D=2">Buy now</a>
|
76 |
</div>
|
|
|
77 |
</div>
|
78 |
</div>
|
79 |
<div class="col-md-4 col-sm-12">
|
@@ -97,12 +111,18 @@ $pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opt
|
|
97 |
</select>
|
98 |
</div>
|
99 |
</li>
|
100 |
-
<li><a href="javascript:;">Organize
|
101 |
-
<li><a href="javascript:;" class="cus-tooltip">Unlimited
|
102 |
-
<li><a href="javascript:;" class="cus-tooltip">
|
103 |
-
<li><a href="javascript:;" class="cus-tooltip">
|
104 |
-
<li><a href="javascript:;" class="cus-tooltip">
|
105 |
-
<li><a href="javascript:;" class="cus-tooltip">
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
</ul>
|
107 |
</div>
|
108 |
<div class="price-table-bottom">
|
@@ -115,6 +135,7 @@ $pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opt
|
|
115 |
</div>
|
116 |
<a class="cart-link" target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options%5Bprice_id%5D=10">Buy now</a>
|
117 |
</div>
|
|
|
118 |
</div>
|
119 |
</div>
|
120 |
</div>
|
@@ -147,57 +168,138 @@ $pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opt
|
|
147 |
</div>
|
148 |
<script src="<?php echo esc_url(WCP_FOLDER_URL."assets/js/select2.min.js?ver=".WCP_FOLDER_VERSION) ?>" type="text/javascript" ></script>
|
149 |
<script>
|
150 |
-
|
151 |
-
|
152 |
-
if(
|
153 |
-
|
154 |
-
minimumResultsForSearch: -1
|
155 |
-
});
|
156 |
}
|
157 |
-
if(
|
158 |
-
|
159 |
-
|
160 |
-
|
|
|
161 |
}
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
}
|
178 |
}
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
189 |
}
|
190 |
-
|
191 |
-
|
192 |
-
jQuery(this).closest(".price-table").find(".price-offer").html(priceText);
|
193 |
});
|
194 |
|
195 |
-
|
196 |
-
|
197 |
});
|
198 |
|
199 |
-
|
200 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
201 |
}
|
202 |
-
});
|
203 |
</script>
|
23 |
<div class="price-table-middle">
|
24 |
<ul>
|
25 |
<li><a href="javascript:;" class="cus-tooltip">1 website <span class="has-tooltip">*</span><span class="tooltip__content">Use Folders on 1 domain</span></a></li>
|
26 |
+
<li><a href="javascript:;">Organize pages, posts, and media files</a></li>
|
27 |
+
<li><a href="javascript:;" class="cus-tooltip">Unlimited subfolders (with multilevel support)<span class="has-tooltip">*</span><span class="tooltip__content">Create unlimited folders, sub-folders with multi-level support</span></a></li>
|
28 |
+
<li><a href="javascript:;" class="cus-tooltip">Create folders for each post type. I.e. WooCommerce, Elementor<span class="has-tooltip">*</span><span class="tooltip__content">Use folders with other plugins that have custom post type (e.g. Elementor templates, WooCommerce & more)</span></a></li>
|
29 |
+
<li><a href="javascript:;" class="cus-tooltip">Metadata details on Media Library hover<span class="has-tooltip">*</span><span class="tooltip__content">Show useful metadata including title, size, type, date, dimension & more on hover.</span></a></li>
|
30 |
+
<li><a href="javascript:;" class="cus-tooltip">Sort folders based on the date<span class="has-tooltip">*</span><span class="tooltip__content">Sort folders based on the creation date of the folders</span></a></li>
|
31 |
+
<li><a href="javascript:;" class="cus-tooltip">Replace media of all types and compare them while replacing<span class="has-tooltip">*</span><span class="tooltip__content">Replace all types of media files including PDF/SVG/ZIP/DOCX/XSLX & more. While replacing compare the two files side by side</span></a></li>
|
32 |
+
<li><a href="javascript:;" class="cus-tooltip">Default folder while uploading media<span class="has-tooltip">*</span><span class="tooltip__content">Upload files to a default folder if no other folder is selected while uploading</span></a></li>
|
33 |
+
<li><a href="javascript:;" class="cus-tooltip">Sticky folders & folder bookmarking<span class="has-tooltip">*</span><span class="tooltip__content">Pin selected folders on top of the navigation for easier access</span></a></li>
|
34 |
+
<li><a href="javascript:;" class="cus-tooltip">Duplicate folders<span class="has-tooltip">*</span><span class="tooltip__content">Duplicate an existing folder with all its content</span></a></li>
|
35 |
+
<li><a href="javascript:;" class="cus-tooltip">Lock/Unlock folders<span class="has-tooltip">*</span><span class="tooltip__content">Locked folders stay pinned, and cannot be dragged or deleted</span></a></li>
|
36 |
+
<li><a href="javascript:;" class="cus-tooltip">Customize folder styles with fonts, custom colors & more<span class="has-tooltip">*</span><span class="tooltip__content">Customize folders with your preferred colors, font size, font family & more</span></a></li>
|
37 |
+
<li><a href="javascript:;" class="cus-tooltip">Download folders as ZIP<span class="has-tooltip">*</span><span class="tooltip__content">Download all contents of a folder as a ZIP</span></a></li>
|
38 |
</ul>
|
39 |
</div>
|
40 |
<div class="price-table-bottom">
|
47 |
</div>
|
48 |
<a class="cart-link" target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options%5Bprice_id%5D=1">Buy now</a>
|
49 |
</div>
|
50 |
+
<div class="bottom-position"></div>
|
51 |
</div>
|
52 |
</div>
|
53 |
<div class="col-md-4 col-sm-12">
|
63 |
<div class="price-table-middle">
|
64 |
<ul>
|
65 |
<li><a href="javascript:;" class="cus-tooltip">5 website <span class="has-tooltip">*</span><span class="tooltip__content">Use Folders on 5 domains</span></a></li>
|
66 |
+
<li><a href="javascript:;">Organize pages, posts, and media files</a></li>
|
67 |
+
<li><a href="javascript:;" class="cus-tooltip">Unlimited subfolders (with multilevel support)<span class="has-tooltip">*</span><span class="tooltip__content">Create unlimited folders, sub-folders with multi-level support</span></a></li>
|
68 |
+
<li><a href="javascript:;" class="cus-tooltip">Create folders for each post type. I.e. WooCommerce, Elementor<span class="has-tooltip">*</span><span class="tooltip__content">Use folders with other plugins that have custom post type (e.g. Elementor templates, WooCommerce & more)</span></a></li>
|
69 |
+
<li><a href="javascript:;" class="cus-tooltip">Metadata details on Media Library hover<span class="has-tooltip">*</span><span class="tooltip__content">Show useful metadata including title, size, type, date, dimension & more on hover.</span></a></li>
|
70 |
+
<li><a href="javascript:;" class="cus-tooltip">Sort folders based on the date<span class="has-tooltip">*</span><span class="tooltip__content">Sort folders based on the creation date of the folders</span></a></li>
|
71 |
+
<li><a href="javascript:;" class="cus-tooltip">Replace media of all types and compare them while replacing<span class="has-tooltip">*</span><span class="tooltip__content">Replace all types of media files including PDF/SVG/ZIP/DOCX/XSLX & more. While replacing compare the two files side by side</span></a></li>
|
72 |
+
<li><a href="javascript:;" class="cus-tooltip">Default folder while uploading media<span class="has-tooltip">*</span><span class="tooltip__content">Upload files to a default folder if no other folder is selected while uploading</span></a></li>
|
73 |
+
<li><a href="javascript:;" class="cus-tooltip">Sticky folders & folder bookmarking<span class="has-tooltip">*</span><span class="tooltip__content">Pin selected folders on top of the navigation for easier access</span></a></li>
|
74 |
+
<li><a href="javascript:;" class="cus-tooltip">Duplicate folders<span class="has-tooltip">*</span><span class="tooltip__content">Duplicate an existing folder with all its content</span></a></li>
|
75 |
+
<li><a href="javascript:;" class="cus-tooltip">Lock/Unlock folders<span class="has-tooltip">*</span><span class="tooltip__content">Locked folders stay pinned, and cannot be dragged or deleted</span></a></li>
|
76 |
+
<li><a href="javascript:;" class="cus-tooltip">Customize folder styles with fonts, custom colors & more<span class="has-tooltip">*</span><span class="tooltip__content">Customize folders with your preferred colors, font size, font family & more</span></a></li>
|
77 |
+
<li><a href="javascript:;" class="cus-tooltip">Download folders as ZIP<span class="has-tooltip">*</span><span class="tooltip__content">Download all contents of a folder as a ZIP</span></a></li>
|
78 |
</ul>
|
79 |
</div>
|
80 |
<div class="price-table-bottom">
|
87 |
</div>
|
88 |
<a class="cart-link" target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options%5Bprice_id%5D=2">Buy now</a>
|
89 |
</div>
|
90 |
+
<div class="bottom-position"></div>
|
91 |
</div>
|
92 |
</div>
|
93 |
<div class="col-md-4 col-sm-12">
|
111 |
</select>
|
112 |
</div>
|
113 |
</li>
|
114 |
+
<li><a href="javascript:;">Organize pages, posts, and media files</a></li>
|
115 |
+
<li><a href="javascript:;" class="cus-tooltip">Unlimited subfolders (with multilevel support)<span class="has-tooltip">*</span><span class="tooltip__content">Create unlimited folders, sub-folders with multi-level support</span></a></li>
|
116 |
+
<li><a href="javascript:;" class="cus-tooltip">Create folders for each post type. I.e. WooCommerce, Elementor<span class="has-tooltip">*</span><span class="tooltip__content">Use folders with other plugins that have custom post type (e.g. Elementor templates, WooCommerce & more)</span></a></li>
|
117 |
+
<li><a href="javascript:;" class="cus-tooltip">Metadata details on Media Library hover<span class="has-tooltip">*</span><span class="tooltip__content">Show useful metadata including title, size, type, date, dimension & more on hover.</span></a></li>
|
118 |
+
<li><a href="javascript:;" class="cus-tooltip">Sort folders based on the date<span class="has-tooltip">*</span><span class="tooltip__content">Sort folders based on the creation date of the folders</span></a></li>
|
119 |
+
<li><a href="javascript:;" class="cus-tooltip">Replace media of all types and compare them while replacing<span class="has-tooltip">*</span><span class="tooltip__content">Replace all types of media files including PDF/SVG/ZIP/DOCX/XSLX & more. While replacing compare the two files side by side</span></a></li>
|
120 |
+
<li><a href="javascript:;" class="cus-tooltip">Default folder while uploading media<span class="has-tooltip">*</span><span class="tooltip__content">Upload files to a default folder if no other folder is selected while uploading</span></a></li>
|
121 |
+
<li><a href="javascript:;" class="cus-tooltip">Sticky folders & folder bookmarking<span class="has-tooltip">*</span><span class="tooltip__content">Pin selected folders on top of the navigation for easier access</span></a></li>
|
122 |
+
<li><a href="javascript:;" class="cus-tooltip">Duplicate folders<span class="has-tooltip">*</span><span class="tooltip__content">Duplicate an existing folder with all its content</span></a></li>
|
123 |
+
<li><a href="javascript:;" class="cus-tooltip">Lock/Unlock folders<span class="has-tooltip">*</span><span class="tooltip__content">Locked folders stay pinned, and cannot be dragged or deleted</span></a></li>
|
124 |
+
<li><a href="javascript:;" class="cus-tooltip">Customize folder styles with fonts, custom colors & more<span class="has-tooltip">*</span><span class="tooltip__content">Customize folders with your preferred colors, font size, font family & more</span></a></li>
|
125 |
+
<li><a href="javascript:;" class="cus-tooltip">Download folders as ZIP<span class="has-tooltip">*</span><span class="tooltip__content">Download all contents of a folder as a ZIP</span></a></li>
|
126 |
</ul>
|
127 |
</div>
|
128 |
<div class="price-table-bottom">
|
135 |
</div>
|
136 |
<a class="cart-link" target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options%5Bprice_id%5D=10">Buy now</a>
|
137 |
</div>
|
138 |
+
<div class="bottom-position"></div>
|
139 |
</div>
|
140 |
</div>
|
141 |
</div>
|
168 |
</div>
|
169 |
<script src="<?php echo esc_url(WCP_FOLDER_URL."assets/js/select2.min.js?ver=".WCP_FOLDER_VERSION) ?>" type="text/javascript" ></script>
|
170 |
<script>
|
171 |
+
(function (factory) {
|
172 |
+
"use strict";
|
173 |
+
if (typeof define === 'function' && define.amd) {
|
174 |
+
define(['jquery'], factory);
|
|
|
|
|
175 |
}
|
176 |
+
else if(typeof module !== 'undefined' && module.exports) {
|
177 |
+
module.exports = factory(require('jquery'));
|
178 |
+
}
|
179 |
+
else {
|
180 |
+
factory(jQuery);
|
181 |
}
|
182 |
+
}(function ($, undefined) {
|
183 |
+
var priceOptions = {
|
184 |
+
"50_websites": {
|
185 |
+
"1_year": {
|
186 |
+
"price": 99,
|
187 |
+
"link": "https:\/\/go.premio.io\/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=10"
|
188 |
+
},
|
189 |
+
"2_year": {
|
190 |
+
"price": 149,
|
191 |
+
"link": "https:\/\/go.premio.io\/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=15"
|
192 |
+
},
|
193 |
+
"lifetime": {
|
194 |
+
"price": 249,
|
195 |
+
"link": "https:\/\/go.premio.io\/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=12"
|
196 |
+
}
|
197 |
+
},
|
198 |
+
"500_websites": {
|
199 |
+
"1_year": {
|
200 |
+
"price": 179,
|
201 |
+
"link": "https:\/\/go.premio.io\/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=16"
|
202 |
+
},
|
203 |
+
"2_year": {
|
204 |
+
"price": 269,
|
205 |
+
"link": "https:\/\/go.premio.io\/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=17"
|
206 |
+
},
|
207 |
+
"lifetime": {
|
208 |
+
"price": 449,
|
209 |
+
"link": "https:\/\/go.premio.io\/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=18"
|
210 |
+
}
|
211 |
+
},
|
212 |
+
"1000_websites": {
|
213 |
+
"1_year": {
|
214 |
+
"price": 249,
|
215 |
+
"link": "https:\/\/go.premio.io\/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=19"
|
216 |
+
},
|
217 |
+
"2_year": {
|
218 |
+
"price": 375,
|
219 |
+
"link": "https:\/\/go.premio.io\/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=20"
|
220 |
+
},
|
221 |
+
"lifetime": {
|
222 |
+
"price": 619,
|
223 |
+
"link": "https:\/\/go.premio.io\/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=21"
|
224 |
}
|
225 |
}
|
226 |
+
};
|
227 |
+
$(document).ready(function () {
|
228 |
+
if ($(".multiple-options").length) {
|
229 |
+
$(".multiple-options").select2({
|
230 |
+
minimumResultsForSearch: -1
|
231 |
+
});
|
232 |
+
}
|
233 |
+
if ($(".multiple-web-options").length) {
|
234 |
+
$(".multiple-web-options").select2({
|
235 |
+
minimumResultsForSearch: -1
|
236 |
+
});
|
237 |
+
}
|
238 |
+
$(document).on("change", ".multiple-options", function () {
|
239 |
+
priceText = $(this).find("option:selected").attr("data-header");
|
240 |
+
thisValue = $(this).val();
|
241 |
+
thisPrice = $(this).find("option:selected").attr("data-price");
|
242 |
+
if (!$(this).hasClass("has-multiple-websites")) {
|
243 |
+
$(this).closest(".price-table").find("a.cart-link").attr("href", thisValue);
|
244 |
+
$(this).closest(".price-table").find(".plan-price").text("$" + thisPrice);
|
245 |
+
} else {
|
246 |
+
var webOption = $(".multiple-web-options").val();
|
247 |
+
var priceSettings = priceOptions[webOption];
|
248 |
+
var yearPlan = $(".multiple-options.has-multiple-websites option:selected").attr("data-option");
|
249 |
+
if (priceSettings[yearPlan] != undefined) {
|
250 |
+
priceSettings = priceSettings[yearPlan];
|
251 |
+
thisValue = priceSettings.link;
|
252 |
+
thisPrice = priceSettings.price;
|
253 |
+
}
|
254 |
+
}
|
255 |
+
thisOption = $(this).find("option:selected").attr("data-option");
|
256 |
+
if (thisOption == "1_year") {
|
257 |
+
thisPrice = thisPrice + "<span>/year</span>";
|
258 |
+
priceText = "Renewals for <b>25% off</b>";
|
259 |
+
} else if (thisOption == "2_year") {
|
260 |
+
thisPrice = thisPrice + "<span>/2 years</span>";
|
261 |
+
priceText = "Renewals for <b>25% off</b>";
|
262 |
+
} else {
|
263 |
+
thisPrice = thisPrice + "<span>/lifetime</span>";
|
264 |
+
priceText = "For lifetime";
|
265 |
+
}
|
266 |
+
$(this).closest(".price-table").find("a.cart-link").attr("href", thisValue);
|
267 |
+
$(this).closest(".price-table").find(".plan-price").html("$" + thisPrice);
|
268 |
+
$(this).closest(".price-table").find(".price-offer").html(priceText);
|
269 |
+
});
|
270 |
+
|
271 |
+
$(document).on("change", ".multiple-web-options", function () {
|
272 |
+
$(".multiple-options.has-multiple-websites").trigger("change");
|
273 |
+
});
|
274 |
+
|
275 |
+
if ($(".multiple-options.has-multiple-websites").length) {
|
276 |
+
$(".multiple-options.has-multiple-websites").trigger("change");
|
277 |
}
|
278 |
+
|
279 |
+
checkForPricingPos();
|
|
|
280 |
});
|
281 |
|
282 |
+
$(window).on("scroll", function(){
|
283 |
+
checkForPricingPos();
|
284 |
});
|
285 |
|
286 |
+
$(window).on("resize", function(){
|
287 |
+
checkForPricingPos();
|
288 |
+
});
|
289 |
+
|
290 |
+
function checkForPricingPos() {
|
291 |
+
$(".bottom-position").each(function(){
|
292 |
+
console.log($(this).offset().top - $(window).scrollTop() - $(window).height());
|
293 |
+
if($(this).offset().top - $(window).scrollTop() - $(window).height() < -3) {
|
294 |
+
$(this).closest(".price-table").removeClass("is-fixed");
|
295 |
+
$(this).closest(".price-table").find(".price-table-bottom").prop("style", "");
|
296 |
+
} else {
|
297 |
+
$(this).closest(".price-table").addClass("is-fixed");
|
298 |
+
$(this).closest(".price-table").find(".price-table-bottom").css("top", ($(window).height() - 125 )+"px");
|
299 |
+
$(this).closest(".price-table").find(".price-table-bottom").css("left", $(this).offset().left+"px");
|
300 |
+
$(this).closest(".price-table").find(".price-table-bottom").outerWidth($(this).closest(".price-table").width());
|
301 |
+
}
|
302 |
+
});
|
303 |
}
|
304 |
+
}));
|
305 |
</script>
|