PluginProbe ʕ •ᴥ•ʔ
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode / 4.3.11
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode v4.3.11
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 / settings / dashboard-page.php
cookiebot / src / view / admin / settings Last commit date
multiple-configuration 3 years ago prior-consent 2 years ago dashboard-page.php 1 year ago debug-page.php 3 years ago gcm-page.php 3 years ago gtm-page.php 3 years ago iab-page.php 1 year ago legislations-page.php 3 years ago network-settings-page.php 1 year ago settings-page.php 1 year ago support-page.php 1 year ago
dashboard-page.php
205 lines
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 $today = new DateTime( 'now' );
21 $end_date = new DateTime( '2024-12-03' );
22 $remaining = $today->diff( $end_date );
23 $days_left = $remaining->format( '%d' );
24
25 $header->display();
26 ?>
27 <div class="cb-body">
28 <div class="cb-wrapper">
29 <?php $main_tabs->display( 'dashboard' ); ?>
30 <div class="cb-main__content <?php echo $cbid ? 'sync-account' : ''; ?>">
31 <?php
32 if ( ! $cbid ) :
33 if ( $today < $end_date ) :
34 ?>
35 <div class="cb-main__dashboard__promo">
36 <div class="cb-main__dashboard__promo--inner">
37 <div class="cb-main__dashboard__promo--content">
38 <div class="cb-dashboard__promo--label"><div class="icon"></div>Black Friday Deal</div>
39 <h2 class="cb-dashboard__promo--title">Get <div class="highlight">10% off</div> for 6 months</h2>
40 <p class="promo-condition">Enjoy a free plan for sites with up to 50 subpages. Premium plans are available for sites with 50+ subpages. Start with a 14-day trial, then enjoy a 10% discount on your selected plan for the first 6 months. After that, pricing will revert to the regular rate. This offer is available for new users who sign up between November 20 and December 2, 2024.</p>
41 </div>
42 <div class="cb-main__dashboard__promo--banner">
43 <img src="<?php echo esc_html( CYBOT_COOKIEBOT_PLUGIN_URL . '/assets/img/extra/cb_bf_banner.svg' ); ?>" alt="CB BF banner">
44 </div>
45 </div>
46 </div>
47 <?php
48 endif;
49 endif;
50 ?>
51 <div class="cb-main__dashboard__card--container">
52 <?php if ( ! $cbid ) : ?>
53 <div class="cb-main__dashboard__card">
54 <div class="cb-main__card__inner new_card">
55 <div class="cb-main__card__content">
56 <h2 class="cb-main__card__title">
57 <?php echo esc_html__( 'Create a new Cookiebot CMP account', 'cookiebot' ); ?>
58 </h2>
59 <?php if ( $today < $end_date ) : ?>
60 <div class="cb-bf-counter">
61 <div class="cb-bf-counter-label">-10%</div>
62 <div class="cb-bf-counter-number"><?php echo esc_html( $days_left ); ?></div>
63 <div class="cb-bf-counter-last"><?php echo $days_left === '1' ? esc_html( 'day' ) : esc_html( 'days' ); ?> to go</div>
64 </div>
65 <a href="https://admin.cookiebot.com/signup?coupon=BFRIDAYWP10&utm_source=wordpress&utm_medium=referral&utm_campaign=banner"
66 target="_blank" class="cb-btn cb-main-btn" rel="noopener">
67 <?php echo esc_html__( 'Create a new account', 'cookiebot' ); ?>
68 </a>
69 <?php else : ?>
70 <a href="https://admin.cookiebot.com/signup/?utm_source=wordpress&utm_medium=referral&utm_campaign=banner"
71 target="_blank" class="cb-btn cb-main-btn" rel="noopener">
72 <?php echo esc_html__( 'Create a new account', 'cookiebot' ); ?>
73 </a>
74 <?php endif; ?>
75 </div>
76 </div>
77 </div>
78 <div class="cb-main__dashboard__card">
79 <div class="cb-main__card__inner account_card">
80 <div class="cb-main__card__content">
81 <h2 class="cb-main__card__title">
82 <?php echo esc_html__( 'I already have a Cookiebot CMP account', 'cookiebot' ); ?>
83 </h2>
84 <a href="<?php echo esc_url( add_query_arg( 'page', Settings_Page::ADMIN_SLUG, admin_url( 'admin.php' ) ) ); ?>"
85 class="cb-btn cb-main-btn">
86 <?php echo esc_html__( 'Connect my existing account', 'cookiebot' ); ?>
87 </a>
88 </div>
89 </div>
90 </div>
91 <?php else : ?>
92 <div class="cb-main__dashboard__card">
93 <div class="cb-main__card__inner start_card">
94 <h2 class="cb-main__card__title">
95 <?php echo esc_html__( 'Your Cookiebot CMP for WordPress solution', 'cookiebot' ); ?>
96 </h2>
97 <div class="cb-main__card__success">
98 <div class="cb-btn cb-success-btn">
99 <img src="<?php echo esc_html( $check_icon ); ?>" alt="Check">
100 </div>
101 <p class="cb-main__success__text">
102 <span><?php echo esc_html__( 'Congratulations!', 'cookiebot' ); ?></span>
103 <?php echo esc_html__( 'You have added your Domain Group ID to WordPress. You are all set!', 'cookiebot' ); ?>
104 </p>
105 </div>
106 </div>
107 </div>
108
109 <div class="cb-main__dashboard__card">
110 <div class="cb-main__card__inner start_card">
111 <h3 class="cb-main__card__subtitle">
112 <?php echo esc_html__( 'Your opinion matters', 'cookiebot' ); ?>
113 </h3>
114 <p class="cb-main__review__text">
115 <?php echo esc_html__( 'Are you happy with our WordPress plugin? Your feedback will help us make our product better for you.', 'cookiebot' ); ?>
116 </p>
117 <a href="https://wordpress.org/support/plugin/cookiebot/reviews/#new-post" target="_blank"
118 class="cb-btn cb-link-btn" rel="noopener">
119 <?php echo esc_html__( 'Write a review', 'cookiebot' ); ?>
120 </a>
121 </div>
122 </div>
123
124 <div class="cb-main__dashboard__card">
125 <div class="cb-main__card__inner start_card">
126 <h3 class="cb-main__card__subtitle">
127 <?php echo esc_html__( 'Learn more about how to optimize your Cookiebot CMP setup?', 'cookiebot' ); ?>
128 </h3>
129 <a href="https://support.cookiebot.com/hc/en-us" target="_blank" class="cb-btn cb-link-btn"
130 rel="noopener">
131 <?php echo esc_html__( 'Visit Help Center', 'cookiebot' ); ?>
132 </a>
133 </div>
134 </div>
135 <?php endif; ?>
136 </div>
137
138 <div class="cb-main__dashboard__card--container">
139 <div class="cb-main__dashboard__card">
140 <div class="cb-main__card__inner start_card">
141 <div class="cb-main__video">
142 <iframe src="https://www.youtube.com/embed/1-lvuJa42P0"
143 title="Cookiebot WordPress Installation"
144 allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
145 allowfullscreen></iframe>
146 </div>
147 <div class="cb-main__card--content">
148 <p class="cb-main__card__label"><?php echo esc_html__( 'Video guide', 'cookiebot' ); ?></p>
149 <h2 class="cb-main__card__title">
150 <?php echo esc_html__( 'How to get started with Cookiebot CMP', 'cookiebot' ); ?>
151 </h2>
152 <a href="https://support.cookiebot.com/hc/en-us/articles/4408356523282-Getting-started"
153 target="_blank" class="cb-btn cb-link-btn" rel="noopener">
154 <?php echo esc_html__( 'Learn more about Cookiebot CMP', 'cookiebot' ); ?>
155 </a>
156 </div>
157 </div>
158 </div>
159 <div class="cb-main__dashboard__card">
160 <div class="cb-main__card__inner legislations_card">
161 <div class="cb-main__legislation__item">
162 <div class="cb-main__legislation____icon">
163 <img src="<?php echo esc_html( $europe_icon ); ?>" alt="GDPR">
164 </div>
165 <div class="cb-main__legislation__name">
166 <?php echo esc_html__( 'GDPR', 'cookiebot' ); ?>
167 </div>
168 <div class="cb-main__legislation__region">
169 <?php echo esc_html__( 'Europe', 'cookiebot' ); ?>
170 </div>
171 <a href="https://www.cookiebot.com/en/gdpr/" target="_blank"
172 class="cb-btn cb-link-btn external-icon legislation-link" rel="noopener">
173 <span><?php echo esc_html__( 'Learn More', 'cookiebot' ); ?></span>
174 <img src="<?php echo esc_html( $link_icon ); ?>"
175 alt="<?php echo esc_html__( 'Learn More', 'cookiebot' ); ?>">
176 </a>
177 </div>
178 <div class="cb-main__legislation__item">
179 <div class="cb-main__legislation____icon">
180 <img src="<?php echo esc_html( $usa_icon ); ?>" alt="CCPA">
181 </div>
182 <div class="cb-main__legislation__name">
183 <?php echo esc_html__( 'CCPA', 'cookiebot' ); ?>
184 </div>
185 <div class="cb-main__legislation__region">
186 <?php echo esc_html__( 'North America', 'cookiebot' ); ?>
187 </div>
188 <a href="https://www.cookiebot.com/en/what-is-ccpa/" target="_blank"
189 class="cb-btn cb-link-btn external-icon legislation-link" rel="noopener">
190 <span><?php echo esc_html__( 'Learn More', 'cookiebot' ); ?></span>
191 <img src="<?php echo esc_html( $link_icon ); ?>"
192 alt="<?php echo esc_html__( 'Learn More', 'cookiebot' ); ?>">
193 </a>
194 </div>
195 <a href="https://www.cookiebot.com/en/blog/" target="_blank"
196 class="cb-btn cb-link-btn cb-right-btn" rel="noopener">
197 <?php echo esc_html__( 'See other legislations', 'cookiebot' ); ?>
198 </a>
199 </div>
200 </div>
201 </div>
202 </div>
203 </div>
204 </div>
205