Asset CleanUp: Page Speed Booster - Version 1.2.9.6

Version Description

  • Bug Fix: After post/page update, a fatal error was showing on calling a method that doesn't exist
Download this release

Release Info

Developer gabelivan
Plugin Icon 128x128 Asset CleanUp: Page Speed Booster
Version 1.2.9.6
Comparing to
See all releases

Code changes from version 1.2.9.5 to 1.2.9.6

assets/style.min.css CHANGED
@@ -1 +1 @@
1
- #wpacu_meta_box_content .dashicons.dashicons-warning,.wpacu-tabs nav ul li span.license-status.inactive{color:#c00}#wpacu-pages-info-area{width:98%}#wpacu-logo-area{margin:15px 0;padding:0 10px}#wpacu-logo-area img{width:352px;height:79px}.wpacu-tabs{position:relative;overflow:hidden;margin:0 auto 20px;width:100%;font-weight:300;font-size:20px}.wpacu-tabs nav{text-align:center}.wpacu-tabs nav ul{position:relative;display:-ms-flexbox;display:-webkit-flex;display:-moz-flex;display:-ms-flex;display:flex;margin:0 auto;padding:0;max-width:1200px;list-style:none;-ms-box-orient:horizontal;-ms-box-pack:center;-webkit-flex-flow:row wrap;-moz-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-justify-content:center;-moz-justify-content:center;-ms-justify-content:center;justify-content:center}.wpacu-tabs nav ul li{position:relative;z-index:1;display:block;margin:0;text-align:center;-webkit-flex:1;-moz-flex:1;-ms-flex:1;flex:1}.wpacu-tabs nav ul li span.license-status{position:absolute;font-size:12px;left:0;right:50%;bottom:12px;-webkit-transform:translate(50%,50%);transform:translate(50%,50%)}.wpacu-tabs nav ul li span.license-status.active{color:green}.wpacu-tabs nav a{position:relative;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:2.5}.wpacu-tabs nav a span{vertical-align:middle;font-size:14px}.wpacu-tabs nav li.wpacu-tab-current a{color:#74777b}.wpacu-tabs nav a:focus{outline:0}.wpacu-tabs .dashicons{font-size:20px}.no-js .wpacu-content-wrap section{display:block;padding-bottom:2em;border-bottom:1px solid rgba(255,255,255,.6)}.no-flexbox nav ul{display:block}.no-flexbox nav ul li{min-width:15%;display:inline-block}@media screen and (max-width:58em){.wpacu-tabs nav a.icon span{display:none}.wpacu-tabs nav a:before{margin-right:0}}.wpacu-tabs-style-underline nav{background:#fff}.wpacu-tabs-style-underline nav a{color:#74777b;font-size:18px;text-transform:uppercase;text-decoration:none;padding:.25em 0 .5em;border-left:1px solid #e7ecea;-webkit-transition:color .2s;transition:color .2s}.wpacu-tabs-style-underline nav li:last-child a{border-right:1px solid #e7ecea}.wpacu-tabs-style-underline nav li a::after{position:absolute;bottom:0;left:0;width:100%;height:6px;background:#2CC185;content:'';-webkit-transition:-webkit-transform .3s;transition:transform .3s;-webkit-transform:translate3d(0,150%,0);transform:translate3d(0,150%,0)}.wpacu-tabs-style-underline nav li.wpacu-tab-current a::after{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.wpacu-tabs-style-underline nav a span{font-weight:700}.wpacu-tabs-style-topline{max-width:1200px;margin:20px auto 30px 0;width:100%;font-weight:300;text-decoration:none}.wpacu-tabs-style-topline nav li{border:1px solid rgba(40,44,42,.1)}.wpacu-tabs-style-topline nav li:not(:last-child){border-right:none}.wpacu-tabs-style-topline nav li.wpacu-tab-current{border-top-color:#0085ba;border-bottom:none}.wpacu-tabs-style-topline nav a{padding:20px 10px;background:rgba(40,44,42,.05);color:#74777b;line-height:1;-webkit-transition:color .2s;transition:color .2s;text-decoration:none}.wpacu-tabs-style-topline nav a:focus,.wpacu-tabs-style-topline nav a:hover{color:#0085ba}.wpacu-tabs-style-topline nav li.wpacu-tab-current a{background:0 0;box-shadow:inset 0 3px 0 #0085ba;color:#0085ba}.wpacu-tabs-style-topline nav li.wpacu-tab-current a span:not(.dashicons){font-weight:600}.wpacu-tabs-style-topline nav a span{text-transform:uppercase;font-weight:400}.wpacu-tab-nav-wrapper{border-bottom:none!important}.wpacu-tab-nav-wrapper .nav-tab.nav-tab-active{background:#fff;position:relative}.wpacu-tab-nav-wrapper .nav-tab.nav-tab-active:after{content:'';width:100%;bottom:-2px;left:0;position:absolute;border-bottom:2px solid #fff}.wpacu-script-attributes-area{margin:20px 0 0!important}.wpacu-script-attributes-area.wpacu-lite ul.wpacu-script-attributes-settings{padding:5px 7px!important}.wpacu-script-attributes-area.wpacu-lite ul.wpacu-script-attributes-settings.wpacu-first{margin:0 28px 0 0!important}.wpacu-script-attributes-area.wpacu-lite ul.wpacu-script-attributes-settings label{margin:0!important}.wpacu-script-attributes-area.wpacu-lite ul.wpacu-script-attributes-settings li{margin:0 16px 0 0!important}.wpacu-script-attributes-area.wpacu-lite ul.wpacu-script-attributes-settings li:first-child{margin:0 10px 0 0!important}.wpacu-script-attributes-area.wpacu-lite ul.wpacu-script-attributes-settings li:last-child{margin:0 2px 0 0!important}.wpacu-script-attributes-area .wpacu-script-attributes-settings{background:#fff!important;border:1px solid #eee!important;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;padding:5px 10px!important;list-style:none;display:inline-block;margin:0}.wpacu-script-attributes-area .wpacu-script-attributes-settings input[type=radio]{padding:0;margin:0 5px 0 0}.wpacu-script-attributes-area .wpacu-script-attributes-settings.wpacu-first{margin:0 34px 0 0!important}.wpacu-script-attributes-area .wpacu-script-attributes-settings li{float:left;margin:0 17px 0 0}.wpacu-script-attributes-area .wpacu-script-attributes-settings li:first-child{margin:0 10px 0 0!important}.wpacu-script-attributes-area .wpacu-script-attributes-settings li:last-child{margin:0}.wpacu-script-attributes-area .wpacu-script-attributes-settings:hover{background:#f2faf2}tr.wpacu_not_load td,tr.wpacu_not_load th{background:#FFE1E1!important}.dashicons-wpacu{width:17px;height:17px;margin:2px 0 0;font-size:16px;text-decoration:none}#wpacu_meta_box_content,.wpacu_widefat{width:99%}.wpacu_widefat .check-column.wpacu_check{padding:10px}body[class*=wpassetcleanup] #footer-left{border-left:2px solid green;padding-left:10px}#wpacu_meta_box_content h3{margin-left:0;padding-left:0}#wpacu_meta_box_content div.wpacu_note{padding:10px;background-color:#f5f5f5}#wpacu_meta_box_content .wpacu_verified{padding:10px;background-color:#f5f5f5;border-left:1px solid #ddd}#wpacu_meta_box_content .wpacu_verified span{color:#0073aa;font-weight:700}#wpacu_meta_box_content div.wpacu_warning{border:1px solid #c00}#wpacu_meta_box_content ul.wpacu_asset_options{margin:0;padding:0}#wpacu_meta_box_content ul.wpacu_asset_options li{list-style:none;display:inline-block}#wpacu_wrap_assets img,#wpacu_wrap_assets small,.wpacu_asset_row td label{display:inline-block!important}#wpacu_meta_box_content ul.wpacu_asset_options label{font-weight:400;margin-right:5px;margin-top:5px;margin-bottom:5px}.wpacu-updated-frontend{font-weight:400;background-color:#fff;border-left:4px solid #46b450;border-top:1px solid #46b450;border-right:1px solid #46b450;border-bottom:1px solid #46b450;padding:9px 14px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}#wpacu_wrap_assets,.wpacu_striped>tbody>:nth-child(even),ul.wpacu_striped>:nth-child(even){background-color:#fff!important}.wpacu-updated-frontend span.dashicons-yes{color:#46b450;font-size:26px}#wpacu_wrap_assets{color:#000!important;text-align:left!important;clear:both!important;width:90%!important;padding:20px!important;margin:30px 0 0 15px!important;border:1px solid #cdcdcd;z-index:10000!important;position:relative!important}#wpacu_wrap_assets div.wpacu_warning{border:1px solid #c00;padding:5px 10px}#wpacu_wrap_assets small{margin:0!important;letter-spacing:normal!important}#wpacu_wrap_assets input[type=checkbox]{margin-right:4px!important}#wpacu_wrap_assets p{line-height:22px!important;margin:10px 0!important;text-align:left!important;font-weight:400!important}.wpacu-assets-inline-code-collapsible-content>div>p,.wpacu_update_btn{line-height:normal!important}#wpacu_wrap_assets p:first-child,.wpacu_verified{margin:0 0 10px!important}#wpacu_wrap_assets h1{margin:0 0 20px!important;font-size:160%!important;text-align:left!important}#wpacu_wrap_assets h3{margin:20px 0;font-size:130%}.wpacu_asset_row td{padding:18px!important;position:relative;border-left:1px solid #cdcdcd;border-right:1px solid #cdcdcd;border-bottom:1px solid #cdcdcd}.wpacu_asset_row td.selected,.wpacu_asset_row td:hover{border:1px solid #cdcdcd;-moz-box-shadow:inset 0 0 12px #cdcdcd;-webkit-box-shadow:inset 0 0 12px #cdcdcd;box-shadow:inset 0 0 12px #cdcdcd}.wpacu_asset_row td:first-child{border-top:1px solid #cdcdcd}.wpacu_asset_row td p{padding:0!important;margin-bottom:10px!important;word-wrap:break-word!important;-ms-word-break:break-all;word-break:break-word}.wpacu_asset_row td label{margin:0!important;cursor:pointer!important;font-size:100%!important;font-weight:400!important}.wpacu_asset_row td label span:not(.dashicons){font-size:100%!important}.wpacu_asset_row td.wpacu_check{width:50px!important}.asset-table-extra-info td{padding:5px!important}body.wp-admin .wpacu_asset_row td.wpacu_check{width:25px!important}.wpacu_asset_row .dashicons-warning{color:red!important}label.wpacu_add_global{cursor:pointer!important}label.wpacu_global_checked{font-weight:700;color:#d54e21}label.wpacu_global_unload_exception{font-weight:700!important}label.wpacu_bulk_unload_active{color:#d54e21}tr.wpacu_global_rule_row.selected{background:#e7e7e7}.nav-tab-wrapper{border-bottom:1px solid #ccc;width:95%}ul.wpacu_asset_options{margin:0 10px 0 0;padding:0}ul.wpacu_asset_options li{margin:0 20px 0 0;list-style:none;display:inline-block}ul.wpacu_asset_options li.remove_rule label{font-weight:700}ul.wpacu_asset_options label{margin-right:20px;font-weight:400}ul.wpacu_asset_options label input{margin-right:4px}.wpacu_list_table,.wpacu_list_table div,.wpacu_list_table li,.wpacu_list_table p{font-weight:400}.wpacu_striped>tbody>:nth-child(odd),ul.wpacu_striped>:nth-child(odd){background-color:#f9f9f9!important}.wpacu_update_btn{-moz-box-shadow:inset 0 1px 0 0 #54a3f7!important;-webkit-box-shadow:inset 0 1px 0 0 #54a3f7!important;box-shadow:inset 0 1px 0 0 #54a3f7!important;background:-webkit-gradient(linear,left top,left bottom,color-stop(.05,#007dc1),color-stop(1,#0061a7))!important;background:-moz-linear-gradient(top,#007dc1 5%,#0061a7 100%)!important;background:-webkit-linear-gradient(top,#007dc1 5%,#0061a7 100%)!important;background:-o-linear-gradient(top,#007dc1 5%,#0061a7 100%)!important;background:-ms-linear-gradient(top,#007dc1 5%,#0061a7 100%)!important;background:linear-gradient(to bottom,#007dc1 5%,#0061a7 100%)!important;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#007dc1', endColorstr='#0061a7', GradientType=0)!important;background-color:#007dc1!important;-moz-border-radius:3px!important;-webkit-border-radius:3px!important;border-radius:3px!important;border:1px solid #124d77!important;display:inline-block!important;cursor:pointer!important;color:#fff!important;font-size:15px!important;padding:10px 24px!important;text-decoration:none!important;text-shadow:0 1px 0 #154682!important;height:auto!important}.wpacu-btns .btn:focus,.wpacu-btns .btn:hover,.wpacu-btns a{text-decoration:none}.wpacu_update_btn:hover{background:-webkit-gradient(linear,left top,left bottom,color-stop(.05,#0061a7),color-stop(1,#007dc1))!important;background:-moz-linear-gradient(top,#0061a7 5%,#007dc1 100%)!important;background:-webkit-linear-gradient(top,#0061a7 5%,#007dc1 100%)!important;background:-o-linear-gradient(top,#0061a7 5%,#007dc1 100%)!important;background:-ms-linear-gradient(top,#0061a7 5%,#007dc1 100%)!important;background:linear-gradient(to bottom,#0061a7 5%,#007dc1 100%)!important;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#0061a7', endColorstr='#007dc1', GradientType=0)!important;background-color:#0061a7!important}.wpacu_update_btn:active{position:relative!important;top:1px!important}.wpacu-btns .btn{display:inline-block;font-weight:400;line-height:1.25;text-align:center;white-space:nowrap;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:1px solid transparent;padding:.5rem 1rem;font-size:1rem;-webkit-border-radius:.25rem;-moz-border-radius:.25rem;border-radius:.25rem;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.wpacu-btns .btn.focus,.wpacu-btns .btn:focus{outline:0;-webkit-box-shadow:0 0 0 2px rgba(2,117,216,.25);box-shadow:0 0 0 2px rgba(2,117,216,.25)}.wpacu-btns .btn.disabled,.wpacu-btns .btn:disabled{cursor:not-allowed;opacity:.65}.wpacu-btns .btn.active,.wpacu-btns .btn:active{background-image:none}.wpacu-btns a.btn.disabled,.wpacu-btns fieldset[disabled] a.btn{pointer-events:none}.wpacu-btns .btn-primary{color:#fff;background-color:#0275d8;border-color:#0275d8}.wpacu-btns .btn-primary:hover{color:#fff;background-color:#025aa5;border-color:#01549b}.wpacu-btns .btn-primary.focus,.wpacu-btns .btn-primary:focus{-webkit-box-shadow:0 0 0 2px rgba(2,117,216,.5);box-shadow:0 0 0 2px rgba(2,117,216,.5)}.wpacu-btns .btn-primary.disabled,.wpacu-btns .btn-primary:disabled{background-color:#0275d8;border-color:#0275d8}.wpacu-btns .btn-primary.active,.wpacu-btns .btn-primary:active,.wpacu-btns .show>.btn-primary.dropdown-toggle{color:#fff;background-color:#025aa5;background-image:none;border-color:#01549b}.wpacu-btns .btn-secondary{color:#292b2c;background-color:#fff;border-color:#ccc}.wpacu-btns .btn-secondary:hover{color:#292b2c;background-color:#e6e6e6;border-color:#adadad}.wpacu-btns .btn-secondary.focus,.wpacu-btns .btn-secondary:focus{-webkit-box-shadow:0 0 0 2px rgba(204,204,204,.5);box-shadow:0 0 0 2px rgba(204,204,204,.5)}.wpacu-btns .btn-secondary.disabled,.wpacu-btns .btn-secondary:disabled{background-color:#fff;border-color:#ccc}.wpacu-btns .btn-secondary.active,.wpacu-btns .btn-secondary:active,.wpacu-btns .show>.btn-secondary.dropdown-toggle{color:#292b2c;background-color:#e6e6e6;background-image:none;border-color:#adadad}.wpacu-btns .btn-info{color:#fff;background-color:#5bc0de;border-color:#5bc0de}.wpacu-btns .btn-info:hover{color:#fff;background-color:#31b0d5;border-color:#2aabd2}.wpacu-btns .btn-info.focus,.wpacu-btns .btn-info:focus{-webkit-box-shadow:0 0 0 2px rgba(91,192,222,.5);box-shadow:0 0 0 2px rgba(91,192,222,.5)}.wpacu-btns .btn-info.disabled,.wpacu-btns .btn-info:disabled{background-color:#5bc0de;border-color:#5bc0de}.wpacu-btns .btn-info.active,.wpacu-btns .btn-info:active,.wpacu-btns .show>.btn-info.dropdown-toggle{color:#fff;background-color:#31b0d5;background-image:none;border-color:#2aabd2}.wpacu-btns .btn-success{color:#fff;background-color:#5cb85c;border-color:#5cb85c}.wpacu-btns .btn-success:hover{color:#fff;background-color:#449d44;border-color:#419641}.wpacu-btns .btn-success.focus,.wpacu-btns .btn-success:focus{-webkit-box-shadow:0 0 0 2px rgba(92,184,92,.5);box-shadow:0 0 0 2px rgba(92,184,92,.5)}.wpacu-btns .btn-success.disabled,.wpacu-btns .btn-success:disabled{background-color:#5cb85c;border-color:#5cb85c}.wpacu-btns .btn-success.active,.wpacu-btns .btn-success:active,.wpacu-btns .show>.btn-success.dropdown-toggle{color:#fff;background-color:#449d44;background-image:none;border-color:#419641}.wpacu-btns .btn-warning{color:#fff;background-color:#f0ad4e;border-color:#f0ad4e}.wpacu-btns .btn-warning:hover{color:#fff;background-color:#ec971f;border-color:#eb9316}.wpacu-btns .btn-warning.focus,.wpacu-btns .btn-warning:focus{-webkit-box-shadow:0 0 0 2px rgba(240,173,78,.5);box-shadow:0 0 0 2px rgba(240,173,78,.5)}.wpacu-btns .btn-warning.disabled,.wpacu-btns .btn-warning:disabled{background-color:#f0ad4e;border-color:#f0ad4e}.wpacu-btns .btn-warning.active,.wpacu-btns .btn-warning:active,.wpacu-btns .show>.btn-warning.dropdown-toggle{color:#fff;background-color:#ec971f;background-image:none;border-color:#eb9316}.wpacu-btns .btn-danger{color:#fff;background-color:#d9534f;border-color:#d9534f}.wpacu-btns .btn-danger:hover{color:#fff;background-color:#c9302c;border-color:#c12e2a}.wpacu-btns .btn-danger.focus,.wpacu-btns .btn-danger:focus{-webkit-box-shadow:0 0 0 2px rgba(217,83,79,.5);box-shadow:0 0 0 2px rgba(217,83,79,.5)}.wpacu-btns .btn-danger.disabled,.wpacu-btns .btn-danger:disabled{background-color:#d9534f;border-color:#d9534f}.wpacu-btns .btn-danger.active,.wpacu-btns .btn-danger:active,.wpacu-btns .show>.btn-danger.dropdown-toggle{color:#fff;background-color:#c9302c;background-image:none;border-color:#c12e2a}.wpacu-btns .btn-outline-primary{color:#0275d8;background-image:none;background-color:transparent;border-color:#0275d8}.wpacu-btns .btn-outline-primary:hover{color:#fff;background-color:#0275d8;border-color:#0275d8}.wpacu-btns .btn-outline-primary.focus,.wpacu-btns .btn-outline-primary:focus{-webkit-box-shadow:0 0 0 2px rgba(2,117,216,.5);box-shadow:0 0 0 2px rgba(2,117,216,.5)}.wpacu-btns .btn-outline-primary.disabled,.wpacu-btns .btn-outline-primary:disabled{color:#0275d8;background-color:transparent}.wpacu-btns .btn-outline-primary.active,.wpacu-btns .btn-outline-primary:active,.wpacu-btns .show>.btn-outline-primary.dropdown-toggle{color:#fff;background-color:#0275d8;border-color:#0275d8}.wpacu-btns .btn-outline-secondary{color:#ccc;background-image:none;background-color:transparent;border-color:#ccc}.wpacu-btns .btn-outline-secondary:hover{color:#fff;background-color:#ccc;border-color:#ccc}.wpacu-btns .btn-outline-secondary.focus,.wpacu-btns .btn-outline-secondary:focus{-webkit-box-shadow:0 0 0 2px rgba(204,204,204,.5);box-shadow:0 0 0 2px rgba(204,204,204,.5)}.wpacu-btns .btn-outline-secondary.disabled,.wpacu-btns .btn-outline-secondary:disabled{color:#ccc;background-color:transparent}.wpacu-btns .btn-outline-secondary.active,.wpacu-btns .btn-outline-secondary:active,.wpacu-btns .show>.btn-outline-secondary.dropdown-toggle{color:#fff;background-color:#ccc;border-color:#ccc}.wpacu-btns .btn-outline-info{color:#5bc0de;background-image:none;background-color:transparent;border-color:#5bc0de}.wpacu-btns .btn-outline-info:hover{color:#fff;background-color:#5bc0de;border-color:#5bc0de}.wpacu-btns .btn-outline-info.focus,.wpacu-btns .btn-outline-info:focus{-webkit-box-shadow:0 0 0 2px rgba(91,192,222,.5);box-shadow:0 0 0 2px rgba(91,192,222,.5)}.wpacu-btns .btn-outline-info.disabled,.wpacu-btns .btn-outline-info:disabled{color:#5bc0de;background-color:transparent}.wpacu-btns .btn-outline-info.active,.wpacu-btns .btn-outline-info:active,.wpacu-btns .show>.btn-outline-info.dropdown-toggle{color:#fff;background-color:#5bc0de;border-color:#5bc0de}.wpacu-btns .btn-outline-success{color:#5cb85c;background-image:none;background-color:transparent;border-color:#5cb85c}.wpacu-btns .btn-outline-success:hover{color:#fff;background-color:#5cb85c;border-color:#5cb85c}.wpacu-btns .btn-outline-success.focus,.wpacu-btns .btn-outline-success:focus{-webkit-box-shadow:0 0 0 2px rgba(92,184,92,.5);box-shadow:0 0 0 2px rgba(92,184,92,.5)}.wpacu-btns .btn-outline-success.disabled,.wpacu-btns .btn-outline-success:disabled{color:#5cb85c;background-color:transparent}.wpacu-btns .btn-outline-success.active,.wpacu-btns .btn-outline-success:active,.wpacu-btns .show>.btn-outline-success.dropdown-toggle{color:#fff;background-color:#5cb85c;border-color:#5cb85c}.wpacu-btns .btn-outline-warning{color:#f0ad4e;background-image:none;background-color:transparent;border-color:#f0ad4e}.wpacu-btns .btn-outline-warning:hover{color:#fff;background-color:#f0ad4e;border-color:#f0ad4e}.wpacu-btns .btn-outline-warning.focus,.wpacu-btns .btn-outline-warning:focus{-webkit-box-shadow:0 0 0 2px rgba(240,173,78,.5);box-shadow:0 0 0 2px rgba(240,173,78,.5)}.wpacu-btns .btn-outline-warning.disabled,.wpacu-btns .btn-outline-warning:disabled{color:#f0ad4e;background-color:transparent}.wpacu-btns .btn-outline-warning.active,.wpacu-btns .btn-outline-warning:active,.wpacu-btns .show>.btn-outline-warning.dropdown-toggle{color:#fff;background-color:#f0ad4e;border-color:#f0ad4e}.wpacu-btns .btn-outline-danger{color:#d9534f;background-image:none;background-color:transparent;border-color:#d9534f}.wpacu-btns .btn-outline-danger:hover{color:#fff;background-color:#d9534f;border-color:#d9534f}.wpacu-btns .btn-outline-danger.focus,.wpacu-btns .btn-outline-danger:focus{-webkit-box-shadow:0 0 0 2px rgba(217,83,79,.5);box-shadow:0 0 0 2px rgba(217,83,79,.5)}.wpacu-btns .btn-outline-danger.disabled,.wpacu-btns .btn-outline-danger:disabled{color:#d9534f;background-color:transparent}.wpacu-btns .btn-outline-danger.active,.wpacu-btns .btn-outline-danger:active,.wpacu-btns .show>.btn-outline-danger.dropdown-toggle{color:#fff;background-color:#d9534f;border-color:#d9534f}.wpacu-btns .btn-link{font-weight:400;color:#0275d8;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.wpacu-btns .btn-link,.wpacu-btns .btn-link.active,.wpacu-btns .btn-link:active,.wpacu-btns .btn-link:disabled{background-color:transparent}.wpacu-btns .btn-link,.wpacu-btns .btn-link:active,.wpacu-btns .btn-link:focus,.wpacu-btns .btn-link:hover{border-color:transparent}.wpacu-btns .btn-link:focus,.wpacu-btns .btn-link:hover{color:#014c8c;text-decoration:underline;background-color:transparent}.wpacu-btns .btn-link:disabled{color:#636c72}.wpacu-btns .btn-link:disabled:focus,.wpacu-btns .btn-link:disabled:hover{text-decoration:none}.wpacu-btns .btn-group-lg>.btn,.wpacu-btns .btn-lg{padding:.75rem 1.5rem;font-size:1.25rem;-webkit-border-radius:.3rem;-moz-border-radius:.3rem;border-radius:.3rem}.wpacu-btns .btn-group-sm>.btn,.wpacu-btns .btn-sm{padding:.25rem .5rem;font-size:.875rem;-webkit-border-radius:.2rem;-moz-border-radius:.2rem;border-radius:.2rem}.wpacu-btns .btn-block{display:block;width:100%}.wpacu-btns .btn-block+.btn-block{margin-top:.5rem}.wpacu-btns input[type=submit].btn-block,.wpacu-btns input[type=reset].btn-block,.wpacu-btns input[type=button].btn-block{width:100%}.wpacu-btns .fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.go-pro-button{background-color:#4CAF50;border:2px solid #4CAF50;color:#fff;padding:12px 18px;text-align:center;text-decoration:none;display:inline-block;font-size:16px;margin:4px 2px;cursor:pointer;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;-webkit-transition-duration:.4s;transition-duration:.4s}.go-pro-button:hover{background-color:#fff;color:#000;border:2px solid #4CAF50;text-decoration:none}body.wp-admin .wpacu_asset_row .go-pro-link-no-style .wpacu-tooltip{padding:8px 2px}body.wp-admin .go-pro-link-no-style .wpacu-tooltip{font-weight:400;font-size:12px;line-height:16px;padding:8px 11px}.go-pro-link-no-style{position:relative;display:inline-block;color:inherit;text-decoration:none}.go-pro-link-no-style:not(.nav-tab){font-style:italic}.go-pro-link-no-style.no-transition .wpacu-tooltip{-webkit-transition:0s all ease;transition:0s all ease;-webkit-transition-delay:0s;transition-delay:0s}.go-pro-link-no-style .wpacu-tooltip{font-size:14px;line-height:18px;position:absolute;z-index:1;visibility:hidden;width:130px;background-color:#27ae60;color:#fff;text-align:center;padding:8px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;bottom:100%;bottom:calc(100% + 15px);left:50%;margin-left:-65px;-webkit-transition:.2s all ease;transition:.2s all ease;-webkit-transition-delay:0s;transition-delay:0s}.go-pro-link-no-style .wpacu-tooltip:after{content:"";position:absolute;border-width:10px;border-style:solid;top:100%;left:50%;left:calc(50% - 10px);border-color:#27ae60 transparent transparent}.go-pro-link-no-style .wpacu-tooltip.wpacu-larger{width:240px}.go-pro-link-no-style:hover .wpacu-tooltip{visibility:visible}.wordpress-core-file{position:relative;display:inline-block;font-style:normal;color:inherit;text-decoration:none}.wordpress-core-file .wpacu-tooltip{font-size:14px;line-height:18px;position:absolute;z-index:1;visibility:hidden;width:160px;background-color:#c00;color:#fff;text-align:center;padding:6px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;bottom:100%;bottom:calc(100% + 15px);left:50%;margin-left:-86px;-webkit-transition:.5s all ease;transition:.5s all ease;-webkit-transition-delay:0s;transition-delay:0s}.wordpress-core-file .wpacu-tooltip:after{content:"";position:absolute;border-width:10px;border-style:solid;top:100%;left:50%;left:calc(50% - 10px);border-color:#c00 transparent transparent}.wordpress-core-file:hover .wpacu-tooltip{visibility:visible}.ajax-direct-call-error-area{background:#fff;padding:10px;border:1px solid #c00;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px}.ajax-direct-call-error-area td{padding:6px}.ajax-direct-call-error-area .note{margin-top:0;padding-top:0}.ajax-direct-call-error-area .error-code{color:#c00;font-weight:700}.ajax-wp-remote-post-call-error-area{background:#fff;padding:20px}.ajax-wp-remote-post-call-error-area .table-data{background:0 0;border:1px solid #c66;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.ajax-wp-remote-post-call-error-area .table-data td{padding:10px}.wrap-upgrade-info{background:#fff;padding:0 15px;border:1px solid #cdcdcd;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.wpacu-notice{margin:20px 20px 0 0!important}.wpacu-notice p{font-weight:600!important;font-style:italic}.wpacu-notice .dashicons{font-weight:inherit!important;color:#46b450!important;margin-right:4px;vertical-align:text-bottom;font-size:27px}.wpacu-notice-info{padding:12px 12px 12px 16px;background:#fff;border-left:4px solid #0085ba}.wpacu-notice-info p{margin-top:8px}.wpacu-notice-info p:first-child{margin-top:0}.wpacu-notice-info p:last-child{margin-bottom:0}.wpacu-warning{font-size:15px;padding:10px;background:#fffcec;border:1px solid #fdd5c9;margin:0 0 5px;width:100%}.pro-page-unlock-notice{-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;padding:10px;background:#f2faf2;border:1px solid #c0e8c0;width:auto;display:block}.wpacu-license-area .notice,.wpacu-settings-area .notice{margin-left:0;padding:10px!important;width:97%;box-sizing:border-box;font-weight:600;font-style:italic}.wpacu-license-area .notice .dashicons,.wpacu-settings-area .notice .dashicons{color:green}#wpacu-dom-get-type-selections{float:none;clear:both;width:auto;display:inline-block;margin-bottom:0;margin-top:0}#wpacu-dom-get-type-selections li{margin-right:30px;float:left;margin-bottom:0}#wpacu-dom-get-type-selections li:first-child{margin-right:15px}#wpacu-dom-get-type-selections li:last-child{margin-right:0}#wpacu-dom-get-type-infos{margin-bottom:0}#wpacu-dom-get-type-infos li{margin-bottom:0;line-height:20px}.wpacu-wrap.wpacu-switch-standard .asset-cleanup-pro_page_wpassetcleanup_settings .wpacu_switch,.wpacu-wrap.wpacu-switch-standard .asset-cleanup_page_wpassetcleanup_settings .wpacu_switch{width:auto;height:auto}.wpacu-wrap.wpacu-switch-standard .asset-cleanup-pro_page_wpassetcleanup_settings .wpacu_switch input,.wpacu-wrap.wpacu-switch-standard .asset-cleanup_page_wpassetcleanup_settings .wpacu_switch input{display:block}.wpacu-wrap.wpacu-switch-standard .asset-cleanup-pro_page_wpassetcleanup_settings .wpacu_switch input[type=checkbox],.wpacu-wrap.wpacu-switch-standard .asset-cleanup_page_wpassetcleanup_settings .wpacu_switch input[type=checkbox]{margin:0 0 3px}.wpacu-wrap.wpacu-switch-standard .asset-cleanup-pro_page_wpassetcleanup_settings .wpacu_switch .wpacu_slider,.wpacu-wrap.wpacu-switch-standard .asset-cleanup_page_wpassetcleanup_settings .wpacu_switch .wpacu_slider{display:none}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch{position:relative;display:inline-block;width:52px;height:29px}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch input{display:none}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch:not(.wpacu_switch_standard) .wpacu_slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.2s;transition:.2s}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch:not(.wpacu_switch_standard) .wpacu_slider:before{position:absolute;content:'';height:22px;width:22px;left:4px;bottom:4px;background-color:#fff;-webkit-transition:.2s;transition:.2s}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch input:checked+.wpacu_slider{background-color:#52af00}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch input:focus+.wpacu_slider{box-shadow:0 0 1px #52af00}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch input:checked+.wpacu_slider:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch .wpacu_slider.wpacu_round{border-radius:29px}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch .wpacu_slider.wpacu_round:before{border-radius:50%}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch.wpacu_locked_for_pro{opacity:.3}.asset-cleanup-pro_page_wpassetcleanup_settings .setting_title p.wpacu_subtitle,.asset-cleanup_page_wpassetcleanup_settings .setting_title p.wpacu_subtitle{margin-top:2px;line-height:1.2}.asset-cleanup-pro_page_wpassetcleanup_settings .setting_title p.wpacu_subtitle em,.asset-cleanup_page_wpassetcleanup_settings .setting_title p.wpacu_subtitle em{font-weight:200}.asset-cleanup-pro_page_wpassetcleanup_settings .setting_title p.wpacu_read_more,.asset-cleanup_page_wpassetcleanup_settings .setting_title p.wpacu_read_more{margin-top:-10px;font-style:italic;font-size:12px}.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_inline_code_status_choices,.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices,.asset-cleanup-pro_page_wpassetcleanup_settings .input_style_choices,.asset-cleanup_page_wpassetcleanup_settings .assets_list_inline_code_status_choices,.asset-cleanup_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices,.asset-cleanup_page_wpassetcleanup_settings .input_style_choices{list-style:none;margin:0}.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_inline_code_status_choices li,.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices li,.asset-cleanup-pro_page_wpassetcleanup_settings .input_style_choices li,.asset-cleanup_page_wpassetcleanup_settings .assets_list_inline_code_status_choices li,.asset-cleanup_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices li,.asset-cleanup_page_wpassetcleanup_settings .input_style_choices li{float:left;margin-right:30px}.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_inline_code_status_choices li:last-child,.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices li:last-child,.asset-cleanup-pro_page_wpassetcleanup_settings .input_style_choices li:last-child,.asset-cleanup_page_wpassetcleanup_settings .assets_list_inline_code_status_choices li:last-child,.asset-cleanup_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices li:last-child,.asset-cleanup_page_wpassetcleanup_settings .input_style_choices li:last-child{margin-right:0}.wpacu-form-table th{vertical-align:top;text-align:left;padding:5px 20px 20px 0;width:200px;line-height:1.3;font-weight:600}.wpacu-form-table th label{color:#23282d;font-weight:600;font-size:14px;text-shadow:none;vertical-align:middle;cursor:pointer}.wpacu-form-table td{padding-bottom:25px}.wpacu-form-table td:last-child p:last-child{margin:0}.wrap_bulk_unload_options{width:auto;display:inline-flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.wrap_bulk_unload_options .wpacu_asset_options_wrap{flex-grow:1;margin:5px 10px 14px 0!important;padding:8px 10px 2px!important}.wrap_bulk_unload_options .wpacu_asset_options_wrap .wpacu_slider_text{position:relative!important;vertical-align:top;left:inherit!important;top:inherit!important}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch{position:relative;display:inline-block;width:52px;height:29px;margin-right:5px!important}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch input{display:none}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch .wpacu_slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.2s;transition:.2s}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch .wpacu_slider:before{position:absolute;content:'';height:22px;width:22px;left:4px;bottom:4px;background-color:#fff;-webkit-transition:.2s;transition:.2s}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch input:checked+.wpacu_slider{background-color:#C00}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch input:focus+.wpacu_slider{box-shadow:0 0 1px #C00}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch input:checked+.wpacu_slider:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch .wpacu_slider.wpacu_round{border-radius:29px}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch .wpacu_slider.wpacu_round:before{border-radius:50%}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_slider_text{position:absolute;left:62px;top:3px}.wpacu_asset_row td{width:100%}.wpacu_asset_row td p:last-child{margin-bottom:0!important}.wpacu_asset_row td .wpacu_asset_options_wrap{padding:8px 10px;margin:15px 0;background:#fff;border:1px solid #eee;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.wpacu_asset_row td .wpacu_asset_options_wrap p:first-child{margin-top:0;margin-bottom:8px!important}.wpacu_asset_row p.wpacu_handle{margin-top:0}.wpacu_asset_row li.wpacu_unload_this_page{display:block!important;position:relative}.wpacu-clearfix:after,.wpacu-clearfix:before{content:'';display:table}.wpacu-contract-expand-area{width:100%;margin:20px 0 0}.wpacu-contract-expand-area .col-left{float:left}.wpacu-contract-expand-area .col-left h4{margin-bottom:0}.wpacu-contract-expand-area .col-right{float:right}.wpacu-clearfix:after{clear:both}.wpacu-wp-button{color:#555;border-color:#ccc;background:#f7f7f7;box-shadow:0 1px 0 #ccc;vertical-align:top}body.wp-admin .wpacu-wp-button{font-size:13px;line-height:26px;height:28px}.wpacu-wp-button.wpacu-wp-button-secondary{display:inline-block;text-decoration:none;height:auto;margin:0 5px 0 0;padding:0 10px 1px;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;border-radius:3px;white-space:nowrap;box-sizing:border-box}.wpacu-wp-button:hover{background:#fafafa;border-color:#999;color:#23282d}.distinguish-asset-list{list-style:none;margin-left:0;margin-bottom:5px;display:inline-block}.distinguish-asset-list li{float:left;margin-right:20px}.distinguish-asset-list li:last-child{margin-right:0}.wpacu-assets-collapsible-wrap{border:1px solid #cdcdcd}.wpacu-assets-collapsible-wrap.wpacu-by-location{margin-bottom:15px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content>table:last-child,.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-themes .wpacu-assets-collapsible-content>table:last-child{margin-bottom:20px}.wpacu-assets-collapsible-wrap.wpacu-wrap-all,.wpacu-assets-collapsible-wrap.wpacu-wrap-styles{margin-top:20px}.wpacu-assets-collapsible-wrap.wpacu-wrap-scripts{margin-top:10px}.wpacu-assets-collapsible-wrap.wpacu-by-location>a.wpacu-assets-collapsible{padding:15px 15px 15px 43px}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu_list_table{border-spacing:inherit;width:100%;box-shadow:3px 3px 2px #ddd;border-bottom-right-radius:5px;border-top-right-radius:5px}.wpacu-assets-collapsible-wrap.wpacu-by-location span.wpacu-child-location-name{font-weight:600}.wpacu-assets-collapsible-wrap.wpacu-by-location span.wpacu-child-location-version{font-weight:200}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-themes .wpacu-assets-collapsible-content .wpacu-location-child-area strong{position:relative;padding:9px 10px 10px 15px;z-index:1}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content .wpacu-location-child-area strong:after,.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-themes .wpacu-assets-collapsible-content .wpacu-location-child-area strong:after{content:'';position:absolute;width:100%;left:0;bottom:0;height:1px;background-color:#fdfdfd}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content .wpacu-location-child-area strong{position:relative;padding:17px 10px 16px 46px;z-index:1}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-themes .wpacu-assets-collapsible-content .wpacu-location-child-area{margin-bottom:10px}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-assets-collapsible-content .wpacu-location-child-area{margin-top:22px;margin-bottom:14px;font-size:110%;line-height:initial}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-assets-collapsible-content .wpacu-location-child-area strong{border-top-right-radius:8px;border-top-left-radius:8px;background-color:#f9f9f9;border-left:1px solid #cdcdcd;border-top:1px solid #cdcdcd;border-bottom:1px solid transparent;border-right:1px solid #cdcdcd;position:relative;padding:10px}.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-plugin-default{position:absolute;padding:0;top:10px;left:10px;width:37px;height:37px}.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-plugin-default:not(.has-icon){color:#b4b9be;background-color:#eee;box-shadow:inset 0 0 10px rgba(160,165,170,.15);-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-plugin-default:not(.has-icon) .icon-area:before{content:"\f106";font-family:Dashicons;position:absolute;font-size:28px;line-height:28px;top:5px;left:5px}.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-plugin-default .icon-area{position:relative;width:37px;height:37px}.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content,.wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content{padding:0}.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content .wpacu_list_table,.wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content .wpacu_list_table{width:100%;margin:0}.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row td,.wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row td{border-left:hidden;border-right:hidden;border-bottom:1px solid #cdcdcd}.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row:last-child,.wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row:last-child{margin-bottom:0!important}.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row:last-child td:last-child,.wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row:last-child td:last-child{border-bottom:hidden}a.wpacu-assets-collapsible{color:#000;font-size:20px;text-decoration:none;display:block;position:relative;background-color:#f1f3f8;cursor:pointer;padding:15px 15px 15px 36px;width:auto;border:none;text-align:left;outline:0}a.wpacu-assets-collapsible>span.dashicons{font-size:25px;line-height:normal;position:absolute;top:15px;top:calc(50% - 21px);left:22px;-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}a.wpacu-assets-collapsible:hover{background-color:#f1f3f8;text-decoration:none}a.wpacu-assets-collapsible:after{position:absolute;font-size:22px;font-family:Dashicons;right:14px;top:16px}a.wpacu-assets-collapsible:not(.wpacu-assets-collapsible-active):after{content:"\f132"}a.wpacu-assets-collapsible.wpacu-assets-collapsible-active{background-color:#f1f3f8}a.wpacu-assets-collapsible.wpacu-assets-collapsible-active:after{content:"\f460"}.wpacu-assets-collapsible-content{padding:0 16px;max-height:0;overflow:hidden;background-color:#fbfbfb8c}.wpacu-assets-collapsible-content .wpacu-assets-note{margin:0;padding:15px 15px 10px}.wpacu-assets-collapsible-content>div{padding:16px 0 0}.wpacu-assets-collapsible-content>div>p:first-child{margin-top:0}.wpacu-assets-collapsible-content.wpacu-open{max-height:100%}a.wpacu-assets-inline-code-collapsible{color:inherit;font-size:14px;text-decoration:none;display:inline-block;position:relative;cursor:pointer;width:auto;outline:0;background:#f1f3f8;border:1px solid #cdcdcd;padding:4px 21px 4px 8px;margin:0 0 0 6px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}a.wpacu-assets-inline-code-collapsible:hover{border:1px solid #5c5c5c}a.wpacu-assets-inline-code-collapsible:after{position:absolute;font-size:15px;font-family:Dashicons;right:-3px;top:-1px;height:14px;width:14px;-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}a.wpacu-assets-inline-code-collapsible:not(.wpacu-assets-inline-code-collapsible-active):after{content:"\f132"}a.wpacu-assets-inline-code-collapsible.wpacu-assets-inline-code-collapsible-active:after{content:"\f460"}.wpacu-assets-inline-code-collapsible-content{font-size:80%;padding:0 8px;max-height:0;overflow:hidden;background-color:#fbfbfb8c}.wpacu-assets-inline-code-collapsible-content>div{padding:7px 8px 0}.wpacu-assets-inline-code-collapsible-content>div>p:first-child{margin-top:0}.wpacu-assets-inline-code-collapsible-content.wpacu-open{max-height:100%}.wpacu_table_wrap{margin:20px 0 0}.wpacu_table_wrap>table{border:1px solid #cdcdcd}.wpacu_table_wrap .table{width:100%;max-width:100%;margin-bottom:1rem;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.wpacu_table_wrap .table td,.wpacu_table_wrap .table th{padding:.75rem;vertical-align:top;border-top:1px solid #eceeef}.wpacu_table_wrap .table thead th{vertical-align:bottom;border-bottom:2px solid #eceeef}.wpacu_table_wrap .table tbody+tbody{border-top:2px solid #eceeef}.wpacu_table_wrap .table .table{background-color:#fff}.wpacu_table_wrap .table-sm td,.wpacu_table_wrap .table-sm th{padding:.3rem}.wpacu_table_wrap .table-bordered,.wpacu_table_wrap .table-bordered td,.wpacu_table_wrap .table-bordered th{border:1px solid #eceeef}.wpacu_table_wrap .table-bordered thead td,.wpacu_table_wrap .table-bordered thead th{border-bottom-width:2px}.wpacu_table_wrap .table-striped tbody tr:nth-of-type(even){background-color:#f9f9f9}.wpacu_table_wrap .table-striped tbody tr:nth-of-type(odd){background-color:#fff}.wpacu_table_wrap .table-active,.wpacu_table_wrap .table-active>td,.wpacu_table_wrap .table-active>th,.wpacu_table_wrap .table-hover .table-active:hover,.wpacu_table_wrap .table-hover .table-active:hover>td,.wpacu_table_wrap .table-hover .table-active:hover>th,.wpacu_table_wrap .table-hover tbody tr:hover{background-color:rgba(0,0,0,.075)}.wpacu_table_wrap .table-success,.wpacu_table_wrap .table-success>td,.wpacu_table_wrap .table-success>th{background-color:#dff0d8}.wpacu_table_wrap .table-hover .table-success:hover,.wpacu_table_wrap .table-hover .table-success:hover>td,.wpacu_table_wrap .table-hover .table-success:hover>th{background-color:#d0e9c6}.wpacu_table_wrap .table-info,.wpacu_table_wrap .table-info>td,.wpacu_table_wrap .table-info>th{background-color:#d9edf7}.wpacu_table_wrap .table-hover .table-info:hover,.wpacu_table_wrap .table-hover .table-info:hover>td,.wpacu_table_wrap .table-hover .table-info:hover>th{background-color:#c4e3f3}.wpacu_table_wrap .table-warning,.wpacu_table_wrap .table-warning>td,.wpacu_table_wrap .table-warning>th{background-color:#fcf8e3}.wpacu_table_wrap .table-hover .table-warning:hover,.wpacu_table_wrap .table-hover .table-warning:hover>td,.wpacu_table_wrap .table-hover .table-warning:hover>th{background-color:#faf2cc}.wpacu_table_wrap .table-danger,.wpacu_table_wrap .table-danger>td,.wpacu_table_wrap .table-danger>th{background-color:#f2dede}.wpacu_table_wrap .table-hover .table-danger:hover,.wpacu_table_wrap .table-hover .table-danger:hover>td,.wpacu_table_wrap .table-hover .table-danger:hover>th{background-color:#ebcccc}.wpacu_table_wrap .thead-inverse th{color:#fff;background-color:#292b2c}.wpacu_table_wrap .thead-default th{color:#464a4c;background-color:#eceeef}.wpacu_table_wrap .table-inverse{color:#fff;background-color:#292b2c}.wpacu_table_wrap .table-inverse td,.wpacu_table_wrap .table-inverse th,.wpacu_table_wrap .table-inverse thead th{border-color:#fff}.wpacu_table_wrap .table-inverse.table-bordered,.wpacu_table_wrap .table-responsive.table-bordered{border:0}.wpacu_table_wrap .table-responsive{display:block;width:100%;overflow-x:auto;-ms-overflow-style:-ms-autohiding-scrollbar}ul.hire-reasons{margin-bottom:20px}ul.hire-reasons li{font-size:14px;line-height:22px;margin-bottom:12px}ul.hire-reasons li .dashicons{font-size:23px;line-height:23px}ul.hire-reasons li .dashicons.dashicons-yes{color:green}ol.getting-started li{font-size:14px;line-height:22px;margin-bottom:8px}.wpacu-get-help-wrap p{font-size:14px}.wpacu-get-help-wrap .help-content-wrap{margin:20px 0 25px;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-moz-flex;display:-webkit-flex;display:flex;width:100%}@media only screen and (min-width:768px){.wpacu-get-help-wrap .help-content-wrap{-webkit-box-align:start;-ms-flex-align:start;-ms-grid-row-align:flex-start;align-items:flex-start}}@media only screen and (max-width:767px){.wpacu-get-help-wrap .help-content-wrap{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}}.wpacu-get-help-wrap .help-content-wrap .help-content{padding:15px;background:#fff;border:1px solid #E0E0E0;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;box-shadow:2px 3px 8px 0 #231f2038;flex:1 1 50%;margin-bottom:10px}.wpacu-get-help-wrap .help-content-wrap .help-content .content-title{margin:5px 0 15px}.wpacu-get-help-wrap .help-content-wrap .help-content .cols-wrap{width:100%;margin:0 auto;display:table}.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area{margin:5px 0 0;position:relative}.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area.col-left{float:left;width:48%}.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area.col-right{float:right;width:48%}.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area.activate-plugin img{max-width:280px}.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area img{width:99%;margin:8px 0;border:1px solid #cdcdcd;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.wpacu-get-help-wrap .help-content-wrap .help-content.upgrade-help{order:2}@media only screen and (min-width:768px){.wpacu-get-help-wrap .help-content-wrap .help-content{margin-right:24px}.wpacu-get-help-wrap .help-content-wrap .help-content.upgrade-help{margin-right:0}}.wpacu-get-help-wrap .help-content-wrap .help-content.tech-help{order:1}@media only screen and (max-width:767px){.wpacu-get-help-wrap .help-content-wrap .help-content.tech-help{margin-bottom:30px}}.wpacu-get-help-wrap .help-content-wrap .help-content ul{list-style:none;padding-left:0}.wpacu-get-help-wrap .help-content-wrap .help-content ul li{font-size:14px;line-height:22px;margin-bottom:15px}.wpacu-get-help-wrap .help-content-wrap .help-content p:last-child,.wpacu-get-help-wrap .help-content-wrap .help-content ul li:last-child{margin-bottom:0}#wpacu-license-data-remove-area{display:none;margin:10px 0 25px}#wpacu-license-data-remove-area.wpacu-visible{display:block}span#wpacu-license-data-removed-msg{display:block;padding-left:26px}#wpacu-warning-read{display:none;margin:10px 0}#wpacu-warning-read span.dashicons-warning{color:#c00}#wpacu-warning-read.wpacu-visible{display:block}#wpacu-reset-submit-area{margin:10px 0;clear:both}#wpacu-reset-submit-btn{margin:10px 0 0}.wpacu-tools-area{margin:10px 20px 0 2px}.wpacu-tools-area .wpacu-tools-container{background:#fff;padding:15px;border:1px solid #cdcdcd;width:96%}.wpacu-tools-area .wpacu-tools-container form>div:first-child{margin:0 0 10px}.wpacu-tools-area .wpacu-tools-container form .wpacu-warning{display:none;box-sizing:border-box;margin-top:10px}.wpacu-tools-area .wpacu-tools-container form .wpacu-warning p{margin:0 0 10px;line-height:22px}.wpacu-tools-area .wpacu-tools-container form .wpacu-warning p:only-child{margin:0}.wpacu-tools-area .wpacu-tools-container form .wpacu-warning ul{font-size:13px;list-style-type:disc;padding-left:30px}.wpacu-tools-area .wpacu-tools-container form .wpacu-warning.wpacu-visible{display:block}.wpacu-about-wrap .wpacu-about-text img{width:auto;height:150px;position:absolute;top:20px;right:-20px}@media only screen and (max-width:767px){.wpacu-about-wrap h1{margin:20px}.wpacu-about-wrap .wpacu-about-text img{display:none}.wpacu-about-wrap .wpacu-about-text{margin:20px}}.wpacu-about-wrap .about-wrap-content .area-title{font-size:19px;line-height:19px;margin-bottom:0}.wpacu-about-wrap hr{margin:10px 0}
1
+ .go-pro-button,.wpacu-btns .btn,.wpacu-tabs nav,.wpacu-tabs nav ul li{text-align:center}#wpacu_meta_box_content .dashicons.dashicons-warning,.wpacu-tabs nav ul li span.license-status.inactive{color:#c00}#wpacu-pages-info-area{width:98%}#wpacu-logo-area{margin:15px 0;padding:0 10px}#wpacu-logo-area img{width:352px;height:79px}.wpacu-tabs{position:relative;overflow:hidden;margin:0 auto 20px;width:100%;font-weight:300;font-size:20px}.wpacu-tabs nav ul{position:relative;display:-ms-flexbox;display:-webkit-flex;display:-moz-flex;display:-ms-flex;display:flex;margin:0 auto;padding:0;max-width:1200px;list-style:none;-ms-box-orient:horizontal;-ms-box-pack:center;-webkit-flex-flow:row wrap;-moz-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-justify-content:center;-moz-justify-content:center;-ms-justify-content:center;justify-content:center}.wpacu-tabs nav ul li{position:relative;z-index:1;display:block;margin:0;-webkit-flex:1;-moz-flex:1;-ms-flex:1;flex:1}.wpacu-tabs nav ul li span.license-status{position:absolute;font-size:12px;left:0;right:50%;bottom:12px;-webkit-transform:translate(50%,50%);transform:translate(50%,50%)}.wpacu-license-area .notice .dashicons,.wpacu-settings-area .notice .dashicons,.wpacu-tabs nav ul li span.license-status.active{color:green}.wpacu-tabs nav a{position:relative;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:2.5}.wpacu-tabs nav a span{vertical-align:middle;font-size:14px}.wpacu-tabs nav li.wpacu-tab-current a{color:#74777b}.wpacu-tabs nav a:focus{outline:0}.wpacu-tabs .dashicons{font-size:20px}.no-js .wpacu-content-wrap section{display:block;padding-bottom:2em;border-bottom:1px solid rgba(255,255,255,.6)}.no-flexbox nav ul{display:block}.no-flexbox nav ul li{min-width:15%;display:inline-block}@media screen and (max-width:58em){.wpacu-tabs nav a.icon span{display:none}.wpacu-tabs nav a:before{margin-right:0}}.wpacu-tabs-style-underline nav{background:#fff}.wpacu-tabs-style-underline nav a{color:#74777b;font-size:18px;text-transform:uppercase;text-decoration:none;padding:.25em 0 .5em;border-left:1px solid #e7ecea;-webkit-transition:color .2s;transition:color .2s}.wpacu-tabs-style-underline nav li:last-child a{border-right:1px solid #e7ecea}.wpacu-tabs-style-underline nav li a::after{position:absolute;bottom:0;left:0;width:100%;height:6px;background:#2CC185;content:'';-webkit-transition:-webkit-transform .3s;transition:transform .3s;-webkit-transform:translate3d(0,150%,0);transform:translate3d(0,150%,0)}.wpacu-tabs-style-underline nav li.wpacu-tab-current a::after{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.wpacu-tabs-style-underline nav a span{font-weight:700}.wpacu-tabs-style-topline{max-width:1200px;margin:20px auto 30px 0;width:100%;font-weight:300;text-decoration:none}.wpacu-tabs-style-topline nav li{border:1px solid rgba(40,44,42,.1)}.wpacu-tabs-style-topline nav li:not(:last-child){border-right:none}.wpacu-tabs-style-topline nav li.wpacu-tab-current{border-top-color:#008f9c;border-bottom:none}.wpacu-tabs-style-topline nav a{padding:20px 18px;background:rgba(40,44,42,.05);color:#74777b;line-height:1;-webkit-transition:color .2s;transition:color .2s;text-decoration:none}.wpacu-tabs-style-topline nav a:focus,.wpacu-tabs-style-topline nav a:hover{background:0 0;color:#008f9c}.wpacu-tabs-style-topline nav li.wpacu-tab-current a{background:0 0;box-shadow:inset 0 3px 0 #008f9c;color:#008f9c}.wpacu-tabs-style-topline nav li.wpacu-tab-current a span:not(.dashicons){font-weight:600}.wpacu-tabs-style-topline nav a span{text-transform:uppercase;font-weight:400}.wpacu-tab-nav-wrapper{border-bottom:none!important}.wpacu-tab-nav-wrapper .nav-tab.nav-tab-active{background:#fff;position:relative}.wpacu-tab-nav-wrapper .nav-tab.nav-tab-active:after{content:'';width:100%;bottom:-2px;left:0;position:absolute;border-bottom:2px solid #fff}.wpacu-script-attributes-area{margin:20px 0 0!important}.wpacu-script-attributes-area.wpacu-lite ul.wpacu-script-attributes-settings{padding:5px 7px!important}.wpacu-script-attributes-area.wpacu-lite ul.wpacu-script-attributes-settings.wpacu-first{margin:0 28px 0 0!important}.wpacu-script-attributes-area.wpacu-lite ul.wpacu-script-attributes-settings label{margin:0!important}.wpacu-script-attributes-area.wpacu-lite ul.wpacu-script-attributes-settings li{margin:0 16px 0 0!important}.wpacu-script-attributes-area.wpacu-lite ul.wpacu-script-attributes-settings li:first-child{margin:0 10px 0 0!important}.wpacu-script-attributes-area.wpacu-lite ul.wpacu-script-attributes-settings li:last-child{margin:0 2px 0 0!important}.wpacu-script-attributes-area .wpacu-script-attributes-settings{background:#fff!important;border:1px solid #eee!important;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;padding:5px 10px!important;list-style:none;display:inline-block;margin:0}.wpacu-script-attributes-area .wpacu-script-attributes-settings input[type=radio]{padding:0;margin:0 5px 0 0}.wpacu-script-attributes-area .wpacu-script-attributes-settings.wpacu-first{margin:0 34px 0 0!important}.wpacu-script-attributes-area .wpacu-script-attributes-settings li{float:left;margin:0 17px 0 0}.wpacu-script-attributes-area .wpacu-script-attributes-settings li:first-child{margin:0 10px 0 0!important}.wpacu-script-attributes-area .wpacu-script-attributes-settings li:last-child{margin:0}.wpacu-script-attributes-area .wpacu-script-attributes-settings:hover{background:#f2faf2}tr.wpacu_not_load td,tr.wpacu_not_load th{background:#FFE1E1!important}.dashicons-wpacu{width:17px;height:17px;margin:2px 0 0;font-size:16px;text-decoration:none}.wpacu_widefat .check-column.wpacu_check{padding:10px}body[class*=wpassetcleanup] #footer-left{border-left:2px solid green;padding-left:10px}#wpacu_meta_box_content{width:99%}#wpacu_meta_box_content .emoji{font-size:18px}#wpacu_meta_box_content h3{margin-left:0;padding-left:0}#wpacu_meta_box_content div.wpacu_note{padding:10px;background-color:#f5f5f5}#wpacu_meta_box_content .wpacu_verified{padding:10px;background-color:#f5f5f5;border-left:1px solid #ddd}#wpacu_meta_box_content .wpacu_verified span{color:#0073aa;font-weight:700}#wpacu_meta_box_content div.wpacu_warning{border:1px solid #c00}#wpacu_meta_box_content ul.wpacu_asset_options{margin:0;padding:0}#wpacu_meta_box_content ul.wpacu_asset_options li{list-style:none;display:inline-block}#wpacu_wrap_assets img,#wpacu_wrap_assets small,.wpacu_asset_row td label{display:inline-block!important}#wpacu_meta_box_content ul.wpacu_asset_options label{font-weight:400;margin-right:5px;margin-top:5px;margin-bottom:5px}.wpacu-updated-frontend{font-weight:400;background-color:#fff;border-left:4px solid #46b450;border-top:1px solid #46b450;border-right:1px solid #46b450;border-bottom:1px solid #46b450;padding:9px 14px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.wpacu-updated-frontend span.dashicons-yes{color:#46b450;font-size:26px}#wpacu_wrap_assets{color:#000!important;text-align:left!important;clear:both!important;width:90%!important;padding:20px!important;margin:30px 0 0 15px!important;border:1px solid #cdcdcd;z-index:10000!important;position:relative!important;background-color:#fff!important}#wpacu_wrap_assets div.wpacu_warning{border:1px solid #c00;padding:5px 10px}#wpacu_wrap_assets small{margin:0!important;letter-spacing:normal!important}#wpacu_wrap_assets input[type=checkbox]{margin-right:4px!important}#wpacu_wrap_assets p{line-height:22px!important;margin:10px 0!important;text-align:left!important;font-weight:400!important}.wpacu-assets-inline-code-collapsible-content>div>p,.wpacu_update_btn{line-height:normal!important}#wpacu_wrap_assets p:first-child,.wpacu_verified{margin:0 0 10px!important}#wpacu_wrap_assets h1{margin:0 0 20px!important;font-size:160%!important;text-align:left!important}#wpacu_wrap_assets h3{margin:20px 0;font-size:130%}.wpacu_asset_row td{padding:18px!important;position:relative;border-left:1px solid #cdcdcd;border-right:1px solid #cdcdcd;border-bottom:1px solid #cdcdcd}.wpacu_asset_row td.selected,.wpacu_asset_row td:hover{border:1px solid #cdcdcd;-moz-box-shadow:inset 0 0 12px #cdcdcd;-webkit-box-shadow:inset 0 0 12px #cdcdcd;box-shadow:inset 0 0 12px #cdcdcd}.wpacu_asset_row td:first-child{border-top:1px solid #cdcdcd}.wpacu_asset_row td p{padding:0!important;margin-bottom:10px!important;word-wrap:break-word!important;-ms-word-break:break-all;word-break:break-word}.wpacu_asset_row td label{margin:0!important;cursor:pointer!important;font-size:100%!important;font-weight:400!important}.wpacu_asset_row td label span:not(.dashicons){font-size:100%!important}.wpacu_asset_row td.wpacu_check{width:50px!important}.asset-table-extra-info td{padding:5px!important}body.wp-admin .wpacu_asset_row td.wpacu_check{width:25px!important}.wpacu_asset_row .dashicons-warning{color:red!important}label.wpacu_add_global{cursor:pointer!important}label.wpacu_global_checked{font-weight:700;color:#d54e21}label.wpacu_global_unload_exception{font-weight:700!important}label.wpacu_bulk_unload_active{color:#d54e21}tr.wpacu_global_rule_row.selected{background:#e7e7e7}.nav-tab-wrapper{border-bottom:1px solid #ccc;width:95%}ul.wpacu_asset_options{margin:0 10px 0 0;padding:0}ul.wpacu_asset_options li{margin:0 20px 0 0;list-style:none;display:inline-block}ul.wpacu_asset_options li.remove_rule label{font-weight:700}ul.wpacu_asset_options label{margin-right:20px;font-weight:400}ul.wpacu_asset_options label input{margin-right:4px}.wpacu_list_table,.wpacu_list_table div,.wpacu_list_table li,.wpacu_list_table p{font-weight:400}.wpacu_widefat{width:99%}.wpacu_striped>tbody>:nth-child(even),ul.wpacu_striped>:nth-child(even){background-color:#fff!important}.wpacu_striped>tbody>:nth-child(odd),ul.wpacu_striped>:nth-child(odd){background-color:#f9f9f9!important}.wpacu_update_btn{-moz-box-shadow:inset 0 1px 0 0 #54a3f7!important;-webkit-box-shadow:inset 0 1px 0 0 #54a3f7!important;box-shadow:inset 0 1px 0 0 #54a3f7!important;background:-webkit-gradient(linear,left top,left bottom,color-stop(.05,#007dc1),color-stop(1,#0061a7))!important;background:-moz-linear-gradient(top,#007dc1 5%,#0061a7 100%)!important;background:-webkit-linear-gradient(top,#007dc1 5%,#0061a7 100%)!important;background:-o-linear-gradient(top,#007dc1 5%,#0061a7 100%)!important;background:-ms-linear-gradient(top,#007dc1 5%,#0061a7 100%)!important;background:linear-gradient(to bottom,#007dc1 5%,#0061a7 100%)!important;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#007dc1', endColorstr='#0061a7', GradientType=0)!important;background-color:#007dc1!important;-moz-border-radius:3px!important;-webkit-border-radius:3px!important;border-radius:3px!important;border:1px solid #124d77!important;display:inline-block!important;cursor:pointer!important;color:#fff!important;font-size:15px!important;padding:10px 24px!important;text-decoration:none!important;text-shadow:0 1px 0 #154682!important;height:auto!important}.wpacu-btns .btn:focus,.wpacu-btns .btn:hover,.wpacu-btns a{text-decoration:none}.wpacu_update_btn:hover{background:-webkit-gradient(linear,left top,left bottom,color-stop(.05,#0061a7),color-stop(1,#007dc1))!important;background:-moz-linear-gradient(top,#0061a7 5%,#007dc1 100%)!important;background:-webkit-linear-gradient(top,#0061a7 5%,#007dc1 100%)!important;background:-o-linear-gradient(top,#0061a7 5%,#007dc1 100%)!important;background:-ms-linear-gradient(top,#0061a7 5%,#007dc1 100%)!important;background:linear-gradient(to bottom,#0061a7 5%,#007dc1 100%)!important;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#0061a7', endColorstr='#007dc1', GradientType=0)!important;background-color:#0061a7!important}.wpacu_update_btn:active{position:relative!important;top:1px!important}.wpacu-btns .btn{display:inline-block;font-weight:400;line-height:1.25;white-space:nowrap;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:1px solid transparent;padding:.5rem 1rem;font-size:1rem;-webkit-border-radius:.25rem;-moz-border-radius:.25rem;border-radius:.25rem;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.wpacu-btns .btn.focus,.wpacu-btns .btn:focus{outline:0;-webkit-box-shadow:0 0 0 2px rgba(2,117,216,.25);box-shadow:0 0 0 2px rgba(2,117,216,.25)}.wpacu-btns .btn.disabled,.wpacu-btns .btn:disabled{cursor:not-allowed;opacity:.65}.wpacu-btns .btn.active,.wpacu-btns .btn:active{background-image:none}.wpacu-btns a.btn.disabled,.wpacu-btns fieldset[disabled] a.btn{pointer-events:none}.wpacu-btns .btn-primary{color:#fff;background-color:#0275d8;border-color:#0275d8}.wpacu-btns .btn-primary:hover{color:#fff;background-color:#025aa5;border-color:#01549b}.wpacu-btns .btn-primary.focus,.wpacu-btns .btn-primary:focus{-webkit-box-shadow:0 0 0 2px rgba(2,117,216,.5);box-shadow:0 0 0 2px rgba(2,117,216,.5)}.wpacu-btns .btn-primary.disabled,.wpacu-btns .btn-primary:disabled{background-color:#0275d8;border-color:#0275d8}.wpacu-btns .btn-primary.active,.wpacu-btns .btn-primary:active,.wpacu-btns .show>.btn-primary.dropdown-toggle{color:#fff;background-color:#025aa5;background-image:none;border-color:#01549b}.wpacu-btns .btn-secondary{color:#292b2c;background-color:#fff;border-color:#ccc}.wpacu-btns .btn-secondary:hover{color:#292b2c;background-color:#e6e6e6;border-color:#adadad}.wpacu-btns .btn-secondary.focus,.wpacu-btns .btn-secondary:focus{-webkit-box-shadow:0 0 0 2px rgba(204,204,204,.5);box-shadow:0 0 0 2px rgba(204,204,204,.5)}.wpacu-btns .btn-secondary.disabled,.wpacu-btns .btn-secondary:disabled{background-color:#fff;border-color:#ccc}.wpacu-btns .btn-secondary.active,.wpacu-btns .btn-secondary:active,.wpacu-btns .show>.btn-secondary.dropdown-toggle{color:#292b2c;background-color:#e6e6e6;background-image:none;border-color:#adadad}.wpacu-btns .btn-info{color:#fff;background-color:#5bc0de;border-color:#5bc0de}.wpacu-btns .btn-info:hover{color:#fff;background-color:#31b0d5;border-color:#2aabd2}.wpacu-btns .btn-info.focus,.wpacu-btns .btn-info:focus{-webkit-box-shadow:0 0 0 2px rgba(91,192,222,.5);box-shadow:0 0 0 2px rgba(91,192,222,.5)}.wpacu-btns .btn-info.disabled,.wpacu-btns .btn-info:disabled{background-color:#5bc0de;border-color:#5bc0de}.wpacu-btns .btn-info.active,.wpacu-btns .btn-info:active,.wpacu-btns .show>.btn-info.dropdown-toggle{color:#fff;background-color:#31b0d5;background-image:none;border-color:#2aabd2}.wpacu-btns .btn-success{color:#fff;background-color:#5cb85c;border-color:#5cb85c}.wpacu-btns .btn-success:hover{color:#fff;background-color:#449d44;border-color:#419641}.wpacu-btns .btn-success.focus,.wpacu-btns .btn-success:focus{-webkit-box-shadow:0 0 0 2px rgba(92,184,92,.5);box-shadow:0 0 0 2px rgba(92,184,92,.5)}.wpacu-btns .btn-success.disabled,.wpacu-btns .btn-success:disabled{background-color:#5cb85c;border-color:#5cb85c}.wpacu-btns .btn-success.active,.wpacu-btns .btn-success:active,.wpacu-btns .show>.btn-success.dropdown-toggle{color:#fff;background-color:#449d44;background-image:none;border-color:#419641}.wpacu-btns .btn-warning{color:#fff;background-color:#f0ad4e;border-color:#f0ad4e}.wpacu-btns .btn-warning:hover{color:#fff;background-color:#ec971f;border-color:#eb9316}.wpacu-btns .btn-warning.focus,.wpacu-btns .btn-warning:focus{-webkit-box-shadow:0 0 0 2px rgba(240,173,78,.5);box-shadow:0 0 0 2px rgba(240,173,78,.5)}.wpacu-btns .btn-warning.disabled,.wpacu-btns .btn-warning:disabled{background-color:#f0ad4e;border-color:#f0ad4e}.wpacu-btns .btn-warning.active,.wpacu-btns .btn-warning:active,.wpacu-btns .show>.btn-warning.dropdown-toggle{color:#fff;background-color:#ec971f;background-image:none;border-color:#eb9316}.wpacu-btns .btn-danger{color:#fff;background-color:#d9534f;border-color:#d9534f}.wpacu-btns .btn-danger:hover{color:#fff;background-color:#c9302c;border-color:#c12e2a}.wpacu-btns .btn-danger.focus,.wpacu-btns .btn-danger:focus{-webkit-box-shadow:0 0 0 2px rgba(217,83,79,.5);box-shadow:0 0 0 2px rgba(217,83,79,.5)}.wpacu-btns .btn-danger.disabled,.wpacu-btns .btn-danger:disabled{background-color:#d9534f;border-color:#d9534f}.wpacu-btns .btn-danger.active,.wpacu-btns .btn-danger:active,.wpacu-btns .show>.btn-danger.dropdown-toggle{color:#fff;background-color:#c9302c;background-image:none;border-color:#c12e2a}.wpacu-btns .btn-outline-primary{color:#0275d8;background-image:none;background-color:transparent;border-color:#0275d8}.wpacu-btns .btn-outline-primary:hover{color:#fff;background-color:#0275d8;border-color:#0275d8}.wpacu-btns .btn-outline-primary.focus,.wpacu-btns .btn-outline-primary:focus{-webkit-box-shadow:0 0 0 2px rgba(2,117,216,.5);box-shadow:0 0 0 2px rgba(2,117,216,.5)}.wpacu-btns .btn-outline-primary.disabled,.wpacu-btns .btn-outline-primary:disabled{color:#0275d8;background-color:transparent}.wpacu-btns .btn-outline-primary.active,.wpacu-btns .btn-outline-primary:active,.wpacu-btns .show>.btn-outline-primary.dropdown-toggle{color:#fff;background-color:#0275d8;border-color:#0275d8}.wpacu-btns .btn-outline-secondary{color:#ccc;background-image:none;background-color:transparent;border-color:#ccc}.wpacu-btns .btn-outline-secondary:hover{color:#fff;background-color:#ccc;border-color:#ccc}.wpacu-btns .btn-outline-secondary.focus,.wpacu-btns .btn-outline-secondary:focus{-webkit-box-shadow:0 0 0 2px rgba(204,204,204,.5);box-shadow:0 0 0 2px rgba(204,204,204,.5)}.wpacu-btns .btn-outline-secondary.disabled,.wpacu-btns .btn-outline-secondary:disabled{color:#ccc;background-color:transparent}.wpacu-btns .btn-outline-secondary.active,.wpacu-btns .btn-outline-secondary:active,.wpacu-btns .show>.btn-outline-secondary.dropdown-toggle{color:#fff;background-color:#ccc;border-color:#ccc}.wpacu-btns .btn-outline-info{color:#5bc0de;background-image:none;background-color:transparent;border-color:#5bc0de}.wpacu-btns .btn-outline-info:hover{color:#fff;background-color:#5bc0de;border-color:#5bc0de}.wpacu-btns .btn-outline-info.focus,.wpacu-btns .btn-outline-info:focus{-webkit-box-shadow:0 0 0 2px rgba(91,192,222,.5);box-shadow:0 0 0 2px rgba(91,192,222,.5)}.wpacu-btns .btn-outline-info.disabled,.wpacu-btns .btn-outline-info:disabled{color:#5bc0de;background-color:transparent}.wpacu-btns .btn-outline-info.active,.wpacu-btns .btn-outline-info:active,.wpacu-btns .show>.btn-outline-info.dropdown-toggle{color:#fff;background-color:#5bc0de;border-color:#5bc0de}.wpacu-btns .btn-outline-success{color:#5cb85c;background-image:none;background-color:transparent;border-color:#5cb85c}.wpacu-btns .btn-outline-success:hover{color:#fff;background-color:#5cb85c;border-color:#5cb85c}.wpacu-btns .btn-outline-success.focus,.wpacu-btns .btn-outline-success:focus{-webkit-box-shadow:0 0 0 2px rgba(92,184,92,.5);box-shadow:0 0 0 2px rgba(92,184,92,.5)}.wpacu-btns .btn-outline-success.disabled,.wpacu-btns .btn-outline-success:disabled{color:#5cb85c;background-color:transparent}.wpacu-btns .btn-outline-success.active,.wpacu-btns .btn-outline-success:active,.wpacu-btns .show>.btn-outline-success.dropdown-toggle{color:#fff;background-color:#5cb85c;border-color:#5cb85c}.wpacu-btns .btn-outline-warning{color:#f0ad4e;background-image:none;background-color:transparent;border-color:#f0ad4e}.wpacu-btns .btn-outline-warning:hover{color:#fff;background-color:#f0ad4e;border-color:#f0ad4e}.wpacu-btns .btn-outline-warning.focus,.wpacu-btns .btn-outline-warning:focus{-webkit-box-shadow:0 0 0 2px rgba(240,173,78,.5);box-shadow:0 0 0 2px rgba(240,173,78,.5)}.wpacu-btns .btn-outline-warning.disabled,.wpacu-btns .btn-outline-warning:disabled{color:#f0ad4e;background-color:transparent}.wpacu-btns .btn-outline-warning.active,.wpacu-btns .btn-outline-warning:active,.wpacu-btns .show>.btn-outline-warning.dropdown-toggle{color:#fff;background-color:#f0ad4e;border-color:#f0ad4e}.wpacu-btns .btn-outline-danger{color:#d9534f;background-image:none;background-color:transparent;border-color:#d9534f}.wpacu-btns .btn-outline-danger:hover{color:#fff;background-color:#d9534f;border-color:#d9534f}.wpacu-btns .btn-outline-danger.focus,.wpacu-btns .btn-outline-danger:focus{-webkit-box-shadow:0 0 0 2px rgba(217,83,79,.5);box-shadow:0 0 0 2px rgba(217,83,79,.5)}.wpacu-btns .btn-outline-danger.disabled,.wpacu-btns .btn-outline-danger:disabled{color:#d9534f;background-color:transparent}.wpacu-btns .btn-outline-danger.active,.wpacu-btns .btn-outline-danger:active,.wpacu-btns .show>.btn-outline-danger.dropdown-toggle{color:#fff;background-color:#d9534f;border-color:#d9534f}.wpacu-btns .btn-link{font-weight:400;color:#0275d8;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.wpacu-btns .btn-link,.wpacu-btns .btn-link.active,.wpacu-btns .btn-link:active,.wpacu-btns .btn-link:disabled{background-color:transparent}.wpacu-btns .btn-link,.wpacu-btns .btn-link:active,.wpacu-btns .btn-link:focus,.wpacu-btns .btn-link:hover{border-color:transparent}.wpacu-btns .btn-link:focus,.wpacu-btns .btn-link:hover{color:#014c8c;text-decoration:underline;background-color:transparent}.wpacu-btns .btn-link:disabled{color:#636c72}.wpacu-btns .btn-link:disabled:focus,.wpacu-btns .btn-link:disabled:hover{text-decoration:none}.wpacu-btns .btn-group-lg>.btn,.wpacu-btns .btn-lg{padding:.75rem 1.5rem;font-size:1.25rem;-webkit-border-radius:.3rem;-moz-border-radius:.3rem;border-radius:.3rem}.wpacu-btns .btn-group-sm>.btn,.wpacu-btns .btn-sm{padding:.25rem .5rem;font-size:.875rem;-webkit-border-radius:.2rem;-moz-border-radius:.2rem;border-radius:.2rem}.wpacu-btns .btn-block{display:block;width:100%}.go-pro-button,.go-pro-link-no-style,.wordpress-core-file{display:inline-block;text-decoration:none}.wpacu-btns .btn-block+.btn-block{margin-top:.5rem}.wpacu-btns input[type=submit].btn-block,.wpacu-btns input[type=reset].btn-block,.wpacu-btns input[type=button].btn-block{width:100%}.wpacu-btns .fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.go-pro-button{background-color:#4CAF50;border:2px solid #4CAF50;color:#fff;padding:12px 18px;font-size:16px;margin:4px 2px;cursor:pointer;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;-webkit-transition-duration:.4s;transition-duration:.4s}.go-pro-button:hover{background-color:#fff;color:#000;border:2px solid #4CAF50;text-decoration:none}body.wp-admin .wpacu_asset_row .go-pro-link-no-style .wpacu-tooltip{padding:8px 2px}body.wp-admin .go-pro-link-no-style .wpacu-tooltip{text-shadow:none;font-weight:400;font-size:12px;line-height:16px;padding:8px 11px}.go-pro-link-no-style{position:relative;color:inherit}.go-pro-link-no-style:not(.nav-tab){font-style:italic}.go-pro-link-no-style.no-transition .wpacu-tooltip{-webkit-transition:0s all ease;transition:0s all ease;-webkit-transition-delay:0s;transition-delay:0s}.go-pro-link-no-style .wpacu-tooltip,.wordpress-core-file .wpacu-tooltip{font-size:14px;width:160px;color:#fff;text-align:center;-webkit-transition:.1s all ease;z-index:1}.go-pro-link-no-style .wpacu-tooltip{line-height:18px;position:absolute;visibility:hidden;background-color:#00a7a7;padding:8px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;bottom:100%;bottom:calc(100% + 15px);left:50%;margin-left:-65px;transition:.1s all ease;-webkit-transition-delay:0s;transition-delay:0s}.go-pro-link-no-style .wpacu-tooltip:after{content:"";position:absolute;border-width:10px;border-style:solid;top:100%;left:50%;left:calc(50% - 10px);border-color:#00a7a7 transparent transparent}.go-pro-link-no-style .wpacu-tooltip.wpacu-on-pages-btn{cursor:pointer;margin-left:-77px;width:130px}.go-pro-link-no-style .wpacu-tooltip.wpacu-larger{width:240px}.go-pro-link-no-style:hover .wpacu-tooltip{visibility:visible}.wordpress-core-file{position:relative;font-style:normal;color:inherit}.wordpress-core-file .wpacu-tooltip{line-height:18px;position:absolute;visibility:hidden;background-color:#c00;padding:6px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;bottom:100%;bottom:calc(100% + 15px);left:50%;margin-left:-86px;transition:.1s all ease;-webkit-transition-delay:0s;transition-delay:0s}.wordpress-core-file .wpacu-tooltip:after{content:"";position:absolute;border-width:10px;border-style:solid;top:100%;left:50%;left:calc(50% - 10px);border-color:#c00 transparent transparent}.wordpress-core-file:hover .wpacu-tooltip{visibility:visible}.ajax-direct-call-error-area{background:#fff;padding:10px;border:1px solid #c00;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px}.ajax-direct-call-error-area td{padding:6px}.ajax-direct-call-error-area .note{margin-top:0;padding-top:0}.ajax-direct-call-error-area .error-code{color:#c00;font-weight:700}.ajax-wp-remote-post-call-error-area{background:#fff;padding:20px}.ajax-wp-remote-post-call-error-area .table-data{background:0 0;border:1px solid #c66;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.ajax-wp-remote-post-call-error-area .table-data td{padding:10px}.wrap-upgrade-info{background:#fff;padding:0 15px;border:1px solid #cdcdcd;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.wpacu-notice{margin:20px 20px 0 0!important}.wpacu-notice p{font-weight:600!important;font-style:italic}.wpacu-notice .dashicons{font-weight:inherit!important;color:#46b450!important;margin-right:4px;vertical-align:text-bottom;font-size:27px}.wpacu-notice-info{padding:12px 12px 12px 16px;background:#fff;border-left:4px solid #008f9c}.wpacu-notice-info p{margin-top:8px}.wpacu-notice-info p:first-child{margin-top:0}.wpacu-notice-info p:last-child{margin-bottom:0}.wpacu-warning{font-size:15px;padding:10px;background:#fffcec;border:1px solid #fdd5c9;margin:0 0 5px;width:100%}.pro-page-unlock-notice{-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;padding:10px;background:#f2faf2;border:1px solid #c0e8c0;width:auto;display:block}.wpacu-license-area .notice,.wpacu-settings-area .notice{margin-left:0;padding:10px!important;width:97%;box-sizing:border-box;font-weight:600;font-style:italic}#wpacu-dom-get-type-selections{float:none;clear:both;width:auto;display:inline-block;margin-bottom:0;margin-top:0}#wpacu-dom-get-type-selections li{margin-right:30px;float:left;margin-bottom:0}#wpacu-dom-get-type-selections li:first-child{margin-right:15px}#wpacu-dom-get-type-selections li:last-child{margin-right:0}#wpacu-dom-get-type-infos{margin-bottom:0}#wpacu-dom-get-type-infos li{margin-bottom:0;line-height:20px}.wpacu-wrap.wpacu-switch-standard .asset-cleanup-pro_page_wpassetcleanup_settings .wpacu_switch,.wpacu-wrap.wpacu-switch-standard .asset-cleanup_page_wpassetcleanup_settings .wpacu_switch{width:auto;height:auto}.wpacu-wrap.wpacu-switch-standard .asset-cleanup-pro_page_wpassetcleanup_settings .wpacu_switch input,.wpacu-wrap.wpacu-switch-standard .asset-cleanup_page_wpassetcleanup_settings .wpacu_switch input{display:block}.wpacu-wrap.wpacu-switch-standard .asset-cleanup-pro_page_wpassetcleanup_settings .wpacu_switch input[type=checkbox],.wpacu-wrap.wpacu-switch-standard .asset-cleanup_page_wpassetcleanup_settings .wpacu_switch input[type=checkbox]{margin:0 0 3px}.wpacu-wrap.wpacu-switch-standard .asset-cleanup-pro_page_wpassetcleanup_settings .wpacu_switch .wpacu_slider,.wpacu-wrap.wpacu-switch-standard .asset-cleanup_page_wpassetcleanup_settings .wpacu_switch .wpacu_slider{display:none}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch{position:relative;display:inline-block;width:52px;height:29px}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch input{display:none}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch:not(.wpacu_switch_standard) .wpacu_slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.2s;transition:.2s}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch:not(.wpacu_switch_standard) .wpacu_slider:before{position:absolute;content:'';height:22px;width:22px;left:4px;bottom:4px;background-color:#fff;-webkit-transition:.2s;transition:.2s}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch input:checked+.wpacu_slider{background-color:#52af00}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch input:focus+.wpacu_slider{box-shadow:0 0 1px #52af00}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch input:checked+.wpacu_slider:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch .wpacu_slider.wpacu_round{border-radius:29px}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch .wpacu_slider.wpacu_round:before{border-radius:50%}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch.wpacu_locked_for_pro{opacity:.3}.asset-cleanup-pro_page_wpassetcleanup_settings .setting_title p.wpacu_subtitle,.asset-cleanup_page_wpassetcleanup_settings .setting_title p.wpacu_subtitle{margin-top:2px;line-height:1.2}.asset-cleanup-pro_page_wpassetcleanup_settings .setting_title p.wpacu_subtitle em,.asset-cleanup_page_wpassetcleanup_settings .setting_title p.wpacu_subtitle em{font-weight:200}.asset-cleanup-pro_page_wpassetcleanup_settings .setting_title p.wpacu_read_more,.asset-cleanup_page_wpassetcleanup_settings .setting_title p.wpacu_read_more{margin-top:-10px;font-style:italic;font-size:12px}.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_inline_code_status_choices,.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices,.asset-cleanup-pro_page_wpassetcleanup_settings .input_style_choices,.asset-cleanup_page_wpassetcleanup_settings .assets_list_inline_code_status_choices,.asset-cleanup_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices,.asset-cleanup_page_wpassetcleanup_settings .input_style_choices{list-style:none;margin:0}.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_inline_code_status_choices li,.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices li,.asset-cleanup-pro_page_wpassetcleanup_settings .input_style_choices li,.asset-cleanup_page_wpassetcleanup_settings .assets_list_inline_code_status_choices li,.asset-cleanup_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices li,.asset-cleanup_page_wpassetcleanup_settings .input_style_choices li{float:left;margin-right:30px}.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_inline_code_status_choices li:last-child,.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices li:last-child,.asset-cleanup-pro_page_wpassetcleanup_settings .input_style_choices li:last-child,.asset-cleanup_page_wpassetcleanup_settings .assets_list_inline_code_status_choices li:last-child,.asset-cleanup_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices li:last-child,.asset-cleanup_page_wpassetcleanup_settings .input_style_choices li:last-child{margin-right:0}.notice.notice-success+.wpacu-wrap.wpacu-settings-area{margin-top:20px}.wpacu-form-table th{vertical-align:top;text-align:left;padding:5px 20px 20px 0;width:200px;line-height:1.3;font-weight:600}.wpacu-form-table th label{color:#23282d;font-weight:600;font-size:14px;text-shadow:none;vertical-align:middle;cursor:pointer}.wpacu-form-table td{padding-bottom:25px}.wpacu-form-table td:last-child p:last-child{margin:0}#wpacu-settings-vertical-tab-wrap{display:table;width:100%}#wpacu-settings-vertical-tab-wrap *{box-sizing:border-box}.wpacu-settings-tab{display:table-cell;width:19%;height:100%;vertical-align:top}.wpacu-settings-tab a{text-decoration:none;border-left:3px solid transparent;display:block;background-color:#f1f1f1;color:#004567;padding:17px 16px;width:100%;outline:0;text-align:left;cursor:pointer;font-size:14px;font-weight:600;border-bottom:1px solid #ccc}.wpacu-settings-tab a:first-child{border-top:1px solid transparent!important}.wpacu-settings-tab a:last-child{border-bottom:1px solid transparent!important}.wpacu-settings-tab a:hover{background-color:#fff;border-left:3px solid #004567;position:relative}.wpacu-settings-tab a.active{color:#004567;background-color:#fff;border-left:3px solid #004567;position:relative;border-bottom:1px solid #ccc}.wpacu-settings-tab a.active:after{content:'';position:absolute;height:100%;width:1px;top:0;right:-1px;background-color:#fff}.wpacu-settings-tab-content{background-color:#fff;display:none;padding:12px 18px;width:79%;border-left:none;height:100%;border-top-right-radius:10px;border-bottom-right-radius:10px}.wpacu-settings-tab-content h2{padding:0 0 15px;border-bottom:1px solid #e7e7e7}.wpacu-settings-tab-content.active{display:table-cell}#wpacu-update-button-area{margin-left:19%}#wpacu-update-button-area.no-left-margin{margin-left:0}#wpacu-update-button-area p{margin-top:10px}#wpacu-update-button-area .button{padding:5px 18px;height:38px;font-size:15px}.wrap_bulk_unload_options{width:auto;display:inline-flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.wrap_bulk_unload_options .wpacu_asset_options_wrap{flex-grow:1;margin:5px 10px 14px 0!important;padding:8px 10px 2px!important}.wrap_bulk_unload_options .wpacu_asset_options_wrap .wpacu_slider_text{position:relative!important;vertical-align:top;left:inherit!important;top:inherit!important}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch{position:relative;display:inline-block;width:52px;height:29px;margin-right:5px!important}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch input{display:none}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch .wpacu_slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.2s;transition:.2s}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch .wpacu_slider:before{position:absolute;content:'';height:22px;width:22px;left:4px;bottom:4px;background-color:#fff;-webkit-transition:.2s;transition:.2s}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch input:checked+.wpacu_slider{background-color:#C00}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch input:focus+.wpacu_slider{box-shadow:0 0 1px #C00}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch input:checked+.wpacu_slider:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch .wpacu_slider.wpacu_round{border-radius:29px}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch .wpacu_slider.wpacu_round:before{border-radius:50%}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_slider_text{position:absolute;left:62px;top:3px}.wpacu_asset_row td{width:100%}.wpacu_asset_row td p:last-child{margin-bottom:0!important}.wpacu_asset_row td .wpacu_asset_options_wrap{padding:8px 10px;margin:15px 0;background:#fff;border:1px solid #eee;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.wpacu_asset_row td .wpacu_asset_options_wrap p:first-child{margin-top:0;margin-bottom:8px!important}.wpacu_asset_row p.wpacu_handle{margin-top:0}.wpacu_asset_row li.wpacu_unload_this_page{display:block!important;position:relative}.wpacu-clearfix:after,.wpacu-clearfix:before{content:'';display:table}.wpacu-contract-expand-area{width:100%;margin:20px 0 0}.wpacu-contract-expand-area .col-left{float:left}.wpacu-contract-expand-area .col-left h4{margin-bottom:0}.wpacu-contract-expand-area .col-right{float:right}.wpacu-clearfix:after{clear:both}.wpacu-wp-button{color:#555;border-color:#ccc;background:#f7f7f7;box-shadow:0 1px 0 #ccc;vertical-align:top}body.wp-admin .wpacu-wp-button{font-size:13px;line-height:26px;height:28px}.wpacu-wp-button.wpacu-wp-button-secondary{display:inline-block;text-decoration:none;height:auto;margin:0 5px 0 0;padding:0 10px 1px;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;border-radius:3px;white-space:nowrap;box-sizing:border-box}.wpacu-wp-button:hover{background:#fafafa;border-color:#999;color:#23282d}.distinguish-asset-list{list-style:none;margin-left:0;margin-bottom:5px;display:inline-block}.distinguish-asset-list li{float:left;margin-right:20px}.distinguish-asset-list li:last-child{margin-right:0}.wpacu-assets-collapsible-wrap{border:1px solid #cdcdcd}.wpacu-assets-collapsible-wrap.wpacu-by-location{margin-bottom:15px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content>table:last-child,.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-themes .wpacu-assets-collapsible-content>table:last-child{margin-bottom:20px}.wpacu-assets-collapsible-wrap.wpacu-wrap-all,.wpacu-assets-collapsible-wrap.wpacu-wrap-styles{margin-top:20px}.wpacu-assets-collapsible-wrap.wpacu-wrap-scripts{margin-top:10px}.wpacu-assets-collapsible-wrap.wpacu-by-location>a.wpacu-assets-collapsible{padding:15px 15px 15px 43px}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu_list_table{border-spacing:inherit;width:100%;box-shadow:3px 3px 2px #ddd;border-bottom-right-radius:5px;border-top-right-radius:5px}.wpacu-assets-collapsible-wrap.wpacu-by-location span.wpacu-child-location-name{font-weight:600}.wpacu-assets-collapsible-wrap.wpacu-by-location span.wpacu-child-location-version{font-weight:200}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-themes .wpacu-assets-collapsible-content .wpacu-location-child-area strong{position:relative;padding:9px 10px 10px 15px;z-index:1}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content .wpacu-location-child-area strong:after,.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-themes .wpacu-assets-collapsible-content .wpacu-location-child-area strong:after{content:'';position:absolute;width:100%;left:0;bottom:0;height:1px;background-color:#fdfdfd}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content .wpacu-location-child-area strong{position:relative;padding:17px 10px 16px 46px;z-index:1}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-themes .wpacu-assets-collapsible-content .wpacu-location-child-area{margin-bottom:10px}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-assets-collapsible-content .wpacu-location-child-area{margin-top:22px;margin-bottom:14px;font-size:110%;line-height:initial}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-assets-collapsible-content .wpacu-location-child-area strong{border-top-right-radius:8px;border-top-left-radius:8px;background-color:#f9f9f9;border-left:1px solid #cdcdcd;border-top:1px solid #cdcdcd;border-bottom:1px solid transparent;border-right:1px solid #cdcdcd;position:relative;padding:10px}.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-plugin-default{position:absolute;padding:0;top:10px;left:10px;width:37px;height:37px}.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-plugin-default:not(.has-icon){color:#b4b9be;background-color:#eee;box-shadow:inset 0 0 10px rgba(160,165,170,.15);-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-plugin-default:not(.has-icon) .icon-area:before{content:"\f106";font-family:Dashicons;position:absolute;font-size:28px;line-height:28px;top:5px;left:5px}.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-plugin-default .icon-area{position:relative;width:37px;height:37px}.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content,.wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content{padding:0}.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content .wpacu_list_table,.wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content .wpacu_list_table{width:100%;margin:0}.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row td,.wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row td{border-left:hidden;border-right:hidden;border-bottom:1px solid #cdcdcd}.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row:last-child,.wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row:last-child{margin-bottom:0!important}.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row:last-child td:last-child,.wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row:last-child td:last-child{border-bottom:hidden}a.wpacu-assets-collapsible{color:#000;font-size:20px;text-decoration:none;display:block;position:relative;background-color:#f1f3f8;cursor:pointer;padding:15px 15px 15px 36px;width:auto;border:none;text-align:left;outline:0}a.wpacu-assets-collapsible>span.dashicons{font-size:25px;line-height:normal;position:absolute;top:15px;top:calc(50% - 21px);left:22px;-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}a.wpacu-assets-collapsible:hover{background-color:#f1f3f8;text-decoration:none}a.wpacu-assets-collapsible:after{position:absolute;font-size:22px;font-family:Dashicons;right:14px;top:16px}a.wpacu-assets-collapsible:not(.wpacu-assets-collapsible-active):after{content:"\f132"}a.wpacu-assets-collapsible.wpacu-assets-collapsible-active{background-color:#f1f3f8}a.wpacu-assets-collapsible.wpacu-assets-collapsible-active:after{content:"\f460"}.wpacu-assets-collapsible-content{padding:0 16px;max-height:0;overflow:hidden;background-color:#fbfbfb8c}.wpacu-assets-collapsible-content .wpacu-assets-note{margin:0;padding:15px 15px 10px}.wpacu-assets-collapsible-content>div{padding:16px 0 0}.wpacu-assets-collapsible-content>div>p:first-child{margin-top:0}.wpacu-assets-collapsible-content.wpacu-open{max-height:100%}a.wpacu-assets-inline-code-collapsible{color:inherit;font-size:14px;text-decoration:none;display:inline-block;position:relative;cursor:pointer;width:auto;outline:0;background:#f1f3f8;border:1px solid #cdcdcd;padding:4px 21px 4px 8px;margin:0 0 0 6px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}a.wpacu-assets-inline-code-collapsible:hover{border:1px solid #5c5c5c}a.wpacu-assets-inline-code-collapsible:after{position:absolute;font-size:15px;font-family:Dashicons;right:-3px;top:-1px;height:14px;width:14px;-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}a.wpacu-assets-inline-code-collapsible:not(.wpacu-assets-inline-code-collapsible-active):after{content:"\f132"}a.wpacu-assets-inline-code-collapsible.wpacu-assets-inline-code-collapsible-active:after{content:"\f460"}.wpacu-assets-inline-code-collapsible-content{font-size:80%;padding:0 8px;max-height:0;overflow:hidden;background-color:#fbfbfb8c}.wpacu-assets-inline-code-collapsible-content>div{padding:7px 8px 0}.wpacu-assets-inline-code-collapsible-content>div>p:first-child{margin-top:0}.wpacu-assets-inline-code-collapsible-content.wpacu-open{max-height:100%}.wpacu_table_wrap{margin:20px 0 0}.wpacu_table_wrap>table{border:1px solid #cdcdcd}.wpacu_table_wrap .table{width:100%;max-width:100%;margin-bottom:1rem;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.wpacu_table_wrap .table td,.wpacu_table_wrap .table th{padding:.75rem;vertical-align:top;border-top:1px solid #eceeef}.wpacu_table_wrap .table thead th{vertical-align:bottom;border-bottom:2px solid #eceeef}.wpacu_table_wrap .table tbody+tbody{border-top:2px solid #eceeef}.wpacu_table_wrap .table .table{background-color:#fff}.wpacu_table_wrap .table-sm td,.wpacu_table_wrap .table-sm th{padding:.3rem}.wpacu_table_wrap .table-bordered,.wpacu_table_wrap .table-bordered td,.wpacu_table_wrap .table-bordered th{border:1px solid #eceeef}.wpacu_table_wrap .table-bordered thead td,.wpacu_table_wrap .table-bordered thead th{border-bottom-width:2px}.wpacu_table_wrap .table-striped tbody tr:nth-of-type(even){background-color:#f9f9f9}.wpacu_table_wrap .table-striped tbody tr:nth-of-type(odd){background-color:#fff}.wpacu_table_wrap .table-active,.wpacu_table_wrap .table-active>td,.wpacu_table_wrap .table-active>th,.wpacu_table_wrap .table-hover .table-active:hover,.wpacu_table_wrap .table-hover .table-active:hover>td,.wpacu_table_wrap .table-hover .table-active:hover>th,.wpacu_table_wrap .table-hover tbody tr:hover{background-color:rgba(0,0,0,.075)}.wpacu_table_wrap .table-success,.wpacu_table_wrap .table-success>td,.wpacu_table_wrap .table-success>th{background-color:#dff0d8}.wpacu_table_wrap .table-hover .table-success:hover,.wpacu_table_wrap .table-hover .table-success:hover>td,.wpacu_table_wrap .table-hover .table-success:hover>th{background-color:#d0e9c6}.wpacu_table_wrap .table-info,.wpacu_table_wrap .table-info>td,.wpacu_table_wrap .table-info>th{background-color:#d9edf7}.wpacu_table_wrap .table-hover .table-info:hover,.wpacu_table_wrap .table-hover .table-info:hover>td,.wpacu_table_wrap .table-hover .table-info:hover>th{background-color:#c4e3f3}.wpacu_table_wrap .table-warning,.wpacu_table_wrap .table-warning>td,.wpacu_table_wrap .table-warning>th{background-color:#fcf8e3}.wpacu_table_wrap .table-hover .table-warning:hover,.wpacu_table_wrap .table-hover .table-warning:hover>td,.wpacu_table_wrap .table-hover .table-warning:hover>th{background-color:#faf2cc}.wpacu_table_wrap .table-danger,.wpacu_table_wrap .table-danger>td,.wpacu_table_wrap .table-danger>th{background-color:#f2dede}.wpacu_table_wrap .table-hover .table-danger:hover,.wpacu_table_wrap .table-hover .table-danger:hover>td,.wpacu_table_wrap .table-hover .table-danger:hover>th{background-color:#ebcccc}.wpacu_table_wrap .thead-inverse th{color:#fff;background-color:#292b2c}.wpacu_table_wrap .thead-default th{color:#464a4c;background-color:#eceeef}.wpacu_table_wrap .table-inverse{color:#fff;background-color:#292b2c}.wpacu_table_wrap .table-inverse td,.wpacu_table_wrap .table-inverse th,.wpacu_table_wrap .table-inverse thead th{border-color:#fff}.wpacu_table_wrap .table-inverse.table-bordered,.wpacu_table_wrap .table-responsive.table-bordered{border:0}.wpacu_table_wrap .table-responsive{display:block;width:100%;overflow-x:auto;-ms-overflow-style:-ms-autohiding-scrollbar}ul.hire-reasons{margin-bottom:20px}ul.hire-reasons li{font-size:14px;line-height:22px;margin-bottom:12px}ul.hire-reasons li .dashicons{font-size:23px;line-height:23px}ul.hire-reasons li .dashicons.dashicons-yes{color:green}ol.getting-started li{font-size:14px;line-height:22px;margin-bottom:8px}.wpacu-get-help-wrap p{font-size:14px}.wpacu-get-help-wrap .help-content-wrap{margin:20px 0 25px;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-moz-flex;display:-webkit-flex;display:flex;width:100%}@media only screen and (min-width:768px){.wpacu-get-help-wrap .help-content-wrap{-webkit-box-align:start;-ms-flex-align:start;-ms-grid-row-align:flex-start;align-items:flex-start}}@media only screen and (max-width:767px){.wpacu-get-help-wrap .help-content-wrap{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}}.wpacu-get-help-wrap .help-content-wrap .help-content{padding:15px;background:#fff;border:1px solid #E0E0E0;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;box-shadow:2px 3px 8px 0 #231f2038;flex:1 1 50%;margin-bottom:10px}.wpacu-get-help-wrap .help-content-wrap .help-content .content-title{margin:5px 0 15px}.wpacu-get-help-wrap .help-content-wrap .help-content .cols-wrap{width:100%;margin:0 auto;display:table}.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area{margin:5px 0 0;position:relative}.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area.col-left{float:left;width:48%}.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area.col-right{float:right;width:48%}.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area.activate-plugin img{max-width:280px}.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area img{width:99%;margin:8px 0;border:1px solid #cdcdcd;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.wpacu-get-help-wrap .help-content-wrap .help-content.upgrade-help{order:2}@media only screen and (min-width:768px){.wpacu-get-help-wrap .help-content-wrap .help-content{margin-right:24px}.wpacu-get-help-wrap .help-content-wrap .help-content.upgrade-help{margin-right:0}}.wpacu-get-help-wrap .help-content-wrap .help-content.tech-help{order:1}@media only screen and (max-width:767px){.wpacu-get-help-wrap .help-content-wrap .help-content.tech-help{margin-bottom:30px}}.wpacu-get-help-wrap .help-content-wrap .help-content ul{list-style:none;padding-left:0}.wpacu-get-help-wrap .help-content-wrap .help-content ul li{font-size:14px;line-height:22px;margin-bottom:15px}.wpacu-get-help-wrap .help-content-wrap .help-content p:last-child,.wpacu-get-help-wrap .help-content-wrap .help-content ul li:last-child{margin-bottom:0}#wpacu-license-data-remove-area{display:none;margin:10px 0 25px}#wpacu-license-data-remove-area.wpacu-visible{display:block}span#wpacu-license-data-removed-msg{display:block;padding-left:26px}#wpacu-warning-read{display:none;margin:10px 0}#wpacu-warning-read span.dashicons-warning{color:#c00}#wpacu-warning-read.wpacu-visible{display:block}#wpacu-reset-submit-area{margin:10px 0;clear:both}#wpacu-reset-submit-btn{margin:10px 0 0}.wpacu-tools-area{margin:10px 20px 0 2px}.wpacu-tools-area .wpacu-tools-container{background:#fff;padding:15px;border:1px solid #cdcdcd;width:96%}.wpacu-tools-area .wpacu-tools-container form>div:first-child{margin:0 0 10px}.wpacu-tools-area .wpacu-tools-container form .wpacu-warning{display:none;box-sizing:border-box;margin-top:10px}.wpacu-tools-area .wpacu-tools-container form .wpacu-warning p{margin:0 0 10px;line-height:22px}.wpacu-tools-area .wpacu-tools-container form .wpacu-warning p:only-child{margin:0}.wpacu-tools-area .wpacu-tools-container form .wpacu-warning ul{font-size:13px;list-style-type:disc;padding-left:30px}.wpacu-tools-area .wpacu-tools-container form .wpacu-warning.wpacu-visible{display:block}.wpacu-about-wrap .wpacu-about-text img{width:auto;height:150px;position:absolute;top:20px;right:-20px}@media only screen and (max-width:767px){.wpacu-about-wrap h1{margin:20px}.wpacu-about-wrap .wpacu-about-text img{display:none}.wpacu-about-wrap .wpacu-about-text{margin:20px}}.wpacu-about-wrap .about-wrap-content .area-title{font-size:19px;line-height:19px;margin-bottom:0}.wpacu-about-wrap hr{margin:10px 0}
classes/AdminBar.php CHANGED
@@ -101,7 +101,7 @@ class AdminBar
101
$wp_admin_bar->add_menu(array(
102
'parent' => 'assetcleanup-parent',
103
'id' => 'assetcleanup-bulk-unloaded',
104
- 'title' => 'Bulk Unloaded',
105
'href' => admin_url( 'admin.php?page=' . WPACU_PLUGIN_ID . '_bulk_unloads')
106
));
107
101
$wp_admin_bar->add_menu(array(
102
'parent' => 'assetcleanup-parent',
103
'id' => 'assetcleanup-bulk-unloaded',
104
+ 'title' => 'Bulk Unloads',
105
'href' => admin_url( 'admin.php?page=' . WPACU_PLUGIN_ID . '_bulk_unloads')
106
));
107
classes/AssetsPagesManager.php ADDED
@@ -0,0 +1,102 @@
1
+ <?php
2
+ namespace WpAssetCleanUp;
3
+
4
+ /**
5
+ * Class AssetsPagesManager
6
+ * @package WpAssetCleanUp
7
+ */
8
+ class AssetsPagesManager
9
+ {
10
+ /**
11
+ * @var array
12
+ */
13
+ public $data = array();
14
+
15
+ /**
16
+ * AssetsPagesManager constructor.
17
+ *
18
+ * @param $data
19
+ */
20
+ public function __construct()
21
+ {
22
+ $this->data = array('for' => 'homepage'); // default
23
+
24
+ if (isset($_GET['wpacu_for']) && $_GET['wpacu_for'] !== '') {
25
+ $this->data['for'] = sanitize_text_field($_GET['wpacu_for']);
26
+ }
27
+
28
+ if (isset($_GET['page'])) {
29
+ $this->data['page'] = $_GET['page'];
30
+ }
31
+
32
+ if ($this->data['for'] === 'homepage') {
33
+ $wpacuSettings = new Settings;
34
+ $this->data['wpacu_settings'] = $wpacuSettings->getAll();
35
+
36
+ $this->homepage();
37
+ }
38
+ }
39
+
40
+ /**
41
+ *
42
+ */
43
+ public function homepage()
44
+ {
45
+ $this->data['nonce_name'] = WPACU_PLUGIN_ID . '_home_page_update';
46
+ $this->data['show_on_front'] = Misc::getShowOnFront();
47
+
48
+ $isHomePageEdit = ( Misc::getVar('get', 'page') === WPACU_PLUGIN_ID . '_assets_manager'
49
+ && $this->data['for'] === 'homepage' );
50
+
51
+ // Only continue if we are on the plugin's homepage edit mode
52
+ if (! $isHomePageEdit) {
53
+ return;
54
+ }
55
+
56
+ if ($this->data['show_on_front'] === 'page') {
57
+ // Front page displays: A Static Page
58
+ $this->data['page_on_front'] = get_option('page_on_front');
59
+
60
+ if ($this->data['page_on_front']) {
61
+ $this->data['page_on_front_title'] = get_the_title($this->data['page_on_front']);
62
+ }
63
+
64
+ $this->data['page_for_posts'] = get_option('page_for_posts');
65
+
66
+ if ($this->data['page_for_posts']) {
67
+ $this->data['page_for_posts_title'] = get_the_title($this->data['page_for_posts']);
68
+ }
69
+ } else {
70
+ // Your latest posts
71
+ $postUrl = get_site_url();
72
+
73
+ if (substr($postUrl, -1) !== '/') {
74
+ $postUrl .= '/';
75
+ }
76
+
77
+ $this->data['site_url'] = $postUrl;
78
+ }
79
+
80
+ if (! empty($_POST)) {
81
+ // Update action?
82
+ $wpacuNoLoadAssets = Misc::getVar( 'post', WPACU_PLUGIN_ID, array() );
83
+ $wpacuHomePageUpdate = Misc::getVar( 'post', 'wpacu_manage_home_page_assets', false );
84
+
85
+ // Could Be an Empty Array as Well so just is_array() is enough to use
86
+ if ( is_array( $wpacuNoLoadAssets ) && $wpacuHomePageUpdate ) {
87
+ check_admin_referer( $this->data['nonce_name'] );
88
+
89
+ $wpacuUpdate = new Update;
90
+ $wpacuUpdate->updateFrontPage( $wpacuNoLoadAssets );
91
+ }
92
+ }
93
+ }
94
+
95
+ /**
96
+ *
97
+ */
98
+ public function page()
99
+ {
100
+ Main::instance()->parseTemplate('admin-page-assets-manager', $this->data, true);
101
+ }
102
+ }
classes/HomePage.php DELETED
@@ -1,76 +0,0 @@
1
- <?php
2
- namespace WpAssetCleanUp;
3
-
4
- /**
5
- * Class HomePage
6
- * @package WpAssetCleanUp
7
- */
8
- class HomePage
9
- {
10
- /**
11
- * @var array
12
- */
13
- public $data = array();
14
-
15
- /**
16
- * Settings constructor.
17
- */
18
- public function __construct()
19
- {
20
- $this->data['nonce_name'] = WPACU_PLUGIN_ID . '_home_page_update';
21
- $this->data['show_on_front'] = Misc::getShowOnFront();
22
-
23
- $isHomePageEdit = ( Misc::getVar('get', 'page') === WPACU_PLUGIN_ID . '_home_page');
24
-
25
- // Only continue if we are on the plugin's homepage edit mode
26
- if (! $isHomePageEdit) {
27
- return;
28
- }
29
-
30
- if ($this->data['show_on_front'] === 'page') {
31
- // Front page displays: A Static Page
32
- $this->data['page_on_front'] = get_option('page_on_front');
33
-
34
- if ($this->data['page_on_front']) {
35
- $this->data['page_on_front_title'] = get_the_title($this->data['page_on_front']);
36
- }
37
-
38
- $this->data['page_for_posts'] = get_option('page_for_posts');
39
-
40
- if ($this->data['page_for_posts']) {
41
- $this->data['page_for_posts_title'] = get_the_title($this->data['page_for_posts']);
42
- }
43
- } else {
44
- // Your latest posts
45
- $postUrl = get_site_url();
46
-
47
- if (substr($postUrl, -1) !== '/') {
48
- $postUrl .= '/';
49
- }
50
-
51
- $this->data['site_url'] = $postUrl;
52
- }
53
- }
54
-
55
- /**
56
- *
57
- */
58
- public function page()
59
- {
60
- $wpacuNoLoadAssets = Misc::getVar('post', WPACU_PLUGIN_ID, array());
61
- $wpacuHomePageUpdate = Misc::getVar('post', 'wpacu_manage_home_page_assets', false);
62
-
63
- // Could Be an Empty Array as Well so just is_array() is enough to use
64
- if (is_array($wpacuNoLoadAssets) && ! empty($wpacuNoLoadAssets) && $wpacuHomePageUpdate) {
65
- check_admin_referer($this->data['nonce_name']);
66
-
67
- $wpacuUpdate = new Update;
68
- $wpacuUpdate->updateFrontPage($wpacuNoLoadAssets);
69
- }
70
-
71
- $wpacuSettings = new Settings;
72
- $this->data['wpacu_settings'] = $wpacuSettings->getAll();
73
-
74
- Main::instance()->parseTemplate('admin-page-settings-homepage', $this->data, true);
75
- }
76
- }
classes/Main.php CHANGED
@@ -116,26 +116,11 @@ class Main
116
public $isAjaxCall = false;
117
118
/**
119
* @var array
120
*/
121
- public $skipStyles = array(
122
- 'admin-bar', // The top admin bar
123
- WPACU_PLUGIN_ID . '-style', // Asset CleanUp Styling (for admin use only)
124
- 'yoast-seo-adminbar', // Yoast "WordPress SEO" plugin
125
- 'autoptimize-toolbar',
126
- 'query-monitor'
127
-
128
- );
129
-
130
- /**
131
- * @var array
132
- */
133
- public $skipScripts = array(
134
- 'admin-bar',
135
- WPACU_PLUGIN_ID . '-script',
136
- 'autoptimize-toolbar',
137
- 'query-monitor'
138
- );
139
140
/**
141
* @var Main|null
@@ -159,6 +144,21 @@ class Main
159
*/
160
public function __construct()
161
{
162
if (array_key_exists(WPACU_LOAD_ASSETS_REQ_KEY, $_REQUEST)) {
163
add_filter('w3tc_minify_enable', '__return_false');
164
}
@@ -612,7 +612,7 @@ class Main
612
// Default
613
$exceptionsListJson = '';
614
615
- $homepageClass = new HomePage;
616
617
// Post or Post of the Homepage (if chosen in the Dashboard)
618
if ($type === 'post'
@@ -834,12 +834,12 @@ class Main
834
if (! empty($stylesList)) {
835
/* These styles below are used by this plugin (except admin-bar) and they should not show in the list
836
as they are loaded only when you (or other admin) manage the assets, never for your website visitors */
837
- if (is_admin_bar_showing()) {
838
- $this->skipStyles[] = 'dashicons';
839
}
840
841
foreach ($manageStyles as $handle) {
842
- if (in_array($handle, $this->skipStyles) || (! isset($stylesList[$handle]))) {
843
continue;
844
}
845
@@ -888,7 +888,7 @@ class Main
888
/* These scripts below are used by this plugin (except admin-bar) and they should not show in the list
889
as they are loaded only when you (or other admin) manage the assets, never for your website visitors */
890
foreach ($manageScripts as $handle) {
891
- if (in_array($handle, $this->skipScripts) || (! isset($scriptsList[$handle]))) {
892
continue;
893
}
894
116
public $isAjaxCall = false;
117
118
/**
119
+ * Populated in the Parser constructor
120
+ *
121
* @var array
122
*/
123
+ public $skipAssets = array('styles' => array(), 'scripts' => array());
124
125
/**
126
* @var Main|null
144
*/
145
public function __construct()
146
{
147
+ $this->skipAssets['styles'] = array(
148
+ WPACU_PLUGIN_ID . '-style', // Asset CleanUp Styling (for admin use only)
149
+ 'admin-bar', // The top admin bar
150
+ 'yoast-seo-adminbar', // Yoast "WordPress SEO" plugin
151
+ 'autoptimize-toolbar',
152
+ 'query-monitor'
153
+ );
154
+
155
+ $this->skipAssets['scripts'] = array(
156
+ WPACU_PLUGIN_ID . '-script', // Asset CleanUp Script (for admin use only)
157
+ 'admin-bar', // The top admin bar
158
+ 'autoptimize-toolbar',
159
+ 'query-monitor'
160
+ );
161
+
162
if (array_key_exists(WPACU_LOAD_ASSETS_REQ_KEY, $_REQUEST)) {
163
add_filter('w3tc_minify_enable', '__return_false');
164
}
612
// Default
613
$exceptionsListJson = '';
614
615
+ $homepageClass = new AssetsPagesManager;
616
617
// Post or Post of the Homepage (if chosen in the Dashboard)
618
if ($type === 'post'
834
if (! empty($stylesList)) {
835
/* These styles below are used by this plugin (except admin-bar) and they should not show in the list
836
as they are loaded only when you (or other admin) manage the assets, never for your website visitors */
837
+ if (is_admin_bar_showing() && is_admin()) {
838
+ $this->skipAssets['styles'][] = 'dashicons';
839
}
840
841
foreach ($manageStyles as $handle) {
842
+ if (in_array($handle, $this->skipAssets['styles']) || (! isset($stylesList[$handle]))) {
843
continue;
844
}
845
888
/* These scripts below are used by this plugin (except admin-bar) and they should not show in the list
889
as they are loaded only when you (or other admin) manage the assets, never for your website visitors */
890
foreach ($manageScripts as $handle) {
891
+ if (in_array($handle, $this->skipAssets['scripts']) || (! isset($scriptsList[$handle]))) {
892
continue;
893
}
894
classes/Menu.php CHANGED
@@ -10,19 +10,19 @@ class Menu
10
/**
11
* @var string
12
*/
13
- static private $capability = 'administrator';
14
15
/**
16
* @var string
17
*/
18
- static private $slug;
19
20
/**
21
* Menu constructor.
22
*/
23
public function __construct()
24
{
25
- self::$slug = WPACU_PLUGIN_ID . '_getting_started';
26
27
add_action('admin_menu', array($this, 'activeMenu'));
28
@@ -45,83 +45,74 @@ class Menu
45
add_menu_page(
46
__('Asset CleanUp', WPACU_PLUGIN_TEXT_DOMAIN),
47
__('Asset CleanUp', WPACU_PLUGIN_TEXT_DOMAIN),
48
- self::$capability,
49
- self::$slug,
50
array(new Info, 'gettingStarted'),
51
WPACU_PLUGIN_URL.'/assets/icons/icon-asset-cleanup.png'
52
);
53
54
add_submenu_page(
55
- self::$slug,
56
__('Settings', WPACU_PLUGIN_TEXT_DOMAIN),
57
__('Settings', WPACU_PLUGIN_TEXT_DOMAIN),
58
- self::$capability,
59
WPACU_PLUGIN_ID . '_settings',
60
array(new Settings, 'settingsPage')
61
);
62
63
add_submenu_page(
64
- self::$slug,
65
- __('Home Page', WPACU_PLUGIN_TEXT_DOMAIN),
66
- __('Home Page', WPACU_PLUGIN_TEXT_DOMAIN),
67
- self::$capability,
68
- WPACU_PLUGIN_ID . '_home_page',
69
- array(new HomePage, 'page')
70
- );
71
-
72
- add_submenu_page(
73
- self::$slug,
74
- __('Pages Info', WPACU_PLUGIN_TEXT_DOMAIN),
75
- __('Pages Info', WPACU_PLUGIN_TEXT_DOMAIN),
76
- self::$capability,
77
- WPACU_PLUGIN_ID . '_pages_info',
78
- array(new Info, 'pagesInfo')
79
- );
80
-
81
- add_submenu_page(
82
- self::$slug,
83
- __('Bulk Unloaded', WPACU_PLUGIN_TEXT_DOMAIN),
84
- __('Bulk Unloaded', WPACU_PLUGIN_TEXT_DOMAIN),
85
- self::$capability,
86
WPACU_PLUGIN_ID . '_bulk_unloads',
87
array(new BulkUnloads, 'pageBulkUnloads')
88
);
89
90
add_submenu_page(
91
- self::$slug,
92
__('Tools', WPACU_PLUGIN_TEXT_DOMAIN),
93
__('Tools', WPACU_PLUGIN_TEXT_DOMAIN),
94
- self::$capability,
95
WPACU_PLUGIN_ID . '_tools',
96
array(new Tools, 'toolsPage')
97
);
98
99
- // Get Help | Support Page
100
add_submenu_page(
101
- self::$slug,
102
__('License', WPACU_PLUGIN_TEXT_DOMAIN),
103
__('License', WPACU_PLUGIN_TEXT_DOMAIN),
104
- self::$capability,
105
WPACU_PLUGIN_ID . '_license',
106
array(new Info, 'license')
107
);
108
109
// Get Help | Support Page
110
add_submenu_page(
111
- self::$slug,
112
__('Help', WPACU_PLUGIN_TEXT_DOMAIN),
113
__('Help', WPACU_PLUGIN_TEXT_DOMAIN),
114
- self::$capability,
115
WPACU_PLUGIN_ID . '_get_help',
116
array(new Info, 'help')
117
);
118
119
// Upgrade to "Go Pro" | Redirects to sale page
120
add_submenu_page(
121
- self::$slug,
122
__('Go Pro', WPACU_PLUGIN_TEXT_DOMAIN),
123
__('Go Pro', WPACU_PLUGIN_TEXT_DOMAIN) . ' <span style="font-size: 16px;" class="dashicons dashicons-star-filled"></span>',
124
- self::$capability,
125
WPACU_PLUGIN_ID . '_go_pro',
126
function() {}
127
);
@@ -130,13 +121,13 @@ class Menu
130
// For easier navigation
131
$GLOBALS['submenu']['options-general.php'][] = array(
132
__('Asset CleanUp', WPACU_PLUGIN_TEXT_DOMAIN),
133
- self::$capability,
134
admin_url( 'admin.php?page=' . WPACU_PLUGIN_ID . '_settings'),
135
__('Asset CleanUp', WPACU_PLUGIN_TEXT_DOMAIN),
136
);
137
138
// Rename first item from the menu which has the same title as the menu page
139
- $GLOBALS['submenu'][self::$slug][0][0] = esc_attr__('Getting Started', WPACU_PLUGIN_TEXT_DOMAIN);
140
}
141
142
/**
@@ -144,6 +135,6 @@ class Menu
144
*/
145
public static function userCanManageAssets()
146
{
147
- return current_user_can(self::$capability) && current_user_can('activate_plugins');
148
}
149
}
10
/**
11
* @var string
12
*/
13
+ private static $_capability = 'administrator';
14
15
/**
16
* @var string
17
*/
18
+ private static $_slug;
19
20
/**
21
* Menu constructor.
22
*/
23
public function __construct()
24
{
25
+ self::$_slug = WPACU_PLUGIN_ID . '_getting_started';
26
27
add_action('admin_menu', array($this, 'activeMenu'));
28
45
add_menu_page(
46
__('Asset CleanUp', WPACU_PLUGIN_TEXT_DOMAIN),
47
__('Asset CleanUp', WPACU_PLUGIN_TEXT_DOMAIN),
48
+ self::$_capability,
49
+ self::$_slug,
50
array(new Info, 'gettingStarted'),
51
WPACU_PLUGIN_URL.'/assets/icons/icon-asset-cleanup.png'
52
);
53
54
add_submenu_page(
55
+ self::$_slug,
56
+ __('CSS &amp; JS Manager', WPACU_PLUGIN_TEXT_DOMAIN),
57
+ __('CSS &amp; JS Manager', WPACU_PLUGIN_TEXT_DOMAIN),
58
+ self::$_capability,
59
+ WPACU_PLUGIN_ID . '_assets_manager',
60
+ array(new AssetsPagesManager, 'page')
61
+ );
62
+
63
+ add_submenu_page(
64
+ self::$_slug,
65
__('Settings', WPACU_PLUGIN_TEXT_DOMAIN),
66
__('Settings', WPACU_PLUGIN_TEXT_DOMAIN),
67
+ self::$_capability,
68
WPACU_PLUGIN_ID . '_settings',
69
array(new Settings, 'settingsPage')
70
);
71
72
add_submenu_page(
73
+ self::$_slug,
74
+ __('Bulk Unloads', WPACU_PLUGIN_TEXT_DOMAIN),
75
+ __('Bulk Unloads', WPACU_PLUGIN_TEXT_DOMAIN),
76
+ self::$_capability,
77
WPACU_PLUGIN_ID . '_bulk_unloads',
78
array(new BulkUnloads, 'pageBulkUnloads')
79
);
80
81
add_submenu_page(
82
+ self::$_slug,
83
__('Tools', WPACU_PLUGIN_TEXT_DOMAIN),
84
__('Tools', WPACU_PLUGIN_TEXT_DOMAIN),
85
+ self::$_capability,
86
WPACU_PLUGIN_ID . '_tools',
87
array(new Tools, 'toolsPage')
88
);
89
90
+ // License Page
91
add_submenu_page(
92
+ self::$_slug,
93
__('License', WPACU_PLUGIN_TEXT_DOMAIN),
94
__('License', WPACU_PLUGIN_TEXT_DOMAIN),
95
+ self::$_capability,
96
WPACU_PLUGIN_ID . '_license',
97
array(new Info, 'license')
98
);
99
100
// Get Help | Support Page
101
add_submenu_page(
102
+ self::$_slug,
103
__('Help', WPACU_PLUGIN_TEXT_DOMAIN),
104
__('Help', WPACU_PLUGIN_TEXT_DOMAIN),
105
+ self::$_capability,
106
WPACU_PLUGIN_ID . '_get_help',
107
array(new Info, 'help')
108
);
109
110
// Upgrade to "Go Pro" | Redirects to sale page
111
add_submenu_page(
112
+ self::$_slug,
113
__('Go Pro', WPACU_PLUGIN_TEXT_DOMAIN),
114
__('Go Pro', WPACU_PLUGIN_TEXT_DOMAIN) . ' <span style="font-size: 16px;" class="dashicons dashicons-star-filled"></span>',
115
+ self::$_capability,
116
WPACU_PLUGIN_ID . '_go_pro',
117
function() {}
118
);
121
// For easier navigation
122
$GLOBALS['submenu']['options-general.php'][] = array(
123
__('Asset CleanUp', WPACU_PLUGIN_TEXT_DOMAIN),
124
+ self::$_capability,
125
admin_url( 'admin.php?page=' . WPACU_PLUGIN_ID . '_settings'),
126
__('Asset CleanUp', WPACU_PLUGIN_TEXT_DOMAIN),
127
);
128
129
// Rename first item from the menu which has the same title as the menu page
130
+ $GLOBALS['submenu'][self::$_slug][0][0] = esc_attr__('Getting Started', WPACU_PLUGIN_TEXT_DOMAIN);
131
}
132
133
/**
135
*/
136
public static function userCanManageAssets()
137
{
138
+ return current_user_can(self::$_capability) && current_user_can('activate_plugins');
139
}
140
}
classes/OptimiseAssets/CombineCommon.php CHANGED
@@ -28,7 +28,7 @@ class CombineCommon
28
}
29
30
add_action('admin_post_assetcleanup_clear_assets_cache', function() {
31
- $this->clearAllCache(true);
32
});
33
}
34
@@ -327,7 +327,7 @@ class CombineCommon
327
* there could be cache plugins still having cached pages that load specific merged files,
328
* to avoid breaking the layout/functionality
329
*/
330
- public function clearAllCache($redirectAfter = false, $keepAssetFiles = true)
331
{
332
if (self::doNotClearAllCache()) {
333
return;
28
}
29
30
add_action('admin_post_assetcleanup_clear_assets_cache', function() {
31
+ self::clearAllCache(true);
32
});
33
}
34
327
* there could be cache plugins still having cached pages that load specific merged files,
328
* to avoid breaking the layout/functionality
329
*/
330
+ public static function clearAllCache($redirectAfter = false, $keepAssetFiles = true)
331
{
332
if (self::doNotClearAllCache()) {
333
return;
classes/OptimiseAssets/CombineCss.php CHANGED
@@ -25,9 +25,6 @@ class CombineCss
25
*/
26
public $jsonStorageFile = 'css-combined{maybe-extra-info}.json';
27
28
- /**
29
- *
30
- */
31
public function init()
32
{
33
add_action('wp_loaded', function() {
25
*/
26
public $jsonStorageFile = 'css-combined{maybe-extra-info}.json';
27
28
public function init()
29
{
30
add_action('wp_loaded', function() {
classes/OwnAssets.php CHANGED
@@ -102,7 +102,7 @@ class OwnAssets
102
return;
103
}
104
105
- $page = isset($_GET['page']) ? $_GET['page'] : '';
106
$getPostId = isset($_GET['post']) ? (int)$_GET['post'] : '';
107
108
// Only load the plugin's assets when they are needed
102
return;
103
}
104
105
+ $page = Misc::getVar('get', 'page');
106
$getPostId = isset($_GET['post']) ? (int)$_GET['post'] : '';
107
108
// Only load the plugin's assets when they are needed
classes/Settings.php CHANGED
@@ -300,8 +300,7 @@ class Settings
300
public static function clearAllCache()
301
{
302
// Clear "Combined CSS/JS Loaded Files" Cache
303
- $combineCommon = new OptimiseAssets\CombineCommon();
304
- $combineCommon->clearAllCache();
305
306
}
307
}
300
public static function clearAllCache()
301
{
302
// Clear "Combined CSS/JS Loaded Files" Cache
303
+ CombineCommon::clearAllCache();
304
305
}
306
}
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: pagespeed, page speed, dequeue, performance, gtmetrix
4
Donate link: https://gabelivan.com/items/wp-asset-cleanup-pro/?utm_source=wp_org_lite&utm_medium=donate
5
Requires at least: 4.4
6
Tested up to: 5.0.3
7
- Stable tag: 1.2.9.5
8
License: GPLv3
9
License URI: http://www.gnu.org/licenses/gpl.html
10
@@ -131,6 +131,9 @@ With the recently released "Test Mode" feature, you can safely unload assets on
131
4. Scripts (.JS) are selected for site-wide unload
132
133
== Changelog ==
134
= 1.2.9.5 =
135
* Changed the way the combined loaded CSS files caching is stored (/wp-content/cache/asset-cleanup/); Transients are not used anymore to avoid having too many records in the options table
136
* Clear cache now keeps the old merge CSS files in the "cache/asset-cleanup" folder in case a cached page still makes reference to any of the files
4
Donate link: https://gabelivan.com/items/wp-asset-cleanup-pro/?utm_source=wp_org_lite&utm_medium=donate
5
Requires at least: 4.4
6
Tested up to: 5.0.3
7
+ Stable tag: 1.2.9.6
8
License: GPLv3
9
License URI: http://www.gnu.org/licenses/gpl.html
10
131
4. Scripts (.JS) are selected for site-wide unload
132
133
== Changelog ==
134
+ = 1.2.9.6 =
135
+ * Bug Fix: After post/page update, a fatal error was showing on calling a method that doesn't exist
136
+
137
= 1.2.9.5 =
138
* Changed the way the combined loaded CSS files caching is stored (/wp-content/cache/asset-cleanup/); Transients are not used anymore to avoid having too many records in the options table
139
* Clear cache now keeps the old merge CSS files in the "cache/asset-cleanup" folder in case a cached page still makes reference to any of the files
templates/_top-area.php CHANGED
@@ -12,19 +12,14 @@ $wpacu_top_area_links = array(
12
'title' => 'Settings',
13
'page' => 'wpassetcleanup_settings'
14
),
15
- 'admin.php?page=wpassetcleanup_home_page' => array(
16
- 'icon' => '<span class="dashicons dashicons-admin-home"></span>',
17
- 'title' => 'Homepage',
18
- 'page' => 'wpassetcleanup_home_page',
19
- ),
20
- 'admin.php?page=wpassetcleanup_pages_info' => array(
21
- 'icon' => '<span class="dashicons dashicons-info"></span>',
22
- 'title' => 'Pages Info',
23
- 'page' => 'wpassetcleanup_pages_info'
24
),
25
'admin.php?page=wpassetcleanup_bulk_unloads' => array(
26
'icon' => '<span class="dashicons dashicons-networking"></span>',
27
- 'title' => 'Bulk Unloaded',
28
'page' => 'wpassetcleanup_bulk_unloads'
29
),
30
'admin.php?page=wpassetcleanup_tools' => array(
12
'title' => 'Settings',
13
'page' => 'wpassetcleanup_settings'
14
),
15
+ 'admin.php?page=wpassetcleanup_assets_manager' => array(
16
+ 'icon' => '<span class="dashicons dashicons-media-code"></span>',
17
+ 'title' => 'CSS &amp; JavaScript Load Manager',
18
+ 'page' => 'wpassetcleanup_assets_manager',
19
),
20
'admin.php?page=wpassetcleanup_bulk_unloads' => array(
21
'icon' => '<span class="dashicons dashicons-networking"></span>',
22
+ 'title' => 'Bulk Unloads',
23
'page' => 'wpassetcleanup_bulk_unloads'
24
),
25
'admin.php?page=wpassetcleanup_tools' => array(
templates/admin-page-assets-manager.php ADDED
@@ -0,0 +1,27 @@
1
+ <?php
2
+ /*
3
+ * No direct access to this file
4
+ */
5
+ if (! isset($data)) {
6
+ exit;
7
+ }
8
+
9
+ include_once '_top-area.php';
10
+ ?>
11
+
12
+ <div class="wpacu-wrap">
13
+ <nav class="nav-tab-wrapper">
14
+ <a href="<?php echo admin_url('admin.php?page=wpassetcleanup_assets_manager&wpacu_for=homepage'); ?>" class="nav-tab <?php if ($data['for'] === 'homepage') { ?>nav-tab-active<?php } ?>">Homepage</a>
15
+ <a href="<?php echo admin_url('admin.php?page=wpassetcleanup_assets_manager&wpacu_for=all_other_pages'); ?>" class="nav-tab <?php if ($data['for'] === 'all_other_pages') { ?>nav-tab-active<?php } ?>">All Other Pages</a>
16
+ </nav>
17
+
18
+ <div class="wpacu-clearfix"></div>
19
+
20
+ <?php
21
+ if ($data['for'] === 'homepage') {
22
+ include_once 'admin-page-child-settings-homepage.php';
23
+ } elseif ($data['for'] === 'all_other_pages') {
24
+ include_once 'admin-page-child-pages-info.php';
25
+ }
26
+ ?>
27
+ </div>
templates/admin-page-child-pages-info.php ADDED
@@ -0,0 +1,226 @@
1
+ <?php
2
+ /*
3
+ * No direct access to this file
4
+ */
5
+ if (! isset($data)) {
6
+ exit;
7
+ }
8
+
9
+ // [wpacu_lite]
10
+ $availableForPro = '<a href="'.WPACU_PLUGIN_GO_PRO_URL.'?utm_source=plugin_pages_info_lock_page_type" class="go-pro-link-no-style"><span class="wpacu-tooltip">Available for Pro users<br />Click to upgrade!</span> <img width="20" height="20" src="'.WPACU_PLUGIN_URL.'/assets/icons/icon-lock.svg" valign="top" alt="" /></a>';
11
+ $availableForProBtn = '<a class="button button-disabled go-pro-link-no-style" style="font-style: normal;" href="'.WPACU_PLUGIN_GO_PRO_URL.'?utm_source=plugin_pages_info_lock_action_btn"><span class="wpacu-tooltip wpacu-on-pages-btn">Available for Pro users<br />Click to upgrade!</span>Manage Assets</a>';
12
+ // [/wpacu_lite]
13
+ ?>
14
+ <div id="wpacu-pages-info-area" class="wpacu-wrap">
15
+ <div style="margin: 20px 0 0;" class="wpacu-notice-info">
16
+ <p>This is an overview of all the WordPress pages where Asset CleanUp can be used to unload unused CSS &amp; JavaScript files. Unloading assets (CSS &amp; JavaScript) for page types that have a locker next to their name requires an <a href="<?php echo WPACU_PLUGIN_GO_PRO_URL; ?>?utm_source=plugin_pages_info&utm_medium=top_note">upgrade to the Pro version</a>.</p>
17
+ </div>
18
+
19
+ <div class="wpacu_table_wrap">
20
+ <table class="table table-striped">
21
+ <thead class="thead-default">
22
+ <tr>
23
+ <th align="left">PAGE TYPE</th>
24
+ <th align="left">ACTION</th>
25
+ <th align="left">DESCRIPTION</th>
26
+ </tr>
27
+ </thead>
28
+ <tbody>
29
+ <!--
30
+ -->
31
+ <tr>
32
+ <td width="16%"><strong>Posts</strong></td>
33
+ <td><a class="button" id="wpacu-manage-assets-posts-info-btn" href="#wpacu-manage-assets-posts-info">Manage Assets</a></td>
34
+ <td>Post Type: 'post' (e.g. blog entries) &#10230; <a href="https://codex.wordpress.org/Posts_Screen">read more</a></td>
35
+ </tr>
36
+ <tr>
37
+ <td><strong>Custom Post Type</strong></td>
38
+ <td><a class="button" id="wpacu-manage-assets-custom-post-type-info-btn" href="#wpacu-manage-assets-custom-post-type-info">Manage Assets</a></td>
39
+ <td>Popular examples: 'product' created by WooCommerce, 'download' created by Easy Digital Downloads etc. &#10230; <a href="https://codex.wordpress.org/Post_Types#Custom_Post_Types">read more</a></td>
40
+ </tr>
41
+ <tr>
42
+ <td><strong>Pages</strong></td>
43
+ <td><a class="button" id="wpacu-manage-assets-pages-info-btn" href="#wpacu-manage-assets-pages-info">Manage Assets</a></td>
44
+ <td>Post Type: 'page' (e.g. About us, Contact) &#10230; <a href="https://codex.wordpress.org/Pages_Screen">read more</a></td>
45
+ </tr>
46
+ <tr>
47
+ <td><strong>Media Attachment</strong></td>
48
+ <td><a class="button" id="wpacu-manage-assets-attachments-info-btn" href="#wpacu-manage-assets-attachments-info">Manage Assets</a></td>
49
+ <td>Post Type: 'attachment' (e.g. files from <a target="_blank" href="https://codex.wordpress.org/Media_Library_Screen">"Media" &#187; "Library"</a>, the page loaded usually prints the image or other media type) &#10230; <a href="https://codex.wordpress.org/Edit_Media">read more</a></td>
50
+ </tr>
51
+ <tr>
52
+ <td><strong>Categories</strong><?php echo $availableForPro; ?></td>
53
+ <td><?php echo $availableForProBtn; ?></td>
54
+ <td>Default Taxonomy (they are found in "Posts" &#187; "Categories", accessing a category link reveals all the posts from that category) &#10230; <a href="https://codex.wordpress.org/Posts_Categories_Screen">read more</a></td>
55
+ </tr>
56
+ <tr>
57
+ <td><strong>Tags</strong><?php echo $availableForPro; ?></td>
58
+ <td><?php echo $availableForProBtn; ?></td>
59
+ <td>Default Taxonomy (they are found in "Posts" &#187; "Tags", accessing a tag link reveals all the posts associated with the tag) &#10230; <a href="https://codex.wordpress.org/Posts_Tags_Screen">read more</a></td>
60
+ </tr>
61
+ <tr>
62
+ <td><strong>Custom Taxonomy</strong><?php echo $availableForPro; ?></td>
63
+ <td><?php echo $availableForProBtn; ?></td>
64
+ <td>Popular examples: 'product_cat' created by WooCommerce, 'download_category' created by Easy Digital Downloads etc. &#10230; <a href="https://codex.wordpress.org/Taxonomies#Custom_Taxonomies">read more</a></td>
65
+ </tr>
66
+ <tr>
67
+ <td><strong>Search</strong><?php echo $availableForPro; ?></td>
68
+ <td><?php echo $availableForProBtn; ?></td>
69
+ <td>Default Search Template (search.php &#187; this is the template that displays the search results; the query parameter "s" is within the URL). If you create a <a href="https://codex.wordpress.org/Creating_a_Search_Page">Search Page</a>, it will belong to the "Pages" page type. The assets can be unloaded <strong>only in the front-end view</strong> (<em>"Manage in the Front-end?" from "Settings" tab has to be enabled</em>).</td>
70
+ </tr>
71
+ <tr>
72
+ <td><strong>Author</strong><?php echo $availableForPro; ?></td>
73
+ <td><?php echo $availableForProBtn; ?></td>
74
+ <td>Shows all posts belonging to a specific author (e.g. https://yourwebsite.com/author/yourname/). The assets can be unloaded <strong>only in the front-end view</strong> (<em>"Manage in the Front-end?" from "Settings" tab has to be enabled</em>).</td>
75
+ </tr>
76
+ <tr>
77
+ <td><strong>Date</strong><?php echo $availableForPro; ?></td>
78
+ <td><?php echo $availableForProBtn; ?></td>
79
+ <td>Shows all posts based on the chosen date (e.g. https://yourwebsite.com/2018/08/). The assets can be unloaded <strong>only in the front-end view</strong> (<em>"Manage in the Front-end?" from "Settings" tab has to be enabled</em>).</td>
80
+ </tr>
81
+ <tr>
82
+ <td><strong>404 Not Found</strong><?php echo $availableForPro; ?></td>
83
+ <td><?php echo $availableForProBtn; ?></td>
84
+ <td>This page (404.php within the theme) is reached when a request is not valid. It could be an old link that is not used anymore or the visitor typed the wrong URL to an article etc. (e.g. https://yourwebsite.com/this-is-a-non-existent-page.html). The assets can be unloaded <strong>only in the front-end view</strong> (<em>"Manage in the Front-end?" from "Settings" tab has to be enabled</em>). &#10230; <a href="https://codex.wordpress.org/Creating_an_Error_404_Page">read more</a></td>
85
+ </tr>
86
+ </tbody>
87
+ </table>
88
+ </div>
89
+
90
+ <!-- Start "Posts" Modal -->
91
+ <div id="wpacu-manage-assets-posts-info" class="wpacu-modal">
92
+ <div class="wpacu-modal-content">
93
+ <span class="wpacu-close">&times;</span>
94
+ <h2>Posts</h2>
95
+ <p style="margin-bottom: 0;">&#10230; If "Manage in the Dashboard?" is enabled:</p>
96
+ <p style="margin-top: 0;">Go to "Posts" -&gt; "All Posts" -&gt; [Choose the page you want to manage the assets for] -&gt; Scroll to "Asset CleanUp" meta box where you will see the loaded CSS &amp; JavaScript files</p>
97
+ <hr />
98
+ <p style="margin-bottom: 0;">&#10230; If "Manage in the Front-end?" is enabled and you're logged in:</p>
99
+ <p style="margin-top: 0;">Go to the page where you want to manage the files and scroll to the bottom of the page where you will see the list.</p>
100
+ </div>
101
+ </div>
102
+ <!-- End "Posts" Modal -->
103
+
104
+ <!-- Start "Custom Post Type" Modal -->
105
+ <div id="wpacu-manage-assets-custom-post-type-info" class="wpacu-modal">
106
+ <div class="wpacu-modal-content">
107
+ <span class="wpacu-close">&times;</span>
108
+ <h2>Custom Post Type</h2>
109
+ <p><strong>Example:</strong> WooCommerce product</p>
110
+ <p style="margin-bottom: 0;">&#10230; If "Manage in the Dashboard?" is enabled:</p>
111
+ <p style="margin-top: 0;">Go to "Products" -&gt; "All Products" -&gt; [Choose the page you want to manage the assets for] -&gt; Scroll to "Asset CleanUp" meta box where you will see the loaded CSS &amp; JavaScript files</p>
112
+ <hr />
113
+ <p style="margin-bottom: 0;">&#10230; If "Manage in the Front-end?" is enabled and you're logged in:</p>
114
+ <p style="margin-top: 0;">Go to the product page where you want to manage the files and scroll to the bottom of the page where you will see the list.</p>
115
+ </div>
116
+ </div>
117
+ <!-- End "Custom Post Type" Modal -->
118
+
119
+ <!-- Start "Pages" Modal -->
120
+ <div id="wpacu-manage-assets-pages-info" class="wpacu-modal">
121
+ <div class="wpacu-modal-content">
122
+ <span class="wpacu-close">&times;</span>
123
+ <h2>Pages</h2>
124
+ <p style="margin-bottom: 0;">&#10230; If "Manage in the Dashboard?" is enabled:</p>
125
+ <p style="margin-top: 0;">Go to "Pages" -&gt; "All Pages" -&gt; [Choose the page you want to manage the assets for] -&gt; Scroll to "Asset CleanUp" meta box where you will see the loaded CSS &amp; JavaScript files</p>
126
+ <hr />
127
+ <p style="margin-bottom: 0;">&#10230; If "Manage in the Front-end?" is enabled and you're logged in:</p>
128
+ <p style="margin-top: 0;">Go to the product page where you want to manage the files and scroll to the bottom of the page where you will see the list.</p>
129
+ </div>
130
+ </div>
131
+ <!-- End "Pages" Modal -->
132
+
133
+ <!-- Start "Media Attachment Pages" Modal -->
134
+ <div id="wpacu-manage-assets-attachments-info" class="wpacu-modal">
135
+ <div class="wpacu-modal-content">
136
+ <span class="wpacu-close">&times;</span>
137
+ <h2>Media Attachment Pages</h2>
138
+ <p>Note: This is rarely used/needed and in some WordPress setups, the attachment's permalink redirects to the media file itself.</p>
139
+ <p style="margin-bottom: 0;">&#10230; If "Manage in the Dashboard?" is enabled:</p>
140
+ <p style="margin-top: 0;">Go to "Media" -&gt; "Library" -&gt; [Choose the media you want to manage the assets for] -&gt; Scroll to "Asset CleanUp" meta box where you will see the loaded CSS &amp; JavaScript files</p>
141
+ <hr />
142
+ <p style="margin-bottom: 0;">&#10230; If "Manage in the Front-end?" is enabled and you're logged in:</p>
143
+ <p style="margin-top: 0;">Go to the media's permalink ("View" links in the media list) page where you want to manage the files and scroll to the bottom of the page where you will see the list.</p>
144
+ </div>
145
+ </div>
146
+ <!-- End "Media Attachment Pages" Modal -->
147
+ </div>
148
+
149
+ <style type="text/css">
150
+ /* The Modal (background) */
151
+ .wpacu-modal {
152
+ display: none; /* Hidden by default */
153
+ position: fixed; /* Stay in place */
154
+ z-index: 1000000; /* Sit on top */
155
+ padding-top: 15%; /* Location of the box */
156
+ left: 0;
157
+ top: 0;
158
+ width: 100%; /* Full width */
159
+ height: 100%; /* Full height */
160
+ overflow: auto; /* Enable scroll if needed */
161
+ background-color: rgb(0,0,0); /* Fallback color */
162
+ background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
163
+ }
164
+
165
+ /* Modal Content */
166
+ .wpacu-modal-content {
167
+ background-color: #fefefe;
168
+ margin: auto;
169
+ padding: 20px;
170
+ border: 1px solid #888;
171
+ width: 80%;
172
+ max-width: 600px;
173
+ border-radius: 10px;
174
+ }
175
+
176
+ /* The Close Button */
177
+ .wpacu-close {
178
+ color: #aaaaaa;
179
+ float: right;
180
+ font-size: 28px;
181
+ font-weight: bold;
182
+ }
183
+
184
+ .wpacu-close:hover,
185
+ .wpacu-close:focus {
186
+ color: #000;
187
+ text-decoration: none;
188
+ cursor: pointer;
189
+ }
190
+ </style>
191
+
192
+ <script type="text/javascript">
193
+ jQuery(document).ready(function($) {
194
+ var currentModal;
195
+ $('.wpacu-modal').each(function (wpacuIndex) {
196
+ var wpacuModalId = $(this).attr('id');
197
+
198
+ // Get the modal
199
+ var wpacuModal = document.getElementById(wpacuModalId);
200
+
201
+ // Get the button that opens the modal
202
+ var wpacuBtn = document.getElementById(wpacuModalId + '-btn');
203
+
204
+ // When the user clicks the button, open the modal
205
+ wpacuBtn.onclick = function() {
206
+ wpacuModal.style.display = 'block';
207
+ currentModal = wpacuModal;
208
+ };
209
+
210
+ // Get the <span> element that closes the modal
211
+ var wpacuSpan = document.getElementsByClassName('wpacu-close')[wpacuIndex];
212
+
213
+ // When the user clicks on <span> (x), close the modal
214
+ wpacuSpan.onclick = function() {
215
+ wpacuModal.style.display = 'none';
216
+ };
217
+ });
218
+
219
+ // When the user clicks anywhere outside of the modal, close it
220
+ window.onclick = function (event) {
221
+ if (event.target === currentModal) {
222
+ currentModal.style.display = 'none';
223
+ }
224
+ };
225
+ });
226
+ </script>
templates/admin-page-child-settings-homepage.php ADDED
@@ -0,0 +1,78 @@
1
+ <?php
2
+ /*
3
+ * No direct access to this file
4
+ */
5
+ if (! isset($data)) {
6
+ exit;
7
+ }
8
+ ?>
9
+ <div style="margin: 30px 0 0;" class="cleafix"></div>
10
+
11
+ <h2><span class="dashicons dashicons-admin-home"></span> <?php _e('Home Page Scripts &amp; Styles Management', WPACU_PLUGIN_TEXT_DOMAIN); ?></h2>
12
+
13
+ <?php
14
+ do_action('wpacu_admin_notices');
15
+
16
+ if ($data['wpacu_settings']['dashboard_show'] != 1) {
17
+ ?>
18
+ <div class="error" style="padding: 10px;"><?php echo sprintf(__('As "Manage in the Dashboard?" is not enabled in "%sSettings%s", you can not manage the assets from the Dashboard.', WPACU_PLUGIN_TEXT_DOMAIN), '<a href="admin.php?page=wpassetcleanup_settings">', '</a>'); ?></div>
19
+ <?php
20
+ return;
21
+ }
22
+
23
+ if ($data['show_on_front'] === 'page') {
24
+ ?>
25
+ <p><?php _e('In "Settings" &#187; "Reading" you have selected a static page for "Front page displays" setting. To manage the assets (.CSS &amp; .JS) that will NOT LOAD, use the link(s) below:', WPACU_PLUGIN_TEXT_DOMAIN); ?></p>
26
+ <div>
27
+ <ul>
28
+ <?php
29
+ if ($data['page_on_front']) {
30
+ ?>
31
+ <li>
32
+ <?php _e('Front page:', WPACU_PLUGIN_TEXT_DOMAIN); ?>
33
+ <a href="<?php echo admin_url('post.php?post='.$data['page_on_front'].'&action=edit#'.WPACU_PLUGIN_ID.'_asset_list'); ?>"><strong><?php echo $data['page_on_front_title']; ?></strong></a>
34
+ </li>
35
+ <?php
36
+ }
37
+
38
+ if ($data['page_for_posts']) {
39
+ ?>
40
+ <li>
41
+ <?php _e('Posts page:', WPACU_PLUGIN_TEXT_DOMAIN); ?>
42
+ <a href="<?php echo admin_url('post.php?post='.$data['page_for_posts'].'&action=edit#'.WPACU_PLUGIN_ID.'_asset_list'); ?>"><strong><?php echo $data['page_for_posts_title']; ?></strong></a>
43
+ </li>
44
+ <?php
45
+ }
46
+ ?>
47
+ </ul>
48
+ </div>
49
+ <p><?php echo sprintf(__('To read more about creating a static front page in WordPress, %scheck the Codex%s.', WPACU_PLUGIN_TEXT_DOMAIN), '<a target="_blank" href="https://codex.wordpress.org/Creating_a_Static_Front_Page">', '</a>'); ?></p>
50
+ <?php
51
+ } else {
52
+ ?>
53
+ <form id="wpacu_home_page_form" method="post" action="">
54
+ <input type="hidden" name="wpacu_manage_home_page_assets" value="1" />
55
+
56
+ <p><?php _e('Here you can unload files loaded on the home page. "Front page displays" (from "Settings" &#187; "Reading") is set to either "Your latest posts" (in "Settings" &#187; "Reading") OR a special layout (from a theme or plugin) was enabled.', WPACU_PLUGIN_TEXT_DOMAIN); ?> Changes will also apply to pages such as <code>/page/2</code> <code>page/3</code> etc. in case the latest blog posts are paginated.</p>
57
+
58
+ <div id="wpacu_meta_box_content">
59
+ <img src="<?php echo admin_url(); ?>/images/spinner.gif" align="top" width="20" height="20" alt="" />&nbsp;
60
+
61
+ <?php _e('Retrieving the loaded scripts and styles for the home page. Please wait...', WPACU_PLUGIN_TEXT_DOMAIN); ?>
62
+
63
+ <p><?php echo sprintf(
64
+ __('If you believe fetching the page takes too long and the assets should have loaded by now, I suggest you go to "Settings", make sure "Manage in front-end" is checked and then %smanage the assets in the front-end%s.', WPACU_PLUGIN_TEXT_DOMAIN),
65
+ '<a href="'.$data['site_url'].'#wpacu_wrap_assets">',
66
+ '</a>'
67
+ ); ?></p>
68
+ </div>
69
+
70
+ <?php
71
+ wp_nonce_field($data['nonce_name']);
72
+ ?>
73
+ <div id="wpacu-update-button-area" class="no-left-margin">
74
+ <p class="submit"><input type="submit" name="submit" id="submit" class="hidden button button-primary" value="<?php esc_attr_e('Update', WPACU_PLUGIN_TEXT_DOMAIN); ?>"></p>
75
+ </div>
76
+ </form>
77
+ <?php
78
+ }
templates/admin-page-getting-started.php CHANGED
@@ -72,9 +72,9 @@ if (! isset($data)) {
72
<span class="dashicons dashicons-format-image"></span> <a href="#TB_inline?&width=1024&height=550&inlineId=wpacu-brain-slow-website-info"
73
class="thickbox">View "This Is Your Brain On A Slow Website" Infographic</a>
74
<?php } elseif ($data['for'] === 'start-optimization') { ?>
75
- <p>For the <em>homepage</em>, you can go to "Asset CleanUp" -&gt; "<a href="<?php echo admin_url('admin.php?page='.WPACU_PLUGIN_ID.'_home_page') ?>">Homepage</a>" from the plugin's menu and you will notice the list of all the styles &amp;scripts files that are loading there. For each file, you will see options that you can enabled/disable.</p>
76
<p>For <em>posts, pages &amp; custom post types</em>, you can edit the page within the Dashboard or via the front-end view (if you enabled the option in "Settings") and go to "Asset CleanUp" area where you can manage all the CSS &amp; JS files loading on that post/page.</p>
77
- <p>To view all the pages where Asset CleanUp can do optimization for, go to "<a href="<?php echo admin_url('admin.php?page=wpassetcleanup_pages_info'); ?>">Pages Info</a>".</p>
78
<hr />
79
80
<p style="font-size: 16px;"><strong>Common Example: "Contact Form 7" plugin</strong></p>
72
<span class="dashicons dashicons-format-image"></span> <a href="#TB_inline?&width=1024&height=550&inlineId=wpacu-brain-slow-website-info"
73
class="thickbox">View "This Is Your Brain On A Slow Website" Infographic</a>
74
<?php } elseif ($data['for'] === 'start-optimization') { ?>
75
+ <p>For the <em>homepage</em>, you can go to "Asset CleanUp" -&gt; "<a href="<?php echo admin_url('admin.php?page='.WPACU_PLUGIN_ID.'_assets_manager') ?>">Homepage</a>" from the plugin's menu and you will notice the list of all the styles &amp;scripts files that are loading there. For each file, you will see options that you can enabled/disable.</p>
76
<p>For <em>posts, pages &amp; custom post types</em>, you can edit the page within the Dashboard or via the front-end view (if you enabled the option in "Settings") and go to "Asset CleanUp" area where you can manage all the CSS &amp; JS files loading on that post/page.</p>
77
+ <p>To view all the pages where Asset CleanUp can do optimization for, go to "<a href="<?php echo admin_url('admin.php?page='.WPACU_PLUGIN_ID.'_assets_manager&wpacu_for=all_other_pages'); ?>">Pages Info</a>".</p>
78
<hr />
79
80
<p style="font-size: 16px;"><strong>Common Example: "Contact Form 7" plugin</strong></p>
templates/admin-page-pages-info.php DELETED
@@ -1,83 +0,0 @@
1
- <?php
2
- /*
3
- * No direct access to this file
4
- */
5
- if (! isset($data)) {
6
- exit;
7
- }
8
-
9
- include_once '_top-area.php';
10
-
11
- // [wpacu_lite]
12
- $availableForPro = '<a href="'.WPACU_PLUGIN_GO_PRO_URL.'?utm_source=plugin_pages_info" class="go-pro-link-no-style"><span class="wpacu-tooltip">Available for Pro users<br />Click to upgrade!</span> <img width="20" height="20" src="'.WPACU_PLUGIN_URL.'/assets/icons/icon-lock.svg" valign="top" alt="" /></a>';
13
- // [/wpacu_lite]
14
- ?>
15
- <div id="wpacu-pages-info-area" class="wpacu-wrap">
16
- <div class="wpacu-notice-info">
17
- <p>The purpose of this page is to make you aware of all the WordPress pages where Asset CleanUp can be used to unload unused CSS &amp; JavaScript files.</p>
18
- <!-- [wpacu_lite] -->
19
- <p>* <em>Unloading assets (CSS &amp; JavaScript) for page types that have a locker next to their name requires an <a href="<?php echo WPACU_PLUGIN_GO_PRO_URL; ?>?utm_source=plugin_pages_info&utm_medium=top_note">upgrade to the Pro version</a>.</em></p>
20
- <!-- [/wpacu_lite] -->
21
- </div>
22
-
23
- <div class="wpacu_table_wrap">
24
- <table class="table table-striped">
25
- <thead class="thead-default">
26
- <tr>
27
- <th align="left">PAGE TYPE</th>
28
- <th align="left">DESCRIPTION</th>
29
- </tr>
30
- </thead>
31
- <tbody>
32
- <tr>
33
- <td width="17%"><strong>Homepage</strong></td>
34
- <td>This could be: your latest posts or a static page ("Pages" type), depending on your configuration from <a target="_blank" href="https://codex.wordpress.org/Settings_Reading_Screen">Dashboard's "Settings" &#187; "Reading"</a> page. If the home page is not a static page, but it's showing the latest posts (default view), then you can manage its assets from Asset CleanUp's "Homepage" tab above. &#10230; <a href="https://codex.wordpress.org/Settings_Reading_Screen#Reading_Settings">Read more about "Reading Settings" for "Front page displays"</a></td>
35
- </tr>
36
- <tr>
37
- <td><strong>Posts</strong></td>
38
- <td>Post Type: 'post' (e.g. blog entries) &#10230; <a href="https://codex.wordpress.org/Posts_Screen">read more</a></td>
39
- </tr>
40
- <tr>
41
- <td><strong>Pages</strong></td>
42
- <td>Post Type: 'page' (e.g. about us, contact) &#10230; <a href="https://codex.wordpress.org/Pages_Screen">read more</a></td>
43
- </tr>
44
- <tr>
45
- <td><strong>Attachment</strong></td>
46
- <td>Post Type: 'attachment' (e.g. files from <a target="_blank" href="https://codex.wordpress.org/Media_Library_Screen">"Media" &#187; "Library"</a>, the page loaded usually prints the image or other media type) &#10230; <a href="https://codex.wordpress.org/Edit_Media">read more</a></td>
47
- </tr>
48
- <tr>
49
- <td><strong>Custom Post Type</strong></td>
50
- <td>Popular examples: 'product' created by WooCommerce, 'download' created by Easy Digital Downloads etc. &#10230; <a href="https://codex.wordpress.org/Post_Types#Custom_Post_Types">read more</a></td>
51
- </tr>
52
- <tr>
53
- <td><strong>Categories</strong><?php echo $availableForPro; ?></td>
54
- <td>Default Taxonomy (they are found in "Posts" &#187; "Categories", accessing a category link reveals all the posts from that category) &#10230; <a href="https://codex.wordpress.org/Posts_Categories_Screen">read more</a></td>
55
- </tr>
56
- <tr>
57
- <td><strong>Tags</strong><?php echo $availableForPro; ?></td>
58
- <td>Default Taxonomy (they are found in "Posts" &#187; "Tags", accessing a tag link reveals all the posts associated with the tag) &#10230; <a href="https://codex.wordpress.org/Posts_Tags_Screen">read more</a></td>
59
- </tr>
60
- <tr>
61
- <td><strong>Custom Taxonomy</strong><?php echo $availableForPro; ?></td>
62
- <td>Popular examples: 'product_cat' created by WooCommerce, 'download_category' created by Easy Digital Downloads etc. &#10230; <a href="https://codex.wordpress.org/Taxonomies#Custom_Taxonomies">read more</a></td>
63
- </tr>
64
- <tr>
65
- <td><strong>Search</strong><?php echo $availableForPro; ?></td>
66
- <td>Default Search Template (search.php &#187; this is the template that displays the search results; the query parameter "s" is within the URL). If you create a <a href="https://codex.wordpress.org/Creating_a_Search_Page">Search Page</a>, it will belong to the "Pages" page type. The assets can be unloaded <strong>only in the front-end view</strong> (<em>"Manage in the Front-end?" from "Settings" tab has to be enabled</em>).</td>
67
- </tr>
68
- <tr>
69
- <td><strong>Author</strong><?php echo $availableForPro; ?></td>
70
- <td>Shows all posts belonging to a specific author (e.g. https://yourwebsite.com/author/yourname/). The assets can be unloaded <strong>only in the front-end view</strong> (<em>"Manage in the Front-end?" from "Settings" tab has to be enabled</em>).</td>
71
- </tr>
72
- <tr>
73
- <td><strong>Date</strong><?php echo $availableForPro; ?></td>
74
- <td>Shows all posts based on the chosen date (e.g. https://yourwebsite.com/2018/08/). The assets can be unloaded <strong>only in the front-end view</strong> (<em>"Manage in the Front-end?" from "Settings" tab has to be enabled</em>).</td>
75
- </tr>
76
- <tr>
77
- <td><strong>404 Not Found</strong><?php echo $availableForPro; ?></td>
78
- <td>This page (404.php within the theme) is reached when a request is not valid. It could be an old link that is not used anymore or the visitor typed the wrong URL to an article etc. (e.g. https://yourwebsite.com/this-is-a-non-existent-page.html). The assets can be unloaded <strong>only in the front-end view</strong> (<em>"Manage in the Front-end?" from "Settings" tab has to be enabled</em>). &#10230; <a href="https://codex.wordpress.org/Creating_an_Error_404_Page">read more</a></td>
79
- </tr>
80
- </tbody>
81
- </table>
82
- </div>
83
- </div>
templates/admin-page-settings-bulk-unloads.php CHANGED
@@ -17,8 +17,7 @@ $availableForPro = '<span class="wpacu-tooltip">Available for Pro users<br />Cli
17
18
<h2><?php _e('Bulk Unloaded', WPACU_PLUGIN_TEXT_DOMAIN); ?></h2>
19
20
- <p>If you have used rules such as <em>"Unload everywhere"</em> or <em>"Unload on All Pages of <strong>post</strong> post type"</em> etc., then the assets will be shown here. Although, you can manage them when editing a page, post etc., this page will make things easier by seeing all the bulk unloads:</p>
21
- <p>A bulk unload is considered anything that is applied once and it has effect on multiple pages of the same kind or site-wide such as "Unload everywhere".</p>
22
23
<nav class="nav-tab-wrapper">
24
<a href="<?php echo admin_url('admin.php?page=wpassetcleanup_bulk_unloads'); ?>" class="nav-tab <?php if ($data['for'] === 'everywhere') { ?>nav-tab-active<?php } ?>">Everywhere</a>
@@ -244,26 +243,27 @@ $noAssetsToRemove = (empty($data['values']['styles']) && empty($data['values']['
244
?>
245
246
<div class="wpacu-clearfix"></div>
247
-
248
- <p class="submit">
249
- <?php
250
- wp_nonce_field('wpacu_bulk_unloads_update');
251
- ?>
252
- <input type="submit"
253
- name="submit"
254
- id="submit"
255
- <?php if ($noAssetsToRemove) { ?>
256
- disabled="disabled"
257
- <?php } ?>
258
- class="button button-primary"
259
- value="<?php esc_attr_e('Update', WPACU_PLUGIN_TEXT_DOMAIN); ?>" />
260
- <?php
261
- if ($noAssetsToRemove) {
262
- ?>
263
- &nbsp;<small>Note: As there are no unloaded assets (scripts &amp; styles) to be managed, the button is disabled.</small>
264
- <?php
265
- }
266
- ?>
267
- </p>
268
</form>
269
</div>
17
18
<h2><?php _e('Bulk Unloaded', WPACU_PLUGIN_TEXT_DOMAIN); ?></h2>
19
20
+ <p>This page collects all the assets that have bulk rules such as <em>"Unload everywhere"</em> or <em>"Unload on All Pages of <strong>post</strong> post type"</em> etc. Although, you can manage them when editing a page, post etc., this page will make it easier for you to view them in one place. Note that a bulk unload is considered anything that is applied once and it has effect on multiple pages of the same kind or site-wide.</>
21
22
<nav class="nav-tab-wrapper">
23
<a href="<?php echo admin_url('admin.php?page=wpassetcleanup_bulk_unloads'); ?>" class="nav-tab <?php if ($data['for'] === 'everywhere') { ?>nav-tab-active<?php } ?>">Everywhere</a>
243
?>
244
245
<div class="wpacu-clearfix"></div>
246
+ <div id="wpacu-update-button-area" class="no-left-margin">
247
+ <p class="submit">
248
+ <?php
249
+ wp_nonce_field('wpacu_bulk_unloads_update');
250
+ ?>
251
+ <input type="submit"
252
+ name="submit"
253
+ id="submit"
254
+ <?php if ($noAssetsToRemove) { ?>
255
+ disabled="disabled"
256
+ <?php } ?>
257
+ class="button button-primary"
258
+ value="<?php esc_attr_e('Update', WPACU_PLUGIN_TEXT_DOMAIN); ?>" />
259
+ <?php
260
+ if ($noAssetsToRemove) {
261
+ ?>
262
+ &nbsp;<small>Note: As there are no unloaded assets (scripts &amp; styles) to be managed, the button is disabled.</small>
263
+ <?php
264
+ }
265
+ ?>
266
+ </p>
267
+ </div>
268
</form>
269
</div>
templates/admin-page-settings-homepage.php DELETED
@@ -1,81 +0,0 @@
1
- <?php
2
- /*
3
- * No direct access to this file
4
- */
5
- if (! isset($data)) {
6
- exit;
7
- }
8
-
9
- include_once '_top-area.php';
10
- ?>
11
- <div class="wpacu-wrap">
12
- <h2><?php _e('Home Page Scripts &amp; Styles Management', WPACU_PLUGIN_TEXT_DOMAIN); ?></h2>
13
-
14
- <?php
15
- do_action('wpacu_admin_notices');
16
-
17
- if ($data['wpacu_settings']['dashboard_show'] != 1) {
18
- ?>
19
- <div class="error" style="padding: 10px;"><?php echo sprintf(__('As "Manage in the Dashboard?" is not enabled in "%sSettings%s", you can not manage the assets from the Dashboard.', WPACU_PLUGIN_TEXT_DOMAIN), '<a href="admin.php?page=wpassetcleanup_settings">', '</a>'); ?></div>
20
- <?php
21
- return;
22
- }
23
-
24
- if ($data['show_on_front'] === 'page') {
25
- ?>
26
- <p><?php _e('In "Settings" &#187; "Reading" you have selected a static page for "Front page displays" setting. To manage the assets (.CSS &amp; .JS) that will NOT LOAD, use the link(s) below:', WPACU_PLUGIN_TEXT_DOMAIN); ?></p>
27
- <div>
28
- <ul>
29
- <?php
30
- if ($data['page_on_front']) {
31
- ?>
32
- <li>
33
- <?php _e('Front page:', WPACU_PLUGIN_TEXT_DOMAIN); ?>
34
- <a href="<?php echo admin_url('post.php?post='.$data['page_on_front'].'&action=edit#'.WPACU_PLUGIN_ID.'_asset_list'); ?>"><strong><?php echo $data['page_on_front_title']; ?></strong></a>
35
- </li>
36
- <?php
37
- }
38
-
39
- if ($data['page_for_posts']) {
40
- ?>
41
- <li>
42
- <?php _e('Posts page:', WPACU_PLUGIN_TEXT_DOMAIN); ?>
43
- <a href="<?php echo admin_url('post.php?post='.$data['page_for_posts'].'&action=edit#'.WPACU_PLUGIN_ID.'_asset_list'); ?>"><strong><?php echo $data['page_for_posts_title']; ?></strong></a>
44
- </li>
45
- <?php
46
- }
47
- ?>
48
- </ul>
49
- </div>
50
- <p><?php echo sprintf(__('To read more about creating a static front page in WordPress, %scheck the Codex%s.', WPACU_PLUGIN_TEXT_DOMAIN), '<a target="_blank" href="https://codex.wordpress.org/Creating_a_Static_Front_Page">', '</a>'); ?></p>
51
- <?php
52
- } else {
53
- ?>
54
- <form id="wpacu_home_page_form" method="post" action="">
55
- <p><?php echo sprintf(__('Your front (home) page URL is <strong>%s</strong>', WPACU_PLUGIN_TEXT_DOMAIN), $data['site_url']); ?></p>
56
-
57
- <p><?php _e('Here you can unload assets that are loading on the home page. "Front page displays" (from "Settings" &#187; "Reading") is set to either "Your latest posts" (in "Settings" &#187; "Reading") OR a special layout (from a theme or plugin) was enabled. When you edit a page/post (e.g. "Posts" -&gt; "All Posts", "Pages" -&gt; "All Pages" etc.), you will see the list inside a meta box.', WPACU_PLUGIN_TEXT_DOMAIN); ?></p>
58
-
59
- <p>Note that any changes will also apply to pages such as <code>/page/2</code> <code>page/3</code> etc. in case the latest blog posts are paginated.</p>
60
-
61
- <div id="wpacu_meta_box_content">
62
- <img src="<?php echo admin_url(); ?>/images/spinner.gif" align="top" width="20" height="20" alt="" />&nbsp;
63
-
64
- <?php _e('We\'re getting the loaded scripts and styles for the home page. Please wait...', WPACU_PLUGIN_TEXT_DOMAIN); ?>
65
-
66
- <p><?php echo sprintf(
67
- __('If you believe fetching the page takes too long and the assets should have loaded by now, I suggest you go to "Settings", make sure "Manage in front-end" is checked and then %smanage the assets in the front-end%s.', WPACU_PLUGIN_TEXT_DOMAIN),
68
- '<a href="'.$data['site_url'].'#wpacu_wrap_assets">',
69
- '</a>'
70
- ); ?></p>
71
- </div>
72
-
73
- <?php
74
- wp_nonce_field($data['nonce_name']);
75
- ?>
76
- <p class="submit"><input type="submit" name="submit" id="submit" class="hidden button button-primary" value="<?php esc_attr_e('Update', WPACU_PLUGIN_TEXT_DOMAIN); ?>"></p>
77
- </form>
78
- <?php
79
- }
80
- ?>
81
- </div>
templates/admin-page-settings-plugin.php CHANGED
@@ -9,7 +9,8 @@ if (! isset($data)) {
9
include_once '_top-area.php';
10
11
// [wpacu_lite]
12
- $availableForPro = '<a href="'.WPACU_PLUGIN_GO_PRO_URL.'?utm_source=plugin_settings" class="go-pro-link-no-style"><span class="wpacu-tooltip">Available for Pro users<br />Buy now to unlock all features!</span> <img width="20" height="20" src="'.WPACU_PLUGIN_URL.'/assets/icons/icon-lock.svg" valign="top" alt="" /></a> &nbsp; ';
13
// [/wpacu_lite]
14
15
do_action('wpacu_admin_notices');
@@ -17,540 +18,590 @@ do_action('wpacu_admin_notices');
17
<div class="wpacu-wrap wpacu-settings-area <?php if ($data['input_style'] !== 'standard') { ?>wpacu-switch-enhanced<?php } else { ?>wpacu-switch-standard<?php } ?>">
18
<form method="post" action="">
19
<input type="hidden" name="wpacu_settings_page" value="1" />
20
- <h2><?php _e('Plugin Usage Settings', WPACU_PLUGIN_TEXT_DOMAIN); ?></h2>
21
-
22
- <table class="wpacu-form-table">
23
- <tr valign="top">
24
- <th scope="row">
25
- <label for="wpacu_dashboard">Manage in the Dashboard?</label>
26
- </th>
27
- <td>
28
- <label class="wpacu_switch">
29
- <input id="wpacu_dashboard"
30
- type="checkbox"
31
- <?php echo (($data['dashboard_show'] == 1) ? 'checked="checked"' : ''); ?>
32
- name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[dashboard_show]"
33
- value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
34
- &nbsp;
35
- This will show the list of assets in a meta box on edit the post (any type) / page within the Dashboard
36
- <p>The assets would be retrieved via AJAX call(s) that will fetch the post/page URL and extract all the styles &amp; scripts that are enqueued.</p>
37
- <p>Note that sometimes the assets list is not loading within the Dashboard. That could be because "mod_security" Apache module is enabled or some securiy plugins are blocking the AJAX request. If this option doesn't work, consider managing the list in the front-end view.</p>
38
-
39
- <div id="wpacu-settings-assets-retrieval-mode"
40
- <?php if (! ($data['dashboard_show'] == 1)) { echo 'style="display: none;"'; } ?>>
41
-
42
- <ul id="wpacu-dom-get-type-selections">
43
<li>
44
- <label for="wpacu_dom_get_type">Select a retrieval way:</label>
45
</li>
46
<li>
47
- <label>
48
- <input class="wpacu-dom-get-type-selection"
49
- data-target="wpacu-dom-get-type-direct-info"
50
- <?php if ($data['dom_get_type'] === 'direct') { ?>checked="checked"<?php } ?>
51
- type="radio" name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[dom_get_type]"
52
- value="direct" /> Direct
53
</label>
54
</li>
55
<li>
56
- <label>
57
- <input class="wpacu-dom-get-type-selection"
58
- data-target="wpacu-dom-get-type-wp-remote-post-info"
59
- <?php if ($data['dom_get_type'] === 'wp_remote_post') { ?>checked="checked"<?php } ?>
60
- type="radio" name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[dom_get_type]"
61
- value="wp_remote_post" /> WP Remote Post
62
</label>
63
</li>
64
</ul>
65
-
66
- <div class="wpacu-clearfix" style="height: 0;"></div>
67
-
68
- <ul id="wpacu-dom-get-type-infos">
69
- <li <?php if ($data['dom_get_type'] !== 'direct') { ?>style="display: none;"<?php } ?>
70
- class="wpacu-dom-get-type-info"
71
- id="wpacu-dom-get-type-direct-info">
72
- <strong>Direct</strong> - This one makes an AJAX call directly on the URL for which the assets are retrieved, then an extra WordPress AJAX call to process the list. Sometimes, due to some external factors (e.g. mod_security module from Apache, security plugin or the fact that non-http is forced for the front-end view and the AJAX request will be blocked), this might not work and another choice method might work better. This used to be the only option available, prior to version 1.2.4.4 and is set as default.
73
</li>
74
- <li <?php if ($data['dom_get_type'] !== 'wp_remote_post') { ?>style="display: none;"<?php } ?>
75
- class="wpacu-dom-get-type-info"
76
- id="wpacu-dom-get-type-wp-remote-post-info">
77
- <strong>WP Remote Post</strong> - It makes a WordPress AJAX call and gets the HTML source code through wp_remote_post(). This one is less likely to be blocked as it is made on the same protocol (no HTTP request from HTTPS). However, in some cases (e.g. a different load balancer configuration), this might not work when the call to fetch a domain's URL (your website) is actually made from the same domain.
78
</li>
79
</ul>
80
- </div>
81
- </td>
82
- </tr>
83
- <tr valign="top">
84
- <th scope="row">
85
- <label for="wpacu_frontend">Manage in the Front-end?</label>
86
- </th>
87
- <td>
88
- <label class="wpacu_switch">
89
- <input id="wpacu_frontend"
90
- type="checkbox"
91
- <?php echo (($data['frontend_show'] == 1) ? 'checked="checked"' : ''); ?>
92
- name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[frontend_show]"
93
- value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
94
- &nbsp;
95
- If you are logged in, this will make the list of assets show below the page that you view (either home page, a post or a page).
96
- <p style="margin-top: 10px;">The area will be shown through the <code>wp_footer</code> action so in case you do not see the asset list at the bottom of the page, make sure the theme is using <a href="https://codex.wordpress.org/Function_Reference/wp_footer"><code>wp_footer()</code></a> function before the <code>&lt;/body&gt;</code> tag. Any theme that follows the standards should have it. If not, you will have to add it to make sure other plugins and code from functions.php will work fine.</p>
97
- </td>
98
- </tr>
99
-
100
- <tr valign="top">
101
- <th scope="row">
102
- <label for="wpacu_assets_list_layout">Assets List Layout</label>
103
- </th>
104
- <td>
105
- <label>
106
- <select id="wpacu_assets_list_layout"
107
- name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[assets_list_layout]">
108
- <option <?php if ($data['assets_list_layout'] === 'by-location') { echo 'selected="selected"'; } ?> value="by-location">All Styles &amp; Scripts &#10230; One list grouped by location (themes, plugins, core &amp; external)</option>
109
- <option <?php if (in_array($data['assets_list_layout'], array('two-lists', 'default'))) { echo 'selected="selected"'; } ?> value="two-lists">All Styles + All Scripts &#10230; Two lists</option>
110
- <option disabled="disabled" value="all">All Styles &amp; Scripts &#10230; One list (Pro Version)</option>
111
- </select>
112
- </label>
113
-
114
- <p style="margin-top: 10px;">These are various ways in which the list of assets that you will manage will show up. Depending on your preference, you might want to see the list of styles &amp; scripts first, or all together sorted in alphabetical order etc. Options that are disabled are available in the Pro version.</p>
115
- </td>
116
- </tr>
117
-
118
- <tr valign="top">
119
- <th scope="row">
120
- <label>On Assets List Layout Load, keep "Styles &amp; Scripts" area:</label>
121
- </th>
122
- <td>
123
- <ul class="assets_list_layout_areas_status_choices">
124
- <li>
125
- <label for="assets_list_layout_areas_status_expanded">
126
- <input id="assets_list_layout_areas_status_expanded"
127
- <?php if (! $data['assets_list_layout_areas_status'] || $data['assets_list_layout_areas_status'] === 'expanded') { ?>checked="checked"<?php } ?>
128
- type="radio"
129
- name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[assets_list_layout_areas_status]"
130
- value="expanded"> Expanded (Default)
131
- </label>
132
- </li>
133
- <li>
134
- <label for="assets_list_layout_areas_status_contracted">
135
- <input id="assets_list_layout_areas_status_contracted"
136
- <?php if ($data['assets_list_layout_areas_status'] === 'contracted') { ?>checked="checked"<?php } ?>
137
- type="radio"
138
- name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[assets_list_layout_areas_status]"
139
- value="contracted"> Contracted
140
- </label>
141
- </li>
142
- </ul>
143
- <div class="wpacu-clearfix"></div>
144
-
145
- <p>Sometimes, when you have plenty of elements in the edit page, you might want to contract the list of assets when you're viewing the page as it will save space. This can be a good practice, especially when you finished optimising the pages and you don't want to keep seeing the long list of files every time you edit a page.</p>
146
- </td>
147
- </tr>
148
-
149
- <tr valign="top">
150
- <th scope="row">
151
- <label>On Assets List Layout Load, keep "Inline code associated with this handle" area:</label>
152
- </th>
153
- <td>
154
- <ul class="assets_list_inline_code_status_choices">
155
- <li>
156
- <label for="assets_list_inline_code_status_expanded">
157
- <input id="assets_list_inline_code_status_expanded"
158
- <?php if (! $data['assets_list_inline_code_status'] || $data['assets_list_inline_code_status'] === 'expanded') { ?>checked="checked"<?php } ?>
159
- type="radio"
160
- name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[assets_list_inline_code_status]"
161
- value="expanded"> Expanded (Default)
162
- </label>
163
- </li>
164
- <li>
165
- <label for="assets_list_inline_code_status_contracted">
166
- <input id="assets_list_inline_code_status_contracted"
167
- <?php if ($data['assets_list_inline_code_status'] === 'contracted') { ?>checked="checked"<?php } ?>
168
- type="radio"
169
- name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[assets_list_inline_code_status]"
170
- value="contracted"> Contracted
171
- </label>
172
- </li>
173
- </ul>
174
- <div class="wpacu-clearfix"></div>
175
-
176
- <p>Some assets (CSS &amp; JavaScript) have inline code associate with them and often, they are quite large, making the asset row bigger and requiring you to scroll more until you reach a specific area. By setting it to "Contracted", it will hide all the inline code by default and you can view it by clicking on the toggle link inside the asset row.</p>
177
- </td>
178
- </tr>
179
-
180
- <tr valign="top">
181
- <th scope="row" class="setting_title">
182
- <label>Input Fields Style:</label>
183
- <p class="wpacu_subtitle"><small><em>How would you like to view the checkboxes / selectors?</em></small></p>
184
- <p class="wpacu_read_more"><a href="https://assetcleanup.com/docs/?p=95" target="_blank">Read More</a></p>
185
- </th>
186
- <td>
187
- <ul class="input_style_choices">
188
- <li>
189
- <label for="input_style_enhanced">
190
- <input id="input_style_enhanced"
191
- <?php if (! $data['input_style'] || $data['input_style'] === 'enhanced') { ?>checked="checked"<?php } ?>
192
- type="radio"
193
- name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[input_style]"
194
- value="enhanced"> Enhanced iPhone Style (Default)
195
- </label>
196
- </li>
197
- <li>
198
- <label for="input_style_standard">
199
- <input id="input_style_standard"
200
- <?php if ($data['input_style'] === 'standard') { ?>checked="checked"<?php } ?>
201
- type="radio"
202
- name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[input_style]"
203
- value="standard"> Standard
204
- </label>
205
- </li>
206
- </ul>
207
- <div class="wpacu-clearfix"></div>
208
-
209
- <p>In case you prefer standard HTML checkboxes instead of the enhanced CSS3 iPhone style ones (on &amp; off) or you need a simple HTML layout in case you're using a screen reader software (e.g. for people with disabilities) which requires standard/clean HTML code, then you can choose "Standard" as an option.</p>
210
- </td>
211
- </tr>
212
-
213
- <tr valign="top">
214
- <th scope="row">
215
- <label for="wpacu_hide_core_files">Hide WordPress Core Files From The Assets List?</label>
216
- </th>
217
- <td>
218
- <label class="wpacu_switch">
219
- <input id="wpacu_hide_core_files"
220
- type="checkbox"
221
- <?php echo (($data['hide_core_files'] == 1) ? 'checked="checked"' : ''); ?>
222
- name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[hide_core_files]"
223
- value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
224
- &nbsp;
225
- WordPress Core Files have handles such as 'jquery', 'wp-embed', 'comment-reply', 'dashicons' etc.
226
- <p style="margin-top: 10px;">They should only be unloaded by experienced developers when they are convinced that are not needed in particular situations. It's better to leave them loaded if you have any doubts whether you need them or not. By hiding them in the assets management list, you will see a smaller assets list (easier to manage) and you will avoid updating by mistake any option (unload, async, defer) related to any core file.</p>
227
- </td>
228
- </tr>
229
-
230
- <tr valign="top">
231
- <th scope="row" class="setting_title">
232
- <label for="wpacu_enable_test_mode">Enable Test Mode?</label>
233
- <p class="wpacu_subtitle"><small><em>Apply plugin's changes for the admin only</em></small></p>
234
- <p class="wpacu_read_more"><a target="_blank" href="https://assetcleanup.com/docs/?p=84">Read More</a></p>
235
- </th>
236
- <td>
237
- <label class="wpacu_switch">
238
- <input id="wpacu_enable_test_mode"
239
- type="checkbox"
240
- <?php echo (($data['test_mode'] == 1) ? 'checked="checked"' : ''); ?>
241
- name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[test_mode]"
242
- value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
243
- &nbsp;
244
- This is great for debugging when you're going through trial and error while removing unneeded CSS &amp; JavaScript on your website.
245
- <p>Your visitors will load the website with all the settings &amp; assets loaded (just like it was before you activated the plugin).</p>
246
- <p>For instance, you have an eCommerce website (e.g. WooCommerce, Easy Digital Downloads), and you're worried that unloading one wrong asset could break the "add to cart" functionality or the layout of the product page. You can enable this option, do the unloading for the CSS &amp; JavaScript files you believe are not needed on certain pages, test to check if everything is alright, and then disable test mode to enable the unloading for your visitors too (not only the admin).</p>
247
- </td>
248
- </tr>
249
-
250
- <tr valign="top">
251
- <th scope="row" class="setting_title">
252
- <label for="wpacu_combine_loaded_css">Combine loaded CSS into one file?</label>
253
- <p class="wpacu_subtitle"><small><em>Helps reducing the number of HTTP Requests even further</em></small></p>
254
- </th>
255
- <td>
256
- <select id="wpacu_combine_loaded_css" name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[combine_loaded_css]">
257
- <option <?php if ($data['combine_loaded_css'] === 'default') { ?>selected="selected"<?php } ?> value="">No (default)</option>
258
- <option <?php if ($data['combine_loaded_css'] === 'for_admin') { ?>selected="selected"<?php } ?> value="for_admin">Yes, for logged-in administrators</option>
259
- <option <?php if ($data['combine_loaded_css'] === 'for_all') { ?>selected="selected"<?php } ?> value="for_all">Yes, for everyone</option>
260
- </select> <small>* if /wp-content/cache/ directory is not writable for some reason, this feature will not work; requires the DOMDocument XML DOM Parser to be enabled in PHP (which it is by default) for maximum performance</small>
261
- &nbsp;
262
- <p>This scans the remaining CSS files (left after unloaded the unnecessary ones) from the <code>&lt;head&gt;</code> and combines them into one file. To be 100% sure everything works fine after activation, consider using "Yes, for logged-in administrators" so only you can see the updated page. If all looks good, you can later switch it to "Yes (for everyone)".</p>
263
- <p style="margin-bottom: -7px;">The following stylesheets are not included in the combined CSS file for maximum performance:</p>
264
- <ul style="list-style: disc; margin-left: 25px; margin-bottom: 0;">
265
- <li>Have any <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content">preloading added to them</a> via <code>rel="preload"</code> will not be combined as they have priority in loading and shouldn't be mixed with the rest of the CSS.</li>
266
- <li style="margin-bottom: 0;">Are loaded within the <code>&lt;body&gt;</code> part of the page as they were likely added there because they are needed after the page is rendered (e.g. for AJAX styling calls, popups or elements that are not visible in the top viewport etc.)</li>
267
- </ul>
268
- <p style="margin-bottom: -7px; margin-top: 20px;">This feature will not work <strong>IF</strong>:</p>
269
- <ul style="margin-left: 25px; list-style: disc;">
270
- <li>"Test Mode" is enabled, this feature will not work for the guest users, even if "Yes, for everyone" is chosen as "Test Mode" purpose is to make the plugin as inactive for non logged-in administrators for ultimate debugging.</li>
271
- <li>The URL has query strings (e.g. an URL such as //www.yourdomain.com/product/title-here/?param=1&amp;param_two=value_here)</li>
272
- </ul>
273
- </td>
274
- </tr>
275
-
276
- <tr valign="top">
277
- <th scope="row" class="setting_title">
278
- <label>Combine loaded JS (JavaScript) into less files?</label>
279
- <p class="wpacu_subtitle"><small><em>Helps reducing the number of HTTP Requests even further</em></small></p>
280
- </th>
281
- <td>
282
- <?php echo $availableForPro; ?> <small>* if /wp-content/cache/ directory is not writable for some reason, this feature will not work; requires the DOMDocument XML DOM Parser to be enabled in PHP (which it is by default) for maximum performance</small>
283
- &nbsp;
284
- <p>This scans the remaining JavaScript files (left after unloaded the unnecessary ones) from the <code>&lt;head&gt;</code> and <code>&lt;body&gt;</code> and combines them into less files. The combination is made in such a way that it will not interefere with any inline JavaScript code associated with any of the files. To be 100% sure everything works fine after activation, consider using "Yes, for logged-in administrators" so only you can see the updated page. If all looks good, you can later switch it to "Yes (for everyone)".</p>
285
- <p style="margin-bottom: -7px;">For maximum performance and making sure that no functionality is broken the following JavaScript files:</p>
286
- <ul style="list-style: disc; margin-left: 25px; margin-bottom: 0;">
287
- <li>Any script tag having "defer" or "async" attributes</li>
288
- <li>Scripts that have inline code associated with it</li>
289
- </ul>
290
- <p style="margin-bottom: -7px; margin-top: 20px;">This feature will not work <strong>IF</strong>:</p>
291
- <ul style="list-style: disc; margin-left: 25px; margin-bottom: 0;">
292
- <li>"Test Mode" is enabled, this feature will not work for the guest users, even if "Yes, for everyone" is chosen as "Test Mode" purpose is to make the plugin as inactive for non logged-in administrators for ultimate debugging.</li>
293
- <li>The URL has query strings (e.g. an URL such as //www.yourdomain.com/product/title-here/?param=1&amp;param_two=value_here)</li>
294
- </ul>
295
- </td>
296
- </tr>
297
- </table>
298
-
299
- <hr />
300
-
301
- <h2><?php _e('Site-Wide Unload For Common WordPress Core CSS &amp; JS Files', WPACU_PLUGIN_TEXT_DOMAIN); ?></h2>
302
-
303
- <table class="wpacu-form-table">
304
- <tr valign="top">
305
- <th scope="row">
306
- <label for="wpacu_disable_emojis">Disable Emojis Site-Wide?</label>
307
- </th>
308
- <td>
309
- <label class="wpacu_switch">
310
- <input id="wpacu_disable_emojis"
311
- type="checkbox"
312
- <?php echo (($data['disable_emojis'] == 1) ? 'checked="checked"' : ''); ?>
313
- name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[disable_emojis]"
314
- value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
315
- &nbsp;
316
- This will unload WordPress' Emojis (the smiley icons)
317
- <p style="margin-top: 10px;">As of WordPress 4.2, a new feature was introduced that allows you to use the new Emojis. While on some WordPress setups is useful, in many situations (especially when you are not using WordPress as a blog), you just don’t need them and the file /wp-includes/js/wp-emoji-release.min.js is loaded along with extra inline JavaScript code which add up to the number of loaded HTTP requests.</p>
318
- </td>
319
- </tr>
320
-
321
- <tr valign="top">
322
- <th scope="row">
323
- <label for="wpacu_disable_jquery_migrate">Disable jQuery Migrate Site-Wide?</label>
324
- </th>
325
- <td>
326
- <label class="wpacu_switch">
327
- <input id="wpacu_disable_jquery_migrate" type="checkbox"
328
- <?php echo (($data['disable_jquery_migrate'] == 1) ? 'checked="checked"' : ''); ?>
329
- name="<?php echo WPACU_PLUGIN_ID . '_global_unloads'; ?>[disable_jquery_migrate]"
330
- value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
331
- &nbsp;
332
- This will unload jQuery Migrate (<em>jquery-migrate(.min).js</em>)
333
- <p style="margin-top: 10px;">This is a JavaScript library that allows older jQuery code (up to version jQuery 1.9) to run on the latest version of jQuery avoiding incompatibility problems. Unless your website is using an old theme or has a jQuery plugin that was written a long time ago, this file is likely not needed to load. Consider disabling it to improve page loading time. Make sure to properly test the website.</p>
334
- </td>
335
- </tr>
336
-
337
- <tr valign="top">
338
- <th scope="row">
339
- <label for="wpacu_disable_comment_reply">Disable Comment Reply Site-Wide?</label>
340
- </th>
341
- <td>
342
- <label class="wpacu_switch">
343
- <input id="wpacu_disable_comment_reply" type="checkbox"
344
- <?php echo (($data['disable_comment_reply'] == 1) ? 'checked="checked"' : ''); ?>
345
- name="<?php echo WPACU_PLUGIN_ID . '_global_unloads'; ?>[disable_comment_reply]"
346
- value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
347
- &nbsp;
348
- This will unload Comment Reply (<em>/wp-includes/js/comment-reply(.min).js</em>)
349
- <p style="margin-top: 10px;">This is safe to unload if you're not using WordPress as a blog, do not want visitors to leave comments or you've replaced the default WordPress comments with a comment platform such as Disqus or Facebook.</p>
350
- </td>
351
- </tr>
352
- </table>
353
-
354
- <hr />
355
- <p><em><strong>Note:</strong> The options that have a lock are available to Pro users. <a href="<?php echo WPACU_PLUGIN_GO_PRO_URL; ?>?utm_source=plugin_settings">Click here to upgrade!</a></em></p>
356
- <hr />
357
-
358
- <h2><?php _e('Cleanup unused elements within HEAD section', WPACU_PLUGIN_TEXT_DOMAIN); ?></h2>
359
- <p>There are elements that are enabled by default in many WordPress environments, but not necessary to be enabled. Cleanup the unnecessary code between <code>&lt;head&gt;</code> and <code>&lt;/head&gt;</code>.</p>
360
-
361
- <table class="wpacu-form-table">
362
- <!-- Remove "Really Simple Discovery (RSD)" link? -->
363
- <tr valign="top">
364
- <th scope="row">
365
- <label for="wpacu_remove_rsd_link">Remove "Really Simple Discovery (RSD)" link tag?</label>
366
- </th>
367
- <td>
368
- <?php echo $availableForPro; ?>
369
- <label class="wpacu_switch wpacu_locked_for_pro">
370
- <input id="wpacu_remove_rsd_link"
371
- type="checkbox"
372
- disabled="disabled"
373
- name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[remove_rsd_link]"
374
- value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
375
- &nbsp;
376
- <code>&lt;link rel=&quot;EditURI&quot; type=&quot;application/rsd xml&quot; title=&quot;RSD&quot; href=&quot;http://yourwebsite.com/xmlrpc.php?rsd&quot; /&gt;</code>
377
- <p style="margin-top: 10px;">XML-RPC clients use this discover method. If you do not know what this is and don't use service integrations such as <a href="http://www.flickr.com/services/api/request.xmlrpc.html" target="_blank">Flickr</a> on your WordPress website, you can remove it.</p>
378
- </td>
379
- </tr>
380
-
381
- <!-- Remove "Windows Live Writer" link? -->
382
- <tr valign="top">
383
- <th scope="row">
384
- <label for="wpacu_remove_wlw_link">Remove "Windows Live Writer" link tag?</label>
385
- </th>
386
- <td>
387
- <?php echo $availableForPro; ?>
388
- <label class="wpacu_switch wpacu_locked_for_pro">
389
- <input id="wpacu_remove_wlw_link"
390
- type="checkbox"
391
- disabled="disabled"
392
- name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[remove_wlw_link]"
393
- value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
394
- &nbsp;
395
- <code>&lt;link rel=&quot;wlwmanifest&quot; type=&quot;application/wlwmanifest xml&quot; href=&quot;https://yourwebsite.com/asset-optimizer/wp-includes/wlwmanifest.xml&quot; /&gt;</code>
396
- <p style="margin-top: 10px;">If you do not use Windows Live Writer to edit your blog contents, then it's safe to remove this.</p>
397
- </td>
398
- </tr>
399
-
400
- <!-- Remove "REST API" link tag? -->
401
- <tr valign="top">
402
- <th scope="row">
403
- <label for="wpacu_remove_rest_api_link">Remove "REST API" link tag?</label>
404
- </th>
405
- <td>
406
- <?php echo $availableForPro; ?>
407
- <label class="wpacu_switch wpacu_locked_for_pro">
408
- <input id="wpacu_remove_rest_api_link"
409
- type="checkbox"
410
- disabled="disabled"
411
- name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[remove_rest_api_link]"
412
- value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
413
- &nbsp;
414
- <code>&lt;link rel=&#39;https://api.w.org/&#39; href=&#39;https://yourwebsite.com/wp-json/&#39; /&gt;</code>
415
- <p style="margin-top: 10px;">Are you accessing your content through endpoints (e.g. https://yourwebsite.com/wp-json/, https://yourwebsite.com/wp-json/wp/v2/posts/1 - <em>1</em> in this example is the POST ID)? If not, you can remove this.</p>
416
- </td>
417
- </tr>
418
-
419
- <!-- Remove Pages/Posts "Shortlink" tag? -->
420
- <tr valign="top">
421
- <th scope="row">
422
- <label for="wpacu_remove_shortlink">Remove Pages/Posts "Shortlink" tag?</label>
423
- </th>
424
- <td>
425
- <?php echo $availableForPro; ?>
426
- <label class="wpacu_switch wpacu_locked_for_pro">
427
- <input id="wpacu_remove_shortlink"
428
- type="checkbox"
429
- disabled="disabled"
430
- name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[remove_shortlink]"
431
- value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
432
- &nbsp;
433
- <code>&lt;link rel=&#39;shortlink&#39; href=&quot;https://yourdomain.com/?p=1&quot;&gt;</code>
434
- <p style="margin-top: 10px;">Are you using SEO friendly URLs and do not need the default WordPress shortlink? You can just remove this as it bulks out the head section of your website.</p>
435
- </td>
436
- </tr>
437
-
438
- <!-- Remove "Post's Relational Links" tag? -->
439
- <tr valign="top">
440
- <th scope="row">
441
- <label for="wpacu_remove_posts_rel_links">Remove "Post's Relational Links" tag?</label>
442
- </th>
443
- <td>
444
- <?php echo $availableForPro; ?>
445
- <label class="wpacu_switch wpacu_locked_for_pro">
446
- <input id="wpacu_remove_posts_rel_links"
447
- type="checkbox"
448
- disabled="disabled"
449
- name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[remove_posts_rel_links]"
450
- value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
451
- &nbsp;
452
- <code>&lt;link rel=&#39;prev&#39; title=&#39;Title of adjacent post&#39; href=&#39;https://yourdomain.com/adjacent-post-slug-here/&#39; /&gt;</code>
453
- <p style="margin-top: 10px;">This removes relational links for the posts adjacent to the current post for single post pages.</p>
454
- </td>
455
- </tr>
456
-
457
- <!-- Remove "WordPress version" meta tag? -->
458
- <tr valign="top">
459
- <th scope="row">
460
- <label for="wpacu_remove_wp_version">Remove "WordPress version" meta tag?</label>
461
- </th>
462
- <td>
463
- <?php echo $availableForPro; ?>
464
- <label class="wpacu_switch wpacu_locked_for_pro">
465
- <input id="wpacu_remove_wp_version"
466
- type="checkbox"
467
- disabled="disabled"
468
- name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[remove_wp_version]"
469
- value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
470
- &nbsp;
471
- <code>&lt;meta name=&quot;generator&quot; content=&quot;WordPress 4.9.8&quot; /&gt;</code>
472
- <p style="margin-top: 10px;">This is good for security purposes as well, since it hides the WordPress version you're using (in case of hacking attempts).</p>
473
- </td>
474
- </tr>
475
-
476
- <!-- Remove "WordPress version" meta tag and all other tags? -->
477
- <tr valign="top">
478
- <th scope="row">
479
- <label for="wpacu_remove_generator_tag">Remove All "generator" meta tags?</label>
480
- </th>
481
- <td>
482
- <?php echo $availableForPro; ?>
483
- <label class="wpacu_switch wpacu_locked_for_pro">
484
- <input id="wpacu_remove_generator_tag"
485
- type="checkbox"
486
- disabled="disabled"
487
- name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[remove_generator_tag]"
488
- value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
489
- &nbsp;
490
- <code>e.g. &lt;meta name=&quot;generator&quot; content=&quot;Easy Digital Downloads v2.9.8&quot; /&gt;</code>
491
- <p style="margin-top: 10px;">This will remove all meta tags with the "generator" name, including the WordPress version. You could use a plugin or a theme that has added a generator notice, but you do not need to have it there. Moreover, it will hide the version of the plugins and theme you're using which is good for security reasons.</p>
492
- </td>
493
- </tr>
494
-
495
- <!-- Remove Main RSS Feed Link -->
496
- <tr valign="top">
497
- <th scope="row">
498
- <label for="wpacu_remove_main_feed_link">Remove Main RSS Feed Link?</label>
499
- </th>
500
- <td>
501
- <?php echo $availableForPro; ?>
502
- <label class="wpacu_switch wpacu_locked_for_pro">
503
- <input id="wpacu_remove_main_feed_link"
504
- type="checkbox"
505
- disabled="disabled"
506
- name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[remove_main_feed_link]"
507
- value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
508
- &nbsp;
509
- <code>&lt;link rel=&quot;alternate&quot; type=&quot;application/rss xml&quot; title=&quot;Your Site Title &amp;raquo; Feed&quot; href=&quot;https://www.yourwebsite.com/feed/&quot; /&gt;</code>
510
- <p style="margin-top: 10px;">If you do not use WordPress for blogging purposes at all, and it doesn't have any blog posts (apart from the main pages that you added), then you can remove the main feed link. It will also remove feeds for the following pages: categories, tags, custom taxonomies &amp; search results. Note that it will not remove comments RSS feeds which can be removed using the setting below. Some websites might have blog posts and would keep the main RSS feeds enabled, while removing the comments RSS feeds if they don't use the comments functionality.</p>
511
- </td>
512
- </tr>
513
-
514
- <!-- Remove Comment Feeds Link -->
515
- <tr valign="top">
516
- <th scope="row">
517
- <label for="wpacu_remove_comment_feed_link">Remove Comment RSS Feed Link?</label>
518
- </th>
519
- <td>
520
- <?php echo $availableForPro; ?>
521
- <label class="wpacu_switch wpacu_locked_for_pro">
522
- <input id="wpacu_remove_comment_feed_link"
523
- type="checkbox"
524
- disabled="disabled"
525
- name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[remove_comment_feed_link]"
526
- value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
527
- &nbsp;
528
- <code>e.g. &lt;link rel=&quot;alternate&quot; type=&quot;application/rss xml&quot; title=&quot;Your Website Title &amp;raquo; Comments Feed&quot; href=&quot;https://www.yourdomain.com/comments/feed/&quot; /&gt;</code>
529
- <p style="margin-top: 10px;">If you do not use the comments functionality on your posts or do not use WordPress for blogging purposes at all, then you can remove the comments feed link.</p>
530
- </td>
531
- </tr>
532
-
533
- <!-- Disable "XML-RPC" protocol support? -->
534
- <tr valign="top">
535
- <th scope="row">
536
- <label for="wpacu_disable_xmlrpc">Disable "XML-RPC" protocol support?</label>
537
- </th>
538
- <td>
539
- <?php echo $availableForPro; ?>
540
- <code>&lt;link rel=&quot;pingback&quot; href=&quot;https://www.yourwebsite.com/xmlrpc.php&quot; /&gt;</code>
541
- <p style="margin-bottom: 10px;">This will disable XML-RPC protocol support (partially or completely) and cleans up the "pingback" tag from the HEAD section of your website.</p>
542
- <p style="margin-bottom: 10px;">This is an API service used by WordPress for 3rd party applications, such as mobile apps, communication between blogs, plugins such as Jetpack. If you use, or are planning to use a remote system to post content to your website, you can keep this feature enabled (which it is by default). Many users do not use this function at all and if you're one of them, you can disable it.</p>
543
-
544
- <p style="margin-bottom: 10px;"><strong>Disable XML-RPC Pingback Only</strong>: If you need the XML-RPC protocol support, but you do not use the pingbacks which are used by your website to notify another website that you have linked to it from your page(s), you can just disable the pinbacks and keep the other XML-RPC functionality. This is also a security measure to prevent DDoS attacks.</p>
545
-
546
- <p style="margin-bottom: 0;"><strong>Disable XML-RPC Completely</strong>: If you do not use Jetpack plugin for off-site server communication or you only use the Dashboard to post content (without any remote software connection to the WordPress website such as Windows Live Writer or mobile apps), then you can disable the XML-RPC functionality. You can always re-enable it whenever you believe you'll need it.</p>
547
- </td>
548
- </tr>
549
- </table>
550
-
551
<?php
552
wp_nonce_field('wpacu_settings_update');
553
- submit_button();
554
?>
555
</form>
556
</div>
9
include_once '_top-area.php';
10
11
// [wpacu_lite]
12
+ $availableForPro = '<a href="'.WPACU_PLUGIN_GO_PRO_URL.'?utm_source=plugin_settings" class="go-pro-link-no-style"><span class="wpacu-tooltip">Available for Pro users<br />Buy now to unlock all features!</span> <img width="20" height="20" src="'.WPACU_PLUGIN_URL.'/assets/icons/icon-lock.svg" valign="top" alt="" /></a> &nbsp; ';
13
+ $settingsWithLock = '<em><strong>Note:</strong> The settings that have a lock are available to Pro users. <a href="' . WPACU_PLUGIN_GO_PRO_URL . '?utm_source=plugin_settings">Click here to upgrade!</a></em>';
14
// [/wpacu_lite]
15
16
do_action('wpacu_admin_notices');
18
<div class="wpacu-wrap wpacu-settings-area <?php if ($data['input_style'] !== 'standard') { ?>wpacu-switch-enhanced<?php } else { ?>wpacu-switch-standard<?php } ?>">
19
<form method="post" action="">
20
<input type="hidden" name="wpacu_settings_page" value="1" />
21
+
22
+ <div id="wpacu-settings-vertical-tab-wrap">
23
+ <div class="wpacu-settings-tab">
24
+ <a href="#wpacu-setting-plugin-usage-settings" class="wpacu-settings-tab-link active" onclick="wpacuTabOpenSettingsArea(event, 'wpacu-setting-plugin-usage-settings');"><?php _e('General &amp; Files Management', WPACU_PLUGIN_TEXT_DOMAIN); ?></a>
25
+ <a href="#wpacu-setting-test-mode" class="wpacu-settings-tab-link" onclick="wpacuTabOpenSettingsArea(event, 'wpacu-setting-test-mode');"><?php _e('Test Mode', WPACU_PLUGIN_TEXT_DOMAIN); ?></a>
26
+ <a href="#wpacu-setting-combine-loaded-files" class="wpacu-settings-tab-link" onclick="wpacuTabOpenSettingsArea(event, 'wpacu-setting-combine-loaded-files');"><?php _e('Combine CSS &amp; JS Files', WPACU_PLUGIN_TEXT_DOMAIN); ?></a>
27
+ <a href="#wpacu-setting-common-files-unload" class="wpacu-settings-tab-link" onclick="wpacuTabOpenSettingsArea(event, 'wpacu-setting-common-files-unload');"><?php _e('Common Elements Unload', WPACU_PLUGIN_TEXT_DOMAIN); ?></a>
28
+ <a href="#wpacu-setting-head-cleanup" class="wpacu-settings-tab-link" onclick="wpacuTabOpenSettingsArea(event, 'wpacu-setting-head-cleanup');"><?php _e('&lthead&gt; CleanUp', WPACU_PLUGIN_TEXT_DOMAIN); ?></a>
29
+ <a href="#wpacu-setting-disable-xml-rpc-protocol" class="wpacu-settings-tab-link" onclick="wpacuTabOpenSettingsArea(event, 'wpacu-setting-disable-xml-rpc-protocol');"><?php _e('Disable XML-RPC', WPACU_PLUGIN_TEXT_DOMAIN); ?></a>
30
+ </div>
31
+
32
+ <div id="wpacu-setting-plugin-usage-settings" class="wpacu-settings-tab-content" style="display: table-cell;">
33
+ <h2><?php _e('Plugin Usage Preferences', WPACU_PLUGIN_TEXT_DOMAIN); ?></h2>
34
+ <p>Choose how the assets are retrieved and whether you would like to see them within the Dashboard / Front-end view; Decide how the management list of CSS &amp; JavaScript files will show up and get sorted, depending on your preferences.</p>
35
+ <table class="wpacu-form-table">
36
+ <tr valign="top">
37
+ <th scope="row">
38
+ <label for="wpacu_dashboard">Manage in the Dashboard?</label>
39
+ </th>
40
+ <td>
41
+ <label class="wpacu_switch">
42
+ <input id="wpacu_dashboard"
43
+ type="checkbox"
44
+ <?php echo (($data['dashboard_show'] == 1) ? 'checked="checked"' : ''); ?>
45
+ name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[dashboard_show]"
46
+ value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
47
+ &nbsp;
48
+ This will show the list of assets in a meta box on edit the post (any type) / page within the Dashboard
49
+ <p>The assets would be retrieved via AJAX call(s) that will fetch the post/page URL and extract all the styles &amp; scripts that are enqueued.</p>
50
+ <p>Note that sometimes the assets list is not loading within the Dashboard. That could be because "mod_security" Apache module is enabled or some securiy plugins are blocking the AJAX request. If this option doesn't work, consider managing the list in the front-end view.</p>
51
+
52
+ <div id="wpacu-settings-assets-retrieval-mode"
53
+ <?php if (! ($data['dashboard_show'] == 1)) { echo 'style="display: none;"'; } ?>>
54
+
55
+ <ul id="wpacu-dom-get-type-selections">
56
+ <li>
57
+ <label for="wpacu_dom_get_type">Select a retrieval way:</label>
58
+ </li>
59
+ <li>
60
+ <label>
61
+ <input class="wpacu-dom-get-type-selection"
62
+ data-target="wpacu-dom-get-type-direct-info"
63
+ <?php if ($data['dom_get_type'] === 'direct') { ?>checked="checked"<?php } ?>
64
+ type="radio" name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[dom_get_type]"
65
+ value="direct" /> Direct
66
+ </label>
67
+ </li>
68
+ <li>
69
+ <label>
70
+ <input class="wpacu-dom-get-type-selection"
71
+ data-target="wpacu-dom-get-type-wp-remote-post-info"
72
+ <?php if ($data['dom_get_type'] === 'wp_remote_post') { ?>checked="checked"<?php } ?>
73
+ type="radio" name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[dom_get_type]"
74
+ value="wp_remote_post" /> WP Remote Post
75
+ </label>
76
+ </li>
77
+ </ul>
78
+
79
+ <div class="wpacu-clearfix" style="height: 0;"></div>
80
+
81
+ <ul id="wpacu-dom-get-type-infos">
82
+ <li <?php if ($data['dom_get_type'] !== 'direct') { ?>style="display: none;"<?php } ?>
83
+ class="wpacu-dom-get-type-info"
84
+ id="wpacu-dom-get-type-direct-info">
85
+ <strong>Direct</strong> - This one makes an AJAX call directly on the URL for which the assets are retrieved, then an extra WordPress AJAX call to process the list. Sometimes, due to some external factors (e.g. mod_security module from Apache, security plugin or the fact that non-http is forced for the front-end view and the AJAX request will be blocked), this might not work and another choice method might work better. This used to be the only option available, prior to version 1.2.4.4 and is set as default.
86
+ </li>
87
+ <li <?php if ($data['dom_get_type'] !== 'wp_remote_post') { ?>style="display: none;"<?php } ?>
88
+ class="wpacu-dom-get-type-info"
89
+ id="wpacu-dom-get-type-wp-remote-post-info">
90
+ <strong>WP Remote Post</strong> - It makes a WordPress AJAX call and gets the HTML source code through wp_remote_post(). This one is less likely to be blocked as it is made on the same protocol (no HTTP request from HTTPS). However, in some cases (e.g. a different load balancer configuration), this might not work when the call to fetch a domain's URL (your website) is actually made from the same domain.
91
+ </li>
92
+ </ul>
93
+ </div>
94
+ </td>
95
+ </tr>
96
+ <tr valign="top">
97
+ <th scope="row">
98
+ <label for="wpacu_frontend">Manage in the Front-end?</label>
99
+ </th>
100
+ <td>
101
+ <label class="wpacu_switch">
102
+ <input id="wpacu_frontend"
103
+ type="checkbox"
104
+ <?php echo (($data['frontend_show'] == 1) ? 'checked="checked"' : ''); ?>
105
+ name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[frontend_show]"
106
+ value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
107
+ &nbsp;
108
+ If you are logged in, this will make the list of assets show below the page that you view (either home page, a post or a page).
109
+ <p style="margin-top: 10px;">The area will be shown through the <code>wp_footer</code> action so in case you do not see the asset list at the bottom of the page, make sure the theme is using <a href="https://codex.wordpress.org/Function_Reference/wp_footer"><code>wp_footer()</code></a> function before the <code>&lt;/body&gt;</code> tag. Any theme that follows the standards should have it. If not, you will have to add it to make sure other plugins and code from functions.php will work fine.</p>
110
+ </td>
111
+ </tr>
112
+ <tr valign="top">
113
+ <th scope="row">
114
+ <label for="wpacu_assets_list_layout">Assets List Layout</label>
115
+ </th>
116
+ <td>
117
+ <label>
118
+ <select id="wpacu_assets_list_layout"
119
+ name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[assets_list_layout]">
120
+ <option <?php if ($data['assets_list_layout'] === 'by-location') { echo 'selected="selected"'; } ?> value="by-location">All Styles &amp; Scripts &#10230; One list grouped by location (themes, plugins, core &amp; external)</option>
121
+ <option <?php if (in_array($data['assets_list_layout'], array('two-lists', 'default'))) { echo 'selected="selected"'; } ?> value="two-lists">All Styles + All Scripts &#10230; Two lists</option>
122
+ <option disabled="disabled" value="all">All Styles &amp; Scripts &#10230; One list (Pro Version)</option>
123
+ </select>
124
+ </label>
125
+
126
+ <p style="margin-top: 10px;">These are various ways in which the list of assets that you will manage will show up. Depending on your preference, you might want to see the list of styles &amp; scripts first, or all together sorted in alphabetical order etc. Options that are disabled are available in the Pro version.</p>
127
+ </td>
128
+ </tr>
129
+ <tr valign="top">
130
+ <th scope="row">
131
+ <label>On Assets List Layout Load, keep "Styles &amp; Scripts" area:</label>
132
+ </th>
133
+ <td>
134
+ <ul class="assets_list_layout_areas_status_choices">
135
<li>
136
+ <label for="assets_list_layout_areas_status_expanded">
137
+ <input id="assets_list_layout_areas_status_expanded"
138
+ <?php if (! $data['assets_list_layout_areas_status'] || $data['assets_list_layout_areas_status'] === 'expanded') { ?>checked="checked"<?php } ?>
139
+ type="radio"
140
+ name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[assets_list_layout_areas_status]"
141
+ value="expanded"> Expanded (Default)
142
+ </label>
143
</li>
144
<li>
145
+ <label for="assets_list_layout_areas_status_contracted">
146
+ <input id="assets_list_layout_areas_status_contracted"
147
+ <?php if ($data['assets_list_layout_areas_status'] === 'contracted') { ?>checked="checked"<?php } ?>
148
+ type="radio"
149
+ name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[assets_list_layout_areas_status]"
150
+ value="contracted"> Contracted
151
</label>
152
</li>
153
+ </ul>
154
+ <div class="wpacu-clearfix"></div>
155
+
156
+ <p>Sometimes, when you have plenty of elements in the edit page, you might want to contract the list of assets when you're viewing the page as it will save space. This can be a good practice, especially when you finished optimising the pages and you don't want to keep seeing the long list of files every time you edit a page.</p>
157
+ </td>
158
+ </tr>
159
+ <tr valign="top">
160
+ <th scope="row">
161
+ <label>On Assets List Layout Load, keep "Inline code associated with this handle" area:</label>
162
+ </th>
163
+ <td>
164
+ <ul class="assets_list_inline_code_status_choices">
165
<li>
166
+ <label for="assets_list_inline_code_status_expanded">
167
+ <input id="assets_list_inline_code_status_expanded"
168
+ <?php if (! $data['assets_list_inline_code_status'] || $data['assets_list_inline_code_status'] === 'expanded') { ?>checked="checked"<?php } ?>
169
+ type="radio"
170
+ name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[assets_list_inline_code_status]"
171
+ value="expanded"> Expanded (Default)
172
+ </label>
173
+ </li>
174
+ <li>
175
+ <label for="assets_list_inline_code_status_contracted">
176
+