blob: 0d3a4011712d173d13afa59c31dbd5802ba48e7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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;
|