-
Notifications
You must be signed in to change notification settings - Fork 4
/
header.php
executable file
·68 lines (61 loc) · 2.33 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
<?php
/**
* The header for our theme.
*
* Displays all of the <head> section and everything up till <div id="content">
*
* @package wphy_moon
*/
?><!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>/logo.png" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div class="wphy site container-fluid" id="top">
<div class="scroll-top">
<a href="#top" target="_self">
<span class="glyphicon glyphicon-chevron-up"></span>
</a>
</div><!-- scroll-top -->
<header class="site-header " role="banner">
<div class="site-branding row">
<div class="col-sm-12">
<nav class="navbar navbar-inverse container" role="navigation">
<div class="navbar-header">
<?php if(get_option('logo' )){ ?>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
<img src="<?php echo get_option('logo' ); ?>" alt="<?php bloginfo( 'name' ); ?>" class="logo" />
</a>
<?php }else{ ?>
<h1 class="site-title">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
</h1>
<?php } ?>
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="glyphicon glyphicon-th-large"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<?php
if(has_nav_menu('top')){
wp_nav_menu(array(
'theme_location' =>'top',
'container' => 'my-top-menu-container',
'menu_class' => 'nav navbar-nav navbar-right',
'walker' => new wp_bootstrap_navwalker()
)
);
}
?>
</div>
</nav><!-- #site-navigation -->
</div>
</div><!-- .site-branding -->
</header><!-- #masthead -->
<div id="content" class="site-content row">