default.php 950 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * RSS group 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. } elseif ($vars['entity']->briefdescription) {
  14. $description = elgg_autop($vars['entity']->briefdescription);
  15. } else {
  16. $description = '';
  17. }
  18. $creator = elgg_view('page/components/creator', $vars);
  19. $georss = elgg_view('page/components/georss', $vars);
  20. $extension = elgg_view('extensions/item', $vars);
  21. $item = <<<__HTML
  22. <item>
  23. <guid isPermaLink="true">$permalink</guid>
  24. <pubDate>$pubdate</pubDate>
  25. <link>$permalink</link>
  26. <title><![CDATA[$title]]></title>
  27. <description><![CDATA[$description]]></description>
  28. $creator$georss$extension
  29. </item>
  30. __HTML;
  31. echo $item;