summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2008-11-19 06:05:38 +0000
committerTim Almdal <tnalmdal@shaw.ca>2008-11-19 06:05:38 +0000
commite14d5574b6861314c2133b156c8f2c9c94aeb1b6 (patch)
treebaf2b1191223d032461d11cf6725bc6b6ca4699d /modules
parent763f0808e94fe32b879a53f928b9e5fa2a19d3c2 (diff)
Cleanup media rss feed
added parameters to thumbnail_url and resizes_url to be passed to the url::base call to generate ful urls
Diffstat (limited to 'modules')
-rw-r--r--modules/media_rss/views/feed.mrss.php19
1 files changed, 7 insertions, 12 deletions
diff --git a/modules/media_rss/views/feed.mrss.php b/modules/media_rss/views/feed.mrss.php
index 3728afeb..4ccde722 100644
--- a/modules/media_rss/views/feed.mrss.php
+++ b/modules/media_rss/views/feed.mrss.php
@@ -4,7 +4,7 @@
xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title><?= $item->title ?></title>
- <link><?= url::site("media_rss/{$item->id}") ?></link>
+ <link><?= url::site("media_rss/{$item->id}", "http") ?></link>
<description><?= $item->description ?></description>
<language>en-us</language>
<? if (isset($prevOffset)): ?>
@@ -15,22 +15,17 @@
<? endif; ?>
<?
// @todo do we want to add an upload date to the items table?
- $date = date("D, dd M Y H:i:s e");
+ $date = date("D, d M Y H:i:s T");
?>
<pubDate><?= $date ?></pubDate>
<lastBuildDate><?= $date ?></lastBuildDate>
<? foreach ($children as $child): ?>
<item>
- <title type="html"><?= $child->title ?></title>
- <link></link>
- <guid><?= $child->id ?></guid>
- <description type="html"><?= $child->description ?></description>
- <media:thumbnail url="<?= $child->thumbnail_url() ?>"
- type="<?= $child->mime_type ?>"
- height="<?= $child->thumbnail_height ?>"
- width="<?= $child->thumbnail_width ?>"
- />
- <media:content url="<?= $child->resize_url() ?>"
+ <title><?= $child->title ?></title>
+ <link><?= $child->resize_url(false, "http") ?></link>
+ <guid isPermaLink="false"><?= $child->id ?></guid>
+ <description><?= $child->description ?></description>
+ <media:content url="<?= $child->thumbnail_url(false, "http") ?>"
type="<?= $child->mime_type ?>"
height="<?= $child->resize_height ?>"
width="<?= $child->resize_width ?>"