-
Notifications
You must be signed in to change notification settings - Fork 7
/
header.php
134 lines (130 loc) · 6.28 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html <?php language_attributes(); ?> xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php get_bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
<?php
if ( of_get_option( 'mobile_css', '0' ) == 1 ) {
echo '<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />';
}
global $cpage, $tech_nav, $post_type;
if ( is_singular() ) {
$tech_nav = get_post_meta( $post->ID, "Nav_value", $single = true );
if ( empty( $tech_nav ) ) {
$tech_nav = "on";
}
} else {
$tech_nav = "on";
}
?>
<title><?php wp_title() ?></title>
<meta name="generator" content="WordPress <?php bloginfo( 'version' ); ?>" /> <!-- leave this for stats -->
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo get_stylesheet_uri(); ?>" />
<!--[if IE]>
<style type="text/css">
#headerimg{ filter:alpha(opacity=80);}
.top img{ filter:alpha(opacity=60);}
.top img:hover{ filter:alpha(opacity=100);}
ul.comment-preview li{ filter:alpha(opacity=70);}
ul.comment-preview li:hover{ filter:alpha(opacity=100);}
#commentform input[type="text"],#commentform .comment-form-author .required,
#commentform .comment-form-email .required{padding-left: 65px !important;}
.top a {position: relative;top: 2px;}
</style>
<![endif]-->
<!--[if IE 7]>
<style type="text/css">
#headerimgwrap{ position:absolute;left:20%}
.hleft{position:absolute;}
.hright{position:absolute; right:0;}
.top:hover {bottom: -30px;}
</style>
<![endif]-->
<!--[if IE 8 ]>
<style type="text/css">
.top:hover {bottom: -30px;}
</style>
<![endif]-->
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php if ( of_get_option( 'favicon_image' ) ) { ?>
<link rel="icon" href="<?php echo of_get_option( 'favicon_image' ); ?>" type="image/x-icon" />
<link rel="shortcut icon" href="<?php echo of_get_option( 'favicon_image' ); ?>" type="image/x-icon" />
<?php
}
wp_head();
?>
</head>
<body <?php body_class(); ?>>
<a name="top"></a>
<div id="page">
<?php
if ( of_get_option( 'nav_location', 'below' ) == 'above' ) {
get_template_part( 'nav' );
}
?>
<div id="header">
<?php
if ( function_exists( 'dynamic_sidebar' ) && is_active_sidebar( 'left_header' ) ) {
echo '<div class="hleft">' . "\n";
dynamic_sidebar( 'left_header' );
echo '</div>' . "\n";
}
if ( function_exists( 'dynamic_sidebar' ) && is_active_sidebar( 'right_header' ) ) {
echo '<div class="hright">' . "\n";
dynamic_sidebar( 'right_header' );
echo '</div>' . "\n";
}
?>
<div id="headerimgwrap">
<?php if ( of_get_option( 'header_logo', '' ) != '' ) { ?>
<div id="header-logo">
<a class="header-logo-link" href="<?php echo home_url() ?>"><img src="<?php echo of_get_option( 'header_logo' ); ?>" /></a>
</div>
<?php } ?>
<div id="headerimg">
<?php
if ( is_single() || is_page() || ($post_type == 'forum' || $post_type == 'topic' || $post_type == 'reply') ) {
echo "<span class=\"blog_title\">";
} else {
echo "<h1 class=\"blog_title\">";
}
if ( is_single() & of_get_option( 'blog_title_text', 'single' ) == "single" ) {
?>
<a><?php
if ( get_the_title() != "" ) {
the_title();
} else {
the_date();
echo ' ';
the_time();
}
?>
</a><?php } else {
?>
<a href="<?php echo home_url(); ?>/"><?php bloginfo( 'name' ); ?></a>
<?php
}
if ( is_single() || is_page() || ($post_type == 'forum' || $post_type == 'topic' || $post_type == 'reply') ) {
echo "</span>";
} else {
echo "</h1>";
}
if ( is_single() & of_get_option( 'blog_title_text', 'single' ) == "single" ) {
$description = "<a href=\"" . home_url() . "\">" . get_bloginfo( 'name' ) . "</a>";
} else {
$description = get_bloginfo( 'description' );
}
if ( !empty( $description ) ) {
?>
<span class="description"><?php echo $description; ?></span>
<?php }
?>
</div><!--end headerimg-->
</div><!--end headerimgwrap-->
</div><!--end header-->
<?php
if ( of_get_option( 'nav_location', 'below' ) == 'below' ) {
get_template_part( 'nav' );
}
?>
<div id="main">