diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-12-12 03:59:20 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-12-12 03:59:20 +0000 |
commit | 515dbe6886987ef2399b532ce1816805a7ace0c0 (patch) | |
tree | df9e2df4a5a6905d384d50206437fdf6bb9acfd2 /views | |
parent | edd03acb340891ffa8ca973ca2ab24f87aa32158 (diff) | |
download | elgg-515dbe6886987ef2399b532ce1816805a7ace0c0.tar.gz elgg-515dbe6886987ef2399b532ce1816805a7ace0c0.tar.bz2 |
added plugin hook for lightbox
Diffstat (limited to 'views')
-rw-r--r-- | views/default/object/image.php | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/views/default/object/image.php b/views/default/object/image.php index fb7a72ff8..9436c53b5 100644 --- a/views/default/object/image.php +++ b/views/default/object/image.php @@ -60,13 +60,27 @@ /******************************************************************** * - * simple gallery view - when is this called? + * listing of photos in an album * *********************************************************************/ if (!$vars['full']) { +error_log('hello world!'); ?> <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); + + 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> +<?php + } +?> </div> <?php } else { |