aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/views/default/forms/discussion/reply
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups/views/default/forms/discussion/reply')
-rw-r--r--mod/groups/views/default/forms/discussion/reply/save.php15
1 files changed, 11 insertions, 4 deletions
diff --git a/mod/groups/views/default/forms/discussion/reply/save.php b/mod/groups/views/default/forms/discussion/reply/save.php
index 6281e941c..be258b8fe 100644
--- a/mod/groups/views/default/forms/discussion/reply/save.php
+++ b/mod/groups/views/default/forms/discussion/reply/save.php
@@ -2,21 +2,28 @@
/**
* Discussion topic reply form bofy
*
- * @uses $vars['entity']
+ * @uses $vars['entity'] A discussion topic object
+ * @uses $vars['inline'] Display a shortened form?
*/
if (isset($vars['entity']) && elgg_is_logged_in()) {
+ $inline = elgg_extract('inline', $vars, false);
+
+ if ($inline) {
+ echo elgg_view('input/text', array('name' => 'group_topic_post'));
+ echo elgg_view('input/submit', array('value' => elgg_echo('reply')));
+ } else {
?>
<div>
<label><?php echo elgg_echo("reply"); ?></label>
<?php echo elgg_view('input/longtext', array('name' => 'group_topic_post')); ?>
</div>
<?php
- echo elgg_view('input/submit', array('value' => elgg_echo('reply')));
-
+ echo elgg_view('input/submit', array('value' => elgg_echo('reply')));
+ }
echo elgg_view('input/hidden', array(
'name' => 'entity_guid',
- 'value' => $vars['entity']->getGUID()
+ 'value' => $vars['entity']->getGUID(),
));
}