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.0 3.6.0 3.6.1 3.6.2 3.6.3 3.6.4 3.7.0 3.7.1 3.7.2 3.7.3 3.7.4 3.8.0 3.8.1 3.8.2 3.8.3 3.9.0 3.9.1 3.9.10 3.9.2 3.9.3 3.9.4 3.9.5 3.9.6 3.9.7 3.9.8 3.9.9
tutor / templates / dashboard / instructor / registration.php
tutor / templates / dashboard / instructor Last commit date
apply_for_instructor.php 4 years ago logged-in.php 4 years ago registration.php 4 years ago
registration.php
143 lines
1 <?php
2 /**
3 * @package TutorLMS/Templates
4 * @version 1.4.3
5 */
6
7 ?>
8
9 <?php if ( ! get_option( 'users_can_register', false ) ) : ?>
10
11 <?php
12 $args = array(
13 'image_path' => tutor()->url . 'assets/images/construction.png',
14 'title' => __( 'Oooh! Access Denied', 'tutor' ),
15 'description' => __( 'You do not have access to this area of the application. Please refer to your system administrator.', 'tutor' ),
16 'button' => array(
17 'text' => __( 'Go to Home', 'tutor' ),
18 'url' => get_home_url(),
19 'class' => 'tutor-button tutor-button-primary',
20 ),
21 );
22 tutor_load_template( 'feature_disabled', $args );
23 ?>
24
25 <?php else : ?>
26
27 <?php do_action( 'tutor_before_instructor_reg_form' ); ?>
28
29 <form method="post" enctype="multipart/form-data">
30
31 <?php do_action( 'tutor_instructor_reg_form_start' ); ?>
32
33 <?php wp_nonce_field( tutor()->nonce_action, tutor()->nonce ); ?>
34 <input type="hidden" value="tutor_register_instructor" name="tutor_action"/>
35
36 <?php
37 $errors = apply_filters( 'tutor_instructor_register_validation_errors', array() );
38 if ( is_array( $errors ) && count( $errors ) ) {
39 echo '<div class="tutor-alert-warning"><ul class="tutor-required-fields">';
40 foreach ( $errors as $error_key => $error_value ) {
41 echo '<li>' . $error_value . '</li>';
42 }
43 echo '</ul></div>';
44 }
45 ?>
46
47 <div class="tutor-form-row">
48 <div class="tutor-form-col-6">
49 <div class="tutor-form-group">
50 <label>
51 <?php _e( 'First Name', 'tutor' ); ?>
52 </label>
53
54 <input type="text" name="first_name" value="<?php echo esc_attr( tutor_utils()->input_old( 'first_name' ) ); ?>" placeholder="<?php _e( 'First Name', 'tutor' ); ?>" required autocomplete="given-name">
55 </div>
56 </div>
57
58 <div class="tutor-form-col-6">
59 <div class="tutor-form-group">
60 <label>
61 <?php _e( 'Last Name', 'tutor' ); ?>
62 </label>
63
64 <input type="text" name="last_name" value="<?php echo esc_attr( tutor_utils()->input_old( 'last_name' ) ); ?>" placeholder="<?php _e( 'Last Name', 'tutor' ); ?>" required autocomplete="family-name">
65 </div>
66 </div>
67
68
69 </div>
70
71 <div class="tutor-form-row">
72
73 <div class="tutor-form-col-6">
74 <div class="tutor-form-group">
75 <label>
76 <?php _e( 'User Name', 'tutor' ); ?>
77 </label>
78
79 <input type="text" name="user_login" class="tutor_user_name" value="<?php echo esc_attr( tutor_utils()->input_old( 'user_login' ) ); ?>" placeholder="<?php _e( 'User Name', 'tutor' ); ?>" required autocomplete="username">
80 </div>
81 </div>
82
83 <div class="tutor-form-col-6">
84 <div class="tutor-form-group">
85 <label>
86 <?php _e( 'E-Mail', 'tutor' ); ?>
87 </label>
88
89 <input type="text" name="email" value="<?php echo esc_attr( tutor_utils()->input_old( 'email' ) ); ?>" placeholder="<?php _e( 'E-Mail', 'tutor' ); ?>" required autocomplete="email">
90 </div>
91 </div>
92
93 </div>
94
95 <div class="tutor-form-row">
96 <div class="tutor-form-col-6">
97 <div class="tutor-form-group">
98 <label>
99 <?php _e( 'Password', 'tutor' ); ?>
100 </label>
101
102 <input type="password" name="password" value="<?php echo esc_attr( tutor_utils()->input_old( 'password' ) ); ?>" placeholder="<?php _e( 'Password', 'tutor' ); ?>" required autocomplete="new-password">
103 </div>
104 </div>
105
106 <div class="tutor-form-col-6">
107 <div class="tutor-form-group">
108 <label>
109 <?php _e( 'Password confirmation', 'tutor' ); ?>
110 </label>
111
112 <input type="password" name="password_confirmation" value="<?php echo esc_attr( tutor_utils()->input_old( 'password_confirmation' ) ); ?>" placeholder="<?php _e( 'Password Confirmation', 'tutor' ); ?>" required autocomplete="new-password">
113 </div>
114 </div>
115 </div>
116
117 <div class="tutor-form-row">
118 <div class="tutor-form-col-12">
119 <div class="tutor-form-group">
120 <?php
121 // providing register_form hook
122 do_action( 'tutor_instructor_reg_form_middle' );
123 do_action( 'register_form' );
124 ?>
125 </div>
126 </div>
127 </div>
128
129 <?php do_action( 'tutor_instructor_reg_form_end' ); ?>
130
131 <div class="tutor-form-row">
132 <div class="tutor-form-col-12">
133 <div class="tutor-form-group tutor-reg-form-btn-wrap">
134 <button type="submit" name="tutor_register_instructor_btn" value="register" class="tutor-button"><?php _e( 'Register as instructor', 'tutor' ); ?></button>
135 </div>
136 </div>
137 </div>
138
139 </form>
140
141 <?php do_action( 'tutor_after_instructor_reg_form' ); ?>
142 <?php endif; ?>
143