forked from awesomemotive/edd-quota
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
executable file
·58 lines (54 loc) · 2.04 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
<?php
/**
* the template for Quota's document <head>, site header, and
* opening site content. The content-headline.php file is also
* called to include custom page headlines. See inline comments.
*/
$char = get_bloginfo('charset');
$ping = get_bloginfo('pingback_url');
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php echo $char; ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php echo wp_title( '|', true, 'right' ); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php echo $ping; ?>" />
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div class="header-area full">
<div class="main">
<?php do_action( 'before' ); ?>
<header class="site-header inner">
<span class="site-title">
<?php // display either a logo or site title based on theme customizer options ?>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>">
<?php if ( get_theme_mod( 'quota_logo' ) ) : ?>
<img src="<?php echo get_theme_mod( 'quota_logo' ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"></a>
<?php else : ?>
<?php bloginfo( 'name' ); ?>
<?php endif; ?>
</a>
</span>
<?php if ( ! is_page_template( 'landing.php' ) ) : ?>
<nav id="site-navigation">
<span class="menu-toggle"><?php echo '<i class="fa fa-bars"></i> ' . __( 'Menu', 'quota' ); ?></span>
<?php wp_nav_menu( array( 'theme_location' => 'header', 'fallback_cb' => 'quota_menu_fallback' ) ); ?>
</nav>
<?php endif; ?>
</header>
</div>
</div>
<?php
/**
* The HTML used to build the actual headlines are located in the
* templates/content-headline.php file for easier customization
* with a child theme.
*/
get_template_part( 'templates/content', 'headline' );
// <!-- the HTML tags below are closed in footer.php --> ?>
<div class="content-area full">
<div class="main">
<div class="site-content inner">