-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
executable file
·84 lines (77 loc) · 4.21 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 IEMobile 7 ]> <html <?php language_attributes(); ?>class="no-js iem7"> <![endif]-->
<!--[if lt IE 7 ]> <html <?php language_attributes(); ?> class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]> <html <?php language_attributes(); ?> class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]> <html <?php language_attributes(); ?> class="no-js ie8"> <![endif]-->
<!--[if (gte IE 9)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html <?php language_attributes(); ?> class="no-js"><!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php wp_title( '|', true, 'right' ); ?></title>
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
<link rel="shortcut icon" href="<?php echo get_template_directory_uri();?>/library/ico/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="144x144"
href="<?php echo get_template_directory_uri();?>/library/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114"
href="<?php echo get_template_directory_uri();?>/library/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72"
href="<?php echo get_template_directory_uri();?>/library/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed"
href="<?php echo get_template_directory_uri();?>/library/ico/apple-touch-icon-57-precomposed.png">
<!-- html5.js -->
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri();?>/library/components/html5shiv/dist/html5shiv.js"></script>
<![endif]-->
<!-- wordpress head functions -->
<?php wp_head(); ?>
<!-- end of wordpress head -->
<!-- theme options from options panel -->
<?php get_wpbs_theme_options(); ?>
<!-- typeahead plugin - if top nav search bar enabled -->
<?php require_once('library/typeahead.php'); ?>
<!-- media-queries.js (fallback) -->
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri();?>/library/components/respond/respond.min.js"></script>
<![endif]-->
</head>
<body <?php body_class(); ?>>
<header role="banner">
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" id="logo" title="<?php echo get_bloginfo('description'); ?>
" href="
<?php echo home_url(); ?>
">
<?php if(of_get_option('navbar-branding_logo','')!='') { ?>
<img src="<?php echo of_get_option('navbar-branding_logo'); ?>
" alt="
<?php echo get_bloginfo('description'); ?>
">
<?php }
if(of_get_option('site_name','1')) bloginfo('name'); ?></a>
</div><!-- end .navbar-header -->
<div class="navbar-collapse collapse">
<?php if(of_get_option('search_bar', '1')) {?>
<form class="navbar-form navbar-right" role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>">
<div class="form-group">
<input name="s" id="s" type="text" class="form-control" autocomplete="off" placeholder="<?php _e('Search','bonestheme'); ?>
" data-provide="typeahead" data-items="4" data-source='
<?php echo $typeahead_data; ?>
'>
<button type="submit" class="btn btn-default">Submit</button>
</div><!-- end .form-group -->
</form>
<?php } ?>
<?php bones_main_nav(); // Adjust using Menus in Wordpress Admin ?>
</div><!-- end .navbar-collapse -->
</div><!-- end .container -->
</nav> <!-- end .navbar -->
</header> <!-- end header -->
<div class="container" id="overview">