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

Version Description

New and better design! We've added a search field, the minimum size of the Folders area is much smaller now, we've added Folders to the add media view, added a duplicate option, and many other cool features and bug fixes.

Download this release

Release Info

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

Code changes from version 2.5.2 to 2.5.3

assets/css/admin-setting.css CHANGED
@@ -1 +1 @@
1
- .widget-icon__wrap a.upgrade-link{display:block;font-size:16px;text-align:center;padding-left:93px;position:absolute;bottom:0;z-index:10001;left:0;margin:0 auto 12px}#rpt_container{margin-top:24px;width:100%}.rpt_plans .rpt_plan{-moz-box-sizing:border-box;-webkit-box-sizing:border-box}.rpt_2_plans .rpt_plan{margin-right:2%;width:49%;float:left}.rpt_2_plans .rpt_plan:last-child{margin-right:0}.rpt_3_plans .rpt_plan{margin-right:2%;width:32%;float:left}.rpt_3_plans .rpt_plan:last-child{margin-right:0}.rpt_4_plans .rpt_plan{margin-right:1%;width:24.25%;float:left}.rpt_4_plans .rpt_plan:last-child{margin-right:0}.rpt_5_plans .rpt_plan{margin-right:.5%;width:19.6%;float:left}.rpt_5_plans .rpt_plan:last-child{margin-right:0}.rpt_style_bic .rpt_plan,.rpt_style_loc .rpt_plan{-webkit-box-shadow:1px 1px 3px 0 rgba(50,50,50,.19);-moz-box-shadow:1px 1px 3px 0 rgba(50,50,50,.19);box-shadow:1px 1px 3px 0 rgba(50,50,50,.19)}.rpt_plans .rpt_plan .rpt_title img{margin-right:10px;position:relative;vertical-align:middle}.rpt_plans .rpt_plan .rpt_title{background:#6371db;font-weight:300;padding:24px 18px;font-size:26px;color:#fff;line-height:35px;height:auto}.rpt_plans .rpt_plan .rpt_title span{display:inline-block;position:relative;top:-10px}.rpt_style_basic .rpt_plan .rpt_title{border-bottom:#ec86c6 solid 1px;border-top-left-radius:8px;border-top-right-radius:8px}.rpt_style_spec .rpt_plan .rpt_title{color:#fff}.rpt_style_bic .rpt_plan .rpt_title,.rpt_style_loc .rpt_plan .rpt_title,.rpt_style_swl .rpt_plan .rpt_title{background:#333}.rpt_plans .rpt_sm_title .rpt_plan .rpt_title{font-size:20px;line-height:18px}.rpt_plans .rpt_xsm_title .rpt_plan .rpt_title{font-size:15px;line-height:15px}.rpt_4_plans .rpt_plan .rpt_title{font-size:17px;line-height:15px}.rpt_4_plans .rpt_sm_title .rpt_plan .rpt_title{font-size:15px;line-height:13px}.rpt_4_plans .rpt_xsm_title .rpt_plan .rpt_title{font-size:13px;line-height:11px}.rpt_5_plans .rpt_plan .rpt_title{font-size:15px;line-height:13px}.rpt_5_plans .rpt_sm_title .rpt_plan .rpt_title{font-size:13px;line-height:11px}.rpt_5_plans .rpt_xsm_title .rpt_plan .rpt_title{font-size:12px;line-height:10px}.rpt_plans .rpt_recommended_plan .rpt_title{background:#6371db}.rpt_plans .rpt_plan .rpt_head .rpt_price .rpt_currency{position:relative;top:-44px;left:-10px;font-size:35px;line-height:0}.rpt_4_plans .rpt_plan .rpt_head .rpt_price .rpt_currency{top:-36px}.rpt_5_plans .rpt_plan .rpt_head .rpt_price .rpt_currency{top:-26px}.rpt_sm_price .rpt_plan .rpt_head .rpt_price .rpt_currency{font-size:30px;top:-44px;left:-4px}.rpt_xsm_price .rpt_plan .rpt_head .rpt_price .rpt_currency{font-size:25px;top:-30px;left:-4px}.rpt_xxsm_price .rpt_plan .rpt_head .rpt_price .rpt_currency{font-size:21px;top:-14px;left:-4px}.rpt_style_basic .rpt_plan .rpt_head{background:#ec86c6}.rpt_style_spec .rpt_plan .rpt_head{background:#222}.rpt_style_swl .rpt_plan .rpt_head{background:#fff}.rpt_plans .rpt_plan .rpt_head .rpt_price{padding:0;font-size:74px;line-height:100px;font-weight:300;text-align:center;color:#fff}.rpt_style_basic .rpt_plan .rpt_head .rpt_price,.rpt_style_spec .rpt_plan .rpt_head .rpt_price{text-shadow:1px 2px 7px rgba(0,0,0,.6)}.rpt_style_swl .rpt_plan .rpt_head .rpt_price{color:#000}.rpt_plans .rpt_sm_price .rpt_plan .rpt_head .rpt_price{font-size:62px}.rpt_plans .rpt_xsm_price .rpt_plan .rpt_head .rpt_price{font-size:56px}.rpt_plans .rpt_xxsm_price .rpt_plan .rpt_head .rpt_price{font-size:38px}.rpt_4_plans .rpt_plan .rpt_head .rpt_price{font-size:69px;line-height:80px}.rpt_4_plans .rpt_sm_price .rpt_plan .rpt_head .rpt_price{font-size:53px;line-height:65px}.rpt_4_plans .rpt_xsm_price .rpt_plan .rpt_head .rpt_price{font-size:47px;line-height:64px}.rpt_4_plans .rpt_xxsm_price .rpt_plan .rpt_head .rpt_price{font-size:31px;line-height:60px}.rpt_5_plans .rpt_plan .rpt_head .rpt_price{font-size:59px;line-height:80px}.rpt_5_plans .rpt_sm_price .rpt_plan .rpt_head .rpt_price{font-size:44px;line-height:60px}.rpt_5_plans .rpt_xsm_price .rpt_plan .rpt_head .rpt_price{font-size:37px;line-height:53px}.rpt_5_plans .rpt_xxsm_price .rpt_plan .rpt_head .rpt_price{font-size:24px;line-height:50px}.rpt_plans .rpt_recommended_plan .rpt_head .rpt_price{font-size:98px}.rpt_4_plans .rpt_recommended_plan .rpt_head .rpt_price{font-size:74px}.rpt_5_plans .rpt_recommended_plan .rpt_head .rpt_price{font-size:67px}.rpt_plans .rpt_sm_price .rpt_recommended_plan .rpt_head .rpt_price{font-size:83px}.rpt_4_plans .rpt_sm_price .rpt_recommended_plan .rpt_head .rpt_price{font-size:60px}.rpt_5_plans .rpt_sm_price .rpt_recommended_plan .rpt_head .rpt_price{font-size:54px}.rpt_plans .rpt_xsm_price .rpt_recommended_plan .rpt_head .rpt_price{font-size:55px}.rpt_4_plans .rpt_xsm_price .rpt_recommended_plan .rpt_head .rpt_price{font-size:49px}.rpt_5_plans .rpt_xsm_price .rpt_recommended_plan .rpt_head .rpt_price{font-size:41px}.rpt_plans .rpt_xxsm_price .rpt_recommended_plan .rpt_head .rpt_price{font-size:42px}.rpt_4_plans .rpt_xxsm_price .rpt_recommended_plan .rpt_head .rpt_price{font-size:34px}.rpt_5_plans .rpt_xxsm_price .rpt_recommended_plan .rpt_head .rpt_price{font-size:26px}.rpt_plans .rpt_plan .rpt_head .rpt_recurrence{font-size:13px;font-weight:300;line-height:18px;padding:20px 40px 10px;color:#d3d3d3;text-align:center}.rpt_style_spec .rpt_plan .rpt_head .rpt_recurrence{color:#d3d3d3}.rpt_style_bic .rpt_plan .rpt_head .rpt_recurrence,.rpt_style_loc .rpt_plan .rpt_head .rpt_recurrence{color:#f5f5f5}.rpt_style_swl .rpt_plan .rpt_head .rpt_recurrence{color:grey}.rpt_plans .rpt_sm_recurrence .rpt_plan .rpt_head .rpt_recurrence{font-size:11px;padding:20px 40px 4px}.rpt_plans .rpt_plan .rpt_head .rpt_subtitle{font-size:16px;line-height:20px;font-weight:300;text-align:center;padding:10px 30px 20px}.rpt_plans .rpt_sm_subtitle .rpt_plan .rpt_head .rpt_subtitle{font-size:14px}.rpt_plans .rpt_xsm_subtitle .rpt_plan .rpt_head .rpt_subtitle{font-size:12px}.rpt_4_plans .rpt_plan .rpt_head .rpt_subtitle{font-size:16px;line-height:18px;padding:10px 10px 20px}.rpt_4_plans .rpt_sm_subtitle .rpt_plan .rpt_head .rpt_subtitle{font-size:14px;line-height:17px}.rpt_4_plans .rpt_xsm_subtitle .rpt_plan .rpt_head .rpt_subtitle{font-size:13px;line-height:16px}.rpt_5_plans .rpt_plan .rpt_head .rpt_subtitle{font-size:15px;line-height:18px;padding:10px 10px 20px}.rpt_5_plans .rpt_sm_subtitle .rpt_plan .rpt_head .rpt_subtitle{font-size:13px;line-height:17px}.rpt_5_plans .rpt_xsm_subtitle .rpt_plan .rpt_head .rpt_subtitle{font-size:12px;line-height:16px}.rpt_plans .rpt_plan .rpt_head .rpt_description{font-size:14px;line-height:20px;padding:15px 0;font-weight:300;text-align:center;color:#fff}.rpt_plans .rpt_sm_description .rpt_plan .rpt_head .rpt_description{font-size:12px}.rpt_style_bic .rpt_plan .rpt_head .rpt_description,.rpt_style_loc .rpt_plan .rpt_head .rpt_description{color:#f5f5f5}.rpt_4_plans .rpt_plan .rpt_head .rpt_description{font-size:13px;line-height:18px}.rpt_4_plans .rpt_sm_description .rpt_plan .rpt_head .rpt_description{font-size:12px;line-height:17px}.rpt_5_plans .rpt_plan .rpt_head .rpt_description{font-size:12px;line-height:18px}.rpt_5_plans .rpt_sm_description .rpt_plan .rpt_head .rpt_description{font-size:11px;line-height:17px}.rpt_plans .rpt_plan .rpt_features{padding:20px;background:#f5f5f5;text-align:center}.rpt_plans .rpt_plan .rpt_features .rpt_feature{font-size:16px;padding:6px 16px 8px;border-bottom:1px dotted #d3d3d3}.rpt_plans .rpt_plan .rpt_features .rpt_feature:last-child{border-bottom:none}.rpt_plans .rpt_sm_features .rpt_plan .rpt_features .rpt_feature{font-size:14px}.rpt_style_bic .rpt_plan .rpt_features,.rpt_style_loc .rpt_plan .rpt_features,.rpt_style_swl .rpt_plan .rpt_features{background:#fff}.rpt_style_swl .rpt_plan .rpt_features .rpt_feature{padding:5px 16px}.rpt_4_plans .rpt_plan .rpt_features .rpt_feature{padding:6px 10px;font-size:14px}.rpt_4_plans .rpt_sm_features .rpt_plan .rpt_features .rpt_feature{font-size:12px}.rpt_5_plans .rpt_plan .rpt_features .rpt_feature{padding:6px 10px;font-size:13px}.rpt_5_plans .rpt_sm_features .rpt_plan .rpt_features .rpt_feature{font-size:11px}.rpt_plans .rpt_plan .rpt_foot{display:block;padding:10px 30px;border-top:#f5f5f5 solid 2px;text-align:center;color:#fff;font-size:24px;text-decoration:none;font-weight:300;transition:All .5s ease;-webkit-transition:All .5s ease;-moz-transition:All .5s ease;-o-transition:All .5s ease;background:#9679d3}.rpt_plans .rpt_sm_button .rpt_plan .rpt_foot{font-size:19px}.rpt_style_basic .rpt_plan .rpt_foot{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.rpt_style_swl .rpt_plan .rpt_foot{border-top:none;padding:10px 30px 20px;color:#000;background:#333}.rpt_4_plans .rpt_plan .rpt_foot{padding:4px 20px;font-size:19px}.rpt_4_plans .rpt_sm_button .rpt_plan .rpt_foot,.rpt_5_plans .rpt_plan .rpt_foot{padding:4px 20px;font-size:17px}.rpt_5_plans .rpt_sm_button .rpt_plan .rpt_foot{font-size:16px}.rpt_plans .rpt_plan .rpt_foot:hover{opacity:.8}.rpt_style_swl .rpt_plan .rpt_foot:hover{opacity:1}.rpt_plans .rpt_recommended_plan .rpt_foot{font-size:30px;padding:16px 0}.rpt_plans .rpt_sm_button .rpt_recommended_plan .rpt_foot{font-size:26px}.rpt_4_plans .rpt_recommended_plan .rpt_foot{font-size:22px;font-weight:300;padding:10px 0}.rpt_4_plans .rpt_sm_button .rpt_recommended_plan .rpt_foot{font-size:19px;padding:10px 0}.rpt_5_plans .rpt_recommended_plan .rpt_foot{font-size:20px;font-weight:300;padding:10px 0}.rpt_5_plans .rpt_sm_button .rpt_recommended_plan .rpt_foot{font-size:18px;padding:10px 0}.rpt_custom_btn{border-bottom-left-radius:5px;border-bottom-right-radius:5px;text-align:center;padding:16px 20px}.rpt_plans .rpt_recommended_plan{position:relative;top:-10px}.rpt_recommended_plan img.rpt_recommended{position:absolute!important;right:10px!important}.rpt_style_bic .rpt_recommended_plan,.rpt_style_loc .rpt_recommended_plan{-webkit-box-shadow:1px 1px 6px 0 rgba(50,50,50,.39);-moz-box-shadow:1px 1px 6px 0 rgba(50,50,50,.39);box-shadow:1px 1px 6px 0 rgba(50,50,50,.39)}a.rpt_tooltip{display:block;outline:0;position:relative}a.rpt_tooltip strong{line-height:30px}a.rpt_tooltip>span.intool{width:90%;padding:10px;margin-top:56px;opacity:0;visibility:hidden;z-index:10;position:absolute;top:-15px;display:block;color:#f5f5f5;font-size:13px;line-height:20px;background:#333;font-weight:300;text-align:center}a.rpt_tooltip:hover{cursor:zoom-in}a.rpt_tooltip .rpt_tooltip_plus{text-decoration:none!important;display:inline;font-size:12px;font-weight:700;position:relative;top:-6px;color:#50f!important}.rpt_feature:hover a.rpt_tooltip>span.intool{opacity:.98;text-decoration:none;visibility:visible;overflow:visible}a.rpt_tooltip span.intool b{width:10px;height:10px;margin-left:35%;margin-top:-15px;position:absolute;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-o-transform:rotate(-45deg);transform:rotate(-45deg);display:none \0/;background:#333}.rpt_3_plans a.rpt_tooltip>span.intool{margin-left:-1%}.rpt_4_plans a.rpt_tooltip>span.intool{margin-left:0}.rpt_5_plans a.rpt_tooltip>span.intool{margin-left:-2%}.entry-content .rpt_plan a,.rpt_plan a{border-bottom:none!important;color:#333;text-decoration:none}.entry-content .rpt_plan a .rpt_tooltip_plus{color:#50f!important}.rpt_plans .rpt_plan .rpt_icon{max-width:30px;max-height:30px}.upgrade-block{background-color:#fff;border-radius:9px;padding:15px 0;font-family:Rubik,sans-serif;max-width:1024px;margin:0 auto}.upgrade-wrap{margin:15px auto;max-width:1024px;font-family:Rubik,sans-serif}.rpt_plans .rpt_plan img{display:inline;margin:0 10px 0 0;padding:0;-webkit-box-shadow:0 0 0 0 transparent;-moz-box-shadow:0 0 0 0 transparent;box-shadow:0 0 0 0 transparent;border:none}.upgrade-block .easy-modal-inner{margin:0 auto;direction:ltr!important;padding:0 30px;max-width:1024px}p.udner-title strong{font-size:40px;padding-bottom:30px;display:block;color:#b97fcf;text-align:center}.rpt-foot{background:#9679d3}.upgrade-block .money-guaranteed{color:#b97fcf;font-size:16px;line-height:18px;margin:10px 0}.upgrade-block .money-guaranteed span.dashicons.dashicons-yes{background:#00bd00;color:#fff;border-radius:50%;-webkit-border-radius:50%;-moz-border-radius:50%;display:inline-block;margin-right:5px;vertical-align:middle}.text-center{text-align:center}.easy-modal__bottom{padding:10px 10px 0;text-align:left;color:#828282;position:relative;margin:15px 0 0 0}.easy-modal__bottom:before{content:'';display:block;position:absolute;left:0;top:0;width:100%;background:rgba(130,130,130,.1);height:2px}.upgrade-block .user-photo{float:left;margin-right:5px}.easy-modal__bottom .easy-modal__bottom-p{text-align:left;font-weight:300;position:relative;margin-bottom:10px;font-size:14px;line-height:17px;padding:10px 0 0 0}.easy-modal__bottom .easy-modal__bottom-p p{text-align:left;margin:6px 0 0;line-height:15px}.easy-modal__bottom .quote{position:absolute;left:65px;top:-4px}.easy-modal__bottom .easy-modal__bottom-p p{text-align:left;margin:6px 0 0;line-height:15px}.upgrade-block .user-name{font-weight:700;color:#828282;margin:0;text-align:left;font-size:13px}.upgrade-block .user-role{margin:0;font-size:13px}div#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%)}.folder-testimonial-list{width:100%;max-width:1080px;margin:30px auto}.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}.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}.payments{margin:20px 0 0 0}@media only screen and (max-width:640px){.rpt_plans .rpt_plan{width:96%;margin:10px 2% 20px!important}.rpt_plans .rpt_plan .rpt_title{position:relative;font-size:26px!important;line-height:35px!important}.rpt_plans .rpt_plan .rpt_head .rpt_price{font-size:74px!important;line-height:100px!important}.rpt_plans .rpt_plan .rpt_head .rpt_subtitle{font-size:17px!important;line-height:28px!important;padding:10px 40px 20px}.rpt_plans .rpt_plan .rpt_head .rpt_description{font-size:15px!important;line-height:26px!important;padding:0 40px 30px}.rpt_plans .rpt_plan .rpt_features .rpt_feature{padding:6px 16px;font-size:14px!important}.rpt_plans .rpt_plan .rpt_foot{padding:10px 40px;text-align:center;color:#fff;font-size:20px}.rpt_plans .rpt_recommended_plan .rpt_foot{font-size:30px;font-weight:300;padding:20px 0}.rpt_plan .rpt_head .rpt_price .rpt_currency{top:-36px!important;left:-10px!important;font-size:35px!important}}#rpt_pricr .rpt_plan_ori .rpt_features .rpt_feature,#rpt_pricr .rpt_plan_ori .rpt_features .rpt_feature a,#rpt_pricr .rpt_plan_ori .rpt_foot,#rpt_pricr .rpt_plan_ori .rpt_head .rpt_description,#rpt_pricr .rpt_plan_ori .rpt_head .rpt_price,#rpt_pricr .rpt_plan_ori .rpt_head .rpt_price .rpt_currency,#rpt_pricr .rpt_plan_ori .rpt_head .rpt_recurrence,#rpt_pricr .rpt_plan_ori .rpt_head .rpt_subtitle,#rpt_pricr .rpt_plan_ori .rpt_title{font-family:'Helvetica Neue',Helvetica,Arial,sans-serif!important;font-weight:300!important}.select2-container{width:100%!important}.select2-results__options li{text-align:center}
1
+ @import url(https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap);*,:after,:before{box-sizing:border-box}#wpwrap{background:#6572db;background:-moz-linear-gradient(-45deg,#6572db 0,#ee86c6 67%,#ee86c6 100%);background:-webkit-gradient(left top,right bottom,color-stop(0,#6572db),color-stop(67%,#ee86c6),color-stop(100%,#ee86c6));background:-webkit-linear-gradient(-45deg,#6572db 0,#ee86c6 67%,#ee86c6 100%);background:-o-linear-gradient(-45deg,#6572db 0,#ee86c6 67%,#ee86c6 100%);background:-ms-linear-gradient(-45deg,#6572db 0,#ee86c6 67%,#ee86c6 100%);background:linear-gradient(135deg,#6572db 0,#ee86c6 67%,#ee86c6 100%)}.pricing-table{margin:0 0 45px;color:#28375a;font-size:16px;line-height:25px;font-family:Lato,sans-serif}.price-title{font-weight:700;font-size:24px;line-height:30px;color:#28375a;text-align:center}.price-table{background:#fff;box-sizing:border-box;border-radius:10px}.price-table-top{padding:20px;position:relative;border-radius:10px}.price-table.basic-feature{box-shadow:0 12px 44px rgba(108,203,255,.2);border:2px solid #b9eafd}.price-table.basic-feature .price-table-top{background:url(../images/basic-price-bg.png) no-repeat left top}.price-table.plus-feature{border:2px solid #f9d9bd;box-shadow:0 12px 44px rgba(239,140,106,.2)}.price-table.plus-feature .price-table-top{background:url(../images/plus-price.png) no-repeat left top}.price-table.agency-feature{border:2px solid #cfd3fb;box-shadow:0 12px 44px rgba(96,93,236,.2)}.price-table.agency-feature .price-table-top{background:url(../images/agency-price.png) no-repeat left top}.price-tables{margin:30px 0 50px}.plan-name{font-size:30px;line-height:36px;font-weight:700;color:#28375a}.plan-price{position:absolute;right:18px;top:8px;font-weight:700;font-size:60px;line-height:72px;color:#42b9fa}.price-table.plus-feature .plan-price{color:#ef8c6a}.price-table.agency-feature .plan-price{color:#605dec}.price-table.agency-feature .plan-name{color:#fff}.price-head{line-height:72px;padding:5px 0 25px 0}.price-offer,.price-websites{line-height:18px;font-size:15px}.cus-tooltip{cursor:pointer;display:inline-block;position:relative}.cus-tooltip .tooltip__content{background-color:#1849ab;border-radius:4px;bottom:150%;color:#fff;left:0;margin-left:15px;opacity:0;padding:5px 10px;position:absolute;transition:opacity .25s;visibility:hidden;width:auto;z-index:1;text-align:left;margin-right:15px;font-size:14px;line-height:20px}.cus-tooltip .tooltip__content::after{border-width:5px;border-style:solid;border-color:#1849ab transparent transparent transparent;content:"";left:25px;margin-left:-5px;position:absolute;top:100%}.cus-tooltip:hover .tooltip__content{opacity:1;visibility:visible}.price-table-middle ul{list-style:none;margin:0;padding:0}.price-table-middle ul li{display:block;width:100%;border-bottom:solid 1px #e9e9e9;padding:15px 0;margin:0}.price-table-middle ul li a{padding:0 15px;color:#28375a;font-size:16px;line-height:19px;display:block;text-decoration:none}span.has-tooltip{color:#605dec}.price-table-bottom{padding:15px}.custom-dd-btn{background:#fff;border:1px solid #e9e9e9;border-radius:6px;height:40px;line-height:40px;width:100%;text-align:left;padding:0 15px}.custom-dd{margin-bottom:15px}.price-table-bottom a{background:#fff;border:1px solid #42b9fa;color:#42b9fa;border-radius:20px;height:40px;line-height:38px;padding:0 15px;display:block;text-align:center;transition:all .25s linear}.price-table-bottom a:hover{color:#fff;background:#42b9fa}.price-table.plus-feature .price-table-bottom a{background:#ef8c6a;border:1px solid #ef8c6a;color:#fff}.price-table.plus-feature .price-table-bottom a:hover{background:#fff;color:#ef8c6a}.price-table.agency-feature .price-table-bottom a{background:#fff;border:1px solid #605dec;color:#605dec}.price-table.agency-feature .price-table-bottom a:hover{background:#605dec;color:#fff}.container{max-width:1180px;width:100%;padding:30px;background:#fff;border-radius:15px;margin:50px auto}.row{margin-right:-15px;margin-left:-15px}.col-md-4{padding-right:15px;padding-left:15px;width:33.33333333%;float:left}.select2-container--default .select2-selection--single{background:#fff;border:1px solid #e9e9e9;border-radius:6px;height:40px;line-height:40px;width:100%;text-align:left;padding:0 15px;outline:0}span.select2.select2-container{width:100%!important}.website-package{padding:0 15px;line-height:18px}.website-package .select2-container--default .select2-selection--single .select2-selection__rendered{height:auto;line-height:19px;padding:0}.website-package .select2-container--default .select2-selection--single{padding:0;border:none;height:auto;line-height:19px;margin:0}.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:12px;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}
assets/css/design.css CHANGED
@@ -1,5 +1,9 @@
1
  .wcp-custom-menu {
2
- padding-left: 0
 
 
 
 
3
  }
4
  .wcp-custom-menu {
5
  position: relative
@@ -29,7 +33,8 @@
29
  height: 18px;
30
  text-indent: 0;
31
  font-size: 20px;
32
- background: no-repeat
 
33
  }
34
  .wcp-container .route .title {
35
  position: absolute;
@@ -38,15 +43,16 @@
38
  padding: 0;
39
  height: 30px;
40
  width: 200px;
41
- text-indent: 30px;
42
  background: 0 0;
43
  box-shadow: none;
44
- font-size: 14px;
45
  line-height: 26px;
46
  border-radius: 4px;
47
  -webkit-border-radius: 4px;
48
  -moz-border-radius: 4px;
49
- overflow: hidden
 
50
  }
51
  .wcp-container .first-title {
52
  margin-left: 10px
@@ -63,8 +69,9 @@
63
  z-index: 1
64
  }
65
  .wcp-container .first-space {
66
- margin-left: 10px;
67
- top: 10px
 
68
  }
69
  i.fa-caret-right {
70
  transition: .1s;
@@ -87,7 +94,8 @@ li.active > span > i.fa-folder:before {
87
  }
88
  .nav-icon {
89
  display: none;
90
- left: -20px !important
 
91
  }
92
  .has-sub-tree > .nav-icon {
93
  display: block
@@ -97,13 +105,13 @@ li.active > span > i.fa-folder:before {
97
  top: 32px;
98
  left: 160px;
99
  bottom: 0;
100
- width: 315px;
101
  box-sizing: border-box;
102
  z-index: 1;
103
  direction: ltr;
104
  transition: all .15s linear;
105
  -webkit-transition: all .15s linear;
106
- -moz-transition: all .15s linear
107
  }
108
  html[dir=rtl] .wcp-content {
109
  left: auto;
@@ -237,25 +245,32 @@ button#wcp-save-folder {
237
  .wcp-parent.active > i.fa-folder:before {
238
  content: "\f07c"
239
  }
240
- .wcp-container .route .title img {
 
 
 
 
 
 
 
241
  display: none;
242
- width: 14px;
243
- height: 14px;
244
- margin: 5px auto 0
245
  }
246
- .wcp-container .route .title:hover {
247
- background: #dfdfdf;
248
  cursor: pointer
249
  }
250
- .wcp-container .route .title.wcp-drop-hover .ui-icon img.folder-sticky-icon {
251
 
252
  }
253
- body:not(.no-hover-css) .wcp-container .route .title:hover img.move-folder-icon, .wcp-container .route .title.wcp-drop-hover img.move-folder-icon {
254
- display: block
255
  }
256
- body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon i, body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon img.folder-sticky-icon, .wcp-container .route .title.wcp-drop-hover .ui-icon i, .wcp-container .route .title.wcp-drop-hover .ui-icon img.folder-sticky-icon {
257
  display: none
258
  }
 
 
 
259
  .route.is-sticky > h3.title > .ui-icon > .folder-sticky-icon {
260
  display: block;
261
  width: 100%;
@@ -273,20 +288,26 @@ body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon i, body:not(
273
  filter: invert(100%);
274
  -webkit-filter: invert(100%);
275
  }
 
 
 
 
 
 
 
 
 
 
276
  .add-new-folder {
277
  text-decoration: none;
278
- display: block;
279
- float: right;
280
  font-size: 14px;
281
- padding: 4px 10px;
282
  background: #f51366;
283
  color: #fff;
284
  border: solid 1px #f51366;
285
- border-radius: 3px;
286
  line-height: 24px;
287
- -webkit-box-shadow: 0 3px 5px -3px #333;
288
- -moz-box-shadow: 0 3px 5px -3px #333;
289
- box-shadow: 0 3px 5px -3px #333;
290
  position: relative
291
  }
292
  .add-new-folder:focus, .add-new-folder:hover {
@@ -304,7 +325,7 @@ body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon i, body:not(
304
  .add-new-folder span {
305
  display: block;
306
  float: left;
307
- line-height: 20px;
308
  font-size: 14px;
309
  margin-right: 5px
310
  }
@@ -313,8 +334,15 @@ body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon i, body:not(
313
  }
314
  .form-options {
315
  background: #fff;
316
- padding: 10px 0 0 10px;
317
- margin: 0 0
 
 
 
 
 
 
 
318
  }
319
  .form-options ul {
320
  margin: 0;
@@ -333,32 +361,37 @@ body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon i, body:not(
333
  text-decoration: none;
334
  padding: 5px 5px;
335
  color: #000;
336
- background: #ccc;
337
- box-shadow: 0 1px 0 #ccc;
338
  vertical-align: middle;
339
- border: solid 1px #ccc;
340
- border-radius: 3px;
341
- margin: 0 0 12px 0
342
  }
343
  .form-options > ul > li.last > a {
344
  padding: 3px
345
  }
346
- .form-options > ul > li.last > a span.icon {
347
- font-size: 28px;
348
- line-height: 22px
349
- }
350
- a#expand-collapse-list.all-open span:before {
351
- content: "\e911"
352
  }
353
  .form-options > ul > li > a:hover {
354
  background: #404040;
355
  color: #fff;
356
- border: solid 1px #404040
 
 
 
 
 
 
 
 
 
357
  }
358
  .form-options span.icon {
359
- font-size: 18px;
360
  display: inline-block;
361
- vertical-align: top
 
362
  }
363
  .un-categorised-items {
364
  border-radius: 3px
@@ -366,15 +399,15 @@ a#expand-collapse-list.all-open span:before {
366
  .header-posts a, .un-categorised-items a {
367
  color: #444;
368
  padding: 7px;
369
- border-radius: 3px;
370
  display: block;
371
  text-decoration: none;
372
  font-size: 14px;
 
373
  line-height: 18px
374
  }
375
  .header-posts a:hover, .un-categorised-items.active-item, .un-categorised-items:hover {
376
- background: #dfdfdf;
377
- border-radius: 3px
378
  }
379
  .header-posts a.active-item, .un-categorised-items.active-item {
380
  background: #008ec2 !important;
@@ -384,16 +417,12 @@ a#expand-collapse-list.all-open span:before {
384
  color: #fff !important
385
  }
386
  .header-posts a.active-item span.total-count, .un-categorised-items.active-item a span {
387
- color: #444 !important
388
  }
389
  span.total-count {
390
  float: right;
391
- background: #fff;
392
- padding: 0 5px;
393
- border: solid 1px #ccc;
394
- font-size: 10px;
395
  line-height: 16px;
396
- border-radius: 2px
397
  }
398
  .wcp-icon {
399
  display: inline-block;
@@ -402,9 +431,22 @@ span.total-count {
402
  margin-right: 3px
403
  }
404
  #custom-menu .wcp-icon {
405
- font-size: 20px;
406
  line-height: 24px
407
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
408
  .route.active > .nav-icon > .folder-icon-arrow_right {
409
  transform: rotate(90deg);
410
  -webkit-transform: rotate(90deg);
@@ -415,17 +457,19 @@ span.total-count {
415
  }
416
  .wcp-container .route span.total-count {
417
  position: relative;
418
- font-size: 8px;
419
  float: right;
420
  text-align: center;
421
  width: auto;
422
- background: #fff;
423
  display: block;
424
- margin: 4px 3px 3px 3px;
425
  color: #23282d !important;
426
  line-height: 16px;
427
  height: 16px
428
  }
 
 
 
429
  .dynamic-menu {
430
  position: absolute;
431
  left: 50px;
@@ -460,9 +504,18 @@ span.total-count {
460
  .dynamic-menu ul > li > a > span, .dynamic-menu ul > li > a > span span {
461
  position: relative !important;
462
  display: inline-block;
463
- vertical-align: top;
464
  margin-right: 5px;
465
- top: 0 !important;
 
 
 
 
 
 
 
 
 
466
  }
467
  .dynamic-menu ul > li > a > span span {
468
  top: auto;
@@ -569,18 +622,18 @@ td.wcp_move.column-wcp_move {
569
  opacity: 1
570
  }
571
  .wcp-drop-hover {
572
- background: #0073aa !important;
573
  z-index: 2 !important;
574
  color: #fff !important
575
  }
576
- .wcp-drop-hover span {
577
  color: #fff !important
578
  }
579
  .ui-draggable-dragging {
580
  z-index: 1051 !important
581
  }
582
  .wcp-hover-list {
583
- background: #008ec2 !important;
584
  color: #fff;
585
  position: relative
586
  }
@@ -602,21 +655,6 @@ span.wcp-item {
602
  border: solid 1px #fff;
603
  position: relative
604
  }
605
- .tree-structure .folder-view {
606
- display: block;
607
- border: 1px solid #dadce0;
608
- color: #404040;
609
- border-radius: 4px;
610
- -moz-border-radius: 4px;
611
- -webkit-border-radius: 4px;
612
- position: relative;
613
- cursor: pointer;
614
- background: #fff
615
- }
616
- .tree-structure .folder-view:hover {
617
- background: #008ec2;
618
- color: #fff
619
- }
620
  .wcp-drop-hover-list a.folder-view:before {
621
  width: 100%;
622
  height: 100%;
@@ -637,7 +675,6 @@ span.wcp-item {
637
  padding: 5px 10px;
638
  border-radius: 5px;
639
  background: #e4f6ff;
640
- z-index: 2001;
641
  position: fixed !important;
642
  max-width: 230px;
643
  overflow: hidden;
@@ -660,9 +697,10 @@ span.wcp-item {
660
  font-size: 16px;
661
  line-height: 30px;
662
  height: 30px;
663
- width: calc(100% - 80px);
664
  overflow: hidden;
665
- white-space: nowrap
 
666
  }
667
  .ui-resizable-handle.ui-resizable-e {
668
  position: absolute;
@@ -676,12 +714,12 @@ span.wcp-item {
676
  }
677
  .ui-resizable-handle.ui-resizable-e:before, .ui-resizable-handle.ui-resizable-w:before {
678
  content: "";
679
- top: 68px;
680
  width: 3px;
681
- height: 53px;
682
  position: absolute;
683
- border-left: solid 1px #ccc;
684
- border-right: solid 1px #ccc;
685
  left: -1px
686
  }
687
  .ui-resizable-handle.ui-resizable-w {
@@ -695,34 +733,33 @@ span.wcp-item {
695
  cursor: col-resize
696
  }
697
  div#custom-menu {
698
- padding-bottom: 150px;
699
- padding-left: 4px
 
700
  }
701
  .wcp-container .route span.star-icon, .sticky-folders li a span.star-icon {
702
  position: relative;
703
  top: 2px;
704
  left: auto;
705
  float: right;
706
- font-family: folder-icon !important;
707
  speak: none;
708
  color: #ffc90e;
709
  display: none;
710
- font-size: 20px;
711
- font-weight: bold;
712
  }
713
  .wcp-container .route span.update-inline-record, .sticky-folders li a span.update-inline-record {
714
  position: relative;
715
  left: auto;
716
- top: 2px;
717
  float: right;
718
  width: 0;
719
- height: 22px;
720
- font-family: folder-icon !important;
721
  font-size: 16px;
722
  overflow: hidden;
723
  transition: all .25s linear;
724
  -webkit-transition: all .25s linear;
725
- -moz-transition: all .25s linear
 
726
  }
727
  body:not(.no-hover-css) .wcp-container .route h3:hover > span.update-inline-record, body:not(.no-hover-css) .sticky-folders li a:hover span.update-inline-record {
728
  width: 18px
@@ -730,15 +767,9 @@ body:not(.no-hover-css) .wcp-container .route h3:hover > span.update-inline-reco
730
  .sticky-folders li a:hover .folder-count {
731
  margin: 0px 3px 0px 0px;
732
  }
733
- .wcp-container .route span.update-inline-record:after, .sticky-folders li a span.update-inline-record:after {
734
- content: "\e910"
735
- }
736
  .wcp-container .route.is-high > h3 > span.star-icon, .sticky-folders li.is-high a span.star-icon {
737
  display: block;
738
  }
739
- .wcp-container .route span.star-icon:after, .sticky-folders li a span.star-icon:after {
740
- content: "\e907"
741
- }
742
  .tree-structure li {
743
  display: block;
744
  width: auto;
@@ -747,36 +778,39 @@ body:not(.no-hover-css) .wcp-container .route h3:hover > span.update-inline-reco
747
  padding: 0
748
  }
749
  .tree-structure .folder-item {
750
- padding: 8px;
751
  position: relative
752
  }
753
  .tree-structure .folder-view {
754
  display: block;
755
- border: 1px solid #dadce0;
756
  color: #404040;
757
  border-radius: 4px;
758
  -moz-border-radius: 4px;
759
  -webkit-border-radius: 4px;
760
  position: relative;
761
  cursor: pointer;
762
- background: #fff
 
 
763
  }
764
  .tree-structure .folder-view span.item-name {
765
  display: block;
766
- padding: 10px 25px 10px 50px;
767
  position: relative;
768
  width: 100%;
769
  overflow: hidden;
770
- height: 38px;
771
- font-size: 16px;
772
- box-sizing: border-box
773
  }
774
  .folder-view span.item-name:before {
775
- content: "\e90d";
776
- font-family: folder-icon !important;
777
  position: absolute;
778
- left: 15px;
779
- font-size: 24px
 
780
  }
781
  .folder-view.is-high span.item-name:before {
782
  content: "\e900"
@@ -812,9 +846,7 @@ body:not(.no-hover-css) .wcp-container .route h3:hover > span.update-inline-reco
812
  margin-right: -8px
813
  }
814
  .tree-structure .folder-view span.folder-title {
815
- overflow: hidden;
816
  width: 100%;
817
- height: 18px;
818
  display: block
819
  }
820
  .swal2-popup .swal2-title {
@@ -864,10 +896,10 @@ body.upload-php.eml-grid #wpbody {
864
  display: none
865
  }
866
  span.upgrade-message {
867
- padding: 0 0 10px;
868
  background: #fff;
869
  display: inline-block;
870
- font-size: 14px;
871
  color: #000
872
  }
873
  span.upgrade-message a.pink, span.upgrade-message span.pink {
@@ -996,7 +1028,7 @@ button.button.organize-button:hover:after {
996
  padding: 0
997
  }
998
  .tree-structure-content {
999
- padding: 10px 20px 10px;
1000
  background: #fff;
1001
  margin: 10px 0 15px;
1002
  border-radius: 4px;
@@ -1005,7 +1037,7 @@ button.button.organize-button:hover:after {
1005
  border: solid 1px #ccc
1006
  }
1007
  .tree-structure-content .tree-structure {
1008
- height: 55px;
1009
  overflow: hidden;
1010
  transition: .1s;
1011
  -webkit-transition: .1s;
@@ -1082,24 +1114,31 @@ span.media-info-message.active {
1082
  -o-transform: translate(0, -50%);
1083
  -ms-transform: translate(0, -50%);
1084
  padding: 20px;
1085
- -webkit-border-radius: 10px;
1086
- -moz-border-radius: 10px;
1087
- border-radius: 10px
 
1088
  }
1089
  .folder-form-buttons a, .folder-form-buttons button {
1090
- display: inline-block;
1091
- padding: 10px 20px;
1092
  text-decoration: none;
1093
  margin: 10px 3px;
1094
- font-size: 18px;
1095
- line-height: 22px;
1096
- border-radius: .25em;
1097
- color: #fff;
1098
- border: none
 
 
 
 
 
1099
  }
1100
  .folder-form-buttons a span, .folder-form-buttons button span {
1101
  -webkit-animation: fa-spin .75s infinite linear;
1102
- animation: fa-spin .75s infinite linear
 
1103
  }
1104
  [data-tooltip] {
1105
  position: relative
@@ -1151,9 +1190,6 @@ span.media-info-message.active {
1151
  left: 50%;
1152
  transform: translate(-50%, -.5em)
1153
  }
1154
- #remove-folder-item {
1155
- width: 126px !important
1156
- }
1157
  .wp-core-ui .button-primary.select-all-item-btn {
1158
  margin: 11px 11px 11px 0;
1159
  display: none !important
@@ -1162,7 +1198,7 @@ span.media-info-message.active {
1162
  display: inline-block !important
1163
  }
1164
  .form-options > ul > li.last.folder-checkbox {
1165
- padding: 8px 0 0 6px
1166
  }
1167
  #custom-menu input.checkbox {
1168
  display: none
@@ -1181,20 +1217,25 @@ span.media-info-message.active {
1181
  } 100% {
1182
  -webkit-transform: rotate(359deg);
1183
  transform: rotate(359deg)
1184
- }}
 
1185
  .folder-form-buttons a:focus, .folder-form-buttons a:hover, .folder-form-buttons button:focus, .folder-form-buttons button:hover {
1186
  color: #fff;
1187
- background-image: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1))
1188
  }
1189
  .folder-form-buttons a:focus {
1190
  outline: 0;
1191
- box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(50, 100, 150, .4)
1192
  }
1193
- .form-cancel-btn {
1194
- background-color: #aaa
 
 
1195
  }
1196
  .form-submit-btn {
1197
- background-color: #3085d6
 
 
1198
  }
1199
  .add-update-folder-title {
1200
  display: block;
@@ -1203,29 +1244,18 @@ span.media-info-message.active {
1203
  margin: 0 0 .4em;
1204
  padding: 0;
1205
  color: #595959;
1206
- font-size: 1.875em;
1207
- font-weight: 600;
1208
  text-align: center;
1209
  text-transform: none;
1210
  word-wrap: break-word;
1211
- line-height: 30px
1212
- }
1213
- .folder-form-input input {
1214
- width: 100%;
1215
- transition: border-color .3s, box-shadow .3s;
1216
- border: 1px solid #d9d9d9;
1217
- border-radius: .1875em;
1218
- font-size: 1.125em;
1219
- box-shadow: inset 0 1px 1px rgba(0, 0, 0, .06);
1220
- box-sizing: border-box;
1221
- height: 2.625em;
1222
- padding: 0 .75em;
1223
- margin: 1em auto
1224
  }
1225
  .folder-form-message {
1226
- font-size: 16px;
1227
- line-height: 20px;
1228
- margin: 25px 0
 
1229
  }
1230
  .folder-form-errors {
1231
  margin: 0 0 10px 0;
@@ -1241,10 +1271,10 @@ span.media-info-message.active {
1241
  position: relative !important
1242
  }
1243
  span.folder-loader-ajax {
1244
- float: right;
1245
- margin: 0 8px 0 0;
1246
  line-height: 30px;
1247
- display: none
 
1248
  }
1249
  .folder-loader-ajax.active {
1250
  display: inline-block
@@ -1316,7 +1346,8 @@ span.folder-loader-ajax {
1316
  opacity: 0
1317
  } 100% {
1318
  opacity: 1
1319
- }}
 
1320
  #successAnimationCircle {
1321
  stroke-dasharray: 151px 151px;
1322
  stroke: #2ce0a7
@@ -1330,7 +1361,7 @@ span.folder-loader-ajax {
1330
  opacity: 0
1331
  }
1332
  svg#successAnimation {
1333
- width: 34px;
1334
  height: 34px;
1335
  padding: 0;
1336
  display: none;
@@ -1441,9 +1472,6 @@ select#media-attachment-taxonomy-filter {
1441
  } 100% {
1442
  background-position: 50px 50px
1443
  }}
1444
- .orange-bg > span {
1445
- background-color: #ff5983
1446
- }
1447
  .media-folder-loader {
1448
  padding: 10px 0 15px;
1449
  display: none
@@ -1458,9 +1486,15 @@ select#media-attachment-taxonomy-filter {
1458
  border-bottom: solid 1px #ccc;
1459
  }
1460
  .top-settings {
1461
- padding: 0 0 5px;
1462
- margin: 0 0 5px;
1463
- border-bottom: solid 1px #ccc;
 
 
 
 
 
 
1464
  }
1465
  .sticky-folders.active {
1466
  display: block;
@@ -1547,9 +1581,8 @@ span.folder-count:empty {
1547
  -webkit-filter: invert(0%);
1548
  }
1549
  .form-options > ul > li.last > a.sort-folder-order {
1550
- width: 32px;
1551
- height: 30px;
1552
- padding: 7px;
1553
  text-align: center;
1554
  display: inline-block;
1555
  box-sizing: border-box;
@@ -1582,7 +1615,6 @@ span.folder-count:empty {
1582
  .folder-order.active .sort-folder-order {
1583
  background: #404040;
1584
  color: #fff;
1585
- border: solid 1px #404040;
1586
  }
1587
  .folder-order.active .sort-folder-order svg {
1588
  fill: #fff;
@@ -1609,6 +1641,144 @@ span.folder-count:empty {
1609
  .dynamic-menu.bottom-fix {
1610
  bottom: 0;
1611
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1612
  @media screen and (max-width: 960px) {
1613
  .wcp-content {
1614
  left: 36px
@@ -1655,3 +1825,4 @@ span.folder-count:empty {
1655
  padding-bottom: 30px
1656
  }
1657
  }
 
1
  .wcp-custom-menu {
2
+ padding-left: 0;
3
+ }
4
+ .wcp-custom-menu a, .wcp-custom-menu a:focus {
5
+ outline: none;
6
+ box-shadow: none;
7
  }
8
  .wcp-custom-menu {
9
  position: relative
33
  height: 18px;
34
  text-indent: 0;
35
  font-size: 20px;
36
+ background: no-repeat;
37
+ text-align: center;
38
  }
39
  .wcp-container .route .title {
40
  position: absolute;
43
  padding: 0;
44
  height: 30px;
45
  width: 200px;
46
+ text-indent: 28px;
47
  background: 0 0;
48
  box-shadow: none;
49
+ font-size: 13px;
50
  line-height: 26px;
51
  border-radius: 4px;
52
  -webkit-border-radius: 4px;
53
  -moz-border-radius: 4px;
54
+ overflow: hidden;
55
+ font-weight: normal;
56
  }
57
  .wcp-container .first-title {
58
  margin-left: 10px
69
  z-index: 1
70
  }
71
  .wcp-container .first-space {
72
+ margin-left: 0px;
73
+ top: 0px;
74
+ padding: 0;
75
  }
76
  i.fa-caret-right {
77
  transition: .1s;
94
  }
95
  .nav-icon {
96
  display: none;
97
+ left: -10px !important;
98
+ cursor: pointer;
99
  }
100
  .has-sub-tree > .nav-icon {
101
  display: block
105
  top: 32px;
106
  left: 160px;
107
  bottom: 0;
108
+ width: 280px;
109
  box-sizing: border-box;
110
  z-index: 1;
111
  direction: ltr;
112
  transition: all .15s linear;
113
  -webkit-transition: all .15s linear;
114
+ -moz-transition: all .15s linear;
115
  }
116
  html[dir=rtl] .wcp-content {
117
  left: auto;
245
  .wcp-parent.active > i.fa-folder:before {
246
  content: "\f07c"
247
  }
248
+ .wcp-container .route .title .move-folder-icon, .wcp-container .route .title .folder-sticky-icon {
249
+ float: right;
250
+ position: relative;
251
+ top: 0;
252
+ left: auto;
253
+ width: 20px;
254
+ height: 30px;
255
+ line-height: 26px;
256
  display: none;
 
 
 
257
  }
258
+ body:not(.no-hover-css) .wcp-container .route .title:hover {
259
+ background: rgba(250, 22, 107, 0.08);
260
  cursor: pointer
261
  }
262
+ .wcp-container .route .title.wcp-drop-hover .ui-icon .folder-sticky-icon {
263
 
264
  }
265
+ body:not(.no-hover-css) .wcp-container .route .title:hover > .star-icon, body:not(.no-hover-css) .wcp-container .route .title:hover > .folder-sticky-icon {
266
+ display: none !important;
267
  }
268
+ body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon .folder-sticky-icon, body:not(.no-hover-css) .wcp-container .route .title.wcp-drop-hover .ui-icon .folder-sticky-icon {
269
  display: none
270
  }
271
+ body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon .pfolder-folder-close:before, body:not(.no-hover-css) .wcp-container .route .title.wcp-drop-hover .ui-icon .pfolder-folder-close:before {
272
+ content: "\e901" !important;
273
+ }
274
  .route.is-sticky > h3.title > .ui-icon > .folder-sticky-icon {
275
  display: block;
276
  width: 100%;
288
  filter: invert(100%);
289
  -webkit-filter: invert(100%);
290
  }
291
+ .plugin-button {
292
+ float: right;
293
+ }
294
+ .plugin-button.d-block {
295
+ float: none;
296
+ }
297
+ .plugin-title {
298
+ display: inline-block;
299
+ vertical-align: middle;
300
+ }
301
  .add-new-folder {
302
  text-decoration: none;
303
+ display: inline-block;
 
304
  font-size: 14px;
305
+ padding: 4px 10px 4px 4px;
306
  background: #f51366;
307
  color: #fff;
308
  border: solid 1px #f51366;
309
+ border-radius: 4px;
310
  line-height: 24px;
 
 
 
311
  position: relative
312
  }
313
  .add-new-folder:focus, .add-new-folder:hover {
325
  .add-new-folder span {
326
  display: block;
327
  float: left;
328
+ line-height: 24px;
329
  font-size: 14px;
330
  margin-right: 5px
331
  }
334
  }
335
  .form-options {
336
  background: #fff;
337
+ padding: 5px;
338
+ margin: 0 0;
339
+ border-radius: 4px;
340
+ box-shadow: 0px 4px 21px rgba(7, 16, 28, 0.1);
341
+ }
342
+ .form-options .form-options {
343
+ padding: 0;
344
+ background: transparent;
345
+ box-shadow: none;
346
  }
347
  .form-options ul {
348
  margin: 0;
361
  text-decoration: none;
362
  padding: 5px 5px;
363
  color: #000;
 
 
364
  vertical-align: middle;
365
+ margin: 0 0 5px 0;
366
+ background: #F1F1F1;
367
+ border-radius: 4px;
368
  }
369
  .form-options > ul > li.last > a {
370
  padding: 3px
371
  }
372
+ a#expand-collapse-list.all-open span {
373
+ -webkit-transform: rotate(180deg);
374
+ transform: rotate(180deg);
 
 
 
375
  }
376
  .form-options > ul > li > a:hover {
377
  background: #404040;
378
  color: #fff;
379
+ }
380
+ .form-options > ul > li > a:hover span.icon {
381
+ color: #ffffff
382
+ }
383
+ .form-options > ul > li > a.expand-collapse {
384
+ width: 14px;
385
+ text-align: center;
386
+ }
387
+ .form-options a.expand-collapse span.icon {
388
+ font-size: 10px;
389
  }
390
  .form-options span.icon {
391
+ font-size: 12px;
392
  display: inline-block;
393
+ vertical-align: baseline;
394
+ color: #A4C0D2;
395
  }
396
  .un-categorised-items {
397
  border-radius: 3px
399
  .header-posts a, .un-categorised-items a {
400
  color: #444;
401
  padding: 7px;
 
402
  display: block;
403
  text-decoration: none;
404
  font-size: 14px;
405
+ border-radius: 4px;
406
  line-height: 18px
407
  }
408
  .header-posts a:hover, .un-categorised-items.active-item, .un-categorised-items:hover {
409
+ background: rgba(250, 22, 107, 0.08);
410
+ border-radius: 4px;
411
  }
412
  .header-posts a.active-item, .un-categorised-items.active-item {
413
  background: #008ec2 !important;
417
  color: #fff !important
418
  }
419
  .header-posts a.active-item span.total-count, .un-categorised-items.active-item a span {
420
+ color: #fff !important
421
  }
422
  span.total-count {
423
  float: right;
424
+ font-size: 12px;
 
 
 
425
  line-height: 16px;
 
426
  }
427
  .wcp-icon {
428
  display: inline-block;
431
  margin-right: 3px
432
  }
433
  #custom-menu .wcp-icon {
434
+ font-size: 16px !important;
435
  line-height: 24px
436
  }
437
+ #custom-menu .route .nav-icon .wcp-icon {
438
+ font-size: 9px !important;
439
+ color: #fa166b;
440
+ font-weight: bold;
441
+ transform: rotate(-90deg);
442
+ transition: all 0.25s linear;
443
+ }
444
+ #custom-menu .route.active .nav-icon .wcp-icon {
445
+ transform: rotate(0deg);
446
+ }
447
+ #custom-menu .route.active > h3.title .pfolder-folder-close:before {
448
+ content: "\e902";
449
+ }
450
  .route.active > .nav-icon > .folder-icon-arrow_right {
451
  transform: rotate(90deg);
452
  -webkit-transform: rotate(90deg);
457
  }
458
  .wcp-container .route span.total-count {
459
  position: relative;
460
+ font-size: 10px;
461
  float: right;
462
  text-align: center;
463
  width: auto;
 
464
  display: block;
465
+ margin: 4px 8px 3px 3px;
466
  color: #23282d !important;
467
  line-height: 16px;
468
  height: 16px
469
  }
470
+ .wcp-container .route.active-item > h3.title span.total-count {
471
+ color: #ffffff !important;
472
+ }
473
  .dynamic-menu {
474
  position: absolute;
475
  left: 50px;
504
  .dynamic-menu ul > li > a > span, .dynamic-menu ul > li > a > span span {
505
  position: relative !important;
506
  display: inline-block;
507
+ vertical-align: middle;
508
  margin-right: 5px;
509
+ top: auto !important;
510
+ width: 20px !important;
511
+ height: 20px !important;
512
+ line-height: 14px;
513
+ }
514
+ #custom-menu .dynamic-menu ul > li > a .sticky-pin {
515
+ line-height: 20px;
516
+ }
517
+ #custom-menu .dynamic-menu ul > li > a .sticky-pin i {
518
+ font-size: 16px !important;
519
  }
520
  .dynamic-menu ul > li > a > span span {
521
  top: auto;
622
  opacity: 1
623
  }
624
  .wcp-drop-hover {
625
+ background: #FA166B !important;
626
  z-index: 2 !important;
627
  color: #fff !important
628
  }
629
+ .wcp-drop-hover i {
630
  color: #fff !important
631
  }
632
  .ui-draggable-dragging {
633
  z-index: 1051 !important
634
  }
635
  .wcp-hover-list {
636
+ background: #FA166B !important;
637
  color: #fff;
638
  position: relative
639
  }
655
  border: solid 1px #fff;
656
  position: relative
657
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
658
  .wcp-drop-hover-list a.folder-view:before {
659
  width: 100%;
660
  height: 100%;
675
  padding: 5px 10px;
676
  border-radius: 5px;
677
  background: #e4f6ff;
 
678
  position: fixed !important;
679
  max-width: 230px;
680
  overflow: hidden;
697
  font-size: 16px;
698
  line-height: 30px;
699
  height: 30px;
700
+ width: calc(100% - 100px);
701
  overflow: hidden;
702
+ white-space: nowrap;
703
+ text-align: left;
704
  }
705
  .ui-resizable-handle.ui-resizable-e {
706
  position: absolute;
714
  }
715
  .ui-resizable-handle.ui-resizable-e:before, .ui-resizable-handle.ui-resizable-w:before {
716
  content: "";
717
+ top: 25%;
718
  width: 3px;
719
+ height: 30px;
720
  position: absolute;
721
+ border-left: solid 1px #fa166b;
722
+ border-right: solid 1px #fa166b;
723
  left: -1px
724
  }
725
  .ui-resizable-handle.ui-resizable-w {
733
  cursor: col-resize
734
  }
735
  div#custom-menu {
736
+ padding: 10px;
737
+ background: #ffffff;
738
+ box-shadow: 0px 4px 21px rgba(7, 16, 28, 0.1);
739
  }
740
  .wcp-container .route span.star-icon, .sticky-folders li a span.star-icon {
741
  position: relative;
742
  top: 2px;
743
  left: auto;
744
  float: right;
 
745
  speak: none;
746
  color: #ffc90e;
747
  display: none;
748
+ font-size: 14px;
 
749
  }
750
  .wcp-container .route span.update-inline-record, .sticky-folders li a span.update-inline-record {
751
  position: relative;
752
  left: auto;
753
+ top: 0;
754
  float: right;
755
  width: 0;
756
+ height: 30px;
 
757
  font-size: 16px;
758
  overflow: hidden;
759
  transition: all .25s linear;
760
  -webkit-transition: all .25s linear;
761
+ -moz-transition: all .25s linear;
762
+ line-height: 30px;
763
  }
764
  body:not(.no-hover-css) .wcp-container .route h3:hover > span.update-inline-record, body:not(.no-hover-css) .sticky-folders li a:hover span.update-inline-record {
765
  width: 18px
767
  .sticky-folders li a:hover .folder-count {
768
  margin: 0px 3px 0px 0px;
769
  }
 
 
 
770
  .wcp-container .route.is-high > h3 > span.star-icon, .sticky-folders li.is-high a span.star-icon {
771
  display: block;
772
  }
 
 
 
773
  .tree-structure li {
774
  display: block;
775
  width: auto;
778
  padding: 0
779
  }
780
  .tree-structure .folder-item {
781
+ padding: 4px;
782
  position: relative
783
  }
784
  .tree-structure .folder-view {
785
  display: block;
786
+ border: none;
787
  color: #404040;
788
  border-radius: 4px;
789
  -moz-border-radius: 4px;
790
  -webkit-border-radius: 4px;
791
  position: relative;
792
  cursor: pointer;
793
+ background: #F1F1F1;
794
+ font-size: 14px;
795
+ line-height: 16px;
796
  }
797
  .tree-structure .folder-view span.item-name {
798
  display: block;
799
+ padding: 8px 15px 8px 30px;
800
  position: relative;
801
  width: 100%;
802
  overflow: hidden;
803
+ height: 32px;
804
+ font-size: 14px;
805
+ box-sizing: border-box;
806
  }
807
  .folder-view span.item-name:before {
808
+ content: "\e906";
809
+ font-family: 'premio-folder' !important;
810
  position: absolute;
811
+ left: 8px;
812
+ font-size: 16px;
813
+ color: #A4C0D2;
814
  }
815
  .folder-view.is-high span.item-name:before {
816
  content: "\e900"
846
  margin-right: -8px
847
  }
848
  .tree-structure .folder-view span.folder-title {
 
849
  width: 100%;
 
850
  display: block
851
  }
852
  .swal2-popup .swal2-title {
896
  display: none
897
  }
898
  span.upgrade-message {
899
+ padding: 0;
900
  background: #fff;
901
  display: inline-block;
902
+ font-size: 12px;
903
  color: #000
904
  }
905
  span.upgrade-message a.pink, span.upgrade-message span.pink {
1028
  padding: 0
1029
  }
1030
  .tree-structure-content {
1031
+ padding: 5px 10px;
1032
  background: #fff;
1033
  margin: 10px 0 15px;
1034
  border-radius: 4px;
1037
  border: solid 1px #ccc
1038
  }
1039
  .tree-structure-content .tree-structure {
1040
+ height: 40px;
1041
  overflow: hidden;
1042
  transition: .1s;
1043
  -webkit-transition: .1s;
1114
  -o-transform: translate(0, -50%);
1115
  -ms-transform: translate(0, -50%);
1116
  padding: 20px;
1117
+ -webkit-border-radius: 4px;
1118
+ -moz-border-radius: 4px;
1119
+ border-radius: 4px;
1120
+ color: #484848;
1121
  }
1122
  .folder-form-buttons a, .folder-form-buttons button {
1123
+ display: inline-flex;
1124
+ padding: 0;
1125
  text-decoration: none;
1126
  margin: 10px 3px;
1127
+ border-radius: 4px;
1128
+ border: solid 1px #1DA1F4;
1129
+ line-height: 34px;
1130
+ font-weight: bold;
1131
+ font-size: 14px;
1132
+ box-sizing: border-box;
1133
+ height: 36px;
1134
+ cursor: pointer;
1135
+ flex: 1;
1136
+ justify-content: center;
1137
  }
1138
  .folder-form-buttons a span, .folder-form-buttons button span {
1139
  -webkit-animation: fa-spin .75s infinite linear;
1140
+ animation: fa-spin .75s infinite linear;
1141
+ padding: 7px;
1142
  }
1143
  [data-tooltip] {
1144
  position: relative
1190
  left: 50%;
1191
  transform: translate(-50%, -.5em)
1192
  }
 
 
 
1193
  .wp-core-ui .button-primary.select-all-item-btn {
1194
  margin: 11px 11px 11px 0;
1195
  display: none !important
1198
  display: inline-block !important
1199
  }
1200
  .form-options > ul > li.last.folder-checkbox {
1201
+ padding: 5px 0 0;
1202
  }
1203
  #custom-menu input.checkbox {
1204
  display: none
1217
  } 100% {
1218
  -webkit-transform: rotate(359deg);
1219
  transform: rotate(359deg)
1220
+ }
1221
+ }
1222
  .folder-form-buttons a:focus, .folder-form-buttons a:hover, .folder-form-buttons button:focus, .folder-form-buttons button:hover {
1223
  color: #fff;
1224
+ outline: none;
1225
  }
1226
  .folder-form-buttons a:focus {
1227
  outline: 0;
1228
+ outline: none;
1229
  }
1230
+ .form-cancel-btn, a.form-cancel-btn:hover {
1231
+ background-color: #fff;
1232
+ color: #3085d6;
1233
+ outline: none;
1234
  }
1235
  .form-submit-btn {
1236
+ background-color: #3085d6;
1237
+ color: #ffffff;
1238
+ outline: none;
1239
  }
1240
  .add-update-folder-title {
1241
  display: block;
1244
  margin: 0 0 .4em;
1245
  padding: 0;
1246
  color: #595959;
 
 
1247
  text-align: center;
1248
  text-transform: none;
1249
  word-wrap: break-word;
1250
+ font-weight: bold;
1251
+ font-size: 22px;
1252
+ line-height: 26px;
 
 
 
 
 
 
 
 
 
 
1253
  }
1254
  .folder-form-message {
1255
+ font-size: 15px;
1256
+ line-height: 18px;
1257
+ color: #484848;
1258
+ padding: 25px 70px;
1259
  }
1260
  .folder-form-errors {
1261
  margin: 0 0 10px 0;
1271
  position: relative !important
1272
  }
1273
  span.folder-loader-ajax {
1274
+ margin: 0;
 
1275
  line-height: 30px;
1276
+ display: none;
1277
+ vertical-align: middle;
1278
  }
1279
  .folder-loader-ajax.active {
1280
  display: inline-block
1346
  opacity: 0
1347
  } 100% {
1348
  opacity: 1
1349
+ }
1350
+ }
1351
  #successAnimationCircle {
1352
  stroke-dasharray: 151px 151px;
1353
  stroke: #2ce0a7
1361
  opacity: 0
1362
  }
1363
  svg#successAnimation {
1364
+ width: 30px;
1365
  height: 34px;
1366
  padding: 0;
1367
  display: none;
1472
  } 100% {
1473
  background-position: 50px 50px
1474
  }}
 
 
 
1475
  .media-folder-loader {
1476
  padding: 10px 0 15px;
1477
  display: none
1486
  border-bottom: solid 1px #ccc;
1487
  }
1488
  .top-settings {
1489
+ background: #fff;
1490
+ padding: 10px 10px 5px;
1491
+ -webkit-border-top-left-radius: 4px;
1492
+ -webkit-border-top-right-radius: 4px;
1493
+ -moz-border-radius-topleft: 4px;
1494
+ -moz-border-radius-topright: 4px;
1495
+ border-top-left-radius: 4px;
1496
+ border-top-right-radius: 4px;
1497
+ box-shadow: 0px 4px 21px rgba(7, 16, 28, 0.1);
1498
  }
1499
  .sticky-folders.active {
1500
  display: block;
1581
  -webkit-filter: invert(0%);
1582
  }
1583
  .form-options > ul > li.last > a.sort-folder-order {
1584
+ width: 28px;
1585
+ padding: 5px;
 
1586
  text-align: center;
1587
  display: inline-block;
1588
  box-sizing: border-box;
1615
  .folder-order.active .sort-folder-order {
1616
  background: #404040;
1617
  color: #fff;
 
1618
  }
1619
  .folder-order.active .sort-folder-order svg {
1620
  fill: #fff;
1641
  .dynamic-menu.bottom-fix {
1642
  bottom: 0;
1643
  }
1644
+ .folder-form-buttons {
1645
+ display: flex;
1646
+ }
1647
+ .folder-group {
1648
+ position: relative;
1649
+ margin: 45px auto 15px;
1650
+ padding: 0 2px;
1651
+ }
1652
+
1653
+ .folder-grouptextarea {
1654
+ resize: none;
1655
+ }
1656
+
1657
+ .folder-group input,
1658
+ .folder-group textarea {
1659
+ background: none;
1660
+ font-size: 14px;
1661
+ padding: 0 0 0 15px;
1662
+ display: block;
1663
+ width: 100%;
1664
+ border-radius: 4px;
1665
+ border: 1px solid #484848;
1666
+ height: 34px;
1667
+ line-height: 34px;
1668
+ color: #484848;
1669
+ }
1670
+ .folder-group input:focus,
1671
+ .folder-group textarea:focus {
1672
+ outline: none;
1673
+ }
1674
+ .folder-group input:focus ~ label, .folder-group input:valid ~ label,
1675
+ .folder-group textarea:focus ~ label,
1676
+ .folder-group textarea:valid ~ label {
1677
+ top: -9px;
1678
+ background: #fff;
1679
+ padding: 0 5px;
1680
+ font-weight: normal;
1681
+ font-size: 12px;
1682
+ line-height: 14px;
1683
+ color: #AEAEAE;
1684
+ }
1685
+ .folder-group input:focus ~ .bar:before,
1686
+ .folder-group textarea:focus ~ .bar:before {
1687
+ width: 320px;
1688
+ }
1689
+
1690
+ .folder-group input[type="password"] {
1691
+ letter-spacing: 0.3em;
1692
+ }
1693
+
1694
+ .folder-group label {
1695
+ font-size: 14px;
1696
+ font-weight: 500;
1697
+ position: absolute;
1698
+ pointer-events: none;
1699
+ left: 20px;
1700
+ top: 10px;
1701
+ -webkit-transition: 300ms ease all;
1702
+ transition: 300ms ease all;
1703
+ color: #484848;
1704
+ }
1705
+
1706
+ .folder-group .folder-bar {
1707
+ position: relative;
1708
+ display: block;
1709
+ width: 320px;
1710
+ }
1711
+ .folder-group .folder-bar:before {
1712
+ content: '';
1713
+ height: 2px;
1714
+ width: 0;
1715
+ bottom: 0px;
1716
+ position: absolute;
1717
+ background: #2196F3;
1718
+ -webkit-transition: 300ms ease all;
1719
+ transition: 300ms ease all;
1720
+ left: 0%;
1721
+ }
1722
+ #custom-menu [class^="pfolder-"], #custom-menu [class*=" pfolder-"] {
1723
+ font-size: 12px;
1724
+ }
1725
+ span.create_new_folder {
1726
+ width: 26px;
1727
+ height: 26px;
1728
+ line-height: 26px;
1729
+ font-size: 14px;
1730
+ background: rgba(255, 255, 255, 0.4);
1731
+ backdrop-filter: blur(16px);
1732
+ border-radius: 4px;
1733
+ text-align: center;
1734
+ margin: 0 15px 0 0;
1735
+ }
1736
+ .folder-search-form {
1737
+ padding: 0 0 10px 0;
1738
+ position: relative;
1739
+ }
1740
+ .folder-search-form input {
1741
+ background: #FFFFFF;
1742
+ border: 1px solid #DBDBDB;
1743
+ box-sizing: border-box;
1744
+ border-radius: 4px;
1745
+ height: 32px;
1746
+ line-height: 32px;
1747
+ box-sizing: border-box;
1748
+ padding: 0 5px;
1749
+ width: 100%;
1750
+ outline: none;
1751
+ box-shadow: none !important;
1752
+ }
1753
+ .folder-search-form span {
1754
+ position: absolute;
1755
+ color: #AEAEAE;
1756
+ right: 0;
1757
+ top: 0;
1758
+ height: 32px;
1759
+ line-height: 32px;
1760
+ width: 32px;
1761
+ text-align: center;
1762
+ }
1763
+
1764
+ .folder-separator {
1765
+ padding: 0 10px;
1766
+ height: 1px;
1767
+ background: #E9E5E5;
1768
+ margin: 0 0 10px 0;
1769
+ }
1770
+ #custom-menu.has-filter li.route {
1771
+ display: none !important;
1772
+ }
1773
+ #custom-menu.has-filter li.route.has-search {
1774
+ display: block !important;
1775
+ }
1776
+ #custom-menu.has-filter h3 span.title-text.has-search-text {
1777
+ font-weight: bold;
1778
+ }
1779
+ .hide-folders-area .ui-resizable-handle.ui-resizable-e {
1780
+ display: none !important;
1781
+ }
1782
  @media screen and (max-width: 960px) {
1783
  .wcp-content {
1784
  left: 36px
1825
  padding-bottom: 30px
1826
  }
1827
  }
1828
+
assets/css/design.min.css CHANGED
@@ -1 +1 @@
1
- .wcp-custom-menu{padding-left:0}.wcp-custom-menu{position:relative}.wcp-container ul{list-style:none}.wcp-container .route{position:relative;list-style-type:none;border:0;margin:0;padding:0;top:0;max-height:100%!important;width:100%;border-radius:2px;z-index:-1;background:0 0}.wcp-container .route span{position:absolute;top:2px;left:0;z-index:10;width:20px;height:18px;text-indent:0;font-size:20px;background:no-repeat}.wcp-container .route .title{position:absolute;border:0;margin:0;padding:0;height:30px;width:200px;text-indent:30px;background:0 0;box-shadow:none;font-size:14px;line-height:26px;border-radius:4px;-webkit-border-radius:4px;-moz-border-radius:4px;overflow:hidden}.wcp-container .first-title{margin-left:10px}.wcp-container .space{position:relative;list-style-type:none;border:0;margin:0 0 0 20px;padding:0 0 30px 0;width:40px;top:30px;height:100%;z-index:1}.wcp-container .first-space{margin-left:10px;top:10px}i.fa-caret-right{transition:.1s;-webkit-transition:.1s;-moz-transition:.1s}li.active>span>i.fa-caret-right{transform:rotate(90deg);-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg)}li.active>span>i.fa-folder:before{content:"\f07c"}.has-sub-tree>ul.ui-sortable li{display:none}.has-sub-tree.active>ul.ui-sortable>li{display:block}.nav-icon{display:none;left:-20px!important}.has-sub-tree>.nav-icon{display:block}.wcp-content{position:fixed!important;top:32px;left:160px;bottom:0;width:315px;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:335px;transition:all .15s linear;-webkit-transition:all .15s linear;-moz-transition:all .15s linear}html[dir=rtl] body.wp-admin #wpcontent{padding-left:0;padding-right:320px}.wcp-container{padding:20px 20px 20px 16px}.form-title{font-size:23px;font-weight:400;margin:0;padding:0 0 10px 0;line-height:29px;min-height:36px}.form-operations{border:solid 1px #e5e5e5;border-right:none;margin-bottom:20px}.form-operations ul{margin:0;padding:0}.form-operations li{display:block;float:left;width:20%;text-align:center;background:#fff;margin:0;padding:0}.form-operations li a{display:block;padding:10px 0;border-right:solid 1px #e5e5e5;font-size:16px;color:#727272}.clearfix{clear:both}.wcp-parent-data{position:relative}.wcp-parent{position:absolute;left:-21px;font-weight:700;font-size:14px}.wcp-parent .fa{font-size:18px;margin-right:8px}.wcp-form-data{background:#fff;border:solid 1px #f1f1f1;padding:15px;display:none;margin-bottom:20px}.wcp-form-title{color:#727272;font-size:14px;text-transform:uppercase;padding:0 0 10px 0}.wcp-form-data .form-field{padding:0 0 10px 0}.wcp-form-data .form-field input,.wcp-form-data .form-field select{width:100%}button#wcp-save-folder{float:right}.wcp-form-message span{display:block;padding:5px 10px;background:#ffabab;margin-bottom:10px;color:#000;border:solid 1px #8c0000;border-radius:4px}.wcp-container .route.active-item>h3.title{background:#008ec2;color:#fff;border-radius:4px}.wcp-container .route span.ui-icon{line-height:24px;font-size:18px;cursor:move;left:5px;top:2px;height:26px}.route.active-item>span.ui-icon{background:#008ec2;color:#fff}#custom-menu.active>ul>li.route{display:block}.wcp-parent.active>i.fa-caret-right{transform:rotate(90deg);-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg)}.wcp-parent.active>i.fa-folder:before{content:"\f07c"}.wcp-container .route .title img{display:none;width:14px;height:14px;margin:5px auto 0}.wcp-container .route .title:hover{background:#dfdfdf;cursor:pointer}.wcp-container .route .title.wcp-drop-hover img.move-folder-icon,body:not(.no-hover-css) .wcp-container .route .title:hover img.move-folder-icon{display:block}.wcp-container .route .title.wcp-drop-hover .ui-icon i,.wcp-container .route .title.wcp-drop-hover .ui-icon img.folder-sticky-icon,body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon i,body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon img.folder-sticky-icon{display:none}.route.is-sticky>h3.title>.ui-icon>.folder-sticky-icon{display:block;width:100%;height:auto;margin:3px auto 0}.route.is-sticky.active-item>h3.title>.ui-icon>.folder-sticky-icon{filter:invert(100%);-webkit-filter:invert(100%)}.route.is-sticky>h3.title>.ui-icon>i{display:none}.wcp-container .route .title.wcp-drop-hover img{filter:invert(100%);-webkit-filter:invert(100%)}.add-new-folder{text-decoration:none;display:block;float:right;font-size:14px;padding:4px 10px;background:#f51366;color:#fff;border:solid 1px #f51366;border-radius:3px;line-height:24px;-webkit-box-shadow:0 3px 5px -3px #333;-moz-box-shadow:0 3px 5px -3px #333;box-shadow:0 3px 5px -3px #333;position:relative}.add-new-folder:focus,.add-new-folder:hover{color:#fff}.add-new-folder:hover:after{content:"";width:100%;height:100%;background:rgba(0,0,0,.1);position:absolute;top:0;left:0}.add-new-folder span{display:block;float:left;line-height:20px;font-size:14px;margin-right:5px}.add-new-folder span.folder-icon-create_new_folder{font-size:20px}.form-options{background:#fff;padding:10px 0 0 10px;margin:0 0}.form-options ul{margin:0;padding:0}.form-options>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;background:#ccc;box-shadow:0 1px 0 #ccc;vertical-align:middle;border:solid 1px #ccc;border-radius:3px;margin:0 0 12px 0}.form-options>ul>li.last>a{padding:3px}.form-options>ul>li.last>a span.icon{font-size:28px;line-height:22px}a#expand-collapse-list.all-open span:before{content:"\e911"}.form-options>ul>li>a:hover{background:#404040;color:#fff;border:solid 1px #404040}.form-options span.icon{font-size:18px;display:inline-block;vertical-align:top}.un-categorised-items{border-radius:3px}.header-posts a,.un-categorised-items a{color:#444;padding:7px;border-radius:3px;display:block;text-decoration:none;font-size:14px;line-height:18px}.header-posts a:hover,.un-categorised-items.active-item,.un-categorised-items:hover{background:#dfdfdf;border-radius:3px}.header-posts a.active-item,.un-categorised-items.active-item{background:#008ec2!important;color:#fff!important}.un-categorised-items.active-item a{color:#fff!important}.header-posts a.active-item span.total-count,.un-categorised-items.active-item a span{color:#444!important}span.total-count{float:right;background:#fff;padding:0 5px;border:solid 1px #ccc;font-size:10px;line-height:16px;border-radius:2px}.wcp-icon{display:inline-block;font-size:16px;vertical-align:top;margin-right:3px}#custom-menu .wcp-icon{font-size:20px;line-height:24px}.route.active>.nav-icon>.folder-icon-arrow_right{transform:rotate(90deg);-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg)}.route.active>.ui-icon>.folder-icon-folder:before{content:"\e90c"}.wcp-container .route span.total-count{position:relative;font-size:8px;float:right;text-align:center;width:auto;background:#fff;display:block;margin:4px 3px 3px 3px;color:#23282d!important;line-height:16px;height:16px}.dynamic-menu{position:absolute;left:50px;background:#fff;width:170px;padding:0;z-index:101;-webkit-box-shadow:0 0 5px 0 rgba(0,0,0,.25);-moz-box-shadow:0 0 5px 0 rgba(0,0,0,.25);box-shadow:0 0 5px 0 rgba(0,0,0,.25)}.sticky-folders .dynamic-menu{left:auto;right:50px}.dynamic-menu li{position:relative;width:100%;display:inline-block!important;padding:2px 0;margin:0}.dynamic-menu a{text-decoration:none;color:#848484;position:relative;display:block;padding:5px 10px;line-height:18px;white-space:nowrap}.dynamic-menu ul>li>a>span,.dynamic-menu ul>li>a>span span{position:relative!important;display:inline-block;vertical-align:top;margin-right:5px;top:0!important}.dynamic-menu ul>li>a>span span{top:auto;height:auto;width:auto;margin:0;left:auto;vertical-align:baseline;display:inline}.dynamic-menu li.new-folder{border-bottom:solid 1px #d8d8d8}.dynamic-menu a.active,.dynamic-menu a:hover{background:#efefef;color:#000}.dynamic-menu ul li span{font-size:20px;vertical-align:middle}.dynamic-menu ul li span.sticky-folder-icon{width:20px}.wcp-form-input{padding-left:35px;box-sizing:border-box;position:relative}.wcp-form-input input{width:100%}.wcp-form-btn{padding:4px 0 4px 2px}.wcp-form-input:before{content:"\e90d";font-family:folder-icon!important;speak:none;position:absolute;left:0;font-size:28px;top:5px}.add-new-folder-btn{margin-right:5px!important}.form-loader{width:100%;height:5px;margin:0 0 10px}.form-loader-count{width:0;height:5px;background:url(../images/form-loader.png);transition:all 2.5s linear;-webkit-transition:all 2s linear;-moz-transition:all 2.5s linear}.route.is-high>.ui-icon>i:before{content:"\e900"!important}.route.is-high.active>.ui-icon>i:before{content:"\e90c"!important;z-index:11;color:#444;font-size:20px}.route.is-high.active>.ui-icon>i:after{content:"\e907";margin-left:-1.2em;color:#444;font-size:11px;top:1px;position:absolute}.route.is-high.active.active-item>.ui-icon>i:after,.route.is-high.active.active-item>.ui-icon>i:before{color:#fff}li.active-menu{z-index:2!important}.wp-list-table th{width:auto!important}.wp-list-table th.column-title{width:35%!important}.fixed .column-author,.fixed .column-date,.fixed .column-format,.fixed .column-links,.fixed .column-parent,.fixed .column-posts{width:10%!important}.wp-list-table #wcp_move{width:20px!important}td.wcp_move.column-wcp_move{vertical-align:middle}.wp-list-table tr td .wcp-move-file{vertical-align:middle;opacity:0}.wp-list-table td.wcp_move.column-wcp_move.wcp-draggable,.wp-list-table tr:hover td .wcp-move-file{opacity:1}.wcp-drop-hover{background:#0073aa!important;z-index:2!important;color:#fff!important}.wcp-drop-hover span{color:#fff!important}.ui-draggable-dragging{z-index:1051!important}.wcp-hover-list{background:#008ec2!important;color:#fff;position:relative}.wcp-hover-list a{color:#fff}.wcp-hover-list span.total-count{color:#000}span.wcp-item{display:none}.wcp-move-file{cursor:move}.wcp-drop-hover-list a.folder-view{background:#008ec2;color:#fff;border:solid 1px #fff;position:relative}.tree-structure .folder-view{display:block;border:1px solid #dadce0;color:#404040;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;position:relative;cursor:pointer;background:#fff}.tree-structure .folder-view:hover{background:#008ec2;color:#fff}.wcp-drop-hover-list a.folder-view:before{width:100%;height:100%;content:"";position:absolute;top:-2px;left:-2px;border:solid 1px #008ec2;padding:1px;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px}.ui-draggable-dragging.wcp-move-file{z-index:5001;display:inline-block;border:solid 2px #0073aa;padding:5px 10px;border-radius:5px;background:#e4f6ff;z-index:2001;position:fixed!important;max-width:230px;overflow:hidden;width:auto!important}.ui-draggable-dragging.wcp-move-file span{display:block;float:left}.ui-draggable-dragging.wcp-move-file span.wcp-move{margin-right:5px;display:block;float:left}.wcp-container .route span.title-text{position:relative;top:auto;left:auto;display:inline-block;font-size:16px;line-height:30px;height:30px;width:calc(100% - 80px);overflow:hidden;white-space:nowrap}.ui-resizable-handle.ui-resizable-e{position:absolute;top:0;height:100%;height:100vh;width:1px;right:0;border-right:1px solid #ccc;cursor:col-resize}.ui-resizable-handle.ui-resizable-e:before,.ui-resizable-handle.ui-resizable-w:before{content:"";top:68px;width:3px;height:53px;position:absolute;border-left:solid 1px #ccc;border-right:solid 1px #ccc;left:-1px}.ui-resizable-handle.ui-resizable-w{position:absolute;top:0;height:100%;height:100vh;width:1px;left:0;border-right:1px solid #ccc;cursor:col-resize}div#custom-menu{padding-bottom:150px;padding-left:4px}.sticky-folders li a span.star-icon,.wcp-container .route span.star-icon{position:relative;top:2px;left:auto;float:right;font-family:folder-icon!important;speak:none;color:#ffc90e;display:none;font-size:20px;font-weight:700}.sticky-folders li a span.update-inline-record,.wcp-container .route span.update-inline-record{position:relative;left:auto;top:2px;float:right;width:0;height:22px;font-family:folder-icon!important;font-size:16px;overflow:hidden;transition:all .25s linear;-webkit-transition:all .25s linear;-moz-transition:all .25s linear}body:not(.no-hover-css) .sticky-folders li a:hover span.update-inline-record,body:not(.no-hover-css) .wcp-container .route h3:hover>span.update-inline-record{width:18px}.sticky-folders li a:hover .folder-count{margin:0 3px 0 0}.sticky-folders li a span.update-inline-record:after,.wcp-container .route span.update-inline-record:after{content:"\e910"}.sticky-folders li.is-high a span.star-icon,.wcp-container .route.is-high>h3>span.star-icon{display:block}.sticky-folders li a span.star-icon:after,.wcp-container .route span.star-icon:after{content:"\e907"}.tree-structure li{display:block;width:auto;float:left;margin:0;padding:0}.tree-structure .folder-item{padding:8px;position:relative}.tree-structure .folder-view{display:block;border:1px solid #dadce0;color:#404040;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;position:relative;cursor:pointer;background:#fff}.tree-structure .folder-view span.item-name{display:block;padding:10px 25px 10px 50px;position:relative;width:100%;overflow:hidden;height:38px;font-size:16px;box-sizing:border-box}.folder-view span.item-name:before{content:"\e90d";font-family:folder-icon!important;position:absolute;left:15px;font-size:24px}.folder-view.is-high span.item-name:before{content:"\e900"}.folder-view.is-post span.item-name:before{content:"\e901"}.tree-structure span.folder-option{position:absolute;right:0;font-family:folder-icon!important;top:0;font-size:20px;line-height:38px;z-index:1;cursor:pointer;display:none}.tree-structure .folder-view:hover span.folder-option{display:block}.tree-structure span.folder-option:hover{color:#f51366}.tree-structure span.folder-option:after{content:"\e90a"}.tree-structure li{position:relative}.tree-structure{margin-left:-8px;margin-right:-8px}.tree-structure .folder-view span.folder-title{overflow:hidden;width:100%;height:18px;display:block}.swal2-popup .swal2-title{line-height:36px}.attachments-browser.ui-draggable-dragging .media-sidebar,.attachments-browser.ui-draggable-dragging .media-toolbar,.attachments-browser.ui-draggable-dragging .uploader-inline,.attachments-browser.ui-draggable-dragging ul.attachments{display:none}.attachments.ui-sortable.ui-draggable-dragging{z-index:5000}.selected-items{background:#0073aa;color:#fff;padding:10px 20px;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;margin-top:0;cursor:none;font-size:12px}.media-frame,.media-frame .attachments-browser,.media-frame-content{overflow:inherit}.mCS-3d-dark.mCSB_scrollTools .mCSB_draggerRail,.mCS-3d.mCSB_scrollTools .mCSB_draggerRail{width:2px!important;background-color:#0073aa!important;background-color:rgba(0,115,170,.6)!important;box-shadow:none!important}.mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{background-color:#0073aa!important}.mCSB_outside+.mCSB_scrollTools{right:-15px!important}body.upload-php.eml-grid #wpbody{position:relative!important;top:0!important;bottom:auto!important;left:auto!important;right:auto!important;height:auto}#footer-thankyou{display:none}span.upgrade-message{padding:0 0 10px;background:#fff;display:inline-block;font-size:14px;color:#000}span.upgrade-message a.pink,span.upgrade-message span.pink{color:#ff5983;text-decoration:none;font-weight:700}.media-toolbar.sticky-media{position:fixed;top:32px;right:18px!important;left:auto}.media-position{width:1px;height:1px}.media-frame.mode-grid .media-toolbar{margin:0!important}.button-disabled{cursor:no-drop;pointer-events:none}.wcp-hide-show-buttons{position:absolute;top:25px;right:-20px;z-index:10001}html[dir=rtl] .wcp-hide-show-buttons{left:-20px;right:auto}.wcp-hide-show-buttons .toggle-buttons{background:#f51366;color:#fff;display:inline-block;margin:0;padding:0;float:left;-webkit-border-top-right-radius:50%;-webkit-border-bottom-right-radius:50%;-moz-border-radius-topright:50%;-moz-border-radius-bottomright:50%;border-top-right-radius:50%;border-bottom-right-radius:50%;display:none;width:20px;height:20px;cursor:pointer;position:relative}.wcp-hide-show-buttons:hover .toggle-buttons:after{content:"";width:100%;height:100%;background:0 0;position:absolute;top:0;left:0;-webkit-border-top-right-radius:50%;-webkit-border-bottom-right-radius:50%;-moz-border-radius-topright:50%;-moz-border-radius-bottomright:50%;border-top-right-radius:50%;border-bottom-right-radius:50%}html[dir=rtl] .wcp-hide-show-buttons .toggle-buttons{border-radius:0;-webkit-border-radius:0;-moz-border-radius:0;-webkit-border-top-left-radius:50%;-webkit-border-bottom-left-radius:50%;-moz-border-radius-top-left:50%;-moz-border-radius-bottom-left:50%;border-top-left-radius:50%;border-bottom-left-radius:50%}html[dir=rtl] .wcp-hide-show-buttons .toggle-buttons span{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.hide-folders-area .wcp-content{width:0!important}.hide-folders-area .wcp-container{display:none}.wcp-hide-show-buttons .toggle-buttons.active{display:block}#wcp-content.no-transition .wcp-container{display:none}button.button.organize-button{vertical-align:middle;text-decoration:none;display:inline-block;font-size:14px;padding:4px 10px;background:#f51366;color:#fff;border:solid 1px #f51366;border-radius:3px;line-height:14px;-webkit-box-shadow:0 3px 5px -3px #333;-moz-box-shadow:0 3px 5px -3px #333;box-shadow:0 3px 5px -3px #333;position:relative}button.button.organize-button:focus,button.button.organize-button:hover{color:#fff}button.button.organize-button:hover:after{content:"";width:100%;height:100%;background:rgba(0,0,0,.1);position:absolute;top:0;left:0}.tree-structure-content ul{margin:0;padding:0}.tree-structure-content{padding:10px 20px 10px;background:#fff;margin:10px 0 15px;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;border:solid 1px #ccc}.tree-structure-content .tree-structure{height:55px;overflow:hidden;transition:.1s;-webkit-transition:.1s;-moz-transition:.1s}.tree-structure-content.active .tree-structure{height:auto}.folders-toggle-button{height:15px;text-align:center;position:relative}.folders-toggle-button span{background:#f51366;color:#fff;height:20px;width:30px;text-align:center;display:block;margin:0 auto;position:absolute;left:0;right:0;bottom:-10px;cursor:pointer;font-family:dashicons;font-size:20px;line-height:20px}.folders-toggle-button span:after{content:"\f347"}.tree-structure-content.active .folders-toggle-button span:after{content:"\f343"}span.media-info-message{vertical-align:middle;line-height:20px;font-weight:700;color:#f51366;padding:0 0 10px 0;display:none!important}span.media-info-message.active{display:block!important}.folder-popup-form{position:fixed;width:100%;height:100%;background:rgba(0,0,0,.5);top:0;left:0;z-index:10001;display:none}.folder-popup-form.disabled{pointer-events:none}.popup-form-content{background:#fff;min-height:100px;width:400px;text-align:center;margin:0 auto;position:absolute;left:0;right:0;top:50%;transform:translate(0,-50%);-webkit-transform:translate(0,-50%);-moz-transform:translate(0,-50%);-o-transform:translate(0,-50%);-ms-transform:translate(0,-50%);padding:20px;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.folder-form-buttons a,.folder-form-buttons button{display:inline-block;padding:10px 20px;text-decoration:none;margin:10px 3px;font-size:18px;line-height:22px;border-radius:.25em;color:#fff;border:none}.folder-form-buttons a span,.folder-form-buttons button span{-webkit-animation:fa-spin .75s infinite linear;animation:fa-spin .75s infinite linear}[data-tooltip]{position:relative}[data-tooltip]::after,[data-tooltip]::before{text-transform:none;font-size:.9em;line-height:1;user-select:none;pointer-events:none;position:absolute;display:none;opacity:0}[data-tooltip]::before{content:'';border:5px solid transparent;z-index:1001}[data-tooltip]::after{content:attr(data-tooltip);font-family:Helvetica,sans-serif;text-align:center;min-width:3em;max-width:21em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:1ch 1.5ch;border-radius:.3ch;box-shadow:0 1em 2em -.5em rgba(0,0,0,.35);background:#333;color:#fff;z-index:1000}[data-tooltip]:hover::after,[data-tooltip]:hover::before{display:block;opacity:1}[data-tooltip]:not([flow])::before,[data-tooltip][flow^=up]::before{bottom:100%;border-bottom-width:0;border-top-color:#333}[data-tooltip]:not([flow])::after,[data-tooltip][flow^=up]::after{bottom:calc(100% + 5px)}[data-tooltip]:not([flow])::after,[data-tooltip]:not([flow])::before,[data-tooltip][flow^=up]::after,[data-tooltip][flow^=up]::before{left:50%;transform:translate(-50%,-.5em)}#remove-folder-item{width:126px!important}.wp-core-ui .button-primary.select-all-item-btn{margin:11px 11px 11px 0;display:none!important}.wp-core-ui .button-primary.select-all-item-btn.active{display:inline-block!important}.form-options>ul>li.last.folder-checkbox{padding:8px 0 0 6px}#custom-menu input.checkbox{display:none}#custom-menu.show-folder-checkbox input.checkbox{display:block;margin:5px 0 0 0}#custom-menu.show-folder-checkbox h3.title>.ui-icon>i,#custom-menu.show-folder-checkbox h3.title>.ui-icon>img{display:none!important}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.folder-form-buttons a:focus,.folder-form-buttons a:hover,.folder-form-buttons button:focus,.folder-form-buttons button:hover{color:#fff;background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.folder-form-buttons a:focus{outline:0;box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(50,100,150,.4)}.form-cancel-btn{background-color:#aaa}.form-submit-btn{background-color:#3085d6}.add-update-folder-title{display:block;position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word;line-height:30px}.folder-form-input input{width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;font-size:1.125em;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);box-sizing:border-box;height:2.625em;padding:0 .75em;margin:1em auto}.folder-form-message{font-size:16px;line-height:20px;margin:25px 0}.folder-form-errors{margin:0 0 10px 0;padding:8px 0;background:#ffe4e4;color:#a20000;display:none}.folder-form-errors.active{display:block}.sticky-menu #adminmenuwrap{position:relative!important}span.folder-loader-ajax{float:right;margin:0 8px 0 0;line-height:30px;display:none}.folder-loader-ajax.active{display:inline-block}@-webkit-keyframes scaleAnimation{0%{opacity:0;-webkit-transform:scale(1.5);transform:scale(1.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes scaleAnimation{0%{opacity:0;-webkit-transform:scale(1.5);transform:scale(1.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes drawCircle{0%{stroke-dashoffset:151px}100%{stroke-dashoffset:0}}@keyframes drawCircle{0%{stroke-dashoffset:151px}100%{stroke-dashoffset:0}}@-webkit-keyframes drawCheck{0%{stroke-dashoffset:36px}100%{stroke-dashoffset:0}}@keyframes drawCheck{0%{stroke-dashoffset:36px}100%{stroke-dashoffset:0}}@-webkit-keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}#successAnimationCircle{stroke-dasharray:151px 151px;stroke:#2ce0a7}#successAnimationCheck{stroke-dasharray:36px 36px;stroke:#2ce0a7}#successAnimationResult{fill:#2ce0a7;opacity:0}svg#successAnimation{width:34px;height:34px;padding:0;display:none;float:left}#successAnimation.active{display:inline-block}.folder-loader-ajax img{display:none}.folder-loader-ajax img.active{display:inline-block}#successAnimation.animated{-webkit-animation:1s ease-out 0s 1 both scaleAnimation;animation:1s ease-out 0s 1 both scaleAnimation}#successAnimation.animated #successAnimationCircle{-webkit-animation:1s cubic-bezier(.77,0,.175,1) 0s 1 both drawCircle,.3s linear .9s 1 both fadeOut;animation:1s cubic-bezier(.77,0,.175,1) 0s 1 both drawCircle,.3s linear .9s 1 both fadeOut}#successAnimation.animated #successAnimationCheck{-webkit-animation:1s cubic-bezier(.77,0,.175,1) 0s 1 both drawCheck,.3s linear .9s 1 both fadeOut;animation:1s cubic-bezier(.77,0,.175,1) 0s 1 both drawCheck,.3s linear .9s 1 both fadeOut}#successAnimation.animated #successAnimationResult{-webkit-animation:.3s linear .9s both fadeIn;animation:.3s linear .9s both fadeIn}.mCSB_scrollTools a+.mCSB_draggerContainer{margin:10px 0!important}.popup-folder-title{font-weight:700;font-size:24px;padding:0 0 20px 0}.select-box{padding:20px 0 10px 0}.select-box select{width:100%;max-width:300px}.actions #media_folder,select.media-select-folder{width:132px}select#media-attachment-taxonomy-filter{width:132px}.custom-media-select{float:right;padding:10px 0 0 0;display:none}.custom-media-select.active{display:block}.folder-progress{background:#b4b9be;border-radius:4px;margin:5px 0 0 0;position:relative}.folder-meter{height:20px;position:relative;background:#f1f1f1;padding:0;width:0%;border-radius:4px;-webkit-transition:all .2s linear;transition:all .2s linear}.folder-meter>span{display:block;height:100%;-webkit-box-shadow:inset 0 2px 9px rgba(255,255,255,.3),inset 0 -2px 6px rgba(0,0,0,.4);-moz-box-shadow:inset 0 2px 9px rgba(255,255,255,.3),inset 0 -2px 6px rgba(0,0,0,.4);box-shadow:inset 0 2px 9px rgba(255,255,255,.3),inset 0 -2px 6px rgba(0,0,0,.4);position:relative;overflow:hidden;border-radius:4px}.folder-animate>span>span,.folder-meter>span:after,.folder-progress:after{content:"";position:absolute;border-radius:4px;top:0;left:0;bottom:0;right:0;background-image:-webkit-gradient(linear,0 0,100% 100%,color-stop(.25,rgba(255,255,255,.2)),color-stop(.25,transparent),color-stop(.5,transparent),color-stop(.5,rgba(255,255,255,.2)),color-stop(.75,rgba(255,255,255,.2)),color-stop(.75,transparent),to(transparent));background-image:-moz-linear-gradient(-45deg,rgba(255,255,255,.2) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.2) 50%,rgba(255,255,255,.2) 75%,transparent 75%,transparent);z-index:1;-webkit-background-size:50px 50px;-moz-background-size:50px 50px;-webkit-animation:move 2s linear infinite;overflow:hidden}.folder-animate>span:after{display:none}@-webkit-keyframes move{0%{background-position:0 0}100%{background-position:50px 50px}}.orange-bg>span{background-color:#ff5983}.media-folder-loader{padding:10px 0 15px;display:none}.media-folder-loader>span{font-weight:700}.sticky-folders{display:none;padding:0 0 5px;margin:0 0 5px;border-bottom:solid 1px #ccc}.top-settings{padding:0 0 5px;margin:0 0 5px;border-bottom:solid 1px #ccc}.sticky-folders.active{display:block}.sticky-folders ul{margin:0;padding:0}.sticky-folders>ul>li{display:block;margin:0;padding:0}.sticky-folders>ul>li>a{display:block;color:#444;padding:7px;border-radius:3px;text-decoration:none;font-size:16px;line-height:18px}.sticky-folders ul li a.active,.sticky-folders ul li a:hover{background:#dfdfdf;border-radius:3px}.sticky-folders ul li a.active-item{background-color:#008ec2!important;color:#fff}.sticky-folders ul li a.active-item img{filter:invert(100%);-webkit-filter:invert(100%)}.sticky-folders ul li a span{display:inline-block;vertical-align:middle;line-height:18px}.sticky-folders ul li a span.sticky-icon{width:18px;height:18px;margin-right:3px}.sticky-folders ul li a span.sticky-icon img{width:100%;height:100%}.sticky-wcp-custom-form a:focus{box-shadow:none;outline:0}span.folder-count{float:right;background:#fff;padding:0 5px;border:solid 1px #ccc;font-size:10px;line-height:16px;border-radius:2px;color:#444!important}span.folder-count:empty{display:none}.sticky-title{font-size:16px;font-weight:700;padding:7px}.sticky-title img{display:inline-block;vertical-align:middle;height:20px;width:20px}.sticky-folder-icon img{width:100%;filter:invert(50%);-webkit-filter:invert(50%)}.dynamic-menu .sticky-folder:hover img{filter:invert(0);-webkit-filter:invert(0)}.form-options>ul>li.last>a.sort-folder-order{width:32px;height:30px;padding:7px;text-align:center;display:inline-block;box-sizing:border-box}.sort-folder-order svg{width:100%;height:100%;fill:#000}.sort-folder-order:hover svg{fill:#fff}.folder-order{position:relative}.folder-sort-menu{position:absolute;right:0;width:120px;z-index:101;background:#fff;-webkit-box-shadow:0 0 5px 0 rgba(0,0,0,.25);-moz-box-shadow:0 0 5px 0 rgba(0,0,0,.25);box-shadow:0 0 5px 0 rgba(0,0,0,.25);display:none}.folder-order.active .folder-sort-menu{display:block}.folder-order.active .sort-folder-order{background:#404040;color:#fff;border:solid 1px #404040}.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}@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}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:335px;transition:all .15s linear;-webkit-transition:all .15s linear;-moz-transition:all .15s linear}html[dir=rtl] body.wp-admin #wpcontent{padding-left:0;padding-right:320px}.wcp-container{padding:20px 20px 20px 16px}.form-title{font-size:23px;font-weight:400;margin:0;padding:0 0 10px 0;line-height:29px;min-height:36px}.form-operations{border:solid 1px #e5e5e5;border-right:none;margin-bottom:20px}.form-operations ul{margin:0;padding:0}.form-operations li{display:block;float:left;width:20%;text-align:center;background:#fff;margin:0;padding:0}.form-operations li a{display:block;padding:10px 0;border-right:solid 1px #e5e5e5;font-size:16px;color:#727272}.clearfix{clear:both}.wcp-parent-data{position:relative}.wcp-parent{position:absolute;left:-21px;font-weight:700;font-size:14px}.wcp-parent .fa{font-size:18px;margin-right:8px}.wcp-form-data{background:#fff;border:solid 1px #f1f1f1;padding:15px;display:none;margin-bottom:20px}.wcp-form-title{color:#727272;font-size:14px;text-transform:uppercase;padding:0 0 10px 0}.wcp-form-data .form-field{padding:0 0 10px 0}.wcp-form-data .form-field input,.wcp-form-data .form-field select{width:100%}button#wcp-save-folder{float:right}.wcp-form-message span{display:block;padding:5px 10px;background:#ffabab;margin-bottom:10px;color:#000;border:solid 1px #8c0000;border-radius:4px}.wcp-container .route.active-item>h3.title{background:#008ec2;color:#fff;border-radius:4px}.wcp-container .route span.ui-icon{line-height:24px;font-size:18px;cursor:move;left:5px;top:2px;height:26px}.route.active-item>span.ui-icon{background:#008ec2;color:#fff}#custom-menu.active>ul>li.route{display:block}.wcp-parent.active>i.fa-caret-right{transform:rotate(90deg);-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg)}.wcp-parent.active>i.fa-folder:before{content:"\f07c"}.wcp-container .route .title .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}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 .ui-icon .folder-sticky-icon,body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon .folder-sticky-icon{display:none}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}.route.is-sticky>h3.title>.ui-icon>.folder-sticky-icon{display:block;width:100%;height:auto;margin:3px auto 0}.route.is-sticky.active-item>h3.title>.ui-icon>.folder-sticky-icon{filter:invert(100%);-webkit-filter:invert(100%)}.route.is-sticky>h3.title>.ui-icon>i{display:none}.wcp-container .route .title.wcp-drop-hover img{filter:invert(100%);-webkit-filter:invert(100%)}.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)}#custom-menu .route.active>h3.title .pfolder-folder-close:before{content:"\e902"}.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:absolute;left:50px;background:#fff;width:170px;padding:0;z-index:101;-webkit-box-shadow:0 0 5px 0 rgba(0,0,0,.25);-moz-box-shadow:0 0 5px 0 rgba(0,0,0,.25);box-shadow:0 0 5px 0 rgba(0,0,0,.25)}.sticky-folders .dynamic-menu{left:auto;right:50px}.dynamic-menu li{position:relative;width:100%;display:inline-block!important;padding:2px 0;margin:0}.dynamic-menu a{text-decoration:none;color:#848484;position:relative;display:block;padding:5px 10px;line-height:18px;white-space:nowrap}.dynamic-menu ul>li>a>span,.dynamic-menu ul>li>a>span span{position:relative!important;display:inline-block;vertical-align:middle;margin-right:5px;top:auto!important;width:20px!important;height:20px!important;line-height:14px}#custom-menu .dynamic-menu ul>li>a .sticky-pin{line-height:20px}#custom-menu .dynamic-menu ul>li>a .sticky-pin i{font-size:16px!important}.dynamic-menu ul>li>a>span span{top:auto;height:auto;width:auto;margin:0;left:auto;vertical-align:baseline;display:inline}.dynamic-menu li.new-folder{border-bottom:solid 1px #d8d8d8}.dynamic-menu a.active,.dynamic-menu a:hover{background:#efefef;color:#000}.dynamic-menu ul li span{font-size:20px;vertical-align:middle}.dynamic-menu ul li span.sticky-folder-icon{width:20px}.wcp-form-input{padding-left:35px;box-sizing:border-box;position:relative}.wcp-form-input input{width:100%}.wcp-form-btn{padding:4px 0 4px 2px}.wcp-form-input:before{content:"\e90d";font-family:folder-icon!important;speak:none;position:absolute;left:0;font-size:28px;top:5px}.add-new-folder-btn{margin-right:5px!important}.form-loader{width:100%;height:5px;margin:0 0 10px}.form-loader-count{width:0;height:5px;background:url(../images/form-loader.png);transition:all 2.5s linear;-webkit-transition:all 2s linear;-moz-transition:all 2.5s linear}.route.is-high>.ui-icon>i:before{content:"\e900"!important}.route.is-high.active>.ui-icon>i:before{content:"\e90c"!important;z-index:11;color:#444;font-size:20px}.route.is-high.active>.ui-icon>i:after{content:"\e907";margin-left:-1.2em;color:#444;font-size:11px;top:1px;position:absolute}.route.is-high.active.active-item>.ui-icon>i:after,.route.is-high.active.active-item>.ui-icon>i:before{color:#fff}li.active-menu{z-index:2!important}.wp-list-table th{width:auto!important}.wp-list-table th.column-title{width:35%!important}.fixed .column-author,.fixed .column-date,.fixed .column-format,.fixed .column-links,.fixed .column-parent,.fixed .column-posts{width:10%!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:10px;background:#fff;box-shadow:0 4px 21px rgba(7,16,28,.1)}.sticky-folders li a span.star-icon,.wcp-container .route span.star-icon{position:relative;top:2px;left:auto;float:right;speak:none;color:#ffc90e;display:none;font-size:14px}.sticky-folders li a span.update-inline-record,.wcp-container .route span.update-inline-record{position:relative;left:auto;top:0;float:right;width:0;height:30px;font-size:16px;overflow:hidden;transition:all .25s linear;-webkit-transition:all .25s linear;-moz-transition:all .25s linear;line-height:30px}body:not(.no-hover-css) .sticky-folders li a:hover span.update-inline-record,body:not(.no-hover-css) .wcp-container .route h3:hover>span.update-inline-record{width:18px}.sticky-folders li a:hover .folder-count{margin:0 3px 0 0}.sticky-folders li.is-high a span.star-icon,.wcp-container .route.is-high>h3>span.star-icon{display:block}.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:#0073aa!important;background-color:rgba(0,115,170,.6)!important;box-shadow:none!important}.mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{background-color:#0073aa!important}.mCSB_outside+.mCSB_scrollTools{right:-15px!important}body.upload-php.eml-grid #wpbody{position:relative!important;top:0!important;bottom:auto!important;left:auto!important;right:auto!important;height:auto}#footer-thankyou{display:none}span.upgrade-message{padding:0;background:#fff;display:inline-block;font-size:12px;color:#000}span.upgrade-message a.pink,span.upgrade-message span.pink{color:#ff5983;text-decoration:none;font-weight:700}.media-toolbar.sticky-media{position:fixed;top:32px;right:18px!important;left:auto}.media-position{width:1px;height:1px}.media-frame.mode-grid .media-toolbar{margin:0!important}.button-disabled{cursor:no-drop;pointer-events:none}.wcp-hide-show-buttons{position:absolute;top:25px;right:-20px;z-index:10001}html[dir=rtl] .wcp-hide-show-buttons{left:-20px;right:auto}.wcp-hide-show-buttons .toggle-buttons{background:#f51366;color:#fff;display:inline-block;margin:0;padding:0;float:left;-webkit-border-top-right-radius:50%;-webkit-border-bottom-right-radius:50%;-moz-border-radius-topright:50%;-moz-border-radius-bottomright:50%;border-top-right-radius:50%;border-bottom-right-radius:50%;display:none;width:20px;height:20px;cursor:pointer;position:relative}.wcp-hide-show-buttons:hover .toggle-buttons:after{content:"";width:100%;height:100%;background:0 0;position:absolute;top:0;left:0;-webkit-border-top-right-radius:50%;-webkit-border-bottom-right-radius:50%;-moz-border-radius-topright:50%;-moz-border-radius-bottomright:50%;border-top-right-radius:50%;border-bottom-right-radius:50%}html[dir=rtl] .wcp-hide-show-buttons .toggle-buttons{border-radius:0;-webkit-border-radius:0;-moz-border-radius:0;-webkit-border-top-left-radius:50%;-webkit-border-bottom-left-radius:50%;-moz-border-radius-top-left:50%;-moz-border-radius-bottom-left:50%;border-top-left-radius:50%;border-bottom-left-radius:50%}html[dir=rtl] .wcp-hide-show-buttons .toggle-buttons span{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.hide-folders-area .wcp-content{width:0!important}.hide-folders-area .wcp-container{display:none}.wcp-hide-show-buttons .toggle-buttons.active{display:block}#wcp-content.no-transition .wcp-container{display:none}button.button.organize-button{vertical-align:middle;text-decoration:none;display:inline-block;font-size:14px;padding:4px 10px;background:#f51366;color:#fff;border:solid 1px #f51366;border-radius:3px;line-height:14px;-webkit-box-shadow:0 3px 5px -3px #333;-moz-box-shadow:0 3px 5px -3px #333;box-shadow:0 3px 5px -3px #333;position:relative}button.button.organize-button:focus,button.button.organize-button:hover{color:#fff}button.button.organize-button:hover:after{content:"";width:100%;height:100%;background:rgba(0,0,0,.1);position:absolute;top:0;left:0}.tree-structure-content ul{margin:0;padding:0}.tree-structure-content{padding:5px 10px;background:#fff;margin:10px 0 15px;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;border:solid 1px #ccc}.tree-structure-content .tree-structure{height:40px;overflow:hidden;transition:.1s;-webkit-transition:.1s;-moz-transition:.1s}.tree-structure-content.active .tree-structure{height:auto}.folders-toggle-button{height:15px;text-align:center;position:relative}.folders-toggle-button span{background:#f51366;color:#fff;height:20px;width:30px;text-align:center;display:block;margin:0 auto;position:absolute;left:0;right:0;bottom:-10px;cursor:pointer;font-family:dashicons;font-size:20px;line-height:20px}.folders-toggle-button span:after{content:"\f347"}.tree-structure-content.active .folders-toggle-button span:after{content:"\f343"}span.media-info-message{vertical-align:middle;line-height:20px;font-weight:700;color:#f51366;padding:0 0 10px 0;display:none!important}span.media-info-message.active{display:block!important}.folder-popup-form{position:fixed;width:100%;height:100%;background:rgba(0,0,0,.5);top:0;left:0;z-index:10001;display:none}.folder-popup-form.disabled{pointer-events:none}.popup-form-content{background:#fff;min-height:100px;width:400px;text-align:center;margin:0 auto;position:absolute;left:0;right:0;top:50%;transform:translate(0,-50%);-webkit-transform:translate(0,-50%);-moz-transform:translate(0,-50%);-o-transform:translate(0,-50%);-ms-transform:translate(0,-50%);padding:20px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;color:#484848}.folder-form-buttons a,.folder-form-buttons button{display:inline-flex;padding:0;text-decoration:none;margin:10px 3px;border-radius:4px;border:solid 1px #1da1f4;line-height:34px;font-weight:700;font-size:14px;box-sizing:border-box;height:36px;cursor:pointer;flex:1;justify-content:center}.folder-form-buttons a span,.folder-form-buttons button span{-webkit-animation:fa-spin .75s infinite linear;animation:fa-spin .75s infinite linear;padding:7px}[data-tooltip]{position:relative}[data-tooltip]::after,[data-tooltip]::before{text-transform:none;font-size:.9em;line-height:1;user-select:none;pointer-events:none;position:absolute;display:none;opacity:0}[data-tooltip]::before{content:'';border:5px solid transparent;z-index:1001}[data-tooltip]::after{content:attr(data-tooltip);font-family:Helvetica,sans-serif;text-align:center;min-width:3em;max-width:21em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:1ch 1.5ch;border-radius:.3ch;box-shadow:0 1em 2em -.5em rgba(0,0,0,.35);background:#333;color:#fff;z-index:1000}[data-tooltip]:hover::after,[data-tooltip]:hover::before{display:block;opacity:1}[data-tooltip]:not([flow])::before,[data-tooltip][flow^=up]::before{bottom:100%;border-bottom-width:0;border-top-color:#333}[data-tooltip]:not([flow])::after,[data-tooltip][flow^=up]::after{bottom:calc(100% + 5px)}[data-tooltip]:not([flow])::after,[data-tooltip]:not([flow])::before,[data-tooltip][flow^=up]::after,[data-tooltip][flow^=up]::before{left:50%;transform:translate(-50%,-.5em)}.wp-core-ui .button-primary.select-all-item-btn{margin:11px 11px 11px 0;display:none!important}.wp-core-ui .button-primary.select-all-item-btn.active{display:inline-block!important}.form-options>ul>li.last.folder-checkbox{padding:5px 0 0}#custom-menu input.checkbox{display:none}#custom-menu.show-folder-checkbox input.checkbox{display:block;margin:5px 0 0 0}#custom-menu.show-folder-checkbox h3.title>.ui-icon>i,#custom-menu.show-folder-checkbox h3.title>.ui-icon>img{display:none!important}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.folder-form-buttons a:focus,.folder-form-buttons a:hover,.folder-form-buttons button:focus,.folder-form-buttons button:hover{color:#fff;outline:0}.folder-form-buttons a:focus{outline:0;outline:0}.form-cancel-btn,a.form-cancel-btn:hover{background-color:#fff;color:#3085d6;outline:0}.form-submit-btn{background-color:#3085d6;color:#fff;outline:0}.add-update-folder-title{display:block;position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;text-align:center;text-transform:none;word-wrap:break-word;font-weight:700;font-size:22px;line-height:26px}.folder-form-message{font-size:15px;line-height:18px;color:#484848;padding:25px 70px}.folder-form-errors{margin:0 0 10px 0;padding:8px 0;background:#ffe4e4;color:#a20000;display:none}.folder-form-errors.active{display:block}.sticky-menu #adminmenuwrap{position:relative!important}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 0 5px;margin:0 0 5px;border-bottom:solid 1px #ccc}.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:#444;padding:7px;border-radius:3px;text-decoration:none;font-size:16px;line-height:18px}.sticky-folders ul li a.active,.sticky-folders ul li a:hover{background:#dfdfdf;border-radius:3px}.sticky-folders ul li a.active-item{background-color:#008ec2!important;color:#fff}.sticky-folders ul li a.active-item img{filter:invert(100%);-webkit-filter:invert(100%)}.sticky-folders ul li a span{display:inline-block;vertical-align:middle;line-height:18px}.sticky-folders ul li a span.sticky-icon{width:18px;height:18px;margin-right:3px}.sticky-folders ul li a span.sticky-icon img{width:100%;height:100%}.sticky-wcp-custom-form a:focus{box-shadow:none;outline:0}span.folder-count{float:right;background:#fff;padding:0 5px;border:solid 1px #ccc;font-size:10px;line-height:16px;border-radius:2px;color:#444!important}span.folder-count:empty{display:none}.sticky-title{font-size:16px;font-weight:700;padding:7px}.sticky-title img{display:inline-block;vertical-align:middle;height:20px;width:20px}.sticky-folder-icon img{width:100%;filter:invert(50%);-webkit-filter:invert(50%)}.dynamic-menu .sticky-folder:hover img{filter:invert(0);-webkit-filter:invert(0)}.form-options>ul>li.last>a.sort-folder-order{width:28px;padding:5px;text-align:center;display:inline-block;box-sizing:border-box}.sort-folder-order svg{width:100%;height:100%;fill:#000}.sort-folder-order:hover svg{fill:#fff}.folder-order{position:relative}.folder-sort-menu{position:absolute;right:0;width:120px;z-index:101;background:#fff;-webkit-box-shadow:0 0 5px 0 rgba(0,0,0,.25);-moz-box-shadow:0 0 5px 0 rgba(0,0,0,.25);box-shadow:0 0 5px 0 rgba(0,0,0,.25);display:none}.folder-order.active .folder-sort-menu{display:block}.folder-order.active .sort-folder-order{background:#404040;color:#fff}.folder-order.active .sort-folder-order svg{fill:#fff}.folder-sort-menu li{display:block;margin:0;padding:0;background:0 0}.folder-sort-menu li a{display:block;margin:0;padding:3px 5px;background:0 0;color:#848484;text-decoration:none;font-size:14px}.folder-sort-menu li a.active,.folder-sort-menu li a:hover{background:#efefef;color:#000}.dynamic-menu.bottom-fix{bottom:0}.folder-form-buttons{display:flex}.folder-group{position:relative;margin:45px auto 15px;padding:0 2px}.folder-grouptextarea{resize:none}.folder-group input,.folder-group textarea{background:0 0;font-size:14px;padding:0 0 0 15px;display:block;width:100%;border-radius:4px;border:1px solid #484848;height:34px;line-height:34px;color:#484848}.folder-group input:focus,.folder-group textarea:focus{outline:0}.folder-group input:focus~label,.folder-group input:valid~label,.folder-group textarea:focus~label,.folder-group textarea:valid~label{top:-9px;background:#fff;padding:0 5px;font-weight:400;font-size:12px;line-height:14px;color:#aeaeae}.folder-group input:focus~.bar:before,.folder-group textarea:focus~.bar:before{width:320px}.folder-group input[type=password]{letter-spacing:.3em}.folder-group label{font-size:14px;font-weight:500;position:absolute;pointer-events:none;left:20px;top:10px;-webkit-transition:.3s ease all;transition:.3s ease all;color:#484848}.folder-group .folder-bar{position:relative;display:block;width:320px}.folder-group .folder-bar:before{content:'';height:2px;width:0;bottom:0;position:absolute;background:#2196f3;-webkit-transition:.3s ease all;transition:.3s ease all;left:0}#custom-menu [class*=" pfolder-"],#custom-menu [class^=pfolder-]{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}@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:folder-icon;src:url(../fonts/folder-icon.eot?44ce3u);src:url(../fonts/folder-icon.eot?44ce3u#iefix) format('embedded-opentype'),url(../fonts/folder-icon.ttf?44ce3u) format('truetype'),url(../fonts/folder-icon.woff?44ce3u) format('woff'),url(../fonts/folder-icon.svg?44ce3u#folder-icon) format('svg');font-weight:400;font-style:normal}[class*=" folder-icon-"],[class^=folder-icon-]{font-family:folder-icon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.folder-icon-expand_more:before{content:"\e90f"}.folder-icon-edit:before{content:"\e910"}.folder-icon-expand_less:before{content:"\e911"}.folder-icon-folder_special:before{content:"\e900"}.folder-icon-insert_drive_file:before{content:"\e901"}.folder-icon-border_color .path1:before{content:"\e902"}.folder-icon-border_color .path2:before{content:"\e903";margin-left:-1em}.folder-icon-file_copy:before{content:"\e904"}.folder-icon-all_inbox:before{content:"\e905"}.folder-icon-delete:before{content:"\e906"}.folder-icon-star_rate:before{content:"\e907"}.folder-icon-arrow_drop_down:before{content:"\e908"}.folder-icon-arrow_right:before{content:"\e909"}.folder-icon-more_vert:before{content:"\e90a"}.folder-icon-folder_shared:before{content:"\e90b"}.folder-icon-folder_open:before{content:"\e90c"}.folder-icon-folder:before{content:"\e90d"}.folder-icon-create_new_folder:before{content:"\e90e"}
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"}
assets/css/new-media.css ADDED
@@ -0,0 +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);.media-modal-content .attachments-browser .media-toolbar-secondary{max-width:66%;width:66%}.media-modal-content .media-frame select.attachment-filters{width:28%!important}#media-attachment-taxonomy-filter,select.media-select-folder{border:solid 1px #ff5983;color:#ff5983;font-weight:700}#media-attachment-taxonomy-filter option,select.media-select-folder option{color:#000}#media-attachment-taxonomy-filter option:first-child,select.media-select-folder option:first-child{font-weight:700}.media-frame .uploader-inline{z-index:1}#wp-media-grid .media-toolbar-secondary{float:left;height:100%;padding:0 0 10px 0}.media-popup-form{background:#fff;min-height:100px;width:400px;text-align:center;margin:0 auto;position:absolute;left:0;right:0;top:50%;transform:translate(0,-50%);-webkit-transform:translate(0,-50%);-moz-transform:translate(0,-50%);-o-transform:translate(0,-50%);-ms-transform:translate(0,-50%);padding:20px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;color:#484848;font-family:Roboto,sans-serif}.media-popup-form .add-update-folder-title{display:block;position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;text-align:center;text-transform:none;word-wrap:break-word;font-weight:700;font-size:22px;line-height:26px}.media-popup-form .folder-form-errors{margin:0 0 10px 0;padding:8px 0;background:#ffe4e4;color:#a20000;display:none}.folder-form-buttons{display:flex;text-align:center;flex-wrap:wrap;align-items:center;justify-content:center}.media-popup-form .folder-form-buttons a,.media-popup-form .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;color:#fff;flex:1;text-align:center;justify-content:center;outline:0}.media-popup-form .folder-form-buttons a.remove-media-form{background:#fff;color:#1da1f4}.media-popup-form .form-submit-btn{background-color:#3085d6}.media-popup-form .folder-form-buttons button:hover{color:#fff;background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.media-popup-form .folder-form-message{margin:25px auto;font-size:15px;line-height:18px;color:#484848;width:310px}.folder-media-popup-form{position:fixed;width:100%;height:100%;background:rgba(0,0,0,.5);top:0;left:0;z-index:10001}.form-cancel-btn{background-color:#aaa}@-webkit-keyframes rotation{from{-webkit-transform:rotate(0)}to{-webkit-transform:rotate(359deg)}}.spinner-border{display:inline-block;width:16px;height:16px;vertical-align:text-bottom;border:3px solid #fff;border-right-color:transparent;border-radius:50%;-webkit-animation:rotation .5s infinite linear;animation:rotation .5s infinite linear}.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}.highlight{background-color:#e4f2fd;color:#000}.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}.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 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}
assets/css/page-post-media.css ADDED
@@ -0,0 +1,1090 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .folder-custom-menu {
2
+ width: 275px;
3
+ z-index: 10001;
4
+ position: absolute;
5
+ height: 100%;
6
+ border-right: solid 1px #ddd;
7
+ background: #f1f1f1;
8
+ }
9
+
10
+ .media-frame.hide-menu .media-frame-content, .media-frame.hide-menu .media-frame-router, .media-frame.hide-menu .media-frame-title, .media-frame.hide-menu .media-frame-toolbar {
11
+ left: 275px
12
+ }
13
+
14
+ .wcp-container {
15
+ padding: 20px 20px 20px 16px
16
+ }
17
+
18
+ .form-title {
19
+ font-size: 23px;
20
+ font-weight: 400;
21
+ margin: 0;
22
+ padding: 0 0 10px 0;
23
+ line-height: 29px;
24
+ min-height: 36px
25
+ }
26
+
27
+ .media-frame a.add-new-folder {
28
+ text-decoration: none;
29
+ display: block;
30
+ float: right;
31
+ font-size: 14px;
32
+ padding: 4px 10px 4px 4px;
33
+ background: #f51366;
34
+ color: #fff;
35
+ border: solid 1px #f51366;
36
+ border-radius: 4px;
37
+ line-height: 24px;
38
+ position: relative
39
+ }
40
+
41
+ .add-new-folder span {
42
+ display: block;
43
+ float: left;
44
+ line-height: 24px;
45
+ font-size: 14px;
46
+ margin-right: 5px
47
+ }
48
+
49
+ span.create_new_folder {
50
+ width: 26px;
51
+ height: 26px;
52
+ line-height: 26px;
53
+ font-size: 14px;
54
+ background: rgba(255, 255, 255, .4);
55
+ backdrop-filter: blur(16px);
56
+ border-radius: 4px;
57
+ text-align: center;
58
+ margin: 0 15px 0 0
59
+ }
60
+
61
+ span.folder-loader-ajax {
62
+ float: right;
63
+ margin: 0;
64
+ line-height: 30px;
65
+ display: none
66
+ }
67
+
68
+ .folder-loader-ajax.active {
69
+ display: inline-block
70
+ }
71
+
72
+ @-webkit-keyframes scaleAnimation {
73
+ 0% {
74
+ opacity: 0;
75
+ -webkit-transform: scale(1.5);
76
+ transform: scale(1.5)
77
+ }
78
+ 100% {
79
+ opacity: 1;
80
+ -webkit-transform: scale(1);
81
+ transform: scale(1)
82
+ }
83
+ }
84
+
85
+ @keyframes scaleAnimation {
86
+ 0% {
87
+ opacity: 0;
88
+ -webkit-transform: scale(1.5);
89
+ transform: scale(1.5)
90
+ }
91
+ 100% {
92
+ opacity: 1;
93
+ -webkit-transform: scale(1);
94
+ transform: scale(1)
95
+ }
96
+ }
97
+
98
+ @-webkit-keyframes drawCircle {
99
+ 0% {
100
+ stroke-dashoffset: 151px
101
+ }
102
+ 100% {
103
+ stroke-dashoffset: 0
104
+ }
105
+ }
106
+
107
+ @keyframes drawCircle {
108
+ 0% {
109
+ stroke-dashoffset: 151px
110
+ }
111
+ 100% {
112
+ stroke-dashoffset: 0
113
+ }
114
+ }
115
+
116
+ @-webkit-keyframes drawCheck {
117
+ 0% {
118
+ stroke-dashoffset: 36px
119
+ }
120
+ 100% {
121
+ stroke-dashoffset: 0
122
+ }
123
+ }
124
+
125
+ @keyframes drawCheck {
126
+ 0% {
127
+ stroke-dashoffset: 36px
128
+ }
129
+ 100% {
130
+ stroke-dashoffset: 0
131
+ }
132
+ }
133
+
134
+ @-webkit-keyframes fadeOut {
135
+ 0% {
136
+ opacity: 1
137
+ }
138
+ 100% {
139
+ opacity: 0
140
+ }
141
+ }
142
+
143
+ @keyframes fadeOut {
144
+ 0% {
145
+ opacity: 1
146
+ }
147
+ 100% {
148
+ opacity: 0
149
+ }
150
+ }
151
+
152
+ @-webkit-keyframes fadeIn {
153
+ 0% {
154
+ opacity: 0
155
+ }
156
+ 100% {
157
+ opacity: 1
158
+ }
159
+ }
160
+
161
+ @keyframes fadeIn {
162
+ 0% {
163
+ opacity: 0
164
+ }
165
+ 100% {
166
+ opacity: 1
167
+ }
168
+ }
169
+
170
+ #successAnimationCircle {
171
+ stroke-dasharray: 151px 151px;
172
+ stroke: #2ce0a7
173
+ }
174
+
175
+ #successAnimationCheck {
176
+ stroke-dasharray: 36px 36px;
177
+ stroke: #2ce0a7
178
+ }
179
+
180
+ #successAnimationResult {
181
+ fill: #2ce0a7;
182
+ opacity: 0
183
+ }
184
+
185
+ svg#successAnimation {
186
+ width: 30px;
187
+ height: 34px;
188
+ padding: 0;
189
+ display: none;
190
+ float: left
191
+ }
192
+
193
+ #successAnimation.active {
194
+ display: inline-block
195
+ }
196
+
197
+ .folder-loader-ajax img {
198
+ display: none
199
+ }
200
+
201
+ #successAnimation.animated {
202
+ -webkit-animation: 1s ease-out 0s 1 both scaleAnimation;
203
+ animation: 1s ease-out 0s 1 both scaleAnimation
204
+ }
205
+
206
+ #successAnimation.animated #successAnimationCircle {
207
+ -webkit-animation: 1s cubic-bezier(.77, 0, .175, 1) 0s 1 both drawCircle, .3s linear .9s 1 both fadeOut;
208
+ animation: 1s cubic-bezier(.77, 0, .175, 1) 0s 1 both drawCircle, .3s linear .9s 1 both fadeOut
209
+ }
210
+
211
+ #successAnimation.animated #successAnimationCheck {
212
+ -webkit-animation: 1s cubic-bezier(.77, 0, .175, 1) 0s 1 both drawCheck, .3s linear .9s 1 both fadeOut;
213
+ animation: 1s cubic-bezier(.77, 0, .175, 1) 0s 1 both drawCheck, .3s linear .9s 1 both fadeOut
214
+ }
215
+
216
+ #successAnimation.animated #successAnimationResult {
217
+ -webkit-animation: .3s linear .9s both fadeIn;
218
+ animation: .3s linear .9s both fadeIn
219
+ }
220
+
221
+ .form-options {
222
+ background: #fff;
223
+ padding: 5px;
224
+ margin: 0 0;
225
+ border-radius: 4px;
226
+ box-shadow: 0 4px 21px rgba(7, 16, 28, .1)
227
+ }
228
+
229
+ .wcp-container ul {
230
+ list-style: none
231
+ }
232
+
233
+ .form-options ul {
234
+ margin: 0;
235
+ padding: 0
236
+ }
237
+
238
+ .form-options > ul > li {
239
+ display: inline-block;
240
+ margin: 0 2px 0 0;
241
+ vertical-align: top
242
+ }
243
+
244
+ .form-options > ul > li.last {
245
+ margin: 0
246
+ }
247
+
248
+ .form-options > ul > li.last.folder-checkbox {
249
+ padding: 5px 0 0
250
+ }
251
+
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
+ }
262
+
263
+ .form-options span.icon {
264
+ font-size: 12px;
265
+ display: inline-block;
266
+ vertical-align: baseline;
267
+ color: #a4c0d2
268
+ }
269
+
270
+ .wcp-hide-show-buttons {
271
+ display: none
272
+ }
273
+
274
+ .folder-order {
275
+ position: relative
276
+ }
277
+
278
+ .form-options > ul > li.last > a.sort-folder-order {
279
+ width: 28px;
280
+ padding: 5px;
281
+ text-align: center;
282
+ display: inline-block;
283
+ box-sizing: border-box
284
+ }
285
+
286
+ .folder-sort-menu {
287
+ position: absolute;
288
+ right: 0;
289
+ width: 120px;
290
+ z-index: 101;
291
+ background: #fff;
292
+ -webkit-box-shadow: 0 0 5px 0 rgba(0, 0, 0, .25);
293
+ -moz-box-shadow: 0 0 5px 0 rgba(0, 0, 0, .25);
294
+ box-shadow: 0 0 5px 0 rgba(0, 0, 0, .25);
295
+ display: none
296
+ }
297
+
298
+ .folder-sort-menu li {
299
+ display: block;
300
+ margin: 0;
301
+ padding: 0;
302
+ background: 0 0
303
+ }
304
+
305
+ .folder-sort-menu li a {
306
+ display: block;
307
+ margin: 0;
308
+ padding: 3px 5px;
309
+ background: 0 0;
310
+ color: #848484;
311
+ text-decoration: none;
312
+ font-size: 14px
313
+ }
314
+
315
+ span.upgrade-message {
316
+ padding: 0;
317
+ background: #fff;
318
+ display: inline-block;
319
+ font-size: 12px;
320
+ color: #000
321
+ }
322
+
323
+ span.upgrade-message a.pink, span.upgrade-message span.pink {
324
+ color: #ff5983;
325
+ text-decoration: none;
326
+ font-weight: 700
327
+ }
328
+
329
+ .form-loader {
330
+ width: 100%;
331
+ height: 5px;
332
+ margin: 0 0 10px
333
+ }
334
+
335
+ .form-loader-count {
336
+ width: 0;
337
+ height: 5px;
338
+ background: url(../images/form-loader.png);
339
+ transition: all 2.5s linear;
340
+ -webkit-transition: all 2s linear;
341
+ -moz-transition: all 2.5s linear
342
+ }
343
+
344
+ .top-settings {
345
+ background: #fff;
346
+ padding: 10px 10px 5px;
347
+ -webkit-border-top-left-radius: 4px;
348
+ -webkit-border-top-right-radius: 4px;
349
+ -moz-border-radius-topleft: 4px;
350
+ -moz-border-radius-topright: 4px;
351
+ border-top-left-radius: 4px;
352
+ border-top-right-radius: 4px;
353
+ box-shadow: 0 4px 21px rgba(7, 16, 28, .1)
354
+ }
355
+
356
+ .header-posts a, .un-categorised-items a {
357
+ color: #444;
358
+ padding: 7px;
359
+ display: block;
360
+ text-decoration: none;
361
+ font-size: 14px;
362
+ border-radius: 4px;
363
+ line-height: 18px
364
+ }
365
+
366
+ .header-posts a.active-item, .orange-bg > span, .un-categorised-items.active-item, .wcp-container .route.active-item > h3.title {
367
+ background-color: #fa166b !important;
368
+ color: #fff
369
+ }
370
+
371
+ .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 {
372
+ color: #fff !important
373
+ }
374
+
375
+ .wcp-icon {
376
+ display: inline-block;
377
+ font-size: 16px;
378
+ vertical-align: top;
379
+ margin-right: 3px
380
+ }
381
+
382
+ span.total-count {
383
+ float: right;
384
+ font-size: 12px;
385
+ line-height: 16px
386
+ }
387
+
388
+ .header-posts a.active-item span.total-count, .un-categorised-items.active-item a span {
389
+ color: #fff !important
390
+ }
391
+
392
+ .header-posts a:hover, .un-categorised-items.active-item, .un-categorised-items:hover {
393
+ background: rgba(250, 22, 107, .08);
394
+ border-radius: 4px;
395
+ color: #444
396
+ }
397
+
398
+ .un-categorised-items.active-item a, .un-categorised-items.active-item a:hover {
399
+ color: #fff
400
+ }
401
+
402
+ .un-categorised-items a:hover, .un-categorised-items:hover a {
403
+ color: #444
404
+ }
405
+
406
+ .media-frame .folder-custom-menu a:focus {
407
+ outline: 0;
408
+ box-shadow: none
409
+ }
410
+
411
+ .sticky-folders {
412
+ display: none;
413
+ padding: 0 0 5px;
414
+ margin: 0 0 5px;
415
+ border-bottom: solid 1px #ccc
416
+ }
417
+
418
+ .sticky-title {
419
+ font-size: 16px;
420
+ font-weight: 700;
421
+ padding: 7px
422
+ }
423
+
424
+ div#custom-menu {
425
+ padding: 10px;
426
+ background: #fff;
427
+ box-shadow: 0 4px 21px rgba(7, 16, 28, .1)
428
+ }
429
+
430
+ .wcp-container .space {
431
+ position: relative;
432
+ list-style-type: none;
433
+ border: 0;
434
+ margin: 0 0 0 20px;
435
+ padding: 0 0 30px 0;
436
+ width: 40px;
437
+ top: 30px;
438
+ height: 100%;
439
+ z-index: 1
440
+ }
441
+
442
+ .wcp-container .first-space {
443
+ margin-left: 0;
444
+ top: 0;
445
+ padding: 0
446
+ }
447
+
448
+ .wcp-container .route {
449
+ position: relative;
450
+ list-style-type: none;
451
+ border: 0;
452
+ margin: 0;
453
+ padding: 0;
454
+ top: 0;
455
+ max-height: 100% !important;
456
+ width: 100%;
457
+ border-radius: 2px;
458
+ z-index: -1;
459
+ background: 0 0
460
+ }
461
+
462
+ .wcp-container .route .title {
463
+ position: absolute;
464
+ border: 0;
465
+ margin: 0;
466
+ padding: 0;
467
+ height: 30px;
468
+ width: 200px;
469
+ text-indent: 28px;
470
+ background: 0 0;
471
+ box-shadow: none;
472
+ font-size: 13px;
473
+ line-height: 26px;
474
+ border-radius: 4px;
475
+ -webkit-border-radius: 4px;
476
+ -moz-border-radius: 4px;
477
+ overflow: hidden;
478
+ font-weight: 400
479
+ }
480
+
481
+ .wcp-container .route span {
482
+ position: absolute;
483
+ top: 2px;
484
+ left: 0;
485
+ z-index: 10;
486
+ width: 20px;
487
+ height: 18px;
488
+ text-indent: 0;
489
+ font-size: 20px;
490
+ background: no-repeat;
491
+ text-align: center
492
+ }
493
+
494
+ .wcp-container .route span.ui-icon {
495
+ line-height: 24px;
496
+ font-size: 18px;
497
+ cursor: move;
498
+ left: 5px;
499
+ top: 2px;
500
+ height: 26px
501
+ }
502
+
503
+ #custom-menu .wcp-icon {
504
+ font-size: 16px !important;
505
+ line-height: 24px
506
+ }
507
+
508
+ #custom-menu input.checkbox {
509
+ display: none
510
+ }
511
+
512
+ .wcp-container .route span.title-text {
513
+ position: relative;
514
+ top: auto;
515
+ left: auto;
516
+ display: inline-block;
517
+ font-size: 16px;
518
+ line-height: 30px;
519
+ height: 30px;
520
+ width: calc(100% - 100px);
521
+ overflow: hidden;
522
+ white-space: nowrap;
523
+ text-align: left
524
+ }
525
+
526
+ .sticky-folders li a span.update-inline-record, .wcp-container .route span.update-inline-record {
527
+ position: relative;
528
+ left: auto;
529
+ top: 0;
530
+ float: right;
531
+ width: 0;
532
+ height: 30px;
533
+ font-size: 16px;
534
+ overflow: hidden;
535
+ transition: all .25s linear;
536
+ -webkit-transition: all .25s linear;
537
+ -moz-transition: all .25s linear;
538
+ line-height: 30px
539
+ }
540
+
541
+ #custom-menu [class*=" pfolder-"], #custom-menu [class^=pfolder-] {
542
+ font-size: 12px
543
+ }
544
+
545
+ .sticky-folders li a span.star-icon, .wcp-container .route span.star-icon {
546
+ position: relative;
547
+ top: 2px;
548
+ left: auto;
549
+ float: right;
550
+ speak: none;
551
+ color: #ffc90e;
552
+ display: none;
553
+ font-size: 14px
554
+ }
555
+
556
+ .wcp-container .route .title .folder-sticky-icon, .wcp-container .route .title .move-folder-icon {
557
+ float: right;
558
+ position: relative;
559
+ top: 0;
560
+ left: auto;
561
+ width: 20px;
562
+ height: 30px;
563
+ line-height: 26px;
564
+ display: none
565
+ }
566
+
567
+ .wcp-container .route .title .folder-sticky-icon, .wcp-container .route .title .move-folder-icon {
568
+ float: right;
569
+ position: relative;
570
+ top: 0;
571
+ left: auto;
572
+ width: 20px;
573
+ height: 30px;
574
+ line-height: 26px;
575
+ display: none
576
+ }
577
+
578
+ .nav-icon {
579
+ display: none;
580
+ left: -10px !important;
581
+ cursor: pointer
582
+ }
583
+
584
+ #custom-menu .route .nav-icon .wcp-icon {
585
+ font-size: 9px !important;
586
+ color: #fa166b;
587
+ font-weight: 700;
588
+ transform: rotate(-90deg);
589
+ transition: all .25s linear
590
+ }
591
+
592
+ .header-posts a, .un-categorised-items a, .wcp-container .route span.title-text {
593
+ font-size: 12px
594
+ }
595
+
596
+ .wcp-container .route span.total-count {
597
+ position: relative;
598
+ font-size: 10px;
599
+ float: right;
600
+ text-align: center;
601
+ width: auto;
602
+ display: block;
603
+ margin: 4px 8px 3px 3px;
604
+ color: #23282d !important;
605
+ line-height: 16px;
606
+ height: 16px
607
+ }
608
+
609
+ .has-sub-tree > .nav-icon {
610
+ display: block
611
+ }
612
+
613
+ .has-sub-tree > ul.ui-sortable li {
614
+ display: none
615
+ }
616
+
617
+ .has-sub-tree.active > ul.ui-sortable > li {
618
+ display: block
619
+ }
620
+
621
+ body:not(.no-hover-css) .wcp-container .route .title:hover {
622
+ background: rgba(250, 22, 107, .08);
623
+ cursor: pointer
624
+ }
625
+
626
+ 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 {
627
+ display: block
628
+ }
629
+
630
+ 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 {
631
+ display: none !important
632
+ }
633
+
634
+ 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 {
635
+ width: 18px
636
+ }
637
+ body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon .pfolder-folder-close:before, body:not(.no-hover-css) .wcp-container .route .title.wcp-drop-hover .ui-icon .pfolder-folder-close:before {
638
+ content: "\e901" !important;
639
+ }
640
+ .sticky-folders li.is-high a span.star-icon, .wcp-container .route.is-high > h3 > span.star-icon {
641
+ display: block
642
+ }
643
+
644
+ .dynamic-menu {
645
+ position: absolute;
646
+ left: 50px;
647
+ background: #fff;
648
+ width: 170px;
649
+ padding: 0;
650
+ z-index: 101;
651
+ -webkit-box-shadow: 0 0 5px 0 rgba(0, 0, 0, .25);
652
+ -moz-box-shadow: 0 0 5px 0 rgba(0, 0, 0, .25);
653
+ box-shadow: 0 0 5px 0 rgba(0, 0, 0, .25)
654
+ }
655
+
656
+ .dynamic-menu li {
657
+ position: relative;
658
+ width: 100%;
659
+ display: inline-block !important;
660
+ padding: 2px 0;
661
+ margin: 0
662
+ }
663
+
664
+ .dynamic-menu li.new-folder {
665
+ border-bottom: solid 1px #d8d8d8
666
+ }
667
+
668
+ .dynamic-menu a {
669
+ text-decoration: none;
670
+ color: #848484;
671
+ position: relative;
672
+ display: block;
673
+ padding: 5px 10px;
674
+ line-height: 18px;
675
+ white-space: nowrap
676
+ }
677
+
678
+ .dynamic-menu ul > li > a > span, .dynamic-menu ul > li > a > span span {
679
+ position: relative !important;
680
+ display: inline-block;
681
+ vertical-align: middle;
682
+ margin-right: 5px;
683
+ top: auto !important;
684
+ width: 20px !important;
685
+ height: 20px !important;
686
+ line-height: 14px
687
+ }
688
+
689
+ #custom-menu .dynamic-menu ul > li > a .sticky-pin {
690
+ line-height: 20px
691
+ }
692
+
693
+ #custom-menu .dynamic-menu ul > li > a .sticky-pin i {
694
+ font-size: 16px !important
695
+ }
696
+
697
+ li.active-menu {
698
+ z-index: 2 !important
699
+ }
700
+
701
+ .dynamic-menu a.active, .dynamic-menu a:hover {
702
+ background: #efefef;
703
+ color: #000
704
+ }
705
+
706
+ .folder-popup-form {
707
+ position: fixed;
708
+ width: 100%;
709
+ height: 100%;
710
+ background: rgba(0, 0, 0, .5);
711
+ top: 0;
712
+ left: 0;
713
+ z-index: 10001;
714
+ display: none
715
+ }
716
+
717
+ .popup-form-content {
718
+ background: #fff;
719
+ min-height: 100px;
720
+ width: 400px;
721
+ text-align: center;
722
+ margin: 0 auto;
723
+ position: absolute;
724
+ left: 0;
725
+ right: 0;
726
+ top: 50%;
727
+ transform: translate(0, -50%);
728
+ -webkit-transform: translate(0, -50%);
729
+ -moz-transform: translate(0, -50%);
730
+ -o-transform: translate(0, -50%);
731
+ -ms-transform: translate(0, -50%);
732
+ padding: 20px;
733
+ -webkit-border-radius: 4px;
734
+ -moz-border-radius: 4px;
735
+ border-radius: 4px;
736
+ color: #484848
737
+ }
738
+
739
+ .add-update-folder-title {
740
+ display: block;
741
+ position: relative;
742
+ max-width: 100%;
743
+ margin: 0 0 .4em;
744
+ padding: 0;
745
+ color: #595959;
746
+ text-align: center;
747
+ text-transform: none;
748
+ word-wrap: break-word;
749
+ font-weight: 700;
750
+ font-size: 22px;
751
+ line-height: 26px
752
+ }
753
+
754
+ .folder-group {
755
+ position: relative;
756
+ margin: 45px auto 15px;
757
+ padding: 0 2px
758
+ }
759
+
760
+ .folder-group input, .folder-group textarea {
761
+ background: 0 0;
762
+ font-size: 14px;
763
+ padding: 0 0 0 15px;
764
+ display: block;
765
+ width: 100%;
766
+ border-radius: 4px;
767
+ border: 1px solid #484848;
768
+ height: 34px;
769
+ line-height: 34px;
770
+ color: #484848;
771
+ outline: 0
772
+ }
773
+
774
+ .highlight {
775
+ background-color: #e4f2fd;
776
+ color: #000
777
+ }
778
+
779
+ .folder-group .folder-bar {
780
+ position: relative;
781
+ display: block;
782
+ width: 320px
783
+ }
784
+
785
+ .folder-group label {
786
+ font-size: 14px;
787
+ font-weight: 500;
788
+ position: absolute;
789
+ pointer-events: none;
790
+ left: 20px;
791
+ top: 10px;
792
+ -webkit-transition: .3s ease all;
793
+ transition: .3s ease all;
794
+ color: #484848
795
+ }
796
+
797
+ .folder-form-errors {
798
+ margin: 0 0 10px 0;
799
+ padding: 8px 0;
800
+ background: #ffe4e4;
801
+ color: #a20000;
802
+ display: none
803
+ }
804
+
805
+ .folder-form-buttons {
806
+ display: flex
807
+ }
808
+
809
+ .folder-form-buttons a, .folder-form-buttons button {
810
+ display: inline-flex;
811
+ padding: 0;
812
+ text-decoration: none;
813
+ margin: 10px 3px;
814
+ border-radius: 4px;
815
+ border: solid 1px #1da1f4;
816
+ line-height: 34px;
817
+ font-weight: 700;
818
+ font-size: 14px;
819
+ box-sizing: border-box;
820
+ height: 36px;
821
+ cursor: pointer;
822
+ flex: 1;
823
+ justify-content: center;
824
+ outline: 0;
825
+ color: #fff
826
+ }
827
+
828
+ .folder-form-buttons .form-cancel-btn, .folder-form-buttons a.form-cancel-btn:hover {
829
+ background-color: #fff;
830
+ color: #3085d6;
831
+ outline: 0
832
+ }
833
+
834
+ .form-submit-btn, .form-submit-btn:hover {
835
+ background-color: #3085d6;
836
+ color: #fff !important;
837
+ outline: 0
838
+ }
839
+
840
+ .folder-group input:focus ~ label, .folder-group input:valid ~ label, .folder-group textarea:focus ~ label, .folder-group textarea:valid ~ label {
841
+ top: -9px;
842
+ background: #fff;
843
+ padding: 0 5px;
844
+ font-weight: 400;
845
+ font-size: 12px;
846
+ line-height: 14px;
847
+ color: #aeaeae
848
+ }
849
+
850
+ #no-more-folder-credit .folder-form-message {
851
+ margin: 20px 80px;
852
+ font-size: 14px
853
+ }
854
+
855
+ .folder-form-message {
856
+ margin: 25px auto;
857
+ font-size: 15px;
858
+ line-height: 18px;
859
+ color: #484848;
860
+ width: 310px
861
+ }
862
+
863
+ @-webkit-keyframes fa-spin {
864
+ 0% {
865
+ -webkit-transform: rotate(0);
866
+ transform: rotate(0)
867
+ }
868
+ 100% {
869
+ -webkit-transform: rotate(359deg);
870
+ transform: rotate(359deg)
871
+ }
872
+ }
873
+
874
+ .folder-form-buttons a span, .folder-form-buttons button span {
875
+ -webkit-animation: fa-spin .75s infinite linear;
876
+ animation: fa-spin .75s infinite linear;
877
+ padding: 7px
878
+ }
879
+
880
+ [data-tooltip] {
881
+ position: relative
882
+ }
883
+
884
+ [data-tooltip]::after, [data-tooltip]::before {
885
+ text-transform: none;
886
+ font-size: .9em;
887
+ line-height: 1;
888
+ user-select: none;
889
+ pointer-events: none;
890
+ position: absolute;
891
+ display: none;
892
+ opacity: 0
893
+ }
894
+
895
+ [data-tooltip]::before {
896
+ content: '';
897
+ border: 5px solid transparent;
898
+ z-index: 1001
899
+ }
900
+
901
+ [data-tooltip]::after {
902
+ content: attr(data-tooltip);
903
+ font-family: Helvetica, sans-serif;
904
+ text-align: center;
905
+ min-width: 3em;
906
+ max-width: 21em;
907
+ white-space: nowrap;
908
+ overflow: hidden;
909
+ text-overflow: ellipsis;
910
+ padding: 1ch 1.5ch;
911
+ border-radius: .3ch;
912
+ box-shadow: 0 1em 2em -.5em rgba(0, 0, 0, .35);
913
+ background: #333;
914
+ color: #fff;
915
+ z-index: 1000
916
+ }
917
+
918
+ [data-tooltip]:hover::after, [data-tooltip]:hover::before {
919
+ display: block;
920
+ opacity: 1
921
+ }
922
+
923
+ [data-tooltip]:not([flow])::before, [data-tooltip][flow^=up]::before {
924
+ bottom: 100%;
925
+ border-bottom-width: 0;
926
+ border-top-color: #333
927
+ }
928
+
929
+ [data-tooltip]:not([flow])::after, [data-tooltip][flow^=up]::after {
930
+ bottom: calc(100% + 5px)
931
+ }
932
+
933
+ [data-tooltip]:not([flow])::after, [data-tooltip]:not([flow])::before, [data-tooltip][flow^=up]::after, [data-tooltip][flow^=up]::before {
934
+ left: 50%;
935
+ transform: translate(-50%, -.5em)
936
+ }
937
+
938
+ .folder-order.active .folder-sort-menu {
939
+ display: block
940
+ }
941
+
942
+ .folder-sort-menu li a.active, .folder-sort-menu li a:hover {
943
+ background: #efefef;
944
+ color: #000
945
+ }
946
+
947
+ .media-toolbar-secondary select {
948
+ width: 30%!important;
949
+ width: calc(30% - 10px)!important;
950
+ margin: 32px 10px 0 0!important;
951
+ }
952
+
953
+ .media-frame .uploader-inline {
954
+ z-index: 1
955
+ }
956
+
957
+ .wcp-drop-hover {
958
+ background: #fa166b !important;
959
+ z-index: 2 !important;
960
+ color: #fff !important
961
+ }
962
+
963
+ .wcp-drop-hover i {
964
+ color: #fff !important
965
+ }
966
+
967
+ .selected-items {
968
+ background: #0073aa;
969
+ color: #fff;
970
+ padding: 10px 20px;
971
+ border-radius: 5px;
972
+ -moz-border-radius: 5px;
973
+ -webkit-border-radius: 5px;
974
+ margin-top: 0;
975
+ cursor: none;
976
+ font-size: 12px;
977
+ z-index: 10001 !important
978
+ }
979
+
980
+ .media-frame, .media-frame .attachments-browser, .media-frame-content {
981
+ overflow: inherit
982
+ }
983
+
984
+ #custom-menu .route.active .nav-icon .wcp-icon {
985
+ transform: rotate(0);
986
+ -webkit-transform: rotate(0)
987
+ }
988
+
989
+ .expand-collapse.all-open span.icon {
990
+ transform: rotate(180deg);
991
+ -webkit-transform: rotate(180deg)
992
+ }
993
+
994
+ .folder-search-form {
995
+ padding: 0 0 10px 0;
996
+ position: relative
997
+ }
998
+
999
+ .folder-search-form input {
1000
+ background: #fff;
1001
+ border: 1px solid #dbdbdb !important;
1002
+ box-sizing: border-box;
1003
+ border-radius: 4px;
1004
+ height: 32px;
1005
+ line-height: 32px;
1006
+ box-sizing: border-box;
1007
+ padding: 0 5px !important;
1008
+ width: 100%;
1009
+ box-shadow: none !important;
1010
+ outline: 0
1011
+ }
1012
+
1013
+ .folder-search-form span {
1014
+ position: absolute;
1015
+ color: #aeaeae;
1016
+ right: 0;
1017
+ top: 0;
1018
+ height: 32px;
1019
+ line-height: 32px;
1020
+ width: 32px;
1021
+ text-align: center
1022
+ }
1023
+
1024
+ .folder-separator {
1025
+ padding: 0 10px;
1026
+ height: 1px;
1027
+ background: #e9e5e5;
1028
+ margin: 0 0 10px 0
1029
+ }
1030
+
1031
+ .wcp-drop-hover i {
1032
+ color: #fff !important
1033
+ }
1034
+
1035
+ .ui-draggable-dragging {
1036
+ z-index: 10051 !important
1037
+ }
1038
+
1039
+ .attachments.ui-sortable.ui-draggable-dragging {
1040
+ z-index: 10001 !important
1041
+ }
1042
+
1043
+ #custom-menu.has-filter li.route {
1044
+ display: none !important
1045
+ }
1046
+
1047
+ #custom-menu.has-filter li.route.has-search {
1048
+ display: block !important
1049
+ }
1050
+
1051
+ #custom-menu.has-filter h3 span.title-text.has-search-text {
1052
+ font-weight: 700
1053
+ }
1054
+
1055
+ .form-options > ul > li > a:hover {
1056
+ background: #404040;
1057
+ color: #fff
1058
+ }
1059
+
1060
+ #custom-menu.show-folder-checkbox input.checkbox {
1061
+ display: block;
1062
+ margin: 5px 0 0 0
1063
+ }
1064
+
1065
+ #custom-menu.show-folder-checkbox h3.title > .ui-icon > i, #custom-menu.show-folder-checkbox h3.title > .ui-icon > img {
1066
+ display: none !important
1067
+ }
1068
+
1069
+ .plugin-button {
1070
+ float: right;
1071
+ }
1072
+ .plugin-button.d-block {
1073
+ float: none;
1074
+ }
1075
+ .plugin-title {
1076
+ display: inline-block;
1077
+ }
1078
+ .form-options .form-options {
1079
+ background: transparent;
1080
+ padding: 0;
1081
+ box-shadow: none;
1082
+ }
1083
+ .attachments-browser .media-toolbar-secondary {
1084
+ width: 78%;
1085
+ max-width: inherit;
1086
+ }
1087
+ .media-toolbar-primary.search-form {
1088
+ width: 20%;
1089
+ max-width: inherit;
1090
+ }
assets/css/page-post-media.min.css ADDED
@@ -0,0 +1 @@
 
1
+ .folder-custom-menu{width:275px;z-index:10001;position:absolute;height:100%;border-right:solid 1px #ddd;background:#f1f1f1}.media-frame.hide-menu .media-frame-content,.media-frame.hide-menu .media-frame-router,.media-frame.hide-menu .media-frame-title,.media-frame.hide-menu .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}.wcp-hide-show-buttons{display:none}.folder-order{position:relative}.form-options>ul>li.last>a.sort-folder-order{width:28px;padding:5px;text-align:center;display:inline-block;box-sizing:border-box}.folder-sort-menu{position:absolute;right:0;width:120px;z-index:101;background:#fff;-webkit-box-shadow:0 0 5px 0 rgba(0,0,0,.25);-moz-box-shadow:0 0 5px 0 rgba(0,0,0,.25);box-shadow:0 0 5px 0 rgba(0,0,0,.25);display:none}.folder-sort-menu li{display:block;margin:0;padding:0;background:0 0}.folder-sort-menu li a{display:block;margin:0;padding:3px 5px;background:0 0;color:#848484;text-decoration:none;font-size:14px}span.upgrade-message{padding:0;background:#fff;display:inline-block;font-size:12px;color:#000}span.upgrade-message a.pink,span.upgrade-message span.pink{color:#ff5983;text-decoration:none;font-weight:700}.form-loader{width:100%;height:5px;margin:0 0 10px}.form-loader-count{width:0;height:5px;background:url(../images/form-loader.png);transition:all 2.5s linear;-webkit-transition:all 2s linear;-moz-transition:all 2.5s linear}.top-settings{background:#fff;padding:10px 10px 5px;-webkit-border-top-left-radius:4px;-webkit-border-top-right-radius:4px;-moz-border-radius-topleft:4px;-moz-border-radius-topright:4px;border-top-left-radius:4px;border-top-right-radius:4px;box-shadow:0 4px 21px rgba(7,16,28,.1)}.header-posts a,.un-categorised-items a{color:#444;padding:7px;display:block;text-decoration:none;font-size:14px;border-radius:4px;line-height:18px}.header-posts a.active-item,.orange-bg>span,.un-categorised-items.active-item,.wcp-container .route.active-item>h3.title{background-color:#fa166b!important;color:#fff}.header-posts a.active-item span.total-count,.un-categorised-items.active-item span.total-count,.wcp-container .route.active-item>h3.title span.total-count{color:#fff!important}.wcp-icon{display:inline-block;font-size:16px;vertical-align:top;margin-right:3px}span.total-count{float:right;font-size:12px;line-height:16px}.header-posts a.active-item span.total-count,.un-categorised-items.active-item a span{color:#fff!important}.header-posts a:hover,.un-categorised-items.active-item,.un-categorised-items:hover{background:rgba(250,22,107,.08);border-radius:4px;color:#444}.un-categorised-items.active-item a,.un-categorised-items.active-item a:hover{color:#fff}.un-categorised-items a:hover,.un-categorised-items:hover a{color:#444}.media-frame .folder-custom-menu a:focus{outline:0;box-shadow:none}.sticky-folders{display:none;padding:0 0 5px;margin:0 0 5px;border-bottom:solid 1px #ccc}.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}.sticky-folders li a span.update-inline-record,.wcp-container .route span.update-inline-record{position:relative;left:auto;top:0;float:right;width:0;height:30px;font-size:16px;overflow:hidden;transition:all .25s linear;-webkit-transition:all .25s linear;-moz-transition:all .25s linear;line-height:30px}#custom-menu [class*=" pfolder-"],#custom-menu [class^=pfolder-]{font-size:12px}.sticky-folders li a span.star-icon,.wcp-container .route span.star-icon{position:relative;top:2px;left:auto;float:right;speak:none;color:#ffc90e;display:none;font-size:14px}.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 .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}.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:absolute;left:50px;background:#fff;width:170px;padding:0;z-index:101;-webkit-box-shadow:0 0 5px 0 rgba(0,0,0,.25);-moz-box-shadow:0 0 5px 0 rgba(0,0,0,.25);box-shadow:0 0 5px 0 rgba(0,0,0,.25)}.dynamic-menu li{position:relative;width:100%;display:inline-block!important;padding:2px 0;margin:0}.dynamic-menu li.new-folder{border-bottom:solid 1px #d8d8d8}.dynamic-menu a{text-decoration:none;color:#848484;position:relative;display:block;padding:5px 10px;line-height:18px;white-space:nowrap}.dynamic-menu ul>li>a>span,.dynamic-menu ul>li>a>span span{position:relative!important;display:inline-block;vertical-align:middle;margin-right:5px;top:auto!important;width:20px!important;height:20px!important;line-height:14px}#custom-menu .dynamic-menu ul>li>a .sticky-pin{line-height:20px}#custom-menu .dynamic-menu ul>li>a .sticky-pin i{font-size:16px!important}li.active-menu{z-index:2!important}.dynamic-menu a.active,.dynamic-menu a:hover{background:#efefef;color:#000}.folder-popup-form{position:fixed;width:100%;height:100%;background:rgba(0,0,0,.5);top:0;left:0;z-index:10001;display:none}.popup-form-content{background:#fff;min-height:100px;width:400px;text-align:center;margin:0 auto;position:absolute;left:0;right:0;top:50%;transform:translate(0,-50%);-webkit-transform:translate(0,-50%);-moz-transform:translate(0,-50%);-o-transform:translate(0,-50%);-ms-transform:translate(0,-50%);padding:20px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;color:#484848}.add-update-folder-title{display:block;position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;text-align:center;text-transform:none;word-wrap:break-word;font-weight:700;font-size:22px;line-height:26px}.folder-group{position:relative;margin:45px auto 15px;padding:0 2px}.folder-group input,.folder-group textarea{background:0 0;font-size:14px;padding:0 0 0 15px;display:block;width:100%;border-radius:4px;border:1px solid #484848;height:34px;line-height:34px;color:#484848;outline:0}.highlight{background-color:#e4f2fd;color:#000}.folder-group .folder-bar{position:relative;display:block;width:320px}.folder-group label{font-size:14px;font-weight:500;position:absolute;pointer-events:none;left:20px;top:10px;-webkit-transition:.3s ease all;transition:.3s ease all;color:#484848}.folder-form-errors{margin:0 0 10px 0;padding:8px 0;background:#ffe4e4;color:#a20000;display:none}.folder-form-buttons{display:flex}.folder-form-buttons a,.folder-form-buttons button{display:inline-flex;padding:0;text-decoration:none;margin:10px 3px;border-radius:4px;border:solid 1px #1da1f4;line-height:34px;font-weight:700;font-size:14px;box-sizing:border-box;height:36px;cursor:pointer;flex:1;justify-content:center;outline:0;color:#fff}.folder-form-buttons .form-cancel-btn,.folder-form-buttons a.form-cancel-btn:hover{background-color:#fff;color:#3085d6;outline:0}.form-submit-btn,.form-submit-btn:hover{background-color:#3085d6;color:#fff!important;outline:0}.folder-group input:focus~label,.folder-group input:valid~label,.folder-group textarea:focus~label,.folder-group textarea:valid~label{top:-9px;background:#fff;padding:0 5px;font-weight:400;font-size:12px;line-height:14px;color:#aeaeae}#no-more-folder-credit .folder-form-message{margin:20px 80px;font-size:14px}.folder-form-message{margin:25px auto;font-size:15px;line-height:18px;color:#484848;width:310px}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.folder-form-buttons a span,.folder-form-buttons button span{-webkit-animation:fa-spin .75s infinite linear;animation:fa-spin .75s infinite linear;padding:7px}[data-tooltip]{position:relative}[data-tooltip]::after,[data-tooltip]::before{text-transform:none;font-size:.9em;line-height:1;user-select:none;pointer-events:none;position:absolute;display:none;opacity:0}[data-tooltip]::before{content:'';border:5px solid transparent;z-index:1001}[data-tooltip]::after{content:attr(data-tooltip);font-family:Helvetica,sans-serif;text-align:center;min-width:3em;max-width:21em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:1ch 1.5ch;border-radius:.3ch;box-shadow:0 1em 2em -.5em rgba(0,0,0,.35);background:#333;color:#fff;z-index:1000}[data-tooltip]:hover::after,[data-tooltip]:hover::before{display:block;opacity:1}[data-tooltip]:not([flow])::before,[data-tooltip][flow^=up]::before{bottom:100%;border-bottom-width:0;border-top-color:#333}[data-tooltip]:not([flow])::after,[data-tooltip][flow^=up]::after{bottom:calc(100% + 5px)}[data-tooltip]:not([flow])::after,[data-tooltip]:not([flow])::before,[data-tooltip][flow^=up]::after,[data-tooltip][flow^=up]::before{left:50%;transform:translate(-50%,-.5em)}.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%;box-shadow:none!important;outline:0}.folder-search-form span{position:absolute;color:#aeaeae;right:0;top:0;height:32px;line-height:32px;width:32px;text-align:center}.folder-separator{padding:0 10px;height:1px;background:#e9e5e5;margin:0 0 10px 0}.wcp-drop-hover i{color:#fff!important}.ui-draggable-dragging{z-index:10051!important}.attachments.ui-sortable.ui-draggable-dragging{z-index:10001!important}#custom-menu.has-filter li.route{display:none!important}#custom-menu.has-filter li.route.has-search{display:block!important}#custom-menu.has-filter h3 span.title-text.has-search-text{font-weight:700}.form-options>ul>li>a:hover{background:#404040;color:#fff}#custom-menu.show-folder-checkbox input.checkbox{display:block;margin:5px 0 0 0}#custom-menu.show-folder-checkbox h3.title>.ui-icon>i,#custom-menu.show-folder-checkbox h3.title>.ui-icon>img{display:none!important}.plugin-button{float:right}.plugin-button.d-block{float:none}.plugin-title{display:inline-block}.form-options .form-options{background:0 0;padding:0;box-shadow:none}.attachments-browser .media-toolbar-secondary{width:78%;max-width:inherit}.media-toolbar-primary.search-form{width:20%;max-width:inherit}
assets/css/settings.css CHANGED
@@ -1 +1 @@
1
- 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}.form-table th{width:220px}.form-table th.default-folder{width:100px}.premio-help{text-align:center}.premio-help a{display:inline-block;width:200px;margin-top:15px}.premio-help a img{width:100%;height:auto}.hide-option{display:none}.accordion{border:solid 1px #ccc;border-radius:10px;margin:0 0 10px 0;max-width:1024px}.accordion-header{background:silver;color:#000;padding:10px 15px;font-size:15px;cursor:pointer;border-radius:10px}.accordion-header.active{border-radius:0;-webkit-border-top-left-radius:10px;-webkit-border-top-right-radius:10px;-moz-border-radius-topleft:10px;-moz-border-radius-topright:10px;border-top-left-radius:10px;border-top-right-radius:10px}.accordion-header.active span{transform:rotate(180deg)}select.hide-show-option{width:170px}.accordion-content{background:#f5f5f5;padding:15px;-webkit-border-bottom-right-radius:10px;-webkit-border-bottom-left-radius:10px;-moz-border-radius-bottomright:10px;-moz-border-radius-bottomleft:10px;border-bottom-right-radius:10px;border-bottom-left-radius:10px;display:none}.sp-replacer.sp-light{padding:0!important;margin:0!important;border:none!important}.sp-dd{display:none!important}.sp-preview{width:32px!important;height:32px!important;margin:0!important;padding:0!important;border:none!important;background:#fff!important}.form-table select{width:180px}.accordion-header span{float:right}.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;background:#f51366;color:#fff;border:solid 1px #f51366;border-radius:3px;line-height:24px;-webkit-box-shadow:0 3px 5px -3px #333;-moz-box-shadow:0 3px 5px -3px #333;box-shadow:0 3px 5px -3px #333;position:relative}.add-new-folder span{display:block;float:left;line-height:20px;font-size:14px;margin-right:5px}.add-new-folder span.folder-icon-create_new_folder{font-size:20px}.form-options{background:#fff;padding:10px 10px 0 10px;margin:0 0}.form-options ul{margin:0;padding:0}.form-options li{display:inline-block;margin:0 5px 0 0;vertical-align:top}.form-options li a{display:inline-block;text-decoration:none;padding:5px 12px;color:#000;background:#ccc;box-shadow:0 1px 0 #ccc;vertical-align:middle;border:solid 1px #ccc;border-radius:3px;margin:0 0 10px 0}.form-options span.icon{font-size:18px;display:inline-block;vertical-align:top}.form-options li.last{margin:0}.form-options li.last a{padding:3px}.form-options li.last a span.icon{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;background:#fff;padding:0 5px;border:solid 1px #ccc;font-size:10px;line-height:16px;border-radius:2px}.header-posts a.active-item span.total-count,.un-categorised-items.active-item a span{color:#444!important}.media-buttons{margin:10px 0 0 0;padding:10px;background:#fff;text-align:center}.media-buttons button,.media-buttons select{width:48%;display:inline-block;margin:0 2% 0 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}.folder-list li a span{font-size:16px;display:inline-block;vertical-align:middle}.preview-inner-box{background:#e4e4e4;padding:15px;width:300px;float:right}.accordion-left{width:600px;float:left}.accordion-right{width:calc(100% - 620px);float:right}.preview-text{font-size:20px;padding:0 0 10px;width:330px;float:right}.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}
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}.accordion-content{background:#fff;padding:15px;-webkit-border-bottom-right-radius:10px;-webkit-border-bottom-left-radius:10px;-moz-border-radius-bottomright:10px;-moz-border-radius-bottomleft:10px;border-bottom-right-radius:10px;border-bottom-left-radius:10px;display:none}.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:180px}.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;float:left;background:#fff;border:1px solid #dbdbdb;box-sizing:border-box;border-radius:4px}.accordion-left{width:calc(100% - 260px);float:left;max-width:550px}.accordion-right{width:300px;float:right}.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:30px;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: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:15px 0}.custom-checkbox+label{padding:0 0 0 5px}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}
assets/fonts/folder-icon.eot DELETED
Binary file
assets/fonts/folder-icon.svg DELETED
@@ -1,46 +0,0 @@
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>
5
- <json>
6
- <![CDATA[
7
- {
8
- "fontFamily": "folder-icon",
9
- "majorVersion": 1,
10
- "minorVersion": 0,
11
- "version": "Version 1.0",
12
- "fontId": "folder-icon",
13
- "psName": "folder-icon",
14
- "subFamily": "Regular",
15
- "fullName": "folder-icon",
16
- "description": "Font generated by IcoMoon."
17
- }
18
- ]]>
19
- </json>
20
- </metadata>
21
- <defs>
22
- <font id="folder-icon" horiz-adv-x="1024">
23
- <font-face units-per-em="1024" ascent="960" descent="-64" />
24
- <missing-glyph horiz-adv-x="1024" />
25
- <glyph unicode="&#x20;" horiz-adv-x="512" d="" />
26
- <glyph unicode="&#xe900;" glyph-name="folder_special" data-tags="folder_special" d="M853.333 704h-341.333l-60.16 60.16c-16.213 16.213-37.973 25.173-60.587 25.173h-220.587c-46.933 0-85.333-38.4-85.333-85.333v-512c0-46.933 38.4-85.333 85.333-85.333h682.667c46.933 0 85.333 38.4 85.333 85.333v426.667c0 46.933-38.4 85.333-85.333 85.333zM722.773 259.84l-82.773 48.213-82.773-48.213c-16.213-9.387-35.84 5.12-31.573 23.467l21.76 93.867-72.107 62.293c-14.080 12.373-6.827 35.84 11.947 37.547l95.147 8.107 37.547 87.893c7.253 17.067 32 17.067 39.253 0l37.547-87.893 95.147-8.107c18.773-1.707 26.453-25.173 11.947-37.547l-72.107-62.293 21.76-93.867c4.693-18.347-14.933-32.853-30.72-23.467z" />
27
- <glyph unicode="&#xe901;" glyph-name="insert_drive_file" data-tags="insert_drive_file" d="M256 874.667c-46.933 0-84.907-38.4-84.907-85.333l-0.427-682.667c0-46.933 37.973-85.333 84.907-85.333h512.427c46.933 0 85.333 38.4 85.333 85.333v512l-256 256h-341.333zM554.667 576v234.667l234.667-234.667h-234.667z" />
28
- <glyph unicode="&#xe902;" d="M757.333 661.333l-160 160-426.667-426.667v-160h160l426.667 426.667zM883.627 787.627c16.64 16.64 16.64 43.52 0 60.16l-99.84 99.84c-16.64 16.64-43.52 16.64-60.16 0l-83.627-83.627 160-160 83.627 83.627z" />
29
- <glyph unicode="&#xe903;" d="M0 106.667h1024v-170.667h-1024z" />
30
- <glyph unicode="&#xe904;" glyph-name="file_copy" data-tags="file_copy" d="M682.667 917.333h-512c-46.933 0-85.333-38.4-85.333-85.333v-597.333h85.333v597.333h512v85.333zM640 746.667l256-256v-426.667c0-46.933-38.4-85.333-85.333-85.333h-469.76c-46.933 0-84.907 38.4-84.907 85.333l0.427 597.333c0 46.933 37.973 85.333 84.907 85.333h298.667zM597.333 448h234.667l-234.667 234.667v-234.667z" />
31
- <glyph unicode="&#xe905;" glyph-name="all_inbox" data-tags="all_inbox" d="M810.667 832h-597.333c-46.933 0-85.333-38.4-85.333-85.333v-298.667c0-46.933 38.4-85.333 85.333-85.333h597.333c46.933 0 85.333 38.4 85.333 85.333v298.667c0 46.933-38.4 85.333-85.333 85.333zM810.667 576h-170.667c0-69.12-58.88-128-128-128s-128 58.88-128 128h-170.667v170.667h597.333v-170.667zM640 277.333h256v-128c0-46.933-38.4-85.333-85.333-85.333h-597.333c-46.933 0-85.333 38.4-85.333 85.333v128h256c0-70.827 57.173-128 128-128s128 57.173 128 128z" />
32
- <glyph unicode="&#xe906;" glyph-name="delete" data-tags="delete" d="M256 149.333c0-46.933 38.4-85.333 85.333-85.333h341.333c46.933 0 85.333 38.4 85.333 85.333v512h-512v-512zM810.667 789.333h-149.333l-42.667 42.667h-213.333l-42.667-42.667h-149.333v-85.333h597.333v85.333z" />
33
- <glyph unicode="&#xe907;" glyph-name="star_rate" data-tags="star_rate" d="M512 317.156l211.058-153.6-80.782 248.036 211.058 150.187h-258.844l-82.489 256-82.489-256h-258.844l211.058-150.187-80.782-248.036z" />
34
- <glyph unicode="&#xe908;" glyph-name="arrow_drop_down" data-tags="arrow_drop_down" d="M298.667 533.333l213.333-213.333 213.333 213.333z" />
35
- <glyph unicode="&#xe909;" glyph-name="arrow_right" data-tags="arrow_right" d="M426.667 234.667l213.333 213.333-213.333 213.333v-426.667z" />
36
- <glyph unicode="&#xe90a;" glyph-name="more_vert" data-tags="more_vert" d="M512 618.667c46.933 0 85.333 38.4 85.333 85.333s-38.4 85.333-85.333 85.333-85.333-38.4-85.333-85.333 38.4-85.333 85.333-85.333zM512 533.333c-46.933 0-85.333-38.4-85.333-85.333s38.4-85.333 85.333-85.333 85.333 38.4 85.333 85.333-38.4 85.333-85.333 85.333zM512 277.333c-46.933 0-85.333-38.4-85.333-85.333s38.4-85.333 85.333-85.333 85.333 38.4 85.333 85.333-38.4 85.333-85.333 85.333z" />
37
- <glyph unicode="&#xe90b;" glyph-name="folder_shared" data-tags="folder_shared" d="M853.333 704h-341.333l-60.16 60.16c-16.213 16.213-37.973 25.173-60.587 25.173h-220.587c-46.933 0-84.907-38.4-84.907-85.333l-0.427-512c0-46.933 38.4-85.333 85.333-85.333h682.667c46.933 0 85.333 38.4 85.333 85.333v426.667c0 46.933-38.4 85.333-85.333 85.333zM640 576c46.933 0 85.333-38.4 85.333-85.333s-38.4-85.333-85.333-85.333-85.333 38.4-85.333 85.333 38.4 85.333 85.333 85.333zM810.667 234.667h-341.333v42.667c0 56.747 113.92 85.333 170.667 85.333s170.667-28.587 170.667-85.333v-42.667z" />
38
- <glyph unicode="&#xe90c;" glyph-name="folder_open" data-tags="folder_open" d="M853.333 704h-341.333l-60.16 60.16c-16.213 16.213-37.973 25.173-60.587 25.173h-220.587c-46.933 0-84.907-38.4-84.907-85.333l-0.427-512c0-46.933 38.4-85.333 85.333-85.333h682.667c46.933 0 85.333 38.4 85.333 85.333v426.667c0 46.933-38.4 85.333-85.333 85.333zM810.667 192h-597.333c-23.467 0-42.667 19.2-42.667 42.667v341.333c0 23.467 19.2 42.667 42.667 42.667h597.333c23.467 0 42.667-19.2 42.667-42.667v-341.333c0-23.467-19.2-42.667-42.667-42.667z" />
39
- <glyph unicode="&#xe90d;" glyph-name="folder" data-tags="folder" d="M451.84 764.16c-16.213 16.213-37.973 25.173-60.587 25.173h-220.587c-46.933 0-84.907-38.4-84.907-85.333l-0.427-512c0-46.933 38.4-85.333 85.333-85.333h682.667c46.933 0 85.333 38.4 85.333 85.333v426.667c0 46.933-38.4 85.333-85.333 85.333h-341.333l-60.16 60.16z" />
40
- <glyph unicode="&#xe90e;" glyph-name="create_new_folder" data-tags="create_new_folder" d="M853.333 704h-341.333l-60.16 60.16c-16.213 16.213-37.973 25.173-60.587 25.173h-220.587c-47.36 0-84.907-37.973-84.907-85.333l-0.427-512c0-47.36 37.973-85.333 85.333-85.333h682.667c46.933 0 85.333 38.4 85.333 85.333v426.667c0 46.933-38.4 85.333-85.333 85.333zM768 362.667h-85.333v-85.333c0-23.467-19.2-42.667-42.667-42.667s-42.667 19.2-42.667 42.667v85.333h-85.333c-23.467 0-42.667 19.2-42.667 42.667s19.2 42.667 42.667 42.667h85.333v85.333c0 23.467 19.2 42.667 42.667 42.667s42.667-19.2 42.667-42.667v-85.333h85.333c23.467 0 42.667-19.2 42.667-42.667s-19.2-42.667-42.667-42.667z" />
41
- <glyph unicode="&#xe90f;" glyph-name="expand_more" data-tags="expand_more" d="M677.547 563.627l-165.547-165.547-165.547 165.547c-16.64 16.64-43.52 16.64-60.16 0s-16.64-43.52 0-60.16l195.84-195.84c16.64-16.64 43.52-16.64 60.16 0l195.84 195.84c16.64 16.64 16.64 43.52 0 60.16-16.64 16.213-43.947 16.64-60.587 0z" />
42
- <glyph unicode="&#xe910;" glyph-name="edit" data-tags="edit" d="M128 224v-160h160l471.893 471.893-160 160-471.893-471.893zM883.627 659.627c16.64 16.64 16.64 43.52 0 60.16l-99.84 99.84c-16.64 16.64-43.52 16.64-60.16 0l-78.080-78.080 160-160 78.080 78.080z" />
43
- <glyph unicode="&#xe911;" glyph-name="expand_less" data-tags="expand_less" d="M481.707 588.373l-195.84-195.84c-16.64-16.64-16.64-43.52 0-60.16s43.52-16.64 60.16 0l165.973 165.547 165.547-165.547c16.64-16.64 43.52-16.64 60.16 0s16.64 43.52 0 60.16l-195.84 195.84c-16.213 16.64-43.52 16.64-60.16 0z" />
44
- <glyph unicode="&#xe912;" d="M396.8 618.667h452.267v-422.4h-452.267v422.4z" />
45
- <glyph unicode="&#xe913;" d="M853.333 704h-341.333l-59.733 59.733c-17.067 17.067-38.4 25.6-59.733 25.6h-221.867c-46.933 0-85.333-38.4-85.333-85.333v-512c0-46.933 38.4-85.333 85.333-85.333h682.667c46.933 0 85.333 38.4 85.333 85.333v426.667c0 46.933-38.4 85.333-85.333 85.333zM721.067 260.267l-81.067 46.933-81.067-46.933c-17.067-8.533-34.133 4.267-29.867 25.6l21.333 93.867-72.533 64c-12.8 12.8-8.533 34.133 12.8 38.4l93.867 8.533 38.4 89.6c8.533 17.067 34.133 17.067 38.4 0l38.4-89.6 93.867-8.533c17.067 0 25.6-25.6 12.8-38.4l-72.533-64 21.333-93.867c4.267-21.333-17.067-34.133-34.133-25.6z" />
46
- </font></defs></svg>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/fonts/folder-icon.ttf DELETED
Binary file
assets/fonts/folder-icon.woff DELETED
Binary file
assets/fonts/premio-folder.eot ADDED
Binary file
assets/fonts/premio-folder.svg ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>
assets/fonts/premio-folder.ttf ADDED
Binary file
assets/fonts/premio-folder.woff ADDED
Binary file
assets/images/agency-price.png ADDED
Binary file
assets/images/basic-price-bg.png ADDED
Binary file
assets/images/plus-price.png ADDED
Binary file
assets/images/premio-help.png CHANGED
Binary file
assets/js/custom.js CHANGED
@@ -13,6 +13,8 @@ var activeRecordID = "";
13
  var folderIDs = "";
14
  var isMultipleRemove = false;
15
  var isItFromMedia = false;
 
 
16
  var $action_form;
17
  var lastOrderStatus = "";
18
 
@@ -128,9 +130,9 @@ jQuery(document).ready(function(){
128
  jQuery("#save-folder-data").html('<span class="dashicons dashicons-update"></span>');
129
  jQuery("#add-update-folder").addClass("disabled");
130
 
131
- var ajax_url = "parent_id=" + fileFolderID + "&type=" + wcp_settings.post_type + "&action=wcp_add_new_folder&nonce=" + wcp_settings.nonce + "&term_id=" + fileFolderID + "&order=" + folderOrder + "&name=" + folderNameDynamic;
132
  if(isItFromMedia) {
133
- ajax_url = "parent_id=0&type=" + wcp_settings.post_type + "&action=wcp_add_new_folder&nonce=" + wcp_settings.nonce + "&term_id=0&order=" + folderOrder + "&name=" + folderNameDynamic;
134
  }
135
 
136
  jQuery.ajax({
@@ -456,13 +458,24 @@ function addFolder() {
456
  jQuery("#no-more-folder-credit").show();
457
  return false;
458
  }
459
- folderOrder = jQuery("#space_"+fileFolderID+" > li").length+1;
460
- ajaxURL = wcp_settings.ajax_url+"?parent_id=" + fileFolderID + "&type=" + wcp_settings.post_type + "&action=wcp_add_new_folder&nonce=" + wcp_settings.nonce + "&term_id=" + fileFolderID + "&order=" + folderOrder+"&name=";
461
 
462
- jQuery("#add-update-folder-title").text("Add Folder");
463
  jQuery("#save-folder-data").text("Submit");
464
  jQuery(".folder-form-errors").removeClass("active");
465
  jQuery("#add-update-folder-name").val("");
 
 
 
 
 
 
 
 
 
 
 
 
 
466
  jQuery("#add-update-folder").removeClass("disabled");
467
  jQuery("#add-update-folder").show();
468
  jQuery("#add-update-folder-name").focus();
@@ -645,7 +658,7 @@ document.onkeydown = function(evt) {
645
  }
646
  };
647
 
648
- jQuery(window).load(function(){
649
  add_active_item_to_list();
650
  });
651
 
@@ -1250,41 +1263,137 @@ jQuery(document).ready(function(){
1250
  }
1251
  });
1252
 
 
 
 
 
 
 
1253
  resizeDirection = (wcp_settings.isRTL == "1" || wcp_settings.isRTL == 1)?"w":"e";
1254
  jQuery(".wcp-content").resizable( {
1255
  resizeHeight: false,
1256
  handles: resizeDirection,
1257
- minWidth: 315,
1258
  maxWidth: 500,
1259
  resize: function( e, ui ) {
 
 
 
 
 
 
 
 
 
1260
  if(wcp_settings.isRTL == "1") {
1261
- jQuery("#wpcontent").css("padding-right", (ui.size.width + 20) + "px");
1262
  jQuery("#wpcontent").css("padding-left", "0px");
1263
  } else {
1264
- jQuery("#wpcontent").css("padding-left", (ui.size.width + 20) + "px");
1265
  }
1266
- newWidth = ui.size.width - 40;
1267
  cssString = "";
1268
  classString = "";
1269
  for(i=0; i<=15; i++) {
1270
  classString += " .space > .route >";
1271
  currentWidth = newWidth - (13+(20*i));
1272
  cssString += "#custom-menu > "+classString+" .title { width: "+currentWidth+"px !important; } ";
 
1273
  setStickyHeaderForMedia();
1274
  }
1275
  jQuery("#wcp-custom-style").html("<style>"+cssString+"</style>");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1276
  },
1277
  stop: function( e, ui ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1278
  nonce = wcp_settings.nonce;
1279
  wcp_settings.folder_width = ui.size.width;
1280
  jQuery.ajax({
1281
  url: wcp_settings.ajax_url,
1282
- data: "type=" + wcp_settings.post_type + "&action=wcp_change_post_width&width=" + ui.size.width+"&nonce="+nonce,
1283
  method: 'post',
1284
  success: function (res) {
1285
  setStickyHeaderForMedia();
1286
  }
1287
  });
 
 
 
 
1288
  }
1289
  });
1290
 
@@ -1355,17 +1464,18 @@ jQuery(document).ready(function(){
1355
  jQuery(".dynamic-menu").remove();
1356
  jQuery(".active-menu").removeClass("active-menu");
1357
  menuHtml = "<div class='dynamic-menu'><ul>" +
1358
- "<li class='new-folder'><a href='javascript:;'><span class='folder-icon-create_new_folder'></span> New Folder</a></li>" +
1359
- "<li class='rename-folder'><a href='javascript:;'><span class='folder-icon-border_color'><span class='path1'></span><span class='path2'></span></span> Rename</a></li>" +
1360
- "<li class='sticky-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class='sticky-folder-icon'><img src='"+wcp_settings.svg_file+"' /></span>Sticky Folder (Pro)</a></li>" +
1361
- "<li class='mark-folder'><a href='javascript:;'><span class='folder-icon-star_rate'></span>" + ((isHigh) ? " Remove Star" : "Add a Star") + "</a></li>";
 
1362
 
1363
  /* checking for attachments */
1364
  hasPosts = parseInt(jQuery(this).closest("li.route").find("h3.title:first > .total-count").text());
1365
  if(wcp_settings.post_type == "attachment" && hasPosts) {
1366
- menuHtml += "<li class='download-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class='dashicons dashicons-media-archive'></span> Download Zip (Pro)</a></li>";
1367
  }
1368
- menuHtml += "<li class='remove-folder'><a href='javascript:;'><span class='folder-icon-delete'></span> Delete</a></li>" +
1369
  "</ul></div>";
1370
  jQuery(this).after(menuHtml);
1371
  jQuery(this).parents("li.route").addClass("active-menu");
@@ -1444,6 +1554,21 @@ jQuery(document).ready(function(){
1444
  jQuery(".dynamic-menu").remove();
1445
  jQuery(".active-menu").removeClass("active-menu");
1446
  isItFromMedia = false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1447
  addFolder();
1448
  add_menu_to_list();
1449
  });
@@ -1588,16 +1713,17 @@ jQuery(document).ready(function(){
1588
  jQuery(".dynamic-menu").remove();
1589
  jQuery(".active-menu").removeClass("active-menu");
1590
  menuHtml = "<div class='dynamic-menu'><ul>" +
1591
- "<li class='new-folder'><a href='javascript:;'><span class='folder-icon-create_new_folder'></span> New Folder</a></li>" +
1592
- "<li class='rename-folder'><a href='javascript:;'><span class='folder-icon-border_color'><span class='path1'></span><span class='path2'></span></span> Rename</a></li>" +
1593
- "<li class='sticky-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class='sticky-folder-icon'><img src='"+wcp_settings.svg_file+"' /></span>Sticky Folder (Pro)</a></li>" +
1594
- "<li class='mark-folder'><a href='javascript:;'><span class='folder-icon-star_rate'></span>" + ((isHigh) ? " Remove Star" : "Add a Star") + "</a></li>";
 
1595
 
1596
  hasPosts = parseInt(jQuery(this).closest("li.route").find("h3.title:first > .total-count").text());
1597
  if(wcp_settings.post_type == "attachment" && hasPosts) {
1598
- menuHtml += "<li class='download-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class='dashicons dashicons-media-archive'></span> Download Zip (Pro)</a></li>";
1599
  }
1600
- menuHtml += "<li class='remove-folder'><a href='javascript:;'><span class='folder-icon-delete'></span> Delete</a></li>" +
1601
  "</ul></div>";
1602
  jQuery(this).closest("h3.title").after(menuHtml);
1603
  jQuery(this).parents("li.route").addClass("active-menu");
@@ -1660,6 +1786,15 @@ jQuery(document).ready(function(){
1660
  // add_menu_to_list();
1661
  });
1662
  });
 
 
 
 
 
 
 
 
 
1663
  jQuery(".remove-folder").livequery(function(){
1664
  jQuery(this).click(function() {
1665
  folderID = jQuery(this).closest("li.route").data("folder-id");
@@ -1727,7 +1862,26 @@ jQuery(window).resize(function(){
1727
  apply_animation_height();
1728
  });
1729
 
1730
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1731
 
1732
  function setCustomScrollForFolder() {
1733
  contentHeight = jQuery(window).height() - jQuery("#wpadminbar").height() - jQuery(".sticky-wcp-custom-form").height() - 30;
@@ -1761,11 +1915,6 @@ function check_for_sub_menu() {
1761
  jQuery("#custom-menu li.route").each(function(){
1762
  if(jQuery(this).find("ul.ui-sortable li").length) {
1763
  jQuery(this).addClass("has-sub-tree");
1764
- if(jQuery(this).find("ul.ui-sortable:first").is(":hidden")) {
1765
- jQuery(this).removeClass("is-hidden");
1766
- } else {
1767
- jQuery(this).addClass("is-hidden")
1768
- }
1769
  } else {
1770
  jQuery(this).removeClass("active");
1771
  }
@@ -1792,16 +1941,16 @@ function calcWidth(obj){
1792
  }
1793
 
1794
 
1795
- jQuery(window).load(function() {
1796
- if(jQuery("#posts-filter").length) {
1797
- jQuery("#posts-filter").wrap("<div id='folder-posts-filter'></div>");
1798
- }
1799
  });
1800
  /* code for sticky menu for media screen*/
1801
 
1802
  if(wcp_settings.post_type == "attachment") {
1803
 
1804
- jQuery(window).load(function() {
1805
  jQuery("button.button.media-button.select-mode-toggle-button").after("<button class='button organize-button'>Bulk Organize</button>");
1806
  jQuery(".media-toolbar-secondary").append("<span class='media-info-message'>Drag and drop your media files to the relevant folders</span>");
1807
  jQuery(".delete-selected-button").before("<button type='button' class='button button-primary select-all-item-btn'>Select All</button>");
13
  var folderIDs = "";
14
  var isMultipleRemove = false;
15
  var isItFromMedia = false;
16
+ var isDuplicate = false;
17
+ var duplicateFolderId = 0;
18
  var $action_form;
19
  var lastOrderStatus = "";
20
 
130
  jQuery("#save-folder-data").html('<span class="dashicons dashicons-update"></span>');
131
  jQuery("#add-update-folder").addClass("disabled");
132
 
133
+ var ajax_url = "parent_id=" + fileFolderID + "&type=" + wcp_settings.post_type + "&action=wcp_add_new_folder&nonce=" + wcp_settings.nonce + "&term_id=" + fileFolderID + "&order=" + folderOrder + "&name=" + folderNameDynamic+"&is_duplicate="+isDuplicate+"&duplicate_from="+duplicateFolderId;
134
  if(isItFromMedia) {
135
+ ajax_url = "parent_id=0&type=" + wcp_settings.post_type + "&action=wcp_add_new_folder&nonce=" + wcp_settings.nonce + "&term_id=0&order=" + folderOrder + "&name=" + folderNameDynamic+"&is_duplicate="+isDuplicate+"&duplicate_from="+duplicateFolderId;
136
  }
137
 
138
  jQuery.ajax({
458
  jQuery("#no-more-folder-credit").show();
459
  return false;
460
  }
 
 
461
 
462
+ jQuery("#add-update-folder-title").text("Add new folder");
463
  jQuery("#save-folder-data").text("Submit");
464
  jQuery(".folder-form-errors").removeClass("active");
465
  jQuery("#add-update-folder-name").val("");
466
+ if(isDuplicate) {
467
+ duplicateFolderId = fileFolderID;
468
+ jQuery("#add-update-folder-name").val(jQuery("#title_"+fileFolderID+" .title-text").text() + " #2");
469
+ if(jQuery("li#wcp_folder_"+fileFolderID).parent().hasClass("first-space")) {
470
+ fileFolderID = 0;
471
+ } else {
472
+ fileFolderID = jQuery("li#wcp_folder_"+fileFolderID).parent().parent().data("folder-id");
473
+ }
474
+ }
475
+
476
+ folderOrder = jQuery("#space_"+fileFolderID+" > li").length+1;
477
+ ajaxURL = wcp_settings.ajax_url+"?parent_id=" + fileFolderID + "&type=" + wcp_settings.post_type + "&action=wcp_add_new_folder&nonce=" + wcp_settings.nonce + "&term_id=" + fileFolderID + "&order=" + folderOrder+"&name=";
478
+
479
  jQuery("#add-update-folder").removeClass("disabled");
480
  jQuery("#add-update-folder").show();
481
  jQuery("#add-update-folder-name").focus();
658
  }
659
  };
660
 
661
+ jQuery(window).on('load', function(){
662
  add_active_item_to_list();
663
  });
664
 
1263
  }
1264
  });
1265
 
1266
+ if(wcp_settings.folder_width <= 275) {
1267
+ jQuery(".plugin-button").addClass("d-block");
1268
+ } else {
1269
+ jQuery(".plugin-button").removeClass("d-block");
1270
+ }
1271
+
1272
  resizeDirection = (wcp_settings.isRTL == "1" || wcp_settings.isRTL == 1)?"w":"e";
1273
  jQuery(".wcp-content").resizable( {
1274
  resizeHeight: false,
1275
  handles: resizeDirection,
1276
+ minWidth: 100,
1277
  maxWidth: 500,
1278
  resize: function( e, ui ) {
1279
+ var menuWidth = ui.size.width;
1280
+ if(menuWidth <= 275) {
1281
+ jQuery(".plugin-button").addClass("d-block");
1282
+ } else {
1283
+ jQuery(".plugin-button").removeClass("d-block");
1284
+ }
1285
+ if(menuWidth <= 225) {
1286
+ menuWidth = 225;
1287
+ }
1288
  if(wcp_settings.isRTL == "1") {
1289
+ jQuery("#wpcontent").css("padding-right", (menuWidth + 20) + "px");
1290
  jQuery("#wpcontent").css("padding-left", "0px");
1291
  } else {
1292
+ jQuery("#wpcontent").css("padding-left", (menuWidth + 20) + "px");
1293
  }
1294
+ newWidth = menuWidth - 40;
1295
  cssString = "";
1296
  classString = "";
1297
  for(i=0; i<=15; i++) {
1298
  classString += " .space > .route >";
1299
  currentWidth = newWidth - (13+(20*i));
1300
  cssString += "#custom-menu > "+classString+" .title { width: "+currentWidth+"px !important; } ";
1301
+ cssString += "#custom-menu > "+classString+" .dynamic-menu { left: "+(currentWidth - 190)+"px !important; } ";
1302
  setStickyHeaderForMedia();
1303
  }
1304
  jQuery("#wcp-custom-style").html("<style>"+cssString+"</style>");
1305
+ if(ui.size.width <= 185) {
1306
+ folderStatus = "hide";
1307
+ jQuery(".wcp-hide-show-buttons .toggle-buttons.show-folders").addClass("active");
1308
+ jQuery(".wcp-hide-show-buttons .toggle-buttons.hide-folders").removeClass("active");
1309
+ jQuery("#wcp-content").addClass("hide-folders-area");
1310
+ if(wcp_settings.isRTL == "1") {
1311
+ jQuery("#wpcontent").css("padding-right", "20px");
1312
+ jQuery("#wpcontent").css("padding-left", "0px");
1313
+ } else {
1314
+ jQuery("#wpcontent").css("padding-left", "20px");
1315
+ }
1316
+ } else {
1317
+ if(jQuery("#wcp-content").hasClass("hide-folders-area")) {
1318
+ folderStatus = "show";
1319
+ jQuery(".wcp-hide-show-buttons .toggle-buttons.show-folders").removeClass("active");
1320
+ jQuery(".wcp-hide-show-buttons .toggle-buttons.hide-folders").addClass("active");
1321
+ jQuery("#wcp-content").addClass("no-transition");
1322
+ jQuery("#wcp-content").removeClass("hide-folders-area");
1323
+ if (wcp_settings.isRTL == "1") {
1324
+ jQuery("#wpcontent").css("padding-right", (wcp_settings.folder_width + 20) + "px");
1325
+ jQuery("#wpcontent").css("padding-left", "0px");
1326
+ } else {
1327
+ jQuery("#wpcontent").css("padding-left", (wcp_settings.folder_width + 20) + "px");
1328
+ }
1329
+ setTimeout(function () {
1330
+ jQuery("#wcp-content").removeClass("no-transition");
1331
+ }, 250);
1332
+ }
1333
+ }
1334
  },
1335
  stop: function( e, ui ) {
1336
+ var menuWidth = ui.size.width;
1337
+ if(ui.size.width <= 275) {
1338
+ jQuery(".plugin-button").addClass("d-block");
1339
+ } else {
1340
+ jQuery(".plugin-button").removeClass("d-block");
1341
+ }
1342
+ if(menuWidth <= 225) {
1343
+ menuWidth = 225;
1344
+ }
1345
+ if(ui.size.width <= 185) {
1346
+ folderStatus = "hide";
1347
+ jQuery(".wcp-hide-show-buttons .toggle-buttons.show-folders").addClass("active");
1348
+ jQuery(".wcp-hide-show-buttons .toggle-buttons.hide-folders").removeClass("active");
1349
+ jQuery("#wcp-content").addClass("hide-folders-area");
1350
+ if(wcp_settings.isRTL == "1") {
1351
+ jQuery("#wpcontent").css("padding-right", "20px");
1352
+ jQuery("#wpcontent").css("padding-left", "0px");
1353
+ } else {
1354
+ jQuery("#wpcontent").css("padding-left", "20px");
1355
+ }
1356
+
1357
+ jQuery.ajax({
1358
+ url: wcp_settings.ajax_url,
1359
+ data: "type=" + wcp_settings.post_type + "&action=wcp_change_folder_display_status&status=" + folderStatus +"&nonce="+nonce,
1360
+ method: 'post',
1361
+ success: function (res) {
1362
+ setStickyHeaderForMedia();
1363
+ }
1364
+ });
1365
+ } else {
1366
+ if(jQuery("#wcp-content").hasClass("hide-folders-area")) {
1367
+ folderStatus = "show";
1368
+ jQuery(".wcp-hide-show-buttons .toggle-buttons.show-folders").removeClass("active");
1369
+ jQuery(".wcp-hide-show-buttons .toggle-buttons.hide-folders").addClass("active");
1370
+ jQuery("#wcp-content").addClass("no-transition");
1371
+ jQuery("#wcp-content").removeClass("hide-folders-area");
1372
+ if (wcp_settings.isRTL == "1") {
1373
+ jQuery("#wpcontent").css("padding-right", (wcp_settings.folder_width + 20) + "px");
1374
+ jQuery("#wpcontent").css("padding-left", "0px");
1375
+ } else {
1376
+ jQuery("#wpcontent").css("padding-left", (wcp_settings.folder_width + 20) + "px");
1377
+ }
1378
+ setTimeout(function () {
1379
+ jQuery("#wcp-content").removeClass("no-transition");
1380
+ }, 250);
1381
+ }
1382
+ }
1383
  nonce = wcp_settings.nonce;
1384
  wcp_settings.folder_width = ui.size.width;
1385
  jQuery.ajax({
1386
  url: wcp_settings.ajax_url,
1387
+ data: "type=" + wcp_settings.post_type + "&action=wcp_change_post_width&width=" + menuWidth+"&nonce="+nonce,
1388
  method: 'post',
1389
  success: function (res) {
1390
  setStickyHeaderForMedia();
1391
  }
1392
  });
1393
+ if(ui.size.width <= 225) {
1394
+ jQuery(".wcp-content").width(225);
1395
+ wcp_settings.folder_width = 225;
1396
+ }
1397
  }
1398
  });
1399
 
1464
  jQuery(".dynamic-menu").remove();
1465
  jQuery(".active-menu").removeClass("active-menu");
1466
  menuHtml = "<div class='dynamic-menu'><ul>" +
1467
+ "<li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span> New Folder</a></li>" +
1468
+ "<li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span> Rename</a></li>" +
1469
+ "<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>" +
1470
+ "<li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>" + ((isHigh) ? " Remove Star" : "Add a Star") + "</a></li>"+
1471
+ "<li class='duplicate-folder'><a href='javascript:;'><span class=''><i class='pfolder-clone'></i></span> Duplicate folder</a></li>";
1472
 
1473
  /* checking for attachments */
1474
  hasPosts = parseInt(jQuery(this).closest("li.route").find("h3.title:first > .total-count").text());
1475
  if(wcp_settings.post_type == "attachment" && hasPosts) {
1476
+ 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>";
1477
  }
1478
+ menuHtml += "<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span> Delete</a></li>" +
1479
  "</ul></div>";
1480
  jQuery(this).after(menuHtml);
1481
  jQuery(this).parents("li.route").addClass("active-menu");
1554
  jQuery(".dynamic-menu").remove();
1555
  jQuery(".active-menu").removeClass("active-menu");
1556
  isItFromMedia = false;
1557
+ isDuplicate = false;
1558
+ addFolder();
1559
+ add_menu_to_list();
1560
+ });
1561
+ });
1562
+
1563
+ jQuery(".duplicate-folder").livequery(function(){
1564
+ jQuery(this).click(function(e) {
1565
+ e.stopPropagation();
1566
+ jQuery(".active-menu").removeClass("active-menu");
1567
+ fileFolderID = jQuery(this).closest("li.route").data("folder-id");
1568
+ jQuery(".dynamic-menu").remove();
1569
+ jQuery(".active-menu").removeClass("active-menu");
1570
+ isItFromMedia = false;
1571
+ isDuplicate = true;
1572
  addFolder();
1573
  add_menu_to_list();
1574
  });
1713
  jQuery(".dynamic-menu").remove();
1714
  jQuery(".active-menu").removeClass("active-menu");
1715
  menuHtml = "<div class='dynamic-menu'><ul>" +
1716
+ "<li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span> New Folder</a></li>" +
1717
+ "<li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span> Rename</a></li>" +
1718
+ "<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>" +
1719
+ "<li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>" + ((isHigh) ? " Remove Star" : "Add a Star") + "</a></li>" +
1720
+ "<li class='duplicate-folder'><a href='javascript:;'><span class=''><i class='pfolder-clone'></i></span> Duplicate folder</a></li>";
1721
 
1722
  hasPosts = parseInt(jQuery(this).closest("li.route").find("h3.title:first > .total-count").text());
1723
  if(wcp_settings.post_type == "attachment" && hasPosts) {
1724
+ 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>";
1725
  }
1726
+ menuHtml += "<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span> Delete</a></li>" +
1727
  "</ul></div>";
1728
  jQuery(this).closest("h3.title").after(menuHtml);
1729
  jQuery(this).parents("li.route").addClass("active-menu");
1786
  // add_menu_to_list();
1787
  });
1788
  });
1789
+ jQuery(document).on("keyup", "#folder-search", function(){
1790
+ checkForFolderSearch();
1791
+ });
1792
+ jQuery(document).on("change", "#folder-search", function(){
1793
+ checkForFolderSearch();
1794
+ });
1795
+ jQuery(document).on("blur", "#folder-search", function(){
1796
+ checkForFolderSearch();
1797
+ });
1798
  jQuery(".remove-folder").livequery(function(){
1799
  jQuery(this).click(function() {
1800
  folderID = jQuery(this).closest("li.route").data("folder-id");
1862
  apply_animation_height();
1863
  });
1864
 
1865
+ function checkForFolderSearch() {
1866
+ if(jQuery.trim(jQuery("#folder-search").val()) != "") {
1867
+ jQuery("#custom-menu").addClass("has-filter");
1868
+ var searchText = jQuery.trim(jQuery("#folder-search").val());
1869
+ jQuery("#custom-menu span.title-text").removeClass("has-search-text");
1870
+ jQuery("li.route").removeClass("has-search");
1871
+ jQuery("#custom-menu span.title-text").each(function(){
1872
+ var thisText = jQuery(this).text();
1873
+ if(thisText.indexOf(searchText) !== -1) {
1874
+ jQuery(this).addClass("has-search-text");
1875
+ jQuery(this).parents("li.route:not(.has-sub-tree)").addClass("has-search");
1876
+ jQuery(this).parents("li.route.has-sub-tree.active").addClass("has-search");
1877
+ }
1878
+ });
1879
+ } else {
1880
+ jQuery("#custom-menu").removeClass("has-filter");
1881
+ jQuery("#custom-menu span.title-text").removeClass("has-search-text");
1882
+ jQuery("li.route").removeClass("has-search");
1883
+ }
1884
+ }
1885
 
1886
  function setCustomScrollForFolder() {
1887
  contentHeight = jQuery(window).height() - jQuery("#wpadminbar").height() - jQuery(".sticky-wcp-custom-form").height() - 30;
1915
  jQuery("#custom-menu li.route").each(function(){
1916
  if(jQuery(this).find("ul.ui-sortable li").length) {
1917
  jQuery(this).addClass("has-sub-tree");
 
 
 
 
 
1918
  } else {
1919
  jQuery(this).removeClass("active");
1920
  }
1941
  }
1942
 
1943
 
1944
+ jQuery(window).on('load', function(){
1945
+ if(jQuery("#posts-filter").length) {
1946
+ jQuery("#posts-filter").wrap("<div id='folder-posts-filter'></div>");
1947
+ }
1948
  });
1949
  /* code for sticky menu for media screen*/
1950
 
1951
  if(wcp_settings.post_type == "attachment") {
1952
 
1953
+ jQuery(window).on('load', function(){
1954
  jQuery("button.button.media-button.select-mode-toggle-button").after("<button class='button organize-button'>Bulk Organize</button>");
1955
  jQuery(".media-toolbar-secondary").append("<span class='media-info-message'>Drag and drop your media files to the relevant folders</span>");
1956
  jQuery(".delete-selected-button").before("<button type='button' class='button button-primary select-all-item-btn'>Select All</button>");
assets/js/media.js CHANGED
@@ -174,7 +174,7 @@ jQuery(document).on("change", ".folder_for_media", function(){
174
  jQuery("body").append("<div class='folder-media-popup-form' id='custom-folder-media-popup-form'></div>");
175
  jQuery("#custom-folder-media-popup-form").append("<div class='media-popup-form' id='custom-popup-form-content'></div>");
176
  jQuery("#custom-popup-form-content").append("<form action='#' id='folder-media-popup-form' method='post'></form>");
177
- jQuery("#folder-media-popup-form").append('<div id="add-update-folder-title" class="add-update-folder-title">Add Folder</div>');
178
  jQuery("#folder-media-popup-form").append('<div class="folder-form-input"><input id="media-folder-name" autocomplete="off" placeholder="Folder name" class=""></div>');
179
  jQuery("#folder-media-popup-form").append('<div class="folder-form-errors" id="media-form-error"><span class="dashicons dashicons-info"></span> Please enter folder name</div>');
180
  jQuery("#folder-media-popup-form").append('<div class="folder-form-buttons"><button type="submit" class="form-submit-btn" id="save-media-folder" style="width: 106px">Submit</button><a href="javascript:;" class="remove-media-form">Cancel</a></div>');
174
  jQuery("body").append("<div class='folder-media-popup-form' id='custom-folder-media-popup-form'></div>");
175
  jQuery("#custom-folder-media-popup-form").append("<div class='media-popup-form' id='custom-popup-form-content'></div>");
176
  jQuery("#custom-popup-form-content").append("<form action='#' id='folder-media-popup-form' method='post'></form>");
177
+ jQuery("#folder-media-popup-form").append('<div id="add-update-folder-title" class="add-update-folder-title">Add new folder</div>');
178
  jQuery("#folder-media-popup-form").append('<div class="folder-form-input"><input id="media-folder-name" autocomplete="off" placeholder="Folder name" class=""></div>');
179
  jQuery("#folder-media-popup-form").append('<div class="folder-form-errors" id="media-form-error"><span class="dashicons dashicons-info"></span> Please enter folder name</div>');
180
  jQuery("#folder-media-popup-form").append('<div class="folder-form-buttons"><button type="submit" class="form-submit-btn" id="save-media-folder" style="width: 106px">Submit</button><a href="javascript:;" class="remove-media-form">Cancel</a></div>');
assets/js/new-media.js CHANGED
@@ -36,10 +36,10 @@ jQuery(document).on("change", ".folder_for_media", function(){
36
  jQuery("body").append("<div class='folder-media-popup-form' id='custom-folder-media-popup-form'></div>");
37
  jQuery("#custom-folder-media-popup-form").append("<div class='media-popup-form' id='custom-popup-form-content'></div>");
38
  jQuery("#custom-popup-form-content").append("<form action='#' id='folder-media-popup-form' method='post'></form>");
39
- jQuery("#folder-media-popup-form").append('<div id="add-update-folder-title" class="add-update-folder-title">Add Folder</div>');
40
- jQuery("#folder-media-popup-form").append('<div class="folder-form-input"><input id="media-folder-name" autocomplete="off" placeholder="Folder name" class=""></div>');
41
  jQuery("#folder-media-popup-form").append('<div class="folder-form-errors" id="media-form-error"><span class="dashicons dashicons-info"></span> Please enter folder name</div>');
42
- jQuery("#folder-media-popup-form").append('<div class="folder-form-buttons"><button type="submit" class="form-submit-btn" id="save-media-folder" style="width: 106px">Submit</button><a href="javascript:;" class="remove-media-form">Cancel</a></div>');
43
  jQuery("#media-folder-name").focus();
44
  }
45
  }
36
  jQuery("body").append("<div class='folder-media-popup-form' id='custom-folder-media-popup-form'></div>");
37
  jQuery("#custom-folder-media-popup-form").append("<div class='media-popup-form' id='custom-popup-form-content'></div>");
38
  jQuery("#custom-popup-form-content").append("<form action='#' id='folder-media-popup-form' method='post'></form>");
39
+ jQuery("#folder-media-popup-form").append('<div id="add-update-folder-title" class="add-update-folder-title">Add new folder</div>');
40
+ jQuery("#folder-media-popup-form").append('<div class="folder-form-input"><div class="folder-group"><input id="media-folder-name" autocomplete="off" required="required" class=""><span class="highlight"></span><span class="folder-bar"></span><label for="media-folder-name">Folder name</label></div></div>');
41
  jQuery("#folder-media-popup-form").append('<div class="folder-form-errors" id="media-form-error"><span class="dashicons dashicons-info"></span> Please enter folder name</div>');
42
+ jQuery("#folder-media-popup-form").append('<div class="folder-form-buttons"><a href="javascript:;" class="remove-media-form">Cancel</a><button type="submit" class="form-submit-btn" id="save-media-folder" style="width: 106px">Submit</button></div>');
43
  jQuery("#media-folder-name").focus();
44
  }
45
  }
assets/js/page-post-media.js ADDED
@@ -0,0 +1,1557 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function($) {
2
+ "use strict";
3
+ var selectedFolderMediaId = -1;
4
+ var defaultFolderHtml;
5
+ var folderID = 0;
6
+ var fileAddUpdateStatus = "add";
7
+ var fileFolderID = 0;
8
+ var folderNameDynamic = "";
9
+ var n_o_file = -1;
10
+ var isKeyActive = 0;
11
+ var nonce = "";
12
+ var folderId = 0;
13
+ var fID = 0;
14
+ var folderCurrentURL = folders_media_options.page_url;
15
+ var activeRecordID = "";
16
+ var folderIDs = "";
17
+ var isMultipleRemove = false;
18
+ var isItFromMedia = false;
19
+ var isDuplicate = false;
20
+ var duplicateFolderId = 0;
21
+ var $action_form;
22
+ var lastOrderStatus = "";
23
+ var ajaxURL = "";
24
+ var folderOrder = 0;
25
+ var MediaLibraryOrganizerTaxonomyFilter = wp.media.view.AttachmentFilters.extend({
26
+ id: 'media-attachment-taxonomy-filter',
27
+ createFilters: function() {
28
+ var filters = {};
29
+ var totalItems = folders_media_options.terms.length;
30
+ _.each(folders_media_options.terms || {}, function(term, index) {
31
+ filters[term.term_id] = {
32
+ text: term.name + ' (' + term.count + ')',
33
+ props: {
34
+ 'media_folder': term.slug
35
+ }
36
+ };
37
+ });
38
+ filters.all = {
39
+ text: 'All Folders',
40
+ props: {
41
+ 'media_folder': ''
42
+ },
43
+ priority: 10
44
+ };
45
+ filters.unassigned = {
46
+ text: '(Unassigned)',
47
+ props: {
48
+ 'media_folder': "-1"
49
+ },
50
+ priority: 10
51
+ };
52
+ this.filters = filters;
53
+ },
54
+ change: function() {
55
+ var filters = {};
56
+ _.each(folders_media_options.terms || {}, function(term, index) {
57
+ filters[term.term_id] = {
58
+ text: term.name + ' (' + term.count + ')',
59
+ props: {
60
+ 'media_folder': term.slug
61
+ }
62
+ };
63
+ });
64
+ filters.all = {
65
+ text: 'Select a folder >>',
66
+ props: {
67
+ 'media_folder': ''
68
+ },
69
+ priority: 10
70
+ };
71
+ filters.unassigned = {
72
+ text: '(Unassigned)',
73
+ props: {
74
+ 'media_folder': "-1"
75
+ },
76
+ priority: 10
77
+ };
78
+ this.filters = filters;
79
+ var filter = this.filters[ this.el.value ];
80
+ if ( filter ) {
81
+ this.model.set( filter.props );
82
+ }
83
+ }
84
+ });
85
+
86
+
87
+ var selectedFolderMediaId = -1;
88
+ var selectedFolderPageID = "all";
89
+ var filesInQueue = 0;
90
+ var uploadedFileCount = 0;
91
+ var lastFolderData = [];
92
+
93
+ var AttachmentsBrowser = wp.media.view.AttachmentsBrowser;
94
+ wp.media.view.AttachmentsBrowser = wp.media.view.AttachmentsBrowser.extend({
95
+ createToolbar: function() {
96
+ AttachmentsBrowser.prototype.createToolbar.call(this);
97
+ this.toolbar.set('MediaLibraryOrganizerTaxonomyFilter', new MediaLibraryOrganizerTaxonomyFilter({
98
+ controller: this.controller,
99
+ model: this.collection.props,
100
+ priority: -75
101
+ }).render());
102
+ }
103
+ });
104
+
105
+ var Query = wp.media.model.Query;
106
+ _.extend(Query, {
107
+ get: (function() {
108
+ var queries = [];
109
+ return function(props, options) {
110
+ var args = {},
111
+ orderby = Query.orderby,
112
+ defaults = Query.defaultProps,
113
+ query,
114
+ cache = false; // Always disable query
115
+ delete props.query;
116
+ delete props.cache;
117
+ _.defaults(props, defaults);
118
+
119
+ _.each(['include', 'exclude'], function(prop) {
120
+ if (props[prop] && !_.isArray(props[prop])) {
121
+ props[prop] = [props[prop]];
122
+ }
123
+ });
124
+ _.each(props, function(value, prop) {
125
+ if (_.isNull(value)) {
126
+ return;
127
+ }
128
+ args[Query.propmap[prop] || prop] = value;
129
+ });
130
+ _.defaults(args, Query.defaultArgs);
131
+ args.orderby = orderby.valuemap[props.orderby] || props.orderby;
132
+ // Disable query caching
133
+ cache = false;
134
+ // Search the query cache for a matching query.
135
+ if (cache) {
136
+ query = _.find(queries, function(query) {
137
+ return _.isEqual(query.args, args);
138
+ });
139
+ } else {
140
+ queries = [];
141
+ }
142
+ // Otherwise, create a new query and add it to the cache.
143
+ if (!query) {
144
+ query = new Query([], _.extend(options || {}, {
145
+ props: props,
146
+ args: args
147
+ }));
148
+ queries.push(query);
149
+ }
150
+ return query;
151
+ };
152
+ }())
153
+ });
154
+
155
+
156
+ var wpMediaObj = window.wp;
157
+ if (typeof wpMediaObj !== 'undefined' && typeof wpMediaObj.Uploader === 'function') {
158
+ wpMediaObj.media.view.Modal.prototype.on('open', function() {
159
+ setTimeout(function(){
160
+ if($("#media-attachment-taxonomy-filter").length) {
161
+ if($("#media-attachment-taxonomy-filter").val() == "all") {
162
+ $("#media-attachment-taxonomy-filter option:gt(1)").remove();
163
+ _.each(folders_media_options.terms, function(term, index){
164
+ $("#media-attachment-taxonomy-filter").append("<option value='" + term.term_id + "'>" + term.name + " (" + term.count + ")</option>")
165
+ });
166
+ }
167
+
168
+ if(!jQuery("#wcp-content").length) {
169
+ if(jQuery(".editor-post-featured-image").length) {
170
+ jQuery(".attachment-filters").val(selectedFolderPageID).trigger("change");
171
+ }
172
+ }
173
+ }
174
+ },100);
175
+ });
176
+ jQuery.extend(wpMediaObj.Uploader.prototype, {
177
+ progress: function () {
178
+
179
+ },
180
+ init: function () {
181
+ if (this.uploader) {
182
+ this.uploader.bind('FileFiltered', function (up, file) {
183
+ filesInQueue++;
184
+ $(".folder-meter").css("width", "0%");
185
+ $(".media-folder-loader").show();
186
+ $("#total_upload_files").text(filesInQueue);
187
+ });
188
+ this.uploader.bind('BeforeUpload', function (uploader, file) {
189
+ var folder_id = selectedFolderMediaId;
190
+ var params = uploader.settings.multipart_params;
191
+ folder_id = parseInt(folder_id);
192
+ if (folder_id > 0) {
193
+ params.folder_for_media = folder_id;
194
+ }
195
+ if(uploadedFileCount < filesInQueue) {
196
+ $(".media-folder-loader").show();
197
+ var progress_width = uploadedFileCount/filesInQueue*100;
198
+ $(".folder-meter").css("width", progress_width+"%");
199
+ }
200
+ uploadedFileCount++;
201
+ $("#current_upload_files").text(uploadedFileCount);
202
+
203
+ });
204
+ this.uploader.bind('UploadComplete', function (up, files) {
205
+ selectedFolderMediaId = -1;
206
+ });
207
+ this.uploader.bind('UploadComplete', function (up, files) {
208
+ var wp_media = window.wp;
209
+
210
+ $(".folder-meter").css("width", "100%");
211
+ setTimeout(function(){
212
+ $(".media-folder-loader").hide();
213
+ $(".folder-meter").css("width", "0%");
214
+ filesInQueue = 0;
215
+ uploadedFileCount = 0;
216
+ }, 1250);
217
+
218
+ resetDDCounter();
219
+
220
+ if( wp_media.media.frame.content.get() !== null) {
221
+ wp_media.media.frame.content.get().collection.props.set({ignore: (+ new Date())});
222
+ wp_media.media.frame.content.get().options.selection.reset();
223
+ } else {
224
+ //wp_media.media.frame.library.props.set ({ignore: (+ new Date())});
225
+ if($("#media-attachment-taxonomy-filter").length) {
226
+ $(".attachment-filters").each(function(){
227
+ $(this).trigger("change");
228
+ });
229
+ }
230
+ }
231
+ });
232
+ }
233
+ }
234
+ });
235
+ }
236
+
237
+ var wpMedia = window.wp;
238
+ if (typeof wpMedia !== 'undefined' && typeof wpMedia.Uploader === 'function') {
239
+ wpMedia.media.view.Modal.prototype.on('open', function() {
240
+ if(!$(".folder-custom-menu").length) {
241
+ $(".media-frame-tab-panel").before("<div class='folder-custom-menu'><div class='folder-menu-content'></div></div>");
242
+ $(".folder-menu-content").load(folders_media_options.media_page_url+ " #wcp-content-resize", function(){
243
+ console.log("content loaded from media page");
244
+ checkForExpandCollapse();
245
+ });
246
+ $(".media-frame-tab-panel").before("<div class='folder-form-data'></div>");
247
+ $(".folder-form-data").load(folders_media_options.media_page_url+ " #folder-add-update-content", function(){
248
+ console.log("content loaded from media page");
249
+ });
250
+
251
+ resetMediaData(0);
252
+ }
253
+ });
254
+ }
255
+
256
+ $(document).ready(function(){
257
+
258
+ isKeyActive = parseInt(folders_media_options.is_key_active);
259
+ n_o_file = parseInt(folders_media_options.folders);
260
+
261
+ $(document).on("click", ".header-posts a.all-posts", function(e){
262
+ fileFolderID = 0;
263
+ activeRecordID = "";
264
+ $(".active-item").removeClass("active-item");
265
+ $(this).addClass("active-item");
266
+ $("#media-attachment-taxonomy-filter").val("all").trigger("change");
267
+ $(".folder_for_media").val("all").trigger("change");
268
+ });
269
+
270
+ $(document).on("click", ".un-categorised-items", function(e){
271
+ fileFolderID = 0;
272
+ activeRecordID = "";
273
+ $(".active-item").removeClass("active-item");
274
+ $(this).addClass("active-item");
275
+ $("#media-attachment-taxonomy-filter").val("unassigned").trigger("change");
276
+ $(".folder_for_media").val("-1").trigger("change");
277
+ });
278
+
279
+ $(document).on("click", "h3.title", function(e){
280
+ fileFolderID = $(this).closest("li.route").data("folder-id");
281
+ activeRecordID = fileFolderID;
282
+ $(".active-item").removeClass("active-item");
283
+ $(this).closest("li.route").addClass("active-item");
284
+ $("#media-attachment-taxonomy-filter").val(fileFolderID).trigger("change");
285
+ $(".folder_for_media").val(fileFolderID).trigger("change");
286
+ });
287
+
288
+ $(document).on("change", ".folder_for_media", function(){
289
+ if($(this).val() != "add-folder" && $(this).val() != null) {
290
+ selectedFolderMediaId = $(this).val();
291
+ } else if($(this).val() == "add-folder") {
292
+ selectedFolderMediaId = -1;
293
+ }
294
+ });
295
+
296
+ /* right click menu */
297
+ $(document).on("click", ".update-inline-record", function(e){
298
+ e.stopPropagation();
299
+ var isHigh = $(this).closest("li.route").hasClass("is-high");
300
+ $(".dynamic-menu").remove();
301
+ $(".active-menu").removeClass("active-menu");
302
+ var menuHtml = "<div class='dynamic-menu'><ul>" +
303
+ "<li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span> New Folder</a></li>" +
304
+ "<li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span> Rename</a></li>" +
305
+ "<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>" +
306
+ "<li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>" + ((isHigh) ? " Remove Star" : "Add a Star") + "</a></li>" +
307
+ "<li class='duplicate-folder'><a href='javascript:;'><span class=''><i class='pfolder-clone'></i></span> Duplicate folder</a></li>";
308
+
309
+ var hasPosts = parseInt($(this).closest("li.route").find("h3.title:first > .total-count").text());
310
+ if(folders_media_options.post_type == "attachment" && hasPosts) {
311
+ 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>";
312
+ }
313
+ menuHtml += "<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span> Delete</a></li>" +
314
+ "</ul></div>";
315
+ $(this).closest("h3.title").after(menuHtml);
316
+ $(this).parents("li.route").addClass("active-menu");
317
+
318
+ if(($(this).closest("h3.title").offset().top + $(".dynamic-menu").height()) > ($(window).height() - 20)) {
319
+ $(".dynamic-menu").addClass("bottom-fix");
320
+
321
+ if($(".dynamic-menu.bottom-fix").offset().top < $("#custom-scroll-menu").offset().top) {
322
+ $(".dynamic-menu").removeClass("bottom-fix");
323
+ }
324
+ }
325
+ });
326
+
327
+ $(document).on("click", "body, html", function(e){
328
+ $(".dynamic-menu").remove();
329
+ $(".active-menu").removeClass("active-menu");
330
+ $(".folder-order").removeClass("active");
331
+ });
332
+ $(document).on("click", ".dynamic-menu, .folder-order", function(e){
333
+ e.stopPropagation();
334
+ });
335
+
336
+ $(document).on("contextmenu", "h3.title", function(){
337
+ e.preventDefault();
338
+ if(folders_media_options.can_manage_folder == 0) {
339
+ return false;
340
+ }
341
+ var isHigh = $(this).closest("li.route").hasClass("is-high");
342
+ $(".dynamic-menu").remove();
343
+ $(".active-menu").removeClass("active-menu");
344
+ var menuHtml = "<div class='dynamic-menu'><ul>" +
345
+ "<li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span> New Folder</a></li>" +
346
+ "<li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span> Rename</a></li>" +
347
+ "<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>" +
348
+ "<li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>" + ((isHigh) ? " Remove Star" : "Add a Star") + "</a></li>"+
349
+ "<li class='duplicate-folder'><a href='javascript:;'><span class=''><i class='pfolder-clone'></i></span> Duplicate folder</a></li>";
350
+
351
+ /* checking for attachments */
352
+ var hasPosts = parseInt($(this).closest("li.route").find("h3.title:first > .total-count").text());
353
+ if(folders_media_options.post_type == "attachment" && hasPosts) {
354
+ 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>";
355
+ }
356
+ menuHtml += "<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span> Delete</a></li>" +
357
+ "</ul></div>";
358
+ $(this).after(menuHtml);
359
+ $(this).parents("li.route").addClass("active-menu");
360
+ if(($(this).offset().top + $(".dynamic-menu").height()) > ($(window).height() - 20)) {
361
+ $(".dynamic-menu").addClass("bottom-fix");
362
+
363
+ if($(".dynamic-menu.bottom-fix").offset().top < $("#custom-scroll-menu").offset().top) {
364
+ $(".dynamic-menu").removeClass("bottom-fix");
365
+ }
366
+ }
367
+ return false;
368
+ });
369
+ /* right click menu end */
370
+
371
+ /* add new folder functionality */
372
+ $(document).on("click", ".new-folder", function(e) {
373
+ e.stopPropagation();
374
+ $(".active-menu").removeClass("active-menu");
375
+ fileFolderID = $(this).closest("li.route").data("folder-id");
376
+ $(".dynamic-menu").remove();
377
+ $(".active-menu").removeClass("active-menu");
378
+ isItFromMedia = false;
379
+ isDuplicate = false;
380
+ addFolder();
381
+ });
382
+
383
+ $(document).on("click", "#add-new-folder", function(e) {
384
+ if($("#custom-menu li.active-item").length) {
385
+ fileFolderID = $("#custom-menu li.active-item").data("folder-id");
386
+ } else {
387
+ fileFolderID = 0;
388
+ }
389
+ isItFromMedia = false;
390
+ addFolder();
391
+ });
392
+
393
+ $(document).on("submit", "#save-folder-form", function(e){
394
+ e.stopPropagation();
395
+ e.preventDefault();
396
+
397
+ folderNameDynamic = $("#add-update-folder-name").val();
398
+
399
+ if($.trim(folderNameDynamic) == "") {
400
+ $(".folder-form-errors").addClass("active");
401
+ $("#add-update-folder-name").focus();
402
+ } else {
403
+ $("#save-folder-data").html('<span class="dashicons dashicons-update"></span>');
404
+ $("#add-update-folder").addClass("disabled");
405
+
406
+ var ajax_url = "parent_id=" + fileFolderID + "&type=" + folders_media_options.post_type + "&action=wcp_add_new_folder&nonce=" + folders_media_options.nonce + "&term_id=" + fileFolderID + "&order=" + folderOrder + "&name=" + folderNameDynamic+"&is_duplicate="+isDuplicate+"&duplicate_from="+duplicateFolderId;
407
+ if(isItFromMedia) {
408
+ ajax_url = "parent_id=0&type=" + folders_media_options.post_type + "&action=wcp_add_new_folder&nonce=" + folders_media_options.nonce + "&term_id=0&order=" + folderOrder + "&name=" + folderNameDynamic+"&is_duplicate="+isDuplicate+"&duplicate_from="+duplicateFolderId;
409
+ }
410
+
411
+ jQuery.ajax({
412
+ url: folders_media_options.ajax_url,
413
+ data: ajax_url,
414
+ method: 'post',
415
+ success: function (res) {
416
+ var result = jQuery.parseJSON(res);
417
+ if (result.status == '1') {
418
+ $("#space_" + result.parent_id).append(result.term_data);
419
+ $("#wcp_folder_" + result.parent_id).addClass("active has-sub-tree");
420
+ isKeyActive = parseInt(result.is_key_active);
421
+ n_o_file = parseInt(result.folders);
422
+ $("#current-folder").text(n_o_file);
423
+ $("#ttl-fldr").text((4*4)-(2*2)-2);
424
+ checkForExpandCollapse();
425
+ $(".folder-popup-form").hide();
426
+ $(".folder-popup-form").removeClass("disabled");
427
+ ajaxAnimation();
428
+ fileFolderID = result.term_id;
429
+ resetMediaData(0);
430
+ } else {
431
+ $(".folder-popup-form").hide();
432
+ $(".folder-popup-form").removeClass("disabled");
433
+ $("#error-folder-popup-message").html(result.message);
434
+ $("#error-folder-popup").show();
435
+ }
436
+ }
437
+ });
438
+ }
439
+ return false;
440
+ });
441
+
442
+ $(document).on("click", ".form-cancel-btn", function(){
443
+ $(".folder-popup-form").hide();
444
+ });
445
+ $(document).on("click", ".folder-popup-form", function (e) {
446
+ $(".folder-popup-form").hide();
447
+ });
448
+ $(document).on("click", ".popup-form-content", function (e) {
449
+ e.stopPropagation();
450
+ });
451
+
452
+ document.onkeydown = function(evt) {
453
+ evt = evt || window.event;
454
+ var isEscape = false;
455
+ if ("key" in evt) {
456
+ isEscape = (evt.key === "Escape" || evt.key === "Esc");
457
+ } else {
458
+ isEscape = (evt.keyCode === 27);
459
+ }
460
+ if (isEscape) {
461
+ $(".folder-popup-form").hide();
462
+ }
463
+ };
464
+
465
+ /* Update folder */
466
+ $(document).on("click", ".rename-folder", function (e) {
467
+ e.stopPropagation();
468
+ fileFolderID = $(this).closest("li.route").data("folder-id");
469
+ updateFolder();
470
+ });
471
+
472
+ $(document).on("click", "#inline-update", function (e) {
473
+ if($("#custom-menu li.active-item").length) {
474
+ fileFolderID = $("#custom-menu li.active-item").data("folder-id");
475
+ updateFolder();
476
+ }
477
+ });
478
+
479
+ $(document).on("submit", "#update-folder-form", function(e){
480
+ e.stopPropagation();
481
+ e.preventDefault();
482
+ $(".dynamic-menu").hide();
483
+ folderNameDynamic = $("#update-folder-item-name").val();
484
+
485
+ if($.trim(folderNameDynamic) == "") {
486
+ $(".folder-form-errors").addClass("active");
487
+ $("#update-folder-item-name").focus();
488
+ } else {
489
+ $("#update-folder-data").html('<span class="dashicons dashicons-update"></span>');
490
+ $("#update-folder-item").addClass("disabled");
491
+
492
+ nonce = $.trim($("#wcp_folder_" + fileFolderID).data("rename"));
493
+ var parentID = $("#wcp_folder_" + fileFolderID).closest("li.route").data("folder-id");
494
+ if (parentID == undefined) {
495
+ parentID = 0;
496
+ }
497
+ jQuery.ajax({
498
+ url: folders_media_options.ajax_url,
499
+ data: "parent_id=" + parentID + "&nonce=" + nonce + "&type=" + folders_media_options.post_type + "&action=wcp_update_folder&term_id=" + fileFolderID + "&name=" + folderNameDynamic,
500
+ method: 'post',
501
+ success: function (res) {
502
+ var result = jQuery.parseJSON(res);
503
+ if (result.status == '1') {
504
+ $("#wcp_folder_" + result.id + " > h3 > .title-text").text(result.term_title);
505
+ $("#wcp_folder_" + result.id + " > h3").attr("title", result.term_title);
506
+ $(".folder-popup-form").hide();
507
+ $(".folder-popup-form").removeClass("disabled");
508
+ ajaxAnimation();
509
+ resetMediaData(0);
510
+ } else {
511
+ $(".folder-popup-form").hide();
512
+ $(".folder-popup-form").removeClass("disabled");
513
+ $("#error-folder-popup-message").html(result.message);
514
+ $("#error-folder-popup").show();
515
+ }
516
+ }
517
+ });
518
+ }
519
+ return false;
520
+ });
521
+
522
+ /* Mark Folder */
523
+ $(document).on("click", ".mark-folder", function(e){
524
+ e.stopPropagation();
525
+ folderID = $(this).closest("li.route").data("folder-id");
526
+ nonce = $.trim($("#wcp_folder_"+folderID).data("star"));
527
+ $(".form-loader-count").css("width","100%");
528
+ $(".dynamic-menu").remove();
529
+ $(".active-menu").removeClass("active-menu");
530
+ jQuery.ajax({
531
+ url: folders_media_options.ajax_url,
532
+ data: "term_id=" + folderID + "&type=" + folders_media_options.post_type + "&action=wcp_mark_un_mark_folder&nonce="+nonce,
533
+ method: 'post',
534
+ cache: false,
535
+ success: function (res) {
536
+ var res = jQuery.parseJSON(res);
537
+ $(".form-loader-count").css("width","0%");
538
+ if (res.status == '1') {
539
+ if(res.marked == '1') {
540
+ $("#wcp_folder_"+res.id).addClass("is-high");
541
+ } else {
542
+ $("#wcp_folder_"+res.id).removeClass("is-high");
543
+ }
544
+ ajaxAnimation();
545
+ } else {
546
+ $(".folder-popup-form").hide();
547
+ $(".folder-popup-form").removeClass("disabled");
548
+ $("#error-folder-popup-message").html(res.message);
549
+ $("#error-folder-popup").show();
550
+ }
551
+ }
552
+ });
553
+ });
554
+
555
+ /* Duplicate Folder */
556
+ $(document).on("click", ".duplicate-folder", function(e){
557
+ e.stopPropagation();
558
+ $(".active-menu").removeClass("active-menu");
559
+ fileFolderID = $(this).closest("li.route").data("folder-id");
560
+ $(".dynamic-menu").remove();
561
+ isDuplicate = true;
562
+ addFolder();
563
+ });
564
+
565
+ /* Remove folder */
566
+ $(document).on("click", ".remove-folder", function(e){
567
+ folderID = $(this).closest("li.route").data("folder-id");
568
+ fileFolderID = folderID;
569
+ removeFolderFromID(0);
570
+ $(".dynamic-menu").remove();
571
+ $(".active-menu").removeClass("active-menu");
572
+ });
573
+
574
+ $(document).on("click", "#remove-folder-item", function (e){
575
+ e.stopPropagation();
576
+ $(".folder-popup-form").addClass("disabled");
577
+ $("#remove-folder-item").html('<span class="dashicons dashicons-update"></span>');
578
+ nonce = $.trim($("#wcp_folder_"+fileFolderID).data("delete"));
579
+ if(isMultipleRemove) {
580
+ removeMultipleFolderItems();
581
+ } else {
582
+ jQuery.ajax({
583
+ url: folders_media_options.ajax_url,
584
+ data: "type=" + folders_media_options.post_type + "&action=wcp_remove_folder&term_id=" + fileFolderID + "&nonce=" + nonce,
585
+ method: 'post',
586
+ success: function (res) {
587
+ var res = jQuery.parseJSON(res);
588
+ if (res.status == '1') {
589
+ $("#wcp_folder_" + fileFolderID).remove();
590
+ $("#folder_" + fileFolderID).remove();
591
+ isKeyActive = parseInt(res.is_key_active);
592
+ n_o_file = parseInt(res.folders);
593
+ $("#current-folder").text(n_o_file);
594
+ $("#ttl-fldr").text((3*3)+(4/(2*2)));
595
+ ajaxAnimation();
596
+ $(".folder-popup-form").hide();
597
+ $(".folder-popup-form").removeClass("disabled");
598
+
599
+ console.log("activeRecordID: "+activeRecordID);
600
+ console.log("fileFolderID: "+fileFolderID);
601
+ if (activeRecordID == fileFolderID) {
602
+ jQuery(".header-posts a").trigger("click");
603
+ }
604
+ resetDDCounter();
605
+ } else {
606
+ $(".folder-popup-form").hide();
607
+ $(".folder-popup-form").removeClass("disabled");
608
+ $("#error-folder-popup-message").html(res.message);
609
+ $("#error-folder-popup").show();
610
+ }
611
+ }
612
+ });
613
+ }
614
+ });
615
+
616
+ $(document).on("click", "#sort-order-list", function(e){
617
+ e.stopPropagation();
618
+ $(".folder-order").toggleClass("active");
619
+ });
620
+
621
+ $(document).on("click", "#expand-collapse-list", function (e){
622
+ e.stopPropagation();
623
+ var statusType = 0;
624
+ if($(this).hasClass("all-open")) {
625
+ $(this).removeClass("all-open");
626
+ $(".has-sub-tree").removeClass("active");
627
+ statusType = 0;
628
+ $(this).attr("data-tooltip","Expand");
629
+ } else {
630
+ $(this).addClass("all-open");
631
+ statusType = 1;
632
+ $(".has-sub-tree").addClass("active");
633
+ $(this).attr("data-tooltip","Collapse");
634
+ }
635
+ folderIDs = "";
636
+ $(".has-sub-tree").each(function(){
637
+ folderIDs += $(this).data("folder-id")+",";
638
+ });
639
+ if(folderIDs != "") {
640
+ $(".form-loader-count").css("width","100%");
641
+ nonce = folders_media_options.nonce;
642
+ jQuery.ajax({
643
+ url: folders_media_options.ajax_url,
644
+ data: "type=" + folders_media_options.post_type + "&action=wcp_change_all_status&status=" + statusType + "&folders="+folderIDs+"&nonce="+nonce,
645
+ method: 'post',
646
+ success: function (res) {
647
+ $(".form-loader-count").css("width","0");
648
+ res = jQuery.parseJSON(res);
649
+ if(res.status == "0") {
650
+ $(".folder-popup-form").hide();
651
+ $(".folder-popup-form").removeClass("disabled");
652
+ $("#error-folder-popup-message").html(res.message);
653
+ $("#error-folder-popup").show();
654
+ window.location.reload(true);
655
+ }
656
+ }
657
+ });
658
+ }
659
+ });
660
+
661
+ $(document).on("click", ".folder-sort-menu a", function(e) {
662
+ e.stopPropagation();
663
+ e.preventDefault();
664
+ $(".form-loader-count").css("width", "100%");
665
+ $(".folder-order").removeClass("active");
666
+ lastOrderStatus = $(this).attr("data-sort");
667
+ jQuery.ajax({
668
+ url: folders_media_options.ajax_url,
669
+ data: "type=" + folders_media_options.post_type + "&action=wcp_folders_by_order&nonce=" + folders_media_options.nonce+"&order="+$(this).attr("data-sort"),
670
+ method: 'post',
671
+ success: function (res) {
672
+ res = jQuery.parseJSON(res);
673
+ if(res.status == 1) {
674
+ $("#space_0").html(res.data);
675
+ }
676
+ $(".form-loader-count").css("width", "0");
677
+ }
678
+ });
679
+ });
680
+
681
+ $('.space').livequery(function(){
682
+ $(this).sortable({
683
+ placeholder: "ui-state-highlight",
684
+ connectWith:'.space',
685
+ tolerance:'intersect',
686
+ over:function(event,ui){
687
+
688
+ },
689
+ update: function( event, ui ) {
690
+ var thisId = ui.item.context.attributes['data-folder-id'].nodeValue;
691
+ var orderString = "";
692
+ $(this).children().each(function(){
693
+ if($(this).hasClass("route")) {
694
+ orderString += $(this).data("folder-id")+",";
695
+ }
696
+ });
697
+ if(orderString != "") {
698
+ $(".form-loader-count").css("width","100%");
699
+ jQuery.ajax({
700
+ url: folders_media_options.ajax_url,
701
+ data: "term_ids=" + orderString + "&action=wcp_save_folder_order&type=" + folders_media_options.post_type+"&nonce="+folders_media_options.nonce,
702
+ method: 'post',
703
+ success: function (res) {
704
+ res = jQuery.parseJSON(res);
705
+ if (res.status == '1') {
706
+ $("#wcp_folder_parent").html(res.options);
707
+ $(".form-loader-count").css("width", "0");
708
+ resetMediaAndPosts();
709
+ ajaxAnimation();
710
+ } else {
711
+ $(".folder-popup-form").hide();
712
+ $(".folder-popup-form").removeClass("disabled");
713
+ $("#error-folder-popup-message").html(res.message);
714
+ $("#error-folder-popup").show();
715
+ window.location.reload(true);
716
+ }
717
+ }
718
+ });
719
+ }
720
+ },
721
+ receive: function (event, ui) {
722
+ calcWidth($(this).siblings('.title'));
723
+ $(this).closest("li.route").addClass("active");
724
+ $(this).closest("li.route").find("ul.ui-sortable:first-child > li").slideDown();
725
+ var parentId = $(this).closest("li.route").data("folder-id");
726
+ var thisId = ui.item.context.attributes['data-folder-id'].nodeValue;
727
+ if(parentId == undefined) {
728
+ parentId = 0;
729
+ }
730
+ var orderString = "";
731
+ if($("#wcp_folder_"+parentId+" .ui-sortable li").length) {
732
+ $("#wcp_folder_"+parentId+" .ui-sortable li").each(function(){
733
+ orderString += $(this).data("folder-id")+",";
734
+ });
735
+ } else if(parentId == 0) {
736
+ $("#custom-menu > ul.space > li").each(function(){
737
+ orderString += $(this).data("folder-id")+",";
738
+ });
739
+ }
740
+ $(".form-loader-count").css("width","100%");
741
+ nonce = $.trim($("#wcp_folder_"+thisId).data("nonce"));
742
+ jQuery.ajax({
743
+ url: folders_media_options.ajax_url,
744
+ data: "term_id=" + thisId + "&action=wcp_update_parent_information&parent_id=" + parentId+"&type=" + folders_media_options.post_type+"&nonce="+nonce,
745
+ method: 'post',
746
+ success: function (res) {
747
+ $(".form-loader-count").css("width","0%");
748
+ res = jQuery.parseJSON(res);
749
+ if(res.status == 0) {
750
+ $(".folder-popup-form").hide();
751
+ $(".folder-popup-form").removeClass("disabled");
752
+ $("#error-folder-popup-message").html(res.message);
753
+ $("#error-folder-popup").show();
754
+ } else {
755
+ ajaxAnimation();
756
+ }
757
+ }
758
+ });
759
+ }
760
+ });
761
+ $(this).disableSelection();
762
+ });
763
+
764
+ $("h3.title").livequery(function(){
765
+ $(this).droppable({
766
+ accept: ".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",
767
+ hoverClass: 'wcp-drop-hover',
768
+ classes: {
769
+ "ui-droppable-active": "ui-state-highlight"
770
+ },
771
+ drop: function( event, ui ) {
772
+ folderID = $(this).closest("li.route").data('folder-id');
773
+ if ( ui.draggable.hasClass( 'wcp-move-multiple' ) ) {
774
+ if($(".wp-list-table input:checked").length) {
775
+ var chkStr = "";
776
+ $(".wp-list-table input:checked").each(function(){
777
+ chkStr += $(this).val()+",";
778
+ });
779
+ nonce = $.trim($("#wcp_folder_"+folderID).data("nonce"));
780
+ jQuery.ajax({
781
+ url: folders_media_options.ajax_url,
782
+ data: "post_ids=" + chkStr + "&type=" + folders_media_options.post_type + "&action=wcp_change_multiple_post_folder&folder_id=" + folderID+"&nonce="+nonce+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+activeRecordID,
783
+ method: 'post',
784
+ success: function (res) {
785
+ res = jQuery.parseJSON(res);
786
+ if(res.status == "1") {
787
+ resetMediaAndPosts();
788
+ ajaxAnimation();
789
+ } else {
790
+ $(".folder-popup-form").hide();
791
+ $(".folder-popup-form").removeClass("disabled");
792
+ $("#error-folder-popup-message").html(res.message);
793
+ $("#error-folder-popup").show()
794
+ }
795
+ }
796
+ });
797
+ }
798
+ } else if( ui.draggable.hasClass( 'wcp-move-file' ) ){
799
+ var postID = ui.draggable[0].attributes['data-id'].nodeValue;
800
+ nonce = $.trim($("#wcp_folder_"+folderID).data("nonce"));
801
+ chkStr = postID+",";
802
+ $(".wp-list-table input:checked").each(function(){
803
+ if($(this).val() != postID) {
804
+ chkStr += $(this).val() + ",";
805
+ }
806
+ });
807
+ jQuery.ajax({
808
+ url: folders_media_options.ajax_url,
809
+ data: "post_ids=" + chkStr + "&type=" + folders_media_options.post_type + "&action=wcp_change_multiple_post_folder&folder_id=" + folderID+"&nonce="+nonce+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+activeRecordID,
810
+ method: 'post',
811
+ success: function (res) {
812
+ res = jQuery.parseJSON(res);
813
+ if(res.status == "1") {
814
+ // window.location.reload();
815
+ resetMediaAndPosts();
816
+ ajaxAnimation();
817
+ } else {
818
+ $(".folder-popup-form").hide();
819
+ $(".folder-popup-form").removeClass("disabled");
820
+ $("#error-folder-popup-message").html(res.message);
821
+ $("#error-folder-popup").show()
822
+ }
823
+ }
824
+ });
825
+ } else if (ui.draggable.hasClass('attachment')) {
826
+ var chkStr = ui.draggable[0].attributes['data-id'].nodeValue;
827
+ nonce = $.trim($("#wcp_folder_" + folderID).data("nonce"));
828
+ if ($(".attachments-browser li.attachment.selected").length > 1) {
829
+ chkStr = "";
830
+ $(".attachments-browser li.attachment.selected").each(function () {
831
+ chkStr += $(this).data("id") + ",";
832
+ });
833
+ }
834
+ folderIDs = chkStr;
835
+ jQuery.ajax({
836
+ url: folders_media_options.ajax_url,
837
+ data: "post_ids=" + chkStr + "&type=" + folders_media_options.post_type + "&action=wcp_change_multiple_post_folder&folder_id=" + folderID + "&nonce="+nonce+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+activeRecordID,
838
+ method: 'post',
839
+ success: function (res) {
840
+ // window.location.reload();
841
+ resetMediaAndPosts();
842
+ ajaxAnimation();
843
+ }
844
+ });
845
+ }
846
+ }
847
+ });
848
+ });
849
+
850
+ $(".attachments-browser li.attachment").livequery(function () {
851
+ $(this).draggable({
852
+ revert: "invalid",
853
+ containment: "document",
854
+ helper: function (event, ui) {
855
+ $(".selected-items").remove();
856
+ var selectedItems = $(".attachments-browser li.attachment.selected").length;
857
+ selectedItems = (selectedItems == 0 || selectedItems == 1) ? "1 Item" : selectedItems + " Items";
858
+ return $("<div class='selected-items'><span class='total-post-count'>" + selectedItems + " Selected</span></div>");
859
+ },
860
+ start: function( event, ui){
861
+ $("body").addClass("no-hover-css");
862
+ },
863
+ cursor: "move",
864
+ appendTo: ".media-modal",
865
+ cursorAt: {
866
+ left: 0,
867
+ top: 0
868
+ },
869
+ stop: function( event, ui ) {
870
+ $(".selected-items").remove();
871
+ $("body").removeClass("no-hover-css");
872
+ }
873
+ });
874
+ });
875
+
876
+ $(".un-categorised-items").livequery(function () {
877
+ $(this).droppable({
878
+ accept: ".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",
879
+ hoverClass: 'wcp-hover-list',
880
+ classes: {
881
+ "ui-droppable-active": "ui-state-highlight"
882
+ },
883
+ drop: function (event, ui) {
884
+ folderID = -1;
885
+ nonce = folders_media_options.nonce;
886
+ if (ui.draggable.hasClass('wcp-move-multiple')) {
887
+ if ($(".wp-list-table input:checked").length) {
888
+ var chkStr = "";
889
+ $(".wp-list-table input:checked").each(function () {
890
+ chkStr += $(this).val() + ",";
891
+ });
892
+ jQuery.ajax({
893
+ url: folders_media_options.ajax_url,
894
+ 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,
895
+ method: 'post',
896
+ success: function (res) {
897
+ //window.location.reload();
898
+ resetMediaAndPosts();
899
+ ajaxAnimation();
900
+ }
901
+ });
902
+ }
903
+ } else if (ui.draggable.hasClass('wcp-move-file')) {
904
+ var postID = ui.draggable[0].attributes['data-id'].nodeValue;
905
+ var chkStr = postID+",";
906
+ $(".wp-list-table input:checked").each(function () {
907
+ if(postID != $(this).val()) {
908
+ chkStr += $(this).val() + ",";
909
+ }
910
+ });
911
+ jQuery.ajax({
912
+ url: folders_media_options.ajax_url,
913
+ 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,
914
+ method: 'post',
915
+ success: function (res) {
916
+ //window.location.reload();
917
+ resetMediaAndPosts();
918
+ ajaxAnimation();
919
+ }
920
+ });
921
+ } else if (ui.draggable.hasClass('attachment')) {
922
+ var chkStr = ui.draggable[0].attributes['data-id'].nodeValue;
923
+ if ($(".attachments-browser li.attachment.selected").length > 1) {
924
+ chkStr = "";
925
+ $(".attachments-browser li.attachment.selected").each(function () {
926
+ chkStr += $(this).data("id") + ",";
927
+ });
928
+ }
929
+ folderIDs = chkStr;
930
+ jQuery.ajax({
931
+ url: folders_media_options.ajax_url,
932
+ 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,
933
+ method: 'post',
934
+ success: function (res) {
935
+ // window.location.reload();
936
+ resetMediaAndPosts();
937
+ ajaxAnimation();
938
+ }
939
+ });
940
+ }
941
+ }
942
+ });
943
+ });
944
+
945
+ $(".tree-structure .folder-item").livequery(function(){
946
+ $(this).droppable({
947
+ accept: ".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",
948
+ hoverClass: 'wcp-drop-hover-list',
949
+ classes: {
950
+ "ui-droppable-active": "ui-state-highlight"
951
+ },
952
+ drop: function( event, ui ) {
953
+ $("body").removeClass("no-hover-css");
954
+ folderID = $(this).data('id');
955
+ if ( ui.draggable.hasClass( 'wcp-move-multiple' ) ) {
956
+ nonce = $.trim($("#wcp_folder_"+folderID).data("nonce"));
957
+ if($(".wp-list-table input:checked").length) {
958
+ var chkStr = "";
959
+ $(".wp-list-table input:checked").each(function(){
960
+ chkStr += $(this).val()+",";
961
+ });
962
+ jQuery.ajax({
963
+ url: folders_media_options.ajax_url,
964
+ data: "post_ids=" + chkStr + "&type=" + folders_media_options.post_type + "&action=wcp_change_multiple_post_folder&folder_id=" + folderID + "&nonce="+nonce+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+activeRecordID,
965
+ method: 'post',
966
+ success: function (res) {
967
+ // window.location.reload();
968
+ resetMediaAndPosts();
969
+ ajaxAnimation();
970
+ }
971
+ });
972
+ }
973
+ } else if ( ui.draggable.hasClass( 'wcp-move-file' ) ) {
974
+ var postID = ui.draggable[0].attributes['data-id'].nodeValue;
975
+ nonce = $.trim($("#wcp_folder_"+folderID).data("nonce"));
976
+ var chkStr = postID+",";
977
+ $(".wp-list-table input:checked").each(function(){
978
+ if($(this).val() != postID) {
979
+ chkStr += $(this).val() + ",";
980
+ }
981
+ });
982
+ jQuery.ajax({
983
+ url: folders_media_options.ajax_url,
984
+ data: "post_ids=" + chkStr + "&type=" + folders_media_options.post_type + "&action=wcp_change_multiple_post_folder&folder_id=" + folderID + "&nonce="+nonce+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+activeRecordID,
985
+ method: 'post',
986
+ success: function (res) {
987
+ // window.location.reload();
988
+ resetMediaAndPosts();
989
+ ajaxAnimation();
990
+ }
991
+ });
992
+ } else if( ui.draggable.hasClass( 'attachment' ) ){
993
+ var chkStr = ui.draggable[0].attributes['data-id'].nodeValue;
994
+ nonce = $.trim($("#wcp_folder_"+folderID).data("nonce"));
995
+ if($(".attachments-browser li.attachment.selected").length > 1) {
996
+ chkStr = "";
997
+ $(".attachments-browser li.attachment.selected").each(function(){
998
+ chkStr += $(this).data("id")+",";
999
+ });
1000
+ }
1001
+ jQuery.ajax({
1002
+ url: folders_media_options.ajax_url,
1003
+ data: "post_ids=" + chkStr + "&type=" + folders_media_options.post_type + "&action=wcp_change_multiple_post_folder&folder_id=" + folderID + "&nonce="+nonce+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+activeRecordID,
1004
+ method: 'post',
1005
+ success: function (res) {
1006
+ // window.location.reload();
1007
+ resetMediaAndPosts();
1008
+ ajaxAnimation();
1009
+ }
1010
+ });
1011
+ }
1012
+ }
1013
+ });
1014
+ });
1015
+
1016
+ $(".wcp-move-file").livequery(function(){
1017
+ $(this).draggable({
1018
+ revert: "invalid",
1019
+ containment: "document",
1020
+ helper: "clone",
1021
+ cursor: "move",
1022
+ start: function( event, ui){
1023
+ $(this).closest("td").addClass("wcp-draggable");
1024
+ $("body").addClass("no-hover-css");
1025
+ },
1026
+ stop: function( event, ui ) {
1027
+ $(this).closest("td").removeClass("wcp-draggable");
1028
+ $("body").removeClass("no-hover-css");
1029
+ }
1030
+ });
1031
+ });
1032
+
1033
+ $(".wcp-move-multiple").livequery(function(){
1034
+ $(this).draggable({
1035
+ revert: "invalid",
1036
+ containment: "document",
1037
+ helper: function (event, ui) {
1038
+ $(".selected-items").remove();
1039
+ var selectedItems = $("#the-list th input:checked").length;
1040
+ if(selectedItems > 0) {
1041
+ selectedItems = (selectedItems == 0 || selectedItems == 1) ? "1 Item" : selectedItems + " Items";
1042
+ return $("<div class='selected-items'><span class='total-post-count'>" + selectedItems + " Selected</span></div>");
1043
+ } else {
1044
+ return $("<div class='selected-items'><span class='total-post-count'>Select Items to move</span></div>");
1045
+ }
1046
+ },
1047
+ start: function( event, ui){
1048
+ $("body").addClass("no-hover-css");
1049
+ },
1050
+ cursor: "move",
1051
+ cursorAt: {
1052
+ left: 0,
1053
+ top: 0
1054
+ },
1055
+ stop: function( event, ui ) {
1056
+ $(".selected-items").remove();
1057
+ $("body").removeClass("no-hover-css");
1058
+ }
1059
+ });
1060
+ });
1061
+
1062
+ $(document).on("click", ".nav-icon", function(){
1063
+ folderID = $(this).closest("li.route").data("folder-id");
1064
+ var folderStatus = 1;
1065
+ if($("#wcp_folder_"+folderID).hasClass("active")) {
1066
+ folderStatus = 0;
1067
+ } else {
1068
+ folderStatus = 1;
1069
+ }
1070
+ $(".form-loader-count").css("width","100%");
1071
+ nonce = $.trim($("#wcp_folder_"+folderID).data("nonce"));
1072
+ checkForExpandCollapse();
1073
+ jQuery.ajax({
1074
+ url: folders_media_options.ajax_url,
1075
+ data: "is_active=" + folderStatus + "&action=save_wcp_folder_state&term_id=" + folderID+"&nonce="+nonce,
1076
+ method: 'post',
1077
+ success: function (res) {
1078
+ $(".form-loader-count").css("width","0");
1079
+ var res = jQuery.parseJSON(res);
1080
+ if(res.status == "0") {
1081
+ $(".folder-popup-form").hide();
1082
+ $(".folder-popup-form").removeClass("disabled");
1083
+ $("#error-folder-popup-message").html(res.message);
1084
+ $("#error-folder-popup").show();
1085
+ } else {
1086
+ if($("#wcp_folder_"+folderID).hasClass("active")) {
1087
+ $("#wcp_folder_"+folderID).removeClass("active");
1088
+ $("#wcp_folder_"+folderID).find("ul.ui-sortable:first-child > li").slideUp();
1089
+ folderStatus = 0;
1090
+ } else {
1091
+ $("#wcp_folder_"+folderID).addClass("active");
1092
+ $("#wcp_folder_"+folderID).find("ul.ui-sortable:first-child > li").slideDown();
1093
+ folderStatus = 1;
1094
+ }
1095
+ ajaxAnimation();
1096
+ }
1097
+ }
1098
+ });
1099
+ });
1100
+
1101
+ $(document).on("keyup", "#folder-search", function(){
1102
+ checkForFolderSearch();
1103
+ });
1104
+ $(document).on("change", "#folder-search", function(){
1105
+ checkForFolderSearch();
1106
+ });
1107
+ $(document).on("blur", "#folder-search", function(){
1108
+ checkForFolderSearch();
1109
+ });
1110
+
1111
+ $(document).on("click","#folder-hide-show-checkbox",function(){
1112
+ if($(this).is(":checked")) {
1113
+ $("#custom-menu").addClass("show-folder-checkbox");
1114
+ } else {
1115
+ $("#custom-menu input.checkbox").attr("checked", false);
1116
+ $("#custom-menu").removeClass("show-folder-checkbox");
1117
+ }
1118
+ });
1119
+
1120
+ $(document).on("click","#inline-remove",function(){
1121
+ if($("#custom-menu li.active-item").length) {
1122
+ fileFolderID = $("#custom-menu li.active-item").data("folder-id");
1123
+ removeFolderFromID(1);
1124
+ $(".dynamic-menu").remove();
1125
+ $(".active-menu").removeClass("active-menu");
1126
+ } else {
1127
+ if($("#folder-hide-show-checkbox").is(":checked")) {
1128
+ //removeMultipleFolderItems();
1129
+ $(".dynamic-menu").remove();
1130
+ removeFolderFromID(1);
1131
+ }
1132
+ }
1133
+ });
1134
+
1135
+ });
1136
+
1137
+ function removeMultipleFolderItems() {
1138
+ if($("#folder-hide-show-checkbox").is(":checked")) {
1139
+ if($("#custom-menu input.checkbox:checked").length > 0) {
1140
+ var folderIDs = "";
1141
+ var activeItemDeleted = false;
1142
+ $("#custom-menu input.checkbox:checked").each(function(){
1143
+ folderIDs += $(this).val()+",";
1144
+ if($(this).closest("li.route").hasClass("active-item")) {
1145
+ activeItemDeleted = true;
1146
+ }
1147
+ });
1148
+ $(".form-loader-count").css("width", "100%");
1149
+ jQuery.ajax({
1150
+ url: folders_media_options.ajax_url,
1151
+ data: "type=" + folders_media_options.post_type + "&action=wcp_remove_muliple_folder&term_id=" + folderIDs+"&nonce="+folders_media_options.nonce,
1152
+ method: 'post',
1153
+ success: function (res) {
1154
+ var res = jQuery.parseJSON(res);
1155
+ $(".form-loader-count").css("width", "0px");
1156
+ if (res.status == '1') {
1157
+ isKeyActive = parseInt(res.is_key_active);
1158
+ n_o_file = parseInt(res.folders);
1159
+ $("#current-folder").text(n_o_file);
1160
+ $("#custom-menu input.checkbox:checked").each(function(){
1161
+ $("#wcp_folder_"+$(this).val()).closest("li.route").remove();
1162
+ $("#space"+$(this).val()).remove();
1163
+ });
1164
+
1165
+ $("#ttl-fldr").text((4*2)+(4/2));
1166
+ // add_menu_to_list();
1167
+ ajaxAnimation();
1168
+ $(".folder-popup-form").hide();
1169
+ $(".folder-popup-form").removeClass("disabled");
1170
+ resetMediaAndPosts();
1171
+
1172
+ ajaxAnimation();
1173
+
1174
+ if(!$("#wcp_folder_"+activeRecordID).length) {
1175
+ $(".header-posts a").trigger("click");
1176
+ activeRecordID = 0;
1177
+ }
1178
+ } else {
1179
+ window.location.reload();
1180
+ }
1181
+ $("#folder-hide-show-checkbox").attr("checked", false);
1182
+ $("#custom-menu input.checkbox").attr("checked", false);
1183
+ $("#custom-menu").removeClass("show-folder-checkbox");
1184
+ }
1185
+ });
1186
+ } else {
1187
+
1188
+ }
1189
+ }
1190
+ }
1191
+
1192
+ function resetMediaAndPosts() {
1193
+ if($(".media-toolbar").hasClass("media-toolbar-mode-select")) {
1194
+ if($("ul.attachments li.selected").length) {
1195
+ $("ul.attachments li.selected").trigger("click");
1196
+ $(".select-mode-toggle-button").trigger("click");
1197
+ }
1198
+ }
1199
+ if(folderIDs != "" && ($("#custom-menu li.active-item").length > 0 || activeRecordID == "-1")) {
1200
+ if($("#media-attachment-taxonomy-filter").length) {
1201
+ folderIDs = folderIDs.split(",");
1202
+ for (var i = 0; i < folderIDs.length; i++) {
1203
+ if(folderIDs[i] != "") {
1204
+ $(".attachments-browser li[data-id='"+folderIDs[i]+"']").remove();
1205
+ }
1206
+ }
1207
+ }
1208
+ folderIDs = "";
1209
+ }
1210
+ if($("#media-attachment-taxonomy-filter").length) {
1211
+ resetMediaData(0);
1212
+ } else {
1213
+ jQuery.ajax({
1214
+ url: folders_media_options.ajax_url,
1215
+ data: "type=" + folders_media_options.post_type + "&action=get_folders_default_list",
1216
+ method: 'post',
1217
+ success: function (res) {
1218
+ var res = jQuery.parseJSON(res);
1219
+ $(".header-posts .total-count").text(res.total_items);
1220
+ $(".un-categorised-items .total-count").text(res.empty_items);
1221
+
1222
+ for (i = 0; i < res.taxonomies.length; i++) {
1223
+ if(!$("#title_"+res.taxonomies[i].term_id+" .total-count").length) {
1224
+ $("#title_"+res.taxonomies[i].term_id+" .star-icon").before("<span class='total-count'></span>");
1225
+ }
1226
+ $("#title_"+res.taxonomies[i].term_id+" .total-count").text(parseInt(res.taxonomies[i].trash_count));
1227
+
1228
+ if(!$(".sticky-folders .sticky-folder-"+res.taxonomies[i].term_id+" .folder-count").length) {
1229
+ $(".sticky-folders .sticky-folder-"+res.taxonomies[i].term_id+" a").append("<span class='folder-count'></span>")
1230
+ }
1231
+ $(".sticky-folders .sticky-folder-"+res.taxonomies[i].term_id+" .folder-count").text(parseInt(res.taxonomies[i].trash_count));
1232
+ }
1233
+
1234
+ $("#custom-menu .total-count").each(function(){
1235
+ if(parseInt($(this).text()) == 0) {
1236
+ $(this).remove();
1237
+ }
1238
+ });
1239
+
1240
+ $(".sticky-folders .folder-count").each(function(){
1241
+ if(parseInt($(this).text()) == 0) {
1242
+ $(this).remove();
1243
+ }
1244
+ });
1245
+ }
1246
+ });
1247
+ $(".folder-loader-ajax").addClass("active");
1248
+ if($("#folder-posts-filter").length) {
1249
+ $("#folder-posts-filter").load(folderCurrentURL + " #posts-filter", function () {
1250
+ if (folders_media_options.show_in_page == "show" && !$(".tree-structure").length) {
1251
+ $(".wp-header-end").before('<div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div>');
1252
+ }
1253
+ add_active_item_to_list();
1254
+ triggerInlineUpdate();
1255
+ });
1256
+ } else {
1257
+ $("#wpbody").load(folderCurrentURL + " #wpbody-content", false, function (res) {
1258
+ if (folders_media_options.show_in_page == "show" && !$(".tree-structure").length) {
1259
+ $(".wp-header-end").before('<div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div>');
1260
+ }
1261
+ add_active_item_to_list();
1262
+ });
1263
+ }
1264
+ }
1265
+ }
1266
+
1267
+ function resetDDCounter() {
1268
+ var currentDDVal = $("#media-attachment-taxonomy-filter").val();
1269
+ jQuery.ajax({
1270
+ url: folders_media_options.ajax_url,
1271
+ data: "type=attachment&action=wcp_get_default_list&active_id=0",
1272
+ method: 'post',
1273
+ success: function (res) {
1274
+ var res = jQuery.parseJSON(res);
1275
+
1276
+ if($("#media-attachment-taxonomy-filter").length) {
1277
+ $("#media-attachment-taxonomy-filter").each(function(){
1278
+ folders_media_options.terms = res.taxonomies;
1279
+ var selectedDD = $(this);
1280
+ selectedDD.html("<option value='all'>All Folders</option><option value='unassigned'>(Unassigned)</option>");
1281
+ lastFolderData = res.taxonomies;
1282
+ for (var i = 0; i < res.taxonomies.length; i++) {
1283
+ selectedDD.append("<option value='" + res.taxonomies[i].term_id + "'>" + res.taxonomies[i].name + " (" + res.taxonomies[i].count + ")</option>");
1284
+ }
1285
+ selectedDD.val(currentDDVal).trigger("change");
1286
+
1287
+ // if(resetMediaID !== false) {
1288
+ // selectedDD.val(resetMediaID).trigger("change");
1289
+ // }
1290
+ });
1291
+ if($("select.folder_for_media").length) {
1292
+ var selectedVal = $("select.folder_for_media").val();
1293
+ $("select.folder_for_media option:not(:first-child):not(:last-child)").remove();
1294
+ for (var i = 0; i < res.taxonomies.length; i++) {
1295
+ $("select.folder_for_media option:last-child").before("<option value='" + res.taxonomies[i].term_id + "'>" + res.taxonomies[i].name +"</option>");
1296
+ }
1297
+ if(selectedVal != "") {
1298
+ $(".folder_for_media").val(selectedVal);
1299
+ }
1300
+ }
1301
+ for (var i = 0; i < res.taxonomies.length; i++) {
1302
+ if(!$("#title_"+res.taxonomies[i].term_id+" .total-count").length) {
1303
+ $("#title_"+res.taxonomies[i].term_id+" .star-icon").before("<span class='total-count'></span>");
1304
+ }
1305
+ $("#title_"+res.taxonomies[i].term_id+" .total-count").text(parseInt(res.taxonomies[i].trash_count));
1306
+
1307
+ if(!$(".sticky-folders .sticky-folder-"+res.taxonomies[i].term_id+" .folder-count").length) {
1308
+ $(".sticky-folders .sticky-folder-"+res.taxonomies[i].term_id+" a").append("<span class='folder-count'></span>")
1309
+ }
1310
+ $(".sticky-folders .sticky-folder-"+res.taxonomies[i].term_id+" .folder-count").text(parseInt(res.taxonomies[i].trash_count));
1311
+
1312
+ $("#title_"+res.taxonomies[i].term_id).attr("title", res.taxonomies[i].term_name);
1313
+ $("#title_"+res.taxonomies[i].term_id+" .title-text").html(res.taxonomies[i].term_name);
1314
+ }
1315
+
1316
+ $("#custom-menu .total-count").each(function(){
1317
+ if(parseInt($(this).text()) == 0) {
1318
+ $(this).remove();
1319
+ }
1320
+ });
1321
+
1322
+ $(".sticky-folders .folder-count").each(function(){
1323
+ if(parseInt($(this).text()) == 0) {
1324
+ $(this).remove();
1325
+ }
1326
+ });
1327
+ }
1328
+ }
1329
+ });
1330
+ }
1331
+
1332
+ function checkForFolderSearch() {
1333
+
1334
+ if($.trim($("#folder-search").val()) != "") {
1335
+ $("#custom-menu").addClass("has-filter");
1336
+ var searchText = $.trim($("#folder-search").val());
1337
+ $("#custom-menu span.title-text").removeClass("has-search-text");
1338
+ $("li.route").removeClass("has-search");
1339
+ $("#custom-menu span.title-text").each(function(){
1340
+ var thisText = $(this).text();
1341
+ if(thisText.indexOf(searchText) !== -1) {
1342
+ $(this).addClass("has-search-text");
1343
+ $(this).parents("li.route:not(.has-sub-tree)").addClass("has-search");
1344
+ $(this).parents("li.route.has-sub-tree.active").addClass("has-search");
1345
+ }
1346
+ });
1347
+ } else {
1348
+ $("#custom-menu").removeClass("has-filter");
1349
+ $("#custom-menu span.title-text").removeClass("has-search-text");
1350
+ $("li.route").removeClass("has-search");
1351
+ }
1352
+ }
1353
+
1354
+ function removeFolderFromID(popup_type) {
1355
+ var removeMessage = "Are you sure you want to delete the selected folder?";
1356
+ var removeNotice = "Items in the folder will not be deleted.";
1357
+ isMultipleRemove = false;
1358
+ if(popup_type == 1) {
1359
+ if($("#folder-hide-show-checkbox").is(":checked")) {
1360
+ isMultipleRemove = true;
1361
+ if($("#custom-menu input.checkbox:checked").length == 0) {
1362
+ $(".folder-popup-form").hide();
1363
+ $(".folder-popup-form").removeClass("disabled");
1364
+ $("#error-folder-popup-message").html("Please select at least one folder to delete");
1365
+ $("#error-folder-popup").show();
1366
+ return;
1367
+ } else {
1368
+ if($("#custom-menu input.checkbox:checked").length > 1) {
1369
+ removeMessage = "Are you sure you want to delete the selected folders?";
1370
+ removeNotice = "Items in the selected folders will not be deleted.";
1371
+ }
1372
+ }
1373
+ }
1374
+ }
1375
+ $(".folder-popup-form").hide();
1376
+ $(".folder-popup-form").removeClass("disabled");
1377
+ $("#remove-folder-item").text("Yes, Delete it!");
1378
+ $("#remove-folder-message").text(removeMessage);
1379
+ $("#remove-folder-notice").text(removeNotice);
1380
+ $("#confirm-remove-folder").show();
1381
+ $("#remove-folder-item").focus();
1382
+ }
1383
+
1384
+ function updateFolder() {
1385
+ var folderName = $.trim($("#wcp_folder_"+fileFolderID+" > h3 > .title-text").text());
1386
+ var parentID = $("#wcp_folder_"+fileFolderID).closest("li.route").data("folder-id");
1387
+ if(parentID == undefined) {
1388
+ parentID = 0;
1389
+ }
1390
+
1391
+ $(".dynamic-menu").hide();
1392
+ $("#update-folder-data").text("Submit");
1393
+ $(".folder-form-errors").removeClass("active");
1394
+ $("#update-folder-item-name").val(folderName);
1395
+ $("#update-folder-item").removeClass("disabled");
1396
+ $("#update-folder-item").show();
1397
+ $("#update-folder-item-name").focus();
1398
+ }
1399
+
1400
+ function addFolder() {
1401
+ isKeyActive = parseInt(folders_media_options.is_key_active);
1402
+
1403
+ if(isKeyActive == 0 && n_o_file >= ((4*4)-(3*3)+(4/4)+(8/(2*2)))) {
1404
+ $("#folder-limitation-message").html("You've "+"reached the "+((4*4)-(2*2)-2)+" folder limitation!");
1405
+ $("#no-more-folder-credit").show();
1406
+ return false;
1407
+ }
1408
+
1409
+ $("#add-update-folder-title").text("Add new folder");
1410
+ $("#save-folder-data").text("Submit");
1411
+ $(".folder-form-errors").removeClass("active");
1412
+ $("#add-update-folder-name").val("");
1413
+ if(isDuplicate) {
1414
+ duplicateFolderId = fileFolderID;
1415
+ $("#add-update-folder-name").val($("#title_"+fileFolderID+" .title-text").text() + " #2");
1416
+ if($("li#wcp_folder_"+fileFolderID).parent().hasClass("first-space")) {
1417
+ fileFolderID = 0;
1418
+ } else {
1419
+ fileFolderID = $("li#wcp_folder_"+fileFolderID).parent().parent().data("folder-id");
1420
+ }
1421
+ }
1422
+
1423
+ folderOrder = $("#space_"+fileFolderID+" > li").length+1;
1424
+ ajaxURL = folders_media_options.ajax_url+"?parent_id=" + fileFolderID + "&type=" + folders_media_options.post_type + "&action=wcp_add_new_folder&nonce=" + folders_media_options.nonce + "&term_id=" + fileFolderID + "&order=" + folderOrder+"&name=";
1425
+
1426
+ $("#add-update-folder").removeClass("disabled");
1427
+ $("#add-update-folder").show();
1428
+ $("#add-update-folder-name").focus();
1429
+ }
1430
+
1431
+ function checkForExpandCollapse() {
1432
+ if(($("#custom-menu .has-sub-tree").length == $("#custom-menu .has-sub-tree.active").length) && $("#custom-menu .has-sub-tree").length) {
1433
+ $("#expand-collapse-list").addClass("all-open");
1434
+ $("#expand-collapse-list").attr("data-tooltip","Collapse");
1435
+ } else {
1436
+ $("#expand-collapse-list").removeClass("all-open");
1437
+ $("#expand-collapse-list").attr("data-tooltip","Expand");
1438
+ }
1439
+ }
1440
+
1441
+ function resetMediaData(loadData) {
1442
+ jQuery.ajax({
1443
+ url: folders_media_options.ajax_url,
1444
+ data: "type=" + folders_media_options.post_type + "&action=wcp_get_default_list&active_id="+activeRecordID,
1445
+ method: 'post',
1446
+ success: function (res) {
1447
+ res = jQuery.parseJSON(res);
1448
+ // $("#custom-menu > ul#space_0").html(res.data);
1449
+ $(".header-posts .total-count").text(res.total_items);
1450
+ $(".un-categorised-items .total-count").text(res.empty_items);
1451
+ var selectedVal = $("#media-attachment-taxonomy-filter").val();
1452
+ if(selectedVal != "all") {
1453
+ var wp1 = parent.wp;
1454
+ if(wp1.media != undefined) {
1455
+ wp1.media.frame.setState('insert');
1456
+ if (wp1.media.frame.content.get() !== null) {
1457
+ wp1.media.frame.content.get().collection.props.set({ignore: (+new Date())});
1458
+ wp1.media.frame.content.get().options.selection.reset();
1459
+ } else {
1460
+ wp1.media.frame.library.props.set({ignore: (+new Date())});
1461
+ }
1462
+ }
1463
+ }
1464
+ if(res.taxonomies.length) {
1465
+ if($("#media-attachment-taxonomy-filter").length) {
1466
+ folders_media_options.terms = res.taxonomies;
1467
+ var selectedDD = $("#media-attachment-taxonomy-filter");
1468
+ selectedDD.html("<option value='all'>All Folders</option><option value='unassigned'>(Unassigned)</option>");
1469
+ $(".media-select-folder").html("<option value=''>Select Folder</option><option value='-1'>(Unassigned)</option>");
1470
+ for (var i = 0; i < res.taxonomies.length; i++) {
1471
+ selectedDD.append("<option value='" + res.taxonomies[i].term_id + "'>" + res.taxonomies[i].name + " (" + res.taxonomies[i].trash_count + ")</option>");
1472
+ $(".media-select-folder").append("<option value='" + res.taxonomies[i].term_id + "'>" + res.taxonomies[i].name + " (" + res.taxonomies[i].trash_count + ")</option>");
1473
+
1474
+ $("#title_"+res.taxonomies[i].term_id).attr("title", res.taxonomies[i].term_name);
1475
+ $("#title_"+res.taxonomies[i].term_id+" .title-text").html(res.taxonomies[i].term_name);
1476
+ }
1477
+ selectedDD.val(selectedVal);
1478
+ $(".media-select-folder").val("");
1479
+ }
1480
+ if($("select.folder_for_media").length) {
1481
+ selectedVal = $("select.folder_for_media").val();
1482
+ $("select.folder_for_media option:not(:first-child):not(:last-child)").remove();
1483
+ for (var i = 0; i < res.taxonomies.length; i++) {
1484
+ $("select.folder_for_media option:last-child").before("<option value='" + res.taxonomies[i].term_id + "'>" + res.taxonomies[i].name +"</option>");
1485
+ }
1486
+ if(selectedVal != "") {
1487
+ $(".folder_for_media").val(selectedVal);
1488
+ }
1489
+ }
1490
+ for (var i = 0; i < res.taxonomies.length; i++) {
1491
+ if(!$("#title_"+res.taxonomies[i].term_id+" .total-count").length) {
1492
+ $("#title_"+res.taxonomies[i].term_id+" .star-icon").before("<span class='total-count'></span>");
1493
+ }
1494
+ $("#title_"+res.taxonomies[i].term_id+" .total-count").text(parseInt(res.taxonomies[i].trash_count));
1495
+
1496
+ if(!$(".sticky-folders .sticky-folder-"+res.taxonomies[i].term_id+" .folder-count").length) {
1497
+ $(".sticky-folders .sticky-folder-"+res.taxonomies[i].term_id+" a").append("<span class='folder-count'></span>")
1498
+ }
1499
+ $(".sticky-folders .sticky-folder-"+res.taxonomies[i].term_id+" .folder-count").text(parseInt(res.taxonomies[i].trash_count));
1500
+
1501
+ $("#title_"+res.taxonomies[i].term_id).attr("title", res.taxonomies[i].term_name);
1502
+ $("#title_"+res.taxonomies[i].term_id+" .title-text").html(res.taxonomies[i].term_name);
1503
+ }
1504
+
1505
+ $("#custom-menu .total-count").each(function(){
1506
+ if(parseInt($(this).text()) == 0) {
1507
+ $(this).remove();
1508
+ }
1509
+ });
1510
+
1511
+ $(".sticky-folders .folder-count").each(function(){
1512
+ if(parseInt($(this).text()) == 0) {
1513
+ $(this).remove();
1514
+ }
1515
+ });
1516
+ }
1517
+ if(activeRecordID != "") {
1518
+ $("#wcp_folder_"+activeRecordID).addClass("active-item");
1519
+ }
1520
+
1521
+ if(isItFromMedia) {
1522
+ $("#title_"+fileFolderID).trigger("click");
1523
+ isItFromMedia = false;
1524
+ }
1525
+ }
1526
+ });
1527
+ }
1528
+
1529
+ function ajaxAnimation() {
1530
+ $(".folder-loader-ajax").addClass("active");
1531
+ $(".folder-loader-ajax img").removeClass("active");
1532
+ $(".folder-loader-ajax svg#successAnimation").addClass("active").addClass("animated");
1533
+ setTimeout(function(){
1534
+ $(".folder-loader-ajax").removeClass("active");
1535
+ $(".folder-loader-ajax img").addClass("active");
1536
+ $(".folder-loader-ajax svg#successAnimation").removeClass("active").removeClass("animated");
1537
+ }, 2000);
1538
+ }
1539
+
1540
+ function calcWidth(obj){
1541
+ var titles =
1542
+ $(obj).siblings('.space').children('.route').children('.title');
1543
+ $(titles).each(function(index, element){
1544
+ var pTitleWidth = parseInt($(obj).css('width'));
1545
+ var leftOffset = parseInt($(obj).siblings('.space').css('margin-left'));
1546
+ var newWidth = pTitleWidth - leftOffset;
1547
+ if ($(obj).attr('id') == 'title_0'){
1548
+ newWidth = newWidth - 10;
1549
+ }
1550
+ $(element).css({
1551
+ 'width': newWidth
1552
+ });
1553
+ calcWidth(element);
1554
+ });
1555
+
1556
+ }
1557
+ })(jQuery, _);
assets/js/page-post-media.min.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(t){"use strict";var o=-1,a=0,s=0,i="",r=-1,l="",d=folders_media_options.page_url,n="",c="",m=!1,p=!1,u=!1,f=0,h=0,v=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)}}),g=(o=-1,0),x=0,y=wp.media.view.AttachmentsBrowser;wp.media.view.AttachmentsBrowser=wp.media.view.AttachmentsBrowser.extend({createToolbar:function(){y.prototype.createToolbar.call(this),this.toolbar.set("MediaLibraryOrganizerTaxonomyFilter",new v({controller:this.controller,model:this.collection.props,priority:-75}).render())}});var w,b=wp.media.model.Query;_.extend(b,{get:(w=[],function(e,t){var o,a={},s=b.orderby,i=b.defaultProps;return delete e.query,delete e.cache,_.defaults(e,i),_.each(["include","exclude"],function(t){e[t]&&!_.isArray(e[t])&&(e[t]=[e[t]])}),_.each(e,function(e,t){_.isNull(e)||(a[b.propmap[t]||t]=e)}),_.defaults(a,b.defaultArgs),a.orderby=s.valuemap[e.orderby]||e.orderby,w=[],o||(o=new b([],_.extend(t||{},{props:e,args:a})),w.push(o)),o})});var C=window.wp;void 0!==C&&"function"==typeof C.Uploader&&(C.media.view.Modal.prototype.on("open",function(){setTimeout(function(){t("#media-attachment-taxonomy-filter").length&&("all"==t("#media-attachment-taxonomy-filter").val()&&(t("#media-attachment-taxonomy-filter option:gt(1)").remove(),_.each(folders_media_options.terms,function(e,o){t("#media-attachment-taxonomy-filter").append("<option value='"+e.term_id+"'>"+e.name+" ("+e.count+")</option>")})),jQuery("#wcp-content").length||jQuery(".editor-post-featured-image").length&&jQuery(".attachment-filters").val("all").trigger("change"))},100)}),jQuery.extend(C.Uploader.prototype,{progress:function(){},init:function(){this.uploader&&(this.uploader.bind("FileFiltered",function(e,o){g++,t(".folder-meter").css("width","0%"),t(".media-folder-loader").show(),t("#total_upload_files").text(g)}),this.uploader.bind("BeforeUpload",function(e,a){var s=o,i=e.settings.multipart_params;if((s=parseInt(s))>0&&(i.folder_for_media=s),x<g){t(".media-folder-loader").show();var r=x/g*100;t(".folder-meter").css("width",r+"%")}x++,t("#current_upload_files").text(x)}),this.uploader.bind("UploadComplete",function(e,t){o=-1}),this.uploader.bind("UploadComplete",function(e,o){var a=window.wp;t(".folder-meter").css("width","100%"),setTimeout(function(){t(".media-folder-loader").hide(),t(".folder-meter").css("width","0%"),g=0,x=0},1250),Q(),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()):t("#media-attachment-taxonomy-filter").length&&t(".attachment-filters").each(function(){t(this).trigger("change")})}))}}));var k=window.wp;function j(){if(t(".media-toolbar").hasClass("media-toolbar-mode-select")&&t("ul.attachments li.selected").length&&(t("ul.attachments li.selected").trigger("click"),t(".select-mode-toggle-button").trigger("click")),""!=c&&(t("#custom-menu li.active-item").length>0||"-1"==n)){if(t("#media-attachment-taxonomy-filter").length){c=c.split(",");for(var e=0;e<c.length;e++)""!=c[e]&&t(".attachments-browser li[data-id='"+c[e]+"']").remove()}c=""}t("#media-attachment-taxonomy-filter").length?N(0):(jQuery.ajax({url:folders_media_options.ajax_url,data:"type="+folders_media_options.post_type+"&action=get_folders_default_list",method:"post",success:function(o){o=jQuery.parseJSON(o);for(t(".header-posts .total-count").text(o.total_items),t(".un-categorised-items .total-count").text(o.empty_items),e=0;e<o.taxonomies.length;e++)t("#title_"+o.taxonomies[e].term_id+" .total-count").length||t("#title_"+o.taxonomies[e].term_id+" .star-icon").before("<span class='total-count'></span>"),t("#title_"+o.taxonomies[e].term_id+" .total-count").text(parseInt(o.taxonomies[e].trash_count)),t(".sticky-folders .sticky-folder-"+o.taxonomies[e].term_id+" .folder-count").length||t(".sticky-folders .sticky-folder-"+o.taxonomies[e].term_id+" a").append("<span class='folder-count'></span>"),t(".sticky-folders .sticky-folder-"+o.taxonomies[e].term_id+" .folder-count").text(parseInt(o.taxonomies[e].trash_count));t("#custom-menu .total-count").each(function(){0==parseInt(t(this).text())&&t(this).remove()}),t(".sticky-folders .folder-count").each(function(){0==parseInt(t(this).text())&&t(this).remove()})}}),t(".folder-loader-ajax").addClass("active"),t("#folder-posts-filter").length?t("#folder-posts-filter").load(d+" #posts-filter",function(){"show"!=folders_media_options.show_in_page||t(".tree-structure").length||t(".wp-header-end").before('<div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div>'),add_active_item_to_list(),triggerInlineUpdate()}):t("#wpbody").load(d+" #wpbody-content",!1,function(e){"show"!=folders_media_options.show_in_page||t(".tree-structure").length||t(".wp-header-end").before('<div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div>'),add_active_item_to_list()}))}function Q(){var e=t("#media-attachment-taxonomy-filter").val();jQuery.ajax({url:folders_media_options.ajax_url,data:"type=attachment&action=wcp_get_default_list&active_id=0",method:"post",success:function(o){o=jQuery.parseJSON(o);if(t("#media-attachment-taxonomy-filter").length){if(t("#media-attachment-taxonomy-filter").each(function(){folders_media_options.terms=o.taxonomies;var a=t(this);a.html("<option value='all'>All Folders</option><option value='unassigned'>(Unassigned)</option>"),o.taxonomies;for(var s=0;s<o.taxonomies.length;s++)a.append("<option value='"+o.taxonomies[s].term_id+"'>"+o.taxonomies[s].name+" ("+o.taxonomies[s].count+")</option>");a.val(e).trigger("change")}),t("select.folder_for_media").length){var a=t("select.folder_for_media").val();t("select.folder_for_media option:not(:first-child):not(:last-child)").remove();for(var s=0;s<o.taxonomies.length;s++)t("select.folder_for_media option:last-child").before("<option value='"+o.taxonomies[s].term_id+"'>"+o.taxonomies[s].name+"</option>");""!=a&&t(".folder_for_media").val(a)}for(s=0;s<o.taxonomies.length;s++)t("#title_"+o.taxonomies[s].term_id+" .total-count").length||t("#title_"+o.taxonomies[s].term_id+" .star-icon").before("<span class='total-count'></span>"),t("#title_"+o.taxonomies[s].term_id+" .total-count").text(parseInt(o.taxonomies[s].trash_count)),t(".sticky-folders .sticky-folder-"+o.taxonomies[s].term_id+" .folder-count").length||t(".sticky-folders .sticky-folder-"+o.taxonomies[s].term_id+" a").append("<span class='folder-count'></span>"),t(".sticky-folders .sticky-folder-"+o.taxonomies[s].term_id+" .folder-count").text(parseInt(o.taxonomies[s].trash_count)),t("#title_"+o.taxonomies[s].term_id).attr("title",o.taxonomies[s].term_name),t("#title_"+o.taxonomies[s].term_id+" .title-text").html(o.taxonomies[s].term_name);t("#custom-menu .total-count").each(function(){0==parseInt(t(this).text())&&t(this).remove()}),t(".sticky-folders .folder-count").each(function(){0==parseInt(t(this).text())&&t(this).remove()})}}})}function I(){if(""!=t.trim(t("#folder-search").val())){t("#custom-menu").addClass("has-filter");var e=t.trim(t("#folder-search").val());t("#custom-menu span.title-text").removeClass("has-search-text"),t("li.route").removeClass("has-search"),t("#custom-menu span.title-text").each(function(){-1!==t(this).text().indexOf(e)&&(t(this).addClass("has-search-text"),t(this).parents("li.route:not(.has-sub-tree)").addClass("has-search"),t(this).parents("li.route.has-sub-tree.active").addClass("has-search"))})}else t("#custom-menu").removeClass("has-filter"),t("#custom-menu span.title-text").removeClass("has-search-text"),t("li.route").removeClass("has-search")}function S(e){var o="Are you sure you want to delete the selected folder?",a="Items in the folder will not be deleted.";if(m=!1,1==e&&t("#folder-hide-show-checkbox").is(":checked")){if(m=!0,0==t("#custom-menu input.checkbox:checked").length)return t(".folder-popup-form").hide(),t(".folder-popup-form").removeClass("disabled"),t("#error-folder-popup-message").html("Please select at least one folder to delete"),void t("#error-folder-popup").show();t("#custom-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.")}t(".folder-popup-form").hide(),t(".folder-popup-form").removeClass("disabled"),t("#remove-folder-item").text("Yes, Delete it!"),t("#remove-folder-message").text(o),t("#remove-folder-notice").text(a),t("#confirm-remove-folder").show(),t("#remove-folder-item").focus()}function P(){var e=t.trim(t("#wcp_folder_"+s+" > h3 > .title-text").text()),o=t("#wcp_folder_"+s).closest("li.route").data("folder-id");null==o&&(o=0),t(".dynamic-menu").hide(),t("#update-folder-data").text("Submit"),t(".folder-form-errors").removeClass("active"),t("#update-folder-item-name").val(e),t("#update-folder-item").removeClass("disabled"),t("#update-folder-item").show(),t("#update-folder-item-name").focus()}function A(){if(0==parseInt(folders_media_options.is_key_active)&&r>=10)return t("#folder-limitation-message").html("You've reached the 10 folder limitation!"),t("#no-more-folder-credit").show(),!1;t("#add-update-folder-title").text("Add new folder"),t("#save-folder-data").text("Submit"),t(".folder-form-errors").removeClass("active"),t("#add-update-folder-name").val(""),u&&(f=s,t("#add-update-folder-name").val(t("#title_"+s+" .title-text").text()+" #2"),s=t("li#wcp_folder_"+s).parent().hasClass("first-space")?0:t("li#wcp_folder_"+s).parent().parent().data("folder-id")),h=t("#space_"+s+" > li").length+1,folders_media_options.ajax_url+"?parent_id="+s+"&type="+folders_media_options.post_type+"&action=wcp_add_new_folder&nonce="+folders_media_options.nonce+"&term_id="+s+"&order="+h+"&name=",t("#add-update-folder").removeClass("disabled"),t("#add-update-folder").show(),t("#add-update-folder-name").focus()}function D(){t("#custom-menu .has-sub-tree").length==t("#custom-menu .has-sub-tree.active").length&&t("#custom-menu .has-sub-tree").length?(t("#expand-collapse-list").addClass("all-open"),t("#expand-collapse-list").attr("data-tooltip","Collapse")):(t("#expand-collapse-list").removeClass("all-open"),t("#expand-collapse-list").attr("data-tooltip","Expand"))}function N(e){jQuery.ajax({url:folders_media_options.ajax_url,data:"type="+folders_media_options.post_type+"&action=wcp_get_default_list&active_id="+n,method:"post",success:function(e){e=jQuery.parseJSON(e),t(".header-posts .total-count").text(e.total_items),t(".un-categorised-items .total-count").text(e.empty_items);var o=t("#media-attachment-taxonomy-filter").val();if("all"!=o){var a=parent.wp;null!=a.media&&(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}))}if(e.taxonomies.length){if(t("#media-attachment-taxonomy-filter").length){folders_media_options.terms=e.taxonomies;var i=t("#media-attachment-taxonomy-filter");i.html("<option value='all'>All Folders</option><option value='unassigned'>(Unassigned)</option>"),t(".media-select-folder").html("<option value=''>Select Folder</option><option value='-1'>(Unassigned)</option>");for(var r=0;r<e.taxonomies.length;r++)i.append("<option value='"+e.taxonomies[r].term_id+"'>"+e.taxonomies[r].name+" ("+e.taxonomies[r].trash_count+")</option>"),t(".media-select-folder").append("<option value='"+e.taxonomies[r].term_id+"'>"+e.taxonomies[r].name+" ("+e.taxonomies[r].trash_count+")</option>"),t("#title_"+e.taxonomies[r].term_id).attr("title",e.taxonomies[r].term_name),t("#title_"+e.taxonomies[r].term_id+" .title-text").html(e.taxonomies[r].term_name);i.val(o),t(".media-select-folder").val("")}if(t("select.folder_for_media").length){o=t("select.folder_for_media").val(),t("select.folder_for_media option:not(:first-child):not(:last-child)").remove();for(r=0;r<e.taxonomies.length;r++)t("select.folder_for_media option:last-child").before("<option value='"+e.taxonomies[r].term_id+"'>"+e.taxonomies[r].name+"</option>");""!=o&&t(".folder_for_media").val(o)}for(r=0;r<e.taxonomies.length;r++)t("#title_"+e.taxonomies[r].term_id+" .total-count").length||t("#title_"+e.taxonomies[r].term_id+" .star-icon").before("<span class='total-count'></span>"),t("#title_"+e.taxonomies[r].term_id+" .total-count").text(parseInt(e.taxonomies[r].trash_count)),t(".sticky-folders .sticky-folder-"+e.taxonomies[r].term_id+" .folder-count").length||t(".sticky-folders .sticky-folder-"+e.taxonomies[r].term_id+" a").append("<span class='folder-count'></span>"),t(".sticky-folders .sticky-folder-"+e.taxonomies[r].term_id+" .folder-count").text(parseInt(e.taxonomies[r].trash_count)),t("#title_"+e.taxonomies[r].term_id).attr("title",e.taxonomies[r].term_name),t("#title_"+e.taxonomies[r].term_id+" .title-text").html(e.taxonomies[r].term_name);t("#custom-menu .total-count").each(function(){0==parseInt(t(this).text())&&t(this).remove()}),t(".sticky-folders .folder-count").each(function(){0==parseInt(t(this).text())&&t(this).remove()})}""!=n&&t("#wcp_folder_"+n).addClass("active-item"),p&&(t("#title_"+s).trigger("click"),p=!1)}})}function O(){t(".folder-loader-ajax").addClass("active"),t(".folder-loader-ajax img").removeClass("active"),t(".folder-loader-ajax svg#successAnimation").addClass("active").addClass("animated"),setTimeout(function(){t(".folder-loader-ajax").removeClass("active"),t(".folder-loader-ajax img").addClass("active"),t(".folder-loader-ajax svg#successAnimation").removeClass("active").removeClass("animated")},2e3)}void 0!==k&&"function"==typeof k.Uploader&&k.media.view.Modal.prototype.on("open",function(){t(".folder-custom-menu").length||(t(".media-frame-tab-panel").before("<div class='folder-custom-menu'><div class='folder-menu-content'></div></div>"),t(".folder-menu-content").load(folders_media_options.media_page_url+" #wcp-content-resize",function(){console.log("content loaded from media page"),D()}),t(".media-frame-tab-panel").before("<div class='folder-form-data'></div>"),t(".folder-form-data").load(folders_media_options.media_page_url+" #folder-add-update-content",function(){console.log("content loaded from media page")}),N(0))}),t(document).ready(function(){parseInt(folders_media_options.is_key_active),r=parseInt(folders_media_options.folders),t(document).on("click",".header-posts a.all-posts",function(e){s=0,n="",t(".active-item").removeClass("active-item"),t(this).addClass("active-item"),t("#media-attachment-taxonomy-filter").val("all").trigger("change"),t(".folder_for_media").val("all").trigger("change")}),t(document).on("click",".un-categorised-items",function(e){s=0,n="",t(".active-item").removeClass("active-item"),t(this).addClass("active-item"),t("#media-attachment-taxonomy-filter").val("unassigned").trigger("change"),t(".folder_for_media").val("-1").trigger("change")}),t(document).on("click","h3.title",function(e){s=t(this).closest("li.route").data("folder-id"),n=s,t(".active-item").removeClass("active-item"),t(this).closest("li.route").addClass("active-item"),t("#media-attachment-taxonomy-filter").val(s).trigger("change"),t(".folder_for_media").val(s).trigger("change")}),t(document).on("change",".folder_for_media",function(){"add-folder"!=t(this).val()&&null!=t(this).val()?o=t(this).val():"add-folder"==t(this).val()&&(o=-1)}),t(document).on("click",".update-inline-record",function(e){e.stopPropagation();var o=t(this).closest("li.route").hasClass("is-high");t(".dynamic-menu").remove(),t(".active-menu").removeClass("active-menu");var a="<div class='dynamic-menu'><ul><li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span> New Folder</a></li><li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span> Rename</a></li><li class='sticky-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class='sticky-pin'><i class='pfolder-pin'></i></span>Sticky Folder (Pro)</a></li><li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>"+(o?" Remove Star":"Add a Star")+"</a></li><li class='duplicate-folder'><a href='javascript:;'><span class=''><i class='pfolder-clone'></i></span> Duplicate folder</a></li>",s=parseInt(t(this).closest("li.route").find("h3.title:first > .total-count").text());"attachment"==folders_media_options.post_type&&s&&(a+="<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>"),a+="<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span> Delete</a></li></ul></div>",t(this).closest("h3.title").after(a),t(this).parents("li.route").addClass("active-menu"),t(this).closest("h3.title").offset().top+t(".dynamic-menu").height()>t(window).height()-20&&(t(".dynamic-menu").addClass("bottom-fix"),t(".dynamic-menu.bottom-fix").offset().top<t("#custom-scroll-menu").offset().top&&t(".dynamic-menu").removeClass("bottom-fix"))}),t(document).on("click","body, html",function(e){t(".dynamic-menu").remove(),t(".active-menu").removeClass("active-menu"),t(".folder-order").removeClass("active")}),t(document).on("click",".dynamic-menu, .folder-order",function(e){e.stopPropagation()}),t(document).on("contextmenu","h3.title",function(){if(e.preventDefault(),0==folders_media_options.can_manage_folder)return!1;var o=t(this).closest("li.route").hasClass("is-high");t(".dynamic-menu").remove(),t(".active-menu").removeClass("active-menu");var a="<div class='dynamic-menu'><ul><li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span> New Folder</a></li><li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span> Rename</a></li><li class='sticky-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class='sticky-pin'><i class='pfolder-pin'></i></span>Sticky Folder (Pro)</a></li><li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>"+(o?" Remove Star":"Add a Star")+"</a></li><li class='duplicate-folder'><a href='javascript:;'><span class=''><i class='pfolder-clone'></i></span> Duplicate folder</a></li>",s=parseInt(t(this).closest("li.route").find("h3.title:first > .total-count").text());return"attachment"==folders_media_options.post_type&&s&&(a+="<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>"),a+="<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span> Delete</a></li></ul></div>",t(this).after(a),t(this).parents("li.route").addClass("active-menu"),t(this).offset().top+t(".dynamic-menu").height()>t(window).height()-20&&(t(".dynamic-menu").addClass("bottom-fix"),t(".dynamic-menu.bottom-fix").offset().top<t("#custom-scroll-menu").offset().top&&t(".dynamic-menu").removeClass("bottom-fix")),!1}),t(document).on("click",".new-folder",function(e){e.stopPropagation(),t(".active-menu").removeClass("active-menu"),s=t(this).closest("li.route").data("folder-id"),t(".dynamic-menu").remove(),t(".active-menu").removeClass("active-menu"),p=!1,u=!1,A()}),t(document).on("click","#add-new-folder",function(e){s=t("#custom-menu li.active-item").length?t("#custom-menu li.active-item").data("folder-id"):0,p=!1,A()}),t(document).on("submit","#save-folder-form",function(e){if(e.stopPropagation(),e.preventDefault(),i=t("#add-update-folder-name").val(),""==t.trim(i))t(".folder-form-errors").addClass("active"),t("#add-update-folder-name").focus();else{t("#save-folder-data").html('<span class="dashicons dashicons-update"></span>'),t("#add-update-folder").addClass("disabled");var o="parent_id="+s+"&type="+folders_media_options.post_type+"&action=wcp_add_new_folder&nonce="+folders_media_options.nonce+"&term_id="+s+"&order="+h+"&name="+i+"&is_duplicate="+u+"&duplicate_from="+f;p&&(o="parent_id=0&type="+folders_media_options.post_type+"&action=wcp_add_new_folder&nonce="+folders_media_options.nonce+"&term_id=0&order="+h+"&name="+i+"&is_duplicate="+u+"&duplicate_from="+f),jQuery.ajax({url:folders_media_options.ajax_url,data:o,method:"post",success:function(e){var o=jQuery.parseJSON(e);"1"==o.status?(t("#space_"+o.parent_id).append(o.term_data),t("#wcp_folder_"+o.parent_id).addClass("active has-sub-tree"),parseInt(o.is_key_active),r=parseInt(o.folders),t("#current-folder").text(r),t("#ttl-fldr").text(10),D(),t(".folder-popup-form").hide(),t(".folder-popup-form").removeClass("disabled"),O(),s=o.term_id,N(0)):(t(".folder-popup-form").hide(),t(".folder-popup-form").removeClass("disabled"),t("#error-folder-popup-message").html(o.message),t("#error-folder-popup").show())}})}return!1}),t(document).on("click",".form-cancel-btn",function(){t(".folder-popup-form").hide()}),t(document).on("click",".folder-popup-form",function(e){t(".folder-popup-form").hide()}),t(document).on("click",".popup-form-content",function(e){e.stopPropagation()}),document.onkeydown=function(e){("key"in(e=e||window.event)?"Escape"===e.key||"Esc"===e.key:27===e.keyCode)&&t(".folder-popup-form").hide()},t(document).on("click",".rename-folder",function(e){e.stopPropagation(),s=t(this).closest("li.route").data("folder-id"),P()}),t(document).on("click","#inline-update",function(e){t("#custom-menu li.active-item").length&&(s=t("#custom-menu li.active-item").data("folder-id"),P())}),t(document).on("submit","#update-folder-form",function(e){if(e.stopPropagation(),e.preventDefault(),t(".dynamic-menu").hide(),i=t("#update-folder-item-name").val(),""==t.trim(i))t(".folder-form-errors").addClass("active"),t("#update-folder-item-name").focus();else{t("#update-folder-data").html('<span class="dashicons dashicons-update"></span>'),t("#update-folder-item").addClass("disabled"),l=t.trim(t("#wcp_folder_"+s).data("rename"));var o=t("#wcp_folder_"+s).closest("li.route").data("folder-id");null==o&&(o=0),jQuery.ajax({url:folders_media_options.ajax_url,data:"parent_id="+o+"&nonce="+l+"&type="+folders_media_options.post_type+"&action=wcp_update_folder&term_id="+s+"&name="+i,method:"post",success:function(e){var o=jQuery.parseJSON(e);"1"==o.status?(t("#wcp_folder_"+o.id+" > h3 > .title-text").text(o.term_title),t("#wcp_folder_"+o.id+" > h3").attr("title",o.term_title),t(".folder-popup-form").hide(),t(".folder-popup-form").removeClass("disabled"),O(),N(0)):(t(".folder-popup-form").hide(),t(".folder-popup-form").removeClass("disabled"),t("#error-folder-popup-message").html(o.message),t("#error-folder-popup").show())}})}return!1}),t(document).on("click",".mark-folder",function(e){e.stopPropagation(),a=t(this).closest("li.route").data("folder-id"),l=t.trim(t("#wcp_folder_"+a).data("star")),t(".form-loader-count").css("width","100%"),t(".dynamic-menu").remove(),t(".active-menu").removeClass("active-menu"),jQuery.ajax({url:folders_media_options.ajax_url,data:"term_id="+a+"&type="+folders_media_options.post_type+"&action=wcp_mark_un_mark_folder&nonce="+l,method:"post",cache:!1,success:function(e){e=jQuery.parseJSON(e);t(".form-loader-count").css("width","0%"),"1"==e.status?("1"==e.marked?t("#wcp_folder_"+e.id).addClass("is-high"):t("#wcp_folder_"+e.id).removeClass("is-high"),O()):(t(".folder-popup-form").hide(),t(".folder-popup-form").removeClass("disabled"),t("#error-folder-popup-message").html(e.message),t("#error-folder-popup").show())}})}),t(document).on("click",".duplicate-folder",function(e){e.stopPropagation(),t(".active-menu").removeClass("active-menu"),s=t(this).closest("li.route").data("folder-id"),t(".dynamic-menu").remove(),u=!0,A()}),t(document).on("click",".remove-folder",function(e){a=t(this).closest("li.route").data("folder-id"),s=a,S(0),t(".dynamic-menu").remove(),t(".active-menu").removeClass("active-menu")}),t(document).on("click","#remove-folder-item",function(e){e.stopPropagation(),t(".folder-popup-form").addClass("disabled"),t("#remove-folder-item").html('<span class="dashicons dashicons-update"></span>'),l=t.trim(t("#wcp_folder_"+s).data("delete")),m?function(){if(t("#folder-hide-show-checkbox").is(":checked")&&t("#custom-menu input.checkbox:checked").length>0){var e="";t("#custom-menu input.checkbox:checked").each(function(){e+=t(this).val()+",",t(this).closest("li.route").hasClass("active-item")&&!0}),t(".form-loader-count").css("width","100%"),jQuery.ajax({url:folders_media_options.ajax_url,data:"type="+folders_media_options.post_type+"&action=wcp_remove_muliple_folder&term_id="+e+"&nonce="+folders_media_options.nonce,method:"post",success:function(e){var e=jQuery.parseJSON(e);t(".form-loader-count").css("width","0px"),"1"==e.status?(parseInt(e.is_key_active),r=parseInt(e.folders),t("#current-folder").text(r),t("#custom-menu input.checkbox:checked").each(function(){t("#wcp_folder_"+t(this).val()).closest("li.route").remove(),t("#space"+t(this).val()).remove()}),t("#ttl-fldr").text(10),O(),t(".folder-popup-form").hide(),t(".folder-popup-form").removeClass("disabled"),j(),O(),t("#wcp_folder_"+n).length||(t(".header-posts a").trigger("click"),n=0)):window.location.reload(),t("#folder-hide-show-checkbox").attr("checked",!1),t("#custom-menu input.checkbox").attr("checked",!1),t("#custom-menu").removeClass("show-folder-checkbox")}})}}():jQuery.ajax({url:folders_media_options.ajax_url,data:"type="+folders_media_options.post_type+"&action=wcp_remove_folder&term_id="+s+"&nonce="+l,method:"post",success:function(e){"1"==(e=jQuery.parseJSON(e)).status?(t("#wcp_folder_"+s).remove(),t("#folder_"+s).remove(),parseInt(e.is_key_active),r=parseInt(e.folders),t("#current-folder").text(r),t("#ttl-fldr").text(10),O(),t(".folder-popup-form").hide(),t(".folder-popup-form").removeClass("disabled"),console.log("activeRecordID: "+n),console.log("fileFolderID: "+s),n==s&&jQuery(".header-posts a").trigger("click"),Q()):(t(".folder-popup-form").hide(),t(".folder-popup-form").removeClass("disabled"),t("#error-folder-popup-message").html(e.message),t("#error-folder-popup").show())}})}),t(document).on("click","#sort-order-list",function(e){e.stopPropagation(),t(".folder-order").toggleClass("active")}),t(document).on("click","#expand-collapse-list",function(e){e.stopPropagation();var o=0;t(this).hasClass("all-open")?(t(this).removeClass("all-open"),t(".has-sub-tree").removeClass("active"),o=0,t(this).attr("data-tooltip","Expand")):(t(this).addClass("all-open"),o=1,t(".has-sub-tree").addClass("active"),t(this).attr("data-tooltip","Collapse")),c="",t(".has-sub-tree").each(function(){c+=t(this).data("folder-id")+","}),""!=c&&(t(".form-loader-count").css("width","100%"),l=folders_media_options.nonce,jQuery.ajax({url:folders_media_options.ajax_url,data:"type="+folders_media_options.post_type+"&action=wcp_change_all_status&status="+o+"&folders="+c+"&nonce="+l,method:"post",success:function(e){t(".form-loader-count").css("width","0"),"0"==(e=jQuery.parseJSON(e)).status&&(t(".folder-popup-form").hide(),t(".folder-popup-form").removeClass("disabled"),t("#error-folder-popup-message").html(e.message),t("#error-folder-popup").show(),window.location.reload(!0))}}))}),t(document).on("click",".folder-sort-menu a",function(e){e.stopPropagation(),e.preventDefault(),t(".form-loader-count").css("width","100%"),t(".folder-order").removeClass("active"),t(this).attr("data-sort"),jQuery.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="+t(this).attr("data-sort"),method:"post",success:function(e){1==(e=jQuery.parseJSON(e)).status&&t("#space_0").html(e.data),t(".form-loader-count").css("width","0")}})}),t(".space").livequery(function(){t(this).sortable({placeholder:"ui-state-highlight",connectWith:".space",tolerance:"intersect",over:function(e,t){},update:function(e,o){o.item.context.attributes["data-folder-id"].nodeValue;var a="";t(this).children().each(function(){t(this).hasClass("route")&&(a+=t(this).data("folder-id")+",")}),""!=a&&(t(".form-loader-count").css("width","100%"),jQuery.ajax({url:folders_media_options.ajax_url,data:"term_ids="+a+"&action=wcp_save_folder_order&type="+folders_media_options.post_type+"&nonce="+folders_media_options.nonce,method:"post",success:function(e){"1"==(e=jQuery.parseJSON(e)).status?(t("#wcp_folder_parent").html(e.options),t(".form-loader-count").css("width","0"),j(),O()):(t(".folder-popup-form").hide(),t(".folder-popup-form").removeClass("disabled"),t("#error-folder-popup-message").html(e.message),t("#error-folder-popup").show(),window.location.reload(!0))}}))},receive:function(e,o){!function e(o){var a=t(o).siblings(".space").children(".route").children(".title");t(a).each(function(a,s){var i=parseInt(t(o).css("width")),r=parseInt(t(o).siblings(".space").css("margin-left")),l=i-r;"title_0"==t(o).attr("id")&&(l-=10),t(s).css({width:l}),e(s)})}(t(this).siblings(".title")),t(this).closest("li.route").addClass("active"),t(this).closest("li.route").find("ul.ui-sortable:first-child > li").slideDown();var a=t(this).closest("li.route").data("folder-id"),s=o.item.context.attributes["data-folder-id"].nodeValue;null==a&&(a=0);t("#wcp_folder_"+a+" .ui-sortable li").length?t("#wcp_folder_"+a+" .ui-sortable li").each(function(){t(this).data("folder-id")+","}):0==a&&t("#custom-menu > ul.space > li").each(function(){t(this).data("folder-id")+","}),t(".form-loader-count").css("width","100%"),l=t.trim(t("#wcp_folder_"+s).data("nonce")),jQuery.ajax({url:folders_media_options.ajax_url,data:"term_id="+s+"&action=wcp_update_parent_information&parent_id="+a+"&type="+folders_media_options.post_type+"&nonce="+l,method:"post",success:function(e){t(".form-loader-count").css("width","0%"),0==(e=jQuery.parseJSON(e)).status?(t(".folder-popup-form").hide(),t(".folder-popup-form").removeClass("disabled"),t("#error-folder-popup-message").html(e.message),t("#error-folder-popup").show()):O()}})}}),t(this).disableSelection()}),t("h3.title").livequery(function(){t(this).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(e,o){if(a=t(this).closest("li.route").data("folder-id"),o.draggable.hasClass("wcp-move-multiple")){if(t(".wp-list-table input:checked").length){var s="";t(".wp-list-table input:checked").each(function(){s+=t(this).val()+","}),l=t.trim(t("#wcp_folder_"+a).data("nonce")),jQuery.ajax({url:folders_media_options.ajax_url,data:"post_ids="+s+"&type="+folders_media_options.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+a+"&nonce="+l+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+n,method:"post",success:function(e){"1"==(e=jQuery.parseJSON(e)).status?(j(),O()):(t(".folder-popup-form").hide(),t(".folder-popup-form").removeClass("disabled"),t("#error-folder-popup-message").html(e.message),t("#error-folder-popup").show())}})}}else if(o.draggable.hasClass("wcp-move-file")){var i=o.draggable[0].attributes["data-id"].nodeValue;l=t.trim(t("#wcp_folder_"+a).data("nonce")),s=i+",",t(".wp-list-table input:checked").each(function(){t(this).val()!=i&&(s+=t(this).val()+",")}),jQuery.ajax({url:folders_media_options.ajax_url,data:"post_ids="+s+"&type="+folders_media_options.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+a+"&nonce="+l+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+n,method:"post",success:function(e){"1"==(e=jQuery.parseJSON(e)).status?(j(),O()):(t(".folder-popup-form").hide(),t(".folder-popup-form").removeClass("disabled"),t("#error-folder-popup-message").html(e.message),t("#error-folder-popup").show())}})}else if(o.draggable.hasClass("attachment")){s=o.draggable[0].attributes["data-id"].nodeValue;l=t.trim(t("#wcp_folder_"+a).data("nonce")),t(".attachments-browser li.attachment.selected").length>1&&(s="",t(".attachments-browser li.attachment.selected").each(function(){s+=t(this).data("id")+","})),c=s,jQuery.ajax({url:folders_media_options.ajax_url,data:"post_ids="+s+"&type="+folders_media_options.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+a+"&nonce="+l+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+n,method:"post",success:function(e){j(),O()}})}}})}),t(".attachments-browser li.attachment").livequery(function(){t(this).draggable({revert:"invalid",containment:"document",helper:function(e,o){t(".selected-items").remove();var a=t(".attachments-browser li.attachment.selected").length;return t("<div class='selected-items'><span class='total-post-count'>"+(a=0==a||1==a?"1 Item":a+" Items")+" Selected</span></div>")},start:function(e,o){t("body").addClass("no-hover-css")},cursor:"move",appendTo:".media-modal",cursorAt:{left:0,top:0},stop:function(e,o){t(".selected-items").remove(),t("body").removeClass("no-hover-css")}})}),t(".un-categorised-items").livequery(function(){t(this).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(e,o){if(a=-1,l=folders_media_options.nonce,o.draggable.hasClass("wcp-move-multiple")){if(t(".wp-list-table input:checked").length){var s="";t(".wp-list-table input:checked").each(function(){s+=t(this).val()+","}),jQuery.ajax({url:folders_media_options.ajax_url,data:"post_id="+s+"&type="+folders_media_options.post_type+"&action=wcp_remove_post_folder&folder_id="+a+"&nonce="+l+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+n,method:"post",success:function(e){j(),O()}})}}else if(o.draggable.hasClass("wcp-move-file")){var i=o.draggable[0].attributes["data-id"].nodeValue;s=i+",";t(".wp-list-table input:checked").each(function(){i!=t(this).val()&&(s+=t(this).val()+",")}),jQuery.ajax({url:folders_media_options.ajax_url,data:"post_id="+s+"&type="+folders_media_options.post_type+"&action=wcp_remove_post_folder&folder_id="+a+"&nonce="+l+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+n,method:"post",success:function(e){j(),O()}})}else if(o.draggable.hasClass("attachment")){s=o.draggable[0].attributes["data-id"].nodeValue;t(".attachments-browser li.attachment.selected").length>1&&(s="",t(".attachments-browser li.attachment.selected").each(function(){s+=t(this).data("id")+","})),c=s,jQuery.ajax({url:folders_media_options.ajax_url,data:"post_id="+s+"&type="+folders_media_options.post_type+"&action=wcp_remove_post_folder&folder_id="+a+"&nonce="+l+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+n,method:"post",success:function(e){j(),O()}})}}})}),t(".tree-structure .folder-item").livequery(function(){t(this).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(e,o){if(t("body").removeClass("no-hover-css"),a=t(this).data("id"),o.draggable.hasClass("wcp-move-multiple")){if(l=t.trim(t("#wcp_folder_"+a).data("nonce")),t(".wp-list-table input:checked").length){var s="";t(".wp-list-table input:checked").each(function(){s+=t(this).val()+","}),jQuery.ajax({url:folders_media_options.ajax_url,data:"post_ids="+s+"&type="+folders_media_options.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+a+"&nonce="+l+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+n,method:"post",success:function(e){j(),O()}})}}else if(o.draggable.hasClass("wcp-move-file")){var i=o.draggable[0].attributes["data-id"].nodeValue;l=t.trim(t("#wcp_folder_"+a).data("nonce"));s=i+",";t(".wp-list-table input:checked").each(function(){t(this).val()!=i&&(s+=t(this).val()+",")}),jQuery.ajax({url:folders_media_options.ajax_url,data:"post_ids="+s+"&type="+folders_media_options.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+a+"&nonce="+l+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+n,method:"post",success:function(e){j(),O()}})}else if(o.draggable.hasClass("attachment")){s=o.draggable[0].attributes["data-id"].nodeValue;l=t.trim(t("#wcp_folder_"+a).data("nonce")),t(".attachments-browser li.attachment.selected").length>1&&(s="",t(".attachments-browser li.attachment.selected").each(function(){s+=t(this).data("id")+","})),jQuery.ajax({url:folders_media_options.ajax_url,data:"post_ids="+s+"&type="+folders_media_options.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+a+"&nonce="+l+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+n,method:"post",success:function(e){j(),O()}})}}})}),t(".wcp-move-file").livequery(function(){t(this).draggable({revert:"invalid",containment:"document",helper:"clone",cursor:"move",start:function(e,o){t(this).closest("td").addClass("wcp-draggable"),t("body").addClass("no-hover-css")},stop:function(e,o){t(this).closest("td").removeClass("wcp-draggable"),t("body").removeClass("no-hover-css")}})}),t(".wcp-move-multiple").livequery(function(){t(this).draggable({revert:"invalid",containment:"document",helper:function(e,o){t(".selected-items").remove();var a=t("#the-list th input:checked").length;return t(a>0?"<div class='selected-items'><span class='total-post-count'>"+(a=0==a||1==a?"1 Item":a+" Items")+" Selected</span></div>":"<div class='selected-items'><span class='total-post-count'>Select Items to move</span></div>")},start:function(e,o){t("body").addClass("no-hover-css")},cursor:"move",cursorAt:{left:0,top:0},stop:function(e,o){t(".selected-items").remove(),t("body").removeClass("no-hover-css")}})}),t(document).on("click",".nav-icon",function(){a=t(this).closest("li.route").data("folder-id");var e=1;e=t("#wcp_folder_"+a).hasClass("active")?0:1,t(".form-loader-count").css("width","100%"),l=t.trim(t("#wcp_folder_"+a).data("nonce")),D(),jQuery.ajax({url:folders_media_options.ajax_url,data:"is_active="+e+"&action=save_wcp_folder_state&term_id="+a+"&nonce="+l,method:"post",success:function(o){t(".form-loader-count").css("width","0"),"0"==(o=jQuery.parseJSON(o)).status?(t(".folder-popup-form").hide(),t(".folder-popup-form").removeClass("disabled"),t("#error-folder-popup-message").html(o.message),t("#error-folder-popup").show()):(t("#wcp_folder_"+a).hasClass("active")?(t("#wcp_folder_"+a).removeClass("active"),t("#wcp_folder_"+a).find("ul.ui-sortable:first-child > li").slideUp(),e=0):(t("#wcp_folder_"+a).addClass("active"),t("#wcp_folder_"+a).find("ul.ui-sortable:first-child > li").slideDown(),e=1),O())}})}),t(document).on("keyup","#folder-search",function(){I()}),t(document).on("change","#folder-search",function(){I()}),t(document).on("blur","#folder-search",function(){I()}),t(document).on("click","#folder-hide-show-checkbox",function(){t(this).is(":checked")?t("#custom-menu").addClass("show-folder-checkbox"):(t("#custom-menu input.checkbox").attr("checked",!1),t("#custom-menu").removeClass("show-folder-checkbox"))}),t(document).on("click","#inline-remove",function(){t("#custom-menu li.active-item").length?(s=t("#custom-menu li.active-item").data("folder-id"),S(1),t(".dynamic-menu").remove(),t(".active-menu").removeClass("active-menu")):t("#folder-hide-show-checkbox").is(":checked")&&(t(".dynamic-menu").remove(),S(1))})})}(jQuery,_);
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.5.2
6
  * Author: Premio
7
  * Author URI: https://premio.io/downloads/folders/
8
  * Text Domain: folders
@@ -30,7 +30,7 @@ if(!defined("WCP_FOLDER_URL")) {
30
  define('WCP_FOLDER_URL', plugin_dir_url(__FILE__));
31
  }
32
  if(!defined("WCP_FOLDER_VERSION")) {
33
- define('WCP_FOLDER_VERSION', "2.5.2");
34
  }
35
 
36
  include_once plugin_dir_path(__FILE__)."includes/folders.class.php";
2
  /**
3
  * Plugin Name: Folders
4
  * Description: Arrange media, pages, custom post types and posts into folders
5
+ * Version: 2.5.3
6
  * Author: Premio
7
  * Author URI: https://premio.io/downloads/folders/
8
  * Text Domain: folders
30
  define('WCP_FOLDER_URL', plugin_dir_url(__FILE__));
31
  }
32
  if(!defined("WCP_FOLDER_VERSION")) {
33
+ define('WCP_FOLDER_VERSION', "2.5.3");
34
  }
35
 
36
  include_once plugin_dir_path(__FILE__)."includes/folders.class.php";
includes/folders.class.php CHANGED
@@ -142,6 +142,18 @@ class WCP_Folders
142
  add_filter('mla_media_modal_query_final_terms', array( $this, 'media_modal_query_final_terms'), 10, 3);
143
  }
144
 
 
 
 
 
 
 
 
 
 
 
 
 
145
  public function wcp_folders_by_order(){
146
  $response = array();
147
  $response['status'] = 0;
@@ -889,28 +901,127 @@ class WCP_Folders
889
  return;
890
  }
891
 
892
- /* Free/Pro URL Change */
893
- global $typenow;
894
- $is_active = 1;
895
- $folders = -1;
896
- if (!self::check_has_valid_key()) {
897
- $is_active = 0;
898
- $folders = self::ttl_fldrs();
899
- }
900
-
901
- /* Free/Pro URL Change */
902
- wp_enqueue_script( 'folders-media', WCP_FOLDER_URL.'assets/js/media.js', array( 'media-editor', 'media-views' ), WCP_FOLDER_VERSION, true );
903
- wp_localize_script( 'folders-media', 'folders_media_options', array(
904
- 'terms' => self::get_terms_hierarchical('media_folder'),
905
- 'taxonomy' => get_taxonomy('media_folder'),
906
- 'ajax_url' => admin_url("admin-ajax.php"),
907
- 'activate_url' => admin_url("admin.php?page=wcp_folders_register"),
908
- 'nonce' => wp_create_nonce('wcp_folder_nonce_attachment'),
909
- 'is_key_active' => $is_active,
910
- 'folders' => $folders,
911
- ));
912
- /* Free/Pro URL Change */
913
- wp_enqueue_style( 'folders-media', WCP_FOLDER_URL . 'assets/css/media.css' , array(), WCP_FOLDER_VERSION);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
914
  }
915
 
916
  public function get_terms_hierarchical( $taxonomy ) {
@@ -2054,18 +2165,80 @@ class WCP_Folders
2054
  if (!empty($result)) {
2055
  $response['id'] = $result['term_id'];
2056
  $response['status'] = 1;
 
2057
  $order = isset($postData['order']) ? $postData['order'] : 0;
2058
  $order = self::sanitize_options($order);
2059
  update_term_meta($result['term_id'], "wcp_custom_order", $order);
2060
  if ($parent != 0) {
2061
  update_term_meta($parent, "is_active", 1);
2062
  }
2063
- $delete_nonce = wp_create_nonce('wcp_folder_delete_term_'.$result['term_id']);
2064
- $rename_nonce = wp_create_nonce('wcp_folder_rename_term_'.$result['term_id']);
2065
- $highlight_nonce = wp_create_nonce('wcp_folder_highlight_term_'.$result['term_id']);
2066
- $term_nonce = wp_create_nonce('wcp_folder_term_'.$result['term_id']);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2067
  /* Free/Pro URL Change */
2068
- $string = "<li data-nonce='{$term_nonce}' data-star='{$highlight_nonce}' data-rename='{$rename_nonce}' data-delete='{$delete_nonce}' data-slug='{$slug}' class='ui-state-default route wcp_folder_{$result['term_id']}' id='wcp_folder_{$result['term_id']}' data-folder-id='{$result['term_id']}'><h3 class='title' title='{$postData['name']}' id='title_{$result['term_id']}'><span class='ui-icon'><i class='wcp-icon folder-icon-folder'></i><img src='".esc_url(WCP_FOLDER_URL."assets/images/pin.png")."' class='folder-sticky-icon' /><img src='".esc_url(WCP_FOLDER_URL."assets/images/move-option.png")."' class='move-folder-icon' ><input type='checkbox' class='checkbox' value='{$result['term_id']}' /></span><span class='title-text'>{$postData['name']}</span> <span class='update-inline-record'></span><span class='star-icon'></span> </h3><span class='nav-icon'><i class='wcp-icon folder-icon-arrow_right'></i></span> <ul class='space' id='space_{$result['term_id']}'>";
 
 
 
 
 
 
 
 
 
 
 
 
 
2069
  $string .= "</ul></li>";
2070
  $response['term_data'] = $string;
2071
  $response['parent_id'] = $parent;
@@ -2268,7 +2441,7 @@ class WCP_Folders
2268
  'edit_item' => esc_html__('Edit Folder', WCP_FOLDER),
2269
  'update_item' => esc_html__('Update Folder', WCP_FOLDER),
2270
  'add_new_item' => esc_html__('Add New Folder', WCP_FOLDER),
2271
- 'new_item_name' => esc_html__('Add Folder Name', WCP_FOLDER),
2272
  'menu_name' => esc_html__('Folders', WCP_FOLDER),
2273
  'search_items' => esc_html__('Search Folders', WCP_FOLDER),
2274
  'parent_item' => esc_html__('Parent Folder', WCP_FOLDER),
@@ -2286,7 +2459,13 @@ class WCP_Folders
2286
  'show_admin_column' => true,
2287
  'update_count_callback' => '_update_generic_term_count',
2288
  'query_var' => true,
2289
- 'rewrite' => false
 
 
 
 
 
 
2290
  );
2291
 
2292
  $folder_post_type = self::get_custom_post_type($post_type);
@@ -2485,6 +2664,9 @@ class WCP_Folders
2485
  $css .= "body.wp-admin #wpcontent {padding-left:20px}";
2486
  }
2487
  }
 
 
 
2488
  }
2489
  wp_add_inline_style('wcp-css-handle', $css);
2490
 
@@ -2652,7 +2834,7 @@ class WCP_Folders
2652
 
2653
  if($hook == "media-new.php") {
2654
  if(self::is_for_this_post_type('attachment') || self::is_for_this_post_type('media')) {
2655
- wp_enqueue_style( 'folders-media', WCP_FOLDER_URL . 'assets/css/media.css' );
2656
  $is_active = 1;
2657
  $folders = -1;
2658
  if (!self::check_has_valid_key()) {
@@ -2892,7 +3074,7 @@ class WCP_Folders
2892
  public static function get_font_list(){
2893
  return array(
2894
  // System fonts.
2895
- '-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;' => 'Default',
2896
  'Arial' => 'Default',
2897
  'Tahoma' => 'Default',
2898
  'Verdana' => 'Default',
142
  add_filter('mla_media_modal_query_final_terms', array( $this, 'media_modal_query_final_terms'), 10, 3);
143
  }
144
 
145
+ public static function hexToRgb($hex, $alpha = false) {
146
+ $hex = str_replace('#', '', $hex);
147
+ $length = strlen($hex);
148
+ $rgb['r'] = hexdec($length == 6 ? substr($hex, 0, 2) : ($length == 3 ? str_repeat(substr($hex, 0, 1), 2) : 0));
149
+ $rgb['g'] = hexdec($length == 6 ? substr($hex, 2, 2) : ($length == 3 ? str_repeat(substr($hex, 1, 1), 2) : 0));
150
+ $rgb['b'] = hexdec($length == 6 ? substr($hex, 4, 2) : ($length == 3 ? str_repeat(substr($hex, 2, 1), 2) : 0));
151
+ if ( $alpha ) {
152
+ $rgb['a'] = $alpha;
153
+ }
154
+ return $rgb;
155
+ }
156
+
157
  public function wcp_folders_by_order(){
158
  $response = array();
159
  $response['status'] = 0;
901
  return;
902
  }
903
 
904
+ if ($typenow == "attachment") {
905
+ /* Free/Pro URL Change */
906
+ global $typenow;
907
+ $is_active = 1;
908
+ $folders = -1;
909
+ if (!self::check_has_valid_key()) {
910
+ $is_active = 0;
911
+ $folders = self::ttl_fldrs();
912
+ }
913
+
914
+ /* Free/Pro URL Change */
915
+ wp_enqueue_script( 'folders-media', WCP_FOLDER_URL.'assets/js/media.js', array( 'media-editor', 'media-views' ), WCP_FOLDER_VERSION, true );
916
+ wp_localize_script( 'folders-media', 'folders_media_options', array(
917
+ 'terms' => self::get_terms_hierarchical('media_folder'),
918
+ 'taxonomy' => get_taxonomy('media_folder'),
919
+ 'ajax_url' => admin_url("admin-ajax.php"),
920
+ 'activate_url' => admin_url("admin.php?page=wcp_folders_register"),
921
+ 'nonce' => wp_create_nonce('wcp_folder_nonce_attachment'),
922
+ 'is_key_active' => $is_active,
923
+ 'folders' => $folders,
924
+ ));
925
+ /* Free/Pro URL Change */
926
+ wp_enqueue_style( 'folders-media', WCP_FOLDER_URL . 'assets/css/media.css' , array(), WCP_FOLDER_VERSION);
927
+ } else {
928
+ /* Free/Pro URL Change */
929
+ global $typenow;
930
+ $is_active = 1;
931
+ $folders = -1;
932
+ if (!self::check_has_valid_key()) {
933
+ $is_active = 0;
934
+ $folders = self::ttl_fldrs();
935
+ }
936
+
937
+ /* Free/Pro URL Change */
938
+
939
+ $is_rtl = 0;
940
+ if (function_exists('is_rtl') && is_rtl()) {
941
+ $is_rtl = 1;
942
+ }
943
+ $can_manage_folder = current_user_can("manage_categories") ? 1 : 0;
944
+ $width = 275;
945
+ $taxonomy_status = 0;
946
+ $selected_taxonomy = "";
947
+ $show_in_page = false;
948
+ $admin_url = admin_url("upload.php?post_type=attachment&media_folder=");
949
+
950
+ wp_enqueue_script('folders-livequery', plugin_dir_url(dirname(__FILE__)) . 'assets/js/livequery.min.js', array(), WCP_FOLDER_VERSION);
951
+ wp_enqueue_script('folders-media', WCP_FOLDER_URL . 'assets/js/page-post-media.min.js', array('media-editor', 'media-views', 'jquery', 'jquery-ui-resizable', 'jquery-ui-draggable', 'jquery-ui-droppable', 'jquery-ui-sortable', 'backbone'), WCP_FOLDER_VERSION, true);
952
+ wp_localize_script('folders-media', 'folders_media_options', array(
953
+ 'terms' => self::get_terms_hierarchical('media_folder'),
954
+ 'taxonomy' => get_taxonomy('media_folder'),
955
+ 'ajax_url' => admin_url("admin-ajax.php"),
956
+ 'media_page_url' => admin_url("upload.php"),
957
+ 'activate_url' => admin_url("admin.php?page=wcp_folders_register"),
958
+ 'nonce' => wp_create_nonce('wcp_folder_nonce_attachment'),
959
+ 'is_key_active' => $is_active,
960
+ 'folders' => $folders,
961
+ 'upgrade_url' => admin_url('admin.php?page=wcp_folders_upgrade'),
962
+ 'post_type' => 'attachment',
963
+ 'page_url' => $admin_url,
964
+ 'current_url' => "",
965
+ 'ajax_image' => plugin_dir_url(dirname(__FILE__)) . "assets/images/ajax-loader.gif",
966
+ 'register_url' => "",
967
+ 'isRTL' => $is_rtl,
968
+ 'can_manage_folder' => $can_manage_folder,
969
+ 'folder_width' => $width,
970
+ 'taxonomy_status' => $taxonomy_status,
971
+ 'selected_taxonomy' => $selected_taxonomy,
972
+ 'show_in_page' => $show_in_page,
973
+ 'svg_file' => WCP_FOLDER_URL . 'assets/images/pin.png',
974
+ ));
975
+ /* Free/Pro URL Change */
976
+ wp_enqueue_style('folders-media', WCP_FOLDER_URL . 'assets/css/page-post-media.min.css', array(), WCP_FOLDER_VERSION);
977
+ wp_enqueue_style('folder-icon', WCP_FOLDER_URL . 'assets/css/folder-icon.css', array(), WCP_FOLDER_VERSION);
978
+ $width = 275;
979
+ $width = $width - 40;
980
+ $string = "";
981
+ $css_text = "";
982
+ for ($i = 0; $i <= 15; $i++) {
983
+ $string .= " .space > .route >";
984
+ $new_width = $width - (13 + (20 * $i));
985
+ $css_text .= "#custom-menu > {$string} .title { width: {$new_width}px !important; } ";
986
+ $css_text .= "#custom-menu > {$string} .dynamic-menu { left: ".($new_width - 190)."px !important; } ";
987
+ }
988
+ $customize_folders = get_option('customize_folders');
989
+ if(isset($customize_folders['new_folder_color']) && !empty($customize_folders['new_folder_color'])) {
990
+ $css_text .= ".media-frame a.add-new-folder { background-color: ".esc_attr($customize_folders['new_folder_color']) ."; border-color: ".esc_attr($customize_folders['new_folder_color'])."}";
991
+ $css_text .= ".wcp-hide-show-buttons .toggle-buttons { background-color: ".esc_attr($customize_folders['new_folder_color'])."; }";
992
+ $css_text .= ".folders-toggle-button span { background-color: ".esc_attr($customize_folders['new_folder_color'])."; }";
993
+ $css_text .= ".ui-resizable-handle.ui-resizable-e:before, .ui-resizable-handle.ui-resizable-w:before {border-color: ".esc_attr($customize_folders['new_folder_color'])." !important}";
994
+ }
995
+ if(isset($customize_folders['folder_bg_color']) && !empty($customize_folders['folder_bg_color'])) {
996
+ $rgbColor = self::hexToRgb($customize_folders['folder_bg_color']);
997
+ $css_text .= ".orange-bg > span ,.wcp-container .route.active-item > h3.title, .header-posts a.active-item, .un-categorised-items.active-item { background-color: ".esc_attr($customize_folders['folder_bg_color'])." !important; color: #ffffff; }";
998
+ $css_text .= "body:not(.no-hover-css) .wcp-container .route .title:hover, .header-posts a:hover, .un-categorised-items.active-item, .un-categorised-items:hover {background: rgba(".esc_attr($rgbColor['r'].",".$rgbColor['g'].",".$rgbColor['b'].", 0.08").");}";
999
+ $css_text .= ".wcp-drop-hover {background-color: ".esc_attr($customize_folders['folder_bg_color'])." !important; color: #ffffff; }";
1000
+ $css_text .= "#custom-menu .route .nav-icon .wcp-icon {color: ".esc_attr($customize_folders['folder_bg_color'])." !important;}";
1001
+ }
1002
+ if(isset($customize_folders['bulk_organize_button_color']) && !empty($customize_folders['bulk_organize_button_color'])) {
1003
+ $css_text .= "button.button.organize-button { background-color: ".esc_attr($customize_folders['bulk_organize_button_color'])."; border-color: ".esc_attr($customize_folders['bulk_organize_button_color'])."; }";
1004
+ $css_text .= "button.button.organize-button:hover { background-color: ".esc_attr($customize_folders['bulk_organize_button_color'])."; border-color: ".esc_attr($customize_folders['bulk_organize_button_color'])."; }";
1005
+ }
1006
+ $font_family = "";
1007
+ if(isset($customize_folders['folder_font']) && !empty($customize_folders['folder_font'])) {
1008
+ $folder_fonts = self::get_font_list();
1009
+ $font_family = $customize_folders['folder_font'];
1010
+ if(isset($folder_fonts[$font_family])) {
1011
+ $css_text .= ".wcp-container, .folder-popup-form { font-family: " . esc_attr($font_family) . " !important; }";
1012
+ }
1013
+ if($folder_fonts[$font_family] == "Default") {
1014
+ $font_family = "";
1015
+ }
1016
+ }
1017
+ if(isset($customize_folders['folder_size']) && !empty($customize_folders['folder_size'])) {
1018
+ $css_text .= ".wcp-container .route span.title-text, .header-posts a, .un-categorised-items a { font-size: ".esc_attr($customize_folders['folder_size'])."px; }";
1019
+ }
1020
+ if (!empty($font_family)) {
1021
+ wp_enqueue_style('custom-google-fonts', 'https://fonts.googleapis.com/css?family=' . urlencode($font_family), false);
1022
+ }
1023
+ wp_add_inline_style('folders-media', $css_text);
1024
+ }
1025
  }
1026
 
1027
  public function get_terms_hierarchical( $taxonomy ) {
2165
  if (!empty($result)) {
2166
  $response['id'] = $result['term_id'];
2167
  $response['status'] = 1;
2168
+ $term = get_term($result['term_id'], $folder_type);
2169
  $order = isset($postData['order']) ? $postData['order'] : 0;
2170
  $order = self::sanitize_options($order);
2171
  update_term_meta($result['term_id'], "wcp_custom_order", $order);
2172
  if ($parent != 0) {
2173
  update_term_meta($parent, "is_active", 1);
2174
  }
2175
+
2176
+ $count = "";
2177
+ $class = "";
2178
+
2179
+ if(isset($postData['is_duplicate']) && $postData['is_duplicate'] == true) {
2180
+ if(isset($postData['duplicate_from']) && !empty($postData['duplicate_from'])) {
2181
+ $term_id = $postData['duplicate_from'];
2182
+
2183
+ $term_data = get_term($term_id, $folder_type);
2184
+ if(!empty($term_data)) {
2185
+ $is_sticky = get_term_meta($term_id, "is_folder_sticky", true);
2186
+
2187
+ if($is_sticky == 1) {
2188
+ $class .= " is-sticky";
2189
+ add_term_meta($term->term_id, "is_folder_sticky", 1);
2190
+ }
2191
+
2192
+ $status = get_term_meta($term_id, "is_highlighted", true);
2193
+ if($status == 1) {
2194
+ add_term_meta($term->term_id, "is_highlighted", 1);
2195
+ $class .= " is-high";
2196
+ }
2197
+
2198
+ $count = ($term_data->count != 0)?"<span class='total-count'>{$term_data->count}</span>":"";
2199
+
2200
+ // if(!empty($term_data->count)) {
2201
+ $postArray = get_posts(
2202
+ array(
2203
+ 'posts_per_page' => -1,
2204
+ 'post_type' => $type,
2205
+ 'tax_query' => array(
2206
+ array(
2207
+ 'taxonomy' => $folder_type,
2208
+ 'field' => 'term_id',
2209
+ 'terms' => $term_id,
2210
+ )
2211
+ )
2212
+ )
2213
+ );
2214
+ if(!empty($postArray)) {
2215
+ foreach($postArray as $p) {
2216
+ wp_set_post_terms($p->ID, $term->term_id, $folder_type, true);
2217
+ }
2218
+ }
2219
+ // }
2220
+ }
2221
+ }
2222
+ }
2223
+ $delete_nonce = wp_create_nonce('wcp_folder_delete_term_'.$term->term_id);
2224
+ $rename_nonce = wp_create_nonce('wcp_folder_rename_term_'.$term->term_id);
2225
+ $highlight_nonce = wp_create_nonce('wcp_folder_highlight_term_'.$term->term_id);
2226
+ $term_nonce = wp_create_nonce('wcp_folder_term_'.$term->term_id);
2227
  /* Free/Pro URL Change */
2228
+ /* Free/Pro URL Change*/
2229
+ $string = "<li data-nonce='{$term_nonce}' data-star='{$highlight_nonce}' data-rename='{$rename_nonce}' data-delete='{$delete_nonce}' data-slug='{$term->slug}' class='ui-state-default route wcp_folder_{$term->term_id} {$class}' id='wcp_folder_{$term->term_id}' data-folder-id='{$term->term_id}'>";
2230
+ $string .= "<h3 class='title' title='{$term->name}' id='title_{$term->term_id}'>";
2231
+ $string .= "<span class='ui-icon'>";
2232
+ $string .= "<i class='wcp-icon pfolder-folder-close'></i>";
2233
+ $string .= "<input type='checkbox' class='checkbox' value='{$term->term_id}' />";
2234
+ $string .= "</span>";
2235
+ $string .= "<span class='title-text'>{$term->name}</span>";
2236
+ $string .= "{$count} <span class='update-inline-record'><i class='pfolder-edit-folder'></i></span> <span class='star-icon'><i class='pfolder-star'></i></span>";
2237
+ $string .= "<span class='folder-sticky-icon'><i class='pfolder-pin'></i></span>";
2238
+ // $string .= "<span class='move-folder-icon' ><i class='pfolder-move'></i></span>";
2239
+ $string .= "</h3>";
2240
+ $string .= "<span class='nav-icon'><i class='wcp-icon pfolder-arrow-down'></i></span>";
2241
+ $string .= "<ul class='space' id='space_{$term->term_id}'>";
2242
  $string .= "</ul></li>";
2243
  $response['term_data'] = $string;
2244
  $response['parent_id'] = $parent;
2441
  'edit_item' => esc_html__('Edit Folder', WCP_FOLDER),
2442
  'update_item' => esc_html__('Update Folder', WCP_FOLDER),
2443
  'add_new_item' => esc_html__('Add New Folder', WCP_FOLDER),
2444
+ 'new_item_name' => esc_html__('Add folder name', WCP_FOLDER),
2445
  'menu_name' => esc_html__('Folders', WCP_FOLDER),
2446
  'search_items' => esc_html__('Search Folders', WCP_FOLDER),
2447
  'parent_item' => esc_html__('Parent Folder', WCP_FOLDER),
2459
  'show_admin_column' => true,
2460
  'update_count_callback' => '_update_generic_term_count',
2461
  'query_var' => true,
2462
+ 'rewrite' => false,
2463
+ 'capabilities' => array(
2464
+ 'manage_terms' => 'manage_categories',
2465
+ 'edit_terms' => 'manage_categories',
2466
+ 'delete_terms' => 'manage_categories',
2467
+ 'assign_terms' => 'manage_categories'
2468
+ )
2469
  );
2470
 
2471
  $folder_post_type = self::get_custom_post_type($post_type);
2664
  $css .= "body.wp-admin #wpcontent {padding-left:20px}";
2665
  }
2666
  }
2667
+ if (!empty($width) && is_numeric($width)) {
2668
+ $css .= ".wcp-content {width: {$width}px}";
2669
+ }
2670
  }
2671
  wp_add_inline_style('wcp-css-handle', $css);
2672
 
2834
 
2835
  if($hook == "media-new.php") {
2836
  if(self::is_for_this_post_type('attachment') || self::is_for_this_post_type('media')) {
2837
+ wp_enqueue_style( 'folders-media', WCP_FOLDER_URL . 'assets/css/new-media.css' );
2838
  $is_active = 1;
2839
  $folders = -1;
2840
  if (!self::check_has_valid_key()) {
3074
  public static function get_font_list(){
3075
  return array(
3076
  // System fonts.
3077
+ 'Default' => 'Default',
3078
  'Arial' => 'Default',
3079
  'Tahoma' => 'Default',
3080
  'Verdana' => 'Default',
includes/form.class.php CHANGED
@@ -11,45 +11,54 @@ class WCP_Forms {
11
 
12
  <div class="wcp-custom-form">
13
  <div class="form-title">
14
- <?php esc_html_e("Folders", WCP_FOLDER ) ?>
15
- <a href="javascript:;" class="add-new-folder" id="add-new-folder"><span class="folder-icon-create_new_folder"></span> <span><?php esc_html_e("New Folder", WCP_FOLDER ) ?></span></a>
16
- <span class="folder-loader-ajax">
17
- <img class="active" src="<?php echo esc_url(admin_url('/images/spinner.gif')); ?>" alt="">
18
- <svg id="successAnimation" fill="#F51366" class="animated" xmlns="http://www.w3.org/2000/svg" width="70" height="70" viewBox="0 0 70 70">
19
- <path id="successAnimationResult" fill="#D8D8D8" d="M35,60 C21.1928813,60 10,48.8071187 10,35 C10,21.1928813 21.1928813,10 35,10 C48.8071187,10 60,21.1928813 60,35 C60,48.8071187 48.8071187,60 35,60 Z M23.6332378,33.2260427 L22.3667622,34.7739573 L34.1433655,44.40936 L47.776114,27.6305926 L46.223886,26.3694074 L33.8566345,41.59064 L23.6332378,33.2260427 Z"></path>
20
- <circle id="successAnimationCircle" cx="35" cy="35" r="24" stroke="#979797" stroke-width="2" stroke-linecap="round" fill="transparent"></circle>
21
- <polyline id="successAnimationCheck" stroke="#979797" stroke-width="2" points="23 34 34 43 47 27" fill="transparent"></polyline>
22
- </svg>
23
- </span>
 
 
 
 
 
24
  <div class="clear"></div>
25
  </div>
26
  <div class="form-options">
27
  <ul>
28
- <li>
29
- <a href="javascript:;" id="inline-update"><span class="icon folder-icon-border_color"><span class="path1"></span><span class="path2"></span></span> <span class="text"><?php esc_html_e("Rename", WCP_FOLDER ) ?></span> </a>
30
  </li>
31
  <li>
32
- <a href="javascript:;" id="inline-remove"><span class="icon folder-icon-delete"></span> <span class="text"><?php esc_html_e("Delete", WCP_FOLDER ) ?></span> </a>
33
  </li>
34
  <li>
35
- <a href="javascript:;" id="expand-collapse-list"><span class="icon folder-icon-expand_more"></span></a>
36
  </li>
37
- <li class="last folder-order">
38
- <a data-tooltip="Sort Folders" href="javascript:;" id="sort-order-list" class="sort-folder-order">
39
- <svg xmlns="http://www.w3.org/2000/svg" width="506.667" height="506.667" viewBox="0 0 380 380" preserveAspectRatio="xMidYMid meet"><path d="M91.5 1.9C86.6 5 3.6 88.8 2.2 92c-1.5 3.8-.7 7.1 2.5 10.2l2.5 2.3 64.8.6v131.8l1.1 134.9c2 5.7 3.9 6.2 23.2 6.2 16.2 0 17.5-.1 19.6-2.1 1.2-1.1 2.6-3.2 3.2-4.6.5-1.5.9-54.6.9-134.3V105.1l64.8-.6 2.5-2.3c3.2-3.1 4-6.4 2.5-10.2-1.5-3.4-85.9-88.5-90-90.6-3.5-1.8-4.7-1.8-8.3.5zm173.2 1.7c-1.5 1.5-2.7 3.4-2.8 4.3-.6 11.8-.7 41.3-.8 144.3L261 274h-31.1c-35.5 0-37 .3-39 7-.9 2.9-.8 4.3.3 6.4 1.9 3.7 86.4 88.4 90.1 90.2 1.8 1 4 1.3 5.6.9 4.1-1 90.9-88 92.1-92.3 1-3.9.1-6.9-3-9.7-2.1-1.9-3.8-2-34.6-2.3l-32.4-.3-.2-133.4-.3-133.4-4.2-5.6-18.5-.3-18.5-.2-2.6 2.6z"/></svg>
40
- </a>
41
- <div class="folder-sort-menu">
42
  <ul>
43
- <li><a data-sort="a-z" href="#">A Z</a></li>
44
- <li><a data-sort="z-a" href="#">Z → A</a></li>
45
- <li><a data-sort="n-o" href="#">Newest Oldest</a></li>
46
- <li><a data-sort="o-n" href="#">Oldest → Newest</a></li>
 
 
 
 
 
 
 
 
 
 
47
  </ul>
48
  </div>
49
  </li>
50
- <li class="last folder-checkbox">
51
- <input type="checkbox" id="folder-hide-show-checkbox">
52
- </li>
53
  </ul>
54
  <div class="upgrade-message">
55
  <?php
11
 
12
  <div class="wcp-custom-form">
13
  <div class="form-title">
14
+ <div class="plugin-title">
15
+ <?php esc_html_e("Folders", WCP_FOLDER ) ?>
16
+ <span class="folder-loader-ajax">
17
+ <svg id="successAnimation" fill="#F51366" class="animated" xmlns="http://www.w3.org/2000/svg" width="70" height="70" viewBox="0 0 70 70">
18
+ <path id="successAnimationResult" fill="#D8D8D8" d="M35,60 C21.1928813,60 10,48.8071187 10,35 C10,21.1928813 21.1928813,10 35,10 C48.8071187,10 60,21.1928813 60,35 C60,48.8071187 48.8071187,60 35,60 Z M23.6332378,33.2260427 L22.3667622,34.7739573 L34.1433655,44.40936 L47.776114,27.6305926 L46.223886,26.3694074 L33.8566345,41.59064 L23.6332378,33.2260427 Z"></path>
19
+ <circle id="successAnimationCircle" cx="35" cy="35" r="24" stroke="#979797" stroke-width="2" stroke-linecap="round" fill="transparent"></circle>
20
+ <polyline id="successAnimationCheck" stroke="#979797" stroke-width="2" points="23 34 34 43 47 27" fill="transparent"></polyline>
21
+ </svg>
22
+ </span>
23
+ </div>
24
+ <div class="plugin-button">
25
+ <a href="javascript:;" class="add-new-folder" id="add-new-folder">
26
+ <span class="create_new_folder"><i class="pfolder-add-folder"></i></span> <span><?php esc_html_e("New Folder", WCP_FOLDER ) ?></span>
27
+ </a>
28
+ </div>
29
  <div class="clear"></div>
30
  </div>
31
  <div class="form-options">
32
  <ul>
33
+ <li class="last folder-checkbox">
34
+ <input type="checkbox" id="folder-hide-show-checkbox">
35
  </li>
36
  <li>
37
+ <a href="javascript:;" id="inline-update"><span class="icon pfolder-edit"></span> <span class="text"><?php esc_html_e("Rename", WCP_FOLDER ) ?></span> </a>
38
  </li>
39
  <li>
40
+ <a href="javascript:;" id="inline-remove"><span class="icon pfolder-remove"></span> <span class="text"><?php esc_html_e("Delete", WCP_FOLDER ) ?></span> </a>
41
  </li>
42
+ <li>
43
+ <div class="form-options">
 
 
 
44
  <ul>
45
+ <li><a href="javascript:;" class="expand-collapse" id="expand-collapse-list"><span class="icon pfolder-arrow-down"></span></a></li>
46
+ <li class="last folder-order">
47
+ <a data-tooltip="Sort Folders" href="javascript:;" id="sort-order-list" class="sort-folder-order">
48
+ <span class="icon pfolder-arrow-sort"></span>
49
+ </a>
50
+ <div class="folder-sort-menu">
51
+ <ul>
52
+ <li><a data-sort="a-z" href="#">A → Z</a></li>
53
+ <li><a data-sort="z-a" href="#">Z → A</a></li>
54
+ <li><a data-sort="n-o" href="#">Newest → Oldest</a></li>
55
+ <li><a data-sort="o-n" href="#">Oldest → Newest</a></li>
56
+ </ul>
57
+ </div>
58
+ </li>
59
  </ul>
60
  </div>
61
  </li>
 
 
 
62
  </ul>
63
  <div class="upgrade-message">
64
  <?php
includes/tree.class.php CHANGED
@@ -95,7 +95,19 @@ class WCP_Tree {
95
  $highlight_nonce = wp_create_nonce('wcp_folder_highlight_term_'.$term->term_id);
96
  $term_nonce = wp_create_nonce('wcp_folder_term_'.$term->term_id);
97
  /* Free/Pro URL Change*/
98
- $string .= "<li data-nonce='{$term_nonce}' data-star='{$highlight_nonce}' data-rename='{$rename_nonce}' data-delete='{$delete_nonce}' data-slug='{$term->slug}' class='ui-state-default route wcp_folder_{$term->term_id} {$class}' id='wcp_folder_{$term->term_id}' data-folder-id='{$term->term_id}'><h3 class='title' title='{$term->name}' id='title_{$term->term_id}'><span class='ui-icon'><i class='wcp-icon folder-icon-folder'></i><img src='".esc_url(WCP_FOLDER_URL."assets/images/pin.png")."' class='folder-sticky-icon' /><img src='".esc_url(WCP_FOLDER_URL."assets/images/move-option.png")."' class='move-folder-icon' ><input type='checkbox' class='checkbox' value='{$term->term_id}' /> </span><span class='title-text'>{$term->name}</span> <span class='update-inline-record'></span> {$count} <span class='star-icon'></span></h3><span class='nav-icon'><i class='wcp-icon folder-icon-arrow_right'></i></span> <ul class='space' id='space_{$term->term_id}'>";
 
 
 
 
 
 
 
 
 
 
 
 
99
  $string .= $return['string'];
100
  $string .= "</ul></li>";
101
 
95
  $highlight_nonce = wp_create_nonce('wcp_folder_highlight_term_'.$term->term_id);
96
  $term_nonce = wp_create_nonce('wcp_folder_term_'.$term->term_id);
97
  /* Free/Pro URL Change*/
98
+ $string .= "<li data-nonce='{$term_nonce}' data-star='{$highlight_nonce}' data-rename='{$rename_nonce}' data-delete='{$delete_nonce}' data-slug='{$term->slug}' class='ui-state-default route wcp_folder_{$term->term_id} {$class}' id='wcp_folder_{$term->term_id}' data-folder-id='{$term->term_id}'>";
99
+ $string .= "<h3 class='title' title='{$term->name}' id='title_{$term->term_id}'>";
100
+ $string .= "<span class='ui-icon'>";
101
+ $string .= "<i class='wcp-icon pfolder-folder-close'></i>";
102
+ $string .= "<input type='checkbox' class='checkbox' value='{$term->term_id}' />";
103
+ $string .= "</span>";
104
+ $string .= "<span class='title-text'>{$term->name}</span>";
105
+ $string .= "{$count} <span class='update-inline-record'><i class='pfolder-edit-folder'></i></span> <span class='star-icon'><i class='pfolder-star'></i></span>";
106
+ $string .= "<span class='folder-sticky-icon'><i class='pfolder-pin'></i></span>";
107
+ // $string .= "<span class='move-folder-icon' ><i class='pfolder-move'></i></span>";
108
+ $string .= "</h3>";
109
+ $string .= "<span class='nav-icon'><i class='wcp-icon pfolder-arrow-down'></i></span>";
110
+ $string .= "<ul class='space' id='space_{$term->term_id}'>";
111
  $string .= $return['string'];
112
  $string .= "</ul></li>";
113
 
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
- === Folders - Organize Media Library Folders, Pages, Posts And Media Categories with Drag & Drop ===
2
  Contributors: galdub, tomeraharon, premio
3
- Tags: folder, folders, organize, pages folders, media library, posts folders, media folders, subfolders, file manager, directories
4
  Requires at least: 3.0.0
5
  Tested up to: 5.5
6
- Stable tag: 2.5.2
7
  Plugin URI: https://premio.io/downloads/folders/
8
 
9
  Folders is a WordPress plugin that will help you quickly organize and manage all of your Pages, Posts and Media library files in folders.
@@ -60,6 +60,8 @@ Digital Agencies: You're creating all sorts of content for your clients daily -
60
  * You can also move media library files, pages, posts, or any custom post to folders without using our drag and drop feature. Whenever you select any element or select some elements in bulk, you can move it to a folder using our dropdown menu
61
  * Select specific folders when you add media to your pages, posts or any other post type
62
  * Drag and drop folders, change order, and hierarchy
 
 
63
  * Upload directly to a media library folder - you can easily upload images or any other kind of files to a specific folder
64
  * Select a default folder for your media library, posts, pages, and custom posts - you can select the folder that will load by default when you open your media library, pages, posts, and custom posts. For example, you can show all the unassigned files whenever you open the media library.
65
  * New! Sort your folders - you can sort your folders based on name and creation date
@@ -118,6 +120,7 @@ Download this plugin today for free and get 10 folders to organize your WP conte
118
  3. Organize WordPress media library folders
119
  4. Organize WordPress pages folders
120
  5. Organize WordPress posts folders
 
121
 
122
  == Installation ==
123
 
@@ -159,6 +162,9 @@ A live demo for the Folders plugin is available at <a href="https://demo.premio.
159
 
160
  == Changelog ==
161
 
 
 
 
162
  = 2.5.2 =
163
  WP 5.5
164
 
1
+ === Folders - Organize Media Library Folders, Pages, Posts, Media Categories Folder, File Manager ===
2
  Contributors: galdub, tomeraharon, premio
3
+ Tags: folder, folders, organize, pages folders, media library, posts folders, media folders, subfolders, file manager, directories, media library folders, media library folder
4
  Requires at least: 3.0.0
5
  Tested up to: 5.5
6
+ Stable tag: 2.5.3
7
  Plugin URI: https://premio.io/downloads/folders/
8
 
9
  Folders is a WordPress plugin that will help you quickly organize and manage all of your Pages, Posts and Media library files in folders.
60
  * You can also move media library files, pages, posts, or any custom post to folders without using our drag and drop feature. Whenever you select any element or select some elements in bulk, you can move it to a folder using our dropdown menu
61
  * Select specific folders when you add media to your pages, posts or any other post type
62
  * Drag and drop folders, change order, and hierarchy
63
+ * Search folder names
64
+ * Duplicate folders - duplicate an existing folder with all its content
65
  * Upload directly to a media library folder - you can easily upload images or any other kind of files to a specific folder
66
  * Select a default folder for your media library, posts, pages, and custom posts - you can select the folder that will load by default when you open your media library, pages, posts, and custom posts. For example, you can show all the unassigned files whenever you open the media library.
67
  * New! Sort your folders - you can sort your folders based on name and creation date
120
  3. Organize WordPress media library folders
121
  4. Organize WordPress pages folders
122
  5. Organize WordPress posts folders
123
+ 6. Advanced Folders settings like download folder as zip, duplicate folder, add a star, sticky folders, and more
124
 
125
  == Installation ==
126
 
162
 
163
  == Changelog ==
164
 
165
+ = 2.5.3 =
166
+ New and better design! We've added a search field, the minimum size of the Folders area is much smaller now, we've added Folders to the add media view, added a duplicate option, and many other cool features and bug fixes.
167
+
168
  = 2.5.2 =
169
  WP 5.5
170
 
templates/admin/admin-content.php CHANGED
@@ -27,6 +27,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
27
  $string .= " .space > .route >";
28
  $new_width = $width - (13+(20*$i));
29
  echo "#custom-menu > {$string} .title { width: {$new_width}px !important; } ";
 
30
  }
31
  ?>
32
  </style>
@@ -41,16 +42,18 @@ if ( ! defined( 'ABSPATH' ) ) exit;
41
  .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']) ?> }
42
  .wcp-hide-show-buttons .toggle-buttons { background-color: <?php echo esc_attr($customize_folders['new_folder_color']) ?>; }
43
  .folders-toggle-button span { background-color: <?php echo esc_attr($customize_folders['new_folder_color']) ?>; }
44
- <?php
45
- }
46
- if(isset($customize_folders['dropdown_color']) && !empty($customize_folders['dropdown_color'])) {
47
- ?>
48
- #media-attachment-taxonomy-filter, select.media-select-folder { border-color: <?php echo esc_attr($customize_folders['dropdown_color']) ?>; color: <?php echo esc_attr($customize_folders['dropdown_color']) ?> }
49
  <?php
50
  }
51
  if(isset($customize_folders['folder_bg_color']) && !empty($customize_folders['folder_bg_color'])) {
 
52
  ?>
53
  .orange-bg > span ,.wcp-container .route.active-item > h3.title, .header-posts a.active-item, .un-categorised-items.active-item { background-color: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; color: #ffffff; }
 
 
 
 
 
54
  <?php
55
  }
56
  if(isset($customize_folders['bulk_organize_button_color']) && !empty($customize_folders['bulk_organize_button_color'])) {
@@ -62,9 +65,15 @@ if(isset($customize_folders['bulk_organize_button_color']) && !empty($customize_
62
  $font_family = "";
63
  if(isset($customize_folders['folder_font']) && !empty($customize_folders['folder_font'])) {
64
  $font_family = $customize_folders['folder_font'];
 
 
65
  ?>
66
  .wcp-container, .folder-popup-form { font-family: "<?php echo esc_attr($font_family) ?>"; }
67
  <?php
 
 
 
 
68
  }
69
  if(isset($customize_folders['folder_size']) && !empty($customize_folders['folder_size'])) {
70
  ?>
@@ -122,6 +131,13 @@ if(!empty($post_type)) {
122
  <div class="sticky-wcp-custom-form">
123
  <?php echo $form_html ?>
124
  <div class="top-settings">
 
 
 
 
 
 
 
125
  <div class="header-posts">
126
  <a href="javascript:;" class="all-posts <?php echo esc_attr($active_all_class) ?>"><span class="wcp-icon folder-icon-insert_drive_file"></span> <?php esc_attr_e("All ".$title, WCP_FOLDER ) ?> <span class="total-count"><?php echo $ttpsts ?></span></a>
127
  </div>
@@ -149,88 +165,97 @@ if(!empty($post_type)) {
149
  </div>
150
  </div>
151
  </div>
152
- <div class="folder-popup-form" id="add-update-folder">
153
- <div class="popup-form-content">
154
- <form action="" method="post" id="save-folder-form">
155
- <div id="add-update-folder-title" class="add-update-folder-title">
156
- Add Folder
157
- </div>
158
- <div class="folder-form-input">
159
- <input id="add-update-folder-name" autocomplete="off" placeholder="Folder name">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
160
  </div>
161
- <div class="folder-form-errors">
162
- <span class="dashicons dashicons-info"></span> Please enter folder name
163
  </div>
164
  <div class="folder-form-buttons">
165
- <button type="submit" class="form-submit-btn" id="save-folder-data" style="width: 106px">Submit</button>
166
- <a href="javascript:;" class="form-cancel-btn">Cancel</a>
167
  </div>
168
- </form>
169
  </div>
170
- </div>
171
 
172
- <div class="folder-popup-form" id="update-folder-item">
173
- <div class="popup-form-content">
174
- <form action="" method="post" id="update-folder-form">
175
- <div id="update-folder-title" class="add-update-folder-title">
176
- Rename Folder
177
- </div>
178
- <div class="folder-form-input">
179
- <input id="update-folder-item-name" autocomplete="off" placeholder="Folder name">
180
  </div>
181
- <div class="folder-form-errors">
182
- <span class="dashicons dashicons-info"></span> Please enter folder name
183
  </div>
184
  <div class="folder-form-buttons">
185
- <button type="submit" class="form-submit-btn" id="update-folder-data" style="width: 106px">Submit</button>
186
  <a href="javascript:;" class="form-cancel-btn">Cancel</a>
 
187
  </div>
188
- </form>
189
- </div>
190
- </div>
191
-
192
- <div class="folder-popup-form" id="confirm-remove-folder">
193
- <div class="popup-form-content">
194
- <div class="add-update-folder-title" id="remove-folder-message">
195
- Are you sure you want to delete the selected folder?
196
- </div>
197
- <div class="folder-form-message" id="remove-folder-notice">
198
- Items in the folder will not be deleted.
199
- </div>
200
- <div class="folder-form-buttons">
201
- <a href="javascript:;" class="form-cancel-btn">No, Keep it</a>
202
- <a href="javascript:;" class="form-submit-btn" id="remove-folder-item">Yes, Delete it!</a>
203
- </div>
204
- </div>
205
- </div>
206
-
207
- <div class="folder-popup-form" id="no-more-folder-credit">
208
- <div class="popup-form-content">
209
- <div class="add-update-folder-title" id="folder-limitation-message">
210
-
211
- </div>
212
- <div class="folder-form-message">
213
- Unlock unlimited amount of folders by upgrading to one of our pro plans.
214
- </div>
215
- <div class="folder-form-buttons">
216
- <a href="javascript:;" class="form-cancel-btn">Cancel</a>
217
- <a href="<?php echo esc_url(admin_url("admin.php?page=wcp_folders_upgrade")) ?>" target="_blank" class="form-submit-btn">See Pro Plans</a>
218
  </div>
219
  </div>
220
- </div>
221
 
222
- <div class="folder-popup-form" id="error-folder-popup">
223
- <div class="popup-form-content">
224
- <div class="add-update-folder-title" id="error-folder-popup-message">
225
 
226
- </div>
227
- <div class="folder-form-buttons">
228
- <a href="javascript:;" class="form-cancel-btn">Close</a>
 
229
  </div>
230
  </div>
231
- </div>
232
 
233
- <div class="folder-popup-form" id="bulk-move-folder">
234
  <form action="" method="post" id="bulk-folder-form">
235
  <div class="popup-form-content">
236
  <div class="popup-folder-title">
@@ -248,3 +273,4 @@ if(!empty($post_type)) {
248
  </div>
249
  </form>
250
  </div>
 
27
  $string .= " .space > .route >";
28
  $new_width = $width - (13+(20*$i));
29
  echo "#custom-menu > {$string} .title { width: {$new_width}px !important; } ";
30
+ echo "#custom-menu > {$string} .dynamic-menu { left: ".($new_width-190)."px !important; } ";
31
  }
32
  ?>
33
  </style>
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']) ?> }
43
  .wcp-hide-show-buttons .toggle-buttons { background-color: <?php echo esc_attr($customize_folders['new_folder_color']) ?>; }
44
  .folders-toggle-button span { background-color: <?php echo esc_attr($customize_folders['new_folder_color']) ?>; }
45
+ .ui-resizable-handle.ui-resizable-e:before, .ui-resizable-handle.ui-resizable-w:before {border-color: <?php echo esc_attr($customize_folders['new_folder_color']) ?>;}
 
 
 
 
46
  <?php
47
  }
48
  if(isset($customize_folders['folder_bg_color']) && !empty($customize_folders['folder_bg_color'])) {
49
+ $rgbColor = self::hexToRgb($customize_folders['folder_bg_color']);
50
  ?>
51
  .orange-bg > span ,.wcp-container .route.active-item > h3.title, .header-posts a.active-item, .un-categorised-items.active-item { background-color: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; color: #ffffff; }
52
+ body:not(.no-hover-css) .wcp-container .route .title:hover, .header-posts a:hover, .un-categorised-items.active-item, .un-categorised-items:hover {background: rgba(<?php echo esc_attr($rgbColor['r'].",".$rgbColor['g'].",".$rgbColor['b'].", 0.08") ?>);}
53
+ .wcp-drop-hover {
54
+ background: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important;
55
+ }
56
+ #custom-menu .route .nav-icon .wcp-icon {color: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important;}
57
  <?php
58
  }
59
  if(isset($customize_folders['bulk_organize_button_color']) && !empty($customize_folders['bulk_organize_button_color'])) {
65
  $font_family = "";
66
  if(isset($customize_folders['folder_font']) && !empty($customize_folders['folder_font'])) {
67
  $font_family = $customize_folders['folder_font'];
68
+ $folder_fonts = self::get_font_list();
69
+ if(isset($folder_fonts[$font_family])) {
70
  ?>
71
  .wcp-container, .folder-popup-form { font-family: "<?php echo esc_attr($font_family) ?>"; }
72
  <?php
73
+ }
74
+ if($folder_fonts[$font_family] == "Default") {
75
+ $font_family = "";
76
+ }
77
  }
78
  if(isset($customize_folders['folder_size']) && !empty($customize_folders['folder_size'])) {
79
  ?>
131
  <div class="sticky-wcp-custom-form">
132
  <?php echo $form_html ?>
133
  <div class="top-settings">
134
+ <div class="folder-search-form">
135
+ <div class="form-search-input">
136
+ <input type="text" value="" id="folder-search" autocomplete="off" />
137
+ <span><i class="pfolder-search"></i></span>
138
+ </div>
139
+ </div>
140
+ <div class="folder-separator"></div>
141
  <div class="header-posts">
142
  <a href="javascript:;" class="all-posts <?php echo esc_attr($active_all_class) ?>"><span class="wcp-icon folder-icon-insert_drive_file"></span> <?php esc_attr_e("All ".$title, WCP_FOLDER ) ?> <span class="total-count"><?php echo $ttpsts ?></span></a>
143
  </div>
165
  </div>
166
  </div>
167
  </div>
168
+ <div id="folder-add-update-content">
169
+ <div class="folder-popup-form" id="add-update-folder">
170
+ <div class="popup-form-content">
171
+ <form action="" method="post" id="save-folder-form">
172
+ <div id="add-update-folder-title" class="add-update-folder-title">
173
+ Add new folder
174
+ </div>
175
+ <div class="folder-form-input">
176
+ <div class="folder-group">
177
+ <input id="add-update-folder-name" autocomplete="off" required="required">
178
+ <span class="highlight"></span><span class="folder-bar"></span>
179
+ <label for="add-update-folder-name">Folder name</label>
180
+ </div>
181
+ </div>
182
+ <div class="folder-form-errors">
183
+ <span class="dashicons dashicons-info"></span> Please enter folder name
184
+ </div>
185
+ <div class="folder-form-buttons">
186
+ <a href="javascript:;" class="form-cancel-btn">Cancel</a>
187
+ <button type="submit" class="form-submit-btn" id="save-folder-data" style="width: 160px">Submit</button>
188
+ </div>
189
+ </form>
190
+ </div>
191
+ </div>
192
+
193
+ <div class="folder-popup-form" id="update-folder-item">
194
+ <div class="popup-form-content">
195
+ <form action="" method="post" id="update-folder-form">
196
+ <div id="update-folder-title" class="add-update-folder-title">
197
+ Rename folder
198
+ </div>
199
+ <div class="folder-form-input">
200
+ <div class="folder-group">
201
+ <input id="update-folder-item-name" autocomplete="off" required="required">
202
+ <span class="highlight"></span><span class="folder-bar"></span>
203
+ <label for="update-folder-item-name">Folder name</label>
204
+ </div>
205
+ </div>
206
+ <div class="folder-form-errors">
207
+ <span class="dashicons dashicons-info"></span> Please enter folder name
208
+ </div>
209
+ <div class="folder-form-buttons">
210
+ <a href="javascript:;" class="form-cancel-btn">Cancel</a>
211
+ <button type="submit" class="form-submit-btn" id="update-folder-data" style="width: 160px">Submit</button>
212
+ </div>
213
+ </form>
214
+ </div>
215
+ </div>
216
+
217
+ <div class="folder-popup-form" id="confirm-remove-folder">
218
+ <div class="popup-form-content">
219
+ <div class="add-update-folder-title" id="remove-folder-message">
220
+ Are you sure you want to delete the selected folder?
221
  </div>
222
+ <div class="folder-form-message" id="remove-folder-notice">
223
+ Items in the folder will not be deleted.
224
  </div>
225
  <div class="folder-form-buttons">
226
+ <a href="javascript:;" class="form-cancel-btn">No, Keep it</a>
227
+ <a href="javascript:;" class="form-submit-btn" id="remove-folder-item">Yes, Delete it!</a>
228
  </div>
229
+ </div>
230
  </div>
 
231
 
232
+ <div class="folder-popup-form" id="no-more-folder-credit">
233
+ <div class="popup-form-content">
234
+ <div class="add-update-folder-title" id="folder-limitation-message">
235
+
 
 
 
 
236
  </div>
237
+ <div class="folder-form-message">
238
+ Unlock unlimited amount of folders by upgrading to one of our pro plans.
239
  </div>
240
  <div class="folder-form-buttons">
 
241
  <a href="javascript:;" class="form-cancel-btn">Cancel</a>
242
+ <a href="<?php echo esc_url(admin_url("admin.php?page=wcp_folders_upgrade")) ?>" target="_blank" class="form-submit-btn">See Pro Plans</a>
243
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
244
  </div>
245
  </div>
 
246
 
247
+ <div class="folder-popup-form" id="error-folder-popup">
248
+ <div class="popup-form-content">
249
+ <div class="add-update-folder-title" id="error-folder-popup-message">
250
 
251
+ </div>
252
+ <div class="folder-form-buttons">
253
+ <a href="javascript:;" class="form-cancel-btn">Close</a>
254
+ </div>
255
  </div>
256
  </div>
 
257
 
258
+ <div class="folder-popup-form" id="bulk-move-folder">
259
  <form action="" method="post" id="bulk-folder-form">
260
  <div class="popup-form-content">
261
  <div class="popup-folder-title">
273
  </div>
274
  </form>
275
  </div>
276
+ </div>
templates/admin/general-settings.php CHANGED
@@ -105,109 +105,134 @@ if ( ! defined( 'ABSPATH' ) ) exit;
105
  <input type="hidden" name="folder_nonce" value="<?php echo wp_create_nonce("folder_settings") ?>">
106
  <div class="accordion">
107
  <div class="accordion-header">Folders Settings <span class="dashicons dashicons-arrow-down-alt2"></span></div>
108
- <div class="accordion-content" style="display: block">
109
  <div class="accordion-left">
110
  <table class="form-table">
111
- <?php
112
- $post_types = get_post_types( array( ), 'objects' );
113
- $post_array = array("page", "post", "attachment");
114
- foreach ( $post_types as $post_type ) : ?>
115
  <?php
116
- if ( ! $post_type->show_ui) continue;
117
- $is_checked = !in_array( $post_type->name, $options )?"hide-option":"";
118
- $selected_id = (isset($default_folders[$post_type->name]))?$default_folders[$post_type->name]:"all";
119
- if(in_array($post_type->name, $post_array)){
120
- ?>
121
- <tr>
122
- <th width="220px">
123
- <label for="folders_<?php echo esc_attr($post_type->name); ?>" ><?php esc_html_e( 'Use folders with: ', WCP_FOLDER )." ".esc_html_e($post_type->label); ?></label>
124
- </th>
125
- <td>
126
- <input type="checkbox" class="folder-select" id="folders_<?php echo esc_attr($post_type->name); ?>" name="folders_settings[]" value="<?php echo esc_attr($post_type->name); ?>"<?php if ( in_array( $post_type->name, $options ) ) echo ' checked="checked"'; ?>/>
127
- </td>
128
- <th class="default-folder">
129
- <label class="hide-show-option <?php echo esc_attr($is_checked) ?>" for="folders_for_<?php echo esc_attr($post_type->name); ?>" ><?php esc_html_e( 'Default folder: ', WCP_FOLDER ) ?></label>
130
- </th>
131
- <td>
132
- <select class="hide-show-option <?php echo esc_attr($is_checked) ?>" id="folders_for_<?php echo esc_attr($post_type->name); ?>" name="default_folders[<?php echo esc_attr($post_type->name); ?>]" ?>">
133
- <option value="">All <?php echo esc_attr($post_type->label) ?> Folder</option>
134
- <option value="-1" <?php echo ($selected_id == -1)?"selected":"" ?>>Unassigned <?php echo esc_attr($post_type->label) ?></option>
135
- <?php
136
- if(isset($terms_data[$post_type->name]) && !empty($terms_data[$post_type->name])) {
137
- foreach ($terms_data[$post_type->name] as $term) {
138
- $selected = ($selected_id == $term->slug)?"selected":"";
139
- echo "<option ".esc_attr($selected)." value='".esc_attr($term->slug)."'>".esc_attr($term->name)."</option>";
140
- }
141
- } ?>
142
- </select>
143
- </td>
144
- </tr>
145
- <?php
146
- } else { ?>
147
- <tr>
148
- <th>
149
- <label for="folders_<?php echo esc_attr($post_type->name); ?>" ><?php esc_html_e( 'Use folders with: ', WCP_FOLDER )." ".esc_html_e($post_type->label); ?></label>
150
- </th>
151
- <td>
152
- <input type="checkbox" class="folder-select" id="folders_<?php echo esc_attr($post_type->name); ?>" name="folders_settings[]" value="<?php echo esc_attr($post_type->name); ?>"<?php if ( in_array( $post_type->name, $options ) ) echo ' checked="checked"'; ?>/>
153
- </td>
154
- <th class="default-folder">
155
- <label class="hide-show-option <?php echo esc_attr($is_checked) ?>" for="folders_for_<?php echo esc_attr($post_type->name); ?>" ><?php esc_html_e( 'Default folder: ', WCP_FOLDER ) ?></label>
156
- </th>
157
- <td>
158
- <select class="hide-show-option <?php echo esc_attr($is_checked) ?>" id="folders_for_<?php echo esc_attr($post_type->name); ?>" name="default_folders[<?php echo esc_attr($post_type->name); ?>]" ?>">
159
- <option value="">All <?php echo esc_attr($post_type->label) ?> Folder</option>
160
- <option value="-1" <?php echo ($selected_id == -1)?"selected":"" ?>>Unassigned <?php echo esc_attr($post_type->label) ?></option>
161
- <?php
162
- if(isset($terms_data[$post_type->name]) && !empty($terms_data[$post_type->name])) {
163
- foreach ($terms_data[$post_type->name] as $term) {
164
- $selected = ($selected_id == $term->slug)?"selected":"";
165
- echo "<option ".esc_attr($selected)." value='".esc_attr($term->slug)."'>".esc_attr($term->name)."</option>";
166
- }
167
- } ?>
168
- </select>
169
- </td>
170
- </tr>
171
- <?php } endforeach; ?>
172
- <tr>
173
- <th>
174
- <label for="folders_show_in_menu" ><?php esc_html_e( 'Show Folders in Menu:', WCP_FOLDER ); ?></label>
175
- </th>
176
- <td>
177
- <?php $val = get_option("folders_show_in_menu"); ?>
178
- <input type="hidden" name="folders_show_in_menu" value="off" />
179
- <input type="checkbox" id="folders_show_in_menu" name="folders_show_in_menu" value="on" <?php echo ($val == "on")?"checked='checked'":"" ?>/>
180
- </td>
181
- </tr>
182
- <!-- Do not make changes here, Only for Free -->
183
-
184
- <tr>
185
- <td colspan="2" style="padding: 10px 0">
186
  <?php
187
- $tlfs = get_option("folder_old_plugin_folder_status");
188
- if($tlfs == false || $tlfs < 10) {
189
- $tlfs = 10;
190
- }
191
- $total = WCP_Folders::get_ttl_fldrs();
192
- if($total > $tlfs) {
193
- $tlfs = $total;
194
- }
195
- ?>
196
- <span class="upgrade-message">You have used <span class='pink'><?php echo esc_attr($total) ?></span>/<?php echo esc_attr($tlfs) ?> Folders. <a class="pink" href="<?php echo esc_url(admin_url("admin.php?page=wcp_folders_upgrade")) ?>"><?php esc_html_e("Upgrade", WCP_FOLDER) ?></a></span>
197
- </td>
198
- </tr>
199
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
200
  </table>
201
  <input type="hidden" name="folders_settings1[premio_folder_option]" value="yes" />
202
  </div>
203
  <div class="accordion-right">
204
  <div class="premio-help">
205
  <a href="https://premio.io/help/folders/?utm_source=pluginspage" target="_blank">
206
- <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/premio-help.png") ?>" alt="Premio Help" class="Premio Help" />
 
 
 
 
 
207
  </a>
208
  </div>
209
  </div>
210
  <div class="clear"></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
211
  </div>
212
  </div>
213
  <div class="accordion">
@@ -216,12 +241,12 @@ if ( ! defined( 'ABSPATH' ) ) exit;
216
  <div class="accordion-left">
217
  <table class="form-table">
218
  <?php
219
- $color = !isset($customize_folders['new_folder_color'])||empty($customize_folders['new_folder_color'])?"#F51366":$customize_folders['new_folder_color'];
220
  ?>
221
  <tr>
222
- <th width="220px">
223
- <label for="new_folder_color" >New Folder button color</label>
224
- </th>
225
  <td width="32px">
226
  <input type="text" class="color-field" name="customize_folders[new_folder_color]" id="new_folder_color" value="<?php echo esc_attr($color) ?>" />
227
  </td>
@@ -230,42 +255,42 @@ if ( ! defined( 'ABSPATH' ) ) exit;
230
  </td>
231
  </tr>
232
  <?php
233
- $color = !isset($customize_folders['bulk_organize_button_color'])||empty($customize_folders['bulk_organize_button_color'])?"#F51366":$customize_folders['bulk_organize_button_color'];
234
  ?>
235
  <tr>
236
- <th>
237
- <label for="bulk_organize_button_color" >Bulk Organize button color</label>
238
- </th>
239
  <td>
240
  <input type="text" class="color-field" name="customize_folders[bulk_organize_button_color]" id="bulk_organize_button_color" value="<?php echo esc_attr($color) ?>" />
241
  </td>
242
  </tr>
243
  <?php
244
- $color = !isset($customize_folders['dropdown_color'])||empty($customize_folders['dropdown_color'])?"#F51366":$customize_folders['dropdown_color'];
245
  ?>
246
  <tr>
247
- <th>
248
  <label for="dropdown_color" >Dropdown color</label>
249
- </th>
250
  <td>
251
  <input type="text" class="color-field" name="customize_folders[dropdown_color]" id="dropdown_color" value="<?php echo esc_attr($color) ?>" />
252
  </td>
253
  </tr>
254
  <?php
255
- $color = !isset($customize_folders['folder_bg_color'])||empty($customize_folders['folder_bg_color'])?"#008ec2":$customize_folders['folder_bg_color'];
256
  ?>
257
  <tr>
258
- <th>
259
  <label for="folder_bg_color" >Folders background color</label>
260
- </th>
261
  <td>
262
  <input type="text" class="color-field" name="customize_folders[folder_bg_color]" id="folder_bg_color" value="<?php echo esc_attr($color) ?>" />
263
  </td>
264
  </tr>
265
  <tr>
266
- <th>
267
  <label for="folder_font" >Folders font</label>
268
- </th>
269
  <td colspan="2">
270
  <?php
271
  $font = !isset($customize_folders['folder_font'])||empty($customize_folders['folder_font'])?"":$customize_folders['folder_font'];
@@ -290,9 +315,9 @@ if ( ! defined( 'ABSPATH' ) ) exit;
290
  </td>
291
  </tr>
292
  <tr>
293
- <th>
294
  <label for="folder_size" >Folders size</label>
295
- </th>
296
  <td colspan="2">
297
  <?php
298
  $sizes = array(
@@ -319,10 +344,13 @@ if ( ! defined( 'ABSPATH' ) ) exit;
319
  }
320
  ?>
321
  <tr>
322
- <th><label for="">Show Folders in upper position</label></th>
323
- <td colspan="2">
324
  <input type="hidden" name="customize_folders[show_in_page]" value="hide">
325
- <input <?php checked($show_in_page, "show") ?> type="checkbox" name="customize_folders[show_in_page]" value="show">
 
 
 
 
326
  </td>
327
  </tr>
328
  </table>
@@ -338,7 +366,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
338
  <div class="form-title">
339
  Folders
340
  <a href="javascript:;" class="add-new-folder" id="add-new-folder">
341
- <span class="folder-icon-create_new_folder"></span>
342
  <span>New Folder</span>
343
  </a>
344
  <div class="clear"></div>
@@ -346,39 +374,51 @@ if ( ! defined( 'ABSPATH' ) ) exit;
346
  <div class="form-options">
347
  <ul>
348
  <li>
349
- <a href="javascript:;" id="inline-update"><span class="icon folder-icon-border_color"><span class="path1"></span><span class="path2"></span></span> <span class="text">Rename</span> </a>
 
 
 
 
 
 
350
  </li>
351
  <li>
352
- <a href="javascript:;" id="inline-remove"><span class="icon folder-icon-delete"></span> <span class="text">Delete</span> </a>
 
 
 
353
  </li>
354
  <li class="last">
355
- <a href="javascript:;" id="expand-collapse-list" class="folder-tooltip" data-tooltip="Expand"><span class="icon folder-icon-expand_more"></span></a>
356
  </li>
357
  </ul>
358
  </div>
359
  </div>
360
- <div class="header-posts">
361
- <a href="javascript:;" class="all-posts active-item"><span class="wcp-icon folder-icon-insert_drive_file"></span> All Files <span class="total-count">0</span></a>
362
- </div>
363
- <div class="un-categorised-items ui-droppable">
364
- <a href="javascript:;" class="un-categorized-posts">Unassigned Files <span class="total-count total-empty">0</span> </a>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
365
  </div>
366
-
367
- <ul class="folder-list">
368
- <li><a href="javascript:;"><i class="wcp-icon folder-icon-folder"></i> <span>Folder 1</span></a></li>
369
- <li><a href="javascript:;"><i class="wcp-icon folder-icon-folder"></i> <span>Folder 2</span></a></li>
370
- <li><a href="javascript:;"><i class="wcp-icon folder-icon-folder"></i> <span>Folder 3</span></a></li>
371
- </ul>
372
- </div>
373
- <div class="media-buttons">
374
- <select class="media-select">
375
- <option>All Files</option>
376
- <option>Folder 1</option>
377
- <option>Folder 2</option>
378
- <option>Folder 3</option>
379
- </select>
380
- <button type="button" class="button organize-button">Bulk Organize</button>
381
- <div style="clear: both;"></div>
382
  </div>
383
  </div>
384
  </div>
105
  <input type="hidden" name="folder_nonce" value="<?php echo wp_create_nonce("folder_settings") ?>">
106
  <div class="accordion">
107
  <div class="accordion-header">Folders Settings <span class="dashicons dashicons-arrow-down-alt2"></span></div>
108
+ <div class="accordion-content no-bp" style="display: block">
109
  <div class="accordion-left">
110
  <table class="form-table">
111
+ <tboby>
 
 
 
112
  <?php
113
+ $post_types = get_post_types( array( ), 'objects' );
114
+ $post_array = array("page", "post", "attachment");
115
+ foreach ( $post_types as $post_type ) : ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
116
  <?php
117
+ if ( ! $post_type->show_ui) continue;
118
+ $is_checked = !in_array( $post_type->name, $options )?"hide-option":"";
119
+ $selected_id = (isset($default_folders[$post_type->name]))?$default_folders[$post_type->name]:"all";
120
+ if(in_array($post_type->name, $post_array)){
121
+ ?>
122
+ <tr>
123
+ <td class="no-padding">
124
+ <div class="custom-checkbox">
125
+ <input type="checkbox" class="folder-select sr-only" id="folders_<?php echo esc_attr($post_type->name); ?>" name="folders_settings[]" value="<?php echo esc_attr($post_type->name); ?>"<?php if ( in_array( $post_type->name, $options ) ) echo ' checked="checked"'; ?>/>
126
+ <span></span>
127
+ </div>
128
+ </td>
129
+ <td width="220px">
130
+ <label for="folders_<?php echo esc_attr($post_type->name); ?>" ><?php esc_html_e( 'Use folders with: ', WCP_FOLDER )." ".esc_html_e($post_type->label); ?></label>
131
+ </td>
132
+ <td class="default-folder">
133
+ <label class="hide-show-option <?php echo esc_attr($is_checked) ?>" for="folders_for_<?php echo esc_attr($post_type->name); ?>" ><?php esc_html_e( 'Default folder: ', WCP_FOLDER ) ?></label>
134
+ </td>
135
+ <td>
136
+ <select class="hide-show-option <?php echo esc_attr($is_checked) ?>" id="folders_for_<?php echo esc_attr($post_type->name); ?>" name="default_folders[<?php echo esc_attr($post_type->name); ?>]" ?>">
137
+ <option value="">All <?php echo esc_attr($post_type->label) ?> Folder</option>
138
+ <option value="-1" <?php echo ($selected_id == -1)?"selected":"" ?>>Unassigned <?php echo esc_attr($post_type->label) ?></option>
139
+ <?php
140
+ if(isset($terms_data[$post_type->name]) && !empty($terms_data[$post_type->name])) {
141
+ foreach ($terms_data[$post_type->name] as $term) {
142
+ $selected = ($selected_id == $term->slug)?"selected":"";
143
+ echo "<option ".esc_attr($selected)." value='".esc_attr($term->slug)."'>".esc_attr($term->name)."</option>";
144
+ }
145
+ } ?>
146
+ </select>
147
+ </td>
148
+ </tr>
149
+ <?php
150
+ } else { ?>
151
+ <tr>
152
+ <td class="no-padding">
153
+ <div class="custom-checkbox">
154
+ <input type="checkbox" class="sr-only folder-select" id="folders_<?php echo esc_attr($post_type->name); ?>" name="folders_settings[]" value="<?php echo esc_attr($post_type->name); ?>"<?php if ( in_array( $post_type->name, $options ) ) echo ' checked="checked"'; ?>/>
155
+ <span></span>
156
+ </div>
157
+ </td>
158
+ <td>
159
+ <label for="folders_<?php echo esc_attr($post_type->name); ?>" ><?php esc_html_e( 'Use folders with: ', WCP_FOLDER )." ".esc_html_e($post_type->label); ?></label>
160
+ </td>
161
+ <td class="default-folder">
162
+ <label class="hide-show-option <?php echo esc_attr($is_checked) ?>" for="folders_for_<?php echo esc_attr($post_type->name); ?>" ><?php esc_html_e( 'Default folder: ', WCP_FOLDER ) ?></label>
163
+ </td>
164
+ <td>
165
+ <select class="hide-show-option <?php echo esc_attr($is_checked) ?>" id="folders_for_<?php echo esc_attr($post_type->name); ?>" name="default_folders[<?php echo esc_attr($post_type->name); ?>]" ?>">
166
+ <option value="">All <?php echo esc_attr($post_type->label) ?> Folder</option>
167
+ <option value="-1" <?php echo ($selected_id == -1)?"selected":"" ?>>Unassigned <?php echo esc_attr($post_type->label) ?></option>
168
+ <?php
169
+ if(isset($terms_data[$post_type->name]) && !empty($terms_data[$post_type->name])) {
170
+ foreach ($terms_data[$post_type->name] as $term) {
171
+ $selected = ($selected_id == $term->slug)?"selected":"";
172
+ echo "<option ".esc_attr($selected)." value='".esc_attr($term->slug)."'>".esc_attr($term->name)."</option>";
173
+ }
174
+ } ?>
175
+ </select>
176
+ </td>
177
+ </tr>
178
+ <?php } endforeach; ?>
179
+ <tr>
180
+ <td width="20" class="no-padding">
181
+ <?php $val = get_option("folders_show_in_menu"); ?>
182
+ <input type="hidden" name="folders_show_in_menu" value="off" />
183
+ <div class="custom-checkbox">
184
+ <input class="sr-only" type="checkbox" id="folders_show_in_menu" name="folders_show_in_menu" value="on" <?php echo ($val == "on")?"checked='checked'":"" ?>/>
185
+ <span></span>
186
+ </div>
187
+ </td>
188
+ <td colspan="3">
189
+ <label for="folders_show_in_menu" ><?php esc_html_e( 'Show Folders in Menu:', WCP_FOLDER ); ?></label>
190
+ </td>
191
+ </tr>
192
+ <!-- Do not make changes here, Only for Free -->
193
+ </tboby>
194
  </table>
195
  <input type="hidden" name="folders_settings1[premio_folder_option]" value="yes" />
196
  </div>
197
  <div class="accordion-right">
198
  <div class="premio-help">
199
  <a href="https://premio.io/help/folders/?utm_source=pluginspage" target="_blank">
200
+ <div class="premio-help-btn">
201
+ <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/premio-help.png") ?>" alt="Premio Help" class="Premio Help" />
202
+ <div class="need-help">Need Help</div>
203
+ <div class="visit-our">Visit our</div>
204
+ <div class="knowledge-base">knowledge base</div>
205
+ </div>
206
  </a>
207
  </div>
208
  </div>
209
  <div class="clear"></div>
210
+ <div class="separator"></div>
211
+ <table class="form-table">
212
+ <tfoot>
213
+ <tr>
214
+ <td class="no-padding" width="20px">
215
+ <span class="dashicons dashicons-editor-help"></span>
216
+ </td>
217
+ <td width="220px">
218
+ <?php
219
+ $tlfs = get_option("folder_old_plugin_folder_status");
220
+ if($tlfs == false || $tlfs < 10) {
221
+ $tlfs = 10;
222
+ }
223
+ $total = WCP_Folders::get_ttl_fldrs();
224
+ if($total > $tlfs) {
225
+ $tlfs = $total;
226
+ }
227
+ ?>
228
+ You have used <b><?php echo esc_attr($total) ?></b>/<?php echo esc_attr($tlfs) ?> Folders.
229
+ </td>
230
+ <td class="no-padding" colspan="2">
231
+ <a class="upgrade-btn" href="<?php echo esc_url(admin_url("admin.php?page=wcp_folders_upgrade")) ?>"><?php esc_html_e("Upgrade", WCP_FOLDER) ?></a>
232
+ </td>
233
+ </tr>
234
+ </tfoot>
235
+ </table>
236
  </div>
237
  </div>
238
  <div class="accordion">
241
  <div class="accordion-left">
242
  <table class="form-table">
243
  <?php
244
+ $color = !isset($customize_folders['new_folder_color'])||empty($customize_folders['new_folder_color'])?"#FA166B":$customize_folders['new_folder_color'];
245
  ?>
246
  <tr>
247
+ <td width="220px" class="no-padding">
248
+ <label for="new_folder_color" ><b>"New Folder"</b> button color</label>
249
+ </td>
250
  <td width="32px">
251
  <input type="text" class="color-field" name="customize_folders[new_folder_color]" id="new_folder_color" value="<?php echo esc_attr($color) ?>" />
252
  </td>
255
  </td>
256
  </tr>
257
  <?php
258
+ $color = !isset($customize_folders['bulk_organize_button_color'])||empty($customize_folders['bulk_organize_button_color'])?"#FA166B":$customize_folders['bulk_organize_button_color'];
259
  ?>
260
  <tr>
261
+ <td class="no-padding">
262
+ <label for="bulk_organize_button_color" ><b>"Bulk Organize"</b> button color</label>
263
+ </td>
264
  <td>
265
  <input type="text" class="color-field" name="customize_folders[bulk_organize_button_color]" id="bulk_organize_button_color" value="<?php echo esc_attr($color) ?>" />
266
  </td>
267
  </tr>
268
  <?php
269
+ $color = !isset($customize_folders['dropdown_color'])||empty($customize_folders['dropdown_color'])?"#484848":$customize_folders['dropdown_color'];
270
  ?>
271
  <tr>
272
+ <td class="no-padding">
273
  <label for="dropdown_color" >Dropdown color</label>
274
+ </td>
275
  <td>
276
  <input type="text" class="color-field" name="customize_folders[dropdown_color]" id="dropdown_color" value="<?php echo esc_attr($color) ?>" />
277
  </td>
278
  </tr>
279
  <?php
280
+ $color = !isset($customize_folders['folder_bg_color'])||empty($customize_folders['folder_bg_color'])?"#FA166B":$customize_folders['folder_bg_color'];
281
  ?>
282
  <tr>
283
+ <td class="no-padding">
284
  <label for="folder_bg_color" >Folders background color</label>
285
+ </td>
286
  <td>
287
  <input type="text" class="color-field" name="customize_folders[folder_bg_color]" id="folder_bg_color" value="<?php echo esc_attr($color) ?>" />
288
  </td>
289
  </tr>
290
  <tr>
291
+ <td class="no-padding">
292
  <label for="folder_font" >Folders font</label>
293
+ </td>
294
  <td colspan="2">
295
  <?php
296
  $font = !isset($customize_folders['folder_font'])||empty($customize_folders['folder_font'])?"":$customize_folders['folder_font'];
315
  </td>
316
  </tr>
317
  <tr>
318
+ <td class="no-padding">
319
  <label for="folder_size" >Folders size</label>
320
+ </td>
321
  <td colspan="2">
322
  <?php
323
  $sizes = array(
344
  }
345
  ?>
346
  <tr>
347
+ <td colspan="3" class="no-padding">
 
348
  <input type="hidden" name="customize_folders[show_in_page]" value="hide">
349
+ <div class="custom-checkbox">
350
+ <input id="show_folders" class="sr-only" <?php checked($show_in_page, "show") ?> type="checkbox" name="customize_folders[show_in_page]" value="show">
351
+ <span></span>
352
+ </div>
353
+ <label for="show_folders">Show Folders in upper position</label>
354
  </td>
355
  </tr>
356
  </table>
366
  <div class="form-title">
367
  Folders
368
  <a href="javascript:;" class="add-new-folder" id="add-new-folder">
369
+ <span class="create_new_folder"><i class="pfolder-add-folder"></i></span>
370
  <span>New Folder</span>
371
  </a>
372
  <div class="clear"></div>
374
  <div class="form-options">
375
  <ul>
376
  <li>
377
+ <div class="custom-checkbox">
378
+ <input type="checkbox" class="sr-only" >
379
+ <span></span>
380
+ </div>
381
+ </li>
382
+ <li>
383
+ <a href="javascript:;" id="inline-update"><span class="icon pfolder-edit-folder"><span class="path2"></span></span> <span class="text">Rename</span> </a>
384
  </li>
385
  <li>
386
+ <a href="javascript:;" id="inline-remove"><span class="icon pfolder-remove"></span> <span class="text">Delete</span> </a>
387
+ </li>
388
+ <li class="last">
389
+ <a href="javascript:;" id="expand-collapse-list" data-tooltip="Expand"><span class="icon pfolder-arrow-down"></span></a>
390
  </li>
391
  <li class="last">
392
+ <a href="javascript:;" ><span class="icon pfolder-arrow-sort"></span></a>
393
  </li>
394
  </ul>
395
  </div>
396
  </div>
397
+ <div class="shadow-box">
398
+ <div class="header-posts">
399
+ <a href="javascript:;" class="all-posts active-item">All Files <span class="total-count">215</span></a>
400
+ </div>
401
+ <div class="un-categorised-items ui-droppable">
402
+ <a href="javascript:;" class="un-categorized-posts">Unassigned Files <span class="total-count total-empty">191</span> </a>
403
+ </div>
404
+ <div class="separator"></div>
405
+ <ul class="folder-list">
406
+ <li><a href="javascript:;"><i class="wcp-icon pfolder-folder-close"></i> <span>Folder 1</span><span class="total-count">20</span><span class="clear"></span></a></li>
407
+ <li><a href="javascript:;"><i class="wcp-icon pfolder-folder-close"></i> <span>Folder 2</span><span class="total-count">13</span><span class="clear"></span></a></li>
408
+ <li><a href="javascript:;"><i class="wcp-icon pfolder-folder-close"></i> <span>Folder 3</span><span class="total-count">5</span><span class="clear"></span></a></li>
409
+ </ul>
410
+ <div class="separator"></div>
411
+ <div class="media-buttons">
412
+ <select class="media-select">
413
+ <option>All Files</option>
414
+ <option>Folder 1</option>
415
+ <option>Folder 2</option>
416
+ <option>Folder 3</option>
417
+ </select>
418
+ <button type="button" class="button organize-button">Bulk Organize</button>
419
+ <div style="clear: both;"></div>
420
+ </div>
421
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
422
  </div>
423
  </div>
424
  </div>
templates/admin/upgrade-to-pro.php CHANGED
@@ -1,5 +1,4 @@
1
- <?php
2
- if ( ! defined( 'ABSPATH' ) ) exit;
3
  $pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=";
4
  ?>
5
  <link href="<?php echo esc_url(WCP_FOLDER_URL."assets/css/select2.min.css?ver=".WCP_FOLDER_VERSION) ?>" type="text/css" rel="stylesheet" />
@@ -8,153 +7,129 @@ $pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opt
8
  <div class="key-table">
9
  <div class="modal-upgrade upgrade-block" id="folder-modal">
10
  <div class="easy-modal-inner">
11
- <div class="modal__wrap">
12
- <p class="udner-title"> <strong class="text-primary"><?php esc_html_e('Unlock All Features', WCP_FOLDER); ?></strong> </p>
13
- <div id="rpt_pricr" class="rpt_plans rpt_3_plans rpt_style_basic">
14
- <div class="">
15
- <div class="rpt_plan rpt_plan_0 ">
16
- <div style="text-align:left;" class="rpt_title rpt_title_0">Basic</div>
17
- <div class="rpt_head rpt_head_0">
18
- <div class="rpt_description rpt_description_0">
19
- <?php esc_html_e('For small website owners', WCP_FOLDER); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  </div>
21
- <div class="rpt_price rpt_price_0">$25</div>
22
- <div class="rpt_description rpt_description_0 rpt_desc">
23
- <?php esc_html_e('Per year. Renewals for 25% off', WCP_FOLDER); ?>
24
- </div>
25
- <div style="clear:both;"></div>
26
  </div>
27
- <div class="rpt_features rpt_features_0">
28
- <div class="rpt_feature rpt_feature_0-0"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b><?php esc_html_e('Use Folders on 1 domain', WCP_FOLDER); ?></span><?php esc_html_e('1 website', WCP_FOLDER); ?> <span class="rpt_tooltip_plus"> +</span></a> </div>
29
- <div class="rpt_feature rpt_feature_1-1">
30
- <?php esc_html_e('Organize Pages, Posts and Media files', WCP_FOLDER); ?>
31
- </div>
32
- <div class="rpt_feature rpt_feature_0-2"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can add unlimited pages, posts and media files to your folders</span>Unlimited files<span class="rpt_tooltip_plus"> +</span></a></div>
33
- <div class="rpt_feature rpt_feature_0-3"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can create additional 2 tires of sub-folders</span>Sub-folders<span class="rpt_tooltip_plus"> +</span></a></div>
34
- <div class="rpt_feature rpt_feature_0-4"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can create unlimited folders and sub-folders. On the Free plan it is limited to 10 folders in total</span>Unlimited folders<span class="rpt_tooltip_plus"> +</span></a></div>
35
- <div class="rpt_feature rpt_feature_0-4"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can use this feature to download all the content of any media library folder as a ZIP file.</span>Download folders as ZIP<span class="rpt_tooltip_plus"> +</span></a></div>
36
- <div class="rpt_feature rpt_feature_0-4"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Pin selected folders to the upper part of the folders navigation area for easy access.</span>Sticky Folders<span class="rpt_tooltip_plus"> +</span></a></div>
37
- <div class="rpt_feature rpt_feature_0-5">
38
- <select data-key="0" class="multiple-options">
39
- <option data-header="Renewals for 25% off" data-price="25" value="<?php echo esc_url($pro_url."1") ?>">
40
- <?php esc_html_e("Updates & support for 1 year") ?>
41
- </option>
42
- <option data-header="For 2 years" data-price="39" value="<?php echo esc_url($pro_url."13") ?>">
43
- <?php esc_html_e("Updates & support for 2 years") ?>
44
- </option>
45
- <option data-header="For lifetime" data-price="79" value="<?php echo esc_url($pro_url."5") ?>">
46
- <?php esc_html_e("Updates & support for lifetime") ?>
47
- </option>
48
- </select>
 
 
 
 
 
 
 
 
 
49
  </div>
50
  </div>
51
- <div style="clear:both;"></div>
52
- <a target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=687&amp;edd_options[price_id]=1" class="rpt_foot rpt_foot_0">
53
- <?php esc_html_e('Buy now', WCP_FOLDER); ?>
54
- </a>
55
- </div>
56
- <div class="rpt_plan rpt_plan_1 rpt_recommended_plan ">
57
- <div style="text-align:left;" class="rpt_title rpt_title_1">Plus<img class="rpt_recommended" src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/rpt_recommended.png") ?>" style="top: 27px;"></div>
58
- <div class="rpt_head rpt_head_1">
59
- <div class="rpt_description rpt_description_1">
60
- <?php esc_html_e('For businesses with multiple websites', WCP_FOLDER); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  </div>
62
- <div class="rpt_price rpt_price_1">$59</div>
63
- <div class="rpt_description rpt_description_0 rpt_desc">
64
- <?php esc_html_e('Per year. Renewals for 25% off', WCP_FOLDER); ?>
65
- </div>
66
- <div style="clear:both;"></div>
67
  </div>
68
- <div class="rpt_features rpt_features_1">
69
- <div class="rpt_feature rpt_feature_1-0"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b><?php esc_html_e('Use Folders on 5 domains', WCP_FOLDER); ?></span><?php esc_html_e('5 website', WCP_FOLDER); ?><span class="rpt_tooltip_plus"> +</span></a> </div>
70
- <div class="rpt_feature rpt_feature_1-1">
71
- <?php esc_html_e('Organize Pages, Posts and Media files', WCP_FOLDER); ?>
72
- </div>
73
- <div class="rpt_feature rpt_feature_0-2"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can add unlimited pages, posts and media files to your folders</span>Unlimited files<span class="rpt_tooltip_plus"> +</span></a></div>
74
- <div class="rpt_feature rpt_feature_0-3"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can create additional 2 tires of sub-folders</span>Sub-folders<span class="rpt_tooltip_plus"> +</span></a></div>
75
- <div class="rpt_feature rpt_feature_0-4"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can create unlimited folders and sub-folders. On the Free plan it is limited to 10 folders in total</span>Unlimited folders<span class="rpt_tooltip_plus"> +</span></a></div>
76
- <div class="rpt_feature rpt_feature_0-4"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can use this feature to download all the content of any media library folder as a ZIP file.</span>Download folders as ZIP<span class="rpt_tooltip_plus"> +</span></a></div>
77
- <div class="rpt_feature rpt_feature_0-4"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Pin selected folders to the upper part of the folders navigation area for easy access.</span>Sticky Folders<span class="rpt_tooltip_plus"> +</span></a></div>
78
- <div class="rpt_feature rpt_feature_0-5">
79
- <select data-key="0" class="multiple-options">
80
- <option data-header="Renewals for 25% off" data-price="59" value="<?php echo esc_url($pro_url."2") ?>">
81
- <?php esc_html_e("Updates & support for 1 year") ?>
82
- </option>
83
- <option data-header="For 2 years" data-price="89" value="<?php echo esc_url($pro_url."14") ?>">
84
- <?php esc_html_e("Updates & support for 2 years") ?>
85
- </option>
86
- <option data-header="For lifetime" data-price="149" value="<?php echo esc_url($pro_url."7") ?>">
87
- <?php esc_html_e("Updates & support for lifetime") ?>
88
- </option>
89
- </select>
90
- </div>
91
- </div>
92
- <div style="clear:both;"></div>
93
- <a target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=687&amp;edd_options[price_id]=2" class="rpt_foot rpt_foot_1">
94
- <?php esc_html_e('Buy now', WCP_FOLDER); ?>
95
- </a>
96
- </div>
97
- <div class="rpt_plan rpt_plan_2 ">
98
- <div style="text-align:left;" class="rpt_title rpt_title_2">
99
- <?php esc_html_e('Agency', WCP_FOLDER); ?>
100
- </div>
101
- <div class="rpt_head rpt_head_2">
102
- <div class="rpt_description rpt_description_2">
103
- <?php esc_html_e('For agencies who manage clients', WCP_FOLDER); ?>
104
- </div>
105
- <div class="rpt_price rpt_price_2">$99</div>
106
- <div class="rpt_description rpt_description_0 rpt_desc">
107
- <?php esc_html_e('Per year. Renewals for 25% off', WCP_FOLDER); ?>
108
- </div>
109
- <div style="clear:both;"></div>
110
- </div>
111
- <div class="rpt_features rpt_features_2">
112
- <div class="rpt_feature rpt_feature_2-0" style="padding: 0px 16px 6px">
113
- <select class="multiple-web-options">
114
- <option value="50_websites">50 websites</option>
115
- <option value="500_websites">500 websites</option>
116
- <option value="1000_websites">1000 websites</option>
117
- </select>
118
- </div>
119
- <div class="rpt_feature rpt_feature_1-1">
120
- <?php esc_html_e('Organize Pages, Posts and Media files', WCP_FOLDER); ?>
121
- </div>
122
- <div class="rpt_feature rpt_feature_0-2"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can add unlimited pages, posts and media files to your folders</span>Unlimited files<span class="rpt_tooltip_plus"> +</span></a></div>
123
- <div class="rpt_feature rpt_feature_0-3"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can create additional 2 tires of sub-folders</span>Sub-folders<span class="rpt_tooltip_plus"> +</span></a></div>
124
- <div class="rpt_feature rpt_feature_0-4"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can create unlimited folders and sub-folders. On the Free plan it is limited to 10 folders in total</span>Unlimited folders<span class="rpt_tooltip_plus"> +</span></a></div>
125
- <div class="rpt_feature rpt_feature_0-4"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>You can use this feature to download all the content of any media library folder as a ZIP file.</span>Download folders as ZIP<span class="rpt_tooltip_plus"> +</span></a></div>
126
- <div class="rpt_feature rpt_feature_0-4"><a href="javascript:void(0)" class="rpt_tooltip"><span class="intool"><b></b>Pin selected folders to the upper part of the folders navigation area for easy access.</span>Sticky Folders<span class="rpt_tooltip_plus"> +</span></a></div>
127
- <div class="rpt_feature rpt_feature_0-5">
128
- <select data-key="0" class="multiple-options has-multiple-websites">
129
- <option data-option="1_year" data-header="Renewals for 25% off" data-price="99" value="<?php echo esc_url($pro_url."10") ?>">
130
- <?php esc_html_e("Updates & support for 1 year") ?>
131
- </option>
132
- <option data-option="2_year" data-header="For 2 years" data-price="149" value="<?php echo esc_url($pro_url."15") ?>">
133
- <?php esc_html_e("Updates & support for 2 years") ?>
134
- </option>
135
- <option data-option="lifetime" data-header="For lifetime" data-price="249" value="<?php echo esc_url($pro_url."12") ?>">
136
- <?php esc_html_e("Updates & support for lifetime") ?>
137
- </option>
138
- </select>
139
- </div>
140
- </div>
141
- <div style="clear:both;"></div>
142
- <a target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=687&amp;edd_options[price_id]=10" class="rpt_foot rpt_foot_2">
143
- <?php esc_html_e('Buy now', WCP_FOLDER); ?>
144
- </a>
145
  </div>
 
146
  </div>
147
- <div style="clear:both;"></div>
148
  </div>
149
- <div class="text-center">
150
- <form method="post" action="https://www.paypal.com/cgi-bin/webscr">
151
- <p class="money-guaranteed"><span class="dashicons dashicons-yes"></span>
152
- <?php esc_html_e("30 days money back guaranteed", WCP_FOLDER); ?>
153
- </p>
154
- <p class="money-guaranteed"><span class="dashicons dashicons-yes"></span>
155
- <?php esc_html_e("The plugin will always keep working even if you don't renew your license", WCP_FOLDER); ?>
156
- </p>
157
- </form>
158
  <div class="payments">
159
  <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/payment.png") ?>" alt="Payment" class="payment-img" />
160
  </div>
@@ -188,14 +163,13 @@ $pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opt
188
  minimumResultsForSearch: -1
189
  });
190
  }
191
- // priceOptions = jQuery.parseJSON(priceOptions);
192
  jQuery(document).on("change", ".multiple-options", function(){
193
  priceText = jQuery(this).find("option:selected").attr("data-header");
194
  thisValue = jQuery(this).val();
195
  thisPrice = jQuery(this).find("option:selected").attr("data-price");
196
  if(!jQuery(this).hasClass("has-multiple-websites")) {
197
- jQuery(this).closest(".rpt_plan").find("a.rpt_foot").attr("href", thisValue);
198
- jQuery(this).closest(".rpt_plan").find(".rpt_price").text("$" + thisPrice);
199
  } else {
200
  var webOption = jQuery(".multiple-web-options").val();
201
  var priceSettings = priceOptions[webOption];
@@ -206,13 +180,28 @@ $pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opt
206
  thisPrice = priceSettings.price;
207
  }
208
  }
209
- jQuery(this).closest(".rpt_plan").find("a.rpt_foot").attr("href", thisValue);
210
- jQuery(this).closest(".rpt_plan").find(".rpt_price").text("$" + thisPrice);
211
- jQuery(this).closest(".rpt_plan").find(".rpt_desc").text(priceText);
 
 
 
 
 
 
 
 
 
 
 
212
  });
213
 
214
  jQuery(document).on("change", ".multiple-web-options", function(){
215
  jQuery(".multiple-options.has-multiple-websites").trigger("change");
216
  });
 
 
 
 
217
  });
218
  </script>
1
+ <?php if ( ! defined( 'ABSPATH' ) ) exit;
 
2
  $pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=";
3
  ?>
4
  <link href="<?php echo esc_url(WCP_FOLDER_URL."assets/css/select2.min.css?ver=".WCP_FOLDER_VERSION) ?>" type="text/css" rel="stylesheet" />
7
  <div class="key-table">
8
  <div class="modal-upgrade upgrade-block" id="folder-modal">
9
  <div class="easy-modal-inner">
10
+ <div class="container">
11
+ <div class="pricing-table">
12
+ <div class="price-title">Unlock All Features</div>
13
+ <div class="price-tables">
14
+ <div class="row">
15
+ <div class="col-md-4 col-sm-12">
16
+ <div class="price-table basic-feature">
17
+ <div class="price-table-top">
18
+ <div class="price-head">
19
+ <div class="plan-name">Basic</div>
20
+ <div class="plan-price">$25<span>/year</span></div>
21
+ </div>
22
+ <div class="price-websites">For small website owners</div>
23
+ <div class="price-offer">Renewals for <b>25% off</b></div>
24
+ </div>
25
+ <div class="price-table-middle">
26
+ <ul>
27
+ <li><a href="javascript:;" class="cus-tooltip">1 website <span class="has-tooltip">*</span><span class="tooltip__content">Use Folders on 1 domain</span></a></li>
28
+ <li><a href="javascript:;">Organize Pages, Posts and Media files</a></li>
29
+ <li><a href="javascript:;" class="cus-tooltip">Unlimited folders <span class="has-tooltip">*</span><span class="tooltip__content">You can create unlimited folders and sub-folders. On the Free plan it is limited to 10 folders in total</span></a></li>
30
+ <li><a href="javascript:;" class="cus-tooltip">Unlimited files <span class="has-tooltip">*</span><span class="tooltip__content">You can add unlimited pages, posts and media files to your folders</span></a></li>
31
+ <li><a href="javascript:;" class="cus-tooltip">Sub-folders <span class="has-tooltip">*</span><span class="tooltip__content">You can create additional 2 tires of sub-folders</span></a></li>
32
+ <li><a href="javascript:;" class="cus-tooltip">Download folders as ZIP <span class="has-tooltip">*</span><span class="tooltip__content">You can use this feature to download all the content of any media library folder as a ZIP file.</span></a></li>
33
+ <li><a href="javascript:;" class="cus-tooltip">Sticky Folders <span class="has-tooltip">*</span><span class="tooltip__content">Pin selected folders to the upper part of the folders navigation area for easy access.</span></a></li>
34
+ </ul>
35
+ </div>
36
+ <div class="price-table-bottom">
37
+ <div class="custom-dd">
38
+ <select class="multiple-options">
39
+ <option data-option="1_year" data-header="Renewals for 25% off" data-price="25" value="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=687&amp;edd_options%5Bprice_id%5D=1">Updates &amp; support for 1 year</option>
40
+ <option data-option="2_year" data-header="For 2 years" data-price="39" value="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=687&amp;edd_options%5Bprice_id%5D=13">Updates &amp; support for 2 years</option>
41
+ <option data-option="lifetime" data-header="For lifetime" data-price="79" value="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=687&amp;edd_options%5Bprice_id%5D=5">Updates &amp; support for lifetime</option>
42
+ </select>
43
+ </div>
44
+ <a class="cart-link" target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=687&amp;edd_options%5Bprice_id%5D=1">Buy now</a>
45
+ </div>
46
  </div>
 
 
 
 
 
47
  </div>
48
+ <div class="col-md-4 col-sm-12">
49
+ <div class="price-table plus-feature">
50
+ <div class="price-table-top">
51
+ <div class="price-head">
52
+ <div class="plan-name">Plus</div>
53
+ <div class="plan-price">$59<span>/year</span></div>
54
+ </div>
55
+ <div class="price-websites">For businesses with multiple websites</div>
56
+ <div class="price-offer">Renewals for <b>25% off</b></div>
57
+ </div>
58
+ <div class="price-table-middle">
59
+ <ul>
60
+ <li><a href="javascript:;" class="cus-tooltip">5 website <span class="has-tooltip">*</span><span class="tooltip__content">Use Folders on 5 domains</span></a></li>
61
+ <li><a href="javascript:;">Organize Pages, Posts and Media files</a></li>
62
+ <li><a href="javascript:;" class="cus-tooltip">Unlimited folders <span class="has-tooltip">*</span><span class="tooltip__content">You can create unlimited folders and sub-folders. On the Free plan it is limited to 10 folders in total</span></a></li>
63
+ <li><a href="javascript:;" class="cus-tooltip">Unlimited files <span class="has-tooltip">*</span><span class="tooltip__content">You can add unlimited pages, posts and media files to your folders</span></a></li>
64
+ <li><a href="javascript:;" class="cus-tooltip">Sub-folders <span class="has-tooltip">*</span><span class="tooltip__content">You can create additional 2 tires of sub-folders</span></a></li>
65
+ <li><a href="javascript:;" class="cus-tooltip">Download folders as ZIP <span class="has-tooltip">*</span><span class="tooltip__content">You can use this feature to download all the content of any media library folder as a ZIP file.</span></a></li>
66
+ <li><a href="javascript:;" class="cus-tooltip">Sticky Folders <span class="has-tooltip">*</span><span class="tooltip__content">Pin selected folders to the upper part of the folders navigation area for easy access.</span></a></li>
67
+ </ul>
68
+ </div>
69
+ <div class="price-table-bottom">
70
+ <div class="custom-dd">
71
+ <select class="multiple-options">
72
+ <option data-option="1_year" data-header="Renewals for 25% off" data-price="59" value="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=687&amp;edd_options%5Bprice_id%5D=2">Updates &amp; support for 1 year</option>
73
+ <option data-option="2_year" data-header="For 2 years" data-price="89" value="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=687&amp;edd_options%5Bprice_id%5D=14">Updates &amp; support for 2 years</option>
74
+ <option data-option="lifetime" data-header="For lifetime" data-price="149" value="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=687&amp;edd_options%5Bprice_id%5D=7">Updates &amp; support for lifetime</option>
75
+ </select>
76
+ </div>
77
+ <a class="cart-link" target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=687&amp;edd_options%5Bprice_id%5D=2">Buy now</a>
78
+ </div>
79
  </div>
80
  </div>
81
+ <div class="col-md-4 col-sm-12">
82
+ <div class="price-table agency-feature">
83
+ <div class="price-table-top">
84
+ <div class="price-head">
85
+ <div class="plan-name">Agency</div>
86
+ <div class="plan-price">$99<span>/year</span></div>
87
+ </div>
88
+ <div class="price-websites">For agencies who manage clients</div>
89
+ <div class="price-offer">Renewals for <b>25% off</b></div>
90
+ </div>
91
+ <div class="price-table-middle">
92
+ <ul>
93
+ <li>
94
+ <div class="website-package">
95
+ <select class="multiple-web-options">
96
+ <option value="50_websites">50 websites</option>
97
+ <option value="500_websites">500 websites</option>
98
+ <option value="1000_websites">1000 websites</option>
99
+ </select>
100
+ </div>
101
+ </li>
102
+ <li><a href="javascript:;">Organize Pages, Posts and Media files</a></li>
103
+ <li><a href="javascript:;" class="cus-tooltip">Unlimited folders <span class="has-tooltip">*</span><span class="tooltip__content">You can create unlimited folders and sub-folders. On the Free plan it is limited to 10 folders in total</span></a></li>
104
+ <li><a href="javascript:;" class="cus-tooltip">Unlimited files <span class="has-tooltip">*</span><span class="tooltip__content">You can add unlimited pages, posts and media files to your folders</span></a></li>
105
+ <li><a href="javascript:;" class="cus-tooltip">Sub-folders <span class="has-tooltip">*</span><span class="tooltip__content">You can create additional 2 tires of sub-folders</span></a></li>
106
+ <li><a href="javascript:;" class="cus-tooltip">Download folders as ZIP <span class="has-tooltip">*</span><span class="tooltip__content">You can use this feature to download all the content of any media library folder as a ZIP file.</span></a></li>
107
+ <li><a href="javascript:;" class="cus-tooltip">Sticky Folders <span class="has-tooltip">*</span><span class="tooltip__content">Pin selected folders to the upper part of the folders navigation area for easy access.</span></a></li>
108
+ </ul>
109
+ </div>
110
+ <div class="price-table-bottom">
111
+ <div class="custom-dd">
112
+ <select class="multiple-options has-multiple-websites">
113
+ <option data-option="1_year" data-header="Renewals for 25% off" data-price="99" value="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=687&amp;edd_options%5Bprice_id%5D=10">Updates &amp; support for 1 year</option>
114
+ <option data-option="2_year" data-header="For 2 years" data-price="149" value="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=687&amp;edd_options%5Bprice_id%5D=15">Updates &amp; support for 2 years</option>
115
+ <option data-option="lifetime" data-header="For lifetime" data-price="249" value="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=687&amp;edd_options%5Bprice_id%5D=12">Updates &amp; support for lifetime</option>
116
+ </select>
117
+ </div>
118
+ <a class="cart-link" target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=687&amp;edd_options%5Bprice_id%5D=10">Buy now</a>
119
+ </div>
120
  </div>
 
 
 
 
 
121
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
  </div>
123
+ <div class="clearfix"></div>
124
  </div>
 
125
  </div>
126
+ <div class="text-center price-after">
127
+ <p class="money-guaranteed"><span class="dashicons dashicons-yes"></span>
128
+ <?php esc_html_e("30 days money back guaranteed", WCP_FOLDER); ?>
129
+ </p>
130
+ <p class="money-guaranteed"><span class="dashicons dashicons-yes"></span>
131
+ <?php esc_html_e("The plugin will always keep working even if you don't renew your license", WCP_FOLDER); ?>
132
+ </p>
 
 
133
  <div class="payments">
134
  <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/payment.png") ?>" alt="Payment" class="payment-img" />
135
  </div>
163
  minimumResultsForSearch: -1
164
  });
165
  }
 
166
  jQuery(document).on("change", ".multiple-options", function(){
167
  priceText = jQuery(this).find("option:selected").attr("data-header");
168
  thisValue = jQuery(this).val();
169
  thisPrice = jQuery(this).find("option:selected").attr("data-price");
170
  if(!jQuery(this).hasClass("has-multiple-websites")) {
171
+ jQuery(this).closest(".price-table").find("a.cart-link").attr("href", thisValue);
172
+ jQuery(this).closest(".price-table").find(".plan-price").text("$" + thisPrice);
173
  } else {
174
  var webOption = jQuery(".multiple-web-options").val();
175
  var priceSettings = priceOptions[webOption];
180
  thisPrice = priceSettings.price;
181
  }
182
  }
183
+ thisOption = jQuery(this).find("option:selected").attr("data-option");
184
+ if(thisOption == "1_year") {
185
+ thisPrice = thisPrice+"<span>/year</span>";
186
+ priceText = "Renewals for <b>25% off</b>";
187
+ } else if(thisOption == "2_year") {
188
+ thisPrice = thisPrice+"<span>/2 years</span>";
189
+ priceText = "Renewals for <b>25% off</b>";
190
+ } else {
191
+ thisPrice = thisPrice+"<span>/lifetime</span>";
192
+ priceText = "For lifetime";
193
+ }
194
+ jQuery(this).closest(".price-table").find("a.cart-link").attr("href", thisValue);
195
+ jQuery(this).closest(".price-table").find(".plan-price").html("$" + thisPrice);
196
+ jQuery(this).closest(".price-table").find(".price-offer").html(priceText);
197
  });
198
 
199
  jQuery(document).on("change", ".multiple-web-options", function(){
200
  jQuery(".multiple-options.has-multiple-websites").trigger("change");
201
  });
202
+
203
+ if(jQuery(".multiple-options.has-multiple-websites").length) {
204
+ jQuery(".multiple-options.has-multiple-websites").trigger("change");
205
+ }
206
  });
207
  </script>