[ 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 * This is the template that displays all of the <head> section and everything up until <div id="content"> 6 * 7 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials 8 * 9 * @package WordPress 10 * @subpackage Twenty_Seventeen 11 * @since Twenty Seventeen 1.0 12 * @version 1.0 13 */ 14 15 ?><!DOCTYPE html> 16 <html <?php language_attributes(); ?> class="no-js no-svg"> 17 <head> 18 <meta charset="<?php bloginfo( 'charset' ); ?>"> 19 <meta name="viewport" content="width=device-width, initial-scale=1"> 20 <link rel="profile" href="https://gmpg.org/xfn/11"> 21 22 <?php wp_head(); ?> 23 </head> 24 25 <body <?php body_class(); ?>> 26 <?php wp_body_open(); ?> 27 <div id="page" class="site"> 28 <a class="skip-link screen-reader-text" href="#content"> 29 <?php 30 /* translators: Hidden accessibility text. */ 31 _e( 'Skip to content', 'twentyseventeen' ); 32 ?> 33 </a> 34 35 <header id="masthead" class="site-header"> 36 37 <?php get_template_part( 'template-parts/header/header', 'image' ); ?> 38 39 <?php if ( has_nav_menu( 'top' ) ) : ?> 40 <div class="navigation-top"> 41 <div class="wrap"> 42 <?php get_template_part( 'template-parts/navigation/navigation', 'top' ); ?> 43 </div><!-- .wrap --> 44 </div><!-- .navigation-top --> 45 <?php endif; ?> 46 47 </header><!-- #masthead --> 48 49 <?php 50 51 /* 52 * If a regular post or page, and not the front page, show the featured image. 53 * Using get_queried_object_id() here since the $post global may not be set before a call to the_post(). 54 */ 55 if ( ( is_single() || ( is_page() && ! twentyseventeen_is_frontpage() ) ) && has_post_thumbnail( get_queried_object_id() ) ) : 56 echo '<div class="single-featured-image-header">'; 57 echo get_the_post_thumbnail( get_queried_object_id(), 'twentyseventeen-featured-image' ); 58 echo '</div><!-- .single-featured-image-header -->'; 59 endif; 60 ?> 61 62 <div class="site-content-contain"> 63 <div id="content" class="site-content">
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated : Wed Apr 17 08:20:01 2024 | Cross-referenced by PHPXref |