<?php
/**
 * This is the page users will see logged out.
 * You can edit this, but for upgrade safety you should copy and modify this file into your template folder.
 * The location from within your template folder is plugins/login-with-ajax/ (create these directories if they don't exist)
 */

    if( $is_widget ){
        // echo $before_widget . $before_title . '<span id="LoginWithAjax_Title">' . __('Log In') . '</span>' . $after_title;
    }
    ?>
    
    <div id="LoginWithAjax" class="default">
    
            <form name="LoginWithAjax_Form" id="LoginWithAjax_Form" class="standard-form" action="<?php echo $this->url_login; ?>" method="post">
                
                <div class="login-fields">
                    
                       <input type="text"      name="log" id="lwa_user_login" value="" placeholder="<?php _e( 'Usuario','buddypress' ) ?>" autocomplete="off" />
                       <input type="password"  name="pwd" id="lwa_user_pass"  value="" placeholder="<?php _e( 'Contrase&ntilde;a', 'buddypress' ) ?>" class="input"  />
                       
                       <input type="submit" value="<?php _e('Iniciar Sesión','buddypress'); ?>" class="getin" id="entrar" />
                       
                </div>
                
                <p class="p_ironlostpwd">
                    <a id="LoginWithAjax_Links_Remember" href="<?php echo site_url('kronet-login.php?action=lostpassword', 'login') ?>" title="<?php _e('Olvidaste tu contrase&ntilde;a?', 'buddypress') ?>">
                        <?php _e('Olvidaste tu contrase&ntilde;a?', 'buddypress') ?>
                    </a>
                </p>
                
            </form>
            
        <span id="LoginWithAjax_Status" style="margin-top: 46px; float: right;clear: both;margin-left: 677px; display:none;"></span>
        
        <input type="hidden" name="redirect_to" value="https://<?php echo $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] ?>" />
        <input type="hidden" name="testcookie"  value="1" />
        <input type="hidden" name="lwa_profile_link" value="<?php echo $lwa_data['profile_link'] ?>" />
        
        <form name="LoginWithAjax_Remember" class="standard-form" id="LoginWithAjax_Remember" action="<?php echo $this->url_remember ?>" method="post" style="display:none;">
            <?php
            $msg = __("Usuario o email", 'buddypress');
            ?>
            <div class="iron_forgot_form">
            
                <span id="LoginWithAjax_Status"></span>
                
                <div class="label-remember">
                    <label for="lwa_user_remember">
                        <?php echo __("Recordar Contrase&ntilde;a", 'buddypress'); ?>
                    </label>
                    
                    <input type="text" name="user_login" id="lwa_user_remember" value="" placeholder="<?php echo $msg ?>" autocomplete="off" />
                </div>
                        
                <a href="#" id="LoginWithAjax_Links_Remember_Cancel"><?php _e('Cancelar','buddypress'); ?></a>
                
                <input type="submit" value="<?php echo __('Recordar', 'buddypress'); ?>" class="getin" />
                <input type="hidden" value="remember" name="login-with-ajax" />
            </div>
            
        </form>
        
    </div>
    
<?php
    if( $is_widget ){
        echo $after_widget;
    }
?>