Fix logo of organization

This commit is contained in:
Laurent Destailleur 2019-07-25 14:26:48 +02:00
parent 1978ffb370
commit 6674b8975b

View File

@ -479,14 +479,14 @@ function getStructuredData($type, WebsitePage $websitepage)
"publisher": { "publisher": {
"@type": "Organization", "@type": "Organization",
"name": "'.$mysoc->name.'" "name": "'.$mysoc->name.'"
"logo": {
"@type": "ImageObject",
"url": "/viewimage.php?modulepart=mycompany&file=logos%2F'.urlencode($mysoc->logo).'"
}
}, },
"description": "'.$websitepage->description.'" "description": "'.$websitepage->description.'"
}'."\n"; }'."\n";
/* /*
"logo": {
"@type": "ImageObject",
"url": "https://google.com/logo.jpg"
}
*/ */
$ret .= '</script>'."\n"; $ret .= '</script>'."\n";
} }