case "dc.description":
$siteinfo["text"] = $attr["content"];
break;
+ case "keywords":
+ $keywords = explode(",", $attr["content"]);
+ break;
+ case "news_keywords":
+ $keywords = explode(",", $attr["content"]);
+ break;
}
if ($siteinfo["type"] == "summary")
$siteinfo["type"] = "link";
}
+ if (isset($keywords)) {
+ $siteinfo["keywords"] = array();
+ foreach ($keywords as $keyword)
+ $siteinfo["keywords"][] = trim($keyword);
+ }
+
//$list = $xpath->query("head/meta[@property]");
$list = $xpath->query("//meta[@property]");
foreach ($list as $node) {