-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathheader.php
More file actions
137 lines (83 loc) · 4.31 KB
/
header.php
File metadata and controls
137 lines (83 loc) · 4.31 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
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
125
126
127
128
129
130
131
132
133
134
135
136
137
<?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 Avenue
*/
$avenue_options = avenue_get_options();
?>
<!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">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="page" class="site">
<header id="masthead" class="site-header">
<?php if ( $avenue_options['sc_headerbar_bool'] == 'yes' ) : ?>
<?php do_action( 'avenue_toolbar' ); ?>
<?php endif; ?>
<div id="site-branding-sticky-wrap">
<div id="site-branding" class="container">
<div class="branding">
<?php if ( function_exists( 'has_custom_logo' ) && has_custom_logo() ) : ?>
<?php the_custom_logo(); ?>
<?php else : ?>
<?php if ( get_bloginfo( 'name' ) ) : ?>
<h2 class="site-title">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
<?php bloginfo( 'name' );?>
</a>
</h2>
<?php endif; ?>
<?php if ( get_bloginfo( 'description' ) ) : ?>
<h5 class="site-description">
<?php echo get_bloginfo( 'description' ); ?>
</h5>
<?php endif; ?>
<?php endif; ?>
</div>
<div class="navigation">
<nav id="site-navigation" class="main-navigation" role="navigation">
<?php wp_nav_menu( array(
'theme_location' => 'primary',
'menu_id' => 'primary-menu',
) ); ?>
</nav><!-- #site-navigation -->
</div>
<div class="mobile-trigger-wrap">
<span id="mobile-menu-trigger"><span class="fa fa-bars"></span></span>
</div>
<div id="mobile-overlay"></div>
<div id="mobile-menu-wrap">
<nav id="menu" role="navigation">
<img id="mobile-menu-close" src="<?php echo esc_url( get_template_directory_uri() . '/inc/images/close-mobile.png' ); ?>" alt="<?php _e( 'Close Menu', 'avenue' ); ?>">
<?php if ( has_nav_menu( 'primary' ) ) : ?>
<?php wp_nav_menu( array(
'theme_location' => 'primary',
'menu_id' => 'mobile-menu',
) ); ?>
<?php else : ?>
<?php if ( current_user_can( 'edit_theme_options' ) ) : ?>
<ul id="mobile-menu" class="menu">
<li class="menu-item menu-item-type-custom menu-item-object-custom">
<a href="<?php echo esc_url( admin_url( 'nav-menus.php' ) ); ?>">
<?php _e( 'Add a Primary Menu?', 'avenue' ); ?>
</a>
</li>
</ul>
<?php endif; ?>
<?php endif; ?>
</nav>
</div>
</div>
</div>
</header><!-- #masthead -->
<div id="content" class="site-content">