[ 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_Nineteen 11 * @since Twenty Nineteen 1.0 12 */ 13 14 ?><!doctype html> 15 <html <?php language_attributes(); ?>> 16 <head> 17 <meta charset="<?php bloginfo( 'charset' ); ?>" /> 18 <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 19 <link rel="profile" href="https://gmpg.org/xfn/11" /> 20 <?php wp_head(); ?> 21 </head> 22 23 <body <?php body_class(); ?>> 24 <?php wp_body_open(); ?> 25 <div id="page" class="site"> 26 <a class="skip-link screen-reader-text" href="#content"> 27 <?php 28 /* translators: Hidden accessibility text. */ 29 _e( 'Skip to content', 'twentynineteen' ); 30 ?> 31 </a> 32 33 <header id="masthead" class="<?php echo is_singular() && twentynineteen_can_show_post_thumbnail() ? 'site-header featured-image' : 'site-header'; ?>"> 34 35 <div class="site-branding-container"> 36 <?php get_template_part( 'template-parts/header/site', 'branding' ); ?> 37 </div><!-- .site-branding-container --> 38 39 <?php if ( is_singular() && twentynineteen_can_show_post_thumbnail() ) : ?> 40 <div class="site-featured-image"> 41 <?php 42 twentynineteen_post_thumbnail(); 43 the_post(); 44 $discussion = ! is_page() && twentynineteen_can_show_post_thumbnail() ? twentynineteen_get_discussion_data() : null; 45 46 $classes = 'entry-header'; 47 if ( ! empty( $discussion ) && absint( $discussion->responses ) > 0 ) { 48 $classes = 'entry-header has-discussion'; 49 } 50 ?> 51 <div class="<?php echo $classes; ?>"> 52 <?php get_template_part( 'template-parts/header/entry', 'header' ); ?> 53 </div><!-- .entry-header --> 54 <?php rewind_posts(); ?> 55 </div> 56 <?php endif; ?> 57 </header><!-- #masthead --> 58 59 <div id="content" class="site-content">
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated : Wed Dec 25 08:20:01 2024 | Cross-referenced by PHPXref |