From a7079d4327b47cb3fed429ac12ed7c72c0adfe2e Mon Sep 17 00:00:00 2001
From: Michael Vogel
Date: Sun, 26 Jan 2014 09:58:41 +0100
Subject: [PATCH] Adding metadata in the schema.org format.
---
mod/display.php | 12 ++++++++++--
view/default.php | 2 +-
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/mod/display.php b/mod/display.php
index efae937e16..75e51d5a90 100644
--- a/mod/display.php
+++ b/mod/display.php
@@ -99,7 +99,7 @@ function display_content(&$a, $update = 0) {
notice( t('Access to this profile has been restricted.') . EOL);
return;
}
-
+
if ($is_owner) {
$celeb = ((($a->user['page-flags'] == PAGE_SOAPBOX) || ($a->user['page-flags'] == PAGE_COMMUNITY)) ? true : false);
@@ -216,12 +216,20 @@ function display_content(&$a, $update = 0) {
$a->page['htmlhead'] .= ''."\n";
$a->page['htmlhead'] .= ''."\n";
+ // Schema.org microdata
+ $a->page['htmlhead'] .= ''."\n";
+ $a->page['htmlhead'] .= ''."\n";
+ $a->page['htmlhead'] .= ''."\n";
+ $a->page['htmlhead'] .= ''."\n";
+
+ // Dublin Core
$a->page['htmlhead'] .= ''."\n";
$a->page['htmlhead'] .= ''."\n";
+ // Open Graph
$a->page['htmlhead'] .= ''."\n";
$a->page['htmlhead'] .= ''."\n";
- //
+ $a->page['htmlhead'] .= ''."\n";
$a->page['htmlhead'] .= ''."\n";
$a->page['htmlhead'] .= ''."\n";
$a->page['htmlhead'] .= ''."\n";
diff --git a/view/default.php b/view/default.php
index 792b2fbbcd..78ca97ac94 100644
--- a/view/default.php
+++ b/view/default.php
@@ -1,5 +1,5 @@
-
+
--
2.39.5