diff options
Diffstat (limited to 'views/default/comments')
| -rw-r--r-- | views/default/comments/latest.php | 17 | ||||
| -rw-r--r-- | views/default/comments/list.php | 20 |
2 files changed, 0 insertions, 37 deletions
diff --git a/views/default/comments/latest.php b/views/default/comments/latest.php deleted file mode 100644 index c38b1f5c4..000000000 --- a/views/default/comments/latest.php +++ /dev/null @@ -1,17 +0,0 @@ -<?php -/** - * Latest comments on an entity - * - * @uses $vars['comments'] Array of comment objects - */ - -if (isset($vars['comments'])) { - echo '<ul class="elgg-latest-comments elgg-list">'; - foreach ($vars['comments'] as $comment) { - $html = elgg_view_annotation($comment, false); - if ($html) { - echo "<li>$html</li>"; - } - } - echo '</ul>'; -}
\ No newline at end of file diff --git a/views/default/comments/list.php b/views/default/comments/list.php deleted file mode 100644 index 6dbe51483..000000000 --- a/views/default/comments/list.php +++ /dev/null @@ -1,20 +0,0 @@ -<?php -/** - * List comments with optional add form - * - * @uses $vars['entity'] ElggEntity - * @uses $vars['show_add_form'] Display add form or not - */ - -$show_add_form = elgg_get_array_value('show_add_form', $vars, true); - -echo '<div class="elgg-comments">'; - -echo list_annotations($vars['entity']->getGUID(), 'generic_comment'); - -if ($show_add_form) { - $form_vars = array('name' => 'elgg_add_comment'); - echo elgg_view_form('comments/add', $form_vars, $vars); -} - -echo '</div>'; |
