<?php
/**
* The header for our theme.
*
* Displays all of the <head> section and everything up till <div id="content">
*
* @package Simppeli
*/
?><!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">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-69391497-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body <?php body_class(); ?>>
<div id="page" class="hfeed site">
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'simppeli' ); ?></a>
<header id="masthead" class="site-header" role="banner">
<?php if ( get_header_image() && is_front_page() ) : // Header image. ?>
<a class="header-image-link" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
<img class="header-image" src="<?php header_image(); ?>" width=463"<?php echo esc_attr( get_custom_header()->width ); ?>" height=158"<?php echo esc_attr( get_custom_header()->height ); ?>" alt="" />
</a>
<?php endif; // End header image check. ?>
<div class="site-branding">
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<div class="site-description"><?php if ( is_front_page() ) :
echo get_bloginfo ( 'description' );
endif;
?></div>
<?php get_template_part( 'menu', 'primary' ); // Loads the menu-primary.php template. ?>
</header><!-- #masthead -->
<div id="content" class="site-content">