| 1 |
<?php |
| 2 |
/** |
| 3 |
* Template for displaying price |
| 4 |
* |
| 5 |
* @since v.1.0.0 |
| 6 |
* |
| 7 |
* @author Themeum |
| 8 |
* @url https://themeum.com |
| 9 |
* |
| 10 |
* @package TutorLMS/Templates |
| 11 |
* @version 1.4.3 |
| 12 |
*/ |
| 13 |
|
| 14 |
|
| 15 |
$is_purchasable = tutor_utils()->is_course_purchasable(); |
| 16 |
$price = apply_filters('get_tutor_course_price', null, get_the_ID()); |
| 17 |
|
| 18 |
if ($is_purchasable && $price){ |
| 19 |
echo '<div class="price">'.$price.'</div>'; |
| 20 |
}else{ |
| 21 |
?> |
| 22 |
<div class="price"> |
| 23 |
<?php _e('Free', 'tutor'); ?> |
| 24 |
</div> |
| 25 |
<?php |
| 26 |
} |
| 27 |
?> |