aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-10-21 12:21:51 +0200
committerSem <sembrestels@riseup.net>2012-10-21 12:21:51 +0200
commit49779a932de82bf4a9106d1bb373e9077f6f0bc6 (patch)
tree2ffe406b50e82ff6727fe09162d3ccaf57bc4d92
parentfd07413a72bb4a1fc8609dd0194e7d718ed98b18 (diff)
downloadelgg-49779a932de82bf4a9106d1bb373e9077f6f0bc6.tar.gz
elgg-49779a932de82bf4a9106d1bb373e9077f6f0bc6.tar.bz2
Changed river icons.
-rw-r--r--views/default/river/object/event_calendar/create.php23
-rw-r--r--views/default/river/object/event_calendar/update.php19
2 files changed, 15 insertions, 27 deletions
diff --git a/views/default/river/object/event_calendar/create.php b/views/default/river/object/event_calendar/create.php
index e74a8f891..515389411 100644
--- a/views/default/river/object/event_calendar/create.php
+++ b/views/default/river/object/event_calendar/create.php
@@ -1,22 +1,13 @@
<?php
-
- /*$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>";*/
-
/**
- * Event calendar river view.
+ * Event river view.
*/
+elgg_load_library('elgg:event_calendar');
+
$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
+echo elgg_view('river/elements/layout', array(
+ 'item' => $vars['item'],
+ 'message' => event_calendar_get_formatted_time($object),
+));
diff --git a/views/default/river/object/event_calendar/update.php b/views/default/river/object/event_calendar/update.php
index f4526cd2a..515389411 100644
--- a/views/default/river/object/event_calendar/update.php
+++ b/views/default/river/object/event_calendar/update.php
@@ -1,16 +1,13 @@
<?php
+/**
+ * Event river view.
+ */
+
+elgg_load_library('elgg:event_calendar');
- /*$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>";*/
-
$object = $vars['item']->getObjectEntity();
-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',
+echo elgg_view('river/elements/layout', array(
+ 'item' => $vars['item'],
+ 'message' => event_calendar_get_formatted_time($object),
));