-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
236 lines (198 loc) · 8.7 KB
/
header.php
File metadata and controls
236 lines (198 loc) · 8.7 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<!DOCTYPE html>
<html dir="ltr" lang="<?php language_attributes(); ?>">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<?php wp_head(); ?>
</head>
<body <?php body_class( 'stretched no-transition' ); ?>>
<?php wp_body_open(); ?>
<!-- Document Wrapper
============================================= -->
<div id="wrapper" class="clearfix">
<!-- Top Bar
============================================= -->
<div id="top-bar" class="dark">
<div class="container clearfix">
<div class="col_half nobottommargin">
<!-- Top Links
============================================= -->
<div class="top-links">
<?php
if ( has_nav_menu( 'secondary' ) ) {
wp_nav_menu( array(
'theme_location' => 'secondary',
'container' => false,
'fallback_cb' => false,
'depth' => 1,
) );
}
?>
</div><!-- .top-links end -->
</div>
<div class="col_half fright col_last nobottommargin">
<!-- Top Social
============================================= -->
<div id="top-social">
<ul>
<?php
if ( get_theme_mod( 'mt_facebook_handle' ) ) {
?>
<li>
<a href="https://facebook.com/<?php echo get_theme_mod( 'mt_facebook_handle' ) ?>"
class="si-facebook">
<span class="ts-icon"><i class="icon-facebook"></i></span><span
class="ts-text">Facebook</span>
</a>
</li>
<?php
}
if ( get_theme_mod( 'mt_twitter_handle' ) ) {
?>
<li>
<a href="https://twitter.com/<?php get_theme_mod( 'mt_twitter_handle' ); ?>"
class="si-twitter">
<span class="ts-icon"><i class="icon-twitter"></i></span><span
class="ts-text">Twitter</span>
</a>
</li>
<?php
}
if ( get_theme_mod( 'mt_instagram_handle' ) ) {
?>
<li>
<a href="https://instagram.com/<?php get_theme_mod( 'mt_instagram_handle' ); ?>"
class="si-instagram">
<span class="ts-icon"><i class="icon-instagram2"></i></span><span class="ts-text">Instagram</span>
</a>
</li>
<?php
}
if ( get_theme_mod( 'mt_phone_handle' ) ) {
?>
<li>
<a href="tel:<?php echo get_theme_mod( 'mt_phone_handle' ); ?>" class="si-call">
<span class="ts-icon"><i class="icon-call"></i></span>
<span class="ts-text"><?php echo get_theme_mod( 'mt_phone_handle' ); ?></span>
</a>
</li>
<?php
}
if ( get_theme_mod( 'mt_mail_handle' ) ) {
?>
<li>
<a href="mailto:<?php echo get_theme_mod( 'mt_mail_handle' ); ?>" class="si-email3">
<span class="ts-icon"><i class="icon-email3"></i></span><span
class="ts-text"><?php echo get_theme_mod( 'mt_mail_handle' ); ?></span>
</a>
</li>
<?php
}
?>
</ul>
</div><!-- #top-social end -->
</div>
</div>
</div><!-- #top-bar end -->
<!-- Header
============================================= -->
<header id="header" class="sticky-style-2">
<div class="container clearfix">
<!-- Logo
============================================= -->
<div id="logo">
<?php
if ( has_custom_logo() ) {
the_custom_logo();
} else {
?>
<a href="<?php echo home_url( '/' ); ?>" class="standard-logo"><?php bloginfo( 'name' ); ?></a>
<?php
}
?>
</div><!-- #logo end -->
<div class="top-advert">
<img src="images/magazine/ad.jpg">
</div>
</div>
<div id="header-wrap">
<!-- Primary Navigation
============================================= -->
<nav id="primary-menu" class="style-2">
<div class="container clearfix">
<div id="primary-menu-trigger"><i class="icon-reorder"></i></div>
<!-- ul Main Menu
======================================== -->
<?php
if ( has_nav_menu( 'primary' ) ) {
wp_nav_menu( array(
'theme_location' => 'primary',
'container' => false,
'fallback_cb' => false,
'depth' => 4,
'walker' => new MT_Custom_Nav_Walker()
) );
}
if ( get_theme_mod( 'mt_header_show_cart' ) ) {
?>
<div id="top-cart">
<a href="#" id="top-cart-trigger"><i class="icon-shopping-cart"></i><span>5</span></a>
<div class="top-cart-content">
<div class="top-cart-title">
<h4>Shopping Cart</h4>
</div>
<div class="top-cart-items">
<div class="top-cart-item clearfix">
<div class="top-cart-item-image">
<a href="#"><img src="<?php ?>"/></a>
</div>
<div class="top-cart-item-desc">
<a href="#">Blue Round-Neck Tshirt</a>
<span class="top-cart-item-price">$19.99</span>
<span class="top-cart-item-quantity">x 2</span>
</div>
</div>
<div class="top-cart-item clearfix">
<div class="top-cart-item-image">
<a href="#"><img src="images/shop/small/6.jpg"/></a>
</div>
<div class="top-cart-item-desc">
<a href="#">Light Blue Denim Dress</a>
<span class="top-cart-item-price">$24.99</span>
<span class="top-cart-item-quantity">x 3</span>
</div>
</div>
</div>
<div class="top-cart-action clearfix">
<span class="fleft top-checkout-price">$114.95</span>
<button class="button button-3d button-small nomargin fright">
View Cart
</button>
</div>
</div>
</div><!-- #top-cart end -->
<?php
}
if ( get_theme_mod( 'mt_header_show_search' ) ) {
?>
<div id="top-search">
<a href="#" id="top-search-trigger">
<i class="icon-search3"></i><i class="icon-line-cross"></i>
</a>
<form action="<?php echo esc_url( home_url( '/' ) ); ?>" method="get">
<input type="text" name="s" class="form-control"
placeholder="<?php _e( 'Type & Hit Enter..', 'mytheme' ); ?>"
value="<?php the_search_query(); ?>">
</form>
</div><!-- #top-search end -->
<?php
}
?>
<!-- Top Cart
============================================= -->
<!-- Top Search
============================================= -->
</div>
</nav><!-- #primary-menu end -->
</div>
</header><!-- #header end -->