-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathheader.php
executable file
·81 lines (60 loc) · 2.05 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
78
79
80
81
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id="main">
*
* @package influence
* @since influence 1.0
* @license GPL 2.0
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php if ( function_exists( 'wp_body_open' ) ) {
wp_body_open();
} ?>
<div id="page" class="hfeed site">
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'influence' ); ?></a>
<?php do_action( 'before' ); ?>
<header id="masthead" class="site-header has-shadow" role="banner">
<div class="container">
<div class="hgroup">
<h1 class="site-title">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
<?php influence_display_logo(); ?>
</a>
</h1>
<?php if(siteorigin_setting('logo_site_description')) : ?>
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
<?php endif ?>
</div>
<?php if( siteorigin_setting('general_menu_text') ) : ?>
<nav role="navigation" class="site-navigation main-navigation primary">
<h1 class="assistive-text"><?php _e( 'Menu', 'influence' ); ?></h1>
<a href="#" class="main-menu-button">
<i class="influence-icon-menu-icon"></i>
<?php echo esc_html( siteorigin_setting('general_menu_text') ) ?>
</a>
</nav><!-- .site-navigation .main-navigation -->
<?php endif; ?>
</div>
</header><!-- #masthead .site-header -->
<?php
$after_header = apply_filters('influence_after_header', '');
if( empty($after_header) || !siteorigin_setting('home_menu_overlaps') ) {
// We'll use a sentinel to take up space
influence_site_header_sentinel();
echo $after_header;
}
else {
echo $after_header;
}
?>
<div id="main" class="site-main">