diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-18 19:09:24 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-18 19:09:24 +0000 |
commit | 4bf486955cea9e2b67531f044c6bf34a7bc9324f (patch) | |
tree | c1a874cfc00e5894bff4b26c1eadbbcb690411bc /modules/slideshow/views | |
parent | 4dfa22606fe4c23ab3b60b94518a8d06de63d86b (diff) |
The start of the slideshow module. Mostly framework stuff, no real implementation yet
Diffstat (limited to 'modules/slideshow/views')
-rw-r--r-- | modules/slideshow/views/slideshow_feed.rss.php | 20 |
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 |