blob: 3cf253afe32fe361a4dabdb19d24b6fbf74cf714 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<h2><?php echo elgg_echo('groups:latestdiscussion'); ?></h2>
<?php
$forum = get_entities_from_annotations("object", "groupforumtopic", "group_topic_post", "", 0, $vars['entity']->guid, 4, 0, "asc", false);
if($forum){
foreach($forum as $f){
$count_annotations = $f->countAnnotations("group_topic_post");
echo "<div class=\"forum_latest\">";
echo "<div class=\"topic_title\"><p>" . $f->title . " (Replies: " . $count_annotations . ")</p></div>";
echo "<div class=\"topic_owner_icon\">" . elgg_view('profile/icon',array('entity' => $f->getOwnerEntity(), 'size' => 'tiny')) . "</div>";
echo "</div>";
}
}else{
echo elgg_echo("grouptopic:notcreated");
}
?>
|