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 8
/
header.php
executable file
·73 lines (57 loc) · 1.8 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
<?php
/**
* The Header template for our theme.
*
* Displays all of the <head> section that is pulled on every page.
*
* @package Pinto
* @link https://themebeans.com/themes/pinto
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<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="theme-wrapper">
<div class="row">
<div id="header-container" class="h-card">
<?php pinto_site_logo(); ?>
<a id="menu-toggle" class="sidebar-btn menu-toggle" href="#" title="<?php echo esc_html__( 'Toggle Menu', 'pinto' ); ?>" aria-controls="primary-menu" aria-expanded="false">
<span class="screen-reader-text"><?php echo esc_html__( 'Toggle Menu', 'pinto' ); ?></span>
</a>
<div id="primary-nav" class="main-menu hide-for-small" role="navigation">
<?php
if ( has_nav_menu( 'primary-menu' ) ) {
wp_nav_menu(
array(
'theme_location' => 'primary-menu',
'container' => '',
'menu_id' => 'primary-menu',
'menu_class' => 'sf-menu main-menu',
'after' => '<span class="nav-sep"> ·</span>',
)
);
}
?>
</div>
<?php if ( is_home() ) { ?>
<?php if ( get_theme_mod( 'header_tagline', pinto_defaults( 'header_tagline' ) ) ) { ?>
<div class="six columns centered">
<div class="theme-tagline">
<p class="p-note"><?php echo get_theme_mod( 'header_tagline', pinto_defaults( 'header_tagline' ) ); ?></p>
</div>
</div>
<?php } ?>
<?php } ?>
</div>
</div>