-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathheader.php
59 lines (55 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title><?php if (function_exists('is_tag') && is_tag()) { echo 'Tag Archive for "'.$tag.'" - '; } elseif (is_archive()) { wp_title(''); echo ' Archive - '; } elseif (is_search()) { echo 'Search for "'.wp_specialchars($s).'" - '; } elseif (!(is_404()) && (is_single()) || (is_page())) { wp_title(''); echo ' - '; } elseif (is_404()) { echo 'Not Found - '; } if (is_home()) { bloginfo('name'); echo ' - '; bloginfo('description'); } else { bloginfo('name'); } ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="<?php if (have_posts()): while (have_posts()): the_post(); echo strip_tags(get_the_excerpt()); endwhile; endif; ?>" />
<meta name="author" content="Andy Brudtkuhl @abrudtkuhl">
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed (<?php bloginfo('language'); ?>)" href="<?php bloginfo('atom_url'); ?>" />
<link rel="icon" type="image/png" href="<?php bloginfo('template_url'); ?>/img/favicon.ico" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<!--Stylesheets-->
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/bootstrap.min.css">
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/theme.css">
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/bootstrap-responsive.min.css">
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/font-awesome.css">
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/wp.css">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php // load up facebook scripts/apps ?>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<header id="header">
<div class="navbar navbar-fixed-top navbar-inverse">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a>
<div class="nav-collapse">
<?php if (has_nav_menu('primary-menu')):
wp_nav_menu( array( 'container' => false, 'menu_class' => 'nav', 'theme_location' => 'primary-menu', 'fallback_cb' => 'display_home' ) );
else: ?>
<ul class="nav">
<li><a href="<?php echo home_url(); ?>/">Home</a></li>
<?php wp_list_pages('title_li=' ); ?>
</ul><!-- end .menu -->
<?php endif; ?>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
</header>
<div id="wrap">
<div class="container-fluid">