diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-01-07 13:06:14 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-01-07 13:06:14 +0100 |
| commit | 7086111ad4dd997e12a3220e1ee60c9b9bcf0bb8 (patch) | |
| tree | f7453d7dd5cbaaab246e23810b02d3edf1e451be /srcs/wordpress/wp-content/themes/twentynineteen/header.php | |
| parent | c59bdcf77c50cbe89b4a93782cdd6d9e7532080e (diff) | |
| download | ft_server-7086111ad4dd997e12a3220e1ee60c9b9bcf0bb8.tar.gz ft_server-7086111ad4dd997e12a3220e1ee60c9b9bcf0bb8.tar.bz2 ft_server-7086111ad4dd997e12a3220e1ee60c9b9bcf0bb8.zip | |
Added wordpress
Diffstat (limited to 'srcs/wordpress/wp-content/themes/twentynineteen/header.php')
| -rw-r--r-- | srcs/wordpress/wp-content/themes/twentynineteen/header.php | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/srcs/wordpress/wp-content/themes/twentynineteen/header.php b/srcs/wordpress/wp-content/themes/twentynineteen/header.php new file mode 100644 index 0000000..b960fd4 --- /dev/null +++ b/srcs/wordpress/wp-content/themes/twentynineteen/header.php @@ -0,0 +1,53 @@ +<?php +/** + * The header for our theme + * + * This is the template that displays all of the <head> section and everything up until <div id="content"> + * + * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials + * + * @package WordPress + * @subpackage Twenty_Nineteen + * @since 1.0.0 + */ +?><!doctype html> +<html <?php language_attributes(); ?>> +<head> + <meta charset="<?php bloginfo( 'charset' ); ?>" /> + <meta name="viewport" content="width=device-width, initial-scale=1" /> + <link rel="profile" href="https://gmpg.org/xfn/11" /> + <?php wp_head(); ?> +</head> + +<body <?php body_class(); ?>> +<?php wp_body_open(); ?> +<div id="page" class="site"> + <a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'twentynineteen' ); ?></a> + + <header id="masthead" class="<?php echo is_singular() && twentynineteen_can_show_post_thumbnail() ? 'site-header featured-image' : 'site-header'; ?>"> + + <div class="site-branding-container"> + <?php get_template_part( 'template-parts/header/site', 'branding' ); ?> + </div><!-- .site-branding-container --> + + <?php if ( is_singular() && twentynineteen_can_show_post_thumbnail() ) : ?> + <div class="site-featured-image"> + <?php + twentynineteen_post_thumbnail(); + the_post(); + $discussion = ! is_page() && twentynineteen_can_show_post_thumbnail() ? twentynineteen_get_discussion_data() : null; + + $classes = 'entry-header'; + if ( ! empty( $discussion ) && absint( $discussion->responses ) > 0 ) { + $classes = 'entry-header has-discussion'; + } + ?> + <div class="<?php echo $classes; ?>"> + <?php get_template_part( 'template-parts/header/entry', 'header' ); ?> + </div><!-- .entry-header --> + <?php rewind_posts(); ?> + </div> + <?php endif; ?> + </header><!-- #masthead --> + + <div id="content" class="site-content"> |
