-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
57 lines (53 loc) · 2.58 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
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
<link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon.png" />
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script>
<![endif]-->
<?php wp_head(); ?>
</head>
<body>
<span id="menu-button">
<i class="fa fa-bars" aria-hidden="true"></i>
</span>
<header id="masthead" class="site-header" role="banner">
<?php
if( function_exists( 'the_custom_logo' ) )
the_custom_logo();
?>
<h1 class="site-title">
<a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a>
</h1>
<nav id="primary-navigation" class="site-navigation primary-navigation" role="navigation">
<?php wp_nav_menu(array('theme_location' => 'primary', 'menu_class' => 'nav-menu', 'container_id' => 'top-main-menu', 'fallback_cb' => false)); ?>
<?php wp_nav_menu(array('theme_location' => 'secondary', 'menu_class' => 'nav-menu', 'container_id' => 'top-right-menu', 'fallback_cb' => false)); ?>
</nav>
</header><!-- #masthead -->
<?php if( is_home() ) : ?>
<div id="custom-header-media" class="custom-header-media">
<?php the_custom_header_markup(); ?>
</div>
<div id="header-widget">
<div id="header-widget-contents" class="header-contents-outer fluid-outer">
<div class="header-contents-inner fluid-inner">
<?php
if( is_active_sidebar( 'fw-header' ) )
dynamic_sidebar( 'fw-header' );
else{
?>
<span class="header-text"><h1><?php echo get_theme_mod( 'header_text_h1', '' ); ?></h1></span>
<?php } ?>
</div>
<div class="to-content-button button-link">
<a href="#post-first" onClick='(function($){$("html,body").animate( { scrollTop: $(window).height() }, 400 );})(jQuery);'><i class="fa fa-arrow-circle-down" aria-hidden="true"></i></a>
</div>
</div>
</div>
<?php endif; ?>