-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
105 lines (90 loc) · 4.02 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
99
100
101
102
103
104
105
<?php
/**
* The header for our theme.
*
* Displays all of the <head> section and everything up till <div id="content">
*
* @package sth
*/
?><!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="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<link href="https://fonts.googleapis.com/css?family=Assistant:400,700" rel="stylesheet">
<?php wp_head(); ?>
<!-- IE8 fallback moved below head to work properly. Added respond as well. Tested to work. -->
<!-- media-queries.js (fallback) -->
<!--[if lt IE 9]>
<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
<![endif]-->
<!-- html5.js -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- respond.js -->
<!--[if lt IE 9]>
<script type='text/javascript' src="http://cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.js"></script>
<![endif]-->
</head>
<body <?php body_class(); ?>>
<nav class="navbar navbar-default navbar-topbar hidden-xs">
<div class="container">
<div class="row">
<div id="topbar" class="">
<?php wp_bootstrap_topbar();?>
</div>
</div>
</div>
</nav>
<header role="banner">
<div id="site-header">
<div class="container">
<div class="row">
<div class="col-md-4 col-xs-6">
<?php
$left_theme_logo = get_field('left_logo', 'option');
if( !empty($left_theme_logo) ): ?>
<a title="<?php echo get_bloginfo('description'); ?>" href="<?php echo home_url(); ?>">
<img class="img-logo img-responsive" title="<?php echo $left_theme_logo['title']; ?>" src="<?php echo $left_theme_logo['url']; ?>" alt="<?php echo $left_theme_logo['alt']; ?>" />
</a>
<?php endif; ?>
</div>
<div class="col-md-4 col-md-offset-4 col-xs-6">
<?php
$right_theme_logo = get_field('right_logo', 'option');
if( !empty($right_theme_logo) ): ?>
<img class="img-logo img-responsive" title="<?php echo $right_theme_logo['title']; ?>" src="<?php echo $right_theme_logo['url']; ?>" alt="<?php echo $right_theme_logo['alt']; ?>" />
<?php endif; ?>
</div>
</div>
</div>
</div>
<nav class="navbar navbar-inverse">
<div class="container">
<div class="row">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand visible-xs" title="<?php echo get_bloginfo('description'); ?>" href="<?php echo home_url(); ?>"><?php bloginfo('name'); ?></a>
</div>
<div class="collapse navbar-collapse navbar-responsive-collapse">
<?php wp_bootstrap_main_nav(); ?>
</div>
</div>
</div> <!-- end .container -->
</nav> <!-- end .navbar -->
</header> <!-- end header -->
<div id="page" class="hfeed site">
<div id="content" class="site-content">