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
additional-page.php
71 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @var bool $is_ms |
| 4 | * @var string $network_scrip_tag_cd_attr |
| 5 | */ |
| 6 | ?> |
| 7 | <div class="cb-settings__config__item"> |
| 8 | <div class="cb-settings__config__content"> |
| 9 | <h3 class="cb-settings__config__subtitle"> |
| 10 | <?php esc_html_e( 'Automatic updates', 'cookiebot' ); ?> |
| 11 | </h3> |
| 12 | <p class="cb-general__info__text"> |
| 13 | <?php esc_html_e( 'Enable automatic updates whenever we release a new version of the plugin.', 'cookiebot' ); ?> |
| 14 | </p> |
| 15 | </div> |
| 16 | <div class="cb-settings__config__data"> |
| 17 | <div class="cb-settings__config__data__inner"> |
| 18 | <label class="switch-checkbox" for="cookiebot-autoupdate"> |
| 19 | <input id="cookiebot-autoupdate" type="checkbox" name="cookiebot-autoupdate" value="1" |
| 20 | <?php |
| 21 | checked( |
| 22 | 1, |
| 23 | get_option( 'cookiebot-autoupdate', false ) |
| 24 | ); |
| 25 | ?> |
| 26 | /> |
| 27 | <div class="switcher"></div> |
| 28 | <?php esc_html_e( 'Automatically update to new version', 'cookiebot' ); ?> |
| 29 | </label> |
| 30 | </div> |
| 31 | </div> |
| 32 | </div> |
| 33 | |
| 34 | <div class="cb-settings__config__item"> |
| 35 | <div class="cb-settings__config__content"> |
| 36 | <h3 class="cb-settings__config__subtitle"> |
| 37 | <?php esc_html_e( 'Show the banner while logged in', 'cookiebot' ); ?> |
| 38 | </h3> |
| 39 | <p class="cb-general__info__text"> |
| 40 | <?php esc_html_e( 'You can choose to display the consent banner on your website while you’re logged in and changing settings or customizing your banner.', 'cookiebot' ); ?> |
| 41 | </p> |
| 42 | </div> |
| 43 | <div class="cb-settings__config__data"> |
| 44 | <div class="cb-settings__config__data__inner"> |
| 45 | <label class="switch-checkbox" for="cookiebot-output-logged-in"> |
| 46 | <?php |
| 47 | $disabled = false; |
| 48 | if ( $is_ms && get_site_option( 'cookiebot-output-logged-in' ) ) { |
| 49 | echo '<input type="checkbox" checked disabled />'; |
| 50 | $disabled = true; |
| 51 | } else { |
| 52 | ?> |
| 53 | <input id="cookiebot-output-logged-in" type="checkbox" |
| 54 | name="cookiebot-output-logged-in" value="1" |
| 55 | <?php |
| 56 | checked( |
| 57 | 1, |
| 58 | get_option( 'cookiebot-output-logged-in', false ) |
| 59 | ); |
| 60 | ?> |
| 61 | /> |
| 62 | <?php |
| 63 | } |
| 64 | ?> |
| 65 | <div class="switcher"></div> |
| 66 | <?php esc_html_e( 'Show banner on website when logged in', 'cookiebot' ); ?> |
| 67 | </label> |
| 68 | </div> |
| 69 | </div> |
| 70 | </div> |
| 71 |