Sindbad~EG File Manager
<?php
$related_course = turitor_related_posts_by_tags();
if(!is_array($related_course)){
return;
}
?>
<div class="turitor-related-course turitor-course-latest">
<h3 class="widget-title"> <?php echo esc_html__('More courses for you','turitor'); ?> </h3>
<?php foreach($related_course as $item): ?>
<?php
$course = LP_Course::get_course( $item->ID );
$currency = learn_press_get_currency_symbol( );
?>
<div class="media course-latest-list">
<div class="course-media">
<a href="<?php echo esc_url( get_the_permalink($item->ID)); ?>">
<?php echo get_the_post_thumbnail($item->ID,'turitor-small'); ?>
</a>
</div>
<div class="related-course-content media-body">
<h3 class="post-title ">
<a href='<?php echo esc_url( get_the_permalink($item->ID)); ?>'> <?php echo esc_html(get_the_title($item->ID)); ?> </a>
</h3>
<p>
<?php
if ( $price = $course->get_price_html() ) {
$origin_price = $course->get_origin_price_html();
if ( $course->has_sale_price() ) {
echo '<span class="course-origin-price">' . esc_html($origin_price) . '</span>';
}
echo '<span class="course-price">' . esc_html($price) . '</span>';
}
?>
</p>
</div>
</div>
<?php endforeach; ?>
</div>
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists