diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-31 12:04:41 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-31 12:04:41 +0000 |
commit | 46c9b92c5624c022e58f5befb4678c95d2eeaf85 (patch) | |
tree | 6b431d3cbebd30167032974ebd4806c887edb817 /mod/bookmarks/views/default | |
parent | ed59d8381da61e63e6832e8ebcb1e1494cf5a510 (diff) | |
download | elgg-46c9b92c5624c022e58f5befb4678c95d2eeaf85.tar.gz elgg-46c9b92c5624c022e58f5befb4678c95d2eeaf85.tar.bz2 |
bookmarks river view altered for groups
git-svn-id: http://code.elgg.org/elgg/trunk@6296 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/bookmarks/views/default')
-rw-r--r-- | mod/bookmarks/views/default/river/object/bookmarks/create.php | 7 |
1 files changed, 6 insertions, 1 deletions
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 = "<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)); |