diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-22 16:56:55 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-22 16:56:55 +0000 |
commit | 1d33c3fd07fbfa41359af0e99079f57f022e7124 (patch) | |
tree | 7c8a11ab79801d4545aa8ca6ec8be1f231b2b287 /mod/groups/views/rss/object | |
parent | a140ef9c53edb2e249eab2eafccc6eb8c0952dab (diff) | |
download | elgg-1d33c3fd07fbfa41359af0e99079f57f022e7124.tar.gz elgg-1d33c3fd07fbfa41359af0e99079f57f022e7124.tar.bz2 |
Merged 1.7 bugfixes back into core. (5376:HEAD).
git-svn-id: http://code.elgg.org/elgg/trunk@5471 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/views/rss/object')
-rw-r--r-- | mod/groups/views/rss/object/groupforumtopic.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/mod/groups/views/rss/object/groupforumtopic.php b/mod/groups/views/rss/object/groupforumtopic.php new file mode 100644 index 000000000..765d315ee --- /dev/null +++ b/mod/groups/views/rss/object/groupforumtopic.php @@ -0,0 +1,34 @@ +<?php +/** + * Elgg groupforumtopic view + * + * @package Elgg + * @subpackage Core + * @author Curverider Ltd + * @link http://elgg.org/ + */ + +$title = $vars['entity']->title; + +$body = ''; +$annotation = $vars['entity']->getAnnotations('group_topic_post', 1, 0, "asc"); +if (count($annotation == 1)) { + $body = $annotation[0]->value; +} +?> + +<item> +<guid isPermaLink='true'><?php echo htmlspecialchars($vars['entity']->getURL()); ?></guid> +<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($body)); ?>]]></description> +<?php + $owner = $vars['entity']->getOwnerEntity(); + if ($owner) { +?> +<dc:creator><?php echo $owner->name; ?></dc:creator> +<?php + } +?> +</item>
\ No newline at end of file |