diff options
Diffstat (limited to 'views')
-rw-r--r-- | views/rss/object/album.php | 32 |
1 files changed, 6 insertions, 26 deletions
diff --git a/views/rss/object/album.php b/views/rss/object/album.php index c59f0e2d3..990322baf 100644 --- a/views/rss/object/album.php +++ b/views/rss/object/album.php @@ -3,13 +3,12 @@ * Tidypics Album RSS View
*/
- // for now catch the albums view and ignore it
- if (get_context() == "search" && get_input('search_viewtype') == "gallery") {
- } else {
+// for now catch the albums view and ignore it
+if (get_context() == "search" && get_input('search_viewtype') == "gallery") {
- $album = $vars['entity'];
+} else {
- $base_url = $vars['url'] . 'mod/tidypics/thumbnail.php?file_guid=';
+ $album = $vars['entity'];
// use fullsize image
$base_url_fullsize = $vars['url'] . 'pg/photos/download/';
@@ -30,7 +29,6 @@ <url><?php echo $album_cover_url; ?></url>
<title><![CDATA[<?php echo $title; ?>]]></title>
<link><?php echo $album->getURL() . '?view=rss'; ?></link>
-
</image>
<?php
}
@@ -40,26 +38,8 @@ 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 $base_url . $image->guid . '&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_fullsize . $image->guid . '/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 . '&size=thumb'; ?>"></media:thumbnail>
- </item>
-
-<?php
+ echo elgg_view_entity($image);
}
- }
+}
?>
\ No newline at end of file |