diff options
Diffstat (limited to 'views/default/account/login_dropdown.php')
-rw-r--r-- | views/default/account/login_dropdown.php | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/views/default/account/login_dropdown.php b/views/default/account/login_dropdown.php deleted file mode 100644 index dc124f4e8..000000000 --- a/views/default/account/login_dropdown.php +++ /dev/null @@ -1,52 +0,0 @@ -<?php -/** - * Elgg drop-down login form - * - */ - -if (isloggedin()) { - return true; -} - -$form_body = elgg_view('account/forms/login'); -$form_body .= "<input type='hidden' name='returntoreferer' value='true' />"; - -$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-dropdown"> - <div id="signin-button" class="signin-button"> - <a href="<?php echo $CONFIG->url; ?>pg/login" class="signin"><span><?php echo elgg_echo('login') ?></span></a> - </div> - <fieldset id="signin-menu"> - <?php echo elgg_view('input/form', array('body' => $form_body, 'action' => "{$login_url}action/login")); ?> - </fieldset> -</div> - -<script type="text/javascript"> -$(document).ready(function() { - - $(".signin").click(function(e) { - e.preventDefault(); - $("fieldset#signin-menu").toggle(); - $(".signin").toggleClass("menu-open"); - $('.login-textarea.name').focus(); - }); - - $("fieldset#signin-menu").mouseup(function() { - return false - }); - - $(document).mouseup(function(e) { - if($(e.target).parent("a.signin").length==0) { - $(".signin").removeClass("menu-open"); - $("fieldset#signin-menu").hide(); - } - }); - -}); -</script>
\ No newline at end of file |