PluginProbe ʕ •ᴥ•ʔ
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode / 4.5.4
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode v4.5.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 / 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
270 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();
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 <div class="cb-settings__tabs">
29 </div>
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( 'Disconnecting your banner setup?', 'cookiebot' ); ?>
35 </h3>
36 <p class="cb-general__info__text">
37 <?php esc_html_e( 'Click', 'cookiebot' ); ?>
38 <strong><?php esc_html_e( 'Disconnect account', 'cookiebot' ); ?></strong>
39 <?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' ); ?>
40 </p>
41 <p class="cb-general__info__text">
42 <?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' ); ?>
43 </p>
44
45 <?php if ( $was_onboarded ) : ?>
46 <p class="cb-general__info__text">
47 <?php esc_html_e( 'Need more control over your banner?', 'cookiebot' ); ?>
48 <a href="https://admin.usercentrics.eu/#/v3/configuration/setup?settingsId=<?php echo esc_attr( $cbid ); ?>"
49 target="_blank" class="cb-btn cb-link-btn" rel="noopener">
50 <?php esc_html_e( 'Go to full banner settings', 'cookiebot' ); ?>
51 </a>
52 </p>
53 <?php else : ?>
54 <a href="https://support.usercentrics.com/hc/en-us/articles/18097606499100-What-is-a-Settings-ID-and-where-can-I-find-it"
55 target="_blank" class="cb-btn cb-link-btn" rel="noopener">
56 <?php esc_html_e( 'Where to find settings ID', 'cookiebot' ); ?>
57 </a>
58
59 <?php endif; ?>
60 </div>
61 <div class="cb-settings__config__data">
62 <div class="cb-settings__config__data__inner">
63 <h3 class="cb-settings__data__subtitle">
64 <?php esc_html_e( 'Your settings ID', 'cookiebot' ); ?>
65 </h3>
66 <div class="cookiebot-cbid-container">
67 <div class="cookiebot-cbid-input">
68 <input
69 <?php
70 echo ( $is_ms ) ?
71 ' placeholder="' . esc_attr( $network_cbid ) . '" data-network="' . esc_attr( $network_cbid ) . '"' :
72 '';
73 ?>
74 type="text" id="cookiebot-cbid" class="cbid-active" name="cookiebot-cbid"
75 value="<?php echo esc_attr( $cbid ); ?>"/>
76 <div class="cookiebot-cbid-check"></div>
77 </div>
78 <div id="cookiebot-cbid-reset-dialog"
79 class="cb-btn cb-main-btn
80 <?php
81 if ( ! empty( $network_cbid ) && ! $network_cbid_override ) {
82 echo 'hidden';
83 }
84 ?>
85 "><?php esc_html_e( 'Disconnect account', 'cookiebot' ); ?></div>
86 <?php if ( $is_ms ) : ?>
87 <div id="cookiebot-cbid-network-dialog"
88 class="cb-btn cb-white-btn
89 <?php
90 if ( ! empty( $network_cbid ) && $network_cbid_override ) {
91 echo 'hidden';
92 }
93 ?>
94 "><?php esc_html_e( 'Using network account', 'cookiebot' ); ?></div>
95 <?php submit_button( esc_html__( 'Connect account', 'cookiebot' ), 'hidden' ); ?>
96 <?php endif; ?>
97 </div>
98 <?php if ( ! empty( $network_cbid ) ) : ?>
99 <div id="cb-network-id-override">
100 <label class="switch-checkbox" for="cookiebot-cbid-override">
101 <input class="
102 <?php
103 if ( ! $network_cbid_override ) {
104 echo 'cb-no-network';
105 }
106 ?>
107 "
108 type="checkbox" name="cookiebot-cbid-override" id="cookiebot-cbid-override" value="1"
109 <?php checked( 1, $network_cbid_override ); ?>>
110 <div class="switcher"></div>
111 <?php esc_html_e( 'Do not use Network Settings ID', 'cookiebot' ); ?>
112 </label>
113 </div>
114 <?php endif; ?>
115 </div>
116 </div>
117 </div>
118
119 <?php if ( ! $was_onboarded ) : ?>
120 <div id="cookiebot-ruleset-id-selector" class="cb-settings__config__item hidden">
121 <div class="cb-settings__config__content">
122 <p class="cb-general__info__text">
123 <?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' ); ?>
124 </p>
125 </div>
126 <div class="cb-settings__config__data">
127 <div class="cb-settings__config__data__inner">
128 <h3 class="cb-settings__data__subtitle">
129 <?php esc_html_e( 'Your current account setup:', 'cookiebot' ); ?>
130 </h3>
131 <label class="recommended-item">
132 <input <?php checked( 'settings', $ruleset_id ); ?>
133 type="radio"
134 name="cookiebot-ruleset-id"
135 value="settings"/>
136 <?php esc_html_e( 'Compliance with one privacy law', 'cookiebot' ); ?>
137 </label>
138 <label>
139 <input <?php checked( 'ruleset', $ruleset_id ); ?>
140 type="radio"
141 name="cookiebot-ruleset-id"
142 value="ruleset"/>
143 <?php esc_html_e( 'Compliance with multiple privacy laws (geolocation)', 'cookiebot' ); ?>
144 </label>
145 </div>
146 </div>
147 </div>
148 <?php endif; ?>
149
150 <?php if ( ! $was_onboarded ) : ?>
151 <div class="cb-settings__config__item">
152 <div class="cb-settings__config__content">
153 <h3 class="cb-settings__config__subtitle">
154 <?php esc_html_e( 'TCF integration', 'cookiebot' ); ?>
155 </h3>
156 <p class="cb-general__info__text">
157 <?php esc_html_e( 'Enable the integration with the latest version of IAB TCF.', 'cookiebot' ); ?>
158 </p>
159 </div>
160 <div class="cb-settings__config__data">
161 <div class="cb-settings__config__data__inner">
162 <label class="switch-checkbox" for="cookiebot-iab">
163 <input type="checkbox" name="cookiebot-iab" id="cookiebot-iab" value="1"
164 <?php checked( 1, $cookiebot_iab ); ?>>
165 <div class="switcher"></div>
166 <?php esc_html_e( 'IAB TCF integration', 'cookiebot' ); ?>
167 </label>
168 </div>
169 </div>
170 </div>
171 <?php endif; ?>
172
173 <?php if ( ! $was_onboarded ) : ?>
174 <div class="cb-settings__config__item">
175 <div class="cb-settings__config__content">
176 <h3 class="cb-settings__config__subtitle">
177 <?php esc_html_e( 'Cookie-blocking', 'cookiebot' ); ?>
178 </h3>
179 <p class="cb-general__info__text">
180 <?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' ); ?>
181 </p>
182 <a href="https://support.usercentrics.com/hc/en-us/articles/17332104757148-Automatic-Data-Processing-Service-blocking"
183 target="_blank" class="cb-btn cb-link-btn" rel="noopener">
184 <?php esc_html_e( 'Learn more', 'cookiebot' ); ?>
185 </a>
186 </div>
187 <div class="cb-settings__config__data">
188 <div class="cb-settings__config__data__inner">
189 <h3 class="cb-settings__data__subtitle">
190 <?php esc_html_e( 'Select cookie-blocking mode', 'cookiebot' ); ?>
191 </h3>
192 <label class="recommended-item">
193 <input <?php checked( 'auto', $cookie_blocking_mode ); ?>
194 type="radio"
195 name="cookiebot-cookie-blocking-mode"
196 value="auto"
197 <?php echo $is_ms && $network_auto ? ' disabled' : ''; ?>/>
198 <?php esc_html_e( 'Automatic', 'cookiebot' ); ?>
199 <span class="recommended-tag"><?php esc_html_e( 'Recommended', 'cookiebot' ); ?></span>
200 </label>
201 <label>
202 <input <?php checked( 'manual', $cookie_blocking_mode ); ?>
203 type="radio"
204 name="cookiebot-cookie-blocking-mode"
205 value="manual"
206 <?php echo $is_ms && $network_auto ? ' disabled' : ''; ?>/>
207 <?php esc_html_e( 'Manual', 'cookiebot' ); ?>
208 </label>
209 <?php if ( $is_ms && $network_auto ) { ?>
210 <p class="cb-general__info__note"><?php esc_html_e( 'Disabled by active setting in Network Settings', 'cookiebot' ); ?></p>
211 <?php } ?>
212 </div>
213 </div>
214 </div>
215 <?php endif; ?>
216
217 <?php
218 $cv = get_option( 'cookiebot-script-tag-uc-attribute', 'async' );
219 $disabled = false;
220 if ( $is_ms && $network_scrip_tag_uc_attr !== 'custom' ) {
221 $disabled = true;
222 $cv = $network_scrip_tag_uc_attr;
223 }
224 $auto_disabled = $cookie_blocking_mode === 'auto' ? ' disabled__item' : '';
225 ?>
226
227 <div class="cb-settings__config__item secondary__item<?php echo esc_attr( $auto_disabled ); ?>" id="cookie-popup">
228 <div class="cb-settings__config__content">
229 <h3 class="cb-settings__config__subtitle">
230 <?php esc_html_e( 'Hide cookie popup', 'cookiebot' ); ?>
231 </h3>
232 <p class="cb-general__info__note">
233 <?php esc_html_e( 'This feature is only available when using Manual Blocking', 'cookiebot' ); ?>
234 </p>
235 <p class="cb-general__info__text">
236 <?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' ); ?>
237 </p>
238 </div>
239 <div class="cb-settings__config__data">
240 <div class="cb-settings__config__data__inner">
241 <label>
242 <?php
243 $disabled = false;
244 if ( $is_ms && get_site_option( 'cookiebot-nooutput' ) || $is_ms && $network_auto ) {
245 $disabled = true;
246 if ( ! $network_auto ) {
247 echo '<input type="checkbox" checked disabled />';
248 } else {
249 echo '<input type="checkbox" disabled />';
250 }
251 } else {
252 ?>
253 <input type="checkbox" name="cookiebot-nooutput" value="1"
254 <?php
255 checked(
256 1,
257 get_option( 'cookiebot-nooutput', false )
258 );
259 ?>
260 />
261 <?php } ?>
262 <?php esc_html_e( 'Hide the cookie popup banner', 'cookiebot' ); ?>
263 </label>
264 <?php if ( $is_ms && get_site_option( 'cookiebot-nooutput' ) || $is_ms && $network_auto ) { ?>
265 <p class="cb-general__info__note"><?php esc_html_e( 'Disabled by active setting in Network Settings', 'cookiebot' ); ?></p>
266 <?php } ?>
267 </div>
268 </div>
269 </div>
270