aboutsummaryrefslogtreecommitdiff
path: root/mod/event_calendar/views/default/river
diff options
context:
space:
mode:
Diffstat (limited to 'mod/event_calendar/views/default/river')
-rw-r--r--mod/event_calendar/views/default/river/object/event_calendar/create.php13
-rw-r--r--mod/event_calendar/views/default/river/object/event_calendar/update.php13
2 files changed, 26 insertions, 0 deletions
diff --git a/mod/event_calendar/views/default/river/object/event_calendar/create.php b/mod/event_calendar/views/default/river/object/event_calendar/create.php
new file mode 100644
index 000000000..515389411
--- /dev/null
+++ b/mod/event_calendar/views/default/river/object/event_calendar/create.php
@@ -0,0 +1,13 @@
+<?php
+/**
+ * Event river view.
+ */
+
+elgg_load_library('elgg:event_calendar');
+
+$object = $vars['item']->getObjectEntity();
+
+echo elgg_view('river/elements/layout', array(
+ 'item' => $vars['item'],
+ 'message' => event_calendar_get_formatted_time($object),
+));
diff --git a/mod/event_calendar/views/default/river/object/event_calendar/update.php b/mod/event_calendar/views/default/river/object/event_calendar/update.php
new file mode 100644
index 000000000..515389411
--- /dev/null
+++ b/mod/event_calendar/views/default/river/object/event_calendar/update.php
@@ -0,0 +1,13 @@
+<?php
+/**
+ * Event river view.
+ */
+
+elgg_load_library('elgg:event_calendar');
+
+$object = $vars['item']->getObjectEntity();
+
+echo elgg_view('river/elements/layout', array(
+ 'item' => $vars['item'],
+ 'message' => event_calendar_get_formatted_time($object),
+));