aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/views/rss/annotation
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-11-04 07:01:21 -0400
committerCash Costello <cash.costello@gmail.com>2011-11-04 07:01:21 -0400
commit7787debf3e536497952256df147ea84e520390e3 (patch)
tree83418d09f54ecd3101f796e1efc721a3021934c9 /mod/groups/views/rss/annotation
parent5d480f2d8a767c682878071c3c8f7f6b45770c14 (diff)
downloadelgg-7787debf3e536497952256df147ea84e520390e3.tar.gz
elgg-7787debf3e536497952256df147ea84e520390e3.tar.bz2
Fixes #4027 updated groups RSS feeds for 1.8
Diffstat (limited to 'mod/groups/views/rss/annotation')
-rw-r--r--mod/groups/views/rss/annotation/group_topic_post.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/mod/groups/views/rss/annotation/group_topic_post.php b/mod/groups/views/rss/annotation/group_topic_post.php
new file mode 100644
index 000000000..0d3a40117
--- /dev/null
+++ b/mod/groups/views/rss/annotation/group_topic_post.php
@@ -0,0 +1,32 @@
+<?php
+/**
+ * RSS view for a discussion reply
+ *
+ * @uses $vars['annotation']
+ */
+
+$annotation = $vars['annotation'];
+
+$poster = $annotation->getOwnerEntity();
+$poster_name = htmlspecialchars($poster->name, ENT_NOQUOTES, 'UTF-8');
+$pubdate = date('r', $annotation->getTimeCreated());
+$permalink = $annotation->getURL();
+
+$title = elgg_echo('discussion:reply:title', array($poster_name));
+
+$creator = elgg_view('page/components/creator', array('entity' => $annotation));
+$extensions = elgg_view('extensions/item', $vars);
+
+$item = <<<__HTML
+<item>
+ <guid isPermaLink='true'>$permalink</guid>
+ <pubDate>$pubdate</pubDate>
+ <link>$permalink</link>
+ <title><![CDATA[$title]]></title>
+ <description><![CDATA[{$vars['annotation']->value}]]></description>
+ $creator$extensions
+</item>
+
+__HTML;
+
+echo $item;