summaryrefslogtreecommitdiff
path: root/modules/rss/views/feed.mrss.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-02-23 02:47:29 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-02-23 02:47:29 +0000
commitb6e17eb139367d8602ec8a96295f03cda42398a1 (patch)
tree1d4dbd8f2aa299f1e0610eb5f2f57df7ba66f38e /modules/rss/views/feed.mrss.php
parent3bba61b733366aa22ff98e95c0d3ed9f83995946 (diff)
1) Updated the media feed with new fields
2) Created a comments feed (/rss/comments) 3) Created a updates feed (/rss/updates) User interface to follow
Diffstat (limited to 'modules/rss/views/feed.mrss.php')
-rw-r--r--modules/rss/views/feed.mrss.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/rss/views/feed.mrss.php b/modules/rss/views/feed.mrss.php
index dbaee532..fbcd415e 100644
--- a/modules/rss/views/feed.mrss.php
+++ b/modules/rss/views/feed.mrss.php
@@ -23,11 +23,12 @@
<? foreach ($children as $child): ?>
<item>
<title><?= htmlspecialchars($child->title) ?></title>
- <link><?= url::abs_site("photos/$child->id") ?></link>
- <description><?= htmlspecialchars($child->description) ?></description>
- <guid isPermaLink="true"><?= url::abs_site("photos/$child->id") ?></guid>
+ <link><?= url::abs_site("{$child->type}s/{$child->id}") ?></link>
+ <guid isPermaLink="true"><?= url::abs_site("{$child->type}s/{$child->id}") ?></guid>
+ <pubDate><?= date("D, d M Y H:i:s T", $child->createdb); ?></pubDate>
<content:encoded>
<![CDATA[
+ <span><?= $child->description ?></span>
<p>
<img alt="" src="<?= $child->resize_url(true) ?>"
title="<?= htmlspecialchars($child->title) ?>"
@@ -51,6 +52,7 @@
/>
<? if (access::can("view_full", $child)): ?>
<media:content url="<?= $child->file_url(true) ?>"
+
fileSize="<?= filesize($child->file_path()) ?>"
type="<?= $child->mime_type ?>"
height="<?= $child->height ?>"