PluginProbe
Tutor LMS – eLearning and online course solution / 1.8.10
Tutor LMS – eLearning and online course solution v1.8.10
4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 4.0.0 3.9.15 3.9.14 3.9.13 3.9.12 3.9.11 trunk 1.0.0 1.0.0-alpha 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 All 191 releases
tutor / templates / loop / course-continue.php
course-continue.php
32 lines 905 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Course loop continue when enrolled
5 *
6 * @since v.1.7.4
7 * @author themeum
8 * @url https://themeum.com
9 *
10 * @package TutorLMS/Templates
11 * @version 1.7.4
12 */
13 ?>
14
15 <div class="tutor-course-loop-price">
16 <?php
17 $course_id = get_the_ID();
18 $enroll_btn = '<div class="tutor-loop-cart-btn-wrap"><a href="'. get_the_permalink(). '">'.__('Continue Course', 'tutor'). '</a></div>';
19 $default_price = apply_filters('tutor-loop-default-price', __('Free', 'tutor'));
20 $price_html = '<div class="price"> '.$default_price.$enroll_btn. '</div>';
21 if (tutor_utils()->is_course_purchasable()) {
22
23 $product_id = tutor_utils()->get_course_product_id($course_id);
24 $product = wc_get_product( $product_id );
25
26 if ( $product ) {
27 $price_html = '<div class="price"> '.$product->get_price_html().$enroll_btn.' </div>';
28 }
29 }
30 echo $price_html;
31 ?>
32 </div>