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
2 years ago
gtm-page.php
2 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
network-settings-page.php
278 lines
| 1 | <?php |
| 2 | use cybot\cookiebot\settings\templates\Header; |
| 3 | use cybot\cookiebot\settings\templates\Main_Tabs; |
| 4 | /** |
| 5 | * @var string $logo |
| 6 | * @var string $cookiebot_gdpr_url |
| 7 | * @var string $cbm |
| 8 | */ |
| 9 | |
| 10 | $header = new Header(); |
| 11 | $main_tabs = new Main_Tabs(); |
| 12 | |
| 13 | $header->display(); |
| 14 | ?> |
| 15 | <div class="cb-body"> |
| 16 | <div class="cb-wrapper"> |
| 17 | <?php $main_tabs->display( 'settings' ); ?> |
| 18 | <div class="cb-main__content"> |
| 19 | <form method="post" action="edit.php?action=cookiebot_network_settings"> |
| 20 | <?php wp_nonce_field( 'cookiebot-network-settings' ); ?> |
| 21 | <div class="cb-settings__header"> |
| 22 | <h1 class="cb-main__page_title"><?php esc_html_e( 'Network Settings', 'cookiebot' ); ?></h1> |
| 23 | <?php submit_button(); ?> |
| 24 | </div> |
| 25 | |
| 26 | <div class="cb-settings__tabs"> |
| 27 | </div> |
| 28 | |
| 29 | <div class="cb-settings__tabs__content"> |
| 30 | <div class="cb-settings__tabs__content--item active-item"> |
| 31 | <?php if ( ! esc_attr( get_site_option( 'cookiebot-cbid', '' ) ) ) : ?> |
| 32 | <div class="cb-general__new__account"> |
| 33 | <h2 class="cb-general__info__title"><?php esc_html_e( 'Do you not have an account yet?', 'cookiebot' ); ?></h2> |
| 34 | <p class="cb-general__info__text"> |
| 35 | <?php esc_html_e( 'To use Cookiebot for WordPress you need to visit our website and sign-up. After you have signed up, you can configure your banner and then place the Cookiebot Domain Group ID below. Navigate to Settings and to "Your Scripts" to find your ID.', 'cookiebot' ); ?> |
| 36 | </p> |
| 37 | <div class="new-account-actions"> |
| 38 | <a href="https://admin.cookiebot.com/signup/?utm_source=wordpress&utm_medium=referral&utm_campaign=banner" target="_blank" rel="noopener" class="cb-btn cb-main-btn"><?php esc_html_e( 'Create a new Account', 'cookiebot' ); ?></a> |
| 39 | <a href="https://support.cookiebot.com/hc/en-us/articles/360003784174-Installing-Cookiebot-CMP-on-WordPress" target="_blank" rel="noopener" class="cb-btn cb-link-btn"><?php esc_html_e( 'Get help with connecting your account', 'cookiebot' ); ?></a> |
| 40 | </div> |
| 41 | </div> |
| 42 | <?php endif; ?> |
| 43 | |
| 44 | <div class="cb-settings__config__item"> |
| 45 | <div class="cb-settings__config__content"> |
| 46 | <h3 class="cb-settings__config__subtitle"><?php esc_html_e( 'Network Domain Group:', 'cookiebot' ); ?></h3> |
| 47 | <p class="cb-general__info__text"> |
| 48 | <?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' ); ?> |
| 49 | </p> |
| 50 | <a href="https://support.cookiebot.com/hc/en-us/articles/4405643234194-Your-CBID-or-Domain-group-ID-and-where-to-find-it" target="_blank" rel="noopener" class="cb-btn cb-link-btn"><?php esc_html_e( 'Read more on the Domain Group ID', 'cookiebot' ); ?></a> |
| 51 | </div> |
| 52 | <div class="cb-settings__config__data"> |
| 53 | <div class="cb-settings__config__data__inner"> |
| 54 | <h3 class="cb-settings__data__subtitle"><?php esc_html_e( 'Add your Domain Group ID', 'cookiebot' ); ?></h3> |
| 55 | <input |
| 56 | type="text" |
| 57 | name="cookiebot-cbid" |
| 58 | value="<?php echo esc_attr( get_site_option( 'cookiebot-cbid', '' ) ); ?>" |
| 59 | /> |
| 60 | </div> |
| 61 | </div> |
| 62 | </div> |
| 63 | |
| 64 | <div class="cb-settings__config__item"> |
| 65 | <div class="cb-settings__config__content"> |
| 66 | <h3 class="cb-settings__config__subtitle"><?php esc_html_e( 'Cookie-blocking mode', 'cookiebot' ); ?></h3> |
| 67 | <p class="cb-general__info__text"> |
| 68 | <?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' ); ?> |
| 69 | </p> |
| 70 | </div> |
| 71 | <div class="cb-settings__config__data"> |
| 72 | <div class="cb-settings__config__data__inner"> |
| 73 | <h3 class="cb-settings__data__subtitle"><?php esc_html_e( 'Select the Cookie-blocking mode', 'cookiebot' ); ?></h3> |
| 74 | <label class="recommended-item"> |
| 75 | <input <?php checked( 'auto', $cbm ); ?> |
| 76 | type="radio" |
| 77 | name="cookiebot-cookie-blocking-mode" |
| 78 | value="auto" |
| 79 | /> |
| 80 | <?php esc_html_e( 'Automatic cookie-blocking mode', 'cookiebot' ); ?> |
| 81 | <span class="recommended-tag"><?php esc_html_e( 'Recommended', 'cookiebot' ); ?></span> |
| 82 | </label> |
| 83 | <label> |
| 84 | <input <?php checked( 'manual', $cbm ); ?> |
| 85 | type="radio" |
| 86 | name="cookiebot-cookie-blocking-mode" |
| 87 | value="manual" |
| 88 | /> |
| 89 | <?php esc_html_e( 'Manual cookie-blocking mode', 'cookiebot' ); ?> |
| 90 | </label> |
| 91 | </div> |
| 92 | </div> |
| 93 | </div> |
| 94 | |
| 95 | <div class="cb-settings__config__item secondary__item" id="declaration-tag"> |
| 96 | <div class="cb-settings__config__content"> |
| 97 | <h3 class="cb-settings__config__subtitle"><?php esc_html_e( 'Cookiebot™ script tag', 'cookiebot' ); ?></h3> |
| 98 | <p class="cb-general__info__text"> |
| 99 | <?php esc_html_e( 'Add async or defer attribute to Cookie banner script tag. Default: Choose per subsite', 'cookiebot' ); ?> |
| 100 | </p> |
| 101 | <p class="cb-general__info__note"> |
| 102 | <?php esc_html_e( 'This feature is only available when using Manual Blocking', 'cookiebot' ); ?> |
| 103 | </p> |
| 104 | <p class="cb-general__info__note"> |
| 105 | <?php esc_html_e( 'Setting will apply for all subsites. Subsites will not be able to override.', 'cookiebot' ); ?> |
| 106 | </p> |
| 107 | </div> |
| 108 | <div class="cb-settings__config__data"> |
| 109 | <div class="cb-settings__config__data__inner"> |
| 110 | <?php |
| 111 | $cv = get_site_option( 'cookiebot-script-tag-uc-attribute', 'custom' ); |
| 112 | ?> |
| 113 | <label> |
| 114 | <input |
| 115 | type="radio" |
| 116 | name="cookiebot-script-tag-uc-attribute" |
| 117 | value="" <?php checked( '', $cv ); ?> /> |
| 118 | <?php esc_html_e( 'None', 'cookiebot' ); ?> |
| 119 | </label> |
| 120 | <label> |
| 121 | <input |
| 122 | type="radio" |
| 123 | name="cookiebot-script-tag-uc-attribute" |
| 124 | value="async" <?php checked( 'async', $cv ); ?> /> |
| 125 | async |
| 126 | </label> |
| 127 | <label> |
| 128 | <input |
| 129 | type="radio" |
| 130 | name="cookiebot-script-tag-uc-attribute" |
| 131 | value="defer" <?php checked( 'defer', $cv ); ?> /> |
| 132 | defer |
| 133 | </label> |
| 134 | <label> |
| 135 | <input |
| 136 | type="radio" |
| 137 | name="cookiebot-script-tag-uc-attribute" |
| 138 | value="custom" <?php checked( 'custom', $cv ); ?> /> |
| 139 | <?php esc_html_e( 'Choose per subsite', 'cookiebot' ); ?> |
| 140 | </label> |
| 141 | </div> |
| 142 | </div> |
| 143 | </div> |
| 144 | |
| 145 | <div class="cb-settings__config__item"> |
| 146 | <div class="cb-settings__config__content"> |
| 147 | <h3 class="cb-settings__config__subtitle"><?php esc_html_e( 'Cookiebot declaration script tag', 'cookiebot' ); ?></h3> |
| 148 | <p class="cb-general__info__note"> |
| 149 | <?php esc_html_e( 'Setting will apply for all subsites. Subsites will not be able to override.', 'cookiebot' ); ?> |
| 150 | </p> |
| 151 | <p class="cb-general__info__text"> |
| 152 | <?php esc_html_e( 'Add async or defer attribute to Cookie declaration script tag. Default: Choose per subsite', 'cookiebot' ); ?> |
| 153 | </p> |
| 154 | </div> |
| 155 | <div class="cb-settings__config__data"> |
| 156 | <div class="cb-settings__config__data__inner"> |
| 157 | <?php |
| 158 | $cv = get_site_option( 'cookiebot-script-tag-cd-attribute', 'custom' ); |
| 159 | ?> |
| 160 | <label> |
| 161 | <input |
| 162 | type="radio" |
| 163 | name="cookiebot-script-tag-cd-attribute" |
| 164 | value="" <?php checked( '', $cv ); ?> /> |
| 165 | <?php esc_html_e( 'None', 'cookiebot' ); ?> |
| 166 | </label> |
| 167 | <label> |
| 168 | <input |
| 169 | type="radio" |
| 170 | name="cookiebot-script-tag-cd-attribute" |
| 171 | value="async" <?php checked( 'async', $cv ); ?> /> |
| 172 | async |
| 173 | </label> |
| 174 | <label> |
| 175 | <input |
| 176 | type="radio" |
| 177 | name="cookiebot-script-tag-cd-attribute" |
| 178 | value="defer" <?php checked( 'defer', $cv ); ?> /> |
| 179 | defer |
| 180 | </label> |
| 181 | <label> |
| 182 | <input |
| 183 | type="radio" |
| 184 | name="cookiebot-script-tag-cd-attribute" |
| 185 | value="custom" <?php checked( 'custom', $cv ); ?> /> |
| 186 | <?php esc_html_e( 'Choose per subsite', 'cookiebot' ); ?> |
| 187 | </label> |
| 188 | </div> |
| 189 | </div> |
| 190 | </div> |
| 191 | |
| 192 | <div class="cb-settings__config__item"> |
| 193 | <div class="cb-settings__config__content"> |
| 194 | <h3 class="cb-settings__config__subtitle"><?php esc_html_e( 'Auto-update Cookiebot™ Plugin:', 'cookiebot' ); ?></h3> |
| 195 | <p class="cb-general__info__text"> |
| 196 | <?php esc_html_e( 'Automatically update your Cookiebot™ plugin when new releases becomes available.', 'cookiebot' ); ?> |
| 197 | </p> |
| 198 | </div> |
| 199 | <div class="cb-settings__config__data"> |
| 200 | <div class="cb-settings__config__data__inner"> |
| 201 | <label class="switch-checkbox" for="cookiebot-autoupdate"> |
| 202 | <input id="cookiebot-autoupdate" type="checkbox" name="cookiebot-autoupdate" value="1" |
| 203 | <?php |
| 204 | checked( |
| 205 | 1, |
| 206 | get_site_option( 'cookiebot-autoupdate' ) |
| 207 | ); |
| 208 | ?> |
| 209 | /> |
| 210 | <div class="switcher"></div> |
| 211 | <?php esc_html_e( 'Automatically update Cookiebot Plugin', 'cookiebot' ); ?> |
| 212 | </label> |
| 213 | </div> |
| 214 | </div> |
| 215 | </div> |
| 216 | |
| 217 | <div class="cb-settings__config__item" id="cookie-popup"> |
| 218 | <div class="cb-settings__config__content"> |
| 219 | <h3 class="cb-settings__config__subtitle"><?php esc_html_e( 'Hide cookie popup', 'cookiebot' ); ?></h3> |
| 220 | <p class="cb-general__info__note"> |
| 221 | <?php esc_html_e( 'Setting will apply for all subsites. Subsites will not be able to override.', 'cookiebot' ); ?> |
| 222 | </p> |
| 223 | <p class="cb-general__info__text"> |
| 224 | <?php esc_html_e( 'This checkbox will remove the cookie consent banner from your website. The 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' ); ?> |
| 225 | </p> |
| 226 | </div> |
| 227 | <div class="cb-settings__config__data"> |
| 228 | <div class="cb-settings__config__data__inner"> |
| 229 | <label class="switch-checkbox" for="cookiebot-nooutput"> |
| 230 | <input id="cookiebot-nooutput" type="checkbox" name="cookiebot-nooutput" value="1" |
| 231 | <?php |
| 232 | checked( |
| 233 | 1, |
| 234 | get_site_option( 'cookiebot-nooutput', false ) |
| 235 | ); |
| 236 | ?> |
| 237 | /> |
| 238 | <div class="switcher"></div> |
| 239 | <?php esc_html_e( 'Hide the cookie popup banner', 'cookiebot' ); ?> |
| 240 | </label> |
| 241 | </div> |
| 242 | </div> |
| 243 | </div> |
| 244 | |
| 245 | <div class="cb-settings__config__item"> |
| 246 | <div class="cb-settings__config__content"> |
| 247 | <h3 class="cb-settings__config__subtitle"><?php esc_html_e( 'Cookiebot CMP in WP Admin:', 'cookiebot' ); ?></h3> |
| 248 | <p class="cb-general__info__note"> |
| 249 | <?php esc_html_e( 'Setting will apply for all subsites. Subsites will not be able to override.', 'cookiebot' ); ?> |
| 250 | </p> |
| 251 | <p class="cb-general__info__text"> |
| 252 | <?php esc_html_e( 'This checkbox will disable Cookiebot to act within the WordPress Admin area', 'cookiebot' ); ?> |
| 253 | </p> |
| 254 | </div> |
| 255 | <div class="cb-settings__config__data"> |
| 256 | <div class="cb-settings__config__data__inner"> |
| 257 | <label class="switch-checkbox" for="cookiebot-nooutput-admin"> |
| 258 | <input id="cookiebot-nooutput-admin" type="checkbox" name="cookiebot-nooutput-admin" value="1" |
| 259 | <?php |
| 260 | checked( |
| 261 | 1, |
| 262 | get_site_option( 'cookiebot-nooutput-admin' ) |
| 263 | ); |
| 264 | ?> |
| 265 | /> |
| 266 | <div class="switcher"></div> |
| 267 | <?php esc_html_e( 'Disable Cookiebot CMP in the WordPress Admin area', 'cookiebot' ); ?> |
| 268 | </label> |
| 269 | </div> |
| 270 | </div> |
| 271 | </div> |
| 272 | </div> |
| 273 | </div> |
| 274 | </form> |
| 275 | </div> |
| 276 | </div> |
| 277 | </div> |
| 278 |