HEX
Server: Apache
System: Linux webd006.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: zwafgyp (177615)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/zwafgyp/coolswim/wp-content/plugins/cookie-notice/includes/modules/divi/divi.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();