aboutsummaryrefslogtreecommitdiff
path: root/views/rss
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-12-12 19:51:49 +0000
committerCash Costello <cash.costello@gmail.com>2009-12-12 19:51:49 +0000
commit621177abc2bc60e9edb3ca723a4afaa9d9e713ef (patch)
treed6064f1fe767d042ea41e4adea88e57b8e5138ff /views/rss
parentb40060fafaba46e2fb8800b2c2e557a8c6bde9db (diff)
downloadelgg-621177abc2bc60e9edb3ca723a4afaa9d9e713ef.tar.gz
elgg-621177abc2bc60e9edb3ca723a4afaa9d9e713ef.tar.bz2
convert line endings to Unix
Diffstat (limited to 'views/rss')
-rw-r--r--views/rss/object/album.php88
-rw-r--r--views/rss/object/file.php46
-rw-r--r--views/rss/object/image.php36
-rw-r--r--views/rss/tidypics/gallery.php34
4 files changed, 102 insertions, 102 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 . '&amp;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 . '&amp;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
diff --git a/views/rss/object/file.php b/views/rss/object/file.php
index e40da4f69..36740f003 100644
--- a/views/rss/object/file.php
+++ b/views/rss/object/file.php
@@ -1,23 +1,23 @@
-<?php
-
- /**
- * Tidypics RSS file object view - need to look into removing download link based on settings
- */
-
- $title = $vars['entity']->title;
- if (empty($title)) {
- $title = substr($vars['entity']->description,0,32);
- if (strlen($vars['entity']->description) > 32)
- $title .= " ...";
- }
-
-?>
-
- <item>
- <guid isPermaLink='true'><?php echo $vars['entity']->getURL(); ?></guid>
- <pubDate><?php echo date("r",$vars['entity']->time_created) ?></pubDate>
- <link><?php echo $vars['entity']->getURL(); ?></link>
- <title><![CDATA[<?php echo $title; ?>]]></title>
- <description><![CDATA[<?php echo (autop($vars['entity']->description)); ?>]]></description>
- <enclosure url="<?php echo $vars['url']; ?>pg/photos/download/<?php echo $vars['entity']->getGUID(); ?>/" length="<?php echo $vars['entity']->size(); ?>" type="<?php echo $vars['entity']->getMimeType(); ?>" />
- </item>
+<?php
+
+ /**
+ * Tidypics RSS file object view - need to look into removing download link based on settings
+ */
+
+ $title = $vars['entity']->title;
+ if (empty($title)) {
+ $title = substr($vars['entity']->description,0,32);
+ if (strlen($vars['entity']->description) > 32)
+ $title .= " ...";
+ }
+
+?>
+
+ <item>
+ <guid isPermaLink='true'><?php echo $vars['entity']->getURL(); ?></guid>
+ <pubDate><?php echo date("r",$vars['entity']->time_created) ?></pubDate>
+ <link><?php echo $vars['entity']->getURL(); ?></link>
+ <title><![CDATA[<?php echo $title; ?>]]></title>
+ <description><![CDATA[<?php echo (autop($vars['entity']->description)); ?>]]></description>
+ <enclosure url="<?php echo $vars['url']; ?>pg/photos/download/<?php echo $vars['entity']->getGUID(); ?>/" length="<?php echo $vars['entity']->size(); ?>" type="<?php echo $vars['entity']->getMimeType(); ?>" />
+ </item>
diff --git a/views/rss/object/image.php b/views/rss/object/image.php
index dafc05f45..b93592081 100644
--- a/views/rss/object/image.php
+++ b/views/rss/object/image.php
@@ -1,19 +1,19 @@
-<?php
-
-$title = $vars['entity']->title;
-$descr = $vars['entity']->description;
-$download = $vars['url'] . 'pg/photos/download/' . $vars['entity']->guid . '/inline/';
-$base_url = $vars['url'] . 'mod/tidypics/thumbnail.php?file_guid=';
-?>
-
- <item>
- <title><?php echo $title; ?></title>
- <link><?php echo $base_url . $vars['entity']->guid . '&amp;size=large'; ?></link>
- <description><?php echo htmlentities($descr, ENT_QUOTES); ?></description>
- <pubDate><?php echo date("r", $vars['entity']->time_created); ?></pubDate>
- <guid isPermaLink="true"><?php echo $vars['entity']->getURL(); ?></guid>
- <media:content url="<?php echo $download; ?>" medium="image" type="<?php echo $vars['entity']->getMimeType(); ?>" />
- <media:title><?php echo $title; ?></media:title>
- <media:description><?php echo htmlentities($descr); ?></media:description>
- <media:thumbnail url="<?php echo $base_url . $vars['entity']->guid . '&amp;size=thumb'; ?>"></media:thumbnail>
+<?php
+
+$title = $vars['entity']->title;
+$descr = $vars['entity']->description;
+$download = $vars['url'] . 'pg/photos/download/' . $vars['entity']->guid . '/inline/';
+$base_url = $vars['url'] . 'mod/tidypics/thumbnail.php?file_guid=';
+?>
+
+ <item>
+ <title><?php echo $title; ?></title>
+ <link><?php echo $base_url . $vars['entity']->guid . '&amp;size=large'; ?></link>
+ <description><?php echo htmlentities($descr, ENT_QUOTES); ?></description>
+ <pubDate><?php echo date("r", $vars['entity']->time_created); ?></pubDate>
+ <guid isPermaLink="true"><?php echo $vars['entity']->getURL(); ?></guid>
+ <media:content url="<?php echo $download; ?>" medium="image" type="<?php echo $vars['entity']->getMimeType(); ?>" />
+ <media:title><?php echo $title; ?></media:title>
+ <media:description><?php echo htmlentities($descr); ?></media:description>
+ <media:thumbnail url="<?php echo $base_url . $vars['entity']->guid . '&amp;size=thumb'; ?>"></media:thumbnail>
</item> \ No newline at end of file
diff --git a/views/rss/tidypics/gallery.php b/views/rss/tidypics/gallery.php
index 2fcf2ac76..2c285fca5 100644
--- a/views/rss/tidypics/gallery.php
+++ b/views/rss/tidypics/gallery.php
@@ -1,18 +1,18 @@
-<?php
- /**
- * Tidypics Listing RSS View
- */
-
-$context = $vars['context'];
-$entities = $vars['entities'];
-$count = $vars['count'];
-$baseurl = $vars['baseurl'];
-
-
-if (is_array($entities) && sizeof($entities) > 0) {
- foreach($entities as $entity) {
- echo elgg_view_entity($entity);
- }
-}
-
+<?php
+ /**
+ * Tidypics Listing RSS View
+ */
+
+$context = $vars['context'];
+$entities = $vars['entities'];
+$count = $vars['count'];
+$baseurl = $vars['baseurl'];
+
+
+if (is_array($entities) && sizeof($entities) > 0) {
+ foreach($entities as $entity) {
+ echo elgg_view_entity($entity);
+ }
+}
+
?> \ No newline at end of file