Skip to content

Commit ff950d1

Browse files
authored
Merge pull request #352 from CybotAS/4.6.0
v4.6.0
2 parents 0d89e1c + b02b341 commit ff950d1

File tree

11 files changed

+218
-25
lines changed

11 files changed

+218
-25
lines changed

assets/css/backend/dashboard-old.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
margin-bottom: 30px;
3232
}
3333

34+
.cb-main__dashboard__card__cookiebot {
35+
width: 100%;
36+
display: grid;
37+
}
38+
3439
.cb-main__card__inner {
3540
display: grid;
3641
align-self: stretch;

assets/img/cb-wp.png

-3.65 KB
Loading

cookiebot.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Plugin URI: https://www.cookiebot.com/
66
Description: Install your cookie banner in minutes. Automatically scan and block cookies to comply with the GDPR, CCPA, Google Consent Mode v2. Free plan option.
77
Author: Usercentrics A/S
8-
Version: 4.5.11
8+
Version: 4.6.0
99
Author URI: https://www.cookiebot.com/
1010
Text Domain: cookiebot
1111
Domain Path: /langs

readme.txt

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Tags: cookie banner, cookie consent, cookie notice, GDPR, privacy, cmp, consent‑management‑platform, google‑consent‑mode, compliance, gdpr‑compliance, ccpa, dma
44
* Requires at least: 4.4
55
* Tested up to: 6.8
6-
* Stable tag: 4.5.11
6+
* Stable tag: 4.6.0
77
* Requires PHP: 5.6
88
* License: GPLv2 or later
99

@@ -197,6 +197,20 @@ Usercentrics Cookiebot is fully integrated with the WP Consent API. When your vi
197197
## Changelog ##
198198
**Cookiebot CMP Plugin will soon no longer support PHP 5. If your website still runs on this version we recommend upgrading so you can continue enjoying the features Cookiebot CMP offers.**
199199

200+
### 4.6.0 ###
201+
Release date: September 23rd 2025
202+
203+
Cookiebot CMP version 4.6.0 is out! This release has a new feature
204+
205+
####What's new####
206+
207+
* Added a new dashboard for new users to improve onboarding.
208+
* Enabled sign-up through Cookiebot for smoother registration.
209+
210+
####Improved####
211+
212+
* Simplified the account connection process, making it more intuitive.
213+
200214
### 4.5.11 ###
201215
Release date: August 12th 2025
202216

src/lib/Cookiebot_WP.php

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static function debug_log( $message ) {
2727
}
2828
}
2929

30-
const COOKIEBOT_PLUGIN_VERSION = '4.5.11';
30+
const COOKIEBOT_PLUGIN_VERSION = '4.6.0';
3131
const COOKIEBOT_MIN_PHP_VERSION = '5.6.0';
3232

3333
/**
@@ -359,9 +359,10 @@ public static function cookiebot_disabled_in_admin() {
359359
*/
360360
private function set_default_options() {
361361
$options = array(
362-
'cookiebot-nooutput-admin' => '1',
363-
'cookiebot-gcm' => '1',
364-
'cookiebot-banner-enabled' => '1',
362+
'cookiebot-nooutput-admin' => '1',
363+
'cookiebot-gcm' => '1',
364+
'cookiebot-banner-enabled' => '1',
365+
'cookiebot-cookie-blocking-mode' => 'auto',
365366
);
366367

367368
foreach ( $options as $option => $default ) {
@@ -374,6 +375,12 @@ private function set_default_options() {
374375
}
375376
}
376377

378+
// Safeguard to always garantee the blocking mode has a value.
379+
// There is one situation in which this value is cleared after disconnecting an onboarded user account
380+
if ( empty( get_option( 'cookiebot-cookie-blocking-mode' ) ) ) {
381+
update_option( 'cookiebot-cookie-blocking-mode', 'auto' );
382+
}
383+
377384
self::set_tcf_version();
378385
}
379386

src/settings/pages/Dashboard_Page.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,34 @@ public function display() {
228228
return;
229229
}
230230

