aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-07-03 02:36:23 +0000
committerCash Costello <cash.costello@gmail.com>2009-07-03 02:36:23 +0000
commitd8483c4e91de51caa007fe61a785983a439aedb9 (patch)
tree133e102baefdfae078b45919d007e0d585215a1f
parent5e0bfcd150c5275184dd8cdc7fda2f8bd139d84d (diff)
downloadelgg-d8483c4e91de51caa007fe61a785983a439aedb9.tar.gz
elgg-d8483c4e91de51caa007fe61a785983a439aedb9.tar.bz2
better feed - from Torsten
-rw-r--r--views/rss/object/album.php36
1 files changed, 19 insertions, 17 deletions
diff --git a/views/rss/object/album.php b/views/rss/object/album.php
index ecd4c51ab..c66c0f7e9 100644
--- a/views/rss/object/album.php
+++ b/views/rss/object/album.php
@@ -6,11 +6,14 @@
// for now catch the albums view and ignore it
if (get_context() == "search" && get_input('search_viewtype') == "gallery") {
} else {
-
+
$album = $vars['entity'];
-
+
$base_url = $vars['url'] . 'mod/tidypics/thumbnail.php?file_guid=';
+ // use fullsize image
+ $base_url_fullsize = $vars['url'] . 'action/tidypics/download?file_guid=';
+
// insert cover image if it exists image
if ($album->cover) {
// Set title
@@ -27,37 +30,36 @@
<url><?php echo $album_cover_url; ?></url>
<title><![CDATA[<?php echo $title; ?>]]></title>
<link><?php echo $album->getURL() . '?view=rss'; ?></link>
-
+
</image>
<?php
}
-
-
- $images = get_entities("object", "image", 0, "", 10, 0, false, 0, $album->guid);
-
-
+
+
+ $images = get_entities("object", "image", 0, "", 0, 0, false, 0, $album->guid);
+
+
foreach ($images as $image) {
$descr = '<p>' . get_entity($image->owner_guid)->name;
$descr .= ' ' . elgg_echo('tidypics:posted') . '</p>';
$descr .= "<p><img src=\"{$base_url}{$image->guid}&size=small\" /></p>";
$descr .= "<p>{$image->description}</p>";
-
+
?>
<item>
<title><?php echo $image->title; ?></title>
- <link><?php echo $image->getURL(); ?></link>
+ <link><?php echo $base_url . $image->guid . '&amp;size=large'; ?></link>
<description><?php echo htmlentities($descr, ENT_QUOTES); ?></description>
<pubDate><?php echo date("r", $image->time_created); ?></pubDate>
<guid isPermaLink="true"><?php echo $image->getURL(); ?></guid>
- <media:content url="<?php echo $base_url . $image->guid . '&amp;size=large'; ?>" medium="image" type="<?php echo $image->getMimeType(); ?>">
- <media:title><?php echo $image->title; ?></media:title>
- <media:description><?php echo htmlentities($image->description); ?></media:description>
- <media:thumbnail url="<?php echo $base_url . $image->guid . '&amp;size=thumb'; ?>"></media:thumbnail>
- </media:content>
+ <media:content url="<?php echo $base_url_fullsize . $image->guid . '&amp;view=inline'; ?>" medium="image" type="<?php echo $image->getMimeType(); ?>" />
+ <media:title><?php echo $image->title; ?></media:title>
+ <media:description><?php echo htmlentities($image->description); ?></media:description>
+ <media:thumbnail url="<?php echo $base_url . $image->guid . '&amp;size=thumb'; ?>"></media:thumbnail>
</item>
-
+
<?php
}
-
+
}
?> \ No newline at end of file