PluginProbe
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode / 4.7.4
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode v4.7.4
4.7.4 4.7.5 4.7.3 4.7.2 4.7.1 trunk 2.3.0 2.4.0 2.4.1 2.4.2 2.5.0 3.0.0 3.0.1 3.1.0 3.10.0 3.10.1 3.11.1 3.11.2 3.11.3 3.2.0 3.3.0 3.3.1 3.4.0 3.4.1 3.4.2 All 95 releases
cookiebot / src / addons / controller / addons / enfold / Enfold.php

Enfold.php in Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode 4.7.4, at src/addons/controller/addons/enfold/Enfold.php

34 lines 865 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace cybot\cookiebot\addons\controller\addons\enfold;
4
5 use cybot\cookiebot\addons\controller\addons\Base_Cookiebot_Theme_Addon;
6
7 class Enfold extends Base_Cookiebot_Theme_Addon {
8
9
10 const ADDON_NAME = 'Enfold';
11 const OPTION_NAME = 'enfold';
12 const DEFAULT_PLACEHOLDER_CONTENT = 'Please accept [renew_consent]%cookie_types[/renew_consent] cookies to enable Google Services.';
13 const DEFAULT_COOKIE_TYPES = array( 'marketing', 'statistics' );
14
15 public function load_addon_configuration() {
16 $this->buffer_output->add_tag(
17 'wp_footer',
18 10000,
19 array(
20 'google_analytics_script' => $this->get_cookie_types(),
21 )
22 );
23 }
24
25 /**
26 * @return array
27 */
28 public function get_extra_information() {
29 return array(
30 __( 'Blocks cookies created by Enfold theme\'s Google Services.', 'cookiebot' ),
31 );
32 }
33 }
34