This repository has been archived by the owner on Jul 15, 2020. It is now read-only.
/
header.php
208 lines (175 loc) · 8.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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
<!--[if lt IE 9]>
<script src="<?php echo esc_url( get_template_directory_uri() ); ?>/js/html5.js"></script>
<![endif]-->
</head>
<body <?php body_class(); ?> itemscope="itemscope" itemtype="http://schema.org/WebPage">
<div class="container">
<header itemscope="itemscope" itemtype="http://schema.org/WPHeader">
<div class="row site-masthead-container">
<div class="col-md-12">
<div class="site-masthead">
<nav itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement">
<ul class="mastheadnav responsive_menu">
<?php
if ( has_nav_menu( 'masthead' ) ) {
wp_nav_menu( array('theme_location' => 'masthead', 'container' => false, 'items_wrap' => '%3$s'));
} else {
wp_list_pages('sort_column=menu_order&title_li=');
}
?>
<?php if (get_option('sharp_socialhead' ) == 1) { ?>
<li class="pull-right social_header">
<?php
$icon_facebook = get_option('sharp_facebook');
$icon_twitter = get_option('sharp_twitter');
$icon_gplus = get_option('sharp_gplus');
$icon_linkedin = get_option('sharp_linkedin');
$icon_pinterest = get_option('sharp_pinterest');
$icon_tumblr = get_option('sharp_tumblr');
$icon_instagram = get_option('sharp_instagram');
$icon_youtube = get_option('sharp_youtube');
$icon_vimeo = get_option('sharp_vimeo');
$icon_rss = get_option('sharp_sitefeed');
?>
<?php if ( $icon_facebook <> "" ) { ?>
<a href="<?php echo $icon_facebook; ?>" data-toggle="tooltip" title="<?php _e('Facebook', 'gabfire'); ?>" rel="nofollow"><span><?php _e('Friend on Facebook','gabfire'); ?></span>
<i class="fa fa-facebook pull-left"></i>
</a>
<?php } ?>
<?php if ( $icon_twitter <> "" ) { ?>
<a href="<?php echo $icon_twitter; ?>" title="<?php _e('Twitter', 'gabfire'); ?>" rel="nofollow"><span><?php _e('Follow on Facebook','gabfire'); ?></span>
<i class="fa fa-twitter pull-left"></i>
</a>
<?php } ?>
<?php if ( $icon_gplus <> "" ) { ?>
<a href="<?php echo $icon_gplus; ?>" title="<?php _e('Google+', 'gabfire'); ?>" rel="nofollow"><span><?php _e('Add to Google+ Circle','gabfire'); ?></span>
<i class="fa fa-google-plus pull-left"></i>
</a>
<?php } ?>
<?php if ( $icon_linkedin <> "" ) { ?>
<a href="<?php echo $icon_linkedin; ?>" title="<?php _e('LinkedIn', 'gabfire'); ?>" rel="nofollow"><span><?php _e('Connect on Linked in','gabfire'); ?></span>
<i class="fa fa-linkedin pull-left"></i>
</a>
<?php } ?>
<?php if ( $icon_pinterest <> "" ) { ?>
<a href="<?php echo $icon_pinterest; ?>" title="<?php _e('Pinterest', 'gabfire'); ?>" rel="nofollow"><span><?php _e('Follow on Pinterest','gabfire'); ?></span>
<i class="fa fa-pinterest pull-left"></i>
</a>
<?php } ?>
<?php if ( $icon_tumblr <> "" ) { ?>
<a href="<?php echo $icon_tumblr; ?>" title="<?php _e('tumblr', 'gabfire'); ?>" rel="nofollow"><span><?php _e('Follow on Tumblr','gabfire'); ?></span>
<i class="fa fa-tumblr pull-left"></i>
</a>
<?php } ?>
<?php if ( $icon_instagram <> "" ) { ?>
<a href="<?php echo $icon_instagram; ?>" title="<?php _e('Instagram', 'gabfire'); ?>" rel="nofollow"><span><?php _e('Find on Instagram','gabfire'); ?></span>
<i class="fa fa-instagram pull-left"></i>
</a>
<?php } ?>
<?php if ( $icon_vimeo <> "" ) { ?>
<a href="<?php echo $icon_vimeo; ?>" title="<?php _e('Vimeo', 'gabfire'); ?>" rel="nofollow"><span><?php _e('Watch on Vimeo','gabfire'); ?></span>
<i class="fa fa-vimeo-square pull-left"></i>
</a>
<?php } ?>
<?php if ( $icon_youtube <> "" ) { ?>
<a href="<?php echo $icon_youtube; ?>" title="<?php _e('Youtube', 'gabfire'); ?>" rel="nofollow"><span><?php _e('Watch on YouTube','gabfire'); ?></span>
<i class="fa fa-youtube pull-left"></i>
</a>
<?php } ?>
<?php if ( $icon_rss <> "" ) { ?>
<a href="<?php echo bloginfo('rss2_url'); ?>" title="<?php _e('Site feed', 'gabfire'); ?>" rel="nofollow">
<span><?php _e('Subscribe to RSS','gabfire'); ?></span> <i class="fa fa-rss pull-left"></i>
</a>
<?php } ?>
</li>
<?php } ?>
<li class="pull-right gabfire_headersearch"> <a data-toggle="modal" href="#searchModal"><i class="fa fa-search"></i> <?php _e('Search','gabfire'); ?></a></li>
</ul>
</nav>
<!-- Modal -->
<div class="modal fade" id="searchModal" tabindex="-1" role="dialog" aria-labelledby="searchModal" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title"><?php _e('Search in Site','gabfire'); ?></h4>
</div>
<div class="modal-body">
<form action="<?php echo esc_url( home_url( '/' ) ); ?>">
<div class="input-prepend">
<label><?php _e('To search in site, type your keyword and hit enter', 'gabfire'); ?></label>
<input type="text" name="s" class="form-control" placeholder="<?php _e('Type keyword and hit enter', 'gabfire'); ?>">
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><?php _e('Close','gabfire'); ?></button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
</div>
</div>
</div><!-- /.row -->
<div class="row logo-banner">
<div class="col-sm-12 col-md-12 col-lg-4">
<div class="sitelogo" style="padding:<?php echo get_option('sharp_padding_top', 0); ?>px 0px <?php echo get_option('sharp_padding_bottom', 0); ?>px <?php echo get_option('sharp_padding_left', 0); ?>px;">
<?php if ( get_option('sharp_logo_type') == 'image') { ?>
<div itemprop="headline">
<a href="<?php echo home_url('/'); ?>" title="<?php bloginfo('description'); ?>">
<img src="<?php echo get_option('sharp_logo'); ?>" alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('name'); ?>"/>
</a>
</div>
<?php } else { ?>
<h1 itemprop="headline">
<a href="<?php echo home_url('/'); ?>" title="<?php bloginfo('name'); ?>"><?php echo get_bloginfo('name'); ?></a>
<span><a itemprop="description" href="<?php echo home_url('/'); ?>" title="<?php bloginfo('description'); ?>"><?php echo get_option('description'); ?></a></span>
</h1>
<?php } ?>
<div class="clearfix"></div>
</div><!-- .logo -->
</div>
<div class="headerbanner col-sm-12 col-md-12 col-lg-8 pull-right hidden-xs">
<div class="innerad">
<?php sharp_dynamic_sidebar('header-ad'); ?>
</div>
</div>
</div>
<div class="row site-nav">
<div class="col-md-12">
<nav class="main-navigation" itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement">
<ul class="mainnav responsive_menu">
<?php
if ( has_nav_menu( 'primary' ) ) {
wp_nav_menu( array('theme_location' => 'primary', 'container' => false, 'items_wrap' => '%3$s'));
} else {
wp_list_categories('title_li=');
}
$colored_nav_text = get_option('sharp_navcolortext');
$colored_nav_link = get_option('sharp_navcolorlink');
$colored_nav_color = get_option('sharp_navcolor1');
?>
<?php if ($colored_nav_link <> '') { ?>
<li class="colored-nav-item">
<a href="<?php echo $colored_nav_link; ?>" style="background-color:<?php echo $colored_nav_color; ?>"><?php echo $colored_nav_text; ?></a>
</li><?php echo "\n";
}
?>
</ul>
</nav>
</div>
</div>
<div class="header-below">
<div>
<?php sharp_dynamic_sidebar('header-ad-below'); ?>
</div>
</div>
</header>