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") { ?>
thumbnail
'.$title.'

'; $info .= "

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

"; $icon = "getURL()}\">" . '' . $title . ''; echo elgg_view_listing($icon, $info); } /*************************************************************** * * front page view * ****************************************************************/ } else if (get_context() == "front") { // the front page view is a clickable thumbnail of the image ?> <?php echo $title; ?> $image), $image_html); if ($image_html) { echo $image_html; } else { // default link to image if no one overrides ?>
<?php echo $image->title; ?>
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 $img) { array_push($_SESSION['image_sort'], $img->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') . ' »'; } ?>
$album,) ); ?>
addView($viewer->guid); $views = $image->getViews($viewer->guid); if (is_array($views)) { echo sprintf(elgg_echo("tidypics:views"), $views['total']); if ($owner->guid == $viewer->guid) { echo ' ' . sprintf(elgg_echo("tidypics:viewsbyowner"), $views['unique']); } else { if ($views['mine']) { echo ' ' . sprintf(elgg_echo("tidypics:viewsbyothers"), $views['mine']); } } } } ?>
"; $image_html .= "\"{$title}\""; $image_html .= ""; } else { $image_html = "\"{$title}\""; } // does any plugin want to override the link $image_html = trigger_plugin_hook('tp_thumbnail_link', 'image', array('image' => $image), $image_html); echo $image_html; ?>
'; // 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)); } ?>
$tags));?>
$vars['entity'])); ?>
name; ?>
'; echo ''; // content wrapper } // end of individual image display }