/**
* The wire river
*/
- 'river:create:object:thewire' => "%s posted to the wire",
+ 'river:create:object:thewire' => "%s posted to the %s",
+ 'thewire:wire' => 'wire',
/**
* Wire widget
$excerpt = strip_tags($object->description);
$excerpt = thewire_filter($excerpt);
+$subject = $vars['item']->getSubjectEntity();
+$subject_link = elgg_view('output/url', array(
+ 'href' => $subject->getURL(),
+ 'text' => $subject->name,
+ 'class' => 'elgg-river-subject',
+));
+
+$object_link = elgg_view('output/url', array(
+ 'href' => "thewire/owner/$subject->username",
+ 'text' => elgg_echo('thewire:wire'),
+ 'class' => 'elgg-river-object',
+));
+
+$summary = elgg_echo("river:create:object:thewire", array($subject_link, $object_link));
+
echo elgg_view('river/item', array(
'item' => $vars['item'],
'message' => $excerpt,
- 'summary' => false,
+ 'summary' => $summary,
));
\ No newline at end of file