Asset CleanUp: Page Speed Booster - Version 1.2.7

Version Description

  • Removed iCheck and replaced with pure CSS to make the plugin lighter
  • Added top menu for easier navigation between plugin's pages;
  • Added "Pages Info" with explanations regarding the type of pages that can be unloaded
  • Removed "Lite" from the plugin's title
Download this release

Release Info

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

Code changes from version 1.2.6.9 to 1.2.7

assets/icheck/icheck.min.js DELETED
@@ -1,11 +0,0 @@
1
- /*! iCheck v1.0.2 by Damir Sultanov, http://git.io/arlzeA, MIT Licensed */
2
- (function(f){function A(a,b,d){var c=a[0],g=/er/.test(d)?_indeterminate:/bl/.test(d)?n:k,e=d==_update?{checked:c[k],disabled:c[n],indeterminate:"true"==a.attr(_indeterminate)||"false"==a.attr(_determinate)}:c[g];if(/^(ch|di|in)/.test(d)&&!e)x(a,g);else if(/^(un|en|de)/.test(d)&&e)q(a,g);else if(d==_update)for(var f in e)e[f]?x(a,f,!0):q(a,f,!0);else if(!b||"toggle"==d){if(!b)a[_callback]("ifClicked");e?c[_type]!==r&&q(a,g):x(a,g)}}function x(a,b,d){var c=a[0],g=a.parent(),e=b==k,u=b==_indeterminate,
3
- v=b==n,s=u?_determinate:e?y:"enabled",F=l(a,s+t(c[_type])),B=l(a,b+t(c[_type]));if(!0!==c[b]){if(!d&&b==k&&c[_type]==r&&c.name){var w=a.closest("form"),p='input[name="'+c.name+'"]',p=w.length?w.find(p):f(p);p.each(function(){this!==c&&f(this).data(m)&&q(f(this),b)})}u?(c[b]=!0,c[k]&&q(a,k,"force")):(d||(c[b]=!0),e&&c[_indeterminate]&&q(a,_indeterminate,!1));D(a,e,b,d)}c[n]&&l(a,_cursor,!0)&&g.find("."+C).css(_cursor,"default");g[_add](B||l(a,b)||"");g.attr("role")&&!u&&g.attr("aria-"+(v?n:k),"true");
4
- g[_remove](F||l(a,s)||"")}function q(a,b,d){var c=a[0],g=a.parent(),e=b==k,f=b==_indeterminate,m=b==n,s=f?_determinate:e?y:"enabled",q=l(a,s+t(c[_type])),r=l(a,b+t(c[_type]));if(!1!==c[b]){if(f||!d||"force"==d)c[b]=!1;D(a,e,s,d)}!c[n]&&l(a,_cursor,!0)&&g.find("."+C).css(_cursor,"pointer");g[_remove](r||l(a,b)||"");g.attr("role")&&!f&&g.attr("aria-"+(m?n:k),"false");g[_add](q||l(a,s)||"")}function E(a,b){if(a.data(m)){a.parent().html(a.attr("style",a.data(m).s||""));if(b)a[_callback](b);a.off(".i").unwrap();
5
- f(_label+'[for="'+a[0].id+'"]').add(a.closest(_label)).off(".i")}}function l(a,b,f){if(a.data(m))return a.data(m).o[b+(f?"":"Class")]}function t(a){return a.charAt(0).toUpperCase()+a.slice(1)}function D(a,b,f,c){if(!c){if(b)a[_callback]("ifToggled");a[_callback]("ifChanged")[_callback]("if"+t(f))}}var m="iCheck",C=m+"-helper",r="radio",k="checked",y="un"+k,n="disabled";_determinate="determinate";_indeterminate="in"+_determinate;_update="update";_type="type";_click="click";_touch="touchbegin.i touchend.i";
6
- _add="addClass";_remove="removeClass";_callback="trigger";_label="label";_cursor="cursor";_mobile=/ipad|iphone|ipod|android|blackberry|windows phone|opera mini|silk/i.test(navigator.userAgent);f.fn[m]=function(a,b){var d='input[type="checkbox"], input[type="'+r+'"]',c=f(),g=function(a){a.each(function(){var a=f(this);c=a.is(d)?c.add(a):c.add(a.find(d))})};if(/^(check|uncheck|toggle|indeterminate|determinate|disable|enable|update|destroy)$/i.test(a))return a=a.toLowerCase(),g(this),c.each(function(){var c=
7
- f(this);"destroy"==a?E(c,"ifDestroyed"):A(c,!0,a);f.isFunction(b)&&b()});if("object"!=typeof a&&a)return this;var e=f.extend({checkedClass:k,disabledClass:n,indeterminateClass:_indeterminate,labelHover:!0},a),l=e.handle,v=e.hoverClass||"hover",s=e.focusClass||"focus",t=e.activeClass||"active",B=!!e.labelHover,w=e.labelHoverClass||"hover",p=(""+e.increaseArea).replace("%","")|0;if("checkbox"==l||l==r)d='input[type="'+l+'"]';-50>p&&(p=-50);g(this);return c.each(function(){var a=f(this);E(a);var c=this,
8
- b=c.id,g=-p+"%",d=100+2*p+"%",d={position:"absolute",top:g,left:g,display:"block",width:d,height:d,margin:0,padding:0,background:"#fff",border:0,opacity:0},g=_mobile?{position:"absolute",visibility:"hidden"}:p?d:{position:"absolute",opacity:0},l="checkbox"==c[_type]?e.checkboxClass||"icheckbox":e.radioClass||"i"+r,z=f(_label+'[for="'+b+'"]').add(a.closest(_label)),u=!!e.aria,y=m+"-"+Math.random().toString(36).substr(2,6),h='<div class="'+l+'" '+(u?'role="'+c[_type]+'" ':"");u&&z.each(function(){h+=
9
- 'aria-labelledby="';this.id?h+=this.id:(this.id=y,h+=y);h+='"'});h=a.wrap(h+"/>")[_callback]("ifCreated").parent().append(e.insert);d=f('<ins class="'+C+'"/>').css(d).appendTo(h);a.data(m,{o:e,s:a.attr("style")}).css(g);e.inheritClass&&h[_add](c.className||"");e.inheritID&&b&&h.attr("id",m+"-"+b);"static"==h.css("position")&&h.css("position","relative");A(a,!0,_update);if(z.length)z.on(_click+".i mouseover.i mouseout.i "+_touch,function(b){var d=b[_type],e=f(this);if(!c[n]){if(d==_click){if(f(b.target).is("a"))return;
10
- A(a,!1,!0)}else B&&(/ut|nd/.test(d)?(h[_remove](v),e[_remove](w)):(h[_add](v),e[_add](w)));if(_mobile)b.stopPropagation();else return!1}});a.on(_click+".i focus.i blur.i keyup.i keydown.i keypress.i",function(b){var d=b[_type];b=b.keyCode;if(d==_click)return!1;if("keydown"==d&&32==b)return c[_type]==r&&c[k]||(c[k]?q(a,k):x(a,k)),!1;if("keyup"==d&&c[_type]==r)!c[k]&&x(a,k);else if(/us|ur/.test(d))h["blur"==d?_remove:_add](s)});d.on(_click+" mousedown mouseup mouseover mouseout "+_touch,function(b){var d=
11
- b[_type],e=/wn|up/.test(d)?t:v;if(!c[n]){if(d==_click)A(a,!1,!0);else{if(/wn|er|in/.test(d))h[_add](e);else h[_remove](e+" "+t);if(z.length&&B&&e==v)z[/ut|nd/.test(d)?_remove:_add](w)}if(_mobile)b.stopPropagation();else return!1}})})}})(window.jQuery||window.Zepto);
 
 
 
 
 
 
 
 
 
 
 
assets/icheck/skins/square/red.css DELETED
@@ -1,59 +0,0 @@
1
- /* iCheck plugin Square skin, red
2
- ----------------------------------- */
3
- .icheckbox_square-red,
4
- .iradio_square-red {
5
- display: inline-block;
6
- *display: inline;
7
- vertical-align: middle;
8
- margin: 0;
9
- padding: 0;
10
- width: 22px;
11
- height: 22px;
12
- background: url(red.png) no-repeat;
13
- border: none;
14
- cursor: pointer;
15
- }
16
-
17
- .icheckbox_square-red {
18
- background-position: 0 0;
19
- }
20
- .icheckbox_square-red.hover {
21
- background-position: -24px 0;
22
- }
23
- .icheckbox_square-red.checked {
24
- background-position: -48px 0;
25
- }
26
- .icheckbox_square-red.disabled {
27
- background-position: -72px 0;
28
- cursor: default;
29
- }
30
- .icheckbox_square-red.checked.disabled {
31
- background-position: -96px 0;
32
- }
33
-
34
- .iradio_square-red {
35
- background-position: -120px 0;
36
- }
37
- .iradio_square-red.hover {
38
- background-position: -144px 0;
39
- }
40
- .iradio_square-red.checked {
41
- background-position: -168px 0;
42
- }
43
- .iradio_square-red.disabled {
44
- background-position: -192px 0;
45
- cursor: default;
46
- }
47
- .iradio_square-red.checked.disabled {
48
- background-position: -216px 0;
49
- }
50
-
51
- /* HiDPI support */
52
- @media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
53
- .icheckbox_square-red,
54
- .iradio_square-red {
55
- background-image: url(red@2x.png);
56
- -webkit-background-size: 240px 24px;
57
- background-size: 240px 24px;
58
- }
59
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/icheck/skins/square/red.png DELETED
Binary file
assets/icheck/skins/square/red@2x.png DELETED
Binary file
assets/icons/icon-lock.svg ADDED
@@ -0,0 +1 @@
 
