From 43571d4d5381cc3e2a8ba3e05da6cb6982a1d960 Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 4 Aug 2008 15:03:03 +0000 Subject: Fixes #199 git-svn-id: https://code.elgg.org/elgg/trunk@1682 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/object/default.php | 48 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) (limited to 'views/default/object') diff --git a/views/default/object/default.php b/views/default/object/default.php index 93dd2ca94..c38b243ec 100644 --- a/views/default/object/default.php +++ b/views/default/object/default.php @@ -10,5 +10,51 @@ * @link http://elgg.org/ */ - echo elgg_view('export/entity', $vars); + if ($vars['full']) { + echo elgg_view('export/entity', $vars); + } else { + + $icon = elgg_view( + 'graphics/icon', array( + 'entity' => $vars['entity'], + 'size' => 'small', + ) + ); + + + $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

"; + + if (get_input('search_viewtype') == "gallery") { + + $icon = ""; + + } + + $owner = $vars['entity']->getOwnerEntity(); + $ownertxt = elgg_echo('unknown'); + if ($owner) + "getURL() . "\">" . $owner->name .""; + + $info .= "
".sprintf(elgg_echo("entity:default:strapline"), + friendly_time($vars['entity']->time_created), + $ownertxt + ); + + $info .= "
"; + + $info = "$info"; + $icon = "$icon"; + + echo elgg_view_listing($icon, $info); + } ?> \ No newline at end of file -- cgit v1.2.3