This repository was archived by the owner on Jan 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathheader.php
More file actions
57 lines (50 loc) · 1.64 KB
/
header.php
File metadata and controls
57 lines (50 loc) · 1.64 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
<?php
/**
* The header for our theme.
*
* Displays all of the <head> section and everything up till <div class="page-content">
*
* @package Briar
* @since 1.0
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php
$header_classes = array( 'header', 'header--borders' );
if ( is_single() && has_post_thumbnail() ) {
$header_classes[] = 'header--transparent';
}
?>
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'briar' ); ?></a>
<header class="<?php echo esc_attr( join( ' ', $header_classes ) ); ?>" role="banner">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="header__inner">
<?php briar_header(); ?>
<button class="dropdown-nav__toggle btn--transition" data-nav="#main-nav">
<span></span>
</button>
<nav role="navigation" id="main-nav" class="main-nav">
<?php wp_nav_menu( array(
'theme_location' => 'primary',
'container' => false,
'menu_class' => 'dropdown-nav animated bounceOut',
'item_class' => 'dropdown-nav__item',
'link_class' => 'dropdown-nav__link',
) ); ?>
</nav>
</div><!-- /.header inner -->
</div><!-- /.col -->
</div><!-- /.row -->
</div><!-- /.container -->
</header>