From 804dfcf6c4b5b6380d607c8ec6b843d56ac82247 Mon Sep 17 00:00:00 2001 From: Kevin Jardine Date: Mon, 26 Sep 2011 12:42:11 +0200 Subject: major changes for Elgg 1.8 --- views/default/river/object/event_calendar/create.php | 18 ++++++++++++++---- views/default/river/object/event_calendar/update.php | 12 ++++++++---- 2 files changed, 22 insertions(+), 8 deletions(-) (limited to 'views/default/river') diff --git a/views/default/river/object/event_calendar/create.php b/views/default/river/object/event_calendar/create.php index f144ca610..e74a8f891 100644 --- a/views/default/river/object/event_calendar/create.php +++ b/views/default/river/object/event_calendar/create.php @@ -1,12 +1,22 @@ subject_guid); + /*$performed_by = get_entity($vars['item']->subject_guid); $object = get_entity($vars['item']->object_guid); $url = "getURL()}\">{$performed_by->name}"; $string = sprintf(elgg_echo("event_calendar:river:created"),$url) . " "; - $string .= elgg_echo("event_calendar:river:create")." getURL() . "\">" . $object->title . ""; + $string .= elgg_echo("event_calendar:river:create")." getURL() . "\">" . $object->title . "";*/ -?> +/** + * Event calendar river view. + */ - \ No newline at end of file +$object = $vars['item']->getObjectEntity(); +$excerpt = strip_tags($object->description); +$vars['excerpt'] = elgg_get_excerpt($excerpt); + +echo elgg_view('page/components/image_block', array( + 'image' => '', + 'body' => elgg_view('river/elements/body', $vars), + 'class' => 'elgg-river-item', +)); \ No newline at end of file diff --git a/views/default/river/object/event_calendar/update.php b/views/default/river/object/event_calendar/update.php index 5a5d376b1..f4526cd2a 100644 --- a/views/default/river/object/event_calendar/update.php +++ b/views/default/river/object/event_calendar/update.php @@ -1,12 +1,16 @@ subject_guid); + /*$performed_by = get_entity($vars['item']->subject_guid); $object = get_entity($vars['item']->object_guid); $url = "getURL()}\">{$performed_by->name}"; $string = sprintf(elgg_echo("event_calendar:river:updated"),$url) . " "; - $string .= elgg_echo("event_calendar:river:the_event")." getURL() . "\">" . $object->title . ""; + $string .= elgg_echo("event_calendar:river:the_event")." getURL() . "\">" . $object->title . "";*/ -?> +$object = $vars['item']->getObjectEntity(); - \ No newline at end of file +echo elgg_view('page/components/image_block', array( + 'image' => '', + 'body' => elgg_view('river/elements/body', $vars), + 'class' => 'elgg-river-item', +)); -- cgit v1.2.3