aboutsummaryrefslogtreecommitdiff
path: root/mod/event_calendar/views/rss/event_calendar/show_events.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/event_calendar/views/rss/event_calendar/show_events.php')
-rw-r--r--mod/event_calendar/views/rss/event_calendar/show_events.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/mod/event_calendar/views/rss/event_calendar/show_events.php b/mod/event_calendar/views/rss/event_calendar/show_events.php
new file mode 100644
index 000000000..40c67ff6a
--- /dev/null
+++ b/mod/event_calendar/views/rss/event_calendar/show_events.php
@@ -0,0 +1,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);
+}