Advertisement
jemohb

REG FORM

Oct 30th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.63 KB | None | 0 0
  1. <?php
  2. /**
  3. * User registration page content
  4.  
  5. */
  6.  
  7. global $wp_version;
  8. ?>
  9.  
  10. <form action="<?php echo appthemes_get_registration_url( 'login_post' ); ?>" method="post" class="login-form register-form custom" name="registerform" id="login-form">
  11.  
  12. <fieldset>
  13.  
  14. <div class="row">
  15. <div class="large-6 columns form-field">
  16. <label><?php _e( 'Username:', APP_TD ); ?></label>
  17. <input tabindex="1" type="text" class="text required" name="user_login" id="user_login" value="<?php if ( isset( $_POST['user_login'] ) ) echo esc_attr( stripslashes( $_POST['user_login'] ) ); ?>" />
  18. </div>
  19.  
  20. <div class="large-6 columns form-field"></div>
  21.  
  22. <div class="large-6 columns form-field">
  23. <label><?php _e( 'Email:', APP_TD ); ?></label>
  24. <input tabindex="2" type="email" class="text required email" name="user_email" id="user_email" value="<?php if ( isset( $_POST['user_email'] ) ) echo esc_attr( stripslashes( $_POST['user_email'] ) ); ?>" />
  25. </div>
  26. </div>
  27.  
  28. <?php if ( $wp_version < 4.3 ) : ?>
  29.  
  30. <div class="row">
  31. <div class="large-6 columns form-field">
  32. <label><?php _e( 'Password:', APP_TD ); ?></label>
  33. <input tabindex="3" type="password" class="text required" name="pass1" id="pass1" value="" autocomplete="off" />
  34. </div>
  35.  
  36. <div class="large-6 columns form-field">
  37. <label><?php _e( 'Password Again:', APP_TD ); ?></label>
  38. <input tabindex="4" type="password" class="text required" name="pass2" id="pass2" value="" autocomplete="off" />
  39. </div>
  40. </div>
  41.  
  42. <?php else : ?>
  43.  
  44. <div class="row user-pass1-wrap manage-password">
  45. <div class="large-6 columns form-field">
  46. <label for="pass1"><?php _e( 'Password:', APP_TD ); ?></label>
  47.  
  48. <?php $initial_password = isset( $_POST['pass1'] ) ? stripslashes( $_POST['pass1'] ) : wp_generate_password( 18 ); ?>
  49.  
  50. <input tabindex="3" type="password" id="pass1" name="pass1" class="text required" autocomplete="off" data-reveal="1" data-pw="<?php echo esc_attr( $initial_password ); ?>" aria-describedby="pass-strength-result" />
  51. <input type="text" style="display:none" name="pass2" id="pass2" autocomplete="off" />
  52. </div>
  53.  
  54. <div class="large-6 columns form-field">
  55. <button type="button" class="button secondary small wp-hide-pw hide-if-no-js" data-start-masked="<?php echo (int) isset( $_POST['pass1'] ); ?>" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password', APP_TD ); ?>">
  56. <span class="dashicons dashicons-hidden"></span>
  57. <span class="text"><?php _e( 'Hide', APP_TD ); ?></span>
  58. </button>
  59. </div>
  60. </div>
  61.  
  62. <?php endif; ?>
  63.  
  64. <div class="row">
  65. <div class="large-6 columns form-field">
  66. <div id="pass-strength-result" class="hide-if-no-js"><?php _e( 'Strength indicator', APP_TD ); ?></div>
  67. <p class="description indicator-hint"><?php _e( 'Should be at least seven characters long.', APP_TD ); ?></p>
  68. </div>
  69. </div>
  70.  
  71. <div class="row">
  72. <div class="large-6 columns form-field user-role-type">
  73. <label><?php _e( 'Role:', APP_TD ); ?></label>
  74. <select name="role">
  75. <option value="<?php echo esc_attr( HRB_ROLE_EMPLOYER ); ?>"><?php _e( 'Employer', APP_TD ); ?></option>
  76.  
  77. </select>
  78.  
  79. </div>
  80. </div>
  81.  
  82. <?php do_action( 'register_form' ); ?>
  83.  
  84. <div class="form-field">
  85. <?php echo HRB_Login_Registration::redirect_field(); ?>
  86. <input tabindex="30" type="submit" class="btn reg" id="register" name="register" value="<?php esc_attr_e( 'Register', APP_TD ); ?>" />
  87. </div>
  88.  
  89. </fieldset>
  90.  
  91. </form>
  92.  
  93. <!-- autofocus the field -->
  94. <script type="text/javascript">try{document.getElementById('user_login').focus();}catch(e){}</script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement