getGUID(); $tags = $image->tags; $title = $image->title; $desc = $image->description; $owner = $image->getOwnerEntity(); $friendlytime = friendly_time($image->time_created); /******************************************************************** * * search view of an image * ********************************************************************/ if (get_context() == "search") { // gallery view is a matrix view showing just the image - size: small if (get_input('search_viewtype') == "gallery") { ?>
'.$title.''; $info .= " "; $icon = "getURL()}\">" . ''; echo elgg_view_listing($icon, $info); } /*************************************************************** * * front page view * ****************************************************************/ } else if (get_context() == "front") { // the front page view is a clikcable thumbnail of the image ?> container_guid); $current = array_search($image_guid, $_SESSION['image_sort']); if (!$current) { // means we are no longer using the correct album array //rebuild the array $count = get_entities("object","image", $album->guid, '', 999); $_SESSION['image_sort'] = array(); foreach ($count as $image) { array_push($_SESSION['image_sort'], $image->guid); } if ($_SESSION['image_sort']) $current = array_search($image_guid, $_SESSION['image_sort']); } if ($current != 0) $back = '« ' . elgg_echo('image:back') . ''; if (sizeof($_SESSION['image_sort']) > $current + 1) $next = '' . elgg_echo('image:next') . ' »'; ?>