aboutsummaryrefslogtreecommitdiff
path: root/views/default/layout/elements/comments.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/layout/elements/comments.php')
-rw-r--r--views/default/layout/elements/comments.php30
1 files changed, 0 insertions, 30 deletions
diff --git a/views/default/layout/elements/comments.php b/views/default/layout/elements/comments.php
deleted file mode 100644
index c27a146ab..000000000
--- a/views/default/layout/elements/comments.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-/**
- * List comments with optional add form
- *
- * @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_extract('show_add_form', $vars, true);
-
-$id = '';
-if (isset($vars['id'])) {
- $id = "id =\"{$vars['id']}\"";
-}
-
-echo "<div $id class=\"elgg-comments\">";
-
-$options = array(
- 'guid' => $vars['entity']->getGUID(),
- 'annotation_name' => 'generic_comment'
-);
-echo elgg_list_annotations($options);
-
-if ($show_add_form) {
- $form_vars = array('name' => 'elgg_add_comment');
- echo elgg_view_form('comments/add', $form_vars, $vars);
-}
-
-echo '</div>';