$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 if (get_context() == "calendar") { $shown_date = $vars['entity']->begin; } else { $shown_date = $vars['entity']->deadline; } if ($shown_date > 86400) { $info .= "
" . date("d.m.Y",$shown_date) . "
"; } $info .= "
" . elgg_view('output/text', array('value' => $vars['entity']->shortdescription)) . "
"; if ($vars['entity']->archived == 1) { /*translation:This object has been archived.*/ $info .= "
". elgg_echo("koolielu:object_archived") ."
"; } 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); }