<?php /** * Template for displaying course content * * @package Tutor\Templates * @subpackage Single\Course * @author Themeum <support@themeum.com> * @link https://themeum.com * @since 1.0.0 */ global $post; do_action( 'tutor_course/single/before/content' ); if ( tutor_utils()->get_option( 'enable_course_about', true, true ) ) { $string = apply_filters( 'tutor_course_about_content', get_the_content() ); $content_summary = (bool) get_tutor_option( 'course_content_summary', true ); $post_size_in_words = sizeof( explode( ' ', $string ) ); $word_limit = 100; $has_show_more = false; if ( $content_summary && ( $post_size_in_words > $word_limit ) ) { $has_show_more = true; } ?> <?php if ( ! empty( $string ) ) : ?> <div class="tutor-course-details-content<?php echo $has_show_more ? ' tutor-toggle-more-content tutor-toggle-more-collapsed' : ''; ?>"<?php echo $has_show_more ? ' data-tutor-toggle-more-content data-toggle-height="200" style="height: 200px;"' : ''; ?>> <h2 class="tutor-fs-5 tutor-fw-bold tutor-color-black tutor-mb-12"> <?php echo esc_html( apply_filters( 'tutor_course_about_title', __( 'About Course', 'tutor' ) ) ); ?> </h2> <div class="tutor-fs-6 tutor-color-secondary"> <?php echo apply_filters( 'the_content', $string ); //phpcs:ignore ?> </div> </div> <?php if ( $has_show_more ) : ?> <a href="#" class="tutor-btn-show-more tutor-btn tutor-btn-ghost tutor-mt-32" data-tutor-toggle-more=".tutor-toggle-more-content"> <span class="tutor-toggle-btn-icon tutor-icon tutor-icon-plus tutor-mr-8" area-hidden="true"></span> <span class="tutor-toggle-btn-text"><?php esc_html_e( 'Show More', 'tutor' ); ?></span> </a> <?php endif; ?> <?php endif; ?> <?php } do_action( 'tutor_course/single/after/content' ); ?>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
enrolled | Folder | 0755 |
|
|
add-to-cart-edd.php | File | 562 B | 0644 |
|
add-to-cart-tutor.php | File | 3.23 KB | 0644 |
|
add-to-cart-woocommerce.php | File | 3.1 KB | 0644 |
|
continue-lesson.php | File | 1.05 KB | 0644 |
|
course-benefits.php | File | 1.23 KB | 0644 |
|
course-content.php | File | 1.77 KB | 0644 |
|
course-entry-box.php | File | 12.24 KB | 0644 |
|
course-requirements.php | File | 1.09 KB | 0644 |
|
course-target-audience.php | File | 1.09 KB | 0644 |
|
course-topics.php | File | 5.88 KB | 0644 |
|
instructors.php | File | 1.54 KB | 0644 |
|
lead-info.php | File | 3.69 KB | 0644 |
|
material-includes.php | File | 1.08 KB | 0644 |
|
q_and_a_turned_off.php | File | 395 B | 0644 |
|
reviews-loop.php | File | 1.77 KB | 0644 |
|
reviews.php | File | 7.14 KB | 0644 |
|
social_share.php | File | 669 B | 0644 |
|
tags.php | File | 1014 B | 0644 |
|
wc-price-html.php | File | 528 B | 0644 |
|