forked from digisavvy/some-like-it-neat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
75 lines (60 loc) · 2.43 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
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id="content">
*
* @package some_like_it_neat
*/
?>
<!DOCTYPE html>
<?php tha_html_before(); ?>
<html <?php language_attributes(); ?>>
<head>
<?php tha_head_top(); ?>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<style type="text/css">
<?php if ( 'no' === get_theme_mod( 'some-like-it-neat_post_format_support' ) ): ?>
h1.entry-title:before {
display: none;
}
<?php endif; ?>
</style>
<?php tha_head_bottom(); ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php tha_body_top(); ?>
<div id="page" class="hfeed site">
<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'some-like-it-neat' ); ?></a>
<?php tha_header_before(); ?>
<header id="masthead" class="site-header wrap" role="banner" itemscope="itemscope" itemtype="http://schema.org/WPHeader">
<?php tha_header_top(); ?>
<section class="site-branding">
<div class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></div>
<div class="site-description"><?php bloginfo( 'description' ); ?></div>
</section>
<nav id="primary-nav" role="navigation" itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement">
<button class="menu-button">
<span class="dashicons <?php echo get_theme_mod( 'some_like_it_neat_mobile_nav_icon', 'dashicons-menu' ); ?>"></span><?php echo get_theme_mod( 'some_like_it_neat_mobile_nav_label', 'Menu' ); ?>
</button>
<?php
wp_nav_menu(
array(
'theme_location' => 'primary-navigation',
'menu_class' => 'flexnav', //Adding the class for FlexNav
'items_wrap' => '<ul data-breakpoint=" '. esc_attr( get_theme_mod( 'some_like_it_neat_mobile_min_width', '768' ) ) .' " id="%1$s" class="%2$s">%3$s</ul>', // Adding data-breakpoint for FlexNav
)
);
?>
</nav><!-- #site-navigation -->
<?php tha_header_bottom(); ?>
</header><!-- #masthead -->
<?php tha_header_after(); ?>
<?php tha_content_before(); ?>
<main id="main" class="site-main wrap" role="main">
<?php tha_content_top(); ?>