getGUID(); $tags = $file->tags; $title = $file->title; $desc = $file->description; $owner = $vars['entity']->getOwnerEntity(); $friendlytime = elgg_view_friendly_time($vars['entity']->time_created); $mime = $file->mimetype; if (!$title) { $title = elgg_echo('untitled'); } if (elgg_get_context() == "search") { // Start search listing version if (get_input('search_viewtype') == "gallery") { echo ""; } else { $info = "

getURL()}\">{$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("file/icon", array("mimetype" => $mime, 'thumbnail' => $file->thumbnail, 'file_guid' => $file_guid, 'size' => 'small')) . ""; echo elgg_view_listing($icon, $info); } } else { // Start main version ?>
$mime, 'thumbnail' => $file->thumbnail, 'file_guid' => $file_guid)); ?>
guid . "&search_viewtype=gallery"; ?>

$owner, 'size' => 'tiny')); ?>

name; ?>

$desc)); ?>

$tags)); ?>

".elgg_view('file/specialcontent/' . $mime, $vars)."
"; } else if (elgg_view_exists("file/specialcontent/" . substr($mime,0,strpos($mime,'/')) . "/default")) { echo "
".elgg_view("file/specialcontent/" . substr($mime,0,strpos($mime,'/')) . "/default", $vars)."
"; } ?>

canEdit()) { ?>

  "action/file/delete?file=" . $file->getGUID(), 'text' => elgg_echo("delete"), 'confirm' => elgg_echo("file:delete:confirm"), 'is_action' => true, )); ?>