forked from thewirelessguy/cornerstone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
65 lines (58 loc) · 2.27 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
<!DOCTYPE html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" <?php language_attributes(); ?>> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]-->
<head>
<meta charset="utf-8" />
<!-- Set the viewport width to device width for mobile -->
<meta name="viewport" content="width=device-width" />
<title><?php wp_title(''); ?></title>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<nav class="top-bar">
<ul class="title-area">
<!-- Title Area -->
<li class="name">
<div class="sitetitle"><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></div>
</li>
<!-- Remove the class "menu-icon" to get rid of menu icon. Take out "Menu" to just have icon alone -->
<li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
</ul>
<section class="top-bar-section">
<?php
// Left Nav Section
if ( has_nav_menu( 'header-menu-left' ) ) {
wp_nav_menu( array(
'theme_location' => 'header-menu-left',
'container' => false,
'depth' => 0,
'items_wrap' => '<ul class="left">%3$s</ul>',
'fallback_cb' => false,
'walker' => new cornerstone_walker( array(
'in_top_bar' => true,
'item_type' => 'li'
) ),
) );
}
?>
<?php
//Right Nav Section
if ( has_nav_menu( 'header-menu-right' ) ) {
wp_nav_menu( array(
'theme_location' => 'header-menu-right',
'container' => false,
'depth' => 0,
'items_wrap' => '<ul class="right">%3$s</ul>',
'fallback_cb' => false,
'walker' => new cornerstone_walker( array(
'in_top_bar' => true,
'item_type' => 'li'
) ),
) );
}
?>
</section>
</nav>