-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathheader.php.back
148 lines (83 loc) · 3.89 KB
/
header.php.back
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
138
139
140
141
142
143
144
145
146
147
148
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" >
<title><?php wp_title('|', true, 'right'); ?></title>
<?php if ( is_singular() ) wp_enqueue_script( "comment-reply" ); ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div class="big-wrapper">
<div class="header-cover section bg-dark-light no-padding">
<div class="header section" style="background-image: url(<?php if (get_header_image() != '') : ?><?php header_image(); ?><?php else : ?><?php echo get_template_directory_uri() . '/images/header.jpg'; ?><?php endif; ?>);">
<div class="header-inner section-inner">
<?php if ( get_theme_mod( 'hemingway_logo' ) ) : ?>
<div class='blog-logo'>
<a href='<?php echo esc_url( home_url( '/' ) ); ?>' title='<?php echo esc_attr( get_bloginfo( 'title' ) ); ?> — <?php echo esc_attr( get_bloginfo( 'description' ) ); ?>' rel='home'>
<img src='<?php echo esc_url( get_theme_mod( 'hemingway_logo' ) ); ?>' alt='<?php echo esc_attr( get_bloginfo( 'title' ) ); ?>'>
</a>
</div> <!-- /blog-logo -->
<?php elseif ( get_bloginfo( 'description' ) || get_bloginfo( 'title' ) ) : ?>
<div class="blog-info">
<h2 class="blog-title">
<a href="<?php echo esc_url( home_url() ); ?>" title="<?php echo esc_attr( get_bloginfo( 'title' ) ); ?> — <?php echo esc_attr( get_bloginfo( 'description' ) ); ?>" rel="home"><?php echo esc_attr( get_bloginfo( 'title' ) ); ?></a>
</h2>
<?php if ( get_bloginfo( 'description' ) ) { ?>
<h3 class="blog-description"><?php echo esc_attr( get_bloginfo( 'description' ) ); ?></h3>
<?php } ?>
</div> <!-- /blog-info -->
<?php endif; ?>
</div> <!-- /header-inner -->
</div> <!-- /header -->
</div> <!-- /bg-dark -->
<div class="navigation section no-padding bg-dark">
<div class="navigation-inner section-inner">
<div class="toggle-container hidden">
<div class="nav-toggle toggle">
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
<div class="clear"></div>
</div>
<div class="search-toggle toggle">
<div class="metal"></div>
<div class="glass"></div>
<div class="handle"></div>
</div>
<div class="clear"></div>
</div> <!-- /toggle-container -->
<div class="blog-search hidden">
<?php get_search_form(); ?>
</div>
<ul class="blog-menu">
<?php if ( has_nav_menu( 'primary' ) ) {
wp_nav_menu( array(
'container' => '',
'items_wrap' => '%3$s',
'theme_location' => 'primary',
'walker' => new hemingway_nav_walker
) ); } else {
wp_list_pages( array(
'container' => '',
'title_li' => ''
));
} ?>
<div class="clear"></div>
</ul>
<ul class="mobile-menu">
<?php if ( has_nav_menu( 'primary' ) ) {
wp_nav_menu( array(
'container' => '',
'items_wrap' => '%3$s',
'theme_location' => 'primary',
'walker' => new hemingway_nav_walker
) ); } else {
wp_list_pages( array(
'container' => '',
'title_li' => ''
));
} ?>
</ul>
</div> <!-- /navigation-inner -->
</div> <!-- /navigation -->