PluginProbe ʕ •ᴥ•ʔ
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode / 4.3.7
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode v4.3.7
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 2 years ago dashboard-page.php 2 years ago debug-page.php 3 years ago gcm-page.php 2 years ago gtm-page.php 2 years ago iab-page.php 2 years ago legislations-page.php 3 years ago network-settings-page.php 2 years ago settings-page.php 2 years ago support-page.php 2 years ago
settings-page.php
557 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\Gcm_Page;
7 use cybot\cookiebot\settings\pages\Iab_Page;
8 use cybot\cookiebot\settings\pages\Multiple_Page;
9
10 /**
11 * @var string $cbid
12 * @var bool $is_ms
13 * @var string $network_cbid
14 * @var string $network_scrip_tag_uc_attr
15 * @var string $network_scrip_tag_cd_attr
16 * @var string $cookiebot_gdpr_url
17 * @var string $cookiebot_logo
18 * @var array $supported_languages
19 * @var string $current_lang
20 * @var bool $is_wp_consent_api_active
21 * @var array $m_default
22 * @var array $m
23 * @var string $cookie_blocking_mode
24 * @var bool $network_auto
25 * @var string $add_language_gif_url
26 */
27
28 $header = new Header();
29 $main_tabs = new Main_Tabs();
30
31 // phpcs:ignore WordPress.Security.NonceVerification.Recommended
32 $active_tab = ! empty( $_GET['tab'] ) ? $_GET['tab'] : false;
33
34 $header->display();
35 ?>
36
37 <div class="cb-body">
38 <div class="cb-wrapper">
39 <?php $main_tabs->display( 'settings' ); ?>
40 <div class="cb-main__content">
41 <form method="post" action="options.php">
42 <?php settings_fields( 'cookiebot' ); ?>
43 <?php do_settings_sections( 'cookiebot' ); ?>
44 <div class="cb-settings__header">
45 <h1 class="cb-main__page_title"><?php esc_html_e( 'Settings', 'cookiebot' ); ?></h1>
46 <?php submit_button(); ?>
47 </div>
48
49 <div class="cb-settings__tabs">
50 <div class="cb-settings__tabs__item <?php echo ! $active_tab || $active_tab === 'general-settings' ? 'active-item' : ''; ?>"
51 data-tab="general-settings">
52 <?php esc_html_e( 'General Settings', 'cookiebot' ); ?>
53 </div>
54 <div class="cb-settings__tabs__item <?php echo $active_tab === 'additional-settings' ? 'active-item' : ''; ?>"
55 data-tab="additional-settings">
56 <?php esc_html_e( 'Additional Settings', 'cookiebot' ); ?>
57 </div>
58 <div class="cb-settings__tabs__item <?php echo $active_tab === 'tag-manager' ? 'active-item' : ''; ?>"
59 data-tab="tag-manager">
60 <?php esc_html_e( 'Google Tag Manager', 'cookiebot' ); ?>
61 </div>
62 <div class="cb-settings__tabs__item <?php echo $active_tab === 'consent-mode' ? 'active-item' : ''; ?>"
63 data-tab="consent-mode">
64 <?php esc_html_e( 'Google Consent Mode', 'cookiebot' ); ?>
65 </div>
66 <div class="cb-settings__tabs__item <?php echo $active_tab === 'iab' ? 'active-item' : ''; ?>"
67 data-tab="iab">
68 <?php esc_html_e( 'TCF', 'cookiebot' ); ?>
69 </div>
70 <div class="cb-settings__tabs__item <?php echo $active_tab === 'multiple-configurations' ? 'active-item' : ''; ?>"
71 data-tab="multiple-configurations">
72 <?php esc_html_e( 'Multiple Configurations', 'cookiebot' ); ?>
73 </div>
74 </div>
75
76 <div class="cb-settings__tabs__content">
77 <div class="cb-settings__tabs__content--item <?php echo ! $active_tab || $active_tab === 'general-settings' ? 'active-item' : ''; ?>"
78 id="general-settings">
79 <?php if ( ! $cbid ) : ?>
80 <div class="cb-general__new__account">
81 <h2 class="cb-general__info__title"><?php esc_html_e( 'Do you not have an account yet?', 'cookiebot' ); ?></h2>
82 <p class="cb-general__info__text">
83 <?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' ); ?>
84 </p>
85 <div class="new-account-actions">
86 <a href="https://admin.cookiebot.com/signup/?utm_source=wordpress&utm_medium=referral&utm_campaign=banner"
87 target="_blank" class="cb-btn cb-main-btn" rel="noopener">
88 <?php esc_html_e( 'Create a new Account', 'cookiebot' ); ?>
89 </a>
90 <a href="https://support.cookiebot.com/hc/en-us/articles/360003784174-Installing-Cookiebot-CMP-on-WordPress"
91 target="_blank" class="cb-btn cb-main-btn" rel="noopener">
92 <?php esc_html_e( 'Get help with connecting your account', 'cookiebot' ); ?>
93 </a>
94 </div>
95 </div>
96 <?php endif; ?>
97
98 <div class="cb-settings__config__item">
99 <div class="cb-settings__config__content">
100 <h3 class="cb-settings__config__subtitle">
101 <?php esc_html_e( 'Connect your Domain Group:', 'cookiebot' ); ?>
102 </h3>
103 <p class="cb-general__info__text">
104 <?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' ); ?>
105 </p>
106 <a href="https://support.cookiebot.com/hc/en-us/articles/4405643234194-Your-CBID-or-Domain-group-ID-and-where-to-find-it"
107 target="_blank" class="cb-btn cb-link-btn" rel="noopener">
108 <?php esc_html_e( 'Read more on the Domain Group ID', 'cookiebot' ); ?>
109 </a>
110 </div>
111 <div class="cb-settings__config__data">
112 <div class="cb-settings__config__data__inner">
113 <h3 class="cb-settings__data__subtitle">
114 <?php esc_html_e( 'Add your Domain Group ID', 'cookiebot' ); ?>
115 </h3>
116 <input <?php echo ( $is_ms ) ? ' placeholder="' . esc_attr( $network_cbid ) . '"' : ''; ?>
117 type="text" name="cookiebot-cbid"
118 value="<?php echo esc_attr( $cbid ); ?>"
119 />
120 </div>
121 </div>
122 </div>
123
124 <div class="cb-settings__config__item">
125 <div class="cb-settings__config__content">
126 <h3 class="cb-settings__config__subtitle">
127 <?php esc_html_e( 'Language:', 'cookiebot' ); ?>
128 </h3>
129 <p class="cb-general__info__text"><?php esc_html_e( 'Select your main language here.', 'cookiebot' ); ?></p>
130 </div>
131 <div class="cb-settings__config__data">
132 <div class="cb-settings__config__data__inner">
133 <h3 class="cb-settings__data__subtitle">
134 <?php esc_html_e( 'Select the language', 'cookiebot' ); ?>
135 </h3>
136 <select name="cookiebot-language" id="cookiebot-language">
137 <option value="">
138 <?php esc_html_e( 'Default (Autodetect)', 'cookiebot' ); ?>
139 </option>
140 <option value="_wp"<?php echo ( $current_lang === '_wp' ) ? ' selected' : ''; ?>>
141 <?php
142 esc_html_e(
143 'Use WordPress Language',
144 'cookiebot'
145 );
146 ?>
147 </option>
148 <?php
149 foreach ( $supported_languages as $lang_code => $lang_name ) {
150 echo '<option value="' . esc_attr( $lang_code ) . '"' .
151 ( ( $current_lang === esc_attr( $lang_code ) ) ? ' selected' : '' ) .
152 '>' . esc_html( $lang_name ) . '</option>';
153 }
154 ?>
155 </select>
156 </div>
157 </div>
158 </div>
159
160 <div class="cb-settings__config__item">
161 <div class="cb-settings__config__content">
162 <p class="cb-general__info__text">
163 <?php esc_html_e( 'If enabled, Cookiebot™ will use the current location to set the banner and cookie declaration language.', 'cookiebot' ); ?>
164 </p>
165 <p class="cb-general__info__note">
166 <?php esc_html_e( 'Please make sure that all languages in use have been added in the Cookiebot™ Manager.', 'cookiebot' ); ?>
167 </p>
168 <p class="cb-general__info__note"><?php esc_html_e( 'This feature disables the main language selector.', 'cookiebot' ); ?></p>
169 <p class="cb-general__info__note"><?php esc_html_e( 'If you have already set a language in the cookie declaration shortcode, this feature will not change it.', 'cookiebot' ); ?></p>
170 <a href="https://support.cookiebot.com/hc/en-us/articles/360003793394-How-to-set-the-language-of-the-consent-banner-"
171 target="_blank" class="cb-btn cb-link-btn" rel="noopener">
172 <?php esc_html_e( 'Read more on how to add languages', 'cookiebot' ); ?>
173 </a>
174 </div>
175 <div class="cb-settings__config__data">
176 <div class="cb-settings__config__data__inner">
177 <label class="switch-checkbox" for="cookiebot-front-language">
178 <input id="cookiebot-front-language" type="checkbox" name="cookiebot-front-language" value="1"
179 <?php
180 checked(
181 1,
182 get_option( 'cookiebot-front-language', false )
183 );
184 ?>
185 />
186 <div class="switcher"></div>
187 <?php esc_html_e( 'Use website location to set language', 'cookiebot' ); ?>
188 </label>
189 </div>
190 </div>
191 </div>
192
193
194
195 <div class="cb-settings__config__item">
196 <div class="cb-settings__config__content">
197 <h3 class="cb-settings__config__subtitle">
198 <?php esc_html_e( 'Cookie-blocking mode', 'cookiebot' ); ?>
199 </h3>
200 <p class="cb-general__info__text">
201 <?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' ); ?>
202 </p>
203 <a href="https://support.cookiebot.com/hc/en-us/articles/360009074960-Automatic-cookie-blocking"
204 target="_blank" class="cb-btn cb-link-btn" rel="noopener">
205 <?php esc_html_e( 'Guide to auto cookie-blocking', 'cookiebot' ); ?>
206 </a>
207 <a href="https://support.cookiebot.com/hc/en-us/articles/4405978132242-Manual-cookie-blocking"
208 target="_blank" class="cb-btn cb-link-btn" rel="noopener">
209 <?php esc_html_e( 'Guide to manual cookie-blocking', 'cookiebot' ); ?>
210 </a>
211 </div>
212 <div class="cb-settings__config__data">
213 <div class="cb-settings__config__data__inner">
214 <h3 class="cb-settings__data__subtitle">
215 <?php esc_html_e( 'Select the cookie-blocking mode', 'cookiebot' ); ?>
216 </h3>
217 <label class="recommended-item">
218 <input <?php checked( 'auto', $cookie_blocking_mode ); ?>
219 type="radio"
220 name="cookiebot-cookie-blocking-mode"
221 value="auto"
222 <?php echo $is_ms && $network_auto ? ' disabled' : ''; ?>/>
223 <?php esc_html_e( 'Automatic cookie-blocking mode', 'cookiebot' ); ?>
224 <span class="recommended-tag"><?php esc_html_e( 'Recommended', 'cookiebot' ); ?></span>
225 </label>
226 <label>
227 <input <?php checked( 'manual', $cookie_blocking_mode ); ?>
228 type="radio"
229 name="cookiebot-cookie-blocking-mode"
230 value="manual"
231 <?php echo $is_ms && $network_auto ? ' disabled' : ''; ?>/>
232 <?php esc_html_e( 'Manual cookie-blocking mode', 'cookiebot' ); ?>
233 </label>
234 <?php if ( $is_ms && $network_auto ) { ?>
235 <p class="cb-general__info__note"><?php esc_html_e( 'Disabled by active setting in Network Settings', 'cookiebot' ); ?></p>
236 <?php } ?>
237 </div>
238 </div>
239 </div>
240
241 <?php
242 $cv = get_option( 'cookiebot-script-tag-uc-attribute', 'async' );
243 $disabled = false;
244 if ( $is_ms && $network_scrip_tag_uc_attr !== 'custom' ) {
245 $disabled = true;
246 $cv = $network_scrip_tag_uc_attr;
247 }
248 $auto_disabled = $cookie_blocking_mode === 'auto' ? ' disabled__item' : '';
249 ?>
250
251 <div class="cb-settings__config__item secondary__item<?php echo esc_attr( $auto_disabled ); ?>" id="declaration-tag">
252 <div class="cb-settings__config__content">
253 <h3 class="cb-settings__config__subtitle">
254 <?php esc_html_e( 'Cookiebot™ script tag', 'cookiebot' ); ?>
255 </h3>
256 <p class="cb-general__info__text">
257 <?php esc_html_e( 'Add async or defer attribute to cookie declaration script tag', 'cookiebot' ); ?>
258 </p>
259 <p class="cb-general__info__note">
260 <?php esc_html_e( 'This feature is only available when using Manual Blocking', 'cookiebot' ); ?>
261 </p>
262 </div>
263 <div class="cb-settings__config__data">
264 <div class="cb-settings__config__data__inner">
265 <label>
266 <input
267 type="radio"
268 name="cookiebot-script-tag-uc-attribute"<?php echo ( $disabled ) ? ' disabled' : ''; ?>
269 value="" <?php checked( '', $cv ); ?> />
270 <?php esc_html_e( 'None', 'cookiebot' ); ?>
271 </label>
272 <label>
273 <input
274 type="radio"
275 name="cookiebot-script-tag-uc-attribute"<?php echo ( $disabled ) ? ' disabled' : ''; ?>
276 value="async" <?php checked( 'async', $cv ); ?> />
277 async
278 </label>
279 <label>
280 <input
281 type="radio"
282 name="cookiebot-script-tag-uc-attribute"<?php echo ( $disabled ) ? ' disabled' : ''; ?>
283 value="defer" <?php checked( 'defer', $cv ); ?> />
284 defer
285 </label>
286 <?php if ( $is_ms && $network_auto || $is_ms && $network_scrip_tag_uc_attr !== 'custom' ) { ?>
287 <p class="cb-general__info__note"><?php esc_html_e( 'Disabled by active setting in Network Settings', 'cookiebot' ); ?></p>
288 <?php } ?>
289 </div>
290 </div>
291 </div>
292
293 <div class="cb-settings__config__item secondary__item<?php echo esc_attr( $auto_disabled ); ?>" id="cookie-popup">
294 <div class="cb-settings__config__content">
295 <h3 class="cb-settings__config__subtitle">
296 <?php esc_html_e( 'Hide cookie popup', 'cookiebot' ); ?>
297 </h3>
298 <p class="cb-general__info__text">
299 <?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' ); ?>
300 </p>
301 <p class="cb-general__info__note">
302 <?php esc_html_e( 'This feature is only available when using Manual Blocking', 'cookiebot' ); ?>
303 </p>
304 </div>
305 <div class="cb-settings__config__data">
306 <div class="cb-settings__config__data__inner">
307 <label>
308 <?php
309 $disabled = false;
310 if ( $is_ms && get_site_option( 'cookiebot-nooutput' ) || $is_ms && $network_auto ) {
311 $disabled = true;
312 if ( ! $network_auto ) {
313 echo '<input type="checkbox" checked disabled />';
314 } else {
315 echo '<input type="checkbox" disabled />';
316 }
317 } else {
318 ?>
319 <input type="checkbox" name="cookiebot-nooutput" value="1"
320 <?php
321 checked(
322 1,
323 get_option( 'cookiebot-nooutput', false )
324 );
325 ?>
326 />
327 <?php } ?>
328 <?php esc_html_e( 'Hide the cookie popup banner', 'cookiebot' ); ?>
329 </label>
330 <?php if ( $is_ms && get_site_option( 'cookiebot-nooutput' ) || $is_ms && $network_auto ) { ?>
331 <p class="cb-general__info__note"><?php esc_html_e( 'Disabled by active setting in Network Settings', 'cookiebot' ); ?></p>
332 <?php } ?>
333 </div>
334 </div>
335 </div>
336
337 </div>
338
339 <div class="cb-settings__tabs__content--item <?php echo $active_tab === 'additional-settings' ? 'active-item' : ''; ?>"
340 id="additional-settings">
341 <div class="cb-settings__config__item">
342 <div class="cb-settings__config__content">
343 <h3 class="cb-settings__config__subtitle">
344 <?php esc_html_e( 'Auto-update Cookiebot™ Plugin:', 'cookiebot' ); ?>
345 </h3>
346 <p class="cb-general__info__text">
347 <?php esc_html_e( 'Automatically update your Cookiebot™ plugin when new releases becomes available.', 'cookiebot' ); ?>
348 </p>
349 </div>
350 <div class="cb-settings__config__data">
351 <div class="cb-settings__config__data__inner">
352 <label class="switch-checkbox" for="cookiebot-autoupdate">
353 <input id="cookiebot-autoupdate" type="checkbox" name="cookiebot-autoupdate" value="1"
354 <?php
355 checked(
356 1,
357 get_option( 'cookiebot-autoupdate', false )
358 );
359 ?>
360 />
361 <div class="switcher"></div>
362 <?php esc_html_e( 'Automatically update Cookiebot Plugin', 'cookiebot' ); ?>
363 </label>
364 </div>
365 </div>
366 </div>
367
368 <div class="cb-settings__config__item">
369 <div class="cb-settings__config__content">
370 <h3 class="cb-settings__config__subtitle">
371 <?php esc_html_e( 'Cookiebot CMP in WP Admin:', 'cookiebot' ); ?>
372 </h3>
373 <p class="cb-general__info__text">
374 <?php esc_html_e( 'This checkbox will disable Cookiebot CMP to act within the WordPress Admin area', 'cookiebot' ); ?>
375 </p>
376 </div>
377 <div class="cb-settings__config__data">
378 <div class="cb-settings__config__data__inner">
379 <label class="switch-checkbox" for="cookiebot-nooutput-admin">
380 <?php
381 $disabled = false;
382 if ( $is_ms && get_site_option( 'cookiebot-nooutput-admin' ) ) {
383 echo '<input type="checkbox" checked disabled />';
384 $disabled = true;
385 } else {
386 ?>
387 <input id="cookiebot-nooutput-admin" type="checkbox"
388 name="cookiebot-nooutput-admin" value="1"
389 <?php
390 checked(
391 1,
392 get_option( 'cookiebot-nooutput-admin', false )
393 );
394 ?>
395 />
396 <?php
397 }
398 ?>
399 <div class="switcher"></div>
400 <?php esc_html_e( 'Disable Cookiebot CMP in the WordPress Admin area', 'cookiebot' ); ?>
401 </label>
402 <?php
403 if ( $is_ms && get_site_option( 'cookiebot-nooutput-admin' ) ) {
404 ?>
405 <p class="cb-general__info__note"><?php esc_html_e( 'Disabled by active setting in Network Settings', 'cookiebot' ); ?></p>
406 <?php } ?>
407 </div>
408 </div>
409 </div>
410
411 <div class="cb-settings__config__item">
412 <div class="cb-settings__config__content">
413 <h3 class="cb-settings__config__subtitle">
414 <?php esc_html_e( 'Cookiebot CMP on front-end while logged in:', 'cookiebot' ); ?>
415 </h3>
416 <p class="cb-general__info__text">
417 <?php esc_html_e( 'This setting will enable Cookiebot CMP on the front-end while you\'re logged in.', 'cookiebot' ); ?>
418 </p>
419 </div>
420 <div class="cb-settings__config__data">
421 <div class="cb-settings__config__data__inner">
422 <label class="switch-checkbox" for="cookiebot-output-logged-in">
423 <?php
424 $disabled = false;
425 if ( $is_ms && get_site_option( 'cookiebot-output-logged-in' ) ) {
426 echo '<input type="checkbox" checked disabled />';
427 $disabled = true;
428 } else {
429 ?>
430 <input id="cookiebot-output-logged-in" type="checkbox"
431 name="cookiebot-output-logged-in" value="1"
432 <?php
433 checked(
434 1,
435 get_option( 'cookiebot-output-logged-in', false )
436 );
437 ?>
438 />
439 <?php
440 }
441 ?>
442 <div class="switcher"></div>
443 <?php esc_html_e( 'Render Cookiebot CMP on front-end while logged in', 'cookiebot' ); ?>
444 </label>
445 </div>
446 </div>
447 </div>
448
449 <div class="cb-settings__config__item">
450 <div class="cb-settings__config__content">
451 <h3 class="cb-settings__config__subtitle">
452 <?php esc_html_e( 'Cookie declaration script tag:', 'cookiebot' ); ?>
453 </h3>
454 <p class="cb-general__info__text">
455 <?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' ); ?>
456 </p>
457 </div>
458 <div class="cb-settings__config__data">
459 <div class="cb-settings__config__data__inner">
460 <h3 class="cb-settings__data__subtitle">
461 <?php esc_html_e( 'Select the cookie declaration script loading setting', 'cookiebot' ); ?>
462 </h3>
463 <?php
464 $cv = get_option( 'cookiebot-script-tag-cd-attribute', 'async' );
465 $disabled = false;
466 if ( $is_ms && $network_scrip_tag_cd_attr !== 'custom' ) {
467 $disabled = true;
468 $cv = $network_scrip_tag_cd_attr;
469 }
470 ?>
471 <label>
472 <input
473 type="radio"
474 name="cookiebot-script-tag-cd-attribute"<?php echo ( $disabled ) ? ' disabled' : ''; ?>
475 value="" <?php checked( '', $cv ); ?>/>
476 <?php esc_html_e( 'None', 'cookiebot' ); ?>
477 </label>
478 <label>
479 <input
480 type="radio"
481 name="cookiebot-script-tag-cd-attribute"<?php echo ( $disabled ) ? ' disabled' : ''; ?>
482 value="async" <?php checked( 'async', $cv ); ?>/>
483 async
484 </label>
485 <label>
486 <input
487 type="radio"
488 name="cookiebot-script-tag-cd-attribute"<?php echo ( $disabled ) ? ' disabled' : ''; ?>
489 value="defer" <?php checked( 'defer', $cv ); ?>/>
490 defer
491 </label>
492 <?php if ( $disabled ) { ?>
493 <p class="cb-general__info__note"><?php esc_html_e( 'Disabled by active setting in Network Settings', 'cookiebot' ); ?></p>
494 <?php } ?>
495 </div>
496 </div>
497 </div>
498
499 <div class="cb-settings__config__item">
500 <div class="cb-settings__config__content">
501 <h3 class="cb-settings__config__subtitle">
502 <?php esc_html_e( 'Ignore scripts in queue from Cookiebot CMP scan:', 'cookiebot' ); ?>
503 </h3>
504 <p class="cb-general__info__text">
505 <?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' ); ?>
506 </p>
507 <p class="cb-general__info__text">
508 <?php esc_html_e( 'This feature only works for scripts loaded via wp_enqueue_script. Manually added scripts must be manually edited.', 'cookiebot' ); ?>
509 </p>
510 </div>
511 <div class="cb-settings__config__data">
512 <div class="cb-settings__config__data__inner">
513 <h3 class="cb-settings__data__subtitle">
514 <?php esc_html_e( 'Script source URL:', 'cookiebot' ); ?>
515 </h3>
516 <textarea
517 name="cookiebot-ignore-scripts"
518 rows="4"
519 cols="50"
520 placeholder="<?php esc_attr_e( 'Add script source URL, one per line', 'cookiebot' ); ?>"
521 ><?php echo esc_html( get_option( 'cookiebot-ignore-scripts', false ) ); ?></textarea>
522 </div>
523 </div>
524 </div>
525
526 </div>
527
528 <div class="cb-settings__tabs__content--item <?php echo $active_tab === 'tag-manager' ? 'active-item' : ''; ?>"
529 id="tag-manager">
530 <?php $gtm_settings = new Gtm_Page(); ?>
531 <?php $gtm_settings->display(); ?>
532 </div>
533
534 <div class="cb-settings__tabs__content--item <?php echo $active_tab === 'consent-mode' ? 'active-item' : ''; ?>"
535 id="consent-mode">
536 <?php $gcm_settings = new Gcm_Page(); ?>
537 <?php $gcm_settings->display(); ?>
538 </div>
539
540 <div class="cb-settings__tabs__content--item <?php echo $active_tab === 'iab' ? 'active-item' : ''; ?>"
541 id="iab">
542 <?php $iab_settings = new Iab_Page(); ?>
543 <?php $iab_settings->display(); ?>
544 </div>
545
546 <div class="cb-settings__tabs__content--item <?php echo $active_tab === 'multiple-configurations' ? 'active-item' : ''; ?>"
547 id="multiple-configurations">
548 <?php $multiple_settings = new Multiple_Page(); ?>
549 <?php $multiple_settings->display(); ?>
550 </div>
551
552 </div>
553 </form>
554 </div>
555 </div>
556 </div>
557