[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-forums/bbpress/bb-templates/kakumei/ -> login.php (source)

   1  <?php bb_get_header(); ?>
   2  
   3  <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> &raquo; <?php _e('Log in'); ?></div>
   4  
   5  <h2 id="userlogin" role="main"><?php !empty( $user_login ) ? _e('Log in Failed') : _e('Log in') ; ?></h2>
   6  
   7  <form method="post" action="<?php bb_uri('bb-login.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_USER_FORMS); ?>">
   8  <fieldset>
   9  <table>
  10  <?php
  11      $user_login_error = $bb_login_error->get_error_message( 'user_login' );
  12      $user_email_error = $bb_login_error->get_error_message( 'user_email' );
  13      $user_password_error = $bb_login_error->get_error_message( 'password' );
  14  ?>
  15      <tr valign="top" class="form-field <?php if ( $user_login_error || $user_email_error ) echo ' form-invalid error'; ?>">
  16          <th scope="row">
  17              <label for="user_login"><?php _e('Username'); ?></label>
  18              <?php if ( $user_login_error ) echo "<em>$user_login_error</em>"; ?>
  19              <?php if ( $user_email_error ) echo "<em>$user_email_error</em>"; ?>
  20          </th>
  21          <td>
  22              <input name="log" id="user_login" type="text" value="<?php echo $user_login; ?>" />
  23          </td>
  24      </tr>
  25      <tr valign="top" class="form-field <?php if ( $user_password_error ) echo 'form-invalid error'; ?>">
  26          <th scope="row">
  27              <label for="password"><?php _e('Password'); ?></label>
  28              <?php if ( $user_password_error ) echo "<em>$user_password_error</em>"; ?>
  29          </th>
  30          <td>
  31              <input name="pwd" id="password" type="password" />
  32          </td>
  33      </tr>
  34  
  35      <tr valign="top" class="form-field">
  36          <th scope="row"><label for="remember"><?php _e('Remember me'); ?></label></th>
  37          <td><input name="rememberme" type="checkbox" id="remember" value="1"<?php echo $remember_checked; ?> /></td>
  38      </tr>
  39      <tr>
  40          <th scope="row">&nbsp;</th>
  41          <td>
  42              <input name="redirect_to" type="hidden" value="<?php echo $redirect_to; ?>" />
  43              <input type="submit" value="<?php echo esc_attr( !empty( $user_login ) ? __( 'Try Again &raquo;' ): __( 'Log in &raquo;' ) ); ?>" />
  44              <?php wp_referer_field(); ?>
  45          </td>
  46      </tr>
  47  </table>
  48  
  49  </fieldset>
  50  </form>
  51  
  52  <h2 id="passwordrecovery"><?php _e( 'Password Recovery' ); ?></h2>
  53  <form method="post" action="<?php bb_uri('bb-reset-password.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_USER_FORMS); ?>">
  54  <fieldset>
  55      <p><?php _e('To recover your password, enter your information below.'); ?></p>
  56      <table>
  57          <tr valign="top" class="form-field">
  58              <th scope="row">
  59                  <label for="user_login_reset_password"><?php _e( 'Username' ); ?></label>
  60              </th>
  61              <td>
  62                  <input name="user_login" id="user_login_reset_password" type="text" value="<?php echo $user_login; ?>" />
  63              </td>
  64          </tr>
  65          <tr valign="top">
  66              <th scope="row"></th>
  67              <td>
  68                  <input type="submit" value="<?php echo esc_attr__( 'Recover Password &raquo;' ); ?>" />
  69              </td>
  70          </tr>
  71      </table>
  72  </fieldset>
  73  </form>
  74  
  75  <?php bb_get_footer(); ?>


Generated: Thu Dec 7 01:01:35 2017 Cross-referenced by PHPXref 0.7.1