This repository has been archived by the owner on Jul 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
executable file
·70 lines (63 loc) · 2.18 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
<!DOCTYPE html>
<html lang="en-US">
<head>
<?="\n".header_()."\n"?>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--[if IE]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<?php if(GA_ACCOUNT or CB_UID):?>
<script type="text/javascript">
var _sf_startpt = (new Date()).getTime();
<?php if(GA_ACCOUNT):?>
var GA_ACCOUNT = '<?=GA_ACCOUNT?>';
var _gaq = _gaq || [];
_gaq.push(['_setAccount', GA_ACCOUNT]);
_gaq.push(['_setDomainName', 'none']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
<?php endif;?>
<?php if(CB_UID):?>
var CB_UID = '<?=CB_UID?>';
var CB_DOMAIN = '<?=CB_DOMAIN?>';
<?php endif?>
</script>
<?php endif;?>
<? $post_type = get_post_type($post->ID);
if(($stylesheet_id = get_post_meta($post->ID, $post_type.'_stylesheet', True)) !== False
&& ($stylesheet_url = wp_get_attachment_url($stylesheet_id)) !== False) { ?>
<link rel='stylesheet' href="<?=$stylesheet_url?>" type='text/css' media='all' />
<? } ?>
<script type="text/javascript">
var PostTypeSearchDataManager = {
'searches' : [],
'register' : function(search) {
this.searches.push(search);
}
}
var PostTypeSearchData = function(column_count, column_width, data) {
this.column_count = column_count;
this.column_width = column_width;
this.data = data;
}
</script>
</head>
<body class="<?=body_classes()?>">
<div class="container">
<div class="row">
<div class="row-border-bottom-top" id="header">
<?php $options = get_option(THEME_OPTIONS_NAME); ?>
<h1 class="span12"><a href="<?=bloginfo('url')?>"><?=bloginfo('name')?> <?php if($options["years_lived"]): ?><span class="years-lived">(<?=$options["years_lived"]?>)</span><? endif; ?></a> <span id="tagline"><?=bloginfo('description')?></span></h1>
</div>
</div>
<?php
if (has_nav_menu('header-menu')) {
wp_nav_menu(array(
'theme_location' => 'header-menu',
'container' => 'false',
'menu_class' => 'menu '.get_header_styles(),
'menu_id' => 'header-menu',
'walker' => new Bootstrap_Walker_Nav_Menu()
));
}
?>