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

?>
<!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 <?php body_class(); ?>>

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

<div id="page" class="site">
	<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'eglatone' ); ?></a>

	<header id="masthead" class="site-header">
		<div class="site-header-main">
			<div class="wrapper">
				<?php get_template_part( 'template-parts/header/site', 'branding' ); ?>

				<?php get_template_part( 'template-parts/navigation/navigation', 'primary' ); ?>
			</div><!-- .wrapper -->
		</div><!-- .site-header-main -->
	</header><!-- #masthead -->

	<?php
	/*
	 * Guarded: if inc/template-functions.php is missing or was truncated in
	 * transfer, the page renders without the homepage sections rather than
	 * taking the whole site down with a fatal error.
	 */
	if ( function_exists( 'eglatone_sections' ) ) {
		eglatone_sections();
	} else {
		echo '<!-- eglatone_sections() unavailable: re-upload inc/template-functions.php -->';
	}
	?>
	
	<div id="content" class="site-content">
		<div class="wrapper">
