Permalink
Browse files

Using logo for SOS Tutoring and fixed the way charity week coordinato…

…rs stuff was parsed.
  • Loading branch information...
1 parent c50a8c6 commit c3f8f63cbf73b7cce286ab7abf2e018143b1715c @parkr committed Mar 4, 2012
Showing with 18 additions and 1 deletion.
  1. +18 −1 index.php
  2. BIN sponsors/SOSTutoring-small.jpg
  3. BIN sponsors/SOSTutoring.jpg
View
19 index.php
@@ -128,7 +128,23 @@
foreach($sponsors as $sponsor):
?>
<li class="sponsor">
- <a href="<?php echo $sponsor->website; ?>" title="<?php echo $sponsor->name; ?>" target="_blank"><?php echo htmlentities($sponsor->name); ?></a>
+ <?php
+ if(strtolower($sponsor->name) == "sos tutoring"){
+ echo sprintf('<a href="%1$s" title="%2$s" target="_blank"><img src="%3$s" alt="%2$s" height="%4$d" width="%5$d">',
+ $sponsor->website,
+ $sponsor->name,
+ "sponsors/SOSTutoring-small.jpg",
+ 100,
+ ((100*400)/253)
+ );
+ }else{
+ echo sprintf('<a href="%s" title="%s" target="_blank">%s</a>',
+ $sponsor->website,
+ $sponsor->name,
+ htmlentities($sponsor->name)
+ );
+ }
+ ?>
</li>
<?php endforeach; ?>
</ul>
@@ -149,6 +165,7 @@
$people = explode("\n\n", $page->content);
foreach($people as $personn):
+ if(strpos($personn, "----") !== false){ echo tag("p", $personn); continue; }
$p = explode("\n", $personn);
echo linkify(tag("p", tag("strong", $p[0])."<br>".tag("em", $p[1])));
endforeach;
View
BIN sponsors/SOSTutoring-small.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN sponsors/SOSTutoring.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c3f8f63

Please sign in to comment.