-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
68 lines (63 loc) · 1.74 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
67
68
<?php
/**
* The header for our theme
*
* This is the template that displays all of the <head> section and everything up until <div class="container">
*
* @package MiniLog
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js no-svg">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php
if ( is_singular() && pings_open() ) :
echo '<link rel="pingback" href="', esc_url( get_bloginfo( 'pingback_url' ) ), '">';
endif;
wp_head();
?>
</head>
<body <?php body_class(); ?>> <!-- Top Menu -->
<?php
if ( function_exists( 'wp_body_open' ) ) {
wp_body_open();
} else {
do_action( 'wp_body_open' );
}
?>
<header>
<a class="screen-reader-text skip-link" href="#site-content">Skip to content</a>
</header>
<div class="wrapper">
<div class="top-nav">
<div class="top-container">
<div class="mini-home">
<a href="<?php echo esc_url( home_url() ); ?>"><?php echo esc_html( get_bloginfo( 'name' ) ); ?></a>
</div>
<div class="top-search">
<?php get_search_form(); // Only displayed in the mobile view by default. ?>
</div>
<div class="top-menu">
<nav id="site-navigation" class="main-navigation">
<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php esc_html_e( 'Menu', 'minilog' ); ?></button>
<?php
wp_nav_menu(
array(
'theme_location' => 'top_menu',
'menu_id' => 'top-menu',
'depth' => '2',
)
);
?>
</nav><!-- #site-navigation -->
</div>
</div>
</div>
<!-- breadcrumbs -->
<div id="site-content" class="container">
<?php
if ( function_exists( 'minilog_breadcrumb' ) ) {
minilog_breadcrumb();
}
?>