| 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 banner on site', 'cookiebot' ); ?> |
| 38 |
</h3> |
| 39 |
<p class="cb-general__info__text"> |
| 40 |
<?php esc_html_e( 'You can choose to display or hide the consent banner on your website.', '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-banner-enabled"> |
| 46 |
<?php |
| 47 |
$disabled = false; |
| 48 |
if ( $is_ms && get_site_option( 'cookiebot-banner-enabled' ) ) { |
| 49 |
echo '<input type="checkbox" checked disabled />'; |
| 50 |
$disabled = true; |
| 51 |
} else { |
| 52 |
?> |
| 53 |
<input id="cookiebot-banner-enabled" type="checkbox" |
| 54 |
name="cookiebot-banner-enabled" value="1" |
| 55 |
<?php |
| 56 |
checked( |
| 57 |
1, |
| 58 |
get_option( 'cookiebot-banner-enabled', false ) |
| 59 |
); |
| 60 |
?> |
| 61 |
/> |
| 62 |
<?php |
| 63 |
} |
| 64 |
?> |
| 65 |
<div class="switcher"></div> |
| 66 |
<?php esc_html_e( 'Show banner on site', 'cookiebot' ); ?> |
| 67 |
</label> |
| 68 |
</div> |
| 69 |
</div> |
| 70 |
</div> |
| 71 |
|