add-to-cart-edd.php
6 years ago
add-to-cart-woocommerce.php
6 years ago
course-author.php
6 years ago
course-price-edd.php
6 years ago
course-price-woocommerce.php
6 years ago
course-price.php
6 years ago
course.php
6 years ago
end_content_wrap.php
6 years ago
footer.php
6 years ago
header.php
6 years ago
loop-after-content.php
6 years ago
loop-before-content.php
6 years ago
loop-end.php
6 years ago
loop-start.php
6 years ago
meta.php
6 years ago
rating.php
6 years ago
start_content_wrap.php
6 years ago
thumbnail.php
6 years ago
title.php
6 years ago
tutor-pagination.php
6 years ago
header.php
34 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @package TutorLMS/Templates |
| 4 | * @version 1.5.8 |
| 5 | */ |
| 6 | |
| 7 | ?> |
| 8 | |
| 9 | <div class="tutor-course-header"> |
| 10 | <?php |
| 11 | tutor_course_loop_thumbnail(); |
| 12 | |
| 13 | $course_id = get_the_ID(); |
| 14 | ?> |
| 15 | <div class="tutor-course-loop-header-meta"> |
| 16 | <?php |
| 17 | $is_wishlisted = tutor_utils()->is_wishlisted($course_id); |
| 18 | $has_wish_list = ''; |
| 19 | if ($is_wishlisted){ |
| 20 | $has_wish_list = 'has-wish-listed'; |
| 21 | } |
| 22 | |
| 23 | $action_class = ''; |
| 24 | if ( is_user_logged_in()){ |
| 25 | $action_class = apply_filters('tutor_wishlist_btn_class', 'tutor-course-wishlist-btn'); |
| 26 | }else{ |
| 27 | $action_class = apply_filters('tutor_popup_login_class', 'cart-required-login'); |
| 28 | } |
| 29 | |
| 30 | echo '<span class="tutor-course-loop-level">'.get_tutor_course_level().'</span>'; |
| 31 | echo '<span class="tutor-course-wishlist"><a href="javascript:;" class="tutor-icon-fav-line '.$action_class.' '.$has_wish_list.' " data-course-id="'.$course_id.'"></a> </span>'; |
| 32 | ?> |
| 33 | </div> |
| 34 | </div> |