Browse Source

Removed placeholder code

pull/1/head
parent
commit
cc8f96833c
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      edu/index.php

+ 3
- 2
edu/index.php View File

@ -13,7 +13,8 @@ $sections = json_decode(file_get_contents("content.json"), true);
$i = 0;
// Image array for item types
$images = [
"book" => "book.png"
"book" => "book.png",
"document" => "document.png"
];
// Build section
foreach ($sections as $section) {
@ -45,7 +46,7 @@ foreach ($sections as $section) {
$itemImage = $images[$itemType];
} else {
// $itemType was not found in the images array, so default to book
$itemImage = $images["book"];
$itemImage = $images[$itemType];
}
// Echo item to page
echo("


Loading…
Cancel
Save