PluginProbe ʕ •ᴥ•ʔ
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode / 4.6.4
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode v4.6.4
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 / cb_frame / settings / general-page.php
cookiebot / src / view / admin / cb_frame / settings Last commit date
multiple-configuration 1 year ago additional-page.php 10 months ago gcm-page.php 1 year ago general-page.php 4 months ago gtm-page.php 1 year ago iab-page.php 1 year ago
general-page.php
319 lines
1 <?php
2 /**
3 * @var string $cbid
4 * @var bool $cbid_frame
5 * @var bool $is_ms
6 * @var string $network_cbid
7 * @var bool $network_cbid_override
8 * @var string $network_scrip_tag_uc_attr
9 * @var string $network_scrip_tag_cd_attr
10 * @var string $cookiebot_gdpr_url
11 * @var string $cookiebot_logo
12 * @var array $supported_languages
13 * @var string $current_lang
14 * @var bool $is_wp_consent_api_active
15 * @var array $m_default
16 * @var array $m
17 * @var string $cookie_blocking_mode
18 * @var bool $network_auto
19 * @var string $add_language_gif_url
20 */
21
22 use function cybot\cookiebot\lib\include_view;
23
24 ?>
25 <?php include_view( 'admin/common/templates/extra/cbid-disconnect-alert.php' ); ?>
26 <?php
27 if ( ! empty( $network_cbid ) ) {
28 include_view( 'admin/common/templates/extra/subsite-disconnect-alert.php' );
29 }
30 ?>
31 <div class="cb-settings__config__item cb-settings__config__cbid">
32 <div class="cb-settings__config__content">
33 <h3 class="cb-settings__config__subtitle">
34 <?php esc_html_e( 'Connect your Domain Group', 'cookiebot' ); ?>
35 </h3>
36 <p class="cb-general__info__text">
37 <?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' ); ?>
38 </p>
39 <a href="https://support.cookiebot.com/hc/en-us/articles/4405643234194-Your-CBID-or-Domain-group-ID-and-where-to-find-it"
40 target="_blank" class="cb-btn cb-link-btn" rel="noopener">
41 <?php esc_html_e( 'Read more on the Domain Group ID', 'cookiebot' ); ?>
42 </a>
43 </div>
44 <div class="cb-settings__config__data">
45 <div class="cb-settings__config__data__inner">
46 <h3 class="cb-settings__data__subtitle">
47 <?php esc_html_e( 'Add your Domain Group ID', 'cookiebot' ); ?>
48 </h3>
49 <div class="cookiebot-cbid-container">
50 <div class="cookiebot-cbid-input">
51 <input
52 <?php
53 echo ( $is_ms ) ?
54 ' placeholder="' . esc_attr( $network_cbid ) . '" data-network="' . esc_attr( $network_cbid ) . '"' :
55 '';
56 ?>
57 type="text" id="cookiebot-cbid" class="cbid-active" name="cookiebot-cbid"
58 value="<?php echo esc_attr( $cbid ); ?>"/>
59 <div class="cookiebot-cbid-check"></div>
60 </div>
61 <div id="cookiebot-cbid-reset-dialog"
62 class="cb-btn cb-main-btn
63 <?php
64 if ( ! empty( $network_cbid ) && ! $network_cbid_override ) {
65 echo 'hidden';
66 }
67 ?>
68 "><?php esc_html_e( 'Disconnect account', 'cookiebot' ); ?></div>
69 <?php if ( $is_ms ) : ?>
70 <div id="cookiebot-cbid-network-dialog"
71 class="cb-btn cb-white-btn
72 <?php
73 if ( ! empty( $network_cbid ) && $network_cbid_override ) {
74 echo 'hidden';
75 }
76 ?>
77 "><?php esc_html_e( 'Using network account', 'cookiebot' ); ?></div>
78 <?php submit_button( esc_html__( 'Connect account', 'cookiebot' ), 'hidden' ); ?>
79 <?php endif; ?>
80 </div>
81 <?php if ( ! empty( $network_cbid ) ) : ?>
82 <div class="cookiebot-cbid-error-container">
83 <div class="cookiebot-cbid-error hidden" style="color: #d63638; margin-top: 8px; font-size: 14px;">
84 <?php esc_html_e( 'Invalid ID length. Please enter a Settings ID (9 or 14 characters) or Domain Group ID (36 characters).', 'cookiebot' ); ?>
85 </div>
86 </div>
87 <div id="cb-network-id-override">
88 <label class="switch-checkbox" for="cookiebot-cbid-override">
89 <input class="
90 <?php
91 if ( ! $network_cbid_override ) {
92 echo 'cb-no-network';
93 }
94 ?>
95 "
96 type="checkbox" name="cookiebot-cbid-override" id="cookiebot-cbid-override" value="1"
97 <?php checked( 1, $network_cbid_override ); ?>>
98 <div class="switcher"></div>
99 <?php esc_html_e( 'Do not use Network Settings ID', 'cookiebot' ); ?>
100 </label>
101 </div>
102 <?php endif; ?>
103 </div>
104 </div>
105 </div>
106
107 <div class="cb-settings__config__item">
108 <div class="cb-settings__config__content">
109 <h3 class="cb-settings__config__subtitle">
110 <?php esc_html_e( 'Language:', 'cookiebot' ); ?>
111 </h3>
112 <p class="cb-general__info__text"><?php esc_html_e( 'Select your main language here.', 'cookiebot' ); ?></p>
113 </div>
114 <div class="cb-settings__config__data">
115 <div class="cb-settings__config__data__inner">
116 <h3 class="cb-settings__data__subtitle">
117 <?php esc_html_e( 'Select the language', 'cookiebot' ); ?>
118 </h3>
119 <select name="cookiebot-language" id="cookiebot-language">
120 <option value="">
121 <?php esc_html_e( 'Default (Autodetect)', 'cookiebot' ); ?>
122 </option>
123 <option value="_wp"<?php echo ( $current_lang === '_wp' ) ? ' selected' : ''; ?>>
124 <?php
125 esc_html_e(
126 'Use WordPress Language',
127 'cookiebot'
128 );
129 ?>
130 </option>
131 <?php
132 foreach ( $supported_languages as $lang_code => $lang_name ) {
133 echo '<option value="' . esc_attr( $lang_code ) . '"' .
134 ( ( $current_lang === esc_attr( $lang_code ) ) ? ' selected' : '' ) .
135 '>' . esc_html( $lang_name ) . '</option>';
136 }
137 ?>
138 </select>
139 </div>
140 </div>
141 </div>
142
143 <div class="cb-settings__config__item">
144 <div class="cb-settings__config__content">
145 <p class="cb-general__info__text">
146 <?php esc_html_e( 'If enabled, Cookiebot™ will use the current location to set the banner and cookie declaration language.', 'cookiebot' ); ?>
147 </p>
148 <p class="cb-general__info__note">
149 <?php esc_html_e( 'Please make sure that all languages in use have been added in the Cookiebot™ Manager.', 'cookiebot' ); ?>
150 </p>
151 <p class="cb-general__info__note"><?php esc_html_e( 'This feature disables the main language selector.', 'cookiebot' ); ?></p>
152 <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>
153 <a href="https://support.cookiebot.com/hc/en-us/articles/360003793394-How-to-set-the-language-of-the-consent-banner-"
154 target="_blank" class="cb-btn cb-link-btn" rel="noopener">
155 <?php esc_html_e( 'Read more on how to add languages', 'cookiebot' ); ?>
156 </a>
157 </div>
158 <div class="cb-settings__config__data">
159 <div class="cb-settings__config__data__inner">
160 <label class="switch-checkbox" for="cookiebot-front-language">
161 <input id="cookiebot-front-language" type="checkbox" name="cookiebot-front-language" value="1"
162 <?php
163 checked(
164 1,
165 get_option( 'cookiebot-front-language', false )
166 );
167 ?>
168 />
169 <div class="switcher"></div>
170 <?php esc_html_e( 'Use website location to set language', 'cookiebot' ); ?>
171 </label>
172 </div>
173 </div>
174 </div>
175
176
177 <div class="cb-settings__config__item">
178 <div class="cb-settings__config__content">
179 <h3 class="cb-settings__config__subtitle">
180 <?php esc_html_e( 'Cookie-blocking', 'cookiebot' ); ?>
181 </h3>
182 <p class="cb-general__info__text">
183 <?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' ); ?>
184 </p>
185 <div>
186 <a href="https://support.cookiebot.com/hc/en-us/articles/360009074960-Automatic-cookie-blocking"
187 target="_blank" class="cb-btn cb-link-btn" rel="noopener">
188 <?php esc_html_e( 'Guide to auto cookie-blocking', 'cookiebot' ); ?>
189 </a>
190 </div>
191 <div>
192 <a href="https://support.cookiebot.com/hc/en-us/articles/4405978132242-Manual-cookie-blocking"
193 target="_blank" class="cb-btn cb-link-btn" rel="noopener">
194 <?php esc_html_e( 'Guide to manual cookie-blocking', 'cookiebot' ); ?>
195 </a>
196 </div>
197 </div>
198 <div class="cb-settings__config__data">
199 <div class="cb-settings__config__data__inner">
200 <h3 class="cb-settings__data__subtitle">
201 <?php esc_html_e( 'Select cookie-blocking mode', 'cookiebot' ); ?>
202 </h3>
203 <label class="recommended-item">
204 <input <?php checked( 'auto', $cookie_blocking_mode ); ?>
205 type="radio"
206 name="cookiebot-cookie-blocking-mode"
207 value="auto"
208 />
209 <?php esc_html_e( 'Automatic', 'cookiebot' ); ?>
210 <span class="recommended-tag"><?php esc_html_e( 'Recommended', 'cookiebot' ); ?></span>
211 </label>
212 <label>
213 <input <?php checked( 'manual', $cookie_blocking_mode ); ?>
214 type="radio"
215 name="cookiebot-cookie-blocking-mode"
216 value="manual"
217 />
218 <?php esc_html_e( 'Manual', 'cookiebot' ); ?>
219 </label>
220 </div>
221 </div>
222 </div>
223
224 <?php
225 $cv = get_option( 'cookiebot-script-tag-uc-attribute', 'async' );
226 $disabled = false;
227 if ( $is_ms && $network_scrip_tag_uc_attr !== 'custom' ) {
228 $disabled = true;
229 $cv = $network_scrip_tag_uc_attr;
230 }
231 $auto_disabled = $cookie_blocking_mode === 'auto' ? ' disabled__item' : '';
232 ?>
233
234 <div class="cb-settings__config__item secondary__item<?php echo esc_attr( $auto_disabled ); ?>" id="declaration-tag">
235 <div class="cb-settings__config__content">
236 <h3 class="cb-settings__config__subtitle">
237 <?php esc_html_e( 'Cookiebot™ script tag', 'cookiebot' ); ?>
238 </h3>
239 <p class="cb-general__info__text">
240 <?php esc_html_e( 'Add async or defer attribute to cookie declaration script tag', 'cookiebot' ); ?>
241 </p>
242 <p class="cb-general__info__note">
243 <?php esc_html_e( 'This feature is only available when using Manual Blocking', 'cookiebot' ); ?>
244 </p>
245 </div>
246 <div class="cb-settings__config__data">
247 <div class="cb-settings__config__data__inner">
248 <label>
249 <input
250 type="radio"
251 name="cookiebot-script-tag-uc-attribute"<?php echo ( $disabled ) ? ' disabled' : ''; ?>
252 value="" <?php checked( '', $cv ); ?> />
253 <?php esc_html_e( 'None', 'cookiebot' ); ?>
254 </label>
255 <label>
256 <input
257 type="radio"
258 name="cookiebot-script-tag-uc-attribute"<?php echo ( $disabled ) ? ' disabled' : ''; ?>
259 value="async" <?php checked( 'async', $cv ); ?> />
260 async
261 </label>
262 <label>
263 <input
264 type="radio"
265 name="cookiebot-script-tag-uc-attribute"<?php echo ( $disabled ) ? ' disabled' : ''; ?>
266 value="defer" <?php checked( 'defer', $cv ); ?> />
267 defer
268 </label>
269 <?php if ( $is_ms && $network_auto || $is_ms && $network_scrip_tag_uc_attr !== 'custom' ) { ?>
270 <p class="cb-general__info__note"><?php esc_html_e( 'Disabled by active setting in Network Settings', 'cookiebot' ); ?></p>
271 <?php } ?>
272 </div>
273 </div>
274 </div>
275
276 <div class="cb-settings__config__item secondary__item<?php echo esc_attr( $auto_disabled ); ?>" id="cookie-popup">
277 <div class="cb-settings__config__content">
278 <h3 class="cb-settings__config__subtitle">
279 <?php esc_html_e( 'Hide cookie popup', 'cookiebot' ); ?>
280 </h3>
281 <p class="cb-general__info__note">
282 <?php esc_html_e( 'This feature is only available when using Manual Blocking', 'cookiebot' ); ?>
283 </p>
284 <p class="cb-general__info__text">
285 <?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' ); ?>
286 </p>
287 </div>
288 <div class="cb-settings__config__data">
289 <div class="cb-settings__config__data__inner">
290 <label>
291 <?php
292 $disabled = false;
293 if ( $is_ms && get_site_option( 'cookiebot-nooutput' ) || $is_ms && $network_auto ) {
294 $disabled = true;
295 if ( ! $network_auto ) {
296 echo '<input type="checkbox" checked disabled />';
297 } else {
298 echo '<input type="checkbox" disabled />';
299 }
300 } else {
301 ?>
302 <input type="checkbox" name="cookiebot-nooutput" value="1"
303 <?php
304 checked(
305 1,
306 get_option( 'cookiebot-nooutput', false )
307 );
308 ?>
309 />
310 <?php } ?>
311 <?php esc_html_e( 'Hide the cookie popup banner', 'cookiebot' ); ?>
312 </label>
313 <?php if ( $is_ms && get_site_option( 'cookiebot-nooutput' ) || $is_ms && $network_auto ) { ?>
314 <p class="cb-general__info__note"><?php esc_html_e( 'Disabled by active setting in Network Settings', 'cookiebot' ); ?></p>
315 <?php } ?>
316 </div>
317 </div>
318 </div>
319