Version Description
- Bug Fix: Remove JavaScript error from window.btoa() in case the page contains non-latin characters
- Added "Get Help" page within the plugin's menu to anyone interested in hiring me or any of my colleagues for professional help related to the plugin or any other WordPress task
Download this release
Release Info
Developer | gabelivan |
Plugin | Asset CleanUp: Page Speed Booster |
Version | 1.2.5 |
Comparing to | |
See all releases |
Code changes from version 1.2.4.4 to 1.2.5
- assets/img/icon-clean-up.png +0 -0
- assets/img/icon-warning.png +0 -0
- assets/script.js +71 -54
- assets/script.min.js +1 -1
- assets/style.min.css +1 -1
- assets/style.scss +501 -0
- classes/AdvancedRules.php +22 -0
- classes/{GlobalRules.php → BulkUnloads.php} +22 -5
- classes/GetHelp.php +27 -0
- classes/Main.php +1 -0
- classes/Menu.php +25 -4
- classes/Misc.php +8 -0
- classes/OwnAssets.php +16 -1
- readme.txt +6 -2
- templates/get-help.php +28 -0
- templates/settings-advanced-rules.php +13 -0
- templates/{settings-globals.php → settings-bulk-unloads.php} +13 -7
- wpacu.php +31 -6
assets/img/icon-clean-up.png
DELETED
Binary file
|
assets/img/icon-warning.png
DELETED
Binary file
|
assets/script.js
CHANGED
@@ -31,60 +31,60 @@ jQuery(document).ready(function($) {
|
|
31 |
//$(this).closest('tr').addClass('wpacu_not_load');
|
32 |
|
33 |
/*
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
} else {
|
41 |
$(this).parent('label').removeClass('wpacu_global_checked');
|
42 |
//$(this).closest('tr').removeClass('wpacu_not_load');
|
43 |
|
44 |
/*
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
|
52 |
/*
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
}
|
60 |
});
|
61 |
|
62 |
/*
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
|
89 |
$('.wpacu_post_type_unload').click(function() {
|
90 |
if ($(this).prop('checked')) {
|
@@ -96,21 +96,35 @@ jQuery(document).ready(function($) {
|
|
96 |
|
97 |
// Load it checkbox
|
98 |
$('.wpacu_load_it_option').click(function() {
|
|
|
|
|
99 |
/*
|
100 |
-
|
101 |
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
|
109 |
if ($(this).prop('checked')) {
|
110 |
$(this).parent('label').addClass('wpacu_global_unload_exception');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
//$(this).closest('tr').removeClass('wpacu_not_load');
|
112 |
-
|
113 |
-
|
114 |
//$(this).closest('tr').addClass('wpacu_not_load');
|
115 |
} else {
|
116 |
$(this).parent('label').removeClass('wpacu_global_unload_exception');
|
@@ -170,7 +184,10 @@ jQuery(document).ready(function($) {
|
|
170 |
if ('btoa' in window) {
|
171 |
// Non-Latin Characters get stripped
|
172 |
// We only need the content related to the assets
|
173 |
-
|
|
|
|
|
|
|
174 |
}
|
175 |
|
176 |
//console.log(data);
|
@@ -210,4 +227,4 @@ jQuery(document).ready(function($) {
|
|
210 |
WpAssetCleanUp.load();
|
211 |
});
|
212 |
}
|
213 |
-
});
|
31 |
//$(this).closest('tr').addClass('wpacu_not_load');
|
32 |
|
33 |
/*
|
34 |
+
if ($(this).hasClass('wpacu_global_style')) {
|
35 |
+
$('#style_' + handle).iCheck('check').iCheck('disable');
|
36 |
+
} else if($(this).hasClass('wpacu_global_script')) {
|
37 |
+
$('#script_' + handle).iCheck('check').iCheck('disable');
|
38 |
+
}
|
39 |
+
*/
|
40 |
} else {
|
41 |
$(this).parent('label').removeClass('wpacu_global_checked');
|
42 |
//$(this).closest('tr').removeClass('wpacu_not_load');
|
43 |
|
44 |
/*
|
45 |
+
if ($(this).hasClass('wpacu_global_style')) {
|
46 |
+
$('#style_' + handle).iCheck('uncheck').iCheck('enable');
|
47 |
+
} else if($(this).hasClass('wpacu_global_script')) {
|
48 |
+
$('#script_' + handle).iCheck('uncheck').iCheck('enable');
|
49 |
+
}
|
50 |
+
*/
|
51 |
|
52 |
/*
|
53 |
+
// Un-check make exception as it is not relevant
|
54 |
+
// if unload everywhere is selected
|
55 |
+
$('#wpacu_style_load_it_' + handle)
|
56 |
+
.prop('checked', false)
|
57 |
+
.parent('label').removeClass('wpacu_global_unload_exception');
|
58 |
+
*/
|
59 |
}
|
60 |
});
|
61 |
|
62 |
/*
|
63 |
+
// Asset Global Options
|
64 |
+
$('.wpacu_global_option').click(function() {
|
65 |
+
var handle = $(this).attr('data-handle'), handleType;
|
66 |
+
|
67 |
+
if ($(this).hasClass('wpacu_style')) {
|
68 |
+
handleType = 'style';
|
69 |
+
} else if ($(this).hasClass('wpacu_script')) {
|
70 |
+
handleType = 'script';
|
71 |
+
}
|
72 |
+
|
73 |
+
if ($(this).val() == 'remove') {
|
74 |
+
$(this).closest('tr').removeClass('wpacu_not_load');
|
75 |
+
$('#wpacu_load_it_option_'+ handleType +'_'+ handle).hide();
|
76 |
+
}
|
77 |
+
|
78 |
+
if ($(this).val() == 'default'
|
79 |
+
&& !$('#wpacu_'+ handleType +'_load_it_'+ handle).prop('checked')) {
|
80 |
+
$(this).closest('tr').addClass('wpacu_not_load');
|
81 |
+
}
|
82 |
+
|
83 |
+
if ($(this).val() == 'default') {
|
84 |
+
$('#wpacu_load_it_option_'+ handleType + '_' + handle).show();
|
85 |
+
}
|
86 |
+
});
|
87 |
+
*/
|
88 |
|
89 |
$('.wpacu_post_type_unload').click(function() {
|
90 |
if ($(this).prop('checked')) {
|
96 |
|
97 |
// Load it checkbox
|
98 |
$('.wpacu_load_it_option').click(function() {
|
99 |
+
var handle = $(this).attr('data-handle');
|
100 |
+
|
101 |
/*
|
102 |
+
var handle = $(this).attr('data-handle'), wpacu_input_name;
|
103 |
|
104 |
+
if ($(this).hasClass('wpacu_style')) {
|
105 |
+
wpacu_input_name = 'wpacu_options_styles['+ handle +']';
|
106 |
+
} else if ($(this).hasClass('wpacu_script')) {
|
107 |
+
wpacu_input_name = 'wpacu_options_scripts['+ handle +']';
|
108 |
+
}
|
109 |
+
*/
|
110 |
|
111 |
if ($(this).prop('checked')) {
|
112 |
$(this).parent('label').addClass('wpacu_global_unload_exception');
|
113 |
+
|
114 |
+
// Uncheck "Unload on this page" as it's not relevant anymore
|
115 |
+
var asset_type = '';
|
116 |
+
|
117 |
+
if ($(this).hasClass('wpacu_style')) {
|
118 |
+
asset_type = 'style';
|
119 |
+
} else if ($(this).hasClass('wpacu_script')) {
|
120 |
+
asset_type = 'script';
|
121 |
+
}
|
122 |
+
|
123 |
+
$('#' + asset_type + '_' + handle).iCheck('uncheck');
|
124 |
+
|
125 |
//$(this).closest('tr').removeClass('wpacu_not_load');
|
126 |
+
///} else if ($('input[name="'+ wpacu_input_name +'"]:checked').val() == 'default') {
|
127 |
+
// $(this).parent('label').removeClass('wpacu_global_unload_exception');
|
128 |
//$(this).closest('tr').addClass('wpacu_not_load');
|
129 |
} else {
|
130 |
$(this).parent('label').removeClass('wpacu_global_unload_exception');
|
184 |
if ('btoa' in window) {
|
185 |
// Non-Latin Characters get stripped
|
186 |
// We only need the content related to the assets
|
187 |
+
contents = contents.replace(/[\u0250-\ue007]/g, '');
|
188 |
+
contents = contents.replace(/[^\x00-\x7F]/g, '');
|
189 |
+
|
190 |
+
data.contents = window.btoa(contents);
|
191 |
}
|
192 |
|
193 |
//console.log(data);
|
227 |
WpAssetCleanUp.load();
|
228 |
});
|
229 |
}
|
230 |
+
});
|
assets/script.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(document).ready(function(a){var b={load:function(){var b,c=".icheckbox_square-red";a(c).iCheck({checkboxClass:"icheckbox_square-red"}),a(c).on("ifChecked",function(b){a(b.target).closest("tr").addClass("wpacu_not_load")}),a(c).on("ifUnchecked",function(b){a(b.target).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_post_type_unload").click(function(){a(this).prop("checked")?a(this).parent("label").addClass("wpacu_post_type_unload_active"):a(this).parent("label").removeClass("wpacu_post_type_unload_active")}),a(".wpacu_load_it_option").click(function(){a(this).prop("checked")
|
1 |
+
jQuery(document).ready(function(a){var b={load:function(){var b,c=".icheckbox_square-red";a(c).iCheck({checkboxClass:"icheckbox_square-red"}),a(c).on("ifChecked",function(b){a(b.target).closest("tr").addClass("wpacu_not_load")}),a(c).on("ifUnchecked",function(b){a(b.target).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_post_type_unload").click(function(){a(this).prop("checked")?a(this).parent("label").addClass("wpacu_post_type_unload_active"):a(this).parent("label").removeClass("wpacu_post_type_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).iCheck("uncheck")}else a(this).parent("label").removeClass("wpacu_global_unload_exception")})}};if(a("#wpacu_post_type_select").change(function(){a("#wpacu_post_type_form").submit()}),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_wrap_assets").length>0&&b.load(),"undefined"==typeof wpacu_object||a("#wpacu_meta_box_content").length<1)return!1;var c={};"direct"===wpacu_object.dom_get_type?(c[wpacu_object.plugin_name+"_load"]=1,a.post(wpacu_object.post_url,c,function(c){var d=c.substring(c.lastIndexOf(wpacu_object.start_del)+wpacu_object.start_del.length,c.lastIndexOf(wpacu_object.end_del)),e={action:wpacu_object.plugin_name+"_get_loaded_assets",wpacu_list:d,post_id:wpacu_object.post_id,post_url:wpacu_object.post_url};"btoa"in window&&(c=c.replace(/[\u0250-\ue007]/g,""),c=c.replace(/[^\x00-\x7F]/g,""),e.contents=window.btoa(c)),a.post(wpacu_object.ajax_url,e,function(c){return!!c&&(a("#wpacu_meta_box_content").html(c),a("#wpacu_home_page_form").length>0&&a("#submit").show(),void b.load())})})):"wp_remote_post"===wpacu_object.dom_get_type&&(c={action:wpacu_object.plugin_name+"_get_loaded_assets",post_id:wpacu_object.post_id,post_url:wpacu_object.post_url},a.post(wpacu_object.ajax_url,c,function(c){return!!c&&(a("#wpacu_meta_box_content").html(c),a("#wpacu_home_page_form").length>0&&a("#submit").show(),void b.load())}))});
|
assets/style.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.widefat .check-column.wpacu_check,body.toplevel_page_wpassetcleanup_settings .notice{padding:10px}tr.wpacu_not_load td,tr.wpacu_not_load th{background:#FFE1E1}#wpacu_meta_box_content{width:99%}#wpacu_meta_box_content h3{margin-left:0;padding-left:0}#wpacu_meta_box_content div.wpacu_note,#wpacu_wrap_assets div.wpacu_note{padding:10px;background-color:#f5f5f5}#wpacu_meta_box_content .dashicons.dashicons-warning{color:red}#wpacu_meta_box_content div.wpacu_warning,#wpacu_wrap_assets div.wpacu_warning{border:1px solid #c00}#wpacu_meta_box_content div.wpacu_verified{padding:10px;background-color:#f5f5f5;border-left:1px solid #ddd}#wpacu_meta_box_content div.wpacu_verified span{color:#0073aa;font-weight:700}#wpacu_meta_box_content ul.wpacu_asset_options{margin:0;padding:0}#wpacu_meta_box_content ul.wpacu_asset_options li{list-style:none;display:inline-block}#wpacu_wrap_assets img,.wpacu_asset_row td label{display:inline-block!important}#wpacu_meta_box_content ul.wpacu_asset_options label{margin-right:20px;font-weight:400}#wpacu_wrap_assets{color:#000!important;text-align:left;clear:both;width:90%;padding:20px;margin:30px 0 0 15px;border:1px solid #cdcdcd;z-index:10000!important;position:relative;background-color:#fff}#wpacu_wrap_assets p{margin:10px 0;line-height:22px;text-align:left}#wpacu_wrap_assets h1{margin:0 0 20px;font-size:160%;text-align:left}#wpacu_wrap_assets h3{margin:20px 0;font-size:130%}.wpacu_verified{margin:0 0 10px}.wpacu_asset_row td{padding:10px}.wpacu_asset_row td p{margin-bottom:10px;word-wrap:break-word}.wpacu_asset_row td label{cursor:pointer!important;font-size:100%;font-weight:400}.wpacu_asset_row td label span{font-size:100%!important}.wpacu_asset_row td.wpacu_check{width:50px}body.wp-admin .wpacu_asset_row td.wpacu_check{width:25px}label.wpacu_add_global{cursor:pointer}label.wpacu_global_checked{font-weight:700;color:#d54e21}label.wpacu_global_unload_exception{font-weight:700!important}label.wpacu_post_type_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;padding:0}ul.wpacu_asset_options li{list-style:none;display:inline-block}ul.wpacu_asset_options label{margin-right:20px;font-weight:400}ul.wpacu_asset_options label input{margin-right:4px}.wp-asset-clean-up.widefat{width:99%}.wpacu_widefat,.wpacu_widefat td{border:1px solid #e5e5e5!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_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}
|
1 |
+
.widefat .check-column.wpacu_check,body.toplevel_page_wpassetcleanup_settings .notice{padding:10px}tr.wpacu_not_load td,tr.wpacu_not_load th{background:#FFE1E1}#wpacu_meta_box_content{width:99%}#wpacu_meta_box_content h3{margin-left:0;padding-left:0}#wpacu_meta_box_content div.wpacu_note,#wpacu_wrap_assets div.wpacu_note{padding:10px;background-color:#f5f5f5}#wpacu_meta_box_content .dashicons.dashicons-warning{color:red}#wpacu_meta_box_content div.wpacu_warning,#wpacu_wrap_assets div.wpacu_warning{border:1px solid #c00}#wpacu_meta_box_content div.wpacu_verified{padding:10px;background-color:#f5f5f5;border-left:1px solid #ddd}#wpacu_meta_box_content div.wpacu_verified span{color:#0073aa;font-weight:700}#wpacu_meta_box_content ul.wpacu_asset_options{margin:0;padding:0}#wpacu_meta_box_content ul.wpacu_asset_options li{list-style:none;display:inline-block}#wpacu_wrap_assets img,.wpacu_asset_row td label{display:inline-block!important}#wpacu_meta_box_content ul.wpacu_asset_options label{margin-right:20px;font-weight:400}#wpacu_wrap_assets{color:#000!important;text-align:left;clear:both;width:90%;padding:20px;margin:30px 0 0 15px;border:1px solid #cdcdcd;z-index:10000!important;position:relative;background-color:#fff}#wpacu_wrap_assets p{margin:10px 0;line-height:22px;text-align:left}#wpacu_wrap_assets h1{margin:0 0 20px;font-size:160%;text-align:left}#wpacu_wrap_assets h3{margin:20px 0;font-size:130%}.wpacu_verified{margin:0 0 10px}.wpacu_asset_row td{padding:10px}.wpacu_asset_row td p{margin-bottom:10px;word-wrap:break-word}.wpacu_asset_row td label{cursor:pointer!important;font-size:100%;font-weight:400}.wpacu_asset_row td label span{font-size:100%!important}.wpacu_asset_row td.wpacu_check{width:50px}body.wp-admin .wpacu_asset_row td.wpacu_check{width:25px}label.wpacu_add_global{cursor:pointer}label.wpacu_global_checked{font-weight:700;color:#d54e21}label.wpacu_global_unload_exception{font-weight:700!important}label.wpacu_post_type_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;padding:0}ul.wpacu_asset_options li{list-style:none;display:inline-block}ul.wpacu_asset_options label{margin-right:20px;font-weight:400}ul.wpacu_asset_options label input{margin-right:4px}.wp-asset-clean-up.widefat{width:99%}.wpacu_widefat,.wpacu_widefat td{border:1px solid #e5e5e5!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:hover{background:-webkit-gradient(linear,left top,left bottom,color-stop(.05,#0061a7),color-stop(1,#007dc1))!important;background:-moz-linear-gradient(top,#0061a7 5%,#007dc1 100%)!important;background:-webkit-linear-gradient(top,#0061a7 5%,#007dc1 100%)!important;background:-o-linear-gradient(top,#0061a7 5%,#007dc1 100%)!important;background:-ms-linear-gradient(top,#0061a7 5%,#007dc1 100%)!important;background:linear-gradient(to bottom,#0061a7 5%,#007dc1 100%)!important;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#0061a7', endColorstr='#007dc1', GradientType=0)!important;background-color:#0061a7!important}.wpacu_update_btn:active{position:relative!important;top:1px!important}ul.hire-reasons{margin-bottom:20px}ul.hire-reasons li{font-size:14px;line-height:22px;margin-bottom:12px}ul.hire-reasons li .dashicons{font-size:23px;line-height:23px}ul.hire-reasons li .dashicons.dashicons-yes{color:green}.wpacu-get-help-wrap p{font-size:14px}.wpacu-btns .btn{display:inline-block;font-weight:400;line-height:1.25;text-align:center;white-space:nowrap;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:1px solid transparent;padding:.5rem 1rem;font-size:1rem;border-radius:.25rem;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.wpacu-btns .btn.focus,.wpacu-btns .btn:focus{outline:0;-webkit-box-shadow:0 0 0 2px rgba(2,117,216,.25);box-shadow:0 0 0 2px rgba(2,117,216,.25)}.wpacu-btns .btn.disabled,.wpacu-btns .btn:disabled{cursor:not-allowed;opacity:.65}.wpacu-btns .btn.active,.wpacu-btns .btn:active{background-image:none}.wpacu-btns a.btn.disabled,.wpacu-btns fieldset[disabled] a.btn{pointer-events:none}.wpacu-btns .btn-primary{color:#fff;background-color:#0275d8;border-color:#0275d8}.wpacu-btns .btn-primary:hover{color:#fff;background-color:#025aa5;border-color:#01549b}.wpacu-btns .btn-primary.focus,.wpacu-btns .btn-primary:focus{-webkit-box-shadow:0 0 0 2px rgba(2,117,216,.5);box-shadow:0 0 0 2px rgba(2,117,216,.5)}.wpacu-btns .btn-primary.disabled,.wpacu-btns .btn-primary:disabled{background-color:#0275d8;border-color:#0275d8}.wpacu-btns .btn-primary.active,.wpacu-btns .btn-primary:active,.wpacu-btns .show>.btn-primary.dropdown-toggle{color:#fff;background-color:#025aa5;background-image:none;border-color:#01549b}.wpacu-btns .btn-secondary{color:#292b2c;background-color:#fff;border-color:#ccc}.wpacu-btns .btn-secondary:hover{color:#292b2c;background-color:#e6e6e6;border-color:#adadad}.wpacu-btns .btn-secondary.focus,.wpacu-btns .btn-secondary:focus{-webkit-box-shadow:0 0 0 2px rgba(204,204,204,.5);box-shadow:0 0 0 2px rgba(204,204,204,.5)}.wpacu-btns .btn-secondary.disabled,.wpacu-btns .btn-secondary:disabled{background-color:#fff;border-color:#ccc}.wpacu-btns .btn-secondary.active,.wpacu-btns .btn-secondary:active,.wpacu-btns .show>.btn-secondary.dropdown-toggle{color:#292b2c;background-color:#e6e6e6;background-image:none;border-color:#adadad}.wpacu-btns .btn-info{color:#fff;background-color:#5bc0de;border-color:#5bc0de}.wpacu-btns .btn-info:hover{color:#fff;background-color:#31b0d5;border-color:#2aabd2}.wpacu-btns .btn-info.focus,.wpacu-btns .btn-info:focus{-webkit-box-shadow:0 0 0 2px rgba(91,192,222,.5);box-shadow:0 0 0 2px rgba(91,192,222,.5)}.wpacu-btns .btn-info.disabled,.wpacu-btns .btn-info:disabled{background-color:#5bc0de;border-color:#5bc0de}.wpacu-btns .btn-info.active,.wpacu-btns .btn-info:active,.wpacu-btns .show>.btn-info.dropdown-toggle{color:#fff;background-color:#31b0d5;background-image:none;border-color:#2aabd2}.wpacu-btns .btn-success{color:#fff;background-color:#5cb85c;border-color:#5cb85c}.wpacu-btns .btn-success:hover{color:#fff;background-color:#449d44;border-color:#419641}.wpacu-btns .btn-success.focus,.wpacu-btns .btn-success:focus{-webkit-box-shadow:0 0 0 2px rgba(92,184,92,.5);box-shadow:0 0 0 2px rgba(92,184,92,.5)}.wpacu-btns .btn-success.disabled,.wpacu-btns .btn-success:disabled{background-color:#5cb85c;border-color:#5cb85c}.wpacu-btns .btn-success.active,.wpacu-btns .btn-success:active,.wpacu-btns .show>.btn-success.dropdown-toggle{color:#fff;background-color:#449d44;background-image:none;border-color:#419641}.wpacu-btns .btn-warning{color:#fff;background-color:#f0ad4e;border-color:#f0ad4e}.wpacu-btns .btn-warning:hover{color:#fff;background-color:#ec971f;border-color:#eb9316}.wpacu-btns .btn-warning.focus,.wpacu-btns .btn-warning:focus{-webkit-box-shadow:0 0 0 2px rgba(240,173,78,.5);box-shadow:0 0 0 2px rgba(240,173,78,.5)}.wpacu-btns .btn-warning.disabled,.wpacu-btns .btn-warning:disabled{background-color:#f0ad4e;border-color:#f0ad4e}.wpacu-btns .btn-warning.active,.wpacu-btns .btn-warning:active,.wpacu-btns .show>.btn-warning.dropdown-toggle{color:#fff;background-color:#ec971f;background-image:none;border-color:#eb9316}.wpacu-btns .btn-danger{color:#fff;background-color:#d9534f;border-color:#d9534f}.wpacu-btns .btn-danger:hover{color:#fff;background-color:#c9302c;border-color:#c12e2a}.wpacu-btns .btn-danger.focus,.wpacu-btns .btn-danger:focus{-webkit-box-shadow:0 0 0 2px rgba(217,83,79,.5);box-shadow:0 0 0 2px rgba(217,83,79,.5)}.wpacu-btns .btn-danger.disabled,.wpacu-btns .btn-danger:disabled{background-color:#d9534f;border-color:#d9534f}.wpacu-btns .btn-danger.active,.wpacu-btns .btn-danger:active,.wpacu-btns .show>.btn-danger.dropdown-toggle{color:#fff;background-color:#c9302c;background-image:none;border-color:#c12e2a}.wpacu-btns .btn-outline-primary{color:#0275d8;background-image:none;background-color:transparent;border-color:#0275d8}.wpacu-btns .btn-outline-primary:hover{color:#fff;background-color:#0275d8;border-color:#0275d8}.wpacu-btns .btn-outline-primary.focus,.wpacu-btns .btn-outline-primary:focus{-webkit-box-shadow:0 0 0 2px rgba(2,117,216,.5);box-shadow:0 0 0 2px rgba(2,117,216,.5)}.wpacu-btns .btn-outline-primary.disabled,.wpacu-btns .btn-outline-primary:disabled{color:#0275d8;background-color:transparent}.wpacu-btns .btn-outline-primary.active,.wpacu-btns .btn-outline-primary:active,.wpacu-btns .show>.btn-outline-primary.dropdown-toggle{color:#fff;background-color:#0275d8;border-color:#0275d8}.wpacu-btns .btn-outline-secondary{color:#ccc;background-image:none;background-color:transparent;border-color:#ccc}.wpacu-btns .btn-outline-secondary:hover{color:#fff;background-color:#ccc;border-color:#ccc}.wpacu-btns .btn-outline-secondary.focus,.wpacu-btns .btn-outline-secondary:focus{-webkit-box-shadow:0 0 0 2px rgba(204,204,204,.5);box-shadow:0 0 0 2px rgba(204,204,204,.5)}.wpacu-btns .btn-outline-secondary.disabled,.wpacu-btns .btn-outline-secondary:disabled{color:#ccc;background-color:transparent}.wpacu-btns .btn-outline-secondary.active,.wpacu-btns .btn-outline-secondary:active,.wpacu-btns .show>.btn-outline-secondary.dropdown-toggle{color:#fff;background-color:#ccc;border-color:#ccc}.wpacu-btns .btn-outline-info{color:#5bc0de;background-image:none;background-color:transparent;border-color:#5bc0de}.wpacu-btns .btn-outline-info:hover{color:#fff;background-color:#5bc0de;border-color:#5bc0de}.wpacu-btns .btn-outline-info.focus,.wpacu-btns .btn-outline-info:focus{-webkit-box-shadow:0 0 0 2px rgba(91,192,222,.5);box-shadow:0 0 0 2px rgba(91,192,222,.5)}.wpacu-btns .btn-outline-info.disabled,.wpacu-btns .btn-outline-info:disabled{color:#5bc0de;background-color:transparent}.wpacu-btns .btn-outline-info.active,.wpacu-btns .btn-outline-info:active,.wpacu-btns .show>.btn-outline-info.dropdown-toggle{color:#fff;background-color:#5bc0de;border-color:#5bc0de}.wpacu-btns .btn-outline-success{color:#5cb85c;background-image:none;background-color:transparent;border-color:#5cb85c}.wpacu-btns .btn-outline-success:hover{color:#fff;background-color:#5cb85c;border-color:#5cb85c}.wpacu-btns .btn-outline-success.focus,.wpacu-btns .btn-outline-success:focus{-webkit-box-shadow:0 0 0 2px rgba(92,184,92,.5);box-shadow:0 0 0 2px rgba(92,184,92,.5)}.wpacu-btns .btn-outline-success.disabled,.wpacu-btns .btn-outline-success:disabled{color:#5cb85c;background-color:transparent}.wpacu-btns .btn-outline-success.active,.wpacu-btns .btn-outline-success:active,.wpacu-btns .show>.btn-outline-success.dropdown-toggle{color:#fff;background-color:#5cb85c;border-color:#5cb85c}.wpacu-btns .btn-outline-warning{color:#f0ad4e;background-image:none;background-color:transparent;border-color:#f0ad4e}.wpacu-btns .btn-outline-warning:hover{color:#fff;background-color:#f0ad4e;border-color:#f0ad4e}.wpacu-btns .btn-outline-warning.focus,.wpacu-btns .btn-outline-warning:focus{-webkit-box-shadow:0 0 0 2px rgba(240,173,78,.5);box-shadow:0 0 0 2px rgba(240,173,78,.5)}.wpacu-btns .btn-outline-warning.disabled,.wpacu-btns .btn-outline-warning:disabled{color:#f0ad4e;background-color:transparent}.wpacu-btns .btn-outline-warning.active,.wpacu-btns .btn-outline-warning:active,.wpacu-btns .show>.btn-outline-warning.dropdown-toggle{color:#fff;background-color:#f0ad4e;border-color:#f0ad4e}.wpacu-btns .btn-outline-danger{color:#d9534f;background-image:none;background-color:transparent;border-color:#d9534f}.wpacu-btns .btn-outline-danger:hover{color:#fff;background-color:#d9534f;border-color:#d9534f}.wpacu-btns .btn-outline-danger.focus,.wpacu-btns .btn-outline-danger:focus{-webkit-box-shadow:0 0 0 2px rgba(217,83,79,.5);box-shadow:0 0 0 2px rgba(217,83,79,.5)}.wpacu-btns .btn-outline-danger.disabled,.wpacu-btns .btn-outline-danger:disabled{color:#d9534f;background-color:transparent}.wpacu-btns .btn-outline-danger.active,.wpacu-btns .btn-outline-danger:active,.wpacu-btns .show>.btn-outline-danger.dropdown-toggle{color:#fff;background-color:#d9534f;border-color:#d9534f}.wpacu-btns .btn-link{font-weight:400;color:#0275d8;border-radius:0}.wpacu-btns .btn-link,.wpacu-btns .btn-link.active,.wpacu-btns .btn-link:active,.wpacu-btns .btn-link:disabled{background-color:transparent}.wpacu-btns .btn-link,.wpacu-btns .btn-link:active,.wpacu-btns .btn-link:focus,.wpacu-btns .btn-link:hover{border-color:transparent}.wpacu-btns .btn-link:focus,.wpacu-btns .btn-link:hover{color:#014c8c;text-decoration:underline;background-color:transparent}.wpacu-btns .btn-link:disabled{color:#636c72}.wpacu-btns .btn-link:disabled:focus,.wpacu-btns .btn-link:disabled:hover{text-decoration:none}.wpacu-btns .btn-group-lg>.btn,.wpacu-btns .btn-lg{padding:.75rem 1.5rem;font-size:1.25rem;border-radius:.3rem}.wpacu-btns .btn-group-sm>.btn,.wpacu-btns .btn-sm{padding:.25rem .5rem;font-size:.875rem;border-radius:.2rem}.wpacu-btns .btn-block{display:block;width:100%}.wpacu-btns .btn-block+.btn-block{margin-top:.5rem}.wpacu-btns input[type=submit].btn-block,.wpacu-btns input[type=reset].btn-block,.wpacu-btns input[type=button].btn-block{width:100%}.wpacu-btns .fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}
|
assets/style.scss
CHANGED
@@ -228,4 +228,505 @@ ul.wpacu_asset_options {
|
|
228 |
position: relative !important;
|
229 |
top: 1px !important;
|
230 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
231 |
}
|
228 |
position: relative !important;
|
229 |
top: 1px !important;
|
230 |
}
|
231 |
+
}
|
232 |
+
|
233 |
+
ul.hire-reasons {
|
234 |
+
margin-bottom: 20px;
|
235 |
+
|
236 |
+
li {
|
237 |
+
font-size: 14px;
|
238 |
+
line-height: 22px;
|
239 |
+
margin-bottom: 12px;
|
240 |
+
|
241 |
+
.dashicons {
|
242 |
+
font-size: 23px;
|
243 |
+
line-height: 23px;
|
244 |
+
|
245 |
+
&.dashicons-yes {
|
246 |
+
color: green;
|
247 |
+
}
|
248 |
+
}
|
249 |
+
}
|
250 |
+
}
|
251 |
+
|
252 |
+
.wpacu-get-help-wrap {
|
253 |
+
p {
|
254 |
+
font-size: 14px;
|
255 |
+
}
|
256 |
+
}
|
257 |
+
|
258 |
+
.wpacu-btns {
|
259 |
+
a {
|
260 |
+
text-decoration: none;
|
261 |
+
}
|
262 |
+
|
263 |
+
.btn {
|
264 |
+
display: inline-block;
|
265 |
+
font-weight: normal;
|
266 |
+
line-height: 1.25;
|
267 |
+
text-align: center;
|
268 |
+
white-space: nowrap;
|
269 |
+
vertical-align: middle;
|
270 |
+
-webkit-user-select: none;
|
271 |
+
-moz-user-select: none;
|
272 |
+
-ms-user-select: none;
|
273 |
+
user-select: none;
|
274 |
+
border: 1px solid transparent;
|
275 |
+
padding: 0.5rem 1rem;
|
276 |
+
font-size: 1rem;
|
277 |
+
border-radius: 0.25rem;
|
278 |
+
-webkit-transition: all 0.2s ease-in-out;
|
279 |
+
-o-transition: all 0.2s ease-in-out;
|
280 |
+
transition: all 0.2s ease-in-out;
|
281 |
+
}
|
282 |
+
|
283 |
+
.btn:focus, .btn:hover {
|
284 |
+
text-decoration: none;
|
285 |
+
}
|
286 |
+
|
287 |
+
.btn:focus, .btn.focus {
|
288 |
+
outline: 0;
|
289 |
+
-webkit-box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.25);
|
290 |
+
box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.25);
|
291 |
+
}
|
292 |
+
|
293 |
+
.btn.disabled, .btn:disabled {
|
294 |
+
cursor: not-allowed;
|
295 |
+
opacity: .65;
|
296 |
+
}
|
297 |
+
|
298 |
+
.btn:active, .btn.active {
|
299 |
+
background-image: none;
|
300 |
+
}
|
301 |
+
|
302 |
+
a.btn.disabled,
|
303 |
+
fieldset[disabled] a.btn {
|
304 |
+
pointer-events: none;
|
305 |
+
}
|
306 |
+
|
307 |
+
.btn-primary {
|
308 |
+
color: #fff;
|
309 |
+
background-color: #0275d8;
|
310 |
+
border-color: #0275d8;
|
311 |
+
}
|
312 |
+
|
313 |
+
.btn-primary:hover {
|
314 |
+
color: #fff;
|
315 |
+
background-color: #025aa5;
|
316 |
+
border-color: #01549b;
|
317 |
+
}
|
318 |
+
|
319 |
+
.btn-primary:focus, .btn-primary.focus {
|
320 |
+
-webkit-box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.5);
|
321 |
+
box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.5);
|
322 |
+
}
|
323 |
+
|
324 |
+
.btn-primary.disabled, .btn-primary:disabled {
|
325 |
+
background-color: #0275d8;
|
326 |
+
border-color: #0275d8;
|
327 |
+
}
|
328 |
+
|
329 |
+
.btn-primary:active, .btn-primary.active,
|
330 |
+
.show > .btn-primary.dropdown-toggle {
|
331 |
+
color: #fff;
|
332 |
+
background-color: #025aa5;
|
333 |
+
background-image: none;
|
334 |
+
border-color: #01549b;
|
335 |
+
}
|
336 |
+
|
337 |
+
.btn-secondary {
|
338 |
+
color: #292b2c;
|
339 |
+
background-color: #fff;
|
340 |
+
border-color: #ccc;
|
341 |
+
}
|
342 |
+
|
343 |
+
.btn-secondary:hover {
|
344 |
+
color: #292b2c;
|
345 |
+
background-color: #e6e6e6;
|
346 |
+
border-color: #adadad;
|
347 |
+
}
|
348 |
+
|
349 |
+
.btn-secondary:focus, .btn-secondary.focus {
|
350 |
+
-webkit-box-shadow: 0 0 0 2px rgba(204, 204, 204, 0.5);
|
351 |
+
box-shadow: 0 0 0 2px rgba(204, 204, 204, 0.5);
|
352 |
+
}
|
353 |
+
|
354 |
+
.btn-secondary.disabled, .btn-secondary:disabled {
|
355 |
+
background-color: #fff;
|
356 |
+
border-color: #ccc;
|
357 |
+
}
|
358 |
+
|
359 |
+
.btn-secondary:active, .btn-secondary.active,
|
360 |
+
.show > .btn-secondary.dropdown-toggle {
|
361 |
+
color: #292b2c;
|
362 |
+
background-color: #e6e6e6;
|
363 |
+
background-image: none;
|
364 |
+
border-color: #adadad;
|
365 |
+
}
|
366 |
+
|
367 |
+
.btn-info {
|
368 |
+
color: #fff;
|
369 |
+
background-color: #5bc0de;
|
370 |
+
border-color: #5bc0de;
|
371 |
+
}
|
372 |
+
|
373 |
+
.btn-info:hover {
|
374 |
+
color: #fff;
|
375 |
+
background-color: #31b0d5;
|
376 |
+
border-color: #2aabd2;
|
377 |
+
}
|
378 |
+
|
379 |
+
.btn-info:focus, .btn-info.focus {
|
380 |
+
-webkit-box-shadow: 0 0 0 2px rgba(91, 192, 222, 0.5);
|
381 |
+
box-shadow: 0 0 0 2px rgba(91, 192, 222, 0.5);
|
382 |
+
}
|
383 |
+
|
384 |
+
.btn-info.disabled, .btn-info:disabled {
|
385 |
+
background-color: #5bc0de;
|
386 |
+
border-color: #5bc0de;
|
387 |
+
}
|
388 |
+
|
389 |
+
.btn-info:active, .btn-info.active,
|
390 |
+
.show > .btn-info.dropdown-toggle {
|
391 |
+
color: #fff;
|
392 |
+
background-color: #31b0d5;
|
393 |
+
background-image: none;
|
394 |
+
border-color: #2aabd2;
|
395 |
+
}
|
396 |
+
|
397 |
+
.btn-success {
|
398 |
+
color: #fff;
|
399 |
+
background-color: #5cb85c;
|
400 |
+
border-color: #5cb85c;
|
401 |
+
}
|
402 |
+
|
403 |
+
.btn-success:hover {
|
404 |
+
color: #fff;
|
405 |
+
background-color: #449d44;
|
406 |
+
border-color: #419641;
|
407 |
+
}
|
408 |
+
|
409 |
+
.btn-success:focus, .btn-success.focus {
|
410 |
+
-webkit-box-shadow: 0 0 0 2px rgba(92, 184, 92, 0.5);
|
411 |
+
box-shadow: 0 0 0 2px rgba(92, 184, 92, 0.5);
|
412 |
+
}
|
413 |
+
|
414 |
+
.btn-success.disabled, .btn-success:disabled {
|
415 |
+
background-color: #5cb85c;
|
416 |
+
border-color: #5cb85c;
|
417 |
+
}
|
418 |
+
|
419 |
+
.btn-success:active, .btn-success.active,
|
420 |
+
.show > .btn-success.dropdown-toggle {
|
421 |
+
color: #fff;
|
422 |
+
background-color: #449d44;
|
423 |
+
background-image: none;
|
424 |
+
border-color: #419641;
|
425 |
+
}
|
426 |
+
|
427 |
+
.btn-warning {
|
428 |
+
color: #fff;
|
429 |
+
background-color: #f0ad4e;
|
430 |
+
border-color: #f0ad4e;
|
431 |
+
}
|
432 |
+
|
433 |
+
.btn-warning:hover {
|
434 |
+
color: #fff;
|
435 |
+
background-color: #ec971f;
|
436 |
+
border-color: #eb9316;
|
437 |
+
}
|
438 |
+
|
439 |
+
.btn-warning:focus, .btn-warning.focus {
|
440 |
+
-webkit-box-shadow: 0 0 0 2px rgba(240, 173, 78, 0.5);
|
441 |
+
box-shadow: 0 0 0 2px rgba(240, 173, 78, 0.5);
|
442 |
+
}
|
443 |
+
|
444 |
+
.btn-warning.disabled, .btn-warning:disabled {
|
445 |
+
background-color: #f0ad4e;
|
446 |
+
border-color: #f0ad4e;
|
447 |
+
}
|
448 |
+
|
449 |
+
.btn-warning:active, .btn-warning.active,
|
450 |
+
.show > .btn-warning.dropdown-toggle {
|
451 |
+
color: #fff;
|
452 |
+
background-color: #ec971f;
|
453 |
+
background-image: none;
|
454 |
+
border-color: #eb9316;
|
455 |
+
}
|
456 |
+
|
457 |
+
.btn-danger {
|
458 |
+
color: #fff;
|
459 |
+
background-color: #d9534f;
|
460 |
+
border-color: #d9534f;
|
461 |
+
}
|
462 |
+
|
463 |
+
.btn-danger:hover {
|
464 |
+
color: #fff;
|
465 |
+
background-color: #c9302c;
|
466 |
+
border-color: #c12e2a;
|
467 |
+
}
|
468 |
+
|
469 |
+
.btn-danger:focus, .btn-danger.focus {
|
470 |
+
-webkit-box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.5);
|
471 |
+
box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.5);
|
472 |
+
}
|
473 |
+
|
474 |
+
.btn-danger.disabled, .btn-danger:disabled {
|
475 |
+
background-color: #d9534f;
|
476 |
+
border-color: #d9534f;
|
477 |
+
}
|
478 |
+
|
479 |
+
.btn-danger:active, .btn-danger.active,
|
480 |
+
.show > .btn-danger.dropdown-toggle {
|
481 |
+
color: #fff;
|
482 |
+
background-color: #c9302c;
|
483 |
+
background-image: none;
|
484 |
+
border-color: #c12e2a;
|
485 |
+
}
|
486 |
+
|
487 |
+
.btn-outline-primary {
|
488 |
+
color: #0275d8;
|
489 |
+
background-image: none;
|
490 |
+
background-color: transparent;
|
491 |
+
border-color: #0275d8;
|
492 |
+
}
|
493 |
+
|
494 |
+
.btn-outline-primary:hover {
|
495 |
+
color: #fff;
|
496 |
+
background-color: #0275d8;
|
497 |
+
border-color: #0275d8;
|
498 |
+
}
|
499 |
+
|
500 |
+
.btn-outline-primary:focus, .btn-outline-primary.focus {
|
501 |
+
-webkit-box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.5);
|
502 |
+
box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.5);
|
503 |
+
}
|
504 |
+
|
505 |
+
.btn-outline-primary.disabled, .btn-outline-primary:disabled {
|
506 |
+
color: #0275d8;
|
507 |
+
background-color: transparent;
|
508 |
+
}
|
509 |
+
|
510 |
+
.btn-outline-primary:active, .btn-outline-primary.active,
|
511 |
+
.show > .btn-outline-primary.dropdown-toggle {
|
512 |
+
color: #fff;
|
513 |
+
background-color: #0275d8;
|
514 |
+
border-color: #0275d8;
|
515 |
+
}
|
516 |
+
|
517 |
+
.btn-outline-secondary {
|
518 |
+
color: #ccc;
|
519 |
+
background-image: none;
|
520 |
+
background-color: transparent;
|
521 |
+
border-color: #ccc;
|
522 |
+
}
|
523 |
+
|
524 |
+
.btn-outline-secondary:hover {
|
525 |
+
color: #fff;
|
526 |
+
background-color: #ccc;
|
527 |
+
border-color: #ccc;
|
528 |
+
}
|
529 |
+
|
530 |
+
.btn-outline-secondary:focus, .btn-outline-secondary.focus {
|
531 |
+
-webkit-box-shadow: 0 0 0 2px rgba(204, 204, 204, 0.5);
|
532 |
+
box-shadow: 0 0 0 2px rgba(204, 204, 204, 0.5);
|
533 |
+
}
|
534 |
+
|
535 |
+
.btn-outline-secondary.disabled, .btn-outline-secondary:disabled {
|
536 |
+
color: #ccc;
|
537 |
+
background-color: transparent;
|
538 |
+
}
|
539 |
+
|
540 |
+
.btn-outline-secondary:active, .btn-outline-secondary.active,
|
541 |
+
.show > .btn-outline-secondary.dropdown-toggle {
|
542 |
+
color: #fff;
|
543 |
+
background-color: #ccc;
|
544 |
+
border-color: #ccc;
|
545 |
+
}
|
546 |
+
|
547 |
+
.btn-outline-info {
|
548 |
+
color: #5bc0de;
|
549 |
+
background-image: none;
|
550 |
+
background-color: transparent;
|
551 |
+
border-color: #5bc0de;
|
552 |
+
}
|
553 |
+
|
554 |
+
.btn-outline-info:hover {
|
555 |
+
color: #fff;
|
556 |
+
background-color: #5bc0de;
|
557 |
+
border-color: #5bc0de;
|
558 |
+
}
|
559 |
+
|
560 |
+
.btn-outline-info:focus, .btn-outline-info.focus {
|
561 |
+
-webkit-box-shadow: 0 0 0 2px rgba(91, 192, 222, 0.5);
|
562 |
+
box-shadow: 0 0 0 2px rgba(91, 192, 222, 0.5);
|
563 |
+
}
|
564 |
+
|
565 |
+
.btn-outline-info.disabled, .btn-outline-info:disabled {
|
566 |
+
color: #5bc0de;
|
567 |
+
background-color: transparent;
|
568 |
+
}
|
569 |
+
|
570 |
+
.btn-outline-info:active, .btn-outline-info.active,
|
571 |
+
.show > .btn-outline-info.dropdown-toggle {
|
572 |
+
color: #fff;
|
573 |
+
background-color: #5bc0de;
|
574 |
+
border-color: #5bc0de;
|
575 |
+
}
|
576 |
+
|
577 |
+
.btn-outline-success {
|
578 |
+
color: #5cb85c;
|
579 |
+
background-image: none;
|
580 |
+
background-color: transparent;
|
581 |
+
border-color: #5cb85c;
|
582 |
+
}
|
583 |
+
|
584 |
+
.btn-outline-success:hover {
|
585 |
+
color: #fff;
|
586 |
+
background-color: #5cb85c;
|
587 |
+
border-color: #5cb85c;
|
588 |
+
}
|
589 |
+
|
590 |
+
.btn-outline-success:focus, .btn-outline-success.focus {
|
591 |
+
-webkit-box-shadow: 0 0 0 2px rgba(92, 184, 92, 0.5);
|
592 |
+
box-shadow: 0 0 0 2px rgba(92, 184, 92, 0.5);
|
593 |
+
}
|
594 |
+
|
595 |
+
.btn-outline-success.disabled, .btn-outline-success:disabled {
|
596 |
+
color: #5cb85c;
|
597 |
+
background-color: transparent;
|
598 |
+
}
|
599 |
+
|
600 |
+
.btn-outline-success:active, .btn-outline-success.active,
|
601 |
+
.show > .btn-outline-success.dropdown-toggle {
|
602 |
+
color: #fff;
|
603 |
+
background-color: #5cb85c;
|
604 |
+
border-color: #5cb85c;
|
605 |
+
}
|
606 |
+
|
607 |
+
.btn-outline-warning {
|
608 |
+
color: #f0ad4e;
|
609 |
+
background-image: none;
|
610 |
+
background-color: transparent;
|
611 |
+
border-color: #f0ad4e;
|
612 |
+
}
|
613 |
+
|
614 |
+
.btn-outline-warning:hover {
|
615 |
+
color: #fff;
|
616 |
+
background-color: #f0ad4e;
|
617 |
+
border-color: #f0ad4e;
|
618 |
+
}
|
619 |
+
|
620 |
+
.btn-outline-warning:focus, .btn-outline-warning.focus {
|
621 |
+
-webkit-box-shadow: 0 0 0 2px rgba(240, 173, 78, 0.5);
|
622 |
+
box-shadow: 0 0 0 2px rgba(240, 173, 78, 0.5);
|
623 |
+
}
|
624 |
+
|
625 |
+
.btn-outline-warning.disabled, .btn-outline-warning:disabled {
|
626 |
+
color: #f0ad4e;
|
627 |
+
background-color: transparent;
|
628 |
+
}
|
629 |
+
|
630 |
+
.btn-outline-warning:active, .btn-outline-warning.active,
|
631 |
+
.show > .btn-outline-warning.dropdown-toggle {
|
632 |
+
color: #fff;
|
633 |
+
background-color: #f0ad4e;
|
634 |
+
border-color: #f0ad4e;
|
635 |
+
}
|
636 |
+
|
637 |
+
.btn-outline-danger {
|
638 |
+
color: #d9534f;
|
639 |
+
background-image: none;
|
640 |
+
background-color: transparent;
|
641 |
+
border-color: #d9534f;
|
642 |
+
}
|
643 |
+
|
644 |
+
.btn-outline-danger:hover {
|
645 |
+
color: #fff;
|
646 |
+
background-color: #d9534f;
|
647 |
+
border-color: #d9534f;
|
648 |
+
}
|
649 |
+
|
650 |
+
.btn-outline-danger:focus, .btn-outline-danger.focus {
|
651 |
+
-webkit-box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.5);
|
652 |
+
box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.5);
|
653 |
+
}
|
654 |
+
|
655 |
+
.btn-outline-danger.disabled, .btn-outline-danger:disabled {
|
656 |
+
color: #d9534f;
|
657 |
+
background-color: transparent;
|
658 |
+
}
|
659 |
+
|
660 |
+
.btn-outline-danger:active, .btn-outline-danger.active,
|
661 |
+
.show > .btn-outline-danger.dropdown-toggle {
|
662 |
+
color: #fff;
|
663 |
+
background-color: #d9534f;
|
664 |
+
border-color: #d9534f;
|
665 |
+
}
|
666 |
+
|
667 |
+
.btn-link {
|
668 |
+
font-weight: normal;
|
669 |
+
color: #0275d8;
|
670 |
+
border-radius: 0;
|
671 |
+
}
|
672 |
+
|
673 |
+
.btn-link, .btn-link:active, .btn-link.active, .btn-link:disabled {
|
674 |
+
background-color: transparent;
|
675 |
+
}
|
676 |
+
|
677 |
+
.btn-link, .btn-link:focus, .btn-link:active {
|
678 |
+
border-color: transparent;
|
679 |
+
}
|
680 |
+
|
681 |
+
.btn-link:hover {
|
682 |
+
border-color: transparent;
|
683 |
+
}
|
684 |
+
|
685 |
+
.btn-link:focus, .btn-link:hover {
|
686 |
+
color: #014c8c;
|
687 |
+
text-decoration: underline;
|
688 |
+
background-color: transparent;
|
689 |
+
}
|
690 |
+
|
691 |
+
.btn-link:disabled {
|
692 |
+
color: #636c72;
|
693 |
+
}
|
694 |
+
|
695 |
+
.btn-link:disabled:focus, .btn-link:disabled:hover {
|
696 |
+
text-decoration: none;
|
697 |
+
}
|
698 |
+
|
699 |
+
.btn-lg, .btn-group-lg > .btn {
|
700 |
+
padding: 0.75rem 1.5rem;
|
701 |
+
font-size: 1.25rem;
|
702 |
+
border-radius: 0.3rem;
|
703 |
+
}
|
704 |
+
|
705 |
+
.btn-sm, .btn-group-sm > .btn {
|
706 |
+
padding: 0.25rem 0.5rem;
|
707 |
+
font-size: 0.875rem;
|
708 |
+
border-radius: 0.2rem;
|
709 |
+
}
|
710 |
+
|
711 |
+
.btn-block {
|
712 |
+
display: block;
|
713 |
+
width: 100%;
|
714 |
+
}
|
715 |
+
|
716 |
+
.btn-block + .btn-block {
|
717 |
+
margin-top: 0.5rem;
|
718 |
+
}
|
719 |
+
|
720 |
+
input[type="submit"].btn-block,
|
721 |
+
input[type="reset"].btn-block,
|
722 |
+
input[type="button"].btn-block {
|
723 |
+
width: 100%;
|
724 |
+
}
|
725 |
+
|
726 |
+
.fade {
|
727 |
+
opacity: 0;
|
728 |
+
-webkit-transition: opacity 0.15s linear;
|
729 |
+
-o-transition: opacity 0.15s linear;
|
730 |
+
transition: opacity 0.15s linear;
|
731 |
+
}
|
732 |
}
|
classes/AdvancedRules.php
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
namespace WpAssetCleanUp;
|
3 |
+
|
4 |
+
/**
|
5 |
+
* Class AdvancedRules
|
6 |
+
* @package WpAssetCleanUp
|
7 |
+
*/
|
8 |
+
class AdvancedRules
|
9 |
+
{
|
10 |
+
/**
|
11 |
+
* @var array
|
12 |
+
*/
|
13 |
+
public $data = array();
|
14 |
+
|
15 |
+
/**
|
16 |
+
*
|
17 |
+
*/
|
18 |
+
public function page()
|
19 |
+
{
|
20 |
+
Main::instance()->parseTemplate('settings-advanced-rules', $this->data, true);
|
21 |
+
}
|
22 |
+
}
|
classes/{GlobalRules.php → BulkUnloads.php}
RENAMED
@@ -2,10 +2,11 @@
|
|
2 |
namespace WpAssetCleanUp;
|
3 |
|
4 |
/**
|
5 |
-
*
|
|
|
6 |
* @package WpAssetCleanUp
|
7 |
*/
|
8 |
-
class
|
9 |
{
|
10 |
/**
|
11 |
* @var string
|
@@ -59,7 +60,7 @@ class GlobalRules
|
|
59 |
/**
|
60 |
*
|
61 |
*/
|
62 |
-
public function
|
63 |
{
|
64 |
$this->data['for'] = $this->wpacuFor;
|
65 |
|
@@ -68,7 +69,7 @@ class GlobalRules
|
|
68 |
|
69 |
// Get All Post Types
|
70 |
$postTypes = get_post_types(array('public' => true));
|
71 |
-
$this->data['post_types_list'] = $postTypes;
|
72 |
}
|
73 |
|
74 |
$this->data['values'] = $this->getCount();
|
@@ -76,7 +77,23 @@ class GlobalRules
|
|
76 |
$this->data['nonce_name'] = Update::NONCE_FIELD_NAME;
|
77 |
$this->data['nonce_action'] = Update::NONCE_ACTION_NAME;
|
78 |
|
79 |
-
Main::instance()->parseTemplate('settings-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
}
|
81 |
|
82 |
/**
|
2 |
namespace WpAssetCleanUp;
|
3 |
|
4 |
/**
|
5 |
+
*
|
6 |
+
* Class BulkUnloads
|
7 |
* @package WpAssetCleanUp
|
8 |
*/
|
9 |
+
class BulkUnloads
|
10 |
{
|
11 |
/**
|
12 |
* @var string
|
60 |
/**
|
61 |
*
|
62 |
*/
|
63 |
+
public function pageBulkUnloads()
|
64 |
{
|
65 |
$this->data['for'] = $this->wpacuFor;
|
66 |
|
69 |
|
70 |
// Get All Post Types
|
71 |
$postTypes = get_post_types(array('public' => true));
|
72 |
+
$this->data['post_types_list'] = $this->filterPostTypesList($postTypes);
|
73 |
}
|
74 |
|
75 |
$this->data['values'] = $this->getCount();
|
77 |
$this->data['nonce_name'] = Update::NONCE_FIELD_NAME;
|
78 |
$this->data['nonce_action'] = Update::NONCE_ACTION_NAME;
|
79 |
|
80 |
+
Main::instance()->parseTemplate('settings-bulk-unloads', $this->data, true);
|
81 |
+
}
|
82 |
+
|
83 |
+
/**
|
84 |
+
* @param $postTypes
|
85 |
+
*
|
86 |
+
* @return mixed
|
87 |
+
*/
|
88 |
+
public function filterPostTypesList($postTypes)
|
89 |
+
{
|
90 |
+
foreach ($postTypes as $postTypeKey => $postTypeValue) {
|
91 |
+
if ($postTypeKey === 'product' && Misc::isWooCommerceActive()) {
|
92 |
+
$postTypes[$postTypeKey] = 'product → WooCommerce';
|
93 |
+
}
|
94 |
+
}
|
95 |
+
|
96 |
+
return $postTypes;
|
97 |
}
|
98 |
|
99 |
/**
|
classes/GetHelp.php
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
namespace WpAssetCleanUp;
|
3 |
+
|
4 |
+
/**
|
5 |
+
* Class GetHelp
|
6 |
+
* @package WpAssetCleanUp
|
7 |
+
*/
|
8 |
+
class GetHelp
|
9 |
+
{
|
10 |
+
/**
|
11 |
+
* @var array
|
12 |
+
*/
|
13 |
+
public $data = array();
|
14 |
+
|
15 |
+
/**
|
16 |
+
* @var
|
17 |
+
*/
|
18 |
+
public $page;
|
19 |
+
|
20 |
+
/**
|
21 |
+
*
|
22 |
+
*/
|
23 |
+
public function page()
|
24 |
+
{
|
25 |
+
Main::instance()->parseTemplate('get-help', $this->data, true);
|
26 |
+
}
|
27 |
+
}
|
classes/Main.php
CHANGED
@@ -891,6 +891,7 @@ class Main
|
|
891 |
|
892 |
$data['all'] = (array)json_decode($json);
|
893 |
|
|
|
894 |
if ($contents != '') {
|
895 |
$data['contents'] = base64_decode($contents);
|
896 |
}
|
891 |
|
892 |
$data['all'] = (array)json_decode($json);
|
893 |
|
894 |
+
// This value is needed to determine the location of an asset (HEAD OR BODY)
|
895 |
if ($contents != '') {
|
896 |
$data['contents'] = base64_decode($contents);
|
897 |
}
|
classes/Menu.php
CHANGED
@@ -43,11 +43,32 @@ class Menu
|
|
43 |
|
44 |
add_submenu_page(
|
45 |
$menuSlug,
|
46 |
-
__('
|
47 |
-
__('
|
48 |
$capability,
|
49 |
-
WPACU_PLUGIN_NAME.'
|
50 |
-
array(new
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
);
|
52 |
|
53 |
// Rename first item from the menu which has the same title as the menu page
|
43 |
|
44 |
add_submenu_page(
|
45 |
$menuSlug,
|
46 |
+
__('Bulk Unloads', WPACU_PLUGIN_NAME),
|
47 |
+
__('Bulk Unloads', WPACU_PLUGIN_NAME),
|
48 |
$capability,
|
49 |
+
WPACU_PLUGIN_NAME.'_bulk_unloads',
|
50 |
+
array(new BulkUnloads, 'pageBulkUnloads')
|
51 |
+
);
|
52 |
+
|
53 |
+
if (WPACU_PLUGIN_HAS_PREMIUM_EXT !== false) {
|
54 |
+
add_submenu_page(
|
55 |
+
$menuSlug,
|
56 |
+
__('Custom Unload Rules', WPACU_PLUGIN_NAME),
|
57 |
+
__('Custom Unload Rules', WPACU_PLUGIN_NAME),
|
58 |
+
$capability,
|
59 |
+
WPACU_PLUGIN_NAME . '_advanced_rules',
|
60 |
+
array(new AdvancedRules, 'page')
|
61 |
+
);
|
62 |
+
}
|
63 |
+
|
64 |
+
// Get Help | Support Page
|
65 |
+
add_submenu_page(
|
66 |
+
$menuSlug,
|
67 |
+
__('Get Help', WPACU_PLUGIN_NAME),
|
68 |
+
__('Get Help', WPACU_PLUGIN_NAME),
|
69 |
+
$capability,
|
70 |
+
WPACU_PLUGIN_NAME.'_get_help',
|
71 |
+
array(new GetHelp, 'page')
|
72 |
);
|
73 |
|
74 |
// Rename first item from the menu which has the same title as the menu page
|
classes/Misc.php
CHANGED
@@ -147,4 +147,12 @@ class Misc
|
|
147 |
{
|
148 |
add_filter('show_admin_bar', '__return_false');
|
149 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
}
|
147 |
{
|
148 |
add_filter('show_admin_bar', '__return_false');
|
149 |
}
|
150 |
+
|
151 |
+
/**
|
152 |
+
* @return bool
|
153 |
+
*/
|
154 |
+
public static function isWooCommerceActive()
|
155 |
+
{
|
156 |
+
return in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')));
|
157 |
+
}
|
158 |
}
|
classes/OwnAssets.php
CHANGED
@@ -51,7 +51,7 @@ class OwnAssets
|
|
51 |
$this->loadPluginAssets = true;
|
52 |
}
|
53 |
|
54 |
-
if (in_array($page, array(WPACU_PLUGIN_NAME.'_settings', WPACU_PLUGIN_NAME.'_home_page', WPACU_PLUGIN_NAME.'
|
55 |
$this->loadPluginAssets = true;
|
56 |
}
|
57 |
|
@@ -190,4 +190,19 @@ class OwnAssets
|
|
190 |
|
191 |
return $assetVer;
|
192 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
193 |
}
|
51 |
$this->loadPluginAssets = true;
|
52 |
}
|
53 |
|
54 |
+
if (in_array($page, array(WPACU_PLUGIN_NAME.'_settings', WPACU_PLUGIN_NAME.'_home_page', WPACU_PLUGIN_NAME.'_bulk_unloads', WPACU_PLUGIN_NAME.'_get_help'))) {
|
55 |
$this->loadPluginAssets = true;
|
56 |
}
|
57 |
|
190 |
|
191 |
return $assetVer;
|
192 |
}
|
193 |
+
|
194 |
+
public function codeablePostProject()
|
195 |
+
{
|
196 |
+
?>
|
197 |
+
<script>
|
198 |
+
(function(c,o,d,e,a,b,l){c['CodeableObject']=a;c[a]=c[a]||function(){
|
199 |
+
(c[a].q=c[a].q||[]).push(arguments)},c[a].l=1*new Date();b=o.createElement(d),
|
200 |
+
l=o.getElementsByTagName(d)[0];b.async=1;b.src=e;l.parentNode.insertBefore(b,l)
|
201 |
+
})(window,document,'script','https://referoo.co/assets/form.js','cdbl');
|
202 |
+
|
203 |
+
cdbl('shortcode', '0JTXB');
|
204 |
+
cdbl('render', 'wpacu-get-quote');
|
205 |
+
</script>
|
206 |
+
<?php
|
207 |
+
}
|
208 |
}
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: gabelivan
|
|
3 |
Tags: speed, pagespeed, dequeue style, dequeue script, unload style, unload script, fast
|
4 |
Donate link: https://www.gabelivan.com/donate/
|
5 |
Requires at least: 4.0
|
6 |
-
Tested up to: 4.7.
|
7 |
-
Stable tag: 1.2.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl.html
|
10 |
|
@@ -102,6 +102,10 @@ If that's the case, then it's advisable to consult with a developer (ideally the
|
|
102 |
4. Scripts (.JS) are selected for site-wide unload
|
103 |
|
104 |
== Changelog ==
|
|
|
|
|
|
|
|
|
105 |
= 1.2.4.4 =
|
106 |
* Updated AJAX calls to work fine within the Dashboard even if mod_security Apache module is enabled as there were some problems on specific servers
|
107 |
* Added "Unload on this page" text next to the first checkbox to explain its purpose better
|
3 |
Tags: speed, pagespeed, dequeue style, dequeue script, unload style, unload script, fast
|
4 |
Donate link: https://www.gabelivan.com/donate/
|
5 |
Requires at least: 4.0
|
6 |
+
Tested up to: 4.7.8
|
7 |
+
Stable tag: 1.2.5
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl.html
|
10 |
|
102 |
4. Scripts (.JS) are selected for site-wide unload
|
103 |
|
104 |
== Changelog ==
|
105 |
+
= 1.2.5 =
|
106 |
+
* Bug Fix: Remove JavaScript error from window.btoa() in case the page contains non-latin characters
|
107 |
+
* Added "Get Help" page within the plugin's menu to anyone interested in hiring me or any of my colleagues for professional help related to the plugin or any other WordPress task
|
108 |
+
|
109 |
= 1.2.4.4 =
|
110 |
* Updated AJAX calls to work fine within the Dashboard even if mod_security Apache module is enabled as there were some problems on specific servers
|
111 |
* Added "Unload on this page" text next to the first checkbox to explain its purpose better
|
templates/get-help.php
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* No direct access to this file
|
4 |
+
*/
|
5 |
+
if (! isset($data)) {
|
6 |
+
exit;
|
7 |
+
}
|
8 |
+
?>
|
9 |
+
<div class="wrap wpacu-get-help-wrap">
|
10 |
+
<h1><?php _e('WP Asset CleanUp', WPACU_PLUGIN_NAME); ?></h1>
|
11 |
+
<h2><?php _e('In case you are stuck and need assistance, I can help you!', WPACU_PLUGIN_NAME); ?></h2>
|
12 |
+
|
13 |
+
<p>If you believe the plugin has a bug (e.g. you're getting JavaScript or PHP errors generated by WP Asset CleanUp 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>. Note that the support forum is only for reporting bugs and it's not for custom work request.</p>
|
14 |
+
|
15 |
+
<p>In case you need professional help in one of the following scenarios and you don't have a developer available to provide what you need, then me or any of my colleagues from <a href="https://app.codeable.io/tasks/new?ref=d3TOr">Codeable</a>, would be able to assist you:</p>
|
16 |
+
|
17 |
+
<ul class="hire-reasons">
|
18 |
+
<li><span class="dashicons dashicons-yes"></span> You have many CSS and JavaScript files loaded in a page and you're not sure which ones you could prevent from loading, worrying that something could be messed up. A Codeable expert could analyse your pages and give the advices needed.</li>
|
19 |
+
<li><span class="dashicons dashicons-yes"></span> You want to improve the speed of your website and you need help getting a faster loading page and a better Google PageSpeed score</li>
|
20 |
+
<li><span class="dashicons dashicons-yes"></span> You need help with a WordPress task and you're looking for a professional to help you with whatever you need.</li>
|
21 |
+
</ul>
|
22 |
+
|
23 |
+
<div class="wpacu-btns">
|
24 |
+
<a class="btn btn-success" href="https://app.codeable.io/tasks/new?ref=d3TOr&preferredContractor=28168">Hire Me</a>
|
25 |
+
|
26 |
+
<a class="btn btn-secondary" href="https://codeable.io/?ref=d3TOr">Find out more</a>
|
27 |
+
</div>
|
28 |
+
</div>
|
templates/settings-advanced-rules.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* No direct access to this file
|
4 |
+
*/
|
5 |
+
if (! isset($data)) {
|
6 |
+
exit;
|
7 |
+
}
|
8 |
+
?>
|
9 |
+
<h1><?php _e('WP Asset CleanUp', WPACU_PLUGIN_NAME); ?></h1>
|
10 |
+
<h2><?php _e('Custom Rules', WPACU_PLUGIN_NAME); ?></h2>
|
11 |
+
|
12 |
+
<p>To use this feature, you need to have "WP Asset CleanUp Pro" plugin extension enabled.</p>
|
13 |
+
<p><a href="#">Learn more about the premium version</a></p>
|
templates/{settings-globals.php → settings-bulk-unloads.php}
RENAMED
@@ -7,11 +7,17 @@ if (! isset($data)) {
|
|
7 |
}
|
8 |
?>
|
9 |
<h1><?php _e('WP Asset CleanUp', WPACU_PLUGIN_NAME); ?></h1>
|
10 |
-
<h2><?php _e('
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
<nav class="nav-tab-wrapper">
|
13 |
-
<a href="admin.php?page=
|
14 |
-
<a href="admin.php?page=
|
15 |
</nav>
|
16 |
|
17 |
<div class="clear"></div>
|
@@ -21,13 +27,13 @@ if ($data['for'] === 'post_types') {
|
|
21 |
?>
|
22 |
<div style="margin: 15px 0;">
|
23 |
<form id="wpacu_post_type_form" method="get" action="admin.php">
|
24 |
-
<input type="hidden" name="page" value="
|
25 |
<input type="hidden" name="wpacu_for" value="post_types" />
|
26 |
|
27 |
<div style="margin: 0 0 10px 0;">Select the page or post type (including custom ones) for which you want to see the unloaded scripts & styles:</div>
|
28 |
<select id="wpacu_post_type_select" name="wpacu_post_type">
|
29 |
-
<?php foreach ($data['post_types_list'] as $
|
30 |
-
<option <?php if ($data['post_type'] === $
|
31 |
<?php } ?>
|
32 |
</select>
|
33 |
</form>
|
@@ -84,7 +90,7 @@ if ($data['for'] === 'everywhere') {
|
|
84 |
<?php
|
85 |
} else {
|
86 |
?>
|
87 |
-
<p>There are no
|
88 |
<?php
|
89 |
}
|
90 |
?>
|
7 |
}
|
8 |
?>
|
9 |
<h1><?php _e('WP Asset CleanUp', WPACU_PLUGIN_NAME); ?></h1>
|
10 |
+
<h2><?php _e('Bulk Unloads', WPACU_PLUGIN_NAME); ?></h2>
|
11 |
+
|
12 |
+
<p>If <u>any of the options below are used</u>, then the assets will be shown here. Although, you can manage them when editing a page/post, this page will make things easier by seeing all the bulk unloads:</p>
|
13 |
+
<ul>
|
14 |
+
<li>→ Unload everywhere</li>
|
15 |
+
<li>→ Unload on All Pages of <em>[post type here]</em> post type</li>
|
16 |
+
</ul>
|
17 |
|
18 |
<nav class="nav-tab-wrapper">
|
19 |
+
<a href="admin.php?page=wpassetcleanup_bulk_unloads" class="nav-tab <?php if ($data['for'] === 'everywhere') { ?>nav-tab-active<?php } ?>">Everywhere</a>
|
20 |
+
<a href="admin.php?page=wpassetcleanup_bulk_unloads&wpacu_for=post_types" class="nav-tab <?php if ($data['for'] === 'post_types') { ?>nav-tab-active<?php } ?>">Post Types</a>
|
21 |
</nav>
|
22 |
|
23 |
<div class="clear"></div>
|
27 |
?>
|
28 |
<div style="margin: 15px 0;">
|
29 |
<form id="wpacu_post_type_form" method="get" action="admin.php">
|
30 |
+
<input type="hidden" name="page" value="wpassetcleanup_bulk_unloads" />
|
31 |
<input type="hidden" name="wpacu_for" value="post_types" />
|
32 |
|
33 |
<div style="margin: 0 0 10px 0;">Select the page or post type (including custom ones) for which you want to see the unloaded scripts & styles:</div>
|
34 |
<select id="wpacu_post_type_select" name="wpacu_post_type">
|
35 |
+
<?php foreach ($data['post_types_list'] as $postTypeKey => $postTypeValue) { ?>
|
36 |
+
<option <?php if ($data['post_type'] === $postTypeKey) { echo 'selected="selected"'; } ?> value="<?php echo $postTypeKey; ?>"><?php echo $postTypeValue; ?></option>
|
37 |
<?php } ?>
|
38 |
</select>
|
39 |
</form>
|
90 |
<?php
|
91 |
} else {
|
92 |
?>
|
93 |
+
<p>There are no bulk unloaded styles for your selection.</p>
|
94 |
<?php
|
95 |
}
|
96 |
?>
|
wpacu.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
* Plugin Name: WP Asset CleanUp
|
4 |
* Plugin URI: https://wordpress.org/plugins/wp-asset-clean-up/
|
5 |
-
* Version: 1.2.
|
6 |
* Description: Prevent Chosen Scripts & Styles from loading in Posts/Pages that you don't need
|
7 |
* Author: Gabriel Livan
|
8 |
* Author URI: http://www.gabelivan.com/
|
@@ -23,15 +23,40 @@ define('WPACU_PLUGIN_CLASSES_PATH', dirname(__FILE__).'/classes/');
|
|
23 |
define('WPACU_PLUGIN_FILE', __FILE__);
|
24 |
define('WPACU_PLUGIN_URL', plugins_url('', __FILE__));
|
25 |
|
|
|
|
|
|
|
26 |
// Do not load the plugin if the PHP version is below 5.3
|
27 |
$wpacuWrongPhp = version_compare(PHP_VERSION, '5.3.0', '<');
|
28 |
|
29 |
if (is_admin() && $wpacuWrongPhp) { // Dashboard
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
} elseif ($wpacuWrongPhp) { // Front
|
36 |
return;
|
37 |
}
|
2 |
/*
|
3 |
* Plugin Name: WP Asset CleanUp
|
4 |
* Plugin URI: https://wordpress.org/plugins/wp-asset-clean-up/
|
5 |
+
* Version: 1.2.5
|
6 |
* Description: Prevent Chosen Scripts & Styles from loading in Posts/Pages that you don't need
|
7 |
* Author: Gabriel Livan
|
8 |
* Author URI: http://www.gabelivan.com/
|
23 |
define('WPACU_PLUGIN_FILE', __FILE__);
|
24 |
define('WPACU_PLUGIN_URL', plugins_url('', __FILE__));
|
25 |
|
26 |
+
// Whenever the premium extension is ready to be sold, this can be set to 'true'
|
27 |
+
define('WPACU_PLUGIN_HAS_PREMIUM_EXT', false);
|
28 |
+
|
29 |
// Do not load the plugin if the PHP version is below 5.3
|
30 |
$wpacuWrongPhp = version_compare(PHP_VERSION, '5.3.0', '<');
|
31 |
|
32 |
if (is_admin() && $wpacuWrongPhp) { // Dashboard
|
33 |
+
add_action('admin_init', 'wpAssetCleanUpWrongPhp');
|
34 |
+
add_action('admin_notices', 'wpAssetCleanUpWrongPhpNotice');
|
35 |
+
|
36 |
+
/**
|
37 |
+
* Deactivate the plugin because it has the wrong PHP version installed
|
38 |
+
*/
|
39 |
+
function wpAssetCleanUpWrongPhp()
|
40 |
+
{
|
41 |
+
deactivate_plugins(plugin_basename(__FILE__));
|
42 |
+
|
43 |
+
// The premium extension too (if any)
|
44 |
+
deactivate_plugins('wp-asset-clean-up-pro/wpacu-pro.php');
|
45 |
+
}
|
46 |
+
|
47 |
+
/**
|
48 |
+
* Print the message to the user after the plugin was deactivated
|
49 |
+
*/
|
50 |
+
function wpAssetCleanUpWrongPhpNotice()
|
51 |
+
{
|
52 |
+
echo '<div class="error is-dismissible"><p>'.
|
53 |
+
__('<strong>WP Asset CleanUp</strong> requires <span style="color: green;"><strong>5.3+</strong> PHP version</span> installed. You have <strong>'.PHP_VERSION.'</strong>. If your website is working in 5.3+ (check with your developers if you are not sure), then an upgrade is highly recommended. The plugin has been deactivated.', WPACU_PLUGIN_NAME).
|
54 |
+
'</p></div>';
|
55 |
+
|
56 |
+
if (array_key_exists('active', $_GET)) {
|
57 |
+
unset($_GET['activate']);
|
58 |
+
}
|
59 |
+
}
|
60 |
} elseif ($wpacuWrongPhp) { // Front
|
61 |
return;
|
62 |
}
|