From 051f7291dc66f8312d2af2cab3cc21c03bc63349 Mon Sep 17 00:00:00 2001 From: dave Date: Thu, 7 Aug 2008 15:44:54 +0000 Subject: forum latest for group profile page git-svn-id: https://code.elgg.org/elgg/trunk@1763 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/views/default/groups/forum_latest.php | 28 +++++++++++++++--------- 1 file changed, 18 insertions(+), 10 deletions(-) (limited to 'mod/groups/views/default') diff --git a/mod/groups/views/default/groups/forum_latest.php b/mod/groups/views/default/groups/forum_latest.php index f0a62a14f..dc2857f12 100644 --- a/mod/groups/views/default/groups/forum_latest.php +++ b/mod/groups/views/default/groups/forum_latest.php @@ -1,14 +1,22 @@ -

Forum latest

+

guid, 4, 0, "asc", false); + + if($forum){ + foreach($forum as $f){ + + $count_annotations = $f->countAnnotations("group_topic_post"); + + echo "
"; + echo "

" . $f->title . " (Replies: " . $count_annotations . ")

"; + echo "
" . elgg_view('profile/icon',array('entity' => $f->getOwnerEntity(), 'size' => 'tiny')) . "
"; + echo "
"; + + } + }else{ + + echo elgg_echo("grouptopic:notcreated"); + } ?> \ No newline at end of file -- cgit v1.2.3