From 2932918effa51f9689cabe38b758e44435d08e96 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sun, 14 Jun 2009 20:37:08 +0000 Subject: close to final version of river entries - commented out cover from image view and added option for album to show multiple photos --- views/default/river/object/album/create.php | 22 ++++++++++++++++++++-- views/default/river/object/image/create.php | 3 +++ 2 files changed, 23 insertions(+), 2 deletions(-) (limited to 'views/default/river/object') diff --git a/views/default/river/object/album/create.php b/views/default/river/object/album/create.php index 40f847c78..5f8b07965 100644 --- a/views/default/river/object/album/create.php +++ b/views/default/river/object/album/create.php @@ -6,9 +6,27 @@ $url = "getURL()}\">{$performed_by->name}"; $string = sprintf(elgg_echo("album:river:created"),$url) . " "; $string .= "getURL() . "\">" . $album->title . ""; + + $album_river_view = get_plugin_setting('album_river_view', 'tidypics'); - if ($album->cover) { - $string .= "
wwwroot . 'mod/tidypics/thumbnail.php?file_guid=' . $album->cover . '&size=thumb" border="0" class="tidypics_album_cover" alt="thumbnail"/>' . "
"; + if ($album_river_view == "cover") { + if ($album->cover) { + $string .= "
wwwroot . 'mod/tidypics/thumbnail.php?file_guid=' . $album->cover . '&size=thumb" border="0" class="tidypics_album_cover" alt="thumbnail"/>' . "
"; + } + } else { + + $string .= "
"; + + // display the simple image views. Uses: via 'object/image.php' + $images = get_entities("object", "image", $file_guid, 'time_created desc', 7); + + if (count($images)) { + foreach($images as $image){ + $string .= "getURL() . "\"> wwwroot . 'mod/tidypics/thumbnail.php?file_guid=' . $image->guid . '&size=thumb" border="0" class="tidypics_album_cover" alt="thumbnail"/> '; + } + } + + $string .= "
"; } echo $string; diff --git a/views/default/river/object/image/create.php b/views/default/river/object/image/create.php index 09320080b..8f7a856ea 100644 --- a/views/default/river/object/image/create.php +++ b/views/default/river/object/image/create.php @@ -17,7 +17,10 @@ $string = sprintf(elgg_echo("image:river:created"),$performed_by->name, $image_link, $album_link); $string .= "
"; + +/* // this adds the album cover to the river display $string .= "getURL() . "\"> wwwroot . 'mod/tidypics/thumbnail.php?file_guid=' . $album->cover . '&size=thumb" border="0" class="tidypics_album_cover" alt="thumbnail"/> '; +*/ $string .= "getURL() . "\"> wwwroot . 'mod/tidypics/thumbnail.php?file_guid=' . $image->guid . '&size=thumb" border="0" class="tidypics_album_cover" alt="thumbnail"/> '; $string .= "
"; -- cgit v1.2.3