aboutsummaryrefslogtreecommitdiff
path: root/views/rss
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-05-14 16:45:31 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-05-14 16:45:31 +0000
commit9e1ff71a0ffd0036ad3586be397d77034384b3e2 (patch)
tree72a25e9b68fdb0ef88ba715e1bf469b92587119d /views/rss
parent1119cf74af4e3fdc0b81e0667ba7f76f25313cc3 (diff)
downloadelgg-9e1ff71a0ffd0036ad3586be397d77034384b3e2.tar.gz
elgg-9e1ff71a0ffd0036ad3586be397d77034384b3e2.tar.bz2
Making use of the Dublin Core extensions to provide owner information in RSS feeds
git-svn-id: https://code.elgg.org/elgg/trunk@3290 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/rss')
-rw-r--r--views/rss/annotation/default.php11
-rw-r--r--views/rss/group/default.php11
-rw-r--r--views/rss/object/default.php11
-rw-r--r--views/rss/pageshells/pageshell.php2
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>