PluginProbe ʕ •ᴥ•ʔ
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode / 4.6.2
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode v4.6.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 / uc_frame / settings / general-page.php
cookiebot / src / view / admin / uc_frame / settings Last commit date
additional-page.php 10 months ago embeddings-page.php 1 year ago gcm-page.php 6 months ago general-page.php 7 months ago gtm-page.php 6 months ago
general-page.php
274 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 cybot\cookiebot\lib\Cookiebot_WP;
15 use function cybot\cookiebot\lib\include_view;
16
17 // Check if user was onboarded via signup
18 $was_onboarded = Cookiebot_WP::was_onboarded_via_signup() && ! empty( Cookiebot_WP::get_auth_token() );
19
20 ?>
21 <?php include_view( 'admin/common/templates/extra/cbid-disconnect-alert.php' ); ?>
22 <?php
23 if ( ! empty( $network_cbid ) ) {
24 include_view( 'admin/common/templates/extra/subsite-disconnect-alert.php' );
25 }
26 ?>
27
28 <?php if ( $was_onboarded ) : ?>
29 <div class="cb-settings__notabs">
30 </div>
31 <?php endif; ?>
32
33 <div class="cb-settings__config__item cb-settings__config__cbid">
34 <div class="cb-settings__config__content">
35 <h3 class="cb-settings__config__subtitle">
36 <?php esc_html_e( 'Disconnecting your banner setup?', 'cookiebot' ); ?>
37 </h3>
38 <p class="cb-general__info__text">
39 <?php esc_html_e( 'Click', 'cookiebot' ); ?>
40 <strong><?php esc_html_e( 'Disconnect account', 'cookiebot' ); ?></strong>
41 <?php esc_html_e( 'to remove this cookie banner from your site. You can add it back at any time using the same ID or a new one.', 'cookiebot' ); ?>
42 </p>
43 <p class="cb-general__info__text">
44 <?php esc_html_e( 'Since you signed up through the plugin, disconnecting will remove your login access and clear your plugin data. But don\'t worry, you can still use your ID by copying and pasting it from the Admin Interface.', 'cookiebot' ); ?>
45 </p>
46
47 <?php if ( $was_onboarded ) : ?>
48 <p class="cb-general__info__text">
49 <?php esc_html_e( 'Need more control over your banner?', 'cookiebot' ); ?>
50 <a href="https://admin.usercentrics.eu/#/v3/configuration/setup?settingsId=<?php echo esc_attr( $cbid ); ?>"
51 target="_blank" class="cb-btn cb-link-btn" rel="noopener">
52 <?php esc_html_e( 'Go to full banner settings', 'cookiebot' ); ?>
53 </a>
54 </p>
55 <?php else : ?>
56 <a href="https://support.usercentrics.com/hc/en-us/articles/18097606499100-What-is-a-Settings-ID-and-where-can-I-find-it"
57 target="_blank" class="cb-btn cb-link-btn" rel="noopener">
58 <?php esc_html_e( 'Where to find settings ID', 'cookiebot' ); ?>
59 </a>
60
61 <?php endif; ?>
62 </div>
63 <div class="cb-settings__config__data">
64 <div class="cb-settings__config__data__inner">
65 <h3 class="cb-settings__data__subtitle">
66 <?php esc_html_e( 'Your settings ID', 'cookiebot' ); ?>
67 </h3>
68 <div class="cookiebot-cbid-container">
69 <div class="cookiebot-cbid-input">
70 <input
71 <?php
72 echo ( $is_ms ) ?
73 ' placeholder="' . esc_attr( $network_cbid ) . '" data-network="' . esc_attr( $network_cbid ) . '"' :
74 '';
75 ?>
76 type="text" id="cookiebot-cbid" class="cbid-active" name="cookiebot-cbid"
77 value="<?php echo esc_attr( $cbid ); ?>"/>
78 <div class="cookiebot-cbid-check"></div>
79 </div>
80 <div id="cookiebot-cbid-reset-dialog"
81 class="cb-btn cb-main-btn
82 <?php
83 if ( ! empty( $network_cbid ) && ! $network_cbid_override ) {
84 echo 'hidden';
85 }
86 ?>
87 "><?php esc_html_e( 'Disconnect account', 'cookiebot' ); ?></div>
88 <?php if ( $is_ms ) : ?>
89 <div id="cookiebot-cbid-network-dialog"
90 class="cb-btn cb-white-btn
91 <?php
92 if ( ! empty( $network_cbid ) && $network_cbid_override ) {
93 echo 'hidden';
94 }
95 ?>
96 "><?php esc_html_e( 'Using network account', 'cookiebot' ); ?></div>
97 <?php submit_button( esc_html__( 'Connect account', 'cookiebot' ), 'hidden' ); ?>
98 <?php endif; ?>
99 </div>
100 <?php if ( ! empty( $network_cbid ) ) : ?>
101 <div class="cookiebot-cbid-error-container">
102 <div class="cookiebot-cbid-error hidden" style="color: #d63638; margin-top: 8px; font-size: 14px;">
103 <?php esc_html_e( 'Invalid ID length. Please enter a Settings ID (14 characters) or Domain Group ID (36 characters).', 'cookiebot' ); ?>
104 </div>
105 </div>
106 <div id="cb-network-id-override">
107 <label class="switch-checkbox" for="cookiebot-cbid-override">
108 <input class="
109 <?php
110 if ( ! $network_cbid_override ) {
111 echo 'cb-no-network';
112 }
113 ?>
114 "
115 type="checkbox" name="cookiebot-cbid-override" id="cookiebot-cbid-override" value="1"
116 <?php checked( 1, $network_cbid_override ); ?>>
117 <div class="switcher"></div>
118 <?php esc_html_e( 'Do not use Network Settings ID', 'cookiebot' ); ?>
119 </label>
120 </div>
121 <?php endif; ?>
122 </div>
123 </div>
124 </div>
125
126 <?php if ( ! $was_onboarded ) : ?>
127 <div id="cookiebot-ruleset-id-selector" class="cb-settings__config__item hidden">
128 <div class="cb-settings__config__content">
129 <p class="cb-general__info__text">
130 <?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' ); ?>
131 </p>
132 </div>
133 <div class="cb-settings__config__data">
134 <div class="cb-settings__config__data__inner">
135 <h3 class="cb-settings__data__subtitle">
136 <?php esc_html_e( 'Your current account setup:', 'cookiebot' ); ?>
137 </h3>
138 <label class="recommended-item">
139 <input <?php checked( 'settings', $ruleset_id ); ?>
140 type="radio"
141 name="cookiebot-ruleset-id"
142 value="settings"/>
143 <?php esc_html_e( 'Compliance with one privacy law', 'cookiebot' ); ?>
144 </label>
145 <label>
146 <input <?php checked( 'ruleset', $ruleset_id ); ?>
147 type="radio"
148 name="cookiebot-ruleset-id"
149 value="ruleset"/>
150 <?php esc_html_e( 'Compliance with multiple privacy laws (geolocation)', 'cookiebot' ); ?>
151 </label>
152 </div>
153 </div>
154 </div>
155 <?php endif; ?>
156
157 <?php if ( ! $was_onboarded ) : ?>
158 <div class="cb-settings__config__item">
159 <div class="cb-settings__config__content">
160 <h3 class="cb-settings__config__subtitle">
161 <?php esc_html_e( 'TCF integration', 'cookiebot' ); ?>
162 </h3>
163 <p class="cb-general__info__text">
164 <?php esc_html_e( 'Enable the integration with the latest version of IAB TCF.', 'cookiebot' ); ?>
165 </p>
166 </div>
167 <div class="cb-settings__config__data">
168 <div class="cb-settings__config__data__inner">
169 <label class="switch-checkbox" for="cookiebot-iab">
170 <input type="checkbox" name="cookiebot-iab" id="cookiebot-iab" value="1"
171 <?php checked( 1, $cookiebot_iab ); ?>>
172 <div class="switcher"></div>
173 <?php esc_html_e( 'IAB TCF integration', 'cookiebot' ); ?>
174 </label>
175 </div>
176 </div>
177 </div>
178 <?php endif; ?>
179
180 <?php if ( ! $was_onboarded ) : ?>
181 <div class="cb-settings__config__item">
182 <div class="cb-settings__config__content">
183 <h3 class="cb-settings__config__subtitle">
184 <?php esc_html_e( 'Cookie-blocking', 'cookiebot' ); ?>
185 </h3>
186 <p class="cb-general__info__text">
187 <?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' ); ?>
188 </p>
189 <a href="https://support.usercentrics.com/hc/en-us/articles/17332104757148-Automatic-Data-Processing-Service-blocking"
190 target="_blank" class="cb-btn cb-link-btn" rel="noopener">
191 <?php esc_html_e( 'Learn more', 'cookiebot' ); ?>
192 </a>
193 </div>
194 <div class="cb-settings__config__data">
195 <div class="cb-settings__config__data__inner">
196 <h3 class="cb-settings__data__subtitle">
197 <?php esc_html_e( 'Select cookie-blocking mode', 'cookiebot' ); ?>
198 </h3>
199 <label class="recommended-item">
200 <input <?php checked( 'auto', $cookie_blocking_mode ); ?>
201 type="radio"
202 name="cookiebot-cookie-blocking-mode"
203 value="auto"
204 />
205 <?php esc_html_e( 'Automatic', 'cookiebot' ); ?>
206 <span class="recommended-tag"><?php esc_html_e( 'Recommended', 'cookiebot' ); ?></span>
207 </label>
208 <label>
209 <input <?php checked( 'manual', $cookie_blocking_mode ); ?>
210 type="radio"
211 name="cookiebot-cookie-blocking-mode"
212 value="manual"
213 />
214 <?php esc_html_e( 'Manual', 'cookiebot' ); ?>
215 </label>
216 </div>
217 </div>
218 </div>
219 <?php endif; ?>
220
221 <?php
222 $cv = get_option( 'cookiebot-script-tag-uc-attribute', 'async' );
223 $disabled = false;
224 if ( $is_ms && $network_scrip_tag_uc_attr !== 'custom' ) {
225 $disabled = true;
226 $cv = $network_scrip_tag_uc_attr;
227 }
228 $auto_disabled = $cookie_blocking_mode === 'auto' ? ' disabled__item' : '';
229 ?>
230
231 <div class="cb-settings__config__item secondary__item<?php echo esc_attr( $auto_disabled ); ?>" id="cookie-popup">
232 <div class="cb-settings__config__content">
233 <h3 class="cb-settings__config__subtitle">
234 <?php esc_html_e( 'Hide cookie popup', 'cookiebot' ); ?>
235 </h3>
236 <p class="cb-general__info__note">
237 <?php esc_html_e( 'This feature is only available when using Manual Blocking', 'cookiebot' ); ?>
238 </p>
239 <p class="cb-general__info__text">
240 <?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' ); ?>
241 </p>
242 </div>
243 <div class="cb-settings__config__data">
244 <div class="cb-settings__config__data__inner">
245 <label>
246 <?php
247 $disabled = false;
248 if ( $is_ms && get_site_option( 'cookiebot-nooutput' ) || $is_ms && $network_auto ) {
249 $disabled = true;
250 if ( ! $network_auto ) {
251 echo '<input type="checkbox" checked disabled />';
252 } else {
253 echo '<input type="checkbox" disabled />';
254 }
255 } else {
256 ?>
257 <input type="checkbox" name="cookiebot-nooutput" value="1"
258 <?php
259 checked(
260 1,
261 get_option( 'cookiebot-nooutput', false )
262 );
263 ?>
264 />
265 <?php } ?>
266 <?php esc_html_e( 'Hide the cookie popup banner', 'cookiebot' ); ?>
267 </label>
268 <?php if ( $is_ms && get_site_option( 'cookiebot-nooutput' ) || $is_ms && $network_auto ) { ?>
269 <p class="cb-general__info__note"><?php esc_html_e( 'Disabled by active setting in Network Settings', 'cookiebot' ); ?></p>
270 <?php } ?>
271 </div>
272 </div>
273 </div>
274