<?php /** * ***************************************************************************** * header.php * ***************************************************************************** * * The header for our theme. * * This is the template that displays all of the <head> section and everything up until <div id="content"> * * @package bwg * @since bwg 0.1 * @version bwg 0.1 * * @creation: 2017 * @updated: 13.11.2018 (Pezold) * * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials * * @author Markus Pezold <markus.pezold@black-forever.de> * * ***************************************************************************** */ ?> <!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(); ?> <!-- google analytics stuff --> <script> // Set to the same value as the web property used on the site var gaProperty = 'UA-41237847-4'; // Disable tracking if the opt-out cookie exists. var disableStr = 'ga-disable-' + gaProperty; if (document.cookie.indexOf(disableStr + '=true') > -1) { window[disableStr] = true; } // Opt-out function function gaOptout() { document.cookie = disableStr + '=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; path=/'; window[disableStr] = true; } </script> </head> <body <?php body_class(); ?>> <div id="page" class="site"> <a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'bwg' ); ?></a> <header id="masthead" class="site-header" role="banner"> <?php get_template_part( 'template-parts/header/custom', 'header' ); ?> <?php get_template_part( 'template-parts/header/site', 'branding' ); ?> <?php //get_template_part( 'template-parts/header/menu', 'pdf' ); ?> <?php //get_template_part( 'template-parts/navigation/navigation', 'top' ); ?> </header> <?php if ( is_front_page() ) { if ( bwg_has_featured_posts() ) : get_template_part( 'template-parts/post/content', 'featured' ); elseif ( 'page' === get_post_type() && has_post_thumbnail() ) : get_template_part( 'template-parts/page/content', 'hero' ); endif; } ?> <div id="content" class="site-content">