From d8483c4e91de51caa007fe61a785983a439aedb9 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Fri, 3 Jul 2009 02:36:23 +0000 Subject: better feed - from Torsten --- views/rss/object/album.php | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) (limited to 'views') 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 @@ <![CDATA[<?php echo $title; ?>]]> getURL() . '?view=rss'; ?> - + guid); - - + + + $images = get_entities("object", "image", 0, "", 0, 0, false, 0, $album->guid); + + foreach ($images as $image) { $descr = '

' . get_entity($image->owner_guid)->name; $descr .= ' ' . elgg_echo('tidypics:posted') . '

'; $descr .= "

guid}&size=small\" />

"; $descr .= "

{$image->description}

"; - + ?> <?php echo $image->title; ?> - getURL(); ?> + guid . '&size=large'; ?> time_created); ?> getURL(); ?> - - title; ?> - description); ?> - - + + title; ?> + description); ?> + - + \ No newline at end of file -- cgit v1.2.3