-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathheader.php
More file actions
110 lines (75 loc) · 2.32 KB
/
header.php
File metadata and controls
110 lines (75 loc) · 2.32 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
<?php
/**
* The Header for our theme.
* Displays all of the <head> section and everything up till <div id="wrap">
*
* @package Swell Lite
* @since Swell 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 bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<!-- BEGIN #wrapper -->
<div id="wrapper">
<!-- BEGIN .container -->
<div class="container">
<?php if ( has_nav_menu( 'fixed-menu' ) ) { ?>
<!-- BEGIN #navigation -->
<nav id="navigation" class="navigation-main fixed-nav clearfix" role="navigation">
<button class="menu-toggle"><i class="fa fa-bars"></i></button>
<?php
wp_nav_menu(
array(
'theme_location' => 'fixed-menu',
'title_li' => '',
'depth' => 4,
'container_class' => '',
'menu_class' => 'menu',
)
);
?>
<!-- END #navigation -->
</nav>
<?php } ?>
<!-- BEGIN #header -->
<div id="header">
<?php $header_image = get_header_image(); if ( ! empty( $header_image ) ) { ?>
<div id="custom-header" style="background-image: url(<?php header_image(); ?>);">
<?php get_template_part( 'content/logo', 'title' ); ?>
<img class="hide-img" src="<?php header_image(); ?>" height="<?php echo esc_attr( get_custom_header()->height ); ?>" width="<?php echo esc_attr( get_custom_header()->width ); ?>" alt="<?php echo esc_attr( get_bloginfo() ); ?>" />
</div>
<?php } else { ?>
<div id="custom-header" class="non-active">
<?php get_template_part( 'content/logo', 'title' ); ?>
</div>
<?php } ?>
<!-- END #header -->
</div>
<?php if ( has_nav_menu( 'main-menu' ) ) { ?>
<!-- BEGIN #navigation -->
<nav id="navigation" class="navigation-main clearfix" role="navigation">
<?php if ( ! has_nav_menu( 'fixed-menu' ) ) { ?>
<button class="menu-toggle"><i class="fa fa-bars"></i></button>
<?php } ?>
<?php
wp_nav_menu(
array(
'theme_location' => 'main-menu',
'title_li' => '',
'depth' => 4,
'container_class' => '',
'menu_class' => 'menu',
)
);
?>
<!-- END #navigation -->
</nav>
<?php } ?>