-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
45 lines (39 loc) · 2.13 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
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?> id="top-of-site">
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<?php wp_head(); // WordPress generated meta data and scripts ?>
</head>
<body <?php body_class(); // Add classes to the body tag ?> itemscope itemtype="https://schema.org/<?=custom_page_scheme(get_the_ID());?>">
<?php wp_body_open(); // WordPress body includes ?>
<div class="body-container">
<header class="page-header">
<a href="#main-content" class="nav-skip">Skip to main content</a>
<div class="header-menubar">
<div class="header-title">
<p class="header-logo" itemprop="name headline">
<a href="<?=home_url();?>" rel="home" itemprop="url"><?=get_custom_logo();?></a>
</p>
<div class="header-breadcrumbs"><?php if ( !is_front_page() ) breadcrumb_trail(); // Show breadcrumb trail ?></div>
</div>
<button class="menu-button" id="btnMenu" aria-label="Open Menu" data-menu-id="MainMenu"></button>
<div class="header-content">
<div id="MainMenu" class="pull-menu-left menubar">
<div class="header-navigation">
<?php menu_nav_list('Primary Navigation', 'primary-navigation'); // Main Navigation ?>
</div>
<div class="header-secondary-navigation">
<?php menu_nav_list('Secondary Navigation', 'secondary-navigation'); // Secondary Navigation ?>
</div>
<div class="header-widgets">
<?php dynamic_sidebar( 'header' ); // Header Widgets ?>
</div>
</div>
</div>
</div>
<?php Header_Hero(get_the_ID()); // Display featured image in background ?>
</header>
<div class="body-top-background"><?php // Background embellishments ?></div>