PluginProbe ʕ •ᴥ•ʔ
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode / 4.2.10
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode v4.2.10
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
603 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=referral&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 <span class="recommended-tag"><?php esc_html_e( 'Recommended', 'cookiebot' ); ?></span>
195 </label>
196 <label>
197 <input <?php checked( 'manual', $cookie_blocking_mode ); ?>
198 type="radio"
199 name="cookiebot-cookie-blocking-mode"
200 value="manual"
201 <?php echo $is_ms && $network_auto ? ' disabled' : ''; ?>/>
202 <?php esc_html_e( 'Manual cookie-blocking mode', 'cookiebot' ); ?>
203 </label>
204 <?php if ( $is_ms && $network_auto ) { ?>
205 <p class="cb-general__info__note"><?php esc_html_e( 'Disabled by active setting in Network Settings', 'cookiebot' ); ?></p>
206 <?php } ?>
207 </div>
208 </div>
209 </div>
210
211 <?php
212 $cv = get_option( 'cookiebot-script-tag-uc-attribute', 'async' );
213 $disabled = false;
214 if ( $is_ms && $network_scrip_tag_uc_attr !== 'custom' ) {
215 $disabled = true;
216 $cv = $network_scrip_tag_uc_attr;
217 }
218 ?>
219
220 <div class="cb-settings__config__item secondary__item" id="declaration-tag">
221 <div class="cb-settings__config__content">
222 <h3 class="cb-settings__config__subtitle">
223 <?php esc_html_e( 'Cookiebot™ script tag', 'cookiebot' ); ?>
224 </h3>
225 <p class="cb-general__info__note">
226 <?php esc_html_e( 'Depending on cookie-blocking mode', 'cookiebot' ); ?>
227 </p>
228 <p class="cb-general__info__text">
229 <?php esc_html_e( 'Add async or defer attribute to cookie declaration script tag', 'cookiebot' ); ?>
230 </p>
231 </div>
232 <div class="cb-settings__config__data">
233 <div class="cb-settings__config__data__inner">
234 <label>
235 <input
236 type="radio"
237 name="cookiebot-script-tag-uc-attribute"<?php echo ( $disabled ) ? ' disabled' : ''; ?>
238 value="" <?php checked( '', $cv ); ?> />
239 <?php esc_html_e( 'None', 'cookiebot' ); ?>
240 </label>
241 <label>
242 <input
243 type="radio"
244 name="cookiebot-script-tag-uc-attribute"<?php echo ( $disabled ) ? ' disabled' : ''; ?>
245 value="async" <?php checked( 'async', $cv ); ?> />
246 async
247 </label>
248 <label>
249 <input
250 type="radio"
251 name="cookiebot-script-tag-uc-attribute"<?php echo ( $disabled ) ? ' disabled' : ''; ?>
252 value="defer" <?php checked( 'defer', $cv ); ?> />
253 defer
254 </label>
255 <?php if ( $is_ms && $network_auto || $is_ms && $network_scrip_tag_uc_attr !== 'custom' ) { ?>
256 <p class="cb-general__info__note"><?php esc_html_e( 'Disabled by active setting in Network Settings', 'cookiebot' ); ?></p>
257 <?php } ?>
258 </div>
259 </div>
260 </div>
261
262 <div class="cb-settings__config__item secondary__item" id="cookie-popup">
263 <div class="cb-settings__config__content">
264 <h3 class="cb-settings__config__subtitle">
265 <?php esc_html_e( 'Hide cookie popup', 'cookiebot' ); ?>
266 </h3>
267 <p class="cb-general__info__note">
268 <?php esc_html_e( 'Depending on cookie-blocking mode', 'cookiebot' ); ?>
269 </p>
270 <p class="cb-general__info__text">
271 <?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' ); ?>
272 </p>
273 </div>
274 <div class="cb-settings__config__data">
275 <div class="cb-settings__config__data__inner">
276 <label>
277 <?php
278 $disabled = false;
279 if ( $is_ms && get_site_option( 'cookiebot-nooutput' ) || $is_ms && $network_auto ) {
280 $disabled = true;
281 if ( ! $network_auto ) {
282 echo '<input type="checkbox" checked disabled />';
283 } else {
284 echo '<input type="checkbox" disabled />';
285 }
286 } else {
287 ?>
288 <input type="checkbox" name="cookiebot-nooutput" value="1"
289 <?php
290 checked(
291 1,
292 get_option( 'cookiebot-nooutput', false )
293 );
294 ?>
295 />
296 <?php } ?>
297 <?php esc_html_e( 'Hide the cookie popup banner', 'cookiebot' ); ?>
298 </label>
299 <?php if ( $is_ms && get_site_option( 'cookiebot-nooutput' ) || $is_ms && $network_auto ) { ?>
300 <p class="cb-general__info__note"><?php esc_html_e( 'Disabled by active setting in Network Settings', 'cookiebot' ); ?></p>
301 <?php } ?>
302 </div>
303 </div>
304 </div>
305
306 </div>
307
308 <div class="cb-settings__tabs__content--item <?php echo $active_tab === 'additional-settings' ? 'active-item' : ''; ?>"
309 id="additional-settings">
310 <div class="cb-settings__config__item">
311 <div class="cb-settings__config__content">
312 <h3 class="cb-settings__config__subtitle">
313 <?php esc_html_e( 'Auto-update Cookiebot™ Plugin:', 'cookiebot' ); ?>
314 </h3>
315 <p class="cb-general__info__text">
316 <?php esc_html_e( 'Automatically update your Cookiebot™ plugin when new releases becomes available.', 'cookiebot' ); ?>
317 </p>
318 </div>
319 <div class="cb-settings__config__data">
320 <div class="cb-settings__config__data__inner">
321 <label class="switch-checkbox" for="cookiebot-autoupdate">
322 <input id="cookiebot-autoupdate" type="checkbox" name="cookiebot-autoupdate" value="1"
323 <?php
324 checked(
325 1,
326 get_option( 'cookiebot-autoupdate', false )
327 );
328 ?>
329 />
330 <div class="switcher"></div>
331 <?php esc_html_e( 'Automatically update Cookiebot Plugin', 'cookiebot' ); ?>
332 </label>
333 </div>
334 </div>
335 </div>
336
337 <div class="cb-settings__config__item">
338 <div class="cb-settings__config__content">
339 <h3 class="cb-settings__config__subtitle">
340 <?php esc_html_e( 'Cookiebot CMP in WP Admin:', 'cookiebot' ); ?>
341 </h3>
342 <p class="cb-general__info__text">
343 <?php esc_html_e( 'This checkbox will disable Cookiebot CMP to act within the WordPress Admin area', 'cookiebot' ); ?>
344 </p>
345 </div>
346 <div class="cb-settings__config__data">
347 <div class="cb-settings__config__data__inner">
348 <label class="switch-checkbox" for="cookiebot-nooutput-admin">
349 <?php
350 $disabled = false;
351 if ( $is_ms && get_site_option( 'cookiebot-nooutput-admin' ) ) {
352 echo '<input type="checkbox" checked disabled />';
353 $disabled = true;
354 } else {
355 ?>
356 <input id="cookiebot-nooutput-admin" type="checkbox"
357 name="cookiebot-nooutput-admin" value="1"
358 <?php
359 checked(
360 1,
361 get_option( 'cookiebot-nooutput-admin', false )
362 );
363 ?>
364 />
365 <?php
366 }
367 ?>
368 <div class="switcher"></div>
369 <?php esc_html_e( 'Disable Cookiebot CMP in the WordPress Admin area', 'cookiebot' ); ?>
370 </label>
371 <?php
372 if ( $is_ms && get_site_option( 'cookiebot-nooutput-admin' ) ) {
373 ?>
374 <p class="cb-general__info__note"><?php esc_html_e( 'Disabled by active setting in Network Settings', 'cookiebot' ); ?></p>
375 <?php } ?>
376 </div>
377 </div>
378 </div>
379
380 <div class="cb-settings__config__item">
381 <div class="cb-settings__config__content">
382 <h3 class="cb-settings__config__subtitle">
383 <?php esc_html_e( 'Cookiebot CMP on front-end while logged in:', 'cookiebot' ); ?>
384 </h3>
385 <p class="cb-general__info__text">
386 <?php esc_html_e( 'This setting will enable Cookiebot CMP on the front-end while you\'re logged in.', 'cookiebot' ); ?>
387 </p>
388 </div>
389 <div class="cb-settings__config__data">
390 <div class="cb-settings__config__data__inner">
391 <label class="switch-checkbox" for="cookiebot-output-logged-in">
392 <?php
393 $disabled = false;
394 if ( $is_ms && get_site_option( 'cookiebot-output-logged-in' ) ) {
395 echo '<input type="checkbox" checked disabled />';
396 $disabled = true;
397 } else {
398 ?>
399 <input id="cookiebot-output-logged-in" type="checkbox"
400 name="cookiebot-output-logged-in" value="1"
401 <?php
402 checked(
403 1,
404 get_option( 'cookiebot-output-logged-in', false )
405 );
406 ?>
407 />
408 <?php
409 }
410 ?>
411 <div class="switcher"></div>
412 <?php esc_html_e( 'Render Cookiebot CMP on front-end while logged in', 'cookiebot' ); ?>
413 </label>
414 </div>
415 </div>
416 </div>
417
418 <div class="cb-settings__config__item">
419 <div class="cb-settings__config__content">
420 <h3 class="cb-settings__config__subtitle">
421 <?php esc_html_e( 'Cookie declaration script tag:', 'cookiebot' ); ?>
422 </h3>
423 <p class="cb-general__info__text">
424 <?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' ); ?>
425 </p>
426 </div>
427 <div class="cb-settings__config__data">
428 <div class="cb-settings__config__data__inner">
429 <h3 class="cb-settings__data__subtitle">
430 <?php esc_html_e( 'Select the cookie declaration script loading setting', 'cookiebot' ); ?>
431 </h3>
432 <?php
433 $cv = get_option( 'cookiebot-script-tag-cd-attribute', 'async' );
434 $disabled = false;
435 if ( $is_ms && $network_scrip_tag_cd_attr !== 'custom' ) {
436 $disabled = true;
437 $cv = $network_scrip_tag_cd_attr;
438 }
439 ?>
440 <label>
441 <input
442 type="radio"
443 name="cookiebot-script-tag-cd-attribute"<?php echo ( $disabled ) ? ' disabled' : ''; ?>
444 value="" <?php checked( '', $cv ); ?>/>
445 <?php esc_html_e( 'None', 'cookiebot' ); ?>
446 </label>
447 <label>
448 <input
449 type="radio"
450 name="cookiebot-script-tag-cd-attribute"<?php echo ( $disabled ) ? ' disabled' : ''; ?>
451 value="async" <?php checked( 'async', $cv ); ?>/>
452 async
453 </label>
454 <label>
455 <input
456 type="radio"
457 name="cookiebot-script-tag-cd-attribute"<?php echo ( $disabled ) ? ' disabled' : ''; ?>
458 value="defer" <?php checked( 'defer', $cv ); ?>/>
459 defer
460 </label>
461 <?php if ( $disabled ) { ?>
462 <p class="cb-general__info__note"><?php esc_html_e( 'Disabled by active setting in Network Settings', 'cookiebot' ); ?></p>
463 <?php } ?>
464 </div>
465 </div>
466 </div>
467
468 <div class="cb-settings__config__item">
469 <div class="cb-settings__config__content">
470 <h3 class="cb-settings__config__subtitle">
471 <?php esc_html_e( 'Ignore scripts in queue from Cookiebot CMP scan:', 'cookiebot' ); ?>
472 </h3>
473 <p class="cb-general__info__text">
474 <?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' ); ?>
475 </p>
476 <p class="cb-general__info__text">
477 <?php esc_html_e( 'This feature only works for scripts loaded via wp_enqueue_script. Manually added scripts must be manually edited.', 'cookiebot' ); ?>
478 </p>
479 </div>
480 <div class="cb-settings__config__data">
481 <div class="cb-settings__config__data__inner">
482 <h3 class="cb-settings__data__subtitle">
483 <?php esc_html_e( 'Script source URL:', 'cookiebot' ); ?>
484 </h3>
485 <textarea
486 name="cookiebot-ignore-scripts"
487 rows="4"
488 cols="50"
489 placeholder="<?php esc_attr_e( 'Add script source URL, one per line', 'cookiebot' ); ?>"
490 ><?php echo esc_html( get_option( 'cookiebot-ignore-scripts', false ) ); ?></textarea>
491 </div>
492 </div>
493 </div>
494
495 </div>
496
497 <div class="cb-settings__tabs__content--item <?php echo $active_tab === 'tag-manager' ? 'active-item' : ''; ?>"
498 id="tag-manager">
499 <?php $gtm_settings = new Gtm_Page(); ?>
500 <?php $gtm_settings->display(); ?>
501 </div>
502
503 <div class="cb-settings__tabs__content--item <?php echo $active_tab === 'consent-mode' ? 'active-item' : ''; ?>"
504 id="consent-mode">
505 <div class="cb-general__consent__mode">
506 <h2 class="cb-general__info__title">
507 <?php esc_html_e( 'What is Google Consent Mode and why should you enable it?', 'cookiebot' ); ?>
508 </h2>
509 <p class="cb-general__info__text">
510 <?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' ); ?>
511 </p>
512 <p class="cb-general__info__text">
513 <?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' ); ?>
514 </p>
515 <a class="cb-btn cb-link-btn" target="_blank" rel="noopener"
516 href="https://support.cookiebot.com/hc/en-us/articles/360016047000-Cookiebot-and-Google-Consent-Mode">
517 <?php esc_html_e( 'Read more about Cookiebot CMP and Google Consent Mode', 'cookiebot' ); ?>
518 </a>
519 </div>
520
521 <?php $gcm_enabled_option = get_option( 'cookiebot-gcm' ); ?>
522
523 <div class="cb-settings__config__item">
524 <div class="cb-settings__config__content">
525 <h3 class="cb-settings__config__subtitle">
526 <?php esc_html_e( 'Google Consent Mode:', 'cookiebot' ); ?>
527 </h3>
528 <p class="cb-general__info__text">
529 <?php esc_html_e( 'Enable Google Consent Mode with default settings on your WordPress page.', 'cookiebot' ); ?>
530 </p>
531 <a class="cb-btn cb-link-btn" target="_blank" rel="noopener"
532 href="https://support.cookiebot.com/hc/en-us/articles/360016047000-Cookiebot-and-Google-Consent-Mode">
533 <?php esc_html_e( 'Read more', 'cookiebot' ); ?>
534 </a>
535 </div>
536 <div class="cb-settings__config__data">
537 <div class="cb-settings__config__data__inner">
538 <label class="switch-checkbox" for="gcm">
539 <input
540 type="checkbox"
541 name="cookiebot-gcm"
542 id="gcm"
543 value="1" <?php checked( 1, $gcm_enabled_option ); ?>>
544 <div class="switcher"></div>
545 <?php esc_html_e( 'Google Consent Mode', 'cookiebot' ); ?>
546 <?php echo ( $gcm_enabled_option === '1' ) ? 'enabled' : 'disabled'; ?>
547 </label>
548 <input type="hidden" name="cookiebot-gcm-first-run" value="1">
549 </div>
550 </div>
551 </div>
552
553 <?php $gcm_url_passthrough_option = get_option( 'cookiebot-gcm-url-passthrough', 1 ); ?>
554
555 <div class="cb-settings__config__item"<?php echo ( (string) $gcm_enabled_option === '1' ) ? '' : ' style="display: none"'; ?>>
556 <div class="cb-settings__config__content">
557 <h3 class="cb-settings__config__subtitle">
558 <?php esc_html_e( 'URL passthrough:', 'cookiebot' ); ?>
559 </h3>
560 <p class="cb-general__info__text">
561 <?php esc_html_e( 'This feature will allow you to pass data between pages when not able to use cookies without/prior consent.', 'cookiebot' ); ?>
562 </p>
563 <a class="cb-btn cb-link-btn" target="_blank" rel="noopener"
564 href="https://developers.google.com/tag-platform/devguides/consent#passing_ad_click_client_id_and_session_id_information_in_urls">
565 <?php esc_html_e( 'Read more', 'cookiebot' ); ?>
566 </a>
567 </div>
568 <div class="cb-settings__config__data">
569 <div class="cb-settings__config__data__inner">
570 <label class="switch-checkbox" for="gcm-url-pasthrough">
571 <input
572 type="checkbox"
573 name="cookiebot-gcm-url-passthrough"
574 id="gcm-url-pasthrough"
575 value="1" <?php checked( 1, $gcm_url_passthrough_option ); ?>>
576 <div class="switcher"></div>
577 <?php esc_html_e( 'URL passthrough', 'cookiebot' ); ?>
578 <?php echo ( $gcm_url_passthrough_option === '1' ) ? 'enabled' : 'disabled'; ?>
579 </label>
580 </div>
581 </div>
582 </div>
583
584 </div>
585
586 <div class="cb-settings__tabs__content--item <?php echo $active_tab === 'iab' ? 'active-item' : ''; ?>"
587 id="iab">
588 <?php $iab_settings = new Iab_Page(); ?>
589 <?php $iab_settings->display(); ?>
590 </div>
591
592 <div class="cb-settings__tabs__content--item <?php echo $active_tab === 'multiple-configurations' ? 'active-item' : ''; ?>"
593 id="multiple-configurations">
594 <?php $multiple_settings = new Multiple_Page(); ?>
595 <?php $multiple_settings->display(); ?>
596 </div>
597
598 </div>
599 </form>
600 </div>
601 </div>
602 </div>
603