Version Description
- Option to hide WordPress core files from the management list to avoid applying settings to any of them by mistake (showing the core files for unload, async or defer are mostly useful for advanced developers in particular situations)
- Improved security of the pages by adding nonces everywhere there is an update button within the Dashboard related to the plugin
- Added confirmation message on top of the list in front-end view after an update is made (to avoid confusion whether the settings were updated or not)
- The height of an asset row (CSS or JavaScript) is now smaller as "Unload on this page" and bulk unloads (site-wide, by post type etc.) are placed on the same line if the screen width is large enough, convenient when going through a big list of assets
Download this release
Release Info
Developer | gabelivan |
Plugin | ![]() |
Version | 1.2.8.5 |
Comparing to | |
See all releases |
Code changes from version 1.2.8.4 to 1.2.8.5
- assets/style.min.css +1 -1
- classes/BulkUnloads.php +2 -0
- classes/HomePage.php +6 -7
- classes/Main.php +5 -5
- classes/Menu.php +9 -0
- classes/Settings.php +3 -0
- classes/Update.php +53 -0
- readme.txt +8 -2
- templates/admin-page-get-help.php +2 -2
- templates/admin-page-license.php +1 -1
- templates/admin-page-settings-bulk-unloads.php +14 -11
- templates/admin-page-settings-homepage.php +5 -2
- templates/admin-page-settings-plugin.php +60 -3
- templates/meta-box-loaded-assets/_asset-script-single-row.php +143 -133
- templates/meta-box-loaded-assets/_asset-style-single-row.php +19 -12
- templates/meta-box-loaded-assets/view-default.php +16 -2
- templates/settings-frontend.php +13 -0
- wpacu.php +2 -2
assets/style.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.wpacu_update_btn,label.wpacu_add_global{cursor:pointer!important}.go-pro-link-no-style:not(.nav-tab),.wpacu-notice p{font-style:italic}#wpacu-pages-info-area{width:98%}#wpacu-logo-area{margin:15px 0;padding:0 10px}#wpacu-logo-area img{max-width:340px;width:100%}.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.inactive{color:#c00}.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-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}body.toplevel_page_wpassetcleanup_settings .notice{padding:10px!important}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 h3{margin-left:0;padding-left:0}#wpacu_meta_box_content div.wpacu_note,#wpacu_wrap_assets div.wpacu_note{padding:10px;background-color:#f5f5f5}#wpacu_meta_box_content .dashicons.dashicons-warning{color:#c00}#wpacu_meta_box_content div.wpacu_warning,#wpacu_wrap_assets div.wpacu_warning{border:1px solid #c00}#wpacu_meta_box_content div.wpacu_verified{padding:10px;background-color:#f5f5f5;border-left:1px solid #ddd}#wpacu_meta_box_content div.wpacu_verified span{color:#0073aa;font-weight:700}#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_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 small{margin:0!important;letter-spacing:normal!important}#wpacu_wrap_assets input[type=checkbox]{margin-right:4px!important}#wpacu_wrap_assets p{margin:10px 0!important;line-height:22px!important;text-align:left!important;font-weight:400!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:10px!important;border-left:1px solid #cdcdcd;border-right:1px solid #cdcdcd;border-bottom:1px solid #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_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%;border:1px solid #e5e5e5!important}.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;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;line-height:normal!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}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-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;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;border-radius:.3rem}.wpacu-btns .btn-group-sm>.btn,.wpacu-btns .btn-sm{padding:.25rem .5rem;font-size:.875rem;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;text-align:center;font-size:16px;margin:4px 2px;cursor:pointer;border-radius:10px;-webkit-transition-duration:.4s;transition-duration:.4s}.go-pro-button:hover{background-color:#fff;color:#000;border:2px solid #4CAF50}.go-pro-link-no-style .tooltip,.wordpress-core-file .tooltip{font-size:14px;line-height:18px;z-index:1;text-align:center;padding:6px;border-radius:6px;bottom:100%;left:50%}.go-pro-link-no-style{position:relative;color:inherit}.go-pro-link-no-style .tooltip{position:absolute;visibility:hidden;width:130px;background-color:#27ae60;color:#fff;margin-left:-65px}.go-pro-link-no-style .tooltip.wpacu-larger{width:240px}.go-pro-link-no-style:hover .tooltip{visibility:visible}.wordpress-core-file{position:relative;font-style:normal;color:inherit}.wordpress-core-file .tooltip{position:absolute;visibility:hidden;width:160px;background-color:#c00;color:#fff;margin-left:-80px}.wordpress-core-file:hover .tooltip{visibility:visible}body.wp-admin .go-pro-link-no-style .tooltip{font-size:12px;line-height:16px;padding:5px}.pro-page-unlock-notice{border-radius:10px;padding:10px;background:#f2faf2;border:1px solid #c0e8c0;width:auto;display:block}.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;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}.ajax-direct-call-error-area{background:#fff;padding:10px;border:1px solid #c00;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;border-radius:10px}.wpacu-notice{margin:20px 20px 0 0!important}.wpacu-notice p{font-weight:600!important}.wpacu-notice .dashicons{font-weight:inherit!important;color:#46b450!important;margin-right:4px;vertical-align:text-bottom;font-size:27px}.wpacu-wrap.wpacu-switch-standard .toplevel_page_wpassetcleanup_settings .wpacu_switch{width:auto;height:auto}.wpacu-wrap.wpacu-switch-standard .toplevel_page_wpassetcleanup_settings .wpacu_switch input{display:block}.wpacu-wrap.wpacu-switch-standard .toplevel_page_wpassetcleanup_settings .wpacu_switch input[type=checkbox]{margin:0 0 3px}.wpacu-wrap.wpacu-switch-standard .toplevel_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}.toplevel_page_wpassetcleanup_settings .setting_title p.wpacu_subtitle{margin-top:2px;line-height:1.2}.toplevel_page_wpassetcleanup_settings .setting_title p.wpacu_subtitle em{font-weight:200}.toplevel_page_wpassetcleanup_settings .setting_title p.wpacu_read_more{margin-top:-10px;font-style:italic;font-size:12px}.toplevel_page_wpassetcleanup_settings .assets_list_inline_code_status_choices,.toplevel_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices,.toplevel_page_wpassetcleanup_settings .input_style_choices{list-style:none;margin:0}.toplevel_page_wpassetcleanup_settings .assets_list_inline_code_status_choices li,.toplevel_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices li,.toplevel_page_wpassetcleanup_settings .input_style_choices li{float:left;margin-right:30px}.toplevel_page_wpassetcleanup_settings .assets_list_inline_code_status_choices li:last-child,.toplevel_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices li:last-child,.toplevel_page_wpassetcleanup_settings .input_style_choices li:last-child{margin-right:0}.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-assets-collapsible-wrap.wpacu-wrap-all,.wpacu-assets-collapsible-wrap.wpacu-wrap-styles{margin-top:20px}.wpacu-wp-button:hover{background:#fafafa;border-color:#999;color:#23282d}a.wpacu-assets-collapsible.wpacu-assets-collapsible-active,a.wpacu-assets-collapsible:hover{background-color:#f1f3f8}.wpacu-assets-collapsible-wrap{border:1px solid #e7e7e7}.wpacu-assets-collapsible-wrap.wpacu-wrap-all .distinguish-asset-list{list-style:none;margin-left:0;margin-bottom:5px;display:inline-block}.wpacu-assets-collapsible-wrap.wpacu-wrap-all .distinguish-asset-list li{float:left;margin-right:20px}.wpacu-assets-collapsible-wrap.wpacu-wrap-all .distinguish-asset-list li:last-child{margin-right:0}.wpacu-assets-collapsible-wrap.wpacu-wrap-scripts{margin-top:10px}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: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:after{content:"\f460"}.wpacu-assets-collapsible-content{padding:0 16px;max-height:0;overflow:hidden;background-color:#fbfbfb8c}.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{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{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}.wpacu-warning{font-size:15px;padding:10px;background:#fffcec;border:1px solid #fdd5c9;margin:0 0 5px;width:100%}
|
1 |
+
.wpacu_update_btn,label.wpacu_add_global{cursor:pointer!important}.go-pro-link-no-style:not(.nav-tab),.wpacu-notice p{font-style:italic}#wpacu-pages-info-area{width:98%}#wpacu-logo-area{margin:15px 0;padding:0 10px}#wpacu-logo-area img{max-width:340px;width:100%}.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.inactive{color:#c00}.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-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}body.toplevel_page_wpassetcleanup_settings .notice{padding:10px!important}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 h3{margin-left:0;padding-left:0}#wpacu_meta_box_content div.wpacu_note{padding:10px;background-color:#f5f5f5}#wpacu_meta_box_content .dashicons.dashicons-warning{color:#c00}#wpacu_meta_box_content div.wpacu_warning,#wpacu_wrap_assets div.wpacu_warning{border:1px solid #c00}#wpacu_meta_box_content div.wpacu_verified{padding:10px;background-color:#f5f5f5;border-left:1px solid #ddd}#wpacu_meta_box_content div.wpacu_verified span{color:#0073aa;font-weight:700}#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 small{margin:0!important;letter-spacing:normal!important}#wpacu_wrap_assets input[type=checkbox]{margin-right:4px!important}#wpacu_wrap_assets p{margin:10px 0!important;line-height:22px!important;text-align:left!important;font-weight:400!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:10px!important;border-left:1px solid #cdcdcd;border-right:1px solid #cdcdcd;border-bottom:1px solid #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_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%;border:1px solid #e5e5e5!important}.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;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;line-height:normal!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}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-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%}.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;text-align:center;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}body.wp-admin .wpacu_asset_row .go-pro-link-no-style .tooltip{padding:8px 2px}body.wp-admin .go-pro-link-no-style .tooltip{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.no-transition .tooltip{-webkit-transition:0s all ease;transition:0s all ease;-webkit-transition-delay:0s;transition-delay:0s}.go-pro-link-no-style .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 .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 .tooltip.wpacu-larger{width:240px}.go-pro-link-no-style:hover .tooltip{visibility:visible}.wordpress-core-file{position:relative;font-style:normal;color:inherit}.wordpress-core-file .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 .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 .tooltip{visibility:visible}.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-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}.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}.wpacu-notice .dashicons{font-weight:inherit!important;color:#46b450!important;margin-right:4px;vertical-align:text-bottom;font-size:27px}.wpacu-wrap.wpacu-switch-standard .toplevel_page_wpassetcleanup_settings .wpacu_switch{width:auto;height:auto}.wpacu-wrap.wpacu-switch-standard .toplevel_page_wpassetcleanup_settings .wpacu_switch input{display:block}.wpacu-wrap.wpacu-switch-standard .toplevel_page_wpassetcleanup_settings .wpacu_switch input[type=checkbox]{margin:0 0 3px}.wpacu-wrap.wpacu-switch-standard .toplevel_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}.toplevel_page_wpassetcleanup_settings .setting_title p.wpacu_subtitle{margin-top:2px;line-height:1.2}.toplevel_page_wpassetcleanup_settings .setting_title p.wpacu_subtitle em{font-weight:200}.toplevel_page_wpassetcleanup_settings .setting_title p.wpacu_read_more{margin-top:-10px;font-style:italic;font-size:12px}.toplevel_page_wpassetcleanup_settings .assets_list_inline_code_status_choices,.toplevel_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices,.toplevel_page_wpassetcleanup_settings .input_style_choices{list-style:none;margin:0}.toplevel_page_wpassetcleanup_settings .assets_list_inline_code_status_choices li,.toplevel_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices li,.toplevel_page_wpassetcleanup_settings .input_style_choices li{float:left;margin-right:30px}.toplevel_page_wpassetcleanup_settings .assets_list_inline_code_status_choices li:last-child,.toplevel_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices li:last-child,.toplevel_page_wpassetcleanup_settings .input_style_choices li:last-child{margin-right: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-assets-collapsible-wrap.wpacu-wrap-all,.wpacu-assets-collapsible-wrap.wpacu-wrap-styles{margin-top:20px}.wpacu-wp-button:hover{background:#fafafa;border-color:#999;color:#23282d}a.wpacu-assets-collapsible.wpacu-assets-collapsible-active,a.wpacu-assets-collapsible:hover{background-color:#f1f3f8}.wpacu-assets-collapsible-wrap{border:1px solid #e7e7e7}.wpacu-assets-collapsible-wrap.wpacu-wrap-all .distinguish-asset-list{list-style:none;margin-left:0;margin-bottom:5px;display:inline-block}.wpacu-assets-collapsible-wrap.wpacu-wrap-all .distinguish-asset-list li{float:left;margin-right:20px}.wpacu-assets-collapsible-wrap.wpacu-wrap-all .distinguish-asset-list li:last-child{margin-right:0}.wpacu-assets-collapsible-wrap.wpacu-wrap-scripts{margin-top:10px}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: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:after{content:"\f460"}.wpacu-assets-collapsible-content{padding:0 16px;max-height:0;overflow:hidden;background-color:#fbfbfb8c}.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{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{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}.wpacu-warning{font-size:15px;padding:10px;background:#fffcec;border:1px solid #fdd5c9;margin:0 0 5px;width:100%}
|
classes/BulkUnloads.php
CHANGED
@@ -96,6 +96,8 @@ class BulkUnloads
|
|
96 |
*/
|
97 |
public function update()
|
98 |
{
|
|
|
|
|
99 |
$wpacuUpdate = new Update;
|
100 |
|
101 |
if ($this->wpacuFor === 'everywhere') {
|
96 |
*/
|
97 |
public function update()
|
98 |
{
|
99 |
+
check_admin_referer('wpacu_bulk_unloads_update');
|
100 |
+
|
101 |
$wpacuUpdate = new Update;
|
102 |
|
103 |
if ($this->wpacuFor === 'everywhere') {
|
classes/HomePage.php
CHANGED
@@ -17,7 +17,7 @@ class HomePage
|
|
17 |
*/
|
18 |
public function __construct()
|
19 |
{
|
20 |
-
$this->data['nonce_name']
|
21 |
$this->data['show_on_front'] = Misc::getShowOnFront();
|
22 |
|
23 |
$isHomePageEdit = (Misc::getVar('get', 'page') === WPACU_PLUGIN_NAME.'_home_page');
|
@@ -57,18 +57,17 @@ class HomePage
|
|
57 |
*/
|
58 |
public function page()
|
59 |
{
|
60 |
-
|
61 |
-
|
62 |
-
$noncePost = Misc::getVar('post', $this->data['nonce_name']);
|
63 |
|
64 |
// Could Be an Empty Array as Well so just is_array() is enough to use
|
65 |
-
if (is_array($wpacuNoLoadAssets) &&
|
|
|
|
|
66 |
$wpacuUpdate = new Update;
|
67 |
$wpacuUpdate->updateFrontPage($wpacuNoLoadAssets);
|
68 |
}
|
69 |
|
70 |
-
$this->data['nonce_value'] = wp_create_nonce($this->data['nonce_name']);
|
71 |
-
|
72 |
$wpacuSettings = new Settings;
|
73 |
$this->data['wpacu_settings'] = $wpacuSettings->getAll();
|
74 |
|
17 |
*/
|
18 |
public function __construct()
|
19 |
{
|
20 |
+
$this->data['nonce_name'] = WPACU_PLUGIN_NAME.'_home_page_update';
|
21 |
$this->data['show_on_front'] = Misc::getShowOnFront();
|
22 |
|
23 |
$isHomePageEdit = (Misc::getVar('get', 'page') === WPACU_PLUGIN_NAME.'_home_page');
|
57 |
*/
|
58 |
public function page()
|
59 |
{
|
60 |
+
$wpacuNoLoadAssets = Misc::getVar('post', WPACU_PLUGIN_NAME, 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 |
|
classes/Main.php
CHANGED
@@ -64,7 +64,7 @@ class Main
|
|
64 |
/**
|
65 |
* @var array
|
66 |
*/
|
67 |
-
public $vars = array('woo_url_not_match' => false, 'is_woo_shop_page'
|
68 |
|
69 |
/**
|
70 |
* @var bool
|
@@ -1044,15 +1044,15 @@ class Main
|
|
1044 |
public function ajaxGetJsonListCallback()
|
1045 |
{
|
1046 |
$postId = isset($_POST['post_id']) ? (int)$_POST['post_id'] : ''; // if any (could be home page for instance)
|
1047 |
-
$pageUrl =
|
1048 |
|
1049 |
$wpacuList = $contents = '';
|
1050 |
|
1051 |
$settings = new Settings();
|
1052 |
|
1053 |
if (self::$domGetType === 'direct') {
|
1054 |
-
$contents =
|
1055 |
-
$wpacuList =
|
1056 |
} elseif (self::$domGetType === 'wp_remote_post') {
|
1057 |
$wpRemotePost = wp_remote_post($pageUrl, array(
|
1058 |
'body' => array(
|
@@ -1146,7 +1146,7 @@ class Main
|
|
1146 |
//echo '<pre>'; print_r($data['bulk_unloaded']['post_type']);
|
1147 |
if ($postId > 0) {
|
1148 |
$type = 'post';
|
1149 |
-
} elseif (
|
1150 |
// [wpacu_pro]
|
1151 |
$type = 'for_pro';
|
1152 |
// [/wpacu_pro]
|
64 |
/**
|
65 |
* @var array
|
66 |
*/
|
67 |
+
public $vars = array('woo_url_not_match' => false, 'is_woo_shop_page' => false);
|
68 |
|
69 |
/**
|
70 |
* @var bool
|
1044 |
public function ajaxGetJsonListCallback()
|
1045 |
{
|
1046 |
$postId = isset($_POST['post_id']) ? (int)$_POST['post_id'] : ''; // if any (could be home page for instance)
|
1047 |
+
$pageUrl = Misc::getVar('post', 'page_url'); // post, page, custom post type, home page etc.
|
1048 |
|
1049 |
$wpacuList = $contents = '';
|
1050 |
|
1051 |
$settings = new Settings();
|
1052 |
|
1053 |
if (self::$domGetType === 'direct') {
|
1054 |
+
$contents = Misc::getVar('post', 'contents');
|
1055 |
+
$wpacuList = Misc::getVar('post', 'wpacu_list');
|
1056 |
} elseif (self::$domGetType === 'wp_remote_post') {
|
1057 |
$wpRemotePost = wp_remote_post($pageUrl, array(
|
1058 |
'body' => array(
|
1146 |
//echo '<pre>'; print_r($data['bulk_unloaded']['post_type']);
|
1147 |
if ($postId > 0) {
|
1148 |
$type = 'post';
|
1149 |
+
} elseif (Misc::getVar('post', 'tag_id')) {
|
1150 |
// [wpacu_pro]
|
1151 |
$type = 'for_pro';
|
1152 |
// [/wpacu_pro]
|
classes/Menu.php
CHANGED
@@ -123,6 +123,15 @@ class Menu
|
|
123 |
function() {}
|
124 |
);
|
125 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
// Rename first item from the menu which has the same title as the menu page
|
127 |
$GLOBALS['submenu'][self::$slug][0][0] = esc_attr__('Settings', WPACU_PLUGIN_NAME);
|
128 |
}
|
123 |
function() {}
|
124 |
);
|
125 |
|
126 |
+
// Add "Asset CleanUp Pro" Settings Link to the main "Settings" menu within the Dashboard
|
127 |
+
// For easier navigation
|
128 |
+
$GLOBALS['submenu']['options-general.php'][] = array(
|
129 |
+
__('Asset CleanUp', WPACU_PLUGIN_NAME),
|
130 |
+
self::$capability,
|
131 |
+
admin_url('admin.php?page='.WPACU_PLUGIN_NAME.'_settings'),
|
132 |
+
__('Asset CleanUp', WPACU_PLUGIN_NAME),
|
133 |
+
);
|
134 |
+
|
135 |
// Rename first item from the menu which has the same title as the menu page
|
136 |
$GLOBALS['submenu'][self::$slug][0][0] = esc_attr__('Settings', WPACU_PLUGIN_NAME);
|
137 |
}
|
classes/Settings.php
CHANGED
@@ -25,6 +25,7 @@ class Settings
|
|
25 |
'assets_list_layout_areas_status',
|
26 |
'assets_list_inline_code_status',
|
27 |
|
|
|
28 |
'test_mode',
|
29 |
|
30 |
'disable_emojis',
|
@@ -91,6 +92,8 @@ class Settings
|
|
91 |
public function saveSettings()
|
92 |
{
|
93 |
if (! empty($_POST) && array_key_exists('wpacu_settings_page', $_POST)) {
|
|
|
|
|
94 |
$data = Misc::getVar('post', WPACU_PLUGIN_NAME . '_settings', array());
|
95 |
$this->update($data);
|
96 |
}
|
25 |
'assets_list_layout_areas_status',
|
26 |
'assets_list_inline_code_status',
|
27 |
|
28 |
+
'hide_core_files',
|
29 |
'test_mode',
|
30 |
|
31 |
'disable_emojis',
|
92 |
public function saveSettings()
|
93 |
{
|
94 |
if (! empty($_POST) && array_key_exists('wpacu_settings_page', $_POST)) {
|
95 |
+
check_admin_referer('wpacu_settings_update');
|
96 |
+
|
97 |
$data = Misc::getVar('post', WPACU_PLUGIN_NAME . '_settings', array());
|
98 |
$this->update($data);
|
99 |
}
|
classes/Update.php
CHANGED
@@ -21,6 +21,33 @@ class Update
|
|
21 |
*/
|
22 |
public $frontEndUpdateTriggered = false;
|
23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
/**
|
25 |
*
|
26 |
*/
|
@@ -52,6 +79,13 @@ class Update
|
|
52 |
*/
|
53 |
public function frontendUpdate()
|
54 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
$postId = 0;
|
56 |
|
57 |
if (Main::instance()->currentPostId > 0) {
|
@@ -149,6 +183,8 @@ class Update
|
|
149 |
|
150 |
$location .= $extraParamsSign . http_build_query($paramsToAdd) . '#wpacu_wrap_assets';
|
151 |
|
|
|
|
|
152 |
wp_safe_redirect($location);
|
153 |
exit();
|
154 |
}
|
@@ -255,8 +291,25 @@ class Update
|
|
255 |
|
256 |
// Add / Remove Site-wide Unloads
|
257 |
$this->updateEverywhereUnloads();
|
|
|
|
|
|
|
|
|
258 |
}
|
259 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
260 |
/**
|
261 |
* Lite: For Singular Page (Post, Page, Custom Post Type) and Front Page (Home Page)
|
262 |
* Pro: 'for_pro' would trigger the actions from the premium extension (if available)
|
21 |
*/
|
22 |
public $frontEndUpdateTriggered = false;
|
23 |
|
24 |
+
/**
|
25 |
+
* @var array
|
26 |
+
*/
|
27 |
+
public $frontEndUpdateFor = array(
|
28 |
+
'homepage' => false,
|
29 |
+
'page' => false
|
30 |
+
);
|
31 |
+
|
32 |
+
/**
|
33 |
+
* @var array
|
34 |
+
*/
|
35 |
+
public $updateDoneMsg = array();
|
36 |
+
|
37 |
+
/**
|
38 |
+
* Update constructor.
|
39 |
+
*/
|
40 |
+
public function __construct()
|
41 |
+
{
|
42 |
+
$this->updateDoneMsg['homepage'] = <<<HTML
|
43 |
+
<span class="dashicons dashicons-yes"></span> The homepage's settings were updated. Please make sure the homepage's cache is cleared (if you're using a caching plugin or a server-side caching solution) to immediately have the changes applied for every visitor.
|
44 |
+
HTML;
|
45 |
+
|
46 |
+
$this->updateDoneMsg['page'] = <<<HTML
|
47 |
+
<span class="dashicons dashicons-yes"></span> This page's settings were updated. Please make sure the page's cache is cleared (if you're using a caching plugin or a server-side caching solution) to immediately have the changes applied for every visitor.
|
48 |
+
HTML;
|
49 |
+
}
|
50 |
+
|
51 |
/**
|
52 |
*
|
53 |
*/
|
79 |
*/
|
80 |
public function frontendUpdate()
|
81 |
{
|
82 |
+
@session_start();
|
83 |
+
|
84 |
+
if (isset($_SESSION['wpacu_page_just_updated'])) {
|
85 |
+
define('WPACU_PAGE_JUST_UPDATED', true);
|
86 |
+
unset($_SESSION['wpacu_page_just_updated']);
|
87 |
+
}
|
88 |
+
|
89 |
$postId = 0;
|
90 |
|
91 |
if (Main::instance()->currentPostId > 0) {
|
183 |
|
184 |
$location .= $extraParamsSign . http_build_query($paramsToAdd) . '#wpacu_wrap_assets';
|
185 |
|
186 |
+
$_SESSION['wpacu_page_just_updated'] = true;
|
187 |
+
|
188 |
wp_safe_redirect($location);
|
189 |
exit();
|
190 |
}
|
291 |
|
292 |
// Add / Remove Site-wide Unloads
|
293 |
$this->updateEverywhereUnloads();
|
294 |
+
|
295 |
+
add_action('wpacu_admin_notices', array($this, 'homePageUpdated'));
|
296 |
+
|
297 |
+
$this->frontEndUpdateFor['homepage'] = true;
|
298 |
}
|
299 |
|
300 |
+
/**
|
301 |
+
/**
|
302 |
+
*
|
303 |
+
*/
|
304 |
+
public function homePageUpdated()
|
305 |
+
{
|
306 |
+
?>
|
307 |
+
<div class="updated notice wpacu-notice is-dismissible">
|
308 |
+
<p><?php echo $this->updateDoneMsg['homepage']; ?></p>
|
309 |
+
</div>
|
310 |
+
<?php
|
311 |
+
}
|
312 |
+
|
313 |
/**
|
314 |
* Lite: For Singular Page (Post, Page, Custom Post Type) and Front Page (Home Page)
|
315 |
* Pro: 'for_pro' would trigger the actions from the premium extension (if available)
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Asset CleanUp: Page Speed Booster ===
|
2 |
Contributors: gabelivan
|
3 |
-
Tags:
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7GJZCW6RD8ECS
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.0
|
7 |
-
Stable tag: 1.2.8.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl.html
|
10 |
|
@@ -131,6 +131,12 @@ If that's the case, then it's advisable to consult with a developer (ideally the
|
|
131 |
4. Scripts (.JS) are selected for site-wide unload
|
132 |
|
133 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
= 1.2.8.4 =
|
135 |
* Added "Input Fields Style" option in plugin's "Settings" which would turn the fancy CSS3 iPhone-like checkboxes to standard HTML checkboxes (good for people with disabilities who use a screen reader software or personal preference)
|
136 |
* Added notification in the front-end view in case WP Rocket is enabled with "User Cache" enabled
|
1 |
=== Asset CleanUp: Page Speed Booster ===
|
2 |
Contributors: gabelivan
|
3 |
+
Tags: pagespeed, page speed, dequeue, performance, gtmetrix
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7GJZCW6RD8ECS
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.0
|
7 |
+
Stable tag: 1.2.8.5
|
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.8.5 =
|
135 |
+
* Option to hide WordPress core files from the management list to avoid applying settings to any of them by mistake (showing the core files for unload, async or defer are mostly useful for advanced developers in particular situations)
|
136 |
+
* Improved security of the pages by adding nonces everywhere there is an update button within the Dashboard related to the plugin
|
137 |
+
* Added confirmation message on top of the list in front-end view after an update is made (to avoid confusion whether the settings were updated or not)
|
138 |
+
* The height of an asset row (CSS or JavaScript) is now smaller as "Unload on this page" and bulk unloads (site-wide, by post type etc.) are placed on the same line if the screen width is large enough, convenient when going through a big list of assets
|
139 |
+
|
140 |
= 1.2.8.4 =
|
141 |
* Added "Input Fields Style" option in plugin's "Settings" which would turn the fancy CSS3 iPhone-like checkboxes to standard HTML checkboxes (good for people with disabilities who use a screen reader software or personal preference)
|
142 |
* Added notification in the front-end view in case WP Rocket is enabled with "User Cache" enabled
|
templates/admin-page-get-help.php
CHANGED
@@ -23,7 +23,7 @@ include_once '_top-area.php';
|
|
23 |
<div class="wpacu-image-area wpacu-delete col-right">
|
24 |
<img src="<?php echo WPACU_PLUGIN_URL; ?>/assets/images/wpacu-upgrade-steps/wpacu-upgrade-step-1-delete.jpg" alt="" />
|
25 |
</div>
|
26 |
-
<div class="
|
27 |
<hr />
|
28 |
</div>
|
29 |
</li>
|
@@ -64,7 +64,7 @@ include_once '_top-area.php';
|
|
64 |
<li>You choose the one you want to work with.</li>
|
65 |
</ol>
|
66 |
|
67 |
-
<div class="
|
68 |
<hr /><br />
|
69 |
|
70 |
<div class="wpacu-btns">
|
23 |
<div class="wpacu-image-area wpacu-delete col-right">
|
24 |
<img src="<?php echo WPACU_PLUGIN_URL; ?>/assets/images/wpacu-upgrade-steps/wpacu-upgrade-step-1-delete.jpg" alt="" />
|
25 |
</div>
|
26 |
+
<div class="wpacu-clearfix"></div>
|
27 |
<hr />
|
28 |
</div>
|
29 |
</li>
|
64 |
<li>You choose the one you want to work with.</li>
|
65 |
</ol>
|
66 |
|
67 |
+
<div class="wpacu-clearfix"></div>
|
68 |
<hr /><br />
|
69 |
|
70 |
<div class="wpacu-btns">
|
templates/admin-page-license.php
CHANGED
@@ -15,6 +15,6 @@ include_once '_top-area.php';
|
|
15 |
|
16 |
<div class="wrap-upgrade-info">
|
17 |
<p><span class="dashicons dashicons-info"></span> If you already purchased the Pro version and you don't know how to activate it, <a href="admin.php?page=wpassetcleanup_get_help">follow the steps from the "Help" section</a>.</p>
|
18 |
-
<div class="
|
19 |
</div>
|
20 |
</div>
|
15 |
|
16 |
<div class="wrap-upgrade-info">
|
17 |
<p><span class="dashicons dashicons-info"></span> If you already purchased the Pro version and you don't know how to activate it, <a href="admin.php?page=wpassetcleanup_get_help">follow the steps from the "Help" section</a>.</p>
|
18 |
+
<div class="wpacu-clearfix"></div>
|
19 |
</div>
|
20 |
</div>
|
templates/admin-page-settings-bulk-unloads.php
CHANGED
@@ -23,14 +23,14 @@ $availableForPro = '<span class="tooltip">Available for Pro users<br />Click to
|
|
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>
|
25 |
<a href="<?php echo admin_url('admin.php?page=wpassetcleanup_bulk_unloads&wpacu_for=post_types'); ?>" class="nav-tab <?php if ($data['for'] === 'post_types') { ?>nav-tab-active<?php } ?>">Post Types</a>
|
26 |
-
<a href="<?php echo WPACU_PLUGIN_GO_PRO_URL; ?>?utm_source=plugin_bulk_unloaded&utm_medium=tab_link" target="_blank" class="nav-tab go-pro-link-no-style"><?php echo $availableForPro; ?> Taxonomies</a>
|
27 |
-
<a href="<?php echo WPACU_PLUGIN_GO_PRO_URL; ?>?utm_source=plugin_bulk_unloaded&utm_medium=tab_link" target="_blank" class="nav-tab go-pro-link-no-style"><?php echo $availableForPro; ?> Authors</a>
|
28 |
-
<a href="<?php echo WPACU_PLUGIN_GO_PRO_URL; ?>?utm_source=plugin_bulk_unloaded&utm_medium=tab_link" target="_blank" class="nav-tab go-pro-link-no-style"><?php echo $availableForPro; ?> Search Results</a>
|
29 |
-
<a href="<?php echo WPACU_PLUGIN_GO_PRO_URL; ?>?utm_source=plugin_bulk_unloaded&utm_medium=tab_link" target="_blank" class="nav-tab go-pro-link-no-style"><?php echo $availableForPro; ?> Dates</a>
|
30 |
-
<a href="<?php echo WPACU_PLUGIN_GO_PRO_URL; ?>?utm_source=plugin_bulk_unloaded&utm_medium=tab_link" target="_blank" class="nav-tab go-pro-link-no-style"><?php echo $availableForPro; ?> 404 Not Found</a>
|
31 |
</nav>
|
32 |
|
33 |
-
<div class="
|
34 |
|
35 |
<?php
|
36 |
do_action('wpacu_admin_notices');
|
@@ -58,7 +58,7 @@ if ($data['for'] === 'post_types') {
|
|
58 |
<?php
|
59 |
if ($data['for'] === 'everywhere') {
|
60 |
?>
|
61 |
-
<div class="
|
62 |
|
63 |
<div class="alert">
|
64 |
<p>This is the list of the assets that are <strong>globally unloaded</strong> on all pages (including home page).</p>
|
@@ -71,7 +71,7 @@ if ($data['for'] === 'everywhere') {
|
|
71 |
</div>
|
72 |
</div>
|
73 |
|
74 |
-
<div class="
|
75 |
|
76 |
<div style="padding: 0 10px 0 0;">
|
77 |
<h3>Styles</h3>
|
@@ -143,7 +143,7 @@ if ($data['for'] === 'everywhere') {
|
|
143 |
<?php
|
144 |
} elseif ($data['for'] === 'post_types') {
|
145 |
?>
|
146 |
-
<div class="
|
147 |
|
148 |
<div class="alert">
|
149 |
<p>This is the list of the assets that are <strong>unloaded</strong> on all pages belonging to the <strong><u><?php echo $data['post_type']; ?></u></strong> post type.</p>
|
@@ -156,7 +156,7 @@ if ($data['for'] === 'everywhere') {
|
|
156 |
</div>
|
157 |
</div>
|
158 |
|
159 |
-
<div class="
|
160 |
|
161 |
<div style="padding: 0 10px 0 0;">
|
162 |
<h3>Styles</h3>
|
@@ -243,9 +243,12 @@ $noAssetsToRemove = (empty($data['values']['styles']) && empty($data['values']['
|
|
243 |
}
|
244 |
?>
|
245 |
|
246 |
-
<div class="
|
247 |
|
248 |
<p class="submit">
|
|
|
|
|
|
|
249 |
<input type="submit"
|
250 |
name="submit"
|
251 |
id="submit"
|
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>
|
25 |
<a href="<?php echo admin_url('admin.php?page=wpassetcleanup_bulk_unloads&wpacu_for=post_types'); ?>" class="nav-tab <?php if ($data['for'] === 'post_types') { ?>nav-tab-active<?php } ?>">Post Types</a>
|
26 |
+
<a href="<?php echo WPACU_PLUGIN_GO_PRO_URL; ?>?utm_source=plugin_bulk_unloaded&utm_medium=tab_link" target="_blank" class="nav-tab go-pro-link-no-style no-transition"><?php echo $availableForPro; ?> Taxonomies</a>
|
27 |
+
<a href="<?php echo WPACU_PLUGIN_GO_PRO_URL; ?>?utm_source=plugin_bulk_unloaded&utm_medium=tab_link" target="_blank" class="nav-tab go-pro-link-no-style no-transition"><?php echo $availableForPro; ?> Authors</a>
|
28 |
+
<a href="<?php echo WPACU_PLUGIN_GO_PRO_URL; ?>?utm_source=plugin_bulk_unloaded&utm_medium=tab_link" target="_blank" class="nav-tab go-pro-link-no-style no-transition"><?php echo $availableForPro; ?> Search Results</a>
|
29 |
+
<a href="<?php echo WPACU_PLUGIN_GO_PRO_URL; ?>?utm_source=plugin_bulk_unloaded&utm_medium=tab_link" target="_blank" class="nav-tab go-pro-link-no-style no-transition"><?php echo $availableForPro; ?> Dates</a>
|
30 |
+
<a href="<?php echo WPACU_PLUGIN_GO_PRO_URL; ?>?utm_source=plugin_bulk_unloaded&utm_medium=tab_link" target="_blank" class="nav-tab go-pro-link-no-style no-transition"><?php echo $availableForPro; ?> 404 Not Found</a>
|
31 |
</nav>
|
32 |
|
33 |
+
<div class="wpacu-clearfix"></div>
|
34 |
|
35 |
<?php
|
36 |
do_action('wpacu_admin_notices');
|
58 |
<?php
|
59 |
if ($data['for'] === 'everywhere') {
|
60 |
?>
|
61 |
+
<div class="wpacu-clearfix"></div>
|
62 |
|
63 |
<div class="alert">
|
64 |
<p>This is the list of the assets that are <strong>globally unloaded</strong> on all pages (including home page).</p>
|
71 |
</div>
|
72 |
</div>
|
73 |
|
74 |
+
<div class="wpacu-clearfix"></div>
|
75 |
|
76 |
<div style="padding: 0 10px 0 0;">
|
77 |
<h3>Styles</h3>
|
143 |
<?php
|
144 |
} elseif ($data['for'] === 'post_types') {
|
145 |
?>
|
146 |
+
<div class="wpacu-clearfix"></div>
|
147 |
|
148 |
<div class="alert">
|
149 |
<p>This is the list of the assets that are <strong>unloaded</strong> on all pages belonging to the <strong><u><?php echo $data['post_type']; ?></u></strong> post type.</p>
|
156 |
</div>
|
157 |
</div>
|
158 |
|
159 |
+
<div class="wpacu-clearfix"></div>
|
160 |
|
161 |
<div style="padding: 0 10px 0 0;">
|
162 |
<h3>Styles</h3>
|
243 |
}
|
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"
|
templates/admin-page-settings-homepage.php
CHANGED
@@ -9,10 +9,11 @@ if (! isset($data)) {
|
|
9 |
include_once '_top-area.php';
|
10 |
?>
|
11 |
<div class="wpacu-wrap">
|
12 |
-
|
13 |
<h2><?php _e('Home Page Scripts & Styles Management', WPACU_PLUGIN_NAME); ?></h2>
|
14 |
|
15 |
<?php
|
|
|
|
|
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_NAME), '<a href="admin.php?page=wpassetcleanup_settings">', '</a>'); ?></div>
|
@@ -69,7 +70,9 @@ if ($data['show_on_front'] === 'page') {
|
|
69 |
); ?></p>
|
70 |
</div>
|
71 |
|
72 |
-
|
|
|
|
|
73 |
<p class="submit"><input type="submit" name="submit" id="submit" class="hidden button button-primary" value="<?php esc_attr_e('Update', WPACU_PLUGIN_NAME); ?>"></p>
|
74 |
</form>
|
75 |
<?php
|
9 |
include_once '_top-area.php';
|
10 |
?>
|
11 |
<div class="wpacu-wrap">
|
|
|
12 |
<h2><?php _e('Home Page Scripts & Styles Management', WPACU_PLUGIN_NAME); ?></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_NAME), '<a href="admin.php?page=wpassetcleanup_settings">', '</a>'); ?></div>
|
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_NAME); ?>"></p>
|
77 |
</form>
|
78 |
<?php
|
templates/admin-page-settings-plugin.php
CHANGED
@@ -9,7 +9,7 @@ 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="tooltip">Available for Pro users<br />
|
13 |
// [/wpacu_lite]
|
14 |
?>
|
15 |
<div class="wpacu-wrap <?php if ($data['input_style'] !== 'standard') { ?>wpacu-switch-enhanced<?php } else { ?>wpacu-switch-standard<?php } ?>">
|
@@ -184,6 +184,22 @@ $availableForPro = '<a href="'.WPACU_PLUGIN_GO_PRO_URL.'?utm_source=plugin_setti
|
|
184 |
</td>
|
185 |
</tr>
|
186 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
187 |
<tr valign="top">
|
188 |
<th scope="row" class="setting_title">
|
189 |
<label for="wpacu_enable_test_mode">Enable Test Mode?</label>
|
@@ -423,6 +439,44 @@ $availableForPro = '<a href="'.WPACU_PLUGIN_GO_PRO_URL.'?utm_source=plugin_setti
|
|
423 |
</td>
|
424 |
</tr>
|
425 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
426 |
<!-- Disable "XML-RPC" protocol support? -->
|
427 |
<tr valign="top">
|
428 |
<th scope="row">
|
@@ -436,11 +490,14 @@ $availableForPro = '<a href="'.WPACU_PLUGIN_GO_PRO_URL.'?utm_source=plugin_setti
|
|
436 |
|
437 |
<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>
|
438 |
|
439 |
-
<p style="margin-bottom: 10px;"><strong>Disable XML-RPC Completely</strong>:
|
440 |
</td>
|
441 |
</tr>
|
442 |
</table>
|
443 |
|
444 |
-
|
|
|
|
|
|
|
445 |
</form>
|
446 |
</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="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> ';
|
13 |
// [/wpacu_lite]
|
14 |
?>
|
15 |
<div class="wpacu-wrap <?php if ($data['input_style'] !== 'standard') { ?>wpacu-switch-enhanced<?php } else { ?>wpacu-switch-standard<?php } ?>">
|
184 |
</td>
|
185 |
</tr>
|
186 |
|
187 |
+
<tr valign="top">
|
188 |
+
<th scope="row">
|
189 |
+
<label for="wpacu_hide_core_files">Hide WordPress Core Files From The Assets List?</label>
|
190 |
+
</th>
|
191 |
+
<td>
|
192 |
+
<label class="wpacu_switch">
|
193 |
+
<input id="wpacu_hide_core_files"
|
194 |
+
type="checkbox"
|
195 |
+
<?php echo (($data['hide_core_files'] == 1) ? 'checked="checked"' : ''); ?>
|
196 |
+
name="<?php echo WPACU_PLUGIN_NAME.'_settings'; ?>[hide_core_files]"
|
197 |
+
value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
|
198 |
+
|
199 |
+
<small>WordPress Core Files having handles such as 'jquery', 'wp-embed', 'comment-reply', 'dashicons' etc. 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.</small>
|
200 |
+
</td>
|
201 |
+
</tr>
|
202 |
+
|
203 |
<tr valign="top">
|
204 |
<th scope="row" class="setting_title">
|
205 |
<label for="wpacu_enable_test_mode">Enable Test Mode?</label>
|
439 |
</td>
|
440 |
</tr>
|
441 |
|
442 |
+
<!-- Remove Main RSS Feed Link -->
|
443 |
+
<tr valign="top">
|
444 |
+
<th scope="row">
|
445 |
+
<label for="wpacu_remove_main_feed_link">Remove Main RSS Feed Link?</label>
|
446 |
+
</th>
|
447 |
+
<td>
|
448 |
+
<?php echo $availableForPro; ?>
|
449 |
+
<label class="wpacu_switch wpacu_locked_for_pro">
|
450 |
+
<input id="wpacu_remove_main_feed_link"
|
451 |
+
type="checkbox"
|
452 |
+
disabled="disabled"
|
453 |
+
name="<?php echo WPACU_PLUGIN_NAME.'_settings'; ?>[remove_main_feed_link]"
|
454 |
+
value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
|
455 |
+
|
456 |
+
<code><link rel="alternate" type="application/rss xml" title="Your Site Title &raquo; Feed" href="https://www.yourwebsite.com/feed/" /></code>
|
457 |
+
<p>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 & 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>
|
458 |
+
</td>
|
459 |
+
</tr>
|
460 |
+
|
461 |
+
<!-- Remove Comment Feeds Link -->
|
462 |
+
<tr valign="top">
|
463 |
+
<th scope="row">
|
464 |
+
<label for="wpacu_remove_comment_feed_link">Remove Comment RSS Feed Link?</label>
|
465 |
+
</th>
|
466 |
+
<td>
|
467 |
+
<?php echo $availableForPro; ?>
|
468 |
+
<label class="wpacu_switch wpacu_locked_for_pro">
|
469 |
+
<input id="wpacu_remove_comment_feed_link"
|
470 |
+
type="checkbox"
|
471 |
+
disabled="disabled"
|
472 |
+
name="<?php echo WPACU_PLUGIN_NAME.'_settings'; ?>[remove_comment_feed_link]"
|
473 |
+
value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
|
474 |
+
|
475 |
+
<code>e.g. <link rel="alternate" type="application/rss xml" title="Your Website Title &raquo; Comments Feed" href="https://www.yourdomain.com/comments/feed/" /></code>
|
476 |
+
<p>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>
|
477 |
+
</td>
|
478 |
+
</tr>
|
479 |
+
|
480 |
<!-- Disable "XML-RPC" protocol support? -->
|
481 |
<tr valign="top">
|
482 |
<th scope="row">
|
490 |
|
491 |
<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>
|
492 |
|
493 |
+
<p style="margin-bottom: 10px;"><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>
|
494 |
</td>
|
495 |
</tr>
|
496 |
</table>
|
497 |
|
498 |
+
<?php
|
499 |
+
wp_nonce_field('wpacu_settings_update');
|
500 |
+
submit_button();
|
501 |
+
?>
|
502 |
</form>
|
503 |
</div>
|
templates/meta-box-loaded-assets/_asset-script-single-row.php
CHANGED
@@ -7,149 +7,159 @@ if (! isset($data)) {
|
|
7 |
}
|
8 |
|
9 |
$inlineCodeStatus = $data['plugin_settings']['assets_list_inline_code_status'];
|
|
|
|
|
|
|
10 |
?>
|
11 |
-
<tr class="wpacu_asset_row <?php echo $data['row']['class']; ?>">
|
12 |
<td valign="top">
|
13 |
<p class="wpacu_handle">
|
14 |
<label for="script_<?php echo $data['row']['obj']->handle; ?>"> <?php _e('Handle:', WPACU_PLUGIN_NAME); ?> <strong><span style="color: green;"><?php echo $data['row']['obj']->handle; ?></span></strong></label>
|
15 |
<?php
|
16 |
-
if
|
17 |
-
|
18 |
<span class="dashicons dashicons-warning wordpress-core-file"><span class="tooltip">WordPress Core File<br />Not sure if needed or not? In this case, it's better to leave it loaded to avoid breaking the website.</span></span>
|
19 |
-
|
20 |
}
|
21 |
?>
|
22 |
</p>
|
23 |
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
<p><strong style="color: #d54e21;">This JavaScript file is unloaded everywhere</strong></p>
|
46 |
-
<?php
|
47 |
-
}
|
48 |
-
?>
|
49 |
-
|
50 |
-
<ul class="wpacu_asset_options">
|
51 |
-
<?php
|
52 |
-
// [START] UNLOAD EVERYWHERE
|
53 |
-
if ($data['row']['global_unloaded']) {
|
54 |
-
?>
|
55 |
-
<li>
|
56 |
-
<label><input data-handle="<?php echo $data['row']['obj']->handle; ?>"
|
57 |
-
class="wpacu_bulk_option wpacu_script"
|
58 |
-
type="radio"
|
59 |
-
name="wpacu_options_scripts[<?php echo $data['row']['obj']->handle; ?>]"
|
60 |
-
checked="checked"
|
61 |
-
value="default" />
|
62 |
-
Keep the unload global rule</label>
|
63 |
-
</li>
|
64 |
-
|
65 |
-
<li>
|
66 |
-
<label><input data-handle="<?php echo $data['row']['obj']->handle; ?>"
|
67 |
-
class="wpacu_bulk_option wpacu_script"
|
68 |
-
type="radio"
|
69 |
-
name="wpacu_options_scripts[<?php echo $data['row']['obj']->handle; ?>]"
|
70 |
-
value="remove" />
|
71 |
-
Remove global unload rule</label>
|
72 |
-
</li>
|
73 |
-
<?php
|
74 |
-
} else {
|
75 |
-
?>
|
76 |
-
<li>
|
77 |
-
<label><input data-handle="<?php echo $data['row']['obj']->handle; ?>"
|
78 |
-
class="wpacu_global_unload wpacu_global_script"
|
79 |
-
id="wpacu_global_unload_script_<?php echo $data['row']['obj']->handle; ?>"
|
80 |
-
type="checkbox"
|
81 |
-
name="wpacu_global_unload_scripts[]"
|
82 |
-
value="<?php echo $data['row']['obj']->handle; ?>"/>
|
83 |
-
Unload Everywhere <small>* bulk unload</small></label>
|
84 |
-
</li>
|
85 |
-
<?php
|
86 |
-
}
|
87 |
-
// [END] UNLOAD EVERYWHERE
|
88 |
-
?>
|
89 |
-
|
90 |
-
</ul>
|
91 |
-
</div>
|
92 |
-
|
93 |
-
<?php if ($data['bulk_unloaded_type'] === 'post_type') { ?>
|
94 |
-
<div class="wpacu_asset_options_wrap">
|
95 |
-
<?php } ?>
|
96 |
-
|
97 |
-
<?php
|
98 |
-
// Unloaded On All Pages Belonging to the page's Post Type
|
99 |
-
if ($data['row']['is_post_type_unloaded']) {
|
100 |
-
?>
|
101 |
-
<p><strong style="color: #d54e21;">This JavaScript file is unloaded on all <u><?php echo $data['post_type']; ?></u> post types.</strong></p>
|
102 |
-
<div class="clear"></div>
|
103 |
-
<?php
|
104 |
-
}
|
105 |
-
?>
|
106 |
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
153 |
<?php
|
154 |
do_action('wpacu_pro_bulk_unload_output', $data, $data['row']['obj'], 'js');
|
155 |
?>
|
@@ -163,7 +173,7 @@ $inlineCodeStatus = $data['plugin_settings']['assets_list_inline_code_status'];
|
|
163 |
name="wpacu_scripts_load_it[]"
|
164 |
<?php if ($data['row']['is_load_exception']) { ?> checked="checked" <?php } ?>
|
165 |
value="<?php echo $data['row']['obj']->handle; ?>" />
|
166 |
-
Load it on this page (make exception<?php if (! $
|
167 |
</li>
|
168 |
</ul>
|
169 |
<?php
|
@@ -202,7 +212,7 @@ $inlineCodeStatus = $data['plugin_settings']['assets_list_inline_code_status'];
|
|
202 |
}
|
203 |
|
204 |
// [wpacu_lite]
|
205 |
-
$extraInfo[] = '<strong>'.__('File Size:', WPACU_PLUGIN_NAME).'</strong> <a class="go-pro-link-no-style" href="'.WPACU_PLUGIN_GO_PRO_URL.'?utm_source=manage_asset&utm_medium=file_size"><span class="tooltip">Upgrade to Pro
|
206 |
// [/wpacu_lite]
|
207 |
|
208 |
if (! empty($extraInfo)) {
|
7 |
}
|
8 |
|
9 |
$inlineCodeStatus = $data['plugin_settings']['assets_list_inline_code_status'];
|
10 |
+
$isCoreFile = (isset($data['row']['obj']->wp) && $data['row']['obj']->wp);
|
11 |
+
$hideCoreFiles = $data['plugin_settings']['hide_core_files'];
|
12 |
+
$isBulkUnloaded = ($data['row']['global_unloaded'] || $data['row']['is_post_type_unloaded']);
|
13 |
?>
|
14 |
+
<tr class="wpacu_asset_row <?php echo $data['row']['class']; ?>" style="<?php if ($isCoreFile && $hideCoreFiles) { echo 'display: none;'; } ?>">
|
15 |
<td valign="top">
|
16 |
<p class="wpacu_handle">
|
17 |
<label for="script_<?php echo $data['row']['obj']->handle; ?>"> <?php _e('Handle:', WPACU_PLUGIN_NAME); ?> <strong><span style="color: green;"><?php echo $data['row']['obj']->handle; ?></span></strong></label>
|
18 |
<?php
|
19 |
+
if ($isCoreFile && ! $hideCoreFiles) {
|
20 |
+
?>
|
21 |
<span class="dashicons dashicons-warning wordpress-core-file"><span class="tooltip">WordPress Core File<br />Not sure if needed or not? In this case, it's better to leave it loaded to avoid breaking the website.</span></span>
|
22 |
+
<?php
|
23 |
}
|
24 |
?>
|
25 |
</p>
|
26 |
|
27 |
+
<div <?php if (! $isBulkUnloaded) { ?>class="wrap_bulk_unload_options"<?php } ?>>
|
28 |
+
<div class="wpacu_asset_options_wrap">
|
29 |
+
<ul class="wpacu_asset_options wpacu_exception_options_area" <?php /* [wpacu_lite] */ if ($data['row']['global_unloaded'] || $data['row']['is_post_type_unloaded']) { /* [/wpacu_lite] */ echo 'style="display: none;"'; } ?>>
|
30 |
+
<li class="wpacu_unload_this_page">
|
31 |
+
<label class="wpacu_switch">
|
32 |
+
<input class="input-unload-on-this-page" id="script_<?php echo $data['row']['obj']->handle; ?>" <?php /* [wpacu_lite] */ if ($data['row']['global_unloaded'] || $data['row']['is_post_type_unloaded']) { /* [/wpacu_lite] */ echo 'disabled="disabled"'; } echo $data['row']['checked']; ?> name="<?php echo WPACU_PLUGIN_NAME; ?>[scripts][]" type="checkbox" value="<?php echo $data['row']['obj']->handle; ?>" /><span class="wpacu_slider wpacu_round"></span>
|
33 |
+
</label>
|
34 |
+
<label class="wpacu_slider_text" for="script_<?php echo $data['row']['obj']->handle; ?>">
|
35 |
+
Unload on this page
|
36 |
+
</label>
|
37 |
+
</li>
|
38 |
+
</ul>
|
39 |
+
|
40 |
+
<?php
|
41 |
+
if ($isBulkUnloaded) {
|
42 |
+
?>
|
43 |
+
<em>"Unload on this page" rule is locked and irrelevant as there are global rules set below that overwrite it. Once all the rules below are removed, this option will become available again.</em>
|
44 |
+
<?php
|
45 |
+
}
|
46 |
+
?>
|
47 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
|
49 |
+
<div class="wpacu_asset_options_wrap">
|
50 |
+
<?php
|
51 |
+
// Unloaded Everywhere
|
52 |
+
if ($data['row']['global_unloaded']) {
|
53 |
+
?>
|
54 |
+
<p><strong style="color: #d54e21;">This JavaScript file is unloaded everywhere</strong></p>
|
55 |
+
<?php
|
56 |
+
}
|
57 |
+
?>
|
58 |
+
|
59 |
+
<ul class="wpacu_asset_options">
|
60 |
+
<?php
|
61 |
+
// [START] UNLOAD EVERYWHERE
|
62 |
+
if ($data['row']['global_unloaded']) {
|
63 |
+
?>
|
64 |
+
<li>
|
65 |
+
<label><input data-handle="<?php echo $data['row']['obj']->handle; ?>"
|
66 |
+
class="wpacu_bulk_option wpacu_script"
|
67 |
+
type="radio"
|
68 |
+
name="wpacu_options_scripts[<?php echo $data['row']['obj']->handle; ?>]"
|
69 |
+
checked="checked"
|
70 |
+
value="default" />
|
71 |
+
Keep the unload global rule</label>
|
72 |
+
</li>
|
73 |
+
|
74 |
+
<li>
|
75 |
+
<label><input data-handle="<?php echo $data['row']['obj']->handle; ?>"
|
76 |
+
class="wpacu_bulk_option wpacu_script"
|
77 |
+
type="radio"
|
78 |
+
name="wpacu_options_scripts[<?php echo $data['row']['obj']->handle; ?>]"
|
79 |
+
value="remove" />
|
80 |
+
Remove global unload rule</label>
|
81 |
+
</li>
|
82 |
+
<?php
|
83 |
+
} else {
|
84 |
+
?>
|
85 |
+
<li>
|
86 |
+
<label><input data-handle="<?php echo $data['row']['obj']->handle; ?>"
|
87 |
+
class="wpacu_global_unload wpacu_global_script"
|
88 |
+
id="wpacu_global_unload_script_<?php echo $data['row']['obj']->handle; ?>"
|
89 |
+
type="checkbox"
|
90 |
+
name="wpacu_global_unload_scripts[]"
|
91 |
+
value="<?php echo $data['row']['obj']->handle; ?>"/>
|
92 |
+
Unload Everywhere <small>* bulk unload</small></label>
|
93 |
+
</li>
|
94 |
+
<?php
|
95 |
+
}
|
96 |
+
// [END] UNLOAD EVERYWHERE
|
97 |
+
?>
|
98 |
+
|
99 |
+
</ul>
|
100 |
+
</div>
|
101 |
|
102 |
+
<?php if ($data['bulk_unloaded_type'] === 'post_type') { ?>
|
103 |
+
<div class="wpacu_asset_options_wrap">
|
104 |
+
<?php } ?>
|
105 |
+
|
106 |
+
<?php
|
107 |
+
// Unloaded On All Pages Belonging to the page's Post Type
|
108 |
+
if ($data['row']['is_post_type_unloaded']) {
|
109 |
+
?>
|
110 |
+
<p><strong style="color: #d54e21;">This JavaScript file is unloaded on all <u><?php echo $data['post_type']; ?></u> post types.</strong></p>
|
111 |
+
<div class="wpacu-clearfix"></div>
|
112 |
+
<?php
|
113 |
+
}
|
114 |
+
?>
|
115 |
+
|
116 |
+
<ul class="wpacu_asset_options">
|
117 |
+
<?php
|
118 |
+
if ($data['bulk_unloaded_type'] === 'post_type') {
|
119 |
+
// [START] ALL PAGES HAVING THE SAME POST TYPE
|
120 |
+
if ($data['row']['is_post_type_unloaded']) {
|
121 |
+
?>
|
122 |
+
<li>
|
123 |
+
<label><input data-handle="<?php echo $data['row']['obj']->handle; ?>"
|
124 |
+
class="wpacu_post_type_option wpacu_post_type_script wpacu_keep_bulk_rule"
|
125 |
+
type="radio"
|
126 |
+
name="wpacu_options_post_type_scripts[<?php echo $data['row']['obj']->handle; ?>]"
|
127 |
+
checked="checked"
|
128 |
+
value="default"/>
|
129 |
+
Keep rule</label>
|
130 |
+
</li>
|
131 |
+
|
132 |
+
<li>
|
133 |
+
<label><input data-handle="<?php echo $data['row']['obj']->handle; ?>"
|
134 |
+
class="wpacu_post_type_option wpacu_remove_bulk_rule wpacu_post_type_script"
|
135 |
+
type="radio"
|
136 |
+
name="wpacu_options_post_type_scripts[<?php echo $data['row']['obj']->handle; ?>]"
|
137 |
+
value="remove"/>
|
138 |
+
Remove rule</label>
|
139 |
+
</li>
|
140 |
+
<?php
|
141 |
+
} else {
|
142 |
+
?>
|
143 |
+
<li>
|
144 |
+
<label><input data-handle="<?php echo $data['row']['obj']->handle; ?>"
|
145 |
+
class="wpacu_bulk_unload wpacu_post_type_unload wpacu_post_type_script"
|
146 |
+
id="wpacu_global_unload_post_type_script_<?php echo $data['row']['obj']->handle; ?>"
|
147 |
+
type="checkbox"
|
148 |
+
name="wpacu_bulk_unload_scripts[post_type][<?php echo $data['post_type']; ?>][]"
|
149 |
+
value="<?php echo $data['row']['obj']->handle; ?>"/>
|
150 |
+
Unload on All Pages of <strong><?php echo $data['post_type']; ?></strong> post type <small>* bulk unload</small></label>
|
151 |
+
</li>
|
152 |
+
<?php
|
153 |
+
}
|
154 |
+
}
|
155 |
+
// [END] ALL PAGES HAVING THE SAME POST TYPE
|
156 |
+
?>
|
157 |
+
</ul>
|
158 |
+
<?php if ($data['bulk_unloaded_type'] === 'post_type') { ?>
|
159 |
+
</div>
|
160 |
+
<?php } ?>
|
161 |
+
<div class="wpacu-clearfix"></div>
|
162 |
+
</div>
|
163 |
<?php
|
164 |
do_action('wpacu_pro_bulk_unload_output', $data, $data['row']['obj'], 'js');
|
165 |
?>
|
173 |
name="wpacu_scripts_load_it[]"
|
174 |
<?php if ($data['row']['is_load_exception']) { ?> checked="checked" <?php } ?>
|
175 |
value="<?php echo $data['row']['obj']->handle; ?>" />
|
176 |
+
Load it on this page (make exception<?php if (! $isBulkUnloaded) { echo ' * works only IF any of bulk rule above is selected'; } ?>)</label>
|
177 |
</li>
|
178 |
</ul>
|
179 |
<?php
|
212 |
}
|
213 |
|
214 |
// [wpacu_lite]
|
215 |
+
$extraInfo[] = '<strong>'.__('File Size:', WPACU_PLUGIN_NAME).'</strong> <a class="go-pro-link-no-style" href="'.WPACU_PLUGIN_GO_PRO_URL.'?utm_source=manage_asset&utm_medium=file_size"><span class="tooltip">Upgrade to Pro and unlock all features</span><img width="20" height="20" src="'.WPACU_PLUGIN_URL.'/assets/icons/icon-lock.svg" valign="top" alt="" /> Pro Version</a>';
|
216 |
// [/wpacu_lite]
|
217 |
|
218 |
if (! empty($extraInfo)) {
|
templates/meta-box-loaded-assets/_asset-style-single-row.php
CHANGED
@@ -7,13 +7,16 @@ if (! isset($data)) {
|
|
7 |
}
|
8 |
|
9 |
$inlineCodeStatus = $data['plugin_settings']['assets_list_inline_code_status'];
|
|
|
|
|
|
|
10 |
?>
|
11 |
-
<tr class="wpacu_asset_row <?php echo $data['row']['class']; ?>">
|
12 |
<td valign="top">
|
13 |
<p class="wpacu_handle">
|
14 |
<label for="style_<?php echo $data['row']['obj']->handle; ?>"><?php _e('Handle:', WPACU_PLUGIN_NAME); ?> <strong><span style="color: green;"><?php echo $data['row']['obj']->handle; ?></span></strong></label>
|
15 |
<?php
|
16 |
-
if
|
17 |
?>
|
18 |
<span class="dashicons dashicons-warning wordpress-core-file"><span class="tooltip">WordPress Core File<br />Not sure if needed or not? In this case, it's better to leave it loaded to avoid breaking the website.</span></span>
|
19 |
<?php
|
@@ -21,29 +24,30 @@ $inlineCodeStatus = $data['plugin_settings']['assets_list_inline_code_status'];
|
|
21 |
?>
|
22 |
</p>
|
23 |
|
24 |
-
|
25 |
-
|
|
|
26 |
<li class="wpacu_unload_this_page">
|
27 |
-
<label class="wpacu_switch"><input class="input-unload-on-this-page" id="style_<?php echo $data['row']['obj']->handle; ?>" <?php /* [wpacu_lite] */ if ($
|
28 |
</li>
|
29 |
</ul>
|
30 |
|
31 |
<?php
|
32 |
-
|
33 |
?>
|
34 |
<em>"Unload on this page" rule is locked and irrelevant as there are global rules set below that overwrite it. Once all the rules below are removed, this option will become available again.</em>
|
35 |
<?php
|
36 |
}
|
37 |
?>
|
38 |
-
|
39 |
|
40 |
-
|
41 |
<?php
|
42 |
// Unloaded Everywhere
|
43 |
if ($data['row']['global_unloaded']) {
|
44 |
?>
|
45 |
<p><strong style="color: #d54e21;">This stylesheet file is unloaded everywhere</strong></p>
|
46 |
-
<div class="
|
47 |
<?php
|
48 |
}
|
49 |
?>
|
@@ -97,7 +101,7 @@ $inlineCodeStatus = $data['plugin_settings']['assets_list_inline_code_status'];
|
|
97 |
if ($data['row']['is_post_type_unloaded']) {
|
98 |
?>
|
99 |
<p><strong style="color: #d54e21;">This stylesheet file is unloaded on all <u><?php echo $data['post_type']; ?></u> post types.</strong></p>
|
100 |
-
<div class="
|
101 |
<?php
|
102 |
}
|
103 |
?>
|
@@ -153,6 +157,9 @@ $inlineCodeStatus = $data['plugin_settings']['assets_list_inline_code_status'];
|
|
153 |
</div>
|
154 |
<?php } ?>
|
155 |
|
|
|
|
|
|
|
156 |
<?php
|
157 |
// [wpacu_pro]
|
158 |
do_action('wpacu_pro_bulk_unload_output', $data, $data['row']['obj'], 'css');
|
@@ -168,7 +175,7 @@ $inlineCodeStatus = $data['plugin_settings']['assets_list_inline_code_status'];
|
|
168 |
<?php if ($data['row']['is_load_exception']) { ?> checked="checked" <?php } ?>
|
169 |
name="wpacu_styles_load_it[]"
|
170 |
value="<?php echo $data['row']['obj']->handle; ?>"/>
|
171 |
-
Load it on this page (make exception<?php if (! $
|
172 |
</li>
|
173 |
</ul>
|
174 |
<?php
|
@@ -207,7 +214,7 @@ $inlineCodeStatus = $data['plugin_settings']['assets_list_inline_code_status'];
|
|
207 |
}
|
208 |
|
209 |
// [wpacu_lite]
|
210 |
-
$extraInfo[] = '<strong>'.__('File Size:', WPACU_PLUGIN_NAME).'</strong> <a href="'.WPACU_PLUGIN_GO_PRO_URL.'?utm_source=manage_asset&utm_medium=file_size" class="go-pro-link-no-style"><span class="tooltip">Upgrade to Pro
|
211 |
// [/wpacu_lite]
|
212 |
|
213 |
if (! empty($extraInfo)) {
|
7 |
}
|
8 |
|
9 |
$inlineCodeStatus = $data['plugin_settings']['assets_list_inline_code_status'];
|
10 |
+
$isCoreFile = (isset($data['row']['obj']->wp) && $data['row']['obj']->wp);
|
11 |
+
$hideCoreFiles = $data['plugin_settings']['hide_core_files'];
|
12 |
+
$isBulkUnloaded = ($data['row']['global_unloaded'] || $data['row']['is_post_type_unloaded']);
|
13 |
?>
|
14 |
+
<tr class="wpacu_asset_row <?php echo $data['row']['class']; ?>" style="<?php if ($isCoreFile && $hideCoreFiles) { echo 'display: none;'; } ?>">
|
15 |
<td valign="top">
|
16 |
<p class="wpacu_handle">
|
17 |
<label for="style_<?php echo $data['row']['obj']->handle; ?>"><?php _e('Handle:', WPACU_PLUGIN_NAME); ?> <strong><span style="color: green;"><?php echo $data['row']['obj']->handle; ?></span></strong></label>
|
18 |
<?php
|
19 |
+
if ($isCoreFile && ! $hideCoreFiles) {
|
20 |
?>
|
21 |
<span class="dashicons dashicons-warning wordpress-core-file"><span class="tooltip">WordPress Core File<br />Not sure if needed or not? In this case, it's better to leave it loaded to avoid breaking the website.</span></span>
|
22 |
<?php
|
24 |
?>
|
25 |
</p>
|
26 |
|
27 |
+
<div <?php if (! $isBulkUnloaded) { ?>class="wrap_bulk_unload_options"<?php } ?>>
|
28 |
+
<div class="wpacu_asset_options_wrap">
|
29 |
+
<ul class="wpacu_asset_options wpacu_exception_options_area" <?php if ($isBulkUnloaded) { echo 'style="display: none;"'; } ?>>
|
30 |
<li class="wpacu_unload_this_page">
|
31 |
+
<label class="wpacu_switch"><input class="input-unload-on-this-page" id="style_<?php echo $data['row']['obj']->handle; ?>" <?php /* [wpacu_lite] */ if ($isBulkUnloaded) { /* [/wpacu_lite] */ echo 'disabled="disabled"'; } echo $data['row']['checked']; ?> name="<?php echo WPACU_PLUGIN_NAME; ?>[styles][]" type="checkbox" value="<?php echo $data['row']['obj']->handle; ?>" /><span class="wpacu_slider wpacu_round"></span></label> <label class="wpacu_slider_text" for="style_<?php echo $data['row']['obj']->handle; ?>">Unload on this page</label>
|
32 |
</li>
|
33 |
</ul>
|
34 |
|
35 |
<?php
|
36 |
+
if ($isBulkUnloaded) {
|
37 |
?>
|
38 |
<em>"Unload on this page" rule is locked and irrelevant as there are global rules set below that overwrite it. Once all the rules below are removed, this option will become available again.</em>
|
39 |
<?php
|
40 |
}
|
41 |
?>
|
42 |
+
</div>
|
43 |
|
44 |
+
<div class="wpacu_asset_options_wrap">
|
45 |
<?php
|
46 |
// Unloaded Everywhere
|
47 |
if ($data['row']['global_unloaded']) {
|
48 |
?>
|
49 |
<p><strong style="color: #d54e21;">This stylesheet file is unloaded everywhere</strong></p>
|
50 |
+
<div class="wpacu-clearfix"></div>
|
51 |
<?php
|
52 |
}
|
53 |
?>
|
101 |
if ($data['row']['is_post_type_unloaded']) {
|
102 |
?>
|
103 |
<p><strong style="color: #d54e21;">This stylesheet file is unloaded on all <u><?php echo $data['post_type']; ?></u> post types.</strong></p>
|
104 |
+
<div class="wpacu-clearfix"></div>
|
105 |
<?php
|
106 |
}
|
107 |
?>
|
157 |
</div>
|
158 |
<?php } ?>
|
159 |
|
160 |
+
<div class="wpacu-clearfix"></div>
|
161 |
+
</div>
|
162 |
+
|
163 |
<?php
|
164 |
// [wpacu_pro]
|
165 |
do_action('wpacu_pro_bulk_unload_output', $data, $data['row']['obj'], 'css');
|
175 |
<?php if ($data['row']['is_load_exception']) { ?> checked="checked" <?php } ?>
|
176 |
name="wpacu_styles_load_it[]"
|
177 |
value="<?php echo $data['row']['obj']->handle; ?>"/>
|
178 |
+
Load it on this page (make exception<?php if (! $isBulkUnloaded) { echo ' * works only IF any of bulk rule above is selected'; } ?>)</label>
|
179 |
</li>
|
180 |
</ul>
|
181 |
<?php
|
214 |
}
|
215 |
|
216 |
// [wpacu_lite]
|
217 |
+
$extraInfo[] = '<strong>'.__('File Size:', WPACU_PLUGIN_NAME).'</strong> <a href="'.WPACU_PLUGIN_GO_PRO_URL.'?utm_source=manage_asset&utm_medium=file_size" class="go-pro-link-no-style"><span class="tooltip">Upgrade to Pro and unlock all features</span><img width="20" height="20" src="'.WPACU_PLUGIN_URL.'/assets/icons/icon-lock.svg" valign="top" alt="" /> Pro Version</a>';
|
218 |
// [/wpacu_lite]
|
219 |
|
220 |
if (! empty($extraInfo)) {
|
templates/meta-box-loaded-assets/view-default.php
CHANGED
@@ -37,7 +37,14 @@ $listAreaStatus = $data['plugin_settings']['assets_list_layout_areas_status'];
|
|
37 |
<p><?php echo sprintf(__('The following styles are loading on this page. Please select the ones that are %sNOT NEEDED%s. If you are not sure which ones to unload, it is better to leave them enabled (unchecked) and consult with a developer about unloading the assets.', WPACU_PLUGIN_NAME), '<span style="color: #CC0000;"><strong>', '</strong></span>'); ?></p>
|
38 |
<p><?php echo __('"Load in on this page (make exception)" will take effect when a bulk unload rule is used. Otherwise, the asset will load anyway unless you select it for unload.', WPACU_PLUGIN_NAME); ?></p>
|
39 |
<?php
|
40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
?>
|
42 |
<div class="wpacu_note wpacu_warning"><em><?php
|
43 |
echo sprintf(
|
@@ -92,7 +99,14 @@ $listAreaStatus = $data['plugin_settings']['assets_list_layout_areas_status'];
|
|
92 |
<p><?php echo sprintf(__('The following scripts are loading on this page. Please select the ones that are %sNOT NEEDED%s. If you are not sure which ones to unload, it is better to leave them enabled and consult with a developer about unloading the assets.', WPACU_PLUGIN_NAME), '<span style="color: #CC0000;"><strong>', '</strong></span>'); ?></p>
|
93 |
<p><?php echo __('"Load in on this page (make exception)" will take effect when a bulk unload rule is used. Otherwise, the asset will load anyway unless you select it for unload.', WPACU_PLUGIN_NAME); ?></p>
|
94 |
<?php
|
95 |
-
if ($data['
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
?>
|
97 |
<div class="wpacu_note wpacu_warning"><em><?php
|
98 |
echo sprintf(
|
37 |
<p><?php echo sprintf(__('The following styles are loading on this page. Please select the ones that are %sNOT NEEDED%s. If you are not sure which ones to unload, it is better to leave them enabled (unchecked) and consult with a developer about unloading the assets.', WPACU_PLUGIN_NAME), '<span style="color: #CC0000;"><strong>', '</strong></span>'); ?></p>
|
38 |
<p><?php echo __('"Load in on this page (make exception)" will take effect when a bulk unload rule is used. Otherwise, the asset will load anyway unless you select it for unload.', WPACU_PLUGIN_NAME); ?></p>
|
39 |
<?php
|
40 |
+
if ($data['plugin_settings']['hide_core_files']) {
|
41 |
+
?>
|
42 |
+
<div class="wpacu_note"><span class="dashicons dashicons-info"></span> WordPress CSS core files are hidden as requested in the plugin's settings. They are meant to be managed by experienced developers in special situations.</div>
|
43 |
+
<div style="clear:both; margin-top: 10px;"></div>
|
44 |
+
<?php
|
45 |
+
}
|
46 |
+
|
47 |
+
if ($data['core_styles_loaded'] && ! $data['plugin_settings']['hide_core_files']) {
|
48 |
?>
|
49 |
<div class="wpacu_note wpacu_warning"><em><?php
|
50 |
echo sprintf(
|
99 |
<p><?php echo sprintf(__('The following scripts are loading on this page. Please select the ones that are %sNOT NEEDED%s. If you are not sure which ones to unload, it is better to leave them enabled and consult with a developer about unloading the assets.', WPACU_PLUGIN_NAME), '<span style="color: #CC0000;"><strong>', '</strong></span>'); ?></p>
|
100 |
<p><?php echo __('"Load in on this page (make exception)" will take effect when a bulk unload rule is used. Otherwise, the asset will load anyway unless you select it for unload.', WPACU_PLUGIN_NAME); ?></p>
|
101 |
<?php
|
102 |
+
if ($data['plugin_settings']['hide_core_files']) {
|
103 |
+
?>
|
104 |
+
<div class="wpacu_note"><span class="dashicons dashicons-info"></span> WordPress JavaScript core files are hidden as requested in the plugin's settings. They are meant to be managed by experienced developers in special situations.</div>
|
105 |
+
<div style="clear:both; margin-top: 10px;"></div>
|
106 |
+
<?php
|
107 |
+
}
|
108 |
+
|
109 |
+
if ($data['core_scripts_loaded'] && ! $data['plugin_settings']['hide_core_files']) {
|
110 |
?>
|
111 |
<div class="wpacu_note wpacu_warning"><em><?php
|
112 |
echo sprintf(
|
templates/settings-frontend.php
CHANGED
@@ -11,6 +11,19 @@ if (! isset($data)) {
|
|
11 |
<div id="wpacu_wrap_assets">
|
12 |
<?php
|
13 |
if ($data['is_updateable']) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
$wpacuMisc = new \WpAssetCleanUp\Misc();
|
15 |
$activeCachePlugins = $wpacuMisc->getActiveCachePlugins();
|
16 |
|
11 |
<div id="wpacu_wrap_assets">
|
12 |
<?php
|
13 |
if ($data['is_updateable']) {
|
14 |
+
if (defined('WPACU_PAGE_JUST_UPDATED')) {
|
15 |
+
$updateClass = new \WpAssetCleanUp\Update;
|
16 |
+
?>
|
17 |
+
<div class="wpacu-updated-frontend"><em>
|
18 |
+
<?php if (\WpAssetCleanUp\Misc::isHomePage()) {
|
19 |
+
echo $updateClass->updateDoneMsg['homepage'];
|
20 |
+
} else {
|
21 |
+
echo $updateClass->updateDoneMsg['page'];
|
22 |
+
} ?>
|
23 |
+
</em></div>
|
24 |
+
<?php
|
25 |
+
}
|
26 |
+
|
27 |
$wpacuMisc = new \WpAssetCleanUp\Misc();
|
28 |
$activeCachePlugins = $wpacuMisc->getActiveCachePlugins();
|
29 |
|
wpacu.php
CHANGED
@@ -2,13 +2,13 @@
|
|
2 |
/*
|
3 |
* Plugin Name: Asset CleanUp: Page Speed Booster
|
4 |
* Plugin URI: https://wordpress.org/plugins/wp-asset-clean-up/
|
5 |
-
* Version: 1.2.8.
|
6 |
* Description: Prevent Chosen Scripts & Styles from loading in Posts/Pages to reduce HTTP Requests and have the website load faster
|
7 |
* Author: Gabriel Livan
|
8 |
* Author URI: http://gabelivan.com/
|
9 |
*/
|
10 |
|
11 |
-
define('WPACU_PLUGIN_VERSION', '1.2.8.
|
12 |
|
13 |
// Exit if accessed directly
|
14 |
if (! defined('ABSPATH')) {
|
2 |
/*
|
3 |
* Plugin Name: Asset CleanUp: Page Speed Booster
|
4 |
* Plugin URI: https://wordpress.org/plugins/wp-asset-clean-up/
|
5 |
+
* Version: 1.2.8.5
|
6 |
* Description: Prevent Chosen Scripts & Styles from loading in Posts/Pages to reduce HTTP Requests and have the website load faster
|
7 |
* Author: Gabriel Livan
|
8 |
* Author URI: http://gabelivan.com/
|
9 |
*/
|
10 |
|
11 |
+
define('WPACU_PLUGIN_VERSION', '1.2.8.5');
|
12 |
|
13 |
// Exit if accessed directly
|
14 |
if (! defined('ABSPATH')) {
|