<?php
/**
 * Template for displaying the list of course is in wishlist
 *
 * @author ThimPress
 */

defined( 'ABSPATH' ) || exit();
global $post;
?>
<article class="col-md-3 col-sm-6" id="learn-press-tab-wishlist-course-<?php echo $post->ID;?>" data-context="tab-wishlist">
	<div class="inner-course">
		<?php do_action( 'learn_press_before_course_header' ); ?>

		<div class="wrapper-course-thumbnail">
			<?php do_action( 'learn_press_before_courses_loop_item' ); ?>
			<?php
			$lp_featured = get_post_meta( get_the_ID(), '_lp_featured', true );
			if($lp_featured == 'yes') {
				echo '<label>'.esc_html__('Featured', 'elearningwp').'</label>';
			} ?>
			<div class="teacher_course">
				<?php
				if ( thim_plugin_active( 'learnpress/learnpress.php' ) ) {
					thim_author_courses();
				}
				?>
			</div>
		</div>
		<div class="item-list-center">
			<div class="course-title">
				<?php
				do_action( 'learn_press_courses_loop_item_title' );
				?>
			</div>
			<div class="course-price">
				<?php learn_press_courses_loop_item_price();?>
			</div>
			<div class="course-students">
				<span>
					<?php learn_press_course_students(); ?>
				</span>
				<div class="course-rating">
					<?php thim_course_ratings_count(); ?>
				</div>
			</div>
		</div>
	</div>
</article>