<?php /** * Template for displaying single quiz * * @package Tutor\Templates * @author Themeum <support@themeum.com> * @link https://themeum.com * @since 1.0.0 */ use Tutor\Models\CourseModel; global $previous_id; // Get the ID of this content and the corresponding course. $course_content_id = get_the_ID(); $course_id = tutor_utils()->get_course_id_by_subcontent( $course_content_id ); $content_id = tutor_utils()->get_post_id( $course_content_id ); $contents = tutor_utils()->get_course_prev_next_contents_by_id( $content_id ); $previous_id = $contents->previous_id; $course = CourseModel::get_course_by_quiz( get_the_ID() ); $enable_spotlight_mode = tutor_utils()->get_option( 'enable_spotlight_mode' ); ob_start(); ?> <input type="hidden" name="tutor_quiz_id" id="tutor_quiz_id" value="<?php the_ID(); ?>"> <?php tutor_load_template( 'single.common.header', array( 'course_id' => $course_id ) ); ?> <?php ob_start(); ?> <div class="tutor-quiz-wrapper"> <input type="hidden" name="tutor_quiz_id" id="tutor_quiz_id" value="<?php the_ID(); ?>"> <?php if ( $course ) { tutor_single_quiz_top(); tutor_single_quiz_body(); } else { tutor_single_quiz_no_course_belongs(); } ?> </div> <?php tutor_load_template( 'single.common.footer', array( 'course_id' => $course_id ) ); echo apply_filters( 'tutor_quiz/single/wrapper', ob_get_clean() ); //phpcs:ignore tutor_load_template_from_custom_path( __DIR__ . '/single-content-loader.php', array( 'context' => 'quiz', 'html_content' => ob_get_clean(), ), false ); ?>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
course-filter | Folder | 0755 |
|
|
dashboard | Folder | 0755 |
|
|
ecommerce | Folder | 0755 |
|
|
Folder | 0755 |
|
||
global | Folder | 0755 |
|
|
instructor | Folder | 0755 |
|
|
loop | Folder | 0755 |
|
|
modal | Folder | 0755 |
|
|
profile | Folder | 0755 |
|
|
shortcode | Folder | 0755 |
|
|
single | Folder | 0755 |
|
|
template-part | Folder | 0755 |
|
|
widget | Folder | 0755 |
|
|
archive-course-init.php | File | 6.57 KB | 0644 |
|
archive-course.php | File | 862 B | 0644 |
|
course-embed.php | File | 4.38 KB | 0644 |
|
course-none.php | File | 259 B | 0644 |
|
dashboard.php | File | 10.69 KB | 0644 |
|
feature_disabled.php | File | 1.04 KB | 0644 |
|
login-form.php | File | 3.83 KB | 0644 |
|
login.php | File | 1.41 KB | 0644 |
|
metabox-wrapper.php | File | 621 B | 0644 |
|
permission-denied.php | File | 1.61 KB | 0644 |
|
public-profile.php | File | 7.24 KB | 0644 |
|
single-assignment.php | File | 293 B | 0644 |
|
single-content-loader.php | File | 4.26 KB | 0644 |
|
single-course.php | File | 3.9 KB | 0644 |
|
single-lesson.php | File | 292 B | 0644 |
|
single-preview-lesson.php | File | 292 B | 0644 |
|
single-quiz.php | File | 1.57 KB | 0644 |
|
template.php | File | 385 B | 0644 |
|