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") { // Start search listing version if (get_input('search_viewtype') == "gallery") { echo "
" . $file->title . "
"; echo "getURL()}\">getGUID()}\" border=\"0\" />
"; echo " "; //get the number of comments $numcomments = elgg_count_comments($vars['entity']); $numcomments += koolielu_get_entity_subcomments($file_guid, true); if ($numcomments) echo "getURL()}\">" . sprintf(elgg_echo("comments")) . " (" . $numcomments . ")
"; //if the user can edit, display edit and delete links if ($file->canEdit()) { echo ""; echo "getGUID()}\">" . elgg_echo('edit') . " "; echo elgg_view('output/confirmlink',array( 'href' => $vars['url'] . "action/file/delete?file=" . $file->getGUID(), 'text' => elgg_echo("delete"), 'confirm' => elgg_echo("file:delete:confirm"), )); echo "
{$title}
"; echo "getURL()}\">" . elgg_view("file/icon", array("mimetype" => $mime, 'thumbnail' => $file->thumbnail, 'file_guid' => $file_guid, 'size' => 'large')) . ""; echo " "; //get the number of comments $numcomments = elgg_count_comments($file); $numcomments += koolielu_get_entity_subcomments($file_guid, true); if ($numcomments) echo "getURL()}\">" . sprintf(elgg_echo("comments")) . " (" . $numcomments . ")
"; } echo "getURL()}\">{$title}"; // Pubtime for listing if ($file->pubtime) { $info .= " (".$file->pubtime.")"; } $info .= "
"; $info .= " "; // $icon = elgg_view("profile/icon",array('entity' => $owner, 'size' => 'small')); $icon = "getURL()}\">" . elgg_view("file/icon", array("mimetype" => $mime, 'thumbnail' => $file->thumbnail, 'file_guid' => $file_guid, 'size' => 'small')) . ""; echo elgg_view_listing($icon, $info); } } else { // Start main version if ($file->pubtime) { /*translation:This file is due to be published on*/ echo " ".elgg_echo("koolielu:community:file_not_published").": ".$file->pubtime.""; } ?>"; echo elgg_view('output/confirmlink',array( 'href' => $vars['url'] . "action/file/delete_file?file=" . $file->getGUID(), 'text' => elgg_echo("delete"), 'confirm' => elgg_echo("file:delete:confirm"), )); echo ""; } else { echo " "; } ?>