fictioneer/partials/_consent-banner.php

34 lines
1.3 KiB
PHP
Raw Permalink Normal View History

2023-01-21 01:31:34 +01:00
<?php
/**
* Partial: Consent Banner
*
* @package WordPress
* @subpackage Fictioneer
* @since 4.0.0
2023-01-21 01:31:34 +01:00
*/
// No direct access!
defined( 'ABSPATH' ) OR exit;
?>
<div id="consent-banner" class="consent-banner hidden" role="banner" hidden data-nosnippet>
2023-01-21 01:31:34 +01:00
<div class="consent-banner__wrapper">
<?php
$info = fictioneer_replace_key_value(
get_option( 'fictioneer_phrase_cookie_consent_banner' ),
2023-01-21 01:31:34 +01:00
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" tabindex="1">Privacy Policy</a>.', 'fictioneer' )
2023-01-21 01:31:34 +01:00
);
?>
<p class="consent-banner__notice"><?php echo $info; ?></p>
<div class="consent-banner__actions">
2023-09-16 14:25:26 +02:00
<button type="button" id="consent-accept-button" class="button button--cookie-banner" tabindex="2"><?php _e( 'Accept', 'fictioneer' ); ?></button>
<button type="button" id="consent-reject-button" class="button button--cookie-banner" tabindex="3"><?php _e( 'Reject Non-Essential', 'fictioneer' ); ?></button>
2023-01-21 01:31:34 +01:00
</div>
</div>
</div>