diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-12-12 21:34:18 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-12-12 21:34:18 +0000 |
commit | f743d5a49af135d647243861b1c7e546f8b4c200 (patch) | |
tree | 1506163543f12e16acc9768988eebbd0065fc033 /views | |
parent | c2feaa1bbed0831c4e4bf7d769f4e028b390fa2c (diff) | |
download | elgg-f743d5a49af135d647243861b1c7e546f8b4c200.tar.gz elgg-f743d5a49af135d647243861b1c7e546f8b4c200.tar.bz2 |
made a modification in image view for albums so that plugins have more flexibility
Diffstat (limited to 'views')
-rw-r--r-- | views/default/object/image.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/views/default/object/image.php b/views/default/object/image.php index 72b245d17..02444eaad 100644 --- a/views/default/object/image.php +++ b/views/default/object/image.php @@ -66,22 +66,22 @@ if (!$vars['full']) { ?> - <div class="tidypics_album_images"> <?php // plugins can override the image link to add lightbox code here $image_html = false; - $image_html = trigger_plugin_hook('tp_thumbnail_link', 'image', $image, $image_html); + $image_html = trigger_plugin_hook('tp_thumbnail_link', 'image', array('image' => $image), $image_html); if ($image_html) { echo $image_html; } else { // default link to image if no one overrides ?> - <a href="<?php echo $image->getURL();?>"><img src="<?php echo $vars['url'];?>mod/tidypics/thumbnail.php?file_guid=<?php echo $image_guid;?>&size=small" alt="thumbnail"/></a> + <div class="tidypics_album_images"> + <a href="<?php echo $image->getURL();?>"><img src="<?php echo $vars['url'];?>pg/photos/thumbnail/<?php echo $image_guid;?>/small/" alt="<?php echo $image->title; ?>"/></a> + </div> <?php } ?> - </div> <?php } else { |