[ 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          <a class="screen-reader-text skip-link" href="#content">
  26              <?php
  27              /* translators: Hidden accessibility text. */
  28              _e( 'Skip to content', 'twentythirteen' );
  29              ?>
  30          </a>
  31          <header id="masthead" class="site-header">
  32              <?php
  33              $is_front         = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) );
  34              $site_name        = get_bloginfo( 'name', 'display' );
  35              $site_description = get_bloginfo( 'description', 'display' );
  36  
  37              ?>
  38              <a class="home-link" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" <?php echo $is_front ? 'aria-current="page"' : ''; ?>>
  39                  <?php if ( $site_name ) : ?>
  40                      <h1 class="site-title"><?php echo $site_name; ?></h1>
  41                  <?php endif; ?>
  42                  <?php if ( $site_description ) : ?>
  43                      <h2 class="site-description"><?php echo $site_description; ?></h2>
  44                  <?php endif; ?>
  45              </a>
  46  
  47              <div id="navbar" class="navbar">
  48                  <nav id="site-navigation" class="navigation main-navigation">
  49                      <button class="menu-toggle"><?php _e( 'Menu', 'twentythirteen' ); ?></button>
  50                      <?php
  51                      wp_nav_menu(
  52                          array(
  53                              'theme_location' => 'primary',
  54                              'menu_class'     => 'nav-menu',
  55                              'menu_id'        => 'primary-menu',
  56                          )
  57                      );
  58                      ?>
  59                      <?php get_search_form(); ?>
  60                  </nav><!-- #site-navigation -->
  61              </div><!-- #navbar -->
  62          </header><!-- #masthead -->
  63  
  64          <div id="main" class="site-main">


Generated : Sat Jul 26 08:20:01 2025 Cross-referenced by PHPXref