blob: d6037557d2db12c9be2e45d3fec5f8f18f3e0660 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<?php
/**
* Elgg comments add on river form
* @uses $vars['entity']
*/
if (isset($vars['entity']) && isloggedin()) {
$form_body = "<div class='river-comment_form hidden'>";
$form_body .= elgg_view('input/text',array(
'internalname' => 'generic_comment',
'value' => 'Add a comment...',
'js' => "onfocus=\"if (this.value=='Add a comment...') { this.value='' };\" onblur=\"if (this.value=='') { this.value='Add a comment...' }\""
));
$form_body .= elgg_view('input/hidden', array('internalname' => 'entity_guid', 'value' => $vars['entity']->getGUID()));
$form_body .= elgg_view('input/submit', array('value' => elgg_echo("Comment")));
$form_body .= "</div>";
echo elgg_view('input/form', array('body' => $form_body, 'action' => "action/comments/add"));
}
|