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