<?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 Godhuli
 */
?>

<!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js no-svg">

<head>

	<meta charset="<?php bloginfo( 'charset' ); ?>">
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
	<link rel="profile" href="https://gmpg.org/xfn/11">
	<?php wp_head(); ?>

</head>


<body <?php body_class(); ?>>

	<?php wp_body_open(); ?>


<div class="logo-box" role="banner">

	<?php
	if ( godhuli_custom_logo() ) {

		echo wp_kses_post( godhuli_custom_logo() );

	} else {

		echo wp_kses_post( godhuli_text_logo_display() );

	}
	?>

</div>

<!-- Navigation Bar-->
<header id="topnav" role="navigation" aria-label="<?php esc_attr_e( 'Main Navigation', 'godhuli' ); ?>">

	<div class="container">

		<span class="logo-mobile">
		<?php

		if ( godhuli_custom_logo() ) {

			echo wp_kses_post( godhuli_custom_logo() );

		} else {

			echo wp_kses_post( godhuli_text_logo_display() );

		}

		?>
		</span>


			<!-- Navigation Menu-->
				<button id="nav-toggle" class="nav-toggle" aria-expanded="false" aria-controls="nav-collapse-menu" aria-label="<?php esc_attr_e( 'Toggle navigation', 'godhuli' ); ?>"><span class="mdi mdi-menu" aria-hidden="true"></span></button>

				<nav id="nav-collapse-menu" class="nav-collapse" aria-label="<?php esc_attr_e( 'Primary Menu', 'godhuli' ); ?>">
					<?php
					wp_nav_menu(
						array(
							'theme_location' => 'primary',
							'menu_id'        => 'primary-menu',
							'depth'          => 5,
							'container'      => 'ul',
							'menu_class'     => 'menu-items',
							'fallback_cb'    => 'Godhuli_Bootstrap_Navwalker::fallback',
							'walker'         => new Godhuli_Bootstrap_Navwalker(),
						)
					);
					?>
				</nav>
			<!-- End navigation menu-->


	</div>
</header>
<!-- End Navigation Bar-->
