-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
executable file
·46 lines (39 loc) · 1.31 KB
/
header.php
File metadata and controls
executable file
·46 lines (39 loc) · 1.31 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
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?php echo "\n".header_()."\n"; ?>
<?php if ( GA_ACCOUNT || 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 = '<?=CB_UID?>';
var CB_DOMAIN = '<?=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;
?>
</head>
<body>
<div class="container">
<header class="row" id="header" aria-label="Main title">
<h1 class="span10"><a href="<?php echo bloginfo('url'); ?>">UCF Alert</a></h1>
</header>