-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathheader.php
74 lines (56 loc) · 2.05 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php
/**
* Header Template
*
* @see http://codex.wordpress.org/Template_Hierarchy
*
* @package Scaffolding
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js<?php echo ( is_user_logged_in() ) ? ' has-admin-bar' : ''; ?>">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
</head>
<body <?php body_class( 'sticky-footer' ); ?>>
<?php
if ( function_exists( 'wp_body_open' ) ) {
wp_body_open();
} else {
do_action( 'wp_body_open' ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound
}
?>
<div id="container">
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'scaffolding' ); ?></a>
<header id="masthead" class="header" role="banner">
<div id="inner-header" class="container">
<div class="row align-items-center justify-content-between">
<div id="logo" class="col-auto">
<?php if ( has_custom_logo() ) : ?>
<?php the_custom_logo(); ?>
<?php else : ?>
<a class="logo-txt" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" title="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>" itemprop="url">
<span class="h1"><?php bloginfo( 'name' ); ?></span>
</a>
<?php endif; ?>
</div>
<div id="mobile-menu-toggle" class="col-auto">
<button id="mobile-menu-button" type="button"><?php esc_html_e( 'Menu', 'scaffolding' ); ?></button>
</div>
</div>
</div>
</header>
<nav id="main-navigation" class="clearfix" role="navigation" aria-label="<?php esc_attr_e( 'Primary Navigation', 'scaffolding' ); ?>">
<?php scaffolding_main_nav(); ?>
</nav>
<?php // Interior Header Image. ?>
<div class="banner-wrap">
<div id="banner">
<div class="spacer"></div>
</div>
</div>
<div id="content">
<?php do_action( 'scaffolding_after_content_begin' ); ?>