From 6ccf524f48df49ed97a2c0c051f0276a377b9f48 Mon Sep 17 00:00:00 2001 From: cash Date: Fri, 14 Jan 2011 02:14:20 +0000 Subject: finished discussion rewrite to use new html/css git-svn-id: http://code.elgg.org/elgg/trunk@7881 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../views/default/object/groupforumtopic.php | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'mod/groups/views/default/object') diff --git a/mod/groups/views/default/object/groupforumtopic.php b/mod/groups/views/default/object/groupforumtopic.php index a89419931..c6f9da4b4 100644 --- a/mod/groups/views/default/object/groupforumtopic.php +++ b/mod/groups/views/default/object/groupforumtopic.php @@ -5,7 +5,7 @@ * @package ElggGroups */ -//$full = elgg_get_array_value('full', $vars, FALSE); +$full = elgg_get_array_value('full', $vars, FALSE); $topic = elgg_get_array_value('entity', $vars, FALSE); if (!$topic) { @@ -46,17 +46,33 @@ $metadata = elgg_view('layout/objects/list/metadata', array( 'handler' => 'discussion', )); -$subtitle = "$poster_text $date $comments_link $comments_text"; - // do not show the metadata and controls in widget view if (elgg_in_context('widgets')) { $metadata = ''; } if ($full) { + $subtitle = "$poster_text $date $comments_link"; + + $params = array( + 'entity' => $topic, + 'title' => false, + 'metadata' => $metadata, + 'subtitle' => $subtitle, + 'tags' => $tags, + ); + $list_body = elgg_view('layout/objects/list/body', $params); + + $info = elgg_view_image_block($poster_icon, $list_body); + echo <<$comments_text"; $params = array( 'entity' => $topic, -- cgit v1.2.3