-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathheader.php
73 lines (69 loc) · 1.99 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
<?php
/**
* The header for our theme.
*
* Displays all of the <head> section and everything up till <div id="content">
*
* @package Simple Grey
*/
?>
<!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="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php
if ( function_exists( 'wp_body_open' ) ) {
wp_body_open();
}
?>
<nav role="navigation">
<a href="#content" class="screen-reader-text" aria-role="navigation"><?php echo esc_html__( 'Skip to Content', 'simple-grey' ); ?></a>
</nav>
<header id="masthead" class="site-header" role="banner">
<div class="wrap">
<?php
$brand_class = '';
if ( function_exists( 'has_custom_logo' ) ) {
if ( has_custom_logo() ) :
$brand_class .= ' with-logo';
endif;
}
if ( get_theme_mod( 'simple_grey_header_drop_shadow' ) ) :
$brand_class .= ' drop-shadow';
endif;
?>
<div class="site-branding row<?php echo esc_attr( $brand_class ); ?>">
<?php
if ( function_exists( 'has_custom_logo' ) ) {
the_custom_logo();
}
?>
<div class="site-info">
<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>
<?php if ( has_nav_menu( 'primary' ) ) : ?>
<div id="menu-toggle" class="menu-toggle"><button aria-controls="navigation" aria-expanded="false"><i class="fa fa-bars" aria-hidden="true"></i><?php echo esc_html__( 'Menu', 'simple-grey' ); ?></button></div>
<?php endif; ?>
</div>
<!-- .site-branding -->
</div>
</header><!-- #masthead -->
<?php if ( has_nav_menu( 'primary' ) ) : ?>
<div id="navigation" role="navigation">
<div class="wrap">
<nav class="row">
<?php simple_grey_main_menu(); ?>
</nav>
</div>
</div>
<?php endif; ?>
<div id="content">
<div class="wrap">
<div class="row">