<?php
/**
 * The header theme
 *
 * This is the template that displays all of the header
 *
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package    Wira
 * @since      1.0.0
 */

?>

<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="profile" href="http://gmpg.org/xfn/11">
	<?php wp_head(); ?>
</head>

<!-- Body -->
<body <?php body_class(); ?>>
	<?php wp_body_open(); ?>
	<a class="skip-link screen-reader-text" href="#main"><?php esc_html_e( 'Skip to content', 'wira' ); ?></a>
	
	<!-- Main Site Header -->
	<header class="site-header">
		<!-- Theme Wrapper -->
		<div class="wira-theme">

			<!-- Main Header Content -->
			<?php if ( get_header_image() ) : ?>
				<div class="custom-header" style="background-image: url('<?php echo esc_url( get_header_image() ); ?>'); height: <?php echo absint( get_custom_header()->height ); ?>px;">
				</div>
			<?php endif; ?>
		<?php get_template_part( 'template-parts/header/header', 'part' ); ?>
		</div> <!-- Theme Wrapper /End -->
	</header> <!-- Main Site Header /End -->
