diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-09 03:17:43 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-09 03:17:43 +0000 |
commit | 0181f2cbe5210a0c1ff7798596cf45632996a5c3 (patch) | |
tree | 8abc95284c4eefcc04b6318d6d3e4229b4804fad /views/default/account/login_box.php | |
parent | 49e478da9d5540da798a7d497615f0d2903c8e4a (diff) | |
download | elgg-0181f2cbe5210a0c1ff7798596cf45632996a5c3.tar.gz elgg-0181f2cbe5210a0c1ff7798596cf45632996a5c3.tar.bz2 |
Refs #2506 reorged the login box views - css still needs to be cleaned up
git-svn-id: http://code.elgg.org/elgg/trunk@7271 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/account/login_box.php')
-rw-r--r-- | views/default/account/login_box.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/views/default/account/login_box.php b/views/default/account/login_box.php new file mode 100644 index 000000000..0f06720f3 --- /dev/null +++ b/views/default/account/login_box.php @@ -0,0 +1,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", elgg_get_site_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> |