-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
57 lines (50 loc) · 1.94 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
<!DOCTYPE>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="description" content="<?php bloginfo('description'); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php bloginfo('name'); ?> | <?php wp_title(); ?></title>
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700" rel="stylesheet">
<?php wp_head(); ?>
</head>
<style>
header{
background-image: url(<?php echo get_theme_mod('banner_background', get_bloginfo('template_url') . '/inc/img/banner-stock-darkened.jpg'); ?>);
}
</style>
<body>
<header>
<div class="container header-container">
<div class="row">
<div class="col-md-12">
<h1><?php echo get_theme_mod('banner_title', 'sparky'); ?></h1>
<h3><?php echo get_theme_mod('banner_description', 'Simple And Fun To Use!'); ?></h3>
</div>
</div>
</div>
<nav class="navbar navbar-default">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<?php
wp_nav_menu( array(
'menu' => 'primary',
'theme_location' => 'primary',
'container' => 'div',
'container_class' => 'collapse navbar-collapse',
'container_id' => 'bs-example-navbar-collapse-1',
'menu_class' => 'nav navbar-nav'
));
?>
</div><!-- /.container-fluid -->
</nav>
</header>