-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
114 lines (96 loc) · 3.3 KB
/
Copy pathheader.php
File metadata and controls
114 lines (96 loc) · 3.3 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
<?php
/**
* The header for sara-log Theme
*
* @package sara-log
* @version 1.0.1
*/
// For top header
$header_status = sara_get_option( 'show_top_header' );
$back_to_top_type = sara_get_option( 'back_to_top_type' );
$unique_id = esc_attr( uniqid( 'search-form-' ) );
?>
<!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="ion-ios7-arrow-thin-up" aria-hidden="true"></i></div>
<?php endif; ?>
<a class="skip-link screen-reader-text"
href="#content"><?php esc_html_e('Skip to content', 'sara-log'); ?></a>
<?php if( $header_status == '1' ): ?>
<!-- Topbar -->
<div class="sara-log-topbar">
<div class="container">
<!-- Social Links -->
<div class="row">
<div class="col-md-4">
<div class="social-icons">
<?php do_action('top_sara_header_social_icon'); ?>
</div>
</div>
<!-- /Social Links -->
<!-- Language and search -->
<div class="col-md-5">
<?php echo do_action('sara_header_menu'); ?>
</div>
</div>
<!-- /Language and search -->
</div>
</div>
<!-- /Topbar -->
<?php endif; ?>
<!-- Menu Bar -->
<div class="menu-bar default">
<div class="container">
<div class="col-md-12">
<div class="logo-top">
<?php get_template_part( 'template-parts/header/site', 'branding' ); ?></a>
</div>
</div>
</div>
<div class="menu-wrapper">
<div class="container">
<div class="row">
<div class="col-md-12">
<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',
) );
?>
</div>
</nav>
</div>
</div>
<?php endif; ?>
</div>
</div>
</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 = '';
}
?>