blob: 8607b3662930b33a445dcf6131bb9998d01acfcc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
<?php
/**
* Wire add form body
*
* @uses $vars['post']
*/
elgg_load_js('elgg.thewire');
$post = elgg_extract('post', $vars);
$text = elgg_echo('post');
if ($post) {
$text = elgg_echo('thewire:reply');
}
if ($post) {
echo elgg_view('input/hidden', array(
'name' => 'parent_guid',
'value' => $post->guid,
));
}
echo elgg_view('input/plaintext', array(
'name' => 'body',
'class' => 'mtm',
'id' => 'thewire-textarea',
));
?>
<div id="thewire-characters-remaining">
<span>140</span> <?php echo elgg_echo('thewire:charleft'); ?>
</div>
<div class="elgg-foot mts">
<?php
echo elgg_view('input/submit', array(
'value' => $text,
'id' => 'thewire-submit-button',
));
?>
</div>
|