[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
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 <a class="screen-reader-text skip-link" href="#content"> 36 <?php 37 /* translators: Hidden accessibility text. */ 38 _e( 'Skip to content', 'twentyfourteen' ); 39 ?> 40 </a> 41 <div id="page" class="hfeed site"> 42 <?php $is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) ); ?> 43 <?php if ( get_header_image() ) : ?> 44 <div id="site-header"> 45 <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" <?php echo $is_front ? 'aria-current="page"' : ''; ?>> 46 <?php twentyfourteen_header_image(); ?> 47 </a> 48 </div> 49 <?php endif; ?> 50 51 <header id="masthead" class="site-header"> 52 <div class="header-main"> 53 <?php 54 $site_name = get_bloginfo( 'name', 'display' ); 55 if ( $site_name ) : 56 ?> 57 <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" <?php echo $is_front ? 'aria-current="page"' : ''; ?>><?php echo $site_name; ?></a></h1> 58 <?php endif; ?> 59 60 <div class="search-toggle"> 61 <a href="#search-container" class="screen-reader-text" aria-expanded="false" aria-controls="search-container"> 62 <?php 63 /* translators: Hidden accessibility text. */ 64 _e( 'Search', 'twentyfourteen' ); 65 ?> 66 </a> 67 </div> 68 69 <nav id="primary-navigation" class="site-navigation primary-navigation"> 70 <button class="menu-toggle"><?php _e( 'Primary Menu', 'twentyfourteen' ); ?></button> 71 <?php 72 wp_nav_menu( 73 array( 74 'theme_location' => 'primary', 75 'menu_class' => 'nav-menu', 76 'menu_id' => 'primary-menu', 77 ) 78 ); 79 ?> 80 </nav> 81 </div> 82 83 <div id="search-container" class="search-box-wrapper hide"> 84 <div class="search-box"> 85 <?php get_search_form(); ?> 86 </div> 87 </div> 88 </header><!-- #masthead --> 89 90 <div id="main" class="site-main">
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated : Wed Jul 30 08:20:01 2025 | Cross-referenced by PHPXref |