summary.php 873 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * Individual album summary view for RSS
  4. *
  5. * @uses $vars['entity'] TidypicsAlbum
  6. *
  7. * @author Cash Costello
  8. * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2
  9. */
  10. $permalink = htmlspecialchars($vars['entity']->getURL(), ENT_NOQUOTES, 'UTF-8');
  11. $pubdate = date('r', $vars['entity']->getTimeCreated());
  12. $title = $vars['entity']->getTitle();
  13. $description = elgg_autop($vars['entity']->description);
  14. $creator = elgg_view('page/components/creator', $vars);
  15. $georss = elgg_view('page/components/georss', $vars);
  16. $extension = elgg_view('extensions/item', $vars);
  17. $item = <<<__HTML
  18. <item>
  19. <guid isPermaLink="true">$permalink</guid>
  20. <pubDate>$pubdate</pubDate>
  21. <link>$permalink</link>
  22. <title><![CDATA[$title]]></title>
  23. <description><![CDATA[$description]]></description>
  24. $creator$georss$extension
  25. </item>
  26. __HTML;
  27. echo $item;