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');
?>
<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">
<?php
$index = 0;
@ -23,9 +26,9 @@
<h1>' . $c["name"] . '</h1>
</div>
';
}
print($html);
$index += 1;
}
?>
</div>
<!-- <section class="cta" style="clear: both;">

View file

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