PluginProbe ʕ •ᴥ•ʔ
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode / 4.4.2
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode v4.4.2
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 1 year ago gcm-page.php 1 year ago general-page.php 1 year ago gtm-page.php 1 year ago iab-page.php 1 year ago
general-page.php
317 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 id="cb-network-id-override">
83 <label class="switch-checkbox" for="cookiebot-cbid-override">
84 <input class="
85 <?php
86 if ( ! $network_cbid_override ) {
87 echo 'cb-no-network';
88 }
89 ?>
90 "
91 type="checkbox" name="cookiebot-cbid-override" id="cookiebot-cbid-override" value="1"
92 <?php checked( 1, $network_cbid_override ); ?>>
93 <div class="switcher"></div>
94 <?php esc_html_e( 'Do not use Network Settings ID', 'cookiebot' ); ?>
95 </label>
96 </div>
97 <?php endif; ?>
98 </div>
99 </div>
100 </div>
101
102 <div class="cb-settings__config__item">
103 <div class="cb-settings__config__content">
104 <h3 class="cb-settings__config__subtitle">
105 <?php esc_html_e( 'Language:', 'cookiebot' ); ?>
106 </h3>
107 <p class="cb-general__info__text"><?php esc_html_e( 'Select your main language here.', 'cookiebot' ); ?></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( 'Select the language', 'cookiebot' ); ?>
113 </h3>
114 <select name="cookiebot-language" id="cookiebot-language">
115 <option value="">
116 <?php esc_html_e( 'Default (Autodetect)', 'cookiebot' ); ?>
117 </option>
118 <option value="_wp"<?php echo ( $current_lang === '_wp' ) ? ' selected' : ''; ?>>
119 <?php
120 esc_html_e(
121 'Use WordPress Language',
122 'cookiebot'
123 );
124 ?>
125 </option>
126 <?php
127 foreach ( $supported_languages as $lang_code => $lang_name ) {
128 echo '<option value="' . esc_attr( $lang_code ) . '"' .
129 ( ( $current_lang === esc_attr( $lang_code ) ) ? ' selected' : '' ) .
130 '>' . esc_html( $lang_name ) . '</option>';
131 }
132 ?>
133 </select>
134 </div>
135 </div>
136 </div>
137
138 <div class="cb-settings__config__item">
139 <div class="cb-settings__config__content">
140 <p class="cb-general__info__text">
141 <?php esc_html_e( 'If enabled, Cookiebot™ will use the current location to set the banner and cookie declaration language.', 'cookiebot' ); ?>
142 </p>
143 <p class="cb-general__info__note">
144 <?php esc_html_e( 'Please make sure that all languages in use have been added in the Cookiebot™ Manager.', 'cookiebot' ); ?>
145 </p>
146 <p class="cb-general__info__note"><?php esc_html_e( 'This feature disables the main language selector.', 'cookiebot' ); ?></p>
147 <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>
148 <a href="https://support.cookiebot.com/hc/en-us/articles/360003793394-How-to-set-the-language-of-the-consent-banner-"
149 target="_blank" class="cb-btn cb-link-btn" rel="noopener">
150 <?php esc_html_e( 'Read more on how to add languages', 'cookiebot' ); ?>
151 </a>
152 </div>
153 <div class="cb-settings__config__data">
154 <div class="cb-settings__config__data__inner">
155 <label class="switch-checkbox" for="cookiebot-front-language">
156 <input id="cookiebot-front-language" type="checkbox" name="cookiebot-front-language" value="1"
157 <?php
158 checked(
159 1,
160 get_option( 'cookiebot-front-language', false )
161 );
162 ?>
163 />
164 <div class="switcher"></div>
165 <?php esc_html_e( 'Use website location to set language', 'cookiebot' ); ?>
166 </label>
167 </div>
168 </div>
169 </div>
170
171
172 <div class="cb-settings__config__item">
173 <div class="cb-settings__config__content">
174 <h3 class="cb-settings__config__subtitle">
175 <?php esc_html_e( 'Cookie-blocking', 'cookiebot' ); ?>
176 </h3>
177 <p class="cb-general__info__text">
178 <?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' ); ?>
179 </p>
180 <div>
181 <a href="https://support.cookiebot.com/hc/en-us/articles/360009074960-Automatic-cookie-blocking"
182 target="_blank" class="cb-btn cb-link-btn" rel="noopener">
183 <?php esc_html_e( 'Guide to auto cookie-blocking', 'cookiebot' ); ?>
184 </a>
185 </div>
186 <div>
187 <a href="https://support.cookiebot.com/hc/en-us/articles/4405978132242-Manual-cookie-blocking"
188 target="_blank" class="cb-btn cb-link-btn" rel="noopener">
189 <?php esc_html_e( 'Guide to manual cookie-blocking', 'cookiebot' ); ?>
190 </a>
191 </div>
192 </div>
193 <div class="cb-settings__config__data">
194 <div class="cb-settings__config__data__inner">
195 <h3 class="cb-settings__data__subtitle">
196 <?php esc_html_e( 'Select cookie-blocking mode', 'cookiebot' ); ?>
197 </h3>
198 <label class="recommended-item">
199 <input <?php checked( 'auto', $cookie_blocking_mode ); ?>
200 type="radio"
201 name="cookiebot-cookie-blocking-mode"
202 value="auto"
203 <?php echo $is_ms && $network_auto ? ' disabled' : ''; ?>/>
204 <?php esc_html_e( 'Automatic', 'cookiebot' ); ?>
205 <span class="recommended-tag"><?php esc_html_e( 'Recommended', 'cookiebot' ); ?></span>
206 </label>
207 <label>
208 <input <?php checked( 'manual', $cookie_blocking_mode ); ?>
209 type="radio"
210 name="cookiebot-cookie-blocking-mode"
211 value="manual"
212 <?php echo $is_ms && $network_auto ? ' disabled' : ''; ?>/>
213 <?php esc_html_e( 'Manual', 'cookiebot' ); ?>
214 </label>
215 <?php if ( $is_ms && $network_auto ) { ?>
216 <p class="cb-general__info__note"><?php esc_html_e( 'Disabled by active setting in Network Settings', 'cookiebot' ); ?></p>
217 <?php } ?>
218 </div>
219 </div>
220 </div>
221
222 <?php
223 $cv = get_option( 'cookiebot-script-tag-uc-attribute', 'async' );
224 $disabled = false;
225 if ( $is_ms && $network_scrip_tag_uc_attr !== 'custom' ) {
226 $disabled = true;
227 $cv = $network_scrip_tag_uc_attr;
228 }
229 $auto_disabled = $cookie_blocking_mode === 'auto' ? ' disabled__item' : '';
230 ?>
231
232 <div class="cb-settings__config__item secondary__item<?php echo esc_attr( $auto_disabled ); ?>" id="declaration-tag">
233 <div class="cb-settings__config__content">
234 <h3 class="cb-settings__config__subtitle">
235 <?php esc_html_e( 'Cookiebot™ script tag', 'cookiebot' ); ?>
236 </h3>
237 <p class="cb-general__info__text">
238 <?php esc_html_e( 'Add async or defer attribute to cookie declaration script tag', 'cookiebot' ); ?>
239 </p>
240 <p class="cb-general__info__note">
241 <?php esc_html_e( 'This feature is only available when using Manual Blocking', 'cookiebot' ); ?>
242 </p>
243 </div>
244 <div class="cb-settings__config__data">
245 <div class="cb-settings__config__data__inner">
246 <label>
247 <input
248 type="radio"
249 name="cookiebot-script-tag-uc-attribute"<?php echo ( $disabled ) ? ' disabled' : ''; ?>
250 value="" <?php checked( '', $cv ); ?> />
251 <?php esc_html_e( 'None', 'cookiebot' ); ?>
252 </label>
253 <label>
254 <input
255 type="radio"
256 name="cookiebot-script-tag-uc-attribute"<?php echo ( $disabled ) ? ' disabled' : ''; ?>
257 value="async" <?php checked( 'async', $cv ); ?> />
258 async
259 </label>
260 <label>
261 <input
262 type="radio"
263 name="cookiebot-script-tag-uc-attribute"<?php echo ( $disabled ) ? ' disabled' : ''; ?>
264 value="defer" <?php checked( 'defer', $cv ); ?> />
265 defer
266 </label>
267 <?php if ( $is_ms && $network_auto || $is_ms && $network_scrip_tag_uc_attr !== 'custom' ) { ?>
268 <p class="cb-general__info__note"><?php esc_html_e( 'Disabled by active setting in Network Settings', 'cookiebot' ); ?></p>
269 <?php } ?>
270 </div>
271 </div>
272 </div>
273
274 <div class="cb-settings__config__item secondary__item<?php echo esc_attr( $auto_disabled ); ?>" id="cookie-popup">
275 <div class="cb-settings__config__content">
276 <h3 class="cb-settings__config__subtitle">
277 <?php esc_html_e( 'Hide cookie popup', 'cookiebot' ); ?>
278 </h3>
279 <p class="cb-general__info__note">
280 <?php esc_html_e( 'This feature is only available when using Manual Blocking', 'cookiebot' ); ?>
281 </p>
282 <p class="cb-general__info__text">
283 <?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' ); ?>
284 </p>
285 </div>
286 <div class="cb-settings__config__data">
287 <div class="cb-settings__config__data__inner">
288 <label>
289 <?php
290 $disabled = false;
291 if ( $is_ms && get_site_option( 'cookiebot-nooutput' ) || $is_ms && $network_auto ) {
292 $disabled = true;
293 if ( ! $network_auto ) {
294 echo '<input type="checkbox" checked disabled />';
295 } else {
296 echo '<input type="checkbox" disabled />';
297 }
298 } else {
299 ?>
300 <input type="checkbox" name="cookiebot-nooutput" value="1"
301 <?php
302 checked(
303 1,
304 get_option( 'cookiebot-nooutput', false )
305 );
306 ?>
307 />
308 <?php } ?>
309 <?php esc_html_e( 'Hide the cookie popup banner', 'cookiebot' ); ?>
310 </label>
311 <?php if ( $is_ms && get_site_option( 'cookiebot-nooutput' ) || $is_ms && $network_auto ) { ?>
312 <p class="cb-general__info__note"><?php esc_html_e( 'Disabled by active setting in Network Settings', 'cookiebot' ); ?></p>
313 <?php } ?>
314 </div>
315 </div>
316 </div>
317