-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
executable file
·46 lines (44 loc) · 1.37 KB
/
Copy pathheader.php
File metadata and controls
executable file
·46 lines (44 loc) · 1.37 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Faster_py</title>
<?php wp_head(); ?>
</head>
<body <?php body_class('faster') ?>>
<header>
<div class="container">
<div class="row">
<div class="col">
<?php
$custom_logo_id = get_theme_mod('custom_logo');
$logo = wp_get_attachment_image_src($custom_logo_id, 'full');
if (has_custom_logo()) {
echo '<img src="' . esc_url($logo[0]) . '" class="logo" alt="' . get_bloginfo('name') . '">';
} else {
echo '<h1>' . get_bloginfo('name') . '</h1>';
}
?>
<h5><?php bloginfo('description'); ?></h5>
</div>
<div class="col">
<nav id="web-menu">
<?php wp_nav_menu(array(
'theme_location' => 'header-menu',
'container_class' => 'header-menu',
'container_id' => 'header-menu'
)); ?>
</nav>
<nav id="mobile-menu">
<?php wp_nav_menu(array(
'theme_location' => 'mobile-menu',
'container_class' => 'mobile-menu',
'container_id' => 'mobile-menu'
)); ?>
</nav>
</div>
</div>
</div>
</header>