From: Evan Prodromou Date: Tue, 7 Dec 2010 20:53:08 +0000 (-0500) Subject: allow elements in in XRD X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=eab8d752e8d74a5b95ab61cdddac1061a6dd9a26;p=quix0rs-gnu-social.git allow elements in in XRD --- diff --git a/lib/xrd.php b/lib/xrd.php index c8cffed9cd..9c6d9f3ab7 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'); }