Skip to content
Snippets Groups Projects
Commit cc4444c7 authored by Safi Dewshi's avatar Safi Dewshi
Browse files

Added containers

parent ca10558c
No related branches found
No related tags found
No related merge requests found
htdocs/images/bananas/banana-container.png

7.23 KiB

htdocs/images/bananas/banana-g-container.png

7.09 KiB

......@@ -3,6 +3,10 @@
$output = "";
$score = $params['score'];
if ($score > 0) {
while ($score >= 250) {
$output .= " <img src=\"/images/bananas/banana-container.png\" width=\"92\" height=\"64\" alt=\"250\" title=\"Container of 250 Bananas\" />\n";
$score -= 250;
}
while ($score >= 50) {
$output .= " <img src=\"/images/bananas/banana-crate.png\" width=\"92\" height=\"64\" alt=\"50\" title=\"Crate of 50 Bananas\" />\n";
$score -= 50;
......@@ -18,6 +22,11 @@
}else if ($score == 0) {
$output .= " <img src=\"/images/bananas/banana-zero.png\" alt=\"0\" width=\"25px\" height=\"64px\" title=\"0 Bananas\" />\n";
}else {
while ($score >= -250) {
$output .= " <img src=\"/images/bananas/banana-g-container.png\" width=\"92\" height=\"64\" alt=\"250\" title=\"Container of 250 Green Bananas\" />\n";
$score += 250;
}
while ($score <= -50) {
$output .= " <img src=\"/images/bananas/banana-g-crate.png\" width=\"92\" height=\"64\" alt=\"-50\" title=\"Crate of 50 Green Bananas\" />\n";
$score += 50;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment