]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
bookmarks river view altered for groups
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 31 May 2010 12:04:41 +0000 (12:04 +0000)
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 31 May 2010 12:04:41 +0000 (12:04 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@6296 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/bookmarks/languages/en.php
mod/bookmarks/views/default/river/object/bookmarks/create.php

index e73486e5df252f0fb42135660f061005b0f63cac..6bdf565ad3337b406e286feafb27ff4c32cdd353 100644 (file)
@@ -14,6 +14,7 @@ $english = array(
                'bookmarks:user' => "%s's bookmarks",
                'bookmarks:group' => "Bookmarks",
                'bookmarks:this' => "Bookmark this",
+               'bookmarks:ingroup' => "in the group",
                'bookmarks:this:group' => "Bookmark in %s",
                'bookmarks:bookmarklet' => "Get bookmarklet",
                'bookmarks:bookmarklet:group' => "Get community bookmarklet",
index ba1c24572aed4c3d2ef7a9d9f19aaa7e578d2130..d5124e4caaa8215962aee7380cdc25882cb603b2 100644 (file)
@@ -5,10 +5,15 @@
 
 $performed_by = get_entity($vars['item']->subject_guid); // $statement->getSubject();
 $object = get_entity($vars['item']->object_guid);
+$is_group = get_entity($object->container_guid);
 $url = $object->getURL();
 $url = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a>";
 $string = sprintf(elgg_echo("bookmarks:river:created"),$url) . " ";
-$string .= "<a href=\"" . $object->address . "\">" . $object->title . "</a> <span class='entity_subtext'>" . friendly_time($object->time_updated) . "</span>";
+$string .= "<a href=\"" . $object->address . "\">" . $object->title . "</a>";
+if(($is_group instanceof ElggGroup) && (get_context() != 'groups')){
+       $string .= " " . elgg_echo('bookmarks:ingroup') . " <a href=\"{$is_group->getURL()}\">" . $is_group->name . "</a>";
+}
+$string .= " <span class='entity_subtext'>" . friendly_time($object->time_created) . "</span>";
 if (isloggedin()){
        $string .= "<a class='river_comment_form_button link'>Comment</a>";
        $string .= elgg_view('likes/forms/link', array('entity' => $object));