<?php
/**
 * The header for our theme.
 *
 * Displays all of the <head> section and everything up till <div id="content">
 *
 * @package bbase_code
 */
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit; ?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>">
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
	<link rel="profile" href="http://gmpg.org/xfn/11">
	<?php wp_head(); ?>
</head>

<body <?php body_class(); ?>>
<?php do_action( 'wp_body_open' ); ?>

<!-- ******************* The Navbar Area ******************* -->
<header id="site-header" class="site-header" itemscope itemtype="http://schema.org/WebSite">

	<nav class="new-nav fixed-top">
		<div class="container">
			<div class="wrap">
				<div class="wrap-logo"><?php the_custom_logo(); ?></div>
				<div class="search-bar">
					<form class="search-form" action="<?php echo home_url() ?>">
						<input class="input-search" name="s" type="text" value="<?php the_search_query() ?>" placeholder="<?php _e( 'Bạn muốn mua gì?', 'tbang_text' ) ?>" autocomplete="off" />
						<button class="btn-search"></button>
					</form>
					<div id="search-result"></div>
				</div>
				<div class="support"><?php the_field( 'header_phone', 'option' ) ?></div>
			</div>
			<div class="mobile-text">Liên hệ mua hàng: <?php the_field( 'header_phone', 'option' ) ?></div>
		</div>
	</nav>

	<nav class="nav-menu">
		<!-- The WordPress Menu goes here -->
		<?php wp_nav_menu(
			array(
				'theme_location'  => 'primary',
				'container_class' => 'main-menu container',
				'container_id'    => 'navbarNavDropdown',
				'menu_class'      => '',
				'fallback_cb'     => '',
				'menu_id'         => 'main-menu',
				'depth'           => 2,
				'walker'          => new BBase_Code_WP_Bootstrap_Navwalker(),
			)
		); ?>
	</nav>

</header><!-- #wrapper-navbar end -->

<div id="content" class="site-content">