Elgg  Version 2.3
login.php
Go to the documentation of this file.
1 <?php
9  '#type' => 'text',
10 
11  'name' => 'username',
12  'autofocus' => true,
13  'required' => true,
14  '#label' => elgg_echo('loginusername'),
15 ]);
16 
18  '#type' => 'password',
19  'name' => 'password',
20  'required' => true,
21  '#label' => elgg_echo('password'),
22 ]);
23 
24 echo elgg_view('login/extend', $vars);
25 
26 if (isset($vars['returntoreferer'])) {
28  '#type' => 'hidden',
29  'name' => 'returntoreferer',
30  'value' => 'true'
31  ]);
32 }
33 
34 ob_start();
35 ?>
36 <div class="elgg-foot">
37  <label class="mtm float-alt">
38  <input type="checkbox" name="persistent" value="true" />
39  <?php echo elgg_echo('user:persistent'); ?>
40  </label>
41 
42  <?php
43  echo elgg_view('input/submit', array('value' => elgg_echo('login')));
44 
45  echo elgg_view_menu('login', array(
46  'sort_by' => 'priority',
47  'class' => 'elgg-menu-general elgg-menu-hz mtm',
48  ));
49  ?>
50 </div>
51 <?php
52 $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:1424
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
$footer
Definition: login.php:52
$vars['entity']
elgg_set_form_footer($footer= '')
Sets form footer and defers its rendering until the form view and extensions have been rendered...
Definition: views.php:1358
list style type
Definition: admin.css.php:808
label
Definition: admin.css.php:464
fieldset div
Definition: admin.css.php:485
elgg echo
Translates a string.
Definition: languages.js:48
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:336
elgg_view_menu($menu, array $vars=array())
Render a menu.
Definition: views.php:775
$site name
elgg table input[type=checkbox]
Definition: admin.css.php:404