diff options
Diffstat (limited to 'views/default/lightbox/image.php')
-rw-r--r-- | views/default/lightbox/image.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/views/default/lightbox/image.php b/views/default/lightbox/image.php new file mode 100644 index 000000000..28d82e2be --- /dev/null +++ b/views/default/lightbox/image.php @@ -0,0 +1,16 @@ +<?php +/** + * Display an image + */ + +$image_url = elgg_get_site_url() . "mod/lightbox/thumbnail.php?guid={$vars['entity']->getGUID()}&size=large"; +$image_url = elgg_format_url($image_url); +$download_url = elgg_get_site_url() . "mod/lightbox/thumbnail.php?guid={$vars['entity']->getGUID()}&size=full"; + +if ($vars['full_view'] && $smallthumb = $vars['entity']->smallthumb) { + echo <<<HTML + <div class="file-photo"> + <a href="$download_url"><img class="elgg-photo" src="$image_url" /></a> + </div> +HTML; +} |