default.php 775 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * RSS user view
  4. *
  5. * @package Elgg
  6. * @subpackage Core
  7. */
  8. $permalink = htmlspecialchars($vars['entity']->getURL(), ENT_NOQUOTES, 'UTF-8');
  9. $pubdate = date('r', $vars['entity']->getTimeCreated());
  10. $title = htmlspecialchars($vars['entity']->name, ENT_NOQUOTES, 'UTF-8');
  11. if ($vars['entity']->description) {
  12. $description = elgg_autop($vars['entity']->description);
  13. } else {
  14. $description = '';
  15. }
  16. $georss = elgg_view('page/components/georss', $vars);
  17. $extension = elgg_view('extensions/item', $vars);
  18. $item = <<<__HTML
  19. <item>
  20. <guid isPermaLink="true">$permalink</guid>
  21. <pubDate>$pubdate</pubDate>
  22. <link>$permalink</link>
  23. <title><![CDATA[$title]]></title>
  24. <description><![CDATA[$description]]></description>
  25. $georss$extension
  26. </item>
  27. __HTML;
  28. echo $item;