multiple-configuration
3 years ago
prior-consent
2 years ago
dashboard-page.php
2 years ago
debug-page.php
3 years ago
gcm-page.php
3 years ago
gtm-page.php
3 years ago
iab-page.php
2 years ago
legislations-page.php
3 years ago
network-settings-page.php
2 years ago
settings-page.php
2 years ago
support-page.php
2 years ago
dashboard-page.php
189 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 <?php echo $cbid ? 'sync-account' : ''; ?>"> |
| 26 | <?php |
| 27 | if ( ! $cbid ) : |
| 28 | $today = new DateTime( 'now' ); |
| 29 | $end_date = new DateTime( '2023-12-01' ); |
| 30 | |
| 31 | if ( $today < $end_date ) : |
| 32 | ?> |
| 33 | <div class="cb-main__dashboard__promo"> |
| 34 | <div class="cb-main__dashboard__promo--inner"> |
| 35 | <div class="cb-dashboard__promo--label">Black Friday<span>Promotion</span></div> |
| 36 | <h2 class="cb-dashboard__promo--title">Get 30% off your Cookiebot CMP subscription*</h2> |
| 37 | <a href="https://admin.cookiebot.com/signup?utm_source=wordpress&utm_medium=referral&utm_campaign=black_friday_campaign&coupon=BFRIDAYWP30" target="_blank" class="cb-btn cb-promo-btn">CLAIM YOUR DISCOUNT</a> |
| 38 | <p class="promo-condition">* This promotion is valid until November 30th, 2023 and will be applied automatically. The discount applies to new subscriptions only and is valid for the first 6 months of the subscription period.</p> |
| 39 | <div class="cb-main__dashboard__promo--logo"></div> |
| 40 | </div> |
| 41 | </div> |
| 42 | <?php |
| 43 | endif; |
| 44 | endif; |
| 45 | ?> |
| 46 | <div class="cb-main__dashboard__card--container"> |
| 47 | <div class="cb-main__dashboard__card"> |
| 48 | <div class="cb-main__card__inner <?php echo $cbid ? 'start_card' : 'account_card'; ?>"> |
| 49 | <?php if ( ! $cbid ) : ?> |
| 50 | <img src="<?php echo esc_html( $cb_wp ); ?>" alt="Cookiebot for WordPress" class="cb-wp"> |
| 51 | <div class="cb-main__card__content"> |
| 52 | <h2 class="cb-main__card__title"> |
| 53 | <?php echo esc_html__( 'I already have a Cookiebot CMP account', 'cookiebot' ); ?> |
| 54 | </h2> |
| 55 | <a href="<?php echo esc_url( add_query_arg( 'page', Settings_Page::ADMIN_SLUG, admin_url( 'admin.php' ) ) ); ?>" |
| 56 | class="cb-btn cb-main-btn"> |
| 57 | <?php echo esc_html__( 'Connect my existing account', 'cookiebot' ); ?> |
| 58 | </a> |
| 59 | </div> |
| 60 | <?php else : ?> |
| 61 | <h2 class="cb-main__card__title"> |
| 62 | <?php echo esc_html__( 'Your Cookiebot CMP for WordPress solution', 'cookiebot' ); ?> |
| 63 | </h2> |
| 64 | <div class="cb-main__card__success"> |
| 65 | <div class="cb-btn cb-success-btn"> |
| 66 | <img src="<?php echo esc_html( $check_icon ); ?>" alt="Check"> |
| 67 | </div> |
| 68 | <p class="cb-main__success__text"> |
| 69 | <span><?php echo esc_html__( 'Congratulations!', 'cookiebot' ); ?></span> |
| 70 | <?php echo esc_html__( 'You have added your Domain Group ID to WordPress. You are all set!', 'cookiebot' ); ?> |
| 71 | </p> |
| 72 | </div> |
| 73 | <?php endif; ?> |
| 74 | </div> |
| 75 | </div> |
| 76 | |
| 77 | <?php if ( $cbid ) : ?> |
| 78 | <div class="cb-main__dashboard__card"> |
| 79 | <div class="cb-main__card__inner <?php echo $cbid ? 'start_card' : 'new_card'; ?>"> |
| 80 | <h3 class="cb-main__card__subtitle"> |
| 81 | <?php echo esc_html__( 'Your opinion matters', 'cookiebot' ); ?> |
| 82 | </h3> |
| 83 | <p class="cb-main__review__text"> |
| 84 | <?php echo esc_html__( 'Are you happy with our WordPress plugin? Your feedback will help us make our product better for you.', 'cookiebot' ); ?> |
| 85 | </p> |
| 86 | <a href="https://wordpress.org/support/plugin/cookiebot/reviews/#new-post" target="_blank" |
| 87 | class="cb-btn cb-link-btn" rel="noopener"> |
| 88 | <?php echo esc_html__( 'Write a review', 'cookiebot' ); ?> |
| 89 | </a> |
| 90 | </div> |
| 91 | </div> |
| 92 | <?php endif; ?> |
| 93 | |
| 94 | <div class="cb-main__dashboard__card"> |
| 95 | <div class="cb-main__card__inner <?php echo $cbid ? 'start_card' : 'new_card'; ?>"> |
| 96 | <?php if ( ! $cbid ) : ?> |
| 97 | <div class="cb-main__card__content"> |
| 98 | <p class="cb-main__card__label"> |
| 99 | <?php echo esc_html__( 'Get started', 'cookiebot' ); ?> |
| 100 | </p> |
| 101 | <h2 class="cb-main__card__title"> |
| 102 | <?php echo esc_html__( 'Create a new Cookiebot CMP account', 'cookiebot' ); ?> |
| 103 | </h2> |
| 104 | <a href="https://admin.cookiebot.com/signup?utm_source=wordpress&utm_medium=referral&utm_campaign=black_friday_campaign&coupon=BFRIDAYWP30" |
| 105 | target="_blank" class="cb-btn cb-white-btn" rel="noopener"> |
| 106 | <?php echo esc_html__( 'Create a new account', 'cookiebot' ); ?> |
| 107 | </a> |
| 108 | </div> |
| 109 | <?php else : ?> |
| 110 | <h3 class="cb-main__card__subtitle"> |
| 111 | <?php echo esc_html__( 'Learn more about how to optimize your Cookiebot CMP setup?', 'cookiebot' ); ?> |
| 112 | </h3> |
| 113 | <a href="https://support.cookiebot.com/hc/en-us" target="_blank" class="cb-btn cb-link-btn" |
| 114 | rel="noopener"> |
| 115 | <?php echo esc_html__( 'Visit Help Center', 'cookiebot' ); ?> |
| 116 | </a> |
| 117 | <?php endif; ?> |
| 118 | </div> |
| 119 | </div> |
| 120 | </div> |
| 121 | |
| 122 | <div class="cb-main__dashboard__card--container"> |
| 123 | <div class="cb-main__dashboard__card"> |
| 124 | <div class="cb-main__card__inner start_card"> |
| 125 | <div class="cb-main__video"> |
| 126 | <iframe src="https://www.youtube.com/embed/ps7msVZJmbY" |
| 127 | title="Cookiebot WordPress Installation" |
| 128 | allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" |
| 129 | allowfullscreen></iframe> |
| 130 | </div> |
| 131 | <div class="cb-main__card--content"> |
| 132 | <p class="cb-main__card__label"><?php echo esc_html__( 'Video guide', 'cookiebot' ); ?></p> |
| 133 | <h2 class="cb-main__card__title"> |
| 134 | <?php echo esc_html__( 'How to get started with Cookiebot CMP', 'cookiebot' ); ?> |
| 135 | </h2> |
| 136 | <a href="https://support.cookiebot.com/hc/en-us/articles/4408356523282-Getting-started" |
| 137 | target="_blank" class="cb-btn cb-link-btn" rel="noopener"> |
| 138 | <?php echo esc_html__( 'Learn more about Cookiebot CMP', 'cookiebot' ); ?> |
| 139 | </a> |
| 140 | </div> |
| 141 | </div> |
| 142 | </div> |
| 143 | <div class="cb-main__dashboard__card"> |
| 144 | <div class="cb-main__card__inner legislations_card"> |
| 145 | <div class="cb-main__legislation__item"> |
| 146 | <div class="cb-main__legislation____icon"> |
| 147 | <img src="<?php echo esc_html( $europe_icon ); ?>" alt="GDPR"> |
| 148 | </div> |
| 149 | <div class="cb-main__legislation__name"> |
| 150 | <?php echo esc_html__( 'GDPR', 'cookiebot' ); ?> |
| 151 | </div> |
| 152 | <div class="cb-main__legislation__region"> |
| 153 | <?php echo esc_html__( 'Europe', 'cookiebot' ); ?> |
| 154 | </div> |
| 155 | <a href="https://www.cookiebot.com/en/gdpr/" target="_blank" |
| 156 | class="cb-btn cb-link-btn external-icon legislation-link" rel="noopener"> |
| 157 | <span><?php echo esc_html__( 'Learn More', 'cookiebot' ); ?></span> |
| 158 | <img src="<?php echo esc_html( $link_icon ); ?>" |
| 159 | alt="<?php echo esc_html__( 'Learn More', 'cookiebot' ); ?>"> |
| 160 | </a> |
| 161 | </div> |
| 162 | <div class="cb-main__legislation__item"> |
| 163 | <div class="cb-main__legislation____icon"> |
| 164 | <img src="<?php echo esc_html( $usa_icon ); ?>" alt="CCPA"> |
| 165 | </div> |
| 166 | <div class="cb-main__legislation__name"> |
| 167 | <?php echo esc_html__( 'CCPA', 'cookiebot' ); ?> |
| 168 | </div> |
| 169 | <div class="cb-main__legislation__region"> |
| 170 | <?php echo esc_html__( 'North America', 'cookiebot' ); ?> |
| 171 | </div> |
| 172 | <a href="https://www.cookiebot.com/en/what-is-ccpa/" target="_blank" |
| 173 | class="cb-btn cb-link-btn external-icon legislation-link" rel="noopener"> |
| 174 | <span><?php echo esc_html__( 'Learn More', 'cookiebot' ); ?></span> |
| 175 | <img src="<?php echo esc_html( $link_icon ); ?>" |
| 176 | alt="<?php echo esc_html__( 'Learn More', 'cookiebot' ); ?>"> |
| 177 | </a> |
| 178 | </div> |
| 179 | <a href="https://www.cookiebot.com/en/blog/" target="_blank" |
| 180 | class="cb-btn cb-link-btn cb-right-btn" rel="noopener"> |
| 181 | <?php echo esc_html__( 'See other legislations', 'cookiebot' ); ?> |
| 182 | </a> |
| 183 | </div> |
| 184 | </div> |
| 185 | </div> |
| 186 | </div> |
| 187 | </div> |
| 188 | </div> |
| 189 |