-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathheader.php
124 lines (89 loc) · 3.21 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
113
114
115
116
117
118
119
120
121
122
123
124
<?php
/**
* The header for our theme.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Tabor
* @link https://themebeans.com/themes/tabor
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js no-svg">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<link rel="profile" href="http://gmpg.org/xfn/11">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php
if ( function_exists( 'wp_body_open' ) ) {
wp_body_open();
}
?>
<div id="page" class="site top-spacer bottom-spacer">
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'tabor' ); ?></a>
<?php do_action( 'tabor_before_header' ); ?>
<header id="masthead" class="site-header drop-in drop-in--from-top" role="banner">
<div class="container max-width">
<div class="flex justify-between">
<div class="flex justify-start items-center">
<?php tabor_site_logo(); ?>
<?php if ( has_nav_menu( 'social' ) ) : ?>
<span class="sep"></span>
<nav class="social-navigation" aria-label="<?php esc_attr_e( 'Social Menu', 'tabor' ); ?>">
<?php
wp_nav_menu(
array(
'theme_location' => 'social',
'menu_class' => 'header-font medium smooth gray list-reset',
'depth' => 1,
'link_before' => '<span class="screen-reader-text">',
'link_after' => '</span>' . tabor_get_svg( array( 'icon' => 'chain' ) ),
)
);
?>
</nav>
<?php endif; ?>
</div>
<div class="flex items-center">
<?php do_action( 'tabor_before_nav' ); ?>
<nav id="site-navigation" class="main-navigation nav primary flex items-center justify-end" role="navigation" aria-label="<?php esc_attr_e( 'Primary Menu', 'tabor' ); ?>">
<?php if ( has_nav_menu( 'primary' ) ) : ?>
<button class="menu-toggle" aria-controls="top-menu" aria-expanded="false">
<span class="screen-reader-text"><?php echo esc_html__( 'Menu', 'tabor' ); ?></span>
</button>
<?php
wp_nav_menu(
array(
'theme_location' => 'primary',
'menu_class' => 'primary-menu header-font medium smooth gray list-reset',
'depth' => 2,
)
);
?>
<?php endif; ?>
<?php tabor_header_search_toggle(); ?>
<?php tabor_accessibility_settings(); ?>
</nav>
<?php do_action( 'tabor_after_nav' ); ?>
</div>
</div>
<div class="site-branding-text">
<?php
$description = get_bloginfo( 'description', 'display' );
$allowed_html = array(
'a' => array(),
'b' => array(),
'strong' => array(),
);
if ( $description || is_customize_preview() ) :
?>
<p class="site-description header-font medium smooth gray"><?php echo wp_kses( $description, $allowed_html ); ?></p>
<?php endif; ?>
</div>
</div>
</header>
<?php do_action( 'tabor_after_header' ); ?>
<div id="content" class="site-content">
<main id="main" class="site-main" role="main">