[ 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 $is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) ); ?>
  33              <a class="home-link" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" <?php echo $is_front ? 'aria-current="page"' : ''; ?>>
  34                  <h1 class="site-title"><?php bloginfo( 'name' ); ?></h1>
  35                  <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
  36              </a>
  37  
  38              <div id="navbar" class="navbar">
  39                  <nav id="site-navigation" class="navigation main-navigation">
  40                      <button class="menu-toggle"><?php _e( 'Menu', 'twentythirteen' ); ?></button>
  41                      <?php
  42                      wp_nav_menu(
  43                          array(
  44                              'theme_location' => 'primary',
  45                              'menu_class'     => 'nav-menu',
  46                              'menu_id'        => 'primary-menu',
  47                          )
  48                      );
  49                      ?>
  50                      <?php get_search_form(); ?>
  51                  </nav><!-- #site-navigation -->
  52              </div><!-- #navbar -->
  53          </header><!-- #masthead -->
  54  
  55          <div id="main" class="site-main">


Generated : Sun Apr 13 08:20:01 2025 Cross-referenced by PHPXref