| 1 |
<?php |
| 2 |
/** @var string $before_widget_html */ |
| 3 |
/** @var string $after_widget_html */ |
| 4 |
/** @var string $widget_title_html */ |
| 5 |
/** @var string $cookie_declaration_script_url */ |
| 6 |
/** @var string $tag_attribute_html */ |
| 7 |
|
| 8 |
echo $before_widget_html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 9 |
?> |
| 10 |
<div class="widget-text wp_widget_plugin_box cookiebot_cookie_declaration"> |
| 11 |
<?php echo $widget_title_html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 12 |
<script |
| 13 |
type="text/javascript" |
| 14 |
id="CookieDeclaration" |
| 15 |
src="<?php echo esc_url( $cookie_declaration_script_url ); ?>" |
| 16 |
<?php if ( ! empty( $culture ) && is_string( $culture ) ) : ?> |
| 17 |
data-culture="<?php echo esc_attr( $culture ); ?>" |
| 18 |
<?php endif; ?> |
| 19 |
<?php echo $tag_attribute_html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 20 |
> |
| 21 |
</script> |
| 22 |
</div> |
| 23 |
<?php |
| 24 |
echo $after_widget_html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 25 |
|