/
header.php
61 lines (59 loc) · 2.04 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
<!DOCTYPE html>
<html>
<head>
<title><?php bloginfo('name'); ?></title>
<meta name="viewport" content="width=device-width" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!--[if lt IE 9]>
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_directory' ); ?>/style-ie.css"/>
<![endif]-->
<?php wp_head(); ?>
</head>
<body>
<header class="head">
<h1><a class="home" href="<?php bloginfo('url'); ?>"><div class="header-img"></div></a></h1>
<input type='button' id='toggle' value="Menu" />
<?php
$top_menu = array(
'theme_location' => 'top',
'menu' => 'top-menu',
'container' => 'nav',
'container_class' => 'top-nav',
'container_id' => 'menu',
'menu_class' => 'top',
'menu_id' => '',
'echo' => true,
'fallback_cb' => 'wp_page_menu',
'before' => '',
'after' => '',
'link_before' => '',
'link_after' => '',
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
'depth' => 1,
'walker' => ''
);
wp_nav_menu( $top_menu );
$top_menu_r = array(
'theme_location' => 'top',
'menu' => 'top-menu',
'container' => 'nav',
'container_class' => 'top-nav-r',
'container_id' => 'menu-r',
'menu_class' => 'top',
'menu_id' => '',
'echo' => true,
'fallback_cb' => 'wp_page_menu',
'before' => '',
'after' => '',
'link_before' => '',
'link_after' => '',
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
'depth' => 1,
'walker' => ''
);
wp_nav_menu( $top_menu_r );
?>
</header>