aboutsummaryrefslogtreecommitdiff
path: root/mod/thewire
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-06-26 07:48:03 -0400
committerCash Costello <cash.costello@gmail.com>2011-06-26 07:48:03 -0400
commit2f3b6a8aebc55009f066a49b2d9aaa12dc5be008 (patch)
treeafb61e40a3119fca4a9dd81e815e7f958b93720e /mod/thewire
parentce0e0c2480b2506cc5688f94e659de30a952a58b (diff)
downloadelgg-2f3b6a8aebc55009f066a49b2d9aaa12dc5be008.tar.gz
elgg-2f3b6a8aebc55009f066a49b2d9aaa12dc5be008.tar.bz2
provided a way to get to the wire from activity page
Diffstat (limited to 'mod/thewire')
-rw-r--r--mod/thewire/languages/en.php3
-rw-r--r--mod/thewire/views/default/river/object/thewire/create.php17
2 files changed, 18 insertions, 2 deletions
diff --git a/mod/thewire/languages/en.php b/mod/thewire/languages/en.php
index e2dd5fdac..9716fc060 100644
--- a/mod/thewire/languages/en.php
+++ b/mod/thewire/languages/en.php
@@ -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
diff --git a/mod/thewire/views/default/river/object/thewire/create.php b/mod/thewire/views/default/river/object/thewire/create.php
index 2e9cfd83b..c3c434858 100644
--- a/mod/thewire/views/default/river/object/thewire/create.php
+++ b/mod/thewire/views/default/river/object/thewire/create.php
@@ -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