themes-wordpress/textbook/header.php
2018-02-27 14:25:34 +11:00

45 lines
No EOL
1.4 KiB
PHP

<?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 TextBook
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js">
<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">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
</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', 'textbook' ); ?></a>
<header id="masthead" class="site-header" role="banner">
<?php get_template_part( 'components/header/site', 'branding' ); ?>
<?php get_template_part( 'components/navigation/navigation', 'top' ); ?>
</header><!-- .site-header -->
<?php // Only show featured content or testimonials on home page
if ( is_home() ) {
// Add the Featured Content template
get_template_part( 'components/features/featured-content/display', 'featured' );
// Add the Testinomials template
get_template_part( 'components/features/testimonials/display', 'testimonials' );
} ?>
<div id="content" class="site-content">