From 152a6ae4f00f6e0407d9a7ba04ae0000a818c554 Mon Sep 17 00:00:00 2001 From: cash Date: Fri, 17 Dec 2010 12:23:35 +0000 Subject: supporting putting content in groups in for river views and added file river code git-svn-id: http://code.elgg.org/elgg/trunk@7658 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../default/river/object/bookmarks/create.php | 36 ++++++++-------------- 1 file changed, 12 insertions(+), 24 deletions(-) (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 f30097dd9..bd07db089 100644 --- a/mod/bookmarks/views/default/river/object/bookmarks/create.php +++ b/mod/bookmarks/views/default/river/object/bookmarks/create.php @@ -13,35 +13,23 @@ $params = array( ); $link = elgg_view('output/url', $params); +$group_string = ''; +$container = $object->getContainerEntity(); +if ($container instanceof ElggGroup) { + $params = array( + 'href' => $container->getURL(), + 'text' => $container->name, + ); + $group_link = elgg_view('output/url', $params); + $group_string = elgg_echo('river:ingroup', array($group_link)); +} + echo elgg_echo('bookmarks:river:create'); -echo " $link"; +echo " $link $group_string"; if ($excerpt) { echo '
'; echo $excerpt; echo '
'; } - -return true; -/** - * Elgg bookmark river entry view - */ - -$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 = elgg_echo("bookmarks:river:created", array($url)) . " "; -$string .= "address . "\">" . $object->title . ""; -if (($is_group instanceof ElggGroup) && (elgg_get_context() != 'groups')){ - $string .= " " . elgg_echo('bookmarks:ingroup') . " getURL()}\">" . $is_group->name . ""; -} -$string .= " " . elgg_view_friendly_time($object->time_created); -if (isloggedin()){ - $string .= "Comment"; - $string .= elgg_view('forms/likes/link', array('entity' => $object)); -} -$string .= ""; -echo $string; \ No newline at end of file -- cgit v1.2.3