# cookiebot/4.7.5/src/view/admin/widgets/cookiebot-declaration-widget-form.php

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

- Page: https://pluginprobe.com/plugins/cookiebot/4.7.5/code/src/view/admin/widgets/cookiebot-declaration-widget-form.php
- Raw: https://pluginprobe.com/plugins/cookiebot/4.7.5/raw/src/view/admin/widgets/cookiebot-declaration-widget-form.php
- Modified: 2025-01-28T12:24:38+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.5/code/src/view/admin/widgets/cookiebot-declaration-widget-form.php#L10-L20`.

```php
<?php

/** @var string $lang */
/** @var string $title */
/** @var string $title_field_id */
/** @var string $title_field_name */
/** @var string $lang_field_id */
/** @var string $lang_field_name */
/** @var array $supported_languages */
?>

<p>
	<label for="<?php echo esc_attr( $title_field_id ); ?>">
		<?php esc_html_e( 'Title', 'cookiebot' ); ?>
	</label>
	<input
			class="widefat"
			id="<?php echo esc_attr( $title_field_id ); ?>"
			name="<?php echo esc_attr( $title_field_name ); ?>"
			type="text"
			value="<?php echo esc_attr( $title ); ?>"
	/>
</p>
<p>
	<label for="<?php echo esc_attr( $lang_field_id ); ?>">
		<?php esc_html_e( 'Language', 'cookiebot' ); ?>
	</label>
	<select
			name="<?php echo esc_attr( $lang_field_name ); ?>"
			id="<?php echo esc_attr( $lang_field_id ); ?>"
			class="widefat"
	>
		<option value=""><?php echo esc_html__( '- Default -', 'cookiebot' ); ?></option>
		<?php foreach ( $supported_languages as $supported_language_code => $supported_language ) : ?>
			<option
					value="<?php echo esc_attr( $supported_language_code ); ?>"
					id="<?php echo esc_attr( $supported_language_code ); ?>"
				<?php echo selected( $lang, $supported_language_code, false ); ?>
			>
				<?php echo esc_html( $supported_language ); ?>
			</option>
		<?php endforeach; ?>
	</select>

</p>

```
