assignments
5 years ago
earning
5 years ago
enrolled-courses
5 years ago
instructor
5 years ago
my-quiz-attempts
5 years ago
notifications
5 years ago
question-answer
5 years ago
quiz-attempts
5 years ago
reviews
5 years ago
settings
5 years ago
withdraw-method-fields
5 years ago
assignments.php
5 years ago
create-course.php
5 years ago
dashboard.php
5 years ago
earning.php
5 years ago
enrolled-courses.php
5 years ago
index.php
5 years ago
logged-in.php
5 years ago
my-courses.php
5 years ago
my-profile.php
5 years ago
my-quiz-attempts.php
5 years ago
purchase_history.php
5 years ago
question-answer.php
5 years ago
quiz-attempts.php
5 years ago
registration.php
5 years ago
reviews.php
5 years ago
settings.php
5 years ago
wishlist.php
5 years ago
withdraw.php
5 years ago
registration.php
121 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @package TutorLMS/Templates |
| 4 | * @version 1.4.3 |
| 5 | */ |
| 6 | |
| 7 | ?> |
| 8 | <?php do_action('tutor_before_student_reg_form');?> |
| 9 | |
| 10 | <form method="post" enctype="multipart/form-data"> |
| 11 | |
| 12 | <?php do_action('tutor_student_reg_form_start');?> |
| 13 | |
| 14 | <?php wp_nonce_field( tutor()->nonce_action, tutor()->nonce ); ?> |
| 15 | <input type="hidden" value="tutor_register_student" name="tutor_action"/> |
| 16 | |
| 17 | <?php |
| 18 | |
| 19 | $errors = apply_filters('tutor_student_register_validation_errors', array()); |
| 20 | if (is_array($errors) && count($errors)){ |
| 21 | echo '<div class="tutor-alert-warning tutor-mb-10"><ul class="tutor-required-fields">'; |
| 22 | foreach ($errors as $error_key => $error_value){ |
| 23 | echo "<li>{$error_value}</li>"; |
| 24 | } |
| 25 | echo '</ul></div>'; |
| 26 | } |
| 27 | ?> |
| 28 | |
| 29 | <div class="tutor-form-row"> |
| 30 | <div class="tutor-form-col-6"> |
| 31 | <div class="tutor-form-group"> |
| 32 | <label> |
| 33 | <?php _e('First Name', 'tutor'); ?> |
| 34 | </label> |
| 35 | |
| 36 | <input type="text" name="first_name" value="<?php echo tutor_utils()->input_old('first_name'); ?>" placeholder="<?php _e('First Name', 'tutor'); ?>"> |
| 37 | </div> |
| 38 | </div> |
| 39 | |
| 40 | <div class="tutor-form-col-6"> |
| 41 | <div class="tutor-form-group"> |
| 42 | <label> |
| 43 | <?php _e('Last Name', 'tutor'); ?> |
| 44 | </label> |
| 45 | |
| 46 | <input type="text" name="last_name" value="<?php echo tutor_utils()->input_old('last_name'); ?>" placeholder="<?php _e('Last Name', 'tutor'); ?>"> |
| 47 | </div> |
| 48 | </div> |
| 49 | |
| 50 | </div> |
| 51 | |
| 52 | <div class="tutor-form-row"> |
| 53 | <div class="tutor-form-col-6"> |
| 54 | <div class="tutor-form-group"> |
| 55 | <label> |
| 56 | <?php _e('User Name', 'tutor'); ?> |
| 57 | </label> |
| 58 | |
| 59 | <input type="text" name="user_login" class="tutor_user_name" value="<?php echo tutor_utils()->input_old('user_login'); ?>" placeholder="<?php _e('User Name', 'tutor'); ?>"> |
| 60 | </div> |
| 61 | </div> |
| 62 | |
| 63 | <div class="tutor-form-col-6"> |
| 64 | <div class="tutor-form-group"> |
| 65 | <label> |
| 66 | <?php _e('E-Mail', 'tutor'); ?> |
| 67 | </label> |
| 68 | |
| 69 | <input type="text" name="email" value="<?php echo tutor_utils()->input_old('email'); ?>" placeholder="<?php _e('E-Mail', 'tutor'); ?>"> |
| 70 | </div> |
| 71 | </div> |
| 72 | |
| 73 | </div> |
| 74 | |
| 75 | <div class="tutor-form-row"> |
| 76 | <div class="tutor-form-col-6"> |
| 77 | <div class="tutor-form-group"> |
| 78 | <label> |
| 79 | <?php _e('Password', 'tutor'); ?> |
| 80 | </label> |
| 81 | |
| 82 | <input type="password" name="password" value="<?php echo tutor_utils()->input_old('password'); ?>" placeholder="<?php _e('Password', 'tutor'); ?>"> |
| 83 | </div> |
| 84 | </div> |
| 85 | |
| 86 | <div class="tutor-form-col-6"> |
| 87 | <div class="tutor-form-group"> |
| 88 | <label> |
| 89 | <?php _e('Password confirmation', 'tutor'); ?> |
| 90 | </label> |
| 91 | |
| 92 | <input type="password" name="password_confirmation" value="<?php echo tutor_utils()->input_old('password_confirmation'); ?>" placeholder="<?php _e('Password Confirmation', 'tutor'); ?>"> |
| 93 | </div> |
| 94 | </div> |
| 95 | </div> |
| 96 | |
| 97 | |
| 98 | <div class="tutor-form-row"> |
| 99 | <div class="tutor-form-col-12"> |
| 100 | <div class="tutor-form-group"> |
| 101 | <?php |
| 102 | //providing register_form hook |
| 103 | do_action('tutor_student_reg_form_middle'); |
| 104 | do_action('register_form'); |
| 105 | ?> |
| 106 | </div> |
| 107 | </div> |
| 108 | </div> |
| 109 | |
| 110 | <?php do_action('tutor_student_reg_form_end');?> |
| 111 | |
| 112 | <div class="tutor-form-row"> |
| 113 | <div class="tutor-form-col-12"> |
| 114 | <div class="tutor-form-group tutor-reg-form-btn-wrap"> |
| 115 | <button type="submit" name="tutor_register_student_btn" value="register" class="tutor-button"><?php _e('Register', 'tutor'); ?></button> |
| 116 | </div> |
| 117 | </div> |
| 118 | </div> |
| 119 | |
| 120 | </form> |
| 121 | <?php do_action('tutor_after_student_reg_form');?> |