Advertisement
Zeaks

signecane header.php

May 1st, 2015
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.47 KB | None | 0 0
  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.  
  24. </head>
  25.  
  26. <body <?php body_class(); ?>>
  27. <div id="page" class="hfeed site">
  28.     <a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'twentyfifteen' ); ?></a>
  29.  
  30.     <div id="sidebar" class="sidebar">
  31.         <header id="masthead" class="site-header" role="banner">
  32.             <div class="site-branding">
  33.  
  34.            
  35.  
  36.                 <!-- Begin custom header titles -->
  37.                 <?php
  38.                     // Default title for front page and single pages
  39.                     if ( is_front_page() && is_home() || is_page() ) : ?>
  40.                         <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
  41.                        
  42.                     <?php
  43.                     // Default description
  44.                     $description = get_bloginfo( 'description', 'display' );
  45.                     if ( $description || is_customize_preview() ) : ?>
  46.                         <p class="site-description"><?php echo $description; ?></p>
  47.                     <?php endif; ?>
  48.                    
  49.                     <?php else : ?>
  50.                    
  51.                     <!-- Blog page, category and archive title -->             
  52.                     <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/blog' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">A Common Year</a></h1>
  53.  
  54.                     <?php
  55.                     // Single blog post page description
  56.                     $description = get_bloginfo( 'description', 'display' );
  57.                     if ( $description || is_customize_preview() ) : ?>
  58.                         <p class="site-description">Daily blog of 365 science stories</p>
  59.                     <?php endif; endif;
  60.                 ?>
  61.                 <!-- End custom header titles -->
  62.  
  63.  
  64.                 <button class="secondary-toggle"><?php _e( 'Menu and widgets', 'twentyfifteen' ); ?></button>
  65.             </div><!-- .site-branding -->
  66.         </header><!-- .site-header -->
  67.  
  68.         <?php get_sidebar(); ?>
  69.     </div><!-- .sidebar -->
  70.  
  71.     <div id="content" class="site-content">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement