-
Notifications
You must be signed in to change notification settings - Fork 2
/
pages.php
92 lines (80 loc) · 2.35 KB
/
pages.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
<?php
require_once("header.php");
function printHeader() {
echo "<!doctype html><html><head>";
useJqueryUICode();
useCSS();
echo "<title>Haiti Voice Needs</title></head><body>";
}
function printMinimalHeader() {
echo "<!doctype html><html><head>";
useJqueryUICode();
useCSS();
echo "<title>Haiti Voice Needs</title></head><body>";
}
function printLogoBar() {
echo "<div id='logobar'>Haiti Voice Needs<img src='images/mobile.jpg' width='50' height='50'></div>";
}
function printFooter() {
addUservoiceWidget();
echo "<div id='footer'><a href='about.php'>About Us</a></div></body></html>";
}
function printBanner() {
echo "
<div id='banner'>
<div id='englishBanner' class='call'>
Have information about Haiti? <br/>Call <strong>+1 (877) 293-6031</strong> toll-free and tell us about it.
</div>
<div id='creoleBanner' class='call'>
Pale Kreyol? Genye enfomasyon d'Ayiti?<br/>Rele nan <strong>+1 (877) 286-0676</strong> a nou rakonte
</div>
</div>
";
}
function printEmailSignup() {
echo "
<div id='email' class='side_blurb'>
Join our email list for updates.
<form id='emailForm' action='javascript:void(0);'>
Email: <input type='text' name='email' />
</form>
<button onclick='addEmail();'>Join</button>
</div>
";
}
function printHelpBlurb() {
echo "
<div id='help_blurb' class='side_blurb'>
Help us out! We need volunteers to help us develop the site and expand our service.
<a href='help.php' target='_blank'>Click here</a> to see a list of what skills we need.
</div>
";
}
function addUservoiceWidget() {
echo "
<script type='text/javascript'>
var uservoiceOptions = {
/* required */
key: 'haitivoice',
host: 'haitivoice.uservoice.com',
forum: '39091',
showTab: true,
/* optional */
alignment: 'left',
background_color:'#f00',
text_color: 'white',
hover_color: '#06C',
lang: 'en'
};
function _loadUserVoice() {
var s = document.createElement('script');
s.setAttribute('type', 'text/javascript');
s.setAttribute('src', ('https:' == document.location.protocol ? 'https://' : 'http://') + 'cdn.uservoice.com/javascripts/widgets/tab.js');
document.getElementsByTagName('head')[0].appendChild(s);
}
_loadSuper = window.onload;
window.onload = (typeof window.onload != 'function') ? _loadUserVoice : function() { _loadSuper(); _loadUserVoice(); };
</script>
";
}
?>