-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
94 lines (88 loc) · 4.35 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
<?php
/*
* Name: header
* This is the site-header template file.
* This file contains the tags necessary to proofread the header section of your site.
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="<?php bloginfo('description'); ?>">
<link rel="profile" href="https://gmpg.org/xfn/11">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<div class="body__wrap">
<header>
<div class="container">
<div class="header__wrap">
<a class="skip-link" href="#main"><?php _e('Skip to content', 'movaone'); ?></a>
<div class="header__logo">
<?php movaone_logo(); ?>
<a class="header__logo__link" href="<?php echo esc_url(home_url('/')); ?>">
<span class="header__logo__title"><?php bloginfo('name') ?></span>
</a>
</div>
<div class="header__nav">
<div class="header__link">
<a href="<?php echo movaone_cta_link(); ?>"
class="header__link__button"><?php echo esc_html(get_theme_mod('cta_button_text', 'CTA BUTTON')); ?></a>
</div>
<button data-collapse-toggle="header-menu-modal" type="button" class="header__menu__button"
aria-controls="header-menu-modal" aria-expanded="false">
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
<span class="sr-only"><?php esc_html_e('Open main menu', 'movaone'); ?></span>
</button>
</div>
</div>
<div id="header-menu-modal" class="header__menu" aria-modal="true" aria-label="header-menu" aria-hidden="true">
<div class="modal-content">
<?php
wp_nav_menu(array(
'menu' => 'header-menu',
'container' => 'ul',
'container_class' => '',
'container_id' => '',
'container_aria_label' => '',
'menu_class' => 'header__menu__list',
'menu_id' => 'header-menu',
'echo' => true,
'fallback_cb' => 'wp_page_menu',
'before' => '',
'after' => '',
'link_before' => '',
'link_after' => '',
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>',
'item_spacing' => 'preserve',
'depth' => 3,
'walker' => '',
'theme_location' => 'primary',
));
?>
</div>
<button data-collapse-toggle="header-menu-modal" type="button" class="header__menu__close"
aria-controls="header-menu-modal" aria-expanded="false">
<span><?php esc_html_e('Close main menu', 'movaone'); ?></span>
</button>
</div>
</div>
</header>
<div class="content__wrap">
<aside>
<div class="aside__wrap">
<div class="aside__title">
<?php
$page_id = get_page_by_path('aside');
if ($page_id) {
echo apply_filters('the_content', $page_id->post_content);
}
?>
</div>
</div>
</aside>