Advertisement
vongrebelmotion

Register Form

Jul 26th, 2017
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.44 KB | None | 0 0
  1. <?php
  2. /*
  3. If you would like to edit this file, copy it to your current theme's directory and edit it there.
  4. Theme My Login will always look in your theme's directory first, before using this default template.
  5. */
  6. ?>
  7. <div class="tml tml-register" id="theme-my-login<?php $template->the_instance(); ?>">
  8.     <?php $template->the_action_template_message( 'register' ); ?>
  9.     <?php $template->the_errors(); ?>
  10.     <form name="registerform" id="registerform<?php $template->the_instance(); ?>" action="<?php $template->the_action_url( 'register', 'login_post' ); ?>" method="post">
  11.         <?php if ( 'email' != $theme_my_login->get_option( 'login_type' ) ) : ?>
  12.         <p class="tml-user-login-wrap">
  13.             <label for="user_login<?php $template->the_instance(); ?>"><?php _e( 'Username', 'theme-my-login' ); ?></label>
  14.             <input type="text" name="user_login" id="user_login<?php $template->the_instance(); ?>" class="input" value="<?php $template->the_posted_value( 'user_login' ); ?>" size="20" />
  15.         </p>
  16.         <?php endif; ?>
  17. <p>
  18.     <label for="country<?php $template->the_instance(); ?>"><?php _e( 'Country', 'theme-my-login' ) ?></label>
  19.     <input type="text" name="country" id="country<?php $template->the_instance(); ?>" class="input" value="<?php $template->the_posted_value( 'country' ); ?>" size="20" tabindex="20" />
  20. </p>
  21.         <p class="tml-user-email-wrap">
  22.             <label for="user_email<?php $template->the_instance(); ?>"><?php _e( 'E-mail', 'theme-my-login' ); ?></label>
  23.             <input type="text" name="user_email" id="user_email<?php $template->the_instance(); ?>" class="input" value="<?php $template->the_posted_value( 'user_email' ); ?>" size="20" />
  24.         </p>
  25.  
  26.         <?php do_action( 'register_form' ); ?>
  27.  
  28.         <p class="tml-registration-confirmation" id="reg_passmail<?php $template->the_instance(); ?>"><?php echo apply_filters( 'tml_register_passmail_template_message', __( 'Registration confirmation will be e-mailed to you.', 'theme-my-login' ) ); ?></p>
  29.  
  30.         <p class="tml-submit-wrap">
  31.             <input type="submit" name="wp-submit" id="wp-submit<?php $template->the_instance(); ?>" value="<?php esc_attr_e( 'Register', 'theme-my-login' ); ?>" />
  32.             <input type="hidden" name="redirect_to" value="<?php $template->the_redirect_url( 'register' ); ?>" />
  33.             <input type="hidden" name="instance" value="<?php $template->the_instance(); ?>" />
  34.             <input type="hidden" name="action" value="register" />
  35.         </p>
  36.     </form>
  37.     <?php $template->the_action_links( array( 'register' => false ) ); ?>
  38. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement