aboutsummaryrefslogtreecommitdiff
path: root/views/default/object
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/object')
-rw-r--r--views/default/object/image.php20
-rw-r--r--views/default/object/image/full.php7
-rw-r--r--views/default/object/image/summary.php6
3 files changed, 4 insertions, 29 deletions
diff --git a/views/default/object/image.php b/views/default/object/image.php
index 2aa76d48f..fc8ea827e 100644
--- a/views/default/object/image.php
+++ b/views/default/object/image.php
@@ -175,26 +175,6 @@ if (get_context() == "search") {
<div class="clearfloat"></div>
</div>
<?php
- // image menu (start tagging, download, etc.)
-
- echo '<div id="tidypics_controls"><ul>';
- echo elgg_view('tidypics/image_menu', array(
- 'image_guid' => $image_guid,
- 'viewer' => $viewer,
- 'owner' => $owner,
- 'anytags' => $image->isPhotoTagged(),
- 'album' => $album, ) );
- echo '</ul></div>';
-
- // tagging code - photo tags on images, photo tag listing and hidden divs used in tagging
- if (get_plugin_setting('tagging', 'tidypics') != "disabled") {
- echo elgg_view('tidypics/tagging', array(
- 'image' => $image,
- 'viewer' => $viewer,
- 'owner' => $owner, ) );
- }
-
-
if (get_plugin_setting('exif', 'tidypics') == "enabled") {
echo elgg_view('tidypics/exif', array('guid'=> $image_guid));
}
diff --git a/views/default/object/image/full.php b/views/default/object/image/full.php
index 175519c16..74436f500 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,
@@ -51,10 +49,7 @@ echo $summary;
echo '<div class="tidypics-photo-wrapper center">';
echo elgg_view('object/image/navigation', $vars);
-echo elgg_view('photos/tagging/help', $vars);
-echo elgg_view('photos/tagging/select', $vars);
echo $img;
-echo elgg_view('photos/tagging/tags', $vars);
echo '</div>';
if ($photo->description) {
diff --git a/views/default/object/image/summary.php b/views/default/object/image/summary.php
index ed8ceff38..0fa03cbe8 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-photo',
));
/*