Version Description
- "CSS/JS Manager": If a handle has inline code associated with it, mention the size (e.g. bytes, KB) of that inlined LINK or SCRIPT (just like it's mentioned for the LINK tags with the "href" attribute and SCRIPT tags with the "src" attribute)
- Higher accuracy in detecting (for optimization) the LINK tags that are loading CSS/JS files
- Improvement: If an asset is an unloaded through the CSS/JS manager and a preload (via LINK tag) was already set through another plugin (e.g. "Pre* Party Resource Hints") or within the theme, for instance in functions.php, make sure to strip the preloading as it's useless if the actual asset is not loaded in the first place
- Improvement: In case a WordPress installation has a subdirectory (e.g. www.mysite.com/blog), make sure any assets that have relative URIs (e.g. /blog/wp-content/style.css) are all optimized properly even if they were manually added from a 3rd party plugin or through the theme (e.g. within functions.php)
- If "SCRIPT_DEBUG" is set to "true", load the non-minified versions of the plugin's assets / read more: https://wordpress.org/support/article/debugging-in-wordpress/#script_debug
- Fix: Make sure none of the plugin's assets are included within any combined CSS/JS files (if the options are enabled in "Settings")
- Fix: Make sure to offer fallback to "wp_json_file_decode" in case the WordPress version is below 5.9.0 (as compatibility with older WP versions is promised)
- Added "wpacu_go_pro_affiliate_link" filter for altering the "Go Pro" link (e.g. for adding an extra query string with a specific reference)
Download this release
Release Info
Developer | gabelivan |
Plugin | Asset CleanUp: Page Speed Booster |
Version | 1.3.8.8 |
Comparing to | |
See all releases |
Code changes from version 1.3.8.7 to 1.3.8.8
- assets/auto-complete/main.min.js +1 -0
- assets/auto-complete/smoothness/jquery-ui-custom.min.css +5 -0
- assets/chosen/chosen.css +496 -0
- assets/chosen/chosen.jquery.js +1359 -0
- assets/script.js +1499 -0
- assets/script.min.js +4 -5
- assets/style.css +4743 -0
- assets/style.min.css +1 -1
- assets/sweetalert2/dist/sweetalert2.min.css +1 -0
- assets/sweetalert2/dist/sweetalert2.min.js +1 -0
- classes/AjaxSearchAutocomplete.php +22 -10
- classes/CleanUp.php +1 -2
- classes/FileSystem.php +3 -3
- classes/ImportExport.php +1 -1
- classes/Lite.php +1 -1
- classes/Main.php +30 -28
- classes/Menu.php +1 -1
- classes/Misc.php +79 -10
- classes/ObjectCache.php +1 -1
- classes/OptimiseAssets/CombineCss.php +3 -5
- classes/OptimiseAssets/CombineJs.php +14 -11
- classes/OptimiseAssets/MinifyJs.php +2 -2
- classes/OptimiseAssets/OptimizeCommon.php +151 -22
- classes/OptimiseAssets/OptimizeCss.php +112 -24
- classes/OptimiseAssets/OptimizeJs.php +123 -32
- classes/OwnAssets.php +207 -59
- classes/Plugin.php +5 -5
- classes/Preloads.php +27 -22
- classes/Update.php +1 -1
- readme.txt +12 -2
- templates/_admin-page-getting-started-areas/_lite-vs-pro.php +2 -2
- templates/_admin-page-plugins-manager/_dash-areas/_unloads.php +2 -2
- templates/_admin-page-plugins-manager/_dash.php +1 -1
- templates/_admin-page-plugins-manager/_front-areas/_unloads.php +6 -6
- templates/_admin-page-plugins-manager/_front.php +6 -6
- templates/_admin-page-settings-bulk-changes/_assets-positions.php +1 -1
- templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php +5 -5
- templates/_admin-page-settings-bulk-changes/_regex-load-exceptions.php +1 -1
- templates/_admin-page-settings-bulk-changes/_regex-unloads.php +1 -1
- templates/_admin-page-settings-bulk-changes/_script-attrs.php +1 -1
- templates/_admin-page-settings-plugin-areas/_fonts-local.php +1 -1
- templates/_admin-page-settings-plugin-areas/_optimize-css.php +1 -1
- templates/_admin-page-settings-plugin-areas/_optimize-js.php +2 -2
- templates/_top-area.php +1 -1
- templates/admin-page-license.php +1 -1
- templates/admin-page-settings-plugin.php +1 -1
- templates/meta-box-loaded-assets/_asset-script-single-row/_load-exceptions.php +1 -1
- templates/meta-box-loaded-assets/_asset-script-single-row/_loaded-rules.php +4 -4
- templates/meta-box-loaded-assets/_asset-script-single-row/_position.php +1 -1
- templates/meta-box-loaded-assets/_asset-style-single-row/_load-exceptions.php +1 -1
- templates/meta-box-loaded-assets/_asset-style-single-row/_loaded-rules.php +1 -1
- templates/meta-box-loaded-assets/_asset-style-single-row/_position.php +1 -1
- templates/meta-box-loaded-assets/_assets-hardcoded-list.php +12 -12
- templates/meta-box-loaded-assets/_common/_asset-single-row-extra-inline.php +72 -49
- templates/meta-box-loaded-assets/_common/_asset-single-row-load-exceptions-taxonomy.php +1 -1
- templates/meta-box-loaded-assets/_common/_asset-single-row-load-exceptions.php +1 -1
- templates/meta-box-loaded-assets/_common/_asset-single-row-position.php +2 -2
- templates/meta-box-loaded-assets/_common/_asset-single-row-unload-post-type-taxonomy.php +1 -1
- templates/meta-box-loaded-assets/_common/_asset-single-row-unload-via-regex.php +1 -1
- templates/meta-box-loaded-assets/_inline_js.php +2 -1
- templates/settings-frontend-lite-locked.php +1 -1
- wpacu.php +7 -3
assets/auto-complete/main.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
jQuery(function(a){a("#wpacu-search-form-assets-manager .search-field").autocomplete({source:function(b,c){var d;d=a("#wpacu-custom-post-type-choice").length>0?a("#wpacu-custom-post-type-choice").val():wpacu_autocomplete_search_obj.post_type,a.ajax({dataType:"json",url:wpacu_autocomplete_search_obj.ajax_url,cache:!1,data:{wpacu_term:b.term,wpacu_post_type:d,action:wpacu_autocomplete_search_obj.ajax_action,wpacu_security:wpacu_autocomplete_search_obj.ajax_nonce,wpacu_time:(new Date).getTime()},success:function(b){a("#wpacu-search-form-assets-manager-no-results").hide(),c(b),console.log(b)},complete:function(b,d){if("no_results"==b.responseText){var e=new Object;a("#wpacu-search-form-assets-manager-no-results").show(),c(e)}}})},select:function(b,c){a("#wpacu-search-form-assets-manager").hide(),a("#wpacu-post-chosen-loading-assets").show(),window.location.href=wpacu_autocomplete_search_obj.redirect_to.replace("=post_id_here","="+c.item.id)},close:function(a){a.target.value=""}}).data("ui-autocomplete")._renderItem=function(b,c){return a("<li>").append("<div>"+c.label+"<span style='display:block;color:green;font-size:11px;'>"+c.link+"</span></div>").appendTo(b)}});
|
assets/auto-complete/smoothness/jquery-ui-custom.min.css
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*! jQuery UI - v1.13.0 - 2021-10-07
|
2 |
+
* http://jqueryui.com
|
3 |
+
* Includes: core.css, accordion.css, autocomplete.css, menu.css, button.css, controlgroup.css, checkboxradio.css, datepicker.css, dialog.css, draggable.css, resizable.css, progressbar.css, selectable.css, selectmenu.css, slider.css, sortable.css, spinner.css, tabs.css, tooltip.css, theme.css
|
4 |
+
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana%2CArial%2Csans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=cccccc&bgTextureHeader=highlight_soft&bgImgOpacityHeader=75&borderColorHeader=aaaaaa&fcHeader=222222&iconColorHeader=222222&bgColorContent=ffffff&bgTextureContent=flat&bgImgOpacityContent=75&borderColorContent=aaaaaa&fcContent=222222&iconColorContent=222222&bgColorDefault=e6e6e6&bgTextureDefault=glass&bgImgOpacityDefault=75&borderColorDefault=d3d3d3&fcDefault=555555&iconColorDefault=888888&bgColorHover=dadada&bgTextureHover=glass&bgImgOpacityHover=75&borderColorHover=999999&fcHover=212121&iconColorHover=454545&bgColorActive=ffffff&bgTextureActive=glass&bgImgOpacityActive=65&borderColorActive=aaaaaa&fcActive=212121&iconColorActive=454545&bgColorHighlight=fbf9ee&bgTextureHighlight=glass&bgImgOpacityHighlight=55&borderColorHighlight=fcefa1&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=glass&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=flat&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=flat&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
|
5 |
+
* Copyright jQuery Foundation and other contributors; Licensed MIT */.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:after,.ui-helper-clearfix:before{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;-ms-filter:"alpha(opacity=0)"}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important;pointer-events:none}.ui-icon{display:inline-block;vertical-align:middle;margin-top:-.25em;position:relative;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-icon-block{left:50%;margin-left:-8px;display:block}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-accordion .ui-accordion-header{display:block;cursor:pointer;position:relative;margin:2px 0 0 0;padding:.5em .5em .5em .7em;font-size:100%}.ui-accordion .ui-accordion-content{padding:1em 2.2em;border-top:0;overflow:auto}.ui-autocomplete{position:absolute;top:0;left:0;cursor:default}.ui-menu{list-style:none;padding:0;margin:0;display:block;outline:0}.ui-menu .ui-menu{position:absolute}.ui-menu .ui-menu-item{margin:0;cursor:pointer;list-style-image:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)}.ui-menu .ui-menu-item-wrapper{position:relative;padding:3px 1em 3px .4em}.ui-menu .ui-menu-divider{margin:5px 0;height:0;font-size:0;line-height:0;border-width:1px 0 0 0}.ui-menu .ui-state-active,.ui-menu .ui-state-focus{margin:-1px}.ui-menu-icons{position:relative}.ui-menu-icons .ui-menu-item-wrapper{padding-left:2em}.ui-menu .ui-icon{position:absolute;top:0;bottom:0;left:.2em;margin:auto 0}.ui-menu .ui-menu-icon{left:auto;right:0}.ui-button{padding:.4em 1em;display:inline-block;position:relative;line-height:normal;margin-right:.1em;cursor:pointer;vertical-align:middle;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:visible}.ui-button,.ui-button:active,.ui-button:hover,.ui-button:link,.ui-button:visited{text-decoration:none}.ui-button-icon-only{width:2em;box-sizing:border-box;text-indent:-9999px;white-space:nowrap}input.ui-button.ui-button-icon-only{text-indent:0}.ui-button-icon-only .ui-icon{position:absolute;top:50%;left:50%;margin-top:-8px;margin-left:-8px}.ui-button.ui-icon-notext .ui-icon{padding:0;width:2.1em;height:2.1em;text-indent:-9999px;white-space:nowrap}input.ui-button.ui-icon-notext .ui-icon{width:auto;height:auto;text-indent:0;white-space:normal;padding:.4em 1em}button.ui-button::-moz-focus-inner,input.ui-button::-moz-focus-inner{border:0;padding:0}.ui-controlgroup{vertical-align:middle;display:inline-block}.ui-controlgroup>.ui-controlgroup-item{float:left;margin-left:0;margin-right:0}.ui-controlgroup>.ui-controlgroup-item.ui-visual-focus,.ui-controlgroup>.ui-controlgroup-item:focus{z-index:9999}.ui-controlgroup-vertical>.ui-controlgroup-item{display:block;float:none;width:100%;margin-top:0;margin-bottom:0;text-align:left}.ui-controlgroup-vertical .ui-controlgroup-item{box-sizing:border-box}.ui-controlgroup .ui-controlgroup-label{padding:.4em 1em}.ui-controlgroup .ui-controlgroup-label span{font-size:80%}.ui-controlgroup-horizontal .ui-controlgroup-label+.ui-controlgroup-item{border-left:none}.ui-controlgroup-vertical .ui-controlgroup-label+.ui-controlgroup-item{border-top:none}.ui-controlgroup-horizontal .ui-controlgroup-label.ui-widget-content{border-right:none}.ui-controlgroup-vertical .ui-controlgroup-label.ui-widget-content{border-bottom:none}.ui-controlgroup-vertical .ui-spinner-input{width:75%;width:calc(100% - 2.4em)}.ui-controlgroup-vertical .ui-spinner .ui-spinner-up{border-top-style:solid}.ui-checkboxradio-label .ui-icon-background{box-shadow:inset 1px 1px 1px #ccc;border-radius:.12em;border:none}.ui-checkboxradio-radio-label .ui-icon-background{width:16px;height:16px;border-radius:1em;overflow:visible;border:none}.ui-checkboxradio-radio-label.ui-checkboxradio-checked .ui-icon,.ui-checkboxradio-radio-label.ui-checkboxradio-checked:hover .ui-icon{background-image:none;width:8px;height:8px;border-width:4px;border-style:solid}.ui-checkboxradio-disabled{pointer-events:none}.ui-datepicker{width:17em;padding:.2em .2em 0;display:none}.ui-datepicker .ui-datepicker-header{position:relative;padding:.2em 0}.ui-datepicker .ui-datepicker-next,.ui-datepicker .ui-datepicker-prev{position:absolute;top:2px;width:1.8em;height:1.8em}.ui-datepicker .ui-datepicker-next-hover,.ui-datepicker .ui-datepicker-prev-hover{top:1px}.ui-datepicker .ui-datepicker-prev{left:2px}.ui-datepicker .ui-datepicker-next{right:2px}.ui-datepicker .ui-datepicker-prev-hover{left:1px}.ui-datepicker .ui-datepicker-next-hover{right:1px}.ui-datepicker .ui-datepicker-next span,.ui-datepicker .ui-datepicker-prev span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px}.ui-datepicker .ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center}.ui-datepicker .ui-datepicker-title select{font-size:1em;margin:1px 0}.ui-datepicker select.ui-datepicker-month,.ui-datepicker select.ui-datepicker-year{width:45%}.ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em}.ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:700;border:0}.ui-datepicker td{border:0;padding:1px}.ui-datepicker td a,.ui-datepicker td span{display:block;padding:.2em;text-align:right;text-decoration:none}.ui-datepicker .ui-datepicker-buttonpane{background-image:none;margin:.7em 0 0 0;padding:0 .2em;border-left:0;border-right:0;border-bottom:0}.ui-datepicker .ui-datepicker-buttonpane button{float:right;margin:.5em .2em .4em;cursor:pointer;padding:.2em .6em .3em .6em;width:auto;overflow:visible}.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current{float:left}.ui-datepicker.ui-datepicker-multi{width:auto}.ui-datepicker-multi .ui-datepicker-group{float:left}.ui-datepicker-multi .ui-datepicker-group table{width:95%;margin:0 auto .4em}.ui-datepicker-multi-2 .ui-datepicker-group{width:50%}.ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%}.ui-datepicker-multi-4 .ui-datepicker-group{width:25%}.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:0}.ui-datepicker-multi .ui-datepicker-buttonpane{clear:left}.ui-datepicker-row-break{clear:both;width:100%;font-size:0}.ui-datepicker-rtl{direction:rtl}.ui-datepicker-rtl .ui-datepicker-prev{right:2px;left:auto}.ui-datepicker-rtl .ui-datepicker-next{left:2px;right:auto}.ui-datepicker-rtl .ui-datepicker-prev:hover{right:1px;left:auto}.ui-datepicker-rtl .ui-datepicker-next:hover{left:1px;right:auto}.ui-datepicker-rtl .ui-datepicker-buttonpane{clear:right}.ui-datepicker-rtl .ui-datepicker-buttonpane button{float:left}.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,.ui-datepicker-rtl .ui-datepicker-group{float:right}.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header{border-right-width:0;border-left-width:1px}.ui-datepicker .ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat;left:.5em;top:.3em}.ui-dialog{position:absolute;top:0;left:0;padding:.2em;outline:0}.ui-dialog .ui-dialog-titlebar{padding:.4em 1em;position:relative}.ui-dialog .ui-dialog-title{float:left;margin:.1em 0;white-space:nowrap;width:90%;overflow:hidden;text-overflow:ellipsis}.ui-dialog .ui-dialog-titlebar-close{position:absolute;right:.3em;top:50%;width:20px;margin:-10px 0 0 0;padding:1px;height:20px}.ui-dialog .ui-dialog-content{position:relative;border:0;padding:.5em 1em;background:0 0;overflow:auto}.ui-dialog .ui-dialog-buttonpane{text-align:left;border-width:1px 0 0 0;background-image:none;margin-top:.5em;padding:.3em 1em .5em .4em}.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:right}.ui-dialog .ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer}.ui-dialog .ui-resizable-n{height:2px;top:0}.ui-dialog .ui-resizable-e{width:2px;right:0}.ui-dialog .ui-resizable-s{height:2px;bottom:0}.ui-dialog .ui-resizable-w{width:2px;left:0}.ui-dialog .ui-resizable-ne,.ui-dialog .ui-resizable-nw,.ui-dialog .ui-resizable-se,.ui-dialog .ui-resizable-sw{width:7px;height:7px}.ui-dialog .ui-resizable-se{right:0;bottom:0}.ui-dialog .ui-resizable-sw{left:0;bottom:0}.ui-dialog .ui-resizable-ne{right:0;top:0}.ui-dialog .ui-resizable-nw{left:0;top:0}.ui-draggable .ui-dialog-titlebar{cursor:move}.ui-draggable-handle{-ms-touch-action:none;touch-action:none}.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:.1px;display:block;-ms-touch-action:none;touch-action:none}.ui-resizable-autohide .ui-resizable-handle,.ui-resizable-disabled .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}.ui-progressbar{height:2em;text-align:left;overflow:hidden}.ui-progressbar .ui-progressbar-value{margin:-1px;height:100%}.ui-progressbar .ui-progressbar-overlay{background:url(data:image/gif;base64,R0lGODlhKAAoAIABAAAAAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQJAQABACwAAAAAKAAoAAACkYwNqXrdC52DS06a7MFZI+4FHBCKoDeWKXqymPqGqxvJrXZbMx7Ttc+w9XgU2FB3lOyQRWET2IFGiU9m1frDVpxZZc6bfHwv4c1YXP6k1Vdy292Fb6UkuvFtXpvWSzA+HycXJHUXiGYIiMg2R6W459gnWGfHNdjIqDWVqemH2ekpObkpOlppWUqZiqr6edqqWQAAIfkECQEAAQAsAAAAACgAKAAAApSMgZnGfaqcg1E2uuzDmmHUBR8Qil95hiPKqWn3aqtLsS18y7G1SzNeowWBENtQd+T1JktP05nzPTdJZlR6vUxNWWjV+vUWhWNkWFwxl9VpZRedYcflIOLafaa28XdsH/ynlcc1uPVDZxQIR0K25+cICCmoqCe5mGhZOfeYSUh5yJcJyrkZWWpaR8doJ2o4NYq62lAAACH5BAkBAAEALAAAAAAoACgAAAKVDI4Yy22ZnINRNqosw0Bv7i1gyHUkFj7oSaWlu3ovC8GxNso5fluz3qLVhBVeT/Lz7ZTHyxL5dDalQWPVOsQWtRnuwXaFTj9jVVh8pma9JjZ4zYSj5ZOyma7uuolffh+IR5aW97cHuBUXKGKXlKjn+DiHWMcYJah4N0lYCMlJOXipGRr5qdgoSTrqWSq6WFl2ypoaUAAAIfkECQEAAQAsAAAAACgAKAAAApaEb6HLgd/iO7FNWtcFWe+ufODGjRfoiJ2akShbueb0wtI50zm02pbvwfWEMWBQ1zKGlLIhskiEPm9R6vRXxV4ZzWT2yHOGpWMyorblKlNp8HmHEb/lCXjcW7bmtXP8Xt229OVWR1fod2eWqNfHuMjXCPkIGNileOiImVmCOEmoSfn3yXlJWmoHGhqp6ilYuWYpmTqKUgAAIfkECQEAAQAsAAAAACgAKAAAApiEH6kb58biQ3FNWtMFWW3eNVcojuFGfqnZqSebuS06w5V80/X02pKe8zFwP6EFWOT1lDFk8rGERh1TTNOocQ61Hm4Xm2VexUHpzjymViHrFbiELsefVrn6XKfnt2Q9G/+Xdie499XHd2g4h7ioOGhXGJboGAnXSBnoBwKYyfioubZJ2Hn0RuRZaflZOil56Zp6iioKSXpUAAAh+QQJAQABACwAAAAAKAAoAAACkoQRqRvnxuI7kU1a1UU5bd5tnSeOZXhmn5lWK3qNTWvRdQxP8qvaC+/yaYQzXO7BMvaUEmJRd3TsiMAgswmNYrSgZdYrTX6tSHGZO73ezuAw2uxuQ+BbeZfMxsexY35+/Qe4J1inV0g4x3WHuMhIl2jXOKT2Q+VU5fgoSUI52VfZyfkJGkha6jmY+aaYdirq+lQAACH5BAkBAAEALAAAAAAoACgAAAKWBIKpYe0L3YNKToqswUlvznigd4wiR4KhZrKt9Upqip61i9E3vMvxRdHlbEFiEXfk9YARYxOZZD6VQ2pUunBmtRXo1Lf8hMVVcNl8JafV38aM2/Fu5V16Bn63r6xt97j09+MXSFi4BniGFae3hzbH9+hYBzkpuUh5aZmHuanZOZgIuvbGiNeomCnaxxap2upaCZsq+1kAACH5BAkBAAEALAAAAAAoACgAAAKXjI8By5zf4kOxTVrXNVlv1X0d8IGZGKLnNpYtm8Lr9cqVeuOSvfOW79D9aDHizNhDJidFZhNydEahOaDH6nomtJjp1tutKoNWkvA6JqfRVLHU/QUfau9l2x7G54d1fl995xcIGAdXqMfBNadoYrhH+Mg2KBlpVpbluCiXmMnZ2Sh4GBqJ+ckIOqqJ6LmKSllZmsoq6wpQAAAh+QQJAQABACwAAAAAKAAoAAAClYx/oLvoxuJDkU1a1YUZbJ59nSd2ZXhWqbRa2/gF8Gu2DY3iqs7yrq+xBYEkYvFSM8aSSObE+ZgRl1BHFZNr7pRCavZ5BW2142hY3AN/zWtsmf12p9XxxFl2lpLn1rseztfXZjdIWIf2s5dItwjYKBgo9yg5pHgzJXTEeGlZuenpyPmpGQoKOWkYmSpaSnqKileI2FAAACH5BAkBAAEALAAAAAAoACgAAAKVjB+gu+jG4kORTVrVhRlsnn2dJ3ZleFaptFrb+CXmO9OozeL5VfP99HvAWhpiUdcwkpBH3825AwYdU8xTqlLGhtCosArKMpvfa1mMRae9VvWZfeB2XfPkeLmm18lUcBj+p5dnN8jXZ3YIGEhYuOUn45aoCDkp16hl5IjYJvjWKcnoGQpqyPlpOhr3aElaqrq56Bq7VAAAOw==);height:100%;-ms-filter:"alpha(opacity=25)";opacity:.25}.ui-progressbar-indeterminate .ui-progressbar-value{background-image:none}.ui-selectable{-ms-touch-action:none;touch-action:none}.ui-selectable-helper{position:absolute;z-index:100;border:1px dotted #000}.ui-selectmenu-menu{padding:0;margin:0;position:absolute;top:0;left:0;display:none}.ui-selectmenu-menu .ui-menu{overflow:auto;overflow-x:hidden;padding-bottom:1px}.ui-selectmenu-menu .ui-menu .ui-selectmenu-optgroup{font-size:1em;font-weight:700;line-height:1.5;padding:2px .4em;margin:.5em 0 0 0;height:auto;border:0}.ui-selectmenu-open{display:block}.ui-selectmenu-text{display:block;margin-right:20px;overflow:hidden;text-overflow:ellipsis}.ui-selectmenu-button.ui-button{text-align:left;white-space:nowrap;width:14em}.ui-selectmenu-icon.ui-icon{float:right;margin-top:0}.ui-slider{position:relative;text-align:left}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:pointer;-ms-touch-action:none;touch-action:none}.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}.ui-slider.ui-state-disabled .ui-slider-handle,.ui-slider.ui-state-disabled .ui-slider-range{filter:inherit}.ui-slider-horizontal{height:.8em}.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-left:-.6em}.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.ui-slider-horizontal .ui-slider-range-min{left:0}.ui-slider-horizontal .ui-slider-range-max{right:0}.ui-slider-vertical{width:.8em;height:100px}.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}.ui-slider-vertical .ui-slider-range{left:0;width:100%}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}.ui-sortable-handle{-ms-touch-action:none;touch-action:none}.ui-spinner{position:relative;display:inline-block;overflow:hidden;padding:0;vertical-align:middle}.ui-spinner-input{border:none;background:0 0;color:inherit;padding:.222em 0;margin:.2em 0;vertical-align:middle;margin-left:.4em;margin-right:2em}.ui-spinner-button{width:1.6em;height:50%;font-size:.5em;padding:0;margin:0;text-align:center;position:absolute;cursor:default;display:block;overflow:hidden;right:0}.ui-spinner a.ui-spinner-button{border-top-style:none;border-bottom-style:none;border-right-style:none}.ui-spinner-up{top:0}.ui-spinner-down{bottom:0}.ui-tabs{position:relative;padding:.2em}.ui-tabs .ui-tabs-nav{margin:0;padding:.2em .2em 0}.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:1px .2em 0 0;border-bottom-width:0;padding:0;white-space:nowrap}.ui-tabs .ui-tabs-nav .ui-tabs-anchor{float:left;padding:.5em 1em;text-decoration:none}.ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-1px;padding-bottom:1px}.ui-tabs .ui-tabs-nav li.ui-state-disabled .ui-tabs-anchor,.ui-tabs .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor,.ui-tabs .ui-tabs-nav li.ui-tabs-loading .ui-tabs-anchor{cursor:text}.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor{cursor:pointer}.ui-tabs .ui-tabs-panel{display:block;border-width:0;padding:1em 1.4em;background:0 0}.ui-tooltip{padding:8px;position:absolute;z-index:9999;max-width:300px}body .ui-tooltip{border-width:2px}.ui-widget{font-family:Verdana,Arial,sans-serif;font-size:1.1em}.ui-widget .ui-widget{font-size:1em}.ui-widget button,.ui-widget input,.ui-widget select,.ui-widget textarea{font-family:Verdana,Arial,sans-serif;font-size:1em}.ui-widget.ui-widget-content{border:1px solid #d3d3d3}.ui-widget-content{border:1px solid #aaa;background:#fff;color:#222}.ui-widget-content a{color:#222}.ui-widget-header{border:1px solid #aaa;color:#222;font-weight:700}.ui-widget-header a{color:#222}.ui-button,.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default,html .ui-button.ui-state-disabled:active,html .ui-button.ui-state-disabled:hover{border:1px solid #d3d3d3;font-weight:400;color:#555}.ui-button,.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited,a.ui-button,a:link.ui-button,a:visited.ui-button{color:#555;text-decoration:none}.ui-button:focus,.ui-button:hover,.ui-state-focus,.ui-state-hover,.ui-widget-content .ui-state-focus,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-focus,.ui-widget-header .ui-state-hover{border:1px solid #999;font-weight:400;color:#212121}.ui-state-focus a,.ui-state-focus a:hover,.ui-state-focus a:link,.ui-state-focus a:visited,.ui-state-hover a,.ui-state-hover a:hover,.ui-state-hover a:link,.ui-state-hover a:visited,a.ui-button:focus,a.ui-button:hover{color:#212121;text-decoration:none}.ui-visual-focus{box-shadow:0 0 3px 1px #5e9ed6}.ui-button.ui-state-active:hover,.ui-button:active,.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active,a.ui-button:active{border:1px solid #aaa;font-weight:400;color:#212121}.ui-icon-background,.ui-state-active .ui-icon-background{border:#aaa;background-color:#212121}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#212121;text-decoration:none}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #fcefa1;color:#363636}.ui-state-checked{border:1px solid #fcefa1;background:#fbf9ee}.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#363636}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #cd0a0a;color:#cd0a0a}.ui-state-error a,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error a{color:#cd0a0a}.ui-state-error-text,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error-text{color:#cd0a0a}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:700}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;-ms-filter:"alpha(opacity=70)";font-weight:400}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;-ms-filter:"alpha(opacity=35)";background-image:none}.ui-state-disabled .ui-icon{-ms-filter:"alpha(opacity=35)"}.ui-icon{width:16px;height:16px}.ui-icon-blank.ui-icon-blank.ui-icon-blank{background-image:none}.ui-icon-caret-1-n{background-position:0 0}.ui-icon-caret-1-ne{background-position:-16px 0}.ui-icon-caret-1-e{background-position:-32px 0}.ui-icon-caret-1-se{background-position:-48px 0}.ui-icon-caret-1-s{background-position:-65px 0}.ui-icon-caret-1-sw{background-position:-80px 0}.ui-icon-caret-1-w{background-position:-96px 0}.ui-icon-caret-1-nw{background-position:-112px 0}.ui-icon-caret-2-n-s{background-position:-128px 0}.ui-icon-caret-2-e-w{background-position:-144px 0}.ui-icon-triangle-1-n{background-position:0 -16px}.ui-icon-triangle-1-ne{background-position:-16px -16px}.ui-icon-triangle-1-e{background-position:-32px -16px}.ui-icon-triangle-1-se{background-position:-48px -16px}.ui-icon-triangle-1-s{background-position:-65px -16px}.ui-icon-triangle-1-sw{background-position:-80px -16px}.ui-icon-triangle-1-w{background-position:-96px -16px}.ui-icon-triangle-1-nw{background-position:-112px -16px}.ui-icon-triangle-2-n-s{background-position:-128px -16px}.ui-icon-triangle-2-e-w{background-position:-144px -16px}.ui-icon-arrow-1-n{background-position:0 -32px}.ui-icon-arrow-1-ne{background-position:-16px -32px}.ui-icon-arrow-1-e{background-position:-32px -32px}.ui-icon-arrow-1-se{background-position:-48px -32px}.ui-icon-arrow-1-s{background-position:-65px -32px}.ui-icon-arrow-1-sw{background-position:-80px -32px}.ui-icon-arrow-1-w{background-position:-96px -32px}.ui-icon-arrow-1-nw{background-position:-112px -32px}.ui-icon-arrow-2-n-s{background-position:-128px -32px}.ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.ui-icon-arrow-2-e-w{background-position:-160px -32px}.ui-icon-arrow-2-se-nw{background-position:-176px -32px}.ui-icon-arrowstop-1-n{background-position:-192px -32px}.ui-icon-arrowstop-1-e{background-position:-208px -32px}.ui-icon-arrowstop-1-s{background-position:-224px -32px}.ui-icon-arrowstop-1-w{background-position:-240px -32px}.ui-icon-arrowthick-1-n{background-position:1px -48px}.ui-icon-arrowthick-1-ne{background-position:-16px -48px}.ui-icon-arrowthick-1-e{background-position:-32px -48px}.ui-icon-arrowthick-1-se{background-position:-48px -48px}.ui-icon-arrowthick-1-s{background-position:-64px -48px}.ui-icon-arrowthick-1-sw{background-position:-80px -48px}.ui-icon-arrowthick-1-w{background-position:-96px -48px}.ui-icon-arrowthick-1-nw{background-position:-112px -48px}.ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.ui-icon-arrowreturn-1-w{background-position:-64px -64px}.ui-icon-arrowreturn-1-n{background-position:-80px -64px}.ui-icon-arrowreturn-1-e{background-position:-96px -64px}.ui-icon-arrowreturn-1-s{background-position:-112px -64px}.ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.ui-icon-arrow-4{background-position:0 -80px}.ui-icon-arrow-4-diag{background-position:-16px -80px}.ui-icon-extlink{background-position:-32px -80px}.ui-icon-newwin{background-position:-48px -80px}.ui-icon-refresh{background-position:-64px -80px}.ui-icon-shuffle{background-position:-80px -80px}.ui-icon-transfer-e-w{background-position:-96px -80px}.ui-icon-transferthick-e-w{background-position:-112px -80px}.ui-icon-folder-collapsed{background-position:0 -96px}.ui-icon-folder-open{background-position:-16px -96px}.ui-icon-document{background-position:-32px -96px}.ui-icon-document-b{background-position:-48px -96px}.ui-icon-note{background-position:-64px -96px}.ui-icon-mail-closed{background-position:-80px -96px}.ui-icon-mail-open{background-position:-96px -96px}.ui-icon-suitcase{background-position:-112px -96px}.ui-icon-comment{background-position:-128px -96px}.ui-icon-person{background-position:-144px -96px}.ui-icon-print{background-position:-160px -96px}.ui-icon-trash{background-position:-176px -96px}.ui-icon-locked{background-position:-192px -96px}.ui-icon-unlocked{background-position:-208px -96px}.ui-icon-bookmark{background-position:-224px -96px}.ui-icon-tag{background-position:-240px -96px}.ui-icon-home{background-position:0 -112px}.ui-icon-flag{background-position:-16px -112px}.ui-icon-calendar{background-position:-32px -112px}.ui-icon-cart{background-position:-48px -112px}.ui-icon-pencil{background-position:-64px -112px}.ui-icon-clock{background-position:-80px -112px}.ui-icon-disk{background-position:-96px -112px}.ui-icon-calculator{background-position:-112px -112px}.ui-icon-zoomin{background-position:-128px -112px}.ui-icon-zoomout{background-position:-144px -112px}.ui-icon-search{background-position:-160px -112px}.ui-icon-wrench{background-position:-176px -112px}.ui-icon-gear{background-position:-192px -112px}.ui-icon-heart{background-position:-208px -112px}.ui-icon-star{background-position:-224px -112px}.ui-icon-link{background-position:-240px -112px}.ui-icon-cancel{background-position:0 -128px}.ui-icon-plus{background-position:-16px -128px}.ui-icon-plusthick{background-position:-32px -128px}.ui-icon-minus{background-position:-48px -128px}.ui-icon-minusthick{background-position:-64px -128px}.ui-icon-close{background-position:-80px -128px}.ui-icon-closethick{background-position:-96px -128px}.ui-icon-key{background-position:-112px -128px}.ui-icon-lightbulb{background-position:-128px -128px}.ui-icon-scissors{background-position:-144px -128px}.ui-icon-clipboard{background-position:-160px -128px}.ui-icon-copy{background-position:-176px -128px}.ui-icon-contact{background-position:-192px -128px}.ui-icon-image{background-position:-208px -128px}.ui-icon-video{background-position:-224px -128px}.ui-icon-script{background-position:-240px -128px}.ui-icon-alert{background-position:0 -144px}.ui-icon-info{background-position:-16px -144px}.ui-icon-notice{background-position:-32px -144px}.ui-icon-help{background-position:-48px -144px}.ui-icon-check{background-position:-64px -144px}.ui-icon-bullet{background-position:-80px -144px}.ui-icon-radio-on{background-position:-96px -144px}.ui-icon-radio-off{background-position:-112px -144px}.ui-icon-pin-w{background-position:-128px -144px}.ui-icon-pin-s{background-position:-144px -144px}.ui-icon-play{background-position:0 -160px}.ui-icon-pause{background-position:-16px -160px}.ui-icon-seek-next{background-position:-32px -160px}.ui-icon-seek-prev{background-position:-48px -160px}.ui-icon-seek-end{background-position:-64px -160px}.ui-icon-seek-start{background-position:-80px -160px}.ui-icon-seek-first{background-position:-80px -160px}.ui-icon-stop{background-position:-96px -160px}.ui-icon-eject{background-position:-112px -160px}.ui-icon-volume-off{background-position:-128px -160px}.ui-icon-volume-on{background-position:-144px -160px}.ui-icon-power{background-position:0 -176px}.ui-icon-signal-diag{background-position:-16px -176px}.ui-icon-signal{background-position:-32px -176px}.ui-icon-battery-0{background-position:-48px -176px}.ui-icon-battery-1{background-position:-64px -176px}.ui-icon-battery-2{background-position:-80px -176px}.ui-icon-battery-3{background-position:-96px -176px}.ui-icon-circle-plus{background-position:0 -192px}.ui-icon-circle-minus{background-position:-16px -192px}.ui-icon-circle-close{background-position:-32px -192px}.ui-icon-circle-triangle-e{background-position:-48px -192px}.ui-icon-circle-triangle-s{background-position:-64px -192px}.ui-icon-circle-triangle-w{background-position:-80px -192px}.ui-icon-circle-triangle-n{background-position:-96px -192px}.ui-icon-circle-arrow-e{background-position:-112px -192px}.ui-icon-circle-arrow-s{background-position:-128px -192px}.ui-icon-circle-arrow-w{background-position:-144px -192px}.ui-icon-circle-arrow-n{background-position:-160px -192px}.ui-icon-circle-zoomin{background-position:-176px -192px}.ui-icon-circle-zoomout{background-position:-192px -192px}.ui-icon-circle-check{background-position:-208px -192px}.ui-icon-circlesmall-plus{background-position:0 -208px}.ui-icon-circlesmall-minus{background-position:-16px -208px}.ui-icon-circlesmall-close{background-position:-32px -208px}.ui-icon-squaresmall-plus{background-position:-48px -208px}.ui-icon-squaresmall-minus{background-position:-64px -208px}.ui-icon-squaresmall-close{background-position:-80px -208px}.ui-icon-grip-dotted-vertical{background-position:0 -224px}.ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.ui-icon-grip-solid-vertical{background-position:-32px -224px}.ui-icon-grip-solid-horizontal{background-position:-48px -224px}.ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.ui-icon-grip-diagonal-se{background-position:-80px -224px}.ui-corner-all,.ui-corner-left,.ui-corner-tl,.ui-corner-top{border-top-left-radius:4px}.ui-corner-all,.ui-corner-right,.ui-corner-top,.ui-corner-tr{border-top-right-radius:4px}.ui-corner-all,.ui-corner-bl,.ui-corner-bottom,.ui-corner-left{border-bottom-left-radius:4px}.ui-corner-all,.ui-corner-bottom,.ui-corner-br,.ui-corner-right{border-bottom-right-radius:4px}.ui-widget-overlay{background:#aaa;opacity:.3;-ms-filter:Alpha(Opacity=30)}.ui-widget-shadow{-webkit-box-shadow:-8px -8px 8px #aaa;box-shadow:-8px -8px 8px #aaa}
|
assets/chosen/chosen.css
ADDED
@@ -0,0 +1,496 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
Chosen, a Select Box Enhancer for jQuery and Prototype
|
3 |
+
by Patrick Filler for Harvest, http://getharvest.com
|
4 |
+
|
5 |
+
Version 1.8.7
|
6 |
+
Full source at https://github.com/harvesthq/chosen
|
7 |
+
Copyright (c) 2011-2018 Harvest http://getharvest.com
|
8 |
+
|
9 |
+
MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
|
10 |
+
This file is generated by `grunt build`, do not edit it by hand.
|
11 |
+
*/
|
12 |
+
|
13 |
+
/* @group Base */
|
14 |
+
.chosen-container {
|
15 |
+
position: relative;
|
16 |
+
display: inline-block;
|
17 |
+
vertical-align: middle;
|
18 |
+
font-size: 13px;
|
19 |
+
-webkit-user-select: none;
|
20 |
+
-moz-user-select: none;
|
21 |
+
-ms-user-select: none;
|
22 |
+
user-select: none;
|
23 |
+
}
|
24 |
+
|
25 |
+
.chosen-container * {
|
26 |
+
-webkit-box-sizing: border-box;
|
27 |
+
box-sizing: border-box;
|
28 |
+
}
|
29 |
+
|
30 |
+
.chosen-container .chosen-drop {
|
31 |
+
position: absolute;
|
32 |
+
top: 100%;
|
33 |
+
z-index: 1010;
|
34 |
+
width: 100%;
|
35 |
+
border: 1px solid #aaa;
|
36 |
+
border-top: 0;
|
37 |
+
background: #fff;
|
38 |
+
-webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
|
39 |
+
box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
|
40 |
+
clip: rect(0, 0, 0, 0);
|
41 |
+
-webkit-clip-path: inset(100% 100%);
|
42 |
+
clip-path: inset(100% 100%);
|
43 |
+
}
|
44 |
+
|
45 |
+
.chosen-container.chosen-with-drop .chosen-drop {
|
46 |
+
clip: auto;
|
47 |
+
-webkit-clip-path: none;
|
48 |
+
clip-path: none;
|
49 |
+
}
|
50 |
+
|
51 |
+
.chosen-container a {
|
52 |
+
cursor: pointer;
|
53 |
+
}
|
54 |
+
|
55 |
+
.chosen-container .search-choice .group-name, .chosen-container .chosen-single .group-name {
|
56 |
+
margin-right: 4px;
|
57 |
+
overflow: hidden;
|
58 |
+
white-space: nowrap;
|
59 |
+
text-overflow: ellipsis;
|
60 |
+
font-weight: normal;
|
61 |
+
color: #999999;
|
62 |
+
}
|
63 |
+
|
64 |
+
.chosen-container .search-choice .group-name:after, .chosen-container .chosen-single .group-name:after {
|
65 |
+
content: ":";
|
66 |
+
padding-left: 2px;
|
67 |
+
vertical-align: top;
|
68 |
+
}
|
69 |
+
|
70 |
+
/* @end */
|
71 |
+
/* @group Single Chosen */
|
72 |
+
.chosen-container-single .chosen-single {
|
73 |
+
position: relative;
|
74 |
+
display: block;
|
75 |
+
overflow: hidden;
|
76 |
+
padding: 0 0 0 8px;
|
77 |
+
height: 25px;
|
78 |
+
border: 1px solid #aaa;
|
79 |
+
border-radius: 5px;
|
80 |
+
background-color: #fff;
|
81 |
+
background: -webkit-gradient(linear, left top, left bottom, color-stop(20%, #fff), color-stop(50%, #f6f6f6), color-stop(52%, #eee), to(#f4f4f4));
|
82 |
+
background: linear-gradient(#fff 20%, #f6f6f6 50%, #eee 52%, #f4f4f4 100%);
|
83 |
+
background-clip: padding-box;
|
84 |
+
-webkit-box-shadow: 0 0 3px #fff inset, 0 1px 1px rgba(0, 0, 0, 0.1);
|
85 |
+
box-shadow: 0 0 3px #fff inset, 0 1px 1px rgba(0, 0, 0, 0.1);
|
86 |
+
color: #444;
|
87 |
+
text-decoration: none;
|
88 |
+
white-space: nowrap;
|
89 |
+
line-height: 24px;
|
90 |
+
}
|
91 |
+
|
92 |
+
.chosen-container-single .chosen-default {
|
93 |
+
color: #999;
|
94 |
+
}
|
95 |
+
|
96 |
+
.chosen-container-single .chosen-single span {
|
97 |
+
display: block;
|
98 |
+
overflow: hidden;
|
99 |
+
margin-right: 26px;
|
100 |
+
text-overflow: ellipsis;
|
101 |
+
white-space: nowrap;
|
102 |
+
}
|
103 |
+
|
104 |
+
.chosen-container-single .chosen-single-with-deselect span {
|
105 |
+
margin-right: 38px;
|
106 |
+
}
|
107 |
+
|
108 |
+
.chosen-container-single .chosen-single abbr {
|
109 |
+
position: absolute;
|
110 |
+
top: 6px;
|
111 |
+
right: 26px;
|
112 |
+
display: block;
|
113 |
+
width: 12px;
|
114 |
+
height: 12px;
|
115 |
+
background: url("chosen-sprite.png") -42px 1px no-repeat;
|
116 |
+
font-size: 1px;
|
117 |
+
}
|
118 |
+
|
119 |
+
.chosen-container-single .chosen-single abbr:hover {
|
120 |
+
background-position: -42px -10px;
|
121 |
+
}
|
122 |
+
|
123 |
+
.chosen-container-single.chosen-disabled .chosen-single abbr:hover {
|
124 |
+
background-position: -42px -10px;
|
125 |
+
}
|
126 |
+
|
127 |
+
.chosen-container-single .chosen-single div {
|
128 |
+
position: absolute;
|
129 |
+
top: 0;
|
130 |
+
right: 0;
|
131 |
+
display: block;
|
132 |
+
width: 18px;
|
133 |
+
height: 100%;
|
134 |
+
}
|
135 |
+
|
136 |
+
.chosen-container-single .chosen-single div b {
|
137 |
+
display: block;
|
138 |
+
width: 100%;
|
139 |
+
height: 100%;
|
140 |
+
background: url("chosen-sprite.png") no-repeat 0px 2px;
|
141 |
+
}
|
142 |
+
|
143 |
+
.chosen-container-single .chosen-search {
|
144 |
+
position: relative;
|
145 |
+
z-index: 1010;
|
146 |
+
margin: 0;
|
147 |
+
padding: 3px 4px;
|
148 |
+
white-space: nowrap;
|
149 |
+
}
|
150 |
+
|
151 |
+
.chosen-container-single .chosen-search input[type="text"] {
|
152 |
+
margin: 1px 0;
|
153 |
+
padding: 4px 20px 4px 5px;
|
154 |
+
width: 100%;
|
155 |
+
height: auto;
|
156 |
+
outline: 0;
|
157 |
+
border: 1px solid #aaa;
|
158 |
+
background: url("chosen-sprite.png") no-repeat 100% -20px;
|
159 |
+
font-size: 1em;
|
160 |
+
font-family: sans-serif;
|
161 |
+
line-height: normal;
|
162 |
+
border-radius: 0;
|
163 |
+
}
|
164 |
+
|
165 |
+
.chosen-container-single .chosen-drop {
|
166 |
+
margin-top: -1px;
|
167 |
+
border-radius: 0 0 4px 4px;
|
168 |
+
background-clip: padding-box;
|
169 |
+
}
|
170 |
+
|
171 |
+
.chosen-container-single.chosen-container-single-nosearch .chosen-search {
|
172 |
+
position: absolute;
|
173 |
+
clip: rect(0, 0, 0, 0);
|
174 |
+
-webkit-clip-path: inset(100% 100%);
|
175 |
+
clip-path: inset(100% 100%);
|
176 |
+
}
|
177 |
+
|
178 |
+
/* @end */
|
179 |
+
/* @group Results */
|
180 |
+
.chosen-container .chosen-results {
|
181 |
+
color: #444;
|
182 |
+
position: relative;
|
183 |
+
overflow-x: hidden;
|
184 |
+
overflow-y: auto;
|
185 |
+
margin: 0 4px 4px 0;
|
186 |
+
padding: 0 0 0 4px;
|
187 |
+
max-height: 240px;
|
188 |
+
-webkit-overflow-scrolling: touch;
|
189 |
+
}
|
190 |
+
|
191 |
+
.chosen-container .chosen-results li {
|
192 |
+
display: none;
|
193 |
+
margin: 0;
|
194 |
+
padding: 5px 6px;
|
195 |
+
list-style: none;
|
196 |
+
line-height: 15px;
|
197 |
+
word-wrap: break-word;
|
198 |
+
-webkit-touch-callout: none;
|
199 |
+
}
|
200 |
+
|
201 |
+
.chosen-container .chosen-results li.active-result {
|
202 |
+
display: list-item;
|
203 |
+
cursor: pointer;
|
204 |
+
}
|
205 |
+
|
206 |
+
.chosen-container .chosen-results li.disabled-result {
|
207 |
+
display: list-item;
|
208 |
+
color: #ccc;
|
209 |
+
cursor: default;
|
210 |
+
}
|
211 |
+
|
212 |
+
.chosen-container .chosen-results li.highlighted {
|
213 |
+
background-color: #3875d7;
|
214 |
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(20%, #3875d7), color-stop(90%, #2a62bc));
|
215 |
+
background-image: linear-gradient(#3875d7 20%, #2a62bc 90%);
|
216 |
+
color: #fff;
|
217 |
+
}
|
218 |
+
|
219 |
+
.chosen-container .chosen-results li.no-results {
|
220 |
+
color: #777;
|
221 |
+
display: list-item;
|
222 |
+
background: #f4f4f4;
|
223 |
+
}
|
224 |
+
|
225 |
+
.chosen-container .chosen-results li.group-result {
|
226 |
+
display: list-item;
|
227 |
+
font-weight: bold;
|
228 |
+
cursor: default;
|
229 |
+
}
|
230 |
+
|
231 |
+
.chosen-container .chosen-results li.group-option {
|
232 |
+
padding-left: 15px;
|
233 |
+
}
|
234 |
+
|
235 |
+
.chosen-container .chosen-results li em {
|
236 |
+
font-style: normal;
|
237 |
+
text-decoration: underline;
|
238 |
+
}
|
239 |
+
|
240 |
+
/* @end */
|
241 |
+
/* @group Multi Chosen */
|
242 |
+
.chosen-container-multi .chosen-choices {
|
243 |
+
position: relative;
|
244 |
+
overflow: hidden;
|
245 |
+
margin: 0;
|
246 |
+
padding: 0 5px;
|
247 |
+
width: 100%;
|
248 |
+
height: auto;
|
249 |
+
border: 1px solid #aaa;
|
250 |
+
background-color: #fff;
|
251 |
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(1%, #eee), color-stop(15%, #fff));
|
252 |
+
background-image: linear-gradient(#eee 1%, #fff 15%);
|
253 |
+
cursor: text;
|
254 |
+
}
|
255 |
+
|
256 |
+
.chosen-container-multi .chosen-choices li {
|
257 |
+
float: left;
|
258 |
+
list-style: none;
|
259 |
+
}
|
260 |
+
|
261 |
+
.chosen-container-multi .chosen-choices li.search-field {
|
262 |
+
margin: 0;
|
263 |
+
padding: 0;
|
264 |
+
white-space: nowrap;
|
265 |
+
}
|
266 |
+
|
267 |
+
.chosen-container-multi .chosen-choices li.search-field input[type="text"] {
|
268 |
+
margin: 1px 0;
|
269 |
+
padding: 0;
|
270 |
+
height: 25px;
|
271 |
+
outline: 0;
|
272 |
+
border: 0 !important;
|
273 |
+
background: transparent !important;
|
274 |
+
-webkit-box-shadow: none;
|
275 |
+
box-shadow: none;
|
276 |
+
color: #999;
|
277 |
+
font-size: 100%;
|
278 |
+
font-family: sans-serif;
|
279 |
+
line-height: normal;
|
280 |
+
border-radius: 0;
|
281 |
+
width: 25px;
|
282 |
+
}
|
283 |
+
|
284 |
+
.chosen-container-multi .chosen-choices li.search-choice {
|
285 |
+
position: relative;
|
286 |
+
margin: 3px 5px 3px 0;
|
287 |
+
padding: 3px 20px 3px 5px;
|
288 |
+
border: 1px solid #aaa;
|
289 |
+
max-width: 100%;
|
290 |
+
border-radius: 3px;
|
291 |
+
background-color: #eeeeee;
|
292 |
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), to(#eee));
|
293 |
+
background-image: linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
|
294 |
+
background-size: 100% 19px;
|
295 |
+
background-repeat: repeat-x;
|
296 |
+
background-clip: padding-box;
|
297 |
+
-webkit-box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
|
298 |
+
box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
|
299 |
+
color: #333;
|
300 |
+
line-height: 13px;
|
301 |
+
cursor: default;
|
302 |
+
}
|
303 |
+
|
304 |
+
.chosen-container-multi .chosen-choices li.search-choice span {
|
305 |
+
word-wrap: break-word;
|
306 |
+
}
|
307 |
+
|
308 |
+
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
|
309 |
+
position: absolute;
|
310 |
+
top: 4px;
|
311 |
+
right: 3px;
|
312 |
+
display: block;
|
313 |
+
width: 12px;
|
314 |
+
height: 12px;
|
315 |
+
background: url("chosen-sprite.png") -42px 1px no-repeat;
|
316 |
+
font-size: 1px;
|
317 |
+
}
|
318 |
+
|
319 |
+
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover {
|
320 |
+
background-position: -42px -10px;
|
321 |
+
}
|
322 |
+
|
323 |
+
.chosen-container-multi .chosen-choices li.search-choice-disabled {
|
324 |
+
padding-right: 5px;
|
325 |
+
border: 1px solid #ccc;
|
326 |
+
background-color: #e4e4e4;
|
327 |
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), to(#eee));
|
328 |
+
background-image: linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
|
329 |
+
color: #666;
|
330 |
+
}
|
331 |
+
|
332 |
+
.chosen-container-multi .chosen-choices li.search-choice-focus {
|
333 |
+
background: #d4d4d4;
|
334 |
+
}
|
335 |
+
|
336 |
+
.chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close {
|
337 |
+
background-position: -42px -10px;
|
338 |
+
}
|
339 |
+
|
340 |
+
.chosen-container-multi .chosen-results {
|
341 |
+
margin: 0;
|
342 |
+
padding: 0;
|
343 |
+
}
|
344 |
+
|
345 |
+
.chosen-container-multi .chosen-drop .result-selected {
|
346 |
+
display: list-item;
|
347 |
+
color: #ccc;
|
348 |
+
cursor: default;
|
349 |
+
}
|
350 |
+
|
351 |
+
/* @end */
|
352 |
+
/* @group Active */
|
353 |
+
.chosen-container-active .chosen-single {
|
354 |
+
border: 1px solid #5897fb;
|
355 |
+
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
|
356 |
+
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
|
357 |
+
}
|
358 |
+
|
359 |
+
.chosen-container-active.chosen-with-drop .chosen-single {
|
360 |
+
border: 1px solid #aaa;
|
361 |
+
border-bottom-right-radius: 0;
|
362 |
+
border-bottom-left-radius: 0;
|
363 |
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(20%, #eee), color-stop(80%, #fff));
|
364 |
+
background-image: linear-gradient(#eee 20%, #fff 80%);
|
365 |
+
-webkit-box-shadow: 0 1px 0 #fff inset;
|
366 |
+
box-shadow: 0 1px 0 #fff inset;
|
367 |
+
}
|
368 |
+
|
369 |
+
.chosen-container-active.chosen-with-drop .chosen-single div {
|
370 |
+
border-left: none;
|
371 |
+
background: transparent;
|
372 |
+
}
|
373 |
+
|
374 |
+
.chosen-container-active.chosen-with-drop .chosen-single div b {
|
375 |
+
background-position: -18px 2px;
|
376 |
+
}
|
377 |
+
|
378 |
+
.chosen-container-active .chosen-choices {
|
379 |
+
border: 1px solid #5897fb;
|
380 |
+
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
|
381 |
+
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
|
382 |
+
}
|
383 |
+
|
384 |
+
.chosen-container-active .chosen-choices li.search-field input[type="text"] {
|
385 |
+
color: #222 !important;
|
386 |
+
}
|
387 |
+
|
388 |
+
/* @end */
|
389 |
+
/* @group Disabled Support */
|
390 |
+
.chosen-disabled {
|
391 |
+
opacity: 0.5 !important;
|
392 |
+
cursor: default;
|
393 |
+
}
|
394 |
+
|
395 |
+
.chosen-disabled .chosen-single {
|
396 |
+
cursor: default;
|
397 |
+
}
|
398 |
+
|
399 |
+
.chosen-disabled .chosen-choices .search-choice .search-choice-close {
|
400 |
+
cursor: default;
|
401 |
+
}
|
402 |
+
|
403 |
+
/* @end */
|
404 |
+
/* @group Right to Left */
|
405 |
+
.chosen-rtl {
|
406 |
+
text-align: right;
|
407 |
+
}
|
408 |
+
|
409 |
+
.chosen-rtl .chosen-single {
|
410 |
+
overflow: visible;
|
411 |
+
padding: 0 8px 0 0;
|
412 |
+
}
|
413 |
+
|
414 |
+
.chosen-rtl .chosen-single span {
|
415 |
+
margin-right: 0;
|
416 |
+
margin-left: 26px;
|
417 |
+
direction: rtl;
|
418 |
+
}
|
419 |
+
|
420 |
+
.chosen-rtl .chosen-single-with-deselect span {
|
421 |
+
margin-left: 38px;
|
422 |
+
}
|
423 |
+
|
424 |
+
.chosen-rtl .chosen-single div {
|
425 |
+
right: auto;
|
426 |
+
left: 3px;
|
427 |
+
}
|
428 |
+
|
429 |
+
.chosen-rtl .chosen-single abbr {
|
430 |
+
right: auto;
|
431 |
+
left: 26px;
|
432 |
+
}
|
433 |
+
|
434 |
+
.chosen-rtl .chosen-choices li {
|
435 |
+
float: right;
|
436 |
+
}
|
437 |
+
|
438 |
+
.chosen-rtl .chosen-choices li.search-field input[type="text"] {
|
439 |
+
direction: rtl;
|
440 |
+
}
|
441 |
+
|
442 |
+
.chosen-rtl .chosen-choices li.search-choice {
|
443 |
+
margin: 3px 5px 3px 0;
|
444 |
+
padding: 3px 5px 3px 19px;
|
445 |
+
}
|
446 |
+
|
447 |
+
.chosen-rtl .chosen-choices li.search-choice .search-choice-close {
|
448 |
+
right: auto;
|
449 |
+
left: 4px;
|
450 |
+
}
|
451 |
+
|
452 |
+
.chosen-rtl.chosen-container-single .chosen-results {
|
453 |
+
margin: 0 0 4px 4px;
|
454 |
+
padding: 0 4px 0 0;
|
455 |
+
}
|
456 |
+
|
457 |
+
.chosen-rtl .chosen-results li.group-option {
|
458 |
+
padding-right: 15px;
|
459 |
+
padding-left: 0;
|
460 |
+
}
|
461 |
+
|
462 |
+
.chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div {
|
463 |
+
border-right: none;
|
464 |
+
}
|
465 |
+
|
466 |
+
.chosen-rtl .chosen-search input[type="text"] {
|
467 |
+
padding: 4px 5px 4px 20px;
|
468 |
+
background: url("chosen-sprite.png") no-repeat -30px -20px;
|
469 |
+
direction: rtl;
|
470 |
+
}
|
471 |
+
|
472 |
+
.chosen-rtl.chosen-container-single .chosen-single div b {
|
473 |
+
background-position: 6px 2px;
|
474 |
+
}
|
475 |
+
|
476 |
+
.chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b {
|
477 |
+
background-position: -12px 2px;
|
478 |
+
}
|
479 |
+
|
480 |
+
/* @end */
|
481 |
+
/* @group Retina compatibility */
|
482 |
+
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi), only screen and (min-resolution: 1.5dppx) {
|
483 |
+
.chosen-rtl .chosen-search input[type="text"],
|
484 |
+
.chosen-container-single .chosen-single abbr,
|
485 |
+
.chosen-container-single .chosen-single div b,
|
486 |
+
.chosen-container-single .chosen-search input[type="text"],
|
487 |
+
.chosen-container-multi .chosen-choices .search-choice .search-choice-close,
|
488 |
+
.chosen-container .chosen-results-scroll-down span,
|
489 |
+
.chosen-container .chosen-results-scroll-up span {
|
490 |
+
background-image: url("chosen-sprite@2x.png") !important;
|
491 |
+
background-size: 52px 37px !important;
|
492 |
+
background-repeat: no-repeat !important;
|
493 |
+
}
|
494 |
+
}
|
495 |
+
|
496 |
+
/* @end */
|
assets/chosen/chosen.jquery.js
ADDED
@@ -0,0 +1,1359 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
Chosen, a Select Box Enhancer for jQuery and Prototype
|
3 |
+
by Patrick Filler for Harvest, http://getharvest.com
|
4 |
+
|
5 |
+
Version 1.8.7
|
6 |
+
Full source at https://github.com/harvesthq/chosen
|
7 |
+
Copyright (c) 2011-2018 Harvest http://getharvest.com
|
8 |
+
|
9 |
+
MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
|
10 |
+
This file is generated by `grunt build`, do not edit it by hand.
|
11 |
+
*/
|
12 |
+
|
13 |
+
(function() {
|
14 |
+
var $, AbstractChosen, Chosen, SelectParser,
|
15 |
+
bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
|
16 |
+
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
|
17 |
+
hasProp = {}.hasOwnProperty;
|
18 |
+
|
19 |
+
SelectParser = (function() {
|
20 |
+
function SelectParser() {
|
21 |
+
this.options_index = 0;
|
22 |
+
this.parsed = [];
|
23 |
+
}
|
24 |
+
|
25 |
+
SelectParser.prototype.add_node = function(child) {
|
26 |
+
if (child.nodeName.toUpperCase() === "OPTGROUP") {
|
27 |
+
return this.add_group(child);
|
28 |
+
} else {
|
29 |
+
return this.add_option(child);
|
30 |
+
}
|
31 |
+
};
|
32 |
+
|
33 |
+
SelectParser.prototype.add_group = function(group) {
|
34 |
+
var group_position, i, len, option, ref, results1;
|
35 |
+
group_position = this.parsed.length;
|
36 |
+
this.parsed.push({
|
37 |
+
array_index: group_position,
|
38 |
+
group: true,
|
39 |
+
label: group.label,
|
40 |
+
title: group.title ? group.title : void 0,
|
41 |
+
children: 0,
|
42 |
+
disabled: group.disabled,
|
43 |
+
classes: group.className
|
44 |
+
});
|
45 |
+
ref = group.childNodes;
|
46 |
+
results1 = [];
|
47 |
+
for (i = 0, len = ref.length; i < len; i++) {
|
48 |
+
option = ref[i];
|
49 |
+
results1.push(this.add_option(option, group_position, group.disabled));
|
50 |
+
}
|
51 |
+
return results1;
|
52 |
+
};
|
53 |
+
|
54 |
+
SelectParser.prototype.add_option = function(option, group_position, group_disabled) {
|
55 |
+
if (option.nodeName.toUpperCase() === "OPTION") {
|
56 |
+
if (option.text !== "") {
|
57 |
+
if (group_position != null) {
|
58 |
+
this.parsed[group_position].children += 1;
|
59 |
+
}
|
60 |
+
this.parsed.push({
|
61 |
+
array_index: this.parsed.length,
|
62 |
+
options_index: this.options_index,
|
63 |
+
value: option.value,
|
64 |
+
text: option.text,
|
65 |
+
html: option.innerHTML,
|
66 |
+
title: option.title ? option.title : void 0,
|
67 |
+
selected: option.selected,
|
68 |
+
disabled: group_disabled === true ? group_disabled : option.disabled,
|
69 |
+
group_array_index: group_position,
|
70 |
+
group_label: group_position != null ? this.parsed[group_position].label : null,
|
71 |
+
classes: option.className,
|
72 |
+
style: option.style.cssText
|
73 |
+
});
|
74 |
+
} else {
|
75 |
+
this.parsed.push({
|
76 |
+
array_index: this.parsed.length,
|
77 |
+
options_index: this.options_index,
|
78 |
+
empty: true
|
79 |
+
});
|
80 |
+
}
|
81 |
+
return this.options_index += 1;
|
82 |
+
}
|
83 |
+
};
|
84 |
+
|
85 |
+
return SelectParser;
|
86 |
+
|
87 |
+
})();
|
88 |
+
|
89 |
+
SelectParser.select_to_array = function(select) {
|
90 |
+
var child, i, len, parser, ref;
|
91 |
+
parser = new SelectParser();
|
92 |
+
ref = select.childNodes;
|
93 |
+
for (i = 0, len = ref.length; i < len; i++) {
|
94 |
+
child = ref[i];
|
95 |
+
parser.add_node(child);
|
96 |
+
}
|
97 |
+
return parser.parsed;
|
98 |
+
};
|
99 |
+
|
100 |
+
AbstractChosen = (function() {
|
101 |
+
function AbstractChosen(form_field, options1) {
|
102 |
+
this.form_field = form_field;
|
103 |
+
this.options = options1 != null ? options1 : {};
|
104 |
+
this.label_click_handler = bind(this.label_click_handler, this);
|
105 |
+
if (!AbstractChosen.browser_is_supported()) {
|
106 |
+
return;
|
107 |
+
}
|
108 |
+
this.is_multiple = this.form_field.multiple;
|
109 |
+
this.set_default_text();
|
110 |
+
this.set_default_values();
|
111 |
+
this.setup();
|
112 |
+
this.set_up_html();
|
113 |
+
this.register_observers();
|
114 |
+
this.on_ready();
|
115 |
+
}
|
116 |
+
|
117 |
+
AbstractChosen.prototype.set_default_values = function() {
|
118 |
+
this.click_test_action = (function(_this) {
|
119 |
+
return function(evt) {
|
120 |
+
return _this.test_active_click(evt);
|
121 |
+
};
|
122 |
+
})(this);
|
123 |
+
this.activate_action = (function(_this) {
|
124 |
+
return function(evt) {
|
125 |
+
return _this.activate_field(evt);
|
126 |
+
};
|
127 |
+
})(this);
|
128 |
+
this.active_field = false;
|
129 |
+
this.mouse_on_container = false;
|
130 |
+
this.results_showing = false;
|
131 |
+
this.result_highlighted = null;
|
132 |
+
this.is_rtl = this.options.rtl || /\bchosen-rtl\b/.test(this.form_field.className);
|
133 |
+
this.allow_single_deselect = (this.options.allow_single_deselect != null) && (this.form_field.options[0] != null) && this.form_field.options[0].text === "" ? this.options.allow_single_deselect : false;
|
134 |
+
this.disable_search_threshold = this.options.disable_search_threshold || 0;
|
135 |
+
this.disable_search = this.options.disable_search || false;
|
136 |
+
this.enable_split_word_search = this.options.enable_split_word_search != null ? this.options.enable_split_word_search : true;
|
137 |
+
this.group_search = this.options.group_search != null ? this.options.group_search : true;
|
138 |
+
this.search_contains = this.options.search_contains || false;
|
139 |
+
this.single_backstroke_delete = this.options.single_backstroke_delete != null ? this.options.single_backstroke_delete : true;
|
140 |
+
this.max_selected_options = this.options.max_selected_options || Infinity;
|
141 |
+
this.inherit_select_classes = this.options.inherit_select_classes || false;
|
142 |
+
this.display_selected_options = this.options.display_selected_options != null ? this.options.display_selected_options : true;
|
143 |
+
this.display_disabled_options = this.options.display_disabled_options != null ? this.options.display_disabled_options : true;
|
144 |
+
this.include_group_label_in_selected = this.options.include_group_label_in_selected || false;
|
145 |
+
this.max_shown_results = this.options.max_shown_results || Number.POSITIVE_INFINITY;
|
146 |
+
this.case_sensitive_search = this.options.case_sensitive_search || false;
|
147 |
+
return this.hide_results_on_select = this.options.hide_results_on_select != null ? this.options.hide_results_on_select : true;
|
148 |
+
};
|
149 |
+
|
150 |
+
AbstractChosen.prototype.set_default_text = function() {
|
151 |
+
if (this.form_field.getAttribute("data-placeholder")) {
|
152 |
+
this.default_text = this.form_field.getAttribute("data-placeholder");
|
153 |
+
} else if (this.is_multiple) {
|
154 |
+
this.default_text = this.options.placeholder_text_multiple || this.options.placeholder_text || AbstractChosen.default_multiple_text;
|
155 |
+
} else {
|
156 |
+
this.default_text = this.options.placeholder_text_single || this.options.placeholder_text || AbstractChosen.default_single_text;
|
157 |
+
}
|
158 |
+
this.default_text = this.escape_html(this.default_text);
|
159 |
+
return this.results_none_found = this.form_field.getAttribute("data-no_results_text") || this.options.no_results_text || AbstractChosen.default_no_result_text;
|
160 |
+
};
|
161 |
+
|
162 |
+
AbstractChosen.prototype.choice_label = function(item) {
|
163 |
+
if (this.include_group_label_in_selected && (item.group_label != null)) {
|
164 |
+
return "<b class='group-name'>" + (this.escape_html(item.group_label)) + "</b>" + item.html;
|
165 |
+
} else {
|
166 |
+
return item.html;
|
167 |
+
}
|
168 |
+
};
|
169 |
+
|
170 |
+
AbstractChosen.prototype.mouse_enter = function() {
|
171 |
+
return this.mouse_on_container = true;
|
172 |
+
};
|
173 |
+
|
174 |
+
AbstractChosen.prototype.mouse_leave = function() {
|
175 |
+
return this.mouse_on_container = false;
|
176 |
+
};
|
177 |
+
|
178 |
+
AbstractChosen.prototype.input_focus = function(evt) {
|
179 |
+
if (this.is_multiple) {
|
180 |
+
if (!this.active_field) {
|
181 |
+
return setTimeout(((function(_this) {
|
182 |
+
return function() {
|
183 |
+
return _this.container_mousedown();
|
184 |
+
};
|
185 |
+
})(this)), 50);
|
186 |
+
}
|
187 |
+
} else {
|
188 |
+
if (!this.active_field) {
|
189 |
+
return this.activate_field();
|
190 |
+
}
|
191 |
+
}
|
192 |
+
};
|
193 |
+
|
194 |
+
AbstractChosen.prototype.input_blur = function(evt) {
|
195 |
+
if (!this.mouse_on_container) {
|
196 |
+
this.active_field = false;
|
197 |
+
return setTimeout(((function(_this) {
|
198 |
+
return function() {
|
199 |
+
return _this.blur_test();
|
200 |
+
};
|
201 |
+
})(this)), 100);
|
202 |
+
}
|
203 |
+
};
|
204 |
+
|
205 |
+
AbstractChosen.prototype.label_click_handler = function(evt) {
|
206 |
+
if (this.is_multiple) {
|
207 |
+
return this.container_mousedown(evt);
|
208 |
+
} else {
|
209 |
+
return this.activate_field();
|
210 |
+
}
|
211 |
+
};
|
212 |
+
|
213 |
+
AbstractChosen.prototype.results_option_build = function(options) {
|
214 |
+
var content, data, data_content, i, len, ref, shown_results;
|
215 |
+
content = '';
|
216 |
+
shown_results = 0;
|
217 |
+
ref = this.results_data;
|
218 |
+
for (i = 0, len = ref.length; i < len; i++) {
|
219 |
+
data = ref[i];
|
220 |
+
data_content = '';
|
221 |
+
if (data.group) {
|
222 |
+
data_content = this.result_add_group(data);
|
223 |
+
} else {
|
224 |
+
data_content = this.result_add_option(data);
|
225 |
+
}
|
226 |
+
if (data_content !== '') {
|
227 |
+
shown_results++;
|
228 |
+
content += data_content;
|
229 |
+
}
|
230 |
+
if (options != null ? options.first : void 0) {
|
231 |
+
if (data.selected && this.is_multiple) {
|
232 |
+
this.choice_build(data);
|
233 |
+
} else if (data.selected && !this.is_multiple) {
|
234 |
+
this.single_set_selected_text(this.choice_label(data));
|
235 |
+
}
|
236 |
+
}
|
237 |
+
if (shown_results >= this.max_shown_results) {
|
238 |
+
break;
|
239 |
+
}
|
240 |
+
}
|
241 |
+
return content;
|
242 |
+
};
|
243 |
+
|
244 |
+
AbstractChosen.prototype.result_add_option = function(option) {
|
245 |
+
var classes, option_el;
|
246 |
+
if (!option.search_match) {
|
247 |
+
return '';
|
248 |
+
}
|
249 |
+
if (!this.include_option_in_results(option)) {
|
250 |
+
return '';
|
251 |
+
}
|
252 |
+
classes = [];
|
253 |
+
if (!option.disabled && !(option.selected && this.is_multiple)) {
|
254 |
+
classes.push("active-result");
|
255 |
+
}
|
256 |
+
if (option.disabled && !(option.selected && this.is_multiple)) {
|
257 |
+
classes.push("disabled-result");
|
258 |
+
}
|
259 |
+
if (option.selected) {
|
260 |
+
classes.push("result-selected");
|
261 |
+
}
|
262 |
+
if (option.group_array_index != null) {
|
263 |
+
classes.push("group-option");
|
264 |
+
}
|
265 |
+
if (option.classes !== "") {
|
266 |
+
classes.push(option.classes);
|
267 |
+
}
|
268 |
+
option_el = document.createElement("li");
|
269 |
+
option_el.className = classes.join(" ");
|
270 |
+
if (option.style) {
|
271 |
+
option_el.style.cssText = option.style;
|
272 |
+
}
|
273 |
+
option_el.setAttribute("data-option-array-index", option.array_index);
|
274 |
+
option_el.innerHTML = option.highlighted_html || option.html;
|
275 |
+
if (option.title) {
|
276 |
+
option_el.title = option.title;
|
277 |
+
}
|
278 |
+
return this.outerHTML(option_el);
|
279 |
+
};
|
280 |
+
|
281 |
+
AbstractChosen.prototype.result_add_group = function(group) {
|
282 |
+
var classes, group_el;
|
283 |
+
if (!(group.search_match || group.group_match)) {
|
284 |
+
return '';
|
285 |
+
}
|
286 |
+
if (!(group.active_options > 0)) {
|
287 |
+
return '';
|
288 |
+
}
|
289 |
+
classes = [];
|
290 |
+
classes.push("group-result");
|
291 |
+
if (group.classes) {
|
292 |
+
classes.push(group.classes);
|
293 |
+
}
|
294 |
+
group_el = document.createElement("li");
|
295 |
+
group_el.className = classes.join(" ");
|
296 |
+
group_el.innerHTML = group.highlighted_html || this.escape_html(group.label);
|
297 |
+
if (group.title) {
|
298 |
+
group_el.title = group.title;
|
299 |
+
}
|
300 |
+
return this.outerHTML(group_el);
|
301 |
+
};
|
302 |
+
|
303 |
+
AbstractChosen.prototype.results_update_field = function() {
|
304 |
+
this.set_default_text();
|
305 |
+
if (!this.is_multiple) {
|
306 |
+
this.results_reset_cleanup();
|
307 |
+
}
|
308 |
+
this.result_clear_highlight();
|
309 |
+
this.results_build();
|
310 |
+
if (this.results_showing) {
|
311 |
+
return this.winnow_results();
|
312 |
+
}
|
313 |
+
};
|
314 |
+
|
315 |
+
AbstractChosen.prototype.reset_single_select_options = function() {
|
316 |
+
var i, len, ref, result, results1;
|
317 |
+
ref = this.results_data;
|
318 |
+
results1 = [];
|
319 |
+
for (i = 0, len = ref.length; i < len; i++) {
|
320 |
+
result = ref[i];
|
321 |
+
if (result.selected) {
|
322 |
+
results1.push(result.selected = false);
|
323 |
+
} else {
|
324 |
+
results1.push(void 0);
|
325 |
+
}
|
326 |
+
}
|
327 |
+
return results1;
|
328 |
+
};
|
329 |
+
|
330 |
+
AbstractChosen.prototype.results_toggle = function() {
|
331 |
+
if (this.results_showing) {
|
332 |
+
return this.results_hide();
|
333 |
+
} else {
|
334 |
+
return this.results_show();
|
335 |
+
}
|
336 |
+
};
|
337 |
+
|
338 |
+
AbstractChosen.prototype.results_search = function(evt) {
|
339 |
+
if (this.results_showing) {
|
340 |
+
return this.winnow_results();
|
341 |
+
} else {
|
342 |
+
return this.results_show();
|
343 |
+
}
|
344 |
+
};
|
345 |
+
|
346 |
+
AbstractChosen.prototype.winnow_results = function(options) {
|
347 |
+
var escapedQuery, fix, i, len, option, prefix, query, ref, regex, results, results_group, search_match, startpos, suffix, text;
|
348 |
+
this.no_results_clear();
|
349 |
+
results = 0;
|
350 |
+
query = this.get_search_text();
|
351 |
+
escapedQuery = query.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
352 |
+
regex = this.get_search_regex(escapedQuery);
|
353 |
+
ref = this.results_data;
|
354 |
+
for (i = 0, len = ref.length; i < len; i++) {
|
355 |
+
option = ref[i];
|
356 |
+
option.search_match = false;
|
357 |
+
results_group = null;
|
358 |
+
search_match = null;
|
359 |
+
option.highlighted_html = '';
|
360 |
+
if (this.include_option_in_results(option)) {
|
361 |
+
if (option.group) {
|
362 |
+
option.group_match = false;
|
363 |
+
option.active_options = 0;
|
364 |
+
}
|
365 |
+
if ((option.group_array_index != null) && this.results_data[option.group_array_index]) {
|
366 |
+
results_group = this.results_data[option.group_array_index];
|
367 |
+
if (results_group.active_options === 0 && results_group.search_match) {
|
368 |
+
results += 1;
|
369 |
+
}
|
370 |
+
results_group.active_options += 1;
|
371 |
+
}
|
372 |
+
text = option.group ? option.label : option.text;
|
373 |
+
if (!(option.group && !this.group_search)) {
|
374 |
+
search_match = this.search_string_match(text, regex);
|
375 |
+
option.search_match = search_match != null;
|
376 |
+
if (option.search_match && !option.group) {
|
377 |
+
results += 1;
|
378 |
+
}
|
379 |
+
if (option.search_match) {
|
380 |
+
if (query.length) {
|
381 |
+
startpos = search_match.index;
|
382 |
+
prefix = text.slice(0, startpos);
|
383 |
+
fix = text.slice(startpos, startpos + query.length);
|
384 |
+
suffix = text.slice(startpos + query.length);
|
385 |
+
option.highlighted_html = (this.escape_html(prefix)) + "<em>" + (this.escape_html(fix)) + "</em>" + (this.escape_html(suffix));
|
386 |
+
}
|
387 |
+
if (results_group != null) {
|
388 |
+
results_group.group_match = true;
|
389 |
+
}
|
390 |
+
} else if ((option.group_array_index != null) && this.results_data[option.group_array_index].search_match) {
|
391 |
+
option.search_match = true;
|
392 |
+
}
|
393 |
+
}
|
394 |
+
}
|
395 |
+
}
|
396 |
+
this.result_clear_highlight();
|
397 |
+
if (results < 1 && query.length) {
|
398 |
+
this.update_results_content("");
|
399 |
+
return this.no_results(query);
|
400 |
+
} else {
|
401 |
+
this.update_results_content(this.results_option_build());
|
402 |
+
if (!(options != null ? options.skip_highlight : void 0)) {
|
403 |
+
return this.winnow_results_set_highlight();
|
404 |
+
}
|
405 |
+
}
|
406 |
+
};
|
407 |
+
|
408 |
+
AbstractChosen.prototype.get_search_regex = function(escaped_search_string) {
|
409 |
+
var regex_flag, regex_string;
|
410 |
+
regex_string = this.search_contains ? escaped_search_string : "(^|\\s|\\b)" + escaped_search_string + "[^\\s]*";
|
411 |
+
if (!(this.enable_split_word_search || this.search_contains)) {
|
412 |
+
regex_string = "^" + regex_string;
|
413 |
+
}
|
414 |
+
regex_flag = this.case_sensitive_search ? "" : "i";
|
415 |
+
return new RegExp(regex_string, regex_flag);
|
416 |
+
};
|
417 |
+
|
418 |
+
AbstractChosen.prototype.search_string_match = function(search_string, regex) {
|
419 |
+
var match;
|
420 |
+
match = regex.exec(search_string);
|
421 |
+
if (!this.search_contains && (match != null ? match[1] : void 0)) {
|
422 |
+
match.index += 1;
|
423 |
+
}
|
424 |
+
return match;
|
425 |
+
};
|
426 |
+
|
427 |
+
AbstractChosen.prototype.choices_count = function() {
|
428 |
+
var i, len, option, ref;
|
429 |
+
if (this.selected_option_count != null) {
|
430 |
+
return this.selected_option_count;
|
431 |
+
}
|
432 |
+
this.selected_option_count = 0;
|
433 |
+
ref = this.form_field.options;
|
434 |
+
for (i = 0, len = ref.length; i < len; i++) {
|
435 |
+
option = ref[i];
|
436 |
+
if (option.selected) {
|
437 |
+
this.selected_option_count += 1;
|
438 |
+
}
|
439 |
+
}
|
440 |
+
return this.selected_option_count;
|
441 |
+
};
|
442 |
+
|
443 |
+
AbstractChosen.prototype.choices_click = function(evt) {
|
444 |
+
evt.preventDefault();
|
445 |
+
this.activate_field();
|
446 |
+
if (!(this.results_showing || this.is_disabled)) {
|
447 |
+
return this.results_show();
|
448 |
+
}
|
449 |
+
};
|
450 |
+
|
451 |
+
AbstractChosen.prototype.keydown_checker = function(evt) {
|
452 |
+
var ref, stroke;
|
453 |
+
stroke = (ref = evt.which) != null ? ref : evt.keyCode;
|
454 |
+
this.search_field_scale();
|
455 |
+
if (stroke !== 8 && this.pending_backstroke) {
|
456 |
+
this.clear_backstroke();
|
457 |
+
}
|
458 |
+
switch (stroke) {
|
459 |
+
case 8:
|
460 |
+
this.backstroke_length = this.get_search_field_value().length;
|
461 |
+
break;
|
462 |
+
case 9:
|
463 |
+
if (this.results_showing && !this.is_multiple) {
|
464 |
+
this.result_select(evt);
|
465 |
+
}
|
466 |
+
this.mouse_on_container = false;
|
467 |
+
break;
|
468 |
+
case 13:
|
469 |
+
if (this.results_showing) {
|
470 |
+
evt.preventDefault();
|
471 |
+
}
|
472 |
+
break;
|
473 |
+
case 27:
|
474 |
+
if (this.results_showing) {
|
475 |
+
evt.preventDefault();
|
476 |
+
}
|
477 |
+
break;
|
478 |
+
case 32:
|
479 |
+
if (this.disable_search) {
|
480 |
+
evt.preventDefault();
|
481 |
+
}
|
482 |
+
break;
|
483 |
+
case 38:
|
484 |
+
evt.preventDefault();
|
485 |
+
this.keyup_arrow();
|
486 |
+
break;
|
487 |
+
case 40:
|
488 |
+
evt.preventDefault();
|
489 |
+
this.keydown_arrow();
|
490 |
+
break;
|
491 |
+
}
|
492 |
+
};
|
493 |
+
|
494 |
+
AbstractChosen.prototype.keyup_checker = function(evt) {
|
495 |
+
var ref, stroke;
|
496 |
+
stroke = (ref = evt.which) != null ? ref : evt.keyCode;
|
497 |
+
this.search_field_scale();
|
498 |
+
switch (stroke) {
|
499 |
+
case 8:
|
500 |
+
if (this.is_multiple && this.backstroke_length < 1 && this.choices_count() > 0) {
|
501 |
+
this.keydown_backstroke();
|
502 |
+
} else if (!this.pending_backstroke) {
|
503 |
+
this.result_clear_highlight();
|
504 |
+
this.results_search();
|
505 |
+
}
|
506 |
+
break;
|
507 |
+
case 13:
|
508 |
+
evt.preventDefault();
|
509 |
+
if (this.results_showing) {
|
510 |
+
this.result_select(evt);
|
511 |
+
}
|
512 |
+
break;
|
513 |
+
case 27:
|
514 |
+
if (this.results_showing) {
|
515 |
+
this.results_hide();
|
516 |
+
}
|
517 |
+
break;
|
518 |
+
case 9:
|
519 |
+
case 16:
|
520 |
+
case 17:
|
521 |
+
case 18:
|
522 |
+
case 38:
|
523 |
+
case 40:
|
524 |
+
case 91:
|
525 |
+
break;
|
526 |
+
default:
|
527 |
+
this.results_search();
|
528 |
+
break;
|
529 |
+
}
|
530 |
+
};
|
531 |
+
|
532 |
+
AbstractChosen.prototype.clipboard_event_checker = function(evt) {
|
533 |
+
if (this.is_disabled) {
|
534 |
+
return;
|
535 |
+
}
|
536 |
+
return setTimeout(((function(_this) {
|
537 |
+
return function() {
|
538 |
+
return _this.results_search();
|
539 |
+
};
|
540 |
+
})(this)), 50);
|
541 |
+
};
|
542 |
+
|
543 |
+
AbstractChosen.prototype.container_width = function() {
|
544 |
+
if (this.options.width != null) {
|
545 |
+
return this.options.width;
|
546 |
+
} else {
|
547 |
+
return this.form_field.offsetWidth + "px";
|
548 |
+
}
|
549 |
+
};
|
550 |
+
|
551 |
+
AbstractChosen.prototype.include_option_in_results = function(option) {
|
552 |
+
if (this.is_multiple && (!this.display_selected_options && option.selected)) {
|
553 |
+
return false;
|
554 |
+
}
|
555 |
+
if (!this.display_disabled_options && option.disabled) {
|
556 |
+
return false;
|
557 |
+
}
|
558 |
+
if (option.empty) {
|
559 |
+
return false;
|
560 |
+
}
|
561 |
+
return true;
|
562 |
+
};
|
563 |
+
|
564 |
+
AbstractChosen.prototype.search_results_touchstart = function(evt) {
|
565 |
+
this.touch_started = true;
|
566 |
+
return this.search_results_mouseover(evt);
|
567 |
+
};
|
568 |
+
|
569 |
+
AbstractChosen.prototype.search_results_touchmove = function(evt) {
|
570 |
+
this.touch_started = false;
|
571 |
+
return this.search_results_mouseout(evt);
|
572 |
+
};
|
573 |
+
|
574 |
+
AbstractChosen.prototype.search_results_touchend = function(evt) {
|
575 |
+
if (this.touch_started) {
|
576 |
+
return this.search_results_mouseup(evt);
|
577 |
+
}
|
578 |
+
};
|
579 |
+
|
580 |
+
AbstractChosen.prototype.outerHTML = function(element) {
|
581 |
+
var tmp;
|
582 |
+
if (element.outerHTML) {
|
583 |
+
return element.outerHTML;
|
584 |
+
}
|
585 |
+
tmp = document.createElement("div");
|
586 |
+
tmp.appendChild(element);
|
587 |
+
return tmp.innerHTML;
|
588 |
+
};
|
589 |
+
|
590 |
+
AbstractChosen.prototype.get_single_html = function() {
|
591 |
+
return "<a class=\"chosen-single chosen-default\">\n <span>" + this.default_text + "</span>\n <div><b></b></div>\n</a>\n<div class=\"chosen-drop\">\n <div class=\"chosen-search\">\n <input class=\"chosen-search-input\" type=\"text\" autocomplete=\"off\" />\n </div>\n <ul class=\"chosen-results\"></ul>\n</div>";
|
592 |
+
};
|
593 |
+
|
594 |
+
AbstractChosen.prototype.get_multi_html = function() {
|
595 |
+
return "<ul class=\"chosen-choices\">\n <li class=\"search-field\">\n <input class=\"chosen-search-input\" type=\"text\" autocomplete=\"off\" value=\"" + this.default_text + "\" />\n </li>\n</ul>\n<div class=\"chosen-drop\">\n <ul class=\"chosen-results\"></ul>\n</div>";
|
596 |
+
};
|
597 |
+
|
598 |
+
AbstractChosen.prototype.get_no_results_html = function(terms) {
|
599 |
+
return "<li class=\"no-results\">\n " + this.results_none_found + " <span>" + (this.escape_html(terms)) + "</span>\n</li>";
|
600 |
+
};
|
601 |
+
|
602 |
+
AbstractChosen.browser_is_supported = function() {
|
603 |
+
if ("Microsoft Internet Explorer" === window.navigator.appName) {
|
604 |
+
return document.documentMode >= 8;
|
605 |
+
}
|
606 |
+
if (/iP(od|hone)/i.test(window.navigator.userAgent) || /IEMobile/i.test(window.navigator.userAgent) || /Windows Phone/i.test(window.navigator.userAgent) || /BlackBerry/i.test(window.navigator.userAgent) || /BB10/i.test(window.navigator.userAgent) || /Android.*Mobile/i.test(window.navigator.userAgent)) {
|
607 |
+
return false;
|
608 |
+
}
|
609 |
+
return true;
|
610 |
+
};
|
611 |
+
|
612 |
+
AbstractChosen.default_multiple_text = "Select Some Options";
|
613 |
+
|
614 |
+
AbstractChosen.default_single_text = "Select an Option";
|
615 |
+
|
616 |
+
AbstractChosen.default_no_result_text = "No results match";
|
617 |
+
|
618 |
+
return AbstractChosen;
|
619 |
+
|
620 |
+
})();
|
621 |
+
|
622 |
+
$ = jQuery;
|
623 |
+
|
624 |
+
$.fn.extend({
|
625 |
+
chosen: function(options) {
|
626 |
+
if (!AbstractChosen.browser_is_supported()) {
|
627 |
+
return this;
|
628 |
+
}
|
629 |
+
return this.each(function(input_field) {
|
630 |
+
var $this, chosen;
|
631 |
+
$this = $(this);
|
632 |
+
chosen = $this.data('chosen');
|
633 |
+
if (options === 'destroy') {
|
634 |
+
if (chosen instanceof Chosen) {
|
635 |
+
chosen.destroy();
|
636 |
+
}
|
637 |
+
return;
|
638 |
+
}
|
639 |
+
if (!(chosen instanceof Chosen)) {
|
640 |
+
$this.data('chosen', new Chosen(this, options));
|
641 |
+
}
|
642 |
+
});
|
643 |
+
}
|
644 |
+
});
|
645 |
+
|
646 |
+
Chosen = (function(superClass) {
|
647 |
+
extend(Chosen, superClass);
|
648 |
+
|
649 |
+
function Chosen() {
|
650 |
+
return Chosen.__super__.constructor.apply(this, arguments);
|
651 |
+
}
|
652 |
+
|
653 |
+
Chosen.prototype.setup = function() {
|
654 |
+
this.form_field_jq = $(this.form_field);
|
655 |
+
return this.current_selectedIndex = this.form_field.selectedIndex;
|
656 |
+
};
|
657 |
+
|
658 |
+
Chosen.prototype.set_up_html = function() {
|
659 |
+
var container_classes, container_props;
|
660 |
+
container_classes = ["chosen-container"];
|
661 |
+
container_classes.push("chosen-container-" + (this.is_multiple ? "multi" : "single"));
|
662 |
+
if (this.inherit_select_classes && this.form_field.className) {
|
663 |
+
container_classes.push(this.form_field.className);
|
664 |
+
}
|
665 |
+
if (this.is_rtl) {
|
666 |
+
container_classes.push("chosen-rtl");
|
667 |
+
}
|
668 |
+
container_props = {
|
669 |
+
'class': container_classes.join(' '),
|
670 |
+
'title': this.form_field.title
|
671 |
+
};
|
672 |
+
if (this.form_field.id.length) {
|
673 |
+
container_props.id = this.form_field.id.replace(/[^\w]/g, '_') + "_chosen";
|
674 |
+
}
|
675 |
+
this.container = $("<div />", container_props);
|
676 |
+
this.container.width(this.container_width());
|
677 |
+
if (this.is_multiple) {
|
678 |
+
this.container.html(this.get_multi_html());
|
679 |
+
} else {
|
680 |
+
this.container.html(this.get_single_html());
|
681 |
+
}
|
682 |
+
this.form_field_jq.hide().after(this.container);
|
683 |
+
this.dropdown = this.container.find('div.chosen-drop').first();
|
684 |
+
this.search_field = this.container.find('input').first();
|
685 |
+
this.search_results = this.container.find('ul.chosen-results').first();
|
686 |
+
this.search_field_scale();
|
687 |
+
this.search_no_results = this.container.find('li.no-results').first();
|
688 |
+
if (this.is_multiple) {
|
689 |
+
this.search_choices = this.container.find('ul.chosen-choices').first();
|
690 |
+
this.search_container = this.container.find('li.search-field').first();
|
691 |
+
} else {
|
692 |
+
this.search_container = this.container.find('div.chosen-search').first();
|
693 |
+
this.selected_item = this.container.find('.chosen-single').first();
|
694 |
+
}
|
695 |
+
this.results_build();
|
696 |
+
this.set_tab_index();
|
697 |
+
return this.set_label_behavior();
|
698 |
+
};
|
699 |
+
|
700 |
+
Chosen.prototype.on_ready = function() {
|
701 |
+
return this.form_field_jq.trigger("chosen:ready", {
|
702 |
+
chosen: this
|
703 |
+
});
|
704 |
+
};
|
705 |
+
|
706 |
+
Chosen.prototype.register_observers = function() {
|
707 |
+
this.container.on('touchstart.chosen', (function(_this) {
|
708 |
+
return function(evt) {
|
709 |
+
_this.container_mousedown(evt);
|
710 |
+
};
|
711 |
+
})(this));
|
712 |
+
this.container.on('touchend.chosen', (function(_this) {
|
713 |
+
return function(evt) {
|
714 |
+
_this.container_mouseup(evt);
|
715 |
+
};
|
716 |
+
})(this));
|
717 |
+
this.container.on('mousedown.chosen', (function(_this) {
|
718 |
+
return function(evt) {
|
719 |
+
_this.container_mousedown(evt);
|
720 |
+
};
|
721 |
+
})(this));
|
722 |
+
this.container.on('mouseup.chosen', (function(_this) {
|
723 |
+
return function(evt) {
|
724 |
+
_this.container_mouseup(evt);
|
725 |
+
};
|
726 |
+
})(this));
|
727 |
+
this.container.on('mouseenter.chosen', (function(_this) {
|
728 |
+
return function(evt) {
|
729 |
+
_this.mouse_enter(evt);
|
730 |
+
};
|
731 |
+
})(this));
|
732 |
+
this.container.on('mouseleave.chosen', (function(_this) {
|
733 |
+
return function(evt) {
|
734 |
+
_this.mouse_leave(evt);
|
735 |
+
};
|
736 |
+
})(this));
|
737 |
+
this.search_results.on('mouseup.chosen', (function(_this) {
|
738 |
+
return function(evt) {
|
739 |
+
_this.search_results_mouseup(evt);
|
740 |
+
};
|
741 |
+
})(this));
|
742 |
+
this.search_results.on('mouseover.chosen', (function(_this) {
|
743 |
+
return function(evt) {
|
744 |
+
_this.search_results_mouseover(evt);
|
745 |
+
};
|
746 |
+
})(this));
|
747 |
+
this.search_results.on('mouseout.chosen', (function(_this) {
|
748 |
+
return function(evt) {
|
749 |
+
_this.search_results_mouseout(evt);
|
750 |
+
};
|
751 |
+
})(this));
|
752 |
+
this.search_results.on('mousewheel.chosen DOMMouseScroll.chosen', (function(_this) {
|
753 |
+
return function(evt) {
|
754 |
+
_this.search_results_mousewheel(evt);
|
755 |
+
};
|
756 |
+
})(this));
|
757 |
+
this.search_results.on('touchstart.chosen', (function(_this) {
|
758 |
+
return function(evt) {
|
759 |
+
_this.search_results_touchstart(evt);
|
760 |
+
};
|
761 |
+
})(this));
|
762 |
+
this.search_results.on('touchmove.chosen', (function(_this) {
|
763 |
+
return function(evt) {
|
764 |
+
_this.search_results_touchmove(evt);
|
765 |
+
};
|
766 |
+
})(this));
|
767 |
+
this.search_results.on('touchend.chosen', (function(_this) {
|
768 |
+
return function(evt) {
|
769 |
+
_this.search_results_touchend(evt);
|
770 |
+
};
|
771 |
+
})(this));
|
772 |
+
this.form_field_jq.on("chosen:updated.chosen", (function(_this) {
|
773 |
+
return function(evt) {
|
774 |
+
_this.results_update_field(evt);
|
775 |
+
};
|
776 |
+
})(this));
|
777 |
+
this.form_field_jq.on("chosen:activate.chosen", (function(_this) {
|
778 |
+
return function(evt) {
|
779 |
+
_this.activate_field(evt);
|
780 |
+
};
|
781 |
+
})(this));
|
782 |
+
this.form_field_jq.on("chosen:open.chosen", (function(_this) {
|
783 |
+
return function(evt) {
|
784 |
+
_this.container_mousedown(evt);
|
785 |
+
};
|
786 |
+
})(this));
|
787 |
+
this.form_field_jq.on("chosen:close.chosen", (function(_this) {
|
788 |
+
return function(evt) {
|
789 |
+
_this.close_field(evt);
|
790 |
+
};
|
791 |
+
})(this));
|
792 |
+
this.search_field.on('blur.chosen', (function(_this) {
|
793 |
+
return function(evt) {
|
794 |
+
_this.input_blur(evt);
|
795 |
+
};
|
796 |
+
})(this));
|
797 |
+
this.search_field.on('keyup.chosen', (function(_this) {
|
798 |
+
return function(evt) {
|
799 |
+
_this.keyup_checker(evt);
|
800 |
+
};
|
801 |
+
})(this));
|
802 |
+
this.search_field.on('keydown.chosen', (function(_this) {
|
803 |
+
return function(evt) {
|
804 |
+
_this.keydown_checker(evt);
|
805 |
+
};
|
806 |
+
})(this));
|
807 |
+
this.search_field.on('focus.chosen', (function(_this) {
|
808 |
+
return function(evt) {
|
809 |
+
_this.input_focus(evt);
|
810 |
+
};
|
811 |
+
})(this));
|
812 |
+
this.search_field.on('cut.chosen', (function(_this) {
|
813 |
+
return function(evt) {
|
814 |
+
_this.clipboard_event_checker(evt);
|
815 |
+
};
|
816 |
+
})(this));
|
817 |
+
this.search_field.on('paste.chosen', (function(_this) {
|
818 |
+
return function(evt) {
|
819 |
+
_this.clipboard_event_checker(evt);
|
820 |
+
};
|
821 |
+
})(this));
|
822 |
+
if (this.is_multiple) {
|
823 |
+
return this.search_choices.on('click.chosen', (function(_this) {
|
824 |
+
return function(evt) {
|
825 |
+
_this.choices_click(evt);
|
826 |
+
};
|
827 |
+
})(this));
|
828 |
+
} else {
|
829 |
+
return this.container.on('click.chosen', function(evt) {
|
830 |
+
evt.preventDefault();
|
831 |
+
});
|
832 |
+
}
|
833 |
+
};
|
834 |
+
|
835 |
+
Chosen.prototype.destroy = function() {
|
836 |
+
$(this.container[0].ownerDocument).off('click.chosen', this.click_test_action);
|
837 |
+
if (this.form_field_label.length > 0) {
|
838 |
+
this.form_field_label.off('click.chosen');
|
839 |
+
}
|
840 |
+
if (this.search_field[0].tabIndex) {
|
841 |
+
this.form_field_jq[0].tabIndex = this.search_field[0].tabIndex;
|
842 |
+
}
|
843 |
+
this.container.remove();
|
844 |
+
this.form_field_jq.removeData('chosen');
|
845 |
+
return this.form_field_jq.show();
|
846 |
+
};
|
847 |
+
|
848 |
+
Chosen.prototype.search_field_disabled = function() {
|
849 |
+
this.is_disabled = this.form_field.disabled || this.form_field_jq.parents('fieldset').is(':disabled');
|
850 |
+
this.container.toggleClass('chosen-disabled', this.is_disabled);
|
851 |
+
this.search_field[0].disabled = this.is_disabled;
|
852 |
+
if (!this.is_multiple) {
|
853 |
+
this.selected_item.off('focus.chosen', this.activate_field);
|
854 |
+
}
|
855 |
+
if (this.is_disabled) {
|
856 |
+
return this.close_field();
|
857 |
+
} else if (!this.is_multiple) {
|
858 |
+
return this.selected_item.on('focus.chosen', this.activate_field);
|
859 |
+
}
|
860 |
+
};
|
861 |
+
|
862 |
+
Chosen.prototype.container_mousedown = function(evt) {
|
863 |
+
var ref;
|
864 |
+
if (this.is_disabled) {
|
865 |
+
return;
|
866 |
+
}
|
867 |
+
if (evt && ((ref = evt.type) === 'mousedown' || ref === 'touchstart') && !this.results_showing) {
|
868 |
+
evt.preventDefault();
|
869 |
+
}
|
870 |
+
if (!((evt != null) && ($(evt.target)).hasClass("search-choice-close"))) {
|
871 |
+
if (!this.active_field) {
|
872 |
+
if (this.is_multiple) {
|
873 |
+
this.search_field.val("");
|
874 |
+
}
|
875 |
+
$(this.container[0].ownerDocument).on('click.chosen', this.click_test_action);
|
876 |
+
this.results_show();
|
877 |
+
} else if (!this.is_multiple && evt && (($(evt.target)[0] === this.selected_item[0]) || $(evt.target).parents("a.chosen-single").length)) {
|
878 |
+
evt.preventDefault();
|
879 |
+
this.results_toggle();
|
880 |
+
}
|
881 |
+
return this.activate_field();
|
882 |
+
}
|
883 |
+
};
|
884 |
+
|
885 |
+
Chosen.prototype.container_mouseup = function(evt) {
|
886 |
+
if (evt.target.nodeName === "ABBR" && !this.is_disabled) {
|
887 |
+
return this.results_reset(evt);
|
888 |
+
}
|
889 |
+
};
|
890 |
+
|
891 |
+
Chosen.prototype.search_results_mousewheel = function(evt) {
|
892 |
+
var delta;
|
893 |
+
if (evt.originalEvent) {
|
894 |
+
delta = evt.originalEvent.deltaY || -evt.originalEvent.wheelDelta || evt.originalEvent.detail;
|
895 |
+
}
|
896 |
+
if (delta != null) {
|
897 |
+
evt.preventDefault();
|
898 |
+
if (evt.type === 'DOMMouseScroll') {
|
899 |
+
delta = delta * 40;
|
900 |
+
}
|
901 |
+
return this.search_results.scrollTop(delta + this.search_results.scrollTop());
|
902 |
+
}
|
903 |
+
};
|
904 |
+
|
905 |
+
Chosen.prototype.blur_test = function(evt) {
|
906 |
+
if (!this.active_field && this.container.hasClass("chosen-container-active")) {
|
907 |
+
return this.close_field();
|
908 |
+
}
|
909 |
+
};
|
910 |
+
|
911 |
+
Chosen.prototype.close_field = function() {
|
912 |
+
$(this.container[0].ownerDocument).off("click.chosen", this.click_test_action);
|
913 |
+
this.active_field = false;
|
914 |
+
this.results_hide();
|
915 |
+
this.container.removeClass("chosen-container-active");
|
916 |
+
this.clear_backstroke();
|
917 |
+
this.show_search_field_default();
|
918 |
+
this.search_field_scale();
|
919 |
+
return this.search_field.blur();
|
920 |
+
};
|
921 |
+
|
922 |
+
Chosen.prototype.activate_field = function() {
|
923 |
+
if (this.is_disabled) {
|
924 |
+
return;
|
925 |
+
}
|
926 |
+
this.container.addClass("chosen-container-active");
|
927 |
+
this.active_field = true;
|
928 |
+
this.search_field.val(this.search_field.val());
|
929 |
+
return this.search_field.focus();
|
930 |
+
};
|
931 |
+
|
932 |
+
Chosen.prototype.test_active_click = function(evt) {
|
933 |
+
var active_container;
|
934 |
+
active_container = $(evt.target).closest('.chosen-container');
|
935 |
+
if (active_container.length && this.container[0] === active_container[0]) {
|
936 |
+
return this.active_field = true;
|
937 |
+
} else {
|
938 |
+
return this.close_field();
|
939 |
+
}
|
940 |
+
};
|
941 |
+
|
942 |
+
Chosen.prototype.results_build = function() {
|
943 |
+
this.parsing = true;
|
944 |
+
this.selected_option_count = null;
|
945 |
+
this.results_data = SelectParser.select_to_array(this.form_field);
|
946 |
+
if (this.is_multiple) {
|
947 |
+
this.search_choices.find("li.search-choice").remove();
|
948 |
+
} else {
|
949 |
+
this.single_set_selected_text();
|
950 |
+
if (this.disable_search || this.form_field.options.length <= this.disable_search_threshold) {
|
951 |
+
this.search_field[0].readOnly = true;
|
952 |
+
this.container.addClass("chosen-container-single-nosearch");
|
953 |
+
} else {
|
954 |
+
this.search_field[0].readOnly = false;
|
955 |
+
this.container.removeClass("chosen-container-single-nosearch");
|
956 |
+
}
|
957 |
+
}
|
958 |
+
this.update_results_content(this.results_option_build({
|
959 |
+
first: true
|
960 |
+
}));
|
961 |
+
this.search_field_disabled();
|
962 |
+
this.show_search_field_default();
|
963 |
+
this.search_field_scale();
|
964 |
+
return this.parsing = false;
|
965 |
+
};
|
966 |
+
|
967 |
+
Chosen.prototype.result_do_highlight = function(el) {
|
968 |
+
var high_bottom, high_top, maxHeight, visible_bottom, visible_top;
|
969 |
+
if (el.length) {
|
970 |
+
this.result_clear_highlight();
|
971 |
+
this.result_highlight = el;
|
972 |
+
this.result_highlight.addClass("highlighted");
|
973 |
+
maxHeight = parseInt(this.search_results.css("maxHeight"), 10);
|
974 |
+
visible_top = this.search_results.scrollTop();
|
975 |
+
visible_bottom = maxHeight + visible_top;
|
976 |
+
high_top = this.result_highlight.position().top + this.search_results.scrollTop();
|
977 |
+
high_bottom = high_top + this.result_highlight.outerHeight();
|
978 |
+
if (high_bottom >= visible_bottom) {
|
979 |
+
return this.search_results.scrollTop((high_bottom - maxHeight) > 0 ? high_bottom - maxHeight : 0);
|
980 |
+
} else if (high_top < visible_top) {
|
981 |
+
return this.search_results.scrollTop(high_top);
|
982 |
+
}
|
983 |
+
}
|
984 |
+
};
|
985 |
+
|
986 |
+
Chosen.prototype.result_clear_highlight = function() {
|
987 |
+
if (this.result_highlight) {
|
988 |
+
this.result_highlight.removeClass("highlighted");
|
989 |
+
}
|
990 |
+
return this.result_highlight = null;
|
991 |
+
};
|
992 |
+
|
993 |
+
Chosen.prototype.results_show = function() {
|
994 |
+
if (this.is_multiple && this.max_selected_options <= this.choices_count()) {
|
995 |
+
this.form_field_jq.trigger("chosen:maxselected", {
|
996 |
+
chosen: this
|
997 |
+
});
|
998 |
+
return false;
|
999 |
+
}
|
1000 |
+
this.container.addClass("chosen-with-drop");
|
1001 |
+
this.results_showing = true;
|
1002 |
+
this.search_field.focus();
|
1003 |
+
this.search_field.val(this.get_search_field_value());
|
1004 |
+
this.winnow_results();
|
1005 |
+
return this.form_field_jq.trigger("chosen:showing_dropdown", {
|
1006 |
+
chosen: this
|
1007 |
+
});
|
1008 |
+
};
|
1009 |
+
|
1010 |
+
Chosen.prototype.update_results_content = function(content) {
|
1011 |
+
return this.search_results.html(content);
|
1012 |
+
};
|
1013 |
+
|
1014 |
+
Chosen.prototype.results_hide = function() {
|
1015 |
+
if (this.results_showing) {
|
1016 |
+
this.result_clear_highlight();
|
1017 |
+
this.container.removeClass("chosen-with-drop");
|
1018 |
+
this.form_field_jq.trigger("chosen:hiding_dropdown", {
|
1019 |
+
chosen: this
|
1020 |
+
});
|
1021 |
+
}
|
1022 |
+
return this.results_showing = false;
|
1023 |
+
};
|
1024 |
+
|
1025 |
+
Chosen.prototype.set_tab_index = function(el) {
|
1026 |
+
var ti;
|
1027 |
+
if (this.form_field.tabIndex) {
|
1028 |
+
ti = this.form_field.tabIndex;
|
1029 |
+
this.form_field.tabIndex = -1;
|
1030 |
+
return this.search_field[0].tabIndex = ti;
|
1031 |
+
}
|
1032 |
+
};
|
1033 |
+
|
1034 |
+
Chosen.prototype.set_label_behavior = function() {
|
1035 |
+
this.form_field_label = this.form_field_jq.parents("label");
|
1036 |
+
if (!this.form_field_label.length && this.form_field.id.length) {
|
1037 |
+
this.form_field_label = $("label[for='" + this.form_field.id + "']");
|
1038 |
+
}
|
1039 |
+
if (this.form_field_label.length > 0) {
|
1040 |
+
return this.form_field_label.on('click.chosen', this.label_click_handler);
|
1041 |
+
}
|
1042 |
+
};
|
1043 |
+
|
1044 |
+
Chosen.prototype.show_search_field_default = function() {
|
1045 |
+
if (this.is_multiple && this.choices_count() < 1 && !this.active_field) {
|
1046 |
+
this.search_field.val(this.default_text);
|
1047 |
+
return this.search_field.addClass("default");
|
1048 |
+
} else {
|
1049 |
+
this.search_field.val("");
|
1050 |
+
return this.search_field.removeClass("default");
|
1051 |
+
}
|
1052 |
+
};
|
1053 |
+
|
1054 |
+
Chosen.prototype.search_results_mouseup = function(evt) {
|
1055 |
+
var target;
|
1056 |
+
target = $(evt.target).hasClass("active-result") ? $(evt.target) : $(evt.target).parents(".active-result").first();
|
1057 |
+
if (target.length) {
|
1058 |
+
this.result_highlight = target;
|
1059 |
+
this.result_select(evt);
|
1060 |
+
return this.search_field.focus();
|
1061 |
+
}
|
1062 |
+
};
|
1063 |
+
|
1064 |
+
Chosen.prototype.search_results_mouseover = function(evt) {
|
1065 |
+
var target;
|
1066 |
+
target = $(evt.target).hasClass("active-result") ? $(evt.target) : $(evt.target).parents(".active-result").first();
|
1067 |
+
if (target) {
|
1068 |
+
return this.result_do_highlight(target);
|
1069 |
+
}
|
1070 |
+
};
|
1071 |
+
|
1072 |
+
Chosen.prototype.search_results_mouseout = function(evt) {
|
1073 |
+
if ($(evt.target).hasClass("active-result") || $(evt.target).parents('.active-result').first()) {
|
1074 |
+
return this.result_clear_highlight();
|
1075 |
+
}
|
1076 |
+
};
|
1077 |
+
|
1078 |
+
Chosen.prototype.choice_build = function(item) {
|
1079 |
+
var choice, close_link;
|
1080 |
+
choice = $('<li />', {
|
1081 |
+
"class": "search-choice"
|
1082 |
+
}).html("<span>" + (this.choice_label(item)) + "</span>");
|
1083 |
+
if (item.disabled) {
|
1084 |
+
choice.addClass('search-choice-disabled');
|
1085 |
+
} else {
|
1086 |
+
close_link = $('<a />', {
|
1087 |
+
"class": 'search-choice-close',
|
1088 |
+
'data-option-array-index': item.array_index
|
1089 |
+
});
|
1090 |
+
close_link.on('click.chosen', (function(_this) {
|
1091 |
+
return function(evt) {
|
1092 |
+
return _this.choice_destroy_link_click(evt);
|
1093 |
+
};
|
1094 |
+
})(this));
|
1095 |
+
choice.append(close_link);
|
1096 |
+
}
|
1097 |
+
return this.search_container.before(choice);
|
1098 |
+
};
|
1099 |
+
|
1100 |
+
Chosen.prototype.choice_destroy_link_click = function(evt) {
|
1101 |
+
evt.preventDefault();
|
1102 |
+
evt.stopPropagation();
|
1103 |
+
if (!this.is_disabled) {
|
1104 |
+
return this.choice_destroy($(evt.target));
|
1105 |
+
}
|
1106 |
+
};
|
1107 |
+
|
1108 |
+
Chosen.prototype.choice_destroy = function(link) {
|
1109 |
+
if (this.result_deselect(link[0].getAttribute("data-option-array-index"))) {
|
1110 |
+
if (this.active_field) {
|
1111 |
+
this.search_field.focus();
|
1112 |
+
} else {
|
1113 |
+
this.show_search_field_default();
|
1114 |
+
}
|
1115 |
+
if (this.is_multiple && this.choices_count() > 0 && this.get_search_field_value().length < 1) {
|
1116 |
+
this.results_hide();
|
1117 |
+
}
|
1118 |
+
link.parents('li').first().remove();
|
1119 |
+
return this.search_field_scale();
|
1120 |
+
}
|
1121 |
+
};
|
1122 |
+
|
1123 |
+
Chosen.prototype.results_reset = function() {
|
1124 |
+
this.reset_single_select_options();
|
1125 |
+
this.form_field.options[0].selected = true;
|
1126 |
+
this.single_set_selected_text();
|
1127 |
+
this.show_search_field_default();
|
1128 |
+
this.results_reset_cleanup();
|
1129 |
+
this.trigger_form_field_change();
|
1130 |
+
if (this.active_field) {
|
1131 |
+
return this.results_hide();
|
1132 |
+
}
|
1133 |
+
};
|
1134 |
+
|
1135 |
+
Chosen.prototype.results_reset_cleanup = function() {
|
1136 |
+
this.current_selectedIndex = this.form_field.selectedIndex;
|
1137 |
+
return this.selected_item.find("abbr").remove();
|
1138 |
+
};
|
1139 |
+
|
1140 |
+
Chosen.prototype.result_select = function(evt) {
|
1141 |
+
var high, item;
|
1142 |
+
if (this.result_highlight) {
|
1143 |
+
high = this.result_highlight;
|
1144 |
+
this.result_clear_highlight();
|
1145 |
+
if (this.is_multiple && this.max_selected_options <= this.choices_count()) {
|
1146 |
+
this.form_field_jq.trigger("chosen:maxselected", {
|
1147 |
+
chosen: this
|
1148 |
+
});
|
1149 |
+
return false;
|
1150 |
+
}
|
1151 |
+
if (this.is_multiple) {
|
1152 |
+
high.removeClass("active-result");
|
1153 |
+
} else {
|
1154 |
+
this.reset_single_select_options();
|
1155 |
+
}
|
1156 |
+
high.addClass("result-selected");
|
1157 |
+
item = this.results_data[high[0].getAttribute("data-option-array-index")];
|
1158 |
+
item.selected = true;
|
1159 |
+
this.form_field.options[item.options_index].selected = true;
|
1160 |
+
this.selected_option_count = null;
|
1161 |
+
if (this.is_multiple) {
|
1162 |
+
this.choice_build(item);
|
1163 |
+
} else {
|
1164 |
+
this.single_set_selected_text(this.choice_label(item));
|
1165 |
+
}
|
1166 |
+
if (this.is_multiple && (!this.hide_results_on_select || (evt.metaKey || evt.ctrlKey))) {
|
1167 |
+
if (evt.metaKey || evt.ctrlKey) {
|
1168 |
+
this.winnow_results({
|
1169 |
+
skip_highlight: true
|
1170 |
+
});
|
1171 |
+
} else {
|
1172 |
+
this.search_field.val("");
|
1173 |
+
this.winnow_results();
|
1174 |
+
}
|
1175 |
+
} else {
|
1176 |
+
this.results_hide();
|
1177 |
+
this.show_search_field_default();
|
1178 |
+
}
|
1179 |
+
if (this.is_multiple || this.form_field.selectedIndex !== this.current_selectedIndex) {
|
1180 |
+
this.trigger_form_field_change({
|
1181 |
+
selected: this.form_field.options[item.options_index].value
|
1182 |
+
});
|
1183 |
+
}
|
1184 |
+
this.current_selectedIndex = this.form_field.selectedIndex;
|
1185 |
+
evt.preventDefault();
|
1186 |
+
return this.search_field_scale();
|
1187 |
+
}
|
1188 |
+
};
|
1189 |
+
|
1190 |
+
Chosen.prototype.single_set_selected_text = function(text) {
|
1191 |
+
if (text == null) {
|
1192 |
+
text = this.default_text;
|
1193 |
+
}
|
1194 |
+
if (text === this.default_text) {
|
1195 |
+
this.selected_item.addClass("chosen-default");
|
1196 |
+
} else {
|
1197 |
+
this.single_deselect_control_build();
|
1198 |
+
this.selected_item.removeClass("chosen-default");
|
1199 |
+
}
|
1200 |
+
return this.selected_item.find("span").html(text);
|
1201 |
+
};
|
1202 |
+
|
1203 |
+
Chosen.prototype.result_deselect = function(pos) {
|
1204 |
+
var result_data;
|
1205 |
+
result_data = this.results_data[pos];
|
1206 |
+
if (!this.form_field.options[result_data.options_index].disabled) {
|
1207 |
+
result_data.selected = false;
|
1208 |
+
this.form_field.options[result_data.options_index].selected = false;
|
1209 |
+
this.selected_option_count = null;
|
1210 |
+
this.result_clear_highlight();
|
1211 |
+
if (this.results_showing) {
|
1212 |
+
this.winnow_results();
|
1213 |
+
}
|
1214 |
+
this.trigger_form_field_change({
|
1215 |
+
deselected: this.form_field.options[result_data.options_index].value
|
1216 |
+
});
|
1217 |
+
this.search_field_scale();
|
1218 |
+
return true;
|
1219 |
+
} else {
|
1220 |
+
return false;
|
1221 |
+
}
|
1222 |
+
};
|
1223 |
+
|
1224 |
+
Chosen.prototype.single_deselect_control_build = function() {
|
1225 |
+
if (!this.allow_single_deselect) {
|
1226 |
+
return;
|
1227 |
+
}
|
1228 |
+
if (!this.selected_item.find("abbr").length) {
|
1229 |
+
this.selected_item.find("span").first().after("<abbr class=\"search-choice-close\"></abbr>");
|
1230 |
+
}
|
1231 |
+
return this.selected_item.addClass("chosen-single-with-deselect");
|
1232 |
+
};
|
1233 |
+
|
1234 |
+
Chosen.prototype.get_search_field_value = function() {
|
1235 |
+
return this.search_field.val();
|
1236 |
+
};
|
1237 |
+
|
1238 |
+
Chosen.prototype.get_search_text = function() {
|
1239 |
+
return $.trim(this.get_search_field_value());
|
1240 |
+
};
|
1241 |
+
|
1242 |
+
Chosen.prototype.escape_html = function(text) {
|
1243 |
+
return $('<div/>').text(text).html();
|
1244 |
+
};
|
1245 |
+
|
1246 |
+
Chosen.prototype.winnow_results_set_highlight = function() {
|
1247 |
+
var do_high, selected_results;
|
1248 |
+
selected_results = !this.is_multiple ? this.search_results.find(".result-selected.active-result") : [];
|
1249 |
+
do_high = selected_results.length ? selected_results.first() : this.search_results.find(".active-result").first();
|
1250 |
+
if (do_high != null) {
|
1251 |
+
return this.result_do_highlight(do_high);
|
1252 |
+
}
|
1253 |
+
};
|
1254 |
+
|
1255 |
+
Chosen.prototype.no_results = function(terms) {
|
1256 |
+
var no_results_html;
|
1257 |
+
no_results_html = this.get_no_results_html(terms);
|
1258 |
+
this.search_results.append(no_results_html);
|
1259 |
+
return this.form_field_jq.trigger("chosen:no_results", {
|
1260 |
+
chosen: this
|
1261 |
+
});
|
1262 |
+
};
|
1263 |
+
|
1264 |
+
Chosen.prototype.no_results_clear = function() {
|
1265 |
+
return this.search_results.find(".no-results").remove();
|
1266 |
+
};
|
1267 |
+
|
1268 |
+
Chosen.prototype.keydown_arrow = function() {
|
1269 |
+
var next_sib;
|
1270 |
+
if (this.results_showing && this.result_highlight) {
|
1271 |
+
next_sib = this.result_highlight.nextAll("li.active-result").first();
|
1272 |
+
if (next_sib) {
|
1273 |
+
return this.result_do_highlight(next_sib);
|
1274 |
+
}
|
1275 |
+
} else {
|
1276 |
+
return this.results_show();
|
1277 |
+
}
|
1278 |
+
};
|
1279 |
+
|
1280 |
+
Chosen.prototype.keyup_arrow = function() {
|
1281 |
+
var prev_sibs;
|
1282 |
+
if (!this.results_showing && !this.is_multiple) {
|
1283 |
+
return this.results_show();
|
1284 |
+
} else if (this.result_highlight) {
|
1285 |
+
prev_sibs = this.result_highlight.prevAll("li.active-result");
|
1286 |
+
if (prev_sibs.length) {
|
1287 |
+
return this.result_do_highlight(prev_sibs.first());
|
1288 |
+
} else {
|
1289 |
+
if (this.choices_count() > 0) {
|
1290 |
+
this.results_hide();
|
1291 |
+
}
|
1292 |
+
return this.result_clear_highlight();
|
1293 |
+
}
|
1294 |
+
}
|
1295 |
+
};
|
1296 |
+
|
1297 |
+
Chosen.prototype.keydown_backstroke = function() {
|
1298 |
+
var next_available_destroy;
|
1299 |
+
if (this.pending_backstroke) {
|
1300 |
+
this.choice_destroy(this.pending_backstroke.find("a").first());
|
1301 |
+
return this.clear_backstroke();
|
1302 |
+
} else {
|
1303 |
+
next_available_destroy = this.search_container.siblings("li.search-choice").last();
|
1304 |
+
if (next_available_destroy.length && !next_available_destroy.hasClass("search-choice-disabled")) {
|
1305 |
+
this.pending_backstroke = next_available_destroy;
|
1306 |
+
if (this.single_backstroke_delete) {
|
1307 |
+
return this.keydown_backstroke();
|
1308 |
+
} else {
|
1309 |
+
return this.pending_backstroke.addClass("search-choice-focus");
|
1310 |
+
}
|
1311 |
+
}
|
1312 |
+
}
|
1313 |
+
};
|
1314 |
+
|
1315 |
+
Chosen.prototype.clear_backstroke = function() {
|
1316 |
+
if (this.pending_backstroke) {
|
1317 |
+
this.pending_backstroke.removeClass("search-choice-focus");
|
1318 |
+
}
|
1319 |
+
return this.pending_backstroke = null;
|
1320 |
+
};
|
1321 |
+
|
1322 |
+
Chosen.prototype.search_field_scale = function() {
|
1323 |
+
var div, i, len, style, style_block, styles, width;
|
1324 |
+
if (!this.is_multiple) {
|
1325 |
+
return;
|
1326 |
+
}
|
1327 |
+
style_block = {
|
1328 |
+
position: 'absolute',
|
1329 |
+
left: '-1000px',
|
1330 |
+
top: '-1000px',
|
1331 |
+
display: 'none',
|
1332 |
+
whiteSpace: 'pre'
|
1333 |
+
};
|
1334 |
+
styles = ['fontSize', 'fontStyle', 'fontWeight', 'fontFamily', 'lineHeight', 'textTransform', 'letterSpacing'];
|
1335 |
+
for (i = 0, len = styles.length; i < len; i++) {
|
1336 |
+
style = styles[i];
|
1337 |
+
style_block[style] = this.search_field.css(style);
|
1338 |
+
}
|
1339 |
+
div = $('<div />').css(style_block);
|
1340 |
+
div.text(this.get_search_field_value());
|
1341 |
+
$('body').append(div);
|
1342 |
+
width = div.width() + 25;
|
1343 |
+
div.remove();
|
1344 |
+
if (this.container.is(':visible')) {
|
1345 |
+
width = Math.min(this.container.outerWidth() - 10, width);
|
1346 |
+
}
|
1347 |
+
return this.search_field.width(width);
|
1348 |
+
};
|
1349 |
+
|
1350 |
+
Chosen.prototype.trigger_form_field_change = function(extra) {
|
1351 |
+
this.form_field_jq.trigger("input", extra);
|
1352 |
+
return this.form_field_jq.trigger("change", extra);
|
1353 |
+
};
|
1354 |
+
|
1355 |
+
return Chosen;
|
1356 |
+
|
1357 |
+
})(AbstractChosen);
|
1358 |
+
|
1359 |
+
}).call(this);
|
assets/script.js
ADDED
@@ -0,0 +1,1499 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
//
|
2 |
+
// [START] Core file
|
3 |
+
//
|
4 |
+
(function($) {
|
5 |
+
$.fn.wpAssetCleanUp = function() {
|
6 |
+
var metaBoxContent = '#wpacu_meta_box_content';
|
7 |
+
|
8 |
+
return {
|
9 |
+
cssJsManagerActions: function () {
|
10 |
+
var cbSelector = '.input-unload-on-this-page',
|
11 |
+
cbSelectorNotLocked = '.input-unload-on-this-page.wpacu-not-locked',
|
12 |
+
cbSelectorMakeExceptionOnPage = '.wpacu_load_it_option_one.wpacu_load_exception',
|
13 |
+
handle, handleFor, $targetedAssetRow;
|
14 |
+
|
15 |
+
// live() is deprecated and if used and jQuery Migrate is disabled
|
16 |
+
// it could break the website's front-end functionality
|
17 |
+
$(document).on('click change', cbSelector, function (event) {
|
18 |
+
handle = $(this).attr('data-handle');
|
19 |
+
handleFor = $(this).hasClass('wpacu_unload_rule_for_style') ? 'style' : 'script';
|
20 |
+
|
21 |
+
if ($(this).prop('checked')) {
|
22 |
+
if (event.type === 'click' && (! $.fn.wpAssetCleanUp().triggerAlertWhenAnyUnloadRuleIsChosen(handle, handleFor))) {
|
23 |
+
return false;
|
24 |
+
}
|
25 |
+
|
26 |
+
$.fn.wpAssetCleanUp().uncheckAllOtherBulkUnloadRules($(this), false); // skip Unload via RegEx as both can be used
|
27 |
+
|
28 |
+
// Show load exceptions area (for exceptions like load it if the user is logged in)
|
29 |
+
$.fn.wpAssetCleanUp().showHandleLoadExceptionArea(handleFor, handle);
|
30 |
+
$(this).closest('tr').addClass('wpacu_not_load');
|
31 |
+
} else {
|
32 |
+
$(this).closest('tr').removeClass('wpacu_not_load');
|
33 |
+
$targetedAssetRow = $(this).parents('.wpacu_asset_row');
|
34 |
+
$.fn.wpAssetCleanUp().hideHandleLoadExceptionArea($targetedAssetRow, handle, handleFor);
|
35 |
+
}
|
36 |
+
});
|
37 |
+
|
38 |
+
/*
|
39 |
+
* [Start] Unload on this page
|
40 |
+
*/
|
41 |
+
// Check All
|
42 |
+
$('.wpacu-plugin-check-all').on('click', function (e) {
|
43 |
+
e.preventDefault();
|
44 |
+
|
45 |
+
var wpacuPluginTarget = $(this).attr('data-wpacu-plugin');
|
46 |
+
//console.log(wpacuPluginTarget);
|
47 |
+
|
48 |
+
$('table.wpacu_list_by_location[data-wpacu-plugin="' + wpacuPluginTarget + '"]')
|
49 |
+
.find(cbSelectorNotLocked)
|
50 |
+
.prop('checked', true).closest('tr').addClass('wpacu_not_load');
|
51 |
+
});
|
52 |
+
|
53 |
+
// Uncheck All
|
54 |
+
$('.wpacu-plugin-uncheck-all').on('click', function (e) {
|
55 |
+
e.preventDefault();
|
56 |
+
|
57 |
+
var wpacuPluginTarget = $(this).attr('data-wpacu-plugin');
|
58 |
+
|
59 |
+
$('table.wpacu_list_by_location[data-wpacu-plugin="' + wpacuPluginTarget + '"]')
|
60 |
+
.find(cbSelectorNotLocked)
|
61 |
+
.prop('checked', false).closest('tr').removeClass('wpacu_not_load');
|
62 |
+
});
|
63 |
+
/*
|
64 |
+
* [End] Unload on this page
|
65 |
+
*/
|
66 |
+
|
67 |
+
/*
|
68 |
+
* [Start] Make exception, Load it on this page
|
69 |
+
*/
|
70 |
+
// Check All
|
71 |
+
$('.wpacu-plugin-check-load-all').on('click change', function (e) {
|
72 |
+
e.preventDefault();
|
73 |
+
|
74 |
+
var wpacuPluginTarget = $(this).attr('data-wpacu-plugin');
|
75 |
+
var $wpacuPluginList = $('table.wpacu_list_by_location[data-wpacu-plugin="' + wpacuPluginTarget + '"]');
|
76 |
+
|
77 |
+
$wpacuPluginList
|
78 |
+
.find(cbSelectorMakeExceptionOnPage)
|
79 |
+
.prop('checked', true).closest('tr.wpacu_is_bulk_unloaded').removeClass('wpacu_not_load');
|
80 |
+
|
81 |
+
$wpacuPluginList.find(cbSelectorNotLocked).prop('checked', false).trigger('change');
|
82 |
+
});
|
83 |
+
|
84 |
+
// Uncheck All
|
85 |
+
$('.wpacu-plugin-uncheck-load-all').on('click change', function (e) {
|
86 |
+
e.preventDefault();
|
87 |
+
|
88 |
+
var wpacuPluginTarget = $(this).attr('data-wpacu-plugin');
|
89 |
+
var $wpacuPluginList = $('table.wpacu_list_by_location[data-wpacu-plugin="' + wpacuPluginTarget + '"]');
|
90 |
+
|
91 |
+
$wpacuPluginList
|
92 |
+
.find(cbSelectorMakeExceptionOnPage)
|
93 |
+
.prop('checked', false).closest('tr.wpacu_is_bulk_unloaded').addClass('wpacu_not_load');
|
94 |
+
|
95 |
+
$wpacuPluginList.find(cbSelectorNotLocked).prop('checked', false).trigger('change');
|
96 |
+
});
|
97 |
+
/*
|
98 |
+
* [End] Make exception, Load it on this page
|
99 |
+
*/
|
100 |
+
|
101 |
+
$(document).on('click', '.wpacu_keep_bulk_rule', function () {
|
102 |
+
if ($(this).prop('checked')) {
|
103 |
+
$(this).parents('li').next().removeClass('remove_rule');
|
104 |
+
}
|
105 |
+
});
|
106 |
+
|
107 |
+
$(document).on('click', '.wpacu_remove_bulk_rule', function () {
|
108 |
+
if ($(this).prop('checked')) {
|
109 |
+
$(this).parents('li').addClass('remove_rule');
|
110 |
+
}
|
111 |
+
});
|
112 |
+
|
113 |
+
// Unload on All Pages of post/page/custom post type / site-wide (everywhere) / based on taxonomy
|
114 |
+
$(document).on('click change', '.wpacu_bulk_unload', function (event) {
|
115 |
+
var $mainThis = $(this);
|
116 |
+
handle = $(this).attr('data-handle');
|
117 |
+
handleFor = $(this).attr('data-handle-for'); // 'style' or 'script' (e.g. 'contact-form-7' has the same name for both)
|
118 |
+
$targetedAssetRow = $('[data-' + handleFor + '-handle-row="' + handle + '"]');
|
119 |
+
|
120 |
+
var $parentLi = $(this).parents('li');
|
121 |
+
|
122 |
+
/**************************************************************
|
123 |
+
* STATE 1: The checkbox IS CHECKED (show multiple drop-down)
|
124 |
+
* ************************************************************
|
125 |
+
*/
|
126 |
+
if ($(this).prop('checked')) {
|
127 |
+
if (event.type === 'click' && (! $.fn.wpAssetCleanUp().triggerAlertWhenAnyUnloadRuleIsChosen(handle, handleFor))) {
|
128 |
+
return false;
|
129 |
+
}
|
130 |
+
|
131 |
+
if ($(this).hasClass('wpacu_global_unload') || $(this).hasClass('wpacu_post_type_unload')) {
|
132 |
+
/*
|
133 |
+
* Clicked: "Unload site-wide" (.wpacu_global_unload) or "Unload on all posts of the same [post_type]" (.wpacu_post_type_unload)
|
134 |
+
*/
|
135 |
+
$(this).parent('label').addClass('wpacu_input_load_checked');
|
136 |
+
$(this).closest('tr').addClass('wpacu_not_load');
|
137 |
+
}
|
138 |
+
|
139 |
+
// Show load exceptions area if Unload everywhere or other bulk unload rule is chosen
|
140 |
+
$.fn.wpAssetCleanUp().showHandleLoadExceptionArea(handleFor, handle);
|
141 |
+
|
142 |
+
if ($(this).hasClass('wpacu_global_unload')) {
|
143 |
+
// CSS/JS: Unload Site-Wide (Everywhere) was clicked
|
144 |
+
$.fn.wpAssetCleanUp().uncheckAllOtherBulkUnloadRules($(this), true);
|
145 |
+
|
146 |
+
// Obviously, "Unload on this page" should be unchecked as the rule overwrites it
|
147 |
+
$('.input-unload-on-this-page[data-handle-for="' + handleFor + '"][data-handle="' + handle + '"]')
|
148 |
+
.prop('checked', false);
|
149 |
+
|
150 |
+
} else if ($(this).hasClass('wpacu_post_type_unload')) {
|
151 |
+
// Unload on All Pages of "[post_type_here]" post type
|
152 |
+
$.fn.wpAssetCleanUp().uncheckAllOtherBulkUnloadRules($(this), false);
|
153 |
+
|
154 |
+
// Obviously, "Unload on this page" should be unchecked as the rule overwrites it
|
155 |
+
$('.input-unload-on-this-page[data-handle-for="' + handleFor + '"][data-handle="' + handle + '"]')
|
156 |
+
.prop('checked', false);
|
157 |
+
}
|
158 |
+
//wpAssetCleanUp.uncheckAllOtherBulkUnloadRules($(this));
|
159 |
+
//$(this).closest('tr').find('.wpacu_remove_site_wide_rule').prop('checked', true);
|
160 |
+
} else {
|
161 |
+
/***********************************************************************************
|
162 |
+
* STATE 2: The checkbox IS UNCHECKED / UNMARKED (the multiple drop-down is hidden)
|
163 |
+
***********************************************************************************
|
164 |
+
*/
|
165 |
+
if (!$(this).hasClass('wpacu_unload_it_regex_checkbox') && !$(this).hasClass('wpacu_unload_it_via_tax_checkbox')) {
|
166 |
+
/*
|
167 |
+
* Clicked: "Unload site-wide" or "Unload on all posts of the same [post_type]"
|
168 |
+
*/
|
169 |
+
$(this).parent('label').removeClass('wpacu_input_load_checked');
|
170 |
+
$(this).closest('tr').removeClass('wpacu_not_load');
|
171 |
+
} else if ($(this).hasClass('wpacu_unload_it_regex_checkbox')) {
|
172 |
+
/*
|
173 |
+
* "Unload via RegEx" is clicked
|
174 |
+
*/
|
175 |
+
$parentLi.find('label').removeClass('wpacu_unload_checked');
|
176 |
+
$parentLi.find('textarea')
|
177 |
+
.blur() // lose focus
|
178 |
+
.addClass('wpacu_disabled');
|
179 |
+
|
180 |
+
// Action taken if the input has no value
|
181 |
+
if ($parentLi.find('textarea').val().trim() === '') {
|
182 |
+
$parentLi.find('textarea')
|
183 |
+
.prop('disabled', true).val(''); // unchecked with no value added to the input
|
184 |
+
|
185 |
+
$parentLi.find('.wpacu_handle_unload_regex_input_wrap')
|
186 |
+
.addClass('wpacu_hide'); // Hide the input area
|
187 |
+
}
|
188 |
+
} else if ($(this).hasClass('wpacu_unload_it_via_tax_checkbox')) {
|
189 |
+
/*
|
190 |
+
* "Unload via taxonomy" is clicked
|
191 |
+
*/
|
192 |
+
$parentLi.find('label').removeClass('wpacu_unload_checked');
|
193 |
+
/*
|
194 |
+
$parentLi.find('select')
|
195 |
+
.blur() // lose focus
|
196 |
+
.addClass('wpacu_disabled');
|
197 |
+
*/
|
198 |
+
//$parentLi.find('select').prop('disabled', true).val(''); // unchecked with no value added to the input
|
199 |
+
$parentLi.find('.wpacu_handle_unload_via_tax_input_wrap').addClass('wpacu_hide'); // Hide the input area
|
200 |
+
}
|
201 |
+
|
202 |
+
// [wpacu_lite]
|
203 |
+
// If it's NOT already unloaded (on page load)
|
204 |
+
// All bulk unloads are unchecked
|
205 |
+
// Then HIDE make exceptions area
|
206 |
+
$.fn.wpAssetCleanUp().hideHandleLoadExceptionArea($targetedAssetRow, handle, handleFor);
|
207 |
+
// [/wpacu_lite]
|
208 |
+
}
|
209 |
+
|
210 |
+
// No bulk rule already applied (red background) and none of the bulk unloads (except RegEx) checkboxes are checked
|
211 |
+
if (!$targetedAssetRow.hasClass('wpacu_is_bulk_unloaded') && !$('.wpacu_bulk_unload:not(.wpacu_unload_it_regex_checkbox)').is(':checked')) {
|
212 |
+
$(this).closest('tr').removeClass('wpacu_not_load');
|
213 |
+
}
|
214 |
+
});
|
215 |
+
|
216 |
+
// Load it on this page
|
217 |
+
$(document).on(
|
218 |
+
'click change', // when these actions are taken
|
219 |
+
cbSelectorMakeExceptionOnPage + ',' + '.wpacu_load_it_option_post_type', // on these elements
|
220 |
+
function () { // trigger the following function
|
221 |
+
var handle = $(this).attr('data-handle');
|
222 |
+
|
223 |
+
if ($(this).prop('checked')) {
|
224 |
+
$(this).parent('label').addClass('wpacu_global_unload_exception');
|
225 |
+
|
226 |
+
// Uncheck "Unload on this page" as it's not relevant anymore
|
227 |
+
var asset_type = '';
|
228 |
+
|
229 |
+
if ($(this).hasClass('wpacu_style')) {
|
230 |
+
asset_type = 'style';
|
231 |
+
} else if ($(this).hasClass('wpacu_script')) {
|
232 |
+
asset_type = 'script';
|
233 |
+
}
|
234 |
+
|
235 |
+
$('#' + asset_type + '_' + handle).prop('checked', false).trigger('change');
|
236 |
+
} else {
|
237 |
+
$(this).parent('label').removeClass('wpacu_global_unload_exception');
|
238 |
+
}
|
239 |
+
}
|
240 |
+
);
|
241 |
+
|
242 |
+
// Handle Notes
|
243 |
+
$(document).on('click', '.wpacu-add-handle-note', function (e) {
|
244 |
+
e.preventDefault();
|
245 |
+
|
246 |
+
var wpacuHandle = $(this).attr('data-handle'), $wpacuNotesFieldArea, $wpacuNoteInput;
|
247 |
+
|
248 |
+
if ($(this).hasClass('wpacu-for-script')) {
|
249 |
+
$wpacuNotesFieldArea = $('.wpacu-handle-notes-field[data-script-handle="' + wpacuHandle + '"]');
|
250 |
+
} else if ($(this).hasClass('wpacu-for-style')) {
|
251 |
+
$wpacuNotesFieldArea = $('.wpacu-handle-notes-field[data-style-handle="' + wpacuHandle + '"]');
|
252 |
+
}
|
253 |
+
|
254 |
+
if ($wpacuNotesFieldArea.length < 1) {
|
255 |
+
return;
|
256 |
+
}
|
257 |
+
|
258 |
+
$wpacuNoteInput = $wpacuNotesFieldArea.find(':input');
|
259 |
+
|
260 |
+
if ($wpacuNotesFieldArea.is(':hidden')) {
|
261 |
+
// When "Add Note" is clicked, mark the textarea as visible and not disabled
|
262 |
+
$wpacuNotesFieldArea.show();
|
263 |
+
$wpacuNoteInput.prop('disabled', false);
|
264 |
+
} else {
|
265 |
+
$wpacuNotesFieldArea.hide();
|
266 |
+
|
267 |
+
// Was the area hidden without any textarea value and the value was null on page load?
|
268 |
+
// Mark it as disabled (save total sent inputs for PHP processing)
|
269 |
+
// If there's ONLY space added (could be by mistake) to the textarea, ignore it as it's irrelevant
|
270 |
+
if ($wpacuNoteInput.val().trim() === '' && $wpacuNoteInput.attr('data-wpacu-is-empty-on-page-load') === 'true') {
|
271 |
+
$wpacuNoteInput.prop('disabled', true).val('');
|
272 |
+
}
|
273 |
+
}
|
274 |
+
});
|
275 |
+
|
276 |
+
// [Get external asset size]
|
277 |
+
$(document).on('click', '.wpacu-external-file-size', function (e) {
|
278 |
+
e.preventDefault();
|
279 |
+
|
280 |
+
var $wpacuCurrentTarget = $(this),
|
281 |
+
$wpacuFileSizeArea,
|
282 |
+
wpacuRemoteFile = $wpacuCurrentTarget.attr('data-src');
|
283 |
+
|
284 |
+
$wpacuCurrentTarget.hide();
|
285 |
+
|
286 |
+
$wpacuFileSizeArea = $wpacuCurrentTarget.next();
|
287 |
+
$wpacuFileSizeArea.show();
|
288 |
+
|
289 |
+
if (wpacuRemoteFile.includes('/?')) { // Dynamic CSS/JS
|
290 |
+
$.get(wpacuRemoteFile, {}, function (output, textStatus, request) {
|
291 |
+
if (textStatus !== 'success') {
|
292 |
+
return 'N/A';
|
293 |
+
}
|
294 |
+
|
295 |
+
$wpacuFileSizeArea.html($.fn.wpAssetCleanUp().wpacuBytesToSize(output.length));
|
296 |
+
});
|
297 |
+
} else {
|
298 |
+
$.post(wpacu_object.ajax_url, {
|
299 |
+
'action': wpacu_object.plugin_prefix + '_get_external_file_size',
|
300 |
+
'wpacu_remote_file': wpacuRemoteFile,
|
301 |
+
'wpacu_nonce': wpacu_object.wpacu_ajax_check_remote_file_size_nonce
|
302 |
+
}, function (size) {
|
303 |
+
$wpacuFileSizeArea.html(size);
|
304 |
+
});
|
305 |
+
}
|
306 |
+
});
|
307 |
+
// [/Get external asset size]
|
308 |
+
|
309 |
+
// Note: Starting from July 24, 2021, development has started to use AJAX to save the state
|
310 |
+
$(document).on('click', '.wpacu_handle_row_expand_contract', function (e) {
|
311 |
+
e.preventDefault();
|
312 |
+
|
313 |
+
var wpacuAssetHandle = $(this).attr('data-wpacu-handle'),
|
314 |
+
wpacuAssetHandleFor = $(this).attr('data-wpacu-handle-for'),
|
315 |
+
wpacuNewAssetRowState;
|
316 |
+
|
317 |
+
if ($(this).find('span').hasClass('dashicons-minus')) {
|
318 |
+
/*
|
319 |
+
* Already expanded when clicked (had minus sign)
|
320 |
+
*/
|
321 |
+
wpacuNewAssetRowState = 'contracted';
|
322 |
+
|
323 |
+
$(this).parents('td').attr('data-wpacu-row-status', wpacuNewAssetRowState)
|
324 |
+
.find('.wpacu_handle_row_expanded_area').addClass('wpacu_hide');
|
325 |
+
$(this).find('span').removeClass('dashicons-minus').addClass('dashicons-plus');
|
326 |
+
|
327 |
+
} else if ($(this).find('span').hasClass('dashicons-plus')) {
|
328 |
+
/*
|
329 |
+
* Already contracted when clicked (had plus sign)
|
330 |
+
*/
|
331 |
+
wpacuNewAssetRowState = 'expanded';
|
332 |
+
|
333 |
+
$(this).parents('td').attr('data-wpacu-row-status', wpacuNewAssetRowState).find('.wpacu_handle_row_expanded_area').removeClass('wpacu_hide');
|
334 |
+
$(this).find('span').removeClass('dashicons-plus').addClass('dashicons-minus');
|
335 |
+
|
336 |
+
}
|
337 |
+
|
338 |
+
$.fn.wpAssetCleanUp().wpacuAjaxUpdateKeepTheAssetRowState(wpacuNewAssetRowState, wpacuAssetHandle, wpacuAssetHandleFor, $(this));
|
339 |
+
});
|
340 |
+
},
|
341 |
+
|
342 |
+
triggerAlertWhenAnyUnloadRuleIsChosen: function (handle, handleFor) {
|
343 |
+
// The moment the load exception area is shown, it means at least one unload rule was set
|
344 |
+
// There are cases when the admin needs to be alerted
|
345 |
+
|
346 |
+
// Dashicons
|
347 |
+
if (handle === 'dashicons' && handleFor === 'style') {
|
348 |
+
if ($('input[name="wpacu_ignore_child[styles][nf-display]').length > 0 && !confirm(wpacu_object.dashicons_unload_alert_ninja_forms)) {
|
349 |
+
return false;
|
350 |
+
}
|
351 |
+
}
|
352 |
+
|
353 |
+
if (handleFor === 'script') {
|
354 |
+
// jQuery library
|
355 |
+
if ((handle === 'jquery' || handle === 'jquery-core')) {
|
356 |
+
if ($('#script_jquery_ignore_children').length > 0 && !confirm(wpacu_object.jquery_unload_alert)) {
|
357 |
+
return false;
|
358 |
+
}
|
359 |
+
}
|
360 |
+
|
361 |
+
// JavaScript Cookie (https://github.com/js-cookie/js-cookie)
|
362 |
+
// Parent of: wc-cart-fragments, woocommerce
|
363 |
+
if (handle === 'js-cookie') {
|
364 |
+
if (!confirm(wpacu_object.woo_js_cookie_unload_alert)) {
|
365 |
+
return false;
|
366 |
+
}
|
367 |
+
}
|
368 |
+
|
369 |
+
// WooCommerce's "wc-cart-fragments" JS file
|
370 |
+
if (handle === 'wc-cart-fragments') {
|
371 |
+
if (!confirm(wpacu_object.woo_wc_cart_fragments_unload_alert)) {
|
372 |
+
return false;
|
373 |
+
}
|
374 |
+
}
|
375 |
+
|
376 |
+
// Other JS files
|
377 |
+
if ((handle === 'backbone' || handle === 'underscore')) {
|
378 |
+
if (!confirm(wpacu_object.sensitive_library_unload_alert)) {
|
379 |
+
return false;
|
380 |
+
}
|
381 |
+
}
|
382 |
+
}
|
383 |
+
|
384 |
+
return true;
|
385 |
+
},
|
386 |
+
|
387 |
+
showHandleLoadExceptionArea: function (handleFor, handle) {
|
388 |
+
//console.log('div.wpacu_exception_options_area_wrap[data-'+ handleFor +'-handle="'+ handle +'"]');
|
389 |
+
var $targetedLoadExceptionArea = $('div.wpacu_exception_options_area_wrap[data-' + handleFor + '-handle="' + handle + '"]');
|
390 |
+
$targetedLoadExceptionArea.parent('div').removeClass('wpacu_hide');
|
391 |
+
// Remove "disabled" attribute to any load exceptions checkboxes
|
392 |
+
// Except the locked ones if the Lite version is used
|
393 |
+
$targetedLoadExceptionArea.find('input[type="checkbox"]').not('.wpacu_lite_locked').prop('disabled', false);
|
394 |
+
},
|
395 |
+
hideHandleLoadExceptionArea: function ($targetedAssetRow, handle, handleFor) {
|
396 |
+
// If it's NOT already unloaded (on page load)
|
397 |
+
// All bulk unloads are unchecked
|
398 |
+
// Then HIDE make exceptions area
|
399 |
+
if (!$targetedAssetRow.hasClass('wpacu_is_bulk_unloaded')) {
|
400 |
+
if (!$targetedAssetRow.find('.wpacu_bulk_unload').is(':checked')) {
|
401 |
+
var $targetedLoadExceptionArea = $('div.wpacu_exception_options_area_wrap[data-' + handleFor + '-handle="' + handle + '"]');
|
402 |
+
$targetedLoadExceptionArea.parent('div').addClass('wpacu_hide');
|
403 |
+
// Set "disabled" attribute any load exceptions checkboxes as they are irrelevant in this instance
|
404 |
+
$targetedLoadExceptionArea.find('input[type="checkbox"]').prop('disabled', true);
|
405 |
+
}
|
406 |
+
}
|
407 |
+
},
|
408 |
+
|
409 |
+
uncheckAllOtherBulkUnloadRules: function ($targetInput, includingUnloadViaRegEx) {
|
410 |
+
//console.log($targetInput.closest('tr').find('.wpacu_unload_rule_input'));
|
411 |
+
var wpacuToFind = '.wpacu_bulk_unload';
|
412 |
+
|
413 |
+
if (includingUnloadViaRegEx === false) {
|
414 |
+
wpacuToFind = '.wpacu_bulk_unload:not(.wpacu_unload_it_regex_checkbox)';
|
415 |
+
}
|
416 |
+
|
417 |
+
$targetInput.closest('tr').find(wpacuToFind).not($targetInput) // all except the target one
|
418 |
+
// uncheck it
|
419 |
+
.prop('checked', false)
|
420 |
+
// remove the "checked" style from the label
|
421 |
+
.parent('label').removeClass('wpacu_input_load_checked')
|
422 |
+
.removeClass('wpacu_unload_checked');
|
423 |
+
},
|
424 |
+
|
425 |
+
limitSubmittedFields: function () {
|
426 |
+
var wpacuSubmitForm = false,
|
427 |
+
preloadTargetInput = '[data-wpacu-input="preload"]',
|
428 |
+
wpacuListToCheck = [];
|
429 |
+
|
430 |
+
// Edit post/page area (e.g. /wp-admin/post.php?post=[POST_ID_HERE]&action=edit)
|
431 |
+
// OR edit taxonomy area (e.g. /wp-admin/term.php?taxonomy=category&tag_ID=63&post_type=post)
|
432 |
+
if ($('body.wp-admin form#post').length > 0 || $('body.wp-admin form#edittag').length > 0) {
|
433 |
+
if ($('#wpacu_unload_assets_area_loaded').length < 1) {
|
434 |
+
return true; // the CSS/JS area is not loaded on edit post/page area, thus no reason to continue
|
435 |
+
}
|
436 |
+
|
437 |
+
wpacuSubmitForm = true; // leave it always to true as the edit post/page/taxonomy form needs to always submit (might be edited later on)
|
438 |
+
}
|
439 |
+
|
440 |
+
if ($(preloadTargetInput).length > 0) {
|
441 |
+
wpacuListToCheck.push(preloadTargetInput);
|
442 |
+
}
|
443 |
+
|
444 |
+
if (wpacuListToCheck.length > 0) {
|
445 |
+
//console.log(wpacuListToCheck.join());
|
446 |
+
$(wpacuListToCheck.join()).each(function () {
|
447 |
+
//console.log($(this).val());
|
448 |
+
if (!$(this).val()) {
|
449 |
+
$(this).prop('disabled', 'disabled');
|
450 |
+
}
|
451 |
+
}).promise().done(function () {
|
452 |
+
wpacuSubmitForm = true;
|
453 |
+
});
|
454 |
+
} else {
|
455 |
+
wpacuSubmitForm = true; // "Do not load Asset CleanUp Pro on this page (this will disable any functionality of the plugin)" could be enabled
|
456 |
+
}
|
457 |
+
|
458 |
+
return wpacuSubmitForm;
|
459 |
+
},
|
460 |
+
|
461 |
+
wpacuParseContentsForDirectCall: function (contents, statusCode) {
|
462 |
+
if (contents.lastIndexOf(wpacu_object.start_del_e) < 0
|
463 |
+
|| contents.lastIndexOf(wpacu_object.end_del_e) < 0
|
464 |
+
|| contents.lastIndexOf(wpacu_object.start_del_h) < 0
|
465 |
+
|| contents.lastIndexOf(wpacu_object.end_del_h) < 0
|
466 |
+
) {
|
467 |
+
// Sometimes, 200 OK (success) is returned, but due to an issue with the page, the assets list is not retrieved
|
468 |
+
// Do further checks if any of the markers are missing (even if there are no assets to manage, they should be printed)
|
469 |
+
var wpacuOutputError = wpacu_object.ajax_direct_fetch_error_with_success_response;
|
470 |
+
|
471 |
+
// Strip tags (Source: https://css-tricks.com/snippets/javascript/strip-html-tags-in-javascript/)
|
472 |
+
wpacuOutputError = wpacuOutputError.replace(
|
473 |
+
/{wpacu_output}/,
|
474 |
+
xhr.responseText.replace(/(<([^>]+)>)/ig, '')
|
475 |
+
);
|
476 |
+
|
477 |
+
// htmlEntities() PHP equivalent: https://css-tricks.com/snippets/javascript/htmlentities-for-javascript/
|
478 |
+
try {
|
479 |
+
wpacuOutputError = String(wpacuOutputError).replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
|
480 |
+
} catch (e) {
|
481 |
+
console.log(e);
|
482 |
+
}
|
483 |
+
|
484 |
+
$(metaBoxContent).html(wpacuOutputError);
|
485 |
+
return;
|
486 |
+
}
|
487 |
+
|
488 |
+
var wpacuListE = contents.substring(
|
489 |
+
(contents.lastIndexOf(wpacu_object.start_del_e) + wpacu_object.start_del_e.length),
|
490 |
+
contents.lastIndexOf(wpacu_object.end_del_e)
|
491 |
+
);
|
492 |
+
|
493 |
+
/*
|
494 |
+
* IMPORTANT NOTE: It looks like UglifyJS jas issues preserving comments that are after consecutive "var"
|
495 |
+
*/
|
496 |
+
var wpacuListH = contents.substring(
|
497 |
+
(contents.lastIndexOf(wpacu_object.start_del_h) + wpacu_object.start_del_h.length),
|
498 |
+
contents.lastIndexOf(wpacu_object.end_del_h)
|
499 |
+
);
|
500 |
+
|
501 |
+
var dataGetLoadedAssets = {
|
502 |
+
'action' : wpacu_object.plugin_prefix + '_get_loaded_assets',
|
503 |
+
'wpacu_list_e' : wpacuListE,
|
504 |
+
'wpacu_list_h' : wpacuListH,
|
505 |
+
'post_id' : wpacu_object.post_id,
|
506 |
+
'page_url' : wpacu_object.page_url,
|
507 |
+
'tag_id' : wpacu_object.tag_id,
|
508 |
+
'wpacu_taxonomy' : wpacu_object.wpacu_taxonomy,
|
509 |
+
'force_manage_dash' : wpacu_object.force_manage_dash,
|
510 |
+
'is_for_singular' : false, // e.g. Post ID, Post Title
|
511 |
+
'wpacu_nonce' : wpacu_object.wpacu_ajax_get_loaded_assets_nonce,
|
512 |
+
'time_r' : new Date().getTime()
|
513 |
+
};
|
514 |
+
|
515 |
+
if ($('#wpacu_manage_singular_page_assets').length > 0) { // e.g. /wp-admin/admin.php?page=wpassetcleanup_assets_manager
|
516 |
+
dataGetLoadedAssets['is_for_singular'] = true;
|
517 |
+
}
|
518 |
+
|
519 |
+
$.post(wpacu_object.ajax_url, dataGetLoadedAssets, function (response) {
|
520 |
+
if (!response) {
|
521 |
+
return;
|
522 |
+
}
|
523 |
+
|
524 |
+
$(metaBoxContent).html(response);
|
525 |
+
|
526 |
+
if (statusCode === 404) {
|
527 |
+
$(metaBoxContent).prepend('<p><span class="dashicons dashicons-warning"></span> ' + wpacu_object.server_returned_404_not_found + '</p><hr />');
|
528 |
+
}
|
529 |
+
|
530 |
+
if ($('#wpacu_dash_assets_manager_form').length > 0) {
|
531 |
+
$('#submit').show();
|
532 |
+
}
|
533 |
+
|
534 |
+
setTimeout(function () {
|
535 |
+
$.fn.wpAssetCleanUp().cssJsManagerActions();
|
536 |
+
$('.wpacu_asset_row, .wpacu-page-options .wpacu-assets-collapsible-content').removeClass('wpacu-loading'); // hide loading spinner after post is updated
|
537 |
+
$('#wpacu-assets-reloading').remove();
|
538 |
+
|
539 |
+
$.fn.wpAssetCleanUp().wpacuCheckSourcesFor404Errors();
|
540 |
+
}, 200);
|
541 |
+
});
|
542 |
+
},
|
543 |
+
|
544 |
+
wpacuAjaxGetAssetsArea: function (forceFetch) {
|
545 |
+
// Do not make any AJAX call unless force fetch is enabled
|
546 |
+
if (!forceFetch && !$('#wpacu_ajax_fetch_assets_list_dashboard_view').length) {
|
547 |
+
return false;
|
548 |
+
}
|
549 |
+
|
550 |
+
// Was "Do not load Asset CleanUp Pro on this page (this will disable any functionality of the plugin)" ticked?
|
551 |
+
// Do not load any list! Instead, make an AJAX call to load the restricted area mentioning that the restriction took effect
|
552 |
+
|
553 |
+
var pageOptionNoPluginLoadTarget = '#wpacu_page_options_no_wpacu_load';
|
554 |
+
if ($(pageOptionNoPluginLoadTarget).length > 0 && $(pageOptionNoPluginLoadTarget).prop('checked')) {
|
555 |
+
var dataLoadPageRestrictedArea = {
|
556 |
+
'action' : wpacu_object.plugin_prefix + '_load_page_restricted_area',
|
557 |
+
'post_id' : wpacu_object.post_id,
|
558 |
+
'wpacu_nonce' : wpacu_object.wpacu_ajax_load_page_restricted_area_nonce,
|
559 |
+
'time_r' : new Date().getTime()
|
560 |
+
};
|
561 |
+
|
562 |
+
$.post(wpacu_object.ajax_url, dataLoadPageRestrictedArea, function (response) {
|
563 |
+
if (!response) {
|
564 |
+
return false;
|
565 |
+
}
|
566 |
+
|
567 |
+
$(metaBoxContent).html(response);
|
568 |
+
|
569 |
+
$('.wpacu_asset_row, .wpacu-page-options .wpacu-assets-collapsible-content').removeClass('wpacu-loading'); // hide loading spinner after post is updated
|
570 |
+
$('#wpacu-assets-reloading').remove();
|
571 |
+
});
|
572 |
+
|
573 |
+
return;
|
574 |
+
}
|
575 |
+
|
576 |
+
var dataDirect = {};
|
577 |
+
|
578 |
+
if (wpacu_object.dom_get_type === 'direct') {
|
579 |
+
dataDirect[wpacu_object.plugin_prefix + '_load'] = 1;
|
580 |
+
dataDirect[wpacu_object.plugin_prefix + '_time_r'] = new Date().getTime();
|
581 |
+
|
582 |
+
$.ajax({
|
583 |
+
method: 'GET',
|
584 |
+
url: wpacu_object.page_url,
|
585 |
+
data: dataDirect,
|
586 |
+
cache: false,
|
587 |
+
complete: function (xhr, textStatus) {
|
588 |
+
if (xhr.statusText === 'error') {
|
589 |
+
// Make exception for 404 errors as there could be plugin used such as "404page – your smart custom 404 error page"
|
590 |
+
if (xhr.status === 404) {
|
591 |
+
$.fn.wpAssetCleanUp().wpacuParseContentsForDirectCall(xhr.responseText, xhr.status, $);
|
592 |
+
return;
|
593 |
+
}
|
594 |
+
|
595 |
+
// Strip any tags (Source: https://css-tricks.com/snippets/javascript/strip-html-tags-in-javascript/)
|
596 |
+
var errorTextOutput = xhr.responseText.replace(/(<([^>]+)>)/ig, '');
|
597 |
+
|
598 |
+
// htmlEntities() PHP equivalent: https://css-tricks.com/snippets/javascript/htmlentities-for-javascript/
|
599 |
+
try {
|
600 |
+
errorTextOutput = String(errorTextOutput).replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
|
601 |
+
} catch (e) {
|
602 |
+
console.log(e);
|
603 |
+
}
|
604 |
+
|
605 |
+
var wpacuOutputError = wpacu_object.ajax_direct_fetch_error;
|
606 |
+
wpacuOutputError = wpacuOutputError.replace(/{wpacu_output}/, errorTextOutput);
|
607 |
+
wpacuOutputError = wpacuOutputError.replace(/{wpacu_status_code_error}/, xhr.status);
|
608 |
+
|
609 |
+
$(metaBoxContent).html(wpacuOutputError);
|
610 |
+
}
|
611 |
+
}
|
612 |
+
}).done(function (contents, _textStatus, jqXHR) {
|
613 |
+
//console.log(jqXHR);
|
614 |
+
//console.log(jqXHR.getAllResponseHeaders());
|
615 |
+
|
616 |
+
// "Step 1" (Fetch the assets from the home page) is now completed
|
617 |
+
$('#wpacu-fetch-list-step-1-wrap').addClass('wpacu-completed');
|
618 |
+
$('#wpacu-fetch-list-step-1-status').html($('#wpacu-list-step-completed-status').html());
|
619 |
+
|
620 |
+
// "Step 2" is in progress, mark it as such
|
621 |
+
$('#wpacu-fetch-list-step-2-status').html($('#wpacu-list-step-default-status').html());
|
622 |
+
$.fn.wpAssetCleanUp().wpacuParseContentsForDirectCall(contents);
|
623 |
+
});
|
624 |
+
} else if (wpacu_object.dom_get_type === 'wp_remote_post') {
|
625 |
+
var dataGetLoadedAssets = {
|
626 |
+
'action': wpacu_object.plugin_prefix + '_get_loaded_assets',
|
627 |
+
'post_id': wpacu_object.post_id,
|
628 |
+
'page_url': wpacu_object.page_url,
|
629 |
+
'tag_id': wpacu_object.tag_id,
|
630 |
+
'wpacu_taxonomy': wpacu_object.wpacu_taxonomy,
|
631 |
+
'force_manage_dash': wpacu_object.force_manage_dash,
|
632 |
+
'wpacu_nonce': wpacu_object.wpacu_ajax_get_loaded_assets_nonce,
|
633 |
+
'time_r': new Date().getTime()
|
634 |
+
};
|
635 |
+
|
636 |
+
$.post(wpacu_object.ajax_url, dataGetLoadedAssets, function (response) {
|
637 |
+
if (!response) {
|
638 |
+
return false;
|
639 |
+
}
|
640 |
+
|
641 |
+
$(metaBoxContent).html(response);
|
642 |
+
|
643 |
+
if ($('#wpacu_dash_assets_manager_form').length > 0) {
|
644 |
+
$('#submit').show();
|
645 |
+
}
|
646 |
+
|
647 |
+
setTimeout(function () {
|
648 |
+
$.fn.wpAssetCleanUp().cssJsManagerActions();
|
649 |
+
|
650 |
+
setTimeout(function () {
|
651 |
+
$.fn.wpAssetCleanUp().wpacuCheckSourcesFor404Errors();
|
652 |
+
}, 100);
|
653 |
+
}, 200);
|
654 |
+
});
|
655 |
+
}
|
656 |
+
},
|
657 |
+
|
658 |
+
wpacuParseResultsForHarcodedAssets: function (contents) {
|
659 |
+
if (contents.lastIndexOf(wpacu_object.start_del_h) < 0 || contents.lastIndexOf(wpacu_object.end_del_h) < 0) {
|
660 |
+
// error in fetching the list
|
661 |
+
}
|
662 |
+
|
663 |
+
// IMPORTANT NOTE: It looks like UglifyJS has issues preserving comments that are after consecutive "var"
|
664 |
+
var wpacuListH = contents.substring(
|
665 |
+
(contents.lastIndexOf(wpacu_object.start_del_h) + wpacu_object.start_del_h.length),
|
666 |
+
contents.lastIndexOf(wpacu_object.end_del_h)
|
667 |
+
);
|
668 |
+
|
669 |
+
var wpacuSettings = $('#wpacu-assets-collapsible-wrap-hardcoded-list').attr('data-wpacu-settings-frontend');
|
670 |
+
|
671 |
+
var dataGetLoadedHardcodedAssets = {
|
672 |
+
'action' : wpacu_object.plugin_prefix + '_print_loaded_hardcoded_assets',
|
673 |
+
'wpacu_list_h' : wpacuListH,
|
674 |
+
'wpacu_settings' : wpacuSettings, // includes $data values as well (with rules) to pass to the hardcoded list
|
675 |
+
'time_r' : new Date().getTime(),
|
676 |
+
'wpacu_nonce' : wpacu_object.wpacu_print_loaded_hardcoded_assets_nonce
|
677 |
+
};
|
678 |
+
|
679 |
+
$.post(wpacu_object.ajax_url, dataGetLoadedHardcodedAssets, function (response) {
|
680 |
+
var $mainJQuerySelector = '#wpacu-assets-collapsible-wrap-hardcoded-list';
|
681 |
+
|
682 |
+
if (!response) {
|
683 |
+
return;
|
684 |
+
}
|
685 |
+
|
686 |
+
if (response.includes('The security nonce is not valid')) {
|
687 |
+
$($mainJQuerySelector).find('> .wpacu-assets-collapsible-content').html(response);
|
688 |
+
return;
|
689 |
+
}
|
690 |
+
|
691 |
+
var responseJson = JSON.parse(response);
|
692 |
+
|
693 |
+
$($mainJQuerySelector).find('> .wpacu-assets-collapsible-content').html(responseJson.output);
|
694 |
+
$($mainJQuerySelector).find('a.wpacu-assets-collapsible')
|
695 |
+
.append(' ➝ Total: ' + parseInt(responseJson.total_hardcoded_assets));
|
696 |
+
});
|
697 |
+
},
|
698 |
+
|
699 |
+
wpacuCheckSourcesFor404Errors: function() {
|
700 |
+
// Trigger on page load (front-end view)
|
701 |
+
var $targetSources = $('[data-wpacu-external-source]');
|
702 |
+
|
703 |
+
if ($targetSources.length < 1) {
|
704 |
+
return;
|
705 |
+
}
|
706 |
+
|
707 |
+
var totalExternalSources = $targetSources.length, checkUrlsToPass = '';
|
708 |
+
|
709 |
+
$targetSources.each(function(wpacuIndex) {
|
710 |
+
var $targetSource = $(this), sourceUrl = $targetSource.attr('data-wpacu-external-source');
|
711 |
+
|
712 |
+
checkUrlsToPass += sourceUrl + '-at-wpacu-at-';
|
713 |
+
|
714 |
+
if (wpacuIndex === totalExternalSources - 1) {
|
715 |
+
$.post(wpacu_object.ajax_url, {
|
716 |
+
'action' : wpacu_object.plugin_prefix + '_check_external_urls_for_status_code',
|
717 |
+
'wpacu_check_urls' : checkUrlsToPass,
|
718 |
+
'wpacu_nonce' : wpacu_object.wpacu_ajax_check_external_urls_nonce
|
719 |
+
}, function(response) {
|
720 |
+
var urlsList = $.parseJSON(response);
|
721 |
+
|
722 |
+
$.each(urlsList, function(index, sourceToHi) {
|
723 |
+
$('[data-wpacu-external-source="'+ sourceToHi +'"]')
|
724 |
+
.css({'color': '#cc0000'})
|
725 |
+
.parent('div')
|
726 |
+
.find('[data-wpacu-external-source-status]')
|
727 |
+
.html('<small>* <em style="font-weight: 600;">' + wpacu_object.source_load_error_msg + '</em></small>');
|
728 |
+
});
|
729 |
+
});
|
730 |
+
}
|
731 |
+
});
|
732 |
+
},
|
733 |
+
|
734 |
+
wpacuBytesToSize: function(bytes) {
|
735 |
+
/**
|
736 |
+
* Inspired from: https://web.archive.org/web/20120507054320/http://codeaid.net/javascript/convert-size-in-bytes-to-human-readable-format-(javascript)
|
737 |
+
* Bytes to KB
|
738 |
+
*/
|
739 |
+
if (bytes === 0) {
|
740 |
+
return 'N/A';
|
741 |
+
}
|
742 |
+
|
743 |
+
return (bytes / 1024).toFixed(4) + ' KB';
|
744 |
+
},
|
745 |
+
|
746 |
+
wpacuAjaxUpdateKeepTheGroupsState: function(newState, btnIdClicked) {
|
747 |
+
// Don't use resources and perform the AJAX call if the same "state" button is clicked
|
748 |
+
var dataCurrentState = $('#wpacu-assets-groups-change-state-area').attr('data-wpacu-groups-current-state');
|
749 |
+
|
750 |
+
if (dataCurrentState == newState) {
|
751 |
+
$('#' + btnIdClicked).prop('disabled', false); // Don't leave the button disabled
|
752 |
+
return;
|
753 |
+
}
|
754 |
+
|
755 |
+
var dataUpdateSetting = {
|
756 |
+
'action' : wpacu_object.plugin_prefix + '_update_settings',
|
757 |
+
'wpacu_nonce' : wpacu_object.wpacu_update_specific_settings_nonce,
|
758 |
+
'wpacu_update_keep_the_groups' : 'yes',
|
759 |
+
'wpacu_keep_the_groups_state' : newState, // "expanded" or "contracted"
|
760 |
+
'time_r' : new Date().getTime() // avoid any caching
|
761 |
+
};
|
762 |
+
|
763 |
+
try {
|
764 |
+
$.post(wpacu_object.ajax_url, dataUpdateSetting, function (response) {
|
765 |
+
if (response == 'done') {
|
766 |
+
$('#wpacu-assets-groups-change-state-area').attr('data-wpacu-groups-current-state', newState);
|
767 |
+
}
|
768 |
+
|
769 |
+
$('#' + btnIdClicked).prop('disabled', false);
|
770 |
+
});
|
771 |
+
} catch (e) {
|
772 |
+
$('#'+ btnIdClicked).prop('disabled', false); // Any problems with the AJAX call? Don't keep the button disabled
|
773 |
+
}
|
774 |
+
},
|
775 |
+
wpacuAjaxUpdateKeepTheAssetRowState: function(newState, handle, handleFor, $currentElement) {
|
776 |
+
var dataUpdateSetting = {
|
777 |
+
'action' : wpacu_object.plugin_prefix + '_update_asset_row_state',
|
778 |
+
'wpacu_update_asset_row_state' : 'yes',
|
779 |
+
'wpacu_asset_row_state' : newState, // "expanded" or "contracted"
|
780 |
+
'wpacu_handle' : handle,
|
781 |
+
'wpacu_handle_for' : handleFor,
|
782 |
+
'time_r' : new Date().getTime(), // avoid any caching
|
783 |
+
'wpacu_nonce' : wpacu_object.wpacu_update_asset_row_state_nonce
|
784 |
+
};
|
785 |
+
|
786 |
+
$currentElement.addClass('wpacu_hide');
|
787 |
+
|
788 |
+
$.post(wpacu_object.ajax_url, dataUpdateSetting, function (response) {
|
789 |
+
$currentElement.removeClass('wpacu_hide');
|
790 |
+
console.log(response);
|
791 |
+
});
|
792 |
+
},
|
793 |
+
|
794 |
+
wpacuTriggerAdjustTextAreaHeightAllTextareas: function() {
|
795 |
+
// We use the "data-wpacu-adapt-height" attribute as a marker
|
796 |
+
var wpacuTextAreas = [].slice.call(document.querySelectorAll('textarea[data-wpacu-adapt-height="1"]'));
|
797 |
+
|
798 |
+
// Iterate through all the textareas on the page
|
799 |
+
wpacuTextAreas.forEach(function(el) {
|
800 |
+
// we need box-sizing: border-box, if the textarea has padding
|
801 |
+
el.style.boxSizing = el.style.mozBoxSizing = 'border-box';
|
802 |
+
|
803 |
+
// we don't need any scrollbars, do we? :)
|
804 |
+
el.style.overflowY = 'hidden';
|
805 |
+
|
806 |
+
// the minimum height initiated through the "rows" attribute
|
807 |
+
var minHeight = el.scrollHeight;
|
808 |
+
|
809 |
+
el.addEventListener('input', function() {
|
810 |
+
$.fn.wpAssetCleanUp().wpacuAdjustTextareaHeight(el, minHeight);
|
811 |
+
});
|
812 |
+
|
813 |
+
// we have to readjust when window size changes (e.g. orientation change)
|
814 |
+
window.addEventListener('resize', function() {
|
815 |
+
$.fn.wpAssetCleanUp().wpacuAdjustTextareaHeight(el, minHeight);
|
816 |
+
});
|
817 |
+
|
818 |
+
// we adjust height to the initial content
|
819 |
+
$.fn.wpAssetCleanUp().wpacuAdjustTextareaHeight(el, minHeight);
|
820 |
+
});
|
821 |
+
},
|
822 |
+
wpacuAdjustTextareaHeight: function(el, minHeight) {
|
823 |
+
/* Source: http://bdadam.com/blog/automatically-adapting-the-height-textarea.html */
|
824 |
+
// compute the height difference which is caused by border and outline
|
825 |
+
var outerHeight = parseInt(window.getComputedStyle(el).height, 10);
|
826 |
+
var diff = outerHeight - el.clientHeight;
|
827 |
+
|
828 |
+
// set the height to 0 in case of it has to be shrunk
|
829 |
+
el.style.height = 0;
|
830 |
+
|
831 |
+
// set the correct height
|
832 |
+
// el.scrollHeight is the full height of the content, not just the visible part
|
833 |
+
el.style.height = Math.max(minHeight, el.scrollHeight + diff) + 'px';
|
834 |
+
}
|
835 |
+
}
|
836 |
+
}
|
837 |
+
})(jQuery);
|
838 |
+
|
839 |
+
jQuery(document).ready(function($) {
|
840 |
+
/*
|
841 |
+
* [START] "Settings" (menu)
|
842 |
+
*/
|
843 |
+
$.fn.wpAssetCleanUpSettingsArea = function() {
|
844 |
+
return {
|
845 |
+
actions: function () {
|
846 |
+
/*
|
847 |
+
* Settings: A link is clicked that should trigger a vertical menu link from the plugin
|
848 |
+
*/
|
849 |
+
$(document).on('click', 'a[data-wpacu-vertical-link-target]', function (e) {
|
850 |
+
//console.log('clicked...');
|
851 |
+
e.preventDefault();
|
852 |
+
$.fn.wpAssetCleanUpSettingsArea().tabOpenSettingsArea(e, $(this).attr('data-wpacu-vertical-link-target'));
|
853 |
+
});
|
854 |
+
|
855 |
+
/*
|
856 |
+
* A vertical tab is clicked
|
857 |
+
*/
|
858 |
+
$(document).on('click', 'a[data-wpacu-settings-tab-key]', function (e) {
|
859 |
+
//console.log('clicked...');
|
860 |
+
e.preventDefault();
|
861 |
+
$.fn.wpAssetCleanUpSettingsArea().tabOpenSettingsArea(e, $(this).attr('data-wpacu-settings-tab-key'));
|
862 |
+
});
|
863 |
+
|
864 |
+
$(document).on('click', 'input[type="checkbox"]#wpacu_disable_rss_feed', function () {
|
865 |
+
if ($(this).is(':checked')) {
|
866 |
+
$('#wpacu_remove_main_feed_link, #wpacu_remove_comment_feed_link').prop('checked', true);
|
867 |
+
} else {
|
868 |
+
$('#wpacu_remove_main_feed_link, #wpacu_remove_comment_feed_link').prop('checked', false);
|
869 |
+
}
|
870 |
+
});
|
871 |
+
|
872 |
+
/*
|
873 |
+
* Settings: Sub-tab within tab clicked
|
874 |
+
*/
|
875 |
+
$(document).on('click', 'input[name="wpacu_sub_tab_area"]', function () {
|
876 |
+
if ($(this).prop('checked')) {
|
877 |
+
$('#wpacu-selected-sub-tab-area').val($(this).val());
|
878 |
+
}
|
879 |
+
});
|
880 |
+
|
881 |
+
/* [Start] Minify/Combine CSS/JS status circles */
|
882 |
+
$(document).on('click', '#wpacu_minify_css_enable, #wpacu_combine_loaded_css_enable, #wpacu_minify_js_enable, #wpacu_combine_loaded_js_enable, #wpacu_cdn_rewrite_enable, #wpacu_enable_test_mode', function () {
|
883 |
+
if ($(this).prop('checked')) {
|
884 |
+
$('[data-linked-to="' + $(this).attr('id') + '"]').find('.wpacu-circle-status').addClass('wpacu-on').removeClass('wpacu-off');
|
885 |
+
} else {
|
886 |
+
$('[data-linked-to="' + $(this).attr('id') + '"]').find('.wpacu-circle-status').addClass('wpacu-off').removeClass('wpacu-on');
|
887 |
+
}
|
888 |
+
});
|
889 |
+
/* [End] Minify/Combine CSS/JS status circles */
|
890 |
+
|
891 |
+
/* [Start] Inline Stylesheet (.css) Files Smaller Than (x) KB */
|
892 |
+
$(document).on('click', '#wpacu_inline_css_files_below_size_checkbox', function () {
|
893 |
+
// The checkbox is not 'checked' and it was clicked
|
894 |
+
if ($(this).is(':checked')) {
|
895 |
+
$('#wpacu_inline_css_files_enable').prop('checked', true).trigger('tick');
|
896 |
+
} else {
|
897 |
+
if ($('#wpacu_inline_css_files_list').val() === '') {
|
898 |
+
$('#wpacu_inline_css_files_enable').prop('checked', false).trigger('tick');
|
899 |
+
}
|
900 |
+
}
|
901 |
+
});
|
902 |
+
/* [End] Inline Stylesheet (.css) Files Smaller Than (x) KB */
|
903 |
+
|
904 |
+
/* [Start] Inline JavaScript (.js) Files Smaller Than (x) KB */
|
905 |
+
$(document).on('click', '#wpacu_inline_js_files_below_size_checkbox', function () {
|
906 |
+
// The checkbox is not 'checked' and it was clicked
|
907 |
+
if ($(this).is(':checked')) {
|
908 |
+
if (!confirm(wpacu_object.inline_auto_js_files_confirm_msg)) {
|
909 |
+
return false;
|
910 |
+
}
|
911 |
+
|
912 |
+
$('#wpacu_inline_js_files_enable').prop('checked', true).trigger('tick');
|
913 |
+
} else {
|
914 |
+
if ($('#wpacu_inline_js_files_list').val() === '') {
|
915 |
+
$('#wpacu_inline_js_files_enable').prop('checked', false).trigger('tick');
|
916 |
+
}
|
917 |
+
}
|
918 |
+
});
|
919 |
+
/* [End] Inline JavaScript (.js) Files Smaller Than (x) KB */
|
920 |
+
|
921 |
+
// "Manage in the Dashboard?" Clicked
|
922 |
+
$(document).on('click', '#wpacu_dashboard', function() {
|
923 |
+
if ($(this).prop('checked')) {
|
924 |
+
$('#wpacu-settings-assets-retrieval-mode').show();
|
925 |
+
//$('#wpacu_hide_meta_boxes_for_post_types_chosen .chosen-choices, #wpacu-hide-meta-boxes-for-post-types-info').css({'opacity':1});
|
926 |
+
} else {
|
927 |
+
$('#wpacu-settings-assets-retrieval-mode').hide();
|
928 |
+
//$('#wpacu_hide_meta_boxes_for_post_types_chosen .chosen-choices, #wpacu-hide-meta-boxes-for-post-types-info').css({'opacity':0.4});
|
929 |
+
}
|
930 |
+
});
|
931 |
+
|
932 |
+
// "Manage in the Dashboard?" radio selection
|
933 |
+
$(document).on('change', '.wpacu-dom-get-type-selection', function() {
|
934 |
+
if ($(this).is(':checked')) {
|
935 |
+
$('.wpacu-dom-get-type-info').hide();
|
936 |
+
$('#'+ $(this).attr('data-target')).fadeIn('fast');
|
937 |
+
}
|
938 |
+
});
|
939 |
+
|
940 |
+
// "Manage in the Front-end?" Clicked
|
941 |
+
$(document).on('click', '#wpacu_frontend', function() {
|
942 |
+
if ($(this).prop('checked')) {
|
943 |
+
$('#wpacu-settings-frontend-exceptions').show();
|
944 |
+
} else {
|
945 |
+
$('#wpacu-settings-frontend-exceptions').hide();
|
946 |
+
}
|
947 |
+
});
|
948 |
+
|
949 |
+
// Google Fonts: Load Optimizer (render-blocking or asynchronous)
|
950 |
+
$(document).on('change', '.google_fonts_combine_type', function() {
|
951 |
+
$('.wpacu_google_fonts_combine_type_area').hide();
|
952 |
+
|
953 |
+
if ($(this).val() === 'async') {
|
954 |
+
$('#wpacu_google_fonts_combine_type_async_info_area').fadeIn();
|
955 |
+
} else if ($(this).val() === 'async_preload') {
|
956 |
+
$('#wpacu_google_fonts_combine_type_async_preload_info_area').fadeIn();
|
957 |
+
} else {
|
958 |
+
$('#wpacu_google_fonts_combine_type_rb_info_area').fadeIn();
|
959 |
+
}
|
960 |
+
});
|
961 |
+
|
962 |
+
if ( $('#wpacu-allow-manage-assets-to-select-list-area').length > 0
|
963 |
+
&& ( ! $('#wpacu-allow-manage-assets-to-select-list-area').hasClass('wpacu_hide') ) ) {
|
964 |
+
setTimeout(function() { jQuery('#wpacu-allow-manage-assets-to-select-list').chosen(); }, 200);
|
965 |
+
}
|
966 |
+
|
967 |
+
$('#wpacu-allow-manage-assets-to-select').on('click change', function() {
|
968 |
+
if ($(this).val() === 'chosen') {
|
969 |
+
$('#wpacu-allow-manage-assets-to-select-list-area').removeClass('wpacu_hide');
|
970 |
+
setTimeout(function() { jQuery('#wpacu-allow-manage-assets-to-select-list').chosen(); }, 200);
|
971 |
+
} else {
|
972 |
+
$('#wpacu-allow-manage-assets-to-select-list-area').addClass('wpacu_hide');
|
973 |
+
}
|
974 |
+
});
|
975 |
+
|
976 |
+
$('#wpacu_assets_list_layout').on('click change', function() {
|
977 |
+
if ($(this).val() === 'by-location') {
|
978 |
+
$('#wpacu-assets-list-by-location-selected').fadeIn('fast');
|
979 |
+
} else {
|
980 |
+
$('#wpacu-assets-list-by-location-selected').fadeOut('fast');
|
981 |
+
}
|
982 |
+
});
|
983 |
+
|
984 |
+
$('#wpacu_disable_jquery_migrate').on('click', function() {
|
985 |
+
// It was checked and the user unchecked it
|
986 |
+
if (! $(this).is(':checked')) {
|
987 |
+
return true;
|
988 |
+
}
|
989 |
+
|
990 |
+
// It was unchecked and the user checked it, needs confirmation
|
991 |
+
// Otherwise, it would be reversed as not checked
|
992 |
+
if ($(this).is(':checked') && confirm(wpacu_object.jquery_migration_disable_confirm_msg)) {
|
993 |
+
return true;
|
994 |
+
} else {
|
995 |
+
// Not confirmed?
|
996 |
+
$(this).prop('checked', false);
|
997 |
+
return false;
|
998 |
+
}
|
999 |
+
});
|
1000 |
+
|
1001 |
+
$('#wpacu_disable_comment_reply').on('click', function() {
|
1002 |
+
// It was checked and the user unchecked it
|
1003 |
+
if (! $(this).is(':checked')) {
|
1004 |
+
return true;
|
1005 |
+
}
|
1006 |
+
|
1007 |
+
// It was unchecked and the user checked it, needs confirmation
|
1008 |
+
// Otherwise, it would be reversed as not checked
|
1009 |
+
if ($(this).is(':checked') && confirm(wpacu_object.comment_reply_disable_confirm_msg)) {
|
1010 |
+
return true;
|
1011 |
+
} else {
|
1012 |
+
// Not confirmed?
|
1013 |
+
$(this).prop('checked', false);
|
1014 |
+
return false;
|
1015 |
+
}
|
1016 |
+
});
|
1017 |
+
|
1018 |
+
// "Settings" - When an option is enabled/disabled
|
1019 |
+
$('[data-target-opacity]').on('click change tick', function() {
|
1020 |
+
if ($(this).prop('checked')) {
|
1021 |
+
$('#'+ $(this).attr('data-target-opacity')).css({'opacity':1});
|
1022 |
+
} else {
|
1023 |
+
$('#'+ $(this).attr('data-target-opacity')).css({'opacity':0.4});
|
1024 |
+
}
|
1025 |
+
});
|
1026 |
+
|
1027 |
+
$('#wpacu-show-assets-meta-box-checkbox').on('click change', function() {
|
1028 |
+
if ($(this).prop('checked')) {
|
1029 |
+
$('#wpacu-show-assets-enabled-area').show();
|
1030 |
+
$('#wpacu-show-assets-disabled-area').hide();
|
1031 |
+
} else {
|
1032 |
+
$('#wpacu-show-assets-enabled-area').hide();
|
1033 |
+
$('#wpacu-show-assets-disabled-area').show();
|
1034 |
+
}
|
1035 |
+
});
|
1036 |
+
|
1037 |
+
// "Combine JS Files" - "Select a combination method:"
|
1038 |
+
$(document).on('change', '.wpacu-combine-loaded-js-level', function() {
|
1039 |
+
if ($(this).is(':checked')) {
|
1040 |
+
$('.wpacu_combine_loaded_js_level_area').removeClass('wpacu_active');
|
1041 |
+
$('#'+ $(this).attr('data-target')).addClass('wpacu_active');
|
1042 |
+
}
|
1043 |
+
});
|
1044 |
+
|
1045 |
+
// Submit button (Dashboard) is clicked
|
1046 |
+
var $settingSubmitBtn = $('#wpacu-update-button-area input[type="submit"]');
|
1047 |
+
|
1048 |
+
// Show the loading spinner
|
1049 |
+
$(document).on('submit', '#wpacu-settings-form, .wpacu-settings-form', function() {
|
1050 |
+
$settingSubmitBtn.attr('disabled', true);
|
1051 |
+
$('#wpacu-updating-settings').addClass('wpacu-show').removeClass('wpacu-hide');
|
1052 |
+
});
|
1053 |
+
|
1054 |
+
// Once the form is submitted, disable the submit button to prevent any double submission
|
1055 |
+
// Settings & Homepage Buttons
|
1056 |
+
$(document).on('submit', 'form#wpacu-settings-form, form#wpacu_dash_assets_manager_form', function() {
|
1057 |
+
$settingSubmitBtn.attr('disabled', true);
|
1058 |
+
$('#wpacu-updating-settings').show();
|
1059 |
+
return true;
|
1060 |
+
});
|
1061 |
+
},
|
1062 |
+
|
1063 |
+
tabOpenSettingsArea: function(evt, settingName) {
|
1064 |
+
/*
|
1065 |
+
* Only relevant in the "Settings" area
|
1066 |
+
*/
|
1067 |
+
evt.preventDefault();
|
1068 |
+
|
1069 |
+
var i, wpacuVerticalTabContent, wpacuVerticalTabLinks;
|
1070 |
+
|
1071 |
+
wpacuVerticalTabContent = document.getElementsByClassName("wpacu-settings-tab-content");
|
1072 |
+
|
1073 |
+
for (i = 0; i < wpacuVerticalTabContent.length; i++) {
|
1074 |
+
wpacuVerticalTabContent[i].style.display = "none";
|
1075 |
+
}
|
1076 |
+
|
1077 |
+
wpacuVerticalTabLinks = document.getElementsByClassName("wpacu-settings-tab-link");
|
1078 |
+
|
1079 |
+
for (i = 0; i < wpacuVerticalTabLinks.length; i++) {
|
1080 |
+
wpacuVerticalTabLinks[i].className = wpacuVerticalTabLinks[i].className.replace(" active", "");
|
1081 |
+
}
|
1082 |
+
|
1083 |
+
document.getElementById(settingName).style.display = "table-cell";
|
1084 |
+
|
1085 |
+
$('a[href="#'+ settingName +'"]').addClass('active');
|
1086 |
+
$('#wpacu-selected-tab-area').val(settingName);
|
1087 |
+
|
1088 |
+
},
|
1089 |
+
}
|
1090 |
+
}
|
1091 |
+
$.fn.wpAssetCleanUpSettingsArea().actions();
|
1092 |
+
/*
|
1093 |
+
* [END] "Settings" (menu)
|
1094 |
+
*/
|
1095 |
+
|
1096 |
+
/*
|
1097 |
+
* [START] "Tools" (menu)
|
1098 |
+
*/
|
1099 |
+
$.fn.wpAssetCleanUpToolsArea = function() {
|
1100 |
+
return {
|
1101 |
+
actions: function () {
|
1102 |
+
/*
|
1103 |
+
* "Tools" -> "Reset"
|
1104 |
+
*/
|
1105 |
+
var wpacuResetDdSelector = '#wpacu-reset-drop-down', $wpacuOptionSelected, wpacuMsgToShow;
|
1106 |
+
|
1107 |
+
$(wpacuResetDdSelector).on('change keyup keydown mouseup mousedown click', function() {
|
1108 |
+
if ($(this).val() === '') {
|
1109 |
+
$('#wpacu-warning-read').removeClass('wpacu-visible');
|
1110 |
+
$('#wpacu-reset-submit-btn').attr('disabled', 'disabled')
|
1111 |
+
.removeClass('button-primary')
|
1112 |
+
.addClass('button-secondary');
|
1113 |
+
} else {
|
1114 |
+
if ($(this).val() === 'reset_everything') {
|
1115 |
+
$('#wpacu-license-data-remove-area, #wpacu-cache-assets-remove-area').addClass('wpacu-visible');
|
1116 |
+
} else {
|
1117 |
+
$('#wpacu-license-data-remove-area, #wpacu-cache-assets-remove-area').removeClass('wpacu-visible');
|
1118 |
+
}
|
1119 |
+
|
1120 |
+
$('#wpacu-warning-read').addClass('wpacu-visible');
|
1121 |
+
$('#wpacu-reset-submit-btn').removeAttr('disabled')
|
1122 |
+
.removeClass('button-secondary')
|
1123 |
+
.addClass('button-primary');
|
1124 |
+
}
|
1125 |
+
|
1126 |
+
$('.wpacu-tools-area .wpacu-warning').hide();
|
1127 |
+
|
1128 |
+
$wpacuOptionSelected = $(this).find('option:selected');
|
1129 |
+
$('#'+ $wpacuOptionSelected.attr('data-id')).show();
|
1130 |
+
});
|
1131 |
+
|
1132 |
+
$('#wpacu-reset-submit-btn').on('click', function() {
|
1133 |
+
if ($(wpacuResetDdSelector).val() === 'reset_settings') {
|
1134 |
+
wpacuMsgToShow = wpacu_object.reset_settings_confirm_msg;
|
1135 |
+
} else if ($(wpacuResetDdSelector).val() === 'reset_critical_css') {
|
1136 |
+
wpacuMsgToShow = wpacu_object.reset_critical_css_confirm_msg;
|
1137 |
+
} else if ($(wpacuResetDdSelector).val() === 'reset_everything_except_settings') {
|
1138 |
+
wpacuMsgToShow = wpacu_object.reset_everything_except_settings_confirm_msg;
|
1139 |
+
} else if ($(wpacuResetDdSelector).val() === 'reset_everything') {
|
1140 |
+
wpacuMsgToShow = wpacu_object.reset_everything_confirm_msg;
|
1141 |
+
}
|
1142 |
+
|
1143 |
+
if (! confirm(wpacuMsgToShow)) {
|
1144 |
+
return false;
|
1145 |
+
}
|
1146 |
+
|
1147 |
+
$('#wpacu-action-confirmed').val('yes');
|
1148 |
+
|
1149 |
+
setTimeout(function() {
|
1150 |
+
if ($('#wpacu-action-confirmed').val() === 'yes') {
|
1151 |
+
$('#wpacu-tools-form').trigger('submit');
|
1152 |
+
}
|
1153 |
+
}, 1000);
|
1154 |
+
});
|
1155 |
+
|
1156 |
+
/*
|
1157 |
+
* "Tools" -> "Import"
|
1158 |
+
*/
|
1159 |
+
$(document).on('submit', '#wpacu-import-form', function() {
|
1160 |
+
if (! confirm(wpacu_object.import_confirm_msg)) {
|
1161 |
+
return false;
|
1162 |
+
}
|
1163 |
+
|
1164 |
+
$(this).find('button').addClass('wpacu-importing').prop('disabled', true);
|
1165 |
+
});
|
1166 |
+
}
|
1167 |
+
}
|
1168 |
+
}
|
1169 |
+
$.fn.wpAssetCleanUpToolsArea().actions();
|
1170 |
+
/*
|
1171 |
+
* [END] "Tools" (menu)
|
1172 |
+
*/
|
1173 |
+
|
1174 |
+
/*
|
1175 |
+
* [START] Front-end CSS/JS Manager
|
1176 |
+
*/
|
1177 |
+
$.fn.wpAssetCleanUpFrontendCssJsManagerArea = function() {
|
1178 |
+
return {
|
1179 |
+
actions: function () {
|
1180 |
+
// "Update" button is clicked within front-end view
|
1181 |
+
var $updateBtnFrontEnd = $('#wpacu-update-front-settings-area .wpacu_update_btn');
|
1182 |
+
|
1183 |
+
// Show the loading spinner
|
1184 |
+
$(document).on('submit', '#wpacu-frontend-form', function() {
|
1185 |
+
$updateBtnFrontEnd.attr('disabled', true).addClass('wpacu_submitting');
|
1186 |
+
$('#wpacu-updating-front-settings').show();
|
1187 |
+
return true;
|
1188 |
+
});
|
1189 |
+
|
1190 |
+
// Asset Front-end Edit (if setting is enabled)
|
1191 |
+
if ($('#wpacu_wrap_assets').length > 0) {
|
1192 |
+
setTimeout(function () {
|
1193 |
+
$.fn.wpAssetCleanUp().cssJsManagerActions();
|
1194 |
+
}, 200);
|
1195 |
+
}
|
1196 |
+
|
1197 |
+
// The code below is for the pages loaded in the front-end view
|
1198 |
+
// Fetch hardcoded assets
|
1199 |
+
if ($('#wpacu-assets-collapsible-wrap-hardcoded-list').length > 0) {
|
1200 |
+
var dataFetchHardcodedList = {};
|
1201 |
+
dataFetchHardcodedList[wpacu_object.plugin_prefix + '_load'] = 1;
|
1202 |
+
dataFetchHardcodedList[wpacu_object.plugin_prefix + '_time_r'] = new Date().getTime();
|
1203 |
+
dataFetchHardcodedList['wpacu_just_hardcoded'] = 1;
|
1204 |
+
|
1205 |
+
$.ajax({
|
1206 |
+
method: 'GET',
|
1207 |
+
url: wpacu_object.page_url,
|
1208 |
+
data: dataFetchHardcodedList,
|
1209 |
+
cache: false,
|
1210 |
+
complete: function (xhr, textStatus) {
|
1211 |
+
//console.log(xhr);
|
1212 |
+
if (xhr.statusText === 'error') {
|
1213 |
+
$.fn.wpAssetCleanUp().wpacuParseResultsForHarcodedAssets(xhr.responseText);
|
1214 |
+
}
|
1215 |
+
}
|
1216 |
+
}).done(function (contents) {
|
1217 |
+
$.fn.wpAssetCleanUp().wpacuParseResultsForHarcodedAssets(contents);
|
1218 |
+
});
|
1219 |
+
}
|
1220 |
+
}
|
1221 |
+
}
|
1222 |
+
}
|
1223 |
+
$.fn.wpAssetCleanUpFrontendCssJsManagerArea().actions();
|
1224 |
+
/*
|
1225 |
+
* [END] Front-end CSS/JS Manager
|
1226 |
+
*/
|
1227 |
+
|
1228 |
+
/*
|
1229 |
+
* [START] Dashboard CSS/JS Manager
|
1230 |
+
*/
|
1231 |
+
$.fn.wpAssetCleanUpDashboardCssJsManagerArea = function() {
|
1232 |
+
return {
|
1233 |
+
actions: function () {
|
1234 |
+
// Option #1: Fetch the assets automatically and show the list (Default) is chosen
|
1235 |
+
// Or "Homepage" from "CSS & JavaScript Load Manager" is loaded
|
1236 |
+
if (wpacu_object.list_show_status === 'default' || wpacu_object.list_show_status === '' || wpacu_object.override_assets_list_load) {
|
1237 |
+
$.fn.wpAssetCleanUp().wpacuAjaxGetAssetsArea(false);
|
1238 |
+
}
|
1239 |
+
|
1240 |
+
// Option #2: Fetch the assets on button click
|
1241 |
+
// This takes effect only when edit post/page is used - e.g. /wp-admin/post.php?post=[post_id_here]&action=edit
|
1242 |
+
if (wpacu_object.list_show_status === 'fetch_on_click') {
|
1243 |
+
$(document).on('click', '#wpacu_ajax_fetch_on_click_btn', function(e) {
|
1244 |
+
e.preventDefault();
|
1245 |
+
$(this).hide(); // Hide the button
|
1246 |
+
$('#wpacu_fetching_assets_list_wrap').show(); // Show the loading information
|
1247 |
+
$.fn.wpAssetCleanUp().wpacuAjaxGetAssetsArea(true); // Fetch the assets list
|
1248 |
+
});
|
1249 |
+
}
|
1250 |
+
|
1251 |
+
// Better compatibility with WordPress 5.0 as edit post/page is not refreshed after update
|
1252 |
+
// Asset CleanUp meta box's content is refreshed to show the latest changes as if the page was refreshed
|
1253 |
+
// This takes effect only when edit post/page is used and Gutenberg editor is used - e.g. /wp-admin/post.php?post=[post_id_here]&action=edit
|
1254 |
+
$(document).on('click', '.wp-admin.post-php .edit-post-header__settings button.is-primary', function () {
|
1255 |
+
$.fn.wpAssetCleanUp().limitSubmittedFields();
|
1256 |
+
|
1257 |
+
var $thisUpdateBtn = $(this);
|
1258 |
+
|
1259 |
+
// Wait until triggering it around half a second after the "Update" button is clicked
|
1260 |
+
setTimeout(function() {
|
1261 |
+
var wpacuIntervalUpdateAction = function () {
|
1262 |
+
// If it's in the updating status, don't do anything
|
1263 |
+
if ($thisUpdateBtn.attr('aria-disabled') === 'true' || $('#editor').hasClass('is-validating')) {
|
1264 |
+
return;
|
1265 |
+
}
|
1266 |
+
|
1267 |
+
// If the button "Fetch CSS & JavaScript Management List" is there, stop here as the list shouldn't be loaded
|
1268 |
+
// since the admin didn't use the button in the first place
|
1269 |
+
if ($('#wpacu_ajax_fetch_on_click_btn').length > 0) {
|
1270 |
+
return;
|
1271 |
+
}
|
1272 |
+
|
1273 |
+
// Updating status is over. Reload the CSS/JS manager which would show the new list
|
1274 |
+
// (e.g. a site-wide rule could be applied, and it needs to show the removing "radio input" option)
|
1275 |
+
if ($('.edit-post-header__settings .is-saving').length === 0) {
|
1276 |
+
var wpacuMetaBoxContentTarget = '#wpacu_meta_box_content';
|
1277 |
+
|
1278 |
+
if ($(wpacuMetaBoxContentTarget).length > 0) {
|
1279 |
+
$('#wpacu-assets-reloading').remove();
|
1280 |
+
var wpacuAppendToPostWhileUpdating = '<span id="wpacu-assets-reloading" class="editor-post-saved-state is-wpacu-reloading">' + wpacu_object.reload_icon + wpacu_object.reload_msg + '</span>';
|
1281 |
+
$('.wp-admin.post-php .edit-post-header__settings').prepend(wpacuAppendToPostWhileUpdating);
|
1282 |
+
|
1283 |
+
$('.wpacu_asset_row, .wpacu-page-options .wpacu-assets-collapsible-content').addClass('wpacu-loading'); // show loading spinner once "Update" is clicked
|
1284 |
+
|
1285 |
+
$.fn.wpAssetCleanUp().wpacuAjaxGetAssetsArea(true);
|
1286 |
+
$.fn.wpAssetCleanUpClearCache().wpacuAjaxClearCache();
|
1287 |
+
|
1288 |
+
// Finally, after the list is fetched and the caching is cleared,
|
1289 |
+
// do not keep checking any "saving" status as all the needed actions have been taken
|
1290 |
+
clearInterval(wpacuUpdateIntervalId);
|
1291 |
+
}
|
1292 |
+
}
|
1293 |
+
};
|
1294 |
+
|
1295 |
+
var wpacuUpdateIntervalId = setInterval(wpacuIntervalUpdateAction, 900);
|
1296 |
+
}, 500);
|
1297 |
+
});
|
1298 |
+
}
|
1299 |
+
}
|
1300 |
+
}
|
1301 |
+
$.fn.wpAssetCleanUpDashboardCssJsManagerArea().actions();
|
1302 |
+
/*
|
1303 |
+
* [END] Dashboard CSS/JS Manager
|
1304 |
+
*/
|
1305 |
+
|
1306 |
+
/*
|
1307 |
+
* [START] Common CSS/JS Manager (Dashboard & Front-end)
|
1308 |
+
*/
|
1309 |
+
$.fn.wpAssetCleanUpCommonCssJsManagerArea = function() {
|
1310 |
+
return {
|
1311 |
+
actions: function () {
|
1312 |
+
// Mark specific inputs as disabled if they are not needed to further reduce the total PHP inputs
|
1313 |
+
// if "max_input_vars" from php.ini is not set high enough
|
1314 |
+
$(document).on('submit', 'form#wpacu-frontend-form, form#wpacu_dash_assets_manager_form, body.wp-admin form#post, body.wp-admin #edittag', function() {
|
1315 |
+
return $.fn.wpAssetCleanUp().limitSubmittedFields();
|
1316 |
+
});
|
1317 |
+
|
1318 |
+
// Source (updated)
|
1319 |
+
$(document).on('click', '.wpacu-filter-handle', function(event) {
|
1320 |
+
alert($(this).attr('data-wpacu-filter-handle-message'));
|
1321 |
+
event.preventDefault();
|
1322 |
+
});
|
1323 |
+
|
1324 |
+
// "Contract All Groups"
|
1325 |
+
$(document).on('click', '#wpacu-assets-contract-all', function() {
|
1326 |
+
$(this).prop('disabled', true); // avoid multiple clicks and AJAX calls
|
1327 |
+
$.fn.wpAssetCleanUp().wpacuAjaxUpdateKeepTheGroupsState('contracted', $(this).attr('id'));
|
1328 |
+
});
|
1329 |
+
|
1330 |
+
// "Expand All Groups"
|
1331 |
+
$(document).on('click', '#wpacu-assets-expand-all', function() {
|
1332 |
+
$(this).prop('disabled', true); // avoid multiple clicks and AJAX calls
|
1333 |
+
$.fn.wpAssetCleanUp().wpacuAjaxUpdateKeepTheGroupsState('expanded', $(this).attr('id'));
|
1334 |
+
});
|
1335 |
+
}
|
1336 |
+
}
|
1337 |
+
}
|
1338 |
+
$.fn.wpAssetCleanUpCommonCssJsManagerArea().actions();
|
1339 |
+
/*
|
1340 |
+
* [END] Common CSS/JS Manager (Dashboard & Front-end)
|
1341 |
+
*/
|
1342 |
+
|
1343 |
+
$.fn.wpAssetCleanUpClearCache = function() {
|
1344 |
+
return {
|
1345 |
+
init: function() {
|
1346 |
+
// The assets of a page just had rules applied (e.g. assets were unloaded)
|
1347 |
+
if (wpacu_object.clear_cache_on_page_load !== '') {
|
1348 |
+
$.fn.wpAssetCleanUpClearCache().wpacuAjaxClearCache();
|
1349 |
+
}
|
1350 |
+
|
1351 |
+
if (wpacu_object.clear_other_caches !== '') {
|
1352 |
+
setTimeout(function () {
|
1353 |
+
$.fn.wpAssetCleanUpClearCache().wpacuClearAutoptimizeCache(); // Autoptimize (if active)
|
1354 |
+
}, 150);
|
1355 |
+
}
|
1356 |
+
},
|
1357 |
+
|
1358 |
+
afterSubmit: function () {
|
1359 |
+
try {
|
1360 |
+
var httpRefererFieldTargetName = 'input[type="hidden"][name="_wp_http_referer"]',
|
1361 |
+
wpacuHttpRefererFieldVal;
|
1362 |
+
|
1363 |
+
if ($(httpRefererFieldTargetName).length > 0) {
|
1364 |
+
wpacuHttpRefererFieldVal = $(httpRefererFieldTargetName).val();
|
1365 |
+
|
1366 |
+
// Edit Taxonomy page (after submit)
|
1367 |
+
if (wpacuHttpRefererFieldVal.includes('term.php?taxonomy=') && wpacuHttpRefererFieldVal.includes('message=')) {
|
1368 |
+
$.fn.wpAssetCleanUpClearCache().wpacuAjaxClearCache();
|
1369 |
+
}
|
1370 |
+
|
1371 |
+
// Edit (Post/Page/Custom Post type) page (after submit)
|
1372 |
+
if (wpacuHttpRefererFieldVal.includes('post.php?post=') && wpacuHttpRefererFieldVal.includes('message=')) {
|
1373 |
+
$.fn.wpAssetCleanUpClearCache().wpacuAjaxClearCache();
|
1374 |
+
}
|
1375 |
+
}
|
1376 |
+
} catch (e) {
|
1377 |
+
console.log(e);
|
1378 |
+
}
|
1379 |
+
},
|
1380 |
+
|
1381 |
+
wpacuAjaxClearCache: function() {
|
1382 |
+
/**
|
1383 |
+
* Called after a post/page is saved (WordPress AJAX call)
|
1384 |
+
*/
|
1385 |
+
if (typeof wpacu_object.wpacu_ajax_preload_url_nonce === 'undefined') {
|
1386 |
+
return;
|
1387 |
+
}
|
1388 |
+
|
1389 |
+
// Is the post status a "draft" one? Do not do any cache clearing and preloading as it's useless
|
1390 |
+
var $wpacuHiddenPostStatusEl = '#hidden_post_status';
|
1391 |
+
if ($($wpacuHiddenPostStatusEl).length > 0 && $($wpacuHiddenPostStatusEl).val() === 'draft') {
|
1392 |
+
return;
|
1393 |
+
}
|
1394 |
+
|
1395 |
+
$.post(wpacu_object.ajax_url, {
|
1396 |
+
'action' : wpacu_object.plugin_prefix + '_clear_cache',
|
1397 |
+
'time_r' : new Date().getTime(),
|
1398 |
+
'wpacu_nonce' : wpacu_object.wpacu_ajax_clear_cache_nonce
|
1399 |
+
}, function (response) {
|
1400 |
+
setTimeout(function() {
|
1401 |
+
$.fn.wpAssetCleanUpClearCache().wpacuClearAutoptimizeCache(); // Autoptimize (if active)
|
1402 |
+
|
1403 |
+
if (wpacu_object.is_frontend_view) {
|
1404 |
+
// Preload (for the guest)
|
1405 |
+
// The preload for the admin is not needed as the user is managing the CSS/JS in the front-end view and the page has been already visited
|
1406 |
+
$.post(wpacu_object.ajax_url, {
|
1407 |
+
'action': wpacu_object.plugin_prefix + '_preload',
|
1408 |
+
'page_url': wpacu_object.page_url,
|
1409 |
+
'wpacu_nonce': wpacu_object.wpacu_ajax_preload_url_nonce,
|
1410 |
+
'time_r': new Date().getTime()
|
1411 |
+
});
|
1412 |
+
} else {
|
1413 |
+
// Preload (for the admin)
|
1414 |
+
$.get(wpacu_object.page_url, {
|
1415 |
+
'wpacu_preload': 1,
|
1416 |
+
'wpacu_no_frontend_show': 1,
|
1417 |
+
'time_r': new Date().getTime()
|
1418 |
+
}, function () {
|
1419 |
+
// Then, preload (for the guest)
|
1420 |
+
$.post(wpacu_object.ajax_url, {
|
1421 |
+
'action': wpacu_object.plugin_prefix + '_preload',
|
1422 |
+
'page_url': wpacu_object.page_url,
|
1423 |
+
'wpacu_nonce': wpacu_object.wpacu_ajax_preload_url_nonce,
|
1424 |
+
'time_r': new Date().getTime()
|
1425 |
+
});
|
1426 |
+
});
|
1427 |
+
}
|
1428 |
+
}, 150);
|
1429 |
+
});
|
1430 |
+
},
|
1431 |
+
|
1432 |
+
wpacuClearAutoptimizeCache: function() {
|
1433 |
+
if (wpacu_object.clear_autoptimize_cache == 'false') {
|
1434 |
+
console.log(wpacu_object.plugin_title + ': Autoptimize cache clearing is deactivated via "WPACU_DO_NOT_ALSO_CLEAR_AUTOPTIMIZE_CACHE" constant.');
|
1435 |
+
return;
|
1436 |
+
}
|
1437 |
+
|
1438 |
+
var wpacuAutoptimizeClickEl = '#wp-admin-bar-autoptimize-default li';
|
1439 |
+
|
1440 |
+
// Autoptimize elements & variables: make sure they are all initialized
|
1441 |
+
if ($(wpacuAutoptimizeClickEl).length > 0
|
1442 |
+
&& typeof autoptimize_ajax_object.ajaxurl !== 'undefined'
|
1443 |
+
&& typeof autoptimize_ajax_object.nonce !== 'undefined') {
|
1444 |
+
$.ajax({
|
1445 |
+
type : 'GET',
|
1446 |
+
url : autoptimize_ajax_object.ajaxurl,
|
1447 |
+
data : {'action' : 'autoptimize_delete_cache', 'nonce' : autoptimize_ajax_object.nonce},
|
1448 |
+
dataType : 'json',
|
1449 |
+
cache : false,
|
1450 |
+
timeout : 9000,
|
1451 |
+
success : function( cleared ) {},
|
1452 |
+
error : function( jqXHR, textStatus ) {}
|
1453 |
+
});
|
1454 |
+
}
|
1455 |
+
},
|
1456 |
+
}
|
1457 |
+
}
|
1458 |
+
$.fn.wpAssetCleanUpClearCache().init();
|
1459 |
+
|
1460 |
+
$.fn.wpAssetCleanUp().wpacuTriggerAdjustTextAreaHeightAllTextareas();
|
1461 |
+
|
1462 |
+
/*
|
1463 |
+
* [START] Bulk Changes
|
1464 |
+
*/
|
1465 |
+
$.fn.wpAssetCleanUpBulkChangesArea = function() {
|
1466 |
+
return {
|
1467 |
+
actions: function() {
|
1468 |
+
// Items are marked for removal from the unload list
|
1469 |
+
// from either "Everywhere" or "Post Type"
|
1470 |
+
$(document).on('click', '.wpacu_bulk_rule_checkbox, .wpacu_remove_preload', function() {
|
1471 |
+
var $wpacuBulkChangeRow = $(this).parents('.wpacu_bulk_change_row');
|
1472 |
+
|
1473 |
+
if ($(this).prop('checked')) {
|
1474 |
+
$wpacuBulkChangeRow.addClass('wpacu_selected');
|
1475 |
+
} else {
|
1476 |
+
$wpacuBulkChangeRow.removeClass('wpacu_selected');
|
1477 |
+
}
|
1478 |
+
});
|
1479 |
+
|
1480 |
+
$(document).on('change', '#wpacu_post_type_select', function() {
|
1481 |
+
$('#wpacu_post_type_form').trigger('submit');
|
1482 |
+
});
|
1483 |
+
}
|
1484 |
+
}
|
1485 |
+
}
|
1486 |
+
$.fn.wpAssetCleanUpBulkChangesArea().actions();
|
1487 |
+
/*
|
1488 |
+
* [END] Bulk Changes
|
1489 |
+
*/
|
1490 |
+
});
|
1491 |
+
|
1492 |
+
(function($){
|
1493 |
+
$(window).on('load', function() {
|
1494 |
+
$.fn.wpAssetCleanUp().wpacuCheckSourcesFor404Errors();
|
1495 |
+
});
|
1496 |
+
})(jQuery);
|
1497 |
+
//
|
1498 |
+
// [END] Core file
|
1499 |
+
//
|
assets/script.min.js
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
-
function
|
2 |
-
jQuery('a[href="#'+b+'"]').addClass("active"),jQuery("#wpacu-selected-tab-area").val(b)}function wpacuCheckSourcesFor404Errors(){var a=jQuery("[data-wpacu-external-source]");if(!(a.length<1)){var b=a.length,c="";a.each(function(a){var d=jQuery(this),e=d.attr("data-wpacu-external-source");c+=e+"-at-wpacu-at-",a===b-1&&jQuery.post(wpacu_object.ajax_url,{action:wpacu_object.plugin_id+"_check_external_urls_for_status_code",wpacu_check_urls:c,wpacu_nonce:wpacu_object.wpacu_ajax_check_external_urls_nonce},function(a){var b=jQuery.parseJSON(a);jQuery.each(b,function(a,b){jQuery('[data-wpacu-external-source="'+b+'"]').css({color:"#cc0000"}).parent("div").find("[data-wpacu-external-source-status]").html('<small>* <em style="font-weight: 600;">'+wpacu_object.source_load_error_msg+"</em></small>")})})})}}function wpacuBytesToSize(a){return 0===a?"N/A":(a/1024).toFixed(4)+" KB"}function wpacuAjaxClearCache(){if(void 0!==wpacu_object.wpacu_ajax_preload_url_nonce){jQuery("#hidden_post_status").length>0&&"draft"===jQuery("#hidden_post_status").val()||jQuery.post(wpacu_object.ajax_url,{action:wpacu_object.plugin_id+"_clear_cache",time_r:(new Date).getTime(),wpacu_nonce:wpacu_object.wpacu_ajax_clear_cache_nonce},function(a){setTimeout(function(){wpacuClearAutoptimizeCache(),wpacu_object.is_frontend_view?jQuery.post(wpacu_object.ajax_url,{action:wpacu_object.plugin_id+"_preload",page_url:wpacu_object.page_url,wpacu_nonce:wpacu_object.wpacu_ajax_preload_url_nonce,time_r:(new Date).getTime()}):jQuery.get(wpacu_object.page_url,{wpacu_preload:1,wpacu_no_frontend_show:1,time_r:(new Date).getTime()},function(){jQuery.post(wpacu_object.ajax_url,{action:wpacu_object.plugin_id+"_preload",page_url:wpacu_object.page_url,wpacu_nonce:wpacu_object.wpacu_ajax_preload_url_nonce,time_r:(new Date).getTime()})})},150)})}}function wpacuClearAutoptimizeCache(){if("false"==wpacu_object.clear_autoptimize_cache)return void console.log(wpacu_object.plugin_title+': Autoptimize cache clearing is deactivated via "WPACU_DO_NOT_ALSO_CLEAR_AUTOPTIMIZE_CACHE" constant.');jQuery("#wp-admin-bar-autoptimize-default li").length>0&&void 0!==autoptimize_ajax_object.ajaxurl&&void 0!==autoptimize_ajax_object.nonce&&jQuery.ajax({type:"GET",url:autoptimize_ajax_object.ajaxurl,data:{action:"autoptimize_delete_cache",nonce:autoptimize_ajax_object.nonce},dataType:"json",cache:!1,timeout:9e3,success:function(a){},error:function(a,b){}})}function wpacuAjaxUpdateKeepTheGroupsState(a,b){if(jQuery("#wpacu-assets-groups-change-state-area").attr("data-wpacu-groups-current-state")==a)return void jQuery("#"+b).prop("disabled",!1);var c={action:wpacu_object.plugin_name+"_update_settings",wpacu_nonce:wpacu_object.wpacu_update_specific_settings_nonce,wpacu_update_keep_the_groups:"yes",wpacu_keep_the_groups_state:a,time_r:(new Date).getTime()};try{jQuery.post(wpacu_object.ajax_url,c,function(c){"done"==c&&jQuery("#wpacu-assets-groups-change-state-area").attr("data-wpacu-groups-current-state",a),jQuery("#"+b).prop("disabled",!1)})}catch(a){jQuery("#"+b).prop("disabled",!1)}}function wpacuAjaxUpdateKeepTheAssetRowState(a,b,c,d){var e={action:wpacu_object.plugin_name+"_update_asset_row_state",wpacu_update_asset_row_state:"yes",wpacu_asset_row_state:a,wpacu_handle:b,wpacu_handle_for:c,time_r:(new Date).getTime(),wpacu_nonce:wpacu_object.wpacu_update_asset_row_state_nonce};d.addClass("wpacu_hide"),jQuery.post(wpacu_object.ajax_url,e,function(a){d.removeClass("wpacu_hide"),console.log(a)})}function wpacuAjaxLoadAllSetTermsForPostType(a,b){var c="unload";a.hasClass("wpacu_load_via_tax_dd")&&(c="load_exception");var d={action:wpacu_object.plugin_name+"_load_all_set_terms_for_post_type",wpacu_post_type:wpacu_object.current_post_type,wpacu_handle:a.attr("data-handle"),wpacu_asset_type:a.attr("data-handle-for"),wpacu_for:c,time_r:(new Date).getTime(),wpacu_nonce:wpacu_object.wpacu_ajax_get_post_type_terms_nonce};jQuery.post(wpacu_object.ajax_url,d,function(c){console.log(c),a.html(c),setTimeout(function(){jQuery(a).chosen({width:"100%"}),a.parent().parent().next("div[data-wpacu-tax-terms-options-loader]").hide(),a.prop("disabled",!1).focus().removeClass("wpacu_disabled"),b.find(".wpacu_handle_manage_via_tax_input_wrap").removeClass("wpacu_hide"),a.trigger("chosen:open")},200)})}function wpacuTriggerChosenForTaxDd(a){a(".wpacu_chosen_select").length>0&&void 0!==a.fn.chosen&&(a(".wpacu_chosen_select.wpacu_manage_via_tax_dd").chosen({width:"100%"}),a(".wpacu_chosen_select:not(.wpacu_manage_via_tax_dd)").chosen())}function wpacuAdjustTextareaHeight(a,b){var c=parseInt(window.getComputedStyle(a).height,10),d=c-a.clientHeight;a.style.height=0,a.style.height=Math.max(b,a.scrollHeight+d)+"px"}""!==wpacu_object.clear_cache_on_page_load&&wpacuAjaxClearCache(),""!==wpacu_object.clear_other_caches&&setTimeout(function(){wpacuClearAutoptimizeCache()},150),jQuery(document).ready(function(a){function b(b){b.lastIndexOf(wpacu_object.start_del_h)<0||b.lastIndexOf(wpacu_object.end_del_h);var c=b.substring(b.lastIndexOf(wpacu_object.start_del_h)+wpacu_object.start_del_h.length,b.lastIndexOf(wpacu_object.end_del_h)),d=a("#wpacu-assets-collapsible-wrap-hardcoded-list").attr("data-wpacu-settings-frontend"),f={action:wpacu_object.plugin_name+"_print_loaded_hardcoded_assets",wpacu_list_h:c,wpacu_settings:d,time_r:(new Date).getTime(),wpacu_nonce:wpacu_object.wpacu_print_loaded_hardcoded_assets_nonce};a.post(wpacu_object.ajax_url,f,function(b){var c="#wpacu-assets-collapsible-wrap-hardcoded-list";if(b){if(b.includes("The security nonce is not valid"))return void a(c).find("> .wpacu-assets-collapsible-content").html(b);var d=JSON.parse(b);a(c).find("> .wpacu-assets-collapsible-content").html(d.output),a(c).find("a.wpacu-assets-collapsible").append(" ➝ Total: "+parseInt(d.total_hardcoded_assets)),wpacuTriggerChosenForTaxDd(a),e.triggerForHardcodedAssets()}})}function c(b){if(!b&&!a("#wpacu_ajax_fetch_assets_list_dashboard_view").length)return!1;if(a("#wpacu_page_options_no_wpacu_load").length>0&&a("#wpacu_page_options_no_wpacu_load").prop("checked")){var c={action:wpacu_object.plugin_name+"_load_page_restricted_area",post_id:wpacu_object.post_id,time_r:(new Date).getTime(),wpacu_nonce:wpacu_object.wpacu_ajax_load_page_restricted_area_nonce};return void a.post(wpacu_object.ajax_url,c,function(b){if(!b)return!1;a("#wpacu_meta_box_content").html(b),a(".wpacu_asset_row, .wpacu-page-options .wpacu-assets-collapsible-content").removeClass("wpacu-loading"),a("#wpacu-assets-reloading").remove()})}var f={};if("direct"===wpacu_object.dom_get_type)f[wpacu_object.plugin_name+"_load"]=1,f[wpacu_object.plugin_name+"_time_r"]=(new Date).getTime(),a.ajax({method:"GET",url:wpacu_object.page_url,data:f,cache:!1,complete:function(b,c){if("error"===b.statusText){if(404===b.status)return void d(b.responseText,b.status);var e=b.responseText.replace(/(<([^>]+)>)/gi,"");try{e=String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}catch(a){console.log(a)}var f=wpacu_object.ajax_direct_fetch_error;f=f.replace(/{wpacu_output}/,e),f=f.replace(/{wpacu_status_code_error}/,b.status),a("#wpacu_meta_box_content").html(f)}}}).done(function(b,c,e){a("#wpacu-fetch-list-step-1-wrap").addClass("wpacu-completed"),a("#wpacu-fetch-list-step-1-status").html(a("#wpacu-list-step-completed-status").html()),a("#wpacu-fetch-list-step-2-status").html(a("#wpacu-list-step-default-status").html()),d(b)});else if("wp_remote_post"===wpacu_object.dom_get_type){var g={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,wpacu_taxonomy:wpacu_object.wpacu_taxonomy,time_r:(new Date).getTime(),force_manage_dash:wpacu_object.force_manage_dash,wpacu_nonce:wpacu_object.wpacu_ajax_get_loaded_assets_nonce};a.post(wpacu_object.ajax_url,g,function(b){if(!b)return!1;a("#wpacu_meta_box_content").html(b),a("#wpacu_dash_assets_manager_form").length>0&&a("#submit").show(),setTimeout(function(){e.load(),setTimeout(function(){wpacuTriggerChosenForTaxDd(a),wpacuCheckSourcesFor404Errors()},100)},200)})}}function d(b,c){if(b.lastIndexOf(wpacu_object.start_del_e)<0||b.lastIndexOf(wpacu_object.end_del_e)<0||b.lastIndexOf(wpacu_object.start_del_h)<0||b.lastIndexOf(wpacu_object.end_del_h)<0){var d=wpacu_object.ajax_direct_fetch_error_with_success_response;d=d.replace(/{wpacu_output}/,xhr.responseText.replace(/(<([^>]+)>)/gi,""));try{d=String(d).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}catch(a){console.log(a)}return void a("#wpacu_meta_box_content").html(d)}var f=b.substring(b.lastIndexOf(wpacu_object.start_del_e)+wpacu_object.start_del_e.length,b.lastIndexOf(wpacu_object.end_del_e)),g=b.substring(b.lastIndexOf(wpacu_object.start_del_h)+wpacu_object.start_del_h.length,b.lastIndexOf(wpacu_object.end_del_h)),h={action:wpacu_object.plugin_name+"_get_loaded_assets",wpacu_list_e:f,wpacu_list_h:g,post_id:wpacu_object.post_id,page_url:wpacu_object.page_url,tag_id:wpacu_object.tag_id,wpacu_taxonomy:wpacu_object.wpacu_taxonomy,force_manage_dash:wpacu_object.force_manage_dash,time_r:(new Date).getTime(),is_for_singular:!1,wpacu_nonce:wpacu_object.wpacu_ajax_get_loaded_assets_nonce};a("#wpacu_manage_singular_page_assets").length>0&&(h.is_for_singular=!0),a.post(wpacu_object.ajax_url,h,function(b){b&&(a("#wpacu_meta_box_content").html(b),404===c&&a("#wpacu_meta_box_content").prepend('<p><span class="dashicons dashicons-warning"></span> '+wpacu_object.server_returned_404_not_found+"</p><hr />"),a("#wpacu_dash_assets_manager_form").length>0&&a("#submit").show(),setTimeout(function(){e.load(),a(".wpacu_asset_row, .wpacu-page-options .wpacu-assets-collapsible-content").removeClass("wpacu-loading"),a("#wpacu-assets-reloading").remove(),wpacuTriggerChosenForTaxDd(a),wpacuCheckSourcesFor404Errors()},200))})}var e={load:function(){var b,c,d,f=".input-unload-on-this-page.wpacu-not-locked";a(document).on("click change",".input-unload-on-this-page",function(f){if(b=a(this).attr("data-handle"),c=a(this).hasClass("wpacu_unload_rule_for_style")?"style":"script",a(this).prop("checked")){if("click"===f.type&&!e.triggerAlertWhenAnyUnloadRuleIsChosen(b,c))return!1;e.uncheckAllOtherBulkUnloadRules(a(this),!1),e.showHandleLoadExceptionArea(c,b),a(this).closest("tr").addClass("wpacu_not_load")}else a(this).closest("tr").removeClass("wpacu_not_load"),d=a(this).parents(".wpacu_asset_row"),e.hideHandleLoadExceptionArea(d,b,c)}),a(".wpacu-plugin-check-all").on("click",function(b){b.preventDefault();var c=a(this).attr("data-wpacu-plugin");a('table.wpacu_list_by_location[data-wpacu-plugin="'+c+'"]').find(f).prop("checked",!0).closest("tr").addClass("wpacu_not_load")}),a(".wpacu-plugin-uncheck-all").on("click",function(b){b.preventDefault();var c=a(this).attr("data-wpacu-plugin");a('table.wpacu_list_by_location[data-wpacu-plugin="'+c+'"]').find(f).prop("checked",!1).closest("tr").removeClass("wpacu_not_load")}),a(".wpacu-plugin-check-load-all").on("click change",function(b){b.preventDefault();var c=a(this).attr("data-wpacu-plugin"),d=a('table.wpacu_list_by_location[data-wpacu-plugin="'+c+'"]');d.find(".wpacu_load_it_option_one.wpacu_load_exception").prop("checked",!0).closest("tr.wpacu_is_bulk_unloaded").removeClass("wpacu_not_load"),d.find(f).prop("checked",!1).trigger("change")}),a(".wpacu-plugin-uncheck-load-all").on("click change",function(b){b.preventDefault();var c=a(this).attr("data-wpacu-plugin"),d=a('table.wpacu_list_by_location[data-wpacu-plugin="'+c+'"]');d.find(".wpacu_load_it_option_one.wpacu_load_exception").prop("checked",!1).closest("tr.wpacu_is_bulk_unloaded").addClass("wpacu_not_load"),d.find(f).prop("checked",!1).trigger("change")}),a(document).on("click",".wpacu_keep_bulk_rule",function(){a(this).prop("checked")&&a(this).parents("li").next().removeClass("remove_rule")}),a(document).on("click",".wpacu_remove_bulk_rule",function(){a(this).prop("checked")&&a(this).parents("li").addClass("remove_rule")}),a(document).on("click change",".wpacu_bulk_unload",function(f){var g=a(this);b=a(this).attr("data-handle"),c=a(this).attr("data-handle-for"),d=a("[data-"+c+'-handle-row="'+b+'"]');var h=a(this).parents("li");if(a(this).prop("checked")){if("click"===f.type&&!e.triggerAlertWhenAnyUnloadRuleIsChosen(b,c))return!1;if(a(this).hasClass("wpacu_unload_it_regex_checkbox")||a(this).hasClass("wpacu_unload_it_via_tax_checkbox")){if(a(this).hasClass("wpacu_unload_it_regex_checkbox"))h.find("label").addClass("wpacu_unload_checked"),h.find("textarea").prop("disabled",!1).focus().removeClass("wpacu_disabled"),h.find(".wpacu_handle_unload_regex_input_wrap").removeClass("wpacu_hide");else if(a(this).hasClass("wpacu_unload_it_via_tax_checkbox")){var i=h.find("select");i.on("chosen:hiding_dropdown change",function(a,b){"[]"!==i.val()&&""!==i.val()&&0!==i.val().length||g.prop("checked",!1).trigger("change")}),h.find("label").addClass("wpacu_unload_checked"),""===i.html()?(i.parent().parent().next("div[data-wpacu-tax-terms-options-loader]").show(),wpacuAjaxLoadAllSetTermsForPostType(i,h)):(i.prop("disabled",!1).focus().removeClass("wpacu_disabled"),h.find(".wpacu_handle_unload_via_tax_input_wrap").removeClass("wpacu_hide"))}}else a(this).parent("label").addClass("wpacu_input_load_checked"),a(this).closest("tr").addClass("wpacu_not_load");e.showHandleLoadExceptionArea(c,b),a(this).hasClass("wpacu_global_unload")?(e.uncheckAllOtherBulkUnloadRules(a(this),!0),a('.input-unload-on-this-page[data-handle-for="'+c+'"][data-handle="'+b+'"]').prop("checked",!1)):a(this).hasClass("wpacu_post_type_unload")&&(e.uncheckAllOtherBulkUnloadRules(a(this),!1),a('.input-unload-on-this-page[data-handle-for="'+c+'"][data-handle="'+b+'"]').prop("checked",!1))}else a(this).hasClass("wpacu_unload_it_regex_checkbox")||a(this).hasClass("wpacu_unload_it_via_tax_checkbox")?a(this).hasClass("wpacu_unload_it_regex_checkbox")?(h.find("label").removeClass("wpacu_unload_checked"),h.find("textarea").blur().addClass("wpacu_disabled"),""===h.find("textarea").val().trim()&&(h.find("textarea").prop("disabled",!0).val(""),h.find(".wpacu_handle_unload_regex_input_wrap").addClass("wpacu_hide"))):a(this).hasClass("wpacu_unload_it_via_tax_checkbox")&&(h.find("label").removeClass("wpacu_unload_checked"),h.find(".wpacu_handle_unload_via_tax_input_wrap").addClass("wpacu_hide")):(a(this).parent("label").removeClass("wpacu_input_load_checked"),a(this).closest("tr").removeClass("wpacu_not_load")),e.hideHandleLoadExceptionArea(d,b,c);d.hasClass("wpacu_is_bulk_unloaded")||a(".wpacu_bulk_unload:not(.wpacu_unload_it_regex_checkbox)").is(":checked")||a(this).closest("tr").removeClass("wpacu_not_load")}),a(document).on("click change",".wpacu_load_it_option_one.wpacu_load_exception,.wpacu_load_it_option_post_type",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")}),
|
3 |
-
a(document).on("click change",".wpacu_load_it_via_tax_checkbox",function(){var b=a(this),c=a(this).parents("li");if(a(this).prop("checked")){var d=c.find("select");d.on("chosen:hiding_dropdown change",function(a,c){"[]"!==d.val()&&""!==d.val()&&0!==d.val().length||b.prop("checked",!1).trigger("change")}),""===d.html()?(d.parent().parent().next("div[data-wpacu-tax-terms-options-loader]").show(),wpacuAjaxLoadAllSetTermsForPostType(d,c)):(d.prop("disabled",!1).focus().removeClass("wpacu_disabled"),c.find(".wpacu_handle_load_via_tax_input_wrap").removeClass("wpacu_hide"))}else c.find(".wpacu_handle_load_via_tax_input_wrap").addClass("wpacu_hide")}),a(document).on("click change",".wpacu_load_it_option_two",function(){var b=a(this).parents("li");a(this).prop("checked")?(b.find("textarea").prop("disabled",!1).focus().removeClass("wpacu_disabled"),b.find(".wpacu_load_regex_input_wrap").removeClass("wpacu_hide")):(b.find("textarea").blur().addClass("wpacu_disabled"),""===b.find("textarea").val().trim()&&(b.find("textarea").prop("disabled",!0).val(""),b.find(".wpacu_load_regex_input_wrap").addClass("wpacu_hide")))}),a(document).on("click change",".wpacu_script_attr_rule_input",function(b){if(a(this).is(":checked")){if("click"===b.type){var c=a(this).parents("tr.wpacu_asset_row").attr("data-script-child-handles"),d=wpacu_object.script_is_parent_alert;if(void 0!==c&&""!==c&&(d=d.replace("{wpacu_script_child_handles}",c),!confirm(d)))return!1}a(this).parents("ul").find(".wpacu_script_attr_rule_input").not(a(this)).prop("checked",!1),a(this).hasClass("wpacu_script_attr_rule_global")&&a(this).parents("ul").find(".wpacu-script-attr-make-exception").removeClass("wpacu_hide")}a(this).parents("ul").find(".wpacu_script_attr_rule_global").is(":checked")||a(this).parents("ul").find(".wpacu-script-attr-make-exception").addClass("wpacu_hide")}),a(document).on("change",".wpacu-screen-size-load",function(b){var c,d,e,f=a(this).val(),g=a(this).attr("data-handle");if(a(this).hasClass("wpacu-for-script"))c="SCRIPT file",d=a('.wpacu-handle-media-queries-load-field[data-script-handle="'+g+'"]');else{if(!a(this).hasClass("wpacu-for-style"))return!1;c="CSS file",d=a('.wpacu-handle-media-queries-load-field[data-style-handle="'+g+'"]')}if(!(d.length<1))if(e=d.find(":input"),f){if(a(this)[0].hasAttribute("data-wpacu-show-parent-alert")){var h=wpacu_object.parent_asset_media_query_load_alert.replace("[asset_type]",c);if(!confirm(h))return a(this).val(""),!1}d.addClass("wpacu-is-visible"),e.prop("disabled",!1),""===e.val()&&e.focus()}else d.removeClass("wpacu-is-visible"),""===e.val().trim()&&"true"===e.attr("data-wpacu-is-empty-on-page-load")&&e.prop("disabled",!0).val("")}),a(document).on("click",".wpacu-add-handle-note",function(b){b.preventDefault();var c,d,e=a(this).attr("data-handle");a(this).hasClass("wpacu-for-script")?c=a('.wpacu-handle-notes-field[data-script-handle="'+e+'"]'):a(this).hasClass("wpacu-for-style")&&(c=a('.wpacu-handle-notes-field[data-style-handle="'+e+'"]')),c.length<1||(d=c.find(":input"),c.is(":hidden")?(c.show(),d.prop("disabled",!1)):(c.hide(),""===d.val().trim()&&"true"===d.attr("data-wpacu-is-empty-on-page-load")&&d.prop("disabled",!0).val("")))}),a(document).on("click",".wpacu-external-file-size",function(b){b.preventDefault();var c,d=a(this),e=d.attr("data-src");d.hide(),c=d.next(),c.show(),e.includes("/?")?a.get(e,{},function(a,b,d){if("success"!==b)return"N/A";c.html(wpacuBytesToSize(a.length))}):a.post(wpacu_object.ajax_url,{action:wpacu_object.plugin_id+"_get_external_file_size",wpacu_remote_file:e,wpacu_nonce:wpacu_object.wpacu_ajax_check_remote_file_size_nonce},function(a){c.html(a)})}),
|
4 |
// Note: Starting from July 24, 2021, development has started to use AJAX to save the state
|
5 |
-
a(document).on("click",".wpacu_handle_row_expand_contract",function(b){b.preventDefault();var c,d=a(this).attr("data-wpacu-handle"),e=a(this).attr("data-wpacu-handle-for");a(this).find("span").hasClass("dashicons-minus")?(c="contracted",a(this).parents("td").attr("data-wpacu-row-status",c).find(".wpacu_handle_row_expanded_area").addClass("wpacu_hide"),a(this).find("span").removeClass("dashicons-minus").addClass("dashicons-plus")):a(this).find("span").hasClass("dashicons-plus")&&(c="expanded",a(this).parents("td").attr("data-wpacu-row-status",c).find(".wpacu_handle_row_expanded_area").removeClass("wpacu_hide"),a(this).find("span").removeClass("dashicons-plus").addClass("dashicons-minus")),wpacuAjaxUpdateKeepTheAssetRowState(c,d,e,a(this))})},triggerForHardcodedAssets:function(){a('[data-is-hardcoded-asset="true"]').length>0&&(a.each(a('[data-is-hardcoded-asset="true"]'),function(b,c){e.updateHardcodedDataHiddenFieldStatus(a(this))}),a('[data-is-hardcoded-asset="true"]').on("click",".wpacu_unload_rule_input",function(){e.updateHardcodedDataHiddenFieldStatus(a(this).parents("[data-is-hardcoded-asset]"))}))},updateHardcodedDataHiddenFieldStatus:function(b){var c=!1;b.is("[data-style-handle-row]")?c=b.attr("data-style-handle-row"):b.is("[data-script-handle-row]")&&(c=b.attr("data-script-handle-row")),c&&(b.find(".wpacu_unload_rule_input:checked").length>0||b.hasClass("wpacu_not_load")?a("#"+c+"_hardcoded_data").prop("disabled",!1):a("#"+c+"_hardcoded_data").prop("disabled",!0))},triggerAlertWhenAnyUnloadRuleIsChosen:function(b,c){if("dashicons"===b&&"style"===c&&a('input[name="wpacu_ignore_child[styles][nf-display]').length>0&&!confirm(wpacu_object.dashicons_unload_alert_ninja_forms))return!1;if("script"===c){if(("jquery"===b||"jquery-core"===b)&&a("#script_jquery_ignore_children").length>0&&!confirm(wpacu_object.jquery_unload_alert))return!1;if("js-cookie"===b&&!confirm(wpacu_object.woo_js_cookie_unload_alert))return!1;if("wc-cart-fragments"===b&&!confirm(wpacu_object.woo_wc_cart_fragments_unload_alert))return!1;if(("backbone"===b||"underscore"===b)&&!confirm(wpacu_object.sensitive_library_unload_alert))return!1}return!0},pluginLoadManager:function(){a(".wpacu_plugin_load_it").on("click",function(){var b=a(this).attr("data-wpacu-plugin-path");a(this).prop("checked")&&(e.hidePluginLoadExceptionArea(b),a('.wpacu_plugin_unload_regex_input_wrap[data-wpacu-plugin-path="'+b+'"]').addClass("wpacu_hide"),a('.wpacu_plugin_unload_site_wide[data-wpacu-plugin-path="'+b+'"]').parent("label").removeClass("wpacu_plugin_unload_rule_input_checked"),a('.wpacu_plugin_unload_regex_option[data-wpacu-plugin-path="'+b+'"]').parent("label").removeClass("wpacu_plugin_unload_rule_input_checked"))}),a(".wpacu_plugin_unload_site_wide").on("click",function(){var b=a(this).attr("data-wpacu-plugin-path");a(this).prop("checked")?(a(this).parent("label").addClass("wpacu_plugin_unload_rule_input_checked"),a('.wpacu_plugin_unload_home_page[data-wpacu-plugin-path="'+b+'"]').prop("checked",!1).parent("label").removeClass("wpacu_plugin_unload_rule_input_checked"),a('.wpacu_plugin_unload_via_post_type[data-wpacu-plugin-path="'+b+'"]').prop("checked",!1).parent("label").removeClass("wpacu_plugin_unload_rule_input_checked"),a('.wpacu_plugin_unload_via_tax[data-wpacu-plugin-path="'+b+'"]').prop("checked",!1).parent("label").removeClass("wpacu_plugin_unload_rule_input_checked"),a('.wpacu_plugin_unload_regex_option[data-wpacu-plugin-path="'+b+'"]').prop("checked",!1).parent("label").removeClass("wpacu_plugin_unload_rule_input_checked"),a('.wpacu_plugin_unload_logged_in[data-wpacu-plugin-path="'+b+'"]').prop("checked",!1).parent("label").removeClass("wpacu_plugin_unload_rule_input_checked"),a('.wpacu_plugin_unload_via_post_type_select_wrap[data-wpacu-plugin-path="'+b+'"]').addClass("wpacu_hide"),a('.wpacu_plugin_unload_regex_input_wrap[data-wpacu-plugin-path="'+b+'"]').addClass("wpacu_hide"),e.showPluginLoadExceptionArea(b)):(a(this).parent("label").removeClass("wpacu_plugin_unload_rule_input_checked"),e.hidePluginLoadExceptionArea(b))}),a(".wpacu_plugin_unload_home_page").on("click",function(){var b=a(this).attr("data-wpacu-plugin-path");a(this).prop("checked")?(a(this).parent("label").addClass("wpacu_plugin_unload_rule_input_checked"),e.showPluginLoadExceptionArea(b),a('.wpacu_plugin_unload_site_wide[data-wpacu-plugin-path="'+b+'"]').prop("checked",!1).parent("label").removeClass("wpacu_plugin_unload_rule_input_checked")):(a(this).parent("label").removeClass("wpacu_plugin_unload_rule_input_checked"),e.hidePluginLoadExceptionArea(b))}),a(".wpacu_plugin_unload_regex_option").on("click",function(){var b=a(this).attr("data-wpacu-plugin-path");a(this).prop("checked")?(a(this).parent("label").addClass("wpacu_plugin_unload_rule_input_checked"),a('.wpacu_plugin_unload_regex_input_wrap[data-wpacu-plugin-path="'+b+'"]').removeClass("wpacu_hide"),e.showPluginLoadExceptionArea(b),a('.wpacu_plugin_unload_site_wide[data-wpacu-plugin-path="'+b+'"]').prop("checked",!1).parent("label").removeClass("wpacu_plugin_unload_rule_input_checked")):(a('.wpacu_plugin_unload_regex_input_wrap[data-wpacu-plugin-path="'+b+'"]').addClass("wpacu_hide"),a(this).parent("label").removeClass("wpacu_plugin_unload_rule_input_checked"),e.hidePluginLoadExceptionArea(b))}),a(".wpacu_plugin_unload_via_post_type").on("click",function(){var b=a(this).attr("data-wpacu-plugin-path");a(this).prop("checked")?(a(this).parent("label").addClass("wpacu_plugin_unload_rule_input_checked"),a('.wpacu_plugin_unload_via_post_type_select_wrap[data-wpacu-plugin-path="'+b+'"]').removeClass("wpacu_hide").find("select").addClass("wpacu_chosen_select").chosen({width:"100%"}),e.showPluginLoadExceptionArea(b),a('.wpacu_plugin_unload_site_wide[data-wpacu-plugin-path="'+b+'"]').prop("checked",!1).parent("label").removeClass("wpacu_plugin_unload_rule_input_checked")):(a('.wpacu_plugin_unload_via_post_type_select_wrap[data-wpacu-plugin-path="'+b+'"]').addClass("wpacu_hide"),a(this).parent("label").removeClass("wpacu_plugin_unload_rule_input_checked"),e.hidePluginLoadExceptionArea(b))}),a(".wpacu_plugin_unload_via_tax").on("click",function(){var b=a(this).attr("data-wpacu-plugin-path");a(this).prop("checked")?(a(this).parent("label").addClass("wpacu_plugin_unload_rule_input_checked"),a('.wpacu_plugin_unload_via_tax_select_wrap[data-wpacu-plugin-path="'+b+'"]').removeClass("wpacu_hide").find("select").addClass("wpacu_chosen_select").chosen({width:"100%"}),e.showPluginLoadExceptionArea(b),a('.wpacu_plugin_unload_site_wide[data-wpacu-plugin-path="'+b+'"]').prop("checked",!1).parent("label").removeClass("wpacu_plugin_unload_rule_input_checked")):(a('.wpacu_plugin_unload_via_tax_select_wrap[data-wpacu-plugin-path="'+b+'"]').addClass("wpacu_hide"),a(this).parent("label").removeClass("wpacu_plugin_unload_rule_input_checked"),e.hidePluginLoadExceptionArea(b))}),a(".wpacu_plugin_unload_logged_in").on("click",function(){var b=a(this).attr("data-wpacu-plugin-path");a(this).prop("checked")?(e.showPluginLoadExceptionArea(b),a('.wpacu_plugin_unload_site_wide[data-wpacu-plugin-path="'+b+'"]').prop("checked",!1).parent("label").removeClass("wpacu_plugin_unload_rule_input_checked")):(a(this).parent("label").removeClass("wpacu_plugin_unload_rule_input_checked"),e.hidePluginLoadExceptionArea(b))}),a(".wpacu_plugin_load_exception_regex").on("click",function(){var b=a(this).attr("data-wpacu-plugin-path");a(this).prop("checked")?a('.wpacu_load_regex_input_wrap[data-wpacu-plugin-path="'+b+'"]').removeClass("wpacu_hide"):a('.wpacu_load_regex_input_wrap[data-wpacu-plugin-path="'+b+'"]').addClass("wpacu_hide")}),a(".wpacu_plugin_load_via_post_type").on("click",function(){var b=a(this).attr("data-wpacu-plugin-path");a(this).prop("checked")?a('.wpacu_plugin_load_via_post_type_select_wrap[data-wpacu-plugin-path="'+b+'"]').removeClass("wpacu_hide").find("select").addClass("wpacu_chosen_select").chosen({width:"100%"}):a('.wpacu_plugin_load_via_post_type_select_wrap[data-wpacu-plugin-path="'+b+'"]').addClass("wpacu_hide")}),a(".wpacu_plugin_load_via_tax").on("click",function(){var b=a(this).attr("data-wpacu-plugin-path");a(this).prop("checked")?a('.wpacu_plugin_load_via_tax_select_wrap[data-wpacu-plugin-path="'+b+'"]').removeClass("wpacu_hide").find("select").addClass("wpacu_chosen_select").chosen({width:"100%"}):a('.wpacu_plugin_load_via_tax_select_wrap[data-wpacu-plugin-path="'+b+'"]').addClass("wpacu_hide")})},showPluginLoadExceptionArea:function(b){a('.wpacu_plugin_load_exception_options_wrap[data-wpacu-plugin-path="'+b+'"]').removeClass("wpacu_hide").find('input[type="checkbox"]').prop("disabled",!1)},hidePluginLoadExceptionArea:function(b){a('.wpacu_plugin_unload_rules_options_wrap[data-wpacu-plugin-path="'+b+'"]').find("input:checked").length<1&&a('.wpacu_plugin_load_exception_options_wrap[data-wpacu-plugin-path="'+b+'"]').addClass("wpacu_hide").find('input[type="checkbox"]').prop("disabled",!0)},showHandleLoadExceptionArea:function(b,c){var d=a("div.wpacu_exception_options_area_wrap[data-"+b+'-handle="'+c+'"]');d.parent("div").removeClass("wpacu_hide"),d.find('input[type="checkbox"]').not(".wpacu_lite_locked").prop("disabled",!1)},hideHandleLoadExceptionArea:function(b,c,d){if(!b.hasClass("wpacu_is_bulk_unloaded")&&!b.find(".wpacu_bulk_unload").is(":checked")){var e=a("div.wpacu_exception_options_area_wrap[data-"+d+'-handle="'+c+'"]');e.parent("div").addClass("wpacu_hide"),e.find('input[type="checkbox"]').prop("disabled",!0)}},uncheckAllOtherBulkUnloadRules:function(a,b){var c=".wpacu_bulk_unload";!1===b&&(c=".wpacu_bulk_unload:not(.wpacu_unload_it_regex_checkbox)"),a.closest("tr").find(c).not(a).prop("checked",!1).parent("label").removeClass("wpacu_input_load_checked").removeClass("wpacu_unload_checked")},limitSubmittedFields:function(){var b=!1,c=[];if(a("body.wp-admin form#post").length>0||a("body.wp-admin form#edittag").length>0){if(a("#wpacu_unload_assets_area_loaded").length<1)return!0;b=!0}return a('[data-wpacu-input="preload"]').length>0&&c.push('[data-wpacu-input="preload"]'),a('[data-wpacu-input="media-query-select"]').length>0&&c.push('[data-wpacu-input="media-query-select"]'),a('[data-wpacu-input="position-select"]').length>0&&c.push('[data-wpacu-input="position-select"]'),a(".wpacu_unload_it_via_tax_checkbox").length>0&&c.push(".wpacu_unload_it_via_tax_checkbox"),a(".wpacu_load_it_via_tax_checkbox").length>0&&c.push(".wpacu_load_it_via_tax_checkbox"),c.length>0?a(c.join()).each(function(){if(a(this).val()||a(this).prop("disabled","disabled"),a(this).hasClass("wpacu-screen-size-load")){var b=a(this).attr("data-handle"),c="#wpacu_handle_media_query_load_style_"+b;a(c).length>0&&!a(c).val()&&(a(this).prop("disabled","disabled"),a(c).prop("disabled","disabled"))}if("position-select"===a(this).attr("data-wpacu-input")&&"initial"===a(this).val()&&a(this).prop("disabled","disabled"),a(this).hasClass("wpacu_unload_it_via_tax_checkbox")){var b=a(this).attr("data-handle"),d=a(this).attr("data-handle-for"),e=a('select.wpacu_unload_via_tax_dd[data-handle="'+b+'"][data-handle-for="'+d+'"]');e.length>0&&("[]"===e.val()||""===e.val()||0===e.val().length)&&(a(this).prop("disabled","disabled"),e.prop("disabled","disabled"))}if(a(this).hasClass("wpacu_load_it_via_tax_checkbox")){var b=a(this).attr("data-handle"),d=a(this).attr("data-handle-for"),e=a('select.wpacu_load_via_tax_dd[data-handle="'+b+'"][data-handle-for="'+d+'"]');e.length>0&&("[]"===e.val()||""===e.val()||0===e.val().length)&&(a(this).prop("disabled","disabled"),e.prop("disabled","disabled"))}}).promise().done(function(){b=!0}):b=!0,b}};a(document).on("wpacu_plugin_row_show_hide_load_exceptions_area",function(a,b){e.hidePluginLoadExceptionArea(b)}),a(document).on("click","a[data-wpacu-vertical-link-target]",function(b){b.preventDefault(),wpacuTabOpenSettingsArea(b,a(this).attr("data-wpacu-vertical-link-target"))}),a(document).on("click",'input[type="checkbox"]#wpacu_disable_rss_feed',function(){a(this).is(":checked")?(a("#wpacu_remove_main_feed_link").prop("checked",!0),a("#wpacu_remove_comment_feed_link").prop("checked",!0)):(a("#wpacu_remove_main_feed_link").prop("checked",!1),a("#wpacu_remove_comment_feed_link").prop("checked",!1))}),a(document).on("click",'input[name="wpacu_sub_tab_area"]',function(){a(this).prop("checked")&&a("#wpacu-selected-sub-tab-area").val(a(this).val())}),a(document).on("click","#wpacu_minify_css_enable, #wpacu_combine_loaded_css_enable, #wpacu_minify_js_enable, #wpacu_combine_loaded_js_enable, #wpacu_cdn_rewrite_enable, #wpacu_enable_test_mode",function(){a(this).prop("checked")?a('[data-linked-to="'+a(this).attr("id")+'"]').find(".wpacu-circle-status").addClass("wpacu-on").removeClass("wpacu-off"):a('[data-linked-to="'+a(this).attr("id")+'"]').find(".wpacu-circle-status").addClass("wpacu-off").removeClass("wpacu-on")}),a(document).on("click","#wpacu_inline_css_files_below_size_checkbox",function(){a(this).is(":checked")?a("#wpacu_inline_css_files_enable").prop("checked",!0).trigger("tick"):""===a("#wpacu_inline_css_files_list").val()&&a("#wpacu_inline_css_files_enable").prop("checked",!1).trigger("tick")}),a(document).on("click","#wpacu_inline_js_files_below_size_checkbox",function(){if(a(this).is(":checked")){if(!confirm(wpacu_object.inline_auto_js_files_confirm_msg))return!1;a("#wpacu_inline_js_files_enable").prop("checked",!0).trigger("tick")}else""===a("#wpacu_inline_js_files_list").val()&&a("#wpacu_inline_js_files_enable").prop("checked",!1).trigger("tick")}),a(document).on("click","#wpacu-mark-license-valid-button",function(){return confirm(wpacu_object.mark_license_valid_confirm)}),a(document).on("submit","#wpacu-license-form",function(){a("#wpacu_license_activate_btn").attr("disabled","disabled"),a("#wpacu_license_deactivate_btn").attr("disabled","disabled"),a(".wpacu-license-spinner").show()});var f,g;a("#wpacu-reset-drop-down").on("change keyup keydown mouseup mousedown click",function(){""===a(this).val()?(a("#wpacu-warning-read").removeClass("wpacu-visible"),a("#wpacu-reset-submit-btn").attr("disabled","disabled").removeClass("button-primary").addClass("button-secondary")):("reset_everything"===a(this).val()?a("#wpacu-license-data-remove-area, #wpacu-cache-assets-remove-area").addClass("wpacu-visible"):a("#wpacu-license-data-remove-area, #wpacu-cache-assets-remove-area").removeClass("wpacu-visible"),a("#wpacu-warning-read").addClass("wpacu-visible"),a("#wpacu-reset-submit-btn").removeAttr("disabled").removeClass("button-secondary").addClass("button-primary")),a(".wpacu-tools-area .wpacu-warning").hide(),f=a(this).find("option:selected"),a("#"+f.attr("data-id")).show()}),a("#wpacu-reset-submit-btn").on("click",function(){if("reset_settings"===a("#wpacu-reset-drop-down").val()?g=wpacu_object.reset_settings_confirm_msg:"reset_critical_css"===a("#wpacu-reset-drop-down").val()?g=wpacu_object.reset_critical_css_confirm_msg:"reset_everything_except_settings"===a("#wpacu-reset-drop-down").val()?g=wpacu_object.reset_everything_except_settings_confirm_msg:"reset_everything"===a("#wpacu-reset-drop-down").val()&&(g=wpacu_object.reset_everything_confirm_msg),!confirm(g))return!1;a("#wpacu-action-confirmed").val("yes"),setTimeout(function(){"yes"===a("#wpacu-action-confirmed").val()&&a("#wpacu-tools-form").trigger("submit")},1e3)}),a(document).on("submit","#wpacu-import-form",function(){if(!confirm(wpacu_object.import_confirm_msg))return!1;a(this).find("button").addClass("wpacu-importing").prop("disabled",!0)}),a(document).on("click",".wpacu-filter-handle",function(b){alert(a(this).attr("data-wpacu-filter-handle-message")),b.preventDefault()}),a(document).on("change","#wpacu_post_type_select",function(){a("#wpacu_post_type_form").trigger("submit")}),a(document).on("change","#wpacu_taxonomy_select",function(){a("#wpacu_taxonomy_form").trigger("submit")}),a(document).on("click","#wpacu_dashboard",function(){a(this).prop("checked")?a("#wpacu-settings-assets-retrieval-mode").show():a("#wpacu-settings-assets-retrieval-mode").hide()}),a(document).on("change",".wpacu-dom-get-type-selection",function(){a(this).is(":checked")&&(a(".wpacu-dom-get-type-info").hide(),a("#"+a(this).attr("data-target")).fadeIn("fast"))}),a(document).on("click","#wpacu_frontend",function(){a(this).prop("checked")?a("#wpacu-settings-frontend-exceptions").show():a("#wpacu-settings-frontend-exceptions").hide()}),a(document).on("change",".google_fonts_combine_type",function(){a(".wpacu_google_fonts_combine_type_area").hide(),"async"===a(this).val()?a("#wpacu_google_fonts_combine_type_async_info_area").fadeIn():"async_preload"===a(this).val()?a("#wpacu_google_fonts_combine_type_async_preload_info_area").fadeIn():a("#wpacu_google_fonts_combine_type_rb_info_area").fadeIn()}),a("#wpacu-allow-manage-assets-to-select-list-area").length>0&&!a("#wpacu-allow-manage-assets-to-select-list-area").hasClass("wpacu_hide")&&setTimeout(function(){jQuery("#wpacu-allow-manage-assets-to-select-list").chosen()},200),a("#wpacu-allow-manage-assets-to-select").on("click change",function(){"chosen"===a(this).val()?(a("#wpacu-allow-manage-assets-to-select-list-area").removeClass("wpacu_hide"),setTimeout(function(){jQuery("#wpacu-allow-manage-assets-to-select-list").chosen()},200)):a("#wpacu-allow-manage-assets-to-select-list-area").addClass("wpacu_hide")}),a("#wpacu_assets_list_layout").on("click change",function(){"by-location"===a(this).val()?a("#wpacu-assets-list-by-location-selected").fadeIn("fast"):a("#wpacu-assets-list-by-location-selected").fadeOut("fast")}),a("#wpacu_disable_jquery_migrate").on("click",function(){return!a(this).is(":checked")||(!(!a(this).is(":checked")||!confirm(wpacu_object.jquery_migration_disable_confirm_msg))||(a(this).prop("checked",!1),!1))}),a("#wpacu_disable_comment_reply").on("click",function(){return!a(this).is(":checked")||(!(!a(this).is(":checked")||!confirm(wpacu_object.comment_reply_disable_confirm_msg))||(a(this).prop("checked",!1),!1))}),a("[data-target-opacity]").on("click change tick",function(){a(this).prop("checked")?a("#"+a(this).attr("data-target-opacity")).css({opacity:1}):a("#"+a(this).attr("data-target-opacity")).css({opacity:.4})}),a("#wpacu-show-assets-meta-box-checkbox").on("click change",function(){a(this).prop("checked")?(a("#wpacu-show-assets-enabled-area").show(),a("#wpacu-show-assets-disabled-area").hide()):(a("#wpacu-show-assets-enabled-area").hide(),a("#wpacu-show-assets-disabled-area").show())}),
|
6 |
-
a(document).on("change",".wpacu-combine-loaded-js-level",function(){a(this).is(":checked")&&(a(".wpacu_combine_loaded_js_level_area").removeClass("wpacu_active"),a("#"+a(this).attr("data-target")).addClass("wpacu_active"))});var
|
|
1 |
+
!function(a){a.fn.wpAssetCleanUp=function(){var b="#wpacu_meta_box_content";return{cssJsManagerActions:function(){var b,c,d,e=".input-unload-on-this-page.wpacu-not-locked";a(document).on("click change",".input-unload-on-this-page",function(e){if(b=a(this).attr("data-handle"),c=a(this).hasClass("wpacu_unload_rule_for_style")?"style":"script",a(this).prop("checked")){if("click"===e.type&&!a.fn.wpAssetCleanUp().triggerAlertWhenAnyUnloadRuleIsChosen(b,c))return!1;a.fn.wpAssetCleanUp().uncheckAllOtherBulkUnloadRules(a(this),!1),a.fn.wpAssetCleanUp().showHandleLoadExceptionArea(c,b),a(this).closest("tr").addClass("wpacu_not_load")}else a(this).closest("tr").removeClass("wpacu_not_load"),d=a(this).parents(".wpacu_asset_row"),a.fn.wpAssetCleanUp().hideHandleLoadExceptionArea(d,b,c)}),a(".wpacu-plugin-check-all").on("click",function(b){b.preventDefault();var c=a(this).attr("data-wpacu-plugin");a('table.wpacu_list_by_location[data-wpacu-plugin="'+c+'"]').find(e).prop("checked",!0).closest("tr").addClass("wpacu_not_load")}),a(".wpacu-plugin-uncheck-all").on("click",function(b){b.preventDefault();var c=a(this).attr("data-wpacu-plugin");a('table.wpacu_list_by_location[data-wpacu-plugin="'+c+'"]').find(e).prop("checked",!1).closest("tr").removeClass("wpacu_not_load")}),a(".wpacu-plugin-check-load-all").on("click change",function(b){b.preventDefault();var c=a(this).attr("data-wpacu-plugin"),d=a('table.wpacu_list_by_location[data-wpacu-plugin="'+c+'"]');d.find(".wpacu_load_it_option_one.wpacu_load_exception").prop("checked",!0).closest("tr.wpacu_is_bulk_unloaded").removeClass("wpacu_not_load"),d.find(e).prop("checked",!1).trigger("change")}),a(".wpacu-plugin-uncheck-load-all").on("click change",function(b){b.preventDefault();var c=a(this).attr("data-wpacu-plugin"),d=a('table.wpacu_list_by_location[data-wpacu-plugin="'+c+'"]');d.find(".wpacu_load_it_option_one.wpacu_load_exception").prop("checked",!1).closest("tr.wpacu_is_bulk_unloaded").addClass("wpacu_not_load"),d.find(e).prop("checked",!1).trigger("change")}),a(document).on("click",".wpacu_keep_bulk_rule",function(){a(this).prop("checked")&&a(this).parents("li").next().removeClass("remove_rule")}),a(document).on("click",".wpacu_remove_bulk_rule",function(){a(this).prop("checked")&&a(this).parents("li").addClass("remove_rule")}),a(document).on("click change",".wpacu_bulk_unload",function(e){a(this);b=a(this).attr("data-handle"),c=a(this).attr("data-handle-for"),d=a("[data-"+c+'-handle-row="'+b+'"]');var f=a(this).parents("li");if(a(this).prop("checked")){if("click"===e.type&&!a.fn.wpAssetCleanUp().triggerAlertWhenAnyUnloadRuleIsChosen(b,c))return!1;(a(this).hasClass("wpacu_global_unload")||a(this).hasClass("wpacu_post_type_unload"))&&(a(this).parent("label").addClass("wpacu_input_load_checked"),a(this).closest("tr").addClass("wpacu_not_load")),a.fn.wpAssetCleanUp().showHandleLoadExceptionArea(c,b),a(this).hasClass("wpacu_global_unload")?(a.fn.wpAssetCleanUp().uncheckAllOtherBulkUnloadRules(a(this),!0),a('.input-unload-on-this-page[data-handle-for="'+c+'"][data-handle="'+b+'"]').prop("checked",!1)):a(this).hasClass("wpacu_post_type_unload")&&(a.fn.wpAssetCleanUp().uncheckAllOtherBulkUnloadRules(a(this),!1),a('.input-unload-on-this-page[data-handle-for="'+c+'"][data-handle="'+b+'"]').prop("checked",!1))}else a(this).hasClass("wpacu_unload_it_regex_checkbox")||a(this).hasClass("wpacu_unload_it_via_tax_checkbox")?a(this).hasClass("wpacu_unload_it_regex_checkbox")?(f.find("label").removeClass("wpacu_unload_checked"),f.find("textarea").blur().addClass("wpacu_disabled"),""===f.find("textarea").val().trim()&&(f.find("textarea").prop("disabled",!0).val(""),f.find(".wpacu_handle_unload_regex_input_wrap").addClass("wpacu_hide"))):a(this).hasClass("wpacu_unload_it_via_tax_checkbox")&&(f.find("label").removeClass("wpacu_unload_checked"),f.find(".wpacu_handle_unload_via_tax_input_wrap").addClass("wpacu_hide")):(a(this).parent("label").removeClass("wpacu_input_load_checked"),a(this).closest("tr").removeClass("wpacu_not_load")),a.fn.wpAssetCleanUp().hideHandleLoadExceptionArea(d,b,c);d.hasClass("wpacu_is_bulk_unloaded")||a(".wpacu_bulk_unload:not(.wpacu_unload_it_regex_checkbox)").is(":checked")||a(this).closest("tr").removeClass("wpacu_not_load")}),a(document).on("click change",".wpacu_load_it_option_one.wpacu_load_exception,.wpacu_load_it_option_post_type",function(){var b=a(this).attr("data-handle");if(a(this).prop("checked")){a(this).parent("label").addClass("wpacu_global_unload_exception");var c="";a(this).hasClass("wpacu_style")?c="style":a(this).hasClass("wpacu_script")&&(c="script"),a("#"+c+"_"+b).prop("checked",!1).trigger("change")}else a(this).parent("label").removeClass("wpacu_global_unload_exception")}),a(document).on("click",".wpacu-add-handle-note",function(b){b.preventDefault();var c,d,e=a(this).attr("data-handle");a(this).hasClass("wpacu-for-script")?c=a('.wpacu-handle-notes-field[data-script-handle="'+e+'"]'):a(this).hasClass("wpacu-for-style")&&(c=a('.wpacu-handle-notes-field[data-style-handle="'+e+'"]')),c.length<1||(d=c.find(":input"),c.is(":hidden")?(c.show(),d.prop("disabled",!1)):(c.hide(),""===d.val().trim()&&"true"===d.attr("data-wpacu-is-empty-on-page-load")&&d.prop("disabled",!0).val("")))}),a(document).on("click",".wpacu-external-file-size",function(b){b.preventDefault();var c,d=a(this),e=d.attr("data-src");d.hide(),c=d.next(),c.show(),e.includes("/?")?a.get(e,{},function(b,d,e){if("success"!==d)return"N/A";c.html(a.fn.wpAssetCleanUp().wpacuBytesToSize(b.length))}):a.post(wpacu_object.ajax_url,{action:wpacu_object.plugin_prefix+"_get_external_file_size",wpacu_remote_file:e,wpacu_nonce:wpacu_object.wpacu_ajax_check_remote_file_size_nonce},function(a){c.html(a)})}),
|
|
|
|
|
2 |
// Note: Starting from July 24, 2021, development has started to use AJAX to save the state
|
3 |
+
a(document).on("click",".wpacu_handle_row_expand_contract",function(b){b.preventDefault();var c,d=a(this).attr("data-wpacu-handle"),e=a(this).attr("data-wpacu-handle-for");a(this).find("span").hasClass("dashicons-minus")?(c="contracted",a(this).parents("td").attr("data-wpacu-row-status",c).find(".wpacu_handle_row_expanded_area").addClass("wpacu_hide"),a(this).find("span").removeClass("dashicons-minus").addClass("dashicons-plus")):a(this).find("span").hasClass("dashicons-plus")&&(c="expanded",a(this).parents("td").attr("data-wpacu-row-status",c).find(".wpacu_handle_row_expanded_area").removeClass("wpacu_hide"),a(this).find("span").removeClass("dashicons-plus").addClass("dashicons-minus")),a.fn.wpAssetCleanUp().wpacuAjaxUpdateKeepTheAssetRowState(c,d,e,a(this))})},triggerAlertWhenAnyUnloadRuleIsChosen:function(b,c){if("dashicons"===b&&"style"===c&&a('input[name="wpacu_ignore_child[styles][nf-display]').length>0&&!confirm(wpacu_object.dashicons_unload_alert_ninja_forms))return!1;if("script"===c){if(("jquery"===b||"jquery-core"===b)&&a("#script_jquery_ignore_children").length>0&&!confirm(wpacu_object.jquery_unload_alert))return!1;if("js-cookie"===b&&!confirm(wpacu_object.woo_js_cookie_unload_alert))return!1;if("wc-cart-fragments"===b&&!confirm(wpacu_object.woo_wc_cart_fragments_unload_alert))return!1;if(("backbone"===b||"underscore"===b)&&!confirm(wpacu_object.sensitive_library_unload_alert))return!1}return!0},showHandleLoadExceptionArea:function(b,c){var d=a("div.wpacu_exception_options_area_wrap[data-"+b+'-handle="'+c+'"]');d.parent("div").removeClass("wpacu_hide"),d.find('input[type="checkbox"]').not(".wpacu_lite_locked").prop("disabled",!1)},hideHandleLoadExceptionArea:function(b,c,d){if(!b.hasClass("wpacu_is_bulk_unloaded")&&!b.find(".wpacu_bulk_unload").is(":checked")){var e=a("div.wpacu_exception_options_area_wrap[data-"+d+'-handle="'+c+'"]');e.parent("div").addClass("wpacu_hide"),e.find('input[type="checkbox"]').prop("disabled",!0)}},uncheckAllOtherBulkUnloadRules:function(a,b){var c=".wpacu_bulk_unload";!1===b&&(c=".wpacu_bulk_unload:not(.wpacu_unload_it_regex_checkbox)"),a.closest("tr").find(c).not(a).prop("checked",!1).parent("label").removeClass("wpacu_input_load_checked").removeClass("wpacu_unload_checked")},limitSubmittedFields:function(){var b=!1,c=[];if(a("body.wp-admin form#post").length>0||a("body.wp-admin form#edittag").length>0){if(a("#wpacu_unload_assets_area_loaded").length<1)return!0;b=!0}return a('[data-wpacu-input="preload"]').length>0&&c.push('[data-wpacu-input="preload"]'),c.length>0?a(c.join()).each(function(){a(this).val()||a(this).prop("disabled","disabled")}).promise().done(function(){b=!0}):b=!0,b},wpacuParseContentsForDirectCall:function(c,d){if(c.lastIndexOf(wpacu_object.start_del_e)<0||c.lastIndexOf(wpacu_object.end_del_e)<0||c.lastIndexOf(wpacu_object.start_del_h)<0||c.lastIndexOf(wpacu_object.end_del_h)<0){var e=wpacu_object.ajax_direct_fetch_error_with_success_response;e=e.replace(/{wpacu_output}/,xhr.responseText.replace(/(<([^>]+)>)/gi,""));try{e=String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}catch(a){console.log(a)}return void a(b).html(e)}var f=c.substring(c.lastIndexOf(wpacu_object.start_del_e)+wpacu_object.start_del_e.length,c.lastIndexOf(wpacu_object.end_del_e)),g=c.substring(c.lastIndexOf(wpacu_object.start_del_h)+wpacu_object.start_del_h.length,c.lastIndexOf(wpacu_object.end_del_h)),h={action:wpacu_object.plugin_prefix+"_get_loaded_assets",wpacu_list_e:f,wpacu_list_h:g,post_id:wpacu_object.post_id,page_url:wpacu_object.page_url,tag_id:wpacu_object.tag_id,wpacu_taxonomy:wpacu_object.wpacu_taxonomy,force_manage_dash:wpacu_object.force_manage_dash,is_for_singular:!1,wpacu_nonce:wpacu_object.wpacu_ajax_get_loaded_assets_nonce,time_r:(new Date).getTime()};a("#wpacu_manage_singular_page_assets").length>0&&(h.is_for_singular=!0),a.post(wpacu_object.ajax_url,h,function(c){c&&(a(b).html(c),404===d&&a(b).prepend('<p><span class="dashicons dashicons-warning"></span> '+wpacu_object.server_returned_404_not_found+"</p><hr />"),a("#wpacu_dash_assets_manager_form").length>0&&a("#submit").show(),setTimeout(function(){a.fn.wpAssetCleanUp().cssJsManagerActions(),a(".wpacu_asset_row, .wpacu-page-options .wpacu-assets-collapsible-content").removeClass("wpacu-loading"),a("#wpacu-assets-reloading").remove(),a.fn.wpAssetCleanUp().wpacuCheckSourcesFor404Errors()},200))})},wpacuAjaxGetAssetsArea:function(c){if(!c&&!a("#wpacu_ajax_fetch_assets_list_dashboard_view").length)return!1;if(a("#wpacu_page_options_no_wpacu_load").length>0&&a("#wpacu_page_options_no_wpacu_load").prop("checked")){var d={action:wpacu_object.plugin_prefix+"_load_page_restricted_area",post_id:wpacu_object.post_id,wpacu_nonce:wpacu_object.wpacu_ajax_load_page_restricted_area_nonce,time_r:(new Date).getTime()};return void a.post(wpacu_object.ajax_url,d,function(c){if(!c)return!1;a(b).html(c),a(".wpacu_asset_row, .wpacu-page-options .wpacu-assets-collapsible-content").removeClass("wpacu-loading"),a("#wpacu-assets-reloading").remove()})}var e={};if("direct"===wpacu_object.dom_get_type)e[wpacu_object.plugin_prefix+"_load"]=1,e[wpacu_object.plugin_prefix+"_time_r"]=(new Date).getTime(),a.ajax({method:"GET",url:wpacu_object.page_url,data:e,cache:!1,complete:function(c,d){if("error"===c.statusText){if(404===c.status)return void a.fn.wpAssetCleanUp().wpacuParseContentsForDirectCall(c.responseText,c.status,a);var e=c.responseText.replace(/(<([^>]+)>)/gi,"");try{e=String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}catch(a){console.log(a)}var f=wpacu_object.ajax_direct_fetch_error;f=f.replace(/{wpacu_output}/,e),f=f.replace(/{wpacu_status_code_error}/,c.status),a(b).html(f)}}}).done(function(b,c,d){a("#wpacu-fetch-list-step-1-wrap").addClass("wpacu-completed"),a("#wpacu-fetch-list-step-1-status").html(a("#wpacu-list-step-completed-status").html()),a("#wpacu-fetch-list-step-2-status").html(a("#wpacu-list-step-default-status").html()),a.fn.wpAssetCleanUp().wpacuParseContentsForDirectCall(b)});else if("wp_remote_post"===wpacu_object.dom_get_type){var f={action:wpacu_object.plugin_prefix+"_get_loaded_assets",post_id:wpacu_object.post_id,page_url:wpacu_object.page_url,tag_id:wpacu_object.tag_id,wpacu_taxonomy:wpacu_object.wpacu_taxonomy,force_manage_dash:wpacu_object.force_manage_dash,wpacu_nonce:wpacu_object.wpacu_ajax_get_loaded_assets_nonce,time_r:(new Date).getTime()};a.post(wpacu_object.ajax_url,f,function(c){if(!c)return!1;a(b).html(c),a("#wpacu_dash_assets_manager_form").length>0&&a("#submit").show(),setTimeout(function(){a.fn.wpAssetCleanUp().cssJsManagerActions(),setTimeout(function(){a.fn.wpAssetCleanUp().wpacuCheckSourcesFor404Errors()},100)},200)})}},wpacuParseResultsForHarcodedAssets:function(b){b.lastIndexOf(wpacu_object.start_del_h)<0||b.lastIndexOf(wpacu_object.end_del_h);var c=b.substring(b.lastIndexOf(wpacu_object.start_del_h)+wpacu_object.start_del_h.length,b.lastIndexOf(wpacu_object.end_del_h)),d=a("#wpacu-assets-collapsible-wrap-hardcoded-list").attr("data-wpacu-settings-frontend"),e={action:wpacu_object.plugin_prefix+"_print_loaded_hardcoded_assets",wpacu_list_h:c,wpacu_settings:d,time_r:(new Date).getTime(),wpacu_nonce:wpacu_object.wpacu_print_loaded_hardcoded_assets_nonce};a.post(wpacu_object.ajax_url,e,function(b){var c="#wpacu-assets-collapsible-wrap-hardcoded-list";if(b){if(b.includes("The security nonce is not valid"))return void a(c).find("> .wpacu-assets-collapsible-content").html(b);var d=JSON.parse(b);a(c).find("> .wpacu-assets-collapsible-content").html(d.output),a(c).find("a.wpacu-assets-collapsible").append(" ➝ Total: "+parseInt(d.total_hardcoded_assets))}})},wpacuCheckSourcesFor404Errors:function(){var b=a("[data-wpacu-external-source]");if(!(b.length<1)){var c=b.length,d="";b.each(function(b){var e=a(this),f=e.attr("data-wpacu-external-source");d+=f+"-at-wpacu-at-",b===c-1&&a.post(wpacu_object.ajax_url,{action:wpacu_object.plugin_prefix+"_check_external_urls_for_status_code",wpacu_check_urls:d,wpacu_nonce:wpacu_object.wpacu_ajax_check_external_urls_nonce},function(b){var c=a.parseJSON(b);a.each(c,function(b,c){a('[data-wpacu-external-source="'+c+'"]').css({color:"#cc0000"}).parent("div").find("[data-wpacu-external-source-status]").html('<small>* <em style="font-weight: 600;">'+wpacu_object.source_load_error_msg+"</em></small>")})})})}},wpacuBytesToSize:function(a){return 0===a?"N/A":(a/1024).toFixed(4)+" KB"},wpacuAjaxUpdateKeepTheGroupsState:function(b,c){if(a("#wpacu-assets-groups-change-state-area").attr("data-wpacu-groups-current-state")==b)return void a("#"+c).prop("disabled",!1);var d={action:wpacu_object.plugin_prefix+"_update_settings",wpacu_nonce:wpacu_object.wpacu_update_specific_settings_nonce,wpacu_update_keep_the_groups:"yes",wpacu_keep_the_groups_state:b,time_r:(new Date).getTime()};try{a.post(wpacu_object.ajax_url,d,function(d){"done"==d&&a("#wpacu-assets-groups-change-state-area").attr("data-wpacu-groups-current-state",b),a("#"+c).prop("disabled",!1)})}catch(b){a("#"+c).prop("disabled",!1)}},wpacuAjaxUpdateKeepTheAssetRowState:function(b,c,d,e){var f={action:wpacu_object.plugin_prefix+"_update_asset_row_state",wpacu_update_asset_row_state:"yes",wpacu_asset_row_state:b,wpacu_handle:c,wpacu_handle_for:d,time_r:(new Date).getTime(),wpacu_nonce:wpacu_object.wpacu_update_asset_row_state_nonce};e.addClass("wpacu_hide"),a.post(wpacu_object.ajax_url,f,function(a){e.removeClass("wpacu_hide"),console.log(a)})},wpacuTriggerAdjustTextAreaHeightAllTextareas:function(){[].slice.call(document.querySelectorAll('textarea[data-wpacu-adapt-height="1"]')).forEach(function(b){b.style.boxSizing=b.style.mozBoxSizing="border-box",b.style.overflowY="hidden";var c=b.scrollHeight;b.addEventListener("input",function(){a.fn.wpAssetCleanUp().wpacuAdjustTextareaHeight(b,c)}),window.addEventListener("resize",function(){a.fn.wpAssetCleanUp().wpacuAdjustTextareaHeight(b,c)}),a.fn.wpAssetCleanUp().wpacuAdjustTextareaHeight(b,c)})},wpacuAdjustTextareaHeight:function(a,b){var c=parseInt(window.getComputedStyle(a).height,10),d=c-a.clientHeight;a.style.height=0,a.style.height=Math.max(b,a.scrollHeight+d)+"px"}}}}(jQuery),jQuery(document).ready(function(a){a.fn.wpAssetCleanUpSettingsArea=function(){return{actions:function(){a(document).on("click","a[data-wpacu-vertical-link-target]",function(b){b.preventDefault(),a.fn.wpAssetCleanUpSettingsArea().tabOpenSettingsArea(b,a(this).attr("data-wpacu-vertical-link-target"))}),a(document).on("click","a[data-wpacu-settings-tab-key]",function(b){b.preventDefault(),a.fn.wpAssetCleanUpSettingsArea().tabOpenSettingsArea(b,a(this).attr("data-wpacu-settings-tab-key"))}),a(document).on("click",'input[type="checkbox"]#wpacu_disable_rss_feed',function(){a(this).is(":checked")?a("#wpacu_remove_main_feed_link, #wpacu_remove_comment_feed_link").prop("checked",!0):a("#wpacu_remove_main_feed_link, #wpacu_remove_comment_feed_link").prop("checked",!1)}),a(document).on("click",'input[name="wpacu_sub_tab_area"]',function(){a(this).prop("checked")&&a("#wpacu-selected-sub-tab-area").val(a(this).val())}),a(document).on("click","#wpacu_minify_css_enable, #wpacu_combine_loaded_css_enable, #wpacu_minify_js_enable, #wpacu_combine_loaded_js_enable, #wpacu_cdn_rewrite_enable, #wpacu_enable_test_mode",function(){a(this).prop("checked")?a('[data-linked-to="'+a(this).attr("id")+'"]').find(".wpacu-circle-status").addClass("wpacu-on").removeClass("wpacu-off"):a('[data-linked-to="'+a(this).attr("id")+'"]').find(".wpacu-circle-status").addClass("wpacu-off").removeClass("wpacu-on")}),a(document).on("click","#wpacu_inline_css_files_below_size_checkbox",function(){a(this).is(":checked")?a("#wpacu_inline_css_files_enable").prop("checked",!0).trigger("tick"):""===a("#wpacu_inline_css_files_list").val()&&a("#wpacu_inline_css_files_enable").prop("checked",!1).trigger("tick")}),a(document).on("click","#wpacu_inline_js_files_below_size_checkbox",function(){if(a(this).is(":checked")){if(!confirm(wpacu_object.inline_auto_js_files_confirm_msg))return!1;a("#wpacu_inline_js_files_enable").prop("checked",!0).trigger("tick")}else""===a("#wpacu_inline_js_files_list").val()&&a("#wpacu_inline_js_files_enable").prop("checked",!1).trigger("tick")}),a(document).on("click","#wpacu_dashboard",function(){a(this).prop("checked")?a("#wpacu-settings-assets-retrieval-mode").show():a("#wpacu-settings-assets-retrieval-mode").hide()}),a(document).on("change",".wpacu-dom-get-type-selection",function(){a(this).is(":checked")&&(a(".wpacu-dom-get-type-info").hide(),a("#"+a(this).attr("data-target")).fadeIn("fast"))}),a(document).on("click","#wpacu_frontend",function(){a(this).prop("checked")?a("#wpacu-settings-frontend-exceptions").show():a("#wpacu-settings-frontend-exceptions").hide()}),a(document).on("change",".google_fonts_combine_type",function(){a(".wpacu_google_fonts_combine_type_area").hide(),"async"===a(this).val()?a("#wpacu_google_fonts_combine_type_async_info_area").fadeIn():"async_preload"===a(this).val()?a("#wpacu_google_fonts_combine_type_async_preload_info_area").fadeIn():a("#wpacu_google_fonts_combine_type_rb_info_area").fadeIn()}),a("#wpacu-allow-manage-assets-to-select-list-area").length>0&&!a("#wpacu-allow-manage-assets-to-select-list-area").hasClass("wpacu_hide")&&setTimeout(function(){jQuery("#wpacu-allow-manage-assets-to-select-list").chosen()},200),a("#wpacu-allow-manage-assets-to-select").on("click change",function(){"chosen"===a(this).val()?(a("#wpacu-allow-manage-assets-to-select-list-area").removeClass("wpacu_hide"),setTimeout(function(){jQuery("#wpacu-allow-manage-assets-to-select-list").chosen()},200)):a("#wpacu-allow-manage-assets-to-select-list-area").addClass("wpacu_hide")}),a("#wpacu_assets_list_layout").on("click change",function(){"by-location"===a(this).val()?a("#wpacu-assets-list-by-location-selected").fadeIn("fast"):a("#wpacu-assets-list-by-location-selected").fadeOut("fast")}),a("#wpacu_disable_jquery_migrate").on("click",function(){return!a(this).is(":checked")||(!(!a(this).is(":checked")||!confirm(wpacu_object.jquery_migration_disable_confirm_msg))||(a(this).prop("checked",!1),!1))}),a("#wpacu_disable_comment_reply").on("click",function(){return!a(this).is(":checked")||(!(!a(this).is(":checked")||!confirm(wpacu_object.comment_reply_disable_confirm_msg))||(a(this).prop("checked",!1),!1))}),a("[data-target-opacity]").on("click change tick",function(){a(this).prop("checked")?a("#"+a(this).attr("data-target-opacity")).css({opacity:1}):a("#"+a(this).attr("data-target-opacity")).css({opacity:.4})}),a("#wpacu-show-assets-meta-box-checkbox").on("click change",function(){a(this).prop("checked")?(a("#wpacu-show-assets-enabled-area").show(),a("#wpacu-show-assets-disabled-area").hide()):(a("#wpacu-show-assets-enabled-area").hide(),a("#wpacu-show-assets-disabled-area").show())}),
|
4 |
+
a(document).on("change",".wpacu-combine-loaded-js-level",function(){a(this).is(":checked")&&(a(".wpacu_combine_loaded_js_level_area").removeClass("wpacu_active"),a("#"+a(this).attr("data-target")).addClass("wpacu_active"))});var b=a('#wpacu-update-button-area input[type="submit"]');a(document).on("submit","#wpacu-settings-form, .wpacu-settings-form",function(){b.attr("disabled",!0),a("#wpacu-updating-settings").addClass("wpacu-show").removeClass("wpacu-hide")}),a(document).on("submit","form#wpacu-settings-form, form#wpacu_dash_assets_manager_form",function(){return b.attr("disabled",!0),a("#wpacu-updating-settings").show(),!0})},tabOpenSettingsArea:function(b,c){b.preventDefault();var d,e,f;for(e=document.getElementsByClassName("wpacu-settings-tab-content"),d=0;d<e.length;d++)e[d].style.display="none";for(f=document.getElementsByClassName("wpacu-settings-tab-link"),d=0;d<f.length;d++)f[d].className=f[d].className.replace(" active","");document.getElementById(c).style.display="table-cell",
|
5 |
+
a('a[href="#'+c+'"]').addClass("active"),a("#wpacu-selected-tab-area").val(c)}}},a.fn.wpAssetCleanUpSettingsArea().actions(),a.fn.wpAssetCleanUpToolsArea=function(){return{actions:function(){var b,c;a("#wpacu-reset-drop-down").on("change keyup keydown mouseup mousedown click",function(){""===a(this).val()?(a("#wpacu-warning-read").removeClass("wpacu-visible"),a("#wpacu-reset-submit-btn").attr("disabled","disabled").removeClass("button-primary").addClass("button-secondary")):("reset_everything"===a(this).val()?a("#wpacu-license-data-remove-area, #wpacu-cache-assets-remove-area").addClass("wpacu-visible"):a("#wpacu-license-data-remove-area, #wpacu-cache-assets-remove-area").removeClass("wpacu-visible"),a("#wpacu-warning-read").addClass("wpacu-visible"),a("#wpacu-reset-submit-btn").removeAttr("disabled").removeClass("button-secondary").addClass("button-primary")),a(".wpacu-tools-area .wpacu-warning").hide(),b=a(this).find("option:selected"),a("#"+b.attr("data-id")).show()}),a("#wpacu-reset-submit-btn").on("click",function(){if("reset_settings"===a("#wpacu-reset-drop-down").val()?c=wpacu_object.reset_settings_confirm_msg:"reset_critical_css"===a("#wpacu-reset-drop-down").val()?c=wpacu_object.reset_critical_css_confirm_msg:"reset_everything_except_settings"===a("#wpacu-reset-drop-down").val()?c=wpacu_object.reset_everything_except_settings_confirm_msg:"reset_everything"===a("#wpacu-reset-drop-down").val()&&(c=wpacu_object.reset_everything_confirm_msg),!confirm(c))return!1;a("#wpacu-action-confirmed").val("yes"),setTimeout(function(){"yes"===a("#wpacu-action-confirmed").val()&&a("#wpacu-tools-form").trigger("submit")},1e3)}),a(document).on("submit","#wpacu-import-form",function(){if(!confirm(wpacu_object.import_confirm_msg))return!1;a(this).find("button").addClass("wpacu-importing").prop("disabled",!0)})}}},a.fn.wpAssetCleanUpToolsArea().actions(),a.fn.wpAssetCleanUpFrontendCssJsManagerArea=function(){return{actions:function(){var b=a("#wpacu-update-front-settings-area .wpacu_update_btn");if(a(document).on("submit","#wpacu-frontend-form",function(){return b.attr("disabled",!0).addClass("wpacu_submitting"),a("#wpacu-updating-front-settings").show(),!0}),a("#wpacu_wrap_assets").length>0&&setTimeout(function(){a.fn.wpAssetCleanUp().cssJsManagerActions()},200),a("#wpacu-assets-collapsible-wrap-hardcoded-list").length>0){var c={};c[wpacu_object.plugin_prefix+"_load"]=1,c[wpacu_object.plugin_prefix+"_time_r"]=(new Date).getTime(),c.wpacu_just_hardcoded=1,a.ajax({method:"GET",url:wpacu_object.page_url,data:c,cache:!1,complete:function(b,c){"error"===b.statusText&&a.fn.wpAssetCleanUp().wpacuParseResultsForHarcodedAssets(b.responseText)}}).done(function(b){a.fn.wpAssetCleanUp().wpacuParseResultsForHarcodedAssets(b)})}}}},a.fn.wpAssetCleanUpFrontendCssJsManagerArea().actions(),a.fn.wpAssetCleanUpDashboardCssJsManagerArea=function(){return{actions:function(){("default"===wpacu_object.list_show_status||""===wpacu_object.list_show_status||wpacu_object.override_assets_list_load)&&a.fn.wpAssetCleanUp().wpacuAjaxGetAssetsArea(!1),"fetch_on_click"===wpacu_object.list_show_status&&a(document).on("click","#wpacu_ajax_fetch_on_click_btn",function(b){b.preventDefault(),a(this).hide(),a("#wpacu_fetching_assets_list_wrap").show(),a.fn.wpAssetCleanUp().wpacuAjaxGetAssetsArea(!0)}),a(document).on("click",".wp-admin.post-php .edit-post-header__settings button.is-primary",function(){a.fn.wpAssetCleanUp().limitSubmittedFields();var b=a(this);setTimeout(function(){var c=function(){if(!("true"===b.attr("aria-disabled")||a("#editor").hasClass("is-validating")||a("#wpacu_ajax_fetch_on_click_btn").length>0||0!==a(".edit-post-header__settings .is-saving").length)){if(a("#wpacu_meta_box_content").length>0){a("#wpacu-assets-reloading").remove();var c='<span id="wpacu-assets-reloading" class="editor-post-saved-state is-wpacu-reloading">'+wpacu_object.reload_icon+wpacu_object.reload_msg+"</span>";a(".wp-admin.post-php .edit-post-header__settings").prepend(c),a(".wpacu_asset_row, .wpacu-page-options .wpacu-assets-collapsible-content").addClass("wpacu-loading"),a.fn.wpAssetCleanUp().wpacuAjaxGetAssetsArea(!0),a.fn.wpAssetCleanUpClearCache().wpacuAjaxClearCache(),clearInterval(d)}}},d=setInterval(c,900)},500)})}}},a.fn.wpAssetCleanUpDashboardCssJsManagerArea().actions(),a.fn.wpAssetCleanUpCommonCssJsManagerArea=function(){return{actions:function(){a(document).on("submit","form#wpacu-frontend-form, form#wpacu_dash_assets_manager_form, body.wp-admin form#post, body.wp-admin #edittag",function(){return a.fn.wpAssetCleanUp().limitSubmittedFields()}),a(document).on("click",".wpacu-filter-handle",function(b){alert(a(this).attr("data-wpacu-filter-handle-message")),b.preventDefault()}),a(document).on("click","#wpacu-assets-contract-all",function(){a(this).prop("disabled",!0),a.fn.wpAssetCleanUp().wpacuAjaxUpdateKeepTheGroupsState("contracted",a(this).attr("id"))}),a(document).on("click","#wpacu-assets-expand-all",function(){a(this).prop("disabled",!0),a.fn.wpAssetCleanUp().wpacuAjaxUpdateKeepTheGroupsState("expanded",a(this).attr("id"))})}}},a.fn.wpAssetCleanUpCommonCssJsManagerArea().actions(),a.fn.wpAssetCleanUpClearCache=function(){return{init:function(){""!==wpacu_object.clear_cache_on_page_load&&a.fn.wpAssetCleanUpClearCache().wpacuAjaxClearCache(),""!==wpacu_object.clear_other_caches&&setTimeout(function(){a.fn.wpAssetCleanUpClearCache().wpacuClearAutoptimizeCache()},150)},afterSubmit:function(){try{var b;a('input[type="hidden"][name="_wp_http_referer"]').length>0&&(b=a('input[type="hidden"][name="_wp_http_referer"]').val(),b.includes("term.php?taxonomy=")&&b.includes("message=")&&a.fn.wpAssetCleanUpClearCache().wpacuAjaxClearCache(),b.includes("post.php?post=")&&b.includes("message=")&&a.fn.wpAssetCleanUpClearCache().wpacuAjaxClearCache())}catch(a){console.log(a)}},wpacuAjaxClearCache:function(){if(void 0!==wpacu_object.wpacu_ajax_preload_url_nonce){a("#hidden_post_status").length>0&&"draft"===a("#hidden_post_status").val()||a.post(wpacu_object.ajax_url,{action:wpacu_object.plugin_prefix+"_clear_cache",time_r:(new Date).getTime(),wpacu_nonce:wpacu_object.wpacu_ajax_clear_cache_nonce},function(b){setTimeout(function(){a.fn.wpAssetCleanUpClearCache().wpacuClearAutoptimizeCache(),wpacu_object.is_frontend_view?a.post(wpacu_object.ajax_url,{action:wpacu_object.plugin_prefix+"_preload",page_url:wpacu_object.page_url,wpacu_nonce:wpacu_object.wpacu_ajax_preload_url_nonce,time_r:(new Date).getTime()}):a.get(wpacu_object.page_url,{wpacu_preload:1,wpacu_no_frontend_show:1,time_r:(new Date).getTime()},function(){a.post(wpacu_object.ajax_url,{action:wpacu_object.plugin_prefix+"_preload",page_url:wpacu_object.page_url,wpacu_nonce:wpacu_object.wpacu_ajax_preload_url_nonce,time_r:(new Date).getTime()})})},150)})}},wpacuClearAutoptimizeCache:function(){if("false"==wpacu_object.clear_autoptimize_cache)return void console.log(wpacu_object.plugin_title+': Autoptimize cache clearing is deactivated via "WPACU_DO_NOT_ALSO_CLEAR_AUTOPTIMIZE_CACHE" constant.');a("#wp-admin-bar-autoptimize-default li").length>0&&void 0!==autoptimize_ajax_object.ajaxurl&&void 0!==autoptimize_ajax_object.nonce&&a.ajax({type:"GET",url:autoptimize_ajax_object.ajaxurl,data:{action:"autoptimize_delete_cache",nonce:autoptimize_ajax_object.nonce},dataType:"json",cache:!1,timeout:9e3,success:function(a){},error:function(a,b){}})}}},a.fn.wpAssetCleanUpClearCache().init(),a.fn.wpAssetCleanUp().wpacuTriggerAdjustTextAreaHeightAllTextareas(),a.fn.wpAssetCleanUpBulkChangesArea=function(){return{actions:function(){a(document).on("click",".wpacu_bulk_rule_checkbox, .wpacu_remove_preload",function(){var b=a(this).parents(".wpacu_bulk_change_row");a(this).prop("checked")?b.addClass("wpacu_selected"):b.removeClass("wpacu_selected")}),a(document).on("change","#wpacu_post_type_select",function(){a("#wpacu_post_type_form").trigger("submit")})}}},a.fn.wpAssetCleanUpBulkChangesArea().actions()}),function(a){a(window).on("load",function(){a.fn.wpAssetCleanUp().wpacuCheckSourcesFor404Errors()})}(jQuery);
|
assets/style.css
ADDED
@@ -0,0 +1,4743 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@charset "UTF-8";
|
2 |
+
#wpacu-top-area {
|
3 |
+
margin: 15px 0;
|
4 |
+
padding: 0 10px;
|
5 |
+
}
|
6 |
+
|
7 |
+
#wpacu-logo-wrap {
|
8 |
+
width: auto;
|
9 |
+
display: inline-block;
|
10 |
+
position: relative;
|
11 |
+
}
|
12 |
+
#wpacu-logo-wrap a {
|
13 |
+
display: block;
|
14 |
+
}
|
15 |
+
#wpacu-logo-wrap img {
|
16 |
+
width: 352px;
|
17 |
+
height: 79px;
|
18 |
+
}
|
19 |
+
#wpacu-logo-wrap .wpacu-version-sign {
|
20 |
+
position: absolute;
|
21 |
+
height: auto;
|
22 |
+
font-family: "FiraSans-Medium", "proxima-nova-1", "Montserrat", Helvetica, sans-serif;
|
23 |
+
font-size: 13px;
|
24 |
+
font-weight: 600;
|
25 |
+
letter-spacing: 1px;
|
26 |
+
padding: 5px 11px;
|
27 |
+
border-radius: 15px;
|
28 |
+
right: -60px;
|
29 |
+
top: 30px;
|
30 |
+
width: auto;
|
31 |
+
display: inline-block;
|
32 |
+
text-align: center;
|
33 |
+
}
|
34 |
+
#wpacu-logo-wrap .wpacu-version-sign > div {
|
35 |
+
position: relative;
|
36 |
+
}
|
37 |
+
#wpacu-logo-wrap .wpacu-version-sign > div .wpacu-version-text {
|
38 |
+
position: absolute;
|
39 |
+
font-weight: lighter;
|
40 |
+
font-size: 11px;
|
41 |
+
bottom: -25px;
|
42 |
+
color: #74777b;
|
43 |
+
}
|
44 |
+
#wpacu-logo-wrap .wpacu-version-sign.wpacu-lite {
|
45 |
+
color: #74777b;
|
46 |
+
background: rgba(40, 44, 42, 0.05);
|
47 |
+
}
|
48 |
+
#wpacu-logo-wrap .wpacu-version-sign.wpacu-lite > div .wpacu-version-text {
|
49 |
+
left: -7px;
|
50 |
+
}
|
51 |
+
#wpacu-logo-wrap .wpacu-version-sign.wpacu-pro {
|
52 |
+
color: #004567;
|
53 |
+
background-color: rgba(40, 44, 42, 0.05);
|
54 |
+
}
|
55 |
+
#wpacu-logo-wrap .wpacu-version-sign.wpacu-pro > div .wpacu-version-text {
|
56 |
+
left: -6px;
|
57 |
+
}
|
58 |
+
|
59 |
+
#wpacu-quick-actions {
|
60 |
+
color: #74777b;
|
61 |
+
float: right;
|
62 |
+
width: auto;
|
63 |
+
margin-right: 30px;
|
64 |
+
background: rgba(40, 44, 42, 0.05);
|
65 |
+
border-radius: 10px;
|
66 |
+
padding: 6px 12px;
|
67 |
+
}
|
68 |
+
#wpacu-quick-actions .wpacu-actions-title {
|
69 |
+
font-weight: 200;
|
70 |
+
letter-spacing: 0.5px;
|
71 |
+
}
|
72 |
+
#wpacu-quick-actions a {
|
73 |
+
color: #004567;
|
74 |
+
text-decoration: none;
|
75 |
+
}
|
76 |
+
#wpacu-quick-actions a:hover {
|
77 |
+
color: #0073aa;
|
78 |
+
}
|
79 |
+
|
80 |
+
/* Adapted from: http://tympanus.net/codrops/?p=19559 */
|
81 |
+
/* Default tab style */
|
82 |
+
/* Page will reload, tabs do not load the content instantly through JavaScript */
|
83 |
+
.wpacu-tabs {
|
84 |
+
position: relative;
|
85 |
+
overflow: hidden;
|
86 |
+
margin: 0 auto 20px;
|
87 |
+
width: 100%;
|
88 |
+
font-weight: 300;
|
89 |
+
font-size: 20px;
|
90 |
+
}
|
91 |
+
.wpacu-tabs nav {
|
92 |
+
text-align: center;
|
93 |
+
}
|
94 |
+
.wpacu-tabs nav ul {
|
95 |
+
position: relative;
|
96 |
+
display: -ms-flexbox;
|
97 |
+
display: -webkit-flex;
|
98 |
+
display: -moz-flex;
|
99 |
+
display: -ms-flex;
|
100 |
+
display: flex;
|
101 |
+
padding: 0;
|
102 |
+
list-style: none;
|
103 |
+
-ms-box-orient: horizontal;
|
104 |
+
-ms-box-pack: center;
|
105 |
+
-webkit-flex-flow: row wrap;
|
106 |
+
-moz-flex-flow: row wrap;
|
107 |
+
-ms-flex-flow: row wrap;
|
108 |
+
flex-flow: row wrap;
|
109 |
+
-webkit-justify-content: center;
|
110 |
+
-moz-justify-content: center;
|
111 |
+
-ms-justify-content: center;
|
112 |
+
justify-content: center;
|
113 |
+
}
|
114 |
+
.wpacu-tabs nav ul li {
|
115 |
+
position: relative;
|
116 |
+
z-index: 1;
|
117 |
+
display: block;
|
118 |
+
margin: 0;
|
119 |
+
text-align: center;
|
120 |
+
-webkit-flex: 1;
|
121 |
+
-moz-flex: 1;
|
122 |
+
-ms-flex: 1;
|
123 |
+
flex: 1;
|
124 |
+
}
|
125 |
+
.wpacu-tabs nav ul li span.extra-info {
|
126 |
+
position: absolute;
|
127 |
+
font-size: 12px;
|
128 |
+
left: -50%;
|
129 |
+
right: 50%;
|
130 |
+
bottom: 12px;
|
131 |
+
-webkit-transform: translate(50%, 50%);
|
132 |
+
transform: translate(50%, 50%);
|
133 |
+
white-space: nowrap;
|
134 |
+
}
|
135 |
+
.wpacu-tabs nav ul li span.extra-info.has-bulk-unloads {
|
136 |
+
right: 48%;
|
137 |
+
}
|
138 |
+
.wpacu-tabs nav ul li span.extra-info.no-bulk-unloads {
|
139 |
+
left: 0;
|
140 |
+
right: 2px;
|
141 |
+
bottom: 2px;
|
142 |
+
-webkit-transform: inherit;
|
143 |
+
transform: inherit;
|
144 |
+
}
|
145 |
+
.wpacu-tabs nav ul li span.extra-info .dashicons {
|
146 |
+
font-size: 16px;
|
147 |
+
margin-right: -3px;
|
148 |
+
margin-top: 1px;
|
149 |
+
}
|
150 |
+
.wpacu-tabs nav ul li span.extra-info.license-status.inactive {
|
151 |
+
color: #cc0000;
|
152 |
+
}
|
153 |
+
.wpacu-tabs nav ul li span.extra-info.license-status.active {
|
154 |
+
color: green;
|
155 |
+
}
|
156 |
+
.wpacu-tabs nav ul li span.extra-info.assets-unloaded-false {
|
157 |
+
color: #004567;
|
158 |
+
}
|
159 |
+
.wpacu-tabs nav ul li span.extra-info.assets-unloaded-true, .wpacu-tabs nav ul li span.extra-info.bulk-unloads-true {
|
160 |
+
color: green;
|
161 |
+
}
|
162 |
+
.wpacu-tabs nav a {
|
163 |
+
position: relative;
|
164 |
+
display: block;
|
165 |
+
overflow: hidden;
|
166 |
+
text-overflow: ellipsis;
|
167 |
+
white-space: nowrap;
|
168 |
+
line-height: 2.5;
|
169 |
+
}
|
170 |
+
.wpacu-tabs nav a span {
|
171 |
+
vertical-align: middle;
|
172 |
+
font-size: 14px;
|
173 |
+
}
|
174 |
+
.wpacu-tabs nav li.wpacu-tab-current a {
|
175 |
+
color: #74777b;
|
176 |
+
}
|
177 |
+
.wpacu-tabs nav a:focus {
|
178 |
+
outline: none;
|
179 |
+
}
|
180 |
+
.wpacu-tabs .dashicons {
|
181 |
+
font-size: 20px;
|
182 |
+
}
|
183 |
+
|
184 |
+
/* Fallback */
|
185 |
+
.no-js .wpacu-content-wrap section {
|
186 |
+
display: block;
|
187 |
+
padding-bottom: 2em;
|
188 |
+
border-bottom: 1px solid rgba(255, 255, 255, 0.6);
|
189 |
+
}
|
190 |
+
|
191 |
+
.no-flexbox nav ul {
|
192 |
+
display: block;
|
193 |
+
}
|
194 |
+
.no-flexbox nav ul li {
|
195 |
+
min-width: 15%;
|
196 |
+
display: inline-block;
|
197 |
+
}
|
198 |
+
|
199 |
+
@media screen and (max-width: 58em) {
|
200 |
+
.wpacu-tabs nav a.icon span {
|
201 |
+
display: none;
|
202 |
+
}
|
203 |
+
.wpacu-tabs nav a:before {
|
204 |
+
margin-right: 0;
|
205 |
+
}
|
206 |
+
}
|
207 |
+
/*****************************/
|
208 |
+
/* Underline */
|
209 |
+
/*****************************/
|
210 |
+
.wpacu-tabs-style-underline nav {
|
211 |
+
background: #fff;
|
212 |
+
}
|
213 |
+
.wpacu-tabs-style-underline nav a {
|
214 |
+
color: #74777b;
|
215 |
+
font-size: 18px;
|
216 |
+
text-transform: uppercase;
|
217 |
+
text-decoration: none;
|
218 |
+
padding: 0.25em 0 0.5em;
|
219 |
+
border-left: 1px solid #e7ecea;
|
220 |
+
-webkit-transition: color 0.2s;
|
221 |
+
transition: color 0.2s;
|
222 |
+
}
|
223 |
+
.wpacu-tabs-style-underline nav li:last-child a {
|
224 |
+
border-right: 1px solid #e7ecea;
|
225 |
+
}
|
226 |
+
.wpacu-tabs-style-underline nav li a::after {
|
227 |
+
position: absolute;
|
228 |
+
bottom: 0;
|
229 |
+
left: 0;
|
230 |
+
width: 100%;
|
231 |
+
height: 6px;
|
232 |
+
background: #2CC185;
|
233 |
+
content: "";
|
234 |
+
-webkit-transition: -webkit-transform 0.3s;
|
235 |
+
transition: transform 0.3s;
|
236 |
+
-webkit-transform: translate3d(0, 150%, 0);
|
237 |
+
transform: translate3d(0, 150%, 0);
|
238 |
+
}
|
239 |
+
.wpacu-tabs-style-underline nav li.wpacu-tab-current a::after {
|
240 |
+
-webkit-transform: translate3d(0, 0, 0);
|
241 |
+
transform: translate3d(0, 0, 0);
|
242 |
+
}
|
243 |
+
.wpacu-tabs-style-underline nav a span {
|
244 |
+
font-weight: 700;
|
245 |
+
}
|
246 |
+
|
247 |
+
/*****************************/
|
248 |
+
/* Top Line */
|
249 |
+
/*****************************/
|
250 |
+
.wpacu-tabs-style-topline {
|
251 |
+
max-width: 1800px;
|
252 |
+
margin: 20px auto 22px 0;
|
253 |
+
width: 98%;
|
254 |
+
font-weight: 300;
|
255 |
+
text-decoration: none;
|
256 |
+
}
|
257 |
+
.wpacu-tabs-style-topline nav li {
|
258 |
+
border: 1px solid rgba(40, 44, 42, 0.1);
|
259 |
+
}
|
260 |
+
.wpacu-tabs-style-topline nav li:not(:last-child) {
|
261 |
+
border-right: none;
|
262 |
+
}
|
263 |
+
.wpacu-tabs-style-topline nav li.wpacu-tab-current {
|
264 |
+
border-top-color: #008f9c;
|
265 |
+
border-bottom: none;
|
266 |
+
}
|
267 |
+
.wpacu-tabs-style-topline nav a {
|
268 |
+
padding: 20px 18px;
|
269 |
+
background: rgba(40, 44, 42, 0.05);
|
270 |
+
color: #74777b;
|
271 |
+
line-height: 1;
|
272 |
+
-webkit-transition: color 0.2s;
|
273 |
+
transition: color 0.2s;
|
274 |
+
text-decoration: none;
|
275 |
+
}
|
276 |
+
.wpacu-tabs-style-topline nav a:hover, .wpacu-tabs-style-topline nav a:focus {
|
277 |
+
background: none;
|
278 |
+
color: #008f9c;
|
279 |
+
}
|
280 |
+
.wpacu-tabs-style-topline nav li.wpacu-tab-current a {
|
281 |
+
background: none;
|
282 |
+
box-shadow: inset 0 3px 0 #008f9c;
|
283 |
+
color: #008f9c;
|
284 |
+
}
|
285 |
+
.wpacu-tabs-style-topline nav li.wpacu-tab-current a span:not(.dashicons) {
|
286 |
+
font-weight: 600;
|
287 |
+
}
|
288 |
+
.wpacu-tabs-style-topline nav a span {
|
289 |
+
text-transform: uppercase;
|
290 |
+
font-weight: 400;
|
291 |
+
}
|
292 |
+
|
293 |
+
.wpacu_hide {
|
294 |
+
display: none !important;
|
295 |
+
}
|
296 |
+
|
297 |
+
.wpacu-script-attributes-area {
|
298 |
+
display: block;
|
299 |
+
margin-bottom: 12px;
|
300 |
+
}
|
301 |
+
.wpacu-script-attributes-area > div:first-of-type {
|
302 |
+
display: inline-block;
|
303 |
+
float: left;
|
304 |
+
margin-right: 15px;
|
305 |
+
line-height: 30px;
|
306 |
+
vertical-align: middle;
|
307 |
+
}
|
308 |
+
.wpacu-script-attributes-area ul.wpacu-script-attributes-settings {
|
309 |
+
display: inline-block;
|
310 |
+
float: left;
|
311 |
+
padding: 5px 7px !important;
|
312 |
+
}
|
313 |
+
.wpacu-script-attributes-area ul.wpacu-script-attributes-settings.wpacu-first {
|
314 |
+
margin: 0 15px 0 0 !important;
|
315 |
+
}
|
316 |
+
.wpacu-script-attributes-area ul.wpacu-script-attributes-settings label {
|
317 |
+
margin: 0 !important;
|
318 |
+
}
|
319 |
+
.wpacu-script-attributes-area ul.wpacu-script-attributes-settings li {
|
320 |
+
display: inline-block;
|
321 |
+
margin: 0 16px 0 0 !important;
|
322 |
+
}
|
323 |
+
.wpacu-script-attributes-area ul.wpacu-script-attributes-settings li:first-child {
|
324 |
+
margin: 0 10px 0 0 !important;
|
325 |
+
}
|
326 |
+
.wpacu-script-attributes-area ul.wpacu-script-attributes-settings li:last-child {
|
327 |
+
margin: 0 2px 0 0 !important;
|
328 |
+
}
|
329 |
+
.wpacu-script-attributes-area .wpacu-script-attributes-settings {
|
330 |
+
background: white !important;
|
331 |
+
border: 1px solid #eee !important;
|
332 |
+
-webkit-border-radius: 5px;
|
333 |
+
/* Chrome, Safari, Opera */
|
334 |
+
-moz-border-radius: 5px;
|
335 |
+
/* Firefox */
|
336 |
+
border-radius: 5px;
|
337 |
+
padding: 5px 10px !important;
|
338 |
+
list-style: none;
|
339 |
+
display: inline-block;
|
340 |
+
margin: 0;
|
341 |
+
}
|
342 |
+
.wpacu-script-attributes-area .wpacu-script-attributes-settings input[type=radio] {
|
343 |
+
width: auto;
|
344 |
+
padding: 0;
|
345 |
+
margin: 0 5px 0 0;
|
346 |
+
}
|
347 |
+
.wpacu-script-attributes-area .wpacu-script-attributes-settings:hover {
|
348 |
+
background: #f2faf2;
|
349 |
+
}
|
350 |
+
|
351 |
+
tr.wpacu_location_changed > td {
|
352 |
+
border-left: #004567 4px solid;
|
353 |
+
}
|
354 |
+
|
355 |
+
tr.wpacu_not_load th, tr.wpacu_not_load td {
|
356 |
+
background: #FFE1E1 !important;
|
357 |
+
/*
|
358 |
+
a.wpacu-assets-inline-code-collapsible {
|
359 |
+
font-size: 100%;
|
360 |
+
padding: 2px 19px 2px 8px;
|
361 |
+
|
362 |
+
&:after {
|
363 |
+
font-size: 13px;
|
364 |
+
right: 1px;
|
365 |
+
top: -4px;
|
366 |
+
height: 12px;
|
367 |
+
width: 12px;
|
368 |
+
}
|
369 |
+
}
|
370 |
+
|
371 |
+
.wpacu-script-attributes-area {
|
372 |
+
margin-top: 10px !important;
|
373 |
+
}
|
374 |
+
|
375 |
+
|
376 |
+
.wpacu-script-attributes-settings {
|
377 |
+
&.wpacu-first {
|
378 |
+
margin-right: 18px !important;
|
379 |
+
}
|
380 |
+
}
|
381 |
+
*/
|
382 |
+
}
|
383 |
+
tr.wpacu_not_load th .wpacu-assets-inline-code-wrap,
|
384 |
+
tr.wpacu_not_load th .wpacu-only-when-kept-loaded, tr.wpacu_not_load td .wpacu-assets-inline-code-wrap,
|
385 |
+
tr.wpacu_not_load td .wpacu-only-when-kept-loaded {
|
386 |
+
filter: alpha(opacity=45);
|
387 |
+
opacity: 0.45;
|
388 |
+
}
|
389 |
+
|
390 |
+
.dashicons-wpacu {
|
391 |
+
width: 17px;
|
392 |
+
height: 17px;
|
393 |
+
margin: 2px 0 0 0;
|
394 |
+
font-size: 16px;
|
395 |
+
text-decoration: none;
|
396 |
+
color: inherit !important;
|
397 |
+
}
|
398 |
+
|
399 |
+
.wpacu_widefat .check-column.wpacu_check {
|
400 |
+
padding: 10px;
|
401 |
+
}
|
402 |
+
|
403 |
+
body[class*=wpassetcleanup] #footer-left {
|
404 |
+
border-left: 2px solid green;
|
405 |
+
padding-left: 10px;
|
406 |
+
}
|
407 |
+
|
408 |
+
#wpassetcleanup_asset_list small {
|
409 |
+
width: auto;
|
410 |
+
float: none;
|
411 |
+
display: inline;
|
412 |
+
}
|
413 |
+
|
414 |
+
#wpacu_meta_box_content {
|
415 |
+
width: 99%;
|
416 |
+
}
|
417 |
+
#wpacu_meta_box_content #wpacu-fetch-list-step-1-wrap.wpacu-completed {
|
418 |
+
color: green;
|
419 |
+
}
|
420 |
+
#wpacu_meta_box_content div.select select {
|
421 |
+
max-width: inherit;
|
422 |
+
}
|
423 |
+
#wpacu_meta_box_content .emoji {
|
424 |
+
font-size: 18px;
|
425 |
+
}
|
426 |
+
#wpacu_meta_box_content h3 {
|
427 |
+
margin-left: 0;
|
428 |
+
padding-left: 0;
|
429 |
+
}
|
430 |
+
#wpacu_meta_box_content div.wpacu_note {
|
431 |
+
padding: 10px;
|
432 |
+
background-color: #f5f5f5;
|
433 |
+
}
|
434 |
+
#wpacu_meta_box_content .dashicons.dashicons-warning, #wpacu_meta_box_content .dashicons.dashicons-wordpress-alt {
|
435 |
+
color: #cc0000;
|
436 |
+
}
|
437 |
+
#wpacu_meta_box_content div.wpacu_warning {
|
438 |
+
border: 1px solid #cc0000;
|
439 |
+
}
|
440 |
+
#wpacu_meta_box_content ul.wpacu_asset_options {
|
441 |
+
margin: 0;
|
442 |
+
padding: 0;
|
443 |
+
}
|
444 |
+
#wpacu_meta_box_content ul.wpacu_asset_options li {
|
445 |
+
list-style: none;
|
446 |
+
display: inline-block;
|
447 |
+
}
|
448 |
+
#wpacu_meta_box_content ul.wpacu_asset_options label {
|
449 |
+
font-weight: normal;
|
450 |
+
margin-right: 5px;
|
451 |
+
margin-top: 5px;
|
452 |
+
margin-bottom: 5px;
|
453 |
+
}
|
454 |
+
|
455 |
+
.wpacu-updated-frontend {
|
456 |
+
font-weight: 400;
|
457 |
+
background-color: #ffffff;
|
458 |
+
border-left: 4px solid #46b450;
|
459 |
+
border-top: 1px solid #46b450;
|
460 |
+
border-right: 1px solid #46b450;
|
461 |
+
border-bottom: 1px solid #46b450;
|
462 |
+
padding: 9px 14px;
|
463 |
+
-webkit-border-radius: 5px;
|
464 |
+
/* Chrome, Safari, Opera */
|
465 |
+
-moz-border-radius: 5px;
|
466 |
+
/* Firefox */
|
467 |
+
border-radius: 5px;
|
468 |
+
}
|
469 |
+
.wpacu-updated-frontend span.dashicons-yes {
|
470 |
+
color: #46b450;
|
471 |
+
font-size: 26px;
|
472 |
+
}
|
473 |
+
|
474 |
+
#wpacu-update-front-settings-area {
|
475 |
+
margin: 10px 0;
|
476 |
+
display: inline-block;
|
477 |
+
position: relative;
|
478 |
+
}
|
479 |
+
@media only screen and (min-width: 768px) {
|
480 |
+
#wpacu-update-front-settings-area {
|
481 |
+
position: -webkit-sticky;
|
482 |
+
position: sticky;
|
483 |
+
bottom: 0;
|
484 |
+
display: block;
|
485 |
+
padding: 15px 0;
|
486 |
+
z-index: 1000000;
|
487 |
+
border-top: 1px solid #cdcdcd;
|
488 |
+
background: #fff;
|
489 |
+
}
|
490 |
+
}
|
491 |
+
|
492 |
+
#wpacu-updating-front-settings {
|
493 |
+
display: none;
|
494 |
+
position: absolute;
|
495 |
+
top: 20px;
|
496 |
+
left: 142px;
|
497 |
+
}
|
498 |
+
|
499 |
+
/*
|
500 |
+
* Asset List Styling
|
501 |
+
*/
|
502 |
+
.wpacu_load_regex_area_wrap label.wpacu_bold span, .wpacu_unload_regex_area_wrap label.wpacu_bold span, .wpacu_manage_via_tax_area_wrap label.wpacu_bold span {
|
503 |
+
font-weight: 600 !important;
|
504 |
+
}
|
505 |
+
.wpacu_load_regex_area_wrap label.wpacu_unload_checked span, .wpacu_unload_regex_area_wrap label.wpacu_unload_checked span, .wpacu_manage_via_tax_area_wrap label.wpacu_unload_checked span {
|
506 |
+
color: #d54e21;
|
507 |
+
}
|
508 |
+
.wpacu_load_regex_area_wrap .wpacu_handle_unload_regex_input_wrap, .wpacu_unload_regex_area_wrap .wpacu_handle_unload_regex_input_wrap, .wpacu_manage_via_tax_area_wrap .wpacu_handle_unload_regex_input_wrap {
|
509 |
+
margin: 4px 0 0;
|
510 |
+
}
|
511 |
+
.wpacu_load_regex_area_wrap .wpacu_handle_unload_regex_input_wrap input[type=text], .wpacu_unload_regex_area_wrap .wpacu_handle_unload_regex_input_wrap input[type=text], .wpacu_manage_via_tax_area_wrap .wpacu_handle_unload_regex_input_wrap input[type=text] {
|
512 |
+
line-height: normal;
|
513 |
+
min-height: 20px;
|
514 |
+
min-width: 300px;
|
515 |
+
max-width: 400px;
|
516 |
+
display: inline-block;
|
517 |
+
padding: 4px;
|
518 |
+
-webkit-border-radius: 3px;
|
519 |
+
/* Chrome, Safari, Opera */
|
520 |
+
-moz-border-radius: 3px;
|
521 |
+
/* Firefox */
|
522 |
+
border-radius: 3px;
|
523 |
+
}
|
524 |
+
.wpacu_load_regex_area_wrap .wpacu_handle_unload_regex_input_wrap input[type=text].wpacu_disabled, .wpacu_unload_regex_area_wrap .wpacu_handle_unload_regex_input_wrap input[type=text].wpacu_disabled, .wpacu_manage_via_tax_area_wrap .wpacu_handle_unload_regex_input_wrap input[type=text].wpacu_disabled {
|
525 |
+
background: #fbfafa !important;
|
526 |
+
color: inherit;
|
527 |
+
}
|
528 |
+
|
529 |
+
/*
|
530 |
+
.wpacu_handle_unload_regex_input_wrap {
|
531 |
+
display: block;
|
532 |
+
}
|
533 |
+
|
534 |
+
div:not(.wpacu_is_global_unloaded) {
|
535 |
+
.wpacu_load_regex_input_wrap {
|
536 |
+
@include respond-to-above(medium-screens) {
|
537 |
+
display: inline-block;
|
538 |
+
}
|
539 |
+
}
|
540 |
+
}
|
541 |
+
*/
|
542 |
+
.wpacu_is_global_unloaded .wpacu_exception_options_area_wrap {
|
543 |
+
display: inline-block;
|
544 |
+
}
|
545 |
+
.wpacu_is_global_unloaded .wpacu_exception_options_area_wrap .wpacu_area_one, .wpacu_is_global_unloaded .wpacu_exception_options_area_wrap .wpacu_area_two {
|
546 |
+
display: block;
|
547 |
+
}
|
548 |
+
.wpacu_is_global_unloaded .wpacu_exception_options_area_wrap .wpacu_load_regex_input_wrap {
|
549 |
+
display: block;
|
550 |
+
}
|
551 |
+
|
552 |
+
.wpacu_exception_options_area_load_exception {
|
553 |
+
display: table;
|
554 |
+
float: none;
|
555 |
+
clear: both;
|
556 |
+
border: none;
|
557 |
+
padding: 0 !important;
|
558 |
+
background: none;
|
559 |
+
}
|
560 |
+
|
561 |
+
.wpacu_exception_options_area_wrap {
|
562 |
+
display: table;
|
563 |
+
background: none !important;
|
564 |
+
}
|
565 |
+
.wpacu_exception_options_area_wrap fieldset {
|
566 |
+
border: 1px solid #cdcdcd;
|
567 |
+
padding: 10px;
|
568 |
+
background: white;
|
569 |
+
border-radius: 5px;
|
570 |
+
}
|
571 |
+
.wpacu_exception_options_area_wrap fieldset legend {
|
572 |
+
width: auto;
|
573 |
+
font-weight: normal;
|
574 |
+
font-size: inherit;
|
575 |
+
padding: 8px 11px;
|
576 |
+
margin: 0;
|
577 |
+
background: white;
|
578 |
+
border: 1px solid #cdcdcd;
|
579 |
+
border-radius: 5px;
|
580 |
+
}
|
581 |
+
.wpacu_exception_options_area_wrap label.wpacu_bold span {
|
582 |
+
font-weight: 600 !important;
|
583 |
+
}
|
584 |
+
.wpacu_exception_options_area_wrap textarea {
|
585 |
+
line-height: normal;
|
586 |
+
min-height: 20px;
|
587 |
+
min-width: 300px;
|
588 |
+
max-width: 400px;
|
589 |
+
display: inline-block;
|
590 |
+
padding: 2px 4px;
|
591 |
+
-webkit-border-radius: 3px;
|
592 |
+
/* Chrome, Safari, Opera */
|
593 |
+
-moz-border-radius: 3px;
|
594 |
+
/* Firefox */
|
595 |
+
border-radius: 3px;
|
596 |
+
}
|
597 |
+
.wpacu_exception_options_area_wrap textarea:focus {
|
598 |
+
width: 100%;
|
599 |
+
}
|
600 |
+
.wpacu_exception_options_area_wrap textarea.wpacu_disabled {
|
601 |
+
background: #fbfafa !important;
|
602 |
+
color: inherit;
|
603 |
+
}
|
604 |
+
.wpacu_exception_options_area_wrap p:first-of-type {
|
605 |
+
margin-top: 0;
|
606 |
+
}
|
607 |
+
.wpacu_exception_options_area_wrap .wpacu_area_one {
|
608 |
+
display: table-cell;
|
609 |
+
vertical-align: top;
|
610 |
+
padding-right: 10px;
|
611 |
+
}
|
612 |
+
.wpacu_exception_options_area_wrap .wpacu_area_two {
|
613 |
+
display: table-cell;
|
614 |
+
}
|
615 |
+
@media only screen and (max-width: 1199px) {
|
616 |
+
.wpacu_exception_options_area_wrap {
|
617 |
+
display: block;
|
618 |
+
}
|
619 |
+
.wpacu_exception_options_area_wrap .wpacu_area_one, .wpacu_exception_options_area_wrap .wpacu_area_two {
|
620 |
+
display: block;
|
621 |
+
}
|
622 |
+
}
|
623 |
+
|
624 |
+
/* [wpacu_pro] */
|
625 |
+
.wpacu_manage_via_tax_dd + .chosen-container .chosen-results > li.group-option {
|
626 |
+
width: 100%;
|
627 |
+
display: block;
|
628 |
+
}
|
629 |
+
|
630 |
+
/* [/wpacu_pro] */
|
631 |
+
#wpacu_meta_box_content .wpacu_widefat {
|
632 |
+
width: 100%;
|
633 |
+
}
|
634 |
+
#wpacu_meta_box_content .wpacu-assets-collapsible-content {
|
635 |
+
padding: 0 10px !important;
|
636 |
+
}
|
637 |
+
#wpacu_meta_box_content ul.wpacu_asset_options {
|
638 |
+
vertical-align: middle;
|
639 |
+
}
|
640 |
+
#wpacu_meta_box_content ul.wpacu_asset_options.wpacu_exception_options_area > li {
|
641 |
+
display: inline-block;
|
642 |
+
float: left;
|
643 |
+
margin: 1px 25px 1px 0;
|
644 |
+
line-height: 20px;
|
645 |
+
}
|
646 |
+
#wpacu_meta_box_content ul.wpacu_asset_options.wpacu_exception_options_area > li:last-of-type {
|
647 |
+
margin: 1px 0;
|
648 |
+
}
|
649 |
+
#wpacu_meta_box_content ul.wpacu_asset_options.wpacu_exception_options_area > li input[type=text] {
|
650 |
+
margin-left: 5px;
|
651 |
+
border: 1px solid #e7e7e7;
|
652 |
+
background: #fff;
|
653 |
+
}
|
654 |
+
|
655 |
+
body.wp-admin #wpacu_wrap_assets code {
|
656 |
+
display: inline-block !important;
|
657 |
+
}
|
658 |
+
|
659 |
+
body:not(.wp-admin) #wpacu_wrap_assets code {
|
660 |
+
display: block !important;
|
661 |
+
}
|
662 |
+
|
663 |
+
#wpacu_wrap_assets {
|
664 |
+
color: #000000 !important;
|
665 |
+
text-align: left !important;
|
666 |
+
clear: both !important;
|
667 |
+
width: 90% !important;
|
668 |
+
padding: 20px !important;
|
669 |
+
margin: 30px 0 0 15px !important;
|
670 |
+
border: 1px solid #cdcdcd;
|
671 |
+
z-index: 10000 !important;
|
672 |
+
position: relative !important;
|
673 |
+
background-color: white !important;
|
674 |
+
}
|
675 |
+
#wpacu_wrap_assets div.wpacu_warning {
|
676 |
+
border: 1px solid #cc0000;
|
677 |
+
padding: 5px 10px;
|
678 |
+
}
|
679 |
+
#wpacu_wrap_assets small {
|
680 |
+
display: inline !important;
|
681 |
+
margin: 0 !important;
|
682 |
+
letter-spacing: normal !important;
|
683 |
+
}
|
684 |
+
#wpacu_wrap_assets input[type=checkbox] {
|
685 |
+
width: auto !important;
|
686 |
+
margin-right: 4px !important;
|
687 |
+
}
|
688 |
+
#wpacu_wrap_assets img:not(.wpacu-ajax-loader) {
|
689 |
+
display: inline-block !important;
|
690 |
+
}
|
691 |
+
#wpacu_wrap_assets p {
|
692 |
+
line-height: 22px !important;
|
693 |
+
margin: 10px 0 !important;
|
694 |
+
text-align: left !important;
|
695 |
+
font-weight: normal !important;
|
696 |
+
}
|
697 |
+
#wpacu_wrap_assets p:first-child {
|
698 |
+
margin: 0 0 10px !important;
|
699 |
+
}
|
700 |
+
#wpacu_wrap_assets h1 {
|
701 |
+
margin: 0 0 20px !important;
|
702 |
+
font-size: 160% !important;
|
703 |
+
text-align: left !important;
|
704 |
+
}
|
705 |
+
#wpacu_wrap_assets h3 {
|
706 |
+
margin: 20px 0;
|
707 |
+
font-size: 130%;
|
708 |
+
}
|
709 |
+
#wpacu_wrap_assets ul.wpacu_asset_options.wpacu_exception_options_area > li {
|
710 |
+
display: inline-block;
|
711 |
+
float: left;
|
712 |
+
margin: 1px 25px 1px 0;
|
713 |
+
line-height: 30px;
|
714 |
+
}
|
715 |
+
#wpacu_wrap_assets ul.wpacu_asset_options.wpacu_exception_options_area > li:last-of-type {
|
716 |
+
margin: 1px 0;
|
717 |
+
}
|
718 |
+
|
719 |
+
.wpacu_verified {
|
720 |
+
padding: 10px;
|
721 |
+
margin: 0 0 10px 0 !important;
|
722 |
+
background-color: #f5f5f5;
|
723 |
+
border-left: 1px solid #ddd;
|
724 |
+
}
|
725 |
+
.wpacu_verified span {
|
726 |
+
color: #0073aa;
|
727 |
+
font-weight: bold;
|
728 |
+
}
|
729 |
+
|
730 |
+
.wpacu_asset_row div.select {
|
731 |
+
display: inline-block;
|
732 |
+
width: auto;
|
733 |
+
}
|
734 |
+
.wpacu_asset_row:first-child td {
|
735 |
+
border-top: 1px solid #cdcdcd;
|
736 |
+
}
|
737 |
+
.wpacu_asset_row td {
|
738 |
+
border-left: 1px solid #cdcdcd;
|
739 |
+
border-right: 1px solid #cdcdcd;
|
740 |
+
border-bottom: 1px solid #cdcdcd;
|
741 |
+
}
|
742 |
+
.wpacu_asset_row.wpacu_notice_row td {
|
743 |
+
position: relative;
|
744 |
+
padding: 5px;
|
745 |
+
border-bottom: 1px solid transparent;
|
746 |
+
}
|
747 |
+
.wpacu_asset_row.wpacu_notice_row td div.wpacu-warning {
|
748 |
+
width: auto;
|
749 |
+
margin: 5px;
|
750 |
+
font-style: italic;
|
751 |
+
}
|
752 |
+
.wpacu_asset_row:not(.wpacu_notice_row) td {
|
753 |
+
padding: 18px !important;
|
754 |
+
position: relative;
|
755 |
+
}
|
756 |
+
.wpacu_asset_row:not(.wpacu_notice_row) td[data-wpacu-row-status=contracted] {
|
757 |
+
padding: 18px 18px 8px !important;
|
758 |
+
}
|
759 |
+
.wpacu_asset_row:not(.wpacu_notice_row) td:hover, .wpacu_asset_row:not(.wpacu_notice_row) td.wpacu_selected {
|
760 |
+
-moz-box-shadow: inset 0 0 12px #cdcdcd;
|
761 |
+
-webkit-box-shadow: inset 0 0 12px #cdcdcd;
|
762 |
+
box-shadow: inset 0 0 12px #cdcdcd;
|
763 |
+
}
|
764 |
+
.wpacu_asset_row:not(.wpacu_notice_row) td p {
|
765 |
+
padding: 0 !important;
|
766 |
+
margin-bottom: 8px !important;
|
767 |
+
word-wrap: break-word !important;
|
768 |
+
-ms-word-break: break-all;
|
769 |
+
word-break: break-word;
|
770 |
+
}
|
771 |
+
.wpacu_asset_row:not(.wpacu_notice_row) td label {
|
772 |
+
width: auto !important;
|
773 |
+
margin: 0 !important;
|
774 |
+
cursor: pointer !important;
|
775 |
+
display: inline-block !important;
|
776 |
+
font-size: 100% !important;
|
777 |
+
font-weight: normal !important;
|
778 |
+
}
|
779 |
+
.wpacu_asset_row:not(.wpacu_notice_row) td label span:not(.dashicons) {
|
780 |
+
font-size: 100% !important;
|
781 |
+
}
|
782 |
+
.wpacu_asset_row:not(.wpacu_notice_row) td.wpacu_check {
|
783 |
+
width: 50px !important;
|
784 |
+
}
|
785 |
+
|
786 |
+
.asset-table-extra-info td {
|
787 |
+
padding: 5px !important;
|
788 |
+
}
|
789 |
+
|
790 |
+
/* Dashboard adjust */
|
791 |
+
body.wp-admin .wpacu_asset_row td.wpacu_check {
|
792 |
+
width: 25px !important;
|
793 |
+
}
|
794 |
+
|
795 |
+
.wpacu_asset_row .dashicons-warning, .wpacu_asset_row .dashicons-wordpress-alt {
|
796 |
+
color: red !important;
|
797 |
+
}
|
798 |
+
.wpacu_asset_row .dashicons-wordpress-alt {
|
799 |
+
font-size: 17px;
|
800 |
+
vertical-align: middle;
|
801 |
+
}
|
802 |
+
|
803 |
+
label.wpacu_add_global {
|
804 |
+
cursor: pointer !important;
|
805 |
+
}
|
806 |
+
label.wpacu_input_load_checked {
|
807 |
+
font-weight: bold;
|
808 |
+
color: #d54e21;
|
809 |
+
}
|
810 |
+
label.wpacu_global_unload_exception {
|
811 |
+
font-weight: bold !important;
|
812 |
+
}
|
813 |
+
|
814 |
+
tr.wpacu_global_rule_row.wpacu_selected,
|
815 |
+
tr.wpacu_bulk_change_row.wpacu_selected,
|
816 |
+
tr.wpacu_remove_preload_row.wpacu_selected {
|
817 |
+
background: #e7e7e7;
|
818 |
+
}
|
819 |
+
|
820 |
+
/* Manage CSS/JS | Manage Critical CSS */
|
821 |
+
.wpacu-sub-page-tabs-wrap {
|
822 |
+
min-width: 320px;
|
823 |
+
margin: 0 auto 15px auto;
|
824 |
+
border-bottom: 1px solid #ccc;
|
825 |
+
}
|
826 |
+
.wpacu-sub-page-tabs-wrap label.wpacu-sub-page-nav-label {
|
827 |
+
display: inline-block;
|
828 |
+
position: relative;
|
829 |
+
border-top: 1px solid rgba(40, 44, 42, 0.1);
|
830 |
+
border-left: 1px solid rgba(40, 44, 42, 0.1);
|
831 |
+
border-right: 1px solid rgba(40, 44, 42, 0.1);
|
832 |
+
}
|
833 |
+
.wpacu-sub-page-tabs-wrap label.wpacu-sub-page-nav-label a {
|
834 |
+
display: block;
|
835 |
+
margin: 0;
|
836 |
+
padding: 15px 25px;
|
837 |
+
font-weight: 400;
|
838 |
+
text-align: center;
|
839 |
+
color: #74777b;
|
840 |
+
border-left: 1px solid transparent;
|
841 |
+
border-right: 1px solid transparent;
|
842 |
+
border-top: 2px solid transparent;
|
843 |
+
border-bottom: 0;
|
844 |
+
text-decoration: none;
|
845 |
+
background: rgba(40, 44, 42, 0.05);
|
846 |
+
}
|
847 |
+
.wpacu-sub-page-tabs-wrap label.wpacu-sub-page-nav-label a:hover {
|
848 |
+
background: #f1f1f1;
|
849 |
+
color: #008f9c;
|
850 |
+
}
|
851 |
+
.wpacu-sub-page-tabs-wrap label.wpacu-sub-page-nav-label.wpacu-selected {
|
852 |
+
color: #008f9c;
|
853 |
+
border-left: 1px solid #ccc;
|
854 |
+
border-right: 1px solid #ccc;
|
855 |
+
border-top: 2px solid #008f9c;
|
856 |
+
border-bottom: 1px transparent;
|
857 |
+
margin-bottom: -2px;
|
858 |
+
}
|
859 |
+
.wpacu-sub-page-tabs-wrap label.wpacu-sub-page-nav-label.wpacu-selected a {
|
860 |
+
background: #f1f1f1;
|
861 |
+
color: #008f9c;
|
862 |
+
font-weight: 600;
|
863 |
+
}
|
864 |
+
|
865 |
+
.nav-tab-wrapper {
|
866 |
+
border-bottom: 1px solid #ccc;
|
867 |
+
width: 95%;
|
868 |
+
/*
|
869 |
+
&.nav-assets-manager-page-types {
|
870 |
+
a {
|
871 |
+
position: relative;
|
872 |
+
|
873 |
+
span.dashicons {
|
874 |
+
position: absolute;
|
875 |
+
top: -13px;
|
876 |
+
opacity: 0.5;
|
877 |
+
left: calc(50% - 11px);
|
878 |
+
}
|
879 |
+
}
|
880 |
+
}
|
881 |
+
*/
|
882 |
+
}
|
883 |
+
.nav-tab-wrapper.nav-assets-manager .nav-tab {
|
884 |
+
font-size: 13px;
|
885 |
+
font-weight: 500;
|
886 |
+
padding: 6px 10px;
|
887 |
+
}
|
888 |
+
.nav-tab-wrapper.nav-assets-manager .nav-tab.for-pro {
|
889 |
+
padding: 6px 8px 6px 3px;
|
890 |
+
}
|
891 |
+
.nav-tab-wrapper.nav-critical-css-manager .nav-tab {
|
892 |
+
font-size: 13px;
|
893 |
+
font-weight: 500;
|
894 |
+
padding: 6px 20px 6px 10px;
|
895 |
+
position: relative;
|
896 |
+
}
|
897 |
+
.nav-tab-wrapper.nav-critical-css-manager .nav-tab span.wpacu-circle-status {
|
898 |
+
position: absolute;
|
899 |
+
right: 5px;
|
900 |
+
top: 13px;
|
901 |
+
height: 11px;
|
902 |
+
width: 11px;
|
903 |
+
border-radius: 50%;
|
904 |
+
display: inline-block;
|
905 |
+
opacity: 0.75;
|
906 |
+
}
|
907 |
+
.nav-tab-wrapper.nav-critical-css-manager .nav-tab span.wpacu-circle-status.wpacu-on {
|
908 |
+
background: #52af00;
|
909 |
+
}
|
910 |
+
.nav-tab-wrapper.nav-critical-css-manager .nav-tab span.wpacu-circle-status.wpacu-off {
|
911 |
+
background: #ccc;
|
912 |
+
}
|
913 |
+
.nav-tab-wrapper.nav-critical-css-manager .nav-tab.for-pro {
|
914 |
+
padding: 6px 8px 6px 3px;
|
915 |
+
}
|
916 |
+
|
917 |
+
ul#wpacu_custom_pages_nav_links {
|
918 |
+
list-style: none;
|
919 |
+
}
|
920 |
+
ul#wpacu_custom_pages_nav_links li {
|
921 |
+
position: relative;
|
922 |
+
display: inline-block;
|
923 |
+
margin: 0 30px 0 0;
|
924 |
+
}
|
925 |
+
ul#wpacu_custom_pages_nav_links li a {
|
926 |
+
text-decoration: none;
|
927 |
+
}
|
928 |
+
ul#wpacu_custom_pages_nav_links li a:hover {
|
929 |
+
text-decoration: underline;
|
930 |
+
}
|
931 |
+
ul#wpacu_custom_pages_nav_links li.wpacu-current {
|
932 |
+
text-decoration: underline;
|
933 |
+
font-weight: bold;
|
934 |
+
}
|
935 |
+
ul#wpacu_custom_pages_nav_links li span.wpacu-circle-status {
|
936 |
+
position: absolute;
|
937 |
+
right: -15px;
|
938 |
+
top: 5px;
|
939 |
+
height: 11px;
|
940 |
+
width: 11px;
|
941 |
+
border-radius: 50%;
|
942 |
+
display: inline-block;
|
943 |
+
opacity: 0.75;
|
944 |
+
}
|
945 |
+
ul#wpacu_custom_pages_nav_links li span.wpacu-circle-status.wpacu-on {
|
946 |
+
background: #52af00;
|
947 |
+
}
|
948 |
+
ul#wpacu_custom_pages_nav_links li span.wpacu-circle-status.wpacu-off {
|
949 |
+
background: #ccc;
|
950 |
+
}
|
951 |
+
ul#wpacu_custom_pages_nav_links li:last-child:after, ul#wpacu_custom_pages_nav_links li:last-child:before {
|
952 |
+
content: "";
|
953 |
+
}
|
954 |
+
|
955 |
+
ul.wpacu_asset_options {
|
956 |
+
margin: 0 10px 0 0;
|
957 |
+
padding: 0;
|
958 |
+
}
|
959 |
+
ul.wpacu_asset_options li {
|
960 |
+
margin: 0 10px 0 0;
|
961 |
+
list-style: none;
|
962 |
+
display: inline-block;
|
963 |
+
line-height: normal;
|
964 |
+
}
|
965 |
+
ul.wpacu_asset_options li.remove_rule label {
|
966 |
+
font-weight: bold;
|
967 |
+
}
|
968 |
+
ul.wpacu_asset_options label {
|
969 |
+
margin-right: 20px;
|
970 |
+
font-weight: normal;
|
971 |
+
}
|
972 |
+
ul.wpacu_asset_options label input {
|
973 |
+
margin-right: 4px;
|
974 |
+
}
|
975 |
+
|
976 |
+
/* Assets Table */
|
977 |
+
.wpacu_list_table {
|
978 |
+
width: 100%;
|
979 |
+
font-weight: normal;
|
980 |
+
/*
|
981 |
+
&.wpacu_list_by_location {
|
982 |
+
td {
|
983 |
+
&:first-child {
|
984 |
+
}
|
985 |
+
}
|
986 |
+
}
|
987 |
+
*/
|
988 |
+
}
|
989 |
+
.wpacu_list_table p, .wpacu_list_table div, .wpacu_list_table li {
|
990 |
+
font-weight: normal;
|
991 |
+
}
|
992 |
+
|
993 |
+
.wpacu_widefat {
|
994 |
+
width: 99%;
|
995 |
+
/*border: 1px solid #e5e5e5 !important;*/
|
996 |
+
}
|
997 |
+
|
998 |
+
.wpacu_striped > tbody > :nth-child(even),
|
999 |
+
ul.wpacu_striped > :nth-child(even) {
|
1000 |
+
background-color: white !important;
|
1001 |
+
}
|
1002 |
+
|
1003 |
+
.wpacu_striped > tbody > :nth-child(odd),
|
1004 |
+
ul.wpacu_striped > :nth-child(odd) {
|
1005 |
+
background-color: #f9f9f9 !important;
|
1006 |
+
}
|
1007 |
+
|
1008 |
+
.wpacu_update_btn {
|
1009 |
+
width: auto;
|
1010 |
+
-moz-box-shadow: inset 0 1px 0 0 #54a3f7 !important;
|
1011 |
+
-webkit-box-shadow: inset 0 1px 0 0 #54a3f7 !important;
|
1012 |
+
box-shadow: inset 0 1px 0 0 #54a3f7 !important;
|
1013 |
+
background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #007dc1), color-stop(1, #0061a7)) !important;
|
1014 |
+
background: -moz-linear-gradient(top, #007dc1 5%, #0061a7 100%) !important;
|
1015 |
+
background: -webkit-linear-gradient(top, #007dc1 5%, #0061a7 100%) !important;
|
1016 |
+
background: -o-linear-gradient(top, #007dc1 5%, #0061a7 100%) !important;
|
1017 |
+
background: -ms-linear-gradient(top, #007dc1 5%, #0061a7 100%) !important;
|
1018 |
+
background: linear-gradient(to bottom, #007dc1 5%, #0061a7 100%) !important;
|
1019 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#007dc1", endColorstr="#0061a7",GradientType=0) !important;
|
1020 |
+
background-color: #007dc1 !important;
|
1021 |
+
-moz-border-radius: 3px !important;
|
1022 |
+
-webkit-border-radius: 3px !important;
|
1023 |
+
border-radius: 3px !important;
|
1024 |
+
border: 1px solid #124d77 !important;
|
1025 |
+
display: inline-block !important;
|
1026 |
+
cursor: pointer !important;
|
1027 |
+
color: #ffffff !important;
|
1028 |
+
font-size: 15px !important;
|
1029 |
+
padding: 10px 24px !important;
|
1030 |
+
text-decoration: none !important;
|
1031 |
+
text-shadow: 0 1px 0 #154682 !important;
|
1032 |
+
height: auto !important;
|
1033 |
+
line-height: normal !important;
|
1034 |
+
}
|
1035 |
+
.wpacu_update_btn:hover, .wpacu_update_btn.wpacu_submitting {
|
1036 |
+
background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #0061a7), color-stop(1, #007dc1)) !important;
|
1037 |
+
background: -moz-linear-gradient(top, #0061a7 5%, #007dc1 100%) !important;
|
1038 |
+
background: -webkit-linear-gradient(top, #0061a7 5%, #007dc1 100%) !important;
|
1039 |
+
background: -o-linear-gradient(top, #0061a7 5%, #007dc1 100%) !important;
|
1040 |
+
background: -ms-linear-gradient(top, #0061a7 5%, #007dc1 100%) !important;
|
1041 |
+
background: linear-gradient(to bottom, #0061a7 5%, #007dc1 100%) !important;
|
1042 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#0061a7", endColorstr="#007dc1",GradientType=0) !important;
|
1043 |
+
background-color: #0061a7 !important;
|
1044 |
+
}
|
1045 |
+
.wpacu_update_btn.wpacu_submitting {
|
1046 |
+
cursor: default !important;
|
1047 |
+
}
|
1048 |
+
.wpacu_update_btn:active {
|
1049 |
+
position: relative !important;
|
1050 |
+
top: 1px !important;
|
1051 |
+
}
|
1052 |
+
|
1053 |
+
.wpacu-btns a {
|
1054 |
+
text-decoration: none;
|
1055 |
+
}
|
1056 |
+
.wpacu-btns .btn {
|
1057 |
+
display: inline-block;
|
1058 |
+
font-weight: normal;
|
1059 |
+
line-height: 1.25;
|
1060 |
+
text-align: center;
|
1061 |
+
white-space: nowrap;
|
1062 |
+
vertical-align: middle;
|
1063 |
+
-webkit-user-select: none;
|
1064 |
+
-moz-user-select: none;
|
1065 |
+
-ms-user-select: none;
|
1066 |
+
user-select: none;
|
1067 |
+
border: 1px solid transparent;
|
1068 |
+
padding: 0.5rem 1rem;
|
1069 |
+
font-size: 1rem;
|
1070 |
+
-webkit-border-radius: 0.25rem;
|
1071 |
+
/* Chrome, Safari, Opera */
|
1072 |
+
-moz-border-radius: 0.25rem;
|
1073 |
+
/* Firefox */
|
1074 |
+
border-radius: 0.25rem;
|
1075 |
+
-webkit-transition: all 0.2s ease-in-out;
|
1076 |
+
-o-transition: all 0.2s ease-in-out;
|
1077 |
+
transition: all 0.2s ease-in-out;
|
1078 |
+
}
|
1079 |
+
.wpacu-btns .btn:focus, .wpacu-btns .btn:hover {
|
1080 |
+
text-decoration: none;
|
1081 |
+
}
|
1082 |
+
.wpacu-btns .btn:focus, .wpacu-btns .btn.focus {
|
1083 |
+
outline: 0;
|
1084 |
+
-webkit-box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.25);
|
1085 |
+
box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.25);
|
1086 |
+
}
|
1087 |
+
.wpacu-btns .btn.disabled, .wpacu-btns .btn:disabled {
|
1088 |
+
cursor: not-allowed;
|
1089 |
+
opacity: 0.65;
|
1090 |
+
}
|
1091 |
+
.wpacu-btns .btn:active, .wpacu-btns .btn.active {
|
1092 |
+
background-image: none;
|
1093 |
+
}
|
1094 |
+
.wpacu-btns a.btn.disabled, .wpacu-btns fieldset[disabled] a.btn {
|
1095 |
+
pointer-events: none;
|
1096 |
+
}
|
1097 |
+
.wpacu-btns .btn-primary {
|
1098 |
+
color: #fff;
|
1099 |
+
background-color: #0275d8;
|
1100 |
+
border-color: #0275d8;
|
1101 |
+
}
|
1102 |
+
.wpacu-btns .btn-primary:hover {
|
1103 |
+
color: #fff;
|
1104 |
+
background-color: #025aa5;
|
1105 |
+
border-color: #01549b;
|
1106 |
+
}
|
1107 |
+
.wpacu-btns .btn-primary:focus, .wpacu-btns .btn-primary.focus {
|
1108 |
+
-webkit-box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.5);
|
1109 |
+
box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.5);
|
1110 |
+
}
|
1111 |
+
.wpacu-btns .btn-primary.disabled, .wpacu-btns .btn-primary:disabled {
|
1112 |
+
background-color: #0275d8;
|
1113 |
+
border-color: #0275d8;
|
1114 |
+
}
|
1115 |
+
.wpacu-btns .btn-primary:active, .wpacu-btns .btn-primary.active,
|
1116 |
+
.wpacu-btns .show > .btn-primary.dropdown-toggle {
|
1117 |
+
color: #fff;
|
1118 |
+
background-color: #025aa5;
|
1119 |
+
background-image: none;
|
1120 |
+
border-color: #01549b;
|
1121 |
+
}
|
1122 |
+
.wpacu-btns .btn-secondary {
|
1123 |
+
color: #292b2c;
|
1124 |
+
background-color: #fff;
|
1125 |
+
border-color: #ccc;
|
1126 |
+
}
|
1127 |
+
.wpacu-btns .btn-secondary:hover {
|
1128 |
+
color: #292b2c;
|
1129 |
+
background-color: #e6e6e6;
|
1130 |
+
border-color: #adadad;
|
1131 |
+
}
|
1132 |
+
.wpacu-btns .btn-secondary:focus, .wpacu-btns .btn-secondary.focus {
|
1133 |
+
-webkit-box-shadow: 0 0 0 2px rgba(204, 204, 204, 0.5);
|
1134 |
+
box-shadow: 0 0 0 2px rgba(204, 204, 204, 0.5);
|
1135 |
+
}
|
1136 |
+
.wpacu-btns .btn-secondary.disabled, .wpacu-btns .btn-secondary:disabled {
|
1137 |
+
background-color: #fff;
|
1138 |
+
border-color: #ccc;
|
1139 |
+
}
|
1140 |
+
.wpacu-btns .btn-secondary:active, .wpacu-btns .btn-secondary.active,
|
1141 |
+
.wpacu-btns .show > .btn-secondary.dropdown-toggle {
|
1142 |
+
color: #292b2c;
|
1143 |
+
background-color: #e6e6e6;
|
1144 |
+
background-image: none;
|
1145 |
+
border-color: #adadad;
|
1146 |
+
}
|
1147 |
+
.wpacu-btns .btn-info {
|
1148 |
+
color: #fff;
|
1149 |
+
background-color: #5bc0de;
|
1150 |
+
border-color: #5bc0de;
|
1151 |
+
}
|
1152 |
+
.wpacu-btns .btn-info:hover {
|
1153 |
+
color: #fff;
|
1154 |
+
background-color: #31b0d5;
|
1155 |
+
border-color: #2aabd2;
|
1156 |
+
}
|
1157 |
+
.wpacu-btns .btn-info:focus, .wpacu-btns .btn-info.focus {
|
1158 |
+
-webkit-box-shadow: 0 0 0 2px rgba(91, 192, 222, 0.5);
|
1159 |
+
box-shadow: 0 0 0 2px rgba(91, 192, 222, 0.5);
|
1160 |
+
}
|
1161 |
+
.wpacu-btns .btn-info.disabled, .wpacu-btns .btn-info:disabled {
|
1162 |
+
background-color: #5bc0de;
|
1163 |
+
border-color: #5bc0de;
|
1164 |
+
}
|
1165 |
+
.wpacu-btns .btn-info:active, .wpacu-btns .btn-info.active,
|
1166 |
+
.wpacu-btns .show > .btn-info.dropdown-toggle {
|
1167 |
+
color: #fff;
|
1168 |
+
background-color: #31b0d5;
|
1169 |
+
background-image: none;
|
1170 |
+
border-color: #2aabd2;
|
1171 |
+
}
|
1172 |
+
.wpacu-btns .btn-success {
|
1173 |
+
color: #fff;
|
1174 |
+
background-color: #5cb85c;
|
1175 |
+
border-color: #5cb85c;
|
1176 |
+
}
|
1177 |
+
.wpacu-btns .btn-success:hover {
|
1178 |
+
color: #fff;
|
1179 |
+
background-color: #449d44;
|
1180 |
+
border-color: #419641;
|
1181 |
+
}
|
1182 |
+
.wpacu-btns .btn-success:focus, .wpacu-btns .btn-success.focus {
|
1183 |
+
-webkit-box-shadow: 0 0 0 2px rgba(92, 184, 92, 0.5);
|
1184 |
+
box-shadow: 0 0 0 2px rgba(92, 184, 92, 0.5);
|
1185 |
+
}
|
1186 |
+
.wpacu-btns .btn-success.disabled, .wpacu-btns .btn-success:disabled {
|
1187 |
+
background-color: #5cb85c;
|
1188 |
+
border-color: #5cb85c;
|
1189 |
+
}
|
1190 |
+
.wpacu-btns .btn-success:active, .wpacu-btns .btn-success.active,
|
1191 |
+
.wpacu-btns .show > .btn-success.dropdown-toggle {
|
1192 |
+
color: #fff;
|
1193 |
+
background-color: #449d44;
|
1194 |
+
background-image: none;
|
1195 |
+
border-color: #419641;
|
1196 |
+
}
|
1197 |
+
.wpacu-btns .btn-warning {
|
1198 |
+
color: #fff;
|
1199 |
+
background-color: #f0ad4e;
|
1200 |
+
border-color: #f0ad4e;
|
1201 |
+
}
|
1202 |
+
.wpacu-btns .btn-warning:hover {
|
1203 |
+
color: #fff;
|
1204 |
+
background-color: #ec971f;
|
1205 |
+
border-color: #eb9316;
|
1206 |
+
}
|
1207 |
+
.wpacu-btns .btn-warning:focus, .wpacu-btns .btn-warning.focus {
|
1208 |
+
-webkit-box-shadow: 0 0 0 2px rgba(240, 173, 78, 0.5);
|
1209 |
+
box-shadow: 0 0 0 2px rgba(240, 173, 78, 0.5);
|
1210 |
+
}
|
1211 |
+
.wpacu-btns .btn-warning.disabled, .wpacu-btns .btn-warning:disabled {
|
1212 |
+
background-color: #f0ad4e;
|
1213 |
+
border-color: #f0ad4e;
|
1214 |
+
}
|
1215 |
+
.wpacu-btns .btn-warning:active, .wpacu-btns .btn-warning.active,
|
1216 |
+
.wpacu-btns .show > .btn-warning.dropdown-toggle {
|
1217 |
+
color: #fff;
|
1218 |
+
background-color: #ec971f;
|
1219 |
+
background-image: none;
|
1220 |
+
border-color: #eb9316;
|
1221 |
+
}
|
1222 |
+
.wpacu-btns .btn-danger {
|
1223 |
+
color: #fff;
|
1224 |
+
background-color: #d9534f;
|
1225 |
+
border-color: #d9534f;
|
1226 |
+
}
|
1227 |
+
.wpacu-btns .btn-danger:hover {
|
1228 |
+
color: #fff;
|
1229 |
+
background-color: #c9302c;
|
1230 |
+
border-color: #c12e2a;
|
1231 |
+
}
|
1232 |
+
.wpacu-btns .btn-danger:focus, .wpacu-btns .btn-danger.focus {
|
1233 |
+
-webkit-box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.5);
|
1234 |
+
box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.5);
|
1235 |
+
}
|
1236 |
+
.wpacu-btns .btn-danger.disabled, .wpacu-btns .btn-danger:disabled {
|
1237 |
+
background-color: #d9534f;
|
1238 |
+
border-color: #d9534f;
|
1239 |
+
}
|
1240 |
+
.wpacu-btns .btn-danger:active, .wpacu-btns .btn-danger.active,
|
1241 |
+
.wpacu-btns .show > .btn-danger.dropdown-toggle {
|
1242 |
+
color: #fff;
|
1243 |
+
background-color: #c9302c;
|
1244 |
+
background-image: none;
|
1245 |
+
border-color: #c12e2a;
|
1246 |
+
}
|
1247 |
+
.wpacu-btns .btn-outline-primary {
|
1248 |
+
color: #0275d8;
|
1249 |
+
background-image: none;
|
1250 |
+
background-color: transparent;
|
1251 |
+
border-color: #0275d8;
|
1252 |
+
}
|
1253 |
+
.wpacu-btns .btn-outline-primary:hover {
|
1254 |
+
color: #fff;
|
1255 |
+
background-color: #0275d8;
|
1256 |
+
border-color: #0275d8;
|
1257 |
+
}
|
1258 |
+
.wpacu-btns .btn-outline-primary:focus, .wpacu-btns .btn-outline-primary.focus {
|
1259 |
+
-webkit-box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.5);
|
1260 |
+
box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.5);
|
1261 |
+
}
|
1262 |
+
.wpacu-btns .btn-outline-primary.disabled, .wpacu-btns .btn-outline-primary:disabled {
|
1263 |
+
color: #0275d8;
|
1264 |
+
background-color: transparent;
|
1265 |
+
}
|
1266 |
+
.wpacu-btns .btn-outline-primary:active, .wpacu-btns .btn-outline-primary.active,
|
1267 |
+
.wpacu-btns .show > .btn-outline-primary.dropdown-toggle {
|
1268 |
+
color: #fff;
|
1269 |
+
background-color: #0275d8;
|
1270 |
+
border-color: #0275d8;
|
1271 |
+
}
|
1272 |
+
.wpacu-btns .btn-outline-secondary {
|
1273 |
+
color: #ccc;
|
1274 |
+
background-image: none;
|
1275 |
+
background-color: transparent;
|
1276 |
+
border-color: #ccc;
|
1277 |
+
}
|
1278 |
+
.wpacu-btns .btn-outline-secondary:hover {
|
1279 |
+
color: #fff;
|
1280 |
+
background-color: #ccc;
|
1281 |
+
border-color: #ccc;
|
1282 |
+
}
|
1283 |
+
.wpacu-btns .btn-outline-secondary:focus, .wpacu-btns .btn-outline-secondary.focus {
|
1284 |
+
-webkit-box-shadow: 0 0 0 2px rgba(204, 204, 204, 0.5);
|
1285 |
+
box-shadow: 0 0 0 2px rgba(204, 204, 204, 0.5);
|
1286 |
+
}
|
1287 |
+
.wpacu-btns .btn-outline-secondary.disabled, .wpacu-btns .btn-outline-secondary:disabled {
|
1288 |
+
color: #ccc;
|
1289 |
+
background-color: transparent;
|
1290 |
+
}
|
1291 |
+
.wpacu-btns .btn-outline-secondary:active, .wpacu-btns .btn-outline-secondary.active,
|
1292 |
+
.wpacu-btns .show > .btn-outline-secondary.dropdown-toggle {
|
1293 |
+
color: #fff;
|
1294 |
+
background-color: #ccc;
|
1295 |
+
border-color: #ccc;
|
1296 |
+
}
|
1297 |
+
.wpacu-btns .btn-outline-info {
|
1298 |
+
color: #5bc0de;
|
1299 |
+
background-image: none;
|
1300 |
+
background-color: transparent;
|
1301 |
+
border-color: #5bc0de;
|
1302 |
+
}
|
1303 |
+
.wpacu-btns .btn-outline-info:hover {
|
1304 |
+
color: #fff;
|
1305 |
+
background-color: #5bc0de;
|
1306 |
+
border-color: #5bc0de;
|
1307 |
+
}
|
1308 |
+
.wpacu-btns .btn-outline-info:focus, .wpacu-btns .btn-outline-info.focus {
|
1309 |
+
-webkit-box-shadow: 0 0 0 2px rgba(91, 192, 222, 0.5);
|
1310 |
+
box-shadow: 0 0 0 2px rgba(91, 192, 222, 0.5);
|
1311 |
+
}
|
1312 |
+
.wpacu-btns .btn-outline-info.disabled, .wpacu-btns .btn-outline-info:disabled {
|
1313 |
+
color: #5bc0de;
|
1314 |
+
background-color: transparent;
|
1315 |
+
}
|
1316 |
+
.wpacu-btns .btn-outline-info:active, .wpacu-btns .btn-outline-info.active,
|
1317 |
+
.wpacu-btns .show > .btn-outline-info.dropdown-toggle {
|
1318 |
+
color: #fff;
|
1319 |
+
background-color: #5bc0de;
|
1320 |
+
border-color: #5bc0de;
|
1321 |
+
}
|
1322 |
+
.wpacu-btns .btn-outline-success {
|
1323 |
+
color: #5cb85c;
|
1324 |
+
background-image: none;
|
1325 |
+
background-color: transparent;
|
1326 |
+
border-color: #5cb85c;
|
1327 |
+
}
|
1328 |
+
.wpacu-btns .btn-outline-success:hover {
|
1329 |
+
color: #fff;
|
1330 |
+
background-color: #5cb85c;
|
1331 |
+
border-color: #5cb85c;
|
1332 |
+
}
|
1333 |
+
.wpacu-btns .btn-outline-success:focus, .wpacu-btns .btn-outline-success.focus {
|
1334 |
+
-webkit-box-shadow: 0 0 0 2px rgba(92, 184, 92, 0.5);
|
1335 |
+
box-shadow: 0 0 0 2px rgba(92, 184, 92, 0.5);
|
1336 |
+
}
|
1337 |
+
.wpacu-btns .btn-outline-success.disabled, .wpacu-btns .btn-outline-success:disabled {
|
1338 |
+
color: #5cb85c;
|
1339 |
+
background-color: transparent;
|
1340 |
+
}
|
1341 |
+
.wpacu-btns .btn-outline-success:active, .wpacu-btns .btn-outline-success.active,
|
1342 |
+
.wpacu-btns .show > .btn-outline-success.dropdown-toggle {
|
1343 |
+
color: #fff;
|
1344 |
+
background-color: #5cb85c;
|
1345 |
+
border-color: #5cb85c;
|
1346 |
+
}
|
1347 |
+
.wpacu-btns .btn-outline-warning {
|
1348 |
+
color: #f0ad4e;
|
1349 |
+
background-image: none;
|
1350 |
+
background-color: transparent;
|
1351 |
+
border-color: #f0ad4e;
|
1352 |
+
}
|
1353 |
+
.wpacu-btns .btn-outline-warning:hover {
|
1354 |
+
color: #fff;
|
1355 |
+
background-color: #f0ad4e;
|
1356 |
+
border-color: #f0ad4e;
|
1357 |
+
}
|
1358 |
+
.wpacu-btns .btn-outline-warning:focus, .wpacu-btns .btn-outline-warning.focus {
|
1359 |
+
-webkit-box-shadow: 0 0 0 2px rgba(240, 173, 78, 0.5);
|
1360 |
+
box-shadow: 0 0 0 2px rgba(240, 173, 78, 0.5);
|
1361 |
+
}
|
1362 |
+
.wpacu-btns .btn-outline-warning.disabled, .wpacu-btns .btn-outline-warning:disabled {
|
1363 |
+
color: #f0ad4e;
|
1364 |
+
background-color: transparent;
|
1365 |
+
}
|
1366 |
+
.wpacu-btns .btn-outline-warning:active, .wpacu-btns .btn-outline-warning.active,
|
1367 |
+
.wpacu-btns .show > .btn-outline-warning.dropdown-toggle {
|
1368 |
+
color: #fff;
|
1369 |
+
background-color: #f0ad4e;
|
1370 |
+
border-color: #f0ad4e;
|
1371 |
+
}
|
1372 |
+
.wpacu-btns .btn-outline-danger {
|
1373 |
+
color: #d9534f;
|
1374 |
+
background-image: none;
|
1375 |
+
background-color: transparent;
|
1376 |
+
border-color: #d9534f;
|
1377 |
+
}
|
1378 |
+
.wpacu-btns .btn-outline-danger:hover {
|
1379 |
+
color: #fff;
|
1380 |
+
background-color: #d9534f;
|
1381 |
+
border-color: #d9534f;
|
1382 |
+
}
|
1383 |
+
.wpacu-btns .btn-outline-danger:focus, .wpacu-btns .btn-outline-danger.focus {
|
1384 |
+
-webkit-box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.5);
|
1385 |
+
box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.5);
|
1386 |
+
}
|
1387 |
+
.wpacu-btns .btn-outline-danger.disabled, .wpacu-btns .btn-outline-danger:disabled {
|
1388 |
+
color: #d9534f;
|
1389 |
+
background-color: transparent;
|
1390 |
+
}
|
1391 |
+
.wpacu-btns .btn-outline-danger:active, .wpacu-btns .btn-outline-danger.active,
|
1392 |
+
.wpacu-btns .show > .btn-outline-danger.dropdown-toggle {
|
1393 |
+
color: #fff;
|
1394 |
+
background-color: #d9534f;
|
1395 |
+
border-color: #d9534f;
|
1396 |
+
}
|
1397 |
+
.wpacu-btns .btn-link {
|
1398 |
+
font-weight: normal;
|
1399 |
+
color: #0275d8;
|
1400 |
+
-webkit-border-radius: 0;
|
1401 |
+
/* Chrome, Safari, Opera */
|
1402 |
+
-moz-border-radius: 0;
|
1403 |
+
/* Firefox */
|
1404 |
+
border-radius: 0;
|
1405 |
+
}
|
1406 |
+
.wpacu-btns .btn-link, .wpacu-btns .btn-link:active, .wpacu-btns .btn-link.active, .wpacu-btns .btn-link:disabled {
|
1407 |
+
background-color: transparent;
|
1408 |
+
}
|
1409 |
+
.wpacu-btns .btn-link, .wpacu-btns .btn-link:focus, .wpacu-btns .btn-link:active {
|
1410 |
+
border-color: transparent;
|
1411 |
+
}
|
1412 |
+
.wpacu-btns .btn-link:hover {
|
1413 |
+
border-color: transparent;
|
1414 |
+
}
|
1415 |
+
.wpacu-btns .btn-link:focus, .wpacu-btns .btn-link:hover {
|
1416 |
+
color: #014c8c;
|
1417 |
+
text-decoration: underline;
|
1418 |
+
background-color: transparent;
|
1419 |
+
}
|
1420 |
+
.wpacu-btns .btn-link:disabled {
|
1421 |
+
color: #636c72;
|
1422 |
+
}
|
1423 |
+
.wpacu-btns .btn-link:disabled:focus, .wpacu-btns .btn-link:disabled:hover {
|
1424 |
+
text-decoration: none;
|
1425 |
+
}
|
1426 |
+
.wpacu-btns .btn-lg, .wpacu-btns .btn-group-lg > .btn {
|
1427 |
+
padding: 0.75rem 1.5rem;
|
1428 |
+
font-size: 1.25rem;
|
1429 |
+
-webkit-border-radius: 0.3rem;
|
1430 |
+
/* Chrome, Safari, Opera */
|
1431 |
+
-moz-border-radius: 0.3rem;
|
1432 |
+
/* Firefox */
|
1433 |
+
border-radius: 0.3rem;
|
1434 |
+
}
|
1435 |
+
.wpacu-btns .btn-sm, .wpacu-btns .btn-group-sm > .btn {
|
1436 |
+
padding: 0.25rem 0.5rem;
|
1437 |
+
font-size: 0.875rem;
|
1438 |
+
-webkit-border-radius: 0.2rem;
|
1439 |
+
/* Chrome, Safari, Opera */
|
1440 |
+
-moz-border-radius: 0.2rem;
|
1441 |
+
/* Firefox */
|
1442 |
+
border-radius: 0.2rem;
|
1443 |
+
}
|
1444 |
+
.wpacu-btns .btn-block {
|
1445 |
+
display: block;
|
1446 |
+
width: 100%;
|
1447 |
+
}
|
1448 |
+
.wpacu-btns .btn-block + .btn-block {
|
1449 |
+
margin-top: 0.5rem;
|
1450 |
+
}
|
1451 |
+
.wpacu-btns input[type=submit].btn-block,
|
1452 |
+
.wpacu-btns input[type=reset].btn-block,
|
1453 |
+
.wpacu-btns input[type=button].btn-block {
|
1454 |
+
width: 100%;
|
1455 |
+
}
|
1456 |
+
.wpacu-btns .fade {
|
1457 |
+
opacity: 0;
|
1458 |
+
-webkit-transition: opacity 0.15s linear;
|
1459 |
+
-o-transition: opacity 0.15s linear;
|
1460 |
+
transition: opacity 0.15s linear;
|
1461 |
+
}
|
1462 |
+
|
1463 |
+
.go-pro-button {
|
1464 |
+
background-color: #4CAF50;
|
1465 |
+
border: 2px solid #4CAF50;
|
1466 |
+
color: white;
|
1467 |
+
padding: 12px 18px;
|
1468 |
+
text-align: center;
|
1469 |
+
text-decoration: none;
|
1470 |
+
display: inline-block;
|
1471 |
+
font-size: 16px;
|
1472 |
+
margin: 4px 2px;
|
1473 |
+
cursor: pointer;
|
1474 |
+
-webkit-border-radius: 10px;
|
1475 |
+
/* Chrome, Safari, Opera */
|
1476 |
+
-moz-border-radius: 10px;
|
1477 |
+
/* Firefox */
|
1478 |
+
border-radius: 10px;
|
1479 |
+
-webkit-transition-duration: 0.4s;
|
1480 |
+
/* Safari */
|
1481 |
+
transition-duration: 0.4s;
|
1482 |
+
}
|
1483 |
+
.go-pro-button:hover {
|
1484 |
+
background-color: white;
|
1485 |
+
color: black;
|
1486 |
+
border: 2px solid #4CAF50;
|
1487 |
+
text-decoration: none;
|
1488 |
+
}
|
1489 |
+
|
1490 |
+
.wpacu-restore-pos-btn {
|
1491 |
+
font-size: 14px !important;
|
1492 |
+
line-height: normal !important;
|
1493 |
+
height: 42px !important;
|
1494 |
+
padding: 0 18px !important;
|
1495 |
+
margin-top: 10px !important;
|
1496 |
+
}
|
1497 |
+
|
1498 |
+
body.wp-admin .wpacu_asset_row .go-pro-link-no-style .wpacu-tooltip {
|
1499 |
+
padding: 8px 4px;
|
1500 |
+
}
|
1501 |
+
body.wp-admin .go-pro-link-no-style .wpacu-tooltip {
|
1502 |
+
text-shadow: none;
|
1503 |
+
font-weight: normal;
|
1504 |
+
font-size: 12px;
|
1505 |
+
line-height: 16px;
|
1506 |
+
padding: 8px 10px;
|
1507 |
+
}
|
1508 |
+
|
1509 |
+
.go-pro-link-no-style {
|
1510 |
+
position: relative;
|
1511 |
+
display: inline-block;
|
1512 |
+
color: inherit;
|
1513 |
+
text-decoration: none;
|
1514 |
+
/* Adapted from: https://www.w3schools.com/css/css_tooltip.asp */
|
1515 |
+
}
|
1516 |
+
.go-pro-link-no-style:not(.nav-tab) {
|
1517 |
+
font-style: italic;
|
1518 |
+
}
|
1519 |
+
.go-pro-link-no-style.no-transition .wpacu-tooltip {
|
1520 |
+
-webkit-transition: 0s all ease;
|
1521 |
+
transition: 0s all ease;
|
1522 |
+
-webkit-transition-delay: 0s;
|
1523 |
+
transition-delay: 0s;
|
1524 |
+
}
|
1525 |
+
.go-pro-link-no-style > img {
|
1526 |
+
max-width: 20px;
|
1527 |
+
max-height: 20px;
|
1528 |
+
}
|
1529 |
+
.go-pro-link-no-style .wpacu-tooltip {
|
1530 |
+
font-size: 14px;
|
1531 |
+
line-height: 18px;
|
1532 |
+
position: absolute;
|
1533 |
+
z-index: 1;
|
1534 |
+
visibility: hidden;
|
1535 |
+
width: 160px;
|
1536 |
+
background-color: #00a7a7;
|
1537 |
+
color: #fff;
|
1538 |
+
text-align: center;
|
1539 |
+
padding: 8px;
|
1540 |
+
-webkit-border-radius: 6px;
|
1541 |
+
/* Chrome, Safari, Opera */
|
1542 |
+
-moz-border-radius: 6px;
|
1543 |
+
/* Firefox */
|
1544 |
+
border-radius: 6px;
|
1545 |
+
bottom: 100%;
|
1546 |
+
bottom: calc(100% + 15px);
|
1547 |
+
left: 50%;
|
1548 |
+
margin-left: -65px;
|
1549 |
+
/* Use half of the width (130/2 = 65), to center the tooltip */
|
1550 |
+
-webkit-transition: 0.1s all ease;
|
1551 |
+
transition: 0.1s all ease;
|
1552 |
+
-webkit-transition-delay: 0s;
|
1553 |
+
transition-delay: 0s;
|
1554 |
+
}
|
1555 |
+
.go-pro-link-no-style .wpacu-tooltip:after {
|
1556 |
+
content: "";
|
1557 |
+
position: absolute;
|
1558 |
+
border-width: 10px;
|
1559 |
+
border-style: solid;
|
1560 |
+
top: 100%;
|
1561 |
+
left: 50%;
|
1562 |
+
left: calc(50% - 10px);
|
1563 |
+
border-color: #00a7a7 transparent transparent transparent;
|
1564 |
+
}
|
1565 |
+
.go-pro-link-no-style .wpacu-tooltip.wpacu-on-pages-btn {
|
1566 |
+
cursor: pointer;
|
1567 |
+
margin-left: -77px;
|
1568 |
+
width: 130px;
|
1569 |
+
}
|
1570 |
+
.go-pro-link-no-style .wpacu-tooltip.wpacu-larger {
|
1571 |
+
width: 200px;
|
1572 |
+
}
|
1573 |
+
.go-pro-link-no-style:hover .wpacu-tooltip {
|
1574 |
+
visibility: visible;
|
1575 |
+
}
|
1576 |
+
|
1577 |
+
.wpacu_list_table tr:first-child .wordpress-core-file .wpacu-tooltip {
|
1578 |
+
bottom: -40px;
|
1579 |
+
left: 120px;
|
1580 |
+
margin-left: -86px;
|
1581 |
+
}
|
1582 |
+
.wpacu_list_table tr:first-child .wordpress-core-file .wpacu-tooltip:after {
|
1583 |
+
top: 41px;
|
1584 |
+
left: -20px;
|
1585 |
+
border-color: transparent #c00 transparent transparent;
|
1586 |
+
}
|
1587 |
+
|
1588 |
+
.wordpress-core-file {
|
1589 |
+
position: relative;
|
1590 |
+
display: inline-block;
|
1591 |
+
font-style: normal;
|
1592 |
+
color: inherit;
|
1593 |
+
text-decoration: none;
|
1594 |
+
/* Adapted from: https://www.w3schools.com/css/css_tooltip.asp */
|
1595 |
+
}
|
1596 |
+
.wordpress-core-file .wpacu-tooltip {
|
1597 |
+
/*
|
1598 |
+
&.wpacu-to-right {
|
1599 |
+
bottom: -40px;
|
1600 |
+
left: 120px;
|
1601 |
+
margin-left: -86px;
|
1602 |
+
|
1603 |
+
&:after {
|
1604 |
+
top: 41px;
|
1605 |
+
left: -20px;
|
1606 |
+
border-color: transparent #c00 transparent transparent;
|
1607 |
+
}
|
1608 |
+
}
|
1609 |
+
*/
|
1610 |
+
font-size: 14px;
|
1611 |
+
line-height: 18px;
|
1612 |
+
position: absolute;
|
1613 |
+
z-index: 1;
|
1614 |
+
visibility: hidden;
|
1615 |
+
width: 160px;
|
1616 |
+
background-color: #cc0000;
|
1617 |
+
color: #fff;
|
1618 |
+
text-align: center;
|
1619 |
+
padding: 6px;
|
1620 |
+
-webkit-border-radius: 6px;
|
1621 |
+
/* Chrome, Safari, Opera */
|
1622 |
+
-moz-border-radius: 6px;
|
1623 |
+
/* Firefox */
|
1624 |
+
border-radius: 6px;
|
1625 |
+
bottom: 100%;
|
1626 |
+
bottom: calc(100% + 15px);
|
1627 |
+
left: 50%;
|
1628 |
+
margin-left: -86px;
|
1629 |
+
/* Use half of the width, to center the tooltip */
|
1630 |
+
-webkit-transition: 0.1s all ease;
|
1631 |
+
transition: 0.1s all ease;
|
1632 |
+
-webkit-transition-delay: 0s;
|
1633 |
+
transition-delay: 0s;
|
1634 |
+
}
|
1635 |
+
.wordpress-core-file .wpacu-tooltip:after {
|
1636 |
+
content: "";
|
1637 |
+
position: absolute;
|
1638 |
+
border-width: 10px;
|
1639 |
+
border-style: solid;
|
1640 |
+
top: 100%;
|
1641 |
+
left: 50%;
|
1642 |
+
left: calc(50% - 10px);
|
1643 |
+
border-color: #cc0000 transparent transparent transparent;
|
1644 |
+
}
|
1645 |
+
.wordpress-core-file:hover .wpacu-tooltip {
|
1646 |
+
visibility: visible;
|
1647 |
+
}
|
1648 |
+
|
1649 |
+
.ajax-direct-call-error-area {
|
1650 |
+
background: white;
|
1651 |
+
padding: 10px;
|
1652 |
+
border: 1px solid #cc0000;
|
1653 |
+
-webkit-border-radius: 8px;
|
1654 |
+
/* Chrome, Safari, Opera */
|
1655 |
+
-moz-border-radius: 8px;
|
1656 |
+
/* Firefox */
|
1657 |
+
border-radius: 8px;
|
1658 |
+
}
|
1659 |
+
.ajax-direct-call-error-area td {
|
1660 |
+
padding: 6px;
|
1661 |
+
}
|
1662 |
+
.ajax-direct-call-error-area .note {
|
1663 |
+
margin-top: 0;
|
1664 |
+
padding-top: 0;
|
1665 |
+
}
|
1666 |
+
.ajax-direct-call-error-area .error-code {
|
1667 |
+
color: #cc0000;
|
1668 |
+
font-weight: bold;
|
1669 |
+
}
|
1670 |
+
|
1671 |
+
.ajax-wp-remote-post-call-error-area {
|
1672 |
+
background: white;
|
1673 |
+
padding: 20px;
|
1674 |
+
}
|
1675 |
+
.ajax-wp-remote-post-call-error-area .table-data {
|
1676 |
+
background: #ffaf5512;
|
1677 |
+
border: 1px solid #cc6666;
|
1678 |
+
-webkit-border-radius: 10px;
|
1679 |
+
/* Chrome, Safari, Opera */
|
1680 |
+
-moz-border-radius: 10px;
|
1681 |
+
/* Firefox */
|
1682 |
+
border-radius: 10px;
|
1683 |
+
}
|
1684 |
+
.ajax-wp-remote-post-call-error-area .table-data td {
|
1685 |
+
padding: 10px;
|
1686 |
+
}
|
1687 |
+
|
1688 |
+
.wrap-upgrade-info {
|
1689 |
+
background: white;
|
1690 |
+
padding: 0 15px;
|
1691 |
+
border: 1px solid #cdcdcd;
|
1692 |
+
-webkit-border-radius: 10px;
|
1693 |
+
/* Chrome, Safari, Opera */
|
1694 |
+
-moz-border-radius: 10px;
|
1695 |
+
/* Firefox */
|
1696 |
+
border-radius: 10px;
|
1697 |
+
}
|
1698 |
+
|
1699 |
+
.wpacu-notice {
|
1700 |
+
margin: 20px 20px 0 0 !important;
|
1701 |
+
}
|
1702 |
+
.wpacu-notice p {
|
1703 |
+
font-weight: 600 !important;
|
1704 |
+
font-style: italic;
|
1705 |
+
}
|
1706 |
+
.wpacu-notice .dashicons {
|
1707 |
+
font-weight: inherit !important;
|
1708 |
+
color: #46b450 !important;
|
1709 |
+
margin-right: 4px;
|
1710 |
+
vertical-align: text-bottom;
|
1711 |
+
font-size: 27px;
|
1712 |
+
}
|
1713 |
+
|
1714 |
+
.wpacu-notice-info {
|
1715 |
+
padding: 12px 12px 12px 16px;
|
1716 |
+
background: white;
|
1717 |
+
border-left: 4px solid #008f9c;
|
1718 |
+
}
|
1719 |
+
.wpacu-notice-info p {
|
1720 |
+
margin-top: 8px;
|
1721 |
+
}
|
1722 |
+
.wpacu-notice-info p:first-child {
|
1723 |
+
margin-top: 0;
|
1724 |
+
}
|
1725 |
+
.wpacu-notice-info p:last-child {
|
1726 |
+
margin-bottom: 0;
|
1727 |
+
}
|
1728 |
+
|
1729 |
+
.wpacu-warning {
|
1730 |
+
font-size: 15px;
|
1731 |
+
padding: 10px;
|
1732 |
+
background: #fffcec;
|
1733 |
+
border: 1px solid #fdd5c9;
|
1734 |
+
-webkit-border-radius: 4px;
|
1735 |
+
/* Chrome, Safari, Opera */
|
1736 |
+
-moz-border-radius: 4px;
|
1737 |
+
/* Firefox */
|
1738 |
+
border-radius: 4px;
|
1739 |
+
margin: 0 0 5px;
|
1740 |
+
width: 100%;
|
1741 |
+
}
|
1742 |
+
|
1743 |
+
.pro-page-unlock-notice {
|
1744 |
+
-webkit-border-radius: 10px;
|
1745 |
+
/* Chrome, Safari, Opera */
|
1746 |
+
-moz-border-radius: 10px;
|
1747 |
+
/* Firefox */
|
1748 |
+
border-radius: 10px;
|
1749 |
+
padding: 10px;
|
1750 |
+
background: #f2faf2;
|
1751 |
+
border: 1px solid #c0e8c0;
|
1752 |
+
width: auto;
|
1753 |
+
display: block;
|
1754 |
+
}
|
1755 |
+
|
1756 |
+
.wpacu-settings-area .notice, .wpacu-license-area .notice {
|
1757 |
+
margin-left: 0;
|
1758 |
+
padding: 10px !important;
|
1759 |
+
width: 97%;
|
1760 |
+
box-sizing: border-box;
|
1761 |
+
font-weight: 600;
|
1762 |
+
font-style: italic;
|
1763 |
+
}
|
1764 |
+
.wpacu-settings-area .notice .dashicons, .wpacu-license-area .notice .dashicons {
|
1765 |
+
color: green;
|
1766 |
+
}
|
1767 |
+
|
1768 |
+
#wpacu-allow-manage-assets-to-select-list-area {
|
1769 |
+
display: inline-block;
|
1770 |
+
}
|
1771 |
+
|
1772 |
+
#wpacu-dom-get-type-selections, .wpacu-radio-selections {
|
1773 |
+
float: none;
|
1774 |
+
clear: both;
|
1775 |
+
width: auto;
|
1776 |
+
display: inline-block;
|
1777 |
+
margin-bottom: 0;
|
1778 |
+
margin-top: 0;
|
1779 |
+
}
|
1780 |
+
#wpacu-dom-get-type-selections.wpacu-vertical, .wpacu-radio-selections.wpacu-vertical {
|
1781 |
+
display: block;
|
1782 |
+
margin-top: 15px;
|
1783 |
+
margin-bottom: 18px;
|
1784 |
+
}
|
1785 |
+
#wpacu-dom-get-type-selections.wpacu-vertical li, .wpacu-radio-selections.wpacu-vertical li {
|
1786 |
+
float: none;
|
1787 |
+
margin-bottom: 12px;
|
1788 |
+
}
|
1789 |
+
#wpacu-dom-get-type-selections.wpacu-vertical li:last-child, .wpacu-radio-selections.wpacu-vertical li:last-child {
|
1790 |
+
margin-bottom: 0;
|
1791 |
+
}
|
1792 |
+
#wpacu-dom-get-type-selections li, .wpacu-radio-selections li {
|
1793 |
+
margin-right: 30px;
|
1794 |
+
float: left;
|
1795 |
+
margin-bottom: 0;
|
1796 |
+
}
|
1797 |
+
#wpacu-dom-get-type-selections li:first-child, .wpacu-radio-selections li:first-child {
|
1798 |
+
margin-right: 15px;
|
1799 |
+
}
|
1800 |
+
#wpacu-dom-get-type-selections li:last-child, .wpacu-radio-selections li:last-child {
|
1801 |
+
margin-right: 0;
|
1802 |
+
}
|
1803 |
+
|
1804 |
+
.wpacu_combine_loaded_js_level_area {
|
1805 |
+
display: none;
|
1806 |
+
background: #008f9c0a;
|
1807 |
+
border-left: 2px solid #008f9c;
|
1808 |
+
padding-top: 8px;
|
1809 |
+
padding-bottom: 8px;
|
1810 |
+
padding-right: 10px;
|
1811 |
+
padding-left: 10px;
|
1812 |
+
margin: 20px 0 15px;
|
1813 |
+
}
|
1814 |
+
.wpacu_combine_loaded_js_level_area.wpacu_active {
|
1815 |
+
display: block;
|
1816 |
+
}
|
1817 |
+
|
1818 |
+
#wpacu-dom-get-type-infos {
|
1819 |
+
margin-bottom: 0;
|
1820 |
+
}
|
1821 |
+
#wpacu-dom-get-type-infos li {
|
1822 |
+
margin-bottom: 0;
|
1823 |
+
line-height: 20px;
|
1824 |
+
}
|
1825 |
+
|
1826 |
+
.wpacu-wrap {
|
1827 |
+
/*
|
1828 |
+
Show all settings on one page (no tabs)
|
1829 |
+
e.g. 'wpacu_show_all' query string appended to the URL
|
1830 |
+
/wp-admin/admin.php?page=wpassetcleanup_settings&wpacu_show_all
|
1831 |
+
*/
|
1832 |
+
}
|
1833 |
+
.wpacu-wrap li, .wpacu-wrap p, .wpacu-wrap td {
|
1834 |
+
font-weight: 400;
|
1835 |
+
}
|
1836 |
+
.wpacu-wrap small {
|
1837 |
+
width: auto;
|
1838 |
+
float: none;
|
1839 |
+
display: inline;
|
1840 |
+
}
|
1841 |
+
.wpacu-wrap small code {
|
1842 |
+
font-size: inherit !important;
|
1843 |
+
}
|
1844 |
+
.wpacu-wrap.wpacu-settings-show-all .wpacu-settings-tab-content {
|
1845 |
+
display: block;
|
1846 |
+
width: 100%;
|
1847 |
+
}
|
1848 |
+
.wpacu-wrap.wpacu-settings-show-all .wpacu-settings-area-title {
|
1849 |
+
color: #004567;
|
1850 |
+
padding: 16px 15px;
|
1851 |
+
background: #f8f8f8;
|
1852 |
+
border-left: 5px solid #004567b0;
|
1853 |
+
border-top: 1px solid #e7e7e7;
|
1854 |
+
border-right: 1px solid #e7e7e7;
|
1855 |
+
border-bottom: 1px solid #e7e7e7;
|
1856 |
+
-webkit-border-radius: 5px;
|
1857 |
+
/* Chrome, Safari, Opera */
|
1858 |
+
-moz-border-radius: 5px;
|
1859 |
+
/* Firefox */
|
1860 |
+
border-radius: 5px;
|
1861 |
+
font-size: 1.45em;
|
1862 |
+
font-weight: 500;
|
1863 |
+
}
|
1864 |
+
.wpacu-wrap.wpacu-settings-show-all #wpacu-update-button-area {
|
1865 |
+
margin: 0;
|
1866 |
+
}
|
1867 |
+
.wpacu-wrap.wpacu-settings-show-all #wpacu-update-button-area .submit {
|
1868 |
+
margin: 0;
|
1869 |
+
}
|
1870 |
+
.wpacu-wrap.wpacu-settings-show-all #wpacu-update-button-area .button {
|
1871 |
+
padding-left: 18px;
|
1872 |
+
padding-right: 18px;
|
1873 |
+
height: 46px;
|
1874 |
+
font-size: 18px;
|
1875 |
+
}
|
1876 |
+
.wpacu-wrap.wpacu-settings-show-all #wpacu-updating-settings {
|
1877 |
+
margin-left: 224px;
|
1878 |
+
top: 35px;
|
1879 |
+
left: 3px;
|
1880 |
+
}
|
1881 |
+
|
1882 |
+
.wpacu-wrap.wpacu-switch-standard .asset-cleanup_page_wpassetcleanup_settings .wpacu_switch,
|
1883 |
+
.wpacu-wrap.wpacu-switch-standard .asset-cleanup-pro_page_wpassetcleanup_settings .wpacu_switch {
|
1884 |
+
width: auto;
|
1885 |
+
height: auto;
|
1886 |
+
}
|
1887 |
+
.wpacu-wrap.wpacu-switch-standard .asset-cleanup_page_wpassetcleanup_settings .wpacu_switch input,
|
1888 |
+
.wpacu-wrap.wpacu-switch-standard .asset-cleanup-pro_page_wpassetcleanup_settings .wpacu_switch input {
|
1889 |
+
display: block;
|
1890 |
+
}
|
1891 |
+
.wpacu-wrap.wpacu-switch-standard .asset-cleanup_page_wpassetcleanup_settings .wpacu_switch input[type=checkbox],
|
1892 |
+
.wpacu-wrap.wpacu-switch-standard .asset-cleanup-pro_page_wpassetcleanup_settings .wpacu_switch input[type=checkbox] {
|
1893 |
+
margin: 0 0 3px;
|
1894 |
+
}
|
1895 |
+
.wpacu-wrap.wpacu-switch-standard .asset-cleanup_page_wpassetcleanup_settings .wpacu_switch .wpacu_slider,
|
1896 |
+
.wpacu-wrap.wpacu-switch-standard .asset-cleanup-pro_page_wpassetcleanup_settings .wpacu_switch .wpacu_slider {
|
1897 |
+
display: none;
|
1898 |
+
}
|
1899 |
+
|
1900 |
+
.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch {
|
1901 |
+
position: relative;
|
1902 |
+
display: inline-block;
|
1903 |
+
width: 52px;
|
1904 |
+
height: 29px;
|
1905 |
+
}
|
1906 |
+
.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch.wpacu_with_text {
|
1907 |
+
width: 65px;
|
1908 |
+
}
|
1909 |
+
.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch.wpacu_with_text .wpacu_slider:before {
|
1910 |
+
left: 14px;
|
1911 |
+
}
|
1912 |
+
.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch.wpacu_with_text .wpacu_slider:after {
|
1913 |
+
top: 5px;
|
1914 |
+
position: absolute;
|
1915 |
+
content: "OFF";
|
1916 |
+
color: white;
|
1917 |
+
right: 9px;
|
1918 |
+
font-weight: 600;
|
1919 |
+
}
|
1920 |
+
.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch.wpacu_with_text input:checked + .wpacu_slider {
|
1921 |
+
background-color: #52af00;
|
1922 |
+
}
|
1923 |
+
.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch.wpacu_with_text input:checked + .wpacu_slider:before {
|
1924 |
+
left: 18px;
|
1925 |
+
}
|
1926 |
+
.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch.wpacu_with_text input:checked + .wpacu_slider:after {
|
1927 |
+
top: 5px;
|
1928 |
+
position: absolute;
|
1929 |
+
content: "ON";
|
1930 |
+
color: white;
|
1931 |
+
left: 14px;
|
1932 |
+
font-weight: 600;
|
1933 |
+
}
|
1934 |
+
.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch input {
|
1935 |
+
display: none;
|
1936 |
+
}
|
1937 |
+
.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch:not(.wpacu_switch_standard) .wpacu_slider {
|
1938 |
+
position: absolute;
|
1939 |
+
cursor: pointer;
|
1940 |
+
top: 0;
|
1941 |
+
left: 0;
|
1942 |
+
right: 0;
|
1943 |
+
bottom: 0;
|
1944 |
+
background-color: #ccc;
|
1945 |
+
-webkit-transition: 0.2s;
|
1946 |
+
transition: 0.2s;
|
1947 |
+
}
|
1948 |
+
.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch:not(.wpacu_switch_standard) .wpacu_slider:before {
|
1949 |
+
position: absolute;
|
1950 |
+
content: "";
|
1951 |
+
height: 22px;
|
1952 |
+
width: 22px;
|
1953 |
+
left: 4px;
|
1954 |
+
bottom: 4px;
|
1955 |
+
background-color: white;
|
1956 |
+
-webkit-transition: 0.2s;
|
1957 |
+
transition: 0.2s;
|
1958 |
+
}
|
1959 |
+
.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch input:checked + .wpacu_slider {
|
1960 |
+
background-color: #52af00;
|
1961 |
+
}
|
1962 |
+
.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch input:focus + .wpacu_slider {
|
1963 |
+
box-shadow: 0 0 1px #52af00;
|
1964 |
+
}
|
1965 |
+
.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch input:checked + .wpacu_slider:before {
|
1966 |
+
-webkit-transform: translateX(22px);
|
1967 |
+
-ms-transform: translateX(22px);
|
1968 |
+
transform: translateX(22px);
|
1969 |
+
}
|
1970 |
+
.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch .wpacu_slider.wpacu_round {
|
1971 |
+
border-radius: 29px;
|
1972 |
+
}
|
1973 |
+
.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch .wpacu_slider.wpacu_round:before {
|
1974 |
+
border-radius: 50%;
|
1975 |
+
}
|
1976 |
+
.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch.wpacu_locked_for_pro {
|
1977 |
+
opacity: 0.3;
|
1978 |
+
/*
|
1979 |
+
&:before {
|
1980 |
+
content: '';
|
1981 |
+
background: url(icons/icon-lock-blue.svg) 0 0 no-repeat;
|
1982 |
+
position: absolute;
|
1983 |
+
width: 100%;
|
1984 |
+
top: 4px;
|
1985 |
+
left: 25px;
|
1986 |
+
height: 23px;
|
1987 |
+
background-size: 37%;
|
1988 |
+
z-index: 1000;
|
1989 |
+
}
|
1990 |
+
*/
|
1991 |
+
}
|
1992 |
+
.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch.wpacu_disabled {
|
1993 |
+
opacity: 0.3;
|
1994 |
+
}
|
1995 |
+
.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch.wpacu_disabled:before {
|
1996 |
+
content: "";
|
1997 |
+
font-family: "Dashicons", Arial, "Times New Roman", "Bitstream Charter", Times, serif;
|
1998 |
+
position: absolute;
|
1999 |
+
font-size: 23px;
|
2000 |
+
top: 5px;
|
2001 |
+
right: 2px;
|
2002 |
+
z-index: 1000;
|
2003 |
+
}
|
2004 |
+
|
2005 |
+
.asset-cleanup_page_wpassetcleanup_settings .setting_title p.wpacu_subtitle,
|
2006 |
+
.asset-cleanup-pro_page_wpassetcleanup_settings .setting_title p.wpacu_subtitle {
|
2007 |
+
margin-top: 4px;
|
2008 |
+
line-height: 1.4;
|
2009 |
+
}
|
2010 |
+
.asset-cleanup_page_wpassetcleanup_settings .setting_title p.wpacu_subtitle em,
|
2011 |
+
.asset-cleanup-pro_page_wpassetcleanup_settings .setting_title p.wpacu_subtitle em {
|
2012 |
+
font-weight: 200;
|
2013 |
+
}
|
2014 |
+
.asset-cleanup_page_wpassetcleanup_settings .setting_title p.wpacu_read_more,
|
2015 |
+
.asset-cleanup-pro_page_wpassetcleanup_settings .setting_title p.wpacu_read_more {
|
2016 |
+
margin-top: -10px;
|
2017 |
+
font-style: italic;
|
2018 |
+
font-size: 12px;
|
2019 |
+
}
|
2020 |
+
.asset-cleanup_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices,
|
2021 |
+
.asset-cleanup_page_wpassetcleanup_settings .assets_list_inline_code_status_choices,
|
2022 |
+
.asset-cleanup_page_wpassetcleanup_settings .input_style_choices,
|
2023 |
+
.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices,
|
2024 |
+
.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_inline_code_status_choices,
|
2025 |
+
.asset-cleanup-pro_page_wpassetcleanup_settings .input_style_choices {
|
2026 |
+
list-style: none;
|
2027 |
+
margin: 0;
|
2028 |
+
}
|
2029 |
+
.asset-cleanup_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices li,
|
2030 |
+
.asset-cleanup_page_wpassetcleanup_settings .assets_list_inline_code_status_choices li,
|
2031 |
+
.asset-cleanup_page_wpassetcleanup_settings .input_style_choices li,
|
2032 |
+
.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices li,
|
2033 |
+
.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_inline_code_status_choices li,
|
2034 |
+
.asset-cleanup-pro_page_wpassetcleanup_settings .input_style_choices li {
|
2035 |
+
float: left;
|
2036 |
+
margin-right: 30px;
|
2037 |
+
}
|
2038 |
+
.asset-cleanup_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices li:last-child,
|
2039 |
+
.asset-cleanup_page_wpassetcleanup_settings .assets_list_inline_code_status_choices li:last-child,
|
2040 |
+
.asset-cleanup_page_wpassetcleanup_settings .input_style_choices li:last-child,
|
2041 |
+
.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices li:last-child,
|
2042 |
+
.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_inline_code_status_choices li:last-child,
|
2043 |
+
.asset-cleanup-pro_page_wpassetcleanup_settings .input_style_choices li:last-child {
|
2044 |
+
margin-right: 0;
|
2045 |
+
}
|
2046 |
+
|
2047 |
+
#wpacu-assets-list-by-location-selected {
|
2048 |
+
background: transparent;
|
2049 |
+
border: 1px solid #e7e7e7;
|
2050 |
+
-webkit-border-radius: 5px;
|
2051 |
+
/* Chrome, Safari, Opera */
|
2052 |
+
-moz-border-radius: 5px;
|
2053 |
+
/* Firefox */
|
2054 |
+
border-radius: 5px;
|
2055 |
+
padding: 8px;
|
2056 |
+
clear: both;
|
2057 |
+
}
|
2058 |
+
|
2059 |
+
.notice.notice-success + .wpacu-wrap.wpacu-settings-area {
|
2060 |
+
margin-top: 20px;
|
2061 |
+
}
|
2062 |
+
|
2063 |
+
/* License Activate/Deactivate */
|
2064 |
+
.wpacu-license-action-btn-area {
|
2065 |
+
margin-top: 0;
|
2066 |
+
position: relative;
|
2067 |
+
display: inline-block;
|
2068 |
+
}
|
2069 |
+
|
2070 |
+
.wpacu-license-spinner {
|
2071 |
+
display: none;
|
2072 |
+
position: absolute;
|
2073 |
+
right: -30px;
|
2074 |
+
top: 4px;
|
2075 |
+
}
|
2076 |
+
.wpacu-license-spinner img {
|
2077 |
+
width: 20px;
|
2078 |
+
height: 20px;
|
2079 |
+
}
|
2080 |
+
|
2081 |
+
#wpacu-activation-issues-info {
|
2082 |
+
border-radius: 10px;
|
2083 |
+
width: 90%;
|
2084 |
+
margin-top: 20px;
|
2085 |
+
font-size: 14px;
|
2086 |
+
padding: 6px 20px;
|
2087 |
+
background: white;
|
2088 |
+
border: 1px solid #e7e7e7;
|
2089 |
+
}
|
2090 |
+
#wpacu-activation-issues-info ol li {
|
2091 |
+
font-size: 13px;
|
2092 |
+
margin-bottom: 10px;
|
2093 |
+
}
|
2094 |
+
|
2095 |
+
#wpacu-mark-license-area-wrap {
|
2096 |
+
margin: 15px 0;
|
2097 |
+
}
|
2098 |
+
|
2099 |
+
.wpacu-form-table.wpacu-license th {
|
2100 |
+
width: 120px;
|
2101 |
+
}
|
2102 |
+
.wpacu-form-table th {
|
2103 |
+
vertical-align: top;
|
2104 |
+
text-align: left;
|
2105 |
+
padding: 5px 20px 20px 0;
|
2106 |
+
width: 200px;
|
2107 |
+
line-height: 1.3;
|
2108 |
+
font-weight: 600;
|
2109 |
+
}
|
2110 |
+
.wpacu-form-table th label {
|
2111 |
+
color: #23282d;
|
2112 |
+
font-weight: 600;
|
2113 |
+
font-size: 14px;
|
2114 |
+
text-shadow: none;
|
2115 |
+
vertical-align: middle;
|
2116 |
+
cursor: pointer;
|
2117 |
+
}
|
2118 |
+
.wpacu-form-table td {
|
2119 |
+
padding-bottom: 25px;
|
2120 |
+
}
|
2121 |
+
.wpacu-form-table td:last-child p:last-child {
|
2122 |
+
margin: 0;
|
2123 |
+
}
|
2124 |
+
.wpacu-form-table label input[type=checkbox], .wpacu-form-table .wpacu-fancy-checkbox input[type=checkbox] {
|
2125 |
+
height: 20px;
|
2126 |
+
width: 20px;
|
2127 |
+
-webkit-border-radius: 4px;
|
2128 |
+
/* Chrome, Safari, Opera */
|
2129 |
+
-moz-border-radius: 4px;
|
2130 |
+
/* Firefox */
|
2131 |
+
border-radius: 4px;
|
2132 |
+
}
|
2133 |
+
.wpacu-form-table label input[type=checkbox]:hover, .wpacu-form-table .wpacu-fancy-checkbox input[type=checkbox]:hover {
|
2134 |
+
border: 1px solid green;
|
2135 |
+
}
|
2136 |
+
.wpacu-form-table label input[type=checkbox]:checked, .wpacu-form-table .wpacu-fancy-checkbox input[type=checkbox]:checked {
|
2137 |
+
border: 1px solid green;
|
2138 |
+
}
|
2139 |
+
.wpacu-form-table label input[type=checkbox]:disabled, .wpacu-form-table .wpacu-fancy-checkbox input[type=checkbox]:disabled {
|
2140 |
+
border: none;
|
2141 |
+
}
|
2142 |
+
.wpacu-form-table label input[type=checkbox]:disabled:checked, .wpacu-form-table .wpacu-fancy-checkbox input[type=checkbox]:disabled:checked {
|
2143 |
+
opacity: 0.3;
|
2144 |
+
}
|
2145 |
+
.wpacu-form-table label input[type=checkbox]:checked:before, .wpacu-form-table .wpacu-fancy-checkbox input[type=checkbox]:checked:before {
|
2146 |
+
color: #52af00;
|
2147 |
+
font: normal 24px/1 dashicons;
|
2148 |
+
}
|
2149 |
+
.wpacu-form-table .wpacu-fancy-radio input[type=radio] {
|
2150 |
+
-webkit-border-radius: 50%;
|
2151 |
+
/* Chrome, Safari, Opera */
|
2152 |
+
-moz-border-radius: 50%;
|
2153 |
+
/* Firefox */
|
2154 |
+
border-radius: 50%;
|
2155 |
+
position: relative;
|
2156 |
+
height: 20px;
|
2157 |
+
width: 20px;
|
2158 |
+
margin: 2px 0 0 0;
|
2159 |
+
}
|
2160 |
+
.wpacu-form-table .wpacu-fancy-radio input[type=radio].wpacu-disabled-status:checked {
|
2161 |
+
border: 1px solid #cc0000;
|
2162 |
+
}
|
2163 |
+
.wpacu-form-table .wpacu-fancy-radio input[type=radio].wpacu-disabled-status:checked:before {
|
2164 |
+
background: #cc0000;
|
2165 |
+
color: #cc0000;
|
2166 |
+
}
|
2167 |
+
.wpacu-form-table .wpacu-fancy-radio input[type=radio].wpacu-disabled-status:hover {
|
2168 |
+
border: 1px solid #cc0000;
|
2169 |
+
}
|
2170 |
+
.wpacu-form-table .wpacu-fancy-radio input[type=radio]:hover {
|
2171 |
+
border: 1px solid green;
|
2172 |
+
}
|
2173 |
+
.wpacu-form-table .wpacu-fancy-radio input[type=radio]:checked {
|
2174 |
+
border: 1px solid green;
|
2175 |
+
}
|
2176 |
+
.wpacu-form-table .wpacu-fancy-radio input[type=radio]:checked:before {
|
2177 |
+
margin: 0;
|
2178 |
+
line-height: inherit;
|
2179 |
+
text-indent: inherit;
|
2180 |
+
content: "";
|
2181 |
+
position: absolute;
|
2182 |
+
top: 4px;
|
2183 |
+
left: 4px;
|
2184 |
+
width: 10px;
|
2185 |
+
height: 10px;
|
2186 |
+
border-radius: 50%;
|
2187 |
+
background: #52af00;
|
2188 |
+
color: #52af00;
|
2189 |
+
font: normal 24px/1 dashicons;
|
2190 |
+
}
|
2191 |
+
|
2192 |
+
#wpacu-settings-vertical-tab-wrap {
|
2193 |
+
display: table;
|
2194 |
+
/* Make the container element behave like a table */
|
2195 |
+
width: 100%;
|
2196 |
+
/* Set full-width to expand the whole page */
|
2197 |
+
}
|
2198 |
+
#wpacu-settings-vertical-tab-wrap .wpacu-tab-extra-text {
|
2199 |
+
margin: 4px 0 0 0;
|
2200 |
+
}
|
2201 |
+
#wpacu-settings-vertical-tab-wrap .wpacu-tab-extra-text small {
|
2202 |
+
font-weight: lighter;
|
2203 |
+
}
|
2204 |
+
#wpacu-settings-vertical-tab-wrap .wpacu-tab-extra-text small span.wpacu-status-wrap {
|
2205 |
+
position: relative;
|
2206 |
+
padding-left: 14px;
|
2207 |
+
}
|
2208 |
+
#wpacu-settings-vertical-tab-wrap .wpacu-tab-extra-text small span.wpacu-status-wrap span.wpacu-circle-status {
|
2209 |
+
position: absolute;
|
2210 |
+
left: 0;
|
2211 |
+
top: 2px;
|
2212 |
+
height: 10px;
|
2213 |
+
width: 10px;
|
2214 |
+
border-radius: 50%;
|
2215 |
+
display: inline-block;
|
2216 |
+
opacity: 0.75;
|
2217 |
+
}
|
2218 |
+
#wpacu-settings-vertical-tab-wrap .wpacu-tab-extra-text small span.wpacu-status-wrap span.wpacu-circle-status.wpacu-on {
|
2219 |
+
background: #52af00;
|
2220 |
+
}
|
2221 |
+
#wpacu-settings-vertical-tab-wrap .wpacu-tab-extra-text small span.wpacu-status-wrap span.wpacu-circle-status.wpacu-off {
|
2222 |
+
background: #ccc;
|
2223 |
+
}
|
2224 |
+
|
2225 |
+
#wpacu-settings-vertical-tab-wrap * {
|
2226 |
+
box-sizing: border-box;
|
2227 |
+
}
|
2228 |
+
|
2229 |
+
/* Style the tab */
|
2230 |
+
.wpacu-settings-tab {
|
2231 |
+
display: table-cell;
|
2232 |
+
/*border: 1px solid #ccc;*/
|
2233 |
+
width: 20%;
|
2234 |
+
height: 100%;
|
2235 |
+
vertical-align: top;
|
2236 |
+
}
|
2237 |
+
|
2238 |
+
.wpacu-settings-tab a {
|
2239 |
+
text-decoration: none;
|
2240 |
+
border-left: 3px solid transparent;
|
2241 |
+
display: block;
|
2242 |
+
background-color: #f1f1f1;
|
2243 |
+
color: #004567;
|
2244 |
+
padding: 17px 16px;
|
2245 |
+
width: 100%;
|
2246 |
+
outline: none;
|
2247 |
+
text-align: left;
|
2248 |
+
cursor: pointer;
|
2249 |
+
font-size: 14px;
|
2250 |
+
font-weight: 600;
|
2251 |
+
/*
|
2252 |
+
-webkit-transition: 0.1s linear;
|
2253 |
+
transition: 0.1s linear;
|
2254 |
+
*/
|
2255 |
+
border-bottom: 1px solid #ccc;
|
2256 |
+
}
|
2257 |
+
.wpacu-settings-tab a:first-child {
|
2258 |
+
border-top: 1px solid transparent !important;
|
2259 |
+
}
|
2260 |
+
.wpacu-settings-tab a:last-child {
|
2261 |
+
border-bottom: 1px solid transparent !important;
|
2262 |
+
}
|
2263 |
+
.wpacu-settings-tab a:hover {
|
2264 |
+
background-color: white;
|
2265 |
+
border-left: 3px solid #004567;
|
2266 |
+
position: relative;
|
2267 |
+
}
|
2268 |
+
.wpacu-settings-tab a.active {
|
2269 |
+
color: #004567;
|
2270 |
+
background-color: white;
|
2271 |
+
border-left: 3px solid #004567;
|
2272 |
+
position: relative;
|
2273 |
+
border-bottom: 1px solid #ccc;
|
2274 |
+
}
|
2275 |
+
.wpacu-settings-tab a.active:after {
|
2276 |
+
content: "";
|
2277 |
+
position: absolute;
|
2278 |
+
height: 100%;
|
2279 |
+
width: 1px;
|
2280 |
+
top: 0;
|
2281 |
+
right: -1px;
|
2282 |
+
background-color: white;
|
2283 |
+
}
|
2284 |
+
|
2285 |
+
/* Style the tab content */
|
2286 |
+
.wpacu-settings-tab-content {
|
2287 |
+
background-color: white;
|
2288 |
+
display: none;
|
2289 |
+
padding: 12px 18px;
|
2290 |
+
/*border: 1px solid #ccc;*/
|
2291 |
+
width: 79%;
|
2292 |
+
border-left: none;
|
2293 |
+
height: 100%;
|
2294 |
+
border-top-right-radius: 10px;
|
2295 |
+
border-bottom-right-radius: 10px;
|
2296 |
+
}
|
2297 |
+
.wpacu-settings-tab-content h2 {
|
2298 |
+
padding: 0 0 15px;
|
2299 |
+
border-bottom: 1px solid #e7e7e7;
|
2300 |
+
}
|
2301 |
+
|
2302 |
+
.wpacu-settings-tab-content.active {
|
2303 |
+
display: table-cell;
|
2304 |
+
}
|
2305 |
+
|
2306 |
+
#wpacu_minify_css_exceptions_area {
|
2307 |
+
margin: 16px 0 0;
|
2308 |
+
}
|
2309 |
+
|
2310 |
+
#wpacu_minify_js_exceptions_area {
|
2311 |
+
margin: 16px 0 0;
|
2312 |
+
}
|
2313 |
+
|
2314 |
+
@media only screen and (min-width: 768px) {
|
2315 |
+
body.asset-cleanup_page_wpassetcleanup_assets_manager #wpacu-update-button-area,
|
2316 |
+
body.asset-cleanup-pro_page_wpassetcleanup_assets_manager #wpacu-update-button-area {
|
2317 |
+
position: -webkit-sticky;
|
2318 |
+
position: sticky;
|
2319 |
+
bottom: 0;
|
2320 |
+
padding: 0;
|
2321 |
+
z-index: 1000000;
|
2322 |
+
border-top: 1px solid #cdcdcd;
|
2323 |
+
background: #f1f1f1;
|
2324 |
+
}
|
2325 |
+
}
|
2326 |
+
|
2327 |
+
body[class*=version-5-3] #wpacu-update-button-area .button {
|
2328 |
+
height: auto;
|
2329 |
+
padding: 4px 18px 6px;
|
2330 |
+
font-size: 15px;
|
2331 |
+
}
|
2332 |
+
body[class*=version-5-3] #wpacu-updating-settings {
|
2333 |
+
margin-left: 178px;
|
2334 |
+
}
|
2335 |
+
|
2336 |
+
#wpacu-update-button-area {
|
2337 |
+
position: relative;
|
2338 |
+
margin-left: 20%;
|
2339 |
+
}
|
2340 |
+
#wpacu-update-button-area.no-left-margin {
|
2341 |
+
margin-left: 0;
|
2342 |
+
}
|
2343 |
+
#wpacu-update-button-area .submit {
|
2344 |
+
margin: 0;
|
2345 |
+
padding: 19px 0;
|
2346 |
+
}
|
2347 |
+
#wpacu-update-button-area .button {
|
2348 |
+
padding-left: 18px;
|
2349 |
+
padding-right: 18px;
|
2350 |
+
height: 46px;
|
2351 |
+
font-size: 15px;
|
2352 |
+
}
|
2353 |
+
|
2354 |
+
#wpacu-updating-settings {
|
2355 |
+
position: absolute;
|
2356 |
+
margin-left: 183px;
|
2357 |
+
top: 28px;
|
2358 |
+
display: none;
|
2359 |
+
}
|
2360 |
+
#wpacu-updating-settings.wpacu-show {
|
2361 |
+
display: block;
|
2362 |
+
}
|
2363 |
+
|
2364 |
+
#combine_loaded_js_info_area {
|
2365 |
+
position: relative;
|
2366 |
+
}
|
2367 |
+
#combine_loaded_js_info_area.locked-for-pro:before {
|
2368 |
+
position: absolute;
|
2369 |
+
content: "";
|
2370 |
+
height: 100%;
|
2371 |
+
width: 100%;
|
2372 |
+
background: white;
|
2373 |
+
opacity: 0.5;
|
2374 |
+
z-index: 10000;
|
2375 |
+
}
|
2376 |
+
|
2377 |
+
.google_fonts_load_types {
|
2378 |
+
clear: both;
|
2379 |
+
margin: 20px 0 15px;
|
2380 |
+
display: flex;
|
2381 |
+
}
|
2382 |
+
.google_fonts_load_types > div {
|
2383 |
+
text-align: left;
|
2384 |
+
}
|
2385 |
+
.google_fonts_load_types > div input {
|
2386 |
+
float: left;
|
2387 |
+
margin: 0 7px 20px 0 !important;
|
2388 |
+
}
|
2389 |
+
|
2390 |
+
.wpacu-sub-tabs-wrap {
|
2391 |
+
min-width: 320px;
|
2392 |
+
margin: 0 auto;
|
2393 |
+
}
|
2394 |
+
.wpacu-sub-tabs-wrap input.wpacu-nav-input {
|
2395 |
+
display: none;
|
2396 |
+
}
|
2397 |
+
.wpacu-sub-tabs-wrap label.wpacu-nav-label {
|
2398 |
+
display: inline-block;
|
2399 |
+
margin: 0 0 -1px;
|
2400 |
+
padding: 15px 25px;
|
2401 |
+
font-weight: 600;
|
2402 |
+
text-align: center;
|
2403 |
+
color: #74777b;
|
2404 |
+
border-left: 1px solid transparent;
|
2405 |
+
border-right: 1px solid transparent;
|
2406 |
+
border-top: 3px solid transparent;
|
2407 |
+
border-bottom: 0;
|
2408 |
+
}
|
2409 |
+
.wpacu-sub-tabs-wrap label.wpacu-nav-label:hover {
|
2410 |
+
cursor: pointer;
|
2411 |
+
}
|
2412 |
+
.wpacu-sub-tabs-wrap input.wpacu-nav-input:checked + label.wpacu-nav-label {
|
2413 |
+
color: #004567;
|
2414 |
+
border-left: 1px solid #ccc;
|
2415 |
+
border-right: 1px solid #ccc;
|
2416 |
+
border-top: 3px solid #004567;
|
2417 |
+
border-bottom: 1px solid white;
|
2418 |
+
}
|
2419 |
+
.wpacu-sub-tabs-wrap section {
|
2420 |
+
display: none;
|
2421 |
+
padding: 20px 0 0;
|
2422 |
+
border-top: 1px solid #ccc;
|
2423 |
+
}
|
2424 |
+
|
2425 |
+
/* Google Fonts Sub-tabs */
|
2426 |
+
#wpacu-google-fonts-optimize-tab-item:checked ~ #wpacu-google-fonts-optimize-tab-item-area,
|
2427 |
+
#wpacu-google-fonts-remove-tab-item:checked ~ #wpacu-google-fonts-remove-tab-item-area {
|
2428 |
+
display: block;
|
2429 |
+
}
|
2430 |
+
|
2431 |
+
.wpacu-fade-in {
|
2432 |
+
animation: wpacuFadeIn ease-in 0.2s;
|
2433 |
+
-webkit-animation: wpacuFadeIn ease-in 0.2s;
|
2434 |
+
-moz-animation: wpacuFadeIn ease-in 0.2s;
|
2435 |
+
-o-animation: wpacuFadeIn ease-in 0.2s;
|
2436 |
+
-ms-animation: wpacuFadeIn ease-in 0.2s;
|
2437 |
+
}
|
2438 |
+
|
2439 |
+
@keyframes wpacuFadeIn {
|
2440 |
+
0% {
|
2441 |
+
opacity: 0;
|
2442 |
+
}
|
2443 |
+
100% {
|
2444 |
+
opacity: 1;
|
2445 |
+
}
|
2446 |
+
}
|
2447 |
+
@-moz-keyframes wpacuFadeIn {
|
2448 |
+
0% {
|
2449 |
+
opacity: 0;
|
2450 |
+
}
|
2451 |
+
100% {
|
2452 |
+
opacity: 1;
|
2453 |
+
}
|
2454 |
+
}
|
2455 |
+
@-webkit-keyframes wpacuFadeIn {
|
2456 |
+
0% {
|
2457 |
+
opacity: 0;
|
2458 |
+
}
|
2459 |
+
100% {
|
2460 |
+
opacity: 1;
|
2461 |
+
}
|
2462 |
+
}
|
2463 |
+
@-o-keyframes wpacuFadeIn {
|
2464 |
+
0% {
|
2465 |
+
opacity: 0;
|
2466 |
+
}
|
2467 |
+
100% {
|
2468 |
+
opacity: 1;
|
2469 |
+
}
|
2470 |
+
}
|
2471 |
+
@-ms-keyframes wpacuFadeIn {
|
2472 |
+
0% {
|
2473 |
+
opacity: 0;
|
2474 |
+
}
|
2475 |
+
100% {
|
2476 |
+
opacity: 1;
|
2477 |
+
}
|
2478 |
+
}
|
2479 |
+
body.wp-admin select.wpacu-screen-size-load {
|
2480 |
+
margin-top: 10px;
|
2481 |
+
margin-bottom: 10px;
|
2482 |
+
margin-right: 6px;
|
2483 |
+
}
|
2484 |
+
body.wp-admin div.wpacu-helper-area {
|
2485 |
+
display: inline-block;
|
2486 |
+
vertical-align: top;
|
2487 |
+
}
|
2488 |
+
body.wp-admin .wpacu-handle-media-queries-load-field {
|
2489 |
+
display: none;
|
2490 |
+
vertical-align: top;
|
2491 |
+
margin-bottom: 10px;
|
2492 |
+
}
|
2493 |
+
body.wp-admin .wpacu-handle-media-queries-load-field.wpacu-is-visible {
|
2494 |
+
display: inline-block;
|
2495 |
+
}
|
2496 |
+
body.wp-admin .wpacu-handle-media-queries-load-field > textarea {
|
2497 |
+
font-size: 100%;
|
2498 |
+
padding: 6px;
|
2499 |
+
width: 320px;
|
2500 |
+
max-width: 100%;
|
2501 |
+
max-height: 80px;
|
2502 |
+
border: 1px solid green;
|
2503 |
+
}
|
2504 |
+
body.wp-admin .wpacu-handle-media-queries-load-field > textarea:disabled {
|
2505 |
+
border: 1px solid #e7e7e7;
|
2506 |
+
}
|
2507 |
+
body.wp-admin .wpacu-handle-media-queries-load-field:not(.wpacu-is-visible) + div.wpacu-helper-area {
|
2508 |
+
margin-top: 2px;
|
2509 |
+
vertical-align: middle;
|
2510 |
+
}
|
2511 |
+
body.wp-admin .wpacu-handle-notes p {
|
2512 |
+
margin-top: 0 !important;
|
2513 |
+
}
|
2514 |
+
body.wp-admin .wpacu-handle-notes p a {
|
2515 |
+
font-size: inherit;
|
2516 |
+
}
|
2517 |
+
body.wp-admin .wpacu-handle-notes p a span.dashicons {
|
2518 |
+
font-size: 19px;
|
2519 |
+
width: 19px;
|
2520 |
+
height: 19px;
|
2521 |
+
vertical-align: bottom;
|
2522 |
+
text-decoration: none;
|
2523 |
+
}
|
2524 |
+
|
2525 |
+
body:not(.wp-admin) select.wpacu-screen-size-load {
|
2526 |
+
margin-top: 10px;
|
2527 |
+
margin-bottom: 10px;
|
2528 |
+
margin-right: 8px;
|
2529 |
+
width: auto;
|
2530 |
+
}
|
2531 |
+
body:not(.wp-admin) div.wpacu-helper-area {
|
2532 |
+
display: inline-block;
|
2533 |
+
vertical-align: top;
|
2534 |
+
}
|
2535 |
+
body:not(.wp-admin) .wpacu-handle-media-queries-load-field {
|
2536 |
+
display: none;
|
2537 |
+
vertical-align: top;
|
2538 |
+
margin-top: 10px;
|
2539 |
+
margin-bottom: 10px;
|
2540 |
+
}
|
2541 |
+
body:not(.wp-admin) .wpacu-handle-media-queries-load-field.wpacu-is-visible {
|
2542 |
+
display: inline-block;
|
2543 |
+
}
|
2544 |
+
body:not(.wp-admin) .wpacu-handle-media-queries-load-field > textarea {
|
2545 |
+
font-size: 100%;
|
2546 |
+
padding: 6px;
|
2547 |
+
width: 320px;
|
2548 |
+
max-width: 100%;
|
2549 |
+
max-height: 80px;
|
2550 |
+
border: 1px solid green;
|
2551 |
+
}
|
2552 |
+
body:not(.wp-admin) .wpacu-handle-media-queries-load-field > textarea:disabled {
|
2553 |
+
border: 1px solid #e7e7e7;
|
2554 |
+
}
|
2555 |
+
body:not(.wp-admin) .wpacu-handle-media-queries-load-field:not(.wpacu-is-visible) + div.wpacu-helper-area {
|
2556 |
+
margin-top: 2px;
|
2557 |
+
vertical-align: middle;
|
2558 |
+
}
|
2559 |
+
body:not(.wp-admin) .wpacu-handle-notes p {
|
2560 |
+
margin-top: 0 !important;
|
2561 |
+
}
|
2562 |
+
body:not(.wp-admin) .wpacu-handle-notes p a {
|
2563 |
+
font-size: inherit;
|
2564 |
+
}
|
2565 |
+
body:not(.wp-admin) .wpacu-handle-notes p a span.dashicons {
|
2566 |
+
font-size: 19px;
|
2567 |
+
width: 19px;
|
2568 |
+
height: 19px;
|
2569 |
+
vertical-align: bottom;
|
2570 |
+
text-decoration: none;
|
2571 |
+
}
|
2572 |
+
|
2573 |
+
.wpacu-handle-notes {
|
2574 |
+
padding-top: 5px;
|
2575 |
+
margin-bottom: -10px;
|
2576 |
+
border-top: 1px solid #e7e7e7;
|
2577 |
+
}
|
2578 |
+
.wpacu-handle-notes .wpacu-handle-notes-field {
|
2579 |
+
display: none;
|
2580 |
+
}
|
2581 |
+
.wpacu-handle-notes .wpacu-handle-notes-field > textarea {
|
2582 |
+
font-size: 85%;
|
2583 |
+
padding: 6px;
|
2584 |
+
width: 320px;
|
2585 |
+
max-width: 100%;
|
2586 |
+
}
|
2587 |
+
.wpacu-handle-notes p {
|
2588 |
+
margin: 10px 0 0 !important;
|
2589 |
+
}
|
2590 |
+
.wpacu-handle-notes p a.wpacu-add-handle-note {
|
2591 |
+
text-decoration: none;
|
2592 |
+
font-size: 80%;
|
2593 |
+
display: inline-block;
|
2594 |
+
color: inherit;
|
2595 |
+
}
|
2596 |
+
.wpacu-handle-notes p a.wpacu-add-handle-note span.dashicons {
|
2597 |
+
font-size: 18px;
|
2598 |
+
width: 18px;
|
2599 |
+
height: 18px;
|
2600 |
+
}
|
2601 |
+
|
2602 |
+
.wrap_bulk_unload_options {
|
2603 |
+
width: auto;
|
2604 |
+
display: block;
|
2605 |
+
clear: both;
|
2606 |
+
}
|
2607 |
+
.wrap_bulk_unload_options.wpacu_has_fieldset fieldset {
|
2608 |
+
border: 1px solid #cdcdcd;
|
2609 |
+
padding: 10px;
|
2610 |
+
background: white;
|
2611 |
+
border-radius: 5px;
|
2612 |
+
}
|
2613 |
+
.wrap_bulk_unload_options.wpacu_has_fieldset fieldset legend {
|
2614 |
+
width: auto;
|
2615 |
+
font-weight: normal;
|
2616 |
+
font-size: inherit;
|
2617 |
+
padding: 8px 11px;
|
2618 |
+
margin: 0;
|
2619 |
+
background: white;
|
2620 |
+
border: 1px solid #cdcdcd;
|
2621 |
+
border-radius: 5px;
|
2622 |
+
}
|
2623 |
+
.wrap_bulk_unload_options .wpacu_asset_options_wrap {
|
2624 |
+
display: inline-block;
|
2625 |
+
float: left;
|
2626 |
+
margin: 5px 10px 14px 0 !important;
|
2627 |
+
padding: 8px 10px 12px !important;
|
2628 |
+
}
|
2629 |
+
.wrap_bulk_unload_options .wpacu_asset_options_wrap .wpacu_slider_text {
|
2630 |
+
position: relative !important;
|
2631 |
+
vertical-align: top;
|
2632 |
+
left: inherit !important;
|
2633 |
+
top: inherit !important;
|
2634 |
+
}
|
2635 |
+
|
2636 |
+
.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch {
|
2637 |
+
position: relative;
|
2638 |
+
display: inline-block;
|
2639 |
+
min-width: 52px;
|
2640 |
+
width: 52px;
|
2641 |
+
height: 29px;
|
2642 |
+
margin-right: 5px !important;
|
2643 |
+
}
|
2644 |
+
.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch input {
|
2645 |
+
display: none;
|
2646 |
+
}
|
2647 |
+
.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch .wpacu_slider {
|
2648 |
+
position: absolute;
|
2649 |
+
cursor: pointer;
|
2650 |
+
top: 0;
|
2651 |
+
left: 0;
|
2652 |
+
right: 0;
|
2653 |
+
bottom: 0;
|
2654 |
+
background-color: #ccc;
|
2655 |
+
-webkit-transition: 0.15s;
|
2656 |
+
transition: 0.15s;
|
2657 |
+
}
|
2658 |
+
.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch .wpacu_slider:before {
|
2659 |
+
position: absolute;
|
2660 |
+
content: "";
|
2661 |
+
height: 22px;
|
2662 |
+
width: 22px;
|
2663 |
+
left: 4px;
|
2664 |
+
bottom: 4px;
|
2665 |
+
background-color: white;
|
2666 |
+
-webkit-transition: 0.15s;
|
2667 |
+
transition: 0.15s;
|
2668 |
+
}
|
2669 |
+
.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch input:checked + .wpacu_slider {
|
2670 |
+
background-color: #CC0000;
|
2671 |
+
}
|
2672 |
+
.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch input:focus + .wpacu_slider {
|
2673 |
+
box-shadow: 0 0 1px #CC0000;
|
2674 |
+
}
|
2675 |
+
.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch input:checked + .wpacu_slider:before {
|
2676 |
+
-webkit-transform: translateX(22px);
|
2677 |
+
-ms-transform: translateX(22px);
|
2678 |
+
transform: translateX(22px);
|
2679 |
+
}
|
2680 |
+
.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch .wpacu_slider.wpacu_round {
|
2681 |
+
border-radius: 29px;
|
2682 |
+
}
|
2683 |
+
.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch .wpacu_slider.wpacu_round:before {
|
2684 |
+
border-radius: 50%;
|
2685 |
+
}
|
2686 |
+
.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch.wpacu_disabled {
|
2687 |
+
opacity: 0.3;
|
2688 |
+
}
|
2689 |
+
.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch.wpacu_disabled:before {
|
2690 |
+
content: "";
|
2691 |
+
font-family: "Dashicons", Arial, "Times New Roman", "Bitstream Charter", Times, serif;
|
2692 |
+
position: absolute;
|
2693 |
+
font-size: 23px;
|
2694 |
+
top: 1px;
|
2695 |
+
right: 2px;
|
2696 |
+
z-index: 1000;
|
2697 |
+
}
|
2698 |
+
.wpacu-switch-enhanced .wpacu_asset_row .wpacu_slider_text {
|
2699 |
+
position: absolute;
|
2700 |
+
left: 62px;
|
2701 |
+
top: 3px;
|
2702 |
+
}
|
2703 |
+
|
2704 |
+
.wpacu-wrap {
|
2705 |
+
width: 98%;
|
2706 |
+
}
|
2707 |
+
.wpacu-wrap tr.wpacu_regex_rule_row {
|
2708 |
+
opacity: 0.45;
|
2709 |
+
}
|
2710 |
+
.wpacu-wrap tr.wpacu_regex_rule_row textarea {
|
2711 |
+
line-height: normal;
|
2712 |
+
min-height: 20px;
|
2713 |
+
min-width: 400px;
|
2714 |
+
display: inline-block;
|
2715 |
+
padding: 2px 4px;
|
2716 |
+
-webkit-border-radius: 3px;
|
2717 |
+
/* Chrome, Safari, Opera */
|
2718 |
+
-moz-border-radius: 3px;
|
2719 |
+
/* Firefox */
|
2720 |
+
border-radius: 3px;
|
2721 |
+
}
|
2722 |
+
.wpacu-wrap tr.wpacu_regex_rule_row textarea:focus {
|
2723 |
+
width: 100%;
|
2724 |
+
}
|
2725 |
+
.wpacu-wrap tr.wpacu_regex_rule_row.wpacu_enabled {
|
2726 |
+
opacity: 1;
|
2727 |
+
}
|
2728 |
+
|
2729 |
+
.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch_small {
|
2730 |
+
position: relative;
|
2731 |
+
display: inline-block;
|
2732 |
+
min-width: 30px;
|
2733 |
+
width: 30px;
|
2734 |
+
height: 17px;
|
2735 |
+
margin-right: 5px !important;
|
2736 |
+
}
|
2737 |
+
.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch_small input {
|
2738 |
+
display: none;
|
2739 |
+
}
|
2740 |
+
.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch_small .wpacu_slider {
|
2741 |
+
position: absolute;
|
2742 |
+
cursor: pointer;
|
2743 |
+
top: 0;
|
2744 |
+
left: 0;
|
2745 |
+
right: 0;
|
2746 |
+
bottom: 0;
|
2747 |
+
background-color: #ccc;
|
2748 |
+
-webkit-transition: 0.15s;
|
2749 |
+
transition: 0.15s;
|
2750 |
+
}
|
2751 |
+
.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch_small .wpacu_slider:before {
|
2752 |
+
position: absolute;
|
2753 |
+
content: "";
|
2754 |
+
height: 13px;
|
2755 |
+
width: 13px;
|
2756 |
+
left: 2px;
|
2757 |
+
bottom: 2px;
|
2758 |
+
background-color: white;
|
2759 |
+
-webkit-transition: 0.15s;
|
2760 |
+
transition: 0.15s;
|
2761 |
+
}
|
2762 |
+
.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch_small input:checked + .wpacu_slider {
|
2763 |
+
background-color: #52af00;
|
2764 |
+
}
|
2765 |
+
.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch_small input:focus + .wpacu_slider {
|
2766 |
+
box-shadow: 0 0 1px #52af00;
|
2767 |
+
}
|
2768 |
+
.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch_small input:checked + .wpacu_slider:before {
|
2769 |
+
-webkit-transform: translateX(13px);
|
2770 |
+
-ms-transform: translateX(13px);
|
2771 |
+
transform: translateX(13px);
|
2772 |
+
}
|
2773 |
+
.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch_small .wpacu_slider.wpacu_round {
|
2774 |
+
border-radius: 17px;
|
2775 |
+
}
|
2776 |
+
.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch_small .wpacu_slider.wpacu_round:before {
|
2777 |
+
border-radius: 50%;
|
2778 |
+
}
|
2779 |
+
|
2780 |
+
.editor-post-saved-state.is-wpacu-reloading {
|
2781 |
+
animation: edit-post__loading-fade-animation 0.5s infinite;
|
2782 |
+
}
|
2783 |
+
|
2784 |
+
body.wp-admin tr.wpacu_asset_row > td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract .dashicons {
|
2785 |
+
width: 19px;
|
2786 |
+
height: 19px;
|
2787 |
+
font-size: 19px;
|
2788 |
+
}
|
2789 |
+
body.wp-admin tr.wpacu_asset_row > td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:before {
|
2790 |
+
right: 20px;
|
2791 |
+
top: -2px;
|
2792 |
+
}
|
2793 |
+
body.wp-admin tr.wpacu_asset_row > td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:after {
|
2794 |
+
left: 20px;
|
2795 |
+
top: -2px;
|
2796 |
+
}
|
2797 |
+
body.wp-admin tr.wpacu_asset_row.wpacu-loading {
|
2798 |
+
position: relative;
|
2799 |
+
}
|
2800 |
+
body.wp-admin tr.wpacu_asset_row.wpacu-loading .wpacu-ajax-loader {
|
2801 |
+
display: block !important;
|
2802 |
+
}
|
2803 |
+
body.wp-admin tr.wpacu_asset_row .wpacu-ajax-loader {
|
2804 |
+
display: none;
|
2805 |
+
width: 58px;
|
2806 |
+
height: 58px;
|
2807 |
+
position: absolute;
|
2808 |
+
bottom: 0;
|
2809 |
+
right: 0;
|
2810 |
+
opacity: 0.75;
|
2811 |
+
}
|
2812 |
+
|
2813 |
+
.wpacu_asset_row.wpacu_not_load .wpacu_dependency_notice_area em {
|
2814 |
+
color: #cc0000;
|
2815 |
+
}
|
2816 |
+
.wpacu_asset_row input.wpacu_load_exception:checked + span {
|
2817 |
+
color: green;
|
2818 |
+
}
|
2819 |
+
.wpacu_asset_row .wpacu-hardcoded-code-area {
|
2820 |
+
margin: 0;
|
2821 |
+
}
|
2822 |
+
.wpacu_asset_row .wpacu-hardcoded-code-area span.wpacu_inside_cond_comm {
|
2823 |
+
display: block;
|
2824 |
+
margin-bottom: 8px;
|
2825 |
+
}
|
2826 |
+
.wpacu_asset_row .wpacu-hardcoded-code-area .wpacu-has-view-more {
|
2827 |
+
max-height: 300px;
|
2828 |
+
position: relative;
|
2829 |
+
overflow: hidden;
|
2830 |
+
/*
|
2831 |
+
&:before {
|
2832 |
+
content: "";
|
2833 |
+
position: absolute;
|
2834 |
+
width: 100%;
|
2835 |
+
height: 100%;
|
2836 |
+
bottom: 0;
|
2837 |
+
left: 0;
|
2838 |
+
z-index: 1;
|
2839 |
+
background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 50%, #fbfbfb8c 100%);
|
2840 |
+
background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0) 50%, #fbfbfb8c 100%);
|
2841 |
+
}
|
2842 |
+
*/
|
2843 |
+
}
|
2844 |
+
.wpacu_asset_row .wpacu-hardcoded-code-area .wpacu-has-view-more p.wpacu-view-more-link-area {
|
2845 |
+
position: absolute;
|
2846 |
+
bottom: 0;
|
2847 |
+
left: 0;
|
2848 |
+
width: 100%;
|
2849 |
+
margin: 0;
|
2850 |
+
padding: 20px 0 15px 15px;
|
2851 |
+
background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fbfbfb8c 100%);
|
2852 |
+
background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0) 0%, #fbfbfb8c 100%);
|
2853 |
+
}
|
2854 |
+
.wpacu_asset_row .wpacu-hardcoded-code-area pre {
|
2855 |
+
margin: 0;
|
2856 |
+
padding: 0 0 8px;
|
2857 |
+
white-space: pre-wrap;
|
2858 |
+
white-space: break-spaces;
|
2859 |
+
-webkit-border-radius: 5px;
|
2860 |
+
/* Chrome, Safari, Opera */
|
2861 |
+
-moz-border-radius: 5px;
|
2862 |
+
/* Firefox */
|
2863 |
+
border-radius: 5px;
|
2864 |
+
}
|
2865 |
+
.wpacu_asset_row .wpacu-hardcoded-code-area code {
|
2866 |
+
color: inherit;
|
2867 |
+
font-style: italic;
|
2868 |
+
margin-left: 2px;
|
2869 |
+
word-break: break-word;
|
2870 |
+
}
|
2871 |
+
.wpacu_asset_row[data-is-hardcoded-asset=true] .wpacu-source-row {
|
2872 |
+
margin-top: 0;
|
2873 |
+
}
|
2874 |
+
.wpacu_asset_row[data-is-hardcoded-asset=true] .wpacu_handle_row_expand_contract_area {
|
2875 |
+
right: 18px;
|
2876 |
+
top: 18px;
|
2877 |
+
background: inherit;
|
2878 |
+
z-index: 100;
|
2879 |
+
}
|
2880 |
+
.wpacu_asset_row > td {
|
2881 |
+
background: inherit;
|
2882 |
+
overflow-wrap: break-word;
|
2883 |
+
word-wrap: break-word;
|
2884 |
+
-ms-word-break: break-all;
|
2885 |
+
word-break: break-all;
|
2886 |
+
}
|
2887 |
+
.wpacu_asset_row > td[data-wpacu-row-status=expanded] .wpacu_file_size_area {
|
2888 |
+
margin: 10px 0;
|
2889 |
+
}
|
2890 |
+
.wpacu_asset_row > td[data-wpacu-row-status=expanded] .wpacu_hardcoded_part_if_contracted {
|
2891 |
+
display: none;
|
2892 |
+
}
|
2893 |
+
.wpacu_asset_row > td[data-wpacu-row-status=expanded] .wpacu_hardcoded_part_if_expanded {
|
2894 |
+
display: block;
|
2895 |
+
}
|
2896 |
+
.wpacu_asset_row > td[data-wpacu-row-status=contracted] .wpacu_file_size_area {
|
2897 |
+
margin: 0;
|
2898 |
+
}
|
2899 |
+
.wpacu_asset_row > td[data-wpacu-row-status=contracted] .wpacu_hardcoded_part_if_contracted {
|
2900 |
+
display: block;
|
2901 |
+
}
|
2902 |
+
.wpacu_asset_row > td[data-wpacu-row-status=contracted] .wpacu_hardcoded_part_if_contracted code {
|
2903 |
+
width: 100%;
|
2904 |
+
}
|
2905 |
+
.wpacu_asset_row > td[data-wpacu-row-status=contracted] .wpacu_hardcoded_part_if_expanded {
|
2906 |
+
display: none;
|
2907 |
+
}
|
2908 |
+
.wpacu_asset_row > td div.wpacu_dependency_notice_area {
|
2909 |
+
line-height: 22px;
|
2910 |
+
margin: 10px 0;
|
2911 |
+
text-align: left !important;
|
2912 |
+
font-weight: normal !important;
|
2913 |
+
}
|
2914 |
+
.wpacu_asset_row > td div.wpacu-source-row {
|
2915 |
+
margin-top: 12px;
|
2916 |
+
}
|
2917 |
+
.wpacu_asset_row > td div.wpacu-source-row a {
|
2918 |
+
word-break: break-word;
|
2919 |
+
}
|
2920 |
+
.wpacu_asset_row > td .wpacu_hide_if_handle_row_contracted {
|
2921 |
+
display: inline-block;
|
2922 |
+
}
|
2923 |
+
.wpacu_asset_row > td[data-wpacu-row-status=contracted] > div {
|
2924 |
+
float: left;
|
2925 |
+
margin-top: 0;
|
2926 |
+
margin-right: 20px;
|
2927 |
+
margin-bottom: 10px;
|
2928 |
+
}
|
2929 |
+
.wpacu_asset_row > td[data-wpacu-row-status=contracted] .wpacu_hide_if_handle_row_contracted {
|
2930 |
+
display: none;
|
2931 |
+
}
|
2932 |
+
.wpacu_asset_row > td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area {
|
2933 |
+
background: inherit;
|
2934 |
+
}
|
2935 |
+
.wpacu_asset_row > td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract {
|
2936 |
+
transition: none;
|
2937 |
+
/* Brackets Effect - Source: https://tympanus.net/Development/CreativeLinkEffects/ */
|
2938 |
+
}
|
2939 |
+
.wpacu_asset_row > td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:focus, .wpacu_asset_row > td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:visited, .wpacu_asset_row > td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:focus-visible {
|
2940 |
+
text-decoration: none;
|
2941 |
+
border: none;
|
2942 |
+
}
|
2943 |
+
.wpacu_asset_row > td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:before, .wpacu_asset_row > td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:after {
|
2944 |
+
opacity: 0;
|
2945 |
+
-webkit-transition: -webkit-transform 0.3s, opacity 0.2s;
|
2946 |
+
-moz-transition: -moz-transform 0.3s, opacity 0.2s;
|
2947 |
+
transition: transform 0.3s, opacity 0.2s;
|
2948 |
+
}
|
2949 |
+
.wpacu_asset_row > td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:before {
|
2950 |
+
position: absolute;
|
2951 |
+
right: 20px;
|
2952 |
+
top: -4px;
|
2953 |
+
content: "[";
|
2954 |
+
-webkit-transform: translateX(20px);
|
2955 |
+
-moz-transform: translateX(20px);
|
2956 |
+
transform: translateX(20px);
|
2957 |
+
}
|
2958 |
+
.wpacu_asset_row > td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:after {
|
2959 |
+
position: absolute;
|
2960 |
+
left: 20px;
|
2961 |
+
top: -4px;
|
2962 |
+
content: "]";
|
2963 |
+
-webkit-transform: translateX(-20px);
|
2964 |
+
-moz-transform: translateX(-20px);
|
2965 |
+
transform: translateX(-20px);
|
2966 |
+
}
|
2967 |
+
.wpacu_asset_row > td[data-wpacu-row-status=contracted]:hover .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract, .wpacu_asset_row > td[data-wpacu-row-status=contracted]:focus .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract, .wpacu_asset_row > td[data-wpacu-row-status=contracted].wpacu_hovered .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract {
|
2968 |
+
transition: none;
|
2969 |
+
}
|
2970 |
+
.wpacu_asset_row > td[data-wpacu-row-status=contracted]:hover .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:hover, .wpacu_asset_row > td[data-wpacu-row-status=contracted]:focus .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:hover, .wpacu_asset_row > td[data-wpacu-row-status=contracted].wpacu_hovered .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:hover {
|
2971 |
+
color: green;
|
2972 |
+
}
|
2973 |
+
.wpacu_asset_row > td[data-wpacu-row-status=contracted]:hover .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:before, .wpacu_asset_row > td[data-wpacu-row-status=contracted]:hover .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:after, .wpacu_asset_row > td[data-wpacu-row-status=contracted]:focus .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:before, .wpacu_asset_row > td[data-wpacu-row-status=contracted]:focus .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:after, .wpacu_asset_row > td[data-wpacu-row-status=contracted].wpacu_hovered .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:before, .wpacu_asset_row > td[data-wpacu-row-status=contracted].wpacu_hovered .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:after {
|
2974 |
+
opacity: 1;
|
2975 |
+
-webkit-transform: translateX(0px);
|
2976 |
+
-moz-transform: translateX(0px);
|
2977 |
+
transform: translateX(0px);
|
2978 |
+
}
|
2979 |
+
.wpacu_asset_row .wpacu_handle_row_expand_contract_area {
|
2980 |
+
background: inherit;
|
2981 |
+
position: absolute;
|
2982 |
+
right: 20px;
|
2983 |
+
top: 20px;
|
2984 |
+
float: none !important;
|
2985 |
+
margin: 0 !important;
|
2986 |
+
}
|
2987 |
+
.wpacu_asset_row .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract {
|
2988 |
+
background: inherit;
|
2989 |
+
color: #000;
|
2990 |
+
text-decoration: none;
|
2991 |
+
}
|
2992 |
+
.wpacu_asset_row .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:hover {
|
2993 |
+
text-decoration: none;
|
2994 |
+
}
|
2995 |
+
.wpacu_asset_row .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract span.dashicons {
|
2996 |
+
background: inherit;
|
2997 |
+
}
|
2998 |
+
.wpacu_asset_row input {
|
2999 |
+
width: auto;
|
3000 |
+
height: auto;
|
3001 |
+
min-height: 16px;
|
3002 |
+
}
|
3003 |
+
.wpacu_asset_row .tip {
|
3004 |
+
background: inherit;
|
3005 |
+
border-left: 4px solid #e7e7e7;
|
3006 |
+
margin: 10px 0;
|
3007 |
+
padding: 7px;
|
3008 |
+
font-style: italic;
|
3009 |
+
font-size: small;
|
3010 |
+
line-height: 1.4;
|
3011 |
+
}
|
3012 |
+
.wpacu_asset_row td {
|
3013 |
+
width: 100%;
|
3014 |
+
text-align: left;
|
3015 |
+
}
|
3016 |
+
.wpacu_asset_row td p:last-child {
|
3017 |
+
margin-bottom: 0 !important;
|
3018 |
+
}
|
3019 |
+
.wpacu_asset_row td .wpacu_asset_options_wrap {
|
3020 |
+
min-height: 23px;
|
3021 |
+
padding: 8px 10px;
|
3022 |
+
margin: 15px 0;
|
3023 |
+
background: white;
|
3024 |
+
border: 1px solid #eee;
|
3025 |
+
-webkit-border-radius: 5px;
|
3026 |
+
/* Chrome, Safari, Opera */
|
3027 |
+
-moz-border-radius: 5px;
|
3028 |
+
/* Firefox */
|
3029 |
+
border-radius: 5px;
|
3030 |
+
}
|
3031 |
+
.wpacu_asset_row td .wpacu_asset_options_wrap p:first-child {
|
3032 |
+
margin-top: 0;
|
3033 |
+
margin-bottom: 8px !important;
|
3034 |
+
}
|
3035 |
+
.wpacu_asset_row div.wpacu_handle {
|
3036 |
+
margin: 0 0 -8px;
|
3037 |
+
}
|
3038 |
+
.wpacu_asset_row p.wpacu_handle {
|
3039 |
+
margin-top: 0;
|
3040 |
+
}
|
3041 |
+
.wpacu_asset_row li.wpacu_unload_this_page {
|
3042 |
+
display: block !important;
|
3043 |
+
position: relative;
|
3044 |
+
}
|
3045 |
+
|
3046 |
+
/* [START] Expand / Contract for Styles & Scripts */
|
3047 |
+
.wpacu-contract-expand-area {
|
3048 |
+
width: 100%;
|
3049 |
+
margin: 20px 0 0;
|
3050 |
+
}
|
3051 |
+
.wpacu-contract-expand-area .col-left {
|
3052 |
+
float: left;
|
3053 |
+
}
|
3054 |
+
.wpacu-contract-expand-area .col-left h4 {
|
3055 |
+
margin-bottom: 0;
|
3056 |
+
}
|
3057 |
+
.wpacu-contract-expand-area .col-right {
|
3058 |
+
float: right;
|
3059 |
+
}
|
3060 |
+
|
3061 |
+
.wpacu-clearfix {
|
3062 |
+
clear: both;
|
3063 |
+
height: 0;
|
3064 |
+
}
|
3065 |
+
.wpacu-clearfix:before {
|
3066 |
+
content: "";
|
3067 |
+
display: table;
|
3068 |
+
}
|
3069 |
+
.wpacu-clearfix:after {
|
3070 |
+
content: "";
|
3071 |
+
display: table;
|
3072 |
+
clear: both;
|
3073 |
+
}
|
3074 |
+
|
3075 |
+
body.wp-admin .wpacu-wp-button {
|
3076 |
+
font-size: 13px;
|
3077 |
+
line-height: 26px;
|
3078 |
+
height: 28px;
|
3079 |
+
}
|
3080 |
+
|
3081 |
+
.wpacu-wp-button {
|
3082 |
+
color: #555 !important;
|
3083 |
+
border-color: #ccc !important;
|
3084 |
+
background: #f7f7f7 !important;
|
3085 |
+
box-shadow: 0 1px 0 #ccc;
|
3086 |
+
vertical-align: top;
|
3087 |
+
}
|
3088 |
+
.wpacu-wp-button:hover {
|
3089 |
+
background: #fafafa !important;
|
3090 |
+
border-color: #999 !important;
|
3091 |
+
color: #23282d !important;
|
3092 |
+
}
|
3093 |
+
.wpacu-wp-button.wpacu-wp-button-secondary {
|
3094 |
+
display: inline-block;
|
3095 |
+
text-decoration: none;
|
3096 |
+
height: auto;
|
3097 |
+
margin: 0 5px 0 0;
|
3098 |
+
padding: 0 10px 1px;
|
3099 |
+
cursor: pointer;
|
3100 |
+
border-width: 1px;
|
3101 |
+
border-style: solid;
|
3102 |
+
-webkit-appearance: none;
|
3103 |
+
border-radius: 3px;
|
3104 |
+
white-space: nowrap;
|
3105 |
+
box-sizing: border-box;
|
3106 |
+
}
|
3107 |
+
|
3108 |
+
.distinguish-asset-list {
|
3109 |
+
list-style: none;
|
3110 |
+
margin-left: 0;
|
3111 |
+
margin-bottom: 5px;
|
3112 |
+
display: inline-block;
|
3113 |
+
}
|
3114 |
+
.distinguish-asset-list li {
|
3115 |
+
float: left;
|
3116 |
+
margin-right: 20px;
|
3117 |
+
}
|
3118 |
+
.distinguish-asset-list li:last-child {
|
3119 |
+
margin-right: 0;
|
3120 |
+
}
|
3121 |
+
|
3122 |
+
body[class*=asset-cleanup-pro] a.wpacu-plugin-contracted-wrap-link {
|
3123 |
+
padding: 16px 6px 16px 41px !important;
|
3124 |
+
}
|
3125 |
+
body[class*=asset-cleanup-pro] .wpacu-area-open .wpacu-plugin-toggle-all {
|
3126 |
+
font-size: 12px !important;
|
3127 |
+
width: calc(100% - 26px) !important;
|
3128 |
+
}
|
3129 |
+
|
3130 |
+
body.wp-admin .wpacu-area-expanded .wpacu-plugin-toggle-all {
|
3131 |
+
top: 5px;
|
3132 |
+
}
|
3133 |
+
body.wp-admin .wpacu-area-expanded .wpacu-plugin-toggle-all ul li {
|
3134 |
+
font-size: 12px !important;
|
3135 |
+
}
|
3136 |
+
|
3137 |
+
.wpacu-assets-collapsible-wrap {
|
3138 |
+
border: 1px solid #cdcdcd;
|
3139 |
+
}
|
3140 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location {
|
3141 |
+
margin-bottom: 15px;
|
3142 |
+
}
|
3143 |
+
.wpacu-assets-collapsible-wrap.wpacu-wrap-all {
|
3144 |
+
margin-top: 20px;
|
3145 |
+
}
|
3146 |
+
.wpacu-assets-collapsible-wrap.wpacu-wrap-area {
|
3147 |
+
margin-top: 10px;
|
3148 |
+
}
|
3149 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location > a.wpacu-assets-collapsible {
|
3150 |
+
padding: 15px 15px 15px 43px;
|
3151 |
+
}
|
3152 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu_list_table {
|
3153 |
+
border-width: 0;
|
3154 |
+
margin: 0;
|
3155 |
+
border-spacing: inherit;
|
3156 |
+
width: 100%;
|
3157 |
+
box-shadow: 3px 3px 2px #ddd;
|
3158 |
+
border-bottom-right-radius: 5px;
|
3159 |
+
border-top-right-radius: 5px;
|
3160 |
+
}
|
3161 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location span.wpacu-child-location-name {
|
3162 |
+
font-weight: 600;
|
3163 |
+
}
|
3164 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location span.wpacu-child-location-version {
|
3165 |
+
font-weight: 200;
|
3166 |
+
}
|
3167 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-location-child-area[data-wpacu-plugin=oxygen] .icon-area {
|
3168 |
+
border-radius: 50%;
|
3169 |
+
}
|
3170 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-location-child-area .wpacu-plugin-toggle-all-wrap .wpacu-plugin-toggle-all {
|
3171 |
+
/*
|
3172 |
+
&:nth-child(1) {
|
3173 |
+
width: 100%;
|
3174 |
+
width: calc(100% + 46px);
|
3175 |
+
left: 100%;
|
3176 |
+
left: calc(100% + 6px);
|
3177 |
+
}
|
3178 |
+
|
3179 |
+
&:nth-child(2) {
|
3180 |
+
width: 100%;
|
3181 |
+
width: calc(100% + 146px);
|
3182 |
+
left: 100%;
|
3183 |
+
left: calc(100% + 6px);
|
3184 |
+
}
|
3185 |
+
*/
|
3186 |
+
display: inline-block;
|
3187 |
+
padding: 0;
|
3188 |
+
font-size: 13px;
|
3189 |
+
width: 100%;
|
3190 |
+
width: calc(100% + 46px);
|
3191 |
+
min-width: 250px;
|
3192 |
+
position: absolute;
|
3193 |
+
left: 100%;
|
3194 |
+
left: calc(100% + 6px);
|
3195 |
+
margin: 0;
|
3196 |
+
top: 4px;
|
3197 |
+
}
|
3198 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-location-child-area .wpacu-plugin-toggle-all-wrap .wpacu-plugin-toggle-all ul {
|
3199 |
+
display: inline-block;
|
3200 |
+
margin: 0;
|
3201 |
+
list-style: none;
|
3202 |
+
padding-left: 13px;
|
3203 |
+
padding-top: 0;
|
3204 |
+
}
|
3205 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-location-child-area .wpacu-plugin-toggle-all-wrap .wpacu-plugin-toggle-all ul li {
|
3206 |
+
padding: 0;
|
3207 |
+
margin: 0;
|
3208 |
+
line-height: normal;
|
3209 |
+
font-size: 14px;
|
3210 |
+
}
|
3211 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-location-child-area .wpacu-plugin-toggle-all-wrap .wpacu-plugin-toggle-all ul li:first-child {
|
3212 |
+
font-style: italic;
|
3213 |
+
margin-bottom: 5px;
|
3214 |
+
}
|
3215 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-themes .wpacu-assets-collapsible-content > table:last-child {
|
3216 |
+
margin-bottom: 20px;
|
3217 |
+
}
|
3218 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-themes .wpacu-assets-collapsible-content .wpacu-location-child-area .wpacu-area-title {
|
3219 |
+
display: inline;
|
3220 |
+
position: relative;
|
3221 |
+
padding: 9px 10px 10px 15px;
|
3222 |
+
z-index: 1;
|
3223 |
+
}
|
3224 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-themes .wpacu-assets-collapsible-content .wpacu-location-child-area .wpacu-area-title:after {
|
3225 |
+
content: "";
|
3226 |
+
position: absolute;
|
3227 |
+
width: 100%;
|
3228 |
+
left: 0;
|
3229 |
+
bottom: 0;
|
3230 |
+
height: 1px;
|
3231 |
+
background-color: #fdfdfd;
|
3232 |
+
}
|
3233 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content .wpacu-plugin-assets-wrap {
|
3234 |
+
padding: 0 0 10px;
|
3235 |
+
}
|
3236 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content .wpacu-plugin-assets-wrap.wpacu-area-open.wpacu-plugin-assets-last {
|
3237 |
+
margin-bottom: 18px;
|
3238 |
+
}
|
3239 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content .wpacu-plugin-assets-wrap.wpacu-area-open .wpacu-plugin-toggle-all-wrap .wpacu-plugin-toggle-all {
|
3240 |
+
display: inline-block;
|
3241 |
+
padding: 7px 12px 8px;
|
3242 |
+
font-size: 14px;
|
3243 |
+
width: 100%;
|
3244 |
+
text-align: left;
|
3245 |
+
border-left: 1px solid #cdcdcd;
|
3246 |
+
border-right: 1px solid #cdcdcd;
|
3247 |
+
}
|
3248 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content .wpacu-plugin-assets-wrap.wpacu-area-open .wpacu-plugin-toggle-all-wrap .wpacu-plugin-toggle-all + .wpacu-plugin-toggle-all {
|
3249 |
+
padding: 2px 12px 10px;
|
3250 |
+
}
|
3251 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link {
|
3252 |
+
color: inherit;
|
3253 |
+
text-decoration: none;
|
3254 |
+
font-weight: inherit;
|
3255 |
+
font-style: inherit;
|
3256 |
+
font-size: 105%;
|
3257 |
+
line-height: initial;
|
3258 |
+
position: relative;
|
3259 |
+
height: auto;
|
3260 |
+
margin: 14px 0 0;
|
3261 |
+
padding: 13px 6px 14px 39px;
|
3262 |
+
position: relative;
|
3263 |
+
display: block;
|
3264 |
+
}
|
3265 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link:after {
|
3266 |
+
position: absolute;
|
3267 |
+
font-size: 18px;
|
3268 |
+
font-family: Dashicons !important;
|
3269 |
+
right: 12px;
|
3270 |
+
top: 14px;
|
3271 |
+
content: "";
|
3272 |
+
}
|
3273 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link.wpacu-link-open:after {
|
3274 |
+
content: "";
|
3275 |
+
}
|
3276 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link.wpacu-link-closed {
|
3277 |
+
border: 1px solid #cdcdcd;
|
3278 |
+
}
|
3279 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link:hover {
|
3280 |
+
border: 1px solid #878787;
|
3281 |
+
background: #f9f9f9;
|
3282 |
+
}
|
3283 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link:hover.wpacu-link-closed {
|
3284 |
+
box-shadow: 3px 3px 2px #ddd;
|
3285 |
+
}
|
3286 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link.wpacu-link-open {
|
3287 |
+
border-top: 1px solid #cdcdcd;
|
3288 |
+
border-left: 1px solid #cdcdcd;
|
3289 |
+
border-right: 1px solid #cdcdcd;
|
3290 |
+
border-bottom: none;
|
3291 |
+
}
|
3292 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link.wpacu-link-closed.wpacu-last-wrap-link {
|
3293 |
+
margin-bottom: 20px;
|
3294 |
+
}
|
3295 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link .icon-plugin-default {
|
3296 |
+
top: 10px;
|
3297 |
+
left: 10px;
|
3298 |
+
width: 30px;
|
3299 |
+
height: 30px;
|
3300 |
+
}
|
3301 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link .icon-plugin-default .icon-area {
|
3302 |
+
width: 30px;
|
3303 |
+
height: 30px;
|
3304 |
+
}
|
3305 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link .icon-plugin-default .icon-area:before {
|
3306 |
+
font-size: 22px;
|
3307 |
+
line-height: 22px;
|
3308 |
+
top: 4px;
|
3309 |
+
left: 5px;
|
3310 |
+
}
|
3311 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link .wpacu-area-title {
|
3312 |
+
position: relative;
|
3313 |
+
padding: 17px 10px 16px 46px;
|
3314 |
+
z-index: 1;
|
3315 |
+
}
|
3316 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link .wpacu-area-title:after {
|
3317 |
+
content: "";
|
3318 |
+
position: absolute;
|
3319 |
+
width: 100%;
|
3320 |
+
left: 0;
|
3321 |
+
bottom: 0;
|
3322 |
+
height: 1px;
|
3323 |
+
background-color: #fdfdfd;
|
3324 |
+
}
|
3325 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link.wpacu-area-last {
|
3326 |
+
margin-bottom: 18px;
|
3327 |
+
}
|
3328 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content .wpacu-area-open {
|
3329 |
+
padding: 0;
|
3330 |
+
max-height: 100%;
|
3331 |
+
}
|
3332 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content .wpacu-area-closed {
|
3333 |
+
padding: 0;
|
3334 |
+
overflow: hidden;
|
3335 |
+
max-height: 0;
|
3336 |
+
}
|
3337 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content > table:last-child {
|
3338 |
+
margin-bottom: 20px;
|
3339 |
+
}
|
3340 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-themes .wpacu-assets-collapsible-content .wpacu-location-child-area .wpacu-area-title {
|
3341 |
+
margin-top: 0;
|
3342 |
+
margin-bottom: -1px;
|
3343 |
+
padding: 14px 10px 16px 12px !important;
|
3344 |
+
}
|
3345 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-themes .wpacu-assets-collapsible-content .wpacu-location-child-area .wpacu-area-title.wpacu-theme-has-icon {
|
3346 |
+
padding: 18px 10px 16px 58px !important;
|
3347 |
+
}
|
3348 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-assets-collapsible-content .wpacu-location-child-area {
|
3349 |
+
margin-top: 22px;
|
3350 |
+
margin-bottom: -1px;
|
3351 |
+
font-size: 110%;
|
3352 |
+
line-height: initial;
|
3353 |
+
}
|
3354 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-assets-collapsible-content .wpacu-location-child-area.wpacu-location-child-area-first {
|
3355 |
+
margin-top: 2px;
|
3356 |
+
}
|
3357 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-assets-collapsible-content .wpacu-location-child-area.wpacu-area-expanded .wpacu-area-title {
|
3358 |
+
display: inline-block;
|
3359 |
+
z-index: 1;
|
3360 |
+
padding: 17px 10px 16px 46px;
|
3361 |
+
}
|
3362 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-assets-collapsible-content .wpacu-location-child-area .wpacu-area-title {
|
3363 |
+
display: inline;
|
3364 |
+
border-top-right-radius: 8px;
|
3365 |
+
border-top-left-radius: 8px;
|
3366 |
+
background-color: #f9f9f9;
|
3367 |
+
border-left: 1px solid #cdcdcd;
|
3368 |
+
border-top: 1px solid #cdcdcd;
|
3369 |
+
border-bottom: 1px solid transparent;
|
3370 |
+
border-right: 1px solid #cdcdcd;
|
3371 |
+
position: relative;
|
3372 |
+
}
|
3373 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-plugin-default {
|
3374 |
+
position: absolute;
|
3375 |
+
padding: 0;
|
3376 |
+
top: 10px;
|
3377 |
+
left: 10px;
|
3378 |
+
width: 37px;
|
3379 |
+
height: 37px;
|
3380 |
+
}
|
3381 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-plugin-default:not(.has-icon) {
|
3382 |
+
color: #b4b9be;
|
3383 |
+
background-color: #eee;
|
3384 |
+
box-shadow: inset 0 0 10px rgba(160, 165, 170, 0.15);
|
3385 |
+
-webkit-border-radius: 5px;
|
3386 |
+
/* Chrome, Safari, Opera */
|
3387 |
+
-moz-border-radius: 5px;
|
3388 |
+
/* Firefox */
|
3389 |
+
border-radius: 5px;
|
3390 |
+
}
|
3391 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-plugin-default:not(.has-icon) .icon-area:before {
|
3392 |
+
content: "";
|
3393 |
+
font-family: Dashicons !important;
|
3394 |
+
position: absolute;
|
3395 |
+
font-size: 28px;
|
3396 |
+
line-height: 28px;
|
3397 |
+
top: 5px;
|
3398 |
+
left: 5px;
|
3399 |
+
}
|
3400 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-plugin-default .icon-area {
|
3401 |
+
position: relative;
|
3402 |
+
width: 37px;
|
3403 |
+
height: 37px;
|
3404 |
+
}
|
3405 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-theme {
|
3406 |
+
position: absolute;
|
3407 |
+
padding: 0;
|
3408 |
+
top: 10px;
|
3409 |
+
left: 10px;
|
3410 |
+
width: 37px;
|
3411 |
+
height: 37px;
|
3412 |
+
}
|
3413 |
+
.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-theme .icon-area {
|
3414 |
+
position: relative;
|
3415 |
+
width: 37px;
|
3416 |
+
height: 37px;
|
3417 |
+
}
|
3418 |
+
.wpacu-assets-collapsible-wrap.wpacu-wp_core {
|
3419 |
+
border: 1px solid #cc0000;
|
3420 |
+
}
|
3421 |
+
.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content, .wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content {
|
3422 |
+
padding: 0;
|
3423 |
+
}
|
3424 |
+
.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content .wpacu_list_table, .wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content .wpacu_list_table {
|
3425 |
+
width: 100%;
|
3426 |
+
margin: 0;
|
3427 |
+
}
|
3428 |
+
.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row td, .wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row td {
|
3429 |
+
border-left: hidden;
|
3430 |
+
border-right: hidden;
|
3431 |
+
border-bottom: 1px solid #cdcdcd;
|
3432 |
+
}
|
3433 |
+
.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row:last-child, .wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row:last-child {
|
3434 |
+
margin-bottom: 0 !important;
|
3435 |
+
}
|
3436 |
+
.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row:last-child td:last-child, .wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row:last-child td:last-child {
|
3437 |
+
border-bottom: hidden;
|
3438 |
+
}
|
3439 |
+
|
3440 |
+
a.wpacu-assets-collapsible {
|
3441 |
+
color: black;
|
3442 |
+
font-size: 20px;
|
3443 |
+
text-decoration: none;
|
3444 |
+
display: block;
|
3445 |
+
position: relative;
|
3446 |
+
background-color: #f1f3f8;
|
3447 |
+
cursor: pointer;
|
3448 |
+
padding: 15px 15px 15px 36px;
|
3449 |
+
width: auto;
|
3450 |
+
border: none;
|
3451 |
+
text-align: left;
|
3452 |
+
outline: none;
|
3453 |
+
}
|
3454 |
+
a.wpacu-assets-collapsible > span.dashicons {
|
3455 |
+
font-size: 25px;
|
3456 |
+
line-height: normal;
|
3457 |
+
position: absolute;
|
3458 |
+
top: 15px;
|
3459 |
+
top: calc(50% - 21px);
|
3460 |
+
left: 22px;
|
3461 |
+
-webkit-transform: translate(-50%, 50%);
|
3462 |
+
transform: translate(-50%, 50%);
|
3463 |
+
}
|
3464 |
+
a.wpacu-assets-collapsible:hover {
|
3465 |
+
background-color: #f1f3f8;
|
3466 |
+
text-decoration: none;
|
3467 |
+
}
|
3468 |
+
a.wpacu-assets-collapsible:after {
|
3469 |
+
position: absolute;
|
3470 |
+
font-size: 22px;
|
3471 |
+
font-family: Dashicons !important;
|
3472 |
+
right: 14px;
|
3473 |
+
top: 16px;
|
3474 |
+
}
|
3475 |
+
a.wpacu-assets-collapsible:not(.wpacu-assets-collapsible-active):after {
|
3476 |
+
content: "";
|
3477 |
+
}
|
3478 |
+
a.wpacu-assets-collapsible.wpacu-assets-collapsible-active {
|
3479 |
+
background-color: #f1f3f8;
|
3480 |
+
}
|
3481 |
+
a.wpacu-assets-collapsible.wpacu-assets-collapsible-active:after {
|
3482 |
+
content: "";
|
3483 |
+
}
|
3484 |
+
|
3485 |
+
.wpacu-assets-collapsible-content {
|
3486 |
+
padding: 0 16px;
|
3487 |
+
max-height: 0;
|
3488 |
+
overflow: hidden;
|
3489 |
+
/*transition: max-height 0.3s ease-out;*/
|
3490 |
+
background-color: #fbfbfb8c;
|
3491 |
+
/*
|
3492 |
+
border-bottom-left-radius: 6px;
|
3493 |
+
border-bottom-right-radius: 6px;
|
3494 |
+
*/
|
3495 |
+
}
|
3496 |
+
.wpacu-assets-collapsible-content .wpacu-assets-note {
|
3497 |
+
margin: 0;
|
3498 |
+
padding: 15px 15px 10px;
|
3499 |
+
}
|
3500 |
+
.wpacu-assets-collapsible-content > div:not(.wpacu-assets-table-list-wrap) {
|
3501 |
+
padding: 16px 0 0;
|
3502 |
+
}
|
3503 |
+
.wpacu-assets-collapsible-content > div > p:first-child {
|
3504 |
+
margin-top: 0;
|
3505 |
+
}
|
3506 |
+
.wpacu-assets-collapsible-content.wpacu-open {
|
3507 |
+
max-height: 100%;
|
3508 |
+
}
|
3509 |
+
|
3510 |
+
/* [END] Expand / Contract for Styles & Scripts */
|
3511 |
+
/* [START] Expand / Contract for Inline Code associated with the Handle */
|
3512 |
+
a.wpacu-assets-inline-code-collapsible {
|
3513 |
+
color: inherit;
|
3514 |
+
font-size: 14px;
|
3515 |
+
text-decoration: none;
|
3516 |
+
display: inline-block;
|
3517 |
+
position: relative;
|
3518 |
+
cursor: pointer;
|
3519 |
+
width: auto;
|
3520 |
+
outline: 0;
|
3521 |
+
background: #f1f3f8;
|
3522 |
+
border: 1px solid #cdcdcd;
|
3523 |
+
padding: 4px 21px 4px 8px;
|
3524 |
+
margin: 0 0 0 6px;
|
3525 |
+
-webkit-border-radius: 5px;
|
3526 |
+
/* Chrome, Safari, Opera */
|
3527 |
+
-moz-border-radius: 5px;
|
3528 |
+
/* Firefox */
|
3529 |
+
border-radius: 5px;
|
3530 |
+
}
|
3531 |
+
a.wpacu-assets-inline-code-collapsible:hover {
|
3532 |
+
border: 1px solid #5c5c5c;
|
3533 |
+
}
|
3534 |
+
a.wpacu-assets-inline-code-collapsible:after {
|
3535 |
+
position: absolute;
|
3536 |
+
font-size: 15px;
|
3537 |
+
font-family: Dashicons !important;
|
3538 |
+
right: -3px;
|
3539 |
+
top: -1px;
|
3540 |
+
width: 14px;
|
3541 |
+
height: 14px;
|
3542 |
+
-webkit-transform: translate(-50%, 50%);
|
3543 |
+
transform: translate(-50%, 50%);
|
3544 |
+
}
|
3545 |
+
a.wpacu-assets-inline-code-collapsible:not(.wpacu-assets-inline-code-collapsible-active):after {
|
3546 |
+
content: "";
|
3547 |
+
}
|
3548 |
+
a.wpacu-assets-inline-code-collapsible.wpacu-assets-inline-code-collapsible-active:after {
|
3549 |
+
content: "";
|
3550 |
+
}
|
3551 |
+
|
3552 |
+
.wpacu-assets-inline-code-collapsible-content {
|
3553 |
+
padding: 0 8px 2px 0;
|
3554 |
+
max-height: 0;
|
3555 |
+
overflow: hidden;
|
3556 |
+
/*transition: max-height 0.3s ease-out;*/
|
3557 |
+
background-color: #fbfbfb8c;
|
3558 |
+
/*
|
3559 |
+
border-bottom-left-radius: 6px;
|
3560 |
+
border-bottom-right-radius: 6px;
|
3561 |
+
*/
|
3562 |
+
}
|
3563 |
+
.wpacu-assets-inline-code-collapsible-content > div {
|
3564 |
+
padding: 7px 8px 0;
|
3565 |
+
}
|
3566 |
+
.wpacu-assets-inline-code-collapsible-content > div > p {
|
3567 |
+
line-height: normal !important;
|
3568 |
+
}
|
3569 |
+
.wpacu-assets-inline-code-collapsible-content > div > p:first-child {
|
3570 |
+
margin-top: 0;
|
3571 |
+
}
|
3572 |
+
.wpacu-assets-inline-code-collapsible-content.wpacu-open {
|
3573 |
+
max-height: 100%;
|
3574 |
+
}
|
3575 |
+
|
3576 |
+
/* [END] Expand / Contract for Inline Code associated with the Handle */
|
3577 |
+
.wpacu_asset_row p div.select {
|
3578 |
+
display: inline-block;
|
3579 |
+
}
|
3580 |
+
|
3581 |
+
/* Position: */
|
3582 |
+
.wpacu-wrap-choose-position {
|
3583 |
+
display: inline;
|
3584 |
+
}
|
3585 |
+
.wpacu-wrap-choose-position > div {
|
3586 |
+
display: inline-block;
|
3587 |
+
}
|
3588 |
+
.wpacu-wrap-choose-position select {
|
3589 |
+
width: auto;
|
3590 |
+
font-size: inherit;
|
3591 |
+
display: inline;
|
3592 |
+
margin-left: 6px;
|
3593 |
+
margin-right: 4px;
|
3594 |
+
}
|
3595 |
+
.wpacu-wrap-choose-position > .select > .select {
|
3596 |
+
display: inline;
|
3597 |
+
}
|
3598 |
+
.wpacu-wrap-choose-position > .select > .select select {
|
3599 |
+
padding-right: 30px;
|
3600 |
+
}
|
3601 |
+
.wpacu-wrap-choose-position > .select > .select:after {
|
3602 |
+
right: 15px;
|
3603 |
+
top: -4px;
|
3604 |
+
}
|
3605 |
+
|
3606 |
+
.wpacu_load_regex_input_wrap, .wpacu_handle_unload_regex_input_wrap {
|
3607 |
+
display: block;
|
3608 |
+
width: 100%;
|
3609 |
+
}
|
3610 |
+
.wpacu_load_regex_input_wrap .wpacu_regex_rule_area .wpacu_regex_rule_textarea, .wpacu_handle_unload_regex_input_wrap .wpacu_regex_rule_area .wpacu_regex_rule_textarea {
|
3611 |
+
line-height: normal;
|
3612 |
+
min-height: 40px;
|
3613 |
+
min-width: 300px;
|
3614 |
+
max-width: 400px;
|
3615 |
+
display: inline-block;
|
3616 |
+
padding: 2px 4px;
|
3617 |
+
-webkit-border-radius: 3px;
|
3618 |
+
/* Chrome, Safari, Opera */
|
3619 |
+
-moz-border-radius: 3px;
|
3620 |
+
/* Firefox */
|
3621 |
+
border-radius: 3px;
|
3622 |
+
}
|
3623 |
+
.wpacu_load_regex_input_wrap .wpacu_regex_rule_area .wpacu_regex_rule_textarea:focus, .wpacu_handle_unload_regex_input_wrap .wpacu_regex_rule_area .wpacu_regex_rule_textarea:focus {
|
3624 |
+
width: 100%;
|
3625 |
+
}
|
3626 |
+
|
3627 |
+
body.logged-in:not(.wp-admin) .wpacu-view-more-code {
|
3628 |
+
box-shadow: inset 0 1px 0 0 #ffffff;
|
3629 |
+
background: linear-gradient(to bottom, #f9f9f9 5%, #e9e9e9 100%);
|
3630 |
+
background-color: #f9f9f9;
|
3631 |
+
border-radius: 6px;
|
3632 |
+
border: 1px solid #dcdcdc;
|
3633 |
+
display: inline-block;
|
3634 |
+
cursor: pointer;
|
3635 |
+
color: #666666;
|
3636 |
+
font-size: inherit;
|
3637 |
+
font-weight: bold;
|
3638 |
+
padding: 6px 24px;
|
3639 |
+
text-decoration: none;
|
3640 |
+
text-shadow: 0 1px 0 #ffffff;
|
3641 |
+
}
|
3642 |
+
body.logged-in:not(.wp-admin) .wpacu-view-more-code:hover {
|
3643 |
+
background: linear-gradient(to bottom, #e9e9e9 5%, #f9f9f9 100%);
|
3644 |
+
background-color: #e9e9e9;
|
3645 |
+
}
|
3646 |
+
body.logged-in:not(.wp-admin) .wpacu-view-more-code:active {
|
3647 |
+
position: relative;
|
3648 |
+
top: 1px;
|
3649 |
+
}
|
3650 |
+
|
3651 |
+
.wpacu-page-options .wpacu-assets-collapsible-content.wpacu-loading {
|
3652 |
+
position: relative;
|
3653 |
+
}
|
3654 |
+
.wpacu-page-options .wpacu-assets-collapsible-content.wpacu-loading .wpacu-ajax-loader {
|
3655 |
+
display: block !important;
|
3656 |
+
}
|
3657 |
+
.wpacu-page-options .wpacu-assets-collapsible-content .wpacu-ajax-loader {
|
3658 |
+
display: none;
|
3659 |
+
width: 58px;
|
3660 |
+
height: 58px;
|
3661 |
+
position: absolute;
|
3662 |
+
bottom: 0;
|
3663 |
+
right: 0;
|
3664 |
+
opacity: 0.75;
|
3665 |
+
}
|
3666 |
+
|
3667 |
+
#wpacu-page-options-ul input[type=checkbox]:checked {
|
3668 |
+
border: 1px solid #cc0000;
|
3669 |
+
}
|
3670 |
+
#wpacu-page-options-ul input[type=checkbox]:checked::before {
|
3671 |
+
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M14.83 4.89l1.34.94-5.81 8.38H9.02L5.78 9.67l1.34-1.25 2.57 2.4z' fill='%23cc0000'/%3E%3C/svg%3E") !important;
|
3672 |
+
}
|
3673 |
+
#wpacu-page-options-ul input[type=checkbox]:checked#wpacu_page_options_no_wpacu_load + span {
|
3674 |
+
color: #cc0000;
|
3675 |
+
}
|
3676 |
+
|
3677 |
+
#wpacu-assets-contract-all img, #wpacu-assets-expand-all img {
|
3678 |
+
display: none;
|
3679 |
+
}
|
3680 |
+
#wpacu-assets-contract-all:disabled span, #wpacu-assets-expand-all:disabled span {
|
3681 |
+
opacity: 0.6;
|
3682 |
+
}
|
3683 |
+
#wpacu-assets-contract-all:disabled img, #wpacu-assets-expand-all:disabled img {
|
3684 |
+
display: inline-block;
|
3685 |
+
vertical-align: middle;
|
3686 |
+
padding-bottom: 3px;
|
3687 |
+
}
|
3688 |
+
|
3689 |
+
/* Pulled from https://github.com/twbs/bootstrap/blob/v4-dev/dist/css/bootstrap.css#L2079-L2241 */
|
3690 |
+
.wpacu_table_wrap {
|
3691 |
+
margin: 20px 0 0;
|
3692 |
+
}
|
3693 |
+
.wpacu_table_wrap > table {
|
3694 |
+
border: 1px solid #cdcdcd;
|
3695 |
+
}
|
3696 |
+
.wpacu_table_wrap .table {
|
3697 |
+
width: 100%;
|
3698 |
+
max-width: 100%;
|
3699 |
+
margin-bottom: 1rem;
|
3700 |
+
-webkit-border-radius: 10px;
|
3701 |
+
-moz-border-radius: 10px;
|
3702 |
+
border-radius: 10px;
|
3703 |
+
}
|
3704 |
+
.wpacu_table_wrap .table th, .wpacu_table_wrap .table td {
|
3705 |
+
padding: 0.75rem;
|
3706 |
+
vertical-align: top;
|
3707 |
+
border-top: 1px solid #eceeef;
|
3708 |
+
}
|
3709 |
+
.wpacu_table_wrap .table thead th {
|
3710 |
+
vertical-align: bottom;
|
3711 |
+
border-bottom: 2px solid #eceeef;
|
3712 |
+
}
|
3713 |
+
.wpacu_table_wrap .table tbody + tbody {
|
3714 |
+
border-top: 2px solid #eceeef;
|
3715 |
+
}
|
3716 |
+
.wpacu_table_wrap .table .table {
|
3717 |
+
background-color: #fff;
|
3718 |
+
}
|
3719 |
+
.wpacu_table_wrap .table-sm th, .wpacu_table_wrap .table-sm td {
|
3720 |
+
padding: 0.3rem;
|
3721 |
+
}
|
3722 |
+
.wpacu_table_wrap .table-bordered {
|
3723 |
+
border: 1px solid #eceeef;
|
3724 |
+
}
|
3725 |
+
.wpacu_table_wrap .table-bordered th, .wpacu_table_wrap .table-bordered td {
|
3726 |
+
border: 1px solid #eceeef;
|
3727 |
+
}
|
3728 |
+
.wpacu_table_wrap .table-bordered thead th, .wpacu_table_wrap .table-bordered thead td {
|
3729 |
+
border-bottom-width: 2px;
|
3730 |
+
}
|
3731 |
+
.wpacu_table_wrap .table-striped tbody tr:nth-of-type(even) {
|
3732 |
+
background-color: #f9f9f9;
|
3733 |
+
}
|
3734 |
+
.wpacu_table_wrap .table-striped tbody tr:nth-of-type(odd) {
|
3735 |
+
background-color: white;
|
3736 |
+
}
|
3737 |
+
.wpacu_table_wrap .table-hover tbody tr:hover {
|
3738 |
+
background-color: rgba(0, 0, 0, 0.075);
|
3739 |
+
}
|
3740 |
+
.wpacu_table_wrap .table-active {
|
3741 |
+
background-color: rgba(0, 0, 0, 0.075);
|
3742 |
+
}
|
3743 |
+
.wpacu_table_wrap .table-active > th, .wpacu_table_wrap .table-active > td {
|
3744 |
+
background-color: rgba(0, 0, 0, 0.075);
|
3745 |
+
}
|
3746 |
+
.wpacu_table_wrap .table-hover .table-active:hover {
|
3747 |
+
background-color: rgba(0, 0, 0, 0.075);
|
3748 |
+
}
|
3749 |
+
.wpacu_table_wrap .table-hover .table-active:hover > td, .wpacu_table_wrap .table-hover .table-active:hover > th {
|
3750 |
+
background-color: rgba(0, 0, 0, 0.075);
|
3751 |
+
}
|
3752 |
+
.wpacu_table_wrap .table-success {
|
3753 |
+
background-color: #dff0d8;
|
3754 |
+
}
|
3755 |
+
.wpacu_table_wrap .table-success > th, .wpacu_table_wrap .table-success > td {
|
3756 |
+
background-color: #dff0d8;
|
3757 |
+
}
|
3758 |
+
.wpacu_table_wrap .table-hover .table-success:hover {
|
3759 |
+
background-color: #d0e9c6;
|
3760 |
+
}
|
3761 |
+
.wpacu_table_wrap .table-hover .table-success:hover > td, .wpacu_table_wrap .table-hover .table-success:hover > th {
|
3762 |
+
background-color: #d0e9c6;
|
3763 |
+
}
|
3764 |
+
.wpacu_table_wrap .table-info {
|
3765 |
+
background-color: #d9edf7;
|
3766 |
+
}
|
3767 |
+
.wpacu_table_wrap .table-info > th, .wpacu_table_wrap .table-info > td {
|
3768 |
+
background-color: #d9edf7;
|
3769 |
+
}
|
3770 |
+
.wpacu_table_wrap .table-hover .table-info:hover {
|
3771 |
+
background-color: #c4e3f3;
|
3772 |
+
}
|
3773 |
+
.wpacu_table_wrap .table-hover .table-info:hover > td, .wpacu_table_wrap .table-hover .table-info:hover > th {
|
3774 |
+
background-color: #c4e3f3;
|
3775 |
+
}
|
3776 |
+
.wpacu_table_wrap .table-warning {
|
3777 |
+
background-color: #fcf8e3;
|
3778 |
+
}
|
3779 |
+
.wpacu_table_wrap .table-warning > th, .wpacu_table_wrap .table-warning > td {
|
3780 |
+
background-color: #fcf8e3;
|
3781 |
+
}
|
3782 |
+
.wpacu_table_wrap .table-hover .table-warning:hover {
|
3783 |
+
background-color: #faf2cc;
|
3784 |
+
}
|
3785 |
+
.wpacu_table_wrap .table-hover .table-warning:hover > td, .wpacu_table_wrap .table-hover .table-warning:hover > th {
|
3786 |
+
background-color: #faf2cc;
|
3787 |
+
}
|
3788 |
+
.wpacu_table_wrap .table-danger {
|
3789 |
+
background-color: #f2dede;
|
3790 |
+
}
|
3791 |
+
.wpacu_table_wrap .table-danger > th, .wpacu_table_wrap .table-danger > td {
|
3792 |
+
background-color: #f2dede;
|
3793 |
+
}
|
3794 |
+
.wpacu_table_wrap .table-hover .table-danger:hover {
|
3795 |
+
background-color: #ebcccc;
|
3796 |
+
}
|
3797 |
+
.wpacu_table_wrap .table-hover .table-danger:hover > td, .wpacu_table_wrap .table-hover .table-danger:hover > th {
|
3798 |
+
background-color: #ebcccc;
|
3799 |
+
}
|
3800 |
+
.wpacu_table_wrap .thead-inverse th {
|
3801 |
+
color: #fff;
|
3802 |
+
background-color: #292b2c;
|
3803 |
+
}
|
3804 |
+
.wpacu_table_wrap .thead-default th {
|
3805 |
+
color: #464a4c;
|
3806 |
+
background-color: #eceeef;
|
3807 |
+
}
|
3808 |
+
.wpacu_table_wrap .table-inverse {
|
3809 |
+
color: #fff;
|
3810 |
+
background-color: #292b2c;
|
3811 |
+
}
|
3812 |
+
.wpacu_table_wrap .table-inverse th, .wpacu_table_wrap .table-inverse td, .wpacu_table_wrap .table-inverse thead th {
|
3813 |
+
border-color: #fff;
|
3814 |
+
}
|
3815 |
+
.wpacu_table_wrap .table-inverse.table-bordered {
|
3816 |
+
border: 0;
|
3817 |
+
}
|
3818 |
+
.wpacu_table_wrap .table-responsive {
|
3819 |
+
display: block;
|
3820 |
+
width: 100%;
|
3821 |
+
overflow-x: auto;
|
3822 |
+
-ms-overflow-style: -ms-autohiding-scrollbar;
|
3823 |
+
}
|
3824 |
+
.wpacu_table_wrap .table-responsive.table-bordered {
|
3825 |
+
border: 0;
|
3826 |
+
}
|
3827 |
+
|
3828 |
+
body.wp-admin[class*=asset-cleanup] .wpacu-overview-wrap .wpacu-overview-list-table tr:not(.wpacu-top):hover td {
|
3829 |
+
border-top: 1px solid #ccd0d4;
|
3830 |
+
border-bottom: 1px solid #ccd0d4;
|
3831 |
+
}
|
3832 |
+
body.wp-admin[class*=asset-cleanup] .wpacu-overview-wrap .wpacu-overview-list-table tr:not(.wpacu-top):hover td:first-of-type {
|
3833 |
+
border-left: 1px solid #ccd0d4;
|
3834 |
+
}
|
3835 |
+
body.wp-admin[class*=asset-cleanup] .wpacu-overview-wrap .wpacu-overview-list-table tr:not(.wpacu-top):hover td:last-of-type {
|
3836 |
+
border-right: 1px solid #ccd0d4;
|
3837 |
+
}
|
3838 |
+
body.wp-admin[class*=asset-cleanup] .wpacu-overview-wrap .wpacu-overview-list-table tr td {
|
3839 |
+
font-size: 14px;
|
3840 |
+
border-top: 1px solid transparent;
|
3841 |
+
border-bottom: 1px solid transparent;
|
3842 |
+
}
|
3843 |
+
body.wp-admin[class*=asset-cleanup] .wpacu-overview-wrap .wpacu-overview-list-table tr td:first-of-type {
|
3844 |
+
border-left: 1px solid transparent;
|
3845 |
+
}
|
3846 |
+
body.wp-admin[class*=asset-cleanup] .wpacu-overview-wrap .wpacu-overview-list-table tr td:last-of-type {
|
3847 |
+
border-right: 1px solid transparent;
|
3848 |
+
}
|
3849 |
+
body.wp-admin[class*=asset-cleanup] table.wp-list-table:not(.wpacu-overview-list-table).wpacu-list-table tr:not(.wpacu_selected):hover {
|
3850 |
+
-moz-box-shadow: inset 0 0 2px 1px #b3b3b3;
|
3851 |
+
-webkit-box-shadow: inset 0 0 2px 1px #B3B3B3;
|
3852 |
+
box-shadow: inset 0 0 2px 1px #B3B3B3;
|
3853 |
+
}
|
3854 |
+
body.wp-admin[class*=asset-cleanup] table.wp-list-table:not(.wpacu-overview-list-table) tr:not(:first-of-type):not(.wpacu_selected):hover {
|
3855 |
+
-moz-box-shadow: inset 0 0 2px 1px #b3b3b3;
|
3856 |
+
-webkit-box-shadow: inset 0 0 2px 1px #B3B3B3;
|
3857 |
+
box-shadow: inset 0 0 2px 1px #B3B3B3;
|
3858 |
+
}
|
3859 |
+
|
3860 |
+
.wp-list-table .wpacu_restore_position_row.wpacu_selected {
|
3861 |
+
background: #e7e7e7 !important;
|
3862 |
+
}
|
3863 |
+
.wp-list-table .wpacu_remove_global_attr_row.wpacu_selected {
|
3864 |
+
background: #e7e7e7 !important;
|
3865 |
+
}
|
3866 |
+
|
3867 |
+
ul.hire-reasons {
|
3868 |
+
margin-bottom: 20px;
|
3869 |
+
}
|
3870 |
+
ul.hire-reasons li {
|
3871 |
+
font-size: 14px;
|
3872 |
+
line-height: 22px;
|
3873 |
+
margin-bottom: 12px;
|
3874 |
+
}
|
3875 |
+
ul.hire-reasons li .dashicons {
|
3876 |
+
font-size: 23px;
|
3877 |
+
line-height: 23px;
|
3878 |
+
}
|
3879 |
+
ul.hire-reasons li .dashicons.dashicons-yes {
|
3880 |
+
color: green;
|
3881 |
+
}
|
3882 |
+
|
3883 |
+
ol.getting-started li {
|
3884 |
+
font-size: 14px;
|
3885 |
+
line-height: 22px;
|
3886 |
+
margin-bottom: 8px;
|
3887 |
+
}
|
3888 |
+
|
3889 |
+
.wpacu-get-help-wrap p {
|
3890 |
+
font-size: 14px;
|
3891 |
+
}
|
3892 |
+
.wpacu-get-help-wrap .help-content-wrap {
|
3893 |
+
margin: 20px 0 25px;
|
3894 |
+
display: -webkit-box;
|
3895 |
+
/* OLD - iOS 6-, Safari 3.1-6 */
|
3896 |
+
display: -moz-box;
|
3897 |
+
/* OLD - Firefox 19- (buggy but mostly works) */
|
3898 |
+
display: -ms-flexbox;
|
3899 |
+
/* TWEENER - IE 10 */
|
3900 |
+
display: -moz-flex;
|
3901 |
+
display: -webkit-flex;
|
3902 |
+
/* NEW - Chrome */
|
3903 |
+
display: flex;
|
3904 |
+
width: 100%;
|
3905 |
+
}
|
3906 |
+
@media only screen and (min-width: 768px) {
|
3907 |
+
.wpacu-get-help-wrap .help-content-wrap {
|
3908 |
+
-webkit-box-align: start;
|
3909 |
+
-ms-flex-align: start;
|
3910 |
+
-ms-grid-row-align: flex-start;
|
3911 |
+
align-items: flex-start;
|
3912 |
+
}
|
3913 |
+
}
|
3914 |
+
@media only screen and (max-width: 767px) {
|
3915 |
+
.wpacu-get-help-wrap .help-content-wrap {
|
3916 |
+
-webkit-box-orient: vertical;
|
3917 |
+
-webkit-box-direction: normal;
|
3918 |
+
-ms-flex-direction: column;
|
3919 |
+
flex-direction: column;
|
3920 |
+
}
|
3921 |
+
}
|
3922 |
+
.wpacu-get-help-wrap .help-content-wrap .help-content {
|
3923 |
+
padding: 15px;
|
3924 |
+
background: white;
|
3925 |
+
border: 1px solid #E0E0E0;
|
3926 |
+
-webkit-border-radius: 10px;
|
3927 |
+
/* Chrome, Safari, Opera */
|
3928 |
+
-moz-border-radius: 10px;
|
3929 |
+
/* Firefox */
|
3930 |
+
border-radius: 10px;
|
3931 |
+
box-shadow: 2px 3px 8px 0 #231f2038;
|
3932 |
+
flex: 1 1 50%;
|
3933 |
+
margin-bottom: 10px;
|
3934 |
+
}
|
3935 |
+
.wpacu-get-help-wrap .help-content-wrap .help-content .content-title {
|
3936 |
+
margin: 5px 0 15px;
|
3937 |
+
line-height: 24px;
|
3938 |
+
}
|
3939 |
+
.wpacu-get-help-wrap .help-content-wrap .help-content .cols-wrap {
|
3940 |
+
width: 100%;
|
3941 |
+
margin: 0 auto;
|
3942 |
+
display: table;
|
3943 |
+
}
|
3944 |
+
.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area {
|
3945 |
+
margin: 5px 0 0 0;
|
3946 |
+
position: relative;
|
3947 |
+
}
|
3948 |
+
.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area.col-left {
|
3949 |
+
float: left;
|
3950 |
+
width: 48%;
|
3951 |
+
}
|
3952 |
+
.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area.col-right {
|
3953 |
+
float: right;
|
3954 |
+
width: 48%;
|
3955 |
+
}
|
3956 |
+
.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area.activate-plugin img {
|
3957 |
+
max-width: 320px;
|
3958 |
+
}
|
3959 |
+
.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area img {
|
3960 |
+
width: 99%;
|
3961 |
+
margin: 8px 0;
|
3962 |
+
border: 1px solid #cdcdcd;
|
3963 |
+
-webkit-border-radius: 10px;
|
3964 |
+
/* Chrome, Safari, Opera */
|
3965 |
+
-moz-border-radius: 10px;
|
3966 |
+
/* Firefox */
|
3967 |
+
border-radius: 10px;
|
3968 |
+
}
|
3969 |
+
@media only screen and (min-width: 768px) {
|
3970 |
+
.wpacu-get-help-wrap .help-content-wrap .help-content {
|
3971 |
+
margin-right: 24px;
|
3972 |
+
}
|
3973 |
+
}
|
3974 |
+
.wpacu-get-help-wrap .help-content-wrap .help-content.upgrade-help {
|
3975 |
+
order: 2;
|
3976 |
+
}
|
3977 |
+
@media only screen and (min-width: 768px) {
|
3978 |
+
.wpacu-get-help-wrap .help-content-wrap .help-content.upgrade-help {
|
3979 |
+
margin-right: 0;
|
3980 |
+
}
|
3981 |
+
}
|
3982 |
+
.wpacu-get-help-wrap .help-content-wrap .help-content.tech-help {
|
3983 |
+
order: 1;
|
3984 |
+
}
|
3985 |
+
@media only screen and (max-width: 767px) {
|
3986 |
+
.wpacu-get-help-wrap .help-content-wrap .help-content.tech-help {
|
3987 |
+
margin-bottom: 30px;
|
3988 |
+
}
|
3989 |
+
}
|
3990 |
+
.wpacu-get-help-wrap .help-content-wrap .help-content ul {
|
3991 |
+
list-style: none;
|
3992 |
+
padding-left: 0;
|
3993 |
+
}
|
3994 |
+
.wpacu-get-help-wrap .help-content-wrap .help-content ul li {
|
3995 |
+
font-size: 14px;
|
3996 |
+
line-height: 22px;
|
3997 |
+
margin-bottom: 15px;
|
3998 |
+
}
|
3999 |
+
.wpacu-get-help-wrap .help-content-wrap .help-content ul li:last-child {
|
4000 |
+
margin-bottom: 0;
|
4001 |
+
}
|
4002 |
+
.wpacu-get-help-wrap .help-content-wrap .help-content p:last-child {
|
4003 |
+
margin-bottom: 0;
|
4004 |
+
}
|
4005 |
+
|
4006 |
+
.wpacu-tab-nav-wrapper {
|
4007 |
+
border-bottom: none !important;
|
4008 |
+
}
|
4009 |
+
.wpacu-tab-nav-wrapper .nav-tab.nav-tab-active {
|
4010 |
+
background: white;
|
4011 |
+
position: relative;
|
4012 |
+
}
|
4013 |
+
.wpacu-tab-nav-wrapper .nav-tab.nav-tab-active:after {
|
4014 |
+
content: "";
|
4015 |
+
width: 100%;
|
4016 |
+
bottom: -2px;
|
4017 |
+
left: 0;
|
4018 |
+
position: absolute;
|
4019 |
+
border-bottom: 2px solid #fff;
|
4020 |
+
}
|
4021 |
+
|
4022 |
+
select#wpacu-reset-drop-down {
|
4023 |
+
max-width: 100%;
|
4024 |
+
}
|
4025 |
+
|
4026 |
+
#wpacu-license-data-remove-area {
|
4027 |
+
display: none;
|
4028 |
+
margin: 14px 0 12px;
|
4029 |
+
}
|
4030 |
+
#wpacu-license-data-remove-area.wpacu-visible {
|
4031 |
+
display: block;
|
4032 |
+
}
|
4033 |
+
|
4034 |
+
#wpacu-cache-assets-remove-area {
|
4035 |
+
display: none;
|
4036 |
+
margin: 12px 0 25px;
|
4037 |
+
}
|
4038 |
+
#wpacu-cache-assets-remove-area.wpacu-visible {
|
4039 |
+
display: block;
|
4040 |
+
}
|
4041 |
+
|
4042 |
+
span#wpacu-license-data-removed-msg, #wpacu-cached-assets-removed-msg {
|
4043 |
+
display: block;
|
4044 |
+
padding-left: 26px;
|
4045 |
+
}
|
4046 |
+
|
4047 |
+
#wpacu-warning-read {
|
4048 |
+
display: none;
|
4049 |
+
margin: 10px 0;
|
4050 |
+
}
|
4051 |
+
#wpacu-warning-read span.dashicons-warning, #wpacu-warning-read span.dashicons-wordpress-alt {
|
4052 |
+
color: #cc0000;
|
4053 |
+
}
|
4054 |
+
#wpacu-warning-read.wpacu-visible {
|
4055 |
+
display: block;
|
4056 |
+
}
|
4057 |
+
|
4058 |
+
#wpacu-reset-submit-area {
|
4059 |
+
margin: 10px 0;
|
4060 |
+
clear: both;
|
4061 |
+
}
|
4062 |
+
|
4063 |
+
#wpacu-reset-submit-btn {
|
4064 |
+
margin: 10px 0 0;
|
4065 |
+
}
|
4066 |
+
|
4067 |
+
.wpacu-tools-area {
|
4068 |
+
margin: 10px 20px 0 2px;
|
4069 |
+
}
|
4070 |
+
.wpacu-tools-area .wpacu-tools-container {
|
4071 |
+
background: white;
|
4072 |
+
padding: 15px;
|
4073 |
+
border: 1px solid #cdcdcd;
|
4074 |
+
width: 96%;
|
4075 |
+
}
|
4076 |
+
.wpacu-tools-area .wpacu-tools-container form > div:first-child {
|
4077 |
+
margin: 0 0 10px;
|
4078 |
+
}
|
4079 |
+
.wpacu-tools-area .wpacu-tools-container form .wpacu-warning {
|
4080 |
+
display: none;
|
4081 |
+
box-sizing: border-box;
|
4082 |
+
margin-top: 10px;
|
4083 |
+
}
|
4084 |
+
.wpacu-tools-area .wpacu-tools-container form .wpacu-warning p {
|
4085 |
+
margin: 0 0 10px;
|
4086 |
+
line-height: 22px;
|
4087 |
+
}
|
4088 |
+
.wpacu-tools-area .wpacu-tools-container form .wpacu-warning p:only-child {
|
4089 |
+
margin: 0;
|
4090 |
+
}
|
4091 |
+
.wpacu-tools-area .wpacu-tools-container form .wpacu-warning ul {
|
4092 |
+
font-size: 13px;
|
4093 |
+
list-style-type: disc;
|
4094 |
+
padding-left: 30px;
|
4095 |
+
}
|
4096 |
+
.wpacu-tools-area .wpacu-tools-container form .wpacu-warning.wpacu-visible {
|
4097 |
+
display: block;
|
4098 |
+
}
|
4099 |
+
.wpacu-tools-area .wpacu-export-import-area {
|
4100 |
+
padding: 10px;
|
4101 |
+
}
|
4102 |
+
.wpacu-tools-area .wpacu-export-import-area form > p:first-of-type {
|
4103 |
+
margin-top: 0;
|
4104 |
+
}
|
4105 |
+
.wpacu-tools-area .wpacu-export-import-area form > p:last-of-type {
|
4106 |
+
margin-bottom: 0;
|
4107 |
+
}
|
4108 |
+
.wpacu-tools-area .wpacu-export-import-area:hover {
|
4109 |
+
background: rgba(40, 44, 42, 0.05);
|
4110 |
+
box-shadow: inset 0 0 10px rgba(160, 165, 170, 0.15);
|
4111 |
+
}
|
4112 |
+
.wpacu-tools-area .wpacu-export-import-area + hr {
|
4113 |
+
display: block;
|
4114 |
+
height: 1px;
|
4115 |
+
border: 0;
|
4116 |
+
border-top: 1px solid #cdcdcd;
|
4117 |
+
margin: 10px 0;
|
4118 |
+
padding: 0;
|
4119 |
+
}
|
4120 |
+
|
4121 |
+
#wpacu-import-form button.wpacu-importing img.wpacu-spinner {
|
4122 |
+
display: inline-block;
|
4123 |
+
}
|
4124 |
+
#wpacu-import-form button img.wpacu-spinner {
|
4125 |
+
display: none;
|
4126 |
+
margin: 0 0 0 5px;
|
4127 |
+
height: 16px;
|
4128 |
+
width: 16px;
|
4129 |
+
vertical-align: middle;
|
4130 |
+
}
|
4131 |
+
|
4132 |
+
@media only screen and (max-width: 767px) {
|
4133 |
+
.wpacu-about-wrap h1 {
|
4134 |
+
margin: 20px;
|
4135 |
+
}
|
4136 |
+
}
|
4137 |
+
.wpacu-about-wrap .wpacu-about-text img {
|
4138 |
+
width: auto;
|
4139 |
+
height: 150px;
|
4140 |
+
position: absolute;
|
4141 |
+
top: 20px;
|
4142 |
+
right: -20px;
|
4143 |
+
}
|
4144 |
+
@media only screen and (max-width: 767px) {
|
4145 |
+
.wpacu-about-wrap .wpacu-about-text img {
|
4146 |
+
display: none;
|
4147 |
+
}
|
4148 |
+
}
|
4149 |
+
@media only screen and (max-width: 767px) {
|
4150 |
+
.wpacu-about-wrap .wpacu-about-text {
|
4151 |
+
margin: 20px;
|
4152 |
+
}
|
4153 |
+
}
|
4154 |
+
.wpacu-about-wrap .about-wrap-content .area-title {
|
4155 |
+
font-size: 19px;
|
4156 |
+
line-height: 19px;
|
4157 |
+
margin-bottom: 0;
|
4158 |
+
}
|
4159 |
+
.wpacu-about-wrap hr {
|
4160 |
+
margin: 10px 0;
|
4161 |
+
}
|
4162 |
+
|
4163 |
+
.wpacu-lite-vs-pro-wrap {
|
4164 |
+
/*
|
4165 |
+
.sep {
|
4166 |
+
background:#F5F5F5;
|
4167 |
+
font-weight:bold;
|
4168 |
+
}
|
4169 |
+
*/
|
4170 |
+
}
|
4171 |
+
.wpacu-lite-vs-pro-wrap ul {
|
4172 |
+
display: flex;
|
4173 |
+
top: 0;
|
4174 |
+
z-index: 10;
|
4175 |
+
padding-bottom: 14px;
|
4176 |
+
}
|
4177 |
+
.wpacu-lite-vs-pro-wrap li {
|
4178 |
+
list-style: none;
|
4179 |
+
flex: 1;
|
4180 |
+
}
|
4181 |
+
.wpacu-lite-vs-pro-wrap li:last-child {
|
4182 |
+
border-right: 1px solid #DDD;
|
4183 |
+
}
|
4184 |
+
.wpacu-lite-vs-pro-wrap button {
|
4185 |
+
width: 100%;
|
4186 |
+
border: 1px solid #DDD;
|
4187 |
+
border-right: 0;
|
4188 |
+
border-top: 0;
|
4189 |
+
padding: 10px;
|
4190 |
+
background: #FFF;
|
4191 |
+
font-size: 14px;
|
4192 |
+
font-weight: bold;
|
4193 |
+
height: 60px;
|
4194 |
+
color: #999;
|
4195 |
+
}
|
4196 |
+
.wpacu-lite-vs-pro-wrap li.active button {
|
4197 |
+
background: #F5F5F5;
|
4198 |
+
color: #000;
|
4199 |
+
}
|
4200 |
+
.wpacu-lite-vs-pro-wrap table {
|
4201 |
+
border-collapse: collapse;
|
4202 |
+
table-layout: fixed;
|
4203 |
+
width: 100%;
|
4204 |
+
}
|
4205 |
+
.wpacu-lite-vs-pro-wrap th {
|
4206 |
+
background: inherit;
|
4207 |
+
}
|
4208 |
+
.wpacu-lite-vs-pro-wrap tr.first {
|
4209 |
+
background: inherit;
|
4210 |
+
font-size: 18px;
|
4211 |
+
}
|
4212 |
+
.wpacu-lite-vs-pro-wrap tr.first .bg-lite {
|
4213 |
+
border-top: 4px solid #6d6e70;
|
4214 |
+
background: white;
|
4215 |
+
color: #6d6e70;
|
4216 |
+
}
|
4217 |
+
.wpacu-lite-vs-pro-wrap tr.first .bg-pro {
|
4218 |
+
border-top: 4px solid green;
|
4219 |
+
background: white;
|
4220 |
+
color: green;
|
4221 |
+
}
|
4222 |
+
.wpacu-lite-vs-pro-wrap tr:not(.first) {
|
4223 |
+
background: white;
|
4224 |
+
}
|
4225 |
+
.wpacu-lite-vs-pro-wrap tr:not(:last-child):hover {
|
4226 |
+
background: #f8f8f8;
|
4227 |
+
}
|
4228 |
+
.wpacu-lite-vs-pro-wrap td, .wpacu-lite-vs-pro-wrap th {
|
4229 |
+
height: 53px;
|
4230 |
+
line-height: 22px;
|
4231 |
+
}
|
4232 |
+
@media only screen and (max-width: 767px) {
|
4233 |
+
.wpacu-lite-vs-pro-wrap td, .wpacu-lite-vs-pro-wrap th {
|
4234 |
+
font-size: 14px;
|
4235 |
+
}
|
4236 |
+
}
|
4237 |
+
.wpacu-lite-vs-pro-wrap td, .wpacu-lite-vs-pro-wrap th {
|
4238 |
+
border: 1px solid #DDD;
|
4239 |
+
padding: 10px 16px 10px 16px;
|
4240 |
+
empty-cells: show;
|
4241 |
+
}
|
4242 |
+
.wpacu-lite-vs-pro-wrap td, .wpacu-lite-vs-pro-wrap th {
|
4243 |
+
text-align: left;
|
4244 |
+
}
|
4245 |
+
.wpacu-lite-vs-pro-wrap td + td, .wpacu-lite-vs-pro-wrap th + th {
|
4246 |
+
text-align: center;
|
4247 |
+
display: none;
|
4248 |
+
}
|
4249 |
+
.wpacu-lite-vs-pro-wrap td.default {
|
4250 |
+
display: table-cell;
|
4251 |
+
}
|
4252 |
+
.wpacu-lite-vs-pro-wrap .txt-l {
|
4253 |
+
font-size: 28px;
|
4254 |
+
font-weight: bold;
|
4255 |
+
}
|
4256 |
+
@media only screen and (max-width: 767px) {
|
4257 |
+
.wpacu-lite-vs-pro-wrap .txt-l {
|
4258 |
+
font-size: 20px;
|
4259 |
+
}
|
4260 |
+
}
|
4261 |
+
.wpacu-lite-vs-pro-wrap .txt-top {
|
4262 |
+
position: relative;
|
4263 |
+
top: -9px;
|
4264 |
+
left: -2px;
|
4265 |
+
}
|
4266 |
+
.wpacu-lite-vs-pro-wrap svg {
|
4267 |
+
width: 18px;
|
4268 |
+
height: 18px;
|
4269 |
+
}
|
4270 |
+
.wpacu-lite-vs-pro-wrap svg path {
|
4271 |
+
fill: green;
|
4272 |
+
}
|
4273 |
+
.wpacu-lite-vs-pro-wrap .tick {
|
4274 |
+
color: #2CA01C;
|
4275 |
+
}
|
4276 |
+
.wpacu-lite-vs-pro-wrap .tick img {
|
4277 |
+
fill: #2CA01C;
|
4278 |
+
}
|
4279 |
+
@media only screen and (max-width: 767px) {
|
4280 |
+
.wpacu-lite-vs-pro-wrap .tick {
|
4281 |
+
font-size: 15px;
|
4282 |
+
}
|
4283 |
+
}
|
4284 |
+
.wpacu-lite-vs-pro-wrap .na {
|
4285 |
+
font-size: 18px;
|
4286 |
+
opacity: 0.3;
|
4287 |
+
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
|
4288 |
+
}
|
4289 |
+
@media only screen and (max-width: 767px) {
|
4290 |
+
.wpacu-lite-vs-pro-wrap .na {
|
4291 |
+
font-size: 15px;
|
4292 |
+
}
|
4293 |
+
}
|
4294 |
+
.wpacu-lite-vs-pro-wrap .hide {
|
4295 |
+
border: 0;
|
4296 |
+
background: none;
|
4297 |
+
}
|
4298 |
+
.wpacu-lite-vs-pro-wrap td, .wpacu-lite-vs-pro-wrap th {
|
4299 |
+
display: table-cell !important;
|
4300 |
+
}
|
4301 |
+
.wpacu-lite-vs-pro-wrap td, .wpacu-lite-vs-pro-wrap th {
|
4302 |
+
width: auto;
|
4303 |
+
}
|
4304 |
+
.wpacu-lite-vs-pro-wrap td + td, .wpacu-lite-vs-pro-wrap th + th {
|
4305 |
+
width: 130px;
|
4306 |
+
}
|
4307 |
+
@media only screen and (max-width: 767px) {
|
4308 |
+
.wpacu-lite-vs-pro-wrap td + td, .wpacu-lite-vs-pro-wrap th + th {
|
4309 |
+
width: 42px;
|
4310 |
+
}
|
4311 |
+
}
|
4312 |
+
@media only screen and (min-width: 768px) {
|
4313 |
+
.wpacu-lite-vs-pro-wrap td .button {
|
4314 |
+
font-size: 16px !important;
|
4315 |
+
}
|
4316 |
+
}
|
4317 |
+
@media only screen and (max-width: 767px) {
|
4318 |
+
.wpacu-lite-vs-pro-wrap td .button {
|
4319 |
+
font-size: 14px !important;
|
4320 |
+
padding: 0 20px !important;
|
4321 |
+
}
|
4322 |
+
.wpacu-lite-vs-pro-wrap td .button.button-primary {
|
4323 |
+
margin-top: 6px;
|
4324 |
+
margin-bottom: 14px;
|
4325 |
+
}
|
4326 |
+
}
|
4327 |
+
@media only screen and (min-width: 768px) {
|
4328 |
+
.wpacu-lite-vs-pro-wrap {
|
4329 |
+
margin-bottom: 40px;
|
4330 |
+
clear: both;
|
4331 |
+
}
|
4332 |
+
}
|
4333 |
+
|
4334 |
+
.wpacu-video-areas > div {
|
4335 |
+
padding: 20px;
|
4336 |
+
-webkit-border-radius: 10px;
|
4337 |
+
/* Chrome, Safari, Opera */
|
4338 |
+
-moz-border-radius: 10px;
|
4339 |
+
/* Firefox */
|
4340 |
+
border-radius: 10px;
|
4341 |
+
}
|
4342 |
+
.wpacu-video-areas > div:nth-child(odd) {
|
4343 |
+
background: white;
|
4344 |
+
}
|
4345 |
+
.wpacu-video-areas > div:nth-child(even) {
|
4346 |
+
background: inherit;
|
4347 |
+
}
|
4348 |
+
@media only screen and (min-width: 1200px) {
|
4349 |
+
.wpacu-video-areas .wpacu-video-area-wrapper {
|
4350 |
+
margin: 0 0 15px;
|
4351 |
+
display: flex;
|
4352 |
+
}
|
4353 |
+
}
|
4354 |
+
@media only screen and (min-width: 992px) and (max-width: 1199px) {
|
4355 |
+
.wpacu-video-areas .wpacu-video-area-wrapper {
|
4356 |
+
margin: 0 0 40px;
|
4357 |
+
}
|
4358 |
+
}
|
4359 |
+
.wpacu-video-areas .wpacu-video-area-wrapper ol {
|
4360 |
+
font-size: 14px;
|
4361 |
+
}
|
4362 |
+
.wpacu-video-areas .wpacu-video-area-wrapper ul {
|
4363 |
+
font-size: 14px;
|
4364 |
+
list-style: disc;
|
4365 |
+
margin-left: 22px;
|
4366 |
+
}
|
4367 |
+
@media only screen and (min-width: 1200px) {
|
4368 |
+
.wpacu-video-areas .wpacu-video-area-wrapper .wpacu-col-right {
|
4369 |
+
padding: 0 20px 0 25px;
|
4370 |
+
}
|
4371 |
+
}
|
4372 |
+
@media only screen and (min-width: 1200px) {
|
4373 |
+
.wpacu-video-areas .wpacu-video-area-wrapper .wpacu-col-right p:first-child {
|
4374 |
+
margin-top: 0;
|
4375 |
+
}
|
4376 |
+
}
|
4377 |
+
@media only screen and (min-width: 1200px) {
|
4378 |
+
.wpacu-video-areas .wpacu-video-area-wrapper .wpacu-col-right p:last-child {
|
4379 |
+
margin-bottom: 0;
|
4380 |
+
}
|
4381 |
+
}
|
4382 |
+
@media only screen and (max-width: 1199px) {
|
4383 |
+
.wpacu-video-areas .wpacu-video-area-wrapper .wpacu-video-wrapper {
|
4384 |
+
position: relative;
|
4385 |
+
padding-bottom: 56.25%;
|
4386 |
+
padding-top: 30px;
|
4387 |
+
height: 0;
|
4388 |
+
overflow: hidden;
|
4389 |
+
}
|
4390 |
+
}
|
4391 |
+
.wpacu-video-areas .wpacu-video-area-wrapper .wpacu-video-wrapper iframe {
|
4392 |
+
width: 560px;
|
4393 |
+
height: 315px;
|
4394 |
+
}
|
4395 |
+
@media only screen and (max-width: 1199px) {
|
4396 |
+
.wpacu-video-areas .wpacu-video-area-wrapper .wpacu-video-wrapper iframe {
|
4397 |
+
position: absolute;
|
4398 |
+
top: 0;
|
4399 |
+
left: 0;
|
4400 |
+
width: 100%;
|
4401 |
+
height: 100%;
|
4402 |
+
}
|
4403 |
+
}
|
4404 |
+
|
4405 |
+
#wpassetcleanup_asset_list.postbox h2 {
|
4406 |
+
padding-left: 52px !important;
|
4407 |
+
position: relative;
|
4408 |
+
}
|
4409 |
+
#wpassetcleanup_asset_list.postbox h2:before {
|
4410 |
+
content: "";
|
4411 |
+
position: absolute;
|
4412 |
+
background-image: url("images/wpacu-logo-transparent-bg-v1.png");
|
4413 |
+
background-size: cover;
|
4414 |
+
top: 6px;
|
4415 |
+
left: 13px;
|
4416 |
+
width: 33px;
|
4417 |
+
height: 26px;
|
4418 |
+
opacity: 0.8;
|
4419 |
+
-webkit-filter: grayscale(100%);
|
4420 |
+
filter: grayscale(100%);
|
4421 |
+
}
|
4422 |
+
|
4423 |
+
body.wp-admin {
|
4424 |
+
/* The Modal (background) */
|
4425 |
+
/* Modal Content */
|
4426 |
+
/* The Close Button */
|
4427 |
+
}
|
4428 |
+
body.wp-admin .wpacu-modal {
|
4429 |
+
display: none;
|
4430 |
+
/* Hidden by default */
|
4431 |
+
position: fixed;
|
4432 |
+
/* Stay in place */
|
4433 |
+
z-index: 1000000;
|
4434 |
+
/* Sit on top */
|
4435 |
+
padding-top: 15%;
|
4436 |
+
/* Location of the box */
|
4437 |
+
left: 0;
|
4438 |
+
top: 0;
|
4439 |
+
/* Full width */
|
4440 |
+
/* Full height */
|
4441 |
+
width: 100%;
|
4442 |
+
height: 100%;
|
4443 |
+
overflow: auto;
|
4444 |
+
/* Enable scroll if needed */
|
4445 |
+
background-color: black;
|
4446 |
+
/* Fallback color */
|
4447 |
+
background-color: rgba(0, 0, 0, 0.4);
|
4448 |
+
/* Black w/ opacity */
|
4449 |
+
}
|
4450 |
+
body.wp-admin .wpacu-modal pre {
|
4451 |
+
white-space: normal;
|
4452 |
+
}
|
4453 |
+
body.wp-admin .wpacu-modal-content {
|
4454 |
+
background-color: #fefefe;
|
4455 |
+
margin: auto;
|
4456 |
+
padding: 20px;
|
4457 |
+
border: 1px solid #888;
|
4458 |
+
width: 80%;
|
4459 |
+
max-width: 600px;
|
4460 |
+
border-radius: 10px;
|
4461 |
+
}
|
4462 |
+
body.wp-admin .wpacu-modal-content pre {
|
4463 |
+
white-space: normal;
|
4464 |
+
}
|
4465 |
+
body.wp-admin .wpacu-close {
|
4466 |
+
color: #aaaaaa;
|
4467 |
+
float: right;
|
4468 |
+
font-size: 28px;
|
4469 |
+
font-weight: bold;
|
4470 |
+
}
|
4471 |
+
body.wp-admin .wpacu-close:hover,
|
4472 |
+
body.wp-admin .wpacu-close:focus {
|
4473 |
+
color: #000;
|
4474 |
+
text-decoration: none;
|
4475 |
+
cursor: pointer;
|
4476 |
+
}
|
4477 |
+
|
4478 |
+
.wpacu-bulk-changes-tabs {
|
4479 |
+
display: table;
|
4480 |
+
position: relative;
|
4481 |
+
overflow: hidden;
|
4482 |
+
margin: 0;
|
4483 |
+
width: 100%;
|
4484 |
+
}
|
4485 |
+
.wpacu-bulk-changes-tabs li {
|
4486 |
+
border-top: 1px solid rgba(40, 44, 42, 0.1);
|
4487 |
+
border-left: 1px solid rgba(40, 44, 42, 0.1);
|
4488 |
+
border-bottom: 1px solid rgba(40, 44, 42, 0.1);
|
4489 |
+
float: left;
|
4490 |
+
line-height: 38px;
|
4491 |
+
padding: 0;
|
4492 |
+
position: relative;
|
4493 |
+
margin-bottom: 12px;
|
4494 |
+
}
|
4495 |
+
.wpacu-bulk-changes-tabs li:last-child {
|
4496 |
+
border-right: 1px solid rgba(40, 44, 42, 0.1);
|
4497 |
+
}
|
4498 |
+
.wpacu-bulk-changes-tabs a {
|
4499 |
+
position: relative;
|
4500 |
+
background: rgba(40, 44, 42, 0.05);
|
4501 |
+
color: #004567;
|
4502 |
+
font-size: 14px;
|
4503 |
+
font-weight: 500;
|
4504 |
+
display: block;
|
4505 |
+
letter-spacing: 0;
|
4506 |
+
outline: none;
|
4507 |
+
padding: 6px 20px;
|
4508 |
+
text-decoration: none;
|
4509 |
+
border-top: 3px solid transparent;
|
4510 |
+
}
|
4511 |
+
.wpacu-bulk-changes-tabs a:hover {
|
4512 |
+
background: #f1f1f1;
|
4513 |
+
border-top: 3px solid transparent;
|
4514 |
+
}
|
4515 |
+
.wpacu-bulk-changes-tabs .current a {
|
4516 |
+
background: white;
|
4517 |
+
border-top: 3px solid #004567;
|
4518 |
+
}
|
4519 |
+
.wpacu-bulk-changes-tabs .current a:hover {
|
4520 |
+
background: white;
|
4521 |
+
}
|
4522 |
+
.wpacu-bulk-changes-tabs .current a:after, .wpacu-bulk-changes-tabs .current a:before {
|
4523 |
+
top: 100%;
|
4524 |
+
left: 50%;
|
4525 |
+
border: solid transparent;
|
4526 |
+
content: " ";
|
4527 |
+
height: 0;
|
4528 |
+
width: 0;
|
4529 |
+
position: absolute;
|
4530 |
+
pointer-events: none;
|
4531 |
+
}
|
4532 |
+
.wpacu-bulk-changes-tabs .current a:after {
|
4533 |
+
border-color: rgba(136, 183, 213, 0);
|
4534 |
+
border-top-color: #fff;
|
4535 |
+
border-width: 12px;
|
4536 |
+
margin-left: -12px;
|
4537 |
+
}
|
4538 |
+
.wpacu-bulk-changes-tabs .current a:before {
|
4539 |
+
border-color: rgba(194, 225, 245, 0);
|
4540 |
+
border-top-color: rgba(40, 44, 42, 0.1);
|
4541 |
+
border-width: 13px;
|
4542 |
+
margin-left: -13px;
|
4543 |
+
}
|
4544 |
+
|
4545 |
+
img.wpacu-emoji {
|
4546 |
+
display: inline !important;
|
4547 |
+
border: none !important;
|
4548 |
+
height: 1em !important;
|
4549 |
+
width: 1em !important;
|
4550 |
+
margin: 0 0.07em !important;
|
4551 |
+
vertical-align: -0.1em !important;
|
4552 |
+
background: 0 0 !important;
|
4553 |
+
padding: 0 !important;
|
4554 |
+
box-shadow: none !important;
|
4555 |
+
}
|
4556 |
+
|
4557 |
+
.wpacu-list-table.plugins {
|
4558 |
+
width: 98%;
|
4559 |
+
-webkit-border-radius: 5px;
|
4560 |
+
/* Chrome, Safari, Opera */
|
4561 |
+
-moz-border-radius: 5px;
|
4562 |
+
/* Firefox */
|
4563 |
+
border-radius: 5px;
|
4564 |
+
}
|
4565 |
+
|
4566 |
+
#wpacu-plugins-load-manager-wrap .help_link {
|
4567 |
+
text-decoration: none;
|
4568 |
+
color: inherit;
|
4569 |
+
vertical-align: middle;
|
4570 |
+
}
|
4571 |
+
#wpacu-plugins-load-manager-wrap table td {
|
4572 |
+
border-bottom: 1px solid #e7e7e7;
|
4573 |
+
}
|
4574 |
+
#wpacu-plugins-load-manager-wrap table .wpacu_plugin_icon > img {
|
4575 |
+
-webkit-border-radius: 3px;
|
4576 |
+
/* Chrome, Safari, Opera */
|
4577 |
+
-moz-border-radius: 3px;
|
4578 |
+
/* Firefox */
|
4579 |
+
border-radius: 3px;
|
4580 |
+
}
|
4581 |
+
#wpacu-plugins-load-manager-wrap table .wpacu_plugin_icon > div {
|
4582 |
+
background: #efefef;
|
4583 |
+
border: #cdcdcd;
|
4584 |
+
border-radius: 3px;
|
4585 |
+
width: 40px;
|
4586 |
+
height: 40px;
|
4587 |
+
vertical-align: middle;
|
4588 |
+
position: relative;
|
4589 |
+
text-align: center;
|
4590 |
+
}
|
4591 |
+
#wpacu-plugins-load-manager-wrap table .wpacu_plugin_icon > div > span {
|
4592 |
+
font-size: 30px;
|
4593 |
+
color: #b3b3b3;
|
4594 |
+
top: 50%;
|
4595 |
+
vertical-align: middle;
|
4596 |
+
left: 50%;
|
4597 |
+
transform: translate(-50%, -50%);
|
4598 |
+
width: 30px;
|
4599 |
+
height: 30px;
|
4600 |
+
position: absolute;
|
4601 |
+
}
|
4602 |
+
#wpacu-plugins-load-manager-wrap table td.wpacu_plugin_details {
|
4603 |
+
vertical-align: middle;
|
4604 |
+
padding: 14px 20px 14px 8px;
|
4605 |
+
min-width: 360px;
|
4606 |
+
}
|
4607 |
+
#wpacu-plugins-load-manager-wrap table td.wpacu_plugin_details .wpacu_plugin_title {
|
4608 |
+
font-size: 1.2em;
|
4609 |
+
font-weight: 600;
|
4610 |
+
}
|
4611 |
+
#wpacu-plugins-load-manager-wrap table td.wpacu_plugin_details .wpacu_plugin_path {
|
4612 |
+
font-style: italic;
|
4613 |
+
color: grey;
|
4614 |
+
font-size: 12px;
|
4615 |
+
vertical-align: bottom;
|
4616 |
+
}
|
4617 |
+
#wpacu-plugins-load-manager-wrap table td.wpacu_plugin_icon {
|
4618 |
+
padding: 10px 4px 0 10px;
|
4619 |
+
}
|
4620 |
+
#wpacu-plugins-load-manager-wrap table div.wpacu_plugin_icon {
|
4621 |
+
padding: 0 4px;
|
4622 |
+
}
|
4623 |
+
#wpacu-plugins-load-manager-wrap .wpacu_plugin_unload_rules_options_wrap .wpacu_plugin_rules_wrap {
|
4624 |
+
flex-grow: 1;
|
4625 |
+
margin: 0 16px 0 0 !important;
|
4626 |
+
padding: 12px 10px 6px 0 !important;
|
4627 |
+
}
|
4628 |
+
#wpacu-plugins-load-manager-wrap .wpacu_plugin_unload_rules_options_wrap .wpacu_plugin_rules_wrap fieldset {
|
4629 |
+
border: 1px solid #cdcdcd;
|
4630 |
+
padding: 10px;
|
4631 |
+
background: inherit;
|
4632 |
+
border-radius: 5px;
|
4633 |
+
}
|
4634 |
+
#wpacu-plugins-load-manager-wrap .wpacu_plugin_unload_rules_options_wrap .wpacu_plugin_rules_wrap fieldset legend {
|
4635 |
+
width: auto;
|
4636 |
+
font-weight: normal;
|
4637 |
+
font-size: inherit;
|
4638 |
+
padding: 8px 11px;
|
4639 |
+
margin: 0;
|
4640 |
+
background: inherit;
|
4641 |
+
border: 1px solid #cdcdcd;
|
4642 |
+
border-radius: 5px;
|
4643 |
+
}
|
4644 |
+
#wpacu-plugins-load-manager-wrap .wpacu_plugin_unload_rules_options_wrap .wpacu_plugin_rules_wrap ul.wpacu_plugin_rules {
|
4645 |
+
margin: 0;
|
4646 |
+
vertical-align: middle;
|
4647 |
+
}
|
4648 |
+
#wpacu-plugins-load-manager-wrap .wpacu_plugin_unload_rules_options_wrap .wpacu_plugin_rules_wrap ul.wpacu_plugin_rules label {
|
4649 |
+
vertical-align: top;
|
4650 |
+
}
|
4651 |
+
#wpacu-plugins-load-manager-wrap .wpacu_plugin_unload_rules_options_wrap .wpacu_plugin_rules_wrap ul.wpacu_plugin_rules label.wpacu_plugin_unload_rule_input_checked {
|
4652 |
+
color: #cc0000;
|
4653 |
+
}
|
4654 |
+
#wpacu-plugins-load-manager-wrap .wpacu_plugin_unload_rules_options_wrap .wpacu_plugin_rules_wrap ul.wpacu_plugin_rules .wpacu_plugin_unload_logged_in:checked + span {
|
4655 |
+
color: #cc0000;
|
4656 |
+
}
|
4657 |
+
#wpacu-plugins-load-manager-wrap .wpacu_plugin_unload_rules_options_wrap .wpacu_plugin_rules_wrap ul.wpacu_plugin_rules > li {
|
4658 |
+
display: inline-block;
|
4659 |
+
float: left;
|
4660 |
+
margin: 1px 25px 1px 0;
|
4661 |
+
line-height: 30px;
|
4662 |
+
}
|
4663 |
+
#wpacu-plugins-load-manager-wrap .wpacu_plugin_unload_rules_options_wrap .wpacu_plugin_rules_wrap ul.wpacu_plugin_rules > li:last-of-type {
|
4664 |
+
margin: 1px 0;
|
4665 |
+
}
|
4666 |
+
#wpacu-plugins-load-manager-wrap .wpacu_plugin_load_exception_options_wrap {
|
4667 |
+
padding-top: 5px;
|
4668 |
+
width: auto;
|
4669 |
+
}
|
4670 |
+
#wpacu-plugins-load-manager-wrap .wpacu_plugin_load_exception_options_wrap .wpacu_plugin_rules_wrap {
|
4671 |
+
margin: 0 16px 0 0 !important;
|
4672 |
+
padding: 6px 10px 6px 0 !important;
|
4673 |
+
}
|
4674 |
+
#wpacu-plugins-load-manager-wrap .wpacu_plugin_load_exception_options_wrap .wpacu_plugin_rules_wrap fieldset {
|
4675 |
+
border: 1px solid #cdcdcd;
|
4676 |
+
padding: 10px;
|
4677 |
+
background: inherit;
|
4678 |
+
border-radius: 5px;
|
4679 |
+
}
|
4680 |
+
#wpacu-plugins-load-manager-wrap .wpacu_plugin_load_exception_options_wrap .wpacu_plugin_rules_wrap fieldset legend {
|
4681 |
+
width: auto;
|
4682 |
+
font-weight: normal;
|
4683 |
+
font-size: inherit;
|
4684 |
+
padding: 8px 11px;
|
4685 |
+
margin: 0;
|
4686 |
+
background: inherit;
|
4687 |
+
border: 1px solid #cdcdcd;
|
4688 |
+
border-radius: 5px;
|
4689 |
+
}
|
4690 |
+
#wpacu-plugins-load-manager-wrap .wpacu_plugin_load_exception_options_wrap .wpacu_plugin_rules_wrap ul.wpacu_plugin_rules {
|
4691 |
+
margin: 0;
|
4692 |
+
vertical-align: middle;
|
4693 |
+
}
|
4694 |
+
#wpacu-plugins-load-manager-wrap .wpacu_plugin_load_exception_options_wrap .wpacu_plugin_rules_wrap ul.wpacu_plugin_rules label {
|
4695 |
+
vertical-align: top;
|
4696 |
+
}
|
4697 |
+
#wpacu-plugins-load-manager-wrap .wpacu_plugin_load_exception_options_wrap .wpacu_plugin_rules_wrap ul.wpacu_plugin_rules.wpacu_exception_options_area > li {
|
4698 |
+
display: inline-block;
|
4699 |
+
float: left;
|
4700 |
+
margin: 1px 25px 1px 0;
|
4701 |
+
line-height: 20px;
|
4702 |
+
}
|
4703 |
+
#wpacu-plugins-load-manager-wrap .wpacu_plugin_load_exception_options_wrap .wpacu_plugin_rules_wrap ul.wpacu_plugin_rules.wpacu_exception_options_area > li:last-of-type {
|
4704 |
+
margin: 1px 0;
|
4705 |
+
}
|
4706 |
+
#wpacu-plugins-load-manager-wrap .wpacu_plugin_load_exception_options_wrap .wpacu_plugin_rules_wrap ul.wpacu_plugin_rules .wpacu_plugin_load_rule_input:checked + span {
|
4707 |
+
color: green;
|
4708 |
+
}
|
4709 |
+
#wpacu-plugins-load-manager-wrap .wpacu_plugin_unload_regex_input_wrap {
|
4710 |
+
display: block;
|
4711 |
+
}
|
4712 |
+
#wpacu-plugins-load-manager-wrap .wpacu_plugin_unload_regex_input_wrap textarea {
|
4713 |
+
margin-top: 6px;
|
4714 |
+
min-width: 400px;
|
4715 |
+
min-height: 40px;
|
4716 |
+
}
|
4717 |
+
#wpacu-plugins-load-manager-wrap .wpacu_exception_options_area textarea {
|
4718 |
+
margin-top: 6px;
|
4719 |
+
min-width: 400px;
|
4720 |
+
min-height: 40px;
|
4721 |
+
width: 100%;
|
4722 |
+
}
|
4723 |
+
#wpacu-plugins-load-manager-wrap textarea {
|
4724 |
+
line-height: normal;
|
4725 |
+
min-height: 20px;
|
4726 |
+
min-width: 300px;
|
4727 |
+
display: inline-block;
|
4728 |
+
padding: 2px 4px;
|
4729 |
+
-webkit-border-radius: 3px;
|
4730 |
+
/* Chrome, Safari, Opera */
|
4731 |
+
-moz-border-radius: 3px;
|
4732 |
+
/* Firefox */
|
4733 |
+
border-radius: 3px;
|
4734 |
+
}
|
4735 |
+
#wpacu-plugins-load-manager-wrap textarea:focus {
|
4736 |
+
width: 100%;
|
4737 |
+
}
|
4738 |
+
#wpacu-plugins-load-manager-wrap textarea.wpacu_disabled {
|
4739 |
+
background: #fbfafa !important;
|
4740 |
+
color: inherit;
|
4741 |
+
}
|
4742 |
+
|
4743 |
+
/*# sourceMappingURL=style.css.map */
|
assets/style.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
@charset "UTF-8";#wpacu-pages-info-area{width:98%}#wpacu-top-area{margin:15px 0;padding:0 10px}#wpacu-quick-actions{color:#74777b;float:right;width:auto;margin-right:30px;background:rgba(40,44,42,.05);border-radius:10px;padding:6px 12px}#wpacu-quick-actions .wpacu-actions-title{font-weight:200;letter-spacing:.5px}#wpacu-quick-actions a{color:#004567;text-decoration:none}#wpacu-quick-actions a:hover{color:#0073aa}#wpacu-logo-wrap{width:auto;display:inline-block;position:relative}#wpacu-logo-wrap a{display:block}#wpacu-logo-wrap img{width:352px;height:79px}#wpacu-logo-wrap .wpacu-pro-sign{position:absolute;height:auto;font-family:FiraSans-Medium,proxima-nova-1,Montserrat,Helvetica,sans-serif;font-size:13px;font-weight:600;letter-spacing:1px;padding:5px 11px;border-radius:15px;right:-60px;top:30px;width:auto;display:inline-block;text-align:center}#wpacu-logo-wrap .wpacu-pro-sign>div{position:relative}#wpacu-logo-wrap .wpacu-pro-sign>div .wpacu-version-text{position:absolute;font-weight:lighter;font-size:11px;bottom:-25px;color:#74777b}#wpacu-logo-wrap .wpacu-pro-sign.wpacu-lite{color:#74777b;background:rgba(40,44,42,.05)}#wpacu-logo-wrap .wpacu-pro-sign.wpacu-lite>div .wpacu-version-text{left:-7px}#wpacu-logo-wrap .wpacu-pro-sign.wpacu-pro{color:#004567;background-color:rgba(40,44,42,.05)}#wpacu-logo-wrap .wpacu-pro-sign.wpacu-pro>div .wpacu-version-text{left:-6px}.wpacu-tabs{position:relative;overflow:hidden;margin:0 auto 20px;width:100%;font-weight:300;font-size:20px}.wpacu-tabs nav{text-align:center}.wpacu-tabs nav ul{position:relative;display:-ms-flexbox;display:-webkit-flex;display:-moz-flex;display:-ms-flex;display:flex;padding:0;list-style:none;-ms-box-orient:horizontal;-ms-box-pack:center;-webkit-flex-flow:row wrap;-moz-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-justify-content:center;-moz-justify-content:center;-ms-justify-content:center;justify-content:center}.wpacu-tabs nav ul li{position:relative;z-index:1;display:block;margin:0;text-align:center;-webkit-flex:1;-moz-flex:1;-ms-flex:1;flex:1}.wpacu-tabs nav ul li span.extra-info{position:absolute;font-size:12px;left:-50%;right:50%;bottom:12px;-webkit-transform:translate(50%,50%);transform:translate(50%,50%);white-space:nowrap}.wpacu-tabs nav ul li span.extra-info.has-bulk-unloads{right:48%}.wpacu-tabs nav ul li span.extra-info.no-bulk-unloads{left:0;right:2px;bottom:2px;-webkit-transform:inherit;transform:inherit}.wpacu-tabs nav ul li span.extra-info .dashicons{font-size:16px;margin-right:-3px;margin-top:1px}.wpacu-tabs nav ul li span.extra-info.license-status.inactive{color:#c00}.wpacu-tabs nav ul li span.extra-info.license-status.active{color:green}.wpacu-tabs nav ul li span.extra-info.assets-unloaded-false{color:#004567}.wpacu-tabs nav ul li span.extra-info.assets-unloaded-true,.wpacu-tabs nav ul li span.extra-info.bulk-unloads-true{color:green}.wpacu-tabs nav a{position:relative;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:2.5}.wpacu-tabs nav a span{vertical-align:middle;font-size:14px}.wpacu-tabs nav li.wpacu-tab-current a{color:#74777b}.wpacu-tabs nav a:focus{outline:0}.wpacu-tabs .dashicons{font-size:20px}.no-js .wpacu-content-wrap section{display:block;padding-bottom:2em;border-bottom:1px solid rgba(255,255,255,.6)}.no-flexbox nav ul{display:block}.no-flexbox nav ul li{min-width:15%;display:inline-block}@media screen and (max-width:58em){.wpacu-tabs nav a.icon span{display:none}.wpacu-tabs nav a:before{margin-right:0}}.wpacu-tabs-style-underline nav{background:#fff}.wpacu-tabs-style-underline nav a{color:#74777b;font-size:18px;text-transform:uppercase;text-decoration:none;padding:.25em 0 .5em;border-left:1px solid #e7ecea;-webkit-transition:color .2s;transition:color .2s}.wpacu-tabs-style-underline nav li:last-child a{border-right:1px solid #e7ecea}.wpacu-tabs-style-underline nav li a::after{position:absolute;bottom:0;left:0;width:100%;height:6px;background:#2cc185;content:"";-webkit-transition:-webkit-transform .3s;transition:transform .3s;-webkit-transform:translate3d(0,150%,0);transform:translate3d(0,150%,0)}.wpacu-tabs-style-underline nav li.wpacu-tab-current a::after{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.wpacu-tabs-style-underline nav a span{font-weight:700}.wpacu-tabs-style-topline{max-width:1800px;margin:20px auto 22px 0;width:98%;font-weight:300;text-decoration:none}.wpacu-tabs-style-topline nav li{border:1px solid rgba(40,44,42,.1)}.wpacu-tabs-style-topline nav li:not(:last-child){border-right:none}.wpacu-tabs-style-topline nav li.wpacu-tab-current{border-top-color:#008f9c;border-bottom:none}.wpacu-tabs-style-topline nav a{padding:20px 18px;background:rgba(40,44,42,.05);color:#74777b;line-height:1;-webkit-transition:color .2s;transition:color .2s;text-decoration:none}.wpacu-tabs-style-topline nav a:focus,.wpacu-tabs-style-topline nav a:hover{background:0 0;color:#008f9c}.wpacu-tabs-style-topline nav li.wpacu-tab-current a{background:0 0;box-shadow:inset 0 3px 0 #008f9c;color:#008f9c}.wpacu-tabs-style-topline nav li.wpacu-tab-current a span:not(.dashicons){font-weight:600}.wpacu-tabs-style-topline nav a span{text-transform:uppercase;font-weight:400}.wpacu-tab-nav-wrapper{border-bottom:none!important}.wpacu-tab-nav-wrapper .nav-tab.nav-tab-active{background:#fff;position:relative}.wpacu-tab-nav-wrapper .nav-tab.nav-tab-active:after{content:"";width:100%;bottom:-2px;left:0;position:absolute;border-bottom:2px solid #fff}.wpacu_hide{display:none!important}.wpacu-script-attributes-area{display:block;margin-bottom:12px}.wpacu-script-attributes-area>div:first-of-type{display:inline-block;float:left;margin-right:15px;line-height:30px;vertical-align:middle}.wpacu-script-attributes-area ul.wpacu-script-attributes-settings{display:inline-block;float:left;padding:5px 7px!important}.wpacu-script-attributes-area ul.wpacu-script-attributes-settings.wpacu-first{margin:0 15px 0 0!important}.wpacu-script-attributes-area ul.wpacu-script-attributes-settings label{margin:0!important}.wpacu-script-attributes-area ul.wpacu-script-attributes-settings li{display:inline-block;margin:0 16px 0 0!important}.wpacu-script-attributes-area ul.wpacu-script-attributes-settings li:first-child{margin:0 10px 0 0!important}.wpacu-script-attributes-area ul.wpacu-script-attributes-settings li:last-child{margin:0 2px 0 0!important}.wpacu-script-attributes-area .wpacu-script-attributes-settings{background:#fff!important;border:1px solid #eee!important;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;padding:5px 10px!important;list-style:none;display:inline-block;margin:0}.wpacu-script-attributes-area .wpacu-script-attributes-settings input[type=radio]{width:auto;padding:0;margin:0 5px 0 0}.wpacu-script-attributes-area .wpacu-script-attributes-settings:hover{background:#f2faf2}tr.wpacu_location_changed>td{border-left:#004567 4px solid}tr.wpacu_not_load td,tr.wpacu_not_load th{background:#ffe1e1!important}tr.wpacu_not_load td .wpacu-assets-inline-code-wrap,tr.wpacu_not_load td .wpacu-only-when-kept-loaded,tr.wpacu_not_load th .wpacu-assets-inline-code-wrap,tr.wpacu_not_load th .wpacu-only-when-kept-loaded{opacity:.45}.dashicons-wpacu{width:17px;height:17px;margin:2px 0 0 0;font-size:16px;text-decoration:none;color:inherit!important}.wpacu_widefat .check-column.wpacu_check{padding:10px}body[class*=wpassetcleanup] #footer-left{border-left:2px solid green;padding-left:10px}#wpassetcleanup_asset_list small{width:auto;float:none;display:inline}#wpacu_meta_box_content{width:99%}#wpacu_meta_box_content #wpacu-fetch-list-step-1-wrap.wpacu-completed{color:green}#wpacu_meta_box_content div.select select{max-width:inherit}#wpacu_meta_box_content .emoji{font-size:18px}#wpacu_meta_box_content h3{margin-left:0;padding-left:0}#wpacu_meta_box_content div.wpacu_note{padding:10px;background-color:#f5f5f5}#wpacu_meta_box_content .dashicons.dashicons-warning,#wpacu_meta_box_content .dashicons.dashicons-wordpress-alt{color:#c00}#wpacu_meta_box_content div.wpacu_warning{border:1px solid #c00}#wpacu_meta_box_content ul.wpacu_asset_options{margin:0;padding:0}#wpacu_meta_box_content ul.wpacu_asset_options li{list-style:none;display:inline-block}#wpacu_meta_box_content ul.wpacu_asset_options label{font-weight:400;margin-right:5px;margin-top:5px;margin-bottom:5px}.wpacu-updated-frontend{font-weight:400;background-color:#fff;border-left:4px solid #46b450;border-top:1px solid #46b450;border-right:1px solid #46b450;border-bottom:1px solid #46b450;padding:9px 14px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.wpacu-updated-frontend span.dashicons-yes{color:#46b450;font-size:26px}#wpacu-update-front-settings-area{margin:10px 0;display:inline-block;position:relative}@media only screen and (min-width:768px){#wpacu-update-front-settings-area{position:-webkit-sticky;position:sticky;bottom:0;display:block;padding:15px 0;z-index:1000000;border-top:1px solid #cdcdcd;background:#fff}}#wpacu-updating-front-settings{display:none;position:absolute;top:20px;left:142px}.wpacu_load_regex_area_wrap label.wpacu_bold span,.wpacu_manage_via_tax_area_wrap label.wpacu_bold span,.wpacu_unload_regex_area_wrap label.wpacu_bold span{font-weight:600!important}.wpacu_load_regex_area_wrap label.wpacu_unload_checked span,.wpacu_manage_via_tax_area_wrap label.wpacu_unload_checked span,.wpacu_unload_regex_area_wrap label.wpacu_unload_checked span{color:#d54e21}.wpacu_load_regex_area_wrap .wpacu_handle_unload_regex_input_wrap,.wpacu_manage_via_tax_area_wrap .wpacu_handle_unload_regex_input_wrap,.wpacu_unload_regex_area_wrap .wpacu_handle_unload_regex_input_wrap{margin:4px 0 0}.wpacu_load_regex_area_wrap .wpacu_handle_unload_regex_input_wrap input[type=text],.wpacu_manage_via_tax_area_wrap .wpacu_handle_unload_regex_input_wrap input[type=text],.wpacu_unload_regex_area_wrap .wpacu_handle_unload_regex_input_wrap input[type=text]{line-height:normal;min-height:20px;min-width:300px;max-width:400px;display:inline-block;padding:4px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.wpacu_load_regex_area_wrap .wpacu_handle_unload_regex_input_wrap input[type=text].wpacu_disabled,.wpacu_manage_via_tax_area_wrap .wpacu_handle_unload_regex_input_wrap input[type=text].wpacu_disabled,.wpacu_unload_regex_area_wrap .wpacu_handle_unload_regex_input_wrap input[type=text].wpacu_disabled{background:#fbfafa!important;color:inherit}.wpacu_is_global_unloaded .wpacu_exception_options_area_wrap{display:inline-block}.wpacu_is_global_unloaded .wpacu_exception_options_area_wrap .wpacu_area_one,.wpacu_is_global_unloaded .wpacu_exception_options_area_wrap .wpacu_area_two{display:block}.wpacu_is_global_unloaded .wpacu_exception_options_area_wrap .wpacu_load_regex_input_wrap{display:block}.wpacu_exception_options_area_load_exception{display:table;float:none;clear:both;border:none;padding:0!important;background:0 0}.wpacu_exception_options_area_wrap{display:table;background:0 0!important}.wpacu_exception_options_area_wrap fieldset{border:1px solid #cdcdcd;padding:10px;background:#fff;border-radius:5px}.wpacu_exception_options_area_wrap fieldset legend{width:auto;font-weight:400;font-size:inherit;padding:8px 11px;margin:0;background:#fff;border:1px solid #cdcdcd;border-radius:5px}.wpacu_exception_options_area_wrap label.wpacu_bold span{font-weight:600!important}.wpacu_exception_options_area_wrap textarea{line-height:normal;min-height:20px;min-width:300px;max-width:400px;display:inline-block;padding:2px 4px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.wpacu_exception_options_area_wrap textarea:focus{width:100%}.wpacu_exception_options_area_wrap textarea.wpacu_disabled{background:#fbfafa!important;color:inherit}.wpacu_exception_options_area_wrap p:first-of-type{margin-top:0}.wpacu_exception_options_area_wrap .wpacu_area_one{display:table-cell;vertical-align:top;padding-right:10px}.wpacu_exception_options_area_wrap .wpacu_area_two{display:table-cell}@media only screen and (max-width:1199px){.wpacu_exception_options_area_wrap{display:block}.wpacu_exception_options_area_wrap .wpacu_area_one,.wpacu_exception_options_area_wrap .wpacu_area_two{display:block}}.wpacu_manage_via_tax_dd+.chosen-container .chosen-results>li.group-option{width:100%;display:block}#wpacu_meta_box_content .wpacu_widefat{width:100%}#wpacu_meta_box_content .wpacu-assets-collapsible-content{padding:0 10px!important}#wpacu_meta_box_content ul.wpacu_asset_options{vertical-align:middle}#wpacu_meta_box_content ul.wpacu_asset_options.wpacu_exception_options_area>li{display:inline-block;float:left;margin:1px 25px 1px 0;line-height:20px}#wpacu_meta_box_content ul.wpacu_asset_options.wpacu_exception_options_area>li:last-of-type{margin:1px 0}#wpacu_meta_box_content ul.wpacu_asset_options.wpacu_exception_options_area>li input[type=text]{margin-left:5px;border:1px solid #e7e7e7;background:#fff}body.wp-admin #wpacu_wrap_assets code{display:inline-block!important}body:not(.wp-admin) #wpacu_wrap_assets code{display:block!important}#wpacu_wrap_assets{color:#000!important;text-align:left!important;clear:both!important;width:90%!important;padding:20px!important;margin:30px 0 0 15px!important;border:1px solid #cdcdcd;z-index:10000!important;position:relative!important;background-color:#fff!important}#wpacu_wrap_assets div.wpacu_warning{border:1px solid #c00;padding:5px 10px}#wpacu_wrap_assets small{display:inline!important;margin:0!important;letter-spacing:normal!important}#wpacu_wrap_assets input[type=checkbox]{width:auto!important;margin-right:4px!important}#wpacu_wrap_assets img:not(.wpacu-ajax-loader){display:inline-block!important}#wpacu_wrap_assets p{line-height:22px!important;margin:10px 0!important;text-align:left!important;font-weight:400!important}#wpacu_wrap_assets p:first-child{margin:0 0 10px!important}#wpacu_wrap_assets h1{margin:0 0 20px!important;font-size:160%!important;text-align:left!important}#wpacu_wrap_assets h3{margin:20px 0;font-size:130%}#wpacu_wrap_assets ul.wpacu_asset_options.wpacu_exception_options_area>li{display:inline-block;float:left;margin:1px 25px 1px 0;line-height:30px}#wpacu_wrap_assets ul.wpacu_asset_options.wpacu_exception_options_area>li:last-of-type{margin:1px 0}.wpacu_verified{padding:10px;margin:0 0 10px 0!important;background-color:#f5f5f5;border-left:1px solid #ddd}.wpacu_verified span{color:#0073aa;font-weight:700}.wpacu_asset_row div.select{display:inline-block;width:auto}.wpacu_asset_row:first-child td{border-top:1px solid #cdcdcd}.wpacu_asset_row td{border-left:1px solid #cdcdcd;border-right:1px solid #cdcdcd;border-bottom:1px solid #cdcdcd}.wpacu_asset_row.wpacu_notice_row td{position:relative;padding:5px;border-bottom:1px solid transparent}.wpacu_asset_row.wpacu_notice_row td div.wpacu-warning{width:auto;margin:5px;font-style:italic}.wpacu_asset_row:not(.wpacu_notice_row) td{padding:18px!important;position:relative}.wpacu_asset_row:not(.wpacu_notice_row) td[data-wpacu-row-status=contracted]{padding:18px 18px 8px!important}.wpacu_asset_row:not(.wpacu_notice_row) td.wpacu_selected,.wpacu_asset_row:not(.wpacu_notice_row) td:hover{-moz-box-shadow:inset 0 0 12px #cdcdcd;-webkit-box-shadow:inset 0 0 12px #cdcdcd;box-shadow:inset 0 0 12px #cdcdcd}.wpacu_asset_row:not(.wpacu_notice_row) td p{padding:0!important;margin-bottom:8px!important;word-wrap:break-word!important;-ms-word-break:break-all;word-break:break-word}.wpacu_asset_row:not(.wpacu_notice_row) td label{width:auto!important;margin:0!important;cursor:pointer!important;display:inline-block!important;font-size:100%!important;font-weight:400!important}.wpacu_asset_row:not(.wpacu_notice_row) td label span:not(.dashicons){font-size:100%!important}.wpacu_asset_row:not(.wpacu_notice_row) td.wpacu_check{width:50px!important}.asset-table-extra-info td{padding:5px!important}body.wp-admin .wpacu_asset_row td.wpacu_check{width:25px!important}.wpacu_asset_row .dashicons-warning,.wpacu_asset_row .dashicons-wordpress-alt{color:red!important}.wpacu_asset_row .dashicons-wordpress-alt{font-size:17px;vertical-align:middle}label.wpacu_add_global{cursor:pointer!important}label.wpacu_input_load_checked{font-weight:700;color:#d54e21}label.wpacu_global_unload_exception{font-weight:700!important}tr.wpacu_bulk_change_row.wpacu_selected,tr.wpacu_global_rule_row.wpacu_selected,tr.wpacu_remove_preload_row.wpacu_selected{background:#e7e7e7}.wpacu-sub-page-tabs-wrap{min-width:320px;margin:0 auto 15px auto;border-bottom:1px solid #ccc}.wpacu-sub-page-tabs-wrap label.wpacu-sub-page-nav-label{display:inline-block;position:relative;border-top:1px solid rgba(40,44,42,.1);border-left:1px solid rgba(40,44,42,.1);border-right:1px solid rgba(40,44,42,.1)}.wpacu-sub-page-tabs-wrap label.wpacu-sub-page-nav-label a{display:block;margin:0;padding:15px 25px;font-weight:400;text-align:center;color:#74777b;border-left:1px solid transparent;border-right:1px solid transparent;border-top:2px solid transparent;border-bottom:0;text-decoration:none;background:rgba(40,44,42,.05)}.wpacu-sub-page-tabs-wrap label.wpacu-sub-page-nav-label a:hover{background:#f1f1f1;color:#008f9c}.wpacu-sub-page-tabs-wrap label.wpacu-sub-page-nav-label.wpacu-selected{color:#008f9c;border-left:1px solid #ccc;border-right:1px solid #ccc;border-top:2px solid #008f9c;border-bottom:1px transparent;margin-bottom:-2px}.wpacu-sub-page-tabs-wrap label.wpacu-sub-page-nav-label.wpacu-selected a{background:#f1f1f1;color:#008f9c;font-weight:600}.nav-tab-wrapper{border-bottom:1px solid #ccc;width:95%}.nav-tab-wrapper.nav-assets-manager .nav-tab{font-size:13px;font-weight:500;padding:6px 10px}.nav-tab-wrapper.nav-assets-manager .nav-tab.for-pro{padding:6px 8px 6px 3px}.nav-tab-wrapper.nav-critical-css-manager .nav-tab{font-size:13px;font-weight:500;padding:6px 20px 6px 10px;position:relative}.nav-tab-wrapper.nav-critical-css-manager .nav-tab span.wpacu-circle-status{position:absolute;right:5px;top:13px;height:11px;width:11px;border-radius:50%;display:inline-block;opacity:.75}.nav-tab-wrapper.nav-critical-css-manager .nav-tab span.wpacu-circle-status.wpacu-on{background:#52af00}.nav-tab-wrapper.nav-critical-css-manager .nav-tab span.wpacu-circle-status.wpacu-off{background:#ccc}.nav-tab-wrapper.nav-critical-css-manager .nav-tab.for-pro{padding:6px 8px 6px 3px}ul#wpacu_custom_pages_nav_links{list-style:none}ul#wpacu_custom_pages_nav_links li{position:relative;display:inline-block;margin:0 30px 0 0}ul#wpacu_custom_pages_nav_links li a{text-decoration:none}ul#wpacu_custom_pages_nav_links li a:hover{text-decoration:underline}ul#wpacu_custom_pages_nav_links li.wpacu-current{text-decoration:underline;font-weight:700}ul#wpacu_custom_pages_nav_links li span.wpacu-circle-status{position:absolute;right:-15px;top:5px;height:11px;width:11px;border-radius:50%;display:inline-block;opacity:.75}ul#wpacu_custom_pages_nav_links li span.wpacu-circle-status.wpacu-on{background:#52af00}ul#wpacu_custom_pages_nav_links li span.wpacu-circle-status.wpacu-off{background:#ccc}ul#wpacu_custom_pages_nav_links li:last-child:after,ul#wpacu_custom_pages_nav_links li:last-child:before{content:""}ul.wpacu_asset_options{margin:0 10px 0 0;padding:0}ul.wpacu_asset_options li{margin:0 10px 0 0;list-style:none;display:inline-block;line-height:normal}ul.wpacu_asset_options li.remove_rule label{font-weight:700}ul.wpacu_asset_options label{margin-right:20px;font-weight:400}ul.wpacu_asset_options label input{margin-right:4px}.wpacu_list_table{width:100%;font-weight:400}.wpacu_list_table div,.wpacu_list_table li,.wpacu_list_table p{font-weight:400}.wpacu_widefat{width:99%}.wpacu_striped>tbody>:nth-child(even),ul.wpacu_striped>:nth-child(even){background-color:#fff!important}.wpacu_striped>tbody>:nth-child(odd),ul.wpacu_striped>:nth-child(odd){background-color:#f9f9f9!important}.wpacu_update_btn{width:auto;-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;background-color:#007dc1!important;-moz-border-radius:3px!important;-webkit-border-radius:3px!important;border-radius:3px!important;border:1px solid #124d77!important;display:inline-block!important;cursor:pointer!important;color:#fff!important;font-size:15px!important;padding:10px 24px!important;text-decoration:none!important;text-shadow:0 1px 0 #154682!important;height:auto!important;line-height:normal!important}.wpacu_update_btn.wpacu_submitting,.wpacu_update_btn:hover{background:-webkit-gradient(linear,left top,left bottom,color-stop(.05,#0061a7),color-stop(1,#007dc1))!important;background:-moz-linear-gradient(top,#0061a7 5%,#007dc1 100%)!important;background:-webkit-linear-gradient(top,#0061a7 5%,#007dc1 100%)!important;background:-o-linear-gradient(top,#0061a7 5%,#007dc1 100%)!important;background:-ms-linear-gradient(top,#0061a7 5%,#007dc1 100%)!important;background:linear-gradient(to bottom,#0061a7 5%,#007dc1 100%)!important;background-color:#0061a7!important}.wpacu_update_btn.wpacu_submitting{cursor:default!important}.wpacu_update_btn:active{position:relative!important;top:1px!important}.wpacu-btns a{text-decoration:none}.wpacu-btns .btn{display:inline-block;font-weight:400;line-height:1.25;text-align:center;white-space:nowrap;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:1px solid transparent;padding:.5rem 1rem;font-size:1rem;-webkit-border-radius:.25rem;-moz-border-radius:.25rem;border-radius:.25rem;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.wpacu-btns .btn:focus,.wpacu-btns .btn:hover{text-decoration:none}.wpacu-btns .btn.focus,.wpacu-btns .btn:focus{outline:0;-webkit-box-shadow:0 0 0 2px rgba(2,117,216,.25);box-shadow:0 0 0 2px rgba(2,117,216,.25)}.wpacu-btns .btn.disabled,.wpacu-btns .btn:disabled{cursor:not-allowed;opacity:.65}.wpacu-btns .btn.active,.wpacu-btns .btn:active{background-image:none}.wpacu-btns a.btn.disabled,.wpacu-btns fieldset[disabled] a.btn{pointer-events:none}.wpacu-btns .btn-primary{color:#fff;background-color:#0275d8;border-color:#0275d8}.wpacu-btns .btn-primary:hover{color:#fff;background-color:#025aa5;border-color:#01549b}.wpacu-btns .btn-primary.focus,.wpacu-btns .btn-primary:focus{-webkit-box-shadow:0 0 0 2px rgba(2,117,216,.5);box-shadow:0 0 0 2px rgba(2,117,216,.5)}.wpacu-btns .btn-primary.disabled,.wpacu-btns .btn-primary:disabled{background-color:#0275d8;border-color:#0275d8}.wpacu-btns .btn-primary.active,.wpacu-btns .btn-primary:active,.wpacu-btns .show>.btn-primary.dropdown-toggle{color:#fff;background-color:#025aa5;background-image:none;border-color:#01549b}.wpacu-btns .btn-secondary{color:#292b2c;background-color:#fff;border-color:#ccc}.wpacu-btns .btn-secondary:hover{color:#292b2c;background-color:#e6e6e6;border-color:#adadad}.wpacu-btns .btn-secondary.focus,.wpacu-btns .btn-secondary:focus{-webkit-box-shadow:0 0 0 2px rgba(204,204,204,.5);box-shadow:0 0 0 2px rgba(204,204,204,.5)}.wpacu-btns .btn-secondary.disabled,.wpacu-btns .btn-secondary:disabled{background-color:#fff;border-color:#ccc}.wpacu-btns .btn-secondary.active,.wpacu-btns .btn-secondary:active,.wpacu-btns .show>.btn-secondary.dropdown-toggle{color:#292b2c;background-color:#e6e6e6;background-image:none;border-color:#adadad}.wpacu-btns .btn-info{color:#fff;background-color:#5bc0de;border-color:#5bc0de}.wpacu-btns .btn-info:hover{color:#fff;background-color:#31b0d5;border-color:#2aabd2}.wpacu-btns .btn-info.focus,.wpacu-btns .btn-info:focus{-webkit-box-shadow:0 0 0 2px rgba(91,192,222,.5);box-shadow:0 0 0 2px rgba(91,192,222,.5)}.wpacu-btns .btn-info.disabled,.wpacu-btns .btn-info:disabled{background-color:#5bc0de;border-color:#5bc0de}.wpacu-btns .btn-info.active,.wpacu-btns .btn-info:active,.wpacu-btns .show>.btn-info.dropdown-toggle{color:#fff;background-color:#31b0d5;background-image:none;border-color:#2aabd2}.wpacu-btns .btn-success{color:#fff;background-color:#5cb85c;border-color:#5cb85c}.wpacu-btns .btn-success:hover{color:#fff;background-color:#449d44;border-color:#419641}.wpacu-btns .btn-success.focus,.wpacu-btns .btn-success:focus{-webkit-box-shadow:0 0 0 2px rgba(92,184,92,.5);box-shadow:0 0 0 2px rgba(92,184,92,.5)}.wpacu-btns .btn-success.disabled,.wpacu-btns .btn-success:disabled{background-color:#5cb85c;border-color:#5cb85c}.wpacu-btns .btn-success.active,.wpacu-btns .btn-success:active,.wpacu-btns .show>.btn-success.dropdown-toggle{color:#fff;background-color:#449d44;background-image:none;border-color:#419641}.wpacu-btns .btn-warning{color:#fff;background-color:#f0ad4e;border-color:#f0ad4e}.wpacu-btns .btn-warning:hover{color:#fff;background-color:#ec971f;border-color:#eb9316}.wpacu-btns .btn-warning.focus,.wpacu-btns .btn-warning:focus{-webkit-box-shadow:0 0 0 2px rgba(240,173,78,.5);box-shadow:0 0 0 2px rgba(240,173,78,.5)}.wpacu-btns .btn-warning.disabled,.wpacu-btns .btn-warning:disabled{background-color:#f0ad4e;border-color:#f0ad4e}.wpacu-btns .btn-warning.active,.wpacu-btns .btn-warning:active,.wpacu-btns .show>.btn-warning.dropdown-toggle{color:#fff;background-color:#ec971f;background-image:none;border-color:#eb9316}.wpacu-btns .btn-danger{color:#fff;background-color:#d9534f;border-color:#d9534f}.wpacu-btns .btn-danger:hover{color:#fff;background-color:#c9302c;border-color:#c12e2a}.wpacu-btns .btn-danger.focus,.wpacu-btns .btn-danger:focus{-webkit-box-shadow:0 0 0 2px rgba(217,83,79,.5);box-shadow:0 0 0 2px rgba(217,83,79,.5)}.wpacu-btns .btn-danger.disabled,.wpacu-btns .btn-danger:disabled{background-color:#d9534f;border-color:#d9534f}.wpacu-btns .btn-danger.active,.wpacu-btns .btn-danger:active,.wpacu-btns .show>.btn-danger.dropdown-toggle{color:#fff;background-color:#c9302c;background-image:none;border-color:#c12e2a}.wpacu-btns .btn-outline-primary{color:#0275d8;background-image:none;background-color:transparent;border-color:#0275d8}.wpacu-btns .btn-outline-primary:hover{color:#fff;background-color:#0275d8;border-color:#0275d8}.wpacu-btns .btn-outline-primary.focus,.wpacu-btns .btn-outline-primary:focus{-webkit-box-shadow:0 0 0 2px rgba(2,117,216,.5);box-shadow:0 0 0 2px rgba(2,117,216,.5)}.wpacu-btns .btn-outline-primary.disabled,.wpacu-btns .btn-outline-primary:disabled{color:#0275d8;background-color:transparent}.wpacu-btns .btn-outline-primary.active,.wpacu-btns .btn-outline-primary:active,.wpacu-btns .show>.btn-outline-primary.dropdown-toggle{color:#fff;background-color:#0275d8;border-color:#0275d8}.wpacu-btns .btn-outline-secondary{color:#ccc;background-image:none;background-color:transparent;border-color:#ccc}.wpacu-btns .btn-outline-secondary:hover{color:#fff;background-color:#ccc;border-color:#ccc}.wpacu-btns .btn-outline-secondary.focus,.wpacu-btns .btn-outline-secondary:focus{-webkit-box-shadow:0 0 0 2px rgba(204,204,204,.5);box-shadow:0 0 0 2px rgba(204,204,204,.5)}.wpacu-btns .btn-outline-secondary.disabled,.wpacu-btns .btn-outline-secondary:disabled{color:#ccc;background-color:transparent}.wpacu-btns .btn-outline-secondary.active,.wpacu-btns .btn-outline-secondary:active,.wpacu-btns .show>.btn-outline-secondary.dropdown-toggle{color:#fff;background-color:#ccc;border-color:#ccc}.wpacu-btns .btn-outline-info{color:#5bc0de;background-image:none;background-color:transparent;border-color:#5bc0de}.wpacu-btns .btn-outline-info:hover{color:#fff;background-color:#5bc0de;border-color:#5bc0de}.wpacu-btns .btn-outline-info.focus,.wpacu-btns .btn-outline-info:focus{-webkit-box-shadow:0 0 0 2px rgba(91,192,222,.5);box-shadow:0 0 0 2px rgba(91,192,222,.5)}.wpacu-btns .btn-outline-info.disabled,.wpacu-btns .btn-outline-info:disabled{color:#5bc0de;background-color:transparent}.wpacu-btns .btn-outline-info.active,.wpacu-btns .btn-outline-info:active,.wpacu-btns .show>.btn-outline-info.dropdown-toggle{color:#fff;background-color:#5bc0de;border-color:#5bc0de}.wpacu-btns .btn-outline-success{color:#5cb85c;background-image:none;background-color:transparent;border-color:#5cb85c}.wpacu-btns .btn-outline-success:hover{color:#fff;background-color:#5cb85c;border-color:#5cb85c}.wpacu-btns .btn-outline-success.focus,.wpacu-btns .btn-outline-success:focus{-webkit-box-shadow:0 0 0 2px rgba(92,184,92,.5);box-shadow:0 0 0 2px rgba(92,184,92,.5)}.wpacu-btns .btn-outline-success.disabled,.wpacu-btns .btn-outline-success:disabled{color:#5cb85c;background-color:transparent}.wpacu-btns .btn-outline-success.active,.wpacu-btns .btn-outline-success:active,.wpacu-btns .show>.btn-outline-success.dropdown-toggle{color:#fff;background-color:#5cb85c;border-color:#5cb85c}.wpacu-btns .btn-outline-warning{color:#f0ad4e;background-image:none;background-color:transparent;border-color:#f0ad4e}.wpacu-btns .btn-outline-warning:hover{color:#fff;background-color:#f0ad4e;border-color:#f0ad4e}.wpacu-btns .btn-outline-warning.focus,.wpacu-btns .btn-outline-warning:focus{-webkit-box-shadow:0 0 0 2px rgba(240,173,78,.5);box-shadow:0 0 0 2px rgba(240,173,78,.5)}.wpacu-btns .btn-outline-warning.disabled,.wpacu-btns .btn-outline-warning:disabled{color:#f0ad4e;background-color:transparent}.wpacu-btns .btn-outline-warning.active,.wpacu-btns .btn-outline-warning:active,.wpacu-btns .show>.btn-outline-warning.dropdown-toggle{color:#fff;background-color:#f0ad4e;border-color:#f0ad4e}.wpacu-btns .btn-outline-danger{color:#d9534f;background-image:none;background-color:transparent;border-color:#d9534f}.wpacu-btns .btn-outline-danger:hover{color:#fff;background-color:#d9534f;border-color:#d9534f}.wpacu-btns .btn-outline-danger.focus,.wpacu-btns .btn-outline-danger:focus{-webkit-box-shadow:0 0 0 2px rgba(217,83,79,.5);box-shadow:0 0 0 2px rgba(217,83,79,.5)}.wpacu-btns .btn-outline-danger.disabled,.wpacu-btns .btn-outline-danger:disabled{color:#d9534f;background-color:transparent}.wpacu-btns .btn-outline-danger.active,.wpacu-btns .btn-outline-danger:active,.wpacu-btns .show>.btn-outline-danger.dropdown-toggle{color:#fff;background-color:#d9534f;border-color:#d9534f}.wpacu-btns .btn-link{font-weight:400;color:#0275d8;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.wpacu-btns .btn-link,.wpacu-btns .btn-link.active,.wpacu-btns .btn-link:active,.wpacu-btns .btn-link:disabled{background-color:transparent}.wpacu-btns .btn-link,.wpacu-btns .btn-link:active,.wpacu-btns .btn-link:focus{border-color:transparent}.wpacu-btns .btn-link:hover{border-color:transparent}.wpacu-btns .btn-link:focus,.wpacu-btns .btn-link:hover{color:#014c8c;text-decoration:underline;background-color:transparent}.wpacu-btns .btn-link:disabled{color:#636c72}.wpacu-btns .btn-link:disabled:focus,.wpacu-btns .btn-link:disabled:hover{text-decoration:none}.wpacu-btns .btn-group-lg>.btn,.wpacu-btns .btn-lg{padding:.75rem 1.5rem;font-size:1.25rem;-webkit-border-radius:.3rem;-moz-border-radius:.3rem;border-radius:.3rem}.wpacu-btns .btn-group-sm>.btn,.wpacu-btns .btn-sm{padding:.25rem .5rem;font-size:.875rem;-webkit-border-radius:.2rem;-moz-border-radius:.2rem;border-radius:.2rem}.wpacu-btns .btn-block{display:block;width:100%}.wpacu-btns .btn-block+.btn-block{margin-top:.5rem}.wpacu-btns input[type=button].btn-block,.wpacu-btns input[type=reset].btn-block,.wpacu-btns input[type=submit].btn-block{width:100%}.wpacu-btns .fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.go-pro-button{background-color:#4caf50;border:2px solid #4caf50;color:#fff;padding:12px 18px;text-align:center;text-decoration:none;display:inline-block;font-size:16px;margin:4px 2px;cursor:pointer;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;-webkit-transition-duration:.4s;transition-duration:.4s}.go-pro-button:hover{background-color:#fff;color:#000;border:2px solid #4caf50;text-decoration:none}.wpacu-restore-pos-btn{font-size:14px!important;line-height:normal!important;height:42px!important;padding:0 18px!important;margin-top:10px!important}body.wp-admin .wpacu_asset_row .go-pro-link-no-style .wpacu-tooltip{padding:8px 4px}body.wp-admin .go-pro-link-no-style .wpacu-tooltip{text-shadow:none;font-weight:400;font-size:12px;line-height:16px;padding:8px 10px}.go-pro-link-no-style{position:relative;display:inline-block;color:inherit;text-decoration:none}.go-pro-link-no-style:not(.nav-tab){font-style:italic}.go-pro-link-no-style.no-transition .wpacu-tooltip{-webkit-transition:0s all ease;transition:0s all ease;-webkit-transition-delay:0s;transition-delay:0s}.go-pro-link-no-style>img{max-width:20px;max-height:20px}.go-pro-link-no-style .wpacu-tooltip{font-size:14px;line-height:18px;position:absolute;z-index:1;visibility:hidden;width:160px;background-color:#00a7a7;color:#fff;text-align:center;padding:8px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;bottom:100%;bottom:calc(100% + 15px);left:50%;margin-left:-65px;-webkit-transition:.1s all ease;transition:.1s all ease;-webkit-transition-delay:0s;transition-delay:0s}.go-pro-link-no-style .wpacu-tooltip:after{content:"";position:absolute;border-width:10px;border-style:solid;top:100%;left:50%;left:calc(50% - 10px);border-color:#00a7a7 transparent transparent transparent}.go-pro-link-no-style .wpacu-tooltip.wpacu-on-pages-btn{cursor:pointer;margin-left:-77px;width:130px}.go-pro-link-no-style .wpacu-tooltip.wpacu-larger{width:200px}.go-pro-link-no-style:hover .wpacu-tooltip{visibility:visible}.wpacu_list_table tr:first-child .wordpress-core-file .wpacu-tooltip{bottom:-40px;left:120px;margin-left:-86px}.wpacu_list_table tr:first-child .wordpress-core-file .wpacu-tooltip:after{top:41px;left:-20px;border-color:transparent #c00 transparent transparent}.wordpress-core-file{position:relative;display:inline-block;font-style:normal;color:inherit;text-decoration:none}.wordpress-core-file .wpacu-tooltip{font-size:14px;line-height:18px;position:absolute;z-index:1;visibility:hidden;width:160px;background-color:#c00;color:#fff;text-align:center;padding:6px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;bottom:100%;bottom:calc(100% + 15px);left:50%;margin-left:-86px;-webkit-transition:.1s all ease;transition:.1s all ease;-webkit-transition-delay:0s;transition-delay:0s}.wordpress-core-file .wpacu-tooltip:after{content:"";position:absolute;border-width:10px;border-style:solid;top:100%;left:50%;left:calc(50% - 10px);border-color:#c00 transparent transparent transparent}.wordpress-core-file:hover .wpacu-tooltip{visibility:visible}.ajax-direct-call-error-area{background:#fff;padding:10px;border:1px solid #c00;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px}.ajax-direct-call-error-area td{padding:6px}.ajax-direct-call-error-area .note{margin-top:0;padding-top:0}.ajax-direct-call-error-area .error-code{color:#c00;font-weight:700}.ajax-wp-remote-post-call-error-area{background:#fff;padding:20px}.ajax-wp-remote-post-call-error-area .table-data{background:#ffaf5512;border:1px solid #c66;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.ajax-wp-remote-post-call-error-area .table-data td{padding:10px}.wrap-upgrade-info{background:#fff;padding:0 15px;border:1px solid #cdcdcd;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.wpacu-notice{margin:20px 20px 0 0!important}.wpacu-notice p{font-weight:600!important;font-style:italic}.wpacu-notice .dashicons{font-weight:inherit!important;color:#46b450!important;margin-right:4px;vertical-align:text-bottom;font-size:27px}.wpacu-notice-info{padding:12px 12px 12px 16px;background:#fff;border-left:4px solid #008f9c}.wpacu-notice-info p{margin-top:8px}.wpacu-notice-info p:first-child{margin-top:0}.wpacu-notice-info p:last-child{margin-bottom:0}.wpacu-warning{font-size:15px;padding:10px;background:#fffcec;border:1px solid #fdd5c9;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;margin:0 0 5px;width:100%}.pro-page-unlock-notice{-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;padding:10px;background:#f2faf2;border:1px solid #c0e8c0;width:auto;display:block}.wpacu-license-area .notice,.wpacu-settings-area .notice{margin-left:0;padding:10px!important;width:97%;box-sizing:border-box;font-weight:600;font-style:italic}.wpacu-license-area .notice .dashicons,.wpacu-settings-area .notice .dashicons{color:green}#wpacu-allow-manage-assets-to-select-list-area{display:inline-block}#wpacu-dom-get-type-selections,.wpacu-radio-selections{float:none;clear:both;width:auto;display:inline-block;margin-bottom:0;margin-top:0}#wpacu-dom-get-type-selections.wpacu-vertical,.wpacu-radio-selections.wpacu-vertical{display:block;margin-top:15px;margin-bottom:18px}#wpacu-dom-get-type-selections.wpacu-vertical li,.wpacu-radio-selections.wpacu-vertical li{float:none;margin-bottom:12px}#wpacu-dom-get-type-selections.wpacu-vertical li:last-child,.wpacu-radio-selections.wpacu-vertical li:last-child{margin-bottom:0}#wpacu-dom-get-type-selections li,.wpacu-radio-selections li{margin-right:30px;float:left;margin-bottom:0}#wpacu-dom-get-type-selections li:first-child,.wpacu-radio-selections li:first-child{margin-right:15px}#wpacu-dom-get-type-selections li:last-child,.wpacu-radio-selections li:last-child{margin-right:0}.wpacu_combine_loaded_js_level_area{display:none;background:#008f9c0a;border-left:2px solid #008f9c;padding-top:8px;padding-bottom:8px;padding-right:10px;padding-left:10px;margin:20px 0 15px}.wpacu_combine_loaded_js_level_area.wpacu_active{display:block}#wpacu-dom-get-type-infos{margin-bottom:0}#wpacu-dom-get-type-infos li{margin-bottom:0;line-height:20px}.wpacu-wrap li,.wpacu-wrap p,.wpacu-wrap td{font-weight:400}.wpacu-wrap small{width:auto;float:none;display:inline}.wpacu-wrap small code{font-size:inherit!important}.wpacu-wrap.wpacu-settings-show-all .wpacu-settings-tab-content{display:block;width:100%}.wpacu-wrap.wpacu-settings-show-all .wpacu-settings-area-title{color:#004567;padding:16px 15px;background:#f8f8f8;border-left:5px solid #004567b0;border-top:1px solid #e7e7e7;border-right:1px solid #e7e7e7;border-bottom:1px solid #e7e7e7;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;font-size:1.45em;font-weight:500}.wpacu-wrap.wpacu-settings-show-all #wpacu-update-button-area{margin:0}.wpacu-wrap.wpacu-settings-show-all #wpacu-update-button-area .submit{margin:0}.wpacu-wrap.wpacu-settings-show-all #wpacu-update-button-area .button{padding-left:18px;padding-right:18px;height:46px;font-size:18px}.wpacu-wrap.wpacu-settings-show-all #wpacu-updating-settings{margin-left:224px;top:35px;left:3px}.wpacu-wrap.wpacu-switch-standard .asset-cleanup-pro_page_wpassetcleanup_settings .wpacu_switch,.wpacu-wrap.wpacu-switch-standard .asset-cleanup_page_wpassetcleanup_settings .wpacu_switch{width:auto;height:auto}.wpacu-wrap.wpacu-switch-standard .asset-cleanup-pro_page_wpassetcleanup_settings .wpacu_switch input,.wpacu-wrap.wpacu-switch-standard .asset-cleanup_page_wpassetcleanup_settings .wpacu_switch input{display:block}.wpacu-wrap.wpacu-switch-standard .asset-cleanup-pro_page_wpassetcleanup_settings .wpacu_switch input[type=checkbox],.wpacu-wrap.wpacu-switch-standard .asset-cleanup_page_wpassetcleanup_settings .wpacu_switch input[type=checkbox]{margin:0 0 3px}.wpacu-wrap.wpacu-switch-standard .asset-cleanup-pro_page_wpassetcleanup_settings .wpacu_switch .wpacu_slider,.wpacu-wrap.wpacu-switch-standard .asset-cleanup_page_wpassetcleanup_settings .wpacu_switch .wpacu_slider{display:none}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch{position:relative;display:inline-block;width:52px;height:29px}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch.wpacu_with_text{width:65px}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch.wpacu_with_text .wpacu_slider:before{left:14px}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch.wpacu_with_text .wpacu_slider:after{top:5px;position:absolute;content:"OFF";color:#fff;right:9px;font-weight:600}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch.wpacu_with_text input:checked+.wpacu_slider{background-color:#52af00}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch.wpacu_with_text input:checked+.wpacu_slider:before{left:18px}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch.wpacu_with_text input:checked+.wpacu_slider:after{top:5px;position:absolute;content:"ON";color:#fff;left:14px;font-weight:600}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch input{display:none}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch:not(.wpacu_switch_standard) .wpacu_slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.2s;transition:.2s}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch:not(.wpacu_switch_standard) .wpacu_slider:before{position:absolute;content:"";height:22px;width:22px;left:4px;bottom:4px;background-color:#fff;-webkit-transition:.2s;transition:.2s}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch input:checked+.wpacu_slider{background-color:#52af00}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch input:focus+.wpacu_slider{box-shadow:0 0 1px #52af00}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch input:checked+.wpacu_slider:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch .wpacu_slider.wpacu_round{border-radius:29px}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch .wpacu_slider.wpacu_round:before{border-radius:50%}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch.wpacu_locked_for_pro{opacity:.3}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch.wpacu_disabled{opacity:.3}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch.wpacu_disabled:before{content:"";font-family:Dashicons,Arial,"Times New Roman","Bitstream Charter",Times,serif;position:absolute;font-size:23px;top:5px;right:2px;z-index:1000}.asset-cleanup-pro_page_wpassetcleanup_settings .setting_title p.wpacu_subtitle,.asset-cleanup_page_wpassetcleanup_settings .setting_title p.wpacu_subtitle{margin-top:4px;line-height:1.4}.asset-cleanup-pro_page_wpassetcleanup_settings .setting_title p.wpacu_subtitle em,.asset-cleanup_page_wpassetcleanup_settings .setting_title p.wpacu_subtitle em{font-weight:200}.asset-cleanup-pro_page_wpassetcleanup_settings .setting_title p.wpacu_read_more,.asset-cleanup_page_wpassetcleanup_settings .setting_title p.wpacu_read_more{margin-top:-10px;font-style:italic;font-size:12px}.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_inline_code_status_choices,.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices,.asset-cleanup-pro_page_wpassetcleanup_settings .input_style_choices,.asset-cleanup_page_wpassetcleanup_settings .assets_list_inline_code_status_choices,.asset-cleanup_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices,.asset-cleanup_page_wpassetcleanup_settings .input_style_choices{list-style:none;margin:0}.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_inline_code_status_choices li,.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices li,.asset-cleanup-pro_page_wpassetcleanup_settings .input_style_choices li,.asset-cleanup_page_wpassetcleanup_settings .assets_list_inline_code_status_choices li,.asset-cleanup_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices li,.asset-cleanup_page_wpassetcleanup_settings .input_style_choices li{float:left;margin-right:30px}.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_inline_code_status_choices li:last-child,.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices li:last-child,.asset-cleanup-pro_page_wpassetcleanup_settings .input_style_choices li:last-child,.asset-cleanup_page_wpassetcleanup_settings .assets_list_inline_code_status_choices li:last-child,.asset-cleanup_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices li:last-child,.asset-cleanup_page_wpassetcleanup_settings .input_style_choices li:last-child{margin-right:0}#wpacu-assets-list-by-location-selected{background:0 0;border:1px solid #e7e7e7;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;padding:8px;clear:both}.notice.notice-success+.wpacu-wrap.wpacu-settings-area{margin-top:20px}.wpacu-license-action-btn-area{margin-top:0;position:relative;display:inline-block}.wpacu-license-spinner{display:none;position:absolute;right:-30px;top:4px}.wpacu-license-spinner img{width:20px;height:20px}#wpacu-activation-issues-info{border-radius:10px;width:90%;margin-top:20px;font-size:14px;padding:6px 20px;background:#fff;border:1px solid #e7e7e7}#wpacu-activation-issues-info ol li{font-size:13px;margin-bottom:10px}#wpacu-mark-license-area-wrap{margin:15px 0}.wpacu-form-table.wpacu-license th{width:120px}.wpacu-form-table th{vertical-align:top;text-align:left;padding:5px 20px 20px 0;width:200px;line-height:1.3;font-weight:600}.wpacu-form-table th label{color:#23282d;font-weight:600;font-size:14px;text-shadow:none;vertical-align:middle;cursor:pointer}.wpacu-form-table td{padding-bottom:25px}.wpacu-form-table td:last-child p:last-child{margin:0}.wpacu-form-table .wpacu-fancy-checkbox input[type=checkbox],.wpacu-form-table label input[type=checkbox]{height:20px;width:20px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.wpacu-form-table .wpacu-fancy-checkbox input[type=checkbox]:hover,.wpacu-form-table label input[type=checkbox]:hover{border:1px solid green}.wpacu-form-table .wpacu-fancy-checkbox input[type=checkbox]:checked,.wpacu-form-table label input[type=checkbox]:checked{border:1px solid green}.wpacu-form-table .wpacu-fancy-checkbox input[type=checkbox]:disabled,.wpacu-form-table label input[type=checkbox]:disabled{border:none}.wpacu-form-table .wpacu-fancy-checkbox input[type=checkbox]:disabled:checked,.wpacu-form-table label input[type=checkbox]:disabled:checked{opacity:.3}.wpacu-form-table .wpacu-fancy-checkbox input[type=checkbox]:checked:before,.wpacu-form-table label input[type=checkbox]:checked:before{color:#52af00;font:normal 24px/1 dashicons}.wpacu-form-table .wpacu-fancy-radio input[type=radio]{-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;position:relative;height:20px;width:20px;margin:2px 0 0 0}.wpacu-form-table .wpacu-fancy-radio input[type=radio].wpacu-disabled-status:checked{border:1px solid #c00}.wpacu-form-table .wpacu-fancy-radio input[type=radio].wpacu-disabled-status:checked:before{background:#c00;color:#c00}.wpacu-form-table .wpacu-fancy-radio input[type=radio].wpacu-disabled-status:hover{border:1px solid #c00}.wpacu-form-table .wpacu-fancy-radio input[type=radio]:hover{border:1px solid green}.wpacu-form-table .wpacu-fancy-radio input[type=radio]:checked{border:1px solid green}.wpacu-form-table .wpacu-fancy-radio input[type=radio]:checked:before{margin:0;line-height:inherit;text-indent:inherit;content:"";position:absolute;top:4px;left:4px;width:10px;height:10px;border-radius:50%;background:#52af00;color:#52af00;font:normal 24px/1 dashicons}#wpacu-settings-vertical-tab-wrap{display:table;width:100%}#wpacu-settings-vertical-tab-wrap .wpacu-tab-extra-text{margin:4px 0 0 0}#wpacu-settings-vertical-tab-wrap .wpacu-tab-extra-text small{font-weight:lighter}#wpacu-settings-vertical-tab-wrap .wpacu-tab-extra-text small span.wpacu-status-wrap{position:relative;padding-left:14px}#wpacu-settings-vertical-tab-wrap .wpacu-tab-extra-text small span.wpacu-status-wrap span.wpacu-circle-status{position:absolute;left:0;top:2px;height:10px;width:10px;border-radius:50%;display:inline-block;opacity:.75}#wpacu-settings-vertical-tab-wrap .wpacu-tab-extra-text small span.wpacu-status-wrap span.wpacu-circle-status.wpacu-on{background:#52af00}#wpacu-settings-vertical-tab-wrap .wpacu-tab-extra-text small span.wpacu-status-wrap span.wpacu-circle-status.wpacu-off{background:#ccc}#wpacu-settings-vertical-tab-wrap *{box-sizing:border-box}.wpacu-settings-tab{display:table-cell;width:20%;height:100%;vertical-align:top}.wpacu-settings-tab a{text-decoration:none;border-left:3px solid transparent;display:block;background-color:#f1f1f1;color:#004567;padding:17px 16px;width:100%;outline:0;text-align:left;cursor:pointer;font-size:14px;font-weight:600;border-bottom:1px solid #ccc}.wpacu-settings-tab a:first-child{border-top:1px solid transparent!important}.wpacu-settings-tab a:last-child{border-bottom:1px solid transparent!important}.wpacu-settings-tab a:hover{background-color:#fff;border-left:3px solid #004567;position:relative}.wpacu-settings-tab a.active{color:#004567;background-color:#fff;border-left:3px solid #004567;position:relative;border-bottom:1px solid #ccc}.wpacu-settings-tab a.active:after{content:"";position:absolute;height:100%;width:1px;top:0;right:-1px;background-color:#fff}.wpacu-settings-tab-content{background-color:#fff;display:none;padding:12px 18px;width:79%;border-left:none;height:100%;border-top-right-radius:10px;border-bottom-right-radius:10px}.wpacu-settings-tab-content h2{padding:0 0 15px;border-bottom:1px solid #e7e7e7}.wpacu-settings-tab-content.active{display:table-cell}#wpacu_minify_css_exceptions_area{margin:16px 0 0}#wpacu_minify_js_exceptions_area{margin:16px 0 0}@media only screen and (min-width:768px){body.asset-cleanup-pro_page_wpassetcleanup_assets_manager #wpacu-update-button-area,body.asset-cleanup_page_wpassetcleanup_assets_manager #wpacu-update-button-area{position:-webkit-sticky;position:sticky;bottom:0;padding:0;z-index:1000000;border-top:1px solid #cdcdcd;background:#f1f1f1}}body[class*=version-5-3] #wpacu-update-button-area .button{height:auto;padding:4px 18px 6px;font-size:15px}body[class*=version-5-3] #wpacu-updating-settings{margin-left:178px}#wpacu-update-button-area{position:relative;margin-left:20%}#wpacu-update-button-area.no-left-margin{margin-left:0}#wpacu-update-button-area .submit{margin:0;padding:19px 0}#wpacu-update-button-area .button{padding-left:18px;padding-right:18px;height:46px;font-size:15px}#wpacu-updating-settings{position:absolute;margin-left:183px;top:28px;display:none}#wpacu-updating-settings.wpacu-show{display:block}#combine_loaded_js_info_area{position:relative}#combine_loaded_js_info_area.locked-for-pro:before{position:absolute;content:"";height:100%;width:100%;background:#fff;opacity:.5;z-index:10000}.google_fonts_load_types{clear:both;margin:20px 0 15px;display:flex}.google_fonts_load_types>div{text-align:left}.google_fonts_load_types>div input{float:left;margin:0 7px 20px 0!important}.wpacu-sub-tabs-wrap{min-width:320px;margin:0 auto}.wpacu-sub-tabs-wrap input.wpacu-nav-input{display:none}.wpacu-sub-tabs-wrap label.wpacu-nav-label{display:inline-block;margin:0 0 -1px;padding:15px 25px;font-weight:600;text-align:center;color:#74777b;border-left:1px solid transparent;border-right:1px solid transparent;border-top:3px solid transparent;border-bottom:0}.wpacu-sub-tabs-wrap label.wpacu-nav-label:hover{cursor:pointer}.wpacu-sub-tabs-wrap input.wpacu-nav-input:checked+label.wpacu-nav-label{color:#004567;border-left:1px solid #ccc;border-right:1px solid #ccc;border-top:3px solid #004567;border-bottom:1px solid #fff}.wpacu-sub-tabs-wrap section{display:none;padding:20px 0 0;border-top:1px solid #ccc}#wpacu-google-fonts-optimize-tab-item:checked~#wpacu-google-fonts-optimize-tab-item-area,#wpacu-google-fonts-remove-tab-item:checked~#wpacu-google-fonts-remove-tab-item-area{display:block}.wpacu-fade-in{animation:wpacuFadeIn ease-in .2s;-webkit-animation:wpacuFadeIn ease-in .2s;-moz-animation:wpacuFadeIn ease-in .2s;-o-animation:wpacuFadeIn ease-in .2s;-ms-animation:wpacuFadeIn ease-in .2s}@keyframes wpacuFadeIn{0%{opacity:0}100%{opacity:1}}@-moz-keyframes wpacuFadeIn{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes wpacuFadeIn{0%{opacity:0}100%{opacity:1}}@-o-keyframes wpacuFadeIn{0%{opacity:0}100%{opacity:1}}@-ms-keyframes wpacuFadeIn{0%{opacity:0}100%{opacity:1}}body.wp-admin select.wpacu-screen-size-load{margin-top:10px;margin-bottom:10px;margin-right:6px}body.wp-admin div.wpacu-helper-area{display:inline-block;vertical-align:top}body.wp-admin .wpacu-handle-media-queries-load-field{display:none;vertical-align:top;margin-bottom:10px}body.wp-admin .wpacu-handle-media-queries-load-field.wpacu-is-visible{display:inline-block}body.wp-admin .wpacu-handle-media-queries-load-field>textarea{font-size:100%;padding:6px;width:320px;max-width:100%;max-height:80px;border:1px solid green}body.wp-admin .wpacu-handle-media-queries-load-field>textarea:disabled{border:1px solid #e7e7e7}body.wp-admin .wpacu-handle-media-queries-load-field:not(.wpacu-is-visible)+div.wpacu-helper-area{margin-top:2px;vertical-align:middle}body.wp-admin .wpacu-handle-notes p{margin-top:0!important}body.wp-admin .wpacu-handle-notes p a{font-size:inherit}body.wp-admin .wpacu-handle-notes p a span.dashicons{font-size:19px;width:19px;height:19px;vertical-align:bottom;text-decoration:none}body:not(.wp-admin) select.wpacu-screen-size-load{margin-top:10px;margin-bottom:10px;margin-right:8px;width:auto}body:not(.wp-admin) div.wpacu-helper-area{display:inline-block;vertical-align:top}body:not(.wp-admin) .wpacu-handle-media-queries-load-field{display:none;vertical-align:top;margin-top:10px;margin-bottom:10px}body:not(.wp-admin) .wpacu-handle-media-queries-load-field.wpacu-is-visible{display:inline-block}body:not(.wp-admin) .wpacu-handle-media-queries-load-field>textarea{font-size:100%;padding:6px;width:320px;max-width:100%;max-height:80px;border:1px solid green}body:not(.wp-admin) .wpacu-handle-media-queries-load-field>textarea:disabled{border:1px solid #e7e7e7}body:not(.wp-admin) .wpacu-handle-media-queries-load-field:not(.wpacu-is-visible)+div.wpacu-helper-area{margin-top:2px;vertical-align:middle}body:not(.wp-admin) .wpacu-handle-notes p{margin-top:0!important}body:not(.wp-admin) .wpacu-handle-notes p a{font-size:inherit}body:not(.wp-admin) .wpacu-handle-notes p a span.dashicons{font-size:19px;width:19px;height:19px;vertical-align:bottom;text-decoration:none}.wpacu-handle-notes{padding-top:5px;margin-bottom:-10px;border-top:1px solid #e7e7e7}.wpacu-handle-notes .wpacu-handle-notes-field{display:none}.wpacu-handle-notes .wpacu-handle-notes-field>textarea{font-size:85%;padding:6px;width:320px;max-width:100%}.wpacu-handle-notes p{margin:10px 0 0!important}.wpacu-handle-notes p a.wpacu-add-handle-note{text-decoration:none;font-size:80%;display:inline-block;color:inherit}.wpacu-handle-notes p a.wpacu-add-handle-note span.dashicons{font-size:18px;width:18px;height:18px}.wrap_bulk_unload_options{width:auto;display:block;clear:both}.wrap_bulk_unload_options.wpacu_has_fieldset fieldset{border:1px solid #cdcdcd;padding:10px;background:#fff;border-radius:5px}.wrap_bulk_unload_options.wpacu_has_fieldset fieldset legend{width:auto;font-weight:400;font-size:inherit;padding:8px 11px;margin:0;background:#fff;border:1px solid #cdcdcd;border-radius:5px}.wrap_bulk_unload_options .wpacu_asset_options_wrap{display:inline-block;float:left;margin:5px 10px 14px 0!important;padding:8px 10px 12px!important}.wrap_bulk_unload_options .wpacu_asset_options_wrap .wpacu_slider_text{position:relative!important;vertical-align:top;left:inherit!important;top:inherit!important}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch{position:relative;display:inline-block;min-width:52px;width:52px;height:29px;margin-right:5px!important}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch input{display:none}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch .wpacu_slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.15s;transition:.15s}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch .wpacu_slider:before{position:absolute;content:"";height:22px;width:22px;left:4px;bottom:4px;background-color:#fff;-webkit-transition:.15s;transition:.15s}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch input:checked+.wpacu_slider{background-color:#c00}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch input:focus+.wpacu_slider{box-shadow:0 0 1px #c00}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch input:checked+.wpacu_slider:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch .wpacu_slider.wpacu_round{border-radius:29px}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch .wpacu_slider.wpacu_round:before{border-radius:50%}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch.wpacu_disabled{opacity:.3}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch.wpacu_disabled:before{content:"";font-family:Dashicons,Arial,"Times New Roman","Bitstream Charter",Times,serif;position:absolute;font-size:23px;top:1px;right:2px;z-index:1000}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_slider_text{position:absolute;left:62px;top:3px}.wpacu-wrap{width:98%}.wpacu-wrap tr.wpacu_regex_rule_row{opacity:.45}.wpacu-wrap tr.wpacu_regex_rule_row textarea{line-height:normal;min-height:20px;min-width:400px;display:inline-block;padding:2px 4px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.wpacu-wrap tr.wpacu_regex_rule_row textarea:focus{width:100%}.wpacu-wrap tr.wpacu_regex_rule_row.wpacu_enabled{opacity:1}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch_small{position:relative;display:inline-block;min-width:30px;width:30px;height:17px;margin-right:5px!important}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch_small input{display:none}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch_small .wpacu_slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.15s;transition:.15s}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch_small .wpacu_slider:before{position:absolute;content:"";height:13px;width:13px;left:2px;bottom:2px;background-color:#fff;-webkit-transition:.15s;transition:.15s}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch_small input:checked+.wpacu_slider{background-color:#52af00}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch_small input:focus+.wpacu_slider{box-shadow:0 0 1px #52af00}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch_small input:checked+.wpacu_slider:before{-webkit-transform:translateX(13px);-ms-transform:translateX(13px);transform:translateX(13px)}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch_small .wpacu_slider.wpacu_round{border-radius:17px}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch_small .wpacu_slider.wpacu_round:before{border-radius:50%}.editor-post-saved-state.is-wpacu-reloading{animation:edit-post__loading-fade-animation .5s infinite}body.wp-admin tr.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract .dashicons{width:19px;height:19px;font-size:19px}body.wp-admin tr.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:before{right:20px;top:-2px}body.wp-admin tr.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:after{left:20px;top:-2px}body.wp-admin tr.wpacu_asset_row.wpacu-loading{position:relative}body.wp-admin tr.wpacu_asset_row.wpacu-loading .wpacu-ajax-loader{display:block!important}body.wp-admin tr.wpacu_asset_row .wpacu-ajax-loader{display:none;width:58px;height:58px;position:absolute;bottom:0;right:0;opacity:.75}.wpacu_asset_row.wpacu_not_load .wpacu_dependency_notice_area em{color:#c00}.wpacu_asset_row input.wpacu_load_exception:checked+span{color:green}.wpacu_asset_row .wpacu-hardcoded-code-area{margin:0}.wpacu_asset_row .wpacu-hardcoded-code-area span.wpacu_inside_cond_comm{display:block;margin-bottom:8px}.wpacu_asset_row .wpacu-hardcoded-code-area .wpacu-has-view-more{max-height:300px;position:relative;overflow:hidden}.wpacu_asset_row .wpacu-hardcoded-code-area .wpacu-has-view-more p.wpacu-view-more-link-area{position:absolute;bottom:0;left:0;width:100%;margin:0;padding:20px 0 15px 15px;background:linear-gradient(to bottom,rgba(255,255,255,0) 0,#fbfbfb8c 100%);background:-webkit-linear-gradient(top,rgba(255,255,255,0) 0,#fbfbfb8c 100%)}.wpacu_asset_row .wpacu-hardcoded-code-area pre{margin:0;padding:0 0 8px;white-space:pre-wrap;white-space:break-spaces;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.wpacu_asset_row .wpacu-hardcoded-code-area code{color:inherit;font-style:italic;margin-left:2px;word-break:break-word}.wpacu_asset_row[data-is-hardcoded-asset=true] .wpacu-source-row{margin-top:0}.wpacu_asset_row[data-is-hardcoded-asset=true] .wpacu_handle_row_expand_contract_area{right:18px;top:18px;background:inherit;z-index:100}.wpacu_asset_row>td{background:inherit;overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-all}.wpacu_asset_row>td[data-wpacu-row-status=expanded] .wpacu_file_size_area{margin:10px 0}.wpacu_asset_row>td[data-wpacu-row-status=expanded] .wpacu_hardcoded_part_if_contracted{display:none}.wpacu_asset_row>td[data-wpacu-row-status=expanded] .wpacu_hardcoded_part_if_expanded{display:block}.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_file_size_area{margin:0}.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_hardcoded_part_if_contracted{display:block}.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_hardcoded_part_if_contracted code{width:100%}.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_hardcoded_part_if_expanded{display:none}.wpacu_asset_row>td div.wpacu_dependency_notice_area{line-height:22px;margin:10px 0;text-align:left!important;font-weight:400!important}.wpacu_asset_row>td div.wpacu-source-row{margin-top:12px}.wpacu_asset_row>td div.wpacu-source-row a{word-break:break-word}.wpacu_asset_row>td .wpacu_hide_if_handle_row_contracted{display:inline-block}.wpacu_asset_row>td[data-wpacu-row-status=contracted]>div{float:left;margin-top:0;margin-right:20px;margin-bottom:10px}.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_hide_if_handle_row_contracted{display:none}.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area{background:inherit}.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract{transition:none}.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:focus,.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:focus-visible,.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:visited{text-decoration:none;border:none}.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:after,.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:before{opacity:0;-webkit-transition:-webkit-transform .3s,opacity .2s;-moz-transition:-moz-transform .3s,opacity .2s;transition:transform .3s,opacity .2s}.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:before{position:absolute;right:20px;top:-4px;content:"[";-webkit-transform:translateX(20px);-moz-transform:translateX(20px);transform:translateX(20px)}.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:after{position:absolute;left:20px;top:-4px;content:"]";-webkit-transform:translateX(-20px);-moz-transform:translateX(-20px);transform:translateX(-20px)}.wpacu_asset_row>td[data-wpacu-row-status=contracted].wpacu_hovered .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract,.wpacu_asset_row>td[data-wpacu-row-status=contracted]:focus .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract,.wpacu_asset_row>td[data-wpacu-row-status=contracted]:hover .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract{transition:none}.wpacu_asset_row>td[data-wpacu-row-status=contracted].wpacu_hovered .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:hover,.wpacu_asset_row>td[data-wpacu-row-status=contracted]:focus .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:hover,.wpacu_asset_row>td[data-wpacu-row-status=contracted]:hover .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:hover{color:green}.wpacu_asset_row>td[data-wpacu-row-status=contracted].wpacu_hovered .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:after,.wpacu_asset_row>td[data-wpacu-row-status=contracted].wpacu_hovered .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:before,.wpacu_asset_row>td[data-wpacu-row-status=contracted]:focus .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:after,.wpacu_asset_row>td[data-wpacu-row-status=contracted]:focus .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:before,.wpacu_asset_row>td[data-wpacu-row-status=contracted]:hover .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:after,.wpacu_asset_row>td[data-wpacu-row-status=contracted]:hover .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:before{opacity:1;-webkit-transform:translateX(0);-moz-transform:translateX(0);transform:translateX(0)}.wpacu_asset_row .wpacu_handle_row_expand_contract_area{background:inherit;position:absolute;right:20px;top:20px;float:none!important;margin:0!important}.wpacu_asset_row .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract{background:inherit;color:#000;text-decoration:none}.wpacu_asset_row .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:hover{text-decoration:none}.wpacu_asset_row .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract span.dashicons{background:inherit}.wpacu_asset_row input{width:auto;height:auto;min-height:16px}.wpacu_asset_row .tip{background:inherit;border-left:4px solid #e7e7e7;margin:10px 0;padding:7px;font-style:italic;font-size:small;line-height:1.4}.wpacu_asset_row td{width:100%;text-align:left}.wpacu_asset_row td p:last-child{margin-bottom:0!important}.wpacu_asset_row td .wpacu_asset_options_wrap{min-height:23px;padding:8px 10px;margin:15px 0;background:#fff;border:1px solid #eee;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.wpacu_asset_row td .wpacu_asset_options_wrap p:first-child{margin-top:0;margin-bottom:8px!important}.wpacu_asset_row div.wpacu_handle{margin:0 0 -8px}.wpacu_asset_row p.wpacu_handle{margin-top:0}.wpacu_asset_row li.wpacu_unload_this_page{display:block!important;position:relative}.wpacu-contract-expand-area{width:100%;margin:20px 0 0}.wpacu-contract-expand-area .col-left{float:left}.wpacu-contract-expand-area .col-left h4{margin-bottom:0}.wpacu-contract-expand-area .col-right{float:right}.wpacu-clearfix{clear:both;height:0}.wpacu-clearfix:before{content:"";display:table}.wpacu-clearfix:after{content:"";display:table;clear:both}body.wp-admin .wpacu-wp-button{font-size:13px;line-height:26px;height:28px}.wpacu-wp-button{color:#555!important;border-color:#ccc!important;background:#f7f7f7!important;box-shadow:0 1px 0 #ccc;vertical-align:top}.wpacu-wp-button:hover{background:#fafafa!important;border-color:#999!important;color:#23282d!important}.wpacu-wp-button.wpacu-wp-button-secondary{display:inline-block;text-decoration:none;height:auto;margin:0 5px 0 0;padding:0 10px 1px;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;border-radius:3px;white-space:nowrap;box-sizing:border-box}.distinguish-asset-list{list-style:none;margin-left:0;margin-bottom:5px;display:inline-block}.distinguish-asset-list li{float:left;margin-right:20px}.distinguish-asset-list li:last-child{margin-right:0}body[class*=asset-cleanup-pro] a.wpacu-plugin-contracted-wrap-link{padding:16px 6px 16px 41px!important}body[class*=asset-cleanup-pro] .wpacu-area-open .wpacu-plugin-toggle-all{font-size:12px!important;width:calc(100% - 26px)!important}body.wp-admin .wpacu-area-expanded .wpacu-plugin-toggle-all{top:5px}body.wp-admin .wpacu-area-expanded .wpacu-plugin-toggle-all ul li{font-size:12px!important}.wpacu-assets-collapsible-wrap{border:1px solid #cdcdcd}.wpacu-assets-collapsible-wrap.wpacu-by-location{margin-bottom:15px}.wpacu-assets-collapsible-wrap.wpacu-wrap-all{margin-top:20px}.wpacu-assets-collapsible-wrap.wpacu-wrap-area{margin-top:10px}.wpacu-assets-collapsible-wrap.wpacu-by-location>a.wpacu-assets-collapsible{padding:15px 15px 15px 43px}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu_list_table{border-width:0;margin:0;border-spacing:inherit;width:100%;box-shadow:3px 3px 2px #ddd;border-bottom-right-radius:5px;border-top-right-radius:5px}.wpacu-assets-collapsible-wrap.wpacu-by-location span.wpacu-child-location-name{font-weight:600}.wpacu-assets-collapsible-wrap.wpacu-by-location span.wpacu-child-location-version{font-weight:200}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-location-child-area[data-wpacu-plugin=oxygen] .icon-area{border-radius:50%}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-location-child-area .wpacu-plugin-toggle-all-wrap .wpacu-plugin-toggle-all{display:inline-block;padding:0;font-size:13px;width:100%;width:calc(100% + 46px);min-width:250px;position:absolute;left:100%;left:calc(100% + 6px);margin:0;top:4px}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-location-child-area .wpacu-plugin-toggle-all-wrap .wpacu-plugin-toggle-all ul{display:inline-block;margin:0;list-style:none;padding-left:13px;padding-top:0}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-location-child-area .wpacu-plugin-toggle-all-wrap .wpacu-plugin-toggle-all ul li{padding:0;margin:0;line-height:normal;font-size:14px}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-location-child-area .wpacu-plugin-toggle-all-wrap .wpacu-plugin-toggle-all ul li:first-child{font-style:italic;margin-bottom:5px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-themes .wpacu-assets-collapsible-content>table:last-child{margin-bottom:20px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-themes .wpacu-assets-collapsible-content .wpacu-location-child-area .wpacu-area-title{display:inline;position:relative;padding:9px 10px 10px 15px;z-index:1}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-themes .wpacu-assets-collapsible-content .wpacu-location-child-area .wpacu-area-title:after{content:"";position:absolute;width:100%;left:0;bottom:0;height:1px;background-color:#fdfdfd}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content .wpacu-plugin-assets-wrap{padding:0 0 10px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content .wpacu-plugin-assets-wrap.wpacu-area-open.wpacu-plugin-assets-last{margin-bottom:18px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content .wpacu-plugin-assets-wrap.wpacu-area-open .wpacu-plugin-toggle-all-wrap .wpacu-plugin-toggle-all{display:inline-block;padding:7px 12px 8px;font-size:14px;width:100%;text-align:left;border-left:1px solid #cdcdcd;border-right:1px solid #cdcdcd}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content .wpacu-plugin-assets-wrap.wpacu-area-open .wpacu-plugin-toggle-all-wrap .wpacu-plugin-toggle-all+.wpacu-plugin-toggle-all{padding:2px 12px 10px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link{color:inherit;text-decoration:none;font-weight:inherit;font-style:inherit;font-size:105%;line-height:initial;position:relative;height:auto;margin:14px 0 0;padding:13px 6px 14px 39px;position:relative;display:block}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link:after{position:absolute;font-size:18px;font-family:Dashicons!important;right:12px;top:14px;content:""}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link.wpacu-link-open:after{content:""}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link.wpacu-link-closed{border:1px solid #cdcdcd}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link:hover{border:1px solid #878787;background:#f9f9f9}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link:hover.wpacu-link-closed{box-shadow:3px 3px 2px #ddd}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link.wpacu-link-open{border-top:1px solid #cdcdcd;border-left:1px solid #cdcdcd;border-right:1px solid #cdcdcd;border-bottom:none}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link.wpacu-link-closed.wpacu-last-wrap-link{margin-bottom:20px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link .icon-plugin-default{top:10px;left:10px;width:30px;height:30px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link .icon-plugin-default .icon-area{width:30px;height:30px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link .icon-plugin-default .icon-area:before{font-size:22px;line-height:22px;top:4px;left:5px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link .wpacu-area-title{position:relative;padding:17px 10px 16px 46px;z-index:1}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link .wpacu-area-title:after{content:"";position:absolute;width:100%;left:0;bottom:0;height:1px;background-color:#fdfdfd}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link.wpacu-area-last{margin-bottom:18px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content .wpacu-area-open{padding:0;max-height:100%}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content .wpacu-area-closed{padding:0;overflow:hidden;max-height:0}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content>table:last-child{margin-bottom:20px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-themes .wpacu-assets-collapsible-content .wpacu-location-child-area .wpacu-area-title{margin-top:0;margin-bottom:-1px;padding:14px 10px 16px 12px!important}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-themes .wpacu-assets-collapsible-content .wpacu-location-child-area .wpacu-area-title.wpacu-theme-has-icon{padding:18px 10px 16px 58px!important}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-assets-collapsible-content .wpacu-location-child-area{margin-top:22px;margin-bottom:-1px;font-size:110%;line-height:initial}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-assets-collapsible-content .wpacu-location-child-area.wpacu-location-child-area-first{margin-top:2px}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-assets-collapsible-content .wpacu-location-child-area.wpacu-area-expanded .wpacu-area-title{display:inline-block;z-index:1;padding:17px 10px 16px 46px}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-assets-collapsible-content .wpacu-location-child-area .wpacu-area-title{display:inline;border-top-right-radius:8px;border-top-left-radius:8px;background-color:#f9f9f9;border-left:1px solid #cdcdcd;border-top:1px solid #cdcdcd;border-bottom:1px solid transparent;border-right:1px solid #cdcdcd;position:relative}.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-plugin-default{position:absolute;padding:0;top:10px;left:10px;width:37px;height:37px}.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-plugin-default:not(.has-icon){color:#b4b9be;background-color:#eee;box-shadow:inset 0 0 10px rgba(160,165,170,.15);-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-plugin-default:not(.has-icon) .icon-area:before{content:"";font-family:Dashicons!important;position:absolute;font-size:28px;line-height:28px;top:5px;left:5px}.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-plugin-default .icon-area{position:relative;width:37px;height:37px}.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-theme{position:absolute;padding:0;top:10px;left:10px;width:37px;height:37px}.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-theme .icon-area{position:relative;width:37px;height:37px}.wpacu-assets-collapsible-wrap.wpacu-wp_core{border:1px solid #c00}.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content,.wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content{padding:0}.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content .wpacu_list_table,.wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content .wpacu_list_table{width:100%;margin:0}.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row td,.wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row td{border-left:hidden;border-right:hidden;border-bottom:1px solid #cdcdcd}.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row:last-child,.wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row:last-child{margin-bottom:0!important}.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row:last-child td:last-child,.wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row:last-child td:last-child{border-bottom:hidden}a.wpacu-assets-collapsible{color:#000;font-size:20px;text-decoration:none;display:block;position:relative;background-color:#f1f3f8;cursor:pointer;padding:15px 15px 15px 36px;width:auto;border:none;text-align:left;outline:0}a.wpacu-assets-collapsible>span.dashicons{font-size:25px;line-height:normal;position:absolute;top:15px;top:calc(50% - 21px);left:22px;-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}a.wpacu-assets-collapsible:hover{background-color:#f1f3f8;text-decoration:none}a.wpacu-assets-collapsible:after{position:absolute;font-size:22px;font-family:Dashicons!important;right:14px;top:16px}a.wpacu-assets-collapsible:not(.wpacu-assets-collapsible-active):after{content:""}a.wpacu-assets-collapsible.wpacu-assets-collapsible-active{background-color:#f1f3f8}a.wpacu-assets-collapsible.wpacu-assets-collapsible-active:after{content:""}.wpacu-assets-collapsible-content{padding:0 16px;max-height:0;overflow:hidden;background-color:#fbfbfb8c}.wpacu-assets-collapsible-content .wpacu-assets-note{margin:0;padding:15px 15px 10px}.wpacu-assets-collapsible-content>div:not(.wpacu-assets-table-list-wrap){padding:16px 0 0}.wpacu-assets-collapsible-content>div>p:first-child{margin-top:0}.wpacu-assets-collapsible-content.wpacu-open{max-height:100%}a.wpacu-assets-inline-code-collapsible{color:inherit;font-size:14px;text-decoration:none;display:inline-block;position:relative;cursor:pointer;width:auto;outline:0;background:#f1f3f8;border:1px solid #cdcdcd;padding:4px 21px 4px 8px;margin:0 0 0 6px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}a.wpacu-assets-inline-code-collapsible:hover{border:1px solid #5c5c5c}a.wpacu-assets-inline-code-collapsible:after{position:absolute;font-size:15px;font-family:Dashicons!important;right:-3px;top:-1px;width:14px;height:14px;-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}a.wpacu-assets-inline-code-collapsible:not(.wpacu-assets-inline-code-collapsible-active):after{content:""}a.wpacu-assets-inline-code-collapsible.wpacu-assets-inline-code-collapsible-active:after{content:""}.wpacu-assets-inline-code-collapsible-content{padding:0 8px 2px 0;max-height:0;overflow:hidden;background-color:#fbfbfb8c}.wpacu-assets-inline-code-collapsible-content>div{padding:7px 8px 0}.wpacu-assets-inline-code-collapsible-content>div>p{line-height:normal!important}.wpacu-assets-inline-code-collapsible-content>div>p:first-child{margin-top:0}.wpacu-assets-inline-code-collapsible-content.wpacu-open{max-height:100%}.wpacu_asset_row p div.select{display:inline-block}.wpacu-wrap-choose-position{display:inline}.wpacu-wrap-choose-position>div{display:inline-block}.wpacu-wrap-choose-position select{width:auto;font-size:inherit;display:inline;margin-left:6px;margin-right:4px}.wpacu-wrap-choose-position>.select>.select{display:inline}.wpacu-wrap-choose-position>.select>.select select{padding-right:30px}.wpacu-wrap-choose-position>.select>.select:after{right:15px;top:-4px}.wpacu_handle_unload_regex_input_wrap,.wpacu_load_regex_input_wrap{display:block;width:100%}.wpacu_handle_unload_regex_input_wrap .wpacu_regex_rule_area .wpacu_regex_rule_textarea,.wpacu_load_regex_input_wrap .wpacu_regex_rule_area .wpacu_regex_rule_textarea{line-height:normal;min-height:40px;min-width:300px;max-width:400px;display:inline-block;padding:2px 4px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.wpacu_handle_unload_regex_input_wrap .wpacu_regex_rule_area .wpacu_regex_rule_textarea:focus,.wpacu_load_regex_input_wrap .wpacu_regex_rule_area .wpacu_regex_rule_textarea:focus{width:100%}body.logged-in:not(.wp-admin) .wpacu-view-more-code{box-shadow:inset 0 1px 0 0 #fff;background:linear-gradient(to bottom,#f9f9f9 5%,#e9e9e9 100%);background-color:#f9f9f9;border-radius:6px;border:1px solid #dcdcdc;display:inline-block;cursor:pointer;color:#666;font-size:inherit;font-weight:700;padding:6px 24px;text-decoration:none;text-shadow:0 1px 0 #fff}body.logged-in:not(.wp-admin) .wpacu-view-more-code:hover{background:linear-gradient(to bottom,#e9e9e9 5%,#f9f9f9 100%);background-color:#e9e9e9}body.logged-in:not(.wp-admin) .wpacu-view-more-code:active{position:relative;top:1px}.wpacu-page-options .wpacu-assets-collapsible-content.wpacu-loading{position:relative}.wpacu-page-options .wpacu-assets-collapsible-content.wpacu-loading .wpacu-ajax-loader{display:block!important}.wpacu-page-options .wpacu-assets-collapsible-content .wpacu-ajax-loader{display:none;width:58px;height:58px;position:absolute;bottom:0;right:0;opacity:.75}#wpacu-page-options-ul input[type=checkbox]:checked{border:1px solid #c00}#wpacu-page-options-ul input[type=checkbox]:checked::before{content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M14.83 4.89l1.34.94-5.81 8.38H9.02L5.78 9.67l1.34-1.25 2.57 2.4z' fill='%23cc0000'/%3E%3C/svg%3E")!important}#wpacu-page-options-ul input[type=checkbox]:checked#wpacu_page_options_no_wpacu_load+span{color:#c00}#wpacu-assets-contract-all img,#wpacu-assets-expand-all img{display:none}#wpacu-assets-contract-all:disabled span,#wpacu-assets-expand-all:disabled span{opacity:.6}#wpacu-assets-contract-all:disabled img,#wpacu-assets-expand-all:disabled img{display:inline-block;vertical-align:middle;padding-bottom:3px}.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{border:1px solid #eceeef}.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-hover tbody tr:hover{background-color:rgba(0,0,0,.075)}.wpacu_table_wrap .table-active{background-color:rgba(0,0,0,.075)}.wpacu_table_wrap .table-active>td,.wpacu_table_wrap .table-active>th{background-color:rgba(0,0,0,.075)}.wpacu_table_wrap .table-hover .table-active:hover{background-color:rgba(0,0,0,.075)}.wpacu_table_wrap .table-hover .table-active:hover>td,.wpacu_table_wrap .table-hover .table-active:hover>th{background-color:rgba(0,0,0,.075)}.wpacu_table_wrap .table-success{background-color:#dff0d8}.wpacu_table_wrap .table-success>td,.wpacu_table_wrap .table-success>th{background-color:#dff0d8}.wpacu_table_wrap .table-hover .table-success:hover{background-color:#d0e9c6}.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{background-color:#d9edf7}.wpacu_table_wrap .table-info>td,.wpacu_table_wrap .table-info>th{background-color:#d9edf7}.wpacu_table_wrap .table-hover .table-info:hover{background-color:#c4e3f3}.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{background-color:#fcf8e3}.wpacu_table_wrap .table-warning>td,.wpacu_table_wrap .table-warning>th{background-color:#fcf8e3}.wpacu_table_wrap .table-hover .table-warning:hover{background-color:#faf2cc}.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{background-color:#f2dede}.wpacu_table_wrap .table-danger>td,.wpacu_table_wrap .table-danger>th{background-color:#f2dede}.wpacu_table_wrap .table-hover .table-danger:hover{background-color:#ebcccc}.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{border:0}.wpacu_table_wrap .table-responsive{display:block;width:100%;overflow-x:auto;-ms-overflow-style:-ms-autohiding-scrollbar}.wpacu_table_wrap .table-responsive.table-bordered{border:0}body.wp-admin[class*=asset-cleanup] .wpacu-overview-wrap .wpacu-overview-list-table tr:not(.wpacu-top):hover td{border-top:1px solid #ccd0d4;border-bottom:1px solid #ccd0d4}body.wp-admin[class*=asset-cleanup] .wpacu-overview-wrap .wpacu-overview-list-table tr:not(.wpacu-top):hover td:first-of-type{border-left:1px solid #ccd0d4}body.wp-admin[class*=asset-cleanup] .wpacu-overview-wrap .wpacu-overview-list-table tr:not(.wpacu-top):hover td:last-of-type{border-right:1px solid #ccd0d4}body.wp-admin[class*=asset-cleanup] .wpacu-overview-wrap .wpacu-overview-list-table tr td{font-size:14px;border-top:1px solid transparent;border-bottom:1px solid transparent}body.wp-admin[class*=asset-cleanup] .wpacu-overview-wrap .wpacu-overview-list-table tr td:first-of-type{border-left:1px solid transparent}body.wp-admin[class*=asset-cleanup] .wpacu-overview-wrap .wpacu-overview-list-table tr td:last-of-type{border-right:1px solid transparent}body.wp-admin[class*=asset-cleanup] table.wp-list-table:not(.wpacu-overview-list-table).wpacu-list-table tr:not(.wpacu_selected):hover{-moz-box-shadow:inset 0 0 2px 1px #b3b3b3;-webkit-box-shadow:inset 0 0 2px 1px #b3b3b3;box-shadow:inset 0 0 2px 1px #b3b3b3}body.wp-admin[class*=asset-cleanup] table.wp-list-table:not(.wpacu-overview-list-table) tr:not(:first-of-type):not(.wpacu_selected):hover{-moz-box-shadow:inset 0 0 2px 1px #b3b3b3;-webkit-box-shadow:inset 0 0 2px 1px #b3b3b3;box-shadow:inset 0 0 2px 1px #b3b3b3}.wp-list-table .wpacu_restore_position_row.wpacu_selected{background:#e7e7e7!important}.wp-list-table .wpacu_remove_global_attr_row.wpacu_selected{background:#e7e7e7!important}ul.hire-reasons{margin-bottom:20px}ul.hire-reasons li{font-size:14px;line-height:22px;margin-bottom:12px}ul.hire-reasons li .dashicons{font-size:23px;line-height:23px}ul.hire-reasons li .dashicons.dashicons-yes{color:green}ol.getting-started li{font-size:14px;line-height:22px;margin-bottom:8px}.wpacu-get-help-wrap p{font-size:14px}.wpacu-get-help-wrap .help-content-wrap{margin:20px 0 25px;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-moz-flex;display:-webkit-flex;display:flex;width:100%}@media only screen and (min-width:768px){.wpacu-get-help-wrap .help-content-wrap{-webkit-box-align:start;-ms-flex-align:start;-ms-grid-row-align:flex-start;align-items:flex-start}}@media only screen and (max-width:767px){.wpacu-get-help-wrap .help-content-wrap{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}}.wpacu-get-help-wrap .help-content-wrap .help-content{padding:15px;background:#fff;border:1px solid #e0e0e0;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;box-shadow:2px 3px 8px 0 #231f2038;flex:1 1 50%;margin-bottom:10px}.wpacu-get-help-wrap .help-content-wrap .help-content .content-title{margin:5px 0 15px;line-height:24px}.wpacu-get-help-wrap .help-content-wrap .help-content .cols-wrap{width:100%;margin:0 auto;display:table}.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area{margin:5px 0 0 0;position:relative}.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area.col-left{float:left;width:48%}.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area.col-right{float:right;width:48%}.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area.activate-plugin img{max-width:320px}.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area img{width:99%;margin:8px 0;border:1px solid #cdcdcd;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}@media only screen and (min-width:768px){.wpacu-get-help-wrap .help-content-wrap .help-content{margin-right:24px}}.wpacu-get-help-wrap .help-content-wrap .help-content.upgrade-help{order:2}@media only screen and (min-width:768px){.wpacu-get-help-wrap .help-content-wrap .help-content.upgrade-help{margin-right:0}}.wpacu-get-help-wrap .help-content-wrap .help-content.tech-help{order:1}@media only screen and (max-width:767px){.wpacu-get-help-wrap .help-content-wrap .help-content.tech-help{margin-bottom:30px}}.wpacu-get-help-wrap .help-content-wrap .help-content ul{list-style:none;padding-left:0}.wpacu-get-help-wrap .help-content-wrap .help-content ul li{font-size:14px;line-height:22px;margin-bottom:15px}.wpacu-get-help-wrap .help-content-wrap .help-content ul li:last-child{margin-bottom:0}.wpacu-get-help-wrap .help-content-wrap .help-content p:last-child{margin-bottom:0}select#wpacu-reset-drop-down{max-width:100%}#wpacu-license-data-remove-area{display:none;margin:14px 0 12px}#wpacu-license-data-remove-area.wpacu-visible{display:block}#wpacu-cache-assets-remove-area{display:none;margin:12px 0 25px}#wpacu-cache-assets-remove-area.wpacu-visible{display:block}#wpacu-cached-assets-removed-msg,span#wpacu-license-data-removed-msg{display:block;padding-left:26px}#wpacu-warning-read{display:none;margin:10px 0}#wpacu-warning-read span.dashicons-warning,#wpacu-warning-read span.dashicons-wordpress-alt{color:#c00}#wpacu-warning-read.wpacu-visible{display:block}#wpacu-reset-submit-area{margin:10px 0;clear:both}#wpacu-reset-submit-btn{margin:10px 0 0}.wpacu-tools-area{margin:10px 20px 0 2px}.wpacu-tools-area .wpacu-tools-container{background:#fff;padding:15px;border:1px solid #cdcdcd;width:96%}.wpacu-tools-area .wpacu-tools-container form>div:first-child{margin:0 0 10px}.wpacu-tools-area .wpacu-tools-container form .wpacu-warning{display:none;box-sizing:border-box;margin-top:10px}.wpacu-tools-area .wpacu-tools-container form .wpacu-warning p{margin:0 0 10px;line-height:22px}.wpacu-tools-area .wpacu-tools-container form .wpacu-warning p:only-child{margin:0}.wpacu-tools-area .wpacu-tools-container form .wpacu-warning ul{font-size:13px;list-style-type:disc;padding-left:30px}.wpacu-tools-area .wpacu-tools-container form .wpacu-warning.wpacu-visible{display:block}.wpacu-tools-area .wpacu-export-import-area{padding:10px}.wpacu-tools-area .wpacu-export-import-area form>p:first-of-type{margin-top:0}.wpacu-tools-area .wpacu-export-import-area form>p:last-of-type{margin-bottom:0}.wpacu-tools-area .wpacu-export-import-area:hover{background:rgba(40,44,42,.05);box-shadow:inset 0 0 10px rgba(160,165,170,.15)}.wpacu-tools-area .wpacu-export-import-area+hr{display:block;height:1px;border:0;border-top:1px solid #cdcdcd;margin:10px 0;padding:0}#wpacu-import-form button.wpacu-importing img.wpacu-spinner{display:inline-block}#wpacu-import-form button img.wpacu-spinner{display:none;margin:0 0 0 5px;height:16px;width:16px;vertical-align:middle}@media only screen and (max-width:767px){.wpacu-about-wrap h1{margin:20px}}.wpacu-about-wrap .wpacu-about-text img{width:auto;height:150px;position:absolute;top:20px;right:-20px}@media only screen and (max-width:767px){.wpacu-about-wrap .wpacu-about-text img{display:none}}@media only screen and (max-width:767px){.wpacu-about-wrap .wpacu-about-text{margin:20px}}.wpacu-about-wrap .about-wrap-content .area-title{font-size:19px;line-height:19px;margin-bottom:0}.wpacu-about-wrap hr{margin:10px 0}.wpacu-lite-vs-pro-wrap ul{display:flex;top:0;z-index:10;padding-bottom:14px}.wpacu-lite-vs-pro-wrap li{list-style:none;flex:1}.wpacu-lite-vs-pro-wrap li:last-child{border-right:1px solid #ddd}.wpacu-lite-vs-pro-wrap button{width:100%;border:1px solid #ddd;border-right:0;border-top:0;padding:10px;background:#fff;font-size:14px;font-weight:700;height:60px;color:#999}.wpacu-lite-vs-pro-wrap li.active button{background:#f5f5f5;color:#000}.wpacu-lite-vs-pro-wrap table{border-collapse:collapse;table-layout:fixed;width:100%}.wpacu-lite-vs-pro-wrap th{background:inherit}.wpacu-lite-vs-pro-wrap tr.first{background:inherit;font-size:18px}.wpacu-lite-vs-pro-wrap tr.first .bg-lite{border-top:4px solid #6d6e70;background:#fff;color:#6d6e70}.wpacu-lite-vs-pro-wrap tr.first .bg-pro{border-top:4px solid green;background:#fff;color:green}.wpacu-lite-vs-pro-wrap tr:not(.first){background:#fff}.wpacu-lite-vs-pro-wrap tr:not(:last-child):hover{background:#f8f8f8}.wpacu-lite-vs-pro-wrap td,.wpacu-lite-vs-pro-wrap th{height:53px;line-height:22px}@media only screen and (max-width:767px){.wpacu-lite-vs-pro-wrap td,.wpacu-lite-vs-pro-wrap th{font-size:14px}}.wpacu-lite-vs-pro-wrap td,.wpacu-lite-vs-pro-wrap th{border:1px solid #ddd;padding:10px 16px 10px 16px;empty-cells:show}.wpacu-lite-vs-pro-wrap td,.wpacu-lite-vs-pro-wrap th{text-align:left}.wpacu-lite-vs-pro-wrap td+td,.wpacu-lite-vs-pro-wrap th+th{text-align:center;display:none}.wpacu-lite-vs-pro-wrap td.default{display:table-cell}.wpacu-lite-vs-pro-wrap .txt-l{font-size:28px;font-weight:700}@media only screen and (max-width:767px){.wpacu-lite-vs-pro-wrap .txt-l{font-size:20px}}.wpacu-lite-vs-pro-wrap .txt-top{position:relative;top:-9px;left:-2px}.wpacu-lite-vs-pro-wrap svg{width:18px;height:18px}.wpacu-lite-vs-pro-wrap svg path{fill:green}.wpacu-lite-vs-pro-wrap .tick{color:#2ca01c}.wpacu-lite-vs-pro-wrap .tick img{fill:#2ca01c}@media only screen and (max-width:767px){.wpacu-lite-vs-pro-wrap .tick{font-size:15px}}.wpacu-lite-vs-pro-wrap .na{font-size:18px;opacity:.3}@media only screen and (max-width:767px){.wpacu-lite-vs-pro-wrap .na{font-size:15px}}.wpacu-lite-vs-pro-wrap .hide{border:0;background:0 0}.wpacu-lite-vs-pro-wrap td,.wpacu-lite-vs-pro-wrap th{display:table-cell!important}.wpacu-lite-vs-pro-wrap td,.wpacu-lite-vs-pro-wrap th{width:auto}.wpacu-lite-vs-pro-wrap td+td,.wpacu-lite-vs-pro-wrap th+th{width:130px}@media only screen and (max-width:767px){.wpacu-lite-vs-pro-wrap td+td,.wpacu-lite-vs-pro-wrap th+th{width:42px}}@media only screen and (min-width:768px){.wpacu-lite-vs-pro-wrap td .button{font-size:16px!important}}@media only screen and (max-width:767px){.wpacu-lite-vs-pro-wrap td .button{font-size:14px!important;padding:0 20px!important}.wpacu-lite-vs-pro-wrap td .button.button-primary{margin-top:6px;margin-bottom:14px}}@media only screen and (min-width:768px){.wpacu-lite-vs-pro-wrap{margin-bottom:40px;clear:both}}.wpacu-video-areas>div{padding:20px;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.wpacu-video-areas>div:nth-child(odd){background:#fff}.wpacu-video-areas>div:nth-child(even){background:inherit}@media only screen and (min-width:1200px){.wpacu-video-areas .wpacu-video-area-wrapper{margin:0 0 15px;display:flex}}@media only screen and (min-width:992px) and (max-width:1199px){.wpacu-video-areas .wpacu-video-area-wrapper{margin:0 0 40px}}.wpacu-video-areas .wpacu-video-area-wrapper ol{font-size:14px}.wpacu-video-areas .wpacu-video-area-wrapper ul{font-size:14px;list-style:disc;margin-left:22px}@media only screen and (min-width:1200px){.wpacu-video-areas .wpacu-video-area-wrapper .wpacu-col-right{padding:0 20px 0 25px}}@media only screen and (min-width:1200px){.wpacu-video-areas .wpacu-video-area-wrapper .wpacu-col-right p:first-child{margin-top:0}}@media only screen and (min-width:1200px){.wpacu-video-areas .wpacu-video-area-wrapper .wpacu-col-right p:last-child{margin-bottom:0}}@media only screen and (max-width:1199px){.wpacu-video-areas .wpacu-video-area-wrapper .wpacu-video-wrapper{position:relative;padding-bottom:56.25%;padding-top:30px;height:0;overflow:hidden}}.wpacu-video-areas .wpacu-video-area-wrapper .wpacu-video-wrapper iframe{width:560px;height:315px}@media only screen and (max-width:1199px){.wpacu-video-areas .wpacu-video-area-wrapper .wpacu-video-wrapper iframe{position:absolute;top:0;left:0;width:100%;height:100%}}#wpassetcleanup_asset_list.postbox h2{padding-left:52px!important;position:relative}#wpassetcleanup_asset_list.postbox h2:before{content:"";position:absolute;background-image:url(images/wpacu-logo-transparent-bg-v1.png);background-size:cover;top:6px;left:13px;width:33px;height:26px;opacity:.8;-webkit-filter:grayscale(100%);filter:grayscale(100%)}body.wp-admin .wpacu-modal{display:none;position:fixed;z-index:1000000;padding-top:15%;left:0;top:0;width:100%;height:100%;overflow:auto;background-color:#000;background-color:rgba(0,0,0,.4)}body.wp-admin .wpacu-modal pre{white-space:normal}body.wp-admin .wpacu-modal-content{background-color:#fefefe;margin:auto;padding:20px;border:1px solid #888;width:80%;max-width:600px;border-radius:10px}body.wp-admin .wpacu-modal-content pre{white-space:normal}body.wp-admin .wpacu-close{color:#aaa;float:right;font-size:28px;font-weight:700}body.wp-admin .wpacu-close:focus,body.wp-admin .wpacu-close:hover{color:#000;text-decoration:none;cursor:pointer}.wpacu-bulk-changes-tabs{display:table;position:relative;overflow:hidden;margin:0;width:100%}.wpacu-bulk-changes-tabs li{border-top:1px solid rgba(40,44,42,.1);border-left:1px solid rgba(40,44,42,.1);border-bottom:1px solid rgba(40,44,42,.1);float:left;line-height:38px;padding:0;position:relative;margin-bottom:12px}.wpacu-bulk-changes-tabs li:last-child{border-right:1px solid rgba(40,44,42,.1)}.wpacu-bulk-changes-tabs a{position:relative;background:rgba(40,44,42,.05);color:#004567;font-size:14px;font-weight:500;display:block;letter-spacing:0;outline:0;padding:6px 20px;text-decoration:none;border-top:3px solid transparent}.wpacu-bulk-changes-tabs a:hover{background:#f1f1f1;border-top:3px solid transparent}.wpacu-bulk-changes-tabs .current a{background:#fff;border-top:3px solid #004567}.wpacu-bulk-changes-tabs .current a:hover{background:#fff}.wpacu-bulk-changes-tabs .current a:after,.wpacu-bulk-changes-tabs .current a:before{top:100%;left:50%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.wpacu-bulk-changes-tabs .current a:after{border-color:rgba(136,183,213,0);border-top-color:#fff;border-width:12px;margin-left:-12px}.wpacu-bulk-changes-tabs .current a:before{border-color:rgba(194,225,245,0);border-top-color:rgba(40,44,42,.1);border-width:13px;margin-left:-13px}img.wpacu-emoji{display:inline!important;border:none!important;height:1em!important;width:1em!important;margin:0 .07em!important;vertical-align:-.1em!important;background:0 0!important;padding:0!important;box-shadow:none!important}#wpacu-plugins-load-manager-wrap table td{border-bottom:1px solid #e7e7e7}#wpacu-plugins-load-manager-wrap table td.wpacu_plugin_icon{padding:14px 10px}#wpacu-plugins-load-manager-wrap table td.wpacu_plugin_details{vertical-align:middle;padding:14px 20px 14px 8px;min-width:360px}#wpacu-plugins-load-manager-wrap table td.wpacu_plugin_details .wpacu_plugin_title{font-size:1.2em;font-weight:600}#wpacu-plugins-load-manager-wrap .wpacu_plugin_unload_rules_options_wrap .wpacu_plugin_rules_wrap{flex-grow:1;margin:0 16px 0 0!important;padding:12px 10px 6px 0!important}#wpacu-plugins-load-manager-wrap .wpacu_plugin_unload_rules_options_wrap .wpacu_plugin_rules_wrap fieldset{border:1px solid #cdcdcd;padding:10px;background:inherit;border-radius:5px}#wpacu-plugins-load-manager-wrap .wpacu_plugin_unload_rules_options_wrap .wpacu_plugin_rules_wrap fieldset legend{width:auto;font-weight:400;font-size:inherit;padding:8px 11px;margin:0;background:inherit;border:1px solid #cdcdcd;border-radius:5px}#wpacu-plugins-load-manager-wrap .wpacu_plugin_unload_rules_options_wrap .wpacu_plugin_rules_wrap ul.wpacu_plugin_rules{margin:0;vertical-align:middle}#wpacu-plugins-load-manager-wrap .wpacu_plugin_unload_rules_options_wrap .wpacu_plugin_rules_wrap ul.wpacu_plugin_rules label{vertical-align:top}#wpacu-plugins-load-manager-wrap .wpacu_plugin_unload_rules_options_wrap .wpacu_plugin_rules_wrap ul.wpacu_plugin_rules label.wpacu_plugin_unload_rule_input_checked{color:#c00}#wpacu-plugins-load-manager-wrap .wpacu_plugin_unload_rules_options_wrap .wpacu_plugin_rules_wrap ul.wpacu_plugin_rules .wpacu_plugin_unload_logged_in:checked+span{color:#c00}#wpacu-plugins-load-manager-wrap .wpacu_plugin_unload_rules_options_wrap .wpacu_plugin_rules_wrap ul.wpacu_plugin_rules>li{display:inline-block;float:left;margin:1px 25px 1px 0;line-height:30px}#wpacu-plugins-load-manager-wrap .wpacu_plugin_unload_rules_options_wrap .wpacu_plugin_rules_wrap ul.wpacu_plugin_rules>li:last-of-type{margin:1px 0}#wpacu-plugins-load-manager-wrap .wpacu_plugin_load_exception_options_wrap{padding-top:5px;width:auto}#wpacu-plugins-load-manager-wrap .wpacu_plugin_load_exception_options_wrap .wpacu_plugin_rules_wrap{margin:0 16px 0 0!important;padding:6px 10px 6px 0!important}#wpacu-plugins-load-manager-wrap .wpacu_plugin_load_exception_options_wrap .wpacu_plugin_rules_wrap fieldset{border:1px solid #cdcdcd;padding:10px;background:inherit;border-radius:5px}#wpacu-plugins-load-manager-wrap .wpacu_plugin_load_exception_options_wrap .wpacu_plugin_rules_wrap fieldset legend{width:auto;font-weight:400;font-size:inherit;padding:8px 11px;margin:0;background:inherit;border:1px solid #cdcdcd;border-radius:5px}#wpacu-plugins-load-manager-wrap .wpacu_plugin_load_exception_options_wrap .wpacu_plugin_rules_wrap ul.wpacu_plugin_rules{margin:0;vertical-align:middle}#wpacu-plugins-load-manager-wrap .wpacu_plugin_load_exception_options_wrap .wpacu_plugin_rules_wrap ul.wpacu_plugin_rules label{vertical-align:top}#wpacu-plugins-load-manager-wrap .wpacu_plugin_load_exception_options_wrap .wpacu_plugin_rules_wrap ul.wpacu_plugin_rules.wpacu_exception_options_area>li{display:inline-block;float:left;margin:1px 25px 1px 0;line-height:20px}#wpacu-plugins-load-manager-wrap .wpacu_plugin_load_exception_options_wrap .wpacu_plugin_rules_wrap ul.wpacu_plugin_rules.wpacu_exception_options_area>li:last-of-type{margin:1px 0}#wpacu-plugins-load-manager-wrap .wpacu_plugin_load_exception_options_wrap .wpacu_plugin_rules_wrap ul.wpacu_plugin_rules .wpacu_plugin_load_rule_input:checked+span{color:green}.wpacu-list-table.plugins{width:98%;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}#wpacu-plugins-load-manager-wrap .help_link{text-decoration:none;color:inherit;vertical-align:middle}#wpacu-plugins-load-manager-wrap .wpacu_plugin_details .wpacu_plugin_path{font-style:italic;color:grey;font-size:12px;vertical-align:bottom}#wpacu-plugins-load-manager-wrap .wpacu_plugin_icon>img{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}#wpacu-plugins-load-manager-wrap .wpacu_plugin_icon>div{background:#efefef;border:#cdcdcd;border-radius:3px;width:40px;height:40px;vertical-align:middle;position:relative;text-align:center}#wpacu-plugins-load-manager-wrap .wpacu_plugin_icon>div>span{font-size:30px;color:#b3b3b3;top:50%;vertical-align:middle;left:50%;transform:translate(-50%,-50%);width:30px;height:30px;position:absolute}#wpacu-plugins-load-manager-wrap .wpacu_plugin_unload_regex_input_wrap{display:block}#wpacu-plugins-load-manager-wrap .wpacu_plugin_unload_regex_input_wrap textarea{margin-top:6px;min-width:400px;min-height:40px}#wpacu-plugins-load-manager-wrap .wpacu_exception_options_area textarea{margin-top:6px;min-width:400px;min-height:40px;width:100%}#wpacu-plugins-load-manager-wrap textarea{line-height:normal;min-height:20px;min-width:300px;display:inline-block;padding:2px 4px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}#wpacu-plugins-load-manager-wrap textarea:focus{width:100%}#wpacu-plugins-load-manager-wrap textarea.wpacu_disabled{background:#fbfafa!important;color:inherit}
|
1 |
+
@charset "UTF-8";#wpacu-top-area{margin:15px 0;padding:0 10px}#wpacu-logo-wrap{width:auto;display:inline-block;position:relative}#wpacu-logo-wrap a{display:block}#wpacu-logo-wrap img{width:352px;height:79px}#wpacu-logo-wrap .wpacu-version-sign{position:absolute;height:auto;font-family:FiraSans-Medium,proxima-nova-1,Montserrat,Helvetica,sans-serif;font-size:13px;font-weight:600;letter-spacing:1px;padding:5px 11px;border-radius:15px;right:-60px;top:30px;width:auto;display:inline-block;text-align:center}#wpacu-logo-wrap .wpacu-version-sign>div{position:relative}#wpacu-logo-wrap .wpacu-version-sign>div .wpacu-version-text{position:absolute;font-weight:lighter;font-size:11px;bottom:-25px;color:#74777b}#wpacu-logo-wrap .wpacu-version-sign.wpacu-lite{color:#74777b;background:rgba(40,44,42,.05)}#wpacu-logo-wrap .wpacu-version-sign.wpacu-lite>div .wpacu-version-text{left:-7px}#wpacu-logo-wrap .wpacu-version-sign.wpacu-pro{color:#004567;background-color:rgba(40,44,42,.05)}#wpacu-logo-wrap .wpacu-version-sign.wpacu-pro>div .wpacu-version-text{left:-6px}#wpacu-quick-actions{color:#74777b;float:right;width:auto;margin-right:30px;background:rgba(40,44,42,.05);border-radius:10px;padding:6px 12px}#wpacu-quick-actions .wpacu-actions-title{font-weight:200;letter-spacing:.5px}#wpacu-quick-actions a{color:#004567;text-decoration:none}#wpacu-quick-actions a:hover{color:#0073aa}.wpacu-tabs{position:relative;overflow:hidden;margin:0 auto 20px;width:100%;font-weight:300;font-size:20px}.wpacu-tabs nav{text-align:center}.wpacu-tabs nav ul{position:relative;display:-ms-flexbox;display:-webkit-flex;display:-moz-flex;display:-ms-flex;display:flex;padding:0;list-style:none;-ms-box-orient:horizontal;-ms-box-pack:center;-webkit-flex-flow:row wrap;-moz-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-justify-content:center;-moz-justify-content:center;-ms-justify-content:center;justify-content:center}.wpacu-tabs nav ul li{position:relative;z-index:1;display:block;margin:0;text-align:center;-webkit-flex:1;-moz-flex:1;-ms-flex:1;flex:1}.wpacu-tabs nav ul li span.extra-info{position:absolute;font-size:12px;left:-50%;right:50%;bottom:12px;-webkit-transform:translate(50%,50%);transform:translate(50%,50%);white-space:nowrap}.wpacu-tabs nav ul li span.extra-info.has-bulk-unloads{right:48%}.wpacu-tabs nav ul li span.extra-info.no-bulk-unloads{left:0;right:2px;bottom:2px;-webkit-transform:inherit;transform:inherit}.wpacu-tabs nav ul li span.extra-info .dashicons{font-size:16px;margin-right:-3px;margin-top:1px}.wpacu-tabs nav ul li span.extra-info.license-status.inactive{color:#c00}.wpacu-tabs nav ul li span.extra-info.license-status.active{color:green}.wpacu-tabs nav ul li span.extra-info.assets-unloaded-false{color:#004567}.wpacu-tabs nav ul li span.extra-info.assets-unloaded-true,.wpacu-tabs nav ul li span.extra-info.bulk-unloads-true{color:green}.wpacu-tabs nav a{position:relative;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:2.5}.wpacu-tabs nav a span{vertical-align:middle;font-size:14px}.wpacu-tabs nav li.wpacu-tab-current a{color:#74777b}.wpacu-tabs nav a:focus{outline:0}.wpacu-tabs .dashicons{font-size:20px}.no-js .wpacu-content-wrap section{display:block;padding-bottom:2em;border-bottom:1px solid rgba(255,255,255,.6)}.no-flexbox nav ul{display:block}.no-flexbox nav ul li{min-width:15%;display:inline-block}@media screen and (max-width:58em){.wpacu-tabs nav a.icon span{display:none}.wpacu-tabs nav a:before{margin-right:0}}.wpacu-tabs-style-underline nav{background:#fff}.wpacu-tabs-style-underline nav a{color:#74777b;font-size:18px;text-transform:uppercase;text-decoration:none;padding:.25em 0 .5em;border-left:1px solid #e7ecea;-webkit-transition:color .2s;transition:color .2s}.wpacu-tabs-style-underline nav li:last-child a{border-right:1px solid #e7ecea}.wpacu-tabs-style-underline nav li a::after{position:absolute;bottom:0;left:0;width:100%;height:6px;background:#2cc185;content:"";-webkit-transition:-webkit-transform .3s;transition:transform .3s;-webkit-transform:translate3d(0,150%,0);transform:translate3d(0,150%,0)}.wpacu-tabs-style-underline nav li.wpacu-tab-current a::after{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.wpacu-tabs-style-underline nav a span{font-weight:700}.wpacu-tabs-style-topline{max-width:1800px;margin:20px auto 22px 0;width:98%;font-weight:300;text-decoration:none}.wpacu-tabs-style-topline nav li{border:1px solid rgba(40,44,42,.1)}.wpacu-tabs-style-topline nav li:not(:last-child){border-right:none}.wpacu-tabs-style-topline nav li.wpacu-tab-current{border-top-color:#008f9c;border-bottom:none}.wpacu-tabs-style-topline nav a{padding:20px 18px;background:rgba(40,44,42,.05);color:#74777b;line-height:1;-webkit-transition:color .2s;transition:color .2s;text-decoration:none}.wpacu-tabs-style-topline nav a:focus,.wpacu-tabs-style-topline nav a:hover{background:0 0;color:#008f9c}.wpacu-tabs-style-topline nav li.wpacu-tab-current a{background:0 0;box-shadow:inset 0 3px 0 #008f9c;color:#008f9c}.wpacu-tabs-style-topline nav li.wpacu-tab-current a span:not(.dashicons){font-weight:600}.wpacu-tabs-style-topline nav a span{text-transform:uppercase;font-weight:400}.wpacu_hide{display:none!important}.wpacu-script-attributes-area{display:block;margin-bottom:12px}.wpacu-script-attributes-area>div:first-of-type{display:inline-block;float:left;margin-right:15px;line-height:30px;vertical-align:middle}.wpacu-script-attributes-area ul.wpacu-script-attributes-settings{display:inline-block;float:left;padding:5px 7px!important}.wpacu-script-attributes-area ul.wpacu-script-attributes-settings.wpacu-first{margin:0 15px 0 0!important}.wpacu-script-attributes-area ul.wpacu-script-attributes-settings label{margin:0!important}.wpacu-script-attributes-area ul.wpacu-script-attributes-settings li{display:inline-block;margin:0 16px 0 0!important}.wpacu-script-attributes-area ul.wpacu-script-attributes-settings li:first-child{margin:0 10px 0 0!important}.wpacu-script-attributes-area ul.wpacu-script-attributes-settings li:last-child{margin:0 2px 0 0!important}.wpacu-script-attributes-area .wpacu-script-attributes-settings{background:#fff!important;border:1px solid #eee!important;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;padding:5px 10px!important;list-style:none;display:inline-block;margin:0}.wpacu-script-attributes-area .wpacu-script-attributes-settings input[type=radio]{width:auto;padding:0;margin:0 5px 0 0}.wpacu-script-attributes-area .wpacu-script-attributes-settings:hover{background:#f2faf2}tr.wpacu_location_changed>td{border-left:#004567 4px solid}tr.wpacu_not_load td,tr.wpacu_not_load th{background:#ffe1e1!important}tr.wpacu_not_load td .wpacu-assets-inline-code-wrap,tr.wpacu_not_load td .wpacu-only-when-kept-loaded,tr.wpacu_not_load th .wpacu-assets-inline-code-wrap,tr.wpacu_not_load th .wpacu-only-when-kept-loaded{opacity:.45}.dashicons-wpacu{width:17px;height:17px;margin:2px 0 0 0;font-size:16px;text-decoration:none;color:inherit!important}.wpacu_widefat .check-column.wpacu_check{padding:10px}body[class*=wpassetcleanup] #footer-left{border-left:2px solid green;padding-left:10px}#wpassetcleanup_asset_list small{width:auto;float:none;display:inline}#wpacu_meta_box_content{width:99%}#wpacu_meta_box_content #wpacu-fetch-list-step-1-wrap.wpacu-completed{color:green}#wpacu_meta_box_content div.select select{max-width:inherit}#wpacu_meta_box_content .emoji{font-size:18px}#wpacu_meta_box_content h3{margin-left:0;padding-left:0}#wpacu_meta_box_content div.wpacu_note{padding:10px;background-color:#f5f5f5}#wpacu_meta_box_content .dashicons.dashicons-warning,#wpacu_meta_box_content .dashicons.dashicons-wordpress-alt{color:#c00}#wpacu_meta_box_content div.wpacu_warning{border:1px solid #c00}#wpacu_meta_box_content ul.wpacu_asset_options{margin:0;padding:0}#wpacu_meta_box_content ul.wpacu_asset_options li{list-style:none;display:inline-block}#wpacu_meta_box_content ul.wpacu_asset_options label{font-weight:400;margin-right:5px;margin-top:5px;margin-bottom:5px}.wpacu-updated-frontend{font-weight:400;background-color:#fff;border-left:4px solid #46b450;border-top:1px solid #46b450;border-right:1px solid #46b450;border-bottom:1px solid #46b450;padding:9px 14px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.wpacu-updated-frontend span.dashicons-yes{color:#46b450;font-size:26px}#wpacu-update-front-settings-area{margin:10px 0;display:inline-block;position:relative}@media only screen and (min-width:768px){#wpacu-update-front-settings-area{position:-webkit-sticky;position:sticky;bottom:0;display:block;padding:15px 0;z-index:1000000;border-top:1px solid #cdcdcd;background:#fff}}#wpacu-updating-front-settings{display:none;position:absolute;top:20px;left:142px}.wpacu_load_regex_area_wrap label.wpacu_bold span,.wpacu_manage_via_tax_area_wrap label.wpacu_bold span,.wpacu_unload_regex_area_wrap label.wpacu_bold span{font-weight:600!important}.wpacu_load_regex_area_wrap label.wpacu_unload_checked span,.wpacu_manage_via_tax_area_wrap label.wpacu_unload_checked span,.wpacu_unload_regex_area_wrap label.wpacu_unload_checked span{color:#d54e21}.wpacu_load_regex_area_wrap .wpacu_handle_unload_regex_input_wrap,.wpacu_manage_via_tax_area_wrap .wpacu_handle_unload_regex_input_wrap,.wpacu_unload_regex_area_wrap .wpacu_handle_unload_regex_input_wrap{margin:4px 0 0}.wpacu_load_regex_area_wrap .wpacu_handle_unload_regex_input_wrap input[type=text],.wpacu_manage_via_tax_area_wrap .wpacu_handle_unload_regex_input_wrap input[type=text],.wpacu_unload_regex_area_wrap .wpacu_handle_unload_regex_input_wrap input[type=text]{line-height:normal;min-height:20px;min-width:300px;max-width:400px;display:inline-block;padding:4px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.wpacu_load_regex_area_wrap .wpacu_handle_unload_regex_input_wrap input[type=text].wpacu_disabled,.wpacu_manage_via_tax_area_wrap .wpacu_handle_unload_regex_input_wrap input[type=text].wpacu_disabled,.wpacu_unload_regex_area_wrap .wpacu_handle_unload_regex_input_wrap input[type=text].wpacu_disabled{background:#fbfafa!important;color:inherit}.wpacu_is_global_unloaded .wpacu_exception_options_area_wrap{display:inline-block}.wpacu_is_global_unloaded .wpacu_exception_options_area_wrap .wpacu_area_one,.wpacu_is_global_unloaded .wpacu_exception_options_area_wrap .wpacu_area_two{display:block}.wpacu_is_global_unloaded .wpacu_exception_options_area_wrap .wpacu_load_regex_input_wrap{display:block}.wpacu_exception_options_area_load_exception{display:table;float:none;clear:both;border:none;padding:0!important;background:0 0}.wpacu_exception_options_area_wrap{display:table;background:0 0!important}.wpacu_exception_options_area_wrap fieldset{border:1px solid #cdcdcd;padding:10px;background:#fff;border-radius:5px}.wpacu_exception_options_area_wrap fieldset legend{width:auto;font-weight:400;font-size:inherit;padding:8px 11px;margin:0;background:#fff;border:1px solid #cdcdcd;border-radius:5px}.wpacu_exception_options_area_wrap label.wpacu_bold span{font-weight:600!important}.wpacu_exception_options_area_wrap textarea{line-height:normal;min-height:20px;min-width:300px;max-width:400px;display:inline-block;padding:2px 4px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.wpacu_exception_options_area_wrap textarea:focus{width:100%}.wpacu_exception_options_area_wrap textarea.wpacu_disabled{background:#fbfafa!important;color:inherit}.wpacu_exception_options_area_wrap p:first-of-type{margin-top:0}.wpacu_exception_options_area_wrap .wpacu_area_one{display:table-cell;vertical-align:top;padding-right:10px}.wpacu_exception_options_area_wrap .wpacu_area_two{display:table-cell}@media only screen and (max-width:1199px){.wpacu_exception_options_area_wrap{display:block}.wpacu_exception_options_area_wrap .wpacu_area_one,.wpacu_exception_options_area_wrap .wpacu_area_two{display:block}}.wpacu_manage_via_tax_dd+.chosen-container .chosen-results>li.group-option{width:100%;display:block}#wpacu_meta_box_content .wpacu_widefat{width:100%}#wpacu_meta_box_content .wpacu-assets-collapsible-content{padding:0 10px!important}#wpacu_meta_box_content ul.wpacu_asset_options{vertical-align:middle}#wpacu_meta_box_content ul.wpacu_asset_options.wpacu_exception_options_area>li{display:inline-block;float:left;margin:1px 25px 1px 0;line-height:20px}#wpacu_meta_box_content ul.wpacu_asset_options.wpacu_exception_options_area>li:last-of-type{margin:1px 0}#wpacu_meta_box_content ul.wpacu_asset_options.wpacu_exception_options_area>li input[type=text]{margin-left:5px;border:1px solid #e7e7e7;background:#fff}body.wp-admin #wpacu_wrap_assets code{display:inline-block!important}body:not(.wp-admin) #wpacu_wrap_assets code{display:block!important}#wpacu_wrap_assets{color:#000!important;text-align:left!important;clear:both!important;width:90%!important;padding:20px!important;margin:30px 0 0 15px!important;border:1px solid #cdcdcd;z-index:10000!important;position:relative!important;background-color:#fff!important}#wpacu_wrap_assets div.wpacu_warning{border:1px solid #c00;padding:5px 10px}#wpacu_wrap_assets small{display:inline!important;margin:0!important;letter-spacing:normal!important}#wpacu_wrap_assets input[type=checkbox]{width:auto!important;margin-right:4px!important}#wpacu_wrap_assets img:not(.wpacu-ajax-loader){display:inline-block!important}#wpacu_wrap_assets p{line-height:22px!important;margin:10px 0!important;text-align:left!important;font-weight:400!important}#wpacu_wrap_assets p:first-child{margin:0 0 10px!important}#wpacu_wrap_assets h1{margin:0 0 20px!important;font-size:160%!important;text-align:left!important}#wpacu_wrap_assets h3{margin:20px 0;font-size:130%}#wpacu_wrap_assets ul.wpacu_asset_options.wpacu_exception_options_area>li{display:inline-block;float:left;margin:1px 25px 1px 0;line-height:30px}#wpacu_wrap_assets ul.wpacu_asset_options.wpacu_exception_options_area>li:last-of-type{margin:1px 0}.wpacu_verified{padding:10px;margin:0 0 10px 0!important;background-color:#f5f5f5;border-left:1px solid #ddd}.wpacu_verified span{color:#0073aa;font-weight:700}.wpacu_asset_row div.select{display:inline-block;width:auto}.wpacu_asset_row:first-child td{border-top:1px solid #cdcdcd}.wpacu_asset_row td{border-left:1px solid #cdcdcd;border-right:1px solid #cdcdcd;border-bottom:1px solid #cdcdcd}.wpacu_asset_row.wpacu_notice_row td{position:relative;padding:5px;border-bottom:1px solid transparent}.wpacu_asset_row.wpacu_notice_row td div.wpacu-warning{width:auto;margin:5px;font-style:italic}.wpacu_asset_row:not(.wpacu_notice_row) td{padding:18px!important;position:relative}.wpacu_asset_row:not(.wpacu_notice_row) td[data-wpacu-row-status=contracted]{padding:18px 18px 8px!important}.wpacu_asset_row:not(.wpacu_notice_row) td.wpacu_selected,.wpacu_asset_row:not(.wpacu_notice_row) td:hover{-moz-box-shadow:inset 0 0 12px #cdcdcd;-webkit-box-shadow:inset 0 0 12px #cdcdcd;box-shadow:inset 0 0 12px #cdcdcd}.wpacu_asset_row:not(.wpacu_notice_row) td p{padding:0!important;margin-bottom:8px!important;word-wrap:break-word!important;-ms-word-break:break-all;word-break:break-word}.wpacu_asset_row:not(.wpacu_notice_row) td label{width:auto!important;margin:0!important;cursor:pointer!important;display:inline-block!important;font-size:100%!important;font-weight:400!important}.wpacu_asset_row:not(.wpacu_notice_row) td label span:not(.dashicons){font-size:100%!important}.wpacu_asset_row:not(.wpacu_notice_row) td.wpacu_check{width:50px!important}.asset-table-extra-info td{padding:5px!important}body.wp-admin .wpacu_asset_row td.wpacu_check{width:25px!important}.wpacu_asset_row .dashicons-warning,.wpacu_asset_row .dashicons-wordpress-alt{color:red!important}.wpacu_asset_row .dashicons-wordpress-alt{font-size:17px;vertical-align:middle}label.wpacu_add_global{cursor:pointer!important}label.wpacu_input_load_checked{font-weight:700;color:#d54e21}label.wpacu_global_unload_exception{font-weight:700!important}tr.wpacu_bulk_change_row.wpacu_selected,tr.wpacu_global_rule_row.wpacu_selected,tr.wpacu_remove_preload_row.wpacu_selected{background:#e7e7e7}.wpacu-sub-page-tabs-wrap{min-width:320px;margin:0 auto 15px auto;border-bottom:1px solid #ccc}.wpacu-sub-page-tabs-wrap label.wpacu-sub-page-nav-label{display:inline-block;position:relative;border-top:1px solid rgba(40,44,42,.1);border-left:1px solid rgba(40,44,42,.1);border-right:1px solid rgba(40,44,42,.1)}.wpacu-sub-page-tabs-wrap label.wpacu-sub-page-nav-label a{display:block;margin:0;padding:15px 25px;font-weight:400;text-align:center;color:#74777b;border-left:1px solid transparent;border-right:1px solid transparent;border-top:2px solid transparent;border-bottom:0;text-decoration:none;background:rgba(40,44,42,.05)}.wpacu-sub-page-tabs-wrap label.wpacu-sub-page-nav-label a:hover{background:#f1f1f1;color:#008f9c}.wpacu-sub-page-tabs-wrap label.wpacu-sub-page-nav-label.wpacu-selected{color:#008f9c;border-left:1px solid #ccc;border-right:1px solid #ccc;border-top:2px solid #008f9c;border-bottom:1px transparent;margin-bottom:-2px}.wpacu-sub-page-tabs-wrap label.wpacu-sub-page-nav-label.wpacu-selected a{background:#f1f1f1;color:#008f9c;font-weight:600}.nav-tab-wrapper{border-bottom:1px solid #ccc;width:95%}.nav-tab-wrapper.nav-assets-manager .nav-tab{font-size:13px;font-weight:500;padding:6px 10px}.nav-tab-wrapper.nav-assets-manager .nav-tab.for-pro{padding:6px 8px 6px 3px}.nav-tab-wrapper.nav-critical-css-manager .nav-tab{font-size:13px;font-weight:500;padding:6px 20px 6px 10px;position:relative}.nav-tab-wrapper.nav-critical-css-manager .nav-tab span.wpacu-circle-status{position:absolute;right:5px;top:13px;height:11px;width:11px;border-radius:50%;display:inline-block;opacity:.75}.nav-tab-wrapper.nav-critical-css-manager .nav-tab span.wpacu-circle-status.wpacu-on{background:#52af00}.nav-tab-wrapper.nav-critical-css-manager .nav-tab span.wpacu-circle-status.wpacu-off{background:#ccc}.nav-tab-wrapper.nav-critical-css-manager .nav-tab.for-pro{padding:6px 8px 6px 3px}ul#wpacu_custom_pages_nav_links{list-style:none}ul#wpacu_custom_pages_nav_links li{position:relative;display:inline-block;margin:0 30px 0 0}ul#wpacu_custom_pages_nav_links li a{text-decoration:none}ul#wpacu_custom_pages_nav_links li a:hover{text-decoration:underline}ul#wpacu_custom_pages_nav_links li.wpacu-current{text-decoration:underline;font-weight:700}ul#wpacu_custom_pages_nav_links li span.wpacu-circle-status{position:absolute;right:-15px;top:5px;height:11px;width:11px;border-radius:50%;display:inline-block;opacity:.75}ul#wpacu_custom_pages_nav_links li span.wpacu-circle-status.wpacu-on{background:#52af00}ul#wpacu_custom_pages_nav_links li span.wpacu-circle-status.wpacu-off{background:#ccc}ul#wpacu_custom_pages_nav_links li:last-child:after,ul#wpacu_custom_pages_nav_links li:last-child:before{content:""}ul.wpacu_asset_options{margin:0 10px 0 0;padding:0}ul.wpacu_asset_options li{margin:0 10px 0 0;list-style:none;display:inline-block;line-height:normal}ul.wpacu_asset_options li.remove_rule label{font-weight:700}ul.wpacu_asset_options label{margin-right:20px;font-weight:400}ul.wpacu_asset_options label input{margin-right:4px}.wpacu_list_table{width:100%;font-weight:400}.wpacu_list_table div,.wpacu_list_table li,.wpacu_list_table p{font-weight:400}.wpacu_widefat{width:99%}.wpacu_striped>tbody>:nth-child(even),ul.wpacu_striped>:nth-child(even){background-color:#fff!important}.wpacu_striped>tbody>:nth-child(odd),ul.wpacu_striped>:nth-child(odd){background-color:#f9f9f9!important}.wpacu_update_btn{width:auto;-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;background-color:#007dc1!important;-moz-border-radius:3px!important;-webkit-border-radius:3px!important;border-radius:3px!important;border:1px solid #124d77!important;display:inline-block!important;cursor:pointer!important;color:#fff!important;font-size:15px!important;padding:10px 24px!important;text-decoration:none!important;text-shadow:0 1px 0 #154682!important;height:auto!important;line-height:normal!important}.wpacu_update_btn.wpacu_submitting,.wpacu_update_btn:hover{background:-webkit-gradient(linear,left top,left bottom,color-stop(.05,#0061a7),color-stop(1,#007dc1))!important;background:-moz-linear-gradient(top,#0061a7 5%,#007dc1 100%)!important;background:-webkit-linear-gradient(top,#0061a7 5%,#007dc1 100%)!important;background:-o-linear-gradient(top,#0061a7 5%,#007dc1 100%)!important;background:-ms-linear-gradient(top,#0061a7 5%,#007dc1 100%)!important;background:linear-gradient(to bottom,#0061a7 5%,#007dc1 100%)!important;background-color:#0061a7!important}.wpacu_update_btn.wpacu_submitting{cursor:default!important}.wpacu_update_btn:active{position:relative!important;top:1px!important}.wpacu-btns a{text-decoration:none}.wpacu-btns .btn{display:inline-block;font-weight:400;line-height:1.25;text-align:center;white-space:nowrap;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:1px solid transparent;padding:.5rem 1rem;font-size:1rem;-webkit-border-radius:.25rem;-moz-border-radius:.25rem;border-radius:.25rem;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.wpacu-btns .btn:focus,.wpacu-btns .btn:hover{text-decoration:none}.wpacu-btns .btn.focus,.wpacu-btns .btn:focus{outline:0;-webkit-box-shadow:0 0 0 2px rgba(2,117,216,.25);box-shadow:0 0 0 2px rgba(2,117,216,.25)}.wpacu-btns .btn.disabled,.wpacu-btns .btn:disabled{cursor:not-allowed;opacity:.65}.wpacu-btns .btn.active,.wpacu-btns .btn:active{background-image:none}.wpacu-btns a.btn.disabled,.wpacu-btns fieldset[disabled] a.btn{pointer-events:none}.wpacu-btns .btn-primary{color:#fff;background-color:#0275d8;border-color:#0275d8}.wpacu-btns .btn-primary:hover{color:#fff;background-color:#025aa5;border-color:#01549b}.wpacu-btns .btn-primary.focus,.wpacu-btns .btn-primary:focus{-webkit-box-shadow:0 0 0 2px rgba(2,117,216,.5);box-shadow:0 0 0 2px rgba(2,117,216,.5)}.wpacu-btns .btn-primary.disabled,.wpacu-btns .btn-primary:disabled{background-color:#0275d8;border-color:#0275d8}.wpacu-btns .btn-primary.active,.wpacu-btns .btn-primary:active,.wpacu-btns .show>.btn-primary.dropdown-toggle{color:#fff;background-color:#025aa5;background-image:none;border-color:#01549b}.wpacu-btns .btn-secondary{color:#292b2c;background-color:#fff;border-color:#ccc}.wpacu-btns .btn-secondary:hover{color:#292b2c;background-color:#e6e6e6;border-color:#adadad}.wpacu-btns .btn-secondary.focus,.wpacu-btns .btn-secondary:focus{-webkit-box-shadow:0 0 0 2px rgba(204,204,204,.5);box-shadow:0 0 0 2px rgba(204,204,204,.5)}.wpacu-btns .btn-secondary.disabled,.wpacu-btns .btn-secondary:disabled{background-color:#fff;border-color:#ccc}.wpacu-btns .btn-secondary.active,.wpacu-btns .btn-secondary:active,.wpacu-btns .show>.btn-secondary.dropdown-toggle{color:#292b2c;background-color:#e6e6e6;background-image:none;border-color:#adadad}.wpacu-btns .btn-info{color:#fff;background-color:#5bc0de;border-color:#5bc0de}.wpacu-btns .btn-info:hover{color:#fff;background-color:#31b0d5;border-color:#2aabd2}.wpacu-btns .btn-info.focus,.wpacu-btns .btn-info:focus{-webkit-box-shadow:0 0 0 2px rgba(91,192,222,.5);box-shadow:0 0 0 2px rgba(91,192,222,.5)}.wpacu-btns .btn-info.disabled,.wpacu-btns .btn-info:disabled{background-color:#5bc0de;border-color:#5bc0de}.wpacu-btns .btn-info.active,.wpacu-btns .btn-info:active,.wpacu-btns .show>.btn-info.dropdown-toggle{color:#fff;background-color:#31b0d5;background-image:none;border-color:#2aabd2}.wpacu-btns .btn-success{color:#fff;background-color:#5cb85c;border-color:#5cb85c}.wpacu-btns .btn-success:hover{color:#fff;background-color:#449d44;border-color:#419641}.wpacu-btns .btn-success.focus,.wpacu-btns .btn-success:focus{-webkit-box-shadow:0 0 0 2px rgba(92,184,92,.5);box-shadow:0 0 0 2px rgba(92,184,92,.5)}.wpacu-btns .btn-success.disabled,.wpacu-btns .btn-success:disabled{background-color:#5cb85c;border-color:#5cb85c}.wpacu-btns .btn-success.active,.wpacu-btns .btn-success:active,.wpacu-btns .show>.btn-success.dropdown-toggle{color:#fff;background-color:#449d44;background-image:none;border-color:#419641}.wpacu-btns .btn-warning{color:#fff;background-color:#f0ad4e;border-color:#f0ad4e}.wpacu-btns .btn-warning:hover{color:#fff;background-color:#ec971f;border-color:#eb9316}.wpacu-btns .btn-warning.focus,.wpacu-btns .btn-warning:focus{-webkit-box-shadow:0 0 0 2px rgba(240,173,78,.5);box-shadow:0 0 0 2px rgba(240,173,78,.5)}.wpacu-btns .btn-warning.disabled,.wpacu-btns .btn-warning:disabled{background-color:#f0ad4e;border-color:#f0ad4e}.wpacu-btns .btn-warning.active,.wpacu-btns .btn-warning:active,.wpacu-btns .show>.btn-warning.dropdown-toggle{color:#fff;background-color:#ec971f;background-image:none;border-color:#eb9316}.wpacu-btns .btn-danger{color:#fff;background-color:#d9534f;border-color:#d9534f}.wpacu-btns .btn-danger:hover{color:#fff;background-color:#c9302c;border-color:#c12e2a}.wpacu-btns .btn-danger.focus,.wpacu-btns .btn-danger:focus{-webkit-box-shadow:0 0 0 2px rgba(217,83,79,.5);box-shadow:0 0 0 2px rgba(217,83,79,.5)}.wpacu-btns .btn-danger.disabled,.wpacu-btns .btn-danger:disabled{background-color:#d9534f;border-color:#d9534f}.wpacu-btns .btn-danger.active,.wpacu-btns .btn-danger:active,.wpacu-btns .show>.btn-danger.dropdown-toggle{color:#fff;background-color:#c9302c;background-image:none;border-color:#c12e2a}.wpacu-btns .btn-outline-primary{color:#0275d8;background-image:none;background-color:transparent;border-color:#0275d8}.wpacu-btns .btn-outline-primary:hover{color:#fff;background-color:#0275d8;border-color:#0275d8}.wpacu-btns .btn-outline-primary.focus,.wpacu-btns .btn-outline-primary:focus{-webkit-box-shadow:0 0 0 2px rgba(2,117,216,.5);box-shadow:0 0 0 2px rgba(2,117,216,.5)}.wpacu-btns .btn-outline-primary.disabled,.wpacu-btns .btn-outline-primary:disabled{color:#0275d8;background-color:transparent}.wpacu-btns .btn-outline-primary.active,.wpacu-btns .btn-outline-primary:active,.wpacu-btns .show>.btn-outline-primary.dropdown-toggle{color:#fff;background-color:#0275d8;border-color:#0275d8}.wpacu-btns .btn-outline-secondary{color:#ccc;background-image:none;background-color:transparent;border-color:#ccc}.wpacu-btns .btn-outline-secondary:hover{color:#fff;background-color:#ccc;border-color:#ccc}.wpacu-btns .btn-outline-secondary.focus,.wpacu-btns .btn-outline-secondary:focus{-webkit-box-shadow:0 0 0 2px rgba(204,204,204,.5);box-shadow:0 0 0 2px rgba(204,204,204,.5)}.wpacu-btns .btn-outline-secondary.disabled,.wpacu-btns .btn-outline-secondary:disabled{color:#ccc;background-color:transparent}.wpacu-btns .btn-outline-secondary.active,.wpacu-btns .btn-outline-secondary:active,.wpacu-btns .show>.btn-outline-secondary.dropdown-toggle{color:#fff;background-color:#ccc;border-color:#ccc}.wpacu-btns .btn-outline-info{color:#5bc0de;background-image:none;background-color:transparent;border-color:#5bc0de}.wpacu-btns .btn-outline-info:hover{color:#fff;background-color:#5bc0de;border-color:#5bc0de}.wpacu-btns .btn-outline-info.focus,.wpacu-btns .btn-outline-info:focus{-webkit-box-shadow:0 0 0 2px rgba(91,192,222,.5);box-shadow:0 0 0 2px rgba(91,192,222,.5)}.wpacu-btns .btn-outline-info.disabled,.wpacu-btns .btn-outline-info:disabled{color:#5bc0de;background-color:transparent}.wpacu-btns .btn-outline-info.active,.wpacu-btns .btn-outline-info:active,.wpacu-btns .show>.btn-outline-info.dropdown-toggle{color:#fff;background-color:#5bc0de;border-color:#5bc0de}.wpacu-btns .btn-outline-success{color:#5cb85c;background-image:none;background-color:transparent;border-color:#5cb85c}.wpacu-btns .btn-outline-success:hover{color:#fff;background-color:#5cb85c;border-color:#5cb85c}.wpacu-btns .btn-outline-success.focus,.wpacu-btns .btn-outline-success:focus{-webkit-box-shadow:0 0 0 2px rgba(92,184,92,.5);box-shadow:0 0 0 2px rgba(92,184,92,.5)}.wpacu-btns .btn-outline-success.disabled,.wpacu-btns .btn-outline-success:disabled{color:#5cb85c;background-color:transparent}.wpacu-btns .btn-outline-success.active,.wpacu-btns .btn-outline-success:active,.wpacu-btns .show>.btn-outline-success.dropdown-toggle{color:#fff;background-color:#5cb85c;border-color:#5cb85c}.wpacu-btns .btn-outline-warning{color:#f0ad4e;background-image:none;background-color:transparent;border-color:#f0ad4e}.wpacu-btns .btn-outline-warning:hover{color:#fff;background-color:#f0ad4e;border-color:#f0ad4e}.wpacu-btns .btn-outline-warning.focus,.wpacu-btns .btn-outline-warning:focus{-webkit-box-shadow:0 0 0 2px rgba(240,173,78,.5);box-shadow:0 0 0 2px rgba(240,173,78,.5)}.wpacu-btns .btn-outline-warning.disabled,.wpacu-btns .btn-outline-warning:disabled{color:#f0ad4e;background-color:transparent}.wpacu-btns .btn-outline-warning.active,.wpacu-btns .btn-outline-warning:active,.wpacu-btns .show>.btn-outline-warning.dropdown-toggle{color:#fff;background-color:#f0ad4e;border-color:#f0ad4e}.wpacu-btns .btn-outline-danger{color:#d9534f;background-image:none;background-color:transparent;border-color:#d9534f}.wpacu-btns .btn-outline-danger:hover{color:#fff;background-color:#d9534f;border-color:#d9534f}.wpacu-btns .btn-outline-danger.focus,.wpacu-btns .btn-outline-danger:focus{-webkit-box-shadow:0 0 0 2px rgba(217,83,79,.5);box-shadow:0 0 0 2px rgba(217,83,79,.5)}.wpacu-btns .btn-outline-danger.disabled,.wpacu-btns .btn-outline-danger:disabled{color:#d9534f;background-color:transparent}.wpacu-btns .btn-outline-danger.active,.wpacu-btns .btn-outline-danger:active,.wpacu-btns .show>.btn-outline-danger.dropdown-toggle{color:#fff;background-color:#d9534f;border-color:#d9534f}.wpacu-btns .btn-link{font-weight:400;color:#0275d8;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.wpacu-btns .btn-link,.wpacu-btns .btn-link.active,.wpacu-btns .btn-link:active,.wpacu-btns .btn-link:disabled{background-color:transparent}.wpacu-btns .btn-link,.wpacu-btns .btn-link:active,.wpacu-btns .btn-link:focus{border-color:transparent}.wpacu-btns .btn-link:hover{border-color:transparent}.wpacu-btns .btn-link:focus,.wpacu-btns .btn-link:hover{color:#014c8c;text-decoration:underline;background-color:transparent}.wpacu-btns .btn-link:disabled{color:#636c72}.wpacu-btns .btn-link:disabled:focus,.wpacu-btns .btn-link:disabled:hover{text-decoration:none}.wpacu-btns .btn-group-lg>.btn,.wpacu-btns .btn-lg{padding:.75rem 1.5rem;font-size:1.25rem;-webkit-border-radius:.3rem;-moz-border-radius:.3rem;border-radius:.3rem}.wpacu-btns .btn-group-sm>.btn,.wpacu-btns .btn-sm{padding:.25rem .5rem;font-size:.875rem;-webkit-border-radius:.2rem;-moz-border-radius:.2rem;border-radius:.2rem}.wpacu-btns .btn-block{display:block;width:100%}.wpacu-btns .btn-block+.btn-block{margin-top:.5rem}.wpacu-btns input[type=button].btn-block,.wpacu-btns input[type=reset].btn-block,.wpacu-btns input[type=submit].btn-block{width:100%}.wpacu-btns .fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.go-pro-button{background-color:#4caf50;border:2px solid #4caf50;color:#fff;padding:12px 18px;text-align:center;text-decoration:none;display:inline-block;font-size:16px;margin:4px 2px;cursor:pointer;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;-webkit-transition-duration:.4s;transition-duration:.4s}.go-pro-button:hover{background-color:#fff;color:#000;border:2px solid #4caf50;text-decoration:none}.wpacu-restore-pos-btn{font-size:14px!important;line-height:normal!important;height:42px!important;padding:0 18px!important;margin-top:10px!important}body.wp-admin .wpacu_asset_row .go-pro-link-no-style .wpacu-tooltip{padding:8px 4px}body.wp-admin .go-pro-link-no-style .wpacu-tooltip{text-shadow:none;font-weight:400;font-size:12px;line-height:16px;padding:8px 10px}.go-pro-link-no-style{position:relative;display:inline-block;color:inherit;text-decoration:none}.go-pro-link-no-style:not(.nav-tab){font-style:italic}.go-pro-link-no-style.no-transition .wpacu-tooltip{-webkit-transition:0s all ease;transition:0s all ease;-webkit-transition-delay:0s;transition-delay:0s}.go-pro-link-no-style>img{max-width:20px;max-height:20px}.go-pro-link-no-style .wpacu-tooltip{font-size:14px;line-height:18px;position:absolute;z-index:1;visibility:hidden;width:160px;background-color:#00a7a7;color:#fff;text-align:center;padding:8px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;bottom:100%;bottom:calc(100% + 15px);left:50%;margin-left:-65px;-webkit-transition:.1s all ease;transition:.1s all ease;-webkit-transition-delay:0s;transition-delay:0s}.go-pro-link-no-style .wpacu-tooltip:after{content:"";position:absolute;border-width:10px;border-style:solid;top:100%;left:50%;left:calc(50% - 10px);border-color:#00a7a7 transparent transparent transparent}.go-pro-link-no-style .wpacu-tooltip.wpacu-on-pages-btn{cursor:pointer;margin-left:-77px;width:130px}.go-pro-link-no-style .wpacu-tooltip.wpacu-larger{width:200px}.go-pro-link-no-style:hover .wpacu-tooltip{visibility:visible}.wpacu_list_table tr:first-child .wordpress-core-file .wpacu-tooltip{bottom:-40px;left:120px;margin-left:-86px}.wpacu_list_table tr:first-child .wordpress-core-file .wpacu-tooltip:after{top:41px;left:-20px;border-color:transparent #c00 transparent transparent}.wordpress-core-file{position:relative;display:inline-block;font-style:normal;color:inherit;text-decoration:none}.wordpress-core-file .wpacu-tooltip{font-size:14px;line-height:18px;position:absolute;z-index:1;visibility:hidden;width:160px;background-color:#c00;color:#fff;text-align:center;padding:6px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;bottom:100%;bottom:calc(100% + 15px);left:50%;margin-left:-86px;-webkit-transition:.1s all ease;transition:.1s all ease;-webkit-transition-delay:0s;transition-delay:0s}.wordpress-core-file .wpacu-tooltip:after{content:"";position:absolute;border-width:10px;border-style:solid;top:100%;left:50%;left:calc(50% - 10px);border-color:#c00 transparent transparent transparent}.wordpress-core-file:hover .wpacu-tooltip{visibility:visible}.ajax-direct-call-error-area{background:#fff;padding:10px;border:1px solid #c00;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px}.ajax-direct-call-error-area td{padding:6px}.ajax-direct-call-error-area .note{margin-top:0;padding-top:0}.ajax-direct-call-error-area .error-code{color:#c00;font-weight:700}.ajax-wp-remote-post-call-error-area{background:#fff;padding:20px}.ajax-wp-remote-post-call-error-area .table-data{background:#ffaf5512;border:1px solid #c66;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.ajax-wp-remote-post-call-error-area .table-data td{padding:10px}.wrap-upgrade-info{background:#fff;padding:0 15px;border:1px solid #cdcdcd;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.wpacu-notice{margin:20px 20px 0 0!important}.wpacu-notice p{font-weight:600!important;font-style:italic}.wpacu-notice .dashicons{font-weight:inherit!important;color:#46b450!important;margin-right:4px;vertical-align:text-bottom;font-size:27px}.wpacu-notice-info{padding:12px 12px 12px 16px;background:#fff;border-left:4px solid #008f9c}.wpacu-notice-info p{margin-top:8px}.wpacu-notice-info p:first-child{margin-top:0}.wpacu-notice-info p:last-child{margin-bottom:0}.wpacu-warning{font-size:15px;padding:10px;background:#fffcec;border:1px solid #fdd5c9;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;margin:0 0 5px;width:100%}.pro-page-unlock-notice{-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;padding:10px;background:#f2faf2;border:1px solid #c0e8c0;width:auto;display:block}.wpacu-license-area .notice,.wpacu-settings-area .notice{margin-left:0;padding:10px!important;width:97%;box-sizing:border-box;font-weight:600;font-style:italic}.wpacu-license-area .notice .dashicons,.wpacu-settings-area .notice .dashicons{color:green}#wpacu-allow-manage-assets-to-select-list-area{display:inline-block}#wpacu-dom-get-type-selections,.wpacu-radio-selections{float:none;clear:both;width:auto;display:inline-block;margin-bottom:0;margin-top:0}#wpacu-dom-get-type-selections.wpacu-vertical,.wpacu-radio-selections.wpacu-vertical{display:block;margin-top:15px;margin-bottom:18px}#wpacu-dom-get-type-selections.wpacu-vertical li,.wpacu-radio-selections.wpacu-vertical li{float:none;margin-bottom:12px}#wpacu-dom-get-type-selections.wpacu-vertical li:last-child,.wpacu-radio-selections.wpacu-vertical li:last-child{margin-bottom:0}#wpacu-dom-get-type-selections li,.wpacu-radio-selections li{margin-right:30px;float:left;margin-bottom:0}#wpacu-dom-get-type-selections li:first-child,.wpacu-radio-selections li:first-child{margin-right:15px}#wpacu-dom-get-type-selections li:last-child,.wpacu-radio-selections li:last-child{margin-right:0}.wpacu_combine_loaded_js_level_area{display:none;background:#008f9c0a;border-left:2px solid #008f9c;padding-top:8px;padding-bottom:8px;padding-right:10px;padding-left:10px;margin:20px 0 15px}.wpacu_combine_loaded_js_level_area.wpacu_active{display:block}#wpacu-dom-get-type-infos{margin-bottom:0}#wpacu-dom-get-type-infos li{margin-bottom:0;line-height:20px}.wpacu-wrap li,.wpacu-wrap p,.wpacu-wrap td{font-weight:400}.wpacu-wrap small{width:auto;float:none;display:inline}.wpacu-wrap small code{font-size:inherit!important}.wpacu-wrap.wpacu-settings-show-all .wpacu-settings-tab-content{display:block;width:100%}.wpacu-wrap.wpacu-settings-show-all .wpacu-settings-area-title{color:#004567;padding:16px 15px;background:#f8f8f8;border-left:5px solid #004567b0;border-top:1px solid #e7e7e7;border-right:1px solid #e7e7e7;border-bottom:1px solid #e7e7e7;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;font-size:1.45em;font-weight:500}.wpacu-wrap.wpacu-settings-show-all #wpacu-update-button-area{margin:0}.wpacu-wrap.wpacu-settings-show-all #wpacu-update-button-area .submit{margin:0}.wpacu-wrap.wpacu-settings-show-all #wpacu-update-button-area .button{padding-left:18px;padding-right:18px;height:46px;font-size:18px}.wpacu-wrap.wpacu-settings-show-all #wpacu-updating-settings{margin-left:224px;top:35px;left:3px}.wpacu-wrap.wpacu-switch-standard .asset-cleanup-pro_page_wpassetcleanup_settings .wpacu_switch,.wpacu-wrap.wpacu-switch-standard .asset-cleanup_page_wpassetcleanup_settings .wpacu_switch{width:auto;height:auto}.wpacu-wrap.wpacu-switch-standard .asset-cleanup-pro_page_wpassetcleanup_settings .wpacu_switch input,.wpacu-wrap.wpacu-switch-standard .asset-cleanup_page_wpassetcleanup_settings .wpacu_switch input{display:block}.wpacu-wrap.wpacu-switch-standard .asset-cleanup-pro_page_wpassetcleanup_settings .wpacu_switch input[type=checkbox],.wpacu-wrap.wpacu-switch-standard .asset-cleanup_page_wpassetcleanup_settings .wpacu_switch input[type=checkbox]{margin:0 0 3px}.wpacu-wrap.wpacu-switch-standard .asset-cleanup-pro_page_wpassetcleanup_settings .wpacu_switch .wpacu_slider,.wpacu-wrap.wpacu-switch-standard .asset-cleanup_page_wpassetcleanup_settings .wpacu_switch .wpacu_slider{display:none}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch{position:relative;display:inline-block;width:52px;height:29px}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch.wpacu_with_text{width:65px}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch.wpacu_with_text .wpacu_slider:before{left:14px}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch.wpacu_with_text .wpacu_slider:after{top:5px;position:absolute;content:"OFF";color:#fff;right:9px;font-weight:600}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch.wpacu_with_text input:checked+.wpacu_slider{background-color:#52af00}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch.wpacu_with_text input:checked+.wpacu_slider:before{left:18px}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch.wpacu_with_text input:checked+.wpacu_slider:after{top:5px;position:absolute;content:"ON";color:#fff;left:14px;font-weight:600}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch input{display:none}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch:not(.wpacu_switch_standard) .wpacu_slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.2s;transition:.2s}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch:not(.wpacu_switch_standard) .wpacu_slider:before{position:absolute;content:"";height:22px;width:22px;left:4px;bottom:4px;background-color:#fff;-webkit-transition:.2s;transition:.2s}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch input:checked+.wpacu_slider{background-color:#52af00}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch input:focus+.wpacu_slider{box-shadow:0 0 1px #52af00}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch input:checked+.wpacu_slider:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch .wpacu_slider.wpacu_round{border-radius:29px}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch .wpacu_slider.wpacu_round:before{border-radius:50%}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch.wpacu_locked_for_pro{opacity:.3}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch.wpacu_disabled{opacity:.3}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch.wpacu_disabled:before{content:"";font-family:Dashicons,Arial,"Times New Roman","Bitstream Charter",Times,serif;position:absolute;font-size:23px;top:5px;right:2px;z-index:1000}.asset-cleanup-pro_page_wpassetcleanup_settings .setting_title p.wpacu_subtitle,.asset-cleanup_page_wpassetcleanup_settings .setting_title p.wpacu_subtitle{margin-top:4px;line-height:1.4}.asset-cleanup-pro_page_wpassetcleanup_settings .setting_title p.wpacu_subtitle em,.asset-cleanup_page_wpassetcleanup_settings .setting_title p.wpacu_subtitle em{font-weight:200}.asset-cleanup-pro_page_wpassetcleanup_settings .setting_title p.wpacu_read_more,.asset-cleanup_page_wpassetcleanup_settings .setting_title p.wpacu_read_more{margin-top:-10px;font-style:italic;font-size:12px}.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_inline_code_status_choices,.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices,.asset-cleanup-pro_page_wpassetcleanup_settings .input_style_choices,.asset-cleanup_page_wpassetcleanup_settings .assets_list_inline_code_status_choices,.asset-cleanup_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices,.asset-cleanup_page_wpassetcleanup_settings .input_style_choices{list-style:none;margin:0}.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_inline_code_status_choices li,.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices li,.asset-cleanup-pro_page_wpassetcleanup_settings .input_style_choices li,.asset-cleanup_page_wpassetcleanup_settings .assets_list_inline_code_status_choices li,.asset-cleanup_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices li,.asset-cleanup_page_wpassetcleanup_settings .input_style_choices li{float:left;margin-right:30px}.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_inline_code_status_choices li:last-child,.asset-cleanup-pro_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices li:last-child,.asset-cleanup-pro_page_wpassetcleanup_settings .input_style_choices li:last-child,.asset-cleanup_page_wpassetcleanup_settings .assets_list_inline_code_status_choices li:last-child,.asset-cleanup_page_wpassetcleanup_settings .assets_list_layout_areas_status_choices li:last-child,.asset-cleanup_page_wpassetcleanup_settings .input_style_choices li:last-child{margin-right:0}#wpacu-assets-list-by-location-selected{background:0 0;border:1px solid #e7e7e7;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;padding:8px;clear:both}.notice.notice-success+.wpacu-wrap.wpacu-settings-area{margin-top:20px}.wpacu-license-action-btn-area{margin-top:0;position:relative;display:inline-block}.wpacu-license-spinner{display:none;position:absolute;right:-30px;top:4px}.wpacu-license-spinner img{width:20px;height:20px}#wpacu-activation-issues-info{border-radius:10px;width:90%;margin-top:20px;font-size:14px;padding:6px 20px;background:#fff;border:1px solid #e7e7e7}#wpacu-activation-issues-info ol li{font-size:13px;margin-bottom:10px}#wpacu-mark-license-area-wrap{margin:15px 0}.wpacu-form-table.wpacu-license th{width:120px}.wpacu-form-table th{vertical-align:top;text-align:left;padding:5px 20px 20px 0;width:200px;line-height:1.3;font-weight:600}.wpacu-form-table th label{color:#23282d;font-weight:600;font-size:14px;text-shadow:none;vertical-align:middle;cursor:pointer}.wpacu-form-table td{padding-bottom:25px}.wpacu-form-table td:last-child p:last-child{margin:0}.wpacu-form-table .wpacu-fancy-checkbox input[type=checkbox],.wpacu-form-table label input[type=checkbox]{height:20px;width:20px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.wpacu-form-table .wpacu-fancy-checkbox input[type=checkbox]:hover,.wpacu-form-table label input[type=checkbox]:hover{border:1px solid green}.wpacu-form-table .wpacu-fancy-checkbox input[type=checkbox]:checked,.wpacu-form-table label input[type=checkbox]:checked{border:1px solid green}.wpacu-form-table .wpacu-fancy-checkbox input[type=checkbox]:disabled,.wpacu-form-table label input[type=checkbox]:disabled{border:none}.wpacu-form-table .wpacu-fancy-checkbox input[type=checkbox]:disabled:checked,.wpacu-form-table label input[type=checkbox]:disabled:checked{opacity:.3}.wpacu-form-table .wpacu-fancy-checkbox input[type=checkbox]:checked:before,.wpacu-form-table label input[type=checkbox]:checked:before{color:#52af00;font:normal 24px/1 dashicons}.wpacu-form-table .wpacu-fancy-radio input[type=radio]{-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;position:relative;height:20px;width:20px;margin:2px 0 0 0}.wpacu-form-table .wpacu-fancy-radio input[type=radio].wpacu-disabled-status:checked{border:1px solid #c00}.wpacu-form-table .wpacu-fancy-radio input[type=radio].wpacu-disabled-status:checked:before{background:#c00;color:#c00}.wpacu-form-table .wpacu-fancy-radio input[type=radio].wpacu-disabled-status:hover{border:1px solid #c00}.wpacu-form-table .wpacu-fancy-radio input[type=radio]:hover{border:1px solid green}.wpacu-form-table .wpacu-fancy-radio input[type=radio]:checked{border:1px solid green}.wpacu-form-table .wpacu-fancy-radio input[type=radio]:checked:before{margin:0;line-height:inherit;text-indent:inherit;content:"";position:absolute;top:4px;left:4px;width:10px;height:10px;border-radius:50%;background:#52af00;color:#52af00;font:normal 24px/1 dashicons}#wpacu-settings-vertical-tab-wrap{display:table;width:100%}#wpacu-settings-vertical-tab-wrap .wpacu-tab-extra-text{margin:4px 0 0 0}#wpacu-settings-vertical-tab-wrap .wpacu-tab-extra-text small{font-weight:lighter}#wpacu-settings-vertical-tab-wrap .wpacu-tab-extra-text small span.wpacu-status-wrap{position:relative;padding-left:14px}#wpacu-settings-vertical-tab-wrap .wpacu-tab-extra-text small span.wpacu-status-wrap span.wpacu-circle-status{position:absolute;left:0;top:2px;height:10px;width:10px;border-radius:50%;display:inline-block;opacity:.75}#wpacu-settings-vertical-tab-wrap .wpacu-tab-extra-text small span.wpacu-status-wrap span.wpacu-circle-status.wpacu-on{background:#52af00}#wpacu-settings-vertical-tab-wrap .wpacu-tab-extra-text small span.wpacu-status-wrap span.wpacu-circle-status.wpacu-off{background:#ccc}#wpacu-settings-vertical-tab-wrap *{box-sizing:border-box}.wpacu-settings-tab{display:table-cell;width:20%;height:100%;vertical-align:top}.wpacu-settings-tab a{text-decoration:none;border-left:3px solid transparent;display:block;background-color:#f1f1f1;color:#004567;padding:17px 16px;width:100%;outline:0;text-align:left;cursor:pointer;font-size:14px;font-weight:600;border-bottom:1px solid #ccc}.wpacu-settings-tab a:first-child{border-top:1px solid transparent!important}.wpacu-settings-tab a:last-child{border-bottom:1px solid transparent!important}.wpacu-settings-tab a:hover{background-color:#fff;border-left:3px solid #004567;position:relative}.wpacu-settings-tab a.active{color:#004567;background-color:#fff;border-left:3px solid #004567;position:relative;border-bottom:1px solid #ccc}.wpacu-settings-tab a.active:after{content:"";position:absolute;height:100%;width:1px;top:0;right:-1px;background-color:#fff}.wpacu-settings-tab-content{background-color:#fff;display:none;padding:12px 18px;width:79%;border-left:none;height:100%;border-top-right-radius:10px;border-bottom-right-radius:10px}.wpacu-settings-tab-content h2{padding:0 0 15px;border-bottom:1px solid #e7e7e7}.wpacu-settings-tab-content.active{display:table-cell}#wpacu_minify_css_exceptions_area{margin:16px 0 0}#wpacu_minify_js_exceptions_area{margin:16px 0 0}@media only screen and (min-width:768px){body.asset-cleanup-pro_page_wpassetcleanup_assets_manager #wpacu-update-button-area,body.asset-cleanup_page_wpassetcleanup_assets_manager #wpacu-update-button-area{position:-webkit-sticky;position:sticky;bottom:0;padding:0;z-index:1000000;border-top:1px solid #cdcdcd;background:#f1f1f1}}body[class*=version-5-3] #wpacu-update-button-area .button{height:auto;padding:4px 18px 6px;font-size:15px}body[class*=version-5-3] #wpacu-updating-settings{margin-left:178px}#wpacu-update-button-area{position:relative;margin-left:20%}#wpacu-update-button-area.no-left-margin{margin-left:0}#wpacu-update-button-area .submit{margin:0;padding:19px 0}#wpacu-update-button-area .button{padding-left:18px;padding-right:18px;height:46px;font-size:15px}#wpacu-updating-settings{position:absolute;margin-left:183px;top:28px;display:none}#wpacu-updating-settings.wpacu-show{display:block}#combine_loaded_js_info_area{position:relative}#combine_loaded_js_info_area.locked-for-pro:before{position:absolute;content:"";height:100%;width:100%;background:#fff;opacity:.5;z-index:10000}.google_fonts_load_types{clear:both;margin:20px 0 15px;display:flex}.google_fonts_load_types>div{text-align:left}.google_fonts_load_types>div input{float:left;margin:0 7px 20px 0!important}.wpacu-sub-tabs-wrap{min-width:320px;margin:0 auto}.wpacu-sub-tabs-wrap input.wpacu-nav-input{display:none}.wpacu-sub-tabs-wrap label.wpacu-nav-label{display:inline-block;margin:0 0 -1px;padding:15px 25px;font-weight:600;text-align:center;color:#74777b;border-left:1px solid transparent;border-right:1px solid transparent;border-top:3px solid transparent;border-bottom:0}.wpacu-sub-tabs-wrap label.wpacu-nav-label:hover{cursor:pointer}.wpacu-sub-tabs-wrap input.wpacu-nav-input:checked+label.wpacu-nav-label{color:#004567;border-left:1px solid #ccc;border-right:1px solid #ccc;border-top:3px solid #004567;border-bottom:1px solid #fff}.wpacu-sub-tabs-wrap section{display:none;padding:20px 0 0;border-top:1px solid #ccc}#wpacu-google-fonts-optimize-tab-item:checked~#wpacu-google-fonts-optimize-tab-item-area,#wpacu-google-fonts-remove-tab-item:checked~#wpacu-google-fonts-remove-tab-item-area{display:block}.wpacu-fade-in{animation:wpacuFadeIn ease-in .2s;-webkit-animation:wpacuFadeIn ease-in .2s;-moz-animation:wpacuFadeIn ease-in .2s;-o-animation:wpacuFadeIn ease-in .2s;-ms-animation:wpacuFadeIn ease-in .2s}@keyframes wpacuFadeIn{0%{opacity:0}100%{opacity:1}}@-moz-keyframes wpacuFadeIn{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes wpacuFadeIn{0%{opacity:0}100%{opacity:1}}@-o-keyframes wpacuFadeIn{0%{opacity:0}100%{opacity:1}}@-ms-keyframes wpacuFadeIn{0%{opacity:0}100%{opacity:1}}body.wp-admin select.wpacu-screen-size-load{margin-top:10px;margin-bottom:10px;margin-right:6px}body.wp-admin div.wpacu-helper-area{display:inline-block;vertical-align:top}body.wp-admin .wpacu-handle-media-queries-load-field{display:none;vertical-align:top;margin-bottom:10px}body.wp-admin .wpacu-handle-media-queries-load-field.wpacu-is-visible{display:inline-block}body.wp-admin .wpacu-handle-media-queries-load-field>textarea{font-size:100%;padding:6px;width:320px;max-width:100%;max-height:80px;border:1px solid green}body.wp-admin .wpacu-handle-media-queries-load-field>textarea:disabled{border:1px solid #e7e7e7}body.wp-admin .wpacu-handle-media-queries-load-field:not(.wpacu-is-visible)+div.wpacu-helper-area{margin-top:2px;vertical-align:middle}body.wp-admin .wpacu-handle-notes p{margin-top:0!important}body.wp-admin .wpacu-handle-notes p a{font-size:inherit}body.wp-admin .wpacu-handle-notes p a span.dashicons{font-size:19px;width:19px;height:19px;vertical-align:bottom;text-decoration:none}body:not(.wp-admin) select.wpacu-screen-size-load{margin-top:10px;margin-bottom:10px;margin-right:8px;width:auto}body:not(.wp-admin) div.wpacu-helper-area{display:inline-block;vertical-align:top}body:not(.wp-admin) .wpacu-handle-media-queries-load-field{display:none;vertical-align:top;margin-top:10px;margin-bottom:10px}body:not(.wp-admin) .wpacu-handle-media-queries-load-field.wpacu-is-visible{display:inline-block}body:not(.wp-admin) .wpacu-handle-media-queries-load-field>textarea{font-size:100%;padding:6px;width:320px;max-width:100%;max-height:80px;border:1px solid green}body:not(.wp-admin) .wpacu-handle-media-queries-load-field>textarea:disabled{border:1px solid #e7e7e7}body:not(.wp-admin) .wpacu-handle-media-queries-load-field:not(.wpacu-is-visible)+div.wpacu-helper-area{margin-top:2px;vertical-align:middle}body:not(.wp-admin) .wpacu-handle-notes p{margin-top:0!important}body:not(.wp-admin) .wpacu-handle-notes p a{font-size:inherit}body:not(.wp-admin) .wpacu-handle-notes p a span.dashicons{font-size:19px;width:19px;height:19px;vertical-align:bottom;text-decoration:none}.wpacu-handle-notes{padding-top:5px;margin-bottom:-10px;border-top:1px solid #e7e7e7}.wpacu-handle-notes .wpacu-handle-notes-field{display:none}.wpacu-handle-notes .wpacu-handle-notes-field>textarea{font-size:85%;padding:6px;width:320px;max-width:100%}.wpacu-handle-notes p{margin:10px 0 0!important}.wpacu-handle-notes p a.wpacu-add-handle-note{text-decoration:none;font-size:80%;display:inline-block;color:inherit}.wpacu-handle-notes p a.wpacu-add-handle-note span.dashicons{font-size:18px;width:18px;height:18px}.wrap_bulk_unload_options{width:auto;display:block;clear:both}.wrap_bulk_unload_options.wpacu_has_fieldset fieldset{border:1px solid #cdcdcd;padding:10px;background:#fff;border-radius:5px}.wrap_bulk_unload_options.wpacu_has_fieldset fieldset legend{width:auto;font-weight:400;font-size:inherit;padding:8px 11px;margin:0;background:#fff;border:1px solid #cdcdcd;border-radius:5px}.wrap_bulk_unload_options .wpacu_asset_options_wrap{display:inline-block;float:left;margin:5px 10px 14px 0!important;padding:8px 10px 12px!important}.wrap_bulk_unload_options .wpacu_asset_options_wrap .wpacu_slider_text{position:relative!important;vertical-align:top;left:inherit!important;top:inherit!important}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch{position:relative;display:inline-block;min-width:52px;width:52px;height:29px;margin-right:5px!important}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch input{display:none}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch .wpacu_slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.15s;transition:.15s}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch .wpacu_slider:before{position:absolute;content:"";height:22px;width:22px;left:4px;bottom:4px;background-color:#fff;-webkit-transition:.15s;transition:.15s}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch input:checked+.wpacu_slider{background-color:#c00}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch input:focus+.wpacu_slider{box-shadow:0 0 1px #c00}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch input:checked+.wpacu_slider:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch .wpacu_slider.wpacu_round{border-radius:29px}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch .wpacu_slider.wpacu_round:before{border-radius:50%}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch.wpacu_disabled{opacity:.3}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_switch.wpacu_disabled:before{content:"";font-family:Dashicons,Arial,"Times New Roman","Bitstream Charter",Times,serif;position:absolute;font-size:23px;top:1px;right:2px;z-index:1000}.wpacu-switch-enhanced .wpacu_asset_row .wpacu_slider_text{position:absolute;left:62px;top:3px}.wpacu-wrap{width:98%}.wpacu-wrap tr.wpacu_regex_rule_row{opacity:.45}.wpacu-wrap tr.wpacu_regex_rule_row textarea{line-height:normal;min-height:20px;min-width:400px;display:inline-block;padding:2px 4px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.wpacu-wrap tr.wpacu_regex_rule_row textarea:focus{width:100%}.wpacu-wrap tr.wpacu_regex_rule_row.wpacu_enabled{opacity:1}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch_small{position:relative;display:inline-block;min-width:30px;width:30px;height:17px;margin-right:5px!important}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch_small input{display:none}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch_small .wpacu_slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.15s;transition:.15s}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch_small .wpacu_slider:before{position:absolute;content:"";height:13px;width:13px;left:2px;bottom:2px;background-color:#fff;-webkit-transition:.15s;transition:.15s}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch_small input:checked+.wpacu_slider{background-color:#52af00}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch_small input:focus+.wpacu_slider{box-shadow:0 0 1px #52af00}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch_small input:checked+.wpacu_slider:before{-webkit-transform:translateX(13px);-ms-transform:translateX(13px);transform:translateX(13px)}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch_small .wpacu_slider.wpacu_round{border-radius:17px}.wpacu-wrap.wpacu-switch-enhanced .wpacu_switch_small .wpacu_slider.wpacu_round:before{border-radius:50%}.editor-post-saved-state.is-wpacu-reloading{animation:edit-post__loading-fade-animation .5s infinite}body.wp-admin tr.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract .dashicons{width:19px;height:19px;font-size:19px}body.wp-admin tr.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:before{right:20px;top:-2px}body.wp-admin tr.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:after{left:20px;top:-2px}body.wp-admin tr.wpacu_asset_row.wpacu-loading{position:relative}body.wp-admin tr.wpacu_asset_row.wpacu-loading .wpacu-ajax-loader{display:block!important}body.wp-admin tr.wpacu_asset_row .wpacu-ajax-loader{display:none;width:58px;height:58px;position:absolute;bottom:0;right:0;opacity:.75}.wpacu_asset_row.wpacu_not_load .wpacu_dependency_notice_area em{color:#c00}.wpacu_asset_row input.wpacu_load_exception:checked+span{color:green}.wpacu_asset_row .wpacu-hardcoded-code-area{margin:0}.wpacu_asset_row .wpacu-hardcoded-code-area span.wpacu_inside_cond_comm{display:block;margin-bottom:8px}.wpacu_asset_row .wpacu-hardcoded-code-area .wpacu-has-view-more{max-height:300px;position:relative;overflow:hidden}.wpacu_asset_row .wpacu-hardcoded-code-area .wpacu-has-view-more p.wpacu-view-more-link-area{position:absolute;bottom:0;left:0;width:100%;margin:0;padding:20px 0 15px 15px;background:linear-gradient(to bottom,rgba(255,255,255,0) 0,#fbfbfb8c 100%);background:-webkit-linear-gradient(top,rgba(255,255,255,0) 0,#fbfbfb8c 100%)}.wpacu_asset_row .wpacu-hardcoded-code-area pre{margin:0;padding:0 0 8px;white-space:pre-wrap;white-space:break-spaces;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.wpacu_asset_row .wpacu-hardcoded-code-area code{color:inherit;font-style:italic;margin-left:2px;word-break:break-word}.wpacu_asset_row[data-is-hardcoded-asset=true] .wpacu-source-row{margin-top:0}.wpacu_asset_row[data-is-hardcoded-asset=true] .wpacu_handle_row_expand_contract_area{right:18px;top:18px;background:inherit;z-index:100}.wpacu_asset_row>td{background:inherit;overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-all}.wpacu_asset_row>td[data-wpacu-row-status=expanded] .wpacu_file_size_area{margin:10px 0}.wpacu_asset_row>td[data-wpacu-row-status=expanded] .wpacu_hardcoded_part_if_contracted{display:none}.wpacu_asset_row>td[data-wpacu-row-status=expanded] .wpacu_hardcoded_part_if_expanded{display:block}.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_file_size_area{margin:0}.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_hardcoded_part_if_contracted{display:block}.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_hardcoded_part_if_contracted code{width:100%}.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_hardcoded_part_if_expanded{display:none}.wpacu_asset_row>td div.wpacu_dependency_notice_area{line-height:22px;margin:10px 0;text-align:left!important;font-weight:400!important}.wpacu_asset_row>td div.wpacu-source-row{margin-top:12px}.wpacu_asset_row>td div.wpacu-source-row a{word-break:break-word}.wpacu_asset_row>td .wpacu_hide_if_handle_row_contracted{display:inline-block}.wpacu_asset_row>td[data-wpacu-row-status=contracted]>div{float:left;margin-top:0;margin-right:20px;margin-bottom:10px}.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_hide_if_handle_row_contracted{display:none}.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area{background:inherit}.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract{transition:none}.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:focus,.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:focus-visible,.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:visited{text-decoration:none;border:none}.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:after,.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:before{opacity:0;-webkit-transition:-webkit-transform .3s,opacity .2s;-moz-transition:-moz-transform .3s,opacity .2s;transition:transform .3s,opacity .2s}.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:before{position:absolute;right:20px;top:-4px;content:"[";-webkit-transform:translateX(20px);-moz-transform:translateX(20px);transform:translateX(20px)}.wpacu_asset_row>td[data-wpacu-row-status=contracted] .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:after{position:absolute;left:20px;top:-4px;content:"]";-webkit-transform:translateX(-20px);-moz-transform:translateX(-20px);transform:translateX(-20px)}.wpacu_asset_row>td[data-wpacu-row-status=contracted].wpacu_hovered .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract,.wpacu_asset_row>td[data-wpacu-row-status=contracted]:focus .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract,.wpacu_asset_row>td[data-wpacu-row-status=contracted]:hover .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract{transition:none}.wpacu_asset_row>td[data-wpacu-row-status=contracted].wpacu_hovered .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:hover,.wpacu_asset_row>td[data-wpacu-row-status=contracted]:focus .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:hover,.wpacu_asset_row>td[data-wpacu-row-status=contracted]:hover .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:hover{color:green}.wpacu_asset_row>td[data-wpacu-row-status=contracted].wpacu_hovered .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:after,.wpacu_asset_row>td[data-wpacu-row-status=contracted].wpacu_hovered .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:before,.wpacu_asset_row>td[data-wpacu-row-status=contracted]:focus .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:after,.wpacu_asset_row>td[data-wpacu-row-status=contracted]:focus .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:before,.wpacu_asset_row>td[data-wpacu-row-status=contracted]:hover .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:after,.wpacu_asset_row>td[data-wpacu-row-status=contracted]:hover .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:before{opacity:1;-webkit-transform:translateX(0);-moz-transform:translateX(0);transform:translateX(0)}.wpacu_asset_row .wpacu_handle_row_expand_contract_area{background:inherit;position:absolute;right:20px;top:20px;float:none!important;margin:0!important}.wpacu_asset_row .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract{background:inherit;color:#000;text-decoration:none}.wpacu_asset_row .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract:hover{text-decoration:none}.wpacu_asset_row .wpacu_handle_row_expand_contract_area a.wpacu_handle_row_expand_contract span.dashicons{background:inherit}.wpacu_asset_row input{width:auto;height:auto;min-height:16px}.wpacu_asset_row .tip{background:inherit;border-left:4px solid #e7e7e7;margin:10px 0;padding:7px;font-style:italic;font-size:small;line-height:1.4}.wpacu_asset_row td{width:100%;text-align:left}.wpacu_asset_row td p:last-child{margin-bottom:0!important}.wpacu_asset_row td .wpacu_asset_options_wrap{min-height:23px;padding:8px 10px;margin:15px 0;background:#fff;border:1px solid #eee;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.wpacu_asset_row td .wpacu_asset_options_wrap p:first-child{margin-top:0;margin-bottom:8px!important}.wpacu_asset_row div.wpacu_handle{margin:0 0 -8px}.wpacu_asset_row p.wpacu_handle{margin-top:0}.wpacu_asset_row li.wpacu_unload_this_page{display:block!important;position:relative}.wpacu-contract-expand-area{width:100%;margin:20px 0 0}.wpacu-contract-expand-area .col-left{float:left}.wpacu-contract-expand-area .col-left h4{margin-bottom:0}.wpacu-contract-expand-area .col-right{float:right}.wpacu-clearfix{clear:both;height:0}.wpacu-clearfix:before{content:"";display:table}.wpacu-clearfix:after{content:"";display:table;clear:both}body.wp-admin .wpacu-wp-button{font-size:13px;line-height:26px;height:28px}.wpacu-wp-button{color:#555!important;border-color:#ccc!important;background:#f7f7f7!important;box-shadow:0 1px 0 #ccc;vertical-align:top}.wpacu-wp-button:hover{background:#fafafa!important;border-color:#999!important;color:#23282d!important}.wpacu-wp-button.wpacu-wp-button-secondary{display:inline-block;text-decoration:none;height:auto;margin:0 5px 0 0;padding:0 10px 1px;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;border-radius:3px;white-space:nowrap;box-sizing:border-box}.distinguish-asset-list{list-style:none;margin-left:0;margin-bottom:5px;display:inline-block}.distinguish-asset-list li{float:left;margin-right:20px}.distinguish-asset-list li:last-child{margin-right:0}body[class*=asset-cleanup-pro] a.wpacu-plugin-contracted-wrap-link{padding:16px 6px 16px 41px!important}body[class*=asset-cleanup-pro] .wpacu-area-open .wpacu-plugin-toggle-all{font-size:12px!important;width:calc(100% - 26px)!important}body.wp-admin .wpacu-area-expanded .wpacu-plugin-toggle-all{top:5px}body.wp-admin .wpacu-area-expanded .wpacu-plugin-toggle-all ul li{font-size:12px!important}.wpacu-assets-collapsible-wrap{border:1px solid #cdcdcd}.wpacu-assets-collapsible-wrap.wpacu-by-location{margin-bottom:15px}.wpacu-assets-collapsible-wrap.wpacu-wrap-all{margin-top:20px}.wpacu-assets-collapsible-wrap.wpacu-wrap-area{margin-top:10px}.wpacu-assets-collapsible-wrap.wpacu-by-location>a.wpacu-assets-collapsible{padding:15px 15px 15px 43px}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu_list_table{border-width:0;margin:0;border-spacing:inherit;width:100%;box-shadow:3px 3px 2px #ddd;border-bottom-right-radius:5px;border-top-right-radius:5px}.wpacu-assets-collapsible-wrap.wpacu-by-location span.wpacu-child-location-name{font-weight:600}.wpacu-assets-collapsible-wrap.wpacu-by-location span.wpacu-child-location-version{font-weight:200}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-location-child-area[data-wpacu-plugin=oxygen] .icon-area{border-radius:50%}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-location-child-area .wpacu-plugin-toggle-all-wrap .wpacu-plugin-toggle-all{display:inline-block;padding:0;font-size:13px;width:100%;width:calc(100% + 46px);min-width:250px;position:absolute;left:100%;left:calc(100% + 6px);margin:0;top:4px}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-location-child-area .wpacu-plugin-toggle-all-wrap .wpacu-plugin-toggle-all ul{display:inline-block;margin:0;list-style:none;padding-left:13px;padding-top:0}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-location-child-area .wpacu-plugin-toggle-all-wrap .wpacu-plugin-toggle-all ul li{padding:0;margin:0;line-height:normal;font-size:14px}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-location-child-area .wpacu-plugin-toggle-all-wrap .wpacu-plugin-toggle-all ul li:first-child{font-style:italic;margin-bottom:5px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-themes .wpacu-assets-collapsible-content>table:last-child{margin-bottom:20px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-themes .wpacu-assets-collapsible-content .wpacu-location-child-area .wpacu-area-title{display:inline;position:relative;padding:9px 10px 10px 15px;z-index:1}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-themes .wpacu-assets-collapsible-content .wpacu-location-child-area .wpacu-area-title:after{content:"";position:absolute;width:100%;left:0;bottom:0;height:1px;background-color:#fdfdfd}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content .wpacu-plugin-assets-wrap{padding:0 0 10px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content .wpacu-plugin-assets-wrap.wpacu-area-open.wpacu-plugin-assets-last{margin-bottom:18px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content .wpacu-plugin-assets-wrap.wpacu-area-open .wpacu-plugin-toggle-all-wrap .wpacu-plugin-toggle-all{display:inline-block;padding:7px 12px 8px;font-size:14px;width:100%;text-align:left;border-left:1px solid #cdcdcd;border-right:1px solid #cdcdcd}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content .wpacu-plugin-assets-wrap.wpacu-area-open .wpacu-plugin-toggle-all-wrap .wpacu-plugin-toggle-all+.wpacu-plugin-toggle-all{padding:2px 12px 10px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link{color:inherit;text-decoration:none;font-weight:inherit;font-style:inherit;font-size:105%;line-height:initial;position:relative;height:auto;margin:14px 0 0;padding:13px 6px 14px 39px;position:relative;display:block}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link:after{position:absolute;font-size:18px;font-family:Dashicons!important;right:12px;top:14px;content:""}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link.wpacu-link-open:after{content:""}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link.wpacu-link-closed{border:1px solid #cdcdcd}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link:hover{border:1px solid #878787;background:#f9f9f9}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link:hover.wpacu-link-closed{box-shadow:3px 3px 2px #ddd}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link.wpacu-link-open{border-top:1px solid #cdcdcd;border-left:1px solid #cdcdcd;border-right:1px solid #cdcdcd;border-bottom:none}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link.wpacu-link-closed.wpacu-last-wrap-link{margin-bottom:20px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link .icon-plugin-default{top:10px;left:10px;width:30px;height:30px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link .icon-plugin-default .icon-area{width:30px;height:30px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link .icon-plugin-default .icon-area:before{font-size:22px;line-height:22px;top:4px;left:5px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link .wpacu-area-title{position:relative;padding:17px 10px 16px 46px;z-index:1}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link .wpacu-area-title:after{content:"";position:absolute;width:100%;left:0;bottom:0;height:1px;background-color:#fdfdfd}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content a.wpacu-plugin-contracted-wrap-link.wpacu-area-last{margin-bottom:18px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content .wpacu-area-open{padding:0;max-height:100%}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content .wpacu-area-closed{padding:0;overflow:hidden;max-height:0}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-plugins .wpacu-assets-collapsible-content>table:last-child{margin-bottom:20px}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-themes .wpacu-assets-collapsible-content .wpacu-location-child-area .wpacu-area-title{margin-top:0;margin-bottom:-1px;padding:14px 10px 16px 12px!important}.wpacu-assets-collapsible-wrap.wpacu-by-location.wpacu-themes .wpacu-assets-collapsible-content .wpacu-location-child-area .wpacu-area-title.wpacu-theme-has-icon{padding:18px 10px 16px 58px!important}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-assets-collapsible-content .wpacu-location-child-area{margin-top:22px;margin-bottom:-1px;font-size:110%;line-height:initial}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-assets-collapsible-content .wpacu-location-child-area.wpacu-location-child-area-first{margin-top:2px}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-assets-collapsible-content .wpacu-location-child-area.wpacu-area-expanded .wpacu-area-title{display:inline-block;z-index:1;padding:17px 10px 16px 46px}.wpacu-assets-collapsible-wrap.wpacu-by-location .wpacu-assets-collapsible-content .wpacu-location-child-area .wpacu-area-title{display:inline;border-top-right-radius:8px;border-top-left-radius:8px;background-color:#f9f9f9;border-left:1px solid #cdcdcd;border-top:1px solid #cdcdcd;border-bottom:1px solid transparent;border-right:1px solid #cdcdcd;position:relative}.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-plugin-default{position:absolute;padding:0;top:10px;left:10px;width:37px;height:37px}.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-plugin-default:not(.has-icon){color:#b4b9be;background-color:#eee;box-shadow:inset 0 0 10px rgba(160,165,170,.15);-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-plugin-default:not(.has-icon) .icon-area:before{content:"";font-family:Dashicons!important;position:absolute;font-size:28px;line-height:28px;top:5px;left:5px}.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-plugin-default .icon-area{position:relative;width:37px;height:37px}.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-theme{position:absolute;padding:0;top:10px;left:10px;width:37px;height:37px}.wpacu-assets-collapsible-wrap.wpacu-by-location .icon-theme .icon-area{position:relative;width:37px;height:37px}.wpacu-assets-collapsible-wrap.wpacu-wp_core{border:1px solid #c00}.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content,.wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content{padding:0}.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content .wpacu_list_table,.wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content .wpacu_list_table{width:100%;margin:0}.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row td,.wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row td{border-left:hidden;border-right:hidden;border-bottom:1px solid #cdcdcd}.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row:last-child,.wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row:last-child{margin-bottom:0!important}.wpacu-assets-collapsible-wrap.wpacu-external .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row:last-child td:last-child,.wpacu-assets-collapsible-wrap.wpacu-wp_core .wpacu-assets-collapsible-content .wpacu_list_table .wpacu_asset_row:last-child td:last-child{border-bottom:hidden}a.wpacu-assets-collapsible{color:#000;font-size:20px;text-decoration:none;display:block;position:relative;background-color:#f1f3f8;cursor:pointer;padding:15px 15px 15px 36px;width:auto;border:none;text-align:left;outline:0}a.wpacu-assets-collapsible>span.dashicons{font-size:25px;line-height:normal;position:absolute;top:15px;top:calc(50% - 21px);left:22px;-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}a.wpacu-assets-collapsible:hover{background-color:#f1f3f8;text-decoration:none}a.wpacu-assets-collapsible:after{position:absolute;font-size:22px;font-family:Dashicons!important;right:14px;top:16px}a.wpacu-assets-collapsible:not(.wpacu-assets-collapsible-active):after{content:""}a.wpacu-assets-collapsible.wpacu-assets-collapsible-active{background-color:#f1f3f8}a.wpacu-assets-collapsible.wpacu-assets-collapsible-active:after{content:""}.wpacu-assets-collapsible-content{padding:0 16px;max-height:0;overflow:hidden;background-color:#fbfbfb8c}.wpacu-assets-collapsible-content .wpacu-assets-note{margin:0;padding:15px 15px 10px}.wpacu-assets-collapsible-content>div:not(.wpacu-assets-table-list-wrap){padding:16px 0 0}.wpacu-assets-collapsible-content>div>p:first-child{margin-top:0}.wpacu-assets-collapsible-content.wpacu-open{max-height:100%}a.wpacu-assets-inline-code-collapsible{color:inherit;font-size:14px;text-decoration:none;display:inline-block;position:relative;cursor:pointer;width:auto;outline:0;background:#f1f3f8;border:1px solid #cdcdcd;padding:4px 21px 4px 8px;margin:0 0 0 6px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}a.wpacu-assets-inline-code-collapsible:hover{border:1px solid #5c5c5c}a.wpacu-assets-inline-code-collapsible:after{position:absolute;font-size:15px;font-family:Dashicons!important;right:-3px;top:-1px;width:14px;height:14px;-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}a.wpacu-assets-inline-code-collapsible:not(.wpacu-assets-inline-code-collapsible-active):after{content:""}a.wpacu-assets-inline-code-collapsible.wpacu-assets-inline-code-collapsible-active:after{content:""}.wpacu-assets-inline-code-collapsible-content{padding:0 8px 2px 0;max-height:0;overflow:hidden;background-color:#fbfbfb8c}.wpacu-assets-inline-code-collapsible-content>div{padding:7px 8px 0}.wpacu-assets-inline-code-collapsible-content>div>p{line-height:normal!important}.wpacu-assets-inline-code-collapsible-content>div>p:first-child{margin-top:0}.wpacu-assets-inline-code-collapsible-content.wpacu-open{max-height:100%}.wpacu_asset_row p div.select{display:inline-block}.wpacu-wrap-choose-position{display:inline}.wpacu-wrap-choose-position>div{display:inline-block}.wpacu-wrap-choose-position select{width:auto;font-size:inherit;display:inline;margin-left:6px;margin-right:4px}.wpacu-wrap-choose-position>.select>.select{display:inline}.wpacu-wrap-choose-position>.select>.select select{padding-right:30px}.wpacu-wrap-choose-position>.select>.select:after{right:15px;top:-4px}.wpacu_handle_unload_regex_input_wrap,.wpacu_load_regex_input_wrap{display:block;width:100%}.wpacu_handle_unload_regex_input_wrap .wpacu_regex_rule_area .wpacu_regex_rule_textarea,.wpacu_load_regex_input_wrap .wpacu_regex_rule_area .wpacu_regex_rule_textarea{line-height:normal;min-height:40px;min-width:300px;max-width:400px;display:inline-block;padding:2px 4px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.wpacu_handle_unload_regex_input_wrap .wpacu_regex_rule_area .wpacu_regex_rule_textarea:focus,.wpacu_load_regex_input_wrap .wpacu_regex_rule_area .wpacu_regex_rule_textarea:focus{width:100%}body.logged-in:not(.wp-admin) .wpacu-view-more-code{box-shadow:inset 0 1px 0 0 #fff;background:linear-gradient(to bottom,#f9f9f9 5%,#e9e9e9 100%);background-color:#f9f9f9;border-radius:6px;border:1px solid #dcdcdc;display:inline-block;cursor:pointer;color:#666;font-size:inherit;font-weight:700;padding:6px 24px;text-decoration:none;text-shadow:0 1px 0 #fff}body.logged-in:not(.wp-admin) .wpacu-view-more-code:hover{background:linear-gradient(to bottom,#e9e9e9 5%,#f9f9f9 100%);background-color:#e9e9e9}body.logged-in:not(.wp-admin) .wpacu-view-more-code:active{position:relative;top:1px}.wpacu-page-options .wpacu-assets-collapsible-content.wpacu-loading{position:relative}.wpacu-page-options .wpacu-assets-collapsible-content.wpacu-loading .wpacu-ajax-loader{display:block!important}.wpacu-page-options .wpacu-assets-collapsible-content .wpacu-ajax-loader{display:none;width:58px;height:58px;position:absolute;bottom:0;right:0;opacity:.75}#wpacu-page-options-ul input[type=checkbox]:checked{border:1px solid #c00}#wpacu-page-options-ul input[type=checkbox]:checked::before{content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M14.83 4.89l1.34.94-5.81 8.38H9.02L5.78 9.67l1.34-1.25 2.57 2.4z' fill='%23cc0000'/%3E%3C/svg%3E")!important}#wpacu-page-options-ul input[type=checkbox]:checked#wpacu_page_options_no_wpacu_load+span{color:#c00}#wpacu-assets-contract-all img,#wpacu-assets-expand-all img{display:none}#wpacu-assets-contract-all:disabled span,#wpacu-assets-expand-all:disabled span{opacity:.6}#wpacu-assets-contract-all:disabled img,#wpacu-assets-expand-all:disabled img{display:inline-block;vertical-align:middle;padding-bottom:3px}.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{border:1px solid #eceeef}.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-hover tbody tr:hover{background-color:rgba(0,0,0,.075)}.wpacu_table_wrap .table-active{background-color:rgba(0,0,0,.075)}.wpacu_table_wrap .table-active>td,.wpacu_table_wrap .table-active>th{background-color:rgba(0,0,0,.075)}.wpacu_table_wrap .table-hover .table-active:hover{background-color:rgba(0,0,0,.075)}.wpacu_table_wrap .table-hover .table-active:hover>td,.wpacu_table_wrap .table-hover .table-active:hover>th{background-color:rgba(0,0,0,.075)}.wpacu_table_wrap .table-success{background-color:#dff0d8}.wpacu_table_wrap .table-success>td,.wpacu_table_wrap .table-success>th{background-color:#dff0d8}.wpacu_table_wrap .table-hover .table-success:hover{background-color:#d0e9c6}.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{background-color:#d9edf7}.wpacu_table_wrap .table-info>td,.wpacu_table_wrap .table-info>th{background-color:#d9edf7}.wpacu_table_wrap .table-hover .table-info:hover{background-color:#c4e3f3}.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{background-color:#fcf8e3}.wpacu_table_wrap .table-warning>td,.wpacu_table_wrap .table-warning>th{background-color:#fcf8e3}.wpacu_table_wrap .table-hover .table-warning:hover{background-color:#faf2cc}.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{background-color:#f2dede}.wpacu_table_wrap .table-danger>td,.wpacu_table_wrap .table-danger>th{background-color:#f2dede}.wpacu_table_wrap .table-hover .table-danger:hover{background-color:#ebcccc}.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{border:0}.wpacu_table_wrap .table-responsive{display:block;width:100%;overflow-x:auto;-ms-overflow-style:-ms-autohiding-scrollbar}.wpacu_table_wrap .table-responsive.table-bordered{border:0}body.wp-admin[class*=asset-cleanup] .wpacu-overview-wrap .wpacu-overview-list-table tr:not(.wpacu-top):hover td{border-top:1px solid #ccd0d4;border-bottom:1px solid #ccd0d4}body.wp-admin[class*=asset-cleanup] .wpacu-overview-wrap .wpacu-overview-list-table tr:not(.wpacu-top):hover td:first-of-type{border-left:1px solid #ccd0d4}body.wp-admin[class*=asset-cleanup] .wpacu-overview-wrap .wpacu-overview-list-table tr:not(.wpacu-top):hover td:last-of-type{border-right:1px solid #ccd0d4}body.wp-admin[class*=asset-cleanup] .wpacu-overview-wrap .wpacu-overview-list-table tr td{font-size:14px;border-top:1px solid transparent;border-bottom:1px solid transparent}body.wp-admin[class*=asset-cleanup] .wpacu-overview-wrap .wpacu-overview-list-table tr td:first-of-type{border-left:1px solid transparent}body.wp-admin[class*=asset-cleanup] .wpacu-overview-wrap .wpacu-overview-list-table tr td:last-of-type{border-right:1px solid transparent}body.wp-admin[class*=asset-cleanup] table.wp-list-table:not(.wpacu-overview-list-table).wpacu-list-table tr:not(.wpacu_selected):hover{-moz-box-shadow:inset 0 0 2px 1px #b3b3b3;-webkit-box-shadow:inset 0 0 2px 1px #b3b3b3;box-shadow:inset 0 0 2px 1px #b3b3b3}body.wp-admin[class*=asset-cleanup] table.wp-list-table:not(.wpacu-overview-list-table) tr:not(:first-of-type):not(.wpacu_selected):hover{-moz-box-shadow:inset 0 0 2px 1px #b3b3b3;-webkit-box-shadow:inset 0 0 2px 1px #b3b3b3;box-shadow:inset 0 0 2px 1px #b3b3b3}.wp-list-table .wpacu_restore_position_row.wpacu_selected{background:#e7e7e7!important}.wp-list-table .wpacu_remove_global_attr_row.wpacu_selected{background:#e7e7e7!important}ul.hire-reasons{margin-bottom:20px}ul.hire-reasons li{font-size:14px;line-height:22px;margin-bottom:12px}ul.hire-reasons li .dashicons{font-size:23px;line-height:23px}ul.hire-reasons li .dashicons.dashicons-yes{color:green}ol.getting-started li{font-size:14px;line-height:22px;margin-bottom:8px}.wpacu-get-help-wrap p{font-size:14px}.wpacu-get-help-wrap .help-content-wrap{margin:20px 0 25px;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-moz-flex;display:-webkit-flex;display:flex;width:100%}@media only screen and (min-width:768px){.wpacu-get-help-wrap .help-content-wrap{-webkit-box-align:start;-ms-flex-align:start;-ms-grid-row-align:flex-start;align-items:flex-start}}@media only screen and (max-width:767px){.wpacu-get-help-wrap .help-content-wrap{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}}.wpacu-get-help-wrap .help-content-wrap .help-content{padding:15px;background:#fff;border:1px solid #e0e0e0;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;box-shadow:2px 3px 8px 0 #231f2038;flex:1 1 50%;margin-bottom:10px}.wpacu-get-help-wrap .help-content-wrap .help-content .content-title{margin:5px 0 15px;line-height:24px}.wpacu-get-help-wrap .help-content-wrap .help-content .cols-wrap{width:100%;margin:0 auto;display:table}.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area{margin:5px 0 0 0;position:relative}.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area.col-left{float:left;width:48%}.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area.col-right{float:right;width:48%}.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area.activate-plugin img{max-width:320px}.wpacu-get-help-wrap .help-content-wrap .help-content .wpacu-image-area img{width:99%;margin:8px 0;border:1px solid #cdcdcd;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}@media only screen and (min-width:768px){.wpacu-get-help-wrap .help-content-wrap .help-content{margin-right:24px}}.wpacu-get-help-wrap .help-content-wrap .help-content.upgrade-help{order:2}@media only screen and (min-width:768px){.wpacu-get-help-wrap .help-content-wrap .help-content.upgrade-help{margin-right:0}}.wpacu-get-help-wrap .help-content-wrap .help-content.tech-help{order:1}@media only screen and (max-width:767px){.wpacu-get-help-wrap .help-content-wrap .help-content.tech-help{margin-bottom:30px}}.wpacu-get-help-wrap .help-content-wrap .help-content ul{list-style:none;padding-left:0}.wpacu-get-help-wrap .help-content-wrap .help-content ul li{font-size:14px;line-height:22px;margin-bottom:15px}.wpacu-get-help-wrap .help-content-wrap .help-content ul li:last-child{margin-bottom:0}.wpacu-get-help-wrap .help-content-wrap .help-content p:last-child{margin-bottom:0}.wpacu-tab-nav-wrapper{border-bottom:none!important}.wpacu-tab-nav-wrapper .nav-tab.nav-tab-active{background:#fff;position:relative}.wpacu-tab-nav-wrapper .nav-tab.nav-tab-active:after{content:"";width:100%;bottom:-2px;left:0;position:absolute;border-bottom:2px solid #fff}select#wpacu-reset-drop-down{max-width:100%}#wpacu-license-data-remove-area{display:none;margin:14px 0 12px}#wpacu-license-data-remove-area.wpacu-visible{display:block}#wpacu-cache-assets-remove-area{display:none;margin:12px 0 25px}#wpacu-cache-assets-remove-area.wpacu-visible{display:block}#wpacu-cached-assets-removed-msg,span#wpacu-license-data-removed-msg{display:block;padding-left:26px}#wpacu-warning-read{display:none;margin:10px 0}#wpacu-warning-read span.dashicons-warning,#wpacu-warning-read span.dashicons-wordpress-alt{color:#c00}#wpacu-warning-read.wpacu-visible{display:block}#wpacu-reset-submit-area{margin:10px 0;clear:both}#wpacu-reset-submit-btn{margin:10px 0 0}.wpacu-tools-area{margin:10px 20px 0 2px}.wpacu-tools-area .wpacu-tools-container{background:#fff;padding:15px;border:1px solid #cdcdcd;width:96%}.wpacu-tools-area .wpacu-tools-container form>div:first-child{margin:0 0 10px}.wpacu-tools-area .wpacu-tools-container form .wpacu-warning{display:none;box-sizing:border-box;margin-top:10px}.wpacu-tools-area .wpacu-tools-container form .wpacu-warning p{margin:0 0 10px;line-height:22px}.wpacu-tools-area .wpacu-tools-container form .wpacu-warning p:only-child{margin:0}.wpacu-tools-area .wpacu-tools-container form .wpacu-warning ul{font-size:13px;list-style-type:disc;padding-left:30px}.wpacu-tools-area .wpacu-tools-container form .wpacu-warning.wpacu-visible{display:block}.wpacu-tools-area .wpacu-export-import-area{padding:10px}.wpacu-tools-area .wpacu-export-import-area form>p:first-of-type{margin-top:0}.wpacu-tools-area .wpacu-export-import-area form>p:last-of-type{margin-bottom:0}.wpacu-tools-area .wpacu-export-import-area:hover{background:rgba(40,44,42,.05);box-shadow:inset 0 0 10px rgba(160,165,170,.15)}.wpacu-tools-area .wpacu-export-import-area+hr{display:block;height:1px;border:0;border-top:1px solid #cdcdcd;margin:10px 0;padding:0}#wpacu-import-form button.wpacu-importing img.wpacu-spinner{display:inline-block}#wpacu-import-form button img.wpacu-spinner{display:none;margin:0 0 0 5px;height:16px;width:16px;vertical-align:middle}@media only screen and (max-width:767px){.wpacu-about-wrap h1{margin:20px}}.wpacu-about-wrap .wpacu-about-text img{width:auto;height:150px;position:absolute;top:20px;right:-20px}@media only screen and (max-width:767px){.wpacu-about-wrap .wpacu-about-text img{display:none}}@media only screen and (max-width:767px){.wpacu-about-wrap .wpacu-about-text{margin:20px}}.wpacu-about-wrap .about-wrap-content .area-title{font-size:19px;line-height:19px;margin-bottom:0}.wpacu-about-wrap hr{margin:10px 0}.wpacu-lite-vs-pro-wrap ul{display:flex;top:0;z-index:10;padding-bottom:14px}.wpacu-lite-vs-pro-wrap li{list-style:none;flex:1}.wpacu-lite-vs-pro-wrap li:last-child{border-right:1px solid #ddd}.wpacu-lite-vs-pro-wrap button{width:100%;border:1px solid #ddd;border-right:0;border-top:0;padding:10px;background:#fff;font-size:14px;font-weight:700;height:60px;color:#999}.wpacu-lite-vs-pro-wrap li.active button{background:#f5f5f5;color:#000}.wpacu-lite-vs-pro-wrap table{border-collapse:collapse;table-layout:fixed;width:100%}.wpacu-lite-vs-pro-wrap th{background:inherit}.wpacu-lite-vs-pro-wrap tr.first{background:inherit;font-size:18px}.wpacu-lite-vs-pro-wrap tr.first .bg-lite{border-top:4px solid #6d6e70;background:#fff;color:#6d6e70}.wpacu-lite-vs-pro-wrap tr.first .bg-pro{border-top:4px solid green;background:#fff;color:green}.wpacu-lite-vs-pro-wrap tr:not(.first){background:#fff}.wpacu-lite-vs-pro-wrap tr:not(:last-child):hover{background:#f8f8f8}.wpacu-lite-vs-pro-wrap td,.wpacu-lite-vs-pro-wrap th{height:53px;line-height:22px}@media only screen and (max-width:767px){.wpacu-lite-vs-pro-wrap td,.wpacu-lite-vs-pro-wrap th{font-size:14px}}.wpacu-lite-vs-pro-wrap td,.wpacu-lite-vs-pro-wrap th{border:1px solid #ddd;padding:10px 16px 10px 16px;empty-cells:show}.wpacu-lite-vs-pro-wrap td,.wpacu-lite-vs-pro-wrap th{text-align:left}.wpacu-lite-vs-pro-wrap td+td,.wpacu-lite-vs-pro-wrap th+th{text-align:center;display:none}.wpacu-lite-vs-pro-wrap td.default{display:table-cell}.wpacu-lite-vs-pro-wrap .txt-l{font-size:28px;font-weight:700}@media only screen and (max-width:767px){.wpacu-lite-vs-pro-wrap .txt-l{font-size:20px}}.wpacu-lite-vs-pro-wrap .txt-top{position:relative;top:-9px;left:-2px}.wpacu-lite-vs-pro-wrap svg{width:18px;height:18px}.wpacu-lite-vs-pro-wrap svg path{fill:green}.wpacu-lite-vs-pro-wrap .tick{color:#2ca01c}.wpacu-lite-vs-pro-wrap .tick img{fill:#2ca01c}@media only screen and (max-width:767px){.wpacu-lite-vs-pro-wrap .tick{font-size:15px}}.wpacu-lite-vs-pro-wrap .na{font-size:18px;opacity:.3}@media only screen and (max-width:767px){.wpacu-lite-vs-pro-wrap .na{font-size:15px}}.wpacu-lite-vs-pro-wrap .hide{border:0;background:0 0}.wpacu-lite-vs-pro-wrap td,.wpacu-lite-vs-pro-wrap th{display:table-cell!important}.wpacu-lite-vs-pro-wrap td,.wpacu-lite-vs-pro-wrap th{width:auto}.wpacu-lite-vs-pro-wrap td+td,.wpacu-lite-vs-pro-wrap th+th{width:130px}@media only screen and (max-width:767px){.wpacu-lite-vs-pro-wrap td+td,.wpacu-lite-vs-pro-wrap th+th{width:42px}}@media only screen and (min-width:768px){.wpacu-lite-vs-pro-wrap td .button{font-size:16px!important}}@media only screen and (max-width:767px){.wpacu-lite-vs-pro-wrap td .button{font-size:14px!important;padding:0 20px!important}.wpacu-lite-vs-pro-wrap td .button.button-primary{margin-top:6px;margin-bottom:14px}}@media only screen and (min-width:768px){.wpacu-lite-vs-pro-wrap{margin-bottom:40px;clear:both}}.wpacu-video-areas>div{padding:20px;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px}.wpacu-video-areas>div:nth-child(odd){background:#fff}.wpacu-video-areas>div:nth-child(even){background:inherit}@media only screen and (min-width:1200px){.wpacu-video-areas .wpacu-video-area-wrapper{margin:0 0 15px;display:flex}}@media only screen and (min-width:992px) and (max-width:1199px){.wpacu-video-areas .wpacu-video-area-wrapper{margin:0 0 40px}}.wpacu-video-areas .wpacu-video-area-wrapper ol{font-size:14px}.wpacu-video-areas .wpacu-video-area-wrapper ul{font-size:14px;list-style:disc;margin-left:22px}@media only screen and (min-width:1200px){.wpacu-video-areas .wpacu-video-area-wrapper .wpacu-col-right{padding:0 20px 0 25px}}@media only screen and (min-width:1200px){.wpacu-video-areas .wpacu-video-area-wrapper .wpacu-col-right p:first-child{margin-top:0}}@media only screen and (min-width:1200px){.wpacu-video-areas .wpacu-video-area-wrapper .wpacu-col-right p:last-child{margin-bottom:0}}@media only screen and (max-width:1199px){.wpacu-video-areas .wpacu-video-area-wrapper .wpacu-video-wrapper{position:relative;padding-bottom:56.25%;padding-top:30px;height:0;overflow:hidden}}.wpacu-video-areas .wpacu-video-area-wrapper .wpacu-video-wrapper iframe{width:560px;height:315px}@media only screen and (max-width:1199px){.wpacu-video-areas .wpacu-video-area-wrapper .wpacu-video-wrapper iframe{position:absolute;top:0;left:0;width:100%;height:100%}}#wpassetcleanup_asset_list.postbox h2{padding-left:52px!important;position:relative}#wpassetcleanup_asset_list.postbox h2:before{content:"";position:absolute;background-image:url(images/wpacu-logo-transparent-bg-v1.png);background-size:cover;top:6px;left:13px;width:33px;height:26px;opacity:.8;-webkit-filter:grayscale(100%);filter:grayscale(100%)}body.wp-admin .wpacu-modal{display:none;position:fixed;z-index:1000000;padding-top:15%;left:0;top:0;width:100%;height:100%;overflow:auto;background-color:#000;background-color:rgba(0,0,0,.4)}body.wp-admin .wpacu-modal pre{white-space:normal}body.wp-admin .wpacu-modal-content{background-color:#fefefe;margin:auto;padding:20px;border:1px solid #888;width:80%;max-width:600px;border-radius:10px}body.wp-admin .wpacu-modal-content pre{white-space:normal}body.wp-admin .wpacu-close{color:#aaa;float:right;font-size:28px;font-weight:700}body.wp-admin .wpacu-close:focus,body.wp-admin .wpacu-close:hover{color:#000;text-decoration:none;cursor:pointer}.wpacu-bulk-changes-tabs{display:table;position:relative;overflow:hidden;margin:0;width:100%}.wpacu-bulk-changes-tabs li{border-top:1px solid rgba(40,44,42,.1);border-left:1px solid rgba(40,44,42,.1);border-bottom:1px solid rgba(40,44,42,.1);float:left;line-height:38px;padding:0;position:relative;margin-bottom:12px}.wpacu-bulk-changes-tabs li:last-child{border-right:1px solid rgba(40,44,42,.1)}.wpacu-bulk-changes-tabs a{position:relative;background:rgba(40,44,42,.05);color:#004567;font-size:14px;font-weight:500;display:block;letter-spacing:0;outline:0;padding:6px 20px;text-decoration:none;border-top:3px solid transparent}.wpacu-bulk-changes-tabs a:hover{background:#f1f1f1;border-top:3px solid transparent}.wpacu-bulk-changes-tabs .current a{background:#fff;border-top:3px solid #004567}.wpacu-bulk-changes-tabs .current a:hover{background:#fff}.wpacu-bulk-changes-tabs .current a:after,.wpacu-bulk-changes-tabs .current a:before{top:100%;left:50%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.wpacu-bulk-changes-tabs .current a:after{border-color:rgba(136,183,213,0);border-top-color:#fff;border-width:12px;margin-left:-12px}.wpacu-bulk-changes-tabs .current a:before{border-color:rgba(194,225,245,0);border-top-color:rgba(40,44,42,.1);border-width:13px;margin-left:-13px}img.wpacu-emoji{display:inline!important;border:none!important;height:1em!important;width:1em!important;margin:0 .07em!important;vertical-align:-.1em!important;background:0 0!important;padding:0!important;box-shadow:none!important}.wpacu-list-table.plugins{width:98%;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}#wpacu-plugins-load-manager-wrap .help_link{text-decoration:none;color:inherit;vertical-align:middle}#wpacu-plugins-load-manager-wrap table td{border-bottom:1px solid #e7e7e7}#wpacu-plugins-load-manager-wrap table .wpacu_plugin_icon>img{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}#wpacu-plugins-load-manager-wrap table .wpacu_plugin_icon>div{background:#efefef;border:#cdcdcd;border-radius:3px;width:40px;height:40px;vertical-align:middle;position:relative;text-align:center}#wpacu-plugins-load-manager-wrap table .wpacu_plugin_icon>div>span{font-size:30px;color:#b3b3b3;top:50%;vertical-align:middle;left:50%;transform:translate(-50%,-50%);width:30px;height:30px;position:absolute}#wpacu-plugins-load-manager-wrap table td.wpacu_plugin_details{vertical-align:middle;padding:14px 20px 14px 8px;min-width:360px}#wpacu-plugins-load-manager-wrap table td.wpacu_plugin_details .wpacu_plugin_title{font-size:1.2em;font-weight:600}#wpacu-plugins-load-manager-wrap table td.wpacu_plugin_details .wpacu_plugin_path{font-style:italic;color:grey;font-size:12px;vertical-align:bottom}#wpacu-plugins-load-manager-wrap table td.wpacu_plugin_icon{padding:10px 4px 0 10px}#wpacu-plugins-load-manager-wrap table div.wpacu_plugin_icon{padding:0 4px}#wpacu-plugins-load-manager-wrap .wpacu_plugin_unload_rules_options_wrap .wpacu_plugin_rules_wrap{flex-grow:1;margin:0 16px 0 0!important;padding:12px 10px 6px 0!important}#wpacu-plugins-load-manager-wrap .wpacu_plugin_unload_rules_options_wrap .wpacu_plugin_rules_wrap fieldset{border:1px solid #cdcdcd;padding:10px;background:inherit;border-radius:5px}#wpacu-plugins-load-manager-wrap .wpacu_plugin_unload_rules_options_wrap .wpacu_plugin_rules_wrap fieldset legend{width:auto;font-weight:400;font-size:inherit;padding:8px 11px;margin:0;background:inherit;border:1px solid #cdcdcd;border-radius:5px}#wpacu-plugins-load-manager-wrap .wpacu_plugin_unload_rules_options_wrap .wpacu_plugin_rules_wrap ul.wpacu_plugin_rules{margin:0;vertical-align:middle}#wpacu-plugins-load-manager-wrap .wpacu_plugin_unload_rules_options_wrap .wpacu_plugin_rules_wrap ul.wpacu_plugin_rules label{vertical-align:top}#wpacu-plugins-load-manager-wrap .wpacu_plugin_unload_rules_options_wrap .wpacu_plugin_rules_wrap ul.wpacu_plugin_rules label.wpacu_plugin_unload_rule_input_checked{color:#c00}#wpacu-plugins-load-manager-wrap .wpacu_plugin_unload_rules_options_wrap .wpacu_plugin_rules_wrap ul.wpacu_plugin_rules .wpacu_plugin_unload_logged_in:checked+span{color:#c00}#wpacu-plugins-load-manager-wrap .wpacu_plugin_unload_rules_options_wrap .wpacu_plugin_rules_wrap ul.wpacu_plugin_rules>li{display:inline-block;float:left;margin:1px 25px 1px 0;line-height:30px}#wpacu-plugins-load-manager-wrap .wpacu_plugin_unload_rules_options_wrap .wpacu_plugin_rules_wrap ul.wpacu_plugin_rules>li:last-of-type{margin:1px 0}#wpacu-plugins-load-manager-wrap .wpacu_plugin_load_exception_options_wrap{padding-top:5px;width:auto}#wpacu-plugins-load-manager-wrap .wpacu_plugin_load_exception_options_wrap .wpacu_plugin_rules_wrap{margin:0 16px 0 0!important;padding:6px 10px 6px 0!important}#wpacu-plugins-load-manager-wrap .wpacu_plugin_load_exception_options_wrap .wpacu_plugin_rules_wrap fieldset{border:1px solid #cdcdcd;padding:10px;background:inherit;border-radius:5px}#wpacu-plugins-load-manager-wrap .wpacu_plugin_load_exception_options_wrap .wpacu_plugin_rules_wrap fieldset legend{width:auto;font-weight:400;font-size:inherit;padding:8px 11px;margin:0;background:inherit;border:1px solid #cdcdcd;border-radius:5px}#wpacu-plugins-load-manager-wrap .wpacu_plugin_load_exception_options_wrap .wpacu_plugin_rules_wrap ul.wpacu_plugin_rules{margin:0;vertical-align:middle}#wpacu-plugins-load-manager-wrap .wpacu_plugin_load_exception_options_wrap .wpacu_plugin_rules_wrap ul.wpacu_plugin_rules label{vertical-align:top}#wpacu-plugins-load-manager-wrap .wpacu_plugin_load_exception_options_wrap .wpacu_plugin_rules_wrap ul.wpacu_plugin_rules.wpacu_exception_options_area>li{display:inline-block;float:left;margin:1px 25px 1px 0;line-height:20px}#wpacu-plugins-load-manager-wrap .wpacu_plugin_load_exception_options_wrap .wpacu_plugin_rules_wrap ul.wpacu_plugin_rules.wpacu_exception_options_area>li:last-of-type{margin:1px 0}#wpacu-plugins-load-manager-wrap .wpacu_plugin_load_exception_options_wrap .wpacu_plugin_rules_wrap ul.wpacu_plugin_rules .wpacu_plugin_load_rule_input:checked+span{color:green}#wpacu-plugins-load-manager-wrap .wpacu_plugin_unload_regex_input_wrap{display:block}#wpacu-plugins-load-manager-wrap .wpacu_plugin_unload_regex_input_wrap textarea{margin-top:6px;min-width:400px;min-height:40px}#wpacu-plugins-load-manager-wrap .wpacu_exception_options_area textarea{margin-top:6px;min-width:400px;min-height:40px;width:100%}#wpacu-plugins-load-manager-wrap textarea{line-height:normal;min-height:20px;min-width:300px;display:inline-block;padding:2px 4px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}#wpacu-plugins-load-manager-wrap textarea:focus{width:100%}#wpacu-plugins-load-manager-wrap textarea.wpacu_disabled{background:#fbfafa!important;color:inherit}
|
assets/sweetalert2/dist/sweetalert2.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.swal2-popup.swal2-toast{flex-direction:row;align-items:center;width:auto;padding:.625em;overflow-y:hidden;background:#fff;box-shadow:0 0 .625em #d9d9d9}.swal2-popup.swal2-toast .swal2-header{flex-direction:row;padding:0}.swal2-popup.swal2-toast .swal2-title{flex-grow:1;justify-content:flex-start;margin:0 .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{position:static;width:.8em;height:.8em;line-height:.8}.swal2-popup.swal2-toast .swal2-content{justify-content:flex-start;padding:0;font-size:1em}.swal2-popup.swal2-toast .swal2-icon{width:2em;min-width:2em;height:2em;margin:0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{font-size:.25em}}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{flex-basis:auto!important;width:auto;height:auto;margin:0 .3125em;padding:0}.swal2-popup.swal2-toast .swal2-styled{margin:0 .3125em;padding:.3125em .625em;font-size:1em}.swal2-popup.swal2-toast .swal2-styled:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(50,100,150,.4)}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:flex;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;flex-direction:row;align-items:center;justify-content:center;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-top{align-items:flex-start}.swal2-container.swal2-top-left,.swal2-container.swal2-top-start{align-items:flex-start;justify-content:flex-start}.swal2-container.swal2-top-end,.swal2-container.swal2-top-right{align-items:flex-start;justify-content:flex-end}.swal2-container.swal2-center{align-items:center}.swal2-container.swal2-center-left,.swal2-container.swal2-center-start{align-items:center;justify-content:flex-start}.swal2-container.swal2-center-end,.swal2-container.swal2-center-right{align-items:center;justify-content:flex-end}.swal2-container.swal2-bottom{align-items:flex-end}.swal2-container.swal2-bottom-left,.swal2-container.swal2-bottom-start{align-items:flex-end;justify-content:flex-start}.swal2-container.swal2-bottom-end,.swal2-container.swal2-bottom-right{align-items:flex-end;justify-content:flex-end}.swal2-container.swal2-bottom-end>:first-child,.swal2-container.swal2-bottom-left>:first-child,.swal2-container.swal2-bottom-right>:first-child,.swal2-container.swal2-bottom-start>:first-child,.swal2-container.swal2-bottom>:first-child{margin-top:auto}.swal2-container.swal2-grow-fullscreen>.swal2-modal{display:flex!important;flex:1;align-self:stretch;justify-content:center}.swal2-container.swal2-grow-row>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-grow-column{flex:1;flex-direction:column}.swal2-container.swal2-grow-column.swal2-bottom,.swal2-container.swal2-grow-column.swal2-center,.swal2-container.swal2-grow-column.swal2-top{align-items:center}.swal2-container.swal2-grow-column.swal2-bottom-left,.swal2-container.swal2-grow-column.swal2-bottom-start,.swal2-container.swal2-grow-column.swal2-center-left,.swal2-container.swal2-grow-column.swal2-center-start,.swal2-container.swal2-grow-column.swal2-top-left,.swal2-container.swal2-grow-column.swal2-top-start{align-items:flex-start}.swal2-container.swal2-grow-column.swal2-bottom-end,.swal2-container.swal2-grow-column.swal2-bottom-right,.swal2-container.swal2-grow-column.swal2-center-end,.swal2-container.swal2-grow-column.swal2-center-right,.swal2-container.swal2-grow-column.swal2-top-end,.swal2-container.swal2-grow-column.swal2-top-right{align-items:flex-end}.swal2-container.swal2-grow-column>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-no-transition{transition:none!important}.swal2-container:not(.swal2-top):not(.swal2-top-start):not(.swal2-top-end):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-bottom-left):not(.swal2-bottom-right):not(.swal2-grow-fullscreen)>.swal2-modal{margin:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-container .swal2-modal{margin:0!important}}.swal2-popup{display:none;position:relative;box-sizing:border-box;flex-direction:column;justify-content:center;width:32em;max-width:100%;padding:1.25em;border:none;border-radius:.3125em;background:#fff;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-header{display:flex;flex-direction:column;align-items:center;padding:0 1.8em}.swal2-title{position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:100%;margin:1.25em auto 0;padding:0 1.6em}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-loader{display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 transparent #2778c4 transparent}.swal2-styled{margin:.3125em;padding:.625em 2em;box-shadow:none;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#2778c4;color:#fff;font-size:1.0625em}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#d14529;color:#fff;font-size:1.0625em}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#757575;color:#fff;font-size:1.0625em}.swal2-styled:focus{outline:0;box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(50,100,150,.4)}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1.25em 0 0;padding:1em 0 0;border-top:1px solid #eee;color:#545454;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;height:.25em;overflow:hidden;border-bottom-right-radius:.3125em;border-bottom-left-radius:.3125em}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:1.25em auto}.swal2-close{position:absolute;z-index:2;top:0;right:0;align-items:center;justify-content:center;width:1.2em;height:1.2em;padding:0;overflow:hidden;transition:color .1s ease-out;border:none;border-radius:0;background:0 0;color:#ccc;font-family:serif;font-size:2.5em;line-height:1.2;cursor:pointer}.swal2-close:hover{transform:none;background:0 0;color:#f27474}.swal2-close::-moz-focus-inner{border:0}.swal2-content{z-index:1;justify-content:center;margin:0;padding:0 1.6em;color:#545454;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em auto}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;background:inherit;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);color:inherit;font-size:1.125em}.swal2-file.swal2-inputerror,.swal2-input.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-file:focus,.swal2-input:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:0 0 3px #c4e6f5}.swal2-file::-moz-placeholder,.swal2-input::-moz-placeholder,.swal2-textarea::-moz-placeholder{color:#ccc}.swal2-file:-ms-input-placeholder,.swal2-input:-ms-input-placeholder,.swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-file::-ms-input-placeholder,.swal2-input::-ms-input-placeholder,.swal2-textarea::-ms-input-placeholder{color:#ccc}.swal2-file::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em auto;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-input[type=number]{max-width:10em}.swal2-file{background:inherit;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:inherit;color:inherit;font-size:1.125em}.swal2-checkbox,.swal2-radio{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-checkbox label,.swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-checkbox input,.swal2-radio input{margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto}.swal2-validation-message{display:none;align-items:center;justify-content:center;margin:0 -2.7em;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:1.25em auto 1.875em;border:.25em solid transparent;border-radius:50%;font-family:inherit;line-height:5em;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-.25em;left:-.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:0 0 1.25em;padding:0;background:inherit;font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{right:auto;left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@supports (-ms-accelerator:true){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@-moz-document url-prefix(){.swal2-close:focus{outline:2px solid rgba(50,100,150,.4)}}@-webkit-keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@-webkit-keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@-webkit-keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@-webkit-keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-container{top:auto;right:auto;bottom:auto;left:auto;max-width:calc(100% - .625em * 2);background-color:transparent!important}body.swal2-no-backdrop .swal2-container>.swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}body.swal2-no-backdrop .swal2-container.swal2-top{top:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-top-left,body.swal2-no-backdrop .swal2-container.swal2-top-start{top:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-top-end,body.swal2-no-backdrop .swal2-container.swal2-top-right{top:0;right:0}body.swal2-no-backdrop .swal2-container.swal2-center{top:50%;left:50%;transform:translate(-50%,-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-left,body.swal2-no-backdrop .swal2-container.swal2-center-start{top:50%;left:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-end,body.swal2-no-backdrop .swal2-container.swal2-center-right{top:50%;right:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom{bottom:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom-left,body.swal2-no-backdrop .swal2-container.swal2-bottom-start{bottom:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-bottom-end,body.swal2-no-backdrop .swal2-container.swal2-bottom-right{right:0;bottom:0}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static!important}}body.swal2-toast-shown .swal2-container{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}body.swal2-toast-column .swal2-toast{flex-direction:column;align-items:stretch}body.swal2-toast-column .swal2-toast .swal2-actions{flex:1;align-self:stretch;height:2.2em;margin-top:.3125em}body.swal2-toast-column .swal2-toast .swal2-loading{justify-content:center}body.swal2-toast-column .swal2-toast .swal2-input{height:2em;margin:.3125em auto;font-size:1em}body.swal2-toast-column .swal2-toast .swal2-validation-message{font-size:1em}
|
assets/sweetalert2/dist/sweetalert2.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Sweetalert2=e()}(this,function(){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function s(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function c(){return(c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function i(t,e,n){return(i=d()?Reflect.construct:function(t,e,n){var o=[null];o.push.apply(o,e);var i=new(Function.bind.apply(t,o));return n&&l(i,n.prototype),i}).apply(null,arguments)}function p(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t,e,n){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var o=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}(t,e);if(o){var i=Object.getOwnPropertyDescriptor(o,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function m(e){return Object.keys(e).map(function(t){return e[t]})}function h(t){return Array.prototype.slice.call(t)}function g(t,e){var n;n='"'.concat(t,'" is deprecated and will be removed in the next major release. Please use "').concat(e,'" instead.'),-1===Y.indexOf(n)&&(Y.push(n),W(n))}function v(t){return t&&"function"==typeof t.toPromise}function y(t){return v(t)?t.toPromise():Promise.resolve(t)}function b(t){return t&&Promise.resolve(t)===t}function w(t){return t instanceof Element||"object"===r(e=t)&&e.jquery;var e}function t(t){var e={};for(var n in t)e[t[n]]="swal2-"+t[n];return e}function C(){return document.body.querySelector(".".concat($.container))}function k(t){var e=C();return e?e.querySelector(t):null}function e(t){return k(".".concat(t))}function x(){return e($.popup)}function n(){var t=x();return h(t.querySelectorAll(".".concat($.icon)))}function B(){var t=n().filter(function(t){return bt(t)});return t.length?t[0]:null}function A(){return e($.title)}function P(){return e($.content)}function E(){return e($.image)}function O(){return e($["progress-steps"])}function S(){return e($["validation-message"])}function T(){return k(".".concat($.actions," .").concat($.confirm))}function L(){return k(".".concat($.actions," .").concat($.deny))}function D(){return k(".".concat($.loader))}function I(){return k(".".concat($.actions," .").concat($.cancel))}function q(){return e($.actions)}function j(){return e($.header)}function M(){return e($.footer)}function V(){return e($["timer-progress-bar"])}function H(){return e($.close)}function R(){var t=h(x().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(function(t,e){return t=parseInt(t.getAttribute("tabindex")),(e=parseInt(e.getAttribute("tabindex")))<t?1:t<e?-1:0}),e=h(x().querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n')).filter(function(t){return"-1"!==t.getAttribute("tabindex")});return function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(t.concat(e)).filter(function(t){return bt(t)})}function N(){return!X()&&!document.body.classList.contains($["no-backdrop"])}function U(e,t){var n;e.textContent="",t&&(n=(new DOMParser).parseFromString(t,"text/html"),h(n.querySelector("head").childNodes).forEach(function(t){e.appendChild(t)}),h(n.querySelector("body").childNodes).forEach(function(t){e.appendChild(t)}))}function _(t,e){if(e){for(var n=e.split(/\s+/),o=0;o<n.length;o++)if(!t.classList.contains(n[o]))return;return 1}}function F(t,e,n){var o,i;if(i=e,h((o=t).classList).forEach(function(t){-1===m($).indexOf(t)&&-1===m(J).indexOf(t)&&-1===m(i.showClass).indexOf(t)&&o.classList.remove(t)}),e.customClass&&e.customClass[n]){if("string"!=typeof e.customClass[n]&&!e.customClass[n].forEach)return W("Invalid type of customClass.".concat(n,'! Expected string or iterable object, got "').concat(r(e.customClass[n]),'"'));gt(t,e.customClass[n])}}var z="SweetAlert2:",W=function(t){console.warn("".concat(z," ").concat(t))},K=function(t){console.error("".concat(z," ").concat(t))},Y=[],Z=function(t){return"function"==typeof t?t():t},Q=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),$=t(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","toast-column","show","hide","close","title","header","content","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),J=t(["success","warning","info","question","error"]),X=function(){return document.body.classList.contains($["toast-shown"])},G={previousBodyPadding:null};function tt(t,e){if(!e)return null;switch(e){case"select":case"textarea":case"file":return yt(t,$[e]);case"checkbox":return t.querySelector(".".concat($.checkbox," input"));case"radio":return t.querySelector(".".concat($.radio," input:checked"))||t.querySelector(".".concat($.radio," input:first-child"));case"range":return t.querySelector(".".concat($.range," input"));default:return yt(t,$.input)}}function et(t){var e;t.focus(),"file"!==t.type&&(e=t.value,t.value="",t.value=e)}function nt(t,e,n){t&&e&&("string"==typeof e&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(function(e){t.forEach?t.forEach(function(t){n?t.classList.add(e):t.classList.remove(e)}):n?t.classList.add(e):t.classList.remove(e)}))}function ot(t,e,n){n||0===parseInt(n)?t.style[e]="number"==typeof n?"".concat(n,"px"):n:t.style.removeProperty(e)}function it(t,e){var n=1<arguments.length&&void 0!==e?e:"flex";t.style.display=n}function rt(t){t.style.display="none"}function at(t,e,n,o){var i=t.querySelector(e);i&&(i.style[n]=o)}function st(t,e,n){e?it(t,n):rt(t)}function ct(t){return!!(t.scrollHeight>t.clientHeight)}function ut(t){var e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),o=parseFloat(e.getPropertyValue("transition-duration")||"0");return 0<n||0<o}function lt(t,e){var n=1<arguments.length&&void 0!==e&&e,o=V();bt(o)&&(n&&(o.style.transition="none",o.style.width="100%"),setTimeout(function(){o.style.transition="width ".concat(t/1e3,"s linear"),o.style.width="0%"},10))}function dt(){return"undefined"==typeof window||"undefined"==typeof document}function pt(t){wn.isVisible()&&ht!==t.target.value&&wn.resetValidationMessage(),ht=t.target.value}function ft(t,e){t instanceof HTMLElement?e.appendChild(t):"object"===r(t)?kt(t,e):t&&U(e,t)}function mt(t,e){var n=q(),o=D(),i=T(),r=L(),a=I();e.showConfirmButton||e.showDenyButton||e.showCancelButton||rt(n),F(n,e,"actions"),At(i,"confirm",e),At(r,"deny",e),At(a,"cancel",e),o.innerHTML=e.loaderHtml,e.buttonsStyling?function(t,e,n,o){gt([t,e,n],$.styled),o.confirmButtonColor&&(t.style.backgroundColor=o.confirmButtonColor);o.denyButtonColor&&(e.style.backgroundColor=o.denyButtonColor);o.cancelButtonColor&&(n.style.backgroundColor=o.cancelButtonColor)}(i,r,a,e):vt([i,r,a],$.styled),e.reverseButtons&&(n.insertBefore(a,o),n.insertBefore(r,o),n.insertBefore(i,o))}var ht,gt=function(t,e){nt(t,e,!0)},vt=function(t,e){nt(t,e,!1)},yt=function(t,e){for(var n=0;n<t.childNodes.length;n++)if(_(t.childNodes[n],e))return t.childNodes[n]},bt=function(t){return!(!t||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))},wt='\n <div aria-labelledby="'.concat($.title,'" aria-describedby="').concat($.content,'" class="').concat($.popup,'" tabindex="-1">\n <div class="').concat($.header,'">\n <ul class="').concat($["progress-steps"],'"></ul>\n <div class="').concat($.icon," ").concat(J.error,'"></div>\n <div class="').concat($.icon," ").concat(J.question,'"></div>\n <div class="').concat($.icon," ").concat(J.warning,'"></div>\n <div class="').concat($.icon," ").concat(J.info,'"></div>\n <div class="').concat($.icon," ").concat(J.success,'"></div>\n <img class="').concat($.image,'" />\n <h2 class="').concat($.title,'" id="').concat($.title,'"></h2>\n <button type="button" class="').concat($.close,'"></button>\n </div>\n <div class="').concat($.content,'">\n <div id="').concat($.content,'" class="').concat($["html-container"],'"></div>\n <input class="').concat($.input,'" />\n <input type="file" class="').concat($.file,'" />\n <div class="').concat($.range,'">\n <input type="range" />\n <output></output>\n </div>\n <select class="').concat($.select,'"></select>\n <div class="').concat($.radio,'"></div>\n <label for="').concat($.checkbox,'" class="').concat($.checkbox,'">\n <input type="checkbox" />\n <span class="').concat($.label,'"></span>\n </label>\n <textarea class="').concat($.textarea,'"></textarea>\n <div class="').concat($["validation-message"],'" id="').concat($["validation-message"],'"></div>\n </div>\n <div class="').concat($.actions,'">\n <div class="').concat($.loader,'"></div>\n <button type="button" class="').concat($.confirm,'"></button>\n <button type="button" class="').concat($.deny,'"></button>\n <button type="button" class="').concat($.cancel,'"></button>\n </div>\n <div class="').concat($.footer,'"></div>\n <div class="').concat($["timer-progress-bar-container"],'">\n <div class="').concat($["timer-progress-bar"],'"></div>\n </div>\n </div>\n').replace(/(^|\n)\s*/g,""),Ct=function(t){var e,n,o,i,r,a,s,c,u,l,d,p,f,m,h,g=!!(e=C())&&(e.parentNode.removeChild(e),vt([document.documentElement,document.body],[$["no-backdrop"],$["toast-shown"],$["has-column"]]),!0);dt()?K("SweetAlert2 requires document to initialize"):((n=document.createElement("div")).className=$.container,g&>(n,$["no-transition"]),U(n,wt),(o="string"==typeof(i=t.target)?document.querySelector(i):i).appendChild(n),r=t,(a=x()).setAttribute("role",r.toast?"alert":"dialog"),a.setAttribute("aria-live",r.toast?"polite":"assertive"),r.toast||a.setAttribute("aria-modal","true"),s=o,"rtl"===window.getComputedStyle(s).direction&>(C(),$.rtl),c=P(),u=yt(c,$.input),l=yt(c,$.file),d=c.querySelector(".".concat($.range," input")),p=c.querySelector(".".concat($.range," output")),f=yt(c,$.select),m=c.querySelector(".".concat($.checkbox," input")),h=yt(c,$.textarea),u.oninput=pt,l.onchange=pt,f.onchange=pt,m.onchange=pt,h.oninput=pt,d.oninput=function(t){pt(t),p.value=d.value},d.onchange=function(t){pt(t),d.nextSibling.value=d.value})},kt=function(t,e){t.jquery?xt(e,t):U(e,t.toString())},xt=function(t,e){if(t.textContent="",0 in e)for(var n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},Bt=function(){if(dt())return!1;var t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&void 0!==t.style[n])return e[n];return!1}();function At(t,e,n){var o;st(t,n["show".concat((o=e).charAt(0).toUpperCase()+o.slice(1),"Button")],"inline-block"),U(t,n["".concat(e,"ButtonText")]),t.setAttribute("aria-label",n["".concat(e,"ButtonAriaLabel")]),t.className=$[e],F(t,n,"".concat(e,"Button")),gt(t,n["".concat(e,"ButtonClass")])}function Pt(t,e){var n,o,i,r,a,s,c,u,l=C();l&&(n=l,"string"==typeof(o=e.backdrop)?n.style.background=o:o||gt([document.documentElement,document.body],$["no-backdrop"]),!e.backdrop&&e.allowOutsideClick&&W('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),i=l,(r=e.position)in $?gt(i,$[r]):(W('The "position" parameter is not valid, defaulting to "center"'),gt(i,$.center)),a=l,!(s=e.grow)||"string"!=typeof s||(c="grow-".concat(s))in $&>(a,$[c]),F(l,e,"container"),(u=document.body.getAttribute("data-swal2-queue-step"))&&(l.setAttribute("data-queue-step",u),document.body.removeAttribute("data-swal2-queue-step")))}function Et(t,e){t.placeholder&&!e.inputPlaceholder||(t.placeholder=e.inputPlaceholder)}function Ot(t,e,n){var o,i;n.inputLabel&&(t.id=$.input,o=document.createElement("label"),i=$["input-label"],o.setAttribute("for",t.id),o.className=i,o.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",o))}var St={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},Tt=["input","file","range","select","radio","checkbox","textarea"],Lt=function(t){if(!jt[t.input])return K('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(t.input,'"'));var e=qt(t.input),n=jt[t.input](e,t);it(n),setTimeout(function(){et(n)})},Dt=function(t,e){var n=tt(P(),t);if(n)for(var o in!function(t){for(var e=0;e<t.attributes.length;e++){var n=t.attributes[e].name;-1===["type","value","style"].indexOf(n)&&t.removeAttribute(n)}}(n),e)"range"===t&&"placeholder"===o||n.setAttribute(o,e[o])},It=function(t){var e=qt(t.input);t.customClass&>(e,t.customClass.input)},qt=function(t){var e=$[t]?$[t]:$.input;return yt(P(),e)},jt={};jt.text=jt.email=jt.password=jt.number=jt.tel=jt.url=function(t,e){return"string"==typeof e.inputValue||"number"==typeof e.inputValue?t.value=e.inputValue:b(e.inputValue)||W('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(r(e.inputValue),'"')),Ot(t,t,e),Et(t,e),t.type=e.input,t},jt.file=function(t,e){return Ot(t,t,e),Et(t,e),t},jt.range=function(t,e){var n=t.querySelector("input"),o=t.querySelector("output");return n.value=e.inputValue,n.type=e.input,o.value=e.inputValue,Ot(n,t,e),t},jt.select=function(t,e){var n;return t.textContent="",e.inputPlaceholder&&(n=document.createElement("option"),U(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)),Ot(t,t,e),t},jt.radio=function(t){return t.textContent="",t},jt.checkbox=function(t,e){var n=tt(P(),"checkbox");n.value=1,n.id=$.checkbox,n.checked=Boolean(e.inputValue);var o=t.querySelector("span");return U(o,e.inputPlaceholder),t},jt.textarea=function(e,t){var n,o;return e.value=t.inputValue,Et(e,t),Ot(e,e,t),"MutationObserver"in window&&(n=parseInt(window.getComputedStyle(x()).width),o=parseInt(window.getComputedStyle(x()).paddingLeft)+parseInt(window.getComputedStyle(x()).paddingRight),new MutationObserver(function(){var t=e.offsetWidth+o;x().style.width=n<t?"".concat(t,"px"):null}).observe(e,{attributes:!0,attributeFilter:["style"]})),e};function Mt(t,e){var n,o,i,r,a,s=P().querySelector("#".concat($.content));e.html?(ft(e.html,s),it(s,"block")):e.text?(s.textContent=e.text,it(s,"block")):rt(s),n=t,o=e,i=P(),r=St.innerParams.get(n),a=!r||o.input!==r.input,Tt.forEach(function(t){var e=$[t],n=yt(i,e);Dt(t,o.inputAttributes),n.className=e,a&&rt(n)}),o.input&&(a&&Lt(o),It(o)),F(P(),e,"content")}function Vt(){return C()&&C().getAttribute("data-queue-step")}function Ht(t,c){var u=O();if(!c.progressSteps||0===c.progressSteps.length)return rt(u),0;it(u),u.textContent="";var l=parseInt(void 0===c.currentProgressStep?Vt():c.currentProgressStep);l>=c.progressSteps.length&&W("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),c.progressSteps.forEach(function(t,e){var n,o,i,r,a,s=(n=t,o=document.createElement("li"),gt(o,$["progress-step"]),U(o,n),o);u.appendChild(s),e===l&>(s,$["active-progress-step"]),e!==c.progressSteps.length-1&&(r=c,a=document.createElement("li"),gt(a,$["progress-step-line"]),r.progressStepsDistance&&(a.style.width=r.progressStepsDistance),i=a,u.appendChild(i))})}function Rt(t,e){var n,o,i,r,a,s,c,u,l=j();F(l,e,"header"),Ht(0,e),n=t,o=e,(r=St.innerParams.get(n))&&o.icon===r.icon&&B()?Ft(B(),o):(_t(),o.icon&&(-1!==Object.keys(J).indexOf(o.icon)?(i=k(".".concat($.icon,".").concat(J[o.icon])),it(i),Wt(i,o),Ft(i,o),gt(i,o.showClass.icon)):K('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(o.icon,'"')))),function(t){var e=E();if(!t.imageUrl)return rt(e);it(e,""),e.setAttribute("src",t.imageUrl),e.setAttribute("alt",t.imageAlt),ot(e,"width",t.imageWidth),ot(e,"height",t.imageHeight),e.className=$.image,F(e,t,"image")}(e),a=e,s=A(),st(s,a.title||a.titleText),a.title&&ft(a.title,s),a.titleText&&(s.innerText=a.titleText),F(s,a,"title"),c=e,u=H(),U(u,c.closeButtonHtml),F(u,c,"closeButton"),st(u,c.showCloseButton),u.setAttribute("aria-label",c.closeButtonAriaLabel)}function Nt(t,e){var n,o,i,r;n=e,o=x(),ot(o,"width",n.width),ot(o,"padding",n.padding),n.background&&(o.style.background=n.background),Qt(o,n),Pt(0,e),Rt(t,e),Mt(t,e),mt(0,e),i=e,r=M(),st(r,i.footer),i.footer&&ft(i.footer,r),F(r,i,"footer"),"function"==typeof e.didRender?e.didRender(x()):"function"==typeof e.onRender&&e.onRender(x())}function Ut(){return T()&&T().click()}var _t=function(){for(var t=n(),e=0;e<t.length;e++)rt(t[e])},Ft=function(t,e){Kt(t,e),zt(),F(t,e,"icon")},zt=function(){for(var t=x(),e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),o=0;o<n.length;o++)n[o].style.backgroundColor=e},Wt=function(t,e){t.textContent="",e.iconHtml?U(t,Yt(e.iconHtml)):"success"===e.icon?U(t,'\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n '):"error"===e.icon?U(t,'\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n '):U(t,Yt({question:"?",warning:"!",info:"i"}[e.icon]))},Kt=function(t,e){if(e.iconColor){t.style.color=e.iconColor,t.style.borderColor=e.iconColor;for(var n=0,o=[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"];n<o.length;n++){at(t,o[n],"backgroundColor",e.iconColor)}at(t,".swal2-success-ring","borderColor",e.iconColor)}},Yt=function(t){return'<div class="'.concat($["icon-content"],'">').concat(t,"</div>")},Zt=[],Qt=function(t,e){t.className="".concat($.popup," ").concat(bt(t)?e.showClass.popup:""),e.toast?(gt([document.documentElement,document.body],$["toast-shown"]),gt(t,$.toast)):gt(t,$.modal),F(t,e,"popup"),"string"==typeof e.customClass&>(t,e.customClass),e.icon&>(t,$["icon-".concat(e.icon)])};function $t(){var t=x();t||wn.fire(),t=x();var e=q(),n=T(),o=D();it(e),rt(n),gt([t,e],$.loading),it(o),t.setAttribute("data-loading",!0),t.setAttribute("aria-busy",!0),t.focus()}function Jt(){return new Promise(function(t){var e=window.scrollX,n=window.scrollY;oe.restoreFocusTimeout=setTimeout(function(){oe.previousActiveElement&&oe.previousActiveElement.focus?(oe.previousActiveElement.focus(),oe.previousActiveElement=null):document.body&&document.body.focus(),t()},100),void 0!==e&&void 0!==n&&window.scrollTo(e,n)})}function Xt(){if(oe.timeout)return function(){var t=V(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";var n=parseInt(window.getComputedStyle(t).width),o=parseInt(e/n*100);t.style.removeProperty("transition"),t.style.width="".concat(o,"%")}(),oe.timeout.stop()}function Gt(){if(oe.timeout){var t=oe.timeout.start();return lt(t),t}}function te(t){return Object.prototype.hasOwnProperty.call(ie,t)}function ee(t){return ae[t]}function ne(t){for(var e in t)te(i=e)||W('Unknown parameter "'.concat(i,'"')),t.toast&&(o=e,-1!==se.indexOf(o)&&W('The parameter "'.concat(o,'" is incompatible with toasts'))),ee(n=e)&&g(n,ee(n));var n,o,i}var oe={},ie={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,toast:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:void 0,target:"body",backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,onBeforeOpen:void 0,onOpen:void 0,willOpen:void 0,didOpen:void 0,onRender:void 0,didRender:void 0,onClose:void 0,onAfterClose:void 0,willClose:void 0,didClose:void 0,onDestroy:void 0,didDestroy:void 0,scrollbarPadding:!0},re=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","imageAlt","imageHeight","imageUrl","imageWidth","onAfterClose","onClose","onDestroy","progressSteps","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],ae={animation:'showClass" and "hideClass',onBeforeOpen:"willOpen",onOpen:"didOpen",onRender:"didRender",onClose:"willClose",onAfterClose:"didClose",onDestroy:"didDestroy"},se=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","heightAuto","keydownListenerCapture"],ce=Object.freeze({isValidParameter:te,isUpdatableParameter:function(t){return-1!==re.indexOf(t)},isDeprecatedParameter:ee,argsToParams:function(o){var i={};return"object"!==r(o[0])||w(o[0])?["title","html","icon"].forEach(function(t,e){var n=o[e];"string"==typeof n||w(n)?i[t]=n:void 0!==n&&K("Unexpected type of ".concat(t,'! Expected "string" or "Element", got ').concat(r(n)))}):c(i,o[0]),i},isVisible:function(){return bt(x())},clickConfirm:Ut,clickDeny:function(){return L()&&L().click()},clickCancel:function(){return I()&&I().click()},getContainer:C,getPopup:x,getTitle:A,getContent:P,getHtmlContainer:function(){return e($["html-container"])},getImage:E,getIcon:B,getIcons:n,getInputLabel:function(){return e($["input-label"])},getCloseButton:H,getActions:q,getConfirmButton:T,getDenyButton:L,getCancelButton:I,getHeader:j,getFooter:M,getTimerProgressBar:V,getFocusableElements:R,getValidationMessage:S,isLoading:function(){return x().hasAttribute("data-loading")},fire:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return i(this,e)},mixin:function(r){return function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(i,t);var n,o,e=(n=i,o=d(),function(){var t,e=u(n);return p(this,o?(t=u(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))});function i(){return a(this,i),e.apply(this,arguments)}return s(i,[{key:"_main",value:function(t){return f(u(i.prototype),"_main",this).call(this,c({},r,t))}}]),i}(this)},queue:function(t){var r=this;Zt=t;function a(t,e){Zt=[],t(e)}var s=[];return new Promise(function(i){!function e(n,o){n<Zt.length?(document.body.setAttribute("data-swal2-queue-step",n),r.fire(Zt[n]).then(function(t){void 0!==t.value?(s.push(t.value),e(n+1,o)):a(i,{dismiss:t.dismiss})})):a(i,{value:s})}(0)})},getQueueStep:Vt,insertQueueStep:function(t,e){return e&&e<Zt.length?Zt.splice(e,0,t):Zt.push(t)},deleteQueueStep:function(t){void 0!==Zt[t]&&Zt.splice(t,1)},showLoading:$t,enableLoading:$t,getTimerLeft:function(){return oe.timeout&&oe.timeout.getTimerLeft()},stopTimer:Xt,resumeTimer:Gt,toggleTimer:function(){var t=oe.timeout;return t&&(t.running?Xt:Gt)()},increaseTimer:function(t){if(oe.timeout){var e=oe.timeout.increase(t);return lt(e,!0),e}},isTimerRunning:function(){return oe.timeout&&oe.timeout.isRunning()}});function ue(){var t,e=St.innerParams.get(this);e&&(t=St.domCache.get(this),rt(t.loader),e.showConfirmButton?it(t.confirmButton,"inline-block"):e.showConfirmButton||e.showCancelButton||rt(t.actions),vt([t.popup,t.actions],$.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1)}function le(){null===G.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(G.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(G.previousBodyPadding+function(){var t=document.createElement("div");t.className=$["scrollbar-measure"],document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e}(),"px"))}function de(){return!!window.MSInputMethodContext&&!!document.documentMode}function pe(){var t=C(),e=x();t.style.removeProperty("align-items"),e.offsetTop<0&&(t.style.alignItems="flex-start")}var fe=function(){navigator.userAgent.match(/(CriOS|FxiOS|EdgiOS|YaBrowser|UCBrowser)/i)||x().scrollHeight>window.innerHeight-44&&(C().style.paddingBottom="".concat(44,"px"))},me=function(){var e,t=C();t.ontouchstart=function(t){e=he(t)},t.ontouchmove=function(t){e&&(t.preventDefault(),t.stopPropagation())}},he=function(t){var e=t.target,n=C();return(!t.touches||!t.touches.length||"stylus"!==t.touches[0].touchType)&&(e===n||!(ct(n)||"INPUT"===e.tagName||ct(P())&&P().contains(e)))},ge={swalPromiseResolve:new WeakMap};function ve(t,e,n,o){var i;n?Ce(t,o):(Jt().then(function(){return Ce(t,o)}),oe.keydownTarget.removeEventListener("keydown",oe.keydownHandler,{capture:oe.keydownListenerCapture}),oe.keydownHandlerAdded=!1),e.parentNode&&!document.body.getAttribute("data-swal2-queue-step")&&e.parentNode.removeChild(e),N()&&(null!==G.previousBodyPadding&&(document.body.style.paddingRight="".concat(G.previousBodyPadding,"px"),G.previousBodyPadding=null),_(document.body,$.iosfix)&&(i=parseInt(document.body.style.top,10),vt(document.body,$.iosfix),document.body.style.top="",document.body.scrollTop=-1*i),"undefined"!=typeof window&&de()&&window.removeEventListener("resize",pe),h(document.body.children).forEach(function(t){t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")})),vt([document.documentElement,document.body],[$.shown,$["height-auto"],$["no-backdrop"],$["toast-shown"],$["toast-column"]])}function ye(t){var e,n,o,i=x();i&&(t=function(t){return void 0!==t?c({isConfirmed:!1,isDenied:!1,isDismissed:!1},t):{isConfirmed:!1,isDenied:!1,isDismissed:!0}}(t),(e=St.innerParams.get(this))&&!_(i,e.hideClass.popup)&&(n=ge.swalPromiseResolve.get(this),vt(i,e.showClass.popup),gt(i,e.hideClass.popup),o=C(),vt(o,e.showClass.backdrop),gt(o,e.hideClass.backdrop),function(t,e,n){var o=C(),i=Bt&&ut(e),r=n.onClose,a=n.onAfterClose,s=n.willClose,c=n.didClose;if(be(e,s,r),i){we(t,e,o,c||a)}else{ve(t,o,X(),c||a)}}(this,i,e),n(t)))}var be=function(t,e,n){null!==e&&"function"==typeof e?e(t):null!==n&&"function"==typeof n&&n(t)},we=function(t,e,n,o){oe.swalCloseEventFinishedCallback=ve.bind(null,t,n,X(),o),e.addEventListener(Bt,function(t){t.target===e&&(oe.swalCloseEventFinishedCallback(),delete oe.swalCloseEventFinishedCallback)})},Ce=function(t,e){setTimeout(function(){"function"==typeof e&&e(),t._destroy()})};function ke(t,e,n){var o=St.domCache.get(t);e.forEach(function(t){o[t].disabled=n})}function xe(t,e){if(!t)return!1;if("radio"===t.type)for(var n=t.parentNode.parentNode.querySelectorAll("input"),o=0;o<n.length;o++)n[o].disabled=e;else t.disabled=e}var Be=function(){function n(t,e){a(this,n),this.callback=t,this.remaining=e,this.running=!1,this.start()}return s(n,[{key:"start",value:function(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}},{key:"stop",value:function(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date-this.started),this.remaining}},{key:"increase",value:function(t){var e=this.running;return e&&this.stop(),this.remaining+=t,e&&this.start(),this.remaining}},{key:"getTimerLeft",value:function(){return this.running&&(this.stop(),this.start()),this.remaining}},{key:"isRunning",value:function(){return this.running}}]),n}(),Ae={email:function(t,e){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address")},url:function(t,e){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")}};function Pe(t){var e,n;(e=t).inputValidator||Object.keys(Ae).forEach(function(t){e.input===t&&(e.inputValidator=Ae[t])}),t.showLoaderOnConfirm&&!t.preConfirm&&W("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),t.animation=Z(t.animation),(n=t).target&&("string"!=typeof n.target||document.querySelector(n.target))&&("string"==typeof n.target||n.target.appendChild)||(W('Target parameter is not valid, defaulting to "body"'),n.target="body"),"string"==typeof t.title&&(t.title=t.title.split("\n").join("<br />")),Ct(t)}function Ee(t){var e=C(),n=x();"function"==typeof t.willOpen?t.willOpen(n):"function"==typeof t.onBeforeOpen&&t.onBeforeOpen(n);var o=window.getComputedStyle(document.body).overflowY;Ne(e,n,t),setTimeout(function(){He(e,n)},10),N()&&(Re(e,t.scrollbarPadding,o),h(document.body.children).forEach(function(t){t===C()||function(t,e){if("function"==typeof t.contains)return t.contains(e)}(t,C())||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))})),X()||oe.previousActiveElement||(oe.previousActiveElement=document.activeElement),Ve(n,t),vt(e,$["no-transition"])}function Oe(t){var e,n=x();t.target===n&&(e=C(),n.removeEventListener(Bt,Oe),e.style.overflowY="auto")}function Se(t,e){"select"===e.input||"radio"===e.input?ze(t,e):-1!==["text","email","number","tel","textarea"].indexOf(e.input)&&(v(e.inputValue)||b(e.inputValue))&&We(t,e)}function Te(t,e){t.disableButtons(),e.input?Ze(t,e,"confirm"):Je(t,e,!0)}function Le(t,e){t.disableButtons(),e.returnInputValueOnDeny?Ze(t,e,"deny"):$e(t,!1)}function De(t,e){t.disableButtons(),e(Q.cancel)}function Ie(t,e){t.closePopup({isConfirmed:!0,value:e})}function qe(e,t,n,o){t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1),n.toast||(t.keydownHandler=function(t){return en(e,t,o)},t.keydownTarget=n.keydownListenerCapture?window:x(),t.keydownListenerCapture=n.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)}function je(t,e,n){var o=R(),i=0;if(i<o.length)return(e+=n)===o.length?e=0:-1===e&&(e=o.length-1),o[e].focus();x().focus()}function Me(t,e,n){St.innerParams.get(t).toast?sn(t,e,n):(un(e),ln(e),dn(t,e,n))}var Ve=function(t,e){"function"==typeof e.didOpen?setTimeout(function(){return e.didOpen(t)}):"function"==typeof e.onOpen&&setTimeout(function(){return e.onOpen(t)})},He=function(t,e){Bt&&ut(e)?(t.style.overflowY="hidden",e.addEventListener(Bt,Oe)):t.style.overflowY="auto"},Re=function(t,e,n){var o;(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints)&&!_(document.body,$.iosfix)&&(o=document.body.scrollTop,document.body.style.top="".concat(-1*o,"px"),gt(document.body,$.iosfix),me(),fe()),"undefined"!=typeof window&&de()&&(pe(),window.addEventListener("resize",pe)),e&&"hidden"!==n&&le(),setTimeout(function(){t.scrollTop=0})},Ne=function(t,e,n){gt(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),it(e),setTimeout(function(){gt(e,n.showClass.popup),e.style.removeProperty("opacity")},10),gt([document.documentElement,document.body],$.shown),n.heightAuto&&n.backdrop&&!n.toast&>([document.documentElement,document.body],$["height-auto"])},Ue=function(t){return t.checked?1:0},_e=function(t){return t.checked?t.value:null},Fe=function(t){return t.files.length?null!==t.getAttribute("multiple")?t.files:t.files[0]:null},ze=function(e,n){function o(t){return Ke[n.input](i,Ye(t),n)}var i=P();v(n.inputOptions)||b(n.inputOptions)?($t(),y(n.inputOptions).then(function(t){e.hideLoading(),o(t)})):"object"===r(n.inputOptions)?o(n.inputOptions):K("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(r(n.inputOptions)))},We=function(e,n){var o=e.getInput();rt(o),y(n.inputValue).then(function(t){o.value="number"===n.input?parseFloat(t)||0:"".concat(t),it(o),o.focus(),e.hideLoading()}).catch(function(t){K("Error in inputValue promise: ".concat(t)),o.value="",it(o),o.focus(),e.hideLoading()})},Ke={select:function(t,e,i){function r(t,e,n){var o=document.createElement("option");o.value=n,U(o,e),i.inputValue.toString()===n.toString()&&(o.selected=!0),t.appendChild(o)}var a=yt(t,$.select);e.forEach(function(t){var e,n=t[0],o=t[1];Array.isArray(o)?((e=document.createElement("optgroup")).label=n,e.disabled=!1,a.appendChild(e),o.forEach(function(t){return r(e,t[1],t[0])})):r(a,o,n)}),a.focus()},radio:function(t,e,a){var s=yt(t,$.radio);e.forEach(function(t){var e=t[0],n=t[1],o=document.createElement("input"),i=document.createElement("label");o.type="radio",o.name=$.radio,o.value=e,a.inputValue.toString()===e.toString()&&(o.checked=!0);var r=document.createElement("span");U(r,n),r.className=$.label,i.appendChild(o),i.appendChild(r),s.appendChild(i)});var n=s.querySelectorAll("input");n.length&&n[0].focus()}},Ye=function o(n){var i=[];return"undefined"!=typeof Map&&n instanceof Map?n.forEach(function(t,e){var n=t;"object"===r(n)&&(n=o(n)),i.push([e,n])}):Object.keys(n).forEach(function(t){var e=n[t];"object"===r(e)&&(e=o(e)),i.push([t,e])}),i},Ze=function(t,e,n){var o=function(t,e){var n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return Ue(n);case"radio":return _e(n);case"file":return Fe(n);default:return e.inputAutoTrim?n.value.trim():n.value}}(t,e);e.inputValidator?Qe(t,e,o):t.getInput().checkValidity()?"deny"===n?$e(t,o):Je(t,e,o):(t.enableButtons(),t.showValidationMessage(e.validationMessage))},Qe=function(e,n,o){e.disableInput(),Promise.resolve().then(function(){return y(n.inputValidator(o,n.validationMessage))}).then(function(t){e.enableButtons(),e.enableInput(),t?e.showValidationMessage(t):Je(e,n,o)})},$e=function(t,e){t.closePopup({isDenied:!0,value:e})},Je=function(e,t,n){t.showLoaderOnConfirm&&$t(),t.preConfirm?(e.resetValidationMessage(),Promise.resolve().then(function(){return y(t.preConfirm(n,t.validationMessage))}).then(function(t){bt(S())||!1===t?e.hideLoading():Ie(e,void 0===t?n:t)})):Ie(e,n)},Xe=["ArrowRight","ArrowDown","Right","Down"],Ge=["ArrowLeft","ArrowUp","Left","Up"],tn=["Escape","Esc"],en=function(t,e,n){var o=St.innerParams.get(t);o.stopKeydownPropagation&&e.stopPropagation(),"Enter"===e.key?nn(t,e,o):"Tab"===e.key?on(e,o):-1!==[].concat(Xe,Ge).indexOf(e.key)?rn(e.key):-1!==tn.indexOf(e.key)&&an(e,o,n)},nn=function(t,e,n){if(!e.isComposing&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(-1!==["textarea","file"].indexOf(n.input))return;Ut(),e.preventDefault()}},on=function(t){for(var e=t.target,n=R(),o=-1,i=0;i<n.length;i++)if(e===n[i]){o=i;break}t.shiftKey?je(0,o,-1):je(0,o,1),t.stopPropagation(),t.preventDefault()},rn=function(t){var e,n;-1!==[T(),L(),I()].indexOf(document.activeElement)&&(e=-1!==Xe.indexOf(t)?"nextElementSibling":"previousElementSibling",(n=document.activeElement[e])&&n.focus())},an=function(t,e,n){Z(e.allowEscapeKey)&&(t.preventDefault(),n(Q.esc))},sn=function(e,t,n){t.popup.onclick=function(){var t=St.innerParams.get(e);t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton||t.input||n(Q.close)}},cn=!1,un=function(e){e.popup.onmousedown=function(){e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(cn=!0)}}},ln=function(e){e.container.onmousedown=function(){e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,t.target!==e.popup&&!e.popup.contains(t.target)||(cn=!0)}}},dn=function(n,o,i){o.container.onclick=function(t){var e=St.innerParams.get(n);cn?cn=!1:t.target===o.container&&Z(e.allowOutsideClick)&&i(Q.backdrop)}};var pn=function(t,e,n){var o=V();rt(o),e.timer&&(t.timeout=new Be(function(){n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(it(o),setTimeout(function(){t.timeout.running&<(e.timer)})))},fn=function(t,e){if(!e.toast)return Z(e.allowEnterKey)?void(mn(t,e)||je(0,-1,1)):hn()},mn=function(t,e){return e.focusDeny&&bt(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&bt(t.cancelButton)?(t.cancelButton.focus(),!0):!(!e.focusConfirm||!bt(t.confirmButton))&&(t.confirmButton.focus(),!0)},hn=function(){document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};var gn,vn=function(t){for(var e in t)t[e]=new WeakMap},yn=Object.freeze({hideLoading:ue,disableLoading:ue,getInput:function(t){var e=St.innerParams.get(t||this),n=St.domCache.get(t||this);return n?tt(n.content,e.input):null},close:ye,closePopup:ye,closeModal:ye,closeToast:ye,enableButtons:function(){ke(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){ke(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return xe(this.getInput(),!1)},disableInput:function(){return xe(this.getInput(),!0)},showValidationMessage:function(t){var e=St.domCache.get(this),n=St.innerParams.get(this);U(e.validationMessage,t),e.validationMessage.className=$["validation-message"],n.customClass&&n.customClass.validationMessage&>(e.validationMessage,n.customClass.validationMessage),it(e.validationMessage);var o=this.getInput();o&&(o.setAttribute("aria-invalid",!0),o.setAttribute("aria-describedBy",$["validation-message"]),et(o),gt(o,$.inputerror))},resetValidationMessage:function(){var t=St.domCache.get(this);t.validationMessage&&rt(t.validationMessage);var e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedBy"),vt(e,$.inputerror))},getProgressSteps:function(){return St.domCache.get(this).progressSteps},_main:function(t){ne(t),oe.currentInstance&&oe.currentInstance._destroy(),oe.currentInstance=this;var e=function(t){var e=c({},ie.showClass,t.showClass),n=c({},ie.hideClass,t.hideClass),o=c({},ie,t);if(o.showClass=e,o.hideClass=n,t.animation===false){o.showClass={popup:"swal2-noanimation",backdrop:"swal2-noanimation"};o.hideClass={}}return o}(t);Pe(e),Object.freeze(e),oe.timeout&&(oe.timeout.stop(),delete oe.timeout),clearTimeout(oe.restoreFocusTimeout);var n=function(t){var e={popup:x(),container:C(),content:P(),actions:q(),confirmButton:T(),denyButton:L(),cancelButton:I(),loader:D(),closeButton:H(),validationMessage:S(),progressSteps:O()};return St.domCache.set(t,e),e}(this);return Nt(this,e),St.innerParams.set(this,e),function(n,o,i){return new Promise(function(t){var e=function t(e){n.closePopup({isDismissed:true,dismiss:e})};ge.swalPromiseResolve.set(n,t);o.confirmButton.onclick=function(){return Te(n,i)};o.denyButton.onclick=function(){return Le(n,i)};o.cancelButton.onclick=function(){return De(n,e)};o.closeButton.onclick=function(){return e(Q.close)};Me(n,o,e);qe(n,oe,i,e);if(i.toast&&(i.input||i.footer||i.showCloseButton)){gt(document.body,$["toast-column"])}else{vt(document.body,$["toast-column"])}Se(n,i);Ee(i);pn(oe,i,e);fn(o,i);setTimeout(function(){o.container.scrollTop=0})})}(this,n,e)},update:function(e){var t=x(),n=St.innerParams.get(this);if(!t||_(t,n.hideClass.popup))return W("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");var o={};Object.keys(e).forEach(function(t){wn.isUpdatableParameter(t)?o[t]=e[t]:W('Invalid parameter to update: "'.concat(t,'". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js\n\nIf you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md'))});var i=c({},n,o);Nt(this,i),St.innerParams.set(this,i),Object.defineProperties(this,{params:{value:c({},this.params,e),writable:!1,enumerable:!0}})},_destroy:function(){var t=St.domCache.get(this),e=St.innerParams.get(this);e&&(t.popup&&oe.swalCloseEventFinishedCallback&&(oe.swalCloseEventFinishedCallback(),delete oe.swalCloseEventFinishedCallback),oe.deferDisposalTimer&&(clearTimeout(oe.deferDisposalTimer),delete oe.deferDisposalTimer),function(t){if(typeof t.didDestroy==="function"){t.didDestroy()}else if(typeof t.onDestroy==="function"){t.onDestroy()}}(e),delete this.params,delete oe.keydownHandler,delete oe.keydownTarget,vn(St),vn(ge))}}),bn=function(){function r(){if(a(this,r),"undefined"!=typeof window){"undefined"==typeof Promise&&K("This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)"),gn=this;for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var o=Object.freeze(this.constructor.argsToParams(e));Object.defineProperties(this,{params:{value:o,writable:!1,enumerable:!0,configurable:!0}});var i=this._main(this.params);St.promise.set(this,i)}}return s(r,[{key:"then",value:function(t){return St.promise.get(this).then(t)}},{key:"finally",value:function(t){return St.promise.get(this).finally(t)}}]),r}();c(bn.prototype,yn),c(bn,ce),Object.keys(yn).forEach(function(t){bn[t]=function(){if(gn)return gn[t].apply(gn,arguments)}}),bn.DismissReason=Q,bn.version="10.6.1";var wn=bn;return wn.default=wn}),void 0!==this&&this.Sweetalert2&&(this.wpacuswal=this.sweetAlert=this.wpacuSwal=this.SweetAlert=this.Sweetalert2);
|
classes/AjaxSearchAutocomplete.php
CHANGED
@@ -17,7 +17,7 @@ class AjaxSearchAutocomplete
|
|
17 |
}
|
18 |
|
19 |
/**
|
20 |
-
*
|
21 |
*/
|
22 |
public function enqueueScripts()
|
23 |
{
|
@@ -25,8 +25,17 @@ class AjaxSearchAutocomplete
|
|
25 |
return;
|
26 |
}
|
27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
$wpacuFor = sanitize_text_field($_REQUEST['wpacu_for']);
|
29 |
-
$forPostType = '';
|
30 |
|
31 |
switch ($wpacuFor) {
|
32 |
case 'posts':
|
@@ -41,6 +50,8 @@ class AjaxSearchAutocomplete
|
|
41 |
case 'custom-post-types':
|
42 |
$forPostType = 'wpacu-custom-post-types';
|
43 |
break;
|
|
|
|
|
44 |
}
|
45 |
|
46 |
if ( ! $forPostType ) {
|
@@ -48,14 +59,14 @@ class AjaxSearchAutocomplete
|
|
48 |
}
|
49 |
|
50 |
wp_enqueue_script(
|
51 |
-
|
52 |
-
|
53 |
array('jquery', 'jquery-ui-autocomplete'),
|
54 |
-
OwnAssets::assetVer('
|
55 |
true
|
56 |
);
|
57 |
|
58 |
-
wp_localize_script('
|
59 |
'ajax_url' => esc_url(admin_url('admin-ajax.php')),
|
60 |
'ajax_nonce' => wp_create_nonce('wpacu_autocomplete_search_nonce'),
|
61 |
'ajax_action' => WPACU_PLUGIN_ID . '_autocomplete_search',
|
@@ -63,8 +74,9 @@ class AjaxSearchAutocomplete
|
|
63 |
'redirect_to' => esc_url(admin_url('admin.php?page=wpassetcleanup_assets_manager&wpacu_for='.$wpacuFor.'&wpacu_post_id=post_id_here'))
|
64 |
));
|
65 |
|
66 |
-
wp_enqueue_style(
|
67 |
-
|
|
|
68 |
false, null, false
|
69 |
);
|
70 |
|
@@ -73,7 +85,7 @@ class AjaxSearchAutocomplete
|
|
73 |
background-position: 99% 6px;
|
74 |
}
|
75 |
CSS;
|
76 |
-
wp_add_inline_style('
|
77 |
}
|
78 |
|
79 |
/**
|
@@ -149,7 +161,7 @@ CSS;
|
|
149 |
$resultToShow .= ' / '.$iconPrivate.' Private';
|
150 |
}
|
151 |
|
152 |
-
// This is a page and it was set as the homepage (point this out)
|
153 |
if ($pageOnFront === $resultPostId) {
|
154 |
$iconHome = '<span class="dashicons dashicons-admin-home"></span>';
|
155 |
$resultToShow .= ' / '.$iconHome.' Homepage';
|
17 |
}
|
18 |
|
19 |
/**
|
20 |
+
* Only valid for "CSS & JS Manager" -- "Manage CSS/JS" -- ("Posts" | "Pages" | "Custom Post Types" | "Media")
|
21 |
*/
|
22 |
public function enqueueScripts()
|
23 |
{
|
25 |
return;
|
26 |
}
|
27 |
|
28 |
+
$isManageCssJsDash = isset($_GET['page']) && $_GET['page'] === WPACU_PLUGIN_ID.'_assets_manager';
|
29 |
+
$subPage = isset($_GET['wpacu_sub_page']) ? $_GET['wpacu_sub_page'] : 'manage_css_js';
|
30 |
+
|
31 |
+
$loadAutoCompleteOnManageCssJsDash = ($isManageCssJsDash && $subPage === 'manage_css_js') &&
|
32 |
+
in_array($_REQUEST['wpacu_for'], array('posts', 'pages', 'media-attachment', 'custom-post-types'));
|
33 |
+
|
34 |
+
if ( ! $loadAutoCompleteOnManageCssJsDash ) {
|
35 |
+
return;
|
36 |
+
}
|
37 |
+
|
38 |
$wpacuFor = sanitize_text_field($_REQUEST['wpacu_for']);
|
|
|
39 |
|
40 |
switch ($wpacuFor) {
|
41 |
case 'posts':
|
50 |
case 'custom-post-types':
|
51 |
$forPostType = 'wpacu-custom-post-types';
|
52 |
break;
|
53 |
+
default:
|
54 |
+
$forPostType = '';
|
55 |
}
|
56 |
|
57 |
if ( ! $forPostType ) {
|
59 |
}
|
60 |
|
61 |
wp_enqueue_script(
|
62 |
+
OwnAssets::$ownAssets['scripts']['autocomplete_search']['handle'],
|
63 |
+
plugins_url(OwnAssets::$ownAssets['scripts']['autocomplete_search']['rel_path'], WPACU_PLUGIN_FILE),
|
64 |
array('jquery', 'jquery-ui-autocomplete'),
|
65 |
+
OwnAssets::assetVer(OwnAssets::$ownAssets['scripts']['autocomplete_search']['rel_path']),
|
66 |
true
|
67 |
);
|
68 |
|
69 |
+
wp_localize_script(OwnAssets::$ownAssets['scripts']['autocomplete_search']['handle'], 'wpacu_autocomplete_search_obj', array(
|
70 |
'ajax_url' => esc_url(admin_url('admin-ajax.php')),
|
71 |
'ajax_nonce' => wp_create_nonce('wpacu_autocomplete_search_nonce'),
|
72 |
'ajax_action' => WPACU_PLUGIN_ID . '_autocomplete_search',
|
74 |
'redirect_to' => esc_url(admin_url('admin.php?page=wpassetcleanup_assets_manager&wpacu_for='.$wpacuFor.'&wpacu_post_id=post_id_here'))
|
75 |
));
|
76 |
|
77 |
+
wp_enqueue_style(
|
78 |
+
OwnAssets::$ownAssets['styles']['autocomplete_search_jquery_ui_custom']['handle'],
|
79 |
+
plugins_url(OwnAssets::$ownAssets['styles']['autocomplete_search_jquery_ui_custom']['rel_path'], WPACU_PLUGIN_FILE),
|
80 |
false, null, false
|
81 |
);
|
82 |
|
85 |
background-position: 99% 6px;
|
86 |
}
|
87 |
CSS;
|
88 |
+
wp_add_inline_style(OwnAssets::$ownAssets['styles']['autocomplete_search_jquery_ui_custom']['handle'], $jqueryUiCustom);
|
89 |
}
|
90 |
|
91 |
/**
|
161 |
$resultToShow .= ' / '.$iconPrivate.' Private';
|
162 |
}
|
163 |
|
164 |
+
// This is a page, and it was set as the homepage (point this out)
|
165 |
if ($pageOnFront === $resultPostId) {
|
166 |
$iconHome = '<span class="dashicons dashicons-admin-home"></span>';
|
167 |
$resultToShow .= ' / '.$iconHome.' Homepage';
|
classes/CleanUp.php
CHANGED
@@ -317,8 +317,7 @@ class CleanUp
|
|
317 |
*/
|
318 |
public static function getOuterHTML($e)
|
319 |
{
|
320 |
-
$doc =
|
321 |
-
libxml_use_internal_errors( true );
|
322 |
|
323 |
$doc->appendChild($doc->importNode($e, true));
|
324 |
|
317 |
*/
|
318 |
public static function getOuterHTML($e)
|
319 |
{
|
320 |
+
$doc = Misc::initDOMDocument();
|
|
|
321 |
|
322 |
$doc->appendChild($doc->importNode($e, true));
|
323 |
|
classes/FileSystem.php
CHANGED
@@ -52,11 +52,11 @@ class FileSystem
|
|
52 |
*
|
53 |
* @return false|string
|
54 |
*/
|
55 |
-
public static function
|
56 |
{
|
57 |
// ONLY relevant for CSS files
|
58 |
if ($alter === 'combine_css_imports') {
|
59 |
-
// This custom class does not minify as it's custom
|
60 |
$optimizer = new \WpAssetCleanUp\OptimiseAssets\CombineCssImports($localPathToFile);
|
61 |
return $optimizer->minify();
|
62 |
}
|
@@ -75,7 +75,7 @@ class FileSystem
|
|
75 |
*
|
76 |
* @return string
|
77 |
*/
|
78 |
-
public static function
|
79 |
{
|
80 |
if ( (strpos($localPathToFile, WP_CONTENT_DIR . OptimizeCss::getRelPathCssCacheDir()) !== false && ! is_dir(dirname($localPathToFile)))
|
81 |
|| (strpos($localPathToFile, WP_CONTENT_DIR . OptimizeJs::getRelPathJsCacheDir()) !== false && ! is_dir(dirname($localPathToFile)))
|
52 |
*
|
53 |
* @return false|string
|
54 |
*/
|
55 |
+
public static function fileGetContents($localPathToFile, $alter = '')
|
56 |
{
|
57 |
// ONLY relevant for CSS files
|
58 |
if ($alter === 'combine_css_imports') {
|
59 |
+
// This custom class does not minify as it's custom-made for combining @import
|
60 |
$optimizer = new \WpAssetCleanUp\OptimiseAssets\CombineCssImports($localPathToFile);
|
61 |
return $optimizer->minify();
|
62 |
}
|
75 |
*
|
76 |
* @return string
|
77 |
*/
|
78 |
+
public static function filePutContents($localPathToFile, $contents)
|
79 |
{
|
80 |
if ( (strpos($localPathToFile, WP_CONTENT_DIR . OptimizeCss::getRelPathCssCacheDir()) !== false && ! is_dir(dirname($localPathToFile)))
|
81 |
|| (strpos($localPathToFile, WP_CONTENT_DIR . OptimizeJs::getRelPathJsCacheDir()) !== false && ! is_dir(dirname($localPathToFile)))
|
classes/ImportExport.php
CHANGED
@@ -191,7 +191,7 @@ SQL;
|
|
191 |
return;
|
192 |
}
|
193 |
|
194 |
-
$valuesJson = FileSystem::
|
195 |
|
196 |
$valuesArray = json_decode($valuesJson, ARRAY_A);
|
197 |
|
191 |
return;
|
192 |
}
|
193 |
|
194 |
+
$valuesJson = FileSystem::fileGetContents($jsonTmpName);
|
195 |
|
196 |
$valuesArray = json_decode($valuesJson, ARRAY_A);
|
197 |
|
classes/Lite.php
CHANGED
@@ -36,7 +36,7 @@ class Lite
|
|
36 |
echo sprintf(
|
37 |
__('Managing the loading of the styles & scripts files for this <strong>%s</strong> taxonomy is %savailable in the Pro version%s', 'wp-asset-clean-up'),
|
38 |
$tag->taxonomy,
|
39 |
-
'<a href="'.WPACU_PLUGIN_GO_PRO_URL.'?utm_source=taxonomy_edit_page&utm_medium=upgrade_link" target="_blank">',
|
40 |
'</a>'
|
41 |
);
|
42 |
?>
|
36 |
echo sprintf(
|
37 |
__('Managing the loading of the styles & scripts files for this <strong>%s</strong> taxonomy is %savailable in the Pro version%s', 'wp-asset-clean-up'),
|
38 |
$tag->taxonomy,
|
39 |
+
'<a href="'.apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL.'?utm_source=taxonomy_edit_page&utm_medium=upgrade_link').'" target="_blank">',
|
40 |
'</a>'
|
41 |
);
|
42 |
?>
|
classes/Main.php
CHANGED
@@ -218,33 +218,35 @@ class Main
|
|
218 |
*/
|
219 |
public function __construct()
|
220 |
{
|
221 |
-
$this->skipAssets['styles'] =
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
//
|
237 |
-
|
|
|
238 |
|
239 |
-
$this->skipAssets['scripts'] =
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
|
|
248 |
|
249 |
// Filter before triggering the actual unloading through "wp_deregister_script", "wp_dequeue_script", "wp_deregister_style", "wp_dequeue_style"
|
250 |
$this->fallbacks();
|
@@ -477,7 +479,7 @@ class Main
|
|
477 |
return $scriptTag;
|
478 |
}, PHP_INT_MAX, 2 );
|
479 |
|
480 |
-
|
481 |
}
|
482 |
/*
|
483 |
* [END] Front-end page visited (e.g. by the admin or a guest visitor)
|
@@ -1220,7 +1222,7 @@ SQL;
|
|
1220 |
continue;
|
1221 |
}
|
1222 |
|
1223 |
-
// Special Action for 'jquery-migrate' handler as
|
1224 |
if ($handle === 'jquery-migrate' && isset($this->wpAllScripts['registered']['jquery'])) {
|
1225 |
$jQueryRegScript = $this->wpAllScripts['registered']['jquery'];
|
1226 |
|
218 |
*/
|
219 |
public function __construct()
|
220 |
{
|
221 |
+
$this->skipAssets['styles'] = array_merge(
|
222 |
+
array(
|
223 |
+
'admin-bar',
|
224 |
+
// The top admin bar
|
225 |
+
'yoast-seo-adminbar',
|
226 |
+
// Yoast "WordPress SEO" plugin
|
227 |
+
'autoptimize-toolbar',
|
228 |
+
'query-monitor',
|
229 |
+
'wp-fastest-cache-toolbar',
|
230 |
+
// WP Fastest Cache plugin toolbar CSS
|
231 |
+
'litespeed-cache',
|
232 |
+
// LiteSpeed toolbar
|
233 |
+
'siteground-optimizer-combined-styles-header'
|
234 |
+
// Combine CSS in SG Optimiser (irrelevant as it made from the combined handles)
|
235 |
+
),
|
236 |
+
// Own Scripts (for admin use only)
|
237 |
+
OwnAssets::getOwnAssetsHandles('styles')
|
238 |
+
);
|
239 |
|
240 |
+
$this->skipAssets['scripts'] = array_merge(
|
241 |
+
array(
|
242 |
+
'admin-bar', // The top admin bar
|
243 |
+
'autoptimize-toolbar',
|
244 |
+
'query-monitor',
|
245 |
+
'wpfc-toolbar' // WP Fastest Cache plugin toolbar JS
|
246 |
+
),
|
247 |
+
// Own Scripts (for admin use only)
|
248 |
+
OwnAssets::getOwnAssetsHandles('scripts')
|
249 |
+
);
|
250 |
|
251 |
// Filter before triggering the actual unloading through "wp_deregister_script", "wp_dequeue_script", "wp_deregister_style", "wp_dequeue_style"
|
252 |
$this->fallbacks();
|
479 |
return $scriptTag;
|
480 |
}, PHP_INT_MAX, 2 );
|
481 |
|
482 |
+
Preloads::instance()->init();
|
483 |
}
|
484 |
/*
|
485 |
* [END] Front-end page visited (e.g. by the admin or a guest visitor)
|
1222 |
continue;
|
1223 |
}
|
1224 |
|
1225 |
+
// Special Action for 'jquery-migrate' handler as it's tied to 'jquery'
|
1226 |
if ($handle === 'jquery-migrate' && isset($this->wpAllScripts['registered']['jquery'])) {
|
1227 |
$jQueryRegScript = $this->wpAllScripts['registered']['jquery'];
|
1228 |
|
classes/Menu.php
CHANGED
@@ -45,7 +45,7 @@ class Menu
|
|
45 |
add_action('admin_menu', array($this, 'activeMenu'));
|
46 |
|
47 |
if (isset($_GET['page']) && $_GET['page'] === WPACU_PLUGIN_ID . '_go_pro') {
|
48 |
-
header('Location: '.WPACU_PLUGIN_GO_PRO_URL.'?utm_source=plugin_go_pro');
|
49 |
exit();
|
50 |
}
|
51 |
|
45 |
add_action('admin_menu', array($this, 'activeMenu'));
|
46 |
|
47 |
if (isset($_GET['page']) && $_GET['page'] === WPACU_PLUGIN_ID . '_go_pro') {
|
48 |
+
header('Location: '.apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL.'?utm_source=plugin_go_pro'));
|
49 |
exit();
|
50 |
}
|
51 |
|
classes/Misc.php
CHANGED
@@ -651,22 +651,37 @@ class Misc
|
|
651 |
$targetJsonFile = $blocksDir.$fileOrDir.'/block.json';
|
652 |
|
653 |
if (is_dir($blocksDir.$fileOrDir) && is_file($targetJsonFile)) {
|
654 |
-
$jsonToArray = wp_json_file_decode($targetJsonFile, array('associative' => true))
|
655 |
-
|
656 |
-
|
657 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
658 |
}
|
659 |
|
660 |
-
if (isset($jsonToArray['editorStyle'])
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
|
|
|
|
665 |
}
|
666 |
}
|
667 |
}
|
668 |
}
|
669 |
|
|
|
|
|
|
|
|
|
|
|
|
|
670 |
$cssCoreHandlesList = array_unique($cssCoreHandlesList);
|
671 |
}
|
672 |
} else {
|
@@ -683,6 +698,47 @@ class Misc
|
|
683 |
}
|
684 |
}
|
685 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
686 |
/**
|
687 |
* @return bool
|
688 |
*/
|
@@ -691,6 +747,19 @@ class Misc
|
|
691 |
return function_exists('libxml_use_internal_errors') && function_exists('libxml_clear_errors') && class_exists('\DOMDocument') && class_exists('\DOMXpath');
|
692 |
}
|
693 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
694 |
/**
|
695 |
* @return array|string
|
696 |
*/
|
@@ -698,7 +767,7 @@ class Misc
|
|
698 |
{
|
699 |
if (! ObjectCache::wpacu_cache_get('wpacu_w3tc_master_config')) {
|
700 |
$w3tcConfigMasterFile = WP_CONTENT_DIR . '/w3tc-config/master.php';
|
701 |
-
$w3tcMasterConfig = FileSystem::
|
702 |
ObjectCache::wpacu_cache_set('wpacu_w3tc_master_config', trim($w3tcMasterConfig));
|
703 |
} else {
|
704 |
$w3tcMasterConfig = ObjectCache::wpacu_cache_get('wpacu_w3tc_master_config');
|
651 |
$targetJsonFile = $blocksDir.$fileOrDir.'/block.json';
|
652 |
|
653 |
if (is_dir($blocksDir.$fileOrDir) && is_file($targetJsonFile)) {
|
654 |
+
$jsonToArray = function_exists('wp_json_file_decode') ? wp_json_file_decode($targetJsonFile, array('associative' => true))
|
655 |
+
: self::wpJsonFileDecode($targetJsonFile, array( 'associative' => true));
|
656 |
+
|
657 |
+
if (isset($jsonToArray['style'])) {
|
658 |
+
if ( is_array( $jsonToArray['style'] ) ) {
|
659 |
+
foreach ( $jsonToArray['style'] as $style ) {
|
660 |
+
$cssCoreHandlesList[] = $style;
|
661 |
+
}
|
662 |
+
} else {
|
663 |
+
$cssCoreHandlesList[] = $jsonToArray['style'];
|
664 |
+
}
|
665 |
}
|
666 |
|
667 |
+
if (isset($jsonToArray['editorStyle'])) {
|
668 |
+
if ( is_array( $jsonToArray['editorStyle'] ) ) {
|
669 |
+
foreach ( $jsonToArray['editorStyle'] as $editorStyle ) {
|
670 |
+
$cssCoreHandlesList[] = $editorStyle;
|
671 |
+
}
|
672 |
+
} else {
|
673 |
+
$cssCoreHandlesList[] = $jsonToArray['editorStyle'];
|
674 |
}
|
675 |
}
|
676 |
}
|
677 |
}
|
678 |
|
679 |
+
foreach ($cssCoreHandlesList as $style) {
|
680 |
+
if (self::endsWith($style, '-editor')) {
|
681 |
+
$cssCoreHandlesList[] = substr($style, 0, -strlen('-editor'));
|
682 |
+
}
|
683 |
+
}
|
684 |
+
|
685 |
$cssCoreHandlesList = array_unique($cssCoreHandlesList);
|
686 |
}
|
687 |
} else {
|
698 |
}
|
699 |
}
|
700 |
|
701 |
+
/**
|
702 |
+
* Fallback in the case the WordPress version is below 5.9.0
|
703 |
+
*
|
704 |
+
* @param $filename
|
705 |
+
* @param $options
|
706 |
+
*
|
707 |
+
* @return mixed|null
|
708 |
+
*/
|
709 |
+
public static function wpJsonFileDecode( $filename, $options = array() )
|
710 |
+
{
|
711 |
+
$filename = wp_normalize_path( realpath( $filename ) );
|
712 |
+
|
713 |
+
if ( ! file_exists( $filename ) ) {
|
714 |
+
trigger_error(
|
715 |
+
sprintf(
|
716 |
+
/* translators: %s: Path to the JSON file. */
|
717 |
+
__( "File %s doesn't exist!" ),
|
718 |
+
$filename
|
719 |
+
)
|
720 |
+
);
|
721 |
+
return null;
|
722 |
+
}
|
723 |
+
|
724 |
+
$options = wp_parse_args( $options, array( 'associative' => false ) );
|
725 |
+
$decoded_file = json_decode( file_get_contents( $filename ), $options['associative'] );
|
726 |
+
|
727 |
+
if ( JSON_ERROR_NONE !== json_last_error() ) {
|
728 |
+
trigger_error(
|
729 |
+
sprintf(
|
730 |
+
/* translators: 1: Path to the JSON file, 2: Error message. */
|
731 |
+
__( 'Error when decoding a JSON file at path %1$s: %2$s' ),
|
732 |
+
$filename,
|
733 |
+
json_last_error_msg()
|
734 |
+
)
|
735 |
+
);
|
736 |
+
return null;
|
737 |
+
}
|
738 |
+
|
739 |
+
return $decoded_file;
|
740 |
+
}
|
741 |
+
|
742 |
/**
|
743 |
* @return bool
|
744 |
*/
|
747 |
return function_exists('libxml_use_internal_errors') && function_exists('libxml_clear_errors') && class_exists('\DOMDocument') && class_exists('\DOMXpath');
|
748 |
}
|
749 |
|
750 |
+
/**
|
751 |
+
* @return \DOMDocument
|
752 |
+
*/
|
753 |
+
public static function initDOMDocument()
|
754 |
+
{
|
755 |
+
$dom = new \DOMDocument();
|
756 |
+
|
757 |
+
// Any document errors reported in the HTML source (lots of websites have them) are irrelevant for the functionality of the plugin
|
758 |
+
libxml_use_internal_errors(true);
|
759 |
+
|
760 |
+
return $dom;
|
761 |
+
}
|
762 |
+
|
763 |
/**
|
764 |
* @return array|string
|
765 |
*/
|
767 |
{
|
768 |
if (! ObjectCache::wpacu_cache_get('wpacu_w3tc_master_config')) {
|
769 |
$w3tcConfigMasterFile = WP_CONTENT_DIR . '/w3tc-config/master.php';
|
770 |
+
$w3tcMasterConfig = FileSystem::fileGetContents($w3tcConfigMasterFile);
|
771 |
ObjectCache::wpacu_cache_set('wpacu_w3tc_master_config', trim($w3tcMasterConfig));
|
772 |
} else {
|
773 |
$w3tcMasterConfig = ObjectCache::wpacu_cache_get('wpacu_w3tc_master_config');
|
classes/ObjectCache.php
CHANGED
@@ -17,7 +17,7 @@ namespace WpAssetCleanUp;
|
|
17 |
* Core class that implements an object cache.
|
18 |
*
|
19 |
* The WordPress Object Cache is used to save on trips to the database. The
|
20 |
-
* Object Cache stores all
|
21 |
* contents available by using a key, which is used to name and later retrieve
|
22 |
* the cache contents.
|
23 |
*
|
17 |
* Core class that implements an object cache.
|
18 |
*
|
19 |
* The WordPress Object Cache is used to save on trips to the database. The
|
20 |
+
* Object Cache stores all the cache data to memory and makes the cache
|
21 |
* contents available by using a key, which is used to name and later retrieve
|
22 |
* the cache contents.
|
23 |
*
|
classes/OptimiseAssets/CombineCss.php
CHANGED
@@ -338,9 +338,7 @@ HTML;
|
|
338 |
}
|
339 |
|
340 |
// The DOMDocument is already checked if it's enabled in doCombine()
|
341 |
-
$domTag =
|
342 |
-
|
343 |
-
libxml_use_internal_errors(true);
|
344 |
$domTag->loadHTML($matchedSourceFromTag);
|
345 |
|
346 |
foreach ($domTag->getElementsByTagName('link') as $tagObject) {
|
@@ -438,7 +436,7 @@ HTML;
|
|
438 |
$uriToFinalCssFile = $localFinalCssFile = $finalCombinedCssContent = '';
|
439 |
|
440 |
foreach ($localAssetsPaths as $assetHref => $localAssetsPath) {
|
441 |
-
if ($cssContent = trim(FileSystem::
|
442 |
$pathToAssetDir = OptimizeCommon::getPathToAssetDir($assetHref);
|
443 |
|
444 |
// Does it have a source map? Strip it
|
@@ -473,7 +471,7 @@ HTML;
|
|
473 |
$localFinalCssFile = WP_CONTENT_DIR . OptimizeCss::getRelPathCssCacheDir() . $uriToFinalCssFile;
|
474 |
|
475 |
if (! is_file($localFinalCssFile)) {
|
476 |
-
FileSystem::
|
477 |
}
|
478 |
}
|
479 |
|
338 |
}
|
339 |
|
340 |
// The DOMDocument is already checked if it's enabled in doCombine()
|
341 |
+
$domTag = Misc::initDOMDocument();
|
|
|
|
|
342 |
$domTag->loadHTML($matchedSourceFromTag);
|
343 |
|
344 |
foreach ($domTag->getElementsByTagName('link') as $tagObject) {
|
436 |
$uriToFinalCssFile = $localFinalCssFile = $finalCombinedCssContent = '';
|
437 |
|
438 |
foreach ($localAssetsPaths as $assetHref => $localAssetsPath) {
|
439 |
+
if ($cssContent = trim(FileSystem::fileGetContents($localAssetsPath, 'combine_css_imports'))) {
|
440 |
$pathToAssetDir = OptimizeCommon::getPathToAssetDir($assetHref);
|
441 |
|
442 |
// Does it have a source map? Strip it
|
471 |
$localFinalCssFile = WP_CONTENT_DIR . OptimizeCss::getRelPathCssCacheDir() . $uriToFinalCssFile;
|
472 |
|
473 |
if (! is_file($localFinalCssFile)) {
|
474 |
+
FileSystem::filePutContents($localFinalCssFile, $finalCombinedCssContent);
|
475 |
}
|
476 |
}
|
477 |
|
classes/OptimiseAssets/CombineJs.php
CHANGED
@@ -73,8 +73,7 @@ class CombineJs
|
|
73 |
$minifyJsInlineTagsIsNotEnabled = ! (MinifyJs::isMinifyJsEnabled() && in_array(Main::instance()->settings['minify_loaded_js_for'], array('inline', 'all')));
|
74 |
|
75 |
if ($minifyJsInlineTagsIsNotEnabled) {
|
76 |
-
$domTag =
|
77 |
-
libxml_use_internal_errors(true);
|
78 |
|
79 |
// Strip irrelevant tags to boost the speed of the parser (e.g. NOSCRIPT / SCRIPT(inline) / STYLE)
|
80 |
// Sometimes, inline CODE can be too large, and it takes extra time for loadHTML() to parse
|
@@ -126,6 +125,7 @@ class CombineJs
|
|
126 |
$scriptNotCombinable = true;
|
127 |
}
|
128 |
|
|
|
129 |
$hasSrc = isset($scriptAttributes['src']) && trim($scriptAttributes['src']); // No valid SRC attribute? It's not combinable (e.g. an inline tag)
|
130 |
$isPluginScript = isset($scriptAttributes['data-wpacu-plugin-script']); // Only of the user is logged-in (skip it as it belongs to the Asset CleanUp (Pro) plugin)
|
131 |
|
@@ -137,7 +137,6 @@ class CombineJs
|
|
137 |
|
138 |
// Because of jQuery, we will not have the list of all inline scripts and then the combined files as it is in BODY
|
139 |
if ($docLocationScript === 'head') {
|
140 |
-
$handleToCheck = isset($scriptAttributes['data-wpacu-script-handle']) ? $scriptAttributes['data-wpacu-script-handle'] : ''; // Maybe: JS Inline (Before, After)
|
141 |
if ($handleToCheck === '' && isset($scriptAttributes['id'])) {
|
142 |
$replaceToGetHandle = '';
|
143 |
if (strpos($scriptAttributes['id'], '-js-extra') !== false) { $replaceToGetHandle = '-js-extra'; }
|
@@ -175,7 +174,7 @@ class CombineJs
|
|
175 |
if (! $scriptNotCombinable) {
|
176 |
$src = (string)$scriptAttributes['src'];
|
177 |
|
178 |
-
if (self::skipCombine($src)) {
|
179 |
$scriptNotCombinable = true;
|
180 |
}
|
181 |
|
@@ -191,7 +190,7 @@ class CombineJs
|
|
191 |
}
|
192 |
|
193 |
// Was it optimized and has the URL updated? Check the Source URL
|
194 |
-
if (! $scriptNotCombinable && isset($scriptAttributes['data-wpacu-script-rel-src-before']) && $scriptAttributes['data-wpacu-script-rel-src-before'] && self::skipCombine($scriptAttributes['data-wpacu-script-rel-src-before'])) {
|
195 |
$scriptNotCombinable = true;
|
196 |
}
|
197 |
|
@@ -478,11 +477,10 @@ class CombineJs
|
|
478 |
return $htmlSource;
|
479 |
}
|
480 |
|
481 |
-
$domTag =
|
482 |
-
libxml_use_internal_errors(true);
|
483 |
|
484 |
// Strip irrelevant tags to boost the speed of the parser (e.g. NOSCRIPT / SCRIPT(inline) / STYLE)
|
485 |
-
// Sometimes, inline CODE can be too large and it takes extra time for loadHTML() to parse
|
486 |
$htmlSourceAlt = preg_replace( '@<script(| type=\'text/javascript\'| type="text/javascript")>.*?</script>@si', '', $htmlAfterFirstCombinedDeferScript );
|
487 |
$htmlSourceAlt = preg_replace( '@<(style|noscript)[^>]*?>.*?</\\1>@si', '', $htmlSourceAlt );
|
488 |
$htmlSourceAlt = preg_replace( '#<link([^<>]+)/?>#iU', '', $htmlSourceAlt );
|
@@ -549,8 +547,13 @@ class CombineJs
|
|
549 |
*
|
550 |
* @return bool
|
551 |
*/
|
552 |
-
public static function skipCombine($src)
|
553 |
{
|
|
|
|
|
|
|
|
|
|
|
554 |
$regExps = array(
|
555 |
'#/wp-content/bs-booster-cache/#'
|
556 |
);
|
@@ -603,7 +606,7 @@ class CombineJs
|
|
603 |
$uriToFinalJsFile = $localFinalJsFile = $finalJsContents = '';
|
604 |
|
605 |
foreach ($localAssetsPaths as $assetHref => $localAssetsPath) {
|
606 |
-
if ($jsContent = trim(FileSystem::
|
607 |
if ($jsContent === '') {
|
608 |
continue;
|
609 |
}
|
@@ -640,7 +643,7 @@ class CombineJs
|
|
640 |
$localFinalJsFile = WP_CONTENT_DIR . OptimizeJs::getRelPathJsCacheDir() . $uriToFinalJsFile;
|
641 |
|
642 |
if (! is_file($localFinalJsFile)) {
|
643 |
-
FileSystem::
|
644 |
}
|
645 |
}
|
646 |
|
73 |
$minifyJsInlineTagsIsNotEnabled = ! (MinifyJs::isMinifyJsEnabled() && in_array(Main::instance()->settings['minify_loaded_js_for'], array('inline', 'all')));
|
74 |
|
75 |
if ($minifyJsInlineTagsIsNotEnabled) {
|
76 |
+
$domTag = Misc::initDOMDocument();
|
|
|
77 |
|
78 |
// Strip irrelevant tags to boost the speed of the parser (e.g. NOSCRIPT / SCRIPT(inline) / STYLE)
|
79 |
// Sometimes, inline CODE can be too large, and it takes extra time for loadHTML() to parse
|
125 |
$scriptNotCombinable = true;
|
126 |
}
|
127 |
|
128 |
+
$handleToCheck = isset($scriptAttributes['data-wpacu-script-handle']) ? $scriptAttributes['data-wpacu-script-handle'] : ''; // Maybe: JS Inline (Before, After)
|
129 |
$hasSrc = isset($scriptAttributes['src']) && trim($scriptAttributes['src']); // No valid SRC attribute? It's not combinable (e.g. an inline tag)
|
130 |
$isPluginScript = isset($scriptAttributes['data-wpacu-plugin-script']); // Only of the user is logged-in (skip it as it belongs to the Asset CleanUp (Pro) plugin)
|
131 |
|
137 |
|
138 |
// Because of jQuery, we will not have the list of all inline scripts and then the combined files as it is in BODY
|
139 |
if ($docLocationScript === 'head') {
|
|
|
140 |
if ($handleToCheck === '' && isset($scriptAttributes['id'])) {
|
141 |
$replaceToGetHandle = '';
|
142 |
if (strpos($scriptAttributes['id'], '-js-extra') !== false) { $replaceToGetHandle = '-js-extra'; }
|
174 |
if (! $scriptNotCombinable) {
|
175 |
$src = (string)$scriptAttributes['src'];
|
176 |
|
177 |
+
if (self::skipCombine($src, $handleToCheck)) {
|
178 |
$scriptNotCombinable = true;
|
179 |
}
|
180 |
|
190 |
}
|
191 |
|
192 |
// Was it optimized and has the URL updated? Check the Source URL
|
193 |
+
if (! $scriptNotCombinable && isset($scriptAttributes['data-wpacu-script-rel-src-before']) && $scriptAttributes['data-wpacu-script-rel-src-before'] && self::skipCombine($scriptAttributes['data-wpacu-script-rel-src-before'], $handleToCheck)) {
|
194 |
$scriptNotCombinable = true;
|
195 |
}
|
196 |
|
477 |
return $htmlSource;
|
478 |
}
|
479 |
|
480 |
+
$domTag = Misc::initDOMDocument();
|
|
|
481 |
|
482 |
// Strip irrelevant tags to boost the speed of the parser (e.g. NOSCRIPT / SCRIPT(inline) / STYLE)
|
483 |
+
// Sometimes, inline CODE can be too large, and it takes extra time for loadHTML() to parse
|
484 |
$htmlSourceAlt = preg_replace( '@<script(| type=\'text/javascript\'| type="text/javascript")>.*?</script>@si', '', $htmlAfterFirstCombinedDeferScript );
|
485 |
$htmlSourceAlt = preg_replace( '@<(style|noscript)[^>]*?>.*?</\\1>@si', '', $htmlSourceAlt );
|
486 |
$htmlSourceAlt = preg_replace( '#<link([^<>]+)/?>#iU', '', $htmlSourceAlt );
|
547 |
*
|
548 |
* @return bool
|
549 |
*/
|
550 |
+
public static function skipCombine($src, $handle = '')
|
551 |
{
|
552 |
+
// In case the handle was appended
|
553 |
+
if ($handle !== '' && in_array($handle, Main::instance()->skipAssets['scripts'])) {
|
554 |
+
return true;
|
555 |
+
}
|
556 |
+
|
557 |
$regExps = array(
|
558 |
'#/wp-content/bs-booster-cache/#'
|
559 |
);
|
606 |
$uriToFinalJsFile = $localFinalJsFile = $finalJsContents = '';
|
607 |
|
608 |
foreach ($localAssetsPaths as $assetHref => $localAssetsPath) {
|
609 |
+
if ($jsContent = trim(FileSystem::fileGetContents($localAssetsPath))) {
|
610 |
if ($jsContent === '') {
|
611 |
continue;
|
612 |
}
|
643 |
$localFinalJsFile = WP_CONTENT_DIR . OptimizeJs::getRelPathJsCacheDir() . $uriToFinalJsFile;
|
644 |
|
645 |
if (! is_file($localFinalJsFile)) {
|
646 |
+
FileSystem::filePutContents( $localFinalJsFile, $finalJsContents );
|
647 |
}
|
648 |
}
|
649 |
|
classes/OptimiseAssets/MinifyJs.php
CHANGED
@@ -68,7 +68,7 @@ class MinifyJs
|
|
68 |
}
|
69 |
|
70 |
$regExps = array(
|
71 |
-
'#/wp-content/plugins/wp-asset-clean-up(.*?).
|
72 |
|
73 |
// Other libraries from the core that end in .min.js
|
74 |
'#/wp-includes/(.*?).min.js#',
|
@@ -82,7 +82,7 @@ class MinifyJs
|
|
82 |
//'#/wp-content/uploads/(.*?).js#',
|
83 |
'#/wp-content/cache/(.*?).js#',
|
84 |
|
85 |
-
// Already minified and it also has a random name making the cache folder make bigger
|
86 |
'#/wp-content/bs-booster-cache/#',
|
87 |
|
88 |
// Elementor .min.js
|
68 |
}
|
69 |
|
70 |
$regExps = array(
|
71 |
+
'#/wp-content/plugins/wp-asset-clean-up(.*?).js#',
|
72 |
|
73 |
// Other libraries from the core that end in .min.js
|
74 |
'#/wp-includes/(.*?).min.js#',
|
82 |
//'#/wp-content/uploads/(.*?).js#',
|
83 |
'#/wp-content/cache/(.*?).js#',
|
84 |
|
85 |
+
// Already minified, and it also has a random name making the cache folder make bigger
|
86 |
'#/wp-content/bs-booster-cache/#',
|
87 |
|
88 |
// Elementor .min.js
|
classes/OptimiseAssets/OptimizeCommon.php
CHANGED
@@ -345,8 +345,7 @@ class OptimizeCommon
|
|
345 |
{
|
346 |
$htmlSourceBefore = $htmlSource;
|
347 |
|
348 |
-
$domTag =
|
349 |
-
libxml_use_internal_errors( true );
|
350 |
|
351 |
$cleanerDomRegEx = '';
|
352 |
|
@@ -396,7 +395,7 @@ class OptimizeCommon
|
|
396 |
|
397 |
// Avoid "Warning: DOMDocument::loadHTML(): Empty string supplied as input"
|
398 |
// Just in case $htmlSource has been altered incorrectly for any reason, fallback to the original $htmlSource value ($htmlSourceBefore)
|
399 |
-
if (! $htmlSource) {
|
400 |
$domTag->loadHTML($htmlSourceBefore);
|
401 |
return $domTag;
|
402 |
}
|
@@ -405,6 +404,107 @@ class OptimizeCommon
|
|
405 |
return $domTag;
|
406 |
}
|
407 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
408 |
/**
|
409 |
* @return string
|
410 |
*/
|
@@ -515,21 +615,35 @@ class OptimizeCommon
|
|
515 |
$hrefRelPath = substr($hrefRelPath, 1);
|
516 |
}
|
517 |
|
518 |
-
$
|
519 |
|
520 |
-
|
521 |
-
|
522 |
-
$localAssetPath = $localAssetPathAlt;
|
523 |
-
}
|
524 |
|
525 |
-
//
|
526 |
-
|
527 |
-
|
528 |
-
|
|
|
|
|
|
|
529 |
}
|
530 |
|
531 |
-
|
532 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
533 |
}
|
534 |
|
535 |
return false;
|
@@ -582,8 +696,6 @@ class OptimizeCommon
|
|
582 |
return false;
|
583 |
}
|
584 |
|
585 |
-
$isRelPath = false;
|
586 |
-
|
587 |
// Check if it starts without "/" or a protocol; e.g. "wp-content/theme/style.css", "wp-content/theme/script.js"
|
588 |
if (strpos($sourceFromTag, '/') !== 0 &&
|
589 |
strpos($sourceFromTag, '//') !== 0 &&
|
@@ -594,7 +706,24 @@ class OptimizeCommon
|
|
594 |
}
|
595 |
|
596 |
// Perhaps the URL starts with / (not //) and site_url() was not used
|
597 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
598 |
$isRelPath = true;
|
599 |
}
|
600 |
|
@@ -837,7 +966,7 @@ class OptimizeCommon
|
|
837 |
return array();
|
838 |
}
|
839 |
|
840 |
-
$optionValue = FileSystem::
|
841 |
|
842 |
if ($optionValue) {
|
843 |
$optionValueArray = @json_decode($optionValue, ARRAY_A);
|
@@ -941,7 +1070,7 @@ class OptimizeCommon
|
|
941 |
$assetsValue = $list;
|
942 |
}
|
943 |
|
944 |
-
FileSystem::
|
945 |
}
|
946 |
|
947 |
/**
|
@@ -1597,7 +1726,7 @@ SQL;
|
|
1597 |
$assetsFile = $dirToFilename . $transient.'.json';
|
1598 |
|
1599 |
if (is_file($assetsFile)) {
|
1600 |
-
$contents = trim(FileSystem::
|
1601 |
|
1602 |
if (! $contents) {
|
1603 |
// The file is empty or the contents could not be retrieved
|
@@ -1677,7 +1806,7 @@ SQL;
|
|
1677 |
|
1678 |
if ( isset( $valueDecoded['optimize_uri'] ) && $valueDecoded['optimize_uri'] && (strrchr( $valueDecoded['optimize_uri'], '.' ) === '.'.$assetType) ) {
|
1679 |
$handleDbStr = str_replace( 'wpacu_' . $assetType . '_optimize_', '', $transient );
|
1680 |
-
FileSystem::
|
1681 |
$recentItemStorageDir . 'file-handle-' . $assetType . '-'. md5( $handleDbStr ) . '.txt',
|
1682 |
$valueDecoded['optimize_uri']
|
1683 |
);
|
@@ -1699,7 +1828,7 @@ SQL;
|
|
1699 |
$mostRecentCachedAssetsInfoList = glob($patternToUse);
|
1700 |
if ( ! empty($mostRecentCachedAssetsInfoList) ) {
|
1701 |
foreach ( $mostRecentCachedAssetsInfoList as $fileFullPath ) {
|
1702 |
-
$mostRecentCachedAssets[] = trim(FileSystem::
|
1703 |
}
|
1704 |
}
|
1705 |
|
345 |
{
|
346 |
$htmlSourceBefore = $htmlSource;
|
347 |
|
348 |
+
$domTag = Misc::initDOMDocument();
|
|
|
349 |
|
350 |
$cleanerDomRegEx = '';
|
351 |
|
395 |
|
396 |
// Avoid "Warning: DOMDocument::loadHTML(): Empty string supplied as input"
|
397 |
// Just in case $htmlSource has been altered incorrectly for any reason, fallback to the original $htmlSource value ($htmlSourceBefore)
|
398 |
+
if ( ! $htmlSource ) {
|
399 |
$domTag->loadHTML($htmlSourceBefore);
|
400 |
return $domTag;
|
401 |
}
|
404 |
return $domTag;
|
405 |
}
|
406 |
|
407 |
+
/**
|
408 |
+
* @param $htmlSource
|
409 |
+
* @param $params
|
410 |
+
*
|
411 |
+
* @return array|mixed|string|string[]
|
412 |
+
*/
|
413 |
+
public static function matchAndReplaceLinkTags($htmlSource, $params = array())
|
414 |
+
{
|
415 |
+
if (isset($params['as']) && $params['as']) {
|
416 |
+
$fallbackToRegex = false;
|
417 |
+
|
418 |
+
/*
|
419 |
+
* Option 1: DOM + Regular Expression (Best)
|
420 |
+
*/
|
421 |
+
if ( Misc::isDOMDocumentOn() ) {
|
422 |
+
$dom = Misc::initDOMDocument();
|
423 |
+
|
424 |
+
$dom->loadHTML($htmlSource);
|
425 |
+
|
426 |
+
$selector = new \DOMXPath($dom);
|
427 |
+
|
428 |
+
$domTagQuery = $selector->query('//link[@as="'.$params['as'].'"]');
|
429 |
+
|
430 |
+
if (count($domTagQuery) < 1) {
|
431 |
+
// No LINK tags found with the specified "as" attribute? Stop here!
|
432 |
+
return $htmlSource;
|
433 |
+
}
|
434 |
+
|
435 |
+
foreach($domTagQuery as $link) {
|
436 |
+
if ( ! $link->hasAttributes() ) {
|
437 |
+
continue;
|
438 |
+
}
|
439 |
+
|
440 |
+
$linkTagParts = array();
|
441 |
+
$linkTagParts[] = '<link ';
|
442 |
+
|
443 |
+
foreach ($link->attributes as $attr) {
|
444 |
+
$attrName = $attr->nodeName;
|
445 |
+
$attrValue = $attr->nodeValue;
|
446 |
+
|
447 |
+
if ($attrName) {
|
448 |
+
if ($attrValue !== '') {
|
449 |
+
$linkTagParts[] = '(\s+|)' . preg_quote($attrName, '/') . '(\s+|)=(\s+|)(|"|\')' . preg_quote($attrValue, '/') . '(|"|\')(|\s+)';
|
450 |
+
} else {
|
451 |
+
$linkTagParts[] = '(\s+|)' . preg_quote($attrName, '/') . '(|((\s+|)=(\s+|)(|"|\')(|"|\')))';
|
452 |
+
}
|
453 |
+
}
|
454 |
+
}
|
455 |
+
|
456 |
+
$linkTagParts[] = '(|\s+)(|/)>';
|
457 |
+
|
458 |
+
$linkTagFinalRegExPart = implode('', $linkTagParts);
|
459 |
+
|
460 |
+
preg_match_all(
|
461 |
+
'#'.$linkTagFinalRegExPart.'#Umi',
|
462 |
+
$htmlSource,
|
463 |
+
$matchSourceFromTag,
|
464 |
+
PREG_SET_ORDER
|
465 |
+
);
|
466 |
+
|
467 |
+
// It always has to be a match from the DOM generated tag
|
468 |
+
// Otherwise, default it to RegEx
|
469 |
+
if ( empty($matchSourceFromTag) || ! (isset($matchSourceFromTag[0]) && ! empty($matchSourceFromTag[0])) ) {
|
470 |
+
$fallbackToRegex = true;
|
471 |
+
break;
|
472 |
+
}
|
473 |
+
|
474 |
+
$matchesSourcesFromTags[] = $matchSourceFromTag[0];
|
475 |
+
}
|
476 |
+
}
|
477 |
+
|
478 |
+
/*
|
479 |
+
* Option 2: Regular Expression (Fallback)
|
480 |
+
*/
|
481 |
+
if ($fallbackToRegex || ! Misc::isDOMDocumentOn()) {
|
482 |
+
preg_match_all( '#<link[^>]*(as(\s+|)=(\s+|)(|"|\')'.$params['as'].'(|"|\'))[^>]*>#Umi', $htmlSource, $matchesSourcesFromTags, PREG_SET_ORDER );
|
483 |
+
}
|
484 |
+
|
485 |
+
// Are there any preloaded / prefetched scripts that are inside the unloaded list?
|
486 |
+
// Strip the preloading tag as it's not relevant, since the script was unloaded
|
487 |
+
// These can be generated via plugins such as "Pre* Party Resource Hints" where users can manually insert scripts to preload
|
488 |
+
if ( ! empty( $matchesSourcesFromTags ) ) {
|
489 |
+
foreach ( $matchesSourcesFromTags as $matchedLink ) {
|
490 |
+
$matchedLinkTag = isset( $matchedLink[0] ) ? $matchedLink[0] : '';
|
491 |
+
|
492 |
+
if ( ! ( $matchedLinkTag && strpos( $matchedLinkTag, ' href' ) !== false ) ) {
|
493 |
+
continue;
|
494 |
+
}
|
495 |
+
|
496 |
+
foreach ( $params['unloaded_assets_rel_sources'] as $unloadedAssetRelSource ) {
|
497 |
+
if ( strpos( $matchedLinkTag, $unloadedAssetRelSource ) !== false ) {
|
498 |
+
$htmlSource = str_replace( $matchedLinkTag, '', $htmlSource );
|
499 |
+
}
|
500 |
+
}
|
501 |
+
}
|
502 |
+
}
|
503 |
+
}
|
504 |
+
|
505 |
+
return $htmlSource;
|
506 |
+
}
|
507 |
+
|
508 |
/**
|
509 |
* @return string
|
510 |
*/
|
615 |
$hrefRelPath = substr($hrefRelPath, 1);
|
616 |
}
|
617 |
|
618 |
+
$localAssetPossiblePaths = array(Misc::getWpRootDirPath() . $hrefRelPath);
|
619 |
|
620 |
+
// Perhaps the URL starts with / (not //) and site_url() was not used
|
621 |
+
$parseSiteUrlPath = parse_url(site_url(), PHP_URL_PATH);
|
|
|
|
|
622 |
|
623 |
+
// This is in case we have something like this in the source (hardcoded or generated through a plugin)
|
624 |
+
// /blog/wp-content/plugins/custom-plugin-slug/script.js
|
625 |
+
// and the site_url() is equal with https://www.mysite.com/blog
|
626 |
+
if ($parseSiteUrlPath !== '/' && strlen($parseSiteUrlPath) > 1 && strpos($href, $parseSiteUrlPath) === 0) {
|
627 |
+
$relPathFromWpRootDir = str_replace($parseSiteUrlPath, '', $href);
|
628 |
+
$altHrefRelPath = str_replace('//', '/', Misc::getWpRootDirPath() . $relPathFromWpRootDir);
|
629 |
+
$localAssetPossiblePaths[] = $altHrefRelPath;
|
630 |
}
|
631 |
|
632 |
+
foreach ($localAssetPossiblePaths as $localAssetPath) {
|
633 |
+
if ( strpos( $localAssetPath, '?ver' ) !== false ) {
|
634 |
+
list( $localAssetPathAlt, ) = explode( '?ver', $localAssetPath );
|
635 |
+
$localAssetPath = $localAssetPathAlt;
|
636 |
+
}
|
637 |
+
|
638 |
+
// Not using "?ver="
|
639 |
+
if ( strpos( $localAssetPath, '.' . $assetType . '?' ) !== false ) {
|
640 |
+
list( $localAssetPathAlt, ) = explode( '.' . $assetType . '?', $localAssetPath );
|
641 |
+
$localAssetPath = $localAssetPathAlt . '.' . $assetType;
|
642 |
+
}
|
643 |
+
|
644 |
+
if ( strrchr( $localAssetPath, '.' ) === '.' . $assetType && is_file( $localAssetPath ) ) {
|
645 |
+
return $localAssetPath;
|
646 |
+
}
|
647 |
}
|
648 |
|
649 |
return false;
|
696 |
return false;
|
697 |
}
|
698 |
|
|
|
|
|
699 |
// Check if it starts without "/" or a protocol; e.g. "wp-content/theme/style.css", "wp-content/theme/script.js"
|
700 |
if (strpos($sourceFromTag, '/') !== 0 &&
|
701 |
strpos($sourceFromTag, '//') !== 0 &&
|
706 |
}
|
707 |
|
708 |
// Perhaps the URL starts with / (not //) and site_url() was not used
|
709 |
+
$altFilePathForRelSource = $isRelPath = false;
|
710 |
+
$parseSiteUrlPath = parse_url(site_url(), PHP_URL_PATH);
|
711 |
+
|
712 |
+
// This is in case we have something like this in the HTML source (hardcoded or generated through a plugin)
|
713 |
+
// <link href="/blog/wp-content/plugins/custom-plugin-slug/script.js" rel="preload" as="script" type="text/javascript">
|
714 |
+
// and the site_url() is equal with https://www.mysite.com/blog
|
715 |
+
if ($parseSiteUrlPath !== '/' && strlen($parseSiteUrlPath) > 1 && strpos($sourceFromTag, $parseSiteUrlPath) !== false) {
|
716 |
+
$relPathFromRootDir = str_replace($parseSiteUrlPath, '', $sourceFromTag);
|
717 |
+
$altFilePathForRelSource = str_replace('//', '/', Misc::getWpRootDirPath() . $relPathFromRootDir);
|
718 |
+
} elseif (strpos($sourceFromTag, '/') === 0 && strpos($sourceFromTag, '//') !== 0) {
|
719 |
+
$altFilePathForRelSource = str_replace('//', '/', Misc::getWpRootDirPath() . $sourceFromTag);
|
720 |
+
}
|
721 |
+
|
722 |
+
if ($altFilePathForRelSource && (strpos($altFilePathForRelSource, '.css?') !== false || strpos($altFilePathForRelSource, '.js?') !== false)) {
|
723 |
+
list($altFilePathForRelSource) = explode('?', $altFilePathForRelSource);
|
724 |
+
}
|
725 |
+
|
726 |
+
if ( $altFilePathForRelSource && (is_file(Misc::getWpRootDirPath() . $sourceFromTag) || is_file($altFilePathForRelSource)) ) {
|
727 |
$isRelPath = true;
|
728 |
}
|
729 |
|
966 |
return array();
|
967 |
}
|
968 |
|
969 |
+
$optionValue = FileSystem::fileGetContents($assetsFile);
|
970 |
|
971 |
if ($optionValue) {
|
972 |
$optionValueArray = @json_decode($optionValue, ARRAY_A);
|
1070 |
$assetsValue = $list;
|
1071 |
}
|
1072 |
|
1073 |
+
FileSystem::filePutContents($assetsFile, $assetsValue);
|
1074 |
}
|
1075 |
|
1076 |
/**
|
1726 |
$assetsFile = $dirToFilename . $transient.'.json';
|
1727 |
|
1728 |
if (is_file($assetsFile)) {
|
1729 |
+
$contents = trim(FileSystem::fileGetContents($assetsFile));
|
1730 |
|
1731 |
if (! $contents) {
|
1732 |
// The file is empty or the contents could not be retrieved
|
1806 |
|
1807 |
if ( isset( $valueDecoded['optimize_uri'] ) && $valueDecoded['optimize_uri'] && (strrchr( $valueDecoded['optimize_uri'], '.' ) === '.'.$assetType) ) {
|
1808 |
$handleDbStr = str_replace( 'wpacu_' . $assetType . '_optimize_', '', $transient );
|
1809 |
+
FileSystem::filePutContents(
|
1810 |
$recentItemStorageDir . 'file-handle-' . $assetType . '-'. md5( $handleDbStr ) . '.txt',
|
1811 |
$valueDecoded['optimize_uri']
|
1812 |
);
|
1828 |
$mostRecentCachedAssetsInfoList = glob($patternToUse);
|
1829 |
if ( ! empty($mostRecentCachedAssetsInfoList) ) {
|
1830 |
foreach ( $mostRecentCachedAssetsInfoList as $fileFullPath ) {
|
1831 |
+
$mostRecentCachedAssets[] = trim(FileSystem::fileGetContents($fileFullPath));
|
1832 |
}
|
1833 |
}
|
1834 |
|
classes/OptimiseAssets/OptimizeCss.php
CHANGED
@@ -334,7 +334,7 @@ class OptimizeCss
|
|
334 |
*/
|
335 |
$pathToAssetDir = OptimizeCommon::getPathToAssetDir($src);
|
336 |
|
337 |
-
$cssContent = FileSystem::
|
338 |
|
339 |
$sourceBeforeOptimization = str_replace(Misc::getWpRootDirPath(), '/', $localAssetPath);
|
340 |
}
|
@@ -431,7 +431,7 @@ class OptimizeCss
|
|
431 |
$cssContent = '/*!' . $sourceBeforeOptimization . '*/' . $cssContent;
|
432 |
}
|
433 |
|
434 |
-
$saveFile = FileSystem::
|
435 |
|
436 |
if (! $saveFile && ! $cssContent) {
|
437 |
// Fallback to the original CSS if the optimized version can't be created or updated
|
@@ -477,6 +477,8 @@ class OptimizeCss
|
|
477 |
/* [wpacu_timing] */ Misc::scriptExecTimer($wpacuTimingName, 'end'); /* [/wpacu_timing] */
|
478 |
}
|
479 |
|
|
|
|
|
480 |
if (self::isWorthCheckingForOptimization()) {
|
481 |
/* [wpacu_timing] */ $wpacuTimingName = 'alter_html_source_original_to_optimized_css'; Misc::scriptExecTimer($wpacuTimingName); /* [/wpacu_timing] */
|
482 |
// 'wpacu_css_optimize_list' caching list is also checked; if it's empty, no optimization is made
|
@@ -614,7 +616,7 @@ class OptimizeCss
|
|
614 |
// Avoid Background URLs starting with "#", "data", "http" or "https" as they do not need to have a path updated
|
615 |
preg_match_all('/url\((?![\'"]?(?:#|data|http|https):)[\'"]?([^\'")]*)[\'"]?\)/i', $cssContent, $matches);
|
616 |
|
617 |
-
// If it
|
618 |
// Also skip ../ types as they were already processed
|
619 |
$toSkipList = array("url('/", 'url("/', 'url(/');
|
620 |
|
@@ -669,13 +671,31 @@ class OptimizeCss
|
|
669 |
*/
|
670 |
public static function updateHtmlSourceOriginalToOptimizedCss($htmlSource)
|
671 |
{
|
|
|
|
|
|
|
672 |
$cssOptimizeList = ObjectCache::wpacu_cache_get('wpacu_css_optimize_list') ?: array();
|
|
|
673 |
|
674 |
-
|
675 |
-
|
676 |
-
|
|
|
|
|
|
|
|
|
677 |
|
678 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
679 |
|
680 |
$cdnUrls = OptimizeCommon::getAnyCdnUrls();
|
681 |
$cdnUrlForCss = isset($cdnUrls['css']) ? $cdnUrls['css'] : false;
|
@@ -687,7 +707,7 @@ class OptimizeCss
|
|
687 |
return $htmlSource;
|
688 |
}
|
689 |
|
690 |
-
$linkTagsToUpdate = array();
|
691 |
|
692 |
foreach ($matchesSourcesFromTags as $matches) {
|
693 |
$linkSourceTag = $matches[0];
|
@@ -713,7 +733,9 @@ class OptimizeCss
|
|
713 |
$cleanLinkHrefFromTag = $cleanLinkHrefFromTagArray['source'];
|
714 |
$afterQuestionMark = $cleanLinkHrefFromTagArray['after_question_mark'];
|
715 |
|
716 |
-
|
|
|
|
|
717 |
// Not in the final enqueued list? Most likely hardcoded (not added via wp_enqueue_scripts())
|
718 |
// Emulate the object value (as the enqueued styles)
|
719 |
$generatedHandle = md5($cleanLinkHrefFromTag);
|
@@ -728,16 +750,33 @@ class OptimizeCss
|
|
728 |
ObjectCache::wpacu_cache_set('wpacu_maybe_optimize_it_css_'.$generatedHandle, $optimizeValues);
|
729 |
|
730 |
if (! empty($optimizeValues)) {
|
731 |
-
$
|
|
|
732 |
}
|
733 |
}
|
734 |
|
735 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
736 |
// Index 0: Source URL (relative)
|
737 |
// Index 1: New Optimized URL (relative)
|
738 |
// Index 2: Source URL (as it is)
|
739 |
|
740 |
-
//
|
|
|
|
|
|
|
|
|
|
|
|
|
741 |
|
742 |
// If the minified files are deleted (e.g. /wp-content/cache/ is cleared)
|
743 |
// do not replace the CSS file path to avoid breaking the website
|
@@ -747,16 +786,25 @@ class OptimizeCss
|
|
747 |
continue;
|
748 |
}
|
749 |
|
750 |
-
// Make sure the source URL gets updated even if it starts with // (some plugins/theme strip the protocol when enqueuing
|
751 |
-
$siteUrlNoProtocol = str_replace(array('http://', 'https://'), '//', site_url());
|
752 |
-
|
753 |
// If the first value fails to be replaced, the next one will be attempted for replacement
|
754 |
// the order of the elements in the array is very important
|
755 |
$sourceUrlList = array(
|
756 |
site_url() . $listValues[0], // with protocol
|
757 |
-
$siteUrlNoProtocol . $listValues[0] // without protocol
|
758 |
);
|
759 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
760 |
if ($cdnUrlForCss) {
|
761 |
// Does it have a CDN?
|
762 |
$sourceUrlList[] = OptimizeCommon::cdnToUrlFormat($cdnUrlForCss, 'rel') . $listValues[0];
|
@@ -770,6 +818,11 @@ class OptimizeCss
|
|
770 |
stripos($listValues[2], 'http://') !== 0 &&
|
771 |
stripos($listValues[2], 'https://') !== 0) ) {
|
772 |
$sourceUrlList[] = $listValues[2];
|
|
|
|
|
|
|
|
|
|
|
773 |
}
|
774 |
|
775 |
// If no CDN is set, it will return site_url() as a prefix
|
@@ -792,7 +845,6 @@ class OptimizeCss
|
|
792 |
$linkTagsToUpdate[$linkSourceTag] = $newLinkSourceTag;
|
793 |
}
|
794 |
|
795 |
-
unset($cssOptimizeList[$cssItemIndex]); // item from the array is not needed anymore
|
796 |
break; // there was a match, stop here
|
797 |
}
|
798 |
}
|
@@ -810,7 +862,17 @@ class OptimizeCss
|
|
810 |
*/
|
811 |
public static function updateOriginalToOptimizedTag($linkSourceTag, $sourceUrlList, $optimizeUrl)
|
812 |
{
|
813 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
814 |
|
815 |
// Needed in case it's added to the Combine CSS exceptions list
|
816 |
if (CombineCss::proceedWithCssCombine()) {
|
@@ -840,9 +902,7 @@ class OptimizeCss
|
|
840 |
$newLinkSourceTag = str_replace('.css&ver='.$wp_version, '.css', $newLinkSourceTag);
|
841 |
$newLinkSourceTag = str_replace('.css&ver=', '.css', $newLinkSourceTag);
|
842 |
|
843 |
-
|
844 |
-
|
845 |
-
return $newLinkSourceTag;
|
846 |
}
|
847 |
|
848 |
/**
|
@@ -959,7 +1019,7 @@ class OptimizeCss
|
|
959 |
$appendBeforeAnyRelPath = $cdnUrlForCss ? OptimizeCommon::cdnToUrlFormat($cdnUrlForCss, 'raw') : '';
|
960 |
|
961 |
$cssContent = self::maybeFixCssContent(
|
962 |
-
FileSystem::
|
963 |
$appendBeforeAnyRelPath . OptimizeCommon::getPathToAssetDir($linkHrefOriginal) . '/'
|
964 |
);
|
965 |
|
@@ -1063,7 +1123,7 @@ class OptimizeCss
|
|
1063 |
@unlink( $pathToInlineCssOptimizedItem );
|
1064 |
} else {
|
1065 |
// Not expired / Return its content from the cache in a faster way
|
1066 |
-
$inlineCssStorageItemJsonContent = trim( FileSystem::
|
1067 |
|
1068 |
if ( $inlineCssStorageItemJsonContent !== '' ) {
|
1069 |
return $inlineCssStorageItemJsonContent;
|
@@ -1091,7 +1151,7 @@ class OptimizeCss
|
|
1091 |
|
1092 |
if ($useCacheForInlineStyle && isset($pathToInlineCssOptimizedItem)) {
|
1093 |
// Store the optimized content to the cached CSS file which would be read quicker
|
1094 |
-
FileSystem::
|
1095 |
}
|
1096 |
|
1097 |
return $cssContent;
|
@@ -1134,6 +1194,34 @@ class OptimizeCss
|
|
1134 |
return $content;
|
1135 |
}
|
1136 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1137 |
/**
|
1138 |
* @param string $returnType
|
1139 |
*
|
334 |
*/
|
335 |
$pathToAssetDir = OptimizeCommon::getPathToAssetDir($src);
|
336 |
|
337 |
+
$cssContent = FileSystem::fileGetContents($localAssetPath, 'combine_css_imports');
|
338 |
|
339 |
$sourceBeforeOptimization = str_replace(Misc::getWpRootDirPath(), '/', $localAssetPath);
|
340 |
}
|
431 |
$cssContent = '/*!' . $sourceBeforeOptimization . '*/' . $cssContent;
|
432 |
}
|
433 |
|
434 |
+
$saveFile = FileSystem::filePutContents($newLocalPath, $cssContent);
|
435 |
|
436 |
if (! $saveFile && ! $cssContent) {
|
437 |
// Fallback to the original CSS if the optimized version can't be created or updated
|
477 |
/* [wpacu_timing] */ Misc::scriptExecTimer($wpacuTimingName, 'end'); /* [/wpacu_timing] */
|
478 |
}
|
479 |
|
480 |
+
$htmlSource = self::stripAnyReferencesForUnloadedStyles($htmlSource);
|
481 |
+
|
482 |
if (self::isWorthCheckingForOptimization()) {
|
483 |
/* [wpacu_timing] */ $wpacuTimingName = 'alter_html_source_original_to_optimized_css'; Misc::scriptExecTimer($wpacuTimingName); /* [/wpacu_timing] */
|
484 |
// 'wpacu_css_optimize_list' caching list is also checked; if it's empty, no optimization is made
|
616 |
// Avoid Background URLs starting with "#", "data", "http" or "https" as they do not need to have a path updated
|
617 |
preg_match_all('/url\((?![\'"]?(?:#|data|http|https):)[\'"]?([^\'")]*)[\'"]?\)/i', $cssContent, $matches);
|
618 |
|
619 |
+
// If it starts with forward slash (/), it doesn't need fix, just skip it
|
620 |
// Also skip ../ types as they were already processed
|
621 |
$toSkipList = array("url('/", 'url("/', 'url(/');
|
622 |
|
671 |
*/
|
672 |
public static function updateHtmlSourceOriginalToOptimizedCss($htmlSource)
|
673 |
{
|
674 |
+
$parseSiteUrlPath = parse_url(site_url(), PHP_URL_PATH);
|
675 |
+
$siteUrlNoProtocol = str_replace(array('http://', 'https://'), '//', site_url());
|
676 |
+
|
677 |
$cssOptimizeList = ObjectCache::wpacu_cache_get('wpacu_css_optimize_list') ?: array();
|
678 |
+
$allEnqueuedCleanSources = ObjectCache::wpacu_cache_get('wpacu_css_enqueued_hrefs') ?: array();
|
679 |
|
680 |
+
$allEnqueuedCleanSourcesIncludingTheirRelPaths = array();
|
681 |
+
|
682 |
+
foreach ($allEnqueuedCleanSources as $allEnqueuedCleanSource) {
|
683 |
+
$allEnqueuedCleanSourcesIncludingTheirRelPaths[] = $allEnqueuedCleanSource;
|
684 |
+
|
685 |
+
if (strpos($allEnqueuedCleanSource, 'http://') === 0 || strpos($allEnqueuedCleanSource, 'https://') === 0) {
|
686 |
+
$allEnqueuedCleanSourcesIncludingTheirRelPaths[] = str_replace(array('http://', 'https://'), '//', $allEnqueuedCleanSource);
|
687 |
|
688 |
+
// e.g. www.mysite.com/blog/
|
689 |
+
if ($parseSiteUrlPath !== '/' && strlen($parseSiteUrlPath) > 1) {
|
690 |
+
$allEnqueuedCleanSourcesIncludingTheirRelPaths[] = $parseSiteUrlPath . str_replace(site_url(), '', $allEnqueuedCleanSource);
|
691 |
+
}
|
692 |
+
|
693 |
+
// e.g. www.mysite.com/
|
694 |
+
if ($parseSiteUrlPath === '/' || ! $parseSiteUrlPath) {
|
695 |
+
$allEnqueuedCleanSourcesIncludingTheirRelPaths[] = str_replace(site_url(), '', $allEnqueuedCleanSource);
|
696 |
+
}
|
697 |
+
}
|
698 |
+
}
|
699 |
|
700 |
$cdnUrls = OptimizeCommon::getAnyCdnUrls();
|
701 |
$cdnUrlForCss = isset($cdnUrls['css']) ? $cdnUrls['css'] : false;
|
707 |
return $htmlSource;
|
708 |
}
|
709 |
|
710 |
+
$cssOptimizeListHardcoded = $linkTagsToUpdate = array();
|
711 |
|
712 |
foreach ($matchesSourcesFromTags as $matches) {
|
713 |
$linkSourceTag = $matches[0];
|
733 |
$cleanLinkHrefFromTag = $cleanLinkHrefFromTagArray['source'];
|
734 |
$afterQuestionMark = $cleanLinkHrefFromTagArray['after_question_mark'];
|
735 |
|
736 |
+
$isHardcodedDetected = false;
|
737 |
+
|
738 |
+
if (! in_array($cleanLinkHrefFromTag, $allEnqueuedCleanSourcesIncludingTheirRelPaths)) {
|
739 |
// Not in the final enqueued list? Most likely hardcoded (not added via wp_enqueue_scripts())
|
740 |
// Emulate the object value (as the enqueued styles)
|
741 |
$generatedHandle = md5($cleanLinkHrefFromTag);
|
750 |
ObjectCache::wpacu_cache_set('wpacu_maybe_optimize_it_css_'.$generatedHandle, $optimizeValues);
|
751 |
|
752 |
if (! empty($optimizeValues)) {
|
753 |
+
$isHardcodedDetected = true;
|
754 |
+
$cssOptimizeListHardcoded[] = $optimizeValues;
|
755 |
}
|
756 |
}
|
757 |
|
758 |
+
if ( ! $isHardcodedDetected ) {
|
759 |
+
$listToParse = $cssOptimizeList;
|
760 |
+
} else {
|
761 |
+
$listToParse = $cssOptimizeListHardcoded;
|
762 |
+
}
|
763 |
+
|
764 |
+
if (empty($listToParse)) {
|
765 |
+
continue;
|
766 |
+
}
|
767 |
+
|
768 |
+
foreach ($listToParse as $listValues) {
|
769 |
// Index 0: Source URL (relative)
|
770 |
// Index 1: New Optimized URL (relative)
|
771 |
// Index 2: Source URL (as it is)
|
772 |
|
773 |
+
// if the relative path from the WP root does not match the value of the source from the tag, do not continue
|
774 |
+
// e.g. '/wp-content/plugins/my-plugin/script.js' has to be inside '<script src="/wp-content/plugins/my-plugin/script.js?ver=1.1"></script>'
|
775 |
+
if (strpos($cleanLinkHrefFromTag, $listValues[0]) === false) {
|
776 |
+
continue;
|
777 |
+
}
|
778 |
+
|
779 |
+
// The contents of the CSS file has been changed and thus, we will replace the source path from the original tag with the cached (e.g. minified) one
|
780 |
|
781 |
// If the minified files are deleted (e.g. /wp-content/cache/ is cleared)
|
782 |
// do not replace the CSS file path to avoid breaking the website
|
786 |
continue;
|
787 |
}
|
788 |
|
789 |
+
// Make sure the source URL gets updated even if it starts with // (some plugins/theme strip the protocol when enqueuing assets)
|
|
|
|
|
790 |
// If the first value fails to be replaced, the next one will be attempted for replacement
|
791 |
// the order of the elements in the array is very important
|
792 |
$sourceUrlList = array(
|
793 |
site_url() . $listValues[0], // with protocol
|
794 |
+
$siteUrlNoProtocol . $listValues[0], // without protocol
|
795 |
);
|
796 |
|
797 |
+
if (strpos($listValues[0], $parseSiteUrlPath) === 0 || strpos($cleanLinkHrefFromTag, $parseSiteUrlPath) === 0) {
|
798 |
+
$sourceUrlList[] = $cleanLinkHrefFromTag;
|
799 |
+
}
|
800 |
+
|
801 |
+
if (strpos($cleanLinkHrefFromTag, $parseSiteUrlPath) === 0 && strpos($cleanLinkHrefFromTag, $listValues[0]) !== false) {
|
802 |
+
$sourceUrlList[] = str_replace('//', '/', $parseSiteUrlPath.'/'.$listValues[0]);
|
803 |
+
}
|
804 |
+
elseif ( $cleanLinkHrefFromTag === $listValues[0] ) {
|
805 |
+
$sourceUrlList[] = $listValues[0];
|
806 |
+
}
|
807 |
+
|
808 |
if ($cdnUrlForCss) {
|
809 |
// Does it have a CDN?
|
810 |
$sourceUrlList[] = OptimizeCommon::cdnToUrlFormat($cdnUrlForCss, 'rel') . $listValues[0];
|
818 |
stripos($listValues[2], 'http://') !== 0 &&
|
819 |
stripos($listValues[2], 'https://') !== 0) ) {
|
820 |
$sourceUrlList[] = $listValues[2];
|
821 |
+
|
822 |
+
}
|
823 |
+
|
824 |
+
if ( $cleanLinkHrefFromTag === $listValues[0] ) {
|
825 |
+
$sourceUrlList[] = $cleanLinkHrefFromTag;
|
826 |
}
|
827 |
|
828 |
// If no CDN is set, it will return site_url() as a prefix
|
845 |
$linkTagsToUpdate[$linkSourceTag] = $newLinkSourceTag;
|
846 |
}
|
847 |
|
|
|
848 |
break; // there was a match, stop here
|
849 |
}
|
850 |
}
|
862 |
*/
|
863 |
public static function updateOriginalToOptimizedTag($linkSourceTag, $sourceUrlList, $optimizeUrl)
|
864 |
{
|
865 |
+
if (is_array($sourceUrlList) && ! empty($sourceUrlList)) {
|
866 |
+
foreach ($sourceUrlList as $sourceUrl) {
|
867 |
+
$newLinkSourceTag = str_replace($sourceUrl, $optimizeUrl, $linkSourceTag);
|
868 |
+
|
869 |
+
if ($newLinkSourceTag !== $linkSourceTag) {
|
870 |
+
break;
|
871 |
+
}
|
872 |
+
}
|
873 |
+
} else {
|
874 |
+
$newLinkSourceTag = str_replace( $sourceUrlList, $optimizeUrl, $linkSourceTag );
|
875 |
+
}
|
876 |
|
877 |
// Needed in case it's added to the Combine CSS exceptions list
|
878 |
if (CombineCss::proceedWithCssCombine()) {
|
902 |
$newLinkSourceTag = str_replace('.css&ver='.$wp_version, '.css', $newLinkSourceTag);
|
903 |
$newLinkSourceTag = str_replace('.css&ver=', '.css', $newLinkSourceTag);
|
904 |
|
905 |
+
return preg_replace('!\s+!', ' ', $newLinkSourceTag); // replace multiple spaces with only one space
|
|
|
|
|
906 |
}
|
907 |
|
908 |
/**
|
1019 |
$appendBeforeAnyRelPath = $cdnUrlForCss ? OptimizeCommon::cdnToUrlFormat($cdnUrlForCss, 'raw') : '';
|
1020 |
|
1021 |
$cssContent = self::maybeFixCssContent(
|
1022 |
+
FileSystem::fileGetContents($localAssetPath, 'combine_css_imports'), // CSS content
|
1023 |
$appendBeforeAnyRelPath . OptimizeCommon::getPathToAssetDir($linkHrefOriginal) . '/'
|
1024 |
);
|
1025 |
|
1123 |
@unlink( $pathToInlineCssOptimizedItem );
|
1124 |
} else {
|
1125 |
// Not expired / Return its content from the cache in a faster way
|
1126 |
+
$inlineCssStorageItemJsonContent = trim( FileSystem::fileGetContents( $pathToInlineCssOptimizedItem ) );
|
1127 |
|
1128 |
if ( $inlineCssStorageItemJsonContent !== '' ) {
|
1129 |
return $inlineCssStorageItemJsonContent;
|
1151 |
|
1152 |
if ($useCacheForInlineStyle && isset($pathToInlineCssOptimizedItem)) {
|
1153 |
// Store the optimized content to the cached CSS file which would be read quicker
|
1154 |
+
FileSystem::filePutContents( $pathToInlineCssOptimizedItem, $cssContent );
|
1155 |
}
|
1156 |
|
1157 |
return $cssContent;
|
1194 |
return $content;
|
1195 |
}
|
1196 |
|
1197 |
+
/**
|
1198 |
+
* e.g. if a style is unloaded, strip any LINK tag that preloads that style (e.g. added by other plugins)
|
1199 |
+
*
|
1200 |
+
* @param $htmlSource
|
1201 |
+
*
|
1202 |
+
* @return array|mixed|string|string[]
|
1203 |
+
*/
|
1204 |
+
public static function stripAnyReferencesForUnloadedStyles($htmlSource)
|
1205 |
+
{
|
1206 |
+
// Gather all HREFs of the unloaded styles (if any)
|
1207 |
+
$unloadedStyleRelHrefs = array();
|
1208 |
+
|
1209 |
+
if ( isset( Main::instance()->allUnloadedAssets['styles'] ) && ! empty( Main::instance()->allUnloadedAssets['styles'] ) ) {
|
1210 |
+
foreach ( array_unique( Main::instance()->allUnloadedAssets['styles'] ) as $styleHandle ) {
|
1211 |
+
if ( ! (isset(Main::instance()->wpAllStyles['registered'][ $styleHandle ]->src) && Main::instance()->wpAllStyles['registered'][ $styleHandle ]->src) ) {
|
1212 |
+
continue; // does not have a "src" (e.g. inline CSS)
|
1213 |
+
}
|
1214 |
+
$unloadedStyleRelHrefs[] = OptimizeCommon::getSourceRelPath( Main::instance()->wpAllStyles['registered'][ $styleHandle ]->src );
|
1215 |
+
}
|
1216 |
+
}
|
1217 |
+
|
1218 |
+
if ( ! empty($unloadedStyleRelHrefs) ) {
|
1219 |
+
$htmlSource = OptimizeCommon::matchAndReplaceLinkTags($htmlSource, array('as' => 'style', 'unloaded_assets_rel_sources' => $unloadedStyleRelHrefs));
|
1220 |
+
}
|
1221 |
+
|
1222 |
+
return $htmlSource;
|
1223 |
+
}
|
1224 |
+
|
1225 |
/**
|
1226 |
* @param string $returnType
|
1227 |
*
|
classes/OptimiseAssets/OptimizeJs.php
CHANGED
@@ -237,7 +237,7 @@ class OptimizeJs
|
|
237 |
$pathToAssetDir = OptimizeCommon::getPathToAssetDir($value->src);
|
238 |
$sourceBeforeOptimization = str_replace(Misc::getWpRootDirPath(), '/', $localAssetPath);
|
239 |
|
240 |
-
$jsContent = $jsContentBefore = FileSystem::
|
241 |
}
|
242 |
|
243 |
$hadToBeMinified = false;
|
@@ -316,7 +316,7 @@ class OptimizeJs
|
|
316 |
$jsContent = '/*!' . $sourceBeforeOptimization . '*/' . "\n" . $jsContent;
|
317 |
}
|
318 |
|
319 |
-
$saveFile = FileSystem::
|
320 |
|
321 |
if (! $saveFile || ! $jsContent) {
|
322 |
// Fallback to the original JS if the optimized version can't be created or updated
|
@@ -420,7 +420,7 @@ class OptimizeJs
|
|
420 |
@unlink( $pathToInlineJsOptimizedItem );
|
421 |
} else {
|
422 |
// Not expired / Return its content from the cache in a faster way
|
423 |
-
$inlineJsStorageItemJsonContent = FileSystem::
|
424 |
|
425 |
if ( $inlineJsStorageItemJsonContent !== '' ) {
|
426 |
return $inlineJsStorageItemJsonContent;
|
@@ -444,7 +444,7 @@ class OptimizeJs
|
|
444 |
|
445 |
if ( $useCacheForInlineScript && isset($pathToInlineJsOptimizedItem) ) {
|
446 |
// Store the optimized content to the cached JS file which would be read quicker
|
447 |
-
FileSystem::
|
448 |
}
|
449 |
|
450 |
return $jsContent;
|
@@ -457,15 +457,38 @@ class OptimizeJs
|
|
457 |
*/
|
458 |
public static function updateHtmlSourceOriginalToOptimizedJs($htmlSource)
|
459 |
{
|
|
|
|
|
|
|
460 |
$jsOptimizeList = ObjectCache::wpacu_cache_get('wpacu_js_optimize_list') ?: array();
|
461 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
462 |
|
463 |
$cdnUrls = OptimizeCommon::getAnyCdnUrls();
|
464 |
$cdnUrlForJs = isset($cdnUrls['js']) ? $cdnUrls['js'] : false;
|
465 |
|
466 |
preg_match_all('#(<script[^>]*src(|\s+)=(|\s+)[^>]*>)|(<link[^>]*(as(\s+|)=(\s+|)(|"|\')script(|"|\'))[^>]*>)#Umi', $htmlSource, $matchesSourcesFromTags, PREG_SET_ORDER);
|
467 |
|
468 |
-
$scriptTagsToUpdate = array();
|
469 |
|
470 |
foreach ($matchesSourcesFromTags as $matches) {
|
471 |
$scriptSourceTag = $matches[0];
|
@@ -475,7 +498,7 @@ class OptimizeJs
|
|
475 |
continue;
|
476 |
}
|
477 |
|
478 |
-
// Check if the
|
479 |
if (preg_match('#data-wpacu-skip([=>/ ])#i', $scriptSourceTag)) {
|
480 |
continue;
|
481 |
}
|
@@ -499,9 +522,11 @@ class OptimizeJs
|
|
499 |
$cleanScriptSrcFromTag = $cleanScriptSrcFromTagArray['source'];
|
500 |
$afterQuestionMark = $cleanScriptSrcFromTagArray['after_question_mark'];
|
501 |
|
502 |
-
|
|
|
|
|
503 |
// Not in the final enqueued list? Most likely hardcoded (not added via wp_enqueue_scripts())
|
504 |
-
// Emulate the object value (as the enqueued
|
505 |
$generatedHandle = md5($cleanScriptSrcFromTag);
|
506 |
|
507 |
$value = (object)array(
|
@@ -514,19 +539,34 @@ class OptimizeJs
|
|
514 |
ObjectCache::wpacu_cache_set('wpacu_maybe_optimize_it_js_'.$generatedHandle, $optimizeValues);
|
515 |
|
516 |
if (! empty($optimizeValues)) {
|
517 |
-
$
|
|
|
518 |
}
|
519 |
}
|
520 |
|
521 |
-
if (
|
|
|
|
|
|
|
|
|
|
|
|
|
522 |
continue;
|
523 |
}
|
524 |
|
525 |
-
foreach ($
|
526 |
// Index 0: Source URL (relative)
|
527 |
// Index 1: New Optimized URL (relative)
|
528 |
// Index 2: Source URL (as it is)
|
529 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
530 |
// If the minified files are deleted (e.g. /wp-content/cache/ is cleared)
|
531 |
// do not replace the JS file path to avoid breaking the website
|
532 |
$localPathOptimizedFile = rtrim(Misc::getWpRootDirPath(), '/') . $listValues[1];
|
@@ -535,13 +575,20 @@ class OptimizeJs
|
|
535 |
continue;
|
536 |
}
|
537 |
|
538 |
-
// Make sure the source URL gets updated even if it starts with // (some plugins/theme strip the protocol when enqueuing
|
539 |
-
|
540 |
-
|
541 |
$sourceUrlList = array(
|
542 |
-
site_url() . $listValues[0],
|
543 |
-
$siteUrlNoProtocol . $listValues[0]
|
544 |
-
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
545 |
|
546 |
if ($cdnUrlForJs) {
|
547 |
// Does it have a CDN?
|
@@ -567,17 +614,19 @@ class OptimizeJs
|
|
567 |
|
568 |
if ($isEmptyOptimizedFile) {
|
569 |
// Strip it as its content (after optimization, for instance) is empty; no point in having extra HTTP requests
|
570 |
-
$
|
571 |
-
|
|
|
|
|
|
|
572 |
// Note: As for September 3, 2020, the inline JS associated with the handle is no longer removed if the main JS file is empty
|
573 |
// There could be cases when the main JS file is empty, but the inline JS tag associated with it has code that is needed
|
574 |
|
575 |
} else {
|
576 |
-
$newScriptSourceTag = self::updateOriginalToOptimizedTag( $scriptSourceTag, $sourceUrlList, $optimizeUrl );
|
577 |
$scriptTagsToUpdate[$scriptSourceTag] = $newScriptSourceTag;
|
578 |
}
|
579 |
|
580 |
-
unset($jsOptimizeList[$jsItemIndex]); // item from the array is not needed anymore
|
581 |
break;
|
582 |
}
|
583 |
}
|
@@ -588,18 +637,32 @@ class OptimizeJs
|
|
588 |
|
589 |
/**
|
590 |
* @param $scriptSourceTag string
|
591 |
-
* @param $
|
592 |
* @param $optimizeUrl string
|
|
|
593 |
*
|
594 |
* @return string
|
595 |
*/
|
596 |
-
public static function updateOriginalToOptimizedTag($scriptSourceTag, $
|
597 |
{
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
|
602 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
603 |
|
604 |
// No space from the matching and ? should be there
|
605 |
if (isset( $outputMatchesSrc[2][0] ) && ( strpos( $outputMatchesSrc[2][0], ' ' ) === false )) {
|
@@ -622,9 +685,7 @@ class OptimizeJs
|
|
622 |
$newScriptSourceTag = str_replace('.js&ver='.$wp_version, '.js', $newScriptSourceTag);
|
623 |
$newScriptSourceTag = str_replace('.js&ver=', '.js', $newScriptSourceTag);
|
624 |
|
625 |
-
|
626 |
-
|
627 |
-
return $newScriptSourceTag;
|
628 |
}
|
629 |
|
630 |
/**
|
@@ -658,6 +719,8 @@ class OptimizeJs
|
|
658 |
}
|
659 |
}
|
660 |
|
|
|
|
|
661 |
/*
|
662 |
* The JavaScript files only get cached if they are minified or are loaded like /?custom-js=version - /script.php?ver=1 etc.
|
663 |
* #optimizing
|
@@ -822,6 +885,34 @@ class OptimizeJs
|
|
822 |
return $jsContent;
|
823 |
}
|
824 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
825 |
/**
|
826 |
* @param $htmlSource
|
827 |
*
|
@@ -1068,7 +1159,7 @@ class OptimizeJs
|
|
1068 |
|
1069 |
$htmlSource = str_replace($toReplaceTagList, '', $htmlSource);
|
1070 |
|
1071 |
-
// Extra, in case the previous
|
1072 |
$listWithMatches = array();
|
1073 |
$listWithMatches[] = 'data-wpacu-script-handle=[\'"]'.$scriptHandle.'[\'"]';
|
1074 |
$listWithMatches[] = OptimizeCommon::getSourceRelPath($scriptSrc);
|
237 |
$pathToAssetDir = OptimizeCommon::getPathToAssetDir($value->src);
|
238 |
$sourceBeforeOptimization = str_replace(Misc::getWpRootDirPath(), '/', $localAssetPath);
|
239 |
|
240 |
+
$jsContent = $jsContentBefore = FileSystem::fileGetContents($localAssetPath);
|
241 |
}
|
242 |
|
243 |
$hadToBeMinified = false;
|
316 |
$jsContent = '/*!' . $sourceBeforeOptimization . '*/' . "\n" . $jsContent;
|
317 |
}
|
318 |
|
319 |
+
$saveFile = FileSystem::filePutContents($newLocalPath, $jsContent);
|
320 |
|
321 |
if (! $saveFile || ! $jsContent) {
|
322 |
// Fallback to the original JS if the optimized version can't be created or updated
|
420 |
@unlink( $pathToInlineJsOptimizedItem );
|
421 |
} else {
|
422 |
// Not expired / Return its content from the cache in a faster way
|
423 |
+
$inlineJsStorageItemJsonContent = FileSystem::fileGetContents( $pathToInlineJsOptimizedItem );
|
424 |
|
425 |
if ( $inlineJsStorageItemJsonContent !== '' ) {
|
426 |
return $inlineJsStorageItemJsonContent;
|
444 |
|
445 |
if ( $useCacheForInlineScript && isset($pathToInlineJsOptimizedItem) ) {
|
446 |
// Store the optimized content to the cached JS file which would be read quicker
|
447 |
+
FileSystem::filePutContents( $pathToInlineJsOptimizedItem, $jsContent );
|
448 |
}
|
449 |
|
450 |
return $jsContent;
|
457 |
*/
|
458 |
public static function updateHtmlSourceOriginalToOptimizedJs($htmlSource)
|
459 |
{
|
460 |
+
$parseSiteUrlPath = parse_url(site_url(), PHP_URL_PATH);
|
461 |
+
$siteUrlNoProtocol = str_replace(array('http://', 'https://'), '//', site_url());
|
462 |
+
|
463 |
$jsOptimizeList = ObjectCache::wpacu_cache_get('wpacu_js_optimize_list') ?: array();
|
464 |
+
$allEnqueuedCleanSources = ObjectCache::wpacu_cache_get('wpacu_js_enqueued_srcs') ?: array();
|
465 |
+
|
466 |
+
$allEnqueuedCleanSourcesIncludingTheirRelPaths = array();
|
467 |
+
|
468 |
+
foreach ($allEnqueuedCleanSources as $allEnqueuedCleanSource) {
|
469 |
+
$allEnqueuedCleanSourcesIncludingTheirRelPaths[] = $allEnqueuedCleanSource;
|
470 |
+
|
471 |
+
if (strpos($allEnqueuedCleanSource, 'http://') === 0 || strpos($allEnqueuedCleanSource, 'https://') === 0) {
|
472 |
+
$allEnqueuedCleanSourcesIncludingTheirRelPaths[] = str_replace(array('http://', 'https://'), '//', $allEnqueuedCleanSource);
|
473 |
+
|
474 |
+
// e.g. www.mysite.com/blog/
|
475 |
+
if ($parseSiteUrlPath !== '/' && strlen($parseSiteUrlPath) > 1) {
|
476 |
+
$allEnqueuedCleanSourcesIncludingTheirRelPaths[] = $parseSiteUrlPath . str_replace(site_url(), '', $allEnqueuedCleanSource);
|
477 |
+
}
|
478 |
+
|
479 |
+
// e.g. www.mysite.com/
|
480 |
+
if ($parseSiteUrlPath === '/' || ! $parseSiteUrlPath) {
|
481 |
+
$allEnqueuedCleanSourcesIncludingTheirRelPaths[] = str_replace(site_url(), '', $allEnqueuedCleanSource);
|
482 |
+
}
|
483 |
+
}
|
484 |
+
}
|
485 |
|
486 |
$cdnUrls = OptimizeCommon::getAnyCdnUrls();
|
487 |
$cdnUrlForJs = isset($cdnUrls['js']) ? $cdnUrls['js'] : false;
|
488 |
|
489 |
preg_match_all('#(<script[^>]*src(|\s+)=(|\s+)[^>]*>)|(<link[^>]*(as(\s+|)=(\s+|)(|"|\')script(|"|\'))[^>]*>)#Umi', $htmlSource, $matchesSourcesFromTags, PREG_SET_ORDER);
|
490 |
|
491 |
+
$jsOptimizeListHardcoded = $scriptTagsToUpdate = array();
|
492 |
|
493 |
foreach ($matchesSourcesFromTags as $matches) {
|
494 |
$scriptSourceTag = $matches[0];
|
498 |
continue;
|
499 |
}
|
500 |
|
501 |
+
// Check if the JS has any 'data-wpacu-skip' attribute; if it does, do not alter it
|
502 |
if (preg_match('#data-wpacu-skip([=>/ ])#i', $scriptSourceTag)) {
|
503 |
continue;
|
504 |
}
|
522 |
$cleanScriptSrcFromTag = $cleanScriptSrcFromTagArray['source'];
|
523 |
$afterQuestionMark = $cleanScriptSrcFromTagArray['after_question_mark'];
|
524 |
|
525 |
+
$isHardcodedDetected = false;
|
526 |
+
|
527 |
+
if (! in_array($cleanScriptSrcFromTag, $allEnqueuedCleanSourcesIncludingTheirRelPaths)) {
|
528 |
// Not in the final enqueued list? Most likely hardcoded (not added via wp_enqueue_scripts())
|
529 |
+
// Emulate the object value (as the enqueued scripts)
|
530 |
$generatedHandle = md5($cleanScriptSrcFromTag);
|
531 |
|
532 |
$value = (object)array(
|
539 |
ObjectCache::wpacu_cache_set('wpacu_maybe_optimize_it_js_'.$generatedHandle, $optimizeValues);
|
540 |
|
541 |
if (! empty($optimizeValues)) {
|
542 |
+
$isHardcodedDetected = true;
|
543 |
+
$jsOptimizeListHardcoded[] = $optimizeValues;
|
544 |
}
|
545 |
}
|
546 |
|
547 |
+
if ( ! $isHardcodedDetected ) {
|
548 |
+
$listToParse = $jsOptimizeList;
|
549 |
+
} else {
|
550 |
+
$listToParse = $jsOptimizeListHardcoded;
|
551 |
+
}
|
552 |
+
|
553 |
+
if (empty($listToParse)) {
|
554 |
continue;
|
555 |
}
|
556 |
|
557 |
+
foreach ($listToParse as $listValues) {
|
558 |
// Index 0: Source URL (relative)
|
559 |
// Index 1: New Optimized URL (relative)
|
560 |
// Index 2: Source URL (as it is)
|
561 |
|
562 |
+
// if the relative path from the WP root does not match the value of the source from the tag, do not continue
|
563 |
+
// e.g. '/wp-content/plugins/my-plugin/script.js' has to be inside '<script src="/wp-content/plugins/my-plugin/script.js?ver=1.1"></script>'
|
564 |
+
if (strpos($cleanScriptSrcFromTag, $listValues[0]) === false) {
|
565 |
+
continue;
|
566 |
+
}
|
567 |
+
|
568 |
+
// The contents of the CSS file has been changed and thus, we will replace the source path from original tag with the cached (e.g. minified) one
|
569 |
+
|
570 |
// If the minified files are deleted (e.g. /wp-content/cache/ is cleared)
|
571 |
// do not replace the JS file path to avoid breaking the website
|
572 |
$localPathOptimizedFile = rtrim(Misc::getWpRootDirPath(), '/') . $listValues[1];
|
575 |
continue;
|
576 |
}
|
577 |
|
578 |
+
// Make sure the source URL gets updated even if it starts with // (some plugins/theme strip the protocol when enqueuing assets)
|
579 |
+
// If the first value fails to be replaced, the next one will be attempted for replacement
|
580 |
+
// the order of the elements in the array is very important
|
581 |
$sourceUrlList = array(
|
582 |
+
site_url() . $listValues[0], // with protocol
|
583 |
+
$siteUrlNoProtocol . $listValues[0], // without protocol
|
584 |
+
);
|
585 |
+
|
586 |
+
if (strpos($cleanScriptSrcFromTag, $parseSiteUrlPath) === 0 && strpos($cleanScriptSrcFromTag, $listValues[0]) !== false) {
|
587 |
+
$sourceUrlList[] = str_replace('//', '/', $parseSiteUrlPath.'/'.$listValues[0]);
|
588 |
+
}
|
589 |
+
elseif ( $cleanScriptSrcFromTag === $listValues[0] ) {
|
590 |
+
$sourceUrlList[] = $listValues[0];
|
591 |
+
}
|
592 |
|
593 |
if ($cdnUrlForJs) {
|
594 |
// Does it have a CDN?
|
614 |
|
615 |
if ($isEmptyOptimizedFile) {
|
616 |
// Strip it as its content (after optimization, for instance) is empty; no point in having extra HTTP requests
|
617 |
+
if ($forAttr === 'src') {
|
618 |
+
$scriptTagsToUpdate[ $scriptSourceTag . '</script>' ] = '';
|
619 |
+
} else {
|
620 |
+
$scriptTagsToUpdate[ $scriptSourceTag ] = ''; // LINK (e.g. preload of a JS file)
|
621 |
+
}
|
622 |
// Note: As for September 3, 2020, the inline JS associated with the handle is no longer removed if the main JS file is empty
|
623 |
// There could be cases when the main JS file is empty, but the inline JS tag associated with it has code that is needed
|
624 |
|
625 |
} else {
|
626 |
+
$newScriptSourceTag = self::updateOriginalToOptimizedTag( $scriptSourceTag, $sourceUrlList, $optimizeUrl, $forAttr );
|
627 |
$scriptTagsToUpdate[$scriptSourceTag] = $newScriptSourceTag;
|
628 |
}
|
629 |
|
|
|
630 |
break;
|
631 |
}
|
632 |
}
|
637 |
|
638 |
/**
|
639 |
* @param $scriptSourceTag string
|
640 |
+
* @param $sourceUrlList array
|
641 |
* @param $optimizeUrl string
|
642 |
+
* @param string $forAttr ('src' (default), or 'href' if it's preloaded)
|
643 |
*
|
644 |
* @return string
|
645 |
*/
|
646 |
+
public static function updateOriginalToOptimizedTag($scriptSourceTag, $sourceUrlList, $optimizeUrl, $forAttr = 'src')
|
647 |
{
|
648 |
+
if (is_array($sourceUrlList) && ! empty($sourceUrlList)) {
|
649 |
+
foreach ($sourceUrlList as $sourceUrl) {
|
650 |
+
$newScriptSourceTag = str_replace($sourceUrl, $optimizeUrl, $scriptSourceTag);
|
651 |
|
652 |
+
if ($newScriptSourceTag !== $scriptSourceTag) {
|
653 |
+
break;
|
654 |
+
}
|
655 |
+
}
|
656 |
+
} else {
|
657 |
+
$newScriptSourceTag = str_replace( $sourceUrlList, $optimizeUrl, $scriptSourceTag );
|
658 |
+
}
|
659 |
+
|
660 |
+
$tagToCheck = ($forAttr === 'src') ? 'script' : 'link';
|
661 |
+
|
662 |
+
$sourceUrlRel = is_array($sourceUrlList) ? OptimizeCommon::getSourceRelPath($sourceUrlList[0]) : OptimizeCommon::getSourceRelPath($sourceUrlList);
|
663 |
+
$newScriptSourceTag = str_ireplace('<'.$tagToCheck.' ', '<'.$tagToCheck.' data-wpacu-script-rel-src-before="'.$sourceUrlRel.'" ', $newScriptSourceTag);
|
664 |
+
|
665 |
+
preg_match_all( '#\s'.$forAttr.'=(["\'])(.*?)(["\'])#', $scriptSourceTag, $outputMatchesSrc );
|
666 |
|
667 |
// No space from the matching and ? should be there
|
668 |
if (isset( $outputMatchesSrc[2][0] ) && ( strpos( $outputMatchesSrc[2][0], ' ' ) === false )) {
|
685 |
$newScriptSourceTag = str_replace('.js&ver='.$wp_version, '.js', $newScriptSourceTag);
|
686 |
$newScriptSourceTag = str_replace('.js&ver=', '.js', $newScriptSourceTag);
|
687 |
|
688 |
+
return preg_replace('!\s+!', ' ', $newScriptSourceTag); // replace multiple spaces with only one space
|
|
|
|
|
689 |
}
|
690 |
|
691 |
/**
|
719 |
}
|
720 |
}
|
721 |
|
722 |
+
$htmlSource = self::stripAnyReferencesForUnloadedScripts($htmlSource);
|
723 |
+
|
724 |
/*
|
725 |
* The JavaScript files only get cached if they are minified or are loaded like /?custom-js=version - /script.php?ver=1 etc.
|
726 |
* #optimizing
|
885 |
return $jsContent;
|
886 |
}
|
887 |
|
888 |
+
/**
|
889 |
+
* e.g. if a script is unloaded, strip any LINK tag that preloads that script (e.g. added by other plugins)
|
890 |
+
*
|
891 |
+
* @param $htmlSource
|
892 |
+
*
|
893 |
+
* @return array|mixed|string|string[]
|
894 |
+
*/
|
895 |
+
public static function stripAnyReferencesForUnloadedScripts($htmlSource)
|
896 |
+
{
|
897 |
+
// Gather all SRCs of the unloaded scripts (if any)
|
898 |
+
$unloadedScriptRelSrcs = array();
|
899 |
+
|
900 |
+
if ( isset( Main::instance()->allUnloadedAssets['scripts'] ) && ! empty( Main::instance()->allUnloadedAssets['scripts'] ) ) {
|
901 |
+
foreach ( array_unique( Main::instance()->allUnloadedAssets['scripts'] ) as $scriptHandle ) {
|
902 |
+
if ( ! (isset(Main::instance()->wpAllScripts['registered'][ $scriptHandle ]->src) && Main::instance()->wpAllScripts['registered'][ $scriptHandle ]->src) ) {
|
903 |
+
continue; // does not have a "src" (e.g. inline JS)
|
904 |
+
}
|
905 |
+
$unloadedScriptRelSrcs[] = OptimizeCommon::getSourceRelPath( Main::instance()->wpAllScripts['registered'][ $scriptHandle ]->src );
|
906 |
+
}
|
907 |
+
}
|
908 |
+
|
909 |
+
if ( ! empty($unloadedScriptRelSrcs) ) {
|
910 |
+
$htmlSource = OptimizeCommon::matchAndReplaceLinkTags($htmlSource, array('as' => 'script', 'unloaded_assets_rel_sources' => $unloadedScriptRelSrcs));
|
911 |
+
}
|
912 |
+
|
913 |
+
return $htmlSource;
|
914 |
+
}
|
915 |
+
|
916 |
/**
|
917 |
* @param $htmlSource
|
918 |
*
|
1159 |
|
1160 |
$htmlSource = str_replace($toReplaceTagList, '', $htmlSource);
|
1161 |
|
1162 |
+
// Extra, in case the previous replacement didn't go through
|
1163 |
$listWithMatches = array();
|
1164 |
$listWithMatches[] = 'data-wpacu-script-handle=[\'"]'.$scriptHandle.'[\'"]';
|
1165 |
$listWithMatches[] = OptimizeCommon::getSourceRelPath($scriptSrc);
|
classes/OwnAssets.php
CHANGED
@@ -15,6 +15,129 @@ class OwnAssets
|
|
15 |
*/
|
16 |
public $loadPluginAssets = false; // default
|
17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
/**
|
19 |
*
|
20 |
*/
|
@@ -39,9 +162,11 @@ class OwnAssets
|
|
39 |
|
40 |
add_filter('wpacu_object_data', static function($wpacu_object_data) {
|
41 |
$wpacu_object_data['source_load_error_msg'] = __('The source might not be reachable', 'wp-asset-clean-up');
|
42 |
-
|
43 |
-
$wpacu_object_data['
|
44 |
-
$wpacu_object_data['
|
|
|
|
|
45 |
$wpacu_object_data['is_frontend_view'] = false;
|
46 |
|
47 |
if ( isset($_GET['wpacu_manage_dash']) ) {
|
@@ -204,7 +329,7 @@ class OwnAssets
|
|
204 |
}
|
205 |
</style>
|
206 |
<?php
|
207 |
-
if (wp_style_is(
|
208 |
echo Misc::preloadAsyncCssFallbackOutput();
|
209 |
}
|
210 |
}
|
@@ -306,7 +431,7 @@ class OwnAssets
|
|
306 |
};
|
307 |
});
|
308 |
|
309 |
-
// When the user clicks anywhere outside
|
310 |
window.onclick = function (event) {
|
311 |
if (event.target === wpacuCurrentModal) {
|
312 |
wpacuCurrentModal.style.display = 'none';
|
@@ -425,8 +550,12 @@ class OwnAssets
|
|
425 |
*/
|
426 |
private function enqueueAdminStyles()
|
427 |
{
|
428 |
-
|
429 |
-
|
|
|
|
|
|
|
|
|
430 |
}
|
431 |
|
432 |
/**
|
@@ -446,8 +575,6 @@ class OwnAssets
|
|
446 |
|
447 |
if ($isDashAssetsManagerPage) {
|
448 |
if ( $pageRequestFor === 'homepage' ) {
|
449 |
-
$postId = 0; // default
|
450 |
-
|
451 |
// Homepage tab / Check if the home page is one of the singular pages
|
452 |
$pageOnFront = (int) get_option( 'page_on_front' );
|
453 |
|
@@ -465,13 +592,11 @@ class OwnAssets
|
|
465 |
}
|
466 |
}
|
467 |
|
468 |
-
$scriptRelPath = '/assets/script.min.js';
|
469 |
-
|
470 |
wp_register_script(
|
471 |
-
|
472 |
-
plugins_url(
|
473 |
array('jquery'),
|
474 |
-
self::assetVer(
|
475 |
);
|
476 |
|
477 |
if ($postId > 0) {
|
@@ -491,8 +616,8 @@ HTML;
|
|
491 |
$wpacuDomGetType = ($postStatus === 'private') ? 'direct' : Main::$domGetType;
|
492 |
|
493 |
$wpacuObjectData = array(
|
494 |
-
'
|
495 |
-
'
|
496 |
|
497 |
'reload_icon' => $svgReloadIcon,
|
498 |
'reload_msg' => sprintf(__('Reloading %s area', 'wp-asset-clean-up'), '<strong style="margin: 0 4px;">' . WPACU_PLUGIN_TITLE . '</strong>'),
|
@@ -594,28 +719,46 @@ HTML;
|
|
594 |
__('Please make sure you have a backup (e.g. an exported JSON file) before proceeding.', 'wp-asset-clean-up')."\n\n".
|
595 |
__('Please confirm to continue or "Cancel" to abort it.', 'wp-asset-clean-up');
|
596 |
|
597 |
-
|
598 |
-
|
599 |
'wpacu_object',
|
600 |
apply_filters('wpacu_object_data', $wpacuObjectData)
|
601 |
);
|
602 |
|
603 |
-
wp_enqueue_script(
|
604 |
-
|
605 |
-
|
606 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
607 |
}
|
608 |
|
609 |
// Standard edit post page
|
610 |
global $pagenow;
|
611 |
|
612 |
-
|
613 |
|
614 |
-
|
|
|
|
|
|
|
|
|
615 |
// [Start] SweetAlert
|
616 |
wp_enqueue_style(
|
617 |
-
|
618 |
-
plugins_url('
|
619 |
array(),
|
620 |
1
|
621 |
);
|
@@ -666,15 +809,15 @@ HTML;
|
|
666 |
|
667 |
// Changed "Swal" to "wpacuSwal" to avoid conflicts with other plugins using SweetAlert
|
668 |
wp_enqueue_script(
|
669 |
-
|
670 |
-
plugins_url('
|
671 |
array('jquery'),
|
672 |
1.1
|
673 |
);
|
674 |
|
675 |
// [wpacu_lite]
|
676 |
-
$upgradeToProLinkHardcodedAssets = WPACU_PLUGIN_GO_PRO_URL.'?utm_source=manage_hardcoded_assets&utm_medium=go_pro_modal';
|
677 |
-
$upgradeToProLinkMediaQueryLoad = WPACU_PLUGIN_GO_PRO_URL.'?utm_source=media_query_load&utm_medium=go_pro_modal';
|
678 |
|
679 |
$sweetAlertTwoScriptInline = <<<JS
|
680 |
jQuery(document).ready(function($) {
|
@@ -721,8 +864,8 @@ JS;
|
|
721 |
if (in_array($page, array(WPACU_PLUGIN_ID . '_plugins_manager', WPACU_PLUGIN_ID . '_overview', WPACU_PLUGIN_ID . '_bulk_unloads'))) {
|
722 |
// [Start] Tooltipster Style
|
723 |
wp_enqueue_style(
|
724 |
-
|
725 |
-
plugins_url('
|
726 |
array(),
|
727 |
1
|
728 |
);
|
@@ -730,8 +873,8 @@ JS;
|
|
730 |
|
731 |
// [Start] Tooltipster Script
|
732 |
wp_enqueue_script(
|
733 |
-
|
734 |
-
plugins_url('
|
735 |
array('jquery'),
|
736 |
1
|
737 |
);
|
@@ -739,12 +882,11 @@ JS;
|
|
739 |
$tooltipsterScriptInline = <<<JS
|
740 |
jQuery(document).ready(function($) { $('.wpacu-tooltip').tooltipster({ contentCloning: true, delay: 0 }); });
|
741 |
JS;
|
742 |
-
wp_add_inline_script(
|
743 |
// [End] Tooltipster Script
|
744 |
}
|
745 |
}
|
746 |
|
747 |
-
|
748 |
/**
|
749 |
*
|
750 |
*/
|
@@ -752,29 +894,29 @@ JS;
|
|
752 |
{
|
753 |
// [Start] Chosen Style
|
754 |
wp_register_style(
|
755 |
-
|
756 |
-
plugins_url('
|
757 |
array(),
|
758 |
'1.8.7'
|
759 |
);
|
760 |
|
761 |
-
wp_enqueue_style(
|
762 |
|
763 |
$chosenStyleInline = <<<CSS
|
764 |
#wpacu_hide_meta_boxes_for_post_types_chosen { margin-top: 5px; min-width: 320px; }
|
765 |
CSS;
|
766 |
-
wp_add_inline_style(
|
767 |
// [End] Chosen Style
|
768 |
|
769 |
// [Start] Chosen Script
|
770 |
wp_register_script(
|
771 |
-
|
772 |
-
plugins_url('
|
773 |
array('jquery'),
|
774 |
'1.8.7'
|
775 |
);
|
776 |
|
777 |
-
wp_enqueue_script(
|
778 |
// [End] Chosen Script
|
779 |
}
|
780 |
|
@@ -783,8 +925,12 @@ CSS;
|
|
783 |
*/
|
784 |
private function enqueuePublicStyles()
|
785 |
{
|
786 |
-
|
787 |
-
|
|
|
|
|
|
|
|
|
788 |
}
|
789 |
|
790 |
/**
|
@@ -792,25 +938,27 @@ CSS;
|
|
792 |
*/
|
793 |
public function enqueuePublicScripts()
|
794 |
{
|
795 |
-
|
796 |
-
|
797 |
-
|
|
|
|
|
|
|
|
|
798 |
|
799 |
-
// [wpacu_pro]
|
800 |
wp_localize_script(
|
801 |
-
|
802 |
'wpacu_object',
|
803 |
apply_filters('wpacu_object_data', array(
|
804 |
-
'ajax_url'
|
805 |
-
'
|
806 |
-
'
|
807 |
-
'start_del_h'
|
808 |
-
'end_del_h'
|
809 |
))
|
810 |
);
|
811 |
-
// [/wpacu_pro]
|
812 |
|
813 |
-
wp_enqueue_script(
|
814 |
}
|
815 |
|
816 |
/**
|
@@ -834,7 +982,7 @@ CSS;
|
|
834 |
*/
|
835 |
public function ownAssetLoaderSrc($src, $handle)
|
836 |
{
|
837 |
-
if (in_array($handle,
|
838 |
$src = str_replace(
|
839 |
array('?ver=', '&ver='),
|
840 |
array('?wpacuversion=', '&wpacuversion='),
|
@@ -854,7 +1002,7 @@ CSS;
|
|
854 |
public function ownAssetLoaderTag($tag, $handle)
|
855 |
{
|
856 |
// Useful in case jQuery library is deferred too (rare situations)
|
857 |
-
if ($handle
|
858 |
$tag = str_replace(' src=', ' data-wpacu-plugin-script src=', $tag);
|
859 |
}
|
860 |
|
15 |
*/
|
16 |
public $loadPluginAssets = false; // default
|
17 |
|
18 |
+
/**
|
19 |
+
* @var array[]
|
20 |
+
*/
|
21 |
+
public static $ownAssets = array('styles' => array(), 'scripts' => array());
|
22 |
+
|
23 |
+
/**
|
24 |
+
*
|
25 |
+
*/
|
26 |
+
public function __construct()
|
27 |
+
{
|
28 |
+
self::prepareVars();
|
29 |
+
}
|
30 |
+
|
31 |
+
/**
|
32 |
+
*
|
33 |
+
*/
|
34 |
+
public static function prepareVars()
|
35 |
+
{
|
36 |
+
self::$ownAssets['styles'] = array(
|
37 |
+
'style_core' => array(
|
38 |
+
'handle' => WPACU_PLUGIN_ID . '-style',
|
39 |
+
'rel_path' => '/assets/style.min.css'
|
40 |
+
),
|
41 |
+
|
42 |
+
'chosen' => array(
|
43 |
+
'handle' => WPACU_PLUGIN_ID . '-chosen-style',
|
44 |
+
'rel_path' => '/assets/chosen/chosen.min.css'
|
45 |
+
),
|
46 |
+
|
47 |
+
'tooltipster' => array(
|
48 |
+
'handle' => WPACU_PLUGIN_ID . '-tooltipster-style',
|
49 |
+
'rel_path' => '/assets/tooltipster/tooltipster.bundle.min.css'
|
50 |
+
),
|
51 |
+
|
52 |
+
'sweetalert2' => array(
|
53 |
+
'handle' => WPACU_PLUGIN_ID . '-sweetalert2-style',
|
54 |
+
'rel_path' => '/assets/sweetalert2/dist/sweetalert2.min.css'
|
55 |
+
),
|
56 |
+
|
57 |
+
'autocomplete_search_jquery_ui_custom' => array(
|
58 |
+
'handle' => WPACU_PLUGIN_ID.'-autocomplete-jquery-ui-custom',
|
59 |
+
'rel_path' => '/assets/auto-complete/smoothness/jquery-ui-custom.min.css'
|
60 |
+
)
|
61 |
+
);
|
62 |
+
|
63 |
+
self::$ownAssets['scripts'] = array(
|
64 |
+
'script_core' => array(
|
65 |
+
'handle' => WPACU_PLUGIN_ID . '-script',
|
66 |
+
'rel_path' => '/assets/script.min.js'
|
67 |
+
),
|
68 |
+
|
69 |
+
'chosen' => array(
|
70 |
+
'handle' => WPACU_PLUGIN_ID . '-chosen-script',
|
71 |
+
'rel_path' => '/assets/chosen/chosen.jquery.min.js'
|
72 |
+
),
|
73 |
+
|
74 |
+
'tooltipster' => array(
|
75 |
+
'handle' => WPACU_PLUGIN_ID . '-tooltipster-script',
|
76 |
+
'rel_path' => '/assets/tooltipster/tooltipster.bundle.min.js'
|
77 |
+
),
|
78 |
+
|
79 |
+
'sweetalert2' => array(
|
80 |
+
'handle' => WPACU_PLUGIN_ID . '-sweetalert2-js',
|
81 |
+
'rel_path' => '/assets/sweetalert2/dist/sweetalert2.min.js'
|
82 |
+
),
|
83 |
+
|
84 |
+
'autocomplete_search' => array(
|
85 |
+
'handle' => WPACU_PLUGIN_ID . '-autocomplete-search',
|
86 |
+
'rel_path' => '/assets/auto-complete/main.min.js'
|
87 |
+
)
|
88 |
+
);
|
89 |
+
|
90 |
+
// If script debugging is enabled, load the non-minified versions of the plugin's assets
|
91 |
+
// Read more: https://wordpress.org/support/article/debugging-in-wordpress/#script_debug
|
92 |
+
if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) {
|
93 |
+
self::$ownAssets['styles']['style_core']['rel_path'] = '/assets/style.css';
|
94 |
+
self::$ownAssets['scripts']['script_core']['rel_path'] = '/assets/script.js';
|
95 |
+
|
96 |
+
self::$ownAssets['styles']['chosen']['rel_path'] = '/assets/chosen/chosen.css';
|
97 |
+
self::$ownAssets['scripts']['chosen']['rel_path'] = '/assets/chosen/chosen.jquery.js';
|
98 |
+
|
99 |
+
self::$ownAssets['styles']['sweetalert2']['rel_path'] = '/assets/sweetalert2/dist/sweetalert2.css';
|
100 |
+
self::$ownAssets['scripts']['sweetalert2']['rel_path'] = '/assets/sweetalert2/dist/sweetalert2.js';
|
101 |
+
|
102 |
+
self::$ownAssets['styles']
|
103 |
+
['autocomplete_search_jquery_ui_custom']['rel_path'] = '/assets/auto-complete/smoothness/jquery-ui-custom.css';
|
104 |
+
self::$ownAssets['scripts']
|
105 |
+
['autocomplete_search']['rel_path'] = '/assets/auto-complete/main.js';
|
106 |
+
}
|
107 |
+
}
|
108 |
+
|
109 |
+
/**
|
110 |
+
* @return array[]
|
111 |
+
*/
|
112 |
+
public static function getOwnAssetsHandles($assetType = '')
|
113 |
+
{
|
114 |
+
self::prepareVars();
|
115 |
+
|
116 |
+
$allPluginStyleHandles = $allPluginScriptHandles = array();
|
117 |
+
|
118 |
+
foreach (self::$ownAssets['styles'] as $assetValues) {
|
119 |
+
if (isset($assetValues['handle']) && $assetValues['handle']) {
|
120 |
+
$allPluginStyleHandles[] = $assetValues['handle'];
|
121 |
+
}
|
122 |
+
}
|
123 |
+
|
124 |
+
foreach (self::$ownAssets['scripts'] as $assetValues) {
|
125 |
+
if (isset($assetValues['handle']) && $assetValues['handle']) {
|
126 |
+
$allPluginScriptHandles[] = $assetValues['handle'];
|
127 |
+
}
|
128 |
+
}
|
129 |
+
|
130 |
+
if ($assetType !== '') {
|
131 |
+
if ($assetType === 'styles') {
|
132 |
+
return $allPluginStyleHandles;
|
133 |
+
}
|
134 |
+
|
135 |
+
return $allPluginScriptHandles;
|
136 |
+
}
|
137 |
+
|
138 |
+
return array_merge($allPluginStyleHandles, $allPluginScriptHandles);
|
139 |
+
}
|
140 |
+
|
141 |
/**
|
142 |
*
|
143 |
*/
|
162 |
|
163 |
add_filter('wpacu_object_data', static function($wpacu_object_data) {
|
164 |
$wpacu_object_data['source_load_error_msg'] = __('The source might not be reachable', 'wp-asset-clean-up');
|
165 |
+
|
166 |
+
$wpacu_object_data['plugin_prefix'] = WPACU_PLUGIN_ID; // the same for both Lite & Pro
|
167 |
+
$wpacu_object_data['plugin_slug'] = WPACU_PLUGIN_SLUG;
|
168 |
+
$wpacu_object_data['plugin_title'] = WPACU_PLUGIN_TITLE;
|
169 |
+
$wpacu_object_data['ajax_url'] = esc_url( admin_url( 'admin-ajax.php' ) );
|
170 |
$wpacu_object_data['is_frontend_view'] = false;
|
171 |
|
172 |
if ( isset($_GET['wpacu_manage_dash']) ) {
|
329 |
}
|
330 |
</style>
|
331 |
<?php
|
332 |
+
if (wp_style_is(self::$ownAssets['styles']['style_core']['handle'])) {
|
333 |
echo Misc::preloadAsyncCssFallbackOutput();
|
334 |
}
|
335 |
}
|
431 |
};
|
432 |
});
|
433 |
|
434 |
+
// When the user clicks anywhere outside the modal, close it
|
435 |
window.onclick = function (event) {
|
436 |
if (event.target === wpacuCurrentModal) {
|
437 |
wpacuCurrentModal.style.display = 'none';
|
550 |
*/
|
551 |
private function enqueueAdminStyles()
|
552 |
{
|
553 |
+
wp_enqueue_style(
|
554 |
+
self::$ownAssets['styles']['style_core']['handle'],
|
555 |
+
plugins_url(self::$ownAssets['styles']['style_core']['rel_path'], WPACU_PLUGIN_FILE),
|
556 |
+
array(),
|
557 |
+
self::assetVer(self::$ownAssets['styles']['style_core']['rel_path'])
|
558 |
+
);
|
559 |
}
|
560 |
|
561 |
/**
|
575 |
|
576 |
if ($isDashAssetsManagerPage) {
|
577 |
if ( $pageRequestFor === 'homepage' ) {
|
|
|
|
|
578 |
// Homepage tab / Check if the home page is one of the singular pages
|
579 |
$pageOnFront = (int) get_option( 'page_on_front' );
|
580 |
|
592 |
}
|
593 |
}
|
594 |
|
|
|
|
|
595 |
wp_register_script(
|
596 |
+
self::$ownAssets['scripts']['script_core']['handle'],
|
597 |
+
plugins_url(self::$ownAssets['scripts']['script_core']['rel_path'], WPACU_PLUGIN_FILE),
|
598 |
array('jquery'),
|
599 |
+
self::assetVer(self::$ownAssets['scripts']['script_core']['rel_path'])
|
600 |
);
|
601 |
|
602 |
if ($postId > 0) {
|
616 |
$wpacuDomGetType = ($postStatus === 'private') ? 'direct' : Main::$domGetType;
|
617 |
|
618 |
$wpacuObjectData = array(
|
619 |
+
'plugin_prefix' => WPACU_PLUGIN_ID, // the same for both Lite & Pro
|
620 |
+
'plugin_slug' => WPACU_PLUGIN_SLUG,
|
621 |
|
622 |
'reload_icon' => $svgReloadIcon,
|
623 |
'reload_msg' => sprintf(__('Reloading %s area', 'wp-asset-clean-up'), '<strong style="margin: 0 4px;">' . WPACU_PLUGIN_TITLE . '</strong>'),
|
719 |
__('Please make sure you have a backup (e.g. an exported JSON file) before proceeding.', 'wp-asset-clean-up')."\n\n".
|
720 |
__('Please confirm to continue or "Cancel" to abort it.', 'wp-asset-clean-up');
|
721 |
|
722 |
+
wp_localize_script(
|
723 |
+
self::$ownAssets['scripts']['script_core']['handle'],
|
724 |
'wpacu_object',
|
725 |
apply_filters('wpacu_object_data', $wpacuObjectData)
|
726 |
);
|
727 |
|
728 |
+
wp_enqueue_script(self::$ownAssets['scripts']['script_core']['handle']);
|
729 |
+
|
730 |
+
// Load jQuery Chosen on "Settings", "CSS & JS Manager" -> "Manage CSS/JS" (homepage & any post type page)
|
731 |
+
$isDashManageAssetsPage = false;
|
732 |
+
|
733 |
+
if ($page === WPACU_PLUGIN_ID . '_assets_manager') {
|
734 |
+
$manageCssJsSubPage = ( isset( $_GET['wpacu_sub_page'] ) && $_GET['wpacu_sub_page'] ) ? $_GET['wpacu_sub_page'] : 'manage_css_js';
|
735 |
+
$isDashManageAssetsPage = ( $manageCssJsSubPage === 'manage_css_js' ) &&
|
736 |
+
// if 'wpacu_for' is not used, it will be defaulted to either homepage or single post page
|
737 |
+
// if it's used, it has to be in the list specified below, other jQuery Chosen would be irrelevant
|
738 |
+
( ! isset( $_GET['wpacu_for'] )
|
739 |
+
|| ( isset( $_GET['wpacu_for'] ) && in_array( $_GET['wpacu_for'], array(
|
740 |
+
'homepage',
|
741 |
+
'pages',
|
742 |
+
'posts',
|
743 |
+
'custom-post-types',
|
744 |
+
'media-attachment'
|
745 |
+
) ) ) );
|
746 |
}
|
747 |
|
748 |
// Standard edit post page
|
749 |
global $pagenow;
|
750 |
|
751 |
+
$isEditPostArea = ($pagenow === 'post.php' && Misc::getVar('get', 'post') && Misc::getVar('get', 'action') === 'edit');
|
752 |
|
753 |
+
if ( $page === WPACU_PLUGIN_ID . '_settings' || $isDashManageAssetsPage || $isEditPostArea ) {
|
754 |
+
$this->loadjQueryChosen();
|
755 |
+
}
|
756 |
+
|
757 |
+
if ($isEditPostArea || ($page === WPACU_PLUGIN_ID . '_assets_manager')) {
|
758 |
// [Start] SweetAlert
|
759 |
wp_enqueue_style(
|
760 |
+
self::$ownAssets['styles']['sweetalert2']['handle'],
|
761 |
+
plugins_url(self::$ownAssets['styles']['sweetalert2']['rel_path'], WPACU_PLUGIN_FILE),
|
762 |
array(),
|
763 |
1
|
764 |
);
|
809 |
|
810 |
// Changed "Swal" to "wpacuSwal" to avoid conflicts with other plugins using SweetAlert
|
811 |
wp_enqueue_script(
|
812 |
+
self::$ownAssets['scripts']['sweetalert2']['handle'],
|
813 |
+
plugins_url(self::$ownAssets['scripts']['sweetalert2']['rel_path'], WPACU_PLUGIN_FILE),
|
814 |
array('jquery'),
|
815 |
1.1
|
816 |
);
|
817 |
|
818 |
// [wpacu_lite]
|
819 |
+
$upgradeToProLinkHardcodedAssets = apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL.'?utm_source=manage_hardcoded_assets&utm_medium=go_pro_modal');
|
820 |
+
$upgradeToProLinkMediaQueryLoad = apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL.'?utm_source=media_query_load&utm_medium=go_pro_modal');
|
821 |
|
822 |
$sweetAlertTwoScriptInline = <<<JS
|
823 |
jQuery(document).ready(function($) {
|
864 |
if (in_array($page, array(WPACU_PLUGIN_ID . '_plugins_manager', WPACU_PLUGIN_ID . '_overview', WPACU_PLUGIN_ID . '_bulk_unloads'))) {
|
865 |
// [Start] Tooltipster Style
|
866 |
wp_enqueue_style(
|
867 |
+
self::$ownAssets['styles']['tooltipster']['handle'],
|
868 |
+
plugins_url(self::$ownAssets['styles']['tooltipster']['rel_path'], WPACU_PLUGIN_FILE),
|
869 |
array(),
|
870 |
1
|
871 |
);
|
873 |
|
874 |
// [Start] Tooltipster Script
|
875 |
wp_enqueue_script(
|
876 |
+
self::$ownAssets['scripts']['tooltipster']['handle'],
|
877 |
+
plugins_url(self::$ownAssets['scripts']['tooltipster']['rel_path'], WPACU_PLUGIN_FILE),
|
878 |
array('jquery'),
|
879 |
1
|
880 |
);
|
882 |
$tooltipsterScriptInline = <<<JS
|
883 |
jQuery(document).ready(function($) { $('.wpacu-tooltip').tooltipster({ contentCloning: true, delay: 0 }); });
|
884 |
JS;
|
885 |
+
wp_add_inline_script(self::$ownAssets['scripts']['tooltipster']['handle'], $tooltipsterScriptInline);
|
886 |
// [End] Tooltipster Script
|
887 |
}
|
888 |
}
|
889 |
|
|
|
890 |
/**
|
891 |
*
|
892 |
*/
|
894 |
{
|
895 |
// [Start] Chosen Style
|
896 |
wp_register_style(
|
897 |
+
self::$ownAssets['styles']['chosen']['handle'],
|
898 |
+
plugins_url(self::$ownAssets['styles']['chosen']['rel_path'], WPACU_PLUGIN_FILE),
|
899 |
array(),
|
900 |
'1.8.7'
|
901 |
);
|
902 |
|
903 |
+
wp_enqueue_style(self::$ownAssets['styles']['chosen']['handle']);
|
904 |
|
905 |
$chosenStyleInline = <<<CSS
|
906 |
#wpacu_hide_meta_boxes_for_post_types_chosen { margin-top: 5px; min-width: 320px; }
|
907 |
CSS;
|
908 |
+
wp_add_inline_style(self::$ownAssets['styles']['chosen']['handle'], $chosenStyleInline);
|
909 |
// [End] Chosen Style
|
910 |
|
911 |
// [Start] Chosen Script
|
912 |
wp_register_script(
|
913 |
+
self::$ownAssets['scripts']['chosen']['handle'],
|
914 |
+
plugins_url(self::$ownAssets['scripts']['chosen']['rel_path'], WPACU_PLUGIN_FILE),
|
915 |
array('jquery'),
|
916 |
'1.8.7'
|
917 |
);
|
918 |
|
919 |
+
wp_enqueue_script(self::$ownAssets['scripts']['chosen']['handle']);
|
920 |
// [End] Chosen Script
|
921 |
}
|
922 |
|
925 |
*/
|
926 |
private function enqueuePublicStyles()
|
927 |
{
|
928 |
+
wp_enqueue_style(
|
929 |
+
self::$ownAssets['styles']['style_core']['handle'],
|
930 |
+
plugins_url(self::$ownAssets['styles']['style_core']['rel_path'], WPACU_PLUGIN_FILE),
|
931 |
+
array(),
|
932 |
+
self::assetVer(self::$ownAssets['styles']['style_core']['rel_path'])
|
933 |
+
);
|
934 |
}
|
935 |
|
936 |
/**
|
938 |
*/
|
939 |
public function enqueuePublicScripts()
|
940 |
{
|
941 |
+
wp_register_script(
|
942 |
+
self::$ownAssets['scripts']['script_core']['handle'],
|
943 |
+
plugins_url(self::$ownAssets['scripts']['script_core']['rel_path'], WPACU_PLUGIN_FILE),
|
944 |
+
array('jquery'),
|
945 |
+
self::assetVer(self::$ownAssets['scripts']['script_core']['rel_path']),
|
946 |
+
true
|
947 |
+
);
|
948 |
|
|
|
949 |
wp_localize_script(
|
950 |
+
self::$ownAssets['scripts']['script_core']['handle'],
|
951 |
'wpacu_object',
|
952 |
apply_filters('wpacu_object_data', array(
|
953 |
+
'ajax_url' => esc_url(admin_url('admin-ajax.php')),
|
954 |
+
'plugin_prefix' => WPACU_PLUGIN_ID, // the same for both Lite & Pro
|
955 |
+
'plugin_slug' => WPACU_PLUGIN_SLUG,
|
956 |
+
'start_del_h' => Main::START_DEL_HARDCODED,
|
957 |
+
'end_del_h' => Main::END_DEL_HARDCODED
|
958 |
))
|
959 |
);
|
|
|
960 |
|
961 |
+
wp_enqueue_script(self::$ownAssets['scripts']['script_core']['handle']);
|
962 |
}
|
963 |
|
964 |
/**
|
982 |
*/
|
983 |
public function ownAssetLoaderSrc($src, $handle)
|
984 |
{
|
985 |
+
if (in_array($handle, self::getOwnAssetsHandles())) {
|
986 |
$src = str_replace(
|
987 |
array('?ver=', '&ver='),
|
988 |
array('?wpacuversion=', '&wpacuversion='),
|
1002 |
public function ownAssetLoaderTag($tag, $handle)
|
1003 |
{
|
1004 |
// Useful in case jQuery library is deferred too (rare situations)
|
1005 |
+
if (in_array($handle, self::getOwnAssetsHandles('scripts'))) {
|
1006 |
$tag = str_replace(' src=', ' data-wpacu-plugin-script src=', $tag);
|
1007 |
}
|
1008 |
|
classes/Plugin.php
CHANGED
@@ -251,7 +251,7 @@ HTACCESS;
|
|
251 |
|
252 |
if ( ! is_file( $cacheDir . 'index.php' ) ) {
|
253 |
// /wp-content/cache/asset-cleanup/cache/(css|js)/index.php
|
254 |
-
FileSystem::
|
255 |
}
|
256 |
|
257 |
if ( ! is_dir( $cacheDir . OptimizeCommon::$optimizedSingleFilesDir ) ) {
|
@@ -267,19 +267,19 @@ HTACCESS;
|
|
267 |
|
268 |
if ( ! is_file( $cacheDir . OptimizeCommon::$optimizedSingleFilesDir.'/inline/index.php' ) ) {
|
269 |
// /wp-content/cache/asset-cleanup/cache/(css|js)/item/inline/index.php
|
270 |
-
FileSystem::
|
271 |
}
|
272 |
|
273 |
$htAccessFilePath = dirname( $cacheDir ) . '/.htaccess';
|
274 |
|
275 |
if ( ! is_file( $htAccessFilePath ) ) {
|
276 |
// /wp-content/cache/asset-cleanup/.htaccess
|
277 |
-
FileSystem::
|
278 |
}
|
279 |
|
280 |
if ( ! is_file( dirname( $cacheDir ) . '/index.php' ) ) {
|
281 |
// /wp-content/cache/asset-cleanup/index.php
|
282 |
-
FileSystem::
|
283 |
}
|
284 |
}
|
285 |
|
@@ -337,7 +337,7 @@ HTACCESS;
|
|
337 |
|
338 |
// If the Pro version is not installed (active or not), show the upgrade link
|
339 |
if (! array_key_exists('wp-asset-clean-up-pro/wpacu.php', $allPlugins)) {
|
340 |
-
$links['go_pro'] = '<a target="_blank" style="font-weight: bold;" href="'.WPACU_PLUGIN_GO_PRO_URL.'">'.__('Go Pro', 'wp-asset-clean-up').'</a>';
|
341 |
}
|
342 |
// [/wpacu_lite]
|
343 |
|
251 |
|
252 |
if ( ! is_file( $cacheDir . 'index.php' ) ) {
|
253 |
// /wp-content/cache/asset-cleanup/cache/(css|js)/index.php
|
254 |
+
FileSystem::filePutContents( $cacheDir . 'index.php', $emptyPhpFileContents );
|
255 |
}
|
256 |
|
257 |
if ( ! is_dir( $cacheDir . OptimizeCommon::$optimizedSingleFilesDir ) ) {
|
267 |
|
268 |
if ( ! is_file( $cacheDir . OptimizeCommon::$optimizedSingleFilesDir.'/inline/index.php' ) ) {
|
269 |
// /wp-content/cache/asset-cleanup/cache/(css|js)/item/inline/index.php
|
270 |
+
FileSystem::filePutContents( $cacheDir . OptimizeCommon::$optimizedSingleFilesDir.'/inline/index.php', $emptyPhpFileContents );
|
271 |
}
|
272 |
|
273 |
$htAccessFilePath = dirname( $cacheDir ) . '/.htaccess';
|
274 |
|
275 |
if ( ! is_file( $htAccessFilePath ) ) {
|
276 |
// /wp-content/cache/asset-cleanup/.htaccess
|
277 |
+
FileSystem::filePutContents( $htAccessFilePath, $htAccessContents );
|
278 |
}
|
279 |
|
280 |
if ( ! is_file( dirname( $cacheDir ) . '/index.php' ) ) {
|
281 |
// /wp-content/cache/asset-cleanup/index.php
|
282 |
+
FileSystem::filePutContents( dirname( $cacheDir ) . '/index.php', $emptyPhpFileContents );
|
283 |
}
|
284 |
}
|
285 |
|
337 |
|
338 |
// If the Pro version is not installed (active or not), show the upgrade link
|
339 |
if (! array_key_exists('wp-asset-clean-up-pro/wpacu.php', $allPlugins)) {
|
340 |
+
$links['go_pro'] = '<a target="_blank" style="font-weight: bold;" href="'.apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL).'">'.__('Go Pro', 'wp-asset-clean-up').'</a>';
|
341 |
}
|
342 |
// [/wpacu_lite]
|
343 |
|
classes/Preloads.php
CHANGED
@@ -314,45 +314,50 @@ class Preloads
|
|
314 |
}
|
315 |
|
316 |
// Something might not be right with the RegEx; Fallback to DOMDocument, more accurate, but slower
|
317 |
-
if (! $stickToRegEx && Misc::isDOMDocumentOn()) {
|
318 |
-
$documentForCSS =
|
319 |
-
libxml_use_internal_errors(true);
|
320 |
|
321 |
$htmlSourceAlt = preg_replace( '@<(noscript|style|script)[^>]*?>.*?</\\1>@si', '', $htmlSource );
|
322 |
$documentForCSS->loadHTML($htmlSourceAlt);
|
323 |
|
324 |
$linkTags = $documentForCSS->getElementsByTagName( 'link' );
|
325 |
|
326 |
-
|
|
|
327 |
|
328 |
-
|
329 |
-
|
|
|
|
|
330 |
|
331 |
-
|
332 |
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
|
|
341 |
|
342 |
libxml_clear_errors();
|
343 |
}
|
344 |
|
345 |
-
|
346 |
-
|
|
|
347 |
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
|
352 |
-
|
353 |
|
354 |
-
|
355 |
-
|
|
|
356 |
|
357 |
return $htmlSource;
|
358 |
}
|
314 |
}
|
315 |
|
316 |
// Something might not be right with the RegEx; Fallback to DOMDocument, more accurate, but slower
|
317 |
+
if ( ! $stickToRegEx && Misc::isDOMDocumentOn() ) {
|
318 |
+
$documentForCSS = Misc::initDOMDocument();
|
|
|
319 |
|
320 |
$htmlSourceAlt = preg_replace( '@<(noscript|style|script)[^>]*?>.*?</\\1>@si', '', $htmlSource );
|
321 |
$documentForCSS->loadHTML($htmlSourceAlt);
|
322 |
|
323 |
$linkTags = $documentForCSS->getElementsByTagName( 'link' );
|
324 |
|
325 |
+
if ( count($linkTags) > 0 ) {
|
326 |
+
$matchesSourcesFromLinkTags = array(); // reset its value; new fetch method was used
|
327 |
|
328 |
+
foreach ( $linkTags as $tagObject ) {
|
329 |
+
if ( empty( $tagObject->attributes ) ) {
|
330 |
+
continue;
|
331 |
+
}
|
332 |
|
333 |
+
$linkAttributes = array();
|
334 |
|
335 |
+
foreach ( $tagObject->attributes as $attrObj ) {
|
336 |
+
$linkAttributes[ $attrObj->nodeName ] = trim( $attrObj->nodeValue );
|
337 |
+
}
|
338 |
|
339 |
+
if ( isset( $linkAttributes['data-wpacu-to-be-preloaded-basic'], $linkAttributes['href'] ) ) {
|
340 |
+
$matchesSourcesFromLinkTags[][2] = $linkAttributes['href'];
|
341 |
+
}
|
342 |
+
}
|
343 |
+
}
|
344 |
|
345 |
libxml_clear_errors();
|
346 |
}
|
347 |
|
348 |
+
if ( ! empty($matchesSourcesFromLinkTags) ) {
|
349 |
+
foreach ( $matchesSourcesFromLinkTags as $linkTagArray ) {
|
350 |
+
$linkHref = isset( $linkTagArray[2] ) ? $linkTagArray[2] : false;
|
351 |
|
352 |
+
if ( ! $linkHref ) {
|
353 |
+
continue;
|
354 |
+
}
|
355 |
|
356 |
+
$linkPreload = self::linkPreloadCssFormat( $linkHref );
|
357 |
|
358 |
+
$htmlSource = str_replace( self::DEL_STYLES_PRELOADS, $linkPreload . self::DEL_STYLES_PRELOADS, $htmlSource );
|
359 |
+
}
|
360 |
+
}
|
361 |
|
362 |
return $htmlSource;
|
363 |
}
|
classes/Update.php
CHANGED
@@ -91,7 +91,7 @@ HTML;
|
|
91 |
// Clear cache (via AJAX) only if the user is logged-in (with the right privileges)
|
92 |
add_action('wp_ajax_' . WPACU_PLUGIN_ID . '_clear_cache', array($this, 'ajaxClearCache'), PHP_INT_MAX);
|
93 |
|
94 |
-
// After an update, preload the page for the guest view
|
95 |
add_action('wp_ajax_' . WPACU_PLUGIN_ID . '_preload', array($this, 'ajaxPreloadGuest'), PHP_INT_MAX);
|
96 |
|
97 |
// e.g. when "+" or "-" is used within an asset's row (CSS/JS manager), the state is updated in the background to be remembered
|
91 |
// Clear cache (via AJAX) only if the user is logged-in (with the right privileges)
|
92 |
add_action('wp_ajax_' . WPACU_PLUGIN_ID . '_clear_cache', array($this, 'ajaxClearCache'), PHP_INT_MAX);
|
93 |
|
94 |
+
// After an update, preload the page for the guest view; the preload for the admin is done within /assets/script.min.js
|
95 |
add_action('wp_ajax_' . WPACU_PLUGIN_ID . '_preload', array($this, 'ajaxPreloadGuest'), PHP_INT_MAX);
|
96 |
|
97 |
// e.g. when "+" or "-" is used within an asset's row (CSS/JS manager), the state is updated in the background to be remembered
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: gabelivan
|
|
3 |
Tags: minify css, minify javascript, defer css javascript, page speed, dequeue, performance
|
4 |
Donate link: https://www.gabelivan.com/items/wp-asset-cleanup-pro/?utm_source=wp_org_lite&utm_medium=donate
|
5 |
Requires at least: 4.6
|
6 |
-
Tested up to: 6.
|
7 |
-
Stable tag: 1.3.8.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl.html
|
10 |
|
@@ -191,6 +191,16 @@ With the recently released "Test Mode" feature, you can safely unload assets on
|
|
191 |
4. Homepage CSS & JS Management (List sorted by location)
|
192 |
|
193 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
= 1.3.8.7 =
|
195 |
* By default, the front-end optimization is not triggered for URIs with query strings (as they are usually not cacheable); Make more exceptions and trigger the optimization when there are common query strings (the page is cacheable) in the URI such as the ones starting with "utm_", "mtm_", "fb_", etc.
|
196 |
* Higher accuracy in detecting WordPress core files (some of the undetected WP core files used to be shown in the "External 3rd Party" area)
|
3 |
Tags: minify css, minify javascript, defer css javascript, page speed, dequeue, performance
|
4 |
Donate link: https://www.gabelivan.com/items/wp-asset-cleanup-pro/?utm_source=wp_org_lite&utm_medium=donate
|
5 |
Requires at least: 4.6
|
6 |
+
Tested up to: 6.1
|
7 |
+
Stable tag: 1.3.8.8
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl.html
|
10 |
|
191 |
4. Homepage CSS & JS Management (List sorted by location)
|
192 |
|
193 |
== Changelog ==
|
194 |
+
= 1.3.8.8 =
|
195 |
+
* "CSS/JS Manager": If a handle has inline code associated with it, mention the size (e.g. bytes, KB) of that inlined LINK or SCRIPT (just like it's mentioned for the LINK tags with the "href" attribute and SCRIPT tags with the "src" attribute)
|
196 |
+
* Higher accuracy in detecting (for optimization) the LINK tags that are loading CSS/JS files
|
197 |
+
* Improvement: If an asset is an unloaded through the CSS/JS manager and a preload (via LINK tag) was already set through another plugin (e.g. "Pre* Party Resource Hints") or within the theme, for instance in functions.php, make sure to strip the preloading as it's useless if the actual asset is not loaded in the first place
|
198 |
+
* Improvement: In case a WordPress installation has a subdirectory (e.g. www.mysite.com/blog), make sure any assets that have relative URIs (e.g. /blog/wp-content/style.css) are all optimized properly even if they were manually added from a 3rd party plugin or through the theme (e.g. within functions.php)
|
199 |
+
* If "SCRIPT_DEBUG" is set to "true", load the non-minified versions of the plugin's assets / read more: https://wordpress.org/support/article/debugging-in-wordpress/#script_debug
|
200 |
+
* Fix: Make sure none of the plugin's assets are included within any combined CSS/JS files (if the options are enabled in "Settings")
|
201 |
+
* Fix: Make sure to offer fallback to "wp_json_file_decode" in case the WordPress version is below 5.9.0 (as compatibility with older WP versions is promised)
|
202 |
+
* Added "wpacu_go_pro_affiliate_link" filter for altering the "Go Pro" link (e.g. for adding an extra query string with a specific reference)
|
203 |
+
|
204 |
= 1.3.8.7 =
|
205 |
* By default, the front-end optimization is not triggered for URIs with query strings (as they are usually not cacheable); Make more exceptions and trigger the optimization when there are common query strings (the page is cacheable) in the URI such as the ones starting with "utm_", "mtm_", "fb_", etc.
|
206 |
* Higher accuracy in detecting WordPress core files (some of the undetected WP core files used to be shown in the "External 3rd Party" area)
|
templates/_admin-page-getting-started-areas/_lite-vs-pro.php
CHANGED
@@ -156,9 +156,9 @@ $svgNa = '<img draggable="false" class="wpacu-emoji" alt="" src="'.WPACU_PLUGIN_
|
|
156 |
<tr>
|
157 |
<td colspan="3" style="text-align: center; padding: 10px;">
|
158 |
<h3 style="margin: 0;"><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?> <em>30 Day Money Back Guarantee</em></h3>
|
159 |
-
<p style="margin-top: 8px;">If you’re not satisfied with your purchase for any reason, you can request a refund within 30 days and you will get the payment refunded.</p>
|
160 |
<hr />
|
161 |
-
<a class="button button-primary button-hero" href="<?php echo WPACU_PLUGIN_GO_PRO_URL
|
162 |
<span class="dashicons dashicons-star-filled" style="line-height: 50px;"></span> <?php _e('Upgrade to Pro to unlock all benefits', 'wp-asset-clean-up'); ?></a>
|
163 |
|
164 |
<a class="button button-default button-hero" href="https://www.gabelivan.com/contact/">
|
156 |
<tr>
|
157 |
<td colspan="3" style="text-align: center; padding: 10px;">
|
158 |
<h3 style="margin: 0;"><?php echo wp_kses($svgTick, array('svg' => array('xmlns' => array(), 'viewbox' => array()), 'path' => array('fill' => array(), 'd' => array()))); ?> <em>30 Day Money Back Guarantee</em></h3>
|
159 |
+
<p style="margin-top: 8px;">If you’re not satisfied with your purchase for any reason, you can request a refund within 30 days, and you will get the payment refunded.</p>
|
160 |
<hr />
|
161 |
+
<a class="button button-primary button-hero" href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL . '?utm_source=plugin_getting_started&utm_medium=lite_vs_pro'); ?>">
|
162 |
<span class="dashicons dashicons-star-filled" style="line-height: 50px;"></span> <?php _e('Upgrade to Pro to unlock all benefits', 'wp-asset-clean-up'); ?></a>
|
163 |
|
164 |
<a class="button button-default button-hero" href="https://www.gabelivan.com/contact/">
|
templates/_admin-page-plugins-manager/_dash-areas/_unloads.php
CHANGED
@@ -19,7 +19,7 @@ if (! isset($data)) {
|
|
19 |
value="unload_site_wide" />
|
20 |
<a class="go-pro-link-no-style"
|
21 |
target="_blank"
|
22 |
-
href="<?php echo WPACU_PLUGIN_GO_PRO_URL
|
23 |
</li>
|
24 |
<li>
|
25 |
<label for="wpacu_unload_it_regex_option_<?php echo esc_attr($data['plugin_path']); ?>"
|
@@ -32,7 +32,7 @@ if (! isset($data)) {
|
|
32 |
value="unload_via_regex">
|
33 |
<a class="go-pro-link-no-style"
|
34 |
target="_blank"
|
35 |
-
href="<?php echo WPACU_PLUGIN_GO_PRO_URL
|
36 |
<a class="help_link unload_it_regex"
|
37 |
target="_blank"
|
38 |
href="https://assetcleanup.com/docs/?p=372#wpacu-unload-plugins-via-regex"><span style="color: #74777b;" class="dashicons dashicons-editor-help"></span></a>
|
19 |
value="unload_site_wide" />
|
20 |
<a class="go-pro-link-no-style"
|
21 |
target="_blank"
|
22 |
+
href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL . '?utm_source=manage_asset&utm_medium=unload_plugin_all_pages_in_admin'); ?>"><span class="wpacu-tooltip" style="width: 200px; margin-left: -108px;">This feature is locked for Pro users<br />Click here to upgrade!</span><img width="20" height="20" src="<?php echo esc_url(WPACU_PLUGIN_URL); ?>/assets/icons/icon-lock.svg" valign="top" alt="" /></a> Unload on all admin pages</label>
|
23 |
</li>
|
24 |
<li>
|
25 |
<label for="wpacu_unload_it_regex_option_<?php echo esc_attr($data['plugin_path']); ?>"
|
32 |
value="unload_via_regex">
|
33 |
<a class="go-pro-link-no-style"
|
34 |
target="_blank"
|
35 |
+
href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL . '?utm_source=manage_asset&utm_medium=unload_plugin_via_regex_in_admin'); ?>"><span class="wpacu-tooltip" style="width: 200px; margin-left: -108px;">This feature is locked for Pro users<br />Click here to upgrade!</span><img width="20" height="20" src="<?php echo esc_url(WPACU_PLUGIN_URL); ?>/assets/icons/icon-lock.svg" valign="top" alt="" /></a> <span>Unload it for admin URLs with request URI matching the RegEx(es):</span></label>
|
36 |
<a class="help_link unload_it_regex"
|
37 |
target="_blank"
|
38 |
href="https://assetcleanup.com/docs/?p=372#wpacu-unload-plugins-via-regex"><span style="color: #74777b;" class="dashicons dashicons-editor-help"></span></a>
|
templates/_admin-page-plugins-manager/_dash.php
CHANGED
@@ -8,7 +8,7 @@ if (! isset($data)) {
|
|
8 |
$pluginsRows = array();
|
9 |
|
10 |
foreach ($data['active_plugins'] as $pluginData) {
|
11 |
-
|
12 |
list($pluginDir) = explode('/', $pluginPath);
|
13 |
ob_start();
|
14 |
?>
|
8 |
$pluginsRows = array();
|
9 |
|
10 |
foreach ($data['active_plugins'] as $pluginData) {
|
11 |
+
$data['plugin_path'] = $pluginPath = $pluginData['path'];
|
12 |
list($pluginDir) = explode('/', $pluginPath);
|
13 |
ob_start();
|
14 |
?>
|
templates/_admin-page-plugins-manager/_front-areas/_unloads.php
CHANGED
@@ -19,7 +19,7 @@ if (! isset($data)) {
|
|
19 |
type="checkbox"
|
20 |
value="unload_site_wide" />
|
21 |
<a class="go-pro-link-no-style"
|
22 |
-
href="<?php echo WPACU_PLUGIN_GO_PRO_URL
|
23 |
<span>On all pages</span></label>
|
24 |
</li>
|
25 |
<li>
|
@@ -33,7 +33,7 @@ if (! isset($data)) {
|
|
33 |
name="wpacu_plugins[<?php echo esc_attr($data['plugin_path']); ?>][status][]"
|
34 |
value="unload_home_page" />
|
35 |
<a class="go-pro-link-no-style"
|
36 |
-
href="<?php echo WPACU_PLUGIN_GO_PRO_URL
|
37 |
<span>On the homepage</span></label>
|
38 |
</li>
|
39 |
<li>
|
@@ -47,7 +47,7 @@ if (! isset($data)) {
|
|
47 |
name="wpacu_plugins[<?php echo esc_attr($data['plugin_path']); ?>][status][]"
|
48 |
value="unload_via_post_type" />
|
49 |
<a class="go-pro-link-no-style"
|
50 |
-
href="<?php echo WPACU_PLUGIN_GO_PRO_URL
|
51 |
<span>On pages of the following post types:</span>
|
52 |
</label>
|
53 |
</li>
|
@@ -62,7 +62,7 @@ if (! isset($data)) {
|
|
62 |
name="wpacu_plugins[<?php echo esc_attr($data['plugin_path']); ?>][status][]"
|
63 |
value="unload_via_tax" />
|
64 |
<a class="go-pro-link-no-style"
|
65 |
-
href="<?php echo WPACU_PLUGIN_GO_PRO_URL
|
66 |
<span>On the following taxonomy pages:</span></label>
|
67 |
</li>
|
68 |
<li>
|
@@ -76,7 +76,7 @@ if (! isset($data)) {
|
|
76 |
type="checkbox"
|
77 |
value="unload_via_regex">
|
78 |
<a class="go-pro-link-no-style"
|
79 |
-
href="<?php echo WPACU_PLUGIN_GO_PRO_URL
|
80 |
<span>If request URI matches these RegEx(es):</span>
|
81 |
</label>
|
82 |
<a class="help_link unload_it_regex"
|
@@ -94,7 +94,7 @@ if (! isset($data)) {
|
|
94 |
name="wpacu_plugins[<?php echo esc_attr($data['plugin_path']); ?>][status][]"
|
95 |
value="unload_logged_in" />
|
96 |
<a class="go-pro-link-no-style"
|
97 |
-
href="<?php echo WPACU_PLUGIN_GO_PRO_URL
|
98 |
<span>If the user is logged in</span>
|
99 |
</label>
|
100 |
</li>
|
19 |
type="checkbox"
|
20 |
value="unload_site_wide" />
|
21 |
<a class="go-pro-link-no-style"
|
22 |
+
href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL . '?utm_source=manage_asset&utm_medium=unload_plugin_site_wide'); ?>"><span class="wpacu-tooltip" style="width: 200px; margin-left: -108px;">This feature is locked for Pro users<br />Click here to upgrade!</span><img width="20" height="20" style="vertical-align: text-bottom;" src="<?php echo esc_url(WPACU_PLUGIN_URL); ?>/assets/icons/icon-lock.svg" alt="" /></a>
|
23 |
<span>On all pages</span></label>
|
24 |
</li>
|
25 |
<li>
|
33 |
name="wpacu_plugins[<?php echo esc_attr($data['plugin_path']); ?>][status][]"
|
34 |
value="unload_home_page" />
|
35 |
<a class="go-pro-link-no-style"
|
36 |
+
href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL . '?utm_source=manage_asset&utm_medium=unload_plugin_on_home_page'); ?>"><span class="wpacu-tooltip" style="width: 200px; margin-left: -108px;">This feature is locked for Pro users<br />Click here to upgrade!</span><img width="20" height="20" style="vertical-align: text-bottom;" src="<?php echo esc_url(WPACU_PLUGIN_URL); ?>/assets/icons/icon-lock.svg" alt="" /></a>
|
37 |
<span>On the homepage</span></label>
|
38 |
</li>
|
39 |
<li>
|
47 |
name="wpacu_plugins[<?php echo esc_attr($data['plugin_path']); ?>][status][]"
|
48 |
value="unload_via_post_type" />
|
49 |
<a class="go-pro-link-no-style"
|
50 |
+
href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL . '?utm_source=manage_asset&utm_medium=unload_plugin_on_pages_of_post_types'); ?>"><span class="wpacu-tooltip" style="width: 200px; margin-left: -108px;">This feature is locked for Pro users<br />Click here to upgrade!</span><img width="20" height="20" style="vertical-align: text-bottom;" src="<?php echo esc_url(WPACU_PLUGIN_URL); ?>/assets/icons/icon-lock.svg" alt="" /></a>
|
51 |
<span>On pages of the following post types:</span>
|
52 |
</label>
|
53 |
</li>
|
62 |
name="wpacu_plugins[<?php echo esc_attr($data['plugin_path']); ?>][status][]"
|
63 |
value="unload_via_tax" />
|
64 |
<a class="go-pro-link-no-style"
|
65 |
+
href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL . '?utm_source=manage_asset&utm_medium=unload_plugin_on_taxonomy_pages'); ?>"><span class="wpacu-tooltip" style="width: 200px; margin-left: -108px;">This feature is locked for Pro users<br />Click here to upgrade!</span><img width="20" height="20" style="vertical-align: text-bottom;" src="<?php echo esc_url(WPACU_PLUGIN_URL); ?>/assets/icons/icon-lock.svg" alt="" /></a>
|
66 |
<span>On the following taxonomy pages:</span></label>
|
67 |
</li>
|
68 |
<li>
|
76 |
type="checkbox"
|
77 |
value="unload_via_regex">
|
78 |
<a class="go-pro-link-no-style"
|
79 |
+
href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL . '?utm_source=manage_asset&utm_medium=unload_plugin_via_regex'); ?>"><span class="wpacu-tooltip" style="width: 200px; margin-left: -108px;">This feature is locked for Pro users<br />Click here to upgrade!</span><img width="20" height="20" style="vertical-align: text-bottom;" src="<?php echo esc_url(WPACU_PLUGIN_URL); ?>/assets/icons/icon-lock.svg" alt="" /></a>
|
80 |
<span>If request URI matches these RegEx(es):</span>
|
81 |
</label>
|
82 |
<a class="help_link unload_it_regex"
|
94 |
name="wpacu_plugins[<?php echo esc_attr($data['plugin_path']); ?>][status][]"
|
95 |
value="unload_logged_in" />
|
96 |
<a class="go-pro-link-no-style"
|
97 |
+
href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL . '?utm_source=manage_asset&utm_medium=unload_plugin_if_logged_in'); ?>"><span class="wpacu-tooltip" style="width: 200px; margin-left: -132px;">This feature is locked for Pro users<br />Click here to upgrade!</span><img width="20" height="20" style="vertical-align: text-bottom;" src="<?php echo esc_url(WPACU_PLUGIN_URL); ?>/assets/icons/icon-lock.svg" alt="" /></a>
|
98 |
<span>If the user is logged in</span>
|
99 |
</label>
|
100 |
</li>
|
templates/_admin-page-plugins-manager/_front.php
CHANGED
@@ -8,21 +8,21 @@ if (! isset($data)) {
|
|
8 |
$pluginsRows = array();
|
9 |
|
10 |
foreach ($data['active_plugins'] as $pluginData) {
|
11 |
-
$pluginPath = $pluginData['path'];
|
12 |
list($pluginDir) = explode('/', $pluginPath);
|
13 |
ob_start();
|
14 |
?>
|
15 |
-
|
16 |
<td class="wpacu_plugin_icon" width="46">
|
17 |
<?php if (isset($data['plugins_icons'][$pluginDir])) { ?>
|
18 |
<img width="44" height="44" alt="" src="<?php echo esc_url($data['plugins_icons'][$pluginDir]); ?>" />
|
19 |
<?php } else { ?>
|
20 |
-
|
21 |
<?php } ?>
|
22 |
-
|
23 |
<td class="wpacu_plugin_details" id="wpacu-front-manage-<?php echo esc_attr($pluginData['path']); ?>">
|
24 |
<span class="wpacu_plugin_title"><?php echo esc_html($pluginData['title']); ?></span>
|
25 |
-
<span class="wpacu_plugin_path"> 
|
26 |
|
27 |
<?php
|
28 |
if ($pluginData['network_activated']) {
|
@@ -33,7 +33,7 @@ if (! isset($data)) {
|
|
33 |
<div class="wpacu-clearfix"></div>
|
34 |
|
35 |
<!-- [Start] Unload Rules -->
|
36 |
-
|
37 |
include '_front-areas/_unloads.php';
|
38 |
?>
|
39 |
<!-- [End] Unload Rules -->
|
8 |
$pluginsRows = array();
|
9 |
|
10 |
foreach ($data['active_plugins'] as $pluginData) {
|
11 |
+
$data['plugin_path'] = $pluginPath = $pluginData['path'];
|
12 |
list($pluginDir) = explode('/', $pluginPath);
|
13 |
ob_start();
|
14 |
?>
|
15 |
+
<tr>
|
16 |
<td class="wpacu_plugin_icon" width="46">
|
17 |
<?php if (isset($data['plugins_icons'][$pluginDir])) { ?>
|
18 |
<img width="44" height="44" alt="" src="<?php echo esc_url($data['plugins_icons'][$pluginDir]); ?>" />
|
19 |
<?php } else { ?>
|
20 |
+
<div><span class="dashicons dashicons-admin-plugins"></span></div>
|
21 |
<?php } ?>
|
22 |
+
</td>
|
23 |
<td class="wpacu_plugin_details" id="wpacu-front-manage-<?php echo esc_attr($pluginData['path']); ?>">
|
24 |
<span class="wpacu_plugin_title"><?php echo esc_html($pluginData['title']); ?></span>
|
25 |
+
<span class="wpacu_plugin_path"> <?php echo esc_html($pluginData['path']); ?></span>
|
26 |
|
27 |
<?php
|
28 |
if ($pluginData['network_activated']) {
|
33 |
<div class="wpacu-clearfix"></div>
|
34 |
|
35 |
<!-- [Start] Unload Rules -->
|
36 |
+
<?php
|
37 |
include '_front-areas/_unloads.php';
|
38 |
?>
|
39 |
<!-- [End] Unload Rules -->
|
templates/_admin-page-settings-bulk-changes/_assets-positions.php
CHANGED
@@ -6,4 +6,4 @@ if (! isset($data)) {
|
|
6 |
exit;
|
7 |
}
|
8 |
?>
|
9 |
-
<p>This is the list of all the CSS/JS that had its original position changed (e.g. from <code><HEAD></code> to <code><BODY></code> (also known as: footer) to reduce render blocking resources, or from <code><BODY></code> to <code><HEAD></code> for early triggering). Changing the location of an asset is available in the<img style="opacity: 0.6;" width="20" height="20" src="<?php echo esc_url(WPACU_PLUGIN_URL); ?>/assets/icons/icon-lock.svg" valign="top" alt="" /> <a href="<?php echo WPACU_PLUGIN_GO_PRO_URL
|
6 |
exit;
|
7 |
}
|
8 |
?>
|
9 |
+
<p>This is the list of all the CSS/JS that had its original position changed (e.g. from <code><HEAD></code> to <code><BODY></code> (also known as: footer) to reduce render blocking resources, or from <code><BODY></code> to <code><HEAD></code> for early triggering). Changing the location of an asset is available in the<img style="opacity: 0.6;" width="20" height="20" src="<?php echo esc_url(WPACU_PLUGIN_URL); ?>/assets/icons/icon-lock.svg" valign="top" alt="" /> <a href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL . '?utm_source=plugin_bulk_changes&utm_medium=assets_positions'); ?>">Pro version</a> only.</p>
|
templates/_admin-page-settings-bulk-changes/_bulk-unloaded.php
CHANGED
@@ -27,11 +27,11 @@ $availableForPro = '<span class="wpacu-tooltip">'
|
|
27 |
<nav class="nav-tab-wrapper">
|
28 |
<a href="<?php echo esc_url(admin_url('admin.php?page=wpassetcleanup_bulk_unloads')); ?>" class="nav-tab <?php if ($data['for'] === 'everywhere') { ?>nav-tab-active<?php } ?>"><?php esc_html_e('Everywhere', 'wp-asset-clean-up'); ?></a>
|
29 |
<a href="<?php echo esc_url(admin_url('admin.php?page=wpassetcleanup_bulk_unloads&wpacu_for=post_types')); ?>" class="nav-tab <?php if ($data['for'] === 'post_types') { ?>nav-tab-active<?php } ?>">Posts, Pages & Custom Post Types</a>
|
30 |
-
<a href="<?php echo
|
31 |
-
<a href="<?php echo
|
32 |
-
<a href="<?php echo
|
33 |
-
<a href="<?php echo
|
34 |
-
<a href="<?php echo
|
35 |
</nav>
|
36 |
|
37 |
<div class="wpacu-clearfix"></div>
|
27 |
<nav class="nav-tab-wrapper">
|
28 |
<a href="<?php echo esc_url(admin_url('admin.php?page=wpassetcleanup_bulk_unloads')); ?>" class="nav-tab <?php if ($data['for'] === 'everywhere') { ?>nav-tab-active<?php } ?>"><?php esc_html_e('Everywhere', 'wp-asset-clean-up'); ?></a>
|
29 |
<a href="<?php echo esc_url(admin_url('admin.php?page=wpassetcleanup_bulk_unloads&wpacu_for=post_types')); ?>" class="nav-tab <?php if ($data['for'] === 'post_types') { ?>nav-tab-active<?php } ?>">Posts, Pages & Custom Post Types</a>
|
30 |
+
<a href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL.'?utm_source=plugin_bulk_unloaded&utm_medium=tab_link'); ?>" target="_blank" class="nav-tab go-pro-link-no-style no-transition"><?php echo wp_kses($availableForPro, array('span' => array('class' => array()), 'br' => array(), 'img' => array('style' => array(), 'width' => array(), 'height' => array(), 'src' => array(), 'valign' => array(), 'alt' => array()))); ?> Taxonomies</a>
|
31 |
+
<a href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL.'?utm_source=plugin_bulk_unloaded&utm_medium=tab_link'); ?>" target="_blank" class="nav-tab go-pro-link-no-style no-transition"><?php echo wp_kses($availableForPro, array('span' => array('class' => array()), 'br' => array(), 'img' => array('style' => array(), 'width' => array(), 'height' => array(), 'src' => array(), 'valign' => array(), 'alt' => array()))); ?> Authors</a>
|
32 |
+
<a href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL.'?utm_source=plugin_bulk_unloaded&utm_medium=tab_link'); ?>" target="_blank" class="nav-tab go-pro-link-no-style no-transition"><?php echo wp_kses($availableForPro, array('span' => array('class' => array()), 'br' => array(), 'img' => array('style' => array(), 'width' => array(), 'height' => array(), 'src' => array(), 'valign' => array(), 'alt' => array()))); ?> Search Results</a>
|
33 |
+
<a href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL.'?utm_source=plugin_bulk_unloaded&utm_medium=tab_link'); ?>" target="_blank" class="nav-tab go-pro-link-no-style no-transition"><?php echo wp_kses($availableForPro, array('span' => array('class' => array()), 'br' => array(), 'img' => array('style' => array(), 'width' => array(), 'height' => array(), 'src' => array(), 'valign' => array(), 'alt' => array()))); ?> Dates</a>
|
34 |
+
<a href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL.'?utm_source=plugin_bulk_unloaded&utm_medium=tab_link'); ?>" target="_blank" class="nav-tab go-pro-link-no-style no-transition"><?php echo wp_kses($availableForPro, array('span' => array('class' => array()), 'br' => array(), 'img' => array('style' => array(), 'width' => array(), 'height' => array(), 'src' => array(), 'valign' => array(), 'alt' => array()))); ?> 404 Not Found</a>
|
35 |
</nav>
|
36 |
|
37 |
<div class="wpacu-clearfix"></div>
|
templates/_admin-page-settings-bulk-changes/_regex-load-exceptions.php
CHANGED
@@ -17,4 +17,4 @@ if (! isset($data)) {
|
|
17 |
|
18 |
<div class="wpacu-clearfix"></div>
|
19 |
|
20 |
-
<p>This feature is available only in the<img style="opacity: 0.6;" width="20" height="20" src="<?php echo esc_url(WPACU_PLUGIN_URL); ?>/assets/icons/icon-lock.svg" valign="top" alt="" /> <a href="<?php echo WPACU_PLUGIN_GO_PRO_URL
|
17 |
|
18 |
<div class="wpacu-clearfix"></div>
|
19 |
|
20 |
+
<p>This feature is available only in the<img style="opacity: 0.6;" width="20" height="20" src="<?php echo esc_url(WPACU_PLUGIN_URL); ?>/assets/icons/icon-lock.svg" valign="top" alt="" /> <a href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL.'?utm_source=plugin_bulk_changes&utm_medium=regex_unloads'); ?>"> Pro version</a>.</p>
|
templates/_admin-page-settings-bulk-changes/_regex-unloads.php
CHANGED
@@ -18,4 +18,4 @@ if (! isset($data)) {
|
|
18 |
|
19 |
<div class="wpacu-clearfix"></div>
|
20 |
|
21 |
-
<p>This feature is available only in the<img style="opacity: 0.6;" width="20" height="20" src="<?php echo esc_url(WPACU_PLUGIN_URL); ?>/assets/icons/icon-lock.svg" valign="top" alt="" /> <a href="<?php echo
|
18 |
|
19 |
<div class="wpacu-clearfix"></div>
|
20 |
|
21 |
+
<p>This feature is available only in the<img style="opacity: 0.6;" width="20" height="20" src="<?php echo esc_url(WPACU_PLUGIN_URL); ?>/assets/icons/icon-lock.svg" valign="top" alt="" /> <a href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL.'?utm_source=plugin_bulk_changes&utm_medium=regex_unloads'); ?>"> Pro version</a>.</p>
|
templates/_admin-page-settings-bulk-changes/_script-attrs.php
CHANGED
@@ -6,4 +6,4 @@ if (! isset($data)) {
|
|
6 |
exit;
|
7 |
}
|
8 |
?>
|
9 |
-
<p>This is the list of all the JavaScript files (<code><script></code> tags) that have "async" and "defer" attributes applied site-wide (everywhere). This feature is available only in the<img style="opacity: 0.6;" width="20" height="20" src="<?php echo esc_url(WPACU_PLUGIN_URL); ?>/assets/icons/icon-lock.svg" valign="top" alt="" /> <a href="<?php echo
|
6 |
exit;
|
7 |
}
|
8 |
?>
|
9 |
+
<p>This is the list of all the JavaScript files (<code><script></code> tags) that have "async" and "defer" attributes applied site-wide (everywhere). This feature is available only in the<img style="opacity: 0.6;" width="20" height="20" src="<?php echo esc_url(WPACU_PLUGIN_URL); ?>/assets/icons/icon-lock.svg" valign="top" alt="" /> <a href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL.'?utm_source=plugin_bulk_changes&utm_medium=script_attrs'); ?>"> Pro version</a>.</p>
|
templates/_admin-page-settings-plugin-areas/_fonts-local.php
CHANGED
@@ -25,7 +25,7 @@ $ddOptions = array(
|
|
25 |
<?php echo sprintf(esc_html__('Apply %s CSS property value', 'wp-asset-clean-up'), '<span style="background: #f5f5f5; padding: 4px;">font-display:</span>'); ?>
|
26 |
</th>
|
27 |
<td>
|
28 |
-
<a class="go-pro-link-no-style" target="_blank" href="<?php echo
|
29 |
<select
|
30 |
<?php /* [wpacu_lite] */ ?>
|
31 |
style="opacity: 0.5;"
|
25 |
<?php echo sprintf(esc_html__('Apply %s CSS property value', 'wp-asset-clean-up'), '<span style="background: #f5f5f5; padding: 4px;">font-display:</span>'); ?>
|
26 |
</th>
|
27 |
<td>
|
28 |
+
<a class="go-pro-link-no-style" target="_blank" href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL.'?utm_source=plugin_usage_settings&utm_medium=local_fonts_optimization'); ?>"><span class="wpacu-tooltip" style="width: 186px;"><?php esc_html_e('This is a feature available in the Pro version! Unlock it!', 'wp-asset-clean-up'); ?></span> <img style="opacity: 0.6;" width="20" height="20" src="<?php echo esc_url(WPACU_PLUGIN_URL.'/assets/icons/icon-lock.svg'); ?>" valign="top" alt="" /></a>
|
29 |
<select
|
30 |
<?php /* [wpacu_lite] */ ?>
|
31 |
style="opacity: 0.5;"
|
templates/_admin-page-settings-plugin-areas/_optimize-css.php
CHANGED
@@ -291,7 +291,7 @@ $styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-ce
|
|
291 |
<!-- Pro Feature -->
|
292 |
<tr valign="top">
|
293 |
<th scope="row" class="setting_title">
|
294 |
-
<label style="cursor: auto;"><?php _e('Defer CSS Loaded in the <code><BODY></code> (Footer)', 'wp-asset-clean-up'); ?> <a class="go-pro-link-no-style" target="_blank" href="<?php echo
|
295 |
</th>
|
296 |
<td>
|
297 |
<div>
|
291 |
<!-- Pro Feature -->
|
292 |
<tr valign="top">
|
293 |
<th scope="row" class="setting_title">
|
294 |
+
<label style="cursor: auto;"><?php _e('Defer CSS Loaded in the <code><BODY></code> (Footer)', 'wp-asset-clean-up'); ?> <a class="go-pro-link-no-style" target="_blank" href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL.'?utm_source=plugin_usage_settings&utm_medium=local_fonts_optimization'); ?>"><span class="wpacu-tooltip" style="width: 186px;"><?php _e('This is a feature available in the Pro version! Unlock it!', 'wp-asset-clean-up'); ?></span> <img style="opacity: 0.6;" width="20" height="20" src="<?php echo esc_url(WPACU_PLUGIN_URL.'/assets/icons/icon-lock.svg'); ?>" valign="top" alt="" /></a></label>
|
295 |
</th>
|
296 |
<td>
|
297 |
<div>
|
templates/_admin-page-settings-plugin-areas/_optimize-js.php
CHANGED
@@ -282,7 +282,7 @@ $styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-ce
|
|
282 |
<tr valign="top">
|
283 |
<th scope="row" class="setting_title">
|
284 |
<label for="wpacu_inline_js_files_enable"><?php esc_html_e('Inline JavaScript Files', 'wp-asset-clean-up'); ?>
|
285 |
-
<a class="go-pro-link-no-style" target="_blank" href="<?php echo
|
286 |
</label>
|
287 |
<p class="wpacu_subtitle"><small><em><?php esc_html_e('This will work for local (same domain) files. External requests tags will not be altered (e.g. cdnjs.cloudflare.com, ajax.googleapis.com etc.).', 'wp-asset-clean-up'); ?></em></small></p>
|
288 |
</th>
|
@@ -377,7 +377,7 @@ $styleTabContent = ($selectedTabArea === $tabIdArea) ? 'style="display: table-ce
|
|
377 |
<!-- [wpacu_pro] -->
|
378 |
<tr valign="top">
|
379 |
<th scope="row" class="setting_title">
|
380 |
-
<label for="wpacu_move_scripts_to_body_enable"><?php echo wp_kses(__('Move All <code><SCRIPT></code> tags From HEAD to BODY', 'wp-asset-clean-up'), array('code' => array())); ?> <a class="go-pro-link-no-style" target="_blank" href="<?php echo
|
381 |
<p class="wpacu_subtitle"><small><em><?php _e('This triggers late after all other optimizations are applied for maximum compatibility', 'wp-asset-clean-up'); ?>.</em></small></p>
|
382 |
</th>
|
383 |
<td>
|
282 |
<tr valign="top">
|
283 |
<th scope="row" class="setting_title">
|
284 |
<label for="wpacu_inline_js_files_enable"><?php esc_html_e('Inline JavaScript Files', 'wp-asset-clean-up'); ?>
|
285 |
+
<a class="go-pro-link-no-style" target="_blank" href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL.'?utm_source=optimize_js&utm_medium=inline_chosen_js_files'); ?>"><span class="wpacu-tooltip" style="width: 186px;"><?php esc_html_e('This is a feature available in the Pro version! Unlock it!', 'wp-asset-clean-up'); ?></span> <img style="opacity: 0.6;" width="20" height="20" src="<?php echo esc_url(WPACU_PLUGIN_URL.'/assets/icons/icon-lock.svg'); ?>" valign="top" alt="" /></a>
|
286 |
</label>
|
287 |
<p class="wpacu_subtitle"><small><em><?php esc_html_e('This will work for local (same domain) files. External requests tags will not be altered (e.g. cdnjs.cloudflare.com, ajax.googleapis.com etc.).', 'wp-asset-clean-up'); ?></em></small></p>
|
288 |
</th>
|
377 |
<!-- [wpacu_pro] -->
|
378 |
<tr valign="top">
|
379 |
<th scope="row" class="setting_title">
|
380 |
+
<label for="wpacu_move_scripts_to_body_enable"><?php echo wp_kses(__('Move All <code><SCRIPT></code> tags From HEAD to BODY', 'wp-asset-clean-up'), array('code' => array())); ?> <a class="go-pro-link-no-style" target="_blank" href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL.'?utm_source=optimize_js&utm_medium=move_scripts_to_body'); ?>"><span class="wpacu-tooltip" style="width: 186px;"><?php esc_html_e('This is a feature available in the Pro version! Unlock it!', 'wp-asset-clean-up'); ?></span> <img style="opacity: 0.6;" width="20" height="20" src="<?php echo esc_url(WPACU_PLUGIN_URL); ?>/assets/icons/icon-lock.svg" valign="top" alt="" /></a></label>
|
381 |
<p class="wpacu_subtitle"><small><em><?php _e('This triggers late after all other optimizations are applied for maximum compatibility', 'wp-asset-clean-up'); ?>.</em></small></p>
|
382 |
</th>
|
383 |
<td>
|
templates/_top-area.php
CHANGED
@@ -87,7 +87,7 @@ $isSettingsCurrentPage = ($wpacuCurrentPage !== WPACU_PLUGIN_ID . '_settings');
|
|
87 |
<div id="wpacu-logo-wrap">
|
88 |
<a href="<?php echo esc_url($wpacuDefaultPageUrl); ?>">
|
89 |
<img alt="" src="<?php echo WPACU_PLUGIN_URL; ?>/assets/images/asset-cleanup-logo.png" />
|
90 |
-
<div class="wpacu-
|
91 |
<div>
|
92 |
LITE<div class="wpacu-version-text">v<?php echo WPACU_PLUGIN_VERSION; ?></div>
|
93 |
</div>
|
87 |
<div id="wpacu-logo-wrap">
|
88 |
<a href="<?php echo esc_url($wpacuDefaultPageUrl); ?>">
|
89 |
<img alt="" src="<?php echo WPACU_PLUGIN_URL; ?>/assets/images/asset-cleanup-logo.png" />
|
90 |
+
<div class="wpacu-version-sign wpacu-lite">
|
91 |
<div>
|
92 |
LITE<div class="wpacu-version-text">v<?php echo WPACU_PLUGIN_VERSION; ?></div>
|
93 |
</div>
|
templates/admin-page-license.php
CHANGED
@@ -18,7 +18,7 @@ include_once '_top-area.php';
|
|
18 |
?></p>
|
19 |
<p><em><?php echo sprintf(
|
20 |
__('To unlock all features and get premium support, you can %supgrade to the Pro version%s.', 'wp-asset-clean-up'),
|
21 |
-
'<a href="'.WPACU_PLUGIN_GO_PRO_URL.'?utm_source=plugin_license">', '</a>'
|
22 |
);
|
23 |
?></em></p>
|
24 |
|
18 |
?></p>
|
19 |
<p><em><?php echo sprintf(
|
20 |
__('To unlock all features and get premium support, you can %supgrade to the Pro version%s.', 'wp-asset-clean-up'),
|
21 |
+
'<a href="'.apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL.'?utm_source=plugin_license').'">', '</a>'
|
22 |
);
|
23 |
?></em></p>
|
24 |
|
templates/admin-page-settings-plugin.php
CHANGED
@@ -116,7 +116,7 @@ if ($showSettingsType === 'tabs') {
|
|
116 |
?>
|
117 |
<a href="#<?php echo esc_attr($settingsTabKey); ?>"
|
118 |
class="wpacu-settings-tab-link <?php echo esc_attr($wpacuActiveTab); ?>"
|
119 |
-
|
120 |
echo \WpAssetCleanUp\Misc::stripIrrelevantHtmlTags($settingsTabText . $wpacuNavTextSub);
|
121 |
?></a>
|
122 |
<?php
|
116 |
?>
|
117 |
<a href="#<?php echo esc_attr($settingsTabKey); ?>"
|
118 |
class="wpacu-settings-tab-link <?php echo esc_attr($wpacuActiveTab); ?>"
|
119 |
+
data-wpacu-settings-tab-key="<?php echo esc_attr($settingsTabKey); ?>"><?php
|
120 |
echo \WpAssetCleanUp\Misc::stripIrrelevantHtmlTags($settingsTabText . $wpacuNavTextSub);
|
121 |
?></a>
|
122 |
<?php
|
templates/meta-box-loaded-assets/_asset-script-single-row/_load-exceptions.php
CHANGED
@@ -74,7 +74,7 @@ if ($anyUnloadRuleSet || $data['row']['is_load_exception_per_page']) {
|
|
74 |
disabled="disabled"
|
75 |
value="1"/>
|
76 |
Load it for URLs with request URI matching this RegEx(es): <a class="go-pro-link-no-style"
|
77 |
-
href="<?php echo WPACU_PLUGIN_GO_PRO_URL
|
78 |
class="wpacu-tooltip wpacu-larger"><?php echo str_replace('the premium', 'the<br />premium', wp_kses(__('This feature is available in the premium version of the plugin.',
|
79 |
'wp-asset-clean-up' ), array('br' => array()))); ?><br/> <?php _e( 'Click here to upgrade to Pro',
|
80 |
'wp-asset-clean-up' ); ?>!</span><img width="20" height="20"
|
74 |
disabled="disabled"
|
75 |
value="1"/>
|
76 |
Load it for URLs with request URI matching this RegEx(es): <a class="go-pro-link-no-style"
|
77 |
+
href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL.'?utm_source=manage_asset&utm_medium=load_via_regex_make_exception'); ?>"><span
|
78 |
class="wpacu-tooltip wpacu-larger"><?php echo str_replace('the premium', 'the<br />premium', wp_kses(__('This feature is available in the premium version of the plugin.',
|
79 |
'wp-asset-clean-up' ), array('br' => array()))); ?><br/> <?php _e( 'Click here to upgrade to Pro',
|
80 |
'wp-asset-clean-up' ); ?>!</span><img width="20" height="20"
|
templates/meta-box-loaded-assets/_asset-script-single-row/_loaded-rules.php
CHANGED
@@ -10,15 +10,15 @@ if (! isset($data)) {
|
|
10 |
<!-- [wpacu_lite] -->
|
11 |
<?php if (isset($data['row']['obj']->src) && $data['row']['obj']->src !== '') { ?>
|
12 |
<div class="wpacu-script-attributes-area wpacu-lite wpacu-only-when-kept-loaded">
|
13 |
-
<div>If kept loaded, set the following attributes: <em><a class="go-pro-link-no-style" href="<?php echo WPACU_PLUGIN_GO_PRO_URL; ?>">* <?php _e('Pro version', 'wp-asset-clean-up'); ?></a></em></div>
|
14 |
<ul class="wpacu-script-attributes-settings wpacu-first">
|
15 |
-
<li><a class="go-pro-link-no-style" href="<?php echo WPACU_PLUGIN_GO_PRO_URL; ?>"><span class="wpacu-tooltip wpacu-larger"><?php echo str_replace('the premium', 'the<br />premium', wp_kses(__('This feature is available in the premium version of the plugin.',
|
16 |
'wp-asset-clean-up' ), array('br' => array()))); ?><br /> <?php _e('Click here to upgrade to Pro', 'wp-asset-clean-up'); ?>!</span><img width="20" height="20" src="<?php echo esc_url(WPACU_PLUGIN_URL); ?>/assets/icons/icon-lock.svg" valign="top" alt="" /></a> <strong>async</strong> ⟶</li>
|
17 |
<li><label><input disabled="disabled" type="checkbox" value="on_this_page" /><?php _e('on this page', 'wp-asset-clean-up'); ?></label></li>
|
18 |
<li><label><input disabled="disabled" type="checkbox" value="everywhere" /><?php _e('everywhere', 'wp-asset-clean-up'); ?></label></li>
|
19 |
</ul>
|
20 |
<ul class="wpacu-script-attributes-settings">
|
21 |
-
<li><a class="go-pro-link-no-style" href="<?php echo WPACU_PLUGIN_GO_PRO_URL; ?>"><span class="wpacu-tooltip wpacu-larger"><?php echo str_replace('the premium', 'the<br />premium', wp_kses(__('This feature is available in the premium version of the plugin.',
|
22 |
'wp-asset-clean-up' ), array('br' => array()))); ?><br /> <?php _e('Click here to upgrade to Pro', 'wp-asset-clean-up'); ?>!</span><img width="20" height="20" src="<?php echo esc_url(WPACU_PLUGIN_URL); ?>/assets/icons/icon-lock.svg" valign="top" alt="" /></a> <strong>defer</strong> ⟶</li>
|
23 |
<li><label><input disabled="disabled" type="checkbox" value="on_this_page" /><?php _e('on this page', 'wp-asset-clean-up'); ?></label></li>
|
24 |
<li><label><input disabled="disabled" type="checkbox" value="everywhere" /><?php _e('everywhere', 'wp-asset-clean-up'); ?></label></li>
|
@@ -69,7 +69,7 @@ if (! isset($data)) {
|
|
69 |
<option selected="selected" value="">on any screen size (default)</option>
|
70 |
<option disabled="disabled" value="1">if the media query is matched (Pro)</option>
|
71 |
</select>
|
72 |
-
<div style="display: inline-block; vertical-align: middle; margin-left: -2px;"><a class="go-pro-link-no-style wpacu-media-query-load-requires-pro-popup" href="<?php echo WPACU_PLUGIN_GO_PRO_URL
|
73 |
class="wpacu-tooltip wpacu-larger" style="left: -26px;"><?php echo str_replace('the premium', 'the<br />premium', wp_kses(__('This feature is available in the premium version of the plugin.',
|
74 |
'wp-asset-clean-up' ), array('br' => array()))); ?><br/> <?php _e( 'Click here to upgrade to Pro',
|
75 |
'wp-asset-clean-up' ); ?>!</span> <img width="20" height="20" src="<?php echo esc_url(WPACU_PLUGIN_URL); ?>/assets/icons/icon-lock.svg" valign="top" alt="" /></a></div>
|
10 |
<!-- [wpacu_lite] -->
|
11 |
<?php if (isset($data['row']['obj']->src) && $data['row']['obj']->src !== '') { ?>
|
12 |
<div class="wpacu-script-attributes-area wpacu-lite wpacu-only-when-kept-loaded">
|
13 |
+
<div>If kept loaded, set the following attributes: <em><a class="go-pro-link-no-style" href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL); ?>">* <?php _e('Pro version', 'wp-asset-clean-up'); ?></a></em></div>
|
14 |
<ul class="wpacu-script-attributes-settings wpacu-first">
|
15 |
+
<li><a class="go-pro-link-no-style" href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL); ?>"><span class="wpacu-tooltip wpacu-larger"><?php echo str_replace('the premium', 'the<br />premium', wp_kses(__('This feature is available in the premium version of the plugin.',
|
16 |
'wp-asset-clean-up' ), array('br' => array()))); ?><br /> <?php _e('Click here to upgrade to Pro', 'wp-asset-clean-up'); ?>!</span><img width="20" height="20" src="<?php echo esc_url(WPACU_PLUGIN_URL); ?>/assets/icons/icon-lock.svg" valign="top" alt="" /></a> <strong>async</strong> ⟶</li>
|
17 |
<li><label><input disabled="disabled" type="checkbox" value="on_this_page" /><?php _e('on this page', 'wp-asset-clean-up'); ?></label></li>
|
18 |
<li><label><input disabled="disabled" type="checkbox" value="everywhere" /><?php _e('everywhere', 'wp-asset-clean-up'); ?></label></li>
|
19 |
</ul>
|
20 |
<ul class="wpacu-script-attributes-settings">
|
21 |
+
<li><a class="go-pro-link-no-style" href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL); ?>"><span class="wpacu-tooltip wpacu-larger"><?php echo str_replace('the premium', 'the<br />premium', wp_kses(__('This feature is available in the premium version of the plugin.',
|
22 |
'wp-asset-clean-up' ), array('br' => array()))); ?><br /> <?php _e('Click here to upgrade to Pro', 'wp-asset-clean-up'); ?>!</span><img width="20" height="20" src="<?php echo esc_url(WPACU_PLUGIN_URL); ?>/assets/icons/icon-lock.svg" valign="top" alt="" /></a> <strong>defer</strong> ⟶</li>
|
23 |
<li><label><input disabled="disabled" type="checkbox" value="on_this_page" /><?php _e('on this page', 'wp-asset-clean-up'); ?></label></li>
|
24 |
<li><label><input disabled="disabled" type="checkbox" value="everywhere" /><?php _e('everywhere', 'wp-asset-clean-up'); ?></label></li>
|
69 |
<option selected="selected" value="">on any screen size (default)</option>
|
70 |
<option disabled="disabled" value="1">if the media query is matched (Pro)</option>
|
71 |
</select>
|
72 |
+
<div style="display: inline-block; vertical-align: middle; margin-left: -2px;"><a class="go-pro-link-no-style wpacu-media-query-load-requires-pro-popup" href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL.'?utm_source=manage_asset&utm_medium=media_query_load_js'); ?>"><span
|
73 |
class="wpacu-tooltip wpacu-larger" style="left: -26px;"><?php echo str_replace('the premium', 'the<br />premium', wp_kses(__('This feature is available in the premium version of the plugin.',
|
74 |
'wp-asset-clean-up' ), array('br' => array()))); ?><br/> <?php _e( 'Click here to upgrade to Pro',
|
75 |
'wp-asset-clean-up' ); ?>!</span> <img width="20" height="20" src="<?php echo esc_url(WPACU_PLUGIN_URL); ?>/assets/icons/icon-lock.svg" valign="top" alt="" /></a></div>
|
templates/meta-box-loaded-assets/_asset-script-single-row/_position.php
CHANGED
@@ -8,5 +8,5 @@ if ( ! isset($data) ) {
|
|
8 |
}
|
9 |
|
10 |
if (isset($data['row']['obj']->position) && $data['row']['obj']->position !== '') {
|
11 |
-
$extraInfo[] = __('Position:', 'wp-asset-clean-up') . ' ' . (( $data['row']['obj']->position === 'head') ? 'HEAD' : 'BODY') . '<a class="go-pro-link-no-style" href="' . WPACU_PLUGIN_GO_PRO_URL . '?utm_source=manage_asset&utm_medium=change_js_position"><span class="wpacu-tooltip" style="width: 322px; margin-left: -146px;">Upgrade to Pro and change the location of the JS file <br /> (e.g. to BODY to reduce render-blocking <br /> or to HEAD for very early triggering)</span><img width="20" height="20" src="' . WPACU_PLUGIN_URL . '/assets/icons/icon-lock.svg" valign="top" alt="" /> Change it?</a>';
|
12 |
}
|
8 |
}
|
9 |
|
10 |
if (isset($data['row']['obj']->position) && $data['row']['obj']->position !== '') {
|
11 |
+
$extraInfo[] = __('Position:', 'wp-asset-clean-up') . ' ' . (( $data['row']['obj']->position === 'head') ? 'HEAD' : 'BODY') . '<a class="go-pro-link-no-style" href="' . apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL . '?utm_source=manage_asset&utm_medium=change_js_position') .'"><span class="wpacu-tooltip" style="width: 322px; margin-left: -146px;">Upgrade to Pro and change the location of the JS file <br /> (e.g. to BODY to reduce render-blocking <br /> or to HEAD for very early triggering)</span><img width="20" height="20" src="' . WPACU_PLUGIN_URL . '/assets/icons/icon-lock.svg" valign="top" alt="" /> Change it?</a>';
|
12 |
}
|
templates/meta-box-loaded-assets/_asset-style-single-row/_load-exceptions.php
CHANGED
@@ -71,7 +71,7 @@ if ($anyUnloadRuleSet) {
|
|
71 |
disabled="disabled"
|
72 |
value="1"/>
|
73 |
Load it for URLs with request URI matching this RegEx(es): <a class="go-pro-link-no-style"
|
74 |
-
href="<?php echo WPACU_PLUGIN_GO_PRO_URL
|
75 |
class="wpacu-tooltip wpacu-larger"><?php echo str_replace('the premium', 'the<br />premium', wp_kses(__('This feature is available in the premium version of the plugin.',
|
76 |
'wp-asset-clean-up' ), array('br' => array()))); ?><br/> <?php _e( 'Click here to upgrade to Pro',
|
77 |
'wp-asset-clean-up' ); ?>!</span><img width="20" height="20"
|
71 |
disabled="disabled"
|
72 |
value="1"/>
|
73 |
Load it for URLs with request URI matching this RegEx(es): <a class="go-pro-link-no-style"
|
74 |
+
href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL.'?utm_source=manage_asset&utm_medium=load_via_regex_make_exception'); ?>"><span
|
75 |
class="wpacu-tooltip wpacu-larger"><?php echo str_replace('the premium', 'the<br />premium', wp_kses(__('This feature is available in the premium version of the plugin.',
|
76 |
'wp-asset-clean-up' ), array('br' => array()))); ?><br/> <?php _e( 'Click here to upgrade to Pro',
|
77 |
'wp-asset-clean-up' ); ?>!</span><img width="20" height="20"
|
templates/meta-box-loaded-assets/_asset-style-single-row/_loaded-rules.php
CHANGED
@@ -44,7 +44,7 @@ if ( ! $linkHasDistinctiveMediaAttr ) {
|
|
44 |
<option selected="selected" value="">on any screen size (default)</option>
|
45 |
<option disabled="disabled" value="1">if the media query is matched (Pro)</option>
|
46 |
</select>
|
47 |
-
<div style="display: inline-block; vertical-align: middle; margin-left: -2px;"><a class="go-pro-link-no-style wpacu-media-query-load-requires-pro-popup" href="<?php echo WPACU_PLUGIN_GO_PRO_URL
|
48 |
class="wpacu-tooltip wpacu-larger" style="left: -26px;"><?php echo str_replace('the premium', 'the<br />premium', wp_kses(__('This feature is available in the premium version of the plugin.',
|
49 |
'wp-asset-clean-up' ), array('br' => array()))); ?><br/> <?php _e( 'Click here to upgrade to Pro',
|
50 |
'wp-asset-clean-up' ); ?>!</span> <img width="20" height="20" src="<?php echo esc_url(WPACU_PLUGIN_URL); ?>/assets/icons/icon-lock.svg" valign="top" alt="" /></a></div>
|
44 |
<option selected="selected" value="">on any screen size (default)</option>
|
45 |
<option disabled="disabled" value="1">if the media query is matched (Pro)</option>
|
46 |
</select>
|
47 |
+
<div style="display: inline-block; vertical-align: middle; margin-left: -2px;"><a class="go-pro-link-no-style wpacu-media-query-load-requires-pro-popup" href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL.'?utm_source=manage_asset&utm_medium=media_query_load_css'); ?>"><span
|
48 |
class="wpacu-tooltip wpacu-larger" style="left: -26px;"><?php echo str_replace('the premium', 'the<br />premium', wp_kses(__('This feature is available in the premium version of the plugin.',
|
49 |
'wp-asset-clean-up' ), array('br' => array()))); ?><br/> <?php _e( 'Click here to upgrade to Pro',
|
50 |
'wp-asset-clean-up' ); ?>!</span> <img width="20" height="20" src="<?php echo esc_url(WPACU_PLUGIN_URL); ?>/assets/icons/icon-lock.svg" valign="top" alt="" /></a></div>
|
templates/meta-box-loaded-assets/_asset-style-single-row/_position.php
CHANGED
@@ -8,7 +8,7 @@ if ( ! isset($data, $styleHandleHasSrc) ) {
|
|
8 |
}
|
9 |
|
10 |
if ($styleHandleHasSrc && isset($data['row']['obj']->position) && $data['row']['obj']->position !== '') {
|
11 |
-
$extraInfo[] = __('Position:', 'wp-asset-clean-up') . ' ' . (( $data['row']['obj']->position === 'head') ? 'HEAD' : 'BODY') . '<a class="go-pro-link-no-style" href="' . WPACU_PLUGIN_GO_PRO_URL . '?utm_source=manage_asset&utm_medium=change_css_position"><span class="wpacu-tooltip" style="width: 322px; margin-left: -146px;">Upgrade to Pro and change the location of the CSS file <br /> (e.g. to BODY to reduce render-blocking <br /> or to HEAD for very early triggering)</span><img width="20" height="20" src="' . WPACU_PLUGIN_URL . '/assets/icons/icon-lock.svg" valign="top" alt="" /> Change it?</a>';
|
12 |
} elseif (! $styleHandleHasSrc) {
|
13 |
if ($data['row']['obj']->handle === 'woocommerce-inline') {
|
14 |
$noSrcLoadedIn = __('Inline CSS Loaded In:', 'wp-asset-clean-up');
|
8 |
}
|
9 |
|
10 |
if ($styleHandleHasSrc && isset($data['row']['obj']->position) && $data['row']['obj']->position !== '') {
|
11 |
+
$extraInfo[] = __('Position:', 'wp-asset-clean-up') . ' ' . (( $data['row']['obj']->position === 'head') ? 'HEAD' : 'BODY') . '<a class="go-pro-link-no-style" href="' . apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL . '?utm_source=manage_asset&utm_medium=change_css_position').'"><span class="wpacu-tooltip" style="width: 322px; margin-left: -146px;">Upgrade to Pro and change the location of the CSS file <br /> (e.g. to BODY to reduce render-blocking <br /> or to HEAD for very early triggering)</span><img width="20" height="20" src="' . WPACU_PLUGIN_URL . '/assets/icons/icon-lock.svg" valign="top" alt="" /> Change it?</a>';
|
12 |
} elseif (! $styleHandleHasSrc) {
|
13 |
if ($data['row']['obj']->handle === 'woocommerce-inline') {
|
14 |
$noSrcLoadedIn = __('Inline CSS Loaded In:', 'wp-asset-clean-up');
|
templates/meta-box-loaded-assets/_assets-hardcoded-list.php
CHANGED
@@ -35,7 +35,7 @@ if ($totalFoundHardcodedTags === 0) {
|
|
35 |
href="https://developer.wordpress.org/reference/functions/wp_add_inline_script/">wp_add_inline_script()</a>. The tags could have been added via editing the PHP code (not using the right standard functions), directly inside posts content, widgets or via plugins such as "Insert Headers and Footers", "Head, Footer and Post Injections", etc. Be careful when unloading any of these tags as they might be related to Google Analytics/AdWords, StatCounter, Facebook Pixel, etc.
|
36 |
</p>
|
37 |
<!-- [wpacu_lite] -->
|
38 |
-
<div style="margin: 20px 0; border-left: solid 4px green; background: #f2faf2; padding: 10px;"><img width="20" height="20" src="<?php echo esc_url(WPACU_PLUGIN_URL); ?>/assets/icons/icon-lock.svg" valign="top" alt="" /> Managing hardcoded LINK/STYLE/SCRIPT tags is an option <a target="_blank" href="<?php echo WPACU_PLUGIN_GO_PRO_URL
|
39 |
<!-- [/wpacu_lite] -->
|
40 |
</div>
|
41 |
<?php
|
@@ -139,25 +139,25 @@ if ($totalFoundHardcodedTags === 0) {
|
|
139 |
$srcHrefOriginal = false;
|
140 |
|
141 |
if (\WpAssetCleanUp\Misc::isDOMDocumentOn()) {
|
142 |
-
$domForTag =
|
143 |
-
libxml_use_internal_errors( true );
|
144 |
|
145 |
$domForTag->loadHTML( $tagOutput );
|
146 |
|
147 |
$scriptTagObj = $domForTag->getElementsByTagName( 'script' )->item( 0 );
|
148 |
|
149 |
-
|
|
|
150 |
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
|
|
157 |
} else { // Fallback in case DOMDocument is not active for any reason
|
158 |
// only look from <script to >
|
159 |
-
preg_match_all( '#<script(.*?)src=(["\'])' . '(.*)' . '(["\'])(>)#Usmi',
|
160 |
-
$tagOutput, $outputMatches );
|
161 |
|
162 |
if ( isset( $outputMatches[3][0] ) ) {
|
163 |
$srcHrefOriginal = trim( $outputMatches[3][0], '"\'' );
|
35 |
href="https://developer.wordpress.org/reference/functions/wp_add_inline_script/">wp_add_inline_script()</a>. The tags could have been added via editing the PHP code (not using the right standard functions), directly inside posts content, widgets or via plugins such as "Insert Headers and Footers", "Head, Footer and Post Injections", etc. Be careful when unloading any of these tags as they might be related to Google Analytics/AdWords, StatCounter, Facebook Pixel, etc.
|
36 |
</p>
|
37 |
<!-- [wpacu_lite] -->
|
38 |
+
<div style="margin: 20px 0; border-left: solid 4px green; background: #f2faf2; padding: 10px;"><img width="20" height="20" src="<?php echo esc_url(WPACU_PLUGIN_URL); ?>/assets/icons/icon-lock.svg" valign="top" alt="" /> Managing hardcoded LINK/STYLE/SCRIPT tags is an option <a target="_blank" href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL.'?utm_source=manage_hardcoded_assets&utm_medium=top_notice'); ?>">available in the Pro version</a>.</div>
|
39 |
<!-- [/wpacu_lite] -->
|
40 |
</div>
|
41 |
<?php
|
139 |
$srcHrefOriginal = false;
|
140 |
|
141 |
if (\WpAssetCleanUp\Misc::isDOMDocumentOn()) {
|
142 |
+
$domForTag = \WpAssetCleanUp\Misc::initDOMDocument();
|
|
|
143 |
|
144 |
$domForTag->loadHTML( $tagOutput );
|
145 |
|
146 |
$scriptTagObj = $domForTag->getElementsByTagName( 'script' )->item( 0 );
|
147 |
|
148 |
+
if ($scriptTagObj->hasAttributes()) {
|
149 |
+
$scriptAttributes = array();
|
150 |
|
151 |
+
foreach ( $scriptTagObj->attributes as $attrObj ) {
|
152 |
+
if ( $attrObj->nodeName === 'src' ) {
|
153 |
+
$srcHrefOriginal = trim( $attrObj->nodeValue );
|
154 |
+
break;
|
155 |
+
}
|
156 |
+
}
|
157 |
+
}
|
158 |
} else { // Fallback in case DOMDocument is not active for any reason
|
159 |
// only look from <script to >
|
160 |
+
preg_match_all( '#<script(.*?)src=(["\'])' . '(.*)' . '(["\'])(>)#Usmi', $tagOutput, $outputMatches );
|
|
|
161 |
|
162 |
if ( isset( $outputMatches[3][0] ) ) {
|
163 |
$srcHrefOriginal = trim( $outputMatches[3][0], '"\'' );
|
templates/meta-box-loaded-assets/_common/_asset-single-row-extra-inline.php
CHANGED
@@ -11,80 +11,103 @@ $assetType = $data['row']['asset_type'];
|
|
11 |
$assetTypeS = substr($data['row']['asset_type'], 0, -1); // "styles" to "style" & "scripts" to "script"
|
12 |
|
13 |
if ($assetTypeS === 'style' && ! empty($data['row']['extra_data_css_list'])) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
?>
|
15 |
<div class="wpacu-assets-inline-code-wrap">
|
16 |
<?php _e('Inline styling associated with the handle:', 'wp-asset-clean-up'); ?>
|
17 |
<a class="wpacu-assets-inline-code-collapsible"
|
18 |
<?php if ($inlineCodeStatus !== 'contracted') { echo 'wpacu-assets-inline-code-collapsible-active'; } ?>
|
19 |
href="#"><?php _e('Show / Hide', 'wp-asset-clean-up'); ?></a>
|
|
|
20 |
<div class="wpacu-assets-inline-code-collapsible-content <?php if ($inlineCodeStatus !== 'contracted') { echo 'wpacu-open'; } ?>">
|
21 |
<div>
|
22 |
<p style="margin-bottom: 15px; line-height: normal !important;">
|
23 |
-
<?php
|
24 |
-
foreach ($data['row']['extra_data_css_list'] as $extraDataCSS) {
|
25 |
-
$htmlInline = trim(\WpAssetCleanUp\OptimiseAssets\OptimizeCss::generateInlineAssocHtmlForHandle(
|
26 |
-
$data['row']['obj']->handle,
|
27 |
-
$extraDataCSS
|
28 |
-
));
|
29 |
-
echo '<small><code>'.nl2br(htmlspecialchars($htmlInline)).'</code></small>';
|
30 |
-
}
|
31 |
-
?>
|
32 |
</p>
|
33 |
</div>
|
34 |
</div>
|
35 |
</div>
|
36 |
<?php
|
37 |
} elseif ($assetTypeS === 'script' && ($data['row']['extra_data_js'] || $data['row']['extra_before_js'] || $data['row']['extra_after_js'])) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
?>
|
39 |
<div class="wpacu-assets-inline-code-wrap">
|
40 |
<?php _e('Inline JavaScript code associated with the handle:', 'wp-asset-clean-up'); ?>
|
41 |
<a class="wpacu-assets-inline-code-collapsible"
|
42 |
<?php if ($inlineCodeStatus !== 'contracted') { echo 'wpacu-assets-inline-code-collapsible-active'; } ?>
|
43 |
href="#"><?php _e('Show', 'wp-asset-clean-up'); ?> / <?php _e('Hide', 'wp-asset-clean-up'); ?></a>
|
|
|
44 |
<div class="wpacu-assets-inline-code-collapsible-content <?php if ($inlineCodeStatus !== 'contracted') { echo 'wpacu-open'; } ?>">
|
45 |
<?php
|
46 |
-
$
|
47 |
-
'data' => 'CDATA added via wp_localize_script()',
|
48 |
-
'before' => 'Before the tag:',
|
49 |
-
'after' => 'After the tag:'
|
50 |
-
);
|
51 |
-
|
52 |
-
foreach ($extraInlineKeys as $extraKeyValue => $extraKeyText) {
|
53 |
-
$keyToMatch = 'extra_'.$extraKeyValue.'_js';
|
54 |
-
|
55 |
-
if ( ! isset($data['row'][$keyToMatch]) ) {
|
56 |
-
continue;
|
57 |
-
}
|
58 |
-
|
59 |
-
$inlineScriptContent = $data['row'][$keyToMatch];
|
60 |
-
|
61 |
-
if (is_array($inlineScriptContent) && in_array($extraKeyValue, array('before', 'after'))) {
|
62 |
-
$inlineScriptContent = (string)ltrim(implode("\n", $inlineScriptContent));
|
63 |
-
}
|
64 |
-
|
65 |
-
$inlineScriptContent = trim($inlineScriptContent);
|
66 |
-
|
67 |
-
if ($inlineScriptContent) {
|
68 |
-
?>
|
69 |
-
<div style="margin-bottom: 8px;">
|
70 |
-
<div style="margin-bottom: 10px;"><strong><?php echo esc_html($extraKeyText); ?></strong></div>
|
71 |
-
<div style="margin-top: -7px !important; line-height: normal !important;">
|
72 |
-
<?php
|
73 |
-
$htmlInline = trim( \WpAssetCleanUp\OptimiseAssets\OptimizeJs::generateInlineAssocHtmlForHandle(
|
74 |
-
$data['row']['obj']->handle,
|
75 |
-
$extraKeyValue,
|
76 |
-
$inlineScriptContent
|
77 |
-
) );
|
78 |
-
|
79 |
-
echo '<small><code>' . nl2br( htmlspecialchars( $htmlInline ) ) . '</code></small>';
|
80 |
-
?>
|
81 |
-
</div>
|
82 |
-
</div>
|
83 |
-
<?php
|
84 |
-
}
|
85 |
-
}
|
86 |
?>
|
87 |
</div>
|
88 |
</div>
|
89 |
<?php
|
|
|
90 |
}
|
11 |
$assetTypeS = substr($data['row']['asset_type'], 0, -1); // "styles" to "style" & "scripts" to "script"
|
12 |
|
13 |
if ($assetTypeS === 'style' && ! empty($data['row']['extra_data_css_list'])) {
|
14 |
+
$codeToPrint = '';
|
15 |
+
$totalInlineCodeSize = 0;
|
16 |
+
|
17 |
+
foreach ($data['row']['extra_data_css_list'] as $extraDataCSS) {
|
18 |
+
$outerHtmlCode = \WpAssetCleanUp\OptimiseAssets\OptimizeCss::generateInlineAssocHtmlForHandle(
|
19 |
+
$data['row']['obj']->handle,
|
20 |
+
$extraDataCSS
|
21 |
+
);
|
22 |
+
|
23 |
+
$htmlInline = trim($outerHtmlCode);
|
24 |
+
|
25 |
+
$codeToPrint .= '<small><code>'.nl2br(htmlspecialchars($htmlInline)).'</code></small><br />';
|
26 |
+
|
27 |
+
$totalInlineCodeSize += strlen($outerHtmlCode);
|
28 |
+
}
|
29 |
?>
|
30 |
<div class="wpacu-assets-inline-code-wrap">
|
31 |
<?php _e('Inline styling associated with the handle:', 'wp-asset-clean-up'); ?>
|
32 |
<a class="wpacu-assets-inline-code-collapsible"
|
33 |
<?php if ($inlineCodeStatus !== 'contracted') { echo 'wpacu-assets-inline-code-collapsible-active'; } ?>
|
34 |
href="#"><?php _e('Show / Hide', 'wp-asset-clean-up'); ?></a>
|
35 |
+
/ Size: <em><?php echo \WpAssetCleanUp\Misc::formatBytes($totalInlineCodeSize, 2, ''); ?></em>
|
36 |
<div class="wpacu-assets-inline-code-collapsible-content <?php if ($inlineCodeStatus !== 'contracted') { echo 'wpacu-open'; } ?>">
|
37 |
<div>
|
38 |
<p style="margin-bottom: 15px; line-height: normal !important;">
|
39 |
+
<?php echo $codeToPrint; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
</p>
|
41 |
</div>
|
42 |
</div>
|
43 |
</div>
|
44 |
<?php
|
45 |
} elseif ($assetTypeS === 'script' && ($data['row']['extra_data_js'] || $data['row']['extra_before_js'] || $data['row']['extra_after_js'])) {
|
46 |
+
$extraInlineKeys = array(
|
47 |
+
'data' => 'CDATA added via wp_localize_script()',
|
48 |
+
'before' => 'Before the tag:',
|
49 |
+
'after' => 'After the tag:'
|
50 |
+
);
|
51 |
+
|
52 |
+
ob_start();
|
53 |
+
|
54 |
+
$totalInlineCodeSize = 0;
|
55 |
+
|
56 |
+
foreach ($extraInlineKeys as $extraKeyValue => $extraKeyText) {
|
57 |
+
$keyToMatch = 'extra_'.$extraKeyValue.'_js';
|
58 |
+
|
59 |
+
if ( ! isset($data['row'][$keyToMatch]) ) {
|
60 |
+
continue;
|
61 |
+
}
|
62 |
+
|
63 |
+
$inlineScriptContent = $data['row'][$keyToMatch];
|
64 |
+
|
65 |
+
if (is_array($inlineScriptContent) && in_array($extraKeyValue, array('before', 'after'))) {
|
66 |
+
$inlineScriptContent = (string)ltrim(implode("\n", $inlineScriptContent));
|
67 |
+
}
|
68 |
+
|
69 |
+
$inlineScriptContent = trim($inlineScriptContent);
|
70 |
+
|
71 |
+
if ($inlineScriptContent) {
|
72 |
+
?>
|
73 |
+
<div style="margin-bottom: 8px;">
|
74 |
+
<div style="margin-bottom: 10px;"><strong><?php echo esc_html($extraKeyText); ?></strong></div>
|
75 |
+
<div style="margin-top: -7px !important; line-height: normal !important;">
|
76 |
+
<?php
|
77 |
+
$outerHtmlCode = \WpAssetCleanUp\OptimiseAssets\OptimizeJs::generateInlineAssocHtmlForHandle(
|
78 |
+
$data['row']['obj']->handle,
|
79 |
+
$extraKeyValue,
|
80 |
+
$inlineScriptContent
|
81 |
+
);
|
82 |
+
|
83 |
+
$htmlInline = trim($outerHtmlCode);
|
84 |
+
|
85 |
+
echo '<small><code>' . nl2br( htmlspecialchars( $htmlInline ) ) . '</code></small>';
|
86 |
+
|
87 |
+
$totalInlineCodeSize += strlen($outerHtmlCode);
|
88 |
+
?>
|
89 |
+
</div>
|
90 |
+
</div>
|
91 |
+
<?php
|
92 |
+
}
|
93 |
+
}
|
94 |
+
|
95 |
+
$codeToPrint = ob_get_clean();
|
96 |
+
|
97 |
+
if ($totalInlineCodeSize > 0) {
|
98 |
?>
|
99 |
<div class="wpacu-assets-inline-code-wrap">
|
100 |
<?php _e('Inline JavaScript code associated with the handle:', 'wp-asset-clean-up'); ?>
|
101 |
<a class="wpacu-assets-inline-code-collapsible"
|
102 |
<?php if ($inlineCodeStatus !== 'contracted') { echo 'wpacu-assets-inline-code-collapsible-active'; } ?>
|
103 |
href="#"><?php _e('Show', 'wp-asset-clean-up'); ?> / <?php _e('Hide', 'wp-asset-clean-up'); ?></a>
|
104 |
+
/ Size: <em><?php echo \WpAssetCleanUp\Misc::formatBytes($totalInlineCodeSize, 2, ''); ?></em>
|
105 |
<div class="wpacu-assets-inline-code-collapsible-content <?php if ($inlineCodeStatus !== 'contracted') { echo 'wpacu-open'; } ?>">
|
106 |
<?php
|
107 |
+
echo $codeToPrint;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
?>
|
109 |
</div>
|
110 |
</div>
|
111 |
<?php
|
112 |
+
}
|
113 |
}
|
templates/meta-box-loaded-assets/_common/_asset-single-row-load-exceptions-taxonomy.php
CHANGED
@@ -32,7 +32,7 @@ switch ($data['post_type']) {
|
|
32 |
disabled="disabled"
|
33 |
value="1"/> <span><?php echo $loadBulkTextViaTax; ?>:</span></label>
|
34 |
<a class="go-pro-link-no-style"
|
35 |
-
href="<?php echo WPACU_PLUGIN_GO_PRO_URL
|
36 |
class="wpacu-tooltip wpacu-larger" style="left: -26px;"><?php echo str_replace('the premium', 'the<br />premium', wp_kses(__('This feature is available in the premium version of the plugin.',
|
37 |
'wp-asset-clean-up' ), array('br' => array()))); ?><br/> <?php _e( 'Click here to upgrade to Pro',
|
38 |
'wp-asset-clean-up' ); ?>!</span><img width="20" height="20"
|
32 |
disabled="disabled"
|
33 |
value="1"/> <span><?php echo $loadBulkTextViaTax; ?>:</span></label>
|
34 |
<a class="go-pro-link-no-style"
|
35 |
+
href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL.'?utm_source=manage_asset&utm_medium=load_exception_'.$assetTypeS.'_post_type_via_tax'); ?>"><span
|
36 |
class="wpacu-tooltip wpacu-larger" style="left: -26px;"><?php echo str_replace('the premium', 'the<br />premium', wp_kses(__('This feature is available in the premium version of the plugin.',
|
37 |
'wp-asset-clean-up' ), array('br' => array()))); ?><br/> <?php _e( 'Click here to upgrade to Pro',
|
38 |
'wp-asset-clean-up' ); ?>!</span><img width="20" height="20"
|
templates/meta-box-loaded-assets/_common/_asset-single-row-load-exceptions.php
CHANGED
@@ -85,7 +85,7 @@ if ($data['row']['global_unloaded']) {
|
|
85 |
disabled="disabled"
|
86 |
value="1"/>
|
87 |
Load it for URLs with request URI matching this RegEx(es): <a class="go-pro-link-no-style"
|
88 |
-
href="<?php echo WPACU_PLUGIN_GO_PRO_URL
|
89 |
class="wpacu-tooltip wpacu-larger" style="left: -26px;"><?php echo str_replace('the premium', 'the<br />premium', wp_kses(__('This feature is available in the premium version of the plugin.',
|
90 |
'wp-asset-clean-up' ), array('br' => array()))); ?><br/> <?php _e( 'Click here to upgrade to Pro',
|
91 |
'wp-asset-clean-up' ); ?>!</span><img width="20" height="20"
|
85 |
disabled="disabled"
|
86 |
value="1"/>
|
87 |
Load it for URLs with request URI matching this RegEx(es): <a class="go-pro-link-no-style"
|
88 |
+
href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL.'?utm_source=manage_asset&utm_medium=load_exception_'.$assetTypeS.'_post_type_via_tax'); ?>"><span
|
89 |
class="wpacu-tooltip wpacu-larger" style="left: -26px;"><?php echo str_replace('the premium', 'the<br />premium', wp_kses(__('This feature is available in the premium version of the plugin.',
|
90 |
'wp-asset-clean-up' ), array('br' => array()))); ?><br/> <?php _e( 'Click here to upgrade to Pro',
|
91 |
'wp-asset-clean-up' ); ?>!</span><img width="20" height="20"
|
templates/meta-box-loaded-assets/_common/_asset-single-row-position.php
CHANGED
@@ -8,7 +8,7 @@ $assetTypeS = substr($data['row']['asset_type'], 0, -1); // "styles" to "style"
|
|
8 |
|
9 |
if ($assetTypeS === 'style') {
|
10 |
if ($assetHandleHasSrc && isset($data['row']['obj']->position) && $data['row']['obj']->position !== '') {
|
11 |
-
$extraInfo[] = __('Position:', 'wp-asset-clean-up') . ' ' . (( $data['row']['obj']->position === 'head') ? 'HEAD' : 'BODY') . '<a class="go-pro-link-no-style" href="' . WPACU_PLUGIN_GO_PRO_URL . '?utm_source=manage_asset&utm_medium=change_css_position"><span class="wpacu-tooltip" style="width: 322px; margin-left: -146px;">Upgrade to Pro and change the location of the CSS file <br /> (e.g. to BODY to reduce render-blocking <br /> or to HEAD for very early triggering)</span><img width="20" height="20" src="' . WPACU_PLUGIN_URL . '/assets/icons/icon-lock.svg" valign="top" alt="" /> Change it?</a>';
|
12 |
} elseif (! $assetHandleHasSrc) {
|
13 |
if (isset($data['row']['obj']->extra->after) && ! empty($data['row']['obj']->extra->after)) {
|
14 |
$noSrcLoadedIn = __('This inline CSS can be viewed using the "Show/Hide" button below and it is loaded in:', 'wp-asset-clean-up');
|
@@ -21,7 +21,7 @@ if ($assetTypeS === 'style') {
|
|
21 |
|
22 |
} elseif ($assetTypeS === 'script') {
|
23 |
if ($assetHandleHasSrc && isset($data['row']['obj']->position) && $data['row']['obj']->position !== '') {
|
24 |
-
$extraInfo[] = __( 'Position:', 'wp-asset-clean-up' ) . ' ' . ( ( $data['row']['obj']->position === 'head' ) ? 'HEAD' : 'BODY' ) . '<a class="go-pro-link-no-style" href="' . WPACU_PLUGIN_GO_PRO_URL . '?utm_source=manage_asset&utm_medium=change_js_position"><span class="wpacu-tooltip" style="width: 322px; margin-left: -146px;">Upgrade to Pro and change the location of the JS file <br /> (e.g. to BODY to reduce render-blocking <br /> or to HEAD for very early triggering)</span><img width="20" height="20" src="' . WPACU_PLUGIN_URL . '/assets/icons/icon-lock.svg" valign="top" alt="" /> Change it?</a>';
|
25 |
} elseif (! $assetHandleHasSrc) {
|
26 |
$noSrcLoadedIn = __('This handle is not for external JS (most likely inline JS) and it is loaded in:', 'wp-asset-clean-up');
|
27 |
|
8 |
|
9 |
if ($assetTypeS === 'style') {
|
10 |
if ($assetHandleHasSrc && isset($data['row']['obj']->position) && $data['row']['obj']->position !== '') {
|
11 |
+
$extraInfo[] = __('Position:', 'wp-asset-clean-up') . ' ' . (( $data['row']['obj']->position === 'head') ? 'HEAD' : 'BODY') . '<a class="go-pro-link-no-style" href="' . apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL . '?utm_source=manage_asset&utm_medium=change_css_position').'"><span class="wpacu-tooltip" style="width: 322px; margin-left: -146px;">Upgrade to Pro and change the location of the CSS file <br /> (e.g. to BODY to reduce render-blocking <br /> or to HEAD for very early triggering)</span><img width="20" height="20" src="' . WPACU_PLUGIN_URL . '/assets/icons/icon-lock.svg" valign="top" alt="" /> Change it?</a>';
|
12 |
} elseif (! $assetHandleHasSrc) {
|
13 |
if (isset($data['row']['obj']->extra->after) && ! empty($data['row']['obj']->extra->after)) {
|
14 |
$noSrcLoadedIn = __('This inline CSS can be viewed using the "Show/Hide" button below and it is loaded in:', 'wp-asset-clean-up');
|
21 |
|
22 |
} elseif ($assetTypeS === 'script') {
|
23 |
if ($assetHandleHasSrc && isset($data['row']['obj']->position) && $data['row']['obj']->position !== '') {
|
24 |
+
$extraInfo[] = __( 'Position:', 'wp-asset-clean-up' ) . ' ' . ( ( $data['row']['obj']->position === 'head' ) ? 'HEAD' : 'BODY' ) . '<a class="go-pro-link-no-style" href="' . apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL . '?utm_source=manage_asset&utm_medium=change_js_position').'"><span class="wpacu-tooltip" style="width: 322px; margin-left: -146px;">Upgrade to Pro and change the location of the JS file <br /> (e.g. to BODY to reduce render-blocking <br /> or to HEAD for very early triggering)</span><img width="20" height="20" src="' . WPACU_PLUGIN_URL . '/assets/icons/icon-lock.svg" valign="top" alt="" /> Change it?</a>';
|
25 |
} elseif (! $assetHandleHasSrc) {
|
26 |
$noSrcLoadedIn = __('This handle is not for external JS (most likely inline JS) and it is loaded in:', 'wp-asset-clean-up');
|
27 |
|
templates/meta-box-loaded-assets/_common/_asset-single-row-unload-post-type-taxonomy.php
CHANGED
@@ -54,7 +54,7 @@ if (! $data['row']['global_unloaded']) {
|
|
54 |
name="<?php echo WPACU_FORM_ASSETS_POST_KEY; ?>[styles][unload_post_type_via_tax][<?php echo htmlentities(esc_attr($data['row']['obj']->handle), ENT_QUOTES); ?>][enable]"
|
55 |
value="1"/> <span><?php echo $unloadViaTaxText; ?>:</span></label>
|
56 |
<a class="go-pro-link-no-style"
|
57 |
-
href="<?php echo WPACU_PLUGIN_GO_PRO_URL
|
58 |
class="wpacu-tooltip wpacu-larger" style="left: -26px;"><?php echo str_replace('the premium', 'the<br />premium', wp_kses(__('This feature is available in the premium version of the plugin.',
|
59 |
'wp-asset-clean-up' ), array('br' => array()))); ?><br/> <?php _e( 'Click here to upgrade to Pro',
|
60 |
'wp-asset-clean-up' ); ?>!</span><img width="20" height="20"
|
54 |
name="<?php echo WPACU_FORM_ASSETS_POST_KEY; ?>[styles][unload_post_type_via_tax][<?php echo htmlentities(esc_attr($data['row']['obj']->handle), ENT_QUOTES); ?>][enable]"
|
55 |
value="1"/> <span><?php echo $unloadViaTaxText; ?>:</span></label>
|
56 |
<a class="go-pro-link-no-style"
|
57 |
+
href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL.'?utm_source=manage_asset&utm_medium=unload_style_post_type_via_tax'); ?>"><span
|
58 |
class="wpacu-tooltip wpacu-larger" style="left: -26px;"><?php echo str_replace('the premium', 'the<br />premium', wp_kses(__('This feature is available in the premium version of the plugin.',
|
59 |
'wp-asset-clean-up' ), array('br' => array()))); ?><br/> <?php _e( 'Click here to upgrade to Pro',
|
60 |
'wp-asset-clean-up' ); ?>!</span><img width="20" height="20"
|
templates/meta-box-loaded-assets/_common/_asset-single-row-unload-via-regex.php
CHANGED
@@ -28,7 +28,7 @@ if (! $data['row']['global_unloaded']) {
|
|
28 |
value="1"/> <span>Unload it for URLs with request URI matching this RegEx(es):</span></label>
|
29 |
|
30 |
<a class="go-pro-link-no-style"
|
31 |
-
href="<?php echo WPACU_PLUGIN_GO_PRO_URL
|
32 |
class="wpacu-tooltip wpacu-larger" style="left: -26px;"><?php echo str_replace('the premium', 'the<br />premium', wp_kses(__('This feature is available in the premium version of the plugin.',
|
33 |
'wp-asset-clean-up' ), array('br' => array()))); ?><br/> <?php _e( 'Click here to upgrade to Pro',
|
34 |
'wp-asset-clean-up' ); ?>!</span><img width="20" height="20"
|
28 |
value="1"/> <span>Unload it for URLs with request URI matching this RegEx(es):</span></label>
|
29 |
|
30 |
<a class="go-pro-link-no-style"
|
31 |
+
href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL.'?utm_source=manage_asset&utm_medium=unload_'.$assetTypeS.'_by_regex'); ?>"><span
|
32 |
class="wpacu-tooltip wpacu-larger" style="left: -26px;"><?php echo str_replace('the premium', 'the<br />premium', wp_kses(__('This feature is available in the premium version of the plugin.',
|
33 |
'wp-asset-clean-up' ), array('br' => array()))); ?><br/> <?php _e( 'Click here to upgrade to Pro',
|
34 |
'wp-asset-clean-up' ); ?>!</span><img width="20" height="20"
|
templates/meta-box-loaded-assets/_inline_js.php
CHANGED
@@ -36,6 +36,7 @@ if (! isset($data)) {
|
|
36 |
this.classList.toggle('wpacu-assets-inline-code-collapsible-active');
|
37 |
|
38 |
var assetInlineCodeContent = this.nextElementSibling;
|
|
|
39 |
|
40 |
if (assetInlineCodeContent.style.maxHeight) {
|
41 |
assetInlineCodeContent.style.maxHeight = null;
|
@@ -232,7 +233,7 @@ if (! isset($data)) {
|
|
232 |
// [wpacu_lite]
|
233 |
if (! is_admin()) {
|
234 |
// Admin manages the list in the front-end view
|
235 |
-
$upgradeToProLink = WPACU_PLUGIN_GO_PRO_URL.'?utm_source=manage_hardcoded_assets&utm_medium=go_pro_frontend';
|
236 |
?>
|
237 |
var wpacuElGoPro = document.getElementsByClassName('wpacu-manage-hardcoded-assets-requires-pro-popup');
|
238 |
|
36 |
this.classList.toggle('wpacu-assets-inline-code-collapsible-active');
|
37 |
|
38 |
var assetInlineCodeContent = this.nextElementSibling;
|
39 |
+
assetInlineCodeContent = assetInlineCodeContent.nextElementSibling;
|
40 |
|
41 |
if (assetInlineCodeContent.style.maxHeight) {
|
42 |
assetInlineCodeContent.style.maxHeight = null;
|
233 |
// [wpacu_lite]
|
234 |
if (! is_admin()) {
|
235 |
// Admin manages the list in the front-end view
|
236 |
+
$upgradeToProLink = apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL.'?utm_source=manage_hardcoded_assets&utm_medium=go_pro_frontend');
|
237 |
?>
|
238 |
var wpacuElGoPro = document.getElementsByClassName('wpacu-manage-hardcoded-assets-requires-pro-popup');
|
239 |
|
templates/settings-frontend-lite-locked.php
CHANGED
@@ -42,7 +42,7 @@ if (! isset($data)) {
|
|
42 |
}
|
43 |
?>
|
44 |
<p>
|
45 |
-
<a class="go-pro-button" target="_blank" href="<?php echo WPACU_PLUGIN_GO_PRO_URL
|
46 |
<span class="dashicons dashicons-cart"></span> <?php _e('Upgrade to Asset CleanUp Pro', 'wp-asset-clean-up'); ?></a>
|
47 |
</p>
|
48 |
</div>
|
42 |
}
|
43 |
?>
|
44 |
<p>
|
45 |
+
<a class="go-pro-button" target="_blank" href="<?php echo apply_filters('wpacu_go_pro_affiliate_link', WPACU_PLUGIN_GO_PRO_URL.'?utm_source=front_end_manage&utm_medium='.esc_attr($utm_medium)); ?>">
|
46 |
<span class="dashicons dashicons-cart"></span> <?php _e('Upgrade to Asset CleanUp Pro', 'wp-asset-clean-up'); ?></a>
|
47 |
</p>
|
48 |
</div>
|
wpacu.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
* Plugin Name: Asset CleanUp: Page Speed Booster
|
4 |
* Plugin URI: https://wordpress.org/plugins/wp-asset-clean-up/
|
5 |
-
* Version: 1.3.8.
|
6 |
* Requires at least: 4.5
|
7 |
* Requires PHP: 5.6
|
8 |
* Description: Unload Chosen Scripts & Styles from Posts/Pages to reduce HTTP Requests, Combine/Minify CSS/JS files
|
@@ -29,7 +29,7 @@ if ( (defined('WPACU_PRO_NO_LITE_NEEDED') && WPACU_PRO_NO_LITE_NEEDED !== false
|
|
29 |
|
30 |
// Is the Pro version triggered before the Lite one and are both plugins active?
|
31 |
if (! defined('WPACU_PLUGIN_VERSION')) {
|
32 |
-
define('WPACU_PLUGIN_VERSION', '1.3.8.
|
33 |
}
|
34 |
|
35 |
// Exit if accessed directly
|
@@ -41,6 +41,10 @@ if (! defined('WPACU_PLUGIN_ID')) {
|
|
41 |
define( 'WPACU_PLUGIN_ID', 'wpassetcleanup' ); // unique prefix (same plugin ID name for 'lite' and 'pro')
|
42 |
}
|
43 |
|
|
|
|
|
|
|
|
|
44 |
if ( ! defined('WPACU_PLUGIN_TITLE') ) {
|
45 |
define( 'WPACU_PLUGIN_TITLE', 'Asset CleanUp' ); // a short version of the plugin name
|
46 |
}
|
@@ -96,7 +100,7 @@ define('WPACU_PLUGIN_CLASSES_PATH', WPACU_PLUGIN_DIR.'/classes/');
|
|
96 |
define('WPACU_PLUGIN_URL', plugins_url('', WPACU_PLUGIN_FILE));
|
97 |
|
98 |
// Upgrade to Pro Sales Page
|
99 |
-
define('WPACU_PLUGIN_GO_PRO_URL', 'https://www.gabelivan.com/items/wp-asset-cleanup-pro/');
|
100 |
|
101 |
// Global Values
|
102 |
define('WPACU_LOAD_ASSETS_REQ_KEY', WPACU_PLUGIN_ID . '_load');
|
2 |
/*
|
3 |
* Plugin Name: Asset CleanUp: Page Speed Booster
|
4 |
* Plugin URI: https://wordpress.org/plugins/wp-asset-clean-up/
|
5 |
+
* Version: 1.3.8.8
|
6 |
* Requires at least: 4.5
|
7 |
* Requires PHP: 5.6
|
8 |
* Description: Unload Chosen Scripts & Styles from Posts/Pages to reduce HTTP Requests, Combine/Minify CSS/JS files
|
29 |
|
30 |
// Is the Pro version triggered before the Lite one and are both plugins active?
|
31 |
if (! defined('WPACU_PLUGIN_VERSION')) {
|
32 |
+
define('WPACU_PLUGIN_VERSION', '1.3.8.8');
|
33 |
}
|
34 |
|
35 |
// Exit if accessed directly
|
41 |
define( 'WPACU_PLUGIN_ID', 'wpassetcleanup' ); // unique prefix (same plugin ID name for 'lite' and 'pro')
|
42 |
}
|
43 |
|
44 |
+
if (! defined('WPACU_PLUGIN_SLUG')) {
|
45 |
+
define( 'WPACU_PLUGIN_SLUG', 'wp-asset-clean-up' ); // useful to detect which functions to trigger (e.g. JS files)
|
46 |
+
}
|
47 |
+
|
48 |
if ( ! defined('WPACU_PLUGIN_TITLE') ) {
|
49 |
define( 'WPACU_PLUGIN_TITLE', 'Asset CleanUp' ); // a short version of the plugin name
|
50 |
}
|
100 |
define('WPACU_PLUGIN_URL', plugins_url('', WPACU_PLUGIN_FILE));
|
101 |
|
102 |
// Upgrade to Pro Sales Page
|
103 |
+
define('WPACU_PLUGIN_GO_PRO_URL', 'https://www.gabelivan.com/items/wp-asset-cleanup-pro/'); // no query strings to be added
|
104 |
|
105 |
// Global Values
|
106 |
define('WPACU_LOAD_ASSETS_REQ_KEY', WPACU_PLUGIN_ID . '_load');
|