diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-06 02:10:40 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-06 02:10:40 +0000 |
commit | 99dc187e33a80a19c9120d4adb4e3dd323d8e090 (patch) | |
tree | 8634247d9d48399d6eaf8f91cad6b09101427a67 /views/default | |
parent | eb306be905c9fd78600841070d0796bd99ae7f73 (diff) | |
download | elgg-99dc187e33a80a19c9120d4adb4e3dd323d8e090.tar.gz elgg-99dc187e33a80a19c9120d4adb4e3dd323d8e090.tar.bz2 |
missed this file from previous comment commit
git-svn-id: http://code.elgg.org/elgg/trunk@7545 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/comments/list.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/views/default/comments/list.php b/views/default/comments/list.php new file mode 100644 index 000000000..6dbe51483 --- /dev/null +++ b/views/default/comments/list.php @@ -0,0 +1,20 @@ +<?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>'; |