-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathheader.php
66 lines (63 loc) · 3.04 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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title></title>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php
$custom_logo_id = get_theme_mod('custom_logo');
$custom_loader_id = get_theme_mod('site_loader');
?>
<!-- <div class="loader">
<div class="request-loader">
<div class="img-container">
<?php echo wp_get_attachment_image($custom_loader_id, ['120', '120'], true); ?>
</div>
</div>
</div> -->
<!-- ----------------------------------------------------- nav start ------------------------------------------------------------ -->
<div id="mySidenav" class="sidenav">
<div class="sidebar-header">
<h3 class="title"><?php _e('Main Menu', 'cm_theme'); ?></h3>
<a href="javascript:void(0)" class="closebtn">×</a>
</div>
<?php
wp_nav_menu(array(
'theme_location' => 'header-menu',
'depth' => 3,
'container' => false,
'menu_class' => 'd-flex flex-column mobile-menu',
));
?>
</div>
<div class="nav-container">
<div class="container-fluid">
<div class="row">
<div class="col-12">
<nav class="navbar navbar-expand-lg navbar-dark">
<a class="navbar-brand" href="#"><?php echo wp_get_attachment_image($custom_logo_id, 'thumbnail', true, ['class' => 'site-logo']); ?></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse d-none d-lg-block" id="navbarSupportedContent">
<?php
wp_nav_menu(array(
'theme_location' => 'header-menu',
'depth' => 3,
'container' => false,
'menu_class' => 'navbar-nav ml-auto navbar-nav-scroll',
'fallback_cb' => 'WP_Bootstrap_Navwalker::fallback',
'walker' => new WP_Bootstrap_Navwalker(),
));
?>
<a href="#" class="btn quick-request"><?php _e('Quick Request', 'cm_theme'); ?></a>
</div>
</nav>
</div>
</div>
</div>
</div>
<!-- ----------------------------------------------------- nav end ------------------------------------------------------------ -->