PluginProbe ʕ •ᴥ•ʔ
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode / 4.5.1
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode v4.5.1
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 / uc_frame / settings / general-page.php
cookiebot / src / view / admin / uc_frame / settings Last commit date
additional-page.php 1 year ago embeddings-page.php 1 year ago gcm-page.php 1 year ago general-page.php 1 year ago gtm-page.php 1 year ago
general-page.php
248 lines
1 <?php
2 /**
3 * @var string $cbid
4 * @var bool $is_ms
5 * @var string $network_cbid
6 * @var bool $network_cbid_override
7 * @var string $ruleset_id
8 * @var bool $cookiebot_iab
9 * @var string $network_scrip_tag_uc_attr
10 * @var string $cookie_blocking_mode
11 * @var bool $network_auto
12 */
13
14 use function cybot\cookiebot\lib\include_view;
15
16 ?>
17 <?php include_view( 'admin/common/templates/extra/cbid-disconnect-alert.php' ); ?>
18 <?php
19 if ( ! empty( $network_cbid ) ) {
20 include_view( 'admin/common/templates/extra/subsite-disconnect-alert.php' );
21 }
22 ?>
23 <div class="cb-settings__config__item cb-settings__config__cbid">
24 <div class="cb-settings__config__content">
25 <h3 class="cb-settings__config__subtitle">
26 <?php esc_html_e( 'Settings ID', 'cookiebot' ); ?>
27 </h3>
28 <p class="cb-general__info__text">
29 <?php esc_html_e( 'To disconnect your account, enter your settings ID into the field and confirm with the button.', 'cookiebot' ); ?>
30 </p>
31 <a href="https://support.usercentrics.com/hc/en-us/articles/18097606499100-What-is-a-Settings-ID-and-where-can-I-find-it"
32 target="_blank" class="cb-btn cb-link-btn" rel="noopener">
33 <?php esc_html_e( 'Where to find settings ID', 'cookiebot' ); ?>
34 </a>
35 </div>
36 <div class="cb-settings__config__data">
37 <div class="cb-settings__config__data__inner">
38 <h3 class="cb-settings__data__subtitle">
39 <?php esc_html_e( 'Your settings ID', 'cookiebot' ); ?>
40 </h3>
41 <div class="cookiebot-cbid-container">
42 <div class="cookiebot-cbid-input">
43 <input
44 <?php
45 echo ( $is_ms ) ?
46 ' placeholder="' . esc_attr( $network_cbid ) . '" data-network="' . esc_attr( $network_cbid ) . '"' :
47 '';
48 ?>
49 type="text" id="cookiebot-cbid" class="cbid-active" name="cookiebot-cbid"
50 value="<?php echo esc_attr( $cbid ); ?>"/>
51 <div class="cookiebot-cbid-check"></div>
52 </div>
53 <div id="cookiebot-cbid-reset-dialog"
54 class="cb-btn cb-main-btn
55 <?php
56 if ( ! empty( $network_cbid ) && ! $network_cbid_override ) {
57 echo 'hidden';
58 }
59 if ( \cybot\cookiebot\lib\Cookiebot_WP::was_onboarded_via_signup() ) {
60 echo ' disabled';
61 }
62 ?>
63 "
64 <?php
65 if ( \cybot\cookiebot\lib\Cookiebot_WP::was_onboarded_via_signup() ) {
66 echo ' style="opacity: 0.5; cursor: not-allowed;"';
67 }
68 ?>
69 ><?php esc_html_e( 'Disconnect account', 'cookiebot' ); ?></div>
70 <?php if ( $is_ms ) : ?>
71 <div id="cookiebot-cbid-network-dialog"
72 class="cb-btn cb-white-btn
73 <?php
74 if ( ! empty( $network_cbid ) && $network_cbid_override ) {
75 echo 'hidden';
76 }
77 ?>
78 "><?php esc_html_e( 'Using network account', 'cookiebot' ); ?></div>
79 <?php submit_button( esc_html__( 'Connect account', 'cookiebot' ), 'hidden' ); ?>
80 <?php endif; ?>
81 </div>
82 <?php if ( ! empty( $network_cbid ) ) : ?>
83 <div id="cb-network-id-override">
84 <label class="switch-checkbox" for="cookiebot-cbid-override">
85 <input class="
86 <?php
87 if ( ! $network_cbid_override ) {
88 echo 'cb-no-network';
89 }
90 ?>
91 "
92 type="checkbox" name="cookiebot-cbid-override" id="cookiebot-cbid-override" value="1"
93 <?php checked( 1, $network_cbid_override ); ?>>
94 <div class="switcher"></div>
95 <?php esc_html_e( 'Do not use Network Settings ID', 'cookiebot' ); ?>
96 </label>
97 </div>
98 <?php endif; ?>
99 </div>
100 </div>
101 </div>
102
103 <div id="cookiebot-ruleset-id-selector" class="cb-settings__config__item hidden">
104 <div class="cb-settings__config__content">
105 <p class="cb-general__info__text">
106 <?php esc_html_e( 'Let us know if your account is set for compliance with a single privacy law (e.g. GDPR) or multiple laws (e.g. GDPR and CCPA) based on user’s location. The default is a single privacy law, so this is likely your setting unless modified.', 'cookiebot' ); ?>
107 </p>
108 </div>
109 <div class="cb-settings__config__data">
110 <div class="cb-settings__config__data__inner">
111 <h3 class="cb-settings__data__subtitle">
112 <?php esc_html_e( 'Your current account setup:', 'cookiebot' ); ?>
113 </h3>
114 <label class="recommended-item">
115 <input <?php checked( 'settings', $ruleset_id ); ?>
116 type="radio"
117 name="cookiebot-ruleset-id"
118 value="settings"/>
119 <?php esc_html_e( 'Compliance with one privacy law', 'cookiebot' ); ?>
120 </label>
121 <label>
122 <input <?php checked( 'ruleset', $ruleset_id ); ?>
123 type="radio"
124 name="cookiebot-ruleset-id"
125 value="ruleset"/>
126 <?php esc_html_e( 'Compliance with multiple privacy laws (geolocation)', 'cookiebot' ); ?>
127 </label>
128 </div>
129 </div>
130 </div>
131
132 <div class="cb-settings__config__item">
133 <div class="cb-settings__config__content">
134 <h3 class="cb-settings__config__subtitle">
135 <?php esc_html_e( 'TCF integration', 'cookiebot' ); ?>
136 </h3>
137 <p class="cb-general__info__text">
138 <?php esc_html_e( 'Enable the integration with the latest version of IAB TCF.', 'cookiebot' ); ?>
139 </p>
140 </div>
141 <div class="cb-settings__config__data">
142 <div class="cb-settings__config__data__inner">
143 <label class="switch-checkbox" for="cookiebot-iab">
144 <input type="checkbox" name="cookiebot-iab" id="cookiebot-iab" value="1"
145 <?php checked( 1, $cookiebot_iab ); ?>>
146 <div class="switcher"></div>
147 <?php esc_html_e( 'IAB TCF integration', 'cookiebot' ); ?>
148 </label>
149 </div>
150 </div>
151 </div>
152
153 <div class="cb-settings__config__item">
154 <div class="cb-settings__config__content">
155 <h3 class="cb-settings__config__subtitle">
156 <?php esc_html_e( 'Cookie-blocking', 'cookiebot' ); ?>
157 </h3>
158 <p class="cb-general__info__text">
159 <?php esc_html_e( 'Choose the type of your cookie-blocking mode. Select automatic to automatically block all cookies except those strictly necessary to use before user gives consent. Manual mode lets you adjust your cookie settings within your website’s HTML.', 'cookiebot' ); ?>
160 </p>
161 <a href="https://support.usercentrics.com/hc/en-us/articles/17332104757148-Automatic-Data-Processing-Service-blocking"
162 target="_blank" class="cb-btn cb-link-btn" rel="noopener">
163 <?php esc_html_e( 'Learn more', 'cookiebot' ); ?>
164 </a>
165 </div>
166 <div class="cb-settings__config__data">
167 <div class="cb-settings__config__data__inner">
168 <h3 class="cb-settings__data__subtitle">
169 <?php esc_html_e( 'Select cookie-blocking mode', 'cookiebot' ); ?>
170 </h3>
171 <label class="recommended-item">
172 <input <?php checked( 'auto', $cookie_blocking_mode ); ?>
173 type="radio"
174 name="cookiebot-cookie-blocking-mode"
175 value="auto"
176 <?php echo $is_ms && $network_auto ? ' disabled' : ''; ?>/>
177 <?php esc_html_e( 'Automatic', 'cookiebot' ); ?>
178 <span class="recommended-tag"><?php esc_html_e( 'Recommended', 'cookiebot' ); ?></span>
179 </label>
180 <label>
181 <input <?php checked( 'manual', $cookie_blocking_mode ); ?>
182 type="radio"
183 name="cookiebot-cookie-blocking-mode"
184 value="manual"
185 <?php echo $is_ms && $network_auto ? ' disabled' : ''; ?>/>
186 <?php esc_html_e( 'Manual', 'cookiebot' ); ?>
187 </label>
188 <?php if ( $is_ms && $network_auto ) { ?>
189 <p class="cb-general__info__note"><?php esc_html_e( 'Disabled by active setting in Network Settings', 'cookiebot' ); ?></p>
190 <?php } ?>
191 </div>
192 </div>
193 </div>
194
195 <?php
196 $cv = get_option( 'cookiebot-script-tag-uc-attribute', 'async' );
197 $disabled = false;
198 if ( $is_ms && $network_scrip_tag_uc_attr !== 'custom' ) {
199 $disabled = true;
200 $cv = $network_scrip_tag_uc_attr;
201 }
202 $auto_disabled = $cookie_blocking_mode === 'auto' ? ' disabled__item' : '';
203 ?>
204
205 <div class="cb-settings__config__item secondary__item<?php echo esc_attr( $auto_disabled ); ?>" id="cookie-popup">
206 <div class="cb-settings__config__content">
207 <h3 class="cb-settings__config__subtitle">
208 <?php esc_html_e( 'Hide cookie popup', 'cookiebot' ); ?>
209 </h3>
210 <p class="cb-general__info__note">
211 <?php esc_html_e( 'This feature is only available when using Manual Blocking', 'cookiebot' ); ?>
212 </p>
213 <p class="cb-general__info__text">
214 <?php esc_html_e( 'This will remove the cookie consent banner from your website. The cookie 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' ); ?>
215 </p>
216 </div>
217 <div class="cb-settings__config__data">
218 <div class="cb-settings__config__data__inner">
219 <label>
220 <?php
221 $disabled = false;
222 if ( $is_ms && get_site_option( 'cookiebot-nooutput' ) || $is_ms && $network_auto ) {
223 $disabled = true;
224 if ( ! $network_auto ) {
225 echo '<input type="checkbox" checked disabled />';
226 } else {
227 echo '<input type="checkbox" disabled />';
228 }
229 } else {
230 ?>
231 <input type="checkbox" name="cookiebot-nooutput" value="1"
232 <?php
233 checked(
234 1,
235 get_option( 'cookiebot-nooutput', false )
236 );
237 ?>
238 />
239 <?php } ?>
240 <?php esc_html_e( 'Hide the cookie popup banner', 'cookiebot' ); ?>
241 </label>
242 <?php if ( $is_ms && get_site_option( 'cookiebot-nooutput' ) || $is_ms && $network_auto ) { ?>
243 <p class="cb-general__info__note"><?php esc_html_e( 'Disabled by active setting in Network Settings', 'cookiebot' ); ?></p>
244 <?php } ?>
245 </div>
246 </div>
247 </div>
248