$vars['entity'], 'size' => 'small', ) ); */ // Our own icon if(getImageFileExists("listing_" . $vars['entity']->getGUID() . ".jpg", $vars['entity']->getOwner())) { $icon = "
"; $icon .= "
"; $icon .= "getGUID() . ".jpg", $vars['entity']->getOwner()) . "\" title=\"". $vars['entity']->title ."\"/>"; $icon .= "
"; $icon .= "
"; } $title = $vars['entity']->title; if (!$title) $title = $vars['entity']->name; if (!$title) $title = get_class($vars['entity']); $controls = ""; /*if ($vars['entity']->canEdit()) { $controls .= " (guid}\">" . elgg_echo('delete') . ")"; }*/ $info = "

getUrl() . "\">" . $title . " $controls

"; // Short description $time_created = $vars['entity']->time_created; $info .= "
" . date("d.m.Y",$time_created) . "
"; $info .= "
" . elgg_view('output/text', array('value' => $vars['entity']->shortdescription)) . "
"; if (get_input('search_viewtype') == "gallery") { $icon = ""; } $owner = $vars['entity']->getOwnerEntity(); $ownertxt = elgg_echo('unknown'); if ($owner) $ownertxt = "getURL() . "\">" . $owner->name .""; /*$info .= "
".sprintf(elgg_echo("entity:default:strapline"), friendly_time($vars['entity']->time_created), $ownertxt ); $info .= "
";*/ echo elgg_view_listing($icon, $info); }