diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-19 18:23:30 +0000 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-19 18:23:30 +0000 |
| commit | b3314fc1dcfd73c36c4bab82a5ebabca629845c8 (patch) | |
| tree | 0f2a53f914302f59a7c8215884b0a6482abbd1b2 /modules/media_rss/views/feed.mrss.php | |
| parent | 161998dde6d976c45cfcea31f1128147acc3d64f (diff) | |
Update the media rss template to include the resize and the fullsize
added descendants by type method to the item model to allow for the selection of children by type
Diffstat (limited to 'modules/media_rss/views/feed.mrss.php')
| -rw-r--r-- | modules/media_rss/views/feed.mrss.php | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/modules/media_rss/views/feed.mrss.php b/modules/media_rss/views/feed.mrss.php index 4ccde722..f4efe27d 100644 --- a/modules/media_rss/views/feed.mrss.php +++ b/modules/media_rss/views/feed.mrss.php @@ -11,7 +11,7 @@ <atom:link rel="previous" href="<?= url::site("media_rss/feed/{$item->id}?offset={$prevOffset}") ?>" /> <? endif; ?> <? if (isset($nextOffset)): ?> - <atom:link rel="next" href="href="<?= url::site("media_rss/feed/{$item->id}?offset={$nextOffset}") ?>"/> + <atom:link rel="next" href="<?= url::site("media_rss/feed/{$item->id}?offset={$nextOffset}") ?>"/> <? endif; ?> <? // @todo do we want to add an upload date to the items table? @@ -20,16 +20,28 @@ <pubDate><?= $date ?></pubDate> <lastBuildDate><?= $date ?></lastBuildDate> <? foreach ($children as $child): ?> - <item> + <item> $child->resize_url(false, "http") <title><?= $child->title ?></title> - <link><?= $child->resize_url(false, "http") ?></link> + <link><?= url::site("photos/$child->id", "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 ?>" - /> + <media:group> + <media:thumbnail url="<?= $child->thumbnail_url(false, "http") ?>" + height="<?= $child->thumbnail_height ?>" + width="<?= $child->thumbnail_width ?>" + /> + <media:content url="<?= $child->resize_url(false, "http") ?>" + type="<?= $child->mime_type ?>" + height="<?= $child->resize_height ?>" + width="<?= $child->resize_width ?>" + isDefault="true" + /> + <media:content url="<?= $child->url(false, "http") ?>" + type="<?= $child->mime_type ?>" + height="<?= $child->height ?>" + width="<?= $child->width ?>" + /> + </media:group> </item> <? endforeach; ?> </channel> |
