blob: b537ffc83cbbede685e26a8c108d0bc54d7070c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<?php
/**
* Elgg groups plugin display topic posts
*
* @package ElggGroups
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
* @author Curverider
* @copyright Curverider Ltd 2008-2009
* @link http://elgg.com/
*/
//display follow up comments
$count = $vars['entity']->countAnnotations('group_topic_post');
$offset = (int) get_input('offset',0);
foreach($vars['entity']->getAnnotations('group_topic_post', 50, $offset, "asc") as $post) {
$post->title = '';
$post->description = $post->value;
echo elgg_view('object/default', array('entity' => $post));
// echo elgg_view("forum/topicposts",array('entity' => $post));
}
?>
|