-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
executable file
·112 lines (87 loc) · 3.06 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?php
/**
* The header for our theme.
*
* This is the template that 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 UWC_Website
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js">
<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
if ( is_singular() && ! get_theme_mod( 'comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
wp_head();
?>
<meta name="description" content="
<?php
if ( is_single() ) {
single_post_title( '', true );
} else {
bloginfo( 'name' );
echo ' - ';
bloginfo( 'description' );
}
?>
" />
</head>
<body id="js-body" <?php body_class(); ?>>
<div id="site">
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'uwc-website' ); ?></a>
<div class="turbolinks-bar"></div>
<header id="js-navigation" class="site-navigation -loaded" role="banner">
<div class="navigation-upper">
<div class="navigation-center">
<?php get_template_part( 'components/site', 'logo' ); ?>
</div>
<?php
if ( has_nav_menu( 'social' ) ) {
wp_nav_menu(
array(
'theme_location' => 'social',
'container_class' => 'navigation-left',
'menu_id' => 'menu-social',
'depth' => 1,
'link_before' => '<span class="screen-reader-text">',
'link_after' => '</span>',
'fallback_cb' => 'false',
)
);
}
?>
<div class="navigation-right">
<button id="js-search" class="navigation-search"><span class="screen-reader-text"><?php esc_attr_e( 'Search', 'uwc-website' ); ?></span><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path class="search-open" d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/><path class="search-close" d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg></button>
<button id="js-menu" class="navigation-button"><?php esc_html_e( 'Menu', 'uwc-website' ); ?></button>
</div>
</div>
<div class="navigation-lower" role="navigation">
<?php
if ( has_nav_menu( 'primary' ) ) {
wp_nav_menu(
array(
'theme_location' => 'primary',
'depth' => '2',
'container' => 'nav',
'container_class' => 'navigation-links closed',
'menu_id' => 'menu-primary',
'fallback_cb' => 'false',
)
);
}
?>
</div>
</header>
<div class="site-search">
<div class="search-field">
<?php get_search_form(); ?>
</div>
</div>
<div id="content" class="site-content">