aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/views/rss/forum/viewposts.php
blob: 464ca1a7bd309cca7bcf397dd93064be81292b61 (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-2010
	 * @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));
		
	}

?>