diff options
Diffstat (limited to 'views/default/comments')
| -rw-r--r-- | views/default/comments/forms/edit.php | 20 | ||||
| -rw-r--r-- | views/default/comments/latest.php | 17 |
2 files changed, 0 insertions, 37 deletions
diff --git a/views/default/comments/forms/edit.php b/views/default/comments/forms/edit.php deleted file mode 100644 index 3c26bf7cc..000000000 --- a/views/default/comments/forms/edit.php +++ /dev/null @@ -1,20 +0,0 @@ -<?php -/** - * Elgg comments add form - * - * @package Elgg - * - * @uses $vars['entity'] - */ - - if (isset($vars['entity']) && isloggedin()) { - - $form_body = "<div class='comment margin-top'><p class='longtext_inputarea'><label>".elgg_echo("generic_comments:text")."</label>" . elgg_view('input/longtext',array('internalname' => 'generic_comment')) . "</p>"; - $form_body .= elgg_view('input/hidden', array('internalname' => 'entity_guid', 'value' => $vars['entity']->getGUID())); - $form_body .= elgg_view('input/submit', array('value' => elgg_echo("generic_comments:post"))) . "</div>"; - - echo elgg_view('input/form', array('body' => $form_body, 'action' => "action/comments/add")); - - } - -?>
\ No newline at end of file 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 |
