-
Notifications
You must be signed in to change notification settings - Fork 2
/
header.php
60 lines (42 loc) · 1.76 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?php if( get_theme_mod( 'meta_descript_setting') != "" ): ?>
<meta name="description" content="<?php echo get_theme_mod( 'meta_descript_setting'); ?>" />
<?php endif; ?>
<title><?= get_bloginfo('name'); ?></title>
<?php wp_head(); ?>
</head>
<body>
<div class="header" id="navbar">
<div class="column-left">
<?php
$custom_logo = get_theme_mod('custom_logo');
$logo_url = wp_get_attachment_image_url($custom_logo, 'small');
?>
<?php if ($custom_logo): ?>
<a href="<?= get_site_url(); ?>"><img src="<?= $logo_url ?>" alt="Logo" class="logo"></a>
<?php endif; ?>
</div>
<div class="column-right">
<i class="fas fa-bars visible-mobile hamburger-icon" id="hamburgerIcon"></i>
<div class="nav" id="mobileMenu">
<?php if ( has_nav_menu( 'header_nav' ) ) {
wp_nav_menu( array(
'theme_location' => 'header_nav',
'walker' => new child_wrap()
) );
} ?>
</div>
<?php if ( has_nav_menu( 'header_cta' ) ) {
wp_nav_menu( array(
'theme_location' => 'header_cta',
'container_class' => 'cta-header visible-desktop',
'container_id' => 'headerCta'
) );
} ?>
</div>
</div>
<div class="drop-shadow" id="dropshadow"></div>