[ Index ]

PHP Cross Reference of WordPress

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">
  16      <link rel="profile" href="https://gmpg.org/xfn/11">
  17      <link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
  18      <!--[if lt IE 9]>
  19      <script src="<?php echo esc_url( get_template_directory_uri() ); ?>/js/html5.js?ver=3.7.0"></script>
  20      <![endif]-->
  21      <?php wp_head(); ?>
  22  </head>
  23  
  24  <body <?php body_class(); ?>>
  25  <?php wp_body_open(); ?>
  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">
  31              <div class="site-branding">
  32                  <?php
  33                      twentyfifteen_the_custom_logo();
  34  
  35                  if ( is_front_page() && is_home() ) :
  36                      ?>
  37                          <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
  38                      <?php else : ?>
  39                          <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
  40                          <?php
  41                      endif;
  42  
  43                      $description = get_bloginfo( 'description', 'display' );
  44                      if ( $description || is_customize_preview() ) :
  45                          ?>
  46                          <p class="site-description"><?php echo $description; ?></p>
  47                          <?php
  48                      endif;
  49                      ?>
  50                  <button class="secondary-toggle"><?php _e( 'Menu and widgets', 'twentyfifteen' ); ?></button>
  51              </div><!-- .site-branding -->
  52          </header><!-- .site-header -->
  53  
  54          <?php get_sidebar(); ?>
  55      </div><!-- .sidebar -->
  56  
  57      <div id="content" class="site-content">


Generated: Wed Dec 25 01:00:02 2024 Cross-referenced by PHPXref 0.7.1