-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
67 lines (61 loc) · 1.82 KB
/
header.php
File metadata and controls
67 lines (61 loc) · 1.82 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html lang="en" class="has-navbar-fixed-top">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="shortcut icon" href="<?php bloginfo('template_directory');?>/assets/img/favicon.png">
<title>
<?php
if ( is_tag() ) {
single_tag_title("Archive for tag ""); echo '"';
} elseif ( is_archive() ) {
echo wp_title(''); echo ' Archive';
} elseif ( is_search() ) {
echo 'Search "' . wp_specialchars($s) . '"';
} elseif ( !is_404() && (is_single() || is_page()) ) {
echo wp_title('');
} elseif ( is_404() ) {
echo '404 Not Found';
}
if ($paged > 1) {
echo 'Page ' . $paged;
}
if ( is_home() ) {
bloginfo('name');
} else {
echo ' • '; bloginfo('name');
}
?>
</title>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<header class="header">
<nav class="navbar is-dark is-fixed-top">
<div class="container">
<div class="navbar-brand">
<a href="<?php bloginfo('url'); ?>" class="navbar-item navbar-logo">
<img src="<?php assets_path('img/logo_white.svg')?>" alt="logo">
</a>
<span class="navbar-burger burger nav-trigger">
<span></span>
<span></span>
<span></span>
</span>
</div>
<div class="navbar-menu">
<?php
wp_nav_menu(
array (
'theme_location' => 'main-menu',
'container' => null,
'items_wrap' => '<div class="navbar-start">%3$s</div>'
)
);
?>
</div>
</div>
</nav>
</header>
<main>