aboutsummaryrefslogtreecommitdiff
path: root/views/rss/river/item/list.php
blob: 725ffe2c4060592f18ba3e436ac2542e8f41d01e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
/**
 * @package Elgg
 * @subpackage Core
 * @author Curverider Ltd
 * @link http://elgg.org/
 */

if (isset($vars['items']) && is_array($vars['items']) && !empty($vars['items'])) {
	$i = 1;
	foreach($vars['items'] as $item) {
		if ($i++ >= $vars['limit']) {
			break;
		}
		
		$entity = get_entity($item->object_guid);
		echo elgg_view_entity($entity);
	}
}