-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathheader.php
More file actions
162 lines (121 loc) · 4.92 KB
/
header.php
File metadata and controls
162 lines (121 loc) · 4.92 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<!DOCTYPE html>
<html <?php language_attributes(); ?> >
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<title><?php wp_title('|', true, 'right'); ?><?php bloginfo('name'); ?> </title>
<meta name="author" content="" >
<!-- Mobile Specific Meta -->
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1" />
<!-- Stylesheets -->
<link rel="stylesheet" href="<?php echo get_stylesheet_uri(); ?>" media="all" />
<!--[if lt IE 9]>a
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif] -->
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<!-- Script required for extra functionality on the comment form -->
<?php if (is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>
</head>
<body <?php body_class() ?> >
<?php $options = get_option( 'exray_custom_settings' ); ?>
<!--[if lte IE 8 ]>
<noscript>
<strong>JavaScript is required for this website to be displayed correctly. Please enable JavaScript before continuing...</strong>
</noscript>
<![endif]-->
<div id="page" class="wrap">
<div class="header-container">
<header class="top-header" id="top" role="banner">
<div class="top-menu-container">
<div class="container">
<nav class="top-menu-navigation clearfix" role="navigation">
<?php
wp_nav_menu( array(
'theme_location' => 'top-menu',
'container' => false,
'container_class' => false,
'menu_class' => false,
'fallback_cb' => 'Exray::default_menu_fallback'
) );
?>
</nav>
<a href="" class="small-button menus" id="adaptive-top-nav-btn"><?php _e('Menu','exray-framework'); ?></a>
<div class="adaptive-top-nav"></div> <!-- End adaptive-top-nav -->
<!-- End top-menu-navigation -->
</div>
<!-- End container -->
</div>
<!-- End top-menu-container -->
<div class="container" id="header-wrap">
<div class="row">
<div class="span6 logo-container">
<?php if($options['display_logo'] != 0) : ?>
<?php if(is_home()) : ?>
<!-- Display logo Image -->
<h1 class="logo">
<a href="<?php echo home_url(); ?>">
<img src="<?php echo $options['exray_theme_logo']; ?>" alt="<?php bloginfo('name')?> | <?php bloginfo('description')?>" />
</a>
</h1>
<?php else: ?>
<p class="logo">
<a href="<?php echo home_url(); ?>">
<img src="<?php echo $options['exray_theme_logo']; ?>" alt="<?php bloginfo('name')?> | <?php bloginfo('description')?>" />
</a>
</p>
<?php endif; ?>
<?php else: ?>
<?php if(is_home()) : ?>
<!-- Display text logo and tagline -->
<hgroup class="text-logo">
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
</hgroup>
<?php else: ?>
<!-- Display text logo and tagline -->
<hgroup class="text-logo">
<p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
<p class="site-description"><?php bloginfo( 'description' ); ?></p>
</hgroup>
<?php endif; ?>
<?php endif; ?>
</div>
<!-- End span3 -->
<div class="span6 clearfix">
<?php if($options['display_top_ad'] && $options['top_ad'] !='') : ?>
<aside id="header-widget" class="right-header-widget fr top-widget" role="complementary">
<figure class="banner">
<a href="<?php echo $options['top_ad_link']; ?>"><img src="<?php echo $options['top_ad']; ?>" class="centered" alt="Ad"></a>
</figure>
</aside>
<!-- End Header Widget -->
<?php endif; ?>
</div>
<!-- End Span9 -->
</div>
<!-- End row -->
</div>
<!-- End container -->
<div class="main-menu-container">
<div class="container">
<nav class="main-menu-navigation clearfix" role="navigation">
<?php
wp_nav_menu( array(
'theme_location' => 'main-menu',
'container' => false,
'container_class' => false,
'menu_class' => false,
'fallback_cb' => 'Exray::default_menu_fallback'
) );
?>
</nav>
<a href="" class="small-button menus" id="adaptive-main-nav-btn"><?php _e('Menu','exray-framework'); ?></a>
<div class="adaptive-main-nav"></div> <!-- End adaptive-main-nav -->
</div>
<!-- End container -->
</div>
<!-- End main-menu-container -->
</header>
<!-- End top-main-header -->
</div>
<!-- End header-container -->