announcements
1 year ago
assignments
8 months ago
elements
1 year ago
enrolled-courses
3 years ago
instructor
2 years ago
my-courses
1 year ago
my-quiz-attempts
3 years ago
notifications
3 years ago
question-answer
1 year ago
quiz-attempts
3 years ago
reviews
3 years ago
settings
1 year ago
withdraw-method-fields
3 years ago
announcements.php
1 year ago
assignments.php
10 months ago
create-course.php
1 year ago
dashboard.php
8 months ago
enrolled-courses.php
8 months ago
index.php
3 years ago
logged-in.php
3 years ago
my-courses.php
8 months ago
my-profile.php
9 months ago
my-quiz-attempts.php
3 years ago
purchase_history.php
10 months ago
question-answer.php
11 months ago
quiz-attempts.php
1 year ago
registration.php
2 years ago
reviews.php
3 years ago
settings.php
1 year ago
wishlist.php
1 year ago
withdraw.php
1 year ago
registration.php
176 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Tutor registration template |
| 4 | * |
| 5 | * @package Tutor\Templates |
| 6 | * @subpackage Dashboard |
| 7 | * @author Themeum <support@themeum.com> |
| 8 | * @link https://themeum.com |
| 9 | * @since 1.4.3 |
| 10 | */ |
| 11 | |
| 12 | ?> |
| 13 | |
| 14 | <?php if ( ! get_option( 'users_can_register', false ) ) : ?> |
| 15 | <?php |
| 16 | $args = array( |
| 17 | 'image_path' => tutor()->url . 'assets/images/construction.png', |
| 18 | 'title' => __( 'Oooh! Access Denied', 'tutor' ), |
| 19 | 'description' => __( 'You do not have access to this area of the application. Please refer to your system administrator.', 'tutor' ), |
| 20 | 'button' => array( |
| 21 | 'text' => __( 'Go to Home', 'tutor' ), |
| 22 | 'url' => get_home_url(), |
| 23 | 'class' => 'tutor-btn', |
| 24 | ), |
| 25 | ); |
| 26 | tutor_load_template( 'feature_disabled', $args ); |
| 27 | ?> |
| 28 | <?php else : ?> |
| 29 | |
| 30 | <div id="tutor-registration-wrap"> |
| 31 | |
| 32 | <?php do_action( 'tutor_before_student_reg_form' ); ?> |
| 33 | |
| 34 | <form method="post" enctype="multipart/form-data" id="tutor-registration-form"> |
| 35 | <input type="hidden" name="tutor_course_enroll_attempt" value="<?php echo isset( $_GET['enrol_course_id'] ) ? (int) $_GET['enrol_course_id'] : ''; ?>"> |
| 36 | <?php do_action( 'tutor_student_reg_form_start' ); ?> |
| 37 | |
| 38 | <?php wp_nonce_field( tutor()->nonce_action, tutor()->nonce ); ?> |
| 39 | <input type="hidden" value="tutor_register_student" name="tutor_action"/> |
| 40 | |
| 41 | <?php |
| 42 | $validation_errors = apply_filters( 'tutor_student_register_validation_errors', array() ); |
| 43 | if ( is_array( $validation_errors ) && count( $validation_errors ) ) : |
| 44 | ?> |
| 45 | <div class="tutor-alert tutor-warning tutor-mb-12"> |
| 46 | <ul class="tutor-required-fields"> |
| 47 | <?php foreach ( $validation_errors as $validation_error ) : ?> |
| 48 | <li> |
| 49 | <?php echo esc_html( $validation_error ); ?> |
| 50 | </li> |
| 51 | <?php endforeach; ?> |
| 52 | </ul> |
| 53 | </div> |
| 54 | <?php endif; ?> |
| 55 | |
| 56 | <div class="tutor-form-row"> |
| 57 | <div class="tutor-form-col-6"> |
| 58 | <div class="tutor-form-group"> |
| 59 | <label> |
| 60 | <?php esc_html_e( 'First Name', 'tutor' ); ?> |
| 61 | </label> |
| 62 | |
| 63 | <input type="text" name="first_name" value="<?php echo esc_attr( tutor_utils()->input_old( 'first_name' ) ); ?>" placeholder="<?php esc_attr_e( 'First Name', 'tutor' ); ?>" required autocomplete="given-name"> |
| 64 | </div> |
| 65 | </div> |
| 66 | |
| 67 | <div class="tutor-form-col-6"> |
| 68 | <div class="tutor-form-group"> |
| 69 | <label> |
| 70 | <?php esc_html_e( 'Last Name', 'tutor' ); ?> |
| 71 | </label> |
| 72 | |
| 73 | <input type="text" name="last_name" value="<?php echo esc_attr( tutor_utils()->input_old( 'last_name' ) ); ?>" placeholder="<?php esc_attr_e( 'Last Name', 'tutor' ); ?>" required autocomplete="family-name"> |
| 74 | </div> |
| 75 | </div> |
| 76 | |
| 77 | </div> |
| 78 | |
| 79 | <div class="tutor-form-row"> |
| 80 | <div class="tutor-form-col-6"> |
| 81 | <div class="tutor-form-group"> |
| 82 | <label> |
| 83 | <?php esc_html_e( 'User Name', 'tutor' ); ?> |
| 84 | </label> |
| 85 | |
| 86 | <input type="text" name="user_login" class="tutor_user_name" value="<?php echo esc_attr( tutor_utils()->input_old( 'user_login' ) ); ?>" placeholder="<?php esc_html_e( 'User Name', 'tutor' ); ?>" required autocomplete="username"> |
| 87 | </div> |
| 88 | </div> |
| 89 | |
| 90 | <div class="tutor-form-col-6"> |
| 91 | <div class="tutor-form-group"> |
| 92 | <label> |
| 93 | <?php esc_html_e( 'E-Mail', 'tutor' ); ?> |
| 94 | </label> |
| 95 | |
| 96 | <input type="text" name="email" value="<?php echo esc_attr( tutor_utils()->input_old( 'email' ) ); ?>" placeholder="<?php esc_html_e( 'E-Mail', 'tutor' ); ?>" required autocomplete="email"> |
| 97 | </div> |
| 98 | </div> |
| 99 | |
| 100 | </div> |
| 101 | |
| 102 | <div class="tutor-form-row"> |
| 103 | <div class="tutor-form-col-6"> |
| 104 | <div class="tutor-form-group"> |
| 105 | <div class="tutor-password-strength-checker"> |
| 106 | <div class="tutor-password-field"> |
| 107 | <label> |
| 108 | <?php esc_html_e( 'Password', 'tutor' ); ?> |
| 109 | </label> |
| 110 | |
| 111 | <input class="password-checker" id="tutor-new-password" type="password" name="password" value="<?php echo esc_attr( tutor_utils()->input_old( 'password' ) ); ?>" placeholder="<?php esc_html_e( 'Password', 'tutor' ); ?>" required autocomplete="new-password" style="margin-bottom: 0;"> |
| 112 | <span class="show-hide-btn"></span> |
| 113 | </div> |
| 114 | |
| 115 | <div class="tutor-password-strength-hint"> |
| 116 | <div class="indicator"> |
| 117 | <span class="weak"></span> |
| 118 | <span class="medium"></span> |
| 119 | <span class="strong"></span> |
| 120 | </div> |
| 121 | <div class="text tutor-fs-7 tutor-color-muted"></div> |
| 122 | </div> |
| 123 | </div> |
| 124 | </div> |
| 125 | </div> |
| 126 | |
| 127 | <div class="tutor-form-col-6"> |
| 128 | <div class="tutor-form-group"> |
| 129 | <label> |
| 130 | <?php esc_html_e( 'Password confirmation', 'tutor' ); ?> |
| 131 | </label> |
| 132 | |
| 133 | <div class="tutor-form-wrap"> |
| 134 | <span class="tutor-validation-icon tutor-icon-mark tutor-color-success tutor-form-icon tutor-form-icon-reverse" style="display: none;"></span> |
| 135 | <input type="password" name="password_confirmation" value="<?php echo esc_attr( tutor_utils()->input_old( 'password_confirmation' ) ); ?>" placeholder="<?php esc_html_e( 'Password Confirmation', 'tutor' ); ?>" required autocomplete="new-password" style="margin-bottom: 0;"> |
| 136 | </div> |
| 137 | </div> |
| 138 | </div> |
| 139 | </div> |
| 140 | |
| 141 | |
| 142 | <div class="tutor-form-row"> |
| 143 | <div class="tutor-form-col-12"> |
| 144 | <div class="tutor-form-group"> |
| 145 | <?php |
| 146 | // providing register_form hook. |
| 147 | do_action( 'tutor_student_reg_form_middle' ); |
| 148 | do_action( 'register_form' ); |
| 149 | ?> |
| 150 | </div> |
| 151 | </div> |
| 152 | </div> |
| 153 | |
| 154 | <?php do_action( 'tutor_student_reg_form_end' ); ?> |
| 155 | |
| 156 | <?php |
| 157 | $tutor_toc_page_link = tutor_utils()->get_toc_page_link(); |
| 158 | ?> |
| 159 | <?php if ( null !== $tutor_toc_page_link ) : ?> |
| 160 | <div class="tutor-mb-24"> |
| 161 | <?php esc_html_e( 'By signing up, I agree with the website\'s', 'tutor' ); ?> <a target="_blank" href="<?php echo esc_url( $tutor_toc_page_link ); ?>" title="<?php esc_html_e( 'Terms and Conditions', 'tutor' ); ?>"><?php esc_html_e( 'Terms and Conditions', 'tutor' ); ?></a> |
| 162 | </div> |
| 163 | <?php endif; ?> |
| 164 | |
| 165 | <div> |
| 166 | <button type="submit" name="tutor_register_student_btn" value="register" class="tutor-btn tutor-btn-primary tutor-btn-block"><?php esc_html_e( 'Register', 'tutor' ); ?></button> |
| 167 | </div> |
| 168 | <?php do_action( 'tutor_after_register_button' ); ?> |
| 169 | |
| 170 | </form> |
| 171 | <?php do_action( 'tutor_after_registration_form_wrap' ); ?> |
| 172 | |
| 173 | </div> |
| 174 | <?php do_action( 'tutor_after_student_reg_form' ); ?> |
| 175 | <?php endif; ?> |
| 176 |