-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
executable file
·71 lines (61 loc) · 2.94 KB
/
header.php
File metadata and controls
executable file
·71 lines (61 loc) · 2.94 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
<!DOCTYPE html>
<html lang="en-US"<?php echo (is_front_page() ? ' class="front-page"':'')?>>
<head>
<?php echo "\n".header_()."\n"?>
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0" />
<?php if(GA_ACCOUNT or CB_UID):?>
<script type="text/javascript">
var _sf_startpt = (new Date()).getTime();
<?php if(GA_ACCOUNT):?>
var GA_ACCOUNT = '<?php echo 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 = '<?php echo CB_UID?>';
var CB_DOMAIN = '<?php echo CB_DOMAIN?>';
<?php endif?>
</script>
<?php endif;?>
<?php if ( isset( $post ) && $post instanceof WP_Post ):
$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="<?php echo $stylesheet_url; ?>" type='text/css' media='all' />
<?php endif;
endif;
?>
<script type="text/javascript">
var THEME_STATIC_URL = '<?php echo THEME_STATIC_URL?>';
</script>
</head>
<!--[if lt IE 7 ]> <body class="ie ie6 <?php echo body_classes()?><?php echo !is_front_page() ? ' subpage': ''?>"> <![endif]-->
<!--[if IE 7 ]> <body class="ie ie7 <?php echo body_classes()?><?php echo !is_front_page() ? ' subpage': ''?>"> <![endif]-->
<!--[if IE 8 ]> <body class="ie ie8 <?php echo body_classes()?><?php echo !is_front_page() ? ' subpage': ''?>"> <![endif]-->
<!--[if IE 9 ]> <body class="ie ie9 <?php echo body_classes()?><?php echo !is_front_page() ? ' subpage': ''?>"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <body class="<?php echo body_classes()?><?php echo !is_front_page() ? ' subpage': ''?>"> <!--<![endif]-->
<div class="alert alert-block alert-error" style="display:none;" id="browser_support">
<p>Your browser, !BROWSER!, is not supported by this website. Various features may work
in unexpected ways or not at all. The following browsers are supported:
Internet Explorer 8+, Firefox 10+, Chrome 17+, Safari 4+, Mobile Safari 5+. and Android 2.2+.</p>
</div>
<div class="container" id="content-wrap">
<div class="row<?php if(is_front_page()):?> front-page<?php endif ?>" id="header-wrap">
<div id="header">
<h1 class="span4"><a href="<?php echo bloginfo('url')?>"><?php echo bloginfo('name')?></a></h1>
<div class="span8" id="<?php if(is_front_page() == false) : ?>menu-wrap<?php endif; ?>">
<?php echo 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()
));
?>
</div>
</div>
</div>