1
+ <?xml version="1.0" ?><!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'><svg enable-background="new 0 0 50 50" height="50px" id="Layer_1" version="1.1" viewBox="0 0 50 50" width="50px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><rect fill="none" height="50" width="50"/><path d="M18,47c-1.104,0-2-0.896-2-2 V23c0-1.104,0.896-2,2-2h28c1.104,0,2,0.896,2,2v22c0,1.104-0.896,2-2,2H18z" fill="none" stroke="#000000" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2"/><path d="M42,21c0-1.045,0-5.955,0-7 c0-5.523-4.477-10-10-10S22,8.477,22,14c0,1.045,0,5.955,0,7" fill="none" stroke="#000000" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2"/><path d="M35,32c0-1.657-1.343-3-3-3s-3,1.343-3,3c0,0.885,0.391,1.673,1,2.222V37c0,1.104,0.896,2,2,2s2-0.896,2-2v-2.778 C34.609,33.673,35,32.885,35,32z"/></svg>
assets/icons/woocommerce-icon-logo.svg CHANGED
File without changes
assets/script.js DELETED
@@ -1,260 +0,0 @@
1
- /**
2
- * WP Asset Clean Up
3
- */
4
- jQuery(document).ready(function($) {
5
- //
6
- // Common Code For Both Dashboard and Front-end View
7
- //
8
- var WpAssetCleanUp = {
9
- load: function() {
10
- var cbSelector = '.icheckbox_square-red', handle;
11
-
12
- $(cbSelector).iCheck({
13
- checkboxClass: 'icheckbox_square-red'
14
- //increaseArea: '-20%' // optional
15
- });
16
-
17
- $(cbSelector).on('ifChecked', function (event) {
18
- $(event.target).closest('tr').addClass('wpacu_not_load');
19
- });
20
-
21
- $(cbSelector).on('ifUnchecked', function (event) {
22
- $(event.target).closest('tr').removeClass('wpacu_not_load');
23
- });
24
-
25
- // Unload Everywhere
26
- $('.wpacu_global_unload').click(function() {
27
- handle = $(this).attr('data-handle');
28
-
29
- if ($(this).prop('checked')) {
30
- $(this).parent('label').addClass('wpacu_global_checked');
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_keep_bulk_rule').click(function() {
90
- if ($(this).prop('checked')) {
91
- $(this).parents('li').next().removeClass('remove_rule');
92
- }
93
- });
94
-
95
- $('.wpacu_remove_bulk_rule').click(function() {
96
- if ($(this).prop('checked')) {
97
- $(this).parents('li').addClass('remove_rule');
98
- }
99
- });
100
-
101
- $('.wpacu_bulk_unload').click(function() {
102
- if ($(this).prop('checked')) {
103
- $(this).parent('label').addClass('wpacu_bulk_unload_active');
104
- } else {
105
- $(this).parent('label').removeClass('wpacu_bulk_unload_active');
106
- }
107
- });
108
-
109
- // Load it checkbox
110
- $('.wpacu_load_it_option').click(function() {
111
- var handle = $(this).attr('data-handle');
112
-
113
- /*
114
- var handle = $(this).attr('data-handle'), wpacu_input_name;
115
-
116
- if ($(this).hasClass('wpacu_style')) {
117
- wpacu_input_name = 'wpacu_options_styles['+ handle +']';
118
- } else if ($(this).hasClass('wpacu_script')) {
119
- wpacu_input_name = 'wpacu_options_scripts['+ handle +']';
120
- }
121
- */
122
-
123
- if ($(this).prop('checked')) {
124
- $(this).parent('label').addClass('wpacu_global_unload_exception');
125
-
126
- // Uncheck "Unload on this page" as it's not relevant anymore
127
- var asset_type = '';
128
-
129
- if ($(this).hasClass('wpacu_style')) {
130
- asset_type = 'style';
131
- } else if ($(this).hasClass('wpacu_script')) {
132
- asset_type = 'script';
133
- }
134
-
135
- $('#' + asset_type + '_' + handle).iCheck('uncheck');
136
-
137
- //$(this).closest('tr').removeClass('wpacu_not_load');
138
- ///} else if ($('input[name="'+ wpacu_input_name +'"]:checked').val() == 'default') {
139
- // $(this).parent('label').removeClass('wpacu_global_unload_exception');
140
- //$(this).closest('tr').addClass('wpacu_not_load');
141
- } else {
142
- $(this).parent('label').removeClass('wpacu_global_unload_exception');
143
- }
144
- });
145
- }
146
- };
147
-
148
- $('#wpacu_post_type_select').change(function() {
149
- $('#wpacu_post_type_form').submit();
150
- });
151
-
152
- // Manage in Dashboard Clicked
153
- $('#wpacu_dashboard').click(function() {
154
- if ($(this).prop('checked')) {
155
- $('#wpacu-settings-assets-retrieval-mode').fadeIn();
156
- } else {
157
- $('#wpacu-settings-assets-retrieval-mode').fadeOut();
158
- }
159
- });
160
-
161
- // Items are marked for removal from the unload list
162
- // from either "Everywhere" or "Post Type"
163
- $('.wpacu_remove_rule').click(function() {
164
- var $wpacuGlobalRuleRow = $(this).parents('.wpacu_global_rule_row');
165
-
166
- if ($(this).prop('checked')) {
167
- $wpacuGlobalRuleRow.addClass('selected');
168
- } else {
169
- $wpacuGlobalRuleRow.removeClass('selected');
170
- }
171
- });
172
-
173
- //
174
- // Asset Front-end Edit (if setting is enabled)
175
- //
176
- if ($('#wpacu_wrap_assets').length > 0) {
177
- WpAssetCleanUp.load();
178
- }
179
-
180
- //
181
- // The code below is for the pages loaded on the Dashboard
182
- //
183
- if (typeof wpacu_object === 'undefined' || $('#wpacu_meta_box_content').length < 1) {
184
- return false; // stop if we are not on the right page (with asset list)
185
- }
186
-
187
- var data = {};
188
-
189
- if (wpacu_object.dom_get_type === 'direct') {
190
- data[wpacu_object.plugin_name + '_load'] = 1;
191
-
192
- $.ajax({
193
- method: 'GET',
194
- url: wpacu_object.page_url,
195
- data: data,
196
- cache: false
197
- }).done(function (contents) {
198
- var wpacuList = contents.substring(
199
- (contents.lastIndexOf(wpacu_object.start_del) + wpacu_object.start_del.length),
200
- contents.lastIndexOf(wpacu_object.end_del)
201
- );
202
-
203
- var data = {
204
- 'action' : wpacu_object.plugin_name + '_get_loaded_assets',
205
- 'wpacu_list' : wpacuList,
206
- 'post_id' : wpacu_object.post_id,
207
- 'page_url' : wpacu_object.page_url,
208
- 'tag_id' : wpacu_object.tag_id
209
- };
210
-
211
- if ('btoa' in window) {
212
- try {
213
- // Non-Latin Characters get stripped
214
- // We only need the content related to the assets
215
- contents = contents.replace(/[\u0250-\ue007]/g, '');
216
- contents = contents.replace(/[^\x00-\x7F]/g, '');
217
-
218
- data.contents = window.btoa(contents);
219
- } catch(err) {
220
- data.contents = '';
221
- }
222
- }
223
-
224
- $.post(wpacu_object.ajax_url, data, function (response) {
225
- if (!response) {
226
- return false;
227
- }
228
-
229
- $('#wpacu_meta_box_content').html(response);
230
-
231
- if ($('#wpacu_home_page_form').length > 0) {
232
- $('#submit').show();
233
- }
234
-
235
- WpAssetCleanUp.load();
236
- });
237
- });
238
- } else if (wpacu_object.dom_get_type === 'wp_remote_post') {
239
- data = {
240
- 'action' : wpacu_object.plugin_name + '_get_loaded_assets',
241
- 'post_id' : wpacu_object.post_id,
242
- 'page_url' : wpacu_object.page_url,
243
- 'tag_id' : wpacu_object.tag_id
244
- };
245
-
246
- $.post(wpacu_object.ajax_url, data, function (response) {
247
- if (! response) {
248
- return false;
249
- }
250
-
251
- $('#wpacu_meta_box_content').html(response);
252
-
253
- if ($('#wpacu_home_page_form').length > 0) {
254
- $('#submit').show();
255
- }
256
-
257
- WpAssetCleanUp.load();
258
- });
259
- }
260
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_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).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_dashboard").click(function(){a(this).prop("checked")?a("#wpacu-settings-assets-retrieval-mode").fadeIn():a("#wpacu-settings-assets-retrieval-mode").fadeOut()}),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.ajax({method:"GET",url:wpacu_object.page_url,data:c,cache:!1}).done(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,page_url:wpacu_object.page_url,tag_id:wpacu_object.tag_id};if("btoa"in window)try{c=c.replace(/[\u0250-\ue007]/g,""),c=c.replace(/[^\x00-\x7F]/g,""),e.contents=window.btoa(c)}catch(a){e.contents=""}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,page_url:wpacu_object.page_url,tag_id:wpacu_object.tag_id},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())}))});
1
+ jQuery(document).ready(function(a){var b={load:function(){b.getExternalFileSize();var c;a(".input-unload-on-this-page").live("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_global_unload").click(function(){c=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")})},getExternalFileSize:function(){a(".wpacu-external-file-size").each(function(){var b=a(this);a.post(wpacu_object.ajax_url,{action:"get_external_file_size",wpacu_remote_file:a(this).attr("data-src")},function(a){b.html(a)})})}};if(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():a("#wpacu-settings-assets-retrieval-mode").fadeOut()}),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.ajax({method:"GET",url:wpacu_object.page_url,data:c,cache:!1}).done(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,page_url:wpacu_object.page_url,tag_id:wpacu_object.tag_id};if("btoa"in window)try{c=c.replace(/[\u0250-\ue007]/g,""),c=c.replace(/[^\x00-\x7F]/g,""),e.contents=window.btoa(c)}catch(a){e.contents=""}a.post(wpacu_object.ajax_url,e,function(c){if(!c)return!1;a("#wpacu_meta_box_content").html(c),a("#wpacu_home_page_form").length>0&&a("#submit").show(),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,page_url:wpacu_object.page_url,tag_id:wpacu_object.tag_id},a.post(wpacu_object.ajax_url,c,function(c){if(!c)return!1;a("#wpacu_meta_box_content").html(c),a("#wpacu_home_page_form").length>0&&a("#submit").show(),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!important}.dashicons-wpacu{width:17px;height:17px;margin:2px 0 0;font-size:16px;text-decoration:none}body[class*=wpassetcleanup] #footer-left{border-left:2px solid green;padding-left:10px}#wpacu_meta_box_content{width:99%}#wpacu_meta_box_content h3{margin-left:0;padding-left:0}#wpacu_meta_box_content div.wpacu_note,#wpacu_wrap_assets div.wpacu_note{padding:10px;background-color:#f5f5f5}#wpacu_meta_box_content .dashicons.dashicons-warning{color: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{padding:0;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_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;padding:0}ul.wpacu_asset_options li{list-style:none;display:inline-block}ul.wpacu_asset_options li.remove_rule label{font-weight:700}ul.wpacu_asset_options label{margin-right:20px;font-weight:400}ul.wpacu_asset_options label input{margin-right:4px}.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}.go-pro-button,.wpacu-btns .btn-link:disabled:focus,.wpacu-btns .btn-link:disabled:hover{text-decoration:none}.wpacu-btns .btn-link:disabled{color:#636c72}.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}.go-pro-button{background-color:#4CAF50;border:2px solid #4CAF50;color:#fff;padding:12px 18px;text-align:center;display:inline-block;font-size:16px;margin:4px 2px;cursor:pointer;border-radius:10px;-webkit-transition-duration:.4s;transition-duration:.4s}.go-pro-button:hover{background-color:#fff;color:#000;border:2px solid #4CAF50}
1
+ .wpacu-tabs,.wpacu-tabs nav a{position:relative;overflow:hidden}.wpacu-tabs{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 a{display:block;text-overflow:ellipsis;white-space:nowrap;line-height:2.5}.wpacu-tabs nav a span{vertical-align:middle;font-size:.75em}.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;width:100%;font-weight:300;text-decoration:none}.wpacu-tabs-style-topline nav li{border:1px solid rgba(40,44,42,.1)}.wpacu-tabs-style-topline nav li:not(:last-child){border-right:none}.wpacu-tabs-style-topline nav li.wpacu-tab-current{border-top-color:#0085ba;border-bottom:none}.wpacu-tabs-style-topline nav a{padding:20px 15px;background:rgba(40,44,42,.05);color:#74777b;line-height:1;-webkit-transition:color .2s;transition:color .2s;text-decoration:none}.widefat .check-column.wpacu_check,body.toplevel_page_wpassetcleanup_settings .notice{padding:10px}.wpacu-tabs-style-topline nav a:focus,.wpacu-tabs-style-topline nav a:hover{color:#0085ba}.wpacu-tabs-style-topline nav li.wpacu-tab-current a{background:0 0;box-shadow:inset 0 3px 0 #0085ba;color:#0085ba}.wpacu-tabs-style-topline nav li.wpacu-tab-current a span:not(.dashicons){font-weight:600}.wpacu-tabs-style-topline nav a span{text-transform:uppercase;font-weight:400}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}body[class*=wpassetcleanup] #footer-left{border-left:2px solid green;padding-left:10px}#wpacu_meta_box_content{width:99%}#wpacu_meta_box_content h3{margin-left:0;padding-left:0}#wpacu_meta_box_content div.wpacu_note,#wpacu_wrap_assets div.wpacu_note{padding:10px;background-color:#f5f5f5}#wpacu_meta_box_content .dashicons.dashicons-warning{color:#c00}#wpacu_meta_box_content div.wpacu_warning,#wpacu_wrap_assets div.wpacu_warning{border:1px solid #c00}#wpacu_meta_box_content div.wpacu_verified{padding:10px;background-color:#f5f5f5;border-left:1px solid #ddd}#wpacu_meta_box_content div.wpacu_verified span{color:#0073aa;font-weight:700}#wpacu_meta_box_content ul.wpacu_asset_options{margin:0;padding:0}#wpacu_meta_box_content ul.wpacu_asset_options li{list-style:none;display:inline-block}#wpacu_wrap_assets img,.wpacu_asset_row td label{display:inline-block!important}#wpacu_meta_box_content ul.wpacu_asset_options label{margin-right:5px;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;font-weight:400}#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{padding:0;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}.asset-table-extra-info td{padding:5px}body.wp-admin .wpacu_asset_row td.wpacu_check{width:25px}.wpacu_asset_row .dashicons{color:red}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_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;padding:0}ul.wpacu_asset_options li{list-style:none;display:inline-block}ul.wpacu_asset_options li.remove_rule label{font-weight:700}ul.wpacu_asset_options label{margin-right:20px;font-weight:400}ul.wpacu_asset_options label input{margin-right:4px}.wp-asset-clean-up,.wp-asset-clean-up div,.wp-asset-clean-up li,.wp-asset-clean-up p,.wp-list-table,.wp-list-table div,.wp-list-table li,.wp-list-table p{font-weight:400}.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%}.go-pro-button,.go-pro-link-no-style,.wordpress-core-file{display:inline-block;text-decoration:none}.wpacu-btns .btn-block+.btn-block{margin-top:.5rem}.wpacu-btns input[type=submit].btn-block,.wpacu-btns input[type=reset].btn-block,.wpacu-btns input[type=button].btn-block{width:100%}.wpacu-btns .fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.go-pro-button{background-color:#4CAF50;border:2px solid #4CAF50;color:#fff;padding:12px 18px;text-align:center;font-size:16px;margin:4px 2px;cursor:pointer;border-radius:10px;-webkit-transition-duration:.4s;transition-duration:.4s}.go-pro-button:hover{background-color:#fff;color:#000;border:2px solid #4CAF50}.go-pro-link-no-style .tooltip,.wordpress-core-file .tooltip{font-size:14px;line-height:18px;z-index:1;text-align:center;padding:6px;border-radius:6px;bottom:100%;left:50%}.go-pro-link-no-style{position:relative;color:inherit}.go-pro-link-no-style:not(.nav-tab){font-style:italic}.go-pro-link-no-style .tooltip{position:absolute;visibility:hidden;width:130px;background-color:#27ae60;color:#fff;margin-left:-65px}.go-pro-link-no-style:hover .tooltip{visibility:visible}.wordpress-core-file{position:relative;font-style:normal;color:inherit}.wordpress-core-file .tooltip{position:absolute;visibility:hidden;width:160px;background-color:#c00;color:#fff;margin-left:-80px}.wordpress-core-file:hover .tooltip{visibility:visible}body.wp-admin .go-pro-link-no-style .tooltip{font-size:12px;line-height:16px;padding:5px}.pro-page-unlock-notice{border-radius:10px;padding:10px;background:#f2faf2;border:1px solid #c0e8c0;width:auto;display:block}.toplevel_page_wpassetcleanup_settings .wpacu_switch{position:relative;display:inline-block;width:52px;height:29px}.toplevel_page_wpassetcleanup_settings .wpacu_switch input{display:none}.toplevel_page_wpassetcleanup_settings .wpacu_slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.4s;transition:.4s}.toplevel_page_wpassetcleanup_settings .wpacu_slider:before{position:absolute;content:'';height:22px;width:22px;left:4px;bottom:4px;background-color:#fff;-webkit-transition:.4s;transition:.4s}.toplevel_page_wpassetcleanup_settings input:checked+.wpacu_slider{background-color:#52af00}.toplevel_page_wpassetcleanup_settings input:focus+.wpacu_slider{box-shadow:0 0 1px #52af00}.toplevel_page_wpassetcleanup_settings input:checked+.wpacu_slider:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.toplevel_page_wpassetcleanup_settings .wpacu_slider.wpacu_round{border-radius:29px}.toplevel_page_wpassetcleanup_settings .wpacu_slider.wpacu_round:before{border-radius:50%}.wpacu_asset_row li.wpacu_unload_this_page{display:block!important;position:relative}.wpacu_asset_row .wpacu_switch{position:relative;display:inline-block;width:52px;height:29px;margin-right:5px!important}.wpacu_asset_row .wpacu_switch input{display:none}.wpacu_asset_row .wpacu_slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.4s;transition:.4s}.wpacu_asset_row .wpacu_slider:before{position:absolute;content:'';height:22px;width:22px;left:4px;bottom:4px;background-color:#fff;-webkit-transition:.4s;transition:.4s}.wpacu_asset_row .wpacu_slider_text{position:absolute;left:62px;top:3px}.wpacu_asset_row input:checked+.wpacu_slider{background-color:#C00}.wpacu_asset_row input:focus+.wpacu_slider{box-shadow:0 0 1px #C00}.wpacu_asset_row input:checked+.wpacu_slider:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.wpacu_asset_row .wpacu_slider.wpacu_round{border-radius:29px}.wpacu_asset_row .wpacu_slider.wpacu_round:before{border-radius:50%}.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}
assets/style.scss DELETED
@@ -1,777 +0,0 @@
1
- body.toplevel_page_wpassetcleanup_settings {
2
- .notice {
3
- padding: 10px;
4
- }
5
- }
6
-
7
- tr.wpacu_not_load {
8
- th, td {
9
- background: #FFE1E1 !important;
10
- }
11
- }
12
-
13
- .dashicons-wpacu {
14
- width: 17px;
15
- height: 17px;
16
- margin: 2px 0 0 0;
17
- font-size: 16px;
18
- text-decoration: none;
19
- }
20
-
21
- .widefat .check-column.wpacu_check {
22
- padding: 10px;
23
- }
24
-
25
- body[class*="wpassetcleanup"] #footer-left {
26
- border-left: 2px solid green;
27
- padding-left: 10px;
28
- }
29
-
30
- #wpacu_meta_box_content {
31
- width: 99%;
32
-
33
- h3 {
34
- margin-left: 0;
35
- padding-left: 0;
36
- }
37
- div.wpacu_note {
38
- padding: 10px;
39
- background-color: #f5f5f5;
40
- }
41
- .dashicons.dashicons-warning {
42
- color: red;
43
- }
44
- }
45
-
46
- #wpacu_wrap_assets div.wpacu_note {
47
- padding: 10px;
48
- background-color: #f5f5f5;
49
- }
50
-
51
- #wpacu_meta_box_content div.wpacu_warning, #wpacu_wrap_assets div.wpacu_warning {
52
- border: 1px solid #cc0000;
53
- }
54
-
55
- #wpacu_meta_box_content {
56
- div.wpacu_verified {
57
- padding: 10px;
58
- background-color: #f5f5f5;
59
- border-left: 1px solid #ddd;
60
- span {
61
- color: #0073aa;
62
- font-weight: bold;
63
- }
64
- }
65
- ul.wpacu_asset_options {
66
- margin: 0;
67
- padding: 0;
68
- li {
69
- list-style: none;
70
- display: inline-block;
71
- }
72
- label {
73
- margin-right: 20px;
74
- font-weight: normal;
75
- }
76
- }
77
- }
78
-
79
- /*
80
- * Asset List Styling: Front-end and Back-end
81
- */
82
-
83
- #wpacu_wrap_assets {
84
- color: #000000 !important;
85
- text-align: left;
86
- clear: both;
87
- width: 90%;
88
- padding: 20px;
89
- margin: 30px 0 0 15px;
90
- border: 1px solid #cdcdcd;
91
- z-index: 10000 !important;
92
- position: relative;
93
- background-color: white;
94
- img {
95
- display: inline-block !important;
96
- }
97
- p {
98
- margin: 10px 0;
99
- line-height: 22px;
100
- text-align: left;
101
- }
102
- h1 {
103
- margin: 0 0 20px;
104
- font-size: 160%;
105
- text-align: left;
106
- }
107
- h3 {
108
- margin: 20px 0;
109
- font-size: 130%;
110
- }
111
- }
112
-
113
- .wpacu_verified {
114
- margin: 0 0 10px 0;
115
- }
116
-
117
- .wpacu_asset_row td {
118
- padding: 10px;
119
- p {
120
- padding: 0;
121
- margin-bottom: 10px;
122
- word-wrap: break-word;
123
- }
124
- label {
125
- cursor: pointer !important;
126
- display: inline-block !important;
127
- font-size: 100%;
128
- font-weight: normal;
129
- span {
130
- font-size: 100% !important;
131
- }
132
- }
133
- &.wpacu_check {
134
- width: 50px;
135
- }
136
- }
137
-
138
- /* Dashboard adjust */
139
-
140
- body.wp-admin .wpacu_asset_row td.wpacu_check {
141
- width: 25px;
142
- }
143
-
144
- label {
145
- &.wpacu_add_global {
146
- cursor: pointer;
147
- }
148
- &.wpacu_global_checked {
149
- font-weight: bold;
150
- color: #d54e21;
151
- }
152
- &.wpacu_global_unload_exception {
153
- font-weight: bold !important;
154
- }
155
-
156
- &.wpacu_bulk_unload_active {
157
- color: #d54e21;
158
- }
159
- }
160
-
161
- tr.wpacu_global_rule_row {
162
- &.selected {
163
- background: #e7e7e7;
164
- }
165
- }
166
-
167
- .nav-tab-wrapper {
168
- border-bottom: 1px solid #ccc;
169
- width: 95%;
170
- }
171
-
172
- ul.wpacu_asset_options {
173
- margin: 0;
174
- padding: 0;
175
- li {
176
- list-style: none;
177
- display: inline-block;
178
-
179
- &.remove_rule {
180
- label {
181
- font-weight: bold;
182
- }
183
- }
184
- }
185
- label {
186
- margin-right: 20px;
187
- font-weight: normal;
188
- input {
189
- margin-right: 4px;
190
- }
191
- }
192
- }
193
-
194
- /* Assets Table */
195
- .wp-asset-clean-up.widefat {
196
- width: 99%;
197
- }
198
-
199
- .wpacu_widefat {
200
- border: 1px solid #e5e5e5 !important;
201
- td {
202
- border: 1px solid #e5e5e5 !important;
203
- }
204
- }
205
-
206
- .wpacu_striped > tbody > :nth-child(odd), ul.wpacu_striped > :nth-child(odd) {
207
- background-color: #f9f9f9 !important;
208
- }
209
-
210
- .wpacu_update_btn {
211
- -moz-box-shadow: inset 0 1px 0 0 #54a3f7 !important;
212
- -webkit-box-shadow: inset 0 1px 0 0 #54a3f7 !important;
213
- box-shadow: inset 0 1px 0 0 #54a3f7 !important;
214
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #007dc1), color-stop(1, #0061a7)) !important;
215
- background: -moz-linear-gradient(top, #007dc1 5%, #0061a7 100%) !important;
216
- background: -webkit-linear-gradient(top, #007dc1 5%, #0061a7 100%) !important;
217
- background: -o-linear-gradient(top, #007dc1 5%, #0061a7 100%) !important;
218
- background: -ms-linear-gradient(top, #007dc1 5%, #0061a7 100%) !important;
219
- background: linear-gradient(to bottom, #007dc1 5%, #0061a7 100%) !important;
220
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#007dc1', endColorstr='#0061a7',GradientType=0) !important;
221
- background-color: #007dc1 !important;
222
- -moz-border-radius: 3px !important;
223
- -webkit-border-radius: 3px !important;
224
- border-radius: 3px !important;
225
- border: 1px solid #124d77 !important;
226
- display: inline-block !important;
227
- cursor: pointer !important;
228
- color: #ffffff !important;
229
- font-size: 15px !important;
230
- padding: 10px 24px !important;
231
- text-decoration: none !important;
232
- text-shadow: 0 1px 0 #154682 !important;
233
-
234
- height: auto !important;
235
- line-height: normal !important;
236
-
237
- &:hover {
238
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #0061a7), color-stop(1, #007dc1)) !important;
239
- background: -moz-linear-gradient(top, #0061a7 5%, #007dc1 100%) !important;
240
- background: -webkit-linear-gradient(top, #0061a7 5%, #007dc1 100%) !important;
241
- background: -o-linear-gradient(top, #0061a7 5%, #007dc1 100%) !important;
242
- background: -ms-linear-gradient(top, #0061a7 5%, #007dc1 100%) !important;
243
- background: linear-gradient(to bottom, #0061a7 5%, #007dc1 100%) !important;
244
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0061a7', endColorstr='#007dc1',GradientType=0) !important;
245
- background-color: #0061a7 !important;
246
- }
247
- &:active {
248
- position: relative !important;
249
- top: 1px !important;
250
- }
251
- }
252
-
253
- ul.hire-reasons {
254
- margin-bottom: 20px;
255
-
256
- li {
257
- font-size: 14px;
258
- line-height: 22px;
259
- margin-bottom: 12px;
260
-
261
- .dashicons {
262
- font-size: 23px;
263
- line-height: 23px;
264
-
265
- &.dashicons-yes {
266
- color: green;
267
- }
268
- }
269
- }
270
- }
271
-
272
- .wpacu-get-help-wrap {
273
- p {
274
- font-size: 14px;
275
- }
276
- }
277
-
278
- .wpacu-btns {
279
- a {
280
- text-decoration: none;
281
- }
282
-
283
- .btn {
284
- display: inline-block;
285
- font-weight: normal;
286
- line-height: 1.25;
287
- text-align: center;
288
- white-space: nowrap;
289
- vertical-align: middle;
290
- -webkit-user-select: none;
291
- -moz-user-select: none;
292
- -ms-user-select: none;
293
- user-select: none;
294
- border: 1px solid transparent;
295
- padding: 0.5rem 1rem;
296
- font-size: 1rem;
297
- border-radius: 0.25rem;
298
- -webkit-transition: all 0.2s ease-in-out;
299
- -o-transition: all 0.2s ease-in-out;
300
- transition: all 0.2s ease-in-out;
301
- }
302
-
303
- .btn:focus, .btn:hover {
304
- text-decoration: none;
305
- }
306
-
307
- .btn:focus, .btn.focus {
308
- outline: 0;
309
- -webkit-box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.25);
310
- box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.25);
311
- }
312
-
313
- .btn.disabled, .btn:disabled {
314
- cursor: not-allowed;
315
- opacity: .65;
316
- }
317
-
318
- .btn:active, .btn.active {
319
- background-image: none;
320
- }
321
-
322
- a.btn.disabled,
323
- fieldset[disabled] a.btn {
324
- pointer-events: none;
325
- }
326
-
327
- .btn-primary {
328
- color: #fff;
329
- background-color: #0275d8;
330
- border-color: #0275d8;
331
- }
332
-
333
- .btn-primary:hover {
334
- color: #fff;
335
- background-color: #025aa5;
336
- border-color: #01549b;
337
- }
338
-
339
- .btn-primary:focus, .btn-primary.focus {
340
- -webkit-box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.5);
341
- box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.5);
342
- }
343
-
344
- .btn-primary.disabled, .btn-primary:disabled {
345
- background-color: #0275d8;
346
- border-color: #0275d8;
347
- }
348
-
349
- .btn-primary:active, .btn-primary.active,
350
- .show > .btn-primary.dropdown-toggle {
351
- color: #fff;
352
- background-color: #025aa5;
353
- background-image: none;
354
- border-color: #01549b;
355
- }
356
-
357
- .btn-secondary {
358
- color: #292b2c;
359
- background-color: #fff;
360
- border-color: #ccc;
361
- }
362
-
363
- .btn-secondary:hover {
364
- color: #292b2c;
365
- background-color: #e6e6e6;
366
- border-color: #adadad;
367
- }
368
-
369
- .btn-secondary:focus, .btn-secondary.focus {
370
- -webkit-box-shadow: 0 0 0 2px rgba(204, 204, 204, 0.5);
371
- box-shadow: 0 0 0 2px rgba(204, 204, 204, 0.5);
372
- }
373
-
374
- .btn-secondary.disabled, .btn-secondary:disabled {
375
- background-color: #fff;
376
- border-color: #ccc;
377
- }
378
-
379
- .btn-secondary:active, .btn-secondary.active,
380
- .show > .btn-secondary.dropdown-toggle {
381
- color: #292b2c;
382
- background-color: #e6e6e6;
383
- background-image: none;
384
- border-color: #adadad;
385
- }
386
-
387
- .btn-info {
388
- color: #fff;
389
- background-color: #5bc0de;
390
- border-color: #5bc0de;
391
- }
392
-
393
- .btn-info:hover {
394
- color: #fff;
395
- background-color: #31b0d5;
396
- border-color: #2aabd2;
397
- }
398
-
399
- .btn-info:focus, .btn-info.focus {
400
- -webkit-box-shadow: 0 0 0 2px rgba(91, 192, 222, 0.5);
401
- box-shadow: 0 0 0 2px rgba(91, 192, 222, 0.5);
402
- }
403
-
404
- .btn-info.disabled, .btn-info:disabled {
405
- background-color: #5bc0de;
406
- border-color: #5bc0de;
407
- }
408
-
409
- .btn-info:active, .btn-info.active,
410
- .show > .btn-info.dropdown-toggle {
411
- color: #fff;
412
- background-color: #31b0d5;
413
- background-image: none;
414
- border-color: #2aabd2;
415
- }
416
-
417
- .btn-success {
418
- color: #fff;
419
- background-color: #5cb85c;
420
- border-color: #5cb85c;
421
- }
422
-
423
- .btn-success:hover {
424
- color: #fff;
425
- background-color: #449d44;
426
- border-color: #419641;
427
- }
428
-
429
- .btn-success:focus, .btn-success.focus {
430
- -webkit-box-shadow: 0 0 0 2px rgba(92, 184, 92, 0.5);
431
- box-shadow: 0 0 0 2px rgba(92, 184, 92, 0.5);
432
- }
433
-
434
- .btn-success.disabled, .btn-success:disabled {
435
- background-color: #5cb85c;
436
- border-color: #5cb85c;
437
- }
438
-
439
- .btn-success:active, .btn-success.active,
440
- .show > .btn-success.dropdown-toggle {
441
- color: #fff;
442
- background-color: #449d44;
443
- background-image: none;
444
- border-color: #419641;
445
- }
446
-
447
- .btn-warning {
448
- color: #fff;
449
- background-color: #f0ad4e;
450
- border-color: #f0ad4e;
451
- }
452
-
453
- .btn-warning:hover {
454
- color: #fff;
455
- background-color: #ec971f;
456
- border-color: #eb9316;
457
- }
458
-
459
- .btn-warning:focus, .btn-warning.focus {
460
- -webkit-box-shadow: 0 0 0 2px rgba(240, 173, 78, 0.5);
461
- box-shadow: 0 0 0 2px rgba(240, 173, 78, 0.5);
462
- }
463
-
464
- .btn-warning.disabled, .btn-warning:disabled {
465
- background-color: #f0ad4e;
466
- border-color: #f0ad4e;
467
- }
468
-
469
- .btn-warning:active, .btn-warning.active,
470
- .show > .btn-warning.dropdown-toggle {
471
- color: #fff;
472
- background-color: #ec971f;
473
- background-image: none;
474
- border-color: #eb9316;
475
- }
476
-
477
- .btn-danger {
478
- color: #fff;
479
- background-color: #d9534f;
480
- border-color: #d9534f;
481
- }
482
-
483
- .btn-danger:hover {
484
- color: #fff;
485
- background-color: #c9302c;
486
- border-color: #c12e2a;
487
- }
488
-
489
- .btn-danger:focus, .btn-danger.focus {
490
- -webkit-box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.5);
491
- box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.5);
492
- }
493
-
494
- .btn-danger.disabled, .btn-danger:disabled {
495
- background-color: #d9534f;
496
- border-color: #d9534f;
497
- }
498
-
499
- .btn-danger:active, .btn-danger.active,
500
- .show > .btn-danger.dropdown-toggle {
501
- color: #fff;
502
- background-color: #c9302c;
503
- background-image: none;
504
- border-color: #c12e2a;
505
- }
506
-
507
- .btn-outline-primary {
508
- color: #0275d8;
509
- background-image: none;
510
- background-color: transparent;
511
- border-color: #0275d8;
512
- }
513
-
514
- .btn-outline-primary:hover {
515
- color: #fff;
516
- background-color: #0275d8;
517
- border-color: #0275d8;
518
- }
519
-
520
- .btn-outline-primary:focus, .btn-outline-primary.focus {
521
- -webkit-box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.5);
522
- box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.5);
523
- }
524
-
525
- .btn-outline-primary.disabled, .btn-outline-primary:disabled {
526
- color: #0275d8;
527
- background-color: transparent;
528
- }
529
-
530
- .btn-outline-primary:active, .btn-outline-primary.active,
531
- .show > .btn-outline-primary.dropdown-toggle {
532
- color: #fff;
533
- background-color: #0275d8;
534
- border-color: #0275d8;
535
- }
536
-
537
- .btn-outline-secondary {
538
- color: #ccc;
539
- background-image: none;
540
- background-color: transparent;
541
- border-color: #ccc;
542
- }
543
-
544
- .btn-outline-secondary:hover {
545
- color: #fff;
546
- background-color: #ccc;
547
- border-color: #ccc;
548
- }
549
-
550
- .btn-outline-secondary:focus, .btn-outline-secondary.focus {
551
- -webkit-box-shadow: 0 0 0 2px rgba(204, 204, 204, 0.5);
552
- box-shadow: 0 0 0 2px rgba(204, 204, 204, 0.5);
553
- }
554
-
555
- .btn-outline-secondary.disabled, .btn-outline-secondary:disabled {
556
- color: #ccc;
557
- background-color: transparent;
558
- }
559
-
560
- .btn-outline-secondary:active, .btn-outline-secondary.active,
561
- .show > .btn-outline-secondary.dropdown-toggle {
562
- color: #fff;
563
- background-color: #ccc;
564
- border-color: #ccc;
565
- }
566
-
567
- .btn-outline-info {
568
- color: #5bc0de;
569
- background-image: none;
570
- background-color: transparent;
571
- border-color: #5bc0de;
572
- }
573
-
574
- .btn-outline-info:hover {
575
- color: #fff;
576
- background-color: #5bc0de;
577
- border-color: #5bc0de;
578
- }
579
-
580
- .btn-outline-info:focus, .btn-outline-info.focus {
581
- -webkit-box-shadow: 0 0 0 2px rgba(91, 192, 222, 0.5);
582
- box-shadow: 0 0 0 2px rgba(91, 192, 222, 0.5);
583
- }
584
-
585
- .btn-outline-info.disabled, .btn-outline-info:disabled {
586
- color: #5bc0de;
587
- background-color: transparent;
588
- }
589
-
590
- .btn-outline-info:active, .btn-outline-info.active,
591
- .show > .btn-outline-info.dropdown-toggle {
592
- color: #fff;
593
- background-color: #5bc0de;
594
- border-color: #5bc0de;
595
- }
596
-
597
- .btn-outline-success {
598
- color: #5cb85c;
599
- background-image: none;
600
- background-color: transparent;
601
- border-color: #5cb85c;
602
- }
603
-
604
- .btn-outline-success:hover {
605
- color: #fff;
606
- background-color: #5cb85c;
607
- border-color: #5cb85c;
608
- }
609
-
610
- .btn-outline-success:focus, .btn-outline-success.focus {
611
- -webkit-box-shadow: 0 0 0 2px rgba(92, 184, 92, 0.5);
612
- box-shadow: 0 0 0 2px rgba(92, 184, 92, 0.5);
613
- }
614
-
615
- .btn-outline-success.disabled, .btn-outline-success:disabled {
616
- color: #5cb85c;
617
- background-color: transparent;
618
- }
619
-
620
- .btn-outline-success:active, .btn-outline-success.active,
621
- .show > .btn-outline-success.dropdown-toggle {
622
- color: #fff;
623
- background-color: #5cb85c;
624
- border-color: #5cb85c;
625
- }
626
-
627
- .btn-outline-warning {
628
- color: #f0ad4e;
629
- background-image: none;
630
- background-color: transparent;
631
- border-color: #f0ad4e;
632
- }
633
-
634
- .btn-outline-warning:hover {
635
- color: #fff;
636
- background-color: #f0ad4e;
637
- border-color: #f0ad4e;
638
- }
639
-
640
- .btn-outline-warning:focus, .btn-outline-warning.focus {
641
- -webkit-box-shadow: 0 0 0 2px rgba(240, 173, 78, 0.5);
642
- box-shadow: 0 0 0 2px rgba(240, 173, 78, 0.5);
643
- }
644
-
645
- .btn-outline-warning.disabled, .btn-outline-warning:disabled {
646
- color: #f0ad4e;
647
- background-color: transparent;
648
- }
649
-
650
- .btn-outline-warning:active, .btn-outline-warning.active,
651
- .show > .btn-outline-warning.dropdown-toggle {
652
- color: #fff;
653
- background-color: #f0ad4e;
654
- border-color: #f0ad4e;
655
- }
656
-
657
- .btn-outline-danger {
658
- color: #d9534f;
659
- background-image: none;
660
- background-color: transparent;
661
- border-color: #d9534f;
662
- }
663
-
664
- .btn-outline-danger:hover {
665
- color: #fff;
666
- background-color: #d9534f;
667
- border-color: #d9534f;
668
- }
669
-
670
- .btn-outline-danger:focus, .btn-outline-danger.focus {
671
- -webkit-box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.5);
672
- box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.5);
673
- }
674
-
675
- .btn-outline-danger.disabled, .btn-outline-danger:disabled {
676
- color: #d9534f;
677
- background-color: transparent;
678
- }
679
-
680
- .btn-outline-danger:active, .btn-outline-danger.active,
681
- .show > .btn-outline-danger.dropdown-toggle {
682
- color: #fff;
683
- background-color: #d9534f;
684
- border-color: #d9534f;
685
- }
686
-
687
- .btn-link {
688
- font-weight: normal;
689
- color: #0275d8;
690
- border-radius: 0;
691
- }
692
-
693
- .btn-link, .btn-link:active, .btn-link.active, .btn-link:disabled {
694
- background-color: transparent;
695
- }
696
-
697
- .btn-link, .btn-link:focus, .btn-link:active {
698
- border-color: transparent;
699
- }
700
-
701
- .btn-link:hover {
702
- border-color: transparent;
703
- }
704
-
705
- .btn-link:focus, .btn-link:hover {
706
- color: #014c8c;
707
- text-decoration: underline;
708
- background-color: transparent;
709
- }
710
-
711
- .btn-link:disabled {
712
- color: #636c72;
713
- }
714
-
715
- .btn-link:disabled:focus, .btn-link:disabled:hover {
716
- text-decoration: none;
717
- }
718
-
719
- .btn-lg, .btn-group-lg > .btn {
720
- padding: 0.75rem 1.5rem;
721
- font-size: 1.25rem;
722
- border-radius: 0.3rem;
723
- }
724
-
725
- .btn-sm, .btn-group-sm > .btn {
726
- padding: 0.25rem 0.5rem;
727
- font-size: 0.875rem;
728
- border-radius: 0.2rem;
729
- }
730
-
731
- .btn-block {
732
- display: block;
733
- width: 100%;
734
- }
735
-
736
- .btn-block + .btn-block {
737
- margin-top: 0.5rem;
738
- }
739
-
740
- input[type="submit"].btn-block,
741
- input[type="reset"].btn-block,
742
- input[type="button"].btn-block {
743
- width: 100%;
744
- }
745
-
746
- .fade {
747
- opacity: 0;
748
- -webkit-transition: opacity 0.15s linear;
749
- -o-transition: opacity 0.15s linear;
750
- transition: opacity 0.15s linear;
751
- }
752
- }
753
-
754
- .go-pro-button {
755
- background-color: #4CAF50;
756
- border: 2px solid #4CAF50;
757
- color: white;
758
- padding: 12px 18px;
759
- text-align: center;
760
- text-decoration: none;
761
- display: inline-block;
762
- font-size: 16px;
763
- margin: 4px 2px;
764
- cursor: pointer;
765
- border-radius: 10px;
766
- }
767
-
768
- .go-pro-button {
769
- -webkit-transition-duration: 0.4s; /* Safari */
770
- transition-duration: 0.4s;
771
- }
772
-
773
- .go-pro-button:hover {
774
- background-color: white;
775
- color: black;
776
- border: 2px solid #4CAF50;
777
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
classes/AdvancedRules.php DELETED
@@ -1,22 +0,0 @@
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/BulkUnloads.php CHANGED
@@ -77,7 +77,7 @@ class BulkUnloads
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
  /**
77
  $this->data['nonce_name'] = Update::NONCE_FIELD_NAME;
78
  $this->data['nonce_action'] = Update::NONCE_ACTION_NAME;
79
 
80
+ Main::instance()->parseTemplate('admin-page-settings-bulk-unloads', $this->data, true);
81
  }
82
 
83
  /**
classes/GetHelp.php DELETED
@@ -1,27 +0,0 @@
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/HomePage.php CHANGED
@@ -73,6 +73,6 @@ class HomePage
73
  $wpacuSettings = new Settings;
74
  $this->data['wpacu_settings'] = $wpacuSettings->getAll();
75
 
76
- Main::instance()->parseTemplate('settings-home-page', $this->data, true);
77
  }
78
  }
73
  $wpacuSettings = new Settings;
74
  $this->data['wpacu_settings'] = $wpacuSettings->getAll();
75
 
76
+ Main::instance()->parseTemplate('admin-page-settings-homepage', $this->data, true);
77
  }
78
  }
classes/Info.php ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ namespace WpAssetCleanUp;
3
+
4
+ /**
5
+ * Class Info
6
+ * @package WpAssetCleanUp
7
+ */
8
+ class Info
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 help()
24
+ {
25
+ Main::instance()->parseTemplate('admin-page-get-help', $this->data, true);
26
+ }
27
+
28
+ /**
29
+ *
30
+ */
31
+ public function pagesInfo()
32
+ {
33
+ Main::instance()->parseTemplate('admin-page-pages-info', $this->data, true);
34
+ }
35
+
36
+ /**
37
+ *
38
+ */
39
+ public function license()
40
+ {
41
+ Main::instance()->parseTemplate('admin-page-license', $this->data, true);
42
+ }
43
+ }
classes/Main.php CHANGED
@@ -267,7 +267,7 @@ class Main
267
  if (isset($obj->public) && $obj->public > 0) {
268
  add_meta_box(
269
  WPACU_PLUGIN_NAME.'_asset_list',
270
- __('Asset CleanUp Lite', WPACU_PLUGIN_NAME),
271
  array($this, 'renderMetaBoxContent'),
272
  $postType,
273
  'advanced',
@@ -722,7 +722,6 @@ class Main
722
  as they are loaded only when you (or other admin) manage the assets, never for your website visitors */
723
  $skipStyles = array(
724
  'admin-bar',
725
- WPACU_PLUGIN_NAME . '-icheck-square-red',
726
  WPACU_PLUGIN_NAME . '-style'
727
  );
728
 
@@ -775,7 +774,6 @@ class Main
775
  as they are loaded only when you (or other admin) manage the assets, never for your website visitors */
776
  $skipScripts = array(
777
  'admin-bar',
778
- WPACU_PLUGIN_NAME . '-icheck',
779
  WPACU_PLUGIN_NAME.'-script'
780
  );
781
 
@@ -997,7 +995,7 @@ class Main
997
 
998
  // Post Information
999
  if ($postId > 0) {
1000
- $postData = get_post( $postId );
1001
 
1002
  if (isset($postData->post_type)) {
1003
  // Current Post Type
@@ -1005,7 +1003,7 @@ class Main
1005
 
1006
  // Are there any assets unloaded for this specific post type?
1007
  // (e.g. page, post, product (from WooCommerce) or other custom post type)
1008
- $data['bulk_unloaded']['post_type'] = $this->getBulkUnload( 'post_type', $data['post_type'] );
1009
  $data['bulk_unloaded_type'] = 'post_type';
1010
  $data['is_bulk_unloadable'] = true;
1011
  }
267
  if (isset($obj->public) && $obj->public > 0) {
268
  add_meta_box(
269
  WPACU_PLUGIN_NAME.'_asset_list',
270
+ __('Asset CleanUp', WPACU_PLUGIN_NAME),
271
  array($this, 'renderMetaBoxContent'),
272
  $postType,
273
  'advanced',
722
  as they are loaded only when you (or other admin) manage the assets, never for your website visitors */
723
  $skipStyles = array(
724
  'admin-bar',
 
725
  WPACU_PLUGIN_NAME . '-style'
726
  );
727
 
774
  as they are loaded only when you (or other admin) manage the assets, never for your website visitors */
775
  $skipScripts = array(
776
  'admin-bar',
 
777
  WPACU_PLUGIN_NAME.'-script'
778
  );
779
 
995
 
996
  // Post Information
997
  if ($postId > 0) {
998
+ $postData = get_post($postId);
999
 
1000
  if (isset($postData->post_type)) {
1001
  // Current Post Type
1003
 
1004
  // Are there any assets unloaded for this specific post type?
1005
  // (e.g. page, post, product (from WooCommerce) or other custom post type)
1006
+ $data['bulk_unloaded']['post_type'] = $this->getBulkUnload('post_type', $data['post_type']);
1007
  $data['bulk_unloaded_type'] = 'post_type';
1008
  $data['is_bulk_unloadable'] = true;
1009
  }
classes/Menu.php CHANGED
@@ -27,7 +27,7 @@ class Menu
27
  add_action('admin_menu', array($this, 'activeMenu'));
28
 
29
  if (isset($_GET['page']) && $_GET['page'] === 'wpassetcleanup_go_pro') {
30
- header('Location: '.WPACU_PLUGIN_GO_PRO_LINK);
31
  exit();
32
  }
33
  }
@@ -42,8 +42,8 @@ class Menu
42
  }
43
 
44
  add_menu_page(
45
- __('Asset CleanUp Lite', WPACU_PLUGIN_NAME),
46
- __('Asset CleanUp Lite', WPACU_PLUGIN_NAME),
47
  self::$capability,
48
  self::$slug,
49
  array(new Settings, 'settingsPage'),
@@ -59,15 +59,34 @@ class Menu
59
  array(new HomePage, 'page')
60
  );
61
 
62
- add_submenu_page(
 
 
 
 
 
 
 
 
 
63
  self::$slug,
64
- __('Bulk Unloads', WPACU_PLUGIN_NAME),
65
- __('Bulk Unloads', WPACU_PLUGIN_NAME),
66
  self::$capability,
67
  WPACU_PLUGIN_NAME.'_bulk_unloads',
68
  array(new BulkUnloads, 'pageBulkUnloads')
69
  );
70
 
 
 
 
 
 
 
 
 
 
 
71
  // Get Help | Support Page
72
  add_submenu_page(
73
  self::$slug,
@@ -75,14 +94,14 @@ class Menu
75
  __('Get Help', WPACU_PLUGIN_NAME),
76
  self::$capability,
77
  WPACU_PLUGIN_NAME.'_get_help',
78
- array(new GetHelp, 'page')
79
  );
80
 
81
  // Upgrade to "Go Pro" | Redirects to sale page
82
  add_submenu_page(
83
  self::$slug,
84
  __('Go Pro', WPACU_PLUGIN_NAME),
85
- __('Go Pro <span style="font-size: 16px;" class="dashicons dashicons-star-empty"></span>', WPACU_PLUGIN_NAME),
86
  self::$capability,
87
  WPACU_PLUGIN_NAME.'_go_pro',
88
  function() {}
27
  add_action('admin_menu', array($this, 'activeMenu'));
28
 
29
  if (isset($_GET['page']) && $_GET['page'] === 'wpassetcleanup_go_pro') {
30
+ header('Location: '.WPACU_PLUGIN_GO_PRO_URL);
31
  exit();
32
  }
33
  }
42
  }
43
 
44
  add_menu_page(
45
+ __('Asset CleanUp', WPACU_PLUGIN_NAME),
46
+ __('Asset CleanUp', WPACU_PLUGIN_NAME),
47
  self::$capability,
48
  self::$slug,
49
  array(new Settings, 'settingsPage'),
59
  array(new HomePage, 'page')
60
  );
61
 
62
+ add_submenu_page(
63
+ self::$slug,
64
+ __('Pages Info', WPACU_PLUGIN_NAME),
65
+ __('Pages Info', WPACU_PLUGIN_NAME),
66
+ self::$capability,
67
+ WPACU_PLUGIN_NAME.'_pages_info',
68
+ array(new Info, 'pagesInfo')
69
+ );
70
+
71
+ add_submenu_page(
72
  self::$slug,
73
+ __('Bulk Unloaded', WPACU_PLUGIN_NAME),
74
+ __('Bulk Unloaded', WPACU_PLUGIN_NAME),
75
  self::$capability,
76
  WPACU_PLUGIN_NAME.'_bulk_unloads',
77
  array(new BulkUnloads, 'pageBulkUnloads')
78
  );
79
 
80
+ // Get Help | Support Page
81
+ add_submenu_page(
82
+ self::$slug,
83
+ __('License', WPACU_PLUGIN_NAME),
84
+ __('License', WPACU_PLUGIN_NAME),
85
+ self::$capability,
86
+ WPACU_PLUGIN_NAME.'_license',
87
+ array(new Info, 'license')
88
+ );
89
+
90
  // Get Help | Support Page
91
  add_submenu_page(
92
  self::$slug,
94
  __('Get Help', WPACU_PLUGIN_NAME),
95
  self::$capability,
96
  WPACU_PLUGIN_NAME.'_get_help',
97
+ array(new Info, 'help')
98
  );
99
 
100
  // Upgrade to "Go Pro" | Redirects to sale page
101
  add_submenu_page(
102
  self::$slug,
103
  __('Go Pro', WPACU_PLUGIN_NAME),
104
+ __('Go Pro', WPACU_PLUGIN_NAME).' <span style="font-size: 16px;" class="dashicons dashicons-star-filled"></span>',
105
  self::$capability,
106
  WPACU_PLUGIN_NAME.'_go_pro',
107
  function() {}
classes/OwnAssets.php CHANGED
@@ -56,7 +56,7 @@ class OwnAssets
56
  $this->loadPluginAssets = true;
57
  }
58
 
59
- if (in_array($page, array(WPACU_PLUGIN_NAME.'_settings', WPACU_PLUGIN_NAME.'_home_page', WPACU_PLUGIN_NAME.'_bulk_unloads', WPACU_PLUGIN_NAME.'_get_help'))) {
60
  $this->loadPluginAssets = true;
61
  }
62
 
@@ -93,7 +93,6 @@ class OwnAssets
93
  {
94
  $styleRelPath = '/assets/style.min.css';
95
  wp_enqueue_style(WPACU_PLUGIN_NAME . '-style', plugins_url($styleRelPath, WPACU_PLUGIN_FILE), array(), $this->_assetVer($styleRelPath));
96
- wp_enqueue_style(WPACU_PLUGIN_NAME . '-icheck-square-red', plugins_url('/assets/icheck/skins/square/red.css', WPACU_PLUGIN_FILE));
97
  }
98
 
99
  /**
@@ -162,7 +161,6 @@ class OwnAssets
162
  ))
163
  );
164
 
165
- wp_enqueue_script(WPACU_PLUGIN_NAME . '-icheck', plugins_url('/assets/icheck/icheck.min.js', WPACU_PLUGIN_FILE), array('jquery'));
166
  wp_enqueue_script(WPACU_PLUGIN_NAME . '-script');
167
  }
168
 
@@ -173,7 +171,6 @@ class OwnAssets
173
  {
174
  $styleRelPath = '/assets/style.min.css';
175
  wp_enqueue_style(WPACU_PLUGIN_NAME . '-style', plugins_url($styleRelPath, WPACU_PLUGIN_FILE), array(), $this->_assetVer($styleRelPath));
176
- wp_enqueue_style(WPACU_PLUGIN_NAME . '-icheck-square-red', plugins_url('/assets/icheck/skins/square/red.css', WPACU_PLUGIN_FILE));
177
  }
178
 
179
  /**
@@ -182,7 +179,6 @@ class OwnAssets
182
  public function enqueuePublicScripts()
183
  {
184
  $scriptRelPath = '/assets/script.min.js';
185
- wp_enqueue_script(WPACU_PLUGIN_NAME . '-icheck', plugins_url('/assets/icheck/icheck.min.js', WPACU_PLUGIN_FILE), array('jquery'));
186
  wp_enqueue_script(WPACU_PLUGIN_NAME . '-script', plugins_url($scriptRelPath, WPACU_PLUGIN_FILE), array('jquery'), $this->_assetVer($scriptRelPath));
187
  }
188
 
56
  $this->loadPluginAssets = true;
57
  }
58
 
59
+ if (strpos($page, WPACU_PLUGIN_NAME) === 0) {
60
  $this->loadPluginAssets = true;
61
  }
62
 
93
  {
94
  $styleRelPath = '/assets/style.min.css';
95
  wp_enqueue_style(WPACU_PLUGIN_NAME . '-style', plugins_url($styleRelPath, WPACU_PLUGIN_FILE), array(), $this->_assetVer($styleRelPath));
 
96
  }
97
 
98
  /**
161
  ))
162
  );
163
 
 
164
  wp_enqueue_script(WPACU_PLUGIN_NAME . '-script');
165
  }
166
 
171
  {
172
  $styleRelPath = '/assets/style.min.css';
173
  wp_enqueue_style(WPACU_PLUGIN_NAME . '-style', plugins_url($styleRelPath, WPACU_PLUGIN_FILE), array(), $this->_assetVer($styleRelPath));
 
174
  }
175
 
176
  /**
179
  public function enqueuePublicScripts()
180
  {
181
  $scriptRelPath = '/assets/script.min.js';
 
182
  wp_enqueue_script(WPACU_PLUGIN_NAME . '-script', plugins_url($scriptRelPath, WPACU_PLUGIN_FILE), array('jquery'), $this->_assetVer($scriptRelPath));
183
  }
184
 
classes/Plugin.php CHANGED
@@ -52,7 +52,7 @@ class Plugin
52
 
53
  // If the pro version is not installed (active or not), show the upgrade link
54
  if (! array_key_exists('wp-asset-clean-up-pro/wpacu.php', $allPlugins)) {
55
- $links['go_pro'] = '<a target="_blank" style="font-weight: bold;" href="https://www.gabelivan.com/items/wp-asset-cleanup-pro/">Go Pro For More Benefits</a>';
56
  }
57
  // [/wpacu_lite]
58
 
@@ -69,7 +69,7 @@ class Plugin
69
  {
70
  if (isset($_GET['page']) && strpos($_GET['page'], WPACU_PLUGIN_NAME) !== false) {
71
  $reviewUrl = 'https://wordpress.org/support/plugin/wp-asset-clean-up/reviews/?filter=5#new-post';
72
- $text = 'Thank you for using my plugin <span class="dashicons dashicons-smiley"></span> &nbsp;&nbsp; If you like it, please <a target="_blank" href="'.$reviewUrl.'"><strong>rate</strong> Asset CleanUp Lite</a> <a target="_blank" href="'.$reviewUrl.'"><span class="dashicons dashicons-wpacu dashicons-star-filled"></span><span class="dashicons dashicons-wpacu dashicons-star-filled"></span><span class="dashicons dashicons-wpacu dashicons-star-filled"></span><span class="dashicons dashicons-wpacu dashicons-star-filled"></span><span class="dashicons dashicons-wpacu dashicons-star-filled"></span></a> on WordPress.org to help me spread the word to the community.';
73
  }
74
 
75
  return $text;
52
 
53
  // If the pro version is not installed (active or not), show the upgrade link
54
  if (! array_key_exists('wp-asset-clean-up-pro/wpacu.php', $allPlugins)) {
55
+ $links['go_pro'] = '<a target="_blank" style="font-weight: bold;" href="'.WPACU_PLUGIN_GO_PRO_URL.'">Go Pro</a>';
56
  }
57
  // [/wpacu_lite]
58
 
69
  {
70
  if (isset($_GET['page']) && strpos($_GET['page'], WPACU_PLUGIN_NAME) !== false) {
71
  $reviewUrl = 'https://wordpress.org/support/plugin/wp-asset-clean-up/reviews/?filter=5#new-post';
72
+ $text = 'Thank you for using my plugin <span class="dashicons dashicons-smiley"></span> &nbsp;&nbsp; If you like it, please <a target="_blank" href="'.$reviewUrl.'"><strong>rate</strong> Asset CleanUp</a> <a target="_blank" href="'.$reviewUrl.'"><span class="dashicons dashicons-wpacu dashicons-star-filled"></span><span class="dashicons dashicons-wpacu dashicons-star-filled"></span><span class="dashicons dashicons-wpacu dashicons-star-filled"></span><span class="dashicons dashicons-wpacu dashicons-star-filled"></span><span class="dashicons dashicons-wpacu dashicons-star-filled"></span></a> on WordPress.org to help me spread the word to the community.';
73
  }
74
 
75
  return $text;
classes/Settings.php CHANGED
@@ -43,7 +43,6 @@ class Settings
43
 
44
  if (array_key_exists('page', $_GET) && $_GET['page'] === 'wpassetcleanup_settings') {
45
  add_action('admin_notices', array($this, 'notices'));
46
- add_action('admin_head', array($this, 'inlineHead'));
47
  }
48
  }
49
 
@@ -109,7 +108,7 @@ class Settings
109
  $data['disable_comment_reply'] = 1;
110
  }
111
 
112
- Main::instance()->parseTemplate('settings-plugin', $data, true);
113
  }
114
 
115
  /**
@@ -227,72 +226,4 @@ class Settings
227
  update_option(WPACU_PLUGIN_NAME . '_settings', json_encode($settings), 'no');
228
  $this->status['updated'] = true;
229
  }
230
-
231
- /**
232
- *
233
- */
234
- public function inlineHead()
235
- {
236
- ?>
237
- <style type="text/css">
238
- .wpacu_switch {
239
- position: relative;
240
- display: inline-block;
241
- width: 60px;
242
- height: 34px;
243
- }
244
-
245
- .wpacu_switch input {
246
- display: none;
247
- }
248
-
249
- .wpacu_slider {
250
- position: absolute;
251
- cursor: pointer;
252
- top: 0;
253
- left: 0;
254
- right: 0;
255
- bottom: 0;
256
- background-color: #ccc;
257
- -webkit-transition: .4s;
258
- transition: .4s;
259
- }
260
-
261
- .wpacu_slider:before {
262
- position: absolute;
263
- content: "";
264
- height: 26px;
265
- width: 26px;
266
- left: 4px;
267
- bottom: 4px;
268
- background-color: white;
269
- -webkit-transition: .4s;
270
- transition: .4s;
271
- }
272
-
273
- .toplevel_page_wpassetcleanup_settings input:checked + .wpacu_slider {
274
- background-color: #52af00;
275
- }
276
-
277
- .toplevel_page_wpassetcleanup_settings input:focus + .wpacu_slider {
278
- box-shadow: 0 0 1px #52af00;
279
- }
280
-
281
- .toplevel_page_wpassetcleanup_settings input:checked + .wpacu_slider:before {
282
- -webkit-transform: translateX(26px);
283
- -ms-transform: translateX(26px);
284
- transform: translateX(26px);
285
- }
286
-
287
- /* Rounded sliders */
288
- .toplevel_page_wpassetcleanup_settings .wpacu_slider.wpacu_round {
289
- border-radius: 34px;
290
- }
291
-
292
- .toplevel_page_wpassetcleanup_settings .wpacu_slider.wpacu_round:before {
293
- border-radius: 50%;
294
- }
295
- </style>
296
- <?php
297
- }
298
  }
43
 
44
  if (array_key_exists('page', $_GET) && $_GET['page'] === 'wpassetcleanup_settings') {
45
  add_action('admin_notices', array($this, 'notices'));
 
46
  }
47
  }
48
 
108
  $data['disable_comment_reply'] = 1;
109
  }
110
 
111
+ Main::instance()->parseTemplate('admin-page-settings-plugin', $data, true);
112
  }
113
 
114
  /**
226
  update_option(WPACU_PLUGIN_NAME . '_settings', json_encode($settings), 'no');
227
  $this->status['updated'] = true;
228
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
229
  }
classes/Update.php CHANGED
@@ -129,7 +129,7 @@ class Update
129
  */
130
  public function savePost($postId, $post = array())
131
  {
132
- // This is triggered only if the "Asset CleanUp Lite" meta box was loaded with the list of assets
133
  // Otherwise, $_POST[WPACU_PLUGIN_NAME] will be taken as empty which might be not if there are values in the database
134
  if (! (isset($_POST['wpacu_unload_assets_area_loaded']) && $_POST['wpacu_unload_assets_area_loaded'])) {
135
  return;
@@ -405,16 +405,16 @@ class Update
405
  $isUpdated = false;
406
 
407
  if (! empty($stylesList)) {
408
- foreach ($stylesList as $handle => $value) {
409
- if ($value == 'remove') {
410
  $removeStylesList[] = $handle;
411
  }
412
  }
413
  }
414
 
415
  if (! empty($scriptsList)) {
416
- foreach ($scriptsList as $handle => $value) {
417
- if ($value == 'remove') {
418
  $removeScriptsList[] = $handle;
419
  }
420
  }
129
  */
130
  public function savePost($postId, $post = array())
131
  {
132
+ // This is triggered only if the "Asset CleanUp" meta box was loaded with the list of assets
133
  // Otherwise, $_POST[WPACU_PLUGIN_NAME] will be taken as empty which might be not if there are values in the database
134
  if (! (isset($_POST['wpacu_unload_assets_area_loaded']) && $_POST['wpacu_unload_assets_area_loaded'])) {
135
  return;
405
  $isUpdated = false;
406
 
407
  if (! empty($stylesList)) {
408
+ foreach ($stylesList as $handle => $action) {
409
+ if ($action == 'remove') {
410
  $removeStylesList[] = $handle;
411
  }
412
  }
413
  }
414
 
415
  if (! empty($scriptsList)) {
416
+ foreach ($scriptsList as $handle => $action) {
417
+ if ($action == 'remove') {
418
  $removeScriptsList[] = $handle;
419
  }
420
  }
readme.txt CHANGED
@@ -1,29 +1,29 @@
1
- === Asset CleanUp Lite: Page Speed Optimizer ===
2
  Contributors: gabelivan
3
- Tags: speed, pagespeed, dequeue style, dequeue script, unload style, unload script, disable emojis
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7GJZCW6RD8ECS
5
  Requires at least: 4.0
6
  Tested up to: 4.9.8
7
- Stable tag: 1.2.6.9
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl.html
10
 
11
  Make your website load FASTER by preventing specific scripts (.JS) & styles (.CSS) from loading on pages/posts and home page. Works best in addition to a cache plugin!
12
 
13
  == Description ==
14
- * Make your web pages load FASTER with "Asset CleanUp Lite: Page Speed Optimizer"
15
  * Faster page load = Happier Visitors = More Conversions
16
 
17
  There are often times when you are using a theme and a number of plugins which are enabled and run on the same page. However, you don't need to use all of them and to improve the speed of your website and make the HTML source code cleaner (convenient for debugging purposes), it's better to prevent those styles and scripts from loading.
18
 
19
  For instance, you might use a plugin that generates contact forms and it loads its assets (.CSS and .JS files) in every page of your website instead of doing it only in the /contact page (if that's the only place where you need it).
20
 
21
- "Asset CleanUp Lite" scans your page and detects all the assets that are loaded. All you have to do when editing a page/post is just to select the ones you DO NOT wish to load.
22
 
23
- The plugin works best in combination with a cache plugin such as [WP Rocket](https://www.gabelivan.com/visit/wp-rocket)
24
 
25
  = This plugin's benefits include =
26
- * Decreases number of HTTP requests loaded (important for faster load)
27
  * Reduces the HTML code of the actual page (that's even better if GZIP compression is enabled)
28
  * Makes source code easier to scan in case you're a developer and want to search for something
29
  * Remove possible conflicts between plugins/theme (e.g. 2 JavaScript files that are loading from different plugins and they interfere one with another)
@@ -42,8 +42,8 @@ Give Asset CleanUp a try! If you want to unlock more features, you can <a href="
42
  == Installation ==
43
  1. Upload the "wp-asset-clean-up" folder in your plugins folder
44
  2. Activate the plugin (if server's PHP version is below 5.3, it will show you an error and activation will not be made)
45
- 3. Edit any page / post / custom post and you will see a meta box called "Asset CleanUp Lite" which will load the list of all the loaded .css and .js files
46
- 4. To unload the assets for the "Home Page", go to "Asset CleanUp Lite" menu on the left panel of the Dashboard
47
 
48
  == Frequently Asked Questions ==
49
  = What PHP version is required for this plugin to work? =
@@ -52,7 +52,7 @@ Give Asset CleanUp a try! If you want to unlock more features, you can <a href="
52
 
53
  = Is this plugin a caching one?
54
 
55
- No, Asset CleanUp does not do any page caching. It just unloads .css and .js when needed. This, combined with an existing caching plugin, will make your website pages load faster and get a higher score in speed checking tools such as GTMetrix (Google PageSpeed and YSlow).
56
 
57
  = Has this plugin been tested with other caching / speed booster plugins?
58
 
@@ -107,11 +107,17 @@ If that's the case, then it's advisable to consult with a developer (ideally the
107
 
108
  == Screenshots ==
109
  1. When editing a post/page (custom post type as well) a meta box will load with the asset list
110
- 2. Styles (.CSS) loaded for the home page when accessing the "Asset CleanUp Lite" Dashboard's menu
111
- 3. Scripts (.JS) loaded for the home page having an alert message when accessing the "Asset CleanUp Lite" Dashboard's menu
112
  4. Scripts (.JS) are selected for site-wide unload
113
 
114
  == Changelog ==
 
 
 
 
 
 
115
  = 1.2.6.9 =
116
  * Made sure that default.php (new file) is not missing within /templates/meta-box-loaded-assets/ directory
117
 
@@ -119,7 +125,7 @@ If that's the case, then it's advisable to consult with a developer (ideally the
119
  * Important: If you use the premium extension, please upgrade to 1.0.3
120
  * Removed "WP" from the plugin's title
121
  * Prevent the LITE plugin from loading if the PRO version is enabled as loading both plugins is not relevant anymore
122
- * Avoided loading Asset CleanUp Lite's own CSS and JS within the Dashboard view as they are irrelevant since the're only loaded for the admins that manage the plugin
123
 
124
  = 1.2.6.7 =
125
  * Bug Fix: "Unload on All Pages of [post type here] post type" was not showing within the Dashboard view
1
+ === Asset CleanUp: Page Speed Optimization ===
2
  Contributors: gabelivan
3
+ Tags: speed, pagespeed, page speed, cleanup, remove style, remove script, dequeue style, dequeue script, unload style, unload script, disable emojis
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7GJZCW6RD8ECS
5
  Requires at least: 4.0
6
  Tested up to: 4.9.8
7
+ Stable tag: 1.2.7
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl.html
10
 
11
  Make your website load FASTER by preventing specific scripts (.JS) & styles (.CSS) from loading on pages/posts and home page. Works best in addition to a cache plugin!
12
 
13
  == Description ==
14
+ * Make your web pages load FASTER with **Asset CleanUp: Page Speed Optimization**
15
  * Faster page load = Happier Visitors = More Conversions
16
 
17
  There are often times when you are using a theme and a number of plugins which are enabled and run on the same page. However, you don't need to use all of them and to improve the speed of your website and make the HTML source code cleaner (convenient for debugging purposes), it's better to prevent those styles and scripts from loading.
18
 
19
  For instance, you might use a plugin that generates contact forms and it loads its assets (.CSS and .JS files) in every page of your website instead of doing it only in the /contact page (if that's the only place where you need it).
20
 
21
+ "Asset CleanUp" scans your page and detects all the assets that are loaded. All you have to do when editing a page/post is just to select the ones you DO NOT wish to load.
22
 
23
+ The plugin works best in combination with a cache plugin such as [WP Rocket](https://www.gabelivan.com/visit/wp-rocket).
24
 
25
  = This plugin's benefits include =
26
+ * Decreases number of HTTP requests loaded (important for faster page load)
27
  * Reduces the HTML code of the actual page (that's even better if GZIP compression is enabled)
28
  * Makes source code easier to scan in case you're a developer and want to search for something
29
  * Remove possible conflicts between plugins/theme (e.g. 2 JavaScript files that are loading from different plugins and they interfere one with another)
42
  == Installation ==
43
  1. Upload the "wp-asset-clean-up" folder in your plugins folder
44
  2. Activate the plugin (if server's PHP version is below 5.3, it will show you an error and activation will not be made)
45
+ 3. Edit any page / post / custom post and you will see a meta box called "Asset CleanUp" which will load the list of all the loaded .css and .js files
46
+ 4. To unload the assets for the "Home Page", go to "Asset CleanUp" menu on the left panel of the Dashboard
47
 
48
  == Frequently Asked Questions ==
49
  = What PHP version is required for this plugin to work? =
52
 
53
  = Is this plugin a caching one?
54
 
55
+ No, Asset CleanUp does not do any page caching. It just helps you unload .css and .js that you choose as not needed from specific pages (or all pages). This, combined with an existing caching plugin, will make your website pages load faster and get a higher score in speed checking tools such as GTMetrix (Google PageSpeed and YSlow).
56
 
57
  = Has this plugin been tested with other caching / speed booster plugins?
58
 
107
 
108
  == Screenshots ==
109
  1. When editing a post/page (custom post type as well) a meta box will load with the asset list
110
+ 2. Styles (.CSS) loaded for the home page when accessing the "Asset CleanUp" Dashboard's menu
111
+ 3. Scripts (.JS) loaded for the home page having an alert message when accessing the "Asset CleanUp" Dashboard's menu
112
  4. Scripts (.JS) are selected for site-wide unload
113
 
114
  == Changelog ==
115
+ = 1.2.7 =
116
+ * Removed iCheck and replaced with pure CSS to make the plugin lighter
117
+ * Added top menu for easier navigation between plugin's pages;
118
+ * Added "Pages Info" with explanations regarding the type of pages that can be unloaded
119
+ * Removed "Lite" from the plugin's title
120
+
121
  = 1.2.6.9 =
122
  * Made sure that default.php (new file) is not missing within /templates/meta-box-loaded-assets/ directory
123
 
125
  * Important: If you use the premium extension, please upgrade to 1.0.3
126
  * Removed "WP" from the plugin's title
127
  * Prevent the LITE plugin from loading if the PRO version is enabled as loading both plugins is not relevant anymore
128
+ * Avoided loading Asset CleanUp's own CSS and JS within the Dashboard view as they are irrelevant since the're only loaded for the admins that manage the plugin
129
 
130
  = 1.2.6.7 =
131
  * Bug Fix: "Unload on All Pages of [post type here] post type" was not showing within the Dashboard view
templates/_top-area.php ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * No direct access to this file
4
+ */
5
+ if (! isset($data)) {
6
+ exit;
7
+ }
8
+
9
+ $wpacu_top_area_links = array(
10
+ 'admin.php?page=wpassetcleanup_settings' => array(
11
+ 'icon' => '<span class="dashicons dashicons-admin-generic"></span>',
12
+ 'title' => 'Settings',
13
+ 'page' => 'wpassetcleanup_settings'
14
+ ),
15
+ 'admin.php?page=wpassetcleanup_home_page' => array(
16
+ 'icon' => '<span class="dashicons dashicons-admin-home"></span>',
17
+ 'title' => 'Homepage',
18
+ 'page' => 'wpassetcleanup_home_page',
19
+ ),
20
+ 'admin.php?page=wpassetcleanup_pages_info' => array(
21
+ 'icon' => '<span class="dashicons dashicons-info"></span>',
22
+ 'title' => 'Pages Info',
23
+ 'page' => 'wpassetcleanup_pages_info'
24
+ ),
25
+ 'admin.php?page=wpassetcleanup_bulk_unloads' => array(
26
+ 'icon' => '<span class="dashicons dashicons-networking"></span>',
27
+ 'title' => 'Bulk Unloaded',
28
+ 'page' => 'wpassetcleanup_bulk_unloads'
29
+ ),
30
+ 'admin.php?page=wpassetcleanup_license' => array(
31
+ 'icon' => '<span class="dashicons dashicons-awards"></span>',
32
+ 'title' => 'License',
33
+ 'page' => 'wpassetcleanup_license'
34
+ ),
35
+ 'admin.php?page=wpassetcleanup_get_help' => array(
36
+ 'icon' => '<span class="dashicons dashicons-sos"></span>',
37
+ 'title' => 'Get Help',
38
+ 'page' => 'wpassetcleanup_get_help'
39
+ ),
40
+ // [wpacu_lite]
41
+ 'admin.php?page=wpassetcleanup_go_pro' => array(
42
+ 'icon' => '<span class="dashicons dashicons-star-filled"></span>',
43
+ 'title' => 'Go Pro',
44
+ 'page' => 'wpassetcleanup_go_pro',
45
+ 'target' => '_blank'
46
+ )
47
+ // [/wpacu_lite]
48
+ );
49
+
50
+ global $current_screen;
51
+
52
+ $wpacu_current_page = str_replace(array('asset-cleanup_page_', 'toplevel_page_'), '', $current_screen->base);
53
+
54
+ //echo '<pre>'; print_r($current_screen);
55
+
56
+ // class="wpacu-tab-current"
57
+ ?>
58
+ <div class="wpacu-tabs wpacu-tabs-style-topline">
59
+ <nav>
60
+ <ul>
61
+ <?php foreach ($wpacu_top_area_links as $wpacu_link => $wpacu_info) { ?>
62
+ <li <?php if ($wpacu_current_page == $wpacu_info['page']) { echo 'class="wpacu-tab-current"'; } ?>>
63
+ <a <?php if (isset($wpacu_info['target']) && $wpacu_info['target'] === '_blank') { ?>target="_blank"<?php } ?> href="<?php echo $wpacu_link; ?>"><?php echo $wpacu_info['icon']; ?> <span><?php echo $wpacu_info['title']; ?></span></a>
64
+ </li>
65
+ <?php } ?>
66
+ </ul>
67
+ </nav>
68
+ </div><!-- /tabs -->
templates/{get-help.php → admin-page-get-help.php} RENAMED
@@ -5,23 +5,25 @@
5
  if (! isset($data)) {
6
  exit;
7
  }
 
 
8
  ?>
9
  <div class="wrap wpacu-get-help-wrap">
10
- <h1><?php echo apply_filters('wpacu_plugin_page_title', 'Asset CleanUp Lite'); ?></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 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
  &nbsp;&nbsp;
26
  <a class="btn btn-secondary" href="https://codeable.io/?ref=d3TOr">Find out more</a>
27
  </div>
5
  if (! isset($data)) {
6
  exit;
7
  }
8
+
9
+ include_once '_top-area.php';
10
  ?>
11
  <div class="wrap wpacu-get-help-wrap">
12
+ <h1>Asset CleanUp</h1>
13
  <h2><?php _e('In case you are stuck and need assistance, I can help you!', WPACU_PLUGIN_NAME); ?></h2>
14
 
15
+ <p><span class="dashicons dashicons-info"></span> If you believe the plugin has a bug (e.g. you're getting JavaScript or PHP errors generated by 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>
16
 
17
  <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>
18
 
19
  <ul class="hire-reasons">
20
  <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>
21
+ <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>
22
  <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>
23
  </ul>
24
 
25
  <div class="wpacu-btns">
26
+ <a class="btn btn-success" href="https://app.codeable.io/tasks/new?ref=d3TOr&preferredContractor=28168">Hire an Expert</a>
27
  &nbsp;&nbsp;
28
  <a class="btn btn-secondary" href="https://codeable.io/?ref=d3TOr">Find out more</a>
29
  </div>
templates/admin-page-license.php ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * No direct access to this file
4
+ */
5
+ if (! isset($data)) {
6
+ exit;
7
+ }
8
+
9
+ include_once '_top-area.php';
10
+ ?>
11
+ <div class="wrap">
12
+ <h1>Asset CleanUp</h1>
13
+ <p>You're using the lite version of Asset CleanUp, so no license key is needed. You'll receive automatic notifications whenever a new version is available for download.</p>
14
+ <p><em>To unlock all features and get premium support, you can <a href="<?php echo WPACU_PLUGIN_GO_PRO_URL; ?>">upgrade to the Pro version</a>.</em></p>
15
+ </div>
templates/admin-page-pages-info.php ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * No direct access to this file
4
+ */
5
+ if (! isset($data)) {
6
+ exit;
7
+ }
8
+
9
+ include_once '_top-area.php';
10
+
11
+ // [wpacu_lite]
12
+ $availableForPro = '<a href="'.WPACU_PLUGIN_GO_PRO_URL.'" class="go-pro-link-no-style"><span class="tooltip">Available for Pro users<br />Click to upgrade!</span> <img width="20" height="20" src="'.WPACU_PLUGIN_URL.'/assets/icons/icon-lock.svg" valign="top" alt="" /></a>';
13
+ // [/wpacu_lite]
14
+ ?>
15
+ <div class="wrap">
16
+ <h1>Asset CleanUp</h1>
17
+
18
+ <!-- [wpacu_lite] -->
19
+ <p>* <em>Unloading assets (CSS &amp; JavaScript) for page types that have a locker next to their name requires an <a href="<?php echo WPACU_PLUGIN_GO_PRO_URL; ?>">upgrade to the Pro version</a>.</em></p>
20
+ <!-- [/wpacu_lite] -->
21
+
22
+ <div class="wpacu_table_wrap">
23
+ <table class="table table-striped">
24
+ <thead class="thead-default">
25
+ <tr>
26
+ <th align="left">PAGE TYPE</th>
27
+ <th align="left">DESCRIPTION</th>
28
+ </tr>
29
+ </thead>
30
+ <tbody>
31
+ <tr>
32
+ <td width="17%">Homepage</td>
33
+ <td>This could be: your latest posts or a static page ("Pages" type), depending on your configuration from <a target="_blank" href="https://codex.wordpress.org/Settings_Reading_Screen">Dashboard's "Settings" -&gt; "Reading"</a> page. If the home page is not a static page, but it's showing the latest posts (default view), then you can manage its assets from Asset CleanUp's "Homepage" tab above. -&gt; <a href="https://codex.wordpress.org/Settings_Reading_Screen#Reading_Settings">Read more about "Reading Settings" for "Front page displays"</a></td>
34
+ </tr>
35
+ <tr>
36
+ <td>Posts</td>
37
+ <td>Post Type: 'post' (e.g. blog entries) -&gt; <a href="https://codex.wordpress.org/Posts_Screen">read more</a></td>
38
+ </tr>
39
+ <tr>
40
+ <td>Pages</td>
41
+ <td>Post Type: 'page' (e.g. about us, contact) -&gt; <a href="https://codex.wordpress.org/Pages_Screen">read more</a></td>
42
+ </tr>
43
+ <tr>
44
+ <td>Attachment</td>
45
+ <td>Post Type: 'attachment' (e.g. files from <a target="_blank" href="https://codex.wordpress.org/Media_Library_Screen">"Media" -&gt; "Library"</a>, the page loaded usually prints the image or other media type) -&gt; <a href="https://codex.wordpress.org/Edit_Media">read more</a></td>
46
+ </tr>
47
+ <tr>
48
+ <td>Custom Post Type</td>
49
+ <td>Popular examples: 'product' created by WooCommerce, 'download' created by Easy Digital Downloads etc. -&gt; <a href="https://codex.wordpress.org/Post_Types#Custom_Post_Types">read more</a></td>
50
+ </tr>
51
+ <tr>
52
+ <td>Categories<?php echo $availableForPro; ?></td>
53
+ <td>Default Taxonomy (they are found in "Posts" -&gt; "Categories", accessing a category link reveals all the posts from that category) -&gt; <a href="https://codex.wordpress.org/Posts_Categories_Screen">read more</a></td>
54
+ </tr>
55
+ <tr>
56
+ <td>Tags<?php echo $availableForPro; ?></td>
57
+ <td>Default Taxonomy (they are found in "Posts" -&gt; "Tags", accessing a tag link reveals all the posts associated with the tag) -&gt; <a href="https://codex.wordpress.org/Posts_Tags_Screen">read more</a></td>
58
+ </tr>
59
+ <tr>
60
+ <td>Custom Taxonomy<?php echo $availableForPro; ?></td>
61
+ <td>Popular examples: 'product_cat' created by WooCommerce, 'download_category' created by Easy Digital Downloads etc. -&gt; <a href="https://codex.wordpress.org/Taxonomies#Custom_Taxonomies">read more</a></td>
62
+ </tr>
63
+ <tr>
64
+ <td>Search<?php echo $availableForPro; ?></td>
65
+ <td>Default Search Template (search.php -&gt; 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. <em>The assets can be unloaded in the front-end view ("Manage in the Front-end?" from "Settings" tab has to be enabled).</em></td>
66
+ </tr>
67
+ <tr>
68
+ <td>Author<?php echo $availableForPro; ?></td>
69
+ <td>Shows all posts belonging to a specific author (e.g. https://yourwebsite.com/author/yourname/). <em>The assets can be unloaded only in the front-end view ("Manage in the Front-end?" from "Settings" tab has to be enabled).</em></td>
70
+ </tr>
71
+ <tr>
72
+ <td>Date<?php echo $availableForPro; ?></td>
73
+ <td>Shows all posts based on the chosen date (e.g. https://yourwebsite.com/2018/08/). <em>The assets can be unloaded only in the front-end view ("Manage in the Front-end?" from "Settings" tab has to be enabled).</em></td>
74
+ </tr>
75
+ <tr>
76
+ <td>404 Not Found<?php echo $availableForPro; ?></td>
77
+ <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, the visitor typed the wrong URL to an article etc. (e.g. https://yourwebsite.com/this-is-a-non-existent-page/). <em>The assets can be unloaded only in the front-end view ("Manage in the Front-end?" from "Settings" tab has to be enabled).</em> -&gt; <a href="https://codex.wordpress.org/Creating_an_Error_404_Page">read more</a></td>
78
+ </tr>
79
+ </tbody>
80
+ </table>
81
+ </div>
82
+ </div>
templates/{settings-bulk-unloads.php → admin-page-settings-bulk-unloads.php} RENAMED
@@ -6,20 +6,28 @@ if (! isset($data)) {
6
  exit;
7
  }
8
 
9
- // TODO: Make sure other bulk unloaded elements such as "author", "taxonomy" etc. are here if pro version is enabled
 
 
 
 
10
  ?>
11
- <h1><?php echo apply_filters('wpacu_plugin_page_title', __('Asset CleanUp Lite', WPACU_PLUGIN_NAME)); ?></h1>
12
- <h2><?php _e('Bulk Unloads', WPACU_PLUGIN_NAME); ?></h2>
13
 
14
- <p>If <u>any of the options below are used</u>, then the assets will be shown here. <strong>Although, you can manage them when editing a page/post, this page will make things easier by seeing all the bulk unloads:</strong></p>
15
- <ul>
16
- <li>&#8594; Unload everywhere</li>
17
- <li>&#8594; Unload on All Pages of <em>[post type here]</em> post type</li>
18
- </ul>
 
19
 
20
  <nav class="nav-tab-wrapper">
21
  <a href="admin.php?page=wpassetcleanup_bulk_unloads" class="nav-tab <?php if ($data['for'] === 'everywhere') { ?>nav-tab-active<?php } ?>">Everywhere</a>
22
  <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>
 
 
 
 
 
23
  </nav>
24
 
25
  <div class="clear"></div>
@@ -92,7 +100,7 @@ if ($data['for'] === 'everywhere') {
92
  <?php
93
  } else {
94
  ?>
95
- <p>There are no bulk unloaded styles for your selection.</p>
96
  <?php
97
  }
98
  ?>
@@ -125,7 +133,7 @@ if ($data['for'] === 'everywhere') {
125
  <?php
126
  } else {
127
  ?>
128
- <p>There are no unloaded scripts for your selection.</p>
129
  <?php
130
  }
131
  ?>
@@ -177,7 +185,7 @@ if ($data['for'] === 'everywhere') {
177
  <?php
178
  } else {
179
  ?>
180
- <p>There are no unloaded styles for your selection.</p>
181
  <?php
182
  }
183
  ?>
@@ -210,7 +218,7 @@ if ($data['for'] === 'everywhere') {
210
  <?php
211
  } else {
212
  ?>
213
- <p>There are no unloaded scripts for your selection.</p>
214
  <?php
215
  }
216
  ?>
@@ -246,10 +254,11 @@ $noAssetsToRemove = (empty($data['values']['styles']) && empty($data['values']['
246
  value="<?php esc_attr_e('Update', WPACU_PLUGIN_NAME); ?>" />
247
  <?php
248
  if ($noAssetsToRemove) {
249
- ?>
250
- &nbsp;<small>Note: There are no unloaded assets (scripts &amp; styles) to be managed</small>
251
- <?php
252
  }
253
  ?>
254
  </p>
255
- </form>
 
6
  exit;
7
  }
8
 
9
+ include_once '_top-area.php';
10
+
11
+ // [wpacu_lite]
12
+ $availableForPro = '<span class="tooltip">Available for Pro users<br />Click to upgrade!</span> <img style="opacity: 0.4;" width="20" height="20" src="'.WPACU_PLUGIN_URL.'/assets/icons/icon-lock.svg" valign="top" alt="" />';
13
+ // [/wpacu_lite]
14
  ?>
 
 
15
 
16
+ <div class="wrap">
17
+ <h1>Asset CleanUp</h1>
18
+ <h2><?php _e('Bulk Unloaded', WPACU_PLUGIN_NAME); ?></h2>
19
+
20
+ <p>If you have used rules such as <em>"Unload everywhere"</em> or <em>"Unload on All Pages of <strong>post</strong> post type"</em> etc., then the assets will be shown here. Although, you can manage them when editing a page, post etc., this page will make things easier by seeing all the bulk unloads:</p>
21
+ <p>A bulk unload is considered anything that is applied once and it has effect on multiple pages of the same kind or site-wide such as "Unload everywhere".</p>
22
 
23
  <nav class="nav-tab-wrapper">
24
  <a href="admin.php?page=wpassetcleanup_bulk_unloads" class="nav-tab <?php if ($data['for'] === 'everywhere') { ?>nav-tab-active<?php } ?>">Everywhere</a>
25
  <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>
26
+ <a href="<?php echo WPACU_PLUGIN_GO_PRO_URL; ?>" target="_blank" class="nav-tab go-pro-link-no-style"><?php echo $availableForPro; ?> &nbsp;Taxonomies</a>
27
+ <a href="<?php echo WPACU_PLUGIN_GO_PRO_URL; ?>" target="_blank" class="nav-tab go-pro-link-no-style"><?php echo $availableForPro; ?> &nbsp;Authors</a>
28
+ <a href="<?php echo WPACU_PLUGIN_GO_PRO_URL; ?>" target="_blank" class="nav-tab go-pro-link-no-style"><?php echo $availableForPro; ?> &nbsp;Search Results</a>
29
+ <a href="<?php echo WPACU_PLUGIN_GO_PRO_URL; ?>" target="_blank" class="nav-tab go-pro-link-no-style"><?php echo $availableForPro; ?> &nbsp;Dates</a>
30
+ <a href="<?php echo WPACU_PLUGIN_GO_PRO_URL; ?>" target="_blank" class="nav-tab go-pro-link-no-style"><?php echo $availableForPro; ?> &nbsp;404 Not Found</a>
31
  </nav>
32
 
33
  <div class="clear"></div>
100
  <?php
101
  } else {
102
  ?>
103
+ <p>There are no site-wide unloaded styles.</p>
104
  <?php
105
  }
106
  ?>
133
  <?php
134
  } else {
135
  ?>
136
+ <p>There are no site-wide unloaded scripts.</p>
137
  <?php
138
  }
139
  ?>
185
  <?php
186
  } else {
187
  ?>
188
+ <p>There are no bulk unloaded styles for the <strong><?php echo $data['post_type']; ?></strong> post type.</p>
189
  <?php
190
  }
191
  ?>
218
  <?php
219
  } else {
220
  ?>
221
+ <p>There are no bulk unloaded scripts for the <strong><?php echo $data['post_type']; ?></strong> post type.</p>
222
  <?php
223
  }
224
  ?>
254
  value="<?php esc_attr_e('Update', WPACU_PLUGIN_NAME); ?>" />
255
  <?php
256
  if ($noAssetsToRemove) {
257
+ ?>
258
+ &nbsp;<small>Note: As there are no unloaded assets (scripts &amp; styles) to be managed, the button is disabled.</small>
259
+ <?php
260
  }
261
  ?>
262
  </p>
263
+ </form>
264
+ </div>
templates/{settings-home-page.php → admin-page-settings-homepage.php} RENAMED
@@ -5,8 +5,11 @@
5
  if (! isset($data)) {
6
  exit;
7
  }
 
 
8
  ?>
9
- <h1><?php echo apply_filters('wpacu_plugin_page_title', __('Asset CleanUp Lite', WPACU_PLUGIN_NAME)); ?></h1>
 
10
  <h2><?php _e('Home Page Scripts &amp; Styles Management', WPACU_PLUGIN_NAME); ?></h2>
11
 
12
  <?php
@@ -43,7 +46,7 @@ if ($data['show_on_front'] === 'page') {
43
  ?>
44
  </ul>
45
  </div>
46
- <p><?php echo sprintf(__('To read more about creating a static front page in WordPress, %scheck the Codex%s.', WPACU_PLUGIN_NAME), '<a href="https://codex.wordpress.org/Creating_a_Static_Front_Page">', '</a>'); ?></p>
47
  <?php
48
  } else {
49
  ?>
@@ -70,3 +73,5 @@ if ($data['show_on_front'] === 'page') {
70
  </form>
71
  <?php
72
  }
 
 
5
  if (! isset($data)) {
6
  exit;
7
  }
8
+
9
+ include_once '_top-area.php';
10
  ?>
11
+ <div class="wrap">
12
+ <h1>Asset CleanUp</h1>
13
  <h2><?php _e('Home Page Scripts &amp; Styles Management', WPACU_PLUGIN_NAME); ?></h2>
14
 
15
  <?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.', WPACU_PLUGIN_NAME), '<a target="_blank" href="https://codex.wordpress.org/Creating_a_Static_Front_Page">', '</a>'); ?></p>
50
  <?php
51
  } else {
52
  ?>
73
  </form>
74
  <?php
75
  }
76
+ ?>
77
+ </div>
templates/{settings-plugin.php → admin-page-settings-plugin.php} RENAMED
@@ -5,9 +5,11 @@
5
  if (! isset($data)) {
6
  exit;
7
  }
 
 
8
  ?>
9
  <div class="wrap">
10
- <h1><?php echo apply_filters('wpacu_plugin_page_title', __('Asset CleanUp Lite', WPACU_PLUGIN_NAME)); ?></h1>
11
 
12
  <form method="post" action="">
13
  <input type="hidden" name="wpacu_settings_page" value="1" />
5
  if (! isset($data)) {
6
  exit;
7
  }
8
+
9
+ include_once '_top-area.php';
10
  ?>
11
  <div class="wrap">
12
+ <h1>Asset CleanUp</h1>
13
 
14
  <form method="post" action="">
15
  <input type="hidden" name="wpacu_settings_page" value="1" />
templates/meta-box-loaded-assets/_asset-script-rows.php ADDED
@@ -0,0 +1,237 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if (! isset($data)) {
3
+ exit;
4
+ }
5
+
6
+ foreach ($data['all']['scripts'] as $obj) {
7
+ $active = (isset($data['current']['scripts']) && in_array($obj->handle, $data['current']['scripts']));
8
+
9
+ $class = ($active) ? 'wpacu_not_load' : '';
10
+ $checked = ($active) ? 'checked="checked"' : '';
11
+
12
+ /*
13
+ * $isGlobalRule is only used to apply a red background in the script's area to point out that the script is unloaded
14
+ */
15
+ $globalUnloaded = $bulkTypeUnloaded = $isPostTypeUnloaded = $isLoadException = $isGlobalRule = false;
16
+
17
+ // Mark it as unloaded - Everywhere
18
+ if (in_array($obj->handle, $data['global_unload']['scripts']) && !$class) {
19
+ $globalUnloaded = $isGlobalRule = true;
20
+ }
21
+
22
+ // Mark it as unloaded - for the Current Post Type
23
+ if ($data['bulk_unloaded_type'] && in_array($obj->handle, $data['bulk_unloaded'][$data['bulk_unloaded_type']]['scripts'])) {
24
+ $bulkTypeUnloaded = $isGlobalRule = true;
25
+
26
+ if ($data['bulk_unloaded_type'] === 'post_type') {
27
+ $isPostTypeUnloaded = true;
28
+ }
29
+ }
30
+
31
+ if ($isGlobalRule) {
32
+ if (in_array($obj->handle, $data['load_exceptions']['scripts'])) {
33
+ $isLoadException = true;
34
+ } else {
35
+ $class .= ' wpacu_not_load';
36
+ }
37
+ }
38
+
39
+ $class .= ' script_'.$obj->handle;
40
+ ?>
41
+ <tr class="wpacu_asset_row <?php echo $class; ?>">
42
+ <td valign="top" style="width: 100%;">
43
+ <p style="margin-top: 0;">
44
+ <label for="script_<?php echo $obj->handle; ?>"> <?php _e('Handle:', WPACU_PLUGIN_NAME); ?> <strong><span style="color: green;"><?php echo $obj->handle; ?></span></strong></label>
45
+ <?php
46
+ if (isset($obj->wp) && $obj->wp) {
47
+ ?>
48
+ <span class="dashicons dashicons-warning wordpress-core-file"><span class="tooltip">WordPress Core File<br />Not sure if needed or not? In this case, it's better to leave it loaded to avoid breaking the website.</span></span>
49
+ <?php
50
+ }
51
+ ?>
52
+ </p>
53
+
54
+ <div style="padding: 5px 10px; margin: 15px 0; background: white; border: 1px solid #eee; border-radius: 5px;">
55
+ <ul class="wpacu_asset_options" <?php /* [wpacu_lite] */ if ($globalUnloaded || $isPostTypeUnloaded) { /* [/wpacu_lite] */ echo 'style="display: none;"'; } ?>>
56
+ <li class="wpacu_unload_this_page">
57
+ <label class="wpacu_switch"><input class="input-unload-on-this-page" id="script_<?php echo $obj->handle; ?>" <?php /* [wpacu_lite] */ if ($globalUnloaded || $isPostTypeUnloaded) { /* [/wpacu_lite] */ echo 'disabled="disabled"'; } echo $checked; ?> name="<?php echo WPACU_PLUGIN_NAME; ?>[scripts][]" type="checkbox" value="<?php echo $obj->handle; ?>" /><span class="wpacu_slider wpacu_round"></span></label> <label class="wpacu_slider_text" for="script_<?php echo $obj->handle; ?>">Unload on this page</label>
58
+ </li>
59
+ </ul>
60
+
61
+ <?php
62
+ /* [wpacu_lite] */ if ($globalUnloaded || $isPostTypeUnloaded) { /* [/wpacu_lite] */
63
+ ?>
64
+ <em>"Unload on this page" rule is locked and irrelevant as there are global rules set below that overwrite it. Once all the rules below are removed, this option will become available again.</em>
65
+ <?php
66
+ }
67
+ ?>
68
+ </div>
69
+
70
+ <div style="padding: 5px 10px; margin: 15px 0; background: white; border: 1px solid #eee; border-radius: 5px;">
71
+ <?php
72
+ // Unloaded Everywhere
73
+ if ($globalUnloaded) {
74
+ ?>
75
+ <p><strong style="color: #d54e21;">This JavaScript file is unloaded everywhere</strong></p>
76
+ <?php
77
+ }
78
+ ?>
79
+
80
+
81
+ <ul class="wpacu_asset_options">
82
+ <?php
83
+ // [START] UNLOAD EVERYWHERE
84
+ if ($globalUnloaded) {
85
+ ?>
86
+ <li>
87
+ <label><input data-handle="<?php echo $obj->handle; ?>"
88
+ class="wpacu_bulk_option wpacu_script"
89
+ type="radio"
90
+ name="wpacu_options_scripts[<?php echo $obj->handle; ?>]"
91
+ checked="checked"
92
+ value="default" />
93
+ Keep the unload global rule</label>
94
+ </li>
95
+
96
+ <li>
97
+ <label><input data-handle="<?php echo $obj->handle; ?>"
98
+ class="wpacu_bulk_option wpacu_script"
99
+ type="radio"
100
+ name="wpacu_options_scripts[<?php echo $obj->handle; ?>]"
101
+ value="remove" />
102
+ Remove global unload rule</label>
103
+ </li>
104
+ <?php
105
+ } else {
106
+ ?>
107
+ <li>
108
+ <label><input data-handle="<?php echo $obj->handle; ?>"
109
+ class="wpacu_global_unload wpacu_global_script"
110
+ id="wpacu_global_unload_script_<?php echo $obj->handle; ?>"
111
+ type="checkbox"
112
+ name="wpacu_global_unload_scripts[]"
113
+ value="<?php echo $obj->handle; ?>"/>
114
+ Unload Everywhere</label>
115
+ </li>
116
+ <?php
117
+ }
118
+ // [END] UNLOAD EVERYWHERE
119
+ ?>
120
+
121
+ </ul>
122
+ </div>
123
+
124
+ <?php if ($data['bulk_unloaded_type'] === 'post_type') { ?>
125
+ <div style="padding: 5px 10px; margin: 15px 0; background: white; border: 1px solid #eee; border-radius: 5px;">
126
+ <?php } ?>
127
+
128
+ <?php
129
+ // Unloaded On All Pages Belonging to the page's Post Type
130
+ if ($isPostTypeUnloaded) {
131
+ ?>
132
+ <p><strong style="color: #d54e21;">This JavaScript file is unloaded on all <u><?php echo $data['post_type']; ?></u> post types.</strong></p>
133
+ <div class="clear"></div>
134
+ <?php
135
+ }
136
+ ?>
137
+
138
+ <ul class="wpacu_asset_options">
139
+ <?php
140
+ if ($data['bulk_unloaded_type'] === 'post_type') {
141
+ // [START] ALL PAGES HAVING THE SAME POST TYPE
142
+ if ($isPostTypeUnloaded) {
143
+ ?>
144
+ <li>
145
+ <label><input data-handle="<?php echo $obj->handle; ?>"
146
+ class="wpacu_post_type_option wpacu_post_type_script wpacu_keep_bulk_rule"
147
+ type="radio"
148
+ name="wpacu_options_post_type_scripts[<?php echo $obj->handle; ?>]"
149
+ checked="checked"
150
+ value="default"/>
151
+ Keep rule</label>
152
+ </li>
153
+
154
+ <li>
155
+ <label><input data-handle="<?php echo $obj->handle; ?>"
156
+ class="wpacu_post_type_option wpacu_remove_bulk_rule wpacu_post_type_script"
157
+ type="radio"
158
+ name="wpacu_options_post_type_scripts[<?php echo $obj->handle; ?>]"
159
+ value="remove"/>
160
+ Remove rule</label>
161
+ </li>
162
+ <?php
163
+ } else {
164
+ ?>
165
+ <li>
166
+ <label><input data-handle="<?php echo $obj->handle; ?>"
167
+ class="wpacu_bulk_unload wpacu_post_type_unload wpacu_post_type_script"
168
+ id="wpacu_global_unload_post_type_script_<?php echo $obj->handle; ?>"
169
+ type="checkbox"
170
+ name="wpacu_bulk_unload_scripts[post_type][<?php echo $data['post_type']; ?>][]"
171
+ value="<?php echo $obj->handle; ?>"/>
172
+ Unload on All Pages of <strong><?php echo $data['post_type']; ?></strong> post type</label>
173
+ </li>
174
+ <?php
175
+ }
176
+ }
177
+ // [END] ALL PAGES HAVING THE SAME POST TYPE
178
+ ?>
179
+ </ul>
180
+ <?php if ($data['bulk_unloaded_type'] === 'post_type') { ?>
181
+ </div>
182
+ <?php } ?>
183
+
184
+ <?php
185
+ do_action('wpacu_pro_bulk_unload_output', $data, $obj, 'js');
186
+ ?>
187
+
188
+ <ul class="wpacu_asset_options">
189
+ <li id="wpacu_load_it_option_script_<?php echo $obj->handle; ?>">
190
+ <label><input data-handle="<?php echo $obj->handle; ?>"
191
+ id="wpacu_script_load_it_<?php echo $obj->handle; ?>"
192
+ class="wpacu_load_it_option wpacu_script wpacu_load_exception"
193
+ type="checkbox"
194
+ name="wpacu_scripts_load_it[]"
195
+ <?php if ($isLoadException) { ?> checked="checked" <?php } ?>
196
+ value="<?php echo $obj->handle; ?>" />
197
+ Load it on this page (make exception<?php if (! $isGlobalRule) { echo ' * works only IF any of bulk rule above is selected'; } ?>)</label>
198
+ </li>
199
+ </ul>
200
+ <?php
201
+ if (isset($obj->src) && $obj->src != '') {
202
+ ?>
203
+ <p><?php _e('Source:', WPACU_PLUGIN_NAME); ?> <a target="_blank" href="<?php echo $obj->srcHref; ?>"><?php echo $obj->src; ?></a></p>
204
+ <?php
205
+ }
206
+
207
+ if (isset($obj->extra->data) && ! empty($obj->extra->data)) { ?>
208
+ <p><?php _e('Inline:', WPACU_PLUGIN_NAME); ?> <em><?php echo strip_tags($obj->extra->data); ?></em></p>
209
+ <?php
210
+ }
211
+
212
+ $extraInfo = array();
213
+
214
+ if (! empty($obj->deps)) {
215
+ $extraInfo[] = '<strong>'.__('Depends on:', WPACU_PLUGIN_NAME).'</strong> '.implode(', ', $obj->deps);
216
+ }
217
+
218
+ if (isset($obj->ver) && $obj->ver != '') {
219
+ $extraInfo[] = '<strong>'.__('Version:', WPACU_PLUGIN_NAME).'</strong> '.$obj->ver;
220
+ }
221
+
222
+ if (isset($obj->position) && $obj->position != '') {
223
+ $extraInfo[] = '<strong>'.__('Position:', WPACU_PLUGIN_NAME).'</strong> '.(($obj->position == 'head') ? 'HEAD' : 'BODY');
224
+ }
225
+
226
+ // [wpacu_lite]
227
+ $extraInfo[] = '<strong>'.__('File Size:', WPACU_PLUGIN_NAME).'</strong> <a class="go-pro-link-no-style" href="'.WPACU_PLUGIN_GO_PRO_URL.'"><span class="tooltip">Upgrade to Pro to unlock all features</span><img width="20" height="20" src="'.WPACU_PLUGIN_URL.'/assets/icons/icon-lock.svg" valign="top" alt="" /> Pro Version</a>';
228
+ // [/wpacu_lite]
229
+
230
+ if (! empty($extraInfo)) {
231
+ echo '<p>'.implode(' &nbsp;/&nbsp; ', $extraInfo).'</p>';
232
+ }
233
+ ?>
234
+ </td>
235
+ </tr>
236
+ <?php
237
+ }
templates/meta-box-loaded-assets/_asset-style-rows.php ADDED
@@ -0,0 +1,236 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if (! isset($data)) {
3
+ exit;
4
+ }
5
+
6
+ foreach ($data['all']['styles'] as $obj) {
7
+ $active = (isset($data['current']['styles']) && in_array($obj->handle, $data['current']['styles']));
8
+
9
+ $class = ($active) ? 'wpacu_not_load' : '';
10
+ $checked = ($active) ? 'checked="checked"' : '';
11
+
12
+ /*
13
+ * $isGlobalRule is only used to apply a red background in the style's area to point out that the style is unloaded
14
+ * is set to `true` if either the asset is unloaded everywhere or it's unloaded on a group of pages (such as all pages belonging to 'page' post type)
15
+ */
16
+ $globalUnloaded = $bulkTypeUnloaded = $isPostTypeUnloaded = $isLoadException = $isGlobalRule = false;
17
+
18
+ // Mark it as unloaded - Everywhere
19
+ if (in_array($obj->handle, $data['global_unload']['styles'])) {
20
+ $globalUnloaded = $isGlobalRule = true;
21
+ }
22
+
23
+ // Mark it as unloaded - for the Current Post Type
24
+ if ($data['bulk_unloaded_type'] && in_array($obj->handle, $data['bulk_unloaded'][$data['bulk_unloaded_type']]['styles'])) {
25
+ $bulkTypeUnloaded = $isGlobalRule = true;
26
+
27
+ if ($data['bulk_unloaded_type'] === 'post_type') {
28
+ $isPostTypeUnloaded = true;
29
+ }
30
+ }
31
+
32
+ if ($isGlobalRule) {
33
+ if (in_array($obj->handle, $data['load_exceptions']['styles'])) {
34
+ $isLoadException = true;
35
+ } else {
36
+ $class .= ' wpacu_not_load';
37
+ }
38
+ }
39
+
40
+ $class .= ' style_'.$obj->handle;
41
+ ?>
42
+ <tr class="wpacu_asset_row <?php echo $class; ?>">
43
+ <td valign="top" style="width: 100%;">
44
+ <p style="margin-top: 0;">
45
+ <label for="style_<?php echo $obj->handle; ?>"><?php _e('Handle:', WPACU_PLUGIN_NAME); ?> <strong><span style="color: green;"><?php echo $obj->handle; ?></span></strong></label>
46
+ <?php
47
+ if (isset($obj->wp) && $obj->wp) {
48
+ ?>
49
+ <span class="dashicons dashicons-warning"></span>
50
+ <?php
51
+ }
52
+ ?>
53
+ </p>
54
+
55
+ <div style="padding: 5px 10px; margin: 15px 0; background: white; border: 1px solid #eee; border-radius: 5px;">
56
+ <ul class="wpacu_asset_options" <?php /* [wpacu_lite] */ if ($globalUnloaded || $isPostTypeUnloaded) { /* [/wpacu_lite] */ echo 'style="display: none;"'; } ?>>
57
+ <li class="wpacu_unload_this_page">
58
+ <label class="wpacu_switch"><input class="input-unload-on-this-page" id="style_<?php echo $obj->handle; ?>" <?php /* [wpacu_lite] */ if ($globalUnloaded || $isPostTypeUnloaded) { /* [/wpacu_lite] */ echo 'disabled="disabled"'; } echo $checked; ?> name="<?php echo WPACU_PLUGIN_NAME; ?>[styles][]" type="checkbox" value="<?php echo $obj->handle; ?>" /><span class="wpacu_slider wpacu_round"></span></label> <label class="wpacu_slider_text" for="style_<?php echo $obj->handle; ?>">Unload on this page</label>
59
+ </li>
60
+ </ul>
61
+
62
+ <?php
63
+ /* [wpacu_lite] */ if ($globalUnloaded || $isPostTypeUnloaded) { /* [/wpacu_lite] */
64
+ ?>
65
+ <em>"Unload on this page" rule is locked and irrelevant as there are global rules set below that overwrite it. Once all the rules below are removed, this option will become available again.</em>
66
+ <?php
67
+ }
68
+ ?>
69
+ </div>
70
+
71
+ <div style="padding: 5px 10px; margin: 10px 0; background: white; border: 1px solid #eee; border-radius: 5px;">
72
+ <?php
73
+ // Unloaded Everywhere
74
+ if ($globalUnloaded) {
75
+ ?>
76
+ <p><strong style="color: #d54e21;">This stylesheet file is unloaded everywhere</strong></p>
77
+ <div class="clear"></div>
78
+ <?php
79
+ }
80
+ ?>
81
+
82
+ <ul class="wpacu_asset_options">
83
+ <?php
84
+ // [START] UNLOAD EVERYWHERE
85
+ if ($globalUnloaded) {
86
+ ?>
87
+ <li>
88
+ <label><input data-handle="<?php echo $obj->handle; ?>"
89
+ class="wpacu_global_option wpacu_style"
90
+ type="radio"
91
+ name="wpacu_options_styles[<?php echo $obj->handle; ?>]"
92
+ checked="checked"
93
+ value="default" />
94
+ Keep the unload global rule</label>
95
+ </li>
96
+
97
+ <li>
98
+ <label><input data-handle="<?php echo $obj->handle; ?>"
99
+ class="wpacu_global_option wpacu_style"
100
+ type="radio"
101
+ name="wpacu_options_styles[<?php echo $obj->handle; ?>]"
102
+ value="remove" />
103
+ Remove global unload rule</label>
104
+ </li>
105
+ <?php
106
+ } else {
107
+ ?>
108
+ <li>
109
+ <label><input data-handle="<?php echo $obj->handle; ?>"
110
+ class="wpacu_global_unload wpacu_global_style"
111
+ id="wpacu_global_unload_style_<?php echo $obj->handle; ?>" type="checkbox"
112
+ name="wpacu_global_unload_styles[]" value="<?php echo $obj->handle; ?>"/>
113
+ Unload Everywhere</label>
114
+ </li>
115
+ <?php
116
+ }
117
+ // [END] UNLOAD EVERYWHERE
118
+ ?>
119
+ </ul>
120
+ </div>
121
+
122
+ <?php if ($data['bulk_unloaded_type'] === 'post_type') { ?>
123
+ <div style="padding: 5px 10px; margin: 15px 0; background: white; border: 1px solid #eee; border-radius: 5px;">
124
+ <?php } ?>
125
+
126
+ <?php
127
+ // Unloaded On All Pages Belonging to the page's Post Type
128
+ if ($isPostTypeUnloaded) {
129
+ ?>
130
+ <p><strong style="color: #d54e21;">This stylesheet file is unloaded on all <u><?php echo $data['post_type']; ?></u> post types.</strong></p>
131
+ <div class="clear"></div>
132
+ <?php
133
+ }
134
+ ?>
135
+
136
+ <?php
137
+ if ($data['bulk_unloaded_type'] === 'post_type') {
138
+ ?>
139
+ <ul class="wpacu_asset_options">
140
+ <?php
141
+ // [START] ALL PAGES HAVING THE SAME POST TYPE
142
+ if ($isPostTypeUnloaded) {
143
+ ?>
144
+ <li>
145
+ <label><input data-handle="<?php echo $obj->handle; ?>"
146
+ class="wpacu_bulk_option wpacu_style wpacu_keep_bulk_rule"
147
+ type="radio"
148
+ name="wpacu_options_post_type_styles[<?php echo $obj->handle; ?>]"
149
+ checked="checked"
150
+ value="default"/>
151
+ Keep rule</label>
152
+ </li>
153
+
154
+ <li>
155
+ <label><input data-handle="<?php echo $obj->handle; ?>"
156
+ class="wpacu_bulk_option wpacu_style wpacu_remove_bulk_rule"
157
+ type="radio"
158
+ name="wpacu_options_post_type_styles[<?php echo $obj->handle; ?>]"
159
+ value="remove"/>
160
+ Remove rule</label>
161
+ </li>
162
+ <?php
163
+ } else {
164
+ ?>
165
+ <li>
166
+ <label><input data-handle="<?php echo $obj->handle; ?>"
167
+ class="wpacu_bulk_unload wpacu_post_type_unload wpacu_post_type_style"
168
+ id="wpacu_bulk_unload_post_type_style_<?php echo $obj->handle; ?>"
169
+ type="checkbox"
170
+ name="wpacu_bulk_unload_styles[post_type][<?php echo $data['post_type']; ?>][]"
171
+ value="<?php echo $obj->handle; ?>"/>
172
+ Unload on All Pages of <strong><?php echo $data['post_type']; ?></strong> post type</label>
173
+ </li>
174
+ <?php
175
+ }
176
+ ?>
177
+ </ul>
178
+ <?php
179
+ }
180
+ // [END] ALL PAGES HAVING THE SAME POST TYPE
181
+ ?>
182
+
183
+ <?php if ($data['bulk_unloaded_type'] === 'post_type') { ?>
184
+ </div>
185
+ <?php } ?>
186
+
187
+ <?php
188
+ // [@pro]
189
+ do_action('wpacu_pro_bulk_unload_output', $data, $obj, 'css');
190
+ // [/@pro]
191
+ ?>
192
+
193
+ <ul class="wpacu_asset_options">
194
+ <li id="wpacu_load_it_option_style_<?php echo $obj->handle; ?>">
195
+ <label><input data-handle="<?php echo $obj->handle; ?>"
196
+ id="wpacu_style_load_it_<?php echo $obj->handle; ?>"
197
+ class="wpacu_load_it_option wpacu_style wpacu_load_exception"
198
+ type="checkbox"
199
+ <?php if ($isLoadException) { ?> checked="checked" <?php } ?>
200
+ name="wpacu_styles_load_it[]"
201
+ value="<?php echo $obj->handle; ?>"/>
202
+ Load it on this page (make exception<?php if (! $isGlobalRule) { echo ' * works only IF any of bulk rule above is selected'; } ?>)</label>
203
+ </li>
204
+ </ul>
205
+ <?php
206
+ if (isset($obj->src) && $obj->src != '') {
207
+ ?>
208
+ <p><?php _e('Source:', WPACU_PLUGIN_NAME); ?> <a target="_blank" href="<?php echo $obj->srcHref; ?>"><?php echo $obj->src; ?></a></p>
209
+ <?php }
210
+
211
+ if (isset($obj->extra->data) && ! empty($obj->extra->data)) { ?>
212
+ <p><?php _e('Inline:', WPACU_PLUGIN_NAME); ?> <em><?php echo $obj->extra->data; ?></em></p>
213
+ <?php }
214
+
215
+ $extraInfo = array();
216
+
217
+ if (! empty($obj->deps)) {
218
+ $extraInfo[] = '<strong>'.__('Depends on:', WPACU_PLUGIN_NAME).'</strong> '.implode(', ', $obj->deps);
219
+ }
220
+
221
+ if ($obj->ver) {
222
+ $extraInfo[] = '<strong>'.__('Version:', WPACU_PLUGIN_NAME).'</strong> '.$obj->ver;
223
+ }
224
+
225
+ // [wpacu_lite]
226
+ $extraInfo[] = '<strong>'.__('File Size:', WPACU_PLUGIN_NAME).'</strong> <a href="'.WPACU_PLUGIN_GO_PRO_URL.'" class="go-pro-link-no-style"><span class="tooltip">Upgrade to Pro to unlock all features</span><img width="20" height="20" src="'.WPACU_PLUGIN_URL.'/assets/icons/icon-lock.svg" valign="top" alt="" /> Pro Version</a>';
227
+ // [/wpacu_lite]
228
+
229
+ if (! empty($extraInfo)) {
230
+ echo '<p>'.implode(' &nbsp;/&nbsp; ', $extraInfo).'</p>';
231
+ }
232
+ ?>
233
+ </td>
234
+ </tr>
235
+ <?php
236
+ }
templates/meta-box-loaded-assets/default.php CHANGED
@@ -17,9 +17,7 @@ if ($data['total_styles']) {
17
  <h4>&#10141; Total enqueued stylesheets: <strong><?php echo $data['total_styles']; ?></strong></h4>
18
  <?php
19
  }
20
- ?>
21
 
22
- <?php
23
  if (! empty($data['all']['styles'])) {
24
  ?>
25
  <p><?php echo sprintf(__('The following styles are loading on this page. Please select the ones that are %sNOT NEEDED%s. If you are not sure which ones to unload, it is better to leave them enabled (unchecked) and consult with a developer about unloading the assets.', WPACU_PLUGIN_NAME), '<span style="color: #CC0000;"><strong>', '</strong></span>'); ?></p>
@@ -40,222 +38,8 @@ if (! empty($data['all']['styles'])) {
40
  <table class="wp-asset-clean-up wp-list-table widefat wpacu_widefat fixed striped wpacu_striped">
41
  <tbody>
42
  <?php
43
- foreach ($data['all']['styles'] as $obj) {
44
- $active = (isset($data['current']['styles']) && in_array($obj->handle, $data['current']['styles']));
45
-
46
- $class = ($active) ? 'wpacu_not_load' : '';
47
- $checked = ($active) ? 'checked="checked"' : '';
48
-
49
- /*
50
- * $isGlobalRule is only used to apply a red background in the style's area to point out that the style is unloaded
51
- * is set to `true` if either the asset is unloaded everywhere or it's unloaded on a group of pages (such as all pages belonging to 'page' post type)
52
- */
53
- $globalUnloaded = $bulkTypeUnloaded = $isPostTypeUnloaded = $isLoadException = $isGlobalRule = false;
54
-
55
- // Mark it as unloaded - Everywhere
56
- if (in_array($obj->handle, $data['global_unload']['styles'])) {
57
- $globalUnloaded = $isGlobalRule = true;
58
- }
59
-
60
- // Mark it as unloaded - for the Current Post Type
61
- if ($data['bulk_unloaded_type'] && in_array($obj->handle, $data['bulk_unloaded'][$data['bulk_unloaded_type']]['styles'])) {
62
- $bulkTypeUnloaded = $isGlobalRule = true;
63
-
64
- if ($data['bulk_unloaded_type'] === 'post_type') {
65
- $isPostTypeUnloaded = true;
66
- }
67
- }
68
-
69
- if ($isGlobalRule) {
70
- if (in_array($obj->handle, $data['load_exceptions']['styles'])) {
71
- $isLoadException = true;
72
- } else {
73
- $class .= ' wpacu_not_load';
74
- }
75
- }
76
-
77
- $class .= ' style_'.$obj->handle;
78
- ?>
79
- <tr class="wpacu_asset_row <?php echo $class; ?>">
80
- <td valign="top" style="width: 100%;">
81
- <p style="margin-top: 0;">
82
- <label for="style_<?php echo $obj->handle; ?>"><?php _e('Handle:', WPACU_PLUGIN_NAME); ?> <strong><span style="color: green;"><?php echo $obj->handle; ?></span></strong></label>
83
- <?php
84
- if (isset($obj->wp) && $obj->wp) {
85
- ?>
86
- <span class="dashicons dashicons-warning"></span>
87
- <?php
88
- }
89
- ?>
90
- </p>
91
-
92
- <div>
93
- <ul class="wpacu_asset_options">
94
- <li>
95
- <label><input id="style_<?php echo $obj->handle; ?>" <?php if ($globalUnloaded) { echo 'disabled="disabled"'; } echo $checked; ?> name="<?php echo WPACU_PLUGIN_NAME; ?>[styles][]" class="icheckbox_square-red" type="checkbox" value="<?php echo $obj->handle; ?>" /> &nbsp;Unload on this page</label>
96
- </li>
97
- </div>
98
-
99
- <div style="padding: 5px 10px; margin: 15px 0; background: white; border: 1px solid #eee; border-radius: 5px;">
100
- <?php
101
- // Unloaded Everywhere
102
- if ($globalUnloaded) {
103
- ?>
104
- <p><strong style="color: #d54e21;">This stylesheet file is unloaded everywhere</strong></p>
105
- <div class="clear"></div>
106
- <?php
107
- }
108
- ?>
109
-
110
- <ul class="wpacu_asset_options">
111
- <?php
112
- // [START] UNLOAD EVERYWHERE
113
- if ($globalUnloaded) {
114
- ?>
115
- <li>
116
- <label><input data-handle="<?php echo $obj->handle; ?>"
117
- class="wpacu_global_option wpacu_style"
118
- type="radio"
119
- name="wpacu_options_styles[<?php echo $obj->handle; ?>]"
120
- checked="checked"
121
- value="default" />
122
- Keep the unload global rule</label>
123
- </li>
124
-
125
- <li>
126
- <label><input data-handle="<?php echo $obj->handle; ?>"
127
- class="wpacu_global_option wpacu_style"
128
- type="radio"
129
- name="wpacu_options_styles[<?php echo $obj->handle; ?>]"
130
- value="remove" />
131
- Remove global unload rule</label>
132
- </li>
133
- <?php
134
- } else {
135
- ?>
136
- <li>
137
- <label><input data-handle="<?php echo $obj->handle; ?>"
138
- class="wpacu_global_unload wpacu_global_style"
139
- id="wpacu_global_unload_style_<?php echo $obj->handle; ?>" type="checkbox"
140
- name="wpacu_global_unload_styles[]" value="<?php echo $obj->handle; ?>"/>
141
- Unload Everywhere</label>
142
- </li>
143
- <?php
144
- }
145
- // [END] UNLOAD EVERYWHERE
146
- ?>
147
- </ul>
148
- </div>
149
-
150
- <?php if ($data['bulk_unloaded_type'] === 'post_type') { ?>
151
- <div style="padding: 5px 10px; margin: 15px 0; background: white; border: 1px solid #eee; border-radius: 5px;">
152
- <?php } ?>
153
-
154
- <?php
155
- // Unloaded On All Pages Belonging to the page's Post Type
156
- if ($isPostTypeUnloaded) {
157
- ?>
158
- <p><strong style="color: #d54e21;">This stylesheet file is unloaded on all <u><?php echo $data['post_type']; ?></u> post types.</strong></p>
159
- <div class="clear"></div>
160
- <?php
161
- }
162
- ?>
163
-
164
- <?php
165
- if ($data['bulk_unloaded_type'] === 'post_type') {
166
- ?>
167
- <ul class="wpacu_asset_options">
168
- <?php
169
- // [START] ALL PAGES HAVING THE SAME POST TYPE
170
- if ($isPostTypeUnloaded) {
171
- ?>
172
- <li>
173
- <label><input data-handle="<?php echo $obj->handle; ?>"
174
- class="wpacu_bulk_option wpacu_style wpacu_keep_bulk_rule"
175
- type="radio"
176
- name="wpacu_options_post_type_styles[<?php echo $obj->handle; ?>]"
177
- checked="checked"
178
- value="default"/>
179
- Keep rule</label>
180
- </li>
181
-
182
- <li>
183
- <label><input data-handle="<?php echo $obj->handle; ?>"
184
- class="wpacu_bulk_option wpacu_style wpacu_remove_bulk_rule"
185
- type="radio"
186
- name="wpacu_options_post_type_styles[<?php echo $obj->handle; ?>]"
187
- value="remove"/>
188
- Remove rule</label>
189
- </li>
190
- <?php
191
- } else {
192
- ?>
193
- <li>
194
- <label><input data-handle="<?php echo $obj->handle; ?>"
195
- class="wpacu_bulk_unload wpacu_post_type_unload wpacu_post_type_style"
196
- id="wpacu_bulk_unload_post_type_style_<?php echo $obj->handle; ?>"
197
- type="checkbox"
198
- name="wpacu_bulk_unload_styles[post_type][<?php echo $data['post_type']; ?>][]"
199
- value="<?php echo $obj->handle; ?>"/>
200
- Unload on All Pages of <strong><?php echo $data['post_type']; ?></strong> post type</label>
201
- </li>
202
- <?php
203
- }
204
- ?>
205
- </ul>
206
- <?php
207
- }
208
- // [END] ALL PAGES HAVING THE SAME POST TYPE
209
- ?>
210
-
211
- <?php if ($data['bulk_unloaded_type'] === 'post_type') { ?>
212
- </div>
213
- <?php } ?>
214
-
215
- <?php
216
- // [@pro]
217
- do_action('wpacu_pro_bulk_unload_output', $data, $obj, 'css');
218
- // [/@pro]
219
- ?>
220
-
221
- <ul class="wpacu_asset_options">
222
- <li id="wpacu_load_it_option_style_<?php echo $obj->handle; ?>">
223
- <label><input data-handle="<?php echo $obj->handle; ?>"
224
- id="wpacu_style_load_it_<?php echo $obj->handle; ?>"
225
- class="wpacu_load_it_option wpacu_style wpacu_load_exception"
226
- type="checkbox"
227
- <?php if ($isLoadException) { ?> checked="checked" <?php } ?>
228
- name="wpacu_styles_load_it[]"
229
- value="<?php echo $obj->handle; ?>"/>
230
- Load it on this page (make exception<?php if (! $isGlobalRule) { echo ' * works only IF any of rules above is selected'; } ?>)</label>
231
- </li>
232
- </ul>
233
- <?php
234
- if (isset($obj->src) && $obj->src != '') {
235
- ?>
236
- <p><?php _e('Source:', WPACU_PLUGIN_NAME); ?> <a target="_blank" href="<?php echo $obj->srcHref; ?>"><?php echo $obj->src; ?></a></p>
237
- <?php }
238
-
239
- if (! empty($obj->deps)) {
240
- ?>
241
- <p><?php echo __('Depends on:', WPACU_PLUGIN_NAME) . ' ' . implode(', ', $obj->deps); ?></p>
242
- <?php
243
- }
244
-
245
- if ($obj->ver) {
246
- ?>
247
- <p><?php _e('Version:', WPACU_PLUGIN_NAME); ?> <?php echo $obj->ver; ?></p>
248
- <?php
249
- }
250
-
251
- if (isset($obj->extra->data) && ! empty($obj->extra->data)) { ?>
252
- <p><?php _e('Inline:', WPACU_PLUGIN_NAME); ?> <em><?php echo $obj->extra->data; ?></em></p>
253
- <?php } ?>
254
- </td>
255
- </tr>
256
- <?php
257
- }
258
- ?>
259
  </tbody>
260
  </table>
261
  <?php
@@ -304,227 +88,9 @@ if (! empty($data['all']['scripts'])) {
304
 
305
  <table class="wp-list-table widefat wpacu_widefat fixed striped wpacu_striped">
306
  <tbody>
307
- <?php
308
- foreach ($data['all']['scripts'] as $obj) {
309
- $active = (isset($data['current']['scripts']) && in_array($obj->handle, $data['current']['scripts']));
310
-
311
- $class = ($active) ? 'wpacu_not_load' : '';
312
- $checked = ($active) ? 'checked="checked"' : '';
313
-
314
- /*
315
- * $isGlobalRule is only used to apply a red background in the script's area to point out that the script is unloaded
316
- */
317
- $globalUnloaded = $bulkTypeUnloaded = $isPostTypeUnloaded = $isLoadException = $isGlobalRule = false;
318
-
319
- // Mark it as unloaded - Everywhere
320
- if (in_array($obj->handle, $data['global_unload']['scripts']) && !$class) {
321
- $globalUnloaded = $isGlobalRule = true;
322
- }
323
-
324
- // Mark it as unloaded - for the Current Post Type
325
- if ($data['bulk_unloaded_type'] && in_array($obj->handle, $data['bulk_unloaded'][$data['bulk_unloaded_type']]['scripts'])) {
326
- $bulkTypeUnloaded = $isGlobalRule = true;
327
-
328
- if ($data['bulk_unloaded_type'] === 'post_type') {
329
- $isPostTypeUnloaded = true;
330
- }
331
- }
332
-
333
- if ($isGlobalRule) {
334
- if (in_array($obj->handle, $data['load_exceptions']['scripts'])) {
335
- $isLoadException = true;
336
- } else {
337
- $class .= ' wpacu_not_load';
338
- }
339
- }
340
-
341
- $class .= ' script_'.$obj->handle;
342
- ?>
343
- <tr class="wpacu_asset_row <?php echo $class; ?>">
344
- <td valign="top" style="width: 100%;">
345
- <p style="margin-top: 0;">
346
- <label for="script_<?php echo $obj->handle; ?>"> <?php _e('Handle:', WPACU_PLUGIN_NAME); ?> <strong><span style="color: green;"><?php echo $obj->handle; ?></span></strong></label>
347
- <?php
348
- if (isset($obj->wp) && $obj->wp) {
349
- ?>
350
- <span class="dashicons dashicons-warning"></span>
351
- <?php
352
- }
353
- ?>
354
- </p>
355
-
356
- <?php
357
- // Unloaded Everywhere
358
- if ($globalUnloaded) {
359
- ?>
360
- <p><strong style="color: #d54e21;">This JavaScript file is unloaded everywhere</strong></p>
361
- <?php
362
- }
363
- ?>
364
-
365
- <div style="padding: 5px 10px; margin: 15px 0; background: white; border: 1px solid #eee; border-radius: 5px;">
366
- <ul class="wpacu_asset_options">
367
- <li>
368
- <label><input id="script_<?php echo $obj->handle; ?>" <?php if ($globalUnloaded) { echo 'disabled="disabled"'; } echo $checked; ?> name="<?php echo WPACU_PLUGIN_NAME; ?>[scripts][]" class="icheckbox_square-red" type="checkbox" value="<?php echo $obj->handle; ?>" /> &nbsp;Unload on this page</label>
369
- </li>
370
- </ul>
371
- </div>
372
-
373
- <div style="padding: 5px 10px; margin: 15px 0; background: white; border: 1px solid #eee; border-radius: 5px;">
374
- <ul class="wpacu_asset_options">
375
- <?php
376
- // [START] UNLOAD EVERYWHERE
377
- if ($globalUnloaded) {
378
- ?>
379
- <li>
380
- <label><input data-handle="<?php echo $obj->handle; ?>"
381
- class="wpacu_bulk_option wpacu_script"
382
- type="radio"
383
- name="wpacu_options_scripts[<?php echo $obj->handle; ?>]"
384
- checked="checked"
385
- value="default" />
386
- Keep the unload global rule</label>
387
- </li>
388
-
389
- <li>
390
- <label><input data-handle="<?php echo $obj->handle; ?>"
391
- class="wpacu_bulk_option wpacu_script"
392
- type="radio"
393
- name="wpacu_options_scripts[<?php echo $obj->handle; ?>]"
394
- value="remove" />
395
- Remove global unload rule</label>
396
- </li>
397
- <?php
398
- } else {
399
- ?>
400
- <li>
401
- <label><input data-handle="<?php echo $obj->handle; ?>"
402
- class="wpacu_global_unload wpacu_global_script"
403
- id="wpacu_global_unload_script_<?php echo $obj->handle; ?>"
404
- type="checkbox"
405
- name="wpacu_global_unload_scripts[]"
406
- value="<?php echo $obj->handle; ?>"/>
407
- Unload Everywhere</label>
408
- </li>
409
- <?php
410
- }
411
- // [END] UNLOAD EVERYWHERE
412
- ?>
413
-
414
- </ul>
415
- </div>
416
-
417
- <?php if ($data['bulk_unloaded_type'] === 'post_type') { ?>
418
- <div style="padding: 5px 10px; margin: 15px 0; background: white; border: 1px solid #eee; border-radius: 5px;">
419
- <?php } ?>
420
-
421
- <?php
422
- // Unloaded On All Pages Belonging to the page's Post Type
423
- if ($isPostTypeUnloaded) {
424
- ?>
425
- <p><strong style="color: #d54e21;">This JavaScript file is unloaded on all <u><?php echo $data['post_type']; ?></u> post types.</strong></p>
426
- <div class="clear"></div>
427
- <?php
428
- }
429
- ?>
430
-
431
- <ul class="wpacu_asset_options">
432
- <?php
433
- if ($data['bulk_unloaded_type'] === 'post_type') {
434
- // [START] ALL PAGES HAVING THE SAME POST TYPE
435
- if ($isPostTypeUnloaded) {
436
- ?>
437
- <li>
438
- <label><input data-handle="<?php echo $obj->handle; ?>"
439
- class="wpacu_post_type_option wpacu_post_type_script wpacu_keep_bulk_rule"
440
- type="radio"
441
- name="wpacu_options_post_type_scripts[<?php echo $obj->handle; ?>]"
442
- checked="checked"
443
- value="default"/>
444
- Keep rule</label>
445
- </li>
446
-
447
- <li>
448
- <label><input data-handle="<?php echo $obj->handle; ?>"
449
- class="wpacu_post_type_option wpacu_remove_bulk_rule wpacu_post_type_script"
450
- type="radio"
451
- name="wpacu_options_post_type_scripts[<?php echo $obj->handle; ?>]"
452
- value="remove"/>
453
- Remove rule</label>
454
- </li>
455
- <?php
456
- } else {
457
- ?>
458
- <li>
459
- <label><input data-handle="<?php echo $obj->handle; ?>"
460
- class="wpacu_bulk_unload wpacu_post_type_unload wpacu_post_type_script"
461
- id="wpacu_global_unload_post_type_script_<?php echo $obj->handle; ?>"
462
- type="checkbox"
463
- name="wpacu_bulk_unload_scripts[post_type][<?php echo $data['post_type']; ?>][]"
464
- value="<?php echo $obj->handle; ?>"/>
465
- Unload on All Pages of <strong><?php echo $data['post_type']; ?></strong> post type</label>
466
- </li>
467
- <?php
468
- }
469
- }
470
- // [END] ALL PAGES HAVING THE SAME POST TYPE
471
- ?>
472
- </ul>
473
- <?php if ($data['bulk_unloaded_type'] === 'post_type') { ?>
474
- </div>
475
- <?php }
476
- // [@pro]
477
- do_action('wpacu_pro_bulk_unload_output', $data, $obj, 'js');
478
- // [/@pro]
479
- ?>
480
-
481
- <ul class="wpacu_asset_options">
482
- <li id="wpacu_load_it_option_script_<?php echo $obj->handle; ?>">
483
- <label><input data-handle="<?php echo $obj->handle; ?>"
484
- id="wpacu_script_load_it_<?php echo $obj->handle; ?>"
485
- class="wpacu_load_it_option wpacu_script wpacu_load_exception"
486
- type="checkbox"
487
- name="wpacu_scripts_load_it[]"
488
- <?php if ($isLoadException) { ?> checked="checked" <?php } ?>
489
- value="<?php echo $obj->handle; ?>" />
490
- Load it on this page (make exception<?php if (! $isGlobalRule) { echo ' * works only IF any of rules above is selected'; } ?>)</label>
491
- </li>
492
- </ul>
493
- <?php
494
- if (isset($obj->src) && $obj->src != '') {
495
- ?>
496
- <p><?php _e('Source:', WPACU_PLUGIN_NAME); ?> <a target="_blank" href="<?php echo $obj->srcHref; ?>"><?php echo $obj->src; ?></a></p>
497
- <?php } ?>
498
-
499
- <?php
500
- if (! empty($obj->deps)) {
501
- ?>
502
- <p><?php echo __('Depends on:', WPACU_PLUGIN_NAME) . ' ' . implode(', ', $obj->deps); ?></p>
503
- <?php
504
- }
505
-
506
- if (isset($obj->ver) && $obj->ver != '') {
507
- ?>
508
- <p><?php _e('Version:', WPACU_PLUGIN_NAME); ?> <?php echo $obj->ver; ?></p>
509
- <?php
510
- }
511
-
512
- if (isset($obj->extra->data) && ! empty($obj->extra->data)) { ?>
513
- <p><?php _e('Inline:', WPACU_PLUGIN_NAME); ?> <em><?php echo strip_tags($obj->extra->data); ?></em></p>
514
- <?php
515
- }
516
-
517
- if (isset($obj->position) && $obj->position != '') {
518
- ?>
519
- <p><?php _e('Position:', WPACU_PLUGIN_NAME); ?> <?php echo ($obj->position == 'head') ? 'HEAD' : 'BODY'; ?></p>
520
- <?php
521
- }
522
- ?>
523
- </td>
524
- </tr>
525
- <?php
526
- }
527
- ?>
528
  </tbody>
529
  </table>
530
  <?php
17
  <h4>&#10141; Total enqueued stylesheets: <strong><?php echo $data['total_styles']; ?></strong></h4>
18
  <?php
19
  }
 
20
 
 
21
  if (! empty($data['all']['styles'])) {
22
  ?>
23
  <p><?php echo sprintf(__('The following styles are loading on this page. Please select the ones that are %sNOT NEEDED%s. If you are not sure which ones to unload, it is better to leave them enabled (unchecked) and consult with a developer about unloading the assets.', WPACU_PLUGIN_NAME), '<span style="color: #CC0000;"><strong>', '</strong></span>'); ?></p>
38
  <table class="wp-asset-clean-up wp-list-table widefat wpacu_widefat fixed striped wpacu_striped">
39
  <tbody>
40
  <?php
41
+ include_once dirname(__FILE__).'/_asset-style-rows.php';
42
+ ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  </tbody>
44
  </table>
45
  <?php
88
 
89
  <table class="wp-list-table widefat wpacu_widefat fixed striped wpacu_striped">
90
  <tbody>
91
+ <?php
92
+ include_once dirname(__FILE__).'/_asset-script-rows.php';
93
+ ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
  </tbody>
95
  </table>
96
  <?php
templates/settings-frontend.php CHANGED
@@ -9,12 +9,12 @@ if (! isset($data)) {
9
 
10
  <form action="#wpacu_wrap_assets" method="post">
11
  <div id="wpacu_wrap_assets">
12
- <h1><?php echo apply_filters('wpacu_plugin_page_title', 'Asset CleanUp Lite'); ?></h1>
13
  <?php
14
  if ($data['is_updateable']) {
15
  ?>
16
  <p><small>* this area is shown only for the admin users and if "Manage in the Front-end?" was selected in the plugin's settings</small></p>
17
- <p><small>* 'admin-bar', 'wpassetcleanup-icheck-square-red' and 'wpassetcleanup-style' are not included as they are irrelevant since they are used by the plugin for this area</small></p>
18
  <?php
19
  if ($data['is_woocommerce_shop_page']) {
20
  ?>
@@ -37,7 +37,7 @@ if (! isset($data)) {
37
  require_once 'meta-box-loaded.php';
38
  } else {
39
  // Category, Tag, Search, 404, Author, Date pages (not supported by Lite version)
40
- $contentUnlockFeature = ' <p style="border-radius: 10px; padding: 10px; background: #f2faf2; border: 1px solid #c0e8c0; width: auto; display: inline-block;">To unlock this feature, you can get the premium extension.</p>';
41
 
42
  if (\WpAssetCleanUp\Main::isWpDefaultSearchPage()) {
43
  echo '<span class="dashicons dashicons-search"></span> This is a <strong>WordPress Search Page</strong> and unloading the unneeded CSS &amp; JS can be done in Asset CleanUp Pro.'.$contentUnlockFeature;
@@ -69,7 +69,7 @@ if (! isset($data)) {
69
  name="submit"><span class="dashicons dashicons-update"></span> <?php esc_attr_e('UPDATE', WPACU_PLUGIN_NAME); ?></button>
70
  </div>
71
 
72
- <p align="right"><small>Powered by Asset CleanUp Lite, version <?php echo WPACU_PLUGIN_VERSION; ?></small></p>
73
  <?php } ?>
74
  </div>
75
 
9
 
10
  <form action="#wpacu_wrap_assets" method="post">
11
  <div id="wpacu_wrap_assets">
12
+ <h1>Asset CleanUp</h1>
13
  <?php
14
  if ($data['is_updateable']) {
15
  ?>
16
  <p><small>* this area is shown only for the admin users and if "Manage in the Front-end?" was selected in the plugin's settings</small></p>
17
+ <p><small>* 'admin-bar' and 'wpassetcleanup-style' are not included as they are irrelevant since they are used by the plugin for this area</small></p>
18
  <?php
19
  if ($data['is_woocommerce_shop_page']) {
20
  ?>
37
  require_once 'meta-box-loaded.php';
38
  } else {
39
  // Category, Tag, Search, 404, Author, Date pages (not supported by Lite version)
40
+ $contentUnlockFeature = ' <p class="pro-page-unlock-notice">To unlock this feature, you can get the premium extension.</p>';
41
 
42
  if (\WpAssetCleanUp\Main::isWpDefaultSearchPage()) {
43
  echo '<span class="dashicons dashicons-search"></span> This is a <strong>WordPress Search Page</strong> and unloading the unneeded CSS &amp; JS can be done in Asset CleanUp Pro.'.$contentUnlockFeature;
69
  name="submit"><span class="dashicons dashicons-update"></span> <?php esc_attr_e('UPDATE', WPACU_PLUGIN_NAME); ?></button>
70
  </div>
71
 
72
+ <p align="right"><small>Powered by Asset CleanUp, version <?php echo WPACU_PLUGIN_VERSION; ?></small></p>
73
  <?php } ?>
74
  </div>
75
 
wpacu.php CHANGED
@@ -1,14 +1,14 @@
1
  <?php
2
  /*
3
- * Plugin Name: Asset CleanUp LITE: Page Speed Optimizer
4
  * Plugin URI: https://wordpress.org/plugins/wp-asset-clean-up/
5
- * Version: 1.2.6.9
6
  * Description: Prevent Chosen Scripts & Styles from loading in Posts/Pages to reduce HTTP Requests and have the website load faster
7
  * Author: Gabriel Livan
8
  * Author URI: http://www.gabelivan.com/
9
  */
10
 
11
- define('WPACU_PLUGIN_VERSION', '1.2.6.9');
12
 
13
  // Exit if accessed directly
14
  if (! defined('ABSPATH')) {
@@ -19,14 +19,16 @@ if (! defined('ABSPATH')) {
19
  // Do not load the LITE version as it's pointless
20
  // This action is valid starting from LITE version 1.2.6.8
21
  // From 1.0.3, the PRO version works independently (does not need anymore LITE to be active and act as a parent plugin)
22
- if (! is_admin()) {
23
- include_once(ABSPATH . 'wp-admin/includes/plugin.php');
24
- }
25
 
26
  // If the pro version (version above 1.0.2) was triggered first, we'll just check one of its constants
27
  // If the lite version was triggered first, then we'll check if the pro version is active
28
- if ((defined('WPACU_PRO_NO_LITE_NEEDED') && WPACU_PRO_PLUGIN_VERSION === true)
29
- || (file_exists(dirname(dirname(__FILE__)).'/wp-asset-clean-up-pro/wpacu.php') && is_plugin_active('wp-asset-clean-up-pro/wpacu.php'))) {
 
 
 
 
 
30
  return;
31
  }
32
 
@@ -36,7 +38,8 @@ define('WPACU_PLUGIN_FILE', __FILE__);
36
  define('WPACU_PLUGIN_BASE', plugin_basename(WPACU_PLUGIN_FILE));
37
  define('WPACU_PLUGIN_URL', plugins_url('', WPACU_PLUGIN_FILE));
38
 
39
- define('WPACU_PLUGIN_GO_PRO_LINK', 'https://www.gabelivan.com/items/wp-asset-cleanup-pro/');
 
40
 
41
  // Do not load the plugin if the PHP version is below 5.3
42
  $wpacuWrongPhp = version_compare(PHP_VERSION, '5.3.0', '<');
@@ -63,7 +66,7 @@ if (is_admin() && $wpacuWrongPhp) { // Dashboard
63
  function wpAssetCleanUpWrongPhpNotice()
64
  {
65
  echo '<div class="error is-dismissible"><p>'.
66
- __('<strong>Asset CleanUp Lite</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).
67
  '</p></div>';
68
 
69
  if (array_key_exists('active', $_GET)) {
1
  <?php
2
  /*
3
+ * Plugin Name: Asset CleanUp: Page Speed Optimization
4
  * Plugin URI: https://wordpress.org/plugins/wp-asset-clean-up/
5
+ * Version: 1.2.7
6
  * Description: Prevent Chosen Scripts & Styles from loading in Posts/Pages to reduce HTTP Requests and have the website load faster
7
  * Author: Gabriel Livan
8
  * Author URI: http://www.gabelivan.com/
9
  */
10
 
11
+ define('WPACU_PLUGIN_VERSION', '1.2.7');
12
 
13
  // Exit if accessed directly
14
  if (! defined('ABSPATH')) {
19
  // Do not load the LITE version as it's pointless
20
  // This action is valid starting from LITE version 1.2.6.8
21
  // From 1.0.3, the PRO version works independently (does not need anymore LITE to be active and act as a parent plugin)
 
 
 
22
 
23
  // If the pro version (version above 1.0.2) was triggered first, we'll just check one of its constants
24
  // If the lite version was triggered first, then we'll check if the pro version is active
25
+ if (defined('WPACU_PRO_NO_LITE_NEEDED') && WPACU_PRO_PLUGIN_VERSION === true) {
26
+ return;
27
+ }
28
+
29
+ include_once(ABSPATH . 'wp-admin/includes/plugin.php');
30
+
31
+ if (file_exists(dirname(dirname(__FILE__)).'/wp-asset-clean-up-pro/wpacu.php') && is_plugin_active('wp-asset-clean-up-pro/wpacu.php')) {
32
  return;
33
  }
34
 
38
  define('WPACU_PLUGIN_BASE', plugin_basename(WPACU_PLUGIN_FILE));
39
  define('WPACU_PLUGIN_URL', plugins_url('', WPACU_PLUGIN_FILE));
40
 
41
+ // Upgrade to Pro Sales Page
42
+ define('WPACU_PLUGIN_GO_PRO_URL', 'https://www.gabelivan.com/items/wp-asset-cleanup-pro/');
43
 
44
  // Do not load the plugin if the PHP version is below 5.3
45
  $wpacuWrongPhp = version_compare(PHP_VERSION, '5.3.0', '<');
66
  function wpAssetCleanUpWrongPhpNotice()
67
  {
68
  echo '<div class="error is-dismissible"><p>'.
69
+ __('<strong>Asset CleanUp</strong> requires <span style="color: green;"><strong>5.3+</strong> PHP version</span> installed. You have <strong>'.PHP_VERSION.'</strong>. If you\'re 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. The plugin has been deactivated.', WPACU_PLUGIN_NAME).
70
  '</p></div>';
71
 
72
  if (array_key_exists('active', $_GET)) {