aboutsummaryrefslogtreecommitdiff
path: root/views/default/object/image/full.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-12-11 21:13:20 -0500
committercash <cash.costello@gmail.com>2011-12-11 21:13:20 -0500
commit175bcd1e19e8094a0096dbe678e5f7748b664a89 (patch)
treea951a9639b4e245b24a529768781fccd47aaa407 /views/default/object/image/full.php
parentbe3479085d475428a213868e13e8504e924e32ba (diff)
downloadelgg-175bcd1e19e8094a0096dbe678e5f7748b664a89.tar.gz
elgg-175bcd1e19e8094a0096dbe678e5f7748b664a89.tar.bz2
added lightbox to single images
Diffstat (limited to 'views/default/object/image/full.php')
-rw-r--r--views/default/object/image/full.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/views/default/object/image/full.php b/views/default/object/image/full.php
index 48ed40876..e3a2c7003 100644
--- a/views/default/object/image/full.php
+++ b/views/default/object/image/full.php
@@ -11,9 +11,12 @@
$image = $photo = $vars['entity'];
$img = elgg_view_entity_icon($image, 'large', array(
- 'href' => false,
+ 'href' => $image->getIconURL('master'),
'img_class' => 'tidypics-photo',
+ 'link_class' => 'tidypics-lightbox',
));
+elgg_load_js('lightbox');
+elgg_load_css('lightbox');
$owner_link = elgg_view('output/url', array(
'href' => "photos/owner/" . $photo->getOwnerEntity()->username,