-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
88 lines (71 loc) · 3.42 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
<!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="//gmpg.org/xfn/11">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php //wp_body_open hook if WordPress 5.2
if ( function_exists( 'wp_body_open' ) ) {
wp_body_open();
} ?>
<a class="skip-link screen-reader-text" href="#content"><?php esc_attr_e( 'Skip to content', 'scheduler' ); ?></a>
<div id="wrapper">
<div class="toggler sidenav-side">
<span onclick="openNav()">
<div class="toggler-container">
<div class="sbar1"></div>
<div class="sbar2"></div>
<div class="sbar3"></div>
</div>
</span>
</div>
<div id="sideSideNav" class="sidenav">
<nav class="sidenav-wrap">
<a href="<?php print scheduler_void_link(); ?>" class="sidenav closebtn"
onclick="closeNav()"><span>[ X ]</span></a>
<?php wp_nav_menu( array( 'container_id' => 'sideNavWrap',
'theme_location' => 'primary',
'menu_class' => 'sidenav-menu',
'items_wrap' => '<ul>%3$s</ul>',
'fallback_cb' => 'scheduler_sidenav_side_nav_cb'
) ); ?>
</nav>
</div>
<header id="masthead" role="banner">
<div id="branding">
<?php if( has_custom_logo() ) : ?>
<div class="hgroup logo">
<figure class="header-logo">
<a title="<?php bloginfo( 'description' ); ?>"
href="<?php echo esc_url( home_url( '/' ) ); ?>">
<?php echo scheduler_theme_custom_logo(); ?></a>
</figure>
</div>
<?php update_post_thumbnail_cache();
endif; ?>
<div class="hgroup-headings">
<h1 class="site-title"><a href="<?php echo esc_url(home_url('/')); ?>"
title="<?php bloginfo( 'name' ); ?>"
rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
</div>
<div class="search-bar-nav">
<?php get_search_form(); ?>
</div>
</div><!-- ends branding -->
</header>
<div id="nav" role="navigation">
<?php wp_nav_menu( array( 'container_id' => 'primary_nav',
'theme_location' => 'primary',
'fallback_cb' => 'wp_page_menu' ) ); ?>
</div><div class="clearfix"></div>
<nav id="sideDown" class="sidedown-box">
<a href="#" title="<?php esc_attr_e( 'To top of this page', 'scheduler' ); ?>"
class="sidebar-nav-caret" rel="nofollow"><span class="down-caret">^</span></a>
<a id="DownCaret" href="#sidebar"
title="<?php esc_attr_e( 'to widgets at bottom of page', 'scheduler' ); ?>"
class="sidebar-nav-caret">^</a>
</nav>