-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
109 lines (88 loc) · 3.9 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!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(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php bloginfo('name'); ?> <?php if ( /*is_single()*/false ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>
<link rel="Shortcut Icon" href="http://www.tim-oliver.com/favicon.ico" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<style type="text/css" media="screen">
#navstrip .button { background-image: url('<?php bloginfo('stylesheet_directory'); ?>/images/header/buttons_<? _e('en'); ?>.gif'); }
<?php
// Checks to see whether it needs a sidebar or not
if ( !empty($withcomments) && !is_single() ) {
?>
#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg-<?php bloginfo('text_direction'); ?>.jpg") repeat-y top; border: none; }
<?php } else { // No sidebar ?>
#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/framework/main_bg_y.gif") repeat-y top; border: none; }
<?php } ?>
</style>
<?php wp_head(); ?>
<!-- Twitter Widget Code -->
<script type='text/javascript' src='<?php get_option('home'); ?>/wp-includes/js/jquery/jquery.tweet.js?ver=1.0'></script>
<script type='text/javascript'>
<!--
jQuery(document).ready(function(){
jQuery(".tweet").tweet({
username: "Tim0liver",
join_text: "auto",
count: 5,
auto_join_text_default: "",
auto_join_text_ed: "",
auto_join_text_ing: "",
auto_join_text_reply: "",
auto_join_text_url: "",
loading_text: "Loading Tweets..."
});
});
//-->
</script>
<!-- FancyBox code -->
<script type='text/javascript' src='<?php get_option('home'); ?>/wp-includes/js/jquery/jquery.fancybox-1.2.6.js?ver=1.2.6'></script>
<link rel="stylesheet" href="<?php get_option('home'); ?>/wp-includes/css/jquery.fancybox-1.2.6.css" type="text/css" media="screen" />
<script type="text/javascript">
<!--
/*Add fancybox to any link that contains an image*/
jQuery(document).ready(function()
{
var imgs = ['.jpg', '.jpeg', '.gif', '.png'];
jQuery("#content a").each(function(index,obj) {
for( i = 0; i < imgs.length; i++ )
{
var img = imgs[i].toLowerCase(); //indexof is case sensitive so force lower case
if( jQuery(obj).attr('href').indexOf(img) != -1 && jQuery(obj).attr('href') != "_blank" )
break;
}
if( i<imgs.length )
jQuery(obj).fancybox();
});
});
//-->
</script>
</head>
<body>
<div id="page">
<div class="page_vertical top">
<div class="page_corner top_left"> </div>
<div class="page_corner top_right"> </div>
</div>
<div id="header">
<div id="headerimg">
<div id="title">
<a href="<?php echo get_option('home'); ?>" title="<? _e('Tim Oliver'); ?>">
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/header/title.png" alt="<? _e('Tim Oliver · Gamer. Coder. Artist. Geek.'); ?> "/>
</a>
</div>
</div>
<div id="navstrip">
<?php wp_page_menu(array('show_home'=>true, 'sort_column'=>'menu_order')); ?>
<div id="searchbar">
<form action="http://www.tim-oliver.com" id="searchform" method="get">
<input type="text" id="s" name="s" value="" size="35"/>
<input type="image" value="Search" id="searchsubmit" src="<? echo get_option('siteurl'); ?>/wp-content/themes/tim/images/header/search.png"/>
</form>
</div>
<div class="shadow"> </div>
</div>
</div>