aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/views/default/forms
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-06 01:39:23 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-06 01:39:23 +0000
commit1d59e5fc4bcc10151831456436019aef90de2bd3 (patch)
tree096ab8fc2387d57b49a9c8bd65ac2581da068d7c /mod/groups/views/default/forms
parent8ca2f72d09e99c372ea21a4fe4112da6c4a1312c (diff)
downloadelgg-1d59e5fc4bcc10151831456436019aef90de2bd3.tar.gz
elgg-1d59e5fc4bcc10151831456436019aef90de2bd3.tar.bz2
Refs #2679 can comment on discussion forums in river now
git-svn-id: http://code.elgg.org/elgg/trunk@8610 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/views/default/forms')
-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(),
));
}