<?php /** * Settings meta box template * * @package Tutor\Views * @subpackage Tutor\MetaBox * @author Themeum <support@themeum.com> * @link https://themeum.com * @since 1.0.0 */ ?> <h2> <?php esc_html_e( 'Tutor Fields', 'tutor' ); ?> </h2> <?php /** * Enqueue Media Scripts */ wp_enqueue_media(); ?> <table class="form-table"> <?php do_action( 'tutor_backend_profile_fields_before' ); ?> <tr class="user-description-wrap"> <th><label for="description"><?php esc_html_e( 'Job Title', 'tutor' ); ?></label></th> <td> <input type="text" name="_tutor_profile_job_title" id="_tutor_profile_job_title" value="<?php echo esc_attr( get_user_meta( $user->ID, '_tutor_profile_job_title', true ) ); ?>" class="regular-text" /> </td> </tr> <tr class="user-description-wrap"> <th><label for="description"><?php esc_html_e( 'Profile Bio', 'tutor' ); ?></label></th> <td> <?php $profile_bio = get_user_meta( $user->ID, '_tutor_profile_bio', true ); wp_editor( $profile_bio, '_tutor_profile_bio', tutor_utils()->get_profile_bio_editor_config( '_tutor_profile_bio' ) ); ?> <p class="description"><?php esc_html_e( 'Write a little bit more about you, it will show publicly.', 'tutor' ); ?></p> </td> </tr> <tr class="user-description-wrap"> <th><label for="description"><?php esc_html_e( 'Profile Photo', 'tutor' ); ?></label></th> <td> <div class="tutor-video-poster-wrap"> <p class="video-poster-img"> <?php $user_profile_photo = get_user_meta( $user->ID, '_tutor_profile_photo', true ); if ( $user_profile_photo ) { echo '<img src="' . esc_url( wp_get_attachment_image_url( $user_profile_photo ) ) . '"/>'; } ?> </p> <input type="hidden" name="_tutor_profile_photo" value="<?php echo esc_attr( $user_profile_photo ); ?>"> <button type="button" class="tutor_video_poster_upload_btn button button-primary"><?php esc_html_e( 'Upload', 'tutor' ); ?></button> </div> <input type="hidden" name="tutor_action" value="tutor_profile_update_by_wp"> </td> </tr> <?php do_action( 'tutor_backend_profile_fields_after' ); ?> </table>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
course | Folder | 0755 |
|
|
course-add-edd-product-metabox.php | File | 451 B | 0644 |
|
course-add-product-metabox.php | File | 711 B | 0644 |
|
course-additional-data.php | File | 4.46 KB | 0644 |
|
course-contents.php | File | 8.99 KB | 0644 |
|
course-level-metabox.php | File | 923 B | 0644 |
|
course-topics.php | File | 5.39 KB | 0644 |
|
instructors-metabox.php | File | 2.65 KB | 0644 |
|
lesson-attachments-metabox.php | File | 910 B | 0644 |
|
lesson-metabox.php | File | 1.03 KB | 0644 |
|
product-selection.php | File | 3.85 KB | 0644 |
|
settings-tabs.php | File | 7.64 KB | 0644 |
|
user-profile-fields.php | File | 2.07 KB | 0644 |
|
video-metabox.php | File | 9.63 KB | 0644 |
|