<?php

/**
 * The header for our theme 
 * This is the template that displays all of the <head> section and everything up until <div id="content">
 *
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package Asthir
 */

?>
<!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="https://gmpg.org/xfn/11">

	<?php wp_head(); ?>
</head>

<body <?php body_class(); ?>>
	<?php wp_body_open(); ?>
	<div id="page" class="site">
		<a class="skip-link screen-reader-text" href="#primary"><?php esc_html_e('Skip to main content', 'asthir'); ?></a>
		<a class="skip-link screen-reader-text" href="#site-navigation"><?php esc_html_e('Skip to navigation', 'asthir'); ?></a>
		<a class="skip-link screen-reader-text" href="#colophon"><?php esc_html_e('Skip to footer', 'asthir'); ?></a>


		<?php
		do_action('asthir_mobile_menu');
		$asthir_topbar_show = get_theme_mod('asthir_topbar_show', 1);
		if ($asthir_topbar_show) {
			do_action('asthir_header_top_display');
		}

		?>
		<header id="masthead" class="asthir-header site-header" role="banner" aria-label="<?php esc_attr_e('Site header', 'asthir'); ?>">

			<?php
			$asthir_header_style = get_theme_mod('asthir_header_style', 'style1');
			if ($asthir_header_style == 'style1') {
				do_action('asthir_logo_text');
				do_action('asthir_main_menu');
			} else {
				do_action('asthir_main_menu');
				do_action('asthir_logo_text');
			}

			?>
		</header><!-- #masthead -->