-
Notifications
You must be signed in to change notification settings - Fork 1
/
header.php
79 lines (66 loc) · 2.98 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title><?php echo page_title('Page can’t be found'); ?> — <?php echo site_name(); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="<?php echo site_description(); ?>">
<link href="<?php echo theme_url('/css/bootstrap.css'); ?>" rel="stylesheet">
<link href="<?php echo theme_url('/css/app.css'); ?>" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<?php if(customised()): ?>
<!-- Custom CSS -->
<style><?php echo article_css(); ?></style>
<!-- Custom Javascript -->
<script><?php echo article_js(); ?></script>
<?php endif; ?>
<?php if (($color = article_custom_field('link_color')) || ($color = page_custom_field('link_color'))): ?>
<style>
.bs-docs-nav .navbar-brand,
.bs-docs-nav .navbar-nav > li > a {
font-weight: 500;
color: <?php echo $color; ?>;
}
.bs-docs-nav .navbar-nav > li > a:hover,
.bs-docs-nav .navbar-nav > .active > a,
.bs-docs-nav .navbar-nav > .active > a:hover {
color: <?php echo $color; ?>;
}
footer a{
color:<?php echo $color; ?>;
}
footer a:hover{
color:<?php echo $color; ?>;
}
</style>
<?php endif; ?>
</head>
<body>
<header class="navbar navbar-static-top bs-docs-nav" id="top" role="banner">
<div class="container">
<div class="navbar-header">
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="/" class="navbar-brand"><?php echo site_name(); ?></a>
</div>
<nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation">
<?php if(has_menu_items()): ?>
<ul class="nav navbar-nav">
<?php while(menu_items()): ?>
<li <?php echo (menu_active() ? 'class=""' : ''); ?>>
<a href="<?php echo menu_url(); ?>" title="<?php echo menu_title(); ?>"><?php echo menu_name(); ?></a>
</li>
<?php endwhile; ?>
</ul>
<?php endif; ?>
</nav>
</div>
</header>