-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathheader.php
More file actions
130 lines (121 loc) · 3.95 KB
/
Copy pathheader.php
File metadata and controls
130 lines (121 loc) · 3.95 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
<?php
/**
* The header of the theme.
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @since MeisterMag 1.0
*/
?>
<!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 if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php endif; ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<!-- mobile navigation -->
<div class="tagdiv-menu-background"></div>
<div id="tagdiv-mobile-nav">
<div class="tagdiv-mobile-container">
<!-- close button -->
<div class="tagdiv-mobile-close">
<a href="#"><i class="tagdiv-icon-close-mobile"></i></a>
</div>
<!-- menu section -->
<div class="tagdiv-mobile-content">
<?php
if ( has_nav_menu( 'header-menu' ) ) {
wp_nav_menu( array(
'theme_location' => 'header-menu',
'menu_class' => 'tagdiv-mobile-main-menu',
'link_after' => '<i class="tagdiv-icon-menu-right tagdiv-element-after"></i>',
'walker' => new Tagdiv_Walker_Mobile_Menu()
) );
} else {
wp_nav_menu( array(
'theme_location' => 'header-menu',
'fallback_cb' => wp_page_menu(
array(
'menu_class' => 'tagdiv-main-menu-page-list'
)
)
) );
}
?>
</div>
</div>
</div>
<!-- mobile search -->
<div class="tagdiv-search-background"></div>
<div class="tagdiv-search-wrap-mob">
<div class="tagdiv-drop-down-search">
<div class="tagdiv-search-close">
<a href="#"><i class="tagdiv-icon-close-mobile"></i></a>
</div>
<div role="search" class="tagdiv-search-input">
<span><?php esc_html_e( 'Search', 'meistermag' )?></span>
<?php get_search_form(); ?>
</div>
</div>
</div>
<div id="tagdiv-page-wrap" class="tagdiv-site">
<!--site header-->
<div class="tagdiv-header-wrap tagdiv-header-style">
<div class="tagdiv-container">
<a class="skip-link screen-reader-text" href="#tagdiv-site-content"><?php esc_html_e( 'Skip to content', 'meistermag' ); ?></a>
<div class="tagdiv-header-logo-wrap">
<!--header logo-->
<div class="tagdiv-header-logo">
<?php tagdiv_custom_logo(); ?>
</div>
</div>
</div>
<!--header menu-->
<div class="tagdiv-header-menu-wrap">
<div class="tagdiv-container tagdiv-header-main-menu">
<div id="tagdiv-header-menu" role="navigation">
<!--mobile menu toggle button-->
<div id="tagdiv-top-mobile-toggle"><a href="#"><i class="tagdiv-icon-font tagdiv-icon-mobile"></i></a></div>
<nav class="tagdiv-main-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Header Menu (main)', 'meistermag' ); ?>">
<?php
if ( has_nav_menu( 'header-menu' ) ) {
wp_nav_menu( array(
'theme_location' => 'header-menu',
'menu_class' => 'tagdiv-sf-menu'
) );
} else {
wp_nav_menu( array(
'theme_location' => 'header-menu',
'fallback_cb' => wp_page_menu(
array(
'menu_class' => 'tagdiv-main-menu-page-list'
)
)
) );
}
?>
</nav>
</div>
<!--header menu search-->
<div class="tagdiv-header-menu-search">
<div class="tagdiv-search-btns-wrap">
<a id="tagdiv-header-search-button" href="#" role="button"><i class="tagdiv-icon-search"></i></a>
<a id="tagdiv-header-search-button-mob" href="#" role="button"><i class="tagdiv-icon-search"></i></a>
</div>
<div class="tagdiv-search-box-wrap">
<div class="tagdiv-drop-down-search">
<?php get_search_form(); ?>
</div>
</div>
</div> <!-- /.tagdiv-header-menu-search -->
</div> <!-- /.tagdiv-header-main-menu -->
</div> <!-- /.tagdiv-header-menu-wrap -->
</div> <!-- /.tagdiv-header-wrap -->
<!--site content-->
<div id="tagdiv-site-content" class="tagdiv-site-content" tabindex="-1">