[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.12.153.152: ~ $
<?php
/**
 * Course meta template
 *
 * Meta template contains author avatar & categories
 *
 * @package Tutor\Templates
 * @subpackage CourseLoopPart
 * @author Themeum <support@themeum.com>
 * @link https://themeum.com
 * @since 1.5.8
 */

global $post, $authordata;
$course_id         = $post->ID;
$profile_url       = tutor_utils()->profile_url( $authordata->ID, true );
$course_categories = get_tutor_course_categories( $course_id );
$course_duration   = get_tutor_course_duration_context( $course_id, true );
$course_students   = apply_filters( 'tutor_course_students', tutor_utils()->count_enrolled_users_by_course( $course_id ), $course_id )
?>

<?php if ( tutor_utils()->get_option( 'enable_course_total_enrolled' ) || ! empty( $course_duration ) ) : ?>
<div class="tutor-meta tutor-mt-12 tutor-mb-20">
	<?php if ( tutor_utils()->get_option( 'enable_course_total_enrolled' ) ) : ?>
		<div>
			<span class="tutor-meta-icon tutor-icon-user-line" area-hidden="true"></span>
			<span class="tutor-meta-value"><?php echo esc_html( $course_students ); ?></span>
		</div>
	<?php endif; ?>

	<?php if ( ! empty( $course_duration ) ) : ?>
		<div>
			<span class="tutor-icon-clock-line tutor-meta-icon" area-hidden="true"></span>
			<span class="tutor-meta-value">
				<?php
                    //phpcs:ignore --escaping through helper method
					echo tutor_utils()->clean_html_content( $course_duration );
				?>
			</span>
		</div>
	<?php endif; ?>
</div>
<?php endif; ?>

<div class="tutor-meta tutor-mt-auto">
	<div>
		<a href="<?php echo esc_url( $profile_url ); ?>" class="tutor-d-flex">
			<?php echo wp_kses( tutor_utils()->get_tutor_avatar( $post->post_author ), tutor_utils()->allowed_avatar_tags() ); ?>
		</a>
	</div>

	<div>
		<?php esc_html_e( 'By', 'tutor' ); ?>
		<a href="<?php echo esc_url( $profile_url ); ?>"><?php echo esc_html( get_the_author() ); ?></a>

		<?php if ( ! empty( $course_categories ) && is_array( $course_categories ) && count( $course_categories ) ) : ?>
			<?php esc_html_e( 'In', 'tutor' ); ?>
			<?php
				$category_links = array();
			foreach ( $course_categories as $course_category ) :
				$category_name    = $course_category->name;
				$category_link    = get_term_link( $course_category->term_id );
				$category_links[] = wp_sprintf( '<a href="%1$s">%2$s</a>', esc_url( $category_link ), esc_html( $category_name ) );
				endforeach;
				echo implode( ', ', $category_links ); //phpcs:ignore --contain safe data
			?>
		<?php endif; ?>
	</div>
</div>

Filemanager

Name Type Size Permission Actions
add-to-cart-edd.php File 1.37 KB 0644
add-to-cart-tutor.php File 1.43 KB 0644
add-to-cart-woocommerce.php File 2.49 KB 0644
course-author.php File 1.44 KB 0644
course-continue.php File 2.12 KB 0644
course-in-cart.php File 1.43 KB 0644
course-price-edd.php File 4.07 KB 0644
course-price-tutor.php File 3.71 KB 0644
course-price-woocommerce.php File 4.42 KB 0644
course-price.php File 4.45 KB 0644
course.php File 1.56 KB 0644
end_content_wrap.php File 195 B 0644
enrolled-course-progress.php File 986 B 0644
footer.php File 239 B 0644
header.php File 1.23 KB 0644
loop-after-content.php File 232 B 0644
loop-before-content.php File 268 B 0644
loop-end.php File 232 B 0644
loop-start.php File 581 B 0644
meta.php File 2.44 KB 0644
rating.php File 1.18 KB 0644
start_content_wrap.php File 221 B 0644
thumbnail.php File 619 B 0644
title.php File 364 B 0644