-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
58 lines (54 loc) · 2.5 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
<?php
/**
*
* Default Header
*
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php $key="seo_title"; echo get_post_meta($post->ID, $key, true); ?></title>
<meta name="description" content="<?php $key="seo_description"; echo get_post_meta($post->ID, $key, true); ?>" />
<link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon.ico" />
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<?php wp_head(); ?>
<?php do_action('wp_head()'); ?><!-- added for custom wp colors from theme customizer -->
</head>
<body <?php body_class(); ?> >
<header id="header">
<!-- NAVBAR ================================================== -->
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#jd-bootstrap-nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- custom calls to options stored in Admin section "Theme Options" to display the logo or not -->
<a class="navbar-brand" id="logo" href="<?php echo site_url(); ?>"><img src="<?php header_image(); ?>" alt="Our Logo" class="img-responsive logo"/></a>
<!-- custom calls to options stored in Admin section "Theme Options" to display the logo or not -->
</div><!-- /. navbar-header -->
<!-- Collect the nav links from WordPress -->
<div id="jd-bootstrap-nav-collapse" class="collapse navbar-collapse">
<?php $args = array(
'theme_location' => 'primary',
'depth' => 0,
'container' => '',
'menu_class' => 'nav navbar-nav',
'walker' => new BootstrapNavMenuWalker()
);
wp_nav_menu($args);
?>
</div><!-- ./collapse -->
</div><!-- /.container -->
</nav>
</header>