-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathheader.php
More file actions
76 lines (68 loc) · 2.19 KB
/
Copy pathheader.php
File metadata and controls
76 lines (68 loc) · 2.19 KB
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
75
76
<?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();
}
?>
<a href="#content" class="screen-reader-text skip-link"><?php echo esc_html__( 'Skip to main content', 'simple-grey' ); ?></a>
<header id="masthead" class="site-header" role="banner" aria-label="<?php echo esc_attr__( 'Header', 'simple-grey' ); ?>">
<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 <?php echo esc_attr( $brand_class ); ?>">
<?php
if ( function_exists( 'has_custom_logo' ) ) {
the_custom_logo();
}
$site_title = get_bloginfo( 'name' );
$site_description = get_bloginfo( 'description' );
if ( ! empty( $site_title ) || ! empty( $site_description ) ) :
?>
<div class="site-info">
<?php if ( ! empty( $site_title ) ) : ?>
<div class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></div>
<?php endif; ?>
<?php if ( ! empty( $site_description ) ) : ?>
<p class="site-description"><?php bloginfo( 'description' ); ?></p>
<?php endif; ?>
</div>
<?php
endif;
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 get_template_part( 'partials/nav', 'primary' ); ?>
<div id="content" class="content-outer" tabindex="-1">
<div class="content-inner">