~canonical-sysadmins/wordpress/4.2.1

« back to all changes in this revision

Viewing changes to wp-content/themes/twentyfifteen/header.php

  • Committer: Nick Moffitt
  • Date: 2015-01-15 11:05:37 UTC
  • mfrom: (1.1.1 wp4-upstream)
  • Revision ID: nick.moffitt@canonical.com-20150115110537-8bp1y42eyg0jsa7c
Tags: 4.1
MergeĀ upstreamĀ versionĀ 4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/**
 
3
 * The template for displaying the header
 
4
 *
 
5
 * Displays all of the head element and everything up until the "site-content" div.
 
6
 *
 
7
 * @package WordPress
 
8
 * @subpackage Twenty_Fifteen
 
9
 * @since Twenty Fifteen 1.0
 
10
 */
 
11
?><!DOCTYPE html>
 
12
<html <?php language_attributes(); ?> class="no-js">
 
13
<head>
 
14
        <meta charset="<?php bloginfo( 'charset' ); ?>">
 
15
        <meta name="viewport" content="width=device-width">
 
16
        <link rel="profile" href="http://gmpg.org/xfn/11">
 
17
        <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
 
18
        <!--[if lt IE 9]>
 
19
        <script src="<?php echo esc_url( get_template_directory_uri() ); ?>/js/html5.js"></script>
 
20
        <![endif]-->
 
21
        <script>(function(){document.documentElement.className='js'})();</script>
 
22
        <?php wp_head(); ?>
 
23
</head>
 
24
 
 
25
<body <?php body_class(); ?>>
 
26
<div id="page" class="hfeed site">
 
27
        <a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'twentyfifteen' ); ?></a>
 
28
 
 
29
        <div id="sidebar" class="sidebar">
 
30
                <header id="masthead" class="site-header" role="banner">
 
31
                        <div class="site-branding">
 
32
                                <?php
 
33
                                        if ( is_front_page() && is_home() ) : ?>
 
34
                                                <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
 
35
                                        <?php else : ?>
 
36
                                                <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
 
37
                                        <?php endif;
 
38
 
 
39
                                        $description = get_bloginfo( 'description', 'display' );
 
40
                                        if ( $description || is_customize_preview() ) : ?>
 
41
                                                <p class="site-description"><?php echo $description; ?></p>
 
42
                                        <?php endif;
 
43
                                ?>
 
44
                                <button class="secondary-toggle"><?php _e( 'Menu and widgets', 'twentyfifteen' ); ?></button>
 
45
                        </div><!-- .site-branding -->
 
46
                </header><!-- .site-header -->
 
47
 
 
48
                <?php get_sidebar(); ?>
 
49
        </div><!-- .sidebar -->
 
50
 
 
51
        <div id="content" class="site-content">