From ec24309e01d00fd913071747839aece6f7a8d866 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sun, 28 Jun 2009 13:22:18 +0000 Subject: new rss view of albums - includes yahoo media xmlns --- views/rss/object/album.php | 42 ++++++++++++++++++++++++------------------ 1 file changed, 24 insertions(+), 18 deletions(-) (limited to 'views/rss/object/album.php') diff --git a/views/rss/object/album.php b/views/rss/object/album.php index 9f7b7b123..fbe1ab058 100644 --- a/views/rss/object/album.php +++ b/views/rss/object/album.php @@ -12,27 +12,33 @@ if (strlen($subtitle) > 32) $title .= " ..."; } + + $base_url = $vars['url'] . 'mod/tidypics/thumbnail.php?file_guid='; + $owner_guid = $album->getOwner(); - $images = get_entities("object", "image", 0, "", 10, 0, false, 0, $album->container_guid); + $images = get_entities("object", "image", 0, "", 10, 0, false, 0, $album->guid); - //error_log(count($images)); + echo "\n"; + + foreach ($images as $image) { + $caption = $image->description; + if (!$caption) + $caption = "No caption"; ?> - - getURL()); ?> - time_created) ?> - getURL()); ?> - <![CDATA[<?php echo $title; ?>]]> - description)); ?>]]> -getOwnerEntity(); - if ($owner) - { -?> - name; ?> - - + <?php echo $image->title; ?> + getURL(); ?> + + time_created); ?> + getURL(); ?> + + title; ?> + + + + + \ No newline at end of file -- cgit v1.2.3