| 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 |
|