announcements
4 years ago
assignments
4 years ago
earning
4 years ago
enrolled-courses
4 years ago
instructor
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
4 years ago
withdraw-method-fields
4 years ago
announcements.php
4 years ago
assignments.php
4 years ago
create-course.php
4 years ago
dashboard-menu.php
4 years ago
dashboard.php
4 years ago
earning.php
4 years ago
enrolled-courses.php
4 years ago
index.php
4 years ago
logged-in.php
5 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
4 years ago
my-profile.php
91 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @package TutorLMS/Templates |
| 4 | * @version 1.4.3 |
| 5 | */ |
| 6 | |
| 7 | |
| 8 | $uid = get_current_user_id(); |
| 9 | $user = get_userdata( $uid ); |
| 10 | |
| 11 | $profile_settings_link = tutor_utils()->get_tutor_dashboard_page_permalink( 'settings' ); |
| 12 | $rdate = date( 'D d M Y, h:i:s a', strtotime( $user->user_registered ) ); |
| 13 | $fname = $user->first_name; |
| 14 | $lname = $user->last_name; |
| 15 | $uname = $user->user_login; |
| 16 | $email = $user->user_email; |
| 17 | $phone = get_user_meta( $uid, 'phone_number', true ); |
| 18 | $bio = nl2br( strip_tags( get_user_meta( $uid, '_tutor_profile_bio', true ) ) ); |
| 19 | ?> |
| 20 | |
| 21 | <h3><?php _e( 'My Profile', 'tutor' ); ?></h3> |
| 22 | <div class="tutor-dashboard-content-inner"> |
| 23 | <div class="tutor-dashboard-profile"> |
| 24 | <div class="tutor-dashboard-profile-item"> |
| 25 | <div class="heading"> |
| 26 | <span><?php _e( 'Registration Date', 'tutor' ); ?></span> |
| 27 | </div> |
| 28 | <div class="content"> |
| 29 | <p><?php echo esc_html( $rdate ); ?> </p> |
| 30 | </div> |
| 31 | </div> |
| 32 | <div class="tutor-dashboard-profile-item"> |
| 33 | <div class="heading"> |
| 34 | <span><?php _e( 'First Name', 'tutor' ); ?></span> |
| 35 | </div> |
| 36 | <div class="content"> |
| 37 | <p> |
| 38 | <?php echo $fname ? esc_html( $fname ) : '________'; ?> |
| 39 | </p> |
| 40 | </div> |
| 41 | </div> |
| 42 | <div class="tutor-dashboard-profile-item"> |
| 43 | <div class="heading"> |
| 44 | <span><?php _e( 'Last Name', 'tutor' ); ?></span> |
| 45 | </div> |
| 46 | <div class="content"> |
| 47 | <p> |
| 48 | <?php echo $lname ? esc_html( $lname ) : '________'; ?> |
| 49 | </p> |
| 50 | </div> |
| 51 | </div> |
| 52 | <div class="tutor-dashboard-profile-item"> |
| 53 | <div class="heading"> |
| 54 | <span><?php _e( 'Username', 'tutor' ); ?></span> |
| 55 | </div> |
| 56 | <div class="content"> |
| 57 | <p><?php echo esc_html( $uname ); ?> </p> |
| 58 | </div> |
| 59 | </div> |
| 60 | <div class="tutor-dashboard-profile-item"> |
| 61 | <div class="heading"> |
| 62 | <span><?php _e( 'Email', 'tutor' ); ?></span> |
| 63 | </div> |
| 64 | <div class="content"> |
| 65 | <p><?php echo esc_html( $email ); ?> </p> |
| 66 | </div> |
| 67 | </div> |
| 68 | <div class="tutor-dashboard-profile-item"> |
| 69 | <div class="heading"> |
| 70 | <span><?php _e( 'Phone Number', 'tutor' ); ?></span> |
| 71 | </div> |
| 72 | <div class="content"> |
| 73 | <p><?php echo $phone ? esc_html( $phone ) : '________'; ?> </p> |
| 74 | </div> |
| 75 | </div> |
| 76 | |
| 77 | <div class="tutor-dashboard-profile-item"> |
| 78 | <div class="heading"> |
| 79 | <span><?php _e( 'Bio', 'tutor' ); ?></span> |
| 80 | </div> |
| 81 | <div class="content"> |
| 82 | <p><?php echo $bio ? esc_html( $bio ) : '________'; ?> </p> |
| 83 | </div> |
| 84 | </div> |
| 85 | |
| 86 | |
| 87 | </div> |
| 88 | |
| 89 | </div> |
| 90 | |
| 91 |