forked from TeamMeanMachine/Website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebar.php
90 lines (80 loc) · 3.36 KB
/
sidebar.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
<div id="sidebar2" class="sidebar">
<ul>
<li>
<a href="http://www.usfirst.org"><img src="images/FRCicon_RGB.gif" class="firstlogo" alt="FIRST Logo"></a>
</li>
<li>
<h2>Twitter</h2>
<br />
<div id="twitter">
<a class="twitter-timeline" href="https://twitter.com/MeanMachine2471" data-widget-id="350758890092232704">Tweets by @MeanMachine2471</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
</li>
<li>
<h2>Sponsors</h2>
<ul class="sponsorlist">
<b>
<?php
$corporateSponsorList = file_get_contents("content/CorporateSponsors.txt");
$privateSponsorList = file_get_contents("content/PrivateSponsors.txt");
$educationSponsorList = file_get_contents("content/EducationPartners.txt");
$fundraisingSponsorList = file_get_contents("content/FundraisingAffiliates.txt");
$corporateSponsorarray = explode("\n", $corporateSponsorList);
$privateSponsorarray = explode("\n", $privateSponsorList);
$educationSponsorarray = explode("\n", $educationSponsorList);
$fundraisingSponsorarray = explode("\n", $fundraisingSponsorList);
echo "<h3>Corporate Sponsors</h3>";
foreach ($corporateSponsorarray as $sponsor) {
$sponsordetails = explode(",", $sponsor);
if($sponsordetails[1] == "") {
echo "<br /> -$sponsordetails[0] <br />";
}
else {
echo "<br /> -<a style=\"target-new: tab\" target=\"new\" href=\"$sponsordetails[1]\">$sponsordetails[0]</a> <br />";
}
}
echo "<h3>Private Sponsors</h3>";
foreach ($privateSponsorarray as $sponsor) {
$sponsordetails = explode(",", $sponsor);
if($sponsordetails[1] == "") {
echo "<br /> -$sponsordetails[0] <br />";
}
else {
echo "<br /> -<a style=\"target-new: tab\" target=\"new\" href=\"$sponsordetails[1]\">$sponsordetails[0]</a> <br />";
}
}
echo "<h3>Education Sponsors</h3>";
foreach ($educationSponsorarray as $sponsor) {
$sponsordetails = explode(",", $sponsor);
if($sponsordetails[1] == "") {
echo "<br /> -$sponsordetails[0] <br />";
}
else {
echo "<br /> -<a style=\"target-new: tab\" target=\"new\" href=\"$sponsordetails[1]\">$sponsordetails[0]</a> <br />";
}
}
// foreach ($fundraisingSponsorarray as $sponsor) {
// $sponsordetails = explode(",", $sponsor);
// if($sponsordetails[1] == "") {
// echo "<br /> -$sponsordetails[0] <br />";
// }
// else {
// echo "<br /> -<a style=\"target-new: tab\" target=\"new\" href=\"$sponsordetails[1]\">$sponsordetails[0]</a> <br />";
// }
// }
?>
<br />
<p>View our <a href="index.php?page=Sponsors">Sponsor Page</a></p>
</b>
</ul>
</li>
<li>
<h2>FIRST websites</h2>
<br />
<a href="http://www.firstwa.org/"><img alt="FirstWA Logo" src="images/FIRSTWALogo.png" class="firstlogo"></a>
<br />
<a href="http://www.oregonfirst.org/"><img alt="Oregon First Logo" src="images/OregonFirstLogo.png" class="firstlogo"></a>
</li>
</ul>
</div>