From e25ce6edc31cae1befb863cff66b9e845f67a417 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Tue, 25 Aug 2009 11:34:11 +0000 Subject: calling the image object image rather than file --- views/default/object/image.php | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/views/default/object/image.php b/views/default/object/image.php index 10c89459b..dd225f02f 100644 --- a/views/default/object/image.php +++ b/views/default/object/image.php @@ -7,22 +7,22 @@ global $CONFIG; include_once dirname(dirname(dirname(dirname(__FILE__)))) . "/lib/exif.php"; - $file = $vars['entity']; - $file_guid = $file->getGUID(); - $tags = $file->tags; - $title = $file->title; - $desc = $file->description; - $owner = $vars['entity']->getOwnerEntity(); - $friendlytime = friendly_time($vars['entity']->time_created); + $image = $vars['entity']; + $file_guid = $image->getGUID(); + $tags = $image->tags; + $title = $image->title; + $desc = $image->description; + $owner = $image->getOwnerEntity(); + $friendlytime = friendly_time($image->time_created); - $mime = $file->mimetype; + $mime = $image->mimetype; ///////////////////////////////////////////////////// // get photo tags from database $photo_tags_json = "\"\""; - $tag_info = $file->getPhotoTags(); + $tag_info = $image->getPhotoTags(); if ($tag_info) { $photo_tags = $tag_info['raw']; $photo_tags_json = $tag_info['json']; @@ -39,19 +39,19 @@ if (get_input('search_viewtype') == "gallery") { ?>
- thumbnail + thumbnail
'.$title.'

'; + $info = '

'.$title.'

'; $info .= "

username}\">{$owner->name} {$friendlytime}"; - $numcomments = elgg_count_comments($file); + $numcomments = elgg_count_comments($image); if ($numcomments) - $info .= ", getURL()}\">" . sprintf(elgg_echo("comments")) . " (" . $numcomments . ")"; + $info .= ", getURL()}\">" . sprintf(elgg_echo("comments")) . " (" . $numcomments . ")"; $info .= "

"; - $icon = "getURL()}\">" . '' . $title . ''; + $icon = "getURL()}\">" . '' . $title . ''; echo elgg_view_listing($icon, $info); } @@ -62,7 +62,7 @@ ****************************************************************/ } else if (get_context() == "front") { ?> - <?php echo $title; ?> + <?php echo $title; ?>
- thumbnail + thumbnail
container_guid); + $album = get_entity($image->container_guid); $current = array_search($file_guid, $_SESSION['image_sort']); @@ -228,7 +228,7 @@ '; // content wrapper -- cgit v1.2.3