diff --git a/htdocs/core/lib/website.lib.php b/htdocs/core/lib/website.lib.php
index 10ba1707bf1..08ccdb05246 100644
--- a/htdocs/core/lib/website.lib.php
+++ b/htdocs/core/lib/website.lib.php
@@ -437,17 +437,41 @@ function includeContainer($containerref)
/**
* Return HTML content to add structured data for an article, news or Blog Post.
*
- * @param string $type 'blogpost', 'product', ...
+ * @param string $type 'blogpost', 'product', 'software'...
* @param WebsitePage $websitepage Website page object
+ * @param array $data Array of data parameters for structured data
* @return string HTML content
*/
-function getStructuredData($type, WebsitePage $websitepage)
+function getStructuredData($type, WebsitePage $websitepage, $data = array())
{
global $conf, $db, $hookmanager, $langs, $mysoc, $user, $website, $weblangs; // Very important. Required to have var available when running inluded containers.
global $includehtmlcontentopened;
global $websitekey, $websitepagefile;
- if ($type == 'blogpost')
+ if ($type == 'software')
+ {
+ $ret = ''."\n";
+ $ret .= ''."\n";
+ }
+ elseif ($type == 'blogpost')
{
if ($websitepage->fk_user_creat > 0)
{
@@ -486,13 +510,47 @@ function getStructuredData($type, WebsitePage $websitepage)
},
"description": "'.$websitepage->description.'"
}'."\n";
- /*
- */
$ret .= ''."\n";
}
}
}
-
+ elseif ($type == 'product')
+ {
+ $ret = ''."\n";
+ $ret.= ''."\n";
+ }
return $ret;
}