-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
56 lines (44 loc) · 1.25 KB
/
header.php
File metadata and controls
56 lines (44 loc) · 1.25 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
<?php
/**
* Page header template
*
* This is the template that displays all of the <head>
* section and everything up until <div id="content">
*
* @package Front_Core
* @subpackage Templates
* @category Headers
* @since 1.0.0
*/
namespace FrontCore;
// Alias namespaces.
use FrontCore\Tags as Tags;
// Get the navigation location setting from the Customizer.
$nav_location = Customize\nav_location( get_theme_mod( 'fct_nav_location' ) );
?>
<!doctype html>
<?php
// Hook for ACF forms & similar.
do_action( 'before_html' ); ?>
<html xmlns:og="http://opengraphprotocol.org/schema/" <?php language_attributes(); ?> class="no-js">
<?php Tags\head(); ?>
<body <?php Tags\body_class(); ?>>
<?php
Tags\body_open();
Tags\before_page();
?>
<a class="skip-link screen-reader-text" href="#content"><?php esc_attr( esc_html_e( 'Skip to content', 'frontcore' ) ); ?></a>
<div id="page" class="site" itemscope="itemscope" itemtype="<?php esc_attr( Tags\site_schema() ); ?>">
<div class="site-header-wrap">
<?php
if ( 'before' == $nav_location ) {
Tags\nav_before_header();
} ?>
<?php Tags\before_header(); ?>
<?php Tags\header(); ?>
<?php Tags\after_header(); ?>
<?php
if ( 'after' == $nav_location ) {
Tags\nav_after_header();
} ?>
</div>