Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…rs stuff was parsed.
  • Loading branch information...
commit c3f8f63cbf73b7cce286ab7abf2e018143b1715c 1 parent c50a8c6
Parker Moore authored
19 index.php
@@ -128,7 +128,23 @@
128 128 foreach($sponsors as $sponsor):
129 129 ?>
130 130 <li class="sponsor">
131   - <a href="<?php echo $sponsor->website; ?>" title="<?php echo $sponsor->name; ?>" target="_blank"><?php echo htmlentities($sponsor->name); ?></a>
  131 + <?php
  132 + if(strtolower($sponsor->name) == "sos tutoring"){
  133 + echo sprintf('<a href="%1$s" title="%2$s" target="_blank"><img src="%3$s" alt="%2$s" height="%4$d" width="%5$d">',
  134 + $sponsor->website,
  135 + $sponsor->name,
  136 + "sponsors/SOSTutoring-small.jpg",
  137 + 100,
  138 + ((100*400)/253)
  139 + );
  140 + }else{
  141 + echo sprintf('<a href="%s" title="%s" target="_blank">%s</a>',
  142 + $sponsor->website,
  143 + $sponsor->name,
  144 + htmlentities($sponsor->name)
  145 + );
  146 + }
  147 + ?>
132 148 </li>
133 149 <?php endforeach; ?>
134 150 </ul>
@@ -149,6 +165,7 @@
149 165 $people = explode("\n\n", $page->content);
150 166
151 167 foreach($people as $personn):
  168 + if(strpos($personn, "----") !== false){ echo tag("p", $personn); continue; }
152 169 $p = explode("\n", $personn);
153 170 echo linkify(tag("p", tag("strong", $p[0])."<br>".tag("em", $p[1])));
154 171 endforeach;
BIN  sponsors/SOSTutoring-small.jpg
BIN  sponsors/SOSTutoring.jpg

0 comments on commit c3f8f63

Please sign in to comment.
Something went wrong with that request. Please try again.