prior-consent
1 year ago
templates
1 year ago
dashboard-page.php
1 year ago
network-settings-page.php
1 year ago
settings-page.php
1 year ago
support-page.php
1 year ago
settings-page.php
128 lines
| 1 | <?php |
| 2 | |
| 3 | use cybot\cookiebot\settings\templates\Header; |
| 4 | use cybot\cookiebot\settings\templates\Legacy_Settings; |
| 5 | use cybot\cookiebot\settings\templates\Main_Tabs; |
| 6 | |
| 7 | /** |
| 8 | * @var string $cbid |
| 9 | * @var bool $is_ms |
| 10 | * @var string $network_cbid |
| 11 | * @var string $ruleset_id |
| 12 | */ |
| 13 | |
| 14 | $header = new Header(); |
| 15 | $main_tabs = new Main_Tabs(); |
| 16 | |
| 17 | // phpcs:ignore WordPress.Security.NonceVerification.Recommended |
| 18 | $active_tab = ! empty( $_GET['tab'] ) ? $_GET['tab'] : false; |
| 19 | |
| 20 | $header->display(); |
| 21 | ?> |
| 22 | |
| 23 | <div class="cb-body"> |
| 24 | <div class="cb-wrapper"> |
| 25 | <?php $main_tabs->display( 'settings' ); ?> |
| 26 | <div class="cb-main__content"> |
| 27 | <form method="post" action="options.php"> |
| 28 | <?php settings_fields( 'cookiebot' ); ?> |
| 29 | <?php do_settings_sections( 'cookiebot' ); ?> |
| 30 | <div class="cb-settings__header"> |
| 31 | <h1 class="cb-main__page_title"><?php esc_html_e( 'Settings', 'cookiebot' ); ?></h1> |
| 32 | </div> |
| 33 | |
| 34 | <div class="cb-settings__tabs__content"> |
| 35 | <div class="cb-settings__tabs__content--item active-item" |
| 36 | id="general-settings"> |
| 37 | <div class="cb-general__new__account"> |
| 38 | <h2 class="cb-general__info__title"><?php esc_html_e( 'New to our solutions? Create your account. ', 'cookiebot' ); ?></h2> |
| 39 | <p class="cb-general__info__text"> |
| 40 | <?php esc_html_e( 'If you’re new to our solutions, create an account first to obtain your settings ID.', 'cookiebot' ); ?> |
| 41 | </p> |
| 42 | <div class="new-account-actions"> |
| 43 | <a href="https://account.usercentrics.eu/?trial=standard&uc_subscription_type=web&pricing_plan=FreeExtended&utm_source=wordpress&utm_medium=referral&utm_campaign=banner" |
| 44 | target="_blank" class="cb-btn cb-main-btn" rel="noopener"> |
| 45 | <?php esc_html_e( 'Create your account', 'cookiebot' ); ?> |
| 46 | </a> |
| 47 | </div> |
| 48 | </div> |
| 49 | |
| 50 | <div class="cb-settings__config__item"> |
| 51 | <div class="cb-settings__config__content"> |
| 52 | <h3 class="cb-settings__config__subtitle"> |
| 53 | <?php esc_html_e( 'Connect your account', 'cookiebot' ); ?> |
| 54 | </h3> |
| 55 | <p class="cb-general__info__text"> |
| 56 | <?php esc_html_e( 'Enter the ID of your account to quickly connect it with the plugin.', 'cookiebot' ); ?> |
| 57 | </p> |
| 58 | |
| 59 | <div class="cb-general__info__text"> |
| 60 | <a href="https://support.usercentrics.com/hc/en-us/articles/18097606499100-What-is-a-Settings-ID-and-where-can-I-find-it" |
| 61 | target="_blank" class="cb-btn cb-link-btn" rel="noopener"> |
| 62 | <?php esc_html_e( 'How to find your Usercentrics Settings ID', 'cookiebot' ); ?> |
| 63 | </a> |
| 64 | </div> |
| 65 | <div class="cb-general__info__text"> |
| 66 | <a href="https://support.cookiebot.com/hc/en-us/articles/4405643234194-Your-CBID-or-Domain-group-ID-and-where-to-find-it" |
| 67 | target="_blank" class="cb-btn cb-link-btn" rel="noopener"> |
| 68 | <?php esc_html_e( 'How to find your Cookiebot CMP Domain Group ID', 'cookiebot' ); ?> |
| 69 | </a> |
| 70 | </div> |
| 71 | </div> |
| 72 | <div class="cb-settings__config__data"> |
| 73 | <div class="cb-settings__config__data__inner"> |
| 74 | <h3 class="cb-settings__data__subtitle"> |
| 75 | <?php esc_html_e( 'Settings ID or Domain Group ID', 'cookiebot' ); ?> |
| 76 | </h3> |
| 77 | <div class="cookiebot-cbid-container"> |
| 78 | <div class="cookiebot-cbid-input"> |
| 79 | <input placeholder="XxxXXXxx" |
| 80 | type="text" id="cookiebot-cbid" class="initial-cbid-setup" |
| 81 | name="cookiebot-cbid" |
| 82 | value="<?php echo esc_attr( $cbid ); ?>"/> |
| 83 | <div class="cookiebot-cbid-check <?php echo $cbid ? 'check-pass' : ''; ?>"></div> |
| 84 | </div> |
| 85 | <?php submit_button( esc_html__( 'Connect account', 'cookiebot' ), 'disabled' ); ?> |
| 86 | </div> |
| 87 | </div> |
| 88 | </div> |
| 89 | </div> |
| 90 | <div id="cookiebot-ruleset-id-selector" class="cb-settings__config__item hidden"> |
| 91 | <div class="cb-settings__config__content"> |
| 92 | <p class="cb-general__info__text"> |
| 93 | <?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' ); ?> |
| 94 | </p> |
| 95 | </div> |
| 96 | <div class="cb-settings__config__data"> |
| 97 | <div class="cb-settings__config__data__inner"> |
| 98 | <h3 class="cb-settings__data__subtitle"> |
| 99 | <?php esc_html_e( 'Your current account setup:', 'cookiebot' ); ?> |
| 100 | </h3> |
| 101 | <label class="recommended-item"> |
| 102 | <input <?php checked( 'settings', $ruleset_id ); ?> |
| 103 | type="radio" |
| 104 | name="cookiebot-ruleset-id" |
| 105 | value="settings"/> |
| 106 | <?php esc_html_e( 'Compliance with one privacy law', 'cookiebot' ); ?> |
| 107 | </label> |
| 108 | <label> |
| 109 | <input <?php checked( 'ruleset', $ruleset_id ); ?> |
| 110 | type="radio" |
| 111 | name="cookiebot-ruleset-id" |
| 112 | value="ruleset"/> |
| 113 | <?php esc_html_e( 'Compliance with multiple privacy laws (geolocation)', 'cookiebot' ); ?> |
| 114 | </label> |
| 115 | </div> |
| 116 | </div> |
| 117 | </div> |
| 118 | </div> |
| 119 | </div> |
| 120 | <?php |
| 121 | $legacy_settings = new Legacy_Settings(); |
| 122 | $legacy_settings->display(); |
| 123 | ?> |
| 124 | </form> |
| 125 | </div> |
| 126 | </div> |
| 127 | </div> |
| 128 |