Exemplo n.º 1
0
global $typeform;
if (!$typeform || $typeform == 'sign') {
    $f_sign = 'style="display:block;"';
}
?>
<div class="form-tab-rcl" id="login-form-rcl" <?php 
echo $f_sign;
?>
>
    <h4 class="form-title"><?php 
_e('Authorization', 'wp-recall');
?>
</h4>

    <?php 
rcl_notice_form('login');
?>

    <form action="<?php 
rcl_form_action('login');
?>
" method="post">
        <div class="form-block-rcl">
            <label><?php 
_e('Login', 'wp-recall');
?>
 <span class="required">*</span></label>
            <div class="default-field">
                <span class="field-icon"><i class="fa fa-user"></i></span>
                <input required type="text" value="" name="user_login">
            </div>
<?php

global $typeform;
$f_reg = $typeform == 'register' ? 'style="display:block;"' : '';
?>
<div class="form-tab-rcl" id="register-form-rcl" <?php 
echo $f_reg;
?>
>
    <h4 class="form-title"><?php 
_e('Registration', 'wp-recall');
?>
</h4>

    <?php 
rcl_notice_form('register');
?>

    <form action="<?php 
rcl_form_action('register');
?>
" method="post" enctype="multipart/form-data">
        <div class="form-block-rcl">
            <label><?php 
_e('Login', 'wp-recall');
?>
 <span class="required">*</span></label>
            <div class="default-field">
                <span class="field-icon"><i class="fa fa-user"></i></span>
                <input required type="text" value="" name="user_login" id="login-user">
            </div>
<?php

global $typeform;
?>
<div class="form-tab-rcl" id="remember-form-rcl">
    <h4 class="form-title"><?php 
_e('Generation password', 'wp-recall');
?>
</h4>

    <?php 
rcl_notice_form('remember');
?>

    <?php 
if (!isset($_GET['success'])) {
    ?>
        <form action="<?php 
    echo esc_url(site_url('wp-login.php?action=lostpassword', 'login_post'));
    ?>
" method="post">
            <div class="form-block-rcl">
                <label><?php 
    _e('Username or e-mail', 'wp-recall');
    ?>
</label>
                <div class="default-field">
                    <span class="field-icon"><i class="fa fa-key"></i></span>
                    <input required type="text" value="" name="user_login">
                </div>
            </div>