aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-12 14:52:09 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-12 14:52:09 +0000
commit538da56bb1d9acf787362fe0f34747118b00b261 (patch)
tree4b5351b5d4d1ba641dd3b9145332f2b881bf9db9 /views
parent0d35e43b9125063af76ef34caabac9dfc95eae01 (diff)
downloadelgg-538da56bb1d9acf787362fe0f34747118b00b261.tar.gz
elgg-538da56bb1d9acf787362fe0f34747118b00b261.tar.bz2
Refs #3085 added $vars to elgg_view_comments()
git-svn-id: http://code.elgg.org/elgg/trunk@8658 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views')
-rw-r--r--views/default/page/elements/comments.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/views/default/page/elements/comments.php b/views/default/page/elements/comments.php
index 3d44f5785..1b0082ee4 100644
--- a/views/default/page/elements/comments.php
+++ b/views/default/page/elements/comments.php
@@ -5,6 +5,7 @@
* @uses $vars['entity'] ElggEntity
* @uses $vars['show_add_form'] Display add form or not
* @uses $vars['id'] Optional id for the div
+ * @uses $vars['class'] Optional additional class for the div
*/
$show_add_form = elgg_extract('show_add_form', $vars, true);
@@ -14,10 +15,15 @@ if (isset($vars['id'])) {
$id = "id =\"{$vars['id']}\"";
}
+$class = 'elgg-comments';
+if (isset($vars['class'])) {
+ $class = "$class {$vars['class']}";
+}
+
// work around for deprecation code in elgg_view()
unset($vars['internalid']);
-echo "<div $id class=\"elgg-comments\">";
+echo "<div $id class=\"$class\">";
$options = array(
'guid' => $vars['entity']->getGUID(),
@@ -28,7 +34,6 @@ if ($html) {
echo '<h3>Comments</h3>';
echo $html;
}
-//echo strlen($html);
if ($show_add_form) {
$form_vars = array('name' => 'elgg_add_comment');