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.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 / registration.php
tutor / templates / dashboard Last commit date
announcements 4 years ago assignments 4 years ago elements 4 years ago enrolled-courses 4 years ago instructor 3 years ago my-courses 4 years ago my-quiz-attempts 4 years ago notifications 4 years ago question-answer 4 years ago quiz-attempts 4 years ago reviews 4 years ago settings 3 years ago withdraw-method-fields 4 years ago announcements.php 4 years ago assignments.php 4 years ago create-course.php 3 years ago dashboard.php 3 years ago enrolled-courses.php 4 years ago index.php 4 years ago logged-in.php 4 years ago my-courses.php 4 years ago my-profile.php 4 years ago my-quiz-attempts.php 4 years ago purchase_history.php 4 years ago question-answer.php 4 years ago quiz-attempts.php 4 years ago registration.php 4 years ago reviews.php 4 years ago settings.php 4 years ago wishlist.php 4 years ago withdraw.php 3 years ago
registration.php
146 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 <?php
11 $args = array(
12 'image_path' => tutor()->url.'assets/images/construction.png',
13 'title' => __('Oooh! Access Denied', 'tutor'),
14 'description' => __('You do not have access to this area of the application. Please refer to your system administrator.', 'tutor'),
15 'button' => array(
16 'text' => __('Go to Home', 'tutor'),
17 'url' => get_home_url(),
18 'class' => 'tutor-btn'
19 )
20 );
21 tutor_load_template('feature_disabled', $args);
22 ?>
23 <?php else: ?>
24
25 <?php do_action('tutor_before_student_reg_form');?>
26
27 <form method="post" enctype="multipart/form-data" id="tutor-registration-from">
28 <input type="hidden" name="tutor_course_enroll_attempt" value="<?php echo isset( $_GET['enrol_course_id'] ) ? (int)$_GET['enrol_course_id'] : '';?>">
29 <?php do_action('tutor_student_reg_form_start');?>
30
31 <?php wp_nonce_field( tutor()->nonce_action, tutor()->nonce ); ?>
32 <input type="hidden" value="tutor_register_student" name="tutor_action"/>
33
34 <?php
35
36 $errors = apply_filters('tutor_student_register_validation_errors', array());
37 if (is_array($errors) && count($errors)){
38 echo '<div class="tutor-alert-warning tutor-mb-12"><ul class="tutor-required-fields">';
39 foreach ($errors as $error_key => $error_value){
40 echo "<li>{$error_value}</li>";
41 }
42 echo '</ul></div>';
43 }
44 ?>
45
46 <div class="tutor-form-row">
47 <div class="tutor-form-col-6">
48 <div class="tutor-form-group">
49 <label>
50 <?php _e('First Name', 'tutor'); ?>
51 </label>
52
53 <input type="text" name="first_name" value="<?php esc_attr_e(tutor_utils()->input_old('first_name')) ; ?>" placeholder="<?php _e('First Name', 'tutor'); ?>" required autocomplete="given-name">
54 </div>
55 </div>
56
57 <div class="tutor-form-col-6">
58 <div class="tutor-form-group">
59 <label>
60 <?php _e('Last Name', 'tutor'); ?>
61 </label>
62
63 <input type="text" name="last_name" value="<?php esc_attr_e(tutor_utils()->input_old('last_name')); ?>" placeholder="<?php _e('Last Name', 'tutor'); ?>" required autocomplete="family-name">
64 </div>
65 </div>
66
67 </div>
68
69 <div class="tutor-form-row">
70 <div class="tutor-form-col-6">
71 <div class="tutor-form-group">
72 <label>
73 <?php _e('User Name', 'tutor'); ?>
74 </label>
75
76 <input type="text" name="user_login" class="tutor_user_name" value="<?php esc_attr_e(tutor_utils()->input_old('user_login')); ?>" placeholder="<?php _e('User Name', 'tutor'); ?>" required autocomplete="username">
77 </div>
78 </div>
79
80 <div class="tutor-form-col-6">
81 <div class="tutor-form-group">
82 <label>
83 <?php _e('E-Mail', 'tutor'); ?>
84 </label>
85
86 <input type="text" name="email" value="<?php esc_attr_e(tutor_utils()->input_old('email')); ?>" placeholder="<?php _e('E-Mail', 'tutor'); ?>" required autocomplete="email">
87 </div>
88 </div>
89
90 </div>
91
92 <div class="tutor-form-row">
93 <div class="tutor-form-col-6">
94 <div class="tutor-form-group">
95 <label>
96 <?php _e('Password', 'tutor'); ?>
97 </label>
98
99 <input type="password" name="password" value="<?php esc_attr_e(tutor_utils()->input_old('password')); ?>" placeholder="<?php _e('Password', 'tutor'); ?>" required autocomplete="new-password">
100 </div>
101 </div>
102
103 <div class="tutor-form-col-6">
104 <div class="tutor-form-group">
105 <label>
106 <?php _e('Password confirmation', 'tutor'); ?>
107 </label>
108
109 <input type="password" name="password_confirmation" value="<?php esc_attr_e(tutor_utils()->input_old('password_confirmation')); ?>" placeholder="<?php _e('Password Confirmation', 'tutor'); ?>" required autocomplete="new-password">
110 </div>
111 </div>
112 </div>
113
114
115 <div class="tutor-form-row">
116 <div class="tutor-form-col-12">
117 <div class="tutor-form-group">
118 <?php
119 //providing register_form hook
120 do_action('tutor_student_reg_form_middle');
121 do_action('register_form');
122 ?>
123 </div>
124 </div>
125 </div>
126
127 <?php do_action('tutor_student_reg_form_end');?>
128
129 <?php
130 $tutor_toc_page_link = tutor_utils()->get_toc_page_link();
131 ?>
132
133 <?php if( null !== $tutor_toc_page_link ) : ?>
134 <div class="tutor-mb-24">
135 <?php _e( 'By signing up, I agree with the website\'s', 'tutor' ) ?> <a target="_blank" href="<?php echo $tutor_toc_page_link?>" title="<?php _e('Terms and Conditions', 'tutor'); ?>"><?php _e('Terms and Conditions', 'tutor'); ?></a>
136 </div>
137 <?php endif; ?>
138
139 <div>
140 <button type="submit" name="tutor_register_student_btn" value="register" class="tutor-btn tutor-btn-primary"><?php _e('Register', 'tutor'); ?></button>
141 </div>
142
143 </form>
144 <?php do_action('tutor_after_student_reg_form');?>
145 <?php endif; ?>
146