- 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
34 lines
608 B
PHP
34 lines
608 B
PHP
<?php
|
|
// exit if accessed directly
|
|
if ( ! defined( 'ABSPATH' ) )
|
|
exit;
|
|
|
|
/**
|
|
* Cookie Notice Modules Divi class.
|
|
*
|
|
* Compatibility since: 2.4.19
|
|
*
|
|
* @class Cookie_Notice_Modules_Divi
|
|
*/
|
|
class Cookie_Notice_Modules_Divi {
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct() {
|
|
add_filter( 'cn_is_preview_mode', [ $this, 'is_preview_mode' ] );
|
|
}
|
|
|
|
/**
|
|
* Whether Divi builder is active.
|
|
*
|
|
* @return bool
|
|
*/
|
|
function is_preview_mode() {
|
|
return is_et_pb_preview() || isset( $_GET[ 'et_fb' ] );
|
|
}
|
|
}
|
|
|
|
new Cookie_Notice_Modules_Divi(); |