feat: caching, optimization, legal pages & footer
- WP Super Cache enabled (PHP mode, gzip, Nginx compatible) - Autoptimize: CSS/HTML minification + deferred JS + Google Fonts optimization - Cookie Notice: GDPR/LOPD banner styled with brand colors (navy/burgundy/gold) - Legal pages: Aviso Legal, Política de Privacidad, Política de Cookies (ES) - MU-plugin: custom footer with legal links + Cloud Host credit - Footer: copyright, legal nav, Hosted & Maintained by Cloud Host (cloudhost.es) - Security: X-Frame-Options, X-Content-Type, Referrer-Policy headers - Security: XML-RPC disabled, REST user enumeration blocked - Performance: emoji scripts removed, post revisions limited to 3
This commit is contained in:
19
wp-content/plugins/cookie-notice/js/admin-dashboard.js
Normal file
19
wp-content/plugins/cookie-notice/js/admin-dashboard.js
Normal file
@@ -0,0 +1,19 @@
|
||||
( function( $ ) {
|
||||
|
||||
// ready event
|
||||
$( function() {
|
||||
// get charts
|
||||
var charts = cnDashboardArgs.charts;
|
||||
|
||||
if ( Object.entries( charts ).length > 0 ) {
|
||||
for ( const [key, config] of Object.entries( charts ) ) {
|
||||
// create canvas
|
||||
var canvas = document.getElementById( 'cn-' + key + '-chart' );
|
||||
|
||||
if ( canvas )
|
||||
new Chart( canvas, config );
|
||||
}
|
||||
}
|
||||
} );
|
||||
|
||||
} )( jQuery );
|
||||
Reference in New Issue
Block a user