aboutsummaryrefslogtreecommitdiff
path: root/views/rss/object
diff options
context:
space:
mode:
Diffstat (limited to 'views/rss/object')
-rw-r--r--views/rss/object/album.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/views/rss/object/album.php b/views/rss/object/album.php
index 7afb19d34..e429ee94d 100644
--- a/views/rss/object/album.php
+++ b/views/rss/object/album.php
@@ -33,19 +33,21 @@
foreach ($images as $image) {
- $caption = $image->description;
- if (!$caption)
- $caption = "No caption";
+ $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>
- <description><?php echo $caption; ?></description>
+ <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 $caption; ?></media:description>
+ <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>
</item>