PluginProbe ʕ •ᴥ•ʔ
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode / 4.3.11
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode v4.3.11
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 / settings / network-settings-page.php
cookiebot / src / view / admin / settings Last commit date
multiple-configuration 3 years ago prior-consent 2 years ago dashboard-page.php 1 year ago debug-page.php 3 years ago gcm-page.php 3 years ago gtm-page.php 3 years ago iab-page.php 1 year ago legislations-page.php 3 years ago network-settings-page.php 1 year ago settings-page.php 1 year ago support-page.php 1 year ago
network-settings-page.php
319 lines
1 <?php
2 use cybot\cookiebot\settings\templates\Header;
3 use cybot\cookiebot\settings\templates\Main_Tabs;
4 /**
5 * @var string $logo
6 * @var string $cookiebot_gdpr_url
7 * @var string $cbm
8 */
9
10 $header = new Header();
11 $main_tabs = new Main_Tabs();
12
13 $today = new DateTime( 'now' );
14 $end_date = new DateTime( '2024-12-03' );
15 $remaining = $today->diff( $end_date );
16 $days_left = $remaining->format( '%d' );
17
18 $header->display();
19 ?>
20 <div class="cb-body">
21 <div class="cb-wrapper">
22 <?php $main_tabs->display( 'settings' ); ?>
23 <div class="cb-main__content">
24 <form method="post" action="edit.php?action=cookiebot_network_settings">
25 <?php wp_nonce_field( 'cookiebot-network-settings' ); ?>
26 <div class="cb-settings__header">
27 <h1 class="cb-main__page_title"><?php esc_html_e( 'Network Settings', 'cookiebot' ); ?></h1>
28 <?php submit_button(); ?>
29 </div>
30
31 <div class="cb-settings__tabs">
32 </div>
33
34 <div class="cb-settings__tabs__content">
35 <div class="cb-settings__tabs__content--item active-item">
36 <?php if ( ! esc_attr( get_site_option( 'cookiebot-cbid', '' ) ) ) : ?>
37 <div class="cb-general__new__account">
38 <h2 class="cb-general__info__title"><?php esc_html_e( 'Do you not have an account yet?', 'cookiebot' ); ?></h2>
39 <p class="cb-general__info__text">
40 <?php esc_html_e( 'To use Cookiebot for WordPress you need to visit our website and sign-up. After you have signed up, you can configure your banner and then place the Cookiebot Domain Group ID below. Navigate to Settings and to "Your Scripts" to find your ID.', 'cookiebot' ); ?>
41 </p>
42 <?php if ( $today >= $end_date ) : ?>
43 <div class="new-account-actions">
44 <a href="https://admin.cookiebot.com/signup/?utm_source=wordpress&utm_medium=referral&utm_campaign=banner" target="_blank" rel="noopener" class="cb-btn cb-main-btn"><?php esc_html_e( 'Create a new Account', 'cookiebot' ); ?></a>
45 <a href="https://support.cookiebot.com/hc/en-us/articles/360003784174-Installing-Cookiebot-CMP-on-WordPress" target="_blank" rel="noopener" class="cb-btn cb-link-btn"><?php esc_html_e( 'Get help with connecting your account', 'cookiebot' ); ?></a>
46 </div>
47 <?php endif; ?>
48 </div>
49
50 <?php if ( $today < $end_date ) : ?>
51 <div class="cb-general__new__account--double">
52 <div class="cb-main__card__inner new_card">
53 <div class="cb-main__card__content">
54 <h2 class="cb-main__card__title">
55 <?php echo esc_html__( 'Create a new Cookiebot CMP account', 'cookiebot' ); ?>
56 </h2>
57 <div class="cb-bf-counter">
58 <div class="cb-bf-counter-label">-10%</div>
59 <div class="cb-bf-counter-number"><?php echo esc_html( $days_left ); ?></div>
60 <div class="cb-bf-counter-last"><?php echo $days_left === '1' ? esc_html( 'day' ) : esc_html( 'days' ); ?> to go</div>
61 </div>
62 <a href="https://admin.cookiebot.com/signup?coupon=BFRIDAYWP10&utm_source=wordpress&utm_medium=referral&utm_campaign=banner"
63 target="_blank" class="cb-btn cb-main-btn" rel="noopener">
64 <?php echo esc_html__( 'Create a new account', 'cookiebot' ); ?>
65 </a>
66 </div>
67 </div>
68
69 <div class="cb-main__card__inner new_card">
70 <div class="cb-main__card__content">
71 <h2 class="cb-main__card__title">
72 <?php esc_html_e( 'Need help with your configuration?', 'cookiebot' ); ?>
73 </h2>
74
75 <a href="https://support.cookiebot.com/hc/en-us/articles/360003784174-Installing-Cookiebot-CMP-on-WordPress"
76 target="_blank" class="cb-btn cb-main-btn" rel="noopener">
77 <?php esc_html_e( 'Get help with connecting your account', 'cookiebot' ); ?>
78 </a>
79 </div>
80 </div>
81 </div>
82 <?php endif; ?>
83 <?php endif; ?>
84
85 <div class="cb-settings__config__item">
86 <div class="cb-settings__config__content">
87 <h3 class="cb-settings__config__subtitle"><?php esc_html_e( 'Network Domain Group:', 'cookiebot' ); ?></h3>
88 <p class="cb-general__info__text">
89 <?php esc_html_e( 'If added this will be the default Cookiebot ID for all subsites. Subsites are able to override the Cookiebot ID.', 'cookiebot' ); ?>
90 </p>
91 <a href="https://support.cookiebot.com/hc/en-us/articles/4405643234194-Your-CBID-or-Domain-group-ID-and-where-to-find-it" target="_blank" rel="noopener" class="cb-btn cb-link-btn"><?php esc_html_e( 'Read more on the Domain Group ID', 'cookiebot' ); ?></a>
92 </div>
93 <div class="cb-settings__config__data">
94 <div class="cb-settings__config__data__inner">
95 <h3 class="cb-settings__data__subtitle"><?php esc_html_e( 'Add your Domain Group ID', 'cookiebot' ); ?></h3>
96 <input
97 type="text"
98 name="cookiebot-cbid"
99 value="<?php echo esc_attr( get_site_option( 'cookiebot-cbid', '' ) ); ?>"
100 />
101 </div>
102 </div>
103 </div>
104
105 <div class="cb-settings__config__item">
106 <div class="cb-settings__config__content">
107 <h3 class="cb-settings__config__subtitle"><?php esc_html_e( 'Cookie-blocking mode', 'cookiebot' ); ?></h3>
108 <p class="cb-general__info__text">
109 <?php esc_html_e( 'Select your cookie-blocking mode here. Auto cookie-blocking mode will automatically block all cookies (except for ‘strictly necessary’ cookies) until a user has given consent. Manual cookie-blocking mode requests manual adjustments to the cookie-setting scripts. Please find our implementation guides below:', 'cookiebot' ); ?>
110 </p>
111 </div>
112 <div class="cb-settings__config__data">
113 <div class="cb-settings__config__data__inner">
114 <h3 class="cb-settings__data__subtitle"><?php esc_html_e( 'Select the Cookie-blocking mode', 'cookiebot' ); ?></h3>
115 <label class="recommended-item">
116 <input <?php checked( 'auto', $cbm ); ?>
117 type="radio"
118 name="cookiebot-cookie-blocking-mode"
119 value="auto"
120 />
121 <?php esc_html_e( 'Automatic cookie-blocking mode', 'cookiebot' ); ?>
122 <span class="recommended-tag"><?php esc_html_e( 'Recommended', 'cookiebot' ); ?></span>
123 </label>
124 <label>
125 <input <?php checked( 'manual', $cbm ); ?>
126 type="radio"
127 name="cookiebot-cookie-blocking-mode"
128 value="manual"
129 />
130 <?php esc_html_e( 'Choose per subsite', 'cookiebot' ); ?>
131 </label>
132 </div>
133 </div>
134 </div>
135
136 <div class="cb-settings__config__item secondary__item" id="declaration-tag">
137 <div class="cb-settings__config__content">
138 <h3 class="cb-settings__config__subtitle"><?php esc_html_e( 'Cookiebot™ script tag', 'cookiebot' ); ?></h3>
139 <p class="cb-general__info__text">
140 <?php esc_html_e( 'Add async or defer attribute to Cookie banner script tag. Default: Choose per subsite', 'cookiebot' ); ?>
141 </p>
142 <p class="cb-general__info__note">
143 <?php esc_html_e( 'This feature is only available when not using Auto Blocking', 'cookiebot' ); ?>
144 </p>
145 <p class="cb-general__info__note">
146 <?php esc_html_e( 'Setting will apply for all subsites. Subsites will not be able to override.', 'cookiebot' ); ?>
147 </p>
148 </div>
149 <div class="cb-settings__config__data">
150 <div class="cb-settings__config__data__inner">
151 <?php
152 $cv = get_site_option( 'cookiebot-script-tag-uc-attribute', 'custom' );
153 ?>
154 <label>
155 <input
156 type="radio"
157 name="cookiebot-script-tag-uc-attribute"
158 value="" <?php checked( '', $cv ); ?> />
159 <?php esc_html_e( 'None', 'cookiebot' ); ?>
160 </label>
161 <label>
162 <input
163 type="radio"
164 name="cookiebot-script-tag-uc-attribute"
165 value="async" <?php checked( 'async', $cv ); ?> />
166 async
167 </label>
168 <label>
169 <input
170 type="radio"
171 name="cookiebot-script-tag-uc-attribute"
172 value="defer" <?php checked( 'defer', $cv ); ?> />
173 defer
174 </label>
175 <label>
176 <input
177 type="radio"
178 name="cookiebot-script-tag-uc-attribute"
179 value="custom" <?php checked( 'custom', $cv ); ?> />
180 <?php esc_html_e( 'Choose per subsite', 'cookiebot' ); ?>
181 </label>
182 </div>
183 </div>
184 </div>
185
186 <div class="cb-settings__config__item">
187 <div class="cb-settings__config__content">
188 <h3 class="cb-settings__config__subtitle"><?php esc_html_e( 'Cookiebot declaration script tag', 'cookiebot' ); ?></h3>
189 <p class="cb-general__info__note">
190 <?php esc_html_e( 'Setting will apply for all subsites. Subsites will not be able to override.', 'cookiebot' ); ?>
191 </p>
192 <p class="cb-general__info__text">
193 <?php esc_html_e( 'Add async or defer attribute to Cookie declaration script tag. Default: Choose per subsite', 'cookiebot' ); ?>
194 </p>
195 </div>
196 <div class="cb-settings__config__data">
197 <div class="cb-settings__config__data__inner">
198 <?php
199 $cv = get_site_option( 'cookiebot-script-tag-cd-attribute', 'custom' );
200 ?>
201 <label>
202 <input
203 type="radio"
204 name="cookiebot-script-tag-cd-attribute"
205 value="" <?php checked( '', $cv ); ?> />
206 <?php esc_html_e( 'None', 'cookiebot' ); ?>
207 </label>
208 <label>
209 <input
210 type="radio"
211 name="cookiebot-script-tag-cd-attribute"
212 value="async" <?php checked( 'async', $cv ); ?> />
213 async
214 </label>
215 <label>
216 <input
217 type="radio"
218 name="cookiebot-script-tag-cd-attribute"
219 value="defer" <?php checked( 'defer', $cv ); ?> />
220 defer
221 </label>
222 <label>
223 <input
224 type="radio"
225 name="cookiebot-script-tag-cd-attribute"
226 value="custom" <?php checked( 'custom', $cv ); ?> />
227 <?php esc_html_e( 'Choose per subsite', 'cookiebot' ); ?>
228 </label>
229 </div>
230 </div>
231 </div>
232
233 <div class="cb-settings__config__item">
234 <div class="cb-settings__config__content">
235 <h3 class="cb-settings__config__subtitle"><?php esc_html_e( 'Auto-update Cookiebot™ Plugin:', 'cookiebot' ); ?></h3>
236 <p class="cb-general__info__text">
237 <?php esc_html_e( 'Automatically update your Cookiebot™ plugin when new releases becomes available.', 'cookiebot' ); ?>
238 </p>
239 </div>
240 <div class="cb-settings__config__data">
241 <div class="cb-settings__config__data__inner">
242 <label class="switch-checkbox" for="cookiebot-autoupdate">
243 <input id="cookiebot-autoupdate" type="checkbox" name="cookiebot-autoupdate" value="1"
244 <?php
245 checked(
246 1,
247 get_site_option( 'cookiebot-autoupdate' )
248 );
249 ?>
250 />
251 <div class="switcher"></div>
252 <?php esc_html_e( 'Automatically update Cookiebot Plugin', 'cookiebot' ); ?>
253 </label>
254 </div>
255 </div>
256 </div>
257
258 <div class="cb-settings__config__item" id="cookie-popup">
259 <div class="cb-settings__config__content">
260 <h3 class="cb-settings__config__subtitle"><?php esc_html_e( 'Hide cookie popup', 'cookiebot' ); ?></h3>
261 <p class="cb-general__info__note">
262 <?php esc_html_e( 'Setting will apply for all subsites. Subsites will not be able to override.', 'cookiebot' ); ?>
263 </p>
264 <p class="cb-general__info__text">
265 <?php esc_html_e( 'This checkbox will remove the cookie consent banner from your website. The 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' ); ?>
266 </p>
267 </div>
268 <div class="cb-settings__config__data">
269 <div class="cb-settings__config__data__inner">
270 <label class="switch-checkbox" for="cookiebot-nooutput">
271 <input id="cookiebot-nooutput" type="checkbox" name="cookiebot-nooutput" value="1"
272 <?php
273 checked(
274 1,
275 get_site_option( 'cookiebot-nooutput', false )
276 );
277 ?>
278 />
279 <div class="switcher"></div>
280 <?php esc_html_e( 'Hide the cookie popup banner', 'cookiebot' ); ?>
281 </label>
282 </div>
283 </div>
284 </div>
285
286 <div class="cb-settings__config__item">
287 <div class="cb-settings__config__content">
288 <h3 class="cb-settings__config__subtitle"><?php esc_html_e( 'Cookiebot CMP in WP Admin:', 'cookiebot' ); ?></h3>
289 <p class="cb-general__info__note">
290 <?php esc_html_e( 'Setting will apply for all subsites. Subsites will not be able to override.', 'cookiebot' ); ?>
291 </p>
292 <p class="cb-general__info__text">
293 <?php esc_html_e( 'This checkbox will disable Cookiebot to act within the WordPress Admin area', 'cookiebot' ); ?>
294 </p>
295 </div>
296 <div class="cb-settings__config__data">
297 <div class="cb-settings__config__data__inner">
298 <label class="switch-checkbox" for="cookiebot-nooutput-admin">
299 <input id="cookiebot-nooutput-admin" type="checkbox" name="cookiebot-nooutput-admin" value="1"
300 <?php
301 checked(
302 1,
303 get_site_option( 'cookiebot-nooutput-admin' )
304 );
305 ?>
306 />
307 <div class="switcher"></div>
308 <?php esc_html_e( 'Disable Cookiebot CMP in the WordPress Admin area', 'cookiebot' ); ?>
309 </label>
310 </div>
311 </div>
312 </div>
313 </div>
314 </div>
315 </form>
316 </div>
317 </div>
318 </div>
319