summaryrefslogtreecommitdiff
path: root/lib/xrd.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/xrd.php')
-rw-r--r--lib/xrd.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/xrd.php b/lib/xrd.php
index c8cffed9c..9c6d9f3ab 100644
--- a/lib/xrd.php
+++ b/lib/xrd.php
@@ -130,14 +130,24 @@ class XRD
foreach ($this->links as $link) {
$titles = array();
+ $properties = array();
if (isset($link['title'])) {
$titles = $link['title'];
unset($link['title']);
}
+ if (isset($link['property'])) {
+ $properties = $link['property'];
+ unset($link['property']);
+ }
$xs->elementStart('Link', $link);
foreach ($titles as $title) {
$xs->element('Title', null, $title);
}
+ foreach ($properties as $property) {
+ $xs->element('Property',
+ array('type' => $property['type']),
+ $property['value']);
+ }
$xs->elementEnd('Link');
}