<?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 One Newspaper
 */
use OneNewspaper\CustomizerDefault as ONP;
require get_template_directory() . '/builder/responsive-header.php';
use One_Newspaper_Builder as ONB;
?>
<!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 one_newspaper_schema_body_attributes(); ?>>
<?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', 'one-newspaper' ); ?></a>
	<div class="one_newspaper_ovelay_div"></div>
	<?php
		/**
		 * hook - one_newspaper_page_prepend_hook
		 * 
		 * @package One Newspaper
		 * @since 1.0.0
		 */
		do_action( "one_newspaper_page_prepend_hook" );

		$headerClass = 'site-header ' . ONP\one_newspaper_get_customizer_option( 'header_builder_section_width' );
	?>
	
	<header id="masthead" class="<?php echo esc_html( $headerClass ); ?>">
		<?php
			new ONB\Header_Builder_Render();
			new ONB\Responsive_Header_Builder_Render();
		?>
	</header><!-- #masthead -->
	
	<?php

	if( is_single() ) one_newspaper_breadcrumb_html();

	/**
	* hook - one_newspaper_sticky_posts_hook
	* 
	* @hooked - one_newspaper_sticky_posts_html - 10
	*/
	if( has_action( 'one_newspaper_sticky_posts_hook' ) ) do_action( 'one_newspaper_sticky_posts_hook' );