[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

   1  <?php
   2  /**
   3   * The Header for our theme
   4   *
   5   * Displays all of the <head> section and everything up till <div id="main">
   6   *
   7   * @package WordPress
   8   * @subpackage Twenty_Fourteen
   9   * @since Twenty Fourteen 1.0
  10   */
  11  ?><!DOCTYPE html>
  12  <!--[if IE 7]>
  13  <html class="ie ie7" <?php language_attributes(); ?>>
  14  <![endif]-->
  15  <!--[if IE 8]>
  16  <html class="ie ie8" <?php language_attributes(); ?>>
  17  <![endif]-->
  18  <!--[if !(IE 7) & !(IE 8)]><!-->
  19  <html <?php language_attributes(); ?>>
  20  <!--<![endif]-->
  21  <head>
  22      <meta charset="<?php bloginfo( 'charset' ); ?>">
  23      <meta name="viewport" content="width=device-width, initial-scale=1.0">
  24      <title><?php wp_title( '|', true, 'right' ); ?></title>
  25      <link rel="profile" href="https://gmpg.org/xfn/11">
  26      <link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
  27      <!--[if lt IE 9]>
  28      <script src="<?php echo esc_url( get_template_directory_uri() ); ?>/js/html5.js?ver=3.7.0"></script>
  29      <![endif]-->
  30      <?php wp_head(); ?>
  31  </head>
  32  
  33  <body <?php body_class(); ?>>
  34  <?php wp_body_open(); ?>
  35  <div id="page" class="hfeed site">
  36      <?php if ( get_header_image() ) : ?>
  37      <div id="site-header">
  38          <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
  39              <?php twentyfourteen_header_image(); ?>
  40          </a>
  41      </div>
  42      <?php endif; ?>
  43  
  44      <header id="masthead" class="site-header">
  45          <div class="header-main">
  46              <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
  47  
  48              <div class="search-toggle">
  49                  <a href="#search-container" class="screen-reader-text" aria-expanded="false" aria-controls="search-container">
  50                      <?php
  51                      /* translators: Hidden accessibility text. */
  52                      _e( 'Search', 'twentyfourteen' );
  53                      ?>
  54                  </a>
  55              </div>
  56  
  57              <nav id="primary-navigation" class="site-navigation primary-navigation">
  58                  <button class="menu-toggle"><?php _e( 'Primary Menu', 'twentyfourteen' ); ?></button>
  59                  <a class="screen-reader-text skip-link" href="#content">
  60                      <?php
  61                      /* translators: Hidden accessibility text. */
  62                      _e( 'Skip to content', 'twentyfourteen' );
  63                      ?>
  64                  </a>
  65                  <?php
  66                  wp_nav_menu(
  67                      array(
  68                          'theme_location' => 'primary',
  69                          'menu_class'     => 'nav-menu',
  70                          'menu_id'        => 'primary-menu',
  71                      )
  72                  );
  73                  ?>
  74              </nav>
  75          </div>
  76  
  77          <div id="search-container" class="search-box-wrapper hide">
  78              <div class="search-box">
  79                  <?php get_search_form(); ?>
  80              </div>
  81          </div>
  82      </header><!-- #masthead -->
  83  
  84      <div id="main" class="site-main">


Generated : Thu Nov 21 08:20:01 2024 Cross-referenced by PHPXref