-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathheader.php
84 lines (65 loc) · 3.88 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html <?php language_attributes(); ?> class="no-js"> <!--<![endif]-->
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title><?php wp_title('|',true, 'right'); ?><?php bloginfo('name'); ?></title>
<meta name="description" content="<?php bloginfo('description'); ?>">
<meta name="author" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/style.css">
<link rel="apple-touch-icon" href="<?php echo IMAGES.'/';?>apple-touch-icon.png" />
<link rel="apple-touch-icon" sizes="72x72" href="<?php echo IMAGES.'/';?>apple-touch-icon-72x72-precomposed.png" />
<link rel="apple-touch-icon" sizes="114x114" href="<?php echo IMAGES.'/';?>apple-touch-icon-114x114-precomposed.png" />
<link rel="apple-touch-icon" sizes="144x144" href="<?php echo IMAGES.'/';?>apple-touch-icon-144x144-precomposed.png" />
<link rel="icon" href="<?php echo IMAGES.'/';?>favicon.ico" type="image/x-icon" />
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<!--[if lt IE 7]>
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
<![endif]-->
<!-- HEADER -->
<header class="main-header">
<div class="main-header-wrap clearfix">
<div class="top-menu-container">
<div class="container">
<nav class = "top-menu-navigation navbar">
<?php /* wp_nav_menu(array(
'theme_location' => 'top-menu'
));*/ ?>
</nav>
</div> <!-- end of container-->
</div><!-- end of top-menu-container-->
<div class="container">
<div class="row-fluid">
<div class="span12">
<h1 id="logo" class ="logo"><a href="<?php echo home_url(); ?>"><img src="<?php print IMAGES; ?>/logo.png" class="img-circle" alt="<?php bloginfo('name'); ?>" /></a></h1>
</div><!-- end of span 3-->
</div> <!-- end of row-->
<nav id="main-nav" class="main-navigation navbar clearfix">
<ul id="menu-static" class="menu">
<a id="nav-brand" href="#logo"><img src="<?php bloginfo('template_directory'); ?>/assets/img/logo.png" class="img-circle logo-icon brand" alt="<?php bloginfo('name'); ?>" /></a>
<!-- Displaying the suitable menu whether It's front page menu or normal blog menu -->
<?php
if (is_front_page()){
wp_nav_menu(array(
'theme_location' => 'front-menu',
'item_wrap' => '%3$s'
));
}
else {
wp_nav_menu(array(
'theme_location' => 'main-menu',
'item_wrap' => '%3$s'
));
}
?>
</ul>
</nav> <!-- end of main navigation-->
</div><!-- end of container -->
</div>
</header><!-- end of main header-->