| @@ -1,23 +1,23 @@ | ||
| 1 | -<?php | |
| 2 | -/** | |
| 3 | - * Template for displaying 'Featured' badge in archive course page for each course. | |
| 4 | - * | |
| 5 | - * @author ThimPress | |
| 6 | - * @package LearnPress/Templates | |
| 7 | - * @version 4.0.0 | |
| 8 | - */ | |
| 9 | - | |
| 10 | -defined( 'ABSPATH' ) || exit; | |
| 11 | - | |
| 12 | -$course = learn_press_get_course(); | |
| 13 | - | |
| 14 | -if ( ! $course ) { | |
| 15 | - return; | |
| 16 | -} | |
| 17 | - | |
| 18 | -if ( ! $course->is_featured() ) { | |
| 19 | - return; | |
| 20 | -} | |
| 21 | -?> | |
| 22 | - | |
| 23 | -<span class="lp-badge featured-course" data-text="<?php esc_attr_e( 'Featured', 'learnpress' ); ?>"></span> | |
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * Template for displaying 'Featured' badge in archive course page for each course. | |
| 4 | + * | |
| 5 | + * @author ThimPress | |
| 6 | + * @package LearnPress/Templates | |
| 7 | + * @version 4.0.0 | |
| 8 | + */ | |
| 9 | + | |
| 10 | +defined( 'ABSPATH' ) || exit; | |
| 11 | + | |
| 12 | +$course = learn_press_get_course(); | |
| 13 | + | |
| 14 | +if ( ! $course ) { | |
| 15 | + return; | |
| 16 | +} | |
| 17 | + | |
| 18 | +if ( ! $course->is_featured() ) { | |
| 19 | + return; | |
| 20 | +} | |
| 21 | +?> | |
| 22 | + | |
| 23 | +<span class="lp-badge featured-course" data-text="<?php esc_attr_e( 'Featured', 'learnpress' ); ?>"></span> | |