PluginProbe ʕ •ᴥ•ʔ
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode / 4.2.6
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode v4.2.6
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 3.5.0 3.6.0 3.6.1 3.6.2 3.6.5 3.6.6 3.7.0 3.7.1 3.8.0 3.9.0 4.0.0 4.0.1 4.0.2 4.0.3 4.1.0 4.1.1 4.2.0 4.2.1 4.2.10 4.2.11 4.2.12 4.2.13 4.2.14 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.2.7 4.2.8 4.2.9 4.3.0 4.3.1 4.3.10 4.3.11 4.3.12 4.3.2 4.3.3 4.3.4 4.3.5 4.3.6 4.3.7 4.3.7.1 4.3.8 4.3.9 4.3.9.1 4.4.0 4.4.1 4.4.2 4.5.0 4.5.1 4.5.10 4.5.11 4.5.2 4.5.3 4.5.4 4.5.5 4.5.6 4.5.7 4.5.8 4.5.9 4.6.0 4.6.1 4.6.2 4.6.3 4.6.4 4.6.5 4.6.6 4.6.7 4.7.0
cookiebot / src / view / admin / settings / settings-page.php
cookiebot / src / view / admin / settings Last commit date
multiple-configuration 3 years ago prior-consent 3 years ago dashboard-page.php 3 years ago debug-page.php 3 years ago gtm-page.php 3 years ago iab-page.php 3 years ago legislations-page.php 3 years ago network-settings-page.php 3 years ago settings-page.php 3 years ago support-page.php 3 years ago
settings-page.php
602 lines
1 <?php
2 use cybot\cookiebot\settings\templates\Header;
3 use cybot\cookiebot\settings\templates\Main_Tabs;
4
5 use cybot\cookiebot\settings\pages\Gtm_Page;
6 use cybot\cookiebot\settings\pages\Iab_Page;
7 use cybot\cookiebot\settings\pages\Multiple_Page;
8
9 /**
10 * @var string $cbid
11 * @var bool $is_ms
12 * @var string $network_cbid
13 * @var string $network_scrip_tag_uc_attr
14 * @var string $network_scrip_tag_cd_attr
15 * @var string $cookiebot_gdpr_url
16 * @var string $cookiebot_logo
17 * @var array $supported_languages
18 * @var string $current_lang
19 * @var bool $is_wp_consent_api_active
20 * @var array $m_default
21 * @var array $m
22 * @var string $cookie_blocking_mode
23 * @var bool $network_auto
24 * @var string $add_language_gif_url
25 */
26
27 $header = new Header();
28 $main_tabs = new Main_Tabs();
29
30 // phpcs:ignore WordPress.Security.NonceVerification.Recommended
31 $active_tab = ! empty( $_GET['tab'] ) ? $_GET['tab'] : false;
32
33 $header->display();
34 ?>
35
36 <div class="cb-body">
37 <div class="cb-wrapper">
38 <?php $main_tabs->display( 'settings' ); ?>
39 <div class="cb-main__content">
40 <form method="post" action="options.php">
41 <?php settings_fields( 'cookiebot' ); ?>
42 <?php do_settings_sections( 'cookiebot' ); ?>
43 <div class="cb-settings__header">
44 <h1 class="cb-main__page_title"><?php esc_html_e( 'Settings', 'cookiebot' ); ?></h1>
45 <?php submit_button(); ?>
46 </div>
47
48 <div class="cb-settings__tabs">
49 <div class="cb-settings__tabs__item <?php echo ! $active_tab || $active_tab === 'general-settings' ? 'active-item' : ''; ?>"
50 data-tab="general-settings">
51 <?php esc_html_e( 'General Settings', 'cookiebot' ); ?>
52 </div>
53 <div class="cb-settings__tabs__item <?php echo $active_tab === 'additional-settings' ? 'active-item' : ''; ?>"
54 data-tab="additional-settings">
55 <?php esc_html_e( 'Additional Settings', 'cookiebot' ); ?>
56 </div>
57 <div class="cb-settings__tabs__item <?php echo $active_tab === 'tag-manager' ? 'active-item' : ''; ?>"
58 data-tab="tag-manager">
59 <?php esc_html_e( 'Google Tag Manager', 'cookiebot' ); ?>
60 </div>
61 <div class="cb-settings__tabs__item <?php echo $active_tab === 'consent-mode' ? 'active-item' : ''; ?>"
62 data-tab="consent-mode">
63 <?php esc_html_e( 'Google Consent Mode', 'cookiebot' ); ?>
64 </div>
65 <div class="cb-settings__tabs__item <?php echo $active_tab === 'iab' ? 'active-item' : ''; ?>"
66 data-tab="iab">
67 <?php esc_html_e( 'IAB', 'cookiebot' ); ?>
68 </div>
69 <div class="cb-settings__tabs__item <?php echo $active_tab === 'multiple-configurations' ? 'active-item' : ''; ?>"
70 data-tab="multiple-configurations">
71 <?php esc_html_e( 'Multiple Configurations', 'cookiebot' ); ?>
72 </div>
73 </div>
74
75 <div class="cb-settings__tabs__content">
76 <div class="cb-settings__tabs__content--item <?php echo ! $active_tab || $active_tab === 'general-settings' ? 'active-item' : ''; ?>"
77 id="general-settings">
78 <?php if ( ! $cbid ) : ?>
79 <div class="cb-general__new__account">
80 <h2 class="cb-general__info__title"><?php esc_html_e( 'Do you not have an account yet?', 'cookiebot' ); ?></h2>
81 <p class="cb-general__info__text">
82 <?php esc_html_e( 'Before you can get started with Cookiebot CMP for WordPress, you need to create an account on our website by clicking on "Create a new account" below. After you have signed up, you can configure your banner in the Cookiebot Manager and then place the Cookiebot Domain Group ID in the designated field below. You can find your ID in the Cookiebot Manager by navigating to "Settings" and "Your Scripts".', 'cookiebot' ); ?>
83 </p>
84 <div class="new-account-actions">
85 <a href="https://manage.cookiebot.com/en/signup/?utm_source=wordpress&utm_medium=organic&utm_campaign=banner"
86 target="_blank" class="cb-btn cb-main-btn" rel="noopener">
87 <?php esc_html_e( 'Create a new Account', 'cookiebot' ); ?>
88 </a>
89 <a href="https://support.cookiebot.com/hc/en-us/articles/360003784174-Installing-Cookiebot-CMP-on-WordPress"
90 target="_blank" class="cb-btn cb-main-btn" rel="noopener">
91 <?php esc_html_e( 'Get help with connecting your account', 'cookiebot' ); ?>
92 </a>
93 </div>
94 </div>
95 <?php endif; ?>
96
97 <div class="cb-settings__config__item">
98 <div class="cb-settings__config__content">
99 <h3 class="cb-settings__config__subtitle">
100 <?php esc_html_e( 'Connect your Domain Group:', 'cookiebot' ); ?>
101 </h3>
102 <p class="cb-general__info__text">
103 <?php esc_html_e( 'To connect your Domain Group, paste your Domain Group ID here. If you want to connect a second ID for other regions, you can do this under the "Multiple Configurations" tab.', 'cookiebot' ); ?>
104 </p>
105 <a href="https://support.cookiebot.com/hc/en-us/articles/4405643234194-Your-CBID-or-Domain-group-ID-and-where-to-find-it"
106 target="_blank" class="cb-btn cb-link-btn" rel="noopener">
107 <?php esc_html_e( 'Read more on the Domain Group ID', 'cookiebot' ); ?>
108 </a>
109 </div>
110 <div class="cb-settings__config__data">
111 <div class="cb-settings__config__data__inner">
112 <h3 class="cb-settings__data__subtitle">
113 <?php esc_html_e( 'Add your Domain Group ID', 'cookiebot' ); ?>
114 </h3>
115 <input <?php echo ( $is_ms ) ? ' placeholder="' . esc_attr( $network_cbid ) . '"' : ''; ?>
116 type="text" name="cookiebot-cbid"
117 value="<?php echo esc_attr( $cbid ); ?>"
118 />
119 </div>
120 </div>
121 </div>
122
123 <div class="cb-settings__config__item">
124 <div class="cb-settings__config__content">
125 <h3 class="cb-settings__config__subtitle">
126 <?php esc_html_e( 'Language:', 'cookiebot' ); ?>
127 </h3>
128 <p class="cb-general__info__text">
129 <?php esc_html_e( 'Select your main language here. Please make sure that the language selected has also been added in the Cookiebot™ Manager.', 'cookiebot' ); ?>
130 </p>
131 <a href="https://support.cookiebot.com/hc/en-us/articles/360003793394-How-to-set-the-language-of-the-consent-banner-"
132 target="_blank" class="cb-btn cb-link-btn" rel="noopener">
133 <?php esc_html_e( 'Read more on how to add languages', 'cookiebot' ); ?>
134 </a>
135 </div>
136 <div class="cb-settings__config__data">
137 <div class="cb-settings__config__data__inner">
138 <h3 class="cb-settings__data__subtitle">
139 <?php esc_html_e( 'Select the language', 'cookiebot' ); ?>
140 </h3>
141 <select name="cookiebot-language" id="cookiebot-language">
142 <option value="">
143 <?php esc_html_e( 'Default (Autodetect)', 'cookiebot' ); ?>
144 </option>
145 <option value="_wp"<?php echo ( $current_lang === '_wp' ) ? ' selected' : ''; ?>>
146 <?php
147 esc_html_e(
148 'Use WordPress Language',
149 'cookiebot'
150 );
151 ?>
152 </option>
153 <?php
154 foreach ( $supported_languages as $lang_code => $lang_name ) {
155 echo '<option value="' . esc_attr( $lang_code ) . '"' .
156 ( ( $current_lang === esc_attr( $lang_code ) ) ? ' selected' : '' ) .
157 '>' . esc_html( $lang_name ) . '</option>';
158 }
159 ?>
160 </select>
161 </div>
162 </div>
163 </div>
164
165 <div class="cb-settings__config__item">
166 <div class="cb-settings__config__content">
167 <h3 class="cb-settings__config__subtitle">
168 <?php esc_html_e( 'Cookie-blocking mode', 'cookiebot' ); ?>
169 </h3>
170 <p class="cb-general__info__text">
171 <?php esc_html_e( 'Select your cookie-blocking mode here. Auto cookie-blocking mode will automatically block all cookies (except for ‘strictly necessary’ cookies) until a user has given consent. Manual cookie-blocking mode requests manual adjustments to the cookie-setting scripts. Please find our implementation guides below:', 'cookiebot' ); ?>
172 </p>
173 <a href="https://support.cookiebot.com/hc/en-us/articles/360009074960-Automatic-cookie-blocking"
174 target="_blank" class="cb-btn cb-link-btn" rel="noopener">
175 <?php esc_html_e( 'Guide to auto cookie-blocking', 'cookiebot' ); ?>
176 </a>
177 <a href="https://support.cookiebot.com/hc/en-us/articles/4405978132242-Manual-cookie-blocking"
178 target="_blank" class="cb-btn cb-link-btn" rel="noopener">
179 <?php esc_html_e( 'Guide to manual cookie-blocking', 'cookiebot' ); ?>
180 </a>
181 </div>
182 <div class="cb-settings__config__data">
183 <div class="cb-settings__config__data__inner">
184 <h3 class="cb-settings__data__subtitle">
185 <?php esc_html_e( 'Select the cookie-blocking mode', 'cookiebot' ); ?>
186 </h3>
187 <label class="recommended-item">
188 <input <?php checked( 'auto', $cookie_blocking_mode ); ?>
189 type="radio"
190 name="cookiebot-cookie-blocking-mode"
191 value="auto"
192 <?php echo $is_ms && $network_auto ? ' disabled' : ''; ?>/>
193 <?php esc_html_e( 'Automatic cookie-blocking mode', 'cookiebot' ); ?>
194 </label>
195 <label>
196 <input <?php checked( 'manual', $cookie_blocking_mode ); ?>
197 type="radio"
198 name="cookiebot-cookie-blocking-mode"
199 value="manual"
200 <?php echo $is_ms && $network_auto ? ' disabled' : ''; ?>/>
201 <?php esc_html_e( 'Manual cookie-blocking mode', 'cookiebot' ); ?>
202 </label>
203 <?php if ( $is_ms && $network_auto ) { ?>
204 <p class="cb-general__info__note"><?php esc_html_e( 'Disabled by active setting in Network Settings', 'cookiebot' ); ?></p>
205 <?php } ?>
206 </div>
207 </div>
208 </div>
209
210 <?php
211 $cv = get_option( 'cookiebot-script-tag-uc-attribute', 'async' );
212 $disabled = false;
213 if ( $is_ms && $network_scrip_tag_uc_attr !== 'custom' ) {
214 $disabled = true;
215 $cv = $network_scrip_tag_uc_attr;
216 }
217 ?>
218
219 <div class="cb-settings__config__item secondary__item" id="declaration-tag">
220 <div class="cb-settings__config__content">
221 <h3 class="cb-settings__config__subtitle">
222 <?php esc_html_e( 'Cookiebot™ script tag', 'cookiebot' ); ?>
223 </h3>
224 <p class="cb-general__info__note">
225 <?php esc_html_e( 'Depending on cookie-blocking mode', 'cookiebot' ); ?>
226 </p>
227 <p class="cb-general__info__text">
228 <?php esc_html_e( 'Add async or defer attribute to cookie declaration script tag', 'cookiebot' ); ?>
229 </p>
230 </div>
231 <div class="cb-settings__config__data">
232 <div class="cb-settings__config__data__inner">
233 <label>
234 <input
235 type="radio"
236 name="cookiebot-script-tag-uc-attribute"<?php echo ( $disabled ) ? ' disabled' : ''; ?>
237 value="" <?php checked( '', $cv ); ?> />
238 <?php esc_html_e( 'None', 'cookiebot' ); ?>
239 </label>
240 <label>
241 <input
242 type="radio"
243 name="cookiebot-script-tag-uc-attribute"<?php echo ( $disabled ) ? ' disabled' : ''; ?>
244 value="async" <?php checked( 'async', $cv ); ?> />
245 async
246 </label>
247 <label>
248 <input
249 type="radio"
250 name="cookiebot-script-tag-uc-attribute"<?php echo ( $disabled ) ? ' disabled' : ''; ?>
251 value="defer" <?php checked( 'defer', $cv ); ?> />
252 defer
253 </label>
254 <?php if ( $is_ms && $network_auto || $is_ms && $network_scrip_tag_uc_attr !== 'custom' ) { ?>
255 <p class="cb-general__info__note"><?php esc_html_e( 'Disabled by active setting in Network Settings', 'cookiebot' ); ?></p>
256 <?php } ?>
257 </div>
258 </div>
259 </div>
260
261 <div class="cb-settings__config__item secondary__item" id="cookie-popup">
262 <div class="cb-settings__config__content">
263 <h3 class="cb-settings__config__subtitle">
264 <?php esc_html_e( 'Hide cookie popup', 'cookiebot' ); ?>
265 </h3>
266 <p class="cb-general__info__note">
267 <?php esc_html_e( 'Depending on cookie-blocking mode', 'cookiebot' ); ?>
268 </p>
269 <p class="cb-general__info__text">
270 <?php esc_html_e( 'This checkbox will remove the cookie consent banner from your website. The declaration shortcode will still be available. If you are using Google Tag Manager (or equal), you need to add the Cookiebot script in your Tag Manager.', 'cookiebot' ); ?>
271 </p>
272 </div>
273 <div class="cb-settings__config__data">
274 <div class="cb-settings__config__data__inner">
275 <label>
276 <?php
277 $disabled = false;
278 if ( $is_ms && get_site_option( 'cookiebot-nooutput' ) || $is_ms && $network_auto ) {
279 $disabled = true;
280 if ( ! $network_auto ) {
281 echo '<input type="checkbox" checked disabled />';
282 } else {
283 echo '<input type="checkbox" disabled />';
284 }
285 } else {
286 ?>
287 <input type="checkbox" name="cookiebot-nooutput" value="1"
288 <?php
289 checked(
290 1,
291 get_option( 'cookiebot-nooutput', false )
292 );
293 ?>
294 />
295 <?php } ?>
296 <?php esc_html_e( 'Hide the cookie popup banner', 'cookiebot' ); ?>
297 </label>
298 <?php if ( $is_ms && get_site_option( 'cookiebot-nooutput' ) || $is_ms && $network_auto ) { ?>
299 <p class="cb-general__info__note"><?php esc_html_e( 'Disabled by active setting in Network Settings', 'cookiebot' ); ?></p>
300 <?php } ?>
301 </div>
302 </div>
303 </div>
304
305 </div>
306
307 <div class="cb-settings__tabs__content--item <?php echo $active_tab === 'additional-settings' ? 'active-item' : ''; ?>"
308 id="additional-settings">
309 <div class="cb-settings__config__item">
310 <div class="cb-settings__config__content">
311 <h3 class="cb-settings__config__subtitle">
312 <?php esc_html_e( 'Auto-update Cookiebot™ Plugin:', 'cookiebot' ); ?>
313 </h3>
314 <p class="cb-general__info__text">
315 <?php esc_html_e( 'Automatically update your Cookiebot™ plugin when new releases becomes available.', 'cookiebot' ); ?>
316 </p>
317 </div>
318 <div class="cb-settings__config__data">
319 <div class="cb-settings__config__data__inner">
320 <label class="switch-checkbox" for="cookiebot-autoupdate">
321 <input id="cookiebot-autoupdate" type="checkbox" name="cookiebot-autoupdate" value="1"
322 <?php
323 checked(
324 1,
325 get_option( 'cookiebot-autoupdate', false )
326 );
327 ?>
328 />
329 <div class="switcher"></div>
330 <?php esc_html_e( 'Automatically update Cookiebot Plugin', 'cookiebot' ); ?>
331 </label>
332 </div>
333 </div>
334 </div>
335
336 <div class="cb-settings__config__item">
337 <div class="cb-settings__config__content">
338 <h3 class="cb-settings__config__subtitle">
339 <?php esc_html_e( 'Cookiebot CMP in WP Admin:', 'cookiebot' ); ?>
340 </h3>
341 <p class="cb-general__info__text">
342 <?php esc_html_e( 'This checkbox will disable Cookiebot CMP to act within the WordPress Admin area', 'cookiebot' ); ?>
343 </p>
344 </div>
345 <div class="cb-settings__config__data">
346 <div class="cb-settings__config__data__inner">
347 <label class="switch-checkbox" for="cookiebot-nooutput-admin">
348 <?php
349 $disabled = false;
350 if ( $is_ms && get_site_option( 'cookiebot-nooutput-admin' ) ) {
351 echo '<input type="checkbox" checked disabled />';
352 $disabled = true;
353 } else {
354 ?>
355 <input id="cookiebot-nooutput-admin" type="checkbox"
356 name="cookiebot-nooutput-admin" value="1"
357 <?php
358 checked(
359 1,
360 get_option( 'cookiebot-nooutput-admin', false )
361 );
362 ?>
363 />
364 <?php
365 }
366 ?>
367 <div class="switcher"></div>
368 <?php esc_html_e( 'Disable Cookiebot CMP in the WordPress Admin area', 'cookiebot' ); ?>
369 </label>
370 <?php
371 if ( $is_ms && get_site_option( 'cookiebot-nooutput-admin' ) ) {
372 ?>
373 <p class="cb-general__info__note"><?php esc_html_e( 'Disabled by active setting in Network Settings', 'cookiebot' ); ?></p>
374 <?php } ?>
375 </div>
376 </div>
377 </div>
378
379 <div class="cb-settings__config__item">
380 <div class="cb-settings__config__content">
381 <h3 class="cb-settings__config__subtitle">
382 <?php esc_html_e( 'Cookiebot CMP on front-end while logged in:', 'cookiebot' ); ?>
383 </h3>
384 <p class="cb-general__info__text">
385 <?php esc_html_e( 'This setting will enable Cookiebot CMP on the front-end while you\'re logged in.', 'cookiebot' ); ?>
386 </p>
387 </div>
388 <div class="cb-settings__config__data">
389 <div class="cb-settings__config__data__inner">
390 <label class="switch-checkbox" for="cookiebot-output-logged-in">
391 <?php
392 $disabled = false;
393 if ( $is_ms && get_site_option( 'cookiebot-output-logged-in' ) ) {
394 echo '<input type="checkbox" checked disabled />';
395 $disabled = true;
396 } else {
397 ?>
398 <input id="cookiebot-output-logged-in" type="checkbox"
399 name="cookiebot-output-logged-in" value="1"
400 <?php
401 checked(
402 1,
403 get_option( 'cookiebot-output-logged-in', false )
404 );
405 ?>
406 />
407 <?php
408 }
409 ?>
410 <div class="switcher"></div>
411 <?php esc_html_e( 'Render Cookiebot CMP on front-end while logged in', 'cookiebot' ); ?>
412 </label>
413 </div>
414 </div>
415 </div>
416
417 <div class="cb-settings__config__item">
418 <div class="cb-settings__config__content">
419 <h3 class="cb-settings__config__subtitle">
420 <?php esc_html_e( 'Cookie declaration script tag:', 'cookiebot' ); ?>
421 </h3>
422 <p class="cb-general__info__text">
423 <?php esc_html_e( 'If you implemented the declaration on your page through our widget in WordPress, you can choose here how the script should be loaded.', 'cookiebot' ); ?>
424 </p>
425 </div>
426 <div class="cb-settings__config__data">
427 <div class="cb-settings__config__data__inner">
428 <h3 class="cb-settings__data__subtitle">
429 <?php esc_html_e( 'Select the cookie declaration script loading setting', 'cookiebot' ); ?>
430 </h3>
431 <?php
432 $cv = get_option( 'cookiebot-script-tag-cd-attribute', 'async' );
433 $disabled = false;
434 if ( $is_ms && $network_scrip_tag_cd_attr !== 'custom' ) {
435 $disabled = true;
436 $cv = $network_scrip_tag_cd_attr;
437 }
438 ?>
439 <label>
440 <input
441 type="radio"
442 name="cookiebot-script-tag-cd-attribute"<?php echo ( $disabled ) ? ' disabled' : ''; ?>
443 value="" <?php checked( '', $cv ); ?>/>
444 <?php esc_html_e( 'None', 'cookiebot' ); ?>
445 </label>
446 <label>
447 <input
448 type="radio"
449 name="cookiebot-script-tag-cd-attribute"<?php echo ( $disabled ) ? ' disabled' : ''; ?>
450 value="async" <?php checked( 'async', $cv ); ?>/>
451 async
452 </label>
453 <label>
454 <input
455 type="radio"
456 name="cookiebot-script-tag-cd-attribute"<?php echo ( $disabled ) ? ' disabled' : ''; ?>
457 value="defer" <?php checked( 'defer', $cv ); ?>/>
458 defer
459 </label>
460 <?php if ( $disabled ) { ?>
461 <p class="cb-general__info__note"><?php esc_html_e( 'Disabled by active setting in Network Settings', 'cookiebot' ); ?></p>
462 <?php } ?>
463 </div>
464 </div>
465 </div>
466
467 <div class="cb-settings__config__item">
468 <div class="cb-settings__config__content">
469 <h3 class="cb-settings__config__subtitle">
470 <?php esc_html_e( 'Ignore scripts in queue from Cookiebot CMP scan:', 'cookiebot' ); ?>
471 </h3>
472 <p class="cb-general__info__text">
473 <?php esc_html_e( 'List scripts source URL (one per line) from the queue to ignore Cookiebot CMP scan. Partial source URL will also work, e.g. wp-content/plugins/woocommerce will block every WooCommerce script.', 'cookiebot' ); ?>
474 </p>
475 <p class="cb-general__info__text">
476 <?php esc_html_e( 'This feature only works for scripts loaded via wp_enqueue_script. Manually added scripts must be manually edited.', 'cookiebot' ); ?>
477 </p>
478 </div>
479 <div class="cb-settings__config__data">
480 <div class="cb-settings__config__data__inner">
481 <h3 class="cb-settings__data__subtitle">
482 <?php esc_html_e( 'Script source URL:', 'cookiebot' ); ?>
483 </h3>
484 <textarea
485 name="cookiebot-ignore-scripts"
486 rows="4"
487 cols="50"
488 placeholder="<?php esc_attr_e( 'Add script source URL, one per line', 'cookiebot' ); ?>"
489 ><?php echo esc_html( get_option( 'cookiebot-ignore-scripts', false ) ); ?></textarea>
490 </div>
491 </div>
492 </div>
493
494 </div>
495
496 <div class="cb-settings__tabs__content--item <?php echo $active_tab === 'tag-manager' ? 'active-item' : ''; ?>"
497 id="tag-manager">
498 <?php $gtm_settings = new Gtm_Page(); ?>
499 <?php $gtm_settings->display(); ?>
500 </div>
501
502 <div class="cb-settings__tabs__content--item <?php echo $active_tab === 'consent-mode' ? 'active-item' : ''; ?>"
503 id="consent-mode">
504 <div class="cb-general__consent__mode">
505 <h2 class="cb-general__info__title">
506 <?php esc_html_e( 'What is Google Consent Mode and why should you enable it?', 'cookiebot' ); ?>
507 </h2>
508 <p class="cb-general__info__text">
509 <?php esc_html_e( 'Google Consent Mode is a way for your website to measure conversions and get analytics insights while being fully GDPR-compliant when using services like Google Analytics, Google Tag Manager (GTM) and Google Ads.', 'cookiebot' ); ?>
510 </p>
511 <p class="cb-general__info__text">
512 <?php esc_html_e( 'Cookiebot consent managment platform (CMP) and Google Consent Mode integrate seamlessly to offer you plug-and-play compliance and streamlined use of all Google\'s services in one easy solution.', 'cookiebot' ); ?>
513 </p>
514 <a class="cb-btn cb-link-btn" target="_blank" rel="noopener"
515 href="https://support.cookiebot.com/hc/en-us/articles/360016047000-Cookiebot-and-Google-Consent-Mode">
516 <?php esc_html_e( 'Read more about Cookiebot CMP and Google Consent Mode', 'cookiebot' ); ?>
517 </a>
518 </div>
519
520 <?php $gcm_enabled_option = get_option( 'cookiebot-gcm' ); ?>
521
522 <div class="cb-settings__config__item">
523 <div class="cb-settings__config__content">
524 <h3 class="cb-settings__config__subtitle">
525 <?php esc_html_e( 'Google Consent Mode:', 'cookiebot' ); ?>
526 </h3>
527 <p class="cb-general__info__text">
528 <?php esc_html_e( 'Enable Google Consent Mode with default settings on your WordPress page.', 'cookiebot' ); ?>
529 </p>
530 <a class="cb-btn cb-link-btn" target="_blank" rel="noopener"
531 href="https://support.cookiebot.com/hc/en-us/articles/360016047000-Cookiebot-and-Google-Consent-Mode">
532 <?php esc_html_e( 'Read more', 'cookiebot' ); ?>
533 </a>
534 </div>
535 <div class="cb-settings__config__data">
536 <div class="cb-settings__config__data__inner">
537 <label class="switch-checkbox" for="gcm">
538 <input
539 type="checkbox"
540 name="cookiebot-gcm"
541 id="gcm"
542 value="1" <?php checked( 1, $gcm_enabled_option ); ?>>
543 <div class="switcher"></div>
544 <?php esc_html_e( 'Google Consent Mode', 'cookiebot' ); ?>
545 <?php echo ( $gcm_enabled_option === '1' ) ? 'enabled' : 'disabled'; ?>
546 </label>
547 <input type="hidden" name="cookiebot-gcm-first-run" value="1">
548 </div>
549 </div>
550 </div>
551
552 <?php $gcm_url_passthrough_option = get_option( 'cookiebot-gcm-url-passthrough', 1 ); ?>
553
554 <div class="cb-settings__config__item"<?php echo ( (string) $gcm_enabled_option === '1' ) ? '' : ' style="display: none"'; ?>>
555 <div class="cb-settings__config__content">
556 <h3 class="cb-settings__config__subtitle">
557 <?php esc_html_e( 'URL passthrough:', 'cookiebot' ); ?>
558 </h3>
559 <p class="cb-general__info__text">
560 <?php esc_html_e( 'This feature will allow you to pass data between pages when not able to use cookies without/prior consent.', 'cookiebot' ); ?>
561 </p>
562 <a class="cb-btn cb-link-btn" target="_blank" rel="noopener"
563 href="https://developers.google.com/tag-platform/devguides/consent#passing_ad_click_client_id_and_session_id_information_in_urls">
564 <?php esc_html_e( 'Read more', 'cookiebot' ); ?>
565 </a>
566 </div>
567 <div class="cb-settings__config__data">
568 <div class="cb-settings__config__data__inner">
569 <label class="switch-checkbox" for="gcm-url-pasthrough">
570 <input
571 type="checkbox"
572 name="cookiebot-gcm-url-passthrough"
573 id="gcm-url-pasthrough"
574 value="1" <?php checked( 1, $gcm_url_passthrough_option ); ?>>
575 <div class="switcher"></div>
576 <?php esc_html_e( 'URL passthrough', 'cookiebot' ); ?>
577 <?php echo ( $gcm_url_passthrough_option === '1' ) ? 'enabled' : 'disabled'; ?>
578 </label>
579 </div>
580 </div>
581 </div>
582
583 </div>
584
585 <div class="cb-settings__tabs__content--item <?php echo $active_tab === 'iab' ? 'active-item' : ''; ?>"
586 id="iab">
587 <?php $iab_settings = new Iab_Page(); ?>
588 <?php $iab_settings->display(); ?>
589 </div>
590
591 <div class="cb-settings__tabs__content--item <?php echo $active_tab === 'multiple-configurations' ? 'active-item' : ''; ?>"
592 id="multiple-configurations">
593 <?php $multiple_settings = new Multiple_Page(); ?>
594 <?php $multiple_settings->display(); ?>
595 </div>
596
597 </div>
598 </form>
599 </div>
600 </div>
601 </div>
602