-
Notifications
You must be signed in to change notification settings - Fork 1
/
header.php
98 lines (86 loc) · 3 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<!--[if IE 7]>
<html class="ie ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 7) & !(IE 8)]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php echo wp_title( '|', true, 'right' ); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<link rel="icon" href="<?PHP echo get_theme_mod("fav_icon_url"); ?>">
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script>
<![endif]-->
<?php oeru_theme_extra_style(); ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(oeru_theme_body_class()); ?>>
<div id="page" class="hfeed site">
<header id="masthead" class="site-header" role="banner">
<div>
<?PHP
if(get_header_image()!="") : ?>
<div class="container header_image" style="background:url(<?PHP echo get_header_image(); ?>) 0px 0px / cover no-repeat">
</div>
<?PHP
endif;
?>
<div class="container">
<div class="brandtext">
<h1><a href="<?PHP echo home_url("/"); ?>"><?PHP echo get_bloginfo ( 'name' ); ?></a></h1>
</div>
</div>
</div>
<div class="container">
<nav id="primary-navigation" class="site-navigation primary-navigation navbar" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse navbar-ex1-collapse">
<?php
if ( has_nav_menu( "primary" ) ) {
if(get_theme_mod("menu_depth")=="two"){
$menu_obj = new Walker_OERU_Menu_Depth();
}else{
$menu_obj = new Walker_OERU_Menu();
}
wp_nav_menu(
array(
'theme_location' => 'primary',
'menu_class' => 'nav navbar-nav' ,
'walker' => $menu_obj
)
);
}
?>
<ul class="nav navbar-nav navbar-right">
<?PHP
if(get_theme_mod("scan_page")=="on" || get_option("oeru_theme_scan_page")=="on"):
?><li><a data-toggle="modal" data-target="#siteMapmodal"><span class="glyphicon glyphicon-tree-conifer"></span></a></li><?PHP
endif;
?>
<?PHP
if(get_theme_mod("log_on_page")=="on"):
?><li><a href="<?PHP echo wp_login_url(); ?>"><span class="glyphicon glyphicon-user"></span></a></li><?PHP
endif;
?>
</ul>
</div>
</div>
</nav>
</div>
</header>
<div id="scroller">Scroll to the top</div>
<div id="main" class="site-main">