getGUID(); $tags = $file->tags; $title = $file->title; $desc = $file->description; $owner = $vars['entity']->getOwnerEntity(); $friendlytime = friendly_time($vars['entity']->time_created); $mime = $file->mimetype; if (get_context() == "search") { //if this is the search view if (get_input('search_viewtype') == "gallery") { ?>
thumbnail
'.$title.'

'; $info .= "

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

"; $icon = "getURL()}\">" . elgg_view("tidypics/icon", array("mimetype" => $mime, 'thumbnail' => $file->thumbnail, 'file_guid' => $file_guid, 'size' => 'small')) . ""; echo elgg_view_listing($icon, $info); } } else { if (!$vars['full']) { //simple gallery view ?>
thumbnail
container_guid); $current = array_search($file_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); } $current = array_search($file_guid, $_SESSION['image_sort']); } if ($current != 0) $back = '<<' . elgg_echo('image:back') . ''; if (sizeof($_SESSION['image_sort']) > $current + 1) $next = '' . elgg_echo('image:next') . '>>'; ?>
'; ?>
getGUID(), false, 'user', '', 0); $content = ""; $content .= ""; $content .= ""; $content .= ""; $content .= ""; $content .= "
"; echo elgg_view('input/form', array('internalid' => 'quicksearch', 'internalname' => 'form-phototagging', 'class' => 'quicksearch', 'action' => "{$vars['url']}action/tidypics/addtag", 'body' => $content)); ?>
value); $data_tag->type = 'word'; $data_tag->value = 'Test tag'; $data_tag->id = 32; $data_tag->x1 = 73; $data_tag->y1 = 56; $data_tag->width = 100; $data_tag->height = 32; if($data_tag->type == 'user') $data_tag->data = get_entity($data_tag->value); else $data_tag->data = $data_tag->value; echo "
"; if($data_tag->type == 'user') echo "{$data_tag->data->name}"; else echo "{$data_tag->data}"; echo ""; echo "
"; // } //} ?>
$tags));?>
name; ?>
'; // content wrapper } // // end of individual image display } ?>