-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
72 lines (66 loc) · 2.76 KB
/
header.php
File metadata and controls
72 lines (66 loc) · 2.76 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <main id="main">
*
* @package Generate
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="google-site-verification" content="hivz0NV0f5iWiALojeoFN3s9p_pXQVg6tpGdrGubYQQ" />
<title><?php wp_title( '|', true, 'right' ); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php
wp_head();
$generate_settings = wp_parse_args(
get_option( 'generate_settings', array() ),
generate_get_defaults()
);
?>
</head>
<body itemtype="http://schema.org/WebPage" itemscope="itemscope" <?php body_class(); ?>>
<?php do_action( 'generate_before_header' ); ?>
<header itemtype="http://schema.org/WPHeader" itemscope="itemscope" id="masthead"
role="banner" <?php generate_header_class(); ?>>
<div <?php generate_inside_header_class(); ?>>
<?php do_action( 'generate_before_header_content' ); ?>
<?php if ( is_active_sidebar( 'header' ) ) : ?>
<div class="header-widget">
<?php dynamic_sidebar( 'header' ); ?>
</div>
<?php endif; // end sidebar widget area ?>
<?php if ( empty( $generate_settings['hide_title'] ) || empty( $generate_settings['hide_tagline'] ) ) : ?>
<div class="site-branding">
<?php if ( empty( $generate_settings['hide_title'] ) ) : ?>
<p class="main-title" itemprop="headline"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"
title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"
rel="home"><?php bloginfo( 'name' ); ?></a></p>
<?php endif;
if ( empty( $generate_settings['hide_tagline'] ) ) : ?>
<p class="site-description"><?php bloginfo( 'description' ); ?></p>
<?php endif; ?>
</div>
<?php endif;
if ( ! empty( $generate_settings['logo'] ) ) : ?>
<div class="site-logo">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>"
title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img
class="header-image" src="<?php echo $generate_settings['logo']; ?>"
alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"
title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"/></a>
</div>
<?php endif; ?>
<?php do_action( 'generate_after_header_content' ); ?>
</div>
<!-- .inside-header -->
</header>
<!-- #masthead -->
<?php do_action( 'generate_after_header' ); ?>
<div id="page" class="hfeed site grid-container container grid-parent">
<div id="content" class="site-content">
<?php do_action( 'generate_inside_container' ); ?>