]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
provided a way to get to the wire from activity page
authorCash Costello <cash.costello@gmail.com>
Sun, 26 Jun 2011 11:48:03 +0000 (07:48 -0400)
committerCash Costello <cash.costello@gmail.com>
Sun, 26 Jun 2011 11:48:03 +0000 (07:48 -0400)
mod/thewire/languages/en.php
mod/thewire/views/default/river/object/thewire/create.php

index e2dd5fdac9b26bb754d2f24428e25aebf246b656..9716fc060df78e13eb8a56407f78a3d91d1d16b0 100644 (file)
@@ -29,7 +29,8 @@ $english = array(
        /**
         * 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
index 2e9cfd83bd6f83cc8e7a2eec19404f31193bbc4e..c3c43485859e1155abb8cbad49de0148151dcdec 100644 (file)
@@ -7,8 +7,23 @@ $object = $vars['item']->getObjectEntity();
 $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