-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
137 lines (122 loc) · 5.57 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?php $options = get_option('plugin_options'); ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="<?php bloginfo( 'template_directory' ); ?>/images/favicon.ico">
<link href='http://fonts.googleapis.com/css?family=Quicksand' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Lato&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
<title><?php wp_title( '|', true, 'right' ); ?></title>
<!-- look up Google authorship plugins, and SEO by YOST -->
<?php wp_head(); ?>
<link href="<?php bloginfo( 'template_directory' );?>/bootstrap/css/bootstrap.css" rel='stylesheet' type='text/css'>
<link href="<?php bloginfo( 'template_directory' );?>/style.css" rel='stylesheet' type='text/css'>
<!--[if lt IE 9]>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="<?php bloginfo( 'template_directory' );?>/js/respond.js"></script>
<style type="text/css">
.navbar-inverse .navbar-nav>li>a { background: url("<?php bloginfo( 'template_directory' ); ?>/images/nav-bg1.png"); }
</style>
<![endif]-->
<?php
$current = $_SERVER['REQUEST_URI'];
if ($current == '/') {
?>
<?php if ( is_user_logged_in() ) {?>
</head>
<body <?php body_class(); ?> data-spy="scroll" data-target=".wga_scrollspy" data-offset="152">
<?php } else { ?>
<style type="text/css">
.home section.landing { margin-top: 120px; }
</style>
</head>
<body <?php body_class(); ?> data-spy="scroll" data-target=".wga_scrollspy" data-offset="120">
<?php } ?>
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container nav-bar-c">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
MENU
</button>
<a class="navbar-brand" href="<?php bloginfo('url'); ?>"><img src="<?php echo $options['logo']; ?>" alt="Deer Park Chamber of Commerce"></a>
</div>
<div class="nav-button">
<button type="button" class="navbar-toggle secondary-nav-toggle" data-toggle="collapse" data-target=".secondary-navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
MENU
</button>
</div>
<div class="navbar-collapse collapse">
<?php
$args = array (
'menu' => 'header-menu',
'menu_class' => 'nav navbar-nav main-nav',
'container' => 'false'
);
wp_nav_menu( $args );
?>
<div class="secondary-navbar collapse sub-nav wga_scrollspy">
<ul class="nav navbar-nav main-nav wga_secondary_nav">
<li><a onClick="event.preventDefault(); wgaNavFunction(jQuery(this).attr('href'));" href="#home">Home</a></li>
<li><a onClick="event.preventDefault(); wgaNavFunction(jQuery(this).attr('href'))" href="#mission">Mission</a></li>
<li><a onClick="event.preventDefault(); wgaNavFunction(jQuery(this).attr('href'))" href="#about">About</a></li>
<li><a onClick="event.preventDefault(); wgaNavFunction(jQuery(this).attr('href'))" href="#events">Events</a></li>
<li><a onClick="event.preventDefault(); wgaNavFunction(jQuery(this).attr('href'))" href="#contact">Contact</a></li>
</ul>
</div><!--/.secondary-navbar -->
</div><!--/.navbar-collapse -->
</div>
</div><!-- End of Navbar -->
<?php } else { ?>
<?php if ( is_user_logged_in() ) {?>
<style type="text/css">
.admin-bar .navbar-fixed-top { margin-top: 30px; }
.home section.landing { margin-top: 118px; }
@media (max-width:782px){
.admin-bar .navbar-fixed-top { margin-top: 46px; }
}
</style>
</head>
<body <?php body_class(); ?> data-spy="scroll" data-target=".wga_scrollspy" data-offset="152">
<?php } else { ?>
<style type="text/css">
.home section.landing { margin-top: 120px; }
</style>
</head>
<body <?php body_class(); ?> data-spy="scroll" data-target=".wga_scrollspy" data-offset="120">
<?php } ?>
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span>MENU</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="<?php bloginfo('url'); ?>"><img src="<?php echo $options['logo']; ?>" alt="Deer Park Chamber of Commerce"></a>
</div>
<div class="navbar-collapse collapse">
<?php
$args = array (
'menu' => 'header-menu',
'menu_class' => 'nav navbar-nav main-nav',
'container' => 'false'
);
wp_nav_menu( $args );
?>
</div><!--/.navbar-collapse -->
</div>
</div><!-- End of Navbar -->
<?php } ?>
<!-- End Header -->