summaryrefslogtreecommitdiff
path: root/modules/slideshow/views/slideshow_feed.rss.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/slideshow/views/slideshow_feed.rss.php')
-rw-r--r--modules/slideshow/views/slideshow_feed.rss.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/slideshow/views/slideshow_feed.rss.php b/modules/slideshow/views/slideshow_feed.rss.php
new file mode 100644
index 00000000..b07bf5fe
--- /dev/null
+++ b/modules/slideshow/views/slideshow_feed.rss.php
@@ -0,0 +1,20 @@
+<? defined("SYSPATH") or die("No direct script access."); ?>
+<? echo "<?xml version=\"1.0\" ?>"; ?>
+<rss version="2.0">
+ <channel>
+ <title><?= $item->title ?></title>
+ <link><?= url::site("slideshow/$item->id") ?></link>
+ <description><?= $item->description ?></description>
+ <language>en-us</language>
+ <?
+ // @todo do we want to add an upload date to the items table?
+ $date = date("D, dd M Y H:i:s e");
+ ?>
+ <pubDate><?= $date ?></pubDate>
+ <lastBuildDate><?= $date ?></lastBuildDate>
+ <? foreach ($children as $child): ?>
+ <image>
+ </image>
+ <? endforeach; ?>
+ </channel>
+</rss> \ No newline at end of file