Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 107

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 234

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 235

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 236

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 237

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 238

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 239
* @link https://themeum.com * @since 1.0.0 */ use TUTOR\Input; use Tutor\Models\CourseModel; // Get the accessed user data. $user_name = sanitize_text_field( get_query_var( 'tutor_profile_username' ) ); $get_user = tutor_utils()->get_user_by_login( $user_name ); // Show not found page if user not exists. if ( ! is_object( $get_user ) || ! property_exists( $get_user, 'ID' ) ) { wp_safe_redirect( get_home_url() . '/404' ); exit; } // Prepare meta data to render the page based on user and view type. $user_id = $get_user->ID; $is_instructor = Input::has( 'view' ) ? 'instructor' === Input::get( 'view' ) : tutor_utils()->is_instructor( $user_id, true ); $layout_key = $is_instructor ? 'public_profile_layout' : 'student_public_profile_layout'; $profile_layout = tutor_utils()->get_option( $layout_key, 'private' ); $user_type = $is_instructor ? 'instructor' : 'student'; if ( 'private' === $profile_layout ) { // Disable profile access then. wp_safe_redirect( get_home_url() ); exit; } // Prepare social media URLs od the user. $tutor_user_social_icons = tutor_utils()->tutor_user_social_icons(); foreach ( $tutor_user_social_icons as $key => $social_icon ) { $url = get_user_meta( $user_id, $key, true ); $tutor_user_social_icons[ $key ]['url'] = $url; } tutor_utils()->tutor_custom_header(); ?> get_instructor_ratings( $user_id ); ?>
star_rating_generator( $instructor_rating->rating_avg ); ?> rating_avg, 2 ) ); ?> (rating_count, 2 ) ); ?>)
array( 'class' => true ), 'span' => array( 'class' => true ), 'i' => array( 'class' => true ), ); // Social media content. ob_start(); foreach ( $tutor_user_social_icons as $key => $social_icon ) { $url = $social_icon['url']; echo ! empty( $url ) ? '' : ''; } $social_media = ob_get_clean(); $allowed_html_for_social = array( 'a' => array( 'href' => true, 'class' => true, 'target' => true, 'rel' => true, 'title' => true, ), ); ?>
>

display_name ); ?>

get_total_students_by_instructor( $user_id ); ?> 1 ? esc_html_e( 'Courses', 'tutor' ) : esc_html_e( 'Course', 'tutor' ); ?> 1 ? esc_html_e( 'Students', 'tutor' ) : esc_html_e( 'Student', 'tutor' ); ?> get_enrolled_courses_by_user( $user_id ); $enrol_count = is_object( $enrolled_course ) ? $enrolled_course->found_posts : 0; $complete_count = tutor_utils()->get_completed_courses_ids_by_user( $user_id ); $complete_count = $complete_count ? count( $complete_count ) : 0; ?> 1 ? esc_html_e( 'Courses Enrolled', 'tutor' ) : esc_html_e( 'Course Enrolled', 'tutor' ); ?> 1 ? esc_html_e( 'Courses Completed', 'tutor' ) : esc_html_e( 'Course Completed', 'tutor' ); ?>
tutor_custom_footer(); /** * If user not logged in load tutor login modal. * It will appear on enroll btn click. * * @since 2.1.3 */ if ( ! is_user_logged_in() ) { $login_modal = tutor()->path . '/views/modal/login.php'; if ( file_exists( $login_modal ) ) { tutor_load_template_from_custom_path( $login_modal ); } }