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

    $header_btns = get_field('header_btns', 'option');
?>
<!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 content', 'brpfinanse' ); ?></a> -->

	<header id="masthead" class="site-header">
		<div class="container">
			<div class="row">
				<div class="site-branding">
					<?php the_custom_logo(); ?>
				</div>

				<nav id="site-navigation" class="main-navigation">
					<?php
						wp_nav_menu(
							array(
								'menu_id'        => 'primary-menu',
							)
						);
					?>
				</nav>

				<ul class="main-navigation-secondary">
					<li>
						<a href="<?php echo esc_url($header_btns['btn_1']['url']); ?>" target="<?php echo esc_attr($header_btns['btn_1']['target'] ?: '_self'); ?>">
							<?php echo esc_html($header_btns['btn_1']['title']); ?>
						</a>
					</li>
					<li>
						<a href="<?php echo esc_url($header_btns['btn_2']['url']); ?>" target="<?php echo esc_attr($header_btns['btn_2']['target'] ?: '_self'); ?>">
							<?php echo esc_html($header_btns['btn_2']['title']); ?>
						</a>
					</li>
				</ul>

				<button id="nav-menu-toggle">
					<span class="icon"></span>
					<span class="text">Menu</span>
				</button>
			</div>
		</div>
	</header>

