diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-06-24 11:57:27 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-06-24 11:57:27 +0000 |
commit | 8a555c332c4c1172375aa589aded36537b1f967e (patch) | |
tree | 559d3789105b9033d8c56cee0499588aed258238 /views/rss/object/album.php | |
parent | 3caf7a0417b44d295b8b794226bd443ccabd6955 (diff) | |
download | elgg-8a555c332c4c1172375aa589aded36537b1f967e.tar.gz elgg-8a555c332c4c1172375aa589aded36537b1f967e.tar.bz2 |
added album object for rss view
Diffstat (limited to 'views/rss/object/album.php')
-rw-r--r-- | views/rss/object/album.php | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/views/rss/object/album.php b/views/rss/object/album.php new file mode 100644 index 000000000..9f7b7b123 --- /dev/null +++ b/views/rss/object/album.php @@ -0,0 +1,38 @@ +<?php
+ /**
+ * Tidypics Album RSS View
+ */
+
+ $album = $vars['entity'];
+
+ $title = $album->title;
+ if (empty($title)) {
+ $subtitle = strip_tags($vars['entity']->description);
+ $title = substr($subtitle,0,32);
+ if (strlen($subtitle) > 32)
+ $title .= " ...";
+ }
+
+ $owner_guid = $album->getOwner();
+ $images = get_entities("object", "image", 0, "", 10, 0, false, 0, $album->container_guid);
+
+ //error_log(count($images));
+?>
+
+ <item>
+ <guid isPermaLink='true'><?php echo htmlspecialchars($album->getURL()); ?></guid>
+ <pubDate><?php echo date("r",$album->time_created) ?></pubDate>
+ <link><?php echo htmlspecialchars($album->getURL()); ?></link>
+ <title><![CDATA[<?php echo $title; ?>]]></title>
+ <description><![CDATA[<?php echo (autop($album->description)); ?>]]></description> +<?php + $owner = $album->getOwnerEntity(); + if ($owner) + { +?> + <dc:creator><?php echo $owner->name; ?></dc:creator> +<?php + } +?> + <?php echo elgg_view('extensions/item'); ?>
+ </item>
|