[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

   1  <?php
   2  /**
   3   * The Header template 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_Thirteen
   9   * @since Twenty Thirteen 1.0
  10   */
  11  ?><!DOCTYPE html>
  12  <html <?php language_attributes(); ?>>
  13  <head>
  14      <meta charset="<?php bloginfo( 'charset' ); ?>">
  15      <meta name="viewport" content="width=device-width, initial-scale=1.0">
  16      <title><?php wp_title( '|', true, 'right' ); ?></title>
  17      <link rel="profile" href="https://gmpg.org/xfn/11">
  18      <link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
  19      <?php wp_head(); ?>
  20  </head>
  21  
  22  <body <?php body_class(); ?>>
  23      <?php wp_body_open(); ?>
  24      <div id="page" class="hfeed site">
  25          <header id="masthead" class="site-header">
  26              <a class="home-link" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
  27                  <h1 class="site-title"><?php bloginfo( 'name' ); ?></h1>
  28                  <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
  29              </a>
  30  
  31              <div id="navbar" class="navbar">
  32                  <nav id="site-navigation" class="navigation main-navigation">
  33                      <button class="menu-toggle"><?php _e( 'Menu', 'twentythirteen' ); ?></button>
  34                      <a class="screen-reader-text skip-link" href="#content">
  35                          <?php
  36                          /* translators: Hidden accessibility text. */
  37                          _e( 'Skip to content', 'twentythirteen' );
  38                          ?>
  39                      </a>
  40                      <?php
  41                      wp_nav_menu(
  42                          array(
  43                              'theme_location' => 'primary',
  44                              'menu_class'     => 'nav-menu',
  45                              'menu_id'        => 'primary-menu',
  46                          )
  47                      );
  48                      ?>
  49                      <?php get_search_form(); ?>
  50                  </nav><!-- #site-navigation -->
  51              </div><!-- #navbar -->
  52          </header><!-- #masthead -->
  53  
  54          <div id="main" class="site-main">


Generated : Sat Nov 23 08:20:01 2024 Cross-referenced by PHPXref