ror-rss.php 619 B

1234567891011121314151617
  1. <?= '<'.'?'.'xml version="1.0" encoding="UTF-8"?>'."\n"; ?>
  2. <rss version="2.0" xmlns:ror="http://rorweb.com/0.1/" >
  3. <channel>
  4. <title><?= $channel['title'] ?></title>
  5. <link><?= $channel['link'] ?></link>
  6. <?php foreach ($items as $item) : ?>
  7. <item>
  8. <link><?= $item['loc'] ?></link>
  9. <title><?= $item['title'] ?></title>
  10. <ror:updated><?= date('Y-m-d\TH:i:sP', strtotime($item['lastmod'])) ?></ror:updated>
  11. <ror:updatePeriod><?= $item['freq'] ?></ror:updatePeriod>
  12. <ror:sortOrder><?= $item['priority'] ?></ror:sortOrder>
  13. <ror:resourceOf>sitemap</ror:resourceOf>
  14. </item>
  15. <?php endforeach; ?>
  16. </channel>
  17. </rss>