-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
159 lines (116 loc) · 5 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<!doctype html>
<!--[if lt IE 7]><html <?php language_attributes(); ?> class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if (IE 7)&!(IEMobile)]><html <?php language_attributes(); ?> class="no-js lt-ie9 lt-ie8"><![endif]-->
<!--[if (IE 8)&!(IEMobile)]><html <?php language_attributes(); ?> class="no-js lt-ie9"><![endif]-->
<!--[if gt IE 8]><!-->
<html <?php language_attributes(); ?> class="no-js">
<!--<![endif]-->
<head>
<meta charset="utf-8">
<title><?php bloginfo('name'); ?> | <?php is_front_page() ? bloginfo('description') : wp_title(''); ?></title>
<!-- Google Chrome Frame for IE -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<!-- mobile meta (hooray!) -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- icons & favicons (for more: http://themble.com/support/adding-icons-favicons/) -->
<!-- For third-generation iPad with high-resolution Retina display: -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="<?php bloginfo('stylesheet_directory'); ?>/images/favicons/apple-touch-icon-144x144-precomposed.png">
<!-- For iPhone with high-resolution Retina display: -->
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="<?php bloginfo('stylesheet_directory'); ?>/images/favicons/apple-touch-icon-114x114-precomposed.png">
<!-- For first- and second-generation iPad: -->
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="<?php bloginfo('stylesheet_directory'); ?>/images/favicons/apple-touch-icon-72x72-precomposed.png">
<!-- For non-Retina iPhone, iPod Touch, and Android 2.1+ devices: -->
<link rel="apple-touch-icon-precomposed" href="<?php bloginfo('stylesheet_directory'); ?>/images/favicons/apple-touch-icon-precomposed.png">
<!-- For non-Retina iPhone, iPod Touch, and Android 2.1+ devices: -->
<link rel="shortcut icon" href="<?php bloginfo('stylesheet_directory'); ?>/images/favicons/favicon.ico" type="image/x-icon" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
<!--<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,600,700,300' rel='stylesheet' type='text/css'>-->
<!-- wordpress head functions -->
<?php wp_head(); ?>
<!-- end of wordpress head -->
</head>
<body <?php body_class(); ?>>
<div id="container">
<header class="header">
<?php
if (get_option( 'display_top_bar', 1 ) == 1)
{
?>
<div class="top-bar-wrapper">
<?php
//get topbar classes
//fixed contain-to-grid
$sweet_foundation_topbar_classes = array();
$sweet_foundation_topbar_classes[] = 'contain-to-grid';
if (get_option( 'topbar_is_fixed', 1 ) == 1)
{
$sweet_foundation_topbar_classes[] = 'fixed';
}
?>
<div
class="<?php echo implode($sweet_foundation_topbar_classes, ' ');?>">
<nav class="container top-bar">
<ul>
<li class="name">
<!-- to use a image just replace the bloginfo('name') with your img src and remove the surrounding <p> -->
<p id="logo" class="h1">
<a href="<?php echo home_url(); ?>" rel="nofollow"><?php bloginfo('name'); ?>
</a>
</p>
</li>
<li class="toggle-topbar"><a href="#"></a></li>
</ul>
<section>
<?php // sf_topbarleft_nav(); ?>
<ul class="right">
<?php sf_topbarright_nav(); ?>
<?php if (get_option ( 'hide_topbar_search' ) != 1){ ?>
<li class="divider"></li>
<li class="search">
<form role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>">
<input type="text" placeholder="<?php echo __('Search')?>" value="" id="s" name="s">
</form>
</li>
<?php } ?>
</ul>
</section>
</nav>
</div>
</div>
<?php } ?>
<?php
if (
(is_front_page() && get_option( 'display_header_area_on_frontpage', 1 ) == 1)
||
(!is_front_page() && get_option( 'display_header_area_on_subpages', 1 ) == 1)){
?>
<!--header-->
<div class="full-width header-wrapper">
<div class="row">
<div class="twelve columns">
<h1 id="site-title" class="header-name"><span><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span></h1>
<h4 id="site-description" class="header-description"><?php bloginfo( 'description' ); ?></h4>
</div>
</div>
</div>
<!-- header end -->
<?php } ?>
<!-- if you'd like to use the site description you can un-comment it below -->
<!-- end #inner-header -->
</header>
<!-- end header -->
<?php
$contentnav = sf_content_nav();
if ($contentnav !== null && trim($contentnav) != ''){
?>
<div class="row">
<div class="twelve columns mobile-no-padding-lr">
<nav id="contentnav" class="top-nav">
<section>
<?php echo ($contentnav); ?>
</section>
</div>
</div>
<?php } ?>