blob: 743294dcc9ca1b215e1886b6787f15ab1ee8cfb3 (
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
|
<?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,
));
}
?>
<textarea id="thewire-textarea" name="body" class="mtm"></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>
|