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
course-target-audience.php
38 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Template for displaying course audience |
| 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 | do_action( 'tutor_course/single/before/audience' ); |
| 13 | |
| 14 | $target_audience = tutor_course_target_audience(); |
| 15 | |
| 16 | if ( empty( $target_audience ) ) { |
| 17 | return; |
| 18 | } |
| 19 | ?> |
| 20 | |
| 21 | <?php if ( is_array( $target_audience ) && count( $target_audience ) ) : ?> |
| 22 | <div class="tutor-course-details-widget"> |
| 23 | <h3 class="tutor-course-details-widget-title tutor-fs-5 tutor-color-black tutor-fw-bold tutor-mb-16"> |
| 24 | <?php esc_html_e( 'Audience', 'tutor' ); ?> |
| 25 | </h3> |
| 26 | <ul class="tutor-course-details-widget-list tutor-fs-6 tutor-color-black"> |
| 27 | <?php foreach ( $target_audience as $audience ) : ?> |
| 28 | <li class="tutor-d-flex tutor-mb-12"> |
| 29 | <span class="tutor-icon-bullet-point tutor-color-muted tutor-mt-2 tutor-mr-8 tutor-fs-8" area-hidden="true"></span> |
| 30 | <span><?php echo esc_html( $audience ); ?></span> |
| 31 | </li> |
| 32 | <?php endforeach; ?> |
| 33 | </ul> |
| 34 | </div> |
| 35 | <?php endif; ?> |
| 36 | |
| 37 | <?php do_action( 'tutor_course/single/after/audience' ); ?> |
| 38 |