diff options
Diffstat (limited to 'views/default/layout/elements/comments.php')
-rw-r--r-- | views/default/layout/elements/comments.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/views/default/layout/elements/comments.php b/views/default/layout/elements/comments.php index 6dbe51483..ca86bed2d 100644 --- a/views/default/layout/elements/comments.php +++ b/views/default/layout/elements/comments.php @@ -4,11 +4,17 @@ * * @uses $vars['entity'] ElggEntity * @uses $vars['show_add_form'] Display add form or not + * @uses $vars['id'] Optional id for the div */ $show_add_form = elgg_get_array_value('show_add_form', $vars, true); -echo '<div class="elgg-comments">'; +$id = ''; +if (isset($vars['id'])) { + $id = "id =\"{$vars['id']}\""; +} + +echo "<div $id class=\"elgg-comments\">"; echo list_annotations($vars['entity']->getGUID(), 'generic_comment'); |