aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-24 13:52:42 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-24 13:52:42 +0000
commitf6045914d7488c43cd7761ddaded55b3791ae950 (patch)
tree858af954355662be850e921b8b9695bf5c3866d8 /views
parentc7e2ad1a41eec3a4edc201fb62aa74fe0a0afa66 (diff)
downloadelgg-f6045914d7488c43cd7761ddaded55b3791ae950.tar.gz
elgg-f6045914d7488c43cd7761ddaded55b3791ae950.tar.bz2
supporting id for comments for in page links
git-svn-id: http://code.elgg.org/elgg/trunk@7719 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views')
-rw-r--r--views/default/layout/elements/comments.php8
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');