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

Version Description

UI & performance improvements. We've also fixed some bugs

Download this release

Release Info

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

Code changes from version 2.6.9 to 2.7

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;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}.html-tooltip{position:relative;display:inline-block;margin:0;padding:0;line-height:1;width:auto;height:20px;vertical-align:middle}.html-tooltip .tooltip-text{visibility:hidden;width:300px;background-color:#1849ab;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.side .tooltip-text{bottom:125%;left:100%;margin-left:0;top:5px;transform:translateY(-50%);-webkit-transform:translateY(-50%)}.html-tooltip.dynamic .tooltip-text{height:490px}.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.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:#1849ab transparent transparent transparent;transform:rotate(180deg);-webkit-transform:rotate(180deg)}.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:after{display:none}@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}}
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}.html-tooltip{position:relative;display:inline-block;margin:0;padding:0;line-height:1;width:auto;height:20px;vertical-align:middle}.html-tooltip .tooltip-text{visibility:hidden;width:300px;background-color:#1849ab;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.side .tooltip-text{bottom:125%;left:100%;margin-left:0;top:5px;transform:translateY(-50%);-webkit-transform:translateY(-50%)}.html-tooltip.dynamic .tooltip-text{height:490px}.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.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:#1849ab transparent transparent transparent;transform:rotate(180deg);-webkit-transform:rotate(180deg)}.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:after{display:none}.pricing-table-body{display:flex;align-items:center}.pricing-table-content{flex:1;text-align:center;background:#f8fafc;min-height:86px;line-height:20px;padding:10px 0;border-bottom:solid 2px #f8fafc;align-items:center;font-size:16px;cursor:pointer;position:relative;transition:all .25s linear}.pricing-table-content:before{left:auto;right:0}.pricing-table-header{width:720px;margin:40px auto 50px}.pricing-discount-col span{display:inline-block;padding:0 8px;background:#94a3b8;font-size:14px;line-height:20px;color:#fff;border-radius:20px;margin:4px 0 0;transition:all .2s linear}.pricing-table-content.active,.pricing-table-content:hover{border-bottom:2px solid #3c85f7;color:#3c85f7;background:#fff}.pricing-table-content.active{box-shadow:0 10px 15px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05)}.pricing-table-content.second{border-left:1px solid #cbd5e1;border-right:1px solid #cbd5e1}.pricing-table-content.second.active .pricing-discount-col span,.pricing-table-content.second:hover .pricing-discount-col span{color:#fff;background:#ef8c6a}.pricing-table-content.third.active .pricing-discount-col span,.pricing-table-content.third:hover .pricing-discount-col span{background:#605dec;color:#fff}.pricing-table-content.first{padding:23px 0 0}.year-col{font-weight:700}@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
@@ -18,7 +18,6 @@
18
  margin: 0;
19
  padding: 0;
20
  top: 0;
21
- margin-top: 0;
22
  max-height: 100% !important;
23
  width: 100%;
24
  border-radius: 2px;
@@ -114,6 +113,9 @@ li.active > span > i.fa-folder:before {
114
  -webkit-transition: all .15s linear;
115
  -moz-transition: all .15s linear;
116
  }
 
 
 
117
  html[dir=rtl] .wcp-content {
118
  left: auto;
119
  right: 160px
@@ -347,7 +349,7 @@ body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon .pfolder-fol
347
  }
348
  .form-options {
349
  background: #fff;
350
- padding: 5px;
351
  margin: 0 0;
352
  border-radius: 4px;
353
  box-shadow: 0px 4px 21px rgba(7, 16, 28, 0.1);
@@ -372,10 +374,10 @@ body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon .pfolder-fol
372
  .form-options > ul > li > a {
373
  display: inline-block;
374
  text-decoration: none;
375
- padding: 5px 5px;
376
  color: #000;
377
  vertical-align: middle;
378
- margin: 0 0 5px 0;
379
  background: #F1F1F1;
380
  border-radius: 4px;
381
  }
@@ -394,11 +396,10 @@ a#expand-collapse-list.all-open span {
394
  color: #ffffff
395
  }
396
  .form-options > ul > li > a.expand-collapse {
397
- width: 14px;
398
  text-align: center;
399
  }
400
  .form-options a.expand-collapse span.icon {
401
- font-size: 10px;
402
  }
403
  .form-options span.icon {
404
  font-size: 12px;
@@ -485,7 +486,7 @@ span.total-count {
485
  left: auto;
486
  right: 5px;
487
  background: #fff;
488
- width: 170px;
489
  padding: 0;
490
  z-index: 1000001;
491
  -webkit-box-shadow: 0 0 5px 0 rgba(0, 0, 0, .25);
@@ -509,12 +510,13 @@ span.total-count {
509
  }
510
  .dynamic-menu a {
511
  text-decoration: none;
512
- color: #333333;
513
  position: relative;
514
  display: block;
515
  padding: 5px 10px;
516
  line-height: 18px;
517
- white-space: nowrap
 
 
518
  }
519
  .dynamic-menu ul > li > a > span, .dynamic-menu ul > li > a > span span {
520
  position: relative !important;
@@ -538,6 +540,10 @@ span.total-count {
538
  #custom-menu .dynamic-menu ul > li > a .sticky-pin i {
539
  font-size: 16px !important;
540
  }
 
 
 
 
541
  .dynamic-menu ul > li > a > span span {
542
  top: auto;
543
  height: auto;
@@ -1275,7 +1281,7 @@ span.media-info-message.active {
1275
  }
1276
  .folder-form-message {
1277
  font-size: 15px;
1278
- line-height: 18px;
1279
  color: #4A5568;
1280
  padding: 25px 70px;
1281
  }
@@ -1598,8 +1604,7 @@ span.folder-count:empty {
1598
  -webkit-filter: invert(0%);
1599
  }
1600
  .form-options > ul > li.last > a.sort-folder-order {
1601
- width: 28px;
1602
- padding: 5px;
1603
  text-align: center;
1604
  display: inline-block;
1605
  box-sizing: border-box;
@@ -1617,7 +1622,7 @@ span.folder-count:empty {
1617
  }
1618
  .folder-sort-menu {
1619
  position: absolute;
1620
- right: 0;
1621
  width: 120px;
1622
  z-index: 101;
1623
  background: #fff;
@@ -1857,6 +1862,20 @@ span.pro-tip {
1857
  color: #fff;
1858
  border-radius: 4px;
1859
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1860
  @media screen and (max-width: 960px) {
1861
  .wcp-content {
1862
  left: 36px
@@ -1904,3 +1923,4 @@ span.pro-tip {
1904
  }
1905
  }
1906
 
 
18
  margin: 0;
19
  padding: 0;
20
  top: 0;
 
21
  max-height: 100% !important;
22
  width: 100%;
23
  border-radius: 2px;
113
  -webkit-transition: all .15s linear;
114
  -moz-transition: all .15s linear;
115
  }
116
+ body.add-folder-zindex .wcp-content {
117
+ z-index: 10000;
118
+ }
119
  html[dir=rtl] .wcp-content {
120
  left: auto;
121
  right: 160px
349
  }
350
  .form-options {
351
  background: #fff;
352
+ padding: 0 5px 5px 5px;
353
  margin: 0 0;
354
  border-radius: 4px;
355
  box-shadow: 0px 4px 21px rgba(7, 16, 28, 0.1);
374
  .form-options > ul > li > a {
375
  display: inline-block;
376
  text-decoration: none;
377
+ padding: 5px 7px;
378
  color: #000;
379
  vertical-align: middle;
380
+ margin: 0;
381
  background: #F1F1F1;
382
  border-radius: 4px;
383
  }
396
  color: #ffffff
397
  }
398
  .form-options > ul > li > a.expand-collapse {
 
399
  text-align: center;
400
  }
401
  .form-options a.expand-collapse span.icon {
402
+ font-size: 6px;
403
  }
404
  .form-options span.icon {
405
  font-size: 12px;
486
  left: auto;
487
  right: 5px;
488
  background: #fff;
489
+ width: 235px;
490
  padding: 0;
491
  z-index: 1000001;
492
  -webkit-box-shadow: 0 0 5px 0 rgba(0, 0, 0, .25);
510
  }
511
  .dynamic-menu a {
512
  text-decoration: none;
 
513
  position: relative;
514
  display: block;
515
  padding: 5px 10px;
516
  line-height: 18px;
517
+ white-space: nowrap;
518
+ font-size: 13px;
519
+ color: #333;
520
  }
521
  .dynamic-menu ul > li > a > span, .dynamic-menu ul > li > a > span span {
522
  position: relative !important;
540
  #custom-menu .dynamic-menu ul > li > a .sticky-pin i {
541
  font-size: 16px !important;
542
  }
543
+ .dynamic-menu ul > li > a > span.dashicons {
544
+ font-size: 18px;
545
+ text-align: left;
546
+ }
547
  .dynamic-menu ul > li > a > span span {
548
  top: auto;
549
  height: auto;
1281
  }
1282
  .folder-form-message {
1283
  font-size: 15px;
1284
+ line-height: 20px;
1285
  color: #4A5568;
1286
  padding: 25px 70px;
1287
  }
1604
  -webkit-filter: invert(0%);
1605
  }
1606
  .form-options > ul > li.last > a.sort-folder-order {
1607
+ padding: 5px 10px;
 
1608
  text-align: center;
1609
  display: inline-block;
1610
  box-sizing: border-box;
1622
  }
1623
  .folder-sort-menu {
1624
  position: absolute;
1625
+ left: 0;
1626
  width: 120px;
1627
  z-index: 101;
1628
  background: #fff;
1862
  color: #fff;
1863
  border-radius: 4px;
1864
  }
1865
+ select#media-attachment-dynamic-filter {
1866
+ display: none !important;
1867
+ }
1868
+ .dynamic-tree-data-separator {
1869
+ margin: 7px 10px 10px;
1870
+ height: 1px;
1871
+ background: #E9E5E5;
1872
+ }
1873
+ #custom-scroll-menu .mCSB_container {
1874
+ background: #fff;
1875
+ }
1876
+ .folder-inline-tooltip span.pfolder-arrow-down {
1877
+ font-size: 6px;
1878
+ }
1879
  @media screen and (max-width: 960px) {
1880
  .wcp-content {
1881
  left: 36px
1923
  }
1924
  }
1925
 
1926
+
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;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}}
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;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}body.add-folder-zindex .wcp-content{z-index:10000}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:0 5px 5px 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 7px;color:#000;vertical-align:middle;margin: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{text-align:center}.form-options a.expand-collapse span.icon{font-size:6px}.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:235px;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;position:relative;display:block;padding:5px 10px;line-height:18px;white-space:nowrap;font-size:13px;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}.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.dashicons{font-size:18px;text-align:left}.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:20px;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{padding:5px 10px;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;left: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}select#media-attachment-dynamic-filter{display:none!important}.dynamic-tree-data-separator{margin:7px 10px 10px;height:1px;background:#e9e5e5}#custom-scroll-menu .mCSB_container{background:#fff}.folder-inline-tooltip span.pfolder-arrow-down{font-size:6px}@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/folder-icon.css CHANGED
@@ -1 +1 @@
1
- @font-face{font-family:premio-folder;src:url(../fonts/premio-folder.eot?ik78kd);src:url(../fonts/premio-folder.eot?ik78kd#iefix) format('embedded-opentype'),url(../fonts/premio-folder.ttf?ik78kd) format('truetype'),url(../fonts/premio-folder.woff?ik78kd) format('woff'),url(../fonts/premio-folder.svg?ik78kd#premio-folder) format('svg');font-weight:400;font-style:normal;font-display:block}[class*=" pfolder-"],[class^=pfolder-]{font-family:premio-folder!important;speak:never;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.pfolder-zip-file:before{content:"\e90c"}.pfolder-clone:before{content:"\e90d"}.pfolder-star:before{content:"\e900"}.pfolder-move:before{content:"\e901"}.pfolder-folder-open:before{content:"\e902"}.pfolder-edit-folder:before{content:"\e903"}.pfolder-pin:before{content:"\e904"}.pfolder-search:before{content:"\e905"}.pfolder-folder-close:before{content:"\e906"}.pfolder-arrow-sort:before{content:"\e907"}.pfolder-arrow-down:before{content:"\e908"}.pfolder-add-folder:before{content:"\e909"}.pfolder-remove:before{content:"\e90a"}.pfolder-edit:before{content:"\e90b"}
1
+ @font-face{font-family:premio-folder;src:url(../fonts/premio-folder.eot?g3btlk);src:url(../fonts/premio-folder.eot?g3btlk#iefix) format('embedded-opentype'),url(../fonts/premio-folder.ttf?g3btlk) format('truetype'),url(../fonts/premio-folder.woff?g3btlk) format('woff'),url(../fonts/premio-folder.svg?g3btlk#premio-folder) format('svg');font-weight:400;font-style:normal;font-display:block}[class*=" pfolder-"],[class^=pfolder-]{font-family:premio-folder!important;speak:never;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.pfolder-active-icon:before{content:"\e915"}.pfolder-dynamic-folder:before{content:"\e900"}.pfolder-star:before{content:"\e901"}.pfolder-move:before{content:"\e902"}.pfolder-folder-open:before{content:"\e903"}.pfolder-edit-folder:before{content:"\e904"}.pfolder-pin:before{content:"\e905"}.pfolder-search:before{content:"\e906"}.pfolder-folder-close:before{content:"\e907"}.pfolder-arrow-sort:before{content:"\e908"}.pfolder-arrow-down:before{content:"\e909"}.pfolder-add-folder:before{content:"\e90a"}.pfolder-remove:before{content:"\e90b"}.pfolder-edit:before{content:"\e90c"}.pfolder-zip-file:before{content:"\e90d"}.pfolder-clone:before{content:"\e90e"}.pfolder-copy:before{content:"\e90f"}.pfolder-cut:before{content:"\e910"}.pfolder-menu-settings:before{content:"\e911"}.pfolder-paste:before{content:"\e912"}.pfolder-undo:before{content:"\e913"}.pfolder-upload:before{content:"\e914"}.jstree-default .jstree-icon:empty{font-size:6px}
assets/css/folders.css CHANGED
@@ -5,15 +5,22 @@
5
  box-shadow: none;
6
  }
7
  #js-tree-menu {
8
- padding: 10px 10px 10px 0;
9
  background: #fff;
10
- box-shadow: 0 4px 21px rgba(7,16,28,.1);
11
  }
12
  .pfolder-folder-close {
13
  font-size: 16px;
 
 
 
 
14
  }
15
  .jstree-open > a > .pfolder-folder-close:before {
16
- content: "\e902";
 
 
 
17
  }
18
  span.folder-actions {
19
  position: absolute;
@@ -218,6 +225,19 @@ li.jstree-node .jstree-hovered .star-icon, li.jstree-node .jstree-hovered .stick
218
  position: relative;
219
  }
220
 
 
 
 
 
 
 
 
 
 
 
 
 
 
221
  .folders-undo-notification {
222
  position: fixed;
223
  right: -500px;
@@ -229,10 +249,36 @@ li.jstree-node .jstree-hovered .star-icon, li.jstree-node .jstree-hovered .stick
229
  box-shadow: 0 3px 6px -4px rgb(0 0 0 / 12%), 0 6px 16px 0 rgb(0 0 0 / 8%), 0 9px 28px 8px rgb(0 0 0 / 5%);
230
  transition: all 0.25s linear;
231
  z-index: 1001;
 
 
 
 
232
  }
233
  .folders-undo-notification.active {
234
  right: 25px;
235
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
236
  .folders-undo-header {
237
  font-weight: 500;
238
  font-size: 14px;
@@ -296,4 +342,263 @@ body.mobile .jstree-anchor span.folder-inline-edit {
296
  }
297
  body.mobile .wp-list-table tr td .wcp-move-file {
298
  opacity: 1;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
299
  }
5
  box-shadow: none;
6
  }
7
  #js-tree-menu {
8
+ padding: 0 10px 10px 0;
9
  background: #fff;
10
+ /*box-shadow: 0 4px 21px rgba(7,16,28,.1);*/
11
  }
12
  .pfolder-folder-close {
13
  font-size: 16px;
14
+ color: #334155;
15
+ }
16
+ .jstree-clicked > .pfolder-folder-close {
17
+ color: #ffffff;
18
  }
19
  .jstree-open > a > .pfolder-folder-close:before {
20
+ content: "\e903";
21
+ }
22
+ #dynamic-folders > a > i.pfolder-folder-close:before {
23
+ content: "\e900" !important;
24
  }
25
  span.folder-actions {
26
  position: absolute;
225
  position: relative;
226
  }
227
 
228
+ /* Date: Feb 2021 */
229
+ .dynamic-tree-data {
230
+ display: none;
231
+ padding: 5px 0 0 0;
232
+ }
233
+ #dynamic-tree-folders {
234
+ background: #fff;
235
+ padding: 0 10px 0 0;
236
+ }
237
+ .dynamic-folders .folder-checkbox, .dynamic-folders .folder-actions {
238
+ display: none !important;
239
+ }
240
+
241
  .folders-undo-notification {
242
  position: fixed;
243
  right: -500px;
249
  box-shadow: 0 3px 6px -4px rgb(0 0 0 / 12%), 0 6px 16px 0 rgb(0 0 0 / 8%), 0 9px 28px 8px rgb(0 0 0 / 5%);
250
  transition: all 0.25s linear;
251
  z-index: 1001;
252
+ border-left: solid 3px #1da1f4;
253
+ }
254
+ .folders-undo-notification.success {
255
+ border-left: solid 3px #70C6A3;
256
  }
257
  .folders-undo-notification.active {
258
  right: 25px;
259
  }
260
+ .folders-undo-notification.no {
261
+ border-left: solid 3px #fc5050;
262
+ }
263
+ html[dir="rtl"] .folders-undo-notification {
264
+ right: auto;
265
+ left: -500px;
266
+ border-left: none;
267
+ border-right: solid 3px #1da1f4;
268
+ }
269
+ html[dir="rtl"] .folders-undo-notification.active {
270
+ left: 25px;
271
+ }
272
+ html[dir="rtl"] .close-undo-box {
273
+ right: auto;
274
+ left: -10px;
275
+ }
276
+ html[dir="rtl"] .folders-undo-notification.success {
277
+ border-right: solid 3px #70C6A3;
278
+ }
279
+ html[dir="rtl"] .folders-undo-notification.no {
280
+ border-right: solid 3px #fc5050;
281
+ }
282
  .folders-undo-header {
283
  font-weight: 500;
284
  font-size: 14px;
342
  }
343
  body.mobile .wp-list-table tr td .wcp-move-file {
344
  opacity: 1;
345
+ }
346
+
347
+ .folders-action-menu > ul {
348
+ margin: 0;
349
+ padding: 0;
350
+ display: flex;
351
+ }
352
+ .folders-action-menu > ul > li {
353
+ display: inline-block;
354
+ margin: 0;
355
+ padding: 5px 0 10px;
356
+ flex: 1;
357
+ }
358
+ .folders-action-menu > ul > li > a:not(.no-bg), .folders-action-menu > ul > li > label {
359
+ background: #F1F1F1;
360
+ display: block;
361
+ width: 28px;
362
+ height: 28px;
363
+ line-height: 30px;
364
+ text-align: center;
365
+ text-decoration: none;
366
+ border-radius: 4px;
367
+ color: #A4C0D2;
368
+ margin: 0 auto;
369
+ font-size: 14px;
370
+ }
371
+ .folders-action-menu > ul > li > a.no-bg {
372
+ text-align: center;
373
+ display: block;
374
+ line-height: 30px;
375
+ }
376
+ .folders-action-menu > ul > li > a.disabled, .folders-action-menu > ul > li > label.disabled {
377
+ background: #f1f5f9;
378
+ color: #e2e8f0;
379
+ }
380
+
381
+ .folders-action-menu > ul > li > a:not(.disabled):hover, .folders-action-menu > ul > li > label:not(.disabled):hover {
382
+ color: #FA166B;
383
+ }
384
+ .folder-settings-btn {
385
+ position: relative;
386
+ }
387
+ .folder-setting-menu {
388
+ position: absolute;
389
+ z-index: 11;
390
+ right: -5px;
391
+ top: 100%;
392
+ width: 230px;
393
+ background: #fff;
394
+ border-radius: 0;
395
+ border: solid 1px #e9e5e5;
396
+ margin-top: 10px;
397
+ -webkit-box-shadow: 0 0 8px 0 rgb(0 0 0 / 25%);
398
+ -moz-box-shadow: 0 0 8px 0 rgba(0, 0, 0, .25);
399
+ box-shadow: 0 0 8px 0 rgb(0 0 0 / 25%);
400
+ display: none;
401
+ }
402
+ .folder-settings-btn.active .folder-setting-menu {
403
+ display: block;
404
+ }
405
+ .folder-setting-menu:before {
406
+ width: 0;
407
+ height: 0;
408
+ border-left: 5px solid transparent;
409
+ border-right: 5px solid transparent;
410
+ border-bottom: 5px solid white;
411
+ top: -5px;
412
+ right: 10px;
413
+ content: "";
414
+ position: absolute;
415
+ }
416
+
417
+ .folder-setting-menu li {
418
+ display: block;
419
+ margin: 0;
420
+ padding: 2px 0;
421
+ }
422
+ .folder-setting-menu li a, .folder-setting-menu li label {
423
+ text-decoration: none;
424
+ position: relative;
425
+ display: block;
426
+ padding: 5px 10px;
427
+ line-height: 18px;
428
+ white-space: nowrap;
429
+ font-size: 14px;
430
+ color: #7D7D7E;
431
+ }
432
+ body.folded .wcp-content {
433
+ left: 36px !important;
434
+ }
435
+ html[dir="rtl"] body.folded .wcp-content {
436
+ left: auto !important;
437
+ right: 36px !important;
438
+ }
439
+ .sr-only {
440
+ position: absolute;
441
+ width: 1px !important;
442
+ height: 1px !important;
443
+ padding: 0 !important;
444
+ margin: -1px;
445
+ overflow: hidden;
446
+ clip: rect(0,0,0,0);
447
+ border: 0 !important;
448
+ }
449
+ span.setting-checkbox {
450
+ display: block;
451
+ background: #ababab;
452
+ height: 18px;
453
+ width: 34px;
454
+ float: right;
455
+ border-radius: 9px;
456
+ color: #ffffff;
457
+ position: relative;
458
+ }
459
+ span.setting-checkbox:before {
460
+ content: "";
461
+ height: 14px;
462
+ width: 14px;
463
+ background: #fff;
464
+ border-radius: 50%;
465
+ position: absolute;
466
+ left: 2px;
467
+ top: 2px;
468
+ transition: all 0.15s linear;
469
+ }
470
+ span.setting-checkbox:after {
471
+ content: "off";
472
+ position: absolute;
473
+ width: 28px;
474
+ text-align: right;
475
+ top: 0;
476
+ left: 2px;
477
+ font-size: 10px;
478
+ line-height: 16px;
479
+ }
480
+ input:checked + span.setting-checkbox {
481
+ background: #1da1f4;
482
+ }
483
+ input:checked + span.setting-checkbox:before {
484
+ left: 18px;
485
+ }
486
+ input:checked + span.setting-checkbox:after {
487
+ text-align: left;
488
+ content: "on";
489
+ padding: 0 0 0 1px;
490
+ }
491
+ .folder-setting-menu .dashicons {
492
+ font-size: 16px;
493
+ display: inline-block;
494
+ }
495
+ span.dashicons.dashicons-cloud-upload {
496
+ line-height: 28px;
497
+ }
498
+ .dynamic-menu li.remove-folder a, .dynamic-menu li.remove-folder a:hover, .dynamic-menu li.remove-folder a:hover span i {
499
+ color: #F24141;
500
+ }
501
+ .media-toolbar.media-toolbar-mode-select .custom-media-select {
502
+ display: block !important;
503
+ }
504
+ .wcp-container .folders-action-menu .folder-tooltip.full-width:after {
505
+ width: 180px;
506
+ white-space: inherit;
507
+ line-height: 18px;
508
+ }
509
+ .wcp-container .folders-action-menu .folder-tooltip.full:after {
510
+ width: 114px;
511
+ white-space: inherit;
512
+ line-height: 18px;
513
+ }
514
+ .folder-inline-tooltip {
515
+ position: relative;
516
+ }
517
+ .folder-inline-tooltip span.inline-tooltip {
518
+ position: absolute;
519
+ width: 180px;
520
+ left: -83px;
521
+ text-align: center;
522
+ background: #333;
523
+ padding: 5px;
524
+ color: #fff;
525
+ font-size: .9em;
526
+ bottom: 46px;
527
+ z-index: 101;
528
+ -webkit-border-radius: 4px;
529
+ -moz-border-radius: 4px;
530
+ border-radius: 4px;
531
+ display: none;
532
+ line-height: 18px;
533
+ }
534
+ .folder-inline-tooltip:hover span.inline-tooltip {
535
+ display: block;
536
+ }
537
+ .folder-inline-tooltip span.inline-tooltip:after{
538
+ content: '';
539
+ position: absolute;
540
+ left: 50%;
541
+ top: 100%;
542
+ width: 0;
543
+ height: 0;
544
+ border-left: 5px solid transparent;
545
+ border-right: 5px solid transparent;
546
+ border-top: 5px solid #333333;
547
+ clear: both;
548
+ }
549
+ .folder-inline-tooltip span.inline-tooltip span {
550
+ display: block;
551
+ text-decoration: underline;
552
+ }
553
+ .folder-inline-tooltip.cut-folder-action span.inline-tooltip {
554
+ width: 124px;
555
+ left: -55px;
556
+ }
557
+ .pro-notice {
558
+ padding: 0 0 0 10px;
559
+ }
560
+ .form-options2 > ul > li {
561
+ padding: 5px 0 0 0;
562
+ }
563
+ .folders-action-menu > ul > li > a > .dashicons {
564
+ font-size: 16px;
565
+ width: auto;
566
+ height: auto;
567
+ line-height: 28px;
568
+ }
569
+ .checkbox-content {
570
+ padding: 0 0 15px 0;
571
+ }
572
+ .folder-inline-tooltip.expand-collapse span.inline-tooltip {
573
+ left: -5px;
574
+ width: 130px;
575
+ bottom: 38px;
576
+ }
577
+ .folder-inline-tooltip.expand-collapse span.inline-tooltip:after {
578
+ left: 14px;
579
+ }
580
+ .folder-inline-tooltip span.pfolder-arrow-down {
581
+ font-size: 8px !important;
582
+ }
583
+ .form-options > ul {
584
+ display: inline-flex;
585
+ vertical-align: middle;
586
+ flex: 0 0 65px;
587
+ }
588
+ .form-options > .upgrade-message {
589
+ text-align: right;
590
+ padding: 4px 0 0 0;
591
+ flex: 1;
592
+ }
593
+ .form-options.form-options2 {
594
+ display: flex;
595
+ align-items: center;
596
+ padding: 0 5px 5px 5px;
597
+ }
598
+ .folders-action-menu {
599
+ width: 100%;
600
+ max-width: 224px;
601
+ }
602
+ .dynamic-menu li.new-folder, .dynamic-menu li.new-folder-pro {
603
+ border-bottom: solid 1px #d8d8d8;
604
  }
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}.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}.folders-undo-notification{position:fixed;right:-500px;bottom:25px;width:280px;background:#fff;padding:15px;-webkit-box-shadow:0 3px 6px -4px rgb(0 0 0 / 12%),0 6px 16px 0 rgb(0 0 0 / 8%),0 9px 28px 8px rgb(0 0 0 / 5%);box-shadow:0 3px 6px -4px rgb(0 0 0 / 12%),0 6px 16px 0 rgb(0 0 0 / 8%),0 9px 28px 8px rgb(0 0 0 / 5%);transition:all .25s linear;z-index:1001}.folders-undo-notification.active{right:25px}.folders-undo-header{font-weight:500;font-size:14px;padding:0 0 3px 0}.folders-undo-body{font-size:13px;padding:0 0 5px 0}.folders-undo-footer{text-align:right;padding:5px 0 0 0}.folders-undo-footer .undo-button{background:#1da1f4;border:none;color:#fff;padding:3px 10px;font-size:12px;border-radius:2px;cursor:pointer}.folders-undo-body{position:relative}.close-undo-box{position:absolute;right:-10px;top:0;width:16px;height:16px;transition:all .25s linear}.close-undo-box:hover{transform:rotate(180deg)}.close-undo-box span{display:block;position:relative;width:16px;height:16px;transition:all .2s linear}.close-undo-box span:after,.close-undo-box 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-undo-box span:after{transform:rotate(-45deg)}body.mobile .jstree-anchor span.folder-inline-edit{width:20px}body.mobile .wp-list-table tr td .wcp-move-file{opacity: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:0 10px 10px 0;background:#fff}.pfolder-folder-close{font-size:16px;color:#334155}.jstree-clicked>.pfolder-folder-close{color:#fff}.jstree-open>a>.pfolder-folder-close:before{content:"\e903"}#dynamic-folders>a>i.pfolder-folder-close:before{content:"\e900"!important}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}.dynamic-tree-data{display:none;padding:5px 0 0 0}#dynamic-tree-folders{background:#fff;padding:0 10px 0 0}.dynamic-folders .folder-actions,.dynamic-folders .folder-checkbox{display:none!important}.folders-undo-notification{position:fixed;right:-500px;bottom:25px;width:280px;background:#fff;padding:15px;-webkit-box-shadow:0 3px 6px -4px rgb(0 0 0 / 12%),0 6px 16px 0 rgb(0 0 0 / 8%),0 9px 28px 8px rgb(0 0 0 / 5%);box-shadow:0 3px 6px -4px rgb(0 0 0 / 12%),0 6px 16px 0 rgb(0 0 0 / 8%),0 9px 28px 8px rgb(0 0 0 / 5%);transition:all .25s linear;z-index:1001;border-left:solid 3px #1da1f4}.folders-undo-notification.success{border-left:solid 3px #70c6a3}.folders-undo-notification.active{right:25px}.folders-undo-notification.no{border-left:solid 3px #fc5050}html[dir=rtl] .folders-undo-notification{right:auto;left:-500px;border-left:none;border-right:solid 3px #1da1f4}html[dir=rtl] .folders-undo-notification.active{left:25px}html[dir=rtl] .close-undo-box{right:auto;left:-10px}html[dir=rtl] .folders-undo-notification.success{border-right:solid 3px #70c6a3}html[dir=rtl] .folders-undo-notification.no{border-right:solid 3px #fc5050}.folders-undo-header{font-weight:500;font-size:14px;padding:0 0 3px 0}.folders-undo-body{font-size:13px;padding:0 0 5px 0}.folders-undo-footer{text-align:right;padding:5px 0 0 0}.folders-undo-footer .undo-button{background:#1da1f4;border:none;color:#fff;padding:3px 10px;font-size:12px;border-radius:2px;cursor:pointer}.folders-undo-body{position:relative}.close-undo-box{position:absolute;right:-10px;top:0;width:16px;height:16px;transition:all .25s linear}.close-undo-box:hover{transform:rotate(180deg)}.close-undo-box span{display:block;position:relative;width:16px;height:16px;transition:all .2s linear}.close-undo-box span:after,.close-undo-box 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-undo-box span:after{transform:rotate(-45deg)}body.mobile .jstree-anchor span.folder-inline-edit{width:20px}body.mobile .wp-list-table tr td .wcp-move-file{opacity:1}.folders-action-menu>ul{margin:0;padding:0;display:flex}.folders-action-menu>ul>li{display:inline-block;margin:0;padding:5px 0 10px;flex:1}.folders-action-menu>ul>li>a:not(.no-bg),.folders-action-menu>ul>li>label{background:#f1f1f1;display:block;width:28px;height:28px;line-height:30px;text-align:center;text-decoration:none;border-radius:4px;color:#a4c0d2;margin:0 auto;font-size:14px}.folders-action-menu>ul>li>a.no-bg{text-align:center;display:block;line-height:30px}.folders-action-menu>ul>li>a.disabled,.folders-action-menu>ul>li>label.disabled{background:#f1f5f9;color:#e2e8f0}.folders-action-menu>ul>li>a:not(.disabled):hover,.folders-action-menu>ul>li>label:not(.disabled):hover{color:#fa166b}.folder-settings-btn{position:relative}.folder-setting-menu{position:absolute;z-index:11;right:-5px;top:100%;width:230px;background:#fff;border-radius:0;border:solid 1px #e9e5e5;margin-top:10px;-webkit-box-shadow:0 0 8px 0 rgb(0 0 0 / 25%);-moz-box-shadow:0 0 8px 0 rgba(0,0,0,.25);box-shadow:0 0 8px 0 rgb(0 0 0 / 25%);display:none}.folder-settings-btn.active .folder-setting-menu{display:block}.folder-setting-menu:before{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #fff;top:-5px;right:10px;content:"";position:absolute}.folder-setting-menu li{display:block;margin:0;padding:2px 0}.folder-setting-menu li a,.folder-setting-menu li label{text-decoration:none;position:relative;display:block;padding:5px 10px;line-height:18px;white-space:nowrap;font-size:14px;color:#7d7d7e}body.folded .wcp-content{left:36px!important}html[dir=rtl] body.folded .wcp-content{left:auto!important;right:36px!important}.sr-only{position:absolute;width:1px!important;height:1px!important;padding:0!important;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0!important}span.setting-checkbox{display:block;background:#ababab;height:18px;width:34px;float:right;border-radius:9px;color:#fff;position:relative}span.setting-checkbox:before{content:"";height:14px;width:14px;background:#fff;border-radius:50%;position:absolute;left:2px;top:2px;transition:all .15s linear}span.setting-checkbox:after{content:"off";position:absolute;width:28px;text-align:right;top:0;left:2px;font-size:10px;line-height:16px}input:checked+span.setting-checkbox{background:#1da1f4}input:checked+span.setting-checkbox:before{left:18px}input:checked+span.setting-checkbox:after{text-align:left;content:"on";padding:0 0 0 1px}.folder-setting-menu .dashicons{font-size:16px;display:inline-block}span.dashicons.dashicons-cloud-upload{line-height:28px}.dynamic-menu li.remove-folder a,.dynamic-menu li.remove-folder a:hover,.dynamic-menu li.remove-folder a:hover span i{color:#f24141}.media-toolbar.media-toolbar-mode-select .custom-media-select{display:block!important}.wcp-container .folders-action-menu .folder-tooltip.full-width:after{width:180px;white-space:inherit;line-height:18px}.wcp-container .folders-action-menu .folder-tooltip.full:after{width:114px;white-space:inherit;line-height:18px}.folder-inline-tooltip{position:relative}.folder-inline-tooltip span.inline-tooltip{position:absolute;width:180px;left:-83px;text-align:center;background:#333;padding:5px;color:#fff;font-size:.9em;bottom:46px;z-index:101;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;display:none;line-height:18px}.folder-inline-tooltip:hover span.inline-tooltip{display:block}.folder-inline-tooltip span.inline-tooltip:after{content:'';position:absolute;left:50%;top:100%;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #333;clear:both}.folder-inline-tooltip span.inline-tooltip span{display:block;text-decoration:underline}.folder-inline-tooltip.cut-folder-action span.inline-tooltip{width:124px;left:-55px}.pro-notice{padding:0 0 0 10px}.form-options2>ul>li{padding:5px 0 0 0}.folders-action-menu>ul>li>a>.dashicons{font-size:16px;width:auto;height:auto;line-height:28px}.checkbox-content{padding:0 0 15px 0}.folder-inline-tooltip.expand-collapse span.inline-tooltip{left:-5px;width:130px;bottom:38px}.folder-inline-tooltip.expand-collapse span.inline-tooltip:after{left:14px}.folder-inline-tooltip span.pfolder-arrow-down{font-size:8px!important}.form-options>ul{display:inline-flex;vertical-align:middle;flex:0 0 65px}.form-options>.upgrade-message{text-align:right;padding:4px 0 0 0;flex:1}.form-options.form-options2{display:flex;align-items:center;padding:0 5px 5px 5px}.folders-action-menu{width:100%;max-width:224px}.dynamic-menu li.new-folder,.dynamic-menu li.new-folder-pro{border-bottom:solid 1px #d8d8d8}
assets/css/jstree.css CHANGED
@@ -1,1167 +1,1414 @@
1
- /* jsTree default theme */
2
- .jstree-node,
3
- .jstree-children,
4
- .jstree-container-ul {
5
- display: block;
6
- margin: 0;
7
- padding: 0;
8
- list-style-type: none;
9
- list-style-image: none;
10
  }
 
11
  .jstree-node {
12
- white-space: nowrap;
13
  }
 
14
  .jstree-anchor {
15
- display: inline-block;
16
- color: black;
17
- white-space: nowrap;
18
- padding: 0 4px 0 1px;
19
- margin: 0;
20
- vertical-align: top;
21
  }
 
22
  .jstree-anchor:focus {
23
- outline: 0;
24
  }
25
- .jstree-anchor,
26
- .jstree-anchor:link,
27
- .jstree-anchor:visited,
28
- .jstree-anchor:hover,
29
- .jstree-anchor:active {
30
- text-decoration: none;
31
  }
 
32
  .jstree-icon {
33
- display: inline-block;
34
- text-decoration: none;
35
- margin: 0;
36
- padding: 0;
37
- vertical-align: top;
38
- text-align: center;
39
  }
 
40
  .jstree-icon:empty {
41
- display: inline-block;
42
- text-decoration: none;
43
- margin: 0;
44
- padding: 0;
45
- vertical-align: top;
46
- text-align: center;
47
  }
 
48
  .jstree-ocl {
49
- cursor: pointer;
50
  }
 
51
  .jstree-leaf > .jstree-ocl {
52
- cursor: default;
53
  }
 
54
  .jstree .jstree-open > .jstree-children {
55
- display: block;
56
  }
57
- .jstree .jstree-closed > .jstree-children,
58
- .jstree .jstree-leaf > .jstree-children {
59
- display: none;
60
  }
 
61
  .jstree-anchor > .jstree-themeicon {
62
- margin-right: 2px;
63
  }
64
- .jstree-no-icons .jstree-themeicon,
65
- .jstree-anchor > .jstree-themeicon-hidden {
66
- display: none;
67
  }
68
- .jstree-hidden,
69
- .jstree-node.jstree-hidden {
70
- display: none;
71
  }
 
72
  .jstree-rtl .jstree-anchor {
73
- padding: 0 1px 0 4px;
74
  }
 
75
  .jstree-rtl .jstree-anchor > .jstree-themeicon {
76
- margin-left: 2px;
77
- margin-right: 0;
78
  }
 
79
  .jstree-rtl .jstree-node {
80
- margin-left: 0;
81
  }
 
82
  .jstree-rtl .jstree-container-ul > .jstree-node {
83
- margin-right: 0;
84
  }
 
85
  .jstree-wholerow-ul {
86
- position: relative;
87
- display: inline-block;
88
- min-width: 100%;
89
  }
 
90
  .jstree-wholerow-ul .jstree-leaf > .jstree-ocl {
91
- cursor: pointer;
92
  }
93
- .jstree-wholerow-ul .jstree-anchor,
94
- .jstree-wholerow-ul .jstree-icon {
95
- position: relative;
96
  }
 
97
  .jstree-wholerow-ul .jstree-wholerow {
98
- width: 100%;
99
- cursor: pointer;
100
- position: absolute;
101
- left: 0;
102
- -webkit-user-select: none;
103
- -moz-user-select: none;
104
- -ms-user-select: none;
105
- user-select: none;
106
  }
 
107
  .jstree-contextmenu .jstree-anchor {
108
- -webkit-user-select: none;
109
- /* disable selection/Copy of UIWebView */
110
- -webkit-touch-callout: none;
111
- /* disable the IOS popup when long-press on a link */
112
  }
 
113
  .vakata-context {
114
- display: none;
115
  }
116
- .vakata-context,
117
- .vakata-context ul {
118
- margin: 0;
119
- padding: 2px;
120
- position: absolute;
121
- background: #f5f5f5;
122
- border: 1px solid #979797;
123
- box-shadow: 2px 2px 2px #999999;
124
  }
 
125
  .vakata-context ul {
126
- list-style: none;
127
- left: 100%;
128
- margin-top: -2.7em;
129
- margin-left: -4px;
130
  }
 
131
  .vakata-context .vakata-context-right ul {
132
- left: auto;
133
- right: 100%;
134
- margin-left: auto;
135
- margin-right: -4px;
136
  }
 
137
  .vakata-context li {
138
- list-style: none;
139
  }
 
140
  .vakata-context li > a {
141
- display: block;
142
- padding: 0 2em 0 2em;
143
- text-decoration: none;
144
- width: auto;
145
- color: black;
146
- white-space: nowrap;
147
- line-height: 2.4em;
148
- text-shadow: 1px 1px 0 white;
149
- border-radius: 1px;
150
  }
 
151
  .vakata-context li > a:hover {
152
- position: relative;
153
- background-color: #e8eff7;
154
- box-shadow: 0 0 2px #0a6aa1;
155
  }
 
156
  .vakata-context li > a.vakata-context-parent {
157
- background-image: url("data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAIORI4JlrqN1oMSnmmZDQUAOw==");
158
- background-position: right center;
159
- background-repeat: no-repeat;
160
  }
 
161
  .vakata-context li > a:focus {
162
- outline: 0;
163
  }
 
164
  .vakata-context .vakata-context-hover > a {
165
- position: relative;
166
- background-color: #e8eff7;
167
- box-shadow: 0 0 2px #0a6aa1;
168
- }
169
- .vakata-context .vakata-context-separator > a,
170
- .vakata-context .vakata-context-separator > a:hover {
171
- background: white;
172
- border: 0;
173
- border-top: 1px solid #e2e3e3;
174
- height: 1px;
175
- min-height: 1px;
176
- max-height: 1px;
177
- padding: 0;
178
- margin: 0 0 0 2.4em;
179
- border-left: 1px solid #e0e0e0;
180
- text-shadow: 0 0 0 transparent;
181
- box-shadow: 0 0 0 transparent;
182
- border-radius: 0;
183
- }
184
- .vakata-context .vakata-contextmenu-disabled a,
185
- .vakata-context .vakata-contextmenu-disabled a:hover {
186
- color: silver;
187
- background-color: transparent;
188
- border: 0;
189
- box-shadow: 0 0 0;
190
  }
 
191
  .vakata-context .vakata-contextmenu-disabled > a > i {
192
- filter: grayscale(100%);
193
  }
 
194
  .vakata-context li > a > i {
195
- text-decoration: none;
196
- display: inline-block;
197
- width: 2.4em;
198
- height: 2.4em;
199
- background: transparent;
200
- margin: 0 0 0 -2em;
201
- vertical-align: top;
202
- text-align: center;
203
- line-height: 2.4em;
204
  }
 
205
  .vakata-context li > a > i:empty {
206
- width: 2.4em;
207
- line-height: 2.4em;
208
  }
 
209
  .vakata-context li > a .vakata-contextmenu-sep {
210
- display: inline-block;
211
- width: 1px;
212
- height: 2.4em;
213
- background: white;
214
- margin: 0 0.5em 0 0;
215
- border-left: 1px solid #e2e3e3;
216
  }
 
217
  .vakata-context .vakata-contextmenu-shortcut {
218
- font-size: 0.8em;
219
- color: silver;
220
- opacity: 0.5;
221
- display: none;
222
  }
 
223
  .vakata-context-rtl ul {
224
- left: auto;
225
- right: 100%;
226
- margin-left: auto;
227
- margin-right: -4px;
228
  }
 
229
  .vakata-context-rtl li > a.vakata-context-parent {
230
- background-image: url("data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAINjI+AC7rWHIsPtmoxLAA7");
231
- background-position: left center;
232
- background-repeat: no-repeat;
233
  }
 
234
  .vakata-context-rtl .vakata-context-separator > a {
235
- margin: 0 2.4em 0 0;
236
- border-left: 0;
237
- border-right: 1px solid #e2e3e3;
238
  }
 
239
  .vakata-context-rtl .vakata-context-left ul {
240
- right: auto;
241
- left: 100%;
242
- margin-left: -4px;
243
- margin-right: auto;
244
  }
 
245
  .vakata-context-rtl li > a > i {
246
- margin: 0 -2em 0 0;
247
  }
 
248
  .vakata-context-rtl li > a .vakata-contextmenu-sep {
249
- margin: 0 0 0 0.5em;
250
- border-left-color: white;
251
- background: #e2e3e3;
252
  }
 
253
  #jstree-marker {
254
- position: absolute;
255
- top: 0;
256
- left: 0;
257
- margin: -5px 0 0 0;
258
- padding: 0;
259
- border-right: 0;
260
- border-top: 5px solid transparent;
261
- border-bottom: 5px solid transparent;
262
- border-left: 5px solid;
263
- width: 0;
264
- height: 0;
265
- font-size: 0;
266
- line-height: 0;
267
- }
268
- {
269
- line-height: 16px;
270
- margin: 0;
271
- padding: 4px;
272
- }
273
- .jstree-icon,
274
- .jstree-copy {
275
- display: inline-block;
276
- text-decoration: none;
277
- margin: 0 2px 0 0;
278
- padding: 0;
279
- width: 16px;
280
- height: 16px;
281
- }
282
- .jstree-ok {
283
- background: green;
284
- }
285
- .jstree-er {
286
- background: red;
287
- }
288
- .jstree-copy {
289
- margin: 0 2px 0 2px;
290
- }
291
- .jstree-default .jstree-node,
292
- .jstree-default .jstree-icon {
293
- background-repeat: no-repeat;
294
- background-color: transparent;
295
  }
296
- .jstree-default .jstree-anchor,
297
- .jstree-default .jstree-animated,
298
- .jstree-default .jstree-wholerow {
299
- transition: background-color 0.15s, box-shadow 0.15s;
 
 
 
 
300
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
301
  .jstree-default .jstree-hovered {
302
- box-shadow: inset 0 0 1px #cccccc;
303
  }
 
304
  .jstree-default .jstree-context {
305
- background: #e7f4f9;
306
- border-radius: 2px;
307
- box-shadow: inset 0 0 1px #cccccc;
308
  }
 
309
  .jstree-default .jstree-clicked {
310
- background: #beebff;
311
- border-radius: 2px;
312
- box-shadow: inset 0 0 1px #999999;
313
  }
 
314
  .jstree-default .jstree-no-icons .jstree-anchor > .jstree-themeicon {
315
- display: none;
316
  }
 
317
  .jstree-default .jstree-disabled {
318
- background: transparent;
319
- color: #666666;
320
  }
 
321
  .jstree-default .jstree-disabled.jstree-hovered {
322
- background: transparent;
323
- box-shadow: none;
324
  }
 
325
  .jstree-default .jstree-disabled.jstree-clicked {
326
- background: #efefef;
327
  }
 
328
  .jstree-default .jstree-disabled > .jstree-icon {
329
- opacity: 0.8;
330
- 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");
331
- /* Firefox 10+ */
332
- filter: gray;
333
- /* IE6-9 */
334
- -webkit-filter: grayscale(100%);
335
- /* Chrome 19+ & Safari 6+ */
336
  }
 
337
  .jstree-default .jstree-search {
338
- font-style: italic;
339
- color: #8b0000;
340
- font-weight: bold;
341
  }
 
342
  .jstree-default .jstree-no-checkboxes .jstree-checkbox {
343
- display: none !important;
344
  }
 
345
  .jstree-default.jstree-checkbox-no-clicked .jstree-clicked {
346
- background: transparent;
347
- box-shadow: none;
348
  }
 
349
  .jstree-default.jstree-checkbox-no-clicked .jstree-clicked.jstree-hovered {
350
- background: #e7f4f9;
351
  }
 
352
  .jstree-default.jstree-checkbox-no-clicked > .jstree-wholerow-ul .jstree-wholerow-clicked {
353
- background: transparent;
354
  }
 
355
  .jstree-default.jstree-checkbox-no-clicked > .jstree-wholerow-ul .jstree-wholerow-clicked.jstree-wholerow-hovered {
356
- background: #e7f4f9;
357
  }
 
358
  .jstree-default > .jstree-striped {
359
- min-width: 100%;
360
- display: inline-block;
361
- background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAkCAMAAAB/qqA+AAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlMNAMM9s3UAAAAXSURBVHjajcEBAQAAAIKg/H/aCQZ70AUBjAATb6YPDgAAAABJRU5ErkJggg==") left top repeat;
362
  }
363
- .jstree-default > .jstree-wholerow-ul .jstree-hovered,
364
- .jstree-default > .jstree-wholerow-ul .jstree-clicked {
365
- background: transparent;
366
- box-shadow: none;
367
- border-radius: 0;
368
  }
 
369
  .jstree-default .jstree-wholerow {
370
- -moz-box-sizing: border-box;
371
- -webkit-box-sizing: border-box;
372
- box-sizing: border-box;
373
  }
 
374
  .jstree-default .jstree-wholerow-hovered {
375
- background: #e7f4f9;
376
  }
 
377
  .jstree-default .jstree-wholerow-clicked {
378
- background: #beebff;
379
- background: -webkit-linear-gradient(top, #beebff 0%, #a8e4ff 100%);
380
- background: linear-gradient(to bottom, #beebff 0%, #a8e4ff 100%);
381
  }
 
382
  .jstree-default .jstree-node {
383
- min-height: 30px;
384
- line-height: 30px;
385
- margin-left: 24px;
386
- min-width: 30px;
387
  }
 
388
  .jstree-default .jstree-anchor {
389
- line-height: 30px;
390
- height: 30px;
391
- width: calc(100% - 30px);
392
- overflow: hidden;
393
- padding: 0 30px 0 6px;
394
- box-sizing: border-box;
395
- position: relative;
396
- margin: 0 0 0 4px;
397
- border-radius: 4px;
398
- display: inline-block;
399
- white-space: nowrap;
400
- text-overflow: ellipsis;
 
 
 
 
 
401
  }
 
402
  .jstree-default .jstree-icon {
403
- width: 30px;
404
- height: 30px;
405
- line-height: 30px;
406
  }
 
407
  .jstree-default .jstree-icon:empty {
408
- width: 24px;
409
- height: 30px;
410
- line-height: 30px;
411
  }
 
412
  .jstree-default.jstree-rtl .jstree-node {
413
- margin-right: 30px;
414
  }
 
415
  .jstree-default .jstree-wholerow {
416
- height: 30px;
417
  }
418
- .jstree-default .jstree-node,
419
- .jstree-default .jstree-icon {
420
- background-image: url("../images/32px.png");
 
421
  }
422
- .jstree-default .jstree-node {
423
- background-position: -292px -4px;
424
- background-repeat: repeat-y;
425
- position: relative;
 
426
  }
 
427
  .jstree-default .jstree-last {
428
- background: transparent;
429
  }
 
430
  .jstree-default .jstree-open > .jstree-ocl {
431
- background-position: -132px -2px;
432
  }
 
433
  .jstree-default .jstree-closed > .jstree-ocl {
434
- background-position: -100px -2px;
435
  }
 
436
  .jstree-default .jstree-leaf > .jstree-ocl {
437
- background-position: -68px -2px;
438
  }
 
439
  .jstree-default .jstree-themeicon {
440
- background-position: -260px -2px;
441
- background: none;
442
  }
443
- .jstree-default > .jstree-no-dots .jstree-node,
444
- .jstree-default > .jstree-no-dots .jstree-leaf > .jstree-ocl {
445
- background: transparent;
446
  }
 
447
  .jstree-default > .jstree-no-dots .jstree-open > .jstree-ocl {
448
- background-position: -36px -2px;
449
  }
 
450
  .jstree-default > .jstree-no-dots .jstree-closed > .jstree-ocl {
451
- background-position: -4px -2px;
452
- }
 
453
  .jstree-default .jstree-disabled {
454
- background: transparent;
455
  }
 
456
  .jstree-default .jstree-disabled.jstree-hovered {
457
- background: transparent;
458
  }
 
459
  .jstree-default .jstree-disabled.jstree-clicked {
460
- background: #efefef;
461
  }
462
- .jstree-default .jstree-checkbox {
463
- background-position: -164px -4px;
 
464
  }
 
465
  .jstree-default .jstree-checkbox:hover {
466
- background-position: -164px -36px;
467
  }
468
- .jstree-default.jstree-checkbox-selection .jstree-clicked > .jstree-checkbox,
469
- .jstree-default .jstree-checked > .jstree-checkbox {
470
- background-position: -228px -4px;
471
  }
472
- .jstree-default.jstree-checkbox-selection .jstree-clicked > .jstree-checkbox:hover,
473
- .jstree-default .jstree-checked > .jstree-checkbox:hover {
474
- background-position: -228px -36px;
475
  }
 
476
  .jstree-default .jstree-anchor > .jstree-undetermined {
477
- background-position: -196px -4px;
478
  }
 
479
  .jstree-default .jstree-anchor > .jstree-undetermined:hover {
480
- background-position: -196px -36px;
481
- }
 
482
  .jstree-default .jstree-checkbox-disabled {
483
- opacity: 0.8;
484
- 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");
485
- /* Firefox 10+ */
486
- filter: gray;
487
- /* IE6-9 */
488
- -webkit-filter: grayscale(100%);
489
- /* Chrome 19+ & Safari 6+ */
490
  }
 
491
  .jstree-default > .jstree-striped {
492
- background-size: auto 48px;
493
  }
 
494
  .jstree-default.jstree-rtl .jstree-node {
495
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==");
496
- background-position: 100% 1px;
497
- background-repeat: repeat-y;
498
  }
 
499
  .jstree-default.jstree-rtl .jstree-last {
500
- background: transparent;
501
  }
502
- .jstree-default.jstree-rtl .jstree-open > .jstree-ocl {
503
- background-position: -132px -36px;
 
504
  }
 
505
  .jstree-default.jstree-rtl .jstree-closed > .jstree-ocl {
506
- background-position: -100px -36px;
507
  }
 
508
  .jstree-default.jstree-rtl .jstree-leaf > .jstree-ocl {
509
- background-position: -68px -36px;
510
  }
511
- .jstree-default.jstree-rtl > .jstree-no-dots .jstree-node,
512
- .jstree-default.jstree-rtl > .jstree-no-dots .jstree-leaf > .jstree-ocl {
513
- background: transparent;
514
  }
 
515
  .jstree-default.jstree-rtl > .jstree-no-dots .jstree-open > .jstree-ocl {
516
- background-position: -36px -36px;
517
  }
 
518
  .jstree-default.jstree-rtl > .jstree-no-dots .jstree-closed > .jstree-ocl {
519
- background-position: -4px -36px;
520
  }
 
521
  .jstree-default .jstree-themeicon-custom {
522
- background-color: transparent;
523
- background-image: none;
524
- background-position: 0 0;
525
  }
 
526
  .jstree-default > .jstree-container-ul .jstree-loading > .jstree-ocl {
527
- background: url("throbber.gif") center center no-repeat;
528
  }
 
529
  .jstree-default .jstree-file {
530
- background: url("../images/32px.png") -100px -68px no-repeat;
531
  }
 
532
  .jstree-default .jstree-folder {
533
- background: url("../images/32px.png") -260px -4px no-repeat;
534
  }
 
535
  .jstree-default > .jstree-container-ul > .jstree-node {
536
- margin-left: 0;
537
- margin-right: 0;
538
  }
 
539
  .jstree-default {
540
- line-height: 30px;
541
- padding: 0 4px;
542
  }
543
- .jstree-default .jstree-ok,
544
- .jstree-default .jstree-er {
545
- background-image: url("../images/32px.png");
546
- background-repeat: no-repeat;
547
- background-color: transparent;
548
  }
 
549
  .jstree-default i {
550
- background: transparent;
551
- width: 20px;
552
- height: 30px;
553
- line-height: 30px;
554
- display: inline-block;
555
- vertical-align: top;
556
  }
 
 
557
  .jstree-default .jstree-ok {
558
- background-position: -4px -68px;
559
  }
 
560
  .jstree-default .jstree-er {
561
- background-position: -36px -68px;
562
  }
 
563
  .jstree-default .jstree-ellipsis {
564
- overflow: hidden;
565
  }
 
566
  .jstree-default .jstree-ellipsis .jstree-anchor {
567
- width: calc(100% - 29px);
568
- text-overflow: ellipsis;
569
- overflow: hidden;
570
  }
 
571
  .jstree-default.jstree-rtl .jstree-node {
572
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==");
573
  }
 
574
  .jstree-default.jstree-rtl .jstree-last {
575
- background: transparent;
576
  }
 
577
  .jstree-default-small .jstree-node {
578
- min-height: 18px;
579
- line-height: 18px;
580
- margin-left: 18px;
581
- min-width: 18px;
582
  }
 
583
  .jstree-default-small .jstree-anchor {
584
- line-height: 18px;
585
- height: 18px;
586
  }
 
587
  .jstree-default-small .jstree-icon {
588
- width: 18px;
589
- height: 18px;
590
- line-height: 18px;
591
  }
 
592
  .jstree-default-small .jstree-icon:empty {
593
- width: 18px;
594
- height: 18px;
595
- line-height: 18px;
596
  }
 
597
  .jstree-default-small.jstree-rtl .jstree-node {
598
- margin-right: 18px;
599
  }
 
600
  .jstree-default-small .jstree-wholerow {
601
- height: 18px;
602
  }
603
- .jstree-default-small .jstree-node,
604
- .jstree-default-small .jstree-icon {
605
- background-image: url("../images/32px.png");
 
606
  }
 
607
  .jstree-default-small .jstree-node {
608
- background-position: -295px -7px;
609
- background-repeat: repeat-y;
610
  }
 
611
  .jstree-default-small .jstree-last {
612
- background: transparent;
613
  }
 
614
  .jstree-default-small .jstree-open > .jstree-ocl {
615
- background-position: -135px -7px;
616
  }
 
617
  .jstree-default-small .jstree-closed > .jstree-ocl {
618
- background-position: -103px -7px;
619
  }
 
620
  .jstree-default-small .jstree-leaf > .jstree-ocl {
621
- background-position: -71px -7px;
622
  }
 
623
  .jstree-default-small .jstree-themeicon {
624
- background-position: -263px -7px;
625
  }
626
- .jstree-default-small > .jstree-no-dots .jstree-node,
627
- .jstree-default-small > .jstree-no-dots .jstree-leaf > .jstree-ocl {
628
- background: transparent;
629
  }
 
630
  .jstree-default-small > .jstree-no-dots .jstree-open > .jstree-ocl {
631
- background-position: -39px -7px;
632
  }
 
633
  .jstree-default-small > .jstree-no-dots .jstree-closed > .jstree-ocl {
634
- background-position: -7px -7px;
635
  }
 
636
  .jstree-default-small .jstree-disabled {
637
- background: transparent;
638
  }
 
639
  .jstree-default-small .jstree-disabled.jstree-hovered {
640
- background: transparent;
641
  }
 
642
  .jstree-default-small .jstree-disabled.jstree-clicked {
643
- background: #efefef;
644
  }
 
 
645
  .jstree-default-small .jstree-checkbox {
646
- background-position: -167px -7px;
647
  }
 
648
  .jstree-default-small .jstree-checkbox:hover {
649
- background-position: -167px -39px;
650
  }
651
- .jstree-default-small.jstree-checkbox-selection .jstree-clicked > .jstree-checkbox,
652
- .jstree-default-small .jstree-checked > .jstree-checkbox {
653
- background-position: -231px -7px;
654
  }
655
- .jstree-default-small.jstree-checkbox-selection .jstree-clicked > .jstree-checkbox:hover,
656
- .jstree-default-small .jstree-checked > .jstree-checkbox:hover {
657
- background-position: -231px -39px;
658
  }
 
659
  .jstree-default-small .jstree-anchor > .jstree-undetermined {
660
- background-position: -199px -7px;
661
  }
 
662
  .jstree-default-small .jstree-anchor > .jstree-undetermined:hover {
663
- background-position: -199px -39px;
664
  }
 
665
  .jstree-default-small .jstree-checkbox-disabled {
666
- opacity: 0.8;
667
- 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");
668
- /* Firefox 10+ */
669
- filter: gray;
670
- /* IE6-9 */
671
- -webkit-filter: grayscale(100%);
672
- /* Chrome 19+ & Safari 6+ */
673
  }
 
674
  .jstree-default-small > .jstree-striped {
675
- background-size: auto 36px;
676
  }
 
677
  .jstree-default-small.jstree-rtl .jstree-node {
678
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==");
679
- background-position: 100% 1px;
680
- background-repeat: repeat-y;
681
  }
 
 
682
  .jstree-default-small.jstree-rtl .jstree-last {
683
- background: transparent;
684
  }
 
685
  .jstree-default-small.jstree-rtl .jstree-open > .jstree-ocl {
686
- background-position: -135px -39px;
687
  }
 
688
  .jstree-default-small.jstree-rtl .jstree-closed > .jstree-ocl {
689
- background-position: -103px -39px;
690
  }
 
691
  .jstree-default-small.jstree-rtl .jstree-leaf > .jstree-ocl {
692
- background-position: -71px -39px;
693
  }
694
- .jstree-default-small.jstree-rtl > .jstree-no-dots .jstree-node,
695
- .jstree-default-small.jstree-rtl > .jstree-no-dots .jstree-leaf > .jstree-ocl {
696
- background: transparent;
697
  }
 
698
  .jstree-default-small.jstree-rtl > .jstree-no-dots .jstree-open > .jstree-ocl {
699
- background-position: -39px -39px;
700
  }
 
701
  .jstree-default-small.jstree-rtl > .jstree-no-dots .jstree-closed > .jstree-ocl {
702
- background-position: -7px -39px;
703
  }
 
704
  .jstree-default-small .jstree-themeicon-custom {
705
- background-color: transparent;
706
- background-image: none;
707
- background-position: 0 0;
708
  }
 
709
  .jstree-default-small > .jstree-container-ul .jstree-loading > .jstree-ocl {
710
- background: url("throbber.gif") center center no-repeat;
711
  }
 
712
  .jstree-default-small .jstree-file {
713
- background: url("../images/32px.png") -103px -71px no-repeat;
714
  }
 
715
  .jstree-default-small .jstree-folder {
716
- background: url("../images/32px.png") -263px -7px no-repeat;
717
  }
 
718
  .jstree-default-small > .jstree-container-ul > .jstree-node {
719
- margin-left: 0;
720
- margin-right: 0;
721
  }
 
722
  .jstree-default-small {
723
- line-height: 18px;
724
- padding: 0 4px;
725
  }
726
- .jstree-default-small .jstree-ok,
727
- .jstree-default-small .jstree-er {
728
- background-image: url("../images/32px.png");
729
- background-repeat: no-repeat;
730
- background-color: transparent;
 
731
  }
 
732
  .jstree-default-small i {
733
- background: transparent;
734
- width: 18px;
735
- height: 18px;
736
- line-height: 18px;
737
  }
 
738
  .jstree-default-small .jstree-ok {
739
- background-position: -7px -71px;
740
  }
 
741
  .jstree-default-small .jstree-er {
742
- background-position: -39px -71px;
743
  }
 
744
  .jstree-default-small .jstree-ellipsis {
745
- overflow: hidden;
746
  }
 
747
  .jstree-default-small .jstree-ellipsis .jstree-anchor {
748
- width: calc(100% - 23px);
749
- text-overflow: ellipsis;
750
- overflow: hidden;
751
  }
 
752
  .jstree-default-small.jstree-rtl .jstree-node {
753
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAACAQMAAABv1h6PAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMHBgAAiABBI4gz9AAAAABJRU5ErkJggg==");
754
  }
 
755
  .jstree-default-small.jstree-rtl .jstree-last {
756
- background: transparent;
757
  }
 
758
  .jstree-default-large .jstree-node {
759
- min-height: 32px;
760
- line-height: 32px;
761
- margin-left: 32px;
762
- min-width: 32px;
763
  }
 
764
  .jstree-default-large .jstree-anchor {
765
- line-height: 32px;
766
- height: 32px;
767
  }
 
768
  .jstree-default-large .jstree-icon {
769
- width: 32px;
770
- height: 32px;
771
- line-height: 32px;
772
  }
 
773
  .jstree-default-large .jstree-icon:empty {
774
- width: 32px;
775
- height: 32px;
776
- line-height: 32px;
777
  }
 
778
  .jstree-default-large.jstree-rtl .jstree-node {
779
- margin-right: 32px;
780
  }
 
781
  .jstree-default-large .jstree-wholerow {
782
- height: 32px;
783
  }
784
- .jstree-default-large .jstree-node,
785
- .jstree-default-large .jstree-icon {
786
- background-image: url("../images/32px.png");
 
787
  }
 
788
  .jstree-default-large .jstree-node {
789
- background-position: -288px 0px;
790
- background-repeat: repeat-y;
791
  }
 
792
  .jstree-default-large .jstree-last {
793
- background: transparent;
794
  }
 
795
  .jstree-default-large .jstree-open > .jstree-ocl {
796
- background-position: -128px 0px;
797
  }
 
798
  .jstree-default-large .jstree-closed > .jstree-ocl {
799
- background-position: -96px 0px;
800
  }
 
801
  .jstree-default-large .jstree-leaf > .jstree-ocl {
802
- background-position: -64px 0px;
803
  }
 
804
  .jstree-default-large .jstree-themeicon {
805
- background-position: -256px 0px;
806
  }
807
- .jstree-default-large > .jstree-no-dots .jstree-node,
808
- .jstree-default-large > .jstree-no-dots .jstree-leaf > .jstree-ocl {
809
- background: transparent;
810
  }
 
811
  .jstree-default-large > .jstree-no-dots .jstree-open > .jstree-ocl {
812
- background-position: -32px 0px;
813
  }
 
814
  .jstree-default-large > .jstree-no-dots .jstree-closed > .jstree-ocl {
815
- background-position: 0px 0px;
816
  }
 
817
  .jstree-default-large .jstree-disabled {
818
- background: transparent;
819
  }
 
820
  .jstree-default-large .jstree-disabled.jstree-hovered {
821
- background: transparent;
822
  }
 
823
  .jstree-default-large .jstree-disabled.jstree-clicked {
824
- background: #efefef;
825
  }
 
826
  .jstree-default-large .jstree-checkbox {
827
- background-position: -160px 0px;
828
  }
 
829
  .jstree-default-large .jstree-checkbox:hover {
830
- background-position: -160px -32px;
831
  }
832
- .jstree-default-large.jstree-checkbox-selection .jstree-clicked > .jstree-checkbox,
833
- .jstree-default-large .jstree-checked > .jstree-checkbox {
834
- background-position: -224px 0px;
835
  }
836
- .jstree-default-large.jstree-checkbox-selection .jstree-clicked > .jstree-checkbox:hover,
837
- .jstree-default-large .jstree-checked > .jstree-checkbox:hover {
838
- background-position: -224px -32px;
839
  }
 
840
  .jstree-default-large .jstree-anchor > .jstree-undetermined {
841
- background-position: -192px 0px;
842
  }
 
843
  .jstree-default-large .jstree-anchor > .jstree-undetermined:hover {
844
- background-position: -192px -32px;
845
  }
 
846
  .jstree-default-large .jstree-checkbox-disabled {
847
- opacity: 0.8;
848
- 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");
849
- /* Firefox 10+ */
850
- filter: gray;
851
- /* IE6-9 */
852
- -webkit-filter: grayscale(100%);
853
- /* Chrome 19+ & Safari 6+ */
854
  }
 
855
  .jstree-default-large > .jstree-striped {
856
- background-size: auto 64px;
857
  }
 
858
  .jstree-default-large.jstree-rtl .jstree-node {
859
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==");
860
- background-position: 100% 1px;
861
- background-repeat: repeat-y;
862
  }
 
863
  .jstree-default-large.jstree-rtl .jstree-last {
864
- background: transparent;
865
  }
 
866
  .jstree-default-large.jstree-rtl .jstree-open > .jstree-ocl {
867
- background-position: -128px -32px;
868
  }
 
869
  .jstree-default-large.jstree-rtl .jstree-closed > .jstree-ocl {
870
- background-position: -96px -32px;
871
  }
 
872
  .jstree-default-large.jstree-rtl .jstree-leaf > .jstree-ocl {
873
- background-position: -64px -32px;
874
  }
875
- .jstree-default-large.jstree-rtl > .jstree-no-dots .jstree-node,
876
- .jstree-default-large.jstree-rtl > .jstree-no-dots .jstree-leaf > .jstree-ocl {
877
- background: transparent;
878
  }
 
879
  .jstree-default-large.jstree-rtl > .jstree-no-dots .jstree-open > .jstree-ocl {
880
- background-position: -32px -32px;
881
  }
 
882
  .jstree-default-large.jstree-rtl > .jstree-no-dots .jstree-closed > .jstree-ocl {
883
- background-position: 0px -32px;
884
  }
 
885
  .jstree-default-large .jstree-themeicon-custom {
886
- background-color: transparent;
887
- background-image: none;
888
- background-position: 0 0;
889
  }
 
890
  .jstree-default-large > .jstree-container-ul .jstree-loading > .jstree-ocl {
891
- background: url("throbber.gif") center center no-repeat;
892
  }
 
893
  .jstree-default-large .jstree-file {
894
- background: url("../images/32px.png") -96px -64px no-repeat;
895
  }
 
896
  .jstree-default-large .jstree-folder {
897
- background: url("../images/32px.png") -256px 0px no-repeat;
898
  }
 
899
  .jstree-default-large > .jstree-container-ul > .jstree-node {
900
- margin-left: 0;
901
- margin-right: 0;
902
  }
 
903
  .jstree-default-large {
904
- line-height: 32px;
905
- padding: 0 4px;
906
  }
907
- .jstree-default-large .jstree-ok,
908
- .jstree-default-large .jstree-er {
909
- background-image: url("../images/32px.png");
910
- background-repeat: no-repeat;
911
- background-color: transparent;
 
912
  }
 
913
  .jstree-default-large i {
914
- background: transparent;
915
- width: 32px;
916
- height: 32px;
917
- line-height: 32px;
918
  }
 
919
  .jstree-default-large .jstree-ok {
920
- background-position: 0px -64px;
921
  }
 
922
  .jstree-default-large .jstree-er {
923
- background-position: -32px -64px;
924
  }
 
925
  .jstree-default-large .jstree-ellipsis {
926
- overflow: hidden;
927
  }
 
928
  .jstree-default-large .jstree-ellipsis .jstree-anchor {
929
- width: calc(100% - 37px);
930
- text-overflow: ellipsis;
931
- overflow: hidden;
932
  }
 
933
  .jstree-default-large.jstree-rtl .jstree-node {
934
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAACAQMAAAAD0EyKAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjgIIGBgABCgCBvVLXcAAAAABJRU5ErkJggg==");
935
  }
 
936
  .jstree-default-large.jstree-rtl .jstree-last {
937
- background: transparent;
938
  }
 
939
  @media (max-width: 768px) {
940
- .jstree-dnd-responsive {
941
- line-height: 40px;
942
- font-weight: bold;
943
- font-size: 1.1em;
944
- text-shadow: 1px 1px white;
945
- }
946
- .jstree-dnd-responsive > i {
947
- background: transparent;
948
- width: 40px;
949
- height: 40px;
950
- }
951
- .jstree-dnd-responsive > .jstree-ok {
952
- background-image: url("../images/40px.png");
953
- background-position: 0 -200px;
954
- background-size: 120px 240px;
955
- }
956
- .jstree-dnd-responsive > .jstree-er {
957
- background-image: url("../images/40px.png");
958
- background-position: -40px -200px;
959
- background-size: 120px 240px;
960
- }
961
- #jstree-marker.jstree-dnd-responsive {
962
- border-left-width: 10px;
963
- border-top-width: 10px;
964
- border-bottom-width: 10px;
965
- margin-top: -10px;
966
- }
 
 
 
967
  }
 
968
  @media (max-width: 768px) {
969
- .jstree-default-responsive {
970
- /*
971
- .jstree-open > .jstree-ocl,
972
- .jstree-closed > .jstree-ocl { border-radius:20px; background-color:white; }
973
- */
974
- }
975
- .jstree-default-responsive .jstree-icon {
976
- background-image: url("../images/40px.png");
977
- }
978
- .jstree-default-responsive .jstree-node,
979
- .jstree-default-responsive .jstree-leaf > .jstree-ocl {
980
- background: transparent;
981
- }
982
- .jstree-default-responsive .jstree-node {
983
- min-height: 40px;
984
- line-height: 40px;
985
- margin-left: 40px;
986
- min-width: 40px;
987
- white-space: nowrap;
988
- }
989
- .jstree-default-responsive .jstree-anchor {
990
- line-height: 40px;
991
- height: 40px;
992
- }
993
- .jstree-default-responsive .jstree-icon,
994
- .jstree-default-responsive .jstree-icon:empty {
995
- width: 40px;
996
- height: 40px;
997
- line-height: 40px;
998
- }
999
- .jstree-default-responsive > .jstree-container-ul > .jstree-node {
1000
- margin-left: 0;
1001
- }
1002
- .jstree-default-responsive.jstree-rtl .jstree-node {
1003
- margin-left: 0;
1004
- margin-right: 40px;
1005
- background: transparent;
1006
- }
1007
- .jstree-default-responsive.jstree-rtl .jstree-container-ul > .jstree-node {
1008
- margin-right: 0;
1009
- }
1010
- .jstree-default-responsive .jstree-ocl,
1011
- .jstree-default-responsive .jstree-themeicon,
1012
- .jstree-default-responsive .jstree-checkbox {
1013
- background-size: 120px 240px;
1014
- }
1015
- .jstree-default-responsive .jstree-leaf > .jstree-ocl,
1016
- .jstree-default-responsive.jstree-rtl .jstree-leaf > .jstree-ocl {
1017
- background: transparent;
1018
- }
1019
- .jstree-default-responsive .jstree-open > .jstree-ocl {
1020
- background-position: 0 0 !important;
1021
- }
1022
- .jstree-default-responsive .jstree-closed > .jstree-ocl {
1023
- background-position: 0 -40px !important;
1024
- }
1025
- .jstree-default-responsive.jstree-rtl .jstree-closed > .jstree-ocl {
1026
- background-position: -40px 0 !important;
1027
- }
1028
- .jstree-default-responsive .jstree-themeicon {
1029
- background-position: -40px -40px;
1030
- }
1031
- .jstree-default-responsive .jstree-checkbox,
1032
- .jstree-default-responsive .jstree-checkbox:hover {
1033
- background-position: -40px -80px;
1034
- }
1035
- .jstree-default-responsive.jstree-checkbox-selection .jstree-clicked > .jstree-checkbox,
1036
- .jstree-default-responsive.jstree-checkbox-selection .jstree-clicked > .jstree-checkbox:hover,
1037
- .jstree-default-responsive .jstree-checked > .jstree-checkbox,
1038
- .jstree-default-responsive .jstree-checked > .jstree-checkbox:hover {
1039
- background-position: 0 -80px;
1040
- }
1041
- .jstree-default-responsive .jstree-anchor > .jstree-undetermined,
1042
- .jstree-default-responsive .jstree-anchor > .jstree-undetermined:hover {
1043
- background-position: 0 -120px;
1044
- }
1045
- .jstree-default-responsive .jstree-anchor {
1046
- font-weight: bold;
1047
- font-size: 1.1em;
1048
- text-shadow: 1px 1px white;
1049
- }
1050
- .jstree-default-responsive > .jstree-striped {
1051
- background: transparent;
1052
- }
1053
- .jstree-default-responsive .jstree-wholerow {
1054
- border-top: 1px solid rgba(255, 255, 255, 0.7);
1055
- border-bottom: 1px solid rgba(64, 64, 64, 0.2);
1056
- background: #ebebeb;
1057
- height: 40px;
1058
- }
1059
- .jstree-default-responsive .jstree-wholerow-hovered {
1060
- background: #e7f4f9;
1061
- }
1062
- .jstree-default-responsive .jstree-wholerow-clicked {
1063
- background: #beebff;
1064
- }
1065
- .jstree-default-responsive .jstree-children .jstree-last > .jstree-wholerow {
1066
- box-shadow: inset 0 -6px 3px -5px #666666;
1067
- }
1068
- .jstree-default-responsive .jstree-children .jstree-open > .jstree-wholerow {
1069
- box-shadow: inset 0 6px 3px -5px #666666;
1070
- border-top: 0;
1071
- }
1072
- .jstree-default-responsive .jstree-children .jstree-open + .jstree-open {
1073
- box-shadow: none;
1074
- }
1075
- .jstree-default-responsive .jstree-node,
1076
- .jstree-default-responsive .jstree-icon,
1077
- .jstree-default-responsive .jstree-node > .jstree-ocl,
1078
- .jstree-default-responsive .jstree-themeicon,
1079
- .jstree-default-responsive .jstree-checkbox {
1080
- background-image: url("../images/40px.png");
1081
- background-size: 120px 240px;
1082
- }
1083
- .jstree-default-responsive .jstree-node {
1084
- background-position: -80px 0;
1085
- background-repeat: repeat-y;
1086
- }
1087
- .jstree-default-responsive .jstree-last {
1088
- background: transparent;
1089
- }
1090
- .jstree-default-responsive .jstree-leaf > .jstree-ocl {
1091
- background-position: -40px -120px;
1092
- }
1093
- .jstree-default-responsive .jstree-last > .jstree-ocl {
1094
- background-position: -40px -160px;
1095
- }
1096
- .jstree-default-responsive .jstree-themeicon-custom {
1097
- background-color: transparent;
1098
- background-image: none;
1099
- background-position: 0 0;
1100
- }
1101
- .jstree-default-responsive .jstree-file {
1102
- background: url("../images/40px.png") 0 -160px no-repeat;
1103
- background-size: 120px 240px;
1104
- }
1105
- .jstree-default-responsive .jstree-folder {
1106
- background: url("../images/40px.png") -40px -40px no-repeat;
1107
- background-size: 120px 240px;
1108
- }
1109
- .jstree-default-responsive > .jstree-container-ul > .jstree-node {
1110
- margin-left: 0;
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
  }
1
+ .jstree-children, .jstree-container-ul, .jstree-node {
2
+ display: block;
3
+ margin: 0;
4
+ padding: 0;
5
+ list-style-type: none;
6
+ list-style-image: none
 
 
 
7
  }
8
+
9
  .jstree-node {
10
+ white-space: nowrap
11
  }
12
+
13
  .jstree-anchor {
14
+ display: inline-block;
15
+ color: #000;
16
+ white-space: nowrap;
17
+ padding: 0 4px 0 1px;
18
+ margin: 0;
19
+ vertical-align: top
20
  }
21
+
22
  .jstree-anchor:focus {
23
+ outline: 0
24
  }
25
+
26
+ .jstree-anchor, .jstree-anchor:active, .jstree-anchor:hover, .jstree-anchor:link, .jstree-anchor:visited {
27
+ text-decoration: none
 
 
 
28
  }
29
+
30
  .jstree-icon {
31
+ display: inline-block;
32
+ text-decoration: none;
33
+ margin: 0;
34
+ padding: 0;
35
+ vertical-align: top;
36
+ text-align: center
37
  }
38
+
39
  .jstree-icon:empty {
40
+ display: inline-block;
41
+ text-decoration: none;
42
+ margin: 0;
43
+ padding: 0;
44
+ vertical-align: top;
45
+ text-align: center
46
  }
47
+
48
  .jstree-ocl {
49
+ cursor: pointer
50
  }
51
+
52
  .jstree-leaf > .jstree-ocl {
53
+ cursor: default
54
  }
55
+
56
  .jstree .jstree-open > .jstree-children {
57
+ display: block
58
  }
59
+
60
+ .jstree .jstree-closed > .jstree-children, .jstree .jstree-leaf > .jstree-children {
61
+ display: none
62
  }
63
+
64
  .jstree-anchor > .jstree-themeicon {
65
+ margin-right: 2px
66
  }
67
+
68
+ .jstree-anchor > .jstree-themeicon-hidden, .jstree-no-icons .jstree-themeicon {
69
+ display: none
70
  }
71
+
72
+ .jstree-hidden, .jstree-node.jstree-hidden {
73
+ display: none
74
  }
75
+
76
  .jstree-rtl .jstree-anchor {
77
+ padding: 0 1px 0 4px
78
  }
79
+
80
  .jstree-rtl .jstree-anchor > .jstree-themeicon {
81
+ margin-left: 2px;
82
+ margin-right: 0
83
  }
84
+
85
  .jstree-rtl .jstree-node {
86
+ margin-left: 0
87
  }
88
+
89
  .jstree-rtl .jstree-container-ul > .jstree-node {
90
+ margin-right: 0
91
  }
92
+
93
  .jstree-wholerow-ul {
94
+ position: relative;
95
+ display: inline-block;
96
+ min-width: 100%
97
  }
98
+
99
  .jstree-wholerow-ul .jstree-leaf > .jstree-ocl {
100
+ cursor: pointer
101
  }
102
+
103
+ .jstree-wholerow-ul .jstree-anchor, .jstree-wholerow-ul .jstree-icon {
104
+ position: relative
105
  }
106
+
107
  .jstree-wholerow-ul .jstree-wholerow {
108
+ width: 100%;
109
+ cursor: pointer;
110
+ position: absolute;
111
+ left: 0;
112
+ -webkit-user-select: none;
113
+ -moz-user-select: none;
114
+ -ms-user-select: none;
115
+ user-select: none
116
  }
117
+
118
  .jstree-contextmenu .jstree-anchor {
119
+ -webkit-user-select: none;
120
+ -webkit-touch-callout: none
 
 
121
  }
122
+
123
  .vakata-context {
124
+ display: none
125
  }
126
+
127
+ .vakata-context, .vakata-context ul {
128
+ margin: 0;
129
+ padding: 2px;
130
+ position: absolute;
131
+ background: #f5f5f5;
132
+ border: 1px solid #979797;
133
+ box-shadow: 2px 2px 2px #999
134
  }
135
+
136
  .vakata-context ul {
137
+ list-style: none;
138
+ left: 100%;
139
+ margin-top: -2.7em;
140
+ margin-left: -4px
141
  }
142
+
143
  .vakata-context .vakata-context-right ul {
144
+ left: auto;
145
+ right: 100%;
146
+ margin-left: auto;
147
+ margin-right: -4px
148
  }
149
+
150
  .vakata-context li {
151
+ list-style: none
152
  }
153
+
154
  .vakata-context li > a {
155
+ display: block;
156
+ padding: 0 2em 0 2em;
157
+ text-decoration: none;
158
+ width: auto;
159
+ color: #000;
160
+ white-space: nowrap;
161
+ line-height: 2.4em;
162
+ text-shadow: 1px 1px 0 #fff;
163
+ border-radius: 1px
164
  }
165
+
166
  .vakata-context li > a:hover {
167
+ position: relative;
168
+ background-color: #e8eff7;
169
+ box-shadow: 0 0 2px #0a6aa1
170
  }
171
+
172
  .vakata-context li > a.vakata-context-parent {
173
+ background-image: url(data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAIORI4JlrqN1oMSnmmZDQUAOw==);
174
+ background-position: right center;
175
+ background-repeat: no-repeat
176
  }
177
+
178
  .vakata-context li > a:focus {
179
+ outline: 0
180
  }
181
+
182
  .vakata-context .vakata-context-hover > a {
183
+ position: relative;
184
+ background-color: #e8eff7;
185
+ box-shadow: 0 0 2px #0a6aa1
186
+ }
187
+
188
+ .vakata-context .vakata-context-separator > a, .vakata-context .vakata-context-separator > a:hover {
189
+ background: #fff;
190
+ border: 0;
191
+ border-top: 1px solid #e2e3e3;
192
+ height: 1px;
193
+ min-height: 1px;
194
+ max-height: 1px;
195
+ padding: 0;
196
+ margin: 0 0 0 2.4em;
197
+ border-left: 1px solid #e0e0e0;
198
+ text-shadow: 0 0 0 transparent;
199
+ box-shadow: 0 0 0 transparent;
200
+ border-radius: 0
201
+ }
202
+
203
+ .vakata-context .vakata-contextmenu-disabled a, .vakata-context .vakata-contextmenu-disabled a:hover {
204
+ color: silver;
205
+ background-color: transparent;
206
+ border: 0;
207
+ box-shadow: 0 0 0
208
  }
209
+
210
  .vakata-context .vakata-contextmenu-disabled > a > i {
211
+ filter: grayscale(100%)
212
  }
213
+
214
  .vakata-context li > a > i {
215
+ text-decoration: none;
216
+ display: inline-block;
217
+ width: 2.4em;
218
+ height: 2.4em;
219
+ background: 0 0;
220
+ margin: 0 0 0 -2em;
221
+ vertical-align: top;
222
+ text-align: center;
223
+ line-height: 2.4em
224
  }
225
+
226
  .vakata-context li > a > i:empty {
227
+ width: 2.4em;
228
+ line-height: 2.4em
229
  }
230
+
231
  .vakata-context li > a .vakata-contextmenu-sep {
232
+ display: inline-block;
233
+ width: 1px;
234
+ height: 2.4em;
235
+ background: #fff;
236
+ margin: 0 .5em 0 0;
237
+ border-left: 1px solid #e2e3e3
238
  }
239
+
240
  .vakata-context .vakata-contextmenu-shortcut {
241
+ font-size: .8em;
242
+ color: silver;
243
+ opacity: .5;
244
+ display: none
245
  }
246
+
247
  .vakata-context-rtl ul {
248
+ left: auto;
249
+ right: 100%;
250
+ margin-left: auto;
251
+ margin-right: -4px
252
  }
253
+
254
  .vakata-context-rtl li > a.vakata-context-parent {
255
+ background-image: url(data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAINjI+AC7rWHIsPtmoxLAA7);
256
+ background-position: left center;
257
+ background-repeat: no-repeat
258
  }
259
+
260
  .vakata-context-rtl .vakata-context-separator > a {
261
+ margin: 0 2.4em 0 0;
262
+ border-left: 0;
263
+ border-right: 1px solid #e2e3e3
264
  }
265
+
266
  .vakata-context-rtl .vakata-context-left ul {
267
+ right: auto;
268
+ left: 100%;
269
+ margin-left: -4px;
270
+ margin-right: auto
271
  }
272
+
273
  .vakata-context-rtl li > a > i {
274
+ margin: 0 -2em 0 0
275
  }
276
+
277
  .vakata-context-rtl li > a .vakata-contextmenu-sep {
278
+ margin: 0 0 0 .5em;
279
+ border-left-color: #fff;
280
+ background: #e2e3e3
281
  }
282
+
283
  #jstree-marker {
284
+ position: absolute;
285
+ top: 0;
286
+ left: 0;
287
+ margin: -5px 0 0 0;
288
+ padding: 0;
289
+ border-right: 0;
290
+ border-top: 5px solid transparent;
291
+ border-bottom: 5px solid transparent;
292
+ border-left: 5px solid;
293
+ width: 0;
294
+ height: 0;
295
+ font-size: 0;
296
+ line-height: 0;
297
+ display: none !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
298
  }
299
+
300
+ .jstree-copy, .jstree-icon {
301
+ display: inline-block;
302
+ text-decoration: none;
303
+ margin: 0 2px 0 0;
304
+ padding: 0;
305
+ width: 16px;
306
+ height: 16px
307
  }
308
+
309
+ .jstree-ok {
310
+ background: green
311
+ }
312
+
313
+ .jstree-er {
314
+ background: red
315
+ }
316
+
317
+ .jstree-copy {
318
+ margin: 0 2px 0 2px
319
+ }
320
+
321
+ /*
322
+ .jstree-default .jstree-icon, .jstree-default .jstree-node {
323
+ background-repeat: no-repeat;
324
+ background-color: transparent
325
+ }*/
326
+
327
+ .jstree-default .jstree-anchor, .jstree-default .jstree-animated, .jstree-default .jstree-wholerow {
328
+ transition: background-color .15s, box-shadow .15s
329
+ }
330
+
331
  .jstree-default .jstree-hovered {
332
+ box-shadow: inset 0 0 1px #ccc
333
  }
334
+
335
  .jstree-default .jstree-context {
336
+ background: #e7f4f9;
337
+ border-radius: 2px;
338
+ box-shadow: inset 0 0 1px #ccc
339
  }
340
+
341
  .jstree-default .jstree-clicked {
342
+ background: #beebff;
343
+ border-radius: 2px;
344
+ box-shadow: inset 0 0 1px #999
345
  }
346
+
347
  .jstree-default .jstree-no-icons .jstree-anchor > .jstree-themeicon {
348
+ display: none
349
  }
350
+
351
  .jstree-default .jstree-disabled {
352
+ background: 0 0;
353
+ color: #666
354
  }
355
+
356
  .jstree-default .jstree-disabled.jstree-hovered {
357
+ background: 0 0;
358
+ box-shadow: none
359
  }
360
+
361
  .jstree-default .jstree-disabled.jstree-clicked {
362
+ background: #efefef
363
  }
364
+
365
  .jstree-default .jstree-disabled > .jstree-icon {
366
+ opacity: .8;
367
+ 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");
368
+ filter: gray;
369
+ -webkit-filter: grayscale(100%)
 
 
 
370
  }
371
+
372
  .jstree-default .jstree-search {
373
+ font-style: italic;
374
+ color: #8b0000;
375
+ font-weight: 700
376
  }
377
+
378
  .jstree-default .jstree-no-checkboxes .jstree-checkbox {
379
+ display: none !important
380
  }
381
+
382
  .jstree-default.jstree-checkbox-no-clicked .jstree-clicked {
383
+ background: 0 0;
384
+ box-shadow: none
385
  }
386
+
387
  .jstree-default.jstree-checkbox-no-clicked .jstree-clicked.jstree-hovered {
388
+ background: #e7f4f9
389
  }
390
+
391
  .jstree-default.jstree-checkbox-no-clicked > .jstree-wholerow-ul .jstree-wholerow-clicked {
392
+ background: 0 0
393
  }
394
+
395
  .jstree-default.jstree-checkbox-no-clicked > .jstree-wholerow-ul .jstree-wholerow-clicked.jstree-wholerow-hovered {
396
+ background: #e7f4f9
397
  }
398
+
399
  .jstree-default > .jstree-striped {
400
+ min-width: 100%;
401
+ display: inline-block;
402
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAkCAMAAAB/qqA+AAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlMNAMM9s3UAAAAXSURBVHjajcEBAQAAAIKg/H/aCQZ70AUBjAATb6YPDgAAAABJRU5ErkJggg==) left top repeat
403
  }
404
+
405
+ .jstree-default > .jstree-wholerow-ul .jstree-clicked, .jstree-default > .jstree-wholerow-ul .jstree-hovered {
406
+ background: 0 0;
407
+ box-shadow: none;
408
+ border-radius: 0
409
  }
410
+
411
  .jstree-default .jstree-wholerow {
412
+ -moz-box-sizing: border-box;
413
+ -webkit-box-sizing: border-box;
414
+ box-sizing: border-box
415
  }
416
+
417
  .jstree-default .jstree-wholerow-hovered {
418
+ background: #e7f4f9
419
  }
420
+
421
  .jstree-default .jstree-wholerow-clicked {
422
+ background: #beebff;
423
+ background: -webkit-linear-gradient(top, #beebff 0, #a8e4ff 100%);
424
+ background: linear-gradient(to bottom, #beebff 0, #a8e4ff 100%)
425
  }
426
+
427
  .jstree-default .jstree-node {
428
+ min-height: 30px;
429
+ line-height: 30px;
430
+ margin-left: 24px;
431
+ min-width: 30px
432
  }
433
+
434
  .jstree-default .jstree-anchor {
435
+ line-height: 30px;
436
+ height: 30px;
437
+ width: calc(100% - 30px);
438
+ overflow: hidden;
439
+ padding: 0 30px 0 4px;
440
+ box-sizing: border-box;
441
+ position: relative;
442
+ margin: 0;
443
+ border-radius: 4px;
444
+ display: inline-block;
445
+ white-space: nowrap;
446
+ font-size: 13px;
447
+ text-overflow: ellipsis
448
+ }
449
+
450
+ .sticky-wcp-custom-form {
451
+ font-size: 13px;
452
  }
453
+
454
  .jstree-default .jstree-icon {
455
+ width: 30px;
456
+ height: 30px;
457
+ line-height: 30px
458
  }
459
+
460
  .jstree-default .jstree-icon:empty {
461
+ width: 24px;
462
+ height: 30px;
463
+ line-height: 30px
464
  }
465
+
466
  .jstree-default.jstree-rtl .jstree-node {
467
+ margin-right: 30px
468
  }
469
+
470
  .jstree-default .jstree-wholerow {
471
+ height: 30px
472
  }
473
+
474
+ /*
475
+ .jstree-default .jstree-icon, .jstree-default .jstree-node {
476
+ background-image: url(../images/32px.png)
477
  }
478
+ */
479
+ /*.jstree-default .jstree-node {
480
+ background-position: -292px -4px;
481
+ background-repeat: repeat-y;
482
+ position: relative
483
  }
484
+
485
  .jstree-default .jstree-last {
486
+ background: 0 0
487
  }
488
+
489
  .jstree-default .jstree-open > .jstree-ocl {
490
+ background-position: -132px -2px
491
  }
492
+
493
  .jstree-default .jstree-closed > .jstree-ocl {
494
+ background-position: -100px -2px
495
  }
496
+
497
  .jstree-default .jstree-leaf > .jstree-ocl {
498
+ background-position: -68px -2px
499
  }
500
+
501
  .jstree-default .jstree-themeicon {
502
+ background-position: -260px -2px;
503
+ background: 0 0
504
  }
505
+
506
+ .jstree-default > .jstree-no-dots .jstree-leaf > .jstree-ocl, .jstree-default > .jstree-no-dots .jstree-node {
507
+ background: 0 0
508
  }
509
+
510
  .jstree-default > .jstree-no-dots .jstree-open > .jstree-ocl {
511
+ background-position: -36px -2px
512
  }
513
+
514
  .jstree-default > .jstree-no-dots .jstree-closed > .jstree-ocl {
515
+ background-position: -4px -2px
516
+ }*/
517
+
518
  .jstree-default .jstree-disabled {
519
+ background: 0 0
520
  }
521
+
522
  .jstree-default .jstree-disabled.jstree-hovered {
523
+ background: 0 0
524
  }
525
+
526
  .jstree-default .jstree-disabled.jstree-clicked {
527
+ background: #efefef
528
  }
529
+
530
+ /*.jstree-default .jstree-checkbox {
531
+ background-position: -164px -4px
532
  }
533
+
534
  .jstree-default .jstree-checkbox:hover {
535
+ background-position: -164px -36px
536
  }
537
+
538
+ .jstree-default .jstree-checked > .jstree-checkbox, .jstree-default.jstree-checkbox-selection .jstree-clicked > .jstree-checkbox {
539
+ background-position: -228px -4px
540
  }
541
+
542
+ .jstree-default .jstree-checked > .jstree-checkbox:hover, .jstree-default.jstree-checkbox-selection .jstree-clicked > .jstree-checkbox:hover {
543
+ background-position: -228px -36px
544
  }
545
+
546
  .jstree-default .jstree-anchor > .jstree-undetermined {
547
+ background-position: -196px -4px
548
  }
549
+
550
  .jstree-default .jstree-anchor > .jstree-undetermined:hover {
551
+ background-position: -196px -36px
552
+ }*/
553
+
554
  .jstree-default .jstree-checkbox-disabled {
555
+ opacity: .8;
556
+ 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");
557
+ filter: gray;
558
+ -webkit-filter: grayscale(100%)
 
 
 
559
  }
560
+
561
  .jstree-default > .jstree-striped {
562
+ background-size: auto 48px
563
  }
564
+
565
  .jstree-default.jstree-rtl .jstree-node {
566
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==);
567
+ background-position: 100% 1px;
568
+ background-repeat: repeat-y
569
  }
570
+
571
  .jstree-default.jstree-rtl .jstree-last {
572
+ background: 0 0
573
  }
574
+
575
+ /*.jstree-default.jstree-rtl .jstree-open > .jstree-ocl {
576
+ background-position: -132px -36px
577
  }
578
+
579
  .jstree-default.jstree-rtl .jstree-closed > .jstree-ocl {
580
+ background-position: -100px -36px
581
  }
582
+
583
  .jstree-default.jstree-rtl .jstree-leaf > .jstree-ocl {
584
+ background-position: -68px -36px
585
  }
586
+
587
+ .jstree-default.jstree-rtl > .jstree-no-dots .jstree-leaf > .jstree-ocl, .jstree-default.jstree-rtl > .jstree-no-dots .jstree-node {
588
+ background: 0 0
589
  }
590
+
591
  .jstree-default.jstree-rtl > .jstree-no-dots .jstree-open > .jstree-ocl {
592
+ background-position: -36px -36px
593
  }
594
+
595
  .jstree-default.jstree-rtl > .jstree-no-dots .jstree-closed > .jstree-ocl {
596
+ background-position: -4px -36px
597
  }
598
+
599
  .jstree-default .jstree-themeicon-custom {
600
+ background-color: transparent;
601
+ background-image: none;
602
+ background-position: 0 0
603
  }
604
+
605
  .jstree-default > .jstree-container-ul .jstree-loading > .jstree-ocl {
606
+ background: url(throbber.gif) center center no-repeat
607
  }
608
+
609
  .jstree-default .jstree-file {
610
+ background: url(../images/32px.png) -100px -68px no-repeat
611
  }
612
+
613
  .jstree-default .jstree-folder {
614
+ background: url(../images/32px.png) -260px -4px no-repeat
615
  }
616
+ */
617
  .jstree-default > .jstree-container-ul > .jstree-node {
618
+ margin-left: 0;
619
+ margin-right: 0
620
  }
621
+
622
  .jstree-default {
623
+ line-height: 30px;
624
+ padding: 0 4px
625
  }
626
+
627
+ /*.jstree-default .jstree-er, .jstree-default .jstree-ok {
628
+ background-image: url(../images/32px.png);
629
+ background-repeat: no-repeat;
630
+ background-color: transparent
631
  }
632
+ */
633
  .jstree-default i {
634
+ background: 0 0;
635
+ width: 20px;
636
+ height: 30px;
637
+ line-height: 30px;
638
+ display: inline-block;
639
+ vertical-align: top
640
  }
641
+
642
+ /*
643
  .jstree-default .jstree-ok {
644
+ background-position: -4px -68px
645
  }
646
+
647
  .jstree-default .jstree-er {
648
+ background-position: -36px -68px
649
  }
650
+ */
651
  .jstree-default .jstree-ellipsis {
652
+ overflow: hidden
653
  }
654
+
655
  .jstree-default .jstree-ellipsis .jstree-anchor {
656
+ width: calc(100% - 29px);
657
+ text-overflow: ellipsis;
658
+ overflow: hidden
659
  }
660
+
661
  .jstree-default.jstree-rtl .jstree-node {
662
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==)
663
  }
664
+
665
  .jstree-default.jstree-rtl .jstree-last {
666
+ background: 0 0
667
  }
668
+
669
  .jstree-default-small .jstree-node {
670
+ min-height: 18px;
671
+ line-height: 18px;
672
+ margin-left: 18px;
673
+ min-width: 18px
674
  }
675
+
676
  .jstree-default-small .jstree-anchor {
677
+ line-height: 18px;
678
+ height: 18px
679
  }
680
+
681
  .jstree-default-small .jstree-icon {
682
+ width: 18px;
683
+ height: 18px;
684
+ line-height: 18px
685
  }
686
+
687
  .jstree-default-small .jstree-icon:empty {
688
+ width: 18px;
689
+ height: 18px;
690
+ line-height: 18px
691
  }
692
+
693
  .jstree-default-small.jstree-rtl .jstree-node {
694
+ margin-right: 18px
695
  }
696
+
697
  .jstree-default-small .jstree-wholerow {
698
+ height: 18px
699
  }
700
+
701
+ /*
702
+ .jstree-default-small .jstree-icon, .jstree-default-small .jstree-node {
703
+ background-image: url(../images/32px.png)
704
  }
705
+
706
  .jstree-default-small .jstree-node {
707
+ background-position: -295px -7px;
708
+ background-repeat: repeat-y
709
  }
710
+
711
  .jstree-default-small .jstree-last {
712
+ background: 0 0
713
  }
714
+
715
  .jstree-default-small .jstree-open > .jstree-ocl {
716
+ background-position: -135px -7px
717
  }
718
+
719
  .jstree-default-small .jstree-closed > .jstree-ocl {
720
+ background-position: -103px -7px
721
  }
722
+
723
  .jstree-default-small .jstree-leaf > .jstree-ocl {
724
+ background-position: -71px -7px
725
  }
726
+
727
  .jstree-default-small .jstree-themeicon {
728
+ background-position: -263px -7px
729
  }
730
+
731
+ .jstree-default-small > .jstree-no-dots .jstree-leaf > .jstree-ocl, .jstree-default-small > .jstree-no-dots .jstree-node {
732
+ background: 0 0
733
  }
734
+
735
  .jstree-default-small > .jstree-no-dots .jstree-open > .jstree-ocl {
736
+ background-position: -39px -7px
737
  }
738
+
739
  .jstree-default-small > .jstree-no-dots .jstree-closed > .jstree-ocl {
740
+ background-position: -7px -7px
741
  }
742
+
743
  .jstree-default-small .jstree-disabled {
744
+ background: 0 0
745
  }
746
+
747
  .jstree-default-small .jstree-disabled.jstree-hovered {
748
+ background: 0 0
749
  }
750
+ */
751
  .jstree-default-small .jstree-disabled.jstree-clicked {
752
+ background: #efefef
753
  }
754
+
755
+ /*
756
  .jstree-default-small .jstree-checkbox {
757
+ background-position: -167px -7px
758
  }
759
+
760
  .jstree-default-small .jstree-checkbox:hover {
761
+ background-position: -167px -39px
762
  }
763
+
764
+ .jstree-default-small .jstree-checked > .jstree-checkbox, .jstree-default-small.jstree-checkbox-selection .jstree-clicked > .jstree-checkbox {
765
+ background-position: -231px -7px
766
  }
767
+
768
+ .jstree-default-small .jstree-checked > .jstree-checkbox:hover, .jstree-default-small.jstree-checkbox-selection .jstree-clicked > .jstree-checkbox:hover {
769
+ background-position: -231px -39px
770
  }
771
+
772
  .jstree-default-small .jstree-anchor > .jstree-undetermined {
773
+ background-position: -199px -7px
774
  }
775
+
776
  .jstree-default-small .jstree-anchor > .jstree-undetermined:hover {
777
+ background-position: -199px -39px
778
  }
779
+ */
780
  .jstree-default-small .jstree-checkbox-disabled {
781
+ opacity: .8;
782
+ 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");
783
+ filter: gray;
784
+ -webkit-filter: grayscale(100%)
 
 
 
785
  }
786
+
787
  .jstree-default-small > .jstree-striped {
788
+ background-size: auto 36px
789
  }
790
+
791
  .jstree-default-small.jstree-rtl .jstree-node {
792
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==);
793
+ background-position: 100% 1px;
794
+ background-repeat: repeat-y
795
  }
796
+
797
+ /*
798
  .jstree-default-small.jstree-rtl .jstree-last {
799
+ background: 0 0
800
  }
801
+
802
  .jstree-default-small.jstree-rtl .jstree-open > .jstree-ocl {
803
+ background-position: -135px -39px
804
  }
805
+
806
  .jstree-default-small.jstree-rtl .jstree-closed > .jstree-ocl {
807
+ background-position: -103px -39px
808
  }
809
+
810
  .jstree-default-small.jstree-rtl .jstree-leaf > .jstree-ocl {
811
+ background-position: -71px -39px
812
  }
813
+
814
+ .jstree-default-small.jstree-rtl > .jstree-no-dots .jstree-leaf > .jstree-ocl, .jstree-default-small.jstree-rtl > .jstree-no-dots .jstree-node {
815
+ background: 0 0
816
  }
817
+
818
  .jstree-default-small.jstree-rtl > .jstree-no-dots .jstree-open > .jstree-ocl {
819
+ background-position: -39px -39px
820
  }
821
+
822
  .jstree-default-small.jstree-rtl > .jstree-no-dots .jstree-closed > .jstree-ocl {
823
+ background-position: -7px -39px
824
  }
825
+
826
  .jstree-default-small .jstree-themeicon-custom {
827
+ background-color: transparent;
828
+ background-image: none;
829
+ background-position: 0 0
830
  }
831
+
832
  .jstree-default-small > .jstree-container-ul .jstree-loading > .jstree-ocl {
833
+ background: url(throbber.gif) center center no-repeat
834
  }
835
+
836
  .jstree-default-small .jstree-file {
837
+ background: url(../images/32px.png) -103px -71px no-repeat
838
  }
839
+
840
  .jstree-default-small .jstree-folder {
841
+ background: url(../images/32px.png) -263px -7px no-repeat
842
  }
843
+ */
844
  .jstree-default-small > .jstree-container-ul > .jstree-node {
845
+ margin-left: 0;
846
+ margin-right: 0
847
  }
848
+
849
  .jstree-default-small {
850
+ line-height: 18px;
851
+ padding: 0 4px
852
  }
853
+
854
+ /*
855
+ .jstree-default-small .jstree-er, .jstree-default-small .jstree-ok {
856
+ background-image: url(../images/32px.png);
857
+ background-repeat: no-repeat;
858
+ background-color: transparent
859
  }
860
+
861
  .jstree-default-small i {
862
+ background: 0 0;
863
+ width: 18px;
864
+ height: 18px;
865
+ line-height: 18px
866
  }
867
+
868
  .jstree-default-small .jstree-ok {
869
+ background-position: -7px -71px
870
  }
871
+
872
  .jstree-default-small .jstree-er {
873
+ background-position: -39px -71px
874
  }
875
+ */
876
  .jstree-default-small .jstree-ellipsis {
877
+ overflow: hidden
878
  }
879
+
880
  .jstree-default-small .jstree-ellipsis .jstree-anchor {
881
+ width: calc(100% - 23px);
882
+ text-overflow: ellipsis;
883
+ overflow: hidden
884
  }
885
+
886
  .jstree-default-small.jstree-rtl .jstree-node {
887
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAACAQMAAABv1h6PAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMHBgAAiABBI4gz9AAAAABJRU5ErkJggg==)
888
  }
889
+
890
  .jstree-default-small.jstree-rtl .jstree-last {
891
+ background: 0 0
892
  }
893
+
894
  .jstree-default-large .jstree-node {
895
+ min-height: 32px;
896
+ line-height: 32px;
897
+ margin-left: 32px;
898
+ min-width: 32px
899
  }
900
+
901
  .jstree-default-large .jstree-anchor {
902
+ line-height: 32px;
903
+ height: 32px
904
  }
905
+
906
  .jstree-default-large .jstree-icon {
907
+ width: 32px;
908
+ height: 32px;
909
+ line-height: 32px
910
  }
911
+
912
  .jstree-default-large .jstree-icon:empty {
913
+ width: 32px;
914
+ height: 32px;
915
+ line-height: 32px
916
  }
917
+
918
  .jstree-default-large.jstree-rtl .jstree-node {
919
+ margin-right: 32px
920
  }
921
+
922
  .jstree-default-large .jstree-wholerow {
923
+ height: 32px
924
  }
925
+
926
+ /*
927
+ .jstree-default-large .jstree-icon, .jstree-default-large .jstree-node {
928
+ background-image: url(../images/32px.png)
929
  }
930
+ /*
931
  .jstree-default-large .jstree-node {
932
+ background-position: -288px 0;
933
+ background-repeat: repeat-y
934
  }
935
+
936
  .jstree-default-large .jstree-last {
937
+ background: 0 0
938
  }
939
+
940
  .jstree-default-large .jstree-open > .jstree-ocl {
941
+ background-position: -128px 0
942
  }
943
+
944
  .jstree-default-large .jstree-closed > .jstree-ocl {
945
+ background-position: -96px 0
946
  }
947
+
948
  .jstree-default-large .jstree-leaf > .jstree-ocl {
949
+ background-position: -64px 0
950
  }
951
+
952
  .jstree-default-large .jstree-themeicon {
953
+ background-position: -256px 0
954
  }
955
+
956
+ .jstree-default-large > .jstree-no-dots .jstree-leaf > .jstree-ocl, .jstree-default-large > .jstree-no-dots .jstree-node {
957
+ background: 0 0
958
  }
959
+
960
  .jstree-default-large > .jstree-no-dots .jstree-open > .jstree-ocl {
961
+ background-position: -32px 0
962
  }
963
+
964
  .jstree-default-large > .jstree-no-dots .jstree-closed > .jstree-ocl {
965
+ background-position: 0 0
966
  }
967
+
968
  .jstree-default-large .jstree-disabled {
969
+ background: 0 0
970
  }
971
+
972
  .jstree-default-large .jstree-disabled.jstree-hovered {
973
+ background: 0 0
974
  }
975
+
976
  .jstree-default-large .jstree-disabled.jstree-clicked {
977
+ background: #efefef
978
  }
979
+
980
  .jstree-default-large .jstree-checkbox {
981
+ background-position: -160px 0
982
  }
983
+
984
  .jstree-default-large .jstree-checkbox:hover {
985
+ background-position: -160px -32px
986
  }
987
+
988
+ .jstree-default-large .jstree-checked > .jstree-checkbox, .jstree-default-large.jstree-checkbox-selection .jstree-clicked > .jstree-checkbox {
989
+ background-position: -224px 0
990
  }
991
+
992
+ .jstree-default-large .jstree-checked > .jstree-checkbox:hover, .jstree-default-large.jstree-checkbox-selection .jstree-clicked > .jstree-checkbox:hover {
993
+ background-position: -224px -32px
994
  }
995
+
996
  .jstree-default-large .jstree-anchor > .jstree-undetermined {
997
+ background-position: -192px 0
998
  }
999
+
1000
  .jstree-default-large .jstree-anchor > .jstree-undetermined:hover {
1001
+ background-position: -192px -32px
1002
  }
1003
+
1004
  .jstree-default-large .jstree-checkbox-disabled {
1005
+ opacity: .8;
1006
+ 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");
1007
+ filter: gray;
1008
+ -webkit-filter: grayscale(100%)
 
 
 
1009
  }
1010
+
1011
  .jstree-default-large > .jstree-striped {
1012
+ background-size: auto 64px
1013
  }
1014
+
1015
  .jstree-default-large.jstree-rtl .jstree-node {
1016
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==);
1017
+ background-position: 100% 1px;
1018
+ background-repeat: repeat-y
1019
  }
1020
+
1021
  .jstree-default-large.jstree-rtl .jstree-last {
1022
+ background: 0 0
1023
  }
1024
+
1025
  .jstree-default-large.jstree-rtl .jstree-open > .jstree-ocl {
1026
+ background-position: -128px -32px
1027
  }
1028
+
1029
  .jstree-default-large.jstree-rtl .jstree-closed > .jstree-ocl {
1030
+ background-position: -96px -32px
1031
  }
1032
+
1033
  .jstree-default-large.jstree-rtl .jstree-leaf > .jstree-ocl {
1034
+ background-position: -64px -32px
1035
  }
1036
+
1037
+ .jstree-default-large.jstree-rtl > .jstree-no-dots .jstree-leaf > .jstree-ocl, .jstree-default-large.jstree-rtl > .jstree-no-dots .jstree-node {
1038
+ background: 0 0
1039
  }
1040
+
1041
  .jstree-default-large.jstree-rtl > .jstree-no-dots .jstree-open > .jstree-ocl {
1042
+ background-position: -32px -32px
1043
  }
1044
+
1045
  .jstree-default-large.jstree-rtl > .jstree-no-dots .jstree-closed > .jstree-ocl {
1046
+ background-position: 0 -32px
1047
  }
1048
+
1049
  .jstree-default-large .jstree-themeicon-custom {
1050
+ background-color: transparent;
1051
+ background-image: none;
1052
+ background-position: 0 0
1053
  }
1054
+
1055
  .jstree-default-large > .jstree-container-ul .jstree-loading > .jstree-ocl {
1056
+ background: url(throbber.gif) center center no-repeat
1057
  }
1058
+
1059
  .jstree-default-large .jstree-file {
1060
+ background: url(../images/32px.png) -96px -64px no-repeat
1061
  }
1062
+
1063
  .jstree-default-large .jstree-folder {
1064
+ background: url(../images/32px.png) -256px 0 no-repeat
1065
  }
1066
+ */
1067
  .jstree-default-large > .jstree-container-ul > .jstree-node {
1068
+ margin-left: 0;
1069
+ margin-right: 0
1070
  }
1071
+
1072
  .jstree-default-large {
1073
+ line-height: 32px;
1074
+ padding: 0 4px
1075
  }
1076
+
1077
+ /*
1078
+ .jstree-default-large .jstree-er, .jstree-default-large .jstree-ok {
1079
+ background-image: url(../images/32px.png);
1080
+ background-repeat: no-repeat;
1081
+ background-color: transparent
1082
  }
1083
+
1084
  .jstree-default-large i {
1085
+ background: 0 0;
1086
+ width: 32px;
1087
+ height: 32px;
1088
+ line-height: 32px
1089
  }
1090
+
1091
  .jstree-default-large .jstree-ok {
1092
+ background-position: 0 -64px
1093
  }
1094
+
1095
  .jstree-default-large .jstree-er {
1096
+ background-position: -32px -64px
1097
  }
1098
+
1099
  .jstree-default-large .jstree-ellipsis {
1100
+ overflow: hidden
1101
  }
1102
+
1103
  .jstree-default-large .jstree-ellipsis .jstree-anchor {
1104
+ width: calc(100% - 37px);
1105
+ text-overflow: ellipsis;
1106
+ overflow: hidden
1107
  }
1108
+
1109
  .jstree-default-large.jstree-rtl .jstree-node {
1110
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAACAQMAAAAD0EyKAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjgIIGBgABCgCBvVLXcAAAAABJRU5ErkJggg==)
1111
  }
1112
+
1113
  .jstree-default-large.jstree-rtl .jstree-last {
1114
+ background: 0 0
1115
  }
1116
+ */
1117
  @media (max-width: 768px) {
1118
+ .jstree-dnd-responsive {
1119
+ line-height: 40px;
1120
+ font-weight: 700;
1121
+ font-size: 1.1em;
1122
+ text-shadow: 1px 1px #fff
1123
+ }
1124
+
1125
+ .jstree-dnd-responsive > i {
1126
+ background: 0 0;
1127
+ width: 40px;
1128
+ height: 40px
1129
+ }
1130
+
1131
+ /*.jstree-dnd-responsive > .jstree-ok {
1132
+ background-image: url(../images/40px.png);
1133
+ background-position: 0 -200px;
1134
+ background-size: 120px 240px
1135
+ }
1136
+
1137
+ .jstree-dnd-responsive > .jstree-er {
1138
+ background-image: url(../images/40px.png);
1139
+ background-position: -40px -200px;
1140
+ background-size: 120px 240px
1141
+ }*/
1142
+ #jstree-marker.jstree-dnd-responsive {
1143
+ border-left-width: 10px;
1144
+ border-top-width: 10px;
1145
+ border-bottom-width: 10px;
1146
+ margin-top: -10px
1147
+ }
1148
  }
1149
+
1150
  @media (max-width: 768px) {
1151
+ /*.jstree-default-responsive .jstree-icon {
1152
+ background-image: url(../images/40px.png)
1153
+ }
1154
+
1155
+ .jstree-default-responsive .jstree-leaf > .jstree-ocl, .jstree-default-responsive .jstree-node {
1156
+ background: 0 0
1157
+ }*/
1158
+ .jstree-default-responsive .jstree-node {
1159
+ min-height: 40px;
1160
+ line-height: 40px;
1161
+ margin-left: 40px;
1162
+ min-width: 40px;
1163
+ white-space: nowrap
1164
+ }
1165
+
1166
+ .jstree-default-responsive .jstree-anchor {
1167
+ line-height: 40px;
1168
+ height: 40px
1169
+ }
1170
+
1171
+ .jstree-default-responsive .jstree-icon, .jstree-default-responsive .jstree-icon:empty {
1172
+ width: 40px;
1173
+ height: 40px;
1174
+ line-height: 40px
1175
+ }
1176
+
1177
+ .jstree-default-responsive > .jstree-container-ul > .jstree-node {
1178
+ margin-left: 0
1179
+ }
1180
+
1181
+ .jstree-default-responsive.jstree-rtl .jstree-node {
1182
+ margin-left: 0;
1183
+ margin-right: 40px;
1184
+ background: 0 0
1185
+ }
1186
+
1187
+ .jstree-default-responsive.jstree-rtl .jstree-container-ul > .jstree-node {
1188
+ margin-right: 0
1189
+ }
1190
+
1191
+ .jstree-default-responsive .jstree-checkbox, .jstree-default-responsive .jstree-ocl, .jstree-default-responsive .jstree-themeicon {
1192
+ background-size: 120px 240px
1193
+ }
1194
+
1195
+ .jstree-default-responsive .jstree-leaf > .jstree-ocl, .jstree-default-responsive.jstree-rtl .jstree-leaf > .jstree-ocl {
1196
+ background: 0 0
1197
+ }
1198
+
1199
+ /*.jstree-default-responsive .jstree-open > .jstree-ocl {
1200
+ background-position: 0 0 !important
1201
+ }
1202
+
1203
+ .jstree-default-responsive .jstree-closed > .jstree-ocl {
1204
+ background-position: 0 -40px !important
1205
+ }
1206
+
1207
+ .jstree-default-responsive.jstree-rtl .jstree-closed > .jstree-ocl {
1208
+ background-position: -40px 0 !important
1209
+ }
1210
+
1211
+ .jstree-default-responsive .jstree-themeicon {
1212
+ background-position: -40px -40px
1213
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1214
 
1215
+ .jstree-default-responsive .jstree-checkbox, .jstree-default-responsive .jstree-checkbox:hover {
1216
+ background-position: -40px -80px
1217
+ }
1218
+
1219
+ .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 {
1220
+ background-position: 0 -80px
1221
+ }
1222
+
1223
+ .jstree-default-responsive .jstree-anchor > .jstree-undetermined, .jstree-default-responsive .jstree-anchor > .jstree-undetermined:hover {
1224
+ background-position: 0 -120px
1225
+ }*/
1226
+ .jstree-default-responsive .jstree-anchor {
1227
+ font-weight: 700;
1228
+ font-size: 1.1em;
1229
+ text-shadow: 1px 1px #fff
1230
+ }
1231
+
1232
+ .jstree-default-responsive > .jstree-striped {
1233
+ background: 0 0
1234
+ }
1235
+
1236
+ .jstree-default-responsive .jstree-wholerow {
1237
+ border-top: 1px solid rgba(255, 255, 255, .7);
1238
+ border-bottom: 1px solid rgba(64, 64, 64, .2);
1239
+ background: #ebebeb;
1240
+ height: 40px
1241
+ }
1242
+
1243
+ .jstree-default-responsive .jstree-wholerow-hovered {
1244
+ background: #e7f4f9
1245
+ }
1246
+
1247
+ .jstree-default-responsive .jstree-wholerow-clicked {
1248
+ background: #beebff
1249
+ }
1250
+
1251
+ .jstree-default-responsive .jstree-children .jstree-last > .jstree-wholerow {
1252
+ box-shadow: inset 0 -6px 3px -5px #666
1253
+ }
1254
+
1255
+ .jstree-default-responsive .jstree-children .jstree-open > .jstree-wholerow {
1256
+ box-shadow: inset 0 6px 3px -5px #666;
1257
+ border-top: 0
1258
+ }
1259
+
1260
+ .jstree-default-responsive .jstree-children .jstree-open + .jstree-open {
1261
+ box-shadow: none
1262
+ }
1263
+
1264
+ /*.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 {
1265
+ background-image: url(../images/40px.png);
1266
+ background-size: 120px 240px
1267
+ }
1268
+
1269
+ .jstree-default-responsive .jstree-node {
1270
+ background-position: -80px 0;
1271
+ background-repeat: repeat-y
1272
+ }
1273
+
1274
+ .jstree-default-responsive .jstree-last {
1275
+ background: 0 0
1276
+ }
1277
+
1278
+ .jstree-default-responsive .jstree-leaf > .jstree-ocl {
1279
+ background-position: -40px -120px
1280
+ }
1281
+
1282
+ .jstree-default-responsive .jstree-last > .jstree-ocl {
1283
+ background-position: -40px -160px
1284
+ }
1285
+
1286
+ .jstree-default-responsive .jstree-themeicon-custom {
1287
+ background-color: transparent;
1288
+ background-image: none;
1289
+ background-position: 0 0
1290
+ }
1291
+
1292
+ .jstree-default-responsive .jstree-file {
1293
+ background: url(../images/40px.png) 0 -160px no-repeat;
1294
+ background-size: 120px 240px
1295
+ }
1296
+
1297
+ .jstree-default-responsive .jstree-folder {
1298
+ background: url(../images/40px.png) -40px -40px no-repeat;
1299
+ background-size: 120px 240px
1300
+ }*/
1301
+ .jstree-default-responsive > .jstree-container-ul > .jstree-node {
1302
+ margin-left: 0;
1303
+ margin-right: 0
1304
+ }
1305
+ }
1306
 
1307
  .thumbnail-hover {
1308
+ overflow: hidden;
1309
+ position: absolute;
1310
+ top: 0;
1311
+ right: 0;
1312
+ bottom: 0;
1313
+ left: 0;
1314
+ transition: opacity .1s;
1315
+ display: none;
1316
+ z-index: 1;
1317
  }
1318
+
1319
  .attachment-preview:hover .thumbnail-hover {
1320
+ display: block
1321
  }
1322
+
1323
  .thumbnail-hover:after {
1324
+ top: 0;
1325
+ left: 0;
1326
+ width: 100%;
1327
+ height: 100%;
1328
+ position: absolute;
1329
+ content: "";
1330
+ background: #1e293b;
1331
+ z-index: 100;
1332
+ opacity: .75
1333
  }
1334
+
1335
  .thumbnail-hover tr td, .thumbnail-hover tr th {
1336
+ font-size: 9px;
1337
+ text-align: left;
1338
+ padding: 0;
1339
+ line-height: 12px;
1340
+ color: #fff;
1341
+ white-space: nowrap
1342
  }
1343
+
1344
  .thumbnail-hover table {
1345
+ z-index: 1001;
1346
+ position: relative
1347
  }
1348
+
1349
  .thumbnail-hover-box {
1350
+ padding: 4px
1351
  }
1352
+
1353
  .thumbnail-hover tr th {
1354
+ width: 70px
1355
  }
1356
+
1357
  .thumbnail-hover-box a {
1358
+ color: #fff;
1359
+ text-decoration: none;
1360
+ font-size: 9px
1361
  }
1362
+
1363
  .thumbnail-hover-box a span {
1364
+ height: 10px;
1365
+ width: 10px;
1366
+ font-size: 12px
1367
+ }
1368
+
1369
+ body .wp-core-ui .attachment-close {
1370
+ z-index: 1001
1371
+ }
1372
+
1373
+ .jstree-closed > i.jstree-icon, .jstree-open > i.jstree-icon {
1374
+ font-family: 'premio-folder' !important;
1375
+ speak: never;
1376
+ font-style: normal;
1377
+ font-variant: normal;
1378
+ text-transform: none;
1379
+ line-height: 1;
1380
+ -webkit-font-smoothing: antialiased;
1381
+ transition: all 0.2s linear;
1382
+ -webkit-transition: all 0.2s linear;
1383
+ -moz-transition: all 0.2s linear;
1384
+ color: #fa166b;
1385
+ font-size: 10px;
1386
+ text-align: center;
1387
+ font-weight: bold;
1388
+ transform: rotate(-90deg);
1389
+ -webkit-transform: rotate(-90deg);
1390
+ -moz-transform: rotate(-90deg);
1391
+ -o-transform: rotate(-90deg);
1392
+ }
1393
+
1394
+ .jstree-closed > i.jstree-icon:after, .jstree-open > i.jstree-icon:after {
1395
+ content: "\e909";
1396
+ }
1397
+
1398
+ .jstree-open > i.jstree-icon {
1399
+ transform: rotate(0deg);
1400
+ -webkit-transform: rotate(0deg);
1401
+ -moz-transform: rotate(0deg);
1402
+ -o-transform: rotate(0deg);
1403
+ }
1404
+
1405
+ .thumbnail-hover .no-hidden tr th {
1406
+ width: auto;
1407
+ padding: 0 5px 0 0;
1408
+ }
1409
+
1410
+ .thumbnail-hover .no-hidden tr td, .thumbnail-hover .no-hidden tr th {
1411
+ white-space: break-spaces;
1412
+ font-size: 10px;
1413
+ line-height: 14px;
1414
  }
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}}.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}
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;display:none!important}.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-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 4px;box-sizing:border-box;position:relative;margin:0;border-radius:4px;display:inline-block;white-space:nowrap;font-size:13px;text-overflow:ellipsis}.sticky-wcp-custom-form{font-size:13px}.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-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-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-container-ul>.jstree-node{margin-left:0;margin-right:0}.jstree-default{line-height:30px;padding:0 4px}.jstree-default i{background:0 0;width:20px;height:30px;line-height:30px;display:inline-block;vertical-align:top}.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-disabled.jstree-clicked{background:#efefef}.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-container-ul>.jstree-node{margin-left:0;margin-right:0}.jstree-default-small{line-height:18px;padding:0 4px}.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-container-ul>.jstree-node{margin-left:0;margin-right:0}.jstree-default-large{line-height:32px;padding:0 4px}@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-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-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-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-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;z-index:1}.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}body .wp-core-ui .attachment-close{z-index:1001}.jstree-closed>i.jstree-icon,.jstree-open>i.jstree-icon{font-family:premio-folder!important;speak:never;font-style:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;transition:all .2s linear;-webkit-transition:all .2s linear;-moz-transition:all .2s linear;color:#fa166b;font-size:10px;text-align:center;font-weight:700;transform:rotate(-90deg);-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-o-transform:rotate(-90deg)}.jstree-closed>i.jstree-icon:after,.jstree-open>i.jstree-icon:after{content:"\e909"}.jstree-open>i.jstree-icon{transform:rotate(0);-webkit-transform:rotate(0);-moz-transform:rotate(0);-o-transform:rotate(0)}.thumbnail-hover .no-hidden tr th{width:auto;padding:0 5px 0 0}.thumbnail-hover .no-hidden tr td,.thumbnail-hover .no-hidden tr th{white-space:break-spaces;font-size:10px;line-height:14px}
assets/css/page-post-media.css CHANGED
@@ -252,10 +252,10 @@ svg#successAnimation {
252
  .form-options > ul > li > a {
253
  display: inline-block;
254
  text-decoration: none;
255
- padding: 5px 5px;
256
  color: #000;
257
  vertical-align: middle;
258
- margin: 0 0 5px 0;
259
  background: #f1f1f1;
260
  border-radius: 4px
261
  }
@@ -286,7 +286,7 @@ svg#successAnimation {
286
 
287
  .folder-sort-menu {
288
  position: absolute;
289
- right: 0;
290
  width: 120px;
291
  z-index: 101;
292
  background: #fff;
@@ -295,7 +295,14 @@ svg#successAnimation {
295
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, .25);
296
  display: none
297
  }
298
-
 
 
 
 
 
 
 
299
  .folder-sort-menu li {
300
  display: block;
301
  margin: 0;
@@ -610,19 +617,23 @@ body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon .pfolder-fol
610
  content: "\e901" !important;
611
  }
612
  .sticky-folders li.is-high a span.star-icon, .wcp-container .route.is-high > h3 > span.star-icon {
613
- display: block
614
  }
615
 
616
  .dynamic-menu {
617
  position: fixed;
618
  left: 50px;
619
  background: #fff;
620
- width: 170px;
621
  padding: 0;
622
  z-index: 1000001;
623
  -webkit-box-shadow: 0 0 5px 0 rgba(0, 0, 0, .25);
624
  -moz-box-shadow: 0 0 5px 0 rgba(0, 0, 0, .25);
625
- box-shadow: 0 0 5px 0 rgba(0, 0, 0, .25)
 
 
 
 
626
  }
627
  .dynamic-menu ul {
628
  margin: 0;
@@ -643,13 +654,14 @@ body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon .pfolder-fol
643
 
644
  .dynamic-menu a {
645
  text-decoration: none;
646
- color: #848484;
647
  position: relative;
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,7 +672,7 @@ body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon .pfolder-fol
660
  top: auto !important;
661
  width: 20px !important;
662
  height: 20px !important;
663
- line-height: 14px;
664
  text-align: center;
665
  }
666
 
@@ -1126,8 +1138,8 @@ li.active-menu {
1126
  display: inline-block;
1127
  }
1128
  .form-options .form-options {
1129
- background: transparent;
1130
  padding: 0;
 
1131
  box-shadow: none;
1132
  }
1133
  .attachments-browser .media-toolbar-secondary {
@@ -1144,18 +1156,22 @@ body *.media-frame.hide-menu .media-frame-menu {
1144
  }
1145
 
1146
  .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 {
1147
- left: 275px;
1148
  }
1149
  .media-frame-menu.has-folder-menu {
1150
- width: 275px;
 
 
 
1151
  }
1152
  .media-frame-menu.has-folder-menu .folder-custom-menu {
1153
  position: relative;
1154
  border: none;
1155
  width: 100%;
 
1156
  }
1157
  .media-frame.mode-select.hide-router .media-frame-title, .media-frame.mode-select.hide-router .media-frame-router, .media-frame.mode-select.hide-router .media-frame-content, .media-frame.mode-select.hide-router .media-frame-toolbar {
1158
- left: 275px;
1159
  }
1160
  .media-frame.mode-select.hide-router select#media-attachment-taxonomy-filter {
1161
  display: none;
@@ -1180,12 +1196,36 @@ html[dir=rtl] .media-frame .folder-modal .media-frame-content, html[dir=rtl] .fo
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;
@@ -1262,4 +1302,115 @@ span.pro-tip {
1262
  height: 20px;
1263
  color: #fff;
1264
  border-radius: 4px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1265
  }
252
  .form-options > ul > li > a {
253
  display: inline-block;
254
  text-decoration: none;
255
+ padding: 5px 7px;
256
  color: #000;
257
  vertical-align: middle;
258
+ margin: 0;
259
  background: #f1f1f1;
260
  border-radius: 4px
261
  }
286
 
287
  .folder-sort-menu {
288
  position: absolute;
289
+ left: 0;
290
  width: 120px;
291
  z-index: 101;
292
  background: #fff;
295
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, .25);
296
  display: none
297
  }
298
+ .folder-sort-menu.is-pro {
299
+ width: 170px;
300
+ }
301
+ .folder-sort-menu.is-pro a span {
302
+ display: inline-block;
303
+ color: #ff5983;
304
+ font-weight: 500;
305
+ }
306
  .folder-sort-menu li {
307
  display: block;
308
  margin: 0;
617
  content: "\e901" !important;
618
  }
619
  .sticky-folders li.is-high a span.star-icon, .wcp-container .route.is-high > h3 > span.star-icon {
620
+ display: inline-block
621
  }
622
 
623
  .dynamic-menu {
624
  position: fixed;
625
  left: 50px;
626
  background: #fff;
627
+ width: 235px;
628
  padding: 0;
629
  z-index: 1000001;
630
  -webkit-box-shadow: 0 0 5px 0 rgba(0, 0, 0, .25);
631
  -moz-box-shadow: 0 0 5px 0 rgba(0, 0, 0, .25);
632
+ box-shadow: 0 0 5px 0 rgba(0, 0, 0, .25);
633
+ font-size: 13px;
634
+ }
635
+ .dynamic-menu.no-key {
636
+ width: 195px;
637
  }
638
  .dynamic-menu ul {
639
  margin: 0;
654
 
655
  .dynamic-menu a {
656
  text-decoration: none;
 
657
  position: relative;
658
  display: block;
659
  padding: 5px 10px;
660
  line-height: 18px;
661
  white-space: nowrap;
662
  color: #333;
663
+ font-size:13px;
664
+ font-weight: normal;
665
  }
666
 
667
  .dynamic-menu ul > li > a > span, .dynamic-menu ul > li > a > span span {
672
  top: auto !important;
673
  width: 20px !important;
674
  height: 20px !important;
675
+ line-height: 18px;
676
  text-align: center;
677
  }
678
 
1138
  display: inline-block;
1139
  }
1140
  .form-options .form-options {
 
1141
  padding: 0;
1142
+ margin: 0;
1143
  box-shadow: none;
1144
  }
1145
  .attachments-browser .media-toolbar-secondary {
1156
  }
1157
 
1158
  .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 {
1159
+ left: 275px !important;
1160
  }
1161
  .media-frame-menu.has-folder-menu {
1162
+ width: 275px !important;
1163
+ }
1164
+ .media-frame:not(.hide-router) .media-frame-content, .folder-modal .media-frame:not(.hide-router) .media-frame-router, .folder-modal .media-frame:not(.hide-router) .media-frame-title, .folder-modal .media-frame:not(.hide-router) .media-frame-toolbar {
1165
+ left: 275px !important;
1166
  }
1167
  .media-frame-menu.has-folder-menu .folder-custom-menu {
1168
  position: relative;
1169
  border: none;
1170
  width: 100%;
1171
+ height: auto;
1172
  }
1173
  .media-frame.mode-select.hide-router .media-frame-title, .media-frame.mode-select.hide-router .media-frame-router, .media-frame.mode-select.hide-router .media-frame-content, .media-frame.mode-select.hide-router .media-frame-toolbar {
1174
+ left: 275px !important;
1175
  }
1176
  .media-frame.mode-select.hide-router select#media-attachment-taxonomy-filter {
1177
  display: none;
1196
  left: 0 !important;
1197
  right: 275px !important;
1198
  }
1199
+ html[dir=rtl] .media-frame:not(.hide-router) .media-frame-content, html[dir=rtl] .folder-modal .media-frame:not(.hide-router) .media-frame-router, html[dir=rtl] .folder-modal .media-frame:not(.hide-router) .media-frame-title, html[dir=rtl] .folder-modal .media-frame:not(.hide-router) .media-frame-toolbar {
1200
+ left: 0 !important;
1201
+ right: 275px !important;
1202
+ }
1203
+ .media-frame .sticky-folders > ul > li {
1204
+ position: relative;
1205
  }
1206
  #vakata-dnd {
1207
  z-index: 10000000 !important;
1208
  }
1209
+ .dynamic-menu.is-locked .remove-folder {
1210
+ background: #ececec;
1211
+ }
1212
+ .dynamic-menu.is-locked .remove-folder a {
1213
+ cursor: no-drop;
1214
+ }
1215
+ .jstree-node.is-locked, .jstree-node.is-locked a {
1216
+ -webkit-user-select: none;
1217
+ -khtml-user-select: none;
1218
+ -moz-user-select: none;
1219
+ -o-user-select: none;
1220
+ user-select: none;
1221
+ user-drag: none;
1222
+ -webkit-user-drag: none;
1223
+ -o-user-drag: none;
1224
+ -moz-user-drag: none;
1225
+ }
1226
+ .jstree-node.is-locked i.pfolder-folder-close {
1227
+ cursor: not-allowed;
1228
+ }
1229
  .add-folder-note {
1230
  font-size: 13px;
1231
  padding: 20px 0 0;
1302
  height: 20px;
1303
  color: #fff;
1304
  border-radius: 4px;
1305
+ }
1306
+ select#media-attachment-dynamic-filter {
1307
+ display: none !important;
1308
+ }
1309
+ .dynamic-tree-data-separator {
1310
+ margin: 7px 10px 10px;
1311
+ height: 1px;
1312
+ background: #E9E5E5;
1313
+ }
1314
+
1315
+ /* Date: Feb 2021 */
1316
+ .dynamic-tree-data {
1317
+ display: none;
1318
+ padding: 5px 0 0 0;
1319
+ }
1320
+ #dynamic-tree-folders {
1321
+ background: #fff;
1322
+ padding: 0 10px 0 0;
1323
+ }
1324
+ .dynamic-folders .folder-checkbox, .dynamic-folders .folder-actions {
1325
+ display: none !important;
1326
+ }
1327
+
1328
+ .folders-undo-notification {
1329
+ position: fixed;
1330
+ right: -500px;
1331
+ bottom: 25px;
1332
+ width: 280px;
1333
+ background: #fff;
1334
+ padding: 15px;
1335
+ -webkit-box-shadow: 0 3px 6px -4px rgb(0 0 0 / 12%), 0 6px 16px 0 rgb(0 0 0 / 8%), 0 9px 28px 8px rgb(0 0 0 / 5%);
1336
+ box-shadow: 0 3px 6px -4px rgb(0 0 0 / 12%), 0 6px 16px 0 rgb(0 0 0 / 8%), 0 9px 28px 8px rgb(0 0 0 / 5%);
1337
+ transition: all 0.25s linear;
1338
+ z-index: 1001;
1339
+ }
1340
+ .folders-undo-notification.active {
1341
+ right: 25px;
1342
+ }
1343
+ .folders-undo-header {
1344
+ font-weight: 500;
1345
+ font-size: 14px;
1346
+ padding: 0 0 3px 0;
1347
+ }
1348
+ .folders-undo-body {
1349
+ font-size: 13px;
1350
+ padding: 0 0 5px 0;
1351
+ }
1352
+ .folders-undo-footer {
1353
+ text-align: right;
1354
+ padding: 5px 0 0 0;
1355
+ }
1356
+ .folders-undo-footer .undo-button {
1357
+ background: #1da1f4;
1358
+ border: none;
1359
+ color: #fff;
1360
+ padding: 3px 10px;
1361
+ font-size: 12px;
1362
+ border-radius: 2px;
1363
+ cursor: pointer;
1364
+ }
1365
+ .folders-undo-body {
1366
+ position: relative;
1367
+ }
1368
+ .close-undo-box {
1369
+ position: absolute;
1370
+ right: -10px;
1371
+ top: 0;
1372
+ width: 16px;
1373
+ height: 16px;
1374
+ transition: all 0.25s linear;
1375
+ }
1376
+ .close-undo-box:hover {
1377
+ transform: rotate(180deg);
1378
+ }
1379
+ .close-undo-box span {
1380
+ display: block;
1381
+ position: relative;
1382
+ width: 16px;
1383
+ height: 16px;
1384
+ transition: all .2s linear;
1385
+ }
1386
+ .close-undo-box span:after, .close-undo-box span:before {
1387
+ content: "";
1388
+ position: absolute;
1389
+ width: 12px;
1390
+ height: 2px;
1391
+ background-color: #333;
1392
+ display: block;
1393
+ border-radius: 2px;
1394
+ transform: rotate(45deg);
1395
+ top: 7px;
1396
+ left: 2px;
1397
+ }
1398
+ .close-undo-box span:after {
1399
+ transform: rotate(-45deg);
1400
+ }
1401
+ #custom-scroll-menu .mCSB_container {
1402
+ background: #fff;
1403
+ }
1404
+ .folder-separator-2 {
1405
+ padding: 0;
1406
+ height: 1px;
1407
+ background: #E9E5E5;
1408
+ margin: 0px 0 5px 0;
1409
+ }
1410
+ .form-options > ul > li > a.expand-collapse {
1411
+ width: 14px;
1412
+ text-align: center;
1413
+ }
1414
+ .form-options a.expand-collapse span.icon {
1415
+ font-size: 8px;
1416
  }
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;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}
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 7px;color:#000;vertical-align:middle;margin: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;left: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:170px}.folder-sort-menu.is-pro a span{display:inline-block;color:#ff5983;font-weight:500}.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:inline-block}.dynamic-menu{position:fixed;left:50px;background:#fff;width:235px;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);font-size:13px}.dynamic-menu.no-key{width:195px}.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;position:relative;display:block;padding:5px 10px;line-height:18px;white-space:nowrap;color:#333;font-size:13px;font-weight:400}.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:18px;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{padding:0;margin: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!important}.media-frame-menu.has-folder-menu{width:275px!important}.folder-modal .media-frame:not(.hide-router) .media-frame-router,.folder-modal .media-frame:not(.hide-router) .media-frame-title,.folder-modal .media-frame:not(.hide-router) .media-frame-toolbar,.media-frame:not(.hide-router) .media-frame-content{left:275px!important}.media-frame-menu.has-folder-menu .folder-custom-menu{position:relative;border:none;width:100%;height:auto}.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!important}.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}html[dir=rtl] .folder-modal .media-frame:not(.hide-router) .media-frame-router,html[dir=rtl] .folder-modal .media-frame:not(.hide-router) .media-frame-title,html[dir=rtl] .folder-modal .media-frame:not(.hide-router) .media-frame-toolbar,html[dir=rtl] .media-frame:not(.hide-router) .media-frame-content{left:0!important;right:275px!important}.media-frame .sticky-folders>ul>li{position:relative}#vakata-dnd{z-index:10000000!important}.dynamic-menu.is-locked .remove-folder{background:#ececec}.dynamic-menu.is-locked .remove-folder a{cursor:no-drop}.jstree-node.is-locked,.jstree-node.is-locked a{-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none;user-drag:none;-webkit-user-drag:none;-o-user-drag:none;-moz-user-drag:none}.jstree-node.is-locked i.pfolder-folder-close{cursor:not-allowed}.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}select#media-attachment-dynamic-filter{display:none!important}.dynamic-tree-data-separator{margin:7px 10px 10px;height:1px;background:#e9e5e5}.dynamic-tree-data{display:none;padding:5px 0 0 0}#dynamic-tree-folders{background:#fff;padding:0 10px 0 0}.dynamic-folders .folder-actions,.dynamic-folders .folder-checkbox{display:none!important}.folders-undo-notification{position:fixed;right:-500px;bottom:25px;width:280px;background:#fff;padding:15px;-webkit-box-shadow:0 3px 6px -4px rgb(0 0 0 / 12%),0 6px 16px 0 rgb(0 0 0 / 8%),0 9px 28px 8px rgb(0 0 0 / 5%);box-shadow:0 3px 6px -4px rgb(0 0 0 / 12%),0 6px 16px 0 rgb(0 0 0 / 8%),0 9px 28px 8px rgb(0 0 0 / 5%);transition:all .25s linear;z-index:1001}.folders-undo-notification.active{right:25px}.folders-undo-header{font-weight:500;font-size:14px;padding:0 0 3px 0}.folders-undo-body{font-size:13px;padding:0 0 5px 0}.folders-undo-footer{text-align:right;padding:5px 0 0 0}.folders-undo-footer .undo-button{background:#1da1f4;border:none;color:#fff;padding:3px 10px;font-size:12px;border-radius:2px;cursor:pointer}.folders-undo-body{position:relative}.close-undo-box{position:absolute;right:-10px;top:0;width:16px;height:16px;transition:all .25s linear}.close-undo-box:hover{transform:rotate(180deg)}.close-undo-box span{display:block;position:relative;width:16px;height:16px;transition:all .2s linear}.close-undo-box span:after,.close-undo-box 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-undo-box span:after{transform:rotate(-45deg)}#custom-scroll-menu .mCSB_container{background:#fff}.folder-separator-2{padding:0;height:1px;background:#e9e5e5;margin:0 0 5px 0}.form-options>ul>li>a.expand-collapse{width:14px;text-align:center}.form-options a.expand-collapse span.icon{font-size:8px}
assets/css/replace-media.css CHANGED
@@ -1,297 +1 @@
1
- .replace-media-page {
2
- padding: 20px;
3
- background: #fff;
4
- margin: 10px 0 0;
5
- max-width: 1024px
6
- }
7
-
8
- .replace-media-page p {
9
- padding: 0 0 10px 0;
10
- margin: 0
11
- }
12
-
13
- .preview-box {
14
- width: 250px;
15
- height: 250px;
16
- background: #f1f1f1;
17
- text-align: center;
18
- position: relative
19
- }
20
-
21
- .current-image-box, .new-image-box {
22
- float: left;
23
- margin: 0 25px 0 0;
24
- border: 1px solid #ddd
25
- }
26
-
27
- .preview-box span.dashicons {
28
- font-size: 80px;
29
- width: auto;
30
- height: auto;
31
- line-height: 250px
32
- }
33
-
34
- .preview-box span.image-size {
35
- font-size: 12px;
36
- line-height: 25px;
37
- opacity: .7;
38
- position: absolute;
39
- color: #ccc;
40
- left: 48%;
41
- top: 50%;
42
- transform: translate(-50%, -50%);
43
- background-color: #333;
44
- padding: 5px 10px
45
- }
46
-
47
- .preview-box img {
48
- width: 100%;
49
- height: auto;
50
- max-height: 250px;
51
- object-fit: cover
52
- }
53
-
54
- .clearfix {
55
- clear: both
56
- }
57
-
58
- .file-option, .file-size {
59
- text-align: center;
60
- padding: 5px;
61
- height: 20px;
62
- line-height: 20px
63
- }
64
-
65
- .file-size.hide-it {
66
- display: none
67
- }
68
-
69
- .replace-message {
70
- display: none;
71
- background: #fff;
72
- padding: 8px;
73
- margin: 15px 0
74
- }
75
-
76
- .replace-message.active {
77
- display: block
78
- }
79
-
80
- .replace-message.warning {
81
- border: solid 1px #ea580c;
82
- border-left: 4px solid #ea580c;
83
- margin: 15px 0;
84
- color: #ea580c;
85
- text-align: center;
86
- font-size: 15px
87
- }
88
-
89
- .replace-message.warning span.dashicons.dashicons-warning {
90
- color: #ea580c
91
- }
92
-
93
- .replace-message.error {
94
- border-left: 4px solid red
95
- }
96
-
97
- .replace-message.success {
98
- border-left: 4px solid green
99
- }
100
-
101
- .upload-area .drag-and-drop-title {
102
- text-align: center;
103
- font-weight: 400;
104
- width: 250px;
105
- height: 250px;
106
- position: relative;
107
- cursor: pointer
108
- }
109
-
110
- .upload-area .drag-and-drop-title span:not(.image-size) {
111
- position: absolute;
112
- left: 48%;
113
- top: 50%;
114
- transform: translate(-50%, -50%);
115
- padding: 5px 10px;
116
- width: 140px
117
- }
118
-
119
- #media_file {
120
- display: none
121
- }
122
-
123
- .replacement-options {
124
- margin: 20px 0 0;
125
- border-top: solid 1px #ddd
126
- }
127
-
128
- .replace-media-buttons {
129
- padding: 14px 0 0
130
- }
131
-
132
- .replace-media-buttons button.button {
133
- margin: 0 5px 0 0
134
- }
135
-
136
- .file-size a {
137
- color: #ff5983;
138
- text-decoration: none;
139
- font-weight: 500
140
- }
141
-
142
- .upgrade-btn-box {
143
- display: none;
144
- font-size: 12px;
145
- line-height: 25px;
146
- position: absolute;
147
- color: #ccc;
148
- left: 48%;
149
- top: 50%;
150
- transform: translate(-50%, -50%)
151
- }
152
-
153
- #upload-file.active:hover .image-size {
154
- display: none
155
- }
156
-
157
- #upload-file.active:hover .upgrade-btn-box {
158
- display: block
159
- }
160
-
161
- .upgrade-btn-box a {
162
- padding: 5px 10px;
163
- text-decoration: none;
164
- background: #ff5983;
165
- color: #fff;
166
- font-weight: 500;
167
- border-radius: 4px;
168
- text-align: center;
169
- display: inline-block;
170
- line-height: 1.5;
171
- opacity: .8
172
- }
173
-
174
- .upgrade-btn-box a:hover {
175
- opacity: 1
176
- }
177
-
178
- .media-top-box {
179
- padding: 15px;
180
- border: solid 1px #ddd
181
- }
182
-
183
- .media-bottom-box {
184
- margin: 20px 0 0 0
185
- }
186
-
187
- .media-bottom-box-left, .media-bottom-box-right {
188
- width: 50%;
189
- box-sizing: border-box;
190
- padding: 0 0 0 8px;
191
- float: left
192
- }
193
-
194
- .media-bottom-box-left {
195
- padding: 0 8px 0 0
196
- }
197
-
198
- .media-setting {
199
- padding: 15px;
200
- border: solid 1px #ddd;
201
- min-height: 241px
202
- }
203
-
204
- .clear {
205
- clear: both
206
- }
207
-
208
- .media-title {
209
- font-size: 16px;
210
- border-bottom: 1px solid #ccc;
211
- padding: 0 0 10px 0;
212
- margin: 0 0 10px 0
213
- }
214
-
215
- .media-option label {
216
- display: inline-block;
217
- font-size: 1.2em;
218
- vertical-align: middle;
219
- line-height: 1.2
220
- }
221
-
222
- .media-note {
223
- color: #666;
224
- display: block;
225
- font-size: 13px;
226
- padding: 5px 0 10px 0
227
- }
228
-
229
- .media-form ul {
230
- margin: 0
231
- }
232
-
233
- .custom-date label {
234
- display: block;
235
- padding: 5px 0 3px 0
236
- }
237
-
238
- input.media-date {
239
- width: 120px
240
- }
241
-
242
- input.media-time {
243
- width: 40px;
244
- text-align: center
245
- }
246
-
247
- .inline, .inline-block {
248
- display: inline-block;
249
- vertical-align: middle
250
- }
251
-
252
- .inline-block {
253
- padding: 0 2px
254
- }
255
-
256
- .custom-date {
257
- padding: 0 0 10px 0;
258
- display: none
259
- }
260
- .media-bottom-box.pro:hover .media-bottom-pro {
261
- filter: blur(1.4px);
262
- }
263
- .media-bottom-box.pro {
264
- position: relative;
265
- }
266
- .media-bottom-pro-button {
267
- position: absolute;
268
- top: 0;
269
- left: 0;
270
- width: 100%;
271
- height: 100%;
272
- background: rgba(0,0,0,0.4);
273
- display: none;
274
- }
275
- .pro-button {
276
- position: absolute;
277
- top: 50%;
278
- left: 0;
279
- right: 0;
280
- margin: 0 auto;
281
- text-align: center;
282
- transform: translate(0, -50%);
283
- }
284
- .pro-button a {
285
- display: inline-block;
286
- padding: 5px 10px;
287
- text-decoration: none;
288
- background: #ff5983;
289
- color: #fff;
290
- font-weight: 500;
291
- border-radius: 4px;
292
- text-align: center;
293
- line-height: 1.5;
294
- }
295
- .media-bottom-box.pro:hover .media-bottom-pro-button {
296
- display: block;
297
- }
1
+ .replace-media-page{padding:20px;background:#fff;margin:10px 0 0;max-width:1024px}.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:15px 0}.replace-message.active{display:block}.replace-message.warning{border:solid 1px #ea580c;border-left:4px solid #ea580c;margin:15px 0;color:#ea580c;text-align:center;font-size:15px}.replace-message.warning span.dashicons.dashicons-warning{color:#ea580c}.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}.media-top-box{padding:15px;border:solid 1px #ddd}.media-bottom-box{margin:20px 0 0 0}.media-bottom-box-left,.media-bottom-box-right{width:50%;box-sizing:border-box;padding:0 0 0 8px;float:left}.media-bottom-box-left{padding:0 8px 0 0}.media-setting{padding:15px;border:solid 1px #ddd;min-height:241px}.clear{clear:both}.media-title{font-size:16px;border-bottom:1px solid #ccc;padding:0 0 10px 0;margin:0 0 10px 0}.media-option label{display:inline-block;font-size:1.2em;vertical-align:middle;line-height:1.2}.media-note{color:#666;display:block;font-size:13px;padding:5px 0 10px 0}.media-form ul{margin:0}.custom-date label{display:block;padding:5px 0 3px 0}input.media-date{width:120px}input.media-time{width:40px;text-align:center}.inline,.inline-block{display:inline-block;vertical-align:middle}.inline-block{padding:0 2px}.custom-date{padding:0 0 10px 0;display:none}.media-bottom-box.pro:hover .media-bottom-pro{filter:blur(1.4px)}.media-bottom-box.pro{position:relative}.media-bottom-pro-button{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.4);display:none}.pro-button{position:absolute;top:50%;left:0;right:0;margin:0 auto;text-align:center;transform:translate(0,-50%)}.pro-button a{display:inline-block;padding:5px 10px;text-decoration:none;background:#ff5983;color:#fff;font-weight:500;border-radius:4px;text-align:center;line-height:1.5}.media-bottom-box.pro:hover .media-bottom-pro-button{display:block}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/css/settings.css CHANGED
@@ -1 +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);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}.form-table td{line-height:1}.custom-checkbox+label{display:inline-block;vertical-align:middle;font-size:14px;line-height:1;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;margin:0;padding:0;line-height:1;width:20px;height:20px;vertical-align:middle}.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 input+span{border:solid 2px #8ada3b}.color-checkbox input:checked+span{border:solid 2px #8ada3b}.color-checkbox input+.sp-replacer+span{position:absolute;left:0;top:0;width:60px;padding:0 0 0 30px;border:solid 1px #155e75;margin:1px 0 0 1px}.color-checkbox input:checked+.sp-replacer+span{border:solid 2px #8ada3b;margin:0}.custom-color-picker.color-checkbox input+.sp-replacer.sp-light{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;border:none!important;position:absolute;top:7px;left:8px;z-index:1001}.custom-color-picker.color-checkbox input+.sp-replacer.sp-light .sp-preview{background:0 0}.custom-color-picker.color-checkbox input:not(:checked)+.sp-replacer.sp-light .sp-preview .sp-preview-inner{background:0 0!important}.color-checkbox.active input+span:after,.custom-color-picker.color-checkbox.active input+.sp-replacer+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}.seconds-box{position:relative;display:inline-block;width:100px}.seconds-box input{width:100%}.seconds-box:after{content:"seconds";position:absolute;right:2px;top:3px;height:24px;background:#dbdbdb;line-height:24px;padding:0 5px;border-radius:2px}.timeout-settings{display:none}.timeout-settings.active{display:table-row}.html-tooltip.dynamic .tooltip-text{height:490px}span.recommanded{background:#7e3af2;display:inline-block;color:#fff;padding:3px 5px;border-radius:5px;font-size:12px;margin:0 0 0 5px;vertical-align:middle}.tooltip-text span.new{display:block;padding:5px 0 0 0}.tooltip-text span.new a{font-weight:700;color:#30a3ff}.enable-replace-media.show .html-tooltip .tooltip-text{visibility:visible;opacity: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);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}.form-table td{line-height:1}.custom-checkbox+label{display:inline-block;vertical-align:middle;font-size:14px;line-height:1;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(1.6px)}.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;margin:0;padding:0;line-height:1;width:20px;height:20px;vertical-align:middle}.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 input+span{border:solid 2px #8ada3b}.color-checkbox input:checked+span{border:solid 2px #8ada3b}.color-checkbox input+.sp-replacer+span{position:absolute;left:0;top:0;width:60px;padding:0 0 0 30px;border:solid 1px #155e75;margin:1px 0 0 1px}.color-checkbox input:checked+.sp-replacer+span{border:solid 2px #8ada3b;margin:0}.custom-color-picker.color-checkbox input+.sp-replacer.sp-light{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;border:none!important;position:absolute;top:7px;left:8px;z-index:1001}.custom-color-picker.color-checkbox input+.sp-replacer.sp-light .sp-preview{background:0 0}.custom-color-picker.color-checkbox input:not(:checked)+.sp-replacer.sp-light .sp-preview .sp-preview-inner{background:0 0!important}.color-checkbox input:checked+span:after,.custom-color-picker.color-checkbox input:checked+.sp-replacer+span:after{background:#dbeafe;border-radius:10px;position:absolute;top:-10px;left:-10px;width:20px;margin:0;text-align:center;padding:0;color:#6366f1;content:"\f15e";font-family:dashicons;display:inline-block;line-height:1;font-weight:700;font-size:16px}.color-checkbox.active input:checked+span:after,.custom-color-picker.color-checkbox.active input:checked+.sp-replacer+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}.seconds-box{position:relative;display:inline-block;width:100px}.seconds-box input{width:100%}.seconds-box:after{content:"seconds";position:absolute;right:2px;top:3px;height:24px;background:#dbdbdb;line-height:24px;padding:0 5px;border-radius:2px}.timeout-settings{display:none}.timeout-settings.active{display:table-row}.html-tooltip.dynamic .tooltip-text{height:490px}span.recommanded{background:#7e3af2;display:inline-block;color:#fff;padding:3px 5px;border-radius:5px;font-size:12px;margin:0 0 0 5px;vertical-align:middle}.tooltip-text span.new{display:block;padding:5px 0 0 0}.tooltip-text span.new a{font-weight:700;color:#30a3ff}.enable-replace-media.show .html-tooltip .tooltip-text{visibility:visible;opacity:1}.folders-by-user{width:100%;max-width:420px}.folders-by-user span.danger-info{color:#333}.folders-by-user .import-export-table tr td.last-td{width:60px;padding:0}.folders-by-user input:checked+.folder-slider{background:#1da1f4}.folders-by-user a.upgrade-box-link .upgrade-link{top:0}.folders-by-user span.danger-data{display:block}.folders-tabs .accordion-content{display:block!important}input[type=range]{-webkit-appearance:none;margin:10px 0;width:100%}input#folder_custom_font_size{width:100%}#folder_custom_font_size[type=range]:focus{outline:0}#folder_custom_font_size[type=range]::-webkit-slider-runnable-track{width:100%;height:4px;cursor:pointer;animate:.2s;box-shadow:0 0 0 #000,0 0 0 #0d0d0d;background:#1da1f4;border-radius:25px;border:0 solid #000101}#folder_custom_font_size[type=range]::-webkit-slider-thumb{box-shadow:0 0 0 #000,0 0 0 #0d0d0d;border:0 solid #000;height:16px;width:16px;border-radius:8px;background:#fff;cursor:pointer;box-shadow:0 0 5px #8f8f8f;-webkit-appearance:none;margin-top:-6px}#folder_custom_font_size[type=range]:focus::-webkit-slider-runnable-track{background:#1da1f4}.font-range-slider{width:100%;max-width:270px}.font-slider{display:flex;flex:1;align-content:center;align-items:center}.font-slider-left,.font-slider-right{flex:0 0 24px;text-align:center;font-size:12px}.font-slider-right{font-size:24px}.font-slider-center{flex:1}#custom_font_size{display:none}#custom_font_size.active{display:table-row}.folder-help-btn{display:block!important}
assets/fonts/premio-folder.eot CHANGED
Binary file
assets/fonts/premio-folder.svg CHANGED
@@ -1,24 +1,32 @@
1
- <?xml version="1.0" standalone="no"?>
2
- <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
- <svg xmlns="http://www.w3.org/2000/svg">
4
- <metadata>Generated by IcoMoon</metadata>
5
- <defs>
6
- <font id="premio-folder" horiz-adv-x="1024">
7
- <font-face units-per-em="1024" ascent="960" descent="-64" />
8
- <missing-glyph horiz-adv-x="1024" />
9
- <glyph unicode="&#x20;" horiz-adv-x="512" d="" />
10
- <glyph unicode="&#xe900;" glyph-name="star" d="M1021.295 592.423c-6.605 19.354-24.064 33.025-44.442 34.612l-291.903 23.194-126.315 279.612c-8.244 18.381-26.522 30.158-46.645 30.158s-38.401-11.776-46.645-30.107l-126.315-279.664-291.9-23.194c-20.020-1.587-37.275-14.746-44.085-33.639s-1.997-40.040 12.391-54.069l215.712-210.285-76.291-330.356c-4.71-20.429 3.534-41.677 20.788-53.606 8.807-6.042 18.945-9.114 29.134-9.114 9.882 0 19.815 2.867 28.417 8.602l278.793 185.863 278.793-185.863c17.818-11.878 41.217-11.418 58.626 1.229 17.304 12.646 24.933 34.816 19.045 55.398l-93.646 327.694 232.253 209.005c15.206 13.722 20.787 35.124 14.234 54.53z" />
11
- <glyph unicode="&#xe901;" glyph-name="move" d="M1014.704 469.51l-167.38 157.538c-8.58 8.078-21.138 10.282-31.963 5.606-10.818-4.675-17.818-15.33-17.818-27.116v-68.924h-196.926v196.924h68.924c11.784 0 22.442 7.004 27.116 17.822s2.472 23.38-5.606 31.96l-157.54 167.386c-5.582 5.93-13.366 9.294-21.51 9.294s-15.928-3.364-21.51-9.294l-157.538-167.386c-8.078-8.58-10.28-21.142-5.606-31.96s15.33-17.822 27.116-17.822h68.924v-196.924h-196.924v68.924c0 11.784-7.004 22.442-17.822 27.116-10.82 4.674-23.38 2.471-31.96-5.606l-167.386-157.538c-5.93-5.582-9.294-13.366-9.294-21.51s3.364-15.928 9.294-21.51l167.384-157.538c8.58-8.078 21.14-10.282 31.96-5.606 10.819 4.675 17.822 15.33 17.822 27.116v68.924h196.924v-196.921h-68.924c-11.784 0-22.442-7.007-27.116-17.825s-2.472-23.376 5.606-31.963l157.538-167.38c5.58-5.932 13.366-9.296 21.51-9.296s15.928 3.365 21.51 9.296l157.539 167.38c8.078 8.587 10.279 21.146 5.606 31.963s-15.33 17.825-27.116 17.825h-68.924v196.921h196.923v-68.924c0-11.784 7.007-22.442 17.825-27.116s23.376-2.471 31.956 5.606l167.387 157.538c5.932 5.58 9.289 13.366 9.289 21.51s-3.357 15.928-9.289 21.51z" />
12
- <glyph unicode="&#xe902;" glyph-name="folder-open" d="M8.448 61.399c9.523-14.336 25.549-22.992 42.752-22.992h767.994c20.48 0 39.014 12.186 47.049 31.027l153.6 358.398c6.806 15.82 5.168 33.945-4.301 48.332-9.523 14.387-25.552 23.039-42.749 23.039h-51.2v153.599c0 56.473-45.93 102.399-102.4 102.399h-340.734l-130.866 102.399h-245.195c-56.473 0-102.399-45.926-102.399-102.399v-665.595h0.358c0-9.83 2.509-19.709 8.090-28.208zM819.193 652.802v-153.599h-614.395c-20.48 0-39.014-12.185-47.052-31.027l-55.347-129.176v313.801h716.795z" />
13
- <glyph unicode="&#xe903;" glyph-name="edit-folder" d="M372.090 132.805l-214.445 214.448 518.671 518.671 214.445-214.445-518.672-518.675zM137.6 309.479l196.715-196.713-294.931-98.217 98.216 294.93zM956.715 717.154l-37.195-37.196-214.726 214.728 37.196 37.196c37.468 37.491 98.225 37.491 135.696 0l79.029-79.033c37.203-37.593 37.203-98.113 0-135.695z" />
14
- <glyph unicode="&#xe904;" glyph-name="pin" d="M588.646 348.696l166.548 166.544 59.627-59.63 59.633 59.63c32.913 32.916 32.913 86.344 0 119.26l-178.893 178.89c-32.913 32.916-86.341 32.916-119.258 0l-59.63-59.63 59.63-59.63-166.546-166.546-131.603 29.815c-11.181 0.030-21.884-4.413-29.815-12.343l-59.63-59.63c-16.488-16.488-16.457-43.172 0-59.63l119.26-119.258-89.445-89.449-29.815-89.443 89.445 29.816 89.445 89.443 119.26-119.26c16.488-16.486 43.142-16.486 59.63 0l59.63 59.633c7.933 7.927 12.372 18.631 12.342 29.81l-29.814 131.608z" />
15
- <glyph unicode="&#xe905;" glyph-name="search" d="M437.911 84.18c101.048 0 193.94 34.757 268.056 92.394l201.934-201.925c21.372-21.38 56.027-21.38 77.4 0 21.372 21.372 21.372 56.027 0 77.4l-201.933 201.93c57.695 74.171 92.453 167.063 92.453 268.111 0 241.453-196.456 437.911-437.909 437.911s-437.911-196.458-437.911-437.911c0-241.453 196.458-437.909 437.911-437.909zM437.911 850.522c181.131 0 328.436-147.302 328.436-328.433s-147.305-328.436-328.436-328.436c-181.131 0-328.433 147.305-328.433 328.436s147.302 328.433 328.433 328.433z" />
16
- <glyph unicode="&#xe906;" glyph-name="folder-close" d="M921.6 818.215h-490.803l-87.398 87.398c-9.574 9.626-22.63 15.002-36.198 15.002h-204.8c-56.474 0-102.4-45.926-102.4-102.4v-716.8c0-56.47 45.926-102.4 102.4-102.4h819.2c56.47 0 102.4 45.93 102.4 102.4v614.4c0 56.474-45.93 102.4-102.4 102.4z" />
17
- <glyph unicode="&#xe907;" glyph-name="arrow-sort" horiz-adv-x="783" d="M246.971 919.211l166.793-225.886c13.697-18.512 0.676-45.166-22.235-45.166h-83.766v-536.477c0-15.607-12.063-28.232-27.428-28.232h-111.194c-15.365 0-27.799 12.625-27.799 28.232v536.477h-83.397c-22.891 0-35.945 26.635-22.233 45.166l166.793 225.886c10.478 14.229 33.988 14.229 44.466 0zM641.349 248.459h83.769c22.914 0 35.93-26.654 22.233-45.164l-166.792-225.882c-11.082-15.047-33.367-15.071-44.466 0l-166.795 225.888c-13.712 18.528-0.66 45.164 22.233 45.164h83.398v536.474c0 15.607 12.433 28.235 27.799 28.235h111.196c15.366 0 27.425-12.628 27.425-28.235v-536.48z" />
18
- <glyph unicode="&#xe908;" glyph-name="arrow-down" d="M512.003 310.272l-405.237 398.966c-24.424 24.046-64.024 24.046-88.448 0s-24.424-63.033 0-87.079l442.24-435.397c14.052-13.834 33.127-19.709 51.445-17.625 18.318-2.084 37.394 3.791 51.446 17.625l442.24 435.397c24.427 24.046 24.427 63.033 0 87.079s-64.028 24.046-88.448 0l-405.238-398.966z" />
19
- <glyph unicode="&#xe909;" glyph-name="add-folder" d="M512 960c42.415 0 76.8-34.385 76.8-76.8v-870.4c0-42.415-34.385-76.8-76.8-76.8s-76.8 34.385-76.8 76.8v870.4c0 42.415 34.385 76.8 76.8 76.8zM1024 448c0-42.415-34.385-76.8-76.8-76.8h-870.4c-42.415 0-76.8 34.385-76.8 76.8s34.385 76.8 76.8 76.8h870.4c42.415 0 76.8-34.385 76.8-76.8z" />
20
- <glyph unicode="&#xe90a;" glyph-name="remove" d="M612.572 960v-64h319.999v-127.999h-896v127.999h320v64h256.001zM228.571-64c-70.594 0-127.999 57.439-127.999 128v639.999h768v-639.999c0-70.561-57.403-128-128-128h-512.001z" />
21
- <glyph unicode="&#xe90b;" glyph-name="edit" d="M360.346 64.088l-232.261 232.259 561.763 561.762 232.264-232.26-561.766-561.761zM106.375 255.434l213.059-213.055-319.434-106.379 106.375 319.434zM993.543 696.978l-40.28-40.286-232.571 232.568 40.286 40.286c40.58 40.605 106.386 40.605 146.966 0l85.599-85.6c40.287-40.716 40.287-106.265 0-146.968z" />
22
- <glyph unicode="&#xe90c;" glyph-name="zip-file" horiz-adv-x="768" d="M754 750l-195.8 196c-9 9-21.2 14-34 14h-12.2v-256h256v12.2c0 12.6-5 24.8-14 33.8zM256.8 288c-35.8 0-64.8-24.2-64.8-54 0-30 29.2-54 65-54s64.8 24.2 64.8 54-29.2 54-65 54zM448 688v272h-127.2v-64h-64v64h-208.8c-26.6 0-48-21.4-48-48v-928c0-26.6 21.4-48 48-48h672c26.6 0 48 21.4 48 48v656h-272c-26.4 0-48 21.6-48 48zM191.8 896h64v-64h-64zM256.4 128c-66.4 0-116 60.8-102.8 125.8l39.2 194.2v64h64v64h-64v64h64v64h-64v64h64v64h64v-64h-64v-64h64v-64h-64v-64h64v-64h-64v-64h44.2c11.4 0 21.4-8.2 23.6-19.4l34.6-175.4c12.8-64.8-36.8-125.2-102.8-125.2z" />
23
- <glyph unicode="&#xe90d;" glyph-name="clone" horiz-adv-x="896" d="M640 64v-80c0-26.51-21.49-48-48-48h-544c-26.51 0-48 21.49-48 48v736c0 26.51 21.49 48 48 48h144v-592c0-61.758 50.242-112 112-112h336zM640 752v208h-336c-26.51 0-48-21.49-48-48v-736c0-26.51 21.49-48 48-48h544c26.51 0 48 21.49 48 48v528h-208c-26.4 0-48 21.6-48 48zM881.942 814.058l-131.884 131.884c-8.686 8.686-20.686 14.058-33.94 14.058h-12.118v-192h192v12.118c0 13.254-5.372 25.254-14.058 33.94v0z" />
 
 
 
 
 
 
 
 
24
  </font></defs></svg>
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
+ <svg xmlns="http://www.w3.org/2000/svg">
4
+ <metadata>Generated by IcoMoon</metadata>
5
+ <defs>
6
+ <font id="premio-folder" horiz-adv-x="1024">
7
+ <font-face units-per-em="1024" ascent="960" descent="-64" />
8
+ <missing-glyph horiz-adv-x="1024" />
9
+ <glyph unicode="&#x20;" horiz-adv-x="512" d="" />
10
+ <glyph unicode="&#xe900;" glyph-name="dynamic-folder" d="M694.622 758.624c-12.501 12.501-32.75 12.501-45.25 0l-639.998-639.997c-12.5-12.501-12.5-32.749 0-45.25l128-128c6.249-6.25 14.437-9.374 22.626-9.374s16.374 3.125 22.626 9.374l639.995 639.998c12.501 12.499 12.501 32.749 0 45.248l-127.998 128zM159.998 13.25l-82.748 82.752 434.747 434.747 82.752-82.75c0 0.002-434.751-434.749-434.751-434.749zM639.997 493.25l-82.75 82.75 114.749 114.75 82.752-82.752-114.75-114.749zM448.002 704c32 63.998 63.998 96 128 128-64 32-96 63.999-128 128-32.002-63.999-64.003-96-128-128 64-32 95.998-64.002 128-128v0zM959.998 512c-15.998-32-32.005-48-63.998-63.998 32-16 48-32.002 63.998-64 16 32.002 32.002 48 64 64-31.998 15.998-47.998 32-64 63.998zM959.998 864c-47.998 24.001-72 48-95.998 96-24.002-48-48.005-72.001-96-96 48-24.001 72-48 96-95.999 24 47.999 48 72 95.998 95.999z" />
11
+ <glyph unicode="&#xe901;" glyph-name="star" d="M1021.295 592.423c-6.605 19.354-24.064 33.025-44.442 34.612l-291.903 23.194-126.315 279.612c-8.244 18.381-26.522 30.158-46.645 30.158s-38.401-11.776-46.645-30.107l-126.315-279.664-291.9-23.194c-20.020-1.587-37.275-14.746-44.085-33.639s-1.997-40.040 12.391-54.069l215.712-210.285-76.291-330.356c-4.71-20.429 3.534-41.677 20.788-53.606 8.807-6.042 18.945-9.114 29.134-9.114 9.882 0 19.815 2.867 28.417 8.602l278.793 185.863 278.793-185.863c17.818-11.878 41.217-11.418 58.626 1.229 17.304 12.646 24.933 34.816 19.045 55.398l-93.646 327.694 232.253 209.005c15.206 13.722 20.787 35.124 14.234 54.53z" />
12
+ <glyph unicode="&#xe902;" glyph-name="move" d="M1014.704 469.51l-167.38 157.538c-8.58 8.078-21.138 10.282-31.963 5.606-10.818-4.675-17.818-15.33-17.818-27.116v-68.924h-196.926v196.924h68.924c11.784 0 22.442 7.004 27.116 17.822s2.472 23.38-5.606 31.96l-157.54 167.386c-5.582 5.93-13.366 9.294-21.51 9.294s-15.928-3.364-21.51-9.294l-157.538-167.386c-8.078-8.58-10.28-21.142-5.606-31.96s15.33-17.822 27.116-17.822h68.924v-196.924h-196.924v68.924c0 11.784-7.004 22.442-17.822 27.116-10.82 4.674-23.38 2.471-31.96-5.606l-167.386-157.538c-5.93-5.582-9.294-13.366-9.294-21.51s3.364-15.928 9.294-21.51l167.384-157.538c8.58-8.078 21.14-10.282 31.96-5.606 10.819 4.675 17.822 15.33 17.822 27.116v68.924h196.924v-196.921h-68.924c-11.784 0-22.442-7.007-27.116-17.825s-2.472-23.376 5.606-31.963l157.538-167.38c5.58-5.932 13.366-9.296 21.51-9.296s15.928 3.365 21.51 9.296l157.539 167.38c8.078 8.587 10.279 21.146 5.606 31.963s-15.33 17.825-27.116 17.825h-68.924v196.921h196.923v-68.924c0-11.784 7.007-22.442 17.825-27.116s23.376-2.471 31.956 5.606l167.387 157.538c5.932 5.58 9.289 13.366 9.289 21.51s-3.357 15.928-9.289 21.51z" />
13
+ <glyph unicode="&#xe903;" glyph-name="folder-open" d="M8.448 61.399c9.523-14.336 25.549-22.992 42.752-22.992h767.994c20.48 0 39.014 12.186 47.049 31.027l153.6 358.398c6.806 15.82 5.168 33.945-4.301 48.332-9.523 14.387-25.552 23.039-42.749 23.039h-51.2v153.599c0 56.473-45.93 102.399-102.4 102.399h-340.734l-130.866 102.399h-245.195c-56.473 0-102.399-45.926-102.399-102.399v-665.595h0.358c0-9.83 2.509-19.709 8.090-28.208zM819.193 652.802v-153.599h-614.395c-20.48 0-39.014-12.185-47.052-31.027l-55.347-129.176v313.801h716.795z" />
14
+ <glyph unicode="&#xe904;" glyph-name="edit-folder" d="M372.090 132.805l-214.445 214.448 518.671 518.671 214.445-214.445-518.672-518.675zM137.6 309.479l196.715-196.713-294.931-98.217 98.216 294.93zM956.715 717.154l-37.195-37.196-214.726 214.728 37.196 37.196c37.468 37.491 98.225 37.491 135.696 0l79.029-79.033c37.203-37.593 37.203-98.113 0-135.695z" />
15
+ <glyph unicode="&#xe905;" glyph-name="pin" d="M588.646 348.696l166.548 166.544 59.627-59.63 59.633 59.63c32.913 32.916 32.913 86.344 0 119.26l-178.893 178.89c-32.913 32.916-86.341 32.916-119.258 0l-59.63-59.63 59.63-59.63-166.546-166.546-131.603 29.815c-11.181 0.030-21.884-4.413-29.815-12.343l-59.63-59.63c-16.488-16.488-16.457-43.172 0-59.63l119.26-119.258-89.445-89.449-29.815-89.443 89.445 29.816 89.445 89.443 119.26-119.26c16.488-16.486 43.142-16.486 59.63 0l59.63 59.633c7.933 7.927 12.372 18.631 12.342 29.81l-29.814 131.608z" />
16
+ <glyph unicode="&#xe906;" glyph-name="search" d="M437.911 84.18c101.048 0 193.94 34.757 268.056 92.394l201.934-201.925c21.372-21.38 56.027-21.38 77.4 0 21.372 21.372 21.372 56.027 0 77.4l-201.933 201.93c57.695 74.171 92.453 167.063 92.453 268.111 0 241.453-196.456 437.911-437.909 437.911s-437.911-196.458-437.911-437.911c0-241.453 196.458-437.909 437.911-437.909zM437.911 850.522c181.131 0 328.436-147.302 328.436-328.433s-147.305-328.436-328.436-328.436c-181.131 0-328.433 147.305-328.433 328.436s147.302 328.433 328.433 328.433z" />
17
+ <glyph unicode="&#xe907;" glyph-name="folder-close" d="M921.6 818.215h-490.803l-87.398 87.398c-9.574 9.626-22.63 15.002-36.198 15.002h-204.8c-56.474 0-102.4-45.926-102.4-102.4v-716.8c0-56.47 45.926-102.4 102.4-102.4h819.2c56.47 0 102.4 45.93 102.4 102.4v614.4c0 56.474-45.93 102.4-102.4 102.4z" />
18
+ <glyph unicode="&#xe908;" glyph-name="arrow-sort" horiz-adv-x="783" d="M246.971 919.211l166.793-225.886c13.697-18.512 0.676-45.166-22.235-45.166h-83.766v-536.477c0-15.607-12.063-28.232-27.428-28.232h-111.194c-15.365 0-27.799 12.625-27.799 28.232v536.477h-83.397c-22.891 0-35.945 26.635-22.233 45.166l166.793 225.886c10.478 14.229 33.988 14.229 44.466 0zM641.349 248.459h83.769c22.914 0 35.93-26.654 22.233-45.164l-166.792-225.882c-11.082-15.047-33.367-15.071-44.466 0l-166.795 225.888c-13.712 18.528-0.66 45.164 22.233 45.164h83.398v536.474c0 15.607 12.433 28.235 27.799 28.235h111.196c15.366 0 27.425-12.628 27.425-28.235v-536.48z" />
19
+ <glyph unicode="&#xe909;" glyph-name="arrow-down" horiz-adv-x="1843" d="M921.606 195.504l-729.346 731.432c-43.959 44.085-115.231 44.085-159.19 0s-43.959-115.56 0-159.645l795.951-798.228c25.289-25.36 59.619-36.133 92.586-32.313 32.967-3.82 67.295 6.953 92.586 32.313l795.951 798.228c43.958 44.085 43.958 115.56 0 159.645-43.96 44.085-115.231 44.085-159.191 0l-729.346-731.432z" />
20
+ <glyph unicode="&#xe90a;" glyph-name="add-folder" d="M512 960c42.415 0 76.8-34.385 76.8-76.8v-870.4c0-42.415-34.385-76.8-76.8-76.8s-76.8 34.385-76.8 76.8v870.4c0 42.415 34.385 76.8 76.8 76.8zM1024 448c0-42.415-34.385-76.8-76.8-76.8h-870.4c-42.415 0-76.8 34.385-76.8 76.8s34.385 76.8 76.8 76.8h870.4c42.415 0 76.8-34.385 76.8-76.8z" />
21
+ <glyph unicode="&#xe90b;" glyph-name="remove" d="M612.572 960v-64h319.999v-127.999h-896v127.999h320v64h256.001zM228.571-64c-70.594 0-127.999 57.439-127.999 128v639.999h768v-639.999c0-70.561-57.403-128-128-128h-512.001z" />
22
+ <glyph unicode="&#xe90c;" glyph-name="edit" d="M360.346 64.088l-232.261 232.259 561.763 561.762 232.264-232.26-561.766-561.761zM106.375 255.434l213.059-213.055-319.434-106.379 106.375 319.434zM993.543 696.978l-40.28-40.286-232.571 232.568 40.286 40.286c40.58 40.605 106.386 40.605 146.966 0l85.599-85.6c40.287-40.716 40.287-106.265 0-146.968z" />
23
+ <glyph unicode="&#xe90d;" glyph-name="zip-file" horiz-adv-x="768" d="M754 750l-195.8 196c-9 9-21.2 14-34 14h-12.2v-256h256v12.2c0 12.6-5 24.8-14 33.8zM256.8 288c-35.8 0-64.8-24.2-64.8-54 0-30 29.2-54 65-54s64.8 24.2 64.8 54-29.2 54-65 54zM448 688v272h-127.2v-64h-64v64h-208.8c-26.6 0-48-21.4-48-48v-928c0-26.6 21.4-48 48-48h672c26.6 0 48 21.4 48 48v656h-272c-26.4 0-48 21.6-48 48zM191.8 896h64v-64h-64zM256.4 128c-66.4 0-116 60.8-102.8 125.8l39.2 194.2v64h64v64h-64v64h64v64h-64v64h64v64h64v-64h-64v-64h64v-64h-64v-64h64v-64h-64v-64h44.2c11.4 0 21.4-8.2 23.6-19.4l34.6-175.4c12.8-64.8-36.8-125.2-102.8-125.2z" />
24
+ <glyph unicode="&#xe90e;" glyph-name="clone" horiz-adv-x="896" d="M640 64v-80c0-26.51-21.49-48-48-48h-544c-26.51 0-48 21.49-48 48v736c0 26.51 21.49 48 48 48h144v-592c0-61.758 50.242-112 112-112h336zM640 752v208h-336c-26.51 0-48-21.49-48-48v-736c0-26.51 21.49-48 48-48h544c26.51 0 48 21.49 48 48v528h-208c-26.4 0-48 21.6-48 48zM881.942 814.058l-131.884 131.884c-8.686 8.686-20.686 14.058-33.94 14.058h-12.118v-192h192v12.118c0 13.254-5.372 25.254-14.058 33.94v0z" />
25
+ <glyph unicode="&#xe90f;" glyph-name="copy" d="M195.2 807.527l-0.146-103.521v-512.196c0-42.028 16.696-82.337 46.416-112.062 29.72-29.718 70.029-46.416 112.059-46.416h420.133c-7.57-21.387-21.585-39.907-40.116-53.007s-40.665-20.129-63.356-20.136h-316.66c-61.429 0-120.342 24.408-163.779 67.84-43.437 43.44-67.839 102.356-67.839 163.781v512.196c0 47.786 30.574 88.503 73.289 103.521zM792.387 935.625c14.408 0 28.679-2.838 41.983-8.352 13.312-5.514 25.41-13.595 35.599-23.783s18.271-22.283 23.779-35.594c5.515-13.311 8.353-27.578 8.353-41.985v-633.904c0-14.409-2.838-28.679-8.353-41.984-5.508-13.312-13.59-25.41-23.779-35.599s-22.287-18.271-35.599-23.779c-13.305-5.515-27.575-8.353-41.983-8.353h-438.857c-29.098 0-57.004 11.557-77.58 32.132s-32.135 48.486-32.135 77.583v633.904c0 29.098 11.559 57.004 32.135 77.58s48.482 32.135 77.58 32.135h438.857zM792.387 862.482h-438.857c-9.699 0-19.001-3.853-25.86-10.712s-10.712-16.16-10.712-25.86v-633.904c0-20.187 16.384-36.571 36.571-36.571h438.857c9.699 0 19.002 3.855 25.863 10.708 6.853 6.861 10.708 16.165 10.708 25.863v633.904c0 9.699-3.855 19.001-10.708 25.86-6.861 6.859-16.163 10.712-25.863 10.712z" />
26
+ <glyph unicode="&#xe910;" glyph-name="cut" d="M372.541 684.983c11.216 24.381 17.554 51.2 17.554 79.969 0 107.764-87.284 195.048-195.047 195.048s-195.048-87.284-195.048-195.048c0-107.764 87.284-195.047 195.048-195.047 28.769 0 55.589 6.339 79.969 17.554l115.078-115.079-115.078-115.078c-24.381 11.215-51.2 17.554-79.969 17.554-107.764 0-195.048-87.284-195.048-195.050 0-107.761 87.284-195.043 195.048-195.043s195.047 87.281 195.047 195.043c0 28.774-6.339 55.591-17.554 79.972l115.079 115.078 341.331-341.336h146.286v48.764l-602.695 602.697zM195.048 667.429c-53.639 0-97.524 43.398-97.524 97.524s43.886 97.524 97.524 97.524c53.638 0 97.524-43.399 97.524-97.524s-43.886-97.524-97.524-97.524zM195.048 82.286c-53.639 0-97.524 43.396-97.524 97.521 0 54.128 43.886 97.526 97.524 97.526s97.524-43.399 97.524-97.526c0-54.126-43.886-97.521-97.524-97.521zM487.619 448c-13.654 0-24.381 10.728-24.381 24.381s10.728 24.381 24.381 24.381c13.653 0 24.381-10.728 24.381-24.381s-10.728-24.381-24.381-24.381zM828.95 911.238l-292.569-292.572 97.524-97.524 341.331 341.334v48.762h-146.286z" />
27
+ <glyph unicode="&#xe911;" glyph-name="menu-settings" d="M41.151 288.505l97.524-168.719c6.475-11.191 17.129-19.346 29.619-22.689 12.491-3.335 25.796-1.573 36.989 4.893l68.072 39.3c28.282-22.279 59.538-40.565 92.404-54.221v-77.919c0-12.932 5.138-25.337 14.283-34.48s21.547-14.285 34.48-14.285h195.048c12.932 0 25.335 5.142 34.48 14.285s14.282 21.548 14.282 34.48v77.919c33.123 13.795 64.211 32.037 92.401 54.221l68.074-39.3c23.259-13.407 53.197-5.361 66.611 17.796l97.521 168.719c6.422 11.206 8.148 24.493 4.813 36.969-3.328 12.475-11.461 23.129-22.608 29.64l-66.904 38.668c5.23 35.962 5.193 72.493-0.095 108.447l66.896 38.668c23.216 13.409 31.261 43.398 17.803 66.609l-97.529 168.716c-6.473 11.192-17.123 19.353-29.616 22.69s-25.797 1.578-36.988-4.892l-68.074-39.303c-28.156 22.217-59.232 40.462-92.354 54.224v77.921c0 12.932-5.138 25.335-14.283 34.48s-21.547 14.282-34.48 14.282h-195.048c-12.932 0-25.335-5.137-34.48-14.282s-14.282-21.547-14.282-34.48v-77.921c-33.123-13.79-64.211-32.033-92.404-54.224l-68.023 39.303c-5.541 3.21-11.66 5.296-18.008 6.139s-12.8 0.426-18.986-1.227c-6.186-1.653-11.987-4.51-17.068-8.406s-9.345-8.757-12.546-14.304l-97.524-168.716c-6.418-11.205-8.148-24.493-4.815-36.969s11.461-23.129 22.613-29.64l66.901-38.668c-5.26-35.958-5.26-72.49 0-108.447l-66.901-38.668c-23.211-13.409-31.256-43.398-17.798-66.609zM511.996 643.054c107.568 0 195.047-87.479 195.047-195.048s-87.479-195.048-195.047-195.048c-107.569 0-195.048 87.479-195.048 195.048s87.479 195.048 195.048 195.048z" />
28
+ <glyph unicode="&#xe912;" glyph-name="paste" d="M133.908 833.969h99.879c6.518-18.437 18.595-34.399 34.565-45.685s35.047-17.341 54.602-17.331h189.046c19.555-0.010 38.632 6.045 54.602 17.331s28.047 27.248 34.565 45.685h99.879c8.357 0 16.371-3.319 22.279-9.229s9.229-13.922 9.229-22.279v-63.015c0-8.357 3.319-16.371 9.229-22.279s13.922-9.229 22.279-9.229c8.357 0 16.371 3.319 22.279 9.229s9.229 13.922 9.229 22.279v63.015c0 25.069-9.959 49.111-27.685 66.838s-41.769 27.685-66.838 27.685h-99.879c-6.518 18.437-18.595 34.398-34.565 45.684s-35.047 17.341-54.602 17.331h-189.046c-19.555 0.010-38.632-6.045-54.602-17.331s-28.047-27.247-34.565-45.684h-99.879c-25.069 0-49.111-9.959-66.838-27.685s-27.685-41.769-27.685-66.838v-756.185c0-25.072 9.959-49.113 27.685-66.836 17.727-17.731 41.769-27.687 66.838-27.687h189.046c8.357 0 16.371 3.316 22.279 9.232 5.909 5.908 9.229 13.919 9.229 22.276s-3.319 16.368-9.229 22.276c-5.908 5.916-13.922 9.232-22.279 9.232h-189.046c-8.357 0-16.37 3.316-22.279 9.232-5.909 5.908-9.228 13.919-9.228 22.276v756.185c0 8.357 3.32 16.371 9.228 22.279s13.923 9.229 22.279 9.229zM322.954 833.969c-8.357 0-16.371 3.319-22.279 9.229s-9.229 13.922-9.229 22.279c0 8.357 3.319 16.37 9.229 22.279s13.922 9.228 22.279 9.228h189.046c8.357 0 16.371-3.32 22.279-9.228s9.229-13.923 9.229-22.279c0-8.357-3.319-16.371-9.229-22.279s-13.922-9.229-22.279-9.229h-189.046zM512.004 644.923c-25.069 0-49.112-9.959-66.838-27.685s-27.685-41.769-27.685-66.838v-504.123c0-25.072 9.959-49.113 27.685-66.836 17.726-17.731 41.769-27.687 66.838-27.687h315.073c25.072 0 49.113 9.956 66.844 27.687 17.723 17.723 27.68 41.763 27.68 66.836v504.123c0 25.069-9.956 49.111-27.68 66.838-17.731 17.726-41.771 27.685-66.844 27.685h-315.073z" />
29
+ <glyph unicode="&#xe913;" glyph-name="undo" d="M511.090 943.999c-132.538-0.238-252.876-52.466-341.72-137.37l-71.428 71.428c-30.24 30.24-81.942 8.824-81.942-33.94v-268.118c0-26.51 21.49-48 48-48h268.118c42.764 0 64.18 51.702 33.942 81.942l-83.5 83.5c61.728 57.798 141.602 89.814 226.46 90.546 184.797 1.596 340.567-147.954 338.967-338.884-1.517-181.123-148.352-333.103-335.987-333.103-82.254 0-159.994 29.357-221.26 83.11-9.486 8.32-23.812 7.814-32.736-1.107l-79.324-79.322c-9.744-9.747-9.261-25.632 0.964-34.867 87.952-79.443 204.504-127.814 332.356-127.814 273.933 0 496 222.067 496 495.996 0 273.618-223.29 496.494-496.91 496.004z" />
30
+ <glyph unicode="&#xe914;" glyph-name="upload" d="M281.603 294.394c-45.848 0.057-89.929 17.692-123.174 49.266s-53.121 74.688-55.541 120.472c-2.421 45.784 12.8 90.755 42.529 125.658s71.706 57.084 117.292 61.978c-13.423 52.639-5.385 108.455 22.345 155.168s72.881 80.497 125.521 93.92c52.639 13.423 108.455 5.385 155.168-22.345 46.716-27.73 80.497-72.881 93.922-125.52 31.306 4.359 63.169 2.23 93.622-6.255 30.447-8.485 58.823-23.144 83.365-43.065 24.536-19.921 44.715-44.679 59.278-72.732s23.194-58.804 25.361-90.338c2.173-31.534-2.173-63.176-12.754-92.959-10.587-29.784-27.187-57.070-48.765-80.162-21.584-23.097-47.684-41.5-76.686-54.073-28.996-12.572-60.274-19.046-91.881-19.012h-128.002v183.653l66.204-66.202c9.654-9.327 22.585-14.487 36.011-14.371s26.266 5.501 35.76 14.994c9.495 9.493 14.876 22.335 14.996 35.759 0.114 13.424-5.046 26.357-14.37 36.014l-153.602 153.6c-9.601 9.598-22.622 14.99-36.198 14.99s-26.597-5.392-36.198-14.99l-153.6-153.6c-9.326-9.657-14.487-22.59-14.371-36.014s5.502-26.266 14.994-35.759c9.493-9.493 22.335-14.878 35.759-14.994s26.358 5.044 36.014 14.371l66.202 66.15v-183.601h-179.2zM460.806 294.4h102.4v-256c0-13.574-5.394-26.601-14.996-36.198-9.602-9.603-22.625-14.996-36.204-14.996s-26.602 5.393-36.204 14.996c-9.602 9.597-14.996 22.625-14.996 36.198v256z" />
31
+ <glyph unicode="&#xe915;" glyph-name="active-icon" d="M512 753.2c-195.646 0-373.068-107.040-503.988-280.901-10.683-14.244-10.683-34.144 0-48.388 130.92-174.071 308.342-281.11 503.988-281.11s373.068 107.040 503.988 280.901c10.683 14.244 10.683 34.144 0 48.388-130.92 174.071-308.342 281.11-503.988 281.11zM526.035 233.083c-129.872-8.169-237.121 98.87-228.952 228.952 6.703 107.249 93.634 194.18 200.883 200.883 129.872 8.169 237.121-98.87 228.952-228.952-6.913-107.040-93.843-193.97-200.883-200.883zM519.541 332.372c-69.963-4.399-127.777 53.206-123.169 123.169 3.561 57.814 50.483 104.526 108.297 108.297 69.963 4.399 127.777-53.206 123.169-123.169-3.77-58.024-50.692-104.736-108.297-108.297z" />
32
  </font></defs></svg>
assets/fonts/premio-folder.ttf CHANGED
Binary file
assets/fonts/premio-folder.woff CHANGED
Binary file
assets/js/folders.js CHANGED
@@ -19,6 +19,7 @@
19
  var n_o_file;
20
  var duplicateFolderId = 0;
21
  var fileFolderID = 0;
 
22
  var folderOrder = 0;
23
  var isMultipleRemove = false;
24
  var folderIDs = "";
@@ -42,6 +43,37 @@
42
  var currentPage = 1;
43
  $(document).ready(function(){
44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  foldersArray = wcp_settings.taxonomies;
46
 
47
  isKeyActive = parseInt(wcp_settings.is_key_active);
@@ -53,6 +85,17 @@
53
 
54
  folderPropertyArray = wcp_settings.folder_settings;
55
 
 
 
 
 
 
 
 
 
 
 
 
56
  initJSTree();
57
 
58
  setCustomScrollForFolder();
@@ -204,20 +247,22 @@
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) {
@@ -294,12 +339,14 @@
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>";
@@ -352,7 +399,7 @@
352
  $(".dynamic-menu").remove();
353
  });
354
 
355
- $(".wcp-hide-show-buttons .toggle-buttons").click(function(){
356
  var folderStatus = "show";
357
  if($(this).hasClass("hide-folders")) {
358
  folderStatus = "hide";
@@ -400,7 +447,7 @@
400
  }
401
  });
402
 
403
- $(document).on("click", ".undo-button", function(){
404
  $("#do-undo").removeClass("active");
405
  if(wcp_settings.useFolderUndo == "yes") {
406
  $.ajax({
@@ -416,6 +463,18 @@
416
  setTimeout(function(){
417
  $("#undo-done").removeClass("active");
418
  }, 2500);
 
 
 
 
 
 
 
 
 
 
 
 
419
  resetMediaAndPosts();
420
  }
421
  })
@@ -427,16 +486,35 @@
427
  $("#do-undo").removeClass("active");
428
  });
429
  });
 
430
  function checkForUndoFunctionality() {
431
  if(wcp_settings.useFolderUndo == "yes") {
432
  $("#do-undo").addClass("active");
 
433
  setTimeout(function(){
434
  $("#do-undo").removeClass("active");
 
435
  }, parseInt(wcp_settings.defaultTimeout));
436
  }
437
  }
438
 
 
 
 
 
 
 
 
 
 
 
 
 
 
439
  function setDragAndDropElements() {
 
 
 
440
  $(".wcp-move-file:not(.ui-draggable)").draggable({
441
  revert: "invalid",
442
  containment: "document",
@@ -578,16 +656,7 @@
578
  $(".wp-list-table input:checked").each(function(){
579
  chkStr += $(this).val() + ",";
580
  });
581
- $.ajax({
582
- url: wcp_settings.ajax_url,
583
- data: "post_id=" + chkStr + "&type=" + wcp_settings.post_type + "&action=wcp_remove_post_folder&folder_id=" + folderID + "&nonce=" + nonce+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+activeRecordID,
584
- method: 'post',
585
- success: function (res) {
586
- //window.location.reload();
587
- checkForUndoFunctionality();
588
- resetMediaAndPosts();
589
- }
590
- });
591
  }
592
  } else if (ui.draggable.hasClass('wcp-move-file')) {
593
  postID = ui.draggable[0].attributes['data-id'].nodeValue;
@@ -597,16 +666,7 @@
597
  chkStr += $(this).val() + ",";
598
  }
599
  });
600
- $.ajax({
601
- url: wcp_settings.ajax_url,
602
- data: "post_id=" + chkStr + "&type=" + wcp_settings.post_type + "&action=wcp_remove_post_folder&folder_id=" + folderID + "&nonce=" + nonce+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+activeRecordID,
603
- method: 'post',
604
- success: function (res) {
605
- //window.location.reload();
606
- checkForUndoFunctionality();
607
- resetMediaAndPosts();
608
- }
609
- });
610
  } else if (ui.draggable.hasClass('attachment')) {
611
  chkStr = ui.draggable[0].attributes['data-id'].nodeValue;
612
  if ($(".attachments-browser li.attachment.selected").length > 1) {
@@ -616,16 +676,7 @@
616
  });
617
  }
618
  folderIDs = chkStr;
619
- $.ajax({
620
- url: wcp_settings.ajax_url,
621
- data: "post_id=" + chkStr + "&type=" + wcp_settings.post_type + "&action=wcp_remove_post_folder&folder_id=" + folderID + "&nonce=" + nonce+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+activeRecordID,
622
- method: 'post',
623
- success: function (res) {
624
- // window.location.reload();
625
- checkForUndoFunctionality();
626
- resetMediaAndPosts();
627
- }
628
- });
629
  }
630
  }
631
  });
@@ -1085,7 +1136,33 @@
1085
  addFolder();
1086
  });
1087
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1088
  $(document).on("click", ".new-folder", function(){
 
 
 
 
 
 
 
 
1089
  fileFolderID = $(this).closest(".dynamic-menu").data("id");
1090
  isItFromMedia = false;
1091
  addFolder();
@@ -1093,6 +1170,7 @@
1093
 
1094
  $(document).on("click", ".duplicate-folder", function(e){
1095
  e.stopPropagation();
 
1096
  fileFolderID = $(this).closest(".dynamic-menu").data("id");
1097
  $(".dynamic-menu").remove();
1098
  isItFromMedia = false;
@@ -1123,8 +1201,20 @@
1123
  parentId = 0;
1124
  }
1125
 
 
 
1126
  if(parentId == 0) {
1127
  folderOrder = $("#js-tree-menu > ul > li.jstree-node").length;
 
 
 
 
 
 
 
 
 
 
1128
  } else {
1129
  folderOrder = $("#js-tree-menu > ul > li.jstree-node[id='"+parentId+"'] > ul.jstree-children > li").length + 1;
1130
  }
@@ -1140,7 +1230,9 @@
1140
  order: folderOrder,
1141
  name: folderNameDynamic,
1142
  is_duplicate: isDuplicate,
1143
- duplicate_from: duplicateFolderId
 
 
1144
  },
1145
  method: 'post',
1146
  success: function (res) {
@@ -1168,13 +1260,24 @@
1168
  'is_deleted': 0
1169
  };
1170
  folderPropertyArray.push(folderProperty);
1171
- $('#js-tree-menu').jstree().create_node(result.parent_id, {
1172
- "id": result.data[i]['term_id'],
1173
- "text": " " + result.data[i]['title']
1174
- }, "last", function () {
1175
- $(".jstree-node[id='" + result.data[i]['term_id'] + "']").attr("data-nonce", result.data[i]['nonce']);
1176
- $(".jstree-node[id='" + result.data[i]['term_id'] + "']").attr("data-slug", result.data[i]['slug']);
1177
- });
 
 
 
 
 
 
 
 
 
 
 
1178
  }
1179
  }
1180
  ajaxAnimation();
@@ -1227,7 +1330,7 @@
1227
 
1228
  /* update folder code */
1229
  $(document).ready(function(){
1230
- $("#inline-update").click(function(){
1231
  if($("#js-tree-menu a.jstree-clicked").length) {
1232
  fileFolderID = $("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id");
1233
  updateFolder();
@@ -1332,24 +1435,38 @@
1332
 
1333
  /* Remove Folders */
1334
  $(document).ready(function(){
1335
- $("#inline-remove").click(function(){
1336
  if($("#js-tree-menu a.jstree-clicked").length) {
1337
  fileFolderID = $("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id");
1338
  removeFolderFromID(1);
1339
  $(".dynamic-menu").remove();
1340
  $(".active-menu").removeClass("active-menu");
1341
  } else {
1342
- if($("#folder-hide-show-checkbox").is(":checked")) {
1343
  $(".dynamic-menu").remove();
1344
  removeFolderFromID(1);
1345
  }
1346
  }
1347
  });
1348
 
1349
- $(document).on("click","#folder-hide-show-checkbox",function(){
 
 
 
 
 
 
 
 
 
 
 
 
1350
  if($(this).is(":checked")) {
 
1351
  $("#js-tree-menu").addClass("show-folder-checkbox");
1352
  } else {
 
1353
  $("#js-tree-menu input.checkbox").attr("checked", false);
1354
  $("#js-tree-menu").removeClass("show-folder-checkbox");
1355
  }
@@ -1422,7 +1539,7 @@
1422
  }
1423
 
1424
  function removeMultipleFolderItems() {
1425
- if($("#folder-hide-show-checkbox").is(":checked")) {
1426
  if($("#js-tree-menu input.checkbox:checked").length > 0) {
1427
  var folderIDs = "";
1428
  var activeItemDeleted = false;
@@ -1467,7 +1584,7 @@
1467
  } else {
1468
  window.location.reload();
1469
  }
1470
- $("#folder-hide-show-checkbox").attr("checked", false);
1471
  $("#js-tree-menu input.checkbox").attr("checked", false);
1472
  $("#js-tree-menu").removeClass("show-folder-checkbox");
1473
  }
@@ -1483,7 +1600,7 @@
1483
  var removeNotice = "Items in the folder will not be deleted.";
1484
  isMultipleRemove = false;
1485
  if(popup_type == 1) {
1486
- if($("#folder-hide-show-checkbox").is(":checked")) {
1487
  isMultipleRemove = true;
1488
  if($("#js-tree-menu input.checkbox:checked").length == 0) {
1489
  $(".folder-popup-form").hide();
@@ -1644,7 +1761,11 @@
1644
  $(".sticky-folders .sticky-folder-"+activeRecordID+" a").addClass("active-item");
1645
  });
1646
 
1647
- $(".header-posts").click(function(){
 
 
 
 
1648
  activeRecordID = "";
1649
  $(".wcp-container .route").removeClass("active-item");
1650
  $(".un-categorised-items").removeClass("active-item");
@@ -1687,9 +1808,10 @@
1687
  set_default_folders("all");
1688
  add_active_item_to_list();
1689
  }
 
1690
  });
1691
 
1692
- $(".un-categorised-items").click(function(){
1693
  activeRecordID = "-1";
1694
  $(".wcp-container .route").removeClass("active-item");
1695
  $(".header-posts a").removeClass("active-item");
@@ -1731,10 +1853,11 @@
1731
  set_default_folders("-1");
1732
  add_active_item_to_list();
1733
  }
 
1734
  });
1735
 
1736
  /* Expand/Collapse */
1737
- $("#expand-collapse-list").click(function(e){
1738
  e.stopPropagation();
1739
  statusType = 0;
1740
  if($(this).hasClass("all-open")) {
@@ -1742,11 +1865,13 @@
1742
  statusType = 0;
1743
  $(this).attr("data-folder-tooltip","Expand");
1744
  $("#js-tree-menu").jstree("close_all");
 
1745
  } else {
1746
  $(this).addClass("all-open");
1747
  statusType = 1;
1748
  $(this).attr("data-folder-tooltip","Collapse");
1749
  $("#js-tree-menu").jstree("open_all");
 
1750
  }
1751
  folderIDs = "";
1752
  $("#js-tree-menu .jstree-node:not(.jstree-leaf)").each(function(){
@@ -1794,7 +1919,7 @@
1794
  $("#jstree-dnd").text("Below "+$.trim($("#js-tree-menu").jstree(true).get_node(nodeId).text));
1795
  break;
1796
  case "i":
1797
- if(!hasChildren) {
1798
  return false;
1799
  }
1800
  o.origin.get_node(o.ref, !0).addClass("drag-in");
@@ -1833,6 +1958,7 @@
1833
  }).bind("ready.jstree", (function() {
1834
  setFolderCount();
1835
  setDragAndDropElements();
 
1836
  })).bind("after_open.jstree", (function() {
1837
  //data.text is the new name:
1838
  setDragAndDropElements();
@@ -1852,6 +1978,15 @@
1852
  //data.text is the new name:
1853
  setDragAndDropElements();
1854
  })).bind("move_node.jstree", (function(t, n) {
 
 
 
 
 
 
 
 
 
1855
  if(n.node.parent != "#") {
1856
  jQuery("#js-tree-menu").jstree("open_node",n.node.parent);
1857
  }
@@ -1946,6 +2081,20 @@
1946
  $(document).on("blur", "#folder-search", function(){
1947
  checkForFolderSearch();
1948
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1949
  });
1950
 
1951
  function checkForFolderSearch() {
@@ -2003,14 +2152,17 @@
2003
  if($("#js-tree-menu .jstree-node.jstree-leaf").length == $("#js-tree-menu .jstree-node").length) {
2004
  $("#expand-collapse-list").removeClass("all-open");
2005
  $("#expand-collapse-list").attr("data-folder-tooltip","Expand");
 
2006
  } else {
2007
  var totalChild = $("#js-tree-menu .jstree-node.jstree-closed").length + $("#js-tree-menu .jstree-node.jstree-open").length;
2008
  if($("#js-tree-menu .jstree-node.jstree-closed").length == totalChild) {
2009
  $("#expand-collapse-list").removeClass("all-open");
2010
  $("#expand-collapse-list").attr("data-folder-tooltip","Expand");
 
2011
  } else {
2012
  $("#expand-collapse-list").addClass("all-open");
2013
  $("#expand-collapse-list").attr("data-folder-tooltip","Collapse");
 
2014
  }
2015
  }
2016
  }, 500);
@@ -2140,6 +2292,37 @@
2140
  }
2141
 
2142
  $(document).ready(function(){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2143
  $(document).on("click", ".thumbnail-hover-box a", function(e){
2144
  e.stopPropagation();
2145
  e.stopImmediatePropagation();
@@ -2250,6 +2433,48 @@
2250
  }
2251
  }
2252
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2253
  if(wcp_settings.post_type == "attachment") {
2254
 
2255
  $(document).ready(function(){
19
  var n_o_file;
20
  var duplicateFolderId = 0;
21
  var fileFolderID = 0;
22
+ var creatingParentMenu = 0;
23
  var folderOrder = 0;
24
  var isMultipleRemove = false;
25
  var folderIDs = "";
43
  var currentPage = 1;
44
  $(document).ready(function(){
45
 
46
+ /* check for jetpack */
47
+ if($("body").hasClass("jetpack-connected") && !$("body").hasClass("mobile")) {
48
+ if(!$("body").hasClass("folded")) {
49
+ if($("#adminmenuwrap").length) {
50
+ var yLength = parseInt($("#adminmenuwrap").width());
51
+ if ($("html").prop("dir") == "rtl") {
52
+ $(".wcp-content").css("right", yLength);
53
+ } else {
54
+ $(".wcp-content").css("left", yLength);
55
+ }
56
+ }
57
+ }
58
+ }
59
+
60
+ $(document).on("click", "#collapse-button", function(){
61
+ setTimeout(function(){
62
+ if($("body").hasClass("jetpack-connected") && !$("body").hasClass("mobile")) {
63
+ if(!$("body").hasClass("folded")) {
64
+ if($("#adminmenuwrap").length) {
65
+ var yLength = parseInt($("#adminmenuwrap").width());
66
+ if ($("html").prop("dir") == "rtl") {
67
+ $(".wcp-content").css("right", yLength);
68
+ } else {
69
+ $(".wcp-content").css("left", yLength);
70
+ }
71
+ }
72
+ }
73
+ }
74
+ }, 50);
75
+ });
76
+
77
  foldersArray = wcp_settings.taxonomies;
78
 
79
  isKeyActive = parseInt(wcp_settings.is_key_active);
85
 
86
  folderPropertyArray = wcp_settings.folder_settings;
87
 
88
+ $(document).on("click", ".folder-settings-btn > a", function(e){
89
+ e.stopPropagation();
90
+ $(".folder-settings-btn").toggleClass('active');
91
+ });
92
+ $(document).on("click", "body,html", function(){
93
+ $(".folder-settings-btn").removeClass('active');
94
+ });
95
+ $(document).on("click", ".folder-setting-menu", function(e){
96
+ e.stopPropagation();
97
+ });
98
+
99
  initJSTree();
100
 
101
  setCustomScrollForFolder();
247
  $(".dynamic-menu").remove();
248
  $(".active-menu").removeClass("active-menu");
249
  menuHtml = "<div class='dynamic-menu' data-id='"+$(this).closest("li").prop("id")+"'><ul>";
250
+ menuHtml += "<li class='new-main-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>";
251
+ if(hasChildren) {
252
+ menuHtml += "<li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>";
253
+ } else {
254
+ 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>";
255
+ }
256
+ menuHtml += "<li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span>Rename</a></li>" +
257
+ "<li class='default-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-active-icon'></i></span>Open this folder by default (Pro)</a></li>" +
258
+ "<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>";
259
+ if(hasStars) {
260
+ menuHtml += "<li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>" + ((isHigh) ? "Remove Star" : "Add a Star") + "</a></li>";
261
+ } else {
262
+ 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>";
263
+ }
264
+ menuHtml += "<li class='lock-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class='dashicons dashicons-lock'></span>Lock Folder (Pro)</a></li>" +
265
+ "<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>";
266
 
267
  hasPosts = parseInt($(this).closest("a.jstree-anchor").find(".premio-folder-count").text());
268
  if (wcp_settings.post_type == "attachment" && hasPosts) {
339
  $(".dynamic-menu").remove();
340
  $(".active-menu").removeClass("active-menu");
341
  menuHtml = "<div class='dynamic-menu' data-id='"+$(this).closest("li").data("folder-id")+"'><ul>";
342
+ menuHtml += "<li class='new-main-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>";
343
  if(hasChildren) {
344
  menuHtml += "<li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>";
345
  } else {
346
  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>";
347
  }
348
  menuHtml += "<li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span>Rename</a></li>" +
349
+ "<li class='default-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-active-icon'></i></span>Open this folder by default (Pro)</a></li>" +
350
  "<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>";
351
  if(hasStars) {
352
  menuHtml += "<li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>" + ((isHigh) ? "Remove Star" : "Add a Star") + "</a></li>";
399
  $(".dynamic-menu").remove();
400
  });
401
 
402
+ $(".wcp-hide-show-buttons .toggle-buttons").on("click", function(){
403
  var folderStatus = "show";
404
  if($(this).hasClass("hide-folders")) {
405
  folderStatus = "hide";
447
  }
448
  });
449
 
450
+ $(document).on("click", ".undo-button, .undo-folder-action:not(.disabled)", function(){
451
  $("#do-undo").removeClass("active");
452
  if(wcp_settings.useFolderUndo == "yes") {
453
  $.ajax({
463
  setTimeout(function(){
464
  $("#undo-done").removeClass("active");
465
  }, 2500);
466
+ if($("#media-attachment-taxonomy-filter").length) {
467
+ var wp1 = parent.wp;
468
+ if(wp1.media != undefined) {
469
+ wp1.media.frame.setState('insert');
470
+ if (wp1.media.frame.content.get() !== null) {
471
+ wp1.media.frame.content.get().collection.props.set({ignore: (+new Date())});
472
+ wp1.media.frame.content.get().options.selection.reset();
473
+ } else {
474
+ wp1.media.frame.library.props.set({ignore: (+new Date())});
475
+ }
476
+ }
477
+ }
478
  resetMediaAndPosts();
479
  }
480
  })
486
  $("#do-undo").removeClass("active");
487
  });
488
  });
489
+
490
  function checkForUndoFunctionality() {
491
  if(wcp_settings.useFolderUndo == "yes") {
492
  $("#do-undo").addClass("active");
493
+ $('.undo-folder-action').removeClass("disabled");
494
  setTimeout(function(){
495
  $("#do-undo").removeClass("active");
496
+ $('.undo-folder-action').addClass("disabled");
497
  }, parseInt(wcp_settings.defaultTimeout));
498
  }
499
  }
500
 
501
+ function checkForCopyPaste() {
502
+ $(".cut-folder-action, .copy-folder-action, .paste-folder-action, .delete-folder-action").addClass("disabled");
503
+ if($("#js-tree-menu .jstree-anchor.jstree-clicked").length) {
504
+ $(".delete-folder-action").removeClass("disabled");
505
+ }
506
+
507
+ if($("#menu-checkbox").is(":checked")) {
508
+ if($("#js-tree-menu input.checkbox:checked").length > 0) {
509
+ $(".delete-folder-action").removeClass("disabled");
510
+ }
511
+ }
512
+ }
513
+
514
  function setDragAndDropElements() {
515
+
516
+ checkForCopyPaste();
517
+
518
  $(".wcp-move-file:not(.ui-draggable)").draggable({
519
  revert: "invalid",
520
  containment: "document",
656
  $(".wp-list-table input:checked").each(function(){
657
  chkStr += $(this).val() + ",";
658
  });
659
+ checkForOtherFolders(chkStr);
 
 
 
 
 
 
 
 
 
660
  }
661
  } else if (ui.draggable.hasClass('wcp-move-file')) {
662
  postID = ui.draggable[0].attributes['data-id'].nodeValue;
666
  chkStr += $(this).val() + ",";
667
  }
668
  });
669
+ checkForOtherFolders(chkStr);
 
 
 
 
 
 
 
 
 
670
  } else if (ui.draggable.hasClass('attachment')) {
671
  chkStr = ui.draggable[0].attributes['data-id'].nodeValue;
672
  if ($(".attachments-browser li.attachment.selected").length > 1) {
676
  });
677
  }
678
  folderIDs = chkStr;
679
+ checkForOtherFolders(chkStr);
 
 
 
 
 
 
 
 
 
680
  }
681
  }
682
  });
1136
  addFolder();
1137
  });
1138
 
1139
+ $(document).on("mouseover", ".folders-action-menu", function(){
1140
+ $("body").addClass("add-folder-zindex");
1141
+ }).on("mouseleave", ".folders-action-menu", function(){
1142
+ $("body").removeClass("add-folder-zindex");
1143
+ });
1144
+
1145
+ $(document).on("change", "#media-attachment-taxonomy-filter", function(e){
1146
+ $("#js-tree-menu").jstree(true).deselect_all();
1147
+ $(".active-item").removeClass("active-item");
1148
+ if($(this).val() == "all") {
1149
+ $(".all-posts").addClass("active-item");
1150
+ } else if($(this).val() == "unassigned") {
1151
+ $(".un-categorised-items").addClass("active-item");
1152
+ } else {
1153
+ $("#js-tree-menu").jstree('select_node', $(this).val());
1154
+ }
1155
+ });
1156
+
1157
  $(document).on("click", ".new-folder", function(){
1158
+ fileFolderID = $(this).closest(".dynamic-menu").data("id");
1159
+ isItFromMedia = false;
1160
+ creatingParentMenu = 0;
1161
+ addFolder();
1162
+ });
1163
+
1164
+ $(document).on("click", ".new-main-folder", function(){
1165
+ creatingParentMenu = 1;
1166
  fileFolderID = $(this).closest(".dynamic-menu").data("id");
1167
  isItFromMedia = false;
1168
  addFolder();
1170
 
1171
  $(document).on("click", ".duplicate-folder", function(e){
1172
  e.stopPropagation();
1173
+ creatingParentMenu = 0;
1174
  fileFolderID = $(this).closest(".dynamic-menu").data("id");
1175
  $(".dynamic-menu").remove();
1176
  isItFromMedia = false;
1201
  parentId = 0;
1202
  }
1203
 
1204
+ var parentIds = "";
1205
+
1206
  if(parentId == 0) {
1207
  folderOrder = $("#js-tree-menu > ul > li.jstree-node").length;
1208
+ if(creatingParentMenu) {
1209
+ folderOrder = jQuery("#js-tree-menu > ul > li[id='"+fileFolderID+"']").index();
1210
+ jQuery("#js-tree-menu > ul > li").each(function(i){
1211
+ parentIds += jQuery(this).attr("id")+",";
1212
+ if(i == folderOrder) {
1213
+ parentIds += "#,";
1214
+ }
1215
+ });
1216
+ folderOrder = folderOrder + 1;
1217
+ }
1218
  } else {
1219
  folderOrder = $("#js-tree-menu > ul > li.jstree-node[id='"+parentId+"'] > ul.jstree-children > li").length + 1;
1220
  }
1230
  order: folderOrder,
1231
  name: folderNameDynamic,
1232
  is_duplicate: isDuplicate,
1233
+ duplicate_from: duplicateFolderId,
1234
+ parent_ids: parentIds,
1235
+ parent_menu: creatingParentMenu
1236
  },
1237
  method: 'post',
1238
  success: function (res) {
1260
  'is_deleted': 0
1261
  };
1262
  folderPropertyArray.push(folderProperty);
1263
+ if(!creatingParentMenu) {
1264
+ $('#js-tree-menu').jstree().create_node(result.parent_id, {
1265
+ "id": result.data[i]['term_id'],
1266
+ "text": " " + result.data[i]['title']
1267
+ }, "last", function () {
1268
+ $(".jstree-node[id='" + result.data[i]['term_id'] + "']").attr("data-nonce", result.data[i]['nonce']);
1269
+ $(".jstree-node[id='" + result.data[i]['term_id'] + "']").attr("data-slug", result.data[i]['slug']);
1270
+ });
1271
+ } else {
1272
+ $('#js-tree-menu').jstree().create_node("#", {
1273
+ "id": result.data[i]['term_id'],
1274
+ "text": " " + result.data[i]['title']
1275
+ }, (folderOrder), function () {
1276
+ $(".jstree-node[id='" + result.data[i]['term_id'] + "']").attr("data-nonce", result.data[i]['nonce']);
1277
+ $(".jstree-node[id='" + result.data[i]['term_id'] + "']").attr("data-slug", result.data[i]['slug']);
1278
+ });
1279
+ }
1280
+ creatingParentMenu = 0;
1281
  }
1282
  }
1283
  ajaxAnimation();
1330
 
1331
  /* update folder code */
1332
  $(document).ready(function(){
1333
+ $("#inline-update").on("click", function(){
1334
  if($("#js-tree-menu a.jstree-clicked").length) {
1335
  fileFolderID = $("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id");
1336
  updateFolder();
1435
 
1436
  /* Remove Folders */
1437
  $(document).ready(function(){
1438
+ $(document).on("click", "#inline-remove, .delete-folder-action:not(.disabled)",function(){
1439
  if($("#js-tree-menu a.jstree-clicked").length) {
1440
  fileFolderID = $("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id");
1441
  removeFolderFromID(1);
1442
  $(".dynamic-menu").remove();
1443
  $(".active-menu").removeClass("active-menu");
1444
  } else {
1445
+ if($("#menu-checkbox").is(":checked")) {
1446
  $(".dynamic-menu").remove();
1447
  removeFolderFromID(1);
1448
  }
1449
  }
1450
  });
1451
 
1452
+ $(document).on("click","#menu-checkbox",function(){
1453
+ if($(this).is(":checked")) {
1454
+ $("#js-tree-menu").addClass("show-folder-checkbox");
1455
+ $("#menu-checkbox").prop("checked", true);
1456
+ } else {
1457
+ $("#js-tree-menu input.checkbox").attr("checked", false);
1458
+ $("#js-tree-menu").removeClass("show-folder-checkbox");
1459
+ $("#menu-checkbox").prop("checked", false);
1460
+ }
1461
+ });
1462
+
1463
+
1464
+ $(document).on("click", "#menu-checkbox", function(){
1465
  if($(this).is(":checked")) {
1466
+ $("#menu-checkbox").prop("checked", true);
1467
  $("#js-tree-menu").addClass("show-folder-checkbox");
1468
  } else {
1469
+ $("#menu-checkbox").prop("checked", false);
1470
  $("#js-tree-menu input.checkbox").attr("checked", false);
1471
  $("#js-tree-menu").removeClass("show-folder-checkbox");
1472
  }
1539
  }
1540
 
1541
  function removeMultipleFolderItems() {
1542
+ if($("#menu-checkbox").is(":checked")) {
1543
  if($("#js-tree-menu input.checkbox:checked").length > 0) {
1544
  var folderIDs = "";
1545
  var activeItemDeleted = false;
1584
  } else {
1585
  window.location.reload();
1586
  }
1587
+ $("#menu-checkbox").attr("checked", false);
1588
  $("#js-tree-menu input.checkbox").attr("checked", false);
1589
  $("#js-tree-menu").removeClass("show-folder-checkbox");
1590
  }
1600
  var removeNotice = "Items in the folder will not be deleted.";
1601
  isMultipleRemove = false;
1602
  if(popup_type == 1) {
1603
+ if($("#menu-checkbox").is(":checked")) {
1604
  isMultipleRemove = true;
1605
  if($("#js-tree-menu input.checkbox:checked").length == 0) {
1606
  $(".folder-popup-form").hide();
1761
  $(".sticky-folders .sticky-folder-"+activeRecordID+" a").addClass("active-item");
1762
  });
1763
 
1764
+ $(document).on("click", "#js-tree-menu input.checkbox", function(){
1765
+ checkForCopyPaste();
1766
+ });
1767
+
1768
+ $(".header-posts").on("click", function(){
1769
  activeRecordID = "";
1770
  $(".wcp-container .route").removeClass("active-item");
1771
  $(".un-categorised-items").removeClass("active-item");
1808
  set_default_folders("all");
1809
  add_active_item_to_list();
1810
  }
1811
+ checkForCopyPaste();
1812
  });
1813
 
1814
+ $(".un-categorised-items").on("click", function(){
1815
  activeRecordID = "-1";
1816
  $(".wcp-container .route").removeClass("active-item");
1817
  $(".header-posts a").removeClass("active-item");
1853
  set_default_folders("-1");
1854
  add_active_item_to_list();
1855
  }
1856
+ checkForCopyPaste();
1857
  });
1858
 
1859
  /* Expand/Collapse */
1860
+ $("#expand-collapse-list").on("click", function(e){
1861
  e.stopPropagation();
1862
  statusType = 0;
1863
  if($(this).hasClass("all-open")) {
1865
  statusType = 0;
1866
  $(this).attr("data-folder-tooltip","Expand");
1867
  $("#js-tree-menu").jstree("close_all");
1868
+ $("#expand-collapse-list .text").text("Expand");
1869
  } else {
1870
  $(this).addClass("all-open");
1871
  statusType = 1;
1872
  $(this).attr("data-folder-tooltip","Collapse");
1873
  $("#js-tree-menu").jstree("open_all");
1874
+ $("#expand-collapse-list .text").text("Collapse");
1875
  }
1876
  folderIDs = "";
1877
  $("#js-tree-menu .jstree-node:not(.jstree-leaf)").each(function(){
1919
  $("#jstree-dnd").text("Below "+$.trim($("#js-tree-menu").jstree(true).get_node(nodeId).text));
1920
  break;
1921
  case "i":
1922
+ if(!hasChildren && $("#do_not_show_again").is(":checked")) {
1923
  return false;
1924
  }
1925
  o.origin.get_node(o.ref, !0).addClass("drag-in");
1958
  }).bind("ready.jstree", (function() {
1959
  setFolderCount();
1960
  setDragAndDropElements();
1961
+ checkForCopyPaste();
1962
  })).bind("after_open.jstree", (function() {
1963
  //data.text is the new name:
1964
  setDragAndDropElements();
1978
  //data.text is the new name:
1979
  setDragAndDropElements();
1980
  })).bind("move_node.jstree", (function(t, n) {
1981
+ if(!hasChildren) {
1982
+ var oldPosition = n.old_position;
1983
+ var currentParent = n.parent;
1984
+ if(currentParent != "#") {
1985
+ $('#js-tree-menu').jstree("move_node", "#"+n.node.id, "#", oldPosition);
1986
+ $("#sub-drag-folder-popup").show();
1987
+ return false;
1988
+ }
1989
+ }
1990
  if(n.node.parent != "#") {
1991
  jQuery("#js-tree-menu").jstree("open_node",n.node.parent);
1992
  }
2081
  $(document).on("blur", "#folder-search", function(){
2082
  checkForFolderSearch();
2083
  });
2084
+
2085
+ $(document).on("click", "#do_not_show_again", function(){
2086
+ var childStatus = $(this).is(":checked")?1:0;
2087
+ $.ajax({
2088
+ url: wcp_settings.ajax_url,
2089
+ type: 'post',
2090
+ data: {
2091
+ action: "premio_hide_child_popup",
2092
+ status: childStatus,
2093
+ nonce: wcp_settings.nonce,
2094
+ post_type: wcp_settings.post_type
2095
+ }
2096
+ })
2097
+ });
2098
  });
2099
 
2100
  function checkForFolderSearch() {
2152
  if($("#js-tree-menu .jstree-node.jstree-leaf").length == $("#js-tree-menu .jstree-node").length) {
2153
  $("#expand-collapse-list").removeClass("all-open");
2154
  $("#expand-collapse-list").attr("data-folder-tooltip","Expand");
2155
+ $("#expand-collapse-list .text").text("Expand");
2156
  } else {
2157
  var totalChild = $("#js-tree-menu .jstree-node.jstree-closed").length + $("#js-tree-menu .jstree-node.jstree-open").length;
2158
  if($("#js-tree-menu .jstree-node.jstree-closed").length == totalChild) {
2159
  $("#expand-collapse-list").removeClass("all-open");
2160
  $("#expand-collapse-list").attr("data-folder-tooltip","Expand");
2161
+ $("#expand-collapse-list .text").text("Expand");
2162
  } else {
2163
  $("#expand-collapse-list").addClass("all-open");
2164
  $("#expand-collapse-list").attr("data-folder-tooltip","Collapse");
2165
+ $("#expand-collapse-list .text").text("Collapse");
2166
  }
2167
  }
2168
  }, 500);
2292
  }
2293
 
2294
  $(document).ready(function(){
2295
+
2296
+ $(document).on("click", "#remove-from-all-folders:not(.disabled), #remove-from-current-folder:not(.disabled)", function(){
2297
+ $("#remove-from-all-folders, #remove-from-current-folder").addClass("disabled");
2298
+ var removeFrom = 'all';
2299
+ if($(this).hasClass("remove-from-current-folder")) {
2300
+ removeFrom = 'current';
2301
+ }
2302
+ $("#confirm-your-change").hide();
2303
+ $.ajax({
2304
+ url: wcp_settings.ajax_url,
2305
+ data: {
2306
+ post_id: $("#unassigned_folders").val(),
2307
+ action: 'wcp_remove_post_folder',
2308
+ active_folder: activeRecordID,
2309
+ type: wcp_settings.post_type,
2310
+ folder_id: -1,
2311
+ nonce: wcp_settings.nonce,
2312
+ status: wcp_settings.taxonomy_status,
2313
+ taxonomy: activeRecordID,
2314
+ remove_from: removeFrom
2315
+ },
2316
+ method: 'post',
2317
+ success: function (res) {
2318
+ $("#remove-from-all-folders, #remove-from-current-folder").removeClass("disabled");
2319
+ ajaxAnimation();
2320
+ resetMediaAndPosts();
2321
+ checkForUndoFunctionality();
2322
+ }
2323
+ });
2324
+ });
2325
+
2326
  $(document).on("click", ".thumbnail-hover-box a", function(e){
2327
  e.stopPropagation();
2328
  e.stopImmediatePropagation();
2433
  }
2434
  }
2435
 
2436
+ function checkForOtherFolders(folderIDs) {
2437
+ var folderID = -1;
2438
+ if(activeRecordID == "" || activeRecordID == 0) {
2439
+ nonce = wcp_settings.nonce;
2440
+ $.ajax({
2441
+ url: wcp_settings.ajax_url,
2442
+ data: "post_id=" + folderIDs + "&type=" + wcp_settings.post_type + "&action=wcp_remove_post_folder&folder_id=" + folderID + "&nonce=" + nonce + "&status=" + wcp_settings.taxonomy_status + "&taxonomy=" + activeRecordID,
2443
+ method: 'post',
2444
+ success: function (res) {
2445
+ // window.location.reload();
2446
+ resetMediaAndPosts();
2447
+ checkForUndoFunctionality();
2448
+ }
2449
+ });
2450
+ } else {
2451
+ $.ajax({
2452
+ url: wcp_settings.ajax_url,
2453
+ data: {
2454
+ post_id: folderIDs,
2455
+ action: 'premio_check_for_other_folders',
2456
+ active_folder: activeRecordID,
2457
+ type: wcp_settings.post_type,
2458
+ folder_id: folderID,
2459
+ nonce: wcp_settings.nonce,
2460
+ status: wcp_settings.taxonomy_status,
2461
+ taxonomy: activeRecordID
2462
+ },
2463
+ method: 'post',
2464
+ success: function (res) {
2465
+ res = $.parseJSON(res);
2466
+ if(res.status == -1) {
2467
+ $("#unassigned_folders").val(res.data.post_id);
2468
+ $("#confirm-your-change").show();
2469
+ } else {
2470
+ resetMediaAndPosts();
2471
+ checkForUndoFunctionality();
2472
+ }
2473
+ }
2474
+ });
2475
+ }
2476
+ }
2477
+
2478
  if(wcp_settings.post_type == "attachment") {
2479
 
2480
  $(document).ready(function(){
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,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(){"yes"==wcp_settings.useFolderUndo&&(e("#do-undo").addClass("active"),setTimeout(function(){e("#do-undo").removeClass("active")},parseInt(wcp_settings.defaultTimeout)))}function I(){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=S(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?(C(),P()):(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=S(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?(C(),P()):(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=S(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){C(),P()}}))}}),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){C(),P()}})):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){C(),P()}})):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){C(),P()}}))}}),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=S(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){C(),P(),L()}}))):o.draggable.hasClass("wcp-move-file")?(postID=o.draggable[0].attributes["data-id"].nodeValue,s=S(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){C(),P(),L()}})):o.draggable.hasClass("attachment")&&(chkStr=o.draggable[0].attributes["data-id"].nodeValue,s=S(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){C(),P(),L()}}))}}),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=S(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?(C(),P(),L()):(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=S(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?(C(),P(),L()):(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=S(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){C(),P(),L()}}))}}),Y()}function S(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 D(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 P(){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?q(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,Y()}}),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(),T()}):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 T(){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=D(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)}),E(),"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")}I()}function N(){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 U(){H()}function O(){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 z(){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 J(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 R(){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(),N(),V(),e(".sticky-folders ul > li").length>0&&e(".sticky-folders").addClass("active"),H(),I()}).bind("after_open.jstree",function(){I()}).bind("open_all.jstree",function(){I()}).bind("create_node.jstree",function(){I()}).bind("delete_node.jstree",function(){I()}).bind("close_all.jstree",function(){I()}).bind("after_close.jstree",function(){I()}).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"),P(),L(),Y(),I()):(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 A(){var t=e.trim(e("#folder-search").val());e("#js-tree-menu").jstree("search",t)}function F(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 M(){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),I()}function E(){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 L(){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 V(){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"),N()}function Y(){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 W(){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,R(),N();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){}})}),I(),e(document).ajaxComplete(function(e,s,o){o.data!=t&&""!=o.data&&-1!=o.data.indexOf("action=query-attachments")&&I()}),e(document).on("click",".undo-button",function(){e("#do-undo").removeClass("active"),"yes"==wcp_settings.useFolderUndo&&e.ajax({url:wcp_settings.ajax_url,type:"post",data:{post_type:wcp_settings.post_type,nonce:wcp_settings.nonce,action:"wcp_undo_folder_changes"},success:function(t){e("#undo-done").addClass("active"),setTimeout(function(){e("#undo-done").removeClass("active")},2500),P()}})}),e(document).on("click",".close-undo-box",function(t){t.preventDefault(),e("#do-undo").removeClass("active")})}),e(window).on("resize",function(){N()}),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,O()}),e(document).on("click",".new-folder",function(){f=e(this).closest(".dynamic-menu").data("id"),p=!1,O()}),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,O(),U()}),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),M(),U(),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)})}L(),V(),e("#media-attachment-taxonomy-filter").length&&(f=result.term_id,q(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"),z())}),e(document).on("click",".rename-folder",function(t){t.stopPropagation(),f=e(this).closest(".dynamic-menu").data("id"),z(),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=S(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=D(result.id),null!=folderPostId&&(v[folderPostId].nonce=result.nonce,v[folderPostId].slug=result.slug),U(),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),L(),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).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"),J(1),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu")):e("#folder-hide-show-checkbox").is(":checked")&&(e(".dynamic-menu").remove(),J(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"),J(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=S(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),L(),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),P(),V(),L(),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(),U(),L(),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),P(),V(),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=S(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=D(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)),U(),L()):(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=S(folderID,"nonce"),M(),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),L())}})})}),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=S(s,"slug"),w=wcp_settings.page_url+thisSlug+"&paged="+x;var o={Title:thisSlug,Url:w};history.pushState(o,o.Title,o.Url),F(thisSlug),e(".custom-media-select").removeClass("active")}else{var a=S(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),F(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>'),T()}):e("#wpbody").load(w+" #wpbody-content",function(){var t={Title:a,Url:w};history.pushState(t,t.Title,t.Url),F(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>'),T()})}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),F("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),F("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(),T()}):e("#wpbody").load(w+" #wpbody-content",function(){var t={Title:"",Url:w};history.pushState(t,t.Title,t.Url),F("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(),T()})}),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),F("-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),F("-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(),T()}):e("#wpbody").load(w+" #wpbody-content",function(){var t={Title:"",Url:w};history.pushState(t,t.Title,t.Url),F("-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(),T()})}),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))}}))}),M()}),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),R(),b=t.terms,Y()),e(".form-loader-count").css("width","0"),H()}})})}),e(document).ready(function(){e(document).on("keyup","#folder-search",function(){A()}),e(document).on("change","#folder-search",function(){A()}),e(document).on("blur","#folder-search",function(){A()})}),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()?(W(),!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()?(W(),!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(),P(),L()}}):(s=S(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?(P(),L()):(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>'),U(),E()});var B=null;function q(s){B=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!=B&&B.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,Y(),""!=c&&e("#wcp_folder_"+c).addClass("active-item"),p&&(e("#title_"+f).trigger("click"),p=!1)}})}function X(){e(".media-frame-content .media-toolbar").width(e(".media-frame-content").width()-20)}function Q(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 Z(e){document.cookie=e+"=; Max-Age=-99999999;"}X(),e(window).resize(function(){X()}),e(document).on("click",".button.organize-button",function(){e(".media-frame").hasClass("mode-select")?Z("media-select-mode"):Q("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")||Q("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,O())}),e(window).scroll(function(){})}else;function G(){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(){q(1)}),e(document).ajaxComplete(function(e,t,s){actionName=s.data,"undefined"!=typeof actionName&&actionName.length&&0==actionName.indexOf("action=delete-post&id=")&&q(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"))):Z("media-select-mode"),q(1)},1e3))}e(document).ready(function(){"attachment"==wcp_settings.post_type&&e("#tmpl-media-frame").length&&(l=setInterval(function(){G()},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(),P(),L()}}):(s=S(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(),P(),L()):(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,n,r,l,d="#js-tree-menu",c="",p=!1,u=!1,m=0,f=0,h=0,g=0,_=!1,v="",w=[],b=wcp_settings.page_url,y=[],k="<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>",j=null,x=null,C=1;function I(){"yes"==wcp_settings.useFolderUndo&&(e("#do-undo").addClass("active"),e(".undo-folder-action").removeClass("disabled"),setTimeout(function(){e("#do-undo").removeClass("active"),e(".undo-folder-action").addClass("disabled")},parseInt(wcp_settings.defaultTimeout)))}function S(){e(".cut-folder-action, .copy-folder-action, .paste-folder-action, .delete-folder-action").addClass("disabled"),e("#js-tree-menu .jstree-anchor.jstree-clicked").length&&e(".delete-folder-action").removeClass("disabled"),e("#menu-checkbox").is(":checked")&&e("#js-tree-menu input.checkbox:checked").length>0&&e(".delete-folder-action").removeClass("disabled")}function D(){S(),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=P(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?(I(),H()):(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=P(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?(I(),H()):(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=P(folderID,"nonce"),e(".attachments-browser li.attachment.selected").length>1&&(chkStr="",e(".attachments-browser li.attachment.selected").each(function(){chkStr+=e(this).data("id")+","})),v=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){I(),H()}}))}}),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()+","}),Q(chkStr)):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()+",")}),Q(chkStr)):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")+","})),v=chkStr,Q(chkStr))}}),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=P(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){I(),H(),Y()}}))):o.draggable.hasClass("wcp-move-file")?(postID=o.draggable[0].attributes["data-id"].nodeValue,s=P(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){I(),H(),Y()}})):o.draggable.hasClass("attachment")&&(chkStr=o.draggable[0].attributes["data-id"].nodeValue,s=P(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){I(),H(),Y()}}))}}),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=P(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?(I(),H(),Y()):(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=P(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?(I(),H(),Y()):(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=P(folderID,"nonce"),e(".attachments-browser li.attachment.selected").length>1&&(chkStr="",e(".attachments-browser li.attachment.selected").each(function(){chkStr+=e(this).data("id")+","})),v=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){I(),H(),Y()}}))}}),B()}function P(e,t){if(w.length>0)for(i=0;i<w.length;i++)if(parseInt(w[i].folder_id)==parseInt(e))return w[i][t];return""}function T(e){if(w.length>0)for(i=0;i<w.length;i++)if(parseInt(w[i].folder_id)==parseInt(e))return i;return null}function H(){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")),""!=v&&(e("#js-tree-menu a.jstree-clicked").length>0||"-1"==c)){if(e("#media-attachment-taxonomy-filter").length){v=v.split(",");for(var t=0;t<v.length;t++)""!=v[t]&&e(".attachments-browser li[data-id='"+v[t]+"']").remove()}v=""}e("#media-attachment-taxonomy-filter").length?Z(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),y=t.taxonomies,B()}}),e(".folder-loader-ajax").addClass("active"),e("#folder-posts-filter").length?e("#folder-posts-filter").load(b+"&paged="+C+" #posts-filter",function(){var t={Title:"",Url:b+"&paged="+C};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>'),U(),N()}):e("#wpbody").load(b+"&paged="+C+" #wpbody-content",!1,function(t){var s={Title:"",Url:b+"&paged="+C};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>'),U()}))}function N(){U(),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 U(){if(w.length&&e("li.jstree-node").each(function(){folderPostId=T(e(this).attr("id")),null!=folderPostId&&(1==w[folderPostId].is_high?e(this).addClass("is-high"):e(this).removeClass("is-high"),1==w[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=k.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=k.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)}),V(),"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")}D()}function O(){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 z(){U()}function J(){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 F(){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 R(t){var s="Are you sure you want to delete the selected folder?",o="Items in the folder will not be deleted.";if(_=!1,1==t&&e("#menu-checkbox").is(":checked")){if(_=!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 A(){e(d).jstree({core:{cache:!1,animation:0,max_depth:r?"-1":1,check_callback:function(t,s,o,a,n){if(e("*").removeClass("drag-bot").removeClass("drag-in").removeClass("drag-up"),("move_node"===t||"copy_node"===t)&&n&&n.dnd)switch(n.pos){case"a":n.origin.get_node(n.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(!r&&e("#do_not_show_again").is(":checked"))return!1;n.origin.get_node(n.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":n.origin.get_node(n.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(),O(),W(),e(".sticky-folders ul > li").length>0&&e(".sticky-folders").addClass("active"),U(),D(),S()}).bind("after_open.jstree",function(){D()}).bind("open_all.jstree",function(){D()}).bind("create_node.jstree",function(){D()}).bind("delete_node.jstree",function(){D()}).bind("close_all.jstree",function(){D()}).bind("after_close.jstree",function(){D()}).bind("move_node.jstree",function(t,s){if(!r){var o=s.old_position;if("#"!=s.parent)return e("#js-tree-menu").jstree("move_node","#"+s.node.id,"#",o),e("#sub-drag-folder-popup").show(),!1}"#"!=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"),H(),Y(),B(),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(),window.location.reload(!0))}}))})}function E(){var t=e.trim(e("#folder-search").val());e("#js-tree-menu").jstree("search",t)}function M(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 L(){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"),e("#expand-collapse-list .text").text("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 .text").text("Expand")):(e("#expand-collapse-list").addClass("all-open"),e("#expand-collapse-list").attr("data-folder-tooltip","Collapse"),e("#expand-collapse-list .text").text("Collapse"))}},500),D()}function V(){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 Y(){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 W(){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(),n=e("li.jstree-node[id='"+s+"']").hasClass("is-high")?" is-high ":"";t+="<li data-folder-id='"+s+"' class='sticky-fldr "+n+" 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"),O()}function B(){if(e("#media-attachment-taxonomy-filter").length&&(e("#media-attachment-taxonomy-filter").each(function(){wcp_settings.terms=y;var t=e(this);currentDDVal=e(this).val(),t.html("<option value='all'>All Folders</option><option value='unassigned'>(Unassigned)</option>"),lastFolderData=y;for(var s=0;s<y.length;s++)t.append("<option value='"+y[s].term_id+"'>"+y[s].name+" ("+y[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<y.length;s++)e("select.folder_for_media option:last-child").before("<option value='"+y[s].term_id+"'>"+y[s].name+"</option>");""!=t&&e(".folder_for_media").val(t)}for(e("span.premio-folder-count").text(""),e(".folder-count").text(""),s=0;s<y.length;s++)0!=parseInt(y[s].trash_count)&&(e(".jstree-node[id='"+y[s].term_id+"'] > a.jstree-anchor span.premio-folder-count").text(y[s].trash_count),e(".sticky-folder-"+y[s].term_id+" .premio-folder-count").text(y[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<y.length;s++)e(".media-select-folder").append("<option value='"+y[s].term_id+"'>"+y[s].name+" ("+y[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 q(){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>")}}}))}function Q(t){""==c||0==c?(s=wcp_settings.nonce,e.ajax({url:wcp_settings.ajax_url,data:"post_id="+t+"&type="+wcp_settings.post_type+"&action=wcp_remove_post_folder&folder_id="+-1+"&nonce="+s+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+c,method:"post",success:function(e){H(),I()}})):e.ajax({url:wcp_settings.ajax_url,data:{post_id:t,action:"premio_check_for_other_folders",active_folder:c,type:wcp_settings.post_type,folder_id:-1,nonce:wcp_settings.nonce,status:wcp_settings.taxonomy_status,taxonomy:c},method:"post",success:function(t){-1==(t=e.parseJSON(t)).status?(e("#unassigned_folders").val(t.data.post_id),e("#confirm-your-change").show()):(H(),I())}})}if(e(document).ready(function(){if(e("body").hasClass("jetpack-connected")&&!e("body").hasClass("mobile")&&!e("body").hasClass("folded")&&e("#adminmenuwrap").length){var l=parseInt(e("#adminmenuwrap").width());"rtl"==e("html").prop("dir")?e(".wcp-content").css("right",l):e(".wcp-content").css("left",l)}e(document).on("click","#collapse-button",function(){setTimeout(function(){if(e("body").hasClass("jetpack-connected")&&!e("body").hasClass("mobile")&&!e("body").hasClass("folded")&&e("#adminmenuwrap").length){var t=parseInt(e("#adminmenuwrap").width());"rtl"==e("html").prop("dir")?e(".wcp-content").css("right",t):e(".wcp-content").css("left",t)}},50)}),y=wcp_settings.taxonomies,o=parseInt(wcp_settings.is_key_active),a=parseInt(wcp_settings.folders),c=parseInt(wcp_settings.selected_taxonomy),n=parseInt(wcp_settings.hasStars),r=parseInt(wcp_settings.hasChildren),C=parseInt(wcp_settings.currentPage),w=wcp_settings.folder_settings,e(document).on("click",".folder-settings-btn > a",function(t){t.stopPropagation(),e(".folder-settings-btn").toggleClass("active")}),e(document).on("click","body,html",function(){e(".folder-settings-btn").removeClass("active")}),e(document).on("click",".folder-setting-menu",function(e){e.stopPropagation()}),A(),O();var d="1"==wcp_settings.isRTL||1==wcp_settings.isRTL?"w":"e";e(".wcp-content").resizable({resizeHeight:!1,handles:d,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 j=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(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+="<li class='new-main-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>",menuHtml+=r?"<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='default-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-active-icon'></i></span>Open this folder by default (Pro)</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+=n?"<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",j),e(".dynamic-menu").css("top",x-10),o=x):(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+="<li class='new-main-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>",menuHtml+=r?"<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='default-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-active-icon'></i></span>Open this folder by default (Pro)</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+=n?"<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",j),e(".dynamic-menu").css("top",x-10),o=x):(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").on("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){}})}),D(),e(document).ajaxComplete(function(e,s,o){o.data!=t&&""!=o.data&&-1!=o.data.indexOf("action=query-attachments")&&D()}),e(document).on("click",".undo-button, .undo-folder-action:not(.disabled)",function(){e("#do-undo").removeClass("active"),"yes"==wcp_settings.useFolderUndo&&e.ajax({url:wcp_settings.ajax_url,type:"post",data:{post_type:wcp_settings.post_type,nonce:wcp_settings.nonce,action:"wcp_undo_folder_changes"},success:function(s){if(e("#undo-done").addClass("active"),setTimeout(function(){e("#undo-done").removeClass("active")},2500),e("#media-attachment-taxonomy-filter").length){var o=parent.wp;o.media!=t&&(o.media.frame.setState("insert"),null!==o.media.frame.content.get()?(o.media.frame.content.get().collection.props.set({ignore:+new Date}),o.media.frame.content.get().options.selection.reset()):o.media.frame.library.props.set({ignore:+new Date}))}H()}})}),e(document).on("click",".close-undo-box",function(t){t.preventDefault(),e("#do-undo").removeClass("active")})}),e(window).on("resize",function(){O()}),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"),r||e("#pro-notice").removeClass("hide-it")):(f=0,e("#pro-notice").addClass("hide-it")),p=!1,J()}),e(document).on("mouseover",".folders-action-menu",function(){e("body").addClass("add-folder-zindex")}).on("mouseleave",".folders-action-menu",function(){e("body").removeClass("add-folder-zindex")}),e(document).on("change","#media-attachment-taxonomy-filter",function(t){e("#js-tree-menu").jstree(!0).deselect_all(),e(".active-item").removeClass("active-item"),"all"==e(this).val()?e(".all-posts").addClass("active-item"):"unassigned"==e(this).val()?e(".un-categorised-items").addClass("active-item"):e("#js-tree-menu").jstree("select_node",e(this).val())}),e(document).on("click",".new-folder",function(){f=e(this).closest(".dynamic-menu").data("id"),p=!1,h=0,J()}),e(document).on("click",".new-main-folder",function(){h=1,f=e(this).closest(".dynamic-menu").data("id"),p=!1,J()}),e(document).on("click",".duplicate-folder",function(t){t.stopPropagation(),h=0,f=e(this).closest(".dynamic-menu").data("id"),e(".dynamic-menu").remove(),p=!1,u=!0,J(),z()}),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),r||(s=0);var n="";0==s?(g=e("#js-tree-menu > ul > li.jstree-node").length,h&&(g=jQuery("#js-tree-menu > ul > li[id='"+f+"']").index(),jQuery("#js-tree-menu > ul > li").each(function(e){n+=jQuery(this).attr("id")+",",e==g&&(n+="#,")}),g+=1)):g=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:g,name:folderNameDynamic,is_duplicate:u,duplicate_from:m,parent_ids:n,parent_menu:h},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),L(),z(),result.data.length)for(var s=0;s<result.data.length;s++){var n={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};w.push(n),h?e("#js-tree-menu").jstree().create_node("#",{id:result.data[s].term_id,text:" "+result.data[s].title},g,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("#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)}),h=0}Y(),W(),e("#media-attachment-taxonomy-filter").length&&(f=result.term_id,Z(0))}else e("#error-folder-popup-message").html(result.message),e("#error-folder-popup").show()}})}return!1})}),e(document).ready(function(){e("#inline-update").on("click",function(){e("#js-tree-menu a.jstree-clicked").length&&(f=e("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id"),F())}),e(document).on("click",".rename-folder",function(t){t.stopPropagation(),f=e(this).closest(".dynamic-menu").data("id"),F(),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=P(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:g,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=T(result.id),null!=folderPostId&&(w[folderPostId].nonce=result.nonce,w[folderPostId].slug=result.slug),z(),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),Y(),e("#media-attachment-taxonomy-filter").length&&Z(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(document).on("click","#inline-remove, .delete-folder-action:not(.disabled)",function(){e("#js-tree-menu a.jstree-clicked").length?(f=e("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id"),R(1),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu")):e("#menu-checkbox").is(":checked")&&(e(".dynamic-menu").remove(),R(1))}),e(document).on("click","#menu-checkbox",function(){e(this).is(":checked")?(e("#js-tree-menu").addClass("show-folder-checkbox"),e("#menu-checkbox").prop("checked",!0)):(e("#js-tree-menu input.checkbox").attr("checked",!1),e("#js-tree-menu").removeClass("show-folder-checkbox"),e("#menu-checkbox").prop("checked",!1))}),e(document).on("click","#menu-checkbox",function(){e(this).is(":checked")?(e("#menu-checkbox").prop("checked",!0),e("#js-tree-menu").addClass("show-folder-checkbox")):(e("#menu-checkbox").prop("checked",!1),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"),R(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=P(f,"nonce"),_?function(){if(e("#menu-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),Y(),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),H(),W(),Y(),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("#menu-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(),z(),Y(),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),H(),W(),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=P(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=T(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&&(w[folderPostId].is_high=1)):(e("li.jstree-node[id='"+t.id+"']").removeClass("is-high"),e(".sticky-folder-"+t.id).removeClass("is-high"),null!=folderPostId&&(w[folderPostId].is_high=0)),z(),Y()):(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=P(folderID,"nonce"),L(),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),Y())}})})}),e(document).ready(function(){e(document).on("click","a.jstree-anchor",function(t){if(C=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=P(s,"slug"),b=wcp_settings.page_url+thisSlug+"&paged="+C;var o={Title:thisSlug,Url:b};history.pushState(o,o.Title,o.Url),M(thisSlug),e(".custom-media-select").removeClass("active")}else{var a=P(c,"slug");b=wcp_settings.page_url+a+"&paged="+C,e(".form-loader-count").css("width","100%"),e("#folder-posts-filter").length?e("#folder-posts-filter").load(b+" #posts-filter",function(){var t={Title:a,Url:b};history.pushState(t,t.Title,t.Url),M(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>'),N()}):e("#wpbody").load(b+" #wpbody-content",function(){var t={Title:a,Url:b};history.pushState(t,t.Title,t.Url),M(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>'),N()})}U(),e(".sticky-folders .sticky-folder-"+c+" a").addClass("active-item")}),e(document).on("click","#js-tree-menu input.checkbox",function(){S()}),e(".header-posts").on("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),M("all"),U()}else C=1,b=wcp_settings.page_url+"&paged="+C,e(".form-loader-count").css("width","100%"),e("#folder-posts-filter").length?e("#folder-posts-filter").load(b+" #posts-filter",function(){var t={Title:"",Url:b};history.pushState(t,t.Title,t.Url),M("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>'),U(),N()}):e("#wpbody").load(b+" #wpbody-content",function(){var t={Title:"",Url:b};history.pushState(t,t.Title,t.Url),M("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>'),U(),N()});S()}),e(".un-categorised-items").on("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),M("-1"),U()}else C=1,b=wcp_settings.page_url+"-1&paged="+C,e(".form-loader-count").css("width","100%"),e("#folder-posts-filter").length?e("#folder-posts-filter").load(b+" #posts-filter",function(){var t={Title:"",Url:b};history.pushState(t,t.Title,t.Url),M("-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>'),U(),N()}):e("#wpbody").load(b+" #wpbody-content",function(){var t={Title:"",Url:b};history.pushState(t,t.Title,t.Url),M("-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>'),U(),N()});S()}),e("#expand-collapse-list").on("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("#expand-collapse-list .text").text("Expand")):(e(this).addClass("all-open"),statusType=1,e(this).attr("data-folder-tooltip","Collapse"),e("#js-tree-menu").jstree("open_all"),e("#expand-collapse-list .text").text("Collapse")),v="",e("#js-tree-menu .jstree-node:not(.jstree-leaf)").each(function(){v+=e(this).attr("id")+","}),""!=v&&(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="+v+"&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))}}))}),L()}),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),A(),y=t.terms,B()),e(".form-loader-count").css("width","0"),U()}})})}),e(document).ready(function(){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","#do_not_show_again",function(){var t=e(this).is(":checked")?1:0;e.ajax({url:wcp_settings.ajax_url,type:"post",data:{action:"premio_hide_child_popup",status:t,nonce:wcp_settings.nonce,post_type:wcp_settings.post_type}})})}),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","#remove-from-all-folders:not(.disabled), #remove-from-current-folder:not(.disabled)",function(){e("#remove-from-all-folders, #remove-from-current-folder").addClass("disabled");var t="all";e(this).hasClass("remove-from-current-folder")&&(t="current"),e("#confirm-your-change").hide(),e.ajax({url:wcp_settings.ajax_url,data:{post_id:e("#unassigned_folders").val(),action:"wcp_remove_post_folder",active_folder:c,type:wcp_settings.post_type,folder_id:-1,nonce:wcp_settings.nonce,status:wcp_settings.taxonomy_status,taxonomy:c,remove_from:t},method:"post",success:function(t){e("#remove-from-all-folders, #remove-from-current-folder").removeClass("disabled"),Y(),H(),I()}})}),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()?(q(),!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()?(q(),!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(),H(),Y()}}):(s=P(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?(H(),Y()):(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>'),z(),V()});var X=null;function Z(s){X=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!=X&&X.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}))}y=o.taxonomies,B(),""!=c&&e("#wcp_folder_"+c).addClass("active-item"),p&&(e("#title_"+f).trigger("click"),p=!1)}})}function G(){e(".media-frame-content .media-toolbar").width(e(".media-frame-content").width()-20)}function K(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 $(e){document.cookie=e+"=; Max-Age=-99999999;"}G(),e(window).resize(function(){G()}),e(document).on("click",".button.organize-button",function(){e(".media-frame").hasClass("mode-select")?$("media-select-mode"):K("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")||K("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,J())}),e(window).scroll(function(){})}else;function ee(){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(){Z(1)}),e(document).ajaxComplete(function(e,t,s){actionName=s.data,"undefined"!=typeof actionName&&actionName.length&&0==actionName.indexOf("action=delete-post&id=")&&Z(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"))):$("media-select-mode"),Z(1)},1e3))}e(document).ready(function(){"attachment"==wcp_settings.post_type&&e("#tmpl-media-frame").length&&(l=setInterval(function(){ee()},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(),H(),Y()}}):(s=P(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(),H(),Y()):(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/page-post-media.js CHANGED
@@ -11,7 +11,7 @@
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;
@@ -31,6 +31,7 @@
31
  var isMultipleRemove = false;
32
  var isItFromMedia = false;
33
  var isDuplicate = false;
 
34
  var duplicateFolderId = 0;
35
  var $action_form;
36
  var lastOrderStatus = "";
@@ -185,7 +186,7 @@
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") {
@@ -204,7 +205,7 @@
204
  },100);
205
  });
206
  wpMediaObj.media.view.Modal.prototype.on('close', function() {
207
- folderSelectedAttachmentID = "";
208
  });
209
  $.extend(wpMediaObj.Uploader.prototype, {
210
  progress: function () {
@@ -250,19 +251,22 @@
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 {
260
  //wp_media.media.frame.library.props.set ({ignore: (+ new Date())});
261
- if($("#media-attachment-taxonomy-filter").length) {
262
  $(".attachment-filters").each(function(){
263
  $(this).trigger("change");
264
  });
265
- }
266
  }
267
  });
268
  }
@@ -353,6 +357,47 @@
353
 
354
  $(document).ready(function(){
355
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
356
  hasStars = parseInt(folders_media_options.hasStars);
357
  hasChildren = parseInt(folders_media_options.hasChildren);
358
 
@@ -369,9 +414,14 @@
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
  });
@@ -391,6 +441,7 @@
391
  $(".sticky-folders .active-item").removeClass("active-item");
392
  $(this).closest(".media-frame").find("#media-attachment-taxonomy-filter").val("all").trigger("change");
393
  $(this).closest(".media-frame").find(".folder_for_media").val("all").trigger("change");
 
394
  });
395
 
396
  $(document).on("click", ".un-categorised-items", function(e){
@@ -403,6 +454,7 @@
403
  $(this).addClass("active-item");
404
  $(this).closest(".media-frame").find("#media-attachment-taxonomy-filter").val("unassigned").trigger("change");
405
  $(this).closest(".media-frame").find(".folder_for_media").val("-1").trigger("change");
 
406
  });
407
 
408
  $(document).on("click", "a.jstree-anchor", function(e){
@@ -415,6 +467,7 @@
415
  thisSlug = getSettingForPost(thisIndex, 'slug');
416
  set_default_folders(thisSlug);
417
  $(".custom-media-select").removeClass("active");
 
418
  });
419
 
420
  $(document).on("change", ".folder_for_media", function(){
@@ -448,12 +501,14 @@
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>";
@@ -461,7 +516,7 @@
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) {
@@ -518,12 +573,14 @@
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>";
@@ -531,7 +588,7 @@
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) {
@@ -577,6 +634,16 @@
577
  addFolder();
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");
@@ -613,8 +680,20 @@
613
  parentId = 0;
614
  }
615
 
 
 
616
  if(parentId == 0) {
617
  folderOrder = $("#js-tree-menu > ul > li.jstree-node").length;
 
 
 
 
 
 
 
 
 
 
618
  } else {
619
  folderOrder = $("#js-tree-menu > ul > li.jstree-node[id='"+parentId+"'] > ul.jstree-children > li").length + 1;
620
  }
@@ -630,7 +709,9 @@
630
  order: folderOrder,
631
  name: folderNameDynamic,
632
  is_duplicate: isDuplicate,
633
- duplicate_from: duplicateFolderId
 
 
634
  },
635
  method: 'post',
636
  success: function (res) {
@@ -657,13 +738,24 @@
657
  'is_deleted': 0
658
  };
659
  folderPropertyArray.push(folderProperty);
660
- $('#js-tree-menu').jstree().create_node(result.parent_id, {
661
- "id": result.data[i]['term_id'],
662
- "text": " " + result.data[i]['title']
663
- }, "last", function () {
664
- $(".jstree-node[id='" + result.data[i]['term_id'] + "']").attr("data-nonce", result.data[i]['nonce']);
665
- $(".jstree-node[id='" + result.data[i]['term_id'] + "']").attr("data-slug", result.data[i]['slug']);
666
- });
 
 
 
 
 
 
 
 
 
 
 
667
  }
668
  }
669
  ajaxAnimation();
@@ -949,6 +1041,18 @@
949
  });
950
  });
951
 
 
 
 
 
 
 
 
 
 
 
 
 
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")) {
@@ -999,10 +1103,37 @@
999
  checkForFolderSearch();
1000
  });
1001
 
1002
- $(document).on("click","#folder-hide-show-checkbox",function(){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1003
  if($(this).is(":checked")) {
 
1004
  $("#js-tree-menu").addClass("show-folder-checkbox");
1005
  } else {
 
1006
  $("#js-tree-menu input.checkbox").attr("checked", false);
1007
  $("#js-tree-menu").removeClass("show-folder-checkbox");
1008
  }
@@ -1013,14 +1144,14 @@
1013
  e.stopPropagation();
1014
  });
1015
 
1016
- $(document).on("click", "#inline-remove", function(){
1017
  if($("#js-tree-menu a.jstree-clicked").length) {
1018
  fileFolderID = $("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id");
1019
  removeFolderFromID(1);
1020
  $(".dynamic-menu").remove();
1021
  $(".active-menu").removeClass("active-menu");
1022
  } else {
1023
- if($("#folder-hide-show-checkbox").is(":checked")) {
1024
  $(".dynamic-menu").remove();
1025
  removeFolderFromID(1);
1026
  }
@@ -1034,9 +1165,13 @@
1034
  }
1035
  });
1036
 
 
 
 
 
1037
  setDragAndDropElements();
1038
 
1039
- $(document).on("click", ".undo-button", function(){
1040
  $("#do-undo").removeClass("active");
1041
  if(folders_media_options.useFolderUndo == "yes") {
1042
  $.ajax({
@@ -1052,6 +1187,18 @@
1052
  setTimeout(function(){
1053
  $("#undo-done").removeClass("active");
1054
  }, 2500);
 
 
 
 
 
 
 
 
 
 
 
 
1055
  resetMediaAndPosts();
1056
  }
1057
  })
@@ -1068,12 +1215,27 @@
1068
  function checkForUndoFunctionality() {
1069
  if(folders_media_options.useFolderUndo == "yes") {
1070
  $("#do-undo").addClass("active");
 
1071
  setTimeout(function(){
1072
  $("#do-undo").removeClass("active");
 
1073
  }, parseInt(folders_media_options.defaultTimeout));
1074
  }
1075
  }
1076
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1077
  function setDragAndDropElements() {
1078
  $(".jstree-anchor:not(.ui-droppable)").droppable({
1079
  accept: ".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",
@@ -1199,16 +1361,7 @@
1199
  $(".wp-list-table input:checked").each(function(){
1200
  chkStr += $(this).val() + ",";
1201
  });
1202
- $.ajax({
1203
- url: folders_media_options.ajax_url,
1204
- data: "post_id=" + chkStr + "&type=" + folders_media_options.post_type + "&action=wcp_remove_post_folder&folder_id=" + folderID + "&nonce=" + nonce+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+activeRecordID,
1205
- method: 'post',
1206
- success: function (res) {
1207
- //window.location.reload();
1208
- checkForUndoFunctionality();
1209
- resetMediaAndPosts();
1210
- }
1211
- });
1212
  }
1213
  } else if (ui.draggable.hasClass('wcp-move-file')) {
1214
  postID = ui.draggable[0].attributes['data-id'].nodeValue;
@@ -1218,16 +1371,7 @@
1218
  chkStr += $(this).val() + ",";
1219
  }
1220
  });
1221
- $.ajax({
1222
- url: folders_media_options.ajax_url,
1223
- data: "post_id=" + chkStr + "&type=" + folders_media_options.post_type + "&action=wcp_remove_post_folder&folder_id=" + folderID + "&nonce=" + nonce+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+activeRecordID,
1224
- method: 'post',
1225
- success: function (res) {
1226
- //window.location.reload();
1227
- checkForUndoFunctionality();
1228
- resetMediaAndPosts();
1229
- }
1230
- });
1231
  } else if (ui.draggable.hasClass('attachment')) {
1232
  chkStr = ui.draggable[0].attributes['data-id'].nodeValue;
1233
  if ($(".attachments-browser li.attachment.selected").length > 1) {
@@ -1237,16 +1381,7 @@
1237
  });
1238
  }
1239
  folderIDs = chkStr;
1240
- $.ajax({
1241
- url: folders_media_options.ajax_url,
1242
- data: "post_id=" + chkStr + "&type=" + folders_media_options.post_type + "&action=wcp_remove_post_folder&folder_id=" + folderID + "&nonce=" + nonce+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+activeRecordID,
1243
- method: 'post',
1244
- success: function (res) {
1245
- // window.location.reload();
1246
- checkForUndoFunctionality();
1247
- resetMediaAndPosts();
1248
- }
1249
- });
1250
  }
1251
  }
1252
  });
@@ -1383,7 +1518,7 @@
1383
  $("#jstree-dnd").text("Below "+$.trim($("#js-tree-menu").jstree(true).get_node(nodeId).text));
1384
  break;
1385
  case "i":
1386
- if(!hasChildren) {
1387
  return false;
1388
  }
1389
  o.origin.get_node(o.ref, !0).addClass("drag-in");
@@ -1441,6 +1576,15 @@
1441
  //data.text is the new name:
1442
  setDragAndDropElements();
1443
  })).bind("move_node.jstree", (function(t, n) {
 
 
 
 
 
 
 
 
 
1444
  if(n.node.parent != "#") {
1445
  jQuery("#js-tree-menu").jstree("open_node",n.node.parent);
1446
  }
@@ -1485,6 +1629,49 @@
1485
  setDragAndDropElements();
1486
  }
1487
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1488
  function setFolderCount() {
1489
  $("#js-tree-menu .jstree-node").each(function(){
1490
  var folderCount = parseInt($(this).data("count"));
@@ -1605,7 +1792,7 @@
1605
  }
1606
 
1607
  function removeMultipleFolderItems() {
1608
- if($("#folder-hide-show-checkbox").is(":checked")) {
1609
  if($("#js-tree-menu input.checkbox:checked").length > 0) {
1610
  var folderIDs = "";
1611
  var activeItemDeleted = false;
@@ -1648,7 +1835,7 @@
1648
  } else {
1649
  window.location.reload();
1650
  }
1651
- $("#folder-hide-show-checkbox").attr("checked", false);
1652
  $("#js-tree-menu input.checkbox").attr("checked", false);
1653
  $("#js-tree-menu").removeClass("show-folder-checkbox");
1654
  }
@@ -1789,7 +1976,7 @@
1789
  var removeNotice = "Items in the folder will not be deleted.";
1790
  isMultipleRemove = false;
1791
  if(popup_type == 1) {
1792
- if($("#folder-hide-show-checkbox").is(":checked")) {
1793
  isMultipleRemove = true;
1794
  if($("#js-tree-menu input.checkbox:checked").length == 0) {
1795
  $(".folder-popup-form").hide();
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;
31
  var isMultipleRemove = false;
32
  var isItFromMedia = false;
33
  var isDuplicate = false;
34
+ var creatingParentMenu = false;
35
  var duplicateFolderId = 0;
36
  var $action_form;
37
  var lastOrderStatus = "";
186
  var wpMediaObj = window.wp;
187
  if (typeof wpMediaObj !== 'undefined' && typeof wpMediaObj.Uploader === 'function') {
188
  wpMediaObj.media.view.Modal.prototype.on('open', function() {
189
+ folderSelectedAttachmentID = [];
190
  setTimeout(function(){
191
  if($("#media-attachment-taxonomy-filter").length) {
192
  if($("#media-attachment-taxonomy-filter").val() == "all") {
205
  },100);
206
  });
207
  wpMediaObj.media.view.Modal.prototype.on('close', function() {
208
+ folderSelectedAttachmentID = [];
209
  });
210
  $.extend(wpMediaObj.Uploader.prototype, {
211
  progress: function () {
251
 
252
  resetDDCounter();
253
  if(typeof wp_media.media.frame !== "undefined" && wp_media.media.frame.content.get() !== null) {
254
+ folderSelectedAttachmentID = [];
255
  if($(".folder-modal ul.attachments li.selected").length) {
256
+ $(".folder-modal ul.attachments li.selected").each(function(){
257
+ folderSelectedAttachmentID.push($(this).data("id"));
258
+ });
259
+ // folderSelectedAttachmentID = $(".folder-modal ul.attachments li.selected").data("id");
260
  }
261
  wp_media.media.frame.content.get().collection.props.set({ignore: (+ new Date())});
262
  wp_media.media.frame.content.get().options.selection.reset();
263
  } else {
264
  //wp_media.media.frame.library.props.set ({ignore: (+ new Date())});
265
+ /*if($("#media-attachment-taxonomy-filter").length) {
266
  $(".attachment-filters").each(function(){
267
  $(this).trigger("change");
268
  });
269
+ }*/
270
  }
271
  });
272
  }
357
 
358
  $(document).ready(function(){
359
 
360
+ $(document).on("click", ".folder-settings-btn > a", function(e){
361
+ e.stopPropagation();
362
+ $(".folder-settings-btn").toggleClass('active');
363
+ });
364
+ $(document).on("click", "body,html", function(){
365
+ $(".folder-settings-btn").removeClass('active');
366
+ });
367
+ $(document).on("click", ".folder-setting-menu", function(e){
368
+ e.stopPropagation();
369
+ });
370
+
371
+ $(document).on("click", "#remove-from-all-folders:not(.disabled), #remove-from-current-folder:not(.disabled)", function(){
372
+ $("#remove-from-all-folders, #remove-from-current-folder").addClass("disabled");
373
+ var removeFrom = 'all';
374
+ if($(this).hasClass("remove-from-current-folder")) {
375
+ removeFrom = 'current';
376
+ }
377
+ $("#confirm-your-change").hide();
378
+ $.ajax({
379
+ url: folders_media_options.ajax_url,
380
+ data: {
381
+ post_id: $("#unassigned_folders").val(),
382
+ action: 'wcp_remove_post_folder',
383
+ active_folder: activeRecordID,
384
+ type: folders_media_options.post_type,
385
+ folder_id: -1,
386
+ nonce: folders_media_options.nonce,
387
+ status: folders_media_options.taxonomy_status,
388
+ taxonomy: activeRecordID,
389
+ remove_from: removeFrom
390
+ },
391
+ method: 'post',
392
+ success: function (res) {
393
+ $("#remove-from-all-folders, #remove-from-current-folder").removeClass("disabled");
394
+ ajaxAnimation();
395
+ resetMediaAndPosts();
396
+ checkForUndoFunctionality();
397
+ }
398
+ });
399
+ });
400
+
401
  hasStars = parseInt(folders_media_options.hasStars);
402
  hasChildren = parseInt(folders_media_options.hasChildren);
403
 
414
  if(settings.data != undefined && settings.data != "" && settings.data.indexOf("action=query-attachments") != -1) {
415
  setDragAndDropElements();
416
  }
417
+ if(folderSelectedAttachmentID.length > 0) {
418
+ console.log(folderSelectedAttachmentID);
419
+ for(var i=0; i<folderSelectedAttachmentID.length; i++) {
420
+ if (jQuery(".folder-modal ul.attachments li[data-id='" + folderSelectedAttachmentID[i] + "']").length && !jQuery(".folder-modal ul.attachments li[data-id='" + folderSelectedAttachmentID[i] + "']").hasClass("selected")) {
421
+ var e = jQuery.Event("click");
422
+ e.ctrlKey = true;
423
+ jQuery(".folder-modal ul.attachments li[data-id='" + folderSelectedAttachmentID[i] + "']").trigger(e);
424
+ }
425
  }
426
  }
427
  });
441
  $(".sticky-folders .active-item").removeClass("active-item");
442
  $(this).closest(".media-frame").find("#media-attachment-taxonomy-filter").val("all").trigger("change");
443
  $(this).closest(".media-frame").find(".folder_for_media").val("all").trigger("change");
444
+ checkForCopyPaste();
445
  });
446
 
447
  $(document).on("click", ".un-categorised-items", function(e){
454
  $(this).addClass("active-item");
455
  $(this).closest(".media-frame").find("#media-attachment-taxonomy-filter").val("unassigned").trigger("change");
456
  $(this).closest(".media-frame").find(".folder_for_media").val("-1").trigger("change");
457
+ checkForCopyPaste();
458
  });
459
 
460
  $(document).on("click", "a.jstree-anchor", function(e){
467
  thisSlug = getSettingForPost(thisIndex, 'slug');
468
  set_default_folders(thisSlug);
469
  $(".custom-media-select").removeClass("active");
470
+ checkForCopyPaste();
471
  });
472
 
473
  $(document).on("change", ".folder_for_media", function(){
501
  $(".dynamic-menu").remove();
502
  $(".active-menu").removeClass("active-menu");
503
  menuHtml = "<div class='dynamic-menu' data-id='"+$(this).closest("li").data("folder-id")+"'><ul>";
504
+ menuHtml += "<li class='new-main-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>";
505
  if(hasChildren) {
506
  menuHtml += "<li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>";
507
  } else {
508
  menuHtml += "<li class='new-folder-pro'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Sub-folder (Pro)</a></li>";
509
  }
510
  menuHtml += "<li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span>Rename</a></li>" +
511
+ "<li class='default-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-active-icon'></i></span>Open this folder by default (Pro)</a></li>" +
512
  "<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>";
513
  if(hasStars) {
514
  menuHtml += "<li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>" + ((isHigh) ? "Remove Star" : "Add a Star") + "</a></li>";
516
  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>";
517
  }
518
  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>" +
519
+ "<li class='duplicate-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-clone'></i></span>Duplicate folder (Pro)</a></li>";
520
 
521
  hasPosts = parseInt($(this).closest("li.jstree-node").find("h3.title:first > .total-count").text());
522
  if (folders_media_options.post_type == "attachment" && hasPosts) {
573
  $(".dynamic-menu").remove();
574
  $(".active-menu").removeClass("active-menu");
575
  menuHtml = "<div class='dynamic-menu' data-id='"+$(this).closest("li").prop("id")+"'><ul>";
576
+ menuHtml += "<li class='new-main-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>";
577
  if(hasChildren) {
578
  menuHtml += "<li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>";
579
  } else {
580
  menuHtml += "<li class='new-folder-pro'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Sub-folder (Pro)</a></li>";
581
  }
582
  menuHtml += "<li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span>Rename</a></li>" +
583
+ "<li class='default-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-active-icon'></i></span>Open this folder by default (Pro)</a></li>" +
584
  "<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>";
585
  if(hasStars) {
586
  menuHtml += "<li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>" + ((isHigh) ? "Remove Star" : "Add a Star") + "</a></li>";
588
  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>";
589
  }
590
  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>" +
591
+ "<li class='duplicate-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-clone'></i></span>Duplicate folder (Pro)</a></li>";
592
 
593
  hasPosts = parseInt($(this).closest("a.jstree-anchor").find(".premio-folder-count").text());
594
  if (folders_media_options.post_type == "attachment" && hasPosts) {
634
  addFolder();
635
  });
636
 
637
+ $(document).on("click", ".new-main-folder", function(){
638
+ creatingParentMenu = 1;
639
+ fileFolderID = $(this).closest(".dynamic-menu").data("id");
640
+ $(".dynamic-menu").remove();
641
+ $(".active-menu").removeClass("active-menu");
642
+ isItFromMedia = false;
643
+ isDuplicate = false;
644
+ addFolder();
645
+ });
646
+
647
  $(document).on("click", "#add-new-folder", function(e) {
648
  if($("#js-tree-menu a.jstree-clicked").length) {
649
  fileFolderID = $("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id");
680
  parentId = 0;
681
  }
682
 
683
+ var parentIds = "";
684
+
685
  if(parentId == 0) {
686
  folderOrder = $("#js-tree-menu > ul > li.jstree-node").length;
687
+ if(creatingParentMenu) {
688
+ folderOrder = jQuery("#js-tree-menu > ul > li[id='"+fileFolderID+"']").index();
689
+ jQuery("#js-tree-menu > ul > li").each(function(i){
690
+ parentIds += jQuery(this).attr("id")+",";
691
+ if(i == folderOrder) {
692
+ parentIds += "#,";
693
+ }
694
+ });
695
+ folderOrder = folderOrder + 1;
696
+ }
697
  } else {
698
  folderOrder = $("#js-tree-menu > ul > li.jstree-node[id='"+parentId+"'] > ul.jstree-children > li").length + 1;
699
  }
709
  order: folderOrder,
710
  name: folderNameDynamic,
711
  is_duplicate: isDuplicate,
712
+ duplicate_from: duplicateFolderId,
713
+ parent_ids: parentIds,
714
+ parent_menu: creatingParentMenu
715
  },
716
  method: 'post',
717
  success: function (res) {
738
  'is_deleted': 0
739
  };
740
  folderPropertyArray.push(folderProperty);
741
+ if(!creatingParentMenu) {
742
+ $('#js-tree-menu').jstree().create_node(result.parent_id, {
743
+ "id": result.data[i]['term_id'],
744
+ "text": " " + result.data[i]['title']
745
+ }, "last", function () {
746
+ $(".jstree-node[id='" + result.data[i]['term_id'] + "']").attr("data-nonce", result.data[i]['nonce']);
747
+ $(".jstree-node[id='" + result.data[i]['term_id'] + "']").attr("data-slug", result.data[i]['slug']);
748
+ });
749
+ } else {
750
+ $('#js-tree-menu').jstree().create_node("#", {
751
+ "id": result.data[i]['term_id'],
752
+ "text": " " + result.data[i]['title']
753
+ }, (folderOrder), function () {
754
+ $(".jstree-node[id='" + result.data[i]['term_id'] + "']").attr("data-nonce", result.data[i]['nonce']);
755
+ $(".jstree-node[id='" + result.data[i]['term_id'] + "']").attr("data-slug", result.data[i]['slug']);
756
+ });
757
+ }
758
+ creatingParentMenu = 0;
759
  }
760
  }
761
  ajaxAnimation();
1041
  });
1042
  });
1043
 
1044
+ $(document).on("change", "#media-attachment-taxonomy-filter", function(e){
1045
+ $("#js-tree-menu").jstree(true).deselect_all();
1046
+ $(".active-item").removeClass("active-item");
1047
+ if($(this).val() == "all") {
1048
+ $(".all-posts").addClass("active-item");
1049
+ } else if($(this).val() == "unassigned") {
1050
+ $(".un-categorised-items").addClass("active-item");
1051
+ } else {
1052
+ $("#js-tree-menu").jstree('select_node', $(this).val());
1053
+ }
1054
+ });
1055
+
1056
  $(document).on("click", ".jstree-node .jstree-icon", function(){
1057
  folderID = $(this).closest("li.jstree-node").attr("id");
1058
  if($("li.jstree-node[id='"+folderID+"']").hasClass("jstree-open")) {
1103
  checkForFolderSearch();
1104
  });
1105
 
1106
+ $(document).on("click", "#do_not_show_again", function(){
1107
+ var childStatus = $(this).is(":checked")?1:0;
1108
+ $.ajax({
1109
+ url: folders_media_options.ajax_url,
1110
+ type: 'post',
1111
+ data: {
1112
+ action: "premio_hide_child_popup",
1113
+ status: childStatus,
1114
+ nonce: folders_media_options.nonce,
1115
+ post_type: folders_media_options.post_type
1116
+ }
1117
+ })
1118
+ });
1119
+
1120
+ $(document).on("click","#menu-checkbox",function(){
1121
+ if($(this).is(":checked")) {
1122
+ $("#js-tree-menu").addClass("show-folder-checkbox");
1123
+ $("#menu-checkbox").prop("checked", true);
1124
+ } else {
1125
+ $("#js-tree-menu input.checkbox").attr("checked", false);
1126
+ $("#js-tree-menu").removeClass("show-folder-checkbox");
1127
+ $("#menu-checkbox").prop("checked", false);
1128
+ }
1129
+ });
1130
+
1131
+ $(document).on("click", "#menu-checkbox", function(){
1132
  if($(this).is(":checked")) {
1133
+ $("#menu-checkbox").prop("checked", true);
1134
  $("#js-tree-menu").addClass("show-folder-checkbox");
1135
  } else {
1136
+ $("#menu-checkbox").prop("checked", false);
1137
  $("#js-tree-menu input.checkbox").attr("checked", false);
1138
  $("#js-tree-menu").removeClass("show-folder-checkbox");
1139
  }
1144
  e.stopPropagation();
1145
  });
1146
 
1147
+ $(document).on("click", "#inline-remove, .delete-folder-action:not(.disabled)", function(){
1148
  if($("#js-tree-menu a.jstree-clicked").length) {
1149
  fileFolderID = $("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id");
1150
  removeFolderFromID(1);
1151
  $(".dynamic-menu").remove();
1152
  $(".active-menu").removeClass("active-menu");
1153
  } else {
1154
+ if($("#menu-checkbox").is(":checked")) {
1155
  $(".dynamic-menu").remove();
1156
  removeFolderFromID(1);
1157
  }
1165
  }
1166
  });
1167
 
1168
+ $(document).on("click", "#js-tree-menu input.checkbox", function(){
1169
+ checkForCopyPaste();
1170
+ });
1171
+
1172
  setDragAndDropElements();
1173
 
1174
+ $(document).on("click", ".undo-button, .undo-folder-action:not(.disabled)", function(){
1175
  $("#do-undo").removeClass("active");
1176
  if(folders_media_options.useFolderUndo == "yes") {
1177
  $.ajax({
1187
  setTimeout(function(){
1188
  $("#undo-done").removeClass("active");
1189
  }, 2500);
1190
+ if($("#media-attachment-taxonomy-filter").length) {
1191
+ var wp1 = parent.wp;
1192
+ if(wp1.media != undefined) {
1193
+ wp1.media.frame.setState('insert');
1194
+ if (wp1.media.frame.content.get() !== null) {
1195
+ wp1.media.frame.content.get().collection.props.set({ignore: (+new Date())});
1196
+ wp1.media.frame.content.get().options.selection.reset();
1197
+ } else {
1198
+ wp1.media.frame.library.props.set({ignore: (+new Date())});
1199
+ }
1200
+ }
1201
+ }
1202
  resetMediaAndPosts();
1203
  }
1204
  })
1215
  function checkForUndoFunctionality() {
1216
  if(folders_media_options.useFolderUndo == "yes") {
1217
  $("#do-undo").addClass("active");
1218
+ $('.undo-folder-action').removeClass("disabled");
1219
  setTimeout(function(){
1220
  $("#do-undo").removeClass("active");
1221
+ $('.undo-folder-action').addClass("disabled");
1222
  }, parseInt(folders_media_options.defaultTimeout));
1223
  }
1224
  }
1225
 
1226
+ function checkForCopyPaste() {
1227
+ $(".cut-folder-action, .copy-folder-action, .paste-folder-action, .delete-folder-action").addClass("disabled");
1228
+ if($("#js-tree-menu .jstree-anchor.jstree-clicked").length) {
1229
+ $(".delete-folder-action").removeClass("disabled");
1230
+ }
1231
+
1232
+ if($("#menu-checkbox").is(":checked") || $("#menu-checkbox").is(":checked")) {
1233
+ if($("#js-tree-menu input.checkbox:checked").length > 0) {
1234
+ $(".delete-folder-action").removeClass("disabled");
1235
+ }
1236
+ }
1237
+ }
1238
+
1239
  function setDragAndDropElements() {
1240
  $(".jstree-anchor:not(.ui-droppable)").droppable({
1241
  accept: ".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",
1361
  $(".wp-list-table input:checked").each(function(){
1362
  chkStr += $(this).val() + ",";
1363
  });
1364
+ checkForOtherFolders(chkStr);
 
 
 
 
 
 
 
 
 
1365
  }
1366
  } else if (ui.draggable.hasClass('wcp-move-file')) {
1367
  postID = ui.draggable[0].attributes['data-id'].nodeValue;
1371
  chkStr += $(this).val() + ",";
1372
  }
1373
  });
1374
+ checkForOtherFolders(chkStr);
 
 
 
 
 
 
 
 
 
1375
  } else if (ui.draggable.hasClass('attachment')) {
1376
  chkStr = ui.draggable[0].attributes['data-id'].nodeValue;
1377
  if ($(".attachments-browser li.attachment.selected").length > 1) {
1381
  });
1382
  }
1383
  folderIDs = chkStr;
1384
+ checkForOtherFolders(chkStr);
 
 
 
 
 
 
 
 
 
1385
  }
1386
  }
1387
  });
1518
  $("#jstree-dnd").text("Below "+$.trim($("#js-tree-menu").jstree(true).get_node(nodeId).text));
1519
  break;
1520
  case "i":
1521
+ if(!hasChildren && $("#do_not_show_again").is(":checked")) {
1522
  return false;
1523
  }
1524
  o.origin.get_node(o.ref, !0).addClass("drag-in");
1576
  //data.text is the new name:
1577
  setDragAndDropElements();
1578
  })).bind("move_node.jstree", (function(t, n) {
1579
+ if(!hasChildren) {
1580
+ var oldPosition = n.old_position;
1581
+ var currentParent = n.parent;
1582
+ if(currentParent != "#") {
1583
+ $('#js-tree-menu').jstree("move_node", "#"+n.node.id, "#", oldPosition);
1584
+ $("#sub-drag-folder-popup").show();
1585
+ return false;
1586
+ }
1587
+ }
1588
  if(n.node.parent != "#") {
1589
  jQuery("#js-tree-menu").jstree("open_node",n.node.parent);
1590
  }
1629
  setDragAndDropElements();
1630
  }
1631
 
1632
+ function checkForOtherFolders(folderIDs) {
1633
+ var folderID = -1;
1634
+ if(!$(".folder-modal #js-tree-menu .jstree-anchor.jstree-clicked").length) {
1635
+ nonce = folders_media_options.nonce;
1636
+ $.ajax({
1637
+ url: folders_media_options.ajax_url,
1638
+ data: "post_id=" + folderIDs + "&type=" + folders_media_options.post_type + "&action=wcp_remove_post_folder&folder_id=" + folderID + "&nonce=" + nonce + "&status=" + folders_media_options.taxonomy_status + "&taxonomy=" + activeRecordID,
1639
+ method: 'post',
1640
+ success: function (res) {
1641
+ // window.location.reload();
1642
+ resetMediaAndPosts();
1643
+ checkForUndoFunctionality();
1644
+ }
1645
+ });
1646
+ } else {
1647
+ activeRecordID = $(".folder-modal #js-tree-menu .jstree-anchor.jstree-clicked").closest(".jstree-node").attr("id");
1648
+ $.ajax({
1649
+ url: folders_media_options.ajax_url,
1650
+ data: {
1651
+ post_id: folderIDs,
1652
+ action: 'premio_check_for_other_folders',
1653
+ active_folder: activeRecordID,
1654
+ type: folders_media_options.post_type,
1655
+ folder_id: folderID,
1656
+ nonce: folders_media_options.nonce,
1657
+ status: folders_media_options.taxonomy_status,
1658
+ taxonomy: activeRecordID
1659
+ },
1660
+ method: 'post',
1661
+ success: function (res) {
1662
+ res = $.parseJSON(res);
1663
+ if(res.status == -1) {
1664
+ $("#unassigned_folders").val(res.data.post_id);
1665
+ $("#confirm-your-change").show();
1666
+ } else {
1667
+ resetMediaAndPosts();
1668
+ checkForUndoFunctionality();
1669
+ }
1670
+ }
1671
+ });
1672
+ }
1673
+ }
1674
+
1675
  function setFolderCount() {
1676
  $("#js-tree-menu .jstree-node").each(function(){
1677
  var folderCount = parseInt($(this).data("count"));
1792
  }
1793
 
1794
  function removeMultipleFolderItems() {
1795
+ if($("#menu-checkbox").is(":checked")) {
1796
  if($("#js-tree-menu input.checkbox:checked").length > 0) {
1797
  var folderIDs = "";
1798
  var activeItemDeleted = false;
1835
  } else {
1836
  window.location.reload();
1837
  }
1838
+ $("#menu-checkbox").attr("checked", false);
1839
  $("#js-tree-menu input.checkbox").attr("checked", false);
1840
  $("#js-tree-menu").removeClass("show-folder-checkbox");
1841
  }
1976
  var removeNotice = "Items in the folder will not be deleted.";
1977
  isMultipleRemove = false;
1978
  if(popup_type == 1) {
1979
+ if($("#menu-checkbox").is(":checked")) {
1980
  isMultipleRemove = true;
1981
  if($("#js-tree-menu input.checkbox:checked").length == 0) {
1982
  $(".folder-popup-form").hide();
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,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,k=!1,w=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 T=window.wp;void 0!==T&&"function"==typeof T.Uploader&&(T.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)}),T.media.view.Modal.prototype.on("close",function(){s=""}),e.extend(T.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,E(),M()}})}(),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,O=window.wp;if(void 0!==O&&"function"==typeof O.Uploader){var F=window.wp.media,J=F.view.Modal;F.view.Modal=F.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")||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(){G(),R(),V()})):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(){G(),R(),V()})),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(){J.prototype.close.apply(this,arguments),e(".folder-modal").removeClass("folder-modal")}})}function Q(){"yes"==folders_media_options.useFolderUndo&&(e("#do-undo").addClass("active"),setTimeout(function(){e("#do-undo").removeClass("active")},parseInt(folders_media_options.defaultTimeout)))}function M(){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=z(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?(Q(),q()):(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=z(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?(Q(),q()):(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=z(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){Q(),q(),$()}}))}}),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){Q(),q()}})):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){Q(),q()}})):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){Q(),q()}}))}}),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=z(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){Q(),q(),$()}}))):o.draggable.hasClass("wcp-move-file")?(postID=o.draggable[0].attributes["data-id"].nodeValue,f=z(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){Q(),q(),$()}})):o.draggable.hasClass("attachment")&&(chkStr=o.draggable[0].attributes["data-id"].nodeValue,f=z(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){Q(),q(),$()}}))}}),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 V(){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(),R(),B(),e(".sticky-folders ul > li").length>0&&e(".sticky-folders").addClass("active")}(),M()}).bind("after_open.jstree",function(){M()}).bind("open_all.jstree",function(){M()}).bind("create_node.jstree",function(){M()}).bind("delete_node.jstree",function(){M()}).bind("close_all.jstree",function(){M()}).bind("after_close.jstree",function(){M()}).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"),q(),$(),E(),M()):(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))}}))}),M()}function z(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 Y(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 B(){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"),R()}function R(){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 q(){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?K(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,E(),M()}}),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 E(){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 X(){var t=e.trim(e("#folder-search").val());e("#js-tree-menu").jstree("search",t)}function L(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 Z(){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 W(){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(""),k&&(w=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 G(){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),M()}function K(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,E(),M()}})}function $(){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),M()}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")&&M(),""!=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=z(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,k=!1,W()}),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,W()}),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:k,duplicate_from:w},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),G(),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)})}$(),B(),c=result.term_id,K(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"),Z(),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"),Z())}),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=z(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=Y(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"),$(),e("#media-attachment-taxonomy-filter").length&&K(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=z(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=Y(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)),$()):(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,k=!0,W()}),e(document).on("click",".remove-folder",function(){n=e(this).closest(".dynamic-menu").data("id"),c=e(this).closest(".dynamic-menu").data("id"),L(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=z(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),$(),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),q(),B(),$(),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(),$(),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),q(),B(),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,E(),V()),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=z(n,"nonce"),G(),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),$())}})}),e(document).on("keyup","#folder-search",function(){X()}),e(document).on("change","#folder-search",function(){X()}),e(document).on("blur","#folder-search",function(){X()}),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"),L(1),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu")):e("#folder-hide-show-checkbox").is(":checked")&&(e(".dynamic-menu").remove(),L(1))}),e(document).on("change",".folder_for_media",function(){"add-folder"==e(this).val()&&(j=!0,e("#add-new-folder").trigger("click"))}),M(),e(document).on("click",".undo-button",function(){e("#do-undo").removeClass("active"),"yes"==folders_media_options.useFolderUndo&&e.ajax({url:folders_media_options.ajax_url,type:"post",data:{post_type:folders_media_options.post_type,nonce:folders_media_options.nonce,action:"wcp_undo_folder_changes"},success:function(t){e("#undo-done").addClass("active"),setTimeout(function(){e("#undo-done").removeClass("active")},2500),q()}})}),e(document).on("click",".close-undo-box",function(t){t.preventDefault(),e("#do-undo").removeClass("active")})})});
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,k=!1,b=!1,w=0,x=0,C=[],S=null,I=null,P=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)}}),D=0,H=0,N=wp.media.view.AttachmentsBrowser;wp.media.view.AttachmentsBrowser=wp.media.view.AttachmentsBrowser.extend({createToolbar:function(){N.prototype.createToolbar.call(this),this.toolbar.set("MediaLibraryOrganizerTaxonomyFilter",new P({controller:this.controller,model:this.collection.props,priority:-75}).render())}});var A,O=wp.media.model.Query;_.extend(O,{get:(A=[],function(e,t){var o,a={},s=O.orderby,r=O.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[O.propmap[t]||t]=e)}),_.defaults(a,O.defaultArgs),a.orderby=s.valuemap[e.orderby]||e.orderby,A=[],o||(o=new O([],_.extend(t||{},{props:e,args:a})),A.push(o)),o})});var Q=window.wp;void 0!==Q&&"function"==typeof Q.Uploader&&(Q.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)}),Q.media.view.Modal.prototype.on("close",function(){s=[]}),e.extend(Q.Uploader.prototype,{progress:function(){},init:function(){this.uploader&&(this.uploader.bind("FileFiltered",function(t,o){D++,e(".folder-meter").css("width","0%"),e(".media-folder-loader").show(),e("#total_upload_files").text(D)}),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),H<D){e(".media-folder-loader").show();var r=H/D*100;e(".folder-meter").css("width",r+"%")}H++,e("#current_upload_files").text(H)}),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%"),D=0,H=0},1250),function(){e("#media-attachment-taxonomy-filter").val();F=e.ajax({url:folders_media_options.ajax_url,data:"type=attachment&action=wcp_get_default_list&active_id=0",method:"post",beforeSend:function(){null!=F&&F.abort()},success:function(t){var t=e.parseJSON(t);C=t.taxonomies,Z(),z()}})}(),void 0!==a.media.frame&&null!==a.media.frame.content.get()&&(s=[],e(".folder-modal ul.attachments li.selected").length&&e(".folder-modal ul.attachments li.selected").each(function(){s.push(e(this).data("id"))}),a.media.frame.content.get().collection.props.set({ignore:+new Date}),a.media.frame.content.get().options.selection.reset())}))}}));var F,T=window.wp;if(void 0!==T&&"function"==typeof T.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")||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(){ee(),X(),Y()})):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(){ee(),X(),Y()})),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(){J.prototype.close.apply(this,arguments),e(".folder-modal").removeClass("folder-modal")}})}function M(){"yes"==folders_media_options.useFolderUndo&&(e("#do-undo").addClass("active"),e(".undo-folder-action").removeClass("disabled"),setTimeout(function(){e("#do-undo").removeClass("active"),e(".undo-folder-action").addClass("disabled")},parseInt(folders_media_options.defaultTimeout)))}function V(){e(".cut-folder-action, .copy-folder-action, .paste-folder-action, .delete-folder-action").addClass("disabled"),e("#js-tree-menu .jstree-anchor.jstree-clicked").length&&e(".delete-folder-action").removeClass("disabled"),(e("#menu-checkbox").is(":checked")||e("#menu-checkbox").is(":checked"))&&e("#js-tree-menu input.checkbox:checked").length>0&&e(".delete-folder-action").removeClass("disabled")}function z(){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=E(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?(M(),L()):(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=E(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?(M(),L()):(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=E(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){M(),L(),oe()}}))}}),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()+","}),B(chkStr)):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()+",")}),B(chkStr)):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,B(chkStr))}}),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=E(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){M(),L(),oe()}}))):o.draggable.hasClass("wcp-move-file")?(postID=o.draggable[0].attributes["data-id"].nodeValue,f=E(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){M(),L(),oe()}})):o.draggable.hasClass("attachment")&&(chkStr=o.draggable[0].attributes["data-id"].nodeValue,f=E(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){M(),L(),oe()}}))}}),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 Y(){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&&e("#do_not_show_again").is(":checked"))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(),X(),q(),e(".sticky-folders ul > li").length>0&&e(".sticky-folders").addClass("active")}(),z()}).bind("after_open.jstree",function(){z()}).bind("open_all.jstree",function(){z()}).bind("create_node.jstree",function(){z()}).bind("delete_node.jstree",function(){z()}).bind("close_all.jstree",function(){z()}).bind("after_close.jstree",function(){z()}).bind("move_node.jstree",function(t,o){if(!a){var s=o.old_position;if("#"!=o.parent)return e("#js-tree-menu").jstree("move_node","#"+o.node.id,"#",s),e("#sub-drag-folder-popup").show(),!1}"#"!=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"),L(),oe(),Z(),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(),window.location.reload(!0))}}))}),z()}function B(t){e(".folder-modal #js-tree-menu .jstree-anchor.jstree-clicked").length?(v=e(".folder-modal #js-tree-menu .jstree-anchor.jstree-clicked").closest(".jstree-node").attr("id"),e.ajax({url:folders_media_options.ajax_url,data:{post_id:t,action:"premio_check_for_other_folders",active_folder:v,type:folders_media_options.post_type,folder_id:-1,nonce:folders_media_options.nonce,status:folders_media_options.taxonomy_status,taxonomy:v},method:"post",success:function(t){-1==(t=e.parseJSON(t)).status?(e("#unassigned_folders").val(t.data.post_id),e("#confirm-your-change").show()):(L(),M())}})):(f=folders_media_options.nonce,e.ajax({url:folders_media_options.ajax_url,data:"post_id="+t+"&type="+folders_media_options.post_type+"&action=wcp_remove_post_folder&folder_id="+-1+"&nonce="+f+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+v,method:"post",success:function(e){L(),M()}}))}function E(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 R(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 q(){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"),X()}function X(){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 L(){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?te(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),C=t.taxonomies,Z(),z()}}),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 Z(){if(e("#media-attachment-taxonomy-filter").length&&(e("#media-attachment-taxonomy-filter").each(function(){folders_media_options.terms=C;var t=e(this);currentDDVal=e(this).val(),t.html("<option value='all'>All Folders</option><option value='unassigned'>(Unassigned)</option>"),C;for(var o=0;o<C.length;o++)t.append("<option value='"+C[o].term_id+"'>"+C[o].name+" ("+C[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<C.length;o++)e("select.folder_for_media option:last-child").before("<option value='"+C[o].term_id+"'>"+C[o].name+"</option>");""!=t&&e(".folder_for_media").val(t)}for(e("span.premio-folder-count").text(""),e(".folder-count").text(""),o=0;o<C.length;o++)0!=parseInt(C[o].trash_count)&&(e(".jstree-node[id='"+C[o].term_id+"'] > a.jstree-anchor span.premio-folder-count").text(C[o].trash_count),e(".sticky-folder-"+C[o].term_id+" .premio-folder-count").text(C[o].trash_count));""!=v&&e("#wcp_folder_"+v).addClass("active-item"),j&&(e("#title_"+c).trigger("click"),j=!1)}function K(){var t=e.trim(e("#folder-search").val());e("#js-tree-menu").jstree("search",t)}function W(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("#menu-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 G(){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 $(){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(""),k&&(w=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 ee(){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),z()}function te(o){F=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!=F&&F.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}))}C=a.taxonomies,Z(),z()}})}function oe(){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),z()}e(document).ready(function(){e(document).on("click",".folder-settings-btn > a",function(t){t.stopPropagation(),e(".folder-settings-btn").toggleClass("active")}),e(document).on("click","body,html",function(){e(".folder-settings-btn").removeClass("active")}),e(document).on("click",".folder-setting-menu",function(e){e.stopPropagation()}),e(document).on("click","#remove-from-all-folders:not(.disabled), #remove-from-current-folder:not(.disabled)",function(){e("#remove-from-all-folders, #remove-from-current-folder").addClass("disabled");var t="all";e(this).hasClass("remove-from-current-folder")&&(t="current"),e("#confirm-your-change").hide(),e.ajax({url:folders_media_options.ajax_url,data:{post_id:e("#unassigned_folders").val(),action:"wcp_remove_post_folder",active_folder:v,type:folders_media_options.post_type,folder_id:-1,nonce:folders_media_options.nonce,status:folders_media_options.taxonomy_status,taxonomy:v,remove_from:t},method:"post",success:function(t){e("#remove-from-all-folders, #remove-from-current-folder").removeClass("disabled"),oe(),L(),M()}})}),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){if(a.data!=t&&""!=a.data&&-1!=a.data.indexOf("action=query-attachments")&&z(),s.length>0){console.log(s);for(var r=0;r<s.length;r++)if(jQuery(".folder-modal ul.attachments li[data-id='"+s[r]+"']").length&&!jQuery(".folder-modal ul.attachments li[data-id='"+s[r]+"']").hasClass("selected")){var d=jQuery.Event("click");d.ctrlKey=!0,jQuery(".folder-modal ul.attachments li[data-id='"+s[r]+"']").trigger(d)}}}),C=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"),V()}),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"),V()}),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=E(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"),V()}),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+="<li class='new-main-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>",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='default-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-active-icon'></i></span>Open this folder by default (Pro)</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 target='_blank' href='"+folders_media_options.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"==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",S),e(".dynamic-menu").css("top",I-10),r=I):(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 S=t.pageX,I=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+="<li class='new-main-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>",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='default-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-active-icon'></i></span>Open this folder by default (Pro)</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 target='_blank' href='"+folders_media_options.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"==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",S),e(".dynamic-menu").css("top",I-10),r=I):(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,k=!1,$()}),e(document).on("click",".new-main-folder",function(){b=1,c=e(this).closest(".dynamic-menu").data("id"),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),j=!1,k=!1,$()}),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,$()}),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);var s="";0==o?(x=e("#js-tree-menu > ul > li.jstree-node").length,b&&(x=jQuery("#js-tree-menu > ul > li[id='"+c+"']").index(),jQuery("#js-tree-menu > ul > li").each(function(e){s+=jQuery(this).attr("id")+",",e==x&&(s+="#,")}),x+=1)):x=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:x,name:m,is_duplicate:k,duplicate_from:w,parent_ids:s,parent_menu:b},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),ee(),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),b?e("#js-tree-menu").jstree().create_node("#",{id:result.data[o].term_id,text:" "+result.data[o].title},x,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)}):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)}),b=0}oe(),q(),c=result.term_id,te(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"),G(),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"),G())}),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=E(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:x,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=R(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"),oe(),e("#media-attachment-taxonomy-filter").length&&te(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=E(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=R(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)),oe()):(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,k=!0,$()}),e(document).on("click",".remove-folder",function(){n=e(this).closest(".dynamic-menu").data("id"),c=e(this).closest(".dynamic-menu").data("id"),W(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=E(c,"nonce"),y?function(){if(e("#menu-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),oe(),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),L(),q(),oe(),e(".folder-modal #wcp_folder_"+v).length||(e(".header-posts a").trigger("click"),v=0)}else window.location.reload();e("#menu-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(),oe(),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),L(),q(),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),C=t.terms,Z(),Y()),e(".form-loader-count").css("width","0")}})}),e(document).on("change","#media-attachment-taxonomy-filter",function(t){e("#js-tree-menu").jstree(!0).deselect_all(),e(".active-item").removeClass("active-item"),"all"==e(this).val()?e(".all-posts").addClass("active-item"):"unassigned"==e(this).val()?e(".un-categorised-items").addClass("active-item"):e("#js-tree-menu").jstree("select_node",e(this).val())}),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=E(n,"nonce"),ee(),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),oe())}})}),e(document).on("keyup","#folder-search",function(){K()}),e(document).on("change","#folder-search",function(){K()}),e(document).on("blur","#folder-search",function(){K()}),e(document).on("click","#do_not_show_again",function(){var t=e(this).is(":checked")?1:0;e.ajax({url:folders_media_options.ajax_url,type:"post",data:{action:"premio_hide_child_popup",status:t,nonce:folders_media_options.nonce,post_type:folders_media_options.post_type}})}),e(document).on("click","#menu-checkbox",function(){e(this).is(":checked")?(e("#js-tree-menu").addClass("show-folder-checkbox"),e("#menu-checkbox").prop("checked",!0)):(e("#js-tree-menu input.checkbox").attr("checked",!1),e("#js-tree-menu").removeClass("show-folder-checkbox"),e("#menu-checkbox").prop("checked",!1))}),e(document).on("click","#menu-checkbox",function(){e(this).is(":checked")?(e("#menu-checkbox").prop("checked",!0),e("#js-tree-menu").addClass("show-folder-checkbox")):(e("#menu-checkbox").prop("checked",!1),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, .delete-folder-action:not(.disabled)",function(){e("#js-tree-menu a.jstree-clicked").length?(c=e("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id"),W(1),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu")):e("#menu-checkbox").is(":checked")&&(e(".dynamic-menu").remove(),W(1))}),e(document).on("change",".folder_for_media",function(){"add-folder"==e(this).val()&&(j=!0,e("#add-new-folder").trigger("click"))}),e(document).on("click","#js-tree-menu input.checkbox",function(){V()}),z(),e(document).on("click",".undo-button, .undo-folder-action:not(.disabled)",function(){e("#do-undo").removeClass("active"),"yes"==folders_media_options.useFolderUndo&&e.ajax({url:folders_media_options.ajax_url,type:"post",data:{post_type:folders_media_options.post_type,nonce:folders_media_options.nonce,action:"wcp_undo_folder_changes"},success:function(o){if(e("#undo-done").addClass("active"),setTimeout(function(){e("#undo-done").removeClass("active")},2500),e("#media-attachment-taxonomy-filter").length){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}))}L()}})}),e(document).on("click",".close-undo-box",function(t){t.preventDefault(),e("#do-undo").removeClass("active")})})});
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.9
6
  * Author: Premio
7
  * Author URI: https://premio.io/downloads/folders/
8
  * Text Domain: folders
@@ -24,7 +24,7 @@ if(!defined("WCP_FOLDER_URL")) {
24
  define('WCP_FOLDER_URL', plugin_dir_url(__FILE__));
25
  }
26
  if(!defined("WCP_FOLDER_VERSION")) {
27
- define('WCP_FOLDER_VERSION', "2.6.9");
28
  }
29
 
30
 
2
  /**
3
  * Plugin Name: Folders
4
  * Description: Arrange media, pages, custom post types and posts into folders
5
+ * Version: 2.7
6
  * Author: Premio
7
  * Author URI: https://premio.io/downloads/folders/
8
  * Text Domain: folders
24
  define('WCP_FOLDER_URL', plugin_dir_url(__FILE__));
25
  }
26
  if(!defined("WCP_FOLDER_VERSION")) {
27
+ define('WCP_FOLDER_VERSION', "2.7");
28
  }
29
 
30
 
includes/folders.class.php CHANGED
@@ -90,6 +90,8 @@ class WCP_Folders
90
  /* Send message on owner */
91
  add_action( 'wp_ajax_wcp_folder_send_message_to_owner', array( $this, 'wcp_folder_send_message_to_owner' ) );
92
  /* Get default list */
 
 
93
  add_action( 'wp_ajax_wcp_get_default_list', array( $this, 'wcp_get_default_list' ) );
94
  /* Get default list */
95
  add_action( 'wp_ajax_get_folders_default_list', array( $this, 'get_folders_default_list' ) );
@@ -107,8 +109,6 @@ class WCP_Folders
107
  add_filter('pre-upload-ui', array($this, 'show_dropdown_on_media_screen'));
108
  add_action('add_attachment', array($this, 'add_attachment_category'));
109
 
110
-
111
-
112
  $options = get_option("folders_settings");
113
 
114
  $options = is_array($options)?$options:array();
@@ -149,11 +149,18 @@ class WCP_Folders
149
 
150
  add_action("wp_ajax_folder_update_popup_status", array($this, 'folder_update_popup_status'));
151
 
 
 
152
  add_action("wp_ajax_wcp_update_folders_import_status", array($this, 'update_folders_import_status'));
153
 
154
  add_filter('get_terms', array( $this, 'get_terms_filter_without_trash'), 10, 3);
155
 
156
  add_filter('mla_media_modal_query_final_terms', array( $this, 'media_modal_query_final_terms'), 10, 3);
 
 
 
 
 
157
  }
158
 
159
  public static function check_for_setting($key, $setting, $default = "") {
@@ -402,56 +409,80 @@ class WCP_Folders
402
  return $request;
403
  }
404
 
405
- public function get_terms_filter_without_trash($terms, $taxonomies, $args) {
406
- global $wpdb;
407
- if ( ! is_array($terms) && count($terms) < 1 ) {
408
- return $terms;
409
- }
410
 
411
- $post_table = $wpdb->prefix."posts";
412
- $term_table = $wpdb->prefix."term_relationships";
413
- $options = get_option('folders_settings');
414
- $option_array = array();
415
- if(!empty($options)) {
416
- foreach ($options as $option) {
417
- $option_array[] = self::get_custom_post_type($option);
418
- }
419
- }
420
- foreach ($terms as $key=>$term ) {
421
- if(isset($term->term_id) && isset($term->taxonomy) && !empty($term->taxonomy) && in_array($term->taxonomy, $option_array)) {
422
- $trash_count = null;
423
- if(has_filter("premio_folder_item_in_taxonomy")) {
424
- $post_type = "";
425
- $taxonomy = $term->taxonomy;
426
-
427
- if ($taxonomy == "post_folder") {
428
- $post_type = "post";
429
- } else if ($taxonomy == "folder") {
430
- $post_type = "page";
431
- } else if ($taxonomy == "media_folder") {
432
- $post_type = "attachment";
433
- } else {
434
- $post_type = trim($taxonomy, "'_folder'");
435
- }
436
- $arg = array(
437
- 'post_type' => $post_type,
438
- 'taxonomy' => $taxonomy,
439
- );
440
- $trash_count = apply_filters("premio_folder_item_in_taxonomy", $term->term_id, $arg);
441
- }
442
- if($trash_count === null) {
443
- $result = $wpdb->get_var("SELECT COUNT(*) FROM {$post_table} p JOIN {$term_table} rl ON p.ID = rl.object_id WHERE rl.term_taxonomy_id = '{$term->term_taxonomy_id}' AND p.post_status != 'trash' LIMIT 1");
444
- if (intval($result) > 0) {
445
- $trash_count = intval($result);
446
- } else {
447
- $trash_count = 0;
448
- }
449
- }
450
- $terms[$key]->trash_count = $trash_count;
451
- }
452
- }
453
- return $terms;
454
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
455
 
456
  public function custom_bulk_action($bulk_actions) {
457
  $bulk_actions['move_to_folder'] = __( 'Move to Folder', 'email_to_eric');
@@ -627,6 +658,21 @@ class WCP_Folders
627
  $term = get_term($folder_id);
628
  if(!empty($term) && isset($term->slug)) {
629
  wp_set_object_terms($post_ID, $term->slug, $post_type );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
630
  }
631
  }
632
  }
@@ -757,6 +803,58 @@ class WCP_Folders
757
  wp_die();
758
  }
759
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
760
  public function wcp_remove_post_folder() {
761
  $response = array();
762
  $response['status'] = 0;
@@ -790,6 +888,12 @@ class WCP_Folders
790
 
791
  $taxonomy = self::get_custom_post_type($type);
792
 
 
 
 
 
 
 
793
  foreach($post_id as $id) {
794
  if(!empty($id) && is_numeric($id) && $id > 0) {
795
  $terms = get_the_terms($id, $taxonomy);
@@ -797,13 +901,28 @@ class WCP_Folders
797
  'post_id' => $id,
798
  'terms' => $terms
799
  );
 
 
 
 
 
 
 
800
  $folderUndoSettings[] = $post_terms;
801
-
802
- wp_delete_object_term_relationships($id, $taxonomy);
 
 
 
803
  }
804
  }
805
  delete_transient("folder_undo_settings");
806
  set_transient("folder_undo_settings", $folderUndoSettings, DAY_IN_SECONDS);
 
 
 
 
 
807
  $response['status'] = 1;
808
  }
809
  echo json_encode($response);
@@ -1083,7 +1202,7 @@ class WCP_Folders
1083
  ));
1084
  /* Free/Pro URL Change */
1085
  wp_enqueue_style( 'folders-media', WCP_FOLDER_URL . 'assets/css/media.css' , array(), WCP_FOLDER_VERSION);
1086
- } else if(is_admin() && !self::is_active_for_screen() && self::is_for_this_post_type('attachment')) {
1087
  /* Free/Pro URL Change */
1088
  global $typenow;
1089
  global $current_screen;
@@ -1201,8 +1320,10 @@ class WCP_Folders
1201
  $css_text .= ".wcp-drop-hover {background-color: " . esc_attr($customize_folders['folder_bg_color']) . " !important; color: #ffffff; }";
1202
  $css_text .= "#custom-menu .route .nav-icon .wcp-icon {color: " . esc_attr($customize_folders['folder_bg_color']) . " !important;}";
1203
  $css_text .= ".mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {background-color: " . esc_attr($customize_folders['folder_bg_color']) . " !important;}";
1204
- $css_text .= "body:not(.no-hover-css) .jstree-hovered {background: rgba(" . esc_attr($rgbColor['r'] . "," . $rgbColor['g'] . "," . $rgbColor['b'] . ", 0.08") . "}";
1205
- $css_text .= ".jstree-default .jstree-clicked {" . esc_attr($customize_folders['folder_bg_color']) . "}";
 
 
1206
 
1207
  if (!isset($customize_folders['bulk_organize_button_color']) || empty($customize_folders['bulk_organize_button_color'])) {
1208
  $customize_folders['bulk_organize_button_color'] = "#FA166B";
@@ -1317,6 +1438,48 @@ class WCP_Folders
1317
  return $hierarchical_terms;
1318
  }
1319
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1320
  private function add_child_terms_recursive( $taxonomy, $hierarchical_terms, $hierarchy, $current_term_id, $current_depth ) {
1321
 
1322
  if ( ! isset( $hierarchy[ $current_term_id ] ) ) {
@@ -1487,43 +1650,53 @@ class WCP_Folders
1487
  }
1488
  }
1489
  if (empty($errorArray)) {
1490
- global $current_user;
1491
  $text_message = self::sanitize_options($postData['textarea_text']);
1492
  $email = self::sanitize_options($postData['user_email'], "email");
1493
  $domain = site_url();
 
1494
  $user_name = $current_user->first_name . " " . $current_user->last_name;
1495
- $subject = "Folder request: " . $domain;
1496
- $headers = "MIME-Version: 1.0\r\n";
1497
- $headers .= "Content-Type: text/html; charset=UTF-8\r\n";
1498
- $headers .= 'From: ' . $user_name . ' <' . $email . '>' . PHP_EOL;
1499
- $headers .= 'Reply-To: ' . $user_name . ' <' . $email . '>' . PHP_EOL;
1500
- $headers .= 'X-Mailer: PHP/' . phpversion();
1501
- ob_start();
1502
- ?>
1503
- <table border="0" cellspacing="0" cellpadding="5">
1504
- <tr>
1505
- <th>Domain</th>
1506
- <td><?php echo esc_attr($domain) ?></td>
1507
- </tr>
1508
- <tr>
1509
- <th>Email</th>
1510
- <td><?php echo esc_attr($email) ?></td>
1511
- </tr>
1512
- <tr>
1513
- <th>Message</th>
1514
- <td><?php echo nl2br($text_message) ?></td>
1515
- </tr>
1516
- </table>
1517
- <?php
1518
- $message = ob_get_clean();
1519
- $email_id = "gal@premio.io, karina@premio.io";
1520
- $status = wp_mail($email_id, $subject, $message, $headers);
1521
- if ($status) {
1522
- $response['status'] = 1;
1523
- } else {
1524
- $response['status'] = 0;
1525
- $response['message'] = "Not able to send mail";
1526
- }
 
 
 
 
 
 
 
 
 
 
1527
  } else {
1528
  $response['error'] = 1;
1529
  $response['errors'] = $errorArray;
@@ -1534,7 +1707,6 @@ class WCP_Folders
1534
 
1535
  public function folder_plugin_deactivate() {
1536
  if (current_user_can('manage_options')) {
1537
- global $current_user;
1538
  $postData = filter_input_array(INPUT_POST);
1539
  $errorCounter = 0;
1540
  $response = array();
@@ -1563,51 +1735,65 @@ class WCP_Folders
1563
  $email = $postData['email_id'];
1564
  }
1565
  $domain = site_url();
 
1566
  $user_name = $current_user->first_name." ".$current_user->last_name;
1567
- $subject = "Folders was removed from {$domain}";
1568
- $headers = "MIME-Version: 1.0\r\n";
1569
- $headers .= "Content-Type: text/html; charset=UTF-8\r\n";
1570
- $headers .= 'From: '.$user_name.' <'.$email.'>'.PHP_EOL ;
1571
- $headers .= 'Reply-To: '.$user_name.' <'.$email.'>'.PHP_EOL ;
1572
- $headers .= 'X-Mailer: PHP/' . phpversion();
1573
- ob_start();
1574
- ?>
1575
- <table border="0" cellspacing="0" cellpadding="5">
1576
- <tr>
1577
- <th>Plugin</th>
1578
- <td>Folders</td>
1579
- </tr>
1580
- <tr>
1581
- <th>Plugin Version</th>
1582
- <!-- Free Pro Version Change -->
1583
- <td><?php echo esc_attr(WCP_FOLDER_VERSION) ?></td>
1584
- </tr>
1585
- <tr>
1586
- <th>Domain</th>
1587
- <td><?php echo esc_attr($domain) ?></td>
1588
- </tr>
1589
- <tr>
1590
- <th>Email</th>
1591
- <td><?php echo esc_attr($email) ?></td>
1592
- </tr>
1593
- <tr>
1594
- <th>Comment</th>
1595
- <td><?php echo nl2br($reason) ?></td>
1596
- </tr>
1597
- <tr>
1598
- <th>WordPress Version</th>
1599
- <td><?php echo esc_attr(get_bloginfo('version')) ?></td>
1600
- </tr>
1601
- <tr>
1602
- <th>PHP Version</th>
1603
- <td><?php echo esc_attr(PHP_VERSION) ?></td>
1604
- </tr>
1605
- </table>
1606
- <?php
1607
- $content = ob_get_clean();
1608
- $email_id = "gal@premio.io, karina@premio.io";
1609
- wp_mail($email_id, $subject, $content, $headers);
1610
  $response['status'] = 1;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1611
  }
1612
  echo json_encode($response);
1613
  wp_die();
@@ -1765,6 +1951,13 @@ class WCP_Folders
1765
  }
1766
  }
1767
  if ($errorCounter == 0) {
 
 
 
 
 
 
 
1768
  $folderUndoSettings = array();
1769
  $postID = self::sanitize_options($postData['post_ids']);
1770
  $postID = trim($postID, ",");
@@ -1789,10 +1982,18 @@ class WCP_Folders
1789
  'post_id' => $post,
1790
  'terms' => $terms
1791
  );
 
 
 
 
 
1792
  $folderUndoSettings[] = $post_terms;
1793
  if (!empty($terms)) {
1794
  foreach ($terms as $term) {
1795
  if(!empty($taxonomy) && ($term->term_id == $taxonomy || $term->slug == $taxonomy)) {
 
 
 
1796
  wp_remove_object_terms($post, $term->term_id, $post_type);
1797
  }
1798
  }
@@ -1803,6 +2004,14 @@ class WCP_Folders
1803
  $response['status'] = 1;
1804
  delete_transient("folder_undo_settings");
1805
  set_transient("folder_undo_settings", $folderUndoSettings, DAY_IN_SECONDS);
 
 
 
 
 
 
 
 
1806
  }
1807
  echo json_encode($response);
1808
  wp_die();
@@ -1834,19 +2043,35 @@ class WCP_Folders
1834
  $type = self::sanitize_options($postData['post_type']);
1835
  $post_type = self::get_custom_post_type($type);
1836
  if(!empty($folder_undo_settings) && is_array($folder_undo_settings)) {
 
 
 
 
 
1837
  foreach($folder_undo_settings as $item) {
1838
  $terms = get_the_terms($item['post_id'], $post_type);
1839
  if (!empty($terms)) {
1840
  foreach ($terms as $term) {
1841
  wp_remove_object_terms($item['post_id'], $term->term_id, $post_type);
 
 
 
1842
  }
1843
  }
1844
  if(!empty($item['terms']) && is_array($item['terms'])) {
1845
  foreach($item['terms'] as $term) {
1846
  wp_set_post_terms($item['post_id'], $term->term_id, $post_type, true);
 
 
 
1847
  }
1848
  }
1849
  }
 
 
 
 
 
1850
  }
1851
  }
1852
  echo json_encode($response);
@@ -2423,11 +2648,14 @@ class WCP_Folders
2423
  }
2424
  if ($errorCounter == 0) {
2425
  $parent = isset($postData['parent_id']) && !empty($postData['parent_id']) ? $postData['parent_id'] : 0;
 
 
2426
  $parent = self::sanitize_options($parent);
2427
  $type = self::sanitize_options($postData['type']);
2428
  $folder_type = self::get_custom_post_type($type);
2429
  $term_name = self::sanitize_options($postData['name']);
2430
  $term = term_exists($term_name, $folder_type, $parent);
 
2431
  if (!(0 !== $term && null !== $term)) {
2432
  $folders = $postData['name'];
2433
  $folders = explode(",", $folders);
@@ -2458,6 +2686,7 @@ class WCP_Folders
2458
  )
2459
  );
2460
  if (!empty($result)) {
 
2461
  $total_folders++;
2462
  $response['id'] = $result['term_id'];
2463
  $response['status'] = 1;
@@ -2520,6 +2749,27 @@ class WCP_Folders
2520
  }
2521
  }
2522
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2523
  $foldersArray[] = $folder_item;
2524
  }
2525
 
@@ -2917,7 +3167,7 @@ class WCP_Folders
2917
  {
2918
  if (self::is_active_for_screen()) {
2919
  wp_enqueue_style('wcp-folders-fa', plugin_dir_url(dirname(__FILE__)) . 'assets/css/folder-icon.css', array(), WCP_FOLDER_VERSION);
2920
- wp_enqueue_style('wcp-folders-admin', plugin_dir_url(dirname(__FILE__)) . 'assets/css/design.css', array(), WCP_FOLDER_VERSION);
2921
  wp_enqueue_style('wcp-folders-jstree', plugin_dir_url(dirname(__FILE__)) . 'assets/css/jstree.min.css', array(), WCP_FOLDER_VERSION);
2922
  wp_enqueue_style('wcp-folders-mcustomscrollbar', WCP_FOLDER_URL . 'assets/css/jquery.mcustomscrollbar.min.css', array(),WCP_FOLDER_VERSION);
2923
  wp_enqueue_style('wcp-folders-css', plugin_dir_url(dirname(__FILE__)) . 'assets/css/folders.min.css', array(), WCP_FOLDER_VERSION);
@@ -3494,7 +3744,7 @@ class WCP_Folders
3494
  $is_plugin_exists = $plugins->is_exists;
3495
  $settingURL = $this->getFolderSettingsURL();
3496
  $setting_page = isset($_GET['setting_page'])?$_GET['setting_page']:"folder-settings";
3497
- $setting_page = in_array($setting_page, array("folder-settings", "customize-folders", "folders-import", "upgrade-to-pro"))?$setting_page:"folder-settings";
3498
  $isInSettings = $this->isFoldersInSettings();
3499
 
3500
  include_once dirname(dirname(__FILE__)) . "/templates/admin/general-settings.php";
@@ -3510,6 +3760,7 @@ class WCP_Folders
3510
  return array(
3511
  // System fonts.
3512
  'Default' => 'Default',
 
3513
  'Arial' => 'Default',
3514
  'Tahoma' => 'Default',
3515
  'Verdana' => 'Default',
@@ -4452,6 +4703,19 @@ class WCP_Folders
4452
  }
4453
 
4454
  /* Free and Pro major changes */
 
 
 
 
 
 
 
 
 
 
 
 
 
4455
  public function folder_update_popup_status() {
4456
  if(!empty($_REQUEST['nonce']) && wp_verify_nonce($_REQUEST['nonce'], 'folder_update_popup_status')) {
4457
  update_option("folder_intro_box", "hide");
90
  /* Send message on owner */
91
  add_action( 'wp_ajax_wcp_folder_send_message_to_owner', array( $this, 'wcp_folder_send_message_to_owner' ) );
92
  /* Get default list */
93
+ add_action('wp_ajax_premio_check_for_other_folders', array($this, 'premio_check_for_other_folders'));
94
+ /* Send message on owner */
95
  add_action( 'wp_ajax_wcp_get_default_list', array( $this, 'wcp_get_default_list' ) );
96
  /* Get default list */
97
  add_action( 'wp_ajax_get_folders_default_list', array( $this, 'get_folders_default_list' ) );
109
  add_filter('pre-upload-ui', array($this, 'show_dropdown_on_media_screen'));
110
  add_action('add_attachment', array($this, 'add_attachment_category'));
111
 
 
 
112
  $options = get_option("folders_settings");
113
 
114
  $options = is_array($options)?$options:array();
149
 
150
  add_action("wp_ajax_folder_update_popup_status", array($this, 'folder_update_popup_status'));
151
 
152
+ add_action("wp_ajax_premio_hide_child_popup", array($this, 'premio_hide_child_popup'));
153
+
154
  add_action("wp_ajax_wcp_update_folders_import_status", array($this, 'update_folders_import_status'));
155
 
156
  add_filter('get_terms', array( $this, 'get_terms_filter_without_trash'), 10, 3);
157
 
158
  add_filter('mla_media_modal_query_final_terms', array( $this, 'media_modal_query_final_terms'), 10, 3);
159
+
160
+ /* reset count when post/page updated */
161
+ add_action( 'deleted_term_relationships', array($this, 'update_folder_term_relationships'), 10, 3 );
162
+
163
+ add_action( 'added_term_relationship', array($this, 'update_folder_new_term_relationships'), 10, 3 );
164
  }
165
 
166
  public static function check_for_setting($key, $setting, $default = "") {
409
  return $request;
410
  }
411
 
412
+ public function get_terms_filter_without_trash($terms, $taxonomies, $args) {
413
+ global $wpdb;
414
+ if ( ! is_array($terms) && count($terms) < 1 ) {
415
+ return $terms;
416
+ }
417
 
418
+ $trash_folders = $initial_trash_folders = get_transient("premio_folders_without_trash");
419
+ if($trash_folders === false) {
420
+ $trash_folders = array();
421
+ $initial_trash_folders = array();
422
+ }
423
+
424
+ $post_table = $wpdb->prefix."posts";
425
+ $term_table = $wpdb->prefix."term_relationships";
426
+ $options = get_option('folders_settings');
427
+ $option_array = array();
428
+ if(!empty($options)) {
429
+ foreach ($options as $option) {
430
+ $option_array[] = self::get_custom_post_type($option);
431
+ }
432
+ }
433
+ foreach ($terms as $key=>$term ) {
434
+ if(isset($term->term_id) && isset($term->taxonomy) && !empty($term->taxonomy) && in_array($term->taxonomy, $option_array)) {
435
+ $trash_count = null;
436
+ if(isset($trash_folders[$term->term_taxonomy_id])) {
437
+ $trash_count = $trash_folders[$term->term_taxonomy_id];
438
+ } else {
439
+ if (has_filter("premio_folder_item_in_taxonomy")) {
440
+ $post_type = "";
441
+ $taxonomy = $term->taxonomy;
442
+
443
+ if ($taxonomy == "post_folder") {
444
+ $post_type = "post";
445
+ } else if ($taxonomy == "folder") {
446
+ $post_type = "page";
447
+ } else if ($taxonomy == "media_folder") {
448
+ $post_type = "attachment";
449
+ } else {
450
+ $post_type = trim($taxonomy, "'_folder'");
451
+ }
452
+ $arg = array(
453
+ 'post_type' => $post_type,
454
+ 'taxonomy' => $taxonomy,
455
+ );
456
+ $trash_count = apply_filters("premio_folder_item_in_taxonomy", $term->term_id, $arg);
457
+ }
458
+
459
+ if ($trash_count === null) {
460
+ $result = $wpdb->get_var("SELECT COUNT(*) FROM {$post_table} p JOIN {$term_table} rl ON p.ID = rl.object_id WHERE rl.term_taxonomy_id = '{$term->term_taxonomy_id}' AND p.post_status != 'trash' LIMIT 1");
461
+ $query = "SELECT COUNT(DISTINCT(p.ID))
462
+ FROM {$post_table} p
463
+ JOIN {$term_table} rl ON p.ID = rl.object_id
464
+ WHERE rl.term_taxonomy_id = '{$term->term_taxonomy_id}' AND p.post_status != 'trash' LIMIT 1";
465
+ $result = $wpdb->get_var($query);
466
+ if (intval($result) > 0) {
467
+ $trash_count = intval($result);
468
+ } else {
469
+ $trash_count = 0;
470
+ }
471
+ }
472
+ }
473
+ if($trash_count === null) {
474
+ $trash_count = 0;
475
+ }
476
+ $terms[$key]->trash_count = $trash_count;
477
+ $trash_folders[$term->term_taxonomy_id] = $trash_count;
478
+ }
479
+ }
480
+
481
+ if(!empty($terms) && $initial_trash_folders != $trash_folders) {
482
+ set_transient("premio_folders_without_trash", $trash_folders, 3*DAY_IN_SECONDS);
483
+ }
484
+ return $terms;
485
+ }
486
 
487
  public function custom_bulk_action($bulk_actions) {
488
  $bulk_actions['move_to_folder'] = __( 'Move to Folder', 'email_to_eric');
658
  $term = get_term($folder_id);
659
  if(!empty($term) && isset($term->slug)) {
660
  wp_set_object_terms($post_ID, $term->slug, $post_type );
661
+
662
+ $trash_folders = $initial_trash_folders = get_transient("premio_folders_without_trash");
663
+ if($trash_folders === false) {
664
+ $trash_folders = array();
665
+ $initial_trash_folders = array();
666
+ }
667
+
668
+ if(isset($trash_folders[$folder_id])) {
669
+ unset($trash_folders[$folder_id]);
670
+ }
671
+
672
+ if($initial_trash_folders != $trash_folders) {
673
+ delete_transient("premio_folders_without_trash");
674
+ set_transient("premio_folders_without_trash", $trash_folders, 3*DAY_IN_SECONDS);
675
+ }
676
  }
677
  }
678
  }
803
  wp_die();
804
  }
805
 
806
+ public function premio_check_for_other_folders() {
807
+ $response = array();
808
+ $response['status'] = 0;
809
+ $response['error'] = 0;
810
+ $response['data'] = array();
811
+ $response['message'] = "";
812
+ $postData = filter_input_array(INPUT_POST);
813
+ $errorCounter = 0;
814
+ if (!isset($postData['post_id']) || empty($postData['post_id'])) {
815
+ $response['message'] = esc_html__("Your request is not valid", 'folders');
816
+ $errorCounter++;
817
+ } else if (!isset($postData['type']) || empty($postData['type'])) {
818
+ $response['message'] = esc_html__("Your request is not valid", 'folders');
819
+ $errorCounter++;
820
+ } else if (!isset($postData['nonce']) || empty($postData['nonce'])) {
821
+ $response['message'] = esc_html__("Your request is not valid", 'folders');
822
+ $errorCounter++;
823
+ } else if(!wp_verify_nonce($postData['nonce'], 'wcp_folder_nonce_'.$postData['type'])) {
824
+ $response['message'] = esc_html__("Your request is not valid", 'folders');
825
+ $errorCounter++;
826
+ } else if(!current_user_can("manage_categories")) {
827
+ $response['message'] = esc_html__("Your request is not valid", 'folders');
828
+ $errorCounter++;
829
+ }
830
+ if ($errorCounter == 0) {
831
+ $folderUndoSettings = array();
832
+ $type = self::sanitize_options($postData['type']);
833
+ $post_id = self::sanitize_options($postData['post_id']);
834
+
835
+ $post_id = explode(",", $post_id);
836
+
837
+ $taxonomy = self::get_custom_post_type($type);
838
+
839
+ foreach ($post_id as $id) {
840
+ $terms = get_the_terms($id, $taxonomy);
841
+ if(!empty($terms) && is_array($terms)) {
842
+ foreach($terms as $term) {
843
+ if($term->term_id != $postData['taxonomy']) {
844
+ $response['status'] = -1;
845
+ $response['data']['post_id'] = $postData['post_id'];
846
+ echo json_encode($response);
847
+ wp_die();
848
+ }
849
+ }
850
+ }
851
+ }
852
+ $this->wcp_remove_post_folder();
853
+ }
854
+ echo json_encode($response);
855
+ wp_die();
856
+ }
857
+
858
  public function wcp_remove_post_folder() {
859
  $response = array();
860
  $response['status'] = 0;
888
 
889
  $taxonomy = self::get_custom_post_type($type);
890
 
891
+ $trash_folders = $initial_trash_folders = get_transient("premio_folders_without_trash");
892
+ if($trash_folders === false) {
893
+ $trash_folders = array();
894
+ $initial_trash_folders = array();
895
+ }
896
+
897
  foreach($post_id as $id) {
898
  if(!empty($id) && is_numeric($id) && $id > 0) {
899
  $terms = get_the_terms($id, $taxonomy);
901
  'post_id' => $id,
902
  'terms' => $terms
903
  );
904
+ if(!empty($terms) && count($terms)>0) {
905
+ foreach($terms as $term) {
906
+ if(isset($term->term_id) && isset($trash_folders[$term->term_id])) {
907
+ unset($trash_folders[$term->term_id]);
908
+ }
909
+ }
910
+ }
911
  $folderUndoSettings[] = $post_terms;
912
+ if(isset($postData['remove_from']) && $postData['remove_from'] == "current" && isset($postData['remove_from']) && $postData['remove_from'] == "current" && isset($postData['active_folder']) && is_numeric($postData['active_folder'])) {
913
+ wp_remove_object_terms($id, intval($postData['active_folder']), $taxonomy);
914
+ } else {
915
+ wp_delete_object_term_relationships($id, $taxonomy);
916
+ }
917
  }
918
  }
919
  delete_transient("folder_undo_settings");
920
  set_transient("folder_undo_settings", $folderUndoSettings, DAY_IN_SECONDS);
921
+
922
+ if($initial_trash_folders != $trash_folders) {
923
+ delete_transient("premio_folders_without_trash");
924
+ set_transient("premio_folders_without_trash", $trash_folders, 3*DAY_IN_SECONDS);
925
+ }
926
  $response['status'] = 1;
927
  }
928
  echo json_encode($response);
1202
  ));
1203
  /* Free/Pro URL Change */
1204
  wp_enqueue_style( 'folders-media', WCP_FOLDER_URL . 'assets/css/media.css' , array(), WCP_FOLDER_VERSION);
1205
+ } else if(!self::is_active_for_screen() && self::is_for_this_post_type('attachment')) {
1206
  /* Free/Pro URL Change */
1207
  global $typenow;
1208
  global $current_screen;
1320
  $css_text .= ".wcp-drop-hover {background-color: " . esc_attr($customize_folders['folder_bg_color']) . " !important; color: #ffffff; }";
1321
  $css_text .= "#custom-menu .route .nav-icon .wcp-icon {color: " . esc_attr($customize_folders['folder_bg_color']) . " !important;}";
1322
  $css_text .= ".mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {background-color: " . esc_attr($customize_folders['folder_bg_color']) . " !important;}";
1323
+ $css_text .= "body:not(.no-hover-css) .jstree-hovered {background: rgba(" . esc_attr($rgbColor['r'] . "," . $rgbColor['g'] . "," . $rgbColor['b'] . ", 0.08") . ") }";
1324
+ $css_text .= ".jstree-default .jstree-clicked { background-color:" . esc_attr($customize_folders['folder_bg_color']) . "}";
1325
+ $css_text .= ".jstree-node.drag-in > a.jstree-anchor.jstree-hovered { background-color: " . esc_attr($customize_folders['folder_bg_color']) . "; color: #ffffff; }";
1326
+ $css_text .= "#custom-scroll-menu .jstree-hovered:not(.jstree-clicked) .pfolder-folder-close { color: " . esc_attr($customize_folders['folder_bg_color']) . "; }";
1327
 
1328
  if (!isset($customize_folders['bulk_organize_button_color']) || empty($customize_folders['bulk_organize_button_color'])) {
1329
  $customize_folders['bulk_organize_button_color'] = "#FA166B";
1438
  return $hierarchical_terms;
1439
  }
1440
 
1441
+ public function update_folder_new_term_relationships($object_id = "", $term_ids = array(), $taxonomy = "") {
1442
+ if(is_array($term_ids) && !empty($term_ids)) {
1443
+ $trash_folders = $initial_trash_folders = get_transient("premio_folders_without_trash");
1444
+ if($trash_folders === false) {
1445
+ $trash_folders = array();
1446
+ $initial_trash_folders = array();
1447
+ }
1448
+
1449
+ foreach($term_ids as $term_id) {
1450
+ if(isset($trash_folders[$term_id])) {
1451
+ unset($trash_folders[$term_id]);
1452
+ }
1453
+ }
1454
+
1455
+ if($initial_trash_folders != $trash_folders) {
1456
+ delete_transient("premio_folders_without_trash");
1457
+ set_transient("premio_folders_without_trash", $trash_folders, 3*DAY_IN_SECONDS);
1458
+ }
1459
+ }
1460
+ }
1461
+
1462
+ public function update_folder_term_relationships($object_id = "", $term_ids = array(), $taxonomy = "") {
1463
+ if(is_array($term_ids) && !empty($term_ids)) {
1464
+ $trash_folders = $initial_trash_folders = get_transient("premio_folders_without_trash");
1465
+ if($trash_folders === false) {
1466
+ $trash_folders = array();
1467
+ $initial_trash_folders = array();
1468
+ }
1469
+
1470
+ foreach($term_ids as $term_id) {
1471
+ if(isset($trash_folders[$term_id])) {
1472
+ unset($trash_folders[$term_id]);
1473
+ }
1474
+ }
1475
+
1476
+ if($initial_trash_folders != $trash_folders) {
1477
+ delete_transient("premio_folders_without_trash");
1478
+ set_transient("premio_folders_without_trash", $trash_folders, 3*DAY_IN_SECONDS);
1479
+ }
1480
+ }
1481
+ }
1482
+
1483
  private function add_child_terms_recursive( $taxonomy, $hierarchical_terms, $hierarchy, $current_term_id, $current_depth ) {
1484
 
1485
  if ( ! isset( $hierarchy[ $current_term_id ] ) ) {
1650
  }
1651
  }
1652
  if (empty($errorArray)) {
 
1653
  $text_message = self::sanitize_options($postData['textarea_text']);
1654
  $email = self::sanitize_options($postData['user_email'], "email");
1655
  $domain = site_url();
1656
+ $current_user = wp_get_current_user();
1657
  $user_name = $current_user->first_name . " " . $current_user->last_name;
1658
+
1659
+ $response['status'] = 1;
1660
+
1661
+ /* sending message to Crisp */
1662
+ $post_message = array();
1663
+
1664
+ $message_data = array();
1665
+ $message_data['key'] = "Plugin";
1666
+ $message_data['value'] = "Folders";
1667
+ $post_message[] = $message_data;
1668
+
1669
+ $message_data = array();
1670
+ $message_data['key'] = "Domain";
1671
+ $message_data['value'] = $domain;
1672
+ $post_message[] = $message_data;
1673
+
1674
+ $message_data = array();
1675
+ $message_data['key'] = "Email";
1676
+ $message_data['value'] = $email;
1677
+ $post_message[] = $message_data;
1678
+
1679
+ $message_data = array();
1680
+ $message_data['key'] = "Message";
1681
+ $message_data['value'] = $text_message;
1682
+ $post_message[] = $message_data;
1683
+
1684
+ $api_params = array(
1685
+ 'domain' => $domain,
1686
+ 'email' => $email,
1687
+ 'url' => site_url(),
1688
+ 'name' => $user_name,
1689
+ 'message' => $post_message,
1690
+ 'plugin' => "Folders",
1691
+ 'type' => "Need Help",
1692
+ );
1693
+
1694
+ /* Sending message to Crisp API */
1695
+ $crisp_response = wp_safe_remote_post("https://go.premio.io/crisp/crisp-send-message.php", array('body' => $api_params, 'timeout' => 15, 'sslverify' => true));
1696
+
1697
+ if (is_wp_error($crisp_response)) {
1698
+ wp_safe_remote_post("https://go.premio.io/crisp/crisp-send-message.php", array('body' => $api_params, 'timeout' => 15, 'sslverify' => false));
1699
+ }
1700
  } else {
1701
  $response['error'] = 1;
1702
  $response['errors'] = $errorArray;
1707
 
1708
  public function folder_plugin_deactivate() {
1709
  if (current_user_can('manage_options')) {
 
1710
  $postData = filter_input_array(INPUT_POST);
1711
  $errorCounter = 0;
1712
  $response = array();
1735
  $email = $postData['email_id'];
1736
  }
1737
  $domain = site_url();
1738
+ $current_user = wp_get_current_user();
1739
  $user_name = $current_user->first_name." ".$current_user->last_name;
1740
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1741
  $response['status'] = 1;
1742
+
1743
+ /* sending message to Crisp */
1744
+ $post_message = array();
1745
+
1746
+ $message_data = array();
1747
+ $message_data['key'] = "Plugin";
1748
+ $message_data['value'] = "Folders";
1749
+ $post_message[] = $message_data;
1750
+
1751
+ $message_data = array();
1752
+ $message_data['key'] = "Plugin Version";
1753
+ $message_data['value'] = WCP_FOLDER_VERSION;
1754
+ $post_message[] = $message_data;
1755
+
1756
+ $message_data = array();
1757
+ $message_data['key'] = "Domain";
1758
+ $message_data['value'] = $domain;
1759
+ $post_message[] = $message_data;
1760
+
1761
+ $message_data = array();
1762
+ $message_data['key'] = "Email";
1763
+ $message_data['value'] = $email;
1764
+ $post_message[] = $message_data;
1765
+
1766
+ $message_data = array();
1767
+ $message_data['key'] = "WordPress Version";
1768
+ $message_data['value'] = esc_attr(get_bloginfo('version'));
1769
+ $post_message[] = $message_data;
1770
+
1771
+ $message_data = array();
1772
+ $message_data['key'] = "PHP Version";
1773
+ $message_data['value'] = PHP_VERSION;
1774
+ $post_message[] = $message_data;
1775
+
1776
+ $message_data = array();
1777
+ $message_data['key'] = "Message";
1778
+ $message_data['value'] = $reason;
1779
+ $post_message[] = $message_data;
1780
+
1781
+ $api_params = array(
1782
+ 'domain' => $domain,
1783
+ 'email' => $email,
1784
+ 'url' => site_url(),
1785
+ 'name' => $user_name,
1786
+ 'message' => $post_message,
1787
+ 'plugin' => "Folders",
1788
+ 'type' => "Uninstall",
1789
+ );
1790
+
1791
+ /* Sending message to Crisp API */
1792
+ $crisp_response = wp_safe_remote_post("https://go.premio.io/crisp/crisp-send-message.php", array('body' => $api_params, 'timeout' => 15, 'sslverify' => true));
1793
+
1794
+ if (is_wp_error($crisp_response)) {
1795
+ wp_safe_remote_post("https://go.premio.io/crisp/crisp-send-message.php", array('body' => $api_params, 'timeout' => 15, 'sslverify' => false));
1796
+ }
1797
  }
1798
  echo json_encode($response);
1799
  wp_die();
1951
  }
1952
  }
1953
  if ($errorCounter == 0) {
1954
+
1955
+ $trash_folders = $initial_trash_folders = get_transient("premio_folders_without_trash");
1956
+ if($trash_folders === false) {
1957
+ $trash_folders = array();
1958
+ $initial_trash_folders = array();
1959
+ }
1960
+
1961
  $folderUndoSettings = array();
1962
  $postID = self::sanitize_options($postData['post_ids']);
1963
  $postID = trim($postID, ",");
1982
  'post_id' => $post,
1983
  'terms' => $terms
1984
  );
1985
+ foreach($post_terms as $term) {
1986
+ if(isset($trash_folders[$term->term_id])) {
1987
+ unset($trash_folders[$term->term_id]);
1988
+ }
1989
+ }
1990
  $folderUndoSettings[] = $post_terms;
1991
  if (!empty($terms)) {
1992
  foreach ($terms as $term) {
1993
  if(!empty($taxonomy) && ($term->term_id == $taxonomy || $term->slug == $taxonomy)) {
1994
+ if(isset($trash_folders[$term->term_id])) {
1995
+ unset($trash_folders[$term->term_id]);
1996
+ }
1997
  wp_remove_object_terms($post, $term->term_id, $post_type);
1998
  }
1999
  }
2004
  $response['status'] = 1;
2005
  delete_transient("folder_undo_settings");
2006
  set_transient("folder_undo_settings", $folderUndoSettings, DAY_IN_SECONDS);
2007
+
2008
+ if(isset($trash_folders[$folderID])) {
2009
+ unset($trash_folders[$folderID]);
2010
+ }
2011
+
2012
+ if($initial_trash_folders != $trash_folders) {
2013
+ set_transient("premio_folders_without_trash", $trash_folders, 3*DAY_IN_SECONDS);
2014
+ }
2015
  }
2016
  echo json_encode($response);
2017
  wp_die();
2043
  $type = self::sanitize_options($postData['post_type']);
2044
  $post_type = self::get_custom_post_type($type);
2045
  if(!empty($folder_undo_settings) && is_array($folder_undo_settings)) {
2046
+ $trash_folders = $initial_trash_folders = get_transient("premio_folders_without_trash");
2047
+ if($trash_folders === false) {
2048
+ $trash_folders = array();
2049
+ $initial_trash_folders = array();
2050
+ }
2051
  foreach($folder_undo_settings as $item) {
2052
  $terms = get_the_terms($item['post_id'], $post_type);
2053
  if (!empty($terms)) {
2054
  foreach ($terms as $term) {
2055
  wp_remove_object_terms($item['post_id'], $term->term_id, $post_type);
2056
+ if(isset($trash_folders[$term->term_id])) {
2057
+ unset($trash_folders[$term->term_id]);
2058
+ }
2059
  }
2060
  }
2061
  if(!empty($item['terms']) && is_array($item['terms'])) {
2062
  foreach($item['terms'] as $term) {
2063
  wp_set_post_terms($item['post_id'], $term->term_id, $post_type, true);
2064
+ if(isset($trash_folders[$term->term_id])) {
2065
+ unset($trash_folders[$term->term_id]);
2066
+ }
2067
  }
2068
  }
2069
  }
2070
+
2071
+ if(!empty($terms) && $initial_trash_folders != $trash_folders) {
2072
+ delete_transient("premio_folders_without_trash");
2073
+ set_transient("premio_folders_without_trash", $trash_folders, 3*DAY_IN_SECONDS);
2074
+ }
2075
  }
2076
  }
2077
  echo json_encode($response);
2648
  }
2649
  if ($errorCounter == 0) {
2650
  $parent = isset($postData['parent_id']) && !empty($postData['parent_id']) ? $postData['parent_id'] : 0;
2651
+ $parent_menu = isset($postData['parent_menu']) && !empty($postData['parent_menu']) ? $postData['parent_menu'] : 0;
2652
+ $parent_ids = isset($postData['parent_ids']) && !empty($postData['parent_ids']) ? $postData['parent_ids'] : 0;
2653
  $parent = self::sanitize_options($parent);
2654
  $type = self::sanitize_options($postData['type']);
2655
  $folder_type = self::get_custom_post_type($type);
2656
  $term_name = self::sanitize_options($postData['name']);
2657
  $term = term_exists($term_name, $folder_type, $parent);
2658
+ $term_id = 0;
2659
  if (!(0 !== $term && null !== $term)) {
2660
  $folders = $postData['name'];
2661
  $folders = explode(",", $folders);
2686
  )
2687
  );
2688
  if (!empty($result)) {
2689
+ $term_id = $result['term_id'];
2690
  $total_folders++;
2691
  $response['id'] = $result['term_id'];
2692
  $response['status'] = 1;
2749
  }
2750
  }
2751
  }
2752
+
2753
+ if($parent_menu && !empty($parent_ids)) {
2754
+ $order = isset($postData['order']) ? $postData['order'] : 0;
2755
+ $parent_ids = trim($parent_ids, ",");
2756
+ $parent_ids = explode(",", $parent_ids);
2757
+ $folder_order = 0;
2758
+ $parents = "";
2759
+ if(is_array($parent_ids) && count($parent_ids)>0) {
2760
+ foreach ($parent_ids as $key=>$value) {
2761
+ if($value != "#") {
2762
+ delete_term_meta($value, "wcp_custom_order");
2763
+ add_term_meta( $value, "wcp_custom_order", $folder_order );
2764
+ } else if(!empty($term_id)) {
2765
+ delete_term_meta($term_id, "wcp_custom_order");
2766
+ add_term_meta( $term_id, "wcp_custom_order", $folder_order );
2767
+ }
2768
+ $folder_order++;
2769
+ }
2770
+ }
2771
+ }
2772
+
2773
  $foldersArray[] = $folder_item;
2774
  }
2775
 
3167
  {
3168
  if (self::is_active_for_screen()) {
3169
  wp_enqueue_style('wcp-folders-fa', plugin_dir_url(dirname(__FILE__)) . 'assets/css/folder-icon.css', array(), WCP_FOLDER_VERSION);
3170
+ wp_enqueue_style('wcp-folders-admin', plugin_dir_url(dirname(__FILE__)) . 'assets/css/design.min.css', array(), WCP_FOLDER_VERSION);
3171
  wp_enqueue_style('wcp-folders-jstree', plugin_dir_url(dirname(__FILE__)) . 'assets/css/jstree.min.css', array(), WCP_FOLDER_VERSION);
3172
  wp_enqueue_style('wcp-folders-mcustomscrollbar', WCP_FOLDER_URL . 'assets/css/jquery.mcustomscrollbar.min.css', array(),WCP_FOLDER_VERSION);
3173
  wp_enqueue_style('wcp-folders-css', plugin_dir_url(dirname(__FILE__)) . 'assets/css/folders.min.css', array(), WCP_FOLDER_VERSION);
3744
  $is_plugin_exists = $plugins->is_exists;
3745
  $settingURL = $this->getFolderSettingsURL();
3746
  $setting_page = isset($_GET['setting_page'])?$_GET['setting_page']:"folder-settings";
3747
+ $setting_page = in_array($setting_page, array("folder-settings", "customize-folders", "folders-import", "upgrade-to-pro", "folders-by-user"))?$setting_page:"folder-settings";
3748
  $isInSettings = $this->isFoldersInSettings();
3749
 
3750
  include_once dirname(dirname(__FILE__)) . "/templates/admin/general-settings.php";
3760
  return array(
3761
  // System fonts.
3762
  'Default' => 'Default',
3763
+ "System Stack" => 'Default',
3764
  'Arial' => 'Default',
3765
  'Tahoma' => 'Default',
3766
  'Verdana' => 'Default',
4703
  }
4704
 
4705
  /* Free and Pro major changes */
4706
+ public function premio_hide_child_popup() {
4707
+ if(isset($_REQUEST['post_type']) && isset($_REQUEST['nonce']) && wp_verify_nonce($_REQUEST['nonce'], 'wcp_folder_nonce_'.$_REQUEST['post_type'])) {
4708
+ $status = (isset($_REQUEST['status']) && $_REQUEST['status'] == 1)?1:0;
4709
+ if($status) {
4710
+ add_option("premio_hide_child_popup", 1);
4711
+ } else {
4712
+ delete_option("premio_hide_child_popup");
4713
+ }
4714
+ }
4715
+ echo esc_attr("1");
4716
+ die;
4717
+ }
4718
+
4719
  public function folder_update_popup_status() {
4720
  if(!empty($_REQUEST['nonce']) && wp_verify_nonce($_REQUEST['nonce'], 'folder_update_popup_status')) {
4721
  update_option("folder_intro_box", "hide");
includes/form.class.php CHANGED
@@ -42,24 +42,37 @@ class WCP_Forms {
42
  </div>
43
  <div class="clear"></div>
44
  </div>
45
- <div class="form-options">
46
  <ul>
47
- <li class="last folder-checkbox">
48
  <input type="checkbox" id="folder-hide-show-checkbox">
49
  </li>
50
  <li>
51
- <a href="javascript:;" id="inline-update"><span class="icon pfolder-edit"></span> <span class="text"><?php esc_html_e("Rename", 'folders'); ?></span> </a>
52
  </li>
53
  <li>
54
- <a href="javascript:;" id="inline-remove"><span class="icon pfolder-remove"></span> <span class="text"><?php esc_html_e("Delete", 'folders'); ?></span> </a>
55
- </li>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  <li>
57
  <div class="form-options">
58
  <ul>
59
- <li><a href="javascript:;" class="expand-collapse folder-tooltip" id="expand-collapse-list"><span class="icon pfolder-arrow-down"></span></a></li>
60
  <li class="last folder-order">
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>
42
  </div>
43
  <div class="clear"></div>
44
  </div>
45
+ <div class="form-options form-options2">
46
  <ul>
47
+ <!--<li class="last folder-checkbox">
48
  <input type="checkbox" id="folder-hide-show-checkbox">
49
  </li>
50
  <li>
51
+ <a href="javascript:;" id="inline-update"><span class="icon pfolder-edit"></span> <span class="text"><?php /*esc_html_e("Rename", 'folders'); */?></span> </a>
52
  </li>
53
  <li>
54
+ <a href="javascript:;" id="inline-remove"><span class="icon pfolder-remove"></span> <span class="text"><?php /*esc_html_e("Delete", 'folders'); */?></span> </a>
55
+ </li>-->
56
+ <?php if($is_old) { ?>
57
+ <li>
58
+ <a href="javascript:;" class="expand-collapse folder-tooltip" id="expand-collapse-list" data-folder-tooltip="<?php esc_html_e("Expand", 'folders'); ?>">
59
+ <span class="icon pfolder-arrow-down"></span><!-- <span class="text"><?php /*esc_html_e("Expand", 'folders'); */?></span>-->
60
+ </a>
61
+ </li>
62
+ <?php } else { ?>
63
+ <li class="folder-inline-tooltip expand-collapse">
64
+ <a class="paste-folder-action disabled" target="_blank" href="<?php echo esc_url($upgradeURL) ?>" >
65
+ <span class="inline-tooltip"><?php esc_html_e("Expand is pro feature", "folders"); ?> <span><?php esc_html_e("Upgrade Now 🎉", "folders") ?></span></span>
66
+ <span class="icon pfolder-arrow-down"></span><!-- <span class="text"><?php /*esc_html_e("Expand", 'folders'); */?></span>-->
67
+ </a>
68
+ </li>
69
+ <?php } ?>
70
  <li>
71
  <div class="form-options">
72
  <ul>
 
73
  <li class="last folder-order">
74
  <a data-folder-tooltip="Sort Folders" href="javascript:;" id="sort-order-list" class="sort-folder-order folder-tooltip">
75
+ <span class="icon pfolder-arrow-sort"></span><!-- <span class="text"><?php /*esc_html_e("Sort", 'folders'); */?></span>-->
76
  </a>
77
  <div class="folder-sort-menu <?php echo ($is_old)?"":"is-pro" ?>">
78
  <ul>
includes/media.replace.php CHANGED
@@ -52,6 +52,110 @@ class folders_replace_media {
52
  add_action('admin_head', array($this, 'premio_replace_file_CSS'));
53
 
54
  add_action('wp_enqueue_media', array($this, 'replace_media_file_script'));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  }
56
 
57
  public function change_file_name_box($post) { ?>
@@ -357,7 +461,7 @@ class folders_replace_media {
357
 
358
  $this->searchAndReplace();
359
 
360
- wp_redirect(admin_url("post.php?post=" . $attachment_id . "&action=edit"));
361
  exit;
362
  } else {
363
  wp_die("Error during uploading file");
52
  add_action('admin_head', array($this, 'premio_replace_file_CSS'));
53
 
54
  add_action('wp_enqueue_media', array($this, 'replace_media_file_script'));
55
+
56
+ add_action('admin_notices', array($this, 'admin_notices'));
57
+ }
58
+
59
+ public function admin_notices() {
60
+ if(isset($_REQUEST['premio_message']) && $_REQUEST['premio_message'] == "success") { ?>
61
+ <div class="notice notice-success is-dismissible">
62
+ <p><b><?php esc_html_e( 'File successfully replaced', 'folders' ); ?></b></p>
63
+ <p><?php esc_html_e( 'The file has been successfully replaced using the file replacement feature', 'folders' ); ?></p>
64
+ </div>
65
+
66
+ <style>
67
+ .folders-undo-notification {
68
+ position: fixed;
69
+ right: -500px;
70
+ bottom: 25px;
71
+ width: 280px;
72
+ background: #fff;
73
+ padding: 15px;
74
+ -webkit-box-shadow: 0 3px 6px -4px rgb(0 0 0 / 12%), 0 6px 16px 0 rgb(0 0 0 / 8%), 0 9px 28px 8px rgb(0 0 0 / 5%);
75
+ box-shadow: 0 3px 6px -4px rgb(0 0 0 / 12%), 0 6px 16px 0 rgb(0 0 0 / 8%), 0 9px 28px 8px rgb(0 0 0 / 5%);
76
+ transition: all .25s linear;
77
+ z-index: 250010;
78
+ }
79
+ .folders-undo-body {
80
+ position: relative;
81
+ font-size: 13px;
82
+ padding: 0 0 5px 0;
83
+ }
84
+ .close-undo-box {
85
+ position: absolute;
86
+ right: -10px;
87
+ top: 0;
88
+ width: 16px;
89
+ height: 16px;
90
+ transition: all .25s linear;
91
+ }
92
+ .close-undo-box span {
93
+ display: block;
94
+ position: relative;
95
+ width: 16px;
96
+ height: 16px;
97
+ transition: all .2s linear;
98
+ }
99
+ .close-undo-box span:after, .close-undo-box span:before {
100
+ content: "";
101
+ position: absolute;
102
+ width: 12px;
103
+ height: 2px;
104
+ background-color: #333;
105
+ display: block;
106
+ border-radius: 2px;
107
+ transform: rotate(45deg);
108
+ top: 7px;
109
+ left: 2px;
110
+ }
111
+ .close-undo-box span:after {
112
+ transform: rotate(-45deg);
113
+ }
114
+ .folders-undo-header {
115
+ font-weight: 500;
116
+ font-size: 14px;
117
+ padding: 0 0 3px 0;
118
+ color: #014737;
119
+ }
120
+ .folders-undo-notification.success {
121
+ border-left: solid 3px #70C6A3;
122
+ }
123
+ html[dir="rtl"] .folders-undo-notification {
124
+ right: auto;
125
+ left: -500px
126
+ }
127
+ html[dir="rtl"] .folders-undo-notification.active {
128
+ left: 25px;
129
+ }
130
+ html[dir="rtl"] .folders-undo-notification.success {
131
+ border-left: none;
132
+ border-right: solid 3px #70C6A3;
133
+ }
134
+ html[dir="rtl"] .close-undo-box {
135
+ right: auto;
136
+ left: -10px;
137
+ }
138
+ </style>
139
+ <div class="folders-undo-notification success" id="media-success">
140
+ <div class="folders-undo-body">
141
+ <a href="javascript:;" class="close-undo-box"><span></span></a>
142
+ <div class="folders-undo-header"><?php esc_html_e( 'File successfully replaced', 'folders' ); ?></div>
143
+ <div class="folders-undo-body" style="padding:0"><?php esc_html_e( 'The file has been successfully replaced using the file replacement feature', 'folders' ); ?></div>
144
+ </div>
145
+ </div>
146
+ <script>
147
+ jQuery(document).ready(function(){
148
+ jQuery("#media-success").addClass("active");
149
+ setTimeout(function(){
150
+ jQuery("#media-success").removeClass("active");
151
+ }, 5000);
152
+
153
+ jQuery(document).on("click", ".close-undo-box", function(){
154
+ jQuery("#media-success").removeClass("active");
155
+ });
156
+ });
157
+ </script>
158
+ <?php }
159
  }
160
 
161
  public function change_file_name_box($post) { ?>
461
 
462
  $this->searchAndReplace();
463
 
464
+ wp_redirect(admin_url("post.php?post=" . $attachment_id . "&action=edit&premio_message=success"));
465
  exit;
466
  } else {
467
  wp_die("Error during uploading file");
readme.txt CHANGED
@@ -3,7 +3,7 @@ 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.9
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
@@ -70,11 +70,12 @@ It’s rather simple really – once you install the plugin, you can begin using
70
  * <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 :)
71
  * Create folders for each post type - use folders with other plugins that have custom post type (e.g. Elementor templates, WooCommerce & more)
72
  * NEW! 🎉 Dynamic Folders - automatically filter posts, pages, custom posts, media library files based on author, date, file types & more
73
- * 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.
74
- * 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.
75
  * Add stars to important directories
76
- * Lock folders - locked folders stay pinned, and cannot be dragged or deleted
77
- * NEW! Auto Rename file based on title - replace the actual file name of media files with the title from the WordPress editor
 
78
  * NEW! Advanced Media Replacements - replace media files when uploading and update all references in the database, change dates, organize by newer date & more without hurting your SEO
79
  * Duplicate folders - duplicate an existing folder with all its content
80
  * Sort your folders based on creation date
@@ -86,6 +87,8 @@ It’s rather simple really – once you install the plugin, you can begin using
86
  * Customize the look and feel of your folders. Change the colors, font, and size of your media folder, pages, posts, and custom posts folders
87
  * Replace media for all file types - Replace any kind of files while uploading including PDF/SVG/DOCS/XLSX/etc
88
  * 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
 
 
89
 
90
  = Replace media files =
91
  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:
@@ -193,6 +196,9 @@ A live demo for the Folders plugin is available at <a href="https://demo.premio.
193
 
194
  == Changelog ==
195
 
 
 
 
196
  = 2.6.9 =
197
  Undo your last action and fixed some bugs and plugin conflicts
198
 
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.7
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
70
  * <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 :)
71
  * Create folders for each post type - use folders with other plugins that have custom post type (e.g. Elementor templates, WooCommerce & more)
72
  * NEW! 🎉 Dynamic Folders - automatically filter posts, pages, custom posts, media library files based on author, date, file types & more
73
+ * 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
74
+ * 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
75
  * Add stars to important directories
76
+ * NEW! Upload folders from your PC - upload your local computer folders, and all its structure (including subfolders and its content) will be recreated on your WordPress website
77
+ * Lock folders - locked folders stay pinned, and cannot be dragged or deleted (you can lock all folders/unlock all folders too)
78
+ * NEW! Auto rename file based on title - replace the actual file name of media files with the title from the WordPress editor
79
  * NEW! Advanced Media Replacements - replace media files when uploading and update all references in the database, change dates, organize by newer date & more without hurting your SEO
80
  * Duplicate folders - duplicate an existing folder with all its content
81
  * Sort your folders based on creation date
87
  * Customize the look and feel of your folders. Change the colors, font, and size of your media folder, pages, posts, and custom posts folders
88
  * Replace media for all file types - Replace any kind of files while uploading including PDF/SVG/DOCS/XLSX/etc
89
  * 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
90
+ * NEW! Folders user restriction - when enabled, users will only be able to access their folders and media. Only Admin users will be able to view all folders (can be enabled for the Dynamic Folders as well)
91
+ * NEW! Move files to trash by default before deleting - when enabled, files will be moved to trash to prevent mistakes, and then you can delete permanently from the trash
92
 
93
  = Replace media files =
94
  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:
196
 
197
  == Changelog ==
198
 
199
+ = 2.7 =
200
+ UI & performance improvements. We've also fixed some bugs
201
+
202
  = 2.6.9 =
203
  Undo your last action and fixed some bugs and plugin conflicts
204
 
templates/admin/admin-content.php CHANGED
@@ -16,8 +16,27 @@ if ( ! defined( 'ABSPATH' ) ) exit;
16
  </style>
17
  <style>
18
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  if(!isset($customize_folders['new_folder_color']) || empty($customize_folders['new_folder_color'])) {
20
- $customize_folders['new_folder_color'] = "#f51366";
21
  }
22
  ?>
23
  .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']) ?> }
@@ -31,46 +50,47 @@ button.button.organize-button { background-color: <?php echo esc_attr($customize
31
  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']) ?>; }
32
  <?php if(!isset($customize_folders['folder_bg_color']) || empty($customize_folders['folder_bg_color'])) {
33
  $customize_folders['folder_bg_color'] = "#f51366";
34
- } $rgbColor = self::hexToRgb($customize_folders['folder_bg_color']); ?>
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; }
38
- .drag-bot > a {
39
- border-bottom: solid 2px <?php echo esc_attr($customize_folders['folder_bg_color']) ?>;
40
- }
41
- .drag-up > a {
42
- border-top: solid 2px <?php echo esc_attr($customize_folders['folder_bg_color']) ?>;
43
- }
44
- 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 {
45
- background: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important;
46
- color: #fff !important;
47
- }
48
- .orange-bg > span ,.wcp-container .route.active-item > h3.title, .header-posts a.active-item, .un-categorised-items.active-item, .sticky-folders ul li a.active-item { background-color: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; color: #ffffff; }
49
- 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(<?php echo esc_attr($rgbColor['r'].",".$rgbColor['g'].",".$rgbColor['b'].", 0.08") ?>);}
50
- .wcp-drop-hover {
51
- background: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important;
52
- }
53
- #custom-menu .route .nav-icon .wcp-icon {color: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important;}
54
- .mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { background: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; }
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
- $font_family = "";
59
- if(isset($customize_folders['folder_font']) && !empty($customize_folders['folder_font'])) {
60
- $font_family = $customize_folders['folder_font'];
61
- $folder_fonts = self::get_font_list();
62
- if(isset($folder_fonts[$font_family])) {
63
- ?>
64
- .wcp-container, .folder-popup-form { font-family: "<?php echo esc_attr($font_family) ?>"; }
65
- <?php
66
- }
67
- if($folder_fonts[$font_family] == "Default") {
68
- $font_family = "";
69
- }
70
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  if(isset($customize_folders['folder_size']) && !empty($customize_folders['folder_size'])) {
 
 
 
72
  ?>
73
- .wcp-container .route span.title-text, .header-posts a, .un-categorised-items a, .sticky-title, .sticky-folders > ul > li > a { font-size: <?php echo esc_attr($customize_folders['folder_size']) ?>px; }
74
  <?php
75
  }
76
  ?>
@@ -92,6 +112,12 @@ if($typenow == "page") {
92
  $title = "Posts";
93
  } else if($typenow == "attachment") {
94
  $title = "Files";
 
 
 
 
 
 
95
  }
96
  $display_status = "wcp_dynamic_display_status_" . $typenow;
97
  $display_status = get_option($display_status);
@@ -138,6 +164,44 @@ if(!empty($post_type)) {
138
  <a href="javascript:;" class="un-categorized-posts"><?php esc_attr_e("Unassigned ".$title, 'folders'); ?> <span class="total-count total-empty"><?php echo $ttemp ?></span> </a>
139
  </div>
140
  <div class="folder-separator-2"></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
141
  </div>
142
  </div>
143
  <div id="custom-scroll-menu">
@@ -299,7 +363,55 @@ if(!empty($post_type)) {
299
  </div>
300
  <div class="folder-form-buttons">
301
  <a href="javascript:;" class="form-cancel-btn"><?php esc_html_e("Cancel", "folders") ?></a>
302
- <a href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" target="_blank" class="form-submit-btn"><?php esc_html_e("Activate License Key", "folders") ?></a>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
303
  </div>
304
  </div>
305
  </div>
16
  </style>
17
  <style>
18
  <?php
19
+ $font_family = "";
20
+ if(isset($customize_folders['folder_font']) && !empty($customize_folders['folder_font'])) {
21
+ $font_family = $customize_folders['folder_font'];
22
+ $folder_fonts = self::get_font_list();
23
+ if(isset($folder_fonts[$font_family])) {
24
+ if($font_family == "System Stack") {
25
+ $font_family = "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif";
26
+ }
27
+ ?>
28
+ .wcp-container, .folder-popup-form, .dynamic-menu { font-family: <?php echo esc_attr($font_family) ?>; }
29
+ <?php
30
+ }
31
+ if($font_family == "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif") {
32
+ $font_family = "System Stack";
33
+ }
34
+ if($folder_fonts[$font_family] == "Default") {
35
+ $font_family = "";
36
+ }
37
+ }
38
  if(!isset($customize_folders['new_folder_color']) || empty($customize_folders['new_folder_color'])) {
39
+ $customize_folders['new_folder_color'] = "#f51366";
40
  }
41
  ?>
42
  .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']) ?> }
50
  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']) ?>; }
51
  <?php if(!isset($customize_folders['folder_bg_color']) || empty($customize_folders['folder_bg_color'])) {
52
  $customize_folders['folder_bg_color'] = "#f51366";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
  }
54
+ $rgbColor = self::hexToRgb($customize_folders['folder_bg_color']); ?>
55
+ 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, .dynamic-menu a.active, .dynamic-menu a:hover, .folder-setting-menu li a:hover { background: rgba(<?php echo esc_attr($rgbColor['r'].",".$rgbColor['g'].",".$rgbColor['b'].", 0.08") ?>) !important; color: #333333;}
56
+ 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; }
57
+ #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 > a:hover { background: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; color: #ffffff !important; }
58
+ .drag-bot > a {
59
+ border-bottom: solid 2px <?php echo esc_attr($customize_folders['folder_bg_color']) ?>;
60
+ }
61
+ .drag-up > a {
62
+ border-top: solid 2px <?php echo esc_attr($customize_folders['folder_bg_color']) ?>;
63
+ }
64
+ #custom-scroll-menu .jstree-hovered:not(.jstree-clicked) .pfolder-folder-close {
65
+ color: <?php echo esc_attr($customize_folders['folder_bg_color']) ?>;
66
+ }
67
+ .folders-action-menu > ul > li > a:not(.disabled):hover, .folders-action-menu > ul > li > label:not(.disabled):hover {
68
+ color: <?php echo esc_attr($customize_folders['folder_bg_color']) ?>;
69
+ }
70
+ .dynamic-menu a.active span i, .dynamic-menu a:hover span i, .dynamic-menu a.active span.dashicons, .dynamic-menu a:hover span.dashicons { color: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> }
71
+ 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 {
72
+ background: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important;
73
+ color: #fff !important;
74
+ }
75
+ body:not(.no-hover-css) #custom-scroll-menu *.drag-in > a.jstree-hovered .pfolder-folder-close, body:not(.no-hover-css) #custom-scroll-menu *.drag-in > a.jstree-hovered:hover .pfolder-folder-close {
76
+ color: #fff !important;
77
+ }
78
+ .orange-bg > span ,.wcp-container .route.active-item > h3.title, .header-posts a.active-item, .un-categorised-items.active-item, .sticky-folders ul li a.active-item { background-color: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; color: #ffffff; }
79
+ 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(<?php echo esc_attr($rgbColor['r'].",".$rgbColor['g'].",".$rgbColor['b'].", 0.08") ?>);}
80
+ .wcp-drop-hover {
81
+ background: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important;
82
+ }
83
+ #custom-menu .route .nav-icon .wcp-icon {color: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important;}
84
+ .mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { background: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; }
85
+ .jstree-node.drag-in > a.jstree-anchor.jstree-hovered { background-color: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; color: #ffffff; }
86
+ <?php
87
+
88
  if(isset($customize_folders['folder_size']) && !empty($customize_folders['folder_size'])) {
89
+ if($customize_folders['folder_size'] == "custom") {
90
+ $customize_folders['folder_size'] = ! isset( $customize_folders['folder_custom_font_size'] ) || empty( $customize_folders['folder_custom_font_size'] ) ? "16" : $customize_folders['folder_custom_font_size'];
91
+ }
92
  ?>
93
+ .wcp-container .route span.title-text, .header-posts a, .un-categorised-items a, .sticky-title, .sticky-folders > ul > li > a, .jstree-default .jstree-anchor { font-size: <?php echo esc_attr($customize_folders['folder_size']) ?>px; }
94
  <?php
95
  }
96
  ?>
112
  $title = "Posts";
113
  } else if($typenow == "attachment") {
114
  $title = "Files";
115
+ } else {
116
+ $post_type = $typenow;
117
+ $post_types = get_post_types( array( "name" => $post_type), 'objects' );
118
+ if(!empty($post_types) && is_array($post_types) && isset($post_types[$post_type]) && isset($post_types[$post_type]->label)) {
119
+ $title = $post_types[$post_type]->label;
120
+ }
121
  }
122
  $display_status = "wcp_dynamic_display_status_" . $typenow;
123
  $display_status = get_option($display_status);
164
  <a href="javascript:;" class="un-categorized-posts"><?php esc_attr_e("Unassigned ".$title, 'folders'); ?> <span class="total-count total-empty"><?php echo $ttemp ?></span> </a>
165
  </div>
166
  <div class="folder-separator-2"></div>
167
+ <div class="folders-action-menu">
168
+ <ul>
169
+ <li style="flex: 0 0 22px;"><a href="javascript:;" class="no-bg"><input type="checkbox" id="menu-checkbox" ></a></li>
170
+ <li class="folder-inline-tooltip">
171
+ <a class="full-width upload-media-action disabled" target="_blank" href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>">
172
+ <span class="inline-tooltip"><?php esc_html_e("Uploading folder is pro feature", "folders"); ?> <span><?php esc_html_e("Upgrade Now 🎉", "folders") ?></span></span>
173
+ <span class="dashicons dashicons-cloud-upload"></span>
174
+ </a>
175
+ </li>
176
+ <li class="folder-inline-tooltip cut-folder-action">
177
+ <a class="full cut-folder-action disabled" target="_blank" href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" >
178
+ <span class="inline-tooltip"><?php esc_html_e("Cut is pro feature", "folders"); ?> <span><?php esc_html_e("Upgrade Now 🎉", "folders") ?></span></span>
179
+ <span class="pfolder-cut"></span>
180
+ </a>
181
+ </li>
182
+ <li class="folder-inline-tooltip cut-folder-action">
183
+ <a class="full copy-folder-action disabled" target="_blank" href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" >
184
+ <span class="inline-tooltip"><?php esc_html_e("Copy is pro feature", "folders"); ?> <span><?php esc_html_e("Upgrade Now 🎉", "folders") ?></span></span>
185
+ <span class="pfolder-copy"></span>
186
+ </a>
187
+ </li>
188
+ <li class="folder-inline-tooltip cut-folder-action">
189
+ <a class="paste-folder-action disabled" target="_blank" href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" >
190
+ <span class="inline-tooltip"><?php esc_html_e("Paste is pro feature", "folders"); ?> <span><?php esc_html_e("Upgrade Now 🎉", "folders") ?></span></span>
191
+ <span class="pfolder-paste"></span>
192
+ </a>
193
+ </li>
194
+ <li class="folder-inline-tooltip">
195
+ <a class="lock-unlock-all-folders open-folders disabled" target="_blank" href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" >
196
+ <span class="inline-tooltip"><?php esc_html_e("Lock/Unlock is pro feature", "folders"); ?> <span><?php esc_html_e("Upgrade Now 🎉", "folders") ?></span></span>
197
+ <span class="dashicons dashicons-lock"></span>
198
+ </a>
199
+ </li>
200
+ <!--<li><a class="folder-tooltip undo-folder-action disabled" href="javascript:;" data-folder-tooltip="<?php /*esc_html_e("Undo Changes", "folders"); */?>"><span class="pfolder-undo"></span></a></li>-->
201
+ <li><a class="folder-tooltip delete-folder-action disabled" href="javascript:;" data-folder-tooltip="<?php esc_html_e("Delete", "folders"); ?>"><span class="pfolder-remove"></span></a></li>
202
+ </ul>
203
+ </div>
204
+ <div class="folder-separator-2"></div>
205
  </div>
206
  </div>
207
  <div id="custom-scroll-menu">
363
  </div>
364
  <div class="folder-form-buttons">
365
  <a href="javascript:;" class="form-cancel-btn"><?php esc_html_e("Cancel", "folders") ?></a>
366
+ <a href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" target="_blank" class="form-submit-btn"><?php esc_html_e("Upgrade to Pro", "folders") ?></a>
367
+ </div>
368
+ </div>
369
+ </div>
370
+ </div>
371
+
372
+ <div class="folder-popup-form" id="sub-drag-folder-popup">
373
+ <div class="popup-form-content">
374
+ <div class="popup-form-data">
375
+ <div class="close-popup-button">
376
+ <a class="" href="javascript:;"><span></span></a>
377
+ </div>
378
+ <div class="add-update-folder-title">
379
+ <?php esc_html_e("Sub-folders is a pro feature", "folders") ?>
380
+ </div>
381
+ <div class="folder-form-message" style="padding: 25px 0 15px;" >
382
+ <?php esc_html_e("Hey, it looks like you want to create sub-folders on Folders. Sub-folders is a premium feature. Upgrade to Pro to create, access and organize your files with sub-folders.", "folders") ?>
383
+ </div>
384
+ <div class="folder-form-message" style="padding: 0 10px 25px;" >
385
+ <?php esc_html_e("You can still create unlimited folders in the free version.", "folders") ?>
386
+ </div>
387
+ <div class="checkbox-content">
388
+ <?php $check_status = get_option("premio_hide_child_popup"); ?>
389
+ <label for="do_not_show_again"><input type="checkbox" id="do_not_show_again" <?php checked($check_status, 1) ?>> <?php esc_html_e("Don't show this popup again", "folders") ?></label>
390
+ </div>
391
+ <div class="folder-form-buttons">
392
+ <a href="javascript:;" class="form-cancel-btn"><?php esc_html_e("Cancel", "folders") ?></a>
393
+ <a href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" target="_blank" class="form-submit-btn"><?php esc_html_e("Upgrade to Pro", "folders") ?></a>
394
+ </div>
395
+ </div>
396
+ </div>
397
+ </div>
398
+
399
+ <div class="folder-popup-form" id="confirm-your-change">
400
+ <div class="popup-form-content">
401
+ <div class="popup-form-data">
402
+ <div class="close-popup-button">
403
+ <a class="" href="javascript:;"><span></span></a>
404
+ </div>
405
+ <div class="add-update-folder-title">
406
+ <?php esc_html_e("Confirm your change", "folders") ?>
407
+ </div>
408
+ <div class="folder-form-message" style="padding: 25px 10px;" >
409
+ Hey, it looks like you want to move the file to "Unassigned Files." Do you want to move the file from the current folder only or from all the folders where the file exists?
410
+ </div>
411
+ <div class="folder-form-buttons">
412
+ <input type="hidden" id="unassigned_folders" />
413
+ <a href="javascript:;" class="form-cancel-btn remove-from-all-folders" id="remove-from-all-folders"><?php esc_html_e("From all folders", "folders") ?></a>
414
+ <a href="javascript:;" class="form-submit-btn remove-from-current-folder" id="remove-from-current-folder"><?php esc_html_e("Just from this folder", "folders") ?></a>
415
  </div>
416
  </div>
417
  </div>
templates/admin/folder-deactivate-form.php CHANGED
@@ -2,303 +2,7 @@
2
  if ( ! defined( 'ABSPATH' ) ) exit;
3
  ?>
4
  <style>
5
- .folder-hidden {
6
- overflow: hidden;
7
- }
8
-
9
- .folder-popup-overlay .folder-internal-message {
10
- margin: 3px 0 3px 22px;
11
- display: none;
12
- }
13
-
14
- .folder-reason-input {
15
- margin: 3px 0 3px 22px;
16
- display: none;
17
- }
18
-
19
- .folder-reason-input input[type="text"] {
20
- width: 100%;
21
- display: block;
22
- }
23
-
24
- .folder-popup-overlay {
25
- background: rgba(0, 0, 0, .8);
26
- position: fixed;
27
- top: 0;
28
- left: 0;
29
- height: 100%;
30
- width: 100%;
31
- z-index: 1000;
32
- overflow: auto;
33
- visibility: hidden;
34
- opacity: 0;
35
- transition: opacity 0.3s ease-in-out :
36
- }
37
-
38
- .folder-popup-overlay.folder-active {
39
- opacity: 1;
40
- visibility: visible;
41
- }
42
-
43
- .folder-serveypanel {
44
- width: 600px;
45
- background: #fff;
46
- margin: 65px auto 0;
47
- }
48
-
49
- .folder-popup-header {
50
- background: #f1f1f1;
51
- padding: 20px;
52
- border-bottom: 1px solid #ccc;
53
- }
54
-
55
- .folder-popup-header h2 {
56
- margin: 0;
57
- }
58
-
59
- .folder-popup-body {
60
- padding: 10px 20px;
61
- }
62
-
63
- .folder-popup-footer {
64
- background: #f9f3f3;
65
- padding: 10px 20px;
66
- border-top: 1px solid #ccc;
67
- }
68
-
69
- .folder-popup-footer:after {
70
- content: "";
71
- display: table;
72
- clear: both;
73
- }
74
-
75
- .action-btns {
76
- float: right;
77
- }
78
-
79
- .folder-anonymous {
80
- display: none;
81
- }
82
-
83
- .attention, .error-message {
84
- color: red;
85
- font-weight: 600;
86
- display: none;
87
- }
88
-
89
- .folder-spinner {
90
- display: none;
91
- }
92
-
93
- .folder-spinner img {
94
- margin-top: 3px;
95
- }
96
-
97
- .folder-hidden-input {
98
- padding: 10px 0 0;
99
- display: none;
100
- }
101
-
102
- .folder-hidden-input input[type='text'] {
103
- padding: 0 10px;
104
- width: 100%;
105
- height: 26px;
106
- line-height: 26px;
107
- }
108
-
109
- .folder-hidden-input textarea {
110
- padding: 10px;
111
- width: 100%;
112
- height: 100px;
113
- margin: 0 0 10px 0;
114
- }
115
-
116
- span.folder-error-message {
117
- color: #dd0000;
118
- font-weight: 600;
119
- }
120
-
121
- .form-control textarea {
122
- width: 100%;
123
- height: 100px;
124
- margin-bottom: 10px;
125
- }
126
-
127
-
128
- .folder-help-btn {
129
- position: fixed;
130
- right: 20px;
131
- bottom: 20px;
132
- z-index: 1001
133
- }
134
-
135
- .folder-help-btn a {
136
- display: block;
137
- border: 3px solid #FFF;
138
- width: 50px;
139
- height: 50px;
140
- -webkit-border-radius: 50%;
141
- -moz-border-radius: 50%;
142
- border-radius: 50%;
143
- position: relative
144
- }
145
-
146
- .folder-help-btn a img {
147
- width: 100%;
148
- height: auto;
149
- display: block;
150
- -webkit-border-radius: 50%;
151
- -moz-border-radius: 50%;
152
- border-radius: 50%
153
- }
154
-
155
- .folder-help-form {
156
- position: fixed;
157
- right: 85px;
158
- border: 1px solid #e9edf0;
159
- bottom: 25px;
160
- background: #fff;
161
- -webkit-border-radius: 10px;
162
- -moz-border-radius: 10px;
163
- border-radius: 10px;
164
- width: 320px;
165
- z-index: 1001;
166
- direction: ltr;
167
- opacity: 0;
168
- transition: .4s;
169
- -webkit-transition: .4s;
170
- -moz-transition: .4s;
171
- display: none;
172
- }
173
-
174
- .folder-help-form.active {
175
- opacity: 1;
176
- pointer-events: inherit;
177
- display: block;
178
- }
179
-
180
- .folder-help-header {
181
- background: #f4f4f4;
182
- border-bottom: solid 1px #e9edf0;
183
- padding: 5px 20px;
184
- -webkit-border-radius: 10px;
185
- -moz-border-radius: 10px;
186
- border-radius: 10px 10px 0 0;
187
- font-size: 16px;
188
- text-align: right
189
- }
190
-
191
- .folder-help-header b {
192
- float: left
193
- }
194
-
195
- .folder-help-content {
196
- margin-bottom: 10px;
197
- padding: 20px 20px 10px
198
- }
199
-
200
- .folder-help-form p {
201
- margin: 0 0 1em
202
- }
203
-
204
- .folder-form-field {
205
- margin-bottom: 10px
206
- }
207
-
208
- .folder-form-field input, .folder-form-field textarea {
209
- -webkit-border-radius: 5px;
210
- -moz-border-radius: 5px;
211
- border-radius: 5px;
212
- padding: 5px;
213
- width: 100%;
214
- box-sizing: border-box;
215
- border: 1px solid #c5c5c5
216
- }
217
-
218
- .folder-form-field textarea {
219
- width: 100%;
220
- height: 100px;
221
- margin-bottom: 10px;
222
- }
223
-
224
- .folder-help-button {
225
- border: none;
226
- padding: 8px 0;
227
- width: 100%;
228
- background: #ff6624;
229
- color: #fff;
230
- border-radius: 18px
231
- }
232
-
233
- .folder-help-form .error-message {
234
- font-weight: 400;
235
- font-size: 14px;
236
- display: block;
237
- }
238
-
239
- .folder-help-form input.input-error, .folder-help-form textarea.input-error {
240
- border-color: #dc3232
241
- }
242
-
243
- .folder-help-btn span.tooltiptext {
244
- position: absolute;
245
- background: #000;
246
- font-size: 12px;
247
- color: #fff;
248
- top: -35px;
249
- width: 140%;
250
- text-align: center;
251
- left: -20%;
252
- border-radius: 5px;
253
- direction: ltr
254
- }
255
-
256
- p.error-p, p.success-p {
257
- margin: 0;
258
- font-size: 14px;
259
- text-align: center
260
- }
261
-
262
- .folder-help-btn span.tooltiptext:after {
263
- bottom: -20px;
264
- content: "";
265
- transform: translateX(-50%);
266
- height: 10px;
267
- width: 0px;
268
- border-width: 10px 5px 0;
269
- border-style: solid;
270
- border-color: #000 transparent transparent;
271
- left: 50%;
272
- position: absolute
273
- }
274
- .folder-help-btn {
275
- display: none;
276
- }
277
-
278
- p.success-p {
279
- color: green
280
- }
281
-
282
- p.error-p {
283
- color: #dc3232
284
- }
285
-
286
- html[dir=rtl] .folder-help-btn {
287
- left: 20px;
288
- right: auto
289
- }
290
-
291
- html[dir=rtl] .folder-help-form {
292
- left: 85px;
293
- right: auto
294
- }
295
- .folder-popup-body h3 {
296
- line-height: 24px;
297
- }
298
- .folder-popup-overlay .form-control input {
299
- width: 100%;
300
- margin: 0 0 15px 0;
301
- }
302
  </style>
303
 
304
  <div class="folder-popup-overlay">
2
  if ( ! defined( 'ABSPATH' ) ) exit;
3
  ?>
4
  <style>
5
+ .folder-hidden{overflow:hidden}.folder-popup-overlay .folder-internal-message{margin:3px 0 3px 22px;display:none}.folder-reason-input{margin:3px 0 3px 22px;display:none}.folder-reason-input input[type=text]{width:100%;display:block}.folder-popup-overlay{background:rgba(0,0,0,.8);position:fixed;top:0;left:0;height:100%;width:100%;z-index:1000;overflow:auto;visibility:hidden;opacity:0;transition:opacity .3s ease-in-out :}.folder-popup-overlay.folder-active{opacity:1;visibility:visible}.folder-serveypanel{width:600px;background:#fff;margin:65px auto 0}.folder-popup-header{background:#f1f1f1;padding:20px;border-bottom:1px solid #ccc}.folder-popup-header h2{margin:0}.folder-popup-body{padding:10px 20px}.folder-popup-footer{background:#f9f3f3;padding:10px 20px;border-top:1px solid #ccc}.folder-popup-footer:after{content:"";display:table;clear:both}.action-btns{float:right}.folder-anonymous{display:none}.attention,.error-message{color:red;font-weight:600;display:none}.folder-spinner{display:none}.folder-spinner img{margin-top:3px}.folder-hidden-input{padding:10px 0 0;display:none}.folder-hidden-input input[type=text]{padding:0 10px;width:100%;height:26px;line-height:26px}.folder-hidden-input textarea{padding:10px;width:100%;height:100px;margin:0 0 10px 0}span.folder-error-message{color:#d00;font-weight:600}.form-control textarea{width:100%;height:100px;margin-bottom:10px}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  </style>
7
 
8
  <div class="folder-popup-overlay">
templates/admin/general-settings.php CHANGED
@@ -86,7 +86,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
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
  }
@@ -381,7 +381,11 @@ if ( ! defined( 'ABSPATH' ) ) exit;
381
  $("#custom-css").html("");
382
  if($("#folder_font").val() != "") {
383
  font_val = $("#folder_font").val();
384
- $('head').append('<link href="https://fonts.googleapis.com/css?family=' + font_val + ':400,600,700" rel="stylesheet" type="text/css" class="chaty-google-font">');
 
 
 
 
385
  $('.preview-box').css('font-family', font_val);
386
  } else {
387
  $('.preview-box').css('style', "");
@@ -467,6 +471,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
467
  <div class="folder-tab-menu">
468
  <ul>
469
  <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', 'folders'); ?></a></li>
 
470
  <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', 'folders'); ?></a></li>
471
  <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', 'folders'); ?></a></li>
472
  <?php if($isInSettings) { ?>
@@ -569,6 +574,23 @@ if ( ! defined( 'ABSPATH' ) ) exit;
569
  </div>
570
  </td>
571
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
572
  <?php
573
  $show_in_page = !isset($customize_folders['folders_enable_replace_media'])?"yes":$customize_folders['folders_enable_replace_media'];
574
  ?>
@@ -757,7 +779,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
757
  <a href="https://premio.io/help/folders/?utm_source=pluginspage" target="_blank">
758
  <div class="premio-help-btn">
759
  <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/premio-help.png") ?>" alt="Premio Help" class="Premio Help" />
760
- <div class="need-help">Need Help</div>
761
  <div class="visit-our">Visit our</div>
762
  <div class="knowledge-base">knowledge base</div>
763
  </div>
@@ -975,7 +997,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
975
  <tr>
976
  <td class="no-padding">
977
  <label for="folder_font" >
978
- <?php if($setting_font !== false && $setting_font != "" && !in_array($setting_font, array("Arial","Tahoma","Verdana","Helvetica","Times New Roman","Trebuchet MS","Georgia"))) {
979
  esc_html_e("Folders font", 'folders');
980
  } else { ?>
981
  <a class="upgrade-box-link" target="_blank" href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" >
@@ -1028,7 +1050,8 @@ if ( ! defined( 'ABSPATH' ) ) exit;
1028
  $sizes = array(
1029
  "folders-pro" => "Small (Pro) 🔑",
1030
  "16" => "Medium",
1031
- "folders-pro-item" => "Large (Pro) 🔑"
 
1032
  );
1033
  $size = 16;
1034
  } else {
@@ -1214,6 +1237,69 @@ if ( ! defined( 'ABSPATH' ) ) exit;
1214
  <?php include_once "upgrade-table.php"; ?>
1215
  <?php } ?>
1216
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1217
  </div>
1218
  </div>
1219
  <?php
@@ -1397,3 +1483,4 @@ if(($option == "show" || get_option("folder_redirect_status") == 2) && $is_plugi
1397
  </div>
1398
  </div>
1399
  </div>
 
86
  }
87
  });
88
  $(document).on("change", "#folder_size", function(){
89
+ if($(this).val() == "folders-pro" || $(this).val() == "folders-pro-item" || $(this).val() == "folders-item-pro") {
90
  $(this).val("16").trigger("change");
91
  window.open("<?php echo esc_url($this->getFoldersUpgradeURL()) ?>", "_blank");
92
  }
381
  $("#custom-css").html("");
382
  if($("#folder_font").val() != "") {
383
  font_val = $("#folder_font").val();
384
+ if(font_val == "System Stack") {
385
+ font_val = "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif";
386
+ } else {
387
+ $('head').append('<link href="https://fonts.googleapis.com/css?family=' + font_val + ':400,600,700" rel="stylesheet" type="text/css" class="chaty-google-font">');
388
+ }
389
  $('.preview-box').css('font-family', font_val);
390
  } else {
391
  $('.preview-box').css('style', "");
471
  <div class="folder-tab-menu">
472
  <ul>
473
  <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', 'folders'); ?></a></li>
474
+ <li><a class="<?php echo esc_attr(($setting_page=="folders-by-user")?"active":"") ?>" href="<?php echo esc_url($settingURL."&setting_page=folders-by-user") ?>"><?php esc_html_e( 'User Restrictions', 'folders'); ?></a></li>
475
  <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', 'folders'); ?></a></li>
476
  <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', 'folders'); ?></a></li>
477
  <?php if($isInSettings) { ?>
574
  </div>
575
  </td>
576
  </tr>
577
+
578
+ <tr>
579
+ <td style="padding: 15px 10px 15px 0px" colspan="4">
580
+ <?php $replace_media_title = "off"; ?>
581
+ <a class="upgrade-box-link" target="_blank" href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" >
582
+ <label for="" class="custom-checkbox send-user-to-pro">
583
+ <input disabled type="checkbox" class="sr-only" id="enable_media_trash" value="off">
584
+ <span></span>
585
+ </label>
586
+ <label for="" class="send-user-to-pro">
587
+ <?php esc_html_e("Move files to trash by default before deleting", "folders"); ?>
588
+ <span class="folder-tooltip" data-title="<?php esc_html_e("When enabled, files will be moved to trash to prevent mistakes, and then you can delete permanently from the trash", "folders") ?>"><span class="dashicons dashicons-editor-help"></span></span></label>
589
+ <button type="button" class="upgrade-link" href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>"><?php esc_html_e("Upgrade to Pro", 'folders') ?></button>
590
+ </label>
591
+ </a>
592
+ </td>
593
+ </tr>
594
  <?php
595
  $show_in_page = !isset($customize_folders['folders_enable_replace_media'])?"yes":$customize_folders['folders_enable_replace_media'];
596
  ?>
779
  <a href="https://premio.io/help/folders/?utm_source=pluginspage" target="_blank">
780
  <div class="premio-help-btn">
781
  <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/premio-help.png") ?>" alt="Premio Help" class="Premio Help" />
782
+ <div class="need-help">Need Help?</div>
783
  <div class="visit-our">Visit our</div>
784
  <div class="knowledge-base">knowledge base</div>
785
  </div>
997
  <tr>
998
  <td class="no-padding">
999
  <label for="folder_font" >
1000
+ <?php if($setting_font !== false && $setting_font != "" && !in_array($setting_font, array("Arial","Tahoma","Verdana","Helvetica","Times New Roman","Trebuchet MS","Georgia", "System Stack"))) {
1001
  esc_html_e("Folders font", 'folders');
1002
  } else { ?>
1003
  <a class="upgrade-box-link" target="_blank" href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" >
1050
  $sizes = array(
1051
  "folders-pro" => "Small (Pro) 🔑",
1052
  "16" => "Medium",
1053
+ "folders-pro-item" => "Large (Pro) 🔑",
1054
+ "folders-item-pro" => "Custom (Pro) 🔑"
1055
  );
1056
  $size = 16;
1057
  } else {
1237
  <?php include_once "upgrade-table.php"; ?>
1238
  <?php } ?>
1239
  </div>
1240
+ <div class="tab-content <?php echo esc_attr(($setting_page=="folders-by-user")?"active":"") ?>" id="folders-by-user">
1241
+ <?php
1242
+ $folders_by_users = !isset($customize_folders['folders_by_users'])?"off":$customize_folders['folders_by_users'];
1243
+ $dynamic_folders_for_admin_only = !isset($customize_folders['dynamic_folders_for_admin_only'])?"off":$customize_folders['dynamic_folders_for_admin_only'];
1244
+ ?>
1245
+ <?php if($setting_page=="folders-by-user") { ?>
1246
+ <div class="folders-by-user">
1247
+ <div class="send-user-to-pro">
1248
+ <div class="normal-box">
1249
+ <table class="import-export-table">
1250
+ <tr>
1251
+ <td>
1252
+ <span class="danger-info"><?php esc_html_e("Restrict users to their folders only", "folders"); ?></span>
1253
+ <span class="danger-data"><?php esc_html_e("Users will only be able to access their folders and media. Only Admin users will be able to view all folders", "folders"); ?>
1254
+ </td>
1255
+ <td class="last-td" >
1256
+ <a class="upgrade-box-link" target="_blank" href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" >
1257
+ <span>
1258
+ <label class="folder-switch send-user-to-pro" for="dynamic_folders_for_admin_only">
1259
+ <input type="hidden">
1260
+ <div class="folder-slider round"></div>
1261
+ </label>
1262
+ </span>
1263
+ <button type="button" class="upgrade-link" ><?php esc_html_e("Upgrade to Pro", 'folders') ?></button>
1264
+ </a>
1265
+ </td>
1266
+ </tr>
1267
+ </table>
1268
+ </div>
1269
+ <a class="upgrade-box" target="_blank" href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" >
1270
+ <button type="button"><?php esc_html_e("Upgrade to Pro", 'folders'); ?></button>
1271
+ </a>
1272
+ </div>
1273
+ <div class="send-user-to-pro">
1274
+ <div class="normal-box">
1275
+ <table class="import-export-table">
1276
+ <tr>
1277
+ <td>
1278
+ <span class="danger-info"><?php esc_html_e("Restrict access to dynamic folders", "folders"); ?></span>
1279
+ <span class="danger-data"><?php esc_html_e("Regular users will not access dynamic folders.", "folders"); ?></span>
1280
+ <span class="danger-data"><?php esc_html_e("Only Admin users will be able to view dynamic folders.", "folders"); ?></span>
1281
+ </td>
1282
+ <td class="last-td" >
1283
+ <a class="upgrade-box-link" target="_blank" href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" >
1284
+ <span>
1285
+ <label class="folder-switch send-user-to-pro" for="folders_by_users">
1286
+ <input type="hidden">
1287
+ <div class="folder-slider round"></div>
1288
+ </label>
1289
+ </span>
1290
+ <button type="button" class="upgrade-link" ><?php esc_html_e("Upgrade to Pro", 'folders') ?></button>
1291
+ </a>
1292
+ </td>
1293
+ </tr>
1294
+ </table>
1295
+ </div>
1296
+ <a class="upgrade-box" target="_blank" href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" >
1297
+ <button type="button"><?php esc_html_e("Upgrade to Pro", 'folders'); ?></button>
1298
+ </a>
1299
+ </div>
1300
+ </div>
1301
+ <?php } ?>
1302
+ </div>
1303
  </div>
1304
  </div>
1305
  <?php
1483
  </div>
1484
  </div>
1485
  </div>
1486
+ <?php include_once "help.php" ?>
templates/admin/help.php CHANGED
@@ -1,6 +1,9 @@
1
  <?php
2
  if ( ! defined( 'ABSPATH' ) ) exit;
3
  ?>
 
 
 
4
  <div class="folder-help-form">
5
  <form action="<?php echo esc_url(admin_url( 'admin-ajax.php' )) ?>" method="post" id="folder-help-form">
6
  <div class="folder-help-header">
@@ -25,6 +28,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
25
  <div class="folder-help-btn">
26
  <!-- Free/Pro Only URL Change -->
27
  <a class="folder-help-tooltip" href="javascript:;"><img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/owner.png") ?>" alt="<?php esc_html_e("Need help?", 'folders'); ?>" /></a>
 
28
  </div>
29
  <script>
30
  jQuery(document).ready(function(){
@@ -55,7 +59,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
55
  jQuery(".folder-help-content").html("<p class='success-p'><?php esc_html_e("Your message is sent successfully.", 'folders'); ?></p>");
56
  },1000);
57
  } else if(responseArray.status == 0) {
58
- jQuery(".folder-help-content").html("<p class='error-p'><?php esc_html_e("There is some problem in sending request. Please send us mail on <a href='mailto:contact@premio.io'>contact@premio.io</a>", 'folders'); ?></p>");
59
  }
60
  }
61
  });
1
  <?php
2
  if ( ! defined( 'ABSPATH' ) ) exit;
3
  ?>
4
+ <style>
5
+ .folder-help-btn{position:fixed;right:20px;bottom:20px;z-index:1001}.folder-help-btn a{display:block;border:3px solid #fff;width:50px;height:50px;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;position:relative}.folder-help-btn a img{width:100%;height:auto;display:block;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%}.folder-help-form{position:fixed;right:85px;border:1px solid #e9edf0;bottom:25px;background:#fff;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;width:320px;z-index:1001;direction:ltr;opacity:0;transition:.4s;-webkit-transition:.4s;-moz-transition:.4s;display:none}.folder-help-form.active{opacity:1;pointer-events:inherit;display:block}.folder-help-header{background:#f4f4f4;border-bottom:solid 1px #e9edf0;padding:5px 20px;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px 10px 0 0;font-size:16px;text-align:right}.folder-help-header b{float:left}.folder-help-content{margin-bottom:10px;padding:20px 20px 10px}.folder-help-form p{margin:0 0 1em}.folder-form-field{margin-bottom:10px}.folder-form-field input,.folder-form-field textarea{-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;padding:5px;width:100%;box-sizing:border-box;border:1px solid #c5c5c5}.folder-form-field textarea{width:100%;height:100px;margin-bottom:10px}.folder-help-button{border:none;padding:8px 0;width:100%;background:#ff6624;color:#fff;border-radius:18px;cursor:pointer}.folder-help-form .error-message{font-weight:400;font-size:14px;display:block}.folder-help-form input.input-error,.folder-help-form textarea.input-error{border-color:#dc3232}.folder-help-btn span.tooltiptext{position:absolute;background:#000;font-size:12px;color:#fff;top:-35px;width:140%;text-align:center;left:-20%;border-radius:5px;direction:ltr}p.error-p,p.success-p{margin:0;font-size:14px;text-align:center}.folder-help-btn span.tooltiptext:after{bottom:-20px;content:"";transform:translateX(-50%);height:10px;width:0;border-width:10px 5px 0;border-style:solid;border-color:#000 transparent transparent;left:50%;position:absolute}.folder-help-btn{display:none}p.success-p{color:green}p.error-p{color:#dc3232}html[dir=rtl] .folder-help-btn{left:20px;right:auto}html[dir=rtl] .folder-help-form{left:85px;right:auto}.folder-popup-body h3{line-height:24px}.folder-popup-overlay .form-control input{width:100%;margin:0 0 15px 0}body.plugins-php .tooltiptext{display:none}
6
+ </style>
7
  <div class="folder-help-form">
8
  <form action="<?php echo esc_url(admin_url( 'admin-ajax.php' )) ?>" method="post" id="folder-help-form">
9
  <div class="folder-help-header">
28
  <div class="folder-help-btn">
29
  <!-- Free/Pro Only URL Change -->
30
  <a class="folder-help-tooltip" href="javascript:;"><img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/owner.png") ?>" alt="<?php esc_html_e("Need help?", 'folders'); ?>" /></a>
31
+ <span class="tooltiptext">Need help?</span>
32
  </div>
33
  <script>
34
  jQuery(document).ready(function(){
59
  jQuery(".folder-help-content").html("<p class='success-p'><?php esc_html_e("Your message is sent successfully.", 'folders'); ?></p>");
60
  },1000);
61
  } else if(responseArray.status == 0) {
62
+ jQuery(".folder-help-content").html("<p class='error-p'><?php printf(esc_html__("There is some problem in sending request. Please send us mail on %s", 'folders'), "<a href='mailto:contact@premio.io'>contact@premio.io</a>"); ?></p>");
63
  }
64
  }
65
  });
templates/admin/upgrade-table.php CHANGED
@@ -8,6 +8,25 @@ $pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opt
8
  <div class="container">
9
  <div class="pricing-table">
10
  <div class="price-title">Unlock All Features</div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  <div class="price-tables">
12
  <div class="row">
13
  <div class="col-md-4 col-sm-12">
@@ -46,13 +65,16 @@ $pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opt
46
  </span>
47
  </a>
48
  </li>
 
49
  <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>
50
  <li><a href="javascript:;" class="cus-tooltip">Replace media for all file types and update file names from WordPress titles<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>
51
  <li><a href="javascript:;" class="cus-tooltip">Advanced Media Replacements<span class="has-tooltip">*</span><span class="tooltip__content">Replace media files when uploading and update all references in the database, change dates, organize by newer date & more without hurting your SEO</span></a></li>
 
52
  <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>
53
  <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>
54
  <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>
55
  <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>
 
56
  <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>
57
  <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>
58
  </ul>
@@ -106,13 +128,16 @@ $pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opt
106
  </span>
107
  </a>
108
  </li>
 
109
  <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>
110
  <li><a href="javascript:;" class="cus-tooltip">Replace media for all file types and update file names from WordPress titles<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>
111
  <li><a href="javascript:;" class="cus-tooltip">Advanced Media Replacements<span class="has-tooltip">*</span><span class="tooltip__content">Replace media files when uploading and update all references in the database, change dates, organize by newer date & more without hurting your SEO</span></a></li>
 
112
  <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>
113
  <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>
114
  <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>
115
  <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>
 
116
  <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>
117
  <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>
118
  </ul>
@@ -173,13 +198,16 @@ $pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opt
173
  </span>
174
  </span>
175
  </a></li>
 
176
  <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>
177
  <li><a href="javascript:;" class="cus-tooltip">Replace media for all file types and update file names from WordPress titles<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>
178
  <li><a href="javascript:;" class="cus-tooltip">Advanced Media Replacements<span class="has-tooltip">*</span><span class="tooltip__content">Replace media files when uploading and update all references in the database, change dates, organize by newer date & more without hurting your SEO</span></a></li>
 
179
  <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>
180
  <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>
181
  <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>
182
  <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>
 
183
  <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>
184
  <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>
185
  </ul>
@@ -284,6 +312,18 @@ $pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opt
284
  }
285
  };
286
  $(document).ready(function () {
 
 
 
 
 
 
 
 
 
 
 
 
287
  if ($(".multiple-options").length) {
288
  $(".multiple-options").select2({
289
  minimumResultsForSearch: -1
8
  <div class="container">
9
  <div class="pricing-table">
10
  <div class="price-title">Unlock All Features</div>
11
+ <div class="pricing-table-header">
12
+ <div class="pricing-table-body">
13
+ <div class="pricing-table-content first active" data-option="1_year">
14
+ <div class="year-col">1 Year</div>
15
+ <div class="update-col">Updates &amp; Support</div>
16
+ <div class="pricing-discount-col"></div>
17
+ </div>
18
+ <div class="pricing-table-content second" data-option="2_year">
19
+ <div class="year-col">2 Years</div>
20
+ <div class="update-col">Updates &amp; Support</div>
21
+ <div class="pricing-discount-col"><span>32% off &#128526;</span></div>
22
+ </div>
23
+ <div class="pricing-table-content third" data-option="lifetime">
24
+ <div class="year-col">Lifetime</div>
25
+ <div class="update-col">Updates &amp; Support</div>
26
+ <div class="pricing-discount-col"><span>63% off &#129395;</span></div>
27
+ </div>
28
+ </div>
29
+ </div>
30
  <div class="price-tables">
31
  <div class="row">
32
  <div class="col-md-4 col-sm-12">
65
  </span>
66
  </a>
67
  </li>
68
+ <li><a href="javascript:;" class="cus-tooltip">Upload folders with all its content<span class="has-tooltip">*</span><span class="tooltip__content">Upload a folder (all its content within the folder) directly</span></a></li>
69
  <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>
70
  <li><a href="javascript:;" class="cus-tooltip">Replace media for all file types and update file names from WordPress titles<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>
71
  <li><a href="javascript:;" class="cus-tooltip">Advanced Media Replacements<span class="has-tooltip">*</span><span class="tooltip__content">Replace media files when uploading and update all references in the database, change dates, organize by newer date & more without hurting your SEO</span></a></li>
72
+ <li><a href="javascript:;" class="cus-tooltip">User access restriction<span class="has-tooltip">*</span><span class="tooltip__content">Restrict users within their own folders only (restrict Dynamic Folder access as well)</span></a></li>
73
  <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>
74
  <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>
75
  <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>
76
  <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>
77
+ <li><a href="javascript:;" class="cus-tooltip">Move files to trash before permanently removing<span class="has-tooltip">*</span><span class="tooltip__content">Before deleting files permanently, move them to trash to reduce accidental deletion</span></a></li>
78
  <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>
79
  <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>
80
  </ul>
128
  </span>
129
  </a>
130
  </li>
131
+ <li><a href="javascript:;" class="cus-tooltip">Upload folders with all its content<span class="has-tooltip">*</span><span class="tooltip__content">Upload a folder (all its content within the folder) directly</span></a></li>
132
  <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>
133
  <li><a href="javascript:;" class="cus-tooltip">Replace media for all file types and update file names from WordPress titles<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>
134
  <li><a href="javascript:;" class="cus-tooltip">Advanced Media Replacements<span class="has-tooltip">*</span><span class="tooltip__content">Replace media files when uploading and update all references in the database, change dates, organize by newer date & more without hurting your SEO</span></a></li>
135
+ <li><a href="javascript:;" class="cus-tooltip">User access restriction<span class="has-tooltip">*</span><span class="tooltip__content">Restrict users within their own folders only (restrict Dynamic Folder access as well)</span></a></li>
136
  <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>
137
  <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>
138
  <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>
139
  <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>
140
+ <li><a href="javascript:;" class="cus-tooltip">Move files to trash before permanently removing<span class="has-tooltip">*</span><span class="tooltip__content">Before deleting files permanently, move them to trash to reduce accidental deletion</span></a></li>
141
  <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>
142
  <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>
143
  </ul>
198
  </span>
199
  </span>
200
  </a></li>
201
+ <li><a href="javascript:;" class="cus-tooltip">Upload folders with all its content<span class="has-tooltip">*</span><span class="tooltip__content">Upload a folder (all its content within the folder) directly</span></a></li>
202
  <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>
203
  <li><a href="javascript:;" class="cus-tooltip">Replace media for all file types and update file names from WordPress titles<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>
204
  <li><a href="javascript:;" class="cus-tooltip">Advanced Media Replacements<span class="has-tooltip">*</span><span class="tooltip__content">Replace media files when uploading and update all references in the database, change dates, organize by newer date & more without hurting your SEO</span></a></li>
205
+ <li><a href="javascript:;" class="cus-tooltip">User access restriction<span class="has-tooltip">*</span><span class="tooltip__content">Restrict users within their own folders only (restrict Dynamic Folder access as well)</span></a></li>
206
  <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>
207
  <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>
208
  <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>
209
  <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>
210
+ <li><a href="javascript:;" class="cus-tooltip">Move files to trash before permanently removing<span class="has-tooltip">*</span><span class="tooltip__content">Before deleting files permanently, move them to trash to reduce accidental deletion</span></a></li>
211
  <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>
212
  <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>
213
  </ul>
312
  }
313
  };
314
  $(document).ready(function () {
315
+ $(document).on("click", ".pricing-table-content", function(){
316
+ if(!$(this).hasClass("active")) {
317
+ $(".pricing-table-content").removeClass("active");
318
+ $(this).addClass("active");
319
+ var datFor = $(this).data("option");
320
+ $(".multiple-options").each(function(){
321
+ $(this).find("option").prop("selected", false);
322
+ $(this).find("option[data-option='"+datFor+"']").prop("selected", true);
323
+ $(this).trigger("change");
324
+ })
325
+ }
326
+ });
327
  if ($(".multiple-options").length) {
328
  $(".multiple-options").select2({
329
  minimumResultsForSearch: -1