PluginProbe
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode / 4.7.2
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode v4.7.2
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 / Gcm_Page.php

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

31 lines 1.1 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 Gcm_Page implements Settings_Page_Interface {
11
12 const OPTION_NAME = 'cookiebot-gcm-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 'gcm_enabled_option' => get_option( 'cookiebot-gcm' ),
21 'gcm_url_passthrough_option' => get_option( 'cookiebot-gcm-url-passthrough' ),
22 'auto_disabled' => Cookiebot_WP::get_cookie_blocking_mode() === 'auto' ? ' disabled__item' : '',
23 'is_preferences' => Cookiebot_WP::is_cookie_category_selected( self::OPTION_NAME, 'preferences' ),
24 'is_statistics' => Cookiebot_WP::is_cookie_category_selected( self::OPTION_NAME, 'statistics' ),
25 'is_marketing' => Cookiebot_WP::is_cookie_category_selected( self::OPTION_NAME, 'marketing' ),
26 );
27
28 include_view( Cookiebot_Frame::get_view_path() . 'settings/gcm-page.php', $args );
29 }
30 }
31