]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #3842 adding river view back so that those upgrading from earlier Elgg views...
authorcash <cash.costello@gmail.com>
Sun, 25 Sep 2011 19:41:30 +0000 (15:41 -0400)
committercash <cash.costello@gmail.com>
Sun, 25 Sep 2011 19:41:30 +0000 (15:41 -0400)
languages/en.php
views/default/river/user/default/profileupdate.php [new file with mode: 0644]

index d83d4773b9339c1e3429f385ddd4b4ec13ed1a7f..9d0590b2d76ab38af5d2284a652df19cc2a70893 100644 (file)
@@ -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 (file)
index 0000000..a344131
--- /dev/null
@@ -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,
+));