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 ""; // echo elgg_view("search/gallery",array('info' => $info, 'icon' => $icon)); } else { $info = "

getURL()}\">{$title}"; // Pubtime for listing if ($file->pubtime) { $info .= " (".$file->pubtime.")"; } $info .= "

"; $info .= "

username}\">{$owner->name} {$friendlytime}"; $numcomments = elgg_count_comments($file); $numcomments += koolielu_get_entity_subcomments($file_guid, true); if ($numcomments) $info .= ", getURL()}\">" . sprintf(elgg_echo("comments")) . " (" . $numcomments . ")"; $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.""; } ?>
$mime, 'thumbnail' => $file->thumbnail, 'file_guid' => $file_guid)); ?>
guid . "&search_viewtype=gallery"; ?>

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

name; ?>

$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()) { // KOOLIELU fix, in case of group file make group view permission tag along $this_file_container = $vars['entity']->getContainerEntity(); ?>

  "; 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 ""; 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 ""; } ?>