12345678910111213141516171819202122232425262728293031323334 |
- <?php
- /**
- * Elgg RSS view for a page revision
- *
- * @package Elgg
- * @subpackage Core
- */
- $revision = $vars['annotation'];
- $poster = $revision->getOwnerEntity();
- $poster_name = htmlspecialchars($poster->name, ENT_NOQUOTES, 'UTF-8');
- $pubdate = date('r', $revision->getTimeCreated());
- $permalink = $revision->getURL();
- $title = elgg_echo('pages:revision:subtitle', array('', $poster_name));
- $creator = elgg_view('page/components/creator', array('entity' => $revision));
- $extensions = elgg_view('pages/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;
|