<?php /** * My Profile Page * * @package Tutor\Templates * @subpackage Dashboard * @author Themeum <support@themeum.com> * @link https://themeum.com * @since 1.4.3 */ $uid = get_current_user_id(); $user = get_userdata( $uid ); $profile_settings_link = tutor_utils()->get_tutor_dashboard_page_permalink( 'settings' ); $rdate = $user->user_registered; $fname = $user->first_name; $lname = $user->last_name; $uname = $user->user_login; $email = $user->user_email; $phone = get_user_meta( $uid, 'phone_number', true ); $job = nl2br( wp_strip_all_tags( get_user_meta( $uid, '_tutor_profile_job_title', true ) ) ); $bio = get_user_meta( $uid, '_tutor_profile_bio', true ); $profile_data = array( array( __( 'Registration Date', 'tutor' ), ( $rdate ? tutor_i18n_get_formated_date( tutor_utils()->get_local_time_from_unix( $rdate ) ) : '' ) ), array( __( 'First Name', 'tutor' ), ( $fname ? $fname : esc_html( '-' ) ) ), array( __( 'Last Name', 'tutor' ), ( $lname ? $lname : __( '-' ) ) ), array( __( 'Username', 'tutor' ), $uname ), array( __( 'Email', 'tutor' ), $email ), array( __( 'Phone Number', 'tutor' ), ( $phone ? $phone : '-' ) ), array( __( 'Skill/Occupation', 'tutor' ), ( $job ? $job : '-' ) ), array( __( 'Biography', 'tutor' ), $bio ? $bio : '-' ), ); ?> <div class="tutor-fs-5 tutor-fw-medium tutor-color-black tutor-mb-24"><?php esc_html_e( 'My Profile', 'tutor' ); ?></div> <div class="tutor-dashboard-content-inner tutor-dashboard-profile-data"> <?php foreach ( $profile_data as $key => $data ) : ?> <div class="tutor-row tutor-mb-24"> <div class="tutor-col-12 tutor-col-sm-5 tutor-col-lg-3"> <span class="tutor-fs-6 tutor-color-secondary"><?php echo esc_html( $data[0] ); ?></span> </div> <div class="tutor-col-12 tutor-col-sm-7 tutor-col-lg-9"> <?php echo 'Biography' === $data[0] ? '<span class="tutor-fs-6 tutor-color-secondary">' . wp_kses_post( wpautop( $data[1] ) ) . '</span>' : '<span class="tutor-fs-6 tutor-fw-medium tutor-color-black">' . esc_html( $data[1] ) . '</span>'; ?> </div> </div> <?php endforeach; ?> </div>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
announcements | Folder | 0755 |
|
|
assignments | Folder | 0755 |
|
|
elements | Folder | 0755 |
|
|
enrolled-courses | Folder | 0755 |
|
|
instructor | Folder | 0755 |
|
|
my-courses | Folder | 0755 |
|
|
my-quiz-attempts | Folder | 0755 |
|
|
notifications | Folder | 0755 |
|
|
question-answer | Folder | 0755 |
|
|
quiz-attempts | Folder | 0755 |
|
|
reviews | Folder | 0755 |
|
|
settings | Folder | 0755 |
|
|
withdraw-method-fields | Folder | 0755 |
|
|
announcements.php | File | 4.33 KB | 0644 |
|
assignments.php | File | 4.98 KB | 0644 |
|
create-course.php | File | 644 B | 0644 |
|
dashboard.php | File | 16.61 KB | 0644 |
|
enrolled-courses.php | File | 4.32 KB | 0644 |
|
index.php | File | 459 B | 0644 |
|
logged-in.php | File | 261 B | 0644 |
|
my-courses.php | File | 13.89 KB | 0644 |
|
my-profile.php | File | 2.07 KB | 0644 |
|
my-quiz-attempts.php | File | 1.79 KB | 0644 |
|
purchase_history.php | File | 10.45 KB | 0644 |
|
question-answer.php | File | 4.59 KB | 0644 |
|
quiz-attempts.php | File | 1.95 KB | 0644 |
|
registration.php | File | 6.16 KB | 0644 |
|
reviews.php | File | 3.84 KB | 0644 |
|
settings.php | File | 775 B | 0644 |
|
wishlist.php | File | 2.02 KB | 0644 |
|
withdraw.php | File | 13.21 KB | 0644 |
|