231+
// Redirect new users to cookiebot dashboard page
232+
if ( empty( $cbid ) ) {
233+
$args = array(
234+
'cbid' => Cookiebot_WP::get_cbid(),
235+
'cb_wp' => asset_url( 'img/cb-wp.png' ),
236+
'europe_icon' => asset_url( 'img/europe.png' ),
237+
'usa_icon' => asset_url( 'img/usa.png' ),
238+
'check_icon' => asset_url( 'img/icons/check.svg' ),
239+
'link_icon' => asset_url( 'img/icons/link.svg' ),
240+
);
241+
242+
$style_sheets = array(
243+
array( 'cookiebot-dashboard-css', 'css/backend/dashboard-old.css' ),
244+
);
245+
246+
foreach ( $style_sheets as $style ) {
247+
wp_enqueue_style(
248+
$style[0],
249+
asset_url( $style[1] ),
250+
null,
251+
Cookiebot_WP::COOKIEBOT_PLUGIN_VERSION
252+
);
253+
}
254+
255+
include_view( Cookiebot_Frame::get_view_path() . 'dashboard-cookiebot.php', $args );
256+
return;
257+
}
258+
231259
wp_enqueue_style(
232260
'cookiebot-dashboard-css',
233261
asset_url( 'css/backend/dashboard.css' ),

src/view/admin/cb_frame/support-page.php

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class="cb-faq__toggle"></span></h3>
7676
printf(
7777
// translators: the first placeholder string will be replaced with a html anchor open tag and the second placeholder string will be replaced by the html anchor closing tag
7878
esc_html__( 'Log in to your %1$sCookiebot CMP account%2$s.', 'cookiebot' ),
79-
'<a href="https://www.cookiebot.com/en/account/?utm_source=wordpress&utm_medium=referral&utm_campaign=banner" target="_blank" rel="noopener">',
79+
'<a href="https://admin.cookiebot.com" target="_blank" rel="noopener">',
8080
'</a>'
8181
);
8282
?>
@@ -85,7 +85,7 @@ class="cb-faq__toggle"></span></h3>
8585
<?php
8686
printf(
8787
// translators: the placeholder strings denote the positions of <b>, </b>, <b> and </b> HTML tags
88-
esc_html__( 'Go to %1$s"Settings"%2$s and setup your Cookiebot CMP', 'cookiebot' ),
88+
esc_html__( 'Go to %1$s"Domains & Aliases"%2$s and setup your Cookiebot CMP', 'cookiebot' ),
8989
'<b>',
9090
'</b>'
9191
);
@@ -95,13 +95,22 @@ class="cb-faq__toggle"></span></h3>
9595
<?php
9696
printf(
9797
// translators: the placeholder strings denote the positions of <b> and </b> HTML tags
98-
esc_html__( 'Go to the %1$s"Your scripts"%2$s tab', 'cookiebot' ),
98+
esc_html__( 'Go to %1$s"Implementation"%2$s and scroll down to the %1$s"Installation guides"%2$s section', 'cookiebot' ),
99+
'<b>',
100+
'</b>'
101+
);
102+
?>
103+
</li>
104+
<li>
105+
<?php
106+
printf(
107+
// translators: the placeholder strings denote the positions of <b> and </b> HTML tags
108+
esc_html__( 'Copy the value of %1$s"Domain group ID"%2$s - eg.: abcdef12-3456-7890-abcd-ef1234567890', 'cookiebot' ),
99109
'<b>',
100110
'</b>'
101111
);
102112
?>
103113
</li>
104-
<li><?php esc_html_e( 'Copy the value inside the data-cid parameter - eg.: abcdef12-3456-7890-abcd-ef1234567890', 'cookiebot' ); ?></li>
105114
<li>
106115
<?php
107116
printf(
Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
<?php
2+
3+
use cybot\cookiebot\settings\templates\Header;
4+
use cybot\cookiebot\settings\templates\Main_Tabs;
5+
6+
use cybot\cookiebot\settings\pages\Settings_Page;
7+
8+
/**
9+
* @var string $cbid
10+
* @var string $cb_wp
11+
* @var string $europe_icon
12+
* @var string $usa_icon
13+
* @var string $check_icon
14+
* @var string $link_icon
15+
*/
16+
17+
$header = new Header();
18+
$main_tabs = new Main_Tabs();
19+
20+
$header->display();
21+
?>
22+
<div class="cb-body">
23+
<div class="cb-wrapper">
24+
<?php $main_tabs->display( 'dashboard' ); ?>
25+
<div class="cb-main__content">
26+
<div class="cb-main__dashboard__card--container">
27+
<div class="cb-main__dashboard__card__cookiebot">
28+
<div class="cb-main__card__inner account_card">
29+
<img src="<?php echo esc_html( $cb_wp ); ?>" alt="Cookiebot for WordPress" class="cb-wp">
30+
<div class="cb-main__card__content">
31+
<h2 class="cb-main__card__title">
32+
<?php echo esc_html__( 'I already have a Cookiebot CMP account', 'cookiebot' ); ?>
33+
</h2>
34+
<a href="/wp-admin/admin.php?page=<?php echo esc_html( Settings_Page::ADMIN_SLUG ); ?>"
35+
class="cb-btn cb-main-btn">
36+
<?php echo esc_html__( 'Connect my existing account', 'cookiebot' ); ?>
37+
</a>
38+
</div>
39+
</div>
40+
</div>
41+
42+
<div class="cb-main__dashboard__card__cookiebot">
43+
<div class="cb-main__card__inner new_card">
44+
<div class="cb-main__card__content">
45+
<p class="cb-main__card__label">
46+
<?php echo esc_html__( 'Get started', 'cookiebot' ); ?>
47+
</p>
48+
<h2 class="cb-main__card__title">
49+
<?php echo esc_html__( 'Create a new Cookiebot CMP account', 'cookiebot' ); ?>
50+
</h2>
51+
<a href="https://admin.cookiebot.com/en/signup/?utm_source=wordpress&utm_medium=organic&utm_campaign=banner"
52+
target="_blank" class="cb-btn cb-white-btn" rel="noopener">
53+
<?php echo esc_html__( 'Create a new account', 'cookiebot' ); ?>
54+
</a>
55+
</div>
56+
</div>
57+
</div>
58+
</div>
59+
60+
<div class="cb-main__dashboard__card--container">
61+
<div class="cb-main__dashboard__card">
62+
<div class="cb-main__card__inner start_card">
63+
<div class="cb-main__video">
64+
<iframe src="https://www.youtube.com/embed/1-lvuJa42P0"
65+
title="Cookiebot WordPress Installation"
66+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
67+
allowfullscreen></iframe>
68+
</div>
69+
<div class="cb-main__card--content">
70+
<p class="cb-main__card__label"><?php echo esc_html__( 'Video guide', 'cookiebot' ); ?></p>
71+
<h2 class="cb-main__card__title">
72+
<?php echo esc_html__( 'How to get started with Cookiebot CMP', 'cookiebot' ); ?>
73+
</h2>
74+
<a href="https://support.cookiebot.com/hc/en-us/articles/4408356523282-Getting-started"
75+
target="_blank" class="cb-btn cb-link-btn" rel="noopener">
76+
<?php echo esc_html__( 'Learn more about Cookiebot CMP', 'cookiebot' ); ?>
77+
</a>
78+
</div>
79+
</div>
80+
</div>
81+
<div class="cb-main__dashboard__card">
82+
<div class="cb-main__card__inner legislations_card">
83+
<div class="cb-main__legislation__item">
84+
<div class="cb-main__legislation____icon">
85+
<img src="<?php echo esc_html( $europe_icon ); ?>" alt="GDPR">
86+
</div>
87+
<div class="cb-main__legislation__name">
88+
<?php echo esc_html__( 'GDPR', 'cookiebot' ); ?>
89+
</div>
90+
<div class="cb-main__legislation__region">
91+
<?php echo esc_html__( 'Europe', 'cookiebot' ); ?>
92+
</div>
93+
<a href="https://www.cookiebot.com/en/gdpr/" target="_blank"
94+
class="cb-btn cb-link-btn external-icon legislation-link" rel="noopener">
95+
<?php echo esc_html__( 'Learn More', 'cookiebot' ); ?>
96+
<img src="<?php echo esc_html( $link_icon ); ?>"
97+
alt="<?php echo esc_html__( 'Learn More', 'cookiebot' ); ?>">
98+
</a>
99+
</div>
100+
<div class="cb-main__legislation__item">
101+
<div class="cb-main__legislation____icon">
102+
<img src="<?php echo esc_html( $usa_icon ); ?>" alt="CCPA">
103+
</div>
104+
<div class="cb-main__legislation__name">
105+
<?php echo esc_html__( 'CCPA', 'cookiebot' ); ?>
106+
</div>
107+
<div class="cb-main__legislation__region">
108+
<?php echo esc_html__( 'North America', 'cookiebot' ); ?>
109+
</div>
110+
<a href="https://www.cookiebot.com/en/what-is-ccpa/" target="_blank"
111+
class="cb-btn cb-link-btn external-icon legislation-link" rel="noopener">
112+
<?php echo esc_html__( 'Learn More', 'cookiebot' ); ?>
113+
<img src="<?php echo esc_html( $link_icon ); ?>"
114+
alt="<?php echo esc_html__( 'Learn More', 'cookiebot' ); ?>">
115+
</a>
116+
</div>
117+
<a href="https://www.cookiebot.com/en/blog/" target="_blank"
118+
class="cb-btn cb-link-btn cb-right-btn" rel="noopener">
119+
<?php echo esc_html__( 'See other legislations', 'cookiebot' ); ?>
120+
</a>
121+
</div>
122+
</div>
123+
</div>
124+
</div>
125+
</div>
126+
</div>

src/view/admin/common/support-page.php

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,21 +56,25 @@
5656
rel="noopener">
5757
<?php esc_html_e( 'Visit Support Center', 'cookiebot' ); ?>
5858
</a>
59-
<a href="#" onclick="copyDebugInfo();" class="cb-btn cb-secondary-btn" style="margin-left: 20px;">
60-
<?php esc_html_e( 'Copy Debug Info', 'cookiebot' ); ?>
61-
</a>
62-
</div>
63-
</div>
6459

65-
<div class="cb-debug__code__container">
66-
<textarea
67-
cols="50"
68-
rows="40"
69-
id="cookiebot-debug-info"
70-
readonly="readonly"
71-
><?php echo esc_textarea( $debug_output ); ?></textarea>
60+
<?php if ( Cookiebot_Frame::is_cb_frame_type() !== 'empty' ) : ?>
61+
<a href="#" onclick="copyDebugInfo();" class="cb-btn cb-secondary-btn" style="margin-left: 20px;">
62+
<?php esc_html_e( 'Copy Debug Info', 'cookiebot' ); ?>
63+
</a>
64+
<?php endif; ?>
65+
</div>
7266
</div>
7367

68+
<?php if ( Cookiebot_Frame::is_cb_frame_type() !== 'empty' ) : ?>
69+
<div class="cb-debug__code__container">
70+
<textarea
71+
cols="50"
72+
rows="40"
73+
id="cookiebot-debug-info"
74+
readonly="readonly"
75+
><?php echo esc_textarea( $debug_output ); ?></textarea>
76+
</div>
77+
<?php endif; ?>
7478
</div>
7579
</div>
7680
</div>

src/view/admin/common/templates/main-tabs.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
$cbid = Cookiebot_WP::get_cbid();
1717
$auth_token = get_option( 'cookiebot-auth-token' );
1818
$user_data = Cookiebot_WP::get_user_data();
19-
$show_settings = $active_tab === 'settings' || ! empty( $cbid );
20-
$show_plugins = ( ! $isnw && Cookiebot_Frame::is_cb_frame_type() !== 'empty' ) || empty( $user_data );
19+
$show_settings = true;
20+
$show_plugins = ! $isnw && Cookiebot_Frame::is_cb_frame_type() !== 'empty';
2121
$feedback_url = 'https://form.typeform.com/to/n6ZlunZP';
2222

2323
?>

0 commit comments

Comments
 (0)