aboutsummaryrefslogtreecommitdiff
path: root/views/default/account/login_box.php
blob: eb37d7554721b08ea522a71ead595bc271fc46d4 (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
<?php
/**
 * Elgg login box
 *
 * @package Elgg
 * @subpackage Core
 */

$form_body = elgg_view('account/forms/login');

$login_url = elgg_get_site_url();
if ((isset($CONFIG->https_login)) && ($CONFIG->https_login)) {
	$login_url = str_replace("http:", "https:", $login_url);
}
?>

<div id="login">
<h2><?php echo elgg_echo('login'); ?></h2>
	<?php
		echo elgg_view('input/form', array('body' => $form_body, 'action' => "{$login_url}action/login"));
	?>
</div>
<script type="text/javascript">
	$(document).ready(function() { $('input[name=username]').focus(); });
</script>