try to rebuild collections with json
This commit is contained in:
parent
9d40d0f1d2
commit
ea7d94d9e5
2 changed files with 9 additions and 3 deletions
|
@ -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;">
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
collections = {
|
||||
|
||||
skeleton = {
|
||||
"name":"The skeleton from the closet",
|
||||
"preview_image_url":"skeleton_from_the_closet/cover.jpg",
|
||||
|
@ -152,3 +154,4 @@ chest = {
|
|||
],
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Reference in a new issue