<?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 wpstream-theme
 *
 * @version 5.2.3.4
 */

?>
<!DOCTYPE html>
<html <?php language_attributes(); ?> class='<?php echo esc_attr(get_theme_mod('wpstream_theme_style_white') ? 'white-theme' : 'dark-theme'); ?>'></html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta charset="<?php bloginfo( 'charset' ); ?>">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
		<link rel="pingback" href="<?php esc_url( bloginfo( 'pingback_url' ) ); ?>" />
	<?php endif; ?>


	<?php wp_head(); ?>
</head>

<body <?php body_class(); ?>>
<nav class="skip-links">
		<a class="skip-link screen-reader-text" href="#masthead">
            <?php esc_html_e( 'Skip to navigation', 'hello-wpstream' ); ?>
        </a>
        <a class="skip-link screen-reader-text" href="#content">
            <?php esc_html_e( 'Skip to content', 'hello-wpstream' ); ?>
        </a>    
        <a class="skip-link screen-reader-text" href="#footer">
            <?php esc_html_e( 'Skip to footer', 'hello-wpstream' ); ?>
        </a>
    </nav>
<?php wp_body_open(); 

$header_type =get_theme_mod( 'wpstream_theme_header_design_type', 'header-type-1' );
?>

<div id="page" class="site page-for-<?php echo esc_attr($header_type);?> ">
<?php



if ( ! wpstream_is_dashboard_page() ) {
	if($header_type=='header-type-2'){
		require get_template_directory() . '/template-parts/header-templates/header-search-section-type-2.php';
	}
	get_template_part( 'template-parts/header-templates/'  .  $header_type );
}
?>
