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