testet to use json
This commit is contained in:
parent
7709392309
commit
40a3b60bfb
3 changed files with 162 additions and 158 deletions
|
@ -4,14 +4,14 @@
|
|||
?>
|
||||
<div id="content_padding">
|
||||
<?php
|
||||
$strJsonFileContents = file_get_contents("projects_data/collection_data.json");
|
||||
$array = json_decode($strJsonFileContents, true);
|
||||
$collectionjs = file_get_contents("projects_data/collection_data.json");
|
||||
$collection = json_decode($collectionjs, true);
|
||||
?>
|
||||
<div class="collection_container">
|
||||
<?php
|
||||
$index = 0;
|
||||
foreach($collections as $c) {
|
||||
$html = '
|
||||
foreach($collection as $c) {
|
||||
$html = '
|
||||
<div class="collection">
|
||||
<div class="flexbox-col-img">
|
||||
<div class="col-img-container">
|
||||
|
|
|
@ -1,154 +1,4 @@
|
|||
skeleton = {
|
||||
"name":"The skeleton from the closet",
|
||||
"preview_image_url":"skeleton_from_the_closet/cover.jpg",
|
||||
"collection_description":[
|
||||
"Description"
|
||||
],
|
||||
"items": [
|
||||
{ "name":"name" },
|
||||
{ "description":"description" },
|
||||
{ "measurments":"measurments" },
|
||||
{ "images":[
|
||||
"images",
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
cabinet = {
|
||||
"name":"Cabinet Of Curiosities",
|
||||
"preview_image_url":"cabinet_of_curiosities/cover.jpg",
|
||||
"collection_description":[
|
||||
"Description"
|
||||
],
|
||||
"items": {
|
||||
"pieces": [
|
||||
{ "name":"Diretmus Argenteus" },
|
||||
{ "description":"description" },
|
||||
{ "material":"Sterling silver, london blue topaz"},
|
||||
{ "measurments":"measurments" },
|
||||
{ "images":[
|
||||
"cabinet_of_curiosities/diretmus_argenteus.jpg",
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
"pieces": [
|
||||
{ "name":"Psathyrella Gracilis" },
|
||||
{ "description":"Statement pendant for a thick cord" },
|
||||
{ "material":"Bronze, verdigris patina"},
|
||||
{ "measurments":"8x3,5cm" },
|
||||
{ "images":[
|
||||
"cabinet_of_curiosities/psathyrella_gracilis.jpg",
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
"pieces": [
|
||||
{ "name":"Amanita phalloides" },
|
||||
{ "description":"Statement pendant for a thick cord or chain up to 3mm thick" },
|
||||
{ "material":"Silver, 18K gold, 24K gold plating"},
|
||||
{ "measurments":"5x3,5cm" },
|
||||
{ "images":[
|
||||
"cabinet_of_curiosities/amanita.jpg",
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
heart = {
|
||||
"name":"Tell Tale Heart",
|
||||
"preview_image_url":"tell_tale_heart/cover.jpg",
|
||||
"collection_description":[
|
||||
"<p>The Sacred heart is an ultimate symbol of a passionate love for mankind.
|
||||
Inspired by this classical motive and explored beyond its original roots, enameled sacred heart necklace is going to charm it's way into Your life together with You.</p>
|
||||
<p>Enameled sacred heart necklace is limited edition piece of variety of pendants and medallions from the collection "Tell tale hearts".
|
||||
These talismanic hearts represent a sensual and passionate side of its owners, a promise of love or an ode to inspiration - it is yet to be established.
|
||||
Being one of a kind piece, second out of thirteen different interpretations of this model, the colors, textures and stones will not repeat itself in any other one.
|
||||
All 13 hearts are unique and no copies can be produced.</p>"
|
||||
],
|
||||
"items": {
|
||||
"pieces": [
|
||||
{ "name":"Tell tale heart" },
|
||||
{ "description":"Ultramarine & almandine (2/13)" },
|
||||
{ "material":"Silver, 18K gold, almandine garnet, enamelling and gold plating"},
|
||||
{ "measurments":"4x3,5cm" },
|
||||
{ "images":[
|
||||
"tell_tale_heart/img1.jpg",
|
||||
"tell_tale_heart/img2.jpg",
|
||||
"tell_tale_heart/img3.jpg",
|
||||
"tell_tale_heart/img4.jpg",
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
chest = {
|
||||
"name":"The dead mans chest",
|
||||
"preview_image_url":"dead_mans_chest/cover.jpg",
|
||||
"collection_description":[
|
||||
"<p>Inspired by pirate tales, Blackbeard and the Whydah Gally,
|
||||
these pieces are the tribute to the long forgotten treasures and
|
||||
jewels that lay burried in a watery grave. This jewelry series is mostly
|
||||
based on replicated archeological artefacts from shipwrecks</p>"
|
||||
],
|
||||
"items": {
|
||||
"pieces": [
|
||||
{ "name":"Escudo Charm" },
|
||||
{ "description":"Based on a replica of a shipwreck spanish escudo coin" },
|
||||
{ "material":"Silver, sapphirres"},
|
||||
{ "measurments":"2,5x2cm" },
|
||||
{ "images":[
|
||||
"dead_mans_chest/cover.jpg",
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
chest = {
|
||||
"name":"Behind the closed doors",
|
||||
"preview_image_url":"behind_the_closed_doors/cover.jpg",
|
||||
"collection_description":[
|
||||
"<p>Description</p>"
|
||||
],
|
||||
"items": {
|
||||
"pieces": [
|
||||
{ "name":"name" },
|
||||
{ "description":"description" },
|
||||
{ "material":"material"},
|
||||
{ "measurments":"measurements" },
|
||||
{ "images":[
|
||||
"behind_the_closed_doors/teeth_ring.jpg",
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
chest = {
|
||||
"name":"Madman's Basement",
|
||||
"preview_image_url":"madmans_basement/cover.jpg",
|
||||
"collection_description":[
|
||||
"<p>Ladies and gentlemen, feast your eyes! The sideshow of goldsmith's bench!
|
||||
Step out to see the creatures of experimental tecniques, designs and
|
||||
unconventional materials, the Frankentein's monsters of metalsmithing, insane
|
||||
projects and much, much more - all that is beyond description and scientific
|
||||
classification found its resting place right here, in Bricabracomania's very own
|
||||
Madman's Basement museum</p>"
|
||||
],
|
||||
"items": {
|
||||
"pieces": [
|
||||
{ "name":"Teeth ring" },
|
||||
{ "description":"description" },
|
||||
{ "material":"material"},
|
||||
{ "measurments":"measurements" },
|
||||
{ "images":[
|
||||
"madmans_basement/teeth_ring.jpg",
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
{
|
||||
"name":"The skeleton from the closet",
|
||||
"preview_image_url":"skeleton_from_the_closet/cover.jpg"
|
||||
}
|
||||
|
|
154
tmp json
Normal file
154
tmp json
Normal file
|
@ -0,0 +1,154 @@
|
|||
"skeleton" = {
|
||||
"name":"The skeleton from the closet",
|
||||
"preview_image_url":"skeleton_from_the_closet/cover.jpg",
|
||||
"collection_description":[
|
||||
"Description"
|
||||
],
|
||||
"items": [
|
||||
{ "name":"name" },
|
||||
{ "description":"description" },
|
||||
{ "measurments":"measurments" },
|
||||
{ "images":[
|
||||
"images",
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
"cabinet" = {
|
||||
"name":"Cabinet Of Curiosities",
|
||||
"preview_image_url":"cabinet_of_curiosities/cover.jpg",
|
||||
"collection_description":[
|
||||
"Description"
|
||||
],
|
||||
"items": {
|
||||
"pieces": [
|
||||
{ "name":"Diretmus Argenteus" },
|
||||
{ "description":"description" },
|
||||
{ "material":"Sterling silver, london blue topaz"},
|
||||
{ "measurments":"measurments" },
|
||||
{ "images":[
|
||||
"cabinet_of_curiosities/diretmus_argenteus.jpg",
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
"pieces": [
|
||||
{ "name":"Psathyrella Gracilis" },
|
||||
{ "description":"Statement pendant for a thick cord" },
|
||||
{ "material":"Bronze, verdigris patina"},
|
||||
{ "measurments":"8x3,5cm" },
|
||||
{ "images":[
|
||||
"cabinet_of_curiosities/psathyrella_gracilis.jpg",
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
"pieces": [
|
||||
{ "name":"Amanita phalloides" },
|
||||
{ "description":"Statement pendant for a thick cord or chain up to 3mm thick" },
|
||||
{ "material":"Silver, 18K gold, 24K gold plating"},
|
||||
{ "measurments":"5x3,5cm" },
|
||||
{ "images":[
|
||||
"cabinet_of_curiosities/amanita.jpg",
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
heart = {
|
||||
"name":"Tell Tale Heart",
|
||||
"preview_image_url":"tell_tale_heart/cover.jpg",
|
||||
"collection_description":[
|
||||
"<p>The Sacred heart is an ultimate symbol of a passionate love for mankind.
|
||||
Inspired by this classical motive and explored beyond its original roots, enameled sacred heart necklace is going to charm it's way into Your life together with You.</p>
|
||||
<p>Enameled sacred heart necklace is limited edition piece of variety of pendants and medallions from the collection "Tell tale hearts".
|
||||
These talismanic hearts represent a sensual and passionate side of its owners, a promise of love or an ode to inspiration - it is yet to be established.
|
||||
Being one of a kind piece, second out of thirteen different interpretations of this model, the colors, textures and stones will not repeat itself in any other one.
|
||||
All 13 hearts are unique and no copies can be produced.</p>"
|
||||
],
|
||||
"items": {
|
||||
"pieces": [
|
||||
{ "name":"Tell tale heart" },
|
||||
{ "description":"Ultramarine & almandine (2/13)" },
|
||||
{ "material":"Silver, 18K gold, almandine garnet, enamelling and gold plating"},
|
||||
{ "measurments":"4x3,5cm" },
|
||||
{ "images":[
|
||||
"tell_tale_heart/img1.jpg",
|
||||
"tell_tale_heart/img2.jpg",
|
||||
"tell_tale_heart/img3.jpg",
|
||||
"tell_tale_heart/img4.jpg",
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
chest = {
|
||||
"name":"The dead mans chest",
|
||||
"preview_image_url":"dead_mans_chest/cover.jpg",
|
||||
"collection_description":[
|
||||
"<p>Inspired by pirate tales, Blackbeard and the Whydah Gally,
|
||||
these pieces are the tribute to the long forgotten treasures and
|
||||
jewels that lay burried in a watery grave. This jewelry series is mostly
|
||||
based on replicated archeological artefacts from shipwrecks</p>"
|
||||
],
|
||||
"items": {
|
||||
"pieces": [
|
||||
{ "name":"Escudo Charm" },
|
||||
{ "description":"Based on a replica of a shipwreck spanish escudo coin" },
|
||||
{ "material":"Silver, sapphirres"},
|
||||
{ "measurments":"2,5x2cm" },
|
||||
{ "images":[
|
||||
"dead_mans_chest/cover.jpg",
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
chest = {
|
||||
"name":"Behind the closed doors",
|
||||
"preview_image_url":"behind_the_closed_doors/cover.jpg",
|
||||
"collection_description":[
|
||||
"<p>Description</p>"
|
||||
],
|
||||
"items": {
|
||||
"pieces": [
|
||||
{ "name":"name" },
|
||||
{ "description":"description" },
|
||||
{ "material":"material"},
|
||||
{ "measurments":"measurements" },
|
||||
{ "images":[
|
||||
"behind_the_closed_doors/teeth_ring.jpg",
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
chest = {
|
||||
"name":"Madman's Basement",
|
||||
"preview_image_url":"madmans_basement/cover.jpg",
|
||||
"collection_description":[
|
||||
"<p>Ladies and gentlemen, feast your eyes! The sideshow of goldsmith's bench!
|
||||
Step out to see the creatures of experimental tecniques, designs and
|
||||
unconventional materials, the Frankentein's monsters of metalsmithing, insane
|
||||
projects and much, much more - all that is beyond description and scientific
|
||||
classification found its resting place right here, in Bricabracomania's very own
|
||||
Madman's Basement museum</p>"
|
||||
],
|
||||
"items": {
|
||||
"pieces": [
|
||||
{ "name":"Teeth ring" },
|
||||
{ "description":"description" },
|
||||
{ "material":"material"},
|
||||
{ "measurments":"measurements" },
|
||||
{ "images":[
|
||||
"madmans_basement/teeth_ring.jpg",
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
Loading…
Reference in a new issue