-
Notifications
You must be signed in to change notification settings - Fork 1
/
header.php
215 lines (174 loc) · 8.78 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<title>
<?php if (is_front_page()) { bloginfo('name');?> @ Bellevue College <?php } else {
wp_title("",true);?> | <?php bloginfo('name');
} ?>
</title>
<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="https://gmpg.org/xfn/11" />
<link href="//fonts.googleapis.com/css?family=Arvo:400,700|PT+Sans:400,700,400italic" rel="stylesheet" type="text/css">
<link rel="apple-touch-icon" href="<?php bloginfo('stylesheet_directory'); ?>/img/kbcs-touch-icon-iphone.png" />
<link rel="apple-touch-icon" sizes="144x144" href="<?php bloginfo('stylesheet_directory'); ?>/img/kbcs-ico-144x144.png" />
<link rel="icon" href="<?php bloginfo('stylesheet_directory'); ?>/img/kbcs-ico-32x32.png" />
<!--[if IE]><link rel="shortcut icon" href="<?php bloginfo('stylesheet_directory'); ?>/img/favicon.ico" /><![endif]-->
<meta name="msapplication-TileColor" content="#603312" />
<meta name="msapplication-TileImage" content="<?php bloginfo('stylesheet_directory'); ?>/img/kbcs-ico-144x144.png" />
<style>
#enable_javascript{
color: #FF0000;
font-weight: bold;
padding: 3px;
}
</style>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div class="container wrapper"><!-- outer container -->
<div class="container content"><!-- content container -->
<a href="#content" id="skipto-content">Skip to content</a>
<?php
$options = get_option( 'funddrive_settings' ) ?? null;
$start_date = $options['funddrive_startdate'] ?? null;
$end_date = $options['funddrive_enddate'] ?? null;
$current_date = date("Y-m-d");
if($current_date >= $start_date && $current_date <= $end_date) {
?>
<div class="row">
<div class="span12">
<div class="funddrive-alert alert alert-block alert fade in">
<div class="row">
<div class="span8 funddrive_message">
<h4 class="alert-heading"><?php echo $options['funddrive_message_title']; ?></h4>
<p><?php echo $options['funddrive_message']; ?></p>
<p><?php echo do_shortcode( '[ujicountdown id="Time Left to Give BIG!" expire="2014/05/07 00:00" hide = "true"]' ) ?></p>
<ul class="inline">
<?php if(! empty($options['funddrive_button_url'])) { ?>
<li><a href="<?php echo $options['funddrive_button_url'];?>"><button class="btn btn-inverse"><?php echo $options['funddrive_button_title']; ?></button></a></li>
<?php } ?>
<?php if(! empty($options['funddrive_button2_url'])) { ?>
<li><a href="<?php echo $options['funddrive_button2_url']; ?>"><button class="btn btn-inverse"><?php echo $options['funddrive_button2_title']; ?></button></a></li>
<?php } ?>
</ul>
</div><!-- span8 -->
<div class="span3 funddrive_meter">
<?php
$goal = $options['funddrive_goal'];
$current = $options['funddrive_current'];
$remaining = ($goal-$current);
$remaining_percent = $current/$goal * 100;
$progress = $remaining/$goal;
?>
<h4>$<?php echo number_format($goal); ?> Goal</h4>
<div class="progress progress-striped active">
<div class="bar" style="width: <?php echo $remaining_percent; ?>%"><?php echo number_format($remaining_percent, 2); ?>%
</div><!-- bar -->
</div><!-- progress -->
<!-- Start edited by Tripti Sharma -->
<?php
$funddrive_enddate = $options['funddrive_enddate'];
$funddrive_enddate_usformat = date("F j, Y",strtotime($funddrive_enddate));
?>
<p>Drive ends:
<?php
//echo $options['funddrive_enddate'];
echo $funddrive_enddate_usformat;
?>
</p>
<!--End edited by Tripti Sharma -->
</div><!-- span3 -->
</div><!-- row -->
</div><!-- alert + funddrive-alert -->
</div><!-- span12 -->
</div><!-- row -->
<?php } else
?>
<!-- Phone/Tablet Nav Menu -->
<div class="row visible-phone">
<div class="navbar top-mobile-nav">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar menu" data-toggle="collapse" data-target=".nav-collapse">
<span aria-hidden="true" data-icon=""></span>
Menu
</a>
<a class="brand" href="<?php echo esc_url(home_url( '/' ) ); ?>"><img src="<?php bloginfo('template_directory'); ?>/img/kbcs_logo_horiz.png" alt="91.3 KBCS (KBCS Logo)" title="KBCS home page" /></a>
<a class="play-btn" href="https://www.radiorethink.com/tuner/?stationCode=kbcs&stream=hi" title="Play live stream" target="_blank" onClick="gaplusu('send', 'event', 'Outbound', 'Mobile Header', 'Live Stream');"><i class="icon-volume-up pull-right"></i></a>
<?php
/** Loading WordPress Custom Menu with Fallback to wp_list_pages **/
wp_nav_menu( array(
'menu' => 'main-nav',
'items_wrap' => '<ul id="%1$s" class="%2$s" role="navigation">%3$s</ul>',
'container_class' => 'nav-collapse',
'menu_class' => 'nav',
'fallback_cb' => 'wp_page_menu',
'menu_id' => 'main-nav')
);
?>
</div><!--container-->
</div><!-- navbar-inner -->
</div><!-- navbar -->
</div><!-- row -->
<!-- Show Now Playing, Live Stream & Playlists/Audio Archives on small screens -->
<div class="nowplaying visible-phone">
<strong><a href="<?php echo home_url(); ?>/live-playlist/">Now Playing</a>:</strong>
</div> <!--#nowplaying-->
<div class="row site-header">
<div class="span12">
<div class="row">
<div class="span2">
<div id="header-logo" class="hidden-phone">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php bloginfo('template_directory'); ?>/img/kbcs_logo.png" alt="91.3 KBCS" title="KBCS home page" /></a>
</div><!-- header-logo -->
</div><!-- span2 -->
<div class="span10">
<div class="row">
<div class="span10">
<div class="input-append pull-right global-search hidden-phone">
<form id="search" method="get" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<span aria-hidden="true" data-icon=""></span>
<input class="span3" type="text" name="s" value="<?php echo trim( get_search_query() ); ?>">
<input type='hidden' name='post_type' value='programs,segments,staff,events,ads' />
<input id="searchsubmit" value="Search" type="submit" class="btn" />
</form>
</div><!-- input-append -->
</div><!-- span10 -->
<!-- Desktop Nav Menu -->
<div class="span10 hidden-phone">
<div class="navbar top-global-nav">
<div class="navbar-inner">
<div class="container">
<?php
/** Loading WordPress Custom Menu with Fallback to wp_list_pages **/
wp_nav_menu( array(
'menu' => 'main-nav',
'items_wrap' => '<ul id="%1$s" class="%2$s" role="navigation">%3$s</ul>',
'container_class' => 'nav-collapse',
'menu_class' => 'nav',
'fallback_cb' => 'wp_page_menu',
'menu_id' => 'main-nav')
);
?>
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span aria-hidden="true" data-icon=""></span>
Menu
</a>
</div><!--container-->
</div><!-- navbar-inner -->
</div><!-- navbar -->
</div><!-- span10 -->
</div><!-- row -->
</div><!-- span10 -->
</div><!-- row -->
</div><!-- span12 -->
</div><!-- row -->
<div id="enable_javascript">Please enable your javascript to have a better view of the website. Click <a href="http://activatejavascript.org" target="_blank">here</a> to learn more about it.</div>
<script type="text/javascript">
if(document.getElementById("enable_javascript"))
{
document.getElementById("enable_javascript").style.display = "none";
}
</script>