PluginProbe ʕ •ᴥ•ʔ
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode / 4.5.5
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode v4.5.5
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
528 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 14 days - no credit 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 <div>
237 <div class="cb-general__info__text">
238 <span class="note-text">Already have a Cookiebot or Usercentrics account?</span>
239
240 <a href="<?php echo esc_url( add_query_arg( 'page', Settings_Page::ADMIN_SLUG, admin_url( 'admin.php' ) ) ); ?>"
241 class="note-link">
242 <span><?php esc_html_e( 'Connect account', 'cookiebot' ); ?></span>
243 </a>
244 </div>
245 </div>
246 </div>
247 <?php endif; ?>
248 </div>
249
250 <!-- Scan website step - only show when CBID exists -->
251 <?php if ( ! empty( $template_args['user_data'] ) ) : ?>
252 <div class="step-box">
253 <div class="step-row">
254 <div class="step-icon">
255 <?php if ( $template_args['scan_status'] === 'DONE' ) : ?>
256 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/check-mark.svg' ); ?>" alt="Checkmark">
257 <?php else : ?>
258 <div class="empty-circle"></div>
259 <?php endif; ?>
260 </div>
261 <div class="step-content">
262 <h2><?php echo \esc_html__( 'Scan website', 'cookiebot' ); ?></h2>
263 </div>
264 <div class="step-status">
265 <?php
266 switch ( $template_args['scan_status'] ) {
267 case 'IN_PROGRESS':
268 ?>
269 <span class="in-progress-status">
270 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/clock-icon.svg' ); ?>" alt="Clock Icon">
271 In Progress
272 </span>
273 <?php
274 break;
275 case 'DONE':
276 ?>
277 <span class="done-status">Done!</span>
278 <?php
279 break;
280 default:
281 ?>
282 <span class="failed-status">
283 Failed
284 </span>
285 <?php
286 }
287 ?>
288 <?php if ( $template_args['scan_status'] !== 'DONE' ) : ?>
289 <button class="expand-toggle" aria-expanded="false" aria-controls="scan-details">
290 <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="arrow-icon">
291 <path d="M7 10l5 5 5-5z" fill="#6B7280" />
292 </svg>
293 </button>
294 <?php endif; ?>
295 </div>
296 </div>
297
298 <!-- Scan details section (initially hidden) -->
299 <?php if ( $template_args['scan_status'] !== 'DONE' ) : ?>
300 <div id="scan-details" class="scan-details" style="display: none;">
301 <div class="divider"></div>
302 <p class="step-message">
303 <?php if ( $template_args['scan_status'] !== 'IN_PROGRESS' ) : ?>
304 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>.
305 <?php else : ?>
306 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>.
307 <?php endif; ?>
308 </p>
309 </div>
310 <?php endif; ?>
311 </div>
312 <?php endif; ?>
313
314 <!-- Upgrade your plan step -->
315 <?php if ( ! empty( $template_args['user_data'] ) ) : ?>
316 <div class="step-box">
317 <div class="step-row">
318 <div class="step-icon">
319 <?php
320 $is_upgraded = Cookiebot_WP::has_upgraded();
321 $subscription_type = Cookiebot_WP::get_subscription_type();
322 if ( $is_upgraded && $subscription_type !== 'Free' ) :
323 ?>
324 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/check-mark.svg' ); ?>" alt="Checkmark">
325 <?php else : ?>
326 <div class="empty-circle"></div>
327 <?php endif; ?>
328 </div>
329 <div class="step-content">
330 <h2><?php echo \esc_html__( 'Upgrade your plan', 'cookiebot' ); ?></h2>
331 </div>
332 <div class="step-status">
333 <div class="lightning-badge">
334 <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
335 <path d="M7.58333 0.583344L1.75 8.16668H7L6.41667 13.4167L12.25 5.83334H7L7.58333 0.583344Z" fill="#0047FF" />
336 </svg>
337 </div>
338 </div>
339 </div>
340
341 <!-- Upgrade details section -->
342 <?php if ( $is_upgraded && $subscription_type !== 'Free' ) : ?>
343 <div class="upgrade-details">
344 <div class="divider"></div>
345 <div class="subscription-info">
346 <div>
347 <div class="upgrade-header">
348 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/celebration.svg' ); ?>" alt="Celebration" class="celebration-icon">
349 <h3>You've upgraded to <span class="plan-name"><?php echo esc_html( $template_args['subscription'] ); ?></span>!</h3>
350 </div>
351 <?php if ( isset( $template_args['user_data']['subscriptions']['active']['subscription_id'] ) ) : ?>
352 <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">
353 <?php else : ?>
354 <a href="https://account.usercentrics.eu/subscription/manage" class="manage-features-link" target="_blank">
355 <?php endif; ?>
356 <p>Manage advanced features</p>
357 </a>
358 </div>
359 <?php if ( isset( $template_args['user_data']['subscriptions']['active']['next_billing_date'] ) ) : ?>
360 <div class="billing-date">
361 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/calendar.svg' ); ?>" alt="Calendar" class="calendar-icon">
362 <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>
363 </div>
364 <?php endif; ?>
365 <div class="manage-subscription">
366 <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')">
367 <?php echo esc_html__( 'Manage subscription', 'cookiebot' ); ?>
368 </button>
369 </div>
370 </div>
371 </div>
372 <?php else : ?>
373 <div class="upgrade-details">
374 <div class="divider"></div>
375 <div class="trial-countdown">
376 <?php if ( Cookiebot_WP::is_in_trial() && ! $trial_expired ) : ?>
377 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/clock-icon-blue.svg' ); ?>" alt="Clock Icon">
378 <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>
379 <?php endif; ?>
380 </div>
381
382 <p class="step-message">Upgrade to get full access to premium features. <br> Premium includes:</p>
383
384 <ul class="upgrade-features">
385 <li><strong>Higher session limits</strong> for growing traffic</li>
386 <li><strong>Custom branding</strong> for a seamless site experience</li>
387 <li><strong>Better insights</strong> to optimize your opt-ins</li>
388 </ul>
389
390 <div class="upgrade-container">
391 <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')">
392 <?php echo esc_html__( 'Upgrade now', 'cookiebot' ); ?>
393 </button>
394 </div>
395 </div>
396 <?php endif; ?>
397 </div>
398 <?php endif; ?>
399 </div>
400 </div>
401
402 <!-- Right Side - Banner Control (only show when CBID exists) -->
403 <?php if ( $template_args['user_data'] ) : ?>
404 <div class="gray-box-overview">
405 <div class="header-section">
406 <div>
407 <div class="top-row">
408 <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>
409 <span class="free-badge"><?php echo esc_html( $template_args['subscription'] ); ?></span>
410 </div>
411 <h1><?php echo esc_html__( 'Banner control', 'cookiebot' ); ?></h1>
412 <p class="subtitle">
413 <?php esc_html_e( 'Need more options? Head to the', 'cookiebot' ); ?>
414 <a href="https://admin.usercentrics.eu/#/v3/configuration/setup?settingsId=<?php echo esc_attr( $template_args['cbid'] ); ?>" target="_blank" style="color: inherit;">
415 <?php esc_html_e( 'Admin Interface.', 'cookiebot' ); ?>
416 </a>
417 </p>
418 </div>
419 </div>
420
421 <div class="banner-options">
422 <!-- Show banner on site option -->
423 <div class="option-group">
424 <span class="option-label"><?php echo esc_html__( 'Show banner on site', 'cookiebot' ); ?></span>
425 <div class="option-controls">
426 <div class="toggle-switch">
427 <input type="checkbox" id="cookiebot-banner-enabled" class="toggle-input"
428 value="1"
429 <?php
430 checked( 1, $template_args['banner_enabled'] === '1' );
431 ?>
432 />
433 <label for="cookiebot-banner-enabled" class="toggle-label"></label>
434 </div>
435 <div class="label-wrapper status-badge <?php echo ! empty( $template_args['cbid'] ) && $template_args['banner_enabled'] === '1' ? 'active' : ' inactive'; ?>" id="cookiebot-banner-badge">
436 <div class="label-2">
437 <?php echo ! empty( $template_args['cbid'] ) && $template_args['banner_enabled'] === '1' ? esc_html__( 'Active', 'cookiebot' ) : esc_html__( 'Inactive', 'cookiebot' ); ?>
438 </div>
439 </div>
440 </div>
441 </div>
442
443 <div class="option-divider"></div>
444
445 <!-- Auto blocking mode option -->
446 <div class="option-group">
447 <div class="option-label-wrapper">
448 <span class="option-label"><?php echo esc_html__( 'Auto blocking mode', 'cookiebot' ); ?></span>
449 <div class="tooltip">
450 <span class="tooltiptext">Blocks cookies automatically until users consent. No script tagging required. Scan results determine what gets blocked.</span>
451 <img class="img" src="<?php echo esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/info.svg' ); ?>" />
452 </div>
453 </div>
454 <div class="option-controls">
455 <div class="toggle-switch">
456 <input type="checkbox" id="cookiebot-uc-auto-blocking-mode" class="toggle-input"
457 value="1"
458 <?php
459 checked( 1, $template_args['auto_blocking_mode'] === '1' );
460 ?>
461 />
462 <label for="cookiebot-uc-auto-blocking-mode" class="toggle-label"></label>
463 </div>
464 <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">
465 <div class="label-2">
466 <?php echo ! empty( $template_args['cbid'] ) && $template_args['auto_blocking_mode'] === '1' ? esc_html__( 'Active', 'cookiebot' ) : esc_html__( 'Inactive', 'cookiebot' ); ?>
467 </div>
468 </div>
469 </div>
470 </div>
471
472 <div class="option-divider"></div>
473
474 <!-- Google Consent Mode option -->
475 <div class="option-group">
476 <div class="option-label-wrapper">
477 <span class="option-label"><?php echo esc_html__( 'Google Consent Mode', 'cookiebot' ); ?></span>
478
479 <div class="tooltip">
480 <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>
481 <img class="img" src="<?php echo esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/info.svg' ); ?>" />
482 </div>
483
484 </div>
485 <div class="option-controls">
486 <div class="toggle-switch">
487 <input type="checkbox" id="cookiebot-gcm" class="toggle-input"
488 value="1"
489 <?php
490 checked( 1, $template_args['gcm_enabled'] === '1' );
491 ?>
492 />
493 <label for="cookiebot-gcm" class="toggle-label"></label>
494 </div>
495
496 <div class="label-wrapper status-badge <?php echo ! empty( $template_args['cbid'] ) && $template_args['gcm_enabled'] === '1' ? 'active' : 'inactive'; ?>" id="cookiebot-gcm-badge">
497 <div class="label-2">
498 <?php echo ! empty( $template_args['cbid'] ) && $template_args['gcm_enabled'] === '1' ? esc_html__( 'Active', 'cookiebot' ) : esc_html__( 'Inactive', 'cookiebot' ); ?>
499 </div>
500 </div>
501 </div>
502 </div>
503
504 <div class="option-divider"></div>
505
506 <!-- Legal framework option -->
507 <div class="option-group">
508 <span class="option-label"><?php echo esc_html__( 'Legal framework', 'cookiebot' ); ?></span>
509 <div class="option-controls legal-framework">
510 <span class="legal-framework-badge"><?php echo esc_html( $template_args['legal_framework'] ); ?></span>
511 </div>
512 </div>
513 </div>
514
515 <div class="banner-actions">
516 <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>
517 <a href="<?php echo esc_url( $template_args['configure_banner_link'] ); ?>" class="configure-link" target="_blank">
518 <img class="material-icons" src="<?php echo esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/link.svg' ); ?>" />
519 <?php echo esc_html__( 'How to configure your banner', 'cookiebot' ); ?>
520 </a>
521 </div>
522 </div>
523 <?php endif; ?>
524 </div>
525 </div>
526 </div>
527 </div>
528