Elgg  Version 1.9
register.php
Go to the documentation of this file.
1 <?php
13 
14 if (elgg_is_sticky_form('register')) {
15  extract(elgg_get_sticky_values('register'));
16  elgg_clear_sticky_form('register');
17 }
18 
19 ?>
20 <div class="mtm">
21  <label><?php echo elgg_echo('name'); ?></label><br />
22  <?php
23  echo elgg_view('input/text', array(
24  'name' => 'name',
25  'value' => $name,
26  'autofocus' => true,
27  ));
28  ?>
29 </div>
30 <div>
31  <label><?php echo elgg_echo('email'); ?></label><br />
32  <?php
33  echo elgg_view('input/text', array(
34  'name' => 'email',
35  'value' => $email,
36  ));
37  ?>
38 </div>
39 <div>
40  <label><?php echo elgg_echo('username'); ?></label><br />
41  <?php
42  echo elgg_view('input/text', array(
43  'name' => 'username',
44  'value' => $username,
45  ));
46  ?>
47 </div>
48 <div>
49  <label><?php echo elgg_echo('password'); ?></label><br />
50  <?php
51  echo elgg_view('input/password', array(
52  'name' => 'password',
53  'value' => $password,
54  ));
55  ?>
56 </div>
57 <div>
58  <label><?php echo elgg_echo('passwordagain'); ?></label><br />
59  <?php
60  echo elgg_view('input/password', array(
61  'name' => 'password2',
62  'value' => $password2,
63  ));
64  ?>
65 </div>
66 
67 <?php
68 // view to extend to add more fields to the registration form
69 echo elgg_view('register/extend', $vars);
70 
71 // Add captcha hook
72 echo elgg_view('input/captcha', $vars);
73 
74 echo '<div class="elgg-foot">';
75 echo elgg_view('input/hidden', array('name' => 'friend_guid', 'value' => $vars['friend_guid']));
76 echo elgg_view('input/hidden', array('name' => 'invitecode', 'value' => $vars['invitecode']));
77 echo elgg_view('input/submit', array('name' => 'submit', 'value' => elgg_echo('register')));
78 echo '</div>';
elgg_is_sticky_form($form_name)
Has this form been made sticky?
Definition: input.php:186
$password2
Definition: register.php:14
get_input($variable, $default=null, $filter_result=true)
Get some input from variables passed submitted through GET or POST.
Definition: input.php:27
elgg_clear_sticky_form($form_name)
Clear the sticky form cache.
Definition: input.php:171
$name
Definition: register.php:16
$email
Definition: register.php:15
fieldset div
Definition: admin.php:462
$password
Definition: register.php:13
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg echo
Translates a string.
Definition: languages.js:43
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition: views.php:354
$username
Definition: register.php:12
label
Definition: admin.php:452
elgg_get_sticky_values($form_name, $filter_result=true)
Get all the values in a sticky form in an array.
Definition: input.php:228
if(file_exists($welcome)) $vars
Definition: upgrade.php:93