<?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 Blog Bee
 */
use BBE\Customizer\Section\Header_Builder;
use BBE\Customizer\Section\Hover_Effects;
use BBE\Customizer\Section\Preloader;
use BBE\Helpers as Helpers;
use BBE\Query_Manager as Query_Manager;
use BBE\Customizer\Theme_Defaults as Theme_Defaults;
?>
<!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">
	<meta name="description" content="<?php echo ( ( is_home() || is_front_page() ) ? get_bloginfo( 'description' ) : get_the_excerpt() ); ?>">

	<?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', 'blog-bee' ); ?></a>

	<?php

		the_header_image_tag();

		Hover_Effects::get_instance()->render_html();

		Preloader::get_instance()->render_html();  
		
		if( has_action( 'bbe_above_header_hook' ) ) do_action( 'bbe_above_header_hook' );
		
		Header_Builder::get_instance()->render_html();
		
		if( has_action( 'bbe_below_header_hook' ) ) do_action( 'bbe_below_header_hook' );

	?>