-
Notifications
You must be signed in to change notification settings - Fork 1
/
header.php
77 lines (63 loc) · 2.5 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.
*
* Displays all of the <head> section and everything up till <div id="content">
*
* @package Timber Lite
* @since Timber 1.0
*/
if ( ! defined( 'ABSPATH' ) ){
exit; // Exit if accessed directly
}
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="mobile-web-app-capable" content="yes">
<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 timber_lite_body_attributes(); ?> data-first-letter="<?php echo timber_lite_first_site_title_character(); ?>">
<?php wp_body_open(); ?>
<header id="masthead" class="site-header u-header--fixed">
<a class="skip-link screen-reader-text" href="#page"><?php esc_html_e( 'Skip to content', 'timber-lite' ); ?></a>
<div class="site-branding">
<?php if ( function_exists( 'has_custom_logo' ) && has_custom_logo() ) : // display the Site Logo if present
the_custom_logo();
else : ?>
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<?php endif; ?>
<p class="site-description"><?php bloginfo( 'description' ); ?></p>
</div><!-- .site-branding -->
<nav id="site-navigation" class="main-navigation djax-updatable">
<?php wp_nav_menu( array(
'theme_location' => 'primary',
'menu_class' => 'nav nav--main',
'menu_id' => 'primary-menu',
'fallback_cb' => false,
'depth' => 1
) ); ?>
</nav><!-- #site-navigation -->
<nav class="social-navigation">
<?php wp_nav_menu( array(
'theme_location' => 'social',
'menu_class' => 'nav nav--main nav--social',
'menu_id' => 'social-menu',
'fallback_cb' => false,
'depth' => 1
) ); ?>
</nav>
</header><!-- #masthead -->
<button class="js-nav-toggle nav-toggle"><i class="icon icon-bars"></i></button>
<div id="page">
<div id="djaxContainer" class="hfeed site djax-updatable">
<div class="mobile-header">
<?php if ( function_exists( 'has_custom_logo' ) && has_custom_logo() ) : // display the Site Logo if present
the_custom_logo();
else : ?>
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<?php endif; ?>
</div>