enrolled
3 years ago
add-to-cart-edd.php
4 years ago
add-to-cart-woocommerce.php
3 years ago
continue-lesson.php
4 years ago
course-benefits.php
4 years ago
course-content.php
4 years ago
course-entry-box.php
3 years ago
course-requirements.php
4 years ago
course-target-audience.php
4 years ago
course-topics.php
3 years ago
instructors.php
3 years ago
lead-info.php
3 years ago
material-includes.php
4 years ago
q_and_a_turned_off.php
4 years ago
reviews-loop.php
3 years ago
reviews.php
3 years ago
social_share.php
4 years ago
tags.php
3 years ago
wc-price-html.php
4 years ago
wc-price-html.php
28 lines
| 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 | ?> |
| 28 |