-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
53 lines (45 loc) · 1.92 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
44
45
46
47
48
49
50
51
52
53
<?php
/**
* The Header for our theme
*
* Displays all of the <head> section and everything up till <main id="main">
*
* @package WordPress
* @subpackage Strip
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="<?php if ( is_single() ) {
single_post_title( '', true );
} else {
bloginfo( 'name' );
echo ' - ';
bloginfo( 'description' );
}
?>" />
<link rel="profile" href="http://gmpg.org/xfn/11">
<link type="text/plain" rel="author" href="https://silent-comics.com/humans.txt" />
<meta name="referrer" content="no-referrer">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="page" class="site">
<header id="branding" class="site-header" role="banner">
<div class="site-branding">
<?php get_template_part( '/assets/inline-logo.svg' ); // remove or replace by your own custom svg logo. ?>
<?php get_template_part( 'template-parts/header/header', 'image' ); ?>
<?php strip_the_custom_logo(); ?>
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
</div><!-- .site-branding -->
<?php if ( has_nav_menu( 'primary' ) ) : ?>
<nav id="site-navigation" class="main-navigation clear" role="navigation">
<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php esc_attr_e( 'discover', 'strip' ); ?></button>
<div><a class="skip-link screen-reader-text" href="#content"><?php esc_attr_e( 'Skip to content', 'strip' ); ?></a></div>
<?php wp_nav_menu( array( 'theme_location' => 'primary', 'container_class' => 'wrap' ) ); ?>
</nav><!-- #site-navigation -->
<?php endif; ?>
</header><!-- #masthead -->