-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
executable file
·92 lines (83 loc) · 3.19 KB
/
header.php
File metadata and controls
executable file
·92 lines (83 loc) · 3.19 KB
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
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?="\n".header_()."\n"?>
<?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;?>
<a style="display: none;" href="https://plus.google.com/107516028935453397956" rel="publisher">Google+</a>
<!--[if IE]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<?php $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' />
<?php } ?>
<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>
<script type="text/javascript" src="<?=THEME_JS_URL?>/techtransfer.js"></script>
</head>
<body class="<?=body_classes()?>">
<div class="container">
<div class="row">
<div id="header">
<h1 class="span6"><a href="<?=bloginfo('url')?>"><?=bloginfo('name')?></a></h1>
<div id="tt-header-links-right" class="span6 tt-header-links">
<?php $options = get_option(THEME_OPTIONS_NAME);?>
<a id="tt-rss" class="tt-social" href="<?php bloginfo('rss2_url'); ?>"></a>
<?php if(isset($options['gplus_url'])):?>
<a id="tt-gplus" class="tt-social" href="<?=$options['gplus_url']?>"></a>
<?php endif;?>
<?php if(isset($options['twitter_url'])):?>
<a id="tt-twitter" class="tt-social" href="<?=$options['twitter_url']?>"></a>
<?php endif;?>
<?php if(isset($options['facebook_url'])): ?>
<a id="tt-facebook" class="tt-social" href="<?=$options['facebook_url']; ?>"></a>
<?php endif; ?>
</div>
</div>
</div>
<div class="container">
<div class="tt-header-row row">
<div class="span12 tt-header-links" id="tt-header-links-left">
<?php
wp_nav_menu(array(
'menu' => 'main-menu',
'container' => 'false',
'menu_class' => 'menu horizontal',
'menu_id' => 'footer-menu',
'fallback_cb' => false,
'depth' => 1,
'walker' => new Bootstrap_Walker_Nav_Menu()
));
?>
</div>
</div>
</div>