<div class="peepso">
  <div class="ps-page ps-page--register ps-page--register-recover">
    <h2><?php echo esc_attr__('Forgot Password', 'peepso-core'); ?></h2>
    <p><?php echo esc_attr__('Please enter the email address for your account. A verification code will be sent to you. Once you have received the verification code, you will be able to choose a new password for your account.', 'peepso-core'); ?></p>
    <?php do_action('peepso_forgot_password_info'); ?>
    <?php
    if (isset($error)) {
        PeepSoGeneral::get_instance()->show_error($error);
    }
    ?>
    <div class="psf-register psf-register--recover">
      <form id="recoverpasswordform" name="recoverpasswordform" action="<?php PeepSo::get_page('recover'); ?>?submit" method="post" class="ps-form ps-form--register ps-form--register-recover">
          <input type="hidden" name="task" value="-recover-password" />
          <input type="hidden" name="-form-id" value="<?php echo wp_create_nonce('peepso-recover-password-form'); ?>" />
          <div class="ps-form__grid">
              <div class="ps-form__row">
                  <label for="email" class="ps-form__label"><?php echo esc_attr__('Email Address:', 'peepso-core'); ?>
                      <span class="ps-form__required">&nbsp;*<span></span></span>
                  </label>
                  <div class="ps-form__field">
                      <input class="ps-input" type="email" name="email" placeholder="<?php echo esc_attr__('Email address', 'peepso-core'); ?>" />
                  </div>
              </div>
              <div class="ps-form__row ps-form__row--submit">
                <?php $prevUrl = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : PeepSo::get_page('activity'); ?>
                <a class="ps-btn" href="<?php echo $prevUrl; ?>"><?php echo esc_attr__('Back', 'peepso-core'); ?></a>
                <?php $recaptchaEnabled = PeepSo::get_option('site_registration_recaptcha_enable', 0); ?>
                <input type="submit" name="submit-recover"
                  class="ps-btn ps-btn--action <?php echo $recaptchaEnabled ? 'ps-js-recaptcha' : ''; ?>"
                  value="<?php echo esc_attr__('Submit', 'peepso-core'); ?>"
                  <?php echo $recaptchaEnabled ? 'disabled="disabled"' : '' ?> />
              </div>
          </div>
      </form>
    </div>
  </div>
</div>
