prior-consent
1 year ago
settings
4 months ago
dashboard-page.php
4 months ago
network-settings-page.php
10 months ago
settings-page.php
4 months ago
support-page.php
9 months ago
network-settings-page.php
264 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 | */ |
| 11 | |
| 12 | $header = new Header(); |
| 13 | $main_tabs = new Main_Tabs(); |
| 14 | |
| 15 | $header->display(); |
| 16 | ?> |
| 17 | <div class="cb-body"> |
| 18 | <div class="cb-wrapper"> |
| 19 | <?php $main_tabs->display( 'settings' ); ?> |
| 20 | <div class="cb-main__content"> |
| 21 | <form method="post" action="edit.php?action=cookiebot_network_settings"> |
| 22 | <?php wp_nonce_field( 'cookiebot-network-settings' ); ?> |
| 23 | <div class="cb-settings__header"> |
| 24 | <h1 class="cb-main__page_title"><?php esc_html_e( 'Network Settings', 'cookiebot' ); ?></h1> |
| 25 | <?php submit_button(); ?> |
| 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-cbid-alert__msg hidden"> |
| 34 | <h3 class="cb-settings__config__subtitle"> |
| 35 | <?php esc_html_e( 'Are you sure?', 'cookiebot' ); ?> |
| 36 | </h3> |
| 37 | <p class="cb-general__info__text"> |
| 38 | <?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' ); ?> |
| 39 | </p> |
| 40 | <div class="new-account-actions"> |
| 41 | <div id="cookiebot-cbid-cancel" class="cb-btn cb-white-btn"> |
| 42 | <?php esc_html_e( 'Cancel', 'cookiebot' ); ?> |
| 43 | </div> |
| 44 | <div id="cookiebot-cbid-reset" class="cb-btn cb-main-btn"> |
| 45 | <?php esc_html_e( 'Disconnect account', 'cookiebot' ); ?> |
| 46 | </div> |
| 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"><?php esc_html_e( 'Network Domain Group ID', 'cookiebot' ); ?></h3> |
| 53 | <p class="cb-general__info__text"> |
| 54 | <?php esc_html_e( 'If added this will be the default Cookiebot ID for all subsites. Subsites are able to override the Cookiebot ID.', 'cookiebot' ); ?> |
| 55 | </p> |
| 56 | <a href="https://support.cookiebot.com/hc/en-us/articles/4405643234194-Your-CBID-or-Domain-group-ID-and-where-to-find-it" |
| 57 | target="_blank" rel="noopener" |
| 58 | class="cb-btn cb-link-btn"><?php esc_html_e( 'Read more on the Domain Group ID', 'cookiebot' ); ?></a> |
| 59 | </div> |
| 60 | <div class="cb-settings__config__data"> |
| 61 | <div class="cb-settings__config__data__inner"> |
| 62 | <h3 class="cb-settings__data__subtitle"><?php esc_html_e( 'Add your Domain Group ID', 'cookiebot' ); ?></h3> |
| 63 | <div class="cookiebot-cbid-container"> |
| 64 | <div class="cookiebot-cbid-input"> |
| 65 | <input type="text" id="cookiebot-cbid" class="cbid-active" |
| 66 | name="cookiebot-cbid" |
| 67 | value="<?php echo esc_attr( get_site_option( 'cookiebot-cbid', '' ) ); ?>"/> |
| 68 | <div class="cookiebot-cbid-check"></div> |
| 69 | </div> |
| 70 | <div id="cookiebot-cbid-reset-dialog" |
| 71 | class="cb-btn cb-main-btn"><?php esc_html_e( 'Disconnect account', 'cookiebot' ); ?></div> |
| 72 | </div> |
| 73 | </div> |
| 74 | </div> |
| 75 | </div> |
| 76 | |
| 77 | <!-- <div class="cb-settings__config__item"> |
| 78 | <div class="cb-settings__config__content"> |
| 79 | <h3 class="cb-settings__config__subtitle"><?php esc_html_e( 'Cookie-blocking', 'cookiebot' ); ?></h3> |
| 80 | <p class="cb-general__info__text"> |
| 81 | <?php esc_html_e( 'Select your cookie-blocking mode here. Auto cookie-blocking mode will automatically block all cookies (except for ‘strictly necessary’ cookies) until a user has given consent. Manual cookie-blocking mode requests manual adjustments to the cookie-setting scripts. Please find our implementation guides below:', '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"><?php esc_html_e( 'Select cookie-blocking mode', 'cookiebot' ); ?></h3> |
| 87 | <label> |
| 88 | <input <?php checked( 'auto', $cbm ); ?> |
| 89 | type="radio" |
| 90 | name="cookiebot-cookie-blocking-mode" |
| 91 | value="auto" |
| 92 | /> |
| 93 | <?php esc_html_e( 'Automatic', 'cookiebot' ); ?> |
| 94 | </label> |
| 95 | <label> |
| 96 | <input <?php checked( 'manual', $cbm, true ); ?> |
| 97 | type="radio" |
| 98 | name="cookiebot-cookie-blocking-mode" |
| 99 | value="manual" |
| 100 | /> |
| 101 | <?php esc_html_e( 'Choose per subsite', 'cookiebot' ); ?> |
| 102 | </label> |
| 103 | </div> |
| 104 | </div> |
| 105 | </div> --> |
| 106 | |
| 107 | <div class="cb-settings__config__item secondary__item" id="declaration-tag"> |
| 108 | <div class="cb-settings__config__content"> |
| 109 | <h3 class="cb-settings__config__subtitle"><?php esc_html_e( 'Cookiebot™ script tag', 'cookiebot' ); ?></h3> |
| 110 | <p class="cb-general__info__text"> |
| 111 | <?php esc_html_e( 'Add async or defer attribute to Cookie banner script tag. Default: Choose per subsite', 'cookiebot' ); ?> |
| 112 | </p> |
| 113 | <p class="cb-general__info__note"> |
| 114 | <?php esc_html_e( 'This feature is only available when not using Auto Blocking', 'cookiebot' ); ?> |
| 115 | </p> |
| 116 | <p class="cb-general__info__note"> |
| 117 | <?php esc_html_e( 'Setting will apply for all subsites. Subsites will not be able to override.', 'cookiebot' ); ?> |
| 118 | </p> |
| 119 | </div> |
| 120 | <div class="cb-settings__config__data"> |
| 121 | <div class="cb-settings__config__data__inner"> |
| 122 | <?php |
| 123 | $cv = get_site_option( 'cookiebot-script-tag-uc-attribute', 'custom' ); |
| 124 | ?> |
| 125 | <label> |
| 126 | <input |
| 127 | type="radio" |
| 128 | name="cookiebot-script-tag-uc-attribute" |
| 129 | value="" <?php checked( '', $cv ); ?> /> |
| 130 | <?php esc_html_e( 'None', 'cookiebot' ); ?> |
| 131 | </label> |
| 132 | <label> |
| 133 | <input |
| 134 | type="radio" |
| 135 | name="cookiebot-script-tag-uc-attribute" |
| 136 | value="async" <?php checked( 'async', $cv ); ?> /> |
| 137 | async |
| 138 | </label> |
| 139 | <label> |
| 140 | <input |
| 141 | type="radio" |
| 142 | name="cookiebot-script-tag-uc-attribute" |
| 143 | value="defer" <?php checked( 'defer', $cv ); ?> /> |
| 144 | defer |
| 145 | </label> |
| 146 | <label> |
| 147 | <input |
| 148 | type="radio" |
| 149 | name="cookiebot-script-tag-uc-attribute" |
| 150 | value="custom" <?php checked( 'custom', $cv ); ?> /> |
| 151 | <?php esc_html_e( 'Choose per subsite', 'cookiebot' ); ?> |
| 152 | </label> |
| 153 | </div> |
| 154 | </div> |
| 155 | </div> |
| 156 | |
| 157 | <div class="cb-settings__config__item"> |
| 158 | <div class="cb-settings__config__content"> |
| 159 | <h3 class="cb-settings__config__subtitle"><?php esc_html_e( 'Cookiebot declaration script tag', 'cookiebot' ); ?></h3> |
| 160 | <p class="cb-general__info__note"> |
| 161 | <?php esc_html_e( 'Setting will apply for all subsites. Subsites will not be able to override.', 'cookiebot' ); ?> |
| 162 | </p> |
| 163 | <p class="cb-general__info__text"> |
| 164 | <?php esc_html_e( 'Add async or defer attribute to Cookie declaration script tag. Default: Choose per subsite', 'cookiebot' ); ?> |
| 165 | </p> |
| 166 | </div> |
| 167 | <div class="cb-settings__config__data"> |
| 168 | <div class="cb-settings__config__data__inner"> |
| 169 | <?php |
| 170 | $cv = get_site_option( 'cookiebot-script-tag-cd-attribute', 'custom' ); |
| 171 | ?> |
| 172 | <label> |
| 173 | <input |
| 174 | type="radio" |
| 175 | name="cookiebot-script-tag-cd-attribute" |
| 176 | value="" <?php checked( '', $cv ); ?> /> |
| 177 | <?php esc_html_e( 'None', 'cookiebot' ); ?> |
| 178 | </label> |
| 179 | <label> |
| 180 | <input |
| 181 | type="radio" |
| 182 | name="cookiebot-script-tag-cd-attribute" |
| 183 | value="async" <?php checked( 'async', $cv ); ?> /> |
| 184 | async |
| 185 | </label> |
| 186 | <label> |
| 187 | <input |
| 188 | type="radio" |
| 189 | name="cookiebot-script-tag-cd-attribute" |
| 190 | value="defer" <?php checked( 'defer', $cv ); ?> /> |
| 191 | defer |
| 192 | </label> |
| 193 | <label> |
| 194 | <input |
| 195 | type="radio" |
| 196 | name="cookiebot-script-tag-cd-attribute" |
| 197 | value="custom" <?php checked( 'custom', $cv ); ?> /> |
| 198 | <?php esc_html_e( 'Choose per subsite', 'cookiebot' ); ?> |
| 199 | </label> |
| 200 | </div> |
| 201 | </div> |
| 202 | </div> |
| 203 | |
| 204 | <div class="cb-settings__config__item"> |
| 205 | <div class="cb-settings__config__content"> |
| 206 | <h3 class="cb-settings__config__subtitle"><?php esc_html_e( 'Automatic updates', 'cookiebot' ); ?></h3> |
| 207 | <p class="cb-general__info__text"> |
| 208 | <?php esc_html_e( 'Enable automatic updates whenever we release a new version of the plugin.', 'cookiebot' ); ?> |
| 209 | </p> |
| 210 | </div> |
| 211 | <div class="cb-settings__config__data"> |
| 212 | <div class="cb-settings__config__data__inner"> |
| 213 | <label class="switch-checkbox" for="cookiebot-autoupdate"> |
| 214 | <input id="cookiebot-autoupdate" type="checkbox" name="cookiebot-autoupdate" |
| 215 | value="1" |
| 216 | <?php |
| 217 | checked( |
| 218 | 1, |
| 219 | get_site_option( 'cookiebot-autoupdate' ) |
| 220 | ); |
| 221 | ?> |
| 222 | /> |
| 223 | <div class="switcher"></div> |
| 224 | <?php esc_html_e( 'Automatically update to new version', 'cookiebot' ); ?> |
| 225 | </label> |
| 226 | </div> |
| 227 | </div> |
| 228 | </div> |
| 229 | |
| 230 | <div class="cb-settings__config__item" id="cookie-popup"> |
| 231 | <div class="cb-settings__config__content"> |
| 232 | <h3 class="cb-settings__config__subtitle"><?php esc_html_e( 'Hide cookie popup', 'cookiebot' ); ?></h3> |
| 233 | <p class="cb-general__info__note"> |
| 234 | <?php esc_html_e( 'Setting will apply for all subsites. Subsites will not be able to override.', 'cookiebot' ); ?> |
| 235 | </p> |
| 236 | <p class="cb-general__info__text"> |
| 237 | <?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' ); ?> |
| 238 | </p> |
| 239 | </div> |
| 240 | <div class="cb-settings__config__data"> |
| 241 | <div class="cb-settings__config__data__inner"> |
| 242 | <label class="switch-checkbox" for="cookiebot-nooutput"> |
| 243 | <input id="cookiebot-nooutput" type="checkbox" name="cookiebot-nooutput" |
| 244 | value="1" |
| 245 | <?php |
| 246 | checked( |
| 247 | 1, |
| 248 | get_site_option( 'cookiebot-nooutput', false ) |
| 249 | ); |
| 250 | ?> |
| 251 | /> |
| 252 | <div class="switcher"></div> |
| 253 | <?php esc_html_e( 'Hide the cookie popup banner', 'cookiebot' ); ?> |
| 254 | </label> |
| 255 | </div> |
| 256 | </div> |
| 257 | </div> |
| 258 | </div> |
| 259 | </div> |
| 260 | </form> |
| 261 | </div> |
| 262 | </div> |
| 263 | </div> |
| 264 |