at path:
ROOT
/
wp-content
/
themes
/
kadu
/
tutor
/
single
/
course
/
course-topics.php
run:
R
W
Run
enrolled
DIR
2025-12-13 10:20:13
R
W
Run
add-to-cart-edd.php
561 By
2024-06-26 08:44:04
R
W
Run
Delete
Rename
add-to-cart-woocommerce.php
3.1 KB
2024-06-26 08:44:04
R
W
Run
Delete
Rename
continue-lesson.php
1.05 KB
2024-06-26 08:44:04
R
W
Run
Delete
Rename
course-benefits.php
1.23 KB
2024-06-26 08:44:04
R
W
Run
Delete
Rename
course-content.php
1.76 KB
2024-06-26 09:17:18
R
W
Run
Delete
Rename
course-entry-box.php
11.84 KB
2024-06-28 06:38:44
R
W
Run
Delete
Rename
course-requirements.php
1.09 KB
2024-06-26 08:44:04
R
W
Run
Delete
Rename
course-target-audience.php
1.09 KB
2024-06-26 08:44:04
R
W
Run
Delete
Rename
course-topics.php
6.07 KB
2024-06-26 09:30:16
R
W
Run
Delete
Rename
instructors.php
1.56 KB
2024-06-26 08:44:04
R
W
Run
Delete
Rename
material-includes.php
1.08 KB
2024-06-26 08:44:04
R
W
Run
Delete
Rename
q_and_a_turned_off.php
394 By
2024-06-26 08:44:04
R
W
Run
Delete
Rename
reviews-loop.php
1.77 KB
2024-06-26 08:44:04
R
W
Run
Delete
Rename
reviews.php
7.13 KB
2024-06-26 08:44:04
R
W
Run
Delete
Rename
social_share.php
669 By
2024-06-24 06:44:00
R
W
Run
Delete
Rename
tags.php
1013 By
2024-06-26 08:44:04
R
W
Run
Delete
Rename
wc-price-html.php
527 By
2024-06-26 08:44:04
R
W
Run
Delete
Rename
error_log
up
📄
course-topics.php
Save
<?php /** * Template for displaying single course * * @package Tutor\Templates * @subpackage Single\Course * @author Themeum <support@themeum.com> * @link https://themeum.com * @since 1.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } global $is_enrolled; $topics = tutor_utils()->get_topics(); $course_id = get_the_ID(); $index = 0; /** * $is_enrolled getting null for Addons plugin like Elementor addons * * @since 2.1.8 */ if ( is_null( $is_enrolled ) ) { $is_enrolled = tutor_utils()->is_enrolled( $course_id ); } do_action( 'tutor_course/single/before/topics' ); ?> <div class="tutor-mt-40 kd-course-details-content"> <?php if ( $topics->have_posts() ) : ?> <h3 class="tutor-fs-5 tutor-fw-bold tutor-color-black tutor-mb-24 tutor-course-content-title"> <?php echo esc_html( apply_filters( 'tutor_course_topics_title', __( 'Course Content', 'kadu' ) ) ); ?> </h3> <div class="cd-video-accordion"> <?php while ( $topics->have_posts() ) : ?> <?php $topics->the_post(); $topic_summery = get_the_content(); $index++; ?> <div class="cd-video-accordion-item"> <h4 class="item-title tutor-accordion-item-header<?php echo 1 == $index ? ' is-active' : ''; ?>"> <?php the_title(); ?> <?php if ( ! empty( $topic_summery ) ) : ?> <div class="tooltip-wrap tooltip-icon"> <span class="tooltip-txt tooltip-right"><?php echo esc_attr( $topic_summery ); ?></span> </div> <?php endif; ?> </h4> <?php $topic_contents = tutor_utils()->get_course_contents_by_topic( get_the_ID(), -1 ); ?> <?php if ( $topic_contents->have_posts() ) : ?> <div class="tutor-accordion-item-body" style="<?php echo 1 != $index ? 'display: none;' : ''; ?>"> <div class="item-body"> <ul class="tutor-course-content-list"> <?php while ( $topic_contents->have_posts() ) : ?> <?php $topic_contents->the_post(); global $post; // Get Lesson video information if any. $video = tutor_utils()->get_video_info(); $play_time = $video ? $video->playtime : false; $is_preview = get_post_meta( $post->ID, '_is_preview', true ); // Determine topic content icon based on lesson, video, quiz etc. $topic_content_icon = $play_time ? 'tutor-icon-brand-youtube-bold' : 'tutor-icon-document-text'; 'tutor_quiz' === $post->post_type ? $topic_content_icon = 'tutor-icon-circle-question-mark' : 0; 'tutor_assignments' === $post->post_type ? $topic_content_icon = 'tutor-icon-document-text' : 0; 'tutor_zoom_meeting' === $post->post_type ? $topic_content_icon = 'tutor-icon-brand-zoom' : 0; 'tutor-google-meet' === $post->post_type ? $topic_content_icon = 'tutor-icon-brand-google-meet' : 0; $is_public_course = \TUTOR\Course_List::is_public( $course_id ); $is_locked = ! ( $is_enrolled || $is_preview || $is_public_course ); ?> <li class="cd-video-accordion-item-video popup-video unlock-video"> <div class="tutor-d-flex tutor-align-center"> <span class="tutor-course-content-list-item-icon icon <?php echo esc_attr( $topic_content_icon ); ?> tutor-mr-12"></span> </div> <div class="text"> <h5 class="tutor-course-content-list-item-title"> <?php $lesson_title = ''; $title_tag_allow = array( 'a' => array( 'href' => true, 'class' => true, ), 'span' => array( 'class' => true ), ); // Add zoom meeting countdown info. $countdown = ''; if ( 'tutor_zoom_meeting' === $post->post_type ) { $zoom_meeting = tutor_zoom_meeting_data( $post->ID ); $countdown = '<div class="tutor-zoom-lesson-countdown tutor-lesson-duration" data-timer="' . $zoom_meeting->countdown_date . '" data-timezone="' . $zoom_meeting->timezone . '"></div>'; } /** * Show clickable content if enrolled. * Or if it is public and not paid, then show content forcefully. */ if ( $is_enrolled || ( get_post_meta( $course_id, '_tutor_is_public_course', true ) == 'yes' && ! tutor_utils()->is_course_purchasable( $course_id ) ) ) { $lesson_title .= "<a href='" . get_the_permalink() . "'> " . get_the_title() . ' </a>'; if ( $countdown ) { if ( $zoom_meeting->is_expired ) { $lesson_title .= '<span class="tutor-zoom-label">' . __( 'Expired', 'kadu' ) . '</span>'; } elseif ( $zoom_meeting->is_started ) { $lesson_title .= '<span class="tutor-zoom-label tutor-zoom-live-label">' . __( 'Live', 'kadu' ) . '</span>'; } $lesson_title .= $countdown; } echo wp_kses( $lesson_title, $title_tag_allow ); } else { $lesson_title .= get_the_title(); echo wp_kses( apply_filters( 'tutor_course/contents/lesson/title', $lesson_title, get_the_ID() ), $title_tag_allow ); } ?> </h5> </div> <div class="duration"> <span class="tutor-course-content-list-item-duration tutor-fs-7 tutor-color-muted"> <?php echo esc_html( $play_time ? tutor_utils()->get_optimized_duration( $play_time ) : '' ); ?> </span> </div> <div class="lock"> <span class="tutor-course-content-list-item-status <?php echo esc_attr($is_locked) ? 'tutor-icon-lock-line' : 'tutor-icon-eye-line'; ?> tutor-color-muted tutor-ml-20" area-hidden="true"></span> </div> </li> <?php endwhile; ?> </ul> </div> </div> <?php $topic_contents->reset_postdata(); ?> <?php endif; ?> </div> <?php endwhile; ?> </div> <?php endif; ?> </div> <?php do_action( 'tutor_course/single/after/topics', $course_id ); ?>