Quick example mixes js and php I think
JeromeSadou opened this issue · 1 comments
JeromeSadou commented
Not a big issue but I think :
$doc = (object)array(
"http://schema.org/name" => "Manu Sporny",
"http://schema.org/url" => {"@id": "http://manu.sporny.org/"},
"http://schema.org/image" => {"@id": "http://manu.sporny.org/images/manu.png"});
$context = (object)array(
"name" => "http://schema.org/name",
"homepage" => {"@id": "http://schema.org/url", "@type": "@id"},
"image" => {"@id": "http://schema.org/image", "@type": "@id"});
should be written :
$doc = (object)array(
"http://schema.org/name" => "Manu Sporny",
"http://schema.org/url" => (object)array("@id" => "http://manu.sporny.org/" ),
etc...
dlongley commented
Fixed. Thanks @OhayoStudio!