# cookiebot/4.7.5/src/settings/templates/Header.php

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

- Page: https://pluginprobe.com/plugins/cookiebot/4.7.5/code/src/settings/templates/Header.php
- Raw: https://pluginprobe.com/plugins/cookiebot/4.7.5/raw/src/settings/templates/Header.php
- Modified: 2025-08-12T11:21:30+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/settings/templates/Header.php#L10-L20`.

```php
<?php

namespace cybot\cookiebot\settings\templates;

use cybot\cookiebot\lib\Cookiebot_WP;
use InvalidArgumentException;
use function cybot\cookiebot\lib\asset_url;
use function cybot\cookiebot\lib\include_view;
use function cybot\cookiebot\lib\logo_url;

class Header {


	/**
	 * @throws InvalidArgumentException
	 */
	public function display() {
		$args = array(
			'cookiebot_logo' => logo_url(),
		);

		$style_sheets = array(
			array( 'cookiebot-main-css', 'css/backend/cookiebot_admin_main.css' ),
		);

		foreach ( $style_sheets as $style ) {
			wp_enqueue_style(
				$style[0],
				asset_url( $style[1] ),
				null,
				Cookiebot_WP::COOKIEBOT_PLUGIN_VERSION
			);
		}

		$args['days_left'] = Cookiebot_WP::get_trial_days_left();

		include_view( 'admin/common/templates/header.php', $args );
	}
}

```
