aboutsummaryrefslogtreecommitdiff
path: root/views/default/river/elements/body.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-06-25 11:56:10 -0400
committercash <cash.costello@gmail.com>2011-06-25 11:56:10 -0400
commit8a6aca077a81b6cd654c1944b0a5e2498b1cc655 (patch)
treef529ff8dc1c4c799d25bb3064e91f1368931bc8f /views/default/river/elements/body.php
parentdbf3edd887ee26b85d609481ea9ee247f3d46ac3 (diff)
downloadelgg-8a6aca077a81b6cd654c1944b0a5e2498b1cc655.tar.gz
elgg-8a6aca077a81b6cd654c1944b0a5e2498b1cc655.tar.bz2
added documentation to new river views and improved handling of responses
Diffstat (limited to 'views/default/river/elements/body.php')
-rw-r--r--views/default/river/elements/body.php11
1 files changed, 6 insertions, 5 deletions
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 = "<div class=\"elgg-river-attachments\">$attachments</div>";
}
-$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 = "<div class=\"elgg-river-responses\">$responses</div>";
}