From 8a6aca077a81b6cd654c1944b0a5e2498b1cc655 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 25 Jun 2011 11:56:10 -0400 Subject: added documentation to new river views and improved handling of responses --- views/default/river/elements/body.php | 11 ++++++----- views/default/river/elements/responses.php | 10 ++++++++++ views/default/river/elements/summary.php | 5 +++++ 3 files changed, 21 insertions(+), 5 deletions(-) (limited to 'views/default/river/elements') diff --git a/views/default/river/elements/body.php b/views/default/river/elements/body.php index 6199e0861..f7a9d2426 100644 --- a/views/default/river/elements/body.php +++ b/views/default/river/elements/body.php @@ -2,7 +2,11 @@ /** * Body of river item * - * @uses $vars['item'] + * @uses $vars['item'] ElggRiverItem + * @uses $vars['summary'] Alternate summary (the short text summary of action) + * @uses $vars['message'] Optional message (usually excerpt of text) + * @uses $vars['attachments'] Optional attachments (displaying icons or other non-text data) + * @uses $vars['responses'] Alternate respones (comments, replies, etc.) */ $item = $vars['item']; @@ -36,10 +40,7 @@ if ($attachments !== false) { $attachments = "
$attachments
"; } -$responses = elgg_extract('responses', $vars, false); -if ($responses === false) { - $responses = elgg_view('river/elements/responses', $vars); -} +$responses = elgg_view('river/elements/responses', $vars); if ($responses) { $responses = "
$responses
"; } diff --git a/views/default/river/elements/responses.php b/views/default/river/elements/responses.php index f1e79f131..8c5be6316 100644 --- a/views/default/river/elements/responses.php +++ b/views/default/river/elements/responses.php @@ -1,8 +1,18 @@ getObjectEntity(); diff --git a/views/default/river/elements/summary.php b/views/default/river/elements/summary.php index eee8754e2..4d80c29a6 100644 --- a/views/default/river/elements/summary.php +++ b/views/default/river/elements/summary.php @@ -1,4 +1,9 @@