summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/modules/widgets/eu-cookie-law/widget.php')
-rw-r--r--plugins/jetpack/modules/widgets/eu-cookie-law/widget.php12
1 files changed, 4 insertions, 8 deletions
diff --git a/plugins/jetpack/modules/widgets/eu-cookie-law/widget.php b/plugins/jetpack/modules/widgets/eu-cookie-law/widget.php
index c45edfee..cd016a3e 100644
--- a/plugins/jetpack/modules/widgets/eu-cookie-law/widget.php
+++ b/plugins/jetpack/modules/widgets/eu-cookie-law/widget.php
@@ -1,7 +1,7 @@
<div
- class="<?php echo 'negative' === $instance['color-scheme'] ? 'negative ' : '';
- ?>hide-on-<?php echo esc_attr( $instance['hide'] ); ?>"
+ class="<?php echo implode( ' ', $classes ); ?>"
data-hide-timeout="<?php echo intval( $instance['hide-timeout'] ); ?>"
+ data-consent-expiration="<?php echo intval( $instance['consent-expiration'] ); ?>"
id="eu-cookie-law"
>
<form method="post">
@@ -9,13 +9,9 @@
</form>
<?php if ( 'default' == $instance['text'] || empty( $instance['customtext'] ) ) {
- echo $instance['default-text'];
- ?>
- <br />
- <?php
- esc_html_e( 'To find out more, as well as how to remove or block these, see here:', 'jetpack' );
+ echo nl2br( $instance['default-text'] );
} else {
- echo esc_html( $instance['customtext'] );
+ echo nl2br( esc_html( $instance['customtext'] ) );
} ?>
<a href="<?php