From 02e0a58f8907c66a0dbe7241621e5ad0bb264426 Mon Sep 17 00:00:00 2001 From: brettp Date: Mon, 7 Jun 2010 22:40:58 +0000 Subject: Minimal attempt to bring riverdashboard up to code standards. Fixed comment count in +N more string. Added ajax grabbing of all comments when clicking more link. git-svn-id: http://code.elgg.org/elgg/trunk@6389 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/riverdashboard/endpoint/get_comments.php | 40 ++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 mod/riverdashboard/endpoint/get_comments.php (limited to 'mod/riverdashboard/endpoint') diff --git a/mod/riverdashboard/endpoint/get_comments.php b/mod/riverdashboard/endpoint/get_comments.php new file mode 100644 index 000000000..59ff3d785 --- /dev/null +++ b/mod/riverdashboard/endpoint/get_comments.php @@ -0,0 +1,40 @@ +owner_guid); + //get the comment owner's profile url + $comment_owner_url = $comment_owner->getURL(); + + //display comment + echo "
"; + echo ""; + echo elgg_view("profile/icon", array('entity' => $comment_owner, 'size' => 'tiny')); + echo ""; + + //truncate comment to 150 characters and strip tags + $contents = elgg_make_excerpt($comment->value, 150); + + echo "
"; + echo "" . $comment_owner->name . " " . parse_urls($contents); + echo "" . friendly_time($comment->time_created) . ""; + echo "
"; +} \ No newline at end of file -- cgit v1.2.3