-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
98 lines (77 loc) · 2.69 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
<?php
/**
* The header for Web Wave Theme
*
* @package web-wave
* @version 1.0.1
*/
// For top header
$header_status = web_wave_get_option( 'show_top_header' );
$back_to_top_type = web_wave_get_option( 'back_to_top_type' );
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js no-svg">
<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(); ?>>
<?php
if ( function_exists( 'wp_body_open' ) ) {
wp_body_open();
}
else { do_action( 'wp_body_open' ); }
if($back_to_top_type == 'enable'): ?>
<div id="backTop"><i class="fa fa-arrow-up" aria-hidden="true"></i></div>
<?php endif; ?>
<a class="skip-link screen-reader-text"
href="#content"><?php esc_html_e('Skip to content', 'web-wave'); ?></a>
<?php if( $header_status == '1' ): ?>
<!-- Topbar -->
<div class="tm-topbar">
<div class="container">
<!-- Social Links -->
<div class="social-icons">
<?php do_action( 'web_wave_top_header_social_icon' );?>
</div>
<!-- /Social Links -->
</div>
</div>
<!-- /Topbar -->
<?php endif; ?>
<!-- Menu Bar -->
<div class="menu-bar default">
<div class="container">
<div class="logo-top">
<?php get_template_part( 'template-parts/header/site', 'branding' ); ?></a>
</div>
<nav id="site-navigation" class="main-navigation" itemtype="https://schema.org/SiteNavigationElement" itemscope="">
<button class="manu-toggler" aria-controls="primary-menu" aria-expanded="false">
<span></span>
</button>
<?php if ( has_nav_menu( 'primary' ) ) : ?>
<div class="menu-links">
<?php wp_nav_menu( array(
'theme_location' => 'primary',
'menu_id' => 'primary-menu',
'menu_class' => 'main-menu nav navbar-nav nav-menu',
) );
?>
</div>
<?php endif; ?>
</nav>
</div>
</div>
<!-- /Menu Bar -->
<?php
// Custom image.
global $header_image, $header_style;
$header_image = get_header_image();
if( $header_image ){
$header_style = 'style="background-image: url('.esc_url( $header_image ).');"';
} else{
$header_style = '';
}
?>