-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathheader.php
More file actions
137 lines (98 loc) · 3.53 KB
/
header.php
File metadata and controls
137 lines (98 loc) · 3.53 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
<?php
/**
* The Header for our theme.
* Displays all of the <head> section and everything up till <div id="wrap">
*
* @package Natural Lite
* @since Natural Lite 1.0
*/
?><!DOCTYPE html>
<html class="no-js" <?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">
<link rel="pingback" href="<?php echo esc_url( bloginfo( 'pingback_url' ) ); ?>">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<!-- BEGIN #wrap -->
<div id="wrap">
<!-- BEGIN .container -->
<div class="container">
<!-- BEGIN #header -->
<div id="header" class="radius-full">
<!-- BEGIN .row -->
<div class="row">
<?php $header_image = get_header_image(); if ( ! empty( $header_image ) ) { ?>
<div id="custom-header" class="radius-top">
<div class="header-img background-cover" <?php if ( ! empty( $header_image ) ) { ?> style="background-image: url(<?php header_image(); ?>);"<?php } ?>>
<div class="logo-title">
<?php the_custom_logo(); ?>
<?php if ( is_front_page() && is_home() ) { ?>
<h1 class="site-title">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php echo wp_kses_post( get_bloginfo( 'name' ) ); ?></a>
</h1>
<h2 class="site-description">
<?php echo wp_kses_post( get_bloginfo( 'description' ) ); ?>
</h2>
<?php } else { ?>
<p class="site-title">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php echo wp_kses_post( get_bloginfo( 'name' ) ); ?></a>
</p>
<p class="site-description">
<?php echo wp_kses_post( get_bloginfo( 'description' ) ); ?>
</p>
<?php } ?>
</div>
</div>
</div>
<?php } else { ?>
<div id="custom-header">
<div class="logo-title">
<?php the_custom_logo(); ?>
<?php if ( is_front_page() && is_home() ) { ?>
<h1 class="site-title">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php echo wp_kses_post( get_bloginfo( 'name' ) ); ?></a>
</h1>
<h2 class="site-description">
<?php echo wp_kses_post( get_bloginfo( 'description' ) ); ?>
</h2>
<?php } else { ?>
<p class="site-title">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php echo wp_kses_post( get_bloginfo( 'name' ) ); ?></a>
</p>
<p class="site-description">
<?php echo wp_kses_post( get_bloginfo( 'description' ) ); ?>
</p>
<?php } ?>
</div>
</div>
<?php } ?>
<!-- END .row -->
</div>
<!-- BEGIN .row -->
<div class="row">
<!-- BEGIN #navigation -->
<nav id="navigation" class="navigation-main <?php if ( ! empty( $header_image ) ) { ?>radius-bottom<?php } else { ?>radius-full<?php } ?>" role="navigation">
<h1 class="menu-toggle"><?php esc_html_e( 'Menu', 'natural-lite' ); ?></h1>
<?php
if ( has_nav_menu( 'header-menu' ) ) {
wp_nav_menu( array(
'theme_location' => 'header-menu',
'title_li' => '',
'depth' => 4,
'container_class' => 'menu-container',
'menu_class' => 'menu',
) );
} else {
?>
<ul class="menu"><?php wp_list_pages( 'title_li=&depth=4' ); ?></ul>
<?php } ?>
<!-- END #navigation -->
</nav>
<!-- END .row -->
</div>
<!-- END #header -->
</div>