Version Description
- Bug Fix: array_key_first() didn't have a fallback for PHP 5 causing plugin admin pages to disappear
- Do not trigger Asset CleanUp if either of the following page builders are in edit mode: "Thrive Architect", "Page Builder by SiteOrigin" & "Beaver Builder"
- Code improvement; Hide meta boxes from Themify builder templates
Download this release
Release Info
Developer | gabelivan |
Plugin | Asset CleanUp: Page Speed Booster |
Version | 1.3.2.7 |
Comparing to | |
See all releases |
Code changes from version 1.3.2.6 to 1.3.2.7
- assets/icons/icon-ajax-loading-spinner.svg +49 -0
- assets/script.min.js +1 -1
- assets/style.min.css +1 -1
- classes/AdminBar.php +13 -8
- classes/BulkUnloads.php +2 -2
- classes/CleanUp.php +116 -0
- classes/ImportExport.php +229 -0
- classes/Info.php +35 -0
- classes/Lite.php +50 -0
- classes/Main.php +208 -180
- classes/Menu.php +19 -19
- classes/MetaBoxes.php +2 -2
- classes/Misc.php +38 -50
- classes/OptimiseAssets/MinifyCss.php +13 -5
- classes/OptimiseAssets/MinifyJs.php +11 -1
- classes/OptimiseAssets/OptimizeCommon.php +16 -3
- classes/OptimiseAssets/OptimizeCss.php +15 -11
- classes/OptimiseAssets/OptimizeJs.php +15 -12
- classes/OwnAssets.php +62 -29
- classes/Plugin.php +62 -34
- classes/Settings.php +10 -7
- classes/Sorting.php +4 -2
- classes/Tools.php +114 -23
- classes/Update.php +10 -9
- early-triggers.php +28 -13
- freemius-load.php +41 -12
- languages/wp-asset-clean-up-en_GB.mo +0 -0
- languages/wp-asset-clean-up-en_GB.po +2156 -0
- languages/wp-asset-clean-up-en_US.mo +0 -0
- languages/wp-asset-clean-up-en_US.po +2149 -0
- readme.txt +6 -1
- templates/_admin-page-getting-started-areas/_benefits-fast-pages.php +14 -14
- templates/_admin-page-getting-started-areas/_how-it-works.php +10 -10
- templates/_admin-page-getting-started-areas/_lite-vs-pro.php +22 -17
- templates/_admin-page-getting-started-areas/_start-optimization.php +1 -1
- templates/_admin-page-getting-started-areas/_video-tutorials.php +1 -1
- templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php +20 -20
- templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php +27 -27
- templates/_admin-page-settings-plugin-areas/_common-files-unload.php +12 -12
- templates/_admin-page-settings-plugin-areas/_disable-xml-rpc-protocol.php +1 -1
- templates/_admin-page-settings-plugin-areas/_html-source-cleanup.php +2 -2
- templates/_admin-page-settings-plugin-areas/_minify-loaded-files.php +11 -11
- templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php +61 -41
- templates/_admin-page-settings-plugin-areas/_strip-the-fat.php +5 -5
- templates/_admin-page-settings-plugin-areas/_test-mode.php +11 -11
- templates/_top-area.php +25 -8
- templates/admin-page-assets-manager.php +2 -2
- templates/admin-page-child-pages-info.php +34 -34
- templates/admin-page-child-settings-homepage.php +13 -10
- templates/admin-page-get-help.php +8 -9
- templates/admin-page-getting-started.php +10 -12
- templates/admin-page-license.php +6 -4
- templates/admin-page-settings-bulk-changes.php +3 -3
- templates/admin-page-settings-plugin.php +13 -13
- templates/admin-page-tools.php +126 -15
- templates/meta-box-loaded-assets/_asset-script-rows.php +23 -1
- templates/meta-box-loaded-assets/_asset-script-single-row.php +63 -32
- templates/meta-box-loaded-assets/_asset-style-rows.php +23 -1
- templates/meta-box-loaded-assets/_asset-style-single-row.php +61 -22
- templates/meta-box-loaded-assets/view-by-loaded-unloaded.php +120 -0
- templates/meta-box-loaded-assets/view-by-location.php +16 -8
- templates/meta-box-loaded-assets/view-by-parents.php +111 -0
- templates/meta-box-loaded-assets/view-by-position.php +19 -23
- templates/meta-box-loaded-assets/view-default.php +11 -11
- templates/meta-box-loaded.php +18 -11
- templates/meta-box-side-page-options.php +9 -6
- templates/meta-box.php +6 -6
- templates/settings-frontend.php +43 -22
- wpacu-load.php +8 -1
- wpacu.php +20 -14
assets/icons/icon-ajax-loading-spinner.svg
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<svg class="lds-spinner" width="200px" height="200px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" style="background: none;"><g transform="rotate(0 50 50)">
|
2 |
+
<rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#007eb1">
|
3 |
+
<animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.9166666666666666s" repeatCount="indefinite"></animate>
|
4 |
+
</rect>
|
5 |
+
</g><g transform="rotate(30 50 50)">
|
6 |
+
<rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#007eb1">
|
7 |
+
<animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.8333333333333334s" repeatCount="indefinite"></animate>
|
8 |
+
</rect>
|
9 |
+
</g><g transform="rotate(60 50 50)">
|
10 |
+
<rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#007eb1">
|
11 |
+
<animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.75s" repeatCount="indefinite"></animate>
|
12 |
+
</rect>
|
13 |
+
</g><g transform="rotate(90 50 50)">
|
14 |
+
<rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#007eb1">
|
15 |
+
<animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.6666666666666666s" repeatCount="indefinite"></animate>
|
16 |
+
</rect>
|
17 |
+
</g><g transform="rotate(120 50 50)">
|
18 |
+
<rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#007eb1">
|
19 |
+
<animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.5833333333333334s" repeatCount="indefinite"></animate>
|
20 |
+
</rect>
|
21 |
+
</g><g transform="rotate(150 50 50)">
|
22 |
+
<rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#007eb1">
|
23 |
+
<animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.5s" repeatCount="indefinite"></animate>
|
24 |
+
</rect>
|
25 |
+
</g><g transform="rotate(180 50 50)">
|
26 |
+
<rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#007eb1">
|
27 |
+
<animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.4166666666666667s" repeatCount="indefinite"></animate>
|
28 |
+
</rect>
|
29 |
+
</g><g transform="rotate(210 50 50)">
|
30 |
+
<rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#007eb1">
|
31 |
+
<animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.3333333333333333s" repeatCount="indefinite"></animate>
|
32 |
+
</rect>
|
33 |
+
</g><g transform="rotate(240 50 50)">
|
34 |
+
<rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#007eb1">
|
35 |
+
<animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.25s" repeatCount="indefinite"></animate>
|
36 |
+
</rect>
|
37 |
+
</g><g transform="rotate(270 50 50)">
|
38 |
+
<rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#007eb1">
|
39 |
+
<animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.16666666666666666s" repeatCount="indefinite"></animate>
|
40 |
+
</rect>
|
41 |
+
</g><g transform="rotate(300 50 50)">
|
42 |
+
<rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#007eb1">
|
43 |
+
<animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.08333333333333333s" repeatCount="indefinite"></animate>
|
44 |
+
</rect>
|
45 |
+
</g><g transform="rotate(330 50 50)">
|
46 |
+
<rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#007eb1">
|
47 |
+
<animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="0s" repeatCount="indefinite"></animate>
|
48 |
+
</rect>
|
49 |
+
</g></svg>
|
assets/script.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function wpacuTabOpenSettingsArea(a,b){a.preventDefault();var c,d,e;for(d=document.getElementsByClassName("wpacu-settings-tab-content"),c=0;c<d.length;c++)d[c].style.display="none";for(e=document.getElementsByClassName("wpacu-settings-tab-link"),c=0;c<e.length;c++)e[c].className=e[c].className.replace(" active","");document.getElementById(b).style.display="table-cell",jQuery('a[href="#'+b+'"]').addClass("active"),jQuery("#wpacu-selected-tab-area").val(b)}if(jQuery(document).ready(function(a){function b(){if(!a("#wpacu_ajax_fetch_assets_list_dashboard_view").length)return!1;var b={};"direct"===wpacu_object.dom_get_type?(b[wpacu_object.plugin_name+"_load"]=1,b[wpacu_object.plugin_name+"_time_r"]=(new Date).getTime(),a.ajax({method:"GET",url:wpacu_object.page_url,data:b,cache:!1,complete:function(b,c){if("error"===b.statusText){var d=wpacu_object.ajax_direct_fetch_error;d=d.replace(/\{wpacu_output\}/,b.responseText),d=d.replace(/\{wpacu_status_code_error\}/,b.status),a("#wpacu_meta_box_content").html(d)}}}).done(function(b){var c=b.substring(b.lastIndexOf(wpacu_object.start_del)+wpacu_object.start_del.length,b.lastIndexOf(wpacu_object.end_del)),d={action:wpacu_object.plugin_name+"_get_loaded_assets",wpacu_list:c,post_id:wpacu_object.post_id,page_url:wpacu_object.page_url,tag_id:wpacu_object.tag_id,time_r:(new Date).getTime()};a.post(wpacu_object.ajax_url,d,function(b){if(!b)return!1;a("#wpacu_meta_box_content").html(b),a("#wpacu_home_page_form").length>0&&a("#submit").show(),setTimeout(function(){e.load()},200)})})):"wp_remote_post"===wpacu_object.dom_get_type&&(b={action:wpacu_object.plugin_name+"_get_loaded_assets",post_id:wpacu_object.post_id,page_url:wpacu_object.page_url,tag_id:wpacu_object.tag_id,time_r:(new Date).getTime()},a.post(wpacu_object.ajax_url,b,function(b){if(!b)return!1;a("#wpacu_meta_box_content").html(b),a("#wpacu_home_page_form").length>0&&a("#submit").show(),setTimeout(function(){e.load()},200)}))}a("#wpacu-mark-license-valid-button").click(function(){return confirm(wpacu_object.mark_license_valid_confirm)});var c,d;a("#wpacu-reset-drop-down").on("change keyup keydown mouseup mousedown click",function(){""===a(this).val()?(a("#wpacu-warning-read").removeClass("wpacu-visible"),a("#wpacu-reset-submit-btn").attr("disabled","disabled").removeClass("button-primary").addClass("button-secondary")):("reset_everything"===a(this).val()?a("#wpacu-license-data-remove-area").addClass("wpacu-visible"):a("#wpacu-license-data-remove-area").removeClass("wpacu-visible"),a("#wpacu-warning-read").addClass("wpacu-visible"),a("#wpacu-reset-submit-btn").removeAttr("disabled").removeClass("button-secondary").addClass("button-primary")),a(".wpacu-tools-area .wpacu-warning").hide(),c=a(this).find("option:selected"),a("#"+c.attr("data-id")).show()}),a("#wpacu-reset-submit-btn").on("click",function(){if("reset_settings"===a("#wpacu-reset-drop-down").val()?d=wpacu_object.reset_settings_confirm_msg:"reset_everything"===a("#wpacu-reset-drop-down").val()&&(d=wpacu_object.reset_everything_confirm_msg),!confirm(d))return!1;a("#wpacu-action-confirmed").val("yes"),setTimeout(function(){"yes"===a("#wpacu-action-confirmed").val()&&a("#wpacu-tools-form").submit()},1e3)});var e={load:function(){var b;a(".input-unload-on-this-page").on("click change",function(){a(this).prop("checked")?a(this).closest("tr").addClass("wpacu_not_load"):a(this).closest("tr").removeClass("wpacu_not_load")}),a(".wpacu-plugin-check-all").on("click",function(b){b.preventDefault();var c=a(this).attr("data-wpacu-plugin");a('table.wpacu_list_by_location[data-wpacu-plugin="'+c+'"]').find(".input-unload-on-this-page.wpacu-not-locked").prop("checked",!0).closest("tr").addClass("wpacu_not_load")}),a(".wpacu-plugin-uncheck-all").on("click",function(b){b.preventDefault();var c=a(this).attr("data-wpacu-plugin");a('table.wpacu_list_by_location[data-wpacu-plugin="'+c+'"]').find(".input-unload-on-this-page.wpacu-not-locked").prop("checked",!1).closest("tr").removeClass("wpacu_not_load")}),a(".wpacu_global_unload").click(function(){b=a(this).attr("data-handle"),a(this).prop("checked")?a(this).parent("label").addClass("wpacu_global_checked"):a(this).parent("label").removeClass("wpacu_global_checked")}),a(".wpacu_keep_bulk_rule").click(function(){a(this).prop("checked")&&a(this).parents("li").next().removeClass("remove_rule")}),a(".wpacu_remove_bulk_rule").click(function(){a(this).prop("checked")&&a(this).parents("li").addClass("remove_rule")}),a(".wpacu_bulk_unload").click(function(){a(this).prop("checked")?a(this).parent("label").addClass("wpacu_bulk_unload_active"):a(this).parent("label").removeClass("wpacu_bulk_unload_active")}),a(".wpacu_load_it_option").click(function(){var b=a(this).attr("data-handle");if(a(this).prop("checked")){a(this).parent("label").addClass("wpacu_global_unload_exception");var c="";a(this).hasClass("wpacu_style")?c="style":a(this).hasClass("wpacu_script")&&(c="script"),a("#"+c+"_"+b).prop("checked",!1).trigger("change")}else a(this).parent("label").removeClass("wpacu_global_unload_exception")}),a(".wpacu-external-file-size").on("click",function(b){b.preventDefault();var c,d=a(this);d.hide(),c=d.next(),c.show(),a.post(wpacu_object.ajax_url,{action:"get_external_file_size",wpacu_remote_file:d.attr("data-src")},function(a){c.html(a)})})}};a(".wpacu-dom-get-type-selection").change(function(){a(this).is(":checked")&&(a(".wpacu-dom-get-type-info").hide(),a("#"+a(this).attr("data-target")).fadeIn("fast"))}),a("#wpacu_post_type_select").change(function(){a("#wpacu_post_type_form").submit()}),a("#wpacu_taxonomy_select").change(function(){a("#wpacu_taxonomy_form").submit()}),a("#wpacu_dashboard").click(function(){a(this).prop("checked")?a("#wpacu-settings-assets-retrieval-mode").fadeIn("fast"):a("#wpacu-settings-assets-retrieval-mode").fadeOut("fast")}),a("#wpacu_frontend").click(function(){a(this).prop("checked")?a("#wpacu-settings-frontend-exceptions").fadeIn("fast"):a("#wpacu-settings-frontend-exceptions").fadeOut("fast")}),a("#wpacu_assets_list_layout").on("click change",function(){"by-location"===a(this).val()?a("#wpacu-assets-list-by-location-selected").fadeIn("fast"):a("#wpacu-assets-list-by-location-selected").fadeOut("fast")}),a("#wpacu_disable_jquery_migrate").on("click",function(){return!a(this).is(":checked")||(!(!a(this).is(":checked")||!confirm(wpacu_object.jquery_migration_disable_confirm_msg))||(a(this).prop("checked",!1),!1))}),a("#wpacu_disable_comment_reply").on("click",function(){return!a(this).is(":checked")||(!(!a(this).is(":checked")||!confirm(wpacu_object.comment_reply_disable_confirm_msg))||(a(this).prop("checked",!1),!1))}),a("#wpacu_combine_loaded_css_enable").click(function(){a(this).prop("checked")?a("#combine_loaded_css_info_area").css({opacity:1}):a("#combine_loaded_css_info_area").css({opacity:.4})}),a("#wpacu_combine_loaded_js_enable").click(function(){a(this).prop("checked")?a("#combine_loaded_js_info_area").css({opacity:1}):a("#combine_loaded_js_info_area").css({opacity:.4})}),a("#wpacu_minify_css_enable").click(function(){a(this).prop("checked")?a("#wpacu_minify_css_exceptions_area").css({opacity:1}):a("#wpacu_minify_css_exceptions_area").css({opacity:.4})}),a("#wpacu_minify_js_enable").click(function(){a(this).prop("checked")?a("#wpacu_minify_js_exceptions_area").css({opacity:1}):a("#wpacu_minify_js_exceptions_area").css({opacity:.4})}),a("#wpacu_remove_html_comments").click(function(){a(this).prop("checked")?a("#wpacu_remove_html_comments_area").css({opacity:1}):a("#wpacu_remove_html_comments_area").css({opacity:.4})}),a(".wpacu-combine-loaded-js-level").change(function(){a(this).is(":checked")&&(a(".wpacu_combine_loaded_js_level_area").removeClass("wpacu_active"),a("#"+a(this).attr("data-target")).addClass("wpacu_active"))});var f=a('#wpacu-update-button-area input[type="submit"]');if(f.click(function(){a("#wpacu-updating-settings").show()}),a("form#wpacu-settings-form").submit(function(){return f.attr("disabled","disabled"),!0}),a(".wpacu_remove_rule").click(function(){var b=a(this).parents(".wpacu_global_rule_row");a(this).prop("checked")?b.addClass("selected"):b.removeClass("selected")}),a(".wpacu_restore_position").click(function(){var b=a(this).parents(".wpacu_restore_position_row");a(this).prop("checked")?b.addClass("wpacu_selected"):b.removeClass("wpacu_selected")}),a(".wpacu_remove_global_attr").click(function(){var b=a(this).parents(".wpacu_remove_global_attr_row");a(this).prop("checked")?b.addClass("wpacu_selected"):b.removeClass("wpacu_selected")}),a("#wpacu_wrap_assets").length>0&&setTimeout(function(){e.load()},200),"undefined"==typeof wpacu_object||a("#wpacu_meta_box_content").length<1)return!1;b(),a(document).on("click",".wp-admin.post-php .edit-post-header__settings button.is-primary",function(){var c=function(){0===a(".edit-post-header__settings .is-saving").length&&(b(),clearInterval(d))},d=setInterval(c,900)})}),-1!==location.href.indexOf("#")){var hashFromUrl=location.href.substr(location.href.indexOf("#"));jQuery('a[href="'+hashFromUrl+'"]').trigger("click")}
|
1 |
+
function wpacuTabOpenSettingsArea(a,b){a.preventDefault();var c,d,e;for(d=document.getElementsByClassName("wpacu-settings-tab-content"),c=0;c<d.length;c++)d[c].style.display="none";for(e=document.getElementsByClassName("wpacu-settings-tab-link"),c=0;c<e.length;c++)e[c].className=e[c].className.replace(" active","");document.getElementById(b).style.display="table-cell",jQuery('a[href="#'+b+'"]').addClass("active"),jQuery("#wpacu-selected-tab-area").val(b)}if(jQuery(document).ready(function(a){function b(){if(!a("#wpacu_ajax_fetch_assets_list_dashboard_view").length)return!1;var b={};"direct"===wpacu_object.dom_get_type?(b[wpacu_object.plugin_name+"_load"]=1,b[wpacu_object.plugin_name+"_time_r"]=(new Date).getTime(),a.ajax({method:"GET",url:wpacu_object.page_url,data:b,cache:!1,complete:function(b,c){if("error"===b.statusText){var d=wpacu_object.ajax_direct_fetch_error;d=d.replace(/\{wpacu_output\}/,b.responseText),d=d.replace(/\{wpacu_status_code_error\}/,b.status),a("#wpacu_meta_box_content").html(d)}}}).done(function(b){var c=b.substring(b.lastIndexOf(wpacu_object.start_del)+wpacu_object.start_del.length,b.lastIndexOf(wpacu_object.end_del)),d={action:wpacu_object.plugin_name+"_get_loaded_assets",wpacu_list:c,post_id:wpacu_object.post_id,page_url:wpacu_object.page_url,tag_id:wpacu_object.tag_id,time_r:(new Date).getTime()};a.post(wpacu_object.ajax_url,d,function(b){if(!b)return!1;a("#wpacu_meta_box_content").html(b),a("#wpacu_home_page_form").length>0&&a("#submit").show(),setTimeout(function(){e.load(),a(".wpacu_asset_row").removeClass("wpacu-loading"),a("#wpacu-assets-reloading").remove()},200)})})):"wp_remote_post"===wpacu_object.dom_get_type&&(b={action:wpacu_object.plugin_name+"_get_loaded_assets",post_id:wpacu_object.post_id,page_url:wpacu_object.page_url,tag_id:wpacu_object.tag_id,time_r:(new Date).getTime()},a.post(wpacu_object.ajax_url,b,function(b){if(!b)return!1;a("#wpacu_meta_box_content").html(b),a("#wpacu_home_page_form").length>0&&a("#submit").show(),setTimeout(function(){e.load()},200)}))}a("#wpacu-mark-license-valid-button").click(function(){return confirm(wpacu_object.mark_license_valid_confirm)});var c,d;a("#wpacu-reset-drop-down").on("change keyup keydown mouseup mousedown click",function(){""===a(this).val()?(a("#wpacu-warning-read").removeClass("wpacu-visible"),a("#wpacu-reset-submit-btn").attr("disabled","disabled").removeClass("button-primary").addClass("button-secondary")):("reset_everything"===a(this).val()?a("#wpacu-license-data-remove-area").addClass("wpacu-visible"):a("#wpacu-license-data-remove-area").removeClass("wpacu-visible"),a("#wpacu-warning-read").addClass("wpacu-visible"),a("#wpacu-reset-submit-btn").removeAttr("disabled").removeClass("button-secondary").addClass("button-primary")),a(".wpacu-tools-area .wpacu-warning").hide(),c=a(this).find("option:selected"),a("#"+c.attr("data-id")).show()}),a("#wpacu-reset-submit-btn").on("click",function(){if("reset_settings"===a("#wpacu-reset-drop-down").val()?d=wpacu_object.reset_settings_confirm_msg:"reset_everything_except_settings"===a("#wpacu-reset-drop-down").val()?d=wpacu_object.reset_everything_except_settings_confirm_msg:"reset_everything"===a("#wpacu-reset-drop-down").val()&&(d=wpacu_object.reset_everything_confirm_msg),!confirm(d))return!1;a("#wpacu-action-confirmed").val("yes"),setTimeout(function(){"yes"===a("#wpacu-action-confirmed").val()&&a("#wpacu-tools-form").submit()},1e3)}),a("#wpacu-import-form").submit(function(){if(!confirm(wpacu_object.import_confirm_msg))return!1;a(this).find("button").addClass("wpacu-importing").prop("disabled",!0)});var e={load:function(){var b;a(".input-unload-on-this-page").on("click change",function(){a(this).prop("checked")?a(this).closest("tr").addClass("wpacu_not_load"):a(this).closest("tr").removeClass("wpacu_not_load")}),a(".wpacu-plugin-check-all").on("click",function(b){b.preventDefault();var c=a(this).attr("data-wpacu-plugin");a('table.wpacu_list_by_location[data-wpacu-plugin="'+c+'"]').find(".input-unload-on-this-page.wpacu-not-locked").prop("checked",!0).closest("tr").addClass("wpacu_not_load")}),a(".wpacu-plugin-uncheck-all").on("click",function(b){b.preventDefault();var c=a(this).attr("data-wpacu-plugin");a('table.wpacu_list_by_location[data-wpacu-plugin="'+c+'"]').find(".input-unload-on-this-page.wpacu-not-locked").prop("checked",!1).closest("tr").removeClass("wpacu_not_load")}),a(".wpacu_global_unload").click(function(){b=a(this).attr("data-handle"),a(this).prop("checked")?a(this).parent("label").addClass("wpacu_global_checked"):a(this).parent("label").removeClass("wpacu_global_checked")}),a(".wpacu_keep_bulk_rule").click(function(){a(this).prop("checked")&&a(this).parents("li").next().removeClass("remove_rule")}),a(".wpacu_remove_bulk_rule").click(function(){a(this).prop("checked")&&a(this).parents("li").addClass("remove_rule")}),a(".wpacu_bulk_unload").click(function(){a(this).prop("checked")?a(this).parent("label").addClass("wpacu_bulk_unload_active"):a(this).parent("label").removeClass("wpacu_bulk_unload_active")}),a(".wpacu_load_it_option").click(function(){var b=a(this).attr("data-handle");if(a(this).prop("checked")){a(this).parent("label").addClass("wpacu_global_unload_exception");var c="";a(this).hasClass("wpacu_style")?c="style":a(this).hasClass("wpacu_script")&&(c="script"),a("#"+c+"_"+b).prop("checked",!1).trigger("change")}else a(this).parent("label").removeClass("wpacu_global_unload_exception")}),a(".wpacu-external-file-size").on("click",function(b){b.preventDefault();var c,d=a(this);d.hide(),c=d.next(),c.show(),a.post(wpacu_object.ajax_url,{action:"get_external_file_size",wpacu_remote_file:d.attr("data-src")},function(a){c.html(a)})})}};a(".wpacu-dom-get-type-selection").change(function(){a(this).is(":checked")&&(a(".wpacu-dom-get-type-info").hide(),a("#"+a(this).attr("data-target")).fadeIn("fast"))}),a("#wpacu_post_type_select").change(function(){a("#wpacu_post_type_form").submit()}),a("#wpacu_taxonomy_select").change(function(){a("#wpacu_taxonomy_form").submit()}),a("#wpacu_dashboard").click(function(){a(this).prop("checked")?a("#wpacu-settings-assets-retrieval-mode").fadeIn("fast"):a("#wpacu-settings-assets-retrieval-mode").fadeOut("fast")}),a("#wpacu_frontend").click(function(){a(this).prop("checked")?a("#wpacu-settings-frontend-exceptions").fadeIn("fast"):a("#wpacu-settings-frontend-exceptions").fadeOut("fast")}),a("#wpacu_assets_list_layout").on("click change",function(){"by-location"===a(this).val()?a("#wpacu-assets-list-by-location-selected").fadeIn("fast"):a("#wpacu-assets-list-by-location-selected").fadeOut("fast")}),a("#wpacu_disable_jquery_migrate").on("click",function(){return!a(this).is(":checked")||(!(!a(this).is(":checked")||!confirm(wpacu_object.jquery_migration_disable_confirm_msg))||(a(this).prop("checked",!1),!1))}),a("#wpacu_disable_comment_reply").on("click",function(){return!a(this).is(":checked")||(!(!a(this).is(":checked")||!confirm(wpacu_object.comment_reply_disable_confirm_msg))||(a(this).prop("checked",!1),!1))}),a("#wpacu_combine_loaded_css_enable").click(function(){a(this).prop("checked")?a("#combine_loaded_css_info_area").css({opacity:1}):a("#combine_loaded_css_info_area").css({opacity:.4})}),a("#wpacu_combine_loaded_js_enable").click(function(){a(this).prop("checked")?a("#combine_loaded_js_info_area").css({opacity:1}):a("#combine_loaded_js_info_area").css({opacity:.4})}),a("#wpacu_minify_css_enable").click(function(){a(this).prop("checked")?a("#wpacu_minify_css_exceptions_area").css({opacity:1}):a("#wpacu_minify_css_exceptions_area").css({opacity:.4})}),a("#wpacu_minify_js_enable").click(function(){a(this).prop("checked")?a("#wpacu_minify_js_exceptions_area").css({opacity:1}):a("#wpacu_minify_js_exceptions_area").css({opacity:.4})}),a("#wpacu_remove_html_comments").click(function(){a(this).prop("checked")?a("#wpacu_remove_html_comments_area").css({opacity:1}):a("#wpacu_remove_html_comments_area").css({opacity:.4})}),a(".wpacu-combine-loaded-js-level").change(function(){a(this).is(":checked")&&(a(".wpacu_combine_loaded_js_level_area").removeClass("wpacu_active"),a("#"+a(this).attr("data-target")).addClass("wpacu_active"))});var f=a('#wpacu-update-button-area input[type="submit"]');f.click(function(){a("#wpacu-updating-settings").show()});var g=a("#wpacu-update-front-settings-area .wpacu_update_btn");if(g.parents("form").submit(function(){return g.attr("disabled",!0).addClass("wpacu_submitting"),a("#wpacu-updating-front-settings").show(),!0}),a("form#wpacu-settings-form, form#wpacu_home_page_form").submit(function(){return f.attr("disabled",!0),!0}),a(".wpacu_remove_rule").click(function(){var b=a(this).parents(".wpacu_global_rule_row");a(this).prop("checked")?b.addClass("selected"):b.removeClass("selected")}),a(".wpacu_restore_position").click(function(){var b=a(this).parents(".wpacu_restore_position_row");a(this).prop("checked")?b.addClass("wpacu_selected"):b.removeClass("wpacu_selected")}),a(".wpacu_remove_global_attr").click(function(){var b=a(this).parents(".wpacu_remove_global_attr_row");a(this).prop("checked")?b.addClass("wpacu_selected"):b.removeClass("wpacu_selected")}),a("#wpacu_wrap_assets").length>0&&setTimeout(function(){e.load()},200),"undefined"==typeof wpacu_object||a("#wpacu_meta_box_content").length<1)return!1;b(),a(document).on("click",".wp-admin.post-php .edit-post-header__settings button.is-primary",function(){var c=function(){if(0===a(".edit-post-header__settings .is-saving").length){if(a("#wpacu_unload_assets_area_loaded").length>0&&a("#wpacu_unload_assets_area_loaded").val()){a("#wpacu-assets-reloading").remove();var c='<span id="wpacu-assets-reloading" class="editor-post-saved-state is-wpacu-reloading">'+wpacu_object.reload_icon+wpacu_object.reload_msg+"</span>";a(".wp-admin.post-php .edit-post-header__settings").prepend(c)}a(".wpacu_asset_row").addClass("wpacu-loading"),b(),clearInterval(d)}},d=setInterval(c,900)})}),-1!==location.href.indexOf("#")){var hashFromUrl=location.href.substr(location.href.indexOf("#"));jQuery('a[href="'+hashFromUrl+'"]').trigger("click")}
|
assets/style.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#wpacu-pages-info-area{width:98%}#wpacu-top-area{margin:15px 0;padding:0 10px}#wpacu-logo-wrap{width:auto;display:inline-block;position:relative}#wpacu-logo-wrap a{display:block}#wpacu-logo-wrap img{width:352px;height:79px}#wpacu-logo-wrap .wpacu-pro-sign{position:absolute;height:auto;font-family:FiraSans-Medium,proxima-nova-1,Montserrat,Helvetica,sans-serif;font-size:13px;font-weight:600;letter-spacing:1px;padding:5px 11px;border-radius:15px;right:-60px;top:30px;width:auto;display:inline-block;text-align:center}#wpacu-logo-wrap .wpacu-pro-sign.wpacu-lite{color:#74777b;background:rgba(40,44,42,.05)}#wpacu-logo-wrap .wpacu-pro-sign.wpacu-pro{color:#004567;background-color:rgba(40,44,42,.05)}#wpacu_meta_box_content .dashicons.dashicons-warning,.wpacu-tabs nav ul li span.license-status.inactive{color:#c00}.wpacu-tabs{position:relative;overflow:hidden;margin:0 auto 20px;width:100%;font-weight:300;font-size:20px}.wpacu-tabs nav{text-align:center}.wpacu-tabs nav ul{position:relative;display:-ms-flexbox;display:-webkit-flex;display:-moz-flex;display:-ms-flex;display:flex;margin:0 auto;padding:0;max-width:1200px;list-style:none;-ms-box-orient:horizontal;-ms-box-pack:center;-webkit-flex-flow:row wrap;-moz-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-justify-content:center;-moz-justify-content:center;-ms-justify-content:center;justify-content:center}.wpacu-tabs nav ul li{position:relative;z-index:1;display:block;margin:0;text-align:center;-webkit-flex:1;-moz-flex:1;-ms-flex:1;flex:1}.wpacu-tabs nav ul li span.license-status{position:absolute;font-size:12px;left:0;right:50%;bottom:12px;-webkit-transform:translate(50%,50%);transform:translate(50%,50%)}.wpacu-tabs nav ul li span.license-status.active{color:green}.wpacu-tabs nav a{position:relative;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:2.5}.wpacu-tabs nav a span{vertical-align:middle;font-size:14px}.wpacu-tabs nav li.wpacu-tab-current a{color:#74777b}.wpacu-tabs nav a:focus{outline:0}.wpacu-tabs .dashicons{font-size:20px}.no-js .wpacu-content-wrap section{display:block;padding-bottom:2em;border-bottom:1px solid rgba(255,255,255,.6)}.no-flexbox nav ul{display:block}.no-flexbox nav ul li{min-width:15%;display:inline-block}@media screen and (max-width:58em){.wpacu-tabs nav a.icon span{display:none}.wpacu-tabs nav a:before{margin-right:0}}.wpacu-tabs-style-underline nav{background:#fff}.wpacu-tabs-style-underline nav a{color:#74777b;font-size:18px;text-transform:uppercase;text-decoration:none;padding:.25em 0 .5em;border-left:1px solid #e7ecea;-webkit-transition:color .2s;transition:color .2s}.wpacu-tabs-style-underline nav li:last-child a{border-right:1px solid #e7ecea}.wpacu-tabs-style-underline nav li a::after{position:absolute;bottom:0;left:0;width:100%;height:6px;background:#2CC185;content:'';-webkit-transition:-webkit-transform .3s;transition:transform .3s;-webkit-transform:translate3d(0,150%,0);transform:translate3d(0,150%,0)}.wpacu-tabs-style-underline nav li.wpacu-tab-current a::after{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.wpacu-tabs-style-underline nav a span{font-weight:700}.wpacu-tabs-style-topline{max-width:1200px;margin:20px auto 30px 0;width:100%;font-weight:300;text-decoration:none}.wpacu-tabs-style-topline nav li{border:1px solid rgba(40,44,42,.1)}.wpacu-tabs-style-topline nav li:not(:last-child){border-right:none}.wpacu-tabs-style-topline nav li.wpacu-tab-current{border-top-color:#008f9c;border-bottom:none}.wpacu-tabs-style-topline nav a{padding:20px 18px;background:rgba(40,44,42,.05);color:#74777b;line-height:1;-webkit-transition:color .2s;transition:color .2s;text-decoration:none}.wpacu-tabs-style-topline nav a:focus,.wpacu-tabs-style-topline nav a:hover{background:0 0;color:#008f9c}.wpacu-tabs-style-topline nav li.wpacu-tab-current a{background:0 0;box-shadow:inset 0 3px 0 #008f9c;color:#008f9c}.wpacu-tabs-style-topline nav li.wpacu-tab-current a span:not(.dashicons){font-weight:600}.wpacu-tabs-style-topline nav a span{text-transform:uppercase;font-weight:400}.wpacu-tab-nav-wrapper{border-bottom:none!important}.wpacu-tab-nav-wrapper .nav-tab.nav-tab-active{background:#fff;position:relative}.wpacu-tab-nav-wrapper .nav-tab.nav-tab-active:after{content:'';width:100%;bottom:-2px;left:0;position:absolute;border-bottom:2px solid #fff}.wpacu-script-attributes-area{margin:20px 0 0!important}.wpacu-script-attributes-area.wpacu-lite ul.wpacu-script-attributes-settings{padding:5px 7px!important}.wpacu-script-attributes-area.wpacu-lite ul.wpacu-script-attributes-settings.wpacu-first{margin:0 28px 0 0!important}.wpacu-script-attributes-area.wpacu-lite ul.wpacu-script-attributes-settings label{margin:0!important}.wpacu-script-attributes-area.wpacu-lite ul.wpacu-script-attributes-settings li{margin:0 16px 0 0!important}.wpacu-script-attributes-area.wpacu-lite ul.wpacu-script-attributes-settings li:first-child{margin:0 10px 0 0!important}.wpacu-script-attributes-area.wpacu-lite ul.wpacu-script-attributes-settings li:last-child{margin:0 2px 0 0!important}.wpacu-script-attributes-area .wpacu-script-attributes-settings{background:#fff!important;border:1px solid #eee!important;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;padding:5px 10px!important;list-style:none;display:inline-block;margin:0}.wpacu-script-attributes-area .wpacu-script-attributes-settings input[type=radio]{padding:0;margin:0 5px 0 0}.wpacu-script-attributes-area .wpacu-script-attributes-settings.wpacu-first{margin:0 34px 0 0!important}.wpacu-script-attributes-area .wpacu-script-attributes-settings li{float:left;margin:0 17px 0 0}.wpacu-script-attributes-area .wpacu-script-attributes-settings li:first-child{margin:0 10px 0 0!important}.wpacu-script-attributes-area .wpacu-script-attributes-settings li:last-child{margin:0}.wpacu-script-attributes-area .wpacu-script-attributes-settings:hover{background:#f2faf2}tr.wpacu_not_load td,tr.wpacu_not_load th{background:#FFE1E1!important}.dashicons-wpacu{width:17px;height:17px;margin:2px 0 0;font-size:16px;text-decoration:none}#wpacu_meta_box_content,.wpacu_widefat{width:99%}.wpacu_widefat .check-column.wpacu_check{padding:10px}body[class*=wpassetcleanup] #footer-left{border-left:2px solid green;padding-left:10px}#wpassetcleanup_asset_list small{width:auto;float:none;display:inline}#wpacu_meta_box_content .emoji{font-size:18px}#wpacu_meta_box_content h3{margin-left:0;padding-left:0}#wpacu_meta_box_content div.wpacu_note{padding:10px;background-color:#f5f5f5}#wpacu_meta_box_content .wpacu_verified{padding:10px;background-color:#f5f5f5;border-left:1px solid #ddd}#wpacu_meta_box_content .wpacu_verified span{color:#0073aa;font-weight:700}#wpacu_meta_box_content div.wpacu_warning{border:1px solid #c00}#wpacu_meta_box_content ul.wpacu_asset_options{margin:0;padding:0}#wpacu_meta_box_content ul.wpacu_asset_options li{list-style:none;display:inline-block}#wpacu_meta_box_content ul.wpacu_asset_options label{font-weight:400;margin-right:5px;margin-top:5px;margin-bottom:5px}.wpacu-updated-frontend{font-weight:400;background-color:#fff;border-left:4px solid #46b450;border-top:1px solid #46b450;border-right:1px solid #46b450;border-bottom:1px solid #46b450;padding:9px 14px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.wpacu-updated-frontend span.dashicons-yes{color:#46b450;font-size:26px}#wpacu_wrap_assets{color:#000!important;text-align:left!important;clear:both!important;width:90%!important;padding:20px!important;margin:30px 0 0 15px!important;border:1px solid #cdcdcd;z-index:10000!important;position:relative!important;background-color:#fff!important}#wpacu_wrap_assets div.wpacu_warning{border:1px solid #c00;padding:5px 10px}#wpacu_wrap_assets small{display:inline!important;margin:0!important;letter-spacing:normal!important}#wpacu_wrap_assets img,.wpacu_asset_row td label,.wpacu_update_btn{display:inline-block!important}#wpacu_wrap_assets input[type=checkbox]{margin-right:4px!important}#wpacu_wrap_assets p{line-height:22px!important;margin:10px 0!important;text-align:left!important;font-weight:400!important}#wpacu_wrap_assets p:first-child,.wpacu_verified{margin:0 0 10px!important}#wpacu_wrap_assets h1{margin:0 0 20px!important;font-size:160%!important;text-align:left!important}#wpacu_wrap_assets h3{margin:20px 0;font-size:130%}.wpacu_asset_row td{padding:18px!important;position:relative;border-left:1px solid #cdcdcd;border-right:1px solid #cdcdcd;border-bottom:1px solid #cdcdcd}.wpacu_asset_row td.selected,.wpacu_asset_row td:hover{border:1px solid #cdcdcd;-moz-box-shadow:inset 0 0 12px #cdcdcd;-webkit-box-shadow:inset 0 0 12px #cdcdcd;box-shadow:inset 0 0 12px #cdcdcd}.wpacu_asset_row td:first-child{border-top:1px solid #cdcdcd}.wpacu_asset_row td p{padding:0!important;margin-bottom:10px!important;word-wrap:break-word!important;-ms-word-break:break-all;word-break:break-word}.wpacu_asset_row td label{width:auto!important;margin:0!important;cursor:pointer!important;font-size:100%!important;font-weight:400!important}.wpacu_asset_row td label span:not(.dashicons){font-size:100%!important}.wpacu_asset_row td.wpacu_check{width:50px!important}.asset-table-extra-info td{padding:5px!important}body.wp-admin .wpacu_asset_row td.wpacu_check{width:25px!important}.wpacu_asset_row .dashicons-warning{color:red!important}label.wpacu_add_global{cursor:pointer!important}label.wpacu_global_checked{font-weight:700;color:#d54e21}label.wpacu_global_unload_exception{font-weight:700!important}label.wpacu_bulk_unload_active{color:#d54e21}tr.wpacu_global_rule_row.selected{background:#e7e7e7}.nav-tab-wrapper{border-bottom:1px solid #ccc;width:95%}ul.wpacu_asset_options{margin:0 10px 0 0;padding:0}ul.wpacu_asset_options li{margin:0 20px 0 0;list-style:none;display:inline-block;line-height:normal}ul.wpacu_asset_options li.remove_rule label{font-weight:700}ul.wpacu_asset_options label{margin-right:20px;font-weight:400}ul.wpacu_asset_options label input{margin-right:4px}.wpacu_list_table,.wpacu_list_table div,.wpacu_list_table li,.wpacu_list_table p{font-weight:400}.wpacu_striped>tbody>:nth-child(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;cursor:pointer!important;color:#fff!important;font-size:15px!important;padding:10px 24px!important;text-decoration:none!important;text-shadow:0 1px 0 #154682!important;height:auto!important;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}.wpacu-btns .btn{display:inline-block;font-weight:400;line-height:1.25;text-align:center;white-space:nowrap;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:1px solid transparent;padding:.5rem 1rem;font-size:1rem;-webkit-border-radius:.25rem;-moz-border-radius:.25rem;border-radius:.25rem;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.wpacu-btns .btn.focus,.wpacu-btns .btn:focus{outline:0;-webkit-box-shadow:0 0 0 2px rgba(2,117,216,.25);box-shadow:0 0 0 2px rgba(2,117,216,.25)}.wpacu-btns .btn.disabled,.wpacu-btns .btn:disabled{cursor:not-allowed;opacity:.65}.wpacu-btns .btn.active,.wpacu-btns .btn:active{background-image:none}.wpacu-btns a.btn.disabled,.wpacu-btns fieldset[disabled] a.btn{pointer-events:none}.wpacu-btns .btn-primary{color:#fff;background-color:#0275d8;border-color:#0275d8}.wpacu-btns .btn-primary:hover{color:#fff;background-color:#025aa5;border-color:#01549b}.wpacu-btns .btn-primary.focus,.wpacu-btns .btn-primary:focus{-webkit-box-shadow:0 0 0 2px rgba(2,117,216,.5);box-shadow:0 0 0 2px rgba(2,117,216,.5)}.wpacu-btns .btn-primary.disabled,.wpacu-btns .btn-primary:disabled{background-color:#0275d8;border-color:#0275d8}.wpacu-btns .btn-primary.active,.wpacu-btns .btn-primary:active,.wpacu-btns .show>.btn-primary.dropdown-toggle{color:#fff;background-color:#025aa5;background-image:none;border-color:#01549b}.wpacu-btns .btn-secondary{color:#292b2c;background-color:#fff;border-color:#ccc}.wpacu-btns .btn-secondary:hover{color:#292b2c;background-color:#e6e6e6;border-color:#adadad}.wpacu-btns .btn-secondary.focus,.wpacu-btns .btn-secondary:focus{-webkit-box-shadow:0 0 0 2px rgba(204,204,204,.5);box-shadow:0 0 0 2px rgba(204,204,204,.5)}.wpacu-btns .btn-secondary.disabled,.wpacu-btns .btn-secondary:disabled{background-color:#fff;border-color:#ccc}.wpacu-btns .btn-secondary.active,.wpacu-btns .btn-secondary:active,.wpacu-btns .show>.btn-secondary.dropdown-toggle{color:#292b2c;background-color:#e6e6e6;background-image:none;border-color:#adadad}.wpacu-btns .btn-info{color:#fff;background-color:#5bc0de;border-color:#5bc0de}.wpacu-btns .btn-info:hover{color:#fff;background-color:#31b0d5;border-color:#2aabd2}.wpacu-btns .btn-info.focus,.wpacu-btns .btn-info:focus{-webkit-box-shadow:0 0 0 2px rgba(91,192,222,.5);box-shadow:0 0 0 2px rgba(91,192,222,.5)}.wpacu-btns .btn-info.disabled,.wpacu-btns .btn-info:disabled{background-color:#5bc0de;border-color:#5bc0de}.wpacu-btns .btn-info.active,.wpacu-btns .btn-info:active,.wpacu-btns .show>.btn-info.dropdown-toggle{color:#fff;background-color:#31b0d5;background-image:none;border-color:#2aabd2}.wpacu-btns .btn-success{color:#fff;background-color:#5cb85c;border-color:#5cb85c}.wpacu-btns .btn-success:hover{color:#fff;background-color:#449d44;border-color:#419641}.wpacu-btns .btn-success.focus,.wpacu-btns .btn-success:focus{-webkit-box-shadow:0 0 0 2px rgba(92,184,92,.5);box-shadow:0 0 0 2px rgba(92,184,92,.5)}.wpacu-btns .btn-success.disabled,.wpacu-btns .btn-success:disabled{background-color:#5cb85c;border-color:#5cb85c}.wpacu-btns .btn-success.active,.wpacu-btns .btn-success:active,.wpacu-btns .show>.btn-success.dropdown-toggle{color:#fff;background-color:#449d44;background-image:none;border-color:#419641}.wpacu-btns .btn-warning{color:#fff;background-color:#f0ad4e;border-color:#f0ad4e}.wpacu-btns .btn-warning:hover{color:#fff;background-color:#ec971f;border-color:#eb9316}.wpacu-btns .btn-warning.focus,.wpacu-btns .btn-warning:focus{-webkit-box-shadow:0 0 0 2px rgba(240,173,78,.5);box-shadow:0 0 0 2px rgba(240,173,78,.5)}.wpacu-btns .btn-warning.disabled,.wpacu-btns .btn-warning:disabled{background-color:#f0ad4e;border-color:#f0ad4e}.wpacu-btns .btn-warning.active,.wpacu-btns .btn-warning:active,.wpacu-btns .show>.btn-warning.dropdown-toggle{color:#fff;background-color:#ec971f;background-image:none;border-color:#eb9316}.wpacu-btns .btn-danger{color:#fff;background-color:#d9534f;border-color:#d9534f}.wpacu-btns .btn-danger:hover{color:#fff;background-color:#c9302c;border-color:#c12e2a}.wpacu-btns .btn-danger.focus,.wpacu-btns .btn-danger:focus{-webkit-box-shadow:0 0 0 2px rgba(217,83,79,.5);box-shadow:0 0 0 2px rgba(217,83,79,.5)}.wpacu-btns .btn-danger.disabled,.wpacu-btns .btn-danger:disabled{background-color:#d9534f;border-color:#d9534f}.wpacu-btns .btn-danger.active,.wpacu-btns .btn-danger:active,.wpacu-btns .show>.btn-danger.dropdown-toggle{color:#fff;background-color:#c9302c;background-image:none;border-color:#c12e2a}.wpacu-btns .btn-outline-primary{color:#0275d8;background-image:none;background-color:transparent;border-color:#0275d8}.wpacu-btns .btn-outline-primary:hover{color:#fff;background-color:#0275d8;border-color:#0275d8}.wpacu-btns .btn-outline-primary.focus,.wpacu-btns .btn-outline-primary:focus{-webkit-box-shadow:0 0 0 2px rgba(2,117,216,.5);box-shadow:0 0 0 2px rgba(2,117,216,.5)}.wpacu-btns .btn-outline-primary.disabled,.wpacu-btns .btn-outline-primary:disabled{color:#0275d8;background-color:transparent}.wpacu-btns .btn-outline-primary.active,.wpacu-btns .btn-outline-primary:active,.wpacu-btns .show>.btn-outline-primary.dropdown-toggle{color:#fff;background-color:#0275d8;border-color:#0275d8}.wpacu-btns .btn-outline-secondary{color:#ccc;background-image:none;background-color:transparent;border-color:#ccc}.wpacu-btns .btn-outline-secondary:hover{color:#fff;background-color:#ccc;border-color:#ccc}.wpacu-btns .btn-outline-secondary.focus,.wpacu-btns .btn-outline-secondary:focus{-webkit-box-shadow:0 0 0 2px rgba(204,204,204,.5);box-shadow:0 0 0 2px rgba(204,204,204,.5)}.wpacu-btns .btn-outline-secondary.disabled,.wpacu-btns .btn-outline-secondary:disabled{color:#ccc;background-color:transparent}.wpacu-btns .btn-outline-secondary.active,.wpacu-btns .btn-outline-secondary:active,.wpacu-btns .show>.btn-outline-secondary.dropdown-toggle{color:#fff;background-color:#ccc;border-color:#ccc}.wpacu-btns .btn-outline-info{color:#5bc0de;background-image:none;background-color:transparent;border-color:#5bc0de}.wpacu-btns .btn-outline-info:hover{color:#fff;background-color:#5bc0de;border-color:#5bc0de}.wpacu-btns .btn-outline-info.focus,.wpacu-btns .btn-outline-info:focus{-webkit-box-shadow:0 0 0 2px rgba(91,192,222,.5);box-shadow:0 0 0 2px rgba(91,192,222,.5)}.wpacu-btns .btn-outline-info.disabled,.wpacu-btns .btn-outline-info:disabled{color:#5bc0de;background-color:transparent}.wpacu-btns .btn-outline-info.active,.wpacu-btns .btn-outline-info:active,.wpacu-btns .show>.btn-outline-info.dropdown-toggle{color:#fff;background-color:#5bc0de;border-color:#5bc0de}.wpacu-btns .btn-outline-success{color:#5cb85c;background-image:none;background-color:transparent;border-color:#5cb85c}.wpacu-btns .btn-outline-success:hover{color:#fff;background-color:#5cb85c;border-color:#5cb85c}.wpacu-btns .btn-outline-success.focus,.wpacu-btns .btn-outline-success:focus{-webkit-box-shadow:0 0 0 2px rgba(92,184,92,.5);box-shadow:0 0 0 2px rgba(92,184,92,.5)}.wpacu-btns .btn-outline-success.disabled,.wpacu-btns .btn-outline-success:disabled{color:#5cb85c;background-color:transparent}.wpacu-btns .btn-outline-success.active,.wpacu-btns .btn-outline-success:active,.wpacu-btns .show>.btn-outline-success.dropdown-toggle{color:#fff;background-color:#5cb85c;border-color:#5cb85c}.wpacu-btns .btn-outline-warning{color:#f0ad4e;background-image:none;background-color:transparent;border-color:#f0ad4e}.wpacu-btns .btn-outline-warning:hover{color:#fff;background-color:#f0ad4e;border-color:#f0ad4e}.wpacu-btns .btn-outline-warning.focus,.wpacu-btns .btn-outline-warning:focus{-webkit-box-shadow:0 0 0 2px rgba(240,173,78,.5);box-shadow:0 0 0 2px rgba(240,173,78,.5)}.wpacu-btns .btn-outline-warning.disabled,.wpacu-btns .btn-outline-warning:disabled{color:#f0ad4e;background-color:transparent}.wpacu-btns .btn-outline-warning.active,.wpacu-btns .btn-outline-warning:active,.wpacu-btns .show>.btn-outline-warning.dropdown-toggle{color:#fff;background-color:#f0ad4e;border-color:#f0ad4e}.wpacu-btns .btn-outline-danger{color:#d9534f;background-image:none;background-color:transparent;border-color:#d9534f}.wpacu-btns .btn-outline-danger:hover{color:#fff;background-color:#d9534f;border-color:#d9534f}.wpacu-btns .btn-outline-danger.focus,.wpacu-btns .btn-outline-danger:focus{-webkit-box-shadow:0 0 0 2px rgba(217,83,79,.5);box-shadow:0 0 0 2px rgba(217,83,79,.5)}.wpacu-btns .btn-outline-danger.disabled,.wpacu-btns .btn-outline-danger:disabled{color:#d9534f;background-color:transparent}.wpacu-btns .btn-outline-danger.active,.wpacu-btns .btn-outline-danger:active,.wpacu-btns .show>.btn-outline-danger.dropdown-toggle{color:#fff;background-color:#d9534f;border-color:#d9534f}.wpacu-btns .btn-link{font-weight:400;color:#0275d8;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.wpacu-btns .btn-link,.wpacu-btns .btn-link.active,.wpacu-btns .btn-link:active,.wpacu-btns .btn-link:disabled{background-color:transparent}.wpacu-btns .btn-link,.wpacu-btns .btn-link:active,.wpacu-btns .btn-link:focus,.wpacu-btns .btn-link:hover{border-color:transparent}.wpacu-btns .btn-link:focus,.wpacu-btns .btn-link:hover{color:#014c8c;text-decoration:underline;background-color:transparent}.wpacu-btns .btn-link:disabled{color:#636c72}.wpacu-btns .btn-link:disabled:focus,.wpacu-btns .btn-link:disabled:hover{text-decoration:none}.wpacu-btns .btn-group-lg>.btn,.wpacu-btns .btn-lg{padding:.75rem 1.5rem;font-size:1.25rem;-webkit-border-radius:.3rem;-moz-border-radius:.3rem;border-radius:.3rem}.wpacu-btns .btn-group-sm>.btn,.wpacu-btns .btn-sm{padding:.25rem .5rem;font-size:.875rem;-webkit-border-radius:.2rem;-moz-border-radius:.2rem;border-radius:.2rem}.wpacu-btns .btn-block{display:block;width:100%}.wpacu-btns .btn-block+.btn-block{margin-top:.5rem}.wpacu-btns input[type=reset].btn-block,.wpacu-btns input[type=button].btn-block,.wpacu-btns input[type=submit].btn-block{width:100%}.wpacu-btns .fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.go-pro-button{background-color:#4CAF50;border:2px solid #4CAF50;color:#fff;padding:12px 18px;text-align:center;text-decoration:none;display:inline-block;font-size:16px;margin:4px 2px;cursor:pointer;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;-webkit-transition-duration:.4s;transition-duration:.4s}.go-pro-button:hover{background-color:#fff;color:#000;border:2px solid #4CAF50;text-decoration:none}.wpacu-restore-pos-btn{font-size:14px!important;line-height:normal!important;height:42px!important;padding:0 18px!important;margin-top:10px!important}body.wp-admin .wpacu_asset_row .go-pro-link-no-style .wpacu-tooltip{padding:8px 2px}body.wp-admin .go-pro-link-no-style .wpacu-tooltip{text-shadow:none;font-weight:400;font-size:12px;line-height:16px;padding:8px 11px}.go-pro-link-no-style .wpacu-tooltip,.wordpress-core-file .wpacu-tooltip{font-size:14px;line-height:18px;visibility:hidden;text-align:center;z-index:1}.go-pro-link-no-style{position:relative;display:inline-block;color:inherit;text-decoration:none}.go-pro-link-no-style:not(.nav-tab){font-style:italic}.go-pro-link-no-style.no-transition .wpacu-tooltip{-webkit-transition:0s all ease;transition:0s all ease;-webkit-transition-delay:0s;transition-delay:0s}.go-pro-link-no-style .wpacu-tooltip{position:absolute;width:160px;background-color:#00a7a7;color:#fff;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:.1s all ease;transition:.1s all ease;-webkit-transition-delay:0s;transition-delay:0s}.go-pro-link-no-style .wpacu-tooltip:after{content:"";position:absolute;border-width:10px;border-style:solid;top:100%;left:50%;left:calc(50% - 10px);border-color:#00a7a7 transparent transparent}.go-pro-link-no-style .wpacu-tooltip.wpacu-on-pages-btn{cursor:pointer;margin-left:-77px;width:130px}.go-pro-link-no-style .wpacu-tooltip.wpacu-larger{width:240px}.go-pro-link-no-style:hover .wpacu-tooltip{visibility:visible}.wpacu_list_table tr:first-child .wordpress-core-file .wpacu-tooltip{bottom:-40px;left:120px;margin-left:-86px}.wpacu_list_table tr:first-child .wordpress-core-file .wpacu-tooltip:after{top:41px;left:-20px;border-color:transparent #c00 transparent transparent}.wordpress-core-file{position:relative;display:inline-block;font-style:normal;color:inherit;text-decoration:none}.wordpress-core-file .wpacu-tooltip{position:absolute;width:160px;background-color:#c00;color:#fff;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:.1s all ease;transition:.1s all ease;-webkit-transition-delay:0s;transition-delay:0s}.wordpress-core-file .wpacu-tooltip:after{content:"";position:absolute;border-width:10px;border-style:solid;top:100%;left:50%;left:calc(50% - 10px);border-color:#c00 transparent transparent}.wordpress-core-file:hover .wpacu-tooltip{visibility:visible}.ajax-direct-call-error-area{background:#fff;padding:10px;border:1px solid #c00;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px}.ajax-direct-call-error-area td{padding:6px}.ajax-direct-call-error-area .note{margin-top:0;padding-top:0}.ajax-direct-call-error-area .error-code{color:#c00;font-weight:700}.ajax-wp-remote-post-call-error-area{background:#fff;padding:20px}.ajax-wp-remote-post-call-error-area .table-data{background:0 0;border:1px solid #c66;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.ajax-wp-remote-post-call-error-area .table-data td{padding:10px}.wrap-upgrade-info{background:#fff;padding:0 15px;border:1px solid #cdcdcd;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.wpacu-notice{margin:20px 20px 0 0!important}.wpacu-notice p{font-weight:600!important;font-style:italic}.wpacu-notice .dashicons{font-weight:inherit!important;color:#46b450!important;margin-right:4px;vertical-align:text-bottom;font-size:27px}.wpacu-notice-info{padding:12px 12px 12px 16px;background:#fff;border-left:4px solid #008f9c}.wpacu-notice-info p{margin-top:8px}.wpacu-notice-info p:first-child{margin-top:0}.wpacu-notice-info p:last-child{margin-bottom:0}.wpacu-warning{font-size:15px;padding:10px;background:#fffcec;border:1px solid #fdd5c9;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;margin:0 0 5px;width:100%}.pro-page-unlock-notice{-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;padding:10px;background:#f2faf2;border:1px solid #c0e8c0;width:auto;display:block}.wpacu-license-area .notice,.wpacu-settings-area .notice{margin-left:0;padding:10px!important;width:97%;box-sizing:border-box;font-weight:600;font-style:italic}.wpacu-license-area .notice .dashicons,.wpacu-settings-area .notice .dashicons{color:green}#wpacu-dom-get-type-selections,.wpacu-radio-selections{float:none;clear:both;width:auto;display:inline-block;margin-bottom:0;margin-top:0}#wpacu-dom-get-type-selections.wpacu-vertical,.wpacu-radio-selections.wpacu-vertical{display:block;margin-top:15px;margin-bottom:18px}#wpacu-dom-get-type-selections.wpacu-vertical li,.wpacu-radio-selections.wpacu-vertical li{float:none;margin-bottom:12px}#wpacu-dom-get-type-selections.wpacu-vertical li:last-child,.wpacu-radio-selections.wpacu-vertical li:last-child{margin-bottom:0}#wpacu-dom-get-type-selections li,.wpacu-radio-selections li{margin-right:30px;float:left;margin-bottom:0}#wpacu-dom-get-type-selections li:first-child,.wpacu-radio-selections li:first-child{margin-right:15px}#wpacu-dom-get-type-selections li:last-child,.wpacu-radio-selections li:last-child{margin-right:0}.wpacu_combine_loaded_js_level_area{display:none;background:0 0;border-left:2px solid #008f9c;padding-top:8px;padding-bottom:8px;padding-right:10px;padding-left:10px;margin:20px 0 15px}.wpacu_combine_loaded_js_level_area.wpacu_active{display:block}#wpacu-dom-get-type-infos{margin-bottom:0}#wpacu-dom-get-type-infos li{margin-bottom:0;line-height:20px}.wpacu-wrap small{width:auto;float:none;display:inline}.wpacu-wrap.wpacu-settings-show-all .wpacu-settings-tab-content{display:block;width:100%}.wpacu-wrap.wpacu-settings-show-all .wpacu-settings-area-title{color:#004567;padding:16px 15px;background:#f8f8f8;border-left:5px solid #004567b0;border-top:1px solid #e7e7e7;border-right:1px solid #e7e7e7;border-bottom:1px solid #e7e7e7;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;font-size:1.45em;font-weight:500}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch .wpacu_slider.wpacu_round,.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch .wpacu_slider.wpacu_round{border-radius:29px}.wpacu-wrap.wpacu-settings-show-all #wpacu-update-button-area{margin:0}.wpacu-wrap.wpacu-settings-show-all #wpacu-update-button-area .button{padding:11px 28px;height:auto;font-size:18px}.wpacu-wrap.wpacu-settings-show-all #wpacu-updating-settings{margin-left:224px;top:25px}.wpacu-wrap.wpacu-switch-standard .asset-cleanup-pro_page_wpassetcleanup_settings .wpacu_switch,.wpacu-wrap.wpacu-switch-standard .asset-cleanup_page_wpassetcleanup_settings .wpacu_switch{width:auto;height:auto}.wpacu-wrap.wpacu-switch-standard .asset-cleanup-pro_page_wpassetcleanup_settings .wpacu_switch input,.wpacu-wrap.wpacu-switch-standard .asset-cleanup_page_wpassetcleanup_settings .wpacu_switch input{display:block}.wpacu-wrap.wpacu-switch-standard .asset-cleanup-pro_page_wpassetcleanup_settings .wpacu_switch input[type=checkbox],.wpacu-wrap.wpacu-switch-standard .asset-cleanup_page_wpassetcleanup_settings .wpacu_switch input[type=checkbox]{margin:0 0 3px}.wpacu-wrap.wpacu-switch-standard .asset-cleanup-pro_page_wpassetcleanup_settings .wpacu_switch .wpacu_slider,.wpacu-wrap.wpacu-switch-standard .asset-cleanup_page_wpassetcleanup_settings .wpacu_switch .wpacu_slider{display:none}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch{position:relative;display:inline-block;width:52px;height:29px}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch input{display:none}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch:not(.wpacu_switch_standard) .wpacu_slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.2s;transition:.2s}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch:not(.wpacu_switch_standard) .wpacu_slider:before{position:absolute;content:'';height:22px;width:22px;left:4px;bottom:4px;background-color:#fff;-webkit-transition:.2s;transition:.2s}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch input:checked+.wpacu_slider{background-color:#52af00}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch input:focus+.wpacu_slider{box-shadow:0 0 1px #52af00}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch input:checked+.wpacu_slider:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch .wpacu_slider.wpacu_round:before{border-radius:50%}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch.wpacu_locked_for_pro{opacity:.3}.asset-cleanup-pro_page_wpassetcleanup_settings .setting_title p.wpacu_subtitle,.asset-cleanup_page_wpassetcleanup_settings .setting_title p.wpacu_subtitle{margin-top:4px;line-height:1.4}.asset-cleanup-pro_page_wpassetcleanup_settings .setting_title p.wpacu_subtitle em,.asset-cleanup_page_wpassetcleanup_settings .setting_title p.wpacu_subtitle em{font-weight:200}.asset-cleanup-pro_page_wpassetcleanup_settings .setting_title p.wpacu_read_more,.asset-cleanup_page_wpassetcleanup_settings .setting_title p.wpacu_read_more{margin-top:-10px;font-style:italic;font-size:12px}.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_inline_code_status_choices,.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices,.asset-cleanup-pro_page_wpassetcleanup_settings .input_style_choices,.asset-cleanup_page_wpassetcleanup_settings .assets_list_inline_code_status_choices,.asset-cleanup_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices,.asset-cleanup_page_wpassetcleanup_settings .input_style_choices{list-style:none;margin:0}.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_inline_code_status_choices li,.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices li,.asset-cleanup-pro_page_wpassetcleanup_settings .input_style_choices li,.asset-cleanup_page_wpassetcleanup_settings .assets_list_inline_code_status_choices li,.asset-cleanup_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices li,.asset-cleanup_page_wpassetcleanup_settings .input_style_choices li{float:left;margin-right:30px}.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_inline_code_status_choices li:last-child,.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices li:last-child,.asset-cleanup-pro_page_wpassetcleanup_settings .input_style_choices li:last-child,.asset-cleanup_page_wpassetcleanup_settings .assets_list_inline_code_status_choices li:last-child,.asset-cleanup_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices li:last-child,.asset-cleanup_page_wpassetcleanup_settings .input_style_choices li:last-child{margin-right:0}#wpacu-assets-list-by-location-selected{background:0 0;border:1px solid #e7e7e7;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;padding:8px;clear:both}.notice.notice-success+.wpacu-wrap.wpacu-settings-area{margin-top:20px}.wpacu-form-table th{vertical-align:top;text-align:left;padding:5px 20px 20px 0;width:200px;line-height:1.3;font-weight:600}.wpacu-form-table th label{color:#23282d;font-weight:600;font-size:14px;text-shadow:none;vertical-align:middle;cursor:pointer}.wpacu-form-table td{padding-bottom:25px}.wpacu-form-table td:last-child p:last-child{margin:0}.wpacu-form-table label input[type=checkbox]{height:19px;width:20px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.wpacu-form-table label input[type=checkbox]:checked,.wpacu-form-table label input[type=checkbox]:hover{border:1px solid green}.wpacu-form-table label input[type=checkbox]:checked:before{color:#52af00;font:400 24px/1 dashicons}#wpacu-settings-vertical-tab-wrap{display:table;width:100%}#wpacu-settings-vertical-tab-wrap *{box-sizing:border-box}.wpacu-settings-tab{display:table-cell;width:19%;height:100%;vertical-align:top}.wpacu-settings-tab a{text-decoration:none;border-left:3px solid transparent;display:block;background-color:#f1f1f1;color:#004567;padding:17px 16px;width:100%;outline:0;text-align:left;cursor:pointer;font-size:14px;font-weight:600;border-bottom:1px solid #ccc}.wpacu-settings-tab a:first-child{border-top:1px solid transparent!important}.wpacu-settings-tab a:last-child{border-bottom:1px solid transparent!important}.wpacu-settings-tab a:hover{background-color:#fff;border-left:3px solid #004567;position:relative}.wpacu-settings-tab a.active{color:#004567;background-color:#fff;border-left:3px solid #004567;position:relative;border-bottom:1px solid #ccc}.wpacu-settings-tab a.active:after{content:'';position:absolute;height:100%;width:1px;top:0;right:-1px;background-color:#fff}.wpacu-settings-tab-content{background-color:#fff;display:none;padding:12px 18px;width:79%;border-left:none;height:100%;border-top-right-radius:10px;border-bottom-right-radius:10px}.wpacu-settings-tab-content h2{padding:0 0 15px;border-bottom:1px solid #e7e7e7}.wpacu-settings-tab-content.active{display:table-cell}#wpacu_minify_css_exceptions_area,#wpacu_minify_js_exceptions_area{margin:16px 0 0}#wpacu-update-button-area{position:relative;margin-left:19%}#wpacu-update-button-area.no-left-margin{margin-left:0}#wpacu-update-button-area p{margin-top:10px}#wpacu-update-button-area .button{padding:5px 18px;height:38px;font-size:15px}#wpacu-updating-settings{position:absolute;margin-left:183px;top:19px;display:none}#combine_loaded_js_info_area{position:relative}#combine_loaded_js_info_area.locked-for-pro:before{position:absolute;content:'';height:100%;width:100%;background:#fff;opacity:.5;z-index:10000}.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;min-width:52px;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:.15s;transition:.15s}.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:.15s;transition:.15s}.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:before{border-radius:50%}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_slider_text{position:absolute;left:62px;top:3px}.wpacu_asset_row input{height:auto;min-height:16px}.wpacu_asset_row td{width:100%;text-align:left}.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{display:table;content:''}.wpacu-contract-expand-area{width:100%;margin:20px 0 0}.wpacu-contract-expand-area .col-left{float:left}.wpacu-contract-expand-area .col-left h4{margin-bottom:0}.wpacu-contract-expand-area .col-right{float:right}.wpacu-clearfix:after{clear:both}.wpacu-wp-button{color:#555;border-color:#ccc;background:#f7f7f7;box-shadow:0 1px 0 #ccc;vertical-align:top}body.wp-admin .wpacu-wp-button{font-size:13px;line-height:26px;height:28px}.wpacu-wp-button.wpacu-wp-button-secondary{display:inline-block;text-decoration:none;height:auto;margin:0 5px 0 0;padding:0 10px 1px;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;border-radius:3px;white-space:nowrap;box-sizing:border-box}.wpacu-wp-button:hover{background:#fafafa;border-color:#999;color:#23282d}.distinguish-asset-list{list-style:none;margin-left:0;margin-bottom:5px;display:inline-block}.distinguish-asset-list li{float:left;margin-right:20px}.distinguish-asset-list li:last-child{margin-right:0}body[class*=asset-cleanup-pro] a.wpacu-plugin-contracted-wrap-link{padding:16px 6px 16px 41px!important}body[class*=asset-cleanup-pro] .wpacu-area-open .wpacu-plugin-toggle-all{font-size:12px!important;width:calc(100% - 26px)!important}body.wp-admin .wpacu-area-expanded .wpacu-plugin-toggle-all{top:5px}body.wp-admin .wpacu-area-expanded .wpacu-plugin-toggle-all ul li{font-size:12px!important}.wpacu-assets-collapsible-wrap{border:1px solid #cdcdcd}.wpacu-assets-collapsible-wrap.wpacu-by-location{margin-bottom:15px}.wpacu-assets-collapsible-wrap.wpacu-wrap-all,.wpacu-assets-collapsible-wrap.wpacu-wrap-styles{margin-top:20px}.wpacu-assets-collapsible-wrap.wpacu-wrap-scripts{margin-top:10px}.wpacu-assets-collapsible-wrap.wpacu-by-location>a.wpacu-assets-collapsible{padding:15px 15px 15px 43px}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu_list_table{border-width:0;margin:0;border-spacing:inherit;width:100%;box-shadow:3px 3px 2px #ddd;border-bottom-right-radius:5px;border-top-right-radius:5px}.wpacu-assets-collapsible-wrap.wpacu-by-location span.wpacu-child-location-name{font-weight:600}.wpacu-assets-collapsible-wrap.wpacu-by-location span.wpacu-child-location-version{font-weight:200}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-location-child-area[data-wpacu-plugin=oxygen] .icon-area{border-radius:50%}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-location-child-area .wpacu-plugin-toggle-all{display:inline-block;padding:0;font-size:13px;width:100%;width:calc(100% + 46px);min-width:250px;position:absolute;left:100%;left:calc(100% + 6px);margin:0;top:4px}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-location-child-area .wpacu-plugin-toggle-all ul{display:inline-block;margin:0;list-style:none;padding-left:13px;padding-top:0}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-location-child-area .wpacu-plugin-toggle-all ul li{padding:0;margin:0;line-height:normal;font-size:14px}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-location-child-area .wpacu-plugin-toggle-all ul li:first-child{font-style:italic;margin-bottom:5px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-themes .wpacu-assets-collapsible-content>table:last-child{margin-bottom:20px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-themes .wpacu-assets-collapsible-content .wpacu-location-child-area .wpacu-area-title{display:inline;position:relative;z-index:1}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-themes .wpacu-assets-collapsible-content .wpacu-location-child-area .wpacu-area-title:after{content:'';position:absolute;width:100%;left:0;bottom:0;height:1px;background-color:#fdfdfd}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content .wpacu-plugin-assets-wrap{padding:0 0 10px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content .wpacu-plugin-assets-wrap.wpacu-area-open .wpacu-plugin-toggle-all{display:inline-block;padding:7px 12px 16px;font-size:14px;width:100%;text-align:left;border-left:1px solid #cdcdcd;border-right:1px solid #cdcdcd}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content .wpacu-plugin-assets-wrap.wpacu-area-open.wpacu-plugin-assets-last{margin-bottom:18px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link{color:inherit;text-decoration:none;font-weight:inherit;font-style:inherit;font-size:105%;line-height:initial;height:auto;margin:14px 0 0;padding:13px 6px 14px 39px;position:relative;display:block}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link:after{position:absolute;font-size:18px;font-family:Dashicons;right:12px;top:14px;content:"\f132"}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link.wpacu-link-open:after{content:"\f460"}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link.wpacu-link-closed{border:1px solid #cdcdcd}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link:hover{border:1px solid #878787;background:#f9f9f9}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link:hover.wpacu-link-closed{box-shadow:3px 3px 2px #ddd}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link.wpacu-link-open{border-top:1px solid #cdcdcd;border-left:1px solid #cdcdcd;border-right:1px solid #cdcdcd;border-bottom:none}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link.wpacu-link-closed.wpacu-last-wrap-link{margin-bottom:20px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link .icon-plugin-default{top:10px;left:10px;width:30px;height:30px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link .icon-plugin-default .icon-area{width:30px;height:30px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link .icon-plugin-default .icon-area:before{font-size:22px;line-height:22px;top:4px;left:5px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link .wpacu-area-title{position:relative;padding:17px 10px 16px 46px;z-index:1}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link .wpacu-area-title:after{content:'';position:absolute;width:100%;left:0;bottom:0;height:1px;background-color:#fdfdfd}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link.wpacu-area-last{margin-bottom:18px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content .wpacu-area-open{padding:0;max-height:100%}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content .wpacu-area-closed{padding:0;overflow:hidden;max-height:0}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content>table:last-child{margin-bottom:20px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-themes .wpacu-assets-collapsible-content .wpacu-location-child-area .wpacu-area-title{margin-top:0;margin-bottom:-1px;padding:14px 10px 16px 12px!important}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-themes .wpacu-assets-collapsible-content .wpacu-location-child-area .wpacu-area-title.wpacu-theme-has-icon{padding:18px 10px 16px 58px!important}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-assets-collapsible-content .wpacu-location-child-area{margin-top:22px;margin-bottom:-1px;font-size:110%;line-height:initial}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-assets-collapsible-content .wpacu-location-child-area.wpacu-location-child-area-first{margin-top:2px}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-assets-collapsible-content .wpacu-location-child-area.wpacu-area-expanded .wpacu-area-title{display:inline-block;z-index:1;padding:17px 10px 16px 46px}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-assets-collapsible-content .wpacu-location-child-area .wpacu-area-title{display:inline;border-top-right-radius:8px;border-top-left-radius:8px;background-color:#f9f9f9;border-left:1px solid #cdcdcd;border-top:1px solid #cdcdcd;border-bottom:1px solid transparent;border-right:1px solid #cdcdcd;position:relative}.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-plugin-default{position:absolute;padding:0;top:10px;left:10px;width:37px;height:37px}.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-plugin-default:not(.has-icon){color:#b4b9be;background-color:#eee;box-shadow:inset 0 0 10px rgba(160,165,170,.15);-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-plugin-default:not(.has-icon) .icon-area:before{content:"\f106";font-family:Dashicons;position:absolute;font-size:28px;line-height:28px;top:5px;left:5px}.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-plugin-default .icon-area{position:relative;width:37px;height:37px}.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-theme{position:absolute;padding:0;top:10px;left:10px;width:37px;height:37px}.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-theme .icon-area{position:relative;width:37px;height:37px}.wpacu-assets-collapsible-wrap.wpacu-wp_core{border:1px solid #c00}.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content,.wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content{padding:0}.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content .wpacu_list_table,.wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content .wpacu_list_table{width:100%;margin:0}.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row td,.wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row td{border-left:hidden;border-right:hidden;border-bottom:1px solid #cdcdcd}.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row:last-child,.wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row:last-child{margin-bottom:0!important}.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row:last-child td:last-child,.wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row:last-child td:last-child{border-bottom:hidden}a.wpacu-assets-collapsible{color:#000;font-size:20px;text-decoration:none;display:block;position:relative;background-color:#f1f3f8;cursor:pointer;padding:15px 15px 15px 36px;width:auto;border:none;text-align:left;outline:0}a.wpacu-assets-collapsible>span.dashicons{font-size:25px;line-height:normal;position:absolute;top:15px;top:calc(50% - 21px);left:22px;-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}a.wpacu-assets-collapsible:hover{background-color:#f1f3f8;text-decoration:none}a.wpacu-assets-collapsible:after{position:absolute;font-size:22px;font-family:Dashicons;right:14px;top:16px}a.wpacu-assets-collapsible:not(.wpacu-assets-collapsible-active):after{content:"\f132"}a.wpacu-assets-collapsible.wpacu-assets-collapsible-active{background-color:#f1f3f8}a.wpacu-assets-collapsible.wpacu-assets-collapsible-active:after{content:"\f460"}.wpacu-assets-collapsible-content{padding:0 16px;max-height:0;overflow:hidden;background-color:#fbfbfb8c}.wpacu-assets-collapsible-content .wpacu-assets-note{margin:0;padding:15px 15px 10px}.wpacu-assets-collapsible-content>div:not(.wpacu-assets-table-list-wrap){padding:16px 0 0}.wpacu-assets-collapsible-content>div>p:first-child{margin-top:0}.wpacu-assets-collapsible-content.wpacu-open{max-height:100%}a.wpacu-assets-inline-code-collapsible{color:inherit;font-size:14px;text-decoration:none;display:inline-block;position:relative;cursor:pointer;width:auto;outline:0;background:#f1f3f8;border:1px solid #cdcdcd;padding:4px 21px 4px 8px;margin:0 0 0 6px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}a.wpacu-assets-inline-code-collapsible:hover{border:1px solid #5c5c5c}a.wpacu-assets-inline-code-collapsible:after{position:absolute;font-size:15px;font-family:Dashicons;right:-3px;top:-1px;height:14px;width:14px;-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}a.wpacu-assets-inline-code-collapsible:not(.wpacu-assets-inline-code-collapsible-active):after{content:"\f132"}a.wpacu-assets-inline-code-collapsible.wpacu-assets-inline-code-collapsible-active:after{content:"\f460"}.wpacu-assets-inline-code-collapsible-content{font-size:80%;padding:0 8px;max-height:0;overflow:hidden;background-color:#fbfbfb8c}.wpacu-assets-inline-code-collapsible-content>div{padding:7px 8px 0}.wpacu-assets-inline-code-collapsible-content>div>p{line-height:normal!important}.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-wrap-choose-position,.wpacu-wrap-choose-position>div{display:inline}.wpacu-wrap-choose-position select{width:auto;font-size:inherit;display:inline;margin-left:6px;margin-right:4px}.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}.wp-list-table .wpacu_remove_global_attr_row.wpacu_selected,.wp-list-table .wpacu_restore_position_row.wpacu_selected{background:#e7e7e7}ul.hire-reasons{margin-bottom:20px}ul.hire-reasons li{font-size:14px;line-height:22px;margin-bottom:12px}ul.hire-reasons li .dashicons{font-size:23px;line-height:23px}ul.hire-reasons li .dashicons.dashicons-yes{color:green}ol.getting-started li{font-size:14px;line-height:22px;margin-bottom:8px}.wpacu-get-help-wrap p{font-size:14px}.wpacu-get-help-wrap .help-content-wrap{margin:20px 0 25px;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-moz-flex;display:-webkit-flex;display:flex;width:100%}@media only screen and (min-width:768px){.wpacu-get-help-wrap .help-content-wrap{-webkit-box-align:start;-ms-flex-align:start;-ms-grid-row-align:flex-start;align-items:flex-start}}@media only screen and (max-width:767px){.wpacu-get-help-wrap .help-content-wrap{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}}.wpacu-get-help-wrap .help-content-wrap .help-content{padding:15px;background:#fff;border:1px solid #E0E0E0;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;box-shadow:2px 3px 8px 0 #231f2038;flex:1 1 50%;margin-bottom:10px}.wpacu-get-help-wrap .help-content-wrap .help-content .content-title{margin:5px 0 15px}.wpacu-get-help-wrap .help-content-wrap .help-content .cols-wrap{width:100%;margin:0 auto;display:table}.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area{margin:5px 0 0;position:relative}.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area.col-left{float:left;width:48%}.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area.col-right{float:right;width:48%}.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area.activate-plugin img{max-width:280px}.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area img{width:99%;margin:8px 0;border:1px solid #cdcdcd;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.wpacu-get-help-wrap .help-content-wrap .help-content.upgrade-help{order:2}@media only screen and (min-width:768px){.wpacu-get-help-wrap .help-content-wrap .help-content{margin-right:24px}.wpacu-get-help-wrap .help-content-wrap .help-content.upgrade-help{margin-right:0}}.wpacu-get-help-wrap .help-content-wrap .help-content.tech-help{order:1}@media only screen and (max-width:767px){.wpacu-get-help-wrap .help-content-wrap .help-content.tech-help{margin-bottom:30px}}.wpacu-get-help-wrap .help-content-wrap .help-content ul{list-style:none;padding-left:0}.wpacu-get-help-wrap .help-content-wrap .help-content ul li{font-size:14px;line-height:22px;margin-bottom:15px}.wpacu-get-help-wrap .help-content-wrap .help-content p:last-child,.wpacu-get-help-wrap .help-content-wrap .help-content ul li:last-child{margin-bottom:0}#wpacu-license-data-remove-area{display:none;margin:10px 0 25px}#wpacu-license-data-remove-area.wpacu-visible{display:block}span#wpacu-license-data-removed-msg{display:block;padding-left:26px}#wpacu-warning-read{display:none;margin:10px 0}#wpacu-warning-read span.dashicons-warning{color:#c00}#wpacu-warning-read.wpacu-visible{display:block}#wpacu-reset-submit-area{margin:10px 0;clear:both}#wpacu-reset-submit-btn{margin:10px 0 0}.wpacu-tools-area{margin:10px 20px 0 2px}.wpacu-tools-area .wpacu-tools-container{background:#fff;padding:15px;border:1px solid #cdcdcd;width:96%}.wpacu-tools-area .wpacu-tools-container form>div:first-child{margin:0 0 10px}.wpacu-tools-area .wpacu-tools-container form .wpacu-warning{display:none;box-sizing:border-box;margin-top:10px}.wpacu-tools-area .wpacu-tools-container form .wpacu-warning p{margin:0 0 10px;line-height:22px}.wpacu-tools-area .wpacu-tools-container form .wpacu-warning p:only-child{margin:0}.wpacu-tools-area .wpacu-tools-container form .wpacu-warning ul{font-size:13px;list-style-type:disc;padding-left:30px}.wpacu-tools-area .wpacu-tools-container form .wpacu-warning.wpacu-visible{display:block}.wpacu-about-wrap .wpacu-about-text img{width:auto;height:150px;position:absolute;top:20px;right:-20px}@media only screen and (max-width:767px){.wpacu-about-wrap h1{margin:20px}.wpacu-about-wrap .wpacu-about-text img{display:none}.wpacu-about-wrap .wpacu-about-text{margin:20px}}.wpacu-about-wrap .about-wrap-content .area-title{font-size:19px;line-height:19px;margin-bottom:0}.wpacu-about-wrap hr{margin:10px 0}.wpacu-lite-vs-pro-wrap ul{display:flex;top:0;z-index:10;padding-bottom:14px}.wpacu-lite-vs-pro-wrap li{list-style:none;flex:1}.wpacu-lite-vs-pro-wrap li:last-child{border-right:1px solid #DDD}.wpacu-lite-vs-pro-wrap button{width:100%;border:1px solid #DDD;border-right:0;border-top:0;padding:10px;background:#FFF;font-size:14px;font-weight:700;height:60px;color:#999}.wpacu-lite-vs-pro-wrap li.active button{background:#F5F5F5;color:#000}.wpacu-lite-vs-pro-wrap table{border-collapse:collapse;table-layout:fixed;width:100%}.wpacu-lite-vs-pro-wrap th{background:inherit}.wpacu-lite-vs-pro-wrap tr.first{background:inherit;font-size:18px}.wpacu-lite-vs-pro-wrap tr.first .bg-lite{border-top:4px solid #6d6e70;background:#fff;color:#6d6e70}.wpacu-lite-vs-pro-wrap tr.first .bg-pro{border-top:4px solid green;background:#fff;color:green}.wpacu-lite-vs-pro-wrap tr:not(.first){background:#fff}.wpacu-lite-vs-pro-wrap tr:not(:last-child):hover{background:#f8f8f8}.wpacu-lite-vs-pro-wrap td,.wpacu-lite-vs-pro-wrap th{height:53px;border:1px solid #DDD;padding:10px 16px;empty-cells:show;text-align:left}@media only screen and (max-width:767px){.wpacu-lite-vs-pro-wrap td,.wpacu-lite-vs-pro-wrap th{font-size:14px}}.wpacu-lite-vs-pro-wrap td+td,.wpacu-lite-vs-pro-wrap th+th{text-align:center;display:none}.wpacu-lite-vs-pro-wrap td.default{display:table-cell}.wpacu-lite-vs-pro-wrap .txt-l{font-size:28px;font-weight:700}.wpacu-lite-vs-pro-wrap .txt-top{position:relative;top:-9px;left:-2px}.wpacu-lite-vs-pro-wrap svg{width:18px;height:18px}.wpacu-lite-vs-pro-wrap svg path{fill:green}.wpacu-lite-vs-pro-wrap .tick{color:#2CA01C}.wpacu-lite-vs-pro-wrap .tick img{fill:#2CA01C}@media only screen and (max-width:767px){.wpacu-lite-vs-pro-wrap .txt-l{font-size:20px}.wpacu-lite-vs-pro-wrap .tick{font-size:15px}}.wpacu-lite-vs-pro-wrap .na{font-size:18px;opacity:.3;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)"}.wpacu-lite-vs-pro-wrap .hide{border:0;background:0 0}.wpacu-lite-vs-pro-wrap td,.wpacu-lite-vs-pro-wrap th{display:table-cell!important;width:auto}.wpacu-lite-vs-pro-wrap td+td,.wpacu-lite-vs-pro-wrap th+th{width:130px}@media only screen and (max-width:767px){.wpacu-lite-vs-pro-wrap .na{font-size:15px}.wpacu-lite-vs-pro-wrap td+td,.wpacu-lite-vs-pro-wrap th+th{width:42px}}@media only screen and (min-width:768px){.wpacu-lite-vs-pro-wrap td .button{font-size:16px!important}}@media only screen and (max-width:767px){.wpacu-lite-vs-pro-wrap td .button{font-size:14px!important;padding:0 20px!important}.wpacu-lite-vs-pro-wrap td .button.button-primary{margin-top:6px;margin-bottom:14px}}@media only screen and (min-width:768px){.wpacu-lite-vs-pro-wrap{margin-bottom:40px;clear:both}}.wpacu-video-areas>div{padding:20px;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.wpacu-video-areas>div:nth-child(odd){background:#fff}.wpacu-video-areas>div:nth-child(even){background:inherit}@media only screen and (min-width:1200px){.wpacu-video-areas .wpacu-video-area-wrapper{margin:0 0 15px;display:flex}.wpacu-video-areas .wpacu-video-area-wrapper .wpacu-col-right{padding:0 20px 0 25px}}@media only screen and (min-width:992px) and (max-width:1199px){.wpacu-video-areas .wpacu-video-area-wrapper{margin:0 0 40px}}.wpacu-video-areas .wpacu-video-area-wrapper ol{font-size:14px}.wpacu-video-areas .wpacu-video-area-wrapper ul{font-size:14px;list-style:disc;margin-left:22px}@media only screen and (min-width:1200px){.wpacu-video-areas .wpacu-video-area-wrapper .wpacu-col-right p:first-child{margin-top:0}.wpacu-video-areas .wpacu-video-area-wrapper .wpacu-col-right p:last-child{margin-bottom:0}}@media only screen and (max-width:1199px){.wpacu-video-areas .wpacu-video-area-wrapper .wpacu-video-wrapper{position:relative;padding-bottom:56.25%;padding-top:30px;height:0;overflow:hidden}.wpacu-video-areas .wpacu-video-area-wrapper .wpacu-video-wrapper iframe{position:absolute;top:0;left:0;width:100%;height:100%}}#wpassetcleanup_asset_list.postbox h2{padding-left:52px!important;position:relative}#wpassetcleanup_asset_list.postbox h2:before{content:'';position:absolute;background-image:url(images/wpacu-logo-transparent-bg-v1.png);background-size:cover;top:6px;left:13px;width:33px;height:26px;opacity:.8;-webkit-filter:grayscale(100%);filter:grayscale(100%)}body.wp-admin .wpacu-modal{display:none;position:fixed;z-index:1000000;padding-top:15%;left:0;top:0;width:100%;height:100%;overflow:auto;background-color:#000;background-color:rgba(0,0,0,.4)}body.wp-admin .wpacu-modal-content{background-color:#fefefe;margin:auto;padding:20px;border:1px solid #888;width:80%;max-width:600px;border-radius:10px}body.wp-admin .wpacu-close{color:#aaa;float:right;font-size:28px;font-weight:700}body.wp-admin .wpacu-close:focus,body.wp-admin .wpacu-close:hover{color:#000;text-decoration:none;cursor:pointer}.wpacu-bulk-changes-tabs{display:table;position:relative;overflow:hidden;margin:0;width:100%}.wpacu-bulk-changes-tabs li{border-top:1px solid rgba(40,44,42,.1);border-left:1px solid rgba(40,44,42,.1);border-bottom:1px solid rgba(40,44,42,.1);float:left;line-height:38px;padding:0;position:relative;margin-bottom:12px}.wpacu-bulk-changes-tabs li:last-child{border-right:1px solid rgba(40,44,42,.1)}.wpacu-bulk-changes-tabs a{position:relative;background:rgba(40,44,42,.05);color:#004567;font-size:14px;font-weight:500;display:block;letter-spacing:0;outline:0;padding:6px 20px;text-decoration:none;border-top:3px solid transparent}.wpacu-bulk-changes-tabs a:hover{background:#f1f1f1;border-top:3px solid transparent}.wpacu-bulk-changes-tabs .current a{background:#fff;border-top:3px solid #004567}.wpacu-bulk-changes-tabs .current a:hover{background:#fff}.wpacu-bulk-changes-tabs .current a:after,.wpacu-bulk-changes-tabs .current a:before{top:100%;left:50%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.wpacu-bulk-changes-tabs .current a:after{border-color:rgba(136,183,213,0);border-top-color:#fff;border-width:12px;margin-left:-12px}.wpacu-bulk-changes-tabs .current a:before{border-color:rgba(194,225,245,0);border-top-color:rgba(40,44,42,.1);border-width:13px;margin-left:-13px}
|
1 |
+
#wpacu-pages-info-area{width:98%}#wpacu-top-area{margin:15px 0;padding:0 10px}#wpacu-quick-actions{color:#74777b;float:right;width:auto;margin-right:30px;background:rgba(40,44,42,.05);border-radius:10px;padding:6px 12px}#wpacu-quick-actions .wpacu-actions-title{font-weight:200;letter-spacing:.5px}#wpacu-quick-actions a{color:#004567;text-decoration:none}#wpacu-quick-actions a:hover{color:#0073aa}#wpacu-logo-wrap{width:auto;display:inline-block;position:relative}#wpacu-logo-wrap a{display:block}#wpacu-logo-wrap img{width:352px;height:79px}#wpacu-logo-wrap .wpacu-pro-sign{position:absolute;height:auto;font-family:FiraSans-Medium,proxima-nova-1,Montserrat,Helvetica,sans-serif;font-size:13px;font-weight:600;letter-spacing:1px;padding:5px 11px;border-radius:15px;right:-60px;top:30px;width:auto;display:inline-block;text-align:center}#wpacu-logo-wrap .wpacu-pro-sign.wpacu-lite{color:#74777b;background:rgba(40,44,42,.05)}#wpacu-logo-wrap .wpacu-pro-sign.wpacu-pro{color:#004567;background-color:rgba(40,44,42,.05)}#wpacu_meta_box_content .dashicons.dashicons-warning,.wpacu-tabs nav ul li span.license-status.inactive{color:#c00}.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-license-area .notice .dashicons,.wpacu-settings-area .notice .dashicons,.wpacu-tabs nav ul li span.license-status.active{color:green}.wpacu-tabs nav a{position:relative;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:2.5}.wpacu-tabs nav a span{vertical-align:middle;font-size:14px}.wpacu-tabs nav li.wpacu-tab-current a{color:#74777b}.wpacu-tabs nav a:focus{outline:0}.wpacu-tabs .dashicons{font-size:20px}.no-js .wpacu-content-wrap section{display:block;padding-bottom:2em;border-bottom:1px solid rgba(255,255,255,.6)}.no-flexbox nav ul{display:block}.no-flexbox nav ul li{min-width:15%;display:inline-block}@media screen and (max-width:58em){.wpacu-tabs nav a.icon span{display:none}.wpacu-tabs nav a:before{margin-right:0}}.wpacu-tabs-style-underline nav{background:#fff}.wpacu-tabs-style-underline nav a{color:#74777b;font-size:18px;text-transform:uppercase;text-decoration:none;padding:.25em 0 .5em;border-left:1px solid #e7ecea;-webkit-transition:color .2s;transition:color .2s}.wpacu-tabs-style-underline nav li:last-child a{border-right:1px solid #e7ecea}.wpacu-tabs-style-underline nav li a::after{position:absolute;bottom:0;left:0;width:100%;height:6px;background:#2CC185;content:'';-webkit-transition:-webkit-transform .3s;transition:transform .3s;-webkit-transform:translate3d(0,150%,0);transform:translate3d(0,150%,0)}.wpacu-tabs-style-underline nav li.wpacu-tab-current a::after{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.wpacu-tabs-style-underline nav a span{font-weight:700}.wpacu-tabs-style-topline{max-width:1200px;margin:20px auto 30px 0;width:100%;font-weight:300;text-decoration:none}.wpacu-tabs-style-topline nav li{border:1px solid rgba(40,44,42,.1)}.wpacu-tabs-style-topline nav li:not(:last-child){border-right:none}.wpacu-tabs-style-topline nav li.wpacu-tab-current{border-top-color:#008f9c;border-bottom:none}.wpacu-tabs-style-topline nav a{padding:20px 18px;background:rgba(40,44,42,.05);color:#74777b;line-height:1;-webkit-transition:color .2s;transition:color .2s;text-decoration:none}.wpacu-tabs-style-topline nav a:focus,.wpacu-tabs-style-topline nav a:hover{background:0 0;color:#008f9c}.wpacu-tabs-style-topline nav li.wpacu-tab-current a{background:0 0;box-shadow:inset 0 3px 0 #008f9c;color:#008f9c}.wpacu-tabs-style-topline nav li.wpacu-tab-current a span:not(.dashicons){font-weight:600}.wpacu-tabs-style-topline nav a span{text-transform:uppercase;font-weight:400}.wpacu-tab-nav-wrapper{border-bottom:none!important}.wpacu-tab-nav-wrapper .nav-tab.nav-tab-active{background:#fff;position:relative}.wpacu-tab-nav-wrapper .nav-tab.nav-tab-active:after{content:'';width:100%;bottom:-2px;left:0;position:absolute;border-bottom:2px solid #fff}.wpacu-script-attributes-area{margin:20px 0 0!important}.wpacu-script-attributes-area.wpacu-lite ul.wpacu-script-attributes-settings{padding:5px 7px!important}.wpacu-script-attributes-area.wpacu-lite ul.wpacu-script-attributes-settings.wpacu-first{margin:0 28px 0 0!important}.wpacu-script-attributes-area.wpacu-lite ul.wpacu-script-attributes-settings label{margin:0!important}.wpacu-script-attributes-area.wpacu-lite ul.wpacu-script-attributes-settings li{margin:0 16px 0 0!important}.wpacu-script-attributes-area.wpacu-lite ul.wpacu-script-attributes-settings li:first-child{margin:0 10px 0 0!important}.wpacu-script-attributes-area.wpacu-lite ul.wpacu-script-attributes-settings li:last-child{margin:0 2px 0 0!important}.wpacu-script-attributes-area .wpacu-script-attributes-settings{background:#fff!important;border:1px solid #eee!important;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;padding:5px 10px!important;list-style:none;display:inline-block;margin:0}.wpacu-script-attributes-area .wpacu-script-attributes-settings input[type=radio]{padding:0;margin:0 5px 0 0}.wpacu-script-attributes-area .wpacu-script-attributes-settings.wpacu-first{margin:0 34px 0 0!important}.wpacu-script-attributes-area .wpacu-script-attributes-settings li{float:left;margin:0 17px 0 0}.wpacu-script-attributes-area .wpacu-script-attributes-settings li:first-child{margin:0 10px 0 0!important}.wpacu-script-attributes-area .wpacu-script-attributes-settings li:last-child{margin:0}.wpacu-script-attributes-area .wpacu-script-attributes-settings:hover{background:#f2faf2}tr.wpacu_not_load td,tr.wpacu_not_load th{background:#FFE1E1!important}tr.wpacu_not_load td .wpacu-assets-inline-code-wrap,tr.wpacu_not_load td .wpacu-script-attributes-area,tr.wpacu_not_load th .wpacu-assets-inline-code-wrap,tr.wpacu_not_load th .wpacu-script-attributes-area{filter:alpha(opacity=45);opacity:.45}.dashicons-wpacu{width:17px;height:17px;margin:2px 0 0;font-size:16px;text-decoration:none}#wpacu_meta_box_content,.wpacu_widefat{width:99%}.wpacu_widefat .check-column.wpacu_check{padding:10px}body[class*=wpassetcleanup] #footer-left{border-left:2px solid green;padding-left:10px}#wpassetcleanup_asset_list small{width:auto;float:none;display:inline}#wpacu_meta_box_content .emoji{font-size:18px}#wpacu_meta_box_content h3{margin-left:0;padding-left:0}#wpacu_meta_box_content div.wpacu_note{padding:10px;background-color:#f5f5f5}#wpacu_meta_box_content .wpacu_verified{padding:10px;background-color:#f5f5f5;border-left:1px solid #ddd}#wpacu_meta_box_content .wpacu_verified span{color:#0073aa;font-weight:700}#wpacu_meta_box_content div.wpacu_warning{border:1px solid #c00}#wpacu_meta_box_content ul.wpacu_asset_options{margin:0;padding:0}#wpacu_meta_box_content ul.wpacu_asset_options li{list-style:none;display:inline-block}#wpacu_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-update-front-settings-area{margin:10px 0;display:inline-block;position:relative}#wpacu-updating-front-settings{display:none;position:absolute;top:5px;right:-35px}#wpacu_wrap_assets{color:#000!important;text-align:left!important;clear:both!important;width:90%!important;padding:20px!important;margin:30px 0 0 15px!important;border:1px solid #cdcdcd;z-index:10000!important;position:relative!important;background-color:#fff!important}#wpacu_wrap_assets div.wpacu_warning{border:1px solid #c00;padding:5px 10px}#wpacu_wrap_assets small{display:inline!important;margin:0!important;letter-spacing:normal!important}#wpacu_wrap_assets input[type=checkbox]{margin-right:4px!important}#wpacu_wrap_assets img:not(.wpacu-ajax-loader){display:inline-block!important}#wpacu_wrap_assets p{line-height:22px!important;margin:10px 0!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:first-child td{border-top:1px solid #cdcdcd}.wpacu_asset_row td{border-left:1px solid #cdcdcd;border-right:1px solid #cdcdcd;border-bottom:1px solid #cdcdcd}.wpacu_asset_row.wpacu_notice_row td{position:relative;padding:5px;border-bottom:1px solid transparent}.wpacu_asset_row.wpacu_notice_row td div.wpacu-warning{width:auto;margin:5px;font-style:italic}.wpacu_asset_row:not(.wpacu_notice_row) td{padding:18px!important;position:relative}.wpacu_asset_row:not(.wpacu_notice_row) td.selected,.wpacu_asset_row:not(.wpacu_notice_row) td:hover{-moz-box-shadow:inset 0 0 12px #cdcdcd;-webkit-box-shadow:inset 0 0 12px #cdcdcd;box-shadow:inset 0 0 12px #cdcdcd}.wpacu_asset_row:not(.wpacu_notice_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:not(.wpacu_notice_row) td label{width:auto!important;margin:0!important;cursor:pointer!important;display:inline-block!important;font-size:100%!important;font-weight:400!important}.wpacu_asset_row:not(.wpacu_notice_row) td label span:not(.dashicons){font-size:100%!important}.wpacu_asset_row:not(.wpacu_notice_row) td.wpacu_check{width:50px!important}.asset-table-extra-info td{padding:5px!important}body.wp-admin .wpacu_asset_row td.wpacu_check{width:25px!important}.wpacu_asset_row .dashicons-warning{color:red!important}label.wpacu_add_global{cursor:pointer!important}label.wpacu_global_checked{font-weight:700;color:#d54e21}label.wpacu_global_unload_exception{font-weight:700!important}label.wpacu_bulk_unload_active{color:#d54e21}tr.wpacu_global_rule_row.selected{background:#e7e7e7}.nav-tab-wrapper{border-bottom:1px solid #ccc;width:95%}ul.wpacu_asset_options{margin:0 10px 0 0;padding:0}ul.wpacu_asset_options li{margin:0 10px 0 0;list-style:none;display:inline-block;line-height:normal}ul.wpacu_asset_options li.remove_rule label{font-weight:700}ul.wpacu_asset_options label{margin-right:20px;font-weight:400}ul.wpacu_asset_options label input{margin-right:4px}.wpacu_list_table,.wpacu_list_table div,.wpacu_list_table li,.wpacu_list_table p{font-weight:400}.wpacu_striped>tbody>:nth-child(even),ul.wpacu_striped>:nth-child(even){background-color:#fff!important}.wpacu_striped>tbody>:nth-child(odd),ul.wpacu_striped>:nth-child(odd){background-color:#f9f9f9!important}.wpacu_update_btn{-moz-box-shadow:inset 0 1px 0 0 #54a3f7!important;-webkit-box-shadow:inset 0 1px 0 0 #54a3f7!important;box-shadow:inset 0 1px 0 0 #54a3f7!important;background:-webkit-gradient(linear,left top,left bottom,color-stop(.05,#007dc1),color-stop(1,#0061a7))!important;background:-moz-linear-gradient(top,#007dc1 5%,#0061a7 100%)!important;background:-webkit-linear-gradient(top,#007dc1 5%,#0061a7 100%)!important;background:-o-linear-gradient(top,#007dc1 5%,#0061a7 100%)!important;background:-ms-linear-gradient(top,#007dc1 5%,#0061a7 100%)!important;background:linear-gradient(to bottom,#007dc1 5%,#0061a7 100%)!important;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#007dc1', endColorstr='#0061a7', GradientType=0)!important;background-color:#007dc1!important;-moz-border-radius:3px!important;-webkit-border-radius:3px!important;border-radius:3px!important;border:1px solid #124d77!important;display:inline-block!important;cursor:pointer!important;color:#fff!important;font-size:15px!important;padding:10px 24px!important;text-decoration:none!important;text-shadow:0 1px 0 #154682!important;height:auto!important;line-height:normal!important}.wpacu-btns .btn:focus,.wpacu-btns .btn:hover,.wpacu-btns a{text-decoration:none}.wpacu_update_btn.wpacu_submitting,.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.wpacu_submitting{cursor:default!important}.wpacu_update_btn:active{position:relative!important;top:1px!important}.wpacu-btns .btn{display:inline-block;font-weight:400;line-height:1.25;text-align:center;white-space:nowrap;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:1px solid transparent;padding:.5rem 1rem;font-size:1rem;-webkit-border-radius:.25rem;-moz-border-radius:.25rem;border-radius:.25rem;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.wpacu-btns .btn.focus,.wpacu-btns .btn:focus{outline:0;-webkit-box-shadow:0 0 0 2px rgba(2,117,216,.25);box-shadow:0 0 0 2px rgba(2,117,216,.25)}.wpacu-btns .btn.disabled,.wpacu-btns .btn:disabled{cursor:not-allowed;opacity:.65}.wpacu-btns .btn.active,.wpacu-btns .btn:active{background-image:none}.wpacu-btns a.btn.disabled,.wpacu-btns fieldset[disabled] a.btn{pointer-events:none}.wpacu-btns .btn-primary{color:#fff;background-color:#0275d8;border-color:#0275d8}.wpacu-btns .btn-primary:hover{color:#fff;background-color:#025aa5;border-color:#01549b}.wpacu-btns .btn-primary.focus,.wpacu-btns .btn-primary:focus{-webkit-box-shadow:0 0 0 2px rgba(2,117,216,.5);box-shadow:0 0 0 2px rgba(2,117,216,.5)}.wpacu-btns .btn-primary.disabled,.wpacu-btns .btn-primary:disabled{background-color:#0275d8;border-color:#0275d8}.wpacu-btns .btn-primary.active,.wpacu-btns .btn-primary:active,.wpacu-btns .show>.btn-primary.dropdown-toggle{color:#fff;background-color:#025aa5;background-image:none;border-color:#01549b}.wpacu-btns .btn-secondary{color:#292b2c;background-color:#fff;border-color:#ccc}.wpacu-btns .btn-secondary:hover{color:#292b2c;background-color:#e6e6e6;border-color:#adadad}.wpacu-btns .btn-secondary.focus,.wpacu-btns .btn-secondary:focus{-webkit-box-shadow:0 0 0 2px rgba(204,204,204,.5);box-shadow:0 0 0 2px rgba(204,204,204,.5)}.wpacu-btns .btn-secondary.disabled,.wpacu-btns .btn-secondary:disabled{background-color:#fff;border-color:#ccc}.wpacu-btns .btn-secondary.active,.wpacu-btns .btn-secondary:active,.wpacu-btns .show>.btn-secondary.dropdown-toggle{color:#292b2c;background-color:#e6e6e6;background-image:none;border-color:#adadad}.wpacu-btns .btn-info{color:#fff;background-color:#5bc0de;border-color:#5bc0de}.wpacu-btns .btn-info:hover{color:#fff;background-color:#31b0d5;border-color:#2aabd2}.wpacu-btns .btn-info.focus,.wpacu-btns .btn-info:focus{-webkit-box-shadow:0 0 0 2px rgba(91,192,222,.5);box-shadow:0 0 0 2px rgba(91,192,222,.5)}.wpacu-btns .btn-info.disabled,.wpacu-btns .btn-info:disabled{background-color:#5bc0de;border-color:#5bc0de}.wpacu-btns .btn-info.active,.wpacu-btns .btn-info:active,.wpacu-btns .show>.btn-info.dropdown-toggle{color:#fff;background-color:#31b0d5;background-image:none;border-color:#2aabd2}.wpacu-btns .btn-success{color:#fff;background-color:#5cb85c;border-color:#5cb85c}.wpacu-btns .btn-success:hover{color:#fff;background-color:#449d44;border-color:#419641}.wpacu-btns .btn-success.focus,.wpacu-btns .btn-success:focus{-webkit-box-shadow:0 0 0 2px rgba(92,184,92,.5);box-shadow:0 0 0 2px rgba(92,184,92,.5)}.wpacu-btns .btn-success.disabled,.wpacu-btns .btn-success:disabled{background-color:#5cb85c;border-color:#5cb85c}.wpacu-btns .btn-success.active,.wpacu-btns .btn-success:active,.wpacu-btns .show>.btn-success.dropdown-toggle{color:#fff;background-color:#449d44;background-image:none;border-color:#419641}.wpacu-btns .btn-warning{color:#fff;background-color:#f0ad4e;border-color:#f0ad4e}.wpacu-btns .btn-warning:hover{color:#fff;background-color:#ec971f;border-color:#eb9316}.wpacu-btns .btn-warning.focus,.wpacu-btns .btn-warning:focus{-webkit-box-shadow:0 0 0 2px rgba(240,173,78,.5);box-shadow:0 0 0 2px rgba(240,173,78,.5)}.wpacu-btns .btn-warning.disabled,.wpacu-btns .btn-warning:disabled{background-color:#f0ad4e;border-color:#f0ad4e}.wpacu-btns .btn-warning.active,.wpacu-btns .btn-warning:active,.wpacu-btns .show>.btn-warning.dropdown-toggle{color:#fff;background-color:#ec971f;background-image:none;border-color:#eb9316}.wpacu-btns .btn-danger{color:#fff;background-color:#d9534f;border-color:#d9534f}.wpacu-btns .btn-danger:hover{color:#fff;background-color:#c9302c;border-color:#c12e2a}.wpacu-btns .btn-danger.focus,.wpacu-btns .btn-danger:focus{-webkit-box-shadow:0 0 0 2px rgba(217,83,79,.5);box-shadow:0 0 0 2px rgba(217,83,79,.5)}.wpacu-btns .btn-danger.disabled,.wpacu-btns .btn-danger:disabled{background-color:#d9534f;border-color:#d9534f}.wpacu-btns .btn-danger.active,.wpacu-btns .btn-danger:active,.wpacu-btns .show>.btn-danger.dropdown-toggle{color:#fff;background-color:#c9302c;background-image:none;border-color:#c12e2a}.wpacu-btns .btn-outline-primary{color:#0275d8;background-image:none;background-color:transparent;border-color:#0275d8}.wpacu-btns .btn-outline-primary:hover{color:#fff;background-color:#0275d8;border-color:#0275d8}.wpacu-btns .btn-outline-primary.focus,.wpacu-btns .btn-outline-primary:focus{-webkit-box-shadow:0 0 0 2px rgba(2,117,216,.5);box-shadow:0 0 0 2px rgba(2,117,216,.5)}.wpacu-btns .btn-outline-primary.disabled,.wpacu-btns .btn-outline-primary:disabled{color:#0275d8;background-color:transparent}.wpacu-btns .btn-outline-primary.active,.wpacu-btns .btn-outline-primary:active,.wpacu-btns .show>.btn-outline-primary.dropdown-toggle{color:#fff;background-color:#0275d8;border-color:#0275d8}.wpacu-btns .btn-outline-secondary{color:#ccc;background-image:none;background-color:transparent;border-color:#ccc}.wpacu-btns .btn-outline-secondary:hover{color:#fff;background-color:#ccc;border-color:#ccc}.wpacu-btns .btn-outline-secondary.focus,.wpacu-btns .btn-outline-secondary:focus{-webkit-box-shadow:0 0 0 2px rgba(204,204,204,.5);box-shadow:0 0 0 2px rgba(204,204,204,.5)}.wpacu-btns .btn-outline-secondary.disabled,.wpacu-btns .btn-outline-secondary:disabled{color:#ccc;background-color:transparent}.wpacu-btns .btn-outline-secondary.active,.wpacu-btns .btn-outline-secondary:active,.wpacu-btns .show>.btn-outline-secondary.dropdown-toggle{color:#fff;background-color:#ccc;border-color:#ccc}.wpacu-btns .btn-outline-info{color:#5bc0de;background-image:none;background-color:transparent;border-color:#5bc0de}.wpacu-btns .btn-outline-info:hover{color:#fff;background-color:#5bc0de;border-color:#5bc0de}.wpacu-btns .btn-outline-info.focus,.wpacu-btns .btn-outline-info:focus{-webkit-box-shadow:0 0 0 2px rgba(91,192,222,.5);box-shadow:0 0 0 2px rgba(91,192,222,.5)}.wpacu-btns .btn-outline-info.disabled,.wpacu-btns .btn-outline-info:disabled{color:#5bc0de;background-color:transparent}.wpacu-btns .btn-outline-info.active,.wpacu-btns .btn-outline-info:active,.wpacu-btns .show>.btn-outline-info.dropdown-toggle{color:#fff;background-color:#5bc0de;border-color:#5bc0de}.wpacu-btns .btn-outline-success{color:#5cb85c;background-image:none;background-color:transparent;border-color:#5cb85c}.wpacu-btns .btn-outline-success:hover{color:#fff;background-color:#5cb85c;border-color:#5cb85c}.wpacu-btns .btn-outline-success.focus,.wpacu-btns .btn-outline-success:focus{-webkit-box-shadow:0 0 0 2px rgba(92,184,92,.5);box-shadow:0 0 0 2px rgba(92,184,92,.5)}.wpacu-btns .btn-outline-success.disabled,.wpacu-btns .btn-outline-success:disabled{color:#5cb85c;background-color:transparent}.wpacu-btns .btn-outline-success.active,.wpacu-btns .btn-outline-success:active,.wpacu-btns .show>.btn-outline-success.dropdown-toggle{color:#fff;background-color:#5cb85c;border-color:#5cb85c}.wpacu-btns .btn-outline-warning{color:#f0ad4e;background-image:none;background-color:transparent;border-color:#f0ad4e}.wpacu-btns .btn-outline-warning:hover{color:#fff;background-color:#f0ad4e;border-color:#f0ad4e}.wpacu-btns .btn-outline-warning.focus,.wpacu-btns .btn-outline-warning:focus{-webkit-box-shadow:0 0 0 2px rgba(240,173,78,.5);box-shadow:0 0 0 2px rgba(240,173,78,.5)}.wpacu-btns .btn-outline-warning.disabled,.wpacu-btns .btn-outline-warning:disabled{color:#f0ad4e;background-color:transparent}.wpacu-btns .btn-outline-warning.active,.wpacu-btns .btn-outline-warning:active,.wpacu-btns .show>.btn-outline-warning.dropdown-toggle{color:#fff;background-color:#f0ad4e;border-color:#f0ad4e}.wpacu-btns .btn-outline-danger{color:#d9534f;background-image:none;background-color:transparent;border-color:#d9534f}.wpacu-btns .btn-outline-danger:hover{color:#fff;background-color:#d9534f;border-color:#d9534f}.wpacu-btns .btn-outline-danger.focus,.wpacu-btns .btn-outline-danger:focus{-webkit-box-shadow:0 0 0 2px rgba(217,83,79,.5);box-shadow:0 0 0 2px rgba(217,83,79,.5)}.wpacu-btns .btn-outline-danger.disabled,.wpacu-btns .btn-outline-danger:disabled{color:#d9534f;background-color:transparent}.wpacu-btns .btn-outline-danger.active,.wpacu-btns .btn-outline-danger:active,.wpacu-btns .show>.btn-outline-danger.dropdown-toggle{color:#fff;background-color:#d9534f;border-color:#d9534f}.wpacu-btns .btn-link{font-weight:400;color:#0275d8;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.wpacu-btns .btn-link,.wpacu-btns .btn-link.active,.wpacu-btns .btn-link:active,.wpacu-btns .btn-link:disabled{background-color:transparent}.wpacu-btns .btn-link,.wpacu-btns .btn-link:active,.wpacu-btns .btn-link:focus,.wpacu-btns .btn-link:hover{border-color:transparent}.wpacu-btns .btn-link:focus,.wpacu-btns .btn-link:hover{color:#014c8c;text-decoration:underline;background-color:transparent}.wpacu-btns .btn-link:disabled{color:#636c72}.wpacu-btns .btn-link:disabled:focus,.wpacu-btns .btn-link:disabled:hover{text-decoration:none}.wpacu-btns .btn-group-lg>.btn,.wpacu-btns .btn-lg{padding:.75rem 1.5rem;font-size:1.25rem;-webkit-border-radius:.3rem;-moz-border-radius:.3rem;border-radius:.3rem}.wpacu-btns .btn-group-sm>.btn,.wpacu-btns .btn-sm{padding:.25rem .5rem;font-size:.875rem;-webkit-border-radius:.2rem;-moz-border-radius:.2rem;border-radius:.2rem}.wpacu-btns .btn-block{display:block;width:100%}.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=reset].btn-block,.wpacu-btns input[type=button].btn-block,.wpacu-btns input[type=submit].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;text-decoration:none}.wpacu-restore-pos-btn{font-size:14px!important;line-height:normal!important;height:42px!important;padding:0 18px!important;margin-top:10px!important}body.wp-admin .wpacu_asset_row .go-pro-link-no-style .wpacu-tooltip{padding:8px 2px}body.wp-admin .go-pro-link-no-style .wpacu-tooltip{text-shadow:none;font-weight:400;font-size:12px;line-height:16px;padding:8px 11px}.go-pro-link-no-style{position:relative;color:inherit}.go-pro-link-no-style .wpacu-tooltip,.wordpress-core-file .wpacu-tooltip{font-size:14px;line-height:18px;width:160px;color:#fff;text-align:center;z-index:1}.go-pro-link-no-style:not(.nav-tab){font-style:italic}.go-pro-link-no-style.no-transition .wpacu-tooltip{-webkit-transition:0s all ease;transition:0s all ease;-webkit-transition-delay:0s;transition-delay:0s}.go-pro-link-no-style .wpacu-tooltip{position:absolute;visibility:hidden;background-color:#00a7a7;padding:8px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;bottom:100%;bottom:calc(100% + 15px);left:50%;margin-left:-65px;-webkit-transition:.1s all ease;transition:.1s all ease;-webkit-transition-delay:0s;transition-delay:0s}.go-pro-link-no-style .wpacu-tooltip:after{content:"";position:absolute;border-width:10px;border-style:solid;top:100%;left:50%;left:calc(50% - 10px);border-color:#00a7a7 transparent transparent}.go-pro-link-no-style .wpacu-tooltip.wpacu-on-pages-btn{cursor:pointer;margin-left:-77px;width:130px}.go-pro-link-no-style .wpacu-tooltip.wpacu-larger{width:240px}.go-pro-link-no-style:hover .wpacu-tooltip{visibility:visible}.wpacu_list_table tr:first-child .wordpress-core-file .wpacu-tooltip{bottom:-40px;left:120px;margin-left:-86px}.wpacu_list_table tr:first-child .wordpress-core-file .wpacu-tooltip:after{top:41px;left:-20px;border-color:transparent #c00 transparent transparent}.wordpress-core-file{position:relative;font-style:normal;color:inherit}.wordpress-core-file .wpacu-tooltip{position:absolute;visibility:hidden;background-color:#c00;padding:6px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;bottom:100%;bottom:calc(100% + 15px);left:50%;margin-left:-86px;-webkit-transition:.1s all ease;transition:.1s all ease;-webkit-transition-delay:0s;transition-delay:0s}.wordpress-core-file .wpacu-tooltip:after{content:"";position:absolute;border-width:10px;border-style:solid;top:100%;left:50%;left:calc(50% - 10px);border-color:#c00 transparent transparent}.wordpress-core-file:hover .wpacu-tooltip{visibility:visible}.ajax-direct-call-error-area{background:#fff;padding:10px;border:1px solid #c00;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px}.ajax-direct-call-error-area td{padding:6px}.ajax-direct-call-error-area .note{margin-top:0;padding-top:0}.ajax-direct-call-error-area .error-code{color:#c00;font-weight:700}.ajax-wp-remote-post-call-error-area{background:#fff;padding:20px}.ajax-wp-remote-post-call-error-area .table-data{background:0 0;border:1px solid #c66;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.ajax-wp-remote-post-call-error-area .table-data td{padding:10px}.wrap-upgrade-info{background:#fff;padding:0 15px;border:1px solid #cdcdcd;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.wpacu-notice{margin:20px 20px 0 0!important}.wpacu-notice p{font-weight:600!important;font-style:italic}.wpacu-notice .dashicons{font-weight:inherit!important;color:#46b450!important;margin-right:4px;vertical-align:text-bottom;font-size:27px}.wpacu-notice-info{padding:12px 12px 12px 16px;background:#fff;border-left:4px solid #008f9c}.wpacu-notice-info p{margin-top:8px}.wpacu-notice-info p:first-child{margin-top:0}.wpacu-notice-info p:last-child{margin-bottom:0}.wpacu-warning{font-size:15px;padding:10px;background:#fffcec;border:1px solid #fdd5c9;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;margin:0 0 5px;width:100%}.pro-page-unlock-notice{-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;padding:10px;background:#f2faf2;border:1px solid #c0e8c0;width:auto;display:block}.wpacu-license-area .notice,.wpacu-settings-area .notice{margin-left:0;padding:10px!important;width:97%;box-sizing:border-box;font-weight:600;font-style:italic}#wpacu-dom-get-type-selections,.wpacu-radio-selections{float:none;clear:both;width:auto;display:inline-block;margin-bottom:0;margin-top:0}#wpacu-dom-get-type-selections.wpacu-vertical,.wpacu-radio-selections.wpacu-vertical{display:block;margin-top:15px;margin-bottom:18px}#wpacu-dom-get-type-selections.wpacu-vertical li,.wpacu-radio-selections.wpacu-vertical li{float:none;margin-bottom:12px}#wpacu-dom-get-type-selections.wpacu-vertical li:last-child,.wpacu-radio-selections.wpacu-vertical li:last-child{margin-bottom:0}#wpacu-dom-get-type-selections li,.wpacu-radio-selections li{margin-right:30px;float:left;margin-bottom:0}#wpacu-dom-get-type-selections li:first-child,.wpacu-radio-selections li:first-child{margin-right:15px}#wpacu-dom-get-type-selections li:last-child,.wpacu-radio-selections li:last-child{margin-right:0}.wpacu_combine_loaded_js_level_area{display:none;background:0 0;border-left:2px solid #008f9c;padding-top:8px;padding-bottom:8px;padding-right:10px;padding-left:10px;margin:20px 0 15px}.wpacu_combine_loaded_js_level_area.wpacu_active{display:block}#wpacu-dom-get-type-infos{margin-bottom:0}#wpacu-dom-get-type-infos li{margin-bottom:0;line-height:20px}.wpacu-wrap small{width:auto;float:none;display:inline}.wpacu-wrap.wpacu-settings-show-all .wpacu-settings-tab-content{display:block;width:100%}.wpacu-wrap.wpacu-settings-show-all .wpacu-settings-area-title{color:#004567;padding:16px 15px;background:#f8f8f8;border-left:5px solid #004567b0;border-top:1px solid #e7e7e7;border-right:1px solid #e7e7e7;border-bottom:1px solid #e7e7e7;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;font-size:1.45em;font-weight:500}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch .wpacu_slider.wpacu_round,.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch .wpacu_slider.wpacu_round{border-radius:29px}.wpacu-wrap.wpacu-settings-show-all #wpacu-update-button-area{margin:0}.wpacu-wrap.wpacu-settings-show-all #wpacu-update-button-area .button{padding:11px 28px;height:auto;font-size:18px}.wpacu-wrap.wpacu-settings-show-all #wpacu-updating-settings{margin-left:224px;top:25px}.wpacu-wrap.wpacu-switch-standard .asset-cleanup-pro_page_wpassetcleanup_settings .wpacu_switch,.wpacu-wrap.wpacu-switch-standard .asset-cleanup_page_wpassetcleanup_settings .wpacu_switch{width:auto;height:auto}.wpacu-wrap.wpacu-switch-standard .asset-cleanup-pro_page_wpassetcleanup_settings .wpacu_switch input,.wpacu-wrap.wpacu-switch-standard .asset-cleanup_page_wpassetcleanup_settings .wpacu_switch input{display:block}.wpacu-wrap.wpacu-switch-standard .asset-cleanup-pro_page_wpassetcleanup_settings .wpacu_switch input[type=checkbox],.wpacu-wrap.wpacu-switch-standard .asset-cleanup_page_wpassetcleanup_settings .wpacu_switch input[type=checkbox]{margin:0 0 3px}.wpacu-wrap.wpacu-switch-standard .asset-cleanup-pro_page_wpassetcleanup_settings .wpacu_switch .wpacu_slider,.wpacu-wrap.wpacu-switch-standard .asset-cleanup_page_wpassetcleanup_settings .wpacu_switch .wpacu_slider{display:none}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch{position:relative;display:inline-block;width:52px;height:29px}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch input{display:none}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch:not(.wpacu_switch_standard) .wpacu_slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.2s;transition:.2s}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch:not(.wpacu_switch_standard) .wpacu_slider:before{position:absolute;content:'';height:22px;width:22px;left:4px;bottom:4px;background-color:#fff;-webkit-transition:.2s;transition:.2s}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch input:checked+.wpacu_slider{background-color:#52af00}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch input:focus+.wpacu_slider{box-shadow:0 0 1px #52af00}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch input:checked+.wpacu_slider:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch .wpacu_slider.wpacu_round:before{border-radius:50%}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch.wpacu_locked_for_pro{opacity:.3}.asset-cleanup-pro_page_wpassetcleanup_settings .setting_title p.wpacu_subtitle,.asset-cleanup_page_wpassetcleanup_settings .setting_title p.wpacu_subtitle{margin-top:4px;line-height:1.4}.asset-cleanup-pro_page_wpassetcleanup_settings .setting_title p.wpacu_subtitle em,.asset-cleanup_page_wpassetcleanup_settings .setting_title p.wpacu_subtitle em{font-weight:200}.asset-cleanup-pro_page_wpassetcleanup_settings .setting_title p.wpacu_read_more,.asset-cleanup_page_wpassetcleanup_settings .setting_title p.wpacu_read_more{margin-top:-10px;font-style:italic;font-size:12px}.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_inline_code_status_choices,.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices,.asset-cleanup-pro_page_wpassetcleanup_settings .input_style_choices,.asset-cleanup_page_wpassetcleanup_settings .assets_list_inline_code_status_choices,.asset-cleanup_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices,.asset-cleanup_page_wpassetcleanup_settings .input_style_choices{list-style:none;margin:0}.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_inline_code_status_choices li,.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices li,.asset-cleanup-pro_page_wpassetcleanup_settings .input_style_choices li,.asset-cleanup_page_wpassetcleanup_settings .assets_list_inline_code_status_choices li,.asset-cleanup_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices li,.asset-cleanup_page_wpassetcleanup_settings .input_style_choices li{float:left;margin-right:30px}.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_inline_code_status_choices li:last-child,.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices li:last-child,.asset-cleanup-pro_page_wpassetcleanup_settings .input_style_choices li:last-child,.asset-cleanup_page_wpassetcleanup_settings .assets_list_inline_code_status_choices li:last-child,.asset-cleanup_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices li:last-child,.asset-cleanup_page_wpassetcleanup_settings .input_style_choices li:last-child{margin-right:0}#wpacu-assets-list-by-location-selected{background:0 0;border:1px solid #e7e7e7;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;padding:8px;clear:both}.notice.notice-success+.wpacu-wrap.wpacu-settings-area{margin-top:20px}.wpacu-form-table th{vertical-align:top;text-align:left;padding:5px 20px 20px 0;width:200px;line-height:1.3;font-weight:600}.wpacu-form-table th label{color:#23282d;font-weight:600;font-size:14px;text-shadow:none;vertical-align:middle;cursor:pointer}.wpacu-form-table td{padding-bottom:25px}.wpacu-form-table td:last-child p:last-child{margin:0}.wpacu-form-table label input[type=checkbox]{height:19px;width:20px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.wpacu-form-table label input[type=checkbox]:checked,.wpacu-form-table label input[type=checkbox]:hover{border:1px solid green}.wpacu-form-table label input[type=checkbox]:checked:before{color:#52af00;font:400 24px/1 dashicons}#wpacu-settings-vertical-tab-wrap{display:table;width:100%}#wpacu-settings-vertical-tab-wrap *{box-sizing:border-box}.wpacu-settings-tab{display:table-cell;width:19%;height:100%;vertical-align:top}.wpacu-settings-tab a{text-decoration:none;border-left:3px solid transparent;display:block;background-color:#f1f1f1;color:#004567;padding:17px 16px;width:100%;outline:0;text-align:left;cursor:pointer;font-size:14px;font-weight:600;border-bottom:1px solid #ccc}.wpacu-settings-tab a:first-child{border-top:1px solid transparent!important}.wpacu-settings-tab a:last-child{border-bottom:1px solid transparent!important}.wpacu-settings-tab a:hover{background-color:#fff;border-left:3px solid #004567;position:relative}.wpacu-settings-tab a.active{color:#004567;background-color:#fff;border-left:3px solid #004567;position:relative;border-bottom:1px solid #ccc}.wpacu-settings-tab a.active:after{content:'';position:absolute;height:100%;width:1px;top:0;right:-1px;background-color:#fff}.wpacu-settings-tab-content{background-color:#fff;display:none;padding:12px 18px;width:79%;border-left:none;height:100%;border-top-right-radius:10px;border-bottom-right-radius:10px}.wpacu-settings-tab-content h2{padding:0 0 15px;border-bottom:1px solid #e7e7e7}.wpacu-settings-tab-content.active{display:table-cell}#wpacu_minify_css_exceptions_area,#wpacu_minify_js_exceptions_area{margin:16px 0 0}#wpacu-update-button-area{position:relative;margin-left:19%}#wpacu-update-button-area.no-left-margin{margin-left:0}#wpacu-update-button-area p{margin-top:10px}#wpacu-update-button-area .button{padding:5px 18px;height:38px;font-size:15px}#wpacu-updating-settings{position:absolute;margin-left:183px;top:19px;display:none}#combine_loaded_js_info_area{position:relative}#combine_loaded_js_info_area.locked-for-pro:before{position:absolute;content:'';height:100%;width:100%;background:#fff;opacity:.5;z-index:10000}body.wp-admin .wpacu-handle-notes{margin-top:10px!important}body.wp-admin .wpacu-handle-notes p{margin-top:0!important}body.wp-admin .wpacu-handle-notes p a{font-size:inherit}body.wp-admin .wpacu-handle-notes p a span.dashicons{font-size:19px;width:19px;height:19px;vertical-align:bottom;text-decoration:none}.wpacu-handle-notes{margin-top:12px!important;padding-top:5px;border-top:1px solid #e7e7e7}.wpacu-handle-notes p{margin:10px 0 0!important}.wpacu-handle-notes p a.wpacu-add-handle-note{text-decoration:none;font-size:80%;display:inline-block;color:inherit}.wpacu-handle-notes p a.wpacu-add-handle-note span.dashicons{font-size:18px;width:18px;height:18px}.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;min-width:52px;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:.15s;transition:.15s}.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:.15s;transition:.15s}.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:before{border-radius:50%}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_slider_text{position:absolute;left:62px;top:3px}.editor-post-saved-state.is-wpacu-reloading{animation:edit-post__loading-fade-animation .5s infinite}body.wp-admin .wpacu_asset_row.wpacu-loading{position:relative}body.wp-admin .wpacu_asset_row.wpacu-loading .wpacu-ajax-loader{display:block!important}body.wp-admin .wpacu_asset_row .wpacu-ajax-loader{display:none;width:58px;height:58px;position:absolute;bottom:0;right:0;opacity:.75}.wpacu_asset_row input{height:auto;min-height:16px}.wpacu_asset_row td{width:100%;text-align:left}.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{display:table;content:''}.wpacu-contract-expand-area{width:100%;margin:20px 0 0}.wpacu-contract-expand-area .col-left{float:left}.wpacu-contract-expand-area .col-left h4{margin-bottom:0}.wpacu-contract-expand-area .col-right{float:right}.wpacu-clearfix:after{clear:both}.wpacu-wp-button{color:#555;border-color:#ccc;background:#f7f7f7;box-shadow:0 1px 0 #ccc;vertical-align:top}body.wp-admin .wpacu-wp-button{font-size:13px;line-height:26px;height:28px}.wpacu-wp-button.wpacu-wp-button-secondary{display:inline-block;text-decoration:none;height:auto;margin:0 5px 0 0;padding:0 10px 1px;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;border-radius:3px;white-space:nowrap;box-sizing:border-box}.wpacu-wp-button:hover{background:#fafafa;border-color:#999;color:#23282d}.distinguish-asset-list{list-style:none;margin-left:0;margin-bottom:5px;display:inline-block}.distinguish-asset-list li{float:left;margin-right:20px}.distinguish-asset-list li:last-child{margin-right:0}body[class*=asset-cleanup-pro] a.wpacu-plugin-contracted-wrap-link{padding:16px 6px 16px 41px!important}body[class*=asset-cleanup-pro] .wpacu-area-open .wpacu-plugin-toggle-all{font-size:12px!important;width:calc(100% - 26px)!important}body.wp-admin .wpacu-area-expanded .wpacu-plugin-toggle-all{top:5px}body.wp-admin .wpacu-area-expanded .wpacu-plugin-toggle-all ul li{font-size:12px!important}.wpacu-assets-collapsible-wrap{border:1px solid #cdcdcd}.wpacu-assets-collapsible-wrap.wpacu-by-location{margin-bottom:15px}.wpacu-assets-collapsible-wrap.wpacu-wrap-all,.wpacu-assets-collapsible-wrap.wpacu-wrap-styles{margin-top:20px}.wpacu-assets-collapsible-wrap.wpacu-wrap-scripts{margin-top:10px}.wpacu-assets-collapsible-wrap.wpacu-by-location>a.wpacu-assets-collapsible{padding:15px 15px 15px 43px}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu_list_table{border-width:0;margin:0;border-spacing:inherit;width:100%;box-shadow:3px 3px 2px #ddd;border-bottom-right-radius:5px;border-top-right-radius:5px}.wpacu-assets-collapsible-wrap.wpacu-by-location span.wpacu-child-location-name{font-weight:600}.wpacu-assets-collapsible-wrap.wpacu-by-location span.wpacu-child-location-version{font-weight:200}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-location-child-area[data-wpacu-plugin=oxygen] .icon-area{border-radius:50%}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-location-child-area .wpacu-plugin-toggle-all{display:inline-block;padding:0;font-size:13px;width:100%;width:calc(100% + 46px);min-width:250px;position:absolute;left:100%;left:calc(100% + 6px);margin:0;top:4px}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-location-child-area .wpacu-plugin-toggle-all ul{display:inline-block;margin:0;list-style:none;padding-left:13px;padding-top:0}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-location-child-area .wpacu-plugin-toggle-all ul li{padding:0;margin:0;line-height:normal;font-size:14px}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-location-child-area .wpacu-plugin-toggle-all ul li:first-child{font-style:italic;margin-bottom:5px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-themes .wpacu-assets-collapsible-content>table:last-child{margin-bottom:20px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-themes .wpacu-assets-collapsible-content .wpacu-location-child-area .wpacu-area-title{display:inline;position:relative;z-index:1}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-themes .wpacu-assets-collapsible-content .wpacu-location-child-area .wpacu-area-title:after{content:'';position:absolute;width:100%;left:0;bottom:0;height:1px;background-color:#fdfdfd}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content .wpacu-plugin-assets-wrap{padding:0 0 10px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content .wpacu-plugin-assets-wrap.wpacu-area-open .wpacu-plugin-toggle-all{display:inline-block;padding:7px 12px 16px;font-size:14px;width:100%;text-align:left;border-left:1px solid #cdcdcd;border-right:1px solid #cdcdcd}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content .wpacu-plugin-assets-wrap.wpacu-area-open.wpacu-plugin-assets-last{margin-bottom:18px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link{color:inherit;text-decoration:none;font-weight:inherit;font-style:inherit;font-size:105%;line-height:initial;height:auto;margin:14px 0 0;padding:13px 6px 14px 39px;position:relative;display:block}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link:after{position:absolute;font-size:18px;font-family:Dashicons;right:12px;top:14px;content:"\f132"}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link.wpacu-link-open:after{content:"\f460"}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link.wpacu-link-closed{border:1px solid #cdcdcd}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link:hover{border:1px solid #878787;background:#f9f9f9}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link:hover.wpacu-link-closed{box-shadow:3px 3px 2px #ddd}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link.wpacu-link-open{border-top:1px solid #cdcdcd;border-left:1px solid #cdcdcd;border-right:1px solid #cdcdcd;border-bottom:none}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link.wpacu-link-closed.wpacu-last-wrap-link{margin-bottom:20px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link .icon-plugin-default{top:10px;left:10px;width:30px;height:30px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link .icon-plugin-default .icon-area{width:30px;height:30px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link .icon-plugin-default .icon-area:before{font-size:22px;line-height:22px;top:4px;left:5px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link .wpacu-area-title{position:relative;padding:17px 10px 16px 46px;z-index:1}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link .wpacu-area-title:after{content:'';position:absolute;width:100%;left:0;bottom:0;height:1px;background-color:#fdfdfd}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link.wpacu-area-last{margin-bottom:18px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content .wpacu-area-open{padding:0;max-height:100%}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content .wpacu-area-closed{padding:0;overflow:hidden;max-height:0}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content>table:last-child{margin-bottom:20px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-themes .wpacu-assets-collapsible-content .wpacu-location-child-area .wpacu-area-title{margin-top:0;margin-bottom:-1px;padding:14px 10px 16px 12px!important}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-themes .wpacu-assets-collapsible-content .wpacu-location-child-area .wpacu-area-title.wpacu-theme-has-icon{padding:18px 10px 16px 58px!important}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-assets-collapsible-content .wpacu-location-child-area{margin-top:22px;margin-bottom:-1px;font-size:110%;line-height:initial}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-assets-collapsible-content .wpacu-location-child-area.wpacu-location-child-area-first{margin-top:2px}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-assets-collapsible-content .wpacu-location-child-area.wpacu-area-expanded .wpacu-area-title{display:inline-block;z-index:1;padding:17px 10px 16px 46px}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-assets-collapsible-content .wpacu-location-child-area .wpacu-area-title{display:inline;border-top-right-radius:8px;border-top-left-radius:8px;background-color:#f9f9f9;border-left:1px solid #cdcdcd;border-top:1px solid #cdcdcd;border-bottom:1px solid transparent;border-right:1px solid #cdcdcd;position:relative}.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-plugin-default{position:absolute;padding:0;top:10px;left:10px;width:37px;height:37px}.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-plugin-default:not(.has-icon){color:#b4b9be;background-color:#eee;box-shadow:inset 0 0 10px rgba(160,165,170,.15);-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-plugin-default:not(.has-icon) .icon-area:before{content:"\f106";font-family:Dashicons;position:absolute;font-size:28px;line-height:28px;top:5px;left:5px}.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-plugin-default .icon-area{position:relative;width:37px;height:37px}.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-theme{position:absolute;padding:0;top:10px;left:10px;width:37px;height:37px}.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-theme .icon-area{position:relative;width:37px;height:37px}.wpacu-assets-collapsible-wrap.wpacu-wp_core{border:1px solid #c00}.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content,.wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content{padding:0}.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content .wpacu_list_table,.wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content .wpacu_list_table{width:100%;margin:0}.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row td,.wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row td{border-left:hidden;border-right:hidden;border-bottom:1px solid #cdcdcd}.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row:last-child,.wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row:last-child{margin-bottom:0!important}.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row:last-child td:last-child,.wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row:last-child td:last-child{border-bottom:hidden}a.wpacu-assets-collapsible{color:#000;font-size:20px;text-decoration:none;display:block;position:relative;background-color:#f1f3f8;cursor:pointer;padding:15px 15px 15px 36px;width:auto;border:none;text-align:left;outline:0}a.wpacu-assets-collapsible>span.dashicons{font-size:25px;line-height:normal;position:absolute;top:15px;top:calc(50% - 21px);left:22px;-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}a.wpacu-assets-collapsible:hover{background-color:#f1f3f8;text-decoration:none}a.wpacu-assets-collapsible:after{position:absolute;font-size:22px;font-family:Dashicons;right:14px;top:16px}a.wpacu-assets-collapsible:not(.wpacu-assets-collapsible-active):after{content:"\f132"}a.wpacu-assets-collapsible.wpacu-assets-collapsible-active{background-color:#f1f3f8}a.wpacu-assets-collapsible.wpacu-assets-collapsible-active:after{content:"\f460"}.wpacu-assets-collapsible-content{padding:0 16px;max-height:0;overflow:hidden;background-color:#fbfbfb8c}.wpacu-assets-collapsible-content .wpacu-assets-note{margin:0;padding:15px 15px 10px}.wpacu-assets-collapsible-content>div:not(.wpacu-assets-table-list-wrap){padding:16px 0 0}.wpacu-assets-collapsible-content>div>p:first-child{margin-top:0}.wpacu-assets-collapsible-content.wpacu-open{max-height:100%}a.wpacu-assets-inline-code-collapsible{color:inherit;font-size:14px;text-decoration:none;display:inline-block;position:relative;cursor:pointer;width:auto;outline:0;background:#f1f3f8;border:1px solid #cdcdcd;padding:4px 21px 4px 8px;margin:0 0 0 6px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}a.wpacu-assets-inline-code-collapsible:hover{border:1px solid #5c5c5c}a.wpacu-assets-inline-code-collapsible:after{position:absolute;font-size:15px;font-family:Dashicons;right:-3px;top:-1px;width:14px;height:14px;-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}a.wpacu-assets-inline-code-collapsible:not(.wpacu-assets-inline-code-collapsible-active):after{content:"\f132"}a.wpacu-assets-inline-code-collapsible.wpacu-assets-inline-code-collapsible-active:after{content:"\f460"}.wpacu-assets-inline-code-collapsible-content{font-size:80%;padding:0 8px;max-height:0;overflow:hidden;background-color:#fbfbfb8c}.wpacu-assets-inline-code-collapsible-content>div{padding:7px 8px 0}.wpacu-assets-inline-code-collapsible-content>div>p{line-height:normal!important}.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-wrap-choose-position{display:inline}.wpacu-wrap-choose-position>div{display:inline-block}.wpacu-wrap-choose-position select{width:auto;font-size:inherit;display:inline;margin-left:6px;margin-right:4px}.wpacu-wrap-choose-position>.select>.select{display:inline}.wpacu-wrap-choose-position>.select>.select select{padding-right:30px}.wpacu-wrap-choose-position>.select>.select:after{right:15px;top:-4px}.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}.wp-list-table .wpacu_remove_global_attr_row.wpacu_selected,.wp-list-table .wpacu_restore_position_row.wpacu_selected{background:#e7e7e7}ul.hire-reasons{margin-bottom:20px}ul.hire-reasons li{font-size:14px;line-height:22px;margin-bottom:12px}ul.hire-reasons li .dashicons{font-size:23px;line-height:23px}ul.hire-reasons li .dashicons.dashicons-yes{color:green}ol.getting-started li{font-size:14px;line-height:22px;margin-bottom:8px}.wpacu-get-help-wrap p{font-size:14px}.wpacu-get-help-wrap .help-content-wrap{margin:20px 0 25px;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-moz-flex;display:-webkit-flex;display:flex;width:100%}@media only screen and (min-width:768px){.wpacu-get-help-wrap .help-content-wrap{-webkit-box-align:start;-ms-flex-align:start;-ms-grid-row-align:flex-start;align-items:flex-start}}@media only screen and (max-width:767px){.wpacu-get-help-wrap .help-content-wrap{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}}.wpacu-get-help-wrap .help-content-wrap .help-content{padding:15px;background:#fff;border:1px solid #E0E0E0;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;box-shadow:2px 3px 8px 0 #231f2038;flex:1 1 50%;margin-bottom:10px}.wpacu-get-help-wrap .help-content-wrap .help-content .content-title{margin:5px 0 15px}.wpacu-get-help-wrap .help-content-wrap .help-content .cols-wrap{width:100%;margin:0 auto;display:table}.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area{margin:5px 0 0;position:relative}.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area.col-left{float:left;width:48%}.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area.col-right{float:right;width:48%}.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area.activate-plugin img{max-width:280px}.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area img{width:99%;margin:8px 0;border:1px solid #cdcdcd;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.wpacu-get-help-wrap .help-content-wrap .help-content.upgrade-help{order:2}@media only screen and (min-width:768px){.wpacu-get-help-wrap .help-content-wrap .help-content{margin-right:24px}.wpacu-get-help-wrap .help-content-wrap .help-content.upgrade-help{margin-right:0}}.wpacu-get-help-wrap .help-content-wrap .help-content.tech-help{order:1}@media only screen and (max-width:767px){.wpacu-get-help-wrap .help-content-wrap .help-content.tech-help{margin-bottom:30px}}.wpacu-get-help-wrap .help-content-wrap .help-content ul{list-style:none;padding-left:0}.wpacu-get-help-wrap .help-content-wrap .help-content ul li{font-size:14px;line-height:22px;margin-bottom:15px}.wpacu-get-help-wrap .help-content-wrap .help-content p:last-child,.wpacu-get-help-wrap .help-content-wrap .help-content ul li:last-child{margin-bottom:0}#wpacu-license-data-remove-area{display:none;margin:10px 0 25px}#wpacu-license-data-remove-area.wpacu-visible{display:block}span#wpacu-license-data-removed-msg{display:block;padding-left:26px}#wpacu-warning-read{display:none;margin:10px 0}#wpacu-warning-read span.dashicons-warning{color:#c00}#wpacu-warning-read.wpacu-visible{display:block}#wpacu-reset-submit-area{margin:10px 0;clear:both}#wpacu-reset-submit-btn{margin:10px 0 0}.wpacu-tools-area{margin:10px 20px 0 2px}.wpacu-tools-area .wpacu-tools-container{background:#fff;padding:15px;border:1px solid #cdcdcd;width:96%}.wpacu-tools-area .wpacu-tools-container form>div:first-child{margin:0 0 10px}.wpacu-tools-area .wpacu-tools-container form .wpacu-warning{display:none;box-sizing:border-box;margin-top:10px}.wpacu-tools-area .wpacu-tools-container form .wpacu-warning p{margin:0 0 10px;line-height:22px}.wpacu-tools-area .wpacu-tools-container form .wpacu-warning p:only-child{margin:0}.wpacu-tools-area .wpacu-tools-container form .wpacu-warning ul{font-size:13px;list-style-type:disc;padding-left:30px}.wpacu-tools-area .wpacu-tools-container form .wpacu-warning.wpacu-visible{display:block}.wpacu-tools-area .wpacu-export-import-area{padding:10px}.wpacu-tools-area .wpacu-export-import-area form>p:first-of-type{margin-top:0}.wpacu-tools-area .wpacu-export-import-area form>p:last-of-type{margin-bottom:0}.wpacu-tools-area .wpacu-export-import-area:hover{background:rgba(40,44,42,.05);box-shadow:inset 0 0 10px rgba(160,165,170,.15)}.wpacu-tools-area .wpacu-export-import-area+hr{display:block;height:1px;border:0;border-top:1px solid #cdcdcd;margin:10px 0;padding:0}#wpacu-import-form button.wpacu-importing img.wpacu-spinner{display:inline-block}#wpacu-import-form button img.wpacu-spinner{display:none;margin:0 0 0 5px;height:16px;width:16px;vertical-align:middle}.wpacu-about-wrap .wpacu-about-text img{width:auto;height:150px;position:absolute;top:20px;right:-20px}@media only screen and (max-width:767px){.wpacu-about-wrap h1{margin:20px}.wpacu-about-wrap .wpacu-about-text img{display:none}.wpacu-about-wrap .wpacu-about-text{margin:20px}}.wpacu-about-wrap .about-wrap-content .area-title{font-size:19px;line-height:19px;margin-bottom:0}.wpacu-about-wrap hr{margin:10px 0}.wpacu-lite-vs-pro-wrap ul{display:flex;top:0;z-index:10;padding-bottom:14px}.wpacu-lite-vs-pro-wrap li{list-style:none;flex:1}.wpacu-lite-vs-pro-wrap li:last-child{border-right:1px solid #DDD}.wpacu-lite-vs-pro-wrap button{width:100%;border:1px solid #DDD;border-right:0;border-top:0;padding:10px;background:#FFF;font-size:14px;font-weight:700;height:60px;color:#999}.wpacu-lite-vs-pro-wrap li.active button{background:#F5F5F5;color:#000}.wpacu-lite-vs-pro-wrap table{border-collapse:collapse;table-layout:fixed;width:100%}.wpacu-lite-vs-pro-wrap th{background:inherit}.wpacu-lite-vs-pro-wrap tr.first{background:inherit;font-size:18px}.wpacu-lite-vs-pro-wrap tr.first .bg-lite{border-top:4px solid #6d6e70;background:#fff;color:#6d6e70}.wpacu-lite-vs-pro-wrap tr.first .bg-pro{border-top:4px solid green;background:#fff;color:green}.wpacu-lite-vs-pro-wrap tr:not(.first){background:#fff}.wpacu-lite-vs-pro-wrap tr:not(:last-child):hover{background:#f8f8f8}.wpacu-lite-vs-pro-wrap td,.wpacu-lite-vs-pro-wrap th{height:53px;border:1px solid #DDD;padding:10px 16px;empty-cells:show;text-align:left}@media only screen and (max-width:767px){.wpacu-lite-vs-pro-wrap td,.wpacu-lite-vs-pro-wrap th{font-size:14px}}.wpacu-lite-vs-pro-wrap td+td,.wpacu-lite-vs-pro-wrap th+th{text-align:center;display:none}.wpacu-lite-vs-pro-wrap td.default{display:table-cell}.wpacu-lite-vs-pro-wrap .txt-l{font-size:28px;font-weight:700}.wpacu-lite-vs-pro-wrap .txt-top{position:relative;top:-9px;left:-2px}.wpacu-lite-vs-pro-wrap svg{width:18px;height:18px}.wpacu-lite-vs-pro-wrap svg path{fill:green}.wpacu-lite-vs-pro-wrap .tick{color:#2CA01C}.wpacu-lite-vs-pro-wrap .tick img{fill:#2CA01C}@media only screen and (max-width:767px){.wpacu-lite-vs-pro-wrap .txt-l{font-size:20px}.wpacu-lite-vs-pro-wrap .tick{font-size:15px}}.wpacu-lite-vs-pro-wrap .na{font-size:18px;opacity:.3;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)"}.wpacu-lite-vs-pro-wrap .hide{border:0;background:0 0}.wpacu-lite-vs-pro-wrap td,.wpacu-lite-vs-pro-wrap th{display:table-cell!important;width:auto}.wpacu-lite-vs-pro-wrap td+td,.wpacu-lite-vs-pro-wrap th+th{width:130px}@media only screen and (max-width:767px){.wpacu-lite-vs-pro-wrap .na{font-size:15px}.wpacu-lite-vs-pro-wrap td+td,.wpacu-lite-vs-pro-wrap th+th{width:42px}}@media only screen and (min-width:768px){.wpacu-lite-vs-pro-wrap td .button{font-size:16px!important}}@media only screen and (max-width:767px){.wpacu-lite-vs-pro-wrap td .button{font-size:14px!important;padding:0 20px!important}.wpacu-lite-vs-pro-wrap td .button.button-primary{margin-top:6px;margin-bottom:14px}}@media only screen and (min-width:768px){.wpacu-lite-vs-pro-wrap{margin-bottom:40px;clear:both}}.wpacu-video-areas>div{padding:20px;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.wpacu-video-areas>div:nth-child(odd){background:#fff}.wpacu-video-areas>div:nth-child(even){background:inherit}@media only screen and (min-width:1200px){.wpacu-video-areas .wpacu-video-area-wrapper{margin:0 0 15px;display:flex}.wpacu-video-areas .wpacu-video-area-wrapper .wpacu-col-right{padding:0 20px 0 25px}}@media only screen and (min-width:992px) and (max-width:1199px){.wpacu-video-areas .wpacu-video-area-wrapper{margin:0 0 40px}}.wpacu-video-areas .wpacu-video-area-wrapper ol{font-size:14px}.wpacu-video-areas .wpacu-video-area-wrapper ul{font-size:14px;list-style:disc;margin-left:22px}@media only screen and (min-width:1200px){.wpacu-video-areas .wpacu-video-area-wrapper .wpacu-col-right p:first-child{margin-top:0}.wpacu-video-areas .wpacu-video-area-wrapper .wpacu-col-right p:last-child{margin-bottom:0}}@media only screen and (max-width:1199px){.wpacu-video-areas .wpacu-video-area-wrapper .wpacu-video-wrapper{position:relative;padding-bottom:56.25%;padding-top:30px;height:0;overflow:hidden}.wpacu-video-areas .wpacu-video-area-wrapper .wpacu-video-wrapper iframe{position:absolute;top:0;left:0;width:100%;height:100%}}#wpassetcleanup_asset_list.postbox h2{padding-left:52px!important;position:relative}#wpassetcleanup_asset_list.postbox h2:before{content:'';position:absolute;background-image:url(images/wpacu-logo-transparent-bg-v1.png);background-size:cover;top:6px;left:13px;width:33px;height:26px;opacity:.8;-webkit-filter:grayscale(100%);filter:grayscale(100%)}body.wp-admin .wpacu-modal{display:none;position:fixed;z-index:1000000;padding-top:15%;left:0;top:0;width:100%;height:100%;overflow:auto;background-color:#000;background-color:rgba(0,0,0,.4)}body.wp-admin .wpacu-modal-content{background-color:#fefefe;margin:auto;padding:20px;border:1px solid #888;width:80%;max-width:600px;border-radius:10px}body.wp-admin .wpacu-close{color:#aaa;float:right;font-size:28px;font-weight:700}body.wp-admin .wpacu-close:focus,body.wp-admin .wpacu-close:hover{color:#000;text-decoration:none;cursor:pointer}.wpacu-bulk-changes-tabs{display:table;position:relative;overflow:hidden;margin:0;width:100%}.wpacu-bulk-changes-tabs li{border-top:1px solid rgba(40,44,42,.1);border-left:1px solid rgba(40,44,42,.1);border-bottom:1px solid rgba(40,44,42,.1);float:left;line-height:38px;padding:0;position:relative;margin-bottom:12px}.wpacu-bulk-changes-tabs li:last-child{border-right:1px solid rgba(40,44,42,.1)}.wpacu-bulk-changes-tabs a{position:relative;background:rgba(40,44,42,.05);color:#004567;font-size:14px;font-weight:500;display:block;letter-spacing:0;outline:0;padding:6px 20px;text-decoration:none;border-top:3px solid transparent}.wpacu-bulk-changes-tabs a:hover{background:#f1f1f1;border-top:3px solid transparent}.wpacu-bulk-changes-tabs .current a{background:#fff;border-top:3px solid #004567}.wpacu-bulk-changes-tabs .current a:hover{background:#fff}.wpacu-bulk-changes-tabs .current a:after,.wpacu-bulk-changes-tabs .current a:before{top:100%;left:50%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.wpacu-bulk-changes-tabs .current a:after{border-color:rgba(136,183,213,0);border-top-color:#fff;border-width:12px;margin-left:-12px}.wpacu-bulk-changes-tabs .current a:before{border-color:rgba(194,225,245,0);border-top-color:rgba(40,44,42,.1);border-width:13px;margin-left:-13px}
|
classes/AdminBar.php
CHANGED
@@ -13,6 +13,11 @@ class AdminBar
|
|
13 |
public function __construct()
|
14 |
{
|
15 |
add_action( 'init', array( $this, 'topBar' ) );
|
|
|
|
|
|
|
|
|
|
|
16 |
}
|
17 |
|
18 |
/**
|
@@ -20,7 +25,7 @@ class AdminBar
|
|
20 |
*/
|
21 |
public function topBar()
|
22 |
{
|
23 |
-
if (Menu::userCanManageAssets()) {
|
24 |
add_action( 'admin_bar_menu', array( $this, 'topBarInfo' ), 999 );
|
25 |
}
|
26 |
}
|
@@ -47,14 +52,14 @@ class AdminBar
|
|
47 |
$wp_admin_bar->add_menu(array(
|
48 |
'parent' => 'assetcleanup-parent',
|
49 |
'id' => 'assetcleanup-settings',
|
50 |
-
'title' => __('Settings',
|
51 |
'href' => admin_url( 'admin.php?page=' . WPACU_PLUGIN_ID . '_settings')
|
52 |
));
|
53 |
|
54 |
$wp_admin_bar->add_menu( array(
|
55 |
'parent' => 'assetcleanup-parent',
|
56 |
'id' => 'assetcleanup-clear-css-js-files-cache',
|
57 |
-
'title' => __('Clear CSS/JS Files Cache',
|
58 |
'href' => wp_nonce_url(admin_url('admin-post.php?action=assetcleanup_clear_assets_cache' . $goBackToCurrentUrl),
|
59 |
'assetcleanup_clear_assets_cache')
|
60 |
) );
|
@@ -70,7 +75,7 @@ class AdminBar
|
|
70 |
$wp_admin_bar->add_menu(array(
|
71 |
'parent' => 'assetcleanup-parent',
|
72 |
'id' => 'assetcleanup-homepage',
|
73 |
-
'title' => __('Manage Homepage Assets',
|
74 |
'href' => $homepageManageAssetsHref
|
75 |
));
|
76 |
} else {
|
@@ -80,7 +85,7 @@ class AdminBar
|
|
80 |
$wp_admin_bar->add_menu( array(
|
81 |
'parent' => 'assetcleanup-parent',
|
82 |
'id' => 'assetcleanup-homepage',
|
83 |
-
'title' => __('Manage Page Assets',
|
84 |
'href' => admin_url('admin.php?page=' . WPACU_PLUGIN_ID . '_assets_manager&wpacu_for=homepage')
|
85 |
) );
|
86 |
}
|
@@ -91,7 +96,7 @@ class AdminBar
|
|
91 |
$wp_admin_bar->add_menu(array(
|
92 |
'parent' => 'assetcleanup-parent',
|
93 |
'id' => 'assetcleanup-jump-to-assets-list',
|
94 |
-
'title' => __('Manage Page Assets',
|
95 |
'href' => '#wpacu_wrap_assets'
|
96 |
));
|
97 |
}
|
@@ -99,14 +104,14 @@ class AdminBar
|
|
99 |
$wp_admin_bar->add_menu(array(
|
100 |
'parent' => 'assetcleanup-parent',
|
101 |
'id' => 'assetcleanup-bulk-unloaded',
|
102 |
-
'title' => __('Bulk Changes',
|
103 |
'href' => admin_url( 'admin.php?page=' . WPACU_PLUGIN_ID . '_bulk_unloads')
|
104 |
));
|
105 |
|
106 |
$wp_admin_bar->add_menu(array(
|
107 |
'parent' => 'assetcleanup-parent',
|
108 |
'id' => 'assetcleanup-support-forum',
|
109 |
-
'title' => __('Support Forum',
|
110 |
'href' => 'https://wordpress.org/support/plugin/wp-asset-clean-up',
|
111 |
'meta' => array('target' => '_blank')
|
112 |
));
|
13 |
public function __construct()
|
14 |
{
|
15 |
add_action( 'init', array( $this, 'topBar' ) );
|
16 |
+
|
17 |
+
// Hide top WordPress admin bar on request for debugging purposes and a cleared view of the tested page
|
18 |
+
if (array_key_exists('wpacu_no_admin_bar', $_GET)) {
|
19 |
+
add_filter('show_admin_bar', '__return_false', PHP_INT_MAX);
|
20 |
+
}
|
21 |
}
|
22 |
|
23 |
/**
|
25 |
*/
|
26 |
public function topBar()
|
27 |
{
|
28 |
+
if (Menu::userCanManageAssets() && (! Main::instance()->settings['hide_from_admin_bar'])) {
|
29 |
add_action( 'admin_bar_menu', array( $this, 'topBarInfo' ), 999 );
|
30 |
}
|
31 |
}
|
52 |
$wp_admin_bar->add_menu(array(
|
53 |
'parent' => 'assetcleanup-parent',
|
54 |
'id' => 'assetcleanup-settings',
|
55 |
+
'title' => __('Settings', 'wp-asset-clean-up'),
|
56 |
'href' => admin_url( 'admin.php?page=' . WPACU_PLUGIN_ID . '_settings')
|
57 |
));
|
58 |
|
59 |
$wp_admin_bar->add_menu( array(
|
60 |
'parent' => 'assetcleanup-parent',
|
61 |
'id' => 'assetcleanup-clear-css-js-files-cache',
|
62 |
+
'title' => __('Clear CSS/JS Files Cache', 'wp-asset-clean-up'),
|
63 |
'href' => wp_nonce_url(admin_url('admin-post.php?action=assetcleanup_clear_assets_cache' . $goBackToCurrentUrl),
|
64 |
'assetcleanup_clear_assets_cache')
|
65 |
) );
|
75 |
$wp_admin_bar->add_menu(array(
|
76 |
'parent' => 'assetcleanup-parent',
|
77 |
'id' => 'assetcleanup-homepage',
|
78 |
+
'title' => __('Manage Homepage Assets', 'wp-asset-clean-up'),
|
79 |
'href' => $homepageManageAssetsHref
|
80 |
));
|
81 |
} else {
|
85 |
$wp_admin_bar->add_menu( array(
|
86 |
'parent' => 'assetcleanup-parent',
|
87 |
'id' => 'assetcleanup-homepage',
|
88 |
+
'title' => __('Manage Page Assets', 'wp-asset-clean-up'),
|
89 |
'href' => admin_url('admin.php?page=' . WPACU_PLUGIN_ID . '_assets_manager&wpacu_for=homepage')
|
90 |
) );
|
91 |
}
|
96 |
$wp_admin_bar->add_menu(array(
|
97 |
'parent' => 'assetcleanup-parent',
|
98 |
'id' => 'assetcleanup-jump-to-assets-list',
|
99 |
+
'title' => __('Manage Page Assets', 'wp-asset-clean-up'),
|
100 |
'href' => '#wpacu_wrap_assets'
|
101 |
));
|
102 |
}
|
104 |
$wp_admin_bar->add_menu(array(
|
105 |
'parent' => 'assetcleanup-parent',
|
106 |
'id' => 'assetcleanup-bulk-unloaded',
|
107 |
+
'title' => __('Bulk Changes', 'wp-asset-clean-up'),
|
108 |
'href' => admin_url( 'admin.php?page=' . WPACU_PLUGIN_ID . '_bulk_unloads')
|
109 |
));
|
110 |
|
111 |
$wp_admin_bar->add_menu(array(
|
112 |
'parent' => 'assetcleanup-parent',
|
113 |
'id' => 'assetcleanup-support-forum',
|
114 |
+
'title' => __('Support Forum', 'wp-asset-clean-up'),
|
115 |
'href' => 'https://wordpress.org/support/plugin/wp-asset-clean-up',
|
116 |
'meta' => array('target' => '_blank')
|
117 |
));
|
classes/BulkUnloads.php
CHANGED
@@ -138,7 +138,7 @@ class BulkUnloads
|
|
138 |
<div class="updated notice wpacu-notice is-dismissible">
|
139 |
<p><span class="dashicons dashicons-yes"></span>
|
140 |
<?php
|
141 |
-
_e('The selected styles/scripts were removed from the global unload list and they will now load in the pages/posts, unless you have other rules that would prevent them from loading.',
|
142 |
?>
|
143 |
</p>
|
144 |
</div>
|
@@ -155,7 +155,7 @@ class BulkUnloads
|
|
155 |
<p><span class="dashicons dashicons-yes"></span>
|
156 |
<?php
|
157 |
echo sprintf(
|
158 |
-
__('The selected styles/scripts were removed from the unload list for <strong><u>%s</u></strong> post type and they will now load in the pages/posts, unless you have other rules that would prevent them from loading.',
|
159 |
$this->wpacuPostType
|
160 |
);
|
161 |
?>
|
138 |
<div class="updated notice wpacu-notice is-dismissible">
|
139 |
<p><span class="dashicons dashicons-yes"></span>
|
140 |
<?php
|
141 |
+
_e('The selected styles/scripts were removed from the global unload list and they will now load in the pages/posts, unless you have other rules that would prevent them from loading.', 'wp-asset-clean-up');
|
142 |
?>
|
143 |
</p>
|
144 |
</div>
|
155 |
<p><span class="dashicons dashicons-yes"></span>
|
156 |
<?php
|
157 |
echo sprintf(
|
158 |
+
__('The selected styles/scripts were removed from the unload list for <strong><u>%s</u></strong> post type and they will now load in the pages/posts, unless you have other rules that would prevent them from loading.', 'wp-asset-clean-up'),
|
159 |
$this->wpacuPostType
|
160 |
);
|
161 |
?>
|
classes/CleanUp.php
CHANGED
@@ -90,6 +90,7 @@ class CleanUp
|
|
90 |
}, PHP_INT_MAX);
|
91 |
}
|
92 |
|
|
|
93 |
if ($settings['remove_html_comments']) {
|
94 |
add_action('wp_loaded', function () {
|
95 |
ob_start(function ($htmlSource) {
|
@@ -296,6 +297,7 @@ class CleanUp
|
|
296 |
if (strpos($removeHtmlCommentsExceptions, "\n") !== false) {
|
297 |
foreach (explode("\n", $removeHtmlCommentsExceptions) as $removeCommExceptionPattern) {
|
298 |
$removeCommExceptionPattern = trim($removeCommExceptionPattern);
|
|
|
299 |
if (stripos($entireComment, $removeCommExceptionPattern) !== false) {
|
300 |
continue 2;
|
301 |
}
|
@@ -336,4 +338,118 @@ class CleanUp
|
|
336 |
|
337 |
return trim($doc->saveHTML());
|
338 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
339 |
}
|
90 |
}, PHP_INT_MAX);
|
91 |
}
|
92 |
|
93 |
+
// Remove valid HTML Comments
|
94 |
if ($settings['remove_html_comments']) {
|
95 |
add_action('wp_loaded', function () {
|
96 |
ob_start(function ($htmlSource) {
|
297 |
if (strpos($removeHtmlCommentsExceptions, "\n") !== false) {
|
298 |
foreach (explode("\n", $removeHtmlCommentsExceptions) as $removeCommExceptionPattern) {
|
299 |
$removeCommExceptionPattern = trim($removeCommExceptionPattern);
|
300 |
+
|
301 |
if (stripos($entireComment, $removeCommExceptionPattern) !== false) {
|
302 |
continue 2;
|
303 |
}
|
338 |
|
339 |
return trim($doc->saveHTML());
|
340 |
}
|
341 |
+
|
342 |
+
/**
|
343 |
+
* @param $srcContains
|
344 |
+
* @param $htmlSource
|
345 |
+
*
|
346 |
+
* @return mixed
|
347 |
+
*/
|
348 |
+
public static function cleanLinkTagFromHtmlSource($srcContains, $htmlSource)
|
349 |
+
{
|
350 |
+
$srcContainsFormat = preg_quote($srcContains, '/');
|
351 |
+
$regExpPattern = '#<link[^>]*stylesheet[^>]*'. $srcContainsFormat. '.*(>)#Usmi';
|
352 |
+
|
353 |
+
preg_match_all($regExpPattern, $htmlSource, $matchesSourcesFromTags, PREG_SET_ORDER);
|
354 |
+
|
355 |
+
if (isset($matchesSourcesFromTags[0][0])) {
|
356 |
+
$linkTag = $matchesSourcesFromTags[0][0];
|
357 |
+
|
358 |
+
if (stripos($linkTag, '<link') === 0 && substr($linkTag, -1) === '>' && strip_tags($linkTag) === '') {
|
359 |
+
$htmlSource = str_replace($matchesSourcesFromTags[0][0], '', $htmlSource);
|
360 |
+
}
|
361 |
+
}
|
362 |
+
|
363 |
+
return $htmlSource;
|
364 |
+
}
|
365 |
+
|
366 |
+
/**
|
367 |
+
*
|
368 |
+
*/
|
369 |
+
public function doDisableEmojis()
|
370 |
+
{
|
371 |
+
// Emojis Actions and Filters
|
372 |
+
remove_action('admin_print_styles', 'print_emoji_styles');
|
373 |
+
remove_action('wp_head', 'print_emoji_detection_script', 7);
|
374 |
+
remove_action('admin_print_scripts', 'print_emoji_detection_script');
|
375 |
+
remove_action('wp_print_styles', 'print_emoji_styles');
|
376 |
+
|
377 |
+
remove_filter('wp_mail', 'wp_staticize_emoji_for_email');
|
378 |
+
remove_filter('the_content_feed', 'wp_staticize_emoji');
|
379 |
+
remove_filter('comment_text_rss', 'wp_staticize_emoji');
|
380 |
+
|
381 |
+
// TinyMCE Emojis
|
382 |
+
add_filter('tiny_mce_plugins', array($this, 'removeEmojisTinymce'));
|
383 |
+
|
384 |
+
add_filter('emoji_svg_url', '__return_false');
|
385 |
+
}
|
386 |
+
|
387 |
+
/**
|
388 |
+
* @param $plugins
|
389 |
+
*
|
390 |
+
* @return array
|
391 |
+
*/
|
392 |
+
public function removeEmojisTinymce($plugins)
|
393 |
+
{
|
394 |
+
if (is_array($plugins)) {
|
395 |
+
return array_diff($plugins, array('wpemoji'));
|
396 |
+
}
|
397 |
+
|
398 |
+
return array();
|
399 |
+
}
|
400 |
+
|
401 |
+
/**
|
402 |
+
*
|
403 |
+
*/
|
404 |
+
public function cleanUpHtmlOutputForAssetsCall()
|
405 |
+
{
|
406 |
+
// WP Rocket (No Minify or Concatenate)
|
407 |
+
add_filter('get_rocket_option_minify_css', '__return_false');
|
408 |
+
add_filter('get_rocket_option_minify_concatenate_css', '__return_false');
|
409 |
+
|
410 |
+
add_filter('get_rocket_option_minify_js', '__return_false');
|
411 |
+
add_filter('get_rocket_option_minify_concatenate_js', '__return_false');
|
412 |
+
|
413 |
+
// W3 Total Cache: No Minify
|
414 |
+
add_filter('w3tc_minify_enable', '__return_false');
|
415 |
+
|
416 |
+
// SG Optimizer Plugin
|
417 |
+
$sgOptimizerMapping = array(
|
418 |
+
'autoflush' => 'siteground_optimizer_autoflush_cache',
|
419 |
+
'dynamic-cache' => 'siteground_optimizer_enable_cache',
|
420 |
+
'memcache' => 'siteground_optimizer_enable_memcached',
|
421 |
+
'ssl-fix' => 'siteground_optimizer_fix_insecure_content',
|
422 |
+
'html' => 'siteground_optimizer_optimize_html',
|
423 |
+
'js' => 'siteground_optimizer_optimize_javascript',
|
424 |
+
'js-async' => 'siteground_optimizer_optimize_javascript_async',
|
425 |
+
'css' => 'siteground_optimizer_optimize_css',
|
426 |
+
'combine-css' => 'siteground_optimizer_combine_css',
|
427 |
+
'querystring' => 'siteground_optimizer_remove_query_strings',
|
428 |
+
'emojis' => 'siteground_optimizer_disable_emojis',
|
429 |
+
'images' => 'siteground_optimizer_optimize_images',
|
430 |
+
'lazyload_images' => 'siteground_optimizer_lazyload_images',
|
431 |
+
'lazyload_gravatars' => 'siteground_optimizer_lazyload_gravatars',
|
432 |
+
'lazyload_thumbnails' => 'siteground_optimizer_lazyload_thumbnails',
|
433 |
+
'lazyload_responsive' => 'siteground_optimizer_lazyload_responsive',
|
434 |
+
'lazyload_textwidgets' => 'siteground_optimizer_lazyload_textwidgets',
|
435 |
+
'ssl' => 'siteground_optimizer_ssl_enabled',
|
436 |
+
'gzip' => 'siteground_optimizer_enable_gzip_compression',
|
437 |
+
'browser-caching' => 'siteground_optimizer_enable_browser_caching',
|
438 |
+
);
|
439 |
+
|
440 |
+
foreach ($sgOptimizerMapping as $optionName) {
|
441 |
+
add_filter('pre_option_'.$optionName, '__return_false');
|
442 |
+
}
|
443 |
+
|
444 |
+
// Fallback in case SG Optimizer is triggered BEFORE Asset CleanUp and the filter above will not work
|
445 |
+
add_filter('sgo_css_combine_exclude', array($this, 'allCssHandles'));
|
446 |
+
add_filter('sgo_css_minify_exclude', array($this, 'allCssHandles'));
|
447 |
+
add_filter('sgo_js_minify_exclude', array($this, 'allJsHandles'));
|
448 |
+
add_filter('sgo_js_async_exclude', array($this, 'allJsHandles'));
|
449 |
+
|
450 |
+
add_filter('sgo_html_minify_exclude_params', function ($excludeParams) {
|
451 |
+
$excludeParams[] = WPACU_LOAD_ASSETS_REQ_KEY;
|
452 |
+
return $excludeParams;
|
453 |
+
});
|
454 |
+
}
|
455 |
}
|
classes/ImportExport.php
ADDED
@@ -0,0 +1,229 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
namespace WpAssetCleanUp;
|
3 |
+
|
4 |
+
use WpAssetCleanUp\OptimiseAssets\OptimizeCommon;
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Class ImportExport
|
8 |
+
* @package WpAssetCleanUp
|
9 |
+
*/
|
10 |
+
class ImportExport
|
11 |
+
{
|
12 |
+
/***** BEGIN EXPORT ******/
|
13 |
+
/**
|
14 |
+
* @return false|mixed|string|void
|
15 |
+
*/
|
16 |
+
public function jsonSettings()
|
17 |
+
{
|
18 |
+
$wpacuSettings = new Settings();
|
19 |
+
$settingsArray = $wpacuSettings->getAll();
|
20 |
+
return json_encode($settingsArray);
|
21 |
+
}
|
22 |
+
|
23 |
+
/**
|
24 |
+
* Was the "Export" button clicked? Do verifications and send the right headers
|
25 |
+
*/
|
26 |
+
public function doExport()
|
27 |
+
{
|
28 |
+
if (! Menu::userCanManageAssets()) {
|
29 |
+
return;
|
30 |
+
}
|
31 |
+
|
32 |
+
if (! Misc::getVar('post', 'wpacu_do_export_nonce')) {
|
33 |
+
return;
|
34 |
+
}
|
35 |
+
|
36 |
+
$wpacuExportFor = Misc::getVar('post', 'wpacu_export_for');
|
37 |
+
|
38 |
+
if (! $wpacuExportFor) {
|
39 |
+
return;
|
40 |
+
}
|
41 |
+
|
42 |
+
// Last important check
|
43 |
+
\check_admin_referer('wpacu_do_export', 'wpacu_do_export_nonce');
|
44 |
+
|
45 |
+
$exportComment = 'Exported via '.WPACU_PLUGIN_TITLE.' LITE (v'.WPACU_PLUGIN_VERSION.') - Timestamp: '.time();
|
46 |
+
|
47 |
+
// "Settings" values (could be just default ones if none are found in the database)
|
48 |
+
if ($wpacuExportFor === 'settings') {
|
49 |
+
$settingsJson = $this->jsonSettings();
|
50 |
+
|
51 |
+
$valuesArray = array(
|
52 |
+
'__comment' => $exportComment,
|
53 |
+
'settings' => json_decode($settingsJson, ARRAY_A)
|
54 |
+
);
|
55 |
+
|
56 |
+
$valuesJson = json_encode($valuesArray);
|
57 |
+
} elseif ($wpacuExportFor === 'everything') {
|
58 |
+
// "Settings"
|
59 |
+
$settingsJson = $this->jsonSettings();
|
60 |
+
|
61 |
+
// "Homepage"
|
62 |
+
$frontPageNoLoad = get_option(WPACU_PLUGIN_ID . '_front_page_no_load');
|
63 |
+
$frontPageNoLoadArray = json_decode($frontPageNoLoad, ARRAY_A);
|
64 |
+
|
65 |
+
$frontPageExceptionsListJson = get_option(WPACU_PLUGIN_ID . '_front_page_load_exceptions');
|
66 |
+
$frontPageExceptionsListArray = json_decode($frontPageExceptionsListJson, ARRAY_A);
|
67 |
+
|
68 |
+
// "Site-wide" Unloads
|
69 |
+
$globalUnloadListJson = get_option(WPACU_PLUGIN_ID . '_global_unload');
|
70 |
+
$globalUnloadArray = json_decode($globalUnloadListJson, ARRAY_A);
|
71 |
+
|
72 |
+
// "Bulk" unloads (for all pages, posts, custom post type)
|
73 |
+
$bulkUnloadListJson = get_option(WPACU_PLUGIN_ID . '_bulk_unload');
|
74 |
+
$bulkUnloadArray = json_decode($bulkUnloadListJson, ARRAY_A);
|
75 |
+
|
76 |
+
// Pages, Posts, Custom Post Types: All Metas
|
77 |
+
global $wpdb;
|
78 |
+
|
79 |
+
$wpacuPostMetaKeys = array(
|
80 |
+
'_' . WPACU_PLUGIN_ID . '_no_load', // All Unload Rules (CSS/JS Manager Meta Box)
|
81 |
+
'_' . WPACU_PLUGIN_ID . '_page_options', // All Options (Side Meta Box)
|
82 |
+
'_' . WPACU_PLUGIN_ID . '_load_exceptions' // Load Exceptions (if bulk rules are used)
|
83 |
+
);
|
84 |
+
$wpacuPostMetaKeysList = implode("','", $wpacuPostMetaKeys);
|
85 |
+
|
86 |
+
$sqlFetchAllMetas = <<<SQL
|
87 |
+
SELECT post_id, meta_key, meta_value FROM `{$wpdb->prefix}postmeta` WHERE meta_key IN ('{$wpacuPostMetaKeysList}')
|
88 |
+
SQL;
|
89 |
+
$allMetasResults = $wpdb->get_results($sqlFetchAllMetas, ARRAY_A);
|
90 |
+
|
91 |
+
// Export Field Names should be kept as they are and in case
|
92 |
+
// they are changed later on, a fallback should be in place
|
93 |
+
$valuesArray = array(
|
94 |
+
'__comment' => $exportComment,
|
95 |
+
'settings' => json_decode($settingsJson, ARRAY_A),
|
96 |
+
|
97 |
+
'homepage' => array(
|
98 |
+
'unloads' => $frontPageNoLoadArray,
|
99 |
+
'load_exceptions' => $frontPageExceptionsListArray
|
100 |
+
),
|
101 |
+
|
102 |
+
'global_unload' => $globalUnloadArray,
|
103 |
+
'bulk_unload' => $bulkUnloadArray,
|
104 |
+
'posts_metas' => $allMetasResults
|
105 |
+
);
|
106 |
+
|
107 |
+
$valuesJson = json_encode($valuesArray);
|
108 |
+
} else {
|
109 |
+
return; // has to be "Settings" or "Everything"
|
110 |
+
}
|
111 |
+
|
112 |
+
// Was the right selection made? Continue
|
113 |
+
$date = date('j-M-Y-H.i');
|
114 |
+
$host = parse_url(site_url(), PHP_URL_HOST);
|
115 |
+
|
116 |
+
header('Content-Type: application/json');
|
117 |
+
header('Content-Disposition: attachment; filename="asset-cleanup-exported-'.$wpacuExportFor.'-from-'.$host.'-'.$date.'.json"');
|
118 |
+
|
119 |
+
echo $valuesJson;
|
120 |
+
exit();
|
121 |
+
}
|
122 |
+
/***** END EXPORT ******/
|
123 |
+
|
124 |
+
/***** BEGIN IMPORT ******/
|
125 |
+
/**
|
126 |
+
*
|
127 |
+
*/
|
128 |
+
public function doImport()
|
129 |
+
{
|
130 |
+
if (! Menu::userCanManageAssets()) {
|
131 |
+
return;
|
132 |
+
}
|
133 |
+
|
134 |
+
if (! Misc::getVar('post', 'wpacu_do_import_nonce')) {
|
135 |
+
return;
|
136 |
+
}
|
137 |
+
|
138 |
+
$jsonTmpName = isset($_FILES['wpacu_import_file']['tmp_name']) ? $_FILES['wpacu_import_file']['tmp_name'] : false;
|
139 |
+
|
140 |
+
if (! $jsonTmpName) {
|
141 |
+
return;
|
142 |
+
}
|
143 |
+
|
144 |
+
// Last important check
|
145 |
+
\check_admin_referer('wpacu_do_import', 'wpacu_do_import_nonce');
|
146 |
+
|
147 |
+
if (! file_exists($jsonTmpName)) {
|
148 |
+
return;
|
149 |
+
}
|
150 |
+
|
151 |
+
$valuesJson = file_get_contents($jsonTmpName);
|
152 |
+
|
153 |
+
$valuesArray = json_decode($valuesJson, ARRAY_A);
|
154 |
+
|
155 |
+
if ( ! (JSON_ERROR_NONE === Misc::jsonLastError())) {
|
156 |
+
return;
|
157 |
+
}
|
158 |
+
|
159 |
+
$importedList = array();
|
160 |
+
|
161 |
+
// NOTE: The values are not replaced, but added to the existing ones (if any)
|
162 |
+
|
163 |
+
// "Settings" (Replace)
|
164 |
+
if (isset($valuesArray['settings']) && ! empty($valuesArray['settings'])) {
|
165 |
+
Misc::addUpdateOption(WPACU_PLUGIN_ID . '_settings', json_encode($valuesArray['settings']));
|
166 |
+
$importedList[] = 'settings';
|
167 |
+
}
|
168 |
+
|
169 |
+
// "Homepage" Unloads
|
170 |
+
if (isset($valuesArray['homepage']['unloads']['scripts'])
|
171 |
+
|| isset($valuesArray['homepage']['unloads']['styles'])) {
|
172 |
+
Misc::addUpdateOption(WPACU_PLUGIN_ID . '_front_page_no_load', json_encode($valuesArray['homepage']['unloads']));
|
173 |
+
$importedList[] = 'homepage_unloads';
|
174 |
+
}
|
175 |
+
|
176 |
+
// "Homepage" Load Exceptions
|
177 |
+
if (isset($valuesArray['homepage']['load_exceptions']['scripts'])
|
178 |
+
|| isset($valuesArray['homepage']['load_exceptions']['styles'])) {
|
179 |
+
Misc::addUpdateOption(WPACU_PLUGIN_ID . '_front_page_load_exceptions', json_encode($valuesArray['homepage']['load_exceptions']));
|
180 |
+
$importedList[] = 'homepage_exceptions';
|
181 |
+
}
|
182 |
+
|
183 |
+
// "Site-Wide" (Everywhere) Unloads
|
184 |
+
if (isset($valuesArray['global_unload']['scripts'])
|
185 |
+
|| isset($valuesArray['global_unload']['styles'])) {
|
186 |
+
Misc::addUpdateOption(WPACU_PLUGIN_ID . '_global_unload', json_encode($valuesArray['global_unload']));
|
187 |
+
$importedList[] = 'sitewide_unloads';
|
188 |
+
}
|
189 |
+
|
190 |
+
// Bulk Unloads (e.g. Unload on all pages of product post type)
|
191 |
+
if (isset($valuesArray['bulk_unload']['scripts'])
|
192 |
+
|| isset($valuesArray['bulk_unload']['styles'])) {
|
193 |
+
Misc::addUpdateOption(WPACU_PLUGIN_ID . '_bulk_unload', json_encode($valuesArray['bulk_unload']));
|
194 |
+
$importedList[] = 'bulk_unload';
|
195 |
+
}
|
196 |
+
|
197 |
+
// All Posts Metas (per page unloads, page options from side meta box)
|
198 |
+
if (isset($valuesArray['metas']) && ! empty($valuesArray['metas'])) {
|
199 |
+
foreach ($valuesArray['metas'] as $postValues) {
|
200 |
+
// It needs to have a post ID and meta key starting with _' . WPACU_PLUGIN_ID . '
|
201 |
+
if ( ! (isset($postValues['post_id'], $postValues['meta_key'])
|
202 |
+
&& strpos($postValues['meta_key'], '_' . WPACU_PLUGIN_ID) === 0) ) {
|
203 |
+
continue;
|
204 |
+
}
|
205 |
+
|
206 |
+
$postId = $postValues['post_id'];
|
207 |
+
$metaKey = $postValues['meta_key'];
|
208 |
+
$metaValue = $postValues['meta_value']; // already JSON encoded
|
209 |
+
|
210 |
+
if (! add_post_meta($postId, $metaKey, $metaValue, true)) {
|
211 |
+
update_post_meta($postId, $metaKey, $metaValue);
|
212 |
+
}
|
213 |
+
}
|
214 |
+
|
215 |
+
$importedList[] = 'posts_metas';
|
216 |
+
}
|
217 |
+
|
218 |
+
if (! empty($importedList)) {
|
219 |
+
// After import was completed, clear all CSS/JS cache
|
220 |
+
OptimizeCommon::clearAllCache();
|
221 |
+
|
222 |
+
set_transient('wpacu_import_done', json_encode($importedList), 30);
|
223 |
+
|
224 |
+
wp_redirect(admin_url('admin.php?page=wpassetcleanup_tools&wpacu_for=import_export&wpacu_time=' . time()));
|
225 |
+
exit();
|
226 |
+
}
|
227 |
+
}
|
228 |
+
/***** END IMPORT ******/
|
229 |
+
}
|
classes/Info.php
CHANGED
@@ -10,6 +10,14 @@ namespace WpAssetCleanUp;
|
|
10 |
*/
|
11 |
class Info
|
12 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
/**
|
14 |
*
|
15 |
*/
|
@@ -103,4 +111,31 @@ class Info
|
|
103 |
|
104 |
return array('has_icon' => false, 'output' => $locationChild);
|
105 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
}
|
10 |
*/
|
11 |
class Info
|
12 |
{
|
13 |
+
/**
|
14 |
+
* Info constructor.
|
15 |
+
*/
|
16 |
+
public function __construct()
|
17 |
+
{
|
18 |
+
add_action('wpacu_assets_plugin_notice_table_row', array($this, 'pluginNotice'));
|
19 |
+
}
|
20 |
+
|
21 |
/**
|
22 |
*
|
23 |
*/
|
111 |
|
112 |
return array('has_icon' => false, 'output' => $locationChild);
|
113 |
}
|
114 |
+
|
115 |
+
/**
|
116 |
+
* Notices about consequences in unloading assets from specific plugins
|
117 |
+
*
|
118 |
+
* @param $plugin
|
119 |
+
*/
|
120 |
+
public function pluginNotice($plugin)
|
121 |
+
{
|
122 |
+
$output = '';
|
123 |
+
|
124 |
+
// Elementor, Elementor Pro
|
125 |
+
if (in_array($plugin, array('elementor', 'elementor-pro'))) {
|
126 |
+
$wpacuPluginTitle = WPACU_PLUGIN_TITLE;
|
127 |
+
|
128 |
+
$output = <<<HTML
|
129 |
+
<tr class="wpacu_asset_row wpacu_notice_row">
|
130 |
+
<td valign="top">
|
131 |
+
<div class="wpacu-warning">
|
132 |
+
<p style="margin: 0 0 4px !important;"><small><span class="dashicons dashicons-warning"></span> Most (if not all) of this plugin's files are linked (child & parent) for maximum compatibility. Unloading one Elementor CSS/JS will likely trigger the unloading of other "children" associated with it. <strong>To avoid breaking the Elementor editor, {$wpacuPluginTitle} is deactivated in the page builder's edit & preview mode. If this page is not edited via Elementor and you don't need any of the plugin's functionality (widgets, templates etc.) here, you can unload the files below making sure to test the page after you updated it.</strong></small></p>
|
133 |
+
</div>
|
134 |
+
</td>
|
135 |
+
</tr>
|
136 |
+
HTML;
|
137 |
+
}
|
138 |
+
|
139 |
+
echo $output;
|
140 |
+
}
|
141 |
}
|
classes/Lite.php
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
namespace WpAssetCleanUp;
|
3 |
+
|
4 |
+
/**
|
5 |
+
* The code is triggered only in Asset CleanUp Lite
|
6 |
+
*
|
7 |
+
* Class Lite
|
8 |
+
* @package WpAssetCleanUp
|
9 |
+
*/
|
10 |
+
class Lite
|
11 |
+
{
|
12 |
+
/**
|
13 |
+
* Lite constructor.
|
14 |
+
*/
|
15 |
+
public function __construct()
|
16 |
+
{
|
17 |
+
add_action('current_screen', array($this, 'currentScreen'));
|
18 |
+
|
19 |
+
}
|
20 |
+
|
21 |
+
/**
|
22 |
+
*
|
23 |
+
*/
|
24 |
+
public function currentScreen()
|
25 |
+
{
|
26 |
+
$current_screen = \get_current_screen();
|
27 |
+
|
28 |
+
if ($current_screen->base === 'term' && isset($current_screen->taxonomy) && $current_screen->taxonomy != '') {
|
29 |
+
add_action ($current_screen->taxonomy . '_edit_form_fields', function ($tag) {
|
30 |
+
?>
|
31 |
+
<tr class="form-field">
|
32 |
+
<th scope="row" valign="top"><label for="wpassetcleanup_list"><?php echo WPACU_PLUGIN_TITLE; ?> <?php _e('CSS & JavaScript Load Manager', 'wp-asset-clean-up'); ?></label></th>
|
33 |
+
<td data-wpacu-taxonomy="<?php echo $tag->taxonomy; ?>">
|
34 |
+
<img width="20" height="20" src="<?php echo WPACU_PLUGIN_URL; ?>/assets/icons/icon-lock.svg" valign="top" alt="" />
|
35 |
+
<?php
|
36 |
+
echo sprintf(
|
37 |
+
__('Managing the loading of the styles & scripts files for this <strong>%s</strong> taxonomy is %savailable in the Pro version%s', 'wp-asset-clean-up'),
|
38 |
+
$tag->taxonomy,
|
39 |
+
'<a href="'.WPACU_PLUGIN_GO_PRO_URL.'?utm_source=taxonomy_edit_page&utm_medium=upgrade_link" target="_blank">',
|
40 |
+
'</a>'
|
41 |
+
);
|
42 |
+
?>
|
43 |
+
</td>
|
44 |
+
</tr>
|
45 |
+
<?php
|
46 |
+
});
|
47 |
+
}
|
48 |
+
}
|
49 |
+
|
50 |
+
}
|
classes/Main.php
CHANGED
@@ -98,12 +98,21 @@ class Main
|
|
98 |
/**
|
99 |
* @var int
|
100 |
*/
|
|
|
101 |
public $lastScriptPos = 1;
|
|
|
102 |
|
103 |
/**
|
104 |
* @var int
|
105 |
*/
|
|
|
106 |
public $lastStylePos = 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
|
108 |
/**
|
109 |
* @var array
|
@@ -161,14 +170,17 @@ class Main
|
|
161 |
'admin-bar', // The top admin bar
|
162 |
'yoast-seo-adminbar', // Yoast "WordPress SEO" plugin
|
163 |
'autoptimize-toolbar',
|
164 |
-
'query-monitor'
|
|
|
|
|
165 |
);
|
166 |
|
167 |
$this->skipAssets['scripts'] = array(
|
168 |
WPACU_PLUGIN_ID . '-script', // Asset CleanUp Script (for admin use only)
|
169 |
'admin-bar', // The top admin bar
|
170 |
'autoptimize-toolbar',
|
171 |
-
'query-monitor'
|
|
|
172 |
);
|
173 |
|
174 |
$this->isAjaxCall = (! empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) === 'xmlhttprequest');
|
@@ -180,8 +192,8 @@ class Main
|
|
180 |
|
181 |
// Fetch Assets AJAX Call? Make sure the output is as clean as possible (no plugins interfering with it)
|
182 |
if ($this->isGetAssetsCall) {
|
183 |
-
$
|
184 |
-
$
|
185 |
}
|
186 |
|
187 |
// "Direct" AJAX call or "WP Remote Post" method used?
|
@@ -201,11 +213,12 @@ class Main
|
|
201 |
if (! $this->isGetAssetsCall) { // No AJAX call from the Dashboard? Trigger the code below
|
202 |
// SG Optimizer Compatibility: Unload Styles - HEAD (Before pre_combine_header_styles() from Combinator)
|
203 |
if (get_option('siteground_optimizer_combine_css')) {
|
204 |
-
add_action(
|
205 |
}
|
206 |
|
207 |
// Unload Styles - HEAD
|
208 |
add_action( 'wp_print_styles', array( $this, 'filterStyles' ), 100000 );
|
|
|
209 |
|
210 |
// Unload Scripts - HEAD
|
211 |
add_action( 'wp_print_scripts', array( $this, 'filterScripts' ), 100000 );
|
@@ -222,10 +235,6 @@ class Main
|
|
222 |
array( $this, 'ajaxFetchActivePluginsIcons' ) );
|
223 |
|
224 |
$this->wpacuHtmlNoticeForAdmin();
|
225 |
-
|
226 |
-
// [wpacu_lite]
|
227 |
-
add_action('current_screen', array($this, 'currentScreen'));
|
228 |
-
// [/wpacu_lite]
|
229 |
}
|
230 |
|
231 |
/**
|
@@ -251,13 +260,12 @@ class Main
|
|
251 |
|
252 |
// Save CSS/JS list that is printed in the <BODY>
|
253 |
add_action('wp_footer', array($this, 'saveFooterScripts'), 100000000);
|
254 |
-
|
255 |
add_action('wp_footer', array($this, 'printScriptsStyles'), PHP_INT_MAX);
|
256 |
}
|
257 |
|
258 |
-
$metaboxes = new MetaBoxes;
|
259 |
-
|
260 |
if ( is_admin() ) {
|
|
|
|
|
261 |
// Do not load the meta box nor do any AJAX calls
|
262 |
// if the asset management is not enabled for the Dashboard
|
263 |
if ($this->settings['dashboard_show'] == 1) {
|
@@ -281,9 +289,16 @@ class Main
|
|
281 |
}
|
282 |
}
|
283 |
|
284 |
-
|
285 |
-
|
286 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
287 |
}
|
288 |
|
289 |
/**
|
@@ -300,8 +315,8 @@ class Main
|
|
300 |
&& !is_admin()); // 3
|
301 |
|
302 |
if ($this->isFrontendEditView) {
|
303 |
-
$
|
304 |
-
$
|
305 |
}
|
306 |
|
307 |
$this->getCurrentPostId();
|
@@ -416,16 +431,10 @@ class Main
|
|
416 |
$allScripts = $wp_scripts;
|
417 |
|
418 |
if ($allScripts !== null && ! empty($allScripts->registered)) {
|
419 |
-
|
420 |
-
|
421 |
-
foreach ($allScripts->registered as $handle => $value) {
|
422 |
// This could be triggered several times, check if the script already exists
|
423 |
if (! isset($this->wpAllScripts['registered'][$handle])) {
|
424 |
$this->wpAllScripts['registered'][$handle] = $value;
|
425 |
-
$this->wpAllScripts['registered'][$handle]->wpacu_pos = $i;
|
426 |
-
$this->lastScriptPos = $i;
|
427 |
-
$i++;
|
428 |
-
|
429 |
if (in_array($handle, $allScripts->queue)) {
|
430 |
$this->wpAllScripts['queue'][] = $handle;
|
431 |
}
|
@@ -539,20 +548,14 @@ class Main
|
|
539 |
|
540 |
global $wp_styles;
|
541 |
|
542 |
-
|
|
|
543 |
|
544 |
if ($allStyles !== null && ! empty($allStyles->registered)) {
|
545 |
-
$i = $this->lastStylePos;
|
546 |
-
|
547 |
foreach ($allStyles->registered as $handle => $value) {
|
548 |
// This could be triggered several times, check if the style already exists
|
549 |
if (! isset($this->wpAllStyles['registered'][$handle])) {
|
550 |
$this->wpAllStyles['registered'][$handle] = $value;
|
551 |
-
$this->wpAllStyles['registered'][$handle]->wpacu_pos = $i;
|
552 |
-
|
553 |
-
$this->lastStylePos = $i;
|
554 |
-
$i++;
|
555 |
-
|
556 |
if (in_array($handle, $allStyles->queue)) {
|
557 |
$this->wpAllStyles['queue'][] = $handle;
|
558 |
}
|
@@ -562,22 +565,23 @@ class Main
|
|
562 |
if (isset($this->wpAllStyles['queue']) && ! empty($this->wpAllStyles['queue'])) {
|
563 |
$this->wpAllStyles['queue'] = array_unique( $this->wpAllStyles['queue'] );
|
564 |
}
|
565 |
-
|
566 |
-
}
|
567 |
|
568 |
// e.g. for test mode or AJAX calls (where all assets have to load)
|
569 |
if ($this->preventUnloadAssets() === true) {
|
570 |
return;
|
571 |
}
|
572 |
|
573 |
-
|
|
|
|
|
574 |
|
575 |
// Nothing to unload?
|
576 |
if (empty($list)) {
|
577 |
return;
|
578 |
}
|
579 |
|
580 |
-
|
581 |
$handle = trim($handle);
|
582 |
|
583 |
wp_deregister_style($handle);
|
@@ -585,6 +589,101 @@ class Main
|
|
585 |
}
|
586 |
}
|
587 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
588 |
/**
|
589 |
* @param string $type
|
590 |
* @param string $postId
|
@@ -627,7 +726,7 @@ class Main
|
|
627 |
if ($exceptionsListJson) {
|
628 |
$exceptionsList = json_decode($exceptionsListJson, true);
|
629 |
|
630 |
-
if (
|
631 |
$exceptionsList = $exceptionsListDefault;
|
632 |
}
|
633 |
}
|
@@ -666,7 +765,7 @@ class Main
|
|
666 |
|
667 |
$existingListAll = json_decode($existingListAllJson, true);
|
668 |
|
669 |
-
if (
|
670 |
return $existingListEmpty;
|
671 |
}
|
672 |
|
@@ -689,33 +788,51 @@ class Main
|
|
689 |
*
|
690 |
*/
|
691 |
public function saveFooterStyles()
|
692 |
-
|
693 |
-
|
694 |
-
$this->stylesInHead = $this->wpAllStyles['queue'];
|
695 |
-
}
|
696 |
-
}
|
697 |
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
public function saveFooterScripts()
|
702 |
-
{
|
703 |
-
global $wp_scripts;
|
704 |
-
$this->assetsInFooter['scripts'] = (isset($wp_scripts->in_footer) && ! empty($wp_scripts->in_footer)) ? $wp_scripts->in_footer : array();
|
705 |
|
706 |
-
|
|
|
|
|
|
|
|
|
707 |
|
708 |
-
|
709 |
-
|
710 |
-
if ( ! in_array( $handle, $this->stylesInHead ) ) {
|
711 |
-
$footerStyles[] = $handle;
|
712 |
-
}
|
713 |
-
}
|
714 |
-
}
|
715 |
|
716 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
717 |
|
718 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
719 |
|
720 |
/**
|
721 |
* This output will be extracted and the JSON will be processed
|
@@ -789,12 +906,14 @@ class Main
|
|
789 |
}
|
790 |
}
|
791 |
|
792 |
-
$
|
793 |
-
$
|
|
|
|
|
794 |
|
795 |
if ($isFrontEndEditView) {
|
796 |
if (! empty($this->wpAllStyles) && isset($this->wpAllStyles['queue'])) {
|
797 |
-
$manageStyles = $this->wpAllStyles['queue'];
|
798 |
}
|
799 |
|
800 |
if (! empty($this->wpAllScripts) && isset($this->wpAllScripts['queue'])) {
|
@@ -809,8 +928,8 @@ class Main
|
|
809 |
}
|
810 |
}
|
811 |
|
812 |
-
if (! empty($
|
813 |
-
foreach ($
|
814 |
if ( ! in_array( $wpDoneStyle, $manageStyles ) ) {
|
815 |
$manageStyles[] = $wpDoneStyle;
|
816 |
}
|
@@ -841,11 +960,12 @@ class Main
|
|
841 |
/*
|
842 |
* Style List
|
843 |
*/
|
844 |
-
$
|
845 |
-
|
846 |
-
if ($isFrontEndEditView) {
|
847 |
$stylesList = $stylesBeforeUnload['registered'];
|
848 |
-
}
|
|
|
|
|
|
|
849 |
|
850 |
if (! empty($stylesList)) {
|
851 |
/* These styles below are used by this plugin (except admin-bar) and they should not show in the list
|
@@ -859,19 +979,11 @@ class Main
|
|
859 |
continue;
|
860 |
}
|
861 |
|
862 |
-
$
|
863 |
-
? $stylesBeforeUnload['registered'][$handle]->wpacu_pos
|
864 |
-
: '';
|
865 |
-
|
866 |
-
if ($wpacuPos) {
|
867 |
-
$list['styles'][$wpacuPos] = $stylesList[$handle];
|
868 |
-
} else {
|
869 |
-
$list['styles'][] = $stylesList[$handle];
|
870 |
-
}
|
871 |
}
|
872 |
|
873 |
// Append unloaded ones (if any)
|
874 |
-
if (!empty($stylesBeforeUnload) && ! empty($currentUnloadedAll['styles'])) {
|
875 |
foreach ($currentUnloadedAll['styles'] as $sbuHandle) {
|
876 |
if (! in_array($sbuHandle, $manageStyles)) {
|
877 |
// Could be an old style that is not loaded anymore
|
@@ -881,9 +993,7 @@ class Main
|
|
881 |
}
|
882 |
|
883 |
$sbuValue = $stylesBeforeUnload['registered'][$sbuHandle];
|
884 |
-
|
885 |
-
|
886 |
-
$list['styles'][$wpacuPos] = $sbuValue;
|
887 |
}
|
888 |
}
|
889 |
}
|
@@ -901,24 +1011,18 @@ class Main
|
|
901 |
}
|
902 |
|
903 |
if (! empty($scriptsList)) {
|
|
|
|
|
904 |
foreach ($manageScripts as $handle) {
|
905 |
-
/* These scripts below are used by this plugin (except admin-bar) and they should not show in the list
|
906 |
-
as they are loaded only when you (or other admin) manage the assets, never for your website visitors */
|
907 |
if (! isset($scriptsList[$handle]) || in_array($handle, $this->skipAssets['scripts'])) {
|
908 |
continue;
|
909 |
}
|
910 |
|
911 |
-
|
912 |
-
|
913 |
-
if ($wpacuPos) {
|
914 |
-
$list['scripts'][$wpacuPos] = $scriptsList[$handle];
|
915 |
-
} else {
|
916 |
-
$list['scripts'][] = $scriptsList[$handle];
|
917 |
-
}
|
918 |
}
|
919 |
|
920 |
// Append unloaded ones (if any)
|
921 |
-
if (!empty($scriptsBeforeUnload) && ! empty($currentUnloadedAll['scripts'])) {
|
922 |
foreach ($currentUnloadedAll['scripts'] as $sbuHandle) {
|
923 |
if (! in_array($sbuHandle, $manageScripts)) {
|
924 |
// Could be an old script that is not loaded anymore
|
@@ -928,9 +1032,8 @@ class Main
|
|
928 |
}
|
929 |
|
930 |
$sbuValue = $scriptsBeforeUnload['registered'][$sbuHandle];
|
931 |
-
$wpacuPos = $sbuValue->wpacu_pos;
|
932 |
|
933 |
-
|
934 |
}
|
935 |
}
|
936 |
}
|
@@ -1026,7 +1129,7 @@ class Main
|
|
1026 |
$data['total_styles'] = ! empty($data['all']['styles']) ? count($data['all']['styles']) : 0;
|
1027 |
$data['total_scripts'] = ! empty($data['all']['scripts']) ? count($data['all']['scripts']) : 0;
|
1028 |
|
1029 |
-
$data['all_deps']
|
1030 |
// [wpacu_lite]
|
1031 |
}
|
1032 |
// [/wpacu_lite]
|
@@ -1047,7 +1150,7 @@ class Main
|
|
1047 |
$list['scripts'] = $data['all']['scripts'];
|
1048 |
|
1049 |
echo self::START_DEL
|
1050 |
-
|
1051 |
self::END_DEL;
|
1052 |
|
1053 |
// Do not allow further processes as cache plugins such as W3 Total Cache could alter the source code
|
@@ -1097,7 +1200,7 @@ class Main
|
|
1097 |
// Not homepage, but a post/page? Check if it's published in case AJAX call
|
1098 |
// wasn't stopped due to JS errors or other reasons
|
1099 |
if ($postId > 0 && get_post_status($postId) !== 'publish') {
|
1100 |
-
exit(__('The CSS/JS files will be available to manage once the post/page is published.',
|
1101 |
}
|
1102 |
|
1103 |
$wpacuList = $contents = '';
|
@@ -1410,7 +1513,7 @@ class Main
|
|
1410 |
|
1411 |
@json_decode($this->assetsRemoved);
|
1412 |
|
1413 |
-
if (! (
|
1414 |
// Reset value to a JSON formatted one
|
1415 |
$this->assetsRemoved = json_encode(array('styles' => array(), 'scripts' => array()));
|
1416 |
}
|
@@ -1581,51 +1684,7 @@ class Main
|
|
1581 |
*/
|
1582 |
public static function isSettingsPage()
|
1583 |
{
|
1584 |
-
return (
|
1585 |
-
}
|
1586 |
-
|
1587 |
-
/**
|
1588 |
-
*
|
1589 |
-
*/
|
1590 |
-
public function doDisableEmojis()
|
1591 |
-
{
|
1592 |
-
/*
|
1593 |
-
DO NOT disable Emojis if the following apply:
|
1594 |
-
- Test Mode Enabled & Admin Logged in
|
1595 |
-
- The user is within the admin panel (Dashboard)
|
1596 |
-
*/
|
1597 |
-
if ($this->preventUnloadAssets() || is_admin()) {
|
1598 |
-
return;
|
1599 |
-
}
|
1600 |
-
|
1601 |
-
// Emojis Actions and Filters
|
1602 |
-
remove_action('admin_print_styles', 'print_emoji_styles');
|
1603 |
-
remove_action('wp_head', 'print_emoji_detection_script', 7);
|
1604 |
-
remove_action('admin_print_scripts', 'print_emoji_detection_script');
|
1605 |
-
remove_action('wp_print_styles', 'print_emoji_styles');
|
1606 |
-
|
1607 |
-
remove_filter('wp_mail', 'wp_staticize_emoji_for_email');
|
1608 |
-
remove_filter('the_content_feed', 'wp_staticize_emoji');
|
1609 |
-
remove_filter('comment_text_rss', 'wp_staticize_emoji');
|
1610 |
-
|
1611 |
-
// TinyMCE Emojis
|
1612 |
-
add_filter('tiny_mce_plugins', array($this, 'removeEmojisTinymce'));
|
1613 |
-
|
1614 |
-
add_filter('emoji_svg_url', '__return_false');
|
1615 |
-
}
|
1616 |
-
|
1617 |
-
/**
|
1618 |
-
* @param $plugins
|
1619 |
-
*
|
1620 |
-
* @return array
|
1621 |
-
*/
|
1622 |
-
public function removeEmojisTinymce($plugins)
|
1623 |
-
{
|
1624 |
-
if (is_array($plugins)) {
|
1625 |
-
return array_diff($plugins, array('wpemoji'));
|
1626 |
-
}
|
1627 |
-
|
1628 |
-
return array();
|
1629 |
}
|
1630 |
|
1631 |
/**
|
@@ -1654,7 +1713,7 @@ class Main
|
|
1654 |
} else {
|
1655 |
$existingList = json_decode($existingListJson, true);
|
1656 |
|
1657 |
-
if (
|
1658 |
$validJson = false;
|
1659 |
$existingList = $existingListEmpty;
|
1660 |
}
|
@@ -1697,37 +1756,6 @@ class Main
|
|
1697 |
return false;
|
1698 |
}
|
1699 |
|
1700 |
-
// [wpacu_lite]
|
1701 |
-
/**
|
1702 |
-
*
|
1703 |
-
*/
|
1704 |
-
public function currentScreen()
|
1705 |
-
{
|
1706 |
-
$current_screen = \get_current_screen();
|
1707 |
-
|
1708 |
-
if ($current_screen->base === 'term' && isset($current_screen->taxonomy) && $current_screen->taxonomy != '') {
|
1709 |
-
add_action ($current_screen->taxonomy . '_edit_form_fields', function ($tag) {
|
1710 |
-
?>
|
1711 |
-
<tr class="form-field">
|
1712 |
-
<th scope="row" valign="top"><label for="wpassetcleanup_list"><?php echo WPACU_PLUGIN_TITLE; ?> <?php _e('CSS & JavaScript Load Manager', WPACU_PLUGIN_TEXT_DOMAIN); ?></label></th>
|
1713 |
-
<td data-wpacu-taxonomy="<?php echo $tag->taxonomy; ?>">
|
1714 |
-
<img width="20" height="20" src="<?php echo WPACU_PLUGIN_URL; ?>/assets/icons/icon-lock.svg" valign="top" alt="" />
|
1715 |
-
<?php
|
1716 |
-
echo sprintf(
|
1717 |
-
__('Managing the loading of the styles & scripts files for this <strong>%s</strong> taxonomy is %savailable in the Pro version%s', WPACU_PLUGIN_TEXT_DOMAIN),
|
1718 |
-
$tag->taxonomy,
|
1719 |
-
'<a href="'.WPACU_PLUGIN_GO_PRO_URL.'?utm_source=taxonomy_edit_page&utm_medium=upgrade_link" target="_blank">',
|
1720 |
-
'</a>'
|
1721 |
-
);
|
1722 |
-
?>
|
1723 |
-
</td>
|
1724 |
-
</tr>
|
1725 |
-
<?php
|
1726 |
-
});
|
1727 |
-
}
|
1728 |
-
}
|
1729 |
-
// [/wpacu_lite]
|
1730 |
-
|
1731 |
/**
|
1732 |
* @return bool
|
1733 |
*/
|
@@ -1778,14 +1806,14 @@ class Main
|
|
1778 |
}
|
1779 |
|
1780 |
if (Main::instance()->settings['test_mode']) {
|
1781 |
-
$consoleMessage = __('Asset CleanUp: "TEST MODE" ENABLED (any settings or unloads will be visible ONLY to you, the logged-in administrator)',
|
1782 |
-
$testModeNotice = __('"Test Mode" is ENABLED. Any settings or unloads will be visible ONLY to you, the logged-in administrator.',
|
1783 |
} else {
|
1784 |
-
$consoleMessage = __('Asset CleanUp: "LIVE MODE" (test mode is not enabled, thus, all the plugin changes are visible for everyone: you, the logged-in administrator and the regular visitors)',
|
1785 |
-
$testModeNotice = __('The website is in LIVE MODE as "Test Mode" is not enabled. All the plugin changes are visible for everyone: logged-in administrators and regular visitors.',
|
1786 |
}
|
1787 |
|
1788 |
-
$htmlCommentNote = __('NOTE: These "Asset CleanUp: Page Speed Booster" messages are only shown to you, the HTML comment is not visible for the regular visitor.',
|
1789 |
?>
|
1790 |
<!--
|
1791 |
<?php echo $htmlCommentNote; ?>
|
98 |
/**
|
99 |
* @var int
|
100 |
*/
|
101 |
+
/*
|
102 |
public $lastScriptPos = 1;
|
103 |
+
*/
|
104 |
|
105 |
/**
|
106 |
* @var int
|
107 |
*/
|
108 |
+
/*
|
109 |
public $lastStylePos = 1;
|
110 |
+
*/
|
111 |
+
|
112 |
+
public static $wpStylesSpecialDelimiters = array(
|
113 |
+
'start' => '<!--START-WPACU-SPECIAL-STYLES',
|
114 |
+
'end' => 'END-WPACU-SPECIAL-STYLES-->'
|
115 |
+
);
|
116 |
|
117 |
/**
|
118 |
* @var array
|
170 |
'admin-bar', // The top admin bar
|
171 |
'yoast-seo-adminbar', // Yoast "WordPress SEO" plugin
|
172 |
'autoptimize-toolbar',
|
173 |
+
'query-monitor',
|
174 |
+
'wp-fastest-cache-toolbar', // WP Fastest Cache plugin toolbar CSS
|
175 |
+
'litespeed-cache' // LiteSpeed toolbar
|
176 |
);
|
177 |
|
178 |
$this->skipAssets['scripts'] = array(
|
179 |
WPACU_PLUGIN_ID . '-script', // Asset CleanUp Script (for admin use only)
|
180 |
'admin-bar', // The top admin bar
|
181 |
'autoptimize-toolbar',
|
182 |
+
'query-monitor',
|
183 |
+
'wpfc-toolbar' // WP Fastest Cache plugin toolbar JS
|
184 |
);
|
185 |
|
186 |
$this->isAjaxCall = (! empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) === 'xmlhttprequest');
|
192 |
|
193 |
// Fetch Assets AJAX Call? Make sure the output is as clean as possible (no plugins interfering with it)
|
194 |
if ($this->isGetAssetsCall) {
|
195 |
+
$wpacuCleanUp = new CleanUp();
|
196 |
+
$wpacuCleanUp->cleanUpHtmlOutputForAssetsCall();
|
197 |
}
|
198 |
|
199 |
// "Direct" AJAX call or "WP Remote Post" method used?
|
213 |
if (! $this->isGetAssetsCall) { // No AJAX call from the Dashboard? Trigger the code below
|
214 |
// SG Optimizer Compatibility: Unload Styles - HEAD (Before pre_combine_header_styles() from Combinator)
|
215 |
if (get_option('siteground_optimizer_combine_css')) {
|
216 |
+
add_action('wp_print_styles', array($this, 'filterStyles'), 9); // priority should be below 10
|
217 |
}
|
218 |
|
219 |
// Unload Styles - HEAD
|
220 |
add_action( 'wp_print_styles', array( $this, 'filterStyles' ), 100000 );
|
221 |
+
$this->filterStylesSpecialCases();
|
222 |
|
223 |
// Unload Scripts - HEAD
|
224 |
add_action( 'wp_print_scripts', array( $this, 'filterScripts' ), 100000 );
|
235 |
array( $this, 'ajaxFetchActivePluginsIcons' ) );
|
236 |
|
237 |
$this->wpacuHtmlNoticeForAdmin();
|
|
|
|
|
|
|
|
|
238 |
}
|
239 |
|
240 |
/**
|
260 |
|
261 |
// Save CSS/JS list that is printed in the <BODY>
|
262 |
add_action('wp_footer', array($this, 'saveFooterScripts'), 100000000);
|
|
|
263 |
add_action('wp_footer', array($this, 'printScriptsStyles'), PHP_INT_MAX);
|
264 |
}
|
265 |
|
|
|
|
|
266 |
if ( is_admin() ) {
|
267 |
+
$metaboxes = new MetaBoxes;
|
268 |
+
|
269 |
// Do not load the meta box nor do any AJAX calls
|
270 |
// if the asset management is not enabled for the Dashboard
|
271 |
if ($this->settings['dashboard_show'] == 1) {
|
289 |
}
|
290 |
}
|
291 |
|
292 |
+
/*
|
293 |
+
DO NOT disable Emojis if the following apply:
|
294 |
+
- "Disable Emojis" option is not enabled
|
295 |
+
- Test Mode Enabled & Admin Logged in
|
296 |
+
- The user is in the Dashboard (any changes are applied in the front-end view)
|
297 |
+
*/
|
298 |
+
if ( $this->settings['disable_emojis'] == 1 && (! ($this->preventUnloadAssets() || is_admin())) ) {
|
299 |
+
$wpacuCleanUp = new CleanUp();
|
300 |
+
$wpacuCleanUp->doDisableEmojis();
|
301 |
+
}
|
302 |
}
|
303 |
|
304 |
/**
|
315 |
&& !is_admin()); // 3
|
316 |
|
317 |
if ($this->isFrontendEditView) {
|
318 |
+
$wpacuCleanUp = new CleanUp();
|
319 |
+
$wpacuCleanUp->cleanUpHtmlOutputForAssetsCall();
|
320 |
}
|
321 |
|
322 |
$this->getCurrentPostId();
|
431 |
$allScripts = $wp_scripts;
|
432 |
|
433 |
if ($allScripts !== null && ! empty($allScripts->registered)) {
|
434 |
+
foreach ($allScripts->registered as $handle => $value) {
|
|
|
|
|
435 |
// This could be triggered several times, check if the script already exists
|
436 |
if (! isset($this->wpAllScripts['registered'][$handle])) {
|
437 |
$this->wpAllScripts['registered'][$handle] = $value;
|
|
|
|
|
|
|
|
|
438 |
if (in_array($handle, $allScripts->queue)) {
|
439 |
$this->wpAllScripts['queue'][] = $handle;
|
440 |
}
|
548 |
|
549 |
global $wp_styles;
|
550 |
|
551 |
+
// Add handles such as the Oxygen Builder CSS ones that are missing and added differently to the queue
|
552 |
+
$allStyles = $this->wpStylesFilter($wp_styles, 'registered', $list);
|
553 |
|
554 |
if ($allStyles !== null && ! empty($allStyles->registered)) {
|
|
|
|
|
555 |
foreach ($allStyles->registered as $handle => $value) {
|
556 |
// This could be triggered several times, check if the style already exists
|
557 |
if (! isset($this->wpAllStyles['registered'][$handle])) {
|
558 |
$this->wpAllStyles['registered'][$handle] = $value;
|
|
|
|
|
|
|
|
|
|
|
559 |
if (in_array($handle, $allStyles->queue)) {
|
560 |
$this->wpAllStyles['queue'][] = $handle;
|
561 |
}
|
565 |
if (isset($this->wpAllStyles['queue']) && ! empty($this->wpAllStyles['queue'])) {
|
566 |
$this->wpAllStyles['queue'] = array_unique( $this->wpAllStyles['queue'] );
|
567 |
}
|
568 |
+
}
|
|
|
569 |
|
570 |
// e.g. for test mode or AJAX calls (where all assets have to load)
|
571 |
if ($this->preventUnloadAssets() === true) {
|
572 |
return;
|
573 |
}
|
574 |
|
575 |
+
if (isset($this->wpAllStyles['registered']) && ! empty($this->wpAllStyles['registered'])) {
|
576 |
+
wp_cache_set('wpacu_all_styles_handles', array_keys($this->wpAllStyles['registered']));
|
577 |
+
}
|
578 |
|
579 |
// Nothing to unload?
|
580 |
if (empty($list)) {
|
581 |
return;
|
582 |
}
|
583 |
|
584 |
+
foreach ($list as $handle) {
|
585 |
$handle = trim($handle);
|
586 |
|
587 |
wp_deregister_style($handle);
|
589 |
}
|
590 |
}
|
591 |
|
592 |
+
/**
|
593 |
+
* @param $wpStylesFilter
|
594 |
+
* @param string $listType
|
595 |
+
* @param array $unloadedList
|
596 |
+
*
|
597 |
+
* @return mixed
|
598 |
+
*/
|
599 |
+
public function wpStylesFilter($wpStylesFilter, $listType, $unloadedList = array())
|
600 |
+
{
|
601 |
+
global $wp_styles, $oxygen_vsb_css_styles;
|
602 |
+
|
603 |
+
if ($listType === 'registered') {
|
604 |
+
if (isset($oxygen_vsb_css_styles->registered) && is_object($oxygen_vsb_css_styles) && ! empty($oxygen_vsb_css_styles->registered)) {
|
605 |
+
$stylesSpecialCases = array();
|
606 |
+
|
607 |
+
foreach ($oxygen_vsb_css_styles->registered as $oxygenHandle => $oxygenValue) {
|
608 |
+
if (! array_key_exists($oxygenHandle, $wp_styles->registered)) {
|
609 |
+
$wpStylesFilter->registered[$oxygenHandle] = $oxygenValue;
|
610 |
+
$stylesSpecialCases[$oxygenHandle] = $oxygenValue->src;
|
611 |
+
}
|
612 |
+
}
|
613 |
+
|
614 |
+
$unloadedSpecialCases = array();
|
615 |
+
|
616 |
+
foreach ($unloadedList as $unloadedHandle) {
|
617 |
+
if (array_key_exists($unloadedHandle, $stylesSpecialCases)) {
|
618 |
+
$unloadedSpecialCases[$unloadedHandle] = $stylesSpecialCases[$unloadedHandle];
|
619 |
+
}
|
620 |
+
}
|
621 |
+
|
622 |
+
if (! empty($unloadedSpecialCases)) {
|
623 |
+
// This will be later used in 'wp_loaded' below to extract the special styles
|
624 |
+
echo self::$wpStylesSpecialDelimiters['start'] . json_encode($unloadedSpecialCases) . self::$wpStylesSpecialDelimiters['end'];
|
625 |
+
}
|
626 |
+
}
|
627 |
+
}
|
628 |
+
|
629 |
+
if ($listType === 'done') {
|
630 |
+
if (isset($oxygen_vsb_css_styles->done) && is_object($oxygen_vsb_css_styles)) {
|
631 |
+
foreach ($oxygen_vsb_css_styles->done as $oxygenHandle) {
|
632 |
+
if (! in_array($oxygenHandle, $wp_styles->done)) {
|
633 |
+
$wpStylesFilter[] = $oxygenHandle;
|
634 |
+
}
|
635 |
+
}
|
636 |
+
}
|
637 |
+
}
|
638 |
+
|
639 |
+
if ($listType === 'queue') {
|
640 |
+
if (isset($oxygen_vsb_css_styles->queue) && is_object($oxygen_vsb_css_styles)) {
|
641 |
+
foreach ($oxygen_vsb_css_styles->queue as $oxygenHandle) {
|
642 |
+
if (! in_array($oxygenHandle, $wp_styles->queue)) {
|
643 |
+
$wpStylesFilter[] = $oxygenHandle;
|
644 |
+
}
|
645 |
+
}
|
646 |
+
}
|
647 |
+
}
|
648 |
+
|
649 |
+
return $wpStylesFilter;
|
650 |
+
}
|
651 |
+
|
652 |
+
/**
|
653 |
+
*
|
654 |
+
*/
|
655 |
+
public function filterStylesSpecialCases()
|
656 |
+
{
|
657 |
+
add_action('wp_loaded', function() {
|
658 |
+
ob_start(function($htmlSource) {
|
659 |
+
if (strpos($htmlSource, self::$wpStylesSpecialDelimiters['start']) === false && strpos($htmlSource, self::$wpStylesSpecialDelimiters['end']) === false) {
|
660 |
+
return $htmlSource;
|
661 |
+
}
|
662 |
+
|
663 |
+
$jsonStylesSpecialCases = Misc::extractBetween($htmlSource, self::$wpStylesSpecialDelimiters['start'], self::$wpStylesSpecialDelimiters['end']);
|
664 |
+
|
665 |
+
$stylesSpecialCases = json_decode($jsonStylesSpecialCases, ARRAY_A);
|
666 |
+
|
667 |
+
if (Misc::jsonLastError() === JSON_ERROR_NONE && ! empty($stylesSpecialCases)) {
|
668 |
+
foreach ($stylesSpecialCases as $styleHandle => $styleSrc) {
|
669 |
+
$styleLocalSrc = Misc::getLocalSrc($styleSrc);
|
670 |
+
$styleRelSrc = isset($styleLocalSrc['rel_src']) ? $styleLocalSrc['rel_src'] : $styleSrc;
|
671 |
+
$htmlSource = CleanUp::cleanLinkTagFromHtmlSource($styleRelSrc, $htmlSource);
|
672 |
+
}
|
673 |
+
|
674 |
+
// Strip the info HTML comment
|
675 |
+
$htmlSource = str_replace(
|
676 |
+
self::$wpStylesSpecialDelimiters['start'] . $jsonStylesSpecialCases . self::$wpStylesSpecialDelimiters['end'],
|
677 |
+
'',
|
678 |
+
$htmlSource
|
679 |
+
);
|
680 |
+
}
|
681 |
+
|
682 |
+
return $htmlSource;
|
683 |
+
});
|
684 |
+
}, 1);
|
685 |
+
}
|
686 |
+
|
687 |
/**
|
688 |
* @param string $type
|
689 |
* @param string $postId
|
726 |
if ($exceptionsListJson) {
|
727 |
$exceptionsList = json_decode($exceptionsListJson, true);
|
728 |
|
729 |
+
if (Misc::jsonLastError() !== JSON_ERROR_NONE) {
|
730 |
$exceptionsList = $exceptionsListDefault;
|
731 |
}
|
732 |
}
|
765 |
|
766 |
$existingListAll = json_decode($existingListAllJson, true);
|
767 |
|
768 |
+
if (Misc::jsonLastError() !== JSON_ERROR_NONE) {
|
769 |
return $existingListEmpty;
|
770 |
}
|
771 |
|
788 |
*
|
789 |
*/
|
790 |
public function saveFooterStyles()
|
791 |
+
{
|
792 |
+
global $wp_styles;
|
|
|
|
|
|
|
793 |
|
794 |
+
if (isset($this->wpAllStyles['queue']) && ! empty($this->wpAllStyles['queue'])) {
|
795 |
+
$this->stylesInHead = $this->wpAllStyles['queue'];
|
796 |
+
}
|
|
|
|
|
|
|
|
|
797 |
|
798 |
+
if (isset($wp_styles->queue) && ! empty($wp_styles->queue)) {
|
799 |
+
foreach ($wp_styles->queue as $styleHandle) {
|
800 |
+
$this->stylesInHead[] = $styleHandle;
|
801 |
+
}
|
802 |
+
}
|
803 |
|
804 |
+
$this->stylesInHead = array_unique($this->stylesInHead);
|
805 |
+
}
|
|
|
|
|
|
|
|
|
|
|
806 |
|
807 |
+
/**
|
808 |
+
*
|
809 |
+
*/
|
810 |
+
public function saveFooterScripts()
|
811 |
+
{
|
812 |
+
global $wp_scripts, $wp_styles;
|
813 |
+
$this->assetsInFooter['scripts'] = (isset($wp_scripts->in_footer) && ! empty($wp_scripts->in_footer)) ? $wp_scripts->in_footer : array();
|
814 |
|
815 |
+
$footerStyles = array();
|
816 |
+
|
817 |
+
if (isset($this->wpAllStyles['queue']) && ! empty($this->wpAllStyles['queue'])) {
|
818 |
+
foreach ( $this->wpAllStyles['queue'] as $handle ) {
|
819 |
+
if ( ! in_array( $handle, $this->stylesInHead ) ) {
|
820 |
+
$footerStyles[] = $handle;
|
821 |
+
}
|
822 |
+
}
|
823 |
+
}
|
824 |
+
|
825 |
+
if (isset($wp_styles->queue) && ! empty($wp_styles->queue)) {
|
826 |
+
foreach ( $wp_styles->queue as $handle ) {
|
827 |
+
if ( ! in_array( $handle, $this->stylesInHead ) ) {
|
828 |
+
$footerStyles[] = $handle;
|
829 |
+
}
|
830 |
+
}
|
831 |
+
}
|
832 |
+
|
833 |
+
$this->assetsInFooter['styles'] = $footerStyles;
|
834 |
+
|
835 |
+
}
|
836 |
|
837 |
/**
|
838 |
* This output will be extracted and the JSON will be processed
|
906 |
}
|
907 |
}
|
908 |
|
909 |
+
$manageStylesCore = $wp_styles->done;
|
910 |
+
$manageStyles = $this->wpStylesFilter($wp_styles->done, 'done');
|
911 |
+
|
912 |
+
$manageScripts = $wp_scripts->done;
|
913 |
|
914 |
if ($isFrontEndEditView) {
|
915 |
if (! empty($this->wpAllStyles) && isset($this->wpAllStyles['queue'])) {
|
916 |
+
$manageStyles = $this->wpStylesFilter($this->wpAllStyles['queue'], 'queue');
|
917 |
}
|
918 |
|
919 |
if (! empty($this->wpAllScripts) && isset($this->wpAllScripts['queue'])) {
|
928 |
}
|
929 |
}
|
930 |
|
931 |
+
if (! empty($manageStylesCore)) {
|
932 |
+
foreach ($manageStylesCore as $wpDoneStyle) {
|
933 |
if ( ! in_array( $wpDoneStyle, $manageStyles ) ) {
|
934 |
$manageStyles[] = $wpDoneStyle;
|
935 |
}
|
960 |
/*
|
961 |
* Style List
|
962 |
*/
|
963 |
+
if ($isFrontEndEditView) { // "Manage in the Front-end"
|
|
|
|
|
964 |
$stylesList = $stylesBeforeUnload['registered'];
|
965 |
+
} else { // "Manage in the Dashboard"
|
966 |
+
$stylesListFilterAll = $this->wpStylesFilter($wp_styles, 'registered');
|
967 |
+
$stylesList = $stylesListFilterAll->registered;
|
968 |
+
}
|
969 |
|
970 |
if (! empty($stylesList)) {
|
971 |
/* These styles below are used by this plugin (except admin-bar) and they should not show in the list
|
979 |
continue;
|
980 |
}
|
981 |
|
982 |
+
$list['styles'][] = $stylesList[$handle];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
983 |
}
|
984 |
|
985 |
// Append unloaded ones (if any)
|
986 |
+
if (! empty($stylesBeforeUnload) && ! empty($currentUnloadedAll['styles'])) {
|
987 |
foreach ($currentUnloadedAll['styles'] as $sbuHandle) {
|
988 |
if (! in_array($sbuHandle, $manageStyles)) {
|
989 |
// Could be an old style that is not loaded anymore
|
993 |
}
|
994 |
|
995 |
$sbuValue = $stylesBeforeUnload['registered'][$sbuHandle];
|
996 |
+
$list['styles'][] = $sbuValue;
|
|
|
|
|
997 |
}
|
998 |
}
|
999 |
}
|
1011 |
}
|
1012 |
|
1013 |
if (! empty($scriptsList)) {
|
1014 |
+
/* These scripts below are used by this plugin (except admin-bar) and they should not show in the list
|
1015 |
+
as they are loaded only when you (or other admin) manage the assets, never for your website visitors */
|
1016 |
foreach ($manageScripts as $handle) {
|
|
|
|
|
1017 |
if (! isset($scriptsList[$handle]) || in_array($handle, $this->skipAssets['scripts'])) {
|
1018 |
continue;
|
1019 |
}
|
1020 |
|
1021 |
+
$list['scripts'][] = $scriptsList[$handle];
|
|
|
|
|
|
|
|
|
|
|
|
|
1022 |
}
|
1023 |
|
1024 |
// Append unloaded ones (if any)
|
1025 |
+
if (! empty($scriptsBeforeUnload) && ! empty($currentUnloadedAll['scripts'])) {
|
1026 |
foreach ($currentUnloadedAll['scripts'] as $sbuHandle) {
|
1027 |
if (! in_array($sbuHandle, $manageScripts)) {
|
1028 |
// Could be an old script that is not loaded anymore
|
1032 |
}
|
1033 |
|
1034 |
$sbuValue = $scriptsBeforeUnload['registered'][$sbuHandle];
|
|
|
1035 |
|
1036 |
+
$list['scripts'][] = $sbuValue;
|
1037 |
}
|
1038 |
}
|
1039 |
}
|
1129 |
$data['total_styles'] = ! empty($data['all']['styles']) ? count($data['all']['styles']) : 0;
|
1130 |
$data['total_scripts'] = ! empty($data['all']['scripts']) ? count($data['all']['scripts']) : 0;
|
1131 |
|
1132 |
+
$data['all_deps'] = $this->getAllDeps($data['all']);
|
1133 |
// [wpacu_lite]
|
1134 |
}
|
1135 |
// [/wpacu_lite]
|
1150 |
$list['scripts'] = $data['all']['scripts'];
|
1151 |
|
1152 |
echo self::START_DEL
|
1153 |
+
.base64_encode(json_encode($list)).
|
1154 |
self::END_DEL;
|
1155 |
|
1156 |
// Do not allow further processes as cache plugins such as W3 Total Cache could alter the source code
|
1200 |
// Not homepage, but a post/page? Check if it's published in case AJAX call
|
1201 |
// wasn't stopped due to JS errors or other reasons
|
1202 |
if ($postId > 0 && get_post_status($postId) !== 'publish') {
|
1203 |
+
exit(__('The CSS/JS files will be available to manage once the post/page is published.', 'wp-asset-clean-up'));
|
1204 |
}
|
1205 |
|
1206 |
$wpacuList = $contents = '';
|
1513 |
|
1514 |
@json_decode($this->assetsRemoved);
|
1515 |
|
1516 |
+
if (! (Misc::jsonLastError() === JSON_ERROR_NONE) || empty($this->assetsRemoved)) {
|
1517 |
// Reset value to a JSON formatted one
|
1518 |
$this->assetsRemoved = json_encode(array('styles' => array(), 'scripts' => array()));
|
1519 |
}
|
1684 |
*/
|
1685 |
public static function isSettingsPage()
|
1686 |
{
|
1687 |
+
return (Misc::getVar('get', 'page') === WPACU_PLUGIN_ID . '_settings');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1688 |
}
|
1689 |
|
1690 |
/**
|
1713 |
} else {
|
1714 |
$existingList = json_decode($existingListJson, true);
|
1715 |
|
1716 |
+
if (Misc::jsonLastError() !== JSON_ERROR_NONE) {
|
1717 |
$validJson = false;
|
1718 |
$existingList = $existingListEmpty;
|
1719 |
}
|
1756 |
return false;
|
1757 |
}
|
1758 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1759 |
/**
|
1760 |
* @return bool
|
1761 |
*/
|
1806 |
}
|
1807 |
|
1808 |
if (Main::instance()->settings['test_mode']) {
|
1809 |
+
$consoleMessage = __('Asset CleanUp: "TEST MODE" ENABLED (any settings or unloads will be visible ONLY to you, the logged-in administrator)', 'wp-asset-clean-up');
|
1810 |
+
$testModeNotice = __('"Test Mode" is ENABLED. Any settings or unloads will be visible ONLY to you, the logged-in administrator.', 'wp-asset-clean-up');
|
1811 |
} else {
|
1812 |
+
$consoleMessage = __('Asset CleanUp: "LIVE MODE" (test mode is not enabled, thus, all the plugin changes are visible for everyone: you, the logged-in administrator and the regular visitors)', 'wp-asset-clean-up');
|
1813 |
+
$testModeNotice = __('The website is in LIVE MODE as "Test Mode" is not enabled. All the plugin changes are visible for everyone: logged-in administrators and regular visitors.', 'wp-asset-clean-up');
|
1814 |
}
|
1815 |
|
1816 |
+
$htmlCommentNote = __('NOTE: These "Asset CleanUp: Page Speed Booster" messages are only shown to you, the HTML comment is not visible for the regular visitor.', 'wp-asset-clean-up');
|
1817 |
?>
|
1818 |
<!--
|
1819 |
<?php echo $htmlCommentNote; ?>
|
classes/Menu.php
CHANGED
@@ -43,8 +43,8 @@ class Menu
|
|
43 |
}
|
44 |
|
45 |
add_menu_page(
|
46 |
-
__('Asset CleanUp',
|
47 |
-
__('Asset CleanUp',
|
48 |
self::$_capability,
|
49 |
self::$_slug,
|
50 |
array(new Info, 'gettingStarted'),
|
@@ -53,8 +53,8 @@ class Menu
|
|
53 |
|
54 |
add_submenu_page(
|
55 |
self::$_slug,
|
56 |
-
__('CSS & JS Manager',
|
57 |
-
__('CSS & JS Manager',
|
58 |
self::$_capability,
|
59 |
WPACU_PLUGIN_ID . '_assets_manager',
|
60 |
array(new AssetsPagesManager, 'page')
|
@@ -62,8 +62,8 @@ class Menu
|
|
62 |
|
63 |
add_submenu_page(
|
64 |
self::$_slug,
|
65 |
-
__('Settings',
|
66 |
-
__('Settings',
|
67 |
self::$_capability,
|
68 |
WPACU_PLUGIN_ID . '_settings',
|
69 |
array(new Settings, 'settingsPage')
|
@@ -71,8 +71,8 @@ class Menu
|
|
71 |
|
72 |
add_submenu_page(
|
73 |
self::$_slug,
|
74 |
-
__('Bulk Changes',
|
75 |
-
__('Bulk Changes',
|
76 |
self::$_capability,
|
77 |
WPACU_PLUGIN_ID . '_bulk_unloads',
|
78 |
array(new BulkUnloads, 'pageBulkUnloads')
|
@@ -80,8 +80,8 @@ class Menu
|
|
80 |
|
81 |
add_submenu_page(
|
82 |
self::$_slug,
|
83 |
-
__('Tools',
|
84 |
-
__('Tools',
|
85 |
self::$_capability,
|
86 |
WPACU_PLUGIN_ID . '_tools',
|
87 |
array(new Tools, 'toolsPage')
|
@@ -90,8 +90,8 @@ class Menu
|
|
90 |
// License Page
|
91 |
add_submenu_page(
|
92 |
self::$_slug,
|
93 |
-
__('License',
|
94 |
-
__('License',
|
95 |
self::$_capability,
|
96 |
WPACU_PLUGIN_ID . '_license',
|
97 |
array(new Info, 'license')
|
@@ -100,8 +100,8 @@ class Menu
|
|
100 |
// Get Help | Support Page
|
101 |
add_submenu_page(
|
102 |
self::$_slug,
|
103 |
-
__('Help',
|
104 |
-
__('Help',
|
105 |
self::$_capability,
|
106 |
WPACU_PLUGIN_ID . '_get_help',
|
107 |
array(new Info, 'help')
|
@@ -110,8 +110,8 @@ class Menu
|
|
110 |
// Upgrade to "Go Pro" | Redirects to sale page
|
111 |
add_submenu_page(
|
112 |
self::$_slug,
|
113 |
-
__('Go Pro',
|
114 |
-
__('Go Pro',
|
115 |
self::$_capability,
|
116 |
WPACU_PLUGIN_ID . '_go_pro',
|
117 |
function() {}
|
@@ -120,14 +120,14 @@ class Menu
|
|
120 |
// Add "Asset CleanUp Pro" Settings Link to the main "Settings" menu within the Dashboard
|
121 |
// For easier navigation
|
122 |
$GLOBALS['submenu']['options-general.php'][] = array(
|
123 |
-
__('Asset CleanUp',
|
124 |
self::$_capability,
|
125 |
admin_url( 'admin.php?page=' . WPACU_PLUGIN_ID . '_settings'),
|
126 |
-
__('Asset CleanUp',
|
127 |
);
|
128 |
|
129 |
// Rename first item from the menu which has the same title as the menu page
|
130 |
-
$GLOBALS['submenu'][self::$_slug][0][0] = esc_attr__('Getting Started',
|
131 |
}
|
132 |
|
133 |
/**
|
43 |
}
|
44 |
|
45 |
add_menu_page(
|
46 |
+
__('Asset CleanUp', 'wp-asset-clean-up'),
|
47 |
+
__('Asset CleanUp', 'wp-asset-clean-up'),
|
48 |
self::$_capability,
|
49 |
self::$_slug,
|
50 |
array(new Info, 'gettingStarted'),
|
53 |
|
54 |
add_submenu_page(
|
55 |
self::$_slug,
|
56 |
+
__('CSS & JS Manager', 'wp-asset-clean-up'),
|
57 |
+
__('CSS & JS Manager', 'wp-asset-clean-up'),
|
58 |
self::$_capability,
|
59 |
WPACU_PLUGIN_ID . '_assets_manager',
|
60 |
array(new AssetsPagesManager, 'page')
|
62 |
|
63 |
add_submenu_page(
|
64 |
self::$_slug,
|
65 |
+
__('Settings', 'wp-asset-clean-up'),
|
66 |
+
__('Settings', 'wp-asset-clean-up'),
|
67 |
self::$_capability,
|
68 |
WPACU_PLUGIN_ID . '_settings',
|
69 |
array(new Settings, 'settingsPage')
|
71 |
|
72 |
add_submenu_page(
|
73 |
self::$_slug,
|
74 |
+
__('Bulk Changes', 'wp-asset-clean-up'),
|
75 |
+
__('Bulk Changes', 'wp-asset-clean-up'),
|
76 |
self::$_capability,
|
77 |
WPACU_PLUGIN_ID . '_bulk_unloads',
|
78 |
array(new BulkUnloads, 'pageBulkUnloads')
|
80 |
|
81 |
add_submenu_page(
|
82 |
self::$_slug,
|
83 |
+
__('Tools', 'wp-asset-clean-up'),
|
84 |
+
__('Tools', 'wp-asset-clean-up'),
|
85 |
self::$_capability,
|
86 |
WPACU_PLUGIN_ID . '_tools',
|
87 |
array(new Tools, 'toolsPage')
|
90 |
// License Page
|
91 |
add_submenu_page(
|
92 |
self::$_slug,
|
93 |
+
__('License', 'wp-asset-clean-up'),
|
94 |
+
__('License', 'wp-asset-clean-up'),
|
95 |
self::$_capability,
|
96 |
WPACU_PLUGIN_ID . '_license',
|
97 |
array(new Info, 'license')
|
100 |
// Get Help | Support Page
|
101 |
add_submenu_page(
|
102 |
self::$_slug,
|
103 |
+
__('Help', 'wp-asset-clean-up'),
|
104 |
+
__('Help', 'wp-asset-clean-up'),
|
105 |
self::$_capability,
|
106 |
WPACU_PLUGIN_ID . '_get_help',
|
107 |
array(new Info, 'help')
|
110 |
// Upgrade to "Go Pro" | Redirects to sale page
|
111 |
add_submenu_page(
|
112 |
self::$_slug,
|
113 |
+
__('Go Pro', 'wp-asset-clean-up'),
|
114 |
+
__('Go Pro', 'wp-asset-clean-up') . ' <span style="font-size: 16px;" class="dashicons dashicons-star-filled"></span>',
|
115 |
self::$_capability,
|
116 |
WPACU_PLUGIN_ID . '_go_pro',
|
117 |
function() {}
|
120 |
// Add "Asset CleanUp Pro" Settings Link to the main "Settings" menu within the Dashboard
|
121 |
// For easier navigation
|
122 |
$GLOBALS['submenu']['options-general.php'][] = array(
|
123 |
+
__('Asset CleanUp', 'wp-asset-clean-up'),
|
124 |
self::$_capability,
|
125 |
admin_url( 'admin.php?page=' . WPACU_PLUGIN_ID . '_settings'),
|
126 |
+
__('Asset CleanUp', 'wp-asset-clean-up'),
|
127 |
);
|
128 |
|
129 |
// Rename first item from the menu which has the same title as the menu page
|
130 |
+
$GLOBALS['submenu'][self::$_slug][0][0] = esc_attr__('Getting Started', 'wp-asset-clean-up');
|
131 |
}
|
132 |
|
133 |
/**
|
classes/MetaBoxes.php
CHANGED
@@ -51,7 +51,7 @@ class MetaBoxes
|
|
51 |
if (isset($obj->public) && $obj->public > 0) {
|
52 |
add_meta_box(
|
53 |
WPACU_PLUGIN_ID . '_asset_list',
|
54 |
-
__('Asset CleanUp: CSS & JavaScript Manager',
|
55 |
array($this, 'renderAssetManagerMetaBoxContent'),
|
56 |
$postType,
|
57 |
apply_filters('wpacu_asset_list_meta_box_context', 'normal'),
|
@@ -119,7 +119,7 @@ class MetaBoxes
|
|
119 |
if (isset($obj->public) && $obj->public > 0) {
|
120 |
add_meta_box(
|
121 |
WPACU_PLUGIN_ID . '_page_options',
|
122 |
-
__('Asset CleanUp: Options',
|
123 |
array($this, 'renderPageOptionsMetaBoxContent'),
|
124 |
$postType,
|
125 |
apply_filters('wpacu_page_options_meta_box_context', 'side'),
|
51 |
if (isset($obj->public) && $obj->public > 0) {
|
52 |
add_meta_box(
|
53 |
WPACU_PLUGIN_ID . '_asset_list',
|
54 |
+
__('Asset CleanUp: CSS & JavaScript Manager', 'wp-asset-clean-up'),
|
55 |
array($this, 'renderAssetManagerMetaBoxContent'),
|
56 |
$postType,
|
57 |
apply_filters('wpacu_asset_list_meta_box_context', 'normal'),
|
119 |
if (isset($obj->public) && $obj->public > 0) {
|
120 |
add_meta_box(
|
121 |
WPACU_PLUGIN_ID . '_page_options',
|
122 |
+
__('Asset CleanUp: Options', 'wp-asset-clean-up'),
|
123 |
array($this, 'renderPageOptionsMetaBoxContent'),
|
124 |
$postType,
|
125 |
apply_filters('wpacu_page_options_meta_box_context', 'side'),
|
classes/Misc.php
CHANGED
@@ -279,6 +279,10 @@ class Misc
|
|
279 |
*/
|
280 |
public static function getLocalSrc($src)
|
281 |
{
|
|
|
|
|
|
|
|
|
282 |
// Clean it up first
|
283 |
if (strpos($src, '.css?') !== false) {
|
284 |
list($src) = explode('.css?', $src);
|
@@ -299,7 +303,7 @@ class Misc
|
|
299 |
$localPathToFile = ABSPATH . $path . $relSrc;
|
300 |
|
301 |
if (file_exists($localPathToFile)) {
|
302 |
-
return array('base_url' => $baseUrl, 'file_exists' => 1);
|
303 |
}
|
304 |
}
|
305 |
}
|
@@ -343,6 +347,14 @@ class Misc
|
|
343 |
return in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')));
|
344 |
}
|
345 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
346 |
/**
|
347 |
* @param $array
|
348 |
*
|
@@ -359,6 +371,30 @@ class Misc
|
|
359 |
return $arrayKeys[0];
|
360 |
}
|
361 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
362 |
/**
|
363 |
* @param $requestMethod
|
364 |
* @param $key
|
@@ -551,7 +587,7 @@ class Misc
|
|
551 |
|
552 |
$themeName = strtolower($themeName);
|
553 |
|
554 |
-
$themesIcons = scandir($themesIconsPathToDir
|
555 |
|
556 |
foreach ($themesIcons as $themesIcon) {
|
557 |
if (strpos($themesIcon, $themeName.'.') !== false) {
|
@@ -563,54 +599,6 @@ class Misc
|
|
563 |
return '';
|
564 |
}
|
565 |
|
566 |
-
/**
|
567 |
-
*
|
568 |
-
*/
|
569 |
-
public function cleanUpHtmlOutputForAssetsCall()
|
570 |
-
{
|
571 |
-
// W3 Total Cache: No Minify
|
572 |
-
add_filter('w3tc_minify_enable', '__return_false');
|
573 |
-
|
574 |
-
// SG Optimizer Plugin
|
575 |
-
$sgOptimizerMapping = array(
|
576 |
-
'autoflush' => 'siteground_optimizer_autoflush_cache',
|
577 |
-
'dynamic-cache' => 'siteground_optimizer_enable_cache',
|
578 |
-
'memcache' => 'siteground_optimizer_enable_memcached',
|
579 |
-
'ssl-fix' => 'siteground_optimizer_fix_insecure_content',
|
580 |
-
'html' => 'siteground_optimizer_optimize_html',
|
581 |
-
'js' => 'siteground_optimizer_optimize_javascript',
|
582 |
-
'js-async' => 'siteground_optimizer_optimize_javascript_async',
|
583 |
-
'css' => 'siteground_optimizer_optimize_css',
|
584 |
-
'combine-css' => 'siteground_optimizer_combine_css',
|
585 |
-
'querystring' => 'siteground_optimizer_remove_query_strings',
|
586 |
-
'emojis' => 'siteground_optimizer_disable_emojis',
|
587 |
-
'images' => 'siteground_optimizer_optimize_images',
|
588 |
-
'lazyload_images' => 'siteground_optimizer_lazyload_images',
|
589 |
-
'lazyload_gravatars' => 'siteground_optimizer_lazyload_gravatars',
|
590 |
-
'lazyload_thumbnails' => 'siteground_optimizer_lazyload_thumbnails',
|
591 |
-
'lazyload_responsive' => 'siteground_optimizer_lazyload_responsive',
|
592 |
-
'lazyload_textwidgets' => 'siteground_optimizer_lazyload_textwidgets',
|
593 |
-
'ssl' => 'siteground_optimizer_ssl_enabled',
|
594 |
-
'gzip' => 'siteground_optimizer_enable_gzip_compression',
|
595 |
-
'browser-caching' => 'siteground_optimizer_enable_browser_caching',
|
596 |
-
);
|
597 |
-
|
598 |
-
foreach ($sgOptimizerMapping as $optionName) {
|
599 |
-
add_filter('pre_option_'.$optionName, '__return_false');
|
600 |
-
}
|
601 |
-
|
602 |
-
// Fallback in case SG Optimizer is triggered BEFORE Asset CleanUp and the filter above will not work
|
603 |
-
add_filter('sgo_css_combine_exclude', array($this, 'allCssHandles'));
|
604 |
-
add_filter('sgo_css_minify_exclude', array($this, 'allCssHandles'));
|
605 |
-
add_filter('sgo_js_minify_exclude', array($this, 'allJsHandles'));
|
606 |
-
add_filter('sgo_js_async_exclude', array($this, 'allJsHandles'));
|
607 |
-
|
608 |
-
add_filter('sgo_html_minify_exclude_params', function ($excludeParams) {
|
609 |
-
$excludeParams[] = WPACU_LOAD_ASSETS_REQ_KEY;
|
610 |
-
return $excludeParams;
|
611 |
-
});
|
612 |
-
}
|
613 |
-
|
614 |
/**
|
615 |
* @return array
|
616 |
*/
|
279 |
*/
|
280 |
public static function getLocalSrc($src)
|
281 |
{
|
282 |
+
if (! $src) {
|
283 |
+
return array();
|
284 |
+
}
|
285 |
+
|
286 |
// Clean it up first
|
287 |
if (strpos($src, '.css?') !== false) {
|
288 |
list($src) = explode('.css?', $src);
|
303 |
$localPathToFile = ABSPATH . $path . $relSrc;
|
304 |
|
305 |
if (file_exists($localPathToFile)) {
|
306 |
+
return array('base_url' => $baseUrl, 'rel_src' => $path . $relSrc, 'file_exists' => 1);
|
307 |
}
|
308 |
}
|
309 |
}
|
347 |
return in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')));
|
348 |
}
|
349 |
|
350 |
+
/**
|
351 |
+
* @return bool
|
352 |
+
*/
|
353 |
+
public static function isPerfmattersActive()
|
354 |
+
{
|
355 |
+
return in_array('perfmatters/perfmatters.php', apply_filters('active_plugins', get_option('active_plugins')));
|
356 |
+
}
|
357 |
+
|
358 |
/**
|
359 |
* @param $array
|
360 |
*
|
371 |
return $arrayKeys[0];
|
372 |
}
|
373 |
|
374 |
+
/**
|
375 |
+
* @return bool|int
|
376 |
+
*/
|
377 |
+
public static function jsonLastError()
|
378 |
+
{
|
379 |
+
if (function_exists('json_last_error')) {
|
380 |
+
return json_last_error();
|
381 |
+
}
|
382 |
+
|
383 |
+
// Fallback (notify the user through a warning)
|
384 |
+
return 0;
|
385 |
+
}
|
386 |
+
|
387 |
+
/**
|
388 |
+
* @param $string
|
389 |
+
*
|
390 |
+
* @return bool
|
391 |
+
*/
|
392 |
+
public static function isJsonValid($string)
|
393 |
+
{
|
394 |
+
@json_decode($string, ARRAY_A);
|
395 |
+
return JSON_ERROR_NONE === self::jsonLastError();
|
396 |
+
}
|
397 |
+
|
398 |
/**
|
399 |
* @param $requestMethod
|
400 |
* @param $key
|
587 |
|
588 |
$themeName = strtolower($themeName);
|
589 |
|
590 |
+
$themesIcons = scandir($themesIconsPathToDir);
|
591 |
|
592 |
foreach ($themesIcons as $themesIcon) {
|
593 |
if (strpos($themesIcon, $themeName.'.') !== false) {
|
599 |
return '';
|
600 |
}
|
601 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
602 |
/**
|
603 |
* @return array
|
604 |
*/
|
classes/OptimiseAssets/MinifyCss.php
CHANGED
@@ -45,7 +45,7 @@ class MinifyCss
|
|
45 |
$cssMinifyList = array();
|
46 |
|
47 |
// [Start] Collect for caching
|
48 |
-
foreach ($
|
49 |
if (isset($wp_styles->registered[$handle])) {
|
50 |
$value = $wp_styles->registered[$handle];
|
51 |
$minifyValues = $this->maybeMinifyIt($value);
|
@@ -94,6 +94,12 @@ class MinifyCss
|
|
94 |
}
|
95 |
|
96 |
foreach ($cssMinifyList as $listValues) {
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
$sourceUrl = site_url() . $listValues[0];
|
98 |
$minUrl = site_url() . $listValues[1];
|
99 |
|
@@ -196,11 +202,15 @@ class MinifyCss
|
|
196 |
// Relative path to the new file
|
197 |
$ver = (isset($value->ver) && $value->ver) ? $value->ver : $wp_version;
|
198 |
|
199 |
-
$newFilePathUri = OptimizeCss
|
200 |
|
201 |
$newLocalPath = WP_CONTENT_DIR . $newFilePathUri; // Ful Local path
|
202 |
$newLocalPathUrl = WP_CONTENT_URL . $newFilePathUri; // Full URL path
|
203 |
|
|
|
|
|
|
|
|
|
204 |
$saveFile = @file_put_contents($newLocalPath, $cssContent);
|
205 |
|
206 |
if (! $saveFile && ! $cssContent) {
|
@@ -256,9 +266,7 @@ class MinifyCss
|
|
256 |
$strReps = array(
|
257 |
// Converts things such as "margin:0 0 0 0;" to "margin:0;"
|
258 |
':0 0 0 0;' => ':0;'
|
259 |
-
|
260 |
-
*/
|
261 |
-
);
|
262 |
|
263 |
$cssContent = str_replace(array_keys($strReps), array_values($strReps), $cssContent);
|
264 |
|
45 |
$cssMinifyList = array();
|
46 |
|
47 |
// [Start] Collect for caching
|
48 |
+
foreach ($wp_styles->done as $handle) {
|
49 |
if (isset($wp_styles->registered[$handle])) {
|
50 |
$value = $wp_styles->registered[$handle];
|
51 |
$minifyValues = $this->maybeMinifyIt($value);
|
94 |
}
|
95 |
|
96 |
foreach ($cssMinifyList as $listValues) {
|
97 |
+
// If the minified files are deleted (e.g. /wp-content/cache/ is cleared)
|
98 |
+
// do not replace the CSS file path to avoid breaking the website
|
99 |
+
if (! file_exists(rtrim(ABSPATH, '/') . $listValues[1])) {
|
100 |
+
continue;
|
101 |
+
}
|
102 |
+
|
103 |
$sourceUrl = site_url() . $listValues[0];
|
104 |
$minUrl = site_url() . $listValues[1];
|
105 |
|
202 |
// Relative path to the new file
|
203 |
$ver = (isset($value->ver) && $value->ver) ? $value->ver : $wp_version;
|
204 |
|
205 |
+
$newFilePathUri = OptimizeCss::getRelPathCssCacheDir() . 'min/' . $value->handle . '-v' . $ver . '.css';
|
206 |
|
207 |
$newLocalPath = WP_CONTENT_DIR . $newFilePathUri; // Ful Local path
|
208 |
$newLocalPathUrl = WP_CONTENT_URL . $newFilePathUri; // Full URL path
|
209 |
|
210 |
+
if ($cssContent) {
|
211 |
+
$cssContent = '/*** Source (before minification): ' . str_replace(ABSPATH, '/', $localAssetPath) . ' ***/' . "\n" . $cssContent;
|
212 |
+
}
|
213 |
+
|
214 |
$saveFile = @file_put_contents($newLocalPath, $cssContent);
|
215 |
|
216 |
if (! $saveFile && ! $cssContent) {
|
266 |
$strReps = array(
|
267 |
// Converts things such as "margin:0 0 0 0;" to "margin:0;"
|
268 |
':0 0 0 0;' => ':0;'
|
269 |
+
);
|
|
|
|
|
270 |
|
271 |
$cssContent = str_replace(array_keys($strReps), array_values($strReps), $cssContent);
|
272 |
|
classes/OptimiseAssets/MinifyJs.php
CHANGED
@@ -87,6 +87,12 @@ class MinifyJs
|
|
87 |
}
|
88 |
|
89 |
foreach ($jsMinifyList as $listValues) {
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
$sourceUrl = site_url() . $listValues[0];
|
91 |
$minUrl = site_url() . $listValues[1];
|
92 |
|
@@ -190,11 +196,15 @@ class MinifyJs
|
|
190 |
// Relative path to the new file
|
191 |
$ver = (isset($value->ver) && $value->ver) ? $value->ver : $wp_version;
|
192 |
|
193 |
-
$newFilePathUri = OptimizeJs
|
194 |
|
195 |
$newLocalPath = WP_CONTENT_DIR . $newFilePathUri; // Ful Local path
|
196 |
$newLocalPathUrl = WP_CONTENT_URL . $newFilePathUri; // Full URL path
|
197 |
|
|
|
|
|
|
|
|
|
198 |
$saveFile = @file_put_contents($newLocalPath, $jsContent);
|
199 |
|
200 |
if (! $saveFile || ! $jsContent) {
|
87 |
}
|
88 |
|
89 |
foreach ($jsMinifyList as $listValues) {
|
90 |
+
// If the minified files are deleted (e.g. /wp-content/cache/ is cleared)
|
91 |
+
// do not replace the JS file path to avoid breaking the website
|
92 |
+
if (! file_exists(rtrim(ABSPATH, '/') . $listValues[1])) {
|
93 |
+
continue;
|
94 |
+
}
|
95 |
+
|
96 |
$sourceUrl = site_url() . $listValues[0];
|
97 |
$minUrl = site_url() . $listValues[1];
|
98 |
|
196 |
// Relative path to the new file
|
197 |
$ver = (isset($value->ver) && $value->ver) ? $value->ver : $wp_version;
|
198 |
|
199 |
+
$newFilePathUri = OptimizeJs::getRelPathJsCacheDir() . 'min/' . $value->handle . '-v' . $ver . '.js';
|
200 |
|
201 |
$newLocalPath = WP_CONTENT_DIR . $newFilePathUri; // Ful Local path
|
202 |
$newLocalPathUrl = WP_CONTENT_URL . $newFilePathUri; // Full URL path
|
203 |
|
204 |
+
if ($jsContent) {
|
205 |
+
$jsContent = '/*** Source (before minification): ' . str_replace(ABSPATH, '/', $localAssetPath) . ' ***/' . "\n" . $jsContent;
|
206 |
+
}
|
207 |
+
|
208 |
$saveFile = @file_put_contents($newLocalPath, $jsContent);
|
209 |
|
210 |
if (! $saveFile || ! $jsContent) {
|
classes/OptimiseAssets/OptimizeCommon.php
CHANGED
@@ -14,7 +14,7 @@ class OptimizeCommon
|
|
14 |
/**
|
15 |
* @var string
|
16 |
*/
|
17 |
-
public static $
|
18 |
|
19 |
/**
|
20 |
*
|
@@ -34,6 +34,19 @@ class OptimizeCommon
|
|
34 |
});
|
35 |
}
|
36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
/**
|
38 |
* The following output is used only for fetching purposes
|
39 |
* It will not be part of the final output
|
@@ -354,7 +367,7 @@ class OptimizeCommon
|
|
354 |
$requestUriPart = '';
|
355 |
}
|
356 |
|
357 |
-
$dirToFilename = WP_CONTENT_DIR . self
|
358 |
. parse_url(site_url(), PHP_URL_HOST) .
|
359 |
$requestUriPart;
|
360 |
|
@@ -397,7 +410,7 @@ class OptimizeCommon
|
|
397 |
$fileExtToRemove[] = '.js';
|
398 |
}
|
399 |
|
400 |
-
$assetCleanUpCacheDir = WP_CONTENT_DIR . self
|
401 |
$storageDir = $assetCleanUpCacheDir.'_storage';
|
402 |
|
403 |
if (is_dir($assetCleanUpCacheDir)) {
|
14 |
/**
|
15 |
* @var string
|
16 |
*/
|
17 |
+
public static $relPathPluginCacheDirDefault = '/cache/asset-cleanup/'; // keep forward slash at the end
|
18 |
|
19 |
/**
|
20 |
*
|
34 |
});
|
35 |
}
|
36 |
|
37 |
+
/**
|
38 |
+
* @return string
|
39 |
+
*/
|
40 |
+
public static function getRelPathPluginCacheDir()
|
41 |
+
{
|
42 |
+
// In some cases, hosting companies put restriction for writable folders
|
43 |
+
// Pantheon, for instance, allows only /wp-content/uploads/ to be writable
|
44 |
+
// For security reasons, do not allow ../
|
45 |
+
return ((defined('WPACU_CACHE_DIR') && strpos(WPACU_CACHE_DIR, '../') === false)
|
46 |
+
? WPACU_CACHE_DIR
|
47 |
+
: self::$relPathPluginCacheDirDefault);
|
48 |
+
}
|
49 |
+
|
50 |
/**
|
51 |
* The following output is used only for fetching purposes
|
52 |
* It will not be part of the final output
|
367 |
$requestUriPart = '';
|
368 |
}
|
369 |
|
370 |
+
$dirToFilename = WP_CONTENT_DIR . self::getRelPathPluginCacheDir() . '_storage/'
|
371 |
. parse_url(site_url(), PHP_URL_HOST) .
|
372 |
$requestUriPart;
|
373 |
|
410 |
$fileExtToRemove[] = '.js';
|
411 |
}
|
412 |
|
413 |
+
$assetCleanUpCacheDir = WP_CONTENT_DIR . self::getRelPathPluginCacheDir();
|
414 |
$storageDir = $assetCleanUpCacheDir.'_storage';
|
415 |
|
416 |
if (is_dir($assetCleanUpCacheDir)) {
|
classes/OptimiseAssets/OptimizeCss.php
CHANGED
@@ -11,11 +11,6 @@ use WpAssetCleanUp\MetaBoxes;
|
|
11 |
*/
|
12 |
class OptimizeCss
|
13 |
{
|
14 |
-
/**
|
15 |
-
* @var string
|
16 |
-
*/
|
17 |
-
public static $relPathCssCacheDir = '/cache/asset-cleanup/css/'; // keep forward slash at the end
|
18 |
-
|
19 |
/**
|
20 |
* @var float|int
|
21 |
*/
|
@@ -75,9 +70,9 @@ class OptimizeCss
|
|
75 |
|
76 |
// Speed up processing by getting the already existing final CSS file URI
|
77 |
// This will avoid parsing the HTML DOM and determine the combined URI paths for all the CSS files
|
78 |
-
$storageJsonContents = OptimizeCommon::getAssetCachedData($this->jsonStorageFile, self
|
79 |
|
80 |
-
// $uriToFinalCssFile will always be relative ONLY within WP_CONTENT_DIR . self
|
81 |
// which is usually "wp-content/cache/asset-cleanup/css/"
|
82 |
|
83 |
if (empty($storageJsonContents)) {
|
@@ -221,7 +216,7 @@ class OptimizeCss
|
|
221 |
|
222 |
OptimizeCommon::setAssetCachedData(
|
223 |
$this->jsonStorageFile,
|
224 |
-
self
|
225 |
json_encode($storageJsonContentsToSave)
|
226 |
);
|
227 |
}
|
@@ -236,7 +231,7 @@ class OptimizeCss
|
|
236 |
return str_replace( '{site_url}', site_url(), $href );
|
237 |
}, $storageJsonContentLocation['link_hrefs'] );
|
238 |
|
239 |
-
$finalTagUrl = OptimizeCommon::filterWpContentUrl() . self
|
240 |
|
241 |
$finalCssTag = <<<HTML
|
242 |
<link id='asset-cleanup-combined-css-{$locationTag}' rel='stylesheet' href='{$finalTagUrl}' type='text/css' media='all' />
|
@@ -267,6 +262,14 @@ HTML;
|
|
267 |
}, 1);
|
268 |
}
|
269 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
270 |
/**
|
271 |
* @param $firstLinkHref
|
272 |
* @param $htmlSource
|
@@ -301,9 +304,9 @@ HTML;
|
|
301 |
$dirToUserCachedFile = ((isset($current_user->ID) && $current_user->ID > 0) ? 'logged-in/'.$current_user->ID.'/' : '');
|
302 |
|
303 |
$uriToFinalCssFile = $dirToUserCachedFile . $docLocationTag . '-' .$shaOneCombinedUriPaths . '.css';
|
304 |
-
$localFinalCssFile = WP_CONTENT_DIR . self
|
305 |
|
306 |
-
$localDirForCssFile = WP_CONTENT_DIR . self
|
307 |
|
308 |
// Only combine if $shaOneCombinedUriPaths.css does not exist
|
309 |
// If "?ver" value changes on any of the assets or the asset list changes in any way
|
@@ -346,6 +349,7 @@ HTML;
|
|
346 |
continue;
|
347 |
}
|
348 |
|
|
|
349 |
$finalAssetsContents .= self::maybeFixCssBackgroundUrls($assetContent, $pathToAssetDir . '/') . "\n\n";
|
350 |
}
|
351 |
}
|
11 |
*/
|
12 |
class OptimizeCss
|
13 |
{
|
|
|
|
|
|
|
|
|
|
|
14 |
/**
|
15 |
* @var float|int
|
16 |
*/
|
70 |
|
71 |
// Speed up processing by getting the already existing final CSS file URI
|
72 |
// This will avoid parsing the HTML DOM and determine the combined URI paths for all the CSS files
|
73 |
+
$storageJsonContents = OptimizeCommon::getAssetCachedData($this->jsonStorageFile, self::getRelPathCssCacheDir(), 'css');
|
74 |
|
75 |
+
// $uriToFinalCssFile will always be relative ONLY within WP_CONTENT_DIR . self::getRelPathCssCacheDir()
|
76 |
// which is usually "wp-content/cache/asset-cleanup/css/"
|
77 |
|
78 |
if (empty($storageJsonContents)) {
|
216 |
|
217 |
OptimizeCommon::setAssetCachedData(
|
218 |
$this->jsonStorageFile,
|
219 |
+
self::getRelPathCssCacheDir(),
|
220 |
json_encode($storageJsonContentsToSave)
|
221 |
);
|
222 |
}
|
231 |
return str_replace( '{site_url}', site_url(), $href );
|
232 |
}, $storageJsonContentLocation['link_hrefs'] );
|
233 |
|
234 |
+
$finalTagUrl = OptimizeCommon::filterWpContentUrl() . self::getRelPathCssCacheDir() . $storageJsonContentLocation['uri_to_final_css_file'];
|
235 |
|
236 |
$finalCssTag = <<<HTML
|
237 |
<link id='asset-cleanup-combined-css-{$locationTag}' rel='stylesheet' href='{$finalTagUrl}' type='text/css' media='all' />
|
262 |
}, 1);
|
263 |
}
|
264 |
|
265 |
+
/**
|
266 |
+
* @return string
|
267 |
+
*/
|
268 |
+
public static function getRelPathCssCacheDir()
|
269 |
+
{
|
270 |
+
return OptimizeCommon::getRelPathPluginCacheDir().'css/'; // keep trailing slash at the end
|
271 |
+
}
|
272 |
+
|
273 |
/**
|
274 |
* @param $firstLinkHref
|
275 |
* @param $htmlSource
|
304 |
$dirToUserCachedFile = ((isset($current_user->ID) && $current_user->ID > 0) ? 'logged-in/'.$current_user->ID.'/' : '');
|
305 |
|
306 |
$uriToFinalCssFile = $dirToUserCachedFile . $docLocationTag . '-' .$shaOneCombinedUriPaths . '.css';
|
307 |
+
$localFinalCssFile = WP_CONTENT_DIR . self::getRelPathCssCacheDir() . $uriToFinalCssFile;
|
308 |
|
309 |
+
$localDirForCssFile = WP_CONTENT_DIR . self::getRelPathCssCacheDir() . $dirToUserCachedFile;
|
310 |
|
311 |
// Only combine if $shaOneCombinedUriPaths.css does not exist
|
312 |
// If "?ver" value changes on any of the assets or the asset list changes in any way
|
349 |
continue;
|
350 |
}
|
351 |
|
352 |
+
$finalAssetsContents .= '/*** Source: '.str_replace(ABSPATH, '/', $localAssetsPath)." ***/\n";
|
353 |
$finalAssetsContents .= self::maybeFixCssBackgroundUrls($assetContent, $pathToAssetDir . '/') . "\n\n";
|
354 |
}
|
355 |
}
|
classes/OptimiseAssets/OptimizeJs.php
CHANGED
@@ -12,11 +12,6 @@ use WpAssetCleanUp\Misc;
|
|
12 |
*/
|
13 |
class OptimizeJs
|
14 |
{
|
15 |
-
/**
|
16 |
-
* @var string
|
17 |
-
*/
|
18 |
-
public static $relPathJsCacheDir = '/cache/asset-cleanup/js/'; // keep trailing slash at the end
|
19 |
-
|
20 |
/**
|
21 |
* @var float|int
|
22 |
*/
|
@@ -82,9 +77,9 @@ class OptimizeJs
|
|
82 |
|
83 |
// Speed up processing by getting the already existing final CSS file URI
|
84 |
// This will avoid parsing the HTML DOM and determine the combined URI paths for all the CSS files
|
85 |
-
$finalCacheList = OptimizeCommon::getAssetCachedData($this->jsonStorageFile, self
|
86 |
|
87 |
-
// $uriToFinalJsFile will always be relative ONLY within WP_CONTENT_DIR . self
|
88 |
// which is usually "wp-content/cache/asset-cleanup/js/"
|
89 |
|
90 |
// "false" would make it avoid checking the cache and always use the DOM Parser / RegExp
|
@@ -281,7 +276,7 @@ class OptimizeJs
|
|
281 |
$groupNo++;
|
282 |
}
|
283 |
|
284 |
-
OptimizeCommon::setAssetCachedData($this->jsonStorageFile, self
|
285 |
}
|
286 |
|
287 |
if (! empty($finalCacheList)) {
|
@@ -294,7 +289,7 @@ class OptimizeJs
|
|
294 |
// Enhanced Combining (2) -> replace "last" tag with the final combination tag (most likely one group)
|
295 |
$indexReplacement = ($combineLevel === 2) ? (count($cachedValues['script_tags']) - 1) : 0;
|
296 |
|
297 |
-
$finalTagUrl = OptimizeCommon::filterWpContentUrl() . self
|
298 |
|
299 |
$deferAttr = (isset($cachedValues['extras']) && in_array('defer', $cachedValues['extras'])) ? 'defer="defer"' : '';
|
300 |
|
@@ -332,6 +327,14 @@ HTML;
|
|
332 |
}, 1);
|
333 |
}
|
334 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
335 |
/**
|
336 |
* @param $matchesSourcesFromTags
|
337 |
*
|
@@ -432,8 +435,8 @@ HTML;
|
|
432 |
|
433 |
$uriToFinalJsFile = $dirToUserCachedFile . $docLocationScript . '-' . $shaOneCombinedUriPaths . '.js';
|
434 |
|
435 |
-
$localFinalJsFile = WP_CONTENT_DIR . self
|
436 |
-
$localDirForJsFile = WP_CONTENT_DIR . self
|
437 |
|
438 |
// Only combine if $shaOneCombinedUriPaths.js does not exist
|
439 |
// If "?ver" value changes on any of the assets or the asset list changes in any way
|
@@ -470,7 +473,7 @@ HTML;
|
|
470 |
if ($jsContent) {
|
471 |
$finalJsContentsIndex = 1;
|
472 |
|
473 |
-
$finalJsContentsGroupsArray[$finalJsContentsIndex][] = self::maybeDoJsFixes($jsContent, $pathToAssetDir . '/') . "\n\n";
|
474 |
}
|
475 |
}
|
476 |
|
12 |
*/
|
13 |
class OptimizeJs
|
14 |
{
|
|
|
|
|
|
|
|
|
|
|
15 |
/**
|
16 |
* @var float|int
|
17 |
*/
|
77 |
|
78 |
// Speed up processing by getting the already existing final CSS file URI
|
79 |
// This will avoid parsing the HTML DOM and determine the combined URI paths for all the CSS files
|
80 |
+
$finalCacheList = OptimizeCommon::getAssetCachedData($this->jsonStorageFile, self::getRelPathJsCacheDir(), 'js');
|
81 |
|
82 |
+
// $uriToFinalJsFile will always be relative ONLY within WP_CONTENT_DIR . self::getRelPathJsCacheDir()
|
83 |
// which is usually "wp-content/cache/asset-cleanup/js/"
|
84 |
|
85 |
// "false" would make it avoid checking the cache and always use the DOM Parser / RegExp
|
276 |
$groupNo++;
|
277 |
}
|
278 |
|
279 |
+
OptimizeCommon::setAssetCachedData($this->jsonStorageFile, self::getRelPathJsCacheDir(), json_encode($finalCacheList));
|
280 |
}
|
281 |
|
282 |
if (! empty($finalCacheList)) {
|
289 |
// Enhanced Combining (2) -> replace "last" tag with the final combination tag (most likely one group)
|
290 |
$indexReplacement = ($combineLevel === 2) ? (count($cachedValues['script_tags']) - 1) : 0;
|
291 |
|
292 |
+
$finalTagUrl = OptimizeCommon::filterWpContentUrl() . self::getRelPathJsCacheDir() . $uriToFinalJsFile;
|
293 |
|
294 |
$deferAttr = (isset($cachedValues['extras']) && in_array('defer', $cachedValues['extras'])) ? 'defer="defer"' : '';
|
295 |
|
327 |
}, 1);
|
328 |
}
|
329 |
|
330 |
+
/**
|
331 |
+
* @return string
|
332 |
+
*/
|
333 |
+
public static function getRelPathJsCacheDir()
|
334 |
+
{
|
335 |
+
return OptimizeCommon::getRelPathPluginCacheDir().'js/'; // keep trailing slash at the end
|
336 |
+
}
|
337 |
+
|
338 |
/**
|
339 |
* @param $matchesSourcesFromTags
|
340 |
*
|
435 |
|
436 |
$uriToFinalJsFile = $dirToUserCachedFile . $docLocationScript . '-' . $shaOneCombinedUriPaths . '.js';
|
437 |
|
438 |
+
$localFinalJsFile = WP_CONTENT_DIR . self::getRelPathJsCacheDir() . $uriToFinalJsFile;
|
439 |
+
$localDirForJsFile = WP_CONTENT_DIR . self::getRelPathJsCacheDir() . $dirToUserCachedFile;
|
440 |
|
441 |
// Only combine if $shaOneCombinedUriPaths.js does not exist
|
442 |
// If "?ver" value changes on any of the assets or the asset list changes in any way
|
473 |
if ($jsContent) {
|
474 |
$finalJsContentsIndex = 1;
|
475 |
|
476 |
+
$finalJsContentsGroupsArray[$finalJsContentsIndex][] = '/*** Source: '.str_replace(ABSPATH, '/', $localAssetsPath)." ***/\n" . self::maybeDoJsFixes($jsContent, $pathToAssetDir . '/') . "\n\n";
|
477 |
}
|
478 |
}
|
479 |
|
classes/OwnAssets.php
CHANGED
@@ -32,7 +32,8 @@ class OwnAssets
|
|
32 |
|
33 |
// Rename ?ver= to ?wpacuversion to prevent other plugins from stripping "ver"
|
34 |
add_filter('script_loader_src', array($this, 'ownAssetLoaderSrc'));
|
35 |
-
add_filter('style_loader_src',
|
|
|
36 |
}
|
37 |
|
38 |
/**
|
@@ -149,7 +150,7 @@ class OwnAssets
|
|
149 |
}
|
150 |
|
151 |
// Do not load any CSS & JS belonging to Asset CleanUp if in "Elementor" preview
|
152 |
-
if (array_key_exists('elementor-preview', $_GET) && $_GET['elementor-preview'] && Main::instance()->isFrontendEditView) {
|
153 |
return;
|
154 |
}
|
155 |
|
@@ -173,7 +174,7 @@ class OwnAssets
|
|
173 |
{
|
174 |
global $post, $pagenow;
|
175 |
|
176 |
-
$page =
|
177 |
|
178 |
$getPostId = (isset($_GET['post'], $_GET['action']) && $_GET['action'] === 'edit' && $pagenow === 'post.php') ? (int)$_GET['post'] : '';
|
179 |
|
@@ -183,7 +184,7 @@ class OwnAssets
|
|
183 |
$postId = $getPostId;
|
184 |
}
|
185 |
|
186 |
-
if (
|
187 |
$postId = 0; // for home page
|
188 |
}
|
189 |
|
@@ -199,8 +200,14 @@ class OwnAssets
|
|
199 |
// It can also be the front page URL
|
200 |
$pageUrl = Misc::getPageUrl($postId);
|
201 |
|
|
|
|
|
|
|
|
|
202 |
$wpacuObjectData = array(
|
203 |
'plugin_name' => WPACU_PLUGIN_ID,
|
|
|
|
|
204 |
'dom_get_type' => Main::$domGetType,
|
205 |
'start_del' => Main::START_DEL,
|
206 |
'end_del' => Main::END_DEL,
|
@@ -235,28 +242,38 @@ class OwnAssets
|
|
235 |
</div>
|
236 |
HTML;
|
237 |
|
238 |
-
$wpacuObjectData['jquery_migration_disable_confirm_msg'] =
|
239 |
-
|
240 |
-
'In some cases, due to old jQuery code triggered from plugins or the theme, unloading this migration library could cause those scripts not to function anymore and break some of the front-end functionality.'."\n\n".
|
241 |
-
'If you are not sure about whether activating this option is right or not, it is better to leave it as it is (to be loaded by default) and consult with a developer.'."\n\n".
|
242 |
-
'Confirm this action to enable the unloading or cancel to leave it loaded by default.',
|
243 |
-
|
244 |
-
$wpacuObjectData['comment_reply_disable_confirm_msg'] =
|
245 |
-
'This is worth disabling if you are NOT using the default WordPress comment system (e.g. you are using the website for business purposes, to showcase your products and you are not using it as a blog where people leave comments to your posts).'."\n\n".
|
246 |
-
'If you are not sure about whether activating this option is right or not, it is better to leave it as it is (to be loaded by default).'."\n\n".
|
247 |
-
'Confirm this action to enable the unloading or cancel to leave it loaded by default.',
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
260 |
|
261 |
wp_localize_script(
|
262 |
WPACU_PLUGIN_ID . '-script',
|
@@ -264,7 +281,7 @@ HTML;
|
|
264 |
apply_filters('wpacu_object_data', $wpacuObjectData)
|
265 |
);
|
266 |
|
267 |
-
wp_enqueue_script(
|
268 |
}
|
269 |
|
270 |
/**
|
@@ -273,7 +290,7 @@ HTML;
|
|
273 |
private function enqueuePublicStyles()
|
274 |
{
|
275 |
$styleRelPath = '/assets/style.min.css';
|
276 |
-
wp_enqueue_style(
|
277 |
}
|
278 |
|
279 |
/**
|
@@ -282,7 +299,7 @@ HTML;
|
|
282 |
public function enqueuePublicScripts()
|
283 |
{
|
284 |
$scriptRelPath = '/assets/script.min.js';
|
285 |
-
wp_enqueue_script( WPACU_PLUGIN_ID . '-script', plugins_url($scriptRelPath, WPACU_PLUGIN_FILE), array('jquery'), $this->_assetVer($scriptRelPath));
|
286 |
}
|
287 |
|
288 |
/**
|
@@ -321,4 +338,20 @@ HTML;
|
|
321 |
return $src;
|
322 |
}
|
323 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
324 |
}
|
32 |
|
33 |
// Rename ?ver= to ?wpacuversion to prevent other plugins from stripping "ver"
|
34 |
add_filter('script_loader_src', array($this, 'ownAssetLoaderSrc'));
|
35 |
+
add_filter('style_loader_src', array($this, 'ownAssetLoaderSrc'));
|
36 |
+
add_filter('script_loader_tag', array($this, 'ownAssetLoaderTag'), 10, 2);
|
37 |
}
|
38 |
|
39 |
/**
|
150 |
}
|
151 |
|
152 |
// Do not load any CSS & JS belonging to Asset CleanUp if in "Elementor" preview
|
153 |
+
if (Main::instance()->isFrontendEditView && array_key_exists('elementor-preview', $_GET) && $_GET['elementor-preview'] && Main::instance()->isFrontendEditView) {
|
154 |
return;
|
155 |
}
|
156 |
|
174 |
{
|
175 |
global $post, $pagenow;
|
176 |
|
177 |
+
$page = Misc::getVar('get', 'page');
|
178 |
|
179 |
$getPostId = (isset($_GET['post'], $_GET['action']) && $_GET['action'] === 'edit' && $pagenow === 'post.php') ? (int)$_GET['post'] : '';
|
180 |
|
184 |
$postId = $getPostId;
|
185 |
}
|
186 |
|
187 |
+
if ($page === WPACU_PLUGIN_ID . '_home_page' || $postId < 1) {
|
188 |
$postId = 0; // for home page
|
189 |
}
|
190 |
|
200 |
// It can also be the front page URL
|
201 |
$pageUrl = Misc::getPageUrl($postId);
|
202 |
|
203 |
+
$svgReloadIcon = <<<HTML
|
204 |
+
<svg aria-hidden="true" role="img" focusable="false" class="dashicon dashicons-cloud" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path d="M14.9 9c1.8.2 3.1 1.7 3.1 3.5 0 1.9-1.6 3.5-3.5 3.5h-10C2.6 16 1 14.4 1 12.5 1 10.7 2.3 9.3 4.1 9 4 8.9 4 8.7 4 8.5 4 7.1 5.1 6 6.5 6c.3 0 .7.1.9.2C8.1 4.9 9.4 4 11 4c2.2 0 4 1.8 4 4 0 .4-.1.7-.1 1z"></path></svg>
|
205 |
+
HTML;
|
206 |
+
|
207 |
$wpacuObjectData = array(
|
208 |
'plugin_name' => WPACU_PLUGIN_ID,
|
209 |
+
'reload_icon' => $svgReloadIcon,
|
210 |
+
'reload_msg' => sprintf(__('Reloading %s CSS & JS list', 'wp-asset-clean-up'), '<strong style="margin: 0 4px;">'.WPACU_PLUGIN_TITLE.'</strong>'),
|
211 |
'dom_get_type' => Main::$domGetType,
|
212 |
'start_del' => Main::START_DEL,
|
213 |
'end_del' => Main::END_DEL,
|
242 |
</div>
|
243 |
HTML;
|
244 |
|
245 |
+
$wpacuObjectData['jquery_migration_disable_confirm_msg'] =
|
246 |
+
__('Make sure to properly test your website if you unload the jQuery migration library.', 'wp-asset-clean-up')."\n\n".
|
247 |
+
__('In some cases, due to old jQuery code triggered from plugins or the theme, unloading this migration library could cause those scripts not to function anymore and break some of the front-end functionality.', 'wp-asset-clean-up')."\n\n".
|
248 |
+
__('If you are not sure about whether activating this option is right or not, it is better to leave it as it is (to be loaded by default) and consult with a developer.', 'wp-asset-clean-up')."\n\n".
|
249 |
+
__('Confirm this action to enable the unloading or cancel to leave it loaded by default.', 'wp-asset-clean-up');
|
250 |
+
|
251 |
+
$wpacuObjectData['comment_reply_disable_confirm_msg'] =
|
252 |
+
__('This is worth disabling if you are NOT using the default WordPress comment system (e.g. you are using the website for business purposes, to showcase your products and you are not using it as a blog where people leave comments to your posts).', 'wp-asset-clean-up')."\n\n".
|
253 |
+
__('If you are not sure about whether activating this option is right or not, it is better to leave it as it is (to be loaded by default).', 'wp-asset-clean-up')."\n\n".
|
254 |
+
__('Confirm this action to enable the unloading or cancel to leave it loaded by default.', 'wp-asset-clean-up');
|
255 |
+
|
256 |
+
// "Tools" - "Reset"
|
257 |
+
$wpacuObjectData['reset_settings_confirm_msg'] =
|
258 |
+
__('Are you sure you want to reset the settings to their default values?', 'wp-asset-clean-up')."\n\n".
|
259 |
+
__('This is an irreversible action.', 'wp-asset-clean-up')."\n\n".
|
260 |
+
__('Please confirm to continue or "Cancel" to abort it', 'wp-asset-clean-up');
|
261 |
+
|
262 |
+
$wpacuObjectData['reset_everything_except_settings_confirm_msg'] =
|
263 |
+
__('Are you sure you want to reset everything (unloads, load exceptions etc.) except settings?', 'wp-asset-clean-up')."\n\n".
|
264 |
+
__('This is an irreversible action.', 'wp-asset-clean-up')."\n\n".
|
265 |
+
__('Please confirm to continue or "Cancel" to abort it.', 'wp-asset-clean-up');
|
266 |
+
|
267 |
+
$wpacuObjectData['reset_everything_confirm_msg'] =
|
268 |
+
__('Are you sure you want to reset everything (settings, unloads, load exceptions etc.) to the same point it was when you first activated the plugin?', 'wp-asset-clean-up')."\n\n".
|
269 |
+
__('This is an irreversible action.', 'wp-asset-clean-up')."\n\n".
|
270 |
+
__('Please confirm to continue or "Cancel" to abort it.', 'wp-asset-clean-up');
|
271 |
+
|
272 |
+
// "Tools" - "Import & Export"
|
273 |
+
$wpacuObjectData['import_confirm_msg'] =
|
274 |
+
__('This process is NOT reversible.', 'wp-asset-clean-up')."\n\n".
|
275 |
+
__('Please make sure you have a backup (e.g. an exported JSON file) before proceeding.', 'wp-asset-clean-up')."\n\n".
|
276 |
+
__('Please confirm to continue or "Cancel" to abort it.', 'wp-asset-clean-up');
|
277 |
|
278 |
wp_localize_script(
|
279 |
WPACU_PLUGIN_ID . '-script',
|
281 |
apply_filters('wpacu_object_data', $wpacuObjectData)
|
282 |
);
|
283 |
|
284 |
+
wp_enqueue_script(WPACU_PLUGIN_ID . '-script');
|
285 |
}
|
286 |
|
287 |
/**
|
290 |
private function enqueuePublicStyles()
|
291 |
{
|
292 |
$styleRelPath = '/assets/style.min.css';
|
293 |
+
wp_enqueue_style(WPACU_PLUGIN_ID . '-style', plugins_url($styleRelPath, WPACU_PLUGIN_FILE), array(), $this->_assetVer($styleRelPath));
|
294 |
}
|
295 |
|
296 |
/**
|
299 |
public function enqueuePublicScripts()
|
300 |
{
|
301 |
$scriptRelPath = '/assets/script.min.js';
|
302 |
+
wp_enqueue_script( WPACU_PLUGIN_ID . '-script', plugins_url($scriptRelPath, WPACU_PLUGIN_FILE), array('jquery'), $this->_assetVer($scriptRelPath), true);
|
303 |
}
|
304 |
|
305 |
/**
|
338 |
return $src;
|
339 |
}
|
340 |
|
341 |
+
/**
|
342 |
+
* @param $tag
|
343 |
+
* @param $handle
|
344 |
+
*
|
345 |
+
* @return mixed
|
346 |
+
*/
|
347 |
+
public function ownAssetLoaderTag($tag, $handle)
|
348 |
+
{
|
349 |
+
// Useful in case jQuery library is deferred too (rare situations)
|
350 |
+
if ($handle === WPACU_PLUGIN_ID . '-script') {
|
351 |
+
$tag = str_replace(' src=', ' defer=\'defer\' src=', $tag);
|
352 |
+
}
|
353 |
+
|
354 |
+
return $tag;
|
355 |
+
}
|
356 |
+
|
357 |
}
|
classes/Plugin.php
CHANGED
@@ -32,8 +32,22 @@ class Plugin
|
|
32 |
// Show "Settings" and "Go Pro" as plugin action links
|
33 |
add_filter('plugin_action_links_'.WPACU_PLUGIN_BASE, array($this, 'actionLinks'));
|
34 |
|
|
|
|
|
|
|
35 |
}
|
36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
// [wpacu_lite]
|
38 |
/**
|
39 |
* @param $text
|
@@ -43,11 +57,11 @@ class Plugin
|
|
43 |
public function adminFooter($text)
|
44 |
{
|
45 |
if (isset($_GET['page']) && strpos($_GET['page'], WPACU_PLUGIN_ID) !== false) {
|
46 |
-
$text = sprintf(__('Thank you for using %s',
|
47 |
. ' <span class="dashicons dashicons-smiley"></span> ';
|
48 |
|
49 |
$text .= sprintf(
|
50 |
-
__('If you like it, please %s<strong>rate</strong> %s%s %s on WordPress.org to help me spread the word to the community.',
|
51 |
'<a target="_blank" href="'.self::RATE_URL.'">',
|
52 |
WPACU_PLUGIN_TITLE,
|
53 |
'</a>',
|
@@ -72,6 +86,8 @@ class Plugin
|
|
72 |
}
|
73 |
|
74 |
/**
|
|
|
|
|
75 |
* /wp-content/cache/asset-cleanup/
|
76 |
* /wp-content/cache/asset-cleanup/index.php
|
77 |
* /wp-content/cache/asset-cleanup/.htaccess
|
@@ -85,62 +101,74 @@ class Plugin
|
|
85 |
* /wp-content/cache/asset-cleanup/css/min/
|
86 |
* /wp-content/cache/asset-cleanup/css/min/index.php
|
87 |
*/
|
88 |
-
self::createCacheFoldersFiles();
|
89 |
}
|
90 |
|
91 |
/**
|
92 |
-
*
|
93 |
*/
|
94 |
-
public static function createCacheFoldersFiles()
|
95 |
{
|
96 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
|
98 |
-
|
99 |
<?php
|
100 |
// Silence is golden.
|
101 |
TEXT;
|
102 |
|
103 |
-
|
104 |
<IfModule mod_autoindex.c>
|
105 |
Options -Indexes
|
106 |
</IfModule>
|
107 |
HTACCESS;
|
108 |
|
|
|
|
|
|
|
109 |
|
110 |
-
|
111 |
-
|
112 |
-
|
|
|
113 |
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
|
118 |
-
|
119 |
-
|
|
|
120 |
|
121 |
-
if (! is_file($
|
122 |
-
|
|
|
123 |
}
|
124 |
-
}
|
125 |
|
126 |
-
|
127 |
-
@mkdir($cacheCssDir . 'min', 0755);
|
128 |
|
129 |
-
if (! is_file($
|
130 |
-
|
|
|
131 |
}
|
132 |
-
}
|
133 |
|
134 |
-
|
135 |
-
|
136 |
-
|
|
|
137 |
}
|
138 |
|
139 |
-
$
|
|
|
140 |
|
141 |
-
|
142 |
-
|
143 |
-
@file_put_contents($htAccessFilePath, $htAccessContents);
|
144 |
}
|
145 |
}
|
146 |
|
@@ -166,15 +194,15 @@ HTACCESS;
|
|
166 |
*/
|
167 |
public function actionLinks($links)
|
168 |
{
|
169 |
-
$links['getting_started'] = '<a href="admin.php?page=' . WPACU_PLUGIN_ID . '_getting_started">' . __('Getting Started',
|
170 |
-
$links['settings'] = '<a href="admin.php?page=' . WPACU_PLUGIN_ID . '_settings">' . __('Settings',
|
171 |
|
172 |
// [wpacu_lite]
|
173 |
$allPlugins = get_plugins();
|
174 |
|
175 |
// If the Pro version is not installed (active or not), show the upgrade link
|
176 |
if (! array_key_exists('wp-asset-clean-up-pro/wpacu.php', $allPlugins)) {
|
177 |
-
$links['go_pro'] = '<a target="_blank" style="font-weight: bold;" href="'.WPACU_PLUGIN_GO_PRO_URL.'">'.__('Go Pro',
|
178 |
}
|
179 |
// [/wpacu_lite]
|
180 |
|
32 |
// Show "Settings" and "Go Pro" as plugin action links
|
33 |
add_filter('plugin_action_links_'.WPACU_PLUGIN_BASE, array($this, 'actionLinks'));
|
34 |
|
35 |
+
// Languages
|
36 |
+
add_action('plugins_loaded', array($this, 'loadTextDomain'));
|
37 |
+
|
38 |
}
|
39 |
|
40 |
+
/**
|
41 |
+
*
|
42 |
+
*/
|
43 |
+
public function loadTextDomain()
|
44 |
+
{
|
45 |
+
load_plugin_textdomain('wp-asset-clean-up',
|
46 |
+
FALSE,
|
47 |
+
basename(WPACU_PLUGIN_DIR) . '/languages/'
|
48 |
+
);
|
49 |
+
}
|
50 |
+
|
51 |
// [wpacu_lite]
|
52 |
/**
|
53 |
* @param $text
|
57 |
public function adminFooter($text)
|
58 |
{
|
59 |
if (isset($_GET['page']) && strpos($_GET['page'], WPACU_PLUGIN_ID) !== false) {
|
60 |
+
$text = sprintf(__('Thank you for using %s', 'wp-asset-clean-up'), WPACU_PLUGIN_TITLE.' v'.WPACU_PLUGIN_VERSION)
|
61 |
. ' <span class="dashicons dashicons-smiley"></span> ';
|
62 |
|
63 |
$text .= sprintf(
|
64 |
+
__('If you like it, please %s<strong>rate</strong> %s%s %s on WordPress.org to help me spread the word to the community.', 'wp-asset-clean-up'),
|
65 |
'<a target="_blank" href="'.self::RATE_URL.'">',
|
66 |
WPACU_PLUGIN_TITLE,
|
67 |
'</a>',
|
86 |
}
|
87 |
|
88 |
/**
|
89 |
+
* Note: Could be /wp-content/uploads/ if constant WPACU_CACHE_DIR was used
|
90 |
+
*
|
91 |
* /wp-content/cache/asset-cleanup/
|
92 |
* /wp-content/cache/asset-cleanup/index.php
|
93 |
* /wp-content/cache/asset-cleanup/.htaccess
|
101 |
* /wp-content/cache/asset-cleanup/css/min/
|
102 |
* /wp-content/cache/asset-cleanup/css/min/index.php
|
103 |
*/
|
104 |
+
self::createCacheFoldersFiles(array('css','js'));
|
105 |
}
|
106 |
|
107 |
/**
|
108 |
+
* @param $assetTypes
|
109 |
*/
|
110 |
+
public static function createCacheFoldersFiles($assetTypes)
|
111 |
{
|
112 |
+
foreach ($assetTypes as $assetType) {
|
113 |
+
if ($assetType === 'css') {
|
114 |
+
$cacheDir = WP_CONTENT_DIR . OptimiseAssets\OptimizeCss::getRelPathCssCacheDir();
|
115 |
+
} elseif ($assetType === 'js') {
|
116 |
+
$cacheDir = WP_CONTENT_DIR . OptimiseAssets\OptimizeJs::getRelPathJsCacheDir();
|
117 |
+
} else {
|
118 |
+
return;
|
119 |
+
}
|
120 |
|
121 |
+
$emptyPhpFileContents = <<<TEXT
|
122 |
<?php
|
123 |
// Silence is golden.
|
124 |
TEXT;
|
125 |
|
126 |
+
$htAccessContents = <<<HTACCESS
|
127 |
<IfModule mod_autoindex.c>
|
128 |
Options -Indexes
|
129 |
</IfModule>
|
130 |
HTACCESS;
|
131 |
|
132 |
+
if ( ! is_dir( $cacheDir ) ) {
|
133 |
+
@mkdir( $cacheDir, 0755, true );
|
134 |
+
}
|
135 |
|
136 |
+
if ( ! is_file( $cacheDir . 'index.php' ) ) {
|
137 |
+
// /wp-content/cache/asset-cleanup/cache/{$assetType}/index.php
|
138 |
+
@file_put_contents( $cacheDir . 'index.php', $emptyPhpFileContents );
|
139 |
+
}
|
140 |
|
141 |
+
if ( ! is_dir( $cacheDir . 'logged-in' ) ) {
|
142 |
+
@mkdir( $cacheDir . 'logged-in', 0755 );
|
143 |
+
}
|
144 |
|
145 |
+
if ( ! is_dir( $cacheDir . 'min' ) ) {
|
146 |
+
@mkdir( $cacheDir . 'min', 0755 );
|
147 |
+
}
|
148 |
|
149 |
+
if ( ! is_file( $cacheDir . 'logged-in/index.php' ) ) {
|
150 |
+
// /wp-content/cache/asset-cleanup/cache/{$assetType}/logged-in/index.html
|
151 |
+
@file_put_contents( $cacheDir . 'logged-in/index.php', $emptyPhpFileContents );
|
152 |
}
|
|
|
153 |
|
154 |
+
$htAccessFilePath = dirname( $cacheDir ) . '/.htaccess';
|
|
|
155 |
|
156 |
+
if ( ! is_file( $htAccessFilePath ) ) {
|
157 |
+
// /wp-content/cache/asset-cleanup/.htaccess
|
158 |
+
@file_put_contents( $htAccessFilePath, $htAccessContents );
|
159 |
}
|
|
|
160 |
|
161 |
+
if ( ! is_file( dirname( $cacheDir ) . '/index.php' ) ) {
|
162 |
+
// /wp-content/cache/asset-cleanup/index.php
|
163 |
+
@file_put_contents( dirname( $cacheDir ) . '/index.php', $emptyPhpFileContents );
|
164 |
+
}
|
165 |
}
|
166 |
|
167 |
+
$storageDir = WP_CONTENT_DIR . OptimiseAssets\OptimizeCommon::getRelPathPluginCacheDir() . '_storage/';
|
168 |
+
$siteStorageCache = $storageDir.'/'.str_replace(array('https://', 'http://', '//'), '', site_url());
|
169 |
|
170 |
+
if ( ! is_dir($storageDir) ) {
|
171 |
+
@mkdir( $siteStorageCache, 0755, true );
|
|
|
172 |
}
|
173 |
}
|
174 |
|
194 |
*/
|
195 |
public function actionLinks($links)
|
196 |
{
|
197 |
+
$links['getting_started'] = '<a href="admin.php?page=' . WPACU_PLUGIN_ID . '_getting_started">' . __('Getting Started', 'wp-asset-clean-up') . '</a>';
|
198 |
+
$links['settings'] = '<a href="admin.php?page=' . WPACU_PLUGIN_ID . '_settings">' . __('Settings', 'wp-asset-clean-up') . '</a>';
|
199 |
|
200 |
// [wpacu_lite]
|
201 |
$allPlugins = get_plugins();
|
202 |
|
203 |
// If the Pro version is not installed (active or not), show the upgrade link
|
204 |
if (! array_key_exists('wp-asset-clean-up-pro/wpacu.php', $allPlugins)) {
|
205 |
+
$links['go_pro'] = '<a target="_blank" style="font-weight: bold;" href="'.WPACU_PLUGIN_GO_PRO_URL.'">'.__('Go Pro', 'wp-asset-clean-up').'</a>';
|
206 |
}
|
207 |
// [/wpacu_lite]
|
208 |
|
classes/Settings.php
CHANGED
@@ -27,6 +27,8 @@ class Settings
|
|
27 |
'frontend_show',
|
28 |
'frontend_show_exceptions',
|
29 |
|
|
|
|
|
30 |
// The way the CSS/JS list is showing (various ways depending on the preference)
|
31 |
'assets_list_layout',
|
32 |
'assets_list_layout_areas_status',
|
@@ -159,7 +161,7 @@ class Settings
|
|
159 |
if ($settings['dashboard_show'] != 1 && $settings['frontend_show'] != 1) {
|
160 |
?>
|
161 |
<div class="notice notice-warning">
|
162 |
-
<p><span style="color: #ffb900;" class="dashicons dashicons-info"></span> <?php _e('It looks like you have both "Manage in the Dashboard?" and "Manage in the Front-end?" inactive. The plugin still works fine and any assets you have selected for unload are not loaded. However, if you want to manage the assets in any page, you need to have at least one of the view options enabled.',
|
163 |
</div>
|
164 |
<?php
|
165 |
}
|
@@ -169,7 +171,7 @@ class Settings
|
|
169 |
delete_transient('wpacu_settings_updated');
|
170 |
?>
|
171 |
<div class="notice notice-success is-dismissible">
|
172 |
-
<p><span class="dashicons dashicons-yes"></span> <?php _e('The settings were successfully updated.',
|
173 |
</div>
|
174 |
<?php
|
175 |
}
|
@@ -259,7 +261,7 @@ class Settings
|
|
259 |
if ($settingsOption !== '' && is_string($settingsOption)) {
|
260 |
$settings = (array)json_decode($settingsOption);
|
261 |
|
262 |
-
if (
|
263 |
// Make sure all the keys are there even if no value is attached to them
|
264 |
// To avoid writing extra checks in other parts of the code and prevent PHP notice errors
|
265 |
foreach ($this->settingsKeys as $settingsKey) {
|
@@ -316,8 +318,6 @@ class Settings
|
|
316 |
*/
|
317 |
public function update($settings)
|
318 |
{
|
319 |
-
OptimizeCommon::clearAllCache();
|
320 |
-
|
321 |
$wpacuUpdate = new Update;
|
322 |
|
323 |
$settingsNotNull = array();
|
@@ -335,8 +335,8 @@ class Settings
|
|
335 |
$this->redirectAfterUpdate(); // script ends here
|
336 |
}
|
337 |
|
338 |
-
$disableJQueryMigrate = isset($_POST[
|
339 |
-
$disableCommentReply = isset($_POST[
|
340 |
|
341 |
/*
|
342 |
* Add element(s) to the global unload rules
|
@@ -378,6 +378,9 @@ class Settings
|
|
378 |
|
379 |
Misc::addUpdateOption(WPACU_PLUGIN_ID . '_settings', json_encode($settings));
|
380 |
|
|
|
|
|
|
|
381 |
$this->redirectAfterUpdate();
|
382 |
}
|
383 |
|
27 |
'frontend_show',
|
28 |
'frontend_show_exceptions',
|
29 |
|
30 |
+
'hide_from_admin_bar',
|
31 |
+
|
32 |
// The way the CSS/JS list is showing (various ways depending on the preference)
|
33 |
'assets_list_layout',
|
34 |
'assets_list_layout_areas_status',
|
161 |
if ($settings['dashboard_show'] != 1 && $settings['frontend_show'] != 1) {
|
162 |
?>
|
163 |
<div class="notice notice-warning">
|
164 |
+
<p><span style="color: #ffb900;" class="dashicons dashicons-info"></span> <?php _e('It looks like you have both "Manage in the Dashboard?" and "Manage in the Front-end?" inactive. The plugin still works fine and any assets you have selected for unload are not loaded. However, if you want to manage the assets in any page, you need to have at least one of the view options enabled.', 'wp-asset-clean-up'); ?></p>
|
165 |
</div>
|
166 |
<?php
|
167 |
}
|
171 |
delete_transient('wpacu_settings_updated');
|
172 |
?>
|
173 |
<div class="notice notice-success is-dismissible">
|
174 |
+
<p><span class="dashicons dashicons-yes"></span> <?php _e('The settings were successfully updated.', 'wp-asset-clean-up'); ?></p>
|
175 |
</div>
|
176 |
<?php
|
177 |
}
|
261 |
if ($settingsOption !== '' && is_string($settingsOption)) {
|
262 |
$settings = (array)json_decode($settingsOption);
|
263 |
|
264 |
+
if (Misc::jsonLastError() === JSON_ERROR_NONE) {
|
265 |
// Make sure all the keys are there even if no value is attached to them
|
266 |
// To avoid writing extra checks in other parts of the code and prevent PHP notice errors
|
267 |
foreach ($this->settingsKeys as $settingsKey) {
|
318 |
*/
|
319 |
public function update($settings)
|
320 |
{
|
|
|
|
|
321 |
$wpacuUpdate = new Update;
|
322 |
|
323 |
$settingsNotNull = array();
|
335 |
$this->redirectAfterUpdate(); // script ends here
|
336 |
}
|
337 |
|
338 |
+
$disableJQueryMigrate = isset($_POST[WPACU_PLUGIN_ID . '_global_unloads']['disable_jquery_migrate']);
|
339 |
+
$disableCommentReply = isset($_POST[WPACU_PLUGIN_ID . '_global_unloads']['disable_comment_reply']);
|
340 |
|
341 |
/*
|
342 |
* Add element(s) to the global unload rules
|
378 |
|
379 |
Misc::addUpdateOption(WPACU_PLUGIN_ID . '_settings', json_encode($settings));
|
380 |
|
381 |
+
// After settings are saved, clear all cache to re-built the CSS/JS based on the new settings
|
382 |
+
OptimizeCommon::clearAllCache();
|
383 |
+
|
384 |
$this->redirectAfterUpdate();
|
385 |
}
|
386 |
|
classes/Sorting.php
CHANGED
@@ -100,6 +100,7 @@ class Sorting
|
|
100 |
foreach (array('styles', 'scripts') as $assetType) {
|
101 |
foreach ( $list[$assetType] as $indexNo => $asset ) {
|
102 |
$src = isset($asset->src) ? $asset->src : '';
|
|
|
103 |
|
104 |
if ($assetAlt = self::matchesWpCoreCriteria($asset)) {
|
105 |
// Core Files
|
@@ -133,7 +134,7 @@ class Sorting
|
|
133 |
$asset->locationMain = 'plugins';
|
134 |
$asset->locationChild = $pluginDir;
|
135 |
|
136 |
-
} elseif ( (! empty(
|
137 |
$asset->locationMain = 'uploads';
|
138 |
$asset->locationChild = 'none';
|
139 |
} else {
|
@@ -209,12 +210,13 @@ class Sorting
|
|
209 |
$isOxygenBuilderPlugin = strpos( $src, '/wp-content/uploads/oxygen/css/' ) !== false;
|
210 |
$isElementorPlugin = strpos( $src, '/wp-content/uploads/elementor/css/' ) !== false;
|
211 |
$isWooCommerceInline = $asset->handle === 'woocommerce-inline';
|
|
|
212 |
|
213 |
$isPlugin = $isOxygenBuilderPlugin ||
|
214 |
$isElementorPlugin ||
|
215 |
$isWooCommerceInline ||
|
216 |
strpos( $src, plugins_url() ) !== false ||
|
217 |
-
((! empty(
|
218 |
|
219 |
if (! $isPlugin) {
|
220 |
return false;
|
100 |
foreach (array('styles', 'scripts') as $assetType) {
|
101 |
foreach ( $list[$assetType] as $indexNo => $asset ) {
|
102 |
$src = isset($asset->src) ? $asset->src : '';
|
103 |
+
$miscLocalSrc = Misc::getLocalSrc($src);
|
104 |
|
105 |
if ($assetAlt = self::matchesWpCoreCriteria($asset)) {
|
106 |
// Core Files
|
134 |
$asset->locationMain = 'plugins';
|
135 |
$asset->locationChild = $pluginDir;
|
136 |
|
137 |
+
} elseif ( (! empty($miscLocalSrc) && strpos($src, '/wp-content/uploads/') !== false) || strpos($src, '/wp-content/uploads/') === 0 ) {
|
138 |
$asset->locationMain = 'uploads';
|
139 |
$asset->locationChild = 'none';
|
140 |
} else {
|
210 |
$isOxygenBuilderPlugin = strpos( $src, '/wp-content/uploads/oxygen/css/' ) !== false;
|
211 |
$isElementorPlugin = strpos( $src, '/wp-content/uploads/elementor/css/' ) !== false;
|
212 |
$isWooCommerceInline = $asset->handle === 'woocommerce-inline';
|
213 |
+
$miscLocalSrc = Misc::getLocalSrc($src);
|
214 |
|
215 |
$isPlugin = $isOxygenBuilderPlugin ||
|
216 |
$isElementorPlugin ||
|
217 |
$isWooCommerceInline ||
|
218 |
strpos( $src, plugins_url() ) !== false ||
|
219 |
+
((! empty($miscLocalSrc) && strpos($src, '/wp-content/plugins/') !== false) || strpos($src, '/wp-content/plugins/') === 0);
|
220 |
|
221 |
if (! $isPlugin) {
|
222 |
return false;
|
classes/Tools.php
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
<?php
|
2 |
namespace WpAssetCleanUp;
|
3 |
|
|
|
|
|
4 |
/**
|
5 |
* Class Tools
|
6 |
* @package WpAssetCleanUp
|
@@ -33,16 +35,57 @@ class Tools
|
|
33 |
public function __construct()
|
34 |
{
|
35 |
$this->wpacuFor = Misc::getVar('request', 'wpacu_for', $this->wpacuFor);
|
36 |
-
|
37 |
-
add_action('admin_init', array($this, 'onAdminInit'), 1);
|
38 |
}
|
39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
/**
|
41 |
*
|
42 |
*/
|
43 |
public function onAdminInit()
|
44 |
{
|
45 |
-
if (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
$resetDoneInfoArray = @json_decode($resetDoneInfo, ARRAY_A);
|
47 |
|
48 |
if (! is_array($resetDoneInfoArray)) {
|
@@ -57,14 +100,6 @@ class Tools
|
|
57 |
// Show the confirmation that the reset was completed
|
58 |
add_action('wpacu_admin_notices', array($this, 'resetDone'));
|
59 |
}
|
60 |
-
|
61 |
-
if (Misc::getVar('post', 'wpacu-tools-reset')) {
|
62 |
-
$this->doReset();
|
63 |
-
}
|
64 |
-
|
65 |
-
if (Misc::getVar('post', 'wpacu-get-system-info')) {
|
66 |
-
$this->downloadSystemInfo();
|
67 |
-
}
|
68 |
}
|
69 |
|
70 |
/**
|
@@ -170,7 +205,7 @@ class Tools
|
|
170 |
|
171 |
$return .= 'Input Fields Style: '. ucfirst($settings['input_style'])."\n";
|
172 |
$return .= 'Hide WP Files (from managing): '. (($settings['hide_core_files'] == 1) ? 'Yes' : 'No') . "\n";
|
173 |
-
$return .= 'Enable "Test Mode"? '. (($settings['test_mode'] == 1) ? 'Yes' : 'No') . "\n";
|
174 |
|
175 |
$return .= 'Minify loaded CSS? '. (($settings['minify_loaded_css'] == 1) ? 'Yes' : 'No') . "\n";
|
176 |
$return .= 'Minify loaded JS? '. (($settings['minify_loaded_js'] == 1) ? 'Yes' : 'No') . "\n";
|
@@ -178,6 +213,9 @@ class Tools
|
|
178 |
$return .= 'Combine loaded CSS? '. (($settings['combine_loaded_css'] == 1) ? 'Yes' : 'No') . "\n";
|
179 |
$return .= 'Combine loaded JS? '. (($settings['combine_loaded_js'] == 1) ? 'Yes' : 'No') . "\n";
|
180 |
|
|
|
|
|
|
|
181 |
$return .= 'Disable Emojis? '. (($settings['disable_emojis'] == 1) ? 'Yes' : 'No') . "\n";
|
182 |
$return .= 'Disable jQuery Migrate (site-wide)? '. (($settings['disable_jquery_migrate'] == 1) ? 'Yes' : 'No') . "\n";
|
183 |
$return .= 'Disable Comment Reply (site-wide)? '. (($settings['disable_comment_reply'] == 1) ? 'Yes' : 'No') . "\n\n";
|
@@ -186,7 +224,7 @@ class Tools
|
|
186 |
$return .= 'Remove "Windows Live Writer" link tag? '. (($settings['remove_wlw_link'] == 1) ? 'Yes' : 'No') . "\n";
|
187 |
$return .= 'Remove "REST API" link tag? '. (($settings['remove_rest_api_link'] == 1) ? 'Yes' : 'No') . "\n";
|
188 |
$return .= 'Remove Pages/Posts "Shortlink" tag? '. (($settings['remove_shortlink'] == 1) ? 'Yes' : 'No') . "\n";
|
189 |
-
$return .= 'Remove "Post\'s Relational Links" tag?
|
190 |
$return .= 'Remove "WordPress version" meta tag? '. (($settings['remove_wp_version'] == 1) ? 'Yes' : 'No') . "\n";
|
191 |
$return .= 'Remove All "generator" meta tags? '. (($settings['remove_generator_tag'] == 1) ? 'Yes' : 'No') . "\n";
|
192 |
$return .= 'Remove Main RSS Feed Link? '. (($settings['remove_main_feed_link'] == 1) ? 'Yes' : 'No') . "\n";
|
@@ -398,7 +436,9 @@ class Tools
|
|
398 |
|
399 |
$wpacuPluginId = WPACU_PLUGIN_ID;
|
400 |
|
401 |
-
if ($wpacuResetValue === '
|
|
|
|
|
402 |
// `usermeta` and `termmeta` might have traces from the Pro version (if ever used)
|
403 |
foreach (array('postmeta', 'usermeta', 'termmeta') as $tableBaseName) {
|
404 |
// Get all Asset CleanUp meta keys from all WordPress meta tables where it can be possibly used
|
@@ -422,11 +462,22 @@ SQL;
|
|
422 |
}
|
423 |
}
|
424 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
425 |
// Fetch all Asset CleanUp options except the license key related ones
|
426 |
$sqlQueryGetOptions = <<<SQL
|
427 |
SELECT option_name FROM `{$wpdb->prefix}options`
|
428 |
-
WHERE option_name LIKE '{$wpacuPluginId}_%'
|
429 |
-
AND option_name NOT IN('{$wpacuPluginId}_pro_license_key', '{$wpacuPluginId}_pro_license_status')
|
430 |
SQL;
|
431 |
$wpacuOptionNames = $wpdb->get_col($sqlQueryGetOptions);
|
432 |
|
@@ -448,9 +499,7 @@ SQL;
|
|
448 |
|
449 |
// Refers to the plugins' icons shown when viewing assets list by location is enabled
|
450 |
delete_transient('wpacu_active_plugins_icons');
|
451 |
-
}
|
452 |
-
delete_option($wpacuPluginId.'_settings');
|
453 |
-
}
|
454 |
|
455 |
// Also make 'jQuery Migrate' and 'Comment Reply' core files to load again
|
456 |
// As they were enabled (not unloaded) in the default settings
|
@@ -512,12 +561,14 @@ SQL;
|
|
512 |
$msg = '';
|
513 |
|
514 |
if ($this->resetChoice === 'reset_settings') {
|
515 |
-
$msg = __('All the settings were reset to their default values.',
|
516 |
-
} elseif ($this->resetChoice === '
|
517 |
-
$msg = __('Everything was reset (including
|
|
|
|
|
518 |
|
519 |
if ($this->licenseDataRemoved) {
|
520 |
-
$msg .= '<span id="wpacu-license-data-removed-msg">'.__('Any license data was also removed, as you requested.').'</span>';
|
521 |
}
|
522 |
}
|
523 |
?>
|
@@ -526,4 +577,44 @@ SQL;
|
|
526 |
</div>
|
527 |
<?php
|
528 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
529 |
}
|
1 |
<?php
|
2 |
namespace WpAssetCleanUp;
|
3 |
|
4 |
+
use WpAssetCleanUp\OptimiseAssets\OptimizeCommon;
|
5 |
+
|
6 |
/**
|
7 |
* Class Tools
|
8 |
* @package WpAssetCleanUp
|
35 |
public function __construct()
|
36 |
{
|
37 |
$this->wpacuFor = Misc::getVar('request', 'wpacu_for', $this->wpacuFor);
|
|
|
|
|
38 |
}
|
39 |
|
40 |
+
/**
|
41 |
+
*
|
42 |
+
*/
|
43 |
+
public function init()
|
44 |
+
{
|
45 |
+
add_action('admin_init', array($this, 'onAdminInit'), 1);
|
46 |
+
}
|
47 |
+
|
48 |
/**
|
49 |
*
|
50 |
*/
|
51 |
public function onAdminInit()
|
52 |
{
|
53 |
+
if (Misc::getVar('post', 'wpacu-tools-reset')) {
|
54 |
+
$this->doReset();
|
55 |
+
}
|
56 |
+
|
57 |
+
if (Misc::getVar('post', 'wpacu-get-system-info')) {
|
58 |
+
$this->downloadSystemInfo();
|
59 |
+
}
|
60 |
+
|
61 |
+
if (! empty($_POST) && $this->wpacuFor === 'import_export') {
|
62 |
+
$wpacuImportExport = new ImportExport();
|
63 |
+
|
64 |
+
// Any import/export action taken? It will reload the page if action is successful
|
65 |
+
$wpacuImportExport->doImport();
|
66 |
+
|
67 |
+
// This will download the JSON through the right headers (the user will stay on the same page)
|
68 |
+
$wpacuImportExport->doExport();
|
69 |
+
}
|
70 |
+
|
71 |
+
// "Import" Completed
|
72 |
+
if ($importDoneInfo = get_transient('wpacu_import_done')) {
|
73 |
+
$resetDoneListArray = @json_decode($importDoneInfo, ARRAY_A);
|
74 |
+
|
75 |
+
if (! is_array($resetDoneListArray)) {
|
76 |
+
return;
|
77 |
+
}
|
78 |
+
|
79 |
+
$this->data['import_done_list'] = $resetDoneListArray;
|
80 |
+
|
81 |
+
delete_transient('wpacu_import_done');
|
82 |
+
|
83 |
+
// Show the confirmation that the import was completed
|
84 |
+
add_action('wpacu_admin_notices', array($this, 'importDone'));
|
85 |
+
}
|
86 |
+
|
87 |
+
// "Reset" Completed
|
88 |
+
if ($resetDoneInfo = get_transient('wpacu_reset_done')) {
|
89 |
$resetDoneInfoArray = @json_decode($resetDoneInfo, ARRAY_A);
|
90 |
|
91 |
if (! is_array($resetDoneInfoArray)) {
|
100 |
// Show the confirmation that the reset was completed
|
101 |
add_action('wpacu_admin_notices', array($this, 'resetDone'));
|
102 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
}
|
104 |
|
105 |
/**
|
205 |
|
206 |
$return .= 'Input Fields Style: '. ucfirst($settings['input_style'])."\n";
|
207 |
$return .= 'Hide WP Files (from managing): '. (($settings['hide_core_files'] == 1) ? 'Yes' : 'No') . "\n";
|
208 |
+
$return .= 'Enable "Test Mode"? '. (($settings['test_mode'] == 1) ? 'Yes' : 'No') . "\n\n";
|
209 |
|
210 |
$return .= 'Minify loaded CSS? '. (($settings['minify_loaded_css'] == 1) ? 'Yes' : 'No') . "\n";
|
211 |
$return .= 'Minify loaded JS? '. (($settings['minify_loaded_js'] == 1) ? 'Yes' : 'No') . "\n";
|
213 |
$return .= 'Combine loaded CSS? '. (($settings['combine_loaded_css'] == 1) ? 'Yes' : 'No') . "\n";
|
214 |
$return .= 'Combine loaded JS? '. (($settings['combine_loaded_js'] == 1) ? 'Yes' : 'No') . "\n";
|
215 |
|
216 |
+
$storageCssJsDir = WP_CONTENT_DIR . OptimizeCommon::getRelPathPluginCacheDir();
|
217 |
+
$return .= 'CSS/JS Storage Directory: '. $storageCssJsDir . ' ('.(is_writable($storageCssJsDir) ? 'writable' : 'NON WRITABLE').')' ."\n\n";
|
218 |
+
|
219 |
$return .= 'Disable Emojis? '. (($settings['disable_emojis'] == 1) ? 'Yes' : 'No') . "\n";
|
220 |
$return .= 'Disable jQuery Migrate (site-wide)? '. (($settings['disable_jquery_migrate'] == 1) ? 'Yes' : 'No') . "\n";
|
221 |
$return .= 'Disable Comment Reply (site-wide)? '. (($settings['disable_comment_reply'] == 1) ? 'Yes' : 'No') . "\n\n";
|
224 |
$return .= 'Remove "Windows Live Writer" link tag? '. (($settings['remove_wlw_link'] == 1) ? 'Yes' : 'No') . "\n";
|
225 |
$return .= 'Remove "REST API" link tag? '. (($settings['remove_rest_api_link'] == 1) ? 'Yes' : 'No') . "\n";
|
226 |
$return .= 'Remove Pages/Posts "Shortlink" tag? '. (($settings['remove_shortlink'] == 1) ? 'Yes' : 'No') . "\n";
|
227 |
+
$return .= 'Remove "Post\'s Relational Links" tag? '. (($settings['remove_posts_rel_links'] == 1) ? 'Yes' : 'No') . "\n";
|
228 |
$return .= 'Remove "WordPress version" meta tag? '. (($settings['remove_wp_version'] == 1) ? 'Yes' : 'No') . "\n";
|
229 |
$return .= 'Remove All "generator" meta tags? '. (($settings['remove_generator_tag'] == 1) ? 'Yes' : 'No') . "\n";
|
230 |
$return .= 'Remove Main RSS Feed Link? '. (($settings['remove_main_feed_link'] == 1) ? 'Yes' : 'No') . "\n";
|
436 |
|
437 |
$wpacuPluginId = WPACU_PLUGIN_ID;
|
438 |
|
439 |
+
if ($wpacuResetValue === 'reset_settings') {
|
440 |
+
delete_option($wpacuPluginId.'_settings');
|
441 |
+
} elseif (in_array($wpacuResetValue, array('reset_everything', 'reset_everything_except_settings'))) {
|
442 |
// `usermeta` and `termmeta` might have traces from the Pro version (if ever used)
|
443 |
foreach (array('postmeta', 'usermeta', 'termmeta') as $tableBaseName) {
|
444 |
// Get all Asset CleanUp meta keys from all WordPress meta tables where it can be possibly used
|
462 |
}
|
463 |
}
|
464 |
|
465 |
+
$wpacuOptionNamesExceptions = array(
|
466 |
+
"'".$wpacuPluginId.'_pro_license_key'."'",
|
467 |
+
"'".$wpacuPluginId.'_pro_license_status'."'"
|
468 |
+
);
|
469 |
+
|
470 |
+
// Add "Settings" to the NOT IN list to avoid clearing it
|
471 |
+
if ($wpacuResetValue === 'reset_everything_except_settings') {
|
472 |
+
$wpacuOptionNamesExceptions[] = "'".$wpacuPluginId.'_settings'."'";
|
473 |
+
}
|
474 |
+
|
475 |
+
$wpacuSqlPartOptionExceptions = implode(',', $wpacuOptionNamesExceptions);
|
476 |
+
|
477 |
// Fetch all Asset CleanUp options except the license key related ones
|
478 |
$sqlQueryGetOptions = <<<SQL
|
479 |
SELECT option_name FROM `{$wpdb->prefix}options`
|
480 |
+
WHERE option_name LIKE '{$wpacuPluginId}_%' AND option_name NOT IN ({$wpacuSqlPartOptionExceptions})
|
|
|
481 |
SQL;
|
482 |
$wpacuOptionNames = $wpdb->get_col($sqlQueryGetOptions);
|
483 |
|
499 |
|
500 |
// Refers to the plugins' icons shown when viewing assets list by location is enabled
|
501 |
delete_transient('wpacu_active_plugins_icons');
|
502 |
+
}
|
|
|
|
|
503 |
|
504 |
// Also make 'jQuery Migrate' and 'Comment Reply' core files to load again
|
505 |
// As they were enabled (not unloaded) in the default settings
|
561 |
$msg = '';
|
562 |
|
563 |
if ($this->resetChoice === 'reset_settings') {
|
564 |
+
$msg = __('All the settings were reset to their default values.', 'wp-asset-clean-up');
|
565 |
+
} elseif ($this->resetChoice === 'reset_everything_except_settings') {
|
566 |
+
$msg = __('Everything except the "Settings" was reset (including page & bulk unloads, load exceptions).', 'wp-asset-clean-up');
|
567 |
+
} elseif ($this->resetChoice === 'reset_everything') {
|
568 |
+
$msg = __('Everything was reset (including settings, individual & bulk unloads, load exceptions) to the same point it was when you first activated the plugin.', 'wp-asset-clean-up');
|
569 |
|
570 |
if ($this->licenseDataRemoved) {
|
571 |
+
$msg .= '<span id="wpacu-license-data-removed-msg">'.__('Any license data was also removed, as you requested.', 'wp-asset-clean-up').'</span>';
|
572 |
}
|
573 |
}
|
574 |
?>
|
577 |
</div>
|
578 |
<?php
|
579 |
}
|
580 |
+
|
581 |
+
/**
|
582 |
+
*
|
583 |
+
*/
|
584 |
+
public function importDone()
|
585 |
+
{
|
586 |
+
if (empty($this->data['import_done_list'])) {
|
587 |
+
return;
|
588 |
+
}
|
589 |
+
|
590 |
+
$importedMessage = __('The following were imported:', 'wp-asset-clean-up');
|
591 |
+
|
592 |
+
$importedMessage .= '<ul style="list-style: disc; padding-left: 30px; margin-bottom: 0;">';
|
593 |
+
|
594 |
+
foreach ($this->data['import_done_list'] as $importedKey) {
|
595 |
+
if ($importedKey === 'settings') {
|
596 |
+
$importedMessage .= '<li>"'.__('Settings', 'wp-asset-clean-up').'"</li>';
|
597 |
+
} elseif ($importedKey === 'homepage_unloads') {
|
598 |
+
$importedMessage .= '<li>'.__('Homepage Unload Rules', 'wp-asset-clean-up').'</li>';
|
599 |
+
} elseif ($importedKey === 'homepage_exceptions') {
|
600 |
+
$importedMessage .= '<li>'.__('Homepage Load Exceptions (for site-wide and bulk unloads)', 'wp-asset-clean-up').'</li>';
|
601 |
+
} elseif ($importedKey === 'sitewide_unloads') {
|
602 |
+
$importedMessage .= '<li>'.__('Site-wide unloads', 'wp-asset-clean-up').'</li>';
|
603 |
+
} elseif ($importedKey === 'bulk_unloads') {
|
604 |
+
$importedMessage .= '<li>'.__('Bulk Unloads (e.g. for all pages of `post` post type)', 'wp-asset-clean-up').'</li>';
|
605 |
+
} elseif ($importedKey === 'posts_metas') {
|
606 |
+
$importedMessage .= '<li>'.__('Posts, Pages & Custom Post Types: Rules & Page Options (Side Meta Box)', 'wp-asset-clean-up').'</li>';
|
607 |
+
}
|
608 |
+
}
|
609 |
+
|
610 |
+
$importedMessage .= '</ul>';
|
611 |
+
?>
|
612 |
+
<div class="clearfix"></div>
|
613 |
+
<div class="updated notice wpacu-notice wpacu-imported-notice is-dismissible">
|
614 |
+
<p><span class="dashicons dashicons-yes"></span> <?php echo $importedMessage; ?></p>
|
615 |
+
<p>If you're using a caching plugin (e.g. WP Rocket, WP Fastest Cache, W3 Total Cache etc.) it's recommended to clear its cache if the website is working as you expect after this import, so the changes will take effect for every visitor.</p>
|
616 |
+
</div>
|
617 |
+
<?php
|
618 |
+
$this->data['import_done_list'] = array(); // reset it to avoid showing it twice
|
619 |
+
}
|
620 |
}
|
classes/Update.php
CHANGED
@@ -41,12 +41,12 @@ class Update
|
|
41 |
*/
|
42 |
public function __construct()
|
43 |
{
|
44 |
-
$homePageSettingsUpdatedText = __('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.'
|
45 |
$this->updateDoneMsg['homepage'] = <<<HTML
|
46 |
<span class="dashicons dashicons-yes"></span> {$homePageSettingsUpdatedText}
|
47 |
HTML;
|
48 |
|
49 |
-
$pageSettingsUpdatedText = __('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.',
|
50 |
$this->updateDoneMsg['page'] = <<<HTML
|
51 |
<span class="dashicons dashicons-yes"></span> {$pageSettingsUpdatedText}
|
52 |
HTML;
|
@@ -110,11 +110,11 @@ HTML;
|
|
110 |
$postUrlAnchor = $_SERVER['REQUEST_URI'].'#wpacu_wrap_assets';
|
111 |
wp_die(
|
112 |
sprintf(
|
113 |
-
__('The nonce expired or is not correct, thus the request was not processed. %sPlease retry%s.',
|
114 |
'<a href="'.$postUrlAnchor.'">',
|
115 |
'</a>'
|
116 |
),
|
117 |
-
__('Nonce Expired',
|
118 |
);
|
119 |
}
|
120 |
|
@@ -122,8 +122,9 @@ HTML;
|
|
122 |
|
123 |
// Form submitted from the homepage
|
124 |
// e.g. from a page such as latest blog posts, not a static page that was selected as home page)
|
125 |
-
if (
|
126 |
-
|
|
|
127 |
$this->updateFrontPage($wpacuNoLoadAssets);
|
128 |
return;
|
129 |
}
|
@@ -540,7 +541,7 @@ HTML;
|
|
540 |
|
541 |
$existingList = json_decode($existingListJson, true);
|
542 |
|
543 |
-
if (
|
544 |
foreach (array('styles', 'scripts') as $assetType) {
|
545 |
if ($assetType === 'styles') {
|
546 |
$list = $removeStylesList;
|
@@ -563,7 +564,7 @@ HTML;
|
|
563 |
}
|
564 |
|
565 |
if ($isUpdated) {
|
566 |
-
Misc::addUpdateOption(
|
567 |
}
|
568 |
}
|
569 |
|
@@ -693,7 +694,7 @@ HTML;
|
|
693 |
|
694 |
$existingList = json_decode($existingListJson, true);
|
695 |
|
696 |
-
if (
|
697 |
$list = array();
|
698 |
|
699 |
foreach (array('styles', 'scripts') as $assetType) {
|
41 |
*/
|
42 |
public function __construct()
|
43 |
{
|
44 |
+
$homePageSettingsUpdatedText = __('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.', 'wp-asset-clean-up');
|
45 |
$this->updateDoneMsg['homepage'] = <<<HTML
|
46 |
<span class="dashicons dashicons-yes"></span> {$homePageSettingsUpdatedText}
|
47 |
HTML;
|
48 |
|
49 |
+
$pageSettingsUpdatedText = __('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.', 'wp-asset-clean-up');
|
50 |
$this->updateDoneMsg['page'] = <<<HTML
|
51 |
<span class="dashicons dashicons-yes"></span> {$pageSettingsUpdatedText}
|
52 |
HTML;
|
110 |
$postUrlAnchor = $_SERVER['REQUEST_URI'].'#wpacu_wrap_assets';
|
111 |
wp_die(
|
112 |
sprintf(
|
113 |
+
__('The nonce expired or is not correct, thus the request was not processed. %sPlease retry%s.', 'wp-asset-clean-up'),
|
114 |
'<a href="'.$postUrlAnchor.'">',
|
115 |
'</a>'
|
116 |
),
|
117 |
+
__('Nonce Expired', 'wp-asset-clean-up')
|
118 |
);
|
119 |
}
|
120 |
|
122 |
|
123 |
// Form submitted from the homepage
|
124 |
// e.g. from a page such as latest blog posts, not a static page that was selected as home page)
|
125 |
+
if (Misc::isHomePage() && Misc::getShowOnFront() !== 'page') {
|
126 |
+
$wpacuNoLoadAssets = Misc::getVar('post', WPACU_PLUGIN_ID, array());
|
127 |
+
|
128 |
$this->updateFrontPage($wpacuNoLoadAssets);
|
129 |
return;
|
130 |
}
|
541 |
|
542 |
$existingList = json_decode($existingListJson, true);
|
543 |
|
544 |
+
if (Misc::jsonLastError() === JSON_ERROR_NONE) {
|
545 |
foreach (array('styles', 'scripts') as $assetType) {
|
546 |
if ($assetType === 'styles') {
|
547 |
$list = $removeStylesList;
|
564 |
}
|
565 |
|
566 |
if ($isUpdated) {
|
567 |
+
Misc::addUpdateOption(WPACU_PLUGIN_ID . '_global_unload', json_encode($existingList));
|
568 |
}
|
569 |
}
|
570 |
|
694 |
|
695 |
$existingList = json_decode($existingListJson, true);
|
696 |
|
697 |
+
if (Misc::jsonLastError() === JSON_ERROR_NONE) {
|
698 |
$list = array();
|
699 |
|
700 |
foreach (array('styles', 'scripts') as $assetType) {
|
early-triggers.php
CHANGED
@@ -12,36 +12,53 @@ if (! function_exists('assetCleanUpNoLoad')) {
|
|
12 |
* @return bool
|
13 |
*/
|
14 |
function assetCleanUpNoLoad() {
|
15 |
-
//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
if (isset($_GET['post'], $_GET['action']) && $_GET['post'] && $_GET['action'] === 'elementor' && is_admin()) {
|
17 |
return true;
|
18 |
}
|
19 |
|
20 |
-
//
|
|
|
|
|
|
|
|
|
|
|
21 |
if (isset($_GET['ct_builder'], $_GET['ct_inner']) && $_GET['ct_builder'] === 'true' && $_GET['ct_inner'] === 'true') {
|
22 |
return true;
|
23 |
}
|
24 |
|
25 |
-
//
|
26 |
if (isset($_GET['et_fb'], $_GET['PageSpeed']) && $_GET['et_fb'] == 1 && $_GET['PageSpeed']) {
|
27 |
return true;
|
28 |
}
|
29 |
|
30 |
-
//
|
31 |
if (isset($_GET['fl_builder'])) {
|
32 |
return true;
|
33 |
}
|
34 |
|
35 |
-
//
|
36 |
if (isset($_GET['action'], $_GET['tve']) && $_GET['action'] === 'architect' && $_GET['tve'] === 'true' && is_admin()) {
|
37 |
return true;
|
38 |
}
|
39 |
|
40 |
-
//
|
41 |
if (isset($_GET['action'], $_GET['so_live_editor']) && $_GET['action'] === 'edit' && $_GET['so_live_editor'] && is_admin()) {
|
42 |
return true;
|
43 |
}
|
44 |
|
|
|
|
|
|
|
|
|
|
|
45 |
// WordPress Customise Mode
|
46 |
if ((isset($_GET['customize_changeset_uuid'], $_GET['customize_theme']) && $_GET['customize_changeset_uuid'] && $_GET['customize_theme'])
|
47 |
|| (strpos($_SERVER['REQUEST_URI'],
|
@@ -49,13 +66,11 @@ if (! function_exists('assetCleanUpNoLoad')) {
|
|
49 |
return true;
|
50 |
}
|
51 |
|
52 |
-
// On request: for debugging purposes - e.g. https://yourwebsite.com/?wpacu_no_load
|
53 |
-
// Also make sure it's in the REQUEST URI and $_GET wasn't altered incorrectly before it's checked
|
54 |
-
// Technically, it will be like Asset CleanUp is not activated: no global settings and unload rules will be applied
|
55 |
-
if (array_key_exists('wpacu_no_load', $_GET) && strpos($_SERVER['REQUEST_URI'], 'wpacu_no_load') !== false) {
|
56 |
-
return true;
|
57 |
-
}
|
58 |
-
|
59 |
return false;
|
60 |
}
|
61 |
}
|
|
|
|
|
|
|
|
|
|
12 |
* @return bool
|
13 |
*/
|
14 |
function assetCleanUpNoLoad() {
|
15 |
+
// On request: for debugging purposes - e.g. https://yourwebsite.com/?wpacu_no_load
|
16 |
+
// Also make sure it's in the REQUEST URI and $_GET wasn't altered incorrectly before it's checked
|
17 |
+
// Technically, it will be like Asset CleanUp is not activated: no global settings and unload rules will be applied
|
18 |
+
if (array_key_exists('wpacu_no_load', $_GET) && strpos($_SERVER['REQUEST_URI'], 'wpacu_no_load') !== false) {
|
19 |
+
return true;
|
20 |
+
}
|
21 |
+
|
22 |
+
// "Elementor" plugin Admin Area: Edit Mode
|
23 |
if (isset($_GET['post'], $_GET['action']) && $_GET['post'] && $_GET['action'] === 'elementor' && is_admin()) {
|
24 |
return true;
|
25 |
}
|
26 |
|
27 |
+
// "Elementor" plugin (Preview Mode within Page Builder)
|
28 |
+
if (isset($_GET['elementor-preview'], $_GET['ver']) && (int)$_GET['elementor-preview'] > 0 && $_GET['ver']) {
|
29 |
+
return true;
|
30 |
+
}
|
31 |
+
|
32 |
+
// "Oxygen" plugin: Edit Mode
|
33 |
if (isset($_GET['ct_builder'], $_GET['ct_inner']) && $_GET['ct_builder'] === 'true' && $_GET['ct_inner'] === 'true') {
|
34 |
return true;
|
35 |
}
|
36 |
|
37 |
+
// "Divi" theme builder: Front-end View Edit Mode
|
38 |
if (isset($_GET['et_fb'], $_GET['PageSpeed']) && $_GET['et_fb'] == 1 && $_GET['PageSpeed']) {
|
39 |
return true;
|
40 |
}
|
41 |
|
42 |
+
// Beaver Builder
|
43 |
if (isset($_GET['fl_builder'])) {
|
44 |
return true;
|
45 |
}
|
46 |
|
47 |
+
// Thrive Architect
|
48 |
if (isset($_GET['action'], $_GET['tve']) && $_GET['action'] === 'architect' && $_GET['tve'] === 'true' && is_admin()) {
|
49 |
return true;
|
50 |
}
|
51 |
|
52 |
+
// Page Builder by SiteOrigin
|
53 |
if (isset($_GET['action'], $_GET['so_live_editor']) && $_GET['action'] === 'edit' && $_GET['so_live_editor'] && is_admin()) {
|
54 |
return true;
|
55 |
}
|
56 |
|
57 |
+
// Perfmatters: Script Manager
|
58 |
+
if (isset($_GET['perfmatters'])) {
|
59 |
+
return true;
|
60 |
+
}
|
61 |
+
|
62 |
// WordPress Customise Mode
|
63 |
if ((isset($_GET['customize_changeset_uuid'], $_GET['customize_theme']) && $_GET['customize_changeset_uuid'] && $_GET['customize_theme'])
|
64 |
|| (strpos($_SERVER['REQUEST_URI'],
|
66 |
return true;
|
67 |
}
|
68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
return false;
|
70 |
}
|
71 |
}
|
72 |
+
|
73 |
+
// In case JSON library is not enabled (rare cases)
|
74 |
+
if (! defined('JSON_ERROR_NONE')) {
|
75 |
+
define('JSON_ERROR_NONE', 0);
|
76 |
+
}
|
freemius-load.php
CHANGED
@@ -1,17 +1,46 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
}
|
11 |
|
12 |
-
if (
|
13 |
-
|
14 |
-
|
|
|
|
|
|
|
15 |
global $wpassetcleanup_fs;
|
16 |
|
17 |
if ( ! isset( $wpassetcleanup_fs ) ) {
|
@@ -20,7 +49,7 @@ if ($wpacuLoadFreemius) {
|
|
20 |
|
21 |
$wpassetcleanup_fs = fs_dynamic_init( array (
|
22 |
'id' => '2951',
|
23 |
-
'slug' =>
|
24 |
'type' => 'plugin',
|
25 |
'public_key' => 'pk_70ecc6600cb03b5168150b4c99257',
|
26 |
'is_premium' => false,
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
* @return bool
|
4 |
+
*/
|
5 |
+
function wpacuLoadFreemius()
|
6 |
+
{
|
7 |
+
// Uninstall Reason Sent via AJAX?
|
8 |
+
if (isset($_POST['action'], $_POST['reason_id'], $_POST['reason_id'], $_POST['module_id'], $_POST['security'])
|
9 |
+
&& $_POST['action'] && $_POST['reason_id'] && $_POST['module_id'] && $_POST['security']) {
|
10 |
+
$freemiusModuleId = (int)$_POST['module_id'];
|
11 |
+
|
12 |
+
if ($freemiusModuleId !== 2951) {
|
13 |
+
return false;
|
14 |
+
}
|
15 |
+
|
16 |
+
if (strpos($_POST['action'], 'fs_submit') === false) {
|
17 |
+
return false;
|
18 |
+
}
|
19 |
+
|
20 |
+
return true;
|
21 |
+
}
|
22 |
+
|
23 |
+
// Load Assets AJAX call? Do not load it
|
24 |
+
if (array_key_exists(WPACU_LOAD_ASSETS_REQ_KEY, $_REQUEST)) {
|
25 |
+
return false;
|
26 |
+
}
|
27 |
+
|
28 |
+
// Final check
|
29 |
+
if (! function_exists( 'wpassetcleanup_fs' )
|
30 |
+
&& ! class_exists( 'Freemius' )
|
31 |
+
&& is_admin()) {
|
32 |
+
return true;
|
33 |
+
}
|
34 |
+
|
35 |
+
return false;
|
36 |
}
|
37 |
|
38 |
+
if (wpacuLoadFreemius()) {
|
39 |
+
/**
|
40 |
+
* Create a helper function for easy SDK access.
|
41 |
+
*/
|
42 |
+
function wpassetcleanup_fs()
|
43 |
+
{
|
44 |
global $wpassetcleanup_fs;
|
45 |
|
46 |
if ( ! isset( $wpassetcleanup_fs ) ) {
|
49 |
|
50 |
$wpassetcleanup_fs = fs_dynamic_init( array (
|
51 |
'id' => '2951',
|
52 |
+
'slug' => 'wp-asset-clean-up',
|
53 |
'type' => 'plugin',
|
54 |
'public_key' => 'pk_70ecc6600cb03b5168150b4c99257',
|
55 |
'is_premium' => false,
|
languages/wp-asset-clean-up-en_GB.mo
ADDED
Binary file
|
languages/wp-asset-clean-up-en_GB.po
ADDED
@@ -0,0 +1,2156 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Asset CleanUp: Page Speed Booster\n"
|
4 |
+
"POT-Creation-Date: 2019-04-20 00:13+0100\n"
|
5 |
+
"PO-Revision-Date: 2019-04-20 00:13+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"Language: en_GB\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 2.2.1\n"
|
13 |
+
"X-Poedit-Basepath: ..\n"
|
14 |
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
15 |
+
"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
|
16 |
+
"X-Poedit-WPHeader: wpacu.php\n"
|
17 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
18 |
+
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
|
19 |
+
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
|
20 |
+
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
|
21 |
+
"X-Poedit-SearchPath-0: .\n"
|
22 |
+
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
23 |
+
|
24 |
+
#: classes/AdminBar.php:50 classes/Menu.php:78 classes/Menu.php:79
|
25 |
+
#: classes/Plugin.php:187 templates/_top-area.php:14
|
26 |
+
msgid "Settings"
|
27 |
+
msgstr ""
|
28 |
+
|
29 |
+
#: classes/AdminBar.php:57
|
30 |
+
msgid "Clear CSS/JS Files Cache"
|
31 |
+
msgstr ""
|
32 |
+
|
33 |
+
#: classes/AdminBar.php:73
|
34 |
+
msgid "Manage Homepage Assets"
|
35 |
+
msgstr ""
|
36 |
+
|
37 |
+
#: classes/AdminBar.php:83 classes/AdminBar.php:94
|
38 |
+
msgid "Manage Page Assets"
|
39 |
+
msgstr ""
|
40 |
+
|
41 |
+
#: classes/AdminBar.php:102 classes/Menu.php:87 classes/Menu.php:88
|
42 |
+
#: templates/_top-area.php:33
|
43 |
+
msgid "Bulk Changes"
|
44 |
+
msgstr ""
|
45 |
+
|
46 |
+
#: classes/AdminBar.php:109
|
47 |
+
msgid "Support Forum"
|
48 |
+
msgstr ""
|
49 |
+
|
50 |
+
#: classes/BulkUnloads.php:141
|
51 |
+
msgid ""
|
52 |
+
"The selected styles/scripts were removed from the global unload list and "
|
53 |
+
"they will now load in the pages/posts, unless you have other rules that "
|
54 |
+
"would prevent them from loading."
|
55 |
+
msgstr ""
|
56 |
+
|
57 |
+
#: classes/BulkUnloads.php:158
|
58 |
+
#, php-format
|
59 |
+
msgid ""
|
60 |
+
"The selected styles/scripts were removed from the unload list for <strong><u>"
|
61 |
+
"%s</u></strong> post type and they will now load in the pages/posts, unless "
|
62 |
+
"you have other rules that would prevent them from loading."
|
63 |
+
msgstr ""
|
64 |
+
|
65 |
+
#: classes/Main.php:1200
|
66 |
+
msgid ""
|
67 |
+
"The CSS/JS files will be available to manage once the post/page is published."
|
68 |
+
msgstr ""
|
69 |
+
|
70 |
+
#: classes/Main.php:1938 templates/_top-area.php:19
|
71 |
+
msgid "CSS & JavaScript Load Manager"
|
72 |
+
msgstr ""
|
73 |
+
|
74 |
+
#: classes/Main.php:1943
|
75 |
+
#, php-format
|
76 |
+
msgid ""
|
77 |
+
"Managing the loading of the styles & scripts files for this <strong>%s</"
|
78 |
+
"strong> taxonomy is %savailable in the Pro version%s"
|
79 |
+
msgstr ""
|
80 |
+
|
81 |
+
#: classes/Main.php:2066
|
82 |
+
msgid ""
|
83 |
+
"Asset CleanUp: \"TEST MODE\" ENABLED (any settings or unloads will be "
|
84 |
+
"visible ONLY to you, the logged-in administrator)"
|
85 |
+
msgstr ""
|
86 |
+
|
87 |
+
#: classes/Main.php:2067
|
88 |
+
msgid ""
|
89 |
+
"\"Test Mode\" is ENABLED. Any settings or unloads will be visible ONLY to "
|
90 |
+
"you, the logged-in administrator."
|
91 |
+
msgstr ""
|
92 |
+
|
93 |
+
#: classes/Main.php:2069
|
94 |
+
msgid ""
|
95 |
+
"Asset CleanUp: \"LIVE MODE\" (test mode is not enabled, thus, all the plugin "
|
96 |
+
"changes are visible for everyone: you, the logged-in administrator and the "
|
97 |
+
"regular visitors)"
|
98 |
+
msgstr ""
|
99 |
+
|
100 |
+
#: classes/Main.php:2070
|
101 |
+
msgid ""
|
102 |
+
"The website is in LIVE MODE as \"Test Mode\" is not enabled. All the plugin "
|
103 |
+
"changes are visible for everyone: logged-in administrators and regular "
|
104 |
+
"visitors."
|
105 |
+
msgstr ""
|
106 |
+
|
107 |
+
#: classes/Main.php:2073
|
108 |
+
msgid ""
|
109 |
+
"NOTE: These \"Asset CleanUp: Page Speed Booster\" messages are only shown to "
|
110 |
+
"you, the HTML comment is not visible for the regular visitor."
|
111 |
+
msgstr ""
|
112 |
+
|
113 |
+
#: classes/Menu.php:46 classes/Menu.php:47 classes/Menu.php:136
|
114 |
+
#: classes/Menu.php:139
|
115 |
+
msgid "Asset CleanUp"
|
116 |
+
msgstr ""
|
117 |
+
|
118 |
+
#: classes/Menu.php:56 classes/Menu.php:57
|
119 |
+
msgid "CSS & JS Manager"
|
120 |
+
msgstr ""
|
121 |
+
|
122 |
+
#: classes/Menu.php:96 classes/Menu.php:97 templates/_top-area.php:38
|
123 |
+
msgid "Tools"
|
124 |
+
msgstr ""
|
125 |
+
|
126 |
+
#: classes/Menu.php:106 classes/Menu.php:107 templates/_top-area.php:43
|
127 |
+
msgid "License"
|
128 |
+
msgstr ""
|
129 |
+
|
130 |
+
#: classes/Menu.php:116 classes/Menu.php:117 templates/_top-area.php:48
|
131 |
+
msgid "Help"
|
132 |
+
msgstr ""
|
133 |
+
|
134 |
+
#: classes/Menu.php:126 classes/Menu.php:127 classes/Plugin.php:194
|
135 |
+
#: templates/_top-area.php:54
|
136 |
+
msgid "Go Pro"
|
137 |
+
msgstr ""
|
138 |
+
|
139 |
+
#: classes/Menu.php:143 classes/Plugin.php:186
|
140 |
+
msgid "Getting Started"
|
141 |
+
msgstr ""
|
142 |
+
|
143 |
+
#: classes/MetaBoxes.php:54
|
144 |
+
msgid "Asset CleanUp: CSS & JavaScript Manager"
|
145 |
+
msgstr ""
|
146 |
+
|
147 |
+
#: classes/MetaBoxes.php:131
|
148 |
+
msgid "Asset CleanUp: Options"
|
149 |
+
msgstr ""
|
150 |
+
|
151 |
+
#: classes/OwnAssets.php:273
|
152 |
+
msgid ""
|
153 |
+
"Make sure to properly test your website if you unload the jQuery migration "
|
154 |
+
"library."
|
155 |
+
msgstr ""
|
156 |
+
|
157 |
+
#: classes/OwnAssets.php:274
|
158 |
+
msgid ""
|
159 |
+
"In some cases, due to old jQuery code triggered from plugins or the theme, "
|
160 |
+
"unloading this migration library could cause those scripts not to function "
|
161 |
+
"anymore and break some of the front-end functionality."
|
162 |
+
msgstr ""
|
163 |
+
|
164 |
+
#: classes/OwnAssets.php:275
|
165 |
+
msgid ""
|
166 |
+
"If you are not sure about whether activating this option is right or not, it "
|
167 |
+
"is better to leave it as it is (to be loaded by default) and consult with a "
|
168 |
+
"developer."
|
169 |
+
msgstr ""
|
170 |
+
|
171 |
+
#: classes/OwnAssets.php:276 classes/OwnAssets.php:281
|
172 |
+
msgid ""
|
173 |
+
"Confirm this action to enable the unloading or cancel to leave it loaded by "
|
174 |
+
"default."
|
175 |
+
msgstr ""
|
176 |
+
|
177 |
+
#: classes/OwnAssets.php:279
|
178 |
+
msgid ""
|
179 |
+
"This is worth disabling if you are NOT using the default WordPress comment "
|
180 |
+
"system (e.g. you are using the website for business purposes, to showcase "
|
181 |
+
"your products and you are not using it as a blog where people leave comments "
|
182 |
+
"to your posts)."
|
183 |
+
msgstr ""
|
184 |
+
|
185 |
+
#: classes/OwnAssets.php:280
|
186 |
+
msgid ""
|
187 |
+
"If you are not sure about whether activating this option is right or not, it "
|
188 |
+
"is better to leave it as it is (to be loaded by default)."
|
189 |
+
msgstr ""
|
190 |
+
|
191 |
+
#: classes/OwnAssets.php:284
|
192 |
+
msgid "Are you sure you want to reset the settings to their default values?"
|
193 |
+
msgstr ""
|
194 |
+
|
195 |
+
#: classes/OwnAssets.php:285 classes/OwnAssets.php:290
|
196 |
+
msgid "This is an irreversible action."
|
197 |
+
msgstr ""
|
198 |
+
|
199 |
+
#: classes/OwnAssets.php:286
|
200 |
+
msgid "Please confirm to continue or \"Cancel\" to abort it"
|
201 |
+
msgstr ""
|
202 |
+
|
203 |
+
#: classes/OwnAssets.php:289
|
204 |
+
msgid ""
|
205 |
+
"Are you sure you want to reset everything (settings, unloads, load "
|
206 |
+
"exceptions etc.) to the same point it was when you first activated the "
|
207 |
+
"plugin?"
|
208 |
+
msgstr ""
|
209 |
+
|
210 |
+
#: classes/OwnAssets.php:291
|
211 |
+
msgid "Please confirm to continue or \"Cancel\" to abort it."
|
212 |
+
msgstr ""
|
213 |
+
|
214 |
+
#: classes/Plugin.php:63
|
215 |
+
#, php-format
|
216 |
+
msgid "Thank you for using %s"
|
217 |
+
msgstr ""
|
218 |
+
|
219 |
+
#: classes/Plugin.php:67
|
220 |
+
#, php-format
|
221 |
+
msgid ""
|
222 |
+
"If you like it, please %s<strong>rate</strong> %s%s %s on WordPress.org to "
|
223 |
+
"help me spread the word to the community."
|
224 |
+
msgstr ""
|
225 |
+
|
226 |
+
#: classes/Settings.php:162
|
227 |
+
msgid ""
|
228 |
+
"It looks like you have both \"Manage in the Dashboard?\" and \"Manage in the "
|
229 |
+
"Front-end?\" inactive. The plugin still works fine and any assets you have "
|
230 |
+
"selected for unload are not loaded. However, if you want to manage the "
|
231 |
+
"assets in any page, you need to have at least one of the view options "
|
232 |
+
"enabled."
|
233 |
+
msgstr ""
|
234 |
+
|
235 |
+
#: classes/Settings.php:172
|
236 |
+
msgid "The settings were successfully updated."
|
237 |
+
msgstr ""
|
238 |
+
|
239 |
+
#: classes/Tools.php:515
|
240 |
+
msgid "All the settings were reset to their default values."
|
241 |
+
msgstr ""
|
242 |
+
|
243 |
+
#: classes/Tools.php:517
|
244 |
+
msgid ""
|
245 |
+
"Everything was reset (including settings, individual & bulk unloads, "
|
246 |
+
"load exceptions) to the same point it was when you first activated the "
|
247 |
+
"plugin."
|
248 |
+
msgstr ""
|
249 |
+
|
250 |
+
#: classes/Tools.php:520
|
251 |
+
msgid "Any license data was also removed, as you requested."
|
252 |
+
msgstr ""
|
253 |
+
|
254 |
+
#: classes/Update.php:44
|
255 |
+
msgid ""
|
256 |
+
"The homepage's settings were updated. Please make sure the homepage's cache "
|
257 |
+
"is cleared (if you're using a caching plugin or a server-side caching "
|
258 |
+
"solution) to immediately have the changes applied for every visitor."
|
259 |
+
msgstr ""
|
260 |
+
|
261 |
+
#: classes/Update.php:49
|
262 |
+
msgid ""
|
263 |
+
"This page's settings were updated. Please make sure the page's cache is "
|
264 |
+
"cleared (if you're using a caching plugin or a server-side caching solution) "
|
265 |
+
"to immediately have the changes applied for every visitor."
|
266 |
+
msgstr ""
|
267 |
+
|
268 |
+
#: classes/Update.php:116
|
269 |
+
#, php-format
|
270 |
+
msgid ""
|
271 |
+
"The nonce expired or is not correct, thus the request was not processed. "
|
272 |
+
"%sPlease retry%s."
|
273 |
+
msgstr ""
|
274 |
+
|
275 |
+
#: classes/Update.php:120
|
276 |
+
msgid "Nonce Expired"
|
277 |
+
msgstr ""
|
278 |
+
|
279 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:9
|
280 |
+
msgid "Higher search ranking"
|
281 |
+
msgstr ""
|
282 |
+
|
283 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:10
|
284 |
+
msgid ""
|
285 |
+
"Since 2010, there has been a signal in Google search ranking algorithms: "
|
286 |
+
"site speed, which reflects how quickly a website responds to web requests."
|
287 |
+
msgstr ""
|
288 |
+
|
289 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:11
|
290 |
+
msgid ""
|
291 |
+
"Speeding up websites is important — not just to site owners, but to all "
|
292 |
+
"Internet users."
|
293 |
+
msgstr ""
|
294 |
+
|
295 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:11
|
296 |
+
msgid ""
|
297 |
+
"Faster sites create happy users and Google has seen in their internal "
|
298 |
+
"studies that when a site responds slowly, visitors spend less time there."
|
299 |
+
msgstr ""
|
300 |
+
|
301 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:11
|
302 |
+
msgid "But faster sites don't just improve user experience"
|
303 |
+
msgstr ""
|
304 |
+
|
305 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:11
|
306 |
+
msgid ""
|
307 |
+
"recent data shows that improving site speed also reduces operating costs."
|
308 |
+
msgstr ""
|
309 |
+
|
310 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:11
|
311 |
+
msgid ""
|
312 |
+
"Like Google, their users place a lot of value in speed — that's why they've "
|
313 |
+
"decided to take site speed into account in their search rankings. They use a "
|
314 |
+
"variety of sources to determine the speed of a site relative to other sites."
|
315 |
+
msgstr ""
|
316 |
+
|
317 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:12
|
318 |
+
msgid "How does Google determine page speed?"
|
319 |
+
msgstr ""
|
320 |
+
|
321 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:15
|
322 |
+
msgid "Visitor Experience"
|
323 |
+
msgstr ""
|
324 |
+
|
325 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:16
|
326 |
+
msgid ""
|
327 |
+
"For a customer (it's likely happened to you too) that wants to purchase "
|
328 |
+
"something online, it's very frustrating to land on slow loading website."
|
329 |
+
msgstr ""
|
330 |
+
|
331 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:16
|
332 |
+
msgid ""
|
333 |
+
"A blazing fast website, will keep your visitors happy, engaged, which will "
|
334 |
+
"directly influence conversions."
|
335 |
+
msgstr ""
|
336 |
+
|
337 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:16
|
338 |
+
msgid ""
|
339 |
+
"If a visitor doesn't get what he wants in a time he/she thinks it's "
|
340 |
+
"reasonable, they will probably head to another website belonging to a "
|
341 |
+
"competitor."
|
342 |
+
msgstr ""
|
343 |
+
|
344 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:16
|
345 |
+
msgid ""
|
346 |
+
"As today's users expect a fast and streamlined web experience, you're losing "
|
347 |
+
"business if you neglect this often overlooked aspect."
|
348 |
+
msgstr ""
|
349 |
+
|
350 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:19
|
351 |
+
msgid "Better Developer Experience"
|
352 |
+
msgstr ""
|
353 |
+
|
354 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:20
|
355 |
+
msgid ""
|
356 |
+
"As developers, we often go through the HTML source code of the website, "
|
357 |
+
"access the server (e.g. Apache, NGINX) logs that has the HTTP requests, and "
|
358 |
+
"have to sometimes solve code conflict problems (e.g. between plugins) due to "
|
359 |
+
"poorly written code."
|
360 |
+
msgstr ""
|
361 |
+
|
362 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:20
|
363 |
+
msgid ""
|
364 |
+
"By preventing unnecessary files to load, having less HTTP requests, and "
|
365 |
+
"cleaner HTML code, you will be able to easily go through the code (which is "
|
366 |
+
"smaller)."
|
367 |
+
msgstr ""
|
368 |
+
|
369 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:20
|
370 |
+
msgid ""
|
371 |
+
"Your log files will take less space on the server, will be easier to backup "
|
372 |
+
"and analyse, and by having less JavaScript files loading, you will be reduce "
|
373 |
+
"the changes of getting less JS errors that could interfere with the "
|
374 |
+
"functionality of your website."
|
375 |
+
msgstr ""
|
376 |
+
|
377 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:23
|
378 |
+
msgid "Higher Revenue"
|
379 |
+
msgstr ""
|
380 |
+
|
381 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:24
|
382 |
+
msgid ""
|
383 |
+
"Just about any major retailer is taking site speed as a very important "
|
384 |
+
"factor for increasing conversions."
|
385 |
+
msgstr ""
|
386 |
+
|
387 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:24
|
388 |
+
#, php-format
|
389 |
+
msgid ""
|
390 |
+
"According to Strangeloop, 57% of online customers will leave a website after "
|
391 |
+
"waiting 3 seconds for the page to load. Moreover, 80% of those people will "
|
392 |
+
"not return to that page. Some of them will tell others about their negative "
|
393 |
+
"experience. This has a direct impact on the conversion rate, revenue and "
|
394 |
+
"brand image."
|
395 |
+
msgstr ""
|
396 |
+
|
397 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:26
|
398 |
+
#, php-format
|
399 |
+
msgid ""
|
400 |
+
"%s of users say they've felt STRESS OR ANGER while using a slow website."
|
401 |
+
msgstr ""
|
402 |
+
|
403 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:27
|
404 |
+
#, php-format
|
405 |
+
msgid ""
|
406 |
+
"%s of users say that slow online transaction make them ANXIOUS about the "
|
407 |
+
"success of the transaction."
|
408 |
+
msgstr ""
|
409 |
+
|
410 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:28
|
411 |
+
#, php-format
|
412 |
+
msgid "%s of people have THROWN THEIR PHONE while using a slow mobile site."
|
413 |
+
msgstr ""
|
414 |
+
|
415 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:37
|
416 |
+
#, php-format
|
417 |
+
msgid "View \"%s\" Infographic"
|
418 |
+
msgstr ""
|
419 |
+
|
420 |
+
#: templates/_admin-page-getting-started-areas/_how-it-works.php:9
|
421 |
+
msgid ""
|
422 |
+
"Often, our WordPress websites are loaded with elements that are not needed "
|
423 |
+
"to load on specific pages or even everywhere."
|
424 |
+
msgstr ""
|
425 |
+
|
426 |
+
#: templates/_admin-page-getting-started-areas/_how-it-works.php:9
|
427 |
+
msgid ""
|
428 |
+
"These assets (CSS & JavaScript files) as well as inline code are adding "
|
429 |
+
"up to the total size of the page, thus taking more time for the page to load."
|
430 |
+
msgstr ""
|
431 |
+
|
432 |
+
#: templates/_admin-page-getting-started-areas/_how-it-works.php:10
|
433 |
+
msgid ""
|
434 |
+
"This could end up in a slow website that leads to page abandonment, poor "
|
435 |
+
"ranking in Google search and sometimes conflict JavaScript errors where too "
|
436 |
+
"many scripts are loading and one of them (or more) have poorly written code "
|
437 |
+
"that is not autonomous and badly interacts with other code."
|
438 |
+
msgstr ""
|
439 |
+
|
440 |
+
#: templates/_admin-page-getting-started-areas/_how-it-works.php:12
|
441 |
+
msgid "What Asset CleanUp really does?"
|
442 |
+
msgstr ""
|
443 |
+
|
444 |
+
#: templates/_admin-page-getting-started-areas/_how-it-works.php:13
|
445 |
+
#: templates/_admin-page-getting-started-areas/_how-it-works.php:33
|
446 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:16
|
447 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:176
|
448 |
+
msgid "Read more"
|
449 |
+
msgstr ""
|
450 |
+
|
451 |
+
#: templates/_admin-page-getting-started-areas/_how-it-works.php:15
|
452 |
+
msgid "Page caching solutions include"
|
453 |
+
msgstr ""
|
454 |
+
|
455 |
+
#: templates/_admin-page-getting-started-areas/_how-it-works.php:17
|
456 |
+
#, php-format
|
457 |
+
msgid ""
|
458 |
+
"The page caching improves the %sTTFB%s (time to first byte) which measures "
|
459 |
+
"the duration from the user or client making an HTTP request to the first "
|
460 |
+
"byte of the page being received by the client's browser."
|
461 |
+
msgstr ""
|
462 |
+
|
463 |
+
#: templates/_admin-page-getting-started-areas/_how-it-works.php:20
|
464 |
+
#, php-format
|
465 |
+
msgid ""
|
466 |
+
"A hosting service that has its in-built WordPress caching like %sWPEngine%s "
|
467 |
+
"or Kinsta, a web application accelerator like Varnish that can be setup the "
|
468 |
+
"server etc."
|
469 |
+
msgstr ""
|
470 |
+
|
471 |
+
#: templates/_admin-page-getting-started-areas/_how-it-works.php:27
|
472 |
+
msgid "Disclaimer"
|
473 |
+
msgstr ""
|
474 |
+
|
475 |
+
#: templates/_admin-page-getting-started-areas/_how-it-works.php:27
|
476 |
+
msgid ""
|
477 |
+
"The recommendations above are based from my own experience as a developer "
|
478 |
+
"& user and I'm happy to recommend them to whoever wants superior "
|
479 |
+
"WordPress performance."
|
480 |
+
msgstr ""
|
481 |
+
|
482 |
+
#: templates/_admin-page-getting-started-areas/_how-it-works.php:27
|
483 |
+
msgid ""
|
484 |
+
"The links are affiliate related and I might get a commission if you decide "
|
485 |
+
"to make a purchase."
|
486 |
+
msgstr ""
|
487 |
+
|
488 |
+
#: templates/_admin-page-getting-started-areas/_how-it-works.php:32
|
489 |
+
msgid "Not sure how to configure it?"
|
490 |
+
msgstr ""
|
491 |
+
|
492 |
+
#: templates/_admin-page-getting-started-areas/_how-it-works.php:33
|
493 |
+
msgid "No problem!"
|
494 |
+
msgstr ""
|
495 |
+
|
496 |
+
#: templates/_admin-page-getting-started-areas/_how-it-works.php:33
|
497 |
+
msgid ""
|
498 |
+
"You can enable \"Test Mode\" and any changes you make, will only be visible "
|
499 |
+
"for you (the logged-in administrator), while the regular visitors will see "
|
500 |
+
"the pages as if the plugin is not active."
|
501 |
+
msgstr ""
|
502 |
+
|
503 |
+
#: templates/_admin-page-getting-started-areas/_how-it-works.php:33
|
504 |
+
msgid ""
|
505 |
+
"Once all is good, you can disable \"Test Mode\" (thus applying the settings "
|
506 |
+
"to everyone), clear the page caching (if using a plugin or a server-side "
|
507 |
+
"solution such as Varnish) and check out the page speed score."
|
508 |
+
msgstr ""
|
509 |
+
|
510 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:24
|
511 |
+
msgid "Yearly Price"
|
512 |
+
msgstr ""
|
513 |
+
|
514 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:29
|
515 |
+
msgid ""
|
516 |
+
"Manage CSS & JavaScript files on Homepage, Posts, Pages & Custom "
|
517 |
+
"Post Types (e.g. WooCommerce product pages, Easy Digital Downloads download "
|
518 |
+
"items)"
|
519 |
+
msgstr ""
|
520 |
+
|
521 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:34
|
522 |
+
msgid ""
|
523 |
+
"Bulk Unloads: Everywhere (Site-Wide), On Specific Pages & Post Types, "
|
524 |
+
"Add load exceptions"
|
525 |
+
msgstr ""
|
526 |
+
|
527 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:39
|
528 |
+
msgid ""
|
529 |
+
"Manage the CSS & JavaScript files within the Dashboard (default) and "
|
530 |
+
"Front-end view (bottom of the page) if chosen"
|
531 |
+
msgstr ""
|
532 |
+
|
533 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:44
|
534 |
+
msgid ""
|
535 |
+
"Enable \"Test Mode\" to only apply the plugin's changes for the logged-in "
|
536 |
+
"administrator for debugging purposes"
|
537 |
+
msgstr ""
|
538 |
+
|
539 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:49
|
540 |
+
msgid ""
|
541 |
+
"Minify remaining loaded CSS & JavaScript files (with option to add "
|
542 |
+
"exceptions)"
|
543 |
+
msgstr ""
|
544 |
+
|
545 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:54
|
546 |
+
msgid ""
|
547 |
+
"Combine remaining loaded CSS & JavaScript files into fewer files from "
|
548 |
+
"each <code><HEAD></code> and <code><BODY></code> location (with "
|
549 |
+
"option to add exceptions)"
|
550 |
+
msgstr ""
|
551 |
+
|
552 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:59
|
553 |
+
#, php-format
|
554 |
+
msgid ""
|
555 |
+
"Remove unused elements from the <code><HEAD></code> and <code><"
|
556 |
+
"BODY></code> including the following link tags: %s."
|
557 |
+
msgstr ""
|
558 |
+
|
559 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:59
|
560 |
+
msgid ""
|
561 |
+
"Valid HTML comments are also stripped (exceptions can be added) while "
|
562 |
+
"conditional Internet Explorer comments are preserved."
|
563 |
+
msgstr ""
|
564 |
+
|
565 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:65
|
566 |
+
msgid ""
|
567 |
+
"Site-Wide Unload For Common Elements that are often unused such as: "
|
568 |
+
"WordPress Emojis, jQuery Migrate, Comment Reply (if not using WP as a blog)"
|
569 |
+
msgstr ""
|
570 |
+
|
571 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:71
|
572 |
+
#: templates/_admin-page-settings-plugin-areas/_disable-xml-rpc-protocol.php:13
|
573 |
+
msgid "Disable XML-RPC Protocol Support partially or completely"
|
574 |
+
msgstr ""
|
575 |
+
|
576 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:77
|
577 |
+
msgid ""
|
578 |
+
"Manage CSS & JavaScript files on Categories, Tags, Custom Taxonomy "
|
579 |
+
"pages, Date & Author Archive Pages, Search Results & 404 Not Found "
|
580 |
+
"pages"
|
581 |
+
msgstr ""
|
582 |
+
|
583 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:82
|
584 |
+
msgid ""
|
585 |
+
"Move CSS & JavaScript files from <code><HEAD></code> to <code><"
|
586 |
+
"BODY></code> (to reduce render-blocking) or vice-versa (for very early "
|
587 |
+
"triggering)"
|
588 |
+
msgstr ""
|
589 |
+
|
590 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:87
|
591 |
+
msgid "Apply \"async\" and \"defer\" attributes to loaded JavaScript files"
|
592 |
+
msgstr ""
|
593 |
+
|
594 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:92
|
595 |
+
msgid ""
|
596 |
+
"Show the file sizes for each loaded CSS & JavaScript file including "
|
597 |
+
"external ones"
|
598 |
+
msgstr ""
|
599 |
+
|
600 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:97
|
601 |
+
msgid "Priority Customer Support"
|
602 |
+
msgstr ""
|
603 |
+
|
604 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:104
|
605 |
+
msgid "Upgrade to Pro to unlock all benefits"
|
606 |
+
msgstr ""
|
607 |
+
|
608 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:107
|
609 |
+
msgid "I have some questions"
|
610 |
+
msgstr ""
|
611 |
+
|
612 |
+
#: templates/_admin-page-getting-started-areas/_start-optimization.php:11
|
613 |
+
msgid "Pages Info"
|
614 |
+
msgstr ""
|
615 |
+
|
616 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:10
|
617 |
+
#: templates/admin-page-child-pages-info.php:10
|
618 |
+
#: templates/admin-page-child-pages-info.php:11
|
619 |
+
msgid "Available for Pro users"
|
620 |
+
msgstr ""
|
621 |
+
|
622 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:10
|
623 |
+
#: templates/admin-page-child-pages-info.php:10
|
624 |
+
#: templates/admin-page-child-pages-info.php:11
|
625 |
+
msgid "Click to upgrade!"
|
626 |
+
msgstr ""
|
627 |
+
|
628 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:16
|
629 |
+
msgid "Everywhere"
|
630 |
+
msgstr ""
|
631 |
+
|
632 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:37
|
633 |
+
msgid ""
|
634 |
+
"Select the page or post type (including custom ones) for which you want to "
|
635 |
+
"see the unloaded scripts & styles"
|
636 |
+
msgstr ""
|
637 |
+
|
638 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:69
|
639 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:154
|
640 |
+
msgid "Styles"
|
641 |
+
msgstr ""
|
642 |
+
|
643 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:76
|
644 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:109
|
645 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:161
|
646 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:194
|
647 |
+
msgid "Actions"
|
648 |
+
msgstr ""
|
649 |
+
|
650 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:97
|
651 |
+
msgid "There are no site-wide unloaded styles."
|
652 |
+
msgstr ""
|
653 |
+
|
654 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:102
|
655 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:187
|
656 |
+
msgid "Scripts"
|
657 |
+
msgstr ""
|
658 |
+
|
659 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:120
|
660 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:172
|
661 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:205
|
662 |
+
msgid "Remove rule"
|
663 |
+
msgstr ""
|
664 |
+
|
665 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:130
|
666 |
+
msgid "There are no site-wide unloaded scripts."
|
667 |
+
msgstr ""
|
668 |
+
|
669 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:251
|
670 |
+
#: templates/admin-page-child-settings-homepage.php:79
|
671 |
+
msgid "Update"
|
672 |
+
msgstr ""
|
673 |
+
|
674 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:255
|
675 |
+
msgid ""
|
676 |
+
"Note: As there are no unloaded assets (scripts & styles) to be managed, "
|
677 |
+
"the button is disabled."
|
678 |
+
msgstr ""
|
679 |
+
|
680 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:13
|
681 |
+
msgid "Combine loaded CSS & JavaScript files into fewer files"
|
682 |
+
msgstr ""
|
683 |
+
|
684 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:16
|
685 |
+
msgid "NOTE"
|
686 |
+
msgstr ""
|
687 |
+
|
688 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:16
|
689 |
+
msgid "Concatenating assets is no longer a recommended practice in HTTP/2"
|
690 |
+
msgstr ""
|
691 |
+
|
692 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:16
|
693 |
+
msgid "Verify if your server has HTTP/2 support"
|
694 |
+
msgstr ""
|
695 |
+
|
696 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:22
|
697 |
+
msgid "Combine loaded CSS (Stylesheets) into one file"
|
698 |
+
msgstr ""
|
699 |
+
|
700 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:23
|
701 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:82
|
702 |
+
msgid "Helps reducing the number of HTTP Requests even further"
|
703 |
+
msgstr ""
|
704 |
+
|
705 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:45
|
706 |
+
msgid ""
|
707 |
+
"Apply combination only for logged-in administrator (for debugging purposes)"
|
708 |
+
msgstr ""
|
709 |
+
|
710 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:50
|
711 |
+
msgid "Do not combine the CSS files matching the patterns below"
|
712 |
+
msgstr ""
|
713 |
+
|
714 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:50
|
715 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:104
|
716 |
+
msgid "one per line"
|
717 |
+
msgstr ""
|
718 |
+
|
719 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:81
|
720 |
+
msgid "Combine loaded JS (JavaScript) into fewer files"
|
721 |
+
msgstr ""
|
722 |
+
|
723 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:104
|
724 |
+
msgid "Apply combination only for logged-in administrator"
|
725 |
+
msgstr ""
|
726 |
+
|
727 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:104
|
728 |
+
msgid "for debugging purposes"
|
729 |
+
msgstr ""
|
730 |
+
|
731 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:122
|
732 |
+
msgid ""
|
733 |
+
"Do not combine the JavaScript files matching the patterns below (one per "
|
734 |
+
"line, see pattern examples below)"
|
735 |
+
msgstr ""
|
736 |
+
|
737 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:130
|
738 |
+
msgid ""
|
739 |
+
"Pattern Examples (you don't have to add the full URL, as it's recommended to "
|
740 |
+
"use relative paths)"
|
741 |
+
msgstr ""
|
742 |
+
|
743 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:176
|
744 |
+
msgid ""
|
745 |
+
"This results in as less JS combination groups as possible (this combines all "
|
746 |
+
"JS files into 2/3 files, keeping their HEAD and BODY locations and most of "
|
747 |
+
"the inline script tags before them for maximum compatibility)"
|
748 |
+
msgstr ""
|
749 |
+
|
750 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:212
|
751 |
+
msgid "How are the JavaScript files combined?"
|
752 |
+
msgstr ""
|
753 |
+
|
754 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:213
|
755 |
+
msgid ""
|
756 |
+
"The plugin scans the remaining JavaScript files (left after cleaning up the "
|
757 |
+
"unnecessary ones) from the <code><head></code> and <code><body></"
|
758 |
+
"code> locations and combines them into one file per each location."
|
759 |
+
msgstr ""
|
760 |
+
|
761 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:214
|
762 |
+
msgid ""
|
763 |
+
"Any inline JavaScript code associated with the combined scripts, will not be "
|
764 |
+
"altered or moved in any way."
|
765 |
+
msgstr ""
|
766 |
+
|
767 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:215
|
768 |
+
#: templates/_admin-page-settings-plugin-areas/_test-mode.php:37
|
769 |
+
msgid "Example"
|
770 |
+
msgstr ""
|
771 |
+
|
772 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:215
|
773 |
+
msgid ""
|
774 |
+
"If you have 5 JS files (including jQuery library) loading in the <code><"
|
775 |
+
"head></code> location and 7 JS files loading in <code><body></code> "
|
776 |
+
"location, you will end up with a total of 3 JS files: jQuery library & "
|
777 |
+
"jQuery Migrate (they are not combined together with other JS files for "
|
778 |
+
"maximum performance) in 1 file and the 2 JS files for HEAD and BODY, "
|
779 |
+
"respectively."
|
780 |
+
msgstr ""
|
781 |
+
|
782 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:226
|
783 |
+
msgid "Combining CSS & JavaScript files in HTTP/2 protocol"
|
784 |
+
msgstr ""
|
785 |
+
|
786 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:227
|
787 |
+
msgid ""
|
788 |
+
"While it's still a good idea to combine assets into fewer (or only one) "
|
789 |
+
"files in HTTP/1 (since you are restricted to the number of open "
|
790 |
+
"connections), doing the same in HTTP/2 is no longer a performance "
|
791 |
+
"optimization due to the ability to transfer multiple small files "
|
792 |
+
"simultaneously without much overhead."
|
793 |
+
msgstr ""
|
794 |
+
|
795 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:231
|
796 |
+
msgid "In HTTP/2 some of the issues that were addressed are"
|
797 |
+
msgstr ""
|
798 |
+
|
799 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:234
|
800 |
+
msgid "allows concurrent requests across a single TCP connection"
|
801 |
+
msgstr ""
|
802 |
+
|
803 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:235
|
804 |
+
msgid ""
|
805 |
+
"whereby a server can push vital resources to the browser before being asked "
|
806 |
+
"for them."
|
807 |
+
msgstr ""
|
808 |
+
|
809 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:240
|
810 |
+
msgid ""
|
811 |
+
"Since HTTP requests are loaded concurrently in HTTP/2, it's better to only "
|
812 |
+
"serve the files that your visitors need and don't worry much about "
|
813 |
+
"concatenation."
|
814 |
+
msgstr ""
|
815 |
+
|
816 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:241
|
817 |
+
msgid ""
|
818 |
+
"Note that page speed testing tools such as PageSpeed Insights, YSlow, "
|
819 |
+
"Pingdom Tools or GTMetrix still recommend combining CSS/JS files because "
|
820 |
+
"they haven't updated their recommendations based on HTTP/1 or HTTP/2 "
|
821 |
+
"protocols so you should take into account the actual load time, not the "
|
822 |
+
"performance grade."
|
823 |
+
msgstr ""
|
824 |
+
|
825 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:245
|
826 |
+
msgid ""
|
827 |
+
"If you do decide to move on with the concatenation (which at least would "
|
828 |
+
"improve the GTMetrix performance grade from a cosmetic point of view), "
|
829 |
+
"please remember to <strong>test thoroughly</strong> the pages that have the "
|
830 |
+
"assets combined (pay attention to any JavaScript errors in the browser's "
|
831 |
+
"console which is accessed via right click & \"Inspect\") as, in rare "
|
832 |
+
"cases, due to the order in which the scripts were loaded and the way their "
|
833 |
+
"code was written, it could break some functionality."
|
834 |
+
msgstr ""
|
835 |
+
|
836 |
+
#: templates/_admin-page-settings-plugin-areas/_common-files-unload.php:13
|
837 |
+
msgid "Site-Wide Unload For Common CSS & JS Files"
|
838 |
+
msgstr ""
|
839 |
+
|
840 |
+
#: templates/_admin-page-settings-plugin-areas/_common-files-unload.php:14
|
841 |
+
msgid ""
|
842 |
+
"This area allows you to quickly add the rule \"Unload Site-wide\" for the "
|
843 |
+
"scripts below, which are often used in WordPress environments."
|
844 |
+
msgstr ""
|
845 |
+
|
846 |
+
#: templates/_admin-page-settings-plugin-areas/_common-files-unload.php:18
|
847 |
+
#: templates/_admin-page-settings-plugin-areas/_common-files-unload.php:36
|
848 |
+
#: templates/_admin-page-settings-plugin-areas/_common-files-unload.php:52
|
849 |
+
#, php-format
|
850 |
+
msgid "Disable %s Site-Wide"
|
851 |
+
msgstr ""
|
852 |
+
|
853 |
+
#: templates/_admin-page-settings-plugin-areas/_common-files-unload.php:19
|
854 |
+
#, php-format
|
855 |
+
msgid ""
|
856 |
+
"It will fallback to the default browser's Emojis and not fetch the ones from "
|
857 |
+
"%s"
|
858 |
+
msgstr ""
|
859 |
+
|
860 |
+
#: templates/_admin-page-settings-plugin-areas/_common-files-unload.php:29
|
861 |
+
#: templates/_admin-page-settings-plugin-areas/_common-files-unload.php:45
|
862 |
+
#: templates/_admin-page-settings-plugin-areas/_common-files-unload.php:61
|
863 |
+
#, php-format
|
864 |
+
msgid "This will unload %s"
|
865 |
+
msgstr ""
|
866 |
+
|
867 |
+
#: templates/_admin-page-settings-plugin-areas/_common-files-unload.php:30
|
868 |
+
msgid ""
|
869 |
+
"As of WordPress 4.2, a new feature was introduced that allows you to use the "
|
870 |
+
"new Emojis."
|
871 |
+
msgstr ""
|
872 |
+
|
873 |
+
#: templates/_admin-page-settings-plugin-areas/_common-files-unload.php:30
|
874 |
+
#, php-format
|
875 |
+
msgid ""
|
876 |
+
"While on some WordPress setups is useful, in many situations (especially "
|
877 |
+
"when you are not using WordPress as a blog), you just don’t need them and "
|
878 |
+
"the file %s is loaded along with extra inline JavaScript code which add up "
|
879 |
+
"to the number of loaded HTTP requests."
|
880 |
+
msgstr ""
|
881 |
+
|
882 |
+
#: templates/_admin-page-settings-plugin-areas/_common-files-unload.php:46
|
883 |
+
msgid ""
|
884 |
+
"This is a JavaScript library that allows older jQuery code (up to version "
|
885 |
+
"jQuery 1.9) to run on the latest version of jQuery avoiding incompatibility "
|
886 |
+
"problems. Unless your website is using an old theme or has a jQuery plugin "
|
887 |
+
"that was written a long time ago, this file is likely not needed to load. "
|
888 |
+
"Consider disabling it to improve page loading time. Make sure to properly "
|
889 |
+
"test the website."
|
890 |
+
msgstr ""
|
891 |
+
|
892 |
+
#: templates/_admin-page-settings-plugin-areas/_common-files-unload.php:52
|
893 |
+
#: templates/meta-box-loaded-assets/_asset-style-single-row.php:24
|
894 |
+
msgid ""
|
895 |
+
"Not sure if needed or not? In this case, it's better to leave it loaded to "
|
896 |
+
"avoid breaking the website."
|
897 |
+
msgstr ""
|
898 |
+
|
899 |
+
#: templates/_admin-page-settings-plugin-areas/_common-files-unload.php:62
|
900 |
+
msgid ""
|
901 |
+
"This is safe to unload if you're not using WordPress as a blog, do not want "
|
902 |
+
"visitors to leave comments or you've replaced the default WordPress comments "
|
903 |
+
"with a comment platform such as Disqus or Facebook."
|
904 |
+
msgstr ""
|
905 |
+
|
906 |
+
#: templates/_admin-page-settings-plugin-areas/_html-source-cleanup.php:13
|
907 |
+
msgid "Remove unused elements from the <head> section"
|
908 |
+
msgstr ""
|
909 |
+
|
910 |
+
#: templates/_admin-page-settings-plugin-areas/_html-source-cleanup.php:176
|
911 |
+
msgid "Remove extra elements from the generated page source"
|
912 |
+
msgstr ""
|
913 |
+
|
914 |
+
#: templates/_admin-page-settings-plugin-areas/_minify-loaded-files.php:13
|
915 |
+
msgid "Minify loaded CSS & JavaScript files to reduce total page size"
|
916 |
+
msgstr ""
|
917 |
+
|
918 |
+
#: templates/_admin-page-settings-plugin-areas/_minify-loaded-files.php:17
|
919 |
+
msgid "CSS Files Minification"
|
920 |
+
msgstr ""
|
921 |
+
|
922 |
+
#: templates/_admin-page-settings-plugin-areas/_minify-loaded-files.php:18
|
923 |
+
#: templates/_admin-page-settings-plugin-areas/_minify-loaded-files.php:50
|
924 |
+
msgid "Helps decrease the total page size even further"
|
925 |
+
msgstr ""
|
926 |
+
|
927 |
+
#: templates/_admin-page-settings-plugin-areas/_minify-loaded-files.php:28
|
928 |
+
msgid ""
|
929 |
+
"This will take the remaining enqueued CSS files, minify them and load them "
|
930 |
+
"from the cache."
|
931 |
+
msgstr ""
|
932 |
+
|
933 |
+
#: templates/_admin-page-settings-plugin-areas/_minify-loaded-files.php:35
|
934 |
+
msgid "Do not minify the CSS files matching the patterns below (one per line)"
|
935 |
+
msgstr ""
|
936 |
+
|
937 |
+
#: templates/_admin-page-settings-plugin-areas/_minify-loaded-files.php:49
|
938 |
+
msgid "JavaScript Files Minification"
|
939 |
+
msgstr ""
|
940 |
+
|
941 |
+
#: templates/_admin-page-settings-plugin-areas/_minify-loaded-files.php:59
|
942 |
+
msgid ""
|
943 |
+
"This will take the remaining enqueued JavaScript files, minify them and load "
|
944 |
+
"them from the cache."
|
945 |
+
msgstr ""
|
946 |
+
|
947 |
+
#: templates/_admin-page-settings-plugin-areas/_minify-loaded-files.php:66
|
948 |
+
msgid ""
|
949 |
+
"Do not minify the JavaScript files matching the patterns below (one per line)"
|
950 |
+
msgstr ""
|
951 |
+
|
952 |
+
#: templates/_admin-page-settings-plugin-areas/_minify-loaded-files.php:83
|
953 |
+
msgid ""
|
954 |
+
"For maximum performance and to reduce server resources, the following CSS/JS "
|
955 |
+
"files will not be minified, but kept as they are, since they are already "
|
956 |
+
"optimised and minified by the WordPress core contributors & developers"
|
957 |
+
msgstr ""
|
958 |
+
|
959 |
+
#: templates/_admin-page-settings-plugin-areas/_minify-loaded-files.php:87
|
960 |
+
#, php-format
|
961 |
+
msgid "jQuery library from %s"
|
962 |
+
msgstr ""
|
963 |
+
|
964 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:13
|
965 |
+
msgid "Click here to unlock it"
|
966 |
+
msgstr ""
|
967 |
+
|
968 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:17
|
969 |
+
msgid "Plugin Usage Preferences"
|
970 |
+
msgstr ""
|
971 |
+
|
972 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:18
|
973 |
+
msgid ""
|
974 |
+
"Choose how the assets are retrieved and whether you would like to see them "
|
975 |
+
"within the Dashboard / Front-end view"
|
976 |
+
msgstr ""
|
977 |
+
|
978 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:18
|
979 |
+
msgid ""
|
980 |
+
"Decide how the management list of CSS & JavaScript files will show up "
|
981 |
+
"and get sorted, depending on your preferences."
|
982 |
+
msgstr ""
|
983 |
+
|
984 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:22
|
985 |
+
msgid "Manage in the Dashboard"
|
986 |
+
msgstr ""
|
987 |
+
|
988 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:32
|
989 |
+
msgid ""
|
990 |
+
"This will show the list of assets in a meta box on edit the post (any "
|
991 |
+
"type) / page within the Dashboard"
|
992 |
+
msgstr ""
|
993 |
+
|
994 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:33
|
995 |
+
msgid ""
|
996 |
+
"The assets would be retrieved via AJAX call(s) that will fetch the post/page "
|
997 |
+
"URL and extract all the styles & scripts that are enqueued."
|
998 |
+
msgstr ""
|
999 |
+
|
1000 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:34
|
1001 |
+
msgid ""
|
1002 |
+
"Note that sometimes the assets list is not loading within the Dashboard. "
|
1003 |
+
"That could be because \"mod_security\" Apache module is enabled or some "
|
1004 |
+
"security plugins are blocking the AJAX request. If this option doesn't work, "
|
1005 |
+
"consider managing the list in the front-end view."
|
1006 |
+
msgstr ""
|
1007 |
+
|
1008 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:41
|
1009 |
+
msgid "Select a retrieval way"
|
1010 |
+
msgstr ""
|
1011 |
+
|
1012 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:49
|
1013 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:69
|
1014 |
+
msgid "Direct"
|
1015 |
+
msgstr ""
|
1016 |
+
|
1017 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:69
|
1018 |
+
msgid ""
|
1019 |
+
"This one makes an AJAX call directly on the URL for which the assets are "
|
1020 |
+
"retrieved, then an extra WordPress AJAX call to process the list. Sometimes, "
|
1021 |
+
"due to some external factors (e.g. mod_security module from Apache, security "
|
1022 |
+
"plugin or the fact that non-http is forced for the front-end view and the "
|
1023 |
+
"AJAX request will be blocked), this might not work and another choice method "
|
1024 |
+
"might work better. This used to be the only option available, prior to "
|
1025 |
+
"version 1.2.4.4 and is set as default."
|
1026 |
+
msgstr ""
|
1027 |
+
|
1028 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:74
|
1029 |
+
msgid ""
|
1030 |
+
"It makes a WordPress AJAX call and gets the HTML source code through "
|
1031 |
+
"wp_remote_post(). This one is less likely to be blocked as it is made on the "
|
1032 |
+
"same protocol (no HTTP request from HTTPS). However, in some cases (e.g. a "
|
1033 |
+
"different load balancer configuration), this might not work when the call to "
|
1034 |
+
"fetch a domain's URL (your website) is actually made from the same domain."
|
1035 |
+
msgstr ""
|
1036 |
+
|
1037 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:80
|
1038 |
+
msgid ""
|
1039 |
+
"Whether you have this option enabled or not, the post/page plugin's meta "
|
1040 |
+
"boxes will always be generated. If you wish to hide them completely for any "
|
1041 |
+
"reason (e.g. you rarely manage the assets and you want to reduce cluttering "
|
1042 |
+
"in the edit post/page area, especially if you do lots of edits), you can do "
|
1043 |
+
"so using the options below (<em>don't forget to uncheck them whenever you "
|
1044 |
+
"wish to manage the CSS/JS assets again</em>)"
|
1045 |
+
msgstr ""
|
1046 |
+
|
1047 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:90
|
1048 |
+
msgid "Manage in the Front-end"
|
1049 |
+
msgstr ""
|
1050 |
+
|
1051 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:115
|
1052 |
+
msgid "Assets List Layout"
|
1053 |
+
msgstr ""
|
1054 |
+
|
1055 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:121
|
1056 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:122
|
1057 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:124
|
1058 |
+
msgid "All Styles & Scripts"
|
1059 |
+
msgstr ""
|
1060 |
+
|
1061 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:121
|
1062 |
+
msgid "One list grouped by location (themes, plugins, core & external)"
|
1063 |
+
msgstr ""
|
1064 |
+
|
1065 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:122
|
1066 |
+
msgid "One list grouped by tag position: <head> & <body>"
|
1067 |
+
msgstr ""
|
1068 |
+
|
1069 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:123
|
1070 |
+
msgid "All Styles"
|
1071 |
+
msgstr ""
|
1072 |
+
|
1073 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:123
|
1074 |
+
msgid "All Scripts"
|
1075 |
+
msgstr ""
|
1076 |
+
|
1077 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:123
|
1078 |
+
msgid "Two lists"
|
1079 |
+
msgstr ""
|
1080 |
+
|
1081 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:124
|
1082 |
+
msgid "One list"
|
1083 |
+
msgstr ""
|
1084 |
+
|
1085 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:124
|
1086 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:146
|
1087 |
+
msgid "Pro Version"
|
1088 |
+
msgstr ""
|
1089 |
+
|
1090 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:129
|
1091 |
+
msgid ""
|
1092 |
+
"When list is grouped by location, keep the assets from each of the plugins "
|
1093 |
+
"in the following state"
|
1094 |
+
msgstr ""
|
1095 |
+
|
1096 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:137
|
1097 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:170
|
1098 |
+
msgid "Expanded"
|
1099 |
+
msgstr ""
|
1100 |
+
|
1101 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:137
|
1102 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:170
|
1103 |
+
msgid "Default"
|
1104 |
+
msgstr ""
|
1105 |
+
|
1106 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:146
|
1107 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:179
|
1108 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:209
|
1109 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:217
|
1110 |
+
msgid "Contracted"
|
1111 |
+
msgstr ""
|
1112 |
+
|
1113 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:155
|
1114 |
+
msgid ""
|
1115 |
+
"These are various ways in which the list of assets that you will manage will "
|
1116 |
+
"show up. Depending on your preference, you might want to see the list of "
|
1117 |
+
"styles & scripts first, or all together sorted in alphabetical order etc."
|
1118 |
+
msgstr ""
|
1119 |
+
|
1120 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:155
|
1121 |
+
msgid "Options that are disabled are available in the Pro version."
|
1122 |
+
msgstr ""
|
1123 |
+
|
1124 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:160
|
1125 |
+
msgid "On Assets List Layout Load, keep \"Styles & Scripts\" area:"
|
1126 |
+
msgstr ""
|
1127 |
+
|
1128 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:185
|
1129 |
+
msgid ""
|
1130 |
+
"Sometimes, when you have plenty of elements in the edit page, you might want "
|
1131 |
+
"to contract the list of assets when you're viewing the page as it will save "
|
1132 |
+
"space. This can be a good practice, especially when you finished optimising "
|
1133 |
+
"the pages and you don't want to keep seeing the long list of files every "
|
1134 |
+
"time you edit a page."
|
1135 |
+
msgstr ""
|
1136 |
+
|
1137 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:190
|
1138 |
+
msgid ""
|
1139 |
+
"On Assets List Layout Load, keep \"Inline code associated with this handle\" "
|
1140 |
+
"area"
|
1141 |
+
msgstr ""
|
1142 |
+
|
1143 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:200
|
1144 |
+
msgid "Expanded (Default)"
|
1145 |
+
msgstr ""
|
1146 |
+
|
1147 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:216
|
1148 |
+
#, php-format
|
1149 |
+
msgid ""
|
1150 |
+
"Some assets (CSS & JavaScript) have inline code associate with them and "
|
1151 |
+
"often, they are quite large, making the asset row bigger and requiring you "
|
1152 |
+
"to scroll more until you reach a specific area. By setting it to \"%s\", it "
|
1153 |
+
"will hide all the inline code by default and you can view it by clicking on "
|
1154 |
+
"the toggle link inside the asset row."
|
1155 |
+
msgstr ""
|
1156 |
+
|
1157 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:223
|
1158 |
+
msgid "Input Fields Style"
|
1159 |
+
msgstr ""
|
1160 |
+
|
1161 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:224
|
1162 |
+
msgid "How would you like to view the checkboxes / selectors?"
|
1163 |
+
msgstr ""
|
1164 |
+
|
1165 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:225
|
1166 |
+
#: templates/_admin-page-settings-plugin-areas/_test-mode.php:20
|
1167 |
+
msgid "Read More"
|
1168 |
+
msgstr ""
|
1169 |
+
|
1170 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:235
|
1171 |
+
msgid "Enhanced iPhone Style (Default)"
|
1172 |
+
msgstr ""
|
1173 |
+
|
1174 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:244
|
1175 |
+
msgid "Standard"
|
1176 |
+
msgstr ""
|
1177 |
+
|
1178 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:250
|
1179 |
+
msgid ""
|
1180 |
+
"In case you prefer standard HTML checkboxes instead of the enhanced CSS3 "
|
1181 |
+
"iPhone style ones (on & off) or you need a simple HTML layout in case "
|
1182 |
+
"you're using a screen reader software (e.g. for people with disabilities) "
|
1183 |
+
"which requires standard/clean HTML code, then you can choose \"Standard\" as "
|
1184 |
+
"an option."
|
1185 |
+
msgstr ""
|
1186 |
+
|
1187 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:255
|
1188 |
+
msgid "Hide WordPress Core Files From The Assets List?"
|
1189 |
+
msgstr ""
|
1190 |
+
|
1191 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:265
|
1192 |
+
#, php-format
|
1193 |
+
msgid "WordPress Core Files have handles such as %s"
|
1194 |
+
msgstr ""
|
1195 |
+
|
1196 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:266
|
1197 |
+
msgid ""
|
1198 |
+
"They should only be unloaded by experienced developers when they are "
|
1199 |
+
"convinced that are not needed in particular situations. It's better to leave "
|
1200 |
+
"them loaded if you have any doubts whether you need them or not. By hiding "
|
1201 |
+
"them in the assets management list, you will see a smaller assets list "
|
1202 |
+
"(easier to manage) and you will avoid updating by mistake any option "
|
1203 |
+
"(unload, async, defer) related to any core file."
|
1204 |
+
msgstr ""
|
1205 |
+
|
1206 |
+
#: templates/_admin-page-settings-plugin-areas/_strip-the-fat.php:13
|
1207 |
+
msgid ""
|
1208 |
+
"Prevent useless and often large CSS & JS files increasing your total "
|
1209 |
+
"page size"
|
1210 |
+
msgstr ""
|
1211 |
+
|
1212 |
+
#: templates/_admin-page-settings-plugin-areas/_strip-the-fat.php:24
|
1213 |
+
msgid ""
|
1214 |
+
"Is a decrease in the total page size or a higher page speed score guaranteed?"
|
1215 |
+
msgstr ""
|
1216 |
+
|
1217 |
+
#: templates/_admin-page-settings-plugin-areas/_strip-the-fat.php:28
|
1218 |
+
msgid "Can this plugin make the pages load slower?"
|
1219 |
+
msgstr ""
|
1220 |
+
|
1221 |
+
#: templates/_admin-page-settings-plugin-areas/_strip-the-fat.php:39
|
1222 |
+
#, php-format
|
1223 |
+
msgid ""
|
1224 |
+
"I understand how the plugin works and I will make sure to make proper tests "
|
1225 |
+
"(via \"%s\" if necessary) after the changes I'm making."
|
1226 |
+
msgstr ""
|
1227 |
+
|
1228 |
+
#: templates/_admin-page-settings-plugin-areas/_strip-the-fat.php:39
|
1229 |
+
#: templates/_admin-page-settings-plugin-areas/_test-mode.php:13
|
1230 |
+
#: templates/admin-page-settings-plugin.php:28
|
1231 |
+
msgid "Test Mode"
|
1232 |
+
msgstr ""
|
1233 |
+
|
1234 |
+
#: templates/_admin-page-settings-plugin-areas/_strip-the-fat.php:39
|
1235 |
+
msgid ""
|
1236 |
+
"I'm aware that unloading the wrong CSS/JS files can break the layout and "
|
1237 |
+
"front-end functionality of the pages I'm optimising."
|
1238 |
+
msgstr ""
|
1239 |
+
|
1240 |
+
#: templates/_admin-page-settings-plugin-areas/_test-mode.php:14
|
1241 |
+
#, php-format
|
1242 |
+
msgid ""
|
1243 |
+
"Have your visitors load the website without any %s settings while you're "
|
1244 |
+
"going through the plugin setup and unloading the useless CSS & "
|
1245 |
+
"JavaScript!"
|
1246 |
+
msgstr ""
|
1247 |
+
|
1248 |
+
#: templates/_admin-page-settings-plugin-areas/_test-mode.php:18
|
1249 |
+
msgid "Enable Test Mode?"
|
1250 |
+
msgstr ""
|
1251 |
+
|
1252 |
+
#: templates/_admin-page-settings-plugin-areas/_test-mode.php:19
|
1253 |
+
msgid "Apply plugin's changes for the admin only"
|
1254 |
+
msgstr ""
|
1255 |
+
|
1256 |
+
#: templates/_admin-page-settings-plugin-areas/_test-mode.php:30
|
1257 |
+
msgid ""
|
1258 |
+
"This is great for debugging when you're going through trial and error while "
|
1259 |
+
"removing unneeded CSS & JavaScript on your website."
|
1260 |
+
msgstr ""
|
1261 |
+
|
1262 |
+
#: templates/_admin-page-settings-plugin-areas/_test-mode.php:33
|
1263 |
+
msgid ""
|
1264 |
+
"Your visitors will load the website with all the settings & assets "
|
1265 |
+
"loaded (just like it was before you activated the plugin). Only YOU (the "
|
1266 |
+
"logged-in administrator) will see the plugin's settings & unload rules "
|
1267 |
+
"applied."
|
1268 |
+
msgstr ""
|
1269 |
+
|
1270 |
+
#: templates/_admin-page-settings-plugin-areas/_test-mode.php:34
|
1271 |
+
msgid ""
|
1272 |
+
"To view the website as a guest visitor, just make sure you access it from a "
|
1273 |
+
"browser where you're not logged in, or you can test it in Incognito "
|
1274 |
+
"(Private) mode."
|
1275 |
+
msgstr ""
|
1276 |
+
|
1277 |
+
#: templates/_admin-page-settings-plugin-areas/_test-mode.php:37
|
1278 |
+
msgid ""
|
1279 |
+
"For instance, you have an eCommerce website (e.g. WooCommerce, Easy Digital "
|
1280 |
+
"Downloads), and you're worried that unloading one wrong asset could break "
|
1281 |
+
"the \"add to cart\" functionality or the layout of the product page. You can "
|
1282 |
+
"enable this option, do the unloading for the CSS & JavaScript files you "
|
1283 |
+
"believe are not needed on certain pages, test to check if everything is "
|
1284 |
+
"alright, and then disable test mode to enable the unloading for your "
|
1285 |
+
"visitors too (not only the admin)."
|
1286 |
+
msgstr ""
|
1287 |
+
|
1288 |
+
#: templates/_admin-page-settings-plugin-areas/_test-mode.php:40
|
1289 |
+
#, php-format
|
1290 |
+
msgid ""
|
1291 |
+
"<strong>Important:</strong> If you're using page speed test tools such as "
|
1292 |
+
"GTMetrix, Pingdom, Google PageSpeed Insights, etc., while test mode is "
|
1293 |
+
"enabled, you will not see any improvements in the reports because, "
|
1294 |
+
"technically, %s plugin is deactivated for guests users and anyone else "
|
1295 |
+
"(including bots and GTMetrix visits), the changes you made being visible "
|
1296 |
+
"only to you."
|
1297 |
+
msgstr ""
|
1298 |
+
|
1299 |
+
#: templates/_admin-page-settings-plugin-areas/_test-mode.php:41
|
1300 |
+
msgid ""
|
1301 |
+
"Once everything is alright with the way your websites loads, after you "
|
1302 |
+
"stripped the \"fat\" from your pages, you can disable test mode to apply the "
|
1303 |
+
"changes to everyone and then run tests via GTMetrix or other similar tools."
|
1304 |
+
msgstr ""
|
1305 |
+
|
1306 |
+
#: templates/admin-page-assets-manager.php:14
|
1307 |
+
msgid "Homepage"
|
1308 |
+
msgstr ""
|
1309 |
+
|
1310 |
+
#: templates/admin-page-assets-manager.php:15
|
1311 |
+
msgid "All Other Pages"
|
1312 |
+
msgstr ""
|
1313 |
+
|
1314 |
+
#: templates/admin-page-child-pages-info.php:11
|
1315 |
+
#: templates/admin-page-child-pages-info.php:43
|
1316 |
+
#: templates/admin-page-child-pages-info.php:48
|
1317 |
+
#: templates/admin-page-child-pages-info.php:53
|
1318 |
+
#: templates/admin-page-child-pages-info.php:58
|
1319 |
+
msgid "Manage Assets"
|
1320 |
+
msgstr ""
|
1321 |
+
|
1322 |
+
#: templates/admin-page-child-pages-info.php:17
|
1323 |
+
msgid ""
|
1324 |
+
"This is an overview of all the WordPress pages where Asset CleanUp can be "
|
1325 |
+
"used to unload unused CSS & JavaScript files."
|
1326 |
+
msgstr ""
|
1327 |
+
|
1328 |
+
#: templates/admin-page-child-pages-info.php:18
|
1329 |
+
#, php-format
|
1330 |
+
msgid ""
|
1331 |
+
"Unloading assets (CSS & JavaScript) for page types that have a locker "
|
1332 |
+
"next to their name requires an %supgrade to the Pro version%s."
|
1333 |
+
msgstr ""
|
1334 |
+
|
1335 |
+
#: templates/admin-page-child-pages-info.php:26
|
1336 |
+
msgid "PAGE TYPE"
|
1337 |
+
msgstr ""
|
1338 |
+
|
1339 |
+
#: templates/admin-page-child-pages-info.php:27
|
1340 |
+
msgid "ACTION"
|
1341 |
+
msgstr ""
|
1342 |
+
|
1343 |
+
#: templates/admin-page-child-pages-info.php:28
|
1344 |
+
msgid "DESCRIPTION"
|
1345 |
+
msgstr ""
|
1346 |
+
|
1347 |
+
#: templates/admin-page-child-pages-info.php:42
|
1348 |
+
#: templates/admin-page-child-pages-info.php:104
|
1349 |
+
msgid "Posts"
|
1350 |
+
msgstr ""
|
1351 |
+
|
1352 |
+
#: templates/admin-page-child-pages-info.php:44
|
1353 |
+
#: templates/admin-page-child-pages-info.php:49
|
1354 |
+
#: templates/admin-page-child-pages-info.php:54
|
1355 |
+
#: templates/admin-page-child-pages-info.php:59
|
1356 |
+
#: templates/admin-page-child-pages-info.php:64
|
1357 |
+
#: templates/admin-page-child-pages-info.php:69
|
1358 |
+
#: templates/admin-page-child-pages-info.php:74
|
1359 |
+
#: templates/admin-page-child-pages-info.php:94
|
1360 |
+
msgid "read more"
|
1361 |
+
msgstr ""
|
1362 |
+
|
1363 |
+
#: templates/admin-page-child-pages-info.php:47
|
1364 |
+
#: templates/admin-page-child-pages-info.php:118
|
1365 |
+
msgid "Custom Post Type"
|
1366 |
+
msgstr ""
|
1367 |
+
|
1368 |
+
#: templates/admin-page-child-pages-info.php:52
|
1369 |
+
#: templates/admin-page-child-pages-info.php:133
|
1370 |
+
msgid "Pages"
|
1371 |
+
msgstr ""
|
1372 |
+
|
1373 |
+
#: templates/admin-page-child-pages-info.php:57
|
1374 |
+
msgid "Media Attachment"
|
1375 |
+
msgstr ""
|
1376 |
+
|
1377 |
+
#: templates/admin-page-child-pages-info.php:62
|
1378 |
+
msgid "Categories"
|
1379 |
+
msgstr ""
|
1380 |
+
|
1381 |
+
#: templates/admin-page-child-pages-info.php:67
|
1382 |
+
msgid "Tags"
|
1383 |
+
msgstr ""
|
1384 |
+
|
1385 |
+
#: templates/admin-page-child-pages-info.php:72
|
1386 |
+
msgid "Custom Taxonomy"
|
1387 |
+
msgstr ""
|
1388 |
+
|
1389 |
+
#: templates/admin-page-child-pages-info.php:77
|
1390 |
+
msgid "Search"
|
1391 |
+
msgstr ""
|
1392 |
+
|
1393 |
+
#: templates/admin-page-child-pages-info.php:82
|
1394 |
+
msgid "Author"
|
1395 |
+
msgstr ""
|
1396 |
+
|
1397 |
+
#: templates/admin-page-child-pages-info.php:87
|
1398 |
+
msgid "Date"
|
1399 |
+
msgstr ""
|
1400 |
+
|
1401 |
+
#: templates/admin-page-child-pages-info.php:92
|
1402 |
+
msgid "404 Not Found"
|
1403 |
+
msgstr ""
|
1404 |
+
|
1405 |
+
#: templates/admin-page-child-pages-info.php:147
|
1406 |
+
msgid "Media Attachment Pages"
|
1407 |
+
msgstr ""
|
1408 |
+
|
1409 |
+
#: templates/admin-page-child-settings-homepage.php:11
|
1410 |
+
msgid "Home Page Scripts & Styles Management"
|
1411 |
+
msgstr ""
|
1412 |
+
|
1413 |
+
#: templates/admin-page-child-settings-homepage.php:18
|
1414 |
+
#, php-format
|
1415 |
+
msgid ""
|
1416 |
+
"As \"Manage in the Dashboard?\" is not enabled in \"%sSettings%s\", you can "
|
1417 |
+
"not manage the assets from the Dashboard."
|
1418 |
+
msgstr ""
|
1419 |
+
|
1420 |
+
#: templates/admin-page-child-settings-homepage.php:25
|
1421 |
+
msgid ""
|
1422 |
+
"In \"Settings\" » \"Reading\" you have selected a static page for "
|
1423 |
+
"\"Front page displays\" setting. To manage the assets (.CSS & .JS) that "
|
1424 |
+
"will NOT LOAD, use the link(s) below:"
|
1425 |
+
msgstr ""
|
1426 |
+
|
1427 |
+
#: templates/admin-page-child-settings-homepage.php:32
|
1428 |
+
msgid "Front page:"
|
1429 |
+
msgstr ""
|
1430 |
+
|
1431 |
+
#: templates/admin-page-child-settings-homepage.php:41
|
1432 |
+
msgid "Posts page:"
|
1433 |
+
msgstr ""
|
1434 |
+
|
1435 |
+
#: templates/admin-page-child-settings-homepage.php:49
|
1436 |
+
#, php-format
|
1437 |
+
msgid ""
|
1438 |
+
"To read more about creating a static front page in WordPress, %scheck the "
|
1439 |
+
"Codex%s."
|
1440 |
+
msgstr ""
|
1441 |
+
|
1442 |
+
#: templates/admin-page-child-settings-homepage.php:61
|
1443 |
+
msgid ""
|
1444 |
+
"Here you can unload files loaded on the home page. \"Front page displays"
|
1445 |
+
"\" (from \"Settings\" » \"Reading\") is set to either \"Your latest "
|
1446 |
+
"posts\" (in \"Settings\" » \"Reading\") OR a special layout (from a "
|
1447 |
+
"theme or plugin) was enabled."
|
1448 |
+
msgstr ""
|
1449 |
+
|
1450 |
+
#: templates/admin-page-child-settings-homepage.php:61
|
1451 |
+
#, php-format
|
1452 |
+
msgid ""
|
1453 |
+
"Changes will also apply to pages such as %s etc. in case the latest blog "
|
1454 |
+
"posts are paginated."
|
1455 |
+
msgstr ""
|
1456 |
+
|
1457 |
+
#: templates/admin-page-child-settings-homepage.php:66
|
1458 |
+
msgid ""
|
1459 |
+
"Retrieving the loaded scripts and styles for the home page. Please wait..."
|
1460 |
+
msgstr ""
|
1461 |
+
|
1462 |
+
#: templates/admin-page-child-settings-homepage.php:69
|
1463 |
+
#: templates/meta-box.php:25
|
1464 |
+
#, php-format
|
1465 |
+
msgid ""
|
1466 |
+
"If you believe fetching the page takes too long and the assets should have "
|
1467 |
+
"loaded by now, I suggest you go to \"Settings\", make sure \"Manage in front-"
|
1468 |
+
"end\" is checked and then %smanage the assets in the front-end%s."
|
1469 |
+
msgstr ""
|
1470 |
+
|
1471 |
+
#: templates/admin-page-get-help.php:15
|
1472 |
+
msgid "I have purchased the Pro version. How to do the upgrade?"
|
1473 |
+
msgstr ""
|
1474 |
+
|
1475 |
+
#: templates/admin-page-get-help.php:17
|
1476 |
+
msgid ""
|
1477 |
+
"Go to \"Plugins\" -> \"Installed Plugins\", <strong>deactivate</strong> "
|
1478 |
+
"and then <strong>delete</strong> \"Asset CleanUp: Page Speed Booster"
|
1479 |
+
"\" (<em>no worries, any settings applied would be preserved</em>)"
|
1480 |
+
msgstr ""
|
1481 |
+
|
1482 |
+
#: templates/admin-page-get-help.php:30
|
1483 |
+
msgid ""
|
1484 |
+
"Go to \"Plugins\" -> \"Add New\" -> \"Upload Plugin\"; You will notice "
|
1485 |
+
"an upload form and an \"Install Now\" submit button. Download the ZIP file "
|
1486 |
+
"you received in your purchase email receipt (<em>example: wp-asset-clean-up-"
|
1487 |
+
"pro-v1.0.8.5.zip</em>), attach it to the form and install the new upgraded "
|
1488 |
+
"plugin."
|
1489 |
+
msgstr ""
|
1490 |
+
|
1491 |
+
#: templates/admin-page-get-help.php:36
|
1492 |
+
msgid "Finally, <strong>activate</strong> Asset CleanUp Pro! That's it"
|
1493 |
+
msgstr ""
|
1494 |
+
|
1495 |
+
#: templates/admin-page-get-help.php:43
|
1496 |
+
msgid "Reminder"
|
1497 |
+
msgstr ""
|
1498 |
+
|
1499 |
+
#: templates/admin-page-get-help.php:43
|
1500 |
+
msgid ""
|
1501 |
+
"Once the Pro version is active, make sure to get the license key from the "
|
1502 |
+
"purchase email receipt and activate it in \"License\" in order to be "
|
1503 |
+
"eligible for plugin updates from the Dashboard."
|
1504 |
+
msgstr ""
|
1505 |
+
|
1506 |
+
#: templates/admin-page-get-help.php:47
|
1507 |
+
msgid "I am stuck and need assistance, can I get help?"
|
1508 |
+
msgstr ""
|
1509 |
+
|
1510 |
+
#: templates/admin-page-get-help.php:71
|
1511 |
+
msgid "Hire an Expert"
|
1512 |
+
msgstr ""
|
1513 |
+
|
1514 |
+
#: templates/admin-page-get-help.php:73
|
1515 |
+
msgid "Find out more"
|
1516 |
+
msgstr ""
|
1517 |
+
|
1518 |
+
#: templates/admin-page-getting-started.php:11
|
1519 |
+
#, php-format
|
1520 |
+
msgid "Welcome to %s %s"
|
1521 |
+
msgstr ""
|
1522 |
+
|
1523 |
+
#: templates/admin-page-getting-started.php:13
|
1524 |
+
msgid "Thank you for installing this page speed booster plugin"
|
1525 |
+
msgstr ""
|
1526 |
+
|
1527 |
+
#: templates/admin-page-getting-started.php:13
|
1528 |
+
msgid ""
|
1529 |
+
"Prepare to make your WordPress website faster & lighter by removing the "
|
1530 |
+
"useless CSS & JavaScript files from your pages."
|
1531 |
+
msgstr ""
|
1532 |
+
|
1533 |
+
#: templates/admin-page-getting-started.php:15
|
1534 |
+
#, php-format
|
1535 |
+
msgid ""
|
1536 |
+
"For maximum performance, %s works best when used with either a %scaching "
|
1537 |
+
"plugin%s, the in-built hosting caching (e.g. via %sWPEngine%s, Kinsta, etc.) "
|
1538 |
+
"or something like Varnish."
|
1539 |
+
msgstr ""
|
1540 |
+
|
1541 |
+
#: templates/admin-page-getting-started.php:27
|
1542 |
+
msgid "How it works"
|
1543 |
+
msgstr ""
|
1544 |
+
|
1545 |
+
#: templates/admin-page-getting-started.php:28
|
1546 |
+
msgid "Benefits of a Fast Website"
|
1547 |
+
msgstr ""
|
1548 |
+
|
1549 |
+
#: templates/admin-page-getting-started.php:29
|
1550 |
+
msgid "Start Optimization"
|
1551 |
+
msgstr ""
|
1552 |
+
|
1553 |
+
#: templates/admin-page-getting-started.php:30
|
1554 |
+
msgid "Video Tutorials"
|
1555 |
+
msgstr ""
|
1556 |
+
|
1557 |
+
#: templates/admin-page-license.php:14
|
1558 |
+
#, php-format
|
1559 |
+
msgid ""
|
1560 |
+
"You're using the lite version of %s (v%s), so no license key is needed. "
|
1561 |
+
"You'll receive automatic notifications whenever a new version is available "
|
1562 |
+
"for download."
|
1563 |
+
msgstr ""
|
1564 |
+
|
1565 |
+
#: templates/admin-page-license.php:18
|
1566 |
+
#, php-format
|
1567 |
+
msgid ""
|
1568 |
+
"To unlock all features and get premium support, you can %supgrade to the Pro "
|
1569 |
+
"version%s."
|
1570 |
+
msgstr ""
|
1571 |
+
|
1572 |
+
#: templates/admin-page-license.php:25
|
1573 |
+
#, php-format
|
1574 |
+
msgid ""
|
1575 |
+
"If you already purchased the Pro version and you don't know how to activate "
|
1576 |
+
"it, %sfollow the steps from the \"Help\" section%s."
|
1577 |
+
msgstr ""
|
1578 |
+
|
1579 |
+
#: templates/admin-page-settings-bulk-changes.php:14
|
1580 |
+
msgid "Bulk Unloaded"
|
1581 |
+
msgstr ""
|
1582 |
+
|
1583 |
+
#: templates/admin-page-settings-bulk-changes.php:15
|
1584 |
+
msgid "Defer & Async used on all pages"
|
1585 |
+
msgstr ""
|
1586 |
+
|
1587 |
+
#: templates/admin-page-settings-bulk-changes.php:16
|
1588 |
+
msgid "Updated CSS/JS positions"
|
1589 |
+
msgstr ""
|
1590 |
+
|
1591 |
+
#: templates/admin-page-settings-plugin.php:18
|
1592 |
+
msgid "read"
|
1593 |
+
msgstr ""
|
1594 |
+
|
1595 |
+
#: templates/admin-page-settings-plugin.php:19
|
1596 |
+
msgid "unread"
|
1597 |
+
msgstr ""
|
1598 |
+
|
1599 |
+
#: templates/admin-page-settings-plugin.php:26
|
1600 |
+
msgid "Stripping the \"fat\""
|
1601 |
+
msgstr ""
|
1602 |
+
|
1603 |
+
#: templates/admin-page-settings-plugin.php:27
|
1604 |
+
msgid "General & Files Management"
|
1605 |
+
msgstr ""
|
1606 |
+
|
1607 |
+
#: templates/admin-page-settings-plugin.php:29
|
1608 |
+
msgid "Minify CSS & JS Files"
|
1609 |
+
msgstr ""
|
1610 |
+
|
1611 |
+
#: templates/admin-page-settings-plugin.php:30
|
1612 |
+
msgid "Combine CSS & JS Files"
|
1613 |
+
msgstr ""
|
1614 |
+
|
1615 |
+
#: templates/admin-page-settings-plugin.php:31
|
1616 |
+
msgid "Site-Wide Common Unloads"
|
1617 |
+
msgstr ""
|
1618 |
+
|
1619 |
+
#: templates/admin-page-settings-plugin.php:32
|
1620 |
+
msgid "HTML Source CleanUp"
|
1621 |
+
msgstr ""
|
1622 |
+
|
1623 |
+
#: templates/admin-page-settings-plugin.php:33
|
1624 |
+
msgid "Disable XML-RPC"
|
1625 |
+
msgstr ""
|
1626 |
+
|
1627 |
+
#: templates/admin-page-settings-plugin.php:86
|
1628 |
+
msgid "Update All Settings"
|
1629 |
+
msgstr ""
|
1630 |
+
|
1631 |
+
#: templates/admin-page-tools.php:15
|
1632 |
+
msgid "Reset"
|
1633 |
+
msgstr ""
|
1634 |
+
|
1635 |
+
#: templates/admin-page-tools.php:16
|
1636 |
+
msgid "System Info"
|
1637 |
+
msgstr ""
|
1638 |
+
|
1639 |
+
#: templates/admin-page-tools.php:22
|
1640 |
+
msgid ""
|
1641 |
+
"Do you need to reset the plugin to its initial settings or reset all changes?"
|
1642 |
+
msgstr ""
|
1643 |
+
|
1644 |
+
#: templates/admin-page-tools.php:25
|
1645 |
+
msgid "Select an option first"
|
1646 |
+
msgstr ""
|
1647 |
+
|
1648 |
+
#: templates/admin-page-tools.php:26
|
1649 |
+
msgid "Reset settings"
|
1650 |
+
msgstr ""
|
1651 |
+
|
1652 |
+
#: templates/admin-page-tools.php:27
|
1653 |
+
msgid ""
|
1654 |
+
"Reset everything: settings, all unloads (bulk & individual) & load "
|
1655 |
+
"exceptions"
|
1656 |
+
msgstr ""
|
1657 |
+
|
1658 |
+
#: templates/admin-page-tools.php:32
|
1659 |
+
msgid ""
|
1660 |
+
"Also remove license data in case the premium version was active at any point"
|
1661 |
+
msgstr ""
|
1662 |
+
|
1663 |
+
#: templates/admin-page-tools.php:36
|
1664 |
+
msgid ""
|
1665 |
+
"Please read carefully below what the chosen action does as this process is "
|
1666 |
+
"NOT reversible."
|
1667 |
+
msgstr ""
|
1668 |
+
|
1669 |
+
#: templates/admin-page-tools.php:39
|
1670 |
+
msgid ""
|
1671 |
+
"This will reset every option from the \"Settings\" page/tab to the same "
|
1672 |
+
"state it was when you first activated the plugin."
|
1673 |
+
msgstr ""
|
1674 |
+
|
1675 |
+
#: templates/admin-page-tools.php:43
|
1676 |
+
msgid ""
|
1677 |
+
"This will reset everything (settings, page loads & any load exceptions) "
|
1678 |
+
"to the same point it was when you first activated the plugin. All the "
|
1679 |
+
"plugin's database records will be removed. It will technically have the same "
|
1680 |
+
"effect for your website as if the plugin would be deactivated."
|
1681 |
+
msgstr ""
|
1682 |
+
|
1683 |
+
#: templates/admin-page-tools.php:45
|
1684 |
+
msgid "This action is usually taken if:"
|
1685 |
+
msgstr ""
|
1686 |
+
|
1687 |
+
#: templates/admin-page-tools.php:47
|
1688 |
+
msgid ""
|
1689 |
+
"You believe you have applied some changes (such as unloading the wrong CSS / "
|
1690 |
+
"JavaScript file(s)) that broke the website and you need a quick fix to make "
|
1691 |
+
"it work the way it used to. Note that for this option, you can also enable "
|
1692 |
+
"\"Test Mode\" from the plugin's settings which will only apply the changes "
|
1693 |
+
"to you (logged-in administrator), while the regular visitors will view the "
|
1694 |
+
"website as if Asset CleanUp is deactivated."
|
1695 |
+
msgstr ""
|
1696 |
+
|
1697 |
+
#: templates/admin-page-tools.php:48
|
1698 |
+
msgid ""
|
1699 |
+
"You want to uninstall Asset CleanUp and remove the traces left in the "
|
1700 |
+
"database (this is not the same thing as deactivating and activating the "
|
1701 |
+
"plugin again, as any changes applied would be preserved in this scenario)"
|
1702 |
+
msgstr ""
|
1703 |
+
|
1704 |
+
#: templates/admin-page-tools.php:63
|
1705 |
+
msgid "Submit"
|
1706 |
+
msgstr ""
|
1707 |
+
|
1708 |
+
#: templates/admin-page-tools.php:75
|
1709 |
+
msgid "Download System Info"
|
1710 |
+
msgstr ""
|
1711 |
+
|
1712 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:22
|
1713 |
+
#: templates/meta-box-loaded-assets/_asset-style-single-row.php:19
|
1714 |
+
msgid "Handle:"
|
1715 |
+
msgstr ""
|
1716 |
+
|
1717 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:51
|
1718 |
+
#: templates/meta-box-loaded-assets/_asset-style-single-row.php:48
|
1719 |
+
msgid "Source:"
|
1720 |
+
msgstr ""
|
1721 |
+
|
1722 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:63
|
1723 |
+
msgid "\"Child\" of one \"parent\" file:"
|
1724 |
+
msgstr ""
|
1725 |
+
|
1726 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:64
|
1727 |
+
#, php-format
|
1728 |
+
msgid "\"Child\" of %s JS \"parent\" files:"
|
1729 |
+
msgstr ""
|
1730 |
+
|
1731 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:81
|
1732 |
+
#: templates/meta-box-loaded-assets/_asset-style-single-row.php:72
|
1733 |
+
msgid "Version:"
|
1734 |
+
msgstr ""
|
1735 |
+
|
1736 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:84
|
1737 |
+
#: templates/meta-box-loaded-assets/_asset-style-single-row.php:75
|
1738 |
+
msgid "Position:"
|
1739 |
+
msgstr ""
|
1740 |
+
|
1741 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:89
|
1742 |
+
#: templates/meta-box-loaded-assets/_asset-style-single-row.php:80
|
1743 |
+
msgid "File Size:"
|
1744 |
+
msgstr ""
|
1745 |
+
|
1746 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:106
|
1747 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:114
|
1748 |
+
#: templates/meta-box-loaded-assets/_asset-style-single-row.php:93
|
1749 |
+
#: templates/meta-box-loaded-assets/view-by-location.php:131
|
1750 |
+
msgid "Unload on this page"
|
1751 |
+
msgstr ""
|
1752 |
+
|
1753 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:125
|
1754 |
+
msgid "This JavaScript file is unloaded everywhere"
|
1755 |
+
msgstr ""
|
1756 |
+
|
1757 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:164
|
1758 |
+
#: templates/meta-box-loaded-assets/_asset-style-single-row.php:148
|
1759 |
+
msgid "Unload Everywhere"
|
1760 |
+
msgstr ""
|
1761 |
+
|
1762 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:201
|
1763 |
+
#: templates/meta-box-loaded-assets/_asset-style-single-row.php:186
|
1764 |
+
msgid "Keep bulk rule"
|
1765 |
+
msgstr ""
|
1766 |
+
|
1767 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:210
|
1768 |
+
#: templates/meta-box-loaded-assets/_asset-style-single-row.php:195
|
1769 |
+
msgid "Remove bulk rule"
|
1770 |
+
msgstr ""
|
1771 |
+
|
1772 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:258
|
1773 |
+
msgid "Inline JavaScript code associated with the handle:"
|
1774 |
+
msgstr ""
|
1775 |
+
|
1776 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:277
|
1777 |
+
msgid "this option is available in Pro version"
|
1778 |
+
msgstr ""
|
1779 |
+
|
1780 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:280
|
1781 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:288
|
1782 |
+
msgid "This feature is available in the premium version of the plugin."
|
1783 |
+
msgstr ""
|
1784 |
+
|
1785 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:280
|
1786 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:288
|
1787 |
+
msgid "Click here to upgrade to Pro"
|
1788 |
+
msgstr ""
|
1789 |
+
|
1790 |
+
#: templates/meta-box-loaded-assets/_asset-style-single-row.php:58
|
1791 |
+
msgid "\"Child\" of one \"parent\" CSS file:"
|
1792 |
+
msgstr ""
|
1793 |
+
|
1794 |
+
#: templates/meta-box-loaded-assets/_asset-style-single-row.php:59
|
1795 |
+
#, php-format
|
1796 |
+
msgid "\"Child\" of %s CSS \"parent\" files:"
|
1797 |
+
msgstr ""
|
1798 |
+
|
1799 |
+
#: templates/meta-box-loaded-assets/_asset-style-single-row.php:246
|
1800 |
+
msgid "Inline styling associated with the handle:"
|
1801 |
+
msgstr ""
|
1802 |
+
|
1803 |
+
#: templates/meta-box-loaded-assets/_asset-style-single-row.php:249
|
1804 |
+
msgid "Show / Hide"
|
1805 |
+
msgstr ""
|
1806 |
+
|
1807 |
+
#: templates/meta-box-loaded-assets/view-by-location.php:25
|
1808 |
+
#, php-format
|
1809 |
+
msgid ""
|
1810 |
+
"Please select the styles & scripts that are %sNOT NEEDED%s from the list "
|
1811 |
+
"below. Not sure which ones to unload? %s Use \"Test Mode\" (to make the "
|
1812 |
+
"changes apply only to you), while you are going through the trial & "
|
1813 |
+
"error process."
|
1814 |
+
msgstr ""
|
1815 |
+
|
1816 |
+
#: templates/meta-box-loaded-assets/view-by-location.php:29
|
1817 |
+
#: templates/meta-box-loaded-assets/view-by-position.php:25
|
1818 |
+
#: templates/meta-box-loaded-assets/view-default.php:38
|
1819 |
+
#: templates/meta-box-loaded-assets/view-default.php:100
|
1820 |
+
msgid ""
|
1821 |
+
"\"Load in on this page (make exception)\" will take effect when a bulk "
|
1822 |
+
"unload rule is used. Otherwise, the asset will load anyway unless you select "
|
1823 |
+
"it for unload."
|
1824 |
+
msgstr ""
|
1825 |
+
|
1826 |
+
#: templates/meta-box-loaded-assets/view-by-location.php:42
|
1827 |
+
#: templates/meta-box-loaded-assets/view-by-position.php:38
|
1828 |
+
#, php-format
|
1829 |
+
msgid ""
|
1830 |
+
"Assets that are marked with %s are part of WordPress core files. Be careful "
|
1831 |
+
"if you decide to unload them! If you are not sure what to do, just leave "
|
1832 |
+
"them loaded by default and consult with a developer."
|
1833 |
+
msgstr ""
|
1834 |
+
|
1835 |
+
#: templates/meta-box-loaded-assets/view-by-location.php:134
|
1836 |
+
msgid "Check All"
|
1837 |
+
msgstr ""
|
1838 |
+
|
1839 |
+
#: templates/meta-box-loaded-assets/view-by-location.php:137
|
1840 |
+
msgid "Uncheck All"
|
1841 |
+
msgstr ""
|
1842 |
+
|
1843 |
+
#: templates/meta-box-loaded-assets/view-by-location.php:175
|
1844 |
+
msgid "There are no CSS/JS loaded from this location."
|
1845 |
+
msgstr ""
|
1846 |
+
|
1847 |
+
#: templates/meta-box-loaded-assets/view-by-position.php:24
|
1848 |
+
#, php-format
|
1849 |
+
msgid ""
|
1850 |
+
"The following styles & scripts are loading on this page. Please select "
|
1851 |
+
"the ones that are %sNOT NEEDED%s. If you are not sure which ones to unload, "
|
1852 |
+
"it is better to enable \"Test Mode\" (to make the changes apply only to "
|
1853 |
+
"you), while you are going through the trial & error process."
|
1854 |
+
msgstr ""
|
1855 |
+
|
1856 |
+
#: templates/meta-box-loaded-assets/view-default.php:28
|
1857 |
+
msgid "Styles (.css files)"
|
1858 |
+
msgstr ""
|
1859 |
+
|
1860 |
+
#: templates/meta-box-loaded-assets/view-default.php:37
|
1861 |
+
#, php-format
|
1862 |
+
msgid ""
|
1863 |
+
"Please select the styles & scripts that are %sNOT NEEDED%s from the list "
|
1864 |
+
"below. Not sure which ones to unload? 🤔 Use \"Test Mode\" (to make the "
|
1865 |
+
"changes apply only to you), while you are going through the trial & "
|
1866 |
+
"error process."
|
1867 |
+
msgstr ""
|
1868 |
+
|
1869 |
+
#: templates/meta-box-loaded-assets/view-default.php:51
|
1870 |
+
#, php-format
|
1871 |
+
msgid ""
|
1872 |
+
"CSS files that are marked with %s are part of WordPress core files. Be "
|
1873 |
+
"careful if you decide to unload them! If you are not sure what to do, just "
|
1874 |
+
"leave them loaded by default and consult with a developer."
|
1875 |
+
msgstr ""
|
1876 |
+
|
1877 |
+
#: templates/meta-box-loaded-assets/view-default.php:68
|
1878 |
+
msgid ""
|
1879 |
+
"It looks like there are no public .css files loaded or the ones visible do "
|
1880 |
+
"not follow <a href=\"https://codex.wordpress.org/Function_Reference/"
|
1881 |
+
"wp_enqueue_style\">the WordPress way of enqueuing styles</a>."
|
1882 |
+
msgstr ""
|
1883 |
+
|
1884 |
+
#: templates/meta-box-loaded-assets/view-default.php:90
|
1885 |
+
msgid "Scripts (.js files)"
|
1886 |
+
msgstr ""
|
1887 |
+
|
1888 |
+
#: templates/meta-box-loaded-assets/view-default.php:99
|
1889 |
+
#, php-format
|
1890 |
+
msgid ""
|
1891 |
+
"Please select the styles & scripts that are %sNOT NEEDED%s from the list "
|
1892 |
+
"below. Not sure which ones to unload? Use \"Test Mode\" (to make the changes "
|
1893 |
+
"apply only to you), while you are going through the trial & error "
|
1894 |
+
"process."
|
1895 |
+
msgstr ""
|
1896 |
+
|
1897 |
+
#: templates/meta-box-loaded-assets/view-default.php:113
|
1898 |
+
#, php-format
|
1899 |
+
msgid ""
|
1900 |
+
"JavaScript files that are marked with %s are part of WordPress core files. "
|
1901 |
+
"Be careful if you decide to unload them! If you are not sure what to do, "
|
1902 |
+
"just leave them loaded by default and consult with a developer."
|
1903 |
+
msgstr ""
|
1904 |
+
|
1905 |
+
#: templates/meta-box-loaded-assets/view-default.php:131
|
1906 |
+
msgid ""
|
1907 |
+
"It looks like there are no public .js files loaded or the ones visible do "
|
1908 |
+
"not follow <a href=\"https://codex.wordpress.org/Function_Reference/"
|
1909 |
+
"wp_enqueue_script\">the WordPress way of enqueuing scripts</a>."
|
1910 |
+
msgstr ""
|
1911 |
+
|
1912 |
+
#: templates/meta-box-loaded.php:21
|
1913 |
+
msgid ""
|
1914 |
+
"It looks like \"WP Remote Post\" method for retrieving assets via the "
|
1915 |
+
"Dashboard is not working in this environment."
|
1916 |
+
msgstr ""
|
1917 |
+
|
1918 |
+
#: templates/meta-box-loaded.php:22
|
1919 |
+
msgid ""
|
1920 |
+
"Since the server (from its IP) is making the call, it will not \"behave\" in "
|
1921 |
+
"the same way as the \"Direct\" method, which could bypass for instance any "
|
1922 |
+
"authentication request (you might use a staging website that is protected by "
|
1923 |
+
"login credentials)."
|
1924 |
+
msgstr ""
|
1925 |
+
|
1926 |
+
#: templates/meta-box-loaded.php:23
|
1927 |
+
msgid ""
|
1928 |
+
"Consider using \"Direct\" method. If that doesn't work either, use the "
|
1929 |
+
"\"Manage in the Front-end\" option (which should always work in any "
|
1930 |
+
"instance) and submit a ticket regarding the problem you're having. Here's "
|
1931 |
+
"the output received by the call:"
|
1932 |
+
msgstr ""
|
1933 |
+
|
1934 |
+
#: templates/meta-box-loaded.php:27
|
1935 |
+
msgid "CODE"
|
1936 |
+
msgstr ""
|
1937 |
+
|
1938 |
+
#: templates/meta-box-loaded.php:32
|
1939 |
+
msgid "MESSAGE"
|
1940 |
+
msgstr ""
|
1941 |
+
|
1942 |
+
#: templates/meta-box-loaded.php:37
|
1943 |
+
msgid "OUTPUT"
|
1944 |
+
msgstr ""
|
1945 |
+
|
1946 |
+
#: templates/meta-box-loaded.php:68
|
1947 |
+
msgid "You are currently viewing the home page."
|
1948 |
+
msgstr ""
|
1949 |
+
|
1950 |
+
#: templates/meta-box-loaded.php:74
|
1951 |
+
msgid "You are currently viewing the page that shows your latest posts."
|
1952 |
+
msgstr ""
|
1953 |
+
|
1954 |
+
#: templates/meta-box-loaded.php:121
|
1955 |
+
msgid "Page URL"
|
1956 |
+
msgstr ""
|
1957 |
+
|
1958 |
+
#: templates/meta-box-side-page-options.php:17
|
1959 |
+
msgid "Do not minify CSS on this page"
|
1960 |
+
msgstr ""
|
1961 |
+
|
1962 |
+
#: templates/meta-box-side-page-options.php:26
|
1963 |
+
msgid "Do not combine CSS on this page"
|
1964 |
+
msgstr ""
|
1965 |
+
|
1966 |
+
#: templates/meta-box-side-page-options.php:36
|
1967 |
+
msgid "Do not minify JS files on this page"
|
1968 |
+
msgstr ""
|
1969 |
+
|
1970 |
+
#: templates/meta-box-side-page-options.php:45
|
1971 |
+
msgid "Do not combine JavaScript on this page"
|
1972 |
+
msgstr ""
|
1973 |
+
|
1974 |
+
#: templates/meta-box-side-page-options.php:55
|
1975 |
+
msgid ""
|
1976 |
+
"Do not apply any CSS & JavaScript settings (including \"async\", \"defer"
|
1977 |
+
"\" & unload rules) on this page"
|
1978 |
+
msgstr ""
|
1979 |
+
|
1980 |
+
#: templates/meta-box.php:23
|
1981 |
+
#, php-format
|
1982 |
+
msgid ""
|
1983 |
+
"Fetching the loaded scripts and styles for <strong>%s</strong> <br /><br /> "
|
1984 |
+
"Please wait... <br /><br /> In case the list does not show consider checking "
|
1985 |
+
"your internet connection and the actual page that is being fetched to see if "
|
1986 |
+
"it loads completely."
|
1987 |
+
msgstr ""
|
1988 |
+
|
1989 |
+
#: templates/meta-box.php:31
|
1990 |
+
msgid ""
|
1991 |
+
"In order to manage the CSS/JS files here, you need to have \"Manage in the "
|
1992 |
+
"Dashboard?\" enabled within the plugin's settings (\"General & Files "
|
1993 |
+
"Management\" tab)."
|
1994 |
+
msgstr ""
|
1995 |
+
|
1996 |
+
#: templates/meta-box.php:32
|
1997 |
+
msgid ""
|
1998 |
+
"If you prefer to manage the assets within the front-end view and wish to "
|
1999 |
+
"hide this meta box, you can click on \"Screen Options\" at the top of this "
|
2000 |
+
"page and deselect \"Asset CleanUp: CSS & JavaScript Manager\"."
|
2001 |
+
msgstr ""
|
2002 |
+
|
2003 |
+
#: templates/meta-box.php:34
|
2004 |
+
msgid ""
|
2005 |
+
"The styles and scripts will be available for unload once this post/page is "
|
2006 |
+
"<strong>public</strong> and <strong>publish</strong>ed as the whole page "
|
2007 |
+
"needs to be scanned for all the loaded assets."
|
2008 |
+
msgstr ""
|
2009 |
+
|
2010 |
+
#: templates/meta-box.php:36
|
2011 |
+
msgid ""
|
2012 |
+
"If this post/page was meanwhile published (after you saw the above notice), "
|
2013 |
+
"just reload this edit page and you should see the list of CSS/JS files "
|
2014 |
+
"loaded in the page."
|
2015 |
+
msgstr ""
|
2016 |
+
|
2017 |
+
#: templates/meta-box.php:43
|
2018 |
+
msgid ""
|
2019 |
+
"There are no CSS/JS to manage as the permalink for this attachment redirects "
|
2020 |
+
"to the attachment itself because <em>\"Redirect attachment URLs to the "
|
2021 |
+
"attachment itself?\"</em> is set to <em>\"Yes\"</em> in <em>\"Search "
|
2022 |
+
"Appearance - Yoast SEO\" - \"Media\"</em> tab)."
|
2023 |
+
msgstr ""
|
2024 |
+
|
2025 |
+
#: templates/settings-frontend.php:39
|
2026 |
+
msgid ""
|
2027 |
+
"This could cause some issues with Asset CleanUp retrieving an outdated "
|
2028 |
+
"(cached) asset list below."
|
2029 |
+
msgstr ""
|
2030 |
+
|
2031 |
+
#: templates/settings-frontend.php:52
|
2032 |
+
msgid ""
|
2033 |
+
"This area is shown only for the admin users and if \"Manage in the Front-end?"
|
2034 |
+
"\" was selected in the plugin's settings. Handles such as 'admin-bar' and "
|
2035 |
+
"'wpassetcleanup-style' are not included as they are irrelevant since they "
|
2036 |
+
"are used by the plugin for this area."
|
2037 |
+
msgstr ""
|
2038 |
+
|
2039 |
+
#: templates/settings-frontend.php:56
|
2040 |
+
msgid "This a WooCommerce shop page ('product' type archive)."
|
2041 |
+
msgstr ""
|
2042 |
+
|
2043 |
+
#: templates/settings-frontend.php:56
|
2044 |
+
msgid "Unloading CSS/JS will also take effect for the pagination/sorting pages"
|
2045 |
+
msgstr ""
|
2046 |
+
|
2047 |
+
#: templates/settings-frontend.php:63
|
2048 |
+
msgid ""
|
2049 |
+
"Although this page is detected as the home page, its URL is not the same as "
|
2050 |
+
"the one from \"General Settings\" » \"Site Address (URL)\" and the "
|
2051 |
+
"WooCommerce plugin is not active anymore. This could be the \"Shop\" page "
|
2052 |
+
"that is no longer active."
|
2053 |
+
msgstr ""
|
2054 |
+
|
2055 |
+
#: templates/settings-frontend.php:77
|
2056 |
+
msgid "To unlock this feature, you can upgrade to the Pro version."
|
2057 |
+
msgstr ""
|
2058 |
+
|
2059 |
+
#: templates/settings-frontend.php:81
|
2060 |
+
msgid ""
|
2061 |
+
"This is a <strong>WordPress Search Page</strong> and managing CSS & JS "
|
2062 |
+
"(unload, defer, async, etc.) for this page type can be done in Asset CleanUp "
|
2063 |
+
"Pro."
|
2064 |
+
msgstr ""
|
2065 |
+
|
2066 |
+
#: templates/settings-frontend.php:84
|
2067 |
+
msgid ""
|
2068 |
+
"This is a <strong>404 (Not Found) Page</strong> and managing CSS & JS "
|
2069 |
+
"(unload, defer, async, etc.) for this page type can be done in Asset CleanUp "
|
2070 |
+
"Pro."
|
2071 |
+
msgstr ""
|
2072 |
+
|
2073 |
+
#: templates/settings-frontend.php:87
|
2074 |
+
msgid ""
|
2075 |
+
"This is an <strong>Author Page</strong> and managing CSS & JS (unload, "
|
2076 |
+
"defer, async, etc.) for this page type can be done in Asset CleanUp Pro."
|
2077 |
+
msgstr ""
|
2078 |
+
|
2079 |
+
#: templates/settings-frontend.php:90
|
2080 |
+
msgid ""
|
2081 |
+
"This is a <strong>Category (Taxonomy) Page</strong> and managing CSS & "
|
2082 |
+
"JS (unload, defer, async, etc.) for this page type can be done in Asset "
|
2083 |
+
"CleanUp Pro."
|
2084 |
+
msgstr ""
|
2085 |
+
|
2086 |
+
#: templates/settings-frontend.php:93
|
2087 |
+
msgid ""
|
2088 |
+
"This is a <strong>WooCommerce Product Category (Taxonomy) Page</strong> and "
|
2089 |
+
"managing CSS & JS (unload, defer, async, etc.) for this page type can be "
|
2090 |
+
"done in Asset CleanUp Pro."
|
2091 |
+
msgstr ""
|
2092 |
+
|
2093 |
+
#: templates/settings-frontend.php:96
|
2094 |
+
msgid ""
|
2095 |
+
"This is a <strong>Date (Archive) Page</strong> and managing (unload, defer, "
|
2096 |
+
"async etc.) CSS & JS for this page type can be done in Asset CleanUp Pro."
|
2097 |
+
msgstr ""
|
2098 |
+
|
2099 |
+
#: templates/settings-frontend.php:99
|
2100 |
+
msgid ""
|
2101 |
+
"This is a <strong>Tag (Archive) Page</strong> and managing CSS & JS "
|
2102 |
+
"(unload, defer, async, etc.) for this page type can be done in Asset CleanUp "
|
2103 |
+
"Pro."
|
2104 |
+
msgstr ""
|
2105 |
+
|
2106 |
+
#: templates/settings-frontend.php:102
|
2107 |
+
msgid ""
|
2108 |
+
"This is a <strong>Taxonomy Page</strong> and managing CSS & JS (unload, "
|
2109 |
+
"defer, async, etc.) for this page type can be done in Asset CleanUp Pro."
|
2110 |
+
msgstr ""
|
2111 |
+
|
2112 |
+
#: templates/settings-frontend.php:108
|
2113 |
+
msgid "Upgrade to Asset CleanUp Pro"
|
2114 |
+
msgstr ""
|
2115 |
+
|
2116 |
+
#: templates/settings-frontend.php:118
|
2117 |
+
msgid "UPDATE"
|
2118 |
+
msgstr ""
|
2119 |
+
|
2120 |
+
#: wpacu.php:73
|
2121 |
+
#, php-format
|
2122 |
+
msgid "%1$s requires %2$s PHP version installed. You have %3$s."
|
2123 |
+
msgstr ""
|
2124 |
+
|
2125 |
+
#: wpacu.php:78
|
2126 |
+
msgid ""
|
2127 |
+
"If your website is compatible with PHP 7+ (e.g. you can check with your "
|
2128 |
+
"developers or contact the hosting company), it's strongly recommended to "
|
2129 |
+
"upgrade for a better performance."
|
2130 |
+
msgstr ""
|
2131 |
+
|
2132 |
+
#: wpacu.php:79
|
2133 |
+
msgid "The plugin has been deactivated."
|
2134 |
+
msgstr ""
|
2135 |
+
|
2136 |
+
#. Plugin Name of the plugin/theme
|
2137 |
+
msgid "Asset CleanUp: Page Speed Booster"
|
2138 |
+
msgstr ""
|
2139 |
+
|
2140 |
+
#. Plugin URI of the plugin/theme
|
2141 |
+
msgid "https://wordpress.org/plugins/wp-asset-clean-up/"
|
2142 |
+
msgstr ""
|
2143 |
+
|
2144 |
+
#. Description of the plugin/theme
|
2145 |
+
msgid ""
|
2146 |
+
"Unload Chosen Scripts & Styles from Posts/Pages to reduce HTTP Requests, "
|
2147 |
+
"Combine/Minify CSS/JS files"
|
2148 |
+
msgstr ""
|
2149 |
+
|
2150 |
+
#. Author of the plugin/theme
|
2151 |
+
msgid "Gabriel Livan"
|
2152 |
+
msgstr ""
|
2153 |
+
|
2154 |
+
#. Author URI of the plugin/theme
|
2155 |
+
msgid "http://gabelivan.com/"
|
2156 |
+
msgstr ""
|
languages/wp-asset-clean-up-en_US.mo
ADDED
Binary file
|
languages/wp-asset-clean-up-en_US.po
ADDED
@@ -0,0 +1,2149 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Asset CleanUp: Page Speed Booster\n"
|
4 |
+
"POT-Creation-Date: 2019-04-19 23:57+0100\n"
|
5 |
+
"PO-Revision-Date: 2019-04-20 00:13+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"Language: en_US\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 2.2.1\n"
|
13 |
+
"X-Poedit-Basepath: ..\n"
|
14 |
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
15 |
+
"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
|
16 |
+
"X-Poedit-WPHeader: wpacu.php\n"
|
17 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
18 |
+
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
|
19 |
+
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
|
20 |
+
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
|
21 |
+
"X-Poedit-SearchPath-0: .\n"
|
22 |
+
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
23 |
+
|
24 |
+
#: classes/AdminBar.php:50 classes/Menu.php:78 classes/Menu.php:79
|
25 |
+
#: classes/Plugin.php:187 templates/_top-area.php:14
|
26 |
+
msgid "Settings"
|
27 |
+
msgstr ""
|
28 |
+
|
29 |
+
#: classes/AdminBar.php:57
|
30 |
+
msgid "Clear CSS/JS Files Cache"
|
31 |
+
msgstr ""
|
32 |
+
|
33 |
+
#: classes/AdminBar.php:73
|
34 |
+
msgid "Manage Homepage Assets"
|
35 |
+
msgstr ""
|
36 |
+
|
37 |
+
#: classes/AdminBar.php:83 classes/AdminBar.php:94
|
38 |
+
msgid "Manage Page Assets"
|
39 |
+
msgstr ""
|
40 |
+
|
41 |
+
#: classes/AdminBar.php:102 classes/Menu.php:87 classes/Menu.php:88
|
42 |
+
#: templates/_top-area.php:33
|
43 |
+
msgid "Bulk Changes"
|
44 |
+
msgstr ""
|
45 |
+
|
46 |
+
#: classes/AdminBar.php:109
|
47 |
+
msgid "Support Forum"
|
48 |
+
msgstr ""
|
49 |
+
|
50 |
+
#: classes/BulkUnloads.php:141
|
51 |
+
msgid ""
|
52 |
+
"The selected styles/scripts were removed from the global unload list and "
|
53 |
+
"they will now load in the pages/posts, unless you have other rules that "
|
54 |
+
"would prevent them from loading."
|
55 |
+
msgstr ""
|
56 |
+
|
57 |
+
#: classes/BulkUnloads.php:158
|
58 |
+
#, php-format
|
59 |
+
msgid ""
|
60 |
+
"The selected styles/scripts were removed from the unload list for <strong><u>"
|
61 |
+
"%s</u></strong> post type and they will now load in the pages/posts, unless "
|
62 |
+
"you have other rules that would prevent them from loading."
|
63 |
+
msgstr ""
|
64 |
+
|
65 |
+
#: classes/Main.php:1200
|
66 |
+
msgid ""
|
67 |
+
"The CSS/JS files will be available to manage once the post/page is published."
|
68 |
+
msgstr ""
|
69 |
+
|
70 |
+
#: classes/Main.php:1938 templates/_top-area.php:19
|
71 |
+
msgid "CSS & JavaScript Load Manager"
|
72 |
+
msgstr ""
|
73 |
+
|
74 |
+
#: classes/Main.php:1943
|
75 |
+
#, php-format
|
76 |
+
msgid ""
|
77 |
+
"Managing the loading of the styles & scripts files for this <strong>%s</"
|
78 |
+
"strong> taxonomy is %savailable in the Pro version%s"
|
79 |
+
msgstr ""
|
80 |
+
|
81 |
+
#: classes/Main.php:2066
|
82 |
+
msgid ""
|
83 |
+
"Asset CleanUp: \"TEST MODE\" ENABLED (any settings or unloads will be "
|
84 |
+
"visible ONLY to you, the logged-in administrator)"
|
85 |
+
msgstr ""
|
86 |
+
|
87 |
+
#: classes/Main.php:2067
|
88 |
+
msgid ""
|
89 |
+
"\"Test Mode\" is ENABLED. Any settings or unloads will be visible ONLY to "
|
90 |
+
"you, the logged-in administrator."
|
91 |
+
msgstr ""
|
92 |
+
|
93 |
+
#: classes/Main.php:2069
|
94 |
+
msgid ""
|
95 |
+
"Asset CleanUp: \"LIVE MODE\" (test mode is not enabled, thus, all the plugin "
|
96 |
+
"changes are visible for everyone: you, the logged-in administrator and the "
|
97 |
+
"regular visitors)"
|
98 |
+
msgstr ""
|
99 |
+
|
100 |
+
#: classes/Main.php:2070
|
101 |
+
msgid ""
|
102 |
+
"The website is in LIVE MODE as \"Test Mode\" is not enabled. All the plugin "
|
103 |
+
"changes are visible for everyone: logged-in administrators and regular "
|
104 |
+
"visitors."
|
105 |
+
msgstr ""
|
106 |
+
|
107 |
+
#: classes/Main.php:2073
|
108 |
+
msgid ""
|
109 |
+
"NOTE: These \"Asset CleanUp: Page Speed Booster\" messages are only shown to "
|
110 |
+
"you, the HTML comment is not visible for the regular visitor."
|
111 |
+
msgstr ""
|
112 |
+
|
113 |
+
#: classes/Menu.php:46 classes/Menu.php:47 classes/Menu.php:136
|
114 |
+
#: classes/Menu.php:139
|
115 |
+
msgid "Asset CleanUp"
|
116 |
+
msgstr ""
|
117 |
+
|
118 |
+
#: classes/Menu.php:56 classes/Menu.php:57
|
119 |
+
msgid "CSS & JS Manager"
|
120 |
+
msgstr ""
|
121 |
+
|
122 |
+
#: classes/Menu.php:96 classes/Menu.php:97 templates/_top-area.php:38
|
123 |
+
msgid "Tools"
|
124 |
+
msgstr ""
|
125 |
+
|
126 |
+
#: classes/Menu.php:106 classes/Menu.php:107 templates/_top-area.php:43
|
127 |
+
msgid "License"
|
128 |
+
msgstr ""
|
129 |
+
|
130 |
+
#: classes/Menu.php:116 classes/Menu.php:117 templates/_top-area.php:48
|
131 |
+
msgid "Help"
|
132 |
+
msgstr ""
|
133 |
+
|
134 |
+
#: classes/Menu.php:126 classes/Menu.php:127 classes/Plugin.php:194
|
135 |
+
#: templates/_top-area.php:54
|
136 |
+
msgid "Go Pro"
|
137 |
+
msgstr ""
|
138 |
+
|
139 |
+
#: classes/Menu.php:143 classes/Plugin.php:186
|
140 |
+
msgid "Getting Started"
|
141 |
+
msgstr ""
|
142 |
+
|
143 |
+
#: classes/MetaBoxes.php:54
|
144 |
+
msgid "Asset CleanUp: CSS & JavaScript Manager"
|
145 |
+
msgstr ""
|
146 |
+
|
147 |
+
#: classes/MetaBoxes.php:131
|
148 |
+
msgid "Asset CleanUp: Options"
|
149 |
+
msgstr ""
|
150 |
+
|
151 |
+
#: classes/OwnAssets.php:273
|
152 |
+
msgid ""
|
153 |
+
"Make sure to properly test your website if you unload the jQuery migration "
|
154 |
+
"library."
|
155 |
+
msgstr ""
|
156 |
+
|
157 |
+
#: classes/OwnAssets.php:274
|
158 |
+
msgid ""
|
159 |
+
"In some cases, due to old jQuery code triggered from plugins or the theme, "
|
160 |
+
"unloading this migration library could cause those scripts not to function "
|
161 |
+
"anymore and break some of the front-end functionality."
|
162 |
+
msgstr ""
|
163 |
+
|
164 |
+
#: classes/OwnAssets.php:275
|
165 |
+
msgid ""
|
166 |
+
"If you are not sure about whether activating this option is right or not, it "
|
167 |
+
"is better to leave it as it is (to be loaded by default) and consult with a "
|
168 |
+
"developer."
|
169 |
+
msgstr ""
|
170 |
+
|
171 |
+
#: classes/OwnAssets.php:276 classes/OwnAssets.php:281
|
172 |
+
msgid ""
|
173 |
+
"Confirm this action to enable the unloading or cancel to leave it loaded by "
|
174 |
+
"default."
|
175 |
+
msgstr ""
|
176 |
+
|
177 |
+
#: classes/OwnAssets.php:279
|
178 |
+
msgid ""
|
179 |
+
"This is worth disabling if you are NOT using the default WordPress comment "
|
180 |
+
"system (e.g. you are using the website for business purposes, to showcase "
|
181 |
+
"your products and you are not using it as a blog where people leave comments "
|
182 |
+
"to your posts)."
|
183 |
+
msgstr ""
|
184 |
+
|
185 |
+
#: classes/OwnAssets.php:280
|
186 |
+
msgid ""
|
187 |
+
"If you are not sure about whether activating this option is right or not, it "
|
188 |
+
"is better to leave it as it is (to be loaded by default)."
|
189 |
+
msgstr ""
|
190 |
+
|
191 |
+
#: classes/OwnAssets.php:284
|
192 |
+
msgid "Are you sure you want to reset the settings to their default values?"
|
193 |
+
msgstr ""
|
194 |
+
|
195 |
+
#: classes/OwnAssets.php:285 classes/OwnAssets.php:290
|
196 |
+
msgid "This is an irreversible action."
|
197 |
+
msgstr ""
|
198 |
+
|
199 |
+
#: classes/OwnAssets.php:286
|
200 |
+
msgid "Please confirm to continue or \"Cancel\" to abort it"
|
201 |
+
msgstr ""
|
202 |
+
|
203 |
+
#: classes/OwnAssets.php:289
|
204 |
+
msgid ""
|
205 |
+
"Are you sure you want to reset everything (settings, unloads, load "
|
206 |
+
"exceptions etc.) to the same point it was when you first activated the "
|
207 |
+
"plugin?"
|
208 |
+
msgstr ""
|
209 |
+
|
210 |
+
#: classes/OwnAssets.php:291
|
211 |
+
msgid "Please confirm to continue or \"Cancel\" to abort it."
|
212 |
+
msgstr ""
|
213 |
+
|
214 |
+
#: classes/Plugin.php:63
|
215 |
+
#, php-format
|
216 |
+
msgid "Thank you for using %s"
|
217 |
+
msgstr ""
|
218 |
+
|
219 |
+
#: classes/Plugin.php:67
|
220 |
+
#, php-format
|
221 |
+
msgid ""
|
222 |
+
"If you like it, please %s<strong>rate</strong> %s%s %s on WordPress.org to "
|
223 |
+
"help me spread the word to the community."
|
224 |
+
msgstr ""
|
225 |
+
|
226 |
+
#: classes/Settings.php:162
|
227 |
+
msgid ""
|
228 |
+
"It looks like you have both \"Manage in the Dashboard?\" and \"Manage in the "
|
229 |
+
"Front-end?\" inactive. The plugin still works fine and any assets you have "
|
230 |
+
"selected for unload are not loaded. However, if you want to manage the "
|
231 |
+
"assets in any page, you need to have at least one of the view options "
|
232 |
+
"enabled."
|
233 |
+
msgstr ""
|
234 |
+
|
235 |
+
#: classes/Settings.php:172
|
236 |
+
msgid "The settings were successfully updated."
|
237 |
+
msgstr ""
|
238 |
+
|
239 |
+
#: classes/Tools.php:515
|
240 |
+
msgid "All the settings were reset to their default values."
|
241 |
+
msgstr ""
|
242 |
+
|
243 |
+
#: classes/Tools.php:517
|
244 |
+
msgid ""
|
245 |
+
"Everything was reset (including settings, individual & bulk unloads, "
|
246 |
+
"load exceptions) to the same point it was when you first activated the "
|
247 |
+
"plugin."
|
248 |
+
msgstr ""
|
249 |
+
|
250 |
+
#: classes/Tools.php:520
|
251 |
+
msgid "Any license data was also removed, as you requested."
|
252 |
+
msgstr ""
|
253 |
+
|
254 |
+
#: classes/Update.php:44
|
255 |
+
msgid ""
|
256 |
+
"The homepage's settings were updated. Please make sure the homepage's cache "
|
257 |
+
"is cleared (if you're using a caching plugin or a server-side caching "
|
258 |
+
"solution) to immediately have the changes applied for every visitor."
|
259 |
+
msgstr ""
|
260 |
+
|
261 |
+
#: classes/Update.php:49
|
262 |
+
msgid ""
|
263 |
+
"This page's settings were updated. Please make sure the page's cache is "
|
264 |
+
"cleared (if you're using a caching plugin or a server-side caching solution) "
|
265 |
+
"to immediately have the changes applied for every visitor."
|
266 |
+
msgstr ""
|
267 |
+
|
268 |
+
#: classes/Update.php:116
|
269 |
+
#, php-format
|
270 |
+
msgid ""
|
271 |
+
"The nonce expired or is not correct, thus the request was not processed. "
|
272 |
+
"%sPlease retry%s."
|
273 |
+
msgstr ""
|
274 |
+
|
275 |
+
#: classes/Update.php:120
|
276 |
+
msgid "Nonce Expired"
|
277 |
+
msgstr ""
|
278 |
+
|
279 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:9
|
280 |
+
msgid "Higher search ranking"
|
281 |
+
msgstr ""
|
282 |
+
|
283 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:10
|
284 |
+
msgid ""
|
285 |
+
"Since 2010, there has been a signal in Google search ranking algorithms: "
|
286 |
+
"site speed, which reflects how quickly a website responds to web requests."
|
287 |
+
msgstr ""
|
288 |
+
|
289 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:11
|
290 |
+
msgid ""
|
291 |
+
"Speeding up websites is important — not just to site owners, but to all "
|
292 |
+
"Internet users."
|
293 |
+
msgstr ""
|
294 |
+
|
295 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:11
|
296 |
+
msgid ""
|
297 |
+
"Faster sites create happy users and Google has seen in their internal "
|
298 |
+
"studies that when a site responds slowly, visitors spend less time there."
|
299 |
+
msgstr ""
|
300 |
+
|
301 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:11
|
302 |
+
msgid "But faster sites don't just improve user experience"
|
303 |
+
msgstr ""
|
304 |
+
|
305 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:11
|
306 |
+
msgid ""
|
307 |
+
"recent data shows that improving site speed also reduces operating costs."
|
308 |
+
msgstr ""
|
309 |
+
|
310 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:11
|
311 |
+
msgid ""
|
312 |
+
"Like Google, their users place a lot of value in speed — that's why they've "
|
313 |
+
"decided to take site speed into account in their search rankings. They use a "
|
314 |
+
"variety of sources to determine the speed of a site relative to other sites."
|
315 |
+
msgstr ""
|
316 |
+
|
317 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:12
|
318 |
+
msgid "How does Google determine page speed?"
|
319 |
+
msgstr ""
|
320 |
+
|
321 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:15
|
322 |
+
msgid "Visitor Experience"
|
323 |
+
msgstr ""
|
324 |
+
|
325 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:16
|
326 |
+
msgid ""
|
327 |
+
"For a customer (it's likely happened to you too) that wants to purchase "
|
328 |
+
"something online, it's very frustrating to land on slow loading website."
|
329 |
+
msgstr ""
|
330 |
+
|
331 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:16
|
332 |
+
msgid ""
|
333 |
+
"A blazing fast website, will keep your visitors happy, engaged, which will "
|
334 |
+
"directly influence conversions."
|
335 |
+
msgstr ""
|
336 |
+
|
337 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:16
|
338 |
+
msgid ""
|
339 |
+
"If a visitor doesn't get what he wants in a time he/she thinks it's "
|
340 |
+
"reasonable, they will probably head to another website belonging to a "
|
341 |
+
"competitor."
|
342 |
+
msgstr ""
|
343 |
+
|
344 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:16
|
345 |
+
msgid ""
|
346 |
+
"As today's users expect a fast and streamlined web experience, you're losing "
|
347 |
+
"business if you neglect this often overlooked aspect."
|
348 |
+
msgstr ""
|
349 |
+
|
350 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:19
|
351 |
+
msgid "Better Developer Experience"
|
352 |
+
msgstr ""
|
353 |
+
|
354 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:20
|
355 |
+
msgid ""
|
356 |
+
"As developers, we often go through the HTML source code of the website, "
|
357 |
+
"access the server (e.g. Apache, NGINX) logs that has the HTTP requests, and "
|
358 |
+
"have to sometimes solve code conflict problems (e.g. between plugins) due to "
|
359 |
+
"poorly written code."
|
360 |
+
msgstr ""
|
361 |
+
|
362 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:20
|
363 |
+
msgid ""
|
364 |
+
"By preventing unnecessary files to load, having less HTTP requests, and "
|
365 |
+
"cleaner HTML code, you will be able to easily go through the code (which is "
|
366 |
+
"smaller)."
|
367 |
+
msgstr ""
|
368 |
+
|
369 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:20
|
370 |
+
msgid ""
|
371 |
+
"Your log files will take less space on the server, will be easier to backup "
|
372 |
+
"and analyse, and by having less JavaScript files loading, you will be reduce "
|
373 |
+
"the changes of getting less JS errors that could interfere with the "
|
374 |
+
"functionality of your website."
|
375 |
+
msgstr ""
|
376 |
+
|
377 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:23
|
378 |
+
msgid "Higher Revenue"
|
379 |
+
msgstr ""
|
380 |
+
|
381 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:24
|
382 |
+
msgid ""
|
383 |
+
"Just about any major retailer is taking site speed as a very important "
|
384 |
+
"factor for increasing conversions."
|
385 |
+
msgstr ""
|
386 |
+
|
387 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:24
|
388 |
+
#, php-format
|
389 |
+
msgid ""
|
390 |
+
"According to Strangeloop, 57% of online customers will leave a website after "
|
391 |
+
"waiting 3 seconds for the page to load. Moreover, 80% of those people will "
|
392 |
+
"not return to that page. Some of them will tell others about their negative "
|
393 |
+
"experience. This has a direct impact on the conversion rate, revenue and "
|
394 |
+
"brand image."
|
395 |
+
msgstr ""
|
396 |
+
|
397 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:26
|
398 |
+
#, php-format
|
399 |
+
msgid ""
|
400 |
+
"%s of users say they've felt STRESS OR ANGER while using a slow website."
|
401 |
+
msgstr ""
|
402 |
+
|
403 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:27
|
404 |
+
#, php-format
|
405 |
+
msgid ""
|
406 |
+
"%s of users say that slow online transaction make them ANXIOUS about the "
|
407 |
+
"success of the transaction."
|
408 |
+
msgstr ""
|
409 |
+
|
410 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:28
|
411 |
+
#, php-format
|
412 |
+
msgid "%s of people have THROWN THEIR PHONE while using a slow mobile site."
|
413 |
+
msgstr ""
|
414 |
+
|
415 |
+
#: templates/_admin-page-getting-started-areas/_benefits-fast-pages.php:37
|
416 |
+
#, php-format
|
417 |
+
msgid "View \"%s\" Infographic"
|
418 |
+
msgstr ""
|
419 |
+
|
420 |
+
#: templates/_admin-page-getting-started-areas/_how-it-works.php:9
|
421 |
+
msgid ""
|
422 |
+
"Often, our WordPress websites are loaded with elements that are not needed "
|
423 |
+
"to load on specific pages or even everywhere."
|
424 |
+
msgstr ""
|
425 |
+
|
426 |
+
#: templates/_admin-page-getting-started-areas/_how-it-works.php:9
|
427 |
+
msgid ""
|
428 |
+
"These assets (CSS & JavaScript files) as well as inline code are adding "
|
429 |
+
"up to the total size of the page, thus taking more time for the page to load."
|
430 |
+
msgstr ""
|
431 |
+
|
432 |
+
#: templates/_admin-page-getting-started-areas/_how-it-works.php:10
|
433 |
+
msgid ""
|
434 |
+
"This could end up in a slow website that leads to page abandonment, poor "
|
435 |
+
"ranking in Google search and sometimes conflict JavaScript errors where too "
|
436 |
+
"many scripts are loading and one of them (or more) have poorly written code "
|
437 |
+
"that is not autonomous and badly interacts with other code."
|
438 |
+
msgstr ""
|
439 |
+
|
440 |
+
#: templates/_admin-page-getting-started-areas/_how-it-works.php:12
|
441 |
+
msgid "What Asset CleanUp really does?"
|
442 |
+
msgstr ""
|
443 |
+
|
444 |
+
#: templates/_admin-page-getting-started-areas/_how-it-works.php:13
|
445 |
+
#: templates/_admin-page-getting-started-areas/_how-it-works.php:33
|
446 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:16
|
447 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:176
|
448 |
+
msgid "Read more"
|
449 |
+
msgstr ""
|
450 |
+
|
451 |
+
#: templates/_admin-page-getting-started-areas/_how-it-works.php:15
|
452 |
+
msgid "Page caching solutions include"
|
453 |
+
msgstr ""
|
454 |
+
|
455 |
+
#: templates/_admin-page-getting-started-areas/_how-it-works.php:17
|
456 |
+
#, php-format
|
457 |
+
msgid ""
|
458 |
+
"The page caching improves the %sTTFB%s (time to first byte) which measures "
|
459 |
+
"the duration from the user or client making an HTTP request to the first "
|
460 |
+
"byte of the page being received by the client's browser."
|
461 |
+
msgstr ""
|
462 |
+
|
463 |
+
#: templates/_admin-page-getting-started-areas/_how-it-works.php:20
|
464 |
+
#, php-format
|
465 |
+
msgid ""
|
466 |
+
"A hosting service that has its in-built WordPress caching like %sWPEngine%s "
|
467 |
+
"or Kinsta, a web application accelerator like Varnish that can be setup the "
|
468 |
+
"server etc."
|
469 |
+
msgstr ""
|
470 |
+
|
471 |
+
#: templates/_admin-page-getting-started-areas/_how-it-works.php:27
|
472 |
+
msgid "Disclaimer"
|
473 |
+
msgstr ""
|
474 |
+
|
475 |
+
#: templates/_admin-page-getting-started-areas/_how-it-works.php:27
|
476 |
+
msgid ""
|
477 |
+
"The recommendations above are based from my own experience as a developer "
|
478 |
+
"& user and I'm happy to recommend them to whoever wants superior "
|
479 |
+
"WordPress performance."
|
480 |
+
msgstr ""
|
481 |
+
|
482 |
+
#: templates/_admin-page-getting-started-areas/_how-it-works.php:27
|
483 |
+
msgid ""
|
484 |
+
"The links are affiliate related and I might get a commission if you decide "
|
485 |
+
"to make a purchase."
|
486 |
+
msgstr ""
|
487 |
+
|
488 |
+
#: templates/_admin-page-getting-started-areas/_how-it-works.php:32
|
489 |
+
msgid "Not sure how to configure it?"
|
490 |
+
msgstr ""
|
491 |
+
|
492 |
+
#: templates/_admin-page-getting-started-areas/_how-it-works.php:33
|
493 |
+
msgid "No problem!"
|
494 |
+
msgstr ""
|
495 |
+
|
496 |
+
#: templates/_admin-page-getting-started-areas/_how-it-works.php:33
|
497 |
+
msgid ""
|
498 |
+
"You can enable \"Test Mode\" and any changes you make, will only be visible "
|
499 |
+
"for you (the logged-in administrator), while the regular visitors will see "
|
500 |
+
"the pages as if the plugin is not active."
|
501 |
+
msgstr ""
|
502 |
+
|
503 |
+
#: templates/_admin-page-getting-started-areas/_how-it-works.php:33
|
504 |
+
msgid ""
|
505 |
+
"Once all is good, you can disable \"Test Mode\" (thus applying the settings "
|
506 |
+
"to everyone), clear the page caching (if using a plugin or a server-side "
|
507 |
+
"solution such as Varnish) and check out the page speed score."
|
508 |
+
msgstr ""
|
509 |
+
|
510 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:24
|
511 |
+
msgid "Yearly Price"
|
512 |
+
msgstr ""
|
513 |
+
|
514 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:29
|
515 |
+
msgid ""
|
516 |
+
"Manage CSS & JavaScript files on Homepage, Posts, Pages & Custom "
|
517 |
+
"Post Types (e.g. WooCommerce product pages, Easy Digital Downloads download "
|
518 |
+
"items)"
|
519 |
+
msgstr ""
|
520 |
+
|
521 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:34
|
522 |
+
msgid ""
|
523 |
+
"Bulk Unloads: Everywhere (Site-Wide), On Specific Pages & Post Types, "
|
524 |
+
"Add load exceptions"
|
525 |
+
msgstr ""
|
526 |
+
|
527 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:39
|
528 |
+
msgid ""
|
529 |
+
"Manage the CSS & JavaScript files within the Dashboard (default) and "
|
530 |
+
"Front-end view (bottom of the page) if chosen"
|
531 |
+
msgstr ""
|
532 |
+
|
533 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:44
|
534 |
+
msgid ""
|
535 |
+
"Enable \"Test Mode\" to only apply the plugin's changes for the logged-in "
|
536 |
+
"administrator for debugging purposes"
|
537 |
+
msgstr ""
|
538 |
+
|
539 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:49
|
540 |
+
msgid ""
|
541 |
+
"Minify remaining loaded CSS & JavaScript files (with option to add "
|
542 |
+
"exceptions)"
|
543 |
+
msgstr ""
|
544 |
+
|
545 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:54
|
546 |
+
msgid ""
|
547 |
+
"Combine remaining loaded CSS & JavaScript files into fewer files from "
|
548 |
+
"each <code><HEAD></code> and <code><BODY></code> location (with "
|
549 |
+
"option to add exceptions)"
|
550 |
+
msgstr ""
|
551 |
+
|
552 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:59
|
553 |
+
#, php-format
|
554 |
+
msgid ""
|
555 |
+
"Remove unused elements from the <code><HEAD></code> and <code><"
|
556 |
+
"BODY></code> including the following link tags: %s."
|
557 |
+
msgstr ""
|
558 |
+
|
559 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:59
|
560 |
+
msgid ""
|
561 |
+
"Valid HTML comments are also stripped (exceptions can be added) while "
|
562 |
+
"conditional Internet Explorer comments are preserved."
|
563 |
+
msgstr ""
|
564 |
+
|
565 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:65
|
566 |
+
msgid ""
|
567 |
+
"Site-Wide Unload For Common Elements that are often unused such as: "
|
568 |
+
"WordPress Emojis, jQuery Migrate, Comment Reply (if not using WP as a blog)"
|
569 |
+
msgstr ""
|
570 |
+
|
571 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:71
|
572 |
+
#: templates/_admin-page-settings-plugin-areas/_disable-xml-rpc-protocol.php:13
|
573 |
+
msgid "Disable XML-RPC Protocol Support partially or completely"
|
574 |
+
msgstr ""
|
575 |
+
|
576 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:77
|
577 |
+
msgid ""
|
578 |
+
"Manage CSS & JavaScript files on Categories, Tags, Custom Taxonomy "
|
579 |
+
"pages, Date & Author Archive Pages, Search Results & 404 Not Found "
|
580 |
+
"pages"
|
581 |
+
msgstr ""
|
582 |
+
|
583 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:82
|
584 |
+
msgid ""
|
585 |
+
"Move CSS & JavaScript files from <code><HEAD></code> to <code><"
|
586 |
+
"BODY></code> (to reduce render-blocking) or vice-versa (for very early "
|
587 |
+
"triggering)"
|
588 |
+
msgstr ""
|
589 |
+
|
590 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:87
|
591 |
+
msgid "Apply \"async\" and \"defer\" attributes to loaded JavaScript files"
|
592 |
+
msgstr ""
|
593 |
+
|
594 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:92
|
595 |
+
msgid ""
|
596 |
+
"Show the file sizes for each loaded CSS & JavaScript file including "
|
597 |
+
"external ones"
|
598 |
+
msgstr ""
|
599 |
+
|
600 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:97
|
601 |
+
msgid "Priority Customer Support"
|
602 |
+
msgstr ""
|
603 |
+
|
604 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:104
|
605 |
+
msgid "Upgrade to Pro to unlock all benefits"
|
606 |
+
msgstr ""
|
607 |
+
|
608 |
+
#: templates/_admin-page-getting-started-areas/_lite-vs-pro.php:107
|
609 |
+
msgid "I have some questions"
|
610 |
+
msgstr ""
|
611 |
+
|
612 |
+
#: templates/_admin-page-getting-started-areas/_start-optimization.php:11
|
613 |
+
msgid "Pages Info"
|
614 |
+
msgstr ""
|
615 |
+
|
616 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:10
|
617 |
+
#: templates/admin-page-child-pages-info.php:10
|
618 |
+
#: templates/admin-page-child-pages-info.php:11
|
619 |
+
msgid "Available for Pro users"
|
620 |
+
msgstr ""
|
621 |
+
|
622 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:10
|
623 |
+
#: templates/admin-page-child-pages-info.php:10
|
624 |
+
#: templates/admin-page-child-pages-info.php:11
|
625 |
+
msgid "Click to upgrade!"
|
626 |
+
msgstr ""
|
627 |
+
|
628 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:16
|
629 |
+
msgid "Everywhere"
|
630 |
+
msgstr ""
|
631 |
+
|
632 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:37
|
633 |
+
msgid ""
|
634 |
+
"Select the page or post type (including custom ones) for which you want to "
|
635 |
+
"see the unloaded scripts & styles"
|
636 |
+
msgstr ""
|
637 |
+
|
638 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:69
|
639 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:154
|
640 |
+
msgid "Styles"
|
641 |
+
msgstr ""
|
642 |
+
|
643 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:76
|
644 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:109
|
645 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:161
|
646 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:194
|
647 |
+
msgid "Actions"
|
648 |
+
msgstr ""
|
649 |
+
|
650 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:97
|
651 |
+
msgid "There are no site-wide unloaded styles."
|
652 |
+
msgstr ""
|
653 |
+
|
654 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:102
|
655 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:187
|
656 |
+
msgid "Scripts"
|
657 |
+
msgstr ""
|
658 |
+
|
659 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:120
|
660 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:172
|
661 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:205
|
662 |
+
msgid "Remove rule"
|
663 |
+
msgstr ""
|
664 |
+
|
665 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:130
|
666 |
+
msgid "There are no site-wide unloaded scripts."
|
667 |
+
msgstr ""
|
668 |
+
|
669 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:251
|
670 |
+
#: templates/admin-page-child-settings-homepage.php:79
|
671 |
+
msgid "Update"
|
672 |
+
msgstr ""
|
673 |
+
|
674 |
+
#: templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php:255
|
675 |
+
msgid ""
|
676 |
+
"Note: As there are no unloaded assets (scripts & styles) to be managed, "
|
677 |
+
"the button is disabled."
|
678 |
+
msgstr ""
|
679 |
+
|
680 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:13
|
681 |
+
msgid "Combine loaded CSS & JavaScript files into fewer files"
|
682 |
+
msgstr ""
|
683 |
+
|
684 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:16
|
685 |
+
msgid "NOTE"
|
686 |
+
msgstr ""
|
687 |
+
|
688 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:16
|
689 |
+
msgid "Concatenating assets is no longer a recommended practice in HTTP/2"
|
690 |
+
msgstr ""
|
691 |
+
|
692 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:16
|
693 |
+
msgid "Verify if your server has HTTP/2 support"
|
694 |
+
msgstr ""
|
695 |
+
|
696 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:22
|
697 |
+
msgid "Combine loaded CSS (Stylesheets) into one file"
|
698 |
+
msgstr ""
|
699 |
+
|
700 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:23
|
701 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:82
|
702 |
+
msgid "Helps reducing the number of HTTP Requests even further"
|
703 |
+
msgstr ""
|
704 |
+
|
705 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:45
|
706 |
+
msgid ""
|
707 |
+
"Apply combination only for logged-in administrator (for debugging purposes)"
|
708 |
+
msgstr ""
|
709 |
+
|
710 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:50
|
711 |
+
msgid "Do not combine the CSS files matching the patterns below"
|
712 |
+
msgstr ""
|
713 |
+
|
714 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:50
|
715 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:104
|
716 |
+
msgid "one per line"
|
717 |
+
msgstr ""
|
718 |
+
|
719 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:81
|
720 |
+
msgid "Combine loaded JS (JavaScript) into fewer files"
|
721 |
+
msgstr ""
|
722 |
+
|
723 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:104
|
724 |
+
msgid "Apply combination only for logged-in administrator"
|
725 |
+
msgstr ""
|
726 |
+
|
727 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:104
|
728 |
+
msgid "for debugging purposes"
|
729 |
+
msgstr ""
|
730 |
+
|
731 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:122
|
732 |
+
msgid ""
|
733 |
+
"Do not combine the JavaScript files matching the patterns below (one per "
|
734 |
+
"line, see pattern examples below)"
|
735 |
+
msgstr ""
|
736 |
+
|
737 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:130
|
738 |
+
msgid ""
|
739 |
+
"Pattern Examples (you don't have to add the full URL, as it's recommended to "
|
740 |
+
"use relative paths)"
|
741 |
+
msgstr ""
|
742 |
+
|
743 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:176
|
744 |
+
msgid ""
|
745 |
+
"This results in as less JS combination groups as possible (this combines all "
|
746 |
+
"JS files into 2/3 files, keeping their HEAD and BODY locations and most of "
|
747 |
+
"the inline script tags before them for maximum compatibility)"
|
748 |
+
msgstr ""
|
749 |
+
|
750 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:212
|
751 |
+
msgid "How are the JavaScript files combined?"
|
752 |
+
msgstr ""
|
753 |
+
|
754 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:213
|
755 |
+
msgid ""
|
756 |
+
"The plugin scans the remaining JavaScript files (left after cleaning up the "
|
757 |
+
"unnecessary ones) from the <code><head></code> and <code><body></"
|
758 |
+
"code> locations and combines them into one file per each location."
|
759 |
+
msgstr ""
|
760 |
+
|
761 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:214
|
762 |
+
msgid ""
|
763 |
+
"Any inline JavaScript code associated with the combined scripts, will not be "
|
764 |
+
"altered or moved in any way."
|
765 |
+
msgstr ""
|
766 |
+
|
767 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:215
|
768 |
+
#: templates/_admin-page-settings-plugin-areas/_test-mode.php:37
|
769 |
+
msgid "Example"
|
770 |
+
msgstr ""
|
771 |
+
|
772 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:215
|
773 |
+
msgid ""
|
774 |
+
"If you have 5 JS files (including jQuery library) loading in the <code><"
|
775 |
+
"head></code> location and 7 JS files loading in <code><body></code> "
|
776 |
+
"location, you will end up with a total of 3 JS files: jQuery library & "
|
777 |
+
"jQuery Migrate (they are not combined together with other JS files for "
|
778 |
+
"maximum performance) in 1 file and the 2 JS files for HEAD and BODY, "
|
779 |
+
"respectively."
|
780 |
+
msgstr ""
|
781 |
+
|
782 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:226
|
783 |
+
msgid "Combining CSS & JavaScript files in HTTP/2 protocol"
|
784 |
+
msgstr ""
|
785 |
+
|
786 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:227
|
787 |
+
msgid ""
|
788 |
+
"While it's still a good idea to combine assets into fewer (or only one) "
|
789 |
+
"files in HTTP/1 (since you are restricted to the number of open "
|
790 |
+
"connections), doing the same in HTTP/2 is no longer a performance "
|
791 |
+
"optimization due to the ability to transfer multiple small files "
|
792 |
+
"simultaneously without much overhead."
|
793 |
+
msgstr ""
|
794 |
+
|
795 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:231
|
796 |
+
msgid "In HTTP/2 some of the issues that were addressed are"
|
797 |
+
msgstr ""
|
798 |
+
|
799 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:234
|
800 |
+
msgid "allows concurrent requests across a single TCP connection"
|
801 |
+
msgstr ""
|
802 |
+
|
803 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:235
|
804 |
+
msgid ""
|
805 |
+
"whereby a server can push vital resources to the browser before being asked "
|
806 |
+
"for them."
|
807 |
+
msgstr ""
|
808 |
+
|
809 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:240
|
810 |
+
msgid ""
|
811 |
+
"Since HTTP requests are loaded concurrently in HTTP/2, it's better to only "
|
812 |
+
"serve the files that your visitors need and don't worry much about "
|
813 |
+
"concatenation."
|
814 |
+
msgstr ""
|
815 |
+
|
816 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:241
|
817 |
+
msgid ""
|
818 |
+
"Note that page speed testing tools such as PageSpeed Insights, YSlow, "
|
819 |
+
"Pingdom Tools or GTMetrix still recommend combining CSS/JS files because "
|
820 |
+
"they haven't updated their recommendations based on HTTP/1 or HTTP/2 "
|
821 |
+
"protocols so you should take into account the actual load time, not the "
|
822 |
+
"performance grade."
|
823 |
+
msgstr ""
|
824 |
+
|
825 |
+
#: templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php:245
|
826 |
+
msgid ""
|
827 |
+
"If you do decide to move on with the concatenation (which at least would "
|
828 |
+
"improve the GTMetrix performance grade from a cosmetic point of view), "
|
829 |
+
"please remember to <strong>test thoroughly</strong> the pages that have the "
|
830 |
+
"assets combined (pay attention to any JavaScript errors in the browser's "
|
831 |
+
"console which is accessed via right click & \"Inspect\") as, in rare "
|
832 |
+
"cases, due to the order in which the scripts were loaded and the way their "
|
833 |
+
"code was written, it could break some functionality."
|
834 |
+
msgstr ""
|
835 |
+
|
836 |
+
#: templates/_admin-page-settings-plugin-areas/_common-files-unload.php:13
|
837 |
+
msgid "Site-Wide Unload For Common CSS & JS Files"
|
838 |
+
msgstr ""
|
839 |
+
|
840 |
+
#: templates/_admin-page-settings-plugin-areas/_common-files-unload.php:14
|
841 |
+
msgid ""
|
842 |
+
"This area allows you to quickly add the rule \"Unload Site-wide\" for the "
|
843 |
+
"scripts below, which are often used in WordPress environments."
|
844 |
+
msgstr ""
|
845 |
+
|
846 |
+
#: templates/_admin-page-settings-plugin-areas/_common-files-unload.php:18
|
847 |
+
#: templates/_admin-page-settings-plugin-areas/_common-files-unload.php:36
|
848 |
+
#: templates/_admin-page-settings-plugin-areas/_common-files-unload.php:52
|
849 |
+
#, php-format
|
850 |
+
msgid "Disable %s Site-Wide"
|
851 |
+
msgstr ""
|
852 |
+
|
853 |
+
#: templates/_admin-page-settings-plugin-areas/_common-files-unload.php:19
|
854 |
+
#, php-format
|
855 |
+
msgid ""
|
856 |
+
"It will fallback to the default browser's Emojis and not fetch the ones from "
|
857 |
+
"%s"
|
858 |
+
msgstr ""
|
859 |
+
|
860 |
+
#: templates/_admin-page-settings-plugin-areas/_common-files-unload.php:29
|
861 |
+
#: templates/_admin-page-settings-plugin-areas/_common-files-unload.php:45
|
862 |
+
#: templates/_admin-page-settings-plugin-areas/_common-files-unload.php:61
|
863 |
+
#, php-format
|
864 |
+
msgid "This will unload %s"
|
865 |
+
msgstr ""
|
866 |
+
|
867 |
+
#: templates/_admin-page-settings-plugin-areas/_common-files-unload.php:30
|
868 |
+
msgid ""
|
869 |
+
"As of WordPress 4.2, a new feature was introduced that allows you to use the "
|
870 |
+
"new Emojis."
|
871 |
+
msgstr ""
|
872 |
+
|
873 |
+
#: templates/_admin-page-settings-plugin-areas/_common-files-unload.php:30
|
874 |
+
#, php-format
|
875 |
+
msgid ""
|
876 |
+
"While on some WordPress setups is useful, in many situations (especially "
|
877 |
+
"when you are not using WordPress as a blog), you just don’t need them and "
|
878 |
+
"the file %s is loaded along with extra inline JavaScript code which add up "
|
879 |
+
"to the number of loaded HTTP requests."
|
880 |
+
msgstr ""
|
881 |
+
|
882 |
+
#: templates/_admin-page-settings-plugin-areas/_common-files-unload.php:46
|
883 |
+
msgid ""
|
884 |
+
"This is a JavaScript library that allows older jQuery code (up to version "
|
885 |
+
"jQuery 1.9) to run on the latest version of jQuery avoiding incompatibility "
|
886 |
+
"problems. Unless your website is using an old theme or has a jQuery plugin "
|
887 |
+
"that was written a long time ago, this file is likely not needed to load. "
|
888 |
+
"Consider disabling it to improve page loading time. Make sure to properly "
|
889 |
+
"test the website."
|
890 |
+
msgstr ""
|
891 |
+
|
892 |
+
#: templates/_admin-page-settings-plugin-areas/_common-files-unload.php:52
|
893 |
+
#: templates/meta-box-loaded-assets/_asset-style-single-row.php:24
|
894 |
+
msgid ""
|
895 |
+
"Not sure if needed or not? In this case, it's better to leave it loaded to "
|
896 |
+
"avoid breaking the website."
|
897 |
+
msgstr ""
|
898 |
+
|
899 |
+
#: templates/_admin-page-settings-plugin-areas/_common-files-unload.php:62
|
900 |
+
msgid ""
|
901 |
+
"This is safe to unload if you're not using WordPress as a blog, do not want "
|
902 |
+
"visitors to leave comments or you've replaced the default WordPress comments "
|
903 |
+
"with a comment platform such as Disqus or Facebook."
|
904 |
+
msgstr ""
|
905 |
+
|
906 |
+
#: templates/_admin-page-settings-plugin-areas/_html-source-cleanup.php:13
|
907 |
+
msgid "Remove unused elements from the <head> section"
|
908 |
+
msgstr ""
|
909 |
+
|
910 |
+
#: templates/_admin-page-settings-plugin-areas/_html-source-cleanup.php:176
|
911 |
+
msgid "Remove extra elements from the generated page source"
|
912 |
+
msgstr ""
|
913 |
+
|
914 |
+
#: templates/_admin-page-settings-plugin-areas/_minify-loaded-files.php:13
|
915 |
+
msgid "Minify loaded CSS & JavaScript files to reduce total page size"
|
916 |
+
msgstr ""
|
917 |
+
|
918 |
+
#: templates/_admin-page-settings-plugin-areas/_minify-loaded-files.php:17
|
919 |
+
msgid "CSS Files Minification"
|
920 |
+
msgstr ""
|
921 |
+
|
922 |
+
#: templates/_admin-page-settings-plugin-areas/_minify-loaded-files.php:18
|
923 |
+
#: templates/_admin-page-settings-plugin-areas/_minify-loaded-files.php:50
|
924 |
+
msgid "Helps decrease the total page size even further"
|
925 |
+
msgstr ""
|
926 |
+
|
927 |
+
#: templates/_admin-page-settings-plugin-areas/_minify-loaded-files.php:28
|
928 |
+
msgid ""
|
929 |
+
"This will take the remaining enqueued CSS files, minify them and load them "
|
930 |
+
"from the cache."
|
931 |
+
msgstr ""
|
932 |
+
|
933 |
+
#: templates/_admin-page-settings-plugin-areas/_minify-loaded-files.php:35
|
934 |
+
msgid "Do not minify the CSS files matching the patterns below (one per line)"
|
935 |
+
msgstr ""
|
936 |
+
|
937 |
+
#: templates/_admin-page-settings-plugin-areas/_minify-loaded-files.php:49
|
938 |
+
msgid "JavaScript Files Minification"
|
939 |
+
msgstr ""
|
940 |
+
|
941 |
+
#: templates/_admin-page-settings-plugin-areas/_minify-loaded-files.php:59
|
942 |
+
msgid ""
|
943 |
+
"This will take the remaining enqueued JavaScript files, minify them and load "
|
944 |
+
"them from the cache."
|
945 |
+
msgstr ""
|
946 |
+
|
947 |
+
#: templates/_admin-page-settings-plugin-areas/_minify-loaded-files.php:66
|
948 |
+
msgid ""
|
949 |
+
"Do not minify the JavaScript files matching the patterns below (one per line)"
|
950 |
+
msgstr ""
|
951 |
+
|
952 |
+
#: templates/_admin-page-settings-plugin-areas/_minify-loaded-files.php:83
|
953 |
+
msgid ""
|
954 |
+
"For maximum performance and to reduce server resources, the following CSS/JS "
|
955 |
+
"files will not be minified, but kept as they are, since they are already "
|
956 |
+
"optimised and minified by the WordPress core contributors & developers"
|
957 |
+
msgstr ""
|
958 |
+
|
959 |
+
#: templates/_admin-page-settings-plugin-areas/_minify-loaded-files.php:87
|
960 |
+
#, php-format
|
961 |
+
msgid "jQuery library from %s"
|
962 |
+
msgstr ""
|
963 |
+
|
964 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:13
|
965 |
+
msgid "Click here to unlock it"
|
966 |
+
msgstr ""
|
967 |
+
|
968 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:17
|
969 |
+
msgid "Plugin Usage Preferences"
|
970 |
+
msgstr ""
|
971 |
+
|
972 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:18
|
973 |
+
msgid ""
|
974 |
+
"Choose how the assets are retrieved and whether you would like to see them "
|
975 |
+
"within the Dashboard / Front-end view"
|
976 |
+
msgstr ""
|
977 |
+
|
978 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:18
|
979 |
+
msgid ""
|
980 |
+
"Decide how the management list of CSS & JavaScript files will show up "
|
981 |
+
"and get sorted, depending on your preferences."
|
982 |
+
msgstr ""
|
983 |
+
|
984 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:22
|
985 |
+
msgid "Manage in the Dashboard"
|
986 |
+
msgstr ""
|
987 |
+
|
988 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:32
|
989 |
+
msgid ""
|
990 |
+
"This will show the list of assets in a meta box on edit the post (any "
|
991 |
+
"type) / page within the Dashboard"
|
992 |
+
msgstr ""
|
993 |
+
|
994 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:33
|
995 |
+
msgid ""
|
996 |
+
"The assets would be retrieved via AJAX call(s) that will fetch the post/page "
|
997 |
+
"URL and extract all the styles & scripts that are enqueued."
|
998 |
+
msgstr ""
|
999 |
+
|
1000 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:34
|
1001 |
+
msgid ""
|
1002 |
+
"Note that sometimes the assets list is not loading within the Dashboard. "
|
1003 |
+
"That could be because \"mod_security\" Apache module is enabled or some "
|
1004 |
+
"security plugins are blocking the AJAX request. If this option doesn't work, "
|
1005 |
+
"consider managing the list in the front-end view."
|
1006 |
+
msgstr ""
|
1007 |
+
|
1008 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:41
|
1009 |
+
msgid "Select a retrieval way"
|
1010 |
+
msgstr ""
|
1011 |
+
|
1012 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:49
|
1013 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:69
|
1014 |
+
msgid "Direct"
|
1015 |
+
msgstr ""
|
1016 |
+
|
1017 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:69
|
1018 |
+
msgid ""
|
1019 |
+
"This one makes an AJAX call directly on the URL for which the assets are "
|
1020 |
+
"retrieved, then an extra WordPress AJAX call to process the list. Sometimes, "
|
1021 |
+
"due to some external factors (e.g. mod_security module from Apache, security "
|
1022 |
+
"plugin or the fact that non-http is forced for the front-end view and the "
|
1023 |
+
"AJAX request will be blocked), this might not work and another choice method "
|
1024 |
+
"might work better. This used to be the only option available, prior to "
|
1025 |
+
"version 1.2.4.4 and is set as default."
|
1026 |
+
msgstr ""
|
1027 |
+
|
1028 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:74
|
1029 |
+
msgid ""
|
1030 |
+
"It makes a WordPress AJAX call and gets the HTML source code through "
|
1031 |
+
"wp_remote_post(). This one is less likely to be blocked as it is made on the "
|
1032 |
+
"same protocol (no HTTP request from HTTPS). However, in some cases (e.g. a "
|
1033 |
+
"different load balancer configuration), this might not work when the call to "
|
1034 |
+
"fetch a domain's URL (your website) is actually made from the same domain."
|
1035 |
+
msgstr ""
|
1036 |
+
|
1037 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:80
|
1038 |
+
msgid ""
|
1039 |
+
"Whether you have this option enabled or not, the post/page plugin's meta "
|
1040 |
+
"boxes will always be generated. If you wish to hide them completely for any "
|
1041 |
+
"reason (e.g. you rarely manage the assets and you want to reduce cluttering "
|
1042 |
+
"in the edit post/page area, especially if you do lots of edits), you can do "
|
1043 |
+
"so using the options below (<em>don't forget to uncheck them whenever you "
|
1044 |
+
"wish to manage the CSS/JS assets again</em>)"
|
1045 |
+
msgstr ""
|
1046 |
+
|
1047 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:90
|
1048 |
+
msgid "Manage in the Front-end"
|
1049 |
+
msgstr ""
|
1050 |
+
|
1051 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:115
|
1052 |
+
msgid "Assets List Layout"
|
1053 |
+
msgstr ""
|
1054 |
+
|
1055 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:121
|
1056 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:122
|
1057 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:124
|
1058 |
+
msgid "All Styles & Scripts"
|
1059 |
+
msgstr ""
|
1060 |
+
|
1061 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:121
|
1062 |
+
msgid "One list grouped by location (themes, plugins, core & external)"
|
1063 |
+
msgstr ""
|
1064 |
+
|
1065 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:122
|
1066 |
+
msgid "One list grouped by tag position: <head> & <body>"
|
1067 |
+
msgstr ""
|
1068 |
+
|
1069 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:123
|
1070 |
+
msgid "All Styles"
|
1071 |
+
msgstr ""
|
1072 |
+
|
1073 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:123
|
1074 |
+
msgid "All Scripts"
|
1075 |
+
msgstr ""
|
1076 |
+
|
1077 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:123
|
1078 |
+
msgid "Two lists"
|
1079 |
+
msgstr ""
|
1080 |
+
|
1081 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:124
|
1082 |
+
msgid "One list"
|
1083 |
+
msgstr ""
|
1084 |
+
|
1085 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:124
|
1086 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:146
|
1087 |
+
msgid "Pro Version"
|
1088 |
+
msgstr ""
|
1089 |
+
|
1090 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:129
|
1091 |
+
msgid ""
|
1092 |
+
"When list is grouped by location, keep the assets from each of the plugins "
|
1093 |
+
"in the following state"
|
1094 |
+
msgstr ""
|
1095 |
+
|
1096 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:137
|
1097 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:170
|
1098 |
+
msgid "Expanded"
|
1099 |
+
msgstr ""
|
1100 |
+
|
1101 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:137
|
1102 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:170
|
1103 |
+
msgid "Default"
|
1104 |
+
msgstr ""
|
1105 |
+
|
1106 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:146
|
1107 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:179
|
1108 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:209
|
1109 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:217
|
1110 |
+
msgid "Contracted"
|
1111 |
+
msgstr ""
|
1112 |
+
|
1113 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:155
|
1114 |
+
msgid ""
|
1115 |
+
"These are various ways in which the list of assets that you will manage will "
|
1116 |
+
"show up. Depending on your preference, you might want to see the list of "
|
1117 |
+
"styles & scripts first, or all together sorted in alphabetical order etc."
|
1118 |
+
msgstr ""
|
1119 |
+
|
1120 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:155
|
1121 |
+
msgid "Options that are disabled are available in the Pro version."
|
1122 |
+
msgstr ""
|
1123 |
+
|
1124 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:160
|
1125 |
+
msgid "On Assets List Layout Load, keep \"Styles & Scripts\" area:"
|
1126 |
+
msgstr ""
|
1127 |
+
|
1128 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:185
|
1129 |
+
msgid ""
|
1130 |
+
"Sometimes, when you have plenty of elements in the edit page, you might want "
|
1131 |
+
"to contract the list of assets when you're viewing the page as it will save "
|
1132 |
+
"space. This can be a good practice, especially when you finished optimising "
|
1133 |
+
"the pages and you don't want to keep seeing the long list of files every "
|
1134 |
+
"time you edit a page."
|
1135 |
+
msgstr ""
|
1136 |
+
|
1137 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:190
|
1138 |
+
msgid ""
|
1139 |
+
"On Assets List Layout Load, keep \"Inline code associated with this handle\" "
|
1140 |
+
"area"
|
1141 |
+
msgstr ""
|
1142 |
+
|
1143 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:200
|
1144 |
+
msgid "Expanded (Default)"
|
1145 |
+
msgstr ""
|
1146 |
+
|
1147 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:216
|
1148 |
+
#, php-format
|
1149 |
+
msgid ""
|
1150 |
+
"Some assets (CSS & JavaScript) have inline code associate with them and "
|
1151 |
+
"often, they are quite large, making the asset row bigger and requiring you "
|
1152 |
+
"to scroll more until you reach a specific area. By setting it to \"%s\", it "
|
1153 |
+
"will hide all the inline code by default and you can view it by clicking on "
|
1154 |
+
"the toggle link inside the asset row."
|
1155 |
+
msgstr ""
|
1156 |
+
|
1157 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:223
|
1158 |
+
msgid "Input Fields Style"
|
1159 |
+
msgstr ""
|
1160 |
+
|
1161 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:224
|
1162 |
+
msgid "How would you like to view the checkboxes / selectors?"
|
1163 |
+
msgstr ""
|
1164 |
+
|
1165 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:225
|
1166 |
+
#: templates/_admin-page-settings-plugin-areas/_test-mode.php:20
|
1167 |
+
msgid "Read More"
|
1168 |
+
msgstr ""
|
1169 |
+
|
1170 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:235
|
1171 |
+
msgid "Enhanced iPhone Style (Default)"
|
1172 |
+
msgstr ""
|
1173 |
+
|
1174 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:244
|
1175 |
+
msgid "Standard"
|
1176 |
+
msgstr ""
|
1177 |
+
|
1178 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:250
|
1179 |
+
msgid ""
|
1180 |
+
"In case you prefer standard HTML checkboxes instead of the enhanced CSS3 "
|
1181 |
+
"iPhone style ones (on & off) or you need a simple HTML layout in case "
|
1182 |
+
"you're using a screen reader software (e.g. for people with disabilities) "
|
1183 |
+
"which requires standard/clean HTML code, then you can choose \"Standard\" as "
|
1184 |
+
"an option."
|
1185 |
+
msgstr ""
|
1186 |
+
|
1187 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:255
|
1188 |
+
msgid "Hide WordPress Core Files From The Assets List?"
|
1189 |
+
msgstr ""
|
1190 |
+
|
1191 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:265
|
1192 |
+
#, php-format
|
1193 |
+
msgid "WordPress Core Files have handles such as %s"
|
1194 |
+
msgstr ""
|
1195 |
+
|
1196 |
+
#: templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php:266
|
1197 |
+
msgid ""
|
1198 |
+
"They should only be unloaded by experienced developers when they are "
|
1199 |
+
"convinced that are not needed in particular situations. It's better to leave "
|
1200 |
+
"them loaded if you have any doubts whether you need them or not. By hiding "
|
1201 |
+
"them in the assets management list, you will see a smaller assets list "
|
1202 |
+
"(easier to manage) and you will avoid updating by mistake any option "
|
1203 |
+
"(unload, async, defer) related to any core file."
|
1204 |
+
msgstr ""
|
1205 |
+
|
1206 |
+
#: templates/_admin-page-settings-plugin-areas/_strip-the-fat.php:13
|
1207 |
+
msgid ""
|
1208 |
+
"Prevent useless and often large CSS & JS files increasing your total "
|
1209 |
+
"page size"
|
1210 |
+
msgstr ""
|
1211 |
+
|
1212 |
+
#: templates/_admin-page-settings-plugin-areas/_strip-the-fat.php:24
|
1213 |
+
msgid ""
|
1214 |
+
"Is a decrease in the total page size or a higher page speed score guaranteed?"
|
1215 |
+
msgstr ""
|
1216 |
+
|
1217 |
+
#: templates/_admin-page-settings-plugin-areas/_strip-the-fat.php:28
|
1218 |
+
msgid "Can this plugin make the pages load slower?"
|
1219 |
+
msgstr ""
|
1220 |
+
|
1221 |
+
#: templates/_admin-page-settings-plugin-areas/_strip-the-fat.php:39
|
1222 |
+
#, php-format
|
1223 |
+
msgid ""
|
1224 |
+
"I understand how the plugin works and I will make sure to make proper tests "
|
1225 |
+
"(via \"%s\" if necessary) after the changes I'm making."
|
1226 |
+
msgstr ""
|
1227 |
+
|
1228 |
+
#: templates/_admin-page-settings-plugin-areas/_strip-the-fat.php:39
|
1229 |
+
#: templates/_admin-page-settings-plugin-areas/_test-mode.php:13
|
1230 |
+
#: templates/admin-page-settings-plugin.php:28
|
1231 |
+
msgid "Test Mode"
|
1232 |
+
msgstr ""
|
1233 |
+
|
1234 |
+
#: templates/_admin-page-settings-plugin-areas/_strip-the-fat.php:39
|
1235 |
+
msgid ""
|
1236 |
+
"I'm aware that unloading the wrong CSS/JS files can break the layout and "
|
1237 |
+
"front-end functionality of the pages I'm optimising."
|
1238 |
+
msgstr ""
|
1239 |
+
|
1240 |
+
#: templates/_admin-page-settings-plugin-areas/_test-mode.php:14
|
1241 |
+
#, php-format
|
1242 |
+
msgid ""
|
1243 |
+
"Have your visitors load the website without any %s settings while you're "
|
1244 |
+
"going through the plugin setup and unloading the useless CSS & "
|
1245 |
+
"JavaScript!"
|
1246 |
+
msgstr ""
|
1247 |
+
|
1248 |
+
#: templates/_admin-page-settings-plugin-areas/_test-mode.php:18
|
1249 |
+
msgid "Enable Test Mode?"
|
1250 |
+
msgstr ""
|
1251 |
+
|
1252 |
+
#: templates/_admin-page-settings-plugin-areas/_test-mode.php:19
|
1253 |
+
msgid "Apply plugin's changes for the admin only"
|
1254 |
+
msgstr ""
|
1255 |
+
|
1256 |
+
#: templates/_admin-page-settings-plugin-areas/_test-mode.php:30
|
1257 |
+
msgid ""
|
1258 |
+
"This is great for debugging when you're going through trial and error while "
|
1259 |
+
"removing unneeded CSS & JavaScript on your website."
|
1260 |
+
msgstr ""
|
1261 |
+
|
1262 |
+
#: templates/_admin-page-settings-plugin-areas/_test-mode.php:33
|
1263 |
+
msgid ""
|
1264 |
+
"Your visitors will load the website with all the settings & assets "
|
1265 |
+
"loaded (just like it was before you activated the plugin). Only YOU (the "
|
1266 |
+
"logged-in administrator) will see the plugin's settings & unload rules "
|
1267 |
+
"applied."
|
1268 |
+
msgstr ""
|
1269 |
+
|
1270 |
+
#: templates/_admin-page-settings-plugin-areas/_test-mode.php:34
|
1271 |
+
msgid ""
|
1272 |
+
"To view the website as a guest visitor, just make sure you access it from a "
|
1273 |
+
"browser where you're not logged in, or you can test it in Incognito "
|
1274 |
+
"(Private) mode."
|
1275 |
+
msgstr ""
|
1276 |
+
|
1277 |
+
#: templates/_admin-page-settings-plugin-areas/_test-mode.php:37
|
1278 |
+
msgid ""
|
1279 |
+
"For instance, you have an eCommerce website (e.g. WooCommerce, Easy Digital "
|
1280 |
+
"Downloads), and you're worried that unloading one wrong asset could break "
|
1281 |
+
"the \"add to cart\" functionality or the layout of the product page. You can "
|
1282 |
+
"enable this option, do the unloading for the CSS & JavaScript files you "
|
1283 |
+
"believe are not needed on certain pages, test to check if everything is "
|
1284 |
+
"alright, and then disable test mode to enable the unloading for your "
|
1285 |
+
"visitors too (not only the admin)."
|
1286 |
+
msgstr ""
|
1287 |
+
|
1288 |
+
#: templates/_admin-page-settings-plugin-areas/_test-mode.php:40
|
1289 |
+
#, php-format
|
1290 |
+
msgid ""
|
1291 |
+
"<strong>Important:</strong> If you're using page speed test tools such as "
|
1292 |
+
"GTMetrix, Pingdom, Google PageSpeed Insights, etc., while test mode is "
|
1293 |
+
"enabled, you will not see any improvements in the reports because, "
|
1294 |
+
"technically, %s plugin is deactivated for guests users and anyone else "
|
1295 |
+
"(including bots and GTMetrix visits), the changes you made being visible "
|
1296 |
+
"only to you."
|
1297 |
+
msgstr ""
|
1298 |
+
|
1299 |
+
#: templates/_admin-page-settings-plugin-areas/_test-mode.php:41
|
1300 |
+
msgid ""
|
1301 |
+
"Once everything is alright with the way your websites loads, after you "
|
1302 |
+
"stripped the \"fat\" from your pages, you can disable test mode to apply the "
|
1303 |
+
"changes to everyone and then run tests via GTMetrix or other similar tools."
|
1304 |
+
msgstr ""
|
1305 |
+
|
1306 |
+
#: templates/admin-page-assets-manager.php:14
|
1307 |
+
msgid "Homepage"
|
1308 |
+
msgstr ""
|
1309 |
+
|
1310 |
+
#: templates/admin-page-assets-manager.php:15
|
1311 |
+
msgid "All Other Pages"
|
1312 |
+
msgstr ""
|
1313 |
+
|
1314 |
+
#: templates/admin-page-child-pages-info.php:11
|
1315 |
+
#: templates/admin-page-child-pages-info.php:43
|
1316 |
+
#: templates/admin-page-child-pages-info.php:48
|
1317 |
+
#: templates/admin-page-child-pages-info.php:53
|
1318 |
+
#: templates/admin-page-child-pages-info.php:58
|
1319 |
+
msgid "Manage Assets"
|
1320 |
+
msgstr ""
|
1321 |
+
|
1322 |
+
#: templates/admin-page-child-pages-info.php:17
|
1323 |
+
msgid ""
|
1324 |
+
"This is an overview of all the WordPress pages where Asset CleanUp can be "
|
1325 |
+
"used to unload unused CSS & JavaScript files."
|
1326 |
+
msgstr ""
|
1327 |
+
|
1328 |
+
#: templates/admin-page-child-pages-info.php:18
|
1329 |
+
#, php-format
|
1330 |
+
msgid ""
|
1331 |
+
"Unloading assets (CSS & JavaScript) for page types that have a locker "
|
1332 |
+
"next to their name requires an %supgrade to the Pro version%s."
|
1333 |
+
msgstr ""
|
1334 |
+
|
1335 |
+
#: templates/admin-page-child-pages-info.php:26
|
1336 |
+
msgid "PAGE TYPE"
|
1337 |
+
msgstr ""
|
1338 |
+
|
1339 |
+
#: templates/admin-page-child-pages-info.php:27
|
1340 |
+
msgid "ACTION"
|
1341 |
+
msgstr ""
|
1342 |
+
|
1343 |
+
#: templates/admin-page-child-pages-info.php:28
|
1344 |
+
msgid "DESCRIPTION"
|
1345 |
+
msgstr ""
|
1346 |
+
|
1347 |
+
#: templates/admin-page-child-pages-info.php:42
|
1348 |
+
#: templates/admin-page-child-pages-info.php:104
|
1349 |
+
msgid "Posts"
|
1350 |
+
msgstr ""
|
1351 |
+
|
1352 |
+
#: templates/admin-page-child-pages-info.php:44
|
1353 |
+
#: templates/admin-page-child-pages-info.php:49
|
1354 |
+
#: templates/admin-page-child-pages-info.php:54
|
1355 |
+
#: templates/admin-page-child-pages-info.php:59
|
1356 |
+
#: templates/admin-page-child-pages-info.php:64
|
1357 |
+
#: templates/admin-page-child-pages-info.php:69
|
1358 |
+
#: templates/admin-page-child-pages-info.php:74
|
1359 |
+
#: templates/admin-page-child-pages-info.php:94
|
1360 |
+
msgid "read more"
|
1361 |
+
msgstr ""
|
1362 |
+
|
1363 |
+
#: templates/admin-page-child-pages-info.php:47
|
1364 |
+
#: templates/admin-page-child-pages-info.php:118
|
1365 |
+
msgid "Custom Post Type"
|
1366 |
+
msgstr ""
|
1367 |
+
|
1368 |
+
#: templates/admin-page-child-pages-info.php:52
|
1369 |
+
#: templates/admin-page-child-pages-info.php:133
|
1370 |
+
msgid "Pages"
|
1371 |
+
msgstr ""
|
1372 |
+
|
1373 |
+
#: templates/admin-page-child-pages-info.php:57
|
1374 |
+
msgid "Media Attachment"
|
1375 |
+
msgstr ""
|
1376 |
+
|
1377 |
+
#: templates/admin-page-child-pages-info.php:62
|
1378 |
+
msgid "Categories"
|
1379 |
+
msgstr ""
|
1380 |
+
|
1381 |
+
#: templates/admin-page-child-pages-info.php:67
|
1382 |
+
msgid "Tags"
|
1383 |
+
msgstr ""
|
1384 |
+
|
1385 |
+
#: templates/admin-page-child-pages-info.php:72
|
1386 |
+
msgid "Custom Taxonomy"
|
1387 |
+
msgstr ""
|
1388 |
+
|
1389 |
+
#: templates/admin-page-child-pages-info.php:77
|
1390 |
+
msgid "Search"
|
1391 |
+
msgstr ""
|
1392 |
+
|
1393 |
+
#: templates/admin-page-child-pages-info.php:82
|
1394 |
+
msgid "Author"
|
1395 |
+
msgstr ""
|
1396 |
+
|
1397 |
+
#: templates/admin-page-child-pages-info.php:87
|
1398 |
+
msgid "Date"
|
1399 |
+
msgstr ""
|
1400 |
+
|
1401 |
+
#: templates/admin-page-child-pages-info.php:92
|
1402 |
+
msgid "404 Not Found"
|
1403 |
+
msgstr ""
|
1404 |
+
|
1405 |
+
#: templates/admin-page-child-pages-info.php:147
|
1406 |
+
msgid "Media Attachment Pages"
|
1407 |
+
msgstr ""
|
1408 |
+
|
1409 |
+
#: templates/admin-page-child-settings-homepage.php:11
|
1410 |
+
msgid "Home Page Scripts & Styles Management"
|
1411 |
+
msgstr ""
|
1412 |
+
|
1413 |
+
#: templates/admin-page-child-settings-homepage.php:18
|
1414 |
+
#, php-format
|
1415 |
+
msgid ""
|
1416 |
+
"As \"Manage in the Dashboard?\" is not enabled in \"%sSettings%s\", you can "
|
1417 |
+
"not manage the assets from the Dashboard."
|
1418 |
+
msgstr ""
|
1419 |
+
|
1420 |
+
#: templates/admin-page-child-settings-homepage.php:25
|
1421 |
+
msgid ""
|
1422 |
+
"In \"Settings\" » \"Reading\" you have selected a static page for "
|
1423 |
+
"\"Front page displays\" setting. To manage the assets (.CSS & .JS) that "
|
1424 |
+
"will NOT LOAD, use the link(s) below:"
|
1425 |
+
msgstr ""
|
1426 |
+
|
1427 |
+
#: templates/admin-page-child-settings-homepage.php:32
|
1428 |
+
msgid "Front page:"
|
1429 |
+
msgstr ""
|
1430 |
+
|
1431 |
+
#: templates/admin-page-child-settings-homepage.php:41
|
1432 |
+
msgid "Posts page:"
|
1433 |
+
msgstr ""
|
1434 |
+
|
1435 |
+
#: templates/admin-page-child-settings-homepage.php:49
|
1436 |
+
#, php-format
|
1437 |
+
msgid ""
|
1438 |
+
"To read more about creating a static front page in WordPress, %scheck the "
|
1439 |
+
"Codex%s."
|
1440 |
+
msgstr ""
|
1441 |
+
|
1442 |
+
#: templates/admin-page-child-settings-homepage.php:61
|
1443 |
+
msgid ""
|
1444 |
+
"Here you can unload files loaded on the home page. \"Front page displays"
|
1445 |
+
"\" (from \"Settings\" » \"Reading\") is set to either \"Your latest "
|
1446 |
+
"posts\" (in \"Settings\" » \"Reading\") OR a special layout (from a "
|
1447 |
+
"theme or plugin) was enabled."
|
1448 |
+
msgstr ""
|
1449 |
+
|
1450 |
+
#: templates/admin-page-child-settings-homepage.php:61
|
1451 |
+
#, php-format
|
1452 |
+
msgid ""
|
1453 |
+
"Changes will also apply to pages such as %s etc. in case the latest blog "
|
1454 |
+
"posts are paginated."
|
1455 |
+
msgstr ""
|
1456 |
+
|
1457 |
+
#: templates/admin-page-child-settings-homepage.php:66
|
1458 |
+
msgid ""
|
1459 |
+
"Retrieving the loaded scripts and styles for the home page. Please wait..."
|
1460 |
+
msgstr ""
|
1461 |
+
|
1462 |
+
#: templates/admin-page-child-settings-homepage.php:69
|
1463 |
+
#: templates/meta-box.php:25
|
1464 |
+
#, php-format
|
1465 |
+
msgid ""
|
1466 |
+
"If you believe fetching the page takes too long and the assets should have "
|
1467 |
+
"loaded by now, I suggest you go to \"Settings\", make sure \"Manage in front-"
|
1468 |
+
"end\" is checked and then %smanage the assets in the front-end%s."
|
1469 |
+
msgstr ""
|
1470 |
+
|
1471 |
+
#: templates/admin-page-get-help.php:15
|
1472 |
+
msgid "I have purchased the Pro version. How to do the upgrade?"
|
1473 |
+
msgstr ""
|
1474 |
+
|
1475 |
+
#: templates/admin-page-get-help.php:17
|
1476 |
+
msgid ""
|
1477 |
+
"Go to \"Plugins\" -> \"Installed Plugins\", <strong>deactivate</strong> "
|
1478 |
+
"and then <strong>delete</strong> \"Asset CleanUp: Page Speed Booster"
|
1479 |
+
"\" (<em>no worries, any settings applied would be preserved</em>)"
|
1480 |
+
msgstr ""
|
1481 |
+
|
1482 |
+
#: templates/admin-page-get-help.php:30
|
1483 |
+
msgid ""
|
1484 |
+
"Go to \"Plugins\" -> \"Add New\" -> \"Upload Plugin\"; You will notice "
|
1485 |
+
"an upload form and an \"Install Now\" submit button. Download the ZIP file "
|
1486 |
+
"you received in your purchase email receipt (<em>example: wp-asset-clean-up-"
|
1487 |
+
"pro-v1.0.8.5.zip</em>), attach it to the form and install the new upgraded "
|
1488 |
+
"plugin."
|
1489 |
+
msgstr ""
|
1490 |
+
|
1491 |
+
#: templates/admin-page-get-help.php:36
|
1492 |
+
msgid "Finally, <strong>activate</strong> Asset CleanUp Pro! That's it"
|
1493 |
+
msgstr ""
|
1494 |
+
|
1495 |
+
#: templates/admin-page-get-help.php:43
|
1496 |
+
msgid "Reminder"
|
1497 |
+
msgstr ""
|
1498 |
+
|
1499 |
+
#: templates/admin-page-get-help.php:43
|
1500 |
+
msgid ""
|
1501 |
+
"Once the Pro version is active, make sure to get the license key from the "
|
1502 |
+
"purchase email receipt and activate it in \"License\" in order to be "
|
1503 |
+
"eligible for plugin updates from the Dashboard."
|
1504 |
+
msgstr ""
|
1505 |
+
|
1506 |
+
#: templates/admin-page-get-help.php:47
|
1507 |
+
msgid "I am stuck and need assistance, can I get help?"
|
1508 |
+
msgstr ""
|
1509 |
+
|
1510 |
+
#: templates/admin-page-get-help.php:71
|
1511 |
+
msgid "Hire an Expert"
|
1512 |
+
msgstr ""
|
1513 |
+
|
1514 |
+
#: templates/admin-page-get-help.php:73
|
1515 |
+
msgid "Find out more"
|
1516 |
+
msgstr ""
|
1517 |
+
|
1518 |
+
#: templates/admin-page-getting-started.php:11
|
1519 |
+
#, php-format
|
1520 |
+
msgid "Welcome to %s %s"
|
1521 |
+
msgstr ""
|
1522 |
+
|
1523 |
+
#: templates/admin-page-getting-started.php:13
|
1524 |
+
msgid "Thank you for installing this page speed booster plugin"
|
1525 |
+
msgstr ""
|
1526 |
+
|
1527 |
+
#: templates/admin-page-getting-started.php:13
|
1528 |
+
msgid ""
|
1529 |
+
"Prepare to make your WordPress website faster & lighter by removing the "
|
1530 |
+
"useless CSS & JavaScript files from your pages."
|
1531 |
+
msgstr ""
|
1532 |
+
|
1533 |
+
#: templates/admin-page-getting-started.php:15
|
1534 |
+
#, php-format
|
1535 |
+
msgid ""
|
1536 |
+
"For maximum performance, %s works best when used with either a %scaching "
|
1537 |
+
"plugin%s, the in-built hosting caching (e.g. via %sWPEngine%s, Kinsta, etc.) "
|
1538 |
+
"or something like Varnish."
|
1539 |
+
msgstr ""
|
1540 |
+
|
1541 |
+
#: templates/admin-page-getting-started.php:27
|
1542 |
+
msgid "How it works"
|
1543 |
+
msgstr ""
|
1544 |
+
|
1545 |
+
#: templates/admin-page-getting-started.php:28
|
1546 |
+
msgid "Benefits of a Fast Website"
|
1547 |
+
msgstr ""
|
1548 |
+
|
1549 |
+
#: templates/admin-page-getting-started.php:29
|
1550 |
+
msgid "Start Optimization"
|
1551 |
+
msgstr ""
|
1552 |
+
|
1553 |
+
#: templates/admin-page-getting-started.php:30
|
1554 |
+
msgid "Video Tutorials"
|
1555 |
+
msgstr ""
|
1556 |
+
|
1557 |
+
#: templates/admin-page-license.php:14
|
1558 |
+
#, php-format
|
1559 |
+
msgid ""
|
1560 |
+
"You're using the lite version of %s (v%s), so no license key is needed. "
|
1561 |
+
"You'll receive automatic notifications whenever a new version is available "
|
1562 |
+
"for download."
|
1563 |
+
msgstr ""
|
1564 |
+
|
1565 |
+
#: templates/admin-page-license.php:18
|
1566 |
+
#, php-format
|
1567 |
+
msgid ""
|
1568 |
+
"To unlock all features and get premium support, you can %supgrade to the Pro "
|
1569 |
+
"version%s."
|
1570 |
+
msgstr ""
|
1571 |
+
|
1572 |
+
#: templates/admin-page-license.php:25
|
1573 |
+
#, php-format
|
1574 |
+
msgid ""
|
1575 |
+
"If you already purchased the Pro version and you don't know how to activate "
|
1576 |
+
"it, %sfollow the steps from the \"Help\" section%s."
|
1577 |
+
msgstr ""
|
1578 |
+
|
1579 |
+
#: templates/admin-page-settings-bulk-changes.php:14
|
1580 |
+
msgid "Bulk Unloaded"
|
1581 |
+
msgstr ""
|
1582 |
+
|
1583 |
+
#: templates/admin-page-settings-bulk-changes.php:15
|
1584 |
+
msgid "Defer & Async used on all pages"
|
1585 |
+
msgstr ""
|
1586 |
+
|
1587 |
+
#: templates/admin-page-settings-bulk-changes.php:16
|
1588 |
+
msgid "Updated CSS/JS positions"
|
1589 |
+
msgstr ""
|
1590 |
+
|
1591 |
+
#: templates/admin-page-settings-plugin.php:18
|
1592 |
+
msgid "read"
|
1593 |
+
msgstr ""
|
1594 |
+
|
1595 |
+
#: templates/admin-page-settings-plugin.php:19
|
1596 |
+
msgid "unread"
|
1597 |
+
msgstr ""
|
1598 |
+
|
1599 |
+
#: templates/admin-page-settings-plugin.php:26
|
1600 |
+
msgid "Stripping the \"fat\""
|
1601 |
+
msgstr ""
|
1602 |
+
|
1603 |
+
#: templates/admin-page-settings-plugin.php:27
|
1604 |
+
msgid "General & Files Management"
|
1605 |
+
msgstr ""
|
1606 |
+
|
1607 |
+
#: templates/admin-page-settings-plugin.php:29
|
1608 |
+
msgid "Minify CSS & JS Files"
|
1609 |
+
msgstr ""
|
1610 |
+
|
1611 |
+
#: templates/admin-page-settings-plugin.php:30
|
1612 |
+
msgid "Combine CSS & JS Files"
|
1613 |
+
msgstr ""
|
1614 |
+
|
1615 |
+
#: templates/admin-page-settings-plugin.php:31
|
1616 |
+
msgid "Site-Wide Common Unloads"
|
1617 |
+
msgstr ""
|
1618 |
+
|
1619 |
+
#: templates/admin-page-settings-plugin.php:32
|
1620 |
+
msgid "HTML Source CleanUp"
|
1621 |
+
msgstr ""
|
1622 |
+
|
1623 |
+
#: templates/admin-page-settings-plugin.php:33
|
1624 |
+
msgid "Disable XML-RPC"
|
1625 |
+
msgstr ""
|
1626 |
+
|
1627 |
+
#: templates/admin-page-settings-plugin.php:86
|
1628 |
+
msgid "Update All Settings"
|
1629 |
+
msgstr ""
|
1630 |
+
|
1631 |
+
#: templates/admin-page-tools.php:15
|
1632 |
+
msgid "Reset"
|
1633 |
+
msgstr ""
|
1634 |
+
|
1635 |
+
#: templates/admin-page-tools.php:16
|
1636 |
+
msgid "System Info"
|
1637 |
+
msgstr ""
|
1638 |
+
|
1639 |
+
#: templates/admin-page-tools.php:22
|
1640 |
+
msgid ""
|
1641 |
+
"Do you need to reset the plugin to its initial settings or reset all changes?"
|
1642 |
+
msgstr ""
|
1643 |
+
|
1644 |
+
#: templates/admin-page-tools.php:25
|
1645 |
+
msgid "Select an option first"
|
1646 |
+
msgstr ""
|
1647 |
+
|
1648 |
+
#: templates/admin-page-tools.php:26
|
1649 |
+
msgid "Reset settings"
|
1650 |
+
msgstr ""
|
1651 |
+
|
1652 |
+
#: templates/admin-page-tools.php:27
|
1653 |
+
msgid ""
|
1654 |
+
"Reset everything: settings, all unloads (bulk & individual) & load "
|
1655 |
+
"exceptions"
|
1656 |
+
msgstr ""
|
1657 |
+
|
1658 |
+
#: templates/admin-page-tools.php:32
|
1659 |
+
msgid ""
|
1660 |
+
"Also remove license data in case the premium version was active at any point"
|
1661 |
+
msgstr ""
|
1662 |
+
|
1663 |
+
#: templates/admin-page-tools.php:36
|
1664 |
+
msgid ""
|
1665 |
+
"Please read carefully below what the chosen action does as this process is "
|
1666 |
+
"NOT reversible."
|
1667 |
+
msgstr ""
|
1668 |
+
|
1669 |
+
#: templates/admin-page-tools.php:39
|
1670 |
+
msgid ""
|
1671 |
+
"This will reset every option from the \"Settings\" page/tab to the same "
|
1672 |
+
"state it was when you first activated the plugin."
|
1673 |
+
msgstr ""
|
1674 |
+
|
1675 |
+
#: templates/admin-page-tools.php:43
|
1676 |
+
msgid ""
|
1677 |
+
"This will reset everything (settings, page loads & any load exceptions) "
|
1678 |
+
"to the same point it was when you first activated the plugin. All the "
|
1679 |
+
"plugin's database records will be removed. It will technically have the same "
|
1680 |
+
"effect for your website as if the plugin would be deactivated."
|
1681 |
+
msgstr ""
|
1682 |
+
|
1683 |
+
#: templates/admin-page-tools.php:45
|
1684 |
+
msgid "This action is usually taken if:"
|
1685 |
+
msgstr ""
|
1686 |
+
|
1687 |
+
#: templates/admin-page-tools.php:47
|
1688 |
+
msgid ""
|
1689 |
+
"You believe you have applied some changes (such as unloading the wrong CSS / "
|
1690 |
+
"JavaScript file(s)) that broke the website and you need a quick fix to make "
|
1691 |
+
"it work the way it used to. Note that for this option, you can also enable "
|
1692 |
+
"\"Test Mode\" from the plugin's settings which will only apply the changes "
|
1693 |
+
"to you (logged-in administrator), while the regular visitors will view the "
|
1694 |
+
"website as if Asset CleanUp is deactivated."
|
1695 |
+
msgstr ""
|
1696 |
+
|
1697 |
+
#: templates/admin-page-tools.php:48
|
1698 |
+
msgid ""
|
1699 |
+
"You want to uninstall Asset CleanUp and remove the traces left in the "
|
1700 |
+
"database (this is not the same thing as deactivating and activating the "
|
1701 |
+
"plugin again, as any changes applied would be preserved in this scenario)"
|
1702 |
+
msgstr ""
|
1703 |
+
|
1704 |
+
#: templates/admin-page-tools.php:63
|
1705 |
+
msgid "Submit"
|
1706 |
+
msgstr ""
|
1707 |
+
|
1708 |
+
#: templates/admin-page-tools.php:75
|
1709 |
+
msgid "Download System Info"
|
1710 |
+
msgstr ""
|
1711 |
+
|
1712 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:22
|
1713 |
+
#: templates/meta-box-loaded-assets/_asset-style-single-row.php:19
|
1714 |
+
msgid "Handle:"
|
1715 |
+
msgstr ""
|
1716 |
+
|
1717 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:51
|
1718 |
+
#: templates/meta-box-loaded-assets/_asset-style-single-row.php:48
|
1719 |
+
msgid "Source:"
|
1720 |
+
msgstr ""
|
1721 |
+
|
1722 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:63
|
1723 |
+
msgid "\"Child\" of one \"parent\" file:"
|
1724 |
+
msgstr ""
|
1725 |
+
|
1726 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:64
|
1727 |
+
#, php-format
|
1728 |
+
msgid "\"Child\" of %s JS \"parent\" files:"
|
1729 |
+
msgstr ""
|
1730 |
+
|
1731 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:81
|
1732 |
+
#: templates/meta-box-loaded-assets/_asset-style-single-row.php:72
|
1733 |
+
msgid "Version:"
|
1734 |
+
msgstr ""
|
1735 |
+
|
1736 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:84
|
1737 |
+
#: templates/meta-box-loaded-assets/_asset-style-single-row.php:75
|
1738 |
+
msgid "Position:"
|
1739 |
+
msgstr ""
|
1740 |
+
|
1741 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:89
|
1742 |
+
#: templates/meta-box-loaded-assets/_asset-style-single-row.php:80
|
1743 |
+
msgid "File Size:"
|
1744 |
+
msgstr ""
|
1745 |
+
|
1746 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:106
|
1747 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:114
|
1748 |
+
#: templates/meta-box-loaded-assets/_asset-style-single-row.php:93
|
1749 |
+
#: templates/meta-box-loaded-assets/view-by-location.php:131
|
1750 |
+
msgid "Unload on this page"
|
1751 |
+
msgstr ""
|
1752 |
+
|
1753 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:125
|
1754 |
+
msgid "This JavaScript file is unloaded everywhere"
|
1755 |
+
msgstr ""
|
1756 |
+
|
1757 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:164
|
1758 |
+
#: templates/meta-box-loaded-assets/_asset-style-single-row.php:148
|
1759 |
+
msgid "Unload Everywhere"
|
1760 |
+
msgstr ""
|
1761 |
+
|
1762 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:201
|
1763 |
+
#: templates/meta-box-loaded-assets/_asset-style-single-row.php:186
|
1764 |
+
msgid "Keep bulk rule"
|
1765 |
+
msgstr ""
|
1766 |
+
|
1767 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:210
|
1768 |
+
#: templates/meta-box-loaded-assets/_asset-style-single-row.php:195
|
1769 |
+
msgid "Remove bulk rule"
|
1770 |
+
msgstr ""
|
1771 |
+
|
1772 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:258
|
1773 |
+
msgid "Inline JavaScript code associated with the handle:"
|
1774 |
+
msgstr ""
|
1775 |
+
|
1776 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:277
|
1777 |
+
msgid "this option is available in Pro version"
|
1778 |
+
msgstr ""
|
1779 |
+
|
1780 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:280
|
1781 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:288
|
1782 |
+
msgid "This feature is available in the premium version of the plugin."
|
1783 |
+
msgstr ""
|
1784 |
+
|
1785 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:280
|
1786 |
+
#: templates/meta-box-loaded-assets/_asset-script-single-row.php:288
|
1787 |
+
msgid "Click here to upgrade to Pro"
|
1788 |
+
msgstr ""
|
1789 |
+
|
1790 |
+
#: templates/meta-box-loaded-assets/_asset-style-single-row.php:58
|
1791 |
+
msgid "\"Child\" of one \"parent\" CSS file:"
|
1792 |
+
msgstr ""
|
1793 |
+
|
1794 |
+
#: templates/meta-box-loaded-assets/_asset-style-single-row.php:59
|
1795 |
+
#, php-format
|
1796 |
+
msgid "\"Child\" of %s CSS \"parent\" files:"
|
1797 |
+
msgstr ""
|
1798 |
+
|
1799 |
+
#: templates/meta-box-loaded-assets/_asset-style-single-row.php:246
|
1800 |
+
msgid "Inline styling associated with the handle:"
|
1801 |
+
msgstr ""
|
1802 |
+
|
1803 |
+
#: templates/meta-box-loaded-assets/_asset-style-single-row.php:249
|
1804 |
+
msgid "Show / Hide"
|
1805 |
+
msgstr ""
|
1806 |
+
|
1807 |
+
#: templates/meta-box-loaded-assets/view-by-location.php:25
|
1808 |
+
#, php-format
|
1809 |
+
msgid ""
|
1810 |
+
"Please select the styles & scripts that are %sNOT NEEDED%s from the list "
|
1811 |
+
"below. Not sure which ones to unload? %s Use \"Test Mode\" (to make the "
|
1812 |
+
"changes apply only to you), while you are going through the trial & "
|
1813 |
+
"error process."
|
1814 |
+
msgstr ""
|
1815 |
+
|
1816 |
+
#: templates/meta-box-loaded-assets/view-by-location.php:29
|
1817 |
+
#: templates/meta-box-loaded-assets/view-by-position.php:25
|
1818 |
+
#: templates/meta-box-loaded-assets/view-default.php:38
|
1819 |
+
#: templates/meta-box-loaded-assets/view-default.php:100
|
1820 |
+
msgid ""
|
1821 |
+
"\"Load in on this page (make exception)\" will take effect when a bulk "
|
1822 |
+
"unload rule is used. Otherwise, the asset will load anyway unless you select "
|
1823 |
+
"it for unload."
|
1824 |
+
msgstr ""
|
1825 |
+
|
1826 |
+
#: templates/meta-box-loaded-assets/view-by-location.php:42
|
1827 |
+
#: templates/meta-box-loaded-assets/view-by-position.php:38
|
1828 |
+
#, php-format
|
1829 |
+
msgid ""
|
1830 |
+
"Assets that are marked with %s are part of WordPress core files. Be careful "
|
1831 |
+
"if you decide to unload them! If you are not sure what to do, just leave "
|
1832 |
+
"them loaded by default and consult with a developer."
|
1833 |
+
msgstr ""
|
1834 |
+
|
1835 |
+
#: templates/meta-box-loaded-assets/view-by-location.php:134
|
1836 |
+
msgid "Check All"
|
1837 |
+
msgstr ""
|
1838 |
+
|
1839 |
+
#: templates/meta-box-loaded-assets/view-by-location.php:137
|
1840 |
+
msgid "Uncheck All"
|
1841 |
+
msgstr ""
|
1842 |
+
|
1843 |
+
#: templates/meta-box-loaded-assets/view-by-location.php:175
|
1844 |
+
msgid "There are no CSS/JS loaded from this location."
|
1845 |
+
msgstr ""
|
1846 |
+
|
1847 |
+
#: templates/meta-box-loaded-assets/view-by-position.php:24
|
1848 |
+
#, php-format
|
1849 |
+
msgid ""
|
1850 |
+
"The following styles & scripts are loading on this page. Please select "
|
1851 |
+
"the ones that are %sNOT NEEDED%s. If you are not sure which ones to unload, "
|
1852 |
+
"it is better to enable \"Test Mode\" (to make the changes apply only to "
|
1853 |
+
"you), while you are going through the trial & error process."
|
1854 |
+
msgstr ""
|
1855 |
+
|
1856 |
+
#: templates/meta-box-loaded-assets/view-default.php:28
|
1857 |
+
msgid "Styles (.css files)"
|
1858 |
+
msgstr ""
|
1859 |
+
|
1860 |
+
#: templates/meta-box-loaded-assets/view-default.php:37
|
1861 |
+
#, php-format
|
1862 |
+
msgid ""
|
1863 |
+
"Please select the styles & scripts that are %sNOT NEEDED%s from the list "
|
1864 |
+
"below. Not sure which ones to unload? 🤔 Use \"Test Mode\" (to make the "
|
1865 |
+
"changes apply only to you), while you are going through the trial & "
|
1866 |
+
"error process."
|
1867 |
+
msgstr ""
|
1868 |
+
|
1869 |
+
#: templates/meta-box-loaded-assets/view-default.php:51
|
1870 |
+
#, php-format
|
1871 |
+
msgid ""
|
1872 |
+
"CSS files that are marked with %s are part of WordPress core files. Be "
|
1873 |
+
"careful if you decide to unload them! If you are not sure what to do, just "
|
1874 |
+
"leave them loaded by default and consult with a developer."
|
1875 |
+
msgstr ""
|
1876 |
+
|
1877 |
+
#: templates/meta-box-loaded-assets/view-default.php:68
|
1878 |
+
msgid ""
|
1879 |
+
"It looks like there are no public .css files loaded or the ones visible do "
|
1880 |
+
"not follow <a href=\"https://codex.wordpress.org/Function_Reference/"
|
1881 |
+
"wp_enqueue_style\">the WordPress way of enqueuing styles</a>."
|
1882 |
+
msgstr ""
|
1883 |
+
|
1884 |
+
#: templates/meta-box-loaded-assets/view-default.php:90
|
1885 |
+
msgid "Scripts (.js files)"
|
1886 |
+
msgstr ""
|
1887 |
+
|
1888 |
+
#: templates/meta-box-loaded-assets/view-default.php:99
|
1889 |
+
#, php-format
|
1890 |
+
msgid ""
|
1891 |
+
"Please select the styles & scripts that are %sNOT NEEDED%s from the list "
|
1892 |
+
"below. Not sure which ones to unload? Use \"Test Mode\" (to make the changes "
|
1893 |
+
"apply only to you), while you are going through the trial & error "
|
1894 |
+
"process."
|
1895 |
+
msgstr ""
|
1896 |
+
|
1897 |
+
#: templates/meta-box-loaded-assets/view-default.php:113
|
1898 |
+
#, php-format
|
1899 |
+
msgid ""
|
1900 |
+
"JavaScript files that are marked with %s are part of WordPress core files. "
|
1901 |
+
"Be careful if you decide to unload them! If you are not sure what to do, "
|
1902 |
+
"just leave them loaded by default and consult with a developer."
|
1903 |
+
msgstr ""
|
1904 |
+
|
1905 |
+
#: templates/meta-box-loaded-assets/view-default.php:131
|
1906 |
+
msgid ""
|
1907 |
+
"It looks like there are no public .js files loaded or the ones visible do "
|
1908 |
+
"not follow <a href=\"https://codex.wordpress.org/Function_Reference/"
|
1909 |
+
"wp_enqueue_script\">the WordPress way of enqueuing scripts</a>."
|
1910 |
+
msgstr ""
|
1911 |
+
|
1912 |
+
#: templates/meta-box-loaded.php:21
|
1913 |
+
msgid ""
|
1914 |
+
"It looks like \"WP Remote Post\" method for retrieving assets via the "
|
1915 |
+
"Dashboard is not working in this environment."
|
1916 |
+
msgstr ""
|
1917 |
+
|
1918 |
+
#: templates/meta-box-loaded.php:22
|
1919 |
+
msgid ""
|
1920 |
+
"Since the server (from its IP) is making the call, it will not \"behave\" in "
|
1921 |
+
"the same way as the \"Direct\" method, which could bypass for instance any "
|
1922 |
+
"authentication request (you might use a staging website that is protected by "
|
1923 |
+
"login credentials)."
|
1924 |
+
msgstr ""
|
1925 |
+
|
1926 |
+
#: templates/meta-box-loaded.php:23
|
1927 |
+
msgid ""
|
1928 |
+
"Consider using \"Direct\" method. If that doesn't work either, use the "
|
1929 |
+
"\"Manage in the Front-end\" option (which should always work in any "
|
1930 |
+
"instance) and submit a ticket regarding the problem you're having. Here's "
|
1931 |
+
"the output received by the call:"
|
1932 |
+
msgstr ""
|
1933 |
+
|
1934 |
+
#: templates/meta-box-loaded.php:27
|
1935 |
+
msgid "CODE"
|
1936 |
+
msgstr ""
|
1937 |
+
|
1938 |
+
#: templates/meta-box-loaded.php:32
|
1939 |
+
msgid "MESSAGE"
|
1940 |
+
msgstr ""
|
1941 |
+
|
1942 |
+
#: templates/meta-box-loaded.php:37
|
1943 |
+
msgid "OUTPUT"
|
1944 |
+
msgstr ""
|
1945 |
+
|
1946 |
+
#: templates/meta-box-loaded.php:68
|
1947 |
+
msgid "You are currently viewing the home page."
|
1948 |
+
msgstr ""
|
1949 |
+
|
1950 |
+
#: templates/meta-box-loaded.php:74
|
1951 |
+
msgid "You are currently viewing the page that shows your latest posts."
|
1952 |
+
msgstr ""
|
1953 |
+
|
1954 |
+
#: templates/meta-box-loaded.php:121
|
1955 |
+
msgid "Page URL"
|
1956 |
+
msgstr ""
|
1957 |
+
|
1958 |
+
#: templates/meta-box-side-page-options.php:17
|
1959 |
+
msgid "Do not minify CSS on this page"
|
1960 |
+
msgstr ""
|
1961 |
+
|
1962 |
+
#: templates/meta-box-side-page-options.php:26
|
1963 |
+
msgid "Do not combine CSS on this page"
|
1964 |
+
msgstr ""
|
1965 |
+
|
1966 |
+
#: templates/meta-box-side-page-options.php:36
|
1967 |
+
msgid "Do not minify JS files on this page"
|
1968 |
+
msgstr ""
|
1969 |
+
|
1970 |
+
#: templates/meta-box-side-page-options.php:45
|
1971 |
+
msgid "Do not combine JavaScript on this page"
|
1972 |
+
msgstr ""
|
1973 |
+
|
1974 |
+
#: templates/meta-box-side-page-options.php:55
|
1975 |
+
msgid ""
|
1976 |
+
"Do not apply any CSS & JavaScript settings (including \"async\", \"defer"
|
1977 |
+
"\" & unload rules) on this page"
|
1978 |
+
msgstr ""
|
1979 |
+
|
1980 |
+
#: templates/meta-box.php:23
|
1981 |
+
#, php-format
|
1982 |
+
msgid ""
|
1983 |
+
"Fetching the loaded scripts and styles for <strong>%s</strong> <br /><br /> "
|
1984 |
+
"Please wait... <br /><br /> In case the list does not show consider checking "
|
1985 |
+
"your internet connection and the actual page that is being fetched to see if "
|
1986 |
+
"it loads completely."
|
1987 |
+
msgstr ""
|
1988 |
+
|
1989 |
+
#: templates/meta-box.php:31
|
1990 |
+
msgid ""
|
1991 |
+
"In order to manage the CSS/JS files here, you need to have \"Manage in the "
|
1992 |
+
"Dashboard?\" enabled within the plugin's settings (\"General & Files "
|
1993 |
+
"Management\" tab)."
|
1994 |
+
msgstr ""
|
1995 |
+
|
1996 |
+
#: templates/meta-box.php:32
|
1997 |
+
msgid ""
|
1998 |
+
"If you prefer to manage the assets within the front-end view and wish to "
|
1999 |
+
"hide this meta box, you can click on \"Screen Options\" at the top of this "
|
2000 |
+
"page and deselect \"Asset CleanUp: CSS & JavaScript Manager\"."
|
2001 |
+
msgstr ""
|
2002 |
+
|
2003 |
+
#: templates/meta-box.php:34
|
2004 |
+
msgid ""
|
2005 |
+
"The styles and scripts will be available for unload once this post/page is "
|
2006 |
+
"<strong>public</strong> and <strong>publish</strong>ed as the whole page "
|
2007 |
+
"needs to be scanned for all the loaded assets."
|
2008 |
+
msgstr ""
|
2009 |
+
|
2010 |
+
#: templates/meta-box.php:36
|
2011 |
+
msgid ""
|
2012 |
+
"If this post/page was meanwhile published (after you saw the above notice), "
|
2013 |
+
"just reload this edit page and you should see the list of CSS/JS files "
|
2014 |
+
"loaded in the page."
|
2015 |
+
msgstr ""
|
2016 |
+
|
2017 |
+
#: templates/meta-box.php:43
|
2018 |
+
msgid ""
|
2019 |
+
"There are no CSS/JS to manage as the permalink for this attachment redirects "
|
2020 |
+
"to the attachment itself because <em>\"Redirect attachment URLs to the "
|
2021 |
+
"attachment itself?\"</em> is set to <em>\"Yes\"</em> in <em>\"Search "
|
2022 |
+
"Appearance - Yoast SEO\" - \"Media\"</em> tab)."
|
2023 |
+
msgstr ""
|
2024 |
+
|
2025 |
+
#: templates/settings-frontend.php:39
|
2026 |
+
msgid ""
|
2027 |
+
"This could cause some issues with Asset CleanUp retrieving an outdated "
|
2028 |
+
"(cached) asset list below."
|
2029 |
+
msgstr ""
|
2030 |
+
|
2031 |
+
#: templates/settings-frontend.php:52
|
2032 |
+
msgid ""
|
2033 |
+
"This area is shown only for the admin users and if \"Manage in the Front-end?"
|
2034 |
+
"\" was selected in the plugin's settings. Handles such as 'admin-bar' and "
|
2035 |
+
"'wpassetcleanup-style' are not included as they are irrelevant since they "
|
2036 |
+
"are used by the plugin for this area."
|
2037 |
+
msgstr ""
|
2038 |
+
|
2039 |
+
#: templates/settings-frontend.php:56
|
2040 |
+
msgid "This a WooCommerce shop page ('product' type archive)."
|
2041 |
+
msgstr ""
|
2042 |
+
|
2043 |
+
#: templates/settings-frontend.php:56
|
2044 |
+
msgid "Unloading CSS/JS will also take effect for the pagination/sorting pages"
|
2045 |
+
msgstr ""
|
2046 |
+
|
2047 |
+
#: templates/settings-frontend.php:63
|
2048 |
+
msgid ""
|
2049 |
+
"Although this page is detected as the home page, its URL is not the same as "
|
2050 |
+
"the one from \"General Settings\" » \"Site Address (URL)\" and the "
|
2051 |
+
"WooCommerce plugin is not active anymore. This could be the \"Shop\" page "
|
2052 |
+
"that is no longer active."
|
2053 |
+
msgstr ""
|
2054 |
+
|
2055 |
+
#: templates/settings-frontend.php:77
|
2056 |
+
msgid "To unlock this feature, you can upgrade to the Pro version."
|
2057 |
+
msgstr ""
|
2058 |
+
|
2059 |
+
#: templates/settings-frontend.php:81
|
2060 |
+
msgid ""
|
2061 |
+
"This is a <strong>WordPress Search Page</strong> and managing CSS & JS "
|
2062 |
+
"(unload, defer, async, etc.) for this page type can be done in Asset CleanUp "
|
2063 |
+
"Pro."
|
2064 |
+
msgstr ""
|
2065 |
+
|
2066 |
+
#: templates/settings-frontend.php:84
|
2067 |
+
msgid ""
|
2068 |
+
"This is a <strong>404 (Not Found) Page</strong> and managing CSS & JS "
|
2069 |
+
"(unload, defer, async, etc.) for this page type can be done in Asset CleanUp "
|
2070 |
+
"Pro."
|
2071 |
+
msgstr ""
|
2072 |
+
|
2073 |
+
#: templates/settings-frontend.php:87
|
2074 |
+
msgid ""
|
2075 |
+
"This is an <strong>Author Page</strong> and managing CSS & JS (unload, "
|
2076 |
+
"defer, async, etc.) for this page type can be done in Asset CleanUp Pro."
|
2077 |
+
msgstr ""
|
2078 |
+
|
2079 |
+
#: templates/settings-frontend.php:90
|
2080 |
+
msgid ""
|
2081 |
+
"This is a <strong>Category (Taxonomy) Page</strong> and managing CSS & "
|
2082 |
+
"JS (unload, defer, async, etc.) for this page type can be done in Asset "
|
2083 |
+
"CleanUp Pro."
|
2084 |
+
msgstr ""
|
2085 |
+
|
2086 |
+
#: templates/settings-frontend.php:93
|
2087 |
+
msgid ""
|
2088 |
+
"This is a <strong>WooCommerce Product Category (Taxonomy) Page</strong> and "
|
2089 |
+
"managing CSS & JS (unload, defer, async, etc.) for this page type can be "
|
2090 |
+
"done in Asset CleanUp Pro."
|
2091 |
+
msgstr ""
|
2092 |
+
|
2093 |
+
#: templates/settings-frontend.php:96
|
2094 |
+
msgid ""
|
2095 |
+
"This is a <strong>Date (Archive) Page</strong> and managing (unload, defer, "
|
2096 |
+
"async etc.) CSS & JS for this page type can be done in Asset CleanUp Pro."
|
2097 |
+
msgstr ""
|
2098 |
+
|
2099 |
+
#: templates/settings-frontend.php:99
|
2100 |
+
msgid ""
|
2101 |
+
"This is a <strong>Tag (Archive) Page</strong> and managing CSS & JS "
|
2102 |
+
"(unload, defer, async, etc.) for this page type can be done in Asset CleanUp "
|
2103 |
+
"Pro."
|
2104 |
+
msgstr ""
|
2105 |
+
|
2106 |
+
#: templates/settings-frontend.php:102
|
2107 |
+
msgid ""
|
2108 |
+
"This is a <strong>Taxonomy Page</strong> and managing CSS & JS (unload, "
|
2109 |
+
"defer, async, etc.) for this page type can be done in Asset CleanUp Pro."
|
2110 |
+
msgstr ""
|
2111 |
+
|
2112 |
+
#: templates/settings-frontend.php:108
|
2113 |
+
msgid "Upgrade to Asset CleanUp Pro"
|
2114 |
+
msgstr ""
|
2115 |
+
|
2116 |
+
#: templates/settings-frontend.php:118
|
2117 |
+
msgid "UPDATE"
|
2118 |
+
msgstr ""
|
2119 |
+
|
2120 |
+
#: wpacu.php:72
|
2121 |
+
#, php-format
|
2122 |
+
msgid ""
|
2123 |
+
"%1$s requires %2$s PHP version installed. You have %s. If you're website is "
|
2124 |
+
"compatible with PHP 7+ (e.g. you can check with your developers or contact "
|
2125 |
+
"the hosting company), it's strongly recommended to upgrade for a better "
|
2126 |
+
"performance. The plugin has been deactivated."
|
2127 |
+
msgstr ""
|
2128 |
+
|
2129 |
+
#. Plugin Name of the plugin/theme
|
2130 |
+
msgid "Asset CleanUp: Page Speed Booster"
|
2131 |
+
msgstr ""
|
2132 |
+
|
2133 |
+
#. Plugin URI of the plugin/theme
|
2134 |
+
msgid "https://wordpress.org/plugins/wp-asset-clean-up/"
|
2135 |
+
msgstr ""
|
2136 |
+
|
2137 |
+
#. Description of the plugin/theme
|
2138 |
+
msgid ""
|
2139 |
+
"Unload Chosen Scripts & Styles from Posts/Pages to reduce HTTP Requests, "
|
2140 |
+
"Combine/Minify CSS/JS files"
|
2141 |
+
msgstr ""
|
2142 |
+
|
2143 |
+
#. Author of the plugin/theme
|
2144 |
+
msgid "Gabriel Livan"
|
2145 |
+
msgstr ""
|
2146 |
+
|
2147 |
+
#. Author URI of the plugin/theme
|
2148 |
+
msgid "http://gabelivan.com/"
|
2149 |
+
msgstr ""
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: pagespeed, page speed, dequeue, performance, gtmetrix
|
|
4 |
Donate link: https://gabelivan.com/items/wp-asset-cleanup-pro/?utm_source=wp_org_lite&utm_medium=donate
|
5 |
Requires at least: 4.4
|
6 |
Tested up to: 5.1.1
|
7 |
-
Stable tag: 1.3.2.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl.html
|
10 |
|
@@ -154,6 +154,11 @@ With the recently released "Test Mode" feature, you can safely unload assets on
|
|
154 |
4. Homepage CSS & JS Management (List sorted by location)
|
155 |
|
156 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
157 |
= 1.3.2.6 =
|
158 |
* Prevent plugin from triggering any of its settings when page builders (e.g. Divi, Elementor, Beaver Builder, Oxygen, etc.) are in edit mode for maximum compatibility
|
159 |
* Compatibility with SG Optimizer plugin
|
4 |
Donate link: https://gabelivan.com/items/wp-asset-cleanup-pro/?utm_source=wp_org_lite&utm_medium=donate
|
5 |
Requires at least: 4.4
|
6 |
Tested up to: 5.1.1
|
7 |
+
Stable tag: 1.3.2.7
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl.html
|
10 |
|
154 |
4. Homepage CSS & JS Management (List sorted by location)
|
155 |
|
156 |
== Changelog ==
|
157 |
+
= 1.3.2.7 =
|
158 |
+
* Bug Fix: array_key_first() didn't have a fallback for PHP 5 causing plugin admin pages to disappear
|
159 |
+
* Do not trigger Asset CleanUp if either of the following page builders are in edit mode: "Thrive Architect", "Page Builder by SiteOrigin" & "Beaver Builder"
|
160 |
+
* Code improvement; Hide meta boxes from Themify builder templates
|
161 |
+
|
162 |
= 1.3.2.6 =
|
163 |
* Prevent plugin from triggering any of its settings when page builders (e.g. Divi, Elementor, Beaver Builder, Oxygen, etc.) are in edit mode for maximum compatibility
|
164 |
* Compatibility with SG Optimizer plugin
|
templates/_admin-page-getting-started-areas/_benefits-fast-pages.php
CHANGED
@@ -6,26 +6,26 @@ if (! isset($data)) {
|
|
6 |
exit;
|
7 |
}
|
8 |
?>
|
9 |
-
<p class="area-title"><?php _e('Higher search ranking',
|
10 |
-
<p><?php _e('Since 2010, there has been a signal in Google search ranking algorithms: site speed, which reflects how quickly a website responds to web requests.',
|
11 |
-
<p><?php _e('Speeding up websites is important — not just to site owners, but to all Internet users.',
|
12 |
-
<p><span class="dashicons dashicons-video-alt3"></span> <a href="https://www.youtube.com/watch?v=SO4YuDAkplU" target="_blank"><?php _e('How does Google determine page speed?',
|
13 |
<hr />
|
14 |
|
15 |
-
<p class="area-title"><?php _e('Visitor Experience',
|
16 |
-
<p><?php _e('For a customer (it\'s likely happened to you too) that wants to purchase something online, it\'s very frustrating to land on slow loading website.',
|
17 |
<hr />
|
18 |
|
19 |
-
<p class="area-title"><?php _e('Better Developer Experience',
|
20 |
-
<p><?php _e('As developers, we often go through the HTML source code of the website, access the server (e.g. Apache, NGINX) logs that has the HTTP requests, and have to sometimes solve code conflict problems (e.g. between plugins) due to poorly written code.',
|
21 |
<hr />
|
22 |
|
23 |
-
<p class="area-title"><?php _e('Higher Revenue',
|
24 |
-
<p><?php _e('Just about any major retailer is taking site speed as a very important factor for increasing conversions.',
|
25 |
|
26 |
-
<p style="margin-bottom: 0;"><em>"<?php echo sprintf(__('%s of users say they\'ve felt STRESS OR ANGER while using a slow website.',
|
27 |
-
<p style="margin-top: 5px; margin-bottom: 0;"><em>"<?php echo sprintf(__('%s of users say that slow online transaction make them ANXIOUS about the success of the transaction.',
|
28 |
-
<p style="margin-top: 5px;"><em>"<?php echo sprintf(__('%s of people have THROWN THEIR PHONE while using a slow mobile site.',
|
29 |
|
30 |
<?php add_thickbox(); ?>
|
31 |
<div id="wpacu-brain-slow-website-info" style="display:none;">
|
@@ -34,4 +34,4 @@ if (! isset($data)) {
|
|
34 |
</div>
|
35 |
|
36 |
<span class="dashicons dashicons-format-image"></span> <a href="#TB_inline?&width=1024&height=550&inlineId=wpacu-brain-slow-website-info"
|
37 |
-
class="thickbox"><?php echo sprintf(__('View "%s" Infographic',
|
6 |
exit;
|
7 |
}
|
8 |
?>
|
9 |
+
<p class="area-title"><?php _e('Higher search ranking', 'wp-asset-clean-up'); ?> <span style="font-size: 22px;">📈</span></p>
|
10 |
+
<p><?php _e('Since 2010, there has been a signal in Google search ranking algorithms: site speed, which reflects how quickly a website responds to web requests.', 'wp-asset-clean-up'); ?></p>
|
11 |
+
<p><?php _e('Speeding up websites is important — not just to site owners, but to all Internet users.', 'wp-asset-clean-up'); ?> <?php _e('Faster sites create happy users and Google has seen in their internal studies that when a site responds slowly, visitors spend less time there.', 'wp-asset-clean-up'); ?> <?php _e('But faster sites don\'t just improve user experience', 'wp-asset-clean-up'); ?>; <?php _e('recent data shows that improving site speed also reduces operating costs.', 'wp-asset-clean-up'); ?> <?php _e('Like Google, their users place a lot of value in speed — that\'s why they\'ve decided to take site speed into account in their search rankings. They use a variety of sources to determine the speed of a site relative to other sites.', 'wp-asset-clean-up'); ?>
|
12 |
+
<p><span class="dashicons dashicons-video-alt3"></span> <a href="https://www.youtube.com/watch?v=SO4YuDAkplU" target="_blank"><?php _e('How does Google determine page speed?', 'wp-asset-clean-up'); ?></a></p>
|
13 |
<hr />
|
14 |
|
15 |
+
<p class="area-title"><?php _e('Visitor Experience', 'wp-asset-clean-up'); ?> <span style="font-size: 24px;">😊</span></p>
|
16 |
+
<p><?php _e('For a customer (it\'s likely happened to you too) that wants to purchase something online, it\'s very frustrating to land on slow loading website.', 'wp-asset-clean-up'); ?> <?php _e('A blazing fast website, will keep your visitors happy, engaged, which will directly influence conversions.', 'wp-asset-clean-up'); ?> <?php _e('If a visitor doesn\'t get what he wants in a time he/she thinks it\'s reasonable, they will probably head to another website belonging to a competitor.', 'wp-asset-clean-up'); ?> <?php _e('As today\'s users expect a fast and streamlined web experience, you\'re losing business if you neglect this often overlooked aspect.', 'wp-asset-clean-up'); ?></p>
|
17 |
<hr />
|
18 |
|
19 |
+
<p class="area-title"><?php _e('Better Developer Experience', 'wp-asset-clean-up'); ?> <span style="font-size: 24px;">⚙️</span></p>
|
20 |
+
<p><?php _e('As developers, we often go through the HTML source code of the website, access the server (e.g. Apache, NGINX) logs that has the HTTP requests, and have to sometimes solve code conflict problems (e.g. between plugins) due to poorly written code.', 'wp-asset-clean-up'); ?> <?php _e('By preventing unnecessary files to load, having less HTTP requests, and cleaner HTML code, you will be able to easily go through the code (which is smaller).', 'wp-asset-clean-up'); ?> <?php _e('Your log files will take less space on the server, will be easier to backup and analyse, and by having less JavaScript files loading, you will be reduce the changes of getting less JS errors that could interfere with the functionality of your website.', 'wp-asset-clean-up'); ?></p>
|
21 |
<hr />
|
22 |
|
23 |
+
<p class="area-title"><?php _e('Higher Revenue', 'wp-asset-clean-up'); ?> <span style="font-size: 24px;">💯</span></p>
|
24 |
+
<p><?php _e('Just about any major retailer is taking site speed as a very important factor for increasing conversions.', 'wp-asset-clean-up'); ?> <?php _e('According to Strangeloop, 57% of online customers will leave a website after waiting 3 seconds for the page to load. Moreover, 80% of those people will not return to that page. Some of them will tell others about their negative experience. This has a direct impact on the conversion rate, revenue and brand image.', 'wp-asset-clean-up'); ?></p>
|
25 |
|
26 |
+
<p style="margin-bottom: 0;"><em>"<?php echo sprintf(__('%s of users say they\'ve felt STRESS OR ANGER while using a slow website.', 'wp-asset-clean-up'), '78%'); ?>"</em></p>
|
27 |
+
<p style="margin-top: 5px; margin-bottom: 0;"><em>"<?php echo sprintf(__('%s of users say that slow online transaction make them ANXIOUS about the success of the transaction.', 'wp-asset-clean-up'), '44%'); ?>"</em></p>
|
28 |
+
<p style="margin-top: 5px;"><em>"<?php echo sprintf(__('%s of people have THROWN THEIR PHONE while using a slow mobile site.', 'wp-asset-clean-up'), '4%'); ?>"</em></p>
|
29 |
|
30 |
<?php add_thickbox(); ?>
|
31 |
<div id="wpacu-brain-slow-website-info" style="display:none;">
|
34 |
</div>
|
35 |
|
36 |
<span class="dashicons dashicons-format-image"></span> <a href="#TB_inline?&width=1024&height=550&inlineId=wpacu-brain-slow-website-info"
|
37 |
+
class="thickbox"><?php echo sprintf(__('View "%s" Infographic', 'wp-asset-clean-up'), 'This Is Your Brain On A Slow Website'); ?></a>
|
templates/_admin-page-getting-started-areas/_how-it-works.php
CHANGED
@@ -6,28 +6,28 @@ if (! isset($data)) {
|
|
6 |
exit;
|
7 |
}
|
8 |
?>
|
9 |
-
<p><?php _e('Often, our WordPress websites are loaded with elements that are not needed to load on specific pages or even everywhere.',
|
10 |
-
<p><?php _e('This could end up in a slow website that leads to page abandonment, poor ranking in Google search and sometimes conflict JavaScript errors where too many scripts are loading and one of them (or more) have poorly written code that is not autonomous and badly interacts with other code.',
|
11 |
<hr />
|
12 |
-
<p class="area-title"><?php
|
13 |
-
<p>Asset CleanUp is a <strong>front-end optimisation performance plugin</strong> and let's you select the assets that are not needed to load on your website and combine the remaining loaded ones into fewer files, which will in the end reduce considerably the number of HTTP requests and optimize the front-end side of your pages. <a target="_blank" href="https://developer.yahoo.com/performance/rules.html"><?php _e('Read more',
|
14 |
<p>Once the setup is completed, the pages will have a better speed score since there will be less HTTP requests (.css & .js files) loaded by the browser (this can be tested using tools such as GTMetrix) and combined with a backend page caching system it will improve the page speed even more.
|
15 |
-
<p><?php _e('Page caching solutions include',
|
16 |
<ul style="font-size: 14px; list-style: disc; margin-left: 25px;">
|
17 |
-
<li style="line-height: 21px; margin-bottom: 15px;">A plugin such as <a target="_blank" href="https://gabelivan.com/visit/wp-rocket">WP Rocket</a> (get 20% off by using the <em>IMAGIFY20</em> coupon code) that creates static HTML files (which are lighter thanks to Asset CleanUp) and reads them avoiding PHP code processing within the active plugins & theme, including database queries which can use lots of server resources if you have high traffic. <?php echo sprintf(__('The page caching improves the %sTTFB%s (time to first byte) which measures the duration from the user or client making an HTTP request to the first byte of the page being received by the client\'s browser.',
|
18 |
<li style="line-height: 21px; margin-bottom: 20px;">
|
19 |
<?php echo sprintf(
|
20 |
-
__('A hosting service that has its in-built WordPress caching like %sWPEngine%s or Kinsta, a web application accelerator like Varnish that can be setup the server etc.',
|
21 |
'<a href="https://gabelivan.com/visit/wp-engine">',
|
22 |
'</a>'
|
23 |
); ?>
|
24 |
</li>
|
25 |
</ul>
|
26 |
|
27 |
-
<p style="line-height: normal;"><small><strong><?php _e('Disclaimer',
|
28 |
<hr />
|
29 |
<p class="area-title">Example (Stripping ~66% of "crap") <span style="font-size: 24px;">✨</span></p>
|
30 |
<p>Let's suppose you have a page where 30 files (CSS & JS) are loaded. All have a total size of 1.5 MB. Using Asset CleanUp, you can reduce the number to 12 files by unloading the other 18 files which are useless on the page. You've reduced the total size to 0.7 MB, this resulting in less time in downloading the assets, thus the page will load faster. If you also combine and minify the remaining 12 files, the total assets size becomes smaller to 0.5 MB. In the end, <strong>the assets will load 3 times faster and improve your page speed score</strong>. Moreover, the HTML source code will be cleaner and easier to go through in case you're a developer and need to do any debugging or just check something in the code.</p>
|
31 |
<hr />
|
32 |
-
<p class="area-title"><?php _e('Not sure how to configure it?',
|
33 |
-
<p><?php _e('No problem!',
|
6 |
exit;
|
7 |
}
|
8 |
?>
|
9 |
+
<p><?php _e('Often, our WordPress websites are loaded with elements that are not needed to load on specific pages or even everywhere.', 'wp-asset-clean-up'); ?> <?php _e('These assets (CSS & JavaScript files) as well as inline code are adding up to the total size of the page, thus taking more time for the page to load.', 'wp-asset-clean-up'); ?></p>
|
10 |
+
<p><?php _e('This could end up in a slow website that leads to page abandonment, poor ranking in Google search and sometimes conflict JavaScript errors where too many scripts are loading and one of them (or more) have poorly written code that is not autonomous and badly interacts with other code.', 'wp-asset-clean-up'); ?></p>
|
11 |
<hr />
|
12 |
+
<p class="area-title"><?php _e('What Asset CleanUp really does?', 'wp-asset-clean-up'); ?> <span style="font-size: 24px;">🚀</span></p>
|
13 |
+
<p>Asset CleanUp is a <strong>front-end optimisation performance plugin</strong> and let's you select the assets that are not needed to load on your website and combine the remaining loaded ones into fewer files, which will in the end reduce considerably the number of HTTP requests and optimize the front-end side of your pages. <a target="_blank" href="https://developer.yahoo.com/performance/rules.html"><?php _e('Read more', 'wp-asset-clean-up'); ?></a></p>
|
14 |
<p>Once the setup is completed, the pages will have a better speed score since there will be less HTTP requests (.css & .js files) loaded by the browser (this can be tested using tools such as GTMetrix) and combined with a backend page caching system it will improve the page speed even more.
|
15 |
+
<p><?php _e('Page caching solutions include', 'wp-asset-clean-up'); ?>:</p>
|
16 |
<ul style="font-size: 14px; list-style: disc; margin-left: 25px;">
|
17 |
+
<li style="line-height: 21px; margin-bottom: 15px;">A plugin such as <a target="_blank" href="https://gabelivan.com/visit/wp-rocket">WP Rocket</a> (get 20% off by using the <em>IMAGIFY20</em> coupon code) that creates static HTML files (which are lighter thanks to Asset CleanUp) and reads them avoiding PHP code processing within the active plugins & theme, including database queries which can use lots of server resources if you have high traffic. <?php echo sprintf(__('The page caching improves the %sTTFB%s (time to first byte) which measures the duration from the user or client making an HTTP request to the first byte of the page being received by the client\'s browser.', 'wp-asset-clean-up'), '<a href="http://gabelivan.com/visit/wp-rocket-ttfb">', '</a>'); ?></li>
|
18 |
<li style="line-height: 21px; margin-bottom: 20px;">
|
19 |
<?php echo sprintf(
|
20 |
+
__('A hosting service that has its in-built WordPress caching like %sWPEngine%s or Kinsta, a web application accelerator like Varnish that can be setup the server etc.', 'wp-asset-clean-up'),
|
21 |
'<a href="https://gabelivan.com/visit/wp-engine">',
|
22 |
'</a>'
|
23 |
); ?>
|
24 |
</li>
|
25 |
</ul>
|
26 |
|
27 |
+
<p style="line-height: normal;"><small><strong><?php _e('Disclaimer', 'wp-asset-clean-up'); ?>:</strong> <?php _e('The recommendations above are based from my own experience as a developer & user and I\'m happy to recommend them to whoever wants superior WordPress performance.', 'wp-asset-clean-up'); ?> <?php _e('The links are affiliate related and I might get a commission if you decide to make a purchase.', 'wp-asset-clean-up'); ?></small></p>
|
28 |
<hr />
|
29 |
<p class="area-title">Example (Stripping ~66% of "crap") <span style="font-size: 24px;">✨</span></p>
|
30 |
<p>Let's suppose you have a page where 30 files (CSS & JS) are loaded. All have a total size of 1.5 MB. Using Asset CleanUp, you can reduce the number to 12 files by unloading the other 18 files which are useless on the page. You've reduced the total size to 0.7 MB, this resulting in less time in downloading the assets, thus the page will load faster. If you also combine and minify the remaining 12 files, the total assets size becomes smaller to 0.5 MB. In the end, <strong>the assets will load 3 times faster and improve your page speed score</strong>. Moreover, the HTML source code will be cleaner and easier to go through in case you're a developer and need to do any debugging or just check something in the code.</p>
|
31 |
<hr />
|
32 |
+
<p class="area-title"><?php _e('Not sure how to configure it?', 'wp-asset-clean-up'); ?> <span style="font-size: 24px;">🤔</span></p>
|
33 |
+
<p><?php _e('No problem!', 'wp-asset-clean-up'); ?> <?php _e('You can enable "Test Mode" and any changes you make, will only be visible for you (the logged-in administrator), while the regular visitors will see the pages as if the plugin is not active.', 'wp-asset-clean-up'); ?> <?php _e('Once all is good, you can disable "Test Mode" (thus applying the settings to everyone), clear the page caching (if using a plugin or a server-side solution such as Varnish) and check out the page speed score.', 'wp-asset-clean-up'); ?> <a target="_blank" href="https://assetcleanup.com/docs/?p=84"><?php _e('Read more', 'wp-asset-clean-up'); ?></a></p>
|
templates/_admin-page-getting-started-areas/_lite-vs-pro.php
CHANGED
@@ -21,90 +21,95 @@ HTML;
|
|
21 |
</thead>
|
22 |
<tbody>
|
23 |
<tr>
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
25 |
<td><span class="txt-top">$</span><span class="txt-l">0</span></td>
|
26 |
<td><span class="txt-top">$</span><span class="txt-l">39</span></td>
|
27 |
</tr>
|
28 |
<tr>
|
29 |
-
<td><?php _e('Manage CSS & JavaScript files on Homepage, Posts, Pages & Custom Post Types (e.g. WooCommerce product pages, Easy Digital Downloads download items)',
|
30 |
<td><?php echo $svgTick; ?></td>
|
31 |
<td><?php echo $svgTick; ?></td>
|
32 |
</tr>
|
33 |
<tr>
|
34 |
-
<td><?php _e('Bulk Unloads: Everywhere (Site-Wide), On Specific Pages & Post Types, Add load exceptions',
|
35 |
<td><?php echo $svgTick; ?></td>
|
36 |
<td><?php echo $svgTick; ?></td>
|
37 |
</tr>
|
38 |
<tr>
|
39 |
-
<td><?php _e('Manage the CSS & JavaScript files within the Dashboard (default) and Front-end view (bottom of the page) if chosen',
|
40 |
<td><?php echo $svgTick; ?></td>
|
41 |
<td><?php echo $svgTick; ?></td>
|
42 |
</tr>
|
43 |
<tr>
|
44 |
-
<td><?php _e('Enable "Test Mode" to only apply the plugin\'s changes for the logged-in administrator for debugging purposes',
|
45 |
<td><?php echo $svgTick; ?></td>
|
46 |
<td><?php echo $svgTick; ?></td>
|
47 |
</tr>
|
48 |
<tr>
|
49 |
-
<td><?php _e('Minify remaining loaded CSS & JavaScript files (with option to add exceptions)',
|
50 |
<td><?php echo $svgTick; ?></td>
|
51 |
<td><?php echo $svgTick; ?></td>
|
52 |
</tr>
|
53 |
<tr>
|
54 |
-
<td><?php _e('Combine remaining loaded CSS & JavaScript files into fewer files from each <code><HEAD></code> and <code><BODY></code> location (with option to add exceptions)',
|
55 |
<td><?php echo $svgTick; ?></td>
|
56 |
<td><?php echo $svgTick; ?></td>
|
57 |
</tr>
|
58 |
<tr>
|
59 |
-
<td><?php echo sprintf(__('Remove unused elements from the <code><HEAD></code> and <code><BODY></code> including the following link tags: %s.',
|
60 |
<td><?php echo $svgTick; ?></td>
|
61 |
<td><?php echo $svgTick; ?></td>
|
62 |
</tr>
|
63 |
|
64 |
<tr>
|
65 |
-
<td><?php _e('Site-Wide Unload For Common Elements that are often unused such as: WordPress Emojis, jQuery Migrate, Comment Reply (if not using WP as a blog)',
|
66 |
<td><?php echo $svgTick; ?></td>
|
67 |
<td><?php echo $svgTick; ?></td>
|
68 |
</tr>
|
69 |
|
70 |
<tr>
|
71 |
-
<td><?php _e('Disable XML-RPC Protocol Support partially or completely',
|
72 |
<td><?php echo $svgTick; ?></td>
|
73 |
<td><?php echo $svgTick; ?></td>
|
74 |
</tr>
|
75 |
|
76 |
<tr>
|
77 |
-
<td><?php _e('Manage CSS & JavaScript files on Categories, Tags, Custom Taxonomy pages, Date & Author Archive Pages, Search Results & 404 Not Found pages',
|
78 |
<td><span class="na">❌</span></td>
|
79 |
<td><?php echo $svgTick; ?></td>
|
80 |
</tr>
|
81 |
<tr>
|
82 |
-
<td><?php _e('Move CSS & JavaScript files from <code><HEAD></code> to <code><BODY></code> (to reduce render-blocking) or vice-versa (for very early triggering)',
|
83 |
<td><span class="na">❌</span></td>
|
84 |
<td><?php echo $svgTick; ?></td>
|
85 |
</tr>
|
86 |
<tr>
|
87 |
-
<td><?php _e('Apply "async" and "defer" attributes to loaded JavaScript files',
|
88 |
<td><span class="na">❌</span></td>
|
89 |
<td><?php echo $svgTick; ?></td>
|
90 |
</tr>
|
91 |
<tr>
|
92 |
-
<td><?php _e('Show the file sizes for each loaded CSS & JavaScript file including external ones',
|
93 |
<td><span class="na">❌</span></td>
|
94 |
<td><?php echo $svgTick; ?></td>
|
95 |
</tr>
|
96 |
<tr>
|
97 |
-
<td><?php _e('Priority Customer Support',
|
98 |
<td><span class="na">❌</span></td>
|
99 |
<td><?php echo $svgTick; ?></td>
|
100 |
</tr>
|
101 |
<tr>
|
102 |
<td colspan="3" style="text-align: center; padding: 10px;">
|
103 |
<a class="button button-primary button-hero" href="<?php echo WPACU_PLUGIN_GO_PRO_URL; ?>?utm_source=plugin_getting_started&utm_medium=lite_vs_pro">
|
104 |
-
<span class="dashicons dashicons-star-filled" style="line-height: inherit;"></span> <?php _e('Upgrade to Pro to unlock all benefits',
|
105 |
|
106 |
<a class="button button-default button-hero" href="https://gabelivan.com/contact/">
|
107 |
-
<span class="dashicons dashicons-admin-comments" style="line-height: inherit;"></span> <?php _e('I have some questions',
|
108 |
</td>
|
109 |
</tr>
|
110 |
</tbody>
|
21 |
</thead>
|
22 |
<tbody>
|
23 |
<tr>
|
24 |
+
<td><strong><?php _e('License Price', 'wp-asset-clean-up'); ?></strong> <small>* <?php echo sprintf(
|
25 |
+
__('after the first year, you will save %s off the initial purchase price, and be charged only %s', 'wp-asset-clean-up'),
|
26 |
+
'30%',
|
27 |
+
'$27<sup>.30</sup>'
|
28 |
+
);
|
29 |
+
?></small></td>
|
30 |
<td><span class="txt-top">$</span><span class="txt-l">0</span></td>
|
31 |
<td><span class="txt-top">$</span><span class="txt-l">39</span></td>
|
32 |
</tr>
|
33 |
<tr>
|
34 |
+
<td><?php _e('Manage CSS & JavaScript files on Homepage, Posts, Pages & Custom Post Types (e.g. WooCommerce product pages, Easy Digital Downloads download items)', 'wp-asset-clean-up'); ?></td>
|
35 |
<td><?php echo $svgTick; ?></td>
|
36 |
<td><?php echo $svgTick; ?></td>
|
37 |
</tr>
|
38 |
<tr>
|
39 |
+
<td><?php _e('Bulk Unloads: Everywhere (Site-Wide), On Specific Pages & Post Types, Add load exceptions', 'wp-asset-clean-up'); ?></td>
|
40 |
<td><?php echo $svgTick; ?></td>
|
41 |
<td><?php echo $svgTick; ?></td>
|
42 |
</tr>
|
43 |
<tr>
|
44 |
+
<td><?php _e('Manage the CSS & JavaScript files within the Dashboard (default) and Front-end view (bottom of the page) if chosen', 'wp-asset-clean-up'); ?></td>
|
45 |
<td><?php echo $svgTick; ?></td>
|
46 |
<td><?php echo $svgTick; ?></td>
|
47 |
</tr>
|
48 |
<tr>
|
49 |
+
<td><?php _e('Enable "Test Mode" to only apply the plugin\'s changes for the logged-in administrator for debugging purposes', 'wp-asset-clean-up'); ?></td>
|
50 |
<td><?php echo $svgTick; ?></td>
|
51 |
<td><?php echo $svgTick; ?></td>
|
52 |
</tr>
|
53 |
<tr>
|
54 |
+
<td><?php _e('Minify remaining loaded CSS & JavaScript files (with option to add exceptions)', 'wp-asset-clean-up'); ?></td>
|
55 |
<td><?php echo $svgTick; ?></td>
|
56 |
<td><?php echo $svgTick; ?></td>
|
57 |
</tr>
|
58 |
<tr>
|
59 |
+
<td><?php _e('Combine remaining loaded CSS & JavaScript files into fewer files from each <code><HEAD></code> and <code><BODY></code> location (with option to add exceptions)', 'wp-asset-clean-up'); ?></td>
|
60 |
<td><?php echo $svgTick; ?></td>
|
61 |
<td><?php echo $svgTick; ?></td>
|
62 |
</tr>
|
63 |
<tr>
|
64 |
+
<td><?php echo sprintf(__('Remove unused elements from the <code><HEAD></code> and <code><BODY></code> including the following link tags: %s.', 'wp-asset-clean-up'), 'Really Simple Discovery (RSD), Windows Live Writer, REST API, Posts/Pages Shortlink, Post\'s Relational, WordPress Generators (also good for security), RSS Feed Links'); ?> <?php _e('Valid HTML comments are also stripped (exceptions can be added) while conditional Internet Explorer comments are preserved.', 'wp-asset-clean-up'); ?></td>
|
65 |
<td><?php echo $svgTick; ?></td>
|
66 |
<td><?php echo $svgTick; ?></td>
|
67 |
</tr>
|
68 |
|
69 |
<tr>
|
70 |
+
<td><?php _e('Site-Wide Unload For Common Elements that are often unused such as: WordPress Emojis, jQuery Migrate, Comment Reply (if not using WP as a blog)', 'wp-asset-clean-up'); ?></td>
|
71 |
<td><?php echo $svgTick; ?></td>
|
72 |
<td><?php echo $svgTick; ?></td>
|
73 |
</tr>
|
74 |
|
75 |
<tr>
|
76 |
+
<td><?php _e('Disable XML-RPC Protocol Support partially or completely', 'wp-asset-clean-up'); ?></td>
|
77 |
<td><?php echo $svgTick; ?></td>
|
78 |
<td><?php echo $svgTick; ?></td>
|
79 |
</tr>
|
80 |
|
81 |
<tr>
|
82 |
+
<td><?php _e('Manage CSS & JavaScript files on Categories, Tags, Custom Taxonomy pages, Date & Author Archive Pages, Search Results & 404 Not Found pages', 'wp-asset-clean-up'); ?></td>
|
83 |
<td><span class="na">❌</span></td>
|
84 |
<td><?php echo $svgTick; ?></td>
|
85 |
</tr>
|
86 |
<tr>
|
87 |
+
<td><?php _e('Move CSS & JavaScript files from <code><HEAD></code> to <code><BODY></code> (to reduce render-blocking) or vice-versa (for very early triggering)', 'wp-asset-clean-up'); ?></td>
|
88 |
<td><span class="na">❌</span></td>
|
89 |
<td><?php echo $svgTick; ?></td>
|
90 |
</tr>
|
91 |
<tr>
|
92 |
+
<td><?php _e('Apply "async" and "defer" attributes to loaded JavaScript files', 'wp-asset-clean-up'); ?></td>
|
93 |
<td><span class="na">❌</span></td>
|
94 |
<td><?php echo $svgTick; ?></td>
|
95 |
</tr>
|
96 |
<tr>
|
97 |
+
<td><?php _e('Show the file sizes for each loaded CSS & JavaScript file including external ones', 'wp-asset-clean-up'); ?></td>
|
98 |
<td><span class="na">❌</span></td>
|
99 |
<td><?php echo $svgTick; ?></td>
|
100 |
</tr>
|
101 |
<tr>
|
102 |
+
<td><?php _e('Priority Customer Support', 'wp-asset-clean-up'); ?></td>
|
103 |
<td><span class="na">❌</span></td>
|
104 |
<td><?php echo $svgTick; ?></td>
|
105 |
</tr>
|
106 |
<tr>
|
107 |
<td colspan="3" style="text-align: center; padding: 10px;">
|
108 |
<a class="button button-primary button-hero" href="<?php echo WPACU_PLUGIN_GO_PRO_URL; ?>?utm_source=plugin_getting_started&utm_medium=lite_vs_pro">
|
109 |
+
<span class="dashicons dashicons-star-filled" style="line-height: inherit;"></span> <?php _e('Upgrade to Pro to unlock all benefits', 'wp-asset-clean-up'); ?></a>
|
110 |
|
111 |
<a class="button button-default button-hero" href="https://gabelivan.com/contact/">
|
112 |
+
<span class="dashicons dashicons-admin-comments" style="line-height: inherit;"></span> <?php _e('I have some questions', 'wp-asset-clean-up'); ?></a>
|
113 |
</td>
|
114 |
</tr>
|
115 |
</tbody>
|
templates/_admin-page-getting-started-areas/_start-optimization.php
CHANGED
@@ -8,7 +8,7 @@ if (! isset($data)) {
|
|
8 |
?>
|
9 |
<p>For the <em>homepage</em>, you can go to "Asset CleanUp" -> "<a href="<?php echo admin_url('admin.php?page='.WPACU_PLUGIN_ID.'_assets_manager') ?>">Homepage</a>" from the plugin's menu and you will notice the list of all the styles &scripts files that are loading there. For each file, you will see options that you can enabled/disable.</p>
|
10 |
<p>For <em>posts, pages & custom post types</em>, you can edit the page within the Dashboard or via the front-end view (if you enabled the option in "Settings") and go to "Asset CleanUp" area where you can manage all the CSS & JS files loading on that post/page.</p>
|
11 |
-
<p>To view all the pages where Asset CleanUp can do optimization for, go to "<a href="<?php echo admin_url('admin.php?page='.WPACU_PLUGIN_ID.'_assets_manager&wpacu_for=all_other_pages'); ?>"><?php _e('Pages Info',
|
12 |
<hr />
|
13 |
|
14 |
<p style="font-size: 16px;"><strong>Common Example: "Contact Form 7" plugin</strong></p>
|
8 |
?>
|
9 |
<p>For the <em>homepage</em>, you can go to "Asset CleanUp" -> "<a href="<?php echo admin_url('admin.php?page='.WPACU_PLUGIN_ID.'_assets_manager') ?>">Homepage</a>" from the plugin's menu and you will notice the list of all the styles &scripts files that are loading there. For each file, you will see options that you can enabled/disable.</p>
|
10 |
<p>For <em>posts, pages & custom post types</em>, you can edit the page within the Dashboard or via the front-end view (if you enabled the option in "Settings") and go to "Asset CleanUp" area where you can manage all the CSS & JS files loading on that post/page.</p>
|
11 |
+
<p>To view all the pages where Asset CleanUp can do optimization for, go to "<a href="<?php echo admin_url('admin.php?page='.WPACU_PLUGIN_ID.'_assets_manager&wpacu_for=all_other_pages'); ?>"><?php _e('Pages Info', 'wp-asset-clean-up'); ?></a>".</p>
|
12 |
<hr />
|
13 |
|
14 |
<p style="font-size: 16px;"><strong>Common Example: "Contact Form 7" plugin</strong></p>
|
templates/_admin-page-getting-started-areas/_video-tutorials.php
CHANGED
@@ -12,7 +12,7 @@ if (! isset($data)) {
|
|
12 |
<iframe width="560" height="315" src="https://www.youtube.com/embed/ATXACFtcyKs" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
13 |
</div>
|
14 |
<div class="wpacu-col-right">
|
15 |
-
<p>If you are using heavy themes such as Avada, visual builders like Divi, Elementor, Beaver Builder or anything else that causes bloat, this tutorial will teach you optimizations which will significantly speed up ANY WordPress website. At around 07:21, the stripping of the "fat" topic is brought, followed by the setup of Asset CleanUp.</p>
|
16 |
<p>There are three main thing that typically degrade performance and make a WordPress website run slowly. Fix these, and you'll have a fast loading website:</p>
|
17 |
<ol>
|
18 |
<li>Plugins (and WordPress core) loads scripts and styles onto all pages of your site, even when they only need to be present on a single page.</li>
|
12 |
<iframe width="560" height="315" src="https://www.youtube.com/embed/ATXACFtcyKs" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
13 |
</div>
|
14 |
<div class="wpacu-col-right">
|
15 |
+
<p>If you are using heavy themes such as Avada, visual builders like Divi, Elementor, Beaver Builder or anything else that causes bloat, this tutorial will teach you optimizations which will significantly speed up ANY WordPress website. <strong>At around 07:21, the stripping of the "fat" topic is brought, followed by the setup of Asset CleanUp.</strong></p>
|
16 |
<p>There are three main thing that typically degrade performance and make a WordPress website run slowly. Fix these, and you'll have a fast loading website:</p>
|
17 |
<ol>
|
18 |
<li>Plugins (and WordPress core) loads scripts and styles onto all pages of your site, even when they only need to be present on a single page.</li>
|
templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php
CHANGED
@@ -7,13 +7,13 @@ if (! isset($data)) {
|
|
7 |
}
|
8 |
|
9 |
// [wpacu_lite]
|
10 |
-
$availableForPro = '<span class="wpacu-tooltip">'.__('Available for Pro users',
|
11 |
// [/wpacu_lite]
|
12 |
?>
|
13 |
-
<p>This page
|
14 |
|
15 |
<nav class="nav-tab-wrapper">
|
16 |
-
<a href="<?php echo admin_url('admin.php?page=wpassetcleanup_bulk_unloads'); ?>" class="nav-tab <?php if ($data['for'] === 'everywhere') { ?>nav-tab-active<?php } ?>"><?php _e('Everywhere',
|
17 |
<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 } ?>">Posts, Pages & Custom Post Types</a>
|
18 |
<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>
|
19 |
<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>
|
@@ -34,7 +34,7 @@ if ($data['for'] === 'post_types') {
|
|
34 |
<input type="hidden" name="page" value="wpassetcleanup_bulk_unloads" />
|
35 |
<input type="hidden" name="wpacu_for" value="post_types" />
|
36 |
|
37 |
-
<div style="margin: 0 0 10px 0;"><?php _e('Select the page or post type (including custom ones) for which you want to see the unloaded scripts & styles',
|
38 |
<select id="wpacu_post_type_select" name="wpacu_post_type">
|
39 |
<?php foreach ($data['post_types_list'] as $postTypeKey => $postTypeValue) { ?>
|
40 |
<option <?php if ($data['post_type'] === $postTypeKey) { echo 'selected="selected"'; } ?> value="<?php echo $postTypeKey; ?>"><?php echo $postTypeValue; ?></option>
|
@@ -57,7 +57,7 @@ if ($data['for'] === 'post_types') {
|
|
57 |
<p>If you want to remove this rule and have them loading, use the "Remove rule" checkbox.</p>
|
58 |
<div style="margin: 0; background: white; padding: 10px; border: 1px solid #ccc; width: auto; display: inline-block;">
|
59 |
<ul>
|
60 |
-
<li>This list fills once you select "<em>Unload
|
61 |
<li>On this page you can only remove the global rules that were added while editing the pages/posts.</li>
|
62 |
</ul>
|
63 |
</div>
|
@@ -66,14 +66,14 @@ if ($data['for'] === 'post_types') {
|
|
66 |
<div class="wpacu-clearfix"></div>
|
67 |
|
68 |
<div style="padding: 0 10px 0 0;">
|
69 |
-
<h3><?php _e('Styles',
|
70 |
<?php
|
71 |
if (! empty($data['values']['styles'])) {
|
72 |
?>
|
73 |
<table class="wp-list-table widefat fixed striped">
|
74 |
<tr>
|
75 |
<td><strong>Handle</strong></td>
|
76 |
-
<td><strong><?php _e('Actions',
|
77 |
</tr>
|
78 |
<?php
|
79 |
foreach ($data['values']['styles'] as $handle) {
|
@@ -94,19 +94,19 @@ if ($data['for'] === 'post_types') {
|
|
94 |
<?php
|
95 |
} else {
|
96 |
?>
|
97 |
-
<p><?php _e('There are no site-wide unloaded styles.',
|
98 |
<?php
|
99 |
}
|
100 |
?>
|
101 |
|
102 |
-
<h3><?php _e('Scripts',
|
103 |
<?php
|
104 |
if (! empty($data['values']['scripts'])) {
|
105 |
?>
|
106 |
<table class="wp-list-table widefat fixed striped">
|
107 |
<tr>
|
108 |
<td><strong>Handle</strong></td>
|
109 |
-
<td><strong><?php _e('Actions',
|
110 |
</tr>
|
111 |
<?php
|
112 |
foreach ($data['values']['scripts'] as $handle) {
|
@@ -117,7 +117,7 @@ if ($data['for'] === 'post_types') {
|
|
117 |
<label><input type="checkbox"
|
118 |
class="wpacu_remove_rule"
|
119 |
name="wpacu_options_scripts[<?php echo $handle; ?>]"
|
120 |
-
value="remove" /> <?php _e('Remove rule',
|
121 |
</td>
|
122 |
</tr>
|
123 |
<?php
|
@@ -127,7 +127,7 @@ if ($data['for'] === 'post_types') {
|
|
127 |
<?php
|
128 |
} else {
|
129 |
?>
|
130 |
-
<p><?php _e('There are no site-wide unloaded scripts.',
|
131 |
<?php
|
132 |
}
|
133 |
?>
|
@@ -151,14 +151,14 @@ if ($data['for'] === 'post_types') {
|
|
151 |
<div class="wpacu-clearfix"></div>
|
152 |
|
153 |
<div style="padding: 0 10px 0 0;">
|
154 |
-
<h3><?php _e('Styles',
|
155 |
<?php
|
156 |
if (! empty($data['values']['styles'])) {
|
157 |
?>
|
158 |
<table class="wp-list-table widefat fixed striped">
|
159 |
<tr>
|
160 |
<td><strong>Handle</strong></td>
|
161 |
-
<td><strong><?php _e('Actions',
|
162 |
</tr>
|
163 |
<?php
|
164 |
foreach ($data['values']['styles'] as $handle) {
|
@@ -169,7 +169,7 @@ if ($data['for'] === 'post_types') {
|
|
169 |
<label><input type="checkbox"
|
170 |
class="wpacu_remove_rule"
|
171 |
name="wpacu_options_post_type_styles[<?php echo $handle; ?>]"
|
172 |
-
value="remove" /> <?php _e('Remove rule',
|
173 |
</td>
|
174 |
</tr>
|
175 |
<?php
|
@@ -184,14 +184,14 @@ if ($data['for'] === 'post_types') {
|
|
184 |
}
|
185 |
?>
|
186 |
|
187 |
-
<h3><?php _e('Scripts',
|
188 |
<?php
|
189 |
if (! empty($data['values']['scripts'])) {
|
190 |
?>
|
191 |
<table class="wp-list-table widefat fixed striped">
|
192 |
<tr>
|
193 |
<td><strong>Handle</strong></td>
|
194 |
-
<td><strong><?php _e('Actions',
|
195 |
</tr>
|
196 |
<?php
|
197 |
foreach ($data['values']['scripts'] as $handle) {
|
@@ -202,7 +202,7 @@ if ($data['for'] === 'post_types') {
|
|
202 |
<label><input type="checkbox"
|
203 |
class="wpacu_remove_rule"
|
204 |
name="wpacu_options_post_type_scripts[<?php echo $handle; ?>]"
|
205 |
-
value="remove" /> <?php _e('Remove rule',
|
206 |
</td>
|
207 |
</tr>
|
208 |
<?php
|
@@ -248,11 +248,11 @@ if ($data['for'] === 'post_types') {
|
|
248 |
disabled="disabled"
|
249 |
<?php } ?>
|
250 |
class="button button-primary"
|
251 |
-
value="<?php esc_attr_e('Update',
|
252 |
<?php
|
253 |
if ($noAssetsToRemove) {
|
254 |
?>
|
255 |
-
<small><?php _e('Note: As there are no unloaded assets (scripts & styles) to be managed, the button is disabled.',
|
256 |
<?php
|
257 |
}
|
258 |
?>
|
7 |
}
|
8 |
|
9 |
// [wpacu_lite]
|
10 |
+
$availableForPro = '<span class="wpacu-tooltip">'.__('Available for Pro users', 'wp-asset-clean-up').'<br />'.__('Click to upgrade!', 'wp-asset-clean-up').'</span> <img style="opacity: 0.4;" width="20" height="20" src="'.WPACU_PLUGIN_URL.'/assets/icons/icon-lock.svg" valign="top" alt="" />';
|
11 |
// [/wpacu_lite]
|
12 |
?>
|
13 |
+
<p><span class="dashicons dashicons-info" style="color: #004567;"></span> This page is an overview of all the assets that have bulk changes applied such as <em>"Unload site-wide"</em> or <em>"Unload on All Pages of <strong>post</strong> post type"</em> etc. These are added when editing pages via the CSS/JS Load Manager. <strong>A bulk change is considered anything that is applied once and it has effect on multiple pages of the same kind or site-wide</strong>.</p>
|
14 |
|
15 |
<nav class="nav-tab-wrapper">
|
16 |
+
<a href="<?php echo admin_url('admin.php?page=wpassetcleanup_bulk_unloads'); ?>" class="nav-tab <?php if ($data['for'] === 'everywhere') { ?>nav-tab-active<?php } ?>"><?php _e('Everywhere', 'wp-asset-clean-up'); ?></a>
|
17 |
<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 } ?>">Posts, Pages & Custom Post Types</a>
|
18 |
<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>
|
19 |
<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>
|
34 |
<input type="hidden" name="page" value="wpassetcleanup_bulk_unloads" />
|
35 |
<input type="hidden" name="wpacu_for" value="post_types" />
|
36 |
|
37 |
+
<div style="margin: 0 0 10px 0;"><?php _e('Select the page or post type (including custom ones) for which you want to see the unloaded scripts & styles', 'wp-asset-clean-up'); ?>:</div>
|
38 |
<select id="wpacu_post_type_select" name="wpacu_post_type">
|
39 |
<?php foreach ($data['post_types_list'] as $postTypeKey => $postTypeValue) { ?>
|
40 |
<option <?php if ($data['post_type'] === $postTypeKey) { echo 'selected="selected"'; } ?> value="<?php echo $postTypeKey; ?>"><?php echo $postTypeValue; ?></option>
|
57 |
<p>If you want to remove this rule and have them loading, use the "Remove rule" checkbox.</p>
|
58 |
<div style="margin: 0; background: white; padding: 10px; border: 1px solid #ccc; width: auto; display: inline-block;">
|
59 |
<ul>
|
60 |
+
<li>This list fills once you select "<em>Unload site-wide</em>" when you edit posts/pages for the assets that you want to prevent from loading on every page.</li>
|
61 |
<li>On this page you can only remove the global rules that were added while editing the pages/posts.</li>
|
62 |
</ul>
|
63 |
</div>
|
66 |
<div class="wpacu-clearfix"></div>
|
67 |
|
68 |
<div style="padding: 0 10px 0 0;">
|
69 |
+
<h3><?php _e('Styles', 'wp-asset-clean-up'); ?></h3>
|
70 |
<?php
|
71 |
if (! empty($data['values']['styles'])) {
|
72 |
?>
|
73 |
<table class="wp-list-table widefat fixed striped">
|
74 |
<tr>
|
75 |
<td><strong>Handle</strong></td>
|
76 |
+
<td><strong><?php _e('Actions', 'wp-asset-clean-up'); ?></strong></td>
|
77 |
</tr>
|
78 |
<?php
|
79 |
foreach ($data['values']['styles'] as $handle) {
|
94 |
<?php
|
95 |
} else {
|
96 |
?>
|
97 |
+
<p><?php _e('There are no site-wide unloaded styles.', 'wp-asset-clean-up'); ?></p>
|
98 |
<?php
|
99 |
}
|
100 |
?>
|
101 |
|
102 |
+
<h3><?php _e('Scripts', 'wp-asset-clean-up'); ?></h3>
|
103 |
<?php
|
104 |
if (! empty($data['values']['scripts'])) {
|
105 |
?>
|
106 |
<table class="wp-list-table widefat fixed striped">
|
107 |
<tr>
|
108 |
<td><strong>Handle</strong></td>
|
109 |
+
<td><strong><?php _e('Actions', 'wp-asset-clean-up'); ?></strong></td>
|
110 |
</tr>
|
111 |
<?php
|
112 |
foreach ($data['values']['scripts'] as $handle) {
|
117 |
<label><input type="checkbox"
|
118 |
class="wpacu_remove_rule"
|
119 |
name="wpacu_options_scripts[<?php echo $handle; ?>]"
|
120 |
+
value="remove" /> <?php _e('Remove rule', 'wp-asset-clean-up'); ?></label>
|
121 |
</td>
|
122 |
</tr>
|
123 |
<?php
|
127 |
<?php
|
128 |
} else {
|
129 |
?>
|
130 |
+
<p><?php _e('There are no site-wide unloaded scripts.', 'wp-asset-clean-up'); ?></p>
|
131 |
<?php
|
132 |
}
|
133 |
?>
|
151 |
<div class="wpacu-clearfix"></div>
|
152 |
|
153 |
<div style="padding: 0 10px 0 0;">
|
154 |
+
<h3><?php _e('Styles', 'wp-asset-clean-up'); ?></h3>
|
155 |
<?php
|
156 |
if (! empty($data['values']['styles'])) {
|
157 |
?>
|
158 |
<table class="wp-list-table widefat fixed striped">
|
159 |
<tr>
|
160 |
<td><strong>Handle</strong></td>
|
161 |
+
<td><strong><?php _e('Actions', 'wp-asset-clean-up'); ?></strong></td>
|
162 |
</tr>
|
163 |
<?php
|
164 |
foreach ($data['values']['styles'] as $handle) {
|
169 |
<label><input type="checkbox"
|
170 |
class="wpacu_remove_rule"
|
171 |
name="wpacu_options_post_type_styles[<?php echo $handle; ?>]"
|
172 |
+
value="remove" /> <?php _e('Remove rule', 'wp-asset-clean-up'); ?></label>
|
173 |
</td>
|
174 |
</tr>
|
175 |
<?php
|
184 |
}
|
185 |
?>
|
186 |
|
187 |
+
<h3><?php _e('Scripts', 'wp-asset-clean-up'); ?></h3>
|
188 |
<?php
|
189 |
if (! empty($data['values']['scripts'])) {
|
190 |
?>
|
191 |
<table class="wp-list-table widefat fixed striped">
|
192 |
<tr>
|
193 |
<td><strong>Handle</strong></td>
|
194 |
+
<td><strong><?php _e('Actions', 'wp-asset-clean-up'); ?></strong></td>
|
195 |
</tr>
|
196 |
<?php
|
197 |
foreach ($data['values']['scripts'] as $handle) {
|
202 |
<label><input type="checkbox"
|
203 |
class="wpacu_remove_rule"
|
204 |
name="wpacu_options_post_type_scripts[<?php echo $handle; ?>]"
|
205 |
+
value="remove" /> <?php _e('Remove rule', 'wp-asset-clean-up'); ?></label>
|
206 |
</td>
|
207 |
</tr>
|
208 |
<?php
|
248 |
disabled="disabled"
|
249 |
<?php } ?>
|
250 |
class="button button-primary"
|
251 |
+
value="<?php esc_attr_e('Update', 'wp-asset-clean-up'); ?>" />
|
252 |
<?php
|
253 |
if ($noAssetsToRemove) {
|
254 |
?>
|
255 |
+
<small><?php _e('Note: As there are no unloaded assets (scripts & styles) to be managed, the button is disabled.', 'wp-asset-clean-up'); ?></small>
|
256 |
<?php
|
257 |
}
|
258 |
?>
|
templates/_admin-page-settings-plugin-areas/_combine-loaded-files.php
CHANGED
@@ -10,17 +10,17 @@ $tabIdArea = 'wpacu-setting-combine-loaded-files';
|
|
10 |
$styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-cell;"' : '';
|
11 |
?>
|
12 |
<div id="<?php echo $tabIdArea; ?>" class="wpacu-settings-tab-content" <?php echo $styleTabContent; ?>>
|
13 |
-
<h2 class="wpacu-settings-area-title"><?php echo __('Combine loaded CSS & JavaScript files into fewer files',
|
14 |
|
15 |
<div style="line-height: 22px; background: #f8f8f8; border-left: 4px solid #008f9c; padding: 10px; margin: 0 0 15px;">
|
16 |
-
<strong><?php _e('NOTE',
|
17 |
</div>
|
18 |
|
19 |
<table class="wpacu-form-table">
|
20 |
<tr valign="top">
|
21 |
<th scope="row" class="setting_title">
|
22 |
-
<label for="wpacu_combine_loaded_css_enable"><?php _e('Combine loaded CSS (Stylesheets) into one file',
|
23 |
-
<p class="wpacu_subtitle"><small><em><?php _e('Helps reducing the number of HTTP Requests even further',
|
24 |
</th>
|
25 |
<td>
|
26 |
<label class="wpacu_switch">
|
@@ -30,7 +30,7 @@ $styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-ce
|
|
30 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[combine_loaded_css]"
|
31 |
value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
|
32 |
|
33 |
-
|
34 |
|
35 |
<div id="combine_loaded_css_info_area" <?php if (in_array($data['combine_loaded_css'], array('for_admin', 'for_all', 1))) { ?> style="opacity: 1;" <?php } else { ?>style="opacity: 0.4;"<?php } ?>>
|
36 |
<p style="margin-top: 8px; padding: 10px; background: #f2faf2;">
|
@@ -42,12 +42,12 @@ $styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-ce
|
|
42 |
type="checkbox"
|
43 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[combine_loaded_css_for_admin_only]"
|
44 |
value="1" />
|
45 |
-
<?php _e('Apply combination only for logged-in administrator (for debugging purposes)',
|
46 |
</label>
|
47 |
</p>
|
48 |
|
49 |
<div id="wpacu_combine_loaded_css_exceptions_area">
|
50 |
-
<div style="margin: 0 0 6px;"><?php _e('Do not combine the CSS files matching the patterns below',
|
51 |
<label for="combine_loaded_css_exceptions">
|
52 |
<textarea style="width: 100%;"
|
53 |
rows="4"
|
@@ -65,7 +65,7 @@ $styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-ce
|
|
65 |
<p style="margin-bottom: -7px;"><span style="color: #ffc107;" class="dashicons dashicons-lightbulb"></span> The following stylesheets are not included in the combined CSS file for maximum performance:</p>
|
66 |
<ul style="list-style: disc; margin-left: 35px; margin-bottom: 0;">
|
67 |
<li>Have any <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content">preloading added to them</a> via <code>rel="preload"</code> will not be combined as they have priority in loading and shouldn't be mixed with the rest of the CSS.</li>
|
68 |
-
<li style="margin-bottom: 0;">Have a different media attribute than "screen" and "all". If the "print" attribute is there, it is for a reason and it's not added together with "all".</li>
|
69 |
</ul>
|
70 |
<p style="margin-bottom: -7px; margin-top: 20px;"><span style="color: #ffc107;" class="dashicons dashicons-lightbulb"></span> This feature will not work <strong>IF</strong>:</p>
|
71 |
<ul style="margin-left: 35px; list-style: disc;">
|
@@ -78,8 +78,8 @@ $styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-ce
|
|
78 |
|
79 |
<tr valign="top">
|
80 |
<th scope="row" class="setting_title">
|
81 |
-
<label for="wpacu_combine_loaded_js_enable"><?php _e('Combine loaded JS (JavaScript) into fewer files',
|
82 |
-
<p class="wpacu_subtitle"><small><em><?php _e('Helps reducing the number of HTTP Requests even further',
|
83 |
</th>
|
84 |
<td>
|
85 |
<label class="wpacu_switch">
|
@@ -89,7 +89,7 @@ $styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-ce
|
|
89 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[combine_loaded_js]"
|
90 |
value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
|
91 |
|
92 |
-
<small>* if
|
93 |
|
94 |
<div id="combine_loaded_js_info_area" <?php if (in_array($data['combine_loaded_js'], array('for_admin', 'for_all', 1))) { ?> style="opacity: 1;" <?php } else { ?>style="opacity: 0.4;"<?php } ?>>
|
95 |
<p style="margin-top: 8px; padding: 10px; background: #f2faf2;">
|
@@ -101,7 +101,7 @@ $styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-ce
|
|
101 |
type="checkbox"
|
102 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[combine_loaded_js_for_admin_only]"
|
103 |
value="1" />
|
104 |
-
<?php _e('Apply combination only for logged-in administrator',
|
105 |
</label>
|
106 |
</p>
|
107 |
|
@@ -119,7 +119,7 @@ $styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-ce
|
|
119 |
<hr />
|
120 |
|
121 |
<div id="wpacu_combine_loaded_js_exceptions_area">
|
122 |
-
<div style="margin: 0 0 6px;"><?php _e('Do not combine the JavaScript files matching the patterns below (one per line, see pattern examples below)',
|
123 |
<label for="combine_loaded_js_exceptions">
|
124 |
<textarea style="width: 100%;"
|
125 |
rows="4"
|
@@ -127,7 +127,7 @@ $styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-ce
|
|
127 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[combine_loaded_js_exceptions]"><?php echo $data['combine_loaded_js_exceptions']; ?></textarea>
|
128 |
</label>
|
129 |
|
130 |
-
<p><?php _e('Pattern Examples (you don\'t have to add the full URL, as it\'s recommended to use relative paths)',
|
131 |
<code>/wp-includes/js/admin-bar.min.js<br />/wp-includes/js/masonry.min.js<br />/wp-content/plugins/plugin-title/js/(.*?).js</code>
|
132 |
|
133 |
<div style="margin-top: 15px; margin-bottom: 0;"><hr /></div>
|
@@ -136,7 +136,7 @@ $styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-ce
|
|
136 |
<!--
|
137 |
-->
|
138 |
<p>
|
139 |
-
<?php _e('This results in as less JS combination groups as possible (this combines all JS files into 2/3 files, keeping their HEAD and BODY locations and most of the inline script tags before them for maximum compatibility)',
|
140 |
</p>
|
141 |
|
142 |
<hr />
|
@@ -161,10 +161,10 @@ $styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-ce
|
|
161 |
<div id="wpacu-combine-js-method-info" class="wpacu-modal">
|
162 |
<div class="wpacu-modal-content">
|
163 |
<span class="wpacu-close">×</span>
|
164 |
-
<h2><?php _e('How are the JavaScript files combined?',
|
165 |
-
<p style="margin-top: 0;"><?php _e('The plugin scans the remaining JavaScript files (left after cleaning up the unnecessary ones) from the <code><head></code> and <code><body></code> locations and combines them into one file per each location.',
|
166 |
-
<p><?php _e('Any inline JavaScript code associated with the combined scripts, will not be altered or moved in any way.',
|
167 |
-
<p><strong><?php _e('Example',
|
168 |
</div>
|
169 |
</div>
|
170 |
</td>
|
@@ -175,25 +175,25 @@ $styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-ce
|
|
175 |
<div id="wpacu-http2-info" class="wpacu-modal" style="padding-top: 100px;">
|
176 |
<div class="wpacu-modal-content" style="max-width: 800px;">
|
177 |
<span class="wpacu-close">×</span>
|
178 |
-
<h2 style="margin-top: 5px;"><?php _e('Combining CSS & JavaScript files in HTTP/2 protocol',
|
179 |
-
<p><?php _e('While it\'s still a good idea to combine assets into fewer (or only one) files in HTTP/1 (since you are restricted to the number of open connections), doing the same in HTTP/2 is no longer a performance optimization due to the ability to transfer multiple small files simultaneously without much overhead.',
|
180 |
|
181 |
<hr />
|
182 |
|
183 |
-
<p><?php _e('In HTTP/2 some of the issues that were addressed are',
|
184 |
<ul>
|
185 |
|
186 |
-
<li><strong>Multiplexing</strong>: <?php _e('allows concurrent requests across a single TCP connection',
|
187 |
-
<li><strong>Server Push</strong>: <?php _e('whereby a server can push vital resources to the browser before being asked for them.',
|
188 |
</ul>
|
189 |
|
190 |
<hr />
|
191 |
|
192 |
-
<p><?php _e('Since HTTP requests are loaded concurrently in HTTP/2, it\'s better to only serve the files that your visitors need and don\'t worry much about concatenation.',
|
193 |
-
<p><?php _e('Note that page speed testing tools such as PageSpeed Insights, YSlow, Pingdom Tools or GTMetrix still recommend combining CSS/JS files because they haven\'t updated their recommendations based on HTTP/1 or HTTP/2 protocols so you should take into account the actual load time, not the performance grade.',
|
194 |
|
195 |
<hr />
|
196 |
|
197 |
-
<p style="margin-bottom: 12px;"><?php _e('If you do decide to move on with the concatenation (which at least would improve the GTMetrix performance grade from a cosmetic point of view), please remember to <strong>test thoroughly</strong> the pages that have the assets combined (pay attention to any JavaScript errors in the browser\'s console which is accessed via right click & "Inspect") as, in rare cases, due to the order in which the scripts were loaded and the way their code was written, it could break some functionality.',
|
198 |
</div>
|
199 |
</div>
|
10 |
$styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-cell;"' : '';
|
11 |
?>
|
12 |
<div id="<?php echo $tabIdArea; ?>" class="wpacu-settings-tab-content" <?php echo $styleTabContent; ?>>
|
13 |
+
<h2 class="wpacu-settings-area-title"><?php echo __('Combine loaded CSS & JavaScript files into fewer files', 'wp-asset-clean-up'); ?></h2>
|
14 |
|
15 |
<div style="line-height: 22px; background: #f8f8f8; border-left: 4px solid #008f9c; padding: 10px; margin: 0 0 15px;">
|
16 |
+
<strong><?php _e('NOTE', 'wp-asset-clean-up'); ?>:</strong> <?php echo __('Concatenating assets is no longer a recommended practice in HTTP/2', 'wp-asset-clean-up'); ?>. <span style="color: #0073aa;" class="dashicons dashicons-info"></span> <a id="wpacu-http2-info-link" href="#wpacu-http2-info"><?php _e('Read more', 'wp-asset-clean-up'); ?></a> | <a target="_blank" href="https://tools.keycdn.com/http2-test"><?php _e('Verify if your server has HTTP/2 support', 'wp-asset-clean-up'); ?></a>
|
17 |
</div>
|
18 |
|
19 |
<table class="wpacu-form-table">
|
20 |
<tr valign="top">
|
21 |
<th scope="row" class="setting_title">
|
22 |
+
<label for="wpacu_combine_loaded_css_enable"><?php _e('Combine loaded CSS (Stylesheets) into one file', 'wp-asset-clean-up'); ?></label>
|
23 |
+
<p class="wpacu_subtitle"><small><em><?php _e('Helps reducing the number of HTTP Requests even further', 'wp-asset-clean-up'); ?></em></small></p>
|
24 |
</th>
|
25 |
<td>
|
26 |
<label class="wpacu_switch">
|
30 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[combine_loaded_css]"
|
31 |
value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
|
32 |
|
33 |
+
<small>* if <code style="font-size: inherit;"><?php echo '/'.str_replace(ABSPATH, '', WP_CONTENT_DIR) . \WpAssetCleanUp\OptimiseAssets\OptimizeCommon::getRelPathPluginCacheDir(); ?></code> directory is not writable for some reason, this feature will not work; requires the DOMDocument XML DOM Parser to be enabled in PHP (which it is by default) for maximum performance</small>
|
34 |
|
35 |
<div id="combine_loaded_css_info_area" <?php if (in_array($data['combine_loaded_css'], array('for_admin', 'for_all', 1))) { ?> style="opacity: 1;" <?php } else { ?>style="opacity: 0.4;"<?php } ?>>
|
36 |
<p style="margin-top: 8px; padding: 10px; background: #f2faf2;">
|
42 |
type="checkbox"
|
43 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[combine_loaded_css_for_admin_only]"
|
44 |
value="1" />
|
45 |
+
<?php _e('Apply combination only for logged-in administrator (for debugging purposes)', 'wp-asset-clean-up'); ?>
|
46 |
</label>
|
47 |
</p>
|
48 |
|
49 |
<div id="wpacu_combine_loaded_css_exceptions_area">
|
50 |
+
<div style="margin: 0 0 6px;"><?php _e('Do not combine the CSS files matching the patterns below', 'wp-asset-clean-up'); ?> (<?php _e('one per line', 'wp-asset-clean-up'); ?>):</div>
|
51 |
<label for="combine_loaded_css_exceptions">
|
52 |
<textarea style="width: 100%;"
|
53 |
rows="4"
|
65 |
<p style="margin-bottom: -7px;"><span style="color: #ffc107;" class="dashicons dashicons-lightbulb"></span> The following stylesheets are not included in the combined CSS file for maximum performance:</p>
|
66 |
<ul style="list-style: disc; margin-left: 35px; margin-bottom: 0;">
|
67 |
<li>Have any <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content">preloading added to them</a> via <code>rel="preload"</code> will not be combined as they have priority in loading and shouldn't be mixed with the rest of the CSS.</li>
|
68 |
+
<li style="margin-bottom: 0;">Have a different media attribute value than "screen" and "all". If the "print" attribute is there, it is for a reason and it's not added together with "all".</li>
|
69 |
</ul>
|
70 |
<p style="margin-bottom: -7px; margin-top: 20px;"><span style="color: #ffc107;" class="dashicons dashicons-lightbulb"></span> This feature will not work <strong>IF</strong>:</p>
|
71 |
<ul style="margin-left: 35px; list-style: disc;">
|
78 |
|
79 |
<tr valign="top">
|
80 |
<th scope="row" class="setting_title">
|
81 |
+
<label for="wpacu_combine_loaded_js_enable"><?php _e('Combine loaded JS (JavaScript) into fewer files', 'wp-asset-clean-up'); ?></label>
|
82 |
+
<p class="wpacu_subtitle"><small><em><?php _e('Helps reducing the number of HTTP Requests even further', 'wp-asset-clean-up'); ?></em></small></p>
|
83 |
</th>
|
84 |
<td>
|
85 |
<label class="wpacu_switch">
|
89 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[combine_loaded_js]"
|
90 |
value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
|
91 |
|
92 |
+
<small>* if <code style="font-size: inherit;"><?php echo '/'.str_replace(ABSPATH, '', WP_CONTENT_DIR) . \WpAssetCleanUp\OptimiseAssets\OptimizeCommon::getRelPathPluginCacheDir(); ?></code> directory is not writable for some reason, this feature will not work; requires the DOMDocument XML DOM Parser to be enabled in PHP (which it is by default) for maximum performance</small>
|
93 |
|
94 |
<div id="combine_loaded_js_info_area" <?php if (in_array($data['combine_loaded_js'], array('for_admin', 'for_all', 1))) { ?> style="opacity: 1;" <?php } else { ?>style="opacity: 0.4;"<?php } ?>>
|
95 |
<p style="margin-top: 8px; padding: 10px; background: #f2faf2;">
|
101 |
type="checkbox"
|
102 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[combine_loaded_js_for_admin_only]"
|
103 |
value="1" />
|
104 |
+
<?php _e('Apply combination only for logged-in administrator', 'wp-asset-clean-up'); ?> (<?php _e('for debugging purposes', 'wp-asset-clean-up'); ?>)
|
105 |
</label>
|
106 |
</p>
|
107 |
|
119 |
<hr />
|
120 |
|
121 |
<div id="wpacu_combine_loaded_js_exceptions_area">
|
122 |
+
<div style="margin: 0 0 6px;"><?php _e('Do not combine the JavaScript files matching the patterns below (one per line, see pattern examples below)', 'wp-asset-clean-up'); ?>:</div>
|
123 |
<label for="combine_loaded_js_exceptions">
|
124 |
<textarea style="width: 100%;"
|
125 |
rows="4"
|
127 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[combine_loaded_js_exceptions]"><?php echo $data['combine_loaded_js_exceptions']; ?></textarea>
|
128 |
</label>
|
129 |
|
130 |
+
<p><?php _e('Pattern Examples (you don\'t have to add the full URL, as it\'s recommended to use relative paths)', 'wp-asset-clean-up'); ?>:</p>
|
131 |
<code>/wp-includes/js/admin-bar.min.js<br />/wp-includes/js/masonry.min.js<br />/wp-content/plugins/plugin-title/js/(.*?).js</code>
|
132 |
|
133 |
<div style="margin-top: 15px; margin-bottom: 0;"><hr /></div>
|
136 |
<!--
|
137 |
-->
|
138 |
<p>
|
139 |
+
<?php _e('This results in as less JS combination groups as possible (this combines all JS files into 2/3 files, keeping their HEAD and BODY locations and most of the inline script tags before them for maximum compatibility)', 'wp-asset-clean-up'); ?> - <a id="wpacu-combine-js-method-info-link" href="#wpacu-combine-js-method-info"><?php _e('Read more', 'wp-asset-clean-up'); ?></a>
|
140 |
</p>
|
141 |
|
142 |
<hr />
|
161 |
<div id="wpacu-combine-js-method-info" class="wpacu-modal">
|
162 |
<div class="wpacu-modal-content">
|
163 |
<span class="wpacu-close">×</span>
|
164 |
+
<h2><?php _e('How are the JavaScript files combined?', 'wp-asset-clean-up'); ?></h2>
|
165 |
+
<p style="margin-top: 0;"><?php _e('The plugin scans the remaining JavaScript files (left after cleaning up the unnecessary ones) from the <code><head></code> and <code><body></code> locations and combines them into one file per each location.', 'wp-asset-clean-up'); ?></p>
|
166 |
+
<p><?php _e('Any inline JavaScript code associated with the combined scripts, will not be altered or moved in any way.', 'wp-asset-clean-up'); ?></p>
|
167 |
+
<p><strong><?php _e('Example', 'wp-asset-clean-up'); ?>:</strong> <?php _e('If you have 5 JS files (including jQuery library) loading in the <code><head></code> location and 7 JS files loading in <code><body></code> location, you will end up with a total of 3 JS files: jQuery library & jQuery Migrate (they are not combined together with other JS files for maximum performance) in 1 file and the 2 JS files for HEAD and BODY, respectively.', 'wp-asset-clean-up'); ?></p>
|
168 |
</div>
|
169 |
</div>
|
170 |
</td>
|
175 |
<div id="wpacu-http2-info" class="wpacu-modal" style="padding-top: 100px;">
|
176 |
<div class="wpacu-modal-content" style="max-width: 800px;">
|
177 |
<span class="wpacu-close">×</span>
|
178 |
+
<h2 style="margin-top: 5px;"><?php _e('Combining CSS & JavaScript files in HTTP/2 protocol', 'wp-asset-clean-up'); ?></h2>
|
179 |
+
<p><?php _e('While it\'s still a good idea to combine assets into fewer (or only one) files in HTTP/1 (since you are restricted to the number of open connections), doing the same in HTTP/2 is no longer a performance optimization due to the ability to transfer multiple small files simultaneously without much overhead.', 'wp-asset-clean-up'); ?></p>
|
180 |
|
181 |
<hr />
|
182 |
|
183 |
+
<p><?php _e('In HTTP/2 some of the issues that were addressed are', 'wp-asset-clean-up'); ?>:</p>
|
184 |
<ul>
|
185 |
|
186 |
+
<li><strong>Multiplexing</strong>: <?php _e('allows concurrent requests across a single TCP connection', 'wp-asset-clean-up'); ?></li>
|
187 |
+
<li><strong>Server Push</strong>: <?php _e('whereby a server can push vital resources to the browser before being asked for them.', 'wp-asset-clean-up'); ?></li>
|
188 |
</ul>
|
189 |
|
190 |
<hr />
|
191 |
|
192 |
+
<p><?php _e('Since HTTP requests are loaded concurrently in HTTP/2, it\'s better to only serve the files that your visitors need and don\'t worry much about concatenation.', 'wp-asset-clean-up'); ?></p>
|
193 |
+
<p><?php _e('Note that page speed testing tools such as PageSpeed Insights, YSlow, Pingdom Tools or GTMetrix still recommend combining CSS/JS files because they haven\'t updated their recommendations based on HTTP/1 or HTTP/2 protocols so you should take into account the actual load time, not the performance grade.', 'wp-asset-clean-up'); ?></p>
|
194 |
|
195 |
<hr />
|
196 |
|
197 |
+
<p style="margin-bottom: 12px;"><?php _e('If you do decide to move on with the concatenation (which at least would improve the GTMetrix performance grade from a cosmetic point of view), please remember to <strong>test thoroughly</strong> the pages that have the assets combined (pay attention to any JavaScript errors in the browser\'s console which is accessed via right click & "Inspect") as, in rare cases, due to the order in which the scripts were loaded and the way their code was written, it could break some functionality.', 'wp-asset-clean-up'); ?></p>
|
198 |
</div>
|
199 |
</div>
|
templates/_admin-page-settings-plugin-areas/_common-files-unload.php
CHANGED
@@ -10,13 +10,13 @@ $tabIdArea = 'wpacu-setting-common-files-unload';
|
|
10 |
$styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-cell;"' : '';
|
11 |
?>
|
12 |
<div id="<?php echo $tabIdArea; ?>" class="wpacu-settings-tab-content" <?php echo $styleTabContent; ?>>
|
13 |
-
<h2 class="wpacu-settings-area-title"><?php _e('Site-Wide Unload For Common CSS & JS Files',
|
14 |
-
<p><?php _e('This area allows you to quickly add the rule "Unload Site-wide" for the scripts below, which are often used in WordPress environments.',
|
15 |
<table class="wpacu-form-table">
|
16 |
<tr valign="top">
|
17 |
<th scope="row" class="setting_title">
|
18 |
-
<label for="wpacu_disable_emojis"><?php echo sprintf(__('Disable %s Site-Wide',
|
19 |
-
<p class="wpacu_subtitle"><small><em><?php echo sprintf(__('It will fallback to the default browser\'s Emojis and not fetch the ones from %s',
|
20 |
</th>
|
21 |
<td>
|
22 |
<label class="wpacu_switch">
|
@@ -26,14 +26,14 @@ $styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-ce
|
|
26 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[disable_emojis]"
|
27 |
value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
|
28 |
|
29 |
-
<?php echo sprintf(__('This will unload %s',
|
30 |
-
<p style="margin-top: 10px;"><?php _e('As of WordPress 4.2, a new feature was introduced that allows you to use the new Emojis.',
|
31 |
</td>
|
32 |
</tr>
|
33 |
|
34 |
<tr valign="top">
|
35 |
<th scope="row">
|
36 |
-
<label for="wpacu_disable_jquery_migrate"><?php echo sprintf(__('Disable %s Site-Wide',
|
37 |
</th>
|
38 |
<td>
|
39 |
<label class="wpacu_switch">
|
@@ -42,14 +42,14 @@ $styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-ce
|
|
42 |
name="<?php echo WPACU_PLUGIN_ID . '_global_unloads'; ?>[disable_jquery_migrate]"
|
43 |
value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
|
44 |
|
45 |
-
<?php echo sprintf(__('This will unload %s',
|
46 |
-
<p style="margin-top: 10px;"><?php _e('This is a JavaScript library that allows older jQuery code (up to version jQuery 1.9) to run on the latest version of jQuery avoiding incompatibility problems. Unless your website is using an old theme or has a jQuery plugin that was written a long time ago, this file is likely not needed to load. Consider disabling it to improve page loading time. Make sure to properly test the website.',
|
47 |
</td>
|
48 |
</tr>
|
49 |
|
50 |
<tr valign="top">
|
51 |
<th scope="row">
|
52 |
-
<label for="wpacu_disable_comment_reply"><?php echo sprintf(__('Disable %s Site-Wide',
|
53 |
</th>
|
54 |
<td>
|
55 |
<label class="wpacu_switch">
|
@@ -58,8 +58,8 @@ $styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-ce
|
|
58 |
name="<?php echo WPACU_PLUGIN_ID . '_global_unloads'; ?>[disable_comment_reply]"
|
59 |
value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
|
60 |
|
61 |
-
<?php echo sprintf(__('This will unload %s',
|
62 |
-
<p style="margin-top: 10px;"><?php _e('This is safe to unload if you\'re not using WordPress as a blog, do not want visitors to leave comments or you\'ve replaced the default WordPress comments with a comment platform such as Disqus or Facebook.',
|
63 |
</td>
|
64 |
</tr>
|
65 |
</table>
|
10 |
$styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-cell;"' : '';
|
11 |
?>
|
12 |
<div id="<?php echo $tabIdArea; ?>" class="wpacu-settings-tab-content" <?php echo $styleTabContent; ?>>
|
13 |
+
<h2 class="wpacu-settings-area-title"><?php _e('Site-Wide Unload For Common CSS & JS Files', 'wp-asset-clean-up'); ?></h2>
|
14 |
+
<p><?php _e('This area allows you to quickly add the rule "Unload Site-wide" for the scripts below, which are often used in WordPress environments.', 'wp-asset-clean-up'); ?></p>
|
15 |
<table class="wpacu-form-table">
|
16 |
<tr valign="top">
|
17 |
<th scope="row" class="setting_title">
|
18 |
+
<label for="wpacu_disable_emojis"><?php echo sprintf(__('Disable %s Site-Wide', 'wp-asset-clean-up'), 'Emojis'); ?></label>
|
19 |
+
<p class="wpacu_subtitle"><small><em><?php echo sprintf(__('It will fallback to the default browser\'s Emojis and not fetch the ones from %s', 'wp-asset-clean-up'), 'https://s.w.org/'); ?></em></small></p>
|
20 |
</th>
|
21 |
<td>
|
22 |
<label class="wpacu_switch">
|
26 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[disable_emojis]"
|
27 |
value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
|
28 |
|
29 |
+
<?php echo sprintf(__('This will unload %s', 'wp-asset-clean-up'), 'WordPress\' Emojis'); ?> (the smiley icons)
|
30 |
+
<p style="margin-top: 10px;"><?php _e('As of WordPress 4.2, a new feature was introduced that allows you to use the new Emojis.', 'wp-asset-clean-up'); ?> <?php echo sprintf(__('While on some WordPress setups is useful, in many situations (especially when you are not using WordPress as a blog), you just don’t need them and the file %s is loaded along with extra inline JavaScript code which add up to the number of loaded HTTP requests.', 'wp-asset-clean-up'), '/wp-includes/js/wp-emoji-release.min.js'); ?></p>
|
31 |
</td>
|
32 |
</tr>
|
33 |
|
34 |
<tr valign="top">
|
35 |
<th scope="row">
|
36 |
+
<label for="wpacu_disable_jquery_migrate"><?php echo sprintf(__('Disable %s Site-Wide', 'wp-asset-clean-up'), 'jQuery Migrate'); ?> <span style="color: #cc0000;" class="dashicons dashicons-warning wordpress-core-file"><span class="wpacu-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></label>
|
37 |
</th>
|
38 |
<td>
|
39 |
<label class="wpacu_switch">
|
42 |
name="<?php echo WPACU_PLUGIN_ID . '_global_unloads'; ?>[disable_jquery_migrate]"
|
43 |
value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
|
44 |
|
45 |
+
<?php echo sprintf(__('This will unload %s', 'wp-asset-clean-up'), 'jQuery Migrate'); ?> (<em>jquery-migrate(.min).js</em>)
|
46 |
+
<p style="margin-top: 10px;"><?php _e('This is a JavaScript library that allows older jQuery code (up to version jQuery 1.9) to run on the latest version of jQuery avoiding incompatibility problems. Unless your website is using an old theme or has a jQuery plugin that was written a long time ago, this file is likely not needed to load. Consider disabling it to improve page loading time. Make sure to properly test the website.', 'wp-asset-clean-up'); ?></p>
|
47 |
</td>
|
48 |
</tr>
|
49 |
|
50 |
<tr valign="top">
|
51 |
<th scope="row">
|
52 |
+
<label for="wpacu_disable_comment_reply"><?php echo sprintf(__('Disable %s Site-Wide', 'wp-asset-clean-up'), 'Comment Reply'); ?> <span style="color: #cc0000;" class="dashicons dashicons-warning wordpress-core-file"><span class="wpacu-tooltip">WordPress Core File<br /><?php _e('Not sure if needed or not? In this case, it\'s better to leave it loaded to avoid breaking the website.', 'wp-asset-clean-up'); ?></span></span></label>
|
53 |
</th>
|
54 |
<td>
|
55 |
<label class="wpacu_switch">
|
58 |
name="<?php echo WPACU_PLUGIN_ID . '_global_unloads'; ?>[disable_comment_reply]"
|
59 |
value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
|
60 |
|
61 |
+
<?php echo sprintf(__('This will unload %s', 'wp-asset-clean-up'), 'Comment Reply'); ?> (<em>/wp-includes/js/comment-reply(.min).js</em>)
|
62 |
+
<p style="margin-top: 10px;"><?php _e('This is safe to unload if you\'re not using WordPress as a blog, do not want visitors to leave comments or you\'ve replaced the default WordPress comments with a comment platform such as Disqus or Facebook.', 'wp-asset-clean-up'); ?></p>
|
63 |
</td>
|
64 |
</tr>
|
65 |
</table>
|
templates/_admin-page-settings-plugin-areas/_disable-xml-rpc-protocol.php
CHANGED
@@ -10,7 +10,7 @@ $tabIdArea = 'wpacu-setting-disable-xml-rpc';
|
|
10 |
$styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-cell;"' : '';
|
11 |
?>
|
12 |
<div id="<?php echo $tabIdArea; ?>" class="wpacu-settings-tab-content" <?php echo $styleTabContent; ?>>
|
13 |
-
<h2 class="wpacu-settings-area-title"><?php _e('Disable XML-RPC Protocol Support partially or completely',
|
14 |
<table class="wpacu-form-table">
|
15 |
<!-- Disable "XML-RPC" protocol support? -->
|
16 |
<tr valign="top">
|
10 |
$styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-cell;"' : '';
|
11 |
?>
|
12 |
<div id="<?php echo $tabIdArea; ?>" class="wpacu-settings-tab-content" <?php echo $styleTabContent; ?>>
|
13 |
+
<h2 class="wpacu-settings-area-title"><?php _e('Disable XML-RPC Protocol Support partially or completely', 'wp-asset-clean-up'); ?></h2>
|
14 |
<table class="wpacu-form-table">
|
15 |
<!-- Disable "XML-RPC" protocol support? -->
|
16 |
<tr valign="top">
|
templates/_admin-page-settings-plugin-areas/_html-source-cleanup.php
CHANGED
@@ -10,7 +10,7 @@ $tabIdArea = 'wpacu-setting-html-source-cleanup';
|
|
10 |
$styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-cell;"' : '';
|
11 |
?>
|
12 |
<div id="<?php echo $tabIdArea; ?>" class="wpacu-settings-tab-content" <?php echo $styleTabContent; ?>>
|
13 |
-
<h2 class="wpacu-settings-area-title"><?php _e('Remove unused elements from the <head> section',
|
14 |
|
15 |
<p>There are elements that are enabled by default in many WordPress environments, but not necessary to be enabled. Cleanup the unnecessary code between <code><head></code> and <code></head></code>.</p>
|
16 |
<table class="wpacu-form-table">
|
@@ -173,7 +173,7 @@ $styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-ce
|
|
173 |
|
174 |
<hr />
|
175 |
|
176 |
-
<h2><?php _e('Remove extra elements from the generated page source',
|
177 |
|
178 |
<table class="wpacu-form-table">
|
179 |
<tr valign="top">
|
10 |
$styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-cell;"' : '';
|
11 |
?>
|
12 |
<div id="<?php echo $tabIdArea; ?>" class="wpacu-settings-tab-content" <?php echo $styleTabContent; ?>>
|
13 |
+
<h2 class="wpacu-settings-area-title"><?php _e('Remove unused elements from the <head> section', 'wp-asset-clean-up'); ?></h2>
|
14 |
|
15 |
<p>There are elements that are enabled by default in many WordPress environments, but not necessary to be enabled. Cleanup the unnecessary code between <code><head></code> and <code></head></code>.</p>
|
16 |
<table class="wpacu-form-table">
|
173 |
|
174 |
<hr />
|
175 |
|
176 |
+
<h2><?php _e('Remove extra elements from the generated page source', 'wp-asset-clean-up'); ?></h2>
|
177 |
|
178 |
<table class="wpacu-form-table">
|
179 |
<tr valign="top">
|
templates/_admin-page-settings-plugin-areas/_minify-loaded-files.php
CHANGED
@@ -10,12 +10,12 @@ $tabIdArea = 'wpacu-setting-minify-loaded-files';
|
|
10 |
$styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-cell;"' : '';
|
11 |
?>
|
12 |
<div id="<?php echo $tabIdArea; ?>" class="wpacu-settings-tab-content" <?php echo $styleTabContent; ?>>
|
13 |
-
<h2 class="wpacu-settings-area-title"><?php _e('Minify loaded CSS & JavaScript files to reduce total page size',
|
14 |
<table class="wpacu-form-table">
|
15 |
<tr valign="top">
|
16 |
<th scope="row" class="setting_title">
|
17 |
-
<label for="wpacu_minify_css_enable"><?php _e('CSS Files Minification',
|
18 |
-
<p class="wpacu_subtitle"><small><em><?php _e('Helps decrease the total page size even further',
|
19 |
</th>
|
20 |
<td>
|
21 |
<label class="wpacu_switch">
|
@@ -25,14 +25,14 @@ $styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-ce
|
|
25 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[minify_loaded_css]"
|
26 |
value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
|
27 |
|
28 |
-
<?php _e('This will take the remaining enqueued CSS files, minify them and load them from the cache.',
|
29 |
|
30 |
<?php
|
31 |
$minifyCssExceptionsAreaStyle = ($data['minify_loaded_css'] == 1) ? 'opacity: 1;' : 'opacity: 0.4;';
|
32 |
?>
|
33 |
|
34 |
<div id="wpacu_minify_css_exceptions_area" style="<?php echo $minifyCssExceptionsAreaStyle; ?>">
|
35 |
-
<div style="margin: 0 0 6px;"><?php _e('Do not minify the CSS files matching the patterns below (one per line)',
|
36 |
<label for="wpacu_minify_css_exceptions">
|
37 |
<textarea style="width: 100%;"
|
38 |
rows="4"
|
@@ -46,8 +46,8 @@ $styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-ce
|
|
46 |
|
47 |
<tr valign="top">
|
48 |
<th scope="row" class="setting_title">
|
49 |
-
<label for="wpacu_minify_js_enable"><?php _e('JavaScript Files Minification',
|
50 |
-
<p class="wpacu_subtitle"><small><em><?php _e('Helps decrease the total page size even further',
|
51 |
</th>
|
52 |
<td>
|
53 |
<label class="wpacu_switch">
|
@@ -56,14 +56,14 @@ $styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-ce
|
|
56 |
<?php echo (($data['minify_loaded_js'] == 1) ? 'checked="checked"' : ''); ?>
|
57 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[minify_loaded_js]"
|
58 |
value="1" /> <span class="wpacu_slider wpacu_round"></span></label>
|
59 |
-
<?php _e('This will take the remaining enqueued JavaScript files, minify them and load them from the cache.',
|
60 |
|
61 |
<?php
|
62 |
$minifyJsExceptionsAreaStyle = ($data['minify_loaded_js'] == 1) ? 'opacity: 1;' : 'opacity: 0.4;';
|
63 |
?>
|
64 |
|
65 |
<div id="wpacu_minify_js_exceptions_area" style="<?php echo $minifyJsExceptionsAreaStyle; ?>">
|
66 |
-
<div style="margin: 0 0 6px;"><?php _e('Do not minify the JavaScript files matching the patterns below (one per line)',
|
67 |
<label for="wpacu_minify_js_exceptions">
|
68 |
<textarea style="width: 100%;"
|
69 |
rows="4"
|
@@ -80,11 +80,11 @@ $styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-ce
|
|
80 |
|
81 |
<ul style="list-style: none; margin-left: 18px;">
|
82 |
<li style="margin-bottom: 18px;"><span style="color: #ffc107;" class="dashicons dashicons-lightbulb"></span> The CSS/JS cached files will be re-generated once the file version changes (the value from <code>?ver=</code>). In addition, the versioning value from the source will be appended to the new cached CSS/JS file name (e.g. new-file-name-here-ver-1.2).</li>
|
83 |
-
<li><span style="color: #ffc107;" class="dashicons dashicons-lightbulb"></span> <?php _e('For maximum performance and to reduce server resources, the following CSS/JS files will not be minified, but kept as they are, since they are already optimised and minified by the WordPress core contributors & developers',
|
84 |
<div style="margin: 15px 0 0 28px;">
|
85 |
<ul style="list-style: circle;">
|
86 |
<li>CSS/JS WordPress core files that end up in .min.css and .min.js (e.g. <code>/wp-includes/css/dashicons.min.css</code>, <code>/wp-includes/css/admin-bar.min.css</code>, <code>/wp-includes/js/jquery/jquery-migrate.min.js</code>, <code>/wp-includes/js/jquery/ui/datepicker.min.js</code> etc.)</li>
|
87 |
-
<li><?php echo sprintf(__('jQuery library from %s',
|
88 |
</ul>
|
89 |
</div>
|
90 |
</li>
|
10 |
$styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-cell;"' : '';
|
11 |
?>
|
12 |
<div id="<?php echo $tabIdArea; ?>" class="wpacu-settings-tab-content" <?php echo $styleTabContent; ?>>
|
13 |
+
<h2 class="wpacu-settings-area-title"><?php _e('Minify loaded CSS & JavaScript files to reduce total page size', 'wp-asset-clean-up'); ?></h2>
|
14 |
<table class="wpacu-form-table">
|
15 |
<tr valign="top">
|
16 |
<th scope="row" class="setting_title">
|
17 |
+
<label for="wpacu_minify_css_enable"><?php _e('CSS Files Minification', 'wp-asset-clean-up'); ?></label>
|
18 |
+
<p class="wpacu_subtitle"><small><em><?php _e('Helps decrease the total page size even further', 'wp-asset-clean-up'); ?></em></small></p>
|
19 |
</th>
|
20 |
<td>
|
21 |
<label class="wpacu_switch">
|
25 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[minify_loaded_css]"
|
26 |
value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
|
27 |
|
28 |
+
<?php _e('This will take the remaining enqueued CSS files, minify them and load them from the cache.', 'wp-asset-clean-up'); ?>
|
29 |
|
30 |
<?php
|
31 |
$minifyCssExceptionsAreaStyle = ($data['minify_loaded_css'] == 1) ? 'opacity: 1;' : 'opacity: 0.4;';
|
32 |
?>
|
33 |
|
34 |
<div id="wpacu_minify_css_exceptions_area" style="<?php echo $minifyCssExceptionsAreaStyle; ?>">
|
35 |
+
<div style="margin: 0 0 6px;"><?php _e('Do not minify the CSS files matching the patterns below (one per line)', 'wp-asset-clean-up'); ?>:</div>
|
36 |
<label for="wpacu_minify_css_exceptions">
|
37 |
<textarea style="width: 100%;"
|
38 |
rows="4"
|
46 |
|
47 |
<tr valign="top">
|
48 |
<th scope="row" class="setting_title">
|
49 |
+
<label for="wpacu_minify_js_enable"><?php _e('JavaScript Files Minification', 'wp-asset-clean-up'); ?></label>
|
50 |
+
<p class="wpacu_subtitle"><small><em><?php _e('Helps decrease the total page size even further', 'wp-asset-clean-up'); ?></em></small></p>
|
51 |
</th>
|
52 |
<td>
|
53 |
<label class="wpacu_switch">
|
56 |
<?php echo (($data['minify_loaded_js'] == 1) ? 'checked="checked"' : ''); ?>
|
57 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[minify_loaded_js]"
|
58 |
value="1" /> <span class="wpacu_slider wpacu_round"></span></label>
|
59 |
+
<?php _e('This will take the remaining enqueued JavaScript files, minify them and load them from the cache.', 'wp-asset-clean-up'); ?>
|
60 |
|
61 |
<?php
|
62 |
$minifyJsExceptionsAreaStyle = ($data['minify_loaded_js'] == 1) ? 'opacity: 1;' : 'opacity: 0.4;';
|
63 |
?>
|
64 |
|
65 |
<div id="wpacu_minify_js_exceptions_area" style="<?php echo $minifyJsExceptionsAreaStyle; ?>">
|
66 |
+
<div style="margin: 0 0 6px;"><?php _e('Do not minify the JavaScript files matching the patterns below (one per line)', 'wp-asset-clean-up'); ?>:</div>
|
67 |
<label for="wpacu_minify_js_exceptions">
|
68 |
<textarea style="width: 100%;"
|
69 |
rows="4"
|
80 |
|
81 |
<ul style="list-style: none; margin-left: 18px;">
|
82 |
<li style="margin-bottom: 18px;"><span style="color: #ffc107;" class="dashicons dashicons-lightbulb"></span> The CSS/JS cached files will be re-generated once the file version changes (the value from <code>?ver=</code>). In addition, the versioning value from the source will be appended to the new cached CSS/JS file name (e.g. new-file-name-here-ver-1.2).</li>
|
83 |
+
<li><span style="color: #ffc107;" class="dashicons dashicons-lightbulb"></span> <?php _e('For maximum performance and to reduce server resources, the following CSS/JS files will not be minified, but kept as they are, since they are already optimised and minified by the WordPress core contributors & developers', 'wp-asset-clean-up'); ?>:
|
84 |
<div style="margin: 15px 0 0 28px;">
|
85 |
<ul style="list-style: circle;">
|
86 |
<li>CSS/JS WordPress core files that end up in .min.css and .min.js (e.g. <code>/wp-includes/css/dashicons.min.css</code>, <code>/wp-includes/css/admin-bar.min.css</code>, <code>/wp-includes/js/jquery/jquery-migrate.min.js</code>, <code>/wp-includes/js/jquery/ui/datepicker.min.js</code> etc.)</li>
|
87 |
+
<li><?php echo sprintf(__('jQuery library from %s', 'wp-asset-clean-up'), '<code>/wp-includes/js/jquery/jquery.js</code>'); ?></li>
|
88 |
</ul>
|
89 |
</div>
|
90 |
</li>
|
templates/_admin-page-settings-plugin-areas/_plugin-usage-settings.php
CHANGED
@@ -10,16 +10,16 @@ $tabIdArea = 'wpacu-setting-plugin-usage-settings';
|
|
10 |
$styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-cell;"' : '';
|
11 |
|
12 |
// [wpacu_lite]
|
13 |
-
$availableForPro = '<a class="go-pro-link-no-style" target="_blank" href="' . WPACU_PLUGIN_GO_PRO_URL . '?utm_source=plugin_usage_settings&utm_medium=assets_list_layout"><span class="wpacu-tooltip" style="width: 154px;">'.__('Click here to unlock it',
|
14 |
// [/wpacu_lite]
|
15 |
?>
|
16 |
<div id="<?php echo $tabIdArea; ?>" class="wpacu-settings-tab-content" <?php echo $styleTabContent; ?>>
|
17 |
-
<h2 class="wpacu-settings-area-title"><?php _e('Plugin Usage Preferences',
|
18 |
-
<p><?php _e('Choose how the assets are retrieved and whether you would like to see them within the Dashboard / Front-end view',
|
19 |
<table class="wpacu-form-table">
|
20 |
<tr valign="top">
|
21 |
<th scope="row">
|
22 |
-
<label for="wpacu_dashboard"><?php _e('Manage in the Dashboard',
|
23 |
</th>
|
24 |
<td>
|
25 |
<label class="wpacu_switch">
|
@@ -29,16 +29,16 @@ $availableForPro = '<a class="go-pro-link-no-style" target="_blank" href="' . WP
|
|
29 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[dashboard_show]"
|
30 |
value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
|
31 |
|
32 |
-
<?php _e('This will show the list of assets in a meta box on edit the post (any type) / page within the Dashboard',
|
33 |
-
<p><?php _e('The assets would be retrieved via AJAX call(s) that will fetch the post/page URL and extract all the styles & scripts that are enqueued.',
|
34 |
-
<p><?php _e('Note that sometimes the assets list is not loading within the Dashboard. That could be because "mod_security" Apache module is enabled or some
|
35 |
|
36 |
<div id="wpacu-settings-assets-retrieval-mode"
|
37 |
<?php if (! ($data['dashboard_show'] == 1)) { echo 'style="display: none;"'; } ?>>
|
38 |
|
39 |
<ul id="wpacu-dom-get-type-selections">
|
40 |
<li>
|
41 |
-
<label for="wpacu_dom_get_type"><?php _e('Select a retrieval way',
|
42 |
</li>
|
43 |
<li>
|
44 |
<label>
|
@@ -46,7 +46,7 @@ $availableForPro = '<a class="go-pro-link-no-style" target="_blank" href="' . WP
|
|
46 |
data-target="wpacu-dom-get-type-direct-info"
|
47 |
<?php if ($data['dom_get_type'] === 'direct') { ?>checked="checked"<?php } ?>
|
48 |
type="radio" name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[dom_get_type]"
|
49 |
-
value="direct" /> <?php
|
50 |
</label>
|
51 |
</li>
|
52 |
<li>
|
@@ -66,18 +66,18 @@ $availableForPro = '<a class="go-pro-link-no-style" target="_blank" href="' . WP
|
|
66 |
<li <?php if ($data['dom_get_type'] !== 'direct') { ?>style="display: none;"<?php } ?>
|
67 |
class="wpacu-dom-get-type-info"
|
68 |
id="wpacu-dom-get-type-direct-info">
|
69 |
-
<strong><?php _e('Direct',
|
70 |
</li>
|
71 |
<li <?php if ($data['dom_get_type'] !== 'wp_remote_post') { ?>style="display: none;"<?php } ?>
|
72 |
class="wpacu-dom-get-type-info"
|
73 |
id="wpacu-dom-get-type-wp-remote-post-info">
|
74 |
-
<strong>WP Remote Post</strong> - <?php _e('It makes a WordPress AJAX call and gets the HTML source code through wp_remote_post(). This one is less likely to be blocked as it is made on the same protocol (no HTTP request from HTTPS). However, in some cases (e.g. a different load balancer configuration), this might not work when the call to fetch a domain\'s URL (your website) is actually made from the same domain.',
|
75 |
</li>
|
76 |
</ul>
|
77 |
</div>
|
78 |
|
79 |
<div id="wpacu-settings-hide-meta-boxes">
|
80 |
-
<p><?php _e('Whether you have this option enabled or not, the post/page plugin\'s meta boxes will always be generated. If you wish to hide them completely for any reason (e.g. you rarely manage the assets and you want to reduce cluttering in the edit post/page area, especially if you do lots of edits), you can do so using the options below (<em>don\'t forget to uncheck them whenever you wish to manage the CSS/JS assets again</em>)',
|
81 |
<ul>
|
82 |
<li><label for="wpacu-hide-assets-meta-box-checkbox"><input <?php echo (($data['hide_assets_meta_box'] == 1) ? 'checked="checked"' : ''); ?> id="wpacu-hide-assets-meta-box-checkbox" type="checkbox" name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[hide_assets_meta_box]" value="1" /> Hide "Asset CleanUp Pro: CSS & JavaScript Manager" meta box</label></li>
|
83 |
<li><label for="wpacu-hide-options-meta-box-checkbox"><input <?php echo (($data['hide_options_meta_box'] == 1) ? 'checked="checked"' : ''); ?> id="wpacu-hide-options-meta-box-checkbox" type="checkbox" name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[hide_options_meta_box]" value="1" /> Hide "Asset CleanUp Pro: Options" meta box</label></li>
|
@@ -87,7 +87,7 @@ $availableForPro = '<a class="go-pro-link-no-style" target="_blank" href="' . WP
|
|
87 |
</tr>
|
88 |
<tr valign="top">
|
89 |
<th scope="row">
|
90 |
-
<label for="wpacu_frontend"><?php _e('Manage in the Front-end',
|
91 |
</th>
|
92 |
<td>
|
93 |
<label class="wpacu_switch">
|
@@ -101,7 +101,7 @@ $availableForPro = '<a class="go-pro-link-no-style" target="_blank" href="' . WP
|
|
101 |
<p style="margin-top: 10px;">The area will be shown through the <code>wp_footer</code> action so in case you do not see the asset list at the bottom of the page, make sure the theme is using <a href="https://codex.wordpress.org/Function_Reference/wp_footer"><code>wp_footer()</code></a> function before the <code></body></code> tag. Any theme that follows the standards should have it. If not, you will have to add it to make sure other plugins and code from functions.php will work fine.</p>
|
102 |
|
103 |
<div id="wpacu-settings-frontend-exceptions" <?php if (! ($data['frontend_show'] == 1)) { echo 'style="display: none;"'; } ?>>
|
104 |
-
<div style="margin: 0 0 10px;"><label for="wpacu_frontend_show_exceptions"><span class="dashicons dashicons-info"></span> In some situations, you might want to avoid showing the CSS/JS list at the bottom of the pages (e.g. you're using a page builder such as Divi, you often load specific pages as an admin and you don't need to manage assets there or you do it rarely etc.). If that's the case, you can use the following textarea to prevent the list from showing up on pages where the <strong>URI contains</strong> the specified strings (<?php _e('one per line',
|
105 |
<textarea id="wpacu_frontend_show_exceptions"
|
106 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[frontend_show_exceptions]"
|
107 |
rows="5"
|
@@ -112,21 +112,24 @@ $availableForPro = '<a class="go-pro-link-no-style" target="_blank" href="' . WP
|
|
112 |
</tr>
|
113 |
<tr valign="top">
|
114 |
<th scope="row">
|
115 |
-
<label for="wpacu_assets_list_layout"><?php _e('Assets List Layout',
|
116 |
</th>
|
117 |
<td>
|
118 |
<label>
|
119 |
<select id="wpacu_assets_list_layout"
|
120 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[assets_list_layout]">
|
121 |
-
<option <?php if ($data['assets_list_layout'] === 'by-location') { echo 'selected="selected"'; } ?> value="by-location"><?php _e('All Styles & Scripts',
|
122 |
-
<option <?php if ($data['assets_list_layout'] === 'by-position') { echo 'selected="selected"'; } ?> value="by-position"><?php _e('All Styles & Scripts',
|
123 |
-
<option <?php if (
|
124 |
-
<option
|
|
|
|
|
|
|
125 |
</select>
|
126 |
</label>
|
127 |
|
128 |
<div id="wpacu-assets-list-by-location-selected" style="margin: 10px 0; <?php if ($data['assets_list_layout'] !== 'by-location') { ?> display: none; <?php } ?>">
|
129 |
-
<div style="margin-bottom: 6px;"><?php _e('When list is grouped by location, keep the assets from each of the plugins in the following state',
|
130 |
<ul class="assets_list_layout_areas_status_choices">
|
131 |
<li>
|
132 |
<label for="assets_list_layout_plugin_area_status_expanded">
|
@@ -134,7 +137,7 @@ $availableForPro = '<a class="go-pro-link-no-style" target="_blank" href="' . WP
|
|
134 |
checked="checked"
|
135 |
type="radio"
|
136 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[assets_list_layout_plugin_area_status]"
|
137 |
-
value="expanded"> <?php _e('Expanded',
|
138 |
</label>
|
139 |
</li>
|
140 |
<li>
|
@@ -143,7 +146,7 @@ $availableForPro = '<a class="go-pro-link-no-style" target="_blank" href="' . WP
|
|
143 |
type="radio"
|
144 |
disabled="disabled"
|
145 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[assets_list_layout_plugin_area_status]"
|
146 |
-
value="contracted"> <?php _e('Contracted',
|
147 |
</label>
|
148 |
</li>
|
149 |
</ul>
|
@@ -152,12 +155,29 @@ $availableForPro = '<a class="go-pro-link-no-style" target="_blank" href="' . WP
|
|
152 |
|
153 |
<div class="wpacu-clearfix"></div>
|
154 |
|
155 |
-
<p style="margin-top: 10px;"><?php _e('These are various ways in which the list of assets that you will manage will show up. Depending on your preference, you might want to see the list of styles & scripts first, or all together sorted in alphabetical order etc.',
|
156 |
</td>
|
157 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
<tr valign="top">
|
159 |
<th scope="row">
|
160 |
-
<label><?php _e('On Assets List Layout Load, keep "Styles & Scripts" area:',
|
161 |
</th>
|
162 |
<td>
|
163 |
<ul class="assets_list_layout_areas_status_choices">
|
@@ -167,7 +187,7 @@ $availableForPro = '<a class="go-pro-link-no-style" target="_blank" href="' . WP
|
|
167 |
<?php if (! $data['assets_list_layout_areas_status'] || $data['assets_list_layout_areas_status'] === 'expanded') { ?>checked="checked"<?php } ?>
|
168 |
type="radio"
|
169 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[assets_list_layout_areas_status]"
|
170 |
-
value="expanded"> <?php _e('Expanded',
|
171 |
</label>
|
172 |
</li>
|
173 |
<li>
|
@@ -176,18 +196,18 @@ $availableForPro = '<a class="go-pro-link-no-style" target="_blank" href="' . WP
|
|
176 |
<?php if ($data['assets_list_layout_areas_status'] === 'contracted') { ?>checked="checked"<?php } ?>
|
177 |
type="radio"
|
178 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[assets_list_layout_areas_status]"
|
179 |
-
value="contracted"> <?php _e('Contracted',
|
180 |
</label>
|
181 |
</li>
|
182 |
</ul>
|
183 |
<div class="wpacu-clearfix"></div>
|
184 |
|
185 |
-
<p><?php _e('Sometimes, when you have plenty of elements in the edit page, you might want to contract the list of assets when you\'re viewing the page as it will save space. This can be a good practice, especially when you finished optimising the pages and you don\'t want to keep seeing the long list of files every time you edit a page.',
|
186 |
</td>
|
187 |
</tr>
|
188 |
<tr valign="top">
|
189 |
<th scope="row">
|
190 |
-
<label><?php _e('On Assets List Layout Load, keep "Inline code associated with this handle" area',
|
191 |
</th>
|
192 |
<td>
|
193 |
<ul class="assets_list_inline_code_status_choices">
|
@@ -197,7 +217,7 @@ $availableForPro = '<a class="go-pro-link-no-style" target="_blank" href="' . WP
|
|
197 |
<?php if (! $data['assets_list_inline_code_status'] || $data['assets_list_inline_code_status'] === 'expanded') { ?>checked="checked"<?php } ?>
|
198 |
type="radio"
|
199 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[assets_list_inline_code_status]"
|
200 |
-
value="expanded"> <?php _e('Expanded (Default)',
|
201 |
</label>
|
202 |
</li>
|
203 |
<li>
|
@@ -206,23 +226,23 @@ $availableForPro = '<a class="go-pro-link-no-style" target="_blank" href="' . WP
|
|
206 |
<?php if ($data['assets_list_inline_code_status'] === 'contracted') { ?>checked="checked"<?php } ?>
|
207 |
type="radio"
|
208 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[assets_list_inline_code_status]"
|
209 |
-
value="contracted"> <?php _e('Contracted',
|
210 |
</label>
|
211 |
</li>
|
212 |
</ul>
|
213 |
<div class="wpacu-clearfix"></div>
|
214 |
|
215 |
<p><?php echo sprintf(
|
216 |
-
__('Some assets (CSS & JavaScript) have inline code associate with them and often, they are quite large, making the asset row bigger and requiring you to scroll more until you reach a specific area. By setting it to "%s", it will hide all the inline code by default and you can view it by clicking on the toggle link inside the asset row.',
|
217 |
-
__('Contracted',
|
218 |
); ?></p>
|
219 |
</td>
|
220 |
</tr>
|
221 |
<tr valign="top">
|
222 |
<th scope="row" class="setting_title">
|
223 |
-
<label><?php _e('Input Fields Style',
|
224 |
-
<p class="wpacu_subtitle"><small><em><?php _e('How would you like to view the checkboxes / selectors?',
|
225 |
-
<p class="wpacu_read_more"><a href="https://assetcleanup.com/docs/?p=95" target="_blank"><?php _e('Read More',
|
226 |
</th>
|
227 |
<td>
|
228 |
<ul class="input_style_choices">
|
@@ -232,7 +252,7 @@ $availableForPro = '<a class="go-pro-link-no-style" target="_blank" href="' . WP
|
|
232 |
<?php if (! $data['input_style'] || $data['input_style'] === 'enhanced') { ?>checked="checked"<?php } ?>
|
233 |
type="radio"
|
234 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[input_style]"
|
235 |
-
value="enhanced"> <?php _e('Enhanced iPhone Style (Default)',
|
236 |
</label>
|
237 |
</li>
|
238 |
<li>
|
@@ -241,18 +261,18 @@ $availableForPro = '<a class="go-pro-link-no-style" target="_blank" href="' . WP
|
|
241 |
<?php if ($data['input_style'] === 'standard') { ?>checked="checked"<?php } ?>
|
242 |
type="radio"
|
243 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[input_style]"
|
244 |
-
value="standard"> <?php _e('Standard',
|
245 |
</label>
|
246 |
</li>
|
247 |
</ul>
|
248 |
<div class="wpacu-clearfix"></div>
|
249 |
|
250 |
-
<p><?php _e('In case you prefer standard HTML checkboxes instead of the enhanced CSS3 iPhone style ones (on & off) or you need a simple HTML layout in case you\'re using a screen reader software (e.g. for people with disabilities) which requires standard/clean HTML code, then you can choose "Standard" as an option.',
|
251 |
</td>
|
252 |
</tr>
|
253 |
<tr valign="top">
|
254 |
<th scope="row">
|
255 |
-
<label for="wpacu_hide_core_files"><?php _e('Hide WordPress Core Files From The Assets List?',
|
256 |
</th>
|
257 |
<td>
|
258 |
<label class="wpacu_switch">
|
@@ -262,8 +282,8 @@ $availableForPro = '<a class="go-pro-link-no-style" target="_blank" href="' . WP
|
|
262 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[hide_core_files]"
|
263 |
value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
|
264 |
|
265 |
-
<?php echo sprintf(__('WordPress Core Files have handles such as %s',
|
266 |
-
<p style="margin-top: 10px;"><?php _e('They should only be unloaded by experienced developers when they are convinced that are not needed in particular situations. It\'s better to leave them loaded if you have any doubts whether you need them or not. By hiding them in the assets management list, you will see a smaller assets list (easier to manage) and you will avoid updating by mistake any option (unload, async, defer) related to any core file.',
|
267 |
</td>
|
268 |
</tr>
|
269 |
</table>
|
10 |
$styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-cell;"' : '';
|
11 |
|
12 |
// [wpacu_lite]
|
13 |
+
$availableForPro = '<a class="go-pro-link-no-style" target="_blank" href="' . WPACU_PLUGIN_GO_PRO_URL . '?utm_source=plugin_usage_settings&utm_medium=assets_list_layout"><span class="wpacu-tooltip" style="width: 154px;">'.__('Click here to unlock it', 'wp-asset-clean-up').'!</span> <img style="opacity: 0.6;" width="20" height="20" src="'.WPACU_PLUGIN_URL.'/assets/icons/icon-lock.svg" valign="top" alt="" /></a>';
|
14 |
// [/wpacu_lite]
|
15 |
?>
|
16 |
<div id="<?php echo $tabIdArea; ?>" class="wpacu-settings-tab-content" <?php echo $styleTabContent; ?>>
|
17 |
+
<h2 class="wpacu-settings-area-title"><?php _e('Plugin Usage Preferences', 'wp-asset-clean-up'); ?></h2>
|
18 |
+
<p><?php _e('Choose how the assets are retrieved and whether you would like to see them within the Dashboard / Front-end view', 'wp-asset-clean-up'); ?>; <?php _e('Decide how the management list of CSS & JavaScript files will show up and get sorted, depending on your preferences.', 'wp-asset-clean-up'); ?></p>
|
19 |
<table class="wpacu-form-table">
|
20 |
<tr valign="top">
|
21 |
<th scope="row">
|
22 |
+
<label for="wpacu_dashboard"><?php _e('Manage in the Dashboard', 'wp-asset-clean-up'); ?></label>
|
23 |
</th>
|
24 |
<td>
|
25 |
<label class="wpacu_switch">
|
29 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[dashboard_show]"
|
30 |
value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
|
31 |
|
32 |
+
<?php _e('This will show the list of assets in a meta box on edit the post (any type) / page within the Dashboard', 'wp-asset-clean-up'); ?>
|
33 |
+
<p><?php _e('The assets would be retrieved via AJAX call(s) that will fetch the post/page URL and extract all the styles & scripts that are enqueued.', 'wp-asset-clean-up'); ?></p>
|
34 |
+
<p><?php _e('Note that sometimes the assets list is not loading within the Dashboard. That could be because "mod_security" Apache module is enabled or some security plugins are blocking the AJAX request. If this option doesn\'t work, consider managing the list in the front-end view.', 'wp-asset-clean-up'); ?></p>
|
35 |
|
36 |
<div id="wpacu-settings-assets-retrieval-mode"
|
37 |
<?php if (! ($data['dashboard_show'] == 1)) { echo 'style="display: none;"'; } ?>>
|
38 |
|
39 |
<ul id="wpacu-dom-get-type-selections">
|
40 |
<li>
|
41 |
+
<label for="wpacu_dom_get_type"><?php _e('Select a retrieval way', 'wp-asset-clean-up'); ?>:</label>
|
42 |
</li>
|
43 |
<li>
|
44 |
<label>
|
46 |
data-target="wpacu-dom-get-type-direct-info"
|
47 |
<?php if ($data['dom_get_type'] === 'direct') { ?>checked="checked"<?php } ?>
|
48 |
type="radio" name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[dom_get_type]"
|
49 |
+
value="direct" /> <?php _e('Direct', 'wp-asset-clean-up'); ?>
|
50 |
</label>
|
51 |
</li>
|
52 |
<li>
|
66 |
<li <?php if ($data['dom_get_type'] !== 'direct') { ?>style="display: none;"<?php } ?>
|
67 |
class="wpacu-dom-get-type-info"
|
68 |
id="wpacu-dom-get-type-direct-info">
|
69 |
+
<strong><?php _e('Direct', 'wp-asset-clean-up'); ?></strong> - <?php _e('This one makes an AJAX call directly on the URL for which the assets are retrieved, then an extra WordPress AJAX call to process the list. Sometimes, due to some external factors (e.g. mod_security module from Apache, security plugin or the fact that non-http is forced for the front-end view and the AJAX request will be blocked), this might not work and another choice method might work better. This used to be the only option available, prior to version 1.2.4.4 and is set as default.', 'wp-asset-clean-up'); ?>
|
70 |
</li>
|
71 |
<li <?php if ($data['dom_get_type'] !== 'wp_remote_post') { ?>style="display: none;"<?php } ?>
|
72 |
class="wpacu-dom-get-type-info"
|
73 |
id="wpacu-dom-get-type-wp-remote-post-info">
|
74 |
+
<strong>WP Remote Post</strong> - <?php _e('It makes a WordPress AJAX call and gets the HTML source code through wp_remote_post(). This one is less likely to be blocked as it is made on the same protocol (no HTTP request from HTTPS). However, in some cases (e.g. a different load balancer configuration), this might not work when the call to fetch a domain\'s URL (your website) is actually made from the same domain.', 'wp-asset-clean-up'); ?>
|
75 |
</li>
|
76 |
</ul>
|
77 |
</div>
|
78 |
|
79 |
<div id="wpacu-settings-hide-meta-boxes">
|
80 |
+
<p><?php _e('Whether you have this option enabled or not, the post/page plugin\'s meta boxes will always be generated. If you wish to hide them completely for any reason (e.g. you rarely manage the assets and you want to reduce cluttering in the edit post/page area, especially if you do lots of edits), you can do so using the options below (<em>don\'t forget to uncheck them whenever you wish to manage the CSS/JS assets again</em>)', 'wp-asset-clean-up'); ?>:</p>
|
81 |
<ul>
|
82 |
<li><label for="wpacu-hide-assets-meta-box-checkbox"><input <?php echo (($data['hide_assets_meta_box'] == 1) ? 'checked="checked"' : ''); ?> id="wpacu-hide-assets-meta-box-checkbox" type="checkbox" name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[hide_assets_meta_box]" value="1" /> Hide "Asset CleanUp Pro: CSS & JavaScript Manager" meta box</label></li>
|
83 |
<li><label for="wpacu-hide-options-meta-box-checkbox"><input <?php echo (($data['hide_options_meta_box'] == 1) ? 'checked="checked"' : ''); ?> id="wpacu-hide-options-meta-box-checkbox" type="checkbox" name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[hide_options_meta_box]" value="1" /> Hide "Asset CleanUp Pro: Options" meta box</label></li>
|
87 |
</tr>
|
88 |
<tr valign="top">
|
89 |
<th scope="row">
|
90 |
+
<label for="wpacu_frontend"><?php _e('Manage in the Front-end', 'wp-asset-clean-up'); ?></label>
|
91 |
</th>
|
92 |
<td>
|
93 |
<label class="wpacu_switch">
|
101 |
<p style="margin-top: 10px;">The area will be shown through the <code>wp_footer</code> action so in case you do not see the asset list at the bottom of the page, make sure the theme is using <a href="https://codex.wordpress.org/Function_Reference/wp_footer"><code>wp_footer()</code></a> function before the <code></body></code> tag. Any theme that follows the standards should have it. If not, you will have to add it to make sure other plugins and code from functions.php will work fine.</p>
|
102 |
|
103 |
<div id="wpacu-settings-frontend-exceptions" <?php if (! ($data['frontend_show'] == 1)) { echo 'style="display: none;"'; } ?>>
|
104 |
+
<div style="margin: 0 0 10px;"><label for="wpacu_frontend_show_exceptions"><span class="dashicons dashicons-info"></span> In some situations, you might want to avoid showing the CSS/JS list at the bottom of the pages (e.g. you're using a page builder such as Divi, you often load specific pages as an admin and you don't need to manage assets there or you do it rarely etc.). If that's the case, you can use the following textarea to prevent the list from showing up on pages where the <strong>URI contains</strong> the specified strings (<?php _e('one per line', 'wp-asset-clean-up'); ?>):</label></div>
|
105 |
<textarea id="wpacu_frontend_show_exceptions"
|
106 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[frontend_show_exceptions]"
|
107 |
rows="5"
|
112 |
</tr>
|
113 |
<tr valign="top">
|
114 |
<th scope="row">
|
115 |
+
<label for="wpacu_assets_list_layout"><?php _e('Assets List Layout', 'wp-asset-clean-up'); ?></label>
|
116 |
</th>
|
117 |
<td>
|
118 |
<label>
|
119 |
<select id="wpacu_assets_list_layout"
|
120 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[assets_list_layout]">
|
121 |
+
<option <?php if ($data['assets_list_layout'] === 'by-location') { echo 'selected="selected"'; } ?> value="by-location"><?php _e('All Styles & Scripts', 'wp-asset-clean-up'); ?> ⟶ <?php _e('Grouped by location (themes, plugins, core & external)', 'wp-asset-clean-up'); ?></option>
|
122 |
+
<option <?php if ($data['assets_list_layout'] === 'by-position') { echo 'selected="selected"'; } ?> value="by-position"><?php _e('All Styles & Scripts', 'wp-asset-clean-up'); ?> ⟶ <?php _e('Grouped by tag position: <head> & <body>', 'wp-asset-clean-up'); ?></option>
|
123 |
+
<option <?php if ($data['assets_list_layout'] === 'by-parents') { echo 'selected="selected"'; } ?> value="by-parents"><?php _e('All Styles & Scripts', 'wp-asset-clean-up'); ?> ⟶ <?php _e('Grouped by dependencies: Parents, Children, Independent', 'wp-asset-clean-up'); ?></option>
|
124 |
+
<option <?php if ($data['assets_list_layout'] === 'by-loaded-unloaded') { echo 'selected="selected"'; } ?> value="by-loaded-unloaded"><?php _e('All Styles & Scripts', 'wp-asset-clean-up'); ?> ⟶ <?php _e('Grouped by loaded or unloaded status', 'wp-asset-clean-up'); ?></option>
|
125 |
+
<option <?php if (in_array($data['assets_list_layout'], array('two-lists', 'default'))) { echo 'selected="selected"'; } ?> value="two-lists"><?php _e('All Styles', 'wp-asset-clean-up'); ?> + <?php _e('All Scripts', 'wp-asset-clean-up'); ?> ⟶ <?php _e('Two lists', 'wp-asset-clean-up'); ?></option>
|
126 |
+
|
127 |
+
<option disabled="disabled" value="all"><?php _e('All Styles & Scripts', 'wp-asset-clean-up'); ?> ⟶ <?php _e('One list', 'wp-asset-clean-up'); ?> (<?php _e('Pro Version', 'wp-asset-clean-up'); ?>)</option>
|
128 |
</select>
|
129 |
</label>
|
130 |
|
131 |
<div id="wpacu-assets-list-by-location-selected" style="margin: 10px 0; <?php if ($data['assets_list_layout'] !== 'by-location') { ?> display: none; <?php } ?>">
|
132 |
+
<div style="margin-bottom: 6px;"><?php _e('When list is grouped by location, keep the assets from each of the plugins in the following state', 'wp-asset-clean-up'); ?>:</div>
|
133 |
<ul class="assets_list_layout_areas_status_choices">
|
134 |
<li>
|
135 |
<label for="assets_list_layout_plugin_area_status_expanded">
|
137 |
checked="checked"
|
138 |
type="radio"
|
139 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[assets_list_layout_plugin_area_status]"
|
140 |
+
value="expanded"> <?php _e('Expanded', 'wp-asset-clean-up'); ?> (<?php _e('Default', 'wp-asset-clean-up'); ?>)
|
141 |
</label>
|
142 |
</li>
|
143 |
<li>
|
146 |
type="radio"
|
147 |
disabled="disabled"
|
148 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[assets_list_layout_plugin_area_status]"
|
149 |
+
value="contracted"> <?php _e('Contracted', 'wp-asset-clean-up'); ?> (<?php _e('Pro Version', 'wp-asset-clean-up'); ?>) <?php echo $availableForPro; ?>
|
150 |
</label>
|
151 |
</li>
|
152 |
</ul>
|
155 |
|
156 |
<div class="wpacu-clearfix"></div>
|
157 |
|
158 |
+
<p style="margin-top: 10px;"><?php _e('These are various ways in which the list of assets that you will manage will show up. Depending on your preference, you might want to see the list of styles & scripts first, or all together sorted in alphabetical order etc.', 'wp-asset-clean-up'); ?> <?php _e('Options that are disabled are available in the Pro version.', 'wp-asset-clean-up'); ?></p>
|
159 |
</td>
|
160 |
</tr>
|
161 |
+
|
162 |
+
<tr valign="top">
|
163 |
+
<th scope="row">
|
164 |
+
<label for="wpacu_hide_from_admin_bar"><?php echo sprintf(__('Hide %s from the top Admin Bar', 'wp-asset-clean-up'), '"'.WPACU_PLUGIN_TITLE.'"'); ?></label>
|
165 |
+
</th>
|
166 |
+
<td>
|
167 |
+
<label class="wpacu_switch">
|
168 |
+
<input id="wpacu_hide_from_admin_bar"
|
169 |
+
type="checkbox"
|
170 |
+
<?php echo (($data['hide_from_admin_bar'] == 1) ? 'checked="checked"' : ''); ?>
|
171 |
+
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[hide_from_admin_bar]"
|
172 |
+
value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
|
173 |
+
|
174 |
+
This is useful if you're not using too often the plugin's options from the top Admin Bar and wish to make up some space there.
|
175 |
+
</td>
|
176 |
+
</tr>
|
177 |
+
|
178 |
<tr valign="top">
|
179 |
<th scope="row">
|
180 |
+
<label><?php _e('On Assets List Layout Load, keep "Styles & Scripts" area:', 'wp-asset-clean-up'); ?></label>
|
181 |
</th>
|
182 |
<td>
|
183 |
<ul class="assets_list_layout_areas_status_choices">
|
187 |
<?php if (! $data['assets_list_layout_areas_status'] || $data['assets_list_layout_areas_status'] === 'expanded') { ?>checked="checked"<?php } ?>
|
188 |
type="radio"
|
189 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[assets_list_layout_areas_status]"
|
190 |
+
value="expanded"> <?php _e('Expanded', 'wp-asset-clean-up'); ?> (<?php _e('Default', 'wp-asset-clean-up'); ?>)
|
191 |
</label>
|
192 |
</li>
|
193 |
<li>
|
196 |
<?php if ($data['assets_list_layout_areas_status'] === 'contracted') { ?>checked="checked"<?php } ?>
|
197 |
type="radio"
|
198 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[assets_list_layout_areas_status]"
|
199 |
+
value="contracted"> <?php _e('Contracted', 'wp-asset-clean-up'); ?>
|
200 |
</label>
|
201 |
</li>
|
202 |
</ul>
|
203 |
<div class="wpacu-clearfix"></div>
|
204 |
|
205 |
+
<p><?php _e('Sometimes, when you have plenty of elements in the edit page, you might want to contract the list of assets when you\'re viewing the page as it will save space. This can be a good practice, especially when you finished optimising the pages and you don\'t want to keep seeing the long list of files every time you edit a page.', 'wp-asset-clean-up'); ?></p>
|
206 |
</td>
|
207 |
</tr>
|
208 |
<tr valign="top">
|
209 |
<th scope="row">
|
210 |
+
<label><?php _e('On Assets List Layout Load, keep "Inline code associated with this handle" area', 'wp-asset-clean-up'); ?>:</label>
|
211 |
</th>
|
212 |
<td>
|
213 |
<ul class="assets_list_inline_code_status_choices">
|
217 |
<?php if (! $data['assets_list_inline_code_status'] || $data['assets_list_inline_code_status'] === 'expanded') { ?>checked="checked"<?php } ?>
|
218 |
type="radio"
|
219 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[assets_list_inline_code_status]"
|
220 |
+
value="expanded"> <?php _e('Expanded (Default)', 'wp-asset-clean-up'); ?>
|
221 |
</label>
|
222 |
</li>
|
223 |
<li>
|
226 |
<?php if ($data['assets_list_inline_code_status'] === 'contracted') { ?>checked="checked"<?php } ?>
|
227 |
type="radio"
|
228 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[assets_list_inline_code_status]"
|
229 |
+
value="contracted"> <?php _e('Contracted', 'wp-asset-clean-up'); ?>
|
230 |
</label>
|
231 |
</li>
|
232 |
</ul>
|
233 |
<div class="wpacu-clearfix"></div>
|
234 |
|
235 |
<p><?php echo sprintf(
|
236 |
+
__('Some assets (CSS & JavaScript) have inline code associate with them and often, they are quite large, making the asset row bigger and requiring you to scroll more until you reach a specific area. By setting it to "%s", it will hide all the inline code by default and you can view it by clicking on the toggle link inside the asset row.', 'wp-asset-clean-up'),
|
237 |
+
__('Contracted', 'wp-asset-clean-up')
|
238 |
); ?></p>
|
239 |
</td>
|
240 |
</tr>
|
241 |
<tr valign="top">
|
242 |
<th scope="row" class="setting_title">
|
243 |
+
<label><?php _e('Input Fields Style', 'wp-asset-clean-up'); ?>:</label>
|
244 |
+
<p class="wpacu_subtitle"><small><em><?php _e('How would you like to view the checkboxes / selectors?', 'wp-asset-clean-up'); ?></em></small></p>
|
245 |
+
<p class="wpacu_read_more"><a href="https://assetcleanup.com/docs/?p=95" target="_blank"><?php _e('Read More', 'wp-asset-clean-up'); ?></a></p>
|
246 |
</th>
|
247 |
<td>
|
248 |
<ul class="input_style_choices">
|
252 |
<?php if (! $data['input_style'] || $data['input_style'] === 'enhanced') { ?>checked="checked"<?php } ?>
|
253 |
type="radio"
|
254 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[input_style]"
|
255 |
+
value="enhanced"> <?php _e('Enhanced iPhone Style (Default)', 'wp-asset-clean-up'); ?>
|
256 |
</label>
|
257 |
</li>
|
258 |
<li>
|
261 |
<?php if ($data['input_style'] === 'standard') { ?>checked="checked"<?php } ?>
|
262 |
type="radio"
|
263 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[input_style]"
|
264 |
+
value="standard"> <?php _e('Standard', 'wp-asset-clean-up'); ?>
|
265 |
</label>
|
266 |
</li>
|
267 |
</ul>
|
268 |
<div class="wpacu-clearfix"></div>
|
269 |
|
270 |
+
<p><?php _e('In case you prefer standard HTML checkboxes instead of the enhanced CSS3 iPhone style ones (on & off) or you need a simple HTML layout in case you\'re using a screen reader software (e.g. for people with disabilities) which requires standard/clean HTML code, then you can choose "Standard" as an option.', 'wp-asset-clean-up'); ?></p>
|
271 |
</td>
|
272 |
</tr>
|
273 |
<tr valign="top">
|
274 |
<th scope="row">
|
275 |
+
<label for="wpacu_hide_core_files"><?php _e('Hide WordPress Core Files From The Assets List?', 'wp-asset-clean-up'); ?></label>
|
276 |
</th>
|
277 |
<td>
|
278 |
<label class="wpacu_switch">
|
282 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[hide_core_files]"
|
283 |
value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
|
284 |
|
285 |
+
<?php echo sprintf(__('WordPress Core Files have handles such as %s', 'wp-asset-clean-up'), "'jquery', 'wp-embed', 'comment-reply', 'dashicons'"); ?> etc.
|
286 |
+
<p style="margin-top: 10px;"><?php _e('They should only be unloaded by experienced developers when they are convinced that are not needed in particular situations. It\'s better to leave them loaded if you have any doubts whether you need them or not. By hiding them in the assets management list, you will see a smaller assets list (easier to manage) and you will avoid updating by mistake any option (unload, async, defer) related to any core file.', 'wp-asset-clean-up'); ?></p>
|
287 |
</td>
|
288 |
</tr>
|
289 |
</table>
|
templates/_admin-page-settings-plugin-areas/_strip-the-fat.php
CHANGED
@@ -10,7 +10,7 @@ $tabIdArea = 'wpacu-setting-strip-the-fat';
|
|
10 |
$styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-cell;"' : '';
|
11 |
?>
|
12 |
<div id="<?php echo $tabIdArea; ?>" class="wpacu-settings-tab-content" <?php echo $styleTabContent; ?>>
|
13 |
-
<h2 class="wpacu-settings-area-title"><span class="dashicons dashicons-info"></span> <?php _e('Prevent useless and often large CSS & JS files increasing your total page size',
|
14 |
<p class="wpacu-notice wpacu-warning" style="font-size: 13px;">Please read the following tips regarding the usage of <?php echo WPACU_PLUGIN_TITLE; ?> to avoid any inconveniences later on. This is useful if you haven't used a page speed booster plugin before or you're also using a caching plugin for the page caching feature. If you're already familiar with the plugin or read the explanations below, just mark this area as "read" using the slider button from the bottom of this page.</p>
|
15 |
<p>The core functionality of <?php echo WPACU_PLUGIN_TITLE; ?>, as its name suggests, is to help you unload CSS Stylesheets (.css) & JavaScript (.js) files through the <a href="<?php echo admin_url('admin.php?page=wpassetcleanup_assets_manager'); ?>">CSS & JavaScript load manager</a> wherever they are loading in excess. This has always been the main purpose of this page speed booster plugin.</p>
|
16 |
<p>It's recommended that you take this action first on whatever page you wish to optimize (e.g. homepage), before minification & concatenation of the remaining loaded files (as you will eventually end up with less and smaller optimised files). They are extra features added to the plugin and are meant to further reduce the number of HTTP requests and also get a smaller page size as the minification will help with that.</p>
|
@@ -21,13 +21,13 @@ $styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-ce
|
|
21 |
<p>Let's suppose you're optimising the homepage that has a total of 20 CSS/JS files loading and decided that 8 CSS & JavaScript files are not needed there. Once they are prevented from loading (not deleted or altered in any way from their original source, this plugin doesn't do that), the remaining 12 files will be minified/combined (if you have this option enabled) by either <?php echo WPACU_PLUGIN_TITLE; ?>, WP Rocket or other plugin you decided to do this and saved into smaller and less files. This will end up in a decreased total page size, deferred unused CSS & less HTTP requests resulting in a faster page load and a higher page speed performance score (via tools such as GTMetrix).</p>
|
22 |
|
23 |
<hr />
|
24 |
-
<div style="margin: 20px 0 10px;"><strong style="font-size: 15px; line-height: 17px;"><?php _e('Is a decrease in the total page size or a higher page speed score guaranteed?',
|
25 |
<p>As long as you will prevent useless files from loading, then you will for sure have a lighter & faster website. If anything changes in your hosting configuration, the size of your images or any external scripts etc. that you're website is loading, then you could end up with a slower website and that is not dependent on <?php echo WPACU_PLUGIN_TITLE; ?> nor any other WordPress performance plugin as there are external things which will never depend entirely on a plugin.</p>
|
26 |
|
27 |
<hr />
|
28 |
-
<div style="margin: 20px 0 10px;"><strong style="font-size: 15px; line-height: 17px;"><?php _e('Can this plugin make the pages load slower?',
|
29 |
<p><?php echo WPACU_PLUGIN_TITLE; ?> doesn't add any extra files to load in the front-end view that will increase the number of HTTP requests in any way as it will defy its purpose. It's main task is to prevent other files from loading and cleaning up the HTML code. Moreover, by enabling concatenation (if your website is not using the HTTP/2 protocol), you will reduce the number of HTTP requests further. If you're using another plugin that also has an option for minification/concatenation and you have enabled the feature on both plugins (never do it), or haven't configured something the right way, you could end up with extra CSS/JS loaded that will eventually lead to a poorer page speed score and a slower website.</p>
|
30 |
-
<p><?php echo WPACU_PLUGIN_TITLE; ?> will never alter (in any way) or delete CSS & JS files from their original source (e.g. plugins, themes). Files created through minification/concatenation are cached and stored in <em
|
31 |
<hr />
|
32 |
|
33 |
<label class="wpacu_switch">
|
@@ -36,5 +36,5 @@ $styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-ce
|
|
36 |
<?php echo (($data['wiki_read'] == 1) ? 'checked="checked"' : ''); ?>
|
37 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[wiki_read]"
|
38 |
value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
|
39 |
-
<?php echo sprintf(__('I understand how the plugin works and I will make sure to make proper tests (via "%s" if necessary) after the changes I\'m making.',
|
40 |
</div>
|
10 |
$styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-cell;"' : '';
|
11 |
?>
|
12 |
<div id="<?php echo $tabIdArea; ?>" class="wpacu-settings-tab-content" <?php echo $styleTabContent; ?>>
|
13 |
+
<h2 class="wpacu-settings-area-title"><span class="dashicons dashicons-info"></span> <?php _e('Prevent useless and often large CSS & JS files increasing your total page size', 'wp-asset-clean-up'); ?></h2>
|
14 |
<p class="wpacu-notice wpacu-warning" style="font-size: 13px;">Please read the following tips regarding the usage of <?php echo WPACU_PLUGIN_TITLE; ?> to avoid any inconveniences later on. This is useful if you haven't used a page speed booster plugin before or you're also using a caching plugin for the page caching feature. If you're already familiar with the plugin or read the explanations below, just mark this area as "read" using the slider button from the bottom of this page.</p>
|
15 |
<p>The core functionality of <?php echo WPACU_PLUGIN_TITLE; ?>, as its name suggests, is to help you unload CSS Stylesheets (.css) & JavaScript (.js) files through the <a href="<?php echo admin_url('admin.php?page=wpassetcleanup_assets_manager'); ?>">CSS & JavaScript load manager</a> wherever they are loading in excess. This has always been the main purpose of this page speed booster plugin.</p>
|
16 |
<p>It's recommended that you take this action first on whatever page you wish to optimize (e.g. homepage), before minification & concatenation of the remaining loaded files (as you will eventually end up with less and smaller optimised files). They are extra features added to the plugin and are meant to further reduce the number of HTTP requests and also get a smaller page size as the minification will help with that.</p>
|
21 |
<p>Let's suppose you're optimising the homepage that has a total of 20 CSS/JS files loading and decided that 8 CSS & JavaScript files are not needed there. Once they are prevented from loading (not deleted or altered in any way from their original source, this plugin doesn't do that), the remaining 12 files will be minified/combined (if you have this option enabled) by either <?php echo WPACU_PLUGIN_TITLE; ?>, WP Rocket or other plugin you decided to do this and saved into smaller and less files. This will end up in a decreased total page size, deferred unused CSS & less HTTP requests resulting in a faster page load and a higher page speed performance score (via tools such as GTMetrix).</p>
|
22 |
|
23 |
<hr />
|
24 |
+
<div style="margin: 20px 0 10px;"><strong style="font-size: 15px; line-height: 17px;"><?php _e('Is a decrease in the total page size or a higher page speed score guaranteed?', 'wp-asset-clean-up'); ?></strong></div>
|
25 |
<p>As long as you will prevent useless files from loading, then you will for sure have a lighter & faster website. If anything changes in your hosting configuration, the size of your images or any external scripts etc. that you're website is loading, then you could end up with a slower website and that is not dependent on <?php echo WPACU_PLUGIN_TITLE; ?> nor any other WordPress performance plugin as there are external things which will never depend entirely on a plugin.</p>
|
26 |
|
27 |
<hr />
|
28 |
+
<div style="margin: 20px 0 10px;"><strong style="font-size: 15px; line-height: 17px;"><?php _e('Can this plugin make the pages load slower?', 'wp-asset-clean-up'); ?></strong></div>
|
29 |
<p><?php echo WPACU_PLUGIN_TITLE; ?> doesn't add any extra files to load in the front-end view that will increase the number of HTTP requests in any way as it will defy its purpose. It's main task is to prevent other files from loading and cleaning up the HTML code. Moreover, by enabling concatenation (if your website is not using the HTTP/2 protocol), you will reduce the number of HTTP requests further. If you're using another plugin that also has an option for minification/concatenation and you have enabled the feature on both plugins (never do it), or haven't configured something the right way, you could end up with extra CSS/JS loaded that will eventually lead to a poorer page speed score and a slower website.</p>
|
30 |
+
<p><?php echo WPACU_PLUGIN_TITLE; ?> will never alter (in any way) or delete CSS & JS files from their original source (e.g. plugins, themes). Files created through minification/concatenation are cached and stored in <code><em><?php echo '/'.str_replace(ABSPATH, '', WP_CONTENT_DIR) . \WpAssetCleanUp\OptimiseAssets\OptimizeCommon::getRelPathPluginCacheDir(); ?></em></code> directory.</p>
|
31 |
<hr />
|
32 |
|
33 |
<label class="wpacu_switch">
|
36 |
<?php echo (($data['wiki_read'] == 1) ? 'checked="checked"' : ''); ?>
|
37 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[wiki_read]"
|
38 |
value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
|
39 |
+
<?php echo sprintf(__('I understand how the plugin works and I will make sure to make proper tests (via "%s" if necessary) after the changes I\'m making.', 'wp-asset-clean-up'), __('Test Mode', 'wp-asset-clean-up')); ?> <?php _e('I\'m aware that unloading the wrong CSS/JS files can break the layout and front-end functionality of the pages I\'m optimising.', 'wp-asset-clean-up'); ?>
|
40 |
</div>
|
templates/_admin-page-settings-plugin-areas/_test-mode.php
CHANGED
@@ -10,14 +10,14 @@ $tabIdArea = 'wpacu-setting-test-mode';
|
|
10 |
$styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-cell;"' : '';
|
11 |
?>
|
12 |
<div id="<?php echo $tabIdArea; ?>" class="wpacu-settings-tab-content" <?php echo $styleTabContent; ?>>
|
13 |
-
<h2 class="wpacu-settings-area-title"><?php _e('Test Mode',
|
14 |
-
<p><?php echo sprintf(__('Have your visitors load the website without any %s settings while you\'re going through the plugin setup and unloading the useless CSS & JavaScript!',
|
15 |
<table class="wpacu-form-table">
|
16 |
<tr valign="top">
|
17 |
<th scope="row" class="setting_title">
|
18 |
-
<label for="wpacu_enable_test_mode"><?php _e('Enable Test Mode?',
|
19 |
-
<p class="wpacu_subtitle"><small><em><?php _e('Apply plugin\'s changes for the admin only',
|
20 |
-
<p class="wpacu_read_more"><a target="_blank" href="https://assetcleanup.com/docs/?p=84"><?php _e('Read More',
|
21 |
</th>
|
22 |
<td>
|
23 |
<label class="wpacu_switch">
|
@@ -27,18 +27,18 @@ $styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-ce
|
|
27 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[test_mode]"
|
28 |
value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
|
29 |
|
30 |
-
<?php _e('This is great for debugging when you\'re going through trial and error while removing unneeded CSS & JavaScript on your website.',
|
31 |
|
32 |
<div style="margin-top: 10px;" class="wpacu-warning">
|
33 |
-
<p style="margin-top: 0;"><?php _e('Your visitors will load the website with all the settings & assets loaded (just like it was before you activated the plugin). Only YOU (the logged-in administrator) will see the plugin\'s settings & unload rules applied.',
|
34 |
-
<p><?php _e('To view the website as a guest visitor, just make sure you access it from a browser where you\'re not logged in, or you can test it in Incognito (Private) mode.',
|
35 |
</div>
|
36 |
|
37 |
-
<p><strong><?php _e('Example',
|
38 |
|
39 |
<div class="wpacu-warning">
|
40 |
-
<p style="margin-top: 0;"><span class="dashicons dashicons-info"></span> <?php echo sprintf(__('<strong>Important:</strong> If you\'re using page speed test tools such as GTMetrix, Pingdom, Google PageSpeed Insights, etc., while test mode is enabled, you will not see any improvements in the reports because, technically, %s plugin is deactivated for guests users and anyone else (including bots and GTMetrix visits), the changes you made being visible only to you.',
|
41 |
-
<p><?php _e('Once everything is alright with the way your websites loads, after you stripped the "fat" from your pages, you can disable test mode to apply the changes to everyone and then run tests via GTMetrix or other similar tools.',
|
42 |
</div>
|
43 |
</td>
|
44 |
</tr>
|
10 |
$styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-cell;"' : '';
|
11 |
?>
|
12 |
<div id="<?php echo $tabIdArea; ?>" class="wpacu-settings-tab-content" <?php echo $styleTabContent; ?>>
|
13 |
+
<h2 class="wpacu-settings-area-title"><?php _e('Test Mode', 'wp-asset-clean-up'); ?></h2>
|
14 |
+
<p><?php echo sprintf(__('Have your visitors load the website without any %s settings while you\'re going through the plugin setup and unloading the useless CSS & JavaScript!', 'wp-asset-clean-up'), WPACU_PLUGIN_TITLE); ?></p>
|
15 |
<table class="wpacu-form-table">
|
16 |
<tr valign="top">
|
17 |
<th scope="row" class="setting_title">
|
18 |
+
<label for="wpacu_enable_test_mode"><?php _e('Enable Test Mode?', 'wp-asset-clean-up'); ?></label>
|
19 |
+
<p class="wpacu_subtitle"><small><em><?php _e('Apply plugin\'s changes for the admin only', 'wp-asset-clean-up'); ?></em></small></p>
|
20 |
+
<p class="wpacu_read_more"><a target="_blank" href="https://assetcleanup.com/docs/?p=84"><?php _e('Read More', 'wp-asset-clean-up'); ?></a></p>
|
21 |
</th>
|
22 |
<td>
|
23 |
<label class="wpacu_switch">
|
27 |
name="<?php echo WPACU_PLUGIN_ID . '_settings'; ?>[test_mode]"
|
28 |
value="1" /> <span class="wpacu_slider wpacu_round"></span> </label>
|
29 |
|
30 |
+
<?php _e('This is great for debugging when you\'re going through trial and error while removing unneeded CSS & JavaScript on your website.', 'wp-asset-clean-up'); ?>
|
31 |
|
32 |
<div style="margin-top: 10px;" class="wpacu-warning">
|
33 |
+
<p style="margin-top: 0;"><?php _e('Your visitors will load the website with all the settings & assets loaded (just like it was before you activated the plugin). Only YOU (the logged-in administrator) will see the plugin\'s settings & unload rules applied.', 'wp-asset-clean-up'); ?></p>
|
34 |
+
<p><?php _e('To view the website as a guest visitor, just make sure you access it from a browser where you\'re not logged in, or you can test it in Incognito (Private) mode.', 'wp-asset-clean-up'); ?> (e.g. to access it in Chrome yo go to <em>File -> New Incognito Window</em>, while on Firefox & Safari, you access it via <em>File -> New Private Window</em>) <img src="<?php echo WPACU_PLUGIN_URL; ?>/assets/icons/icon-incognito.png" alt="" style="height: 22px; width: 22px; vertical-align: middle; margin-right: 5px;" /></p>
|
35 |
</div>
|
36 |
|
37 |
+
<p><strong><?php _e('Example', 'wp-asset-clean-up'); ?>:</strong> <?php _e('For instance, you have an eCommerce website (e.g. WooCommerce, Easy Digital Downloads), and you\'re worried that unloading one wrong asset could break the "add to cart" functionality or the layout of the product page. You can enable this option, do the unloading for the CSS & JavaScript files you believe are not needed on certain pages, test to check if everything is alright, and then disable test mode to enable the unloading for your visitors too (not only the admin).', 'wp-asset-clean-up'); ?></p>
|
38 |
|
39 |
<div class="wpacu-warning">
|
40 |
+
<p style="margin-top: 0;"><span class="dashicons dashicons-info"></span> <?php echo sprintf(__('<strong>Important:</strong> If you\'re using page speed test tools such as GTMetrix, Pingdom, Google PageSpeed Insights, etc., while test mode is enabled, you will not see any improvements in the reports because, technically, %s plugin is deactivated for guests users and anyone else (including bots and GTMetrix visits), the changes you made being visible only to you.', 'wp-asset-clean-up'), WPACU_PLUGIN_TITLE); ?></p>
|
41 |
+
<p><?php _e('Once everything is alright with the way your websites loads, after you stripped the "fat" from your pages, you can disable test mode to apply the changes to everyone and then run tests via GTMetrix or other similar tools.', 'wp-asset-clean-up'); ?></p>
|
42 |
</div>
|
43 |
</td>
|
44 |
</tr>
|
templates/_top-area.php
CHANGED
@@ -11,38 +11,38 @@ use WpAssetCleanUp\Misc;
|
|
11 |
$wpacuTopAreaLinks = array(
|
12 |
'admin.php?page=wpassetcleanup_settings' => array(
|
13 |
'icon' => '<span class="dashicons dashicons-admin-generic"></span>',
|
14 |
-
'title' => __('Settings',
|
15 |
'page' => 'wpassetcleanup_settings'
|
16 |
),
|
17 |
'admin.php?page=wpassetcleanup_assets_manager' => array(
|
18 |
'icon' => '<span class="dashicons dashicons-media-code"></span>',
|
19 |
-
'title' => __('CSS & JavaScript Load Manager',
|
20 |
'page' => 'wpassetcleanup_assets_manager',
|
21 |
),
|
22 |
'admin.php?page=wpassetcleanup_bulk_unloads' => array(
|
23 |
'icon' => '<span class="dashicons dashicons-networking"></span>',
|
24 |
-
'title' => __('Bulk Changes',
|
25 |
'page' => 'wpassetcleanup_bulk_unloads'
|
26 |
),
|
27 |
'admin.php?page=wpassetcleanup_tools' => array(
|
28 |
'icon' => '<span class="dashicons dashicons-admin-tools"></span>',
|
29 |
-
'title' => __('Tools',
|
30 |
'page' => 'wpassetcleanup_tools'
|
31 |
),
|
32 |
'admin.php?page=wpassetcleanup_license' => array(
|
33 |
'icon' => '<span class="dashicons dashicons-awards"></span>',
|
34 |
-
'title' => __('License',
|
35 |
'page' => 'wpassetcleanup_license'
|
36 |
),
|
37 |
'admin.php?page=wpassetcleanup_get_help' => array(
|
38 |
'icon' => '<span class="dashicons dashicons-sos"></span>',
|
39 |
-
'title' => __('Help',
|
40 |
'page' => 'wpassetcleanup_get_help'
|
41 |
),
|
42 |
// [wpacu_lite]
|
43 |
'admin.php?page=wpassetcleanup_go_pro' => array(
|
44 |
'icon' => '<span class="dashicons dashicons-star-filled"></span>',
|
45 |
-
'title' => __('Go Pro',
|
46 |
'page' => 'wpassetcleanup_go_pro',
|
47 |
'target' => '_blank'
|
48 |
)
|
@@ -51,8 +51,15 @@ $wpacuTopAreaLinks = array(
|
|
51 |
|
52 |
global $current_screen;
|
53 |
|
54 |
-
$wpacuCurrentPage
|
|
|
|
|
|
|
|
|
|
|
55 |
$wpacuDefaultPageUrl = admin_url(Misc::arrayKeyFirst($wpacuTopAreaLinks));
|
|
|
|
|
56 |
?>
|
57 |
<div id="wpacu-top-area">
|
58 |
<div id="wpacu-logo-wrap">
|
@@ -61,6 +68,16 @@ $wpacuDefaultPageUrl = admin_url(Misc::arrayKeyFirst($wpacuTopAreaLinks));
|
|
61 |
<div class="wpacu-pro-sign wpacu-lite">LITE</div>
|
62 |
</a>
|
63 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
</div>
|
65 |
|
66 |
<div class="wpacu-tabs wpacu-tabs-style-topline">
|
11 |
$wpacuTopAreaLinks = array(
|
12 |
'admin.php?page=wpassetcleanup_settings' => array(
|
13 |
'icon' => '<span class="dashicons dashicons-admin-generic"></span>',
|
14 |
+
'title' => __('Settings', 'wp-asset-clean-up'),
|
15 |
'page' => 'wpassetcleanup_settings'
|
16 |
),
|
17 |
'admin.php?page=wpassetcleanup_assets_manager' => array(
|
18 |
'icon' => '<span class="dashicons dashicons-media-code"></span>',
|
19 |
+
'title' => __('CSS & JavaScript Load Manager', 'wp-asset-clean-up'),
|
20 |
'page' => 'wpassetcleanup_assets_manager',
|
21 |
),
|
22 |
'admin.php?page=wpassetcleanup_bulk_unloads' => array(
|
23 |
'icon' => '<span class="dashicons dashicons-networking"></span>',
|
24 |
+
'title' => __('Bulk Changes', 'wp-asset-clean-up'),
|
25 |
'page' => 'wpassetcleanup_bulk_unloads'
|
26 |
),
|
27 |
'admin.php?page=wpassetcleanup_tools' => array(
|
28 |
'icon' => '<span class="dashicons dashicons-admin-tools"></span>',
|
29 |
+
'title' => __('Tools', 'wp-asset-clean-up'),
|
30 |
'page' => 'wpassetcleanup_tools'
|
31 |
),
|
32 |
'admin.php?page=wpassetcleanup_license' => array(
|
33 |
'icon' => '<span class="dashicons dashicons-awards"></span>',
|
34 |
+
'title' => __('License', 'wp-asset-clean-up'),
|
35 |
'page' => 'wpassetcleanup_license'
|
36 |
),
|
37 |
'admin.php?page=wpassetcleanup_get_help' => array(
|
38 |
'icon' => '<span class="dashicons dashicons-sos"></span>',
|
39 |
+
'title' => __('Help', 'wp-asset-clean-up'),
|
40 |
'page' => 'wpassetcleanup_get_help'
|
41 |
),
|
42 |
// [wpacu_lite]
|
43 |
'admin.php?page=wpassetcleanup_go_pro' => array(
|
44 |
'icon' => '<span class="dashicons dashicons-star-filled"></span>',
|
45 |
+
'title' => __('Go Pro', 'wp-asset-clean-up'),
|
46 |
'page' => 'wpassetcleanup_go_pro',
|
47 |
'target' => '_blank'
|
48 |
)
|
51 |
|
52 |
global $current_screen;
|
53 |
|
54 |
+
$wpacuCurrentPage = str_replace(
|
55 |
+
array(str_replace(' ', '-', strtolower(WPACU_PLUGIN_TITLE)).'_page_', 'toplevel_page_'),
|
56 |
+
'',
|
57 |
+
$current_screen->base
|
58 |
+
);
|
59 |
+
|
60 |
$wpacuDefaultPageUrl = admin_url(Misc::arrayKeyFirst($wpacuTopAreaLinks));
|
61 |
+
|
62 |
+
$goBackToCurrentUrl = '&_wp_http_referer=' . urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) );
|
63 |
?>
|
64 |
<div id="wpacu-top-area">
|
65 |
<div id="wpacu-logo-wrap">
|
68 |
<div class="wpacu-pro-sign wpacu-lite">LITE</div>
|
69 |
</a>
|
70 |
</div>
|
71 |
+
|
72 |
+
<div id="wpacu-quick-actions">
|
73 |
+
<span class="wpacu-actions-title"><?php _e('QUICK ACTIONS', 'wp-asset-clean-up'); ?>:</span>
|
74 |
+
<a href="<?php echo wp_nonce_url(admin_url('admin-post.php?action=assetcleanup_clear_assets_cache' . $goBackToCurrentUrl),
|
75 |
+
'assetcleanup_clear_assets_cache'); ?>">
|
76 |
+
<span class="dashicons dashicons-update"></span> <?php _e('Clear CSS/JS Files Cache', 'wp-asset-clean-up'); ?>
|
77 |
+
</a>
|
78 |
+
</div>
|
79 |
+
|
80 |
+
<div class="wpacu-clearfix"></div>
|
81 |
</div>
|
82 |
|
83 |
<div class="wpacu-tabs wpacu-tabs-style-topline">
|
templates/admin-page-assets-manager.php
CHANGED
@@ -11,8 +11,8 @@ include_once '_top-area.php';
|
|
11 |
|
12 |
<div class="wpacu-wrap">
|
13 |
<nav class="nav-tab-wrapper">
|
14 |
-
<a href="<?php echo admin_url('admin.php?page=wpassetcleanup_assets_manager&wpacu_for=homepage'); ?>" class="nav-tab <?php if ($data['for'] === 'homepage') { ?>nav-tab-active<?php } ?>"><?php _e('Homepage',
|
15 |
-
<a href="<?php echo admin_url('admin.php?page=wpassetcleanup_assets_manager&wpacu_for=all_other_pages'); ?>" class="nav-tab <?php if ($data['for'] === 'all_other_pages') { ?>nav-tab-active<?php } ?>"><?php _e('All Other Pages',
|
16 |
</nav>
|
17 |
|
18 |
<div class="wpacu-clearfix"></div>
|
11 |
|
12 |
<div class="wpacu-wrap">
|
13 |
<nav class="nav-tab-wrapper">
|
14 |
+
<a href="<?php echo admin_url('admin.php?page=wpassetcleanup_assets_manager&wpacu_for=homepage'); ?>" class="nav-tab <?php if ($data['for'] === 'homepage') { ?>nav-tab-active<?php } ?>"><?php _e('Homepage', 'wp-asset-clean-up'); ?></a>
|
15 |
+
<a href="<?php echo admin_url('admin.php?page=wpassetcleanup_assets_manager&wpacu_for=all_other_pages'); ?>" class="nav-tab <?php if ($data['for'] === 'all_other_pages') { ?>nav-tab-active<?php } ?>"><?php _e('All Other Pages', 'wp-asset-clean-up'); ?></a>
|
16 |
</nav>
|
17 |
|
18 |
<div class="wpacu-clearfix"></div>
|
templates/admin-page-child-pages-info.php
CHANGED
@@ -7,15 +7,15 @@ if (! isset($data)) {
|
|
7 |
}
|
8 |
|
9 |
// [wpacu_lite]
|
10 |
-
$availableForPro = '<a href="'.WPACU_PLUGIN_GO_PRO_URL.'?utm_source=plugin_pages_info_lock_page_type" class="go-pro-link-no-style"><span class="wpacu-tooltip">'.__('Available for Pro users',
|
11 |
-
$availableForProBtn = '<a class="button button-disabled go-pro-link-no-style" style="font-style: normal;" href="'.WPACU_PLUGIN_GO_PRO_URL.'?utm_source=plugin_pages_info_lock_action_btn"><span class="wpacu-tooltip wpacu-on-pages-btn">'.__('Available for Pro users',
|
12 |
// [/wpacu_lite]
|
13 |
?>
|
14 |
<div id="wpacu-pages-info-area" class="wpacu-wrap">
|
15 |
<div style="margin: 20px 0 0;" class="wpacu-notice-info">
|
16 |
<p>
|
17 |
-
<?php echo __('This is an overview of all the WordPress pages where Asset CleanUp can be used to unload unused CSS & JavaScript files.',
|
18 |
-
sprintf(__('Unloading assets (CSS & JavaScript) for page types that have a locker next to their name requires an %supgrade to the Pro version%s.',
|
19 |
</p>
|
20 |
</div>
|
21 |
|
@@ -23,68 +23,68 @@ $availableForProBtn = '<a class="button button-disabled go-pro-link-no-style" st
|
|
23 |
<table class="table table-striped">
|
24 |
<thead class="thead-default">
|
25 |
<tr>
|
26 |
-
<th align="left"><?php _e('PAGE TYPE',
|
27 |
-
<th align="left"><?php _e('ACTION',
|
28 |
-
<th align="left"><?php _e('DESCRIPTION',
|
29 |
</tr>
|
30 |
</thead>
|
31 |
<tbody>
|
32 |
<!--
|
33 |
-->
|
34 |
<tr>
|
35 |
-
<td width="16%"><strong><?php _e('Posts',
|
36 |
-
<td><a class="button" id="wpacu-manage-assets-posts-info-btn" href="#wpacu-manage-assets-posts-info"><?php _e('Manage Assets',
|
37 |
-
<td>Post Type: 'post' (e.g. blog entries) ⟶ <a href="https://codex.wordpress.org/Posts_Screen"><?php _e('read more',
|
38 |
</tr>
|
39 |
<tr>
|
40 |
-
<td><strong><?php _e('Custom Post Type',
|
41 |
-
<td><a class="button" id="wpacu-manage-assets-custom-post-type-info-btn" href="#wpacu-manage-assets-custom-post-type-info"><?php _e('Manage Assets',
|
42 |
-
<td>Popular examples: 'product' created by WooCommerce, 'download' created by Easy Digital Downloads etc. ⟶ <a href="https://codex.wordpress.org/Post_Types#Custom_Post_Types"><?php _e('read more',
|
43 |
</tr>
|
44 |
<tr>
|
45 |
-
<td><strong><?php _e('Pages',
|
46 |
-
<td><a class="button" id="wpacu-manage-assets-pages-info-btn" href="#wpacu-manage-assets-pages-info"><?php _e('Manage Assets',
|
47 |
-
<td>Post Type: 'page' (e.g. About us, Contact) ⟶ <a href="https://codex.wordpress.org/Pages_Screen"><?php _e('read more',
|
48 |
</tr>
|
49 |
<tr>
|
50 |
-
<td><strong><?php _e('Media Attachment',
|
51 |
-
<td><a class="button" id="wpacu-manage-assets-attachments-info-btn" href="#wpacu-manage-assets-attachments-info"><?php _e('Manage Assets',
|
52 |
-
<td>Post Type: 'attachment' (e.g. files from <a target="_blank" href="https://codex.wordpress.org/Media_Library_Screen">"Media" » "Library"</a>, the page loaded usually prints the image or other media type) ⟶ <a href="https://codex.wordpress.org/Edit_Media"><?php _e('read more',
|
53 |
</tr>
|
54 |
<tr>
|
55 |
-
<td><strong><?php _e('Categories',
|
56 |
<td><?php echo $availableForProBtn; ?></td>
|
57 |
-
<td>Default Taxonomy (they are found in "Posts" » "Categories", accessing a category link reveals all the posts from that category) ⟶ <a href="https://codex.wordpress.org/Posts_Categories_Screen"><?php _e('read more',
|
58 |
</tr>
|
59 |
<tr>
|
60 |
-
<td><strong><?php _e('Tags',
|
61 |
<td><?php echo $availableForProBtn; ?></td>
|
62 |
-
<td>Default Taxonomy (they are found in "Posts" » "Tags", accessing a tag link reveals all the posts associated with the tag) ⟶ <a href="https://codex.wordpress.org/Posts_Tags_Screen"><?php _e('read more',
|
63 |
</tr>
|
64 |
<tr>
|
65 |
-
<td><strong><?php _e('Custom Taxonomy',
|
66 |
<td><?php echo $availableForProBtn; ?></td>
|
67 |
-
<td>Popular examples: 'product_cat' created by WooCommerce, 'download_category' created by Easy Digital Downloads etc. ⟶ <a href="https://codex.wordpress.org/Taxonomies#Custom_Taxonomies"><?php _e('read more',
|
68 |
</tr>
|
69 |
<tr>
|
70 |
-
<td><strong><?php _e('Search',
|
71 |
<td><?php echo $availableForProBtn; ?></td>
|
72 |
<td>Default Search Template (search.php » this is the template that displays the search results; the query parameter "s" is within the URL). If you create a <a href="https://codex.wordpress.org/Creating_a_Search_Page">Search Page</a>, it will belong to the "Pages" page type. The assets can be unloaded <strong>only in the front-end view</strong> (<em>"Manage in the Front-end?" from "Settings" tab has to be enabled</em>).</td>
|
73 |
</tr>
|
74 |
<tr>
|
75 |
-
<td><strong><?php _e('Author',
|
76 |
<td><?php echo $availableForProBtn; ?></td>
|
77 |
<td>Shows all posts belonging to a specific author (e.g. https://yourwebsite.com/author/yourname/). The assets can be unloaded <strong>only in the front-end view</strong> (<em>"Manage in the Front-end?" from "Settings" tab has to be enabled</em>).</td>
|
78 |
</tr>
|
79 |
<tr>
|
80 |
-
<td><strong><?php _e('Date',
|
81 |
<td><?php echo $availableForProBtn; ?></td>
|
82 |
<td>Shows all posts based on the chosen date (e.g. https://yourwebsite.com/2018/08/). The assets can be unloaded <strong>only in the front-end view</strong> (<em>"Manage in the Front-end?" from "Settings" tab has to be enabled</em>).</td>
|
83 |
</tr>
|
84 |
<tr>
|
85 |
-
<td><strong><?php _e('404 Not Found',
|
86 |
<td><?php echo $availableForProBtn; ?></td>
|
87 |
-
<td>This page (404.php within the theme) is reached when a request is not valid. It could be an old link that is not used anymore or the visitor typed the wrong URL to an article etc. (e.g. https://yourwebsite.com/this-is-a-non-existent-page.html). The assets can be unloaded <strong>only in the front-end view</strong> (<em>"Manage in the Front-end?" from "Settings" tab has to be enabled</em>). ⟶ <a href="https://codex.wordpress.org/Creating_an_Error_404_Page"><?php _e('read more',
|
88 |
</tr>
|
89 |
</tbody>
|
90 |
</table>
|
@@ -94,7 +94,7 @@ $availableForProBtn = '<a class="button button-disabled go-pro-link-no-style" st
|
|
94 |
<div id="wpacu-manage-assets-posts-info" class="wpacu-modal">
|
95 |
<div class="wpacu-modal-content">
|
96 |
<span class="wpacu-close">×</span>
|
97 |
-
<h2><?php _e('Posts',
|
98 |
<p style="margin-bottom: 0;">⟶ If "Manage in the Dashboard?" is enabled:</p>
|
99 |
<p style="margin-top: 0;">Go to "Posts" -> "All Posts" -> [Choose the page you want to manage the assets for] -> Scroll to "Asset CleanUp" meta box where you will see the loaded CSS & JavaScript files</p>
|
100 |
<hr />
|
@@ -108,7 +108,7 @@ $availableForProBtn = '<a class="button button-disabled go-pro-link-no-style" st
|
|
108 |
<div id="wpacu-manage-assets-custom-post-type-info" class="wpacu-modal">
|
109 |
<div class="wpacu-modal-content">
|
110 |
<span class="wpacu-close">×</span>
|
111 |
-
<h2><?php _e('Custom Post Type',
|
112 |
<p><strong>Example:</strong> WooCommerce product</p>
|
113 |
<p style="margin-bottom: 0;">⟶ If "Manage in the Dashboard?" is enabled:</p>
|
114 |
<p style="margin-top: 0;">Go to "Products" -> "All Products" -> [Choose the page you want to manage the assets for] -> Scroll to "Asset CleanUp" meta box where you will see the loaded CSS & JavaScript files</p>
|
@@ -123,7 +123,7 @@ $availableForProBtn = '<a class="button button-disabled go-pro-link-no-style" st
|
|
123 |
<div id="wpacu-manage-assets-pages-info" class="wpacu-modal">
|
124 |
<div class="wpacu-modal-content">
|
125 |
<span class="wpacu-close">×</span>
|
126 |
-
<h2><?php _e('Pages',
|
127 |
<p style="margin-bottom: 0;">⟶ If "Manage in the Dashboard?" is enabled:</p>
|
128 |
<p style="margin-top: 0;">Go to "Pages" -> "All Pages" -> [Choose the page you want to manage the assets for] -> Scroll to "Asset CleanUp" meta box where you will see the loaded CSS & JavaScript files</p>
|
129 |
<hr />
|
@@ -137,7 +137,7 @@ $availableForProBtn = '<a class="button button-disabled go-pro-link-no-style" st
|
|
137 |
<div id="wpacu-manage-assets-attachments-info" class="wpacu-modal">
|
138 |
<div class="wpacu-modal-content">
|
139 |
<span class="wpacu-close">×</span>
|
140 |
-
<h2><?php _e('Media Attachment Pages',
|
141 |
<p>Note: This is rarely used/needed and in some WordPress setups, the attachment's permalink redirects to the media file itself.</p>
|
142 |
<p style="margin-bottom: 0;">⟶ If "Manage in the Dashboard?" is enabled:</p>
|
143 |
<p style="margin-top: 0;">Go to "Media" -> "Library" -> [Choose the media you want to manage the assets for] -> Scroll to "Asset CleanUp" meta box where you will see the loaded CSS & JavaScript files</p>
|
7 |
}
|
8 |
|
9 |
// [wpacu_lite]
|
10 |
+
$availableForPro = '<a href="'.WPACU_PLUGIN_GO_PRO_URL.'?utm_source=plugin_pages_info_lock_page_type" class="go-pro-link-no-style"><span class="wpacu-tooltip">'.__('Available for Pro users', 'wp-asset-clean-up').'<br />'.__('Click to upgrade!', 'wp-asset-clean-up').'</span> <img width="20" height="20" src="'.WPACU_PLUGIN_URL.'/assets/icons/icon-lock.svg" valign="top" alt="" /></a>';
|
11 |
+
$availableForProBtn = '<a class="button button-disabled go-pro-link-no-style" style="font-style: normal;" href="'.WPACU_PLUGIN_GO_PRO_URL.'?utm_source=plugin_pages_info_lock_action_btn"><span class="wpacu-tooltip wpacu-on-pages-btn">'.__('Available for Pro users', 'wp-asset-clean-up').'<br />'.__('Click to upgrade!', 'wp-asset-clean-up').'</span>'.__('Manage Assets', 'wp-asset-clean-up').'</a>';
|
12 |
// [/wpacu_lite]
|
13 |
?>
|
14 |
<div id="wpacu-pages-info-area" class="wpacu-wrap">
|
15 |
<div style="margin: 20px 0 0;" class="wpacu-notice-info">
|
16 |
<p>
|
17 |
+
<?php echo __('This is an overview of all the WordPress pages where Asset CleanUp can be used to unload unused CSS & JavaScript files.', 'wp-asset-clean-up') .
|
18 |
+
sprintf(__('Unloading assets (CSS & JavaScript) for page types that have a locker next to their name requires an %supgrade to the Pro version%s.', 'wp-asset-clean-up'), '<a href="'.WPACU_PLUGIN_GO_PRO_URL.'?utm_source=plugin_pages_info&utm_medium=top_note">', '</a>'); ?>
|
19 |
</p>
|
20 |
</div>
|
21 |
|
23 |
<table class="table table-striped">
|
24 |
<thead class="thead-default">
|
25 |
<tr>
|
26 |
+
<th align="left"><?php _e('PAGE TYPE', 'wp-asset-clean-up'); ?></th>
|
27 |
+
<th align="left"><?php _e('ACTION', 'wp-asset-clean-up'); ?></th>
|
28 |
+
<th align="left"><?php _e('DESCRIPTION', 'wp-asset-clean-up'); ?></th>
|
29 |
</tr>
|
30 |
</thead>
|
31 |
<tbody>
|
32 |
<!--
|
33 |
-->
|
34 |
<tr>
|
35 |
+
<td width="16%"><strong><?php _e('Posts', 'wp-asset-clean-up'); ?></strong></td>
|
36 |
+
<td><a class="button" id="wpacu-manage-assets-posts-info-btn" href="#wpacu-manage-assets-posts-info"><?php _e('Manage Assets', 'wp-asset-clean-up'); ?></a></td>
|
37 |
+
<td>Post Type: 'post' (e.g. blog entries) ⟶ <a href="https://codex.wordpress.org/Posts_Screen"><?php _e('read more', 'wp-asset-clean-up'); ?></a></td>
|
38 |
</tr>
|
39 |
<tr>
|
40 |
+
<td><strong><?php _e('Custom Post Type', 'wp-asset-clean-up'); ?></strong></td>
|
41 |
+
<td><a class="button" id="wpacu-manage-assets-custom-post-type-info-btn" href="#wpacu-manage-assets-custom-post-type-info"><?php _e('Manage Assets', 'wp-asset-clean-up'); ?></a></td>
|
42 |
+
<td>Popular examples: 'product' created by WooCommerce, 'download' created by Easy Digital Downloads etc. ⟶ <a href="https://codex.wordpress.org/Post_Types#Custom_Post_Types"><?php _e('read more', 'wp-asset-clean-up'); ?></a></td>
|
43 |
</tr>
|
44 |
<tr>
|
45 |
+
<td><strong><?php _e('Pages', 'wp-asset-clean-up'); ?></strong></td>
|
46 |
+
<td><a class="button" id="wpacu-manage-assets-pages-info-btn" href="#wpacu-manage-assets-pages-info"><?php _e('Manage Assets', 'wp-asset-clean-up'); ?></a></td>
|
47 |
+
<td>Post Type: 'page' (e.g. About us, Contact) ⟶ <a href="https://codex.wordpress.org/Pages_Screen"><?php _e('read more', 'wp-asset-clean-up'); ?></a></td>
|
48 |
</tr>
|
49 |
<tr>
|
50 |
+
<td><strong><?php _e('Media Attachment', 'wp-asset-clean-up'); ?></strong></td>
|
51 |
+
<td><a class="button" id="wpacu-manage-assets-attachments-info-btn" href="#wpacu-manage-assets-attachments-info"><?php _e('Manage Assets', 'wp-asset-clean-up'); ?></a></td>
|
52 |
+
<td>Post Type: 'attachment' (e.g. files from <a target="_blank" href="https://codex.wordpress.org/Media_Library_Screen">"Media" » "Library"</a>, the page loaded usually prints the image or other media type) ⟶ <a href="https://codex.wordpress.org/Edit_Media"><?php _e('read more', 'wp-asset-clean-up'); ?></a></td>
|
53 |
</tr>
|
54 |
<tr>
|
55 |
+
<td><strong><?php _e('Categories', 'wp-asset-clean-up'); ?></strong><?php echo $availableForPro; ?></td>
|
56 |
<td><?php echo $availableForProBtn; ?></td>
|
57 |
+
<td>Default Taxonomy (they are found in "Posts" » "Categories", accessing a category link reveals all the posts from that category) ⟶ <a href="https://codex.wordpress.org/Posts_Categories_Screen"><?php _e('read more', 'wp-asset-clean-up'); ?></a></td>
|
58 |
</tr>
|
59 |
<tr>
|
60 |
+
<td><strong><?php _e('Tags', 'wp-asset-clean-up'); ?></strong><?php echo $availableForPro; ?></td>
|
61 |
<td><?php echo $availableForProBtn; ?></td>
|
62 |
+
<td>Default Taxonomy (they are found in "Posts" » "Tags", accessing a tag link reveals all the posts associated with the tag) ⟶ <a href="https://codex.wordpress.org/Posts_Tags_Screen"><?php _e('read more', 'wp-asset-clean-up'); ?></a></td>
|
63 |
</tr>
|
64 |
<tr>
|
65 |
+
<td><strong><?php _e('Custom Taxonomy', 'wp-asset-clean-up'); ?></strong><?php echo $availableForPro; ?></td>
|
66 |
<td><?php echo $availableForProBtn; ?></td>
|
67 |
+
<td>Popular examples: 'product_cat' created by WooCommerce, 'download_category' created by Easy Digital Downloads etc. ⟶ <a href="https://codex.wordpress.org/Taxonomies#Custom_Taxonomies"><?php _e('read more', 'wp-asset-clean-up'); ?></a></td>
|
68 |
</tr>
|
69 |
<tr>
|
70 |
+
<td><strong><?php _e('Search', 'wp-asset-clean-up'); ?></strong><?php echo $availableForPro; ?></td>
|
71 |
<td><?php echo $availableForProBtn; ?></td>
|
72 |
<td>Default Search Template (search.php » this is the template that displays the search results; the query parameter "s" is within the URL). If you create a <a href="https://codex.wordpress.org/Creating_a_Search_Page">Search Page</a>, it will belong to the "Pages" page type. The assets can be unloaded <strong>only in the front-end view</strong> (<em>"Manage in the Front-end?" from "Settings" tab has to be enabled</em>).</td>
|
73 |
</tr>
|
74 |
<tr>
|
75 |
+
<td><strong><?php _e('Author', 'wp-asset-clean-up'); ?></strong><?php echo $availableForPro; ?></td>
|
76 |
<td><?php echo $availableForProBtn; ?></td>
|
77 |
<td>Shows all posts belonging to a specific author (e.g. https://yourwebsite.com/author/yourname/). The assets can be unloaded <strong>only in the front-end view</strong> (<em>"Manage in the Front-end?" from "Settings" tab has to be enabled</em>).</td>
|
78 |
</tr>
|
79 |
<tr>
|
80 |
+
<td><strong><?php _e('Date', 'wp-asset-clean-up'); ?></strong><?php echo $availableForPro; ?></td>
|
81 |
<td><?php echo $availableForProBtn; ?></td>
|
82 |
<td>Shows all posts based on the chosen date (e.g. https://yourwebsite.com/2018/08/). The assets can be unloaded <strong>only in the front-end view</strong> (<em>"Manage in the Front-end?" from "Settings" tab has to be enabled</em>).</td>
|
83 |
</tr>
|
84 |
<tr>
|
85 |
+
<td><strong><?php _e('404 Not Found', 'wp-asset-clean-up'); ?></strong><?php echo $availableForPro; ?></td>
|
86 |
<td><?php echo $availableForProBtn; ?></td>
|
87 |
+
<td>This page (404.php within the theme) is reached when a request is not valid. It could be an old link that is not used anymore or the visitor typed the wrong URL to an article etc. (e.g. https://yourwebsite.com/this-is-a-non-existent-page.html). The assets can be unloaded <strong>only in the front-end view</strong> (<em>"Manage in the Front-end?" from "Settings" tab has to be enabled</em>). ⟶ <a href="https://codex.wordpress.org/Creating_an_Error_404_Page"><?php _e('read more', 'wp-asset-clean-up'); ?></a></td>
|
88 |
</tr>
|
89 |
</tbody>
|
90 |
</table>
|
94 |
<div id="wpacu-manage-assets-posts-info" class="wpacu-modal">
|
95 |
<div class="wpacu-modal-content">
|
96 |
<span class="wpacu-close">×</span>
|
97 |
+
<h2><?php _e('Posts', 'wp-asset-clean-up'); ?></h2>
|
98 |
<p style="margin-bottom: 0;">⟶ If "Manage in the Dashboard?" is enabled:</p>
|
99 |
<p style="margin-top: 0;">Go to "Posts" -> "All Posts" -> [Choose the page you want to manage the assets for] -> Scroll to "Asset CleanUp" meta box where you will see the loaded CSS & JavaScript files</p>
|
100 |
<hr />
|
108 |
<div id="wpacu-manage-assets-custom-post-type-info" class="wpacu-modal">
|
109 |
<div class="wpacu-modal-content">
|
110 |
<span class="wpacu-close">×</span>
|
111 |
+
<h2><?php _e('Custom Post Type', 'wp-asset-clean-up'); ?></h2>
|
112 |
<p><strong>Example:</strong> WooCommerce product</p>
|
113 |
<p style="margin-bottom: 0;">⟶ If "Manage in the Dashboard?" is enabled:</p>
|
114 |
<p style="margin-top: 0;">Go to "Products" -> "All Products" -> [Choose the page you want to manage the assets for] -> Scroll to "Asset CleanUp" meta box where you will see the loaded CSS & JavaScript files</p>
|
123 |
<div id="wpacu-manage-assets-pages-info" class="wpacu-modal">
|
124 |
<div class="wpacu-modal-content">
|
125 |
<span class="wpacu-close">×</span>
|
126 |
+
<h2><?php _e('Pages', 'wp-asset-clean-up'); ?></h2>
|
127 |
<p style="margin-bottom: 0;">⟶ If "Manage in the Dashboard?" is enabled:</p>
|
128 |
<p style="margin-top: 0;">Go to "Pages" -> "All Pages" -> [Choose the page you want to manage the assets for] -> Scroll to "Asset CleanUp" meta box where you will see the loaded CSS & JavaScript files</p>
|
129 |
<hr />
|
137 |
<div id="wpacu-manage-assets-attachments-info" class="wpacu-modal">
|
138 |
<div class="wpacu-modal-content">
|
139 |
<span class="wpacu-close">×</span>
|
140 |
+
<h2><?php _e('Media Attachment Pages', 'wp-asset-clean-up'); ?></h2>
|
141 |
<p>Note: This is rarely used/needed and in some WordPress setups, the attachment's permalink redirects to the media file itself.</p>
|
142 |
<p style="margin-bottom: 0;">⟶ If "Manage in the Dashboard?" is enabled:</p>
|
143 |
<p style="margin-top: 0;">Go to "Media" -> "Library" -> [Choose the media you want to manage the assets for] -> Scroll to "Asset CleanUp" meta box where you will see the loaded CSS & JavaScript files</p>
|
templates/admin-page-child-settings-homepage.php
CHANGED
@@ -8,28 +8,28 @@ if (! isset($data)) {
|
|
8 |
?>
|
9 |
<div style="margin: 30px 0 0;" class="cleafix"></div>
|
10 |
|
11 |
-
<h2><span class="dashicons dashicons-admin-home"></span> <?php _e('Home Page Scripts & Styles Management',
|
12 |
|
13 |
<?php
|
14 |
do_action('wpacu_admin_notices');
|
15 |
|
16 |
if ($data['wpacu_settings']['dashboard_show'] != 1) {
|
17 |
?>
|
18 |
-
<div class="error" style="padding: 10px;"><?php echo sprintf(__('As "Manage in the Dashboard?" is not enabled in "%sSettings%s", you can not manage the assets from the Dashboard.',
|
19 |
<?php
|
20 |
return;
|
21 |
}
|
22 |
|
23 |
if ($data['show_on_front'] === 'page') {
|
24 |
?>
|
25 |
-
<p><?php _e('In "Settings" » "Reading" you have selected a static page for "Front page displays" setting. To manage the assets (.CSS & .JS) that will NOT LOAD, use the link(s) below:',
|
26 |
<div>
|
27 |
<ul>
|
28 |
<?php
|
29 |
if ($data['page_on_front']) {
|
30 |
?>
|
31 |
<li>
|
32 |
-
<?php _e('Front page:',
|
33 |
<a href="<?php echo admin_url('post.php?post='.$data['page_on_front'].'&action=edit#'.WPACU_PLUGIN_ID.'_asset_list'); ?>"><strong><?php echo $data['page_on_front_title']; ?></strong></a>
|
34 |
</li>
|
35 |
<?php
|
@@ -38,7 +38,7 @@ if ($data['show_on_front'] === 'page') {
|
|
38 |
if ($data['page_for_posts']) {
|
39 |
?>
|
40 |
<li>
|
41 |
-
<?php _e('Posts page:',
|
42 |
<a href="<?php echo admin_url('post.php?post='.$data['page_for_posts'].'&action=edit#'.WPACU_PLUGIN_ID.'_asset_list'); ?>"><strong><?php echo $data['page_for_posts_title']; ?></strong></a>
|
43 |
</li>
|
44 |
<?php
|
@@ -46,7 +46,7 @@ if ($data['show_on_front'] === 'page') {
|
|
46 |
?>
|
47 |
</ul>
|
48 |
</div>
|
49 |
-
<p><?php echo sprintf(__('To read more about creating a static front page in WordPress, %scheck the Codex%s.',
|
50 |
<?php
|
51 |
} else {
|
52 |
?>
|
@@ -58,15 +58,15 @@ if ($data['show_on_front'] === 'page') {
|
|
58 |
name="wpacu_ajax_fetch_assets_list_dashboard_view"
|
59 |
value="1" />
|
60 |
|
61 |
-
<p><?php _e('Here you can unload files loaded on the home page. "Front page displays" (from "Settings" » "Reading") is set to either "Your latest posts" (in "Settings" » "Reading") OR a special layout (from a theme or plugin) was enabled.',
|
62 |
|
63 |
<div id="wpacu_meta_box_content">
|
64 |
<img src="<?php echo admin_url(); ?>/images/spinner.gif" align="top" width="20" height="20" alt="" />
|
65 |
|
66 |
-
<?php _e('Retrieving the loaded scripts and styles for the home page. Please wait...',
|
67 |
|
68 |
<p><?php echo sprintf(
|
69 |
-
__('If you believe fetching the page takes too long and the assets should have loaded by now, I suggest you go to "Settings", make sure "Manage in front-end" is checked and then %smanage the assets in the front-end%s.',
|
70 |
'<a href="'.$data['site_url'].'#wpacu_wrap_assets">',
|
71 |
'</a>'
|
72 |
); ?></p>
|
@@ -76,7 +76,10 @@ if ($data['show_on_front'] === 'page') {
|
|
76 |
wp_nonce_field($data['nonce_name']);
|
77 |
?>
|
78 |
<div id="wpacu-update-button-area" class="no-left-margin">
|
79 |
-
<p class="submit"><input type="submit" name="submit" id="submit" class="hidden button button-primary" value="<?php esc_attr_e('Update',
|
|
|
|
|
|
|
80 |
</div>
|
81 |
</form>
|
82 |
<?php
|
8 |
?>
|
9 |
<div style="margin: 30px 0 0;" class="cleafix"></div>
|
10 |
|
11 |
+
<h2><span class="dashicons dashicons-admin-home"></span> <?php _e('Home Page Scripts & Styles Management', 'wp-asset-clean-up'); ?></h2>
|
12 |
|
13 |
<?php
|
14 |
do_action('wpacu_admin_notices');
|
15 |
|
16 |
if ($data['wpacu_settings']['dashboard_show'] != 1) {
|
17 |
?>
|
18 |
+
<div class="error" style="padding: 10px;"><?php echo sprintf(__('As "Manage in the Dashboard?" is not enabled in "%sSettings%s", you can not manage the assets from the Dashboard.', 'wp-asset-clean-up'), '<a href="admin.php?page=wpassetcleanup_settings">', '</a>'); ?></div>
|
19 |
<?php
|
20 |
return;
|
21 |
}
|
22 |
|
23 |
if ($data['show_on_front'] === 'page') {
|
24 |
?>
|
25 |
+
<p><?php _e('In "Settings" » "Reading" you have selected a static page for "Front page displays" setting. To manage the assets (.CSS & .JS) that will NOT LOAD, use the link(s) below:', 'wp-asset-clean-up'); ?></p>
|
26 |
<div>
|
27 |
<ul>
|
28 |
<?php
|
29 |
if ($data['page_on_front']) {
|
30 |
?>
|
31 |
<li>
|
32 |
+
<?php _e('Front page:', 'wp-asset-clean-up'); ?>
|
33 |
<a href="<?php echo admin_url('post.php?post='.$data['page_on_front'].'&action=edit#'.WPACU_PLUGIN_ID.'_asset_list'); ?>"><strong><?php echo $data['page_on_front_title']; ?></strong></a>
|
34 |
</li>
|
35 |
<?php
|
38 |
if ($data['page_for_posts']) {
|
39 |
?>
|
40 |
<li>
|
41 |
+
<?php _e('Posts page:', 'wp-asset-clean-up'); ?>
|
42 |
<a href="<?php echo admin_url('post.php?post='.$data['page_for_posts'].'&action=edit#'.WPACU_PLUGIN_ID.'_asset_list'); ?>"><strong><?php echo $data['page_for_posts_title']; ?></strong></a>
|
43 |
</li>
|
44 |
<?php
|
46 |
?>
|
47 |
</ul>
|
48 |
</div>
|
49 |
+
<p><?php echo sprintf(__('To read more about creating a static front page in WordPress, %scheck the Codex%s.', 'wp-asset-clean-up'), '<a target="_blank" href="https://codex.wordpress.org/Creating_a_Static_Front_Page">', '</a>'); ?></p>
|
50 |
<?php
|
51 |
} else {
|
52 |
?>
|
58 |
name="wpacu_ajax_fetch_assets_list_dashboard_view"
|
59 |
value="1" />
|
60 |
|
61 |
+
<p><?php _e('Here you can unload files loaded on the home page. "Front page displays" (from "Settings" » "Reading") is set to either "Your latest posts" (in "Settings" » "Reading") OR a special layout (from a theme or plugin) was enabled.', 'wp-asset-clean-up'); ?> <?php echo sprintf(__('Changes will also apply to pages such as %s etc. in case the latest blog posts are paginated.', 'wp-asset-clean-up'), '<code>/page/2</code> <code>page/3</code>'); ?></p>
|
62 |
|
63 |
<div id="wpacu_meta_box_content">
|
64 |
<img src="<?php echo admin_url(); ?>/images/spinner.gif" align="top" width="20" height="20" alt="" />
|
65 |
|
66 |
+
<?php _e('Retrieving the loaded scripts and styles for the home page. Please wait...', 'wp-asset-clean-up'); ?>
|
67 |
|
68 |
<p><?php echo sprintf(
|
69 |
+
__('If you believe fetching the page takes too long and the assets should have loaded by now, I suggest you go to "Settings", make sure "Manage in front-end" is checked and then %smanage the assets in the front-end%s.', 'wp-asset-clean-up'),
|
70 |
'<a href="'.$data['site_url'].'#wpacu_wrap_assets">',
|
71 |
'</a>'
|
72 |
); ?></p>
|
76 |
wp_nonce_field($data['nonce_name']);
|
77 |
?>
|
78 |
<div id="wpacu-update-button-area" class="no-left-margin">
|
79 |
+
<p class="submit"><input type="submit" name="submit" id="submit" class="hidden button button-primary" value="<?php esc_attr_e('Update', 'wp-asset-clean-up'); ?>"></p>
|
80 |
+
<div id="wpacu-updating-settings" style="margin-left: 100px;">
|
81 |
+
<img src="<?php echo admin_url(); ?>/images/spinner.gif" align="top" width="20" height="20" alt="" />
|
82 |
+
</div>
|
83 |
</div>
|
84 |
</form>
|
85 |
<?php
|
templates/admin-page-get-help.php
CHANGED
@@ -9,12 +9,11 @@ if (! isset($data)) {
|
|
9 |
include_once '_top-area.php';
|
10 |
?>
|
11 |
<div class="wpacu-wrap wpacu-get-help-wrap">
|
12 |
-
|
13 |
<div class="help-content-wrap">
|
14 |
<div class="help-content upgrade-help">
|
15 |
-
<h2 class="content-title"><?php _e('I have purchased the Pro version. How to do the upgrade?',
|
16 |
<ul>
|
17 |
-
<li><strong>1)</strong> <?php _e('Go to "Plugins" -> "Installed Plugins", <strong>deactivate</strong> and then <strong>delete</strong> "Asset CleanUp: Page Speed Booster" (<em>no worries, any settings applied would be preserved</em>)',
|
18 |
<div class="cols-wrap">
|
19 |
<div class="wpacu-image-area wpacu-deactivate col-left">
|
20 |
<img src="<?php echo WPACU_PLUGIN_URL; ?>/assets/images/wpacu-upgrade-steps/wpacu-upgrade-step-1-deactivate.jpg" alt="" />
|
@@ -27,24 +26,24 @@ include_once '_top-area.php';
|
|
27 |
<hr />
|
28 |
</div>
|
29 |
</li>
|
30 |
-
<li><strong>2)</strong> <?php _e('Go to "Plugins" -> "Add New" -> "Upload Plugin"; You will notice an upload form and an "Install Now" submit button. Download the ZIP file you received in your purchase email receipt (<em>example: wp-asset-clean-up-pro-v1.0.8.5.zip</em>), attach it to the form and install the new upgraded plugin.',
|
31 |
<div class="wpacu-image-area">
|
32 |
<img src="<?php echo WPACU_PLUGIN_URL; ?>/assets/images/wpacu-upgrade-steps/wpacu-upgrade-step-2-choose-file.jpg" alt="" />
|
33 |
</div>
|
34 |
<hr />
|
35 |
</li>
|
36 |
-
<li><strong>3)</strong> <?php _e('Finally, <strong>activate</strong> Asset CleanUp Pro! That\'s it',
|
37 |
<div class="wpacu-image-area activate-plugin">
|
38 |
<img src="<?php echo WPACU_PLUGIN_URL; ?>/assets/images/wpacu-upgrade-steps/wpacu-upgrade-step-3-activate-plugin.jpg" alt="" />
|
39 |
</div>
|
40 |
</li>
|
41 |
</ul>
|
42 |
|
43 |
-
<p><strong><?php _e('Reminder',
|
44 |
</div>
|
45 |
|
46 |
<div class="help-content tech-help second">
|
47 |
-
<h2 class="content-title"><?php _e('I am stuck and need assistance, can I get help?',
|
48 |
|
49 |
<p>If you believe the plugin has a bug (e.g. you're getting JavaScript or PHP errors generated by <?php echo WPACU_PLUGIN_TITLE; ?> or the selected scripts are not unloading etc.) that needs to be fixed, then <a href="https://wordpress.org/support/plugin/wp-asset-clean-up">please report it by opening a support ticket</a>.</p>
|
50 |
<p>Note that the support forum from WordPress.org is only for reporting bugs about <?php echo WPACU_PLUGIN_TITLE; ?> (lite version) and it's not for custom work request.</p>
|
@@ -68,9 +67,9 @@ include_once '_top-area.php';
|
|
68 |
<hr /><br />
|
69 |
|
70 |
<div class="wpacu-btns">
|
71 |
-
<a class="btn btn-success" href="https://app.codeable.io/tasks/new?ref=d3TOr&preferredContractor=28168"><?php _e('Hire an Expert',
|
72 |
|
73 |
-
<a class="btn btn-secondary" href="https://codeable.io/?ref=d3TOr"><?php _e('Find out more',
|
74 |
</div>
|
75 |
</div>
|
76 |
</div>
|
9 |
include_once '_top-area.php';
|
10 |
?>
|
11 |
<div class="wpacu-wrap wpacu-get-help-wrap">
|
|
|
12 |
<div class="help-content-wrap">
|
13 |
<div class="help-content upgrade-help">
|
14 |
+
<h2 class="content-title"><?php _e('I have purchased the Pro version. How to do the upgrade?', 'wp-asset-clean-up'); ?></h2>
|
15 |
<ul>
|
16 |
+
<li><strong>1)</strong> <?php _e('Go to "Plugins" -> "Installed Plugins", <strong>deactivate</strong> and then <strong>delete</strong> "Asset CleanUp: Page Speed Booster" (<em>no worries, any settings applied would be preserved</em>)', 'wp-asset-clean-up'); ?>
|
17 |
<div class="cols-wrap">
|
18 |
<div class="wpacu-image-area wpacu-deactivate col-left">
|
19 |
<img src="<?php echo WPACU_PLUGIN_URL; ?>/assets/images/wpacu-upgrade-steps/wpacu-upgrade-step-1-deactivate.jpg" alt="" />
|
26 |
<hr />
|
27 |
</div>
|
28 |
</li>
|
29 |
+
<li><strong>2)</strong> <?php _e('Go to "Plugins" -> "Add New" -> "Upload Plugin"; You will notice an upload form and an "Install Now" submit button. Download the ZIP file you received in your purchase email receipt (<em>example: wp-asset-clean-up-pro-v1.0.8.5.zip</em>), attach it to the form and install the new upgraded plugin.', 'wp-asset-clean-up'); ?>
|
30 |
<div class="wpacu-image-area">
|
31 |
<img src="<?php echo WPACU_PLUGIN_URL; ?>/assets/images/wpacu-upgrade-steps/wpacu-upgrade-step-2-choose-file.jpg" alt="" />
|
32 |
</div>
|
33 |
<hr />
|
34 |
</li>
|
35 |
+
<li><strong>3)</strong> <?php _e('Finally, <strong>activate</strong> Asset CleanUp Pro! That\'s it', 'wp-asset-clean-up'); ?> <span class="dashicons dashicons-smiley"></span>
|
36 |
<div class="wpacu-image-area activate-plugin">
|
37 |
<img src="<?php echo WPACU_PLUGIN_URL; ?>/assets/images/wpacu-upgrade-steps/wpacu-upgrade-step-3-activate-plugin.jpg" alt="" />
|
38 |
</div>
|
39 |
</li>
|
40 |
</ul>
|
41 |
|
42 |
+
<p><strong><?php _e('Reminder', 'wp-asset-clean-up'); ?>:</strong> <?php _e('Once the Pro version is active, make sure to get the license key from the purchase email receipt and activate it in "License" in order to be eligible for plugin updates from the Dashboard.', 'wp-asset-clean-up'); ?></p>
|
43 |
</div>
|
44 |
|
45 |
<div class="help-content tech-help second">
|
46 |
+
<h2 class="content-title"><?php _e('I am stuck and need assistance, can I get help?', 'wp-asset-clean-up'); ?></h2>
|
47 |
|
48 |
<p>If you believe the plugin has a bug (e.g. you're getting JavaScript or PHP errors generated by <?php echo WPACU_PLUGIN_TITLE; ?> or the selected scripts are not unloading etc.) that needs to be fixed, then <a href="https://wordpress.org/support/plugin/wp-asset-clean-up">please report it by opening a support ticket</a>.</p>
|
49 |
<p>Note that the support forum from WordPress.org is only for reporting bugs about <?php echo WPACU_PLUGIN_TITLE; ?> (lite version) and it's not for custom work request.</p>
|
67 |
<hr /><br />
|
68 |
|
69 |
<div class="wpacu-btns">
|
70 |
+
<a class="btn btn-success" href="https://app.codeable.io/tasks/new?ref=d3TOr&preferredContractor=28168"><?php _e('Hire an Expert', 'wp-asset-clean-up'); ?></a>
|
71 |
|
72 |
+
<a class="btn btn-secondary" href="https://codeable.io/?ref=d3TOr"><?php _e('Find out more', 'wp-asset-clean-up'); ?></a>
|
73 |
</div>
|
74 |
</div>
|
75 |
</div>
|
templates/admin-page-getting-started.php
CHANGED
@@ -8,27 +8,25 @@ if (! isset($data)) {
|
|
8 |
?>
|
9 |
<div class="wpacu-wrap">
|
10 |
<div class="about-wrap wpacu-about-wrap">
|
11 |
-
<h1><?php echo sprintf(__('Welcome to %s %s',
|
12 |
<p class="about-text wpacu-about-text">
|
13 |
-
<?php _e('Thank you for installing this page speed booster plugin',
|
14 |
<?php echo sprintf(
|
15 |
-
__('For maximum performance, %s works best when used with either a %scaching plugin%s, the in-built hosting caching (e.g. via %sWPEngine%s, Kinsta, etc.) or something like Varnish.',
|
16 |
'Asset CleanUp',
|
17 |
-
'<a style="text-decoration: none; color: #555d66;" href="https://gabelivan.com/visit/wp-rocket">',
|
18 |
-
'</a>'
|
19 |
-
'<a style="text-decoration: none; color: #555d66;" href="https://gabelivan.com/visit/wp-engine">',
|
20 |
-
'</a>'
|
21 |
);
|
22 |
?>
|
23 |
<img src="<?php echo WPACU_PLUGIN_URL; ?>/assets/images/wpacu-logo-transparent-bg-v1.png" alt="" />
|
24 |
</p>
|
25 |
|
26 |
<h2 class="nav-tab-wrapper wp-clearfix">
|
27 |
-
<a href="<?php echo admin_url('admin.php?page=wpassetcleanup_getting_started&wpacu_for=how-it-works'); ?>" class="nav-tab <?php if ($data['for'] === 'how-it-works') { ?>nav-tab-active<?php } ?>"><?php _e('How it works',
|
28 |
-
<a href="<?php echo admin_url('admin.php?page=wpassetcleanup_getting_started&wpacu_for=benefits-fast-pages'); ?>" class="nav-tab <?php if ($data['for'] === 'benefits-fast-pages') { ?>nav-tab-active<?php } ?>"><?php _e('Benefits of a Fast Website',
|
29 |
-
<a href="<?php echo admin_url('admin.php?page=wpassetcleanup_getting_started&wpacu_for=start-optimization'); ?>" class="nav-tab <?php if ($data['for'] === 'start-optimization') { ?>nav-tab-active<?php } ?>"><?php _e('Start Optimization',
|
30 |
-
<a href="<?php echo admin_url('admin.php?page=wpassetcleanup_getting_started&wpacu_for=video-tutorials'); ?>" class="nav-tab <?php if ($data['for'] === 'video-tutorials') { ?>nav-tab-active<?php } ?>"><span class="dashicons dashicons-video-alt3" style="color: #ff0000;"></span> <?php _e('Video Tutorials',
|
31 |
-
<a href="<?php echo admin_url('admin.php?page=wpassetcleanup_getting_started&wpacu_for=lite-vs-pro'); ?>" class="nav-tab <?php if ($data['for'] === 'lite-vs-pro') { ?>nav-tab-active<?php } ?>"><span class="dashicons dashicons-awards"></span> Lite vs Pro
|
32 |
</h2>
|
33 |
|
34 |
<div class="about-wrap-content">
|
8 |
?>
|
9 |
<div class="wpacu-wrap">
|
10 |
<div class="about-wrap wpacu-about-wrap">
|
11 |
+
<h1><?php echo sprintf(__('Welcome to %s %s', 'wp-asset-clean-up'), 'Asset CleanUp', WPACU_PLUGIN_VERSION); ?></h1>
|
12 |
<p class="about-text wpacu-about-text">
|
13 |
+
<?php _e('Thank you for installing this page speed booster plugin', 'wp-asset-clean-up'); ?>! <?php _e('Prepare to make your WordPress website faster & lighter by removing the useless CSS & JavaScript files from your pages.', 'wp-asset-clean-up'); ?>
|
14 |
<?php echo sprintf(
|
15 |
+
__('For maximum performance, %s works best when used with either a %scaching plugin%s, the in-built hosting caching (e.g. via %sWPEngine%s, Kinsta, etc.) or something like Varnish.', 'wp-asset-clean-up'),
|
16 |
'Asset CleanUp',
|
17 |
+
'<a style="text-decoration: none; color: #555d66;" href="https://gabelivan.com/visit/wp-rocket">', '</a>',
|
18 |
+
'<a style="text-decoration: none; color: #555d66;" href="https://gabelivan.com/visit/wp-engine">', '</a>'
|
|
|
|
|
19 |
);
|
20 |
?>
|
21 |
<img src="<?php echo WPACU_PLUGIN_URL; ?>/assets/images/wpacu-logo-transparent-bg-v1.png" alt="" />
|
22 |
</p>
|
23 |
|
24 |
<h2 class="nav-tab-wrapper wp-clearfix">
|
25 |
+
<a href="<?php echo admin_url('admin.php?page=wpassetcleanup_getting_started&wpacu_for=how-it-works'); ?>" class="nav-tab <?php if ($data['for'] === 'how-it-works') { ?>nav-tab-active<?php } ?>"><?php _e('How it works', 'wp-asset-clean-up'); ?></a>
|
26 |
+
<a href="<?php echo admin_url('admin.php?page=wpassetcleanup_getting_started&wpacu_for=benefits-fast-pages'); ?>" class="nav-tab <?php if ($data['for'] === 'benefits-fast-pages') { ?>nav-tab-active<?php } ?>"><?php _e('Benefits of a Fast Website', 'wp-asset-clean-up'); ?></a>
|
27 |
+
<a href="<?php echo admin_url('admin.php?page=wpassetcleanup_getting_started&wpacu_for=start-optimization'); ?>" class="nav-tab <?php if ($data['for'] === 'start-optimization') { ?>nav-tab-active<?php } ?>"><?php _e('Start Optimization', 'wp-asset-clean-up'); ?></a>
|
28 |
+
<a href="<?php echo admin_url('admin.php?page=wpassetcleanup_getting_started&wpacu_for=video-tutorials'); ?>" class="nav-tab <?php if ($data['for'] === 'video-tutorials') { ?>nav-tab-active<?php } ?>"><span class="dashicons dashicons-video-alt3" style="color: #ff0000;"></span> <?php _e('Video Tutorials', 'wp-asset-clean-up'); ?></a>
|
29 |
+
<a href="<?php echo admin_url('admin.php?page=wpassetcleanup_getting_started&wpacu_for=lite-vs-pro'); ?>" class="nav-tab <?php if ($data['for'] === 'lite-vs-pro') { ?>nav-tab-active<?php } ?>"><span class="dashicons dashicons-awards"></span> <?php _e('Lite vs Pro', 'wp-asset-clean-up'); ?></a>
|
30 |
</h2>
|
31 |
|
32 |
<div class="about-wrap-content">
|
templates/admin-page-license.php
CHANGED
@@ -11,18 +11,20 @@ include_once '_top-area.php';
|
|
11 |
<div class="wpacu-wrap">
|
12 |
|
13 |
<p><?php echo sprintf(
|
14 |
-
__('You\'re using the lite version of %s (v%s), so no license key is needed. You\'ll receive automatic notifications whenever a new version is available for download.',
|
15 |
-
WPACU_PLUGIN_TITLE,
|
|
|
|
|
16 |
?></p>
|
17 |
<p><em><?php echo sprintf(
|
18 |
-
__('To unlock all features and get premium support, you can %supgrade to the Pro version%s.',
|
19 |
'<a href="'.WPACU_PLUGIN_GO_PRO_URL.'?utm_source=plugin_license">', '</a>'
|
20 |
);
|
21 |
?></em></p>
|
22 |
|
23 |
<div class="wrap-upgrade-info">
|
24 |
<p><span class="dashicons dashicons-info"></span> <?php echo sprintf(
|
25 |
-
__('If you already purchased the Pro version and you don\'t know how to activate it, %sfollow the steps from the "Help" section%s.',
|
26 |
'<a href="'.admin_url('admin.php?page=wpassetcleanup_get_help').'">', '</a>'
|
27 |
);
|
28 |
?></p>
|
11 |
<div class="wpacu-wrap">
|
12 |
|
13 |
<p><?php echo sprintf(
|
14 |
+
__('You\'re using the lite version of %s (v%s), so no license key is needed. You\'ll receive automatic notifications whenever a new version is available for download.', 'wp-asset-clean-up'),
|
15 |
+
WPACU_PLUGIN_TITLE,
|
16 |
+
WPACU_PLUGIN_VERSION
|
17 |
+
);
|
18 |
?></p>
|
19 |
<p><em><?php echo sprintf(
|
20 |
+
__('To unlock all features and get premium support, you can %supgrade to the Pro version%s.', 'wp-asset-clean-up'),
|
21 |
'<a href="'.WPACU_PLUGIN_GO_PRO_URL.'?utm_source=plugin_license">', '</a>'
|
22 |
);
|
23 |
?></em></p>
|
24 |
|
25 |
<div class="wrap-upgrade-info">
|
26 |
<p><span class="dashicons dashicons-info"></span> <?php echo sprintf(
|
27 |
+
__('If you already purchased the Pro version and you don\'t know how to activate it, %sfollow the steps from the "Help" section%s.', 'wp-asset-clean-up'),
|
28 |
'<a href="'.admin_url('admin.php?page=wpassetcleanup_get_help').'">', '</a>'
|
29 |
);
|
30 |
?></p>
|
templates/admin-page-settings-bulk-changes.php
CHANGED
@@ -11,9 +11,9 @@ include_once '_top-area.php';
|
|
11 |
$wpacuTabCurrent = isset($_REQUEST['wpacu_bulk_menu_tab']) ? $_REQUEST['wpacu_bulk_menu_tab'] : 'bulk_unloaded';
|
12 |
|
13 |
$wpacuTabList = array(
|
14 |
-
'bulk_unloaded' => __('Bulk Unloaded',
|
15 |
-
'script_attrs' => __('Defer & Async used on all pages',
|
16 |
-
'assets_positions' => __('Updated CSS/JS positions',
|
17 |
);
|
18 |
?>
|
19 |
<div class="wpacu-wrap">
|
11 |
$wpacuTabCurrent = isset($_REQUEST['wpacu_bulk_menu_tab']) ? $_REQUEST['wpacu_bulk_menu_tab'] : 'bulk_unloaded';
|
12 |
|
13 |
$wpacuTabList = array(
|
14 |
+
'bulk_unloaded' => __('Bulk Unloaded', 'wp-asset-clean-up'),
|
15 |
+
'script_attrs' => __('Defer & Async used on all pages', 'wp-asset-clean-up'),
|
16 |
+
'assets_positions' => __('Updated CSS/JS positions', 'wp-asset-clean-up')
|
17 |
);
|
18 |
?>
|
19 |
<div class="wpacu-wrap">
|
templates/admin-page-settings-plugin.php
CHANGED
@@ -9,28 +9,28 @@ if (! isset($data)) {
|
|
9 |
include_once '_top-area.php';
|
10 |
|
11 |
// [wpacu_lite]
|
12 |
-
$availableForPro = '<a href="'.WPACU_PLUGIN_GO_PRO_URL.'?utm_source=plugin_settings" class="go-pro-link-no-style"><span class="wpacu-tooltip">Available for Pro users<br />Buy now to unlock all features
|
13 |
-
$settingsWithLock = '<em><strong>Note:</strong> The settings that have a lock are available to Pro users. <a href="' . WPACU_PLUGIN_GO_PRO_URL . '?utm_source=plugin_settings">Click here to upgrade
|
14 |
// [/wpacu_lite]
|
15 |
|
16 |
do_action('wpacu_admin_notices');
|
17 |
|
18 |
-
$wikiStatus = ($data['wiki_read'] == 1) ? '<small style="font-weight: 200; color: green;">* '.__('read',
|
19 |
-
: '<small style="font-weight: 200; color: #cc0000;">* '.__('unread',
|
20 |
|
21 |
$showSettingsType = array_key_exists('wpacu_show_all', $_GET) ? 'all' : 'tabs';
|
22 |
$selectedTabArea = '';
|
23 |
|
24 |
if ($showSettingsType === 'tabs') {
|
25 |
$settingsTabs = array(
|
26 |
-
'wpacu-setting-strip-the-fat' => __( 'Stripping the "fat"',
|
27 |
-
'wpacu-setting-plugin-usage-settings' => __( 'General & Files Management',
|
28 |
-
'wpacu-setting-test-mode' => __( 'Test Mode',
|
29 |
-
'wpacu-setting-minify-loaded-files' => __( 'Minify CSS & JS Files',
|
30 |
-
'wpacu-setting-combine-loaded-files' => __( 'Combine CSS & JS Files',
|
31 |
-
'wpacu-setting-common-files-unload' => __( 'Site-Wide Common Unloads',
|
32 |
-
'wpacu-setting-html-source-cleanup' => __( 'HTML Source CleanUp',
|
33 |
-
'wpacu-setting-disable-xml-rpc' => __( 'Disable XML-RPC',
|
34 |
);
|
35 |
|
36 |
$settingsTabActive = 'wpacu-setting-plugin-usage-settings';
|
@@ -83,7 +83,7 @@ if ($showSettingsType === 'tabs') {
|
|
83 |
<div id="wpacu-update-button-area">
|
84 |
<?php
|
85 |
wp_nonce_field('wpacu_settings_update', 'wpacu_settings_nonce');
|
86 |
-
submit_button(__('Update All Settings',
|
87 |
?>
|
88 |
<div id="wpacu-updating-settings">
|
89 |
<img src="<?php echo admin_url(); ?>/images/spinner.gif" align="top" width="20" height="20" alt="" />
|
9 |
include_once '_top-area.php';
|
10 |
|
11 |
// [wpacu_lite]
|
12 |
+
$availableForPro = '<a href="'.WPACU_PLUGIN_GO_PRO_URL.'?utm_source=plugin_settings" class="go-pro-link-no-style"><span class="wpacu-tooltip">'.__('Available for Pro users', 'wp-asset-clean-up').'<br />'.__('Buy now to unlock all features!', 'wp-asset-clean-up').'</span> <img width="20" height="20" src="'.WPACU_PLUGIN_URL.'/assets/icons/icon-lock.svg" valign="top" alt="" /></a> ';
|
13 |
+
$settingsWithLock = '<em><strong>'.__('Note', 'wp-asset-clean-up').':</strong> '.__('The settings that have a lock are available to Pro users.', 'wp-asset-clean-up').' <a href="' . WPACU_PLUGIN_GO_PRO_URL . '?utm_source=plugin_settings">'.__('Click here to upgrade!', 'wp-asset-clean-up').'</a></em>';
|
14 |
// [/wpacu_lite]
|
15 |
|
16 |
do_action('wpacu_admin_notices');
|
17 |
|
18 |
+
$wikiStatus = ($data['wiki_read'] == 1) ? '<small style="font-weight: 200; color: green;">* '.__('read', 'wp-asset-clean-up').'</small>'
|
19 |
+
: '<small style="font-weight: 200; color: #cc0000;">* '.__('unread', 'wp-asset-clean-up').'</small>';
|
20 |
|
21 |
$showSettingsType = array_key_exists('wpacu_show_all', $_GET) ? 'all' : 'tabs';
|
22 |
$selectedTabArea = '';
|
23 |
|
24 |
if ($showSettingsType === 'tabs') {
|
25 |
$settingsTabs = array(
|
26 |
+
'wpacu-setting-strip-the-fat' => __( 'Stripping the "fat"', 'wp-asset-clean-up' ) . ' ' . $wikiStatus,
|
27 |
+
'wpacu-setting-plugin-usage-settings' => __( 'General & Files Management', 'wp-asset-clean-up' ),
|
28 |
+
'wpacu-setting-test-mode' => __( 'Test Mode', 'wp-asset-clean-up' ),
|
29 |
+
'wpacu-setting-minify-loaded-files' => __( 'Minify CSS & JS Files', 'wp-asset-clean-up' ),
|
30 |
+
'wpacu-setting-combine-loaded-files' => __( 'Combine CSS & JS Files', 'wp-asset-clean-up' ),
|
31 |
+
'wpacu-setting-common-files-unload' => __( 'Site-Wide Common Unloads', 'wp-asset-clean-up' ),
|
32 |
+
'wpacu-setting-html-source-cleanup' => __( 'HTML Source CleanUp', 'wp-asset-clean-up' ),
|
33 |
+
'wpacu-setting-disable-xml-rpc' => __( 'Disable XML-RPC', 'wp-asset-clean-up' ),
|
34 |
);
|
35 |
|
36 |
$settingsTabActive = 'wpacu-setting-plugin-usage-settings';
|
83 |
<div id="wpacu-update-button-area">
|
84 |
<?php
|
85 |
wp_nonce_field('wpacu_settings_update', 'wpacu_settings_nonce');
|
86 |
+
submit_button(__('Update All Settings', 'wp-asset-clean-up'));
|
87 |
?>
|
88 |
<div id="wpacu-updating-settings">
|
89 |
<img src="<?php echo admin_url(); ?>/images/spinner.gif" align="top" width="20" height="20" alt="" />
|
templates/admin-page-tools.php
CHANGED
@@ -12,40 +12,48 @@ do_action('wpacu_admin_notices');
|
|
12 |
?>
|
13 |
<div class="wpacu-wrap wpacu-tools-area">
|
14 |
<nav class="wpacu-tab-nav-wrapper nav-tab-wrapper">
|
15 |
-
<a href="<?php echo admin_url('admin.php?page=wpassetcleanup_tools&wpacu_for=reset'); ?>" class="nav-tab <?php if ($data['for'] === 'reset') { ?>nav-tab-active<?php } ?>"><?php _e('Reset',
|
16 |
-
<a href="<?php echo admin_url('admin.php?page=wpassetcleanup_tools&wpacu_for=system_info'); ?>" class="nav-tab <?php if ($data['for'] === 'system_info') { ?>nav-tab-active<?php } ?>"><?php _e('System Info',
|
|
|
|
|
17 |
</nav>
|
18 |
|
19 |
<div class="wpacu-tools-container">
|
20 |
<form id="wpacu-tools-form" action="<?php echo admin_url('admin.php?page='.WPACU_PLUGIN_ID.'_tools'); ?>" method="post">
|
21 |
<?php if ($data['for'] === 'reset') { ?>
|
22 |
-
<div><label for="wpacu-reset-drop-down"><?php _e('Do you need to reset the plugin to its initial settings or reset all changes?',
|
23 |
|
24 |
<select name="wpacu-reset" id="wpacu-reset-drop-down">
|
25 |
-
<option value=""><?php _e('Select an option first',
|
26 |
-
<option data-id="wpacu-warning-reset-settings" value="reset_settings"><?php _e('Reset
|
27 |
-
<option data-id="wpacu-warning-reset-everything" value="
|
|
|
28 |
</select>
|
29 |
|
30 |
<div id="wpacu-license-data-remove-area">
|
31 |
<label for="wpacu-remove-license-data">
|
32 |
-
<input id="wpacu-remove-license-data" type="checkbox" name="wpacu-remove-license-data" value="1" /> <?php _e('Also remove license data in case the premium version was active at any point',
|
33 |
</label>
|
34 |
</div>
|
35 |
|
36 |
-
<div id="wpacu-warning-read"><span class="dashicons dashicons-warning"></span> <strong><?php _e('Please read carefully below what the chosen action does as this process is NOT reversible.',
|
37 |
|
38 |
<div id="wpacu-warning-reset-settings" class="wpacu-warning">
|
39 |
-
<p><?php _e('This will reset every option from the "Settings" page/tab to the same state it was when you first activated the plugin.',
|
|
|
|
|
|
|
|
|
|
|
40 |
</div>
|
41 |
|
42 |
<div id="wpacu-warning-reset-everything" class="wpacu-warning">
|
43 |
-
<p><?php _e('This will reset everything (settings, page loads & any load exceptions) to the same point it was when you first activated the plugin. All the plugin\'s database records will be removed. It will technically have the same effect for your website as if the plugin would be deactivated.',
|
44 |
|
45 |
-
<p><?php _e('This action is usually taken if:',
|
46 |
<ul>
|
47 |
-
<li><?php _e('You believe you have applied some changes (such as unloading the wrong CSS / JavaScript file(s)) that broke the website and you need a quick fix to make it work the way it used to. Note that for this option, you can also enable "Test Mode" from the plugin\'s settings which will only apply the changes to you (logged-in administrator), while the regular visitors will view the website as if Asset CleanUp is deactivated.',
|
48 |
-
<li><?php _e('You want to uninstall Asset CleanUp and remove the traces left in the database (this is not the same thing as deactivating and activating the plugin again, as any changes applied would be preserved in this scenario)',
|
49 |
</ul>
|
50 |
</div>
|
51 |
|
@@ -60,7 +68,7 @@ do_action('wpacu_admin_notices');
|
|
60 |
<button name="submit"
|
61 |
disabled="disabled"
|
62 |
id="wpacu-reset-submit-btn"
|
63 |
-
class="button button-secondary"><?php esc_attr_e('Submit',
|
64 |
</div>
|
65 |
<?php } elseif ($data['for'] === 'system_info') {
|
66 |
wp_nonce_field('wpacu_get_system_info', 'wpacu_get_system_info_nonce');
|
@@ -72,8 +80,111 @@ do_action('wpacu_admin_notices');
|
|
72 |
|
73 |
<p><button name="submit"
|
74 |
id="wpacu-download-system-info-btn"
|
75 |
-
class="button button-primary"
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
<?php } ?>
|
77 |
</form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
</div>
|
79 |
</div>
|
12 |
?>
|
13 |
<div class="wpacu-wrap wpacu-tools-area">
|
14 |
<nav class="wpacu-tab-nav-wrapper nav-tab-wrapper">
|
15 |
+
<a href="<?php echo admin_url('admin.php?page=wpassetcleanup_tools&wpacu_for=reset'); ?>" class="nav-tab <?php if ($data['for'] === 'reset') { ?>nav-tab-active<?php } ?>"><?php _e('Reset', 'wp-asset-clean-up'); ?></a>
|
16 |
+
<a href="<?php echo admin_url('admin.php?page=wpassetcleanup_tools&wpacu_for=system_info'); ?>" class="nav-tab <?php if ($data['for'] === 'system_info') { ?>nav-tab-active<?php } ?>"><?php _e('System Info', 'wp-asset-clean-up'); ?></a>
|
17 |
+
<a href="<?php echo admin_url('admin.php?page=wpassetcleanup_tools&wpacu_for=storage'); ?>" class="nav-tab <?php if ($data['for'] === 'storage') { ?>nav-tab-active<?php } ?>"><?php _e('Storage Info', 'wp-asset-clean-up'); ?></a>
|
18 |
+
<a href="<?php echo admin_url('admin.php?page=wpassetcleanup_tools&wpacu_for=import_export'); ?>" class="nav-tab <?php if ($data['for'] === 'import_export') { ?>nav-tab-active<?php } ?>"><?php _e('Import & Export', 'wp-asset-clean-up'); ?></a>
|
19 |
</nav>
|
20 |
|
21 |
<div class="wpacu-tools-container">
|
22 |
<form id="wpacu-tools-form" action="<?php echo admin_url('admin.php?page='.WPACU_PLUGIN_ID.'_tools'); ?>" method="post">
|
23 |
<?php if ($data['for'] === 'reset') { ?>
|
24 |
+
<div><label for="wpacu-reset-drop-down"><?php _e('Do you need to reset the plugin to its initial settings or reset all changes?', 'wp-asset-clean-up'); ?></label></div>
|
25 |
|
26 |
<select name="wpacu-reset" id="wpacu-reset-drop-down">
|
27 |
+
<option value=""><?php _e('Select an option first', 'wp-asset-clean-up'); ?>...</option>
|
28 |
+
<option data-id="wpacu-warning-reset-settings" value="reset_settings"><?php _e('Reset "Settings"', 'wp-asset-clean-up'); ?></option>
|
29 |
+
<option data-id="wpacu-warning-reset-everything-except-settings" value="reset_everything_except_settings"><?php _e('Reset everything except "Settings"', 'wp-asset-clean-up'); ?></option>
|
30 |
+
<option data-id="wpacu-warning-reset-everything" value="reset_everything"><?php _e('Reset everything: "Settings", All Unloads (bulk & per page) & Load Exceptions', 'wp-asset-clean-up'); ?></option>
|
31 |
</select>
|
32 |
|
33 |
<div id="wpacu-license-data-remove-area">
|
34 |
<label for="wpacu-remove-license-data">
|
35 |
+
<input id="wpacu-remove-license-data" type="checkbox" name="wpacu-remove-license-data" value="1" /> <?php _e('Also remove license data in case the premium version was active at any point', 'wp-asset-clean-up'); ?>
|
36 |
</label>
|
37 |
</div>
|
38 |
|
39 |
+
<div id="wpacu-warning-read"><span class="dashicons dashicons-warning"></span> <strong><?php _e('Please read carefully below what the chosen action does as this process is NOT reversible.', 'wp-asset-clean-up'); ?></strong></div>
|
40 |
|
41 |
<div id="wpacu-warning-reset-settings" class="wpacu-warning">
|
42 |
+
<p><?php _e('This will reset every option from the "Settings" page/tab to the same state it was when you first activated the plugin.', 'wp-asset-clean-up'); ?></p>
|
43 |
+
</div>
|
44 |
+
|
45 |
+
<div id="wpacu-warning-reset-everything-except-settings" class="wpacu-warning">
|
46 |
+
<p><?php _e('This will reset everything (changes per page & any load exceptions), except the values from "Settings".', 'wp-asset-clean-up'); ?></p>
|
47 |
+
<p><?php _e('This action is usually taken if you are happy with the "Settings" configuration, but want to clear everything else in terms of changes per page or group of pages.', 'wp-asset-clean-up'); ?></p>
|
48 |
</div>
|
49 |
|
50 |
<div id="wpacu-warning-reset-everything" class="wpacu-warning">
|
51 |
+
<p><?php _e('This will reset everything (settings, page loads & any load exceptions) to the same point it was when you first activated the plugin. All the plugin\'s database records will be removed. It will technically have the same effect for your website as if the plugin would be deactivated.', 'wp-asset-clean-up'); ?></p>
|
52 |
|
53 |
+
<p><?php _e('This action is usually taken if:', 'wp-asset-clean-up'); ?></p>
|
54 |
<ul>
|
55 |
+
<li><?php _e('You believe you have applied some changes (such as unloading the wrong CSS / JavaScript file(s)) that broke the website and you need a quick fix to make it work the way it used to. Note that for this option, you can also enable "Test Mode" from the plugin\'s settings which will only apply the changes to you (logged-in administrator), while the regular visitors will view the website as if Asset CleanUp is deactivated.', 'wp-asset-clean-up'); ?></li>
|
56 |
+
<li><?php _e('You want to uninstall Asset CleanUp and remove the traces left in the database (this is not the same thing as deactivating and activating the plugin again, as any changes applied would be preserved in this scenario)', 'wp-asset-clean-up'); ?></li>
|
57 |
</ul>
|
58 |
</div>
|
59 |
|
68 |
<button name="submit"
|
69 |
disabled="disabled"
|
70 |
id="wpacu-reset-submit-btn"
|
71 |
+
class="button button-secondary"><?php esc_attr_e('Submit', 'wp-asset-clean-up'); ?></button>
|
72 |
</div>
|
73 |
<?php } elseif ($data['for'] === 'system_info') {
|
74 |
wp_nonce_field('wpacu_get_system_info', 'wpacu_get_system_info_nonce');
|
80 |
|
81 |
<p><button name="submit"
|
82 |
id="wpacu-download-system-info-btn"
|
83 |
+
class="button button-primary"
|
84 |
+
style="font-size: 15px; line-height: 20px; padding: 3px 20px; height: 37px;">
|
85 |
+
<span style="padding-top: 1px;"
|
86 |
+
class="dashicons dashicons-download"></span>
|
87 |
+
<?php esc_attr_e('Download System Info For Support', 'wp-asset-clean-up'); ?>
|
88 |
+
</button>
|
89 |
+
</p>
|
90 |
<?php } ?>
|
91 |
</form>
|
92 |
+
|
93 |
+
<?php
|
94 |
+
if ($data['for'] === 'storage') {
|
95 |
+
$currentStorageDirRel = \WpAssetCleanUp\OptimiseAssets\OptimizeCommon::getRelPathPluginCacheDir();
|
96 |
+
$currentStorageDirFull = WP_CONTENT_DIR . $currentStorageDirRel;
|
97 |
+
$currentStorageDirIsWritable = is_writable($currentStorageDirFull);
|
98 |
+
?>
|
99 |
+
<p><?php _e('If either of the Minify & Combine CSS/JS features is enabled, a storage directory of the minified & concatenated files is needed.', 'wp-asset-clean-up'); ?></p>
|
100 |
+
<p><?php echo sprintf(__('On certain hosting platforms such as Pantheon, the number of writable directories is limited, in this case you have to change it to %s', 'wp-asset-clean-up'), '<code><strong>/uploads/asset-cleanup/</strong></code>'); ?></p>
|
101 |
+
<p>
|
102 |
+
<?php echo sprintf(
|
103 |
+
__('To change the relative directory, you have to add the following code to %s file within the root of your WordPress installation, where other constants are defined, above the line %s', 'wp-asset-clean-up'),
|
104 |
+
'<em>wp-config.php</em>',
|
105 |
+
'<code><em>/* That\'s all, stop editing! Happy blogging. */</em></code>'
|
106 |
+
);
|
107 |
+
?>
|
108 |
+
</p>
|
109 |
+
<p><code>define('WPACU_CACHE_DIR', '/uploads/asset-cleanup/');</code></p>
|
110 |
+
<p><?php echo sprintf(
|
111 |
+
__('Note that the relative path is appended to %s', 'wp-asset-clean-up'),
|
112 |
+
'<em>'.WP_CONTENT_DIR.'/</em>'
|
113 |
+
); ?></p>
|
114 |
+
<hr/>
|
115 |
+
<p>
|
116 |
+
<?php _e('Current storage directory', 'wp-asset-clean-up'); ?>: <code><?php echo WP_CONTENT_DIR; ?><strong><?php echo $currentStorageDirRel; ?></strong></code>
|
117 |
+
<?php if ($currentStorageDirIsWritable) {
|
118 |
+
echo '<span style="color: green;"><span class="dashicons dashicons-yes"></span> '.__('writable', 'wp-asset-clean-up').'</span>';
|
119 |
+
} ?>
|
120 |
+
</p>
|
121 |
+
<?php
|
122 |
+
if (! $currentStorageDirIsWritable) {
|
123 |
+
?>
|
124 |
+
<div class="wpacu-warning" style="width: 98%;">
|
125 |
+
<p style="margin: 0;">
|
126 |
+
<span style="color: #cc0000;" class="dashicons dashicons-warning"></span>
|
127 |
+
<?php echo sprintf(
|
128 |
+
__('The system detected the directory as non-writable, thus the minify & combine CSS/JS files feature will not work. Please %smake it writable%s or raise a ticket with your hosting company about this matter.', 'wp-asset-clean-up'),
|
129 |
+
'<a href="https://wordpress.org/support/article/changing-file-permissions/">',
|
130 |
+
'</a>'
|
131 |
+
); ?>
|
132 |
+
</p>
|
133 |
+
</div>
|
134 |
+
<?php }
|
135 |
+
}
|
136 |
+
|
137 |
+
if ($data['for'] === 'import_export') {
|
138 |
+
?>
|
139 |
+
<div id="wpacu-import-area" class="wpacu-export-import-area">
|
140 |
+
<form id="wpacu-import-form"
|
141 |
+
action="<?php echo admin_url('admin.php?page='.WPACU_PLUGIN_ID.'_tools&wpacu_for='.$data['for']); ?>"
|
142 |
+
method="post"
|
143 |
+
enctype="multipart/form-data">
|
144 |
+
<p><label for="wpacu-import-file">Please choose the exported JSON file and upload it for import:</label></p>
|
145 |
+
<p><input required="required" type="file" id="wpacu-import-file" name="wpacu_import_file" accept="application/json" /></p>
|
146 |
+
<p><button type="submit"
|
147 |
+
class="button button-secondary"
|
148 |
+
style="font-size: 15px; line-height: 20px; padding: 3px 12px; height: 37px;">
|
149 |
+
<span style="padding-top: 1px;"
|
150 |
+
class="dashicons dashicons-upload"></span>
|
151 |
+
<?php esc_attr_e('Import', 'wp-asset-clean-up'); ?>
|
152 |
+
<img class="wpacu-spinner" src="<?php site_url(); ?>/wp-includes/images/wpspin-2x.gif" alt="" />
|
153 |
+
</button> <small>* only .json extension allowed</small>
|
154 |
+
</p>
|
155 |
+
<?php wp_nonce_field('wpacu_do_import', 'wpacu_do_import_nonce'); ?>
|
156 |
+
</form>
|
157 |
+
|
158 |
+
<p><small><strong><span class="dashicons dashicons-warning"></span> Note:</strong> Make sure to properly test the pages of your website after you do the import to be sure the changes from the location you performed the export (e.g. staging) will work just as fine on the current server (e.g. live). The CSS/JS caching will be rebuilt after you're done with the import in case Minify/Combine CSS/JS is used.</small></p>
|
159 |
+
</div>
|
160 |
+
|
161 |
+
<hr />
|
162 |
+
|
163 |
+
<div id="wpacu-export-area" class="wpacu-export-import-area">
|
164 |
+
<form id="wpacu-export-form"
|
165 |
+
action="<?php echo admin_url('admin.php?page='.WPACU_PLUGIN_ID.'_tools&wpacu_for='.$data['for']); ?>"
|
166 |
+
method="post">
|
167 |
+
<p><label for="wpacu-export-selection">Please select what you would like to export:</label></p>
|
168 |
+
<p>
|
169 |
+
<select required="required" id="wpacu-export-selection" name="wpacu_export_for">
|
170 |
+
<option value="">Select an option first...</option>
|
171 |
+
<option value="settings">Settings</option>
|
172 |
+
<option value="everything">Everything</option>
|
173 |
+
</select>
|
174 |
+
</p>
|
175 |
+
<p><button type="submit"
|
176 |
+
class="button button-secondary"
|
177 |
+
style="font-size: 15px; line-height: 20px; padding: 3px 12px; height: 37px;">
|
178 |
+
<span style="padding-top: 1px;"
|
179 |
+
class="dashicons dashicons-download"></span>
|
180 |
+
<?php esc_attr_e('Export', 'wp-asset-clean-up'); ?>
|
181 |
+
</button>
|
182 |
+
</p>
|
183 |
+
<?php wp_nonce_field('wpacu_do_export', 'wpacu_do_export_nonce'); ?>
|
184 |
+
</form>
|
185 |
+
</div>
|
186 |
+
<?php
|
187 |
+
}
|
188 |
+
?>
|
189 |
</div>
|
190 |
</div>
|
templates/meta-box-loaded-assets/_asset-script-rows.php
CHANGED
@@ -73,8 +73,30 @@ foreach ($data['all']['scripts'] as $obj) {
|
|
73 |
[$handlePosition] // 'head', 'body'
|
74 |
[$uniqueHandle]
|
75 |
['script'] = $templateRowOutput;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
} else {
|
77 |
-
$data['rows_assets'][
|
78 |
}
|
79 |
} else {
|
80 |
echo $templateRowOutput;
|
73 |
[$handlePosition] // 'head', 'body'
|
74 |
[$uniqueHandle]
|
75 |
['script'] = $templateRowOutput;
|
76 |
+
} elseif (isset($data['rows_by_parents']) && $data['rows_by_parents']) {
|
77 |
+
$childHandles = isset($data['all_deps']['scripts'][$data['row']['obj']->handle]) ? $data['all_deps']['scripts'][$data['row']['obj']->handle] : array();
|
78 |
+
|
79 |
+
if (! empty($childHandles)) {
|
80 |
+
$handleStatus = 'parent';
|
81 |
+
} elseif (isset($data['row']['obj']->deps) && ! empty($data['row']['obj']->deps)) {
|
82 |
+
$handleStatus = 'child';
|
83 |
+
} else {
|
84 |
+
$handleStatus = 'independent';
|
85 |
+
}
|
86 |
+
|
87 |
+
$data['rows_assets']
|
88 |
+
[$handleStatus] // 'parent', 'child', 'independent'
|
89 |
+
[$uniqueHandle]
|
90 |
+
['scripts'] = $templateRowOutput;
|
91 |
+
} elseif (isset($data['rows_by_loaded_unloaded']) && $data['rows_by_loaded_unloaded']) {
|
92 |
+
$handleStatus = (strpos($data['row']['class'], 'wpacu_not_load') !== false) ? 'unloaded' : 'loaded';
|
93 |
+
|
94 |
+
$data['rows_assets']
|
95 |
+
[$handleStatus] // 'loaded', 'unloaded'
|
96 |
+
[$uniqueHandle]
|
97 |
+
['script'] = $templateRowOutput;
|
98 |
} else {
|
99 |
+
$data['rows_assets'][$uniqueHandle] = $templateRowOutput;
|
100 |
}
|
101 |
} else {
|
102 |
echo $templateRowOutput;
|
templates/meta-box-loaded-assets/_asset-script-single-row.php
CHANGED
@@ -19,7 +19,7 @@ $jqueryIconHtmlDepends = '<img src="'.WPACU_PLUGIN_URL.'/assets/icons/handles/ic
|
|
19 |
<tr class="wpacu_asset_row <?php echo $data['row']['class']; ?>" style="<?php if ($isCoreFile && $hideCoreFiles) { echo 'display: none;'; } ?>">
|
20 |
<td valign="top">
|
21 |
<p class="wpacu_handle">
|
22 |
-
<label for="script_<?php echo $data['row']['obj']->handle; ?>"> <?php _e('Handle:',
|
23 |
<?php if (isset($data['view_by_location']) || isset($data['view_by_position'])) { echo ' <em>* JavaScript (.js)</em>'; } ?>
|
24 |
<?php
|
25 |
if ($isCoreFile && ! $hideCoreFiles) {
|
@@ -48,7 +48,7 @@ $jqueryIconHtmlDepends = '<img src="'.WPACU_PLUGIN_URL.'/assets/icons/handles/ic
|
|
48 |
|
49 |
$appendAfterSrcHref = (strpos($data['row']['obj']->srcHref, '?') === false) ? '?' : '&';
|
50 |
?>
|
51 |
-
<p><?php _e('Source:',
|
52 |
<?php
|
53 |
}
|
54 |
?>
|
@@ -60,8 +60,8 @@ $jqueryIconHtmlDepends = '<img src="'.WPACU_PLUGIN_URL.'/assets/icons/handles/ic
|
|
60 |
$depsOutput = '';
|
61 |
|
62 |
$dependsOnText = (count($data['row']['obj']->deps) === 1)
|
63 |
-
? __('"Child" of one "parent" file:',
|
64 |
-
: sprintf(__('"Child" of %s JS "parent" files:',
|
65 |
|
66 |
$depsOutput .= $dependsOnText.' ';
|
67 |
|
@@ -70,7 +70,7 @@ $jqueryIconHtmlDepends = '<img src="'.WPACU_PLUGIN_URL.'/assets/icons/handles/ic
|
|
70 |
$depHandle .= ' '.$jqueryIconHtmlDepends;
|
71 |
}
|
72 |
|
73 |
-
$depsOutput .=
|
74 |
}
|
75 |
|
76 |
$depsOutput = rtrim($depsOutput, ', ');
|
@@ -78,15 +78,15 @@ $jqueryIconHtmlDepends = '<img src="'.WPACU_PLUGIN_URL.'/assets/icons/handles/ic
|
|
78 |
$extraInfo[] = $depsOutput;
|
79 |
}
|
80 |
|
81 |
-
$extraInfo[] = __('Version:',
|
82 |
|
83 |
if (isset($data['row']['obj']->position) && $data['row']['obj']->position !== '') {
|
84 |
-
$extraInfo[] = __('Position:',
|
85 |
}
|
86 |
|
87 |
// [wpacu_lite]
|
88 |
if (isset($data['row']['obj']->src) && $data['row']['obj']->src) {
|
89 |
-
$extraInfo[] = __('File Size:',
|
90 |
}
|
91 |
// [/wpacu_lite]
|
92 |
|
@@ -97,13 +97,20 @@ $jqueryIconHtmlDepends = '<img src="'.WPACU_PLUGIN_URL.'/assets/icons/handles/ic
|
|
97 |
|
98 |
<div <?php if (! $isBulkUnloaded) { ?>class="wrap_bulk_unload_options"<?php } ?>>
|
99 |
<div class="wpacu_asset_options_wrap">
|
100 |
-
<ul class="wpacu_asset_options
|
101 |
<li class="wpacu_unload_this_page">
|
102 |
<label class="wpacu_switch">
|
103 |
-
<input class="input-unload-on-this-page <?php if (! $isBulkUnloaded) { echo 'wpacu-not-locked'; } ?>"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
</label>
|
105 |
<label class="wpacu_slider_text" for="script_<?php echo $data['row']['obj']->handle; ?>">
|
106 |
-
<?php _e('Unload on this page',
|
107 |
</label>
|
108 |
</li>
|
109 |
</ul>
|
@@ -111,7 +118,13 @@ $jqueryIconHtmlDepends = '<img src="'.WPACU_PLUGIN_URL.'/assets/icons/handles/ic
|
|
111 |
<?php
|
112 |
if ($isBulkUnloaded) {
|
113 |
?>
|
114 |
-
<em>
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
<?php
|
116 |
}
|
117 |
?>
|
@@ -122,7 +135,7 @@ $jqueryIconHtmlDepends = '<img src="'.WPACU_PLUGIN_URL.'/assets/icons/handles/ic
|
|
122 |
// Unloaded Everywhere
|
123 |
if ($data['row']['global_unloaded']) {
|
124 |
?>
|
125 |
-
<p><strong style="color: #d54e21;"><?php _e('This JavaScript file is unloaded everywhere',
|
126 |
<div class="wpacu-clearfix"></div>
|
127 |
<?php
|
128 |
}
|
@@ -140,7 +153,7 @@ $jqueryIconHtmlDepends = '<img src="'.WPACU_PLUGIN_URL.'/assets/icons/handles/ic
|
|
140 |
name="wpacu_options_scripts[<?php echo $data['row']['obj']->handle; ?>]"
|
141 |
checked="checked"
|
142 |
value="default" />
|
143 |
-
Keep
|
144 |
</li>
|
145 |
|
146 |
<li>
|
@@ -149,7 +162,7 @@ $jqueryIconHtmlDepends = '<img src="'.WPACU_PLUGIN_URL.'/assets/icons/handles/ic
|
|
149 |
type="radio"
|
150 |
name="wpacu_options_scripts[<?php echo $data['row']['obj']->handle; ?>]"
|
151 |
value="remove" />
|
152 |
-
Remove
|
153 |
</li>
|
154 |
<?php
|
155 |
} else {
|
@@ -161,7 +174,7 @@ $jqueryIconHtmlDepends = '<img src="'.WPACU_PLUGIN_URL.'/assets/icons/handles/ic
|
|
161 |
type="checkbox"
|
162 |
name="wpacu_global_unload_scripts[]"
|
163 |
value="<?php echo $data['row']['obj']->handle; ?>"/>
|
164 |
-
<?php _e('Unload
|
165 |
</li>
|
166 |
<?php
|
167 |
}
|
@@ -178,8 +191,18 @@ $jqueryIconHtmlDepends = '<img src="'.WPACU_PLUGIN_URL.'/assets/icons/handles/ic
|
|
178 |
<?php
|
179 |
// Unloaded On All Pages Belonging to the page's Post Type
|
180 |
if ($data['row']['is_post_type_unloaded']) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
181 |
?>
|
182 |
-
<p><strong style="color: #d54e21;"
|
183 |
<div class="wpacu-clearfix"></div>
|
184 |
<?php
|
185 |
}
|
@@ -198,7 +221,7 @@ $jqueryIconHtmlDepends = '<img src="'.WPACU_PLUGIN_URL.'/assets/icons/handles/ic
|
|
198 |
name="wpacu_options_post_type_scripts[<?php echo $data['row']['obj']->handle; ?>]"
|
199 |
checked="checked"
|
200 |
value="default"/>
|
201 |
-
<?php _e('Keep bulk rule',
|
202 |
</li>
|
203 |
|
204 |
<li>
|
@@ -207,10 +230,20 @@ $jqueryIconHtmlDepends = '<img src="'.WPACU_PLUGIN_URL.'/assets/icons/handles/ic
|
|
207 |
type="radio"
|
208 |
name="wpacu_options_post_type_scripts[<?php echo $data['row']['obj']->handle; ?>]"
|
209 |
value="remove"/>
|
210 |
-
<?php _e('Remove bulk rule',
|
211 |
</li>
|
212 |
<?php
|
213 |
} else {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
214 |
?>
|
215 |
<li>
|
216 |
<label><input data-handle="<?php echo $data['row']['obj']->handle; ?>"
|
@@ -219,7 +252,7 @@ $jqueryIconHtmlDepends = '<img src="'.WPACU_PLUGIN_URL.'/assets/icons/handles/ic
|
|
219 |
type="checkbox"
|
220 |
name="wpacu_bulk_unload_scripts[post_type][<?php echo $data['post_type']; ?>][]"
|
221 |
value="<?php echo $data['row']['obj']->handle; ?>"/>
|
222 |
-
|
223 |
</li>
|
224 |
<?php
|
225 |
}
|
@@ -249,8 +282,8 @@ $jqueryIconHtmlDepends = '<img src="'.WPACU_PLUGIN_URL.'/assets/icons/handles/ic
|
|
249 |
</ul>
|
250 |
<?php
|
251 |
if ($data['row']['extra_data_js']) { ?>
|
252 |
-
<div>
|
253 |
-
<?php _e('Inline JavaScript code associated with the handle:',
|
254 |
<a class="wpacu-assets-inline-code-collapsible"
|
255 |
<?php if ($inlineCodeStatus !== 'contracted') { echo 'wpacu-assets-inline-code-collapsible-active'; } ?>
|
256 |
href="#">Show / Hide</a>
|
@@ -269,24 +302,22 @@ $jqueryIconHtmlDepends = '<img src="'.WPACU_PLUGIN_URL.'/assets/icons/handles/ic
|
|
269 |
<!-- [wpacu_lite] -->
|
270 |
<?php if (isset($data['row']['obj']->src) && $data['row']['obj']->src !== '') { ?>
|
271 |
<div class="wpacu-script-attributes-area wpacu-lite">
|
272 |
-
<p>If loaded (not unloaded by any of the rules above), apply the following attributes: <em><a class="go-pro-link-no-style" href="<?php echo WPACU_PLUGIN_GO_PRO_URL; ?>">* <?php _e('this option is available in Pro version',
|
273 |
|
274 |
<ul class="wpacu-script-attributes-settings wpacu-first">
|
275 |
-
<li><a class="go-pro-link-no-style" href="<?php echo WPACU_PLUGIN_GO_PRO_URL; ?>"><span class="wpacu-tooltip wpacu-larger"><?php _e('This feature is available in the premium version of the plugin.',
|
276 |
-
<li><label for="
|
277 |
-
|
278 |
-
<li><label for="async_everywhere_<?php echo $data['row']['obj']->handle; ?>"><input disabled="disabled" id="async_everywhere_<?php echo $data['row']['obj']->handle; ?>" type="radio" name="wpacu_async[<?php echo $data['row']['obj']->handle; ?>]" value="everywhere" />everywhere</label></li>
|
279 |
</ul>
|
280 |
|
281 |
-
|
282 |
<ul class="wpacu-script-attributes-settings">
|
283 |
-
<li><a class="go-pro-link-no-style" href="<?php echo WPACU_PLUGIN_GO_PRO_URL; ?>"><span class="wpacu-tooltip wpacu-larger"><?php _e('This feature is available in the premium version of the plugin.',
|
284 |
-
<li><label for="
|
285 |
-
|
286 |
-
<li><label for="defer_everywhere_<?php echo $data['row']['obj']->handle; ?>"><input disabled="disabled" id="defer_everywhere_<?php echo $data['row']['obj']->handle; ?>" type="radio" name="wpacu_defer[<?php echo $data['row']['obj']->handle; ?>]" value="everywhere" />everywhere</label></li>
|
287 |
</ul>
|
288 |
</div>
|
289 |
<?php } ?>
|
290 |
<!-- [/wpacu_lite] -->
|
|
|
291 |
</td>
|
292 |
</tr>
|
19 |
<tr class="wpacu_asset_row <?php echo $data['row']['class']; ?>" style="<?php if ($isCoreFile && $hideCoreFiles) { echo 'display: none;'; } ?>">
|
20 |
<td valign="top">
|
21 |
<p class="wpacu_handle">
|
22 |
+
<label for="script_<?php echo $data['row']['obj']->handle; ?>"> <?php _e('Handle:', 'wp-asset-clean-up'); ?> <strong><span style="color: green;"><?php echo $data['row']['obj']->handle; ?></span></strong> <?php if (in_array($data['row']['obj']->handle, array('jquery', 'jquery-core', 'jquery-migrate'))) { echo ' '.$jqueryIconHtmlHandle; } ?></label>
|
23 |
<?php if (isset($data['view_by_location']) || isset($data['view_by_position'])) { echo ' <em>* JavaScript (.js)</em>'; } ?>
|
24 |
<?php
|
25 |
if ($isCoreFile && ! $hideCoreFiles) {
|
48 |
|
49 |
$appendAfterSrcHref = (strpos($data['row']['obj']->srcHref, '?') === false) ? '?' : '&';
|
50 |
?>
|
51 |
+
<p><?php _e('Source:', 'wp-asset-clean-up'); ?> <a target="_blank" style="color: green;" href="<?php echo $data['row']['obj']->srcHref . $appendAfterSrcHref . 'ver='. $ver; ?>"><?php echo $relSrc; ?></a></p>
|
52 |
<?php
|
53 |
}
|
54 |
?>
|
60 |
$depsOutput = '';
|
61 |
|
62 |
$dependsOnText = (count($data['row']['obj']->deps) === 1)
|
63 |
+
? __('"Child" of one "parent" file:', 'wp-asset-clean-up')
|
64 |
+
: sprintf(__('"Child" of %s JS "parent" files:', 'wp-asset-clean-up'), count($data['row']['obj']->deps));
|
65 |
|
66 |
$depsOutput .= $dependsOnText.' ';
|
67 |
|
70 |
$depHandle .= ' '.$jqueryIconHtmlDepends;
|
71 |
}
|
72 |
|
73 |
+
$depsOutput .= '<span style="color: green; font-weight: 300;">'.$depHandle.'</span>, ';
|
74 |
}
|
75 |
|
76 |
$depsOutput = rtrim($depsOutput, ', ');
|
78 |
$extraInfo[] = $depsOutput;
|
79 |
}
|
80 |
|
81 |
+
$extraInfo[] = __('Version:', 'wp-asset-clean-up').' '.$ver;
|
82 |
|
83 |
if (isset($data['row']['obj']->position) && $data['row']['obj']->position !== '') {
|
84 |
+
$extraInfo[] = __('Position:', 'wp-asset-clean-up') . ' ' . (( $data['row']['obj']->position === 'head') ? 'HEAD' : 'BODY') . '<a class="go-pro-link-no-style" href="' . WPACU_PLUGIN_GO_PRO_URL . '?utm_source=manage_asset&utm_medium=change_js_position"><span class="wpacu-tooltip" style="width: 300px; margin-left: -146px;">Upgrade to Pro and change the location<br />of the JS file (e.g. to BODY to reduce render-blocking or to HEAD for very early triggering)</span><img width="20" height="20" src="' . WPACU_PLUGIN_URL . '/assets/icons/icon-lock.svg" valign="top" alt="" /> Change it?</a>';
|
85 |
}
|
86 |
|
87 |
// [wpacu_lite]
|
88 |
if (isset($data['row']['obj']->src) && $data['row']['obj']->src) {
|
89 |
+
$extraInfo[] = __('File Size:', 'wp-asset-clean-up') . ' <a class="go-pro-link-no-style" href="' . WPACU_PLUGIN_GO_PRO_URL . '?utm_source=manage_asset&utm_medium=file_size"><span class="wpacu-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>';
|
90 |
}
|
91 |
// [/wpacu_lite]
|
92 |
|
97 |
|
98 |
<div <?php if (! $isBulkUnloaded) { ?>class="wrap_bulk_unload_options"<?php } ?>>
|
99 |
<div class="wpacu_asset_options_wrap">
|
100 |
+
<ul class="wpacu_asset_options" <?php /* [wpacu_lite] */ if ($data['row']['global_unloaded'] || $data['row']['is_post_type_unloaded']) { /* [/wpacu_lite] */ echo 'style="display: none;"'; } ?>>
|
101 |
<li class="wpacu_unload_this_page">
|
102 |
<label class="wpacu_switch">
|
103 |
+
<input class="input-unload-on-this-page <?php if (! $isBulkUnloaded) { echo 'wpacu-not-locked'; } ?>"
|
104 |
+
id="script_<?php echo $data['row']['obj']->handle; ?>"
|
105 |
+
<?php /* [wpacu_lite] */ if ($data['row']['global_unloaded'] || $data['row']['is_post_type_unloaded']) { /* [/wpacu_lite] */ echo 'disabled="disabled"'; }
|
106 |
+
echo $data['row']['checked']; ?>
|
107 |
+
name="<?php echo WPACU_PLUGIN_ID; ?>[scripts][]"
|
108 |
+
type="checkbox"
|
109 |
+
value="<?php echo $data['row']['obj']->handle; ?>" />
|
110 |
+
<span class="wpacu_slider wpacu_round"></span>
|
111 |
</label>
|
112 |
<label class="wpacu_slider_text" for="script_<?php echo $data['row']['obj']->handle; ?>">
|
113 |
+
<?php _e('Unload on this page', 'wp-asset-clean-up'); ?>
|
114 |
</label>
|
115 |
</li>
|
116 |
</ul>
|
118 |
<?php
|
119 |
if ($isBulkUnloaded) {
|
120 |
?>
|
121 |
+
<em>
|
122 |
+
<?php echo sprintf(
|
123 |
+
__('"%s" rule is locked and irrelevant as there are global rules set below that overwrite it', 'wp-asset-clean-up'),
|
124 |
+
__('Unload on this page', 'wp-asset-clean-up')
|
125 |
+
); ?>.
|
126 |
+
<?php _e('Once all the rules below are removed, this option will become available again', 'wp-asset-clean-up'); ?>.
|
127 |
+
</em>
|
128 |
<?php
|
129 |
}
|
130 |
?>
|
135 |
// Unloaded Everywhere
|
136 |
if ($data['row']['global_unloaded']) {
|
137 |
?>
|
138 |
+
<p><strong style="color: #d54e21;"><?php _e('This JavaScript file is unloaded site-wide (everywhere)', 'wp-asset-clean-up'); ?></strong></p>
|
139 |
<div class="wpacu-clearfix"></div>
|
140 |
<?php
|
141 |
}
|
153 |
name="wpacu_options_scripts[<?php echo $data['row']['obj']->handle; ?>]"
|
154 |
checked="checked"
|
155 |
value="default" />
|
156 |
+
<?php _e('Keep site-wide rule', 'wp-asset-clean-up'); ?></label>
|
157 |
</li>
|
158 |
|
159 |
<li>
|
162 |
type="radio"
|
163 |
name="wpacu_options_scripts[<?php echo $data['row']['obj']->handle; ?>]"
|
164 |
value="remove" />
|
165 |
+
<?php _e('Remove site-wide rule', 'wp-asset-clean-up'); ?></label>
|
166 |
</li>
|
167 |
<?php
|
168 |
} else {
|
174 |
type="checkbox"
|
175 |
name="wpacu_global_unload_scripts[]"
|
176 |
value="<?php echo $data['row']['obj']->handle; ?>"/>
|
177 |
+
<?php _e('Unload site-wide', 'wp-asset-clean-up'); ?> (<?php _e('everywhere', 'wp-asset-clean-up'); ?>) <small>* <?php _e('bulk unload', 'wp-asset-clean-up'); ?></small></label>
|
178 |
</li>
|
179 |
<?php
|
180 |
}
|
191 |
<?php
|
192 |
// Unloaded On All Pages Belonging to the page's Post Type
|
193 |
if ($data['row']['is_post_type_unloaded']) {
|
194 |
+
switch ($data['post_type']) {
|
195 |
+
case 'product':
|
196 |
+
$alreadyUnloadedBulkText = __('This JavaScript file is unloaded on all WooCommerce "Product" pages', 'wp-asset-clean-up');
|
197 |
+
break;
|
198 |
+
case 'download':
|
199 |
+
$alreadyUnloadedBulkText = __('This JavaScript file is unloaded on all Easy Digital Downloads "Download" pages', 'wp-asset-clean-up');
|
200 |
+
break;
|
201 |
+
default:
|
202 |
+
$alreadyUnloadedBulkText = sprintf(__('This JavaScript file is unloaded on all <u>%s</u> post types', 'wp-asset-clean-up'), $data['post_type']);
|
203 |
+
}
|
204 |
?>
|
205 |
+
<p><strong style="color: #d54e21;"><?php echo $alreadyUnloadedBulkText; ?>.</strong></p>
|
206 |
<div class="wpacu-clearfix"></div>
|
207 |
<?php
|
208 |
}
|
221 |
name="wpacu_options_post_type_scripts[<?php echo $data['row']['obj']->handle; ?>]"
|
222 |
checked="checked"
|
223 |
value="default"/>
|
224 |
+
<?php _e('Keep bulk rule', 'wp-asset-clean-up'); ?></label>
|
225 |
</li>
|
226 |
|
227 |
<li>
|
230 |
type="radio"
|
231 |
name="wpacu_options_post_type_scripts[<?php echo $data['row']['obj']->handle; ?>]"
|
232 |
value="remove"/>
|
233 |
+
<?php _e('Remove bulk rule', 'wp-asset-clean-up'); ?></label>
|
234 |
</li>
|
235 |
<?php
|
236 |
} else {
|
237 |
+
switch ($data['post_type']) {
|
238 |
+
case 'product':
|
239 |
+
$unloadBulkText = __('Unload JS on all WooCommerce "Product" pages', 'wp-asset-clean-up');
|
240 |
+
break;
|
241 |
+
case 'download':
|
242 |
+
$unloadBulkText = __('Unload JS on all Easy Digital Downloads "Download" pages', 'wp-asset-clean-up');
|
243 |
+
break;
|
244 |
+
default:
|
245 |
+
$unloadBulkText = sprintf(__('Unload on All Pages of "<strong>%s</strong>" post type', 'wp-asset-clean-up'), $data['post_type']);
|
246 |
+
}
|
247 |
?>
|
248 |
<li>
|
249 |
<label><input data-handle="<?php echo $data['row']['obj']->handle; ?>"
|
252 |
type="checkbox"
|
253 |
name="wpacu_bulk_unload_scripts[post_type][<?php echo $data['post_type']; ?>][]"
|
254 |
value="<?php echo $data['row']['obj']->handle; ?>"/>
|
255 |
+
<?php echo $unloadBulkText; ?> <small>* <?php _e('bulk unload', 'wp-asset-clean-up'); ?></small></label>
|
256 |
</li>
|
257 |
<?php
|
258 |
}
|
282 |
</ul>
|
283 |
<?php
|
284 |
if ($data['row']['extra_data_js']) { ?>
|
285 |
+
<div class="wpacu-assets-inline-code-wrap">
|
286 |
+
<?php _e('Inline JavaScript code associated with the handle:', 'wp-asset-clean-up'); ?>
|
287 |
<a class="wpacu-assets-inline-code-collapsible"
|
288 |
<?php if ($inlineCodeStatus !== 'contracted') { echo 'wpacu-assets-inline-code-collapsible-active'; } ?>
|
289 |
href="#">Show / Hide</a>
|
302 |
<!-- [wpacu_lite] -->
|
303 |
<?php if (isset($data['row']['obj']->src) && $data['row']['obj']->src !== '') { ?>
|
304 |
<div class="wpacu-script-attributes-area wpacu-lite">
|
305 |
+
<p>If loaded (not unloaded by any of the rules above), apply the following attributes: <em><a class="go-pro-link-no-style" href="<?php echo WPACU_PLUGIN_GO_PRO_URL; ?>">* <?php _e('this option is available in Pro version', 'wp-asset-clean-up'); ?></a></em></p>
|
306 |
|
307 |
<ul class="wpacu-script-attributes-settings wpacu-first">
|
308 |
+
<li><a class="go-pro-link-no-style" href="<?php echo WPACU_PLUGIN_GO_PRO_URL; ?>"><span class="wpacu-tooltip wpacu-larger"><?php _e('This feature is available in the premium version of the plugin.', 'wp-asset-clean-up'); ?><br /> <?php _e('Click here to upgrade to Pro', 'wp-asset-clean-up'); ?>!</span><img width="20" height="20" src="<?php echo WPACU_PLUGIN_URL; ?>/assets/icons/icon-lock.svg" valign="top" alt="" /></a> <strong>async</strong> ⟶</li>
|
309 |
+
<li><label for="async_on_this_page_<?php echo $data['row']['obj']->handle; ?>"><input disabled="disabled" id="async_on_this_page_<?php echo $data['row']['obj']->handle; ?>" type="radio" name="wpacu_async[<?php echo $data['row']['obj']->handle; ?>]" value="on_this_page" /><?php _e('on this page', 'wp-asset-clean-up'); ?></label></li>
|
310 |
+
<li><label for="async_everywhere_<?php echo $data['row']['obj']->handle; ?>"><input disabled="disabled" id="async_everywhere_<?php echo $data['row']['obj']->handle; ?>" type="radio" name="wpacu_async[<?php echo $data['row']['obj']->handle; ?>]" value="everywhere" /><?php _e('site-wide', 'wp-asset-clean-up'); ?> <small>* <?php _e('everywhere', 'wp-asset-clean-up'); ?></small></label></li>
|
|
|
311 |
</ul>
|
312 |
|
|
|
313 |
<ul class="wpacu-script-attributes-settings">
|
314 |
+
<li><a class="go-pro-link-no-style" href="<?php echo WPACU_PLUGIN_GO_PRO_URL; ?>"><span class="wpacu-tooltip wpacu-larger"><?php _e('This feature is available in the premium version of the plugin.', 'wp-asset-clean-up'); ?><br /> <?php _e('Click here to upgrade to Pro', 'wp-asset-clean-up'); ?>!</span><img width="20" height="20" src="<?php echo WPACU_PLUGIN_URL; ?>/assets/icons/icon-lock.svg" valign="top" alt="" /></a> <strong>defer</strong> ⟶</li>
|
315 |
+
<li><label for="defer_on_this_page_<?php echo $data['row']['obj']->handle; ?>"><input disabled="disabled" id="defer_on_this_page_<?php echo $data['row']['obj']->handle; ?>" type="radio" name="wpacu_defer[<?php echo $data['row']['obj']->handle; ?>]" value="on_this_page" /><?php _e('on this page', 'wp-asset-clean-up'); ?></label></li>
|
316 |
+
<li><label for="defer_everywhere_<?php echo $data['row']['obj']->handle; ?>"><input disabled="disabled" id="defer_everywhere_<?php echo $data['row']['obj']->handle; ?>" type="radio" name="wpacu_defer[<?php echo $data['row']['obj']->handle; ?>]" value="everywhere" /><?php _e('site-wide', 'wp-asset-clean-up'); ?> <small>* <?php _e('everywhere', 'wp-asset-clean-up'); ?></small></label></li>
|
|
|
317 |
</ul>
|
318 |
</div>
|
319 |
<?php } ?>
|
320 |
<!-- [/wpacu_lite] -->
|
321 |
+
<img style="display: none;" class="wpacu-ajax-loader" src="<?php echo WPACU_PLUGIN_URL; ?>/assets/icons/icon-ajax-loading-spinner.svg" alt="" />
|
322 |
</td>
|
323 |
</tr>
|
templates/meta-box-loaded-assets/_asset-style-rows.php
CHANGED
@@ -55,7 +55,7 @@ foreach ($data['all']['styles'] as $obj) {
|
|
55 |
);
|
56 |
|
57 |
if (isset($data['rows_build_array']) && $data['rows_build_array']) {
|
58 |
-
$uniqueHandle = $data['row']['obj']->handle;
|
59 |
|
60 |
if (array_key_exists($uniqueHandle, $data['rows_assets'])) {
|
61 |
$uniqueHandle .= 1; // make sure each key is unique
|
@@ -74,6 +74,28 @@ foreach ($data['all']['styles'] as $obj) {
|
|
74 |
[$handlePosition] // 'head', 'body'
|
75 |
[$uniqueHandle]
|
76 |
['style'] = $templateRowOutput;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
} else {
|
78 |
$data['rows_assets'][$uniqueHandle] = $templateRowOutput;
|
79 |
}
|
55 |
);
|
56 |
|
57 |
if (isset($data['rows_build_array']) && $data['rows_build_array']) {
|
58 |
+
$uniqueHandle = $uniqueHandleOriginal = $data['row']['obj']->handle;
|
59 |
|
60 |
if (array_key_exists($uniqueHandle, $data['rows_assets'])) {
|
61 |
$uniqueHandle .= 1; // make sure each key is unique
|
74 |
[$handlePosition] // 'head', 'body'
|
75 |
[$uniqueHandle]
|
76 |
['style'] = $templateRowOutput;
|
77 |
+
} elseif (isset($data['rows_by_parents']) && $data['rows_by_parents']) {
|
78 |
+
$childHandles = isset($data['all_deps']['styles'][$data['row']['obj']->handle]) ? $data['all_deps']['styles'][$data['row']['obj']->handle] : array();
|
79 |
+
|
80 |
+
if (! empty($childHandles)) {
|
81 |
+
$handleStatus = 'parent';
|
82 |
+
} elseif (isset($data['row']['obj']->deps) && ! empty($data['row']['obj']->deps)) {
|
83 |
+
$handleStatus = 'child';
|
84 |
+
} else {
|
85 |
+
$handleStatus = 'independent';
|
86 |
+
}
|
87 |
+
|
88 |
+
$data['rows_assets']
|
89 |
+
[$handleStatus] // 'parent', 'child', 'independent'
|
90 |
+
[$uniqueHandle]
|
91 |
+
['style'] = $templateRowOutput;
|
92 |
+
} elseif (isset($data['rows_by_loaded_unloaded']) && $data['rows_by_loaded_unloaded']) {
|
93 |
+
$handleStatus = (strpos($data['row']['class'], 'wpacu_not_load') !== false) ? 'unloaded' : 'loaded';
|
94 |
+
|
95 |
+
$data['rows_assets']
|
96 |
+
[$handleStatus] // 'loaded', 'unloaded'
|
97 |
+
[$uniqueHandle]
|
98 |
+
['style'] = $templateRowOutput;
|
99 |
} else {
|
100 |
$data['rows_assets'][$uniqueHandle] = $templateRowOutput;
|
101 |
}
|
templates/meta-box-loaded-assets/_asset-style-single-row.php
CHANGED
@@ -16,12 +16,12 @@ sort($childHandles);
|
|
16 |
<tr class="wpacu_asset_row <?php echo $data['row']['class']; ?>" style="<?php if ($isCoreFile && $hideCoreFiles) { echo 'display: none;'; } ?>">
|
17 |
<td valign="top">
|
18 |
<p class="wpacu_handle">
|
19 |
-
<label for="style_<?php echo $data['row']['obj']->handle; ?>"><?php _e('Handle:',
|
20 |
<?php if (isset($data['view_by_location'])) { echo ' <em>* Stylesheet (.css)</em>'; } ?>
|
21 |
<?php
|
22 |
if ($isCoreFile && ! $hideCoreFiles) {
|
23 |
?>
|
24 |
-
<span class="dashicons dashicons-warning wordpress-core-file"><span class="wpacu-tooltip">WordPress Core File<br /><?php _e('Not sure if needed or not? In this case, it\'s better to leave it loaded to avoid breaking the website.',
|
25 |
<?php
|
26 |
}
|
27 |
?>
|
@@ -45,7 +45,7 @@ sort($childHandles);
|
|
45 |
|
46 |
$appendAfterSrcHref = (strpos($data['row']['obj']->srcHref, '?') === false) ? '?' : '&';
|
47 |
?>
|
48 |
-
<p><?php _e('Source:',
|
49 |
<?php
|
50 |
}
|
51 |
|
@@ -56,12 +56,12 @@ sort($childHandles);
|
|
56 |
|
57 |
$dependsOnText = (count($data['row']['obj']->deps) === 1)
|
58 |
? __('"Child" of one "parent" CSS file:')
|
59 |
-
: sprintf(__('"Child" of %s CSS "parent" files:',
|
60 |
|
61 |
$depsOutput .= $dependsOnText.' ';
|
62 |
|
63 |
foreach ($data['row']['obj']->deps as $depHandle) {
|
64 |
-
$depsOutput .=
|
65 |
}
|
66 |
|
67 |
$depsOutput = rtrim($depsOutput, ', ');
|
@@ -69,15 +69,15 @@ sort($childHandles);
|
|
69 |
$extraInfo[] = $depsOutput;
|
70 |
}
|
71 |
|
72 |
-
$extraInfo[] = __('Version:',
|
73 |
|
74 |
if (isset($data['row']['obj']->position) && $data['row']['obj']->position !== '') {
|
75 |
-
$extraInfo[] = __('Position:',
|
76 |
}
|
77 |
|
78 |
// [wpacu_lite]
|
79 |
if (isset($data['row']['obj']->src) && $data['row']['obj']->src) {
|
80 |
-
$extraInfo[] = __('File Size:',
|
81 |
}
|
82 |
// [/wpacu_lite]
|
83 |
|
@@ -88,16 +88,33 @@ sort($childHandles);
|
|
88 |
|
89 |
<div <?php if (! $isBulkUnloaded) { ?>class="wrap_bulk_unload_options"<?php } ?>>
|
90 |
<div class="wpacu_asset_options_wrap">
|
91 |
-
<ul class="wpacu_asset_options
|
92 |
<li class="wpacu_unload_this_page">
|
93 |
-
<label class="wpacu_switch"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
</li>
|
95 |
</ul>
|
96 |
|
97 |
<?php
|
98 |
if ($isBulkUnloaded) {
|
99 |
?>
|
100 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
<?php
|
102 |
}
|
103 |
?>
|
@@ -108,7 +125,7 @@ sort($childHandles);
|
|
108 |
// Unloaded Everywhere
|
109 |
if ($data['row']['global_unloaded']) {
|
110 |
?>
|
111 |
-
<p><strong style="color: #d54e21;"
|
112 |
<div class="wpacu-clearfix"></div>
|
113 |
<?php
|
114 |
}
|
@@ -126,7 +143,7 @@ sort($childHandles);
|
|
126 |
name="wpacu_options_styles[<?php echo $data['row']['obj']->handle; ?>]"
|
127 |
checked="checked"
|
128 |
value="default" />
|
129 |
-
Keep
|
130 |
</li>
|
131 |
|
132 |
<li>
|
@@ -135,7 +152,7 @@ sort($childHandles);
|
|
135 |
type="radio"
|
136 |
name="wpacu_options_styles[<?php echo $data['row']['obj']->handle; ?>]"
|
137 |
value="remove" />
|
138 |
-
Remove
|
139 |
</li>
|
140 |
<?php
|
141 |
} else {
|
@@ -145,7 +162,7 @@ sort($childHandles);
|
|
145 |
class="wpacu_global_unload wpacu_global_style"
|
146 |
id="wpacu_global_unload_style_<?php echo $data['row']['obj']->handle; ?>" type="checkbox"
|
147 |
name="wpacu_global_unload_styles[]" value="<?php echo $data['row']['obj']->handle; ?>"/>
|
148 |
-
<?php _e('Unload
|
149 |
</li>
|
150 |
<?php
|
151 |
}
|
@@ -161,8 +178,18 @@ sort($childHandles);
|
|
161 |
<?php
|
162 |
// Unloaded On All Pages Belonging to the page's Post Type
|
163 |
if ($data['row']['is_post_type_unloaded']) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
164 |
?>
|
165 |
-
<p><strong style="color: #d54e21;"
|
166 |
<div class="wpacu-clearfix"></div>
|
167 |
<?php
|
168 |
}
|
@@ -183,7 +210,7 @@ sort($childHandles);
|
|
183 |
name="wpacu_options_post_type_styles[<?php echo $data['row']['obj']->handle; ?>]"
|
184 |
checked="checked"
|
185 |
value="default"/>
|
186 |
-
<?php _e('Keep bulk rule',
|
187 |
</li>
|
188 |
|
189 |
<li>
|
@@ -192,10 +219,20 @@ sort($childHandles);
|
|
192 |
type="radio"
|
193 |
name="wpacu_options_post_type_styles[<?php echo $data['row']['obj']->handle; ?>]"
|
194 |
value="remove"/>
|
195 |
-
<?php _e('Remove bulk rule',
|
196 |
</li>
|
197 |
<?php
|
198 |
} else {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
199 |
?>
|
200 |
<li>
|
201 |
<label><input data-handle="<?php echo $data['row']['obj']->handle; ?>"
|
@@ -204,7 +241,7 @@ sort($childHandles);
|
|
204 |
type="checkbox"
|
205 |
name="wpacu_bulk_unload_styles[post_type][<?php echo $data['post_type']; ?>][]"
|
206 |
value="<?php echo $data['row']['obj']->handle; ?>"/>
|
207 |
-
|
208 |
</li>
|
209 |
<?php
|
210 |
}
|
@@ -237,11 +274,11 @@ sort($childHandles);
|
|
237 |
</ul>
|
238 |
<?php
|
239 |
if (! empty($data['row']['extra_data_css_list'])) { ?>
|
240 |
-
|
241 |
-
<?php _e('Inline styling associated with the handle:',
|
242 |
<a class="wpacu-assets-inline-code-collapsible"
|
243 |
<?php if ($inlineCodeStatus !== 'contracted') { echo 'wpacu-assets-inline-code-collapsible-active'; } ?>
|
244 |
-
href="#"><?php _e('Show / Hide',
|
245 |
<div class="wpacu-assets-inline-code-collapsible-content <?php if ($inlineCodeStatus !== 'contracted') { echo 'wpacu-open'; } ?>">
|
246 |
<div>
|
247 |
<p style="margin-bottom: 15px; line-height: normal !important;">
|
@@ -256,5 +293,7 @@ sort($childHandles);
|
|
256 |
<?php
|
257 |
}
|
258 |
?>
|
|
|
|
|
259 |
</td>
|
260 |
</tr>
|
16 |
<tr class="wpacu_asset_row <?php echo $data['row']['class']; ?>" style="<?php if ($isCoreFile && $hideCoreFiles) { echo 'display: none;'; } ?>">
|
17 |
<td valign="top">
|
18 |
<p class="wpacu_handle">
|
19 |
+
<label for="style_<?php echo $data['row']['obj']->handle; ?>"><?php _e('Handle:', 'wp-asset-clean-up'); ?> <strong><span style="color: green;"><?php echo $data['row']['obj']->handle; ?></span></strong></label>
|
20 |
<?php if (isset($data['view_by_location'])) { echo ' <em>* Stylesheet (.css)</em>'; } ?>
|
21 |
<?php
|
22 |
if ($isCoreFile && ! $hideCoreFiles) {
|
23 |
?>
|
24 |
+
<span class="dashicons dashicons-warning wordpress-core-file"><span class="wpacu-tooltip">WordPress Core File<br /><?php _e('Not sure if needed or not? In this case, it\'s better to leave it loaded to avoid breaking the website.', 'wp-asset-clean-up'); ?></span></span>
|
25 |
<?php
|
26 |
}
|
27 |
?>
|
45 |
|
46 |
$appendAfterSrcHref = (strpos($data['row']['obj']->srcHref, '?') === false) ? '?' : '&';
|
47 |
?>
|
48 |
+
<p><?php _e('Source:', 'wp-asset-clean-up'); ?> <a target="_blank" style="color: green;" href="<?php echo $data['row']['obj']->srcHref . $appendAfterSrcHref . 'ver='.$ver; ?>"><?php echo $relSrc; ?></a></p>
|
49 |
<?php
|
50 |
}
|
51 |
|
56 |
|
57 |
$dependsOnText = (count($data['row']['obj']->deps) === 1)
|
58 |
? __('"Child" of one "parent" CSS file:')
|
59 |
+
: sprintf(__('"Child" of %s CSS "parent" files:', 'wp-asset-clean-up'), count($data['row']['obj']->deps));
|
60 |
|
61 |
$depsOutput .= $dependsOnText.' ';
|
62 |
|
63 |
foreach ($data['row']['obj']->deps as $depHandle) {
|
64 |
+
$depsOutput .= '<span style="color: green; font-weight: 300;">'.$depHandle.'</span>, ';
|
65 |
}
|
66 |
|
67 |
$depsOutput = rtrim($depsOutput, ', ');
|
69 |
$extraInfo[] = $depsOutput;
|
70 |
}
|
71 |
|
72 |
+
$extraInfo[] = __('Version:', 'wp-asset-clean-up').' '.$ver;
|
73 |
|
74 |
if (isset($data['row']['obj']->position) && $data['row']['obj']->position !== '') {
|
75 |
+
$extraInfo[] = __('Position:', 'wp-asset-clean-up') . ' ' . (( $data['row']['obj']->position === 'head') ? 'HEAD' : 'BODY') . '<a class="go-pro-link-no-style" href="' . WPACU_PLUGIN_GO_PRO_URL . '?utm_source=manage_asset&utm_medium=change_css_position"><span class="wpacu-tooltip" style="width: 300px; margin-left: -146px;">Upgrade to Pro and change the location<br />of the CSS file (e.g. to BODY to reduce render-blocking or to HEAD for very early triggering)</span><img width="20" height="20" src="' . WPACU_PLUGIN_URL . '/assets/icons/icon-lock.svg" valign="top" alt="" /> Change it?</a>';
|
76 |
}
|
77 |
|
78 |
// [wpacu_lite]
|
79 |
if (isset($data['row']['obj']->src) && $data['row']['obj']->src) {
|
80 |
+
$extraInfo[] = __('File Size:', 'wp-asset-clean-up') . ' <a href="' . WPACU_PLUGIN_GO_PRO_URL . '?utm_source=manage_asset&utm_medium=file_size" class="go-pro-link-no-style"><span class="wpacu-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>';
|
81 |
}
|
82 |
// [/wpacu_lite]
|
83 |
|
88 |
|
89 |
<div <?php if (! $isBulkUnloaded) { ?>class="wrap_bulk_unload_options"<?php } ?>>
|
90 |
<div class="wpacu_asset_options_wrap">
|
91 |
+
<ul class="wpacu_asset_options" <?php if ($isBulkUnloaded) { echo 'style="display: none;"'; } ?>>
|
92 |
<li class="wpacu_unload_this_page">
|
93 |
+
<label class="wpacu_switch">
|
94 |
+
<input class="input-unload-on-this-page <?php if (! $isBulkUnloaded) { echo 'wpacu-not-locked'; } ?>"
|
95 |
+
id="style_<?php echo $data['row']['obj']->handle; ?>" <?php /* [wpacu_lite] */ if ($isBulkUnloaded) { /* [/wpacu_lite] */ echo 'disabled="disabled"'; }
|
96 |
+
echo $data['row']['checked']; ?>
|
97 |
+
name="<?php echo WPACU_PLUGIN_ID; ?>[styles][]"
|
98 |
+
type="checkbox"
|
99 |
+
value="<?php echo $data['row']['obj']->handle; ?>" />
|
100 |
+
<span class="wpacu_slider wpacu_round"></span>
|
101 |
+
</label>
|
102 |
+
<label class="wpacu_slider_text" for="style_<?php echo $data['row']['obj']->handle; ?>">
|
103 |
+
<?php _e('Unload on this page', 'wp-asset-clean-up'); ?>
|
104 |
+
</label>
|
105 |
</li>
|
106 |
</ul>
|
107 |
|
108 |
<?php
|
109 |
if ($isBulkUnloaded) {
|
110 |
?>
|
111 |
+
<em>
|
112 |
+
<?php echo sprintf(
|
113 |
+
__('"%s" rule is locked and irrelevant as there are global rules set below that overwrite it', 'wp-asset-clean-up'),
|
114 |
+
__('Unload on this page', 'wp-asset-clean-up')
|
115 |
+
); ?>.
|
116 |
+
<?php _e('Once all the rules below are removed, this option will become available again', 'wp-asset-clean-up'); ?>.
|
117 |
+
</em>
|
118 |
<?php
|
119 |
}
|
120 |
?>
|
125 |
// Unloaded Everywhere
|
126 |
if ($data['row']['global_unloaded']) {
|
127 |
?>
|
128 |
+
<p><strong style="color: #d54e21;"><?php _e('This stylesheet file is unloaded everywhere', 'wp-asset-clean-up'); ?></strong></p>
|
129 |
<div class="wpacu-clearfix"></div>
|
130 |
<?php
|
131 |
}
|
143 |
name="wpacu_options_styles[<?php echo $data['row']['obj']->handle; ?>]"
|
144 |
checked="checked"
|
145 |
value="default" />
|
146 |
+
<?php _e('Keep site-wide rule', 'wp-asset-clean-up'); ?></label>
|
147 |
</li>
|
148 |
|
149 |
<li>
|
152 |
type="radio"
|
153 |
name="wpacu_options_styles[<?php echo $data['row']['obj']->handle; ?>]"
|
154 |
value="remove" />
|
155 |
+
<?php _e('Remove site-wide rule', 'wp-asset-clean-up'); ?></label>
|
156 |
</li>
|
157 |
<?php
|
158 |
} else {
|
162 |
class="wpacu_global_unload wpacu_global_style"
|
163 |
id="wpacu_global_unload_style_<?php echo $data['row']['obj']->handle; ?>" type="checkbox"
|
164 |
name="wpacu_global_unload_styles[]" value="<?php echo $data['row']['obj']->handle; ?>"/>
|
165 |
+
<?php _e('Unload site-wide', 'wp-asset-clean-up'); ?> (<?php _e('everywhere', 'wp-asset-clean-up'); ?>) <small>* bulk unload</small></label>
|
166 |
</li>
|
167 |
<?php
|
168 |
}
|
178 |
<?php
|
179 |
// Unloaded On All Pages Belonging to the page's Post Type
|
180 |
if ($data['row']['is_post_type_unloaded']) {
|
181 |
+
switch ($data['post_type']) {
|
182 |
+
case 'product':
|
183 |
+
$alreadyUnloadedBulkText = __('This stylesheet file is unloaded on all WooCommerce "Product" pages', 'wp-asset-clean-up');
|
184 |
+
break;
|
185 |
+
case 'download':
|
186 |
+
$alreadyUnloadedBulkText = __('This stylesheet file is unloaded on all Easy Digital Downloads "Download" pages', 'wp-asset-clean-up');
|
187 |
+
break;
|
188 |
+
default:
|
189 |
+
$alreadyUnloadedBulkText = sprintf(__('This stylesheet file is unloaded on all <u>%s</u> post types', 'wp-asset-clean-up'), $data['post_type']);
|
190 |
+
}
|
191 |
?>
|
192 |
+
<p><strong style="color: #d54e21;"><?php echo $alreadyUnloadedBulkText; ?>.</strong></p>
|
193 |
<div class="wpacu-clearfix"></div>
|
194 |
<?php
|
195 |
}
|
210 |
name="wpacu_options_post_type_styles[<?php echo $data['row']['obj']->handle; ?>]"
|
211 |
checked="checked"
|
212 |
value="default"/>
|
213 |
+
<?php _e('Keep bulk rule', 'wp-asset-clean-up'); ?></label>
|
214 |
</li>
|
215 |
|
216 |
<li>
|
219 |
type="radio"
|
220 |
name="wpacu_options_post_type_styles[<?php echo $data['row']['obj']->handle; ?>]"
|
221 |
value="remove"/>
|
222 |
+
<?php _e('Remove bulk rule', 'wp-asset-clean-up'); ?></label>
|
223 |
</li>
|
224 |
<?php
|
225 |
} else {
|
226 |
+
switch ($data['post_type']) {
|
227 |
+
case 'product':
|
228 |
+
$unloadBulkText = __('Unload CSS on all WooCommerce "Product" pages', 'wp-asset-clean-up');
|
229 |
+
break;
|
230 |
+
case 'download':
|
231 |
+
$unloadBulkText = __('Unload CSS on all Easy Digital Downloads "Download" pages', 'wp-asset-clean-up');
|
232 |
+
break;
|
233 |
+
default:
|
234 |
+
$unloadBulkText = sprintf(__('Unload on All Pages of "<strong>%s</strong>" post type', 'wp-asset-clean-up'), $data['post_type']);
|
235 |
+
}
|
236 |
?>
|
237 |
<li>
|
238 |
<label><input data-handle="<?php echo $data['row']['obj']->handle; ?>"
|
241 |
type="checkbox"
|
242 |
name="wpacu_bulk_unload_styles[post_type][<?php echo $data['post_type']; ?>][]"
|
243 |
value="<?php echo $data['row']['obj']->handle; ?>"/>
|
244 |
+
<?php echo $unloadBulkText; ?> <small>* <?php _e('bulk unload', 'wp-asset-clean-up'); ?></small></label>
|
245 |
</li>
|
246 |
<?php
|
247 |
}
|
274 |
</ul>
|
275 |
<?php
|
276 |
if (! empty($data['row']['extra_data_css_list'])) { ?>
|
277 |
+
<div class="wpacu-assets-inline-code-wrap">
|
278 |
+
<?php _e('Inline styling associated with the handle:', 'wp-asset-clean-up'); ?>
|
279 |
<a class="wpacu-assets-inline-code-collapsible"
|
280 |
<?php if ($inlineCodeStatus !== 'contracted') { echo 'wpacu-assets-inline-code-collapsible-active'; } ?>
|
281 |
+
href="#"><?php _e('Show / Hide', 'wp-asset-clean-up'); ?></a>
|
282 |
<div class="wpacu-assets-inline-code-collapsible-content <?php if ($inlineCodeStatus !== 'contracted') { echo 'wpacu-open'; } ?>">
|
283 |
<div>
|
284 |
<p style="margin-bottom: 15px; line-height: normal !important;">
|
293 |
<?php
|
294 |
}
|
295 |
?>
|
296 |
+
|
297 |
+
<img style="display: none;" class="wpacu-ajax-loader" src="<?php echo WPACU_PLUGIN_URL; ?>/assets/icons/icon-ajax-loading-spinner.svg" alt="" />
|
298 |
</td>
|
299 |
</tr>
|
templates/meta-box-loaded-assets/view-by-loaded-unloaded.php
ADDED
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
// no direct access
|
3 |
+
if (! isset($data)) {
|
4 |
+
exit;
|
5 |
+
}
|
6 |
+
|
7 |
+
$listAreaStatus = $data['plugin_settings']['assets_list_layout_areas_status'];
|
8 |
+
|
9 |
+
/*
|
10 |
+
* -------------------------------
|
11 |
+
* [START] BY Loaded or Unloaded
|
12 |
+
* -------------------------------
|
13 |
+
*/
|
14 |
+
?>
|
15 |
+
|
16 |
+
<div>
|
17 |
+
<?php
|
18 |
+
if (! empty($data['all']['styles']) || ! empty($data['all']['scripts'])) {
|
19 |
+
?>
|
20 |
+
<p><?php echo sprintf(__('The following styles & 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 enable "Test Mode" (to make the changes apply only to you), while you are going through the trial & error process.', 'wp-asset-clean-up'), '<span style="color: #CC0000;"><strong>', '</strong></span>'); ?></p>
|
21 |
+
<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.', 'wp-asset-clean-up'); ?></p>
|
22 |
+
<?php
|
23 |
+
if ($data['plugin_settings']['hide_core_files']) {
|
24 |
+
?>
|
25 |
+
<div class="wpacu_note"><span class="dashicons dashicons-info"></span> WordPress CSS & 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>
|
26 |
+
<div class="wpacu-clearfix" style="margin-top: 10px;"></div>
|
27 |
+
<?php
|
28 |
+
}
|
29 |
+
|
30 |
+
if ( ( (isset($data['core_styles_loaded']) && $data['core_styles_loaded']) || (isset($data['core_scripts_loaded']) && $data['core_scripts_loaded']) ) && ! $data['plugin_settings']['hide_core_files']) {
|
31 |
+
?>
|
32 |
+
<div class="wpacu_note wpacu_warning"><em><?php
|
33 |
+
echo sprintf(
|
34 |
+
__('Assets that are marked with %s are part of WordPress core files. Be careful if you decide to unload them! If you are not sure what to do, just leave them loaded by default and consult with a developer.', 'wp-asset-clean-up'),
|
35 |
+
'<span class="dashicons dashicons-warning"></span>'
|
36 |
+
);
|
37 |
+
?>
|
38 |
+
</em></div><br />
|
39 |
+
<?php
|
40 |
+
}
|
41 |
+
?>
|
42 |
+
</div>
|
43 |
+
<?php
|
44 |
+
$handleStatusesText = array(
|
45 |
+
'loaded' => '<span style="color: green;" class="dashicons dashicons-yes"></span> All loaded (.css & .js)',
|
46 |
+
'unloaded' => '<span style="color: #cc0000;" class="dashicons dashicons-no-alt"></span> All unloaded (.css & .js)'
|
47 |
+
);
|
48 |
+
|
49 |
+
$data['view_by_loaded_unloaded'] =
|
50 |
+
$data['rows_build_array'] =
|
51 |
+
$data['rows_by_loaded_unloaded'] = true;
|
52 |
+
|
53 |
+
$data['rows_assets'] = array();
|
54 |
+
|
55 |
+
require_once __DIR__.'/_asset-style-rows.php';
|
56 |
+
require_once __DIR__.'/_asset-script-rows.php';
|
57 |
+
|
58 |
+
if (! empty($data['rows_assets'])) {
|
59 |
+
// Sorting: loaded & unloaded
|
60 |
+
$rowsAssets = array('loaded' => array(), 'unloaded' => array());
|
61 |
+
|
62 |
+
foreach ($data['rows_assets'] as $handleStatus => $values) {
|
63 |
+
$rowsAssets[$handleStatus] = $values;
|
64 |
+
}
|
65 |
+
|
66 |
+
foreach ($rowsAssets as $handleStatus => $values) {
|
67 |
+
ksort($values);
|
68 |
+
?>
|
69 |
+
<div class="wpacu-assets-collapsible-wrap wpacu-by-parents wpacu-<?php echo $handleStatus; ?>">
|
70 |
+
<a class="wpacu-assets-collapsible <?php if ($listAreaStatus !== 'contracted') { ?>wpacu-assets-collapsible-active<?php } ?>" href="#wpacu-assets-collapsible-content-<?php echo $handleStatus; ?>">
|
71 |
+
<?php echo $handleStatusesText[$handleStatus]; ?>
|
72 |
+
</a>
|
73 |
+
|
74 |
+
<div class="wpacu-assets-collapsible-content <?php if ($listAreaStatus !== 'contracted') { ?>wpacu-open<?php } ?>">
|
75 |
+
<?php if ($handleStatus === 'loaded') {
|
76 |
+
if (count($values) > 0) {
|
77 |
+
$loadedFilesNote = __('The following files were not selected for unload in any way (e.g. per page, site-wide) on this page. The list also includes any load exceptions (e.g. a file can be unloaded site-wide, but loaded on this page).', 'wp-asset-clean-up');
|
78 |
+
} else {
|
79 |
+
$loadedFilesNote = __('All the CSS/JS files were chosen to be unloaded on this page', 'wp-asset-clean-up');
|
80 |
+
}
|
81 |
+
?>
|
82 |
+
<p class="wpacu-assets-note"><?php echo $loadedFilesNote; ?></p>
|
83 |
+
<?php } elseif ($handleStatus === 'unloaded') {
|
84 |
+
if (count($values) > 0) {
|
85 |
+
$unloadedFilesNote = __('The following CSS/JS files are unloaded on this page (either only on this page or site-wide)', 'wp-asset-clean-up');
|
86 |
+
} else {
|
87 |
+
$unloadedFilesNote = __('There are no unloaded CSS/JS files on this page', 'wp-asset-clean-up');
|
88 |
+
}
|
89 |
+
?>
|
90 |
+
<p class="wpacu-assets-note"><?php echo $unloadedFilesNote; ?>.</p>
|
91 |
+
<?php } ?>
|
92 |
+
|
93 |
+
<?php if (count($values) > 0) { ?>
|
94 |
+
<table class="wpacu_list_table wpacu_list_by_parents wpacu_widefat wpacu_striped">
|
95 |
+
<tbody>
|
96 |
+
<?php
|
97 |
+
$assetRowIndex = 1;
|
98 |
+
|
99 |
+
foreach ($values as $assetType => $assetRows) {
|
100 |
+
foreach ($assetRows as $assetRow) {
|
101 |
+
echo $assetRow . "\n";
|
102 |
+
}
|
103 |
+
}
|
104 |
+
?>
|
105 |
+
</tbody>
|
106 |
+
</table>
|
107 |
+
<?php } ?>
|
108 |
+
</div>
|
109 |
+
</div>
|
110 |
+
<?php
|
111 |
+
}
|
112 |
+
}
|
113 |
+
}
|
114 |
+
/*
|
115 |
+
* ----------------------------
|
116 |
+
* [END] BY Loaded or Unloaded
|
117 |
+
* ----------------------------
|
118 |
+
*/
|
119 |
+
|
120 |
+
include '_inline_js.php';
|
templates/meta-box-loaded-assets/view-by-location.php
CHANGED
@@ -22,11 +22,11 @@ $listAreaStatus = $data['plugin_settings']['assets_list_layout_areas_status'];
|
|
22 |
if (! empty($data['all']['styles']) || ! empty($data['all']['scripts'])) {
|
23 |
?>
|
24 |
<p><?php echo sprintf(
|
25 |
-
__('Please select the styles & scripts that are %sNOT NEEDED%s from the list below. Not sure which ones to unload? %s Use "Test Mode" (to make the changes apply only to you), while you are going through the trial & error process.',
|
26 |
'<span style="color: #CC0000;"><strong>',
|
27 |
'</strong></span>',
|
28 |
'<img draggable="false" class="emoji" style="max-width: 26px; max-height: 26px;" alt="" src="https://s.w.org/images/core/emoji/11.2.0/svg/1f914.svg">'
|
29 |
-
); ?> <?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.',
|
30 |
<?php
|
31 |
if ($data['plugin_settings']['hide_core_files']) {
|
32 |
?>
|
@@ -39,7 +39,7 @@ $listAreaStatus = $data['plugin_settings']['assets_list_layout_areas_status'];
|
|
39 |
?>
|
40 |
<div class="wpacu_note wpacu_warning"><em><?php
|
41 |
echo sprintf(
|
42 |
-
__('Assets that are marked with %s are part of WordPress core files. Be careful if you decide to unload them! If you are not sure what to do, just leave them loaded by default and consult with a developer.',
|
43 |
'<span class="dashicons dashicons-warning"></span>'
|
44 |
);
|
45 |
?>
|
@@ -49,6 +49,10 @@ $listAreaStatus = $data['plugin_settings']['assets_list_layout_areas_status'];
|
|
49 |
?>
|
50 |
</div>
|
51 |
<?php
|
|
|
|
|
|
|
|
|
52 |
$allPlugins = get_plugins();
|
53 |
$allThemes = wp_get_themes();
|
54 |
$allActivePluginsIcons = \WpAssetCleanUp\Misc::getAllActivePluginsIcons();
|
@@ -89,7 +93,7 @@ $listAreaStatus = $data['plugin_settings']['assets_list_layout_areas_status'];
|
|
89 |
} ?> class="wpacu-assets-collapsible-wrap wpacu-by-location wpacu-<?php echo $locationMain; ?>">
|
90 |
<a class="wpacu-assets-collapsible <?php if ($listAreaStatus !== 'contracted') { ?>wpacu-assets-collapsible-active<?php } ?>"
|
91 |
href="#wpacu-assets-collapsible-content-<?php echo $locationMain; ?>">
|
92 |
-
<?php _e($locationsText[$locationMain],
|
93 |
</a>
|
94 |
|
95 |
<div class="wpacu-assets-collapsible-content <?php if ($listAreaStatus !== 'contracted') { ?>wpacu-open<?php } ?>">
|
@@ -128,13 +132,13 @@ $listAreaStatus = $data['plugin_settings']['assets_list_layout_areas_status'];
|
|
128 |
<?php if ($locationMain === 'plugins') { ?>
|
129 |
<div class="wpacu-plugin-toggle-all">
|
130 |
<ul>
|
131 |
-
<li>"<?php _e('Unload on this page',
|
132 |
<li>
|
133 |
<a class="wpacu-plugin-check-all"
|
134 |
-
data-wpacu-plugin="<?php echo $locationChild; ?>" href="#"><?php _e('Check All',
|
135 |
|
|
136 |
<a class="wpacu-plugin-uncheck-all"
|
137 |
-
data-wpacu-plugin="<?php echo $locationChild; ?>" href="#"><?php _e('Uncheck All',
|
138 |
</li>
|
139 |
</ul>
|
140 |
</div>
|
@@ -148,6 +152,10 @@ $listAreaStatus = $data['plugin_settings']['assets_list_layout_areas_status'];
|
|
148 |
class="wpacu_list_table wpacu_list_by_location wpacu_widefat wpacu_striped">
|
149 |
<tbody>
|
150 |
<?php
|
|
|
|
|
|
|
|
|
151 |
ksort($values2);
|
152 |
|
153 |
foreach ($values2 as $assetType => $assetRows) {
|
@@ -172,7 +180,7 @@ $listAreaStatus = $data['plugin_settings']['assets_list_layout_areas_status'];
|
|
172 |
You're using <a href="<?php echo admin_url('admin.php?page=ct_dashboard_page'); ?>" target="_blank"><span style="font-weight: 600; color: #6036ca;">Oxygen</span></a> to design your site, which disables the WordPress theme system. Thus, no assets related to the theme are loaded.
|
173 |
</div>
|
174 |
<?php } else { ?>
|
175 |
-
<div style="padding: 0 0 16px 16px;"><?php _e('There are no CSS/JS loaded from this location.',
|
176 |
<?php } ?>
|
177 |
<?php
|
178 |
}
|
22 |
if (! empty($data['all']['styles']) || ! empty($data['all']['scripts'])) {
|
23 |
?>
|
24 |
<p><?php echo sprintf(
|
25 |
+
__('Please select the styles & scripts that are %sNOT NEEDED%s from the list below. Not sure which ones to unload? %s Use "Test Mode" (to make the changes apply only to you), while you are going through the trial & error process.', 'wp-asset-clean-up'),
|
26 |
'<span style="color: #CC0000;"><strong>',
|
27 |
'</strong></span>',
|
28 |
'<img draggable="false" class="emoji" style="max-width: 26px; max-height: 26px;" alt="" src="https://s.w.org/images/core/emoji/11.2.0/svg/1f914.svg">'
|
29 |
+
); ?> <?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.', 'wp-asset-clean-up'); ?></p>
|
30 |
<?php
|
31 |
if ($data['plugin_settings']['hide_core_files']) {
|
32 |
?>
|
39 |
?>
|
40 |
<div class="wpacu_note wpacu_warning"><em><?php
|
41 |
echo sprintf(
|
42 |
+
__('Assets that are marked with %s are part of WordPress core files. Be careful if you decide to unload them! If you are not sure what to do, just leave them loaded by default and consult with a developer.', 'wp-asset-clean-up'),
|
43 |
'<span class="dashicons dashicons-warning"></span>'
|
44 |
);
|
45 |
?>
|
49 |
?>
|
50 |
</div>
|
51 |
<?php
|
52 |
+
if (! function_exists('get_plugins') && ! is_admin()) {
|
53 |
+
require_once ABSPATH . 'wp-admin/includes/plugin.php';
|
54 |
+
}
|
55 |
+
|
56 |
$allPlugins = get_plugins();
|
57 |
$allThemes = wp_get_themes();
|
58 |
$allActivePluginsIcons = \WpAssetCleanUp\Misc::getAllActivePluginsIcons();
|
93 |
} ?> class="wpacu-assets-collapsible-wrap wpacu-by-location wpacu-<?php echo $locationMain; ?>">
|
94 |
<a class="wpacu-assets-collapsible <?php if ($listAreaStatus !== 'contracted') { ?>wpacu-assets-collapsible-active<?php } ?>"
|
95 |
href="#wpacu-assets-collapsible-content-<?php echo $locationMain; ?>">
|
96 |
+
<?php _e($locationsText[$locationMain], 'wp-asset-clean-up'); ?>
|
97 |
</a>
|
98 |
|
99 |
<div class="wpacu-assets-collapsible-content <?php if ($listAreaStatus !== 'contracted') { ?>wpacu-open<?php } ?>">
|
132 |
<?php if ($locationMain === 'plugins') { ?>
|
133 |
<div class="wpacu-plugin-toggle-all">
|
134 |
<ul>
|
135 |
+
<li>"<?php _e('Unload on this page', 'wp-asset-clean-up'); ?>"</li>
|
136 |
<li>
|
137 |
<a class="wpacu-plugin-check-all"
|
138 |
+
data-wpacu-plugin="<?php echo $locationChild; ?>" href="#"><?php _e('Check All', 'wp-asset-clean-up'); ?></a>
|
139 |
|
|
140 |
<a class="wpacu-plugin-uncheck-all"
|
141 |
+
data-wpacu-plugin="<?php echo $locationChild; ?>" href="#"><?php _e('Uncheck All', 'wp-asset-clean-up'); ?></a>
|
142 |
</li>
|
143 |
</ul>
|
144 |
</div>
|
152 |
class="wpacu_list_table wpacu_list_by_location wpacu_widefat wpacu_striped">
|
153 |
<tbody>
|
154 |
<?php
|
155 |
+
if ($locationMain === 'plugins') {
|
156 |
+
do_action('wpacu_assets_plugin_notice_table_row', $locationChild);
|
157 |
+
}
|
158 |
+
|
159 |
ksort($values2);
|
160 |
|
161 |
foreach ($values2 as $assetType => $assetRows) {
|
180 |
You're using <a href="<?php echo admin_url('admin.php?page=ct_dashboard_page'); ?>" target="_blank"><span style="font-weight: 600; color: #6036ca;">Oxygen</span></a> to design your site, which disables the WordPress theme system. Thus, no assets related to the theme are loaded.
|
181 |
</div>
|
182 |
<?php } else { ?>
|
183 |
+
<div style="padding: 0 0 16px 16px;"><?php _e('There are no CSS/JS loaded from this location.', 'wp-asset-clean-up'); ?></div>
|
184 |
<?php } ?>
|
185 |
<?php
|
186 |
}
|
templates/meta-box-loaded-assets/view-by-parents.php
ADDED
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
// no direct access
|
3 |
+
if (! isset($data)) {
|
4 |
+
exit;
|
5 |
+
}
|
6 |
+
|
7 |
+
$listAreaStatus = $data['plugin_settings']['assets_list_layout_areas_status'];
|
8 |
+
|
9 |
+
/*
|
10 |
+
* ----------------------------------------------
|
11 |
+
* [START] BY EACH HANDLE STATUS (Parent or Not)
|
12 |
+
* ----------------------------------------------
|
13 |
+
*/
|
14 |
+
?>
|
15 |
+
|
16 |
+
<div>
|
17 |
+
<?php
|
18 |
+
if (! empty($data['all']['styles']) || ! empty($data['all']['scripts'])) {
|
19 |
+
?>
|
20 |
+
<p><?php echo sprintf(__('The following styles & 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 enable "Test Mode" (to make the changes apply only to you), while you are going through the trial & error process.', 'wp-asset-clean-up'), '<span style="color: #CC0000;"><strong>', '</strong></span>'); ?></p>
|
21 |
+
<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.', 'wp-asset-clean-up'); ?></p>
|
22 |
+
<?php
|
23 |
+
if ($data['plugin_settings']['hide_core_files']) {
|
24 |
+
?>
|
25 |
+
<div class="wpacu_note"><span class="dashicons dashicons-info"></span> WordPress CSS & 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>
|
26 |
+
<div class="wpacu-clearfix" style="margin-top: 10px;"></div>
|
27 |
+
<?php
|
28 |
+
}
|
29 |
+
|
30 |
+
if ( ( (isset($data['core_styles_loaded']) && $data['core_styles_loaded']) || (isset($data['core_scripts_loaded']) && $data['core_scripts_loaded']) ) && ! $data['plugin_settings']['hide_core_files']) {
|
31 |
+
?>
|
32 |
+
<div class="wpacu_note wpacu_warning"><em><?php
|
33 |
+
echo sprintf(
|
34 |
+
__('Assets that are marked with %s are part of WordPress core files. Be careful if you decide to unload them! If you are not sure what to do, just leave them loaded by default and consult with a developer.', 'wp-asset-clean-up'),
|
35 |
+
'<span class="dashicons dashicons-warning"></span>'
|
36 |
+
);
|
37 |
+
?>
|
38 |
+
</em></div><br />
|
39 |
+
<?php
|
40 |
+
}
|
41 |
+
?>
|
42 |
+
</div>
|
43 |
+
<?php
|
44 |
+
$handleStatusesText = array(
|
45 |
+
'parent' => '<span class="dashicons dashicons-groups"></span> \'Parents\' with \'children\' (.css & .js)',
|
46 |
+
'child' => '<span class="dashicons dashicons-admin-users"></span> \'Children\' of \'parents\' (.css & .js)',
|
47 |
+
'independent' => '<span class="dashicons dashicons-admin-users"></span> Independent (.css & .js)'
|
48 |
+
);
|
49 |
+
|
50 |
+
$data['view_by_parents'] =
|
51 |
+
$data['rows_build_array'] =
|
52 |
+
$data['rows_by_parents'] = true;
|
53 |
+
|
54 |
+
$data['rows_assets'] = array();
|
55 |
+
|
56 |
+
require_once __DIR__.'/_asset-style-rows.php';
|
57 |
+
require_once __DIR__.'/_asset-script-rows.php';
|
58 |
+
|
59 |
+
if (! empty($data['rows_assets'])) {
|
60 |
+
// Sorting: parent & non_parent
|
61 |
+
$rowsAssets = array('parent' => array(), 'child' => array(), 'independent' => array());
|
62 |
+
|
63 |
+
foreach ($data['rows_assets'] as $handleStatus => $values) {
|
64 |
+
$rowsAssets[$handleStatus] = $values;
|
65 |
+
}
|
66 |
+
|
67 |
+
foreach ($rowsAssets as $handleStatus => $values) {
|
68 |
+
ksort($values);
|
69 |
+
?>
|
70 |
+
<div class="wpacu-assets-collapsible-wrap wpacu-by-parents wpacu-<?php echo $handleStatus; ?>">
|
71 |
+
<a class="wpacu-assets-collapsible <?php if ($listAreaStatus !== 'contracted') { ?>wpacu-assets-collapsible-active<?php } ?>" href="#wpacu-assets-collapsible-content-<?php echo $handleStatus; ?>">
|
72 |
+
<?php echo $handleStatusesText[$handleStatus]; ?>
|
73 |
+
</a>
|
74 |
+
|
75 |
+
<div class="wpacu-assets-collapsible-content <?php if ($listAreaStatus !== 'contracted') { ?>wpacu-open<?php } ?>">
|
76 |
+
<?php if ($handleStatus === 'parent') { ?>
|
77 |
+
<p class="wpacu-assets-note">If you unload any of the files below (if any listed), their 'children' (as listed in green bold font below the handle) will also be unloaded.</p>
|
78 |
+
<?php } elseif ($handleStatus === 'child') { ?>
|
79 |
+
<p class="wpacu-assets-note">The following files (if any listed) are 'children' linked to the 'parent' files.</p>
|
80 |
+
<?php } elseif ($handleStatus === 'independent') { ?>
|
81 |
+
<p class="wpacu-assets-note">The following files (if any listed) are independent as they are not 'children' or 'parents'.</p>
|
82 |
+
<?php } ?>
|
83 |
+
|
84 |
+
<?php if (count($values) > 0) { ?>
|
85 |
+
<table class="wpacu_list_table wpacu_list_by_parents wpacu_widefat wpacu_striped">
|
86 |
+
<tbody>
|
87 |
+
<?php
|
88 |
+
$assetRowIndex = 1;
|
89 |
+
|
90 |
+
foreach ($values as $assetType => $assetRows) {
|
91 |
+
foreach ($assetRows as $assetRow) {
|
92 |
+
echo $assetRow . "\n";
|
93 |
+
}
|
94 |
+
}
|
95 |
+
?>
|
96 |
+
</tbody>
|
97 |
+
</table>
|
98 |
+
<?php } ?>
|
99 |
+
</div>
|
100 |
+
</div>
|
101 |
+
<?php
|
102 |
+
}
|
103 |
+
}
|
104 |
+
}
|
105 |
+
/*
|
106 |
+
* --------------------------------------------
|
107 |
+
* [END] BY EACH HANDLE STATUS (Parent or Not)
|
108 |
+
* --------------------------------------------
|
109 |
+
*/
|
110 |
+
|
111 |
+
include '_inline_js.php';
|
templates/meta-box-loaded-assets/view-by-position.php
CHANGED
@@ -4,10 +4,6 @@ if (! isset($data)) {
|
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
-
// Show areas by:
|
8 |
-
// "Plugins", "Themes" (parent theme and child theme), "WordPress Core"
|
9 |
-
// External locations (outside plugins and themes)
|
10 |
-
// 3rd party external locations (e.g. Google API Fonts, CND urls such as the ones for Bootstrap etc.)
|
11 |
$listAreaStatus = $data['plugin_settings']['assets_list_layout_areas_status'];
|
12 |
|
13 |
/*
|
@@ -21,8 +17,8 @@ $listAreaStatus = $data['plugin_settings']['assets_list_layout_areas_status'];
|
|
21 |
<?php
|
22 |
if (! empty($data['all']['styles']) || ! empty($data['all']['scripts'])) {
|
23 |
?>
|
24 |
-
<p><?php echo sprintf(__('The following styles & 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 enable "Test Mode" (to make the changes apply only to you), while you are going through the trial & error process.',
|
25 |
-
<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.',
|
26 |
<?php
|
27 |
if ($data['plugin_settings']['hide_core_files']) {
|
28 |
?>
|
@@ -35,7 +31,7 @@ $listAreaStatus = $data['plugin_settings']['assets_list_layout_areas_status'];
|
|
35 |
?>
|
36 |
<div class="wpacu_note wpacu_warning"><em><?php
|
37 |
echo sprintf(
|
38 |
-
__('Assets that are marked with %s are part of WordPress core files. Be careful if you decide to unload them! If you are not sure what to do, just leave them loaded by default and consult with a developer.',
|
39 |
'<span class="dashicons dashicons-warning"></span>'
|
40 |
);
|
41 |
?>
|
@@ -72,31 +68,31 @@ $listAreaStatus = $data['plugin_settings']['assets_list_layout_areas_status'];
|
|
72 |
?>
|
73 |
<div class="wpacu-assets-collapsible-wrap wpacu-by-position wpacu-<?php echo $positionMain; ?>">
|
74 |
<a class="wpacu-assets-collapsible <?php if ($listAreaStatus !== 'contracted') { ?>wpacu-assets-collapsible-active<?php } ?>" href="#wpacu-assets-collapsible-content-<?php echo $positionMain; ?>">
|
75 |
-
<?php
|
76 |
</a>
|
77 |
|
78 |
<div class="wpacu-assets-collapsible-content <?php if ($listAreaStatus !== 'contracted') { ?>wpacu-open<?php } ?>">
|
79 |
<?php if ($positionMain === 'head') { ?>
|
80 |
-
<p class="wpacu-assets-note">The files are loaded within <code><head></code> and <code></head></code> tags. The output is done through <code>wp_head()</code> WordPress function which should be located before the closing <code></head></code> tag of your theme.</p>
|
81 |
<?php } elseif ($positionMain === 'body') { ?>
|
82 |
-
<p class="wpacu-assets-note">The files are loaded within <code><body></code> and <code></body></code> tags. The output is done through <code>wp_footer()</code> WordPress function which should be located before the closing <code></body></code> tag of your theme.</p>
|
83 |
<?php } ?>
|
84 |
|
85 |
-
|
86 |
-
<
|
87 |
-
|
88 |
-
|
|
|
89 |
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
echo $assetRow . "\n";
|
95 |
}
|
96 |
-
|
97 |
-
|
98 |
-
</
|
99 |
-
|
100 |
</div>
|
101 |
</div>
|
102 |
<?php
|
4 |
exit;
|
5 |
}
|
6 |
|
|
|
|
|
|
|
|
|
7 |
$listAreaStatus = $data['plugin_settings']['assets_list_layout_areas_status'];
|
8 |
|
9 |
/*
|
17 |
<?php
|
18 |
if (! empty($data['all']['styles']) || ! empty($data['all']['scripts'])) {
|
19 |
?>
|
20 |
+
<p><?php echo sprintf(__('The following styles & 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 enable "Test Mode" (to make the changes apply only to you), while you are going through the trial & error process.', 'wp-asset-clean-up'), '<span style="color: #CC0000;"><strong>', '</strong></span>'); ?></p>
|
21 |
+
<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.', 'wp-asset-clean-up'); ?></p>
|
22 |
<?php
|
23 |
if ($data['plugin_settings']['hide_core_files']) {
|
24 |
?>
|
31 |
?>
|
32 |
<div class="wpacu_note wpacu_warning"><em><?php
|
33 |
echo sprintf(
|
34 |
+
__('Assets that are marked with %s are part of WordPress core files. Be careful if you decide to unload them! If you are not sure what to do, just leave them loaded by default and consult with a developer.', 'wp-asset-clean-up'),
|
35 |
'<span class="dashicons dashicons-warning"></span>'
|
36 |
);
|
37 |
?>
|
68 |
?>
|
69 |
<div class="wpacu-assets-collapsible-wrap wpacu-by-position wpacu-<?php echo $positionMain; ?>">
|
70 |
<a class="wpacu-assets-collapsible <?php if ($listAreaStatus !== 'contracted') { ?>wpacu-assets-collapsible-active<?php } ?>" href="#wpacu-assets-collapsible-content-<?php echo $positionMain; ?>">
|
71 |
+
<?php echo $positionsText[$positionMain]; ?>
|
72 |
</a>
|
73 |
|
74 |
<div class="wpacu-assets-collapsible-content <?php if ($listAreaStatus !== 'contracted') { ?>wpacu-open<?php } ?>">
|
75 |
<?php if ($positionMain === 'head') { ?>
|
76 |
+
<p class="wpacu-assets-note">The files below (if any) are loaded within <code><head></code> and <code></head></code> tags. The output is done through <code>wp_head()</code> WordPress function which should be located before the closing <code></head></code> tag of your theme.</p>
|
77 |
<?php } elseif ($positionMain === 'body') { ?>
|
78 |
+
<p class="wpacu-assets-note">The files below (if any) are loaded within <code><body></code> and <code></body></code> tags. The output is done through <code>wp_footer()</code> WordPress function which should be located before the closing <code></body></code> tag of your theme.</p>
|
79 |
<?php } ?>
|
80 |
|
81 |
+
<?php if (count($values) > 0) { ?>
|
82 |
+
<table class="wpacu_list_table wpacu_list_by_position wpacu_widefat wpacu_striped">
|
83 |
+
<tbody>
|
84 |
+
<?php
|
85 |
+
$assetRowIndex = 1;
|
86 |
|
87 |
+
foreach ($values as $assetType => $assetRows) {
|
88 |
+
foreach ($assetRows as $assetRow) {
|
89 |
+
echo $assetRow . "\n";
|
90 |
+
}
|
|
|
91 |
}
|
92 |
+
?>
|
93 |
+
</tbody>
|
94 |
+
</table>
|
95 |
+
<?php } ?>
|
96 |
</div>
|
97 |
</div>
|
98 |
<?php
|
templates/meta-box-loaded-assets/view-default.php
CHANGED
@@ -14,7 +14,7 @@ $listAreaStatus = $data['plugin_settings']['assets_list_layout_areas_status'];
|
|
14 |
?>
|
15 |
<div class="wpacu-contract-expand-area">
|
16 |
<div class="col-left">
|
17 |
-
<
|
18 |
</div>
|
19 |
<div class="col-right">
|
20 |
<a href="#" id="wpacu-assets-contract-all" class="wpacu-wp-button wpacu-wp-button-secondary">Contract Both Areas</a>
|
@@ -25,7 +25,7 @@ $listAreaStatus = $data['plugin_settings']['assets_list_layout_areas_status'];
|
|
25 |
|
26 |
<div class="wpacu-assets-collapsible-wrap wpacu-wrap-styles">
|
27 |
<a class="wpacu-assets-collapsible <?php if ($listAreaStatus !== 'contracted') { ?>wpacu-assets-collapsible-active<?php } ?>" href="#wpacu-assets-styles-collapsible-content">
|
28 |
-
<span class="dashicons dashicons-admin-appearance"></span> <?php _e('Styles (.css files)',
|
29 |
</a>
|
30 |
|
31 |
<div id="wpacu-assets-styles-collapsible-content"
|
@@ -34,8 +34,8 @@ $listAreaStatus = $data['plugin_settings']['assets_list_layout_areas_status'];
|
|
34 |
<?php
|
35 |
if (! empty($data['all']['styles'])) {
|
36 |
?>
|
37 |
-
<p><?php echo sprintf(__('Please select the styles & scripts that are %sNOT NEEDED%s from the list below. Not sure which ones to unload? 🤔 Use "Test Mode" (to make the changes apply only to you), while you are going through the trial & error process.',
|
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.',
|
39 |
<?php
|
40 |
if ($data['plugin_settings']['hide_core_files']) {
|
41 |
?>
|
@@ -48,7 +48,7 @@ $listAreaStatus = $data['plugin_settings']['assets_list_layout_areas_status'];
|
|
48 |
?>
|
49 |
<div class="wpacu_note wpacu_warning"><em><?php
|
50 |
echo sprintf(
|
51 |
-
__('CSS files that are marked with %s are part of WordPress core files. Be careful if you decide to unload them! If you are not sure what to do, just leave them loaded by default and consult with a developer.',
|
52 |
'<span class="dashicons dashicons-warning"></span>'
|
53 |
);
|
54 |
?>
|
@@ -65,7 +65,7 @@ $listAreaStatus = $data['plugin_settings']['assets_list_layout_areas_status'];
|
|
65 |
</table>
|
66 |
<?php
|
67 |
} else {
|
68 |
-
echo __('It looks like there are no public .css files loaded or the ones visible do not follow <a href="https://codex.wordpress.org/Function_Reference/wp_enqueue_style">the WordPress way of enqueuing styles</a>.',
|
69 |
}
|
70 |
?>
|
71 |
</div>
|
@@ -87,7 +87,7 @@ $listAreaStatus = $data['plugin_settings']['assets_list_layout_areas_status'];
|
|
87 |
|
88 |
<div class="wpacu-assets-collapsible-wrap wpacu-wrap-scripts">
|
89 |
<a class="wpacu-assets-collapsible <?php if ($listAreaStatus !== 'contracted') { ?>wpacu-assets-collapsible-active<?php } ?>" href="#wpacu-assets-scripts-collapsible-content">
|
90 |
-
<span class="dashicons dashicons-media-code"></span> <?php _e('Scripts (.js files)',
|
91 |
</a>
|
92 |
|
93 |
<div id="wpacu-assets-scripts-collapsible-content"
|
@@ -96,8 +96,8 @@ $listAreaStatus = $data['plugin_settings']['assets_list_layout_areas_status'];
|
|
96 |
<?php
|
97 |
if (! empty($data['all']['scripts'])) {
|
98 |
?>
|
99 |
-
<p><?php echo sprintf(__('Please select the styles & scripts that are %sNOT NEEDED%s from the list below. Not sure which ones to unload? Use "Test Mode" (to make the changes apply only to you), while you are going through the trial & error process.',
|
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.',
|
101 |
<?php
|
102 |
if ($data['plugin_settings']['hide_core_files']) {
|
103 |
?>
|
@@ -110,7 +110,7 @@ $listAreaStatus = $data['plugin_settings']['assets_list_layout_areas_status'];
|
|
110 |
?>
|
111 |
<div class="wpacu_note wpacu_warning"><em><?php
|
112 |
echo sprintf(
|
113 |
-
__('JavaScript files that are marked with %s are part of WordPress core files. Be careful if you decide to unload them! If you are not sure what to do, just leave them loaded by default and consult with a developer.',
|
114 |
'<span class="dashicons dashicons-warning"></span>'
|
115 |
);
|
116 |
?>
|
@@ -128,7 +128,7 @@ $listAreaStatus = $data['plugin_settings']['assets_list_layout_areas_status'];
|
|
128 |
</table>
|
129 |
<?php
|
130 |
} else {
|
131 |
-
echo __('It looks like there are no public .js files loaded or the ones visible do not follow <a href="https://codex.wordpress.org/Function_Reference/wp_enqueue_script">the WordPress way of enqueuing scripts</a>.',
|
132 |
}
|
133 |
?>
|
134 |
</div>
|
14 |
?>
|
15 |
<div class="wpacu-contract-expand-area">
|
16 |
<div class="col-left">
|
17 |
+
<strong>➝ Total enqueued files (including core files): <?php echo (int)$data['total_styles'] + (int)$data['total_scripts']; ?></strong>
|
18 |
</div>
|
19 |
<div class="col-right">
|
20 |
<a href="#" id="wpacu-assets-contract-all" class="wpacu-wp-button wpacu-wp-button-secondary">Contract Both Areas</a>
|
25 |
|
26 |
<div class="wpacu-assets-collapsible-wrap wpacu-wrap-styles">
|
27 |
<a class="wpacu-assets-collapsible <?php if ($listAreaStatus !== 'contracted') { ?>wpacu-assets-collapsible-active<?php } ?>" href="#wpacu-assets-styles-collapsible-content">
|
28 |
+
<span class="dashicons dashicons-admin-appearance"></span> <?php _e('Styles (.css files)', 'wp-asset-clean-up'); ?> ➝ Total (+ core files): <?php echo $data['total_styles']; ?>
|
29 |
</a>
|
30 |
|
31 |
<div id="wpacu-assets-styles-collapsible-content"
|
34 |
<?php
|
35 |
if (! empty($data['all']['styles'])) {
|
36 |
?>
|
37 |
+
<p><?php echo sprintf(__('Please select the styles & scripts that are %sNOT NEEDED%s from the list below. Not sure which ones to unload? 🤔 Use "Test Mode" (to make the changes apply only to you), while you are going through the trial & error process.', 'wp-asset-clean-up'), '<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.', 'wp-asset-clean-up'); ?></p>
|
39 |
<?php
|
40 |
if ($data['plugin_settings']['hide_core_files']) {
|
41 |
?>
|
48 |
?>
|
49 |
<div class="wpacu_note wpacu_warning"><em><?php
|
50 |
echo sprintf(
|
51 |
+
__('CSS files that are marked with %s are part of WordPress core files. Be careful if you decide to unload them! If you are not sure what to do, just leave them loaded by default and consult with a developer.', 'wp-asset-clean-up'),
|
52 |
'<span class="dashicons dashicons-warning"></span>'
|
53 |
);
|
54 |
?>
|
65 |
</table>
|
66 |
<?php
|
67 |
} else {
|
68 |
+
echo __('It looks like there are no public .css files loaded or the ones visible do not follow <a href="https://codex.wordpress.org/Function_Reference/wp_enqueue_style">the WordPress way of enqueuing styles</a>.', 'wp-asset-clean-up');
|
69 |
}
|
70 |
?>
|
71 |
</div>
|
87 |
|
88 |
<div class="wpacu-assets-collapsible-wrap wpacu-wrap-scripts">
|
89 |
<a class="wpacu-assets-collapsible <?php if ($listAreaStatus !== 'contracted') { ?>wpacu-assets-collapsible-active<?php } ?>" href="#wpacu-assets-scripts-collapsible-content">
|
90 |
+
<span class="dashicons dashicons-media-code"></span> <?php _e('Scripts (.js files)', 'wp-asset-clean-up'); ?> ➝ Total (+ core files): <?php echo $data['total_scripts']; ?>
|
91 |
</a>
|
92 |
|
93 |
<div id="wpacu-assets-scripts-collapsible-content"
|
96 |
<?php
|
97 |
if (! empty($data['all']['scripts'])) {
|
98 |
?>
|
99 |
+
<p><?php echo sprintf(__('Please select the styles & scripts that are %sNOT NEEDED%s from the list below. Not sure which ones to unload? Use "Test Mode" (to make the changes apply only to you), while you are going through the trial & error process.', 'wp-asset-clean-up'), '<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.', 'wp-asset-clean-up'); ?></p>
|
101 |
<?php
|
102 |
if ($data['plugin_settings']['hide_core_files']) {
|
103 |
?>
|
110 |
?>
|
111 |
<div class="wpacu_note wpacu_warning"><em><?php
|
112 |
echo sprintf(
|
113 |
+
__('JavaScript files that are marked with %s are part of WordPress core files. Be careful if you decide to unload them! If you are not sure what to do, just leave them loaded by default and consult with a developer.', 'wp-asset-clean-up'),
|
114 |
'<span class="dashicons dashicons-warning"></span>'
|
115 |
);
|
116 |
?>
|
128 |
</table>
|
129 |
<?php
|
130 |
} else {
|
131 |
+
echo __('It looks like there are no public .js files loaded or the ones visible do not follow <a href="https://codex.wordpress.org/Function_Reference/wp_enqueue_script">the WordPress way of enqueuing scripts</a>.', 'wp-asset-clean-up');
|
132 |
}
|
133 |
?>
|
134 |
</div>
|
templates/meta-box-loaded.php
CHANGED
@@ -15,26 +15,26 @@ $metaBoxLoadedFine = (! (isset($data['is_dashboard_view']) && $data['is_dashboar
|
|
15 |
&& isset($data['wp_remote_post']) && !empty($data['wp_remote_post'])));
|
16 |
|
17 |
if (! $metaBoxLoadedFine) {
|
18 |
-
// Errors for "WP
|
19 |
?>
|
20 |
<div class="ajax-wp-remote-post-call-error-area">
|
21 |
-
<p><span class="dashicons dashicons-warning"></span> <?php _e('It looks like "WP Remote Post" method for retrieving assets via the Dashboard is not working in this environment.',
|
22 |
-
<p><?php _e('Since the server (from its IP) is making the call, it will not "behave" in the same way as the "Direct" method, which could bypass for instance any authentication request (you might use a staging website that is protected by login credentials).',
|
23 |
-
<p><?php _e('Consider using "Direct" method. If that doesn\'t work either, use the "Manage in the Front-end" option (which should always work in any instance) and submit a ticket regarding the problem you\'re having. Here\'s the output received by the call:',
|
24 |
|
25 |
<table class="table-data">
|
26 |
<tr>
|
27 |
-
<td><strong><?php _e('CODE',
|
28 |
<td><?php echo $data['wp_remote_post']['response']['code']; ?></td>
|
29 |
</tr>
|
30 |
|
31 |
<tr>
|
32 |
-
<td><strong><?php _e('MESSAGE',
|
33 |
<td><?php echo $data['wp_remote_post']['response']['message']; ?></td>
|
34 |
</tr>
|
35 |
|
36 |
<tr>
|
37 |
-
<td><strong><?php _e('OUTPUT',
|
38 |
<td><?php echo $data['wp_remote_post']['body']; ?></td>
|
39 |
</tr>
|
40 |
</table>
|
@@ -65,13 +65,13 @@ if (isset($data['page_template'])) {
|
|
65 |
|
66 |
if (\WpAssetCleanUp\Misc::isHomePage()) {
|
67 |
?>
|
68 |
-
<p><strong><span style="color: #0f6cab;" class="dashicons dashicons-admin-home"></span> <?php _e('You are currently viewing the home page.',
|
69 |
<?php
|
70 |
}
|
71 |
|
72 |
elseif (\WpAssetCleanUp\Misc::isBlogPage()) {
|
73 |
?>
|
74 |
-
<p><strong><span style="color: #0f6cab;" class="dashicons dashicons-admin-post"></span> <?php _e('You are currently viewing the page that shows your latest posts.',
|
75 |
<?php
|
76 |
}
|
77 |
|
@@ -118,7 +118,7 @@ elseif ($data['bulk_unloaded_type'] === 'post_type') {
|
|
118 |
if (! is_404()) {
|
119 |
?>
|
120 |
<div class="wpacu_verified">
|
121 |
-
<strong><?php _e('Page URL',
|
122 |
href="<?php echo $data['fetch_url']; ?>"><span><?php echo $data['fetch_url']; ?></span></a>
|
123 |
</div>
|
124 |
<?php
|
@@ -128,6 +128,10 @@ if($data['plugin_settings']['assets_list_layout'] === 'by-location') {
|
|
128 |
$viewAssetsMode = 'by-location'; // Plugins, Theme(s), Core Files, External etc.
|
129 |
} elseif ($data['plugin_settings']['assets_list_layout'] === 'by-position') {
|
130 |
$viewAssetsMode = 'by-position'; // <head> or <body> (two lists)
|
|
|
|
|
|
|
|
|
131 |
} else {
|
132 |
$viewAssetsMode = 'default'; // All Styles & All Scripts (two lists)
|
133 |
}
|
@@ -155,5 +159,8 @@ if ($metaBoxLoadedFine) {
|
|
155 |
|
156 |
if ($metaBoxLoadedFine) {
|
157 |
?>
|
158 |
-
<input type="hidden"
|
|
|
|
|
|
|
159 |
<?php } ?>
|
15 |
&& isset($data['wp_remote_post']) && !empty($data['wp_remote_post'])));
|
16 |
|
17 |
if (! $metaBoxLoadedFine) {
|
18 |
+
// Errors for "WP Remote Post"? Print them out
|
19 |
?>
|
20 |
<div class="ajax-wp-remote-post-call-error-area">
|
21 |
+
<p><span class="dashicons dashicons-warning"></span> <?php _e('It looks like "WP Remote Post" method for retrieving assets via the Dashboard is not working in this environment.', 'wp-asset-clean-up'); ?></p>
|
22 |
+
<p><?php _e('Since the server (from its IP) is making the call, it will not "behave" in the same way as the "Direct" method, which could bypass for instance any authentication request (you might use a staging website that is protected by login credentials).', 'wp-asset-clean-up'); ?></p>
|
23 |
+
<p><?php _e('Consider using "Direct" method. If that doesn\'t work either, use the "Manage in the Front-end" option (which should always work in any instance) and submit a ticket regarding the problem you\'re having. Here\'s the output received by the call:', 'wp-asset-clean-up'); ?></p>
|
24 |
|
25 |
<table class="table-data">
|
26 |
<tr>
|
27 |
+
<td><strong><?php _e('CODE', 'wp-asset-clean-up'); ?>:</strong></td>
|
28 |
<td><?php echo $data['wp_remote_post']['response']['code']; ?></td>
|
29 |
</tr>
|
30 |
|
31 |
<tr>
|
32 |
+
<td><strong><?php _e('MESSAGE', 'wp-asset-clean-up'); ?>:</strong></td>
|
33 |
<td><?php echo $data['wp_remote_post']['response']['message']; ?></td>
|
34 |
</tr>
|
35 |
|
36 |
<tr>
|
37 |
+
<td><strong><?php _e('OUTPUT', 'wp-asset-clean-up'); ?>:</strong></td>
|
38 |
<td><?php echo $data['wp_remote_post']['body']; ?></td>
|
39 |
</tr>
|
40 |
</table>
|
65 |
|
66 |
if (\WpAssetCleanUp\Misc::isHomePage()) {
|
67 |
?>
|
68 |
+
<p><strong><span style="color: #0f6cab;" class="dashicons dashicons-admin-home"></span> <?php _e('You are currently viewing the home page.', 'wp-asset-clean-up'); ?></strong></p>
|
69 |
<?php
|
70 |
}
|
71 |
|
72 |
elseif (\WpAssetCleanUp\Misc::isBlogPage()) {
|
73 |
?>
|
74 |
+
<p><strong><span style="color: #0f6cab;" class="dashicons dashicons-admin-post"></span> <?php _e('You are currently viewing the page that shows your latest posts.', 'wp-asset-clean-up'); ?></strong></p>
|
75 |
<?php
|
76 |
}
|
77 |
|
118 |
if (! is_404()) {
|
119 |
?>
|
120 |
<div class="wpacu_verified">
|
121 |
+
<strong><?php _e('Page URL', 'wp-asset-clean-up'); ?>:</strong> <a target="_blank"
|
122 |
href="<?php echo $data['fetch_url']; ?>"><span><?php echo $data['fetch_url']; ?></span></a>
|
123 |
</div>
|
124 |
<?php
|
128 |
$viewAssetsMode = 'by-location'; // Plugins, Theme(s), Core Files, External etc.
|
129 |
} elseif ($data['plugin_settings']['assets_list_layout'] === 'by-position') {
|
130 |
$viewAssetsMode = 'by-position'; // <head> or <body> (two lists)
|
131 |
+
} elseif ($data['plugin_settings']['assets_list_layout'] === 'by-parents') {
|
132 |
+
$viewAssetsMode = 'by-parents'; // Loaded & Unloaded (two lists)
|
133 |
+
} elseif ($data['plugin_settings']['assets_list_layout'] === 'by-loaded-unloaded') {
|
134 |
+
$viewAssetsMode = 'by-loaded-unloaded'; // Parent or Child/Independent (two lists)
|
135 |
} else {
|
136 |
$viewAssetsMode = 'default'; // All Styles & All Scripts (two lists)
|
137 |
}
|
159 |
|
160 |
if ($metaBoxLoadedFine) {
|
161 |
?>
|
162 |
+
<input type="hidden"
|
163 |
+
id="wpacu_unload_assets_area_loaded"
|
164 |
+
name="wpacu_unload_assets_area_loaded"
|
165 |
+
value="1" />
|
166 |
<?php } ?>
|
templates/meta-box-side-page-options.php
CHANGED
@@ -14,7 +14,7 @@ if (! isset($data)) {
|
|
14 |
<?php if (isset($data['page_options']['no_css_minify']) && $data['page_options']['no_css_minify']) { echo 'checked="checked"'; } ?>
|
15 |
id="wpacu_page_options_no_css_minify"
|
16 |
name="<?php echo WPACU_PLUGIN_ID; ?>_page_options[no_css_minify]"
|
17 |
-
value="1" /><?php _e('Do not minify CSS on this page',
|
18 |
</label>
|
19 |
</li>
|
20 |
<li>
|
@@ -23,7 +23,7 @@ if (! isset($data)) {
|
|
23 |
<?php if (isset($data['page_options']['no_css_optimize']) && $data['page_options']['no_css_optimize']) { echo 'checked="checked"'; } ?>
|
24 |
id="wpacu_page_options_no_css_optimize"
|
25 |
name="<?php echo WPACU_PLUGIN_ID; ?>_page_options[no_css_optimize]"
|
26 |
-
value="1" /><?php _e('Do not combine CSS on this page',
|
27 |
</label>
|
28 |
</li>
|
29 |
|
@@ -33,7 +33,7 @@ if (! isset($data)) {
|
|
33 |
<?php if (isset($data['page_options']['no_js_minify']) && $data['page_options']['no_js_minify']) { echo 'checked="checked"'; } ?>
|
34 |
id="wpacu_page_options_no_js_minify"
|
35 |
name="<?php echo WPACU_PLUGIN_ID; ?>_page_options[no_js_minify]"
|
36 |
-
value="1" /><?php _e('Do not minify JS files on this page',
|
37 |
</label>
|
38 |
</li>
|
39 |
<li>
|
@@ -42,7 +42,7 @@ if (! isset($data)) {
|
|
42 |
<?php if (isset($data['page_options']['no_js_optimize']) && $data['page_options']['no_js_optimize']) { echo 'checked="checked"'; } ?>
|
43 |
id="wpacu_page_options_no_js_optimize"
|
44 |
name="<?php echo WPACU_PLUGIN_ID; ?>_page_options[no_js_optimize]"
|
45 |
-
value="1" /><?php _e('Do not combine JavaScript on this page',
|
46 |
</label>
|
47 |
</li>
|
48 |
|
@@ -52,11 +52,14 @@ if (! isset($data)) {
|
|
52 |
<?php if (isset($data['page_options']['no_assets_settings']) && $data['page_options']['no_assets_settings']) { echo 'checked="checked"'; } ?>
|
53 |
id="wpacu_page_options_no_assets_settings"
|
54 |
name="<?php echo WPACU_PLUGIN_ID; ?>_page_options[no_assets_settings]"
|
55 |
-
value="1" /><?php _e('Do not apply any CSS & JavaScript settings (including "async", "defer" & unload rules) on this page',
|
56 |
</label>
|
57 |
</li>
|
58 |
</ul>
|
59 |
<hr/>
|
60 |
-
<p style="margin-top: 10px;"
|
|
|
|
|
|
|
61 |
</div>
|
62 |
<input type="hidden" name="wpacu_meta_box_page_options_loaded" value="1" />
|
14 |
<?php if (isset($data['page_options']['no_css_minify']) && $data['page_options']['no_css_minify']) { echo 'checked="checked"'; } ?>
|
15 |
id="wpacu_page_options_no_css_minify"
|
16 |
name="<?php echo WPACU_PLUGIN_ID; ?>_page_options[no_css_minify]"
|
17 |
+
value="1" /><?php _e('Do not minify CSS on this page', 'wp-asset-clean-up'); ?>
|
18 |
</label>
|
19 |
</li>
|
20 |
<li>
|
23 |
<?php if (isset($data['page_options']['no_css_optimize']) && $data['page_options']['no_css_optimize']) { echo 'checked="checked"'; } ?>
|
24 |
id="wpacu_page_options_no_css_optimize"
|
25 |
name="<?php echo WPACU_PLUGIN_ID; ?>_page_options[no_css_optimize]"
|
26 |
+
value="1" /><?php _e('Do not combine CSS on this page', 'wp-asset-clean-up'); ?>
|
27 |
</label>
|
28 |
</li>
|
29 |
|
33 |
<?php if (isset($data['page_options']['no_js_minify']) && $data['page_options']['no_js_minify']) { echo 'checked="checked"'; } ?>
|
34 |
id="wpacu_page_options_no_js_minify"
|
35 |
name="<?php echo WPACU_PLUGIN_ID; ?>_page_options[no_js_minify]"
|
36 |
+
value="1" /><?php _e('Do not minify JS files on this page', 'wp-asset-clean-up'); ?>
|
37 |
</label>
|
38 |
</li>
|
39 |
<li>
|
42 |
<?php if (isset($data['page_options']['no_js_optimize']) && $data['page_options']['no_js_optimize']) { echo 'checked="checked"'; } ?>
|
43 |
id="wpacu_page_options_no_js_optimize"
|
44 |
name="<?php echo WPACU_PLUGIN_ID; ?>_page_options[no_js_optimize]"
|
45 |
+
value="1" /><?php _e('Do not combine JavaScript on this page', 'wp-asset-clean-up'); ?>
|
46 |
</label>
|
47 |
</li>
|
48 |
|
52 |
<?php if (isset($data['page_options']['no_assets_settings']) && $data['page_options']['no_assets_settings']) { echo 'checked="checked"'; } ?>
|
53 |
id="wpacu_page_options_no_assets_settings"
|
54 |
name="<?php echo WPACU_PLUGIN_ID; ?>_page_options[no_assets_settings]"
|
55 |
+
value="1" /><?php _e('Do not apply any CSS & JavaScript settings (including "async", "defer" & unload rules) on this page', 'wp-asset-clean-up'); ?>
|
56 |
</label>
|
57 |
</li>
|
58 |
</ul>
|
59 |
<hr/>
|
60 |
+
<p style="margin-top: 10px;">
|
61 |
+
<strong><span style="color: #82878c;" class="dashicons dashicons-lightbulb"></span></strong>
|
62 |
+
<?php _e('Use the "Preview" button if you wish to see how the options above, as well as the load/unload rules will apply before updating anything. It works like the "Test Mode" feature for this page only.', 'wp-asset-clean-up'); ?>
|
63 |
+
</p>
|
64 |
</div>
|
65 |
<input type="hidden" name="wpacu_meta_box_page_options_loaded" value="1" />
|
templates/meta-box.php
CHANGED
@@ -20,27 +20,27 @@ if ($data['get_assets']) {
|
|
20 |
if ($data['get_assets']) {
|
21 |
?>
|
22 |
<img src="<?php echo admin_url(); ?>/images/spinner.gif" align="top" width="20" height="20" alt="" />
|
23 |
-
<?php echo sprintf(__('Fetching the loaded scripts and styles for <strong>%s</strong> <br /><br /> Please wait... <br /><br /> In case the list does not show consider checking your internet connection and the actual page that is being fetched to see if it loads completely.',
|
24 |
<p style="margin-bottom: 0;"><?php echo sprintf(
|
25 |
-
__('If you believe fetching the page takes too long and the assets should have loaded by now, I suggest you go to "Settings", make sure "Manage in front-end" is checked and then %smanage the assets in the front-end%s.',
|
26 |
'<a href="'.$data['fetch_url'].'#wpacu_wrap_assets">',
|
27 |
'</a>'
|
28 |
); ?></p>
|
29 |
<?php
|
30 |
} elseif ($data['status'] === 2) {
|
31 |
-
echo '<p>'.__('In order to manage the CSS/JS files here, you need to have "Manage in the Dashboard?" enabled within the plugin\'s settings ("General & Files Management" tab).',
|
32 |
echo '<p style="margin-bottom: 0;">'.__('If you prefer to manage the assets within the front-end view and wish to hide this meta box, you can click on "Screen Options" at the top of this page and deselect "Asset CleanUp: CSS & JavaScript Manager".').'</p>';
|
33 |
} elseif ($data['status'] === 3) {
|
34 |
-
_e('The styles and scripts will be available for unload once this post/page is <strong>public</strong> and <strong>publish</strong>ed as the whole page needs to be scanned for all the loaded assets.',
|
35 |
?>
|
36 |
-
<p class="wpacu-warning" style="margin: 15px 0 0; padding: 10px; font-size: inherit;"><span class="dashicons dashicons-image-rotate" style="-webkit-transform: rotateY(180deg); transform: rotateY(180deg);"></span> <?php _e('If this post/page was meanwhile published (after you saw the above notice), just reload this edit page and you should see the list of CSS/JS files loaded in the page.',
|
37 |
<?php
|
38 |
} elseif ($data['status'] === 4) {
|
39 |
?>
|
40 |
<p style="margin-bottom: 0;">
|
41 |
<span class="dashicons dashicons-info"></span>
|
42 |
<?php
|
43 |
-
_e('There are no CSS/JS to manage as the permalink for this attachment redirects to the attachment itself because <em>"Redirect attachment URLs to the attachment itself?"</em> is set to <em>"Yes"</em> in <em>"Search Appearance - Yoast SEO" - "Media"</em> tab).',
|
44 |
?>
|
45 |
</p>
|
46 |
<?php
|
20 |
if ($data['get_assets']) {
|
21 |
?>
|
22 |
<img src="<?php echo admin_url(); ?>/images/spinner.gif" align="top" width="20" height="20" alt="" />
|
23 |
+
<?php echo sprintf(__('Fetching the loaded scripts and styles for <strong>%s</strong> <br /><br /> Please wait... <br /><br /> In case the list does not show consider checking your internet connection and the actual page that is being fetched to see if it loads completely.', 'wp-asset-clean-up'), $data['fetch_url']); ?>
|
24 |
<p style="margin-bottom: 0;"><?php echo sprintf(
|
25 |
+
__('If you believe fetching the page takes too long and the assets should have loaded by now, I suggest you go to "Settings", make sure "Manage in front-end" is checked and then %smanage the assets in the front-end%s.', 'wp-asset-clean-up'),
|
26 |
'<a href="'.$data['fetch_url'].'#wpacu_wrap_assets">',
|
27 |
'</a>'
|
28 |
); ?></p>
|
29 |
<?php
|
30 |
} elseif ($data['status'] === 2) {
|
31 |
+
echo '<p>'.__('In order to manage the CSS/JS files here, you need to have "Manage in the Dashboard?" enabled within the plugin\'s settings ("General & Files Management" tab).', 'wp-asset-clean-up').'</p>';
|
32 |
echo '<p style="margin-bottom: 0;">'.__('If you prefer to manage the assets within the front-end view and wish to hide this meta box, you can click on "Screen Options" at the top of this page and deselect "Asset CleanUp: CSS & JavaScript Manager".').'</p>';
|
33 |
} elseif ($data['status'] === 3) {
|
34 |
+
_e('The styles and scripts will be available for unload once this post/page is <strong>public</strong> and <strong>publish</strong>ed as the whole page needs to be scanned for all the loaded assets.', 'wp-asset-clean-up');
|
35 |
?>
|
36 |
+
<p class="wpacu-warning" style="margin: 15px 0 0; padding: 10px; font-size: inherit;"><span class="dashicons dashicons-image-rotate" style="-webkit-transform: rotateY(180deg); transform: rotateY(180deg);"></span> <?php _e('If this post/page was meanwhile published (after you saw the above notice), just reload this edit page and you should see the list of CSS/JS files loaded in the page.', 'wp-asset-clean-up'); ?></p>
|
37 |
<?php
|
38 |
} elseif ($data['status'] === 4) {
|
39 |
?>
|
40 |
<p style="margin-bottom: 0;">
|
41 |
<span class="dashicons dashicons-info"></span>
|
42 |
<?php
|
43 |
+
_e('There are no CSS/JS to manage as the permalink for this attachment redirects to the attachment itself because <em>"Redirect attachment URLs to the attachment itself?"</em> is set to <em>"Yes"</em> in <em>"Search Appearance - Yoast SEO" - "Media"</em> tab).', 'wp-asset-clean-up');
|
44 |
?>
|
45 |
</p>
|
46 |
<?php
|
templates/settings-frontend.php
CHANGED
@@ -6,7 +6,6 @@ if (! isset($data)) {
|
|
6 |
exit;
|
7 |
}
|
8 |
?>
|
9 |
-
|
10 |
<form action="#wpacu_wrap_assets" method="post">
|
11 |
<div id="wpacu_wrap_assets">
|
12 |
<?php
|
@@ -32,12 +31,12 @@ if (! isset($data)) {
|
|
32 |
// Get WP Rocket Settings
|
33 |
$wpRocketSettings = get_option('wp_rocket_settings');
|
34 |
|
35 |
-
if ($wpRocketSettings['cache_logged_user'] == 1) {
|
36 |
?>
|
37 |
<div class="wpacu-warning">
|
38 |
-
<strong><span class="dashicons dashicons-warning"></span> Important
|
39 |
-
<?php _e('This could cause some issues with Asset CleanUp retrieving an outdated (cached) asset list below.',
|
40 |
-
If you experience issues such as unsaved settings or viewing assets from plugins that are disabled, consider using Asset CleanUp only in the Dashboard area (option "Manage in the Dashboard
|
41 |
<!--
|
42 |
-->
|
43 |
</div>
|
@@ -45,19 +44,31 @@ if (! isset($data)) {
|
|
45 |
<?php
|
46 |
}
|
47 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
?>
|
49 |
-
<p><small><?php _e('This area is shown only for the admin users and if "Manage in the Front-end?" was selected in the plugin\'s settings. Handles such as \'admin-bar\' and \'wpassetcleanup-style\' are not included as they are irrelevant since they are used by the plugin for this area.',
|
50 |
<?php
|
51 |
if ($data['is_woo_shop_page']) {
|
52 |
?>
|
53 |
-
<p><strong><span style="color: #0f6cab;" class="dashicons dashicons-cart"></span> <?php _e('This a WooCommerce shop page (\'product\' type archive).',
|
54 |
<?php
|
55 |
}
|
56 |
|
57 |
if (isset($data['vars']['woo_url_not_match'])) {
|
58 |
?>
|
59 |
<div class="wpacu_note wpacu_warning">
|
60 |
-
<p><?php _e('Although this page is detected as the home page, its URL is not the same as the one from "General Settings" » "Site Address (URL)" and the WooCommerce plugin is not active anymore. This could be the "Shop" page that is no longer active.',
|
61 |
</div>
|
62 |
<?php
|
63 |
}
|
@@ -65,51 +76,61 @@ if (! isset($data)) {
|
|
65 |
require_once 'meta-box-loaded.php';
|
66 |
} else {
|
67 |
// Category, Tag, Search, 404, Author, Date pages (not supported by Lite version)
|
68 |
-
$contentUnlockFeature = ' <p class="pro-page-unlock-notice">'.__('To unlock this feature, you can upgrade to the Pro version.',
|
69 |
-
$utm_medium = '';
|
70 |
|
71 |
if (\WpAssetCleanUp\Main::isWpDefaultSearchPage()) {
|
72 |
-
echo '<span class="dashicons dashicons-search"></span> '.__('This is a <strong>WordPress Search Page</strong> and managing CSS & JS (unload, defer, async, etc.) for this page type can be done in Asset CleanUp Pro.',
|
73 |
$utm_medium = 'search_page';
|
74 |
} elseif (is_404()) {
|
75 |
-
echo '<span class="dashicons dashicons-warning"></span> '.__('This is a <strong>404 (Not Found) Page</strong> and managing CSS & JS (unload, defer, async, etc.) for this page type can be done in Asset CleanUp Pro.',
|
76 |
$utm_medium = '404_not_found_page';
|
77 |
} elseif (is_author()) {
|
78 |
-
echo '<span class="dashicons dashicons-admin-users"></span> '.__('This is an <strong>Author Page</strong> and managing CSS & JS (unload, defer, async, etc.) for this page type can be done in Asset CleanUp Pro.',
|
79 |
$utm_medium = 'author_page';
|
80 |
} elseif (is_category()) {
|
81 |
-
echo '<span class="dashicons dashicons-category"></span> '.__('This is a <strong>Category (Taxonomy) Page</strong> and managing CSS & JS (unload, defer, async, etc.) for this page type can be done in Asset CleanUp Pro.',
|
82 |
$utm_medium = 'category_page';
|
83 |
} elseif (function_exists('is_product_category') && is_product_category()) {
|
84 |
-
echo '<img src="'.WPACU_PLUGIN_URL . '/assets/icons/woocommerce-icon-logo.svg'.'" alt="" style="height: 40px !important; margin-top: -6px; margin-right: 5px;" align="middle" /> '.__('This is a <strong>WooCommerce Product Category (Taxonomy) Page</strong> and managing CSS & JS (unload, defer, async, etc.) for this page type can be done in Asset CleanUp Pro.',
|
85 |
$utm_medium = 'woo_product_category_page';
|
86 |
} elseif (is_date()) {
|
87 |
-
echo '<span class="dashicons dashicons-calendar-alt"></span> '.__('This is a <strong>Date (Archive) Page</strong> and managing (unload, defer, async etc.) CSS & JS for this page type can be done in Asset CleanUp Pro.',
|
88 |
$utm_medium = 'date_page';
|
89 |
} elseif (is_tag()) {
|
90 |
-
echo '<span class="dashicons dashicons-tag"></span> '.__('This is a <strong>Tag (Archive) Page</strong> and managing CSS & JS (unload, defer, async, etc.) for this page type can be done in Asset CleanUp Pro.',
|
91 |
$utm_medium = 'tag_page';
|
92 |
} elseif (is_tax()) {
|
93 |
-
echo '<span class="dashicons dashicons-tag"></span> '.__('This is a <strong>Taxonomy Page</strong> and managing CSS & JS (unload, defer, async, etc.) for this page type can be done in Asset CleanUp Pro.',
|
94 |
$utm_medium = 'taxonomy_page';
|
|
|
|
|
95 |
}
|
96 |
?>
|
97 |
<p>
|
98 |
<a class="go-pro-button" target="_blank" href="<?php echo WPACU_PLUGIN_GO_PRO_URL; ?>?utm_source=front_end_manage&utm_medium=<?php echo $utm_medium; ?>">
|
99 |
-
<span class="dashicons dashicons-cart"></span> <?php _e('Upgrade to Asset CleanUp Pro',
|
100 |
</p>
|
101 |
<?php
|
102 |
}
|
103 |
|
104 |
if ($data['is_updateable']) {
|
105 |
?>
|
106 |
-
<div
|
107 |
<button class="wpacu_update_btn"
|
108 |
type="submit"
|
109 |
-
name="submit"><span class="dashicons dashicons-update"></span> <?php esc_attr_e('UPDATE',
|
|
|
|
|
|
|
|
|
110 |
</div>
|
111 |
|
112 |
-
<p align="right"><small
|
|
|
|
|
|
|
|
|
113 |
<?php } ?>
|
114 |
</div>
|
115 |
|
6 |
exit;
|
7 |
}
|
8 |
?>
|
|
|
9 |
<form action="#wpacu_wrap_assets" method="post">
|
10 |
<div id="wpacu_wrap_assets">
|
11 |
<?php
|
31 |
// Get WP Rocket Settings
|
32 |
$wpRocketSettings = get_option('wp_rocket_settings');
|
33 |
|
34 |
+
if (isset($wpRocketSettings['cache_logged_user']) && $wpRocketSettings['cache_logged_user'] == 1) {
|
35 |
?>
|
36 |
<div class="wpacu-warning">
|
37 |
+
<strong><span class="dashicons dashicons-warning"></span> <?php _e('Important', 'wp-asset-clean-up'); ?>:</strong> <?php echo sprintf(__('You have enabled "%s" in WP Rocket\'s Cache area.', 'wp-asset-clean-up'), '<em>Enable caching for logged-in WordPress users</em>'); ?>
|
38 |
+
<?php _e('This could cause some issues with Asset CleanUp retrieving an outdated (cached) asset list below.', 'wp-asset-clean-up'); ?>
|
39 |
+
<?php _e('If you experience issues such as unsaved settings or viewing assets from plugins that are disabled, consider using Asset CleanUp only in the Dashboard area (option "Manage in the Dashboard" has to be enabled in plugin\'s settings).', 'wp-asset-clean-up'); ?>
|
40 |
<!--
|
41 |
-->
|
42 |
</div>
|
44 |
<?php
|
45 |
}
|
46 |
}
|
47 |
+
|
48 |
+
if (\WpAssetCleanUp\Misc::isPerfmattersActive()) {
|
49 |
+
$perfmattersExtras = get_option('perfmatters_extras');
|
50 |
+
|
51 |
+
if (isset($perfmattersExtras['script_manager']) && (int)$perfmattersExtras['script_manager'] === 1) {
|
52 |
+
?>
|
53 |
+
<div class="wpacu-warning">
|
54 |
+
<span class="dashicons dashicons-warning" style="color: #cc0000;"></span> You're using the "Script Manager" option from "Extras" tab within Perfmatters plugin. You're already using Asset CleanUp to manage the CSS/JS. <strong>Try not to use both plugins for the same feature as you could end up with broken functionality on either end.</strong>
|
55 |
+
</div>
|
56 |
+
<?php
|
57 |
+
}
|
58 |
+
}
|
59 |
?>
|
60 |
+
<p><small><?php _e('This area is shown only for the admin users and if "Manage in the Front-end?" was selected in the plugin\'s settings. Handles such as \'admin-bar\' and \'wpassetcleanup-style\' are not included as they are irrelevant since they are used by the plugin for this area.', 'wp-asset-clean-up'); ?></small></p>
|
61 |
<?php
|
62 |
if ($data['is_woo_shop_page']) {
|
63 |
?>
|
64 |
+
<p><strong><span style="color: #0f6cab;" class="dashicons dashicons-cart"></span> <?php _e('This a WooCommerce shop page (\'product\' type archive).', 'wp-asset-clean-up'); ?> <?php _e('Unloading CSS/JS will also take effect for the pagination/sorting pages', 'wp-asset-clean-up'); ?>(e.g. /2, /3, /?orderby=popularity etc.).</strong></p>
|
65 |
<?php
|
66 |
}
|
67 |
|
68 |
if (isset($data['vars']['woo_url_not_match'])) {
|
69 |
?>
|
70 |
<div class="wpacu_note wpacu_warning">
|
71 |
+
<p><?php _e('Although this page is detected as the home page, its URL is not the same as the one from "General Settings" » "Site Address (URL)" and the WooCommerce plugin is not active anymore. This could be the "Shop" page that is no longer active.', 'wp-asset-clean-up'); ?></p>
|
72 |
</div>
|
73 |
<?php
|
74 |
}
|
76 |
require_once 'meta-box-loaded.php';
|
77 |
} else {
|
78 |
// Category, Tag, Search, 404, Author, Date pages (not supported by Lite version)
|
79 |
+
$contentUnlockFeature = ' <p class="pro-page-unlock-notice">'.__('To unlock this feature, you can upgrade to the Pro version.', 'wp-asset-clean-up').'</p>';
|
80 |
+
$utm_medium = 'n_a'; // not available
|
81 |
|
82 |
if (\WpAssetCleanUp\Main::isWpDefaultSearchPage()) {
|
83 |
+
echo '<span class="dashicons dashicons-search"></span> '.__('This is a <strong>WordPress Search Page</strong> and managing CSS & JS (unload, defer, async, etc.) for this page type can be done in Asset CleanUp Pro.', 'wp-asset-clean-up') . $contentUnlockFeature;
|
84 |
$utm_medium = 'search_page';
|
85 |
} elseif (is_404()) {
|
86 |
+
echo '<span class="dashicons dashicons-warning"></span> '.__('This is a <strong>404 (Not Found) Page</strong> and managing CSS & JS (unload, defer, async, etc.) for this page type can be done in Asset CleanUp Pro.', 'wp-asset-clean-up') . $contentUnlockFeature;
|
87 |
$utm_medium = '404_not_found_page';
|
88 |
} elseif (is_author()) {
|
89 |
+
echo '<span class="dashicons dashicons-admin-users"></span> '.__('This is an <strong>Author Page</strong> and managing CSS & JS (unload, defer, async, etc.) for this page type can be done in Asset CleanUp Pro.', 'wp-asset-clean-up') . $contentUnlockFeature;
|
90 |
$utm_medium = 'author_page';
|
91 |
} elseif (is_category()) {
|
92 |
+
echo '<span class="dashicons dashicons-category"></span> '.__('This is a <strong>Category (Taxonomy) Page</strong> and managing CSS & JS (unload, defer, async, etc.) for this page type can be done in Asset CleanUp Pro.', 'wp-asset-clean-up') . $contentUnlockFeature;
|
93 |
$utm_medium = 'category_page';
|
94 |
} elseif (function_exists('is_product_category') && is_product_category()) {
|
95 |
+
echo '<img src="'.WPACU_PLUGIN_URL . '/assets/icons/woocommerce-icon-logo.svg'.'" alt="" style="height: 40px !important; margin-top: -6px; margin-right: 5px;" align="middle" /> '.__('This is a <strong>WooCommerce Product Category (Taxonomy) Page</strong> and managing CSS & JS (unload, defer, async, etc.) for this page type can be done in Asset CleanUp Pro.', 'wp-asset-clean-up') . $contentUnlockFeature;
|
96 |
$utm_medium = 'woo_product_category_page';
|
97 |
} elseif (is_date()) {
|
98 |
+
echo '<span class="dashicons dashicons-calendar-alt"></span> '.__('This is a <strong>Date (Archive) Page</strong> and managing (unload, defer, async etc.) CSS & JS for this page type can be done in Asset CleanUp Pro.', 'wp-asset-clean-up') . $contentUnlockFeature;
|
99 |
$utm_medium = 'date_page';
|
100 |
} elseif (is_tag()) {
|
101 |
+
echo '<span class="dashicons dashicons-tag"></span> '.__('This is a <strong>Tag (Archive) Page</strong> and managing CSS & JS (unload, defer, async, etc.) for this page type can be done in Asset CleanUp Pro.', 'wp-asset-clean-up') . $contentUnlockFeature;
|
102 |
$utm_medium = 'tag_page';
|
103 |
} elseif (is_tax()) {
|
104 |
+
echo '<span class="dashicons dashicons-tag"></span> '.__('This is a <strong>Taxonomy Page</strong> and managing CSS & JS (unload, defer, async, etc.) for this page type can be done in Asset CleanUp Pro.', 'wp-asset-clean-up') . $contentUnlockFeature;
|
105 |
$utm_medium = 'taxonomy_page';
|
106 |
+
} elseif (\WpAssetCleanUp\Misc::isHomePage()) {
|
107 |
+
$utm_medium = 'home_page';
|
108 |
}
|
109 |
?>
|
110 |
<p>
|
111 |
<a class="go-pro-button" target="_blank" href="<?php echo WPACU_PLUGIN_GO_PRO_URL; ?>?utm_source=front_end_manage&utm_medium=<?php echo $utm_medium; ?>">
|
112 |
+
<span class="dashicons dashicons-cart"></span> <?php _e('Upgrade to Asset CleanUp Pro', 'wp-asset-clean-up'); ?></a>
|
113 |
</p>
|
114 |
<?php
|
115 |
}
|
116 |
|
117 |
if ($data['is_updateable']) {
|
118 |
?>
|
119 |
+
<div id="wpacu-update-front-settings-area">
|
120 |
<button class="wpacu_update_btn"
|
121 |
type="submit"
|
122 |
+
name="submit"><span class="dashicons dashicons-update"></span> <?php esc_attr_e('UPDATE', 'wp-asset-clean-up'); ?></button>
|
123 |
+
|
124 |
+
<div id="wpacu-updating-front-settings" style="display: none;">
|
125 |
+
<img src="<?php echo admin_url(); ?>/images/spinner.gif" align="top" width="20" height="20" alt="" />
|
126 |
+
</div>
|
127 |
</div>
|
128 |
|
129 |
+
<p align="right"><small><?php echo sprintf(
|
130 |
+
__('Powered by %s, version %d', 'wp-asset-clean-up'),
|
131 |
+
WPACU_PLUGIN_TITLE,
|
132 |
+
WPACU_PLUGIN_VERSION);
|
133 |
+
?></small></p>
|
134 |
<?php } ?>
|
135 |
</div>
|
136 |
|
wpacu-load.php
CHANGED
@@ -31,6 +31,9 @@ spl_autoload_register('includeWpAssetCleanUpClassesAutoload');
|
|
31 |
// Main Class
|
32 |
WpAssetCleanUp\Main::instance();
|
33 |
|
|
|
|
|
|
|
34 |
// Plugin's Assets (used only when you're logged in)
|
35 |
$wpacuOwnAssets = new \WpAssetCleanUp\OwnAssets;
|
36 |
$wpacuOwnAssets->init();
|
@@ -55,6 +58,9 @@ new \WpAssetCleanUp\Menu;
|
|
55 |
// Admin Bar (Top Area of the website when user is logged in)
|
56 |
new \WpAssetCleanUp\AdminBar();
|
57 |
|
|
|
|
|
|
|
58 |
// Common functions for both CSS & JS combinations
|
59 |
// Clear cache functionality
|
60 |
$wpacuOptimizeCommon = new \WpAssetCleanUp\OptimiseAssets\OptimizeCommon();
|
@@ -82,7 +88,8 @@ if (is_admin()) {
|
|
82 |
* Trigger only within the Dashboard view (e.g. within /wp-admin/)
|
83 |
*/
|
84 |
new \WpAssetCleanUp\Plugin;
|
85 |
-
new \WpAssetCleanUp\Tools();
|
|
|
86 |
} elseif (\WpAssetCleanUp\Misc::triggerFrontendOptimization()) {
|
87 |
/*
|
88 |
* Trigger only in the front-end view (e.g. Homepage URL, /contact/, /about/ etc.)
|
31 |
// Main Class
|
32 |
WpAssetCleanUp\Main::instance();
|
33 |
|
34 |
+
// Code needed ONLY for Asset CleanUp LITE
|
35 |
+
new \WpAssetCleanUp\Lite();
|
36 |
+
|
37 |
// Plugin's Assets (used only when you're logged in)
|
38 |
$wpacuOwnAssets = new \WpAssetCleanUp\OwnAssets;
|
39 |
$wpacuOwnAssets->init();
|
58 |
// Admin Bar (Top Area of the website when user is logged in)
|
59 |
new \WpAssetCleanUp\AdminBar();
|
60 |
|
61 |
+
// Initialize information
|
62 |
+
new \WpAssetCleanUp\Info();
|
63 |
+
|
64 |
// Common functions for both CSS & JS combinations
|
65 |
// Clear cache functionality
|
66 |
$wpacuOptimizeCommon = new \WpAssetCleanUp\OptimiseAssets\OptimizeCommon();
|
88 |
* Trigger only within the Dashboard view (e.g. within /wp-admin/)
|
89 |
*/
|
90 |
new \WpAssetCleanUp\Plugin;
|
91 |
+
$wpacuTools = new \WpAssetCleanUp\Tools();
|
92 |
+
$wpacuTools->init();
|
93 |
} elseif (\WpAssetCleanUp\Misc::triggerFrontendOptimization()) {
|
94 |
/*
|
95 |
* Trigger only in the front-end view (e.g. Homepage URL, /contact/, /about/ etc.)
|
wpacu.php
CHANGED
@@ -2,13 +2,15 @@
|
|
2 |
/*
|
3 |
* Plugin Name: Asset CleanUp: Page Speed Booster
|
4 |
* Plugin URI: https://wordpress.org/plugins/wp-asset-clean-up/
|
5 |
-
* Version: 1.3.2.
|
6 |
* Description: Unload Chosen Scripts & Styles from Posts/Pages to reduce HTTP Requests, Combine/Minify CSS/JS files
|
7 |
* Author: Gabriel Livan
|
8 |
* Author URI: http://gabelivan.com/
|
|
|
|
|
9 |
*/
|
10 |
|
11 |
-
define('WPACU_PLUGIN_VERSION', '1.3.2.
|
12 |
|
13 |
// Exit if accessed directly
|
14 |
if (! defined('ABSPATH')) {
|
@@ -33,11 +35,10 @@ if ( defined('WPACU_PRO_NO_LITE_NEEDED') && WPACU_PRO_NO_LITE_NEEDED !== false
|
|
33 |
return;
|
34 |
}
|
35 |
|
36 |
-
define('WPACU_PLUGIN_ID',
|
37 |
-
define('
|
38 |
-
define('
|
39 |
-
define('
|
40 |
-
define('WPACU_PLUGIN_BASE', plugin_basename(WPACU_PLUGIN_FILE));
|
41 |
|
42 |
define('WPACU_ADMIN_PAGE_ID_START', WPACU_PLUGIN_ID . '_settings');
|
43 |
|
@@ -66,13 +67,18 @@ if ($wpacuWrongPhp && is_admin()) { // Dashboard
|
|
66 |
*/
|
67 |
function wpAssetCleanUpWrongPhpNotice()
|
68 |
{
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
|
|
|
|
|
|
|
|
|
|
76 |
|
77 |
if (array_key_exists('active', $_GET)) {
|
78 |
unset($_GET['activate']);
|
2 |
/*
|
3 |
* Plugin Name: Asset CleanUp: Page Speed Booster
|
4 |
* Plugin URI: https://wordpress.org/plugins/wp-asset-clean-up/
|
5 |
+
* Version: 1.3.2.7
|
6 |
* Description: Unload Chosen Scripts & Styles from Posts/Pages to reduce HTTP Requests, Combine/Minify CSS/JS files
|
7 |
* Author: Gabriel Livan
|
8 |
* Author URI: http://gabelivan.com/
|
9 |
+
* Text Domain: wp-asset-clean-up
|
10 |
+
* Domain Path: /languages
|
11 |
*/
|
12 |
|
13 |
+
define('WPACU_PLUGIN_VERSION', '1.3.2.7');
|
14 |
|
15 |
// Exit if accessed directly
|
16 |
if (! defined('ABSPATH')) {
|
35 |
return;
|
36 |
}
|
37 |
|
38 |
+
define('WPACU_PLUGIN_ID', 'wpassetcleanup'); // unique prefix
|
39 |
+
define('WPACU_PLUGIN_TITLE', 'Asset CleanUp'); // a short version of the plugin name
|
40 |
+
define('WPACU_PLUGIN_FILE', __FILE__);
|
41 |
+
define('WPACU_PLUGIN_BASE', plugin_basename(WPACU_PLUGIN_FILE));
|
|
|
42 |
|
43 |
define('WPACU_ADMIN_PAGE_ID_START', WPACU_PLUGIN_ID . '_settings');
|
44 |
|
67 |
*/
|
68 |
function wpAssetCleanUpWrongPhpNotice()
|
69 |
{
|
70 |
+
echo '<div class="error is-dismissible"><p>'.
|
71 |
+
|
72 |
+
sprintf(
|
73 |
+
__('%1$s requires %2$s PHP version installed. You have %3$s.', 'wp-asset-clean-up'),
|
74 |
+
'<strong>'.WPACU_PLUGIN_TITLE.'</strong>',
|
75 |
+
'<span style="color: green;"><strong>5.4+</strong></span>',
|
76 |
+
'<strong>'.PHP_VERSION.'</strong>'
|
77 |
+
) . ' '.
|
78 |
+
__('If your website is compatible with PHP 7+ (e.g. you can check with your developers or contact the hosting company), it\'s strongly recommended to upgrade for a better performance.', 'wp-asset-clean-up').' '.
|
79 |
+
__('The plugin has been deactivated.', 'wp-asset-clean-up').
|
80 |
+
|
81 |
+
'</p></div>';
|
82 |
|
83 |
if (array_key_exists('active', $_GET)) {
|
84 |
unset($_GET['activate']);
|