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 / settings / pages / Gtm_Page.php

Gtm_Page.php in Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode 4.7.4, at src/settings/pages/Gtm_Page.php

29 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace cybot\cookiebot\settings\pages;
4
5 use cybot\cookiebot\lib\Cookiebot_Frame;
6 use cybot\cookiebot\lib\Cookiebot_WP;
7 use InvalidArgumentException;
8 use function cybot\cookiebot\lib\include_view;
9
10 class Gtm_Page implements Settings_Page_Interface {
11
12 const OPTION_NAME = 'cookiebot-gtm-cookies';
13
14 /**
15 * @throws InvalidArgumentException
16 */
17 public function display() {
18 $args = array(
19 'cookie_categories_disabled' => Cookiebot_WP::get_cookie_categories_status(),
20 'auto_disabled' => Cookiebot_WP::get_cookie_blocking_mode() === 'auto' ? ' disabled__item' : '',
21 'is_preferences' => Cookiebot_WP::is_cookie_category_selected( self::OPTION_NAME, 'preferences' ),
22 'is_statistics' => Cookiebot_WP::is_cookie_category_selected( self::OPTION_NAME, 'statistics' ),
23 'is_marketing' => Cookiebot_WP::is_cookie_category_selected( self::OPTION_NAME, 'marketing' ),
24 );
25
26 include_view( Cookiebot_Frame::get_view_path() . 'settings/gtm-page.php', $args );
27 }
28 }
29