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 / 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
533 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 <?php if ( Cookiebot_WP::get_subscription_type() === 'Free' ) : ?>
24 <div class="header-top-banners free-plan-banner">
25 <div class="banner-content">
26 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/bolt.svg' ); ?>" alt="Bolt Icon">
27 <div>
28 <h3><?php echo esc_html__( "You're on the Free plan. Upgrade now to unlock your full site experience.", 'cookiebot' ); ?></h3>
29 <p><?php echo esc_html__( 'Upgrade for higher session limits, custom branding, and features that help you deliver a better experience on your site.', 'cookiebot' ); ?></p>
30 </div>
31 </div>
32 <div class="upgrade-free-plan">
33 <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" class="upgrade-now-link">
34 <h3><?php echo esc_html__( 'Upgrade now', 'cookiebot' ); ?> <span class="upgrade-chevron">&rsaquo;</span></h3>
35 </a>
36 </div>
37 </div>
38 <?php endif; ?>
39 <!-- Trial expiration notice -->
40 <?php
41 $trial_expired = Cookiebot_WP::is_trial_expired();
42 $upgraded = Cookiebot_WP::has_upgraded();
43
44 if ( $trial_expired && ! $upgraded ) :
45 ?>
46 <div class="header-top-banners trial-expired-banner">
47 <div class="banner-content">
48 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/clock-icon.svg' ); ?>"
49 alt="Clock Icon">
50 <div>
51 <h3><?php echo esc_html__( 'Your premium trial is over', 'cookiebot' ); ?></h3>
52 <p>
53 <?php echo esc_html__( 'Reactive your banner to regain full access to your account and display the cookie banner on your website.', 'cookiebot' ); ?>
54 </p>
55 </div>
56 </div>
57 <div class="upgrade-expired-trial">
58 <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;">
59 <h3><?php echo esc_html__( 'Reactivate banner', 'cookiebot' ); ?> <span class="upgrade-chevron">&rsaquo;</span></h3>
60 </a>
61 </div>
62 </div>
63 <?php endif; ?>
64
65 <!-- Banner connected notice -->
66 <?php if ( ! empty( $template_args['cbid'] ) && empty( $template_args['user_data'] ) ) : ?>
67 <div class="header-top-banners connected-banner">
68 <div class="banner-content">
69 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/check-green.svg' ); ?>"
70 alt="Check Icon">
71 <div>
72 <h3><?php echo esc_html__( 'Your banner is connected!', 'cookiebot' ); ?></h3>
73 <p style="text-wrap: nowrap;">
74 <?php echo esc_html__( 'Everything works as before. Manage your banner in the', 'cookiebot' ); ?>
75 <a href="<?php echo esc_url( $template_args['cookiebot_admin_link'] ); ?>" target="_blank"><?php echo esc_html__( 'Cookiebot Manager', 'cookiebot' ); ?></a>
76 <?php echo esc_html__( 'or', 'cookiebot' ); ?>
77 <a href="<?php echo esc_url( $template_args['uc_admin_link'] ); ?>" target="_blank"><?php echo esc_html__( 'Usercentrics Admin', 'cookiebot' ); ?></a>.
78 </p>
79 </div>
80 </div>
81 </div>
82 <?php endif; ?>
83
84 <!-- Banner is live notice -->
85 <?php
86 $banner_dismissed = get_option( 'cookiebot_banner_live_dismissed', false );
87
88 if ( ! empty( $template_args['cbid'] ) && ! empty( $template_args['user_data'] ) && ! $banner_dismissed && ! Cookiebot_WP::has_upgraded() ) :
89 ?>
90 <div class="header-top-banners banner-live-banner" id="banner-live-notice">
91 <div class="banner-content">
92 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/check-white.svg' ); ?>"
93 alt="Check Icon">
94 <div>
95
96 <!-- <h3>Well done! Your <a href="<?php echo esc_url( site_url() ); ?>" target="_blank" class="banner-live-link" onclick="window.trackAmplitudeEvent('Banner Live Viewed', { settingsId: '<?php echo esc_js( $template_args['cbid'] ); ?>' });">banner is live</a>.</h3> -->
97 <h3>Well done! Your <a href="<?php echo esc_url( site_url() ); ?>" target="_blank" class="banner-live-link">banner is live</a>.</h3>
98 <p>
99 <?php
100 echo esc_html__( 'Stay live after your trial by choosing a Free or Premium plan.', 'cookiebot' );
101 ?>
102 <!-- <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: underline; color: inherit;" onclick="window.trackAmplitudeEvent('Choose Plan Link Clicked', { price_plan: '<?php echo esc_js( $template_args['user_data']['subscriptions']['active']['price_plan'] ? $template_args['user_data']['subscriptions']['active']['price_plan'] : '' ); ?>', account_id: '<?php echo esc_js( $template_args['cbid'] ); ?>' });"><?php echo esc_html__( 'Choose plan', 'cookiebot' ); ?></a> -->
103 <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: underline; color: inherit;">
104 <?php echo esc_html__( 'Choose plan', 'cookiebot' ); ?>
105 </a>
106 </p>
107 </div>
108 </div>
109 <button class="banner-close-btn" aria-label="Close banner" id="banner-close-btn">
110 <span aria-hidden="true">×</span>
111 </button>
112 </div>
113 <?php endif; ?>
114
115
116 </div>
117
118 <div class="cb-wrapper">
119 <?php $main_tabs->display( 'dashboard' ); ?>
120
121 <div class="dashboard-grid <?php echo ! empty( $template_args['cbid'] ) ? 'has-cbid' : ''; ?>">
122
123 <!-- Main Content Area -->
124 <div class="dashboard-grid-row">
125 <div class="gray-box">
126 <div class="header-section-no-margin">
127 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/set-up-icon.svg' ); ?>" alt="Usercentrics Logo">
128 <?php if ( ! empty( $template_args['cbid'] ) && empty( $template_args['user_data'] ) ) : ?>
129 <h1><?php echo \esc_html__( 'Simplify your banner management', 'cookiebot' ); ?></h1>
130 <?php else : ?>
131 <h1><?php echo \esc_html__( 'Set up your consent banner', 'cookiebot' ); ?></h1>
132 <?php endif; ?>
133 </div>
134 <div class="header-section">
135 <?php if ( empty( $template_args['cbid'] ) && empty( $template_args['user_data'] ) ) : ?>
136 <p class="subtitle">
137 <?php echo esc_html__( 'Get your site GDPR-compliant in', 'cookiebot' ); ?>
138 <strong><?php echo esc_html__( 'just a few clicks.', 'cookiebot' ); ?></strong>
139 <?php echo esc_html__( 'Enter your email, verify it, and create your password.', 'cookiebot' ); ?>
140 </p>
141 <?php endif; ?>
142 <?php if ( ! empty( $template_args['cbid'] ) && empty( $template_args['user_data'] ) ) : ?>
143 <p class="subtitle">
144 <?php echo esc_html__( 'Your setup is good to go - but we\'re making banner control even easier inside WordPress.', 'cookiebot' ); ?>
145 <strong><?php echo esc_html__( 'Get access to new features', 'cookiebot' ); ?></strong>
146 <?php echo esc_html__( 'by updating your banner today.', 'cookiebot' ); ?>
147 </p>
148 <?php endif; ?>
149 </div>
150
151
152 <!-- Steps Container -->
153 <div class="steps-container">
154 <!-- Activate your banner step -->
155 <div class="step-box <?php echo ! empty( $template_args['cbid'] ) ? 'completed' : ''; ?>">
156 <div class="step-row">
157
158 <?php if ( ! empty( $template_args['cbid'] ) && empty( $template_args['user_data'] ) ) : ?>
159 <div class="step-icon">
160 <div class="empty-circle"></div>
161 </div>
162 <div class="step-content">
163 <h2><?php echo \esc_html__( 'Unlock new banner', 'cookiebot' ); ?></h2>
164 </div>
165 <?php endif; ?>
166
167 <?php if ( empty( $template_args['cbid'] ) && empty( $template_args['user_data'] ) ) : ?>
168 <div class="step-icon">
169 <div class="empty-circle"></div>
170 </div>
171 <div class="step-content">
172 <h2><?php echo \esc_html__( 'Get your banner live in seconds', 'cookiebot' ); ?></h2>
173 </div>
174 <?php endif; ?>
175
176 <?php if ( ! empty( $template_args['cbid'] ) && ! empty( $template_args['user_data'] ) ) : ?>
177 <div class="step-icon">
178 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/check-mark.svg' ); ?>" alt="Checkmark">
179 </div>
180 <div class="step-content">
181 <h2><?php echo \esc_html__( 'Get your banner live in seconds', 'cookiebot' ); ?></h2>
182 </div>
183 <span class="done-status">Done!</span>
184 <?php endif; ?>
185
186 </div>
187
188 <?php if ( empty( $template_args['user_data'] ) ) : ?>
189 <div class="banner-preview-container">
190 <div class="divider"></div>
191 <?php if ( ! empty( $template_args['cbid'] ) && empty( $template_args['user_data'] ) ) : ?>
192 <p class="step-description">
193 <?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' ); ?>
194 </p>
195 <?php else : ?>
196 <p class="step-description">
197 <?php
198 echo wp_kses(
199 __( 'Instant setup with automatic cookie blocking. Try all features free for <strong>14 days</strong> - no card needed.<br> Choose Free or Premium before your trial ends to stay live.', 'cookiebot' ),
200 array(
201 'strong' => array(),
202 'br' => array(),
203 )
204 );
205 ?>
206 </p>
207 <?php endif; ?>
208 <div class="banner-images">
209 <?php
210 $banner1_url = CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/banner-getting-started1.png';
211 $banner2_url = CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/banner-getting-started2.png';
212 $arrow_url = CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/banner-arrow.png';
213 ?>
214 <img src="<?php echo \esc_url( $banner1_url ); ?>"
215 alt="Banner Preview 1"
216 class="banner-image">
217 <img src="<?php echo \esc_url( $banner2_url ); ?>"
218 alt="Banner Preview 2"
219 class="banner-image">
220 </div>
221 <div class="activate-container">
222 <button id="get-started-button" class="cb-btn cb-primary-btn cb-get-started-btn">
223 <?php echo esc_html__( 'Get Started', 'cookiebot' ); ?>
224 </button>
225 <img src="<?php echo \esc_url( $arrow_url ); ?>"
226 alt="arrow"
227 class="banner-arrow">
228 </div>
229
230 <?php if ( ! empty( $template_args['cbid'] ) ) : ?>
231 <div class="note-text">
232 <img class="note-icon" src="<?php echo esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/info.svg' ); ?>" />
233 <span>Note: A new account comes with a new banner, which will replace your existing one.</span>
234 </div>
235 <?php endif; ?>
236
237 </div>
238 <?php endif; ?>
239 </div>
240
241 <!-- Scan website step - only show when CBID exists -->
242 <?php if ( ! empty( $template_args['user_data'] ) ) : ?>
243 <div class="step-box">
244 <div class="step-row">
245 <div class="step-icon">
246 <?php if ( $template_args['scan_status'] === 'DONE' ) : ?>
247 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/check-mark.svg' ); ?>" alt="Checkmark">
248 <?php else : ?>
249 <div class="empty-circle"></div>
250 <?php endif; ?>
251 </div>
252 <div class="step-content">
253 <h2><?php echo \esc_html__( 'Scan website', 'cookiebot' ); ?></h2>
254 </div>
255 <div class="step-status">
256 <?php
257 switch ( $template_args['scan_status'] ) {
258 case 'IN_PROGRESS':
259 ?>
260 <span class="in-progress-status">
261 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/clock-icon.svg' ); ?>" alt="Clock Icon">
262 In Progress
263 </span>
264 <?php
265 break;
266 case 'DONE':
267 ?>
268 <span class="done-status">Done!</span>
269 <?php
270 break;
271 default:
272 ?>
273 <span class="failed-status">
274 Failed
275 </span>
276 <?php
277 }
278 ?>
279 <?php if ( $template_args['scan_status'] !== 'DONE' ) : ?>
280 <button class="expand-toggle" aria-expanded="false" aria-controls="scan-details">
281 <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="arrow-icon">
282 <path d="M7 10l5 5 5-5z" fill="#6B7280" />
283 </svg>
284 </button>
285 <?php endif; ?>
286 </div>
287 </div>
288
289 <!-- Scan details section (initially hidden) -->
290 <?php if ( $template_args['scan_status'] !== 'DONE' ) : ?>
291 <div id="scan-details" class="scan-details" style="display: block;">
292 <div class="divider"></div>
293 <p class="step-message">
294 <?php if ( $template_args['scan_status'] !== 'IN_PROGRESS' ) : ?>
295 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>.
296 <?php else : ?>
297 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>.
298 <?php endif; ?>
299 </p>
300 </div>
301 <?php endif; ?>
302 </div>
303 <?php endif; ?>
304
305 <!-- Upgrade your plan step -->
306 <?php if ( ! empty( $template_args['user_data'] ) ) : ?>
307 <div class="step-box">
308 <div class="step-row">
309 <div class="step-icon">
310 <?php
311 $is_upgraded = Cookiebot_WP::has_upgraded();
312 $subscription_type = Cookiebot_WP::get_subscription_type();
313 if ( $is_upgraded && $subscription_type !== 'Free' ) :
314 ?>
315 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/check-mark.svg' ); ?>" alt="Checkmark">
316 <?php else : ?>
317 <div class="empty-circle"></div>
318 <?php endif; ?>
319 </div>
320 <div class="step-content">
321 <h2><?php echo \esc_html__( 'Upgrade your plan', 'cookiebot' ); ?></h2>
322 </div>
323 <div class="step-status">
324 <div class="lightning-badge">
325 <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
326 <path d="M7.58333 0.583344L1.75 8.16668H7L6.41667 13.4167L12.25 5.83334H7L7.58333 0.583344Z" fill="#0047FF" />
327 </svg>
328 </div>
329 </div>
330 </div>
331
332 <!-- Upgrade details section -->
333 <?php if ( $is_upgraded && $subscription_type !== 'Free' ) : ?>
334 <div class="upgrade-details">
335 <div class="divider"></div>
336 <div class="subscription-info">
337 <div>
338 <div class="upgrade-header">
339 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/celebration.svg' ); ?>" alt="Celebration" class="celebration-icon">
340 <h3>You've upgraded to <span class="plan-name"><?php echo esc_html( $template_args['subscription'] ); ?></span>!</h3>
341 </div>
342 <?php if ( isset( $template_args['user_data']['subscriptions']['active']['subscription_id'] ) ) : ?>
343 <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">
344 <?php else : ?>
345 <a href="https://account.usercentrics.eu/subscription/manage" class="manage-features-link" target="_blank">
346 <?php endif; ?>
347 <p>Manage advanced features</p>
348 </a>
349 </div>
350 <?php if ( isset( $template_args['user_data']['subscriptions']['active']['next_billing_date'] ) ) : ?>
351 <div class="billing-date">
352 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/calendar.svg' ); ?>" alt="Calendar" class="calendar-icon">
353 <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>
354 </div>
355 <?php endif; ?>
356 <div class="manage-subscription">
357 <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')">
358 <?php echo esc_html__( 'Manage subscription', 'cookiebot' ); ?>
359 </button>
360 </div>
361 </div>
362 </div>
363 <?php else : ?>
364 <div class="upgrade-details">
365 <div class="divider"></div>
366 <div class="trial-countdown">
367 <?php if ( Cookiebot_WP::is_in_trial() && ! $trial_expired ) : ?>
368 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/clock-icon-blue.svg' ); ?>" alt="Clock Icon">
369 <p class="step-message"><strong>Your trial ends in</strong> <span class="days-highlight"><?php echo absint( Cookiebot_WP::get_trial_days_left() ); ?> days</span>.</p>
370 <?php endif; ?>
371 </div>
372
373 <p class="step-message">Upgrade to get full access to premium features. <br> Premium includes:</p>
374
375 <ul class="upgrade-features">
376 <li><strong>Higher session limits</strong> for growing traffic</li>
377 <li><strong>Custom branding</strong> for a seamless site experience</li>
378 <li><strong>Better insights</strong> to optimize your opt-ins</li>
379 </ul>
380
381 <div class="upgrade-container">
382 <button id="upgrade-now-button" class="cb-btn cb-primary-btn" onclick="/* window.trackAmplitudeEvent('Bottom Upgrade Now Clicked', { settingsId: '<?php echo esc_js( $template_args['cbid'] ); ?>', account_id: '<?php echo esc_js( $template_args['cbid'] ); ?>' }); */ 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')">
383 <?php echo esc_html__( 'Upgrade now', 'cookiebot' ); ?>
384 </button>
385 </div>
386 </div>
387 <?php endif; ?>
388 </div>
389 <?php endif; ?>
390 </div>
391 </div>
392
393 <!-- Right Side - Banner Control (only show when CBID exists) -->
394 <?php if ( $template_args['user_data'] ) : ?>
395 <div class="gray-box-overview">
396 <div class="header-section">
397 <div>
398 <div class="top-row">
399 <a href="<?php echo esc_url( site_url() ); ?>" target="_blank" class="dashboard-link" onclick="/* window.trackAmplitudeEvent('Preview Link Clicked', { settingsId: '<?php echo esc_js( $template_args['cbid'] ); ?>' }); */"><?php echo esc_html__( 'Preview', 'cookiebot' ); ?></a>
400 <span class="free-badge"><?php echo esc_html( $template_args['subscription'] ); ?></span>
401 </div>
402 <h1><?php echo esc_html__( 'Banner control', 'cookiebot' ); ?></h1>
403 <p class="subtitle">
404 <?php esc_html_e( 'Need more options? Head to the', 'cookiebot' ); ?>
405 <a href="https://admin.usercentrics.eu/#/v3/configuration/setup?settingsId=<?php echo esc_attr( $template_args['cbid'] ); ?>" target="_blank" style="color: inherit;">
406 <?php esc_html_e( 'Admin Interface', 'cookiebot' ); ?>
407 </a>.
408 </p>
409 </div>
410 </div>
411
412 <div class="banner-options">
413 <!-- Show banner on site option -->
414 <div class="option-group">
415 <span class="option-label"><?php echo esc_html__( 'Show banner on site', 'cookiebot' ); ?></span>
416 <div class="option-controls">
417 <div class="toggle-switch">
418 <input type="checkbox" id="cookiebot-banner-enabled" class="toggle-input"
419 value="1"
420 <?php
421 checked( 1, $template_args['banner_enabled'] === '1' );
422 ?>
423 />
424 <label for="cookiebot-banner-enabled" class="toggle-label"></label>
425 </div>
426 <div class="label-wrapper status-badge <?php echo ! empty( $template_args['cbid'] ) && $template_args['banner_enabled'] === '1' ? 'active' : ' inactive'; ?>" id="cookiebot-banner-badge">
427 <div class="label-2">
428 <?php echo ! empty( $template_args['cbid'] ) && $template_args['banner_enabled'] === '1' ? esc_html__( 'Active', 'cookiebot' ) : esc_html__( 'Inactive', 'cookiebot' ); ?>
429 </div>
430 </div>
431 </div>
432 </div>
433
434 <div class="option-divider"></div>
435
436 <!-- Auto blocking mode option -->
437 <div class="option-group">
438 <div class="option-label-wrapper">
439 <span class="option-label"><?php echo esc_html__( 'Auto blocking mode', 'cookiebot' ); ?></span>
440 <div class="tooltip">
441 <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>
442 <img class="img" src="<?php echo esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/info.svg' ); ?>" />
443 </div>
444 </div>
445 <div class="option-controls">
446 <div class="toggle-switch">
447 <input type="checkbox" id="cookiebot-uc-auto-blocking-mode" class="toggle-input"
448 value="1"
449 <?php
450 checked( 1, $template_args['auto_blocking_mode'] === '1' );
451 ?>
452 />
453 <label for="cookiebot-uc-auto-blocking-mode" class="toggle-label"></label>
454 </div>
455 <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">
456 <div class="label-2">
457 <?php echo ! empty( $template_args['cbid'] ) && $template_args['auto_blocking_mode'] === '1' ? esc_html__( 'Active', 'cookiebot' ) : esc_html__( 'Inactive', 'cookiebot' ); ?>
458 </div>
459 </div>
460 </div>
461 </div>
462
463 <div class="option-divider"></div>
464
465 <!-- Google Consent Mode option -->
466 <div class="option-group">
467 <div class="option-label-wrapper">
468 <span class="option-label"><?php echo esc_html__( 'Google Consent Mode', 'cookiebot' ); ?></span>
469
470 <div class="tooltip">
471 <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>
472 <img class="img" src="<?php echo esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/info.svg' ); ?>" />
473 </div>
474
475 </div>
476 <div class="option-controls">
477 <div class="toggle-switch">
478 <input type="checkbox" id="cookiebot-gcm" class="toggle-input"
479 value="1"
480 <?php
481 checked( 1, $template_args['gcm_enabled'] === '1' );
482 ?>
483 />
484 <label for="cookiebot-gcm" class="toggle-label"></label>
485 </div>
486
487 <div class="label-wrapper status-badge <?php echo ! empty( $template_args['cbid'] ) && $template_args['gcm_enabled'] === '1' ? 'active' : 'inactive'; ?>" id="cookiebot-gcm-badge">
488 <div class="label-2">
489 <?php echo ! empty( $template_args['cbid'] ) && $template_args['gcm_enabled'] === '1' ? esc_html__( 'Active', 'cookiebot' ) : esc_html__( 'Inactive', 'cookiebot' ); ?>
490 </div>
491 </div>
492 </div>
493 </div>
494
495 <div class="option-divider"></div>
496
497 <!-- Legal framework option -->
498 <div class="option-group">
499 <span class="option-label"><?php echo esc_html__( 'Legal framework', 'cookiebot' ); ?></span>
500 <div class="option-controls legal-framework">
501 <span class="legal-framework-badge"><?php echo esc_html( $template_args['legal_framework'] ); ?></span>
502 </div>
503 </div>
504 </div>
505
506 <div class="banner-actions">
507 <button class="cb-btn customize-banner-btn" onclick="/* window.trackAmplitudeEvent('Customize Banner Clicked', { settingsId: '<?php echo esc_js( $template_args['cbid'] ); ?>', plugin_version: '<?php echo esc_js( CYBOT_COOKIEBOT_VERSION ); ?>' }); */ window.open('<?php echo esc_url( $template_args['customize_banner_link'] ); ?>', '_blank')"><?php echo esc_html__( 'Customize banner', 'cookiebot' ); ?></button>
508 <a href="<?php echo esc_url( $template_args['configure_banner_link'] ); ?>" class="configure-link" target="_blank">
509 <img class="material-icons" src="<?php echo esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/link.svg' ); ?>" />
510 <?php echo esc_html__( 'How to configure your banner', 'cookiebot' ); ?>
511 </a>
512 </div>
513 </div>
514 <?php endif; ?>
515 </div>
516
517 <!-- Help text (only show when user_data doesn't exist) -->
518 <?php if ( empty( $template_args['user_data'] ) ) : ?>
519 <div>
520 <div class="cb-general__info__text">
521 <span class="note-text">Need to manage an existing Cookiebot or Usercentrics account?</span>
522
523 <a href="<?php echo esc_url( add_query_arg( 'page', Settings_Page::ADMIN_SLUG, admin_url( 'admin.php' ) ) ); ?>"
524 class="note-link">
525 <span><?php esc_html_e( 'Go to Settings', 'cookiebot' ); ?></span>
526 </a>
527 </div>
528 </div>
529 <?php endif; ?>
530 </div>
531 </div>
532 </div>
533