From 40a3b60bfbfbb59f15771c5e9bde874d0adebee0 Mon Sep 17 00:00:00 2001 From: fr34k Date: Sun, 1 Nov 2020 23:44:44 +0100 Subject: [PATCH] testet to use json --- collections.php | 8 +- projects_data/collection_data.json | 158 +---------------------------- tmp json | 154 ++++++++++++++++++++++++++++ 3 files changed, 162 insertions(+), 158 deletions(-) create mode 100644 tmp json diff --git a/collections.php b/collections.php index 3fc4b39..c90618e 100644 --- a/collections.php +++ b/collections.php @@ -4,14 +4,14 @@ ?>
diff --git a/projects_data/collection_data.json b/projects_data/collection_data.json index da19aa9..5c4bf59 100644 --- a/projects_data/collection_data.json +++ b/projects_data/collection_data.json @@ -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":[ - "

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.

-

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.

" - ], - "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":[ - "

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

" - ], - "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":[ - "

Description

" - ], - "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":[ - "

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

" - ], - "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" +} diff --git a/tmp json b/tmp json new file mode 100644 index 0000000..f562674 --- /dev/null +++ b/tmp json @@ -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":[ + "

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.

+

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.

" + ], + "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":[ + "

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

" + ], + "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":[ + "

Description

" + ], + "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":[ + "

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

" + ], + "items": { + "pieces": [ + { "name":"Teeth ring" }, + { "description":"description" }, + { "material":"material"}, + { "measurments":"measurements" }, + { "images":[ + "madmans_basement/teeth_ring.jpg", + ], + }, + ], + }, +},