aboutsummaryrefslogtreecommitdiff
path: root/mod/event_calendar/views/rss/event_calendar/show_events.php
blob: 40c67ff6a2d6ff9f5c8e40381e3799b24c537a95 (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
<?php
/**
 * Elgg show events RSS view
 * 
 * @package event_calendar
 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
 * @author Kevin Jardine <kevin@radagast.biz>
 * @copyright Radagast Solutions 2009
 * @link http://radagast.biz/
 * 
 */

elgg_load_library('elgg:event_calendar');
if ($vars['events']) {
	$options = array(
		'count' => $vars['count'],
		'offset' => 0,
		'limit' => 15,
		'list_type_toggle' => FALSE,
		'pagination' => FALSE,
	);
	// echo elgg_view_entity_list($vars['events'], $vars['count'], $vars['offset'], $vars['limit'], false, false);
	echo elgg_view_entity_list(event_calendar_flatten_event_structure($vars['events']), $options);
}