-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathheader.php
More file actions
48 lines (38 loc) · 1.51 KB
/
header.php
File metadata and controls
48 lines (38 loc) · 1.51 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
<?php
/**
* The template for displaying the header.
*
* Displays all of the <head> section and everything up to the "content" div.
*
* @package Memberlite
*/
?><!doctype html>
<html <?php language_attributes(); ?>>
<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 do_action( 'memberlite_before_page' ); ?>
<div id="page" class="hfeed site">
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'memberlite' ); ?></a>
<?php if ( ! memberlite_hide_page_header() ) { ?>
<?php do_action( 'memberlite_before_site_header' ); ?>
<?php
$header_variation = get_theme_mod( 'memberlite_header_variation' );
$is_default = empty( $header_variation ) || 'default' === $header_variation;
$header_class = $is_default ? 'site-header-default' : 'site-header-' . $header_variation;
?>
<header class="site-header <?php echo esc_attr( $header_class ); ?>" role="banner">
<?php if ( $is_default ) {
get_template_part( 'components/header/variation', 'default' );
} else {
get_template_part( 'components/header/variation', $header_variation );
} ?>
</header><!-- #masthead -->
<?php } // End if memberlite_hide_page_header is false ?>
<?php do_action( 'memberlite_before_content' ); ?>
<div id="content" class="site-content">
<?php get_template_part( 'components/header/header', 'masthead' ); ?>