blob: b8f57fb593b514d48b4211b71f7447a01e5bffbe (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
<?php
/**
* OpenID register form body
*
* @uses $vars['openid_identifier']
* @uses $vars['username']
* @uses $vars['is_username_available']
* @uses $vars['is_username_valid']
* @uses $vars['email']
* @uses $vars['name']
*/
$username_label = '';
$username_input = elgg_view('input/text', array(
'name' => 'username',
'value' => $vars['username'],
));
$name_label = elgg_echo();
$name_input = elgg_view('input/text', array(
'name' => 'name',
'value' => $vars['name'],
));
$email_label = elgg_echo();
$email_input = elgg_view('input/email', array(
'name' => 'email',
'value' => $vars['email'],
));
$openid_input = elgg_view('input/hidden', array(
'name' => 'openid_identifier',
'value' => $vars['openid_identifier'],
));
$button = elgg_view('input/submit', array('value' => elgg_echo('save')));
echo <<<HTML
<div>
<label>$username_label</label>
$username_input
</div>
<div>
<label>$name_label</label>
$name_input
</div>
<div>
<label>$email_label</label>
$email_input
</div>
<div class="elgg-foot">
$openid_input
$button
</div>
HTML;
|