PluginProbe ʕ •ᴥ•ʔ
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode / 4.2.5
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode v4.2.5
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 / multiple-configuration / page.php
cookiebot / src / view / admin / settings / multiple-configuration Last commit date
page.php 3 years ago
page.php
108 lines
1 <?php
2 /**
3 * @var string $cbid
4 * @var string $secondary_group_id
5 * @var array $supported_regions
6 * @var string $ccpa_compatibility
7 * @var array $selected_regions
8 */
9 ?>
10 <div class="cb-settings__config__item">
11 <div class="cb-settings__config__content">
12 <h3 class="cb-settings__config__subtitle"><?php esc_html_e( 'Additional configurations:', 'cookiebot' ); ?></h3>
13 <p class="cb-general__info__text">
14 <?php esc_html_e( 'You can add a second alternative banner or configuration to your website by creating a second Domain Group and specify it on a region.', 'cookiebot' ); ?>
15 </p>
16 <a href="https://support.cookiebot.com/hc/en-us/articles/360010932419-Multiple-banners-on-the-same-website-example-CCPA-GDPR-"
17 target="_blank" class="cb-btn cb-link-btn" rel="noopener">
18 <?php esc_html_e( 'Read more about multiple configurations here', 'cookiebot' ); ?>
19 </a>
20 </div>
21 <div class="cb-settings__config__data">
22 <div class="cb-settings__config__data__inner">
23 <label class="switch-checkbox" for="multiple-config">
24 <input
25 type="checkbox"
26 name="cookiebot-multiple-config"
27 id="multiple-config"
28 value="1" <?php checked( 1, get_option( 'cookiebot-multiple-config' ) ); ?>>
29 <div class="switcher"></div>
30 <?php esc_html_e( 'Multiple configurations', 'cookiebot' ); ?>
31 </label>
32 </div>
33 </div>
34 </div>
35
36 <div class="cb-multiple__container <?php echo ! get_option( 'cookiebot-multiple-config' ) ? 'hidden' : ''; ?>">
37 <div class="cb-settings__config__item">
38 <div class="cb-settings__config__content">
39 <h3 class="cb-settings__config__subtitle">
40 <?php esc_html_e( 'Set up your additional banner configuration:', 'cookiebot' ); ?>
41 </h3>
42 <p class="cb-general__info__text">
43 <?php esc_html_e( 'To enable a different configuration, create a separate DomainGroup without adding the domain to it and paste the ID below. Then select the countries in which you want to show this configuration. For example, if your main Domain Group is defined as a banner matching GDPR requirements, you might want to add another Domain Group for visitors from California. The number of additional configurations is restricted to one at the moment.', 'cookiebot' ); ?>
44 </p>
45 </div>
46 <div class="cb-settings__config__data"></div>
47 </div>
48
49 <div class="cb-region__table">
50 <div class="cb-region__table__header">
51 <div class="cb-region__table__column">
52 <div class="cb-region__table__header--title">
53 <?php esc_html_e( 'Domain Group ID', 'cookiebot' ); ?>
54 </div>
55 </div>
56 <div class="cb-region__table__column">
57 <div class="cb-region__table__header--title"><?php esc_html_e( 'Region', 'cookiebot' ); ?></div>
58 </div>
59 </div>
60 <div class="cb-region__table__item">
61 <div class="cb-region__item__group">
62 <input type="text" disabled
63 placeholder="<?php echo $cbid ? esc_html( $cbid ) : '1111-1111-1111-1111'; ?>">
64 </div>
65 <div class="cb-region__item__region">
66 <p class="cb-region__item__region--primary">
67 <?php esc_html_e( 'Primary domain group', 'cookiebot' ); ?>
68 </p>
69 </div>
70 </div>
71 <div class="cb-region__table__item">
72 <div class="cb-region__item__group">
73 <input type="text" name="cookiebot-second-banner-id" placeholder="1111-1111-1111-1111"
74 value="<?php echo esc_html( $secondary_group_id ); ?>">
75 </div>
76 <div class="cb-region__item__region">
77 <input type="hidden" name="cookiebot-second-banner-regions" id="second-banner-regions"
78 value="<?php echo esc_html( implode( ', ', array_keys( $selected_regions ) ) ); ?>">
79 <input type="hidden" name="cookiebot-ccpa" id="ccpa-compatibility"
80 value="<?php echo esc_html( $ccpa_compatibility ); ?>">
81 <div class="cb-region__region__selector">
82 <div class="default-none <?php echo $selected_regions ? 'hidden' : ''; ?>">
83 <?php esc_html_e( 'Select region', 'cookiebot' ); ?>
84 </div>
85 <div class="selected-regions">
86 <?php foreach ( $selected_regions as $code => $region ) : ?>
87 <div id="<?php echo esc_html( $code ); ?>" class="selected-regions-item">
88 <?php echo esc_html( $region ); ?>
89 </div>
90 <?php endforeach; ?>
91 </div>
92 </div>
93 <div class="cb-region__region__list hidden">
94 <div class="cb-region__veil"></div>
95 <div class="cb-region__list__container">
96 <?php foreach ( $supported_regions as $code => $region ) : ?>
97 <div class='cb-region__region__item <?php echo array_key_exists( $code, $selected_regions ) ? 'selected-region' : ''; ?>'
98 data-region="<?php echo esc_html( $code ); ?>">
99 <?php echo esc_html( $region ); ?>
100 </div>
101 <?php endforeach; ?>
102 </div>
103 </div>
104 </div>
105 </div>
106 </div>
107 </div>
108