announcements
5 years ago
assignments
5 years ago
earning
5 years ago
enrolled-courses
5 years ago
instructor
5 years ago
my-quiz-attempts
5 years ago
notifications
5 years ago
question-answer
5 years ago
quiz-attempts
5 years ago
reviews
5 years ago
settings
5 years ago
withdraw-method-fields
5 years ago
announcements.php
5 years ago
assignments.php
5 years ago
create-course.php
5 years ago
dashboard.php
5 years ago
earning.php
5 years ago
enrolled-courses.php
5 years ago
index.php
5 years ago
logged-in.php
5 years ago
my-courses.php
5 years ago
my-profile.php
5 years ago
my-quiz-attempts.php
5 years ago
purchase_history.php
5 years ago
question-answer.php
5 years ago
quiz-attempts.php
5 years ago
registration.php
5 years ago
reviews.php
5 years ago
settings.php
5 years ago
wishlist.php
5 years ago
withdraw.php
5 years ago
my-profile.php
87 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><?php echo $fname ? $fname : esc_html('________'); ?> </p> |
| 38 | </div> |
| 39 | </div> |
| 40 | <div class="tutor-dashboard-profile-item"> |
| 41 | <div class="heading"> |
| 42 | <span><?php _e('Last Name', 'tutor'); ?></span> |
| 43 | </div> |
| 44 | <div class="content"> |
| 45 | <p><?php echo $lname ? $lname : __('________'); ?> </p> |
| 46 | </div> |
| 47 | </div> |
| 48 | <div class="tutor-dashboard-profile-item"> |
| 49 | <div class="heading"> |
| 50 | <span><?php _e('Username', 'tutor'); ?></span> |
| 51 | </div> |
| 52 | <div class="content"> |
| 53 | <p><?php echo $uname; ?> </p> |
| 54 | </div> |
| 55 | </div> |
| 56 | <div class="tutor-dashboard-profile-item"> |
| 57 | <div class="heading"> |
| 58 | <span><?php _e('Email', 'tutor'); ?></span> |
| 59 | </div> |
| 60 | <div class="content"> |
| 61 | <p><?php echo $email; ?> </p> |
| 62 | </div> |
| 63 | </div> |
| 64 | <div class="tutor-dashboard-profile-item"> |
| 65 | <div class="heading"> |
| 66 | <span><?php _e('Phone Number', 'tutor'); ?></span> |
| 67 | </div> |
| 68 | <div class="content"> |
| 69 | <p><?php echo $phone ? $phone : "________"; ?> </p> |
| 70 | </div> |
| 71 | </div> |
| 72 | |
| 73 | <div class="tutor-dashboard-profile-item"> |
| 74 | <div class="heading"> |
| 75 | <span><?php _e('Bio', 'tutor'); ?></span> |
| 76 | </div> |
| 77 | <div class="content"> |
| 78 | <p><?php echo $bio ? $bio : '________'; ?> </p> |
| 79 | </div> |
| 80 | </div> |
| 81 | |
| 82 | |
| 83 | </div> |
| 84 | |
| 85 | </div> |
| 86 | |
| 87 |