[ Index ]

PHP Cross Reference of BBPress

title

Body

[close]

/src/templates/default/bbpress/ -> form-user-register.php (source)

   1  <?php
   2  
   3  /**
   4   * User Registration Form
   5   *
   6   * @package bbPress
   7   * @subpackage Theme
   8   */
   9  
  10  // Exit if accessed directly
  11  defined( 'ABSPATH' ) || exit;
  12  
  13  ?>
  14  
  15  <form method="post" action="<?php bbp_wp_login_action( array( 'context' => 'login_post' ) ); ?>" class="bbp-login-form">
  16      <fieldset class="bbp-form">
  17          <legend><?php esc_html_e( 'Create an Account', 'bbpress' ); ?></legend>
  18  
  19          <?php do_action( 'bbp_template_before_register_fields' ); ?>
  20  
  21          <div class="bbp-template-notice">
  22              <ul>
  23                  <li><?php esc_html_e( 'Your username must be unique, and cannot be changed later.',                        'bbpress' ); ?></li>
  24                  <li><?php esc_html_e( 'We use your email address to email you a secure password and verify your account.', 'bbpress' ); ?></li>
  25              </ul>
  26          </div>
  27  
  28          <div class="bbp-username">
  29              <label for="user_login"><?php esc_html_e( 'Username', 'bbpress' ); ?>: </label>
  30              <input type="text" name="user_login" value="<?php bbp_sanitize_val( 'user_login' ); ?>" size="20" id="user_login" maxlength="100" autocomplete="off" />
  31          </div>
  32  
  33          <div class="bbp-email">
  34              <label for="user_email"><?php esc_html_e( 'Email', 'bbpress' ); ?>: </label>
  35              <input type="text" name="user_email" value="<?php bbp_sanitize_val( 'user_email' ); ?>" size="20" id="user_email" maxlength="100" autocomplete="off" />
  36          </div>
  37  
  38          <?php do_action( 'register_form' ); ?>
  39  
  40          <div class="bbp-submit-wrapper">
  41  
  42              <button type="submit" name="user-submit" class="button submit user-submit"><?php esc_html_e( 'Register', 'bbpress' ); ?></button>
  43  
  44              <?php bbp_user_register_fields(); ?>
  45  
  46          </div>
  47  
  48          <?php do_action( 'bbp_template_after_register_fields' ); ?>
  49  
  50      </fieldset>
  51  </form>


Generated: Fri Apr 26 01:01:04 2024 Cross-referenced by PHPXref 0.7.1