[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentyfifteen/ -> header.php (source)

   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, initial-scale=1.0">
  16      <link rel="profile" href="https://gmpg.org/xfn/11">
  17      <link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
  18      <?php wp_head(); ?>
  19  </head>
  20  
  21  <body <?php body_class(); ?>>
  22  <?php wp_body_open(); ?>
  23  <div id="page" class="hfeed site">
  24      <a class="skip-link screen-reader-text" href="#content">
  25          <?php
  26          /* translators: Hidden accessibility text. */
  27          _e( 'Skip to content', 'twentyfifteen' );
  28          ?>
  29      </a>
  30  
  31      <div id="sidebar" class="sidebar">
  32          <header id="masthead" class="site-header">
  33              <div class="site-branding">
  34                  <?php
  35                      twentyfifteen_the_custom_logo();
  36  
  37                  if ( is_front_page() && is_home() ) :
  38                      ?>
  39                          <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
  40                      <?php else : ?>
  41                          <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
  42                          <?php
  43                      endif;
  44  
  45                      $description = get_bloginfo( 'description', 'display' );
  46                      if ( $description || is_customize_preview() ) :
  47                          ?>
  48                          <p class="site-description"><?php echo $description; ?></p>
  49                          <?php
  50                      endif;
  51                      ?>
  52                  <button class="secondary-toggle"><?php _e( 'Menu and widgets', 'twentyfifteen' ); ?></button>
  53              </div><!-- .site-branding -->
  54          </header><!-- .site-header -->
  55  
  56          <?php get_sidebar(); ?>
  57      </div><!-- .sidebar -->
  58  
  59      <div id="content" class="site-content">


Generated : Sat Dec 21 08:20:01 2024 Cross-referenced by PHPXref