prior-consent
1 year ago
settings
10 months ago
dashboard-page.php
1 year ago
network-settings-page.php
10 months ago
settings-page.php
1 year ago
support-page.php
1 year ago
network-settings-page.php
203 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 | <?php submit_button(); ?> |
| 27 | </div> |
| 28 | |
| 29 | <div class="cb-settings__tabs"> |
| 30 | </div> |
| 31 | |
| 32 | <div class="cb-settings__tabs__content"> |
| 33 | <div class="cb-settings__tabs__content--item active-item"> |
| 34 | <div class="cb-cbid-alert__msg hidden"> |
| 35 | <h3 class="cb-settings__config__subtitle"> |
| 36 | <?php esc_html_e( 'Are you sure?', 'cookiebot' ); ?> |
| 37 | </h3> |
| 38 | <p class="cb-general__info__text"> |
| 39 | <?php esc_html_e( 'You will need to add a new ID before updating other network settings. If any subsite is using its own account disconnecting this account won’t affect it.', 'cookiebot' ); ?> |
| 40 | </p> |
| 41 | <div class="new-account-actions"> |
| 42 | <div id="cookiebot-cbid-cancel" class="cb-btn cb-white-btn"> |
| 43 | <?php esc_html_e( 'Cancel', 'cookiebot' ); ?> |
| 44 | </div> |
| 45 | <div id="cookiebot-cbid-reset" class="cb-btn cb-main-btn"> |
| 46 | <?php esc_html_e( 'Disconnect account', 'cookiebot' ); ?> |
| 47 | </div> |
| 48 | </div> |
| 49 | </div> |
| 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 your settings ID to quickly link your account with the plugin.', 'cookiebot' ); ?> |
| 57 | </p> |
| 58 | <p class="cb-general__info__text"> |
| 59 | <?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' ); ?> |
| 60 | </p> |
| 61 | <a href="https://support.usercentrics.com/hc/en-us/articles/18097606499100-What-is-a-Settings-ID-and-where-can-I-find-it" |
| 62 | target="_blank" class="cb-btn cb-link-btn" rel="noopener"> |
| 63 | <?php esc_html_e( 'Where to find settings ID', 'cookiebot' ); ?> |
| 64 | </a> |
| 65 | </div> |
| 66 | <div class="cb-settings__config__data"> |
| 67 | <div class="cb-settings__config__data__inner"> |
| 68 | <h3 class="cb-settings__data__subtitle"> |
| 69 | <?php esc_html_e( 'Your settings ID', 'cookiebot' ); ?> |
| 70 | </h3> |
| 71 | <div class="cookiebot-cbid-container"> |
| 72 | <div class="cookiebot-cbid-input"> |
| 73 | <input type="text" id="cookiebot-cbid" class="cbid-active" |
| 74 | name="cookiebot-cbid" |
| 75 | value="<?php echo esc_attr( get_site_option( 'cookiebot-cbid', '' ) ); ?>"/> |
| 76 | <div class="cookiebot-cbid-check"></div> |
| 77 | </div> |
| 78 | <div id="cookiebot-cbid-reset-dialog" |
| 79 | class="cb-btn cb-main-btn"><?php esc_html_e( 'Disconnect account', 'cookiebot' ); ?></div> |
| 80 | </div> |
| 81 | </div> |
| 82 | </div> |
| 83 | </div> |
| 84 | <div id="cookiebot-ruleset-id-selector" class="cb-settings__config__item"> |
| 85 | <div class="cb-settings__config__content"> |
| 86 | <p class="cb-general__info__text"> |
| 87 | <?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' ); ?> |
| 88 | </p> |
| 89 | </div> |
| 90 | <div class="cb-settings__config__data"> |
| 91 | <div class="cb-settings__config__data__inner"> |
| 92 | <h3 class="cb-settings__data__subtitle"> |
| 93 | <?php esc_html_e( 'Your current account setup:', 'cookiebot' ); ?> |
| 94 | </h3> |
| 95 | <label class="recommended-item"> |
| 96 | <input <?php checked( 'settings', $ruleset_id ); ?> |
| 97 | type="radio" |
| 98 | name="cookiebot-ruleset-id" |
| 99 | value="settings"/> |
| 100 | <?php esc_html_e( 'Compliance with one privacy law', 'cookiebot' ); ?> |
| 101 | </label> |
| 102 | <label> |
| 103 | <input <?php checked( 'ruleset', $ruleset_id ); ?> |
| 104 | type="radio" |
| 105 | name="cookiebot-ruleset-id" |
| 106 | value="ruleset"/> |
| 107 | <?php esc_html_e( 'Compliance with multiple privacy laws (geolocation)', 'cookiebot' ); ?> |
| 108 | </label> |
| 109 | </div> |
| 110 | </div> |
| 111 | </div> |
| 112 | |
| 113 | <!-- <div class="cb-settings__config__item"> |
| 114 | <div class="cb-settings__config__content"> |
| 115 | <h3 class="cb-settings__config__subtitle"><?php esc_html_e( 'Cookie-blocking', 'cookiebot' ); ?></h3> |
| 116 | <p class="cb-general__info__text"> |
| 117 | <?php esc_html_e( 'Choose the type of your cookie-blocking mode. Select automatic to automatically block all cookies except those strictly necessary to use before user gives consent. Manual mode lets you adjust your cookie settings within your website’s HTML.', 'cookiebot' ); ?> |
| 118 | </p> |
| 119 | </div> |
| 120 | <div class="cb-settings__config__data"> |
| 121 | <div class="cb-settings__config__data__inner"> |
| 122 | <h3 class="cb-settings__data__subtitle"><?php esc_html_e( 'Select cookie-blocking mode', 'cookiebot' ); ?></h3> |
| 123 | <label> |
| 124 | <input <?php checked( 'auto', $cbm ); ?> |
| 125 | type="radio" |
| 126 | name="cookiebot-cookie-blocking-mode" |
| 127 | value="auto" |
| 128 | /> |
| 129 | <?php esc_html_e( 'Automatic', 'cookiebot' ); ?> |
| 130 | </label> |
| 131 | <label> |
| 132 | <input <?php checked( 'manual', $cbm, true ); ?> |
| 133 | type="radio" |
| 134 | name="cookiebot-cookie-blocking-mode" |
| 135 | value="manual" |
| 136 | /> |
| 137 | <?php esc_html_e( 'Choose per subsite', 'cookiebot' ); ?> |
| 138 | </label> |
| 139 | </div> |
| 140 | </div> |
| 141 | </div> --> |
| 142 | |
| 143 | <div class="cb-settings__config__item"> |
| 144 | <div class="cb-settings__config__content"> |
| 145 | <h3 class="cb-settings__config__subtitle"><?php esc_html_e( 'Automatic updates', 'cookiebot' ); ?></h3> |
| 146 | <p class="cb-general__info__text"> |
| 147 | <?php esc_html_e( 'Enable automatic updates whenever we release a new version of the plugin.', 'cookiebot' ); ?> |
| 148 | </p> |
| 149 | </div> |
| 150 | <div class="cb-settings__config__data"> |
| 151 | <div class="cb-settings__config__data__inner"> |
| 152 | <label class="switch-checkbox" for="cookiebot-autoupdate"> |
| 153 | <input id="cookiebot-autoupdate" type="checkbox" name="cookiebot-autoupdate" |
| 154 | value="1" |
| 155 | <?php |
| 156 | checked( |
| 157 | 1, |
| 158 | get_site_option( 'cookiebot-autoupdate' ) |
| 159 | ); |
| 160 | ?> |
| 161 | /> |
| 162 | <div class="switcher"></div> |
| 163 | <?php esc_html_e( 'Automatically update to new version', 'cookiebot' ); ?> |
| 164 | </label> |
| 165 | </div> |
| 166 | </div> |
| 167 | </div> |
| 168 | |
| 169 | <div class="cb-settings__config__item" id="cookie-popup"> |
| 170 | <div class="cb-settings__config__content"> |
| 171 | <h3 class="cb-settings__config__subtitle"><?php esc_html_e( 'Hide cookie popup', 'cookiebot' ); ?></h3> |
| 172 | <p class="cb-general__info__note"> |
| 173 | <?php esc_html_e( 'Setting will apply for all subsites. Subsites will not be able to override.', 'cookiebot' ); ?> |
| 174 | </p> |
| 175 | <p class="cb-general__info__text"> |
| 176 | <?php esc_html_e( 'This will remove the cookie consent banner from your website. The cookie declaration shortcode will still be available if you are using Google Tag Manager (or equal), you need to add the Cookiebot script in your Tag Manager.', 'cookiebot' ); ?> |
| 177 | </p> |
| 178 | </div> |
| 179 | <div class="cb-settings__config__data"> |
| 180 | <div class="cb-settings__config__data__inner"> |
| 181 | <label class="switch-checkbox" for="cookiebot-nooutput"> |
| 182 | <input id="cookiebot-nooutput" type="checkbox" name="cookiebot-nooutput" |
| 183 | value="1" |
| 184 | <?php |
| 185 | checked( |
| 186 | 1, |
| 187 | get_site_option( 'cookiebot-nooutput', false ) |
| 188 | ); |
| 189 | ?> |
| 190 | /> |
| 191 | <div class="switcher"></div> |
| 192 | <?php esc_html_e( 'Hide the cookie popup banner', 'cookiebot' ); ?> |
| 193 | </label> |
| 194 | </div> |
| 195 | </div> |
| 196 | </div> |
| 197 | </div> |
| 198 | </div> |
| 199 | </form> |
| 200 | </div> |
| 201 | </div> |
| 202 | </div> |
| 203 |