<?php
/**
 * Admin Header Script for Author Kit
 *
 * Handles all frontend functionality for the admin header on Author Kit admin pages,
 * including UI behavior, DOM events, and styling.
 *
 * @package Author_Kit
 * @since 1.0.0
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?>

<div class="main-content">
	<nav>
		<div>
            <?php // phpcs:ignore PluginCheck.CodeAnalysis.ImageFunctions.NonEnqueuedImage
			echo '<img id="logo" src="' . esc_url( AUTHOR_KIT_PLUGIN_URL . 'admin/assets/files/author-kit-logo.svg' ) . '" alt="Logo">';
			?>
		</div>
		<div>

		</div>
	</nav>

	<div id="tab-nav-top">
		<?php
		if ( current_user_can( 'list_users' ) ) {
			?>
			<button data-page="author-kit-dashboard"><?php esc_html_e( 'Dashboard', 'author-kit' ); ?></button>
			<?php
		}
		if ( current_user_can( 'edit_posts' ) ) {
			?>
			<button data-page="author-kit-posts"><?php esc_html_e( 'Posts', 'author-kit' ); ?></button>
			<?php
		}
		if ( current_user_can( 'list_users' ) ) {
			?>
			<button data-page="author-kit-author-profiles"><?php esc_html_e( 'Author Profiles', 'author-kit' ); ?></button>
			<?php
		}
		if ( current_user_can( 'manage_options' ) ) {
			?>
			<button data-page="author-kit-templates"><?php esc_html_e( 'Templates', 'author-kit' ); ?></button>
			<?php
		}
		if ( current_user_can( 'manage_options' ) ) {
			?>
			<button data-page="author-kit-settings"><?php esc_html_e( 'Settings', 'author-kit' ); ?></button>
			<?php
		}
		?>
	</div>
</div>
