fictioneer/partials/_consent-banner.php

29 lines
1.2 KiB
PHP
Raw Normal View History

2023-01-21 01:31:34 +01:00
<?php
/**
* Partial: Consent Banner
*
* @package WordPress
* @subpackage Fictioneer
* @since 4.0
*/
?>
<div id="consent-banner" class="consent-banner hidden" role="banner">
<div class="consent-banner__wrapper">
<?php
$info = fictioneer_replace_key_value(
wp_kses_post( get_option( 'fictioneer_phrase_cookie_consent_banner' ) ),
array(
'[[privacy_policy_url]]' => get_privacy_policy_url()
),
__( 'We use cookies to enhance your browsing experience, serve personalized content, and analyze our traffic. Some features are not available without, but you can limit the site to strictly necessary cookies only. See <a href="[[privacy_policy_url]]" target="_blank">Privacy Policy</a>.', 'fictioneer' )
);
?>
<p class="consent-banner__notice"><?php echo $info; ?></p>
<div class="consent-banner__actions">
<button type="button" id="consent-accept-button" class="button button--cookie-banner"><?php _e( 'Accept', 'fictioneer' ) ?></button>
<button type="button" id="consent-reject-button" class="button button--cookie-banner"><?php _e( 'Reject Non-Essential', 'fictioneer' ) ?></button>
</div>
</div>
</div>