enrolled
2 years ago
add-to-cart-edd.php
3 years ago
add-to-cart-woocommerce.php
3 years ago
continue-lesson.php
3 years ago
course-benefits.php
3 years ago
course-content.php
3 years ago
course-entry-box.php
2 years ago
course-requirements.php
3 years ago
course-target-audience.php
3 years ago
course-topics.php
2 years ago
instructors.php
3 years ago
lead-info.php
2 years ago
material-includes.php
3 years ago
q_and_a_turned_off.php
3 years ago
reviews-loop.php
3 years ago
reviews.php
2 years ago
social_share.php
3 years ago
tags.php
3 years ago
wc-price-html.php
3 years ago
wc-price-html.php
25 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Template for displaying price |
| 4 | * |
| 5 | * @package Tutor\Templates |
| 6 | * @subpackage Single\Course |
| 7 | * @author Themeum <support@themeum.com> |
| 8 | * @link https://themeum.com |
| 9 | * @since 1.0.0 |
| 10 | */ |
| 11 | |
| 12 | $is_purchasable = tutor_utils()->is_course_purchasable(); |
| 13 | $price = apply_filters( 'get_tutor_course_price', null, get_the_ID() ); |
| 14 | |
| 15 | if ( $is_purchasable && $price ) { |
| 16 | echo '<div class="price">' . $price . '</div>';//phpcs:ignore |
| 17 | } else { |
| 18 | ?> |
| 19 | <div class="price"> |
| 20 | <?php esc_html_e( 'Free', 'tutor' ); ?> |
| 21 | </div> |
| 22 | <?php |
| 23 | } |
| 24 | ?> |
| 25 |