From 46c9b92c5624c022e58f5befb4678c95d2eeaf85 Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 31 May 2010 12:04:41 +0000 Subject: bookmarks river view altered for groups git-svn-id: http://code.elgg.org/elgg/trunk@6296 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/bookmarks/views/default/river/object/bookmarks/create.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mod/bookmarks/views/default') diff --git a/mod/bookmarks/views/default/river/object/bookmarks/create.php b/mod/bookmarks/views/default/river/object/bookmarks/create.php index ba1c24572..d5124e4ca 100644 --- a/mod/bookmarks/views/default/river/object/bookmarks/create.php +++ b/mod/bookmarks/views/default/river/object/bookmarks/create.php @@ -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 = "getURL()}\">{$performed_by->name}"; $string = sprintf(elgg_echo("bookmarks:river:created"),$url) . " "; -$string .= "address . "\">" . $object->title . " " . friendly_time($object->time_updated) . ""; +$string .= "address . "\">" . $object->title . ""; +if(($is_group instanceof ElggGroup) && (get_context() != 'groups')){ + $string .= " " . elgg_echo('bookmarks:ingroup') . " getURL()}\">" . $is_group->name . ""; +} +$string .= " " . friendly_time($object->time_created) . ""; if (isloggedin()){ $string .= "Comment"; $string .= elgg_view('likes/forms/link', array('entity' => $object)); -- cgit v1.2.3