-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
77 lines (64 loc) · 1.89 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
69
70
71
72
73
74
75
76
77
<?php
/**
* The header for our theme
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Carbon
* @since 0.0.1
* @version 0.0.2
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
?><!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<?php
/**
* Fires immediately after the body element opening markup.
*/
do_action( 'carbon_before' );
?>
<div id="site-container" class="site-container">
<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'carbon' ); ?></a>
<?php
/**
* Fires immediately after the site container opening markup, before `carbon_header` action hook.
*/
do_action( 'carbon_before_header' );
?>
<?php get_template_part( 'template-parts/header' ); ?>
<?php
/**
* Fires immediately after the `carbon_header` action hook, before the site inner opening markup.
*/
do_action( 'carbon_after_header' );
?>
<div id="site-inner" class="site-inner">
<?php
// show only if it is not default post page and template-parts/article/entry-header is inactive.
if ( ! is_front_page() || ! is_home() ) {
get_template_part( 'template-parts/page-header' );
}
?>
<?php
/**
* Fires after the header, before the content layout wrap.
*/
do_action( 'carbon_before_content_layout_wrap' );
?>
<div id="content-layout-wrap" class="content-layout-wrap">
<?php
// fires before content-area
do_action( 'carbon_before_content-area' );
?>
<div id="content-area" class="content-area">