prior-consent
1 year ago
templates
9 months ago
dashboard-cookiebot.php
7 months ago
dashboard-page-old.php
1 year ago
dashboard-page-session-expired.php
10 months ago
dashboard-page-static.php
10 months ago
dashboard-page.php
7 months ago
dashboard-trial-expired.php
10 months ago
network-settings-page.php
4 months ago
settings-page.php
4 months ago
support-page.php
9 months ago
network-settings-page.php
125 lines
| 1 | <?php |
| 2 | |
| 3 | use cybot\cookiebot\settings\templates\Header; |
| 4 | use cybot\cookiebot\settings\templates\Main_Tabs; |
| 5 | |
| 6 | /** |
| 7 | * @var string $logo |
| 8 | * @var string $cookiebot_gdpr_url |
| 9 | * @var string $cbm |
| 10 | * @var string $ruleset_id |
| 11 | */ |
| 12 | |
| 13 | $header = new Header(); |
| 14 | $main_tabs = new Main_Tabs(); |
| 15 | |
| 16 | $header->display(); |
| 17 | ?> |
| 18 | <div class="cb-body"> |
| 19 | <div class="cb-wrapper"> |
| 20 | <?php $main_tabs->display( 'settings' ); ?> |
| 21 | <div class="cb-main__content"> |
| 22 | <form method="post" action="edit.php?action=cookiebot_network_settings"> |
| 23 | <?php wp_nonce_field( 'cookiebot-network-settings' ); ?> |
| 24 | <div class="cb-settings__header"> |
| 25 | <h1 class="cb-main__page_title"><?php esc_html_e( 'Network Settings', 'cookiebot' ); ?></h1> |
| 26 | </div> |
| 27 | |
| 28 | <div class="cb-settings__tabs"> |
| 29 | </div> |
| 30 | |
| 31 | <div class="cb-settings__tabs__content"> |
| 32 | <div class="cb-settings__tabs__content--item active-item"> |
| 33 | <div class="cb-settings__config__item"> |
| 34 | <div class="cb-settings__config__content"> |
| 35 | <h3 class="cb-settings__config__subtitle"> |
| 36 | <?php esc_html_e( 'Connect your account', 'cookiebot' ); ?> |
| 37 | </h3> |
| 38 | <p class="cb-general__info__text"> |
| 39 | <?php esc_html_e( 'Enter the ID of your account to quickly connect it with the plugin.', 'cookiebot' ); ?> |
| 40 | </p> |
| 41 | <p class="cb-general__info__text"> |
| 42 | <?php esc_html_e( 'If added this will be the default account for all subsites. Subsites are able to override this and use their own account.', 'cookiebot' ); ?> |
| 43 | </p> |
| 44 | <div class="cb-general__info__text"> |
| 45 | <a href="https://support.usercentrics.com/hc/en-us/articles/18097606499100-What-is-a-Settings-ID-and-where-can-I-find-it" |
| 46 | target="_blank" class="cb-btn cb-link-btn" rel="noopener"> |
| 47 | <?php esc_html_e( 'How to find your Usercentrics Settings ID', 'cookiebot' ); ?> |
| 48 | </a> |
| 49 | </div> |
| 50 | <div class="cb-general__info__text"> |
| 51 | <a href="https://support.cookiebot.com/hc/en-us/articles/4405643234194-Your-CBID-or-Domain-group-ID-and-where-to-find-it" |
| 52 | target="_blank" class="cb-btn cb-link-btn" rel="noopener"> |
| 53 | <?php esc_html_e( 'How to find your Cookiebot CMP Domain Group ID', 'cookiebot' ); ?> |
| 54 | </a> |
| 55 | </div> |
| 56 | </div> |
| 57 | <div class="cb-settings__config__data"> |
| 58 | <div class="cb-settings__config__data__inner"> |
| 59 | <h3 class="cb-settings__data__subtitle"> |
| 60 | <?php esc_html_e( 'Settings ID or Domain Group ID', 'cookiebot' ); ?> |
| 61 | </h3> |
| 62 | <div class="cookiebot-cbid-container"> |
| 63 | <div class="cookiebot-cbid-input"> |
| 64 | <input placeholder="9, 14 or 36 characters" |
| 65 | type="text" id="cookiebot-cbid" class="initial-cbid-setup" |
| 66 | name="cookiebot-cbid" |
| 67 | value="<?php echo esc_attr( get_site_option( 'cookiebot-cbid', '' ) ); ?>"/> |
| 68 | <div class="cookiebot-cbid-check <?php echo get_site_option( 'cookiebot-cbid' ) ? 'check-pass' : ''; ?>"></div> |
| 69 | </div> |
| 70 | <?php submit_button( esc_html__( 'Connect account', 'cookiebot' ), 'disabled' ); ?> |
| 71 | <div class="cookiebot-cbid-error hidden" style="color: #d63638; margin-top: 8px; font-size: 14px;"> |
| 72 | <?php esc_html_e( 'Invalid ID length. Please enter a Settings ID (9 or 14 characters) or Domain Group ID (36 characters).', 'cookiebot' ); ?> |
| 73 | </div> |
| 74 | </div> |
| 75 | </div> |
| 76 | </div> |
| 77 | </div> |
| 78 | <div id="cookiebot-ruleset-id-selector" class="cb-settings__config__item hidden"> |
| 79 | <div class="cb-settings__config__content"> |
| 80 | <p class="cb-general__info__text"> |
| 81 | <?php esc_html_e( 'Let us know if your account is set for compliance with a single privacy law (e.g. GDPR) or multiple laws (e.g. GDPR and CCPA) based on user’s location. The default is a single privacy law, so this is likely your setting unless modified.', 'cookiebot' ); ?> |
| 82 | </p> |
| 83 | </div> |
| 84 | <div class="cb-settings__config__data"> |
| 85 | <div class="cb-settings__config__data__inner"> |
| 86 | <h3 class="cb-settings__data__subtitle"> |
| 87 | <?php esc_html_e( 'Your current account setup:', 'cookiebot' ); ?> |
| 88 | </h3> |
| 89 | <label class="recommended-item"> |
| 90 | <input <?php checked( 'settings', $ruleset_id ); ?> |
| 91 | type="radio" |
| 92 | name="cookiebot-ruleset-id" |
| 93 | value="settings"/> |
| 94 | <?php esc_html_e( 'Compliance with one privacy law', 'cookiebot' ); ?> |
| 95 | </label> |
| 96 | <label> |
| 97 | <input <?php checked( 'ruleset', $ruleset_id ); ?> |
| 98 | type="radio" |
| 99 | name="cookiebot-ruleset-id" |
| 100 | value="ruleset"/> |
| 101 | <?php esc_html_e( 'Compliance with multiple privacy laws (geolocation)', 'cookiebot' ); ?> |
| 102 | </label> |
| 103 | </div> |
| 104 | </div> |
| 105 | </div> |
| 106 | |
| 107 | <div> |
| 108 | <input type="hidden" name="cookiebot-cookie-blocking-mode" |
| 109 | value="manual"> |
| 110 | <input type="hidden" name="cookiebot-script-tag-uc-attribute" |
| 111 | value="<?php echo esc_attr( get_site_option( 'cookiebot-script-tag-uc-attribute', 'custom' ) ); ?>"> |
| 112 | <input type="hidden" name="cookiebot-script-tag-cd-attribute" |
| 113 | value="<?php echo esc_attr( get_site_option( 'cookiebot-script-tag-cd-attribute', 'custom' ) ); ?>"> |
| 114 | <input type="hidden" name="cookiebot-autoupdate" |
| 115 | value="<?php echo esc_attr( get_site_option( 'cookiebot-autoupdate' ) ); ?>"> |
| 116 | <input type="hidden" name="cookiebot-nooutput" |
| 117 | value="<?php echo esc_attr( get_site_option( 'cookiebot-nooutput' ) ); ?>"> |
| 118 | </div> |
| 119 | </div> |
| 120 | </div> |
| 121 | </form> |
| 122 | </div> |
| 123 | </div> |
| 124 | </div> |
| 125 |