-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathheader.php
More file actions
55 lines (47 loc) · 1.7 KB
/
header.php
File metadata and controls
55 lines (47 loc) · 1.7 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
<?php
/**
* Theme Header Section
*
* @package ExtraChill
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<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
$preload_fonts = apply_filters( 'extrachill_preload_fonts', array() );
foreach ( $preload_fonts as $font ) :
?>
<link rel="preload" href="<?php echo esc_url( $font['url'] ); ?>" as="<?php echo esc_attr( $font['as'] ); ?>" type="<?php echo esc_attr( $font['type'] ); ?>" crossorigin>
<?php
endforeach;
$dns_prefetch_domains = apply_filters( 'extrachill_dns_prefetch_domains', array() );
foreach ( $dns_prefetch_domains as $domain ) :
?>
<link rel="dns-prefetch" href="<?php echo esc_url( $domain ); ?>">
<?php
endforeach;
?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php
if ( function_exists( 'wp_body_open' ) ) {
wp_body_open(); }
?>
<?php do_action( 'extrachill_above_header' ); ?>
<header id="masthead" class="site-header" role="banner">
<div class="site-branding">
<?php if ( is_front_page() ) : ?>
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php echo esc_html( extrachill_get_site_title() ); ?></a></h1>
<?php else : ?>
<p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php echo esc_html( extrachill_get_site_title() ); ?></a></p>
<?php endif; ?>
</div><!-- .site-branding -->
<?php do_action( 'extrachill_header_top_right' ); ?>
</header><!-- #masthead -->
<?php do_action( 'extrachill_after_header' ); ?>
<main class="extrachill-content">
<?php do_action( 'extrachill_notices' ); ?>