aboutsummaryrefslogtreecommitdiff
path: root/views/default/river/object/event_calendar
diff options
context:
space:
mode:
authorKevin Jardine <kevinjardine@yahoo.com>2011-09-26 12:42:11 +0200
committerKevin Jardine <kevinjardine@yahoo.com>2011-09-26 12:42:11 +0200
commit804dfcf6c4b5b6380d607c8ec6b843d56ac82247 (patch)
treecc81ecb76a5f1422100d521b9fe3b93166fcdf3e /views/default/river/object/event_calendar
parent6b20e80c9d577a3eeeb570a6d9fd706fe619709b (diff)
downloadelgg-804dfcf6c4b5b6380d607c8ec6b843d56ac82247.tar.gz
elgg-804dfcf6c4b5b6380d607c8ec6b843d56ac82247.tar.bz2
major changes for Elgg 1.8
Diffstat (limited to 'views/default/river/object/event_calendar')
-rw-r--r--views/default/river/object/event_calendar/create.php18
-rw-r--r--views/default/river/object/event_calendar/update.php12
2 files changed, 22 insertions, 8 deletions
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 @@
<?php
- $performed_by = get_entity($vars['item']->subject_guid);
+ /*$performed_by = get_entity($vars['item']->subject_guid);
$object = get_entity($vars['item']->object_guid);
$url = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a>";
$string = sprintf(elgg_echo("event_calendar:river:created"),$url) . " ";
- $string .= elgg_echo("event_calendar:river:create")." <a href=\"" . $object->getURL() . "\">" . $object->title . "</a>";
+ $string .= elgg_echo("event_calendar:river:create")." <a href=\"" . $object->getURL() . "\">" . $object->title . "</a>";*/
-?>
+/**
+ * Event calendar river view.
+ */
-<?php echo $string; ?> \ 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' => '<img src="'.$vars['url'] . 'mod/event_calendar/images/event_icon.gif" />',
+ '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 @@
<?php
- $performed_by = get_entity($vars['item']->subject_guid);
+ /*$performed_by = get_entity($vars['item']->subject_guid);
$object = get_entity($vars['item']->object_guid);
$url = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a>";
$string = sprintf(elgg_echo("event_calendar:river:updated"),$url) . " ";
- $string .= elgg_echo("event_calendar:river:the_event")." <a href=\"" . $object->getURL() . "\">" . $object->title . "</a>";
+ $string .= elgg_echo("event_calendar:river:the_event")." <a href=\"" . $object->getURL() . "\">" . $object->title . "</a>";*/
-?>
+$object = $vars['item']->getObjectEntity();
-<?php echo $string; ?> \ No newline at end of file
+echo elgg_view('page/components/image_block', array(
+ 'image' => '<img src="'.$vars['url'] . 'mod/event_calendar/images/event_icon.gif" />',
+ 'body' => elgg_view('river/elements/body', $vars),
+ 'class' => 'elgg-river-item',
+));