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.2 3.5.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 3 years ago logged-in.php 3 years ago registration.php 3 years ago
registration.php
154 lines
1 <?php
2 /**
3 * Registration template
4 *
5 * @package Tutor\Templates
6 * @subpackage Dashboard\Instructor
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
16 <?php
17 $args = array(
18 'image_path' => tutor()->url . 'assets/images/construction.png',
19 'title' => __( 'Oooh! Access Denied', 'tutor' ),
20 'description' => __( 'You do not have access to this area of the application. Please refer to your system administrator.', 'tutor' ),
21 'button' => array(
22 'text' => __( 'Go to Home', 'tutor' ),
23 'url' => get_home_url(),
24 'class' => 'tutor-btn',
25 ),
26 );
27 tutor_load_template( 'feature_disabled', $args );
28 ?>
29
30 <?php else : ?>
31
32 <?php do_action( 'tutor_before_instructor_reg_form' ); ?>
33
34 <form method="post" enctype="multipart/form-data">
35
36 <?php do_action( 'tutor_instructor_reg_form_start' ); ?>
37
38 <?php wp_nonce_field( tutor()->nonce_action, tutor()->nonce ); ?>
39 <input type="hidden" value="tutor_register_instructor" name="tutor_action"/>
40
41 <?php
42 $errors = apply_filters( 'tutor_instructor_register_validation_errors', array() );//phpcs:ignore
43 if ( is_array( $errors ) && count( $errors ) ) {
44 echo '<div class="tutor-alert-warning"><ul class="tutor-required-fields">';
45 foreach ( $errors as $error_key => $error_value ) {
46 echo wp_kses( "<li>{$error_value}</li>", array( 'li' => array() ) );
47 }
48 echo '</ul></div>';
49 }
50 ?>
51
52 <div class="tutor-form-row">
53 <div class="tutor-form-col-6">
54 <div class="tutor-form-group">
55 <label>
56 <?php esc_html_e( 'First Name', 'tutor' ); ?>
57 </label>
58
59 <input type="text" name="first_name" value="<?php echo esc_attr( tutor_utils()->input_old( 'first_name' ) ); ?>" placeholder="<?php esc_html_e( 'First Name', 'tutor' ); ?>" required autocomplete="given-name">
60 </div>
61 </div>
62
63 <div class="tutor-form-col-6">
64 <div class="tutor-form-group">
65 <label>
66 <?php esc_html_e( 'Last Name', 'tutor' ); ?>
67 </label>
68
69 <input type="text" name="last_name" value="<?php echo esc_attr( tutor_utils()->input_old( 'last_name' ) ); ?>" placeholder="<?php esc_html_e( 'Last Name', 'tutor' ); ?>" required autocomplete="family-name">
70 </div>
71 </div>
72
73
74 </div>
75
76 <div class="tutor-form-row">
77
78 <div class="tutor-form-col-6">
79 <div class="tutor-form-group">
80 <label>
81 <?php esc_html_e( 'User Name', 'tutor' ); ?>
82 </label>
83
84 <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">
85 </div>
86 </div>
87
88 <div class="tutor-form-col-6">
89 <div class="tutor-form-group">
90 <label>
91 <?php esc_html_e( 'E-Mail', 'tutor' ); ?>
92 </label>
93
94 <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">
95 </div>
96 </div>
97
98 </div>
99
100 <div class="tutor-form-row">
101 <div class="tutor-form-col-6">
102 <div class="tutor-form-group">
103 <label>
104 <?php esc_html_e( 'Password', 'tutor' ); ?>
105 </label>
106
107 <input 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">
108 </div>
109 </div>
110
111 <div class="tutor-form-col-6">
112 <div class="tutor-form-group">
113 <label>
114 <?php esc_html_e( 'Password confirmation', 'tutor' ); ?>
115 </label>
116
117 <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">
118 </div>
119 </div>
120 </div>
121
122 <div class="tutor-form-row">
123 <div class="tutor-form-col-12">
124 <div class="tutor-form-group">
125 <?php
126 // Providing register_form hook.
127 do_action( 'tutor_instructor_reg_form_middle' );
128 do_action( 'register_form' );
129 ?>
130 </div>
131 </div>
132 </div>
133
134 <?php do_action( 'tutor_instructor_reg_form_end' ); ?>
135
136 <?php
137 $tutor_toc_page_link = tutor_utils()->get_toc_page_link();
138 ?>
139
140 <?php if ( null !== $tutor_toc_page_link ) : ?>
141 <div class="tutor-mb-24">
142 <?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_attr_e( 'Terms and Conditions', 'tutor' ); ?>"><?php esc_html_e( 'Terms and Conditions', 'tutor' ); ?></a>
143 </div>
144 <?php endif; ?>
145
146 <div>
147 <button type="submit" name="tutor_register_instructor_btn" value="register" class="tutor-btn tutor-btn-primary"><?php esc_html_e( 'Register as instructor', 'tutor' ); ?></button>
148 </div>
149
150 </form>
151
152 <?php do_action( 'tutor_after_instructor_reg_form' ); ?>
153 <?php endif; ?>
154