multiple-configuration
3 years ago
prior-consent
3 years ago
dashboard-page.php
3 years ago
debug-page.php
3 years ago
gtm-page.php
3 years ago
iab-page.php
3 years ago
legislations-page.php
4 years ago
network-settings-page.php
3 years ago
settings-page.php
3 years ago
support-page.php
3 years ago
dashboard-page.php
112 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 | $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 <?= $cbid ? 'sync-account' : '';?>"> |
| 26 | <?php if(!$cbid) : |
| 27 | $today = new DateTime('now'); |
| 28 | $end_date = new DateTime('2022-12-31'); |
| 29 | |
| 30 | if($today<$end_date) : |
| 31 | ?> |
| 32 | <div class="cb-main__dashboard__promo"> |
| 33 | <div class="cb-main__dashboard__promo--inner"> |
| 34 | <div class="cb-dashboard__promo--label"><div class="time-icon"></div><span>End of Year Promotion</span></div> |
| 35 | <h2 class="cb-dashboard__promo--title">Get <span class="highlight">30% off</span> your premium Cookiebot CMP subscription*</h2> |
| 36 | <a href="https://www.cookiebot.com/en/new-wp-cookie-plugin?utm_source=wordpress&utm_medium=organic&utm_campaign=banner" target="_blank" class="cb-btn cb-promo-btn">SIGN UP NOW</a> |
| 37 | <p class="promo-condition">* This promotion is valid until December 31st, 2022 and will be calculated automatically. The discount only applies to new subscriptions and is valid for the first 12 months.</p> |
| 38 | </div> |
| 39 | </div> |
| 40 | <?php |
| 41 | endif; |
| 42 | endif; |
| 43 | ?> |
| 44 | <div class="cb-main__dashboard__card--container"> |
| 45 | <div class="cb-main__dashboard__card"> |
| 46 | <div class="cb-main__card__inner <?= $cbid ? 'start_card' : 'account_card'; ?>"> |
| 47 | <?php if(!$cbid) : ?> |
| 48 | <img src="<?= $cb_wp?>" alt="Cookiebot for WordPress" class="cb-wp"> |
| 49 | <div class="cb-main__card__content"> |
| 50 | <h2 class="cb-main__card__title"><?= __('I already have a Cookiebot CMP account' , 'cookiebot' ) ; ?></h2> |
| 51 | <a href="/wp-admin/admin.php?page=<?= Settings_Page::ADMIN_SLUG?>" class="cb-btn cb-main-btn"><?= __('Connect my existing account' , 'cookiebot' ) ; ?></a> |
| 52 | </div> |
| 53 | <?php else: ?> |
| 54 | <h2 class="cb-main__card__title"><?= __('Your Cookiebot CMP for WordPress solution' , 'cookiebot' ) ; ?></h2> |
| 55 | <div class="cb-main__card__success"> |
| 56 | <div class="cb-btn cb-success-btn"><img src="<?= $check_icon ?>" alt="Check"> <?= __('Congratulations!' , 'cookiebot' ) ; ?></div> |
| 57 | <p class="cb-main__success__text"> <?= __('You have added your Domain Group ID to WordPress. You are all set!' , 'cookiebot' ) ; ?></p> |
| 58 | </div> |
| 59 | <?php endif; ?> |
| 60 | </div> |
| 61 | </div> |
| 62 | |
| 63 | <div class="cb-main__dashboard__card"> |
| 64 | <div class="cb-main__card__inner <?= $cbid ? 'start_card' : 'new_card'; ?>"> |
| 65 | <?php if(!$cbid) : ?> |
| 66 | <div class="cb-main__card__content"> |
| 67 | <p class="cb-main__card__label"><?= __('Get started' , 'cookiebot' ) ; ?></p> |
| 68 | <h2 class="cb-main__card__title"><?= __('Create a new Cookiebot CMP account' , 'cookiebot' ) ; ?></h2> |
| 69 | <a href="https://manage.cookiebot.com/en/signup" target="_blank" class="cb-btn cb-white-btn"><?= __('Create a new account' , 'cookiebot' ) ; ?></a> |
| 70 | </div> |
| 71 | <?php else: ?> |
| 72 | <h3 class="cb-main__card__subtitle"><?= __('Learn more about how to optimize your Cookiebot CMP setup?' , 'cookiebot' ) ; ?></h3> |
| 73 | <a href="https://support.cookiebot.com/hc/en-us" target="_blank" class="cb-btn cb-link-btn"><?= __('Visit Help Center' , 'cookiebot' ) ; ?></a> |
| 74 | <?php endif; ?> |
| 75 | </div> |
| 76 | </div> |
| 77 | </div> |
| 78 | |
| 79 | <div class="cb-main__dashboard__card--container"> |
| 80 | <div class="cb-main__dashboard__card"> |
| 81 | <div class="cb-main__card__inner start_card"> |
| 82 | <div class="cb-main__video"> |
| 83 | <iframe src="https://www.youtube.com/embed/eSVFnjoMKFk" title="Cookiebot WordPress Installation" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> |
| 84 | </div> |
| 85 | <div class="cb-main__card--content"> |
| 86 | <p class="cb-main__card__label"><?= __('Video guide' , 'cookiebot' ) ; ?></p> |
| 87 | <h2 class="cb-main__card__title"><?= __('How to get started with Cookiebot CMP' , 'cookiebot' ) ; ?></h2> |
| 88 | <a href="https://support.cookiebot.com/hc/en-us/articles/4408356523282-Getting-started" target="_blank" class="cb-btn cb-link-btn"><?= __('Learn more about Cookiebot CMP' , 'cookiebot' ) ; ?></a> |
| 89 | </div> |
| 90 | </div> |
| 91 | </div> |
| 92 | <div class="cb-main__dashboard__card"> |
| 93 | <div class="cb-main__card__inner legislations_card"> |
| 94 | <div class="cb-main__legislation__item"> |
| 95 | <div class="cb-main__legislation____icon"><img src="<?= $europe_icon ?>" alt="GDPR"></div> |
| 96 | <div class="cb-main__legislation__name"><?= __('GDPR' , 'cookiebot' ) ; ?></div> |
| 97 | <div class="cb-main__legislation__region"><?= __('Europe' , 'cookiebot' ) ; ?></div> |
| 98 | <a href="https://www.cookiebot.com/en/gdpr/" target="_blank" class="cb-btn cb-link-btn external-icon legislation-link"><?= __('Learn More' , 'cookiebot' ) ; ?> <img src="<?= $link_icon ?>" alt="<?= __('Learn More' , 'cookiebot' ) ; ?>"></a> |
| 99 | </div> |
| 100 | <div class="cb-main__legislation__item"> |
| 101 | <div class="cb-main__legislation____icon"><img src="<?= $usa_icon ?>" alt="CCPA"></div> |
| 102 | <div class="cb-main__legislation__name"><?= __('CCPA' , 'cookiebot' ) ; ?></div> |
| 103 | <div class="cb-main__legislation__region"><?= __('North America' , 'cookiebot' ) ; ?></div> |
| 104 | <a href="https://www.cookiebot.com/en/what-is-ccpa/" target="_blank" class="cb-btn cb-link-btn external-icon legislation-link"><?= __('Learn More' , 'cookiebot' ) ; ?> <img src="<?= $link_icon ?>" alt="<?= __('Learn More' , 'cookiebot' ) ; ?>"></a> |
| 105 | </div> |
| 106 | <a href="https://www.cookiebot.com/en/blog/" target="_blank" class="cb-btn cb-link-btn cb-right-btn"><?= __('See other legislations' , 'cookiebot' ) ; ?></a> |
| 107 | </div> |
| 108 | </div> |
| 109 | </div> |
| 110 | </div> |
| 111 | </div> |
| 112 | </div> |