# cookiebot/4.7.4/src/view/frontend/widgets/cookiebot-declaration-widget.php

Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA &amp; Google Consent Mode, version 4.7.4. 25 lines.

- Page: https://pluginprobe.com/plugins/cookiebot/4.7.4/code/src/view/frontend/widgets/cookiebot-declaration-widget.php
- Raw: https://pluginprobe.com/plugins/cookiebot/4.7.4/raw/src/view/frontend/widgets/cookiebot-declaration-widget.php
- Modified: 2022-06-15T12:54:52+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/cookiebot/4.7.4/code/src/view/frontend/widgets/cookiebot-declaration-widget.php#L10-L20`.

```php
<?php
/** @var string $before_widget_html */
/** @var string $after_widget_html */
/** @var string $widget_title_html */
/** @var string $cookie_declaration_script_url */
/** @var string $tag_attribute_html */

echo $before_widget_html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
?>
	<div class="widget-text wp_widget_plugin_box cookiebot_cookie_declaration">
		<?php echo $widget_title_html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
		<script
				type="text/javascript"
				id="CookieDeclaration"
				src="<?php echo esc_url( $cookie_declaration_script_url ); ?>"
			<?php if ( ! empty( $culture ) && is_string( $culture ) ) : ?>
				data-culture="<?php echo esc_attr( $culture ); ?>"
			<?php endif; ?>
			<?php echo $tag_attribute_html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
		>
		</script>
	</div>
<?php
echo $after_widget_html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped

```
