From 31867d1a44f87c775014c9f9c0b8fd546d7c4ba9 Mon Sep 17 00:00:00 2001 From: cash Date: Fri, 17 Dec 2010 12:03:17 +0000 Subject: updated river views for content display and added new bookmarks river view code git-svn-id: http://code.elgg.org/elgg/trunk@7657 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../default/river/object/bookmarks/create.php | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) (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 e31a5ab43..f30097dd9 100644 --- a/mod/bookmarks/views/default/river/object/bookmarks/create.php +++ b/mod/bookmarks/views/default/river/object/bookmarks/create.php @@ -1,4 +1,29 @@ getObjectEntity(); +$excerpt = strip_tags($object->description); +$excerpt = elgg_get_excerpt($excerpt); + +$params = array( + 'href' => $object->address, + 'text' => $object->title, +); +$link = elgg_view('output/url', $params); + +echo elgg_echo('bookmarks:river:create'); + +echo " $link"; + +if ($excerpt) { + echo '
'; + echo $excerpt; + echo '
'; +} + +return true; /** * Elgg bookmark river entry view */ -- cgit v1.2.3