PluginProbe ʕ •ᴥ•ʔ
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode / 4.5.3
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode v4.5.3
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 / common / dashboard-page.php
cookiebot / src / view / admin / common Last commit date
prior-consent 1 year ago templates 1 year ago dashboard-page-old.php 1 year ago dashboard-page-session-expired.php 1 year ago dashboard-page-static.php 1 year ago dashboard-page.php 1 year ago dashboard-trial-expired.php 1 year ago network-settings-page.php 1 year ago settings-page.php 1 year ago support-page.php 1 year ago
dashboard-page.php
492 lines
1 <?php
2
3 use cybot\cookiebot\lib\Cookiebot_WP;
4 use cybot\cookiebot\settings\templates\Header;
5 use cybot\cookiebot\settings\templates\Main_Tabs;
6 use cybot\cookiebot\settings\pages\Settings_Page;
7
8 /**
9 * @var array $template_args Array containing all template variables
10 */
11
12 $header = new Header();
13 $main_tabs = new Main_Tabs();
14
15 $header->display();
16 ?>
17
18
19 <div class="cb-body">
20
21 <!-- Banner container for proper alignment -->
22 <div class="banner-container">
23 <!-- Trial expiration notice -->
24 <?php
25 $trial_expired = Cookiebot_WP::is_trial_expired();
26 $upgraded = Cookiebot_WP::has_upgraded();
27
28 if ( $trial_expired && ! $upgraded ) :
29 ?>
30 <div class="header-top-banners trial-expired-banner">
31 <div class="banner-content">
32 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/clock-icon.svg' ); ?>"
33 alt="Clock Icon">
34 <div>
35 <h3><?php echo esc_html__( 'Your premium trial is over', 'cookiebot' ); ?></h3>
36 <p>
37 <?php echo esc_html__( 'Reactive your banner to regain full access to your account and display the cookie banner on your website.', 'cookiebot' ); ?>
38 </p>
39 </div>
40 </div>
41 <div class="upgrade-expired-trial">
42 <a href="https://account.usercentrics.eu/subscription/<?php echo isset( $template_args['user_data']['subscriptions']['active']['subscription_id'] ) ? esc_attr( $template_args['user_data']['subscriptions']['active']['subscription_id'] ) . '/' : ''; ?>manage" target="_blank" style="text-decoration: none; color: inherit;">
43 <h3><?php echo esc_html__( 'Reactivate banner', 'cookiebot' ); ?> <span class="upgrade-chevron">&rsaquo;</span></h3>
44 </a>
45 </div>
46 </div>
47 <?php endif; ?>
48
49 <!-- Banner connected notice -->
50 <?php if ( ! empty( $template_args['cbid'] ) && empty( $template_args['user_data'] ) ) : ?>
51 <div class="header-top-banners connected-banner">
52 <div class="banner-content">
53 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/check-green.svg' ); ?>"
54 alt="Check Icon">
55 <div>
56 <h3><?php echo esc_html__( 'Your banner is connected!', 'cookiebot' ); ?></h3>
57 <p style="text-wrap: nowrap;">
58 <?php echo esc_html__( 'Everything works as before. Manage your banner in the', 'cookiebot' ); ?>
59 <a href="<?php echo esc_url( $template_args['cookiebot_admin_link'] ); ?>" target="_blank"><?php echo esc_html__( 'Cookiebot Manager', 'cookiebot' ); ?></a>
60 <?php echo esc_html__( 'or', 'cookiebot' ); ?>
61 <a href="<?php echo esc_url( $template_args['uc_admin_link'] ); ?>" target="_blank"><?php echo esc_html__( 'Usercentrics Admin', 'cookiebot' ); ?></a>.
62 </p>
63 </div>
64 </div>
65 </div>
66 <?php endif; ?>
67
68 <!-- Banner is live notice -->
69 <?php
70 $banner_dismissed = get_option( 'cookiebot_banner_live_dismissed', false );
71
72 if ( ! empty( $template_args['cbid'] ) && ! empty( $template_args['user_data'] ) && ! $banner_dismissed ) :
73 ?>
74 <div class="header-top-banners banner-live-banner" id="banner-live-notice">
75 <div class="banner-content">
76 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/check-white.svg' ); ?>"
77 alt="Check Icon">
78 <div>
79 <h3>Well done! Your <a href="<?php echo esc_url( site_url() ); ?>" target="_blank" class="banner-live-link">banner is live</a>.</h3>
80 <p>
81 <?php echo esc_html__( 'If you\'ve signed up or logged in for the first time, your banner may take a few seconds to load on your website.', 'cookiebot' ); ?>
82 </p>
83 </div>
84 </div>
85 <button class="banner-close-btn" aria-label="Close banner" id="banner-close-btn">
86 <span aria-hidden="true">×</span>
87 </button>
88 </div>
89 <?php endif; ?>
90 </div>
91
92 <div class="cb-wrapper">
93 <?php $main_tabs->display( 'dashboard' ); ?>
94
95 <div class="dashboard-grid <?php echo ! empty( $template_args['cbid'] ) ? 'has-cbid' : ''; ?>">
96
97 <!-- Main Content Area -->
98 <div class="dashboard-grid-row">
99 <div class="gray-box">
100 <div class="header-section-no-margin">
101 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/set-up-icon.svg' ); ?>" alt="Usercentrics Logo">
102 <?php if ( ! empty( $template_args['cbid'] ) && empty( $template_args['user_data'] ) ) : ?>
103 <h1><?php echo \esc_html__( 'Simplify your banner management', 'cookiebot' ); ?></h1>
104 <?php else : ?>
105 <h1><?php echo \esc_html__( 'Set up your consent banner', 'cookiebot' ); ?></h1>
106 <?php endif; ?>
107 </div>
108 <div class="header-section">
109 <?php if ( empty( $template_args['cbid'] ) && empty( $template_args['user_data'] ) ) : ?>
110 <p class="subtitle">
111 <?php echo esc_html__( 'Get your site GDPR-compliant in', 'cookiebot' ); ?>
112 <strong><?php echo esc_html__( 'just a few clicks.', 'cookiebot' ); ?></strong>
113 <?php echo esc_html__( 'Enter your email, verify it, and create your password.', 'cookiebot' ); ?>
114 </p>
115 <?php endif; ?>
116 <?php if ( ! empty( $template_args['cbid'] ) && empty( $template_args['user_data'] ) ) : ?>
117 <p class="subtitle">
118 <?php echo esc_html__( 'Your setup is good to go - but we\'re making banner control even easier inside WordPress.', 'cookiebot' ); ?>
119 <strong><?php echo esc_html__( 'Get access to new features', 'cookiebot' ); ?></strong>
120 <?php echo esc_html__( 'by updating your banner today.', 'cookiebot' ); ?>
121 </p>
122 <?php endif; ?>
123 </div>
124
125
126 <!-- Steps Container -->
127 <div class="steps-container">
128 <!-- Activate your banner step -->
129 <div class="step-box <?php echo ! empty( $template_args['cbid'] ) ? 'completed' : ''; ?>">
130 <div class="step-row">
131
132 <?php if ( ! empty( $template_args['cbid'] ) && empty( $template_args['user_data'] ) ) : ?>
133 <div class="step-icon">
134 <div class="empty-circle"></div>
135 </div>
136 <div class="step-content">
137 <h2><?php echo \esc_html__( 'Unlock new banner', 'cookiebot' ); ?></h2>
138 </div>
139 <?php endif; ?>
140
141 <?php if ( empty( $template_args['cbid'] ) && empty( $template_args['user_data'] ) ) : ?>
142 <div class="step-icon">
143 <div class="empty-circle"></div>
144 </div>
145 <div class="step-content">
146 <h2><?php echo \esc_html__( 'Activate your banner', 'cookiebot' ); ?></h2>
147 </div>
148 <?php endif; ?>
149
150 <?php if ( ! empty( $template_args['cbid'] ) && ! empty( $template_args['user_data'] ) ) : ?>
151 <div class="step-icon">
152 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/check-mark.svg' ); ?>" alt="Checkmark">
153 </div>
154 <div class="step-content">
155 <h2><?php echo \esc_html__( 'Activate your banner', 'cookiebot' ); ?></h2>
156 </div>
157 <span class="done-status">Done!</span>
158 <?php endif; ?>
159
160 </div>
161
162 <?php if ( empty( $template_args['user_data'] ) ) : ?>
163 <div class="banner-preview-container">
164 <div class="divider"></div>
165 <?php if ( ! empty( $template_args['cbid'] ) && empty( $template_args['user_data'] ) ) : ?>
166 <p class="step-description">
167 <?php echo esc_html__( 'We\'ve simplified privacy compliance for you. Save time with auto-setup, website scanning for data processing services, and consent-first blocking.', 'cookiebot' ); ?>
168 </p>
169 <?php else : ?>
170 <p class="step-description">
171 <?php echo esc_html__( 'Activate your banner in seconds with easy auto-setup, smart data processing services detection, and consent-first blocking for automated privacy compliance.', 'cookiebot' ); ?>
172 </p>
173 <?php endif; ?>
174 <div class="banner-images">
175 <?php
176 $banner1_url = CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/banner-getting-started1.png';
177 $banner2_url = CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/banner-getting-started2.png';
178 $arrow_url = CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/banner-arrow.png';
179 ?>
180 <img src="<?php echo \esc_url( $banner1_url ); ?>"
181 alt="Banner Preview 1"
182 class="banner-image">
183 <img src="<?php echo \esc_url( $banner2_url ); ?>"
184 alt="Banner Preview 2"
185 class="banner-image">
186 </div>
187 <div class="activate-container">
188 <button id="get-started-button" class="cb-btn cb-primary-btn cb-get-started-btn">
189 <?php echo esc_html__( 'Get Started', 'cookiebot' ); ?>
190 </button>
191 <img src="<?php echo \esc_url( $arrow_url ); ?>"
192 alt="arrow"
193 class="banner-arrow">
194 </div>
195
196 <?php if ( ! empty( $template_args['cbid'] ) ) : ?>
197 <div class="note-text">
198 <img class="note-icon" src="<?php echo esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/info.svg' ); ?>" />
199 <span>Note: A new account comes with a new banner, which will replace your existing one.</span>
200 </div>
201 <?php endif; ?>
202
203 </div>
204 <?php endif; ?>
205 </div>
206
207 <!-- Scan website step - only show when CBID exists -->
208 <?php if ( ! empty( $template_args['user_data'] ) ) : ?>
209 <div class="step-box">
210 <div class="step-row">
211 <div class="step-icon">
212 <?php if ( $template_args['scan_status'] === 'DONE' ) : ?>
213 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/check-mark.svg' ); ?>" alt="Checkmark">
214 <?php else : ?>
215 <div class="empty-circle"></div>
216 <?php endif; ?>
217 </div>
218 <div class="step-content">
219 <h2><?php echo \esc_html__( 'Scan website', 'cookiebot' ); ?></h2>
220 </div>
221 <div class="step-status">
222 <?php
223 switch ( $template_args['scan_status'] ) {
224 case 'IN_PROGRESS':
225 ?>
226 <span class="in-progress-status">
227 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/clock-icon.svg' ); ?>" alt="Clock Icon">
228 In Progress
229 </span>
230 <?php
231 break;
232 case 'DONE':
233 ?>
234 <span class="done-status">Done!</span>
235 <?php
236 break;
237 default:
238 ?>
239 <span class="failed-status">
240 Failed
241 </span>
242 <?php
243 }
244 ?>
245 <?php if ( $template_args['scan_status'] !== 'DONE' ) : ?>
246 <button class="expand-toggle" aria-expanded="false" aria-controls="scan-details">
247 <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="arrow-icon">
248 <path d="M7 10l5 5 5-5z" fill="#6B7280" />
249 </svg>
250 </button>
251 <?php endif; ?>
252 </div>
253 </div>
254
255 <!-- Scan details section (initially hidden) -->
256 <?php if ( $template_args['scan_status'] !== 'DONE' ) : ?>
257 <div id="scan-details" class="scan-details" style="display: block;">
258 <div class="divider"></div>
259 <p class="scan-message">
260 <?php if ( $template_args['scan_status'] !== 'IN_PROGRESS' ) : ?>
261 Oops! We couldn't start or complete your scan! Try initiating a scan manually via the <a href="https://admin.usercentrics.eu/#/v3/service-settings/dps-scanner?settingsId=<?php echo esc_attr( $template_args['cbid'] ); ?>" target="_blank">Admin Interface</a>.
262 <?php else : ?>
263 We're scanning your website for data processing services. They should appear in 10 minutes, but it may take up to 24 hours. For more information, please review your <a href="https://admin.usercentrics.eu/#/v3/service-settings/dps-scanner?settingsId=<?php echo esc_attr( $template_args['cbid'] ); ?>" target="_blank">service settings</a>.
264 <?php endif; ?>
265 </p>
266 </div>
267 <?php endif; ?>
268 </div>
269 <?php endif; ?>
270
271 <!-- Upgrade your plan step -->
272 <?php if ( ! empty( $template_args['user_data'] ) ) : ?>
273 <div class="step-box">
274 <div class="step-row">
275 <div class="step-icon">
276 <?php
277 $is_upgraded = Cookiebot_WP::has_upgraded();
278 if ( $is_upgraded ) :
279 ?>
280 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/check-mark.svg' ); ?>" alt="Checkmark">
281 <?php else : ?>
282 <div class="empty-circle"></div>
283 <?php endif; ?>
284 </div>
285 <div class="step-content">
286 <h2><?php echo \esc_html__( 'Upgrade your plan', 'cookiebot' ); ?></h2>
287 </div>
288 <?php if ( $is_upgraded ) : ?>
289 <span class="done-status">Done!</span>
290 <?php else : ?>
291 <div class="step-status">
292 <div class="lightning-badge">
293 <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
294 <path d="M7.58333 0.583344L1.75 8.16668H7L6.41667 13.4167L12.25 5.83334H7L7.58333 0.583344Z" fill="#0047FF" />
295 </svg>
296 </div>
297 </div>
298 <?php endif; ?>
299 </div>
300
301 <!-- Upgrade details section -->
302 <?php if ( $is_upgraded ) : ?>
303 <div class="upgrade-details">
304 <div class="divider"></div>
305 <div class="subscription-info">
306 <div>
307 <div class="upgrade-header">
308 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/celebration.svg' ); ?>" alt="Celebration" class="celebration-icon">
309 <h3>You've upgraded to <span class="plan-name"><?php echo esc_html( $template_args['subscription'] ); ?></span>!</h3>
310 </div>
311 <?php if ( isset( $template_args['user_data']['subscriptions']['active']['subscription_id'] ) ) : ?>
312 <a href="https://account.usercentrics.eu/subscription/<?php echo esc_attr( $template_args['user_data']['subscriptions']['active']['subscription_id'] ); ?>/manage" class="manage-features-link" target="_blank">
313 <?php else : ?>
314 <a href="https://account.usercentrics.eu/subscription/manage" class="manage-features-link" target="_blank">
315 <?php endif; ?>
316 <p>Manage advanced features</p>
317 </a>
318 </div>
319 <?php if ( isset( $template_args['user_data']['subscriptions']['active']['next_billing_date'] ) ) : ?>
320 <div class="billing-date">
321 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/calendar.svg' ); ?>" alt="Calendar" class="calendar-icon">
322 <h3><?php echo esc_html__( 'Next billing date: ', 'cookiebot' ) . esc_html( gmdate( 'd/m/Y', strtotime( $template_args['user_data']['subscriptions']['active']['next_billing_date'] ) ) ); ?></h3>
323 </div>
324 <?php endif; ?>
325 <div class="manage-subscription">
326 <button id="manage-subscription-button" class="cb-btn cb-primary-btn" onclick="window.open('https://account.usercentrics.eu/subscription/<?php echo isset( $template_args['user_data']['subscriptions']['active']['subscription_id'] ) ? esc_attr( $template_args['user_data']['subscriptions']['active']['subscription_id'] ) . '/' : ''; ?>manage', '_blank')">
327 <?php echo esc_html__( 'Manage subscription', 'cookiebot' ); ?>
328 </button>
329 </div>
330 </div>
331 </div>
332 <?php else : ?>
333 <div class="upgrade-details">
334 <div class="divider"></div>
335 <p class="upgrade-intro">Upgrade to unlock these premium benefits:</p>
336
337 <ul class="upgrade-features">
338 <li><strong>Match your consent banner to your brand</strong> with advanced customization options.</li>
339 <li><strong>Adapt your banner to increase opt-ins</strong> using our consent analytics data.</li>
340 <li><strong>Benefit from higher session limits</strong> and maintain privacy compliance as your traffic grows.</li>
341 </ul>
342
343 <p class="ready-text">Ready to take your consent experience to the next level?</p>
344
345 <div class="upgrade-container">
346 <button id="upgrade-now-button" class="cb-btn cb-primary-btn" onclick="window.open('https://account.usercentrics.eu/subscription/<?php echo isset( $template_args['user_data']['subscriptions']['active']['subscription_id'] ) ? esc_attr( $template_args['user_data']['subscriptions']['active']['subscription_id'] ) . '/' : ''; ?>manage', '_blank')">
347 <?php echo esc_html__( 'Upgrade now', 'cookiebot' ); ?>
348 </button>
349 </div>
350 </div>
351 <?php endif; ?>
352 </div>
353 <?php endif; ?>
354 </div>
355 </div>
356
357 <!-- Right Side - Banner Control (only show when CBID exists) -->
358 <?php if ( $template_args['user_data'] ) : ?>
359 <div class="gray-box-overview">
360 <div class="header-section">
361 <div>
362 <div class="top-row">
363 <a href="<?php echo esc_url( site_url() ); ?>" target="_blank" class="dashboard-link"><?php echo esc_html__( 'Preview', 'cookiebot' ); ?></a>
364 <span class="free-badge"><?php echo esc_html( $template_args['subscription'] ); ?></span>
365 </div>
366 <h1><?php echo esc_html__( 'Banner control', 'cookiebot' ); ?></h1>
367 <p class="subtitle"><?php echo esc_html__( 'Choose and control your banner settings and display options.', 'cookiebot' ); ?></p>
368 </div>
369 </div>
370
371 <div class="banner-options">
372 <!-- Show banner on site option -->
373 <div class="option-group">
374 <span class="option-label"><?php echo esc_html__( 'Show banner on site', 'cookiebot' ); ?></span>
375 <div class="option-controls">
376 <div class="toggle-switch">
377 <input type="checkbox" id="cookiebot-banner-enabled" class="toggle-input"
378 value="1"
379 <?php
380 checked( 1, $template_args['banner_enabled'] === '1' );
381 ?>
382 />
383 <label for="cookiebot-banner-enabled" class="toggle-label"></label>
384 </div>
385 <div class="label-wrapper status-badge <?php echo ! empty( $template_args['cbid'] ) && $template_args['banner_enabled'] === '1' ? 'active' : ' inactive'; ?>" id="cookiebot-banner-badge">
386 <div class="label-2">
387 <?php echo ! empty( $template_args['cbid'] ) && $template_args['banner_enabled'] === '1' ? esc_html__( 'Active', 'cookiebot' ) : esc_html__( 'Inactive', 'cookiebot' ); ?>
388 </div>
389 </div>
390 </div>
391 </div>
392
393 <div class="option-divider"></div>
394
395 <!-- Auto blocking mode option -->
396 <div class="option-group">
397 <div class="option-label-wrapper">
398 <span class="option-label"><?php echo esc_html__( 'Auto blocking mode', 'cookiebot' ); ?></span>
399 <div class="tooltip">
400 <span class="tooltiptext">When active, automatically blocks data-processing services from loading without user consent, without requiring manual tagging of your scripts. Uses your scan results to prevent data collection without consent.</span>
401 <img class="img" src="<?php echo esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/info.svg' ); ?>" />
402 </div>
403 </div>
404 <div class="option-controls">
405 <div class="toggle-switch">
406 <input type="checkbox" id="cookiebot-uc-auto-blocking-mode" class="toggle-input"
407 value="1"
408 <?php
409 checked( 1, $template_args['auto_blocking_mode'] === '1' );
410 ?>
411 />
412 <label for="cookiebot-uc-auto-blocking-mode" class="toggle-label"></label>
413 </div>
414 <div class="label-wrapper status-badge <?php echo ! empty( $template_args['cbid'] ) && $template_args['auto_blocking_mode'] === '1' ? 'active' : ' inactive'; ?>" id="cookiebot-uc-auto-blocking-mode-badge">
415 <div class="label-2">
416 <?php echo ! empty( $template_args['cbid'] ) && $template_args['auto_blocking_mode'] === '1' ? esc_html__( 'Active', 'cookiebot' ) : esc_html__( 'Inactive', 'cookiebot' ); ?>
417 </div>
418 </div>
419 </div>
420 </div>
421
422 <div class="option-divider"></div>
423
424 <!-- Google Consent Mode option -->
425 <div class="option-group">
426 <div class="option-label-wrapper">
427 <span class="option-label"><?php echo esc_html__( 'Google Consent Mode', 'cookiebot' ); ?></span>
428
429 <div class="tooltip">
430 <span class="tooltiptext">Enable Google Consent Mode to continue running remarketing campaigns and tracking conversions in Google Ads and Google Analytics. Required if you have visitors from the European Economic Area (EEA).</span>
431 <img class="img" src="<?php echo esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/info.svg' ); ?>" />
432 </div>
433
434 </div>
435 <div class="option-controls">
436 <div class="toggle-switch">
437 <input type="checkbox" id="cookiebot-gcm" class="toggle-input"
438 value="1"
439 <?php
440 checked( 1, $template_args['gcm_enabled'] === '1' );
441 ?>
442 />
443 <label for="cookiebot-gcm" class="toggle-label"></label>
444 </div>
445
446 <div class="label-wrapper status-badge <?php echo ! empty( $template_args['cbid'] ) && $template_args['gcm_enabled'] === '1' ? 'active' : 'inactive'; ?>" id="cookiebot-gcm-badge">
447 <div class="label-2">
448 <?php echo ! empty( $template_args['cbid'] ) && $template_args['gcm_enabled'] === '1' ? esc_html__( 'Active', 'cookiebot' ) : esc_html__( 'Inactive', 'cookiebot' ); ?>
449 </div>
450 </div>
451 </div>
452 </div>
453
454 <div class="option-divider"></div>
455
456 <!-- Legal framework option -->
457 <div class="option-group">
458 <span class="option-label"><?php echo esc_html__( 'Legal framework', 'cookiebot' ); ?></span>
459 <div class="option-controls legal-framework">
460 <span class="legal-framework-badge"><?php echo esc_html( $template_args['legal_framework'] ); ?></span>
461 </div>
462 </div>
463 </div>
464
465 <div class="banner-actions">
466 <button class="cb-btn customize-banner-btn" onclick="window.open('<?php echo esc_url( $template_args['customize_banner_link'] ); ?>', '_blank')"><?php echo esc_html__( 'Customize banner', 'cookiebot' ); ?></button>
467 <a href="<?php echo esc_url( $template_args['configure_banner_link'] ); ?>" class="configure-link" target="_blank">
468 <img class="material-icons" src="<?php echo esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/link.svg' ); ?>" />
469 <?php echo esc_html__( 'How to configure your banner', 'cookiebot' ); ?>
470 </a>
471 </div>
472 </div>
473 <?php endif; ?>
474 </div>
475
476 <!-- Help text (only show when user_data doesn't exist) -->
477 <?php if ( empty( $template_args['user_data'] ) ) : ?>
478 <div>
479 <div class="cb-general__info__text">
480 <span class="note-text">Need to manage an existing Cookiebot or Usercentrics account?</span>
481
482 <a href="<?php echo esc_url( add_query_arg( 'page', Settings_Page::ADMIN_SLUG, admin_url( 'admin.php' ) ) ); ?>"
483 class="note-link">
484 <span><?php esc_html_e( 'Go to Settings', 'cookiebot' ); ?></span>
485 </a>
486 </div>
487 </div>
488 <?php endif; ?>
489 </div>
490 </div>
491 </div>
492