Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
login.php
Go to the documentation of this file.
1 <?php
8 ?>
9 
10 <div>
11  <label><?php echo elgg_echo('loginusername'); ?>
12  <?php
13  echo elgg_view('input/text', array(
14  'name' => 'username',
15  'autofocus' => true,
16  'required' => true
17  ));
18  ?>
19  </label>
20 </div>
21 <div>
22  <label><?php echo elgg_echo('password'); ?>
23  <?php
24  echo elgg_view('input/password', array(
25  'name' => 'password',
26  'required' => true
27  ));
28  ?>
29  </label>
30 </div>
31 
32 <?php echo elgg_view('login/extend', $vars); ?>
33 
34 <div class="elgg-foot">
35  <label class="mtm float-alt">
36  <input type="checkbox" name="persistent" value="true" />
37  <?php echo elgg_echo('user:persistent'); ?>
38  </label>
39 
40  <?php
41  echo elgg_view('input/submit', array('value' => elgg_echo('login')));
42 
43  if (isset($vars['returntoreferer'])) {
44  echo elgg_view('input/hidden', array('name' => 'returntoreferer', 'value' => 'true'));
45  }
46 
47  echo elgg_view_menu('login', array(
48  'sort_by' => 'priority',
49  'class' => 'elgg-menu-general elgg-menu-hz mtm',
50  ));
51  ?>
52 </div>
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
$site name
$vars['entity']
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:342
elgg_view_menu($menu, array $vars=array())
Render a menu.
Definition: views.php:745
elgg river item input[type=text]