This repository has been archived by the owner on Dec 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathheader.php
43 lines (40 loc) · 1.58 KB
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* The header for our theme.
*
* This template 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 Base
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<?php // force Internet Explorer to use the latest rendering engine available ?>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php endif; ?>
<?php wp_head(); ?>
</head>
<body class="<?php if(is_user_logged_in()){ echo 'logged-in'; if(is_admin_bar_showing()){ echo ' admin-bar'; } } ?>">
<header class="site-header" role="banner">
<div class="container">
<div class="site-branding">
<p class="site-title"><router-link to="/" rel="home"><?php bloginfo( 'name' ); ?></router-link></p>
<?php if ( $description = get_bloginfo( 'description', 'display' ) ) : ?>
<p class="site-description"><?php echo $description; ?></p>
<?php endif; ?>
</div>
<nav id="site-navigation" class="site-navigation" role="navigation">
<?php wp_nav_menu( array(
'theme_location' => 'primary',
'container' => false // removes the div container, keeping nav separate for the 'role' tag
) ); ?>
</nav>
</div>
</header>