-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
62 lines (51 loc) · 1.59 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
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset') ?>">
<meta http-equiv="content-type" content="<?php bloginfo('html_type') ?>">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title><?php bloginfo('title') ?><?php wp_title('|', true, 'left'); ?></title>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<header>
<nav class="container">
<div class="nav__left">
<?php
if (function_exists('the_custom_logo')) {
the_custom_logo();
}
?>
<div class="nav__toggle" id="main-nav-toggle">
<i class="ri-menu-line nav__burger"></i>
<i class="ri-close-line nav__close"></i>
</div>
</div>
<div class="nav__center">
<?php
wp_nav_menu(array(
'theme_location' => 'main-menu',
'container' => 'div',
'container_id' => 'main-nav-menu',
'container_class' => 'nav__menu',
'menu_class' => 'nav__list',
'depth' => 1
));
?>
</div>
<div class="nav__right">
<?php
wp_nav_menu(array(
'theme_location' => 'social-menu',
'container' => 'div',
'container_id' => 'social-nav-menu',
'container_class' => 'nav__menu',
'menu_class' => 'nav__list',
'depth' => 1
));
?>
</div>
</nav>
</header>
<main id="swup" class="transition-fade">