From 6ef62a444fbcebea25cf475613d5cab0c43b58c8 Mon Sep 17 00:00:00 2001 From: Sem Date: Wed, 1 Aug 2012 18:45:25 +0200 Subject: Added support for colorbox. --- views/default/object/image/full.php | 4 +--- views/default/object/image/summary.php | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'views/default/object') diff --git a/views/default/object/image/full.php b/views/default/object/image/full.php index 175519c16..9b5c1315a 100644 --- a/views/default/object/image/full.php +++ b/views/default/object/image/full.php @@ -13,10 +13,8 @@ $image = $photo = $vars['entity']; $img = elgg_view_entity_icon($image, 'large', array( 'href' => $image->getIconURL('master'), 'img_class' => 'tidypics-photo', - 'link_class' => 'tidypics-lightbox', + 'link_class' => 'tidypics-lightbox elgg-lightbox-photo', )); -elgg_load_js('lightbox'); -elgg_load_css('lightbox'); $owner_link = elgg_view('output/url', array( 'href' => "photos/owner/" . $photo->getOwnerEntity()->username, diff --git a/views/default/object/image/summary.php b/views/default/object/image/summary.php index ed8ceff38..34a726353 100644 --- a/views/default/object/image/summary.php +++ b/views/default/object/image/summary.php @@ -10,7 +10,6 @@ $image = elgg_extract('entity', $vars); -$img = elgg_view_entity_icon($image, 'small'); $header = elgg_view('output/url', array( 'text' => $image->getTitle(), @@ -19,11 +18,12 @@ $header = elgg_view('output/url', array( 'class' => 'tidypics-heading', )); -$body = elgg_view('output/url', array( - 'text' => $img, +$body = elgg_view_entity_icon($image, 'small', array( 'href' => $image->getURL(), + 'img_class' => 'tidypics-photo', 'encode_text' => false, 'is_trusted' => true, + 'link_class' => 'tidypics-lightbox elgg-lightbox', )); /* -- cgit v1.2.3