forked from elmastudio/aino-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
106 lines (85 loc) · 2.83 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
<?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 Aino
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="profile" href="http://gmpg.org/xfn/11">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<div id="page" class="site">
<header id="site-header" class="site-header" role="banner">
<div class="header-inner section-inner outer-margins">
<div class="site-branding">
<?php
// Site title or logo.
aino_site_logo();
// Site description.
aino_site_description();
?>
</div><!-- .site-branding -->
<div id="nav-container" class="nav-container">
<?php if ( has_nav_menu( 'primary' ) ) : ?>
<button class="toggle nav-toggle mobile-nav-toggle" data-toggle-target=".menu-modal" data-toggle-body-class="showing-menu-modal" aria-expanded="false" data-set-focus=".close-nav-toggle">
<span class="toggle-inner">
<?php echo aino_get_svg( array( 'icon' => 'toggle-open' ) ); ?>
<span class="toggle-text"><?php esc_html_e( 'Menu', 'aino' ); ?></span>
</span>
</button><!-- .nav-toggle -->
<div class="header-navigation-wrapper">
<nav class="primary-menu-wrapper" aria-label="<?php esc_attr_e( 'Horizontal', 'aino' ); ?>" role="navigation">
<ul class="primary-menu reset-list-style">
<?php
if ( has_nav_menu( 'primary' ) ) {
wp_nav_menu(
array(
'container' => '',
'items_wrap' => '%3$s',
'theme_location' => 'primary',
)
);
}
?>
</ul><!-- .primary-menu -->
</nav><!-- .primary-menu-wrapper -->
</div><!-- .header-navigation-wrapper -->
<?php endif; ?>
</div><!-- .nav-container -->
<?php if ( has_nav_menu( 'social' ) ) : ?>
<?php get_template_part( 'template-parts/navigation/navigation', 'social' ); ?>
<?php endif; ?>
<?php if ( has_nav_menu( 'cta-header' ) ) : ?>
<?php
wp_nav_menu(
array(
'theme_location' => 'cta-header',
'container_class' => 'header-cta-wrap',
'depth' => 1,
)
);
?>
<?php endif; ?>
<?php if ( true === get_theme_mod( 'header_search' ) ) : ?>
<div class="search-header">
<?php get_search_form(); ?>
</div><!-- end .search-header -->
<?php endif; ?>
</div><!-- .header-inner -->
</header><!-- .site-header -->
<?php
// Output the menu modal.
get_template_part( 'template-parts/navigation/modal-menu' );
?>
<div class="content-wrap">
<div id="site-content" class="site-content">