brc/collections.php

42 lines
1.1 KiB
PHP
Raw Normal View History

2020-10-30 23:14:38 +01:00
<?php
$show_sep=true;
include('header.tpl');
?>
2020-10-30 22:27:38 +01:00
<div id="content_padding">
2020-11-01 21:17:58 +01:00
<?php
2020-11-01 23:44:44 +01:00
$collectionjs = file_get_contents("projects_data/collection_data.json");
$collection = json_decode($collectionjs, true);
2020-11-01 21:17:58 +01:00
?>
<div class="collection_container">
<?php
$index = 0;
2020-11-01 23:44:44 +01:00
foreach($collection as $c) {
$html = '
<div class="collection">
2020-10-30 01:12:05 +01:00
<div class="flexbox-col-img">
<div class="col-img-container">
<img class="col-image" src="projects_data/img/' . $c['preview_image_url'] . '" alt="example image for ' . $c['name'] .'">
2020-10-30 22:27:38 +01:00
<a class="col-img-desc" href="#">
</a>
</div>
2020-10-30 01:12:05 +01:00
<div class="col-desc">
' . $c['collection_description'] . '
</div>
</div>
2020-10-30 20:49:47 +01:00
<h1>' . $c["name"] . '</h1>
</div>
';
2020-11-01 21:17:58 +01:00
}
print($html);
$index += 1;
?>
</div>
2020-10-30 18:28:52 +01:00
<!-- <section class="cta" style="clear: both;">
<div class="container">
<h2 class="title title-cta">Order your piece now!
</h2>
<a href="contacts.html" class="button button-dark">Order</a>
</div>
2020-10-30 18:28:52 +01:00
</section> -->
</div>
2020-10-28 21:14:03 +01:00
<?php include('footer.tpl'); ?>