forked from jbrown25/TRIO-Seattle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
83 lines (77 loc) · 2.8 KB
/
header.php
File metadata and controls
83 lines (77 loc) · 2.8 KB
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
81
82
83
<?php
/**
* The header for our theme
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package trio-v1
*/
?>
<!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="https://gmpg.org/xfn/11">
<style>
#masthead {
background-image: url("<?php header_image(); ?>");
}
</style>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="page" class="site <?php echo is_front_page() ? 'front_page' : '' ?>">
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'trio-v1' ); ?></a>
<!-- navbar -->
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="<?php echo get_home_url(); ?>">TRIO Seattle</a>
</div>
<div id="navbar" class="navbar-collapse collapse navbar-right">
<?php
if(has_nav_menu('main-menu')){
wp_nav_menu(array(
'theme_location' => 'main-menu',
'container_class' => 'nav_container_class',
'menu_class' => 'nav navbar-nav',
'menu_id' => 'primary_nav',
'container' => 'ul'
));
}else{
wp_nav_menu(array(
'container_class' => 'nav_container_class',
'menu_class' => 'nav navbar-nav',
'menu_id' => 'primary_nav',
'container' => 'ul'
));
}
?>
</div><!--/.nav-collapse -->
</div>
</nav>
<header id="masthead" class="site-header">
<div class="container">
<div class="row">
<div class="col-md-6 <?php echo !is_front_page() ? 'col-md-offset-3' : '' ?>">
<div class="masthead_content">
<h1><?php bloginfo('name'); ?></h1>
<?php if(is_front_page()) : ?>
<p class="masthead_sub_text"><?php echo get_theme_mod('trio_front_page_text'); ?></p>
<?php endif; ?>
<a href="<?php echo get_theme_mod('trio_header_button_link'); ?>" class="btn btn-primary btn-lg" role="button" id="header_button_link">DONATE TO TRIO</a>
</div>
</div>
</div>
</div>
</header><!-- #masthead -->
<div id="content" class="site-content">