diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-03 01:41:18 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-03 01:41:18 +0000 |
commit | 608647dcf59c60e55d86a69e39e2626e6f1eb6bc (patch) | |
tree | 0902b73d513ac13a3a57d69c73d7d55477d7471b /mod/groups/views/default/discussion | |
parent | 8f484535ba505b12d2d4ccdaf30686c375035108 (diff) | |
download | elgg-608647dcf59c60e55d86a69e39e2626e6f1eb6bc.tar.gz elgg-608647dcf59c60e55d86a69e39e2626e6f1eb6bc.tar.bz2 |
Refs #2679 - returning to a separate annotation for discussion forum replies. For those using the latest out of svn you can update with this script: https://gist.github.com/852092
git-svn-id: http://code.elgg.org/elgg/trunk@8570 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/views/default/discussion')
-rw-r--r-- | mod/groups/views/default/discussion/replies.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/mod/groups/views/default/discussion/replies.php b/mod/groups/views/default/discussion/replies.php new file mode 100644 index 000000000..2bfb6f0cd --- /dev/null +++ b/mod/groups/views/default/discussion/replies.php @@ -0,0 +1,28 @@ +<?php +/** + * List replies with optional add form + * + * @uses $vars['entity'] ElggEntity + * @uses $vars['show_add_form'] Display add form or not + */ + +$show_add_form = elgg_extract('show_add_form', $vars, true); + +echo '<div id="group-replies" class="mtl">'; + +$options = array( + 'guid' => $vars['entity']->getGUID(), + 'annotation_name' => 'group_topic_post', +); +$html = elgg_list_annotations($options); +if ($html) { + echo '<h3>' . elgg_echo('group:replies') . '</h3>'; + echo $html; +} + +if ($show_add_form) { + $form_vars = array('class' => 'mtm'); + echo elgg_view_form('discussion/reply/save', $form_vars, $vars); +} + +echo '</div>'; |