This repository has been archived by the owner on May 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathheader.php
executable file
·77 lines (59 loc) · 2 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.
*
* @package Plate
* @link https://themebeans.com/themes/plate
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js no-svg">
<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(); ?>
</head>
<body <?php body_class(); ?> >
<?php
if ( function_exists( 'wp_body_open' ) ) {
wp_body_open();
}
?>
<div id="page" class="site clearfix">
<?php if ( ! is_404() ) : ?>
<?php plate_announcement(); ?>
<header id="masthead" class="site-header">
<?php if ( has_nav_menu( 'primary' ) ) : ?>
<nav id="site-navigation" class="main-navigation">
<?php
wp_nav_menu(
array(
'theme_location' => 'primary',
'link_before' => '<span>',
'link_after' => '</span>',
'walker' => new PlateClassMobileNavigationWalker(),
)
);
?>
</nav><!-- .main-navigation -->
<div class="mobile-menu-toggle"><span></span><span></span><span></span></div>
<?php endif; ?>
</header><!-- .site-header -->
<div id="content" class="site-content">
<div id="site-hero" class="hero-content-area">
<?php plate_site_logo(); ?>
<?php plate_page_title(); ?>
<div class="site-hero--image full--bg" <?php plate_video_hero(); ?>>
<?php
/*
* Include the image header, if the Customizer option is set to 'image',
* but also on other pages, if the 'video' option is selected, but the global option is deselected.
*/
if ( get_theme_mod( 'plate_hero_format' ) == 'image' or get_theme_mod( 'plate_hero_video_global' ) == false and ! is_front_page() ) {
?>
<div class="site-hero--image--item" style="<?php echo esc_html( plate_background_image() ); ?>"></div>
<?php } ?>
</div>
<?php plate_background_color(); ?>
</div><!-- .hero-content-area -->
<?php endif; ?>