additional-page.php
1 year ago
embeddings-page.php
1 year ago
gcm-page.php
1 year ago
general-page.php
1 year ago
gtm-page.php
1 year ago
general-page.php
239 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @var string $cbid |
| 4 | * @var bool $is_ms |
| 5 | * @var string $network_cbid |
| 6 | * @var bool $network_cbid_override |
| 7 | * @var string $ruleset_id |
| 8 | * @var bool $cookiebot_iab |
| 9 | * @var string $network_scrip_tag_uc_attr |
| 10 | * @var string $cookie_blocking_mode |
| 11 | * @var bool $network_auto |
| 12 | */ |
| 13 | |
| 14 | use function cybot\cookiebot\lib\include_view; |
| 15 | |
| 16 | ?> |
| 17 | <?php include_view( 'admin/common/templates/extra/cbid-disconnect-alert.php' ); ?> |
| 18 | <?php |
| 19 | if ( ! empty( $network_cbid ) ) { |
| 20 | include_view( 'admin/common/templates/extra/subsite-disconnect-alert.php' ); |
| 21 | } |
| 22 | ?> |
| 23 | <div class="cb-settings__config__item cb-settings__config__cbid"> |
| 24 | <div class="cb-settings__config__content"> |
| 25 | <h3 class="cb-settings__config__subtitle"> |
| 26 | <?php esc_html_e( 'Settings ID', 'cookiebot' ); ?> |
| 27 | </h3> |
| 28 | <p class="cb-general__info__text"> |
| 29 | <?php esc_html_e( 'To disconnect your account, enter your settings ID into the field and confirm with the button.', 'cookiebot' ); ?> |
| 30 | </p> |
| 31 | <a href="https://support.usercentrics.com/hc/en-us/articles/18097606499100-What-is-a-Settings-ID-and-where-can-I-find-it" |
| 32 | target="_blank" class="cb-btn cb-link-btn" rel="noopener"> |
| 33 | <?php esc_html_e( 'Where to find settings ID', 'cookiebot' ); ?> |
| 34 | </a> |
| 35 | </div> |
| 36 | <div class="cb-settings__config__data"> |
| 37 | <div class="cb-settings__config__data__inner"> |
| 38 | <h3 class="cb-settings__data__subtitle"> |
| 39 | <?php esc_html_e( 'Your settings ID', 'cookiebot' ); ?> |
| 40 | </h3> |
| 41 | <div class="cookiebot-cbid-container"> |
| 42 | <div class="cookiebot-cbid-input"> |
| 43 | <input |
| 44 | <?php |
| 45 | echo ( $is_ms ) ? |
| 46 | ' placeholder="' . esc_attr( $network_cbid ) . '" data-network="' . esc_attr( $network_cbid ) . '"' : |
| 47 | ''; |
| 48 | ?> |
| 49 | type="text" id="cookiebot-cbid" class="cbid-active" name="cookiebot-cbid" |
| 50 | value="<?php echo esc_attr( $cbid ); ?>"/> |
| 51 | <div class="cookiebot-cbid-check"></div> |
| 52 | </div> |
| 53 | <div id="cookiebot-cbid-reset-dialog" |
| 54 | class="cb-btn cb-main-btn |
| 55 | <?php |
| 56 | if ( ! empty( $network_cbid ) && ! $network_cbid_override ) { |
| 57 | echo 'hidden'; |
| 58 | } |
| 59 | ?> |
| 60 | "><?php esc_html_e( 'Disconnect account', 'cookiebot' ); ?></div> |
| 61 | <?php if ( $is_ms ) : ?> |
| 62 | <div id="cookiebot-cbid-network-dialog" |
| 63 | class="cb-btn cb-white-btn |
| 64 | <?php |
| 65 | if ( ! empty( $network_cbid ) && $network_cbid_override ) { |
| 66 | echo 'hidden'; |
| 67 | } |
| 68 | ?> |
| 69 | "><?php esc_html_e( 'Using network account', 'cookiebot' ); ?></div> |
| 70 | <?php submit_button( esc_html__( 'Connect account', 'cookiebot' ), 'hidden' ); ?> |
| 71 | <?php endif; ?> |
| 72 | </div> |
| 73 | <?php if ( ! empty( $network_cbid ) ) : ?> |
| 74 | <div id="cb-network-id-override"> |
| 75 | <label class="switch-checkbox" for="cookiebot-cbid-override"> |
| 76 | <input class=" |
| 77 | <?php |
| 78 | if ( ! $network_cbid_override ) { |
| 79 | echo 'cb-no-network'; |
| 80 | } |
| 81 | ?> |
| 82 | " |
| 83 | type="checkbox" name="cookiebot-cbid-override" id="cookiebot-cbid-override" value="1" |
| 84 | <?php checked( 1, $network_cbid_override ); ?>> |
| 85 | <div class="switcher"></div> |
| 86 | <?php esc_html_e( 'Do not use Network Settings ID', 'cookiebot' ); ?> |
| 87 | </label> |
| 88 | </div> |
| 89 | <?php endif; ?> |
| 90 | </div> |
| 91 | </div> |
| 92 | </div> |
| 93 | |
| 94 | <div id="cookiebot-ruleset-id-selector" class="cb-settings__config__item hidden"> |
| 95 | <div class="cb-settings__config__content"> |
| 96 | <p class="cb-general__info__text"> |
| 97 | <?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' ); ?> |
| 98 | </p> |
| 99 | </div> |
| 100 | <div class="cb-settings__config__data"> |
| 101 | <div class="cb-settings__config__data__inner"> |
| 102 | <h3 class="cb-settings__data__subtitle"> |
| 103 | <?php esc_html_e( 'Your current account setup:', 'cookiebot' ); ?> |
| 104 | </h3> |
| 105 | <label class="recommended-item"> |
| 106 | <input <?php checked( 'settings', $ruleset_id ); ?> |
| 107 | type="radio" |
| 108 | name="cookiebot-ruleset-id" |
| 109 | value="settings"/> |
| 110 | <?php esc_html_e( 'Compliance with one privacy law', 'cookiebot' ); ?> |
| 111 | </label> |
| 112 | <label> |
| 113 | <input <?php checked( 'ruleset', $ruleset_id ); ?> |
| 114 | type="radio" |
| 115 | name="cookiebot-ruleset-id" |
| 116 | value="ruleset"/> |
| 117 | <?php esc_html_e( 'Compliance with multiple privacy laws (geolocation)', 'cookiebot' ); ?> |
| 118 | </label> |
| 119 | </div> |
| 120 | </div> |
| 121 | </div> |
| 122 | |
| 123 | <div class="cb-settings__config__item"> |
| 124 | <div class="cb-settings__config__content"> |
| 125 | <h3 class="cb-settings__config__subtitle"> |
| 126 | <?php esc_html_e( 'TCF integration', 'cookiebot' ); ?> |
| 127 | </h3> |
| 128 | <p class="cb-general__info__text"> |
| 129 | <?php esc_html_e( 'Enable the integration with the latest version of IAB TCF.', 'cookiebot' ); ?> |
| 130 | </p> |
| 131 | </div> |
| 132 | <div class="cb-settings__config__data"> |
| 133 | <div class="cb-settings__config__data__inner"> |
| 134 | <label class="switch-checkbox" for="cookiebot-iab"> |
| 135 | <input type="checkbox" name="cookiebot-iab" id="cookiebot-iab" value="1" |
| 136 | <?php checked( 1, $cookiebot_iab ); ?>> |
| 137 | <div class="switcher"></div> |
| 138 | <?php esc_html_e( 'IAB TCF integration', 'cookiebot' ); ?> |
| 139 | </label> |
| 140 | </div> |
| 141 | </div> |
| 142 | </div> |
| 143 | |
| 144 | <div class="cb-settings__config__item"> |
| 145 | <div class="cb-settings__config__content"> |
| 146 | <h3 class="cb-settings__config__subtitle"> |
| 147 | <?php esc_html_e( 'Cookie-blocking', 'cookiebot' ); ?> |
| 148 | </h3> |
| 149 | <p class="cb-general__info__text"> |
| 150 | <?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' ); ?> |
| 151 | </p> |
| 152 | <a href="https://support.usercentrics.com/hc/en-us/articles/17332104757148-Automatic-Data-Processing-Service-blocking" |
| 153 | target="_blank" class="cb-btn cb-link-btn" rel="noopener"> |
| 154 | <?php esc_html_e( 'Learn more', 'cookiebot' ); ?> |
| 155 | </a> |
| 156 | </div> |
| 157 | <div class="cb-settings__config__data"> |
| 158 | <div class="cb-settings__config__data__inner"> |
| 159 | <h3 class="cb-settings__data__subtitle"> |
| 160 | <?php esc_html_e( 'Select cookie-blocking mode', 'cookiebot' ); ?> |
| 161 | </h3> |
| 162 | <label class="recommended-item"> |
| 163 | <input <?php checked( 'auto', $cookie_blocking_mode ); ?> |
| 164 | type="radio" |
| 165 | name="cookiebot-cookie-blocking-mode" |
| 166 | value="auto" |
| 167 | <?php echo $is_ms && $network_auto ? ' disabled' : ''; ?>/> |
| 168 | <?php esc_html_e( 'Automatic', 'cookiebot' ); ?> |
| 169 | <span class="recommended-tag"><?php esc_html_e( 'Recommended', 'cookiebot' ); ?></span> |
| 170 | </label> |
| 171 | <label> |
| 172 | <input <?php checked( 'manual', $cookie_blocking_mode ); ?> |
| 173 | type="radio" |
| 174 | name="cookiebot-cookie-blocking-mode" |
| 175 | value="manual" |
| 176 | <?php echo $is_ms && $network_auto ? ' disabled' : ''; ?>/> |
| 177 | <?php esc_html_e( 'Manual', 'cookiebot' ); ?> |
| 178 | </label> |
| 179 | <?php if ( $is_ms && $network_auto ) { ?> |
| 180 | <p class="cb-general__info__note"><?php esc_html_e( 'Disabled by active setting in Network Settings', 'cookiebot' ); ?></p> |
| 181 | <?php } ?> |
| 182 | </div> |
| 183 | </div> |
| 184 | </div> |
| 185 | |
| 186 | <?php |
| 187 | $cv = get_option( 'cookiebot-script-tag-uc-attribute', 'async' ); |
| 188 | $disabled = false; |
| 189 | if ( $is_ms && $network_scrip_tag_uc_attr !== 'custom' ) { |
| 190 | $disabled = true; |
| 191 | $cv = $network_scrip_tag_uc_attr; |
| 192 | } |
| 193 | $auto_disabled = $cookie_blocking_mode === 'auto' ? ' disabled__item' : ''; |
| 194 | ?> |
| 195 | |
| 196 | <div class="cb-settings__config__item secondary__item<?php echo esc_attr( $auto_disabled ); ?>" id="cookie-popup"> |
| 197 | <div class="cb-settings__config__content"> |
| 198 | <h3 class="cb-settings__config__subtitle"> |
| 199 | <?php esc_html_e( 'Hide cookie popup', 'cookiebot' ); ?> |
| 200 | </h3> |
| 201 | <p class="cb-general__info__note"> |
| 202 | <?php esc_html_e( 'This feature is only available when using Manual Blocking', 'cookiebot' ); ?> |
| 203 | </p> |
| 204 | <p class="cb-general__info__text"> |
| 205 | <?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' ); ?> |
| 206 | </p> |
| 207 | </div> |
| 208 | <div class="cb-settings__config__data"> |
| 209 | <div class="cb-settings__config__data__inner"> |
| 210 | <label> |
| 211 | <?php |
| 212 | $disabled = false; |
| 213 | if ( $is_ms && get_site_option( 'cookiebot-nooutput' ) || $is_ms && $network_auto ) { |
| 214 | $disabled = true; |
| 215 | if ( ! $network_auto ) { |
| 216 | echo '<input type="checkbox" checked disabled />'; |
| 217 | } else { |
| 218 | echo '<input type="checkbox" disabled />'; |
| 219 | } |
| 220 | } else { |
| 221 | ?> |
| 222 | <input type="checkbox" name="cookiebot-nooutput" value="1" |
| 223 | <?php |
| 224 | checked( |
| 225 | 1, |
| 226 | get_option( 'cookiebot-nooutput', false ) |
| 227 | ); |
| 228 | ?> |
| 229 | /> |
| 230 | <?php } ?> |
| 231 | <?php esc_html_e( 'Hide the cookie popup banner', 'cookiebot' ); ?> |
| 232 | </label> |
| 233 | <?php if ( $is_ms && get_site_option( 'cookiebot-nooutput' ) || $is_ms && $network_auto ) { ?> |
| 234 | <p class="cb-general__info__note"><?php esc_html_e( 'Disabled by active setting in Network Settings', 'cookiebot' ); ?></p> |
| 235 | <?php } ?> |
| 236 | </div> |
| 237 | </div> |
| 238 | </div> |
| 239 |