2019-08-03 10:54:42 -04:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* The Header for our theme.
|
|
|
|
*
|
|
|
|
* Displays all of the <head> section and everything up till <div id="main">
|
|
|
|
*
|
|
|
|
* @package Independent Publisher
|
|
|
|
* @since Independent Publisher 1.0
|
|
|
|
*/
|
|
|
|
?><!DOCTYPE html>
|
|
|
|
<html <?php independent_publisher_html_tag_schema(); ?> <?php language_attributes(); ?>>
|
|
|
|
<head>
|
|
|
|
<meta charset="<?php bloginfo( 'charset' ); ?>" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
|
|
|
|
<link rel="profile" href="http://gmpg.org/xfn/11" />
|
|
|
|
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
|
|
|
|
<!--[if lt IE 9]>
|
|
|
|
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
|
|
|
|
<![endif]-->
|
|
|
|
<?php wp_head(); ?>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body <?php body_class(); ?> itemscope="itemscope" itemtype="http://schema.org/WebPage">
|
|
|
|
|
2019-08-04 04:30:49 -04:00
|
|
|
<?php // Show topbar everywhere ?>
|
|
|
|
<nav role="navigation" class="topbar">
|
2019-08-03 11:06:06 -04:00
|
|
|
<a class="screen-reader-text skip-link" href="#content" title="<?php esc_attr_e( 'Skip to content', 'independent-publisher' ); ?>"><?php _e( 'Skip to content', 'independent-publisher' ); ?></a>
|
2019-08-04 05:46:31 -04:00
|
|
|
<img src="<?php echo( get_header_image() ); ?>" alt="<?php echo( get_bloginfo( 'title' ) ); ?>" />
|
2019-08-03 11:06:06 -04:00
|
|
|
|
2019-08-04 04:58:54 -04:00
|
|
|
<?php // Show topbar menu if set, else primary menu ?>
|
|
|
|
<?php if ( has_nav_menu( 'topbar' ) ) : ?>
|
|
|
|
<?php wp_nav_menu( array( 'theme_location' => 'topbar', 'depth' => 1 ) ); ?>
|
2019-08-03 11:06:06 -04:00
|
|
|
<?php else : ?>
|
|
|
|
<?php wp_nav_menu( array( 'theme_location' => 'primary', 'depth' => 1 ) ); ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
</nav><!-- .site-navigation .topbar -->
|
|
|
|
|
2019-08-03 10:54:42 -04:00
|
|
|
<?php // Displays full-width featured image on Single Posts if applicable ?>
|
|
|
|
<?php independent_publisher_full_width_featured_image(); ?>
|
|
|
|
|
|
|
|
<div id="page" class="site">
|
|
|
|
<header id="masthead" class="site-header" role="banner" itemscope itemtype="http://schema.org/WPHeader">
|
|
|
|
|
|
|
|
<div class="site-header-info">
|
|
|
|
<?php if ( is_single() ) : ?>
|
|
|
|
<?php // Show only post author info on Single Pages ?>
|
|
|
|
<?php independent_publisher_posted_author_card(); ?>
|
|
|
|
<?php else : ?>
|
|
|
|
<?php // Show Header Image, Site Title, and Site Tagline on everything except Single Pages ?>
|
|
|
|
<?php independent_publisher_site_info(); ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php // Show navigation menu on everything except Single pages, unless Show Primary Nav Menu on Single Pages is enabled ?>
|
|
|
|
<?php if ( !is_single() || independent_publisher_show_nav_on_single() ) : ?>
|
|
|
|
<nav role="navigation" class="site-navigation main-navigation">
|
|
|
|
<a class="screen-reader-text skip-link" href="#content" title="<?php esc_attr_e( 'Skip to content', 'independent-publisher' ); ?>"><?php _e( 'Skip to content', 'independent-publisher' ); ?></a>
|
|
|
|
|
|
|
|
<?php // If this is a Single Post and we have a menu assigned to the "Single Posts Menu", show that ?>
|
|
|
|
<?php if ( is_single() && has_nav_menu( 'single' ) ) : ?>
|
|
|
|
<?php wp_nav_menu( array( 'theme_location' => 'single', 'depth' => 1 ) ); ?>
|
|
|
|
<?php else : ?>
|
|
|
|
<?php wp_nav_menu( array( 'theme_location' => 'primary', 'depth' => 1 ) ); ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
</nav><!-- .site-navigation .main-navigation -->
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<?php do_action( 'independent_publisher_header_after' ); ?>
|
|
|
|
</header>
|
|
|
|
<!-- #masthead .site-header -->
|
|
|
|
|
|
|
|
<div id="main" class="site-main">
|