-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
170 lines (153 loc) · 7.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
<?php
/**
* The header for our theme
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Smiling_Barracuda
*/
?>
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?> data-spy="scroll" data-target=".navbar" data-offset="90">
<div id="page" class="site">
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'barracuda' ); ?></a>
<!--Page Loader-->
<div class="loader">
<div class="spinner">
<div class="dot1"></div>
<div class="dot2"></div>
</div>
</div>
<!--Page Loader ends-->
<div class="parallax-content">
<header>
<section>
<h2 class="sr-only">This is home section</h2>
<!-- Navigation -->
<nav class="navbar navbar-default navbar-fixed navbar-fixed-top ">
<div class="menu-icon-position hidden-lg hidden-md hidden-sm">
<div class="menu-icon">
<span></span>
</div>
</div>
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-menu"><i class="fa fa-bars"></i></button>
<?php if ( function_exists('fw_get_db_settings_option') ):?>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" class="navbar-brand"><img src="<?php echo fw_get_db_settings_option('logo')['url']?>" alt="<?php bloginfo( 'name' );?>" class="logo-display"><img src="<?php echo fw_get_db_settings_option('logo_sticky')['url']?>" class="logo-scrolled" alt="<?php bloginfo( 'name' );?>">
</a>
<?php else:
get_option( 'blogname' );
endif;?>
</div>
<div class="navbar-search-box-icon" data-aos="fade-down">
<a href="#" class="search-icon scroll">
<i class="fa fa-search"> </i>
</a>
</div>
<?php
//$data = fw_get_db_settings_option();
// or even refer to individual options, for performance's sake
//$individual_option = fw_get_db_settings_option('logo');
//echo $individual_option['url'];
//fw_print($data);
//fw_print($individual_option);
?>
<?php
wp_nav_menu( array(
'menu' => 'primary',
'theme_location' => 'primary',
'items_wrap' => '<ul class="nav navbar-nav navbar-right" data-in="fadeInDown" data-out="fadeOutUp">%3$s</ul>',
'container_class' => 'collapse navbar-collapse',
'container_id' => 'navbar-menu'
));
?>
<div class="navbar-search-box" id="search-box">
<div class="navbar-search-box-data">
<form>
<input type="search" placeholder="type keyword(s) here" class="form-control" id="search">
<div class="navbar-search-box-button">
<a href="#." class="btn button-blue page-buttons button">
Search
</a>
</div>
</form>
</div>
</div>
</div>
</nav>
<!--Header ends-->
<!--Full Menu-->
<div class="full-menu">
<div class="menu-icon active">
<span></span>
</div>
<div class="open-full-menu-center">
<div class="container">
<div class="row">
<div class="col-sm-12 columns half text-center">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="logo-full heading_space"><img src="<?php echo get_theme_mod('header_logo', 'No Logo has been provided yet.')?>" alt="<?php bloginfo( 'name' ); ?>"></a>
</div>
<?php
wp_nav_menu( array(
'menu' => 'primary',
'theme_location' => 'primary',
'container_class' => 'col-sm-12 columns half text-left',
'menu_class' => 'full-nav top20 heading_space'
));
?>
<?php if( get_theme_mod('url_field_twitter') ||
get_theme_mod('url_field_linkedin') ||
get_theme_mod('url_field_facebook') ||
get_theme_mod('url_field_google')):?>
<div class="col-sm-12">
<ul class="social">
<?php if(get_theme_mod('url_field_twitter')):?>
<li>
<a href="<?php echo get_theme_mod('url_field_twitter')?>" target="_blank" class="twitter button">
<i class="fa fa-twitter" ></i>
</a>
</li>
<?php endif;?>
<?php if(get_theme_mod('url_field_linkedin')):?>
<li>
<a href="<?php echo get_theme_mod('url_field_linkedin')?>" target="_blank" class="linkedin button">
<i class="fa fa-linkedin" ></i>
</a>
</li>
<?php endif;?>
<?php if(get_theme_mod('url_field_facebook')):?>
<li>
<a href="<?php echo get_theme_mod('url_field_facebook')?>" target="_blank" class="facebook button">
<i class="fa fa-facebook" ></i>
</a>
</li>
<?php endif;?>
<?php if(get_theme_mod('url_field_google')):?>
<li>
<a href="<?php echo get_theme_mod('url_field_google')?>" target="_blank" class="google button">
<i class="fa fa-google" ></i>
</a>
</li>
<?php endif;?>
</ul>
</div>
<?php endif;?>
</div>
</div>
</div>
</div>
</section>
</header>
<!--Full Menu-->
<!-- Navigation End -->
<div id="content" class="site-content">