Elgg  Version 3.0
login.php
Go to the documentation of this file.
1 <?php
10  '#type' => 'text',
11 
12  'name' => 'username',
13  'autofocus' => true,
14  'required' => true,
15  '#label' => elgg_echo('loginusername'),
16 ]);
17 
19  '#type' => 'password',
20  'name' => 'password',
21  'required' => true,
22  '#label' => elgg_echo('password'),
23 ]);
24 
25 echo elgg_view('login/extend', $vars);
26 
27 if (isset($vars['returntoreferer'])) {
29  '#type' => 'hidden',
30  'name' => 'returntoreferer',
31  'value' => 'true'
32  ]);
33 }
34 
35 ob_start();
36 ?>
37  <div class="elgg-foot">
38  <div class="elgg-level">
39  <label class="float-alt">
40  <input type="checkbox" name="persistent" value="true"/>
41  <?php echo elgg_echo('user:persistent'); ?>
42  </label>
43 
44  <?php
45  echo elgg_view('input/submit', ['value' => elgg_echo('login')]);
46  ?>
47  </div>
48  <?php
49  echo elgg_view_menu('login');
50  ?>
51  </div>
52 <?php
53 $footer = ob_get_clean();
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1395
$footer
Definition: login.php:53
$data value
Definition: default.php:27
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg_set_form_footer($footer= '')
Sets form footer and defers its rendering until the form view and extensions have been rendered...
Definition: views.php:1331
elgg_view_menu($menu, array $vars=[])
Render a menu.
Definition: views.php:755
elgg echo
Translates a string.
Definition: languages.js:43
$site name
$data label
Definition: default.php:26
$vars['type']
Definition: save.php:11
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246