prior-consent
4 years ago
debug-page.php
4 years ago
gtm-page.php
4 years ago
iab-page.php
4 years ago
legislations-page.php
4 years ago
network-settings-page.php
4 years ago
settings-page.php
4 years ago
support-page.php
4 years ago
network-settings-page.php
292 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @var string $logo |
| 4 | * @var string $cookiebot_gdpr_url |
| 5 | * @var string $cbm |
| 6 | */ |
| 7 | ?> |
| 8 | <div class="wrap"> |
| 9 | <h1><?php esc_html_e( 'Cookiebot Network Settings', 'cookiebot' ); ?></h1> |
| 10 | <a href="https://www.cookiebot.com"> |
| 11 | <img |
| 12 | src="<?php echo esc_attr( $logo ); ?>" |
| 13 | alt="Cookiebot" |
| 14 | style="float:right;margin-left:1em;"> |
| 15 | </a> |
| 16 | <p> |
| 17 | <?php |
| 18 | printf( |
| 19 | /* translators: first link is for GDPR, second is more information about third-party services */ |
| 20 | esc_html__( |
| 21 | 'Cookiebot enables your website to comply with current legislation in the EU on the use of cookies for user tracking and profiling. The EU ePrivacy Directive requires prior, informed consent of your site users, while the %1$s %2$s.', |
| 22 | 'cookiebot' |
| 23 | ), |
| 24 | sprintf( |
| 25 | '<a href="%s" target="_blank">%s</a>', |
| 26 | esc_url( $cookiebot_gdpr_url ), |
| 27 | esc_html__( 'General Data Protection Regulation (GDPR)', 'cookiebot' ) |
| 28 | ), |
| 29 | esc_html__( |
| 30 | ' requires you to document each consent. At the same time you must be able to account for what user data you share with embedded third-party services on your website and where in the world the user data is sent.', |
| 31 | 'cookiebot' |
| 32 | ) |
| 33 | ); |
| 34 | ?> |
| 35 | </p> |
| 36 | <p> |
| 37 | <b style="color:red;font-size: larger"> |
| 38 | <?php |
| 39 | esc_html_e( |
| 40 | 'The settings below is network wide settings. See notes below each field.', |
| 41 | 'cookiebot' |
| 42 | ); |
| 43 | ?> |
| 44 | </b> |
| 45 | </p> |
| 46 | <form method="post" action="edit.php?action=cookiebot_network_settings"> |
| 47 | <?php wp_nonce_field( 'cookiebot-network-settings' ); ?> |
| 48 | <table class="form-table"> |
| 49 | <tr> |
| 50 | <th scope="row"><?php esc_html_e( 'Network Cookiebot ID', 'cookiebot' ); ?></th> |
| 51 | <td> |
| 52 | <input |
| 53 | type="text" |
| 54 | name="cookiebot-cbid" |
| 55 | value="<?php echo esc_attr( get_site_option( 'cookiebot-cbid', '' ) ); ?>" |
| 56 | style="width:300px"/> |
| 57 | <p class="description"> |
| 58 | <b> |
| 59 | <?php |
| 60 | esc_html_e( |
| 61 | 'If added this will be the default Cookiebot ID for all subsites. Subsites are able to override the Cookiebot ID.', |
| 62 | 'cookiebot' |
| 63 | ); |
| 64 | ?> |
| 65 | </b> |
| 66 | <br/> |
| 67 | <?php esc_html_e( 'Need an ID?', 'cookiebot' ); ?> |
| 68 | <a href="https://www.cookiebot.com/goto/signup" target="_blank"> |
| 69 | <?php |
| 70 | esc_html_e( |
| 71 | 'Sign up for free on cookiebot.com', |
| 72 | 'cookiebot' |
| 73 | ); |
| 74 | ?> |
| 75 | </a> |
| 76 | </p> |
| 77 | </td> |
| 78 | </tr> |
| 79 | <tr> |
| 80 | <th scope="row"> |
| 81 | <?php esc_html_e( 'Cookie-blocking mode', 'cookiebot' ); ?> |
| 82 | </th> |
| 83 | <td> |
| 84 | <label> |
| 85 | <input |
| 86 | type="radio" |
| 87 | name="cookiebot-cookie-blocking-mode" |
| 88 | value="auto" <?php checked( 'auto', $cbm ); ?> /> |
| 89 | <?php esc_html_e( 'Automatic', 'cookiebot' ); ?> |
| 90 | </label> |
| 91 | |
| 92 | <label> |
| 93 | <input |
| 94 | type="radio" |
| 95 | name="cookiebot-cookie-blocking-mode" |
| 96 | value="manual" <?php checked( 'manual', $cbm ); ?> /> |
| 97 | <?php esc_html_e( 'Manual', 'cookiebot' ); ?> |
| 98 | </label> |
| 99 | <p class="description"> |
| 100 | <?php esc_html_e( 'Should Cookiebot automatic block cookies by tagging known tags.', 'cookiebot' ); ?> |
| 101 | </p> |
| 102 | </td> |
| 103 | </tr> |
| 104 | <tr id="cookiebot-setting-async"> |
| 105 | <th scope="row"> |
| 106 | <?php esc_html_e( 'Add async or defer attribute', 'cookiebot' ); ?> |
| 107 | <br/><?php esc_html_e( 'Consent banner script tag', 'cookiebot' ); ?> |
| 108 | </th> |
| 109 | <td> |
| 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 | <i><?php esc_html_e( 'None', 'cookiebot' ); ?></i> |
| 119 | </label> |
| 120 | |
| 121 | <label> |
| 122 | <input |
| 123 | type="radio" |
| 124 | name="cookiebot-script-tag-uc-attribute" |
| 125 | value="async" <?php checked( 'async', $cv ); ?> /> |
| 126 | async |
| 127 | </label> |
| 128 | |
| 129 | <label> |
| 130 | <input |
| 131 | type="radio" |
| 132 | name="cookiebot-script-tag-uc-attribute" |
| 133 | value="defer" <?php checked( 'defer', $cv ); ?> /> |
| 134 | defer |
| 135 | </label> |
| 136 | |
| 137 | <label> |
| 138 | <input |
| 139 | type="radio" |
| 140 | name="cookiebot-script-tag-uc-attribute" |
| 141 | value="custom" <?php checked( 'custom', $cv ); ?> /> |
| 142 | <i><?php esc_html_e( 'Choose per subsite', 'cookiebot' ); ?></i> |
| 143 | </label> |
| 144 | <p class="description"> |
| 145 | <b> |
| 146 | <?php |
| 147 | esc_html_e( |
| 148 | 'Setting will apply for all subsites. Subsites will not be able to override.', |
| 149 | 'cookiebot' |
| 150 | ); |
| 151 | ?> |
| 152 | </b><br/> |
| 153 | <?php esc_html_e( 'Add async or defer attribute to Cookiebot script tag. Default: Choose per subsite', 'cookiebot' ); ?> |
| 154 | </p> |
| 155 | </td> |
| 156 | </tr> |
| 157 | <tr> |
| 158 | <th scope="row"> |
| 159 | <?php esc_html_e( 'Add async or defer attribute', 'cookiebot' ); ?> |
| 160 | <br/><?php esc_html_e( 'Cookie declaration script tag', 'cookiebot' ); ?> |
| 161 | </th> |
| 162 | <td> |
| 163 | <?php |
| 164 | $cv = get_site_option( 'cookiebot-script-tag-cd-attribute', 'custom' ); |
| 165 | ?> |
| 166 | <label> |
| 167 | <input |
| 168 | type="radio" |
| 169 | name="cookiebot-script-tag-cd-attribute" |
| 170 | value="" <?php checked( '', $cv ); ?> /> |
| 171 | <i><?php esc_html_e( 'None', 'cookiebot' ); ?></i> |
| 172 | </label> |
| 173 | |
| 174 | <label> |
| 175 | <input |
| 176 | type="radio" |
| 177 | name="cookiebot-script-tag-cd-attribute" |
| 178 | value="async" <?php checked( 'async', $cv ); ?> /> |
| 179 | async |
| 180 | </label> |
| 181 | |
| 182 | <label> |
| 183 | <input |
| 184 | type="radio" |
| 185 | name="cookiebot-script-tag-cd-attribute" |
| 186 | value="defer" <?php checked( 'defer', $cv ); ?> /> |
| 187 | defer |
| 188 | </label> |
| 189 | |
| 190 | <label> |
| 191 | <input |
| 192 | type="radio" |
| 193 | name="cookiebot-script-tag-cd-attribute" |
| 194 | value="custom" <?php checked( 'custom', $cv ); ?> /> |
| 195 | <i><?php esc_html_e( 'Choose per subsite', 'cookiebot' ); ?></i> |
| 196 | </label> |
| 197 | <p class="description"> |
| 198 | <b> |
| 199 | <?php |
| 200 | esc_html_e( |
| 201 | 'Setting will apply for all subsites. Subsites will not be able to override.', |
| 202 | 'cookiebot' |
| 203 | ); |
| 204 | ?> |
| 205 | </b><br/> |
| 206 | <?php esc_html_e( 'Add async or defer attribute to Cookiebot script tag. Default: Choose per subsite', 'cookiebot' ); ?> |
| 207 | </p> |
| 208 | </td> |
| 209 | </tr> |
| 210 | <tr> |
| 211 | <th scope="row"><?php esc_html_e( 'Auto-update Cookiebot', 'cookiebot' ); ?></th> |
| 212 | <td> |
| 213 | <input |
| 214 | type="checkbox" |
| 215 | name="cookiebot-autoupdate" |
| 216 | value="1" |
| 217 | <?php |
| 218 | checked( |
| 219 | 1, |
| 220 | get_site_option( 'cookiebot-autoupdate' ) |
| 221 | ); |
| 222 | ?> |
| 223 | /> |
| 224 | <p class="description"> |
| 225 | <?php esc_html_e( 'Automatic update your Cookiebot plugin when new releases becomes available.', 'cookiebot' ); ?> |
| 226 | </p> |
| 227 | </td> |
| 228 | </tr> |
| 229 | <tr id="cookiebot-setting-hide-popup"> |
| 230 | <th scope="row"><?php esc_html_e( 'Hide Cookie Popup', 'cookiebot' ); ?></th> |
| 231 | <td> |
| 232 | <input type="checkbox" name="cookiebot-nooutput" value="1" |
| 233 | <?php |
| 234 | checked( |
| 235 | 1, |
| 236 | get_site_option( 'cookiebot-nooutput' ) |
| 237 | ); |
| 238 | ?> |
| 239 | /> |
| 240 | <p class="description"> |
| 241 | <b> |
| 242 | <?php |
| 243 | esc_html_e( |
| 244 | 'Remove the cookie consent banner from all subsites. This cannot be changed by subsites. The <i>[cookie_declaration]</i> shortcode will still be available.', |
| 245 | 'cookiebot' |
| 246 | ); |
| 247 | ?> |
| 248 | </b><br/> |
| 249 | <?php |
| 250 | esc_html_e( |
| 251 | 'If you are using Google Tag Manager (or equal), you need to add the Cookiebot script in your Tag Manager.', |
| 252 | 'cookiebot' |
| 253 | ); |
| 254 | ?> |
| 255 | <br/> |
| 256 | <?php |
| 257 | esc_html_e( |
| 258 | '<a href="https://support.cookiebot.com/hc/en-us/articles/360003793854-Google-Tag-Manager-deployment" target="_blank">See a detailed guide here</a>', |
| 259 | 'cookiebot' |
| 260 | ); |
| 261 | ?> |
| 262 | </p> |
| 263 | </td> |
| 264 | </tr> |
| 265 | <tr> |
| 266 | <th scope="row"><?php esc_html_e( 'Hide Cookie Popup in WP Admin', 'cookiebot' ); ?></th> |
| 267 | <td> |
| 268 | <input type="checkbox" name="cookiebot-nooutput-admin" value="1" |
| 269 | <?php |
| 270 | checked( |
| 271 | 1, |
| 272 | get_site_option( 'cookiebot-nooutput-admin' ) |
| 273 | ); |
| 274 | ?> |
| 275 | /> |
| 276 | <p class="description"> |
| 277 | <b> |
| 278 | <?php |
| 279 | esc_html_e( |
| 280 | 'Remove the cookie consent banner the WordPress Admin area for all subsites. This cannot be changed by subsites.', |
| 281 | 'cookiebot' |
| 282 | ); |
| 283 | ?> |
| 284 | </b> |
| 285 | </p> |
| 286 | </td> |
| 287 | </tr> |
| 288 | </table> |
| 289 | <?php submit_button(); ?> |
| 290 | </form> |
| 291 | </div> |
| 292 |