-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
147 lines (147 loc) · 5.69 KB
/
header.php
File metadata and controls
147 lines (147 loc) · 5.69 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
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
135
136
137
138
139
140
141
142
143
144
145
146
147
<!DOCTYPE html>
<!--[if IE 6]>
<html id="ie6" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 7]>
<html id="ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html id="ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 6) | !(IE 7) | !(IE 8) ]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
<title><?php bloginfo('name'); ?> <?php wp_title("-"); ?></title>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<?php if( of_get_option('meta_description') ) { ?>
<meta name="description" content="<?php echo of_get_option('meta_description') ?>">
<?php } ?>
<?php if( of_get_option('meta_keywords') ) { ?>
<meta name="keywords" content="<?php echo of_get_option('meta_keywords') ?>">
<?php } ?>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php if( of_get_option('custom_favicon') ) { ?>
<link rel="icon" href="<?php echo of_get_option('custom_favicon') ?>" type="image/x-icon" />
<link rel="shortcut icon" href="<?php echo of_get_option('custom_favicon') ?>" type="image/x-icon" />
<?php } ?>
<?php wp_head() // Above style.css, because of Symple Style ?>
<link href="<?php bloginfo('stylesheet_url');?>" rel="stylesheet">
<?php if ( of_get_option('custom_bg') || of_get_option('custom_header') || of_get_option('custom_footer')) { ?>
<style type="text/css">
<?php
$background = of_get_option('custom_bg');
if ($background['color'] || $background['image']) {
echo 'body {';
if ($background['color']) {
echo '
background: ' .$background['color']. ';';
}
if ($background['image']) {
echo '
background: url('.$background['image']. ') ';
echo ''.$background['repeat']. ' ';
echo ''.$background['position']. ' ';
echo ''.$background['attachment']. ';';
}
echo '
}';
}
$header = of_get_option('custom_header');
if ($header['color'] || $header['image']) {
echo '.navbar-inner {';
if ($header['color']) {
echo '
background: ' .$header['color']. ';';
}
if ($header['image']) {
echo '
background: url('.$header['image']. ') ';
echo ''.$header['repeat']. ' ';
echo ''.$header['position']. ' ';
echo ''.$header['attachment']. ';';
}
echo '
}';
}
$footer = of_get_option('custom_footer');
if ($footer['color'] || $footer['image']) {
echo 'footer {';
if ($footer['color']) {
echo '
background: ' .$footer['color']. ';';
}
if ($footer['image']) {
echo '
background: url('.$footer['image']. ') ';
echo ''.$footer['repeat']. ' ';
echo ''.$footer['position']. ' ';
echo ''.$footer['attachment']. ';';
}
echo '
}';
}
?>
<?php if( of_get_option('custom_header_color') ) { ?>
.navbar .nav > li > a, .navbar .nav > li, .navbar .nav > li > a:hover{
color: <?php echo of_get_option('custom_header_color'); ?>;
}
.navbar .nav li.dropdown > .dropdown-toggle .caret
{
border-top-color: <?php echo of_get_option('custom_header_color'); ?>;
border-bottom-color: <?php echo of_get_option('custom_header_color'); ?>;
}
<?php } ?>
<?php if( of_get_option('custom_footer_color') ) { ?>
footer .span4 a, footer .span4, .footer-title{
color: <?php echo of_get_option('custom_footer_color'); ?>;
}
<?php } if( of_get_option('custom_css') ) { echo of_get_option('custom_css'); }?>
</style>
<?php } ?>
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<?php $options = get_option( 'theme_settings' ); ?>
<?php
if ( is_singular() && get_option( 'thread_comments' ) )
wp_enqueue_script( 'comment-reply' );
wp_get_archives('type=monthly&format=link');
?>
</head>
<?php flush(); ?>
<body>
<div class="top-bar"></div>
<div class="navbar">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<div class="nav-collapse collapse">
<?php wp_nav_menu( array(
'container' => 'div',
'container_class' => 'nav-collapse collapse',
'theme_location' => 'primary',
'menu_class' => 'nav',
'walker' => new Bootstrap_Walker(),
) );
?>
<form class="navbar-search" method="get" action="<?php bloginfo('siteurl')?>/">
<input type="text" name="s" id="s" class="pull-right" placeholder="Search..." onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;" />
</form>
</div>
</div>
</div>
</div>
<?php if( of_get_option('custom_logo') ) { ?>
<header>
<div class="logo"><img src="<?php echo of_get_option('custom_logo') ?>"></div>
</header>
<?php } ?>
<div class="container">