diff options
author | cash <cash.costello@gmail.com> | 2011-09-25 15:41:30 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-09-25 15:41:30 -0400 |
commit | 0a0414619d4a82494403e8334e9a5367f893667e (patch) | |
tree | 5bb4b193b84bdccbef2dcf54662b93a4ec0ed8a7 | |
parent | 83221c9eb9dcf37d5287180e7f7d9469036aaac6 (diff) | |
download | elgg-0a0414619d4a82494403e8334e9a5367f893667e.tar.gz elgg-0a0414619d4a82494403e8334e9a5367f893667e.tar.bz2 |
Refs #3842 adding river view back so that those upgrading from earlier Elgg views don't have empty river messages
-rw-r--r-- | languages/en.php | 1 | ||||
-rw-r--r-- | views/default/river/user/default/profileupdate.php | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/languages/en.php b/languages/en.php index d83d4773b..9d0590b2d 100644 --- a/languages/en.php +++ b/languages/en.php @@ -408,6 +408,7 @@ $english = array( 'river' => "River", 'river:friend:user:default' => "%s is now a friend with %s", 'river:update:user:avatar' => '%s has a new avatar', + 'river:update:user:profile' => '%s has updated their profile', 'river:noaccess' => 'You do not have permission to view this item.', 'river:posted:generic' => '%s posted', 'riveritem:single:user' => 'a user', diff --git a/views/default/river/user/default/profileupdate.php b/views/default/river/user/default/profileupdate.php new file mode 100644 index 000000000..a344131d6 --- /dev/null +++ b/views/default/river/user/default/profileupdate.php @@ -0,0 +1,19 @@ +<?php +/** + * Update profile river view + */ + +$subject = $vars['item']->getSubjectEntity(); + +$subject_link = elgg_view('output/url', array( + 'href' => $subject->getURL(), + 'text' => $subject->name, + 'class' => 'elgg-river-subject', +)); + +$string = elgg_echo('river:update:user:profile', array($subject_link)); + +echo elgg_view('river/item', array( + 'item' => $vars['item'], + 'summary' => $string, +)); |