<?php
/**
 * Main Admin page header template
 */

defined( 'ABSPATH' ) || exit; // Exit if accessed directly.

/**
 * Filters the list of CSS class names for the root #personalizewp element.
 *
 * @since 1.0.0
 *
 * @param string[] $classes An array of class names.
 */
$body_classes = apply_filters( 'personalizewp_body_class', array() );
?>
<!-- CSS namespace -->
<div id="personalizewp" class="<?php echo esc_attr( implode( ' ', $body_classes ) ); ?>">

<header class="header page-<?php echo esc_attr( sanitize_title( $page ) ); ?>">
	<h1 class="title">
		<img height="39" width="150" src="<?php echo esc_url( $base_url . '/img/logo-light.svg' ); ?>" alt="<?php esc_html_e( 'PersonalizeWP by Filter', 'personalizewp' ); ?>" />
		<?php
		if ( ! empty( $page_title ) ) :
			?>
			<span class="separator">/</span>
			<span class="page"><?php echo esc_html( $page_title ); ?></span>
			<?php
		endif;
		?>
	</h1>

	<ul class="nav-links">
		<li>
			<a href="<?php echo esc_url( 'https://help.personalizewp.com/' ); ?>" target="_blank" class="btn">
				<span class="dashicons dashicons-editor-help"></span>
				<?php esc_html_e( 'Knowledge Base', 'personalizewp' ); ?>
			</a>
		</li>
		<li>
			<a href="<?php echo esc_url( 'https://github.com/filter-agency/personalizewp/issues' ); ?>" target="_blank" class="btn">
				<span class="dashicons dashicons-format-chat"></span>
				<?php esc_html_e( 'Report Issue', 'personalizewp' ); ?>
			</a>
		</li>
		<li>
			<a href="<?php echo esc_url( 'https://en-gb.wordpress.org/plugins/personalizewp/#reviews' ); ?>" target="_blank" class="btn">
				<span class="dashicons dashicons-thumbs-up"></span>
				<?php esc_html_e( 'Leave a Review', 'personalizewp' ); ?>
			</a>
		</li>
	</ul>
</header>

<hr class="wp-header-end">
