try to rebuild collections with json

This commit is contained in:
fr34k 2020-11-01 21:17:58 +01:00
parent 9d40d0f1d2
commit ea7d94d9e5
2 changed files with 9 additions and 3 deletions

View file

@ -3,7 +3,10 @@
include('header.tpl'); include('header.tpl');
?> ?>
<div id="content_padding"> <div id="content_padding">
<?php include('projects_data/project_items.php'); ?> <?php
$strJsonFileContents = file_get_contents("projects_data/collection_data.json");
$array = json_decode($strJsonFileContents, true);
?>
<div class="collection_container"> <div class="collection_container">
<?php <?php
$index = 0; $index = 0;
@ -23,9 +26,9 @@
<h1>' . $c["name"] . '</h1> <h1>' . $c["name"] . '</h1>
</div> </div>
'; ';
}
print($html); print($html);
$index += 1; $index += 1;
}
?> ?>
</div> </div>
<!-- <section class="cta" style="clear: both;"> <!-- <section class="cta" style="clear: both;">

View file

@ -1,3 +1,5 @@
collections = {
skeleton = { skeleton = {
"name":"The skeleton from the closet", "name":"The skeleton from the closet",
"preview_image_url":"skeleton_from_the_closet/cover.jpg", "preview_image_url":"skeleton_from_the_closet/cover.jpg",
@ -152,3 +154,4 @@ chest = {
], ],
}, },
}, },
}