diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-06-28 14:06:09 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-06-28 14:06:09 +0000 |
commit | a98b6fc059974283cdbc7ee2a5d2b90dce30bb0d (patch) | |
tree | f89f8887c37cb63b68dcc681c9f7167115013c57 /views/rss/object/album.php | |
parent | ac0de7ada7ddefc77f6b25965ab71a736b27bca1 (diff) | |
download | elgg-a98b6fc059974283cdbc7ee2a5d2b90dce30bb0d.tar.gz elgg-a98b6fc059974283cdbc7ee2a5d2b90dce30bb0d.tar.bz2 |
finished up album rss - added embedded photos in the item description
Diffstat (limited to 'views/rss/object/album.php')
-rw-r--r-- | views/rss/object/album.php | 12 |
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 . '&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 . '&size=thumb'; ?>"></media:thumbnail>
</media:content>
</item>
|