-
Notifications
You must be signed in to change notification settings - Fork 4
/
header.php
82 lines (72 loc) · 3.48 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
71
72
73
74
75
76
77
78
79
80
81
82
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes() ?>>
<!--
____ ___ ____ _ _ ____ ____ _ _ ____ ____ ____
| | |__] |___ |\ | [__ | | | | |__/ | |___
|__| | |___ | \| ___] |__| |__| | \ |___ |___
d8888b. d8888b. d888888b d8888b. d888b d88888b
88 `8D 88 `8D `88' 88 `8D 88' Y8b 88'
88oooY' 88oobY' 88 88 88 88 88ooooo
88 b. 88`8b 88 88 88 88 ooo 88
88 8D 88 `88. .88. 88 .8D 88. P 88.
Y8888P' 88 YD Y888888P Y8888D' Y888P Y88888P
=====================================================
We <3 people who view our site's source code.
Use the code 'osbhtml' to get 10% off on registration.
=====================================================
-->
<head profile="http://gmpg.org/xfn/11">
<title><?php wp_title( '/', true, 'right' ); ?>Open Source Bridge: The conference for open source citizens / June 21-24, 2011 / Portland, OR</title>
<meta http-equiv="content-type" content="<?php bloginfo('html_type') ?>; charset=<?php bloginfo('charset') ?>" />
<link rel="stylesheet" type="text/css" href="<?php
$my_common_styles_url_file = dirname(__FILE__) . "/my_common_styles_url.txt";
if (file_exists($my_common_styles_url_file)) {
include $my_common_styles_url_file;
} else {
echo 'http://opensourcebridge.org/common/osbp_common_v3.css';
}; ?>" />
<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url') ?>" />
<?php wp_head() // For plugins ?>
<link rel="alternate" type="application/rss+xml" href="<?php bloginfo('rss2_url') ?>" title="<?php printf( __( '%s latest posts', 'sandbox' ), wp_specialchars( get_bloginfo('name'), 1 ) ) ?>" />
<link rel="alternate" type="application/rss+xml" href="<?php bloginfo('comments_rss2_url') ?>" title="<?php printf( __( '%s latest comments', 'sandbox' ), wp_specialchars( get_bloginfo('name'), 1 ) ) ?>" />
<link rel="alternate" type="application/atom+xml" href="/proposals.atom" title="Open Source Bridge Proposal Submissions" />
<link rel="pingback" href="<?php bloginfo('pingback_url') ?>" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="<?php bloginfo('template_directory'); ?>/js/jquery.countdown.min.js" type="text/javascript" charset="utf-8"></script>
</head>
<body class="<?php sandbox_body_class() ?>">
<div id="wrapper" class="hfeed">
<?php
global $wp_query;
global $parent;
if( empty($wp_query->post->post_parent) ) {
$parent = $wp_query->post->ID;
} else {
$parent = $wp_query->post->post_parent;
}
?>
<!-- #header_fragment BEGIN -->
<?php require_once 'shared_fragments.php'; ?>
<?php
$event_slug = get_post_meta($wp_query->post->ID, 'event_slug', true);
if($event_slug) {
require_shared_fragment("header_{$event_slug}");
} else {
require_shared_fragment('header_current');
}
?>
<!-- #header_fragment END -->
<?php
if (!is_front_page()) {
if(is_page()) {
$section_title = get_the_title($parent);
} else {
$section_title = "Blog";
}
?>
<div id="container">
<div class="section_title">
<h2><?php echo $section_title ?></h2>
</div>
<?php } ?>
<!-- #header -->