diff options
Diffstat (limited to 'views/rss/object/album.php')
-rw-r--r-- | views/rss/object/album.php | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/views/rss/object/album.php b/views/rss/object/album.php index 990322baf..2ad4ed9f7 100644 --- a/views/rss/object/album.php +++ b/views/rss/object/album.php @@ -1,45 +1,45 @@ -<?php
- /**
- * Tidypics Album RSS View
- */
-
-// for now catch the albums view and ignore it
-if (get_context() == "search" && get_input('search_viewtype') == "gallery") {
-
-} else {
-
- $album = $vars['entity'];
-
- // use fullsize image
- $base_url_fullsize = $vars['url'] . 'pg/photos/download/';
-
- // insert cover image if it exists image
- if ($album->cover) {
- // Set title
- $vars['title'] = $album->title;
- if (empty($vars['title'])) {
- $title = $vars['config']->sitename;
- } else if (empty($vars['config']->sitename)) {
- $title = $vars['title'];
- } else {
- $title = $vars['config']->sitename . ": " . $vars['title'];
- }
- $album_cover_url = $vars['url'] . 'mod/tidypics/thumbnail.php?file_guid=' . $album->cover . '&size=thumb';
-?> <image>
- <url><?php echo $album_cover_url; ?></url>
- <title><![CDATA[<?php echo $title; ?>]]></title>
- <link><?php echo $album->getURL() . '?view=rss'; ?></link>
- </image>
-<?php
- }
-
-
- $images = get_entities("object", "image", 0, "", 0, 0, false, 0, $album->guid);
-
-
- foreach ($images as $image) {
- echo elgg_view_entity($image);
- }
-
-}
+<?php + /** + * Tidypics Album RSS View + */ + +// for now catch the albums view and ignore it +if (get_context() == "search" && get_input('search_viewtype') == "gallery") { + +} else { + + $album = $vars['entity']; + + // use fullsize image + $base_url_fullsize = $vars['url'] . 'pg/photos/download/'; + + // insert cover image if it exists image + if ($album->cover) { + // Set title + $vars['title'] = $album->title; + if (empty($vars['title'])) { + $title = $vars['config']->sitename; + } else if (empty($vars['config']->sitename)) { + $title = $vars['title']; + } else { + $title = $vars['config']->sitename . ": " . $vars['title']; + } + $album_cover_url = $vars['url'] . 'mod/tidypics/thumbnail.php?file_guid=' . $album->cover . '&size=thumb'; +?> <image> + <url><?php echo $album_cover_url; ?></url> + <title><![CDATA[<?php echo $title; ?>]]></title> + <link><?php echo $album->getURL() . '?view=rss'; ?></link> + </image> +<?php + } + + + $images = get_entities("object", "image", 0, "", 0, 0, false, 0, $album->guid); + + + foreach ($images as $image) { + echo elgg_view_entity($image); + } + +} ?>
\ No newline at end of file |