PluginProbe ʕ •ᴥ•ʔ
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode / 4.5.7
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode v4.5.7
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
470 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 is live notice -->
66 <?php
67 $banner_dismissed = get_option( 'cookiebot_banner_live_dismissed', false );
68
69 if ( ! empty( $template_args['cbid'] ) && ! empty( $template_args['user_data'] ) && ! $banner_dismissed && ! Cookiebot_WP::has_upgraded() ) :
70 ?>
71 <div class="header-top-banners banner-live-banner" id="banner-live-notice">
72 <div class="banner-content">
73 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/check-white.svg' ); ?>"
74 alt="Check Icon">
75 <div>
76
77 <!-- <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> -->
78 <h3>Well done! Your <a href="<?php echo esc_url( site_url() ); ?>" target="_blank" class="banner-live-link">banner is live</a>.</h3>
79 <p>
80 <?php
81 echo esc_html__( 'Stay live after your trial by choosing a Free or Premium plan.', 'cookiebot' );
82 ?>
83 <!-- <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> -->
84 <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;">
85 <?php echo esc_html__( 'Choose plan', 'cookiebot' ); ?>
86 </a>
87 </p>
88 </div>
89 </div>
90 <button class="banner-close-btn" aria-label="Close banner" id="banner-close-btn">
91 <span aria-hidden="true">×</span>
92 </button>
93 </div>
94 <?php endif; ?>
95
96
97 </div>
98
99 <div class="cb-wrapper">
100 <?php $main_tabs->display( 'dashboard' ); ?>
101
102 <div class="dashboard-grid <?php echo ! empty( $template_args['cbid'] ) ? 'has-cbid' : ''; ?>">
103
104 <!-- Main Content Area -->
105 <div class="dashboard-grid-row">
106 <div class="gray-box">
107 <div class="header-section-no-margin">
108 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/set-up-icon.svg' ); ?>" alt="Usercentrics Logo">
109 <h1><?php echo \esc_html__( 'Set up your consent banner', 'cookiebot' ); ?></h1>
110 </div>
111 <div class="header-section">
112 <p class="subtitle">
113 <?php echo esc_html__( 'Get your site GDPR-compliant in', 'cookiebot' ); ?>
114 <strong><?php echo esc_html__( 'just a few clicks.', 'cookiebot' ); ?></strong>
115 <?php echo esc_html__( 'Enter your email, verify it, and create your password.', 'cookiebot' ); ?>
116 </p>
117 </div>
118
119 <!-- Steps Container -->
120 <div class="steps-container">
121 <!-- Activate your banner step -->
122 <div class="step-box <?php echo ! empty( $template_args['cbid'] ) ? 'completed' : ''; ?>">
123 <div class="step-row">
124 <?php if ( ! empty( $template_args['cbid'] ) && ! empty( $template_args['user_data'] ) ) : ?>
125 <div class="step-icon">
126 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/check-mark.svg' ); ?>" alt="Checkmark">
127 </div>
128 <div class="step-content">
129 <h2><?php echo \esc_html__( 'Get your banner live in seconds', 'cookiebot' ); ?></h2>
130 </div>
131 <span class="done-status">Done!</span>
132 <?php else : ?>
133 <div class="step-icon">
134 <div class="empty-circle"></div>
135 </div>
136 <div class="step-content">
137 <h2><?php echo \esc_html__( 'Get your banner live in seconds', 'cookiebot' ); ?></h2>
138 </div>
139 <?php endif; ?>
140 </div>
141
142 <?php if ( empty( $template_args['user_data'] ) || empty( $template_args['cbid'] ) && ! empty( $template_args['scan_id'] ) ) : ?>
143 <div class="banner-preview-container">
144 <div class="divider"></div>
145 <p class="step-description">
146 <?php
147 echo wp_kses(
148 __( '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' ),
149 array(
150 'strong' => array(),
151 'br' => array(),
152 )
153 );
154 ?>
155 </p>
156 <div class="banner-images">
157 <?php
158 $banner1_url = CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/banner-getting-started1.png';
159 $banner2_url = CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/banner-getting-started2.png';
160 $arrow_url = CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/banner-arrow.png';
161 ?>
162 <img src="<?php echo \esc_url( $banner1_url ); ?>"
163 alt="Banner Preview 1"
164 class="banner-image">
165 <img src="<?php echo \esc_url( $banner2_url ); ?>"
166 alt="Banner Preview 2"
167 class="banner-image">
168 </div>
169 <div class="activate-container">
170 <button id="get-started-button" class="cb-btn cb-primary-btn cb-get-started-btn">
171 <?php echo esc_html__( 'Get Started', 'cookiebot' ); ?>
172 </button>
173 <img src="<?php echo \esc_url( $arrow_url ); ?>"
174 alt="arrow"
175 class="banner-arrow">
176 </div>
177
178 <div>
179 <div class="cb-general__info__text">
180 <span class="note-text">Already have a Cookiebot or Usercentrics account?</span>
181
182 <a href="<?php echo esc_url( add_query_arg( 'page', Settings_Page::ADMIN_SLUG, admin_url( 'admin.php' ) ) ); ?>"
183 class="note-link">
184 <span><?php esc_html_e( 'Connect account', 'cookiebot' ); ?></span>
185 </a>
186 </div>
187 </div>
188 </div>
189 <?php endif; ?>
190 </div>
191
192 <!-- Scan website step - only show when CBID exists -->
193 <?php if ( ! empty( $template_args['user_data'] ) && ! empty( $template_args['cbid'] ) ) : ?>
194 <div class="step-box">
195 <div class="step-row">
196 <div class="step-icon">
197 <?php if ( $template_args['scan_status'] === 'DONE' ) : ?>
198 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/check-mark.svg' ); ?>" alt="Checkmark">
199 <?php else : ?>
200 <div class="empty-circle"></div>
201 <?php endif; ?>
202 </div>
203 <div class="step-content">
204 <h2><?php echo \esc_html__( 'Scan website', 'cookiebot' ); ?></h2>
205 </div>
206 <div class="step-status">
207 <?php
208 switch ( $template_args['scan_status'] ) {
209 case 'IN_PROGRESS':
210 ?>
211 <span class="in-progress-status">
212 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/clock-icon.svg' ); ?>" alt="Clock Icon">
213 In Progress
214 </span>
215 <?php
216 break;
217 case 'DONE':
218 ?>
219 <span class="done-status">Done!</span>
220 <?php
221 break;
222 default:
223 ?>
224 <span class="failed-status">
225 Failed
226 </span>
227 <?php
228 }
229 ?>
230 <?php if ( $template_args['scan_status'] !== 'DONE' ) : ?>
231 <button class="expand-toggle" aria-expanded="false" aria-controls="scan-details">
232 <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="arrow-icon">
233 <path d="M7 10l5 5 5-5z" fill="#6B7280" />
234 </svg>
235 </button>
236 <?php endif; ?>
237 </div>
238 </div>
239
240 <!-- Scan details section (initially hidden) -->
241 <?php if ( $template_args['scan_status'] !== 'DONE' ) : ?>
242 <div id="scan-details" class="scan-details" style="display: none;">
243 <div class="divider"></div>
244 <p class="step-message">
245 <?php if ( $template_args['scan_status'] !== 'IN_PROGRESS' ) : ?>
246 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>.
247 <?php else : ?>
248 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>.
249 <?php endif; ?>
250 </p>
251 </div>
252 <?php endif; ?>
253 </div>
254 <?php endif; ?>
255
256 <!-- Upgrade your plan step -->
257 <?php if ( ! empty( $template_args['user_data'] ) && ! empty( $template_args['cbid'] ) ) : ?>
258 <div class="step-box">
259 <div class="step-row">
260 <div class="step-icon">
261 <?php
262 $is_upgraded = Cookiebot_WP::has_upgraded();
263 $subscription_type = Cookiebot_WP::get_subscription_type();
264 if ( $is_upgraded && $subscription_type !== 'Free' ) :
265 ?>
266 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/check-mark.svg' ); ?>" alt="Checkmark">
267 <?php else : ?>
268 <div class="empty-circle"></div>
269 <?php endif; ?>
270 </div>
271 <div class="step-content">
272 <h2><?php echo \esc_html__( 'Upgrade your plan', 'cookiebot' ); ?></h2>
273 </div>
274 <div class="step-status">
275 <div class="lightning-badge">
276 <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
277 <path d="M7.58333 0.583344L1.75 8.16668H7L6.41667 13.4167L12.25 5.83334H7L7.58333 0.583344Z" fill="#0047FF" />
278 </svg>
279 </div>
280 </div>
281 </div>
282
283 <!-- Upgrade details section -->
284 <?php if ( $is_upgraded && $subscription_type !== 'Free' ) : ?>
285 <div class="upgrade-details">
286 <div class="divider"></div>
287 <div class="subscription-info">
288 <div>
289 <div class="upgrade-header">
290 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/celebration.svg' ); ?>" alt="Celebration" class="celebration-icon">
291 <h3>You've upgraded to <span class="plan-name"><?php echo esc_html( $template_args['subscription'] ); ?></span>!</h3>
292 </div>
293 <?php if ( isset( $template_args['user_data']['subscriptions']['active']['subscription_id'] ) ) : ?>
294 <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">
295 <?php else : ?>
296 <a href="https://account.usercentrics.eu/subscription/manage" class="manage-features-link" target="_blank">
297 <?php endif; ?>
298 <p>Manage advanced features</p>
299 </a>
300 </div>
301 <?php if ( isset( $template_args['user_data']['subscriptions']['active']['next_billing_date'] ) ) : ?>
302 <div class="billing-date">
303 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/calendar.svg' ); ?>" alt="Calendar" class="calendar-icon">
304 <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>
305 </div>
306 <?php endif; ?>
307 <div class="manage-subscription">
308 <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')">
309 <?php echo esc_html__( 'Manage subscription', 'cookiebot' ); ?>
310 </button>
311 </div>
312 </div>
313 </div>
314 <?php else : ?>
315 <div class="upgrade-details">
316 <div class="divider"></div>
317 <div class="trial-countdown">
318 <?php if ( Cookiebot_WP::is_in_trial() && ! $trial_expired ) : ?>
319 <img src="<?php echo \esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/clock-icon-blue.svg' ); ?>" alt="Clock Icon">
320 <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>
321 <?php endif; ?>
322 </div>
323
324 <p class="step-message">Upgrade to get full access to premium features. <br> Premium includes:</p>
325
326 <ul class="upgrade-features">
327 <li><strong>Higher session limits</strong> for growing traffic</li>
328 <li><strong>Custom branding</strong> for a seamless site experience</li>
329 <li><strong>Better insights</strong> to optimize your opt-ins</li>
330 </ul>
331
332 <div class="upgrade-container">
333 <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')">
334 <?php echo esc_html__( 'Upgrade now', 'cookiebot' ); ?>
335 </button>
336 </div>
337 </div>
338 <?php endif; ?>
339 </div>
340 <?php endif; ?>
341 </div>
342 </div>
343
344 <!-- Right Side - Banner Control (only show when CBID exists) -->
345 <?php if ( $template_args['user_data'] && $template_args['cbid'] ) : ?>
346 <div class="gray-box-overview">
347 <div class="header-section">
348 <div>
349 <div class="top-row">
350 <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>
351 <span class="free-badge"><?php echo esc_html( $template_args['subscription'] ); ?></span>
352 </div>
353 <h1><?php echo esc_html__( 'Banner control', 'cookiebot' ); ?></h1>
354 <p class="subtitle">
355 <?php esc_html_e( 'Need more options? Head to the', 'cookiebot' ); ?>
356 <a href="https://admin.usercentrics.eu/#/v3/configuration/setup?settingsId=<?php echo esc_attr( $template_args['cbid'] ); ?>" target="_blank" style="color: inherit;">
357 <?php esc_html_e( 'Admin Interface.', 'cookiebot' ); ?>
358 </a>
359 </p>
360 </div>
361 </div>
362
363 <div class="banner-options">
364 <!-- Show banner on site option -->
365 <div class="option-group">
366 <span class="option-label"><?php echo esc_html__( 'Show banner on site', 'cookiebot' ); ?></span>
367 <div class="option-controls">
368 <div class="toggle-switch">
369 <input type="checkbox" id="cookiebot-banner-enabled" class="toggle-input"
370 value="1"
371 <?php
372 checked( 1, $template_args['banner_enabled'] === '1' );
373 ?>
374 />
375 <label for="cookiebot-banner-enabled" class="toggle-label"></label>
376 </div>
377 <div class="label-wrapper status-badge <?php echo ! empty( $template_args['cbid'] ) && $template_args['banner_enabled'] === '1' ? 'active' : ' inactive'; ?>" id="cookiebot-banner-badge">
378 <div class="label-2">
379 <?php echo ! empty( $template_args['cbid'] ) && $template_args['banner_enabled'] === '1' ? esc_html__( 'Active', 'cookiebot' ) : esc_html__( 'Inactive', 'cookiebot' ); ?>
380 </div>
381 </div>
382 </div>
383 </div>
384
385 <div class="option-divider"></div>
386
387 <!-- Auto blocking mode option -->
388 <div class="option-group">
389 <div class="option-label-wrapper">
390 <span class="option-label"><?php echo esc_html__( 'Auto blocking mode', 'cookiebot' ); ?></span>
391 <div class="tooltip">
392 <span class="tooltiptext">Blocks cookies automatically until users consent. No script tagging required. Scan results determine what gets blocked.</span>
393 <img class="img" src="<?php echo esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/info.svg' ); ?>" />
394 </div>
395 </div>
396 <div class="option-controls">
397 <div class="toggle-switch">
398 <input type="checkbox" id="cookiebot-uc-auto-blocking-mode" class="toggle-input"
399 value="1"
400 <?php
401 checked( 1, $template_args['auto_blocking_mode'] === '1' );
402 ?>
403 />
404 <label for="cookiebot-uc-auto-blocking-mode" class="toggle-label"></label>
405 </div>
406 <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">
407 <div class="label-2">
408 <?php echo ! empty( $template_args['cbid'] ) && $template_args['auto_blocking_mode'] === '1' ? esc_html__( 'Active', 'cookiebot' ) : esc_html__( 'Inactive', 'cookiebot' ); ?>
409 </div>
410 </div>
411 </div>
412 </div>
413
414 <div class="option-divider"></div>
415
416 <!-- Google Consent Mode option -->
417 <div class="option-group">
418 <div class="option-label-wrapper">
419 <span class="option-label"><?php echo esc_html__( 'Google Consent Mode', 'cookiebot' ); ?></span>
420
421 <div class="tooltip">
422 <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>
423 <img class="img" src="<?php echo esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/info.svg' ); ?>" />
424 </div>
425
426 </div>
427 <div class="option-controls">
428 <div class="toggle-switch">
429 <input type="checkbox" id="cookiebot-gcm" class="toggle-input"
430 value="1"
431 <?php
432 checked( 1, $template_args['gcm_enabled'] === '1' );
433 ?>
434 />
435 <label for="cookiebot-gcm" class="toggle-label"></label>
436 </div>
437
438 <div class="label-wrapper status-badge <?php echo ! empty( $template_args['cbid'] ) && $template_args['gcm_enabled'] === '1' ? 'active' : 'inactive'; ?>" id="cookiebot-gcm-badge">
439 <div class="label-2">
440 <?php echo ! empty( $template_args['cbid'] ) && $template_args['gcm_enabled'] === '1' ? esc_html__( 'Active', 'cookiebot' ) : esc_html__( 'Inactive', 'cookiebot' ); ?>
441 </div>
442 </div>
443 </div>
444 </div>
445
446 <div class="option-divider"></div>
447
448 <!-- Legal framework option -->
449 <div class="option-group">
450 <span class="option-label"><?php echo esc_html__( 'Legal framework', 'cookiebot' ); ?></span>
451 <div class="option-controls legal-framework">
452 <span class="legal-framework-badge"><?php echo esc_html( $template_args['legal_framework'] ); ?></span>
453 </div>
454 </div>
455 </div>
456
457 <div class="banner-actions">
458 <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>
459 <a href="<?php echo esc_url( $template_args['configure_banner_link'] ); ?>" class="configure-link" target="_blank">
460 <img class="material-icons" src="<?php echo esc_url( CYBOT_COOKIEBOT_PLUGIN_URL . 'assets/img/icons/link.svg' ); ?>" />
461 <?php echo esc_html__( 'How to configure your banner', 'cookiebot' ); ?>
462 </a>
463 </div>
464 </div>
465 <?php endif; ?>
466 </div>
467 </div>
468 </div>
469 </div>
470