diff options
-rw-r--r-- | views/rss/annotation/default.php | 11 | ||||
-rw-r--r-- | views/rss/group/default.php | 11 | ||||
-rw-r--r-- | views/rss/object/default.php | 11 | ||||
-rw-r--r-- | views/rss/pageshells/pageshell.php | 2 |
4 files changed, 31 insertions, 4 deletions
diff --git a/views/rss/annotation/default.php b/views/rss/annotation/default.php index 375a3d5ac..f96e85632 100644 --- a/views/rss/annotation/default.php +++ b/views/rss/annotation/default.php @@ -25,5 +25,14 @@ <pubDate><?php echo date("r",$vars['entity']->time_created) ?></pubDate>
<link><?php echo $vars['entity']->getURL(); ?>#<?php echo $vars['annotation']->id; ?></link>
<title><![CDATA[<?php echo $title; ?>]]></title>
- <description><![CDATA[<?php echo (autop($vars['annotation']->value)); ?>]]></description>
+ <description><![CDATA[<?php echo (autop($vars['annotation']->value)); ?>]]></description> + <?php + $owner = get_entity($vars['entity']->owner); + if ($owner) + { +?> + <dc:creator><?php echo $owner->name; ?></dc:creator> +<?php + } + ?>
</item>
diff --git a/views/rss/group/default.php b/views/rss/group/default.php index 281dc93cc..ce4cc026f 100644 --- a/views/rss/group/default.php +++ b/views/rss/group/default.php @@ -18,5 +18,14 @@ <pubDate><?php echo date("r",$vars['entity']->time_created) ?></pubDate>
<link><?php echo htmlspecialchars($vars['entity']->getURL()); ?></link>
<title><![CDATA[<?php echo (($vars['entity']->name)); ?>]]></title>
- <description><![CDATA[<?php echo (autop($vars['entity']->description)); ?>]]></description>
+ <description><![CDATA[<?php echo (autop($vars['entity']->description)); ?>]]></description> + <?php + $owner = $vars['entity']->getOwnerEntity(); + if ($owner) + { +?> + <dc:creator><?php echo $owner->name; ?></dc:creator> +<?php + } + ?>
</item>
diff --git a/views/rss/object/default.php b/views/rss/object/default.php index 7b55c5846..b711ab329 100644 --- a/views/rss/object/default.php +++ b/views/rss/object/default.php @@ -26,5 +26,14 @@ <pubDate><?php echo date("r",$vars['entity']->time_created) ?></pubDate>
<link><?php echo htmlspecialchars($vars['entity']->getURL()); ?></link>
<title><![CDATA[<?php echo $title; ?>]]></title>
- <description><![CDATA[<?php echo (autop($vars['entity']->description)); ?>]]></description>
+ <description><![CDATA[<?php echo (autop($vars['entity']->description)); ?>]]></description> + <?php + $owner = $vars['entity']->getOwnerEntity(); + if ($owner) + { +?> + <dc:creator><?php echo $owner->name; ?></dc:creator> +<?php + } + ?>
</item>
diff --git a/views/rss/pageshells/pageshell.php b/views/rss/pageshells/pageshell.php index 56a4cb4fd..27ada7ab3 100644 --- a/views/rss/pageshells/pageshell.php +++ b/views/rss/pageshells/pageshell.php @@ -32,7 +32,7 @@ ?> -<rss version='2.0' xmlns:dc='http://purl.org/dc/elements/1.1/'> +<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"> <channel xml:base=''> <title><![CDATA[<?php echo $title; ?>]]></title> <link><?php echo htmlentities($url); ?></link> |