request), '/profile/') !== false && function_exists('tutor') && $tutor_hide_profile_page_header == true ) { $classes[] = 'upstudy_tutor_profile_page'; } // Get body class for tutor lms profile page if ( function_exists('tutor') && $tutor_single_page_layout && is_singular( 'courses' )) { $classes[] = 'single-course-layout-0'.$tutor_single_page_layout.''; } // Get body class for tutor lms course excerpt if ( function_exists('tutor') && $tutor_single_excerpt && is_singular( 'courses' )) { $classes[] = 'has__excerpt'; } // Get body class for tutor lms course meta $has_meta = ( Upstudy::setting( 'tutor_instructor_single' ) || Upstudy::setting( 'tutor_single_wishlist' ) ) ? true : false; if ( function_exists('tutor') && $has_meta && is_singular( 'courses' )) { $classes[] = 'has__meta'; } // Finally $classes return return $classes; } add_filter( 'body_class', 'add_body_classes_for_tutor_lms' ); /** * Display Course Category */ if ( ! function_exists( 'upstudy_tutor_course_category' ) ) { function upstudy_tutor_course_category() { global $post; $post_id = $post->ID; ?>
'; if ( !in_array( $tutor_single_page_layout, array('5')) ) { echo '