aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-07-10 13:13:37 +0000
committerCash Costello <cash.costello@gmail.com>2011-07-10 13:13:37 +0000
commit99510fff7fb01cdbf5f5c6fd3eed866576e91809 (patch)
tree16f48c4629a8dc6e44732dc9b5629462efdd871f
parentd94bfb36201438a48cbe2c521e28e18232682a51 (diff)
downloadelgg-99510fff7fb01cdbf5f5c6fd3eed866576e91809.tar.gz
elgg-99510fff7fb01cdbf5f5c6fd3eed866576e91809.tar.bz2
slideshow and rss feed now show more images
-rw-r--r--start.php7
-rw-r--r--views/rss/object/album.php2
2 files changed, 8 insertions, 1 deletions
diff --git a/start.php b/start.php
index 60dc46579..270173fcf 100644
--- a/start.php
+++ b/start.php
@@ -457,7 +457,12 @@ function tidypics_slideshow($hook, $entity_type, $returnvalue, $params) {
return $returnvalue;
}
- $slideshow_link = "javascript:PicLensLite.start({maxScale:0,feedUrl:location.href+'?view=rss'})";
+ $url = current_page_url();
+ if (strpos($url, '?')) {
+ $url = substr($url, 0, strpos($url, '?'));
+ }
+ $url = "$url?limit=50&amp;view=rss";
+ $slideshow_link = "javascript:PicLensLite.start({maxScale:0,feedUrl:'$url'})";
// add the slideshow javascript to the header
elgg_extend_view('metatags', 'tidypics/js/slideshow');
diff --git a/views/rss/object/album.php b/views/rss/object/album.php
index a37fdd041..8df98cf7a 100644
--- a/views/rss/object/album.php
+++ b/views/rss/object/album.php
@@ -42,11 +42,13 @@ if (get_context() == "search" && get_input('search_viewtype') == "gallery") {
<?php
}
+ $limit = get_input('limit', 20);
$images = elgg_get_entities(array(
"type" => "object",
"subtype" => "image",
"container_guid" => $album->guid,
+ "limit" => $limit,
));