| @@ -1,27 +1,27 @@ | ||
| 1 | -<?php | |
| 2 | -/** | |
| 3 | - * Template for displaying thumbnail of course within the loop. | |
| 4 | - * | |
| 5 | - * This template can be overridden by copying it to yourtheme/learnpress/loop/course/thumbnail.php. | |
| 6 | - * | |
| 7 | - * @author ThimPress | |
| 8 | - * @package Learnpress/Templates | |
| 9 | - * @version 3.0.0 | |
| 10 | - */ | |
| 11 | - | |
| 12 | -defined( 'ABSPATH' ) || exit(); | |
| 13 | - | |
| 14 | -$course = learn_press_get_course(); | |
| 15 | - | |
| 16 | -if ( ! $course ) { | |
| 17 | - return; | |
| 18 | -} | |
| 19 | -?> | |
| 20 | - | |
| 21 | -<div class="course-thumbnail"> | |
| 22 | - <a href="<?php the_permalink(); ?>"> | |
| 23 | -<!-- <div class="thumbnail">--> | |
| 24 | - <?php echo wp_kses_post( $course->get_image( 'course_thumbnail' ) ); ?> | |
| 25 | -<!-- </div>--> | |
| 26 | - </a> | |
| 27 | -</div> | |
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * Template for displaying thumbnail of course within the loop. | |
| 4 | + * | |
| 5 | + * This template can be overridden by copying it to yourtheme/learnpress/loop/course/thumbnail.php. | |
| 6 | + * | |
| 7 | + * @author ThimPress | |
| 8 | + * @package Learnpress/Templates | |
| 9 | + * @version 3.0.0 | |
| 10 | + */ | |
| 11 | + | |
| 12 | +defined( 'ABSPATH' ) || exit(); | |
| 13 | + | |
| 14 | +$course = learn_press_get_course(); | |
| 15 | + | |
| 16 | +if ( ! $course ) { | |
| 17 | + return; | |
| 18 | +} | |
| 19 | +?> | |
| 20 | + | |
| 21 | +<div class="course-thumbnail"> | |
| 22 | + <a href="<?php the_permalink(); ?>"> | |
| 23 | +<!-- <div class="thumbnail">--> | |
| 24 | + <?php echo wp_kses_post( $course->get_image( 'course_thumbnail' ) ); ?> | |
| 25 | +<!-- </div>--> | |
| 26 | + </a> | |
| 27 | +</div> | |