-
Notifications
You must be signed in to change notification settings - Fork 1
/
header.php
80 lines (64 loc) · 2.63 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
78
79
80
<!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(); ?>>
<a class="skip-link screen-reader-text" href="#content">
<?php esc_attr_e( 'Skip to content', 'appeal' ); ?></a>
<div id="content-wrapper">
<div class="site-head">
<div class="hgroup">
<?php if( has_custom_logo() ) : ?>
<a title="<?php bloginfo('description'); ?>"
href="<?php echo esc_url(home_url('/')); ?>">
<?php echo wp_kses_post( force_balance_tags(
appeal_theme_custom_logo() ) ); ?></a>
<?php endif; ?>
<p class="list-inline">
<span class="site-title">
<a title="<?php bloginfo('description'); ?>"
href="<?php echo esc_url(home_url('/')); ?>">
<?php bloginfo('name') ?></a></span>
<span class="site-description"><em> | </em></span>
<span class="site-description"><?php bloginfo('description') ?></span></p>
</div>
</div>
<header>
<nav class="navbar navbar-default navbar-static-top semi-fixed"
itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement">
<div class="container">
<div class="navbar-header">
<?php if (has_nav_menu("primary")): ?>
<button type="button" class="navbar-toggle collapsed"
data-toggle="collapse"
data-target="#navbar-responsive-collapse">
<span class="sr-only"><?php esc_html_e('Navigation', 'appeal'); ?></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<?php endif ?>
</div>
<div id="navbar-responsive-collapse" class="collapse navbar-collapse">
<?php wp_nav_menu( array(
'theme_location' => 'primary',
'depth' => 8,
'container_id' => 'navbar-collapse-top',
'menu_class' => 'nav navbar-nav',
'fallback_cb' => 'wp_nav_menus',
'walker' => new appeal_bootstrap_navwalker()
)); ?>
</div>
</div>
</nav>
</header>
<div class="clearfix"></div>
<?php if( is_page() || is_home() ){ ?>
<?php get_sidebar( 'top' ); ?>
<?php } ?>
<div id="page-content"><!-- ends in footer -->
<div class="container"><!-- ends in footer -->